Home
last modified time | relevance | path

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

1234567

/openbmc/linux/fs/btrfs/
H A Dblock-rsv.c115 if (num_bytes == (u64)-1) { in block_rsv_release_bytes()
125 num_bytes = 0; in block_rsv_release_bytes()
137 ret = num_bytes; in block_rsv_release_bytes()
138 if (num_bytes > 0) { in block_rsv_release_bytes()
153 if (num_bytes) in block_rsv_release_bytes()
156 num_bytes); in block_rsv_release_bytes()
221 if (num_bytes == 0) in btrfs_block_rsv_add()
233 u64 num_bytes = 0; in btrfs_block_rsv_check() local
368 num_bytes = max_t(u64, num_bytes, in btrfs_update_global_block_rsv()
381 num_bytes); in btrfs_update_global_block_rsv()
[all …]
H A Dqgroup.h114 u64 num_bytes; member
333 u64 num_bytes);
357 u64 num_bytes, struct ulist *old_roots,
364 u64 ref_root, u64 num_bytes,
386 int num_bytes, bool enforce) in btrfs_qgroup_reserve_meta_pertrans() argument
388 return __btrfs_qgroup_reserve_meta(root, num_bytes, in btrfs_qgroup_reserve_meta_pertrans()
393 int num_bytes, bool enforce, in btrfs_qgroup_reserve_meta_prealloc() argument
406 int num_bytes) in btrfs_qgroup_free_meta_pertrans() argument
408 __btrfs_qgroup_free_meta(root, num_bytes, in btrfs_qgroup_free_meta_pertrans()
414 int num_bytes) in btrfs_qgroup_free_meta_prealloc() argument
[all …]
H A Ddelayed-ref.c87 u64 num_bytes; in btrfs_update_delayed_refs_rsv() local
127 num_bytes = 0; in btrfs_migrate_to_delayed_refs_rsv()
130 if (num_bytes) in btrfs_migrate_to_delayed_refs_rsv()
136 if (num_bytes) in btrfs_migrate_to_delayed_refs_rsv()
158 u64 num_bytes = 0; in btrfs_delayed_refs_rsv_refill() local
166 num_bytes = min(num_bytes, limit); in btrfs_delayed_refs_rsv_refill()
170 if (!num_bytes) in btrfs_delayed_refs_rsv_refill()
664 existing->num_bytes = update->num_bytes; in update_existing_head_ref()
759 head_ref->num_bytes = num_bytes; in init_delayed_ref_head()
778 qrecord->num_bytes = num_bytes; in init_delayed_ref_head()
[all …]
H A Ddelalloc-space.c283 u64 num_bytes, u64 disk_num_bytes, in calc_inode_reservations() argument
287 u64 nr_extents = count_max_extents(fs_info, num_bytes); in calc_inode_reservations()
307 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_reserve_metadata() argument
334 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_reserve_metadata()
347 calc_inode_reservations(inode, num_bytes, disk_num_bytes, in btrfs_delalloc_reserve_metadata()
365 nr_extents = count_max_extents(fs_info, num_bytes); in btrfs_delalloc_reserve_metadata()
396 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata() argument
401 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_release_metadata()
404 inode->csum_bytes -= num_bytes; in btrfs_delalloc_release_metadata()
426 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_release_extents() argument
[all …]
H A Dblock-rsv.h64 struct btrfs_block_rsv *block_rsv, u64 num_bytes,
68 struct btrfs_block_rsv *block_rsv, u64 num_bytes,
71 struct btrfs_block_rsv *dst_rsv, u64 num_bytes,
73 int btrfs_block_rsv_use_bytes(struct btrfs_block_rsv *block_rsv, u64 num_bytes);
75 u64 num_bytes, bool update_size);
78 u64 num_bytes, u64 *qgroup_to_release);
H A Dqgroup.c1912 record->num_bytes = num_bytes; in btrfs_qgroup_trace_extent()
3164 if (num_bytes == 0) in qgroup_reserve()
3302 u64 num_bytes; in qgroup_rescan_leaf() local
4029 num_bytes); in sub_root_meta_rsv()
4033 num_bytes); in sub_root_meta_rsv()
4037 return num_bytes; in sub_root_meta_rsv()
4050 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in btrfs_qgroup_reserve_meta()
4112 num_bytes = sub_root_meta_rsv(root, num_bytes, type); in __btrfs_qgroup_free_meta()
4113 BUG_ON(num_bytes != round_down(num_bytes, fs_info->nodesize)); in __btrfs_qgroup_free_meta()
4120 int num_bytes) in qgroup_convert_meta() argument
[all …]
H A Dordered-data.c30 return entry->file_offset + entry->num_bytes; in entry_end()
178 entry->num_bytes = num_bytes; in alloc_ordered_extent()
183 entry->bytes_left = num_bytes; in alloc_ordered_extent()
337 ordered->file_offset, ordered->num_bytes, in can_finish_ordered_extent()
406 u64 num_bytes, bool uptodate) in btrfs_mark_ordered_io_finished() argument
415 file_offset + num_bytes - 1, in btrfs_mark_ordered_io_finished()
419 while (cur < file_offset + num_bytes) { in btrfs_mark_ordered_io_finished()
466 file_offset + num_bytes) - 1; in btrfs_mark_ordered_io_finished()
606 release = entry->num_bytes; in btrfs_remove_ordered_extent()
784 u64 end = start + entry->num_bytes - 1; in btrfs_start_ordered_extent()
[all …]
H A Ddelayed-ref.h30 u64 num_bytes; member
69 u64 num_bytes; member
262 u64 num_bytes; in btrfs_calc_delayed_ref_bytes() local
264 num_bytes = btrfs_calc_insert_metadata_size(fs_info, num_delayed_refs); in btrfs_calc_delayed_ref_bytes()
275 num_bytes *= 2; in btrfs_calc_delayed_ref_bytes()
277 return num_bytes; in btrfs_calc_delayed_ref_bytes()
382 u64 bytenr, u64 num_bytes,
410 u64 num_bytes);
H A Ddelalloc-space.h19 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes,
23 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes,
25 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes);
H A Dextent-tree.c1412 cur += num_bytes; in btrfs_discard_extent()
1490 u64 num_bytes = node->num_bytes; in __btrfs_inc_extent_ref() local
2409 u64 num_bytes; in __btrfs_mod_ref() local
2546 num_bytes); in pin_down_extent()
2969 u64 num_bytes = node->num_bytes; in __btrfs_free_extent() local
3687 u64 num_bytes = ffe_ctl->num_bytes; in do_allocation_zoned() local
4537 ffe_ctl.num_bytes = num_bytes; in btrfs_reserve_extent()
4551 num_bytes = min(num_bytes >> 1, ins->offset); in btrfs_reserve_extent()
4552 num_bytes = round_down(num_bytes, in btrfs_reserve_extent()
4554 num_bytes = max(num_bytes, min_alloc_size); in btrfs_reserve_extent()
[all …]
/openbmc/linux/arch/sparc/mm/
H A Dinit_32.c63 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 …]
/openbmc/linux/drivers/gpu/drm/tests/
H A Ddrm_dp_mst_helper_test.c161 .u.dpcd_read.num_bytes = U8_MAX,
182 .u.dpcd_write.num_bytes = ARRAY_SIZE(data),
207 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7f,
209 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7e,
234 .u.i2c_write.num_bytes = ARRAY_SIZE(data),
313 txin->num_bytes != txout->num_bytes || in sideband_msg_req_equal()
319 txin->num_bytes) != 0) in sideband_msg_req_equal()
330 IN.num_bytes != OUT.num_bytes || in sideband_msg_req_equal()
334 return memcmp(IN.bytes, OUT.bytes, IN.num_bytes) == 0; in sideband_msg_req_equal()
343 IN.num_bytes != OUT.num_bytes) in sideband_msg_req_equal()
[all …]
/openbmc/google-ipmi-sys/test/
H A Dhandler_unittest.cpp396 Pointee(Eq<uint64_t>(num_bytes)))))) in ExpectRead()
417 num_bytes_returned = num_bytes; in ExpectRead()
443 constexpr uint8_t num_bytes = sizeof(uint64_t); in TEST() local
457 constexpr uint8_t num_bytes = sizeof(uint64_t); in TEST() local
472 constexpr uint8_t num_bytes = sizeof(uint64_t); in TEST() local
475 constexpr uint8_t num_bytes_returned = num_bytes - 1; in TEST()
489 constexpr uint8_t num_bytes = sizeof(uint64_t); in TEST() local
531 for (auto i = 0; i < num_bytes; ++i) in ExpectWrite()
564 constexpr uint8_t num_bytes = sizeof(uint64_t); in TEST() local
578 constexpr uint8_t num_bytes = sizeof(uint64_t) + 1; in TEST() local
[all …]
/openbmc/linux/fs/ecryptfs/
H A Dread_write.c116 size_t num_bytes = (PAGE_SIZE - start_offset_in_page); in ecryptfs_write() local
124 if (num_bytes > total_remaining_bytes) in ecryptfs_write()
125 num_bytes = total_remaining_bytes; in ecryptfs_write()
130 if (num_bytes > total_remaining_zeros) in ecryptfs_write()
131 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()
/openbmc/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()
/openbmc/linux/drivers/comedi/
H A Dcomedi_buf.c365 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 …]
/openbmc/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()
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 …]
/openbmc/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
/openbmc/u-boot/common/
H A Davb_verify.c389 size_t num_bytes, in mmc_byte_io() argument
411 while (num_bytes) { in mmc_byte_io()
413 sectors = num_bytes / part->info.blksz; in mmc_byte_io()
416 num_bytes < part->info.blksz) { in mmc_byte_io()
421 if (residue > num_bytes) in mmc_byte_io()
422 residue = num_bytes; in mmc_byte_io()
424 residue = num_bytes; in mmc_byte_io()
471 num_bytes -= residue; in mmc_byte_io()
496 num_bytes -= ret * part->info.blksz; in mmc_byte_io()
534 size_t num_bytes, in read_from_partition() argument
[all …]
/openbmc/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
/openbmc/linux/arch/x86/crypto/
H A Daes_ctrby8_avx-x86_64.S54 #define num_bytes %r8 macro
411 cmp $16, num_bytes
423 mov num_bytes, tmp
440 and $(~7*16), num_bytes
447 and $(~7*16), num_bytes
455 and $(~7*16), num_bytes
462 and $(~7*16), num_bytes
474 and $(~7*16), num_bytes
481 and $(~7*16), num_bytes
488 and $(~7*16), num_bytes
[all …]
/openbmc/u-boot/drivers/spi/
H A Dtegra210_qspi.c212 int num_bytes, tm, ret; in tegra210_qspi_xfer() local
218 num_bytes = bitlen / 8; in tegra210_qspi_xfer()
266 while (num_bytes > 0) { in tegra210_qspi_xfer()
270 bytes = (num_bytes > 4) ? 4 : num_bytes; in tegra210_qspi_xfer()
275 num_bytes -= bytes; in tegra210_qspi_xfer()
342 num_bytes -= bytes; in tegra210_qspi_xfer()
/openbmc/linux/include/trace/events/
H A Dbtrfs.h894 __entry->num_bytes = ref->num_bytes;
907 __entry->num_bytes,
958 __entry->num_bytes = ref->num_bytes;
1019 __entry->num_bytes = head_ref->num_bytes;
1220 __entry->num_bytes = num_bytes;
1287 __entry->num_bytes = ffe_ctl->num_bytes;
1316 __entry->num_bytes = ffe_ctl->num_bytes;
1350 __entry->num_bytes = ffe_ctl->num_bytes;
1752 __entry->num_bytes = rec->num_bytes;
1815 __entry->num_bytes = num_bytes;
[all …]
/openbmc/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()

1234567