Home
last modified time | relevance | path

Searched refs:tdev (Results 1 – 57 of 57) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dtegra.c27 nvkm_device_tegra_power_up(struct nvkm_device_tegra *tdev) in nvkm_device_tegra_power_up() argument
31 ret = regulator_enable(tdev->vdd); in nvkm_device_tegra_power_up()
35 ret = clk_prepare_enable(tdev->clk); in nvkm_device_tegra_power_up()
38 ret = clk_prepare_enable(tdev->clk_pwr); in nvkm_device_tegra_power_up()
41 clk_set_rate(tdev->clk_pwr, 204000000); in nvkm_device_tegra_power_up()
44 reset_control_assert(tdev->rst); in nvkm_device_tegra_power_up()
52 reset_control_deassert(tdev->rst); in nvkm_device_tegra_power_up()
58 clk_disable_unprepare(tdev->clk_pwr); in nvkm_device_tegra_power_up()
60 clk_disable_unprepare(tdev->clk); in nvkm_device_tegra_power_up()
62 regulator_disable(tdev->vdd); in nvkm_device_tegra_power_up()
[all …]
/linux-4.4.14/drivers/mailbox/
Dmailbox-test.c47 struct mbox_test_device *tdev = filp->private_data; in mbox_test_signal_write() local
50 if (!tdev->tx_channel) { in mbox_test_signal_write()
51 dev_err(tdev->dev, "Channel cannot do Tx\n"); in mbox_test_signal_write()
56 dev_err(tdev->dev, in mbox_test_signal_write()
62 tdev->signal = kzalloc(MBOX_MAX_SIG_LEN, GFP_KERNEL); in mbox_test_signal_write()
63 if (!tdev->signal) in mbox_test_signal_write()
66 ret = copy_from_user(tdev->signal, userbuf, count); in mbox_test_signal_write()
68 kfree(tdev->signal); in mbox_test_signal_write()
85 struct mbox_test_device *tdev = filp->private_data; in mbox_test_message_write() local
89 if (!tdev->tx_channel) { in mbox_test_message_write()
[all …]
/linux-4.4.14/drivers/staging/android/
Dtimed_output.c34 struct timed_output_dev *tdev = dev_get_drvdata(dev); in enable_show() local
35 int remaining = tdev->get_time(tdev); in enable_show()
43 struct timed_output_dev *tdev = dev_get_drvdata(dev); in enable_store() local
51 tdev->enable(tdev, value); in enable_store()
76 int timed_output_dev_register(struct timed_output_dev *tdev) in timed_output_dev_register() argument
80 if (!tdev || !tdev->name || !tdev->enable || !tdev->get_time) in timed_output_dev_register()
87 tdev->index = atomic_inc_return(&device_count); in timed_output_dev_register()
88 tdev->dev = device_create(timed_output_class, NULL, in timed_output_dev_register()
89 MKDEV(0, tdev->index), NULL, "%s", tdev->name); in timed_output_dev_register()
90 if (IS_ERR(tdev->dev)) in timed_output_dev_register()
[all …]
/linux-4.4.14/drivers/input/misc/
Dgpio_tilt_polled.c42 struct gpio_tilt_polled_dev *tdev = dev->private; in gpio_tilt_polled_poll() local
43 const struct gpio_tilt_platform_data *pdata = tdev->pdata; in gpio_tilt_polled_poll()
48 if (tdev->count < tdev->threshold) { in gpio_tilt_polled_poll()
49 tdev->count++; in gpio_tilt_polled_poll()
55 if (state != tdev->last_state) { in gpio_tilt_polled_poll()
69 tdev->count = 0; in gpio_tilt_polled_poll()
70 tdev->last_state = state; in gpio_tilt_polled_poll()
77 struct gpio_tilt_polled_dev *tdev = dev->private; in gpio_tilt_polled_open() local
78 const struct gpio_tilt_platform_data *pdata = tdev->pdata; in gpio_tilt_polled_open()
81 pdata->enable(tdev->dev); in gpio_tilt_polled_open()
[all …]
/linux-4.4.14/drivers/hid/
Dhid-thingm.c55 struct thingm_device *tdev; member
74 static int thingm_send(struct thingm_device *tdev, u8 buf[REPORT_SIZE]) in thingm_send() argument
78 hid_dbg(tdev->hdev, "-> %d %c %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", in thingm_send()
82 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, in thingm_send()
88 static int thingm_recv(struct thingm_device *tdev, u8 buf[REPORT_SIZE]) in thingm_recv() argument
92 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, in thingm_recv()
97 hid_dbg(tdev->hdev, "<- %d %c %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", in thingm_recv()
104 static int thingm_version(struct thingm_device *tdev) in thingm_version() argument
109 err = thingm_send(tdev, buf); in thingm_version()
113 err = thingm_recv(tdev, buf); in thingm_version()
[all …]
/linux-4.4.14/drivers/tc/
Dtc.c41 struct tc_dev *tdev; in tc_bus_add_devices() local
84 tdev = kzalloc(sizeof(*tdev), GFP_KERNEL); in tc_bus_add_devices()
85 if (!tdev) { in tc_bus_add_devices()
89 dev_set_name(&tdev->dev, "tc%x", slot); in tc_bus_add_devices()
90 tdev->bus = tbus; in tc_bus_add_devices()
91 tdev->dev.parent = &tbus->dev; in tc_bus_add_devices()
92 tdev->dev.bus = &tc_bus_type; in tc_bus_add_devices()
93 tdev->slot = slot; in tc_bus_add_devices()
96 tdev->firmware[i] = in tc_bus_add_devices()
98 tdev->vendor[i] = in tc_bus_add_devices()
[all …]
Dtc-driver.c60 struct tc_dev *tdev) in tc_match_device() argument
66 if (strcmp(tdev->name, id->name) == 0 && in tc_match_device()
67 strcmp(tdev->vendor, id->vendor) == 0) in tc_match_device()
88 struct tc_dev *tdev = to_tc_dev(dev); in tc_bus_match() local
92 id = tc_match_device(tdrv, tdev); in tc_bus_match()
/linux-4.4.14/drivers/gpu/drm/ttm/
Dttm_object.c70 struct ttm_object_device *tdev; member
165 struct ttm_object_device *tdev = tfile->tdev; in ttm_base_object_init() local
174 spin_lock(&tdev->object_lock); in ttm_base_object_init()
175 ret = drm_ht_just_insert_please_rcu(&tdev->object_hash, in ttm_base_object_init()
178 spin_unlock(&tdev->object_lock); in ttm_base_object_init()
190 spin_lock(&tdev->object_lock); in ttm_base_object_init()
191 (void)drm_ht_remove_item_rcu(&tdev->object_hash, &base->hash); in ttm_base_object_init()
192 spin_unlock(&tdev->object_lock); in ttm_base_object_init()
202 struct ttm_object_device *tdev = base->tfile->tdev; in ttm_release_base() local
204 spin_lock(&tdev->object_lock); in ttm_release_base()
[all …]
/linux-4.4.14/drivers/dma/
Dmmp_tdma.c330 struct mmp_tdma_device *tdev = dev_id; in mmp_tdma_int_handler() local
335 struct mmp_tdma_chan *tdmac = tdev->tdmac[i]; in mmp_tdma_int_handler()
535 struct mmp_tdma_device *tdev = platform_get_drvdata(pdev); in mmp_tdma_remove() local
537 dma_async_device_unregister(&tdev->device); in mmp_tdma_remove()
541 static int mmp_tdma_chan_init(struct mmp_tdma_device *tdev, in mmp_tdma_chan_init() argument
548 dev_err(tdev->dev, "too many channels for device!\n"); in mmp_tdma_chan_init()
553 tdmac = devm_kzalloc(tdev->dev, sizeof(*tdmac), GFP_KERNEL); in mmp_tdma_chan_init()
555 dev_err(tdev->dev, "no free memory for DMA channels!\n"); in mmp_tdma_chan_init()
560 tdmac->dev = tdev->dev; in mmp_tdma_chan_init()
561 tdmac->chan.device = &tdev->device; in mmp_tdma_chan_init()
[all …]
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_offload.c70 static inline int offload_activated(struct t3cdev *tdev) in offload_activated() argument
72 const struct adapter *adapter = tdev2adap(tdev); in offload_activated()
86 struct t3cdev *tdev; in cxgb3_register_client() local
92 list_for_each_entry(tdev, &ofld_dev_list, ofld_dev_list) { in cxgb3_register_client()
93 if (offload_activated(tdev)) in cxgb3_register_client()
94 client->add(tdev); in cxgb3_register_client()
111 struct t3cdev *tdev; in cxgb3_unregister_client() local
117 list_for_each_entry(tdev, &ofld_dev_list, ofld_dev_list) { in cxgb3_unregister_client()
118 if (offload_activated(tdev)) in cxgb3_unregister_client()
119 client->remove(tdev); in cxgb3_unregister_client()
[all …]
Dcxgb3_offload.h65 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);
Dadapter.h222 struct t3cdev tdev; member
300 #define tdev2adap(d) container_of(d, struct adapter, tdev)
307 int t3_offload_tx(struct t3cdev *tdev, struct sk_buff *skb);
Dcxgb3_main.c890 static inline int offload_tx(struct t3cdev *tdev, struct sk_buff *skb) in offload_tx() argument
895 ret = t3_offload_tx(tdev, skb); in offload_tx()
917 offload_tx(&adapter->tdev, skb); in write_smt_entry()
1349 struct t3cdev *tdev = dev2t3cdev(dev); in offload_open() local
1360 tdev->lldev = adapter->port[0]; in offload_open()
1372 if (sysfs_create_group(&tdev->lldev->dev.kobj, &offload_attr_group)) in offload_open()
1376 cxgb3_add_clients(tdev); in offload_open()
1383 cxgb3_set_dummy_ops(tdev); in offload_open()
1388 static int offload_close(struct t3cdev *tdev) in offload_close() argument
1390 struct adapter *adapter = tdev2adap(tdev); in offload_close()
[all …]
Dsge.c1767 int t3_offload_tx(struct t3cdev *tdev, struct sk_buff *skb) in t3_offload_tx() argument
1769 struct adapter *adap = tdev2adap(tdev); in t3_offload_tx()
1809 static inline void deliver_partial_bundle(struct t3cdev *tdev, in deliver_partial_bundle() argument
1815 tdev->recv(tdev, skbs, n); in deliver_partial_bundle()
1863 adapter->tdev.recv(&adapter->tdev, skbs, in ofld_poll()
1874 deliver_partial_bundle(&adapter->tdev, q, skbs, ngathered); in ofld_poll()
1891 static inline int rx_offload(struct t3cdev *tdev, struct sge_rspq *rq, in rx_offload() argument
1902 tdev->recv(tdev, rx_gather, RX_BUNDLE_SIZE); in rx_offload()
2372 ngathered = rx_offload(&adap->tdev, q, skb, in process_responses()
2383 deliver_partial_bundle(&adap->tdev, q, offload_skbs, ngathered); in process_responses()
/linux-4.4.14/arch/mips/dec/
Dtc.c70 void __init tc_device_get_irq(struct tc_dev *tdev) in tc_device_get_irq() argument
72 switch (tdev->slot) { in tc_device_get_irq()
74 tdev->interrupt = dec_interrupt[DEC_IRQ_TC0]; in tc_device_get_irq()
77 tdev->interrupt = dec_interrupt[DEC_IRQ_TC1]; in tc_device_get_irq()
80 tdev->interrupt = dec_interrupt[DEC_IRQ_TC2]; in tc_device_get_irq()
86 tdev->interrupt = dec_interrupt[DEC_IRQ_TC5]; in tc_device_get_irq()
89 tdev->interrupt = dec_interrupt[DEC_IRQ_TC6]; in tc_device_get_irq()
92 tdev->interrupt = -1; in tc_device_get_irq()
/linux-4.4.14/drivers/usb/serial/
Dti_usb_3410_5052.c128 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; in ti_startup() local
304 tdev = kzalloc(sizeof(struct ti_device), GFP_KERNEL); in ti_startup()
305 if (!tdev) in ti_startup()
308 mutex_init(&tdev->td_open_close_lock); in ti_startup()
309 tdev->td_serial = serial; in ti_startup()
310 usb_set_serial_data(serial, tdev); in ti_startup()
[all …]
/linux-4.4.14/drivers/infiniband/hw/cxgb3/
Diwch_cm.c139 static int iwch_l2t_send(struct t3cdev *tdev, struct sk_buff *skb, struct l2t_entry *l2e) in iwch_l2t_send() argument
144 rdev = (struct cxio_rdev *)tdev->ulp; in iwch_l2t_send()
149 error = l2t_send(tdev, skb, l2e); in iwch_l2t_send()
155 int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb) in iwch_cxgb3_ofld_send() argument
160 rdev = (struct cxio_rdev *)tdev->ulp; in iwch_cxgb3_ofld_send()
165 error = cxgb3_ofld_send(tdev, skb); in iwch_cxgb3_ofld_send()
171 static void release_tid(struct t3cdev *tdev, u32 hwtid, struct sk_buff *skb) in release_tid() argument
182 iwch_cxgb3_ofld_send(tdev, skb); in release_tid()
204 return iwch_cxgb3_ofld_send(ep->com.tdev, skb); in iwch_quiesce_tid()
225 return iwch_cxgb3_ofld_send(ep->com.tdev, skb); in iwch_resume_tid()
[all …]
Diwch.c144 static void open_rnic_dev(struct t3cdev *tdev) in open_rnic_dev() argument
148 PDBG("%s t3cdev %p\n", __func__, tdev); in open_rnic_dev()
157 rnicp->rdev.t3cdev_p = tdev; in open_rnic_dev()
175 close_rnic_dev(tdev); in open_rnic_dev()
182 static void close_rnic_dev(struct t3cdev *tdev) in close_rnic_dev() argument
185 PDBG("%s t3cdev %p\n", __func__, tdev); in close_rnic_dev()
188 if (dev->rdev.t3cdev_p == tdev) { in close_rnic_dev()
205 static void iwch_event_handler(struct t3cdev *tdev, u32 evt, u32 port_id) in iwch_event_handler() argument
207 struct cxio_rdev *rdev = tdev->ulp; in iwch_event_handler()
Diwch_cm.h157 struct t3cdev *tdev; member
Dcxio_hal.h197 int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb);
Dcxio_hal.c61 static struct cxio_rdev *cxio_hal_find_rdev_by_t3cdev(struct t3cdev *tdev) in cxio_hal_find_rdev_by_t3cdev() argument
66 if (rdev->t3cdev_p == tdev) in cxio_hal_find_rdev_by_t3cdev()
/linux-4.4.14/drivers/pnp/
Dresource.c168 struct pnp_dev *tdev; in pnp_check_port() local
206 pnp_for_each_dev(tdev) { in pnp_check_port()
207 if (tdev == dev) in pnp_check_port()
210 (tres = pnp_get_resource(tdev, IORESOURCE_IO, i)); in pnp_check_port()
231 struct pnp_dev *tdev; in pnp_check_mem() local
269 pnp_for_each_dev(tdev) { in pnp_check_mem()
270 if (tdev == dev) in pnp_check_mem()
273 (tres = pnp_get_resource(tdev, IORESOURCE_MEM, i)); in pnp_check_mem()
354 struct pnp_dev *tdev; in pnp_check_irq() local
396 pnp_for_each_dev(tdev) { in pnp_check_irq()
[all …]
/linux-4.4.14/drivers/usb/misc/
Dusbtest.c93 #define ERROR(tdev, fmt, args...) \ argument
94 dev_err(&(tdev)->intf->dev , fmt , ## args)
95 #define WARNING(tdev, fmt, args...) \ argument
96 dev_warn(&(tdev)->intf->dev , fmt , ## args)
353 static int check_guard_bytes(struct usbtest_dev *tdev, struct urb *urb) in check_guard_bytes() argument
361 ERROR(tdev, "guard byte[%d] %d (not %d)\n", in check_guard_bytes()
369 static int simple_check_buf(struct usbtest_dev *tdev, struct urb *urb) in simple_check_buf() argument
377 int ret = check_guard_bytes(tdev, urb); in simple_check_buf()
402 ERROR(tdev, "buf[%d] = %d (not %d)\n", i, *buf, expected); in simple_check_buf()
424 struct usbtest_dev *tdev, in simple_io() argument
[all …]
/linux-4.4.14/drivers/ata/
Dlibata-zpodd.c177 device_set_run_wake(&dev->tdev, true); in zpodd_enable_run_wake()
178 acpi_pm_device_run_wake(&dev->tdev, true); in zpodd_enable_run_wake()
187 acpi_pm_device_run_wake(&dev->tdev, false); in zpodd_disable_run_wake()
188 device_set_run_wake(&dev->tdev, false); in zpodd_disable_run_wake()
255 struct acpi_device *adev = ACPI_COMPANION(&dev->tdev); in zpodd_init()
275 dev_pm_qos_expose_flags(&dev->tdev, 0); in zpodd_init()
Dlibata-transport.c69 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; in ata_tport_delete()
282 struct device *dev = &ap->tdev; in ata_tport_add()
383 struct device *dev = &link->tdev; in ata_tlink_delete()
407 struct device *dev = &link->tdev; in ata_tlink_add()
413 dev->parent = get_device(&ap->tdev); in ata_tlink_add()
627 transport_destroy_device(&dev->tdev); in ata_tdev_free()
628 put_device(&dev->tdev); in ata_tdev_free()
[all …]
Dlibata-acpi.c62 NULL : ACPI_HANDLE(&dev->tdev); in ata_dev_acpi_handle()
72 struct ata_device *tdev; in ata_acpi_detach_device() local
75 ata_for_each_dev(tdev, tlink, ALL) in ata_acpi_detach_device()
76 tdev->flags |= ATA_DFLAG_DETACH; in ata_acpi_detach_device()
187 acpi_preset_companion(&ap->tdev, host_companion, ap->port_no); in ata_acpi_bind_port()
192 adev = ACPI_COMPANION(&ap->tdev); in ata_acpi_bind_port()
208 struct acpi_device *port_companion = ACPI_COMPANION(&ap->tdev); in ata_acpi_bind_dev()
233 acpi_preset_companion(&dev->tdev, parent, adr); in ata_acpi_bind_dev()
234 adev = ACPI_COMPANION(&dev->tdev); in ata_acpi_bind_dev()
268 if (ACPI_HANDLE(&ap->tdev) && gtm) in ata_acpi_dissociate()
[all …]
Dpata_acpi.c40 if (ACPI_HANDLE(&ap->tdev) == NULL || ata_acpi_gtm(ap, &acpi->gtm) < 0) in pacpi_pre_reset()
196 if (ACPI_HANDLE(&ap->tdev) == NULL) in pacpi_port_start()
Dlibata.h109 #define to_ata_port(d) container_of(d, struct ata_port, tdev)
Dlibata-eh.c445 struct ata_device *tdev; in ata_eh_clear_action() local
449 ata_for_each_dev(tdev, link, ALL) in ata_eh_clear_action()
450 ehi->dev_action[tdev->devno] &= ~action; in ata_eh_clear_action()
457 ata_for_each_dev(tdev, link, ALL) in ata_eh_clear_action()
458 ehi->dev_action[tdev->devno] |= in ata_eh_clear_action()
Dlibata-scsi.c3699 &ap->tdev, ap->host->dev); in ata_scsi_add_hosts()
/linux-4.4.14/drivers/video/fbdev/
Dpmag-ba-fb.c146 struct tc_dev *tdev = to_tc_dev(dev); in pmagbafb_probe() local
174 start = tdev->resource.start; in pmagbafb_probe()
175 len = tdev->resource.end - start + 1; in pmagbafb_probe()
240 struct tc_dev *tdev = to_tc_dev(dev); in pmagbafb_remove() local
249 start = tdev->resource.start; in pmagbafb_remove()
250 len = tdev->resource.end - start + 1; in pmagbafb_remove()
Dpmagb-b-fb.c251 struct tc_dev *tdev = to_tc_dev(dev); in pmagbbfb_probe() local
281 start = tdev->resource.start; in pmagbbfb_probe()
282 len = tdev->resource.end - start + 1; in pmagbbfb_probe()
358 struct tc_dev *tdev = to_tc_dev(dev); in pmagbbfb_remove() local
367 start = tdev->resource.start; in pmagbbfb_remove()
368 len = tdev->resource.end - start + 1; in pmagbbfb_remove()
/linux-4.4.14/drivers/s390/char/
Dtape_core.c95 struct tape_device *tdev; in tape_medium_state_show() local
97 tdev = dev_get_drvdata(dev); in tape_medium_state_show()
98 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->medium_state); in tape_medium_state_show()
107 struct tape_device *tdev; in tape_first_minor_show() local
109 tdev = dev_get_drvdata(dev); in tape_first_minor_show()
110 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->first_minor); in tape_first_minor_show()
119 struct tape_device *tdev; in tape_state_show() local
121 tdev = dev_get_drvdata(dev); in tape_state_show()
122 return scnprintf(buf, PAGE_SIZE, "%s\n", (tdev->first_minor < 0) ? in tape_state_show()
123 "OFFLINE" : tape_state_verbose[tdev->tape_state]); in tape_state_show()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
Dgk20a.c160 struct nvkm_device_tegra *tdev = device->func->tegra(device); in gk20a_volt_new() local
170 uv = regulator_get_voltage(tdev->vdd); in gk20a_volt_new()
173 volt->vdd = tdev->vdd; in gk20a_volt_new()
182 tdev->gpu_speedo); in gk20a_volt_new()
/linux-4.4.14/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c226 static void abort_arp_failure(struct t3cdev *tdev, struct sk_buff *skb) in abort_arp_failure() argument
232 tdev, GET_TID(req), skb); in abort_arp_failure()
234 cxgb3_ofld_send(tdev, skb); in abort_arp_failure()
474 static int do_act_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) in do_act_establish() argument
570 static int do_act_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) in do_act_open_rpl() argument
583 cxgb3_queue_tid_release(tdev, GET_TID(rpl)); in do_act_open_rpl()
1214 struct t3cdev *tdev = (struct t3cdev *)cdev->lldev; in t3_ddp_cleanup() local
1217 pr_info("t3dev 0x%p, ulp_iscsi no more user.\n", tdev); in t3_ddp_cleanup()
1218 tdev->ulp_iscsi = NULL; in t3_ddp_cleanup()
1229 struct t3cdev *tdev = (struct t3cdev *)cdev->lldev; in cxgb3i_ddp_init() local
[all …]
/linux-4.4.14/drivers/pci/
Daccess.c445 struct pci_dev *tdev = pci_get_slot(dev->bus, in pci_vpd_f0_read() local
449 if (!tdev) in pci_vpd_f0_read()
452 ret = pci_read_vpd(tdev, pos, count, arg); in pci_vpd_f0_read()
453 pci_dev_put(tdev); in pci_vpd_f0_read()
460 struct pci_dev *tdev = pci_get_slot(dev->bus, in pci_vpd_f0_write() local
464 if (!tdev) in pci_vpd_f0_write()
467 ret = pci_write_vpd(tdev, pos, count, arg); in pci_vpd_f0_write()
468 pci_dev_put(tdev); in pci_vpd_f0_write()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dgk20a.c593 struct nvkm_device_tegra *tdev = device->func->tegra(device); in gk20a_instmem_new() local
607 if (tdev->iommu.domain) { in gk20a_instmem_new()
608 imem->mm_mutex = &tdev->iommu.mutex; in gk20a_instmem_new()
609 imem->mm = &tdev->iommu.mm; in gk20a_instmem_new()
610 imem->domain = tdev->iommu.domain; in gk20a_instmem_new()
611 imem->iommu_pgshift = tdev->iommu.pgshift; in gk20a_instmem_new()
613 imem->iommu_bit = tdev->func->iommu_bit; in gk20a_instmem_new()
/linux-4.4.14/include/drm/ttm/
Dttm_object.h210 ttm_base_object_lookup_for_ref(struct ttm_object_device *tdev, uint32_t key);
276 *tdev,
/linux-4.4.14/include/linux/
Dfmc.h223 extern int fmc_device_register(struct fmc_device *tdev);
224 extern void fmc_device_unregister(struct fmc_device *tdev);
Dtc.h139 extern void tc_device_get_irq(struct tc_dev *tdev);
Dlibata.h691 struct device tdev; member
784 struct device tdev; member
854 struct device tdev; member
/linux-4.4.14/net/ipv4/
Dip_tunnel.c364 struct net_device *tdev = NULL; in ip_tunnel_bind_dev() local
384 tdev = rt->dst.dev; in ip_tunnel_bind_dev()
392 if (!tdev && tunnel->parms.link) in ip_tunnel_bind_dev()
393 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ip_tunnel_bind_dev()
395 if (tdev) { in ip_tunnel_bind_dev()
396 hlen = tdev->hard_header_len + tdev->needed_headroom; in ip_tunnel_bind_dev()
397 mtu = tdev->mtu; in ip_tunnel_bind_dev()
Dip_vti.c158 struct net_device *tdev; /* Device to other host */ in vti_xmit() local
179 tdev = dst->dev; in vti_xmit()
181 if (tdev == dev) { in vti_xmit()
/linux-4.4.14/net/ipv6/
Dsit.c815 struct net_device *tdev; /* Device to other host */ in ipip6_tunnel_xmit() local
907 tdev = rt->dst.dev; in ipip6_tunnel_xmit()
909 if (tdev == dev) { in ipip6_tunnel_xmit()
957 max_headroom = LL_RESERVED_SPACE(tdev) + t_hlen; in ipip6_tunnel_xmit()
1044 struct net_device *tdev = NULL; in ipip6_tunnel_bind_dev() local
1062 tdev = rt->dst.dev; in ipip6_tunnel_bind_dev()
1068 if (!tdev && tunnel->parms.link) in ipip6_tunnel_bind_dev()
1069 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ipip6_tunnel_bind_dev()
1071 if (tdev) { in ipip6_tunnel_bind_dev()
1074 dev->hard_header_len = tdev->hard_header_len + sizeof(struct iphdr); in ipip6_tunnel_bind_dev()
[all …]
Dip6_vti.c435 struct net_device *tdev; in vti6_xmit() local
459 tdev = dst->dev; in vti6_xmit()
461 if (tdev == dev) { in vti6_xmit()
Dip6_tunnel.c1043 struct net_device *tdev; in ip6_tnl_xmit2() local
1091 tdev = dst->dev; in ip6_tnl_xmit2()
1093 if (tdev == dev) { in ip6_tnl_xmit2()
1119 max_headroom += LL_RESERVED_SPACE(tdev); in ip6_tnl_xmit2()
Dip6_gre.c611 struct net_device *tdev; /* Device to other host */ in ip6gre_xmit2() local
653 tdev = dst->dev; in ip6gre_xmit2()
655 if (tdev == dev) { in ip6gre_xmit2()
689 max_headroom += LL_RESERVED_SPACE(tdev) + gre_hlen + dst->header_len; in ip6gre_xmit2()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_xmit.c981 struct net_device *tdev; /* Device to other host */ in ip_vs_tunnel_xmit() local
1007 tdev = rt->dst.dev; in ip_vs_tunnel_xmit()
1012 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct iphdr); in ip_vs_tunnel_xmit()
1076 struct net_device *tdev; /* Device to other host */ in ip_vs_tunnel_xmit_v6() local
1102 tdev = rt->dst.dev; in ip_vs_tunnel_xmit_v6()
1107 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct ipv6hdr); in ip_vs_tunnel_xmit_v6()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_drv.c774 dev_priv->tdev = ttm_object_device_init in vmw_driver_load()
777 if (unlikely(dev_priv->tdev == NULL)) { in vmw_driver_load()
909 ttm_object_device_release(&dev_priv->tdev); in vmw_driver_load()
961 ttm_object_device_release(&dev_priv->tdev); in vmw_driver_unload()
1015 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev, 10); in vmw_driver_open()
Dvmwgfx_fence.c1109 ttm_base_object_lookup_for_ref(dev_priv->tdev, in vmw_fence_event_ioctl()
Dvmwgfx_drv.h431 struct ttm_object_device *tdev; member
Dvmwgfx_surface.c928 base = ttm_base_object_lookup_for_ref(dev_priv->tdev, handle); in vmw_surface_handle_reference()
/linux-4.4.14/drivers/net/ppp/
Dpptp.c187 struct net_device *tdev; in pptp_xmit() local
202 tdev = rt->dst.dev; in pptp_xmit()
204 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(*iph) + sizeof(*hdr) + 2; in pptp_xmit()
/linux-4.4.14/arch/mips/txx9/generic/
Dsetup.c926 struct txx9_sramc_dev *tdev; in txx9_device_release() local
928 tdev = container_of(dev, struct txx9_sramc_dev, dev); in txx9_device_release()
929 kfree(tdev); in txx9_device_release()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgk20a.c649 struct nvkm_device_tegra *tdev = device->func->tegra(device); in gk20a_clk_new() local
664 clk->parent_rate = clk_get_rate(tdev->clk); in gk20a_clk_new()
/linux-4.4.14/drivers/net/
Dvxlan.c809 struct net_device *tdev; in vxlan_fdb_parse() local
814 tdev = __dev_get_by_index(net, *ifindex); in vxlan_fdb_parse()
815 if (!tdev) in vxlan_fdb_parse()
/linux-4.4.14/drivers/net/ethernet/neterion/
Ds2io.c1034 struct pci_dev *tdev = NULL; in s2io_on_nec_bridge() local
1035 for_each_pci_dev(tdev) { in s2io_on_nec_bridge()
1036 if (tdev->vendor == NEC_VENID && tdev->device == NEC_DEVID) { in s2io_on_nec_bridge()
1037 if (tdev->bus == s2io_pdev->bus->parent) { in s2io_on_nec_bridge()
1038 pci_dev_put(tdev); in s2io_on_nec_bridge()