Home
last modified time | relevance | path

Searched refs:sdata (Results 1 – 23 of 23) sorted by relevance

/drivers/input/touchscreen/
Dstmfts.c112 struct stmfts_data *sdata = container_of(led_cdev, in stmfts_brightness_set() local
116 if (value != sdata->led_status && sdata->ledvdd) { in stmfts_brightness_set()
118 regulator_disable(sdata->ledvdd); in stmfts_brightness_set()
120 err = regulator_enable(sdata->ledvdd); in stmfts_brightness_set()
122 dev_warn(&sdata->client->dev, in stmfts_brightness_set()
128 sdata->led_status = value; in stmfts_brightness_set()
136 struct stmfts_data *sdata = container_of(led_cdev, in stmfts_brightness_get() local
139 return !!regulator_is_enabled(sdata->ledvdd); in stmfts_brightness_get()
146 static int stmfts_read_events(struct stmfts_data *sdata) in stmfts_read_events() argument
151 .addr = sdata->client->addr, in stmfts_read_events()
[all …]
Ds6sy761.c117 static int s6sy761_read_events(struct s6sy761_data *sdata, u16 n_events) in s6sy761_read_events() argument
122 .addr = sdata->client->addr, in s6sy761_read_events()
127 .addr = sdata->client->addr, in s6sy761_read_events()
130 .buf = sdata->data + S6SY761_EVENT_SIZE, in s6sy761_read_events()
135 ret = i2c_transfer(sdata->client->adapter, msgs, ARRAY_SIZE(msgs)); in s6sy761_read_events()
142 static void s6sy761_report_coordinates(struct s6sy761_data *sdata, in s6sy761_report_coordinates() argument
151 input_mt_slot(sdata->input, tid); in s6sy761_report_coordinates()
153 input_mt_report_slot_state(sdata->input, MT_TOOL_FINGER, true); in s6sy761_report_coordinates()
154 input_report_abs(sdata->input, ABS_MT_POSITION_X, x); in s6sy761_report_coordinates()
155 input_report_abs(sdata->input, ABS_MT_POSITION_Y, y); in s6sy761_report_coordinates()
[all …]
/drivers/iio/common/st_sensors/
Dst_sensors_core.c27 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_write_data_with_mask() local
29 return regmap_update_bits(sdata->regmap, in st_sensors_write_data_with_mask()
37 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_debugfs_reg_access() local
41 return regmap_write(sdata->regmap, reg, writeval); in st_sensors_debugfs_reg_access()
43 err = regmap_read(sdata->regmap, reg, readval); in st_sensors_debugfs_reg_access()
76 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_set_odr() local
78 mutex_lock(&sdata->odr_lock); in st_sensors_set_odr()
80 if (!sdata->sensor_settings->odr.mask) in st_sensors_set_odr()
83 err = st_sensors_match_odr(sdata->sensor_settings, odr, &odr_out); in st_sensors_set_odr()
87 if ((sdata->sensor_settings->odr.addr == in st_sensors_set_odr()
[all …]
Dst_sensors_trigger.c29 struct st_sensor_data *sdata) in st_sensors_new_samples_available() argument
34 if (!sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_new_samples_available()
41 ret = regmap_read(sdata->regmap, in st_sensors_new_samples_available()
42 sdata->sensor_settings->drdy_irq.stat_drdy.addr, in st_sensors_new_samples_available()
45 dev_err(sdata->dev, "error checking samples available\n"); in st_sensors_new_samples_available()
49 return !!(status & sdata->sensor_settings->drdy_irq.stat_drdy.mask); in st_sensors_new_samples_available()
61 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_irq_handler() local
64 sdata->hw_timestamp = iio_get_time_ns(indio_dev); in st_sensors_irq_handler()
77 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_irq_thread() local
86 if (sdata->hw_irq_trigger && in st_sensors_irq_thread()
[all …]
Dst_sensors_i2c.c41 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_i2c_configure() local
44 if (sdata->sensor_settings->multi_read_bit) in st_sensors_i2c_configure()
49 sdata->regmap = devm_regmap_init_i2c(client, config); in st_sensors_i2c_configure()
50 if (IS_ERR(sdata->regmap)) { in st_sensors_i2c_configure()
52 PTR_ERR(sdata->regmap)); in st_sensors_i2c_configure()
53 return PTR_ERR(sdata->regmap); in st_sensors_i2c_configure()
60 sdata->dev = &client->dev; in st_sensors_i2c_configure()
61 sdata->irq = client->irq; in st_sensors_i2c_configure()
Dst_sensors_spi.c85 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_spi_configure() local
91 sdata->sensor_settings); in st_sensors_spi_configure()
96 if (sdata->sensor_settings->multi_read_bit) in st_sensors_spi_configure()
101 sdata->regmap = devm_regmap_init_spi(spi, config); in st_sensors_spi_configure()
102 if (IS_ERR(sdata->regmap)) { in st_sensors_spi_configure()
104 PTR_ERR(sdata->regmap)); in st_sensors_spi_configure()
105 return PTR_ERR(sdata->regmap); in st_sensors_spi_configure()
112 sdata->dev = &spi->dev; in st_sensors_spi_configure()
113 sdata->irq = spi->irq; in st_sensors_spi_configure()
Dst_sensors_buffer.c25 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_get_buffer_element() local
26 unsigned int num_data_channels = sdata->num_data_channels; in st_sensors_get_buffer_element()
38 if (regmap_bulk_read(sdata->regmap, channel->address, in st_sensors_get_buffer_element()
54 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_trigger_handler() local
64 timestamp = sdata->hw_timestamp; in st_sensors_trigger_handler()
68 len = st_sensors_get_buffer_element(indio_dev, sdata->buffer_data); in st_sensors_trigger_handler()
72 iio_push_to_buffers_with_timestamp(indio_dev, sdata->buffer_data, in st_sensors_trigger_handler()
/drivers/hwmon/
Dibmpowernv.c100 struct sensor_data *sdata = container_of(devattr, struct sensor_data, in show_sensor() local
105 if (sdata->sgrp_data && !sdata->sgrp_data->enable) in show_sensor()
108 ret = opal_get_sensor_data_u64(sdata->id, &x); in show_sensor()
114 if (sdata->type == TEMP) in show_sensor()
117 else if (sdata->type == POWER_INPUT) in show_sensor()
126 struct sensor_data *sdata = container_of(devattr, struct sensor_data, in show_enable() local
129 return sprintf(buf, "%u\n", sdata->sgrp_data->enable); in show_enable()
136 struct sensor_data *sdata = container_of(devattr, struct sensor_data, in store_enable() local
138 struct sensor_group_data *sgrp_data = sdata->sgrp_data; in store_enable()
166 struct sensor_data *sdata = container_of(devattr, struct sensor_data, in show_label() local
[all …]
/drivers/gpio/
Dgpio-vf610.c35 const struct fsl_gpio_soc_data *sdata; member
90 if (port->sdata && port->sdata->have_paddr) { in vf610_gpio_get()
114 if (port->sdata && port->sdata->have_paddr) { in vf610_gpio_direction_input()
132 if (port->sdata && port->sdata->have_paddr) { in vf610_gpio_direction_output()
259 port->sdata = of_device_get_match_data(dev); in vf610_gpio_probe()
/drivers/media/pci/cx18/
Dcx18-vbi.c49 struct v4l2_sliced_vbi_data *sdata = cx->vbi.sliced_data + i; in copy_vbi_data() local
52 if (sdata->id == 0) in copy_vbi_data()
55 l = sdata->line - 6; in copy_vbi_data()
56 f = sdata->field; in copy_vbi_data()
63 dst[sd + 12 + line * 43] = cx18_service2vbi(sdata->id); in copy_vbi_data()
64 memcpy(dst + sd + 12 + line * 43 + 1, sdata->data, 42); in copy_vbi_data()
/drivers/dma/
Ds3c24xx-dma.c238 struct soc_data *sdata; member
271 if (s3cdma->sdata->has_reqsel) in s3c24xx_dma_phy_valid()
321 if (s3cdma->sdata->has_clocks) { in s3c24xx_dma_get_phy()
343 if (s3cdma->sdata->has_clocks) in s3c24xx_dma_put_phy()
466 if (s3cdma->sdata->has_reqsel) { in s3c24xx_dma_start_next_sg()
479 if (s3cdma->sdata->has_reqsel) in s3c24xx_dma_start_next_sg()
1189 struct soc_data *sdata; in s3c24xx_dma_probe() local
1206 sdata = s3c24xx_dma_get_soc_data(pdev); in s3c24xx_dma_probe()
1207 if (!sdata) in s3c24xx_dma_probe()
1216 s3cdma->sdata = sdata; in s3c24xx_dma_probe()
[all …]
/drivers/platform/x86/
Dsamsung-laptop.c1250 struct sabi_data *sdata = &samsung->debug.data; in samsung_laptop_call_show() local
1255 sdata->d0, sdata->d1, sdata->d2, sdata->d3); in samsung_laptop_call_show()
1257 ret = sabi_command(samsung, samsung->debug.command, sdata, sdata); in samsung_laptop_call_show()
1266 sdata->d0, sdata->d1, sdata->d2, sdata->d3); in samsung_laptop_call_show()
/drivers/thermal/st/
Dst_thermal_memmap.c37 static irqreturn_t st_mmap_thermal_trip_handler(int irq, void *sdata) in st_mmap_thermal_trip_handler() argument
39 struct st_thermal_sensor *sensor = sdata; in st_mmap_thermal_trip_handler()
Dstm_thermal.c125 static irqreturn_t stm_thermal_irq_handler(int irq, void *sdata) in stm_thermal_irq_handler() argument
127 struct stm_thermal_sensor *sensor = sdata; in stm_thermal_irq_handler()
/drivers/media/i2c/ccs/
Dccs-reg-access.c240 if (!__ccs_read_data(sensor->sdata.sensor_read_only_regs, in ccs_read_data()
241 sensor->sdata.num_sensor_read_only_regs, in ccs_read_data()
Dccs.h238 struct ccs_data_container sdata, mdata; member
Dccs-core.c1504 sensor->sdata.sensor_manufacturer_regs, in ccs_write_msr_regs()
1505 sensor->sdata.num_sensor_manufacturer_regs); in ccs_write_msr_regs()
3407 ccs_data_parse(&sensor->sdata, fw->data, fw->size, &client->dev, in ccs_probe()
3659 kvfree(sensor->sdata.backing); in ccs_probe()
3691 kvfree(sensor->sdata.backing); in ccs_remove()
/drivers/s390/cio/
Ddevice_pgid.c646 struct stlck_data *sdata = data; in stlck_callback() local
648 sdata->rc = rc; in stlck_callback()
649 complete(&sdata->done); in stlck_callback()
/drivers/infiniband/hw/qib/
Dqib_rc.c2012 u64 sdata; in qib_rc_rcv() local
2044 sdata = get_ib_ateth_swap(ateth); in qib_rc_rcv()
2046 (u64) atomic64_add_return(sdata, maddr) - sdata : in qib_rc_rcv()
2049 sdata); in qib_rc_rcv()
/drivers/tty/serial/
Dfsl_lpuart.c2722 const struct lpuart_soc_data *sdata = of_device_get_match_data(&pdev->dev); in lpuart_probe() local
2738 sport->port.membase += sdata->reg_off; in lpuart_probe()
2739 sport->port.mapbase = res->start + sdata->reg_off; in lpuart_probe()
2742 sport->devtype = sdata->devtype; in lpuart_probe()
2743 sport->rx_watermark = sdata->rx_watermark; in lpuart_probe()
2748 sport->port.iotype = sdata->iotype; in lpuart_probe()
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dinit.c1516 u16 mdata, sdata; in init_configure_mem() local
1529 sdata = bmp_sdr_seq_table(bios); in init_configure_mem()
1531 sdata = bmp_ddr_seq_table(bios); in init_configure_mem()
1537 for (; (addr = nvbios_rd32(bios, sdata)) != 0xffffffff; sdata += 4) { in init_configure_mem()
/drivers/infiniband/sw/rdmavt/
Dqp.c2911 u64 sdata; in rvt_ruc_loopback() local
3083 sdata = wqe->atomic_wr.compare_add; in rvt_ruc_loopback()
3086 (u64)atomic64_add_return(sdata, maddr) - sdata : in rvt_ruc_loopback()
3088 sdata, wqe->atomic_wr.swap); in rvt_ruc_loopback()
/drivers/infiniband/hw/hfi1/
Drc.c3091 u64 sdata; in hfi1_rc_rcv() local
3124 sdata = get_ib_ateth_swap(ateth); in hfi1_rc_rcv()
3126 (u64)atomic64_add_return(sdata, maddr) - sdata : in hfi1_rc_rcv()
3129 sdata); in hfi1_rc_rcv()