Lines Matching refs:head
214 INIT_LIST_HEAD(&queue_array[i].head);
251 list_splice_tail(&queues->queue_array[i].head,
252 &queue_array[i].head);
310 list_add_tail(&buffer->list, &queue->head);
456 while (!list_empty(&queues->queue_array[i].head)) {
459 buffer = list_entry(queues->queue_array[i].head.next,
601 unsigned char *data, u64 *head, u64 *old)
604 return itr->find_snapshot(itr, idx, mm, data, head, old);
830 static int auxtrace_index__alloc(struct list_head *head)
841 list_add_tail(&auxtrace_index->list, head);
846 void auxtrace_index__free(struct list_head *head)
850 list_for_each_entry_safe(auxtrace_index, n, head, list) {
856 static struct auxtrace_index *auxtrace_index__last(struct list_head *head)
861 if (list_empty(head)) {
862 err = auxtrace_index__alloc(head);
867 auxtrace_index = list_entry(head->prev, struct auxtrace_index, list);
870 err = auxtrace_index__alloc(head);
873 auxtrace_index = list_entry(head->prev, struct auxtrace_index,
880 int auxtrace_index__auxtrace_event(struct list_head *head,
886 auxtrace_index = auxtrace_index__last(head);
913 int auxtrace_index__write(int fd, struct list_head *head)
919 list_for_each_entry(auxtrace_index, head, list)
925 list_for_each_entry(auxtrace_index, head, list) {
934 static int auxtrace_index__process_entry(int fd, struct list_head *head,
944 auxtrace_index = auxtrace_index__last(head);
966 struct list_head *head = &session->auxtrace_index;
981 err = auxtrace_index__process_entry(fd, head, needs_swap);
1025 if (list_is_last(&buffer->list, &queue->head))
1030 if (list_empty(&queue->head))
1032 return list_entry(queue->head.next, struct auxtrace_buffer,
1769 * the AUX head or tail is bigger than 4GB (more than 32 bits length); and we
1772 * at the end the head and tail can be bigger than 4GB and carry out to the
1779 * For reading the AUX head, it reads out the values for three times, and
1797 /* Ensure all reads are done after we read the head */
1800 /* Ensure all reads are done after we read the head */
1828 u64 head, old = mm->prev, offset, ref;
1835 head = auxtrace_mmap__read_head(mm, kernel_is_64_bit);
1838 auxtrace_record__find_snapshot(itr, mm->idx, mm, data, &head, &old))
1841 if (old == head)
1844 pr_debug3("auxtrace idx %d old %#"PRIx64" head %#"PRIx64" diff %#"PRIx64"\n",
1845 mm->idx, old, head, head - old);
1848 head_off = head & mm->mask;
1851 head_off = head % mm->len;
1865 if (head > old || size <= head || mm->mask) {
1866 offset = head - size;
1869 * When the buffer size is not a power of 2, 'head' wraps at the
1875 offset = head - size - rem;
1915 mm->prev = head;
1920 err = auxtrace_mmap__write_tail(mm, head, kernel_is_64_bit);
2126 list_add_tail(&filt->list, &filts->head);
2139 INIT_LIST_HEAD(&filts->head);
2147 list_for_each_entry_safe(filt, n, &filts->head, list) {
2755 list_for_each_entry(filt, &filts.head, list) {