Lines Matching refs:dev_id
138 if (mnt->dev_id == RT_NULL in dfs_elm_mount()
139 || rt_device_open(mnt->dev_id, RT_DEVICE_OFLAG_RDWR) != RT_EOK) in dfs_elm_mount()
148 rt_device_close(mnt->dev_id); in dfs_elm_mount()
154 disk[index] = mnt->dev_id; in dfs_elm_mount()
156 if (rt_device_control(mnt->dev_id, RT_DEVICE_CTRL_BLK_GETGEOME, &geometry) == RT_EOK) in dfs_elm_mount()
161 rt_device_close(mnt->dev_id); in dfs_elm_mount()
170 rt_device_close(mnt->dev_id); in dfs_elm_mount()
188 rt_device_close(mnt->dev_id); in dfs_elm_mount()
207 rt_device_close(mnt->dev_id); in dfs_elm_mount()
223 index = get_disk(mnt->dev_id); in dfs_elm_unmount()
235 rt_device_close(mnt->dev_id); in dfs_elm_unmount()
240 int dfs_elm_mkfs(rt_device_t dev_id, const char *fs_name) in dfs_elm_mkfs() argument
257 if (dev_id == RT_NULL) in dfs_elm_mkfs()
268 index = get_disk(dev_id); in dfs_elm_mkfs()
291 disk[index] = dev_id; in dfs_elm_mkfs()
293 rt_device_open(dev_id, RT_DEVICE_OFLAG_RDWR); in dfs_elm_mkfs()
326 rt_device_close(dev_id); in dfs_elm_mkfs()
865 st->st_dev = (dev_t)(size_t)(dentry->mnt->dev_id); in dfs_elm_stat()