/drivers/platform/chrome/wilco_ec/ |
D | event.c | 215 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 …]
|
D | telemetry.c | 221 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 …]
|
/drivers/xen/xen-pciback/ |
D | pciback_ops.c | 26 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 …]
|
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 | 151 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() 331 struct xen_pcibk_dev_data *dev_data = pci_get_drvdata(dev); in xen_pcibk_config_free_dyn_fields() local 337 if (!dev_data) in xen_pcibk_config_free_dyn_fields() 340 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 | 96 struct xen_pcibk_dev_data *dev_data; in pcistub_device_release() local 100 dev_data = pci_get_drvdata(dev); in pcistub_device_release() 110 if (dev_data && in pcistub_device_release() 111 pci_load_and_free_saved_state(dev, &dev_data->pci_saved_state)) in pcistub_device_release() 133 kfree(dev_data); in pcistub_device_release() 264 struct xen_pcibk_dev_data *dev_data; in pcistub_put_pci_dev() local 290 dev_data = pci_get_drvdata(dev); in pcistub_put_pci_dev() 291 ret = pci_load_saved_state(dev, dev_data->pci_saved_state); in pcistub_put_pci_dev() 308 dev_data->allow_interrupt_control = 0; in pcistub_put_pci_dev() 360 struct xen_pcibk_dev_data *dev_data; in pcistub_init_device() local [all …]
|
D | conf_space_header.c | 64 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() 113 if (!xen_pcibk_permissive && (!dev_data || !dev_data->permissive)) in command_write()
|
/drivers/iio/common/ms_sensors/ |
D | ms_sensors_i2c.c | 285 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 …]
|
D | ms_sensors_i2c.h | 48 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,
|
/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 | 35 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 …]
|
/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 …]
|
/drivers/atm/ |
D | atmtcp.c | 21 #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 …]
|
D | zatm.h | 93 #define ZATM_DEV(d) ((struct zatm_dev *) (d)->dev_data) 94 #define ZATM_VCC(d) ((struct zatm_vcc *) (d)->dev_data)
|
/drivers/iommu/amd/ |
D | iommu.c | 188 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, &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 211 llist_for_each_entry(dev_data, node, dev_data_list) { in search_dev_data() [all …]
|
/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 …]
|
/drivers/clk/ |
D | clk-cdce706.c | 68 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 …]
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_debug.c | 828 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_set_param() local 830 dev_data->grc.param_val[grc_param] = val; in qed_grc_set_param() 837 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_get_param() local 839 return dev_data->grc.param_val[grc_param]; in qed_grc_get_param() 845 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_init_params() local 847 if (!dev_data->grc.params_initialized) { in qed_dbg_grc_init_params() 849 dev_data->grc.params_initialized = 1; in qed_dbg_grc_init_params() 867 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_dev_init() local 870 if (dev_data->initialized) in qed_dbg_dev_init() 875 dev_data->chip_id = CHIP_K2; in qed_dbg_dev_init() [all …]
|
/drivers/usb/gadget/legacy/ |
D | inode.c | 115 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; 849 static inline void ep0_readable (struct dev_data *dev) in ep0_readable() 857 struct dev_data *dev = ep->driver_data; in clean_req() 869 struct dev_data *dev = ep->driver_data; in ep0_complete() 892 struct dev_data *dev = ep->driver_data; in setup_req() [all …]
|
/drivers/gpio/ |
D | gpio-palmas.c | 151 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()
|
/drivers/usb/host/ |
D | fsl-mph-dr-of.c | 179 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()
|
/drivers/iio/adc/ |
D | stm32-dfsdm-core.c | 304 const struct stm32_dfsdm_dev_data *dev_data; in stm32_dfsdm_probe() local 314 dev_data = of_device_get_match_data(&pdev->dev); in stm32_dfsdm_probe() 317 dfsdm->fl_list = devm_kcalloc(&pdev->dev, dev_data->num_filters, in stm32_dfsdm_probe() 322 dfsdm->num_fls = dev_data->num_filters; in stm32_dfsdm_probe() 323 dfsdm->ch_list = devm_kcalloc(&pdev->dev, dev_data->num_channels, in stm32_dfsdm_probe() 328 dfsdm->num_chs = dev_data->num_channels; in stm32_dfsdm_probe() 336 dev_data->regmap_cfg); in stm32_dfsdm_probe()
|
/drivers/crypto/ |
D | sa2ul.c | 833 ctx->dev_data = data; in sa_cipher_cra_init() 1475 ctx->dev_data = data; in sa_sha_cra_init_alg() 1493 dev_err(ctx->dev_data->dev, in sa_sha_cra_init_alg() 2238 static int sa_init_mem(struct sa_crypto_data *dev_data) in sa_init_mem() argument 2240 struct device *dev = &dev_data->pdev->dev; in sa_init_mem() 2242 dev_data->sc_pool = dma_pool_create("keystone-sc", dev, in sa_init_mem() 2244 if (!dev_data->sc_pool) { in sa_init_mem() 2339 struct sa_crypto_data *dev_data; in sa_ul_probe() local 2343 dev_data = devm_kzalloc(dev, sizeof(*dev_data), GFP_KERNEL); in sa_ul_probe() 2344 if (!dev_data) in sa_ul_probe() [all …]
|
/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() 522 watch->dev_data = u; in xenbus_write_watch()
|
/drivers/usb/atm/ |
D | usbatm.c | 646 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_send() 721 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_dev_close() 726 atm_dev->dev_data = NULL; /* catch bugs */ in usbatm_atm_dev_close() 732 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_proc_read() 772 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_open() 824 vcc->dev_data = new; in usbatm_atm_open() 851 struct usbatm_data *instance = vcc->dev->dev_data; in usbatm_atm_close() 852 struct usbatm_vcc_data *vcc_data = vcc->dev_data; in usbatm_atm_close() 874 vcc->dev_data = NULL; in usbatm_atm_close() 888 struct usbatm_data *instance = atm_dev->dev_data; in usbatm_atm_ioctl() [all …]
|