Lines Matching refs:ubi
1866 ubi_close_volume(c->ubi); in ubifs_put_super()
1954 struct ubi_volume_desc *ubi; in open_ubi() local
1962 ubi = ubi_open_volume_path(name, mode); in open_ubi()
1963 if (!IS_ERR(ubi)) in open_ubi()
1964 return ubi; in open_ubi()
1998 static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi) in alloc_ubifs_info() argument
2039 ubi_get_volume_info(ubi, &c->vi); in alloc_ubifs_info()
2053 c->ubi = ubi_open_volume(c->vi.ubi_num, c->vi.vol_id, UBI_READWRITE); in ubifs_fill_super()
2054 if (IS_ERR(c->ubi)) { in ubifs_fill_super()
2055 err = PTR_ERR(c->ubi); in ubifs_fill_super()
2121 ubi_close_volume(c->ubi); in ubifs_fill_super()
2143 struct ubi_volume_desc *ubi; in ubifs_mount() local
2155 ubi = open_ubi(name, UBI_READONLY); in ubifs_mount()
2156 if (IS_ERR(ubi)) { in ubifs_mount()
2159 current->pid, name, (int)PTR_ERR(ubi)); in ubifs_mount()
2160 return ERR_CAST(ubi); in ubifs_mount()
2163 c = alloc_ubifs_info(ubi); in ubifs_mount()
2201 ubi_close_volume(ubi); in ubifs_mount()
2208 ubi_close_volume(ubi); in ubifs_mount()