Home
last modified time | relevance | path

Searched refs:read_bytes (Results 1 – 19 of 19) sorted by relevance

/Zephyr-latest/subsys/modem/backends/
Dmodem_backend_uart_isr.c195 uint32_t read_bytes; in modem_backend_uart_isr_receive() local
202 read_bytes = 0; in modem_backend_uart_isr_receive()
206 read_bytes += ring_buf_get(&backend->isr.receive_rdb[receive_rdb_unused], buf, size); in modem_backend_uart_isr_receive()
209 return (int)read_bytes; in modem_backend_uart_isr_receive()
220 read_bytes += ring_buf_get(&backend->isr.receive_rdb[receive_rdb_unused], in modem_backend_uart_isr_receive()
221 &buf[read_bytes], (size - read_bytes)); in modem_backend_uart_isr_receive()
223 return (int)read_bytes; in modem_backend_uart_isr_receive()
/Zephyr-latest/samples/drivers/spi_fujitsu_fram/src/
Dmain.c124 static int read_bytes(const struct device *spi, struct spi_config *spi_cfg, in read_bytes() function
184 err = read_bytes(spi, &spi_cfg, 0x00, data, 1); in main()
193 err = read_bytes(spi, &spi_cfg, 0x01, data, 1); in main()
218 err = read_bytes(spi, &spi_cfg, 0x00, data, sizeof(data)); in main()
/Zephyr-latest/include/zephyr/drivers/usb/
Dusb_dc.h339 const uint32_t max_data_len, uint32_t *const read_bytes);
376 uint32_t *read_bytes);
/Zephyr-latest/drivers/usb/device/
Dusb_dc_native_posix.c379 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
407 if (data == NULL && max_data_len == 0 && read_bytes != NULL) { in usb_dc_ep_read_wait()
409 *read_bytes = usbip_ctrl.out_ep_ctrl[ep_idx].data_len; in usb_dc_ep_read_wait()
417 if (read_bytes) { in usb_dc_ep_read_wait()
418 *read_bytes = to_copy; in usb_dc_ep_read_wait()
448 const uint32_t max_data_len, uint32_t * const read_bytes) in usb_dc_ep_read() argument
452 if (usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes) != 0) { in usb_dc_ep_read()
Dusb_dc_sam0.c633 uint32_t *read_bytes, bool wait) in usb_dc_ep_read_ex() argument
663 if (read_bytes != NULL) { in usb_dc_ep_read_ex()
664 *read_bytes = bytes; in usb_dc_ep_read_ex()
674 if (read_bytes != NULL) { in usb_dc_ep_read_ex()
675 *read_bytes = take; in usb_dc_ep_read_ex()
690 int usb_dc_ep_read(uint8_t ep, uint8_t *buf, uint32_t max_data_len, uint32_t *read_bytes) in usb_dc_ep_read() argument
692 return usb_dc_ep_read_ex(ep, buf, max_data_len, read_bytes, false); in usb_dc_ep_read()
696 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
698 return usb_dc_ep_read_ex(ep, buf, max_data_len, read_bytes, true); in usb_dc_ep_read_wait()
Dusb_dc_mcux.c614 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
644 if (read_bytes) { in usb_dc_ep_read_wait()
645 *read_bytes = 0; in usb_dc_ep_read_wait()
654 if (read_bytes) { in usb_dc_ep_read_wait()
655 *read_bytes = data_len; in usb_dc_ep_read_wait()
671 if (read_bytes) { in usb_dc_ep_read_wait()
672 *read_bytes = data_len; in usb_dc_ep_read_wait()
724 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument
726 int retval = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read()
Dusb_dc_sam_usbhs.c779 int usb_dc_ep_read(uint8_t ep, uint8_t *data, uint32_t max_data_len, uint32_t *read_bytes) in usb_dc_ep_read() argument
784 rc = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read()
828 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
860 if (read_bytes) { in usb_dc_ep_read_wait()
861 *read_bytes = data_len; in usb_dc_ep_read_wait()
877 if (read_bytes) { in usb_dc_ep_read_wait()
878 *read_bytes = data_len; in usb_dc_ep_read_wait()
Dusb_dc_stm32.c732 int usb_dc_ep_get_read_count(uint8_t ep, uint32_t *read_bytes) in usb_dc_ep_get_read_count() argument
734 if (!USB_EP_DIR_IS_OUT(ep) || !read_bytes) { in usb_dc_ep_get_read_count()
739 *read_bytes = HAL_PCD_EP_GetRxCount(&usb_dc_stm32_state.pcd, ep); in usb_dc_ep_get_read_count()
1001 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
1035 if (read_bytes) { in usb_dc_ep_read_wait()
1036 *read_bytes = read_count; in usb_dc_ep_read_wait()
1063 uint32_t * const read_bytes) in usb_dc_ep_read() argument
1065 if (usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes) != 0) { in usb_dc_ep_read()
Dusb_dc_sam_usbc.c1339 uint32_t *read_bytes, bool wait) in usb_dc_ep_read_ex() argument
1375 if (read_bytes) { in usb_dc_ep_read_ex()
1376 *read_bytes = data_len; in usb_dc_ep_read_ex()
1391 if (read_bytes) { in usb_dc_ep_read_ex()
1392 *read_bytes = take; in usb_dc_ep_read_ex()
1440 uint32_t *read_bytes) in usb_dc_ep_read() argument
1442 return usb_dc_ep_read_ex(ep, data, max_data_len, read_bytes, false); in usb_dc_ep_read()
1446 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
1448 return usb_dc_ep_read_ex(ep, data, max_data_len, read_bytes, true); in usb_dc_ep_read_wait()
Dusb_dc_it82xx2.c1383 uint32_t *read_bytes) in usb_dc_ep_read() argument
1409 if (read_bytes) { in usb_dc_ep_read()
1410 *read_bytes = rx_fifo_len; in usb_dc_ep_read()
1425 *read_bytes = 0; in usb_dc_ep_read()
1441 *read_bytes = max_data_len; in usb_dc_ep_read()
1449 *read_bytes = rx_fifo_len; in usb_dc_ep_read()
1485 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
1514 *read_bytes = (rx_fifo_len > max_data_len) ? in usb_dc_ep_read_wait()
1517 for (uint32_t idx = 0; idx < *read_bytes; idx++) { in usb_dc_ep_read_wait()
1521 LOG_DBG("Read %d packets", *read_bytes); in usb_dc_ep_read_wait()
Dusb_dc_kinetis.c662 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
706 if (read_bytes) { in usb_dc_ep_read_wait()
707 *read_bytes = data_len; in usb_dc_ep_read_wait()
726 if (read_bytes) { in usb_dc_ep_read_wait()
727 *read_bytes = data_len; in usb_dc_ep_read_wait()
783 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument
785 int retval = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read()
Dusb_dc_dw.c1231 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
1266 if (read_bytes) { in usb_dc_ep_read_wait()
1267 *read_bytes = data_len; in usb_dc_ep_read_wait()
1299 if (read_bytes) { in usb_dc_ep_read_wait()
1300 *read_bytes = bytes_to_copy; in usb_dc_ep_read_wait()
1330 const uint32_t max_data_len, uint32_t * const read_bytes) in usb_dc_ep_read() argument
1332 if (usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes) != 0) { in usb_dc_ep_read()
Dusb_dc_rpi_pico.c828 uint32_t max_data_len, uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
870 if (read_bytes) { in usb_dc_ep_read_wait()
871 *read_bytes = read_count; in usb_dc_ep_read_wait()
956 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument
958 if (usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes) != 0) { in usb_dc_ep_read()
Dusb_dc_numaker.c1736 uint32_t *const read_bytes) in usb_dc_ep_read() argument
1743 rc = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read()
1760 int usb_dc_ep_read_wait(uint8_t ep, uint8_t *data_buf, uint32_t max_data_len, uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
1797 if (read_bytes) { in usb_dc_ep_read_wait()
1798 *read_bytes = 8; in usb_dc_ep_read_wait()
1822 if (read_bytes) { in usb_dc_ep_read_wait()
1823 *read_bytes = data_len_act; in usb_dc_ep_read_wait()
1830 if (read_bytes) { in usb_dc_ep_read_wait()
1831 *read_bytes = numaker_usbd_ep_fifo_used(ep_cur); in usb_dc_ep_read_wait()
Dusb_dc_nrfx.c1715 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
1748 if (read_bytes) { in usb_dc_ep_read_wait()
1749 *read_bytes = ep_ctx->buf.len; in usb_dc_ep_read_wait()
1759 if (read_bytes) { in usb_dc_ep_read_wait()
1760 *read_bytes = bytes_to_copy; in usb_dc_ep_read_wait()
1816 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument
1821 ret = usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes); in usb_dc_ep_read()
Dusb_dc_smartbond.c1227 uint32_t *read_bytes) in usb_dc_ep_read_wait() argument
1253 if (read_bytes) { in usb_dc_ep_read_wait()
1254 *read_bytes = read_count; in usb_dc_ep_read_wait()
1261 const uint32_t max_data_len, uint32_t *const read_bytes) in usb_dc_ep_read() argument
1263 if (usb_dc_ep_read_wait(ep, data, max_data_len, read_bytes) != 0) { in usb_dc_ep_read()
/Zephyr-latest/tests/drivers/bbram/generic/src/
Dread.c55 BBRAM_TEST_IMPL(read_bytes, inst)
/Zephyr-latest/include/zephyr/usb/
Dusb_device.h335 uint32_t *read_bytes);
/Zephyr-latest/drivers/i2c/
Di2c_xilinx_axi.c299 struct i2c_xilinx_axi_data *data, uint32_t read_bytes) in i2c_xilinx_axi_wait_rx_full() argument
305 (sys_read32(config->base + REG_RX_FIFO_OCY) & RX_FIFO_OCY_MASK) + 1 >= read_bytes) { in i2c_xilinx_axi_wait_rx_full()