Lines Matching refs:obj

31 	void *obj;  member
104 fdtable[fd].obj = NULL; in z_fd_unref()
180 return entry->obj; in zvfs_get_fd_obj()
183 static int z_get_fd_by_obj_and_vtable(void *obj, const struct fd_op_vtable *vtable) in z_get_fd_by_obj_and_vtable() argument
188 if (fdtable[fd].obj == obj && fdtable[fd].vtable == vtable) { in z_get_fd_by_obj_and_vtable()
197 bool zvfs_get_obj_lock_and_cond(void *obj, const struct fd_op_vtable *vtable, struct k_mutex **lock, in zvfs_get_obj_lock_and_cond() argument
203 fd = z_get_fd_by_obj_and_vtable(obj, vtable); in zvfs_get_obj_lock_and_cond()
237 return entry->obj; in zvfs_get_fd_obj_and_vtable()
250 fdtable[fd].obj = NULL; in zvfs_reserve_fd()
261 void zvfs_finalize_typed_fd(int fd, void *obj, const struct fd_op_vtable *vtable, uint32_t mode) in zvfs_finalize_typed_fd() argument
272 k_object_recycle(obj); in zvfs_finalize_typed_fd()
274 fdtable[fd].obj = obj; in zvfs_finalize_typed_fd()
283 (void)zvfs_fdtable_call_ioctl(vtable, obj, ZFD_IOCTL_SET_LOCK, in zvfs_finalize_typed_fd()
294 int zvfs_alloc_fd(void *obj, const struct fd_op_vtable *vtable) in zvfs_alloc_fd() argument
300 zvfs_finalize_fd(fd, obj, vtable); in zvfs_alloc_fd()
347 res = fdtable[fd].vtable->write_offs(fdtable[fd].obj, buf, sz, *off); in zvfs_rw()
354 res = fdtable[fd].vtable->read_offs(fdtable[fd].obj, buf, sz, *off); in zvfs_rw()
396 res = fdtable[fd].vtable->close2(fdtable[fd].obj, fd); in zvfs_close()
398 res = fdtable[fd].vtable->close(fdtable[fd].obj); in zvfs_close()
435 return zvfs_fdtable_call_ioctl(fdtable[fd].vtable, fdtable[fd].obj, ZFD_IOCTL_STAT, buf); in zvfs_fstat()
444 return zvfs_fdtable_call_ioctl(fdtable[fd].vtable, fdtable[fd].obj, ZFD_IOCTL_FSYNC); in zvfs_fsync()
456 res = fdtable[fd].vtable->ioctl(fdtable[fd].obj, cmd, args); in zvfs_lseek_wrap()
493 res = fdtable[fd].vtable->ioctl(fdtable[fd].obj, cmd, args); in zvfs_fcntl()
507 res = fdtable[fd].vtable->ioctl(fdtable[fd].obj, cmd, args); in zvfs_ftruncate_wrap()
529 return fdtable[fd].vtable->ioctl(fdtable[fd].obj, request, args); in zvfs_ioctl()
540 static ssize_t stdinout_read_vmeth(void *obj, void *buffer, size_t count) in stdinout_read_vmeth() argument
545 static ssize_t stdinout_write_vmeth(void *obj, const void *buffer, size_t count) in stdinout_write_vmeth() argument
556 static int stdinout_ioctl_vmeth(void *obj, unsigned int request, va_list args) in stdinout_ioctl_vmeth() argument