Searched refs:bytes_to_copy (Results 1 – 4 of 4) sorted by relevance
1066 u_longlong_t bytes_to_copy; in filecopy() local1094 bytes_to_copy = src_attr.st_size; in filecopy()1095 while (bytes_to_copy) { in filecopy()1096 if (bytes_to_copy > BUFSIZE) in filecopy()1099 nbytes = bytes_to_copy; in filecopy()1104 bytes_to_copy -= nbytes; in filecopy()1110 if (bytes_to_copy > 0) { in filecopy()
1024 int bytes_to_copy = 0; in read_bytes() local1027 bytes_to_copy = bytes_to_read; in read_bytes()1029 bytes_to_copy = (b->length - b->offset); in read_bytes()1031 if (1 == bytes_to_copy) { in read_bytes()1034 if (0 == bytes_to_copy) { in read_bytes()1038 memcpy(return_buffer,b->p+b->offset,bytes_to_copy); in read_bytes()1039 b->offset += bytes_to_copy; in read_bytes()1041 return bytes_to_copy; in read_bytes()
1332 int bytes_to_copy; in cdata() local1343 bytes_to_copy = len; in cdata()1344 if (bytes_to_copy > bytes_left) in cdata()1345 bytes_to_copy = bytes_left; in cdata()1347 if (bytes_to_copy > 0) in cdata()1349 bytes_to_copy); in cdata()1351 pc->cdata_buf_len += bytes_to_copy; in cdata()
2523 u16_t free_bytes_to_copy = 0, bytes_to_copy = 0, gen_buf_offset = 0; in lm_squeeze_rx_buffer_list() local2538 bytes_to_copy = gen_buf_copy_from->placed_bytes; in lm_squeeze_rx_buffer_list()2539 if (bytes_to_copy <= free_bytes_to_copy) { in lm_squeeze_rx_buffer_list()2541 gen_buf_copy_from->buf_virt, bytes_to_copy); in lm_squeeze_rx_buffer_list()2542 free_bytes_to_copy -= bytes_to_copy; in lm_squeeze_rx_buffer_list()2543 gen_buf_copy_to->placed_bytes += bytes_to_copy; in lm_squeeze_rx_buffer_list()2555 … gen_buf_copy_from->buf_virt + free_bytes_to_copy, bytes_to_copy - free_bytes_to_copy); in lm_squeeze_rx_buffer_list()