/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
D | tegra.c | 31 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 if (tdev->clk_ref) { in nvkm_device_tegra_power_up() 45 ret = clk_prepare_enable(tdev->clk_ref); in nvkm_device_tegra_power_up() 49 ret = clk_prepare_enable(tdev->clk_pwr); in nvkm_device_tegra_power_up() 52 clk_set_rate(tdev->clk_pwr, 204000000); in nvkm_device_tegra_power_up() 55 reset_control_assert(tdev->rst); in nvkm_device_tegra_power_up() 58 if (!tdev->pdev->dev.pm_domain) { in nvkm_device_tegra_power_up() [all …]
|
/drivers/mailbox/ |
D | mailbox-test.c | 54 struct mbox_test_device *tdev = filp->private_data; in mbox_test_signal_write() local 56 if (!tdev->tx_channel) { in mbox_test_signal_write() 57 dev_err(tdev->dev, "Channel cannot do Tx\n"); in mbox_test_signal_write() 62 dev_err(tdev->dev, in mbox_test_signal_write() 69 if (!tdev->signal) { in mbox_test_signal_write() 70 tdev->signal = kzalloc(MBOX_MAX_SIG_LEN, GFP_KERNEL); in mbox_test_signal_write() 71 if (!tdev->signal) in mbox_test_signal_write() 75 if (copy_from_user(tdev->signal, userbuf, count)) { in mbox_test_signal_write() 76 kfree(tdev->signal); in mbox_test_signal_write() 77 tdev->signal = NULL; in mbox_test_signal_write() [all …]
|
/drivers/gpu/drm/tinydrm/core/ |
D | tinydrm-core.c | 47 struct tinydrm_device *tdev = drm->dev_private; in tinydrm_lastclose() local 50 drm_fbdev_cma_restore_mode(tdev->fbdev_cma); in tinydrm_lastclose() 129 struct tinydrm_device *tdev = drm->dev_private; in tinydrm_fb_create() local 132 tdev->fb_funcs); in tinydrm_fb_create() 141 static int tinydrm_init(struct device *parent, struct tinydrm_device *tdev, in tinydrm_init() argument 147 mutex_init(&tdev->dirty_lock); in tinydrm_init() 148 tdev->fb_funcs = fb_funcs; in tinydrm_init() 160 tdev->drm = drm; in tinydrm_init() 161 drm->dev_private = tdev; in tinydrm_init() 168 static void tinydrm_fini(struct tinydrm_device *tdev) in tinydrm_fini() argument [all …]
|
/drivers/thermal/ |
D | uniphier_thermal.c | 102 static int uniphier_tm_initialize_sensor(struct uniphier_tm_dev *tdev) in uniphier_tm_initialize_sensor() argument 104 struct regmap *map = tdev->regmap; in uniphier_tm_initialize_sensor() 110 regmap_write_bits(map, tdev->data->block_base + PVTCTLEN, in uniphier_tm_initialize_sensor() 120 ret = regmap_read(map, tdev->data->map_base + TMODCOEF, &val); in uniphier_tm_initialize_sensor() 125 ret = of_property_read_u32_array(tdev->dev->of_node, in uniphier_tm_initialize_sensor() 132 regmap_write(map, tdev->data->tmod_setup_addr, in uniphier_tm_initialize_sensor() 138 regmap_write_bits(map, tdev->data->block_base + PVTCTLMODE, in uniphier_tm_initialize_sensor() 142 regmap_write_bits(map, tdev->data->block_base + EMONREPEAT, in uniphier_tm_initialize_sensor() 147 regmap_write_bits(map, tdev->data->map_base + PVTCTLSEL, in uniphier_tm_initialize_sensor() 153 static void uniphier_tm_set_alert(struct uniphier_tm_dev *tdev, u32 ch, in uniphier_tm_set_alert() argument [all …]
|
/drivers/tc/ |
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() 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 …]
|
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() 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/input/misc/ |
D | gpio_tilt_polled.c | 42 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/gpu/drm/ttm/ |
D | ttm_object.c | 70 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/ |
D | mmp_tdma.c | 330 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/ |
D | cxgb3_offload.c | 70 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 …]
|
/drivers/gpu/drm/tinydrm/ |
D | st7586.c | 115 struct tinydrm_device *tdev = fb->dev->dev_private; in st7586_fb_dirty() local 116 struct mipi_dbi *mipi = mipi_dbi_from_tinydrm(tdev); in st7586_fb_dirty() 121 mutex_lock(&tdev->dirty_lock); in st7586_fb_dirty() 127 if (tdev->pipe.plane.fb != fb) in st7586_fb_dirty() 160 mutex_unlock(&tdev->dirty_lock); in st7586_fb_dirty() 178 struct tinydrm_device *tdev = pipe_to_tinydrm(pipe); in st7586_pipe_enable() local 179 struct mipi_dbi *mipi = mipi_dbi_from_tinydrm(tdev); in st7586_pipe_enable() 181 struct device *dev = tdev->drm->dev; in st7586_pipe_enable() 250 struct tinydrm_device *tdev = pipe_to_tinydrm(pipe); in st7586_pipe_disable() local 251 struct mipi_dbi *mipi = mipi_dbi_from_tinydrm(tdev); in st7586_pipe_disable() [all …]
|
D | repaper.c | 85 epd_from_tinydrm(struct tinydrm_device *tdev) in epd_from_tinydrm() argument 87 return container_of(tdev, struct repaper_epd, tinydrm); in epd_from_tinydrm() 531 struct tinydrm_device *tdev = fb->dev->dev_private; in repaper_fb_dirty() local 532 struct repaper_epd *epd = epd_from_tinydrm(tdev); in repaper_fb_dirty() 543 mutex_lock(&tdev->dirty_lock); in repaper_fb_dirty() 549 if (tdev->pipe.plane.fb != fb) in repaper_fb_dirty() 629 mutex_unlock(&tdev->dirty_lock); in repaper_fb_dirty() 664 struct tinydrm_device *tdev = pipe_to_tinydrm(pipe); in repaper_pipe_enable() local 665 struct repaper_epd *epd = epd_from_tinydrm(tdev); in repaper_pipe_enable() 799 struct tinydrm_device *tdev = pipe_to_tinydrm(pipe); in repaper_pipe_disable() local [all …]
|
D | mi0283qt.c | 25 struct tinydrm_device *tdev = &mipi->tinydrm; in mi0283qt_init() local 26 struct device *dev = tdev->drm->dev; in mi0283qt_init() 166 struct tinydrm_device *tdev; in mi0283qt_probe() local 218 tdev = &mipi->tinydrm; in mi0283qt_probe() 220 ret = devm_tinydrm_register(tdev); in mi0283qt_probe() 227 tdev->drm->driver->name, dev_name(dev), in mi0283qt_probe() 229 tdev->drm->primary->index); in mi0283qt_probe()
|
D | mipi-dbi.c | 202 struct tinydrm_device *tdev = fb->dev->dev_private; in mipi_dbi_fb_dirty() local 203 struct mipi_dbi *mipi = mipi_dbi_from_tinydrm(tdev); in mipi_dbi_fb_dirty() 210 mutex_lock(&tdev->dirty_lock); in mipi_dbi_fb_dirty() 216 if (tdev->pipe.plane.fb != fb) in mipi_dbi_fb_dirty() 246 mutex_unlock(&tdev->dirty_lock); in mipi_dbi_fb_dirty() 272 struct tinydrm_device *tdev = pipe_to_tinydrm(pipe); in mipi_dbi_pipe_enable() local 273 struct mipi_dbi *mipi = mipi_dbi_from_tinydrm(tdev); in mipi_dbi_pipe_enable() 313 struct tinydrm_device *tdev = pipe_to_tinydrm(pipe); in mipi_dbi_pipe_disable() local 314 struct mipi_dbi *mipi = mipi_dbi_from_tinydrm(tdev); in mipi_dbi_pipe_disable() 358 struct tinydrm_device *tdev = &mipi->tinydrm; in mipi_dbi_init() local [all …]
|
/drivers/usb/serial/ |
D | ti_usb_3410_5052.c | 346 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); 519 struct ti_device *tdev; in ti_startup() local 532 tdev = kzalloc(sizeof(struct ti_device), GFP_KERNEL); in ti_startup() 533 if (!tdev) in ti_startup() 536 mutex_init(&tdev->td_open_close_lock); in ti_startup() 537 tdev->td_serial = serial; in ti_startup() 538 usb_set_serial_data(serial, tdev); in ti_startup() [all …]
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_cm.c | 139 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 …]
|
D | iwch.c | 143 static void open_rnic_dev(struct t3cdev *tdev) in open_rnic_dev() argument 147 pr_debug("%s t3cdev %p\n", __func__, tdev); in open_rnic_dev() 155 rnicp->rdev.t3cdev_p = tdev; in open_rnic_dev() 173 close_rnic_dev(tdev); in open_rnic_dev() 180 static void close_rnic_dev(struct t3cdev *tdev) in close_rnic_dev() argument 183 pr_debug("%s t3cdev %p\n", __func__, tdev); in close_rnic_dev() 186 if (dev->rdev.t3cdev_p == tdev) { in close_rnic_dev() 203 static void iwch_event_handler(struct t3cdev *tdev, u32 evt, u32 port_id) in iwch_event_handler() argument 205 struct cxio_rdev *rdev = tdev->ulp; in iwch_event_handler()
|
/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
D | gm20b.c | 69 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()
|
/drivers/pnp/ |
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() 211 (tres = pnp_get_resource(tdev, IORESOURCE_IO, i)); 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() 274 (tres = pnp_get_resource(tdev, IORESOURCE_MEM, i)); in pnp_check_mem() 355 struct pnp_dev *tdev; in pnp_check_irq() local 397 pnp_for_each_dev(tdev) { in pnp_check_irq() [all …]
|
/drivers/usb/misc/ |
D | usbtest.c | 117 #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) 375 static int check_guard_bytes(struct usbtest_dev *tdev, struct urb *urb) in check_guard_bytes() argument 383 ERROR(tdev, "guard byte[%d] %d (not %d)\n", in check_guard_bytes() 391 static int simple_check_buf(struct usbtest_dev *tdev, struct urb *urb) in simple_check_buf() argument 399 int ret = check_guard_bytes(tdev, urb); in simple_check_buf() 424 ERROR(tdev, "buf[%d] = %d (not %d)\n", i, *buf, expected); in simple_check_buf() 446 struct usbtest_dev *tdev, in simple_io() argument [all …]
|
/drivers/ata/ |
D | libata-transport.c | 69 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 …]
|
D | libata-acpi.c | 62 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/ |
D | tape_core.c | 95 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/ |
D | pmag-ba-fb.c | 146 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()
|
D | pmag-aa-fb.c | 161 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()
|