Home
last modified time | relevance | path

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

12

/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()
/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_hmm.c173 const u64 max_bytes = SZ_2G; in amdgpu_hmm_range_get_pages() local
197 hmm_range->end = min(hmm_range->start + max_bytes, end); in amdgpu_hmm_range_get_pages()
208 hmm_range->hmm_pfns += max_bytes >> PAGE_SHIFT; in amdgpu_hmm_range_get_pages()
H A Damdgpu_ttm.c2538 uint32_t max_bytes; in amdgpu_copy_buffer()
2550 max_bytes = amdgpu_calc_bytes_per_packet(adev->mman.buffer_funcs->copy_max_bytes, in amdgpu_copy_buffer()
2552 num_loops = DIV_ROUND_UP(byte_count, max_bytes); in amdgpu_copy_buffer()
2561 uint32_t cur_size_in_bytes = min(byte_count, max_bytes); in amdgpu_copy_buffer()
2591 uint32_t max_bytes; in amdgpu_ttm_fill_mem()
2595 max_bytes = amdgpu_calc_bytes_per_packet(adev->mman.buffer_funcs->fill_max_bytes, in amdgpu_ttm_fill_mem()
2597 num_loops = DIV_ROUND_UP_ULL(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
2605 uint32_t cur_size = min(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
2532 uint32_t max_bytes; amdgpu_copy_buffer() local
2585 uint32_t max_bytes; amdgpu_ttm_fill_mem() local
/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
/linux/fs/btrfs/tests/
H A Dextent-io-tests.c118 u64 max_bytes = BTRFS_MAX_EXTENT_SIZE; in test_find_delalloc() local
119 u64 total_dirty = 2 * max_bytes; in test_find_delalloc()
210 btrfs_set_extent_bit(tmp, sectorsize, max_bytes - 1, EXTENT_DELALLOC, NULL); in test_find_delalloc()
219 if (start != test_start || end != max_bytes - 1) { in test_find_delalloc()
221 test_start, max_bytes - 1, start, end); in test_find_delalloc()
238 test_start = max_bytes + sectorsize; in test_find_delalloc()
265 btrfs_set_extent_bit(tmp, max_bytes, total_dirty - 1, EXTENT_DELALLOC, NULL); in test_find_delalloc()
291 (max_bytes + SZ_1M) >> PAGE_SHIFT); in test_find_delalloc()
/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()
/linux/include/linux/
H A Duio.h345 iov_iter_npages_cap(struct iov_iter *i, int maxpages, size_t max_bytes) in iov_iter_npages_cap() argument
350 if (iov_iter_count(i) > max_bytes) { in iov_iter_npages_cap()
351 shorted = iov_iter_count(i) - max_bytes; in iov_iter_npages_cap()
352 iov_iter_truncate(i, max_bytes); in iov_iter_npages_cap()
/linux/drivers/target/
H A 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/block/
H A Dblk-map.c429 unsigned int max_bytes = lim->max_hw_sectors << SECTOR_SHIFT; in blk_rq_append_bio() local
434 ret = bio_split_io_at(bio, lim, &nr_segs, max_bytes, 0); in blk_rq_append_bio()
465 unsigned int max_bytes = rq->q->limits.max_hw_sectors << SECTOR_SHIFT; in blk_rq_map_user_bvec() local
469 if (!iov_iter_count(iter) || iov_iter_count(iter) > max_bytes) in blk_rq_map_user_bvec()
H A Dblk-merge.c284 unsigned max_segs, unsigned max_bytes) in bvec_split_segs() argument
286 unsigned max_len = max_bytes - *bytes; in bvec_split_segs()
336 unsigned *segs, unsigned max_bytes, unsigned len_align_mask) in bio_split_io_at() argument
365 bytes + bv.bv_len <= max_bytes && in bio_split_io_at()
371 lim->max_segments, max_bytes)) in bio_split_io_at()
/linux/include/drm/
H A Ddrm_audio_component.h64 unsigned char *buf, int max_bytes);
/linux/fs/btrfs/
H A Dextent-io-tree.h166 u64 max_bytes, u32 bits, bool contig,
220 u64 *end, u64 max_bytes,
H A Dextent-io-tree.c1096 u64 *end, u64 max_bytes, in btrfs_find_delalloc_range() argument
1135 if (total_bytes >= max_bytes) in btrfs_find_delalloc_range()
1778 u64 *start, u64 search_end, u64 max_bytes, in btrfs_count_range_bits() argument
1837 if (total_bytes >= max_bytes) in btrfs_count_range_bits()
/linux/net/sched/
H A Dsch_netem.c698 q->slot.bytes_left = q->slot_config.max_bytes; in netem_erase_head()
882 if (c->max_packets < 0 || c->max_bytes < 0) {
896 if (q->slot_config.max_bytes == 0) in get_reorder()
897 q->slot_config.max_bytes = INT_MAX; in get_reorder()
903 q->slot.bytes_left = q->slot_config.max_bytes; in get_corrupt()
1319 if (slot.max_bytes == INT_MAX)
1320 slot.max_bytes = 0; in netem_graft()
/linux/fs/gfs2/
H A Dfile.c1262 loff_t bytes, max_bytes, max_blks; in __gfs2_fallocate() local
1306 max_bytes = (len > max_chunk_size) ? max_chunk_size : len; in __gfs2_fallocate()
1335 calc_max_reserv(ip, &max_bytes, &data_blocks, in __gfs2_fallocate()
1348 error = fallocate_chunk(inode, offset, max_bytes); in __gfs2_fallocate()
1354 len -= max_bytes; in __gfs2_fallocate()
1355 offset += max_bytes; in __gfs2_fallocate()
/linux/fs/xfs/
H A Dxfs_buf.c1667 unsigned int min_bytes, max_bytes; in xfs_configure_buftarg_atomic_writes() local
1670 max_bytes = bdev_atomic_write_unit_max_bytes(btp->bt_bdev); in xfs_configure_buftarg_atomic_writes()
1676 if (min_bytes > max_bytes || in xfs_configure_buftarg_atomic_writes()
1678 max_bytes < mp->m_sb.sb_blocksize) { in xfs_configure_buftarg_atomic_writes()
1680 max_bytes = 0; in xfs_configure_buftarg_atomic_writes()
1684 btp->bt_awu_max = max_bytes; in xfs_configure_buftarg_atomic_writes()
/linux/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()
/linux/Documentation/ABI/testing/
H A Dsysfs-class-bdi103 What: /sys/class/bdi/<bdi>/max_bytes
108 given 'max_bytes' of the write-back cache. This is useful in
/linux/Documentation/filesystems/
H A 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/tools/perf/
H A Dbuiltin-timechart.c116 u64 max_bytes;
870 if ((u64)ret > c->max_bytes)
871 c->max_bytes = ret; in process_enter_write()
892 if (!sample->err && sample->bytes > c->max_bytes) in process_enter_sync()
893 c->max_bytes = sample->bytes; in process_enter_sync()
1201 double h = (double)sample->bytes / c->max_bytes; in draw_io_bars()
115 u64 max_bytes; global() member
/linux/include/linux/ceph/
H A Dceph_fs.h436 __le32 max_bytes; member
914 __le64 max_bytes; /* quota max. bytes */ member
/linux/fs/
H A Dfs-writeback.c923 unsigned long avg_time, max_bytes, max_time; in wbc_detach_inode() local
937 max_bytes = wbc->wb_bytes; in wbc_detach_inode()
940 max_bytes = wbc->wb_lcand_bytes; in wbc_detach_inode()
943 max_bytes = wbc->wb_tcand_bytes; in wbc_detach_inode()
953 max_time = DIV_ROUND_UP((max_bytes >> PAGE_SHIFT) << WB_FRN_TIME_SHIFT, in wbc_detach_inode()
/linux/drivers/gpu/drm/i915/display/
H A Dskl_universal_plane.c472 unsigned int max_bytes) in plane_max_stride() argument
477 return min(max_pixels, max_bytes / cpp); in plane_max_stride()
479 return min(max_pixels * cpp, max_bytes); in plane_max_stride()
488 unsigned int max_bytes = 128 * 1024; in adl_plane_max_stride() local
492 max_pixels, max_bytes); in adl_plane_max_stride()
501 unsigned int max_bytes = 32 * 1024; in skl_plane_max_stride() local
505 max_pixels, max_bytes); in skl_plane_max_stride()
/linux/drivers/s390/net/
H A Dism_drv.c393 static unsigned int max_bytes(unsigned int start, unsigned int len, in max_bytes() function
409 bytes = max_bytes(offset, size, PAGE_SIZE); in ism_move()

12