Lines Matching refs:ubi_devices
91 static struct ubi_device *ubi_devices[UBI_MAX_DEVICES];
96 /* Protects @ubi_devices, @ubi->ref_count and @ubi->is_dead */
236 * change @ubi_devices, we do not have to lock @ubi_devices_lock.
239 struct ubi_device *ubi = ubi_devices[i];
263 ubi = ubi_devices[ubi_num];
303 ubi = ubi_devices[i];
331 struct ubi_device *ubi = ubi_devices[i];
869 ubi = ubi_devices[i];
913 /* Search for an empty slot in the @ubi_devices array */
915 if (!ubi_devices[ubi_num])
927 if (ubi_devices[ubi_num]) {
1061 ubi_devices[ubi_num] = ubi;
1122 ubi_devices[ubi_num] = NULL;
1321 if (ubi_devices[k]) {
1323 ubi_detach_mtd_dev(ubi_devices[k]->ubi_num, 1);
1410 if (ubi_devices[i]) {
1412 ubi_detach_mtd_dev(ubi_devices[i]->ubi_num, 1);