Home
last modified time | relevance | path

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

/linux-6.6.21/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()
115 struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode) in ubi_open_volume() argument
122 dbg_gen("open device %d, volume %d, mode %d", ubi_num, vol_id, mode); in ubi_open_volume()
124 if (ubi_num < 0 || ubi_num >= UBI_MAX_DEVICES) in ubi_open_volume()
134 ubi = ubi_get_device(ubi_num); in ubi_open_volume()
203 vol_id, ubi->ubi_num); in ubi_open_volume()
[all …]
Dblock.c58 int ubi_num; member
75 int ubi_num; member
132 ret = kstrtoint(tokens[0], 10, &param->ubi_num); in ubiblock_set_param()
146 param->ubi_num = -1; in ubiblock_set_param()
170 static struct ubiblock *find_dev_nolock(int ubi_num, int vol_id) in find_dev_nolock() argument
175 if (dev->ubi_num == ubi_num && dev->vol_id == vol_id) in find_dev_nolock()
253 dev->desc = ubi_open_volume(dev->ubi_num, dev->vol_id, UBI_READONLY); in ubiblock_open()
256 dev->ubi_num, dev->vol_id); in ubiblock_open()
363 if (find_dev_nolock(vi->ubi_num, vi->vol_id)) { in ubiblock_create()
376 dev->ubi_num = vi->ubi_num; in ubiblock_create()
[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 …]
Dbuild.c60 int ubi_num; member
255 struct ubi_device *ubi_get_device(int ubi_num) in ubi_get_device() argument
260 ubi = ubi_devices[ubi_num]; in ubi_get_device()
321 int i, ubi_num = -ENODEV; in ubi_major2num() local
328 ubi_num = ubi->ubi_num; in ubi_major2num()
334 return ubi_num; in ubi_major2num()
439 sprintf(ubi->ubi_name, UBI_NAME_STR "%d", ubi->ubi_num); in uif_init()
462 dev_set_name(&ubi->dev, UBI_NAME_STR "%d", ubi->ubi_num); in uif_init()
842 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, in ubi_attach_mtd_dev() argument
904 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
514 ubi->ubi_num); in ubi_debugfs_init_dev()
523 (void *)ubi_num, &dfs_fops); in ubi_debugfs_init_dev()
526 (void *)ubi_num, &dfs_fops); in ubi_debugfs_init_dev()
529 d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev()
533 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.h560 int ubi_num; member
939 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
942 int ubi_detach_mtd_dev(int ubi_num, int anyway);
943 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.c1795 sprintf(ubi->bgt_name, UBI_BGT_NAME_PATTERN, ubi->ubi_num);
/linux-6.6.21/include/linux/mtd/
Dubi.h100 int ubi_num; member
178 int ubi_num; member
225 int ubi_get_device_info(int ubi_num, struct ubi_device_info *di);
228 struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode);
229 struct ubi_volume_desc *ubi_open_volume_nm(int ubi_num, const char *name,
250 int ubi_sync(int ubi_num);
251 int ubi_flush(int ubi_num, int vol_id, int lnum);
/linux-6.6.21/fs/ubifs/
Dmisc.c17 c->vi.ubi_num, c->vi.vol_id, &vaf); in ubifs_msg()
34 c->vi.ubi_num, c->vi.vol_id, current->pid, in ubifs_err()
53 c->vi.ubi_num, c->vi.vol_id, current->pid, in ubifs_warn()
Dsysfs.c102 c->vi.ubi_num, c->vi.vol_id); in ubifs_sysfs_register()
127 c->vi.ubi_num, c->vi.vol_id, ret); in ubifs_sysfs_register()
Dsuper.c462 seq_printf(s, ",ubi=%d,vol=%d", c->vi.ubi_num, c->vi.vol_id); in ubifs_show_options()
501 return ubi_sync(c->vi.ubi_num); in ubifs_sync_fs()
1380 sprintf(c->bgt_name, BGT_NAME_PATTERN, c->vi.ubi_num, c->vi.vol_id); in mount_ubifs()
1561 c->vi.ubi_num, c->vi.vol_id, c->vi.name, in mount_ubifs()
1673 dbg_gen("un-mounting UBI device %d, volume %d", c->vi.ubi_num, in ubifs_umount()
1934 ubifs_msg(c, "un-mount UBI device %d", c->vi.ubi_num); in ubifs_put_super()
2178 ubi_get_device_info(c->vi.ubi_num, &c->di); in alloc_ubifs_info()
2191 c->ubi = ubi_open_volume(c->vi.ubi_num, c->vi.vol_id, UBI_READWRITE); in ubifs_fill_super()
2211 err = super_setup_bdi_name(sb, "ubifs_%d_%d", c->vi.ubi_num, in ubifs_fill_super()
2308 dbg_gen("opened ubi%d_%d", c->vi.ubi_num, c->vi.vol_id); in ubifs_mount()
Ddebug.c2826 c->vi.ubi_num, c->vi.vol_id); in dbg_debugfs_init_fs()
/linux-6.6.21/include/uapi/mtd/
Dubi-user.h291 __s32 ubi_num; member