Home
last modified time | relevance | path

Searched refs:old_len (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/linux/mm/
H A Dmremap.c657 if (moved_len < old_len) { in move_vma()
672 old_len = new_len; in move_vma()
785 if (new_len == old_len) in vma_to_resize()
851 if (old_len > new_len) { in mremap_to()
855 old_len = new_len; in mremap_to()
958 old_len = PAGE_ALIGN(old_len); in SYSCALL_DEFINE5()
980 old_len = ALIGN(old_len, huge_page_size(h)); in SYSCALL_DEFINE5()
993 if (new_len > old_len) in SYSCALL_DEFINE5()
1010 if (old_len >= new_len) { in SYSCALL_DEFINE5()
1013 if (old_len == new_len) { in SYSCALL_DEFINE5()
[all …]
H A Dnommu.c1550 unsigned long old_len, unsigned long new_len, in do_mremap() argument
1556 old_len = PAGE_ALIGN(old_len); in do_mremap()
1558 if (old_len == 0 || new_len == 0) in do_mremap()
1567 vma = find_vma_exact(current->mm, addr, old_len); in do_mremap()
1571 if (vma->vm_end != vma->vm_start + old_len) in do_mremap()
1585 SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, in SYSCALL_DEFINE5() argument
1592 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in SYSCALL_DEFINE5()
/openbmc/linux/rust/alloc/vec/
H A Dextract_if.rs39 pub(super) old_len: usize, field
65 while self.idx < self.old_len { in next()
67 let v = slice::from_raw_parts_mut(self.vec.as_mut_ptr(), self.old_len); in next()
88 (0, Some(self.old_len - self.idx)) in size_hint()
99 if self.idx < self.old_len && self.del > 0 { in drop()
109 let tail_len = self.old_len - self.idx; in drop()
112 self.vec.set_len(self.old_len - self.del); in drop()
H A Ddrain.rs210 let old_len = vec.len(); in drop() localVariable
211 vec.set_len(old_len + drop_len + self.tail_len); in drop()
212 vec.truncate(old_len + self.tail_len); in drop()
/openbmc/linux/arch/loongarch/include/asm/
H A Dalternative-asm.h47 #define old_len (141b-140b)
62 .fill - ((alt_max_short(new_len1, new_len2) - (old_len)) > 0) * \
63 (alt_max_short(new_len1, new_len2) - (old_len)) / 4, 4, 0x03400000
/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
44 for (i = *old_len; i < new_len; ++i) in seed_src_data()
47 *old_len = new_len; in seed_src_data()
/openbmc/linux/arch/x86/include/asm/
H A Dalternative.h397 #define old_len 141b-140b macro
421 .skip -((alt_max_2(new_len1, new_len2) - (old_len)) > 0) * \
422 (alt_max_2(new_len1, new_len2) - (old_len)),0x90
443 .skip -((alt_max_3(new_len1, new_len2, new_len3) - (old_len)) > 0) * \
444 (alt_max_3(new_len1, new_len2, new_len3) - (old_len)),0x90
/openbmc/qemu/scripts/oss-fuzz/
H A Dminimize_qtest_trace.py292 old_len = len(newtrace) + 1
293 while(old_len > len(newtrace)):
294 old_len = len(newtrace)
295 print("trace length = ", old_len)
/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/linux/drivers/media/test-drivers/visl/
H A Dvisl-dec.c292 u32 old_len = len; in visl_tpg_fill() local
303 tpg_gen_text(&ctx->tpg, basep, line++ * line_height, 16, &buf[old_len]); in visl_tpg_fill()
304 frame_dprintk(ctx->dev, run->dst->sequence, "%s", &buf[old_len]); in visl_tpg_fill()
344 u32 old_len = len; in visl_tpg_fill() local
353 tpg_gen_text(&ctx->tpg, basep, line++ * line_height, 16, &buf[old_len]); in visl_tpg_fill()
354 frame_dprintk(ctx->dev, run->dst->sequence, "%s", &buf[old_len]); in visl_tpg_fill()
/openbmc/linux/fs/reiserfs/
H A Ddo_balan.c640 loff_t old_key_comp, old_len, r_zeroes_number; in balance_leaf_insert_right() local
649 old_len = ih_item_len(ih); in balance_leaf_insert_right()
664 if ((old_len - tb->rbytes) > tb->zeroes_num) { in balance_leaf_insert_right()
670 (old_len - tb->rbytes); in balance_leaf_insert_right()
684 put_ih_item_len(ih, old_len - tb->rbytes); in balance_leaf_insert_right()
942 int old_key_comp, old_len, r_zeroes_number; in balance_leaf_new_nodes_insert() local
951 old_len = ih_item_len(ih); in balance_leaf_new_nodes_insert()
962 ((old_len - tb->sbytes[i]) << shift)); in balance_leaf_new_nodes_insert()
971 r_body = body + (old_len - tb->sbytes[i]) - in balance_leaf_new_nodes_insert()
975 r_zeroes_number = tb->zeroes_num - (old_len - in balance_leaf_new_nodes_insert()
[all …]
/openbmc/linux/drivers/md/persistent-data/
H A Ddm-space-map-metadata.c723 dm_block_t old_len = smm->ll.nr_blocks; in sm_metadata_extend() local
728 smm->begin = old_len; in sm_metadata_extend()
743 r = add_bop(smm, BOP_INC, old_len, smm->begin); in sm_metadata_extend()
747 old_len = smm->begin; in sm_metadata_extend()
759 } while (old_len != smm->begin); in sm_metadata_extend()
/openbmc/linux/fs/btrfs/
H A Droot-tree.c131 u32 old_len; in btrfs_update_root() local
154 old_len = btrfs_item_size(l, slot); in btrfs_update_root()
161 if (old_len < sizeof(*item)) { in btrfs_update_root()
/openbmc/linux/arch/sparc/kernel/
H A Dsystbls.h40 unsigned long old_len,
H A Dsys_sparc_64.c478 SYSCALL_DEFINE5(64_mremap, unsigned long, addr, unsigned long, old_len,
484 return sys_mremap(addr, old_len, new_len, flags, new_addr);
/openbmc/linux/fs/hpfs/
H A Dnamei.c511 unsigned old_len = old_dentry->d_name.len; in hpfs_rename() local
530 hpfs_adjust_length(old_name, &old_len); in hpfs_rename()
541 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename()
578 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename()
/openbmc/linux/fs/ocfs2/
H A Docfs2_trace.h2233 TP_PROTO(unsigned long long ino, int old_len, const char *old_name,
2235 TP_ARGS(ino, old_len, old_name, name_len, name),
2238 __field(int, old_len)
2245 __entry->old_len = old_len;
2251 __entry->old_len, __get_str(old_name),
2264 int old_len, const char *old_name,
2267 old_len, old_name, new_len, new_name),
2273 __field(int, old_len)
2283 __entry->old_len = old_len;
2291 __entry->old_len, __get_str(old_name),
/openbmc/linux/arch/mips/cavium-octeon/
H A Docteon-platform.c568 int old_len; in octeon_fdt_set_mac_addr() local
574 &old_len); in octeon_fdt_set_mac_addr()
575 if (!old_mac || old_len != 6 || is_valid_ether_addr(old_mac)) in octeon_fdt_set_mac_addr()
/openbmc/linux/tools/perf/util/
H A Devent.c523 ret += fprintf(fp, " old len %u new len %u\n", tp->old_len, tp->new_len); in perf_event__fprintf_text_poke()
525 ret += binary__fprintf(tp->bytes, tp->old_len, 16, text_poke_printer, in perf_event__fprintf_text_poke()
528 ret += binary__fprintf(tp->bytes + tp->old_len, tp->new_len, 16, in perf_event__fprintf_text_poke()
/openbmc/linux/drivers/atm/
H A Dsolos-pci.c1031 int old_len; in fpga_queue() local
1037 old_len = skb_queue_len(&card->tx_queue[port]); in fpga_queue()
1039 if (!old_len) in fpga_queue()
1045 if (!old_len) in fpga_queue()
/openbmc/linux/tools/lib/perf/include/perf/
H A Devent.h132 __u16 old_len; member
/openbmc/linux/fs/xfs/
H A Dxfs_log_recover.c2074 int old_len; in xlog_recover_add_to_cont_trans() local
2099 old_len = item->ri_buf[item->ri_cnt-1].i_len; in xlog_recover_add_to_cont_trans()
2101 ptr = kvrealloc(old_ptr, old_len, len + old_len, GFP_KERNEL); in xlog_recover_add_to_cont_trans()
2104 memcpy(&ptr[old_len], dp, len); in xlog_recover_add_to_cont_trans()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dxdp_synproxy_kern.c776 volatile u64 old_len = data_end - data; in syncookie_part1() local
778 if (bpf_skb_change_tail(ctx, old_len + TCP_MAXLEN - hdr->tcp_len, 0)) in syncookie_part1()
/openbmc/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-decoder.c681 size_t old_len, len, n; in intel_pt_get_split_packet() local
684 old_len = decoder->len; in intel_pt_get_split_packet()
690 decoder->pos += old_len; in intel_pt_get_split_packet()
702 if (ret < (int)old_len) { in intel_pt_get_split_packet()
706 decoder->len = old_len; in intel_pt_get_split_packet()
710 decoder->next_buf = decoder->buf + (ret - old_len); in intel_pt_get_split_packet()
711 decoder->next_len = decoder->len - (ret - old_len); in intel_pt_get_split_packet()
/openbmc/linux/drivers/video/fbdev/
H A Dsmscufx.c1304 int old_len = info->fix.smem_len; in ufx_realloc_framebuffer() local
1313 if (PAGE_ALIGN(new_len) > old_len) { in ufx_realloc_framebuffer()
1322 memcpy(new_fb, old_fb, old_len); in ufx_realloc_framebuffer()

12