Searched refs:vidb (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
D | eba.c | 502 struct ubi_vid_io_buf *vidb; in check_mapping() local 511 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); in check_mapping() 512 if (!vidb) in check_mapping() 515 err = ubi_io_read_vid_hdr(ubi, *pnum, vidb, 0); in check_mapping() 548 vid_hdr = ubi_get_vid_hdr(vidb); in check_mapping() 565 ubi_free_vid_buf(vidb); in check_mapping() 600 struct ubi_vid_io_buf *vidb; in ubi_eba_read_leb() local 637 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); in ubi_eba_read_leb() 638 if (!vidb) { in ubi_eba_read_leb() 643 vid_hdr = ubi_get_vid_hdr(vidb); in ubi_eba_read_leb() [all …]
|
D | ubi.h | 787 struct ubi_vid_io_buf *vidb; member 902 struct ubi_vid_io_buf *vidb); 938 struct ubi_vid_io_buf *vidb, int verbose); 940 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 …]
|
D | attach.c | 443 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 …]
|
D | io.c | 456 struct ubi_vid_io_buf vidb; in nor_erase_prepare() local 483 ubi_init_vid_buf(ubi, &vidb, &vid_hdr); in nor_erase_prepare() 484 ubi_assert(&vid_hdr == ubi_get_vid_hdr(&vidb)); in nor_erase_prepare() 486 err = ubi_io_read_vid_hdr(ubi, pnum, &vidb, 0); in nor_erase_prepare() 965 struct ubi_vid_io_buf *vidb, int verbose) in ubi_io_read_vid_hdr() argument 969 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); in ubi_io_read_vid_hdr() 970 void *p = vidb->buffer; in ubi_io_read_vid_hdr() 1049 struct ubi_vid_io_buf *vidb) in ubi_io_write_vid_hdr() argument 1051 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); in ubi_io_write_vid_hdr() 1054 void *p = vidb->buffer; in ubi_io_write_vid_hdr() [all …]
|
D | vtbl.c | 289 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()
|
D | wl.c | 652 struct ubi_vid_io_buf *vidb; local 660 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); 661 if (!vidb) 664 vid_hdr = ubi_get_vid_hdr(vidb); 770 err = ubi_io_read_vid_hdr(ubi, e1->pnum, vidb, 0); 817 err = ubi_eba_copy_leb(ubi, e1->pnum, e2->pnum, vidb); 875 ubi_free_vid_buf(vidb); 942 ubi_free_vid_buf(vidb); 973 ubi_free_vid_buf(vidb); 989 ubi_free_vid_buf(vidb);
|