/drivers/hid/ |
D | hid-thingm.c | 55 struct thingm_device *tdev; member 74 static int thingm_send(struct thingm_device *tdev, u8 buf[REPORT_SIZE]) in thingm_send() argument 78 hid_dbg(tdev->hdev, "-> %d %c %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", in thingm_send() 82 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, in thingm_send() 88 static int thingm_recv(struct thingm_device *tdev, u8 buf[REPORT_SIZE]) in thingm_recv() argument 92 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, in thingm_recv() 97 hid_dbg(tdev->hdev, "<- %d %c %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", in thingm_recv() 104 static int thingm_version(struct thingm_device *tdev) in thingm_version() argument 109 err = thingm_send(tdev, buf); in thingm_version() 113 err = thingm_recv(tdev, buf); in thingm_version() [all …]
|
/drivers/staging/android/ |
D | timed_output.c | 33 struct timed_output_dev *tdev = dev_get_drvdata(dev); in enable_show() local 34 int remaining = tdev->get_time(tdev); in enable_show() 42 struct timed_output_dev *tdev = dev_get_drvdata(dev); in enable_store() local 50 tdev->enable(tdev, value); in enable_store() 75 int timed_output_dev_register(struct timed_output_dev *tdev) in timed_output_dev_register() argument 79 if (!tdev || !tdev->name || !tdev->enable || !tdev->get_time) in timed_output_dev_register() 86 tdev->index = atomic_inc_return(&device_count); in timed_output_dev_register() 87 tdev->dev = device_create(timed_output_class, NULL, in timed_output_dev_register() 88 MKDEV(0, tdev->index), NULL, "%s", tdev->name); in timed_output_dev_register() 89 if (IS_ERR(tdev->dev)) in timed_output_dev_register() [all …]
|
/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/tc/ |
D | tc.c | 41 struct tc_dev *tdev; in tc_bus_add_devices() local 84 tdev = kzalloc(sizeof(*tdev), GFP_KERNEL); in tc_bus_add_devices() 85 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->firmware[i] = in tc_bus_add_devices() 99 tdev->vendor[i] = 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/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 | 301 struct mmp_tdma_device *tdev = dev_id; in mmp_tdma_int_handler() local 306 struct mmp_tdma_chan *tdmac = tdev->tdmac[i]; in mmp_tdma_int_handler() 513 struct mmp_tdma_device *tdev = platform_get_drvdata(pdev); in mmp_tdma_remove() local 515 dma_async_device_unregister(&tdev->device); in mmp_tdma_remove() 519 static int mmp_tdma_chan_init(struct mmp_tdma_device *tdev, in mmp_tdma_chan_init() argument 526 dev_err(tdev->dev, "too many channels for device!\n"); in mmp_tdma_chan_init() 531 tdmac = devm_kzalloc(tdev->dev, sizeof(*tdmac), GFP_KERNEL); in mmp_tdma_chan_init() 533 dev_err(tdev->dev, "no free memory for DMA channels!\n"); in mmp_tdma_chan_init() 538 tdmac->dev = tdev->dev; in mmp_tdma_chan_init() 539 tdmac->chan.device = &tdev->device; 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 …]
|
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);
|
D | adapter.h | 222 struct t3cdev tdev; member 300 #define tdev2adap(d) container_of(d, struct adapter, tdev) 307 int t3_offload_tx(struct t3cdev *tdev, struct sk_buff *skb);
|
D | cxgb3_main.c | 890 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() 1349 struct t3cdev *tdev = dev2t3cdev(dev); in offload_open() local 1360 tdev->lldev = adapter->port[0]; in offload_open() 1372 if (sysfs_create_group(&tdev->lldev->dev.kobj, &offload_attr_group)) in offload_open() 1376 cxgb3_add_clients(tdev); in offload_open() 1383 cxgb3_set_dummy_ops(tdev); in offload_open() 1388 static int offload_close(struct t3cdev *tdev) in offload_close() argument 1390 struct adapter *adapter = tdev2adap(tdev); in offload_close() [all …]
|
/drivers/usb/serial/ |
D | ti_usb_3410_5052.c | 128 static int ti_command_out_sync(struct ti_device *tdev, __u8 command, 130 static int ti_command_in_sync(struct ti_device *tdev, __u8 command, 133 static int ti_write_byte(struct usb_serial_port *port, struct ti_device *tdev, 136 static int ti_download_firmware(struct ti_device *tdev); 291 struct ti_device *tdev; in ti_startup() local 302 tdev = kzalloc(sizeof(struct ti_device), GFP_KERNEL); in ti_startup() 303 if (!tdev) in ti_startup() 306 mutex_init(&tdev->td_open_close_lock); in ti_startup() 307 tdev->td_serial = serial; in ti_startup() 308 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 | 144 static void open_rnic_dev(struct t3cdev *tdev) in open_rnic_dev() argument 148 PDBG("%s t3cdev %p\n", __func__, tdev); in open_rnic_dev() 157 rnicp->rdev.t3cdev_p = tdev; in open_rnic_dev() 175 close_rnic_dev(tdev); in open_rnic_dev() 182 static void close_rnic_dev(struct t3cdev *tdev) in close_rnic_dev() argument 185 PDBG("%s t3cdev %p\n", __func__, tdev); in close_rnic_dev() 188 if (dev->rdev.t3cdev_p == tdev) { in close_rnic_dev() 205 static void iwch_event_handler(struct t3cdev *tdev, u32 evt, u32 port_id) in iwch_event_handler() argument 207 struct cxio_rdev *rdev = tdev->ulp; in iwch_event_handler()
|
/drivers/pci/ |
D | access.c | 358 struct pci_dev *tdev = pci_get_slot(dev->bus, PCI_SLOT(dev->devfn)); in pci_vpd_f0_read() local 361 if (!tdev) in pci_vpd_f0_read() 364 ret = pci_read_vpd(tdev, pos, count, arg); in pci_vpd_f0_read() 365 pci_dev_put(tdev); in pci_vpd_f0_read() 372 struct pci_dev *tdev = pci_get_slot(dev->bus, PCI_SLOT(dev->devfn)); in pci_vpd_f0_write() local 375 if (!tdev) in pci_vpd_f0_write() 378 ret = pci_write_vpd(tdev, pos, count, arg); in pci_vpd_f0_write() 379 pci_dev_put(tdev); in pci_vpd_f0_write() 391 struct pci_dev *tdev = pci_get_slot(dev->bus, PCI_SLOT(dev->devfn)); in pci_vpd_f0_dev_check() local 394 if (!tdev) in pci_vpd_f0_dev_check() [all …]
|
/drivers/pnp/ |
D | resource.c | 168 struct pnp_dev *tdev; in pnp_check_port() local 205 pnp_for_each_dev(tdev) { in pnp_check_port() 206 if (tdev == dev) in pnp_check_port() 209 (tres = pnp_get_resource(tdev, IORESOURCE_IO, i)); in pnp_check_port() 230 struct pnp_dev *tdev; in pnp_check_mem() local 267 pnp_for_each_dev(tdev) { in pnp_check_mem() 268 if (tdev == dev) in pnp_check_mem() 271 (tres = pnp_get_resource(tdev, IORESOURCE_MEM, i)); in pnp_check_mem() 352 struct pnp_dev *tdev; in pnp_check_irq() local 394 pnp_for_each_dev(tdev) { in pnp_check_irq() [all …]
|
/drivers/usb/misc/ |
D | usbtest.c | 92 #define ERROR(tdev, fmt, args...) \ argument 93 dev_err(&(tdev)->intf->dev , fmt , ## args) 94 #define WARNING(tdev, fmt, args...) \ argument 95 dev_warn(&(tdev)->intf->dev , fmt , ## args) 342 static int check_guard_bytes(struct usbtest_dev *tdev, struct urb *urb) in check_guard_bytes() argument 350 ERROR(tdev, "guard byte[%d] %d (not %d)\n", in check_guard_bytes() 358 static int simple_check_buf(struct usbtest_dev *tdev, struct urb *urb) in simple_check_buf() argument 366 int ret = check_guard_bytes(tdev, urb); in simple_check_buf() 391 ERROR(tdev, "buf[%d] = %d (not %d)\n", i, *buf, expected); in simple_check_buf() 413 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) 256 struct device *dev = &ap->tdev; in ata_tport_delete() 280 struct device *dev = &ap->tdev; in ata_tport_add() 380 struct device *dev = &link->tdev; in ata_tlink_delete() 404 struct device *dev = &link->tdev; in ata_tlink_add() 410 dev->parent = &ap->tdev; in ata_tlink_add() 623 transport_destroy_device(&dev->tdev); in ata_tdev_free() 624 put_device(&dev->tdev); in ata_tdev_free() [all …]
|
D | libata-zpodd.c | 177 device_set_run_wake(&dev->tdev, true); in zpodd_enable_run_wake() 178 acpi_pm_device_run_wake(&dev->tdev, true); in zpodd_enable_run_wake() 187 acpi_pm_device_run_wake(&dev->tdev, false); in zpodd_disable_run_wake() 188 device_set_run_wake(&dev->tdev, false); in zpodd_disable_run_wake() 255 struct acpi_device *adev = ACPI_COMPANION(&dev->tdev); in zpodd_init() 275 dev_pm_qos_expose_flags(&dev->tdev, 0); in zpodd_init()
|
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 | pmagb-b-fb.c | 251 struct tc_dev *tdev = to_tc_dev(dev); in pmagbbfb_probe() local 281 start = tdev->resource.start; in pmagbbfb_probe() 282 len = tdev->resource.end - start + 1; in pmagbbfb_probe() 358 struct tc_dev *tdev = to_tc_dev(dev); in pmagbbfb_remove() local 367 start = tdev->resource.start; in pmagbbfb_remove() 368 len = tdev->resource.end - start + 1; in pmagbbfb_remove()
|
/drivers/scsi/cxgbi/cxgb3i/ |
D | cxgb3i.c | 225 static void abort_arp_failure(struct t3cdev *tdev, struct sk_buff *skb) in abort_arp_failure() argument 231 tdev, GET_TID(req), skb); in abort_arp_failure() 233 cxgb3_ofld_send(tdev, skb); in abort_arp_failure() 473 static int do_act_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) in do_act_establish() argument 569 static int do_act_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) in do_act_open_rpl() argument 582 cxgb3_queue_tid_release(tdev, GET_TID(rpl)); in do_act_open_rpl() 1211 struct t3cdev *tdev = (struct t3cdev *)cdev->lldev; in t3_ddp_cleanup() local 1214 pr_info("t3dev 0x%p, ulp_iscsi no more user.\n", tdev); in t3_ddp_cleanup() 1215 tdev->ulp_iscsi = NULL; in t3_ddp_cleanup() 1226 struct t3cdev *tdev = (struct t3cdev *)cdev->lldev; in cxgb3i_ddp_init() local [all …]
|
/drivers/s390/net/ |
D | claw.c | 1987 struct device *tdev; in claw_process_control() local 1993 tdev = &privptr->channel[READ_CHANNEL].cdev->dev; in claw_process_control() 1996 dev_info(tdev, "%s: CLAW device %.8s: " in claw_process_control() 2015 dev_warn(tdev, "The communication peer of %s" in claw_process_control() 2020 dev_info(tdev, "%s: Recv Sys Validate Request: " in claw_process_control() 2034 dev_warn(tdev, in claw_process_control() 2047 dev_warn(tdev, "Adapter name %s for %s does not match" in claw_process_control() 2057 dev_warn(tdev, in claw_process_control() 2066 dev_warn(tdev, in claw_process_control() 2072 dev_info(tdev, in claw_process_control() [all …]
|