Home
last modified time | relevance | path

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

/hal_espressif-3.7.0/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-3.7.0/components/hal/esp32c3/include/hal/
Dspi_ll.h387 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
388 if (copy_len > len) { in spi_ll_write_buffer_byte()
389 copy_len = len; in spi_ll_write_buffer_byte()
393 if (copy_len != 4) { in spi_ll_write_buffer_byte()
396 memcpy(((uint8_t *)&word) + offset, data, copy_len); //modify in spi_ll_write_buffer_byte()
399 data += copy_len; in spi_ll_write_buffer_byte()
400 byte_id += copy_len; in spi_ll_write_buffer_byte()
401 len -= copy_len; in spi_ll_write_buffer_byte()
438 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
439 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-3.7.0/components/hal/esp32s3/include/hal/
Dspi_ll.h389 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
390 if (copy_len > len) { in spi_ll_write_buffer_byte()
391 copy_len = len; in spi_ll_write_buffer_byte()
395 if (copy_len != 4) { in spi_ll_write_buffer_byte()
398 memcpy(((uint8_t *)&word) + offset, data, copy_len); //modify in spi_ll_write_buffer_byte()
401 data += copy_len; in spi_ll_write_buffer_byte()
402 byte_id += copy_len; in spi_ll_write_buffer_byte()
403 len -= copy_len; in spi_ll_write_buffer_byte()
440 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
441 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-3.7.0/components/hal/esp32c6/include/hal/
Dspi_ll.h391 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
392 if (copy_len > len) { in spi_ll_write_buffer_byte()
393 copy_len = len; in spi_ll_write_buffer_byte()
397 if (copy_len != 4) { in spi_ll_write_buffer_byte()
400 memcpy(((uint8_t *)&word) + offset, data, copy_len); //modify in spi_ll_write_buffer_byte()
403 data += copy_len; in spi_ll_write_buffer_byte()
404 byte_id += copy_len; in spi_ll_write_buffer_byte()
405 len -= copy_len; in spi_ll_write_buffer_byte()
442 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
443 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-3.7.0/components/hal/esp32h2/include/hal/
Dspi_ll.h393 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
394 if (copy_len > len) { in spi_ll_write_buffer_byte()
395 copy_len = len; in spi_ll_write_buffer_byte()
399 if (copy_len != 4) { in spi_ll_write_buffer_byte()
402 memcpy(((uint8_t *)&word) + offset, data, copy_len); //modify in spi_ll_write_buffer_byte()
405 data += copy_len; in spi_ll_write_buffer_byte()
406 byte_id += copy_len; in spi_ll_write_buffer_byte()
407 len -= copy_len; in spi_ll_write_buffer_byte()
444 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
445 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-3.7.0/components/hal/esp32c2/include/hal/
Dspi_ll.h387 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
388 if (copy_len > len) { in spi_ll_write_buffer_byte()
389 copy_len = len; in spi_ll_write_buffer_byte()
393 if (copy_len != 4) { in spi_ll_write_buffer_byte()
396 memcpy(((uint8_t *)&word) + offset, data, copy_len); //modify in spi_ll_write_buffer_byte()
399 data += copy_len; in spi_ll_write_buffer_byte()
400 byte_id += copy_len; in spi_ll_write_buffer_byte()
401 len -= copy_len; in spi_ll_write_buffer_byte()
438 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
439 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-3.7.0/components/hal/esp32s2/include/hal/
Dspi_ll.h372 int copy_len = 4 - offset; in spi_ll_read_buffer_byte() local
373 if (copy_len > len) { in spi_ll_read_buffer_byte()
374 copy_len = len; in spi_ll_read_buffer_byte()
377 memcpy(out_data, ((uint8_t *)&word) + offset, copy_len); in spi_ll_read_buffer_byte()
378 byte_addr += copy_len; in spi_ll_read_buffer_byte()
379 out_data += copy_len; in spi_ll_read_buffer_byte()
380 len -= copy_len; in spi_ll_read_buffer_byte()
394 int copy_len = 4 - offset; in spi_ll_write_buffer_byte() local
395 if (copy_len > len) { in spi_ll_write_buffer_byte()
396 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-3.7.0/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-3.7.0/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-3.7.0/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()