Searched refs:fmvhdr (Results 1 – 3 of 3) sorted by relevance
| /OK3568_Linux_fs/u-boot/drivers/mtd/ubispl/ |
| H A D | ubispl.c | 289 struct ubi_fm_volhdr *fmvhdr; in ubi_attach_fastmap() local 397 fmvhdr = (struct ubi_fm_volhdr *)(fm_raw + fm_pos); in ubi_attach_fastmap() 398 fm_pos += sizeof(*fmvhdr); in ubi_attach_fastmap() 402 if (be32_to_cpu(fmvhdr->magic) != UBI_FM_VHDR_MAGIC) { in ubi_attach_fastmap() 405 be32_to_cpu(fmvhdr->magic), UBI_FM_VHDR_MAGIC); in ubi_attach_fastmap() 409 vol_id = be32_to_cpu(fmvhdr->vol_id); in ubi_attach_fastmap() 410 vol_type = fmvhdr->vol_type; in ubi_attach_fastmap() 411 used = be32_to_cpu(fmvhdr->used_ebs); in ubi_attach_fastmap()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/ubi/ |
| H A D | fastmap.c | 616 struct ubi_fm_volhdr *fmvhdr; in ubi_attach_fastmap() local 742 fmvhdr = (struct ubi_fm_volhdr *)(fm_raw + fm_pos); in ubi_attach_fastmap() 743 fm_pos += sizeof(*fmvhdr); in ubi_attach_fastmap() 747 if (be32_to_cpu(fmvhdr->magic) != UBI_FM_VHDR_MAGIC) { in ubi_attach_fastmap() 749 be32_to_cpu(fmvhdr->magic), UBI_FM_VHDR_MAGIC); in ubi_attach_fastmap() 753 av = add_vol(ai, be32_to_cpu(fmvhdr->vol_id), in ubi_attach_fastmap() 754 be32_to_cpu(fmvhdr->used_ebs), in ubi_attach_fastmap() 755 be32_to_cpu(fmvhdr->data_pad), in ubi_attach_fastmap() 756 fmvhdr->vol_type, in ubi_attach_fastmap() 757 be32_to_cpu(fmvhdr->last_eb_bytes)); in ubi_attach_fastmap() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/ubi/ |
| H A D | fastmap.c | 559 struct ubi_fm_volhdr *fmvhdr; in ubi_attach_fastmap() local 693 fmvhdr = (struct ubi_fm_volhdr *)(fm_raw + fm_pos); in ubi_attach_fastmap() 694 fm_pos += sizeof(*fmvhdr); in ubi_attach_fastmap() 698 if (be32_to_cpu(fmvhdr->magic) != UBI_FM_VHDR_MAGIC) { in ubi_attach_fastmap() 700 be32_to_cpu(fmvhdr->magic), UBI_FM_VHDR_MAGIC); in ubi_attach_fastmap() 704 av = add_vol(ai, be32_to_cpu(fmvhdr->vol_id), in ubi_attach_fastmap() 705 be32_to_cpu(fmvhdr->used_ebs), in ubi_attach_fastmap() 706 be32_to_cpu(fmvhdr->data_pad), in ubi_attach_fastmap() 707 fmvhdr->vol_type, in ubi_attach_fastmap() 708 be32_to_cpu(fmvhdr->last_eb_bytes)); in ubi_attach_fastmap() [all …]
|