Lines Matching refs:ucnt
218 __u64 ucnt = 0; in eventfd_read() local
220 if (iov_iter_count(to) < sizeof(ucnt)) in eventfd_read()
235 eventfd_ctx_do_read(ctx, &ucnt); in eventfd_read()
241 if (unlikely(copy_to_iter(&ucnt, sizeof(ucnt), to) != sizeof(ucnt))) in eventfd_read()
244 return sizeof(ucnt); in eventfd_read()
252 __u64 ucnt; in eventfd_write() local
254 if (count != sizeof(ucnt)) in eventfd_write()
256 if (copy_from_user(&ucnt, buf, sizeof(ucnt))) in eventfd_write()
258 if (ucnt == ULLONG_MAX) in eventfd_write()
262 if (ULLONG_MAX - ctx->count > ucnt) in eventfd_write()
263 res = sizeof(ucnt); in eventfd_write()
266 ULLONG_MAX - ctx->count > ucnt); in eventfd_write()
268 res = sizeof(ucnt); in eventfd_write()
271 ctx->count += ucnt; in eventfd_write()