Home
last modified time | relevance | path

Searched refs:sdata (Results 1 – 24 of 24) 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.c28 struct st_sensor_data *sdata) in st_sensors_new_samples_available() argument
33 if (!sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_new_samples_available()
40 ret = regmap_read(sdata->regmap, in st_sensors_new_samples_available()
41 sdata->sensor_settings->drdy_irq.stat_drdy.addr, 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()
87 st_sensors_new_samples_available(indio_dev, sdata)) { in st_sensors_irq_thread()
[all …]
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->irq = spi->irq; in st_sensors_spi_configure()
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->irq = client->irq; in st_sensors_i2c_configure()
Dst_sensors_buffer.c24 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_get_buffer_element() local
25 unsigned int num_data_channels = sdata->num_data_channels; in st_sensors_get_buffer_element()
37 if (regmap_bulk_read(sdata->regmap, channel->address, in st_sensors_get_buffer_element()
53 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_trigger_handler() local
63 timestamp = sdata->hw_timestamp; in st_sensors_trigger_handler()
67 len = st_sensors_get_buffer_element(indio_dev, sdata->buffer_data); in st_sensors_trigger_handler()
71 iio_push_to_buffers_with_timestamp(indio_dev, sdata->buffer_data, in st_sensors_trigger_handler()
/drivers/platform/chrome/
Dcros_typec_switch.c26 struct cros_typec_switch_data *sdata; member
36 static int cros_typec_cmd_mux_set(struct cros_typec_switch_data *sdata, int port_num, u8 index, in cros_typec_cmd_mux_set() argument
48 return cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_CONTROL, &req, sizeof(req), NULL, 0); in cros_typec_cmd_mux_set()
70 static int cros_typec_send_clear_event(struct cros_typec_switch_data *sdata, int port_num, in cros_typec_send_clear_event() argument
79 return cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_CONTROL, &req, sizeof(req), NULL, 0); in cros_typec_send_clear_event()
82 static bool cros_typec_check_event(struct cros_typec_switch_data *sdata, int port_num, u32 mask) in cros_typec_check_event() argument
90 ret = cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_STATUS, &req, sizeof(req), in cros_typec_check_event()
93 dev_warn(sdata->dev, "EC_CMD_TYPEC_STATUS failed for port: %d\n", port_num); in cros_typec_check_event()
108 static int cros_typec_configure_mux(struct cros_typec_switch_data *sdata, int port_num, int index, in cros_typec_configure_mux() argument
127 ret = cros_typec_send_clear_event(sdata, port_num, event_mask); in cros_typec_configure_mux()
[all …]
/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.c34 const struct fsl_gpio_soc_data *sdata; member
89 if (port->sdata && port->sdata->have_paddr) { in vf610_gpio_get()
113 if (port->sdata && port->sdata->have_paddr) { in vf610_gpio_direction_input()
131 if (port->sdata && port->sdata->have_paddr) { in vf610_gpio_direction_output()
272 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/platform/x86/
Dsamsung-laptop.c1240 struct sabi_data *sdata = &samsung->debug.data; in samsung_laptop_call_show() local
1245 sdata->d0, sdata->d1, sdata->d2, sdata->d3); in samsung_laptop_call_show()
1247 ret = sabi_command(samsung, samsung->debug.command, sdata, sdata); in samsung_laptop_call_show()
1256 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.c122 static irqreturn_t stm_thermal_irq_handler(int irq, void *sdata) in stm_thermal_irq_handler() argument
124 struct stm_thermal_sensor *sensor = sdata; in stm_thermal_irq_handler()
/drivers/net/ethernet/microchip/vcap/
Dvcap_api.c537 const struct vcap_client_keyfield_data *sdata; in vcap_copy_from_client_keyfield() local
544 sdata = &src->data; in vcap_copy_from_client_keyfield()
548 memcpy(ddata, sdata, sizeof(dst->data)); in vcap_copy_from_client_keyfield()
557 memcpy(ddata, sdata, sizeof(dst->data)); in vcap_copy_from_client_keyfield()
564 vcap_copy_to_w32be(ddata->u56.value, sdata->u56.value, size); in vcap_copy_from_client_keyfield()
565 vcap_copy_to_w32be(ddata->u56.mask, sdata->u56.mask, size); in vcap_copy_from_client_keyfield()
568 vcap_copy_to_w32be(ddata->u64.value, sdata->u64.value, size); in vcap_copy_from_client_keyfield()
569 vcap_copy_to_w32be(ddata->u64.mask, sdata->u64.mask, size); in vcap_copy_from_client_keyfield()
572 vcap_copy_to_w32be(ddata->u72.value, sdata->u72.value, size); in vcap_copy_from_client_keyfield()
573 vcap_copy_to_w32be(ddata->u72.mask, sdata->u72.mask, size); in vcap_copy_from_client_keyfield()
[all …]
/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.h225 struct ccs_data_container sdata, mdata; member
Dccs-core.c1509 sensor->sdata.sensor_manufacturer_regs, in ccs_write_msr_regs()
1510 sensor->sdata.num_sensor_manufacturer_regs); in ccs_write_msr_regs()
3432 ccs_data_parse(&sensor->sdata, fw->data, fw->size, &client->dev, in ccs_probe()
3665 kvfree(sensor->sdata.backing); in ccs_probe()
3697 kvfree(sensor->sdata.backing); in ccs_remove()
/drivers/s390/cio/
Ddevice_pgid.c647 struct stlck_data *sdata = data; in stlck_callback() local
649 sdata->rc = rc; in stlck_callback()
650 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/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/tty/serial/
Dfsl_lpuart.c2843 const struct lpuart_soc_data *sdata = of_device_get_match_data(&pdev->dev); in lpuart_probe() local
2858 sport->port.membase += sdata->reg_off; in lpuart_probe()
2859 sport->port.mapbase = res->start + sdata->reg_off; in lpuart_probe()
2862 sport->devtype = sdata->devtype; in lpuart_probe()
2863 sport->rx_watermark = sdata->rx_watermark; in lpuart_probe()
2870 sport->port.iotype = sdata->iotype; in lpuart_probe()
/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()