Home
last modified time | relevance | path

Searched refs:max_bytes (Results 1 – 14 of 14) sorted by relevance

/openbmc/openbmc/poky/meta/recipes-extended/unzip/unzip/
H A DCVE-2022-0529.patch18 if (max_bytes < MAX_ESCAPE_BYTES)
19 max_bytes = MAX_ESCAPE_BYTES;
21 - if ((buffer = (char *)malloc(wsize * max_bytes + 1)) == NULL) {
22 + buffer_size = wsize * max_bytes + 1;
/openbmc/qemu/hw/virtio/
H A Dvirtio-rng.c157 vrng->quota_remaining = vrng->conf.max_bytes; in check_rate_limit()
188 if (vrng->conf.max_bytes == 0 || in virtio_rng_device_realize()
189 vrng->conf.max_bytes > INT64_MAX) { in virtio_rng_device_realize()
223 vrng->quota_remaining = vrng->conf.max_bytes; in virtio_rng_device_realize()
259 DEFINE_PROP_UINT64("max-bytes", VirtIORNG, conf.max_bytes, INT64_MAX),
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-rng.h27 uint64_t max_bytes; member
/openbmc/u-boot/fs/ubifs/
H A Dsb.c352 long long max_bytes; in validate_sb() local
411 max_bytes = (long long)c->leb_size * UBIFS_MIN_BUD_LEBS; in validate_sb()
412 if (c->max_bud_bytes < max_bytes) { in validate_sb()
414 c->max_bud_bytes, max_bytes); in validate_sb()
418 max_bytes = (long long)c->leb_size * c->main_lebs; in validate_sb()
419 if (c->max_bud_bytes > max_bytes) { in validate_sb()
421 c->max_bud_bytes, max_bytes); in validate_sb()
455 if (c->rp_size < 0 || max_bytes < c->rp_size) { in validate_sb()
/openbmc/u-boot/drivers/ata/
H A Ddwc_ahsata.c326 u32 sg_count, max_bytes; in ahci_fill_sg() local
329 max_bytes = MAX_DATA_BYTES_PER_SG; in ahci_fill_sg()
330 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg()
338 cpu_to_le32((u32)buf + i * max_bytes); in ahci_fill_sg()
341 (buf_len < max_bytes in ahci_fill_sg()
343 : (max_bytes - 1))); in ahci_fill_sg()
345 buf_len -= max_bytes; in ahci_fill_sg()
/openbmc/qemu/hw/audio/
H A Des1370.c699 int max_bytes; in es1370_run_channel() local
708 max_bytes = free_or_avail; in es1370_run_channel()
709 max_bytes &= ~((1 << d->shift) - 1); in es1370_run_channel()
710 if (!max_bytes) { in es1370_run_channel()
716 es1370_transfer_audio (s, d, b->sctl_loopsel, max_bytes, &irq); in es1370_run_channel()
/openbmc/qemu/target/s390x/tcg/
H A Dmisc_helper.c715 int max_bytes; in HELPER() local
723 max_bytes = ROUND_UP(used_stfl_bytes, 8); in HELPER()
730 for (i = 0; i < MIN(count_bytes, max_bytes); ++i) { in HELPER()
734 env->regs[0] = deposit64(env->regs[0], 0, 8, (max_bytes / 8) - 1); in HELPER()
735 return count_bytes >= max_bytes ? 0 : 3; in HELPER()
/openbmc/qemu/hw/sd/
H A Dtrace-events5 …t desc_size, bool is_write, uint32_t max_bytes) "desc_addr 0x%" PRIx64 " desc_size %" PRIu32 " is_…
H A Dallwinner-sdhost.c331 bool is_write, uint32_t max_bytes) in allwinner_sdhost_process_desc() argument
335 uint32_t num_bytes = max_bytes; in allwinner_sdhost_process_desc()
352 is_write, max_bytes); in allwinner_sdhost_process_desc()
/openbmc/qemu/block/
H A Dmirror.c293 int max_bytes = s->granularity * s->max_iov; in mirror_cow_align() local
303 if (align_bytes > max_bytes) { in mirror_cow_align()
304 align_bytes = max_bytes; in mirror_cow_align()
357 uint64_t max_bytes; in mirror_co_read() local
359 max_bytes = s->granularity * s->max_iov; in mirror_co_read()
362 op->bytes = MIN(s->buf_size, MIN(max_bytes, op->bytes)); in mirror_co_read()
H A Dio.c1337 int64_t total_bytes, max_bytes; in bdrv_aligned_preadv() local
1400 max_bytes = ROUND_UP(MAX(0, total_bytes - offset), align); in bdrv_aligned_preadv()
1401 if (bytes <= max_bytes && bytes <= max_transfer) { in bdrv_aligned_preadv()
1409 if (max_bytes) { in bdrv_aligned_preadv()
1410 num = MIN(bytes_remaining, MIN(max_bytes, max_transfer)); in bdrv_aligned_preadv()
1417 max_bytes -= num; in bdrv_aligned_preadv()
H A Discsi.c706 uint64_t lba, max_bytes; in iscsi_co_block_status() local
726 max_bytes = (iscsilun->num_blocks - lba) * iscsilun->block_size; in iscsi_co_block_status()
770 *pnum = MIN((int64_t) lbasd->num_blocks * iscsilun->block_size, max_bytes); in iscsi_co_block_status()
H A Dfile-posix.c1226 int max_bytes = 0; in hdev_get_max_hw_transfer() local
1227 if (ioctl(fd, BLKSECTGET, &max_bytes) == 0) { in hdev_get_max_hw_transfer()
1228 return max_bytes; in hdev_get_max_hw_transfer()
/openbmc/qemu/hw/core/
H A Dloader.c724 size_t max_bytes; in load_uboot_image() local
728 max_bytes = UBOOT_MAX_GUNZIP_BYTES; in load_uboot_image()
729 data = g_malloc(max_bytes); in load_uboot_image()
731 bytes = gunzip(data, max_bytes, compressed_data, hdr->ih_size); in load_uboot_image()