Home
last modified time | relevance | path

Searched refs:IO_POLL_REF_MASK (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-6.6/io_uring/
H A Dpoll.c44 #define IO_POLL_REF_MASK GENMASK(29, 0) macro
81 if (v & IO_POLL_REF_MASK) in io_poll_get_ownership_slowpath()
83 return !(atomic_fetch_inc(&req->poll_refs) & IO_POLL_REF_MASK); in io_poll_get_ownership_slowpath()
87 * If refs part of ->poll_refs (see IO_POLL_REF_MASK) is 0, it's free. We can
96 return !(atomic_fetch_inc(&req->poll_refs) & IO_POLL_REF_MASK); in io_poll_get_ownership()
270 if (WARN_ON_ONCE(!(v & IO_POLL_REF_MASK))) in io_poll_check_events()
279 if ((v & IO_POLL_REF_MASK) != 1) in io_poll_check_events()
341 } while (atomic_sub_return(v & IO_POLL_REF_MASK, &req->poll_refs) & in io_poll_check_events()
342 IO_POLL_REF_MASK); in io_poll_check_events()
/kernel/linux/linux-5.10/io_uring/
H A Dio_uring.c5355 #define IO_POLL_REF_MASK GENMASK(29, 0) macro
5373 if (v & IO_POLL_REF_MASK) in io_poll_get_ownership_slowpath()
5375 return !(atomic_fetch_inc(&req->poll_refs) & IO_POLL_REF_MASK); in io_poll_get_ownership_slowpath()
5379 * If refs part of ->poll_refs (see IO_POLL_REF_MASK) is 0, it's free. We can
5388 return !(atomic_fetch_inc(&req->poll_refs) & IO_POLL_REF_MASK); in io_poll_get_ownership()
5492 if (WARN_ON_ONCE(!(v & IO_POLL_REF_MASK))) in io_poll_check_events()
5501 if ((v & IO_POLL_REF_MASK) != 1) in io_poll_check_events()
5544 } while (atomic_sub_return(v & IO_POLL_REF_MASK, &req->poll_refs) & in io_poll_check_events()
5545 IO_POLL_REF_MASK); in io_poll_check_events()

Completed in 15 milliseconds