Home
last modified time | relevance | path

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

12345678

/openbmc/linux/fs/btrfs/
H A Dblock-rsv.c107 struct btrfs_block_rsv *dest, u64 num_bytes, in block_rsv_release_bytes() argument
115 if (num_bytes == (u64)-1) { in block_rsv_release_bytes()
116 num_bytes = block_rsv->size; in block_rsv_release_bytes()
119 block_rsv->size -= num_bytes; in block_rsv_release_bytes()
121 num_bytes = block_rsv->reserved - block_rsv->size; 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()
145 bytes_to_add = min(num_bytes, bytes_to_add); in block_rsv_release_bytes()
149 num_bytes -= bytes_to_add; in block_rsv_release_bytes()
[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,
379 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes,
381 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int 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
396 return __btrfs_qgroup_reserve_meta(root, num_bytes, in btrfs_qgroup_reserve_meta_prealloc()
[all …]
H A Ddelayed-ref.c68 const u64 num_bytes = btrfs_calc_delayed_ref_bytes(fs_info, nr); in btrfs_delayed_refs_rsv_release() local
71 released = btrfs_block_rsv_release(fs_info, block_rsv, num_bytes, NULL); in btrfs_delayed_refs_rsv_release()
87 u64 num_bytes; in btrfs_update_delayed_refs_rsv() local
92 num_bytes = btrfs_calc_delayed_ref_bytes(fs_info, in btrfs_update_delayed_refs_rsv()
96 delayed_rsv->size += num_bytes; in btrfs_update_delayed_refs_rsv()
112 u64 num_bytes) in btrfs_migrate_to_delayed_refs_rsv() argument
121 if (num_bytes > delta) { in btrfs_migrate_to_delayed_refs_rsv()
122 to_free = num_bytes - delta; in btrfs_migrate_to_delayed_refs_rsv()
123 num_bytes = delta; in btrfs_migrate_to_delayed_refs_rsv()
126 to_free = num_bytes; in btrfs_migrate_to_delayed_refs_rsv()
[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 Dqgroup.c64 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_add() argument
67 trace_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); in qgroup_rsv_add()
68 qgroup->rsv.values[type] += num_bytes; in qgroup_rsv_add()
72 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_release() argument
75 trace_qgroup_update_reserve(fs_info, qgroup, -(s64)num_bytes, type); in qgroup_rsv_release()
76 if (qgroup->rsv.values[type] >= num_bytes) { in qgroup_rsv_release()
77 qgroup->rsv.values[type] -= num_bytes; in qgroup_rsv_release()
84 qgroup->rsv.values[type], num_bytes); in qgroup_rsv_release()
1388 u64 num_bytes = src->excl; in __qgroup_excl_accounting() local
1395 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting()
[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 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 range_overlaps()
138 if (in_range(file_offset, entry->file_offset, entry->num_bytes)) in tree_search()
150 struct btrfs_inode *inode, u64 file_offset, u64 num_bytes, in alloc_ordered_extent() argument
161 ret = btrfs_qgroup_free_data(inode, NULL, file_offset, num_bytes, &qgroup_rsv); in alloc_ordered_extent()
169 ret = btrfs_qgroup_release_data(inode, file_offset, num_bytes, &qgroup_rsv); in alloc_ordered_extent()
178 entry->num_bytes = num_bytes; in alloc_ordered_extent()
183 entry->bytes_left = num_bytes; in alloc_ordered_extent()
219 percpu_counter_add_batch(&fs_info->ordered_bytes, entry->num_bytes, in insert_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 Dextent-tree.c774 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument
798 key.offset = num_bytes; in lookup_inline_extent_backref()
836 key.offset == num_bytes) in lookup_inline_extent_backref()
842 key.offset = num_bytes; in lookup_inline_extent_backref()
855 bytenr, num_bytes, parent, root_objectid, owner, in lookup_inline_extent_backref()
1042 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument
1048 num_bytes, parent, root_objectid, in lookup_extent_backref()
1188 u64 bytenr, u64 num_bytes, u64 parent, in insert_inline_extent_backref() argument
1197 num_bytes, parent, root_objectid, in insert_inline_extent_backref()
1208 bytenr, num_bytes, root_objectid, path->slots[0]); in insert_inline_extent_backref()
[all …]
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);
/openbmc/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 …]
/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,
211 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7d,
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()
[all …]
/openbmc/qemu/hw/i3c/
H A Dremote-i3c.c38 uint32_t num_bytes; member
95 uint32_t num_bytes = fifo8_num_used(&i3c->tx_fifo); in remote_i3c_chr_send_bytes() local
96 g_autofree uint8_t *buf = g_new0(uint8_t, num_bytes); in remote_i3c_chr_send_bytes()
102 for (i = 0; i < num_bytes; i++) { in remote_i3c_chr_send_bytes()
106 uint32_t num_bytes_le = cpu_to_le32(num_bytes); in remote_i3c_chr_send_bytes()
108 qemu_chr_fe_write_all(&i3c->chr, buf, num_bytes); in remote_i3c_chr_send_bytes()
109 trace_remote_i3c_send(i3c->cfg.name, num_bytes, i3c->current_cmd == in remote_i3c_chr_send_bytes()
260 i3c->ibi_data.num_bytes |= ((uint32_t)buf[p_buf] << in remote_i3c_rx_ibi()
268 if (i3c->ibi_bytes_rxed == sizeof(i3c->ibi_data.num_bytes)) { in remote_i3c_rx_ibi()
269 i3c->ibi_data.num_bytes = le32_to_cpu(i3c->ibi_data.num_bytes); in remote_i3c_rx_ibi()
[all …]
/openbmc/google-ipmi-sys/test/
H A Dhandler_unittest.cpp368 uint8_t num_bytes, uint64_t data, int sd_bus_call_return_value, in ExpectRead() argument
396 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
447 ExpectRead(mock, address, num_bytes, data, sd_bus_call_return_value); in TEST()
448 EXPECT_EQ(data, h.accelOobRead("test/path", address, num_bytes)); in TEST()
457 constexpr uint8_t num_bytes = sizeof(uint64_t); in TEST() local
461 ExpectRead(mock, address, num_bytes, data, sd_bus_call_return_value); in TEST()
462 EXPECT_THROW(h.accelOobRead("test/path", address, num_bytes), in TEST()
472 constexpr uint8_t num_bytes = sizeof(uint64_t); 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
467 num_bytes = async->munge_count - async->buf_read_count; in comedi_buf_read_n_available()
475 return num_bytes; in comedi_buf_read_n_available()
558 const void *data, unsigned int num_bytes) in comedi_buf_memcpy_to() argument
[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()
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 …]
/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/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/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/linux/include/trace/events/
H A Dbtrfs.h383 __field( u64, num_bytes )
399 __entry->num_bytes = btrfs_file_extent_num_bytes(l, fi);
407 __entry->extent_end = (start + __entry->num_bytes);
419 __entry->extent_end, __entry->num_bytes, __entry->ram_bytes,
540 __entry->len = ordered->num_bytes;
883 __field( u64, num_bytes )
894 __entry->num_bytes = ref->num_bytes;
907 __entry->num_bytes,
946 __field( u64, num_bytes )
958 __entry->num_bytes = ref->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()

12345678