| /openbmc/qemu/chardev/ |
| H A D | char-win-stdio.c | 244 int len1; in win_stdio_write() local 246 len1 = len; in win_stdio_write() 248 while (len1 > 0) { in win_stdio_write() 249 if (!WriteFile(hStdOut, buf, len1, &dwSize, NULL)) { in win_stdio_write() 253 len1 -= dwSize; in win_stdio_write() 256 return len - len1; in win_stdio_write()
|
| H A D | char-win.c | 157 static int win_chr_write(Chardev *chr, const uint8_t *buf, int len1) in win_chr_write() argument 162 len = len1; in win_chr_write() 189 return len1 - len; in win_chr_write()
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 308 | 98 len1=$(stat -c '%s' "$1") 101 if [ "$len1" != "$len2" ]; then 103 echo "$len1 != $len2" >&2 108 echo "$len1"
|
| H A D | 125 | 88 len1=$(get_image_size_on_host) 90 if [ $len1 -gt $len0 ]; then
|
| /openbmc/qemu/target/sparc/ |
| H A D | mmu_helper.c | 401 int len1; in sparc_cpu_memory_rw_debug() local 433 len1 = fp - addr; in sparc_cpu_memory_rw_debug() 434 if (cpu_memory_rw_debug(cs, addr, buf, len1, is_write) != 0) { in sparc_cpu_memory_rw_debug() 437 addr += len1; in sparc_cpu_memory_rw_debug() 438 len -= len1; in sparc_cpu_memory_rw_debug() 439 buf += len1; in sparc_cpu_memory_rw_debug() 446 len1 = 64 - off; in sparc_cpu_memory_rw_debug() 448 if (len1 > len) { in sparc_cpu_memory_rw_debug() 449 len1 = len; in sparc_cpu_memory_rw_debug() 452 for (; len1; len1--) { in sparc_cpu_memory_rw_debug()
|
| /openbmc/qemu/hw/net/ |
| H A D | tulip.c | 167 int len1 = (desc->control >> RDES1_BUF1_SIZE_SHIFT) & RDES1_BUF1_SIZE_MASK; in tulip_copy_rx_bytes() local 171 if (s->rx_frame_len && len1) { in tulip_copy_rx_bytes() 172 if (s->rx_frame_len > len1) { in tulip_copy_rx_bytes() 173 len = len1; in tulip_copy_rx_bytes() 581 int len1 = (desc->control >> TDES1_BUF1_SIZE_SHIFT) & TDES1_BUF1_SIZE_MASK; in tulip_copy_tx_buffers() local 584 if (s->tx_frame_len + len1 > sizeof(s->tx_frame)) { in tulip_copy_tx_buffers() 587 __func__, s->tx_frame_len, len1, sizeof(s->tx_frame)); in tulip_copy_tx_buffers() 590 if (len1) { in tulip_copy_tx_buffers() 592 s->tx_frame + s->tx_frame_len, len1); in tulip_copy_tx_buffers() 593 s->tx_frame_len += len1; in tulip_copy_tx_buffers() [all …]
|
| H A D | npcm7xx_emc.c | 489 static ssize_t emc_receive(NetClientState *nc, const uint8_t *buf, size_t len1) in emc_receive() argument 492 const uint32_t len = len1; in emc_receive()
|
| /openbmc/qemu/include/qemu/ |
| H A D | range.h | 213 static inline bool ranges_overlap(uint64_t first1, uint64_t len1, in ranges_overlap() argument 216 uint64_t last1 = range_get_last(first1, len1); in ranges_overlap()
|
| /openbmc/u-boot/drivers/mtd/ubi/ |
| H A D | vtbl.c | 259 int len1 = be16_to_cpu(vtbl[i].name_len); local 262 if (len1 > 0 && len1 == len2 && 264 !strncmp(vtbl[i].name, vtbl[n].name, len1)) { 266 !strncmp((char *)vtbl[i].name, vtbl[n].name, len1)) {
|
| /openbmc/qemu/tests/unit/ |
| H A D | test-xs-node.c | 110 size_t len1 = 0, len2 = 0; in compare_content() local 113 len1 = c1->len; in compare_content() 118 if (len1 != len2) { in compare_content() 122 if (!len1) { in compare_content() 126 return !memcmp(c1->data, c2->data, len1); in compare_content()
|
| H A D | test-hbitmap.c | 929 int64_t len1 = 0, len2; in test_hbitmap_next_dirty_area_check_limited() local 935 &off1, &len1); in test_hbitmap_next_dirty_area_check_limited() 955 g_assert_cmpint(len1, ==, len2); in test_hbitmap_next_dirty_area_check_limited()
|
| /openbmc/qemu/target/arm/tcg/ |
| H A D | vec_internal.h | 446 unsigned len1 = len - len0; in depositn() local 449 p[1] = deposit64(p[1], 0, len1, val >> len0); in depositn()
|
| /openbmc/u-boot/drivers/video/ |
| H A D | stb_truetype.h | 857 STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2… 3044 …t__CompareUTF8toUTF16_bigendian_prefix(const stbtt_uint8 *s1, stbtt_int32 len1, const stbtt_uint8 … in stbtt__CompareUTF8toUTF16_bigendian_prefix() argument 3052 if (i >= len1) return -1; in stbtt__CompareUTF8toUTF16_bigendian_prefix() 3055 if (i+1 >= len1) return -1; in stbtt__CompareUTF8toUTF16_bigendian_prefix() 3061 if (i+3 >= len1) return -1; in stbtt__CompareUTF8toUTF16_bigendian_prefix() 3072 if (i+2 >= len1) return -1; in stbtt__CompareUTF8toUTF16_bigendian_prefix() 3083 STBTT_DEF int stbtt_CompareUTF8toUTF16_bigendian(const char *s1, int len1, const char *s2, int len2… in stbtt_CompareUTF8toUTF16_bigendian() argument 3085 …return len1 == stbtt__CompareUTF8toUTF16_bigendian_prefix((const stbtt_uint8*) s1, len1, (const st… in stbtt_CompareUTF8toUTF16_bigendian()
|
| /openbmc/qemu/crypto/ |
| H A D | block-luks.c | 529 unsigned int len1 = in qcrypto_block_luks_check_header() local 561 if (!detached && start1 + len1 > luks->header.payload_offset_sector) { in qcrypto_block_luks_check_header() 576 if (ranges_overlap(start1, len1, start2, len2)) { in qcrypto_block_luks_check_header()
|
| /openbmc/qemu/scripts/ |
| H A D | decodetree.py | 1248 len1 = len(line) 1263 if len1 == 0: 1265 indent = len1 - len2
|
| /openbmc/qemu/hw/cxl/ |
| H A D | cxl-mailbox-utils.c | 3135 uint64_t len1, len2 = 0, len_done = 0; in cxl_dc_extent_release_dry_run() local 3139 len1 = dpa - ent->start_dpa; in cxl_dc_extent_release_dry_run() 3146 len_done = ent_len - len1 - len2; in cxl_dc_extent_release_dry_run() 3151 if (len1) { in cxl_dc_extent_release_dry_run() 3154 len1, NULL, 0); in cxl_dc_extent_release_dry_run()
|
| /openbmc/qemu/hw/usb/ |
| H A D | hcd-ehci.c | 1443 uint32_t len1 = len - len2; in ehci_process_itd() local 1444 qemu_sglist_add(&ehci->isgl, ptr1 + off, len1); in ehci_process_itd()
|