Home
last modified time | relevance | path

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

123

/linux-6.1.9/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-6.1.9/drivers/xen/xen-pciback/
Dpciback_ops.c26 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 …]
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.c151 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()
207 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_write() local
219 list_for_each_entry(cfg_entry, &dev_data->config_fields, list) { in xen_pcibk_config_write()
254 if (dev_data->permissive || xen_pcibk_permissive) { in xen_pcibk_config_write()
269 } else if (!dev_data->warned_on_write) { in xen_pcibk_config_write()
270 dev_data->warned_on_write = 1; in xen_pcibk_config_write()
324 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_free_dyn_fields() local
330 if (!dev_data) in xen_pcibk_config_free_dyn_fields()
333 list_for_each_entry_safe(cfg_entry, t, &dev_data->config_fields, list) { in xen_pcibk_config_free_dyn_fields()
[all …]
Dpci_stub.c97 struct xen_pcibk_dev_data *dev_data; in pcistub_device_release() local
101 dev_data = pci_get_drvdata(dev); in pcistub_device_release()
111 if (dev_data && in pcistub_device_release()
112 pci_load_and_free_saved_state(dev, &dev_data->pci_saved_state)) in pcistub_device_release()
134 kfree(dev_data); in pcistub_device_release()
265 struct xen_pcibk_dev_data *dev_data; in pcistub_put_pci_dev() local
291 dev_data = pci_get_drvdata(dev); in pcistub_put_pci_dev()
292 ret = pci_load_saved_state(dev, dev_data->pci_saved_state); in pcistub_put_pci_dev()
309 dev_data->allow_interrupt_control = 0; in pcistub_put_pci_dev()
361 struct xen_pcibk_dev_data *dev_data; in pcistub_init_device() local
[all …]
Dconf_space_header.c64 struct xen_pcibk_dev_data *dev_data; in command_write() local
69 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()
80 if (dev_data) in command_write()
81 dev_data->enable_intx = 0; in command_write()
107 if (dev_data && dev_data->allow_interrupt_control) { in command_write()
128 if (!xen_pcibk_permissive && (!dev_data || !dev_data->permissive)) in command_write()
/linux-6.1.9/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.h59 ssize_t ms_sensors_show_serial(struct ms_ht_dev *dev_data, char *buf);
60 ssize_t ms_sensors_write_resolution(struct ms_ht_dev *dev_data, u8 i);
61 ssize_t ms_sensors_show_battery_low(struct ms_ht_dev *dev_data, char *buf);
62 ssize_t ms_sensors_show_heater(struct ms_ht_dev *dev_data, char *buf);
63 ssize_t ms_sensors_write_heater(struct ms_ht_dev *dev_data,
65 int ms_sensors_ht_read_temperature(struct ms_ht_dev *dev_data,
67 int ms_sensors_ht_read_humidity(struct ms_ht_dev *dev_data,
69 int ms_sensors_tp_read_prom(struct ms_tp_dev *dev_data);
70 int ms_sensors_read_temp_and_pressure(struct ms_tp_dev *dev_data,
/linux-6.1.9/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()
130 struct tsys01_dev *dev_data = iio_priv(indio_dev); in tsys01_read_prom() local
135 ret = dev_data->read_prom_word(dev_data->client, in tsys01_read_prom()
137 &dev_data->prom[i]); in tsys01_read_prom()
141 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-6.1.9/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 …]
/linux-6.1.9/drivers/iio/pressure/
Dms5637.c43 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_show_samp_freq() local
46 for (i = 0; i <= dev_data->hw->max_res_index; i++) in ms5637_show_samp_freq()
60 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_read_raw() local
64 ret = ms_sensors_read_temp_and_pressure(dev_data, in ms5637_read_raw()
84 *val = ms5637_samp_freq[dev_data->res_index]; in ms5637_read_raw()
96 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_write_raw() local
107 dev_data->res_index = i; in ms5637_write_raw()
149 struct ms_tp_dev *dev_data; in ms5637_probe() local
169 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*dev_data)); in ms5637_probe()
173 dev_data = iio_priv(indio_dev); in ms5637_probe()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/iommu/amd/
Diommu.c187 struct iommu_dev_data *dev_data; in alloc_dev_data() local
190 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in alloc_dev_data()
191 if (!dev_data) in alloc_dev_data()
194 spin_lock_init(&dev_data->lock); in alloc_dev_data()
195 dev_data->devid = devid; in alloc_dev_data()
196 ratelimit_default_init(&dev_data->rs); in alloc_dev_data()
198 llist_add(&dev_data->dev_data_list, &pci_seg->dev_data_list); in alloc_dev_data()
199 return dev_data; in alloc_dev_data()
204 struct iommu_dev_data *dev_data; in search_dev_data() local
212 llist_for_each_entry(dev_data, node, dev_data_list) { in search_dev_data()
[all …]
/linux-6.1.9/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-6.1.9/drivers/i3c/master/mipi-i3c-hci/
Dcore.c381 struct i3c_hci_dev_data *dev_data; in i3c_hci_attach_i3c_dev() local
386 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in i3c_hci_attach_i3c_dev()
387 if (!dev_data) in i3c_hci_attach_i3c_dev()
392 kfree(dev_data); in i3c_hci_attach_i3c_dev()
396 dev_data->dat_idx = ret; in i3c_hci_attach_i3c_dev()
398 i3c_dev_set_master_data(dev, dev_data); in i3c_hci_attach_i3c_dev()
406 struct i3c_hci_dev_data *dev_data = i3c_dev_get_master_data(dev); in i3c_hci_reattach_i3c_dev() local
411 mipi_i3c_hci_dat_v1.set_dynamic_addr(hci, dev_data->dat_idx, in i3c_hci_reattach_i3c_dev()
420 struct i3c_hci_dev_data *dev_data = i3c_dev_get_master_data(dev); in i3c_hci_detach_i3c_dev() local
426 mipi_i3c_hci_dat_v1.free_entry(hci, dev_data->dat_idx); in i3c_hci_detach_i3c_dev()
[all …]
/linux-6.1.9/sound/soc/codecs/
Dsti-sas.c75 const struct sti_sas_dev_data *dev_data; member
425 drvdata->dev_data = (struct sti_sas_dev_data *)of_id->data; in sti_sas_driver_probe()
432 drvdata->dev_data->regmap); in sti_sas_driver_probe()
447 sti_sas_dai[STI_SAS_DAI_ANALOG_OUT].ops = drvdata->dev_data->dac_ops; in sti_sas_driver_probe()
450 sti_sas_driver.dapm_widgets = drvdata->dev_data->dapm_widgets; in sti_sas_driver_probe()
451 sti_sas_driver.num_dapm_widgets = drvdata->dev_data->num_dapm_widgets; in sti_sas_driver_probe()
453 sti_sas_driver.dapm_routes = drvdata->dev_data->dapm_routes; in sti_sas_driver_probe()
454 sti_sas_driver.num_dapm_routes = drvdata->dev_data->num_dapm_routes; in sti_sas_driver_probe()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_debug.c913 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_set_param() local
915 dev_data->grc.param_val[grc_param] = val; in qed_grc_set_param()
922 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_get_param() local
924 return dev_data->grc.param_val[grc_param]; in qed_grc_get_param()
930 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_init_params() local
932 if (!dev_data->grc.params_initialized) { in qed_dbg_grc_init_params()
934 dev_data->grc.params_initialized = 1; in qed_dbg_grc_init_params()
952 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_dev_init() local
955 if (dev_data->initialized) in qed_dbg_dev_init()
963 dev_data->chip_id = CHIP_K2; in qed_dbg_dev_init()
[all …]
/linux-6.1.9/drivers/crypto/
Dsa2ul.c856 ctx->dev_data = data; in sa_cipher_cra_init()
912 if (sa_init_sc(&ctx->enc, ctx->dev_data->match_data, key, keylen, NULL, 0, in sa_cipher_setkey()
925 if (sa_init_sc(&ctx->dec, ctx->dev_data->match_data, key, keylen, NULL, 0, in sa_cipher_setkey()
1470 ctx->dev_data = dev_get_drvdata(sa_k3_dev); in sa_sha_setup()
1472 if (sa_init_sc(&ctx->enc, ctx->dev_data->match_data, NULL, 0, NULL, 0, in sa_sha_setup()
1498 ctx->dev_data = data; in sa_sha_cra_init_alg()
1516 dev_err(ctx->dev_data->dev, in sa_sha_cra_init_alg()
1737 ctx->dev_data = data; in sa_cra_init_aead()
1839 if (sa_init_sc(&ctx->enc, ctx->dev_data->match_data, keys.enckey, in sa_aead_setkey()
1853 if (sa_init_sc(&ctx->dec, ctx->dev_data->match_data, keys.enckey, in sa_aead_setkey()
[all …]
/linux-6.1.9/drivers/usb/gadget/legacy/
Dinode.c115 struct dev_data { struct
152 static inline void get_dev (struct dev_data *data) in get_dev() argument
157 static void put_dev (struct dev_data *data) in put_dev()
166 static struct dev_data *dev_new (void) in dev_new()
168 struct dev_data *dev; in dev_new()
195 struct dev_data *dev;
847 static inline void ep0_readable (struct dev_data *dev) in ep0_readable()
855 struct dev_data *dev = ep->driver_data; in clean_req()
867 struct dev_data *dev = ep->driver_data; in ep0_complete()
890 struct dev_data *dev = ep->driver_data; in setup_req()
[all …]
/linux-6.1.9/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-6.1.9/drivers/iio/adc/
Dstm32-dfsdm-core.c301 const struct stm32_dfsdm_dev_data *dev_data; in stm32_dfsdm_probe() local
311 dev_data = of_device_get_match_data(&pdev->dev); in stm32_dfsdm_probe()
314 dfsdm->fl_list = devm_kcalloc(&pdev->dev, dev_data->num_filters, in stm32_dfsdm_probe()
319 dfsdm->num_fls = dev_data->num_filters; in stm32_dfsdm_probe()
320 dfsdm->ch_list = devm_kcalloc(&pdev->dev, dev_data->num_channels, in stm32_dfsdm_probe()
325 dfsdm->num_chs = dev_data->num_channels; in stm32_dfsdm_probe()
333 dev_data->regmap_cfg); in stm32_dfsdm_probe()
/linux-6.1.9/sound/soc/sti/
Dsti_uniperif.c392 const struct sti_uniperiph_dev_data *dev_data; in sti_uniperiph_cpu_dai_of() local
402 dev_data = (struct sti_uniperiph_dev_data *)of_id->data; in sti_uniperiph_cpu_dai_of()
408 uni->id = dev_data->id; in sti_uniperiph_cpu_dai_of()
409 uni->ver = dev_data->version; in sti_uniperiph_cpu_dai_of()
412 dai->name = dev_data->dai_names; in sti_uniperiph_cpu_dai_of()
426 uni->type = dev_data->type; in sti_uniperiph_cpu_dai_of()
429 if (dev_data->type & SND_ST_UNIPERIF_TYPE_TDM) { in sti_uniperiph_cpu_dai_of()
437 dai_data->stream = dev_data->stream; in sti_uniperiph_cpu_dai_of()
/linux-6.1.9/drivers/usb/host/
Dfsl-mph-dr-of.c182 struct fsl_usb2_dev_data *dev_data; in fsl_usb2_mph_dr_of_probe() local
201 dev_data = get_dr_mode_data(np); in fsl_usb2_mph_dr_of_probe()
219 pdata->operating_mode = dev_data->op_mode; in fsl_usb2_mph_dr_of_probe()
252 for (i = 0; i < ARRAY_SIZE(dev_data->drivers); i++) { in fsl_usb2_mph_dr_of_probe()
253 if (!dev_data->drivers[i]) in fsl_usb2_mph_dr_of_probe()
256 dev_data->drivers[i], idx); in fsl_usb2_mph_dr_of_probe()

123