Lines Matching refs:ubi
1826 ubi_close_volume(c->ubi); in ubifs_put_super()
1910 struct ubi_volume_desc *ubi; in open_ubi() local
1915 ubi = ubi_open_volume_path(name, mode); in open_ubi()
1916 if (!IS_ERR(ubi)) in open_ubi()
1917 return ubi; in open_ubi()
1951 static struct ubifs_info *alloc_ubifs_info(struct ubi_volume_desc *ubi) in alloc_ubifs_info() argument
1991 ubi_get_volume_info(ubi, &c->vi); in alloc_ubifs_info()
2005 c->ubi = ubi_open_volume(c->vi.ubi_num, c->vi.vol_id, UBI_READWRITE); in ubifs_fill_super()
2006 if (IS_ERR(c->ubi)) { in ubifs_fill_super()
2007 err = PTR_ERR(c->ubi); in ubifs_fill_super()
2073 ubi_close_volume(c->ubi); in ubifs_fill_super()
2095 struct ubi_volume_desc *ubi; in ubifs_mount() local
2107 ubi = open_ubi(name, UBI_READONLY); in ubifs_mount()
2108 if (IS_ERR(ubi)) { in ubifs_mount()
2110 name, (int)PTR_ERR(ubi)); in ubifs_mount()
2111 return ERR_CAST(ubi); in ubifs_mount()
2114 c = alloc_ubifs_info(ubi); in ubifs_mount()
2147 ubi_close_volume(ubi); in ubifs_mount()
2154 ubi_close_volume(ubi); in ubifs_mount()