Lines Matching refs:ubi
1998 ubi_close_volume(c->ubi); in ubifs_put_super()
2087 struct ubi_volume_desc *ubi; in open_ubi() local
2095 ubi = ubi_open_volume_path(name, mode); in open_ubi()
2096 if (!IS_ERR(ubi)) in open_ubi()
2097 return ubi; in open_ubi()
2131 static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi) in alloc_ubifs_info() argument
2172 ubi_get_volume_info(ubi, &c->vi); in alloc_ubifs_info()
2186 c->ubi = ubi_open_volume(c->vi.ubi_num, c->vi.vol_id, UBI_READWRITE); in ubifs_fill_super()
2187 if (IS_ERR(c->ubi)) { in ubifs_fill_super()
2188 err = PTR_ERR(c->ubi); in ubifs_fill_super()
2255 ubi_close_volume(c->ubi); in ubifs_fill_super()
2277 struct ubi_volume_desc *ubi; in ubifs_mount() local
2289 ubi = open_ubi(name, UBI_READONLY); in ubifs_mount()
2290 if (IS_ERR(ubi)) { in ubifs_mount()
2293 current->pid, name, (int)PTR_ERR(ubi)); in ubifs_mount()
2294 return ERR_CAST(ubi); in ubifs_mount()
2297 c = alloc_ubifs_info(ubi); in ubifs_mount()
2334 ubi_close_volume(ubi); in ubifs_mount()
2341 ubi_close_volume(ubi); in ubifs_mount()