Home
last modified time | relevance | path

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

/hal_rpi_pico-latest/src/rp2_common/pico_cyw43_driver/cybt_shared_bus/
Dcybt_shared_bus.c263 uint32_t read_len = ROUNDUP(*p_length, 4); in cybt_hci_read() local
282 if (read_len > fw_b2h_buf_count) { in cybt_hci_read()
283 read_len = fw_b2h_buf_count; in cybt_hci_read()
286 if (fw_membuf_info.bt2host_out_val + read_len <= BTSDIO_FWBUF_SIZE) { in cybt_hci_read()
288 cybt_debug("cybt_hci_read: 1-round read, len = %" PRId32 "\n", read_len); in cybt_hci_read()
289 cybt_mem_read_idx(B2H_BUF_ADDR_IDX, fw_membuf_info.bt2host_out_val, p_data, read_len); in cybt_hci_read()
290 fw_membuf_info.bt2host_out_val += read_len; in cybt_hci_read()
300 uint32_t second_read_len = read_len - first_read_len; in cybt_hci_read()
308 … available = fw_b2h_buf_count - read_len; // remember amount available to check for buffer overflow in cybt_hci_read()
316 *p_length = read_len; in cybt_hci_read()
[all …]