Home
last modified time | relevance | path

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

123

/linux-6.12.1/drivers/gpu/drm/radeon/
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()
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
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()
Damdgpu_vram_mgr.c456 u64 vis_usage = 0, max_bytes, min_block_size; in amdgpu_vram_mgr_new() local
471 max_bytes = adev->gmc.mc_vram_size; in amdgpu_vram_mgr_new()
473 max_bytes -= AMDGPU_VM_RESERVED_VRAM; in amdgpu_vram_mgr_new()
495 if (ttm_resource_manager_usage(man) > max_bytes) { in amdgpu_vram_mgr_new()
Damdgpu_ttm.c2175 uint32_t max_bytes; in amdgpu_copy_buffer() local
2184 max_bytes = adev->mman.buffer_funcs->copy_max_bytes; in amdgpu_copy_buffer()
2185 num_loops = DIV_ROUND_UP(byte_count, max_bytes); in amdgpu_copy_buffer()
2193 uint32_t cur_size_in_bytes = min(byte_count, max_bytes); in amdgpu_copy_buffer()
2228 uint32_t max_bytes; in amdgpu_ttm_fill_mem() local
2232 max_bytes = adev->mman.buffer_funcs->fill_max_bytes; in amdgpu_ttm_fill_mem()
2233 num_loops = DIV_ROUND_UP_ULL(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
2241 uint32_t cur_size = min(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
/linux-6.12.1/include/sound/
Dhda_component.h20 bool *audio_enabled, char *buffer, int max_bytes);
44 char *buffer, int max_bytes) in snd_hdac_acomp_get_eld() argument
/linux-6.12.1/fs/btrfs/tests/
Dextent-io-tests.c119 u64 max_bytes = BTRFS_MAX_EXTENT_SIZE; in test_find_delalloc() local
120 u64 total_dirty = 2 * max_bytes; in test_find_delalloc()
211 set_extent_bit(tmp, sectorsize, max_bytes - 1, EXTENT_DELALLOC, NULL); in test_find_delalloc()
220 if (start != test_start || end != max_bytes - 1) { in test_find_delalloc()
222 test_start, max_bytes - 1, start, end); in test_find_delalloc()
239 test_start = max_bytes + sectorsize; in test_find_delalloc()
266 set_extent_bit(tmp, max_bytes, total_dirty - 1, EXTENT_DELALLOC, NULL); in test_find_delalloc()
292 (max_bytes + SZ_1M) >> PAGE_SHIFT); in test_find_delalloc()
/linux-6.12.1/fs/ubifs/
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()
/linux-6.12.1/include/linux/
Duio.h338 iov_iter_npages_cap(struct iov_iter *i, int maxpages, size_t max_bytes) in iov_iter_npages_cap() argument
343 if (iov_iter_count(i) > max_bytes) { in iov_iter_npages_cap()
344 shorted = iov_iter_count(i) - max_bytes; in iov_iter_npages_cap()
345 iov_iter_truncate(i, max_bytes); in iov_iter_npages_cap()
/linux-6.12.1/drivers/target/
Dtarget_core_xcopy.c663 unsigned long long max_bytes, max_bytes_src, max_bytes_dst, max_blocks; in target_xcopy_do_work() local
693 max_bytes = min_t(u64, max_bytes_src, max_bytes_dst); in target_xcopy_do_work()
694 max_bytes = min_t(u64, max_bytes, XCOPY_MAX_BYTES); in target_xcopy_do_work()
700 max_blocks = max_bytes >> ilog2(src_dev->dev_attrib.block_size); in target_xcopy_do_work()
708 u32 cur_bytes = min_t(u64, max_bytes, nolb * src_dev->dev_attrib.block_size); in target_xcopy_do_work()
/linux-6.12.1/include/drm/
Ddrm_audio_component.h64 unsigned char *buf, int max_bytes);
/linux-6.12.1/sound/hda/
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()
/linux-6.12.1/drivers/spi/
Dspi-geni-qcom.c754 unsigned int max_bytes; in geni_spi_handle_tx() local
765 max_bytes = (mas->tx_fifo_depth - mas->tx_wm) * bytes_per_fifo_word; in geni_spi_handle_tx()
766 if (mas->tx_rem_bytes < max_bytes) in geni_spi_handle_tx()
767 max_bytes = mas->tx_rem_bytes; in geni_spi_handle_tx()
770 while (i < max_bytes) { in geni_spi_handle_tx()
776 bytes_to_write = min(bytes_per_fifo_word, max_bytes - i); in geni_spi_handle_tx()
781 mas->tx_rem_bytes -= max_bytes; in geni_spi_handle_tx()
/linux-6.12.1/fs/btrfs/
Dextent-io-tree.h162 u64 max_bytes, u32 bits, int contig,
226 u64 *end, u64 max_bytes,
/linux-6.12.1/block/
Dblk-merge.c275 unsigned max_segs, unsigned max_bytes) in bvec_split_segs() argument
277 unsigned max_len = min(max_bytes, UINT_MAX) - *bytes; in bvec_split_segs()
312 unsigned *segs, unsigned max_bytes) in bio_split_rw_at() argument
327 bytes + bv.bv_len <= max_bytes && in bio_split_rw_at()
333 lim->max_segments, max_bytes)) in bio_split_rw_at()
Dblk-map.c565 unsigned int max_bytes = lim->max_hw_sectors << SECTOR_SHIFT; in blk_rq_map_user_bvec() local
570 if (!iov_iter_count(iter) || iov_iter_count(iter) > max_bytes) in blk_rq_map_user_bvec()
580 ret = bio_split_rw_at(bio, lim, &nsegs, max_bytes); in blk_rq_map_user_bvec()
/linux-6.12.1/net/sched/
Dsch_netem.c665 q->slot.bytes_left = q->slot_config.max_bytes; in get_slot_next()
824 if (q->slot_config.max_bytes == 0) in get_slot()
825 q->slot_config.max_bytes = INT_MAX; in get_slot()
831 q->slot.bytes_left = q->slot_config.max_bytes; in get_slot()
1225 if (slot.max_bytes == INT_MAX) in netem_dump()
1226 slot.max_bytes = 0; in netem_dump()
/linux-6.12.1/fs/gfs2/
Dfile.c1257 loff_t bytes, max_bytes, max_blks; in __gfs2_fallocate() local
1295 max_bytes = (len > max_chunk_size) ? max_chunk_size : len; in __gfs2_fallocate()
1324 calc_max_reserv(ip, &max_bytes, &data_blocks, in __gfs2_fallocate()
1337 error = fallocate_chunk(inode, offset, max_bytes, mode); in __gfs2_fallocate()
1343 len -= max_bytes; in __gfs2_fallocate()
1344 offset += max_bytes; in __gfs2_fallocate()
/linux-6.12.1/drivers/s390/scsi/
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()
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-class-bdi103 What: /sys/class/bdi/<bdi>/max_bytes
108 given 'max_bytes' of the write-back cache. This is useful in
/linux-6.12.1/drivers/gpu/drm/i915/gt/
Dgen7_renderclear.c93 u32 *start, u32 offset, u32 max_bytes) in batch_init() argument
99 bc->max_items = max_bytes / sizeof(*bc->start); in batch_init()
/linux-6.12.1/Documentation/filesystems/
Dceph.rst83 extended attributes 'ceph.quota.max_files' and 'ceph.quota.max_bytes', eg::
85 setfattr -n ceph.quota.max_bytes -v 100000000 /some/dir
86 getfattr -n ceph.quota.max_bytes /some/dir
/linux-6.12.1/tools/perf/
Dbuiltin-timechart.c115 u64 max_bytes; member
819 if ((u64)ret > c->max_bytes) in pid_end_io_sample()
820 c->max_bytes = ret; in pid_end_io_sample()
841 if (!sample->err && sample->bytes > c->max_bytes) in pid_end_io_sample()
842 c->max_bytes = sample->bytes; in pid_end_io_sample()
1163 double h = (double)sample->bytes / c->max_bytes; in draw_io_bars()
/linux-6.12.1/fs/xfs/
Dxfs_mount.c135 uint64_t max_bytes; in xfs_sb_validate_fsb_count() local
139 if (check_shl_overflow(nblocks, sbp->sb_blocklog, &max_bytes)) in xfs_sb_validate_fsb_count()
143 if (max_bytes >> PAGE_SHIFT > ULONG_MAX) in xfs_sb_validate_fsb_count()
/linux-6.12.1/drivers/gpu/drm/i915/display/
Dskl_universal_plane.c470 unsigned int max_bytes) in plane_max_stride() argument
476 return min(max_pixels, max_bytes / cpp); in plane_max_stride()
478 return min(max_pixels * cpp, max_bytes); in plane_max_stride()
487 unsigned int max_bytes = 128 * 1024; in adl_plane_max_stride() local
491 max_pixels, max_bytes); in adl_plane_max_stride()
500 unsigned int max_bytes = 32 * 1024; in skl_plane_max_stride() local
504 max_pixels, max_bytes); in skl_plane_max_stride()
/linux-6.12.1/include/linux/ceph/
Dceph_fs.h429 __le32 max_bytes; member
921 __le64 max_bytes; /* quota max. bytes */ member

123