/drivers/staging/android/ |
H A D | timed_output.c | 33 struct timed_output_dev *tdev = dev_get_drvdata(dev); local 34 int remaining = tdev->get_time(tdev); 42 struct timed_output_dev *tdev = dev_get_drvdata(dev); local 50 tdev->enable(tdev, value); 75 int timed_output_dev_register(struct timed_output_dev *tdev) argument 79 if (!tdev || !tdev->name || !tdev 98 timed_output_dev_unregister(struct timed_output_dev *tdev) argument [all...] |
/drivers/hid/ |
H A D | hid-thingm.c | 55 struct thingm_device *tdev; member in struct:thingm_rgb 74 static int thingm_send(struct thingm_device *tdev, u8 buf[REPORT_SIZE]) argument 78 hid_dbg(tdev->hdev, "-> %d %c %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", 82 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, 88 static int thingm_recv(struct thingm_device *tdev, u8 buf[REPORT_SIZE]) argument 92 ret = hid_hw_raw_request(tdev->hdev, buf[0], buf, REPORT_SIZE, 97 hid_dbg(tdev->hdev, "<- %d %c %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx %02hhx\n", 104 static int thingm_version(struct thingm_device *tdev) argument 109 err = thingm_send(tdev, buf); 113 err = thingm_recv(tdev, bu 219 struct thingm_device *tdev; local 287 struct thingm_device *tdev = hid_get_drvdata(hdev); local [all...] |
/drivers/input/misc/ |
H A D | gpio_tilt_polled.c | 42 struct gpio_tilt_polled_dev *tdev = dev->private; local 43 const struct gpio_tilt_platform_data *pdata = tdev->pdata; 48 if (tdev->count < tdev->threshold) { 49 tdev->count++; 55 if (state != tdev->last_state) { 69 tdev->count = 0; 70 tdev->last_state = state; 77 struct gpio_tilt_polled_dev *tdev = dev->private; local 78 const struct gpio_tilt_platform_data *pdata = tdev 91 struct gpio_tilt_polled_dev *tdev = dev->private; local 103 struct gpio_tilt_polled_dev *tdev; local 184 struct gpio_tilt_polled_dev *tdev = platform_get_drvdata(pdev); local [all...] |
/drivers/tc/ |
H A D | tc.c | 41 struct tc_dev *tdev; local 84 tdev = kzalloc(sizeof(*tdev), GFP_KERNEL); 85 if (!tdev) { 90 dev_set_name(&tdev->dev, "tc%x", slot); 91 tdev->bus = tbus; 92 tdev->dev.parent = &tbus->dev; 93 tdev->dev.bus = &tc_bus_type; 94 tdev->slot = slot; 97 tdev [all...] |
H A D | tc-driver.c | 53 * @tdev: the TC device structure to match against 60 struct tc_dev *tdev) 66 if (strcmp(tdev->name, id->name) == 0 && 67 strcmp(tdev->vendor, id->vendor) == 0) 88 struct tc_dev *tdev = to_tc_dev(dev); local 92 id = tc_match_device(tdrv, tdev); 59 tc_match_device(struct tc_driver *tdrv, struct tc_dev *tdev) argument
|
/drivers/gpu/drm/ttm/ |
H A D | ttm_object.c | 47 * @tdev: Pointer to the ttm_object_device. 70 struct ttm_object_device *tdev; member in struct:ttm_object_file 165 struct ttm_object_device *tdev = tfile->tdev; local 174 spin_lock(&tdev->object_lock); 175 ret = drm_ht_just_insert_please_rcu(&tdev->object_hash, 178 spin_unlock(&tdev->object_lock); 190 spin_lock(&tdev->object_lock); 191 (void)drm_ht_remove_item_rcu(&tdev->object_hash, &base->hash); 192 spin_unlock(&tdev 202 struct ttm_object_device *tdev = base->tfile->tdev; local 252 ttm_base_object_lookup_for_ref(struct ttm_object_device *tdev, uint32_t key) argument 460 ttm_object_file_init(struct ttm_object_device *tdev, unsigned int hash_order) argument 500 struct ttm_object_device *tdev = kmalloc(sizeof(*tdev), GFP_KERNEL); local 528 struct ttm_object_device *tdev = *p_tdev; local 596 struct ttm_object_device *tdev = base->tfile->tdev; local 622 struct ttm_object_device *tdev = tfile->tdev; local 659 struct ttm_object_device *tdev = tfile->tdev; local [all...] |
/drivers/dma/ |
H A D | mmp_tdma.c | 301 struct mmp_tdma_device *tdev = dev_id; local 306 struct mmp_tdma_chan *tdmac = tdev->tdmac[i]; 513 struct mmp_tdma_device *tdev = platform_get_drvdata(pdev); local 515 dma_async_device_unregister(&tdev->device); 519 static int mmp_tdma_chan_init(struct mmp_tdma_device *tdev, argument 526 dev_err(tdev->dev, "too many channels for device!\n"); 531 tdmac = devm_kzalloc(tdev->dev, sizeof(*tdmac), GFP_KERNEL); 533 dev_err(tdev->dev, "no free memory for DMA channels!\n"); 538 tdmac->dev = tdev->dev; 539 tdmac->chan.device = &tdev 577 struct mmp_tdma_device *tdev = ofdma->of_dma_data; local 604 struct mmp_tdma_device *tdev; local [all...] |
/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | cxgb3_offload.c | 70 static inline int offload_activated(struct t3cdev *tdev) argument 72 const struct adapter *adapter = tdev2adap(tdev); 86 struct t3cdev *tdev; local 92 list_for_each_entry(tdev, &ofld_dev_list, ofld_dev_list) { 93 if (offload_activated(tdev)) 94 client->add(tdev); 111 struct t3cdev *tdev; local 117 list_for_each_entry(tdev, &ofld_dev_list, ofld_dev_list) { 118 if (offload_activated(tdev)) 119 client->remove(tdev); 133 cxgb3_add_clients(struct t3cdev *tdev) argument 152 cxgb3_remove_clients(struct t3cdev *tdev) argument 164 cxgb3_event_notify(struct t3cdev *tdev, u32 event, u32 port) argument 373 cxgb_offload_ctl(struct t3cdev *tdev, unsigned int req, void *data) argument 501 cxgb3_free_atid(struct t3cdev *tdev, int atid) argument 521 cxgb3_free_stid(struct t3cdev *tdev, int stid) argument 535 cxgb3_insert_tid(struct t3cdev *tdev, struct cxgb3_client *client, void *ctx, unsigned int tid) argument 565 struct t3cdev *tdev = td->dev; local 604 cxgb3_queue_tid_release(struct t3cdev *tdev, unsigned int tid) argument 627 cxgb3_remove_tid(struct t3cdev *tdev, void *ctx, unsigned int tid) argument 650 cxgb3_alloc_atid(struct t3cdev *tdev, struct cxgb3_client *client, void *ctx) argument 674 cxgb3_alloc_stid(struct t3cdev *tdev, struct cxgb3_client *client, void *ctx) argument 1081 struct t3cdev *tdev = dev2t3cdev(dev); local 1088 set_l2t_ix(struct t3cdev *tdev, u32 tid, struct l2t_entry *e) argument 1116 struct t3cdev *tdev; local 1314 struct t3cdev *tdev = &adapter->tdev; local 1334 register_tdev(struct t3cdev *tdev) argument 1344 unregister_tdev(struct t3cdev *tdev) argument 1372 struct t3cdev *tdev = &adapter->tdev; local 1386 struct t3cdev *tdev = &adapter->tdev; local [all...] |
H 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);
|
H A D | adapter.h | 222 struct t3cdev tdev; member in struct:adapter 300 #define tdev2adap(d) container_of(d, struct adapter, tdev) 307 int t3_offload_tx(struct t3cdev *tdev, struct sk_buff *skb);
|
/drivers/usb/serial/ |
H A 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; local 302 tdev = kzalloc(sizeof(struct ti_device), GFP_KERNEL); 303 if (!tdev) 306 mutex_init(&tdev->td_open_close_lock); 307 tdev->td_serial = serial; 308 usb_set_serial_data(serial, tdev); 351 struct ti_device *tdev = usb_get_serial_data(serial); local 394 struct ti_device *tdev; local 532 struct ti_device *tdev; local 921 struct ti_device *tdev = urb->context; local 1185 struct ti_device *tdev = tport->tp_tdev; local 1336 ti_command_out_sync(struct ti_device *tdev, __u8 command, __u16 moduleid, __u16 value, __u8 *data, int size) argument 1356 ti_command_in_sync(struct ti_device *tdev, __u8 command, __u16 moduleid, __u16 value, __u8 *data, int size) argument 1376 ti_write_byte(struct usb_serial_port *port, struct ti_device *tdev, unsigned long addr, __u8 mask, __u8 byte) argument 1440 ti_download_firmware(struct ti_device *tdev) argument [all...] |
/drivers/infiniband/hw/cxgb3/ |
H A D | iwch.c | 144 static void open_rnic_dev(struct t3cdev *tdev) argument 148 PDBG("%s t3cdev %p\n", __func__, tdev); 157 rnicp->rdev.t3cdev_p = tdev; 175 close_rnic_dev(tdev); 182 static void close_rnic_dev(struct t3cdev *tdev) argument 185 PDBG("%s t3cdev %p\n", __func__, tdev); 188 if (dev->rdev.t3cdev_p == tdev) { 205 static void iwch_event_handler(struct t3cdev *tdev, u32 evt, u32 port_id) argument 207 struct cxio_rdev *rdev = tdev->ulp;
|
H A D | iwch_cm.c | 139 static int iwch_l2t_send(struct t3cdev *tdev, struct sk_buff *skb, struct l2t_entry *l2e) argument 144 rdev = (struct cxio_rdev *)tdev->ulp; 149 error = l2t_send(tdev, skb, l2e); 155 int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb) argument 160 rdev = (struct cxio_rdev *)tdev->ulp; 165 error = cxgb3_ofld_send(tdev, skb); 171 static void release_tid(struct t3cdev *tdev, u32 hwtid, struct sk_buff *skb) argument 182 iwch_cxgb3_ofld_send(tdev, skb); 204 return iwch_cxgb3_ofld_send(ep->com.tdev, skb); 225 return iwch_cxgb3_ofld_send(ep->com.tdev, sk 633 act_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1044 rx_data(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1090 tx_ack(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1137 abort_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1182 act_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1228 pass_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1261 close_listsrv_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1312 reject_cr(struct t3cdev *tdev, u32 hwtid, __be32 peer_ip, struct sk_buff *skb) argument 1340 pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1421 pass_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1439 peer_close(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1530 peer_abort(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1641 close_con_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1695 terminate(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 1712 ec_status(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 2075 struct t3cdev *tdev; local 2184 struct t3cdev *tdev; local 2203 sched(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 2223 set_tcb_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument [all...] |
/drivers/pnp/ |
H A D | resource.c | 168 struct pnp_dev *tdev; local 205 pnp_for_each_dev(tdev) { 206 if (tdev == dev) 209 (tres = pnp_get_resource(tdev, IORESOURCE_IO, i)); 230 struct pnp_dev *tdev; local 267 pnp_for_each_dev(tdev) { 268 if (tdev == dev) 271 (tres = pnp_get_resource(tdev, IORESOURCE_MEM, i)); 352 struct pnp_dev *tdev; local 394 pnp_for_each_dev(tdev) { 416 struct pnp_dev *tdev; local [all...] |
/drivers/ata/ |
H A D | libata-zpodd.c | 177 device_set_run_wake(&dev->tdev, true); 178 acpi_pm_device_run_wake(&dev->tdev, true); 187 acpi_pm_device_run_wake(&dev->tdev, false); 188 device_set_run_wake(&dev->tdev, false); 255 struct acpi_device *adev = ACPI_COMPANION(&dev->tdev); 275 dev_pm_qos_expose_flags(&dev->tdev, 0);
|
H A 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; 281 struct device *dev = &ap->tdev; 382 struct device *dev = &link->tdev; 406 struct device *dev = &link->tdev; 412 dev->parent = get_device(&ap->tdev); 603 transport_destroy_device(&dev->tdev); 604 put_device(&dev->tdev); [all...] |
H A D | libata-acpi.c | 62 NULL : ACPI_HANDLE(&dev->tdev); 72 struct ata_device *tdev; local 75 ata_for_each_dev(tdev, tlink, ALL) 76 tdev->flags |= ATA_DFLAG_DETACH; 187 acpi_preset_companion(&ap->tdev, host_companion, ap->port_no); 192 adev = ACPI_COMPANION(&ap->tdev); 208 struct acpi_device *port_companion = ACPI_COMPANION(&ap->tdev); 233 acpi_preset_companion(&dev->tdev, parent, adr); 234 adev = ACPI_COMPANION(&dev->tdev); 268 if (ACPI_HANDLE(&ap->tdev) [all...] |
H A D | pata_acpi.c | 40 if (ACPI_HANDLE(&ap->tdev) == NULL || ata_acpi_gtm(ap, &acpi->gtm) < 0) 196 if (ACPI_HANDLE(&ap->tdev) == NULL)
|
/drivers/video/fbdev/ |
H A D | pmag-ba-fb.c | 146 struct tc_dev *tdev = to_tc_dev(dev); local 174 start = tdev->resource.start; 175 len = tdev->resource.end - start + 1; 240 struct tc_dev *tdev = to_tc_dev(dev); local 249 start = tdev->resource.start; 250 len = tdev->resource.end - start + 1;
|
H A D | pmagb-b-fb.c | 251 struct tc_dev *tdev = to_tc_dev(dev); local 281 start = tdev->resource.start; 282 len = tdev->resource.end - start + 1; 358 struct tc_dev *tdev = to_tc_dev(dev); local 367 start = tdev->resource.start; 368 len = tdev->resource.end - start + 1;
|
/drivers/s390/char/ |
H A D | tape_core.c | 95 struct tape_device *tdev; local 97 tdev = dev_get_drvdata(dev); 98 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->medium_state); 107 struct tape_device *tdev; local 109 tdev = dev_get_drvdata(dev); 110 return scnprintf(buf, PAGE_SIZE, "%i\n", tdev->first_minor); 119 struct tape_device *tdev; local 121 tdev = dev_get_drvdata(dev); 122 return scnprintf(buf, PAGE_SIZE, "%s\n", (tdev->first_minor < 0) ? 123 "OFFLINE" : tape_state_verbose[tdev 132 struct tape_device *tdev; local 159 struct tape_device *tdev; local [all...] |
/drivers/usb/misc/ |
H A D | usbtest.c | 92 #define ERROR(tdev, fmt, args...) \ 93 dev_err(&(tdev)->intf->dev , fmt , ## args) 94 #define WARNING(tdev, fmt, args...) \ 95 dev_warn(&(tdev)->intf->dev , fmt , ## args) 330 static int check_guard_bytes(struct usbtest_dev *tdev, struct urb *urb) argument 338 ERROR(tdev, "guard byte[%d] %d (not %d)\n", 346 static int simple_check_buf(struct usbtest_dev *tdev, struct urb *urb) argument 353 int ret = check_guard_bytes(tdev, urb); 378 ERROR(tdev, "buf[%d] = %d (not %d)\n", i, *buf, expected); 400 struct usbtest_dev *tdev, 399 simple_io( struct usbtest_dev *tdev, struct urb *urb, int iterations, int vary, int expected, const char *label ) argument 537 perform_sglist( struct usbtest_dev *tdev, unsigned iterations, int pipe, struct usb_sg_request *req, struct scatterlist *sg, int nents ) argument 636 is_good_config(struct usbtest_dev *tdev, int len) argument 673 is_good_ext(struct usbtest_dev *tdev, u8 *buf) argument 695 is_good_ss_cap(struct usbtest_dev *tdev, u8 *buf) argument 724 is_good_con_id(struct usbtest_dev *tdev, u8 *buf) argument 1560 verify_not_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) argument 1582 verify_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) argument 1607 test_halt(struct usbtest_dev *tdev, int ep, struct urb *urb) argument 1997 test_unaligned_bulk( struct usbtest_dev *tdev, int pipe, unsigned length, int iterations, unsigned transfer_flags, const char *label) argument [all...] |
/drivers/scsi/cxgbi/cxgb3i/ |
H A D | cxgb3i.c | 225 static void abort_arp_failure(struct t3cdev *tdev, struct sk_buff *skb) argument 231 tdev, GET_TID(req), skb); 233 cxgb3_ofld_send(tdev, skb); 473 static int do_act_establish(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 569 static int do_act_open_rpl(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) argument 582 cxgb3_queue_tid_release(tdev, GET_TID(rpl)); 1211 struct t3cdev *tdev = (struct t3cdev *)cdev->lldev; local 1214 pr_info("t3dev 0x%p, ulp_iscsi no more user.\n", tdev); 1215 tdev->ulp_iscsi = NULL; 1226 struct t3cdev *tdev local [all...] |
/drivers/s390/net/ |
H A D | claw.c | 1987 struct device *tdev; local 1993 tdev = &privptr->channel[READ_CHANNEL].cdev->dev; 1996 dev_info(tdev, "%s: CLAW device %.8s: " 2015 dev_warn(tdev, "The communication peer of %s" 2020 dev_info(tdev, "%s: Recv Sys Validate Request: " 2034 dev_warn(tdev, 2047 dev_warn(tdev, "Adapter name %s for %s does not match" 2057 dev_warn(tdev, 2066 dev_warn(tdev, 2072 dev_info(tdev, [all...] |
/drivers/gpio/ |
H A D | gpiolib-sysfs.c | 634 struct device *tdev; local 636 tdev = class_find_device(&gpio_class, NULL, desc, match_export); 637 if (tdev != NULL) { 638 status = sysfs_create_link(&dev->kobj, &tdev->kobj,
|