| /OK3568_Linux_fs/kernel/mm/ |
| H A D | mremap.c | 540 unsigned long new_len, unsigned long new_addr, in move_vma() argument 575 new_vma = copy_vma(&vma, new_addr, new_len, new_pgoff, in move_vma() 607 old_len = new_len; in move_vma() 613 new_addr, new_addr + new_len); in move_vma() 638 vm_stat_account(mm, vma->vm_flags, new_len >> PAGE_SHIFT); in move_vma() 649 vm_acct_memory(new_len >> PAGE_SHIFT); in move_vma() 677 mm->locked_vm += new_len >> PAGE_SHIFT; in move_vma() 694 unsigned long old_len, unsigned long new_len, unsigned long flags, in vma_to_resize() argument 728 if (new_len == old_len) in vma_to_resize() 734 if (pgoff + (new_len >> PAGE_SHIFT) < pgoff) in vma_to_resize() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/arch/powerpc/util/ |
| H A D | perf_regs.c | 128 int ret, new_len; in arch_sdt_arg_parse_op() local 145 new_len = 5; /* % g p r NULL */ in arch_sdt_arg_parse_op() 146 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op() 148 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 152 scnprintf(*new_op, new_len, "%%gpr%.*s", in arch_sdt_arg_parse_op() 161 new_len = 8; /* +/- ( % g p r ) NULL */ in arch_sdt_arg_parse_op() 162 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op() 163 new_len += (int)(rm[4].rm_eo - rm[4].rm_so); in arch_sdt_arg_parse_op() 165 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 169 scnprintf(*new_op, new_len, "%c%.*s(%%gpr%.*s)", prefix, in arch_sdt_arg_parse_op()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/ |
| H A D | testing_helpers.c | 9 int i, set_len = 0, new_len, num, start = 0, end = -1; in parse_num_list() local 44 new_len = end + 1; in parse_num_list() 45 tmp = realloc(set, new_len); in parse_num_list() 53 set_len = new_len; in parse_num_list()
|
| /OK3568_Linux_fs/u-boot/post/drivers/ |
| H A D | flash.c | 35 static void *seed_src_data(void *ptr, ulong *old_len, ulong new_len) in seed_src_data() argument 40 p = ptr = realloc(ptr, new_len); in seed_src_data() 44 for (i = *old_len; i < new_len; ++i) in seed_src_data() 47 *old_len = new_len; in seed_src_data()
|
| /OK3568_Linux_fs/kernel/tools/objtool/ |
| H A D | special.c | 23 unsigned char orig_len, new_len; /* group only */ member 35 .new_len = ALT_NEW_LEN_OFFSET, 80 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry() 81 entry->new_len); in get_alt_entry() 100 if (!entry->group || alt->new_len) { in get_alt_entry()
|
| /OK3568_Linux_fs/external/mpp/mpp/hal/common/h264/ |
| H A D | hal_h264e_stream_amend.c | 276 RK_S32 new_len = (bit_len + diff_size * 8 + 7) / 8; in h264e_vepu_stream_amend_proc() local 281 hw_len_byte, sw_len_byte, diff_size, new_len); in h264e_vepu_stream_amend_proc() 286 dst_buf[new_len - 4], dst_buf[new_len - 3], in h264e_vepu_stream_amend_proc() 287 dst_buf[new_len - 2], dst_buf[new_len - 1]); in h264e_vepu_stream_amend_proc() 288 nal_len = new_len; in h264e_vepu_stream_amend_proc() 289 final_len += new_len; in h264e_vepu_stream_amend_proc()
|
| /OK3568_Linux_fs/kernel/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A D | omapdss-boot-init.c | 85 int new_len; in omapdss_omapify_node() local 101 new_len = prop->length + strlen(prefix) * num_strs; in omapdss_omapify_node() 102 new_compat = kmalloc(new_len, GFP_KERNEL); in omapdss_omapify_node() 106 omapdss_prefix_strcpy(new_compat, new_len, prop->value, prop->length); in omapdss_omapify_node() 108 omapdss_update_prop(node, new_compat, new_len); in omapdss_omapify_node()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/omapdrm/dss/ |
| H A D | omapdss-boot-init.c | 85 int new_len; in omapdss_omapify_node() local 101 new_len = prop->length + strlen(prefix) * num_strs; in omapdss_omapify_node() 102 new_compat = kmalloc(new_len, GFP_KERNEL); in omapdss_omapify_node() 104 omapdss_prefix_strcpy(new_compat, new_len, prop->value, prop->length); in omapdss_omapify_node() 106 omapdss_update_prop(node, new_compat, new_len); in omapdss_omapify_node()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/ |
| H A D | omap-crypto.c | 60 int new_len; in omap_crypto_copy_sgs() local 62 new_len = ALIGN(total, bs); in omap_crypto_copy_sgs() 63 pages = get_order(new_len); in omap_crypto_copy_sgs() 75 memset(buf + total, 0, new_len - total); in omap_crypto_copy_sgs() 81 sg_set_buf(new_sg, buf, new_len); in omap_crypto_copy_sgs()
|
| H A D | omap-sham.c | 649 struct scatterlist *sg, int bs, int new_len) in omap_sham_copy_sg_lists() argument 655 ctx->total = new_len; in omap_sham_copy_sg_lists() 674 new_len -= ctx->bufcnt; in omap_sham_copy_sg_lists() 677 while (sg && new_len) { in omap_sham_copy_sg_lists() 686 if (new_len < len) in omap_sham_copy_sg_lists() 687 len = new_len; in omap_sham_copy_sg_lists() 690 new_len -= len; in omap_sham_copy_sg_lists() 695 if (new_len <= 0) in omap_sham_copy_sg_lists() 708 ctx->offset += new_len - ctx->bufcnt; in omap_sham_copy_sg_lists() 716 unsigned int new_len) in omap_sham_copy_sgs() argument [all …]
|
| H A D | s5p-sss.c | 1026 struct scatterlist *sg, unsigned int new_len) in s5p_hash_copy_sgs() argument 1031 len = new_len + ctx->bufcnt; in s5p_hash_copy_sgs() 1045 new_len, 0); in s5p_hash_copy_sgs() 1072 struct scatterlist *sg, unsigned int new_len) in s5p_hash_copy_sg_lists() argument 1104 while (sg && new_len) { in s5p_hash_copy_sg_lists() 1106 if (new_len < len) in s5p_hash_copy_sg_lists() 1107 len = new_len; in s5p_hash_copy_sg_lists() 1109 new_len -= len; in s5p_hash_copy_sg_lists() 1112 if (new_len <= 0) in s5p_hash_copy_sg_lists() 1143 unsigned int new_len, bool final) in s5p_hash_prepare_sgs() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/qce/ |
| H A D | dma.c | 54 unsigned int new_len; in qce_sgtable_add() local 66 new_len = new_sgl->length > max_len ? max_len : new_sgl->length; in qce_sgtable_add() 67 sg_set_page(sg, sg_page(new_sgl), new_len, new_sgl->offset); in qce_sgtable_add() 71 max_len -= new_len; in qce_sgtable_add()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/crypt/ |
| H A D | sha2_impl.c | 349 unsigned int new_len = 0; in sha256_update() local 366 new_len = len - rem_len; in sha256_update() 367 block_nb = new_len / SHA256_BLOCK_SIZE; in sha256_update() 374 rem_len = new_len % SHA256_BLOCK_SIZE; in sha256_update() 460 unsigned int new_len = 0; in sha224_update() local 477 new_len = len - rem_len; in sha224_update() 478 block_nb = new_len / SHA224_BLOCK_SIZE; in sha224_update() 485 rem_len = new_len % SHA224_BLOCK_SIZE; in sha224_update()
|
| /OK3568_Linux_fs/kernel/fs/hpfs/ |
| H A D | namei.c | 517 unsigned new_len = new_dentry->d_name.len; in hpfs_rename() local 532 if ((err = hpfs_chk_name(new_name, &new_len))) return err; in hpfs_rename() 556 if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, new_name, new_len, NULL, &qbh1))) { in hpfs_rename() 559 memcpy(nde->name, new_name, new_len); in hpfs_rename() 574 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) { in hpfs_rename() 602 fnode->len = new_len; in hpfs_rename() 603 memcpy(fnode->name, new_name, new_len>15?15:new_len); in hpfs_rename() 604 if (new_len < 15) memset(&fnode->name[new_len], 0, 15 - new_len); in hpfs_rename()
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | netprio_cgroup.c | 44 size_t new_sz, new_len; in extend_netdev_table() local 58 new_len = (new_sz - offsetof(struct netprio_map, priomap)) / in extend_netdev_table() 60 if (new_len > target_idx) in extend_netdev_table() 77 new->priomap_len = new_len; in extend_netdev_table()
|
| /OK3568_Linux_fs/kernel/fs/xfs/ |
| H A D | xfs_refcount_item.c | 247 xfs_extlen_t *new_len, in xfs_trans_log_finish_refcount_update() argument 253 blockcount, new_fsb, new_len, pcur); in xfs_trans_log_finish_refcount_update() 438 xfs_extlen_t new_len; in xfs_cui_item_recover() local 510 new_len = refc->pe_len; in xfs_cui_item_recover() 514 &new_fsb, &new_len, &rcur); in xfs_cui_item_recover() 519 if (new_len > 0) { in xfs_cui_item_recover() 521 irec.br_blockcount = new_len; in xfs_cui_item_recover()
|
| /OK3568_Linux_fs/kernel/tools/perf/arch/x86/util/ |
| H A D | perf_regs.c | 195 int new_len = 0, ret; in arch_sdt_arg_parse_op() local 255 new_len = strlen(prefix) + in arch_sdt_arg_parse_op() 262 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 266 scnprintf(*new_op, new_len, "%.*s%.*s%.*s%.*s%.*s", in arch_sdt_arg_parse_op()
|
| /OK3568_Linux_fs/kernel/fs/ocfs2/ |
| H A D | move_extents.c | 216 u32 new_phys_cpos, new_len; in ocfs2_defrag_extent() local 292 &new_phys_cpos, &new_len); in ocfs2_defrag_extent() 304 if (new_len != *len) { in ocfs2_defrag_extent() 305 mlog(0, "len_claimed: %u, len: %u\n", new_len, *len); in ocfs2_defrag_extent() 317 ret = __ocfs2_move_extent(handle, context, cpos, new_len, phys_cpos, in ocfs2_defrag_extent() 322 if (partial && (new_len != *len)) in ocfs2_defrag_extent() 323 *len = new_len; in ocfs2_defrag_extent() 339 new_phys_cpos, new_len); in ocfs2_defrag_extent() 345 new_len); in ocfs2_defrag_extent()
|
| H A D | refcounttree.h | 82 u32 new_cluster, u32 new_len); 86 u32 new_cluster, u32 new_len);
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | tpm.h | 355 unsigned int new_len) in tpm_buf_append() argument 364 if ((len + new_len) > PAGE_SIZE) { in tpm_buf_append() 370 memcpy(&buf->data[len], new_data, new_len); in tpm_buf_append() 371 head->length = cpu_to_be32(len + new_len); in tpm_buf_append()
|
| /OK3568_Linux_fs/kernel/arch/ia64/kernel/ |
| H A D | sys_ia64.c | 161 ia64_mremap (unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, in ia64_mremap() argument 164 addr = sys_mremap(addr, old_len, new_len, flags, new_addr); in ia64_mremap()
|
| /OK3568_Linux_fs/kernel/fs/nfs/blocklayout/ |
| H A D | extent_tree.c | 285 sector_t new_len = ext_f_end(new) - ext_f_end(be); in ext_tree_insert() local 286 sector_t diff = new->be_length - new_len; in ext_tree_insert() 290 new->be_length = new_len; in ext_tree_insert() 298 sector_t new_len = ext_f_end(new) - ext_f_end(be); in ext_tree_insert() local 299 sector_t diff = new->be_length - new_len; in ext_tree_insert() 313 new->be_length = new_len; in ext_tree_insert()
|
| /OK3568_Linux_fs/u-boot/lib/avb/libavb/ |
| H A D | avb_sha512.c | 346 size_t new_len, rem_len, tmp_len; in avb_sha512_update() local 359 new_len = len - rem_len; in avb_sha512_update() 360 block_nb = new_len / AVB_SHA512_BLOCK_SIZE; in avb_sha512_update() 367 rem_len = new_len % AVB_SHA512_BLOCK_SIZE; in avb_sha512_update()
|
| H A D | avb_sha256.c | 363 size_t new_len, rem_len, tmp_len; in avb_sha256_update() local 376 new_len = len - rem_len; in avb_sha256_update() 377 block_nb = new_len / AVB_SHA256_BLOCK_SIZE; in avb_sha256_update() 384 rem_len = new_len % AVB_SHA256_BLOCK_SIZE; in avb_sha256_update()
|
| /OK3568_Linux_fs/kernel/kernel/bpf/ |
| H A D | ringbuf.c | 394 u32 new_len; in bpf_ringbuf_commit() local 398 new_len = hdr->len ^ BPF_RINGBUF_BUSY_BIT; in bpf_ringbuf_commit() 400 new_len |= BPF_RINGBUF_DISCARD_BIT; in bpf_ringbuf_commit() 403 xchg(&hdr->len, new_len); in bpf_ringbuf_commit()
|