/linux-2.6.39/drivers/mtd/ubi/ |
D | kapi.c | 41 di->ubi_num = ubi->ubi_num; in ubi_do_get_device_info() 59 int ubi_get_device_info(int ubi_num, struct ubi_device_info *di) in ubi_get_device_info() argument 63 if (ubi_num < 0 || ubi_num >= UBI_MAX_DEVICES) in ubi_get_device_info() 65 ubi = ubi_get_device(ubi_num); in ubi_get_device_info() 84 vi->ubi_num = ubi->ubi_num; in ubi_do_get_volume_info() 127 struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode) in ubi_open_volume() argument 134 dbg_gen("open device %d, volume %d, mode %d", ubi_num, vol_id, mode); in ubi_open_volume() 136 if (ubi_num < 0 || ubi_num >= UBI_MAX_DEVICES) in ubi_open_volume() 146 ubi = ubi_get_device(ubi_num); in ubi_open_volume() 208 vol_id, ubi->ubi_num); in ubi_open_volume() [all …]
|
D | gluebi.c | 60 int ubi_num; member 79 static struct gluebi_device *find_gluebi_nolock(int ubi_num, int vol_id) in find_gluebi_nolock() argument 84 if (gluebi->ubi_num == ubi_num && gluebi->vol_id == vol_id) in find_gluebi_nolock() 128 gluebi->desc = ubi_open_volume(gluebi->ubi_num, gluebi->vol_id, in gluebi_get_device() 336 gluebi->ubi_num = vi->ubi_num; in gluebi_create() 361 g = find_gluebi_nolock(vi->ubi_num, vi->vol_id); in gluebi_create() 364 "already exists", g->mtd.index, vi->ubi_num, in gluebi_create() 396 gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id); in gluebi_remove() 399 "volume %d", vi->ubi_num, vi->vol_id); in gluebi_remove() 413 "volume %d, error %d", mtd->index, gluebi->ubi_num, in gluebi_remove() [all …]
|
D | build.c | 232 struct ubi_device *ubi_get_device(int ubi_num) in ubi_get_device() argument 237 ubi = ubi_devices[ubi_num]; in ubi_get_device() 298 int i, ubi_num = -ENODEV; in ubi_major2num() local 305 ubi_num = ubi->ubi_num; in ubi_major2num() 311 return ubi_num; in ubi_major2num() 332 ubi = ubi_get_device(ubi->ubi_num); in dev_attribute_show() 388 dev_set_name(&ubi->dev, UBI_NAME_STR"%d", ubi->ubi_num); in ubi_sysfs_init() 485 sprintf(ubi->ubi_name, UBI_NAME_STR "%d", ubi->ubi_num); in uif_init() 870 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset) in ubi_attach_mtd_dev() argument 904 if (ubi_num == UBI_DEV_NUM_AUTO) { in ubi_attach_mtd_dev() [all …]
|
D | cdev.c | 106 int vol_id = iminor(inode) - 1, mode, ubi_num; in vol_cdev_open() local 108 ubi_num = ubi_major2num(imajor(inode)); in vol_cdev_open() 109 if (ubi_num < 0) in vol_cdev_open() 110 return ubi_num; in vol_cdev_open() 118 ubi_num, vol_id, mode); in vol_cdev_open() 120 desc = ubi_open_volume(ubi_num, vol_id, mode); in vol_cdev_open() 134 vol->ubi->ubi_num, vol->vol_id, desc->mode); in vol_cdev_release() 145 vol->upd_bytes, vol->ubi->ubi_num, vol->vol_id); in vol_cdev_release() 197 return ubi_sync(ubi->ubi_num); in vol_cdev_fsync() 394 vol->vol_id, ubi->ubi_num); in vol_cdev_write() [all …]
|
D | ubi.h | 397 int ubi_num; member 560 int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num, int vid_hdr_offset); 561 int ubi_detach_mtd_dev(int ubi_num, int anyway); 562 struct ubi_device *ubi_get_device(int ubi_num);
|
D | vmt.c | 77 ubi = ubi_get_device(vol->ubi->ubi_num); in vol_attribute_show() 237 ubi->ubi_num, vol_id, (unsigned long long)req->bytes, in ubi_create_volume() 413 dbg_gen("remove device %d, volume %d", ubi->ubi_num, vol_id); in ubi_remove_volume() 498 ubi->ubi_num, vol_id, vol->reserved_pebs, reserved_pebs); in ubi_resize_volume()
|
D | wl.c | 1440 sprintf(ubi->bgt_name, UBI_BGT_NAME_PATTERN, ubi->ubi_num); in ubi_wl_init_scan()
|
/linux-2.6.39/include/linux/mtd/ |
D | ubi.h | 100 int ubi_num; member 148 int ubi_num; member 193 int ubi_get_device_info(int ubi_num, struct ubi_device_info *di); 196 struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode); 197 struct ubi_volume_desc *ubi_open_volume_nm(int ubi_num, const char *name, 216 int ubi_sync(int ubi_num);
|
/linux-2.6.39/include/mtd/ |
D | ubi-user.h | 265 __s32 ubi_num; member
|
/linux-2.6.39/fs/ubifs/ |
D | super.c | 484 return ubi_sync(c->vi.ubi_num); in ubifs_sync_fs() 1264 sprintf(c->bgt_name, BGT_NAME_PATTERN, c->vi.ubi_num, c->vi.vol_id); in mount_ubifs() 1410 c->vi.ubi_num, c->vi.vol_id, c->vi.name); in mount_ubifs() 1520 dbg_gen("un-mounting UBI device %d, volume %d", c->vi.ubi_num, in ubifs_umount() 1760 ubifs_msg("un-mount UBI device %d, volume %d", c->vi.ubi_num, in ubifs_put_super() 2002 ubi_get_device_info(c->vi.ubi_num, &c->di); in ubifs_fill_super() 2005 c->ubi = ubi_open_volume(c->vi.ubi_num, c->vi.vol_id, UBI_READWRITE); in ubifs_fill_super() 2025 c->vi.ubi_num, c->vi.vol_id); in ubifs_fill_super() 2110 dbg_gen("opened ubi%d_%d", vi.ubi_num, vi.vol_id); in ubifs_mount()
|
D | debug.c | 2839 sprintf(d->dfs_dir_name, "ubi%d_%d", c->vi.ubi_num, c->vi.vol_id); in dbg_debugfs_init_fs()
|