Home
last modified time | relevance | path

Searched refs:st (Results 101 – 125 of 1907) sorted by relevance

12345678910>>...77

/openbmc/linux/drivers/iio/adc/
H A Dad7476.c96 ad7091_convst(st); in ad7476_trigger_handler()
98 b_sent = spi_sync(st->spi, &st->msg); in ad7476_trigger_handler()
113 spi_read(st->spi, st->data, 1); in ad7091_reset()
120 ad7091_convst(st); in ad7476_scan_direct()
122 ret = spi_sync(st->spi, &st->msg); in ad7476_scan_direct()
153 if (st->ref_reg) { in ad7476_read_raw()
315 st->chip_info = in ad7476_probe()
382 st->spi = spi; in ad7476_probe()
394 st->xfer.rx_buf = &st->data; in ad7476_probe()
398 spi_message_add_tail(&st->xfer, &st->msg); in ad7476_probe()
[all …]
H A Dti-ads8688.c196 return spi_write(st->spi, &st->data[0].d8[1], 3); in ads8688_prog_write()
208 return spi_write(st->spi, &st->data[0].d8[0], 4); in ads8688_reset()
252 mutex_lock(&st->lock); in ads8688_read_raw()
262 scale_mv = st->vref_mv; in ads8688_read_raw()
274 mutex_unlock(&st->lock); in ads8688_read_raw()
298 mutex_lock(&st->lock); in ads8688_write_raw()
427 if (!IS_ERR(st->reg)) { in ads8688_probe()
448 st->spi = spi; in ads8688_probe()
458 mutex_init(&st->lock); in ads8688_probe()
476 if (!IS_ERR(st->reg)) in ads8688_probe()
[all …]
H A Dmax1027.c284 if (st->spi->irq) { in max1027_wait_eoc()
310 return spi_write(st->spi, &st->reg, 1); in max1027_configure_chans_and_start()
329 return spi_write(st->spi, &st->reg, 1); in max1027_enable_trigger()
348 ret = spi_write(st->spi, &st->reg, 1); in max1027_read_single_value()
470 ret = spi_read(st->spi, st->buffer, scanned_chans * 2); in max1027_read_scan()
554 st->spi = spi; in max1027_probe()
570 if (!st->buffer) in max1027_probe()
587 if (!st->trig) { in max1027_probe()
597 st->trig); in max1027_probe()
615 ret = spi_write(st->spi, &st->reg, 1); in max1027_probe()
[all …]
H A Dad7793.c189 return ad_sd_write_reg(&st->sd, AD7793_REG_CONF, 2, st->conf); in ad7793_set_channel()
200 return ad_sd_write_reg(&st->sd, AD7793_REG_MODE, 2, st->mode); in ad7793_set_mode()
288 st->conf = 0; in ad7793_setup()
419 *val = st-> in ad7793_read_raw()
421 *val2 = st-> in ad7793_read_raw()
458 *val = st->chip_info in ad7793_read_raw()
485 tmp = st->conf; in ad7793_write_raw()
493 sizeof(st->conf), st->conf); in ad7793_write_raw()
515 ad_sd_write_reg(&st->sd, AD7793_REG_MODE, sizeof(st->mode), in ad7793_write_raw()
516 st->mode); in ad7793_write_raw()
[all …]
H A Dad7780.c122 *val = voltage_uv * st->gain; in ad7780_read_raw()
124 st->int_vref_mv = voltage_uv; in ad7780_read_raw()
130 *val = st->odr; in ad7780_read_raw()
162 st->gain = gain; in ad7780_write_raw()
285 if (IS_ERR(st->gain_gpio)) { in ad7780_init_gpios()
310 struct ad7780_state *st; in ad7780_probe() local
318 st = iio_priv(indio_dev); in ad7780_probe()
319 st->gain = 1; in ad7780_probe()
323 st->chip_info = in ad7780_probe()
337 if (IS_ERR(st->reg)) in ad7780_probe()
[all …]
/openbmc/linux/drivers/input/keyboard/
H A Dadc-keys.c42 value = st->keyup_voltage; in adc_keys_poll()
56 if (st->last_key && st->last_key != keycode) in adc_keys_poll()
63 st->last_key = keycode; in adc_keys_poll()
73 if (st->num_keys == 0) { in adc_keys_load_keymap()
102 st->map = map; in adc_keys_load_keymap()
109 struct adc_keys_state *st; in adc_keys_probe() local
115 st = devm_kzalloc(dev, sizeof(*st), GFP_KERNEL); in adc_keys_probe()
116 if (!st) in adc_keys_probe()
120 if (IS_ERR(st->channel)) in adc_keys_probe()
123 if (!st->channel->indio_dev) in adc_keys_probe()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/iio/imu/
H A Dst,lsm6dsx.yaml19 - st,lsm6ds3
20 - st,lsm6ds3h
21 - st,lsm6dsl
22 - st,lsm6dsm
24 - st,lsm6dso
27 - st,lsm6dsr
31 - st,lsm6ds0
33 - st,lsm6dst
35 - st,lsm6dsv
68 st,drdy-int-pin:
[all …]
/openbmc/linux/drivers/media/usb/dvb-usb/
H A Ddib0700_core.c37 *hwversion = (st->buf[0] << 24) | (st->buf[1] << 16) | in dib0700_get_version()
38 (st->buf[2] << 8) | st->buf[3]; in dib0700_get_version()
40 *romversion = (st->buf[4] << 24) | (st->buf[5] << 16) | in dib0700_get_version()
41 (st->buf[6] << 8) | st->buf[7]; in dib0700_get_version()
43 *ramversion = (st->buf[8] << 24) | (st->buf[9] << 16) | in dib0700_get_version()
44 (st->buf[10] << 8) | st->buf[11]; in dib0700_get_version()
46 *fwtype = (st->buf[12] << 24) | (st->buf[13] << 16) | in dib0700_get_version()
47 (st->buf[14] << 8) | st->buf[15]; in dib0700_get_version()
457 (st->buf[2] << 8) | (st->buf[3]), (st->buf[4] << 8) | in dib0700_set_i2c_speed()
458 st->buf[5], (st->buf[6] << 8) | st->buf[7], scl_kHz); in dib0700_set_i2c_speed()
[all …]
/openbmc/linux/drivers/iio/amplifiers/
H A Dada4250.c91 if (st->bias == 0 || st->bias == 3) in ada4250_set_offset_uv()
107 if (st->gain == 0) in ada4250_set_offset_uv()
138 mutex_lock(&st->lock); in ada4250_set_offset_uv()
154 st->offset_uv *= (-1); in ada4250_set_offset_uv()
182 *val = st->offset_uv; in ada4250_read_raw()
217 st->gain = ilog2(val); in ada4250_write_raw()
229 st->bias = val; in ada4250_write_raw()
310 if (IS_ERR(st->reg)) in ada4250_init()
360 st->regmap = regmap; in ada4250_probe()
361 st->spi = spi; in ada4250_probe()
[all …]
/openbmc/linux/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_gyro.c110 mutex_lock(&st->lock); in inv_icm42600_gyro_update_scan_mode()
131 ret = inv_icm42600_buffer_set_fifo_en(st, fifo_en | st->fifo.en); in inv_icm42600_gyro_update_scan_mode()
134 mutex_unlock(&st->lock); in inv_icm42600_gyro_update_scan_mode()
173 mutex_lock(&st->lock); in inv_icm42600_gyro_read_sensor()
230 idx = st->conf.gyro.fs; in inv_icm42600_gyro_read_scale()
256 mutex_lock(&st->lock); in inv_icm42600_gyro_write_scale()
340 mutex_lock(&st->lock); in inv_icm42600_gyro_write_odr()
401 mutex_lock(&st->lock); in inv_icm42600_gyro_read_offset()
403 ret = regmap_bulk_read(st->map, reg, st->buffer, sizeof(data)); in inv_icm42600_gyro_read_offset()
505 mutex_lock(&st->lock); in inv_icm42600_gyro_write_offset()
[all …]
H A Dinv_icm42600_accel.c110 mutex_lock(&st->lock); in inv_icm42600_accel_update_scan_mode()
131 ret = inv_icm42600_buffer_set_fifo_en(st, fifo_en | st->fifo.en); in inv_icm42600_accel_update_scan_mode()
134 mutex_unlock(&st->lock); in inv_icm42600_accel_update_scan_mode()
173 mutex_lock(&st->lock); in inv_icm42600_accel_read_sensor()
244 mutex_lock(&st->lock); in inv_icm42600_accel_write_scale()
328 mutex_lock(&st->lock); in inv_icm42600_accel_write_odr()
389 mutex_lock(&st->lock); in inv_icm42600_accel_read_offset()
391 ret = regmap_bulk_read(st->map, reg, st->buffer, sizeof(data)); in inv_icm42600_accel_read_offset()
494 mutex_lock(&st->lock); in inv_icm42600_accel_write_offset()
529 ret = regmap_bulk_write(st->map, reg, st->buffer, 2); in inv_icm42600_accel_write_offset()
[all …]
/openbmc/linux/drivers/iio/gyro/
H A Dadxrs290.c121 mutex_lock(&st->lock); in adxrs290_get_rate_data()
142 mutex_lock(&st->lock); in adxrs290_get_temp_data()
164 mutex_lock(&st->lock); in adxrs290_get_3db_freq()
220 if (st->mode == mode) in adxrs290_set_mode()
250 st->mode = mode; in adxrs290_set_mode()
514 ret = spi_write_then_read(st->spi, &tx, sizeof(tx), st->buffer.channels, in adxrs290_trigger_handler()
586 if (!st->spi->irq) { in adxrs290_probe_trigger()
591 st->dready_trig = devm_iio_trigger_alloc(&st->spi->dev, "%s-dev%d", in adxrs290_probe_trigger()
600 ret = devm_request_irq(&st->spi->dev, st->spi->irq, in adxrs290_probe_trigger()
607 ret = devm_iio_trigger_register(&st->spi->dev, st->dready_trig); in adxrs290_probe_trigger()
[all …]
/openbmc/linux/tools/perf/util/
H A Dbranch.c31 st->cond_fwd++; in branch_type_count()
33 st->cond_bwd++; in branch_type_count()
37 st->cross_2m++; in branch_type_count()
39 st->cross_4k++; in branch_type_count()
127 if (st->cond_fwd > 0) { in branch_type_stat_display()
133 if (st->cond_bwd > 0) { in branch_type_stat_display()
139 if (st->cross_4k > 0) { in branch_type_stat_display()
188 if (st->cond_fwd > 0) in branch_type_str()
191 if (st->cond_bwd > 0) in branch_type_str()
207 if (st->cross_4k > 0) in branch_type_str()
[all …]
/openbmc/linux/arch/loongarch/lib/
H A Dmemset.S47 1: st.b a1, a0, 0
72 st.d a1, a0, 0
83 st.d a1, a3, 0
84 st.d a1, a3, 8
98 st.d a1, a3, 0
99 st.d a1, a3, 8
107 st.d a1, a3, 0
108 st.d a1, a3, 8
114 st.d a1, a3, 0
142 st.b a1, a0, 2
[all …]
/openbmc/linux/drivers/iio/dac/
H A Dad5624r_spi.c55 *val = st->vref_mv; in ad5624r_read_raw()
95 return st->pwr_down_mode; in ad5624r_get_powerdown_mode()
103 st->pwr_down_mode = mode; in ad5624r_set_powerdown_mode()
224 struct ad5624r_state *st; in ad5624r_probe() local
233 if (!IS_ERR(st->reg)) { in ad5624r_probe()
248 if (!IS_ERR(st->reg)) { in ad5624r_probe()
262 st->chip_info = in ad5624r_probe()
268 st->vref_mv = st->chip_info->int_vref_mv; in ad5624r_probe()
270 st->us = spi; in ad5624r_probe()
290 if (!IS_ERR(st->reg)) in ad5624r_probe()
[all …]
H A Dad5360.c203 return spi_write(st->spi, &st->data[0].d8[1], 3); in ad5360_write_unlocked()
212 mutex_lock(&st->lock); in ad5360_write()
235 mutex_lock(&st->lock); in ad5360_read()
269 st->ctrl |= set; in ad5360_update_ctrl()
270 st->ctrl &= ~clr; in ad5360_update_ctrl()
477 st->spi = spi; in ad5360_probe()
495 ret = devm_regulator_bulk_get(&st->spi->dev, st->chip_info->num_vrefs, in ad5360_probe()
496 st->vref_reg); in ad5360_probe()
502 ret = regulator_bulk_enable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe()
517 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe()
[all …]
H A Dltc2688.c106 .tx_buf = st->tx_data, in ltc2688_spi_read()
112 .rx_buf = st->rx_data, in ltc2688_spi_read()
213 mutex_lock(&st->lock); in ltc2688_dac_code_write()
231 mutex_unlock(&st->lock); in ltc2688_dac_code_write()
241 mutex_lock(&st->lock); in ltc2688_dac_code_read()
249 mutex_unlock(&st->lock); in ltc2688_dac_code_read()
364 mutex_lock(&st->lock); in ltc2688_dither_toggle_set()
890 if (!st->iio_chan) in ltc2688_setup()
972 st->spi = spi; in ltc2688_probe()
978 st->regmap = devm_regmap_init(dev, &ltc2688_regmap_bus, st, in ltc2688_probe()
[all …]
H A Dad5504.c73 return spi_write(st->spi, &st->data[0], 2); in ad5504_spi_write()
80 .tx_buf = &st->data[0], in ad5504_spi_read()
81 .rx_buf = &st->data[1], in ad5504_spi_read()
112 *val = st->vref_mv; in ad5504_read_raw()
148 return st->pwr_down_mode; in ad5504_get_powerdown_mode()
156 st->pwr_down_mode = mode; in ad5504_set_powerdown_mode()
275 struct ad5504_state *st; in ad5504_probe() local
296 st = iio_priv(indio_dev); in ad5504_probe()
304 st->reg = reg; in ad5504_probe()
305 st->spi = spi; in ad5504_probe()
[all …]
H A Dad5764.c130 mutex_lock(&st->lock); in ad5764_write()
133 ret = spi_write(st->spi, &st->data[0].d8[1], 3); in ad5764_write()
134 mutex_unlock(&st->lock); in ad5764_write()
155 mutex_lock(&st->lock); in ad5764_read()
163 mutex_unlock(&st->lock); in ad5764_read()
289 st->spi = spi; in ad5764_probe()
298 mutex_init(&st->lock); in ad5764_probe()
305 ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe()
313 st->vref_reg); in ad5764_probe()
331 regulator_bulk_disable(ARRAY_SIZE(st->vref_reg), st->vref_reg); in ad5764_probe()
[all …]
/openbmc/linux/drivers/iio/pressure/
H A Ddlhl60d.c71 dev_err(&st->client->dev, in dlh_cmd_start_single()
81 ret = i2c_master_recv(st->client, st->rx_buf, DLH_NUM_READ_BYTES); in dlh_cmd_read_data()
83 dev_err(&st->client->dev, in dlh_cmd_read_data()
89 dev_err(&st->client->dev, in dlh_cmd_read_data()
101 if (st->use_interrupt) in dlh_start_capture_and_read()
108 if (st->use_interrupt) { in dlh_start_capture_and_read()
112 dev_err(&st->client->dev, in dlh_start_capture_and_read()
280 complete(&st->completion); in dlh_interrupt()
288 struct dlh_state *st; in dlh_probe() local
307 st = iio_priv(indio_dev); in dlh_probe()
[all …]
H A Dicp10100.c215 dev_dbg(&st->client->dev, "cal[%d] = %d\n", i, st->cal[i]); in icp10100_read_cal_otp()
257 mutex_lock(&st->lock); in icp10100_get_measures()
260 mutex_unlock(&st->lock); in icp10100_get_measures()
409 mutex_lock(&st->lock); in icp10100_read_raw()
410 *val = 1 << st->mode; in icp10100_read_raw()
456 st->mode = mode; in icp10100_write_raw()
556 mutex_init(&st->lock); in icp10100_probe()
557 st->client = client; in icp10100_probe()
561 if (IS_ERR(st->vdd)) in icp10100_probe()
602 mutex_lock(&st->lock); in icp10100_suspend()
[all …]
H A Dms5611_core.c88 ret = st->read_prom_word(st, i, &st->prom[i]); in ms5611_read_prom()
110 ret = st->read_adc_temp_and_pressure(st, temp, pressure); in ms5611_read_temp_and_pressure()
117 return st->compensate_temp_and_pressure(st, temp, pressure); in ms5611_read_temp_and_pressure()
127 off = ((s64)st->prom[2] << 16) + ((st->prom[4] * dt) >> 7); in ms5611_temp_and_pressure_compensate()
128 sens = ((s64)st->prom[1] << 15) + ((st->prom[3] * dt) >> 8); in ms5611_temp_and_pressure_compensate()
163 off = ((s64)st->prom[2] << 17) + ((st->prom[4] * dt) >> 6); in ms5607_temp_and_pressure_compensate()
164 sens = ((s64)st->prom[1] << 16) + ((st->prom[3] * dt) >> 7); in ms5607_temp_and_pressure_compensate()
197 ret = st->reset(st); in ms5611_reset()
332 st->temp_osr = osr; in ms5611_write_raw()
421 st->temp_osr = in ms5611_probe()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-tle62x0.c45 if (st->nr_gpio == 16) { in tle62x0_write()
54 return spi_write(st->us, buff, (st->nr_gpio == 16) ? 3 : 2); in tle62x0_write()
62 .rx_buf = st->rx_buff, in tle62x0_read()
106 mutex_lock(&st->lock); in tle62x0_status_show()
140 mutex_lock(&st->lock); in tle62x0_gpio_show()
162 mutex_lock(&st->lock); in tle62x0_gpio_store()
169 tle62x0_write(st); in tle62x0_gpio_store()
253 if (st == NULL) in tle62x0_probe()
256 st->us = spi; in tle62x0_probe()
287 kfree(st); in tle62x0_probe()
[all …]
/openbmc/linux/drivers/iio/dummy/
H A Diio_simple_dummy.c288 mutex_lock(&st->lock); in iio_dummy_read_raw()
295 *val = st->dac_val; in iio_dummy_read_raw()
319 *val = st->steps; in iio_dummy_read_raw()
394 *val = st->height; in iio_dummy_read_raw()
441 st->dac_val = val; in iio_dummy_write_raw()
451 st->steps = val; in iio_dummy_write_raw()
504 st->height = val; in iio_dummy_write_raw()
540 st->dac_val = 0; in iio_dummy_init_device()
544 st->accel_val = 34; in iio_dummy_init_device()
547 st->steps = 47; in iio_dummy_init_device()
[all …]
/openbmc/linux/kernel/
H A Dcpu.c740 st->state--; in cpuhp_reset_state()
753 if (!st->single && st->state == st->target) in __cpuhp_kick_ap()
764 wait_for_ap_thread(st, st->bringup); in __cpuhp_kick_ap()
841 return cpuhp_kick_ap(cpu, st, st->target); in cpuhp_bringup_ap()
885 return cpuhp_kick_ap(cpu, st, st->target); in bringup_cpu()
1076 st->should_run = cpuhp_next_state(bringup, &state, st, st->target); in cpuhp_thread_fun()
1085 st->result = cpuhp_invoke_callback(cpu, state, bringup, st->node, &st->last); in cpuhp_thread_fun()
1093 st->result = cpuhp_invoke_callback(cpu, state, bringup, st->node, &st->last); in cpuhp_thread_fun()
1151 if ((ret = st->result) && st->last) { in cpuhp_invoke_ap_callback()
1162 st->node = st->last = NULL; in cpuhp_invoke_ap_callback()
[all …]

12345678910>>...77