Lines Matching refs:off

313 		switch (moffset(ms, m, &bb, &ms->c.li[cont_level].off)) {  in match()
350 ms->c.li[cont_level - 1].off; in match()
443 &ms->c.li[cont_level].off)) { in match()
1442 do_ops(struct magic *m, intmax_t lhs, intmax_t off) in do_ops() argument
1445 if (off) { in do_ops()
1448 offset = lhs & off; in do_ops()
1451 offset = lhs | off; in do_ops()
1454 offset = lhs ^ off; in do_ops()
1457 offset = lhs + off; in do_ops()
1460 offset = lhs - off; in do_ops()
1463 offset = lhs * off; in do_ops()
1466 offset = lhs / off; in do_ops()
1469 offset = lhs % off; in do_ops()
1597 intmax_t off = m->in_offset; in mget() local
1601 RCAST(const void *, s + offset + off)); in mget()
1605 if (OFFSET_OOB(nbytes, offset + off, 1)) in mget()
1607 off = SEXT(sgn,8,q->b); in mget()
1610 if (OFFSET_OOB(nbytes, offset + off, 2)) in mget()
1612 off = SEXT(sgn,16,q->h); in mget()
1615 if (OFFSET_OOB(nbytes, offset + off, 2)) in mget()
1617 off = SEXT(sgn,16,BE16(q)); in mget()
1620 if (OFFSET_OOB(nbytes, offset + off, 2)) in mget()
1622 off = SEXT(sgn,16,LE16(q)); in mget()
1625 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1627 off = SEXT(sgn,32,q->l); in mget()
1631 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1633 off = SEXT(sgn,32,BE32(q)); in mget()
1637 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1639 off = SEXT(sgn,32,LE32(q)); in mget()
1642 if (OFFSET_OOB(nbytes, offset + off, 4)) in mget()
1644 off = SEXT(sgn,32,ME32(q)); in mget()
1647 if (OFFSET_OOB(nbytes, offset + off, 8)) in mget()
1649 off = SEXT(sgn,64,BE64(q)); in mget()
1652 if (OFFSET_OOB(nbytes, offset + off, 8)) in mget()
1654 off = SEXT(sgn,64,LE64(q)); in mget()
1662 fprintf(stderr, "indirect offs=%jd\n", off); in mget()
1668 offset = do_ops(m, SEXT(sgn,8,p->b), off); in mget()
1673 offset = do_ops(m, SEXT(sgn,16,BE16(p)), off); in mget()
1678 offset = do_ops(m, SEXT(sgn,16,LE16(p)), off); in mget()
1683 offset = do_ops(m, SEXT(sgn,16,p->h), off); in mget()
1692 offset = do_ops(m, SEXT(sgn,32,lhs), off); in mget()
1701 offset = do_ops(m, SEXT(sgn,32,lhs), off); in mget()
1706 offset = do_ops(m, SEXT(sgn,32,ME32(p)), off); in mget()
1711 offset = do_ops(m, SEXT(sgn,32,p->l), off); in mget()
1716 offset = do_ops(m, SEXT(sgn,64,LE64(p)), off); in mget()
1721 offset = do_ops(m, SEXT(sgn,64,BE64(p)), off); in mget()
1736 offset += ms->c.li[cont_level - 1].off; in mget()