/linux-6.12.1/drivers/mtd/ubi/ |
D | kapi.c | 28 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 …]
|
D | block.c | 58 int ubi_num; member 75 int ubi_num; member 132 ret = kstrtoint(tokens[0], 10, ¶m->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() 366 if (find_dev_nolock(vi->ubi_num, vi->vol_id)) { in ubiblock_create() 379 dev->ubi_num = vi->ubi_num; in ubiblock_create() [all …]
|
D | gluebi.c | 47 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 …]
|
D | build.c | 62 int ubi_num; member 258 struct ubi_device *ubi_get_device(int ubi_num) in ubi_get_device() argument 263 ubi = ubi_devices[ubi_num]; in ubi_get_device() 327 int i, ubi_num = -ENODEV; in ubi_major2num() local 334 ubi_num = ubi->ubi_num; in ubi_major2num() 340 return ubi_num; in ubi_major2num() 445 sprintf(ubi->ubi_name, UBI_NAME_STR "%d", ubi->ubi_num); in uif_init() 468 dev_set_name(&ubi->dev, UBI_NAME_STR "%d", ubi->ubi_num); in uif_init() 849 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, in ubi_attach_mtd_dev() argument 912 if (ubi_num == UBI_DEV_NUM_AUTO) { in ubi_attach_mtd_dev() [all …]
|
D | debug.c | 331 unsigned long ubi_num = (unsigned long)file->private_data; in dfs_file_read() local 338 ubi = ubi_get_device(ubi_num); in dfs_file_read() 398 unsigned long ubi_num = (unsigned long)file->private_data; in dfs_file_write() local 406 ubi = ubi_get_device(ubi_num); in dfs_file_write() 592 unsigned long ubi_num = ubi->ubi_num; in ubi_debugfs_init_dev() local 601 ubi->ubi_num); in ubi_debugfs_init_dev() 610 (void *)ubi_num, &dfs_fops); in ubi_debugfs_init_dev() 613 (void *)ubi_num, &dfs_fops); in ubi_debugfs_init_dev() 616 d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev() 620 d->dfs_dir, (void *)ubi_num, in ubi_debugfs_init_dev() [all …]
|
D | nvmem.c | 16 int ubi_num; member 32 desc = ubi_open_volume(unv->ubi_num, unv->vol_id, UBI_READONLY); in ubi_nvmem_reg_read() 96 unv->ubi_num = vi->ubi_num; in ubi_nvmem_add() 120 if (unv_c->ubi_num == vi->ubi_num && unv_c->vol_id == vi->vol_id) { in ubi_nvmem_remove()
|
D | cdev.c | 95 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 …]
|
D | misc.c | 155 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()
|
D | ubi.h | 558 int ubi_num; member 940 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); 960 int ubi_get_num_by_path(const char *pathname, int *ubi_num, int *vol_id);
|
D | vmt.c | 205 ubi->ubi_num, vol_id, (unsigned long long)req->bytes, in ubi_create_volume() 365 dbg_gen("remove device %d, volume %d", ubi->ubi_num, vol_id); in ubi_remove_volume() 457 ubi->ubi_num, vol_id, vol->reserved_pebs, reserved_pebs); in ubi_resize_volume()
|
D | wl.c | 1807 sprintf(ubi->bgt_name, UBI_BGT_NAME_PATTERN, ubi->ubi_num);
|
/linux-6.12.1/include/linux/mtd/ |
D | ubi.h | 100 int ubi_num; member 178 int ubi_num; member 227 int ubi_get_device_info(int ubi_num, struct ubi_device_info *di); 230 struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode); 231 struct ubi_volume_desc *ubi_open_volume_nm(int ubi_num, const char *name, 252 int ubi_sync(int ubi_num); 253 int ubi_flush(int ubi_num, int vol_id, int lnum);
|
/linux-6.12.1/fs/ubifs/ |
D | misc.c | 17 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()
|
D | sysfs.c | 102 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()
|
D | super.c | 458 seq_printf(s, ",ubi=%d,vol=%d", c->vi.ubi_num, c->vi.vol_id); in ubifs_show_options() 497 return ubi_sync(c->vi.ubi_num); in ubifs_sync_fs() 1379 sprintf(c->bgt_name, BGT_NAME_PATTERN, c->vi.ubi_num, c->vi.vol_id); in mount_ubifs() 1560 c->vi.ubi_num, c->vi.vol_id, c->vi.name, in mount_ubifs() 1672 dbg_gen("un-mounting UBI device %d, volume %d", c->vi.ubi_num, in ubifs_umount() 1933 ubifs_msg(c, "un-mount UBI device %d", c->vi.ubi_num); in ubifs_put_super() 2179 ubi_get_device_info(c->vi.ubi_num, &c->di); in alloc_ubifs_info() 2192 c->ubi = ubi_open_volume(c->vi.ubi_num, c->vi.vol_id, UBI_READWRITE); in ubifs_fill_super() 2212 err = super_setup_bdi_name(sb, "ubifs_%d_%d", c->vi.ubi_num, in ubifs_fill_super() 2310 dbg_gen("opened ubi%d_%d", c->vi.ubi_num, c->vi.vol_id); in ubifs_mount()
|
D | debug.c | 2830 c->vi.ubi_num, c->vi.vol_id); in dbg_debugfs_init_fs()
|
/linux-6.12.1/include/uapi/mtd/ |
D | ubi-user.h | 292 __s32 ubi_num; member
|