/Linux-v6.1/fs/btrfs/ |
D | block-rsv.c | 105 struct btrfs_block_rsv *dest, u64 num_bytes, in block_rsv_release_bytes() argument 113 if (num_bytes == (u64)-1) { in block_rsv_release_bytes() 114 num_bytes = block_rsv->size; in block_rsv_release_bytes() 117 block_rsv->size -= num_bytes; in block_rsv_release_bytes() 119 num_bytes = block_rsv->reserved - block_rsv->size; in block_rsv_release_bytes() 123 num_bytes = 0; in block_rsv_release_bytes() 134 ret = num_bytes; in block_rsv_release_bytes() 135 if (num_bytes > 0) { in block_rsv_release_bytes() 142 bytes_to_add = min(num_bytes, bytes_to_add); in block_rsv_release_bytes() 146 num_bytes -= bytes_to_add; in block_rsv_release_bytes() [all …]
|
D | qgroup.h | 113 u64 num_bytes; member 321 u64 num_bytes, gfp_t gfp_flag); 345 u64 num_bytes, struct ulist *old_roots, 352 u64 ref_root, u64 num_bytes, 367 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 369 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 374 int num_bytes, bool enforce) in btrfs_qgroup_reserve_meta_pertrans() argument 376 return __btrfs_qgroup_reserve_meta(root, num_bytes, in btrfs_qgroup_reserve_meta_pertrans() 381 int num_bytes, bool enforce, in btrfs_qgroup_reserve_meta_prealloc() argument 384 return __btrfs_qgroup_reserve_meta(root, num_bytes, in btrfs_qgroup_reserve_meta_prealloc() [all …]
|
D | delayed-ref.c | 84 u64 num_bytes = btrfs_calc_insert_metadata_size(fs_info, nr); in btrfs_delayed_refs_rsv_release() local 96 num_bytes *= 2; in btrfs_delayed_refs_rsv_release() 98 released = btrfs_block_rsv_release(fs_info, block_rsv, num_bytes, NULL); in btrfs_delayed_refs_rsv_release() 115 u64 num_bytes; in btrfs_update_delayed_refs_rsv() local 120 num_bytes = btrfs_calc_insert_metadata_size(fs_info, in btrfs_update_delayed_refs_rsv() 131 num_bytes *= 2; in btrfs_update_delayed_refs_rsv() 134 delayed_rsv->size += num_bytes; in btrfs_update_delayed_refs_rsv() 152 u64 num_bytes) in btrfs_migrate_to_delayed_refs_rsv() argument 158 src->reserved -= num_bytes; in btrfs_migrate_to_delayed_refs_rsv() 159 src->size -= num_bytes; in btrfs_migrate_to_delayed_refs_rsv() [all …]
|
D | delalloc-space.c | 280 u64 num_bytes, u64 disk_num_bytes, in calc_inode_reservations() argument 283 u64 nr_extents = count_max_extents(fs_info, num_bytes); in calc_inode_reservations() 298 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_reserve_metadata() argument 328 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_reserve_metadata() 341 calc_inode_reservations(fs_info, num_bytes, disk_num_bytes, in btrfs_delalloc_reserve_metadata() 360 nr_extents = count_max_extents(fs_info, num_bytes); in btrfs_delalloc_reserve_metadata() 389 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata() argument 394 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_release_metadata() 396 inode->csum_bytes -= num_bytes; in btrfs_delalloc_release_metadata() 417 void btrfs_delalloc_release_extents(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_release_extents() argument [all …]
|
D | block-rsv.h | 63 struct btrfs_block_rsv *block_rsv, u64 num_bytes, 70 struct btrfs_block_rsv *dst_rsv, u64 num_bytes, 72 int btrfs_block_rsv_use_bytes(struct btrfs_block_rsv *block_rsv, u64 num_bytes); 74 struct btrfs_block_rsv *dest, u64 num_bytes, 77 u64 num_bytes, bool update_size); 80 u64 num_bytes, u64 *qgroup_to_release);
|
D | qgroup.c | 59 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_add() argument 62 trace_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); in qgroup_rsv_add() 63 qgroup->rsv.values[type] += num_bytes; in qgroup_rsv_add() 67 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_release() argument 70 trace_qgroup_update_reserve(fs_info, qgroup, -(s64)num_bytes, type); in qgroup_rsv_release() 71 if (qgroup->rsv.values[type] >= num_bytes) { in qgroup_rsv_release() 72 qgroup->rsv.values[type] -= num_bytes; in qgroup_rsv_release() 79 qgroup->rsv.values[type], num_bytes); in qgroup_rsv_release() 1348 u64 num_bytes = src->excl; in __qgroup_excl_accounting() local 1355 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting() [all …]
|
D | ordered-data.c | 25 if (entry->file_offset + entry->num_bytes < entry->file_offset) in entry_end() 27 return entry->file_offset + entry->num_bytes; in entry_end() 115 entry->file_offset + entry->num_bytes <= file_offset) in range_overlaps() 135 if (in_range(file_offset, entry->file_offset, entry->num_bytes)) in tree_search() 165 u64 num_bytes, u64 ram_bytes, u64 disk_bytenr, in btrfs_add_ordered_extent() argument 179 ret = btrfs_qgroup_free_data(inode, NULL, file_offset, num_bytes); in btrfs_add_ordered_extent() 188 ret = btrfs_qgroup_release_data(inode, file_offset, num_bytes); in btrfs_add_ordered_extent() 197 entry->num_bytes = num_bytes; in btrfs_add_ordered_extent() 202 entry->bytes_left = num_bytes; in btrfs_add_ordered_extent() 212 percpu_counter_add_batch(&fs_info->ordered_bytes, num_bytes, in btrfs_add_ordered_extent() [all …]
|
D | extent-tree.c | 67 u64 start, u64 num_bytes) in btrfs_add_excluded_extent() argument 69 u64 end = start + num_bytes - 1; in btrfs_add_excluded_extent() 788 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument 812 key.offset = num_bytes; in lookup_inline_extent_backref() 850 key.offset == num_bytes) in lookup_inline_extent_backref() 856 key.offset = num_bytes; in lookup_inline_extent_backref() 1049 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument 1055 num_bytes, parent, root_objectid, in lookup_extent_backref() 1144 u64 bytenr, u64 num_bytes, u64 parent, in insert_inline_extent_backref() argument 1153 num_bytes, parent, root_objectid, in insert_inline_extent_backref() [all …]
|
D | ref-verify.c | 356 u64 num_bytes) in add_shared_data_ref() argument 364 be = add_block_entry(fs_info, bytenr, num_bytes, 0); in add_shared_data_ref() 386 u64 bytenr, u64 num_bytes) in add_extent_data_ref() argument 399 be = add_block_entry(fs_info, bytenr, num_bytes, ref_root); in add_extent_data_ref() 498 struct btrfs_path *path, u64 *bytenr, u64 *num_bytes, in process_leaf() argument 514 *num_bytes = key.offset; in process_leaf() 533 *num_bytes); in process_leaf() 540 *bytenr, *num_bytes); in process_leaf() 553 int level, u64 *bytenr, u64 *num_bytes, in walk_down_tree() argument 570 ret = process_leaf(root, path, bytenr, num_bytes, in walk_down_tree() [all …]
|
/Linux-v6.1/arch/sparc/mm/ |
D | init_32.c | 64 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in calc_highpages() 66 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages() 86 last_pfn = (sp_banks[0].base_addr + sp_banks[0].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn() 87 for (i = 1; sp_banks[i].num_bytes != 0; i++) { in calc_max_low_pfn() 96 last_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn() 143 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in bootmem_init() 145 sp_banks[i].num_bytes; in bootmem_init() 146 bytes_avail += sp_banks[i].num_bytes; in bootmem_init() 154 sp_banks[i].num_bytes -= slack; in bootmem_init() 155 if (sp_banks[i].num_bytes == 0) { in bootmem_init() [all …]
|
/Linux-v6.1/fs/ecryptfs/ |
D | read_write.c | 116 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()
|
/Linux-v6.1/drivers/gpu/drm/tests/ |
D | drm_dp_mst_helper_test.c | 77 txin->num_bytes != txout->num_bytes || in sideband_msg_req_equal() 83 txin->num_bytes) != 0) in sideband_msg_req_equal() 94 IN.num_bytes != OUT.num_bytes || in sideband_msg_req_equal() 98 return memcmp(IN.bytes, OUT.bytes, IN.num_bytes) == 0; in sideband_msg_req_equal() 107 IN.num_bytes != OUT.num_bytes) in sideband_msg_req_equal() 110 return memcmp(IN.bytes, OUT.bytes, IN.num_bytes) == 0; in sideband_msg_req_equal() 221 in.u.dpcd_read.num_bytes = U8_MAX; in drm_test_dp_mst_sideband_msg_req_decode() 229 in.u.dpcd_write.num_bytes = ARRAY_SIZE(data); in drm_test_dp_mst_sideband_msg_req_decode() 242 in.u.i2c_read.transactions[i].num_bytes = ARRAY_SIZE(data); in drm_test_dp_mst_sideband_msg_req_decode() 253 in.u.i2c_write.num_bytes = ARRAY_SIZE(data); in drm_test_dp_mst_sideband_msg_req_decode()
|
/Linux-v6.1/arch/sparc/prom/ |
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()
|
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-v6.1/drivers/comedi/ |
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 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 …]
|
/Linux-v6.1/sound/soc/codecs/ |
D | sigmadsp.c | 33 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-v6.1/arch/sparc/include/asm/ |
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-v6.1/arch/m68k/include/asm/ |
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-v6.1/arch/x86/crypto/ |
D | aes_ctrby8_avx-x86_64.S | 54 #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 …]
|
/Linux-v6.1/drivers/slimbus/ |
D | messaging.c | 182 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-v6.1/tools/testing/selftests/powerpc/nx-gzip/ |
D | gzfht_test.c | 152 size_t num_bytes; in read_alloc_input_file() local 164 num_bytes = fread(p, 1, statbuf.st_size, fp); in read_alloc_input_file() 165 if (ferror(fp) || (num_bytes != statbuf.st_size)) { in read_alloc_input_file() 170 *bufsize = num_bytes; in read_alloc_input_file() 178 size_t num_bytes; in write_output_file() local 185 num_bytes = fwrite(buf, 1, bufsize, fp); in write_output_file() 186 if (ferror(fp) || (num_bytes != bufsize)) { in write_output_file()
|
/Linux-v6.1/include/trace/events/ |
D | btrfs.h | 383 __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; 854 __field( u64, num_bytes ) 865 __entry->num_bytes = ref->num_bytes; 878 __entry->num_bytes, 917 __field( u64, num_bytes ) 929 __entry->num_bytes = ref->num_bytes; [all …]
|
/Linux-v6.1/sound/drivers/ |
D | serial-generic.c | 69 int num_bytes; in snd_serial_generic_tx_work() local 81 num_bytes = snd_rawmidi_transmit_peek(substream, buf, INTERNAL_BUF_SIZE); in snd_serial_generic_tx_work() 82 num_bytes = serdev_device_write_buf(drvdata->serdev, buf, num_bytes); in snd_serial_generic_tx_work() 84 if (!num_bytes) in snd_serial_generic_tx_work() 87 snd_rawmidi_transmit_ack(substream, num_bytes); in snd_serial_generic_tx_work()
|
/Linux-v6.1/fs/btrfs/tests/ |
D | qgroup-tests.c | 15 u64 num_bytes, u64 parent, u64 root_objectid) in insert_normal_tree_ref() argument 31 ins.offset = num_bytes; in insert_normal_tree_ref() 66 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument 80 key.offset = num_bytes; in add_tree_ref() 118 u64 num_bytes) in remove_extent_item() argument 129 key.offset = num_bytes; in remove_extent_item() 149 u64 num_bytes, u64 parent, u64 root_objectid) in remove_extent_ref() argument 162 key.offset = num_bytes; in remove_extent_ref()
|
/Linux-v6.1/drivers/i2c/busses/ |
D | i2c-omap.c | 999 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() 1126 u8 num_bytes = 1; in omap_i2c_xfer_data() local 1129 num_bytes = omap->buf_len; in omap_i2c_xfer_data() 1133 num_bytes = (omap_i2c_read_reg(omap, in omap_i2c_xfer_data() 1137 omap_i2c_receive_data(omap, num_bytes, true); in omap_i2c_xfer_data() 1143 u8 num_bytes = 1; in omap_i2c_xfer_data() local 1146 num_bytes = omap->threshold; in omap_i2c_xfer_data() [all …]
|