Lines Matching full:header

119  * by its header and extracting information from this header.
120 * The bitstream header has 5 sections starting with the letters a,b,c...
127 unsigned char *header = (unsigned char *)image_ptr; in parse_header() local
129 uint32_t length = XLNX_BITSTREAM_SECTION_LENGTH(header); in parse_header()
132 header += 0x4U + length; in parse_header()
134 if (*header++ != 'a') { in parse_header()
139 length = XLNX_BITSTREAM_SECTION_LENGTH(header); in parse_header()
141 header += 0x2U; in parse_header()
143 LOG_DBG("Design name = %s", header); in parse_header()
145 header += length; in parse_header()
147 if (*header++ != 'b') { in parse_header()
152 length = XLNX_BITSTREAM_SECTION_LENGTH(header); in parse_header()
154 header += 0x2U; in parse_header()
155 LOG_DBG("Part name = %s", header); in parse_header()
157 header += length; in parse_header()
159 if (*header++ != 'c') { in parse_header()
164 length = XLNX_BITSTREAM_SECTION_LENGTH(header); in parse_header()
166 header += 0x2U; in parse_header()
168 LOG_DBG("Date = %s", header); in parse_header()
170 header += length; in parse_header()
172 if (*header++ != 'd') { in parse_header()
177 length = XLNX_BITSTREAM_SECTION_LENGTH(header); in parse_header()
179 header += 0x2U; in parse_header()
181 LOG_DBG("Time = %s", header); in parse_header()
183 header += length; in parse_header()
185 if (*header++ != 'e') { in parse_header()
195 ((uint32_t)*header << 24) | ((uint32_t) *(header + 1) << 16) | in parse_header()
196 ((uint32_t) *(header + 2) << 8) | ((uint32_t) *(header + 3)); in parse_header()
198 return (uint32_t *)header; in parse_header()