Searched refs:read_sz (Results 1 – 2 of 2) sorted by relevance
/hal_espressif-3.4.0/components/app_trace/ |
D | app_trace_membufs_proto.c | 118 uint32_t read_sz = esp_apptrace_rb_read_size_get(&proto->rb_pend); in esp_apptrace_membufs_swap() local 119 if (read_sz == 0) { in esp_apptrace_membufs_swap() 122 if (read_sz > proto->blocks[new_block_num].sz - proto->state.markers[new_block_num]) { in esp_apptrace_membufs_swap() 123 read_sz = proto->blocks[new_block_num].sz - proto->state.markers[new_block_num]; in esp_apptrace_membufs_swap() 125 uint8_t *ptr = esp_apptrace_rb_consume(&proto->rb_pend, read_sz); in esp_apptrace_membufs_swap() 131 read_sz, *(ptr+0), *(ptr+1), *(ptr+2), *(ptr+3), *(ptr+4), in esp_apptrace_membufs_swap() 132 …(ptr+8), *(ptr+9), *(ptr+10), *(ptr+11), *(ptr+12), *(ptr+13), *(ptr+read_sz-2), *(ptr+read_sz-1)); in esp_apptrace_membufs_swap() 133 … memcpy(proto->blocks[new_block_num].start + proto->state.markers[new_block_num], ptr, read_sz); in esp_apptrace_membufs_swap() 134 proto->state.markers[new_block_num] += read_sz; in esp_apptrace_membufs_swap()
|
/hal_espressif-3.4.0/components/tinyusb/additions/src/ |
D | tusb_cdc_acm.c | 262 size_t read_sz; in tinyusb_cdcacm_read() local 267 esp_err_t res = read_from_rx_unread_to_buffer(acm, out_buf, out_buf_sz, &read_sz); in tinyusb_cdcacm_read() 273 *rx_data_size = read_sz; in tinyusb_cdcacm_read() 275 …if (read_from_rx_unread_to_buffer(acm, out_buf + read_sz, out_buf_sz - read_sz, &read_sz) == ESP_O… in tinyusb_cdcacm_read() 276 *rx_data_size += read_sz; in tinyusb_cdcacm_read()
|