/linux-4.1.27/drivers/staging/android/ |
H A D | timed_output.c | 33 struct timed_output_dev *tdev = dev_get_drvdata(dev); enable_show() local 34 int remaining = tdev->get_time(tdev); enable_show() 42 struct timed_output_dev *tdev = dev_get_drvdata(dev); enable_store() local 50 tdev->enable(tdev, value); enable_store() 75 int timed_output_dev_register(struct timed_output_dev *tdev) timed_output_dev_register() argument 79 if (!tdev || !tdev->name || !tdev->enable || !tdev->get_time) timed_output_dev_register() 86 tdev->index = atomic_inc_return(&device_count); timed_output_dev_register() 87 tdev->dev = device_create(timed_output_class, NULL, timed_output_dev_register() 88 MKDEV(0, tdev->index), NULL, "%s", tdev->name); timed_output_dev_register() 89 if (IS_ERR(tdev->dev)) timed_output_dev_register() 90 return PTR_ERR(tdev->dev); timed_output_dev_register() 92 dev_set_drvdata(tdev->dev, tdev); timed_output_dev_register() 93 tdev->state = 0; timed_output_dev_register() 98 void timed_output_dev_unregister(struct timed_output_dev *tdev) timed_output_dev_unregister() argument 100 tdev->enable(tdev, 0); timed_output_dev_unregister() 101 device_destroy(timed_output_class, MKDEV(0, tdev->index)); timed_output_dev_unregister()
|
/linux-4.1.27/drivers/input/misc/ |
H A D | gpio_tilt_polled.c | 42 struct gpio_tilt_polled_dev *tdev = dev->private; gpio_tilt_polled_poll() local 43 const struct gpio_tilt_platform_data *pdata = tdev->pdata; gpio_tilt_polled_poll() 48 if (tdev->count < tdev->threshold) { gpio_tilt_polled_poll() 49 tdev->count++; gpio_tilt_polled_poll() 55 if (state != tdev->last_state) { gpio_tilt_polled_poll() 69 tdev->count = 0; gpio_tilt_polled_poll() 70 tdev->last_state = state; gpio_tilt_polled_poll() 77 struct gpio_tilt_polled_dev *tdev = dev->private; gpio_tilt_polled_open() local 78 const struct gpio_tilt_platform_data *pdata = tdev->pdata; gpio_tilt_polled_open() 81 pdata->enable(tdev->dev); gpio_tilt_polled_open() 84 tdev->last_state = -1; gpio_tilt_polled_open() 85 tdev->count = tdev->threshold; gpio_tilt_polled_open() 86 gpio_tilt_polled_poll(tdev->poll_dev); gpio_tilt_polled_open() 91 struct gpio_tilt_polled_dev *tdev = dev->private; gpio_tilt_polled_close() local 92 const struct gpio_tilt_platform_data *pdata = tdev->pdata; gpio_tilt_polled_close() 95 pdata->disable(tdev->dev); gpio_tilt_polled_close() 103 struct gpio_tilt_polled_dev *tdev; gpio_tilt_polled_probe() local 111 tdev = kzalloc(sizeof(struct gpio_tilt_polled_dev), GFP_KERNEL); gpio_tilt_polled_probe() 112 if (!tdev) { gpio_tilt_polled_probe() 131 poll_dev->private = tdev; gpio_tilt_polled_probe() 154 tdev->threshold = DIV_ROUND_UP(pdata->debounce_interval, gpio_tilt_polled_probe() 157 tdev->poll_dev = poll_dev; gpio_tilt_polled_probe() 158 tdev->dev = dev; gpio_tilt_polled_probe() 159 tdev->pdata = pdata; gpio_tilt_polled_probe() 168 platform_set_drvdata(pdev, tdev); gpio_tilt_polled_probe() 177 kfree(tdev); gpio_tilt_polled_probe() 184 struct gpio_tilt_polled_dev *tdev = platform_get_drvdata(pdev); gpio_tilt_polled_remove() local 185 const struct gpio_tilt_platform_data *pdata = tdev->pdata; gpio_tilt_polled_remove() 187 input_unregister_polled_device(tdev->poll_dev); gpio_tilt_polled_remove() 188 input_free_polled_device(tdev->poll_dev); gpio_tilt_polled_remove() 192 kfree(tdev); gpio_tilt_polled_remove()
|
/linux-4.1.27/drivers/tc/ |
H A D | tc.c | 41 struct tc_dev *tdev; tc_bus_add_devices() local 84 tdev = kzalloc(sizeof(*tdev), GFP_KERNEL); tc_bus_add_devices() 85 if (!tdev) { tc_bus_add_devices() 89 dev_set_name(&tdev->dev, "tc%x", slot); tc_bus_add_devices() 90 tdev->bus = tbus; tc_bus_add_devices() 91 tdev->dev.parent = &tbus->dev; tc_bus_add_devices() 92 tdev->dev.bus = &tc_bus_type; tc_bus_add_devices() 93 tdev->slot = slot; tc_bus_add_devices() 96 tdev->firmware[i] = tc_bus_add_devices() 98 tdev->vendor[i] = tc_bus_add_devices() 100 tdev->name[i] = tc_bus_add_devices() 103 tdev->firmware[8] = 0; tc_bus_add_devices() 104 tdev->vendor[8] = 0; tc_bus_add_devices() 105 tdev->name[8] = 0; tc_bus_add_devices() 107 pr_info("%s: %s %s %s\n", dev_name(&tdev->dev), tdev->vendor, tc_bus_add_devices() 108 tdev->name, tdev->firmware); tc_bus_add_devices() 113 tdev->resource.start = slotaddr; tc_bus_add_devices() 114 tdev->resource.end = slotaddr + devsize - 1; tc_bus_add_devices() 116 tdev->resource.start = extslotaddr; tc_bus_add_devices() 117 tdev->resource.end = extslotaddr + devsize - 1; tc_bus_add_devices() 121 dev_name(&tdev->dev), (long)(devsize >> 20), tc_bus_add_devices() 123 kfree(tdev); tc_bus_add_devices() 126 tdev->resource.name = tdev->name; tc_bus_add_devices() 127 tdev->resource.flags = IORESOURCE_MEM; tc_bus_add_devices() 129 tc_device_get_irq(tdev); tc_bus_add_devices() 131 if (device_register(&tdev->dev)) { tc_bus_add_devices() 132 put_device(&tdev->dev); tc_bus_add_devices() 135 list_add_tail(&tdev->node, &tbus->devices); tc_bus_add_devices()
|
H A D | tc-driver.c | 53 * @tdev: the TC device structure to match against 60 struct tc_dev *tdev) tc_match_device() 66 if (strcmp(tdev->name, id->name) == 0 && tc_match_device() 67 strcmp(tdev->vendor, id->vendor) == 0) tc_match_device() 88 struct tc_dev *tdev = to_tc_dev(dev); tc_bus_match() local 92 id = tc_match_device(tdrv, tdev); tc_bus_match() 59 tc_match_device(struct tc_driver *tdrv, struct tc_dev *tdev) tc_match_device() argument
|
/linux-4.1.27/drivers/hid/ |
H A D | hid-thingm.c | 55 struct thingm_device *tdev; member in struct:thingm_rgb 74 static int thingm_send(struct thingm_device *tdev, u8 buf[REPORT_SIZE]) thingm_send() argument 78 hid_dbg(tdev->hdev, "-> %d %c %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", thingm_send() 82 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, thingm_send() 88 static int thingm_recv(struct thingm_device *tdev, u8 buf[REPORT_SIZE]) thingm_recv() argument 92 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, thingm_recv() 97 hid_dbg(tdev->hdev, "<- %d %c %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", thingm_recv() 104 static int thingm_version(struct thingm_device *tdev) thingm_version() argument 109 err = thingm_send(tdev, buf); thingm_version() 113 err = thingm_recv(tdev, buf); thingm_version() 117 tdev->version.major = buf[3]; thingm_version() 118 tdev->version.minor = buf[4]; thingm_version() 131 return thingm_send(rgb->tdev, buf); thingm_write_color() 138 mutex_lock(&rgb->tdev->lock); thingm_work() 141 hid_err(rgb->tdev->hdev, "failed to write color\n"); thingm_work() 143 mutex_unlock(&rgb->tdev->lock); thingm_work() 157 const int minor = ((struct hidraw *) rgb->tdev->hdev->hidraw)->minor; thingm_init_rgb() 168 err = led_classdev_register(&rgb->tdev->hdev->dev, &rgb->red.ldev); thingm_init_rgb() 180 err = led_classdev_register(&rgb->tdev->hdev->dev, &rgb->green.ldev); thingm_init_rgb() 192 err = led_classdev_register(&rgb->tdev->hdev->dev, &rgb->blue.ldev); thingm_init_rgb() 219 struct thingm_device *tdev; thingm_probe() local 222 tdev = devm_kzalloc(&hdev->dev, sizeof(struct thingm_device), thingm_probe() 224 if (!tdev) thingm_probe() 227 tdev->hdev = hdev; thingm_probe() 228 hid_set_drvdata(hdev, tdev); thingm_probe() 238 mutex_init(&tdev->lock); thingm_probe() 240 err = thingm_version(tdev); thingm_probe() 245 tdev->version.major, tdev->version.minor); thingm_probe() 247 for (i = 0; i < ARRAY_SIZE(thingm_fwinfo) && !tdev->fwinfo; ++i) thingm_probe() 248 if (thingm_fwinfo[i].major == tdev->version.major) thingm_probe() 249 tdev->fwinfo = &thingm_fwinfo[i]; thingm_probe() 251 if (!tdev->fwinfo) { thingm_probe() 252 hid_err(hdev, "unsupported firmware %c\n", tdev->version.major); thingm_probe() 257 tdev->rgb = devm_kzalloc(&hdev->dev, thingm_probe() 258 sizeof(struct thingm_rgb) * tdev->fwinfo->numrgb, thingm_probe() 260 if (!tdev->rgb) { thingm_probe() 265 for (i = 0; i < tdev->fwinfo->numrgb; ++i) { thingm_probe() 266 struct thingm_rgb *rgb = tdev->rgb + i; thingm_probe() 268 rgb->tdev = tdev; thingm_probe() 269 rgb->num = tdev->fwinfo->first + i; thingm_probe() 273 thingm_remove_rgb(tdev->rgb + i); thingm_probe() 287 struct thingm_device *tdev = hid_get_drvdata(hdev); thingm_remove() local 292 for (i = 0; i < tdev->fwinfo->numrgb; ++i) thingm_remove() 293 thingm_remove_rgb(tdev->rgb + i); thingm_remove()
|
/linux-4.1.27/arch/mips/dec/ |
H A D | tc.c | 70 void __init tc_device_get_irq(struct tc_dev *tdev) tc_device_get_irq() argument 72 switch (tdev->slot) { tc_device_get_irq() 74 tdev->interrupt = dec_interrupt[DEC_IRQ_TC0]; tc_device_get_irq() 77 tdev->interrupt = dec_interrupt[DEC_IRQ_TC1]; tc_device_get_irq() 80 tdev->interrupt = dec_interrupt[DEC_IRQ_TC2]; tc_device_get_irq() 86 tdev->interrupt = dec_interrupt[DEC_IRQ_TC5]; tc_device_get_irq() 89 tdev->interrupt = dec_interrupt[DEC_IRQ_TC6]; tc_device_get_irq() 92 tdev->interrupt = -1; tc_device_get_irq()
|
/linux-4.1.27/drivers/dma/ |
H A D | mmp_tdma.c | 331 struct mmp_tdma_device *tdev = dev_id; mmp_tdma_int_handler() local 336 struct mmp_tdma_chan *tdmac = tdev->tdmac[i]; mmp_tdma_int_handler() 536 struct mmp_tdma_device *tdev = platform_get_drvdata(pdev); mmp_tdma_remove() local 538 dma_async_device_unregister(&tdev->device); mmp_tdma_remove() 542 static int mmp_tdma_chan_init(struct mmp_tdma_device *tdev, mmp_tdma_chan_init() argument 549 dev_err(tdev->dev, "too many channels for device!\n"); mmp_tdma_chan_init() 554 tdmac = devm_kzalloc(tdev->dev, sizeof(*tdmac), GFP_KERNEL); mmp_tdma_chan_init() 556 dev_err(tdev->dev, "no free memory for DMA channels!\n"); mmp_tdma_chan_init() 561 tdmac->dev = tdev->dev; mmp_tdma_chan_init() 562 tdmac->chan.device = &tdev->device; mmp_tdma_chan_init() 565 tdmac->reg_base = tdev->base + idx * 4; mmp_tdma_chan_init() 568 tdev->tdmac[tdmac->idx] = tdmac; mmp_tdma_chan_init() 573 &tdev->device.channels); mmp_tdma_chan_init() 600 struct mmp_tdma_device *tdev = ofdma->of_dma_data; mmp_tdma_xlate() local 601 dma_cap_mask_t mask = tdev->device.cap_mask; mmp_tdma_xlate() 627 struct mmp_tdma_device *tdev; mmp_tdma_probe() local 641 tdev = devm_kzalloc(&pdev->dev, sizeof(*tdev), GFP_KERNEL); mmp_tdma_probe() 642 if (!tdev) mmp_tdma_probe() 645 tdev->dev = &pdev->dev; mmp_tdma_probe() 653 tdev->base = devm_ioremap_resource(&pdev->dev, iores); mmp_tdma_probe() 654 if (IS_ERR(tdev->base)) mmp_tdma_probe() 655 return PTR_ERR(tdev->base); mmp_tdma_probe() 657 INIT_LIST_HEAD(&tdev->device.channels); mmp_tdma_probe() 671 mmp_tdma_int_handler, 0, "tdma", tdev); mmp_tdma_probe() 679 ret = mmp_tdma_chan_init(tdev, i, irq, type, pool); mmp_tdma_probe() 684 dma_cap_set(DMA_SLAVE, tdev->device.cap_mask); mmp_tdma_probe() 685 dma_cap_set(DMA_CYCLIC, tdev->device.cap_mask); mmp_tdma_probe() 686 tdev->device.dev = &pdev->dev; mmp_tdma_probe() 687 tdev->device.device_alloc_chan_resources = mmp_tdma_probe() 689 tdev->device.device_free_chan_resources = mmp_tdma_probe() 691 tdev->device.device_prep_dma_cyclic = mmp_tdma_prep_dma_cyclic; mmp_tdma_probe() 692 tdev->device.device_tx_status = mmp_tdma_tx_status; mmp_tdma_probe() 693 tdev->device.device_issue_pending = mmp_tdma_issue_pending; mmp_tdma_probe() 694 tdev->device.device_config = mmp_tdma_config; mmp_tdma_probe() 695 tdev->device.device_pause = mmp_tdma_pause_chan; mmp_tdma_probe() 696 tdev->device.device_resume = mmp_tdma_resume_chan; mmp_tdma_probe() 697 tdev->device.device_terminate_all = mmp_tdma_terminate_all; mmp_tdma_probe() 698 tdev->device.copy_align = TDMA_ALIGNMENT; mmp_tdma_probe() 701 platform_set_drvdata(pdev, tdev); mmp_tdma_probe() 703 ret = dma_async_device_register(&tdev->device); mmp_tdma_probe() 705 dev_err(tdev->device.dev, "unable to register\n"); mmp_tdma_probe() 711 mmp_tdma_xlate, tdev); mmp_tdma_probe() 713 dev_err(tdev->device.dev, mmp_tdma_probe() 715 dma_async_device_unregister(&tdev->device); mmp_tdma_probe() 719 dev_info(tdev->device.dev, "initialized\n"); mmp_tdma_probe()
|
/linux-4.1.27/drivers/gpu/drm/ttm/ |
H A D | ttm_object.c | 47 * @tdev: Pointer to the ttm_object_device. 70 struct ttm_object_device *tdev; member in struct:ttm_object_file 165 struct ttm_object_device *tdev = tfile->tdev; ttm_base_object_init() local 174 spin_lock(&tdev->object_lock); ttm_base_object_init() 175 ret = drm_ht_just_insert_please_rcu(&tdev->object_hash, ttm_base_object_init() 178 spin_unlock(&tdev->object_lock); ttm_base_object_init() 190 spin_lock(&tdev->object_lock); ttm_base_object_init() 191 (void)drm_ht_remove_item_rcu(&tdev->object_hash, &base->hash); ttm_base_object_init() 192 spin_unlock(&tdev->object_lock); ttm_base_object_init() 202 struct ttm_object_device *tdev = base->tfile->tdev; ttm_release_base() local 204 spin_lock(&tdev->object_lock); ttm_release_base() 205 (void)drm_ht_remove_item_rcu(&tdev->object_hash, &base->hash); ttm_release_base() 206 spin_unlock(&tdev->object_lock); ttm_release_base() 252 ttm_base_object_lookup_for_ref(struct ttm_object_device *tdev, uint32_t key) ttm_base_object_lookup_for_ref() argument 256 struct drm_open_hash *ht = &tdev->object_hash; ttm_base_object_lookup_for_ref() 326 struct ttm_mem_global *mem_glob = tfile->tdev->mem_glob; ttm_ref_object_add() 394 struct ttm_mem_global *mem_glob = tfile->tdev->mem_glob; ttm_ref_object_release() 460 struct ttm_object_file *ttm_object_file_init(struct ttm_object_device *tdev, ttm_object_file_init() argument 472 tfile->tdev = tdev; ttm_object_file_init() 500 struct ttm_object_device *tdev = kmalloc(sizeof(*tdev), GFP_KERNEL); ttm_object_device_init() local 503 if (unlikely(tdev == NULL)) ttm_object_device_init() 506 tdev->mem_glob = mem_glob; ttm_object_device_init() 507 spin_lock_init(&tdev->object_lock); ttm_object_device_init() 508 atomic_set(&tdev->object_count, 0); ttm_object_device_init() 509 ret = drm_ht_create(&tdev->object_hash, hash_order); ttm_object_device_init() 513 tdev->ops = *ops; ttm_object_device_init() 514 tdev->dmabuf_release = tdev->ops.release; ttm_object_device_init() 515 tdev->ops.release = ttm_prime_dmabuf_release; ttm_object_device_init() 516 tdev->dma_buf_size = ttm_round_pot(sizeof(struct dma_buf)) + ttm_object_device_init() 518 return tdev; ttm_object_device_init() 521 kfree(tdev); ttm_object_device_init() 528 struct ttm_object_device *tdev = *p_tdev; ttm_object_device_release() local 532 spin_lock(&tdev->object_lock); ttm_object_device_release() 533 drm_ht_remove(&tdev->object_hash); ttm_object_device_release() 534 spin_unlock(&tdev->object_lock); ttm_object_device_release() 536 kfree(tdev); ttm_object_device_release() 596 struct ttm_object_device *tdev = base->tfile->tdev; ttm_prime_dmabuf_release() local 598 if (tdev->dmabuf_release) ttm_prime_dmabuf_release() 599 tdev->dmabuf_release(dma_buf); ttm_prime_dmabuf_release() 604 ttm_mem_global_free(tdev->mem_glob, tdev->dma_buf_size); ttm_prime_dmabuf_release() 622 struct ttm_object_device *tdev = tfile->tdev; ttm_prime_fd_to_handle() local 632 if (dma_buf->ops != &tdev->ops) ttm_prime_fd_to_handle() 659 struct ttm_object_device *tdev = tfile->tdev; ttm_prime_handle_to_fd() local 688 exp_info.ops = &tdev->ops; ttm_prime_handle_to_fd() 696 ret = ttm_mem_global_alloc(tdev->mem_glob, tdev->dma_buf_size, ttm_prime_handle_to_fd() 706 ttm_mem_global_free(tdev->mem_glob, ttm_prime_handle_to_fd() 707 tdev->dma_buf_size); ttm_prime_handle_to_fd()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | cxgb3_offload.c | 70 static inline int offload_activated(struct t3cdev *tdev) offload_activated() argument 72 const struct adapter *adapter = tdev2adap(tdev); offload_activated() 86 struct t3cdev *tdev; cxgb3_register_client() local 92 list_for_each_entry(tdev, &ofld_dev_list, ofld_dev_list) { cxgb3_register_client() 93 if (offload_activated(tdev)) cxgb3_register_client() 94 client->add(tdev); cxgb3_register_client() 111 struct t3cdev *tdev; cxgb3_unregister_client() local 117 list_for_each_entry(tdev, &ofld_dev_list, ofld_dev_list) { cxgb3_unregister_client() 118 if (offload_activated(tdev)) cxgb3_unregister_client() 119 client->remove(tdev); cxgb3_unregister_client() 129 * @tdev: the offload device 133 void cxgb3_add_clients(struct t3cdev *tdev) cxgb3_add_clients() argument 140 client->add(tdev); cxgb3_add_clients() 148 * @tdev: the offload device 152 void cxgb3_remove_clients(struct t3cdev *tdev) cxgb3_remove_clients() argument 159 client->remove(tdev); cxgb3_remove_clients() 164 void cxgb3_event_notify(struct t3cdev *tdev, u32 event, u32 port) cxgb3_event_notify() argument 171 client->event_handler(tdev, event, port); cxgb3_event_notify() 373 static int cxgb_offload_ctl(struct t3cdev *tdev, unsigned int req, void *data) cxgb_offload_ctl() argument 375 struct adapter *adapter = tdev2adap(tdev); cxgb_offload_ctl() 501 void *cxgb3_free_atid(struct t3cdev *tdev, int atid) cxgb3_free_atid() argument 503 struct tid_info *t = &(T3C_DATA(tdev))->tid_maps; cxgb3_free_atid() 521 void cxgb3_free_stid(struct t3cdev *tdev, int stid) cxgb3_free_stid() argument 523 struct tid_info *t = &(T3C_DATA(tdev))->tid_maps; cxgb3_free_stid() 535 void cxgb3_insert_tid(struct t3cdev *tdev, struct cxgb3_client *client, cxgb3_insert_tid() argument 538 struct tid_info *t = &(T3C_DATA(tdev))->tid_maps; cxgb3_insert_tid() 565 struct t3cdev *tdev = td->dev; t3_process_tid_release_list() local 586 cxgb3_ofld_send(tdev, skb); t3_process_tid_release_list() 604 void cxgb3_queue_tid_release(struct t3cdev *tdev, unsigned int tid) cxgb3_queue_tid_release() argument 606 struct t3c_data *td = T3C_DATA(tdev); cxgb3_queue_tid_release() 627 void cxgb3_remove_tid(struct t3cdev *tdev, void *ctx, unsigned int tid) cxgb3_remove_tid() argument 629 struct tid_info *t = &(T3C_DATA(tdev))->tid_maps; cxgb3_remove_tid() 632 if (tdev->type == T3A) cxgb3_remove_tid() 640 cxgb3_ofld_send(tdev, skb); cxgb3_remove_tid() 643 cxgb3_queue_tid_release(tdev, tid); cxgb3_remove_tid() 650 int cxgb3_alloc_atid(struct t3cdev *tdev, struct cxgb3_client *client, cxgb3_alloc_atid() argument 654 struct tid_info *t = &(T3C_DATA(tdev))->tid_maps; cxgb3_alloc_atid() 674 int cxgb3_alloc_stid(struct t3cdev *tdev, struct cxgb3_client *client, cxgb3_alloc_stid() argument 678 struct tid_info *t = &(T3C_DATA(tdev))->tid_maps; cxgb3_alloc_stid() 1081 struct t3cdev *tdev = dev2t3cdev(dev); cxgb_neigh_update() local 1083 BUG_ON(!tdev); cxgb_neigh_update() 1084 t3_l2t_update(tdev, neigh); cxgb_neigh_update() 1088 static void set_l2t_ix(struct t3cdev *tdev, u32 tid, struct l2t_entry *e) set_l2t_ix() argument 1107 tdev->send(tdev, skb); set_l2t_ix() 1116 struct t3cdev *tdev; cxgb_redirect() local 1126 tdev = dev2t3cdev(dev); cxgb_redirect() 1127 BUG_ON(!tdev); cxgb_redirect() 1130 e = t3_l2t_get(tdev, new, dev, daddr); cxgb_redirect() 1137 ti = &(T3C_DATA(tdev))->tid_maps; cxgb_redirect() 1145 l2t_hold(L2DATA(tdev), e); cxgb_redirect() 1147 set_l2t_ix(tdev, tid, e); cxgb_redirect() 1151 l2t_release(tdev, e); cxgb_redirect() 1243 struct t3cdev *dev = &adapter->tdev; cxgb3_offload_activate() 1314 struct t3cdev *tdev = &adapter->tdev; cxgb3_offload_deactivate() local 1315 struct t3c_data *t = T3C_DATA(tdev); cxgb3_offload_deactivate() 1323 T3C_DATA(tdev) = NULL; cxgb3_offload_deactivate() 1325 d = L2DATA(tdev); cxgb3_offload_deactivate() 1327 RCU_INIT_POINTER(tdev->l2opt, NULL); cxgb3_offload_deactivate() 1334 static inline void register_tdev(struct t3cdev *tdev) register_tdev() argument 1339 snprintf(tdev->name, sizeof(tdev->name), "ofld_dev%d", unit++); register_tdev() 1340 list_add_tail(&tdev->ofld_dev_list, &ofld_dev_list); register_tdev() 1344 static inline void unregister_tdev(struct t3cdev *tdev) unregister_tdev() argument 1347 list_del(&tdev->ofld_dev_list); unregister_tdev() 1372 struct t3cdev *tdev = &adapter->tdev; cxgb3_adapter_ofld() local 1374 INIT_LIST_HEAD(&tdev->ofld_dev_list); cxgb3_adapter_ofld() 1376 cxgb3_set_dummy_ops(tdev); cxgb3_adapter_ofld() 1377 tdev->send = t3_offload_tx; cxgb3_adapter_ofld() 1378 tdev->ctl = cxgb_offload_ctl; cxgb3_adapter_ofld() 1379 tdev->type = adap2type(adapter); cxgb3_adapter_ofld() 1381 register_tdev(tdev); cxgb3_adapter_ofld() 1386 struct t3cdev *tdev = &adapter->tdev; cxgb3_adapter_unofld() local 1388 tdev->recv = NULL; cxgb3_adapter_unofld() 1389 tdev->neigh_update = NULL; cxgb3_adapter_unofld() 1391 unregister_tdev(tdev); cxgb3_adapter_unofld()
|
H A D | cxgb3_offload.h | 65 void cxgb3_add_clients(struct t3cdev *tdev); 66 void cxgb3_remove_clients(struct t3cdev *tdev); 67 void cxgb3_event_notify(struct t3cdev *tdev, u32 event, u32 port); 90 void (*event_handler)(struct t3cdev *tdev, u32 event, u32 port);
|
H A D | cxgb3_main.c | 890 static inline int offload_tx(struct t3cdev *tdev, struct sk_buff *skb) offload_tx() argument 895 ret = t3_offload_tx(tdev, skb); offload_tx() 917 offload_tx(&adapter->tdev, skb); write_smt_entry() 1349 struct t3cdev *tdev = dev2t3cdev(dev); offload_open() local 1360 tdev->lldev = adapter->port[0]; offload_open() 1372 if (sysfs_create_group(&tdev->lldev->dev.kobj, &offload_attr_group)) offload_open() 1376 cxgb3_add_clients(tdev); offload_open() 1383 cxgb3_set_dummy_ops(tdev); offload_open() 1388 static int offload_close(struct t3cdev *tdev) offload_close() argument 1390 struct adapter *adapter = tdev2adap(tdev); offload_close() 1391 struct t3c_data *td = T3C_DATA(tdev); offload_close() 1397 cxgb3_remove_clients(tdev); offload_close() 1399 sysfs_remove_group(&tdev->lldev->dev.kobj, &offload_attr_group); offload_close() 1404 tdev->lldev = NULL; offload_close() 1405 cxgb3_set_dummy_ops(tdev); offload_close() 1443 cxgb3_event_notify(&adapter->tdev, OFFLOAD_PORT_UP, pi->port_id); cxgb_open() 1476 cxgb3_event_notify(&adapter->tdev, OFFLOAD_PORT_DOWN, pi->port_id); __cxgb_close() 2772 cxgb3_event_notify(&adapter->tdev, OFFLOAD_DB_FULL, 0); db_full_task() 2780 cxgb3_event_notify(&adapter->tdev, OFFLOAD_DB_EMPTY, 0); db_empty_task() 2790 cxgb3_event_notify(&adapter->tdev, OFFLOAD_DB_DROP, 0); db_drop_task() 2875 cxgb3_event_notify(&adapter->tdev, OFFLOAD_STATUS_DOWN, 0); t3_adapter_error() 2876 offload_close(&adapter->tdev); t3_adapter_error() 2941 cxgb3_event_notify(&adapter->tdev, OFFLOAD_STATUS_UP, 0); 3388 offload_close(&adapter->tdev); remove_one()
|
H A D | adapter.h | 222 struct t3cdev tdev; member in struct:adapter 300 #define tdev2adap(d) container_of(d, struct adapter, tdev) 307 int t3_offload_tx(struct t3cdev *tdev, struct sk_buff *skb);
|
H A D | sge.c | 1760 * @tdev: the offload device to send to 1767 int t3_offload_tx(struct t3cdev *tdev, struct sk_buff *skb) t3_offload_tx() argument 1769 struct adapter *adap = tdev2adap(tdev); t3_offload_tx() 1802 * @tdev: the offload device that will be receiving the packets 1809 static inline void deliver_partial_bundle(struct t3cdev *tdev, deliver_partial_bundle() argument 1815 tdev->recv(tdev, skbs, n); deliver_partial_bundle() 1863 adapter->tdev.recv(&adapter->tdev, skbs, ofld_poll() 1874 deliver_partial_bundle(&adapter->tdev, q, skbs, ngathered); ofld_poll() 1882 * @tdev: the offload device receiving the packet 1891 static inline int rx_offload(struct t3cdev *tdev, struct sge_rspq *rq, rx_offload() argument 1902 tdev->recv(tdev, rx_gather, RX_BUNDLE_SIZE); rx_offload() 2372 ngathered = rx_offload(&adap->tdev, q, skb, process_responses() 2383 deliver_partial_bundle(&adap->tdev, q, offload_skbs, ngathered); process_responses()
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | ti_usb_3410_5052.c | 128 static int ti_command_out_sync(struct ti_device *tdev, __u8 command, 130 static int ti_command_in_sync(struct ti_device *tdev, __u8 command, 133 static int ti_write_byte(struct usb_serial_port *port, struct ti_device *tdev, 136 static int ti_download_firmware(struct ti_device *tdev); 293 struct ti_device *tdev; ti_startup() local 304 tdev = kzalloc(sizeof(struct ti_device), GFP_KERNEL); ti_startup() 305 if (!tdev) ti_startup() 308 mutex_init(&tdev->td_open_close_lock); ti_startup() 309 tdev->td_serial = serial; ti_startup() 310 usb_set_serial_data(serial, tdev); ti_startup() 314 tdev->td_is_3410 = 1; ti_startup() 316 tdev->td_is_3410 ? "3410" : "5052"); ti_startup() 320 status = ti_download_firmware(tdev); ti_startup() 326 if (tdev->td_is_3410) { ti_startup() 345 kfree(tdev); ti_startup() 353 struct ti_device *tdev = usb_get_serial_data(serial); ti_release() local 355 kfree(tdev); ti_release() 396 struct ti_device *tdev; ti_open() local 409 tdev = tport->tp_tdev; ti_open() 412 if (mutex_lock_interruptible(&tdev->td_open_close_lock)) ti_open() 421 if (tdev->td_open_port_count == 0) { ti_open() 423 urb = tdev->td_serial->port[0]->interrupt_in_urb; ti_open() 429 urb->context = tdev; ti_open() 441 status = ti_command_out_sync(tdev, TI_OPEN_PORT, ti_open() 450 status = ti_command_out_sync(tdev, TI_START_PORT, ti_open() 459 status = ti_command_out_sync(tdev, TI_PURGE_PORT, ti_open() 466 status = ti_command_out_sync(tdev, TI_PURGE_PORT, ti_open() 483 status = ti_command_out_sync(tdev, TI_OPEN_PORT, ti_open() 492 status = ti_command_out_sync(tdev, TI_START_PORT, ti_open() 518 ++tdev->td_open_port_count; ti_open() 523 if (tdev->td_open_port_count == 0) ti_open() 526 mutex_unlock(&tdev->td_open_close_lock); ti_open() 534 struct ti_device *tdev; ti_close() local 541 tdev = usb_get_serial_data(port->serial); ti_close() 543 if (tdev == NULL || tport == NULL) ti_close() 558 status = ti_command_out_sync(tdev, TI_CLOSE_PORT, ti_close() 566 do_unlock = !mutex_lock_interruptible(&tdev->td_open_close_lock); ti_close() 574 mutex_unlock(&tdev->td_open_close_lock); ti_close() 923 struct ti_device *tdev = urb->context; ti_interrupt_callback() local 925 struct usb_serial *serial = tdev->td_serial; ti_interrupt_callback() 943 tdev->td_urb_error = 1; ti_interrupt_callback() 947 tdev->td_urb_error = 1; ti_interrupt_callback() 1187 struct ti_device *tdev = tport->tp_tdev; ti_get_lsr() local 1197 status = ti_command_in_sync(tdev, TI_GET_PORT_STATUS, ti_get_lsr() 1338 static int ti_command_out_sync(struct ti_device *tdev, __u8 command, ti_command_out_sync() argument 1343 status = usb_control_msg(tdev->td_serial->dev, ti_command_out_sync() 1344 usb_sndctrlpipe(tdev->td_serial->dev, 0), command, ti_command_out_sync() 1358 static int ti_command_in_sync(struct ti_device *tdev, __u8 command, ti_command_in_sync() argument 1363 status = usb_control_msg(tdev->td_serial->dev, ti_command_in_sync() 1364 usb_rcvctrlpipe(tdev->td_serial->dev, 0), command, ti_command_in_sync() 1379 struct ti_device *tdev, unsigned long addr, ti_write_byte() 1402 status = ti_command_out_sync(tdev, TI_WRITE_DATA, TI_RAM_PORT, 0, ti_write_byte() 1442 static int ti_download_firmware(struct ti_device *tdev) ti_download_firmware() argument 1447 struct usb_device *dev = tdev->td_serial->dev; ti_download_firmware() 1449 tdev->td_serial->port[0]->bulk_out_endpointAddress); ti_download_firmware() 1483 if (tdev->td_is_3410) ti_download_firmware() 1378 ti_write_byte(struct usb_serial_port *port, struct ti_device *tdev, unsigned long addr, __u8 mask, __u8 byte) ti_write_byte() argument
|
/linux-4.1.27/drivers/infiniband/hw/cxgb3/ |
H A D | iwch_cm.c | 139 static int iwch_l2t_send(struct t3cdev *tdev, struct sk_buff *skb, struct l2t_entry *l2e) iwch_l2t_send() argument 144 rdev = (struct cxio_rdev *)tdev->ulp; iwch_l2t_send() 149 error = l2t_send(tdev, skb, l2e); iwch_l2t_send() 155 int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb) iwch_cxgb3_ofld_send() argument 160 rdev = (struct cxio_rdev *)tdev->ulp; iwch_cxgb3_ofld_send() 165 error = cxgb3_ofld_send(tdev, skb); iwch_cxgb3_ofld_send() 171 static void release_tid(struct t3cdev *tdev, u32 hwtid, struct sk_buff *skb) release_tid() argument 182 iwch_cxgb3_ofld_send(tdev, skb); release_tid() 204 return iwch_cxgb3_ofld_send(ep->com.tdev, skb); iwch_quiesce_tid() 225 return iwch_cxgb3_ofld_send(ep->com.tdev, skb); iwch_resume_tid() 231 ep->emss = T3C_DATA(ep->com.tdev)->mtus[G_TCPOPT_MSS(opt)] - 40; set_emss() 287 cxgb3_remove_tid(ep->com.tdev, (void *)ep, ep->hwtid); __free_ep() 289 l2t_release(ep->com.tdev, ep->l2t); __free_ep() 404 return iwch_l2t_send(ep->com.tdev, skb, ep->l2t); send_halfclose() 426 return iwch_l2t_send(ep->com.tdev, skb, ep->l2t); send_abort() 445 mtu_idx = find_best_mtu(T3C_DATA(ep->com.tdev), dst_mtu(ep->dst)); send_connect() 471 return iwch_l2t_send(ep->com.tdev, skb, ep->l2t); send_connect() 528 iwch_l2t_send(ep->com.tdev, skb, ep->l2t); send_mpa_req() 579 return iwch_l2t_send(ep->com.tdev, skb, ep->l2t); send_mpa_reject() 630 return iwch_l2t_send(ep->com.tdev, skb, ep->l2t); send_mpa_reply() 633 static int act_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) act_establish() argument 645 cxgb3_insert_tid(ep->com.tdev, &t3c_client, ep, tid); act_establish() 653 cxgb3_free_atid(ep->com.tdev, ep->atid); act_establish() 810 iwch_cxgb3_ofld_send(ep->com.tdev, skb); update_rx_credits() 1044 static int rx_data(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) rx_data() argument 1090 static int tx_ack(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) tx_ack() argument 1137 static int abort_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) abort_rpl() argument 1182 static int act_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) act_open_rpl() argument 1191 if (ep->com.tdev->type != T3A && act_open_has_tid(rpl->status)) act_open_rpl() 1192 release_tid(ep->com.tdev, GET_TID(rpl), NULL); act_open_rpl() 1193 cxgb3_free_atid(ep->com.tdev, ep->atid); act_open_rpl() 1195 l2t_release(ep->com.tdev, ep->l2t); act_open_rpl() 1225 return iwch_cxgb3_ofld_send(ep->com.tdev, skb); listen_start() 1228 static int pass_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) pass_open_rpl() argument 1258 return iwch_cxgb3_ofld_send(ep->com.tdev, skb); listen_stop() 1261 static int close_listsrv_rpl(struct t3cdev *tdev, struct sk_buff *skb, close_listsrv_rpl() argument 1285 mtu_idx = find_best_mtu(T3C_DATA(ep->com.tdev), dst_mtu(ep->dst)); accept_cr() 1307 iwch_l2t_send(ep->com.tdev, skb, ep->l2t); accept_cr() 1312 static void reject_cr(struct t3cdev *tdev, u32 hwtid, __be32 peer_ip, reject_cr() argument 1315 PDBG("%s t3cdev %p tid %u peer_ip %x\n", __func__, tdev, hwtid, reject_cr() 1321 if (tdev->type != T3A) reject_cr() 1322 release_tid(tdev, hwtid, skb); reject_cr() 1336 iwch_cxgb3_ofld_send(tdev, skb); reject_cr() 1340 static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) pass_accept_req() argument 1363 if (tdev->ctl(tdev, GET_IFF_FROM_MAC, &tim) < 0 || !tim.dev) { pass_accept_req() 1370 rt = find_route(tdev, pass_accept_req() 1381 l2t = t3_l2t_get(tdev, dst, NULL, &req->peer_ip); pass_accept_req() 1392 l2t_release(tdev, l2t); pass_accept_req() 1397 child_ep->com.tdev = tdev; pass_accept_req() 1412 cxgb3_insert_tid(tdev, &t3c_client, child_ep, hwtid); pass_accept_req() 1416 reject_cr(tdev, hwtid, req->peer_ip, skb); pass_accept_req() 1421 static int pass_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) pass_establish() argument 1439 static int peer_close(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) peer_close() argument 1530 static int peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) peer_abort() argument 1544 t3_l2t_send_event(ep->com.tdev, ep->l2t); peer_abort() 1634 iwch_cxgb3_ofld_send(ep->com.tdev, rpl_skb); peer_abort() 1641 static int close_con_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) close_con_rpl() argument 1695 static int terminate(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) terminate() argument 1712 static int ec_status(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) ec_status() argument 1925 ep->com.tdev = h->rdev.t3cdev_p; iwch_connect() 1954 ep->l2t = t3_l2t_get(ep->com.tdev, ep->dst, NULL, iwch_connect() 1978 cxgb3_free_atid(ep->com.tdev, ep->atid); iwch_connect() 2007 ep->com.tdev = h->rdev.t3cdev_p; iwch_create_listen() 2037 cxgb3_free_stid(ep->com.tdev, ep->stid); iwch_create_listen() 2061 cxgb3_free_stid(ep->com.tdev, ep->stid); iwch_destroy_listen() 2075 struct t3cdev *tdev; iwch_ep_disconnect() local 2083 tdev = (struct t3cdev *)ep->com.tdev; iwch_ep_disconnect() 2084 rdev = (struct cxio_rdev *)tdev->ulp; iwch_ep_disconnect() 2151 l2t_release(ep->com.tdev, ep->l2t); iwch_ep_redirect() 2184 struct t3cdev *tdev; process_work() local 2189 tdev = *((struct t3cdev **) (skb->cb + sizeof(void *))); process_work() 2190 ret = work_handlers[G_OPCODE(ntohl((__force __be32)skb->csum))](tdev, skb, ep); process_work() 2203 static int sched(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) sched() argument 2210 * Save ctx and tdev in the skb->cb area. sched() 2213 *((struct t3cdev **) (skb->cb + sizeof(void *))) = tdev; sched() 2223 static int set_tcb_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) set_tcb_rpl() argument
|
H A D | iwch.c | 144 static void open_rnic_dev(struct t3cdev *tdev) open_rnic_dev() argument 148 PDBG("%s t3cdev %p\n", __func__, tdev); open_rnic_dev() 157 rnicp->rdev.t3cdev_p = tdev; open_rnic_dev() 175 close_rnic_dev(tdev); open_rnic_dev() 182 static void close_rnic_dev(struct t3cdev *tdev) close_rnic_dev() argument 185 PDBG("%s t3cdev %p\n", __func__, tdev); close_rnic_dev() 188 if (dev->rdev.t3cdev_p == tdev) { close_rnic_dev() 205 static void iwch_event_handler(struct t3cdev *tdev, u32 evt, u32 port_id) iwch_event_handler() argument 207 struct cxio_rdev *rdev = tdev->ulp; iwch_event_handler()
|
H A D | iwch_cm.h | 157 struct t3cdev *tdev; member in struct:iwch_ep_common
|
H A D | cxio_hal.h | 197 int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb);
|
H A D | cxio_hal.c | 61 static struct cxio_rdev *cxio_hal_find_rdev_by_t3cdev(struct t3cdev *tdev) cxio_hal_find_rdev_by_t3cdev() argument 66 if (rdev->t3cdev_p == tdev) cxio_hal_find_rdev_by_t3cdev()
|
/linux-4.1.27/drivers/pnp/ |
H A D | resource.c | 168 struct pnp_dev *tdev; pnp_check_port() local 206 pnp_for_each_dev(tdev) { pnp_for_each_dev() 207 if (tdev == dev) pnp_for_each_dev() 210 (tres = pnp_get_resource(tdev, IORESOURCE_IO, i)); pnp_for_each_dev() 231 struct pnp_dev *tdev; pnp_check_mem() local 269 pnp_for_each_dev(tdev) { pnp_for_each_dev() 270 if (tdev == dev) pnp_for_each_dev() 273 (tres = pnp_get_resource(tdev, IORESOURCE_MEM, i)); pnp_for_each_dev() 354 struct pnp_dev *tdev; pnp_check_irq() local 396 pnp_for_each_dev(tdev) { pnp_for_each_dev() 397 if (tdev == dev) pnp_for_each_dev() 400 (tres = pnp_get_resource(tdev, IORESOURCE_IRQ, i)); pnp_for_each_dev() 418 struct pnp_dev *tdev; pnp_check_dma() local 455 pnp_for_each_dev(tdev) { pnp_for_each_dev() 456 if (tdev == dev) pnp_for_each_dev() 459 (tres = pnp_get_resource(tdev, IORESOURCE_DMA, i)); pnp_for_each_dev()
|
/linux-4.1.27/drivers/ata/ |
H A D | libata-zpodd.c | 177 device_set_run_wake(&dev->tdev, true); zpodd_enable_run_wake() 178 acpi_pm_device_run_wake(&dev->tdev, true); zpodd_enable_run_wake() 187 acpi_pm_device_run_wake(&dev->tdev, false); zpodd_disable_run_wake() 188 device_set_run_wake(&dev->tdev, false); zpodd_disable_run_wake() 255 struct acpi_device *adev = ACPI_COMPANION(&dev->tdev); zpodd_init() 275 dev_pm_qos_expose_flags(&dev->tdev, 0); zpodd_init()
|
H A D | libata-transport.c | 69 container_of((d), struct ata_device, tdev) 74 container_of((d), struct ata_link, tdev) 79 container_of((d), struct ata_port, tdev) 258 struct device *dev = &ap->tdev; ata_tport_delete() 282 struct device *dev = &ap->tdev; ata_tport_add() 383 struct device *dev = &link->tdev; ata_tlink_delete() 407 struct device *dev = &link->tdev; ata_tlink_add() 413 dev->parent = get_device(&ap->tdev); ata_tlink_add() 627 transport_destroy_device(&dev->tdev); ata_tdev_free() 628 put_device(&dev->tdev); ata_tdev_free() 639 struct device *dev = &ata_dev->tdev; ata_tdev_delete() 658 struct device *dev = &ata_dev->tdev; ata_tdev_add() 664 dev->parent = get_device(&link->tdev); ata_tdev_add()
|
H A D | libata-acpi.c | 62 NULL : ACPI_HANDLE(&dev->tdev); ata_dev_acpi_handle() 72 struct ata_device *tdev; ata_acpi_detach_device() local 75 ata_for_each_dev(tdev, tlink, ALL) ata_acpi_detach_device() 76 tdev->flags |= ATA_DFLAG_DETACH; ata_acpi_detach_device() 187 acpi_preset_companion(&ap->tdev, host_companion, ap->port_no); ata_acpi_bind_port() 192 adev = ACPI_COMPANION(&ap->tdev); ata_acpi_bind_port() 208 struct acpi_device *port_companion = ACPI_COMPANION(&ap->tdev); ata_acpi_bind_dev() 233 acpi_preset_companion(&dev->tdev, parent, adr); ata_acpi_bind_dev() 234 adev = ACPI_COMPANION(&dev->tdev); ata_acpi_bind_dev() 268 if (ACPI_HANDLE(&ap->tdev) && gtm) ata_acpi_dissociate() 292 acpi_handle handle = ACPI_HANDLE(&ap->tdev); ata_acpi_gtm() 367 status = acpi_evaluate_object(ACPI_HANDLE(&ap->tdev), "_STM", ata_acpi_stm() 843 if (ACPI_HANDLE(&ap->tdev) && gtm) { ata_acpi_on_resume() 888 return acpi_pm_device_sleep_state(&dev->tdev, NULL, d_max_in); ata_acpi_choose_suspend_state() 925 port_handle = ACPI_HANDLE(&ap->tdev); pata_acpi_set_state()
|
H A D | pata_acpi.c | 40 if (ACPI_HANDLE(&ap->tdev) == NULL || ata_acpi_gtm(ap, &acpi->gtm) < 0) pacpi_pre_reset() 196 if (ACPI_HANDLE(&ap->tdev) == NULL) pacpi_port_start()
|
H A D | libata.h | 109 #define to_ata_port(d) container_of(d, struct ata_port, tdev)
|
H A D | libata-eh.c | 445 struct ata_device *tdev; ata_eh_clear_action() local 449 ata_for_each_dev(tdev, link, ALL) ata_eh_clear_action() 450 ehi->dev_action[tdev->devno] &= ~action; ata_eh_clear_action() 457 ata_for_each_dev(tdev, link, ALL) ata_eh_clear_action() 458 ehi->dev_action[tdev->devno] |= ata_eh_clear_action()
|
H A D | libata-scsi.c | 3695 &ap->tdev, ap->host->dev); ata_scsi_add_hosts()
|
/linux-4.1.27/drivers/video/fbdev/ |
H A D | pmag-ba-fb.c | 146 struct tc_dev *tdev = to_tc_dev(dev); pmagbafb_probe() local 174 start = tdev->resource.start; pmagbafb_probe() 175 len = tdev->resource.end - start + 1; pmagbafb_probe() 240 struct tc_dev *tdev = to_tc_dev(dev); pmagbafb_remove() local 249 start = tdev->resource.start; pmagbafb_remove() 250 len = tdev->resource.end - start + 1; pmagbafb_remove()
|
H A D | pmagb-b-fb.c | 251 struct tc_dev *tdev = to_tc_dev(dev); pmagbbfb_probe() local 281 start = tdev->resource.start; pmagbbfb_probe() 282 len = tdev->resource.end - start + 1; pmagbbfb_probe() 358 struct tc_dev *tdev = to_tc_dev(dev); pmagbbfb_remove() local 367 start = tdev->resource.start; pmagbbfb_remove() 368 len = tdev->resource.end - start + 1; pmagbbfb_remove()
|
/linux-4.1.27/drivers/s390/char/ |
H A D | tape_core.c | 95 struct tape_device *tdev; tape_medium_state_show() local 97 tdev = dev_get_drvdata(dev); tape_medium_state_show() 98 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->medium_state); tape_medium_state_show() 107 struct tape_device *tdev; tape_first_minor_show() local 109 tdev = dev_get_drvdata(dev); tape_first_minor_show() 110 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->first_minor); tape_first_minor_show() 119 struct tape_device *tdev; tape_state_show() local 121 tdev = dev_get_drvdata(dev); tape_state_show() 122 return scnprintf(buf, PAGE_SIZE, "%s\n", (tdev->first_minor < 0) ? tape_state_show() 123 "OFFLINE" : tape_state_verbose[tdev->tape_state]); tape_state_show() 132 struct tape_device *tdev; tape_operation_show() local 135 tdev = dev_get_drvdata(dev); tape_operation_show() 136 if (tdev->first_minor < 0) tape_operation_show() 139 spin_lock_irq(get_ccwdev_lock(tdev->cdev)); tape_operation_show() 140 if (list_empty(&tdev->req_queue)) tape_operation_show() 145 req = list_entry(tdev->req_queue.next, struct tape_request, tape_operation_show() 149 spin_unlock_irq(get_ccwdev_lock(tdev->cdev)); tape_operation_show() 159 struct tape_device *tdev; tape_blocksize_show() local 161 tdev = dev_get_drvdata(dev); tape_blocksize_show() 163 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->char_data.block_size); tape_blocksize_show()
|
/linux-4.1.27/drivers/usb/misc/ |
H A D | usbtest.c | 92 #define ERROR(tdev, fmt, args...) \ 93 dev_err(&(tdev)->intf->dev , fmt , ## args) 94 #define WARNING(tdev, fmt, args...) \ 95 dev_warn(&(tdev)->intf->dev , fmt , ## args) 340 static int check_guard_bytes(struct usbtest_dev *tdev, struct urb *urb) check_guard_bytes() argument 348 ERROR(tdev, "guard byte[%d] %d (not %d)\n", check_guard_bytes() 356 static int simple_check_buf(struct usbtest_dev *tdev, struct urb *urb) simple_check_buf() argument 364 int ret = check_guard_bytes(tdev, urb); simple_check_buf() 389 ERROR(tdev, "buf[%d] = %d (not %d)\n", i, *buf, expected); simple_check_buf() 411 struct usbtest_dev *tdev, simple_io() 447 retval = simple_check_buf(tdev, urb); simple_io() 553 struct usbtest_dev *tdev, perform_sglist() 561 struct usb_device *udev = testdev_to_usbdev(tdev); perform_sglist() 591 ERROR(tdev, "perform_sglist failed, " perform_sglist() 651 static int is_good_config(struct usbtest_dev *tdev, int len) is_good_config() argument 657 config = (struct usb_config_descriptor *) tdev->buf; is_good_config() 663 ERROR(tdev, "bogus config descriptor length\n"); is_good_config() 668 ERROR(tdev, "high bit of config attributes not set\n"); is_good_config() 672 ERROR(tdev, "reserved config bits set\n"); is_good_config() 684 ERROR(tdev, "bogus config descriptor read size\n"); is_good_config() 688 static int is_good_ext(struct usbtest_dev *tdev, u8 *buf) is_good_ext() argument 696 ERROR(tdev, "bogus usb 2.0 extension descriptor length\n"); is_good_ext() 703 ERROR(tdev, "reserved bits set\n"); is_good_ext() 710 static int is_good_ss_cap(struct usbtest_dev *tdev, u8 *buf) is_good_ss_cap() argument 717 ERROR(tdev, "bogus superspeed device capability descriptor length\n"); is_good_ss_cap() 726 ERROR(tdev, "reserved bits set in bmAttributes\n"); is_good_ss_cap() 732 ERROR(tdev, "reserved bits set in wSpeedSupported\n"); is_good_ss_cap() 739 static int is_good_con_id(struct usbtest_dev *tdev, u8 *buf) is_good_con_id() argument 746 ERROR(tdev, "bogus container id descriptor length\n"); is_good_con_id() 751 ERROR(tdev, "reserved bits set\n"); is_good_con_id() 1575 static int verify_not_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) verify_not_halted() argument 1583 ERROR(tdev, "ep %02x couldn't get no-halt status, %d\n", verify_not_halted() 1588 ERROR(tdev, "ep %02x bogus status: %04x != 0\n", ep, status); verify_not_halted() 1591 retval = simple_io(tdev, urb, 1, 0, 0, __func__); verify_not_halted() 1597 static int verify_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) verify_halted() argument 1605 ERROR(tdev, "ep %02x couldn't get halt status, %d\n", verify_halted() 1610 ERROR(tdev, "ep %02x bogus status: %04x != 1\n", ep, status); verify_halted() 1613 retval = simple_io(tdev, urb, 1, 0, -EPIPE, __func__); verify_halted() 1616 retval = simple_io(tdev, urb, 1, 0, -EPIPE, "verify_still_halted"); verify_halted() 1622 static int test_halt(struct usbtest_dev *tdev, int ep, struct urb *urb) test_halt() argument 1627 retval = verify_not_halted(tdev, ep, urb); test_halt() 1637 ERROR(tdev, "ep %02x couldn't set halt, %d\n", ep, retval); test_halt() 1640 retval = verify_halted(tdev, ep, urb); test_halt() 1647 ERROR(tdev, "ep %02x couldn't clear halt, %d\n", test_halt() 1656 ERROR(tdev, "ep %02x couldn't clear halt, %d\n", ep, retval); test_halt() 1659 retval = verify_not_halted(tdev, ep, urb); test_halt() 2013 struct usbtest_dev *tdev, test_unaligned_bulk() 2022 testdev_to_usbdev(tdev), pipe, length, transfer_flags, 1, 0); test_unaligned_bulk() 2027 retval = simple_io(tdev, urb, iterations, 0, 0, label); test_unaligned_bulk() 410 simple_io( struct usbtest_dev *tdev, struct urb *urb, int iterations, int vary, int expected, const char *label ) simple_io() argument 552 perform_sglist( struct usbtest_dev *tdev, unsigned iterations, int pipe, struct usb_sg_request *req, struct scatterlist *sg, int nents ) perform_sglist() argument 2012 test_unaligned_bulk( struct usbtest_dev *tdev, int pipe, unsigned length, int iterations, unsigned transfer_flags, const char *label) test_unaligned_bulk() argument
|
/linux-4.1.27/drivers/scsi/cxgbi/cxgb3i/ |
H A D | cxgb3i.c | 226 static void abort_arp_failure(struct t3cdev *tdev, struct sk_buff *skb) abort_arp_failure() argument 232 tdev, GET_TID(req), skb); abort_arp_failure() 234 cxgb3_ofld_send(tdev, skb); abort_arp_failure() 474 static int do_act_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) do_act_establish() argument 570 static int do_act_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) do_act_open_rpl() argument 583 cxgb3_queue_tid_release(tdev, GET_TID(rpl)); do_act_open_rpl() 1212 struct t3cdev *tdev = (struct t3cdev *)cdev->lldev; t3_ddp_cleanup() local 1215 pr_info("t3dev 0x%p, ulp_iscsi no more user.\n", tdev); t3_ddp_cleanup() 1216 tdev->ulp_iscsi = NULL; t3_ddp_cleanup() 1227 struct t3cdev *tdev = (struct t3cdev *)cdev->lldev; cxgb3i_ddp_init() local 1228 struct cxgbi_ddp_info *ddp = tdev->ulp_iscsi; cxgb3i_ddp_init() 1236 tdev, tdev->ulp_iscsi); cxgb3i_ddp_init() 1241 err = tdev->ctl(tdev, ULP_ISCSI_GET_PARAMS, &uinfo); cxgb3i_ddp_init() 1244 tdev->name, err); cxgb3i_ddp_init() 1261 err = tdev->ctl(tdev, ULP_ISCSI_SET_PARAMS, &uinfo); cxgb3i_ddp_init() 1264 tdev->name, err); cxgb3i_ddp_init() 1268 tdev->ulp_iscsi = ddp; cxgb3i_ddp_init() 1275 pr_info("tdev 0x%p, nppods %u, bits %u, mask 0x%x,0x%x pkt %u/%u, " cxgb3i_ddp_init() 1277 tdev, ddp->nppods, ddp->idx_bits, ddp->idx_mask, cxgb3i_ddp_init()
|
/linux-4.1.27/drivers/pci/ |
H A D | access.c | 445 struct pci_dev *tdev = pci_get_slot(dev->bus, pci_vpd_f0_read() local 449 if (!tdev) pci_vpd_f0_read() 452 ret = pci_read_vpd(tdev, pos, count, arg); pci_vpd_f0_read() 453 pci_dev_put(tdev); pci_vpd_f0_read() 460 struct pci_dev *tdev = pci_get_slot(dev->bus, pci_vpd_f0_write() local 464 if (!tdev) pci_vpd_f0_write() 467 ret = pci_write_vpd(tdev, pos, count, arg); pci_vpd_f0_write() 468 pci_dev_put(tdev); pci_vpd_f0_write()
|
/linux-4.1.27/include/drm/ttm/ |
H A D | ttm_object.h | 201 * @tdev: Pointer to a struct ttm_object_device. 210 ttm_base_object_lookup_for_ref(struct ttm_object_device *tdev, uint32_t key); 269 * @tdev: A struct ttm_object device this file is initialized on. 276 *tdev,
|
/linux-4.1.27/fs/btrfs/ |
H A D | print-tree.c | 40 printk(KERN_INFO "\t\tdev item devid %llu " print_dev_item() 290 printk(KERN_INFO "\t\tdev extent chunk_tree %llu\n" btrfs_print_leaf() 302 printk(KERN_INFO "\t\tdev replace\n"); btrfs_print_leaf()
|
/linux-4.1.27/include/linux/ |
H A D | tc.h | 139 extern void tc_device_get_irq(struct tc_dev *tdev);
|
H A D | fmc.h | 223 extern int fmc_device_register(struct fmc_device *tdev); 224 extern void fmc_device_unregister(struct fmc_device *tdev);
|
H A D | libata.h | 690 struct device tdev; member in struct:ata_device 783 struct device tdev; member in struct:ata_link 853 struct device tdev; member in struct:ata_port
|
/linux-4.1.27/net/ipv6/ |
H A D | sit.c | 815 struct net_device *tdev; /* Device to other host */ ipip6_tunnel_xmit() local 907 tdev = rt->dst.dev; ipip6_tunnel_xmit() 909 if (tdev == dev) { ipip6_tunnel_xmit() 957 max_headroom = LL_RESERVED_SPACE(tdev) + t_hlen; ipip6_tunnel_xmit() 1044 struct net_device *tdev = NULL; ipip6_tunnel_bind_dev() local 1062 tdev = rt->dst.dev; ipip6_tunnel_bind_dev() 1068 if (!tdev && tunnel->parms.link) ipip6_tunnel_bind_dev() 1069 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); ipip6_tunnel_bind_dev() 1071 if (tdev) { ipip6_tunnel_bind_dev() 1074 dev->hard_header_len = tdev->hard_header_len + sizeof(struct iphdr); ipip6_tunnel_bind_dev() 1075 dev->mtu = tdev->mtu - t_hlen; ipip6_tunnel_bind_dev()
|
H A D | ip6_gre.c | 611 struct net_device *tdev; /* Device to other host */ ip6gre_xmit2() local 653 tdev = dst->dev; ip6gre_xmit2() 655 if (tdev == dev) { ip6gre_xmit2() 689 max_headroom += LL_RESERVED_SPACE(tdev) + gre_hlen + dst->header_len; ip6gre_xmit2()
|
H A D | ip6_tunnel.c | 984 struct net_device *tdev; ip6_tnl_xmit2() local 1032 tdev = dst->dev; ip6_tnl_xmit2() 1034 if (tdev == dev) { ip6_tnl_xmit2() 1060 max_headroom += LL_RESERVED_SPACE(tdev); ip6_tnl_xmit2()
|
H A D | ip6_vti.c | 435 struct net_device *tdev; vti6_xmit() local 459 tdev = dst->dev; vti6_xmit() 461 if (tdev == dev) { vti6_xmit()
|
/linux-4.1.27/fs/freevxfs/ |
H A D | vxfs_bmap.c | 170 printk(KERN_INFO "block: %Lu\tsize: %Ld\tdev: %d\n", vxfs_bmap_indir() 233 printk(KERN_INFO "block: %Lu\tsize: %Ld\tdev: %d\n", vxfs_bmap_typed()
|
/linux-4.1.27/net/ipv4/ |
H A D | ip_tunnel.c | 357 struct net_device *tdev = NULL; ip_tunnel_bind_dev() local 377 tdev = rt->dst.dev; ip_tunnel_bind_dev() 385 if (!tdev && tunnel->parms.link) ip_tunnel_bind_dev() 386 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); ip_tunnel_bind_dev() 388 if (tdev) { ip_tunnel_bind_dev() 389 hlen = tdev->hard_header_len + tdev->needed_headroom; ip_tunnel_bind_dev() 390 mtu = tdev->mtu; ip_tunnel_bind_dev()
|
H A D | ip_vti.c | 158 struct net_device *tdev; /* Device to other host */ vti_xmit() local 179 tdev = dst->dev; vti_xmit() 181 if (tdev == dev) { vti_xmit()
|
/linux-4.1.27/drivers/gpio/ |
H A D | gpiolib-sysfs.c | 654 struct device *tdev; gpiod_export_link() local 656 tdev = class_find_device(&gpio_class, NULL, desc, match_export); gpiod_export_link() 657 if (tdev != NULL) { gpiod_export_link() 658 status = sysfs_create_link(&dev->kobj, &tdev->kobj, gpiod_export_link() 660 put_device(tdev); gpiod_export_link()
|
/linux-4.1.27/net/netfilter/ipvs/ |
H A D | ip_vs_xmit.c | 963 struct net_device *tdev; /* Device to other host */ ip_vs_tunnel_xmit() local 989 tdev = rt->dst.dev; ip_vs_tunnel_xmit() 994 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct iphdr); ip_vs_tunnel_xmit() 1058 struct net_device *tdev; /* Device to other host */ ip_vs_tunnel_xmit_v6() local 1083 tdev = rt->dst.dev; ip_vs_tunnel_xmit_v6() 1088 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct ipv6hdr); ip_vs_tunnel_xmit_v6()
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_drv.c | 750 dev_priv->tdev = ttm_object_device_init vmw_driver_load() 753 if (unlikely(dev_priv->tdev == NULL)) { vmw_driver_load() 859 ttm_object_device_release(&dev_priv->tdev); vmw_driver_load() 907 ttm_object_device_release(&dev_priv->tdev); vmw_driver_unload() 961 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev, 10); vmw_driver_open()
|
H A D | vmwgfx_drv.h | 444 struct ttm_object_device *tdev; member in struct:vmw_private
|
H A D | vmwgfx_fence.c | 1109 ttm_base_object_lookup_for_ref(dev_priv->tdev, vmw_fence_event_ioctl()
|
H A D | vmwgfx_surface.c | 917 base = ttm_base_object_lookup_for_ref(dev_priv->tdev, handle); vmw_surface_handle_reference()
|
/linux-4.1.27/drivers/net/ppp/ |
H A D | pptp.c | 188 struct net_device *tdev; pptp_xmit() local 203 tdev = rt->dst.dev; pptp_xmit() 205 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(*iph) + sizeof(*hdr) + 2; pptp_xmit()
|
/linux-4.1.27/arch/mips/txx9/generic/ |
H A D | setup.c | 942 struct txx9_sramc_dev *tdev; txx9_device_release() local 944 tdev = container_of(dev, struct txx9_sramc_dev, dev); txx9_device_release() 945 kfree(tdev); txx9_device_release()
|
/linux-4.1.27/drivers/edac/ |
H A D | edac_device.c | 46 edac_dbg(3, "\tdev = %p\n", edac_dev->dev); edac_device_dump_device()
|
H A D | edac_mc.c | 120 edac_dbg(3, "\tdev = %p\n", mci->pdev); edac_mc_dump_mci()
|
/linux-4.1.27/drivers/net/ |
H A D | vxlan.c | 850 struct net_device *tdev; vxlan_fdb_parse() local 855 tdev = __dev_get_by_index(net, *ifindex); vxlan_fdb_parse() 856 if (!tdev) vxlan_fdb_parse()
|
/linux-4.1.27/drivers/net/ethernet/neterion/ |
H A D | s2io.c | 1034 struct pci_dev *tdev = NULL; for_each_pci_dev() local 1035 for_each_pci_dev(tdev) { for_each_pci_dev() 1036 if (tdev->vendor == NEC_VENID && tdev->device == NEC_DEVID) { for_each_pci_dev() 1037 if (tdev->bus == s2io_pdev->bus->parent) { for_each_pci_dev() 1038 pci_dev_put(tdev); for_each_pci_dev()
|