Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/yocto/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;
/OK3568_Linux_fs/kernel/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.c320 uint64_t vis_usage = 0, mem_bytes, max_bytes; in amdgpu_vram_mgr_new() local
328 max_bytes = adev->gmc.mc_vram_size; in amdgpu_vram_mgr_new()
330 max_bytes -= AMDGPU_VM_RESERVED_VRAM; in amdgpu_vram_mgr_new()
334 if (atomic64_add_return(mem_bytes, &mgr->usage) > max_bytes) { in amdgpu_vram_mgr_new()
H A Damdgpu_ttm.c2118 uint32_t max_bytes; in amdgpu_copy_buffer() local
2128 max_bytes = adev->mman.buffer_funcs->copy_max_bytes; in amdgpu_copy_buffer()
2129 num_loops = DIV_ROUND_UP(byte_count, max_bytes); in amdgpu_copy_buffer()
2151 uint32_t cur_size_in_bytes = min(byte_count, max_bytes); in amdgpu_copy_buffer()
2185 uint32_t max_bytes = adev->mman.buffer_funcs->fill_max_bytes; in amdgpu_fill_buffer() local
2212 num_loops += DIV_ROUND_UP_ULL(byte_count, max_bytes); in amdgpu_fill_buffer()
2246 max_bytes); in amdgpu_fill_buffer()
/OK3568_Linux_fs/kernel/fs/btrfs/tests/
H A Dextent-io-tests.c67 u64 max_bytes = BTRFS_MAX_EXTENT_SIZE; in test_find_delalloc() local
68 u64 total_dirty = 2 * max_bytes; in test_find_delalloc()
144 set_extent_delalloc(tmp, sectorsize, max_bytes - 1, 0, NULL); in test_find_delalloc()
153 if (start != test_start || end != max_bytes - 1) { in test_find_delalloc()
155 test_start, max_bytes - 1, start, end); in test_find_delalloc()
172 test_start = max_bytes + sectorsize; in test_find_delalloc()
199 set_extent_delalloc(tmp, max_bytes, total_dirty - 1, 0, NULL); in test_find_delalloc()
225 (max_bytes + SZ_1M) >> PAGE_SHIFT); in test_find_delalloc()
/OK3568_Linux_fs/kernel/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
/OK3568_Linux_fs/u-boot/fs/ubifs/
H A Dsb.c353 long long max_bytes; in validate_sb() local
412 max_bytes = (long long)c->leb_size * UBIFS_MIN_BUD_LEBS; in validate_sb()
413 if (c->max_bud_bytes < max_bytes) { in validate_sb()
415 c->max_bud_bytes, max_bytes); in validate_sb()
419 max_bytes = (long long)c->leb_size * c->main_lebs; in validate_sb()
420 if (c->max_bud_bytes > max_bytes) { in validate_sb()
422 c->max_bud_bytes, max_bytes); in validate_sb()
456 if (c->rp_size < 0 || max_bytes < c->rp_size) { in validate_sb()
/OK3568_Linux_fs/kernel/drivers/spi/
H A Dspi-geni-qcom.c404 unsigned int max_bytes; in geni_spi_handle_tx() local
415 max_bytes = (mas->tx_fifo_depth - mas->tx_wm) * bytes_per_fifo_word; in geni_spi_handle_tx()
416 if (mas->tx_rem_bytes < max_bytes) in geni_spi_handle_tx()
417 max_bytes = mas->tx_rem_bytes; in geni_spi_handle_tx()
420 while (i < max_bytes) { in geni_spi_handle_tx()
426 bytes_to_write = min(bytes_per_fifo_word, max_bytes - i); in geni_spi_handle_tx()
431 mas->tx_rem_bytes -= max_bytes; in geni_spi_handle_tx()
/OK3568_Linux_fs/kernel/fs/ubifs/
H A Dsb.c378 long long max_bytes; in validate_sb() local
437 max_bytes = (long long)c->leb_size * UBIFS_MIN_BUD_LEBS; in validate_sb()
438 if (c->max_bud_bytes < max_bytes) { in validate_sb()
440 c->max_bud_bytes, max_bytes); in validate_sb()
444 max_bytes = (long long)c->leb_size * c->main_lebs; in validate_sb()
445 if (c->max_bud_bytes > max_bytes) { in validate_sb()
447 c->max_bud_bytes, max_bytes); in validate_sb()
481 if (c->rp_size < 0 || max_bytes < c->rp_size) { in validate_sb()
/OK3568_Linux_fs/u-boot/drivers/ata/
H A Ddwc_ahsata.c327 u32 sg_count, max_bytes; in ahci_fill_sg() local
330 max_bytes = MAX_DATA_BYTES_PER_SG; in ahci_fill_sg()
331 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg()
339 cpu_to_le32((u32)buf + i * max_bytes); in ahci_fill_sg()
342 (buf_len < max_bytes in ahci_fill_sg()
344 : (max_bytes - 1))); in ahci_fill_sg()
346 buf_len -= max_bytes; in ahci_fill_sg()
/OK3568_Linux_fs/kernel/drivers/s390/block/
H A Ddasd_fba.c780 unsigned int max_bytes, max_discard_sectors; in dasd_fba_setup_blk_queue() local
797 max_bytes = USHRT_MAX * logical_block_size; in dasd_fba_setup_blk_queue()
798 max_bytes = ALIGN_DOWN(max_bytes, PAGE_SIZE); in dasd_fba_setup_blk_queue()
799 max_discard_sectors = max_bytes / logical_block_size; in dasd_fba_setup_blk_queue()
/OK3568_Linux_fs/kernel/include/drm/
H A Ddrm_audio_component.h61 unsigned char *buf, int max_bytes);
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/openssl/include/openssl/
H A Drand.h105 int RAND_load_file(const char *file, long max_bytes);
/OK3568_Linux_fs/kernel/net/sched/
H A Dsch_netem.c645 q->slot.bytes_left = q->slot_config.max_bytes; in get_slot_next()
813 if (q->slot_config.max_bytes == 0) in get_slot()
814 q->slot_config.max_bytes = INT_MAX; in get_slot()
820 q->slot.bytes_left = q->slot_config.max_bytes; in get_slot()
1207 if (slot.max_bytes == INT_MAX) in netem_dump()
1208 slot.max_bytes = 0; in netem_dump()
/OK3568_Linux_fs/kernel/fs/gfs2/
H A Dfile.c1063 loff_t bytes, max_bytes, max_blks; in __gfs2_fallocate() local
1101 max_bytes = (len > max_chunk_size) ? max_chunk_size : len; in __gfs2_fallocate()
1130 calc_max_reserv(ip, &max_bytes, &data_blocks, in __gfs2_fallocate()
1143 error = fallocate_chunk(inode, offset, max_bytes, mode); in __gfs2_fallocate()
1149 len -= max_bytes; in __gfs2_fallocate()
1150 offset += max_bytes; in __gfs2_fallocate()
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dextent-io-tree.h108 u64 max_bytes, unsigned bits, int contig);
235 u64 *end, u64 max_bytes,
/OK3568_Linux_fs/kernel/drivers/s390/scsi/
H A Dzfcp_fc.c697 struct zfcp_adapter *adapter, int max_bytes) in zfcp_fc_send_gpn_ft() argument
704 zfcp_fc_ct_ns_init(&req->ct_hdr, FC_NS_GPN_FT, max_bytes); in zfcp_fc_send_gpn_ft()
813 int chain, max_entries, buf_num, max_bytes; in zfcp_fc_scan_ports() local
820 max_bytes = chain ? ZFCP_FC_GPN_FT_MAX_SIZE : ZFCP_FC_CT_SIZE_PAGE; in zfcp_fc_scan_ports()
834 ret = zfcp_fc_send_gpn_ft(fc_req, adapter, max_bytes); in zfcp_fc_scan_ports()
/OK3568_Linux_fs/kernel/Documentation/filesystems/
H A Dceph.rst70 extended attributes 'ceph.quota.max_files' and 'ceph.quota.max_bytes', eg::
72 setfattr -n ceph.quota.max_bytes -v 100000000 /some/dir
73 getfattr -n ceph.quota.max_bytes /some/dir
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gt/
H A Dgen7_renderclear.c92 u32 *start, u32 offset, u32 max_bytes) in batch_init() argument
98 bc->max_items = max_bytes / sizeof(*bc->start); in batch_init()
/OK3568_Linux_fs/kernel/tools/perf/
H A Dbuiltin-timechart.c112 u64 max_bytes; member
810 if ((u64)ret > c->max_bytes) in pid_end_io_sample()
811 c->max_bytes = ret; in pid_end_io_sample()
832 if (!sample->err && sample->bytes > c->max_bytes) in pid_end_io_sample()
833 c->max_bytes = sample->bytes; in pid_end_io_sample()
1154 double h = (double)sample->bytes / c->max_bytes; in draw_io_bars()
/OK3568_Linux_fs/kernel/include/linux/ceph/
H A Dceph_fs.h405 __le32 max_bytes; member
846 __le64 max_bytes; /* quota max. bytes */ member
/OK3568_Linux_fs/kernel/fs/
H A Dfs-writeback.c638 unsigned long avg_time, max_bytes, max_time; in wbc_detach_inode() local
652 max_bytes = wbc->wb_bytes; in wbc_detach_inode()
655 max_bytes = wbc->wb_lcand_bytes; in wbc_detach_inode()
658 max_bytes = wbc->wb_tcand_bytes; in wbc_detach_inode()
668 max_time = DIV_ROUND_UP((max_bytes >> PAGE_SHIFT) << WB_FRN_TIME_SHIFT, in wbc_detach_inode()
/OK3568_Linux_fs/kernel/drivers/s390/net/
H A Dism_drv.c361 static unsigned int max_bytes(unsigned int start, unsigned int len, in max_bytes() function
376 bytes = max_bytes(offset, size, PAGE_SIZE); in ism_move()

12