Lines Matching defs:hp

121 init_symtab(ctf_file_t *fp, const ctf_header_t *hp,
128 uint_t objtoff = hp->cth_objtoff;
129 uint_t funcoff = hp->cth_funcoff;
162 if (objtoff >= hp->cth_funcoff ||
173 if (funcoff >= hp->cth_typeoff) {
219 ctf_hash_t *hp;
464 hp = &fp->ctf_structs;
467 hp = &fp->ctf_unions;
470 hp = &fp->ctf_enums;
473 hp = &fp->ctf_structs;
476 if (ctf_hash_lookup(hp, fp,
478 err = ctf_hash_insert(hp, fp,
558 ctf_header_t hp;
598 bcopy(ctfsect->cts_data, &hp, sizeof (hp));
608 bzero(&hp, sizeof (hp));
609 hp.cth_preamble = h1p->cth_preamble;
610 hp.cth_objtoff = h1p->cth_objtoff;
611 hp.cth_funcoff = h1p->cth_funcoff;
612 hp.cth_typeoff = h1p->cth_typeoff;
613 hp.cth_stroff = h1p->cth_stroff;
614 hp.cth_strlen = h1p->cth_strlen;
620 size = hp.cth_stroff + hp.cth_strlen;
624 if (hp.cth_lbloff > size || hp.cth_objtoff > size ||
625 hp.cth_funcoff > size || hp.cth_typeoff > size ||
626 hp.cth_stroff > size)
629 if (hp.cth_lbloff > hp.cth_objtoff ||
630 hp.cth_objtoff > hp.cth_funcoff ||
631 hp.cth_funcoff > hp.cth_typeoff ||
632 hp.cth_typeoff > hp.cth_stroff)
635 if ((hp.cth_lbloff & 3) || (hp.cth_objtoff & 1) ||
636 (hp.cth_funcoff & 1) || (hp.cth_typeoff & 3))
644 if (hp.cth_flags & CTF_F_COMPRESS) {
698 fp->ctf_version = hp.cth_version;
699 fp->ctf_fileops = &ctf_fileops[hp.cth_version];
721 fp->ctf_str[CTF_STRTAB_0].cts_strs = (const char *)buf + hp.cth_stroff;
722 fp->ctf_str[CTF_STRTAB_0].cts_len = hp.cth_strlen;
737 if (hp.cth_parlabel != 0)
738 fp->ctf_parlabel = ctf_strptr(fp, hp.cth_parlabel);
739 if (hp.cth_parname != 0)
740 fp->ctf_parname = ctf_strptr(fp, hp.cth_parname);
759 if ((err = init_symtab(fp, &hp, symsect, strsect)) != 0) {
765 if ((err = init_types(fp, &hp)) != 0) {