Home
last modified time | relevance | path

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

12

/linux-6.15/mm/
H A Dmremap.c854 if (vrm->old_len > vrm->new_len) in vrm_remap_type()
999 unsigned long old_len = vrm->old_len; in prep_move_vma() local
1167 if (moved_len < vrm->old_len) in copy_vma_and_data()
1185 vrm->old_len = vrm->new_len; in copy_vma_and_data()
1292 unsigned long old_len = vrm->old_len; in resize_is_valid() local
1318 if (new_len == old_len) in resize_is_valid()
1423 vrm->old_len = vrm->new_len; in mremap_to()
1579 vrm->old_len = ALIGN(vrm->old_len, huge_page_size(h)); in align_hugetlb()
1592 if (vrm->new_len > vrm->old_len) in align_hugetlb()
1698 vrm->old_len = PAGE_ALIGN(vrm->old_len); in do_mremap()
[all …]
H A Dnommu.c1540 unsigned long old_len, unsigned long new_len, in do_mremap() argument
1546 old_len = PAGE_ALIGN(old_len); in do_mremap()
1548 if (old_len == 0 || new_len == 0) in do_mremap()
1557 vma = find_vma_exact(current->mm, addr, old_len); in do_mremap()
1561 if (vma->vm_end != vma->vm_start + old_len) in do_mremap()
1575 SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, in SYSCALL_DEFINE5() argument
1582 ret = do_mremap(addr, old_len, new_len, flags, new_addr); in SYSCALL_DEFINE5()
/linux-6.15/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
/linux-6.15/drivers/media/test-drivers/visl/
H A Dvisl-dec.c412 u32 old_len = len; in visl_tpg_fill() local
430 tpg_gen_text(&ctx->tpg, basep, line++ * line_height, 16, &buf[old_len]); in visl_tpg_fill()
431 frame_dprintk(ctx->dev, run->dst->sequence, "%s", &buf[old_len]); in visl_tpg_fill()
473 u32 old_len = len; in visl_tpg_fill() local
489 tpg_gen_text(&ctx->tpg, basep, line++ * line_height, 16, &buf[old_len]); in visl_tpg_fill()
490 frame_dprintk(ctx->dev, run->dst->sequence, "%s", &buf[old_len]); in visl_tpg_fill()
/linux-6.15/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()
/linux-6.15/fs/btrfs/
H A Droot-tree.c138 u32 old_len; in btrfs_update_root() local
160 old_len = btrfs_item_size(l, slot); in btrfs_update_root()
167 if (old_len < sizeof(*item)) { in btrfs_update_root()
/linux-6.15/arch/powerpc/platforms/pseries/
H A Dpapr-vpd.c155 const size_t old_len = blob->len; in vpd_blob_extend() local
163 memcpy(&new_ptr[old_len], data, len); in vpd_blob_extend()
/linux-6.15/fs/ocfs2/
H A Docfs2_trace.h2231 TP_PROTO(unsigned long long ino, int old_len, const char *old_name,
2233 TP_ARGS(ino, old_len, old_name, name_len, name),
2236 __field(int, old_len)
2243 __entry->old_len = old_len;
2249 __entry->old_len, __get_str(old_name),
2262 int old_len, const char *old_name,
2265 old_len, old_name, new_len, new_name),
2271 __field(int, old_len)
2281 __entry->old_len = old_len;
2289 __entry->old_len, __get_str(old_name),
/linux-6.15/fs/hpfs/
H A Dnamei.c502 unsigned old_len = old_dentry->d_name.len; in hpfs_rename() local
521 hpfs_adjust_length(old_name, &old_len); in hpfs_rename()
532 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename()
569 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename()
/linux-6.15/arch/sparc/kernel/
H A Dsystbls.h40 unsigned long old_len,
H A Dsys_sparc_64.c495 SYSCALL_DEFINE5(64_mremap, unsigned long, addr, unsigned long, old_len,
501 return sys_mremap(addr, old_len, new_len, flags, new_addr);
/linux-6.15/tools/perf/util/
H A Devent.c543 ret += fprintf(fp, " old len %u new len %u\n", tp->old_len, tp->new_len); in perf_event__fprintf_text_poke()
545 ret += binary__fprintf(tp->bytes, tp->old_len, 16, text_poke_printer, in perf_event__fprintf_text_poke()
548 ret += binary__fprintf(tp->bytes + tp->old_len, tp->new_len, 16, in perf_event__fprintf_text_poke()
H A Dsession.c393 event->text_poke.old_len = bswap_16(event->text_poke.old_len); in perf_event__text_poke_swap()
397 size_t len = sizeof(event->text_poke.old_len) + in perf_event__text_poke_swap()
399 event->text_poke.old_len + in perf_event__text_poke_swap()
401 void *data = &event->text_poke.old_len; in perf_event__text_poke_swap()
/linux-6.15/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()
/linux-6.15/arch/x86/include/asm/
H A Dalternative.h370 #define old_len 141b-140b macro
/linux-6.15/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()
/linux-6.15/tools/lib/perf/include/perf/
H A Devent.h138 __u16 old_len; member
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dxdp_synproxy_kern.c778 volatile u64 old_len = data_end - data; in syncookie_part1() local
780 if (bpf_skb_change_tail(ctx, old_len + TCP_MAXLEN - hdr->tcp_len, 0)) in syncookie_part1()
/linux-6.15/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()
/linux-6.15/drivers/video/fbdev/
H A Dudlfb.c1180 u32 old_len = info->fix.smem_len; in dlfb_realloc_framebuffer() local
1187 if (new_len > old_len) { in dlfb_realloc_framebuffer()
1199 memcpy(new_fb, old_fb, old_len); in dlfb_realloc_framebuffer()
H A Dsmscufx.c1265 int old_len = info->fix.smem_len; in ufx_realloc_framebuffer() local
1274 if (PAGE_ALIGN(new_len) > old_len) { in ufx_realloc_framebuffer()
1283 memcpy(new_fb, old_fb, old_len); in ufx_realloc_framebuffer()
/linux-6.15/fs/xfs/
H A Dxfs_log_recover.c2110 int old_len; in xlog_recover_add_to_cont_trans() local
2135 old_len = item->ri_buf[item->ri_cnt-1].i_len; in xlog_recover_add_to_cont_trans()
2137 ptr = kvrealloc(old_ptr, len + old_len, GFP_KERNEL); in xlog_recover_add_to_cont_trans()
2140 memcpy(&ptr[old_len], dp, len); in xlog_recover_add_to_cont_trans()
/linux-6.15/drivers/media/test-drivers/vidtv/
H A Dvidtv_psi.c135 u16 old_len = vidtv_psi_get_sec_len(h); in vidtv_psi_set_sec_len() local
143 if (old_len > MAX_SECTION_LEN) in vidtv_psi_set_sec_len()
147 old_len); in vidtv_psi_set_sec_len()
/linux-6.15/include/linux/
H A Dperf_event.h1638 const void *old_bytes, size_t old_len,
1905 size_t old_len, in perf_event_text_poke() argument
/linux-6.15/tools/testing/selftests/mm/
H A Dmseal_test.c102 static void *sys_mremap(void *addr, size_t old_len, size_t new_len, in sys_mremap() argument
108 sret = (void *) syscall(__NR_mremap, addr, old_len, new_len, flags, new_addr); in sys_mremap()

12