Lines Matching refs:uwq

112 	struct userfaultfd_wait_queue *uwq;  in userfaultfd_wake_function()  local
115 uwq = container_of(wq, struct userfaultfd_wait_queue, wq); in userfaultfd_wake_function()
120 if (len && (start > uwq->msg.arg.pagefault.address || in userfaultfd_wake_function()
121 start + len <= uwq->msg.arg.pagefault.address)) in userfaultfd_wake_function()
123 WRITE_ONCE(uwq->waken, true); in userfaultfd_wake_function()
368 struct userfaultfd_wait_queue uwq; in handle_userfault() local
463 init_waitqueue_func_entry(&uwq.wq, userfaultfd_wake_function); in handle_userfault()
464 uwq.wq.private = current; in handle_userfault()
465 uwq.msg = userfault_msg(vmf->address, vmf->real_address, vmf->flags, in handle_userfault()
467 uwq.ctx = ctx; in handle_userfault()
468 uwq.waken = false; in handle_userfault()
486 __add_wait_queue(&ctx->fault_pending_wqh, &uwq.wq); in handle_userfault()
523 if (!list_empty_careful(&uwq.wq.entry)) { in handle_userfault()
529 list_del(&uwq.wq.entry); in handle_userfault()
890 struct userfaultfd_wait_queue *uwq; in find_userfault_in() local
894 uwq = NULL; in find_userfault_in()
899 uwq = container_of(wq, struct userfaultfd_wait_queue, wq); in find_userfault_in()
901 return uwq; in find_userfault_in()
975 struct userfaultfd_wait_queue *uwq; in userfaultfd_ctx_read() local
992 uwq = find_userfault(ctx); in userfaultfd_ctx_read()
993 if (uwq) { in userfaultfd_ctx_read()
1024 list_del(&uwq->wq.entry); in userfaultfd_ctx_read()
1025 add_wait_queue(&ctx->fault_wqh, &uwq->wq); in userfaultfd_ctx_read()
1030 *msg = uwq->msg; in userfaultfd_ctx_read()
1038 uwq = find_userfault_evt(ctx); in userfaultfd_ctx_read()
1039 if (uwq) { in userfaultfd_ctx_read()
1040 *msg = uwq->msg; in userfaultfd_ctx_read()
1042 if (uwq->msg.event == UFFD_EVENT_FORK) { in userfaultfd_ctx_read()
1045 uwq->msg.arg.reserved.reserved1; in userfaultfd_ctx_read()
1046 list_move(&uwq->wq.entry, &fork_event); in userfaultfd_ctx_read()
1058 userfaultfd_event_complete(ctx, uwq); in userfaultfd_ctx_read()
1091 uwq = list_first_entry(&fork_event, in userfaultfd_ctx_read()
1092 typeof(*uwq), in userfaultfd_ctx_read()
1104 list_del(&uwq->wq.entry); in userfaultfd_ctx_read()
1105 __add_wait_queue(&ctx->event_wqh, &uwq->wq); in userfaultfd_ctx_read()
1113 userfaultfd_event_complete(ctx, uwq); in userfaultfd_ctx_read()