Lines Matching full:head

9 struct _aarch64_ctx *get_header(struct _aarch64_ctx *head, uint32_t magic,  in get_header()  argument
15 if (!head || resv_sz < HDR_SZ) in get_header()
19 head->magic != magic && head->magic) { in get_header()
20 offs += head->size; in get_header()
21 head = GET_RESV_NEXT_HEAD(head); in get_header()
23 if (head->magic == magic) { in get_header()
24 found = head; in get_header()
41 term = GET_RESV_NEXT_HEAD(&extra->head); in validate_extra_context()
71 if ((sve->head.size != sizeof(struct sve_context)) && in validate_sve_context()
72 (sve->head.size != regs_size)) { in validate_sve_context()
96 if ((za->head.size != sizeof(struct za_context)) && in validate_za_context()
97 (za->head.size != regs_size)) { in validate_za_context()
123 if (zt->head.size != ZT_SIG_CONTEXT_SIZE(zt->nregs)) { in validate_zt_context()
141 struct _aarch64_ctx *head = in validate_reserved() local
150 while (head && !terminated && offs < resv_sz) { in validate_reserved()
151 if ((uint64_t)head & 0x0fUL) { in validate_reserved()
152 *err = "Misaligned HEAD"; in validate_reserved()
158 switch (head->magic) { in validate_reserved()
160 if (head->size) { in validate_reserved()
164 head = extra_data; in validate_reserved()
178 else if (head->size != in validate_reserved()
184 if (head->size != sizeof(struct esr_context)) in validate_reserved()
188 if (head->size != sizeof(struct tpidr2_context)) in validate_reserved()
195 sve = (struct sve_context *)head; in validate_reserved()
202 za = (struct za_context *)head; in validate_reserved()
209 zt = (struct zt_context *)head; in validate_reserved()
215 else if (head->size != in validate_reserved()
219 extra = (struct extra_context *)head; in validate_reserved()
238 memcpy(magic, &head->magic, sizeof(magic)); in validate_reserved()
245 head->magic, in validate_reserved()
253 offs += head->size; in validate_reserved()
254 if (resv_sz < offs + sizeof(*head)) { in validate_reserved()
255 *err = "HEAD Overrun"; in validate_reserved()
275 head = GET_RESV_NEXT_HEAD(head); in validate_reserved()
304 * head pointer from @shead
306 * @return: pointer to a new head where to start storing need_sz bytes, or
314 struct _aarch64_ctx *head; in get_starting_head() local
316 head = get_terminator(shead, resv_sz, &offs); in get_starting_head()
318 if (!head) in get_starting_head()
319 return head; in get_starting_head()
323 head = get_header(shead, EXTRA_MAGIC, resv_sz, &offs); in get_starting_head()
324 if (!head || resv_sz - offs < need_sz) { in get_starting_head()
334 return head; in get_starting_head()