/Linux-v5.4/fs/btrfs/ |
D | block-rsv.c | 11 struct btrfs_block_rsv *dest, u64 num_bytes, in block_rsv_release_bytes() argument 19 if (num_bytes == (u64)-1) { in block_rsv_release_bytes() 20 num_bytes = block_rsv->size; in block_rsv_release_bytes() 23 block_rsv->size -= num_bytes; in block_rsv_release_bytes() 25 num_bytes = block_rsv->reserved - block_rsv->size; in block_rsv_release_bytes() 29 num_bytes = 0; in block_rsv_release_bytes() 40 ret = num_bytes; in block_rsv_release_bytes() 41 if (num_bytes > 0) { in block_rsv_release_bytes() 48 bytes_to_add = min(num_bytes, bytes_to_add); in block_rsv_release_bytes() 52 num_bytes -= bytes_to_add; in block_rsv_release_bytes() [all …]
|
D | qgroup.h | 109 u64 num_bytes; member 307 u64 num_bytes, gfp_t gfp_flag); 331 u64 num_bytes, struct ulist *old_roots, 338 u64 ref_root, u64 num_bytes, 353 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 357 int num_bytes, bool enforce) in btrfs_qgroup_reserve_meta_pertrans() argument 359 return __btrfs_qgroup_reserve_meta(root, num_bytes, in btrfs_qgroup_reserve_meta_pertrans() 363 int num_bytes, bool enforce) in btrfs_qgroup_reserve_meta_prealloc() argument 365 return __btrfs_qgroup_reserve_meta(root, num_bytes, in btrfs_qgroup_reserve_meta_prealloc() 369 void __btrfs_qgroup_free_meta(struct btrfs_root *root, int num_bytes, [all …]
|
D | delayed-ref.c | 82 u64 num_bytes = btrfs_calc_insert_metadata_size(fs_info, nr); in btrfs_delayed_refs_rsv_release() local 85 released = __btrfs_block_rsv_release(fs_info, block_rsv, num_bytes, in btrfs_delayed_refs_rsv_release() 103 u64 num_bytes; in btrfs_update_delayed_refs_rsv() local 108 num_bytes = btrfs_calc_insert_metadata_size(fs_info, in btrfs_update_delayed_refs_rsv() 111 delayed_rsv->size += num_bytes; in btrfs_update_delayed_refs_rsv() 128 u64 num_bytes) in btrfs_migrate_to_delayed_refs_rsv() argument 134 src->reserved -= num_bytes; in btrfs_migrate_to_delayed_refs_rsv() 135 src->size -= num_bytes; in btrfs_migrate_to_delayed_refs_rsv() 142 if (num_bytes > delta) { in btrfs_migrate_to_delayed_refs_rsv() 143 to_free = num_bytes - delta; in btrfs_migrate_to_delayed_refs_rsv() [all …]
|
D | block-rsv.h | 61 struct btrfs_block_rsv *block_rsv, u64 num_bytes, 68 struct btrfs_block_rsv *dst_rsv, u64 num_bytes, 70 int btrfs_block_rsv_use_bytes(struct btrfs_block_rsv *block_rsv, u64 num_bytes); 72 struct btrfs_block_rsv *dest, u64 num_bytes, 75 u64 num_bytes, bool update_size); 78 u64 num_bytes, u64 *qgroup_to_release); 88 u64 num_bytes) in btrfs_block_rsv_release() argument 90 __btrfs_block_rsv_release(fs_info, block_rsv, num_bytes, NULL); in btrfs_block_rsv_release()
|
D | delalloc-space.c | 283 u64 num_bytes, u64 *meta_reserve, in calc_inode_reservations() argument 286 u64 nr_extents = count_max_extents(num_bytes); in calc_inode_reservations() 287 u64 csum_leaves = btrfs_csum_bytes_to_leaves(fs_info, num_bytes); in calc_inode_reservations() 301 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_reserve_metadata() argument 335 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_reserve_metadata() 347 calc_inode_reservations(fs_info, num_bytes, &meta_reserve, in btrfs_delalloc_reserve_metadata() 363 nr_extents = count_max_extents(num_bytes); in btrfs_delalloc_reserve_metadata() 365 inode->csum_bytes += num_bytes; in btrfs_delalloc_reserve_metadata() 399 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata() argument 404 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_release_metadata() [all …]
|
D | qgroup.c | 69 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_add() argument 72 trace_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); in qgroup_rsv_add() 73 qgroup->rsv.values[type] += num_bytes; in qgroup_rsv_add() 77 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_release() argument 80 trace_qgroup_update_reserve(fs_info, qgroup, -(s64)num_bytes, type); in qgroup_rsv_release() 81 if (qgroup->rsv.values[type] >= num_bytes) { in qgroup_rsv_release() 82 qgroup->rsv.values[type] -= num_bytes; in qgroup_rsv_release() 89 qgroup->rsv.values[type], num_bytes); in qgroup_rsv_release() 1147 u64 num_bytes = src->excl; in __qgroup_excl_accounting() local 1154 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting() [all …]
|
D | extent-tree.c | 63 u64 start, u64 num_bytes) in btrfs_add_excluded_extent() argument 65 u64 end = start + num_bytes - 1; in btrfs_add_excluded_extent() 821 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument 845 key.offset = num_bytes; in lookup_inline_extent_backref() 882 key.offset == num_bytes) in lookup_inline_extent_backref() 888 key.offset = num_bytes; in lookup_inline_extent_backref() 1074 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument 1080 num_bytes, parent, root_objectid, in lookup_extent_backref() 1171 u64 bytenr, u64 num_bytes, u64 parent, in insert_inline_extent_backref() argument 1180 num_bytes, parent, root_objectid, in insert_inline_extent_backref() [all …]
|
D | block-group.c | 396 u64 num_bytes) in btrfs_wait_block_group_cache_progress() argument 405 (cache->free_space_ctl->free_space >= num_bytes)); in btrfs_wait_block_group_cache_progress() 1186 u64 num_bytes; in inc_block_group_ro() local 1212 num_bytes = cache->key.offset - cache->reserved - cache->pinned - in inc_block_group_ro() 1222 if (sinfo_used + num_bytes + min_allocable_bytes <= in inc_block_group_ro() 1224 sinfo->bytes_readonly += num_bytes; in inc_block_group_ro() 1238 sinfo_used, num_bytes, min_allocable_bytes); in inc_block_group_ro() 2098 u64 num_bytes; in btrfs_dec_block_group_ro() local 2105 num_bytes = cache->key.offset - cache->reserved - in btrfs_dec_block_group_ro() 2108 sinfo->bytes_readonly -= num_bytes; in btrfs_dec_block_group_ro() [all …]
|
D | ref-verify.c | 354 u64 num_bytes) in add_shared_data_ref() argument 362 be = add_block_entry(fs_info, bytenr, num_bytes, 0); in add_shared_data_ref() 384 u64 bytenr, u64 num_bytes) in add_extent_data_ref() argument 397 be = add_block_entry(fs_info, bytenr, num_bytes, ref_root); in add_extent_data_ref() 496 struct btrfs_path *path, u64 *bytenr, u64 *num_bytes) in process_leaf() argument 511 *num_bytes = key.offset; in process_leaf() 530 *num_bytes); in process_leaf() 537 *bytenr, *num_bytes); in process_leaf() 550 int level, u64 *bytenr, u64 *num_bytes) in walk_down_tree() argument 581 ret = process_leaf(root, path, bytenr, num_bytes); in walk_down_tree() [all …]
|
/Linux-v5.4/arch/sparc/mm/ |
D | init_32.c | 65 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in calc_highpages() 67 unsigned long end_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_highpages() 87 last_pfn = (sp_banks[0].base_addr + sp_banks[0].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn() 88 for (i = 1; sp_banks[i].num_bytes != 0; i++) { in calc_max_low_pfn() 97 last_pfn = (sp_banks[i].base_addr + sp_banks[i].num_bytes) >> PAGE_SHIFT; in calc_max_low_pfn() 144 for (i = 0; sp_banks[i].num_bytes != 0; i++) { in bootmem_init() 146 sp_banks[i].num_bytes; in bootmem_init() 147 bytes_avail += sp_banks[i].num_bytes; in bootmem_init() 155 sp_banks[i].num_bytes -= slack; in bootmem_init() 156 if (sp_banks[i].num_bytes == 0) { in bootmem_init() [all …]
|
/Linux-v5.4/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-v5.4/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-v5.4/drivers/staging/comedi/ |
D | comedi_buf.c | 366 unsigned int num_bytes) in comedi_buf_munge() argument 373 async->munge_count += num_bytes; in comedi_buf_munge() 374 count = 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() 463 unsigned int num_bytes; in comedi_buf_read_n_available() local 468 num_bytes = async->munge_count - async->buf_read_count; in comedi_buf_read_n_available() 476 return num_bytes; in comedi_buf_read_n_available() 559 const void *data, unsigned int num_bytes) in comedi_buf_memcpy_to() argument [all …]
|
/Linux-v5.4/include/drm/ |
D | drm_displayid.h | 65 u8 num_bytes; member 98 (idx) + sizeof(struct displayid_block) + (block)->num_bytes <= (length) && \ 99 (block)->num_bytes > 0; \ 100 (idx) += (block)->num_bytes + sizeof(struct displayid_block), \
|
/Linux-v5.4/sound/soc/codecs/ |
D | sigmadsp.c | 31 unsigned int num_bytes; member 62 __le16 num_bytes; member 110 info->count = ctrl->num_bytes; in sigmadsp_ctrl_info() 119 if (ctrl->num_bytes <= 20 && sigmadsp->ops && sigmadsp->ops->safeload) in sigmadsp_ctrl_write() 121 ctrl->num_bytes); in sigmadsp_ctrl_write() 124 ctrl->num_bytes); in sigmadsp_ctrl_write() 143 memcpy(ctrl->cache, data, ctrl->num_bytes); in sigmadsp_ctrl_put() 163 ctrl->num_bytes); in sigmadsp_ctrl_get() 169 ctrl->num_bytes); in sigmadsp_ctrl_get() 202 unsigned int num_bytes; in sigma_fw_load_control() local [all …]
|
/Linux-v5.4/arch/x86/crypto/ |
D | aes_ctrby8_avx-x86_64.S | 91 #define num_bytes %r8 macro 437 cmp $16, num_bytes 444 mov num_bytes, tmp 461 and $(~7*16), num_bytes 468 and $(~7*16), num_bytes 476 and $(~7*16), num_bytes 483 and $(~7*16), num_bytes 495 and $(~7*16), num_bytes 502 and $(~7*16), num_bytes 509 and $(~7*16), num_bytes [all …]
|
/Linux-v5.4/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-v5.4/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-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tx.c | 239 u8 opcode, u16 ds_cnt, u8 num_wqebbs, u32 num_bytes, u8 num_dma, in mlx5e_txwqe_complete() argument 246 wi->num_bytes = num_bytes; in mlx5e_txwqe_complete() 263 send_doorbell = __netdev_tx_sent_queue(sq->txq, num_bytes, in mlx5e_txwqe_complete() 282 u32 num_bytes; in mlx5e_sq_xmit() local 292 num_bytes = skb->len + (skb_shinfo(skb)->gso_segs - 1) * ihs; in mlx5e_sq_xmit() 300 num_bytes = max_t(unsigned int, skb->len, ETH_ZLEN); in mlx5e_sq_xmit() 304 stats->bytes += num_bytes; in mlx5e_sq_xmit() 373 mlx5e_txwqe_complete(sq, skb, opcode, ds_cnt, num_wqebbs, num_bytes, in mlx5e_sq_xmit() 508 nbytes += wi->num_bytes; in mlx5e_poll_tx_cq() 602 u32 num_bytes; in mlx5i_sq_xmit() local [all …]
|
/Linux-v5.4/drivers/nvmem/ |
D | imx-ocotp-scu.c | 75 u32 count, index, num_bytes; in imx_scu_ocotp_read() local 81 num_bytes = round_up((offset % 4) + bytes, 4); in imx_scu_ocotp_read() 82 count = num_bytes >> 2; in imx_scu_ocotp_read() 87 p = kzalloc(num_bytes, GFP_KERNEL); in imx_scu_ocotp_read()
|
/Linux-v5.4/include/trace/events/ |
D | btrfs.h | 343 __field( u64, num_bytes ) 359 __entry->num_bytes = btrfs_file_extent_num_bytes(l, fi); 367 __entry->extent_end = (start + __entry->num_bytes); 379 __entry->extent_end, __entry->num_bytes, __entry->ram_bytes, 756 __field( u64, num_bytes ) 767 __entry->num_bytes = ref->num_bytes; 780 __entry->num_bytes, 819 __field( u64, num_bytes ) 831 __entry->num_bytes = ref->num_bytes; 845 __entry->num_bytes, [all …]
|
/Linux-v5.4/drivers/slimbus/ |
D | messaging.c | 181 if (!msg || msg->num_bytes > 16 || in slim_val_inf_sanity() 182 (msg->start_offset + msg->num_bytes) > 0xC00) in slim_val_inf_sanity() 248 sl = slim_slicesize(msg->num_bytes); in slim_xfer_msg() 251 msg->start_offset, msg->num_bytes, mc, sl); in slim_xfer_msg() 260 txn->rl += msg->num_bytes; in slim_xfer_msg() 276 msg->num_bytes = count; in slim_fill_msg()
|
/Linux-v5.4/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() 67 static int add_tree_ref(struct btrfs_root *root, u64 bytenr, u64 num_bytes, in add_tree_ref() argument 81 key.offset = num_bytes; in add_tree_ref() 120 u64 num_bytes) in remove_extent_item() argument 131 key.offset = num_bytes; in remove_extent_item() 152 u64 num_bytes, u64 parent, u64 root_objectid) in remove_extent_ref() argument 165 key.offset = num_bytes; in remove_extent_ref()
|
/Linux-v5.4/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 …]
|