Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 22 of 22) sorted by relevance

/kernel/time/
Dtimekeeping.c395 s64 *offset) in clocksource_bigadjust() argument
429 *offset = -*offset; in clocksource_bigadjust()
436 *offset <<= adj; in clocksource_bigadjust()
445 static void clocksource_adjust(s64 offset) in clocksource_adjust() argument
456 adj = clocksource_bigadjust(error, &interval, &offset); in clocksource_adjust()
462 offset = -offset; in clocksource_adjust()
464 adj = clocksource_bigadjust(error, &interval, &offset); in clocksource_adjust()
470 clock->xtime_nsec -= offset; in clocksource_adjust()
471 clock->error -= (interval - offset) << in clocksource_adjust()
482 cycle_t offset; in update_wall_time() local
[all …]
Dntp.c65 static void ntp_update_offset(long offset) in ntp_update_offset() argument
74 offset *= NSEC_PER_USEC; in ntp_update_offset()
80 offset = min(offset, MAXPHASE); in ntp_update_offset()
81 offset = max(offset, -MAXPHASE); in ntp_update_offset()
92 freq_adj = (s64)offset * mtemp; in ntp_update_offset()
96 freq_adj += div_s64((s64)offset << (NTP_SCALE_SHIFT - SHIFT_FLL), in ntp_update_offset()
104 time_offset = div_s64((s64)offset << NTP_SCALE_SHIFT, NTP_INTERVAL_FREQ); in ntp_update_offset()
314 time_adjust = txc->offset; in do_adjtimex()
317 txc->offset = save_adjust; in do_adjtimex()
390 ntp_update_offset(txc->offset); in do_adjtimex()
[all …]
Dtick-sched.c684 u64 offset; in tick_setup_sched_timer() local
694 offset = ktime_to_ns(tick_period) >> 1; in tick_setup_sched_timer()
695 do_div(offset, num_possible_cpus()); in tick_setup_sched_timer()
696 offset *= smp_processor_id(); in tick_setup_sched_timer()
697 hrtimer_add_expires_ns(&ts->sched_timer, offset); in tick_setup_sched_timer()
Dtimer_list.c125 (unsigned long long) ktime_to_ns(base->offset)); in print_base()
/kernel/
Dkallsyms.c166 unsigned long *offset) in get_symbol_pos() argument
215 if (offset) in get_symbol_pos()
216 *offset = addr - symbol_start; in get_symbol_pos()
225 unsigned long *offset) in kallsyms_lookup_size_offset() argument
229 return !!get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup_size_offset()
231 return !!module_address_lookup(addr, symbolsize, offset, NULL, namebuf); in kallsyms_lookup_size_offset()
243 unsigned long *offset, in kallsyms_lookup() argument
252 pos = get_symbol_pos(addr, symbolsize, offset); in kallsyms_lookup()
261 return module_address_lookup(addr, symbolsize, offset, modname, in kallsyms_lookup()
283 unsigned long *offset, char *modname, char *name) in lookup_symbol_attrs() argument
[all …]
Dpid.c119 int offset = nr & BITS_PER_PAGE_MASK; in free_pidmap() local
121 clear_bit(offset, map->page); in free_pidmap()
127 int i, offset, max_scan, pid, last = pid_ns->last_pid; in alloc_pidmap() local
133 offset = pid & BITS_PER_PAGE_MASK; in alloc_pidmap()
135 max_scan = (pid_max + BITS_PER_PAGE - 1)/BITS_PER_PAGE - !offset; in alloc_pidmap()
154 if (!test_and_set_bit(offset, map->page)) { in alloc_pidmap()
159 offset = find_next_offset(map, offset); in alloc_pidmap()
160 pid = mk_pid(pid_ns, map, offset); in alloc_pidmap()
167 } while (offset < BITS_PER_PAGE && pid < pid_max && in alloc_pidmap()
173 offset = 0; in alloc_pidmap()
[all …]
Drelay.c371 buf->offset = 0; in __relay_reset()
733 if (buf->offset != buf->chan->subbuf_size + 1) { in relay_switch_subbuf()
734 buf->prev_padding = buf->chan->subbuf_size - buf->offset; in relay_switch_subbuf()
759 buf->offset = 0; in relay_switch_subbuf()
761 buf->offset = buf->chan->subbuf_size + 1; in relay_switch_subbuf()
767 if (unlikely(length + buf->offset > buf->chan->subbuf_size)) in relay_switch_subbuf()
949 buf->offset == buf->bytes_consumed) in relay_file_read_consume()
964 (buf->offset == subbuf_size)) in relay_file_read_consume()
985 if (unlikely(buf->offset > subbuf_size)) { in relay_file_read_avail()
997 produced = (produced % n_subbufs) * subbuf_size + buf->offset; in relay_file_read_avail()
[all …]
Dconfigs.c59 size_t len, loff_t * offset) in ikconfig_read_current() argument
61 return simple_read_from_buffer(buf, len, offset, in ikconfig_read_current()
Dprintk.c150 unsigned start, dest_idx, offset; in log_buf_len_setup() local
163 offset = start = min(con_start, log_start); in log_buf_len_setup()
170 log_start -= offset; in log_buf_len_setup()
171 con_start -= offset; in log_buf_len_setup()
172 log_end -= offset; in log_buf_len_setup()
391 int offset = count-error; in do_syslog() local
394 if (__get_user(c,&buf[i+offset]) || in do_syslog()
Dkprobes.c644 return (kprobe_opcode_t *)(((char *)addr) + p->offset); in kprobe_addr()
1124 unsigned long offset = 0, size = 0; in init_kprobes() local
1153 &size, &offset, &modname, namebuf); in init_kprobes()
1189 const char *sym, int offset,char *modname) in report_probe() argument
1201 sym, offset, (modname ? modname : " "), in report_probe()
1233 unsigned long offset = 0; in show_kprobe_addr() local
1240 &offset, &modname, namebuf); in show_kprobe_addr()
1243 report_probe(pi, kp, sym, offset, modname); in show_kprobe_addr()
1245 report_probe(pi, p, sym, offset, modname); in show_kprobe_addr()
Dfutex.c133 key->both.offset); in hash_futex()
144 && key1->both.offset == key2->both.offset); in match_futex()
157 switch (key->both.offset & (FUT_OFF_INODE|FUT_OFF_MMSHARED)) { in get_futex_key_refs()
179 switch (key->both.offset & (FUT_OFF_INODE|FUT_OFF_MMSHARED)) { in drop_futex_key_refs()
218 key->both.offset = address % PAGE_SIZE; in get_futex_key()
221 address -= key->both.offset; in get_futex_key()
263 key->both.offset |= FUT_OFF_MMSHARED; /* reference taken on mm */ in get_futex_key()
290 key->both.offset |= FUT_OFF_MMSHARED; /* ref taken on mm */ in get_futex_key()
294 key->both.offset |= FUT_OFF_INODE; /* inode-based key */ in get_futex_key()
Dhrtimer.c503 expires = ktime_sub(hrtimer_get_expires(timer), base->offset); in hrtimer_force_reprogram()
532 ktime_t expires = ktime_sub(hrtimer_get_expires(timer), base->offset); in hrtimer_reprogram()
594 base->clock_base[CLOCK_REALTIME].offset = in retrigger_next_event()
1224 basenow = ktime_add(now, base->offset); in hrtimer_interrupt()
1248 base->offset); in hrtimer_interrupt()
Dcompat.c962 __get_user(txc.offset, &utp->offset) || in compat_sys_adjtimex()
987 __put_user(txc.offset, &utp->offset) || in compat_sys_adjtimex()
Dmodule.c2406 unsigned long *offset) in get_ksymbol() argument
2442 if (offset) in get_ksymbol()
2443 *offset = addr - mod->symtab[best].st_value; in get_ksymbol()
2451 unsigned long *offset, in module_address_lookup() argument
2464 ret = get_ksymbol(mod, addr, size, offset); in module_address_lookup()
2501 unsigned long *offset, char *modname, char *name) in lookup_module_symbol_attrs() argument
2511 sym = get_ksymbol(mod, addr, size, offset); in lookup_module_symbol_attrs()
Dlockdep_proc.c460 static void seq_line(struct seq_file *m, char c, int offset, int length) in seq_line() argument
464 for (i = 0; i < offset; i++) in seq_line()
/kernel/power/
Dswsusp.c128 unsigned long offset; in alloc_swapdev_block() local
130 offset = swp_offset(get_swap_page_of_type(swap)); in alloc_swapdev_block()
131 if (offset) { in alloc_swapdev_block()
132 if (swsusp_extents_insert(offset)) in alloc_swapdev_block()
133 swap_free(swp_entry(swap, offset)); in alloc_swapdev_block()
135 return swapdev_block(swap, offset); in alloc_swapdev_block()
152 unsigned long offset; in free_all_swap_pages() local
156 for (offset = ext->start; offset <= ext->end; offset++) in free_all_swap_pages()
157 swap_free(swp_entry(swap, offset)); in free_all_swap_pages()
Dswap.c194 static int write_page(void *buf, sector_t offset, struct bio **bio_chain) in write_page() argument
198 if (!offset) in write_page()
213 return bio_write_page(offset, src, bio_chain); in write_page()
274 sector_t offset; in swap_write_page() local
278 offset = alloc_swapdev_block(root_swap); in swap_write_page()
279 error = write_page(buf, offset, bio_chain); in swap_write_page()
282 handle->cur->entries[handle->k++] = offset; in swap_write_page()
287 offset = alloc_swapdev_block(root_swap); in swap_write_page()
288 if (!offset) in swap_write_page()
290 handle->cur->next_swap = offset; in swap_write_page()
[all …]
Duser.c159 *offp = data->handle.offset; in snapshot_read()
182 *offp = data->handle.offset; in snapshot_write()
196 sector_t offset; in snapshot_ioctl() local
298 offset = alloc_swapdev_block(data->swap); in snapshot_ioctl()
299 if (offset) { in snapshot_ioctl()
300 offset <<= PAGE_SHIFT; in snapshot_ioctl()
301 error = put_user(offset, (loff_t __user *)arg); in snapshot_ioctl()
402 offset = swap_area.offset; in snapshot_ioctl()
403 data->swap = swap_type_of(swdev, offset, NULL); in snapshot_ioctl()
Ddisk.c907 unsigned long long offset; in resume_offset_setup() local
912 if (sscanf(str, "%llu", &offset) == 1) in resume_offset_setup()
913 swsusp_resume_block = offset; in resume_offset_setup()
Dpower.h100 loff_t offset; /* number of the last byte ready for reading member
Dsnapshot.c1345 if (!handle->offset) { in snapshot_read_next()
1388 handle->offset += count; in snapshot_read_next()
1872 if (handle->offset == 0) { in snapshot_write_next()
1929 handle->offset += count; in snapshot_write_next()
/kernel/trace/
Dftrace.c1022 ftrace_regex_lseek(struct file *file, loff_t offset, int origin) in ftrace_regex_lseek() argument
1027 ret = seq_lseek(file, offset, origin); in ftrace_regex_lseek()