Home
last modified time | relevance | path

Searched refs:ubi_num (Results 1 – 10 of 10) sorted by relevance

/drivers/mtd/ubi/
Dkapi.c28 di->ubi_num = ubi->ubi_num; in ubi_do_get_device_info()
46 int ubi_get_device_info(int ubi_num, struct ubi_device_info *di) in ubi_get_device_info() argument
50 if (ubi_num < 0 || ubi_num >= UBI_MAX_DEVICES) in ubi_get_device_info()
52 ubi = ubi_get_device(ubi_num); in ubi_get_device_info()
71 vi->ubi_num = ubi->ubi_num; in ubi_do_get_volume_info()
114 struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode) in ubi_open_volume() argument
121 dbg_gen("open device %d, volume %d, mode %d", ubi_num, vol_id, mode); in ubi_open_volume()
123 if (ubi_num < 0 || ubi_num >= UBI_MAX_DEVICES) in ubi_open_volume()
133 ubi = ubi_get_device(ubi_num); in ubi_open_volume()
202 vol_id, ubi->ubi_num); in ubi_open_volume()
[all …]
Dgluebi.c47 int ubi_num; member
66 static struct gluebi_device *find_gluebi_nolock(int ubi_num, int vol_id) in find_gluebi_nolock() argument
71 if (gluebi->ubi_num == ubi_num && gluebi->vol_id == vol_id) in find_gluebi_nolock()
112 gluebi->desc = ubi_open_volume(gluebi->ubi_num, gluebi->vol_id, in gluebi_get_device()
296 gluebi->ubi_num = vi->ubi_num; in gluebi_create()
321 g = find_gluebi_nolock(vi->ubi_num, vi->vol_id); in gluebi_create()
324 g->mtd.index, vi->ubi_num, vi->vol_id); in gluebi_create()
355 gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id); in gluebi_remove()
358 vi->ubi_num, vi->vol_id); in gluebi_remove()
372 mtd->index, gluebi->ubi_num, gluebi->vol_id, err); in gluebi_remove()
[all …]
Dblock.c59 int ubi_num; member
77 int ubi_num; member
136 ret = kstrtoint(tokens[0], 10, &param->ubi_num); in ubiblock_set_param()
150 param->ubi_num = -1; in ubiblock_set_param()
174 static struct ubiblock *find_dev_nolock(int ubi_num, int vol_id) in find_dev_nolock() argument
179 if (dev->ubi_num == ubi_num && dev->vol_id == vol_id) in find_dev_nolock()
243 dev->desc = ubi_open_volume(dev->ubi_num, dev->vol_id, UBI_READONLY); in ubiblock_open()
246 dev->ubi_num, dev->vol_id); in ubiblock_open()
380 if (find_dev_nolock(vi->ubi_num, vi->vol_id)) { in ubiblock_create()
393 dev->ubi_num = vi->ubi_num; in ubiblock_create()
[all …]
Dbuild.c58 int ubi_num; member
253 struct ubi_device *ubi_get_device(int ubi_num) in ubi_get_device() argument
258 ubi = ubi_devices[ubi_num]; in ubi_get_device()
319 int i, ubi_num = -ENODEV; in ubi_major2num() local
326 ubi_num = ubi->ubi_num; in ubi_major2num()
332 return ubi_num; in ubi_major2num()
437 sprintf(ubi->ubi_name, UBI_NAME_STR "%d", ubi->ubi_num); in uif_init()
460 dev_set_name(&ubi->dev, UBI_NAME_STR "%d", ubi->ubi_num); in uif_init()
837 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, in ubi_attach_mtd_dev() argument
899 if (ubi_num == UBI_DEV_NUM_AUTO) { in ubi_attach_mtd_dev()
[all …]
Ddebug.c251 unsigned long ubi_num = (unsigned long)file->private_data; in dfs_file_read() local
258 ubi = ubi_get_device(ubi_num); in dfs_file_read()
314 unsigned long ubi_num = (unsigned long)file->private_data; in dfs_file_write() local
322 ubi = ubi_get_device(ubi_num); in dfs_file_write()
505 unsigned long ubi_num = ubi->ubi_num; in ubi_debugfs_init_dev() local
513 ubi->ubi_num); in ubi_debugfs_init_dev()
522 (void *)ubi_num, &dfs_fops); in ubi_debugfs_init_dev()
525 (void *)ubi_num, &dfs_fops); in ubi_debugfs_init_dev()
528 d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev()
532 d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev()
[all …]
Dcdev.c95 int vol_id = iminor(inode) - 1, mode, ubi_num; in vol_cdev_open() local
97 ubi_num = ubi_major2num(imajor(inode)); in vol_cdev_open()
98 if (ubi_num < 0) in vol_cdev_open()
99 return ubi_num; in vol_cdev_open()
107 ubi_num, vol_id, mode); in vol_cdev_open()
109 desc = ubi_open_volume(ubi_num, vol_id, mode); in vol_cdev_open()
123 vol->ubi->ubi_num, vol->vol_id, desc->mode); in vol_cdev_release()
133 vol->upd_received, vol->upd_bytes, vol->ubi->ubi_num, in vol_cdev_release()
165 err = ubi_sync(ubi->ubi_num); in vol_cdev_fsync()
367 vol->vol_id, ubi->ubi_num); in vol_cdev_write()
[all …]
Dmisc.c155 pr_notice(UBI_NAME_STR "%d: %pV\n", ubi->ubi_num, &vaf); in ubi_msg()
172 ubi->ubi_num, __builtin_return_address(0), &vaf); in ubi_warn()
189 ubi->ubi_num, __builtin_return_address(0), &vaf); in ubi_err()
Dubi.h562 int ubi_num; member
941 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
943 int ubi_detach_mtd_dev(int ubi_num, int anyway);
944 struct ubi_device *ubi_get_device(int ubi_num);
Dvmt.c180 ubi->ubi_num, vol_id, (unsigned long long)req->bytes, in ubi_create_volume()
339 dbg_gen("remove device %d, volume %d", ubi->ubi_num, vol_id); in ubi_remove_volume()
417 ubi->ubi_num, vol_id, vol->reserved_pebs, reserved_pebs); in ubi_resize_volume()
Dwl.c1785 sprintf(ubi->bgt_name, UBI_BGT_NAME_PATTERN, ubi->ubi_num);