Home
last modified time | relevance | path

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

/linux/drivers/mtd/ubi/
H A Deba.c498 struct ubi_vid_io_buf *vidb; in check_mapping() local
507 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); in check_mapping()
508 if (!vidb) in check_mapping()
511 err = ubi_io_read_vid_hdr(ubi, *pnum, vidb, 0); in check_mapping()
544 vid_hdr = ubi_get_vid_hdr(vidb); in check_mapping()
561 ubi_free_vid_buf(vidb); in check_mapping()
596 struct ubi_vid_io_buf *vidb; in ubi_eba_read_leb() local
633 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); in ubi_eba_read_leb()
634 if (!vidb) { in ubi_eba_read_leb()
639 vid_hdr = ubi_get_vid_hdr(vidb); in ubi_eba_read_leb()
[all …]
H A Dubi.h785 struct ubi_vid_io_buf *vidb; member
899 struct ubi_vid_io_buf *vidb);
936 struct ubi_vid_io_buf *vidb, int verbose);
938 struct ubi_vid_io_buf *vidb);
1072 struct ubi_vid_io_buf *vidb, in ubi_init_vid_buf() argument
1078 vidb->buffer = buf; in ubi_init_vid_buf()
1079 vidb->hdr = buf + ubi->vid_hdr_shift; in ubi_init_vid_buf()
1090 struct ubi_vid_io_buf *vidb; in ubi_alloc_vid_buf() local
1093 vidb = kzalloc(sizeof(*vidb), gfp_flags); in ubi_alloc_vid_buf()
1094 if (!vidb) in ubi_alloc_vid_buf()
[all …]
H A Dattach.c443 struct ubi_vid_io_buf *vidb = NULL; in ubi_compare_lebs() local
486 vidb = ubi_alloc_vid_buf(ubi, GFP_KERNEL); in ubi_compare_lebs()
487 if (!vidb) in ubi_compare_lebs()
491 err = ubi_io_read_vid_hdr(ubi, pnum, vidb, 0); in ubi_compare_lebs()
505 vid_hdr = ubi_get_vid_hdr(vidb); in ubi_compare_lebs()
531 ubi_free_vid_buf(vidb); in ubi_compare_lebs()
543 ubi_free_vid_buf(vidb); in ubi_compare_lebs()
945 struct ubi_vid_io_buf *vidb = ai->vidb; in scan_peb() local
946 struct ubi_vid_hdr *vidh = ubi_get_vid_hdr(vidb); in scan_peb()
1044 err = ubi_io_read_vid_hdr(ubi, pnum, vidb, 0); in scan_peb()
[all …]
H A Dio.c468 struct ubi_vid_io_buf vidb; in nor_erase_prepare() local
495 ubi_init_vid_buf(ubi, &vidb, &vid_hdr); in nor_erase_prepare()
496 ubi_assert(&vid_hdr == ubi_get_vid_hdr(&vidb)); in nor_erase_prepare()
498 err = ubi_io_read_vid_hdr(ubi, pnum, &vidb, 0); in nor_erase_prepare()
1011 struct ubi_vid_io_buf *vidb, int verbose) in ubi_io_read_vid_hdr() argument
1015 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); in ubi_io_read_vid_hdr()
1016 void *p = vidb->buffer; in ubi_io_read_vid_hdr()
1124 struct ubi_vid_io_buf *vidb) in ubi_io_write_vid_hdr() argument
1126 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); in ubi_io_write_vid_hdr()
1129 void *p = vidb->buffer; in ubi_io_write_vid_hdr()
[all …]
H A Dvtbl.c289 struct ubi_vid_io_buf *vidb; in create_vtbl() local
295 vidb = ubi_alloc_vid_buf(ubi, GFP_KERNEL); in create_vtbl()
296 if (!vidb) in create_vtbl()
299 vid_hdr = ubi_get_vid_hdr(vidb); in create_vtbl()
317 err = ubi_io_write_vid_hdr(ubi, new_aeb->pnum, vidb); in create_vtbl()
332 ubi_free_vid_buf(vidb); in create_vtbl()
346 ubi_free_vid_buf(vidb); in create_vtbl()
H A Dwl.c668 struct ubi_vid_io_buf *vidb; local
676 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS);
677 if (!vidb)
680 vid_hdr = ubi_get_vid_hdr(vidb);
790 err = ubi_io_read_vid_hdr(ubi, e1->pnum, vidb, 0);
837 err = ubi_eba_copy_leb(ubi, e1->pnum, e2->pnum, vidb);
902 ubi_free_vid_buf(vidb);
972 ubi_free_vid_buf(vidb);
1005 ubi_free_vid_buf(vidb);
1019 ubi_free_vid_buf(vidb);