Home
last modified time | relevance | path

Searched refs:new_base (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_distill.c541 struct btf *base = NULL, *split = NULL, *new_base = NULL, *new_split = NULL; in test_distilled_endianness() local
565 if (!ASSERT_EQ(0, btf__distill_base(split, &new_base, &new_split), in test_distilled_endianness()
567 !ASSERT_OK_PTR(new_base, "distilled_base") || in test_distilled_endianness()
569 !ASSERT_EQ(2, btf__type_cnt(new_base), "distilled_base_type_cnt")) in test_distilled_endianness()
576 raw_data = btf__raw_data(new_base, &size); in test_distilled_endianness()
599 btf__free(new_base); in test_distilled_endianness()
/linux/arch/loongarch/kernel/
H A Dsignal.c823 unsigned long new_base = base - size; in extframe_alloc() local
825 new_base = round_down(new_base, (align < 16 ? 16 : align)); in extframe_alloc()
826 new_base -= sizeof(struct sctx_info); in extframe_alloc()
828 layout->addr = (void *)new_base; in extframe_alloc()
829 layout->size = (unsigned int)(base - new_base); in extframe_alloc()
832 return new_base; in extframe_alloc()
/linux/kernel/time/
H A Dntp.c265 u64 second_length, new_base, tick_usec = (u64)ntpdata->tick_usec; in ntp_update_frequency()
273 new_base = div_u64(second_length, NTP_INTERVAL_FREQ); in ntp_update_offset_fll()
279 ntpdata->tick_length = new_base; in ntp_update_offset_fll()
253 u64 second_length, new_base, tick_usec = (u64)ntpdata->tick_usec; ntp_update_frequency() local
/linux/tools/lib/bpf/
H A Dbtf.c6127 struct btf *new_base = NULL, *new_split = NULL; in btf__distill_base() local
6139 new_base = btf__new_empty(); in btf__distill_base()
6140 if (!new_base) in btf__distill_base()
6143 btf__set_endianness(new_base, btf__endianness(src_btf)); in btf__distill_base()
6151 dist.pipe.dst = new_base; in btf__distill_base()
6181 new_split = btf__new_empty_split(new_base); in btf__distill_base()
6202 dist.diff_id = dist.split_start_id - btf__type_cnt(new_base); in btf__distill_base()
6216 btf__free(new_base); in btf__distill_base()
6219 *new_base_btf = new_base; in btf__distill_base()