Searched refs:vidb (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/drivers/mtd/ubi/ |
D | eba.c | 501 struct ubi_vid_io_buf *vidb; in check_mapping() local 510 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); in check_mapping() 511 if (!vidb) in check_mapping() 514 err = ubi_io_read_vid_hdr(ubi, *pnum, vidb, 0); in check_mapping() 547 vid_hdr = ubi_get_vid_hdr(vidb); in check_mapping() 564 ubi_free_vid_buf(vidb); in check_mapping() 599 struct ubi_vid_io_buf *vidb; in ubi_eba_read_leb() local 636 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); in ubi_eba_read_leb() 637 if (!vidb) { in ubi_eba_read_leb() 642 vid_hdr = ubi_get_vid_hdr(vidb); in ubi_eba_read_leb() [all …]
|
D | ubi.h | 783 struct ubi_vid_io_buf *vidb; member 898 struct ubi_vid_io_buf *vidb); 934 struct ubi_vid_io_buf *vidb, int verbose); 936 struct ubi_vid_io_buf *vidb); 1069 struct ubi_vid_io_buf *vidb, in ubi_init_vid_buf() argument 1075 vidb->buffer = buf; in ubi_init_vid_buf() 1076 vidb->hdr = buf + ubi->vid_hdr_shift; in ubi_init_vid_buf() 1087 struct ubi_vid_io_buf *vidb; in ubi_alloc_vid_buf() local 1090 vidb = kzalloc(sizeof(*vidb), gfp_flags); in ubi_alloc_vid_buf() 1091 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() 967 struct ubi_vid_io_buf *vidb, int verbose) in ubi_io_read_vid_hdr() argument 971 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); in ubi_io_read_vid_hdr() 972 void *p = vidb->buffer; in ubi_io_read_vid_hdr() 1051 struct ubi_vid_io_buf *vidb) in ubi_io_write_vid_hdr() argument 1053 struct ubi_vid_hdr *vid_hdr = ubi_get_vid_hdr(vidb); in ubi_io_write_vid_hdr() 1056 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 | 653 struct ubi_vid_io_buf *vidb; local 661 vidb = ubi_alloc_vid_buf(ubi, GFP_NOFS); 662 if (!vidb) 665 vid_hdr = ubi_get_vid_hdr(vidb); 775 err = ubi_io_read_vid_hdr(ubi, e1->pnum, vidb, 0); 822 err = ubi_eba_copy_leb(ubi, e1->pnum, e2->pnum, vidb); 880 ubi_free_vid_buf(vidb); 950 ubi_free_vid_buf(vidb); 983 ubi_free_vid_buf(vidb); 997 ubi_free_vid_buf(vidb);
|