Home
last modified time | relevance | path

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

12

/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 if (tdev->clk_ref) { in nvkm_device_tegra_power_up()
39 ret = clk_prepare_enable(tdev->clk_ref); in nvkm_device_tegra_power_up()
43 ret = clk_prepare_enable(tdev->clk_pwr); in nvkm_device_tegra_power_up()
46 clk_set_rate(tdev->clk_pwr, 204000000); in nvkm_device_tegra_power_up()
49 reset_control_assert(tdev->rst); in nvkm_device_tegra_power_up()
57 reset_control_deassert(tdev->rst); in nvkm_device_tegra_power_up()
63 clk_disable_unprepare(tdev->clk_pwr); in nvkm_device_tegra_power_up()
[all …]
/drivers/mailbox/
Dmailbox-test.c48 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()
63 if (!tdev->signal) { in mbox_test_signal_write()
64 tdev->signal = kzalloc(MBOX_MAX_SIG_LEN, GFP_KERNEL); in mbox_test_signal_write()
65 if (!tdev->signal) in mbox_test_signal_write()
69 if (copy_from_user(tdev->signal, userbuf, count)) { in mbox_test_signal_write()
70 kfree(tdev->signal); in mbox_test_signal_write()
71 tdev->signal = NULL; in mbox_test_signal_write()
[all …]
/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 …]
/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()
/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 …]
/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()
533 struct mmp_tdma_device *tdev = platform_get_drvdata(pdev); in mmp_tdma_remove() local
535 dma_async_device_unregister(&tdev->device); in mmp_tdma_remove()
539 static int mmp_tdma_chan_init(struct mmp_tdma_device *tdev, in mmp_tdma_chan_init() argument
546 dev_err(tdev->dev, "too many channels for device!\n"); in mmp_tdma_chan_init()
551 tdmac = devm_kzalloc(tdev->dev, sizeof(*tdmac), GFP_KERNEL); in mmp_tdma_chan_init()
557 tdmac->dev = tdev->dev; in mmp_tdma_chan_init()
558 tdmac->chan.device = &tdev->device; in mmp_tdma_chan_init()
561 tdmac->reg_base = tdev->base + idx * 4; in mmp_tdma_chan_init()
[all …]
/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);
/drivers/usb/serial/
Dti_usb_3410_5052.c346 static int ti_command_out_sync(struct ti_device *tdev, __u8 command,
348 static int ti_command_in_sync(struct ti_device *tdev, __u8 command,
351 static int ti_write_byte(struct usb_serial_port *port, struct ti_device *tdev,
354 static int ti_download_firmware(struct ti_device *tdev);
517 struct ti_device *tdev; in ti_startup() local
530 tdev = kzalloc(sizeof(struct ti_device), GFP_KERNEL); in ti_startup()
531 if (!tdev) in ti_startup()
534 mutex_init(&tdev->td_open_close_lock); in ti_startup()
535 tdev->td_serial = serial; in ti_startup()
536 usb_set_serial_data(serial, tdev); in ti_startup()
[all …]
/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()
/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
Dgm20b.c69 struct nvkm_device_tegra *tdev = device->func->tegra(device); in gm20b_volt_new() local
73 if (tdev->gpu_speedo_id >= ARRAY_SIZE(speedo_to_vmin)) { in gm20b_volt_new()
75 tdev->gpu_speedo_id); in gm20b_volt_new()
84 vmin = speedo_to_vmin[tdev->gpu_speedo_id]; in gm20b_volt_new()
86 if (tdev->gpu_speedo_id >= 1) in gm20b_volt_new()
Dgk20a.c151 struct nvkm_device_tegra *tdev = device->func->tegra(device); in gk20a_volt_ctor() local
156 uv = regulator_get_voltage(tdev->vdd); in gk20a_volt_ctor()
159 volt->vdd = tdev->vdd; in gk20a_volt_ctor()
165 gk20a_volt_calc_voltage(&coefs[i], tdev->gpu_speedo), in gk20a_volt_ctor()
/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 …]
/drivers/usb/misc/
Dusbtest.c117 #define ERROR(tdev, fmt, args...) \ argument
118 dev_err(&(tdev)->intf->dev , fmt , ## args)
119 #define WARNING(tdev, fmt, args...) \ argument
120 dev_warn(&(tdev)->intf->dev , fmt , ## args)
382 static int check_guard_bytes(struct usbtest_dev *tdev, struct urb *urb) in check_guard_bytes() argument
390 ERROR(tdev, "guard byte[%d] %d (not %d)\n", in check_guard_bytes()
398 static int simple_check_buf(struct usbtest_dev *tdev, struct urb *urb) in simple_check_buf() argument
406 int ret = check_guard_bytes(tdev, urb); in simple_check_buf()
431 ERROR(tdev, "buf[%d] = %d (not %d)\n", i, *buf, expected); in simple_check_buf()
453 struct usbtest_dev *tdev, in simple_io() argument
[all …]
/drivers/ata/
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)
257 struct device *dev = &ap->tdev; in ata_tport_delete()
281 struct device *dev = &ap->tdev; in ata_tport_add()
381 struct device *dev = &link->tdev; in ata_tlink_delete()
405 struct device *dev = &link->tdev; in ata_tlink_add()
411 dev->parent = &ap->tdev; in ata_tlink_add()
625 transport_destroy_device(&dev->tdev); in ata_tdev_free()
626 put_device(&dev->tdev); in ata_tdev_free()
[all …]
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-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 …]
/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 …]
/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()
Dpmag-aa-fb.c161 struct tc_dev *tdev = to_tc_dev(dev); in pmagaafb_probe() local
182 start = tdev->resource.start; in pmagaafb_probe()
183 len = tdev->resource.end - start + 1; in pmagaafb_probe()
252 struct tc_dev *tdev = to_tc_dev(dev); in pmagaafb_remove() local
261 start = tdev->resource.start; in pmagaafb_remove()
262 len = tdev->resource.end - start + 1; in pmagaafb_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()
/drivers/pci/
Daccess.c536 struct pci_dev *tdev = pci_get_slot(dev->bus, in pci_vpd_f0_read() local
540 if (!tdev) in pci_vpd_f0_read()
543 ret = pci_read_vpd(tdev, pos, count, arg); in pci_vpd_f0_read()
544 pci_dev_put(tdev); in pci_vpd_f0_read()
551 struct pci_dev *tdev = pci_get_slot(dev->bus, in pci_vpd_f0_write() local
555 if (!tdev) in pci_vpd_f0_write()
558 ret = pci_write_vpd(tdev, pos, count, arg); in pci_vpd_f0_write()
559 pci_dev_put(tdev); in pci_vpd_f0_write()
565 struct pci_dev *tdev = pci_get_slot(dev->bus, in pci_vpd_f0_set_size() local
569 if (!tdev) in pci_vpd_f0_set_size()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dgk20a.c577 struct nvkm_device_tegra *tdev = device->func->tegra(device); in gk20a_instmem_new() local
591 if (tdev->iommu.domain) { in gk20a_instmem_new()
592 imem->mm_mutex = &tdev->iommu.mutex; in gk20a_instmem_new()
593 imem->mm = &tdev->iommu.mm; in gk20a_instmem_new()
594 imem->domain = tdev->iommu.domain; in gk20a_instmem_new()
595 imem->iommu_pgshift = tdev->iommu.pgshift; in gk20a_instmem_new()
596 imem->iommu_bit = tdev->func->iommu_bit; in gk20a_instmem_new()

12