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: %d %" SIZE_T_FORMAT "u %u\n", __func__, ms->offset, in der_offs()
283 DPRINTF(("%s2: %d %" SIZE_T_FORMAT "u %u\n", __func__, ms->offset, in der_offs()
286 offs += ms->offset + m->offset; in der_offs()
291 ms->c.li[i].off); in der_offs()
296 ms->c.li[m->cont_level - 1].off = CAST(int, offs + tlen); in der_offs()
298 ms->c.li[m->cont_level - 1].off)); in der_offs()
304 der_cmp(struct magic_set *ms, struct magic *m) in der_cmp() argument
306 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); in der_cmp()
308 size_t offs = 0, len = ms->search.s_len; in der_cmp()
320 DPRINTF(("%s1: %d %" SIZE_T_FORMAT "u %u\n", __func__, ms->offset, in der_cmp()
330 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
355 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
366 if ((ms->flags & MAGIC_DEBUG) != 0) in der_cmp()
370 strlcpy(ms->ms_value.s, buf, sizeof(ms->ms_value.s)); in der_cmp()