Home
last modified time | relevance | path

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

123

/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/linux/drivers/gpu/drm/radeon/
H A Datombios_i2c.c105 int i, remaining, current_count, buffer_offset, max_bytes, ret; in radeon_atom_hw_i2c_xfer() local
126 max_bytes = ATOM_MAX_HW_I2C_READ; in radeon_atom_hw_i2c_xfer()
129 max_bytes = ATOM_MAX_HW_I2C_WRITE; in radeon_atom_hw_i2c_xfer()
133 if (remaining > max_bytes) in radeon_atom_hw_i2c_xfer()
134 current_count = max_bytes; in radeon_atom_hw_i2c_xfer()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Datombios_i2c.c112 int i, remaining, current_count, buffer_offset, max_bytes, ret; in amdgpu_atombios_i2c_xfer() local
133 max_bytes = ATOM_MAX_HW_I2C_READ; in amdgpu_atombios_i2c_xfer()
136 max_bytes = ATOM_MAX_HW_I2C_WRITE; in amdgpu_atombios_i2c_xfer()
140 if (remaining > max_bytes) in amdgpu_atombios_i2c_xfer()
141 current_count = max_bytes; in amdgpu_atombios_i2c_xfer()
H A Damdgpu_vram_mgr.c427 u64 vis_usage = 0, max_bytes, cur_size, min_block_size; in amdgpu_vram_mgr_new() local
443 max_bytes = adev->gmc.mc_vram_size; in amdgpu_vram_mgr_new()
445 max_bytes -= AMDGPU_VM_RESERVED_VRAM; in amdgpu_vram_mgr_new()
467 if (ttm_resource_manager_usage(man) > max_bytes) { in amdgpu_vram_mgr_new()
/openbmc/linux/include/sound/
H A Dhda_component.h20 bool *audio_enabled, char *buffer, int max_bytes);
44 char *buffer, int max_bytes) in snd_hdac_acomp_get_eld() argument
/openbmc/qemu/hw/virtio/
H A Dvirtio-rng.c157 vrng->quota_remaining = vrng->conf.max_bytes; in check_rate_limit()
187 if (vrng->conf.max_bytes > INT64_MAX) { in virtio_rng_device_realize()
221 vrng->quota_remaining = vrng->conf.max_bytes; in virtio_rng_device_realize()
257 DEFINE_PROP_UINT64("max-bytes", VirtIORNG, conf.max_bytes, INT64_MAX),
/openbmc/linux/fs/btrfs/tests/
H A Dextent-io-tests.c116 u64 max_bytes = BTRFS_MAX_EXTENT_SIZE; in test_find_delalloc() local
117 u64 total_dirty = 2 * max_bytes; in test_find_delalloc()
193 set_extent_bit(tmp, sectorsize, max_bytes - 1, EXTENT_DELALLOC, NULL); in test_find_delalloc()
202 if (start != test_start || end != max_bytes - 1) { in test_find_delalloc()
204 test_start, max_bytes - 1, start, end); in test_find_delalloc()
221 test_start = max_bytes + sectorsize; in test_find_delalloc()
248 set_extent_bit(tmp, max_bytes, total_dirty - 1, EXTENT_DELALLOC, NULL); in test_find_delalloc()
274 (max_bytes + SZ_1M) >> PAGE_SHIFT); in test_find_delalloc()
/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/linux/include/linux/
H A Duio.h329 iov_iter_npages_cap(struct iov_iter *i, int maxpages, size_t max_bytes) in iov_iter_npages_cap() argument
334 if (iov_iter_count(i) > max_bytes) { in iov_iter_npages_cap()
335 shorted = iov_iter_count(i) - max_bytes; in iov_iter_npages_cap()
336 iov_iter_truncate(i, max_bytes); in iov_iter_npages_cap()
/openbmc/linux/fs/ubifs/
H A Dsb.c381 long long max_bytes; in validate_sb() local
440 max_bytes = (long long)c->leb_size * UBIFS_MIN_BUD_LEBS; in validate_sb()
441 if (c->max_bud_bytes < max_bytes) { in validate_sb()
443 c->max_bud_bytes, max_bytes); in validate_sb()
447 max_bytes = (long long)c->leb_size * c->main_lebs; in validate_sb()
448 if (c->max_bud_bytes > max_bytes) { in validate_sb()
450 c->max_bud_bytes, max_bytes); in validate_sb()
484 if (c->rp_size < 0 || max_bytes < c->rp_size) { in validate_sb()
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-rng.h27 uint64_t max_bytes; member
/openbmc/linux/drivers/target/
H A Dtarget_core_xcopy.c662 unsigned long long max_bytes, max_bytes_src, max_bytes_dst, max_blocks; in target_xcopy_do_work() local
692 max_bytes = min_t(u64, max_bytes_src, max_bytes_dst); in target_xcopy_do_work()
693 max_bytes = min_t(u64, max_bytes, XCOPY_MAX_BYTES); in target_xcopy_do_work()
699 max_blocks = max_bytes >> ilog2(src_dev->dev_attrib.block_size); in target_xcopy_do_work()
707 u32 cur_bytes = min_t(u64, max_bytes, nolb * src_dev->dev_attrib.block_size); in target_xcopy_do_work()
/openbmc/linux/include/drm/
H A Ddrm_audio_component.h64 unsigned char *buf, int max_bytes);
/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/linux/fs/btrfs/
H A Dextent-io-tree.h130 u64 max_bytes, u32 bits, int contig,
193 u64 *end, u64 max_bytes,
/openbmc/qemu/target/s390x/tcg/
H A Dmisc_helper.c694 int max_bytes; in HELPER() local
702 max_bytes = ROUND_UP(used_stfl_bytes, 8); in HELPER()
709 for (i = 0; i < MIN(count_bytes, max_bytes); ++i) { in HELPER()
713 env->regs[0] = deposit64(env->regs[0], 0, 8, (max_bytes / 8) - 1); in HELPER()
714 return count_bytes >= max_bytes ? 0 : 3; in HELPER()
/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/linux/sound/hda/
H A Dhdac_component.c163 bool *audio_enabled, char *buffer, int max_bytes) in snd_hdac_acomp_get_eld() argument
180 buffer, max_bytes); in snd_hdac_acomp_get_eld()
/openbmc/linux/drivers/spi/
H A Dspi-geni-qcom.c746 unsigned int max_bytes; in geni_spi_handle_tx() local
757 max_bytes = (mas->tx_fifo_depth - mas->tx_wm) * bytes_per_fifo_word; in geni_spi_handle_tx()
758 if (mas->tx_rem_bytes < max_bytes) in geni_spi_handle_tx()
759 max_bytes = mas->tx_rem_bytes; in geni_spi_handle_tx()
762 while (i < max_bytes) { in geni_spi_handle_tx()
768 bytes_to_write = min(bytes_per_fifo_word, max_bytes - i); in geni_spi_handle_tx()
773 mas->tx_rem_bytes -= max_bytes; in geni_spi_handle_tx()
/openbmc/linux/drivers/s390/block/
H A Ddasd_fba.c771 unsigned int max_bytes, max_discard_sectors; in dasd_fba_setup_blk_queue() local
787 max_bytes = USHRT_MAX * logical_block_size; in dasd_fba_setup_blk_queue()
788 max_bytes = ALIGN_DOWN(max_bytes, PAGE_SIZE); in dasd_fba_setup_blk_queue()
789 max_discard_sectors = max_bytes / logical_block_size; in dasd_fba_setup_blk_queue()
/openbmc/linux/block/
H A Dblk-merge.c233 unsigned max_segs, unsigned max_bytes) in bvec_split_segs() argument
235 unsigned max_len = min(max_bytes, UINT_MAX) - *bytes; in bvec_split_segs()
280 unsigned *segs, struct bio_set *bs, unsigned max_bytes) in bio_split_rw() argument
295 bytes + bv.bv_len <= max_bytes && in bio_split_rw()
301 lim->max_segments, max_bytes)) in bio_split_rw()
/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_…
/openbmc/linux/net/sched/
H A Dsch_netem.c654 q->slot.bytes_left = q->slot_config.max_bytes; in get_slot_next()
814 if (q->slot_config.max_bytes == 0) in get_slot()
815 q->slot_config.max_bytes = INT_MAX; in get_slot()
821 q->slot.bytes_left = q->slot_config.max_bytes; in get_slot()
1215 if (slot.max_bytes == INT_MAX) in netem_dump()
1216 slot.max_bytes = 0; in netem_dump()
/openbmc/linux/fs/gfs2/
H A Dfile.c1250 loff_t bytes, max_bytes, max_blks; in __gfs2_fallocate() local
1288 max_bytes = (len > max_chunk_size) ? max_chunk_size : len; in __gfs2_fallocate()
1317 calc_max_reserv(ip, &max_bytes, &data_blocks, in __gfs2_fallocate()
1330 error = fallocate_chunk(inode, offset, max_bytes, mode); in __gfs2_fallocate()
1336 len -= max_bytes; in __gfs2_fallocate()
1337 offset += max_bytes; in __gfs2_fallocate()
/openbmc/linux/drivers/s390/scsi/
H A Dzfcp_fc.c693 struct zfcp_adapter *adapter, int max_bytes) in zfcp_fc_send_gpn_ft() argument
700 zfcp_fc_ct_ns_init(&req->ct_hdr, FC_NS_GPN_FT, max_bytes); in zfcp_fc_send_gpn_ft()
809 int chain, max_entries, buf_num, max_bytes; in zfcp_fc_scan_ports() local
816 max_bytes = chain ? ZFCP_FC_GPN_FT_MAX_SIZE : ZFCP_FC_CT_SIZE_PAGE; in zfcp_fc_scan_ports()
830 ret = zfcp_fc_send_gpn_ft(fc_req, adapter, max_bytes); in zfcp_fc_scan_ports()

123