Lines Matching refs:idx
488 static struct printk_log *log_from_idx(u32 idx) in log_from_idx() argument
490 struct printk_log *msg = (struct printk_log *)(log_buf + idx); in log_from_idx()
502 static u32 log_next(u32 idx) in log_next() argument
504 struct printk_log *msg = (struct printk_log *)(log_buf + idx); in log_next()
516 return idx + msg->len; in log_next()
786 u32 idx; member
901 user->idx = log_first_idx; in devkmsg_read()
908 msg = log_from_idx(user->idx); in devkmsg_read()
915 user->idx = log_next(user->idx); in devkmsg_read()
948 user->idx = log_first_idx; in devkmsg_llseek()
957 user->idx = clear_idx; in devkmsg_llseek()
962 user->idx = log_next_idx; in devkmsg_llseek()
1021 user->idx = log_first_idx; in devkmsg_open()
1425 u32 idx; in syslog_print_all() local
1439 idx = clear_idx; in syslog_print_all()
1441 struct printk_log *msg = log_from_idx(idx); in syslog_print_all()
1444 idx = log_next(idx); in syslog_print_all()
1450 idx = clear_idx; in syslog_print_all()
1452 struct printk_log *msg = log_from_idx(idx); in syslog_print_all()
1455 idx = log_next(idx); in syslog_print_all()
1464 struct printk_log *msg = log_from_idx(idx); in syslog_print_all()
1468 idx = log_next(idx); in syslog_print_all()
1481 idx = log_first_idx; in syslog_print_all()
1590 u32 idx = syslog_idx; in do_syslog() local
1594 struct printk_log *msg = log_from_idx(idx); in do_syslog()
1599 idx = log_next(idx); in do_syslog()
2079 static struct printk_log *log_from_idx(u32 idx) { return NULL; } in log_from_idx() argument
2080 static u32 log_next(u32 idx) { return 0; } in log_next() argument
2117 static int __add_preferred_console(char *name, int idx, char *options, in __add_preferred_console() argument
2130 if (strcmp(c->name, name) == 0 && c->index == idx) { in __add_preferred_console()
2144 c->index = idx; in __add_preferred_console()
2166 int idx; in console_setup() local
2193 idx = simple_strtoul(s, NULL, 10); in console_setup()
2196 __add_preferred_console(buf, idx, options, brl_options); in console_setup()
2215 int add_preferred_console(char *name, int idx, char *options) in add_preferred_console() argument
2217 return __add_preferred_console(name, idx, options, NULL); in add_preferred_console()
3250 u32 idx; in kmsg_dump_get_buffer() local
3275 idx = dumper->cur_idx; in kmsg_dump_get_buffer()
3277 struct printk_log *msg = log_from_idx(idx); in kmsg_dump_get_buffer()
3280 idx = log_next(idx); in kmsg_dump_get_buffer()
3286 idx = dumper->cur_idx; in kmsg_dump_get_buffer()
3288 struct printk_log *msg = log_from_idx(idx); in kmsg_dump_get_buffer()
3291 idx = log_next(idx); in kmsg_dump_get_buffer()
3297 next_idx = idx; in kmsg_dump_get_buffer()
3301 struct printk_log *msg = log_from_idx(idx); in kmsg_dump_get_buffer()
3304 idx = log_next(idx); in kmsg_dump_get_buffer()