Lines Matching refs:ptr
38 static int omapimage_verify_header(unsigned char *ptr, int image_size, in omapimage_verify_header() argument
41 struct ch_toc *toc = (struct ch_toc *)ptr; in omapimage_verify_header()
42 struct gp_header *gph = (struct gp_header *)(ptr+OMAP_CH_HDR_SIZE); in omapimage_verify_header()
87 static void omapimage_print_header(const void *ptr) in omapimage_print_header() argument
89 const struct ch_toc *toc = (struct ch_toc *)ptr; in omapimage_print_header()
91 (struct gp_header *)(ptr+OMAP_CH_HDR_SIZE); in omapimage_print_header()
113 omapimage_print_section((struct ch_settings *)(ptr+offset)); in omapimage_print_header()
125 static void omapimage_set_header(void *ptr, struct stat *sbuf, int ifd, in omapimage_set_header() argument
128 struct ch_toc *toc = (struct ch_toc *)ptr; in omapimage_set_header()
130 (ptr + 2 * sizeof(*toc)); in omapimage_set_header()
131 struct gp_header *gph = (struct gp_header *)(ptr + OMAP_CH_HDR_SIZE); in omapimage_set_header()
133 toc->section_offset = toc_offset(ptr, chs); in omapimage_set_header()
152 uint32_t *data = (uint32_t *)ptr; in omapimage_set_header()