Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 25 of 97) sorted by relevance

1234

/linux/fs/btrfs/
H A Dblock-rsv.c106 struct btrfs_block_rsv *dest, u64 num_bytes, in block_rsv_release_bytes() argument
114 if (num_bytes == (u64)-1) in block_rsv_release_bytes()
115 num_bytes = block_rsv->size; in block_rsv_release_bytes()
116 block_rsv->size -= num_bytes; in block_rsv_release_bytes()
118 num_bytes = block_rsv->reserved - block_rsv->size; in block_rsv_release_bytes()
122 num_bytes = 0; in block_rsv_release_bytes()
132 ret = num_bytes; in block_rsv_release_bytes()
133 if (num_bytes > 0) { in block_rsv_release_bytes()
140 bytes_to_add = min(num_bytes, bytes_to_add); in block_rsv_release_bytes()
144 num_bytes in block_rsv_release_bytes()
161 btrfs_block_rsv_migrate(struct btrfs_block_rsv * src,struct btrfs_block_rsv * dst,u64 num_bytes,bool update_size) btrfs_block_rsv_migrate() argument
213 btrfs_block_rsv_add(struct btrfs_fs_info * fs_info,struct btrfs_block_rsv * block_rsv,u64 num_bytes,enum btrfs_reserve_flush_enum flush) btrfs_block_rsv_add() argument
230 u64 num_bytes = 0; btrfs_block_rsv_check() local
243 btrfs_block_rsv_refill(struct btrfs_fs_info * fs_info,struct btrfs_block_rsv * block_rsv,u64 num_bytes,enum btrfs_reserve_flush_enum flush) btrfs_block_rsv_refill() argument
271 btrfs_block_rsv_release(struct btrfs_fs_info * fs_info,struct btrfs_block_rsv * block_rsv,u64 num_bytes,u64 * qgroup_to_release) btrfs_block_rsv_release() argument
295 btrfs_block_rsv_use_bytes(struct btrfs_block_rsv * block_rsv,u64 num_bytes) btrfs_block_rsv_use_bytes() argument
311 btrfs_block_rsv_add_bytes(struct btrfs_block_rsv * block_rsv,u64 num_bytes,bool update_size) btrfs_block_rsv_add_bytes() argument
328 u64 num_bytes; btrfs_update_global_block_rsv() local
[all...]
H A Dqgroup.c83 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_add() argument
86 trace_btrfs_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); in qgroup_rsv_add()
87 qgroup->rsv.values[type] += num_bytes; in qgroup_rsv_add()
91 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_release() argument
94 trace_btrfs_qgroup_update_reserve(fs_info, qgroup, -(s64)num_bytes, type); in qgroup_rsv_release()
95 if (qgroup->rsv.values[type] >= num_bytes) { in qgroup_rsv_release()
96 qgroup->rsv.values[type] -= num_bytes; in qgroup_rsv_release()
103 qgroup->rsv.values[type], num_bytes); in qgroup_rsv_release()
1512 u64 num_bytes = src->excl; in __qgroup_excl_accounting()
1524 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting()
1492 u64 num_bytes = src->excl; __qgroup_excl_accounting() local
2158 btrfs_qgroup_trace_extent(struct btrfs_trans_handle * trans,u64 bytenr,u64 num_bytes) btrfs_qgroup_trace_extent() argument
2203 u64 bytenr, num_bytes; btrfs_qgroup_trace_leaf_items() local
2839 qgroup_update_counters(struct btrfs_fs_info * fs_info,struct list_head * qgroups,u64 nr_old_roots,u64 nr_new_roots,u64 num_bytes,u64 seq) qgroup_update_counters() argument
2949 btrfs_qgroup_account_extent(struct btrfs_trans_handle * trans,u64 bytenr,u64 num_bytes,struct ulist * old_roots,struct ulist * new_roots) btrfs_qgroup_account_extent() argument
3599 qgroup_check_limits(const struct btrfs_qgroup * qg,u64 num_bytes) qgroup_check_limits() argument
3612 qgroup_reserve(struct btrfs_root * root,u64 num_bytes,bool enforce,enum btrfs_qgroup_rsv_type type) qgroup_reserve() argument
3675 btrfs_qgroup_free_refroot(struct btrfs_fs_info * fs_info,u64 ref_root,u64 num_bytes,enum btrfs_qgroup_rsv_type type) btrfs_qgroup_free_refroot() argument
3747 u64 num_bytes; qgroup_rescan_leaf() local
4474 add_root_meta_rsv(struct btrfs_root * root,int num_bytes,enum btrfs_qgroup_rsv_type type) add_root_meta_rsv() argument
4491 sub_root_meta_rsv(struct btrfs_root * root,int num_bytes,enum btrfs_qgroup_rsv_type type) sub_root_meta_rsv() argument
4514 btrfs_qgroup_reserve_meta(struct btrfs_root * root,int num_bytes,enum btrfs_qgroup_rsv_type type,bool enforce) btrfs_qgroup_reserve_meta() argument
4541 btrfs_qgroup_reserve_meta_prealloc(struct btrfs_root * root,int num_bytes,bool enforce,bool noflush) btrfs_qgroup_reserve_meta_prealloc() argument
4577 btrfs_qgroup_free_meta_prealloc(struct btrfs_root * root,int num_bytes) btrfs_qgroup_free_meta_prealloc() argument
4600 qgroup_convert_meta(struct btrfs_fs_info * fs_info,u64 ref_root,int num_bytes) qgroup_convert_meta() argument
4639 btrfs_qgroup_convert_reserved_meta(struct btrfs_root * root,int num_bytes) btrfs_qgroup_convert_reserved_meta() argument
4944 u64 num_bytes = delta->num_bytes; btrfs_record_squota_delta() local
[all...]
H A Ddelayed-ref.h75 u64 num_bytes; member
127 u64 num_bytes; member
280 u64 num_bytes; member
312 u64 num_bytes; in btrfs_calc_delayed_ref_bytes() local
314 num_bytes = btrfs_calc_insert_metadata_size(fs_info, num_delayed_refs); in btrfs_calc_delayed_ref_bytes()
325 num_bytes *= 2; in btrfs_calc_delayed_ref_bytes()
327 return num_bytes; in btrfs_calc_delayed_ref_bytes()
384 u64 bytenr, u64 num_bytes, u8 level,
H A Dextent-tree.c800 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument
829 key.offset = num_bytes; in lookup_inline_extent_backref()
864 key.offset == num_bytes) in lookup_inline_extent_backref()
870 key.offset = num_bytes; in lookup_inline_extent_backref()
882 "extent item not found for insert, bytenr %llu num_bytes %llu parent %llu root_objectid %llu owner %llu offset %llu", in lookup_inline_extent_backref()
883 bytenr, num_bytes, parent, root_objectid, owner, in lookup_inline_extent_backref()
1095 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument
1101 num_bytes, parent, root_objectid, in lookup_extent_backref()
1154 "invalid refs_to_mod for extent %llu num_bytes %u, has %d expect >= -%llu", in update_inline_extent_backref()
1211 "invalid refs_to_mod for backref entry, iref %lu extent %llu num_bytes in update_inline_extent_backref()
1240 insert_inline_extent_backref(struct btrfs_trans_handle * trans,struct btrfs_path * path,u64 bytenr,u64 num_bytes,u64 parent,u64 root_objectid,u64 owner,u64 offset,int refs_to_add,struct btrfs_delayed_extent_op * extent_op) insert_inline_extent_backref() argument
1425 btrfs_discard_extent(struct btrfs_fs_info * fs_info,u64 bytenr,u64 num_bytes,u64 * actual_bytes,bool do_remap) btrfs_discard_extent() argument
1535 u64 num_bytes = node->num_bytes; __btrfs_inc_extent_ref() local
1603 u64 num_bytes = node->num_bytes; drop_remap_tree_ref() local
2689 pin_down_extent(struct btrfs_trans_handle * trans,struct btrfs_block_group * bg,u64 bytenr,u64 num_bytes,bool reserved) pin_down_extent() argument
2708 btrfs_pin_extent(struct btrfs_trans_handle * trans,u64 bytenr,u64 num_bytes) btrfs_pin_extent() argument
2749 __exclude_logged_extent(struct btrfs_fs_info * fs_info,u64 start,u64 num_bytes) __exclude_logged_extent() argument
3146 u64 num_bytes = delta->num_bytes; do_free_extent_accounting() local
3292 u64 num_bytes = node->num_bytes; __btrfs_free_extent() local
4036 u64 num_bytes = ffe_ctl->num_bytes; do_allocation_zoned() local
4878 btrfs_reserve_extent(struct btrfs_root * root,u64 ram_bytes,u64 num_bytes,u64 min_alloc_size,u64 empty_size,u64 hint_byte,struct btrfs_key * ins,bool is_data,bool delalloc) btrfs_reserve_extent() argument
4971 alloc_reserved_extent(struct btrfs_trans_handle * trans,u64 bytenr,u64 num_bytes) alloc_reserved_extent() argument
[all...]
H A Dref-verify.c341 u64 num_bytes) in add_shared_data_ref() argument
349 be = add_block_entry(fs_info, bytenr, num_bytes, 0); in add_shared_data_ref()
371 u64 bytenr, u64 num_bytes) in add_extent_data_ref() argument
384 be = add_block_entry(fs_info, bytenr, num_bytes, ref_root); in add_extent_data_ref()
491 struct btrfs_path *path, u64 *bytenr, u64 *num_bytes, in process_leaf() argument
507 *num_bytes = key.offset; in process_leaf()
526 *num_bytes); in process_leaf()
533 *bytenr, *num_bytes); in process_leaf()
546 int level, u64 *bytenr, u64 *num_bytes, in walk_down_tree() argument
563 ret = process_leaf(root, path, bytenr, num_bytes, in walk_down_tree()
[all …]
H A Dblock-group.c473 * num_bytes. Another option is to have it go ahead and look in the rbtree for
480 u64 num_bytes) in btrfs_wait_block_group_cache_progress() argument
499 (cache->free_space_ctl->free_space >= num_bytes))); in btrfs_wait_block_group_cache_progress()
1410 u64 num_bytes; in btrfs_start_trans_remove_block_group()
1427 num_bytes = btrfs_block_group_available_space(cache);
1442 if (sinfo_used + num_bytes <= sinfo->total_bytes) in inc_block_group_ro()
1451 if (btrfs_can_overcommit(sinfo, num_bytes, BTRFS_RESERVE_NO_FLUSH)) in inc_block_group_ro()
1456 sinfo->bytes_readonly += num_bytes; in inc_block_group_ro()
2827 u64 start, u64 num_bytes) in insert_block_group_item()
2856 btrfs_set_dev_extent_length(leaf, extent, num_bytes); in insert_dev_extent()
1440 u64 num_bytes; inc_block_group_ro() local
2839 insert_dev_extent(struct btrfs_trans_handle * trans,const struct btrfs_device * device,u64 chunk_offset,u64 start,u64 num_bytes) insert_dev_extent() argument
3877 btrfs_update_block_group(struct btrfs_trans_handle * trans,u64 bytenr,u64 num_bytes,bool alloc) btrfs_update_block_group() argument
3999 btrfs_add_reserved_bytes(struct btrfs_block_group * cache,u64 ram_bytes,u64 num_bytes,bool delalloc,bool force_wrong_size_class) btrfs_add_reserved_bytes() argument
4059 btrfs_free_reserved_bytes(struct btrfs_block_group * cache,u64 num_bytes,bool is_delalloc) btrfs_free_reserved_bytes() argument
[all...]
H A Dblock-group.h330 u64 num_bytes);
359 u64 bytenr, u64 num_bytes, bool alloc);
361 u64 ram_bytes, u64 num_bytes, bool delalloc,
363 void btrfs_free_reserved_bytes(struct btrfs_block_group *cache, u64 num_bytes,
/linux/drivers/iio/dac/
H A Dad5706r.c52 unsigned int num_bytes; in ad5706r_regmap_write() local
60 num_bytes = ad5706r_reg_len(reg); in ad5706r_regmap_write()
64 .len = num_bytes + 2, in ad5706r_regmap_write()
69 if (num_bytes == 1) in ad5706r_regmap_write()
71 else if (num_bytes == 2) in ad5706r_regmap_write()
83 unsigned int num_bytes; in ad5706r_regmap_read() local
91 num_bytes = ad5706r_reg_len(reg); in ad5706r_regmap_read()
97 .len = 2 + num_bytes, in ad5706r_regmap_read()
109 if (num_bytes == 1) in ad5706r_regmap_read()
111 else if (num_bytes == 2) in ad5706r_regmap_read()
/linux/drivers/gpu/drm/tests/
H A Ddrm_dp_mst_helper_test.c305 .u.dpcd_read.num_bytes = U8_MAX,
326 .u.dpcd_write.num_bytes = ARRAY_SIZE(data),
351 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7f,
353 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7e,
355 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7d,
378 .u.i2c_write.num_bytes = ARRAY_SIZE(data),
457 txin->num_bytes != txout->num_bytes || in sideband_msg_req_equal()
463 txin->num_bytes) != 0) in sideband_msg_req_equal()
474 IN.num_bytes != OUT.num_bytes || in sideband_msg_req_equal()
478 return memcmp(IN.bytes, OUT.bytes, IN.num_bytes) == 0; in sideband_msg_req_equal()
[all …]
/linux/drivers/comedi/
H A Dcomedi_buf.c325 unsigned int num_bytes) in comedi_buf_munge() argument
333 async->munge_count += num_bytes; in comedi_buf_munge()
334 return num_bytes; in comedi_buf_munge()
338 num_bytes -= num_bytes % num_sample_bytes; in comedi_buf_munge()
339 while (count < num_bytes) { in comedi_buf_munge()
347 min(num_bytes - count, PAGE_SIZE - offset); in comedi_buf_munge()
426 unsigned int num_bytes; in _comedi_buf_read_n_available() local
431 num_bytes = async->munge_count - async->buf_read_count; in _comedi_buf_read_n_available()
439 return num_bytes; in _comedi_buf_read_n_available()
455 unsigned int num_bytes; in comedi_buf_read_n_available() local
[all …]
H A Ddrivers.c468 unsigned int num_bytes; in comedi_bytes_per_scan() local
471 num_bytes = _comedi_bytes_per_scan(s); in comedi_bytes_per_scan()
475 num_bytes = comedi_samples_to_bytes(s, 1); in comedi_bytes_per_scan()
477 return num_bytes; in comedi_bytes_per_scan()
582 unsigned int num_bytes) in _comedi_inc_scan_progress() argument
590 async->cur_chan += comedi_bytes_to_samples(s, num_bytes); in _comedi_inc_scan_progress()
594 async->scan_progress += num_bytes; in _comedi_inc_scan_progress()
611 * @num_bytes: Amount of data in bytes to increment scan progress.
613 * Increments the scan progress by the number of bytes specified by @num_bytes.
619 unsigned int num_bytes) in comedi_inc_scan_progress() argument
[all...]
/linux/drivers/soundwire/
H A Ddebugfs.c145 static size_t num_bytes; variable
246 num_bytes = value; in cmd_go()
264 sec[0].len = num_bytes; in cmd_go()
291 num_bytes == 0 || num_bytes > MAX_CMD_BYTES) in cmd_go()
315 if (fw->size < num_bytes) {
318 fw_name, fw->size, num_bytes);
333 ret = sdw_nwrite_no_pm(slave, start_addr, num_bytes, fw->data); in read_buffer_show()
340 ret = sdw_nread_no_pm(slave, start_addr, num_bytes, read_buffer); in sdw_slave_debugfs_init()
346 num_bytes, re in sdw_slave_debugfs_init()
[all...]
/linux/arch/sparc/prom/
H A Dmemory.c25 sp_banks[index].num_bytes = p->num_bytes; in prom_meminit_v0()
44 sp_banks[i].num_bytes = reg[i].reg_size; in prom_meminit_v2()
84 sp_banks[num_ents].num_bytes = 0; in prom_meminit()
87 sp_banks[i].num_bytes &= PAGE_MASK; in prom_meminit()
H A Dmisc_32.c97 prom_get_idprom(char *idbuf, int num_bytes) in prom_get_idprom() argument
102 if((len>num_bytes) || (len==-1)) return 0xff; in prom_get_idprom()
103 if(!prom_getproperty(prom_root_node, "idprom", idbuf, num_bytes)) in prom_get_idprom()
/linux/sound/soc/codecs/
H A Dsigmadsp.c34 unsigned int num_bytes;
39 u8 cache[] __counted_by(num_bytes);
66 __le16 num_bytes;
114 info->count = ctrl->num_bytes; in sigmadsp_ctrl_info()
123 if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload) in sigmadsp_ctrl_write()
125 ctrl->num_bytes); in sigmadsp_ctrl_write()
128 ctrl->num_bytes); in sigmadsp_ctrl_write()
147 memcpy(ctrl->cache, data, ctrl->num_bytes); in sigmadsp_ctrl_put()
166 ctrl->num_bytes); in sigmadsp_ctrl_get()
173 ctrl->num_bytes); in sigmadsp_ctrl_get()
33 unsigned int num_bytes; global() member
65 __le16 num_bytes; global() member
207 unsigned int num_bytes; sigma_fw_load_control() local
[all...]
/linux/fs/btrfs/tests/
H A Ddelayed-refs-tests.c17 u64 num_bytes; member
25 u64 num_bytes; member
79 if (head->num_bytes != check->num_bytes) { in validate_ref_head()
81 head->num_bytes, check->num_bytes); in validate_ref_head()
115 if (node->num_bytes != check->num_bytes) { in validate_ref_node()
117 node->num_bytes, check->num_bytes); in validate_ref_node()
181 .num_bytes = fs_info->nodesize, in simple_test()
241 .num_bytes = fs_info->nodesize, in simple_tests()
247 .num_bytes = fs_info->nodesize, in simple_tests()
349 .num_bytes = fs_info->nodesize, in merge_tests()
[all …]
H A Dqgroup-tests.c17 u64 num_bytes, u64 parent, u64 root_objectid) in insert_normal_tree_ref() argument
33 ins.offset = num_bytes; in insert_normal_tree_ref()
66 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument
80 key.offset = num_bytes; in add_tree_ref()
116 u64 num_bytes) in remove_extent_item() argument
127 key.offset = num_bytes; in remove_extent_item()
145 u64 num_bytes, u64 parent, u64 root_objectid) in remove_extent_ref() argument
158 key.offset = num_bytes; in remove_extent_ref()
/linux/arch/m68k/include/asm/
H A Dopenprom.h31 int (*v0_wrnetdev)(int dev_desc, int num_bytes, char *buf);
32 int (*v0_rdnetdev)(int dev_desc, int num_bytes, char *buf);
33 int (*v0_rdchardev)(int dev_desc, int num_bytes, int dummy, char *buf);
34 int (*v0_wrchardev)(int dev_desc, int num_bytes, int dummy, char *buf);
62 unsigned num_bytes; member
/linux/drivers/gpib/tms9914/
H A Dtms9914.c515 size_t num_bytes; in tms9914_read() local
531 retval = pio_read(board, priv, buffer, length - 1, end, &num_bytes); in tms9914_read()
532 *bytes_read += num_bytes; in tms9914_read()
535 buffer += num_bytes; in tms9914_read()
536 length -= num_bytes; in tms9914_read()
542 retval = pio_read(board, priv, buffer, length, end, &num_bytes); in tms9914_read()
543 *bytes_read += num_bytes; in tms9914_read()
611 size_t num_bytes; in tms9914_write() local
613 retval = pio_write(board, priv, buffer, length, &num_bytes); in tms9914_write()
614 *bytes_written += num_bytes; in tms9914_write()
[all …]
/linux/crypto/
H A Dzstd.c109 size_t num_bytes; in zstd_compress()
162 num_bytes = zstd_compress_stream(ctx->cctx, &outbuf, &inbuf); in zstd_compress()
163 if (ZSTD_isError(num_bytes)) { in zstd_compress()
181 num_bytes = zstd_end_stream(ctx->cctx, &outbuf); in zstd_compress()
182 if (ZSTD_isError(num_bytes)) in zstd_compress()
108 size_t num_bytes; zstd_compress() local
/linux/include/trace/events/
H A Dbtrfs.h436 __field( u64, num_bytes )
452 __entry->num_bytes = btrfs_file_extent_num_bytes(l, fi);
460 __entry->extent_end = (start + __entry->num_bytes);
472 __entry->extent_end, __entry->num_bytes, __entry->ram_bytes,
593 __entry->len = ordered->num_bytes;
1743 __field( u64, num_bytes )
1754 __entry->num_bytes = ref->num_bytes;
1767 __entry->num_bytes,
1800 __field( u64, num_bytes )
1812 __entry->num_bytes = ref->num_bytes;
[all …]
/linux/arch/m68k/sun3/prom/
H A Dmisc.c57 prom_get_idprom(char *idbuf, int num_bytes) in prom_get_idprom() argument
62 for(i=0;i<num_bytes; i++) in prom_get_idprom()
/linux/drivers/nvmem/
H A Dimx-ocotp-scu.c136 u32 count, index, num_bytes; in imx_scu_ocotp_read() local
142 num_bytes = round_up(bytes, 4); in imx_scu_ocotp_read()
143 count = num_bytes >> 2; in imx_scu_ocotp_read()
148 p = kzalloc(num_bytes, GFP_KERNEL); in imx_scu_ocotp_read()
H A Dimx-ocotp-ele.c70 u32 count, index, num_bytes; in imx_ocotp_reg_read() local
82 num_bytes = round_up(bytes + skipbytes, 4); in imx_ocotp_reg_read()
83 count = num_bytes >> 2; in imx_ocotp_reg_read()
85 p = kzalloc(num_bytes, GFP_KERNEL); in imx_ocotp_reg_read()
H A Dstm32-bsec-optee-ta.c146 u32 start, num_bytes; in stm32_bsec_optee_ta_read() local
163 num_bytes = round_up(offset + bytes - start, 4); in stm32_bsec_optee_ta_read()
168 shm = tee_shm_alloc_kernel_buf(ctx, num_bytes); in stm32_bsec_optee_ta_read()
176 param[1].u.memref.size = num_bytes; in stm32_bsec_optee_ta_read()

1234