Lines Matching refs:ms
266 der_offs(struct magic_set *ms, struct magic *m, size_t nbytes) in der_offs() argument
268 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_offs()
269 size_t offs = 0, len = ms->search.s_len ? ms->search.s_len : nbytes; in der_offs()
275 DPRINTF(("%s1: %u %" SIZE_T_FORMAT "u %d\n", __func__, ms->offset, in der_offs()
283 DPRINTF(("%s2: %u %" SIZE_T_FORMAT "u %u\n", __func__, ms->offset, in der_offs()
286 offs += ms->offset + m->offset; in der_offs()
292 ms->c.li[i].off); in der_offs()
297 ms->c.li[m->cont_level - 1].off = CAST(int, offs + tlen); in der_offs()
299 ms->c.li[m->cont_level - 1].off)); in der_offs()
305 der_cmp(struct magic_set *ms, struct magic *m) in der_cmp() argument
307 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_cmp()
309 size_t offs = 0, len = ms->search.s_len; in der_cmp()
321 DPRINTF(("%s1: %d %" SIZE_T_FORMAT "u %d\n", __func__, ms->offset, in der_cmp()
331 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
361 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
374 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
380 strlcpy(ms->ms_value.s, buf, sizeof(ms->ms_value.s)); in der_cmp()