• Home
  • Raw
  • Download

Lines Matching refs:list

330 	struct list_head list;		/* list of buffer pages */  member
1187 static struct list_head *rb_list_head(struct list_head *list) in rb_list_head() argument
1189 unsigned long val = (unsigned long)list; in rb_list_head()
1204 struct buffer_page *page, struct list_head *list) in rb_is_head_page() argument
1208 val = (unsigned long)list->next; in rb_is_head_page()
1210 if ((val & ~RB_FLAG_MASK) != (unsigned long)&page->list) in rb_is_head_page()
1225 struct list_head *list = page->list.prev; in rb_is_reader_page() local
1227 return rb_list_head(list->next) != &page->list; in rb_is_reader_page()
1234 struct list_head *list) in rb_set_list_to_head() argument
1238 ptr = (unsigned long *)&list->next; in rb_set_list_to_head()
1257 rb_set_list_to_head(cpu_buffer, head->list.prev); in rb_head_page_activate()
1260 static void rb_list_head_clear(struct list_head *list) in rb_list_head_clear() argument
1262 unsigned long *ptr = (unsigned long *)&list->next; in rb_list_head_clear()
1287 struct list_head *list; in rb_head_page_set() local
1288 unsigned long val = (unsigned long)&head->list; in rb_head_page_set()
1291 list = &prev->list; in rb_head_page_set()
1295 ret = cmpxchg((unsigned long *)&list->next, in rb_head_page_set()
1335 struct list_head *p = rb_list_head((*bpage)->list.next); in rb_inc_page()
1337 *bpage = list_entry(p, struct buffer_page, list); in rb_inc_page()
1345 struct list_head *list; in rb_set_head_page() local
1352 list = cpu_buffer->pages; in rb_set_head_page()
1353 if (RB_WARN_ON(cpu_buffer, rb_list_head(list->prev->next) != list)) in rb_set_head_page()
1365 if (rb_is_head_page(cpu_buffer, page, page->list.prev)) { in rb_set_head_page()
1381 unsigned long *ptr = (unsigned long *)&old->list.prev->next; in rb_head_page_replace()
1388 ret = cmpxchg(ptr, val, (unsigned long)&new->list); in rb_head_page_replace()
1545 list_add(&bpage->list, pages); in __rb_allocate_pages()
1562 list_for_each_entry_safe(bpage, tmp, pages, list) { in __rb_allocate_pages()
1563 list_del_init(&bpage->list); in __rb_allocate_pages()
1635 INIT_LIST_HEAD(&cpu_buffer->reader_page->list); in rb_allocate_cpu_buffer()
1643 = list_entry(cpu_buffer->pages, struct buffer_page, list); in rb_allocate_cpu_buffer()
1670 list_for_each_entry_safe(bpage, tmp, head, list) { in rb_free_cpu_buffer()
1671 list_del_init(&bpage->list); in rb_free_cpu_buffer()
1674 bpage = list_entry(head, struct buffer_page, list); in rb_free_cpu_buffer()
1836 tail_page = &cpu_buffer->tail_page->list; in rb_remove_pages()
1848 struct buffer_page, list); in rb_remove_pages()
1875 struct buffer_page, list); in rb_remove_pages()
1885 list); in rb_remove_pages()
1950 head_page = &rb_set_head_page(cpu_buffer)->list; in rb_insert_pages()
1991 list) { in rb_insert_pages()
1992 list_del_init(&bpage->list); in rb_insert_pages()
2219 list) { in ring_buffer_resize()
2220 list_del_init(&bpage->list); in ring_buffer_resize()
2635 if (rb_is_head_page(cpu_buffer, next_page, &tail_page->list)) { in rb_move_tail()
4336 cpu_buffer->reader_page->list.next = rb_list_head(reader->list.next); in rb_get_reader_page()
4337 cpu_buffer->reader_page->list.prev = reader->list.prev; in rb_get_reader_page()
4344 cpu_buffer->pages = reader->list.prev; in rb_get_reader_page()
4347 rb_set_list_to_head(cpu_buffer, &cpu_buffer->reader_page->list); in rb_get_reader_page()
4385 rb_list_head(reader->list.next)->prev = &cpu_buffer->reader_page->list; in rb_get_reader_page()
5004 = list_entry(cpu_buffer->pages, struct buffer_page, list); in rb_reset_cpu()
5006 list_for_each_entry(page, cpu_buffer->pages, list) { in rb_reset_cpu()
5013 INIT_LIST_HEAD(&cpu_buffer->reader_page->list); in rb_reset_cpu()