Home
last modified time | relevance | path

Searched refs:vol_id (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.3-rc2/drivers/mtd/ubi/
A Deba.c221 if (vol_id < le->vol_id) in ltree_lookup()
223 else if (vol_id > le->vol_id) in ltree_lookup()
260 le->vol_id = vol_id; in ltree_add_entry()
287 if (vol_id < le1->vol_id) in ltree_add_entry()
289 else if (vol_id > le1->vol_id) in ltree_add_entry()
453 int err, pnum, vol_id = vol->vol_id; in ubi_eba_unmap_leb() local
1057 vid_hdr->vol_id = cpu_to_be32(vol_id); in ubi_eba_write_leb()
1138 vid_hdr->vol_id = cpu_to_be32(vol_id); in ubi_eba_write_leb_st()
1191 int err, tries, vol_id = vol->vol_id; in ubi_eba_atomic_leb_change() local
1222 vid_hdr->vol_id = cpu_to_be32(vol_id); in ubi_eba_atomic_leb_change()
[all …]
A Dkapi.c70 vi->vol_id = vol->vol_id; in ubi_do_get_volume_info()
138 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) { in ubi_open_volume()
262 vol_id = i; in ubi_open_volume_nm()
374 int vol_id = vol->vol_id; in leb_read_sanity_check() local
376 if (vol_id < 0 || vol_id >= ubi->vtbl_slots || lnum < 0 || in leb_read_sanity_check()
428 int err, vol_id = vol->vol_id; in ubi_leb_read() local
468 int err, vol_id = vol->vol_id; in ubi_leb_read_sg() local
519 int vol_id = vol->vol_id; in ubi_leb_write() local
523 if (vol_id < 0 || vol_id >= ubi->vtbl_slots) in ubi_leb_write()
564 int vol_id = vol->vol_id; in ubi_leb_change() local
[all …]
A Dvmt.c140 int i, err, vol_id = req->vol_id; in ubi_create_volume() local
167 vol_id = i; in ubi_create_volume()
176 req->vol_id = vol_id; in ubi_create_volume()
185 if (ubi->volumes[vol_id]) { in ubi_create_volume()
219 vol->vol_id = vol_id; in ubi_create_volume()
260 ubi->volumes[vol_id] = vol; in ubi_create_volume()
337 int i, err, vol_id = vol->vol_id, reserved_pebs = vol->reserved_pebs; in ubi_remove_volume() local
411 int vol_id = vol->vol_id; in ubi_resize_volume() local
572 int err, vol_id = vol->vol_id; in ubi_add_volume() local
584 vol_id, err); in ubi_add_volume()
[all …]
A Dattach.c115 if (vol_id == av->vol_id) { in find_or_add_av()
124 if (vol_id > av->vol_id) in find_or_add_av()
138 av->vol_id = vol_id; in find_or_add_av()
248 aeb->vol_id = vol_id; in add_to_list()
305 aeb->vol_id = be32_to_cpu(vid_hdr->vol_id); in add_fastmap()
335 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr() local
348 if (vol_id != av->vol_id) { in validate_vid_hdr()
572 vol_id = be32_to_cpu(vid_hdr->vol_id); in ubi_add_to_av()
658 aeb->vol_id = vol_id; in ubi_add_to_av()
692 aeb->vol_id = vol_id; in ubi_add_to_av()
[all …]
A Dblock.c59 int vol_id; member
76 int vol_id; member
137 ret = kstrtoint(tokens[1], 10, &param->vol_id); in ubiblock_set_param()
139 param->vol_id = -1; in ubiblock_set_param()
147 param->vol_id = -1; in ubiblock_set_param()
175 if (dev->ubi_num == ubi_num && dev->vol_id == vol_id) in find_dev_nolock()
257 dev->ubi_num, dev->vol_id); in ubiblock_open()
378 dev->vol_id = vi->vol_id; in ubiblock_create()
430 dev->ubi_num, dev->vol_id, vi->name); in ubiblock_create()
578 else if (vol_id == -1) in open_volume_desc()
[all …]
A Dgluebi.c48 int vol_id; member
71 if (gluebi->ubi_num == ubi_num && gluebi->vol_id == vol_id) in find_gluebi_nolock()
295 gluebi->vol_id = vi->vol_id; 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()
403 vi->ubi_num, vi->vol_id); in gluebi_updated()
430 vi->ubi_num, vi->vol_id); in gluebi_resized()
[all …]
A Dcdev.c107 ubi_num, vol_id, mode); in vol_cdev_open()
127 vol->vol_id); in vol_cdev_release()
134 vol->vol_id); in vol_cdev_release()
182 count, *offp, vol->vol_id); in vol_cdev_read()
602 if ((req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) && in verify_mkvol_req()
663 if (req->vol_id < 0 || req->vol_id >= ubi->vtbl_slots) in verify_rsvol_req()
710 if (req->ents[i].vol_id == req->ents[n].vol_id) { in rename_volumes()
712 req->ents[i].vol_id); in rename_volumes()
726 int vol_id = req->ents[i].vol_id; in rename_volumes() local
740 vol_id, err); in rename_volumes()
[all …]
A Dubi.h203 int vol_id; member
342 int vol_id; member
678 int vol_id; member
711 int vol_id; member
806 int vol_id; member
829 int vol_id);
864 int ubi_check_volume(struct ubi_device *ubi, int vol_id);
1171 if (vol_id >= UBI_INTERNAL_VOL_START) in vol_id2idx()
1174 return vol_id; in vol_id2idx()
1194 static inline bool ubi_is_fm_vol(int vol_id) in ubi_is_fm_vol() argument
[all …]
A Dupd.c46 dbg_gen("set update marker for volume %d", vol->vol_id); in set_update_marker()
49 ubi_assert(ubi->vtbl[vol->vol_id].upd_marker); in set_update_marker()
54 vtbl_rec = ubi->vtbl[vol->vol_id]; in set_update_marker()
58 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in set_update_marker()
80 dbg_gen("clear update marker for volume %d", vol->vol_id); in clear_update_marker()
82 vtbl_rec = ubi->vtbl[vol->vol_id]; in clear_update_marker()
98 err = ubi_change_vtbl_record(ubi, vol->vol_id, &vtbl_rec); in clear_update_marker()
119 dbg_gen("start update of volume %d, %llu bytes", vol->vol_id, bytes); in ubi_start_update()
174 vol->vol_id, req->lnum, req->bytes); in ubi_start_leb_change()
A Dwl.c599 wl_wrk->vol_id = vol_id; in schedule_erase()
621 int vol_id, int lnum, int torture) in do_sync_erase() argument
628 wl_wrk.vol_id = vol_id; in do_sync_erase()
819 vol_id = be32_to_cpu(vid_hdr->vol_id);
879 e1->pnum, vol_id, lnum, e2->pnum);
907 e2->pnum, vol_id, lnum);
924 if (vol_id != -1)
970 if (vol_id != -1)
1090 int vol_id = wl_wrk->vol_id; local
1427 vol_id, lnum, ubi->works_count);
[all …]
A Dfastmap.c114 vh->vol_id = cpu_to_be32(vol_id); in new_fm_vbuf()
180 av = ubi_add_av(ai, vol_id); in add_vol()
339 int vol_id = be32_to_cpu(new_vh->vol_id); in process_pool_aeb() local
342 if (vol_id == UBI_FM_SB_VOLUME_ID || vol_id == UBI_FM_DATA_VOLUME_ID) { in process_pool_aeb()
349 av = ubi_find_av(ai, vol_id); in process_pool_aeb()
356 ubi_assert(vol_id == av->vol_id); in process_pool_aeb()
712 fmvhdr->vol_id); in ubi_attach_fastmap()
839 new->vol_id = old->vol_id; in clone_aeb()
1006 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
1014 be32_to_cpu(vh->vol_id), in ubi_scan_fastmap()
[all …]
A Dvtbl.c129 struct ubi_vtbl_record *vtbl_rec = &ubi->vtbl[vol->vol_id]; in ubi_vtbl_rename_volumes()
309 vid_hdr->vol_id = cpu_to_be32(UBI_LAYOUT_VOLUME_ID); in create_vtbl()
548 vol->vol_id = i; in init_volumes()
613 av->vol_id, av->used_ebs - av->leb_count); in init_volumes()
640 vol->vol_id = UBI_LAYOUT_VOLUME_ID; in init_volumes()
644 ubi->volumes[vol_id2idx(ubi, vol->vol_id)] = vol; in init_volumes()
762 ubi_msg(ubi, "finish volume %d removal", av->vol_id); in check_attaching_info()
A Dmisc.c48 int ubi_check_volume(struct ubi_device *ubi, int vol_id) in ubi_check_volume() argument
52 struct ubi_volume *vol = ubi->volumes[vol_id]; in ubi_check_volume()
A Dubi-media.h274 __be32 vol_id; member
481 __be32 vol_id; member
A Dio.c844 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr() local
858 if (vol_id < 0 || lnum < 0 || data_size < 0 || used_ebs < 0 || in validate_vid_hdr()
864 if (vol_id >= UBI_MAX_VOLUMES && vol_id < UBI_INTERNAL_VOL_START) { in validate_vid_hdr()
869 if (vol_id < UBI_INTERNAL_VOL_START && compat != 0) { in validate_vid_hdr()
874 if (vol_id >= UBI_INTERNAL_VOL_START && compat != UBI_COMPAT_DELETE && in validate_vid_hdr()
A Dbuild.c766 static int autoresize(struct ubi_device *ubi, int vol_id) in autoresize() argument
769 struct ubi_volume *vol = ubi->volumes[vol_id]; in autoresize()
782 ubi->vtbl[vol_id].flags &= ~UBI_VTBL_AUTORESIZE_FLG; in autoresize()
791 vtbl_rec = ubi->vtbl[vol_id]; in autoresize()
792 err = ubi_change_vtbl_record(ubi, vol_id, &vtbl_rec); in autoresize()
795 vol_id); in autoresize()
802 vol_id); in autoresize()
809 vol_id, vol->name, old_reserved_pebs, vol->reserved_pebs); in autoresize()
A Dfastmap-wl.c419 int vol_id, pnum = fm_e->pnum; in ubi_wl_put_fm_peb() local
441 vol_id = lnum ? UBI_FM_DATA_VOLUME_ID : UBI_FM_SB_VOLUME_ID; in ubi_wl_put_fm_peb()
442 return schedule_erase(ubi, e, vol_id, lnum, torture, true); in ubi_wl_put_fm_peb()
A Ddebug.c78 pr_err("\tvol_id %d\n", be32_to_cpu(vid_hdr->vol_id)); in ubi_dump_vid_hdr()
98 pr_err("\tvol_id %d\n", vol->vol_id); in ubi_dump_vol_info()
162 pr_err("\tvol_id %d\n", av->vol_id); in ubi_dump_av()
198 pr_err("\tvol_id %d\n", req->vol_id); in ubi_dump_mkvol_req()
/linux-6.3-rc2/fs/ubifs/
A 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()
A 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()
/linux-6.3-rc2/include/uapi/mtd/
A Dubi-user.h345 __s32 vol_id; member
368 __s32 vol_id; member
406 __s32 vol_id; member
/linux-6.3-rc2/include/linux/mtd/
A Dubi.h101 int vol_id; member
228 struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode);
251 int ubi_flush(int ubi_num, int vol_id, int lnum);
/linux-6.3-rc2/include/uapi/linux/
A Dmsdos_fs.h132 __u8 vol_id[4]; /* volume ID */ member
155 __u8 vol_id[4]; /* volume ID */ member
/linux-6.3-rc2/fs/nfsd/
A Dblocklayoutxdr.c32 p = xdr_encode_opaque_fixed(p, &b->vol_id, in nfsd4_block_encode_layoutget()
139 memcpy(&bex.vol_id, p, sizeof(struct nfsd4_deviceid)); in nfsd4_block_decode_layoutupdate()
A Dblocklayoutxdr.h12 struct nfsd4_deviceid vol_id; member

Completed in 60 milliseconds

12