Searched refs:max_bytes (Results 1 – 7 of 7) sorted by relevance
| /openbmc/openbmc/poky/meta/recipes-extended/unzip/unzip/ |
| H A D | CVE-2022-0529.patch | 18 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 D | virtio-rng.c | 157 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 D | virtio-rng.h | 27 uint64_t max_bytes; member
|
| /openbmc/u-boot/fs/ubifs/ |
| H A D | sb.c | 352 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 D | dwc_ahsata.c | 326 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/sd/ |
| H A D | allwinner-sdhost.c | 331 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 D | mirror.c | 293 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()
|