Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/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 Z_OOPS(Z_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.c796 static bool spi_buf_set_in_nocache(const struct spi_buf_set *bufs) in spi_buf_set_in_nocache() argument
798 for (size_t i = 0; i < bufs->count; i++) { in spi_buf_set_in_nocache()
799 const struct spi_buf *buf = &bufs->buffers[i]; in spi_buf_set_in_nocache()
/Zephyr-Core-3.5.0/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-Core-3.5.0/samples/bluetooth/periodic_adv_conn/src/
Dmain.c28 static struct net_buf_simple bufs[NUM_SUBEVENTS]; variable
31 BUILD_ASSERT(ARRAY_SIZE(bufs) == ARRAY_SIZE(subevent_data_params));
47 subevent_data_params[i].data = &bufs[i]; in request_cb()
158 net_buf_simple_init_with_data(&bufs[i], &backing_store[i], in init_bufs()
/Zephyr-Core-3.5.0/drivers/led_strip/
Dlpd880x.c52 const struct spi_buf bufs[3] = { in lpd880x_update() local
71 .buffers = bufs, in lpd880x_update()
/Zephyr-Core-3.5.0/samples/bluetooth/periodic_adv_rsp/src/
Dmain.c37 static struct net_buf_simple bufs[NUM_SUBEVENTS]; variable
40 BUILD_ASSERT(ARRAY_SIZE(bufs) == ARRAY_SIZE(subevent_data_params));
54 buf = &bufs[i]; in request_cb()
237 net_buf_simple_init_with_data(&bufs[i], &backing_store[i], in init_bufs()
/Zephyr-Core-3.5.0/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()
534 struct spi_buf bufs[2] = { in read_rxfifo_content() local
545 .buffers = bufs, in read_rxfifo_content()
549 .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-Core-3.5.0/subsys/bluetooth/mesh/
Dproxy_msg.c54 static uint8_t __noinit bufs[CONFIG_BT_MAX_CONN * CONFIG_BT_MESH_PROXY_MSG_LEN]; variable
245 &bufs[bt_conn_index(role->conn) * in proxy_msg_init()
/Zephyr-Core-3.5.0/drivers/sensor/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-Core-3.5.0/tests/net/buf/src/
Dmain.c107 struct net_buf *bufs[bufs_pool.buf_count]; in ZTEST() local
114 bufs[i] = buf; in ZTEST()
117 for (i = 0; i < ARRAY_SIZE(bufs); i++) { in ZTEST()
118 net_buf_unref(bufs[i]); in ZTEST()
121 zassert_equal(destroy_called, ARRAY_SIZE(bufs), in ZTEST()
/Zephyr-Core-3.5.0/drivers/sdhc/
Dsdhc_spi.c347 struct spi_buf bufs[] = { in sdhc_spi_send_cmd() local
355 .buffers = bufs, in sdhc_spi_send_cmd()
367 bufs[0].len = SD_SPI_CMD_SIZE + 3; in sdhc_spi_send_cmd()
395 return sdhc_spi_response_get(dev, cmd, bufs[0].len); in sdhc_spi_send_cmd()
/Zephyr-Core-3.5.0/doc/services/rtio/
Dindex.rst344 * many bufs. This could be a typical multiple of a fifo packet the sensor
350 static uint8_t bufs[4][ICM42688_RTIO_BUF_SIZE];
375 rtio_sqe_prep_read(read_sqe, sensor_dev, RTIO_PRIO_HIGH, bufs[i], ICM42688_RTIO_BUF_SIZE);