Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dtegra.c31 nvkm_device_tegra_power_up(struct nvkm_device_tegra *tdev) in nvkm_device_tegra_power_up() argument
35 if (tdev->vdd) { in nvkm_device_tegra_power_up()
36 ret = regulator_enable(tdev->vdd); in nvkm_device_tegra_power_up()
41 ret = clk_prepare_enable(tdev->clk); in nvkm_device_tegra_power_up()
44 ret = clk_prepare_enable(tdev->clk_ref); in nvkm_device_tegra_power_up()
47 ret = clk_prepare_enable(tdev->clk_pwr); in nvkm_device_tegra_power_up()
50 clk_set_rate(tdev->clk_pwr, 204000000); in nvkm_device_tegra_power_up()
53 if (!tdev->pdev->dev.pm_domain) { in nvkm_device_tegra_power_up()
54 reset_control_assert(tdev->rst); in nvkm_device_tegra_power_up()
62 reset_control_deassert(tdev->rst); in nvkm_device_tegra_power_up()
[all …]
/linux-6.6.21/drivers/mailbox/
Dmailbox-test.c53 struct mbox_test_device *tdev = filp->private_data; in mbox_test_signal_write() local
55 if (!tdev->tx_channel) { in mbox_test_signal_write()
56 dev_err(tdev->dev, "Channel cannot do Tx\n"); in mbox_test_signal_write()
61 dev_err(tdev->dev, in mbox_test_signal_write()
68 if (!tdev->signal) { in mbox_test_signal_write()
69 tdev->signal = kzalloc(MBOX_MAX_SIG_LEN, GFP_KERNEL); in mbox_test_signal_write()
70 if (!tdev->signal) in mbox_test_signal_write()
74 if (copy_from_user(tdev->signal, userbuf, count)) { in mbox_test_signal_write()
75 kfree(tdev->signal); in mbox_test_signal_write()
76 tdev->signal = NULL; in mbox_test_signal_write()
[all …]
/linux-6.6.21/drivers/thermal/
Duniphier_thermal.c88 static int uniphier_tm_initialize_sensor(struct uniphier_tm_dev *tdev) in uniphier_tm_initialize_sensor() argument
90 struct regmap *map = tdev->regmap; in uniphier_tm_initialize_sensor()
96 regmap_write_bits(map, tdev->data->block_base + PVTCTLEN, in uniphier_tm_initialize_sensor()
106 ret = regmap_read(map, tdev->data->map_base + TMODCOEF, &val); in uniphier_tm_initialize_sensor()
111 ret = of_property_read_u32_array(tdev->dev->of_node, in uniphier_tm_initialize_sensor()
118 regmap_write(map, tdev->data->tmod_setup_addr, in uniphier_tm_initialize_sensor()
124 regmap_write_bits(map, tdev->data->block_base + PVTCTLMODE, in uniphier_tm_initialize_sensor()
128 regmap_write_bits(map, tdev->data->block_base + EMONREPEAT, in uniphier_tm_initialize_sensor()
133 regmap_write_bits(map, tdev->data->map_base + PVTCTLSEL, in uniphier_tm_initialize_sensor()
139 static void uniphier_tm_set_alert(struct uniphier_tm_dev *tdev, u32 ch, in uniphier_tm_set_alert() argument
[all …]
/linux-6.6.21/drivers/tc/
Dtc.c42 struct tc_dev *tdev; in tc_bus_add_devices() local
85 tdev = kzalloc(sizeof(*tdev), GFP_KERNEL); in tc_bus_add_devices()
86 if (!tdev) { in tc_bus_add_devices()
90 dev_set_name(&tdev->dev, "tc%x", slot); in tc_bus_add_devices()
91 tdev->bus = tbus; in tc_bus_add_devices()
92 tdev->dev.parent = &tbus->dev; in tc_bus_add_devices()
93 tdev->dev.bus = &tc_bus_type; in tc_bus_add_devices()
94 tdev->slot = slot; in tc_bus_add_devices()
97 tdev->dma_mask = DMA_BIT_MASK(34); in tc_bus_add_devices()
98 tdev->dev.dma_mask = &tdev->dma_mask; 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()
87 struct tc_dev *tdev = to_tc_dev(dev); in tc_bus_match() local
91 id = tc_match_device(tdrv, tdev); in tc_bus_match()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dttm_object.c78 struct ttm_object_device *tdev; member
196 struct ttm_object_device *tdev = tfile->tdev; in ttm_base_object_init() local
205 spin_lock(&tdev->object_lock); in ttm_base_object_init()
206 ret = idr_alloc(&tdev->idr, base, 1, 0, GFP_NOWAIT); in ttm_base_object_init()
207 spin_unlock(&tdev->object_lock); in ttm_base_object_init()
221 spin_lock(&tdev->object_lock); in ttm_base_object_init()
222 idr_remove(&tdev->idr, base->handle); in ttm_base_object_init()
223 spin_unlock(&tdev->object_lock); in ttm_base_object_init()
231 struct ttm_object_device *tdev = base->tfile->tdev; in ttm_release_base() local
233 spin_lock(&tdev->object_lock); in ttm_release_base()
[all …]
/linux-6.6.21/drivers/dma/
Dmmp_tdma.c331 struct mmp_tdma_device *tdev = dev_id; in mmp_tdma_int_handler() local
336 struct mmp_tdma_chan *tdmac = tdev->tdmac[i]; in mmp_tdma_int_handler()
563 static int mmp_tdma_chan_init(struct mmp_tdma_device *tdev, in mmp_tdma_chan_init() argument
570 dev_err(tdev->dev, "too many channels for device!\n"); in mmp_tdma_chan_init()
575 tdmac = devm_kzalloc(tdev->dev, sizeof(*tdmac), GFP_KERNEL); in mmp_tdma_chan_init()
581 tdmac->dev = tdev->dev; in mmp_tdma_chan_init()
582 tdmac->chan.device = &tdev->device; in mmp_tdma_chan_init()
585 tdmac->reg_base = tdev->base + idx * 4; in mmp_tdma_chan_init()
588 tdev->tdmac[tdmac->idx] = tdmac; in mmp_tdma_chan_init()
593 &tdev->device.channels); in mmp_tdma_chan_init()
[all …]
/linux-6.6.21/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);
/linux-6.6.21/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-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
Dgm20b.c70 struct nvkm_device_tegra *tdev = device->func->tegra(device); in gm20b_volt_new() local
74 if (tdev->gpu_speedo_id >= ARRAY_SIZE(speedo_to_vmin)) { in gm20b_volt_new()
76 tdev->gpu_speedo_id); in gm20b_volt_new()
85 vmin = speedo_to_vmin[tdev->gpu_speedo_id]; in gm20b_volt_new()
87 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()
/linux-6.6.21/drivers/usb/serial/
Dti_usb_3410_5052.c347 static int ti_write_byte(struct usb_serial_port *port, struct ti_device *tdev,
350 static int ti_download_firmware(struct ti_device *tdev);
511 struct ti_device *tdev; in ti_startup() local
524 tdev = kzalloc(sizeof(struct ti_device), GFP_KERNEL); in ti_startup()
525 if (!tdev) in ti_startup()
528 mutex_init(&tdev->td_open_close_lock); in ti_startup()
529 tdev->td_serial = serial; in ti_startup()
530 usb_set_serial_data(serial, tdev); in ti_startup()
534 tdev->td_is_3410 = 1; in ti_startup()
536 tdev->td_is_3410 ? "3410" : "5052"); in ti_startup()
[all …]
/linux-6.6.21/drivers/pnp/
Dresource.c170 struct pnp_dev *tdev; in pnp_check_port() local
208 pnp_for_each_dev(tdev) { in pnp_check_port()
209 if (tdev == dev) in pnp_check_port()
212 (tres = pnp_get_resource(tdev, IORESOURCE_IO, i)); in pnp_check_port()
233 struct pnp_dev *tdev; in pnp_check_mem() local
271 pnp_for_each_dev(tdev) { in pnp_check_mem()
272 if (tdev == dev) in pnp_check_mem()
275 (tres = pnp_get_resource(tdev, IORESOURCE_MEM, i)); in pnp_check_mem()
356 struct pnp_dev *tdev; in pnp_check_irq() local
398 pnp_for_each_dev(tdev) { in pnp_check_irq()
[all …]
/linux-6.6.21/drivers/usb/misc/
Dusbtest.c118 #define ERROR(tdev, fmt, args...) \ argument
119 dev_err(&(tdev)->intf->dev , fmt , ## args)
120 #define WARNING(tdev, fmt, args...) \ argument
121 dev_warn(&(tdev)->intf->dev , fmt , ## args)
384 static int check_guard_bytes(struct usbtest_dev *tdev, struct urb *urb) in check_guard_bytes() argument
392 ERROR(tdev, "guard byte[%d] %d (not %d)\n", in check_guard_bytes()
400 static int simple_check_buf(struct usbtest_dev *tdev, struct urb *urb) in simple_check_buf() argument
408 int ret = check_guard_bytes(tdev, urb); in simple_check_buf()
433 ERROR(tdev, "buf[%d] = %d (not %d)\n", i, *buf, expected); in simple_check_buf()
455 struct usbtest_dev *tdev, in simple_io() argument
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/core/
Dintr.c37 struct nvkm_top_device *tdev; in nvkm_intr_xlat() local
41 list_for_each_entry(tdev, &device->top->device, head) { in nvkm_intr_xlat()
42 if (tdev->intr >= 0 && in nvkm_intr_xlat()
43 tdev->type == subdev->type && in nvkm_intr_xlat()
44 tdev->inst == subdev->inst) { in nvkm_intr_xlat()
45 if (data->mask & BIT(tdev->intr)) { in nvkm_intr_xlat()
47 *mask = BIT(tdev->intr); in nvkm_intr_xlat()
297 struct nvkm_top_device *tdev; in nvkm_intr_subdev_add() local
302 list_for_each_entry(tdev, &device->top->device, head) { in nvkm_intr_subdev_add()
303 if (tdev->intr < 0 || !(data->mask & BIT(tdev->intr))) in nvkm_intr_subdev_add()
[all …]
/linux-6.6.21/drivers/s390/char/
Dtape_core.c96 struct tape_device *tdev; in tape_medium_state_show() local
98 tdev = dev_get_drvdata(dev); in tape_medium_state_show()
99 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->medium_state); in tape_medium_state_show()
108 struct tape_device *tdev; in tape_first_minor_show() local
110 tdev = dev_get_drvdata(dev); in tape_first_minor_show()
111 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->first_minor); in tape_first_minor_show()
120 struct tape_device *tdev; in tape_state_show() local
122 tdev = dev_get_drvdata(dev); in tape_state_show()
123 return scnprintf(buf, PAGE_SIZE, "%s\n", (tdev->first_minor < 0) ? in tape_state_show()
124 "OFFLINE" : tape_state_verbose[tdev->tape_state]); in tape_state_show()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dga100.c442 struct nvkm_top_device *tdev; in ga100_runl_new() local
472 nvkm_list_foreach(tdev, &device->top->device, head, tdev->runlist == runl->addr) { in ga100_runl_new()
473 if (tdev->engine < 0) { in ga100_runl_new()
478 engn = nvkm_runl_add(runl, tdev->engine, (tdev->type == NVKM_ENGINE_CE) ? in ga100_runl_new()
480 tdev->type, tdev->inst); in ga100_runl_new()
572 struct nvkm_top_device *tdev; in ga100_fifo_runl_ctor() local
576 nvkm_list_foreach(tdev, &device->top->device, head, tdev->runlist >= 0) { in ga100_fifo_runl_ctor()
577 runl = nvkm_runl_get(fifo, -1, tdev->runlist); in ga100_fifo_runl_ctor()
579 ret = ga100_runl_new(fifo, id++, tdev->runlist, &runl); in ga100_fifo_runl_ctor()
Dgk104.c759 struct nvkm_top_device *tdev; in gk104_fifo_runl_ctor() local
764 nvkm_list_foreach(tdev, &device->top->device, head, tdev->runlist >= 0) { in gk104_fifo_runl_ctor()
765 runl = nvkm_runl_get(fifo, tdev->runlist, tdev->runlist); in gk104_fifo_runl_ctor()
767 runl = nvkm_runl_new(fifo, tdev->runlist, tdev->runlist, 0); in gk104_fifo_runl_ctor()
780 if (tdev->engine < 0) in gk104_fifo_runl_ctor()
783 switch (tdev->type) { in gk104_fifo_runl_ctor()
795 nvkm_runl_add(runl, tdev->engine, func, tdev->type, tdev->inst); in gk104_fifo_runl_ctor()
/linux-6.6.21/drivers/video/fbdev/
Dpmag-ba-fb.c144 struct tc_dev *tdev = to_tc_dev(dev); in pmagbafb_probe() local
169 start = tdev->resource.start; in pmagbafb_probe()
170 len = tdev->resource.end - start + 1; in pmagbafb_probe()
235 struct tc_dev *tdev = to_tc_dev(dev); in pmagbafb_remove() local
244 start = tdev->resource.start; in pmagbafb_remove()
245 len = tdev->resource.end - start + 1; in pmagbafb_remove()
Dpmag-aa-fb.c159 struct tc_dev *tdev = to_tc_dev(dev); in pmagaafb_probe() local
177 start = tdev->resource.start; in pmagaafb_probe()
178 len = tdev->resource.end - start + 1; in pmagaafb_probe()
247 struct tc_dev *tdev = to_tc_dev(dev); in pmagaafb_remove() local
256 start = tdev->resource.start; in pmagaafb_remove()
257 len = tdev->resource.end - start + 1; in pmagaafb_remove()
Dpmagb-b-fb.c249 struct tc_dev *tdev = to_tc_dev(dev); in pmagbbfb_probe() local
276 start = tdev->resource.start; in pmagbbfb_probe()
277 len = tdev->resource.end - start + 1; in pmagbbfb_probe()
353 struct tc_dev *tdev = to_tc_dev(dev); in pmagbbfb_remove() local
362 start = tdev->resource.start; in pmagbbfb_remove()
363 len = tdev->resource.end - start + 1; in pmagbbfb_remove()
/linux-6.6.21/drivers/ata/
Dlibata-acpi.c63 NULL : ACPI_HANDLE(&dev->tdev); in ata_dev_acpi_handle()
73 struct ata_device *tdev; in ata_acpi_detach_device() local
76 ata_for_each_dev(tdev, tlink, ALL) in ata_acpi_detach_device()
77 tdev->flags |= ATA_DFLAG_DETACH; in ata_acpi_detach_device()
188 acpi_preset_companion(&ap->tdev, host_companion, ap->port_no); in ata_acpi_bind_port()
193 adev = ACPI_COMPANION(&ap->tdev); in ata_acpi_bind_port()
209 struct acpi_device *port_companion = ACPI_COMPANION(&ap->tdev); in ata_acpi_bind_dev()
234 acpi_preset_companion(&dev->tdev, parent, adr); in ata_acpi_bind_dev()
235 adev = ACPI_COMPANION(&dev->tdev); in ata_acpi_bind_dev()
269 if (ACPI_HANDLE(&ap->tdev) && gtm) in ata_acpi_dissociate()
[all …]
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)
259 struct device *dev = &ap->tdev; in ata_tport_delete()
287 struct device *dev = &ap->tdev; in ata_tport_add()
424 struct device *dev = &link->tdev; in ata_tlink_delete()
448 struct device *dev = &link->tdev; in ata_tlink_add()
454 dev->parent = &ap->tdev; in ata_tlink_add()
671 transport_destroy_device(&dev->tdev); in ata_tdev_free()
672 put_device(&dev->tdev); in ata_tdev_free()
[all …]
Dlibata-zpodd.c192 acpi_pm_set_device_wakeup(&dev->tdev, true); in zpodd_enable_run_wake()
201 acpi_pm_set_device_wakeup(&dev->tdev, false); in zpodd_disable_run_wake()
267 struct acpi_device *adev = ACPI_COMPANION(&dev->tdev); in zpodd_init()
287 dev_pm_qos_expose_flags(&dev->tdev, 0); in zpodd_init()

123