Home
last modified time | relevance | path

Searched refs:bytes_to_read (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/subsys/tracing/
Dtracing_backend_usb.c90 uint32_t bytes_to_read, length; in tracing_ep_out_cb() local
92 usb_read(ep, NULL, 0, &bytes_to_read); in tracing_ep_out_cb()
94 while (bytes_to_read) { in tracing_ep_out_cb()
97 length = MIN(length, bytes_to_read); in tracing_ep_out_cb()
101 bytes_to_read -= length; in tracing_ep_out_cb()
/Zephyr-latest/subsys/usb/device/class/
Dloopback.c72 uint32_t bytes_to_read; in loopback_out_cb() local
74 usb_read(ep, NULL, 0, &bytes_to_read); in loopback_out_cb()
75 LOG_DBG("ep 0x%x, bytes to read %d ", ep, bytes_to_read); in loopback_out_cb()
76 usb_read(ep, loopback_buf, bytes_to_read, NULL); in loopback_out_cb()
/Zephyr-latest/kernel/
Dpipes.c31 void *data, size_t bytes_to_read,
532 void *data, size_t bytes_to_read, in pipe_get_internal() argument
566 bytes_to_read); in pipe_get_internal()
587 dest_desc->bytes_to_xfer = bytes_to_read; in pipe_get_internal()
657 if ((num_bytes_read == bytes_to_read) || in pipe_get_internal()
691 *bytes_read = bytes_to_read - dest_desc->bytes_to_xfer; in pipe_get_internal()
694 bytes_to_read); in pipe_get_internal()
699 int z_impl_k_pipe_get(struct k_pipe *pipe, void *data, size_t bytes_to_read, in z_impl_k_pipe_get() argument
707 CHECKIF((min_xfer > bytes_to_read) || (bytes_read == NULL)) { in z_impl_k_pipe_get()
716 int ret = pipe_get_internal(key, pipe, data, bytes_to_read, bytes_read, in z_impl_k_pipe_get()
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_xilinx_axi.c397 uint32_t bytes_to_read = bytes_left; in i2c_xilinx_axi_read_dyn() local
409 if (bytes_to_read > FIFO_SIZE) { in i2c_xilinx_axi_read_dyn()
410 bytes_to_read = FIFO_SIZE; in i2c_xilinx_axi_read_dyn()
412 sys_write32(bytes_to_read - 1, config->base + REG_RX_FIFO_PIRQ); in i2c_xilinx_axi_read_dyn()
423 bytes_to_read = bytes_left; in i2c_xilinx_axi_read_dyn()
424 if (bytes_to_read > FIFO_SIZE) { in i2c_xilinx_axi_read_dyn()
425 bytes_to_read = FIFO_SIZE; in i2c_xilinx_axi_read_dyn()
428 sys_write32(bytes_to_read - 1, config->base + REG_RX_FIFO_PIRQ); in i2c_xilinx_axi_read_dyn()
429 ret = i2c_xilinx_axi_wait_rx_full(config, data, bytes_to_read); in i2c_xilinx_axi_read_dyn()
434 while (bytes_to_read) { in i2c_xilinx_axi_read_dyn()
[all …]
/Zephyr-latest/subsys/mgmt/mcumgr/grp/img_mgmt/src/
Dzephyr_img_mgmt.c66 int bytes_to_read; in img_mgmt_flash_check_empty_inner() local
80 bytes_to_read = end - addr; in img_mgmt_flash_check_empty_inner()
82 bytes_to_read = sizeof(data); in img_mgmt_flash_check_empty_inner()
85 rc = flash_area_read(fa, addr, data, bytes_to_read); in img_mgmt_flash_check_empty_inner()
91 for (i = 0; i < bytes_to_read / 4; i++) { in img_mgmt_flash_check_empty_inner()
/Zephyr-latest/drivers/serial/
Duart_emul.c221 uint32_t bytes_to_read; in uart_emul_fifo_read() local
224 bytes_to_read = MIN(config->latch_buffer_size, ring_buf_size_get(data->rx_rb)); in uart_emul_fifo_read()
225 bytes_to_read = MIN(bytes_to_read, size); in uart_emul_fifo_read()
226 ring_buf_get(data->rx_rb, rx_data, bytes_to_read); in uart_emul_fifo_read()
229 return bytes_to_read; in uart_emul_fifo_read()
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/device/
Dhardware_adapter.py240 bytes_to_read = max(1, min(2048, self._serial_connection.in_waiting))
241 output = self._serial_connection.read(bytes_to_read)
/Zephyr-latest/subsys/tracing/test/
Dtracing_test.h367 sys_trace_k_pipe_get_enter(pipe, data, bytes_to_read, bytes_read, min_xfer, timeout)
369 sys_trace_k_pipe_get_blocking(pipe, data, bytes_to_read, bytes_read, min_xfer, timeout)
371 sys_trace_k_pipe_get_exit(pipe, data, bytes_to_read, bytes_read, min_xfer, timeout, ret)
642 void sys_trace_k_pipe_get_enter(struct k_pipe *pipe, void *data, size_t bytes_to_read,
644 void sys_trace_k_pipe_get_blocking(struct k_pipe *pipe, void *data, size_t bytes_to_read,
646 void sys_trace_k_pipe_get_exit(struct k_pipe *pipe, void *data, size_t bytes_to_read,
/Zephyr-latest/doc/kernel/services/
Dpolling.rst171 … ret = k_pipe_get(events[3].pipe, buf, bytes_to_read, &bytes_read, min_xfer, K_NO_WAIT);
200 … ret = k_pipe_get(events[3].pipe, buf, bytes_to_read, &bytes_read, min_xfer, K_NO_WAIT);
/Zephyr-latest/subsys/tracing/sysview/
DSYSVIEW_Zephyr.txt81 74 k_pipe_get pipe=%I, data=%p, bytes_to_read=%u, bytes_read=%u, min_xfer=%u, Time…
/Zephyr-latest/include/zephyr/
Dkernel.h5148 size_t bytes_to_read, size_t *bytes_read,