Home
last modified time | relevance | path

Searched refs:bufs (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/tests/drivers/spi/spi_controller_peripheral/src/
Dmain.c61 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/
Dspi_handlers.c14 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 …]
Dspi_ll_stm32.c730 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/
Dmain.c30 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/
Dmain.c41 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/
Dmain.c29 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/
Dlpd880x.c53 const struct spi_buf bufs[3] = { in lpd880x_update() local
72 .buffers = bufs, in lpd880x_update()
/Zephyr-latest/samples/bluetooth/periodic_adv_rsp/src/
Dmain.c45 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/
Dieee802154_mcr20a.c220 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/
Dinput_analog_axis.c159 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/
Dproxy_msg.c53 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/
Dsdhc_spi.c373 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/
Dmax31865.c12 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/
Dfxls8974.c28 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/
Dmain.c108 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/
Dwifi.rst55 …est build -p -b <board> samples/net/wifi -- -DEXTRA_CONF_FILE=overlay-enterprise-variable-bufs.conf