Lines Matching refs:work
41 static void update_pages_handler(struct work_struct *work);
376 struct irq_work work; member
876 static void rb_wake_up_waiters(struct irq_work *work) in rb_wake_up_waiters() argument
878 struct rb_irq_work *rbwork = container_of(work, struct rb_irq_work, work); in rb_wake_up_waiters()
928 irq_work_queue(&rbwork->work); in ring_buffer_wake_waiters()
945 struct rb_irq_work *work; in ring_buffer_wait() local
955 work = &buffer->irq_work; in ring_buffer_wait()
962 work = &cpu_buffer->irq_work; in ring_buffer_wait()
965 wait_index = READ_ONCE(work->wait_index); in ring_buffer_wait()
969 prepare_to_wait(&work->full_waiters, &wait, TASK_INTERRUPTIBLE); in ring_buffer_wait()
971 prepare_to_wait(&work->waiters, &wait, TASK_INTERRUPTIBLE); in ring_buffer_wait()
994 work->full_waiters_pending = true; in ring_buffer_wait()
996 work->waiters_pending = true; in ring_buffer_wait()
1031 if (wait_index != work->wait_index) in ring_buffer_wait()
1036 finish_wait(&work->full_waiters, &wait); in ring_buffer_wait()
1038 finish_wait(&work->waiters, &wait); in ring_buffer_wait()
1062 struct rb_irq_work *work; in ring_buffer_poll_wait() local
1065 work = &buffer->irq_work; in ring_buffer_poll_wait()
1072 work = &cpu_buffer->irq_work; in ring_buffer_poll_wait()
1076 poll_wait(filp, &work->full_waiters, poll_table); in ring_buffer_poll_wait()
1077 work->full_waiters_pending = true; in ring_buffer_poll_wait()
1082 poll_wait(filp, &work->waiters, poll_table); in ring_buffer_poll_wait()
1083 work->waiters_pending = true; in ring_buffer_poll_wait()
1675 init_irq_work(&cpu_buffer->irq_work.work, rb_wake_up_waiters); in rb_allocate_cpu_buffer()
1721 irq_work_sync(&cpu_buffer->irq_work.work); in rb_free_cpu_buffer()
1775 init_irq_work(&buffer->irq_work.work, rb_wake_up_waiters); in __ring_buffer_alloc()
1853 irq_work_sync(&buffer->irq_work.work); in ring_buffer_free()
2097 static void update_pages_handler(struct work_struct *work) in update_pages_handler() argument
2099 struct ring_buffer_per_cpu *cpu_buffer = container_of(work, in update_pages_handler()
3127 irq_work_queue(&buffer->irq_work.work); in rb_wakeups()
3133 irq_work_queue(&cpu_buffer->irq_work.work); in rb_wakeups()
3153 irq_work_queue(&cpu_buffer->irq_work.work); in rb_wakeups()