Lines Matching refs:ops

31 int dfs_register(const struct dfs_filesystem_ops *ops)  in dfs_register()  argument
46 else if (strcmp((*iter)->name, ops->name) == 0) in dfs_register()
58 LOG_E("There is no space to register this file system (%s).", ops->name); in dfs_register()
63 *empty = ops; in dfs_register()
95 if ((iter->path == NULL) || (iter->ops == NULL)) in dfs_filesystem_lookup()
133 if (iter->ops == NULL) continue; in dfs_filesystem_get_mounted_path()
220 const struct dfs_filesystem_ops **ops; in dfs_mount() local
242 for (ops = &filesystem_operation_table[0]; in dfs_mount()
243 ops < &filesystem_operation_table[DFS_FILESYSTEM_TYPES_MAX]; ops++) in dfs_mount()
244 if ((*ops != NULL) && (strncmp((*ops)->name, filesystemtype, strlen((*ops)->name)) == 0)) in dfs_mount()
249 if (ops == &filesystem_operation_table[DFS_FILESYSTEM_TYPES_MAX]) in dfs_mount()
257 if ((*ops == NULL) || ((*ops)->mount == NULL)) in dfs_mount()
295 if (iter->ops == NULL) in dfs_mount()
314 fs->ops = *ops; in dfs_mount()
337 if ((*ops)->mount(fs, rwflag, data) < 0) in dfs_mount()
396 fs->ops->unmount == NULL || in dfs_unmount()
397 fs->ops->unmount(fs) < 0) in dfs_unmount()
463 const struct dfs_filesystem_ops *ops = filesystem_operation_table[index]; in dfs_mkfs() local
464 if (ops->mkfs == NULL) in dfs_mkfs()
471 return ops->mkfs(dev_id, fs_name); in dfs_mkfs()
494 if (fs->ops->statfs != NULL) in dfs_statfs()
495 return fs->ops->statfs(fs, buffer); in dfs_statfs()
587 fs->ops->unmount == NULL || in dfs_unmount_device()
588 fs->ops->unmount(fs) < 0) in dfs_unmount_device()