/linux/drivers/rtc/ |
H A D | rtc-ds1302.c | 49 status = spi_write_then_read(spi, buf, 2, in ds1302_rtc_set_time() 68 return spi_write_then_read(spi, buf, sizeof(buf), in ds1302_rtc_set_time() 82 status = spi_write_then_read(spi, &addr, sizeof(addr), in ds1302_rtc_get_time() 128 status = spi_write_then_read(spi, &addr, sizeof(addr), buf, 1); in ds1302_probe() 136 status = spi_write_then_read(spi, &addr, sizeof(addr), buf, 1); in ds1302_probe() 153 status = spi_write_then_read(spi, buf, 2, NULL, 0); in ds1302_probe() 161 status = spi_write_then_read(spi, &addr, sizeof(addr), buf, 1); in ds1302_probe()
|
H A D | rtc-ds1305.c | 180 status = spi_write_then_read(ds1305->spi, &addr, sizeof(addr), in ds1305_get_time() 231 return spi_write_then_read(ds1305->spi, buf, sizeof(buf), in ds1305_set_time() 280 status = spi_write_then_read(spi, &addr, sizeof(addr), in ds1305_get_alarm() 290 status = spi_write_then_read(spi, &addr, sizeof(addr), in ds1305_get_alarm() 348 status = spi_write_then_read(ds1305->spi, buf, 2, NULL, 0); in ds1305_set_alarm() 364 status = spi_write_then_read(spi, buf, sizeof(buf), NULL, 0); in ds1305_set_alarm() 374 status = spi_write_then_read(ds1305->spi, buf, 2, NULL, 0); in ds1305_set_alarm() 456 status = spi_write_then_read(spi, buf, sizeof(buf), in ds1305_work() 577 status = spi_write_then_read(spi, &addr, sizeof(addr), in ds1305_probe() 609 status = spi_write_then_read(spi, buf, sizeof(buf), NULL, 0); in ds1305_probe() [all …]
|
H A D | rtc-max6916.c | 38 return spi_write_then_read(spi, data, 1, data, 1); in max6916_read_reg() 50 return spi_write_then_read(spi, buf, 2, NULL, 0); in max6916_write_reg() 61 err = spi_write_then_read(spi, buf, 1, buf, 8); in max6916_read_time() 99 return spi_write_then_read(spi, buf, 9, NULL, 0); in max6916_set_time()
|
H A D | rtc-rx4581.c | 76 return spi_write_then_read(spi, buf, 2, NULL, 0); in rx4581_set_reg() 87 return spi_write_then_read(spi, data, 1, data, 1); in rx4581_get_reg() 126 err = spi_write_then_read(spi, date, 1, date, 7); in rx4581_get_datetime() 212 err = spi_write_then_read(spi, buf, 8, NULL, 0); in rx4581_set_datetime()
|
H A D | rtc-max6902.c | 38 return spi_write_then_read(spi, buf, 2, NULL, 0); in max6902_set_reg() 49 return spi_write_then_read(spi, data, 1, data, 1); in max6902_get_reg() 60 err = spi_write_then_read(spi, buf, 1, buf, 8); in max6902_read_time()
|
H A D | rtc-rs5c348.c | 72 ret = spi_write_then_read(spi, txbuf, 2, NULL, 0); in rs5c348_rtc_set_time() 100 ret = spi_write_then_read(spi, txbuf, sizeof(txbuf), NULL, 0); in rs5c348_rtc_set_time() 131 ret = spi_write_then_read(spi, txbuf, sizeof(txbuf), in rs5c348_rtc_read_time()
|
H A D | rtc-ds1390.c | 79 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 1); in ds1390_get_reg() 137 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 8); in ds1390_read_time() 173 return spi_write_then_read(spi, chip->txrx_buf, 8, NULL, 0); in ds1390_set_time()
|
/linux/drivers/net/ethernet/wiznet/ |
H A D | w5100-spi.c | 33 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, 1); in w5100_spi_read() 43 return spi_write_then_read(spi, cmd, sizeof(cmd), NULL, 0); in w5100_spi_write() 146 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, 1); in w5200_spi_read() 156 return spi_write_then_read(spi, cmd, sizeof(cmd), NULL, 0); in w5200_spi_write() 166 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, sizeof(data)); in w5200_spi_read16() 180 return spi_write_then_read(spi, cmd, sizeof(cmd), NULL, 0); in w5200_spi_write16() 295 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, 1); in w5500_spi_read() 310 return spi_write_then_read(spi, cmd, sizeof(cmd), NULL, 0); in w5500_spi_write() 324 ret = spi_write_then_read(spi, cmd, sizeof(cmd), &data, sizeof(data)); in w5500_spi_read16() 340 return spi_write_then_read(spi, cmd, sizeof(cmd), NULL, 0); in w5500_spi_write16()
|
/linux/drivers/iio/pressure/ |
H A D | ms5611_spi.c | 22 return spi_write_then_read(st->client, &cmd, 1, NULL, 0); in ms5611_spi_reset() 44 ret = spi_write_then_read(st->client, buf, 1, buf, 3); in ms5611_spi_read_adc() 63 ret = spi_write_then_read(st->client, &osr->cmd, 1, NULL, 0); in ms5611_spi_read_adc_temp_and_pressure() 73 ret = spi_write_then_read(st->client, &osr->cmd, 1, NULL, 0); in ms5611_spi_read_adc_temp_and_pressure()
|
H A D | bmp280-spi.c | 28 return spi_write_then_read(spi, buf, 2, NULL, 0); in bmp280_regmap_spi_write() 36 return spi_write_then_read(spi, reg, reg_size, val, val_size); in bmp280_regmap_spi_read() 54 status = spi_write_then_read(spi, reg, 1, rx_buf, val_size + 1); in bmp380_regmap_spi_read()
|
/linux/drivers/misc/ |
H A D | lattice-ecp3-config.c | 94 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 112 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 145 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load() 168 spi_write_then_read(spi, txbuf, 8, rxbuf, rx_len); in firmware_load()
|
/linux/drivers/gpio/ |
H A D | gpio-max7301.c | 25 return spi_write_then_read(spi, &word, sizeof(word), NULL, 0); in max7301_spi_write() 37 ret = spi_write_then_read(spi, &word, sizeof(word), &word, in max7301_spi_read()
|
/linux/drivers/iio/health/ |
H A D | afe4403.c | 224 ret = spi_write_then_read(afe->spi, tx, 4, NULL, 0); in afe4403_read() 228 ret = spi_write_then_read(afe->spi, ®, 1, rx, sizeof(rx)); in afe4403_read() 236 ret = spi_write_then_read(afe->spi, tx, 4, NULL, 0); in afe4403_read() 320 ret = spi_write_then_read(afe->spi, tx, 4, NULL, 0); in afe4403_trigger_handler() 325 ret = spi_write_then_read(afe->spi, in afe4403_trigger_handler() 336 ret = spi_write_then_read(afe->spi, tx, 4, NULL, 0); in afe4403_trigger_handler()
|
/linux/drivers/net/ethernet/asix/ |
H A D | ax88796c_spi.c | 37 ret = spi_write_then_read(ax_spi->spi, ax_spi->cmd_buf, 1, (u8 *)status, 3); in axspi_read_status() 86 ret = spi_write_then_read(ax_spi->spi, in axspi_read_reg()
|
/linux/drivers/iio/chemical/ |
H A D | bme680_spi.c | 40 ret = spi_write_then_read(spi, buf, 1, buf + 1, 1); in bme680_regmap_spi_select_page() 100 return spi_write_then_read(spi, &addr, 1, val, val_size); in bme680_regmap_spi_read()
|
/linux/drivers/iio/potentiometer/ |
H A D | x9250.c | 43 return spi_write_then_read(x9250->spi, txbuf, ARRAY_SIZE(txbuf), NULL, 0); in x9250_write8() 53 return spi_write_then_read(x9250->spi, txbuf, ARRAY_SIZE(txbuf), val, 1); in x9250_read8()
|
/linux/drivers/iio/adc/ |
H A D | ad7292.c | 96 ret = spi_write_then_read(st->spi, st->d8, 1, &st->d16, 2); in ad7292_spi_reg_read() 112 ret = spi_write_then_read(st->spi, st->d8, 2, &st->d16, len); in ad7292_spi_subreg_read()
|
H A D | hi8435.c | 58 return spi_write_then_read(priv->spi, ®, 1, val, 1); in hi8435_readb() 67 ret = spi_write_then_read(priv->spi, ®, 1, &be_val, 2); in hi8435_readw() 79 ret = spi_write_then_read(priv->spi, ®, 1, &be_val, 4); in hi8435_readl()
|
H A D | mcp3564.c | 408 ret = spi_write_then_read(adc->spi, &tx_buf, sizeof(tx_buf), in mcp3564_read_8bits() 423 ret = spi_write_then_read(adc->spi, &tx_buf, sizeof(tx_buf), in mcp3564_read_16bits() 438 ret = spi_write_then_read(adc->spi, &tx_buf, sizeof(tx_buf), in mcp3564_read_32bits() 452 return spi_write_then_read(adc->spi, tx_buf, sizeof(tx_buf), NULL, 0); in mcp3564_write_8bits() 462 return spi_write_then_read(adc->spi, &val_be, sizeof(val_be), NULL, 0); in mcp3564_write_24bits() 472 return spi_write_then_read(adc->spi, &val, 1, NULL, 0); in mcp3564_fast_cmd()
|
/linux/drivers/iio/imu/bmi323/ |
H A D | bmi323_spi.c | 26 return spi_write_then_read(spi, reg_buf, reg_size, val_buf, val_size); in bmi323_regmap_spi_read()
|
/linux/drivers/iio/accel/ |
H A D | bmi088-accel-spi.c | 36 return spi_write_then_read(spi, addr, sizeof(addr), val, val_size); in bmi088_regmap_spi_read()
|
H A D | bma400_spi.c | 32 status = spi_write_then_read(spi, reg, 1, result, val_size + 1); in bma400_regmap_spi_read()
|
/linux/include/linux/spi/ |
H A D | spi.h | 1484 extern int spi_write_then_read(struct spi_device *spi, 1504 status = spi_write_then_read(spi, &cmd, 1, &result, 1); in spi_w8r8() 1529 status = spi_write_then_read(spi, &cmd, 1, &result, 2); in spi_w8r16() 1555 status = spi_write_then_read(spi, &cmd, 1, &result, 2); in spi_w8r16be()
|
/linux/drivers/input/misc/ |
H A D | adxl34x-spi.c | 56 status = spi_write_then_read(spi, ®, 1, buf, count); in adxl34x_spi_read_block()
|
/linux/drivers/fpga/ |
H A D | microchip-spi.c | 226 return spi_write_then_read(priv->spi, buf, buf_size, NULL, 0); in mpf_spi_write() 244 return spi_write_then_read(priv->spi, read_command, sizeof(read_command), in mpf_spi_write_then_read()
|