Lines Matching refs:head

5 struct _aarch64_ctx *get_header(struct _aarch64_ctx *head, uint32_t magic,  in get_header()  argument
11 if (!head || resv_sz < HDR_SZ) in get_header()
15 head->magic != magic && head->magic) { in get_header()
16 offs += head->size; in get_header()
17 head = GET_RESV_NEXT_HEAD(head); in get_header()
19 if (head->magic == magic) { in get_header()
20 found = head; in get_header()
63 if ((sve->head.size != sizeof(struct sve_context)) && in validate_sve_context()
64 (sve->head.size != regs_size)) { in validate_sve_context()
85 struct _aarch64_ctx *head = in validate_reserved() local
91 while (head && !terminated && offs < resv_sz) { in validate_reserved()
92 if ((uint64_t)head & 0x0fUL) { in validate_reserved()
97 switch (head->magic) { in validate_reserved()
99 if (head->size) in validate_reserved()
107 else if (head->size != in validate_reserved()
113 if (head->size != sizeof(struct esr_context)) in validate_reserved()
120 sve = (struct sve_context *)head; in validate_reserved()
126 else if (head->size != in validate_reserved()
130 extra = (struct extra_context *)head; in validate_reserved()
149 head->magic); in validate_reserved()
156 offs += head->size; in validate_reserved()
157 if (resv_sz < offs + sizeof(*head)) { in validate_reserved()
169 head = GET_RESV_NEXT_HEAD(head); in validate_reserved()
203 struct _aarch64_ctx *head; in get_starting_head() local
205 head = get_terminator(shead, resv_sz, &offs); in get_starting_head()
207 if (!head) in get_starting_head()
208 return head; in get_starting_head()
212 head = get_header(shead, EXTRA_MAGIC, resv_sz, &offs); in get_starting_head()
213 if (!head || resv_sz - offs < need_sz) { in get_starting_head()
223 return head; in get_starting_head()