/drivers/xen/xen-pciback/ |
D | pciback_ops.c | 26 struct xen_pcibk_dev_data *dev_data; in xen_pcibk_control_isr() local 30 dev_data = pci_get_drvdata(dev); in xen_pcibk_control_isr() 31 if (!dev_data) in xen_pcibk_control_isr() 39 dev_data->enable_intx = 0; in xen_pcibk_control_isr() 40 dev_data->ack_intr = 0; in xen_pcibk_control_isr() 42 enable = dev_data->enable_intx; in xen_pcibk_control_isr() 45 if (!enable && !dev_data->isr_on) in xen_pcibk_control_isr() 53 dev_data->irq = dev->irq; in xen_pcibk_control_isr() 59 if (dev_data->irq == 0) in xen_pcibk_control_isr() 63 dev_data->irq_name, in xen_pcibk_control_isr() [all …]
|
D | passthrough.c | 24 struct passthrough_dev_data *dev_data = pdev->pci_dev_data; in __xen_pcibk_get_pci_dev() local 28 mutex_lock(&dev_data->lock); in __xen_pcibk_get_pci_dev() 30 list_for_each_entry(dev_entry, &dev_data->dev_list, list) { in __xen_pcibk_get_pci_dev() 39 mutex_unlock(&dev_data->lock); in __xen_pcibk_get_pci_dev() 48 struct passthrough_dev_data *dev_data = pdev->pci_dev_data; in __xen_pcibk_add_pci_dev() local 58 mutex_lock(&dev_data->lock); in __xen_pcibk_add_pci_dev() 59 list_add_tail(&dev_entry->list, &dev_data->dev_list); in __xen_pcibk_add_pci_dev() 60 mutex_unlock(&dev_data->lock); in __xen_pcibk_add_pci_dev() 74 struct passthrough_dev_data *dev_data = pdev->pci_dev_data; in __xen_pcibk_release_pci_dev() local 78 mutex_lock(&dev_data->lock); in __xen_pcibk_release_pci_dev() [all …]
|
D | conf_space.c | 148 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_read() local 178 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_read() 211 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_write() local 225 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_write() 265 if (dev_data->permissive || permissive) { in xen_pcibk_config_write() 280 } else if (!dev_data->warned_on_write) { in xen_pcibk_config_write() 281 dev_data->warned_on_write = 1; in xen_pcibk_config_write() 298 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_free_dyn_fields() local 304 if (!dev_data) in xen_pcibk_config_free_dyn_fields() 307 list_for_each_entry_safe(cfg_entry, t, &dev_data->config_fields, list) { in xen_pcibk_config_free_dyn_fields() [all …]
|
D | pci_stub.c | 88 struct xen_pcibk_dev_data *dev_data; in pcistub_device_release() local 91 dev_data = pci_get_drvdata(psdev->dev); in pcistub_device_release() 102 &dev_data->pci_saved_state)) { in pcistub_device_release() 110 kfree(dev_data); in pcistub_device_release() 313 struct xen_pcibk_dev_data *dev_data; in pcistub_init_device() local 323 dev_data = kzalloc(sizeof(*dev_data) + strlen(DRV_NAME "[]") in pcistub_init_device() 325 if (!dev_data) { in pcistub_init_device() 329 pci_set_drvdata(dev, dev_data); in pcistub_init_device() 335 sprintf(dev_data->irq_name, DRV_NAME "[%s]", pci_name(dev)); in pcistub_init_device() 359 dev_data->pci_saved_state = pci_store_saved_state(dev); in pcistub_init_device() [all …]
|
D | conf_space_header.c | 42 struct xen_pcibk_dev_data *dev_data; in command_write() local 45 dev_data = pci_get_drvdata(dev); in command_write() 53 if (dev_data) in command_write() 54 dev_data->enable_intx = 1; in command_write() 60 if (dev_data) in command_write() 61 dev_data->enable_intx = 0; in command_write()
|
D | conf_space_quirks.c | 51 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_field_is_dup() local 54 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_field_is_dup()
|
/drivers/iommu/ |
D | amd_iommu.c | 106 struct iommu_dev_data *dev_data; in alloc_dev_data() local 109 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in alloc_dev_data() 110 if (!dev_data) in alloc_dev_data() 113 dev_data->devid = devid; in alloc_dev_data() 114 atomic_set(&dev_data->bind, 0); in alloc_dev_data() 117 list_add_tail(&dev_data->dev_data_list, &dev_data_list); in alloc_dev_data() 120 return dev_data; in alloc_dev_data() 123 static void free_dev_data(struct iommu_dev_data *dev_data) in free_dev_data() argument 128 list_del(&dev_data->dev_data_list); in free_dev_data() 131 kfree(dev_data); in free_dev_data() [all …]
|
/drivers/atm/ |
D | atmtcp.c | 20 #define PRIV(dev) ((struct atmtcp_dev_data *) ((dev)->dev_data)) 193 struct atmtcp_dev_data *dev_data; in atmtcp_v_send() local 204 dev_data = PRIV(vcc->dev); in atmtcp_v_send() 205 if (dev_data) out_vcc = dev_data->vcc; in atmtcp_v_send() 206 if (!dev_data || !out_vcc) { in atmtcp_v_send() 209 if (dev_data) return 0; in atmtcp_v_send() 237 struct atmtcp_dev_data *dev_data = PRIV(dev); in atmtcp_v_proc() local 240 if (!dev_data->persist) return sprintf(page,"ephemeral\n"); in atmtcp_v_proc() 242 dev_data->vcc ? "" : "dis"); in atmtcp_v_proc() 249 struct atmtcp_dev_data *dev_data; in atmtcp_c_close() local [all …]
|
D | zatm.h | 92 #define ZATM_DEV(d) ((struct zatm_dev *) (d)->dev_data) 93 #define ZATM_VCC(d) ((struct zatm_vcc *) (d)->dev_data)
|
D | eni.h | 120 #define ENI_DEV(d) ((struct eni_dev *) (d)->dev_data) 121 #define ENI_VCC(d) ((struct eni_vcc *) (d)->dev_data)
|
D | adummy.c | 31 #define ADUMMY_DEV(dev) ((struct adummy_dev *) (dev)->dev_data) 165 atm_dev->dev_data = adummy_dev; in adummy_init()
|
D | solos-pci.c | 186 struct solos_card *card = atmdev->dev_data; in solos_param_show() 241 struct solos_card *card = atmdev->dev_data; in solos_param_store() 443 struct solos_card *card = atmdev->dev_data; in console_show() 494 struct solos_card *card = atmdev->dev_data; in console_store() 833 struct solos_card *card = vcc->dev->dev_data; in popen() 868 struct solos_card *card = vcc->dev->dev_data; in pclose() 1030 struct solos_card *card = vcc->dev->dev_data; in psend() 1248 card->atmdev[i]->dev_data = card; in atm_init()
|
D | firestream.h | 502 #define FS_DEV(atm_dev) ((struct fs_dev *) (atm_dev)->dev_data) 503 #define FS_VCC(atm_vcc) ((struct fs_vcc *) (atm_vcc)->dev_data)
|
D | nicstar.c | 796 card->atmdev->dev_data = card; in ns_init_card() 1265 card = (ns_dev *) vcc->dev->dev_data; in ns_open() 1274 vcc->dev_data = vc; in ns_open() 1437 vc = vcc->dev_data; in ns_close() 1438 card = vcc->dev->dev_data; in ns_close() 1564 vcc->dev_data = NULL; in ns_close() 1652 card = vcc->dev->dev_data; in ns_send() 1654 if ((vc = (vc_map *) vcc->dev_data) == NULL) { in ns_send() 1720 scq = ((vc_map *) vcc->dev_data)->scq; in ns_send() 2361 card = (ns_dev *) ATM_SKB(sb)->vcc->dev->dev_data; in ns_sb_destructor() [all …]
|
D | horizon.h | 480 #define HRZ_DEV(atm_dev) ((hrz_dev *) (atm_dev)->dev_data) 481 #define HRZ_VCC(atm_vcc) ((hrz_vcc *) (atm_vcc)->dev_data)
|
D | lanai.c | 2128 struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; in lanai_dev_open() 2266 struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; in lanai_dev_close() 2291 struct lanai_vcc *lvcc = (struct lanai_vcc *) atmvcc->dev_data; in lanai_close() 2292 struct lanai_dev *lanai = (struct lanai_dev *) atmvcc->dev->dev_data; in lanai_close() 2320 atmvcc->dev_data = NULL; in lanai_close() 2336 lanai = (struct lanai_dev *) atmvcc->dev->dev_data; in lanai_open() 2350 atmvcc->dev_data = lvcc; in lanai_open() 2409 struct lanai_vcc *lvcc = (struct lanai_vcc *) atmvcc->dev_data; in lanai_send() 2410 struct lanai_dev *lanai = (struct lanai_dev *) atmvcc->dev->dev_data; in lanai_send() 2460 struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; in lanai_proc_read() [all …]
|
D | idt77105.c | 264 if (!(dev->dev_data = kmalloc(sizeof(struct idt77105_priv),GFP_KERNEL))) in idt77105_start() 343 dev->dev_data = NULL; in idt77105_stop()
|
D | ambassador.h | 652 #define AMB_DEV(atm_dev) ((amb_dev *) (atm_dev)->dev_data) 653 #define AMB_VCC(atm_vcc) ((amb_vcc *) (atm_vcc)->dev_data)
|
D | idt77252.c | 1939 write_utility(dev->dev_data, 0x100 + (addr & 0x1ff), value); in idt77252_phy_put() 1945 return read_utility(dev->dev_data, 0x100 + (addr & 0x1ff)); in idt77252_phy_get() 1952 struct idt77252_dev *card = dev->dev_data; in idt77252_send_skb() 1953 struct vc_map *vc = vcc->dev_data; in idt77252_send_skb() 2008 struct idt77252_dev *card = dev->dev_data; in idt77252_send_oam() 2395 struct idt77252_dev *card = dev->dev_data; in idt77252_open() 2448 vcc->dev_data = vc; in idt77252_open() 2497 struct idt77252_dev *card = dev->dev_data; in idt77252_close() 2498 struct vc_map *vc = vcc->dev_data; in idt77252_close() 2581 struct idt77252_dev *card = dev->dev_data; in idt77252_change_qos() [all …]
|
/drivers/usb/gadget/ |
D | inode.c | 112 struct dev_data { struct 147 static inline void get_dev (struct dev_data *data) in get_dev() argument 152 static void put_dev (struct dev_data *data) in put_dev() 161 static struct dev_data *dev_new (void) in dev_new() 163 struct dev_data *dev; in dev_new() 190 struct dev_data *dev; 910 static inline void ep0_readable (struct dev_data *dev) in ep0_readable() 918 struct dev_data *dev = ep->driver_data; in clean_req() 931 struct dev_data *dev = ep->driver_data; in ep0_complete() 954 struct dev_data *dev = ep->driver_data; in setup_req() [all …]
|
/drivers/usb/host/ |
D | fsl-mph-dr-of.c | 127 struct fsl_usb2_dev_data *dev_data; in fsl_usb2_mph_dr_of_probe() local 146 dev_data = get_dr_mode_data(np); in fsl_usb2_mph_dr_of_probe() 164 pdata->operating_mode = dev_data->op_mode; in fsl_usb2_mph_dr_of_probe() 170 for (i = 0; i < ARRAY_SIZE(dev_data->drivers); i++) { in fsl_usb2_mph_dr_of_probe() 171 if (!dev_data->drivers[i]) in fsl_usb2_mph_dr_of_probe() 174 dev_data->drivers[i], idx); in fsl_usb2_mph_dr_of_probe()
|
/drivers/xen/xenbus/ |
D | xenbus_dev_frontend.c | 221 struct xenbus_file_priv *dev_data; member 283 mutex_lock(&adap->dev_data->reply_mutex); in watch_fired() 295 list_splice_tail(&staging_q, &adap->dev_data->read_buffers); in watch_fired() 296 wake_up(&adap->dev_data->read_waitq); in watch_fired() 300 mutex_unlock(&adap->dev_data->reply_mutex); in watch_fired() 385 watch->dev_data = u; in xenbus_write_watch()
|
/drivers/usb/atm/ |
D | usbatm.c | 663 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_send() 746 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_dev_close() 753 atm_dev->dev_data = NULL; /* catch bugs */ in usbatm_atm_dev_close() 759 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_proc_read() 801 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_open() 857 vcc->dev_data = new; in usbatm_atm_open() 884 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_close() 885 struct usbatm_vcc_data *vcc_data = vcc->dev_data; in usbatm_atm_close() 914 vcc->dev_data = NULL; in usbatm_atm_close() 930 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_ioctl() [all …]
|
/drivers/mfd/ |
D | ti-ssp.c | 304 static irqreturn_t ti_ssp_interrupt(int irq, void *dev_data) in ti_ssp_interrupt() argument 306 struct ti_ssp *ssp = dev_data; in ti_ssp_interrupt() 407 const struct ti_ssp_dev_data *data = &pdata->dev_data[id]; in ti_ssp_probe()
|
/drivers/media/video/s5p-tv/ |
D | sdo_drv.c | 93 static irqreturn_t sdo_irq_handler(int irq, void *dev_data) in sdo_irq_handler() argument 95 struct sdo_device *sdev = dev_data; in sdo_irq_handler()
|