Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A 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/drivers/mailbox/
H A 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/drivers/gpu/drm/vmwgfx/
H A Dttm_object.c78 struct ttm_object_device *tdev; member
193 struct ttm_object_device *tdev = tfile->tdev; in ttm_base_object_init() local
202 spin_lock(&tdev->object_lock); in ttm_base_object_init()
203 ret = idr_alloc(&tdev->idr, base, 1, 0, GFP_NOWAIT); in ttm_base_object_init()
204 spin_unlock(&tdev->object_lock); in ttm_base_object_init()
218 spin_lock(&tdev->object_lock); in ttm_base_object_init()
219 idr_remove(&tdev->idr, base->handle); in ttm_base_object_init()
220 spin_unlock(&tdev->object_lock); in ttm_base_object_init()
228 struct ttm_object_device *tdev = base->tfile->tdev; in ttm_release_base() local
230 spin_lock(&tdev->object_lock); in ttm_release_base()
[all …]
H A Dttm_object.h181 ttm_base_object_lookup_for_ref(struct ttm_object_device *tdev, uint64_t key);
245 *tdev);
/linux/arch/mips/dec/
H A 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/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
H A 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()
H A 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/drivers/tc/
H A 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/drivers/usb/serial/
H A 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);
509 struct ti_device *tdev; in ti_startup() local
522 tdev = kzalloc(sizeof(struct ti_device), GFP_KERNEL); in ti_startup()
523 if (!tdev) in ti_startup()
526 mutex_init(&tdev->td_open_close_lock); in ti_startup()
527 tdev->td_serial = serial; in ti_startup()
528 usb_set_serial_data(serial, tdev); in ti_startup()
532 tdev->td_is_3410 = 1; in ti_startup()
534 tdev->td_is_3410 ? "3410" : "5052"); in ti_startup()
[all …]
/linux/drivers/pnp/
H A 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/drivers/gpu/drm/nouveau/nvkm/core/
H A 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/drivers/video/fbdev/
H A 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()
H A 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()
H A 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/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dga100.c443 struct nvkm_top_device *tdev; in ga100_runl_new() local
473 nvkm_list_foreach(tdev, &device->top->device, head, tdev->runlist == runl->addr) { in ga100_runl_new()
474 if (tdev->engine < 0) { in ga100_runl_new()
479 engn = nvkm_runl_add(runl, tdev->engine, (tdev->type == NVKM_ENGINE_CE) ? in ga100_runl_new()
481 tdev->type, tdev->inst); in ga100_runl_new()
577 struct nvkm_top_device *tdev; in ga100_fifo_runl_ctor() local
581 nvkm_list_foreach(tdev, &device->top->device, head, tdev->runlist >= 0) { in ga100_fifo_runl_ctor()
582 runl = nvkm_runl_get(fifo, -1, tdev->runlist); in ga100_fifo_runl_ctor()
584 ret = ga100_runl_new(fifo, id++, tdev->runlist, &runl); in ga100_fifo_runl_ctor()
H A 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/drivers/ata/
H A 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)
254 struct device *dev = &ap->tdev; in ata_tport_delete()
283 struct device *dev = &ap->tdev; in ata_tport_add()
540 transport_destroy_device(&dev->tdev); in ata_tdev_free()
541 put_device(&dev->tdev); in ata_tdev_free()
552 struct device *dev = &ata_dev->tdev; in ata_tdev_delete()
570 struct device *dev = &ata_dev->tdev; in ata_tdev_add()
576 dev->parent = &link->tdev; in ata_tdev_add()
[all …]
H A 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()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
H A 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()
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dadapter.h221 struct t3cdev tdev; member
299 #define tdev2adap(d) container_of(d, struct adapter, tdev)
306 int t3_offload_tx(struct t3cdev *tdev, struct sk_buff *skb);
H A 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()
1350 struct t3cdev *tdev = dev2t3cdev(dev); in offload_open() local
1361 tdev->lldev = adapter->port[0]; in offload_open()
1373 if (sysfs_create_group(&tdev->lldev->dev.kobj, &offload_attr_group)) in offload_open()
1377 cxgb3_add_clients(tdev); in offload_open()
1384 cxgb3_set_dummy_ops(tdev); in offload_open()
1389 static int offload_close(struct t3cdev *tdev) in offload_close() argument
1391 struct adapter *adapter = tdev2adap(tdev); in offload_close()
[all …]
/linux/drivers/scsi/cxgbi/cxgb3i/
H A Dcxgb3i.c229 static void abort_arp_failure(struct t3cdev *tdev, struct sk_buff *skb) in abort_arp_failure() argument
235 tdev, GET_TID(req), skb); in abort_arp_failure()
237 cxgb3_ofld_send(tdev, skb); in abort_arp_failure()
475 static int do_act_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) in do_act_establish() argument
571 static int do_act_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) in do_act_open_rpl() argument
584 cxgb3_queue_tid_release(tdev, GET_TID(rpl)); in do_act_open_rpl()
1224 struct t3cdev *tdev = (struct t3cdev *)cdev->lldev; in cxgb3i_ddp_init() local
1231 err = tdev->ctl(tdev, ULP_ISCSI_GET_PARAMS, &uinfo); in cxgb3i_ddp_init()
1255 err = cxgbi_ddp_ppm_setup(&tdev->ulp_iscsi, cdev, &tformat, in cxgb3i_ddp_init()
1265 err = tdev->ctl(tdev, ULP_ISCSI_SET_PARAMS, &uinfo); in cxgb3i_ddp_init()
/linux/net/ipv6/
H A Dip6_vti.c445 struct net_device *tdev; in vti6_xmit() local
500 tdev = dst->dev; in vti6_xmit()
502 if (tdev == dev) { in vti6_xmit()
653 struct net_device *tdev = NULL; in vti6_link_config() local
682 tdev = rt->dst.dev; in vti6_link_config()
686 if (!tdev && p->link) in vti6_link_config()
687 tdev = __dev_get_by_index(t->net, p->link); in vti6_link_config()
689 if (tdev) in vti6_link_config()
690 mtu = tdev->mtu - sizeof(struct ipv6hdr); in vti6_link_config()
H A Dsit.c864 struct net_device *tdev; /* Device to other host */ in ipip6_tunnel_xmit() local
958 tdev = rt->dst.dev; in ipip6_tunnel_xmit()
960 if (tdev == dev) { in ipip6_tunnel_xmit()
1007 max_headroom = LL_RESERVED_SPACE(tdev) + t_hlen; in ipip6_tunnel_xmit()
1102 struct net_device *tdev = NULL; in ipip6_tunnel_bind_dev() local
1119 tdev = rt->dst.dev; in ipip6_tunnel_bind_dev()
1125 if (!tdev && tunnel->parms.link) in ipip6_tunnel_bind_dev()
1126 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ipip6_tunnel_bind_dev()
1128 if (tdev && !netif_is_l3_master(tdev)) { in ipip6_tunnel_bind_dev()
1131 mtu = tdev->mtu - t_hlen; in ipip6_tunnel_bind_dev()
[all …]
/linux/drivers/hwmon/
H A Dhwmon.c874 struct device *tdev = dev; in __hwmon_device_register() local
944 while (tdev && !tdev->of_node) in __hwmon_device_register()
945 tdev = tdev->parent; in __hwmon_device_register()
946 hdev->of_node = tdev ? tdev->of_node : NULL; in __hwmon_device_register()

12