Home
last modified time | relevance | path

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

/linux-4.4.14/fs/btrfs/tests/
Dextent-io-tests.c74 u64 max_bytes = 128 * 1024 * 1024; in test_find_delalloc() local
116 &end, max_bytes); in test_find_delalloc()
143 set_extent_delalloc(&tmp, 4096, max_bytes - 1, NULL, GFP_NOFS); in test_find_delalloc()
147 &end, max_bytes); in test_find_delalloc()
152 if (start != test_start || end != max_bytes - 1) { in test_find_delalloc()
154 "%Lu\n", test_start, max_bytes - 1, start, end); in test_find_delalloc()
171 test_start = max_bytes + 4096; in test_find_delalloc()
181 &end, max_bytes); in test_find_delalloc()
198 set_extent_delalloc(&tmp, max_bytes, total_dirty - 1, NULL, GFP_NOFS); in test_find_delalloc()
202 &end, max_bytes); in test_find_delalloc()
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dr600_blit.c597 int max_bytes; in r600_blit_copy() local
604 max_bytes = 8192; in r600_blit_copy()
615 h = (cur_size / max_bytes); in r600_blit_copy()
621 cur_size = max_bytes; in r600_blit_copy()
623 if (cur_size > max_bytes) in r600_blit_copy()
624 cur_size = max_bytes; in r600_blit_copy()
625 if (cur_size > (max_bytes - dst_x)) in r600_blit_copy()
626 cur_size = (max_bytes - dst_x); in r600_blit_copy()
627 if (cur_size > (max_bytes - src_x)) in r600_blit_copy()
628 cur_size = (max_bytes - src_x); in r600_blit_copy()
[all …]
Datombios_i2c.c110 int i, remaining, current_count, buffer_offset, max_bytes, ret; in radeon_atom_hw_i2c_xfer() local
131 max_bytes = ATOM_MAX_HW_I2C_READ; in radeon_atom_hw_i2c_xfer()
134 max_bytes = ATOM_MAX_HW_I2C_WRITE; in radeon_atom_hw_i2c_xfer()
138 if (remaining > max_bytes) in radeon_atom_hw_i2c_xfer()
139 current_count = max_bytes; in radeon_atom_hw_i2c_xfer()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Datombios_i2c.c109 int i, remaining, current_count, buffer_offset, max_bytes, ret; in amdgpu_atombios_i2c_xfer() local
130 max_bytes = ATOM_MAX_HW_I2C_READ; in amdgpu_atombios_i2c_xfer()
133 max_bytes = ATOM_MAX_HW_I2C_WRITE; in amdgpu_atombios_i2c_xfer()
137 if (remaining > max_bytes) in amdgpu_atombios_i2c_xfer()
138 current_count = max_bytes; in amdgpu_atombios_i2c_xfer()
Damdgpu_ttm.c1018 uint32_t max_bytes; in amdgpu_copy_buffer() local
1024 max_bytes = adev->mman.buffer_funcs->copy_max_bytes; in amdgpu_copy_buffer()
1025 num_loops = DIV_ROUND_UP(byte_count, max_bytes); in amdgpu_copy_buffer()
1054 uint32_t cur_size_in_bytes = min(byte_count, max_bytes); in amdgpu_copy_buffer()
/linux-4.4.14/fs/ubifs/
Dsb.c354 long long max_bytes; in validate_sb() local
413 max_bytes = (long long)c->leb_size * UBIFS_MIN_BUD_LEBS; in validate_sb()
414 if (c->max_bud_bytes < max_bytes) { in validate_sb()
416 c->max_bud_bytes, max_bytes); in validate_sb()
420 max_bytes = (long long)c->leb_size * c->main_lebs; in validate_sb()
421 if (c->max_bud_bytes > max_bytes) { in validate_sb()
423 c->max_bud_bytes, max_bytes); in validate_sb()
457 if (c->rp_size < 0 || max_bytes < c->rp_size) { in validate_sb()
/linux-4.4.14/drivers/scsi/osd/
Dosd_initiator.c251 void *cur_p, struct osd_attr *oa, unsigned max_bytes) in _osd_req_alist_elem_decode() argument
257 if (max_bytes < sizeof(*attr)) in _osd_req_alist_elem_decode()
262 if (inc > max_bytes) in _osd_req_alist_elem_decode()
277 if (max_bytes < sizeof(*attr)) in _osd_req_alist_elem_decode()
282 if (inc > max_bytes) in _osd_req_alist_elem_decode()
537 struct _osd_req_data_segment *seg, unsigned max_bytes) in _osd_realloc_seg() argument
541 if (seg->alloc_size >= max_bytes) in _osd_realloc_seg()
544 buff = krealloc(seg->buff, max_bytes, or->alloc_flags); in _osd_realloc_seg()
546 OSD_ERR("Failed to Realloc %d-bytes was-%d\n", max_bytes, in _osd_realloc_seg()
551 memset(buff + seg->alloc_size, 0, max_bytes - seg->alloc_size); in _osd_realloc_seg()
[all …]
/linux-4.4.14/fs/gfs2/
Dfile.c807 loff_t bytes, max_bytes, max_blks = UINT_MAX; in __gfs2_fallocate() local
845 max_bytes = (len > max_chunk_size) ? max_chunk_size : len; in __gfs2_fallocate()
873 calc_max_reserv(ip, &max_bytes, &data_blocks, in __gfs2_fallocate()
886 error = fallocate_chunk(inode, offset, max_bytes, mode); in __gfs2_fallocate()
892 len -= max_bytes; in __gfs2_fallocate()
893 offset += max_bytes; in __gfs2_fallocate()
/linux-4.4.14/drivers/s390/scsi/
Dzfcp_fc.c616 struct zfcp_adapter *adapter, int max_bytes) in zfcp_fc_send_gpn_ft() argument
623 zfcp_fc_ct_ns_init(&req->ct_hdr, FC_NS_GPN_FT, max_bytes); in zfcp_fc_send_gpn_ft()
731 int chain, max_entries, buf_num, max_bytes; in zfcp_fc_scan_ports() local
738 max_bytes = chain ? ZFCP_FC_GPN_FT_MAX_SIZE : ZFCP_FC_CT_SIZE_PAGE; in zfcp_fc_scan_ports()
752 ret = zfcp_fc_send_gpn_ft(fc_req, adapter, max_bytes); in zfcp_fc_scan_ports()
/linux-4.4.14/fs/btrfs/
Dextent_io.h218 u64 max_bytes, unsigned bits, int contig);
397 u64 *end, u64 max_bytes);
Dfree-space-cache.c1643 u64 max_bytes; in recalculate_thresholds() local
1660 max_bytes = MAX_CACHE_BYTES_PER_GIG; in recalculate_thresholds()
1662 max_bytes = MAX_CACHE_BYTES_PER_GIG * in recalculate_thresholds()
1672 if (bitmap_bytes >= max_bytes) { in recalculate_thresholds()
1681 extent_bytes = max_bytes - bitmap_bytes; in recalculate_thresholds()
1682 extent_bytes = min_t(u64, extent_bytes, max_bytes >> 1); in recalculate_thresholds()
Dextent_io.c1593 u64 *start, u64 *end, u64 max_bytes, in find_delalloc_range() argument
1636 if (total_bytes >= max_bytes) in find_delalloc_range()
1746 u64 *end, u64 max_bytes) in find_lock_delalloc_range() argument
1760 max_bytes, &cached_state); in find_lock_delalloc_range()
1779 if (delalloc_end + 1 - delalloc_start > max_bytes) in find_lock_delalloc_range()
1780 delalloc_end = delalloc_start + max_bytes - 1; in find_lock_delalloc_range()
1792 max_bytes = PAGE_CACHE_SIZE; in find_lock_delalloc_range()
1881 u64 *start, u64 search_end, u64 max_bytes, in count_range_bits() argument
1916 if (total_bytes >= max_bytes) in count_range_bits()
/linux-4.4.14/tools/perf/
Dbuiltin-timechart.c110 u64 max_bytes; member
812 if ((u64)ret > c->max_bytes) in pid_end_io_sample()
813 c->max_bytes = ret; in pid_end_io_sample()
834 if (!sample->err && sample->bytes > c->max_bytes) in pid_end_io_sample()
835 c->max_bytes = sample->bytes; in pid_end_io_sample()
1156 double h = (double)sample->bytes / c->max_bytes; in draw_io_bars()
/linux-4.4.14/fs/
Dfs-writeback.c588 unsigned long avg_time, max_bytes, max_time; in wbc_detach_inode() local
602 max_bytes = wbc->wb_bytes; in wbc_detach_inode()
605 max_bytes = wbc->wb_lcand_bytes; in wbc_detach_inode()
608 max_bytes = wbc->wb_tcand_bytes; in wbc_detach_inode()
618 max_time = DIV_ROUND_UP((max_bytes >> PAGE_SHIFT) << WB_FRN_TIME_SHIFT, in wbc_detach_inode()
/linux-4.4.14/include/linux/ceph/
Dceph_fs.h363 __le32 max_bytes; member
/linux-4.4.14/drivers/tty/serial/
Dserial-tegra.c372 static void tegra_uart_fill_tx_fifo(struct tegra_uart_port *tup, int max_bytes) in tegra_uart_fill_tx_fifo() argument
377 for (i = 0; i < max_bytes; i++) { in tegra_uart_fill_tx_fifo()
/linux-4.4.14/drivers/block/
Dskd_main.c2492 uint16_t insert_pt, max_bytes, drive_pages, drive_bytes, new_size; in skd_do_inq_page_00() local
2508 max_bytes = (cdb[3] << 8) | cdb[4]; in skd_do_inq_page_00()
2526 if (insert_pt < max_bytes) { in skd_do_inq_page_00()
2592 unsigned max_bytes; in skd_do_inq_page_da() local
2633 max_bytes = (cdb[3] << 8) | cdb[4]; in skd_do_inq_page_da()
2634 memcpy(buf, &inq, min_t(unsigned, max_bytes, sizeof(inq))); in skd_do_inq_page_da()
2637 be32_to_cpu(min_t(uint16_t, max_bytes, sizeof(inq))); in skd_do_inq_page_da()
/linux-4.4.14/drivers/staging/comedi/drivers/
Dcb_pcidas64.c2941 unsigned int max_bytes) in cb_pcidas64_ao_fill_buffer() argument
2943 unsigned int nsamples = comedi_bytes_to_samples(s, max_bytes); in cb_pcidas64_ao_fill_buffer()
/linux-4.4.14/fs/ceph/
Dmds_client.c1696 req->r_args.readdir.max_bytes = cpu_to_le32(opt->max_readdir_bytes); in ceph_alloc_readdir_reply_buffer()