| /OK3568_Linux_fs/kernel/fs/btrfs/ |
| H A D | block-rsv.c | 104 struct btrfs_block_rsv *dest, u64 num_bytes, in block_rsv_release_bytes() argument 112 if (num_bytes == (u64)-1) { in block_rsv_release_bytes() 113 num_bytes = block_rsv->size; in block_rsv_release_bytes() 116 block_rsv->size -= num_bytes; in block_rsv_release_bytes() 118 num_bytes = block_rsv->reserved - block_rsv->size; in block_rsv_release_bytes() 122 num_bytes = 0; in block_rsv_release_bytes() 133 ret = num_bytes; in block_rsv_release_bytes() 134 if (num_bytes > 0) { in block_rsv_release_bytes() 141 bytes_to_add = min(num_bytes, bytes_to_add); in block_rsv_release_bytes() 145 num_bytes -= bytes_to_add; in block_rsv_release_bytes() [all …]
|
| H A 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, NULL); in btrfs_delayed_refs_rsv_release() 102 u64 num_bytes; in btrfs_update_delayed_refs_rsv() local 107 num_bytes = btrfs_calc_insert_metadata_size(fs_info, in btrfs_update_delayed_refs_rsv() 110 delayed_rsv->size += num_bytes; in btrfs_update_delayed_refs_rsv() 127 u64 num_bytes) in btrfs_migrate_to_delayed_refs_rsv() argument 133 src->reserved -= num_bytes; in btrfs_migrate_to_delayed_refs_rsv() 134 src->size -= num_bytes; in btrfs_migrate_to_delayed_refs_rsv() 141 if (num_bytes > delta) { in btrfs_migrate_to_delayed_refs_rsv() 142 to_free = num_bytes - delta; in btrfs_migrate_to_delayed_refs_rsv() [all …]
|
| H A D | qgroup.h | 110 u64 num_bytes; member 318 u64 num_bytes, gfp_t gfp_flag); 342 u64 num_bytes, struct ulist *old_roots, 349 u64 ref_root, u64 num_bytes, 364 int btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 366 int __btrfs_qgroup_reserve_meta(struct btrfs_root *root, int num_bytes, 370 int num_bytes, bool enforce) in btrfs_qgroup_reserve_meta_pertrans() argument 372 return __btrfs_qgroup_reserve_meta(root, num_bytes, in btrfs_qgroup_reserve_meta_pertrans() 376 int num_bytes, bool enforce) in btrfs_qgroup_reserve_meta_prealloc() argument 378 return __btrfs_qgroup_reserve_meta(root, num_bytes, in btrfs_qgroup_reserve_meta_prealloc() [all …]
|
| H A D | delalloc-space.c | 268 u64 num_bytes, u64 *meta_reserve, in calc_inode_reservations() argument 271 u64 nr_extents = count_max_extents(num_bytes); in calc_inode_reservations() 272 u64 csum_leaves = btrfs_csum_bytes_to_leaves(fs_info, num_bytes); in calc_inode_reservations() 286 int btrfs_delalloc_reserve_metadata(struct btrfs_inode *inode, u64 num_bytes) in btrfs_delalloc_reserve_metadata() argument 315 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_reserve_metadata() 327 calc_inode_reservations(fs_info, num_bytes, &meta_reserve, in btrfs_delalloc_reserve_metadata() 345 nr_extents = count_max_extents(num_bytes); in btrfs_delalloc_reserve_metadata() 347 inode->csum_bytes += num_bytes; in btrfs_delalloc_reserve_metadata() 373 void btrfs_delalloc_release_metadata(struct btrfs_inode *inode, u64 num_bytes, in btrfs_delalloc_release_metadata() argument 378 num_bytes = ALIGN(num_bytes, fs_info->sectorsize); in btrfs_delalloc_release_metadata() [all …]
|
| H A D | qgroup.c | 70 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_add() argument 73 trace_qgroup_update_reserve(fs_info, qgroup, num_bytes, type); in qgroup_rsv_add() 74 qgroup->rsv.values[type] += num_bytes; in qgroup_rsv_add() 78 struct btrfs_qgroup *qgroup, u64 num_bytes, in qgroup_rsv_release() argument 81 trace_qgroup_update_reserve(fs_info, qgroup, -(s64)num_bytes, type); in qgroup_rsv_release() 82 if (qgroup->rsv.values[type] >= num_bytes) { in qgroup_rsv_release() 83 qgroup->rsv.values[type] -= num_bytes; in qgroup_rsv_release() 90 qgroup->rsv.values[type], num_bytes); in qgroup_rsv_release() 1321 u64 num_bytes = src->excl; in __qgroup_excl_accounting() local 1328 qgroup->rfer += sign * num_bytes; in __qgroup_excl_accounting() [all …]
|
| H A 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);
|
| H A D | extent-tree.c | 65 u64 start, u64 num_bytes) in btrfs_add_excluded_extent() argument 67 u64 end = start + num_bytes - 1; in btrfs_add_excluded_extent() 783 u64 bytenr, u64 num_bytes, in lookup_inline_extent_backref() argument 807 key.offset = num_bytes; in lookup_inline_extent_backref() 844 key.offset == num_bytes) in lookup_inline_extent_backref() 850 key.offset = num_bytes; in lookup_inline_extent_backref() 1036 u64 bytenr, u64 num_bytes, u64 parent, in lookup_extent_backref() argument 1042 num_bytes, parent, root_objectid, in lookup_extent_backref() 1133 u64 bytenr, u64 num_bytes, u64 parent, in insert_inline_extent_backref() argument 1142 num_bytes, parent, root_objectid, in insert_inline_extent_backref() [all …]
|
| H A D | ordered-data.c | 24 if (entry->file_offset + entry->num_bytes < entry->file_offset) in entry_end() 26 return entry->file_offset + entry->num_bytes; in entry_end() 116 entry->file_offset + entry->num_bytes <= file_offset) in offset_in_entry() 125 entry->file_offset + entry->num_bytes <= file_offset) in range_overlaps() 163 u64 disk_bytenr, u64 num_bytes, in __btrfs_add_ordered_extent() argument 176 ret = btrfs_qgroup_free_data(inode, NULL, file_offset, num_bytes); in __btrfs_add_ordered_extent() 185 ret = btrfs_qgroup_release_data(inode, file_offset, num_bytes); in __btrfs_add_ordered_extent() 195 entry->num_bytes = num_bytes; in __btrfs_add_ordered_extent() 197 entry->bytes_left = num_bytes; in __btrfs_add_ordered_extent() 206 percpu_counter_add_batch(&fs_info->dio_bytes, num_bytes, in __btrfs_add_ordered_extent() [all …]
|
| /OK3568_Linux_fs/kernel/arch/sparc/mm/ |
| H A 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 …]
|
| /OK3568_Linux_fs/u-boot/lib/avb/libavb_user/ |
| H A D | avb_ops_user.c | 47 size_t *num_bytes, in byte_to_block() argument 52 if (*num_bytes % 512 == 0) { in byte_to_block() 54 *blkcnt = (lbaint_t)(*num_bytes / 512); in byte_to_block() 56 *blkcnt = (lbaint_t)(*num_bytes / 512) + 1; in byte_to_block() 59 *blkcnt = (lbaint_t)(*num_bytes / 512) + 1; in byte_to_block() 61 if ((*offset % 512) + (*num_bytes % 512) < 512 || in byte_to_block() 62 (*offset % 512) + (*num_bytes % 512) == 512) { in byte_to_block() 63 *blkcnt = (lbaint_t)(*num_bytes / 512) + 1; in byte_to_block() 65 *blkcnt = (lbaint_t)(*num_bytes / 512) + 2; in byte_to_block() 94 size_t num_bytes, in read_from_partition() argument [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/host/xtest/ |
| H A D | rand_stream.c | 74 const void *rand_stream_peek(struct rand_stream *rs, size_t *num_bytes) in rand_stream_peek() argument 81 *num_bytes = MIN(*num_bytes, rs->sb_size - rs->sb_offs); in rand_stream_peek() 85 void rand_stream_read(struct rand_stream *rs, void *buf, size_t num_bytes) in rand_stream_read() argument 87 size_t peek_bytes = num_bytes; in rand_stream_read() 93 if (num_bytes - peek_bytes) in rand_stream_read() 95 num_bytes - peek_bytes); in rand_stream_read() 98 void rand_stream_advance(struct rand_stream *rs, size_t num_bytes) in rand_stream_advance() argument 100 size_t nb = num_bytes; in rand_stream_advance()
|
| H A D | rand_stream.h | 16 const void *rand_stream_peek(struct rand_stream *rs, size_t *num_bytes); 17 void rand_stream_advance(struct rand_stream *rs, size_t num_bytes); 18 void rand_stream_read(struct rand_stream *rs, void *buf, size_t num_bytes);
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/selftests/ |
| H A D | test-drm_dp_mst_helper.c | 76 txin->num_bytes != txout->num_bytes || in sideband_msg_req_equal() 82 txin->num_bytes) != 0) in sideband_msg_req_equal() 93 IN.num_bytes != OUT.num_bytes || in sideband_msg_req_equal() 97 return memcmp(IN.bytes, OUT.bytes, IN.num_bytes) == 0; in sideband_msg_req_equal() 106 IN.num_bytes != OUT.num_bytes) in sideband_msg_req_equal() 109 return memcmp(IN.bytes, OUT.bytes, IN.num_bytes) == 0; in sideband_msg_req_equal() 206 in.u.dpcd_read.num_bytes = U8_MAX; in igt_dp_mst_sideband_msg_req_decode() 214 in.u.dpcd_write.num_bytes = ARRAY_SIZE(data); in igt_dp_mst_sideband_msg_req_decode() 227 in.u.i2c_read.transactions[i].num_bytes = ARRAY_SIZE(data); in igt_dp_mst_sideband_msg_req_decode() 238 in.u.i2c_write.num_bytes = ARRAY_SIZE(data); in igt_dp_mst_sideband_msg_req_decode()
|
| /OK3568_Linux_fs/kernel/fs/ecryptfs/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/drivers/staging/comedi/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/sparc/prom/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/x86/crypto/ |
| H A D | aes_ctrby8_avx-x86_64.S | 90 #define num_bytes %r8 macro 428 cmp $16, num_bytes 435 mov num_bytes, tmp 452 and $(~7*16), num_bytes 459 and $(~7*16), num_bytes 467 and $(~7*16), num_bytes 474 and $(~7*16), num_bytes 486 and $(~7*16), num_bytes 493 and $(~7*16), num_bytes 500 and $(~7*16), num_bytes [all …]
|
| /OK3568_Linux_fs/kernel/include/drm/ |
| H A 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) += sizeof(struct displayid_block) + (block)->num_bytes, \
|
| /OK3568_Linux_fs/kernel/arch/sparc/include/asm/ |
| H A 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
|
| /OK3568_Linux_fs/kernel/include/trace/events/ |
| H A D | btrfs.h | 381 __field( u64, num_bytes ) 397 __entry->num_bytes = btrfs_file_extent_num_bytes(l, fi); 405 __entry->extent_end = (start + __entry->num_bytes); 417 __entry->extent_end, __entry->num_bytes, __entry->ram_bytes, 537 __entry->len = ordered->num_bytes; 791 __field( u64, num_bytes ) 802 __entry->num_bytes = ref->num_bytes; 815 __entry->num_bytes, 854 __field( u64, num_bytes ) 866 __entry->num_bytes = ref->num_bytes; [all …]
|
| /OK3568_Linux_fs/buildroot/dl/rtmpdump/git/librtmp/ |
| H A D | dh.h | 110 int num_bytes; in MDH_generate_key() local 114 num_bytes = (mpz_sizeinbase(dh->p, 2) + 7) / 8 - 1; in MDH_generate_key() 115 if (num_bytes <= 0 || num_bytes > 18000) in MDH_generate_key() 125 mpz_urandomb(dh->priv_key, rs, num_bytes); in MDH_generate_key() 146 int num_bytes; in MDH_compute_key() local 148 num_bytes = (mpz_sizeinbase(dh->p, 2) + 7) / 8; in MDH_compute_key() 149 if (num_bytes <= 0 || num_bytes > 18000) in MDH_compute_key()
|
| /OK3568_Linux_fs/kernel/arch/m68k/include/asm/ |
| H A 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
|
| /OK3568_Linux_fs/u-boot/drivers/spi/ |
| H A D | tegra210_qspi.c | 213 int num_bytes, tm, ret; in tegra210_qspi_xfer() local 219 num_bytes = bitlen / 8; in tegra210_qspi_xfer() 267 while (num_bytes > 0) { in tegra210_qspi_xfer() 271 bytes = (num_bytes > 4) ? 4 : num_bytes; in tegra210_qspi_xfer() 276 num_bytes -= bytes; in tegra210_qspi_xfer() 343 num_bytes -= bytes; in tegra210_qspi_xfer()
|
| /OK3568_Linux_fs/kernel/drivers/slimbus/ |
| H A 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() 277 msg->num_bytes = count; in slim_fill_msg()
|