Lines Matching refs:obj

28 static ssize_t zvfs_eventfd_rw_op(void *obj, void *buf, size_t sz,
61 (*pev)->obj = &efd->read_sig; in zvfs_eventfd_poll_prepare()
74 (*pev)->obj = &efd->write_sig; in zvfs_eventfd_poll_prepare()
162 static ssize_t zvfs_eventfd_read_op(void *obj, void *buf, size_t sz) in zvfs_eventfd_read_op() argument
164 return zvfs_eventfd_rw_op(obj, buf, sz, zvfs_eventfd_read_locked); in zvfs_eventfd_read_op()
167 static ssize_t zvfs_eventfd_write_op(void *obj, const void *buf, size_t sz) in zvfs_eventfd_write_op() argument
169 return zvfs_eventfd_rw_op(obj, (zvfs_eventfd_t *)buf, sz, zvfs_eventfd_write_locked); in zvfs_eventfd_write_op()
172 static int zvfs_eventfd_close_op(void *obj) in zvfs_eventfd_close_op() argument
179 struct zvfs_eventfd *efd = (struct zvfs_eventfd *)obj; in zvfs_eventfd_close_op()
187 err = (int)zvfs_get_obj_lock_and_cond(obj, &zvfs_eventfd_fd_vtable, &lock, &cond); in zvfs_eventfd_close_op()
203 err = sys_bitarray_free(&efds_bitarray, 1, (struct zvfs_eventfd *)obj - efds); in zvfs_eventfd_close_op()
222 static int zvfs_eventfd_ioctl_op(void *obj, unsigned int request, va_list args) in zvfs_eventfd_ioctl_op() argument
226 struct zvfs_eventfd *efd = (struct zvfs_eventfd *)obj; in zvfs_eventfd_ioctl_op()
267 ret = zvfs_eventfd_poll_prepare(obj, pfd, pev, pev_end); in zvfs_eventfd_ioctl_op()
277 ret = zvfs_eventfd_poll_update(obj, pfd, pev); in zvfs_eventfd_ioctl_op()
300 static ssize_t zvfs_eventfd_rw_op(void *obj, void *buf, size_t sz, in zvfs_eventfd_rw_op() argument
306 struct zvfs_eventfd *efd = obj; in zvfs_eventfd_rw_op()
349 err = (int)zvfs_get_obj_lock_and_cond(obj, &zvfs_eventfd_fd_vtable, &lock, &cond); in zvfs_eventfd_rw_op()
452 void *obj; in zvfs_eventfd_read() local
454 obj = zvfs_get_fd_obj(fd, &zvfs_eventfd_fd_vtable, EBADF); in zvfs_eventfd_read()
455 if (obj == NULL) { in zvfs_eventfd_read()
459 ret = zvfs_eventfd_rw_op(obj, value, sizeof(zvfs_eventfd_t), zvfs_eventfd_read_locked); in zvfs_eventfd_read()
471 void *obj; in zvfs_eventfd_write() local
473 obj = zvfs_get_fd_obj(fd, &zvfs_eventfd_fd_vtable, EBADF); in zvfs_eventfd_write()
474 if (obj == NULL) { in zvfs_eventfd_write()
478 ret = zvfs_eventfd_rw_op(obj, &value, sizeof(zvfs_eventfd_t), zvfs_eventfd_write_locked); in zvfs_eventfd_write()