Lines Matching refs:bp
386 void compilebitstring(struct bits *bp);
710 struct bits *bp;
729 for (bp = ep->bits; bp != NULL; bp = bp->next) {
730 if (bp->name == bit) {
741 bp = xmalloc(sizeof *bp);
742 bp->shift = i;
743 bp->mask = entrymask;
744 bp->name = bit;
745 bp->next = ep->bits;
746 ep->bits = bp;
789 struct bits *bp;
823 for (bp = fp->last->bits; bp != NULL; bp = bp->next) {
824 if (bp->name == name) {
1154 struct bits *bp;
1164 for (bp = splicep->entry.bits; bp != NULL; bp = bp->next) {
1165 if (findvariable(fp, bp->name, sp) != 0)
1167 shift = bp->shift;
1170 ntobits = bitcount(bp->mask);
1176 progname, filename, lineno, bp->name,
1227 struct bits *bp;
1230 for (bp = fp->last->bits; bp != NULL; bp = bp->next) {
1231 if (bp->name == name) {
1233 sp->value.bits = bp;
1402 struct bits *bp;
1409 bp = ep->bits;
1424 assert(bp != NULL && (bp->mask & i));
1426 putc(bp->name, f);
1428 } while (bp->mask & i);
1429 bp = bp->next;
1704 struct bits *bp;
1721 bp = ep->bits;
1722 if (bp == NULL || bp->next != NULL || bp->shift != 0)
1724 if (bp->mask != allbitsset(fp->nbits))
1726 if (indexstr->type != S_BITSTRING || indexstr->value.bits != bp)
2285 void compilebitstring(struct bits *bp) {
2287 if (bp->shift != 0)
2289 printf("code & 0x%lx", bp->mask);
2290 if (bp->shift != 0)
2291 printf(") >> %d", bp->shift);