/kernel/time/ |
D | timer.c | 98 static inline unsigned int tbase_get_deferrable(struct tvec_base *base) in tbase_get_deferrable() argument 100 return ((unsigned int)(unsigned long)base & TIMER_DEFERRABLE); in tbase_get_deferrable() 103 static inline unsigned int tbase_get_irqsafe(struct tvec_base *base) in tbase_get_irqsafe() argument 105 return ((unsigned int)(unsigned long)base & TIMER_IRQSAFE); in tbase_get_irqsafe() 108 static inline struct tvec_base *tbase_get_base(struct tvec_base *base) in tbase_get_base() argument 110 return ((struct tvec_base *)((unsigned long)base & ~TIMER_FLAG_MASK)); in tbase_get_base() 116 unsigned long flags = (unsigned long)timer->base & TIMER_FLAG_MASK; in timer_set_base() 118 timer->base = (struct tvec_base *)((unsigned long)(new_base) | flags); in timer_set_base() 347 static bool catchup_timer_jiffies(struct tvec_base *base) in catchup_timer_jiffies() argument 349 if (!base->all_timers) { in catchup_timer_jiffies() [all …]
|
D | hrtimer.c | 117 static void hrtimer_get_softirq_time(struct hrtimer_cpu_base *base) in hrtimer_get_softirq_time() argument 127 base->clock_base[HRTIMER_BASE_REALTIME].softirq_time = xtim; in hrtimer_get_softirq_time() 128 base->clock_base[HRTIMER_BASE_MONOTONIC].softirq_time = mono; in hrtimer_get_softirq_time() 129 base->clock_base[HRTIMER_BASE_BOOTTIME].softirq_time = boot; in hrtimer_get_softirq_time() 130 base->clock_base[HRTIMER_BASE_TAI].softirq_time = tai; in hrtimer_get_softirq_time() 155 struct hrtimer_clock_base *base; in lock_hrtimer_base() local 158 base = timer->base; in lock_hrtimer_base() 159 if (likely(base != NULL)) { in lock_hrtimer_base() 160 raw_spin_lock_irqsave(&base->cpu_base->lock, *flags); in lock_hrtimer_base() 161 if (likely(base == timer->base)) in lock_hrtimer_base() [all …]
|
D | alarmtimer.c | 138 static void alarmtimer_enqueue(struct alarm_base *base, struct alarm *alarm) in alarmtimer_enqueue() argument 141 timerqueue_del(&base->timerqueue, &alarm->node); in alarmtimer_enqueue() 143 timerqueue_add(&base->timerqueue, &alarm->node); in alarmtimer_enqueue() 156 static void alarmtimer_dequeue(struct alarm_base *base, struct alarm *alarm) in alarmtimer_dequeue() argument 161 timerqueue_del(&base->timerqueue, &alarm->node); in alarmtimer_dequeue() 178 struct alarm_base *base = &alarm_bases[alarm->type]; in alarmtimer_fired() local 183 spin_lock_irqsave(&base->lock, flags); in alarmtimer_fired() 184 alarmtimer_dequeue(base, alarm); in alarmtimer_fired() 185 spin_unlock_irqrestore(&base->lock, flags); in alarmtimer_fired() 188 restart = alarm->function(alarm, base->gettime()); in alarmtimer_fired() [all …]
|
D | timer_list.c | 84 print_active_timers(struct seq_file *m, struct hrtimer_clock_base *base, in print_active_timers() argument 94 raw_spin_lock_irqsave(&base->cpu_base->lock, flags); in print_active_timers() 96 curr = timerqueue_getnext(&base->active); in print_active_timers() 110 raw_spin_unlock_irqrestore(&base->cpu_base->lock, flags); in print_active_timers() 116 raw_spin_unlock_irqrestore(&base->cpu_base->lock, flags); in print_active_timers() 120 print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now) in print_base() argument 122 SEQ_printf(m, " .base: %pK\n", base); in print_base() 124 base->index); in print_base() 126 (unsigned long long)ktime_to_ns(base->resolution)); in print_base() 128 print_name_offset(m, base->get_time); in print_base() [all …]
|
D | timekeeping.c | 58 struct tk_read_base base[2]; member 268 struct tk_read_base *base = tk_fast_mono.base; in update_fast_timekeeper() local 274 memcpy(base, &tk->tkr_mono, sizeof(*base)); in update_fast_timekeeper() 280 memcpy(base + 1, base, sizeof(*base)); in update_fast_timekeeper() 323 tkr = tk_fast_mono.base + (seq & 0x01); in ktime_get_mono_fast_ns() 324 now = ktime_to_ns(tkr->base) + timekeeping_get_ns(tkr); in ktime_get_mono_fast_ns() 427 tk->tkr_mono.base = ns_to_ktime(nsec); in tk_update_ktime_data() 432 tk->tkr_raw.base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec); in tk_update_ktime_data() 536 ktime_t base; in ktime_get() local 543 base = tk->tkr_mono.base; in ktime_get() [all …]
|
D | posix-timers.c | 359 timer->base->get_time(), in schedule_next_timer() 745 now = timer->base->get_time(); in common_timer_get() 864 hrtimer_add_expires(timer, timer->base->get_time()); in common_timer_set()
|
D | tick-sched.c | 1197 if (ts->sched_timer.base) in tick_cancel_sched_timer()
|
/kernel/locking/ |
D | mutex.c | 179 if (likely(atomic_read(&lock->base.count) == 0)) in ww_mutex_set_context_fastpath() 186 spin_lock_mutex(&lock->base.wait_lock, flags); in ww_mutex_set_context_fastpath() 187 list_for_each_entry(cur, &lock->base.wait_list, list) { in ww_mutex_set_context_fastpath() 188 debug_mutex_wake_waiter(&lock->base, cur); in ww_mutex_set_context_fastpath() 191 spin_unlock_mutex(&lock->base.wait_lock, flags); in ww_mutex_set_context_fastpath() 319 ww = container_of(lock, struct ww_mutex, base); in mutex_optimistic_spin() 346 ww = container_of(lock, struct ww_mutex, base); in mutex_optimistic_spin() 459 mutex_clear_owner(&lock->base); in ww_mutex_unlock() 461 __mutex_fastpath_unlock(&lock->base.count, __mutex_unlock_slowpath); in ww_mutex_unlock() 468 struct ww_mutex *ww = container_of(lock, struct ww_mutex, base); in __mutex_lock_check_stamp() [all …]
|
D | lockdep.c | 1995 return lock_classes + chain_hlocks[chain->base + i]; in lock_chain_get_class() 2075 chain->base = nr_chain_hlocks; in lookup_chain_cache() 2079 chain_hlocks[chain->base + j] = lock_id; in lookup_chain_cache() 2081 chain_hlocks[chain->base + j] = class - lock_classes; in lookup_chain_cache()
|
/kernel/ |
D | groups.c | 109 int base, max, stride; in groups_sort() local 118 for (base = 0; base < max; base++) { in groups_sort() 119 int left = base; in groups_sort()
|
D | pid.c | 115 static int pid_before(int base, int a, int b) in pid_before() argument 123 return (unsigned)(a - base) < (unsigned)(b - base); in pid_before() 141 static void set_last_pid(struct pid_namespace *pid_ns, int base, int pid) in set_last_pid() argument 144 int last_write = base; in set_last_pid() 148 } while ((prev != last_write) && (pid_before(base, last_write, pid))); in set_last_pid()
|
D | futex_compat.c | 38 compat_uptr_t base = ptr_to_compat(entry); in futex_uaddr() local 39 void __user *uaddr = compat_ptr(base + futex_offset); in futex_uaddr()
|
D | module.c | 276 #define symversion(base, idx) NULL argument 278 #define symversion(base, idx) ((base != NULL) ? ((base) + (idx)) : NULL) argument 1733 static void set_section_ro_nx(void *base, in set_section_ro_nx() argument 1748 set_page_attributes(base, base + ro_size, set_memory_ro); in set_section_ro_nx() 1756 begin_pfn = PFN_UP((unsigned long)base + text_size); in set_section_ro_nx() 1757 end_pfn = PFN_UP((unsigned long)base + total_size); in set_section_ro_nx() 1829 static inline void set_section_ro_nx(void *base, unsigned long text_size, unsigned long ro_size, un… in set_section_ro_nx() argument
|
D | signal.c | 649 hrtimer_forward(tmr, tmr->base->get_time(), in dequeue_signal()
|
/kernel/events/ |
D | ring_buffer.c | 362 void *base; in rb_free_work() local 368 base = rb->user_page; in rb_free_work() 371 perf_mmap_unmark_page(base + (i * PAGE_SIZE)); in rb_free_work() 373 vfree(base); in rb_free_work()
|
/kernel/gcov/ |
D | Makefile | 27 obj-$(CONFIG_GCOV_KERNEL) := base.o fs.o
|
/kernel/power/ |
D | snapshot.c | 1423 static unsigned long __fraction(u64 x, u64 multiplier, u64 base) in __fraction() argument 1426 do_div(x, base); in __fraction()
|
/kernel/sched/ |
D | core.c | 463 time = ktime_add_ns(timer->base->get_time(), delta); in hrtick_start()
|