Home
last modified time | relevance | path

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

12

/linux-4.19.296/fs/btrfs/
Dqgroup.h47 u64 num_bytes; member
216 u64 num_bytes, gfp_t gfp_flag);
240 u64 num_bytes, struct ulist *old_roots,
247 u64 ref_root, u64 num_bytes,
250 u64 ref_root, u64 num_bytes) in btrfs_qgroup_free_delayed_ref() argument
254 trace_btrfs_qgroup_free_delayed_ref(fs_info, ref_root, num_bytes); in btrfs_qgroup_free_delayed_ref()
255 btrfs_qgroup_free_refroot(fs_info, ref_root, num_bytes, in btrfs_qgroup_free_delayed_ref()
271 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
275 int num_bytes, bool enforce) in btrfs_qgroup_reserve_meta_pertrans() argument
277 return __btrfs_qgroup_reserve_meta(root, num_bytes, in btrfs_qgroup_reserve_meta_pertrans()
[all …]
Dqgroup.c69 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_add() argument
72 trace_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); in qgroup_rsv_add()
73 qgroup->rsv.values[type] += num_bytes; in qgroup_rsv_add()
77 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_release() argument
80 trace_qgroup_update_reserve(fs_info, qgroup, -(s64)num_bytes, type); in qgroup_rsv_release()
81 if (qgroup->rsv.values[type] >= num_bytes) { in qgroup_rsv_release()
82 qgroup->rsv.values[type] -= num_bytes; in qgroup_rsv_release()
89 qgroup->rsv.values[type], num_bytes); in qgroup_rsv_release()
1167 u64 num_bytes = src->excl; in __qgroup_excl_accounting() local
1174 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting()
[all …]
Dextent-tree.c77 u64 num_bytes);
80 u64 num_bytes);
83 u64 num_bytes);
210 u64 start, u64 num_bytes) in add_excluded_extent() argument
212 u64 end = start + num_bytes - 1; in add_excluded_extent()
741 static void add_pinned_bytes(struct btrfs_fs_info *fs_info, s64 num_bytes, in add_pinned_bytes() argument
758 percpu_counter_add_batch(&space_info->total_bytes_pinned, num_bytes, in add_pinned_bytes()
1475 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument
1499 key.offset = num_bytes; in lookup_inline_extent_backref()
1536 key.offset == num_bytes) in lookup_inline_extent_backref()
[all …]
Ddelayed-ref.c390 head->num_bytes; in btrfs_select_ref_head()
480 existing->num_bytes = update->num_bytes; in update_existing_head_ref()
519 delayed_refs->pending_csums -= existing->num_bytes; in update_existing_head_ref()
521 delayed_refs->pending_csums += existing->num_bytes; in update_existing_head_ref()
528 u64 bytenr, u64 num_bytes, u64 ref_root, in init_delayed_ref_head() argument
564 head_ref->num_bytes = num_bytes; in init_delayed_ref_head()
586 qrecord->num_bytes = num_bytes; in init_delayed_ref_head()
639 delayed_refs->pending_csums += head_ref->num_bytes; in add_delayed_ref_head()
680 u64 bytenr, u64 num_bytes, u64 ref_root, in init_delayed_ref_common() argument
693 ref->num_bytes = num_bytes; in init_delayed_ref_common()
[all …]
Ddelayed-ref.h30 u64 num_bytes; member
73 u64 num_bytes; member
238 u64 bytenr, u64 num_bytes, u64 parent,
243 u64 bytenr, u64 num_bytes,
249 u64 bytenr, u64 num_bytes,
Dref-verify.c367 u64 num_bytes) in add_shared_data_ref() argument
375 be = add_block_entry(fs_info, bytenr, num_bytes, 0); in add_shared_data_ref()
397 u64 bytenr, u64 num_bytes) in add_extent_data_ref() argument
410 be = add_block_entry(fs_info, bytenr, num_bytes, ref_root); in add_extent_data_ref()
509 struct btrfs_path *path, u64 *bytenr, u64 *num_bytes) in process_leaf() argument
524 *num_bytes = key.offset; in process_leaf()
542 *num_bytes); in process_leaf()
549 *bytenr, *num_bytes); in process_leaf()
562 int level, u64 *bytenr, u64 *num_bytes) in walk_down_tree() argument
593 ret = process_leaf(root, path, bytenr, num_bytes); in walk_down_tree()
[all …]
Dref-verify.h12 int btrfs_ref_tree_mod(struct btrfs_root *root, u64 bytenr, u64 num_bytes,
34 u64 num_bytes, u64 parent, u64 ref_root, in btrfs_ref_tree_mod() argument
Ddelayed-inode.c547 u64 num_bytes; in btrfs_delayed_item_reserve_metadata() local
556 num_bytes = btrfs_calc_trans_metadata_size(fs_info, 1); in btrfs_delayed_item_reserve_metadata()
563 ret = btrfs_block_rsv_migrate(src_rsv, dst_rsv, num_bytes, 1); in btrfs_delayed_item_reserve_metadata()
567 num_bytes, 1); in btrfs_delayed_item_reserve_metadata()
568 item->bytes_reserved = num_bytes; in btrfs_delayed_item_reserve_metadata()
604 u64 num_bytes; in btrfs_delayed_inode_reserve_metadata() local
610 num_bytes = btrfs_calc_trans_metadata_size(fs_info, 1); in btrfs_delayed_inode_reserve_metadata()
623 ret = btrfs_qgroup_reserve_meta_prealloc(root, num_bytes, true); in btrfs_delayed_inode_reserve_metadata()
626 ret = btrfs_block_rsv_add(root, dst_rsv, num_bytes, in btrfs_delayed_inode_reserve_metadata()
636 btrfs_qgroup_free_meta_prealloc(root, num_bytes); in btrfs_delayed_inode_reserve_metadata()
[all …]
Dprops.c302 u64 num_bytes; in inherit_props() local
311 num_bytes = btrfs_calc_trans_metadata_size(fs_info, 1); in inherit_props()
313 num_bytes, BTRFS_RESERVE_NO_FLUSH); in inherit_props()
318 btrfs_block_rsv_release(fs_info, trans->block_rsv, num_bytes); in inherit_props()
Dfile.c521 u64 num_bytes; in btrfs_dirty_pages() local
529 num_bytes = round_up(write_bytes + pos - start_pos, in btrfs_dirty_pages()
532 end_of_last_block = start_pos + num_bytes - 1; in btrfs_dirty_pages()
554 num_bytes, cached); in btrfs_dirty_pages()
762 u64 num_bytes = 0; in __btrfs_drop_extents() local
835 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in __btrfs_drop_extents()
913 disk_bytenr, num_bytes, 0, in __btrfs_drop_extents()
997 disk_bytenr, num_bytes, 0, in __btrfs_drop_extents()
1148 u64 num_bytes; in btrfs_mark_extent_written() local
1199 num_bytes = btrfs_file_extent_disk_num_bytes(leaf, fi); in btrfs_mark_extent_written()
[all …]
Dtransaction.c465 u64 num_bytes = 0; in start_transaction() local
497 num_bytes = btrfs_calc_trans_metadata_size(fs_info, num_items); in start_transaction()
502 num_bytes += fs_info->nodesize; in start_transaction()
507 num_bytes, flush); in start_transaction()
567 if (num_bytes) { in start_transaction()
569 h->transid, num_bytes, 1); in start_transaction()
571 h->bytes_reserved = num_bytes; in start_transaction()
596 if (num_bytes) in start_transaction()
598 num_bytes); in start_transaction()
618 u64 num_bytes; in btrfs_start_transaction_fallback_global_rsv() local
[all …]
Dinode.c444 u64 start, u64 end, u64 num_bytes, u64 small_write) in inode_should_defrag() argument
447 if (num_bytes < small_write && in inode_should_defrag()
931 u64 num_bytes) in get_extent_allocation_hint() argument
938 em = search_extent_mapping(em_tree, start, num_bytes); in get_extent_allocation_hint()
984 u64 num_bytes; in cow_file_range() local
1002 num_bytes = ALIGN(end - start + 1, blocksize); in cow_file_range()
1003 num_bytes = max(blocksize, num_bytes); in cow_file_range()
1004 ASSERT(num_bytes <= btrfs_super_total_bytes(fs_info->super_copy)); in cow_file_range()
1006 inode_should_defrag(BTRFS_I(inode), start, end, num_bytes, SZ_64K); in cow_file_range()
1035 alloc_hint = get_extent_allocation_hint(inode, start, num_bytes); in cow_file_range()
[all …]
/linux-4.19.296/fs/ecryptfs/
Dread_write.c130 size_t num_bytes = (PAGE_SIZE - start_offset_in_page); in ecryptfs_write() local
138 if (num_bytes > total_remaining_bytes) in ecryptfs_write()
139 num_bytes = total_remaining_bytes; in ecryptfs_write()
144 if (num_bytes > total_remaining_zeros) in ecryptfs_write()
145 num_bytes = total_remaining_zeros; in ecryptfs_write()
177 (data + data_offset), num_bytes); in ecryptfs_write()
178 data_offset += num_bytes; in ecryptfs_write()
197 pos += num_bytes; in ecryptfs_write()
/linux-4.19.296/include/drm/
Ddrm_displayid.h65 u8 num_bytes; member
98 (idx) + sizeof(struct displayid_block) + (block)->num_bytes <= (length) && \
99 (block)->num_bytes > 0; \
100 (idx) += (block)->num_bytes + sizeof(struct displayid_block), \
Ddrm_dp_mst_helper.h184 u8 num_bytes; member
200 u8 num_bytes; member
255 u8 num_bytes; member
261 u8 num_bytes; member
271 u8 num_bytes; member
283 u8 num_bytes; member
/linux-4.19.296/include/trace/events/
Dbtrfs.h307 __field( u64, num_bytes )
323 __entry->num_bytes = btrfs_file_extent_num_bytes(l, fi);
331 __entry->extent_end = (start + __entry->num_bytes);
343 __entry->extent_end, __entry->num_bytes, __entry->ram_bytes,
720 __field( u64, num_bytes )
731 __entry->num_bytes = ref->num_bytes;
744 __entry->num_bytes,
783 __field( u64, num_bytes )
795 __entry->num_bytes = ref->num_bytes;
809 __entry->num_bytes,
[all …]
/linux-4.19.296/drivers/slimbus/
Dmessaging.c182 if (!msg || msg->num_bytes > 16 || in slim_val_inf_sanity()
183 (msg->start_offset + msg->num_bytes) > 0xC00) in slim_val_inf_sanity()
249 sl = slim_slicesize(msg->num_bytes); in slim_xfer_msg()
252 msg->start_offset, msg->num_bytes, mc, sl); in slim_xfer_msg()
261 txn->rl += msg->num_bytes; in slim_xfer_msg()
277 msg->num_bytes = count; in slim_fill_msg()
Dqcom-ngd-ctrl.c791 if (txn->msg->num_bytes > SLIM_MSGQ_BUF_LEN || in qcom_slim_ngd_xfer_msg()
839 txn->msg->num_bytes = i; in qcom_slim_ngd_xfer_msg()
842 txn->rl = txn->msg->num_bytes + 4; in qcom_slim_ngd_xfer_msg()
868 memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); in qcom_slim_ngd_xfer_msg()
931 txn.msg->num_bytes = 0; in qcom_slim_ngd_enable_stream()
938 if (txn.msg->num_bytes == 0) { in qcom_slim_ngd_enable_stream()
942 wbuf[txn.msg->num_bytes++] = sdev->laddr; in qcom_slim_ngd_enable_stream()
943 wbuf[txn.msg->num_bytes] = rt->bps >> 2 | in qcom_slim_ngd_enable_stream()
949 wbuf[txn.msg->num_bytes] |= BIT(5); in qcom_slim_ngd_enable_stream()
951 txn.msg->num_bytes++; in qcom_slim_ngd_enable_stream()
[all …]
Dsched.c98 msg.num_bytes = 1; in slim_ctrl_clk_pause()
106 msg.num_bytes = 1; in slim_ctrl_clk_pause()
/linux-4.19.296/fs/btrfs/tests/
Dqgroup-tests.c15 u64 num_bytes, u64 parent, u64 root_objectid) in insert_normal_tree_ref() argument
31 ins.offset = num_bytes; in insert_normal_tree_ref()
67 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument
81 key.offset = num_bytes; in add_tree_ref()
120 u64 num_bytes) in remove_extent_item() argument
131 key.offset = num_bytes; in remove_extent_item()
152 u64 num_bytes, u64 parent, u64 root_objectid) in remove_extent_ref() argument
165 key.offset = num_bytes; in remove_extent_ref()
/linux-4.19.296/drivers/i2c/busses/
Di2c-omap.c968 static void omap_i2c_receive_data(struct omap_i2c_dev *omap, u8 num_bytes, in omap_i2c_receive_data() argument
973 while (num_bytes--) { in omap_i2c_receive_data()
989 static int omap_i2c_transmit_data(struct omap_i2c_dev *omap, u8 num_bytes, in omap_i2c_transmit_data() argument
994 while (num_bytes--) { in omap_i2c_transmit_data()
1096 u8 num_bytes = 1; in omap_i2c_isr_thread() local
1099 num_bytes = omap->buf_len; in omap_i2c_isr_thread()
1103 num_bytes = (omap_i2c_read_reg(omap, in omap_i2c_isr_thread()
1107 omap_i2c_receive_data(omap, num_bytes, true); in omap_i2c_isr_thread()
1113 u8 num_bytes = 1; in omap_i2c_isr_thread() local
1116 num_bytes = omap->threshold; in omap_i2c_isr_thread()
[all …]
/linux-4.19.296/drivers/uwb/
Ddrp.c107 int num_bytes = 0; in uwb_rc_send_all_drp_ie() local
114 num_bytes += rsv->drp_ie->hdr.length + 2; in uwb_rc_send_all_drp_ie()
118 num_bytes += in uwb_rc_send_all_drp_ie()
123 num_bytes += sizeof(rc->drp_avail.ie); in uwb_rc_send_all_drp_ie()
124 cmd = kzalloc(sizeof(*cmd) + num_bytes, GFP_KERNEL); in uwb_rc_send_all_drp_ie()
129 cmd->wIELength = num_bytes; in uwb_rc_send_all_drp_ie()
156 &cmd->rccb, sizeof(*cmd) + num_bytes, in uwb_rc_send_all_drp_ie()
/linux-4.19.296/drivers/char/tpm/
Dtpm-interface.c1299 u32 recd, num_bytes = min_t(u32, max, TPM_MAX_RNG_DATA), rlength; in tpm_get_random() local
1303 if (!out || !num_bytes || max > TPM_MAX_RNG_DATA) in tpm_get_random()
1318 tpm_cmd.params.getrandom_in.num_bytes = cpu_to_be32(num_bytes); in tpm_get_random()
1321 TPM_GETRANDOM_RESULT_SIZE + num_bytes, in tpm_get_random()
1329 if (recd > num_bytes) { in tpm_get_random()
1345 num_bytes -= recd; in tpm_get_random()
Dtpm2-cmd.c305 u32 num_bytes = max; in tpm2_get_random() local
311 if (!num_bytes || max > TPM_MAX_RNG_DATA) in tpm2_get_random()
320 tpm_buf_append_u16(&buf, num_bytes); in tpm2_get_random()
330 recd = min_t(u32, be16_to_cpu(out->size), num_bytes); in tpm2_get_random()
342 num_bytes -= recd; in tpm2_get_random()
/linux-4.19.296/block/partitions/
Dsgi.c20 __be32 num_bytes; /* How big, in bytes */ member

12