Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/platform/chrome/wilco_ec/
Devent.c215 struct event_device_data *dev_data = adev->driver_data; in enqueue_events() local
245 spin_lock(&dev_data->queue_lock); in enqueue_events()
246 old_event = event_queue_push(dev_data->events, queue_event); in enqueue_events()
247 spin_unlock(&dev_data->queue_lock); in enqueue_events()
249 wake_up_interruptible(&dev_data->wq); in enqueue_events()
307 struct event_device_data *dev_data; in event_open() local
309 dev_data = container_of(inode->i_cdev, struct event_device_data, cdev); in event_open()
310 if (!dev_data->exist) in event_open()
313 if (atomic_cmpxchg(&dev_data->available, 1, 0) == 0) in event_open()
317 get_device(&dev_data->dev); in event_open()
[all …]
Dtelemetry.c221 struct telem_device_data *dev_data; member
241 struct telem_device_data *dev_data; in telem_open() local
245 dev_data = container_of(inode->i_cdev, struct telem_device_data, cdev); in telem_open()
246 if (atomic_cmpxchg(&dev_data->available, 1, 0) == 0) in telem_open()
249 get_device(&dev_data->dev); in telem_open()
253 atomic_set(&dev_data->available, 1); in telem_open()
256 sess_data->dev_data = dev_data; in telem_open()
288 ret = wilco_ec_mailbox(sess_data->dev_data->ec, &msg); in telem_write()
321 atomic_set(&sess_data->dev_data->available, 1); in telem_release()
322 put_device(&sess_data->dev_data->dev); in telem_release()
[all …]
/Linux-v5.4/drivers/xen/xen-pciback/
Dpciback_ops.c28 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 …]
Dpassthrough.c25 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 …]
Dconf_space.c149 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 …]
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 (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 …]
Dconf_space_header.c63 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()
/Linux-v5.4/drivers/iio/common/ms_sensors/
Dms_sensors_i2c.c285 ssize_t ms_sensors_write_resolution(struct ms_ht_dev *dev_data, in ms_sensors_write_resolution() argument
291 ret = ms_sensors_read_config_reg(dev_data->client, &config_reg); in ms_sensors_write_resolution()
298 return i2c_smbus_write_byte_data(dev_data->client, in ms_sensors_write_resolution()
315 ssize_t ms_sensors_show_battery_low(struct ms_ht_dev *dev_data, in ms_sensors_show_battery_low() argument
321 mutex_lock(&dev_data->lock); in ms_sensors_show_battery_low()
322 ret = ms_sensors_read_config_reg(dev_data->client, &config_reg); in ms_sensors_show_battery_low()
323 mutex_unlock(&dev_data->lock); in ms_sensors_show_battery_low()
342 ssize_t ms_sensors_show_heater(struct ms_ht_dev *dev_data, in ms_sensors_show_heater() argument
348 mutex_lock(&dev_data->lock); in ms_sensors_show_heater()
349 ret = ms_sensors_read_config_reg(dev_data->client, &config_reg); in ms_sensors_show_heater()
[all …]
Dms_sensors_i2c.h48 ssize_t ms_sensors_show_serial(struct ms_ht_dev *dev_data, char *buf);
49 ssize_t ms_sensors_write_resolution(struct ms_ht_dev *dev_data, u8 i);
50 ssize_t ms_sensors_show_battery_low(struct ms_ht_dev *dev_data, char *buf);
51 ssize_t ms_sensors_show_heater(struct ms_ht_dev *dev_data, char *buf);
52 ssize_t ms_sensors_write_heater(struct ms_ht_dev *dev_data,
54 int ms_sensors_ht_read_temperature(struct ms_ht_dev *dev_data,
56 int ms_sensors_ht_read_humidity(struct ms_ht_dev *dev_data,
58 int ms_sensors_tp_read_prom(struct ms_tp_dev *dev_data);
59 int ms_sensors_read_temp_and_pressure(struct ms_tp_dev *dev_data,
/Linux-v5.4/drivers/iio/temperature/
Dtsys01.c51 struct tsys01_dev *dev_data = iio_priv(indio_dev); in tsys01_read_temperature() local
53 mutex_lock(&dev_data->lock); in tsys01_read_temperature()
54 ret = dev_data->convert_and_read(dev_data->client, in tsys01_read_temperature()
57 mutex_unlock(&dev_data->lock); in tsys01_read_temperature()
66 (s64)dev_data->prom[5 - i]; in tsys01_read_temperature()
71 temp += coeff_mul[0] * (s64)dev_data->prom[5]; in tsys01_read_temperature()
129 struct tsys01_dev *dev_data = iio_priv(indio_dev); in tsys01_read_prom() local
134 ret = dev_data->read_prom_word(dev_data->client, in tsys01_read_prom()
136 &dev_data->prom[i]); in tsys01_read_prom()
140 ret = sprintf(ptr, "0x%04x ", dev_data->prom[i]); in tsys01_read_prom()
[all …]
Dtsys02d.c35 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in tsys02d_read_raw() local
41 ret = ms_sensors_ht_read_temperature(dev_data, in tsys02d_read_raw()
52 *val = tsys02d_samp_freq[dev_data->res_index]; in tsys02d_read_raw()
64 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in tsys02d_write_raw() local
75 mutex_lock(&dev_data->lock); in tsys02d_write_raw()
76 dev_data->res_index = i; in tsys02d_write_raw()
77 ret = ms_sensors_write_resolution(dev_data, i); in tsys02d_write_raw()
78 mutex_unlock(&dev_data->lock); in tsys02d_write_raw()
99 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in tsys02_read_battery_low() local
101 return ms_sensors_show_battery_low(dev_data, buf); in tsys02_read_battery_low()
[all …]
/Linux-v5.4/drivers/iio/humidity/
Dhtu21.c44 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_read_raw() local
50 ret = ms_sensors_ht_read_temperature(dev_data, in htu21_read_raw()
58 ret = ms_sensors_ht_read_humidity(dev_data, in htu21_read_raw()
69 *val = htu21_samp_freq[dev_data->res_index]; in htu21_read_raw()
81 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_write_raw() local
92 mutex_lock(&dev_data->lock); in htu21_write_raw()
93 dev_data->res_index = i; in htu21_write_raw()
94 ret = ms_sensors_write_resolution(dev_data, i); in htu21_write_raw()
95 mutex_unlock(&dev_data->lock); in htu21_write_raw()
132 struct ms_ht_dev *dev_data = iio_priv(indio_dev); in htu21_show_battery_low() local
[all …]
/Linux-v5.4/drivers/atm/
Datmtcp.c21 #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 …]
Dzatm.h93 #define ZATM_DEV(d) ((struct zatm_dev *) (d)->dev_data)
94 #define ZATM_VCC(d) ((struct zatm_vcc *) (d)->dev_data)
Deni.h121 #define ENI_DEV(d) ((struct eni_dev *) (d)->dev_data)
122 #define ENI_VCC(d) ((struct eni_vcc *) (d)->dev_data)
/Linux-v5.4/drivers/iio/pressure/
Dms5637.c43 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_read_raw() local
47 ret = ms_sensors_read_temp_and_pressure(dev_data, in ms5637_read_raw()
67 *val = ms5637_samp_freq[dev_data->res_index]; in ms5637_read_raw()
79 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_write_raw() local
90 dev_data->res_index = i; in ms5637_write_raw()
131 struct ms_tp_dev *dev_data; in ms5637_probe() local
144 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*dev_data)); in ms5637_probe()
148 dev_data = iio_priv(indio_dev); in ms5637_probe()
149 dev_data->client = client; in ms5637_probe()
150 dev_data->res_index = 5; in ms5637_probe()
[all …]
/Linux-v5.4/drivers/clk/
Dclk-cdce706.c68 struct cdce706_dev_data *dev_data; member
112 static int cdce706_reg_read(struct cdce706_dev_data *dev_data, unsigned reg, in cdce706_reg_read() argument
115 int rc = regmap_read(dev_data->regmap, reg | 0x80, val); in cdce706_reg_read()
118 dev_err(&dev_data->client->dev, "error reading reg %u", reg); in cdce706_reg_read()
122 static int cdce706_reg_write(struct cdce706_dev_data *dev_data, unsigned reg, in cdce706_reg_write() argument
125 int rc = regmap_write(dev_data->regmap, reg | 0x80, val); in cdce706_reg_write()
128 dev_err(&dev_data->client->dev, "error writing reg %u", reg); in cdce706_reg_write()
132 static int cdce706_reg_update(struct cdce706_dev_data *dev_data, unsigned reg, in cdce706_reg_update() argument
135 int rc = regmap_update_bits(dev_data->regmap, reg | 0x80, mask, val); in cdce706_reg_update()
138 dev_err(&dev_data->client->dev, "error updating reg %u", reg); in cdce706_reg_update()
[all …]
/Linux-v5.4/drivers/iommu/
Damd_iommu.c198 struct iommu_dev_data *dev_data; in alloc_dev_data() local
200 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in alloc_dev_data()
201 if (!dev_data) in alloc_dev_data()
204 spin_lock_init(&dev_data->lock); in alloc_dev_data()
205 dev_data->devid = devid; in alloc_dev_data()
206 ratelimit_default_init(&dev_data->rs); in alloc_dev_data()
208 llist_add(&dev_data->dev_data_list, &dev_data_list); in alloc_dev_data()
209 return dev_data; in alloc_dev_data()
214 struct iommu_dev_data *dev_data; in search_dev_data() local
221 llist_for_each_entry(dev_data, node, dev_data_list) { in search_dev_data()
[all …]
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_debug.c1763 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_set_param() local
1765 dev_data->grc.param_val[grc_param] = val; in qed_grc_set_param()
1772 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_get_param() local
1774 return dev_data->grc.param_val[grc_param]; in qed_grc_get_param()
1780 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_init_params() local
1782 if (!dev_data->grc.params_initialized) { in qed_dbg_grc_init_params()
1784 dev_data->grc.params_initialized = 1; in qed_dbg_grc_init_params()
1792 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_dev_init() local
1795 if (dev_data->initialized) in qed_dbg_dev_init()
1800 dev_data->chip_id = CHIP_K2; in qed_dbg_dev_init()
[all …]
/Linux-v5.4/sound/soc/codecs/
Dsti-sas.c78 const struct sti_sas_dev_data *dev_data; member
434 drvdata->dev_data = (struct sti_sas_dev_data *)of_id->data; in sti_sas_driver_probe()
441 drvdata->dev_data->regmap); in sti_sas_driver_probe()
456 sti_sas_dai[STI_SAS_DAI_ANALOG_OUT].ops = drvdata->dev_data->dac_ops; in sti_sas_driver_probe()
459 sti_sas_driver.dapm_widgets = drvdata->dev_data->dapm_widgets; in sti_sas_driver_probe()
460 sti_sas_driver.num_dapm_widgets = drvdata->dev_data->num_dapm_widgets; in sti_sas_driver_probe()
462 sti_sas_driver.dapm_routes = drvdata->dev_data->dapm_routes; in sti_sas_driver_probe()
463 sti_sas_driver.num_dapm_routes = drvdata->dev_data->num_dapm_routes; in sti_sas_driver_probe()
/Linux-v5.4/drivers/usb/gadget/legacy/
Dinode.c113 struct dev_data { struct
150 static inline void get_dev (struct dev_data *data) in get_dev() argument
155 static void put_dev (struct dev_data *data) in put_dev()
164 static struct dev_data *dev_new (void) in dev_new()
166 struct dev_data *dev; in dev_new()
193 struct dev_data *dev;
845 static inline void ep0_readable (struct dev_data *dev) in ep0_readable()
853 struct dev_data *dev = ep->driver_data; in clean_req()
865 struct dev_data *dev = ep->driver_data; in ep0_complete()
888 struct dev_data *dev = ep->driver_data; in setup_req()
[all …]
/Linux-v5.4/drivers/gpio/
Dgpio-palmas.c151 const struct palmas_device_data *dev_data; in palmas_gpio_probe() local
153 dev_data = of_device_get_match_data(&pdev->dev); in palmas_gpio_probe()
154 if (!dev_data) in palmas_gpio_probe()
155 dev_data = &palmas_dev_data; in palmas_gpio_probe()
165 palmas_gpio->gpio_chip.ngpio = dev_data->ngpio; in palmas_gpio_probe()
/Linux-v5.4/drivers/usb/host/
Dfsl-mph-dr-of.c176 struct fsl_usb2_dev_data *dev_data; in fsl_usb2_mph_dr_of_probe() local
195 dev_data = get_dr_mode_data(np); in fsl_usb2_mph_dr_of_probe()
213 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()
/Linux-v5.4/drivers/iio/adc/
Dstm32-dfsdm-core.c310 const struct stm32_dfsdm_dev_data *dev_data; in stm32_dfsdm_probe() local
320 dev_data = of_device_get_match_data(&pdev->dev); in stm32_dfsdm_probe()
323 dfsdm->fl_list = devm_kcalloc(&pdev->dev, dev_data->num_filters, in stm32_dfsdm_probe()
328 dfsdm->num_fls = dev_data->num_filters; in stm32_dfsdm_probe()
329 dfsdm->ch_list = devm_kcalloc(&pdev->dev, dev_data->num_channels, in stm32_dfsdm_probe()
334 dfsdm->num_chs = dev_data->num_channels; in stm32_dfsdm_probe()
342 dev_data->regmap_cfg); in stm32_dfsdm_probe()
/Linux-v5.4/sound/soc/sti/
Dsti_uniperif.c390 const struct sti_uniperiph_dev_data *dev_data; in sti_uniperiph_cpu_dai_of() local
400 dev_data = (struct sti_uniperiph_dev_data *)of_id->data; in sti_uniperiph_cpu_dai_of()
406 uni->id = dev_data->id; in sti_uniperiph_cpu_dai_of()
407 uni->ver = dev_data->version; in sti_uniperiph_cpu_dai_of()
410 dai->name = dev_data->dai_names; in sti_uniperiph_cpu_dai_of()
432 uni->type = dev_data->type; in sti_uniperiph_cpu_dai_of()
435 if (dev_data->type & SND_ST_UNIPERIF_TYPE_TDM) { in sti_uniperiph_cpu_dai_of()
443 dai_data->stream = dev_data->stream; in sti_uniperiph_cpu_dai_of()

123