Lines Matching refs:head
18 term = GET_RESV_NEXT_HEAD(&extra->head); in validate_extra_context()
48 if ((sve->head.size != sizeof(struct sve_context)) && in validate_sve_context()
49 (sve->head.size != regs_size)) { in validate_sve_context()
73 if ((za->head.size != sizeof(struct za_context)) && in validate_za_context()
74 (za->head.size != regs_size)) { in validate_za_context()
100 if (zt->head.size != ZT_SIG_CONTEXT_SIZE(zt->nregs)) { in validate_zt_context()
118 struct _aarch64_ctx *head = in validate_reserved() local
127 while (head && !terminated && offs < resv_sz) { in validate_reserved()
128 if ((uint64_t)head & 0x0fUL) { in validate_reserved()
135 switch (head->magic) { in validate_reserved()
137 if (head->size) { in validate_reserved()
141 head = extra_data; in validate_reserved()
155 else if (head->size != in validate_reserved()
161 if (head->size != sizeof(struct esr_context)) in validate_reserved()
165 if (head->size != sizeof(struct poe_context)) in validate_reserved()
169 if (head->size != sizeof(struct tpidr2_context)) in validate_reserved()
176 sve = (struct sve_context *)head; in validate_reserved()
183 za = (struct za_context *)head; in validate_reserved()
190 zt = (struct zt_context *)head; in validate_reserved()
196 else if (head->size != in validate_reserved()
204 if (head->size != sizeof(struct gcs_context)) in validate_reserved()
211 else if (head->size != in validate_reserved()
215 extra = (struct extra_context *)head; in validate_reserved()
234 memcpy(magic, &head->magic, sizeof(magic)); in validate_reserved()
241 head->magic, in validate_reserved()
249 offs += head->size; in validate_reserved()
250 if (resv_sz < offs + sizeof(*head)) { in validate_reserved()
271 head = GET_RESV_NEXT_HEAD(head); in validate_reserved()
310 struct _aarch64_ctx *head; in get_starting_head() local
312 head = get_terminator(shead, resv_sz, &offs); in get_starting_head()
314 if (!head) in get_starting_head()
315 return head; in get_starting_head()
319 head = get_header(shead, EXTRA_MAGIC, resv_sz, &offs); in get_starting_head()
320 if (!head || resv_sz - offs < need_sz) { in get_starting_head()
330 return head; in get_starting_head()