| /linux-6.15/fs/btrfs/ |
| H A D | block-rsv.c | 114 if (num_bytes == (u64)-1) { in block_rsv_release_bytes() 115 num_bytes = block_rsv->size; in block_rsv_release_bytes() 124 num_bytes = 0; in block_rsv_release_bytes() 136 ret = num_bytes; in block_rsv_release_bytes() 137 if (num_bytes > 0) { in block_rsv_release_bytes() 152 if (num_bytes) in block_rsv_release_bytes() 218 if (num_bytes == 0) in btrfs_block_rsv_add() 222 num_bytes, flush); in btrfs_block_rsv_add() 231 u64 num_bytes = 0; in btrfs_block_rsv_check() local 263 num_bytes, flush); in btrfs_block_rsv_refill() [all …]
|
| H A D | qgroup.h | 139 u64 num_bytes; member 302 u64 num_bytes; member 362 u64 num_bytes); 369 u64 num_bytes, struct ulist *old_roots, 380 u64 ref_root, u64 num_bytes, 402 int num_bytes, bool enforce) in btrfs_qgroup_reserve_meta_pertrans() argument 409 int num_bytes, bool enforce, in btrfs_qgroup_reserve_meta_prealloc() argument 422 int num_bytes) in btrfs_qgroup_free_meta_pertrans() argument 424 __btrfs_qgroup_free_meta(root, num_bytes, in btrfs_qgroup_free_meta_pertrans() 430 int num_bytes) in btrfs_qgroup_free_meta_prealloc() argument [all …]
|
| H A D | delayed-ref.c | 69 u64 num_bytes; in btrfs_delayed_refs_rsv_release() local 93 u64 num_bytes; in btrfs_update_delayed_refs_rsv() local 103 if (num_bytes == 0) in btrfs_update_delayed_refs_rsv() 216 u64 num_bytes = 0; in btrfs_delayed_refs_rsv_refill() local 224 num_bytes = min(num_bytes, limit); in btrfs_delayed_refs_rsv_refill() 228 if (!num_bytes) in btrfs_delayed_refs_rsv_refill() 673 existing->num_bytes = update->num_bytes; in update_existing_head_ref() 772 head_ref->num_bytes = generic_ref->num_bytes; in init_delayed_ref_head() 798 qrecord->num_bytes = generic_ref->num_bytes; in init_delayed_ref_head() 939 ref->num_bytes = generic_ref->num_bytes; in init_delayed_ref_common() [all …]
|
| H A D | delalloc-space.c | 281 u64 num_bytes, u64 disk_num_bytes, in calc_inode_reservations() argument 285 u64 nr_extents = count_max_extents(fs_info, num_bytes); in calc_inode_reservations() 305 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_reserve_metadata() argument 332 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_reserve_metadata() 345 calc_inode_reservations(inode, num_bytes, disk_num_bytes, in btrfs_delalloc_reserve_metadata() 364 nr_extents = count_max_extents(fs_info, num_bytes); in btrfs_delalloc_reserve_metadata() 395 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata() argument 400 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_release_metadata() 403 inode->csum_bytes -= num_bytes; in btrfs_delalloc_release_metadata() 425 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_release_extents() argument [all …]
|
| H A D | block-rsv.h | 71 struct btrfs_block_rsv *block_rsv, u64 num_bytes, 75 struct btrfs_block_rsv *block_rsv, u64 num_bytes, 78 struct btrfs_block_rsv *dst_rsv, u64 num_bytes, 80 int btrfs_block_rsv_use_bytes(struct btrfs_block_rsv *block_rsv, u64 num_bytes); 82 u64 num_bytes, bool update_size); 85 u64 num_bytes, u64 *qgroup_to_release);
|
| H A D | qgroup.c | 2148 record->num_bytes = num_bytes; in btrfs_qgroup_trace_extent() 3718 u64 num_bytes; in qgroup_rescan_leaf() local 4453 num_bytes); in sub_root_meta_rsv() 4457 num_bytes); in sub_root_meta_rsv() 4461 return num_bytes; in sub_root_meta_rsv() 4474 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in btrfs_qgroup_reserve_meta() 4540 num_bytes = sub_root_meta_rsv(root, num_bytes, type); in __btrfs_qgroup_free_meta() 4541 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in __btrfs_qgroup_free_meta() 4547 int num_bytes) in qgroup_convert_meta() argument 4594 num_bytes = sub_root_meta_rsv(root, num_bytes, in btrfs_qgroup_convert_reserved_meta() [all …]
|
| H A D | ordered-data.c | 30 return entry->file_offset + entry->num_bytes; in entry_end() 177 entry->num_bytes = num_bytes; in alloc_ordered_extent() 182 entry->bytes_left = num_bytes; in alloc_ordered_extent() 287 file_extent->num_bytes, in btrfs_alloc_ordered_extent() 288 file_extent->num_bytes, in btrfs_alloc_ordered_extent() 294 file_extent->num_bytes, in btrfs_alloc_ordered_extent() 464 u64 num_bytes, bool uptodate) in btrfs_mark_ordered_io_finished() argument 472 file_offset + num_bytes - 1, in btrfs_mark_ordered_io_finished() 523 file_offset + num_bytes) - 1; in btrfs_mark_ordered_io_finished() 661 release = entry->num_bytes; in btrfs_remove_ordered_extent() [all …]
|
| H A D | delayed-ref.h | 75 u64 num_bytes; member 127 u64 num_bytes; member 285 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 D | extent-tree.c | 1437 cur += num_bytes; in btrfs_discard_extent() 1491 u64 num_bytes = node->num_bytes; in __btrfs_inc_extent_ref() local 1572 .num_bytes = node->num_bytes, in run_delayed_data_ref() 2946 u64 num_bytes = delta->num_bytes; in do_free_extent_accounting() local 3071 u64 num_bytes = node->num_bytes; in __btrfs_free_extent() local 3277 .num_bytes = num_bytes, in __btrfs_free_extent() 3815 u64 num_bytes = ffe_ctl->num_bytes; in do_allocation_zoned() local 4665 ffe_ctl.num_bytes = num_bytes; in btrfs_reserve_extent() 4679 num_bytes = min(num_bytes >> 1, ins->offset); in btrfs_reserve_extent() 4680 num_bytes = round_down(num_bytes, in btrfs_reserve_extent() [all …]
|
| H A D | delalloc-space.h | 23 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, 27 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes, 29 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes);
|
| H A D | ref-verify.c | 359 u64 num_bytes) in add_shared_data_ref() argument 367 be = add_block_entry(fs_info, bytenr, num_bytes, 0); in add_shared_data_ref() 389 u64 bytenr, u64 num_bytes) in add_extent_data_ref() argument 525 *num_bytes = key.offset; in process_leaf() 544 *num_bytes); in process_leaf() 551 *bytenr, *num_bytes); in process_leaf() 564 int level, u64 *bytenr, u64 *num_bytes, in walk_down_tree() argument 681 u64 num_bytes = generic_ref->num_bytes; in btrfs_ref_tree_mod() local 798 action, bytenr, num_bytes); in btrfs_ref_tree_mod() 995 u64 bytenr = 0, num_bytes = 0; in btrfs_build_ref_tree() local [all …]
|
| /linux-6.15/arch/sparc/mm/ |
| H A D | init_32.c | 63 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in calc_highpages() 86 for (i = 1; sp_banks[i].num_bytes != 0; i++) { in calc_max_low_pfn() 142 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in bootmem_init() 144 sp_banks[i].num_bytes; in bootmem_init() 145 bytes_avail += sp_banks[i].num_bytes; in bootmem_init() 153 sp_banks[i].num_bytes -= slack; in bootmem_init() 154 if (sp_banks[i].num_bytes == 0) { in bootmem_init() 158 sp_banks[i].num_bytes); in bootmem_init() 159 sp_banks[i+1].num_bytes = 0; in bootmem_init() 222 for (i = 0; sp_banks[i].num_bytes; i++) { in taint_real_pages() [all …]
|
| /linux-6.15/drivers/gpu/drm/tests/ |
| H A D | drm_dp_mst_helper_test.c | 305 .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, 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() 487 IN.num_bytes != OUT.num_bytes) in sideband_msg_req_equal() [all …]
|
| /linux-6.15/fs/ecryptfs/ |
| H A D | read_write.c | 115 size_t num_bytes = (PAGE_SIZE - start_offset_in_page); in ecryptfs_write() local 123 if (num_bytes > total_remaining_bytes) in ecryptfs_write() 124 num_bytes = total_remaining_bytes; in ecryptfs_write() 129 if (num_bytes > total_remaining_zeros) in ecryptfs_write() 130 num_bytes = total_remaining_zeros; in ecryptfs_write() 163 (data + data_offset), num_bytes); in ecryptfs_write() 164 data_offset += num_bytes; in ecryptfs_write() 183 pos += num_bytes; in ecryptfs_write()
|
| /linux-6.15/drivers/soundwire/ |
| H A D | debugfs.c | 144 static size_t num_bytes; variable 213 num_bytes = value; in set_num_bytes() 225 msg.len = num_bytes; in do_bpt_sequence() 249 num_bytes == 0 || num_bytes > MAX_CMD_BYTES) in cmd_go() 264 if (fw->size < num_bytes) { in cmd_go() 267 firmware_file, fw->size, num_bytes); in cmd_go() 282 ret = sdw_nwrite_no_pm(slave, start_addr, num_bytes, fw->data); in cmd_go() 289 ret = sdw_nread_no_pm(slave, start_addr, num_bytes, read_buffer); in cmd_go() 302 num_bytes, ret, div_u64(finish_t - start_t, NSEC_PER_MSEC)); in cmd_go() 316 if (num_bytes == 0 || num_bytes > MAX_CMD_BYTES) in read_buffer_show() [all …]
|
| /linux-6.15/arch/sparc/prom/ |
| H A D | memory.c | 25 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 D | misc_32.c | 97 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-6.15/drivers/comedi/ |
| H A D | comedi_buf.c | 365 unsigned int num_bytes) in comedi_buf_munge() argument 372 async->munge_count += num_bytes; in comedi_buf_munge() 373 return num_bytes; in comedi_buf_munge() 377 num_bytes -= num_bytes % num_sample_bytes; in comedi_buf_munge() 378 while (count < num_bytes) { in comedi_buf_munge() 379 int block_size = num_bytes - count; in comedi_buf_munge() 462 unsigned int num_bytes; in comedi_buf_read_n_available() local 475 return num_bytes; in comedi_buf_read_n_available() 563 while (num_bytes) { in comedi_buf_memcpy_to() 569 block_size = num_bytes; in comedi_buf_memcpy_to() [all …]
|
| /linux-6.15/sound/soc/codecs/ |
| H A D | sigmadsp.c | 33 unsigned int num_bytes; member 65 __le16 num_bytes; member 113 info->count = ctrl->num_bytes; in sigmadsp_ctrl_info() 124 ctrl->num_bytes); in sigmadsp_ctrl_write() 127 ctrl->num_bytes); in sigmadsp_ctrl_write() 146 memcpy(ctrl->cache, data, ctrl->num_bytes); in sigmadsp_ctrl_put() 167 ctrl->num_bytes); in sigmadsp_ctrl_get() 174 ctrl->num_bytes); in sigmadsp_ctrl_get() 207 unsigned int num_bytes; in sigma_fw_load_control() local 225 num_bytes = le16_to_cpu(ctrl_chunk->num_bytes); in sigma_fw_load_control() [all …]
|
| /linux-6.15/arch/riscv/kernel/ |
| H A D | sbi.c | 521 int sbi_debug_console_write(const char *bytes, unsigned int num_bytes) in sbi_debug_console_write() argument 534 if (PAGE_SIZE < (offset_in_page(bytes) + num_bytes)) in sbi_debug_console_write() 535 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_write() 539 num_bytes, lower_32_bits(base_addr), in sbi_debug_console_write() 543 num_bytes, base_addr, 0, 0, 0, 0); in sbi_debug_console_write() 550 int sbi_debug_console_read(char *bytes, unsigned int num_bytes) in sbi_debug_console_read() argument 563 if (PAGE_SIZE < (offset_in_page(bytes) + num_bytes)) in sbi_debug_console_read() 564 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_read() 568 num_bytes, lower_32_bits(base_addr), in sbi_debug_console_read() 572 num_bytes, base_addr, 0, 0, 0, 0); in sbi_debug_console_read()
|
| /linux-6.15/fs/btrfs/tests/ |
| H A D | delayed-refs-tests.c | 17 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 …]
|
| /linux-6.15/arch/sparc/include/asm/ |
| H A D | openprom.h | 23 int (*v0_wrnetdev)(int dev_desc, int num_bytes, char *buf); 24 int (*v0_rdnetdev)(int dev_desc, int num_bytes, char *buf); 25 int (*v0_rdchardev)(int dev_desc, int num_bytes, int dummy, char *buf); 26 int (*v0_wrchardev)(int dev_desc, int num_bytes, int dummy, char *buf); 54 unsigned int num_bytes; member
|
| /linux-6.15/arch/m68k/include/asm/ |
| H A D | openprom.h | 31 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-6.15/drivers/slimbus/ |
| H A D | messaging.c | 184 if (!msg || msg->num_bytes > 16 || in slim_val_inf_sanity() 185 (msg->start_offset + msg->num_bytes) > 0xC00) in slim_val_inf_sanity() 251 sl = slim_slicesize(msg->num_bytes); in slim_xfer_msg() 254 msg->start_offset, msg->num_bytes, mc, sl); in slim_xfer_msg() 263 txn->rl += msg->num_bytes; in slim_xfer_msg() 280 msg->num_bytes = count; in slim_fill_msg()
|
| /linux-6.15/include/trace/events/ |
| H A D | btrfs.h | 876 __entry->num_bytes = ref->num_bytes; 889 __entry->num_bytes, 934 __entry->num_bytes = ref->num_bytes; 991 __entry->num_bytes = head_ref->num_bytes; 1192 __entry->num_bytes = num_bytes; 1259 __entry->num_bytes = ffe_ctl->num_bytes; 1288 __entry->num_bytes = ffe_ctl->num_bytes; 1322 __entry->num_bytes = ffe_ctl->num_bytes; 1722 __entry->num_bytes = rec->num_bytes; 1787 __entry->num_bytes = num_bytes; [all …]
|