Lines Matching defs:hp

111 init_symtab(ctf_file_t *fp, const ctf_header_t *hp,
118 uint_t objtoff = hp->cth_objtoff;
119 uint_t funcoff = hp->cth_funcoff;
152 if (objtoff >= hp->cth_funcoff ||
163 if (funcoff >= hp->cth_typeoff) {
209 ctf_hash_t *hp;
454 hp = &fp->ctf_structs;
457 hp = &fp->ctf_unions;
460 hp = &fp->ctf_enums;
463 hp = &fp->ctf_structs;
466 if (ctf_hash_lookup(hp, fp,
468 err = ctf_hash_insert(hp, fp,
548 ctf_header_t hp;
588 bcopy(ctfsect->cts_data, &hp, sizeof (hp));
598 bzero(&hp, sizeof (hp));
599 hp.cth_preamble = h1p->cth_preamble;
600 hp.cth_objtoff = h1p->cth_objtoff;
601 hp.cth_funcoff = h1p->cth_funcoff;
602 hp.cth_typeoff = h1p->cth_typeoff;
603 hp.cth_stroff = h1p->cth_stroff;
604 hp.cth_strlen = h1p->cth_strlen;
610 size = hp.cth_stroff + hp.cth_strlen;
614 if (hp.cth_lbloff > size || hp.cth_objtoff > size ||
615 hp.cth_funcoff > size || hp.cth_typeoff > size ||
616 hp.cth_stroff > size)
619 if (hp.cth_lbloff > hp.cth_objtoff ||
620 hp.cth_objtoff > hp.cth_funcoff ||
621 hp.cth_funcoff > hp.cth_typeoff ||
622 hp.cth_typeoff > hp.cth_stroff)
625 if ((hp.cth_lbloff & 3) || (hp.cth_objtoff & 1) ||
626 (hp.cth_funcoff & 1) || (hp.cth_typeoff & 3))
634 if (hp.cth_flags & CTF_F_COMPRESS) {
681 fp->ctf_version = hp.cth_version;
682 fp->ctf_fileops = &ctf_fileops[hp.cth_version];
704 fp->ctf_str[CTF_STRTAB_0].cts_strs = (const char *)buf + hp.cth_stroff;
705 fp->ctf_str[CTF_STRTAB_0].cts_len = hp.cth_strlen;
720 if (hp.cth_parlabel != 0)
721 fp->ctf_parlabel = ctf_strptr(fp, hp.cth_parlabel);
722 if (hp.cth_parname != 0)
723 fp->ctf_parname = ctf_strptr(fp, hp.cth_parname);
742 if ((err = init_symtab(fp, &hp, symsect, strsect)) != 0) {
748 if ((err = init_types(fp, &hp)) != 0) {