/third_party/NuttX/fs/vfs/ |
H A D | fs_rmdir.c | 30 #include "vnode.h" 39 static int check_target(struct Vnode *vnode, char *name) in check_target() argument 41 if (vnode == NULL) in check_target() 46 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target() 51 if (vnode->type != VNODE_TYPE_DIR) in check_target() 56 if (vnode->useCount > 0) in check_target() 61 if ((vnode->flag & VNODE_FLAG_MOUNT_ORIGIN) in check_target() 62 || (vnode->flag & VNODE_FLAG_MOUNT_NEW)) in check_target() 73 if (ret == OK && (cwdnode == vnode)) in check_target() 93 struct Vnode *vnode = NULL; do_rmdir() local [all...] |
H A D | fs_unlink.c | 31 #include "vnode.h" 38 static int check_target(struct Vnode *vnode) in check_target() argument 40 if (vnode->type == VNODE_TYPE_DIR) in check_target() 45 if ((vnode->originMount) && (vnode->originMount->mountFlags & MS_RDONLY)) in check_target() 50 if (vnode->useCount > 0) in check_target() 55 if (VfsVnodePermissionCheck(vnode->parent, (WRITE_OP | EXEC_OP))) in check_target() 74 struct Vnode *vnode = NULL; in do_unlink() local 99 ret = VnodeLookup(fullpath, &vnode, 0); in do_unlink() 105 ret = check_target(vnode); in do_unlink() [all...] |
H A D | fs_open.c | 36 #include "vnode.h" 150 struct Vnode *vnode = NULL; in fp_open() local 155 ret = follow_symlink(dirfd, path, &vnode, &fullpath); in fp_open() 159 if (vnode->type == VNODE_TYPE_BCHR) in fp_open() 166 if (vnode->type == VNODE_TYPE_CHR) in fp_open() 168 if (OsDevLimitCheckPermission(vnode->type, fullpath, oflags) != LOS_OK) in fp_open() 177 if (vnode->type == VNODE_TYPE_BLK) in fp_open() 187 if (OsDevLimitCheckPermission(vnode->type, fullpath, oflags) != LOS_OK) in fp_open() 196 if ((vnode->originMount) && (vnode in fp_open() [all...] |
H A D | fs_readlink.c | 33 #include "vnode.h"
37 struct Vnode *vnode = NULL;
in do_readlink() local 60 ret = VnodeLookup(fullpath, &vnode, 0);
in do_readlink() 66 if (vnode->type != VNODE_TYPE_LNK && vnode->type != VNODE_TYPE_VIR_LNK)
in do_readlink() 68 if (vnode->type != VNODE_TYPE_LNK)
in do_readlink() 75 if (!vnode->vop || !vnode->vop->Readlink)
in do_readlink() 81 ret = vnode->vop->Readlink(vnode, bu in do_readlink() [all...] |
H A D | fs_truncate64.c | 51 #include "vnode.h" 65 struct Vnode *vnode = NULL; in file_truncate64() local 76 /* Is this vnode a registered mountpoint? Does it support the in file_truncate64() 81 vnode = filep->f_vnode; in file_truncate64() 82 if (!vnode || !vnode->vop || !vnode->vop->Truncate64) in file_truncate64() 92 err = vnode->vop->Truncate64(vnode, length); in file_truncate64()
|
H A D | fs_truncate.c | 33 #include "vnode.h" 46 struct Vnode *vnode = NULL; in file_truncate() local 58 /* Is this vnode a registered mountpoint? Does it support the in file_truncate() 63 vnode = filep->f_vnode; in file_truncate() 64 if (!vnode || !vnode->vop || !vnode->vop->Truncate) in file_truncate() 74 ret = vnode->vop->Truncate(vnode, length); in file_truncate()
|
H A D | fs_statfs.c | 30 #include "vnode.h" 58 struct Vnode *vnode = NULL; in statfs() local 73 /* Get an vnode for this file */ in statfs() 75 ret = VnodeLookup(path, &vnode, 0); in statfs() 81 vnode->useCount++; in statfs() 84 mnt = vnode->originMount; in statfs() 100 vnode->useCount--; in statfs() 109 vnode->useCount--; in statfs()
|
H A D | fs_mkdir.c | 30 #include "vnode.h" 41 struct Vnode *vnode = NULL; in do_mkdir() local 76 ret = VnodeLookup(fullpath, &vnode, V_DUMMY|V_CREATE); in do_mkdir() 81 vnode->mode = mode | S_IFDIR; in do_mkdir() 82 vnode->type = VNODE_TYPE_DIR; in do_mkdir() 119 ret = parentVnode->vop->Mkdir(parentVnode, dirname, mode, &vnode); in do_mkdir() 131 struct PathCache *dt = PathCacheAlloc(parentVnode, vnode, dirname, strlen(dirname)); in do_mkdir() 136 vnode->filePath = strdup(fullpath); in do_mkdir()
|
H A D | fs_lseek64.c | 50 #include "vnode.h" 78 struct Vnode *vnode = NULL; in file_seek64() local 83 vnode = filep->f_vnode; in file_seek64() 85 if (vnode == NULL) in file_seek64()
|
H A D | fs_lseek.c | 32 #include "vnode.h" 60 struct Vnode *vnode; in file_seek() local 64 vnode = filep->f_vnode; in file_seek() 66 if (!vnode) in file_seek()
|
/third_party/NuttX/fs/dirent/ |
H A D | fs_seekdir.c | 30 #include "vnode.h" 41 struct Vnode *vnode; in seekmountptdir() local 50 vnode = idir->fd_root; in seekmountptdir() 53 if (vnode->vop != NULL && vnode->vop->Rewinddir != NULL) in seekmountptdir() 57 vnode->vop->Rewinddir(vnode, idir); in seekmountptdir() 82 if (!vnode->vop || !vnode->vop->Readdir || in seekmountptdir() 83 vnode in seekmountptdir() [all...] |
H A D | fs_closedir.c | 30 #include "vnode.h" 56 struct Vnode *vnode = NULL; in closedir() local 69 /* This is the 'root' vnode of the directory. This means different in closedir() 72 vnode = idir->fd_root; in closedir() 74 if (vnode->vop && vnode->vop->Closedir) in closedir() 76 ret = vnode->vop->Closedir(vnode, idir); in closedir() 88 vnode->useCount--; in closedir()
|
/third_party/NuttX/drivers/bch/ |
H A D | bchdev_driver.c | 55 static int bch_unlink(struct Vnode *vnode); 86 struct Vnode *vnode = filep->f_vnode; in bch_open() local 90 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_open() 117 struct Vnode *vnode = filep->f_vnode; in bch_close() local 121 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_close() 176 struct Vnode *vnode = filep->f_vnode; in bch_seek() local 181 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_seek() 240 struct Vnode *vnode = filep->f_vnode; in bch_read() local 244 bch = (struct bchlib_s *)((struct drv_data *)vnode->data)->priv; in bch_read() 263 struct Vnode *vnode in bch_write() local 294 struct Vnode *vnode = filep->f_vnode; bch_ioctl() local 381 bch_unlink(struct Vnode *vnode) bch_unlink() argument [all...] |
H A D | bchlib_setup.c | 67 ret = open_blockdriver(blkdev, readonly ? MS_RDONLY : 0, &bch->vnode); in bchlib_setup() 74 struct drv_data *drv = (struct drv_data *)bch->vnode->data; in bchlib_setup() 77 DEBUGASSERT(bch->vnode && bops && bops->geometry); in bchlib_setup() 79 ret = bops->geometry(bch->vnode, &geo); in bchlib_setup() 110 part = los_part_find(bch->vnode); in bchlib_setup()
|
/third_party/NuttX/fs/vfs/include/ |
H A D | driver.h | 44 #include "vnode.h" 72 int (*open)(struct Vnode *vnode); 73 int (*close)(struct Vnode *vnode); 74 ssize_t (*read)(struct Vnode *vnode, unsigned char *buffer, 76 ssize_t (*write)(struct Vnode *vnode, const unsigned char *buffer, 78 int (*geometry)(struct Vnode *vnode, struct geometry *geometry); 79 int (*ioctl)(struct Vnode *vnode, int cmd, unsigned long arg); 80 int (*unlink)(struct Vnode *vnode); 94 * Register a character driver vnode the pseudo file system. 97 * path - The path to the vnode t [all...] |
/third_party/NuttX/fs/driver/ |
H A D | fs_registerdriver.c | 29 #include "vnode.h" 42 * Register a character driver vnode the pseudo file system. 45 * path - The path to the vnode to create 48 * priv - Private, user data that will be associated with the vnode. 51 * Zero on success (with the vnode point in 'vnode'); A negated errno 56 * EEXIST - An vnode already exists at 'path' 64 struct Vnode *vnode = NULL; in register_driver() local 73 ret = VnodeLookup(path, &vnode, 0); in register_driver() 80 /* Insert a dummy node -- we need to hold the vnode semaphor in register_driver() [all...] |
H A D | fs_unregisterdriver.c | 27 #include "vnode.h" 39 * Remove the character driver vnode at 'path' from the pseudo-file system 45 struct Vnode *vnode = NULL; in unregister_driver() local 52 ret = VnodeLookup(path, &vnode, V_DUMMY); in unregister_driver() 58 if (vnode->type != VNODE_TYPE_CHR && vnode->type != VNODE_TYPE_BLK) in unregister_driver() 63 ret = VnodeFree(vnode); in unregister_driver()
|
H A D | fs_blockproxy.c | 155 struct Vnode *vnode = NULL; in block_proxy() local 206 vnode = filep->f_vnode; in block_proxy() 208 vnode->type = VNODE_TYPE_BCHR; in block_proxy()
|
/third_party/NuttX/drivers/pipes/ |
H A D | pipe.c | 133 struct Vnode *vnode = filep->f_vnode; in pipe_close() local 134 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipe_close() 145 if (ret == 0 && vnode->useCount <= 1) in pipe_close() 160 int pipe_unlink(struct Vnode *vnode) in pipe_unlink() argument 162 struct pipe_dev_s *dev = ((struct drv_data *)vnode->data)->priv; in pipe_unlink() 171 ret = pipecommon_unlink(vnode); in pipe_unlink() 192 * pipe() creates a pair of file descriptors, pointing to a pipe vnode, 214 struct Vnode *vnode = NULL; in UpdateDev() local 219 ret = VnodeLookup(dev->name, &vnode, 0); in UpdateDev() 226 data = (struct drv_data *)vnode in UpdateDev() [all...] |
H A D | pipe_common.c | 171 struct Vnode *vnode = filep->f_vnode; in pipecommon_open() local 172 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipecommon_open() 197 if (vnode->useCount == 1 && dev->d_buffer == NULL) in pipecommon_open() 269 vnode->useCount++; in pipecommon_open() 280 struct Vnode *vnode = filep->f_vnode; in pipecommon_close() local 281 struct pipe_dev_s *dev = (struct pipe_dev_s *)((struct drv_data *)vnode->data)->priv; in pipecommon_close() 300 /* Check if the decremented vnode reference count would go to zero */ in pipecommon_close() 302 if (vnode->useCount > 1) in pipecommon_close() 366 vnode->useCount--; in pipecommon_close() 378 struct Vnode *vnode in pipecommon_read() local 539 struct Vnode *vnode = filep->f_vnode; pipecommon_write() local 700 struct Vnode *vnode = filep->f_vnode; pipecommon_poll() local 785 pipecommon_unlink(struct Vnode *vnode) pipecommon_unlink() argument [all...] |
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/ |
H A D | dev.h | 390 struct rkcif_luma_node vnode;
member 492 struct rkcif_vdev_node vnode;
member 573 static inline struct rkcif_stream *to_rkcif_stream(struct rkcif_vdev_node *vnode)
in to_rkcif_stream() argument 575 return container_of(vnode, struct rkcif_stream, vnode);
in to_rkcif_stream() 585 struct rkcif_vdev_node *vnode = video_drvdata(file);
in to_vb2_queue() local 587 return &vnode->buf_queue;
in to_vb2_queue() 661 struct rkcif_vdev_node vnode;
member 681 static inline struct rkcif_scale_vdev *to_rkcif_scale_vdev(struct rkcif_vdev_node *vnode)
in to_rkcif_scale_vdev() argument 683 return container_of(vnode, struc in to_rkcif_scale_vdev() [all...] |
H A D | cif-luma.c | 89 ret = v4l2_pipeline_pm_get(¶ms->vnode.vdev.entity); in rkcif_luma_fh_open() 105 v4l2_pipeline_pm_put(&luma->vnode.vdev.entity); in rkcif_luma_fop_release() 206 q->lock = &luma_vdev->vnode.vlock; in rkcif_luma_init_vb2_queue() 228 v4l2_warn(vdev->vnode.vdev.v4l2_dev, "no luma buffer available\n"); in rkcif_stats_send_luma() 234 v4l2_err(vdev->vnode.vdev.v4l2_dev, "cur_stat_buf is NULL\n"); in rkcif_stats_send_luma() 362 v4l2_err(luma_vdev->vnode.vdev.v4l2_dev, "stats kfifo is full\n"); in rkcif_luma_isr() 428 struct rkcif_luma_node *node = &luma_vdev->vnode; in rkcif_register_luma_vdev() 486 struct rkcif_luma_node *node = &luma_vdev->vnode; in rkcif_unregister_luma_vdev()
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/ |
H A D | isp_mipi_luma.c | 84 ret = v4l2_pipeline_pm_get(¶ms->vnode.vdev.entity); in rkisp_luma_fh_open() 100 v4l2_pipeline_pm_put(&luma->vnode.vdev.entity); in rkisp_luma_fop_release() 224 v4l2_warn(vdev->vnode.vdev.v4l2_dev, "no luma buffer available\n"); in rkisp_stats_send_luma() 230 v4l2_err(vdev->vnode.vdev.v4l2_dev, "cur_stat_buf is NULL\n"); in rkisp_stats_send_luma() 309 v4l2_dbg(1, rkisp_debug, luma_vdev->vnode.vdev.v4l2_dev, "missing raw0 y state isr, %d\n", in rkisp_luma_isr() 316 v4l2_dbg(1, rkisp_debug, luma_vdev->vnode.vdev.v4l2_dev, "missing raw1 y state isr, %d\n", in rkisp_luma_isr() 323 v4l2_dbg(1, rkisp_debug, luma_vdev->vnode.vdev.v4l2_dev, "missing raw2 y state isr, %d\n", in rkisp_luma_isr() 394 v4l2_err(luma_vdev->vnode.vdev.v4l2_dev, "stats kfifo is full\n"); in rkisp_luma_isr() 420 struct rkisp_vdev_node *node = &luma_vdev->vnode; in rkisp_register_luma_vdev() 460 sink = &luma_vdev->vnode in rkisp_register_luma_vdev() [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/ |
H A D | dev.h | 451 struct rkcif_vdev_node vnode; member 534 struct rkcif_stream *to_rkcif_stream(struct rkcif_vdev_node *vnode) in to_rkcif_stream() argument 536 return container_of(vnode, struct rkcif_stream, vnode); in to_rkcif_stream() 546 struct rkcif_vdev_node *vnode = video_drvdata(file); in to_vb2_queue() local 548 return &vnode->buf_queue; in to_vb2_queue() 622 struct rkcif_vdev_node vnode; member 643 struct rkcif_scale_vdev *to_rkcif_scale_vdev(struct rkcif_vdev_node *vnode) in to_rkcif_scale_vdev() argument 645 return container_of(vnode, struct rkcif_scale_vdev, vnode); in to_rkcif_scale_vdev() [all...] |
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/ |
H A D | dev.c | 138 source = &stream->vnode.vdev.entity; in rkispp_create_links() 146 source = &ispp_dev->params_vdev.vnode.vdev.entity; in rkispp_create_links() 156 sink = &ispp_dev->stats_vdev.vnode.vdev.entity; in rkispp_create_links() 165 sink = &stream->vnode.vdev.entity; in rkispp_create_links() 173 sink = &stream->vnode.vdev.entity; in rkispp_create_links() 181 sink = &stream->vnode.vdev.entity; in rkispp_create_links() 194 sink = &stream->vnode.vdev.entity; in rkispp_create_links() 202 sink = &stream->vnode.vdev.entity; in rkispp_create_links()
|