Home
last modified time | relevance | path

Searched refs:vid_hdr (Results 1 – 9 of 9) sorted by relevance

/drivers/mtd/ubi/
Deba.c517 struct ubi_vid_hdr *vid_hdr; in ubi_eba_read_leb() local
553 vid_hdr = ubi_get_vid_hdr(vidb); in ubi_eba_read_leb()
597 ubi_assert(lnum < be32_to_cpu(vid_hdr->used_ebs)); in ubi_eba_read_leb()
598 ubi_assert(len == be32_to_cpu(vid_hdr->data_size)); in ubi_eba_read_leb()
600 crc = be32_to_cpu(vid_hdr->data_crc); in ubi_eba_read_leb()
722 struct ubi_vid_hdr *vid_hdr; in try_recover_peb() local
744 vid_hdr = ubi_get_vid_hdr(vidb); in try_recover_peb()
745 ubi_assert(vid_hdr->vol_type == UBI_VID_DYNAMIC); in try_recover_peb()
763 vid_hdr->sqnum = cpu_to_be64(ubi_next_sqnum(ubi)); in try_recover_peb()
764 vid_hdr->copy_flag = 1; in try_recover_peb()
[all …]
Dio.c100 const struct ubi_vid_hdr *vid_hdr);
514 struct ubi_vid_hdr vid_hdr; in nor_erase_prepare() local
532 ubi_init_vid_buf(ubi, &vidb, &vid_hdr); in nor_erase_prepare()
533 ubi_assert(&vid_hdr == ubi_get_vid_hdr(&vidb)); in nor_erase_prepare()
882 const struct ubi_vid_hdr *vid_hdr) in validate_vid_hdr() argument
884 int vol_type = vid_hdr->vol_type; in validate_vid_hdr()
885 int copy_flag = vid_hdr->copy_flag; in validate_vid_hdr()
886 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr()
887 int lnum = be32_to_cpu(vid_hdr->lnum); in validate_vid_hdr()
888 int compat = vid_hdr->compat; in validate_vid_hdr()
[all …]
Dattach.c310 struct ubi_vid_hdr *vid_hdr, int ec) in add_fastmap() argument
318 aeb->vol_id = be32_to_cpu(vid_hdr->vol_id); in add_fastmap()
319 aeb->sqnum = be64_to_cpu(vid_hdr->sqnum); in add_fastmap()
344 const struct ubi_vid_hdr *vid_hdr, in validate_vid_hdr() argument
347 int vol_type = vid_hdr->vol_type; in validate_vid_hdr()
348 int vol_id = be32_to_cpu(vid_hdr->vol_id); in validate_vid_hdr()
349 int used_ebs = be32_to_cpu(vid_hdr->used_ebs); in validate_vid_hdr()
350 int data_pad = be32_to_cpu(vid_hdr->data_pad); in validate_vid_hdr()
391 ubi_dump_vid_hdr(vid_hdr); in validate_vid_hdr()
411 const struct ubi_vid_hdr *vid_hdr) in add_volume() argument
[all …]
Ddebug.c82 void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr) in ubi_dump_vid_hdr() argument
85 pr_err("\tmagic %08x\n", be32_to_cpu(vid_hdr->magic)); in ubi_dump_vid_hdr()
86 pr_err("\tversion %d\n", (int)vid_hdr->version); in ubi_dump_vid_hdr()
87 pr_err("\tvol_type %d\n", (int)vid_hdr->vol_type); in ubi_dump_vid_hdr()
88 pr_err("\tcopy_flag %d\n", (int)vid_hdr->copy_flag); in ubi_dump_vid_hdr()
89 pr_err("\tcompat %d\n", (int)vid_hdr->compat); in ubi_dump_vid_hdr()
90 pr_err("\tvol_id %d\n", be32_to_cpu(vid_hdr->vol_id)); in ubi_dump_vid_hdr()
91 pr_err("\tlnum %d\n", be32_to_cpu(vid_hdr->lnum)); in ubi_dump_vid_hdr()
92 pr_err("\tdata_size %d\n", be32_to_cpu(vid_hdr->data_size)); in ubi_dump_vid_hdr()
93 pr_err("\tused_ebs %d\n", be32_to_cpu(vid_hdr->used_ebs)); in ubi_dump_vid_hdr()
[all …]
Dvtbl.c303 struct ubi_vid_hdr *vid_hdr; in create_vtbl() local
312 vid_hdr = ubi_get_vid_hdr(vidb); in create_vtbl()
321 vid_hdr->vol_type = UBI_LAYOUT_VOLUME_TYPE; in create_vtbl()
322 vid_hdr->vol_id = cpu_to_be32(UBI_LAYOUT_VOLUME_ID); in create_vtbl()
323 vid_hdr->compat = UBI_LAYOUT_VOLUME_COMPAT; in create_vtbl()
324 vid_hdr->data_size = vid_hdr->used_ebs = in create_vtbl()
325 vid_hdr->data_pad = cpu_to_be32(0); in create_vtbl()
326 vid_hdr->lnum = cpu_to_be32(copy); in create_vtbl()
327 vid_hdr->sqnum = cpu_to_be64(++ai->max_sqnum); in create_vtbl()
343 err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); in create_vtbl()
Ddebug.h26 void ubi_dump_vid_hdr(const struct ubi_vid_hdr *vid_hdr);
Dwl.c656 struct ubi_vid_hdr *vid_hdr; local
667 vid_hdr = ubi_get_vid_hdr(vidb);
807 vol_id = be32_to_cpu(vid_hdr->vol_id);
808 lnum = be32_to_cpu(vid_hdr->lnum);
Dubi.h829 int ec, const struct ubi_vid_hdr *vid_hdr, int bitflips);
961 int pnum, const struct ubi_vid_hdr *vid_hdr);
/drivers/video/fbdev/
Dhyperv_fb.c187 struct synthvid_msg_hdr vid_hdr; member
247 msg->pipe_hdr.size = msg->vid_hdr.size; in synthvid_send()
250 msg->vid_hdr.size + sizeof(struct pipe_msg_hdr), in synthvid_send()
272 msg.vid_hdr.type = SYNTHVID_SITUATION_UPDATE; in synthvid_send_situ()
273 msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + in synthvid_send_situ()
295 msg.vid_hdr.type = SYNTHVID_POINTER_POSITION; in synthvid_send_ptr()
296 msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + in synthvid_send_ptr()
305 msg.vid_hdr.type = SYNTHVID_POINTER_SHAPE; in synthvid_send_ptr()
306 msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + in synthvid_send_ptr()
331 msg.vid_hdr.type = SYNTHVID_DIRT; in synthvid_update()
[all …]