Lines Matching refs:ucnt
209 __u64 ucnt = 0; in eventfd_read() local
212 if (count < sizeof(ucnt)) in eventfd_read()
218 res = sizeof(ucnt); in eventfd_read()
224 res = sizeof(ucnt); in eventfd_read()
239 eventfd_ctx_do_read(ctx, &ucnt); in eventfd_read()
245 if (res > 0 && put_user(ucnt, (__u64 __user *)buf)) in eventfd_read()
256 __u64 ucnt; in eventfd_write() local
259 if (count < sizeof(ucnt)) in eventfd_write()
261 if (copy_from_user(&ucnt, buf, sizeof(ucnt))) in eventfd_write()
263 if (ucnt == ULLONG_MAX) in eventfd_write()
267 if (ULLONG_MAX - ctx->count > ucnt) in eventfd_write()
268 res = sizeof(ucnt); in eventfd_write()
273 if (ULLONG_MAX - ctx->count > ucnt) { in eventfd_write()
274 res = sizeof(ucnt); in eventfd_write()
289 ctx->count += ucnt; in eventfd_write()