Home
last modified time | relevance | path

Searched refs:vidb (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/mtd/ubi/
Deba.c515 struct ubi_vid_io_buf *vidb; in check_mapping() local
524 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); in check_mapping()
525 if (!vidb) in check_mapping()
528 err = ubi_io_read_vid_hdr(ubi, *pnum, vidb, 0); in check_mapping()
561 vid_hdr = ubi_get_vid_hdr(vidb); in check_mapping()
578 ubi_free_vid_buf(vidb); in check_mapping()
613 struct ubi_vid_io_buf *vidb; in ubi_eba_read_leb() local
650 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); in ubi_eba_read_leb()
651 if (!vidb) { in ubi_eba_read_leb()
656 vid_hdr = ubi_get_vid_hdr(vidb); in ubi_eba_read_leb()
[all …]
Dubi.h794 struct ubi_vid_io_buf *vidb; member
911 struct ubi_vid_io_buf *vidb);
946 struct ubi_vid_io_buf *vidb, int verbose);
948 struct ubi_vid_io_buf *vidb);
1079 struct ubi_vid_io_buf *vidb, in ubi_init_vid_buf() argument
1085 vidb->buffer = buf; in ubi_init_vid_buf()
1086 vidb->hdr = buf + ubi->vid_hdr_shift; in ubi_init_vid_buf()
1097 struct ubi_vid_io_buf *vidb; in ubi_alloc_vid_buf() local
1100 vidb = kzalloc(sizeof(*vidb), gfp_flags); in ubi_alloc_vid_buf()
1101 if (!vidb) in ubi_alloc_vid_buf()
[all …]
Dattach.c456 struct ubi_vid_io_buf *vidb = NULL; in ubi_compare_lebs() local
499 vidb = ubi_alloc_vid_buf(ubi, GFP_KERNEL); in ubi_compare_lebs()
500 if (!vidb) in ubi_compare_lebs()
504 err = ubi_io_read_vid_hdr(ubi, pnum, vidb, 0); in ubi_compare_lebs()
518 vid_hdr = ubi_get_vid_hdr(vidb); in ubi_compare_lebs()
544 ubi_free_vid_buf(vidb); in ubi_compare_lebs()
556 ubi_free_vid_buf(vidb); in ubi_compare_lebs()
958 struct ubi_vid_io_buf *vidb = ai->vidb; in scan_peb() local
959 struct ubi_vid_hdr *vidh = ubi_get_vid_hdr(vidb); in scan_peb()
1057 err = ubi_io_read_vid_hdr(ubi, pnum, vidb, 0); in scan_peb()
[all …]
Dio.c469 struct ubi_vid_io_buf vidb; in nor_erase_prepare() local
496 ubi_init_vid_buf(ubi, &vidb, &vid_hdr); in nor_erase_prepare()
497 ubi_assert(&vid_hdr == ubi_get_vid_hdr(&vidb)); in nor_erase_prepare()
499 err = ubi_io_read_vid_hdr(ubi, pnum, &vidb, 0); in nor_erase_prepare()
978 struct ubi_vid_io_buf *vidb, int verbose) in ubi_io_read_vid_hdr() argument
982 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); in ubi_io_read_vid_hdr()
983 void *p = vidb->buffer; in ubi_io_read_vid_hdr()
1062 struct ubi_vid_io_buf *vidb) in ubi_io_write_vid_hdr() argument
1064 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); in ubi_io_write_vid_hdr()
1067 void *p = vidb->buffer; in ubi_io_write_vid_hdr()
[all …]
Dvtbl.c302 struct ubi_vid_io_buf *vidb; in create_vtbl() local
308 vidb = ubi_alloc_vid_buf(ubi, GFP_KERNEL); in create_vtbl()
309 if (!vidb) in create_vtbl()
312 vid_hdr = ubi_get_vid_hdr(vidb); in create_vtbl()
330 err = ubi_io_write_vid_hdr(ubi, new_aeb->pnum, vidb); in create_vtbl()
345 ubi_free_vid_buf(vidb); in create_vtbl()
359 ubi_free_vid_buf(vidb); in create_vtbl()
Dwl.c655 struct ubi_vid_io_buf *vidb; local
663 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS);
664 if (!vidb)
667 vid_hdr = ubi_get_vid_hdr(vidb);
763 err = ubi_io_read_vid_hdr(ubi, e1->pnum, vidb, 0);
810 err = ubi_eba_copy_leb(ubi, e1->pnum, e2->pnum, vidb);
868 ubi_free_vid_buf(vidb);
935 ubi_free_vid_buf(vidb);
966 ubi_free_vid_buf(vidb);
982 ubi_free_vid_buf(vidb);