/linux-6.3-rc2/crypto/ |
A D | sha3_generic.c | 52 bc[0] = st[0] ^ st[5] ^ st[10] ^ st[15] ^ st[20]; in keccakf_round() 53 bc[1] = st[1] ^ st[6] ^ st[11] ^ st[16] ^ st[21]; in keccakf_round() 54 bc[2] = st[2] ^ st[7] ^ st[12] ^ st[17] ^ st[22]; in keccakf_round() 55 bc[3] = st[3] ^ st[8] ^ st[13] ^ st[18] ^ st[23]; in keccakf_round() 56 bc[4] = st[4] ^ st[9] ^ st[14] ^ st[19] ^ st[24]; in keccakf_round() 94 bc[ 0] = ~st[ 1] & st[ 2]; in keccakf_round() 95 bc[ 1] = ~st[ 2] & st[ 3]; in keccakf_round() 96 bc[ 2] = ~st[ 3] & st[ 4]; in keccakf_round() 97 bc[ 3] = ~st[ 4] & st[ 0]; in keccakf_round() 98 bc[ 4] = ~st[ 0] & st[ 1]; in keccakf_round() [all …]
|
/linux-6.3-rc2/drivers/iio/dac/ |
A D | ad5592r-base.c | 34 ret = st->ops->gpio_read(st, &val); in ad5592r_gpio_get() 55 st->ops->reg_write(st, AD5592R_REG_GPIO_SET, st->gpio_val); in ad5592r_gpio_set() 70 ret = st->ops->reg_write(st, AD5592R_REG_GPIO_OUT_EN, st->gpio_out); in ad5592r_gpio_direction_input() 74 ret = st->ops->reg_write(st, AD5592R_REG_GPIO_IN_EN, st->gpio_in); in ad5592r_gpio_direction_input() 98 ret = st->ops->reg_write(st, AD5592R_REG_GPIO_SET, st->gpio_val); in ad5592r_gpio_direction_output() 102 ret = st->ops->reg_write(st, AD5592R_REG_GPIO_OUT_EN, st->gpio_out); in ad5592r_gpio_direction_output() 106 ret = st->ops->reg_write(st, AD5592R_REG_GPIO_IN_EN, st->gpio_in); in ad5592r_gpio_direction_output() 132 st->gpiochip.label = dev_name(st->dev); in ad5592r_gpio_init() 135 st->gpiochip.parent = st->dev; in ad5592r_gpio_init() 146 return gpiochip_add_data(&st->gpiochip, st); in ad5592r_gpio_init() [all …]
|
A D | ad5758.c | 220 return spi_write(st->spi, &st->d32[0], sizeof(st->d32[0])); in ad5758_spi_reg_write() 479 if (st->gpio_reset) { in ad5758_reset() 672 return spi_write(st->spi, &st->d32[0], 4); in ad5758_crc_disable() 701 st->dc_dc_ilim = 0; in ad5758_parse_dt() 760 st->slew_time = 0; in ad5758_parse_dt() 772 st->gpio_reset = devm_gpiod_get_optional(&st->spi->dev, "reset", in ad5758_init() 807 ret = ad5758_set_dc_dc_ilim(st, st->dc_dc_ilim); in ad5758_init() 812 ret = ad5758_set_dc_dc_conv_mode(st, st->dc_dc_mode); in ad5758_init() 817 ret = ad5758_set_out_range(st, st->out_range.reg); in ad5758_init() 822 if (st->slew_time) { in ad5758_init() [all …]
|
/linux-6.3-rc2/drivers/macintosh/ |
A D | windfarm_pid.c | 51 st->index = (st->index + 1) % hlen; in wf_pid_run() 52 st->samples[st->index] = new_sample; in wf_pid_run() 53 st->errors[st->index] = error; in wf_pid_run() 62 deriv = st->errors[st->index] - in wf_pid_run() 105 st->index = st->tindex = 0; in wf_cpu_pid_run() 107 st->index = (st->index + 1) % hlen; in wf_cpu_pid_run() 108 st->powers[st->index] = new_power; in wf_cpu_pid_run() 109 st->errors[st->index] = error; in wf_cpu_pid_run() 110 st->tindex = (st->tindex + 1) % 2; in wf_cpu_pid_run() 111 st->temps[st->tindex] = new_temp; in wf_cpu_pid_run() [all …]
|
/linux-6.3-rc2/drivers/iio/adc/ |
A D | ad7606.c | 74 ret = st->bops->reg_read(st, reg); in ad7606_reg_access() 80 ret = st->bops->reg_write(st, reg, writeval); in ad7606_reg_access() 104 ret = st->bops->read_block(st->dev, 1, data); in ad7606_read_samples() 117 return st->bops->read_block(st->dev, num, data); in ad7606_read_samples() 192 *val2 = st->scale_avail[st->range[ch]]; in ad7606_read_raw() 266 i = find_closest(val2, st->scale_avail, st->num_scales); in ad7606_write_raw() 289 st->oversampling = st->oversampling_avail[i]; in ad7606_write_raw() 594 st->num_os_ratios = st->chip_info->oversampling_num; in ad7606_probe() 633 st->sw_mode_en = device_property_present(st->dev, in ad7606_probe() 642 memset32(st->range, 2, ARRAY_SIZE(st->range)); in ad7606_probe() [all …]
|
A D | at91-sama5d2_adc.c | 1047 st->touch_st.x_pos = at91_adc_touch_pos(st, st->soc_info.platform->layout->XPOSR); in at91_adc_touch_x_pos() 1230 st->dma_st.rx_buf_sz *= st->dma_st.watermark; in at91_adc_dma_start() 1512 &st->dma_st.rx_buf[st->dma_st.buf_idx], in at91_adc_trigger_handler_dma() 1516 (st->dma_st.rx_buf + st->dma_st.buf_idx), in at91_adc_trigger_handler_dma() 1523 if (st->dma_st.buf_idx >= st->dma_st.rx_buf_sz) in at91_adc_trigger_handler_dma() 1726 st->conversion_value = at91_adc_read_chan(st, st->chan->address); in at91_adc_interrupt() 1799 at91_adc_eoc_dis(st, st->chan->channel); in at91_adc_read_info_raw() 2069 st->dma_st.rx_buf, st->dma_st.rx_dma_buf); in at91_adc_dma_init() 2093 st->dma_st.rx_buf, st->dma_st.rx_dma_buf); in at91_adc_dma_disable() 2175 at91_adc_config_emr(st, st->oversampling_ratio, 0); in at91_adc_hw_init() [all …]
|
A D | at91_adc.c | 276 st->buffer[j] = at91_adc_readl(st, AT91_ADC_CHAN(st, chan->channel)); in at91_adc_trigger_handler() 301 st->last_value = at91_adc_readl(st, AT91_ADC_CHAN(st, st->chnb)); in handle_adc_eoc_trigger() 425 st->ts_prev_absx = at91_adc_readl(st, AT91_ADC_CHAN(st, 3)) in at91_adc_rl_interrupt() 427 st->ts_prev_absx /= at91_adc_readl(st, AT91_ADC_CHAN(st, 2)); in at91_adc_rl_interrupt() 429 st->ts_prev_absy = at91_adc_readl(st, AT91_ADC_CHAN(st, 1)) in at91_adc_rl_interrupt() 431 st->ts_prev_absy /= at91_adc_readl(st, AT91_ADC_CHAN(st, 0)); in at91_adc_rl_interrupt() 1041 st->res = st->caps->high_res_bits; in at91_adc_probe() 1045 st->res = st->caps->low_res_bits; in at91_adc_probe() 1049 st->registers = &st->caps->registers; in at91_adc_probe() 1050 st->num_channels = st->caps->num_channels; in at91_adc_probe() [all …]
|
A D | ad7887.c | 88 st->ring_msg = &st->msg[AD7887_CH0]; in ad7887_ring_preenable() 91 st->ring_msg = &st->msg[AD7887_CH1]; in ad7887_ring_preenable() 93 spi_sync(st->spi, st->ring_msg); in ad7887_ring_preenable() 96 st->ring_msg = &st->msg[AD7887_CH0_CH1]; in ad7887_ring_preenable() 118 b_sent = spi_sync(st->spi, st->ring_msg); in ad7887_trigger_handler() 137 int ret = spi_sync(st->spi, &st->msg[ch]); in ad7887_scan_direct() 286 st->xfer[0].rx_buf = &st->data[0]; in ad7887_probe() 287 st->xfer[0].tx_buf = &st->tx_cmd_buf[0]; in ad7887_probe() 296 st->xfer[1].rx_buf = &st->data[0]; in ad7887_probe() 300 st->xfer[2].rx_buf = &st->data[2]; in ad7887_probe() [all …]
|
A D | ti-ads7950.c | 312 ret = spi_sync(st->spi, &st->ring_msg); in ti_ads7950_trigger_handler() 335 ret = spi_sync(st->spi, &st->scan_single_msg); in ti_ads7950_scan_direct() 419 spi_sync(st->spi, &st->scan_single_msg); in ti_ads7950_set() 440 ret = spi_sync(st->spi, &st->scan_single_msg); in ti_ads7950_get() 449 ret = spi_sync(st->spi, &st->scan_single_msg); in ti_ads7950_get() 485 ret = spi_sync(st->spi, &st->scan_single_msg); in _ti_ads7950_set_direction() 568 st->ring_xfer.tx_buf = &st->tx_buf[0]; in ti_ads7950_probe() 569 st->ring_xfer.rx_buf = &st->rx_buf[0]; in ti_ads7950_probe() 634 st->chip.label = dev_name(&st->spi->dev); in ti_ads7950_probe() 635 st->chip.parent = &st->spi->dev; in ti_ads7950_probe() [all …]
|
A D | ad7298.c | 123 st->ring_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_update_scan_mode() 126 st->ring_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_update_scan_mode() 131 spi_message_add_tail(&st->ring_xfer[0], &st->ring_msg); in ad7298_update_scan_mode() 132 spi_message_add_tail(&st->ring_xfer[1], &st->ring_msg); in ad7298_update_scan_mode() 135 st->ring_xfer[i + 2].rx_buf = &st->rx_buf[i]; in ad7298_update_scan_mode() 153 b_sent = spi_sync(st->spi, &st->ring_msg); in ad7298_trigger_handler() 169 st->tx_buf[0] = cpu_to_be16(AD7298_WRITE | st->ext_ref | in ad7298_scan_direct() 172 ret = spi_sync(st->spi, &st->scan_single_msg); in ad7298_scan_direct() 328 st->scan_single_xfer[0].tx_buf = &st->tx_buf[0]; in ad7298_probe() 331 st->scan_single_xfer[1].tx_buf = &st->tx_buf[1]; in ad7298_probe() [all …]
|
A D | ad4130.c | 443 return spi_write(st->spi, st->reg_write_tx_buf, size + 1); in ad4130_reg_write() 573 ret = spi_sync(st->spi, &st->fifo_msg); in ad4130_push_fifo_data() 1302 ret = irq_set_irq_type(st->spi->irq, st->irq_trigger); in ad4130_buffer_predisable() 1697 st->mclk_sel, st->int_pin_sel); in ad4310_parse_fw() 1727 ret = ad4130_validate_vbias_pins(st, st->vbias_pins, in ad4310_parse_fw() 1944 ret = spi_write(st->spi, st->reset_buf, sizeof(st->reset_buf)); in ad4130_soft_reset() 1973 memset(st->reset_buf, 0xff, sizeof(st->reset_buf)); in ad4130_probe() 1984 st->fifo_xfer[0].tx_buf = st->fifo_tx_buf; in ad4130_probe() 1985 st->fifo_xfer[0].len = sizeof(st->fifo_tx_buf); in ad4130_probe() 1986 st->fifo_xfer[1].rx_buf = st->fifo_rx_buf; in ad4130_probe() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/arm/display/komeda/ |
A D | komeda_private_obj.c | 14 st->affected_inputs = st->active_inputs; in komeda_component_state_reset() 24 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_layer_atomic_duplicate_state() 25 if (!st) in komeda_layer_atomic_duplicate_state() 53 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_layer_obj_add() 95 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_scaler_obj_add() 138 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_compiz_obj_add() 181 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_splitter_obj_add() 224 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_merger_obj_add() 268 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_improc_obj_add() 311 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_timing_ctrlr_obj_add() [all …]
|
/linux-6.3-rc2/drivers/staging/iio/frequency/ |
A D | ad9832.c | 152 return spi_sync(st->spi, &st->freq_msg); in ad9832_write_frequency() 168 return spi_sync(st->spi, &st->phase_msg); in ad9832_write_phase() 203 ret = spi_sync(st->spi, &st->msg); in ad9832_write() 216 ret = spi_sync(st->spi, &st->msg); in ad9832_write() 229 ret = spi_sync(st->spi, &st->msg); in ad9832_write() 240 ret = spi_sync(st->spi, &st->msg); in ad9832_write() 374 st->xfer.tx_buf = &st->data; in ad9832_probe() 378 spi_message_add_tail(&st->xfer, &st->msg); in ad9832_probe() 380 st->freq_xfer[0].tx_buf = &st->freq_data[0]; in ad9832_probe() 383 st->freq_xfer[1].tx_buf = &st->freq_data[1]; in ad9832_probe() [all …]
|
A D | ad9834.c | 128 return spi_sync(st->spi, &st->freq_msg); in ad9834_write_frequency() 138 return spi_sync(st->spi, &st->msg); in ad9834_write_phase() 178 ret = spi_sync(st->spi, &st->msg); in ad9834_write() 186 ret = spi_sync(st->spi, &st->msg); in ad9834_write() 200 ret = spi_sync(st->spi, &st->msg); in ad9834_write() 209 ret = spi_sync(st->spi, &st->msg); in ad9834_write() 271 ret = spi_sync(st->spi, &st->msg); in ad9834_store_wavetype() 464 st->xfer.tx_buf = &st->data; in ad9834_probe() 468 spi_message_add_tail(&st->xfer, &st->msg); in ad9834_probe() 470 st->freq_xfer[0].tx_buf = &st->freq_data[0]; in ad9834_probe() [all …]
|
/linux-6.3-rc2/drivers/iio/accel/ |
A D | sca3000.c | 280 st->tx[1] = val; in sca3000_write_reg() 281 return spi_write(st->us, st->tx, 2); in sca3000_write_reg() 344 st->tx[1] = 0x00; in __sca3000_unlock_reg_lock() 346 st->tx[3] = 0x50; in __sca3000_unlock_reg_lock() 348 st->tx[5] = 0xA0; in __sca3000_unlock_reg_lock() 609 ret = __sca3000_get_base_freq(st, st->info, val); in sca3000_read_raw_samp_freq() 643 ret = __sca3000_get_base_freq(st, st->info, &base_freq); in sca3000_write_raw_samp_freq() 713 return sca3000_write_reg(st, SCA3000_REG_MODE_ADDR, st->rx[0]); in sca3000_write_3db_freq() 834 val = st->rx[0]; in sca3000_read_av_freq() 1459 st->us = spi; in sca3000_probe() [all …]
|
A D | adxl367.c | 298 st->act_threshold = st->act_threshold in adxl367_scale_act_thresholds() 301 st->inact_threshold = st->inact_threshold in adxl367_scale_act_thresholds() 505 adxl367_scale_act_thresholds(st, st->range, range); in adxl367_set_range() 575 st->inact_time_buf, sizeof(st->inact_time_buf)); in _adxl367_set_inact_time_ms() 624 ret = _adxl367_set_act_time_ms(st, st->act_time_ms); in _adxl367_set_odr() 628 ret = _adxl367_set_inact_time_ms(st, st->inact_time_ms); in _adxl367_set_odr() 632 st->odr = odr; in _adxl367_set_odr() 791 st->status_buf, sizeof(st->status_buf)); in adxl367_get_status() 834 ret = st->ops->read_fifo(st->context, st->fifo_buf, fifo_entries); in adxl367_push_fifo_data() 1488 st->dev = dev; in adxl367_probe() [all …]
|
/linux-6.3-rc2/drivers/iio/frequency/ |
A D | adf4377.c | 513 ret = regmap_bulk_read(st->regmap, 0x10, st->buf, sizeof(st->buf)); in adf4377_get_freq() 624 st->n_int = div_u64(freq, st->f_pfd); in adf4377_set_freq() 725 st->clkin_freq = clk_get_rate(st->clkin); in adf4377_init() 753 st->f_pfd = st->clkin_freq / st->ref_div_factor; in adf4377_init() 759 st->f_div_rclk = st->f_pfd; in adf4377_init() 791 st->synth_lock_timeout = DIV_ROUND_UP(st->f_div_rclk, 50000); in adf4377_init() 792 st->vco_alc_timeout = DIV_ROUND_UP(st->f_div_rclk, 20000); in adf4377_init() 793 st->vco_band_div = DIV_ROUND_UP(st->f_div_rclk, 150000 * 16 * (1 << st->dclk_mode)); in adf4377_init() 794 st->adc_clk_div = DIV_ROUND_UP((st->f_div_rclk / 400000 - 2), 4); in adf4377_init() 951 st->spi = spi; in adf4377_probe() [all …]
|
A D | adf4350.c | 79 if ((st->regs_hw[i] != st->regs[i]) || in adf4350_sync_config() 88 st->val = cpu_to_be32(st->regs[i] | i); in adf4350_sync_config() 89 ret = spi_write(st->spi, &st->val, 4); in adf4350_sync_config() 92 st->regs_hw[i] = st->regs[i]; in adf4350_sync_config() 175 st->r1_mod = st->fpfd / chspc; in adf4350_set_freq() 186 st->r0_fract = do_div(tmp, st->r1_mod); in adf4350_set_freq() 192 if (st->r0_fract && st->r1_mod) { in adf4350_set_freq() 193 div_gcd = gcd(st->r1_mod, st->r0_fract); in adf4350_set_freq() 204 freq, st->fpfd, r_cnt, st->r0_int, st->r0_fract, st->r1_mod, in adf4350_set_freq() 323 val = (u64)((st->r0_int * st->r1_mod) + st->r0_fract) * in adf4350_read() [all …]
|
/linux-6.3-rc2/drivers/iio/addac/ |
A D | ad74413r.c | 215 ret = ad74413r_crc_check(st, st->reg_rx_buf); in ad74413r_reg_read() 746 ret = spi_sync(st->spi, &st->adc_samples_msg); in ad74413r_trigger_handler() 1329 st->regmap = devm_regmap_init(st->dev, NULL, st, in ad74413r_probe() 1363 iio_trigger_set_drvdata(st->trig, st); in ad74413r_probe() 1392 st->gpo_gpiochip.label = st->chip_info->name; in ad74413r_probe() 1394 st->gpo_gpiochip.ngpio = st->num_gpo_gpios; in ad74413r_probe() 1395 st->gpo_gpiochip.parent = st->dev; in ad74413r_probe() 1403 ret = devm_gpiochip_add_data(st->dev, &st->gpo_gpiochip, st); in ad74413r_probe() 1410 st->comp_gpiochip.label = st->chip_info->name; in ad74413r_probe() 1413 st->comp_gpiochip.parent = st->dev; in ad74413r_probe() [all …]
|
/linux-6.3-rc2/drivers/iio/imu/inv_icm42600/ |
A D | inv_icm42600_core.c | 300 return inv_icm42600_set_pwr_mgmt0(st, st->conf.gyro.mode, in inv_icm42600_set_temp_conf() 425 st->timestamp.gyro = iio_get_time_ns(st->indio_gyro); in inv_icm42600_irq_timestamp() 426 st->timestamp.accel = iio_get_time_ns(st->indio_accel); in inv_icm42600_irq_timestamp() 591 st = devm_kzalloc(dev, sizeof(*st), GFP_KERNEL); in inv_icm42600_core_probe() 592 if (!st) in inv_icm42600_core_probe() 644 st->indio_gyro = inv_icm42600_gyro_init(st); in inv_icm42600_core_probe() 648 st->indio_accel = inv_icm42600_accel_init(st); in inv_icm42600_core_probe() 681 st->suspended.gyro = st->conf.gyro.mode; in inv_icm42600_suspend() 682 st->suspended.accel = st->conf.accel.mode; in inv_icm42600_suspend() 683 st->suspended.temp = st->conf.temp_en; in inv_icm42600_suspend() [all …]
|
A D | inv_icm42600_buffer.c | 296 if (st->fifo.on) { in inv_icm42600_buffer_postenable() 327 st->fifo.on++; in inv_icm42600_buffer_postenable() 366 st->fifo.on--; in inv_icm42600_buffer_predisable() 399 ret = inv_icm42600_buffer_set_fifo_en(st, st->fifo.en & ~sensor); in inv_icm42600_buffer_postdisable() 417 if (!st->fifo.on) in inv_icm42600_buffer_postdisable() 458 st->fifo.count = 0; in inv_icm42600_buffer_fifo_read() 485 st->fifo.data, st->fifo.count); in inv_icm42600_buffer_fifo_read() 516 st->fifo.nb.gyro, st->timestamp.gyro); in inv_icm42600_buffer_fifo_parse() 526 st->fifo.nb.accel, st->timestamp.accel); in inv_icm42600_buffer_fifo_parse() 556 st->fifo.nb.total, st->fifo.nb.gyro, in inv_icm42600_buffer_hwfifo_flush() [all …]
|
/linux-6.3-rc2/drivers/staging/iio/resolver/ |
A D | ad2s1210.c | 112 st->mode = mode; in ad2s1210_set_mode() 121 st->tx[0] = data; in ad2s1210_config_write() 122 ret = spi_write(st->sdev, st->tx, 1); in ad2s1210_config_write() 154 return st->rx[1]; in ad2s1210_config_read() 163 fcw = (unsigned char)(st->fexcit * (1 << 15) / st->fclkin); in ad2s1210_update_frequency_control_word() 226 st->fclkin = fclkin; in ad2s1210_store_fclkin() 319 st->resolution = in ad2s1210_store_control() 375 st->resolution = in ad2s1210_store_resolution() 489 ret = spi_read(st->sdev, st->rx, 2); in ad2s1210_read_raw() 505 negative = (0xffff >> st->resolution) << st->resolution; in ad2s1210_read_raw() [all …]
|
/linux-6.3-rc2/drivers/iio/imu/inv_mpu6050/ |
A D | inv_mpu_ring.c | 54 st->chip_period = (st->chip_period + delta) / 2; in inv_mpu6050_update_period() 86 ts = st->data_timestamp; in inv_mpu6050_get_timestamp() 87 st->data_timestamp += st->chip_period * INV_MPU6050_FREQ_DIVIDER(st); in inv_mpu6050_get_timestamp() 107 result = regmap_write(st->map, st->reg->int_enable, in inv_reset_fifo() 128 mutex_lock(&st->lock); in inv_mpu6050_read_fifo() 131 result = regmap_read(st->map, st->reg->int_status, &int_status); in inv_mpu6050_read_fifo() 161 result = regmap_bulk_read(st->map, st->reg->fifo_count_h, in inv_mpu6050_read_fifo() 182 result = regmap_noinc_read(st->map, st->reg->fifo_r_w, in inv_mpu6050_read_fifo() 187 if (st->skip_samples) { in inv_mpu6050_read_fifo() 188 st->skip_samples--; in inv_mpu6050_read_fifo() [all …]
|
A D | inv_mpu_trigger.c | 112 ret = regmap_write(st->map, st->reg->user_ctrl, d); in inv_mpu6050_prepare_fifo() 125 ret = regmap_write(st->map, st->reg->fifo_en, d); in inv_mpu6050_prepare_fifo() 130 ret = regmap_write(st->map, st->reg->user_ctrl, d); in inv_mpu6050_prepare_fifo() 134 ret = regmap_write(st->map, st->reg->int_enable, in inv_mpu6050_prepare_fifo() 137 ret = regmap_write(st->map, st->reg->int_enable, 0); in inv_mpu6050_prepare_fifo() 140 ret = regmap_write(st->map, st->reg->fifo_en, 0); in inv_mpu6050_prepare_fifo() 144 ret = regmap_write(st->map, st->reg->user_ctrl, in inv_mpu6050_prepare_fifo() 178 st->skip_samples = inv_compute_skip_samples(st); in inv_mpu6050_set_enable() 229 if (!st->trig) in inv_mpu6050_probe_trigger() 236 st->trig); in inv_mpu6050_probe_trigger() [all …]
|
/linux-6.3-rc2/drivers/staging/iio/meter/ |
A D | ade7854-i2c.c | 33 st->tx[2] = val & 0xFF; in ade7854_i2c_write_reg() 38 st->tx[3] = val & 0xFF; in ade7854_i2c_write_reg() 59 ret = i2c_master_send(st->i2c, st->tx, count); in ade7854_i2c_write_reg() 83 ret = i2c_master_send(st->i2c, st->tx, 2); in ade7854_i2c_read_reg() 87 ret = i2c_master_recv(st->i2c, st->rx, bits); in ade7854_i2c_read_reg() 93 *val = st->rx[0]; in ade7854_i2c_read_reg() 96 *val = (st->rx[0] << 8) | st->rx[1]; in ade7854_i2c_read_reg() 99 *val = (st->rx[0] << 16) | (st->rx[1] << 8) | st->rx[2]; in ade7854_i2c_read_reg() 102 *val = (st->rx[0] << 24) | (st->rx[1] << 16) | in ade7854_i2c_read_reg() 103 (st->rx[2] << 8) | st->rx[3]; in ade7854_i2c_read_reg() [all …]
|