Home
last modified time | relevance | path

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

1234567

/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()
118 block_rsv->size -= num_bytes; in block_rsv_release_bytes()
120 num_bytes = block_rsv->reserved - 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()
144 bytes_to_add = min(num_bytes, bytes_to_add); in block_rsv_release_bytes()
148 num_bytes -= bytes_to_add; in block_rsv_release_bytes()
[all …]
H A Dqgroup.h139 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,
395 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
397 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
402 int num_bytes, bool enforce) in btrfs_qgroup_reserve_meta_pertrans() argument
404 return __btrfs_qgroup_reserve_meta(root, num_bytes, in btrfs_qgroup_reserve_meta_pertrans()
409 int num_bytes, bool enforce, in btrfs_qgroup_reserve_meta_prealloc() argument
[all …]
H A Ddelayed-ref.c69 u64 num_bytes; in btrfs_delayed_refs_rsv_release() local
72 num_bytes = btrfs_calc_delayed_ref_bytes(fs_info, nr_refs); in btrfs_delayed_refs_rsv_release()
73 num_bytes += btrfs_calc_delayed_ref_csum_bytes(fs_info, nr_csums); in btrfs_delayed_refs_rsv_release()
75 released = btrfs_block_rsv_release(fs_info, block_rsv, num_bytes, NULL); in btrfs_delayed_refs_rsv_release()
93 u64 num_bytes; in btrfs_update_delayed_refs_rsv() local
99 num_bytes = btrfs_calc_delayed_ref_bytes(fs_info, trans->delayed_ref_updates); in btrfs_update_delayed_refs_rsv()
100 num_bytes += btrfs_calc_delayed_ref_csum_bytes(fs_info, in btrfs_update_delayed_refs_rsv()
103 if (num_bytes == 0) in btrfs_update_delayed_refs_rsv()
117 reserved_bytes = min(num_bytes, local_rsv->reserved); in btrfs_update_delayed_refs_rsv()
123 delayed_rsv->size += num_bytes; in btrfs_update_delayed_refs_rsv()
[all …]
H A Ddelalloc-space.c291 u64 num_bytes, u64 disk_num_bytes, in calc_inode_reservations() argument
295 u64 nr_extents = count_max_extents(fs_info, num_bytes); in calc_inode_reservations()
315 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_reserve_metadata() argument
342 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_reserve_metadata()
355 calc_inode_reservations(inode, num_bytes, disk_num_bytes, in btrfs_delalloc_reserve_metadata()
374 nr_extents = count_max_extents(fs_info, num_bytes); in btrfs_delalloc_reserve_metadata()
405 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata() argument
410 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_release_metadata()
413 inode->csum_bytes -= num_bytes; in btrfs_delalloc_release_metadata()
435 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_release_extents() argument
[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()
1472 u64 num_bytes = src->excl; in __qgroup_excl_accounting() local
1484 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting()
[all …]
H A Dblock-rsv.h73 struct btrfs_block_rsv *block_rsv, u64 num_bytes,
77 struct btrfs_block_rsv *block_rsv, u64 num_bytes,
80 struct btrfs_block_rsv *dst_rsv, u64 num_bytes,
82 int btrfs_block_rsv_use_bytes(struct btrfs_block_rsv *block_rsv, u64 num_bytes);
84 u64 num_bytes, bool update_size);
87 u64 num_bytes, u64 *qgroup_to_release);
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 Dordered-data.c28 if (entry->file_offset + entry->num_bytes < entry->file_offset) in entry_end()
30 return entry->file_offset + entry->num_bytes; in entry_end()
118 entry->file_offset + entry->num_bytes <= file_offset) in btrfs_range_overlaps()
137 if (in_range(file_offset, entry->file_offset, entry->num_bytes)) in ordered_tree_search()
149 struct btrfs_inode *inode, u64 file_offset, u64 num_bytes, in alloc_ordered_extent() argument
168 ret = btrfs_qgroup_free_data(inode, NULL, file_offset, num_bytes, &qgroup_rsv); in alloc_ordered_extent()
170 ret = btrfs_qgroup_release_data(inode, file_offset, num_bytes, &qgroup_rsv); in alloc_ordered_extent()
182 entry->num_bytes = num_bytes; in alloc_ordered_extent()
187 entry->bytes_left = num_bytes; in alloc_ordered_extent()
234 percpu_counter_add_batch(&fs_info->ordered_bytes, entry->num_bytes, in insert_ordered_extent()
[all …]
H A Ddelalloc-space.h22 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes,
26 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes,
28 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes);
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 …]
/linux/arch/sparc/mm/
H A Dinit_32.c63 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in calc_highpages()
65 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages()
85 last_pfn = (sp_banks[0].base_addr + sp_banks[0].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn()
86 for (i = 1; sp_banks[i].num_bytes != 0; i++) { in calc_max_low_pfn()
95 last_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; 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()
[all …]
/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 …]
/linux/fs/ecryptfs/
H A Dread_write.c115 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/drivers/soundwire/
H A Ddebugfs.c146 static size_t num_bytes; variable
215 num_bytes = value; in set_num_bytes()
233 sec[0].len = num_bytes; in do_bpt_sequence()
259 num_bytes == 0 || num_bytes > MAX_CMD_BYTES) in cmd_go()
274 if (fw->size < num_bytes) { in cmd_go()
277 firmware_file, fw->size, num_bytes); in cmd_go()
292 ret = sdw_nwrite_no_pm(slave, start_addr, num_bytes, fw->data); in cmd_go()
299 ret = sdw_nread_no_pm(slave, start_addr, num_bytes, read_buffer); in cmd_go()
305 num_bytes, ret, div_u64(finish_t - start_t, NSEC_PER_MSEC)); in cmd_go()
326 if (num_bytes == 0 || num_bytes > MAX_CMD_BYTES) in read_buffer_show()
[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.c33 unsigned int num_bytes; member
65 __le16 num_bytes; member
113 info->count = ctrl->num_bytes; in sigmadsp_ctrl_info()
122 if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload) in sigmadsp_ctrl_write()
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
[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 …]
/linux/arch/riscv/kernel/
H A Dsbi.c591 int sbi_debug_console_write(const char *bytes, unsigned int num_bytes) in sbi_debug_console_write() argument
604 if (PAGE_SIZE < (offset_in_page(bytes) + num_bytes)) in sbi_debug_console_write()
605 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_write()
609 num_bytes, lower_32_bits(base_addr), in sbi_debug_console_write()
613 num_bytes, base_addr, 0, 0, 0, 0); in sbi_debug_console_write()
620 int sbi_debug_console_read(char *bytes, unsigned int num_bytes) in sbi_debug_console_read() argument
633 if (PAGE_SIZE < (offset_in_page(bytes) + num_bytes)) in sbi_debug_console_read()
634 num_bytes = PAGE_SIZE - offset_in_page(bytes); in sbi_debug_console_read()
638 num_bytes, lower_32_bits(base_addr), in sbi_debug_console_read()
642 num_bytes, base_addr, 0, 0, 0, 0); in sbi_debug_console_read()
/linux/include/trace/events/
H A Dbtrfs.h367 __field( u64, num_bytes )
383 __entry->num_bytes = btrfs_file_extent_num_bytes(l, fi);
391 __entry->extent_end = (start + __entry->num_bytes);
403 __entry->extent_end, __entry->num_bytes, __entry->ram_bytes,
524 __entry->len = ordered->num_bytes;
863 __field( u64, num_bytes )
874 __entry->num_bytes = ref->num_bytes;
887 __entry->num_bytes,
920 __field( u64, num_bytes )
932 __entry->num_bytes = ref->num_bytes;
[all …]
/linux/arch/sparc/include/asm/
H A Dopenprom.h23 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/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/slimbus/
H A 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()
278 msg->num_bytes = count; in slim_fill_msg()
/linux/drivers/i2c/busses/
H A Di2c-omap.c999 static void omap_i2c_receive_data(struct omap_i2c_dev *omap, u8 num_bytes, in omap_i2c_receive_data() argument
1004 while (num_bytes--) { in omap_i2c_receive_data()
1020 static int omap_i2c_transmit_data(struct omap_i2c_dev *omap, u8 num_bytes, in omap_i2c_transmit_data() argument
1025 while (num_bytes--) { in omap_i2c_transmit_data()
1114 u8 num_bytes = 1; in omap_i2c_xfer_data() local
1117 num_bytes = omap->buf_len; in omap_i2c_xfer_data()
1121 num_bytes = (omap_i2c_read_reg(omap, in omap_i2c_xfer_data()
1125 omap_i2c_receive_data(omap, num_bytes, true); in omap_i2c_xfer_data()
1131 u8 num_bytes = 1; in omap_i2c_xfer_data() local
1134 num_bytes = omap->threshold; in omap_i2c_xfer_data()
[all …]

1234567