Home
last modified time | relevance | path

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

12

/Linux-v6.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-v6.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.c388 u64 vis_usage = 0, max_bytes, cur_size, min_block_size; in amdgpu_vram_mgr_new() local
404 max_bytes = adev->gmc.mc_vram_size; in amdgpu_vram_mgr_new()
406 max_bytes -= AMDGPU_VM_RESERVED_VRAM; in amdgpu_vram_mgr_new()
428 if (ttm_resource_manager_usage(man) > max_bytes) { in amdgpu_vram_mgr_new()
Damdgpu_ttm.c1971 uint32_t max_bytes; in amdgpu_copy_buffer() local
1980 max_bytes = adev->mman.buffer_funcs->copy_max_bytes; in amdgpu_copy_buffer()
1981 num_loops = DIV_ROUND_UP(byte_count, max_bytes); in amdgpu_copy_buffer()
1989 uint32_t cur_size_in_bytes = min(byte_count, max_bytes); in amdgpu_copy_buffer()
2026 uint32_t max_bytes; in amdgpu_ttm_fill_mem() local
2030 max_bytes = adev->mman.buffer_funcs->fill_max_bytes; in amdgpu_ttm_fill_mem()
2031 num_loops = DIV_ROUND_UP_ULL(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
2039 uint32_t cur_size = min(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
/Linux-v6.1/fs/btrfs/tests/
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_delalloc(tmp, sectorsize, max_bytes - 1, 0, 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_delalloc(tmp, max_bytes, total_dirty - 1, 0, NULL); in test_find_delalloc()
274 (max_bytes + SZ_1M) >> PAGE_SHIFT); in test_find_delalloc()
/Linux-v6.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-v6.1/include/linux/
Duio.h292 iov_iter_npages_cap(struct iov_iter *i, int maxpages, size_t max_bytes) in iov_iter_npages_cap() argument
297 if (iov_iter_count(i) > max_bytes) { in iov_iter_npages_cap()
298 shorted = iov_iter_count(i) - max_bytes; in iov_iter_npages_cap()
299 iov_iter_truncate(i, max_bytes); in iov_iter_npages_cap()
/Linux-v6.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-v6.1/include/drm/
Ddrm_audio_component.h61 unsigned char *buf, int max_bytes);
/Linux-v6.1/drivers/spi/
Dspi-geni-qcom.c640 unsigned int max_bytes; in geni_spi_handle_tx() local
651 max_bytes = (mas->tx_fifo_depth - mas->tx_wm) * bytes_per_fifo_word; in geni_spi_handle_tx()
652 if (mas->tx_rem_bytes < max_bytes) in geni_spi_handle_tx()
653 max_bytes = mas->tx_rem_bytes; in geni_spi_handle_tx()
656 while (i < max_bytes) { in geni_spi_handle_tx()
662 bytes_to_write = min(bytes_per_fifo_word, max_bytes - i); in geni_spi_handle_tx()
667 mas->tx_rem_bytes -= max_bytes; in geni_spi_handle_tx()
/Linux-v6.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-v6.1/drivers/s390/block/
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()
/Linux-v6.1/block/
Dblk-merge.c224 unsigned max_bytes) in bvec_split_segs() argument
226 unsigned max_len = min(max_bytes, UINT_MAX) - *bytes; in bvec_split_segs()
271 unsigned *segs, struct bio_set *bs, unsigned max_bytes) in bio_split_rw() argument
286 bytes + bv.bv_len <= max_bytes && in bio_split_rw()
292 lim->max_segments, max_bytes)) in bio_split_rw()
/Linux-v6.1/drivers/block/
Dublk_drv.c375 unsigned max_bytes; member
387 unsigned max_bytes, bool to_vm) in ublk_copy_io_pages() argument
389 const unsigned total = min_t(unsigned, max_bytes, in ublk_copy_io_pages()
443 const unsigned int nr_pages = round_up(data->max_bytes + in ublk_copy_user_pages()
456 len = ublk_copy_io_pages(&iter, data->max_bytes, to_vm); in ublk_copy_user_pages()
462 data->max_bytes -= len; in ublk_copy_user_pages()
486 .max_bytes = rq_bytes, in ublk_map_io()
491 return rq_bytes - data.max_bytes; in ublk_map_io()
507 .max_bytes = io->res, in ublk_unmap_io()
514 return io->res - data.max_bytes; in ublk_unmap_io()
/Linux-v6.1/fs/btrfs/
Dextent-io-tree.h116 u64 max_bytes, u32 bits, int contig);
235 u64 *end, u64 max_bytes,
Dextent-io-tree.c889 u64 *end, u64 max_bytes, in btrfs_find_delalloc_range() argument
928 if (total_bytes >= max_bytes) in btrfs_find_delalloc_range()
1495 u64 *start, u64 search_end, u64 max_bytes, in count_range_bits() argument
1522 if (total_bytes >= max_bytes) in count_range_bits()
/Linux-v6.1/net/sched/
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()
1204 if (slot.max_bytes == INT_MAX) in netem_dump()
1205 slot.max_bytes = 0; in netem_dump()
/Linux-v6.1/fs/gfs2/
Dfile.c1239 loff_t bytes, max_bytes, max_blks; in __gfs2_fallocate() local
1277 max_bytes = (len > max_chunk_size) ? max_chunk_size : len; in __gfs2_fallocate()
1306 calc_max_reserv(ip, &max_bytes, &data_blocks, in __gfs2_fallocate()
1319 error = fallocate_chunk(inode, offset, max_bytes, mode); in __gfs2_fallocate()
1325 len -= max_bytes; in __gfs2_fallocate()
1326 offset += max_bytes; in __gfs2_fallocate()
/Linux-v6.1/drivers/s390/scsi/
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-v6.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-v6.1/Documentation/filesystems/
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
/Linux-v6.1/tools/perf/
Dbuiltin-timechart.c114 u64 max_bytes; member
815 if ((u64)ret > c->max_bytes) in pid_end_io_sample()
816 c->max_bytes = ret; in pid_end_io_sample()
837 if (!sample->err && sample->bytes > c->max_bytes) in pid_end_io_sample()
838 c->max_bytes = sample->bytes; in pid_end_io_sample()
1159 double h = (double)sample->bytes / c->max_bytes; in draw_io_bars()
/Linux-v6.1/include/linux/ceph/
Dceph_fs.h419 __le32 max_bytes; member
891 __le64 max_bytes; /* quota max. bytes */ member
/Linux-v6.1/fs/
Dfs-writeback.c765 unsigned long avg_time, max_bytes, max_time; in wbc_detach_inode() local
779 max_bytes = wbc->wb_bytes; in wbc_detach_inode()
782 max_bytes = wbc->wb_lcand_bytes; in wbc_detach_inode()
785 max_bytes = wbc->wb_tcand_bytes; in wbc_detach_inode()
795 max_time = DIV_ROUND_UP((max_bytes >> PAGE_SHIFT) << WB_FRN_TIME_SHIFT, in wbc_detach_inode()
/Linux-v6.1/drivers/s390/net/
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