/illumos-gate/usr/src/uts/common/io/bpf/ |
H A D | bpf_filter.c | 54 #define mtod(_a, _t) ((_t)((_a)->b_rptr)) macro 79 cp = mtod(m, uchar_t *) + k; in m_xword() 90 np = mtod(m0, uchar_t *); in m_xword() 113 cp = mtod(m, uchar_t *) + k; in m_xhalf() 124 return ((cp[0] << 8) | mtod(m0, uchar_t *)[0]); in m_xhalf() 222 A = mtod(m, uchar_t *)[k]; in bpf_filter() 288 A = mtod(m, uchar_t *)[k]; in bpf_filter() 308 X = (mtod(m, char *)[k] & 0xf) << 2; in bpf_filter()
|
H A D | bpf.c | 101 #define mtod(_v, _t) (_t)((_v)->b_rptr) macro 225 error = uiomove(mtod(m, void *), len, UIO_WRITE, uio); in bpf_movein() 1474 (void) memcpy(dst, mtod(m, const void *), count); in bpf_mcpy() 1534 marg = mtod(m, void *); in bpf_mtap()
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | mbuf.c | 133 dp = mtod(nm, char *); in m_lineup() 170 mbp->mb_pos = mtod(m, char *); in mb_initm() 237 mbp->mb_pos = mtod(mn, char *); in mb_fit() 322 dst = mtod(m, char *) + m->m_len; in mb_put_mem() 332 mbp->mb_pos = mtod(m, char *) + m->m_len; in mb_put_mem() 363 mbp->mb_pos = mtod(m, char *) + m->m_len; in mb_put_mbuf() 429 #define mb_left(m, p) (mtod(m, char *) + (m)->m_len - (p)) 531 mbp->mb_pos = mtod(m, char *); in md_get_mem()
|
H A D | acl_api.c | 89 iocb.addr = mtod(m, uintptr_t); in smbfs_acl_iocget() 127 iocb.addr = mtod(m, uintptr_t); in smbfs_acl_iocset()
|
H A D | nbns_rq.c | 480 void *rpdata = mtod(mbp->mb_top, void *); in nbns_rq_recv() 558 datap = mtod(mbp->mb_top, uint16_t *); in nbns_rq_send() 565 rc = sendto(s, mtod(mbp->mb_top, char *), mbp->mb_count, 0, in nbns_rq_send()
|
H A D | ntlm.c | 665 uchar_t *p = mtod(lm_mbp->mb_top, uchar_t *); in ntlm2_kxkey()
|
/illumos-gate/usr/src/uts/common/netsmb/ |
H A D | mchain.h | 137 #define mtod(m, t) ((t)((m)->b_rptr)) macro 163 #define mtod(m, t) ((t)(m)->m_data) macro
|
/illumos-gate/usr/src/uts/common/smbsrv/ |
H A D | mbuf.h | 104 #define mtod(m, t) ((t)((m)->m_data)) macro
|
/illumos-gate/usr/src/uts/common/net/ |
H A D | if.h | 237 (ifp) = *(mtod((m), struct ifnet **)); \
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | fil.c | 2780 (mtod(fin->fin_m, struct ip *) != fin->fin_ip)) { 3111 if ((caddr_t)ip != mtod(m, caddr_t)) { 3115 sp = (u_short *)(mtod(m, caddr_t) + add); 3122 sp = mtod(m, u_short *); 3135 if (((caddr_t)sp - mtod(m, caddr_t)) >= m->m_len) { 3138 sp = mtod(m, u_short *); 3140 if (((caddr_t)(sp + 1) - mtod(m, caddr_t)) > m->m_len) { 3144 sp = mtod(m, u_short *); 3241 bcopy(mtod(m, caddr_t) + off, cp, count); 3282 bcopy(cp, off + mtod(m, caddr_t), (unsigned)mlen);
|
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_compat.h | 618 # define MTOD(m,t) mtod(m,t) 705 # define MTOD(m,t) mtod(m,t) 1169 # define mtod(m, t) ((t)(m)->data) macro 1653 # define MTOD(m,t) mtod(m,t)
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_session.c | 163 mtod(m, uint8_t *), NETBIOS_HDR_SZ); in smb_session_send()
|