Home
last modified time | relevance | path

Searched refs:bytes_to_copy (Results 1 – 6 of 6) sorted by relevance

/openbmc/qemu/bsd-user/
H A Delfload.c171 int bytes_to_copy = (len > offset) ? offset : len; in copy_elf_strings() local
172 tmp -= bytes_to_copy; in copy_elf_strings()
173 p -= bytes_to_copy; in copy_elf_strings()
174 offset -= bytes_to_copy; in copy_elf_strings()
175 len -= bytes_to_copy; in copy_elf_strings()
176 memcpy_fromfs(pag + offset, tmp, bytes_to_copy + 1); in copy_elf_strings()
/openbmc/qemu/hw/net/
H A Dcadence_gem.c1064 unsigned rxbufsize, bytes_to_copy; in gem_receive() local
1103 bytes_to_copy = size; in gem_receive()
1129 bytes_to_copy = size; in gem_receive()
1140 bytes_to_copy += 4; in gem_receive()
1155 while (bytes_to_copy) { in gem_receive()
1164 MIN(bytes_to_copy, rxbufsize), in gem_receive()
1171 MIN(bytes_to_copy, rxbufsize)); in gem_receive()
1172 rxbuf_ptr += MIN(bytes_to_copy, rxbufsize); in gem_receive()
1173 bytes_to_copy -= MIN(bytes_to_copy, rxbufsize); in gem_receive()
1182 if (bytes_to_copy == 0) { in gem_receive()
H A Dvmxnet3.c930 size_t bytes_to_copy) in vmxnet3_pci_dma_writev() argument
935 while (bytes_to_copy) { in vmxnet3_pci_dma_writev()
938 MIN((curr_off + iov->iov_len) - start_iov_off, bytes_to_copy); in vmxnet3_pci_dma_writev()
947 bytes_to_copy -= chunk_len; in vmxnet3_pci_dma_writev()
/openbmc/qemu/hw/cxl/
H A Dcxl-mailbox-utils.c1294 uint16_t bytes_to_copy = 0; in cmd_features_get_feature() local
1321 bytes_to_copy = sizeof(CXLMemPatrolScrubReadAttrs) - in cmd_features_get_feature()
1323 bytes_to_copy = MIN(bytes_to_copy, get_feature->count); in cmd_features_get_feature()
1326 bytes_to_copy); in cmd_features_get_feature()
1331 bytes_to_copy = sizeof(CXLMemECSReadAttrs) - get_feature->offset; in cmd_features_get_feature()
1332 bytes_to_copy = MIN(bytes_to_copy, get_feature->count); in cmd_features_get_feature()
1335 bytes_to_copy); in cmd_features_get_feature()
1340 *len_out = bytes_to_copy; in cmd_features_get_feature()
1359 uint16_t bytes_to_copy = 0; in cmd_features_set_feature() local
1392 bytes_to_copy = len_in - sizeof(CXLSetFeatureInHeader); in cmd_features_set_feature()
[all …]
/openbmc/ipmitool/lib/
H A Dipmi_delloem.c599 int bytes_to_copy; in ipmi_lcd_get_platform_model_name() local
614 bytes_to_copy = MIN(lcdstring_len, IPMI_DELL_LCD_STRING1_SIZE); in ipmi_lcd_get_platform_model_name()
616 bytes_to_copy); in ipmi_lcd_get_platform_model_name()
619 bytes_to_copy = MIN(lcdstring_len - bytes_copied, in ipmi_lcd_get_platform_model_name()
621 if (bytes_to_copy < 1) { in ipmi_lcd_get_platform_model_name()
627 lcdstringblock.lcd_string.selector_n_data, bytes_to_copy); in ipmi_lcd_get_platform_model_name()
629 bytes_copied += bytes_to_copy; in ipmi_lcd_get_platform_model_name()
872 int bytes_to_copy; in ipmi_lcd_get_single_line_text() local
889 bytes_to_copy = MIN(lcdstring_len, IPMI_DELL_LCD_STRING1_SIZE); in ipmi_lcd_get_single_line_text()
891 bytes_to_copy); in ipmi_lcd_get_single_line_text()
[all …]
/openbmc/qemu/linux-user/
H A Delfload.c2351 int bytes_to_copy = (len > offset) ? offset : len; in copy_elf_strings() local
2352 tmp -= bytes_to_copy; in copy_elf_strings()
2353 p -= bytes_to_copy; in copy_elf_strings()
2354 offset -= bytes_to_copy; in copy_elf_strings()
2355 len -= bytes_to_copy; in copy_elf_strings()
2357 memcpy_fromfs(scratch + offset, tmp, bytes_to_copy); in copy_elf_strings()
2382 int bytes_to_copy = (len > remaining) ? remaining : len; in copy_elf_strings() local
2384 memcpy_fromfs(scratch + (p - top), tmp, bytes_to_copy); in copy_elf_strings()
2386 tmp += bytes_to_copy; in copy_elf_strings()
2387 remaining -= bytes_to_copy; in copy_elf_strings()
[all …]