/Zephyr-latest/tests/drivers/spi/spi_loopback/src/ |
D | spi_rtio.c | 47 static __aligned(32) char buffer_rx[BUF_SIZE] __used __attribute__((__section__(".nocache"))); 54 static uint8_t buffer_rx[BUF_SIZE] = {}; variable 90 buffer_tx, buffer_rx, BUF_SIZE, NULL); in spi_complete_multiple() 108 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_multiple() 110 to_display_format(buffer_rx, BUF_SIZE, buffer_print_rx); in spi_complete_multiple() 139 buffer_tx, buffer_rx, BUF_SIZE, NULL); in spi_complete_loop() 154 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_loop() 156 to_display_format(buffer_rx, BUF_SIZE, buffer_print_rx); in spi_complete_loop() 176 (void)memset(buffer_rx, 0x77, BUF_SIZE); in spi_null_tx_buf() 180 buffer_rx, BUF_SIZE, in spi_null_tx_buf() [all …]
|
D | spi.c | 74 static __aligned(32) char buffer_rx[BUF_SIZE] __used __NOCACHE; 123 rx_bufs[0].buf = buffer_rx; in spi_complete_multiple() 140 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_multiple() 142 to_display_format(buffer_rx, BUF_SIZE, buffer_print_rx); in spi_complete_multiple() 173 .buf = buffer_rx, in spi_complete_loop() 197 if (memcmp(buffer_tx, buffer_rx, BUF_SIZE)) { in spi_complete_loop() 199 to_display_format(buffer_rx, BUF_SIZE, buffer_print_rx); in spi_complete_loop() 215 (void)memset(buffer_rx, 0x77, BUF_SIZE); in spi_null_tx_buf() 228 .buf = buffer_rx, in spi_null_tx_buf() 253 if (memcmp(buffer_rx, EXPECTED_NOP_RETURN_BUF, BUF_SIZE)) { in spi_null_tx_buf() [all …]
|
/Zephyr-latest/drivers/sensor/ti/tmag5170/ |
D | tmag5170.c | 141 uint8_t *buffer_rx) in tmag5170_transmit_raw() argument 154 .buf = buffer_rx, in tmag5170_transmit_raw() 168 static int tmag5170_transmit(const struct device *dev, uint8_t *buffer_tx, uint8_t *buffer_rx) in tmag5170_transmit() argument 176 int ret = tmag5170_transmit_raw(dev->config, buffer_tx, buffer_rx); in tmag5170_transmit() 178 if (buffer_rx != NULL && ret == 0) { in tmag5170_transmit() 179 uint8_t read_crc = TMAG5170_GET_CRC(buffer_rx); in tmag5170_transmit() 181 TMAG5170_ZERO_CRC(buffer_rx); in tmag5170_transmit() 182 crc = crc4_ti(TMAG5170_CRC_SEED, buffer_rx, TMAG5170_SPI_BUFFER_LEN); in tmag5170_transmit() 205 uint8_t buffer_rx[4] = { 0x00U }; in tmag5170_read_register() local 207 int ret = tmag5170_transmit(dev, buffer_tx, buffer_rx); in tmag5170_read_register() [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_mcp23sxx.c | 37 uint8_t buffer_rx[4] = { 0 }; in mcp23sxx_read_port_regs() local 48 .buf = buffer_rx, in mcp23sxx_read_port_regs() 62 port_data = ((uint16_t)buffer_rx[3] << 8 | buffer_rx[2]); in mcp23sxx_read_port_regs()
|
/Zephyr-latest/drivers/adc/ |
D | adc_max11102_17.c | 47 uint8_t buffer_rx[1]; in max11102_17_switch_channel() local 49 .buf = buffer_rx, in max11102_17_switch_channel() 50 .len = ARRAY_SIZE(buffer_rx), in max11102_17_switch_channel() 219 uint8_t buffer_rx[2]; in max11102_17_read_sample() local 221 .buf = buffer_rx, in max11102_17_read_sample() 222 .len = ARRAY_SIZE(buffer_rx), in max11102_17_read_sample() 236 *sample = sys_get_be16(buffer_rx); in max11102_17_read_sample()
|
D | adc_max1125x.c | 250 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in max1125x_read_reg() local 256 .buf = buffer_rx, in max1125x_read_reg() 257 .len = ARRAY_SIZE(buffer_rx), in max1125x_read_reg() 276 *buffer = buffer_rx[1]; in max1125x_read_reg() 366 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in max1125x_read_sample() local 375 .buf = buffer_rx, in max1125x_read_sample() 376 .len = ARRAY_SIZE(buffer_rx), in max1125x_read_sample() 406 is_positive = buffer_rx[(config->resolution / 8)] >> 7; in max1125x_read_sample() 408 *data->buffer++ = sys_get_be24(buffer_rx) - (1 << (config->resolution - 1)); in max1125x_read_sample() 410 *data->buffer++ = sys_get_be24(buffer_rx + 1); in max1125x_read_sample()
|
D | adc_ads114s0x.c | 461 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in ads114s0x_read_register() local 467 .buf = buffer_rx, in ads114s0x_read_register() 468 .len = ARRAY_SIZE(buffer_rx), in ads114s0x_read_register() 490 *value = buffer_rx[2]; in ads114s0x_read_register() 995 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in ads114s0x_read_sample() local 1001 .buf = buffer_rx, in ads114s0x_read_sample() 1002 .len = ARRAY_SIZE(buffer_rx), in ads114s0x_read_sample() 1022 *buffer = sys_get_be16(buffer_rx + 1); in ads114s0x_read_sample()
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_bd8lb600fs.c | 111 uint8_t buffer_rx[8]; in bd8lb600fs_transceive_state() local 113 .buf = buffer_rx, in bd8lb600fs_transceive_state() 130 bd8lb600fs_parse_rx_buffer(dev, buffer_rx); in bd8lb600fs_transceive_state()
|
D | mfd_tle9104.c | 165 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in tle9104_transceive_frame() local 171 .buf = buffer_rx, in tle9104_transceive_frame() 172 .len = ARRAY_SIZE(buffer_rx), in tle9104_transceive_frame() 197 read_frame = sys_get_be16(buffer_rx); in tle9104_transceive_frame()
|
/Zephyr-latest/drivers/dac/ |
D | dac_ad56xx.c | 49 uint8_t buffer_rx[ARRAY_SIZE(buffer_tx)]; in ad56xx_write_command() local 55 .buf = buffer_rx, in ad56xx_write_command() 56 .len = ARRAY_SIZE(buffer_rx), in ad56xx_write_command()
|