Home
last modified time | relevance | path

Searched refs:dev_data (Results 1 – 25 of 51) sorted by relevance

123

/drivers/xen/xen-pciback/
Dpciback_ops.c27 struct xen_pcibk_dev_data *dev_data; in xen_pcibk_control_isr() local
31 dev_data = pci_get_drvdata(dev); in xen_pcibk_control_isr()
32 if (!dev_data) in xen_pcibk_control_isr()
40 dev_data->enable_intx = 0; in xen_pcibk_control_isr()
41 dev_data->ack_intr = 0; in xen_pcibk_control_isr()
43 enable = dev_data->enable_intx; in xen_pcibk_control_isr()
46 if (!enable && !dev_data->isr_on) in xen_pcibk_control_isr()
54 dev_data->irq = dev->irq; in xen_pcibk_control_isr()
60 if (dev_data->irq == 0) in xen_pcibk_control_isr()
64 dev_data->irq_name, in xen_pcibk_control_isr()
[all …]
Dpassthrough.c24 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 …]
Dconf_space.c148 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()
208 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_write() local
222 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_write()
257 if (dev_data->permissive || xen_pcibk_permissive) { in xen_pcibk_config_write()
272 } else if (!dev_data->warned_on_write) { in xen_pcibk_config_write()
273 dev_data->warned_on_write = 1; in xen_pcibk_config_write()
290 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_free_dyn_fields() local
296 if (!dev_data) in xen_pcibk_config_free_dyn_fields()
299 list_for_each_entry_safe(cfg_entry, t, &dev_data->config_fields, list) { in xen_pcibk_config_free_dyn_fields()
[all …]
Dpci_stub.c95 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 (pci_load_and_free_saved_state(dev, &dev_data->pci_saved_state)) in pcistub_device_release()
131 kfree(dev_data); in pcistub_device_release()
262 struct xen_pcibk_dev_data *dev_data; in pcistub_put_pci_dev() local
288 dev_data = pci_get_drvdata(dev); in pcistub_put_pci_dev()
289 ret = pci_load_saved_state(dev, dev_data->pci_saved_state); in pcistub_put_pci_dev()
356 struct xen_pcibk_dev_data *dev_data; in pcistub_init_device() local
366 dev_data = kzalloc(sizeof(*dev_data) + strlen(DRV_NAME "[]") in pcistub_init_device()
368 if (!dev_data) { in pcistub_init_device()
[all …]
Dconf_space_header.c62 struct xen_pcibk_dev_data *dev_data; in command_write() local
67 dev_data = pci_get_drvdata(dev); in command_write()
75 if (dev_data) in command_write()
76 dev_data->enable_intx = 1; in command_write()
82 if (dev_data) in command_write()
83 dev_data->enable_intx = 0; in command_write()
121 if (!xen_pcibk_permissive && (!dev_data || !dev_data->permissive)) in command_write()
Dconf_space_quirks.c51 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/iio/common/ms_sensors/
Dms_sensors_i2c.c286 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 …]
Dms_sensors_i2c.h51 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/
Dtsys01.c52 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 …]
Dtsys02d.c36 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/
Dhtu21.c45 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/
Datmtcp.c20 #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 …]
Dzatm.h92 #define ZATM_DEV(d) ((struct zatm_dev *) (d)->dev_data)
93 #define ZATM_VCC(d) ((struct zatm_vcc *) (d)->dev_data)
Deni.h120 #define ENI_DEV(d) ((struct eni_dev *) (d)->dev_data)
121 #define ENI_VCC(d) ((struct eni_vcc *) (d)->dev_data)
Dadummy.c31 #define ADUMMY_DEV(dev) ((struct adummy_dev *) (dev)->dev_data)
165 atm_dev->dev_data = adummy_dev; in adummy_init()
/drivers/iio/pressure/
Dms5637.c44 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/
Damd_iommu.c243 struct iommu_dev_data *dev_data; in alloc_dev_data() local
246 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in alloc_dev_data()
247 if (!dev_data) in alloc_dev_data()
250 dev_data->devid = devid; in alloc_dev_data()
253 list_add_tail(&dev_data->dev_data_list, &dev_data_list); in alloc_dev_data()
256 return dev_data; in alloc_dev_data()
261 struct iommu_dev_data *dev_data; in search_dev_data() local
265 list_for_each_entry(dev_data, &dev_data_list, dev_data_list) { in search_dev_data()
266 if (dev_data->devid == devid) in search_dev_data()
270 dev_data = NULL; in search_dev_data()
[all …]
/drivers/clk/
Dclk-cdce706.c71 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/
Dinode.c116 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/
Dgpio-palmas.c163 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/
Dfsl-mph-dr-of.c180 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()
244 for (i = 0; i < ARRAY_SIZE(dev_data->drivers); i++) { in fsl_usb2_mph_dr_of_probe()
245 if (!dev_data->drivers[i]) in fsl_usb2_mph_dr_of_probe()
248 dev_data->drivers[i], idx); in fsl_usb2_mph_dr_of_probe()
/drivers/net/ethernet/qlogic/qed/
Dqed_debug.c1417 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_dev_init() local
1419 if (dev_data->initialized) in qed_dbg_dev_init()
1423 dev_data->chip_id = CHIP_K2; in qed_dbg_dev_init()
1424 dev_data->mode_enable[MODE_K2] = 1; in qed_dbg_dev_init()
1426 dev_data->chip_id = CHIP_BB_B0; in qed_dbg_dev_init()
1427 dev_data->mode_enable[MODE_BB_B0] = 1; in qed_dbg_dev_init()
1432 dev_data->platform_id = PLATFORM_ASIC; in qed_dbg_dev_init()
1433 dev_data->mode_enable[MODE_ASIC] = 1; in qed_dbg_dev_init()
1434 dev_data->initialized = true; in qed_dbg_dev_init()
1557 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dump_fw_ver_param() local
[all …]
/drivers/xen/xenbus/
Dxenbus_dev_frontend.c223 struct xenbus_file_priv *dev_data; member
285 mutex_lock(&adap->dev_data->reply_mutex); in watch_fired()
297 list_splice_tail(&staging_q, &adap->dev_data->read_buffers); in watch_fired()
298 wake_up(&adap->dev_data->read_waitq); in watch_fired()
302 mutex_unlock(&adap->dev_data->reply_mutex); in watch_fired()
392 watch->dev_data = u; in xenbus_write_watch()
/drivers/usb/atm/
Dusbatm.c659 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_send()
734 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_dev_close()
739 atm_dev->dev_data = NULL; /* catch bugs */ in usbatm_atm_dev_close()
745 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_proc_read()
785 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_open()
837 vcc->dev_data = new; in usbatm_atm_open()
864 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_close()
865 struct usbatm_vcc_data *vcc_data = vcc->dev_data; in usbatm_atm_close()
887 vcc->dev_data = NULL; in usbatm_atm_close()
901 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_ioctl()
[all …]
/drivers/platform/chrome/
Dchromeos_laptop.c147 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()

123