/freebsd-11-stable/sys/compat/cloudabi/ |
H A D | cloudabi_sock.c | 111 hdr.msg_control = mtod(control, void *); 167 chdr = mtod(control, struct cmsghdr *);
|
/freebsd-11-stable/sys/netgraph/bluetooth/hci/ |
H A D | ng_hci_cmds.c | 173 ep = mtod(e, ng_hci_command_compl_ep *); 198 if (*mtod(e, u_int8_t *) == 0) { /* XXX m_pullup here? */ 250 *mtod(e, u_int8_t *)); 278 ep = mtod(e, ng_hci_command_status_ep *); 360 if (mtod(m, ng_hci_cmd_pkt_t *)->opcode != opcode) { 415 opcode = le16toh(mtod(m, ng_hci_cmd_pkt_t *)->opcode); 504 rp = mtod(mrp, ng_hci_role_discovery_rp *); 698 rp = mtod(mrp, ng_hci_read_buffer_size_rp *);
|
/freebsd-11-stable/sys/kern/ |
H A D | uipc_mbufhash.c | 55 return (mtod(m, char *) + off); 97 eh = mtod(m, struct ether_header *);
|
/freebsd-11-stable/sys/netinet6/ |
H A D | icmp6.c | 243 ip6 = mtod(m, struct ip6_hdr *); 286 oip6 = mtod(m, struct ip6_hdr *); 325 icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off); 350 oip6 = mtod(m, struct ip6_hdr *); /* adjust pointer */ 372 nip6 = mtod(m, struct ip6_hdr *); 416 /* m might change if M_LOOP. So, call mtod after this */ 424 ip6 = mtod(m, struct ip6_hdr *); 570 nip6 = mtod(n, struct ip6_hdr *); 695 nip6 = mtod(n, struct ip6_hdr *); 896 icmp6 = (struct icmp6_hdr *)(mtod( [all...] |
H A D | ip6_output.c | 187 *mtod((m), u_char *) = *(p);\ 189 p = mtod((m), u_char *);\ 256 ip6 = mtod(m, struct ip6_hdr *); 282 mhip6 = mtod(m, struct ip6_hdr *); 389 ip6 = mtod(m, struct ip6_hdr *); 469 ip6 = mtod(m, struct ip6_hdr *); 485 ip6 = mtod(m, struct ip6_hdr *); 524 *mtod(exthdrs.ip6e_dest2, u_char *) = ip6->ip6_nxt; 823 struct ip6_hbh *hbh = mtod(exthdrs.ip6e_hbh, struct ip6_hbh *); 860 ip6 = mtod( [all...] |
H A D | send.c | 142 ip6 = mtod(m, struct ip6_hdr *); 178 ip6 = mtod(m, struct ip6_hdr *); 276 ip6 = mtod(m, struct ip6_hdr *);
|
H A D | ip6_fastfwd.c | 99 ip6 = mtod(m, struct ip6_hdr *); 176 ip6 = mtod(m, struct ip6_hdr *); 244 ip6 = mtod(m, struct ip6_hdr *);
|
H A D | in6_cksum.c | 190 ip6 = mtod(m, struct ip6_hdr *); 218 w = (u_int16_t *)(mtod(m, u_char *) + off); 281 w = mtod(m, u_int16_t *);
|
/freebsd-11-stable/sys/dev/cxgb/ |
H A D | cxgb_offload.h | 107 oh = mtod(m, struct ofld_hdr *);
|
/freebsd-11-stable/sys/netgraph/ |
H A D | ng_ether_echo.c | 122 eh = mtod(m, struct ether_header *);
|
H A D | ng_gif.c | 316 *mtod(m, sa_family_t *) = tmp_af; 318 bcopy((caddr_t)&tmp_af, mtod(m, sa_family_t *), sizeof(tmp_af)); 470 dst.sa_family = *mtod(m, sa_family_t *);
|
H A D | ng_tcpmss.c | 302 ip = mtod(m, struct ip *); 319 ip = mtod(m, struct ip *); 335 ip = mtod(m, struct ip *);
|
/freebsd-11-stable/sys/dev/hatm/ |
H A D | if_hatm_rx.c | 170 for (ptr = mtod(tmp, u_char *); 171 ptr < mtod(tmp, u_char *) + tmp->m_len; ptr++) 256 for (ptr = mtod(tmp, u_char *); 257 ptr < mtod(tmp, u_char *) + tmp->m_len; ptr++)
|
/freebsd-11-stable/sys/i386/i386/ |
H A D | in_cksum.c | 212 addr = mtod(m, caddr_t) + skip; 223 addr = mtod(m, caddr_t); 276 w = (u_short *)(mtod(m, u_char *) + skip); 286 w = mtod(m, u_short *);
|
/freebsd-11-stable/sys/net/ |
H A D | if_loop.c | 327 if (mtod(m, vm_offset_t) & 3) { 330 (char *)(mtod(m, vm_offset_t) 331 - (mtod(m, vm_offset_t) & 3)), 333 m->m_data -= (mtod(m,vm_offset_t) & 3);
|
H A D | if_ethersubr.c | 379 eh = mtod(m, struct ether_header *); 451 eh = mtod(*mp, struct ether_header *); 522 eh = mtod(m, struct ether_header *); 601 evl = mtod(m, struct ether_vlan_header *); 608 eh = mtod(m, struct ether_header *); 623 eh = mtod(m, struct ether_header *); 638 eh = mtod(m, struct ether_header *); 816 eh = mtod(m, struct ether_header *); 1239 bcopy(mtod(m, char *), &vlan, sizeof(struct ether_header)); 1289 evl = mtod( [all...] |
H A D | if_fddisubr.c | 138 ah = mtod(m, struct arphdr *); 196 fh = mtod(m, struct fddi_header *); 240 l = mtod(m, struct llc *); 256 fh = mtod(m, struct fddi_header *); 336 fh = mtod(m, struct fddi_header *); 407 l = mtod(m, struct llc *);
|
/freebsd-11-stable/sys/netgraph/netflow/ |
H A D | ng_netflow.c | 671 * needed to be contiguous in pullup_len. mtod() is done at the 699 eh = mtod(m, struct ether_header *); 706 eh = mtod(m, struct ether_header *); 718 eh = mtod(m, struct ether_header *); 729 evh = mtod(m, struct ether_vlan_header *); 752 ip = mtod(m, struct ip *); 762 ip6 = mtod(m, struct ip6_hdr *); 853 ip6e = (struct ip6_ext *)(mtod(m, caddr_t) + 862 ip6e = (struct ip6_ext *)(mtod(m, caddr_t) + 870 ip6f = (struct ip6_frag *)(mtod( [all...] |
/freebsd-11-stable/sys/xdr/ |
H A D | xdr_mbuf.c | 195 bcopy(mtod(m, const char *) + xdrs->x_handy, addr, sz); 222 bcopy(addr, mtod(m, char *) + xdrs->x_handy, sz); 295 p = mtod(m, char *) + xdrs->x_handy;
|
/freebsd-11-stable/sys/netgraph/bluetooth/l2cap/ |
H A D | ng_l2cap_evnt.c | 113 hdr = mtod(con->rx_pkt, ng_l2cap_hdr_t *); 185 hdr = mtod(con->rx_pkt, ng_l2cap_cmd_hdr_t *); 300 hdr = mtod(con->rx_pkt, ng_l2cap_cmd_hdr_t *); 392 cp = mtod(con->rx_pkt, ng_l2cap_cmd_rej_cp *); 470 cp = mtod(m, ng_l2cap_con_req_cp *); 533 cp = mtod(m, ng_l2cap_con_rsp_cp *); 659 cp = mtod(m, ng_l2cap_cfg_req_cp *); 793 cp = mtod(m, ng_l2cap_cfg_rsp_cp *); 943 cp = mtod(con->rx_pkt, ng_l2cap_discon_req_cp *); 1034 cp = mtod(co [all...] |
/freebsd-11-stable/sys/netgraph/bluetooth/drivers/bt3c/ |
H A D | ng_bt3c_pccard.c | 841 mtod(sc->m, u_int8_t *)[sc->m->m_len ++] = (u_int8_t) c; 854 "Got packet indicator %#x\n", *mtod(sc->m, u_int8_t *)); 863 switch (*mtod(sc->m, u_int8_t *)) { 878 "Ignoring unknown packet type=%#x\n", *mtod(sc->m, u_int8_t *)); 893 switch (*mtod(sc->m, u_int8_t *)) { 895 c = le16toh(mtod(sc->m, 900 c = mtod(sc->m, ng_hci_scodata_pkt_t*)->length; 904 c = mtod(sc->m, ng_hci_event_pkt_t *)->length; 909 ("Invalid packet type=%#x\n", *mtod(sc->m, u_int8_t *))); 915 *mtod(s [all...] |
/freebsd-11-stable/sys/dev/cm/ |
H A D | smc90cx6.c | 383 buffer, mtod(m, u_char *)[0], 384 mtod(m, u_char *)[1], mtod(m, u_char *)[2]); 399 * PUTMEM(cm_ram_ptr + 0, mtod(m, u_char *)[0]); 402 PUTMEM(cm_ram_ptr + 1, mtod(m, u_char *)[1]); 431 cm_ram_ptr, mtod(mp, caddr_t), len); 559 ah = mtod(m, struct arc_header *); 565 cm_ram_ptr + offset, mtod(m, u_char *) + 2, len);
|
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_wds.c | 237 const struct ether_header *eh = mtod(m, const struct ether_header *); 430 wh = mtod(m, struct ieee80211_frame *); 455 wh = mtod(m, struct ieee80211_frame *); 564 wh = mtod(m, struct ieee80211_frame *); 623 eh = mtod(m, struct ether_header *); 736 wh = mtod(m0, struct ieee80211_frame *); 738 efrm = mtod(m0, u_int8_t *) + m0->m_len;
|
/freebsd-11-stable/sys/netgraph/bluetooth/drivers/ubt/ |
H A D | ng_ubt.c | 826 *mtod(m, uint8_t *)= NG_HCI_EVENT_PKT; 833 usbd_copy_out(pc, 0, mtod(m, uint8_t *) + 1, actlen); 848 hdr = mtod(m, ng_hci_event_pkt_t *); 925 *mtod(m, uint8_t *)= NG_HCI_ACL_DATA_PKT; 932 usbd_copy_out(pc, 0, mtod(m, uint8_t *) + 1, actlen); 947 hdr = mtod(m, ng_hci_acldata_pkt_t *); 1135 *mtod(m, uint8_t *) = NG_HCI_SCO_DATA_PKT; 1147 want += mtod(m, ng_hci_scodata_pkt_t *)->length; 1156 mtod(m, uint8_t *) + m->m_pkthdr.len, len); 1169 mtod( [all...] |
/freebsd-11-stable/sys/netgraph/atm/sscop/ |
H A D | ng_sscop.c | 734 bcopy((caddr_t)mtod(m, struct sscop_arg *), &a, sizeof(a)); 774 a = mtod(m, struct sscop_arg *); 798 bcopy((caddr_t)mtod(m, struct sscop_arg *), &a, sizeof(a)); 827 e = mtod(m, struct sscop_merr *); 838 a = mtod(m, struct sscop_marg *); 845 a = mtod(m, struct sscop_marg *);
|