/linux-4.19.296/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()
|
/linux-4.19.296/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,
|
/linux-4.19.296/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() 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 …]
|
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 …]
|
/linux-4.19.296/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 …]
|
/linux-4.19.296/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() 132 struct ms_tp_dev *dev_data; in ms5637_probe() local 145 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*dev_data)); in ms5637_probe() 149 dev_data = iio_priv(indio_dev); in ms5637_probe() 150 dev_data->client = client; in ms5637_probe() 151 dev_data->res_index = 5; in ms5637_probe() [all …]
|
/linux-4.19.296/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 …]
|
/linux-4.19.296/drivers/iio/adc/ |
D | stm32-dfsdm-core.c | 283 const struct stm32_dfsdm_dev_data *dev_data; in stm32_dfsdm_probe() local 293 dev_data = of_device_get_match_data(&pdev->dev); in stm32_dfsdm_probe() 296 dfsdm->fl_list = devm_kcalloc(&pdev->dev, dev_data->num_filters, in stm32_dfsdm_probe() 301 dfsdm->num_fls = dev_data->num_filters; in stm32_dfsdm_probe() 302 dfsdm->ch_list = devm_kcalloc(&pdev->dev, dev_data->num_channels, in stm32_dfsdm_probe() 307 dfsdm->num_chs = dev_data->num_channels; in stm32_dfsdm_probe() 315 dev_data->regmap_cfg); in stm32_dfsdm_probe()
|
D | stm32-dfsdm-adc.c | 55 const struct stm32_dfsdm_dev_data *dev_data; member 988 if (adc->dev_data->type == DFSDM_AUDIO) { in stm32_dfsdm_adc_chan_init_one() 1109 const struct stm32_dfsdm_dev_data *dev_data; in stm32_dfsdm_adc_probe() local 1114 dev_data = of_device_get_match_data(dev); in stm32_dfsdm_adc_probe() 1139 if (dev_data->type == DFSDM_AUDIO) { in stm32_dfsdm_adc_probe() 1178 adc->dev_data = dev_data; in stm32_dfsdm_adc_probe() 1179 ret = dev_data->init(dev, iio); in stm32_dfsdm_adc_probe() 1187 if (dev_data->type == DFSDM_AUDIO) { in stm32_dfsdm_adc_probe() 1210 if (adc->dev_data->type == DFSDM_AUDIO) in stm32_dfsdm_adc_remove()
|
D | dln2-adc.c | 491 struct dln2_adc_get_all_vals dev_data; in dln2_adc_trigger_h() local 497 ret = dln2_adc_read_all(dln2, &dev_data); in dln2_adc_trigger_h() 506 (void *)dev_data.values + t->from, t->length); in dln2_adc_trigger_h()
|
/linux-4.19.296/drivers/gpio/ |
D | gpio-palmas.c | 162 const struct palmas_device_data *dev_data; in palmas_gpio_probe() local 164 dev_data = of_device_get_match_data(&pdev->dev); in palmas_gpio_probe() 165 if (!dev_data) in palmas_gpio_probe() 166 dev_data = &palmas_dev_data; in palmas_gpio_probe() 176 palmas_gpio->gpio_chip.ngpio = dev_data->ngpio; in palmas_gpio_probe()
|
/linux-4.19.296/drivers/xen/xenbus/ |
D | xenbus_dev_frontend.c | 229 struct xenbus_file_priv *dev_data; member 288 mutex_lock(&adap->dev_data->reply_mutex); in watch_fired() 298 list_splice_tail(&staging_q, &adap->dev_data->read_buffers); in watch_fired() 299 wake_up(&adap->dev_data->read_waitq); in watch_fired() 303 mutex_unlock(&adap->dev_data->reply_mutex); in watch_fired() 523 watch->dev_data = u; in xenbus_write_watch()
|
/linux-4.19.296/include/linux/ |
D | atmdev.h | 109 void *dev_data; /* per-device data */ member 153 void *dev_data; /* per-device data */ member
|