Home
last modified time | relevance | path

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

123

/linux/drivers/platform/chrome/wilco_ec/
A Devent.c310 if (!dev_data->exist) in event_open()
330 if (!dev_data->exist) in event_poll()
373 !dev_data->exist); in event_read()
378 if (!dev_data->exist) in event_read()
425 kfree(dev_data); in free_device_data()
462 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in event_device_add()
463 if (!dev_data) { in event_device_add()
472 kfree(dev_data); in event_device_add()
478 dev_data->exist = true; in event_device_add()
490 error = cdev_device_add(&dev_data->cdev, &dev_data->dev); in event_device_add()
[all …]
A Dtelemetry.c221 struct telem_device_data *dev_data; member
249 get_device(&dev_data->dev); in telem_open()
256 sess_data->dev_data = dev_data; in telem_open()
349 kfree(dev_data); in telem_device_free()
374 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in telem_device_probe()
375 if (!dev_data) { in telem_device_probe()
390 device_initialize(&dev_data->dev); in telem_device_probe()
394 error = cdev_device_add(&dev_data->cdev, &dev_data->dev); in telem_device_probe()
396 put_device(&dev_data->dev); in telem_device_probe()
408 cdev_device_del(&dev_data->cdev, &dev_data->dev); in telem_device_remove()
[all …]
/linux/drivers/xen/xen-pciback/
A Dpciback_ops.c31 if (!dev_data) in xen_pcibk_control_isr()
64 dev_data->irq, in xen_pcibk_control_isr()
85 dev_data->irq_name, dev_data->irq, rc); in xen_pcibk_control_isr()
90 dev_data->irq = 0; in xen_pcibk_control_isr()
97 dev_data->irq, in xen_pcibk_control_isr()
170 if (dev_data) in xen_pcibk_enable_msi()
186 if (dev_data) in xen_pcibk_disable_msi()
249 if (dev_data) in xen_pcibk_enable_msix()
265 if (dev_data) in xen_pcibk_disable_msix()
339 if (dev_data) in xen_pcibk_do_one_op()
[all …]
A Dpassthrough.c29 mutex_lock(&dev_data->lock); in __xen_pcibk_get_pci_dev()
40 mutex_unlock(&dev_data->lock); in __xen_pcibk_get_pci_dev()
59 mutex_lock(&dev_data->lock); in __xen_pcibk_add_pci_dev()
61 mutex_unlock(&dev_data->lock); in __xen_pcibk_add_pci_dev()
79 mutex_lock(&dev_data->lock); in __xen_pcibk_release_pci_dev()
89 mutex_unlock(&dev_data->lock); in __xen_pcibk_release_pci_dev()
104 dev_data = kmalloc(sizeof(*dev_data), GFP_KERNEL); in __xen_pcibk_init_devices()
105 if (!dev_data) in __xen_pcibk_init_devices()
108 mutex_init(&dev_data->lock); in __xen_pcibk_init_devices()
127 mutex_lock(&dev_data->lock); in __xen_pcibk_publish_pci_roots()
[all …]
A Dconf_space.c151 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_read() local
207 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_write() local
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()
355 if (!dev_data) in xen_pcibk_config_reset_dev()
373 if (!dev_data) in xen_pcibk_config_free_dev()
425 list_add_tail(&cfg_entry->list, &dev_data->config_fields); in xen_pcibk_config_add_field_offset()
[all …]
A Dpci_stub.c111 if (dev_data && in pcistub_device_release()
134 kfree(dev_data); in pcistub_device_release()
371 dev_data = kzalloc(sizeof(*dev_data) + strlen(DRV_NAME "[]") in pcistub_init_device()
373 if (!dev_data) { in pcistub_init_device()
442 kfree(dev_data); in pcistub_init_device()
1249 if (!dev_data) in irq_handlers_show()
1283 if (!dev_data) { in irq_handler_state_store()
1289 dev_data->irq_name, dev_data->isr_on, in irq_handler_state_store()
1292 dev_data->isr_on = !(dev_data->isr_on); in irq_handler_state_store()
1421 if (!dev_data || !dev_data->permissive) in permissive_show()
[all …]
A 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/drivers/iio/common/ms_sensors/
A Dms_sensors_i2c.c321 mutex_lock(&dev_data->lock); in ms_sensors_show_battery_low()
323 mutex_unlock(&dev_data->lock); in ms_sensors_show_battery_low()
348 mutex_lock(&dev_data->lock); in ms_sensors_show_heater()
383 mutex_lock(&dev_data->lock); in ms_sensors_write_heater()
424 mutex_lock(&dev_data->lock); in ms_sensors_ht_read_temperature()
465 mutex_lock(&dev_data->lock); in ms_sensors_ht_read_humidity()
584 dev_data->client, in ms_sensors_tp_read_prom()
586 &dev_data->prom[i]); in ms_sensors_tp_read_prom()
628 mutex_lock(&dev_data->lock); in ms_sensors_read_temp_and_pressure()
632 dev_data->client, in ms_sensors_read_temp_and_pressure()
[all …]
A 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/drivers/iio/temperature/
A Dtsys01.c54 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()
135 ret = dev_data->read_prom_word(dev_data->client, in tsys01_read_prom()
137 &dev_data->prom[i]); in tsys01_read_prom()
160 mutex_init(&dev_data->lock); in tsys01_probe()
168 ret = dev_data->reset(dev_data->client, TSYS01_RESET, 3000); in tsys01_probe()
182 struct tsys01_dev *dev_data; in tsys01_i2c_probe() local
198 dev_data = iio_priv(indio_dev); in tsys01_i2c_probe()
[all …]
A 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()
75 mutex_lock(&dev_data->lock); in tsys02d_write_raw()
76 dev_data->res_index = i; in tsys02d_write_raw()
78 mutex_unlock(&dev_data->lock); in tsys02d_write_raw()
127 struct ms_ht_dev *dev_data; in tsys02d_probe() local
145 dev_data = iio_priv(indio_dev); in tsys02d_probe()
146 dev_data->client = client; in tsys02d_probe()
147 dev_data->res_index = 0; in tsys02d_probe()
[all …]
/linux/drivers/iio/humidity/
A Dhtu21.c59 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()
93 mutex_lock(&dev_data->lock); in htu21_write_raw()
94 dev_data->res_index = i; in htu21_write_raw()
96 mutex_unlock(&dev_data->lock); in htu21_write_raw()
144 return ms_sensors_show_heater(dev_data, buf); in htu21_show_heater()
183 struct ms_ht_dev *dev_data; in htu21_probe() local
201 dev_data = iio_priv(indio_dev); in htu21_probe()
202 dev_data->client = client; in htu21_probe()
203 dev_data->res_index = 0; in htu21_probe()
[all …]
/linux/drivers/atm/
A Datmtcp.c205 if (dev_data) out_vcc = dev_data->vcc; in atmtcp_v_send()
253 dev_data->vcc = NULL; in atmtcp_c_close()
256 kfree(dev_data); in atmtcp_c_close()
258 vcc->dev_data = NULL; in atmtcp_c_close()
292 dev = vcc->dev_data; in atmtcp_c_send()
365 dev_data = kmalloc(sizeof(*dev_data),GFP_KERNEL); in atmtcp_create()
366 if (!dev_data) in atmtcp_create()
371 kfree(dev_data); in atmtcp_create()
376 dev->dev_data = dev_data; in atmtcp_create()
411 vcc->dev_data = dev; in atmtcp_attach()
[all …]
/linux/drivers/iommu/amd/
A Diommu.c146 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in alloc_dev_data()
147 if (!dev_data) in alloc_dev_data()
155 return dev_data; in alloc_dev_data()
238 if (!dev_data) in find_dev_data()
245 return dev_data; in find_dev_data()
331 if (!dev_data) in iommu_init_device()
374 if (!dev_data) in amd_iommu_uninit_device()
429 if (dev_data) { in amd_iommu_report_rmp_hw_error()
462 if (dev_data) { in amd_iommu_report_rmp_fault()
1814 dev_data->ats.enabled, dev_data->iommu_v2); in update_device_table()
[all …]
/linux/drivers/iio/pressure/
A Dms5637.c43 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_show_samp_freq() local
60 struct ms_tp_dev *dev_data = iio_priv(indio_dev); in ms5637_read_raw() local
84 *val = ms5637_samp_freq[dev_data->res_index]; in ms5637_read_raw()
107 dev_data->res_index = i; in ms5637_write_raw()
149 struct ms_tp_dev *dev_data; in ms5637_probe() local
173 dev_data = iio_priv(indio_dev); in ms5637_probe()
174 dev_data->client = client; in ms5637_probe()
175 dev_data->res_index = data->hw->max_res_index; in ms5637_probe()
176 dev_data->hw = data->hw; in ms5637_probe()
177 mutex_init(&dev_data->lock); in ms5637_probe()
[all …]
/linux/drivers/clk/
A Dclk-cdce706.c68 struct cdce706_dev_data *dev_data; member
167 dev_dbg(&hwd->dev_data->client->dev, in cdce706_pll_recalc_rate()
192 dev_dbg(&hwd->dev_data->client->dev, in cdce706_pll_round_rate()
202 dev_dbg(&hwd->dev_data->client->dev, in cdce706_pll_round_rate()
218 dev_dbg(&hwd->dev_data->client->dev, in cdce706_pll_set_rate()
282 dev_dbg(&hwd->dev_data->client->dev, in cdce706_divider_recalc_rate()
297 dev_dbg(&hwd->dev_data->client->dev, in cdce706_divider_round_rate()
344 dev_dbg(&hwd->dev_data->client->dev, in cdce706_divider_round_rate()
351 dev_dbg(&hwd->dev_data->client->dev, in cdce706_divider_round_rate()
363 dev_dbg(&hwd->dev_data->client->dev, in cdce706_divider_set_rate()
[all …]
/linux/drivers/i3c/master/mipi-i3c-hci/
A Dcore.c386 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()
427 kfree(dev_data); in i3c_hci_detach_i3c_dev()
441 dev_data = kzalloc(sizeof(*dev_data), GFP_KERNEL); in i3c_hci_attach_i2c_dev()
442 if (!dev_data) in i3c_hci_attach_i2c_dev()
446 kfree(dev_data); in i3c_hci_attach_i2c_dev()
451 dev_data->dat_idx = ret; in i3c_hci_attach_i2c_dev()
464 if (dev_data) { in i3c_hci_detach_i2c_dev()
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
A Dqed_debug.c955 if (dev_data->initialized) in qed_dbg_dev_init()
963 dev_data->chip_id = CHIP_K2; in qed_dbg_dev_init()
969 dev_data->chip_id = CHIP_BB; in qed_dbg_dev_init()
1002 dev_data->num_ports = 1; in qed_dbg_dev_init()
1004 dev_data->num_ports = 2; in qed_dbg_dev_init()
1006 dev_data->num_ports = 4; in qed_dbg_dev_init()
1016 dev_data->use_dmae = true; in qed_dbg_dev_init()
1017 dev_data->initialized = 1; in qed_dbg_dev_init()
1696 u8 chip_id = dev_data->chip_id; in qed_grc_unreset_blocks()
2040 dev_data->use_dmae = 0; in qed_grc_dump_addr_range()
[all …]
/linux/sound/soc/codecs/
A Dsti-sas.c75 const struct sti_sas_dev_data *dev_data; member
432 drvdata->dev_data = (struct sti_sas_dev_data *)of_id->data; in sti_sas_driver_probe()
439 drvdata->dev_data->regmap); in sti_sas_driver_probe()
454 sti_sas_dai[STI_SAS_DAI_ANALOG_OUT].ops = drvdata->dev_data->dac_ops; in sti_sas_driver_probe()
457 sti_sas_driver.dapm_widgets = drvdata->dev_data->dapm_widgets; in sti_sas_driver_probe()
458 sti_sas_driver.num_dapm_widgets = drvdata->dev_data->num_dapm_widgets; in sti_sas_driver_probe()
460 sti_sas_driver.dapm_routes = drvdata->dev_data->dapm_routes; in sti_sas_driver_probe()
461 sti_sas_driver.num_dapm_routes = drvdata->dev_data->num_dapm_routes; in sti_sas_driver_probe()
/linux/drivers/crypto/
A Dsa2ul.c856 ctx->dev_data = data; in sa_cipher_cra_init()
1498 ctx->dev_data = data; in sa_sha_cra_init_alg()
1737 ctx->dev_data = data; in sa_cra_init_aead()
2271 if (!dev_data->sc_pool) { in sa_init_mem()
2393 dev_data = devm_kzalloc(dev, sizeof(*dev_data), GFP_KERNEL); in sa_ul_probe()
2394 if (!dev_data) in sa_ul_probe()
2398 if (!dev_data->match_data) in sa_ul_probe()
2406 dev_data->dev = dev; in sa_ul_probe()
2407 dev_data->pdev = pdev; in sa_ul_probe()
2408 dev_data->base = saul_base; in sa_ul_probe()
[all …]
/linux/drivers/usb/gadget/legacy/
A Dinode.c115 struct dev_data { struct
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;
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()
1659 static struct dev_data *the_device;
1664 struct dev_data *dev = the_device; in gadgetfs_bind()
[all …]
/linux/drivers/gpio/
A 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/drivers/usb/host/
A Dfsl-mph-dr-of.c179 struct fsl_usb2_dev_data *dev_data; in fsl_usb2_mph_dr_of_probe() local
198 dev_data = get_dr_mode_data(np); in fsl_usb2_mph_dr_of_probe()
216 pdata->operating_mode = dev_data->op_mode; in fsl_usb2_mph_dr_of_probe()
249 for (i = 0; i < ARRAY_SIZE(dev_data->drivers); i++) { in fsl_usb2_mph_dr_of_probe()
250 if (!dev_data->drivers[i]) in fsl_usb2_mph_dr_of_probe()
253 dev_data->drivers[i], idx); in fsl_usb2_mph_dr_of_probe()
/linux/drivers/iio/adc/
A 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/sound/soc/sti/
A Dsti_uniperif.c391 const struct sti_uniperiph_dev_data *dev_data; in sti_uniperiph_cpu_dai_of() local
401 dev_data = (struct sti_uniperiph_dev_data *)of_id->data; in sti_uniperiph_cpu_dai_of()
407 uni->id = dev_data->id; in sti_uniperiph_cpu_dai_of()
408 uni->ver = dev_data->version; in sti_uniperiph_cpu_dai_of()
411 dai->name = dev_data->dai_names; in sti_uniperiph_cpu_dai_of()
425 uni->type = dev_data->type; in sti_uniperiph_cpu_dai_of()
428 if (dev_data->type & SND_ST_UNIPERIF_TYPE_TDM) { in sti_uniperiph_cpu_dai_of()
436 dai_data->stream = dev_data->stream; in sti_uniperiph_cpu_dai_of()

Completed in 97 milliseconds

123