Home
last modified time | relevance | path

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

/hal_espressif-latest/components/hal/
Demac_hal.c23 uint32_t copy_len; member
565 uint32_t copy_len = 0; in emac_hal_alloc_recv_buf() local
576 copy_len = ret_len > *size ? *size : ret_len; in emac_hal_alloc_recv_buf()
582 if (copy_len > 0) { in emac_hal_alloc_recv_buf()
583 buf = malloc(copy_len); in emac_hal_alloc_recv_buf()
591 buff_info->copy_len = copy_len; in emac_hal_alloc_recv_buf()
605 uint32_t copy_len = 0; in emac_hal_receive_frame() local
617 copy_len = ret_len > size ? size : ret_len; in emac_hal_receive_frame()
634 copy_len = buff_info->copy_len; in emac_hal_receive_frame()
635 ret_len = copy_len; in emac_hal_receive_frame()
[all …]
/hal_espressif-latest/components/hal/esp32s3/include/hal/
Dspi_ll.h398 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
399 if (copy_len > len) { in spi_ll_write_buffer_byte()
400 copy_len = len; in spi_ll_write_buffer_byte()
404 if (copy_len != 4) { in spi_ll_write_buffer_byte()
407 memcpy(((uint8_t *)&word) + offset, data, copy_len); //modify in spi_ll_write_buffer_byte()
410 data += copy_len; in spi_ll_write_buffer_byte()
411 byte_id += copy_len; in spi_ll_write_buffer_byte()
412 len -= copy_len; in spi_ll_write_buffer_byte()
449 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
450 if (copy_len > len) { in spi_ll_read_buffer_byte()
[all …]
Dgpspi_flash_ll.h92 int copy_len = read_len; in gpspi_flash_ll_get_buffer_data() local
94 int word_len = MIN(sizeof(uint32_t), copy_len); in gpspi_flash_ll_get_buffer_data()
98 copy_len -= word_len; in gpspi_flash_ll_get_buffer_data()
Dspimem_flash_ll.h261 int copy_len = read_len; in spimem_flash_ll_get_buffer_data() local
263 int word_len = MIN(sizeof(uint32_t), copy_len); in spimem_flash_ll_get_buffer_data()
267 copy_len -= word_len; in spimem_flash_ll_get_buffer_data()
/hal_espressif-latest/components/hal/esp32c6/include/hal/
Dspi_ll.h400 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
401 if (copy_len > len) { in spi_ll_write_buffer_byte()
402 copy_len = len; in spi_ll_write_buffer_byte()
406 if (copy_len != 4) { in spi_ll_write_buffer_byte()
409 memcpy(((uint8_t *)&word) + offset, data, copy_len); //modify in spi_ll_write_buffer_byte()
412 data += copy_len; in spi_ll_write_buffer_byte()
413 byte_id += copy_len; in spi_ll_write_buffer_byte()
414 len -= copy_len; in spi_ll_write_buffer_byte()
451 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
452 if (copy_len > len) { in spi_ll_read_buffer_byte()
[all …]
Dgpspi_flash_ll.h87 int copy_len = read_len; in gpspi_flash_ll_get_buffer_data() local
89 int word_len = MIN(sizeof(uint32_t), copy_len); in gpspi_flash_ll_get_buffer_data()
93 copy_len -= word_len; in gpspi_flash_ll_get_buffer_data()
Dspimem_flash_ll.h266 int copy_len = read_len; in spimem_flash_ll_get_buffer_data() local
268 int word_len = MIN(sizeof(uint32_t), copy_len); in spimem_flash_ll_get_buffer_data()
272 copy_len -= word_len; in spimem_flash_ll_get_buffer_data()
/hal_espressif-latest/components/hal/esp32c2/include/hal/
Dspi_ll.h396 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
397 if (copy_len > len) { in spi_ll_write_buffer_byte()
398 copy_len = len; in spi_ll_write_buffer_byte()
402 if (copy_len != 4) { in spi_ll_write_buffer_byte()
405 memcpy(((uint8_t *)&word) + offset, data, copy_len); //modify in spi_ll_write_buffer_byte()
408 data += copy_len; in spi_ll_write_buffer_byte()
409 byte_id += copy_len; in spi_ll_write_buffer_byte()
410 len -= copy_len; in spi_ll_write_buffer_byte()
447 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
448 if (copy_len > len) { in spi_ll_read_buffer_byte()
[all …]
Dgpspi_flash_ll.h96 int copy_len = read_len; in gpspi_flash_ll_get_buffer_data() local
98 int word_len = MIN(sizeof(uint32_t), copy_len); in gpspi_flash_ll_get_buffer_data()
102 copy_len -= word_len; in gpspi_flash_ll_get_buffer_data()
Dspimem_flash_ll.h265 int copy_len = read_len; in spimem_flash_ll_get_buffer_data() local
267 int word_len = MIN(sizeof(uint32_t), copy_len); in spimem_flash_ll_get_buffer_data()
271 copy_len -= word_len; in spimem_flash_ll_get_buffer_data()
/hal_espressif-latest/components/hal/esp32c3/include/hal/
Dspi_ll.h396 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
397 if (copy_len > len) { in spi_ll_write_buffer_byte()
398 copy_len = len; in spi_ll_write_buffer_byte()
402 if (copy_len != 4) { in spi_ll_write_buffer_byte()
405 memcpy(((uint8_t *)&word) + offset, data, copy_len); //modify in spi_ll_write_buffer_byte()
408 data += copy_len; in spi_ll_write_buffer_byte()
409 byte_id += copy_len; in spi_ll_write_buffer_byte()
410 len -= copy_len; in spi_ll_write_buffer_byte()
447 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
448 if (copy_len > len) { in spi_ll_read_buffer_byte()
[all …]
Dgpspi_flash_ll.h87 int copy_len = read_len; in gpspi_flash_ll_get_buffer_data() local
89 int word_len = MIN(sizeof(uint32_t), copy_len); in gpspi_flash_ll_get_buffer_data()
93 copy_len -= word_len; in gpspi_flash_ll_get_buffer_data()
Dspimem_flash_ll.h265 int copy_len = read_len; in spimem_flash_ll_get_buffer_data() local
267 int word_len = MIN(sizeof(uint32_t), copy_len); in spimem_flash_ll_get_buffer_data()
271 copy_len -= word_len; in spimem_flash_ll_get_buffer_data()
/hal_espressif-latest/components/hal/esp32h2/include/hal/
Dspi_ll.h402 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
403 if (copy_len > len) { in spi_ll_write_buffer_byte()
404 copy_len = len; in spi_ll_write_buffer_byte()
408 if (copy_len != 4) { in spi_ll_write_buffer_byte()
411 memcpy(((uint8_t *)&word) + offset, data, copy_len); //modify in spi_ll_write_buffer_byte()
414 data += copy_len; in spi_ll_write_buffer_byte()
415 byte_id += copy_len; in spi_ll_write_buffer_byte()
416 len -= copy_len; in spi_ll_write_buffer_byte()
453 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
454 if (copy_len > len) { in spi_ll_read_buffer_byte()
[all …]
Dspimem_flash_ll.h267 int copy_len = read_len; in spimem_flash_ll_get_buffer_data() local
269 int word_len = MIN(sizeof(uint32_t), copy_len); in spimem_flash_ll_get_buffer_data()
273 copy_len -= word_len; in spimem_flash_ll_get_buffer_data()
/hal_espressif-latest/components/hal/esp32s2/include/hal/
Dspi_ll.h383 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
384 if (copy_len > len) { in spi_ll_read_buffer_byte()
385 copy_len = len; in spi_ll_read_buffer_byte()
388 memcpy(out_data, ((uint8_t *)&word) + offset, copy_len); in spi_ll_read_buffer_byte()
389 byte_addr += copy_len; in spi_ll_read_buffer_byte()
390 out_data += copy_len; in spi_ll_read_buffer_byte()
391 len -= copy_len; in spi_ll_read_buffer_byte()
405 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
406 if (copy_len > len) { in spi_ll_write_buffer_byte()
407 copy_len = len; in spi_ll_write_buffer_byte()
[all …]
Dgpspi_flash_ll.h83 int copy_len = read_len; in gpspi_flash_ll_get_buffer_data() local
85 int word_len = MIN(sizeof(uint32_t), copy_len); in gpspi_flash_ll_get_buffer_data()
89 copy_len -= word_len; in gpspi_flash_ll_get_buffer_data()
Dspimem_flash_ll.h261 int copy_len = read_len; in spimem_flash_ll_get_buffer_data() local
263 int word_len = MIN(sizeof(uint32_t), copy_len); in spimem_flash_ll_get_buffer_data()
267 copy_len -= word_len; in spimem_flash_ll_get_buffer_data()
/hal_espressif-latest/components/bt/host/bluedroid/stack/gap/
Dgap_conn.c302 UINT16 copy_len; in GAP_ConnReadData() local
322 copy_len = (p_buf->len > max_len)?max_len:p_buf->len; in GAP_ConnReadData()
323 max_len -= copy_len; in GAP_ConnReadData()
324 *p_len += copy_len; in GAP_ConnReadData()
326 memcpy (p_data, (UINT8 *)(p_buf + 1) + p_buf->offset, copy_len); in GAP_ConnReadData()
327 p_data += copy_len; in GAP_ConnReadData()
330 if (p_buf->len > copy_len) { in GAP_ConnReadData()
331 p_buf->offset += copy_len; in GAP_ConnReadData()
332 p_buf->len -= copy_len; in GAP_ConnReadData()
/hal_espressif-latest/components/hal/esp32/include/hal/
Dspi_flash_ll.h140 int copy_len = read_len; in spi_flash_ll_get_buffer_data() local
142 int word_len = MIN(sizeof(uint32_t), copy_len); in spi_flash_ll_get_buffer_data()
146 copy_len -= word_len; in spi_flash_ll_get_buffer_data()
/hal_espressif-latest/components/driver/uart/
Duart.c1249 size_t copy_len = 0; in uart_read_bytes() local
1271 return copy_len; in uart_read_bytes()
1280 memcpy((uint8_t *)buf + copy_len, p_uart_obj[uart_num]->rx_ptr, len_tmp); in uart_read_bytes()
1287 copy_len += len_tmp; in uart_read_bytes()
1298 return copy_len; in uart_read_bytes()