Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/drivers/i2c/
Di2c_xilinx_axi.c404 uint32_t bytes_to_read = bytes_left; in i2c_xilinx_axi_read_dyn() local
416 if (bytes_to_read > FIFO_SIZE) { in i2c_xilinx_axi_read_dyn()
417 bytes_to_read = FIFO_SIZE; in i2c_xilinx_axi_read_dyn()
419 sys_write32(bytes_to_read - 1, config->base + REG_RX_FIFO_PIRQ); in i2c_xilinx_axi_read_dyn()
430 bytes_to_read = bytes_left; in i2c_xilinx_axi_read_dyn()
431 if (bytes_to_read > FIFO_SIZE) { in i2c_xilinx_axi_read_dyn()
432 bytes_to_read = FIFO_SIZE; in i2c_xilinx_axi_read_dyn()
435 sys_write32(bytes_to_read - 1, config->base + REG_RX_FIFO_PIRQ); in i2c_xilinx_axi_read_dyn()
436 ret = i2c_xilinx_axi_wait_rx_full(config, data, bytes_to_read); in i2c_xilinx_axi_read_dyn()
441 while (bytes_to_read) { in i2c_xilinx_axi_read_dyn()
[all …]
/Zephyr-Core-3.6.0/drivers/serial/
Duart_emul.c171 uint32_t bytes_to_read; in uart_emul_fifo_read() local
174 bytes_to_read = MIN(config->latch_buffer_size, ring_buf_size_get(data->rx_rb)); in uart_emul_fifo_read()
175 bytes_to_read = MIN(bytes_to_read, size); in uart_emul_fifo_read()
176 ring_buf_get(data->rx_rb, rx_data, bytes_to_read); in uart_emul_fifo_read()
179 return bytes_to_read; in uart_emul_fifo_read()
/Zephyr-Core-3.6.0/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-Core-3.6.0/scripts/pylib/pytest-twister-harness/src/twister_harness/device/
Dhardware_adapter.py231 bytes_to_read = max(1, min(2048, self._serial_connection.in_waiting))
232 output = self._serial_connection.read(bytes_to_read)
/Zephyr-Core-3.6.0/subsys/tracing/test/
Dtracing_test.h364 sys_trace_k_pipe_get_enter(pipe, data, bytes_to_read, bytes_read, min_xfer, timeout)
366 sys_trace_k_pipe_get_blocking(pipe, data, bytes_to_read, bytes_read, min_xfer, timeout)
368 sys_trace_k_pipe_get_exit(pipe, data, bytes_to_read, bytes_read, min_xfer, timeout, ret)
627 void sys_trace_k_pipe_get_enter(struct k_pipe *pipe, void *data, size_t bytes_to_read,
629 void sys_trace_k_pipe_get_blocking(struct k_pipe *pipe, void *data, size_t bytes_to_read,
631 void sys_trace_k_pipe_get_exit(struct k_pipe *pipe, void *data, size_t bytes_to_read,
/Zephyr-Core-3.6.0/doc/kernel/services/
Dpolling.rst170 … ret = k_pipe_get(events[3].pipe, buf, bytes_to_read, &bytes_read, min_xfer, K_NO_WAIT);
196 … ret = k_pipe_get(events[3].pipe, buf, bytes_to_read, &bytes_read, min_xfer, K_NO_WAIT);
/Zephyr-Core-3.6.0/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-Core-3.6.0/include/zephyr/
Dkernel.h5000 size_t bytes_to_read, size_t *bytes_read,