Searched refs:new_base (Results 1 – 5 of 5) sorted by relevance
| /linux/kernel/time/ |
| H A D | hrtimer.c | 196 static bool hrtimer_suitable_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base, in hrtimer_suitable_target() argument 218 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_suitable_target() 220 return expires >= new_base->cpu_base->expires_next; in hrtimer_suitable_target() 255 struct hrtimer_clock_base *new_base; in switch_hrtimer_base() local 261 new_base = &new_cpu_base->clock_base[basenum]; in switch_hrtimer_base() 263 if (base != new_base) { in switch_hrtimer_base() 279 raw_spin_lock(&new_base->cpu_base->lock); in switch_hrtimer_base() 281 if (!hrtimer_suitable_target(timer, new_base, new_cpu_base, in switch_hrtimer_base() 283 raw_spin_unlock(&new_base->cpu_base->lock); in switch_hrtimer_base() 289 WRITE_ONCE(timer->base, new_base); in switch_hrtimer_base() [all …]
|
| H A D | ntp.c | 253 u64 second_length, new_base, tick_usec = (u64)ntpdata->tick_usec; in ntp_update_frequency() local 260 new_base = div_u64(second_length, NTP_INTERVAL_FREQ); in ntp_update_frequency() 266 ntpdata->tick_length += new_base - ntpdata->tick_length_base; in ntp_update_frequency() 267 ntpdata->tick_length_base = new_base; in ntp_update_frequency()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | btf_distill.c | 541 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 D | signal.c | 827 unsigned long new_base = base - size; in extframe_alloc() local 829 new_base = round_down(new_base, (align < 16 ? 16 : align)); in extframe_alloc() 830 new_base -= sizeof(struct sctx_info); in extframe_alloc() 832 layout->addr = (void *)new_base; in extframe_alloc() 833 layout->size = (unsigned int)(base - new_base); in extframe_alloc() 836 return new_base; in extframe_alloc()
|
| /linux/arch/sparc/mm/ |
| H A D | init_64.c | 143 unsigned long new_base = PAGE_ALIGN(base); in read_obp_memory() local 145 size -= new_base - base; in read_obp_memory() 148 base = new_base; in read_obp_memory()
|