Lines Matching refs:root_dirent
121 struct device_dirent *root_dirent; in dfs_device_fs_close() local
123 root_dirent = (struct device_dirent *)file->vnode->data; in dfs_device_fs_close()
124 RT_ASSERT(root_dirent != RT_NULL); in dfs_device_fs_close()
127 rt_free(root_dirent); in dfs_device_fs_close()
165 struct device_dirent *root_dirent; in dfs_device_fs_open() local
180 root_dirent = (struct device_dirent *)rt_malloc(sizeof(struct device_dirent) + in dfs_device_fs_open()
182 if (root_dirent != RT_NULL) in dfs_device_fs_open()
187 root_dirent->devices = (rt_device_t *)(root_dirent + 1); in dfs_device_fs_open()
188 root_dirent->read_index = 0; in dfs_device_fs_open()
189 root_dirent->device_count = count; in dfs_device_fs_open()
195 if (count == root_dirent->device_count) in dfs_device_fs_open()
201 root_dirent->devices[count] = (rt_device_t)object; in dfs_device_fs_open()
208 file->vnode->data = root_dirent; in dfs_device_fs_open()
339 struct device_dirent *root_dirent; in dfs_device_fs_getdents() local
341 root_dirent = (struct device_dirent *)file->vnode->data; in dfs_device_fs_getdents()
342 RT_ASSERT(root_dirent != RT_NULL); in dfs_device_fs_getdents()
349 for (index = 0; index < count && index + root_dirent->read_index < root_dirent->device_count; in dfs_device_fs_getdents()
352 object = (rt_object_t)root_dirent->devices[root_dirent->read_index + index]; in dfs_device_fs_getdents()
368 root_dirent->read_index += index; in dfs_device_fs_getdents()