/drivers/xen/xen-pciback/ |
D | pciback_ops.c | 28 struct xen_pcibk_dev_data *dev_data; in xen_pcibk_control_isr() local 32 dev_data = pci_get_drvdata(dev); in xen_pcibk_control_isr() 33 if (!dev_data) in xen_pcibk_control_isr() 41 dev_data->enable_intx = 0; in xen_pcibk_control_isr() 42 dev_data->ack_intr = 0; in xen_pcibk_control_isr() 44 enable = dev_data->enable_intx; in xen_pcibk_control_isr() 47 if (!enable && !dev_data->isr_on) in xen_pcibk_control_isr() 55 dev_data->irq = dev->irq; in xen_pcibk_control_isr() 61 if (dev_data->irq == 0) in xen_pcibk_control_isr() 65 dev_data->irq_name, in xen_pcibk_control_isr() [all …]
|
D | passthrough.c | 25 struct passthrough_dev_data *dev_data = pdev->pci_dev_data; in __xen_pcibk_get_pci_dev() local 29 mutex_lock(&dev_data->lock); in __xen_pcibk_get_pci_dev() 31 list_for_each_entry(dev_entry, &dev_data->dev_list, list) { in __xen_pcibk_get_pci_dev() 40 mutex_unlock(&dev_data->lock); in __xen_pcibk_get_pci_dev() 49 struct passthrough_dev_data *dev_data = pdev->pci_dev_data; in __xen_pcibk_add_pci_dev() local 59 mutex_lock(&dev_data->lock); in __xen_pcibk_add_pci_dev() 60 list_add_tail(&dev_entry->list, &dev_data->dev_list); in __xen_pcibk_add_pci_dev() 61 mutex_unlock(&dev_data->lock); in __xen_pcibk_add_pci_dev() 75 struct passthrough_dev_data *dev_data = pdev->pci_dev_data; in __xen_pcibk_release_pci_dev() local 79 mutex_lock(&dev_data->lock); in __xen_pcibk_release_pci_dev() [all …]
|
D | conf_space.c | 149 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_read() local 179 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_read() 209 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_write() local 223 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_write() 258 if (dev_data->permissive || xen_pcibk_permissive) { in xen_pcibk_config_write() 273 } else if (!dev_data->warned_on_write) { in xen_pcibk_config_write() 274 dev_data->warned_on_write = 1; in xen_pcibk_config_write() 291 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_free_dyn_fields() local 297 if (!dev_data) in xen_pcibk_config_free_dyn_fields() 300 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 | 95 struct xen_pcibk_dev_data *dev_data; in pcistub_device_release() local 99 dev_data = pci_get_drvdata(dev); in pcistub_device_release() 109 if (dev_data && in pcistub_device_release() 110 pci_load_and_free_saved_state(dev, &dev_data->pci_saved_state)) in pcistub_device_release() 132 kfree(dev_data); in pcistub_device_release() 263 struct xen_pcibk_dev_data *dev_data; in pcistub_put_pci_dev() local 289 dev_data = pci_get_drvdata(dev); in pcistub_put_pci_dev() 290 ret = pci_load_saved_state(dev, dev_data->pci_saved_state); in pcistub_put_pci_dev() 357 struct xen_pcibk_dev_data *dev_data; in pcistub_init_device() local 367 dev_data = kzalloc(sizeof(*dev_data) + strlen(DRV_NAME "[]") in pcistub_init_device() [all …]
|
D | conf_space_header.c | 63 struct xen_pcibk_dev_data *dev_data; in command_write() local 68 dev_data = pci_get_drvdata(dev); in command_write() 76 if (dev_data) in command_write() 77 dev_data->enable_intx = 1; in command_write() 83 if (dev_data) in command_write() 84 dev_data->enable_intx = 0; in command_write() 122 if (!xen_pcibk_permissive && (!dev_data || !dev_data->permissive)) in command_write()
|
D | conf_space_quirks.c | 52 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_field_is_dup() local 55 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_field_is_dup()
|
/drivers/iio/common/ms_sensors/ |
D | ms_sensors_i2c.c | 286 ssize_t ms_sensors_write_resolution(struct ms_ht_dev *dev_data, in ms_sensors_write_resolution() argument 292 ret = ms_sensors_read_config_reg(dev_data->client, &config_reg); in ms_sensors_write_resolution() 299 return i2c_smbus_write_byte_data(dev_data->client, in ms_sensors_write_resolution() 316 ssize_t ms_sensors_show_battery_low(struct ms_ht_dev *dev_data, in ms_sensors_show_battery_low() argument 322 mutex_lock(&dev_data->lock); in ms_sensors_show_battery_low() 323 ret = ms_sensors_read_config_reg(dev_data->client, &config_reg); in ms_sensors_show_battery_low() 324 mutex_unlock(&dev_data->lock); in ms_sensors_show_battery_low() 343 ssize_t ms_sensors_show_heater(struct ms_ht_dev *dev_data, in ms_sensors_show_heater() argument 349 mutex_lock(&dev_data->lock); in ms_sensors_show_heater() 350 ret = ms_sensors_read_config_reg(dev_data->client, &config_reg); in ms_sensors_show_heater() [all …]
|
D | ms_sensors_i2c.h | 51 ssize_t ms_sensors_show_serial(struct ms_ht_dev *dev_data, char *buf); 52 ssize_t ms_sensors_write_resolution(struct ms_ht_dev *dev_data, u8 i); 53 ssize_t ms_sensors_show_battery_low(struct ms_ht_dev *dev_data, char *buf); 54 ssize_t ms_sensors_show_heater(struct ms_ht_dev *dev_data, char *buf); 55 ssize_t ms_sensors_write_heater(struct ms_ht_dev *dev_data, 57 int ms_sensors_ht_read_temperature(struct ms_ht_dev *dev_data, 59 int ms_sensors_ht_read_humidity(struct ms_ht_dev *dev_data, 61 int ms_sensors_tp_read_prom(struct ms_tp_dev *dev_data); 62 int ms_sensors_read_temp_and_pressure(struct ms_tp_dev *dev_data,
|
/drivers/iio/temperature/ |
D | tsys01.c | 52 struct tsys01_dev *dev_data = iio_priv(indio_dev); in tsys01_read_temperature() local 54 mutex_lock(&dev_data->lock); in tsys01_read_temperature() 55 ret = dev_data->convert_and_read(dev_data->client, in tsys01_read_temperature() 58 mutex_unlock(&dev_data->lock); in tsys01_read_temperature() 67 (s64)dev_data->prom[5 - i]; in tsys01_read_temperature() 72 temp += coeff_mul[0] * (s64)dev_data->prom[5]; in tsys01_read_temperature() 131 struct tsys01_dev *dev_data = iio_priv(indio_dev); in tsys01_read_prom() local 136 ret = dev_data->read_prom_word(dev_data->client, in tsys01_read_prom() 138 &dev_data->prom[i]); in tsys01_read_prom() 142 ret = sprintf(ptr, "0x%04x ", dev_data->prom[i]); in tsys01_read_prom() [all …]
|
D | tsys02d.c | 36 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in tsys02d_read_raw() local 42 ret = ms_sensors_ht_read_temperature(dev_data, in tsys02d_read_raw() 53 *val = tsys02d_samp_freq[dev_data->res_index]; in tsys02d_read_raw() 65 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in tsys02d_write_raw() local 76 mutex_lock(&dev_data->lock); in tsys02d_write_raw() 77 dev_data->res_index = i; in tsys02d_write_raw() 78 ret = ms_sensors_write_resolution(dev_data, i); in tsys02d_write_raw() 79 mutex_unlock(&dev_data->lock); in tsys02d_write_raw() 100 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in tsys02_read_battery_low() local 102 return ms_sensors_show_battery_low(dev_data, buf); in tsys02_read_battery_low() [all …]
|
/drivers/iio/humidity/ |
D | htu21.c | 45 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_read_raw() local 51 ret = ms_sensors_ht_read_temperature(dev_data, in htu21_read_raw() 59 ret = ms_sensors_ht_read_humidity(dev_data, in htu21_read_raw() 70 *val = htu21_samp_freq[dev_data->res_index]; in htu21_read_raw() 82 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_write_raw() local 93 mutex_lock(&dev_data->lock); in htu21_write_raw() 94 dev_data->res_index = i; in htu21_write_raw() 95 ret = ms_sensors_write_resolution(dev_data, i); in htu21_write_raw() 96 mutex_unlock(&dev_data->lock); in htu21_write_raw() 133 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_show_battery_low() local [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 | 93 #define ZATM_DEV(d) ((struct zatm_dev *) (d)->dev_data) 94 #define ZATM_VCC(d) ((struct zatm_vcc *) (d)->dev_data)
|
D | eni.h | 121 #define ENI_DEV(d) ((struct eni_dev *) (d)->dev_data) 122 #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()
|
/drivers/iio/pressure/ |
D | ms5637.c | 44 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_read_raw() local 48 ret = ms_sensors_read_temp_and_pressure(dev_data, in ms5637_read_raw() 68 *val = ms5637_samp_freq[dev_data->res_index]; in ms5637_read_raw() 80 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_write_raw() local 91 dev_data->res_index = i; in ms5637_write_raw() 133 struct ms_tp_dev *dev_data; in ms5637_probe() local 146 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*dev_data)); in ms5637_probe() 150 dev_data = iio_priv(indio_dev); in ms5637_probe() 151 dev_data->client = client; in ms5637_probe() 152 dev_data->res_index = 5; in ms5637_probe() [all …]
|
/drivers/iommu/ |
D | amd_iommu.c | 210 struct iommu_dev_data *dev_data; in alloc_dev_data() local 213 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in alloc_dev_data() 214 if (!dev_data) in alloc_dev_data() 217 dev_data->devid = devid; in alloc_dev_data() 220 list_add_tail(&dev_data->dev_data_list, &dev_data_list); in alloc_dev_data() 223 ratelimit_default_init(&dev_data->rs); in alloc_dev_data() 225 return dev_data; in alloc_dev_data() 230 struct iommu_dev_data *dev_data; in search_dev_data() local 234 list_for_each_entry(dev_data, &dev_data_list, dev_data_list) { in search_dev_data() 235 if (dev_data->devid == devid) in search_dev_data() [all …]
|
/drivers/clk/ |
D | clk-cdce706.c | 71 struct cdce706_dev_data *dev_data; member 115 static int cdce706_reg_read(struct cdce706_dev_data *dev_data, unsigned reg, in cdce706_reg_read() argument 118 int rc = regmap_read(dev_data->regmap, reg | 0x80, val); in cdce706_reg_read() 121 dev_err(&dev_data->client->dev, "error reading reg %u", reg); in cdce706_reg_read() 125 static int cdce706_reg_write(struct cdce706_dev_data *dev_data, unsigned reg, in cdce706_reg_write() argument 128 int rc = regmap_write(dev_data->regmap, reg | 0x80, val); in cdce706_reg_write() 131 dev_err(&dev_data->client->dev, "error writing reg %u", reg); in cdce706_reg_write() 135 static int cdce706_reg_update(struct cdce706_dev_data *dev_data, unsigned reg, in cdce706_reg_update() argument 138 int rc = regmap_update_bits(dev_data->regmap, reg | 0x80, mask, val); in cdce706_reg_update() 141 dev_err(&dev_data->client->dev, "error updating reg %u", reg); in cdce706_reg_update() [all …]
|
/drivers/usb/gadget/legacy/ |
D | inode.c | 116 struct dev_data { struct 153 static inline void get_dev (struct dev_data *data) in get_dev() argument 158 static void put_dev (struct dev_data *data) in put_dev() 167 static struct dev_data *dev_new (void) in dev_new() 169 struct dev_data *dev; in dev_new() 196 struct dev_data *dev; 848 static inline void ep0_readable (struct dev_data *dev) in ep0_readable() 856 struct dev_data *dev = ep->driver_data; in clean_req() 868 struct dev_data *dev = ep->driver_data; in ep0_complete() 891 struct dev_data *dev = ep->driver_data; in setup_req() [all …]
|
/drivers/gpio/ |
D | gpio-palmas.c | 163 const struct palmas_device_data *dev_data; in palmas_gpio_probe() local 168 dev_data = match->data; in palmas_gpio_probe() 169 if (!dev_data) in palmas_gpio_probe() 170 dev_data = &palmas_dev_data; in palmas_gpio_probe() 180 palmas_gpio->gpio_chip.ngpio = dev_data->ngpio; in palmas_gpio_probe()
|
/drivers/usb/host/ |
D | fsl-mph-dr-of.c | 180 struct fsl_usb2_dev_data *dev_data; in fsl_usb2_mph_dr_of_probe() local 199 dev_data = get_dr_mode_data(np); in fsl_usb2_mph_dr_of_probe() 217 pdata->operating_mode = dev_data->op_mode; in fsl_usb2_mph_dr_of_probe() 246 for (i = 0; i < ARRAY_SIZE(dev_data->drivers); i++) { in fsl_usb2_mph_dr_of_probe() 247 if (!dev_data->drivers[i]) in fsl_usb2_mph_dr_of_probe() 250 dev_data->drivers[i], idx); in fsl_usb2_mph_dr_of_probe()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_debug.c | 1736 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_get_param() local 1738 return dev_data->grc.param_val[grc_param]; in qed_grc_get_param() 1744 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_init_params() local 1746 if (!dev_data->grc.params_initialized) { in qed_dbg_grc_init_params() 1748 dev_data->grc.params_initialized = 1; in qed_dbg_grc_init_params() 1756 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_dev_init() local 1758 if (dev_data->initialized) in qed_dbg_dev_init() 1762 dev_data->chip_id = CHIP_K2; in qed_dbg_dev_init() 1763 dev_data->mode_enable[MODE_K2] = 1; in qed_dbg_dev_init() 1765 dev_data->chip_id = CHIP_BB; in qed_dbg_dev_init() [all …]
|
/drivers/xen/xenbus/ |
D | xenbus_dev_frontend.c | 226 struct xenbus_file_priv *dev_data; member 285 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() 497 watch->dev_data = u; in xenbus_write_watch()
|
/drivers/usb/atm/ |
D | usbatm.c | 658 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_send() 733 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_dev_close() 738 atm_dev->dev_data = NULL; /* catch bugs */ in usbatm_atm_dev_close() 744 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_proc_read() 784 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_open() 836 vcc->dev_data = new; in usbatm_atm_open() 863 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_close() 864 struct usbatm_vcc_data *vcc_data = vcc->dev_data; in usbatm_atm_close() 886 vcc->dev_data = NULL; in usbatm_atm_close() 900 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_ioctl() [all …]
|
/drivers/platform/chrome/ |
D | chromeos_laptop.c | 147 const struct dmi_dev_onboard *dev_data; in __add_probed_i2c_device() local 166 dev_data = (struct dmi_dev_onboard *)dmi_dev->device_data; in __add_probed_i2c_device() 167 if (!dev_data) { in __add_probed_i2c_device() 172 info->irq = dev_data->instance; in __add_probed_i2c_device()
|