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/kernel/time/
H A Dhrtimer.c216 static bool hrtimer_suitable_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base, in hrtimer_suitable_target() argument
238 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_suitable_target()
240 return expires >= new_base->cpu_base->expires_next; in hrtimer_suitable_target()
274 struct hrtimer_clock_base *new_base; in switch_hrtimer_base() local
280 new_base = &new_cpu_base->clock_base[basenum]; in switch_hrtimer_base()
282 if (base != new_base) { in switch_hrtimer_base()
297 raw_spin_lock(&new_base->cpu_base->lock); in switch_hrtimer_base()
299 if (!hrtimer_suitable_target(timer, new_base, new_cpu_base, this_cpu_base)) { in switch_hrtimer_base()
300 raw_spin_unlock(&new_base->cpu_base->lock); in switch_hrtimer_base()
306 WRITE_ONCE(timer->base, new_base); in switch_hrtimer_base()
[all …]
/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/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()