Lines Matching refs:ubi_device
112 static struct ubi_device *ubi_devices[UBI_MAX_DEVICES];
114 struct ubi_device *ubi_devices[UBI_MAX_DEVICES];
182 int ubi_volume_notify(struct ubi_device *ubi, struct ubi_volume *vol, int ntype)
214 int ubi_notify_all(struct ubi_device *ubi, int ntype, struct notifier_block *nb)
267 struct ubi_device *ubi = ubi_devices[i];
286 struct ubi_device *ubi_get_device(int ubi_num)
288 struct ubi_device *ubi;
306 void ubi_put_device(struct ubi_device *ubi)
321 struct ubi_device *ubi_get_by_major(int major)
324 struct ubi_device *ubi;
356 struct ubi_device *ubi = ubi_devices[i];
374 struct ubi_device *ubi;
378 * UBI device reference from the contained 'struct ubi_device'. But it
383 * Remember, 'struct ubi_device' is freed in the release function, so
386 ubi = container_of(dev, struct ubi_device, dev);
438 struct ubi_device *ubi = container_of(dev, struct ubi_device, dev);
452 static int ubi_sysfs_init(struct ubi_device *ubi, int *ref)
473 static void ubi_sysfs_close(struct ubi_device *ubi)
483 static void kill_volumes(struct ubi_device *ubi)
510 static int uif_init(struct ubi_device *ubi, int *ref)
582 static void uif_close(struct ubi_device *ubi)
594 void ubi_free_internal_volumes(struct ubi_device *ubi)
605 static int get_bad_peb_limit(const struct ubi_device *ubi, int max_beb_per1024)
649 static int io_init(struct ubi_device *ubi, int max_beb_per1024)
816 static int autoresize(struct ubi_device *ubi, int vol_id)
882 struct ubi_device *ubi;
941 ubi = kzalloc(sizeof(struct ubi_device), GFP_KERNEL);
1106 struct ubi_device *ubi;