Home
last modified time | relevance | path

Searched refs:new_len (Results 1 – 25 of 83) sorted by relevance

1234

/openbmc/linux/mm/
H A Dmremap.c617 to_account = new_len; in move_vma()
672 old_len = new_len; in move_vma()
785 if (new_len == old_len) in vma_to_resize()
821 if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len) in mremap_to()
852 ret = do_munmap(mm, addr+new_len, old_len - new_len, uf_unmap); in mremap_to()
855 old_len = new_len; in mremap_to()
959 new_len = PAGE_ALIGN(new_len); in SYSCALL_DEFINE5()
966 if (!new_len) in SYSCALL_DEFINE5()
981 new_len = ALIGN(new_len, huge_page_size(h)); in SYSCALL_DEFINE5()
993 if (new_len > old_len) in SYSCALL_DEFINE5()
[all …]
/openbmc/linux/tools/perf/arch/arm64/util/
H A Dperf_regs.c97 int ret, new_len; in arch_sdt_arg_parse_op() local
106 new_len = 2; /* % NULL */ in arch_sdt_arg_parse_op()
107 new_len += (int)(rm[1].rm_eo - rm[1].rm_so); in arch_sdt_arg_parse_op()
109 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op()
113 scnprintf(*new_op, new_len, "%%%.*s", in arch_sdt_arg_parse_op()
117 new_len = 7; /* + ( % s p ) NULL */ in arch_sdt_arg_parse_op()
121 new_len += 1; in arch_sdt_arg_parse_op()
123 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op()
125 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op()
130 scnprintf(*new_op, new_len, "+0(%%sp)"); in arch_sdt_arg_parse_op()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D308307 new_len=$(get_proto_len "$EXT_MP" "$TEST_IMG")
308 if [ "$new_len" != "$((orig_len + 65536))" ]; then
310 echo "$new_len != $((orig_len + 65536))"
335 dd if=/dev/zero of="$EXT_MP" bs=1 count=64k seek=$new_len 2>&1 \
338 new_len=$(get_proto_len "$EXT_MP" "$TEST_IMG")
339 if [ "$new_len" != "$((orig_len + 131072))" ]; then
341 echo "$new_len != $((orig_len + 131072))"
352 new_len=$(get_proto_len "$EXT_MP" "$TEST_IMG")
353 if [ "$new_len" != "$orig_len" ]; then
355 echo "$new_len != $orig_len"
/openbmc/linux/tools/perf/arch/powerpc/util/
H A Dperf_regs.c137 int ret, new_len; in arch_sdt_arg_parse_op() local
154 new_len = 5; /* % g p r NULL */ in arch_sdt_arg_parse_op()
155 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op()
157 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op()
161 scnprintf(*new_op, new_len, "%%gpr%.*s", in arch_sdt_arg_parse_op()
170 new_len = 8; /* +/- ( % g p r ) NULL */ in arch_sdt_arg_parse_op()
171 new_len += (int)(rm[2].rm_eo - rm[2].rm_so); in arch_sdt_arg_parse_op()
172 new_len += (int)(rm[4].rm_eo - rm[4].rm_so); in arch_sdt_arg_parse_op()
174 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op()
178 scnprintf(*new_op, new_len, "%c%.*s(%%gpr%.*s)", prefix, in arch_sdt_arg_parse_op()
/openbmc/u-boot/post/drivers/
H A Dflash.c35 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()
/openbmc/openbmc/meta-google/recipes-google/networking/gbmc-bridge/
H A Dgbmc-br-gw-src.sh70 local new_len=16
74 if (( ip_len < new_len )); then
76 new_len="$ip_len"
79 (( new_len >= 16 )) && return
/openbmc/linux/tools/objtool/
H A Dspecial.c24 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()
105 if (!entry->group || alt->new_len) { in get_alt_entry()
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Domapdss-boot-init.c85 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()
/openbmc/linux/drivers/crypto/
H A Domap-crypto.c60 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 Domap-sham.c632 ctx->total = new_len; in omap_sham_copy_sg_lists()
663 if (new_len < len) in omap_sham_copy_sg_lists()
664 len = new_len; in omap_sham_copy_sg_lists()
667 new_len -= len; in omap_sham_copy_sg_lists()
672 if (new_len <= 0) in omap_sham_copy_sg_lists()
718 ctx->total = new_len; in omap_sham_copy_sgs()
731 int new_len; in omap_sham_align_sgs() local
747 new_len = nbytes; in omap_sham_align_sgs()
753 new_len = DIV_ROUND_UP(new_len, bs) * bs; in omap_sham_align_sgs()
755 new_len = (new_len - 1) / bs * bs; in omap_sham_align_sgs()
[all …]
/openbmc/linux/drivers/crypto/qce/
H A Ddma.c54 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()
/openbmc/linux/net/core/
H A Dnetprio_cgroup.c44 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()
/openbmc/linux/fs/hpfs/
H A Dnamei.c513 unsigned new_len = new_dentry->d_name.len; in hpfs_rename() local
528 if ((err = hpfs_chk_name(new_name, &new_len))) return err; in hpfs_rename()
552 if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, new_name, new_len, NULL, &qbh1))) { in hpfs_rename()
555 memcpy(nde->name, new_name, new_len); in hpfs_rename()
570 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) { in hpfs_rename()
598 fnode->len = new_len; in hpfs_rename()
599 memcpy(fnode->name, new_name, new_len>15?15:new_len); in hpfs_rename()
600 if (new_len < 15) memset(&fnode->name[new_len], 0, 15 - new_len); in hpfs_rename()
/openbmc/linux/rust/alloc/vec/
H A Dmod.rs1481 pub unsafe fn set_len(&mut self, new_len: usize) { in set_len()
1482 debug_assert!(new_len <= self.capacity()); in set_len()
1484 self.len = new_len; in set_len()
2312 if new_len > len { in resize_with()
2315 self.truncate(new_len); in resize_with()
2510 if new_len > len { in resize()
2511 self.extend_with(new_len - len, value) in resize()
2513 self.truncate(new_len); in resize()
2548 if new_len > len { in try_resize()
2551 self.truncate(new_len); in try_resize()
[all …]
/openbmc/linux/tools/perf/arch/x86/util/
H A Dperf_regs.c198 int new_len = 0, ret; in arch_sdt_arg_parse_op() local
258 new_len = strlen(prefix) + in arch_sdt_arg_parse_op()
265 *new_op = zalloc(new_len); in arch_sdt_arg_parse_op()
269 scnprintf(*new_op, new_len, "%.*s%.*s%.*s%.*s%.*s", in arch_sdt_arg_parse_op()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtesting_helpers.c16 int i, set_len = 0, new_len, num, start = 0, end = -1; in parse_num_list() local
51 new_len = end + 1; in parse_num_list()
52 tmp = realloc(set, new_len); in parse_num_list()
60 set_len = new_len; in parse_num_list()
/openbmc/linux/fs/ocfs2/
H A Dmove_extents.c204 u32 new_phys_cpos, new_len; in ocfs2_defrag_extent() local
280 &new_phys_cpos, &new_len); in ocfs2_defrag_extent()
292 if (new_len != *len) { in ocfs2_defrag_extent()
293 mlog(0, "len_claimed: %u, len: %u\n", new_len, *len); in ocfs2_defrag_extent()
305 ret = __ocfs2_move_extent(handle, context, cpos, new_len, phys_cpos, in ocfs2_defrag_extent()
310 if (partial && (new_len != *len)) in ocfs2_defrag_extent()
311 *len = new_len; in ocfs2_defrag_extent()
327 new_phys_cpos, new_len); in ocfs2_defrag_extent()
333 new_len); in ocfs2_defrag_extent()
H A Drefcounttree.h80 u32 new_cluster, u32 new_len);
84 u32 new_cluster, u32 new_len);
/openbmc/linux/include/linux/
H A Dtpm.h370 unsigned int new_len) in tpm_buf_append() argument
379 if ((len + new_len) > PAGE_SIZE) { in tpm_buf_append()
385 memcpy(&buf->data[len], new_data, new_len); in tpm_buf_append()
386 head->length = cpu_to_be32(len + new_len); in tpm_buf_append()
/openbmc/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dbioscfg.c436 int new_len = 0; in hp_convert_hexstr_to_str() local
465 new_str[new_len++] = '\\'; in hp_convert_hexstr_to_str()
467 new_str[new_len++] = ch; in hp_convert_hexstr_to_str()
473 if (new_len) { in hp_convert_hexstr_to_str()
474 new_str[new_len] = '\0'; in hp_convert_hexstr_to_str()
475 *str = krealloc(new_str, (new_len + 1) * sizeof(char), in hp_convert_hexstr_to_str()
478 *len = new_len; in hp_convert_hexstr_to_str()
/openbmc/linux/arch/ia64/kernel/
H A Dsys_ia64.c161 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()
/openbmc/u-boot/lib/libavb/
H A Davb_sha256.c298 unsigned int new_len, rem_len, tmp_len; in avb_sha256_update() local
311 new_len = len - rem_len; in avb_sha256_update()
312 block_nb = new_len / AVB_SHA256_BLOCK_SIZE; in avb_sha256_update()
319 rem_len = new_len % AVB_SHA256_BLOCK_SIZE; in avb_sha256_update()
H A Davb_sha512.c296 unsigned int new_len, rem_len, tmp_len; in avb_sha512_update() local
309 new_len = len - rem_len; in avb_sha512_update()
310 block_nb = new_len / AVB_SHA512_BLOCK_SIZE; in avb_sha512_update()
317 rem_len = new_len % AVB_SHA512_BLOCK_SIZE; in avb_sha512_update()
/openbmc/linux/arch/riscv/include/asm/
H A Dalternative-macros.h9 .macro ALT_ENTRY oldptr newptr vendor_id patch_id new_len
13 .2byte \new_len
/openbmc/linux/fs/nfs/blocklayout/
H A Dextent_tree.c285 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()

1234