/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
A D | tegra.c | 35 if (tdev->vdd) { in nvkm_device_tegra_power_up() 75 if (tdev->vdd) in nvkm_device_tegra_power_up() 91 if (tdev->vdd) { in nvkm_device_tegra_power_down() 124 if (!tdev->iommu.domain) in nvkm_device_tegra_probe_iommu() 165 tdev->iommu.pgshift = 0; in nvkm_device_tegra_probe_iommu() 176 iommu_detach_device(tdev->iommu.domain, tdev->device.dev); in nvkm_device_tegra_remove_iommu() 223 return tdev; in nvkm_device_tegra_dtor() 247 if (!(tdev = kzalloc(sizeof(*tdev), GFP_KERNEL))) in nvkm_device_tegra_new() 250 tdev->func = func; in nvkm_device_tegra_new() 251 tdev->pdev = pdev; in nvkm_device_tegra_new() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/thermal/ |
A D | uniphier_thermal.c | 159 if (tdev->alert_en[i]) in uniphier_tm_enable_sensor() 229 uniphier_tm_irq_clear(tdev); in uniphier_tm_alarm_irq() 251 tdev = devm_kzalloc(dev, sizeof(*tdev), GFP_KERNEL); in uniphier_tm_probe() 252 if (!tdev) in uniphier_tm_probe() 254 tdev->dev = dev; in uniphier_tm_probe() 257 if (WARN_ON(!tdev->data)) in uniphier_tm_probe() 273 tdev->regmap = regmap; in uniphier_tm_probe() 283 0, "thermal", tdev); in uniphier_tm_probe() 289 tdev->tz_dev = devm_thermal_of_zone_register(dev, 0, tdev, in uniphier_tm_probe() 291 if (IS_ERR(tdev->tz_dev)) { in uniphier_tm_probe() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/gpu/drm/vmwgfx/ |
A D | ttm_object.c | 196 struct ttm_object_device *tdev = tfile->tdev; in ttm_base_object_init() local 231 struct ttm_object_device *tdev = base->tfile->tdev; in ttm_release_base() local 416 tfile->tdev = tdev; in ttm_object_file_init() 428 struct ttm_object_device *tdev = kmalloc(sizeof(*tdev), GFP_KERNEL); in ttm_object_device_init() local 445 tdev->ops = *ops; in ttm_object_device_init() 446 tdev->dmabuf_release = tdev->ops.release; in ttm_object_device_init() 448 return tdev; in ttm_object_device_init() 460 kfree(tdev); in ttm_object_device_release() 519 struct ttm_object_device *tdev = base->tfile->tdev; in ttm_prime_dmabuf_release() local 544 struct ttm_object_device *tdev = tfile->tdev; in ttm_prime_fd_to_handle() local [all …]
|
/linux-6.3-rc2/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 654 tdev = devm_kzalloc(&pdev->dev, sizeof(*tdev), GFP_KERNEL); in mmp_tdma_probe() 655 if (!tdev) in mmp_tdma_probe() 658 tdev->dev = &pdev->dev; in mmp_tdma_probe() 666 if (IS_ERR(tdev->base)) in mmp_tdma_probe() 667 return PTR_ERR(tdev->base); in mmp_tdma_probe() 695 tdev->device.dev = &pdev->dev; in mmp_tdma_probe() 731 mmp_tdma_xlate, tdev); in mmp_tdma_probe() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/usb/serial/ |
A D | ti_usb_3410_5052.c | 511 struct ti_device *tdev; in ti_startup() local 525 if (!tdev) in ti_startup() 534 tdev->td_is_3410 = 1; in ti_startup() 560 if (tdev->td_is_3410) { in ti_startup() 586 kfree(tdev); in ti_startup() 596 kfree(tdev); in ti_release() 643 struct ti_device *tdev; in ti_open() local 654 tdev = tport->tp_tdev; in ti_open() 672 urb->context = tdev; in ti_open() 764 struct ti_device *tdev; in ti_close() local [all …]
|
/linux-6.3-rc2/drivers/pnp/ |
A D | resource.c | 170 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() 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() 356 struct pnp_dev *tdev; in pnp_check_irq() local 398 pnp_for_each_dev(tdev) { in pnp_check_irq() 399 if (tdev == dev) in pnp_check_irq() 420 struct pnp_dev *tdev; in pnp_check_dma() local [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/core/ |
A D | intr.c | 37 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.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/ata/ |
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() 817 if (ACPI_HANDLE(&ap->tdev) && gtm) { in ata_acpi_on_resume() [all …]
|
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() 417 struct device *dev = &link->tdev; in ata_tlink_delete() 441 struct device *dev = &link->tdev; in ata_tlink_add() 447 dev->parent = &ap->tdev; in ata_tlink_add() 665 put_device(&dev->tdev); in ata_tdev_free() 676 struct device *dev = &ata_dev->tdev; in ata_tdev_delete() 695 struct device *dev = &ata_dev->tdev; in ata_tdev_add() [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-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
A D | gk104.c | 759 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()
|
A D | ga100.c | 509 struct nvkm_top_device *tdev; in ga100_fifo_runl_ctor() local 513 nvkm_list_foreach(tdev, &device->top->device, head, tdev->runlist >= 0) { in ga100_fifo_runl_ctor() 514 runl = nvkm_runl_get(fifo, -1, tdev->runlist); in ga100_fifo_runl_ctor() 516 ret = ga100_runl_new(fifo, id++, tdev->runlist, &runl); in ga100_fifo_runl_ctor() 521 if (tdev->engine < 0) in ga100_fifo_runl_ctor() 524 nvkm_runl_add(runl, tdev->engine, (tdev->type == NVKM_ENGINE_CE) ? in ga100_fifo_runl_ctor() 525 fifo->func->engn_ce : fifo->func->engn, tdev->type, tdev->inst); in ga100_fifo_runl_ctor()
|