/drivers/xen/xen-pciback/ |
D | pciback_ops.c | 24 struct xen_pcibk_dev_data *dev_data; in xen_pcibk_control_isr() local 28 dev_data = pci_get_drvdata(dev); in xen_pcibk_control_isr() 29 if (!dev_data) in xen_pcibk_control_isr() 37 dev_data->enable_intx = 0; in xen_pcibk_control_isr() 38 dev_data->ack_intr = 0; in xen_pcibk_control_isr() 40 enable = dev_data->enable_intx; in xen_pcibk_control_isr() 43 if (!enable && !dev_data->isr_on) in xen_pcibk_control_isr() 51 dev_data->irq = dev->irq; in xen_pcibk_control_isr() 57 if (dev_data->irq == 0) in xen_pcibk_control_isr() 61 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 | 90 struct xen_pcibk_dev_data *dev_data; in pcistub_device_release() local 94 dev_data = pci_get_drvdata(dev); in pcistub_device_release() 104 if (pci_load_and_free_saved_state(dev, &dev_data->pci_saved_state)) in pcistub_device_release() 126 kfree(dev_data); in pcistub_device_release() 331 struct xen_pcibk_dev_data *dev_data; in pcistub_init_device() local 341 dev_data = kzalloc(sizeof(*dev_data) + strlen(DRV_NAME "[]") in pcistub_init_device() 343 if (!dev_data) { in pcistub_init_device() 347 pci_set_drvdata(dev, dev_data); in pcistub_init_device() 353 sprintf(dev_data->irq_name, DRV_NAME "[%s]", pci_name(dev)); in pcistub_init_device() 390 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 | 111 struct iommu_dev_data *dev_data; in alloc_dev_data() local 114 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in alloc_dev_data() 115 if (!dev_data) in alloc_dev_data() 118 dev_data->devid = devid; in alloc_dev_data() 119 atomic_set(&dev_data->bind, 0); in alloc_dev_data() 122 list_add_tail(&dev_data->dev_data_list, &dev_data_list); in alloc_dev_data() 125 return dev_data; in alloc_dev_data() 128 static void free_dev_data(struct iommu_dev_data *dev_data) in free_dev_data() argument 133 list_del(&dev_data->dev_data_list); in free_dev_data() 136 if (dev_data->group) in free_dev_data() [all …]
|
/drivers/atm/ |
D | atmtcp.c | 20 #define PRIV(dev) ((struct atmtcp_dev_data *) ((dev)->dev_data)) 192 struct atmtcp_dev_data *dev_data; in atmtcp_v_send() local 203 dev_data = PRIV(vcc->dev); in atmtcp_v_send() 204 if (dev_data) out_vcc = dev_data->vcc; in atmtcp_v_send() 205 if (!dev_data || !out_vcc) { in atmtcp_v_send() 208 if (dev_data) return 0; in atmtcp_v_send() 236 struct atmtcp_dev_data *dev_data = PRIV(dev); in atmtcp_v_proc() local 239 if (!dev_data->persist) return sprintf(page,"ephemeral\n"); in atmtcp_v_proc() 241 dev_data->vcc ? "" : "dis"); in atmtcp_v_proc() 248 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 | 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 | solos-pci.c | 194 struct solos_card *card = atmdev->dev_data; in solos_param_show() 249 struct solos_card *card = atmdev->dev_data; in solos_param_store() 451 struct solos_card *card = atmdev->dev_data; in console_show() 501 struct solos_card *card = atmdev->dev_data; in console_store() 918 struct solos_card *card = vcc->dev->dev_data; in popen() 951 struct solos_card *card = vcc->dev->dev_data; in pclose() 1137 struct solos_card *card = vcc->dev->dev_data; in psend() 1375 card->atmdev[i]->dev_data = card; in atm_init()
|
D | nicstar.c | 795 card->atmdev->dev_data = card; in ns_init_card() 1252 card = (ns_dev *) vcc->dev->dev_data; in ns_open() 1261 vcc->dev_data = vc; in ns_open() 1424 vc = vcc->dev_data; in ns_close() 1425 card = vcc->dev->dev_data; in ns_close() 1551 vcc->dev_data = NULL; in ns_close() 1639 card = vcc->dev->dev_data; in ns_send() 1641 if ((vc = (vc_map *) vcc->dev_data) == NULL) { in ns_send() 1707 scq = ((vc_map *) vcc->dev_data)->scq; in ns_send() 2348 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 | 113 struct dev_data { struct 148 static inline void get_dev (struct dev_data *data) in get_dev() argument 153 static void put_dev (struct dev_data *data) in put_dev() 162 static struct dev_data *dev_new (void) in dev_new() 164 struct dev_data *dev; in dev_new() 191 struct dev_data *dev; 926 static inline void ep0_readable (struct dev_data *dev) in ep0_readable() 934 struct dev_data *dev = ep->driver_data; in clean_req() 946 struct dev_data *dev = ep->driver_data; in ep0_complete() 969 struct dev_data *dev = ep->driver_data; in setup_req() [all …]
|
/drivers/usb/host/ |
D | fsl-mph-dr-of.c | 165 struct fsl_usb2_dev_data *dev_data; in fsl_usb2_mph_dr_of_probe() local 184 dev_data = get_dr_mode_data(np); in fsl_usb2_mph_dr_of_probe() 202 pdata->operating_mode = dev_data->op_mode; in fsl_usb2_mph_dr_of_probe() 216 for (i = 0; i < ARRAY_SIZE(dev_data->drivers); i++) { in fsl_usb2_mph_dr_of_probe() 217 if (!dev_data->drivers[i]) in fsl_usb2_mph_dr_of_probe() 220 dev_data->drivers[i], idx); in fsl_usb2_mph_dr_of_probe()
|
/drivers/platform/x86/ |
D | chromeos_laptop.c | 126 const struct dmi_dev_onboard *dev_data; in __add_probed_i2c_device() local 144 dev_data = (struct dmi_dev_onboard *)dmi_dev->device_data; in __add_probed_i2c_device() 145 if (!dev_data) { in __add_probed_i2c_device() 150 info->irq = dev_data->instance; in __add_probed_i2c_device()
|
/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 | 671 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_send() 755 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_dev_close() 761 atm_dev->dev_data = NULL; /* catch bugs */ in usbatm_atm_dev_close() 767 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_proc_read() 807 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_open() 861 vcc->dev_data = new; in usbatm_atm_open() 888 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_close() 889 struct usbatm_vcc_data *vcc_data = vcc->dev_data; in usbatm_atm_close() 916 vcc->dev_data = NULL; in usbatm_atm_close() 932 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()
|