/linux/drivers/gpu/drm/radeon/ |
H A D | atombios_i2c.c | 105 int i, remaining, current_count, buffer_offset, max_bytes, ret; in radeon_atom_hw_i2c_xfer() local 124 /* max_bytes are a limitation of ProcessI2cChannelTransaction not the hw */ in radeon_atom_hw_i2c_xfer() 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 D | atombios_i2c.c | 112 int i, remaining, current_count, buffer_offset, max_bytes, ret; in amdgpu_atombios_i2c_xfer() local 131 /* max_bytes are a limitation of ProcessI2cChannelTransaction not the hw */ in amdgpu_atombios_i2c_xfer() 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 D | amdgpu_vram_mgr.c | 456 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()
|
H A D | amdgpu_ttm.c | 2206 uint32_t max_bytes; in amdgpu_copy_buffer() local 2216 max_bytes = adev->mman.buffer_funcs->copy_max_bytes; in amdgpu_copy_buffer() 2217 num_loops = DIV_ROUND_UP(byte_count, max_bytes); in amdgpu_copy_buffer() 2225 uint32_t cur_size_in_bytes = min(byte_count, max_bytes); in amdgpu_copy_buffer() 2260 uint32_t max_bytes; in amdgpu_ttm_fill_mem() local 2264 max_bytes = adev->mman.buffer_funcs->fill_max_bytes; in amdgpu_ttm_fill_mem() 2265 num_loops = DIV_ROUND_UP_ULL(byte_count, max_bytes); in amdgpu_ttm_fill_mem() 2273 uint32_t cur_size = min(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
|
/linux/include/sound/ |
H A D | hda_component.h | 20 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 D | extent-io-tests.c | 118 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() 261 * [max_bytes]|-- search--| 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() 305 * will adjust max_bytes dow in test_find_delalloc() [all...] |
/linux/include/linux/ |
H A D | uio.h | 347 iov_iter_npages_cap(struct iov_iter *i, int maxpages, size_t max_bytes) in iov_iter_npages_cap() argument 352 if (iov_iter_count(i) > max_bytes) { in iov_iter_npages_cap() 353 shorted = iov_iter_count(i) - max_bytes; in iov_iter_npages_cap() 354 iov_iter_truncate(i, max_bytes); in iov_iter_npages_cap()
|
H A D | backing-dev.h | 113 int bdi_set_max_bytes(struct backing_dev_info *bdi, u64 max_bytes);
|
/linux/fs/ubifs/ |
H A D | sb.c | 381 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/drm/ |
H A D | drm_audio_component.h | 60 * Note that the returned size may be over @max_bytes. Then it 64 unsigned char *buf, int max_bytes);
|
/linux/block/ |
H A D | blk-map.c | 441 unsigned int max_bytes = lim->max_hw_sectors << SECTOR_SHIFT; in blk_rq_append_bio() local 446 ret = bio_split_rw_at(bio, lim, &nr_segs, max_bytes); in blk_rq_append_bio() 474 unsigned int max_bytes = rq->q->limits.max_hw_sectors << SECTOR_SHIFT; in blk_rq_map_user_bvec() local 478 if (!iov_iter_count(iter) || iov_iter_count(iter) > max_bytes) in blk_rq_map_user_bvec()
|
H A D | blk-merge.c | 236 * bio without exceeding @max_bytes 238 * @max_bytes: [in] upper bound for *@bytes 249 unsigned max_segs, unsigned max_bytes) in bvec_split_segs() argument 251 unsigned max_len = max_bytes - *bytes; in bvec_split_segs() 286 * @max_bytes: [in] maximum number of bytes per bio 289 * maximum size of @max_bytes. Returns a negative error number if @bio can't be 294 unsigned *segs, unsigned max_bytes) in bio_split_rw_at() argument 309 bytes + bv.bv_len <= max_bytes && in bio_split_rw_at() 315 lim->max_segments, max_bytes)) in bio_split_rw_at()
|
/linux/fs/btrfs/ |
H A D | extent-io-tree.h | 166 u64 max_bytes, u32 bits, int contig, 220 u64 *end, u64 max_bytes,
|
/linux/drivers/spi/ |
H A D | spi-geni-qcom.c | 754 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/sound/hda/core/ |
H A D | component.c | 147 * @max_bytes: the max bytes to be stored on @buffer 158 * thus it may be over @max_bytes. If it's over @max_bytes, it implies 162 bool *audio_enabled, char *buffer, int max_bytes) in snd_hdac_acomp_get_eld() argument 179 buffer, max_bytes); in snd_hdac_acomp_get_eld()
|
/linux/net/sched/ |
H A D | sch_netem.c | 670 q->slot.bytes_left = q->slot_config.max_bytes; in get_slot_next() 835 if (q->slot_config.max_bytes == 0) in get_slot() 836 q->slot_config.max_bytes = INT_MAX; in get_slot() 842 q->slot.bytes_left = q->slot_config.max_bytes; in get_slot() 1276 if (slot.max_bytes == INT_MAX) in netem_dump() 1277 slot.max_bytes = 0; in netem_dump()
|
/linux/fs/xfs/ |
H A D | xfs_buf.c | 1699 unsigned int min_bytes, max_bytes; in xfs_configure_buftarg_atomic_writes() local 1702 max_bytes = bdev_atomic_write_unit_max_bytes(btp->bt_bdev); in xfs_configure_buftarg_atomic_writes() 1708 if (min_bytes > max_bytes || in xfs_configure_buftarg_atomic_writes() 1710 max_bytes < mp->m_sb.sb_blocksize) { in xfs_configure_buftarg_atomic_writes() 1712 max_bytes = 0; in xfs_configure_buftarg_atomic_writes() 1716 btp->bt_awu_max = max_bytes; in xfs_configure_buftarg_atomic_writes()
|
H A D | xfs_mount.c | 140 uint64_t max_bytes; in xfs_sb_validate_fsb_count() local 144 if (check_shl_overflow(nblocks, sbp->sb_blocklog, &max_bytes)) in xfs_sb_validate_fsb_count() 148 if (max_bytes >> PAGE_SHIFT > ULONG_MAX) in xfs_sb_validate_fsb_count()
|
/linux/fs/gfs2/ |
H A D | file.c | 1259 loff_t bytes, max_bytes, max_blks; in __gfs2_fallocate() local 1296 * we can write max_bytes */ in __gfs2_fallocate() 1297 max_bytes = (len > max_chunk_size) ? max_chunk_size : len; in __gfs2_fallocate() 1299 /* Since max_bytes is most likely a theoretical max, we in __gfs2_fallocate() 1324 * max_blks. We also recompute max_bytes, data_blocks and in __gfs2_fallocate() 1326 calc_max_reserv(ip, &max_bytes, &data_blocks, in __gfs2_fallocate() 1339 error = fallocate_chunk(inode, offset, max_bytes, mode); in __gfs2_fallocate() 1345 len -= max_bytes; in __gfs2_fallocate() 1346 offset += max_bytes; in __gfs2_fallocate()
|
/linux/drivers/s390/scsi/ |
H A D | zfcp_fc.c | 698 struct zfcp_adapter *adapter, int max_bytes) in zfcp_fc_send_gpn_ft() argument 705 zfcp_fc_ct_ns_init(&req->ct_hdr, FC_NS_GPN_FT, max_bytes); in zfcp_fc_send_gpn_ft() 814 int chain, max_entries, buf_num, max_bytes; in zfcp_fc_scan_ports() local 821 max_bytes = chain ? ZFCP_FC_GPN_FT_MAX_SIZE : ZFCP_FC_CT_SIZE_PAGE; in zfcp_fc_scan_ports() 835 ret = zfcp_fc_send_gpn_ft(fc_req, adapter, max_bytes); in zfcp_fc_scan_ports()
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | gen7_renderclear.c | 93 u32 *start, u32 offset, u32 max_bytes) in batch_init() argument 99 bc->max_items = max_bytes / sizeof(*bc->start); in batch_init()
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-bdi | 103 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 D | ceph.rst | 83 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/include/linux/ceph/ |
H A D | ceph_fs.h | 429 __le32 max_bytes; member 907 __le64 max_bytes; /* quota max. bytes */ member
|
/linux/fs/ |
H A D | fs-writeback.c | 825 unsigned long avg_time, max_bytes, max_time; in wbc_detach_inode() local 839 max_bytes = wbc->wb_bytes; in wbc_detach_inode() 842 max_bytes = wbc->wb_lcand_bytes; in wbc_detach_inode() 845 max_bytes = wbc->wb_tcand_bytes; in wbc_detach_inode() 855 max_time = DIV_ROUND_UP((max_bytes >> PAGE_SHIFT) << WB_FRN_TIME_SHIFT, in wbc_detach_inode()
|