/linux/mm/ |
A D | mremap.c | 592 to_account = new_len; in move_vma() 646 old_len = new_len; in move_vma() 754 if (new_len == old_len) in vma_to_resize() 796 if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len) in mremap_to() 827 ret = do_munmap(mm, addr+new_len, old_len - new_len, uf_unmap); in mremap_to() 830 old_len = new_len; in mremap_to() 933 new_len = PAGE_ALIGN(new_len); in SYSCALL_DEFINE5() 940 if (!new_len) in SYSCALL_DEFINE5() 955 new_len = ALIGN(new_len, huge_page_size(h)); in SYSCALL_DEFINE5() 967 if (new_len > old_len) in SYSCALL_DEFINE5() [all …]
|
A D | nommu.c | 1552 unsigned long old_len, unsigned long new_len, in do_mremap() argument 1559 new_len = PAGE_ALIGN(new_len); in do_mremap() 1560 if (old_len == 0 || new_len == 0) in do_mremap() 1579 if (new_len > vma->vm_region->vm_end - vma->vm_region->vm_start) in do_mremap() 1583 vma->vm_end = vma->vm_start + new_len; in do_mremap() 1588 unsigned long, new_len, unsigned long, flags, in SYSCALL_DEFINE5() argument 1594 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in SYSCALL_DEFINE5()
|
/linux/tools/perf/arch/arm64/util/ |
A D | perf_regs.c | 89 int ret, new_len; in arch_sdt_arg_parse_op() local 98 new_len = 2; /* % NULL */ in arch_sdt_arg_parse_op() 99 new_len += (int)(rm[1].rm_eo - rm[1].rm_so); in arch_sdt_arg_parse_op() 101 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 105 scnprintf(*new_op, new_len, "%%%.*s", in arch_sdt_arg_parse_op() 109 new_len = 7; /* + ( % s p ) NULL */ in arch_sdt_arg_parse_op() 113 new_len += 1; in arch_sdt_arg_parse_op() 115 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op() 117 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 122 scnprintf(*new_op, new_len, "+0(%%sp)"); in arch_sdt_arg_parse_op() [all …]
|
/linux/tools/perf/arch/powerpc/util/ |
A D | perf_regs.c | 136 int ret, new_len; in arch_sdt_arg_parse_op() local 153 new_len = 5; /* % g p r NULL */ in arch_sdt_arg_parse_op() 154 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op() 156 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 160 scnprintf(*new_op, new_len, "%%gpr%.*s", in arch_sdt_arg_parse_op() 169 new_len = 8; /* +/- ( % g p r ) NULL */ in arch_sdt_arg_parse_op() 170 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op() 171 new_len += (int)(rm[4].rm_eo - rm[4].rm_so); in arch_sdt_arg_parse_op() 173 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op() 177 scnprintf(*new_op, new_len, "%c%.*s(%%gpr%.*s)", prefix, in arch_sdt_arg_parse_op()
|
/linux/tools/testing/selftests/bpf/ |
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()
|
/linux/tools/objtool/ |
A D | special.c | 24 unsigned char orig_len, new_len; /* group only */ member 37 .new_len = ALT_NEW_LEN_OFFSET, 83 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry() 84 entry->new_len); in get_alt_entry() 104 if (!entry->group || alt->new_len) { in get_alt_entry()
|
/linux/drivers/video/fbdev/omap2/omapfb/dss/ |
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()
|
/linux/drivers/crypto/ |
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()
|
A D | omap-sham.c | 637 ctx->total = new_len; in omap_sham_copy_sg_lists() 668 if (new_len < len) in omap_sham_copy_sg_lists() 669 len = new_len; in omap_sham_copy_sg_lists() 672 new_len -= len; in omap_sham_copy_sg_lists() 677 if (new_len <= 0) in omap_sham_copy_sg_lists() 723 ctx->total = new_len; in omap_sham_copy_sgs() 736 int new_len; in omap_sham_align_sgs() local 752 new_len = nbytes; in omap_sham_align_sgs() 758 new_len = DIV_ROUND_UP(new_len, bs) * bs; in omap_sham_align_sgs() 760 new_len = (new_len - 1) / bs * bs; in omap_sham_align_sgs() [all …]
|
A D | s5p-sss.c | 1029 len = new_len + ctx->bufcnt; in s5p_hash_copy_sgs() 1043 new_len, 0); in s5p_hash_copy_sgs() 1102 while (sg && new_len) { in s5p_hash_copy_sg_lists() 1104 if (new_len < len) in s5p_hash_copy_sg_lists() 1105 len = new_len; in s5p_hash_copy_sg_lists() 1107 new_len -= len; in s5p_hash_copy_sg_lists() 1110 if (new_len <= 0) in s5p_hash_copy_sg_lists() 1141 unsigned int new_len, bool final) in s5p_hash_prepare_sgs() argument 1147 if (!sg || !sg->length || !new_len) in s5p_hash_prepare_sgs() 1180 return s5p_hash_copy_sgs(ctx, sg, new_len); in s5p_hash_prepare_sgs() [all …]
|
/linux/drivers/crypto/qce/ |
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()
|
/linux/net/core/ |
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()
|
/linux/fs/hpfs/ |
A D | namei.c | 521 unsigned new_len = new_dentry->d_name.len; in hpfs_rename() local 536 if ((err = hpfs_chk_name(new_name, &new_len))) return err; in hpfs_rename() 560 if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, new_name, new_len, NULL, &qbh1))) { in hpfs_rename() 563 memcpy(nde->name, new_name, new_len); in hpfs_rename() 578 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) { in hpfs_rename() 606 fnode->len = new_len; in hpfs_rename() 607 memcpy(fnode->name, new_name, new_len>15?15:new_len); in hpfs_rename() 608 if (new_len < 15) memset(&fnode->name[new_len], 0, 15 - new_len); in hpfs_rename()
|
/linux/fs/xfs/ |
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() 462 xfs_extlen_t new_len; in xfs_cui_item_recover() local 520 new_len = refc->pe_len; in xfs_cui_item_recover() 524 &new_fsb, &new_len, &rcur); in xfs_cui_item_recover() 532 if (new_len > 0) { in xfs_cui_item_recover() 534 irec.br_blockcount = new_len; in xfs_cui_item_recover()
|
/linux/tools/perf/arch/x86/util/ |
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()
|
/linux/fs/ocfs2/ |
A D | move_extents.c | 214 u32 new_phys_cpos, new_len; in ocfs2_defrag_extent() local 290 &new_phys_cpos, &new_len); in ocfs2_defrag_extent() 302 if (new_len != *len) { in ocfs2_defrag_extent() 303 mlog(0, "len_claimed: %u, len: %u\n", new_len, *len); in ocfs2_defrag_extent() 315 ret = __ocfs2_move_extent(handle, context, cpos, new_len, phys_cpos, in ocfs2_defrag_extent() 320 if (partial && (new_len != *len)) in ocfs2_defrag_extent() 321 *len = new_len; in ocfs2_defrag_extent() 337 new_phys_cpos, new_len); in ocfs2_defrag_extent() 343 new_len); in ocfs2_defrag_extent()
|
A D | refcounttree.h | 80 u32 new_cluster, u32 new_len); 84 u32 new_cluster, u32 new_len);
|
/linux/include/linux/ |
A D | tpm.h | 364 unsigned int new_len) in tpm_buf_append() argument 373 if ((len + new_len) > PAGE_SIZE) { in tpm_buf_append() 379 memcpy(&buf->data[len], new_data, new_len); in tpm_buf_append() 380 head->length = cpu_to_be32(len + new_len); in tpm_buf_append()
|
/linux/arch/riscv/include/asm/ |
A D | alternative-macros.h | 9 .macro ALT_ENTRY oldptr newptr vendor_id errata_id new_len 13 REG_ASM \new_len
|
/linux/arch/ia64/kernel/ |
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()
|
/linux/kernel/bpf/ |
A D | ringbuf.c | 375 u32 new_len; in bpf_ringbuf_commit() local 379 new_len = hdr->len ^ BPF_RINGBUF_BUSY_BIT; in bpf_ringbuf_commit() 381 new_len |= BPF_RINGBUF_DISCARD_BIT; in bpf_ringbuf_commit() 384 xchg(&hdr->len, new_len); in bpf_ringbuf_commit()
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
A D | pnvm.c | 234 size_t new_len; in iwl_pnvm_get_from_fs() local 246 new_len = pnvm->size; in iwl_pnvm_get_from_fs() 253 *len = new_len; in iwl_pnvm_get_from_fs()
|
/linux/fs/nfs/blocklayout/ |
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()
|
/linux/fs/ |
A D | remap_range.c | 129 loff_t new_len = *len; in generic_remap_check_len() local 135 new_len &= ~blkmask; in generic_remap_check_len() 137 if (new_len == *len) in generic_remap_check_len() 141 *len = new_len; in generic_remap_check_len()
|
/linux/drivers/usb/serial/ |
A D | digi_acceleport.c | 886 int ret, data_len, new_len; in digi_write() local 907 new_len = 1; in digi_write() 909 new_len = 0; in digi_write() 912 return new_len; in digi_write() 917 new_len = min(count, port->bulk_out_size-2-priv->dp_out_buf_len); in digi_write() 918 data_len = new_len + priv->dp_out_buf_len; in digi_write() 935 memcpy(data, buf, new_len); in digi_write() 940 ret = new_len; in digi_write()
|