Lines Matching refs:inf
313 struct loadinfo inf;
331 inf.sec_size = sz;
332 inf.entry_offset = 0;
333 if (xi_load(&inf, (void *) loadadr)) {
339 dispatch(interactive, loadadr, loadadr + inf.sec_size, part,
340 loadadr + inf.entry_offset);
347 xi_elf32(struct loadinfo *inf, Elf32_Ehdr *hdr)
354 inf->sec_image = top + ph->p_offset;
355 inf->sec_size = ph->p_filesz;
357 inf->sec_pad = ph->p_memsz - ph->p_filesz;
360 inf->entry_offset = hdr->e_entry - ph->p_vaddr;
364 xi_elf64(struct loadinfo *inf, Elf64_Ehdr *hdr)
375 inf->sec_image = top + (unsigned) ph->p_offset;
376 inf->sec_size = (unsigned) ph->p_filesz;
378 inf->sec_pad = (unsigned) ph->p_memsz - (unsigned) ph->p_filesz;
381 inf->entry_offset = (unsigned) hdr->e_entry - (unsigned) ph->p_vaddr;
385 xi_load(struct loadinfo *inf, void *buf)
413 xi_elf32(inf, e32hdr);
422 xi_elf64(inf, e64hdr);
428 memmove(buf, inf->sec_image, inf->sec_size);
431 memset((char *) buf + inf->sec_size, 0, inf->sec_pad);