/Zephyr-latest/tests/drivers/spi/spi_controller_peripheral/src/ |
D | main.c | 61 struct spi_buf bufs[8]; member 260 tdata.bufs[i].buf = buf_alloc(len, i < 2); in test_basic() 261 tdata.bufs[i].len = len; in test_basic() 262 tdata.sets[i].buffers = &tdata.bufs[i]; in test_basic() 291 tdata.bufs[0].buf = buf_alloc(len, true); in test_basic_zero_len() 292 tdata.bufs[0].len = len; in test_basic_zero_len() 293 tdata.bufs[1].buf = buf_alloc(len, true); in test_basic_zero_len() 295 tdata.bufs[1].len = 0; in test_basic_zero_len() 296 tdata.sets[0].buffers = &tdata.bufs[0]; in test_basic_zero_len() 300 tdata.bufs[2].buf = buf_alloc(len, true); in test_basic_zero_len() [all …]
|
/Zephyr-latest/drivers/spi/ |
D | spi_handlers.c | 14 static struct spi_buf_set *copy_and_check(struct spi_buf_set *bufs, in copy_and_check() argument 20 if (bufs->count == 0) { in copy_and_check() 21 bufs->buffers = NULL; in copy_and_check() 26 K_OOPS(K_SYSCALL_MEMORY_ARRAY_READ(bufs->buffers, in copy_and_check() 27 bufs->count, in copy_and_check() 33 bufs->buffers = memcpy(buf_copy, in copy_and_check() 34 bufs->buffers, in copy_and_check() 35 bufs->count * sizeof(struct spi_buf)); in copy_and_check() 37 for (i = 0; i < bufs->count; i++) { in copy_and_check() 41 const struct spi_buf *buf = &bufs->buffers[i]; in copy_and_check() [all …]
|
D | spi_ll_stm32.c | 730 const struct spi_buf_set *bufs) in spi_stm32_count_bufset_frames() argument 732 if (bufs == NULL) { in spi_stm32_count_bufset_frames() 738 for (size_t i = 0; i < bufs->count; i++) { in spi_stm32_count_bufset_frames() 739 num_bytes += bufs->buffers[i].len; in spi_stm32_count_bufset_frames() 953 static bool spi_buf_set_in_nocache(const struct spi_buf_set *bufs) in spi_buf_set_in_nocache() argument 955 for (size_t i = 0; i < bufs->count; i++) { in spi_buf_set_in_nocache() 956 const struct spi_buf *buf = &bufs->buffers[i]; in spi_buf_set_in_nocache()
|
/Zephyr-latest/samples/drivers/spi_fujitsu_fram/src/ |
D | main.c | 30 struct spi_buf bufs[] = { in mb85rs64v_access() local 40 .buffers = bufs in mb85rs64v_access() 49 bufs[0].len = 3; in mb85rs64v_access() 54 .buffers = bufs, in mb85rs64v_access()
|
/Zephyr-latest/tests/drivers/spi/spi_error_cases/src/ |
D | main.c | 41 struct spi_buf bufs[4]; member 201 tdata.bufs[2].len = (size_t)65536; in ZTEST() 210 tdata.bufs[3].len = (size_t)65536; in ZTEST() 219 tdata.bufs[2].buf = (void *)0x12345678; in ZTEST() 238 tdata.bufs[i].buf = buf_alloc(len, i < 2); in before() 239 tdata.bufs[i].len = len; in before() 240 tdata.sets[i].buffers = &tdata.bufs[i]; in before()
|
/Zephyr-latest/samples/bluetooth/periodic_adv_conn/src/ |
D | main.c | 29 static struct net_buf_simple bufs[NUM_SUBEVENTS]; variable 32 BUILD_ASSERT(ARRAY_SIZE(bufs) == ARRAY_SIZE(subevent_data_params)); 48 subevent_data_params[i].data = &bufs[i]; in request_cb() 159 net_buf_simple_init_with_data(&bufs[i], &backing_store[i], in init_bufs()
|
/Zephyr-latest/drivers/led_strip/ |
D | lpd880x.c | 53 const struct spi_buf bufs[3] = { in lpd880x_update() local 72 .buffers = bufs, in lpd880x_update()
|
/Zephyr-latest/samples/bluetooth/periodic_adv_rsp/src/ |
D | main.c | 45 static struct net_buf_simple bufs[NUM_SUBEVENTS]; variable 48 BUILD_ASSERT(ARRAY_SIZE(bufs) == ARRAY_SIZE(subevent_data_params)); 62 buf = &bufs[i]; in request_cb() 239 net_buf_simple_init_with_data(&bufs[i], &backing_store[i], in init_bufs()
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_mcr20a.c | 220 struct spi_buf bufs[2] = { in z_mcr20a_write_burst() local 231 .buffers = bufs, in z_mcr20a_write_burst() 248 struct spi_buf bufs[2] = { in z_mcr20a_read_burst() local 259 .buffers = bufs, in z_mcr20a_read_burst() 263 .buffers = bufs, in z_mcr20a_read_burst() 531 struct spi_buf bufs[2] = { in read_rxfifo_content() local 542 .buffers = bufs, in read_rxfifo_content() 546 .buffers = bufs, in read_rxfifo_content() 1084 const struct spi_buf bufs[2] = { in write_txfifo_content() local 1095 .buffers = bufs, in write_txfifo_content()
|
/Zephyr-latest/drivers/input/ |
D | input_analog_axis.c | 159 int16_t bufs[cfg->num_channels]; in analog_axis_loop() local 162 .buffer = bufs, in analog_axis_loop() 163 .buffer_size = sizeof(bufs), in analog_axis_loop() 189 int32_t raw_val = bufs[i]; in analog_axis_loop()
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | proxy_msg.c | 53 static uint8_t __noinit bufs[CONFIG_BT_MAX_CONN * CONFIG_BT_MESH_PROXY_MSG_LEN]; variable 286 &bufs[bt_conn_index(role->conn) * in proxy_msg_init()
|
/Zephyr-latest/drivers/sdhc/ |
D | sdhc_spi.c | 373 struct spi_buf bufs[] = { in sdhc_spi_send_cmd() local 381 .buffers = bufs, in sdhc_spi_send_cmd() 393 bufs[0].len = SD_SPI_CMD_SIZE + 3; in sdhc_spi_send_cmd() 421 return sdhc_spi_response_get(dev, cmd, bufs[0].len); in sdhc_spi_send_cmd()
|
/Zephyr-latest/drivers/sensor/maxim/max31865/ |
D | max31865.c | 12 const struct spi_buf bufs[] = {{ in max31865_spi_write() local 18 const struct spi_buf_set tx = {.buffers = bufs, .count = 2}; in max31865_spi_write()
|
/Zephyr-latest/drivers/sensor/nxp/fxls8974/ |
D | fxls8974.c | 28 const struct spi_buf_set s = { .bufs = &buf, .count = 1 }; in fxls8974_transceive() 46 const struct spi_buf_set tx = { .bufs = buf, .count = 1 }; in fxls8974_read_spi() 47 const struct spi_buf_set rx = { .bufs = buf, .count = 2 }; in fxls8974_read_spi()
|
/Zephyr-latest/tests/lib/net_buf/buf/src/ |
D | main.c | 108 struct net_buf *bufs[bufs_pool.buf_count]; in ZTEST() local 115 bufs[i] = buf; in ZTEST() 118 for (i = 0; i < ARRAY_SIZE(bufs); i++) { in ZTEST() 119 net_buf_unref(bufs[i]); in ZTEST() 122 zassert_equal(destroy_called, ARRAY_SIZE(bufs), in ZTEST()
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | wifi.rst | 55 …est build -p -b <board> samples/net/wifi -- -DEXTRA_CONF_FILE=overlay-enterprise-variable-bufs.conf
|