/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
A D | tegra.c | 35 if (tdev->vdd) { in nvkm_device_tegra_power_up() 73 if (tdev->clk_ref) in nvkm_device_tegra_power_up() 78 if (tdev->vdd) in nvkm_device_tegra_power_up() 95 if (tdev->vdd) { in nvkm_device_tegra_power_down() 180 iommu_detach_device(tdev->iommu.domain, tdev->device.dev); in nvkm_device_tegra_remove_iommu() 229 if (tdev->irq) { in nvkm_device_tegra_fini() 230 free_irq(tdev->irq, tdev); in nvkm_device_tegra_fini() 231 tdev->irq = 0; in nvkm_device_tegra_fini() 260 return tdev; in nvkm_device_tegra_dtor() 285 if (!(tdev = kzalloc(sizeof(*tdev), GFP_KERNEL))) in nvkm_device_tegra_new() [all …]
|
/linux/drivers/mailbox/ |
A D | mailbox-test.c | 58 dev_err(tdev->dev, in mbox_test_signal_write() 67 if (!tdev->signal) in mbox_test_signal_write() 127 if (tdev->tx_mmio && tdev->signal) { in mbox_test_message_write() 283 memcpy_fromio(tdev->rx_buffer, tdev->rx_mmio, MBOX_MAX_MSG_LEN); in mbox_test_receive_message() 305 memcpy_toio(tdev->tx_mmio, tdev->message, MBOX_MAX_MSG_LEN); in mbox_test_prepare_message() 356 tdev = devm_kzalloc(&pdev->dev, sizeof(*tdev), GFP_KERNEL); in mbox_test_probe() 357 if (!tdev) in mbox_test_probe() 378 tdev->rx_mmio = tdev->tx_mmio; in mbox_test_probe() 384 if (!tdev->tx_channel && !tdev->rx_channel) in mbox_test_probe() 388 if (!tdev->rx_channel && (tdev->rx_mmio != tdev->tx_mmio)) in mbox_test_probe() [all …]
|
/linux/drivers/thermal/ |
A D | uniphier_thermal.c | 161 if (tdev->alert_en[i]) in uniphier_tm_enable_sensor() 231 uniphier_tm_irq_clear(tdev); in uniphier_tm_alarm_irq() 254 tdev = devm_kzalloc(dev, sizeof(*tdev), GFP_KERNEL); in uniphier_tm_probe() 255 if (!tdev) in uniphier_tm_probe() 257 tdev->dev = dev; in uniphier_tm_probe() 260 if (WARN_ON(!tdev->data)) in uniphier_tm_probe() 276 tdev->regmap = regmap; in uniphier_tm_probe() 286 0, "thermal", tdev); in uniphier_tm_probe() 292 tdev->tz_dev = devm_thermal_zone_of_sensor_register(dev, 0, tdev, in uniphier_tm_probe() 294 if (IS_ERR(tdev->tz_dev)) { in uniphier_tm_probe() [all …]
|
/linux/drivers/tc/ |
A D | tc.c | 42 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() 91 tdev->bus = tbus; in tc_bus_add_devices() 94 tdev->slot = slot; in tc_bus_add_devices() 98 tdev->dev.dma_mask = &tdev->dma_mask; in tc_bus_add_devices() 106 tdev->name[i] = in tc_bus_add_devices() 113 pr_info("%s: %s %s %s\n", dev_name(&tdev->dev), tdev->vendor, in tc_bus_add_devices() 114 tdev->name, tdev->firmware); in tc_bus_add_devices() 129 kfree(tdev); in tc_bus_add_devices() [all …]
|
A D | tc-driver.c | 60 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/gpu/drm/vmwgfx/ |
A D | ttm_object.c | 169 struct ttm_object_device *tdev = tfile->tdev; in ttm_base_object_init() local 205 struct ttm_object_device *tdev = base->tfile->tdev; in ttm_release_base() local 506 tfile->tdev = tdev; in ttm_object_file_init() 548 tdev->dmabuf_release = tdev->ops.release; in ttm_object_device_init() 552 return tdev; in ttm_object_device_init() 555 kfree(tdev); in ttm_object_device_init() 569 kfree(tdev); in ttm_object_device_release() 628 struct ttm_object_device *tdev = base->tfile->tdev; in ttm_prime_dmabuf_release() local 636 ttm_mem_global_free(tdev->mem_glob, tdev->dma_buf_size); in ttm_prime_dmabuf_release() 654 struct ttm_object_device *tdev = tfile->tdev; in ttm_prime_fd_to_handle() local [all …]
|
/linux/drivers/dma/ |
A D | mmp_tdma.c | 581 tdmac->dev = tdev->dev; in mmp_tdma_chan_init() 593 &tdev->device.channels); in mmp_tdma_chan_init() 641 struct mmp_tdma_device *tdev; in mmp_tdma_probe() local 655 tdev = devm_kzalloc(&pdev->dev, sizeof(*tdev), GFP_KERNEL); in mmp_tdma_probe() 656 if (!tdev) in mmp_tdma_probe() 659 tdev->dev = &pdev->dev; in mmp_tdma_probe() 668 if (IS_ERR(tdev->base)) in mmp_tdma_probe() 669 return PTR_ERR(tdev->base); in mmp_tdma_probe() 700 tdev->device.dev = &pdev->dev; in mmp_tdma_probe() 736 mmp_tdma_xlate, tdev); in mmp_tdma_probe() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
A D | cxgb3_offload.c | 86 struct t3cdev *tdev; in cxgb3_register_client() local 111 struct t3cdev *tdev; in cxgb3_unregister_client() local 140 client->add(tdev); in cxgb3_add_clients() 1083 BUG_ON(!tdev); in cxgb_neigh_update() 1107 tdev->send(tdev, skb); in set_l2t_ix() 1127 BUG_ON(!tdev); in cxgb_redirect() 1290 struct t3cdev *tdev = &adapter->tdev; in cxgb3_offload_deactivate() local 1301 d = L2DATA(tdev); in cxgb3_offload_deactivate() 1314 snprintf(tdev->name, sizeof(tdev->name), "ofld_dev%d", unit++); in register_tdev() 1347 struct t3cdev *tdev = &adapter->tdev; in cxgb3_adapter_ofld() local [all …]
|
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);
|
/linux/arch/mips/dec/ |
A D | tc.c | 70 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/ |
A D | gm20b.c | 70 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()
|
A D | gk20a.c | 151 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/usb/serial/ |
A D | ti_usb_3410_5052.c | 510 struct ti_device *tdev; in ti_startup() local 524 if (!tdev) in ti_startup() 533 tdev->td_is_3410 = 1; in ti_startup() 559 if (tdev->td_is_3410) { in ti_startup() 585 kfree(tdev); in ti_startup() 595 kfree(tdev); in ti_release() 642 struct ti_device *tdev; in ti_open() local 653 tdev = tport->tp_tdev; in ti_open() 671 urb->context = tdev; in ti_open() 763 struct ti_device *tdev; in ti_close() local [all …]
|
/linux/drivers/usb/misc/ |
A D | usbtest.c | 118 #define ERROR(tdev, fmt, args...) \ argument 120 #define WARNING(tdev, fmt, args...) \ argument 408 int ret = check_guard_bytes(tdev, urb); in simple_check_buf() 455 struct usbtest_dev *tdev, in simple_io() argument 491 retval = simple_check_buf(tdev, urb); in simple_io() 601 struct usbtest_dev *tdev, in perform_sglist() argument 644 ERROR(tdev, "perform_sglist failed, " in perform_sglist() 756 ERROR(tdev, "reserved bits set\n"); in is_good_ext() 804 ERROR(tdev, "reserved bits set\n"); in is_good_con_id() 1694 retval = verify_halted(tdev, ep, urb); in test_halt() [all …]
|
/linux/drivers/pnp/ |
A D | resource.c | 169 struct pnp_dev *tdev; in pnp_check_port() local 207 pnp_for_each_dev(tdev) { in pnp_check_port() 208 if (tdev == dev) in pnp_check_port() 232 struct pnp_dev *tdev; in pnp_check_mem() local 270 pnp_for_each_dev(tdev) { in pnp_check_mem() 271 if (tdev == dev) in pnp_check_mem() 355 struct pnp_dev *tdev; in pnp_check_irq() local 397 pnp_for_each_dev(tdev) { in pnp_check_irq() 398 if (tdev == dev) in pnp_check_irq() 419 struct pnp_dev *tdev; in pnp_check_dma() local [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
A D | base.c | 82 struct nvkm_top_device *tdev; in nvkm_mc_intr() local 93 list_for_each_entry(tdev, &top->device, head) { in nvkm_mc_intr() 94 if (tdev->intr >= 0 && (stat & BIT(tdev->intr))) { in nvkm_mc_intr() 95 subdev = nvkm_device_subdev(device, tdev->type, tdev->inst); in nvkm_mc_intr() 98 stat &= ~BIT(tdev->intr); in nvkm_mc_intr()
|
/linux/drivers/s390/char/ |
A D | tape_core.c | 96 struct tape_device *tdev; in tape_medium_state_show() local 98 tdev = dev_get_drvdata(dev); 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() 120 struct tape_device *tdev; in tape_state_show() local 122 tdev = dev_get_drvdata(dev); in tape_state_show() 133 struct tape_device *tdev; in tape_operation_show() local 136 tdev = dev_get_drvdata(dev); in tape_operation_show() 137 if (tdev->first_minor < 0) in tape_operation_show() 160 struct tape_device *tdev; in tape_blocksize_show() local [all …]
|
/linux/drivers/ata/ |
A D | libata-transport.c | 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() 283 struct device *dev = &ap->tdev; in ata_tport_add() 385 struct device *dev = &link->tdev; in ata_tlink_delete() 409 struct device *dev = &link->tdev; in ata_tlink_add() 415 dev->parent = &ap->tdev; in ata_tlink_add() 630 put_device(&dev->tdev); in ata_tdev_free() 641 struct device *dev = &ata_dev->tdev; in ata_tdev_delete() 660 struct device *dev = &ata_dev->tdev; in ata_tdev_add() [all …]
|
A D | libata-acpi.c | 63 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() 193 adev = ACPI_COMPANION(&ap->tdev); in ata_acpi_bind_port() 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() 293 acpi_handle handle = ACPI_HANDLE(&ap->tdev); in ata_acpi_gtm() 845 if (ACPI_HANDLE(&ap->tdev) && gtm) { in ata_acpi_on_resume() [all …]
|
A D | libata-zpodd.c | 192 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/video/fbdev/ |
A D | pmag-ba-fb.c | 146 struct tc_dev *tdev = to_tc_dev(dev); in pmagbafb_probe() local 172 start = tdev->resource.start; in pmagbafb_probe() 173 len = tdev->resource.end - start + 1; in pmagbafb_probe() 238 struct tc_dev *tdev = to_tc_dev(dev); in pmagbafb_remove() local 247 start = tdev->resource.start; in pmagbafb_remove() 248 len = tdev->resource.end - start + 1; in pmagbafb_remove()
|
A D | pmag-aa-fb.c | 161 struct tc_dev *tdev = to_tc_dev(dev); in pmagaafb_probe() local 180 start = tdev->resource.start; in pmagaafb_probe() 181 len = tdev->resource.end - start + 1; in pmagaafb_probe() 250 struct tc_dev *tdev = to_tc_dev(dev); in pmagaafb_remove() local 259 start = tdev->resource.start; in pmagaafb_remove() 260 len = tdev->resource.end - start + 1; in pmagaafb_remove()
|
A D | pmagb-b-fb.c | 251 struct tc_dev *tdev = to_tc_dev(dev); in pmagbbfb_probe() local 279 start = tdev->resource.start; in pmagbbfb_probe() 280 len = tdev->resource.end - start + 1; in pmagbbfb_probe() 356 struct tc_dev *tdev = to_tc_dev(dev); in pmagbbfb_remove() local 365 start = tdev->resource.start; in pmagbbfb_remove() 366 len = tdev->resource.end - start + 1; in pmagbbfb_remove()
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
A D | gk104.c | 942 struct nvkm_top_device *tdev; in gk104_fifo_oneinit() local 957 list_for_each_entry(tdev, &device->top->device, head) { in gk104_fifo_oneinit() 958 const int engn = tdev->engine; in gk104_fifo_oneinit() 966 if (map[j] & BIT(tdev->runlist)) { in gk104_fifo_oneinit() 972 fifo->engine[engn].engine = nvkm_device_engine(device, tdev->type, tdev->inst); in gk104_fifo_oneinit() 975 nvkm_subdev_type[tdev->type], tdev->inst); in gk104_fifo_oneinit() 982 tdev->engine, tdev->runlist, pbid, en); in gk104_fifo_oneinit() 984 fifo->engine[engn].runl = tdev->runlist; in gk104_fifo_oneinit() 987 fifo->runlist[tdev->runlist].engm |= BIT(engn); in gk104_fifo_oneinit() 988 fifo->runlist[tdev->runlist].engm_sw |= BIT(engn); in gk104_fifo_oneinit() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
A D | gk20a.c | 574 struct nvkm_device_tegra *tdev = device->func->tegra(device); in gk20a_instmem_new() local 588 if (tdev->iommu.domain) { in gk20a_instmem_new() 589 imem->mm_mutex = &tdev->iommu.mutex; in gk20a_instmem_new() 590 imem->mm = &tdev->iommu.mm; in gk20a_instmem_new() 591 imem->domain = tdev->iommu.domain; in gk20a_instmem_new() 592 imem->iommu_pgshift = tdev->iommu.pgshift; in gk20a_instmem_new() 593 imem->iommu_bit = tdev->func->iommu_bit; in gk20a_instmem_new()
|