Lines Matching refs:offs
183 static void *add_offs(void *p, size_t offs) in add_offs() argument
186 return (uint8_t *)p + offs; in add_offs()
189 static void *add_offs_or_null(void *p, size_t offs) in add_offs_or_null() argument
193 return (uint8_t *)p + offs; in add_offs_or_null()
196 void boot_mem_relocate(size_t offs) in boot_mem_relocate() argument
202 boot_mem_desc = add_offs(boot_mem_desc, offs); in boot_mem_relocate()
204 boot_mem_desc->orig_mem_start += offs; in boot_mem_relocate()
205 boot_mem_desc->orig_mem_end += offs; in boot_mem_relocate()
206 boot_mem_desc->mem_start += offs; in boot_mem_relocate()
207 boot_mem_desc->mem_end += offs; in boot_mem_relocate()
208 boot_mem_desc->reloc = add_offs(boot_mem_desc->reloc, offs); in boot_mem_relocate()
212 reloc->ptrs[n] = add_offs(reloc->ptrs[n], offs); in boot_mem_relocate()
214 offs); in boot_mem_relocate()
218 reloc->next = add_offs(reloc->next, offs); in boot_mem_relocate()
222 boot_mem_desc->padding = add_offs(boot_mem_desc->padding, offs); in boot_mem_relocate()
225 pad->start += offs; in boot_mem_relocate()
228 pad->next = add_offs(pad->next, offs); in boot_mem_relocate()