Home
last modified time | relevance | path

Searched refs:st (Results 126 – 150 of 1907) sorted by relevance

12345678910>>...77

/openbmc/linux/drivers/iio/common/cros_ec_sensors/
H A Dcros_ec_sensors_core.c106 mutex_lock(&st->cmd_lock); in cros_ec_sensor_set_ec_rate()
110 mutex_unlock(&st->cmd_lock); in cros_ec_sensor_set_ec_rate()
144 mutex_lock(&st->cmd_lock); in cros_ec_sensor_get_report_latency()
150 mutex_unlock(&st->cmd_lock); in cros_ec_sensor_get_report_latency()
200 out = (s16 *)st->samples; in cros_ec_sensors_push_data()
453 mutex_lock(&st->cmd_lock); in cros_ec_sensors_calibrate()
461 st->calib[i].offset = st->resp->perform_calib.offset[i]; in cros_ec_sensors_calibrate()
597 *data *= st->sign[i]; in cros_ec_sensors_read_data_unsafe()
680 ret = cros_ec_motion_send_host_cmd(st, sizeof(st->resp->data)); in cros_ec_sensors_read_cmd()
855 if (st->range_updated) { in cros_ec_sensors_resume()
[all …]
/openbmc/linux/drivers/iio/adc/
H A Dti-tlc4541.c98 ret = spi_sync(st->spi, &st->scan_single_msg); in tlc4541_trigger_handler()
137 ret = spi_sync(st->spi, &st->scan_single_msg); in tlc4541_read_raw()
162 struct tlc4541_state *st; in tlc4541_probe() local
172 st = iio_priv(indio_dev); in tlc4541_probe()
176 st->spi = spi; in tlc4541_probe()
190 st->scan_single_xfer[0].rx_buf = &st->rx_buf[0]; in tlc4541_probe()
194 st->scan_single_xfer[2].rx_buf = &st->rx_buf[0]; in tlc4541_probe()
201 if (IS_ERR(st->reg)) in tlc4541_probe()
202 return PTR_ERR(st->reg); in tlc4541_probe()
222 regulator_disable(st->reg); in tlc4541_probe()
[all …]
H A Dlpc32xx_adc.c70 mutex_lock(&st->lock); in lpc32xx_read_raw()
73 mutex_unlock(&st->lock); in lpc32xx_read_raw()
85 *val = st->value; in lpc32xx_read_raw()
86 mutex_unlock(&st->lock); in lpc32xx_read_raw()
138 st->value = __raw_readl(LPC32XXAD_VALUE(st->adc_base)) & in lpc32xx_adc_isr()
163 st = iio_priv(iodev); in lpc32xx_adc_probe()
167 if (!st->adc_base) { in lpc32xx_adc_probe()
173 if (IS_ERR(st->clk)) { in lpc32xx_adc_probe()
175 return PTR_ERR(st->clk); in lpc32xx_adc_probe()
190 if (IS_ERR(st->vref)) { in lpc32xx_adc_probe()
[all …]
H A Dmax11410.c188 ret = regmap_bulk_read(st->regmap, reg, &st->scan.data, 3); in max11410_read_reg()
204 return st->avdd; in max11410_get_vrefp()
401 if (st->irq > 0) in max11410_sample()
410 if (st->irq > 0) { in max11410_sample()
629 ret = max11410_read_reg(st, MAX11410_REG_DATA0, &st->scan.data); in max11410_trigger_handler()
718 st->channels = devm_kcalloc(dev, num_ch, sizeof(*st->channels), in max11410_parse_channels()
720 if (!st->channels) in max11410_parse_channels()
941 st->spi_dev = spi; in max11410_probe()
980 st->irq = irqs[0]; in max11410_probe()
1006 if (st->irq > 0) { in max11410_probe()
[all …]
/openbmc/linux/arch/arm/boot/dts/st/
H A Dspear320-evb.dts13 compatible = "st,spear320-evb", "st,spear320";
23 st,pinmux-mode = <4>;
29 st,pins = "i2c0_grp";
30 st,function = "i2c0";
33 st,pins = "mii0_grp";
34 st,function = "mii0";
37 st,pins = "ssp0_grp";
38 st,function = "ssp0";
49 st,pins = "i2s_grp";
50 st,function = "i2s";
[all …]
H A Dspear310-evb.dts13 compatible = "st,spear310-evb", "st,spear310";
34 st,function = "gpio0";
37 st,pins = "i2c0_grp";
38 st,function = "i2c0";
41 st,pins = "mii0_grp";
42 st,function = "mii0";
45 st,pins = "ssp0_grp";
46 st,function = "ssp0";
54 st,function = "emi";
57 st,pins = "fsmc_grp";
[all …]
H A Dspear320-hmi.dts13 compatible = "st,spear320-hmi", "st,spear320";
23 st,pinmux-mode = <4>;
29 st,pins = "i2c0_grp";
30 st,function = "i2c0";
33 st,pins = "ssp0_grp";
34 st,function = "ssp0";
41 st,pins = "clcd_grp";
42 st,function = "clcd";
53 st,pins = "i2s_grp";
54 st,function = "i2s";
[all …]
H A Dspear1340-evb.dts13 compatible = "st,spear1340-evb", "st,spear1340";
33 st,function = "fsmc";
36 st,pins = "uart0_grp";
40 st,pins = "i2c0_grp";
41 st,function = "i2c0";
44 st,pins = "i2c1_grp";
45 st,function = "i2c1";
60 st,pins = "smi_grp";
61 st,function = "smi";
65 st,function = "i2s";
[all …]
/openbmc/linux/fs/
H A Dstatfs.c74 struct kstatfs st; in vfs_get_fsid() local
81 *fsid = st.f_fsid; in vfs_get_fsid()
131 memcpy(&buf, st, sizeof(*st)); in do_statfs_native()
135 if ((st->f_blocks | st->f_bfree | st->f_bavail | in do_statfs_native()
136 st->f_bsize | st->f_frsize) & in do_statfs_native()
151 buf.f_type = st->f_type; in do_statfs_native()
172 memcpy(&buf, st, sizeof(*st)); in do_statfs64()
194 struct kstatfs st; in SYSCALL_DEFINE2() local
203 struct kstatfs st; in SYSCALL_DEFINE3() local
215 struct kstatfs st; in SYSCALL_DEFINE2() local
[all …]
/openbmc/linux/drivers/iio/dac/
H A Dad5064.c197 return st->write(st, cmd, addr, val); in ad5064_write()
252 mutex_lock(&st->lock); in ad5064_set_powerdown_mode()
295 mutex_lock(&st->lock); in ad5064_write_dac_powerdown()
353 mutex_lock(&st->lock); in ad5064_write_raw()
780 return st->chip_info->shared_vref ? 1 : st->chip_info->num_channels; in ad5064_num_vref()
818 st->vref_reg[i].supply = ad5064_vref_name(st, i); in ad5064_request_vref()
850 regulator_bulk_disable(ad5064_num_vref(st), st->vref_reg); in ad5064_bulk_reg_disable()
870 st->dev = dev; in ad5064_probe()
871 st->write = write; in ad5064_probe()
878 ret = regulator_bulk_enable(ad5064_num_vref(st), st->vref_reg); in ad5064_probe()
[all …]
H A Dad5686.c109 val = ((st->pwr_down_mask & st->pwr_down_mode) << shift); in ad5686_write_dac_powerdown()
113 ret = st->write(st, AD5686_CMD_POWERDOWN_DAC, in ad5686_write_dac_powerdown()
130 mutex_lock(&st->lock); in ad5686_read_raw()
131 ret = st->read(st, chan->address); in ad5686_read_raw()
139 *val = st->vref_mv; in ad5686_read_raw()
161 ret = st->write(st, in ad5686_write_raw()
468 st->dev = dev; in ad5686_probe()
469 st->write = write; in ad5686_probe()
470 st->read = read; in ad5686_probe()
490 st->vref_mv = st->chip_info->int_vref_mv; in ad5686_probe()
[all …]
H A Dad5421.c141 return spi_write(st->spi, &st->data[0].d8[1], 3); in ad5421_write_unlocked()
150 mutex_lock(&st->lock); in ad5421_write()
152 mutex_unlock(&st->lock); in ad5421_write()
172 mutex_lock(&st->lock); in ad5421_read()
180 mutex_unlock(&st->lock); in ad5421_read()
191 mutex_lock(&st->lock); in ad5421_update_ctrl()
193 st->ctrl &= ~clr; in ad5421_update_ctrl()
194 st->ctrl |= set; in ad5421_update_ctrl()
406 mutex_lock(&st->lock); in ad5421_write_event_config()
488 st->spi = spi; in ad5421_probe()
[all …]
H A Dad5446.c121 mutex_lock(&st->lock); in ad5446_write_dac_powerdown()
124 if (st->pwr_down) { in ad5446_write_dac_powerdown()
128 val = st->cached_val; in ad5446_write_dac_powerdown()
131 ret = st->chip_info->write(st, val); in ad5446_write_dac_powerdown()
184 *val = st->vref_mv; in ad5446_read_raw()
208 if (!st->pwr_down) in ad5446_write_raw()
209 ret = st->chip_info->write(st, val); in ad5446_write_raw()
254 st->reg = reg; in ad5446_probe()
255 st->dev = dev; in ad5446_probe()
268 st->vref_mv = st->chip_info->int_vref_mv; in ad5446_probe()
[all …]
/openbmc/linux/drivers/iio/common/hid-sensors/
H A Dhid-sensor-trigger.c94 atomic_inc(&st->data_ready); in _hid_sensor_power_state()
97 st->power_state.report_id, in _hid_sensor_power_state()
98 st->power_state.index, in _hid_sensor_power_state()
101 st->report_state.report_id, in _hid_sensor_power_state()
102 st->report_state.index, in _hid_sensor_power_state()
115 st->power_state.report_id, in _hid_sensor_power_state()
116 st->power_state.index, in _hid_sensor_power_state()
120 st->report_state.index, in _hid_sensor_power_state()
126 sensor_hub_set_feature(st->hsdev, st->power_state.report_id, in _hid_sensor_power_state()
133 sensor_hub_set_feature(st->hsdev, st->report_state.report_id, in _hid_sensor_power_state()
[all …]
/openbmc/linux/arch/s390/mm/
H A Ddump_pagetables.c126 if (!st->check_wx) in note_prot_wx()
144 st->wx_pages += (addr - st->start_address) / PAGE_SIZE; in note_prot_wx()
154 struct pg_state *st; in note_page() local
159 m = st->seq; in note_page()
169 if (st->level == -1) { in note_page()
173 st->level = level; in note_page()
174 } else if (prot != st->current_prot || level != st->level || in note_page()
186 print_prot(m, st->current_prot, st->level); in note_page()
188 st->marker++; in note_page()
193 st->level = level; in note_page()
[all …]
/openbmc/linux/drivers/iio/imu/
H A Dadis16475.c321 scaled_rate = 2100000 / st->clk_freq * st->clk_freq; in adis16475_set_freq()
1004 if (st->lsb_flag && !st->burst32) { in adis16475_burst32_check()
1012 st->burst32 = true; in adis16475_burst32_check()
1023 } else if (!st->lsb_flag && st->burst32) { in adis16475_burst32_check()
1031 st->burst32 = false; in adis16475_burst32_check()
1082 if (st->burst32) { in adis16475_trigger_handler()
1095 if (st->lsb_flag && !st->info->has_burst32) { in adis16475_trigger_handler()
1133 st->clk_freq = st->info->int_clk * 1000; in adis16475_config_sync_mode()
1141 st->info->name); in adis16475_config_sync_mode()
1263 if (!st->info) in adis16475_probe()
[all …]
H A Dadis16480.c341 adis_dev_lock(&st->adis); in adis16480_set_freq()
364 scaled_rate = st->chip_info->int_clk / st->clk_freq * st->clk_freq; in adis16480_set_freq()
409 adis_dev_lock(&st->adis); in adis16480_get_freq()
620 adis_dev_lock(&st->adis); in adis16480_set_filter_freq()
1368 if (st->ext_clk) { in adis16480_get_ext_clocks()
1377 if (st->ext_clk) { in adis16480_get_ext_clocks()
1404 struct adis16480 *st; in adis16480_probe() local
1444 if (st->ext_clk) { in adis16480_probe()
1453 st->clk_freq = clk_get_rate(st->ext_clk); in adis16480_probe()
1464 sync_scale = st->chip_info->int_clk / st->clk_freq; in adis16480_probe()
[all …]
/openbmc/linux/drivers/iio/resolver/
H A Dad2s1200.c74 mutex_lock(&st->lock); in ad2s1200_read_raw()
82 ret = spi_read(st->sdev, &st->rx, 2); in ad2s1200_read_raw()
84 mutex_unlock(&st->lock); in ad2s1200_read_raw()
102 mutex_unlock(&st->lock); in ad2s1200_read_raw()
143 st = iio_priv(indio_dev); in ad2s1200_probe()
144 mutex_init(&st->lock); in ad2s1200_probe()
145 st->sdev = spi; in ad2s1200_probe()
148 if (IS_ERR(st->sample)) { in ad2s1200_probe()
150 PTR_ERR(st->sample)); in ad2s1200_probe()
155 if (IS_ERR(st->rdvel)) { in ad2s1200_probe()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Dst,stmpe.yaml23 - st,stmpe601
24 - st,stmpe801
25 - st,stmpe811
26 - st,stmpe1600
27 - st,stmpe1601
28 - st,stmpe2401
29 - st,stmpe2403
51 st,sample-time:
64 st,mod-12b:
69 st,ref-sel:
[all …]
/openbmc/linux/drivers/iio/pressure/
H A Dms5611_i2c.c23 static int ms5611_i2c_reset(struct ms5611_state *st) in ms5611_i2c_reset() argument
33 ret = i2c_smbus_read_word_swapped(st->client, in ms5611_i2c_read_prom_word()
62 const struct ms5611_osr *osr = st->temp_osr; in ms5611_i2c_read_adc_temp_and_pressure()
69 ret = ms5611_i2c_read_adc(st, temp); in ms5611_i2c_read_adc_temp_and_pressure()
73 osr = st->pressure_osr; in ms5611_i2c_read_adc_temp_and_pressure()
79 return ms5611_i2c_read_adc(st, pressure); in ms5611_i2c_read_adc_temp_and_pressure()
85 struct ms5611_state *st; in ms5611_i2c_probe() local
98 st = iio_priv(indio_dev); in ms5611_i2c_probe()
100 st->reset = ms5611_i2c_reset; in ms5611_i2c_probe()
101 st->read_prom_word = ms5611_i2c_read_prom_word; in ms5611_i2c_probe()
[all …]
H A Dms5611_spi.c18 static int ms5611_spi_reset(struct ms5611_state *st) in ms5611_spi_reset() argument
44 ret = spi_write_then_read(st->client, buf, 1, buf, 3); in ms5611_spi_read_adc()
57 const struct ms5611_osr *osr = st->temp_osr; in ms5611_spi_read_adc_temp_and_pressure()
68 ret = ms5611_spi_read_adc(st, temp); in ms5611_spi_read_adc_temp_and_pressure()
72 osr = st->pressure_osr; in ms5611_spi_read_adc_temp_and_pressure()
78 return ms5611_spi_read_adc(st, pressure); in ms5611_spi_read_adc_temp_and_pressure()
84 struct ms5611_state *st; in ms5611_spi_probe() local
100 st = iio_priv(indio_dev); in ms5611_spi_probe()
101 st->reset = ms5611_spi_reset; in ms5611_spi_probe()
102 st->read_prom_word = ms5611_spi_read_prom_word; in ms5611_spi_probe()
[all …]
/openbmc/linux/drivers/iio/light/
H A Dcros_ec_light_prox.c49 mutex_lock(&st->core.cmd_lock); in cros_ec_light_prox_read()
90 st->core.calib[0].offset = in cros_ec_light_prox_read()
93 *val = st->core.calib[idx].offset; in cros_ec_light_prox_read()
120 mutex_unlock(&st->core.cmd_lock); in cros_ec_light_prox_read()
133 mutex_lock(&st->core.cmd_lock); in cros_ec_light_prox_write()
137 st->core.calib[idx].offset = val; in cros_ec_light_prox_write()
142 st->core.calib[0].offset; in cros_ec_light_prox_write()
143 st->core.param.sensor_offset.temp = in cros_ec_light_prox_write()
150 st->core.param.sensor_range.data = st->core.curr_range; in cros_ec_light_prox_write()
153 st->core.range_updated = true; in cros_ec_light_prox_write()
[all …]
/openbmc/linux/arch/arm/boot/dts/ti/omap/
H A Domap3-overo-common-peripherals.dtsi55 compatible = "st,lis33de", "st,lis3lv02d";
60 st,click-single-x;
61 st,click-single-y;
66 st,irq1-click;
67 st,irq2-click;
68 st,wakeup-x-lo;
69 st,wakeup-x-hi;
70 st,wakeup-y-lo;
71 st,wakeup-y-hi;
72 st,wakeup-z-lo;
[all …]
/openbmc/linux/drivers/media/usb/dvb-usb/
H A DcinergyT2-core.c43 st->data[1] = enable ? 1 : 0; in cinergyt2_streaming_ctrl()
45 ret = dvb_usb_generic_rw(d, st->data, 2, st->data, 64, 0); in cinergyt2_streaming_ctrl()
58 st->data[1] = enable ? 0 : 1; in cinergyt2_power_ctrl()
60 ret = dvb_usb_generic_rw(d, st->data, 2, st->data, 3, 0); in cinergyt2_power_ctrl()
77 ret = dvb_usb_generic_rw(d, st->data, 1, st->data, 3, 0); in cinergyt2_frontend_attach()
152 ret = dvb_usb_generic_rw(d, st->data, 1, st->data, 5, 0); in cinergyt2_rc_query()
156 if (st->data[4] == 0xff) { in cinergyt2_rc_query()
158 st->rc_counter++; in cinergyt2_rc_query()
175 st->data[2] = ~st->data[1]; in cinergyt2_rc_query()
177 if (st->data[0] != 0) { in cinergyt2_rc_query()
[all …]
/openbmc/linux/drivers/video/backlight/
H A Dlms283gf05.c130 if (st->reset) in lms283gf05_power_set()
135 if (st->reset) in lms283gf05_power_set()
149 struct lms283gf05_state *st; in lms283gf05_probe() local
154 if (st == NULL) in lms283gf05_probe()
158 if (IS_ERR(st->reset)) in lms283gf05_probe()
159 return PTR_ERR(st->reset); in lms283gf05_probe()
167 st->spi = spi; in lms283gf05_probe()
168 st->ld = ld; in lms283gf05_probe()
170 spi_set_drvdata(spi, st); in lms283gf05_probe()
173 if (st->reset) in lms283gf05_probe()
[all …]

12345678910>>...77