Home
last modified time | relevance | path

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

/device/soc/esp/esp32/components/bt/host/bluedroid/stack/sdp/
Dsdp_utils.c984 size_t len_to_copy; in sdpu_build_partial_attrib_entry() local
996 len_to_copy = ((attr_len - *offset) < len) ? (attr_len - *offset) : len; in sdpu_build_partial_attrib_entry()
998 memcpy(p_out, &p_attr_buff[*offset], len_to_copy); in sdpu_build_partial_attrib_entry()
1000 p_out = &p_out[len_to_copy]; in sdpu_build_partial_attrib_entry()
1001 *offset += len_to_copy; in sdpu_build_partial_attrib_entry()
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/src/fw_lib/
Dsbuf_func.c1590 uint32_t len_to_copy = sizeof( struct sbuf_idx_set ); in sbuf_fops_write() local
1594 if ( count != len_to_copy ) { in sbuf_fops_write()
1595 … LOG( LOG_ERR, "write size mismatch, size: %u, expected: %d.", (uint32_t)count, len_to_copy ); in sbuf_fops_write()
1599 rc = copy_from_user( &idx_set, buf, len_to_copy ); in sbuf_fops_write()
1601 LOG( LOG_ERR, "copy_from_user failed, not copied: %d, expected: %u.", rc, len_to_copy ); in sbuf_fops_write()
1614 return rc ? rc : len_to_copy; in sbuf_fops_write()
1623 uint32_t len_to_copy = sizeof( struct sbuf_idx_set ); in sbuf_fops_read() local
1625 if ( count != len_to_copy ) { in sbuf_fops_read()
1626 LOG( LOG_ERR, "read size mismatch, size: %u, expected: %d.", (uint32_t)count, len_to_copy ); in sbuf_fops_read()
1647 rc = copy_to_user( buf, &idx_set, len_to_copy ); in sbuf_fops_read()
[all …]