Lines Matching refs:index

434     int index;  in dfs_mkfs()  local
451 for (index = 0; index < DFS_FILESYSTEM_TYPES_MAX; index ++) in dfs_mkfs()
453 if (filesystem_operation_table[index] != NULL && in dfs_mkfs()
454 strncmp(filesystem_operation_table[index]->name, fs_name, in dfs_mkfs()
455 strlen(filesystem_operation_table[index]->name)) == 0) in dfs_mkfs()
460 if (index < DFS_FILESYSTEM_TYPES_MAX) in dfs_mkfs()
463 const struct dfs_filesystem_ops *ops = filesystem_operation_table[index]; in dfs_mkfs()
505 int index = 0; in dfs_mount_table() local
509 if (mount_table[index].path == NULL) break; in dfs_mount_table()
511 if (dfs_mount(mount_table[index].device_name, in dfs_mount_table()
512 mount_table[index].path, in dfs_mount_table()
513 mount_table[index].filesystemtype, in dfs_mount_table()
514 mount_table[index].rwflag, in dfs_mount_table()
515 mount_table[index].data) != 0) in dfs_mount_table()
517 LOG_E("mount fs[%s] on %s failed.\n", mount_table[index].filesystemtype, in dfs_mount_table()
518 mount_table[index].path); in dfs_mount_table()
522 index ++; in dfs_mount_table()
530 int index = 0; in dfs_mount_device() local
540 if (mount_table[index].path == NULL) break; in dfs_mount_device()
542 if(strcmp(mount_table[index].device_name, dev->parent.name) == 0) in dfs_mount_device()
544 if (dfs_mount(mount_table[index].device_name, in dfs_mount_device()
545 mount_table[index].path, in dfs_mount_device()
546 mount_table[index].filesystemtype, in dfs_mount_device()
547 mount_table[index].rwflag, in dfs_mount_device()
548 mount_table[index].data) != 0) in dfs_mount_device()
550 …LOG_E("mount fs[%s] device[%s] to %s failed.\n", mount_table[index].filesystemtype, dev->parent.na… in dfs_mount_device()
551 mount_table[index].path); in dfs_mount_device()
554 … LOG_D("mount fs[%s] device[%s] to %s ok.\n", mount_table[index].filesystemtype, dev->parent.name, in dfs_mount_device()
555 mount_table[index].path); in dfs_mount_device()
560 index ++; in dfs_mount_device()