Lines Matching refs:b_rptr
165 mh = (struct ether_header *)mp->b_rptr; in gld_interpret_ether()
195 mh = (struct ether_header *)mp->b_rptr; in gld_interpret_ether()
222 evhp = (struct ether_vlan_header *)mp->b_rptr; in gld_interpret_ether()
243 ovbcopy(mp->b_rptr, mp->b_rptr + VTAG_SIZE, in gld_interpret_ether()
245 mp->b_rptr += VTAG_SIZE; in gld_interpret_ether()
321 snaphdr = (struct llc_snap_hdr *)(mp->b_rptr + pktinfo->macLen); in gld_interpret_ether()
337 dl_unitdata_req_t *dlp = (dl_unitdata_req_t *)mp->b_rptr; in gld_unitdata_ether()
389 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_ether()
394 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_ether()
401 nmp->b_rptr -= sizeof (typelen); in gld_unitdata_ether()
402 SET_NET_USHORT(*(uint16_t *)nmp->b_rptr, typelen); in gld_unitdata_ether()
404 nmp->b_rptr -= sizeof (uint16_t); in gld_unitdata_ether()
405 SET_NET_USHORT(*(uint16_t *)nmp->b_rptr, vptag); in gld_unitdata_ether()
407 nmp->b_rptr -= sizeof (uint16_t); in gld_unitdata_ether()
408 SET_NET_USHORT(*(uint16_t *)nmp->b_rptr, vptag); in gld_unitdata_ether()
410 nmp->b_rptr -= (ETHERADDRL * 2); in gld_unitdata_ether()
411 mh = (struct ether_header *)nmp->b_rptr; in gld_unitdata_ether()
441 ovbcopy(nmp->b_rptr, nmp->b_rptr - VTAG_SIZE, 2 * ETHERADDRL); in gld_insert_vtag_ether()
442 nmp->b_rptr -= VTAG_SIZE; in gld_insert_vtag_ether()
443 evhp = (struct ether_vlan_header *)nmp->b_rptr; in gld_insert_vtag_ether()
453 evhp = (struct ether_vlan_header *)nmp->b_rptr; in gld_insert_vtag_ether()
454 ehp = (struct ether_header *)mp->b_rptr; in gld_insert_vtag_ether()
460 mp->b_rptr += sizeof (struct ether_header); in gld_insert_vtag_ether()
479 dl_unitdata_req_t *dlp = (dl_unitdata_req_t *)mp->b_cont->b_rptr; in gld_fastpath_ether()
524 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_fastpath_ether()
528 nmp->b_rptr -= sizeof (typelen); in gld_fastpath_ether()
529 SET_NET_USHORT(*(uint16_t *)nmp->b_rptr, typelen); in gld_fastpath_ether()
536 nmp->b_rptr -= sizeof (uint16_t); in gld_fastpath_ether()
537 SET_NET_USHORT(*(uint16_t *)nmp->b_rptr, vptag); in gld_fastpath_ether()
539 nmp->b_rptr -= sizeof (uint16_t); in gld_fastpath_ether()
540 SET_NET_USHORT(*(uint16_t *)nmp->b_rptr, vptag); in gld_fastpath_ether()
542 nmp->b_rptr -= (ETHERADDRL * 2); in gld_fastpath_ether()
543 mh = (struct ether_header *)nmp->b_rptr; in gld_fastpath_ether()
611 grh = (ipoib_pgrh_t *)mp->b_rptr; in gld_interpret_ib()
614 (mp->b_rptr + IPOIB_GRH_SIZE); in gld_interpret_ib()
635 gldp = (ipoib_ptxhdr_t *)mp->b_rptr; in gld_interpret_ib()
681 mp->b_rptr += IPOIB_ADDRL; in gld_interpret_ib()
711 grh = (ipoib_pgrh_t *)mp->b_rptr; in gld_interpret_ib()
712 mp->b_rptr += IPOIB_GRH_SIZE; in gld_interpret_ib()
793 (mp->b_rptr))->ipoib_type); in gld_interpret_ib()
889 dl_unitdata_req_t *dlp = (dl_unitdata_req_t *)mp->b_rptr; in gld_unitdata_ib()
919 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_ib()
924 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_ib()
931 nmp->b_rptr -= sizeof (ipoib_ptxhdr_t); in gld_unitdata_ib()
932 gldp = (ipoib_ptxhdr_t *)nmp->b_rptr; in gld_unitdata_ib()
944 dl_unitdata_req_t *dlp = (dl_unitdata_req_t *)mp->b_cont->b_rptr; in gld_fastpath_ib()
965 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_fastpath_ib()
969 nmp->b_rptr -= sizeof (ipoib_ptxhdr_t); in gld_fastpath_ib()
970 tgldp = (ipoib_ptxhdr_t *)nmp->b_rptr; in gld_fastpath_ib()
1058 mh = (struct fddi_mac_frm *)mp->b_rptr; in gld_interpret_fddi()
1125 snaphdr = (struct llc_snap_hdr *)(mp->b_rptr + pktinfo->macLen); in gld_interpret_fddi()
1142 dl_unitdata_req_t *dlp = (dl_unitdata_req_t *)mp->b_rptr; in gld_unitdata_fddi()
1181 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_fddi()
1186 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_fddi()
1196 nmp->b_rptr -= sizeof (struct llc_snap_hdr); in gld_unitdata_fddi()
1197 snap = (struct llc_snap_hdr *)(nmp->b_rptr); in gld_unitdata_fddi()
1202 nmp->b_rptr -= sizeof (struct fddi_mac_frm); in gld_unitdata_fddi()
1204 mh = (struct fddi_mac_frm *)nmp->b_rptr; in gld_unitdata_fddi()
1222 dl_unitdata_req_t *dlp = (dl_unitdata_req_t *)mp->b_cont->b_rptr; in gld_fastpath_fddi()
1250 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_fastpath_fddi()
1257 nmp->b_rptr -= sizeof (struct llc_snap_hdr); in gld_fastpath_fddi()
1258 snap = (struct llc_snap_hdr *)(nmp->b_rptr); in gld_fastpath_fddi()
1263 nmp->b_rptr -= sizeof (struct fddi_mac_frm); in gld_fastpath_fddi()
1265 mh = (struct fddi_mac_frm *)nmp->b_rptr; in gld_fastpath_fddi()
1433 mh = (struct tr_mac_frm *)mp->b_rptr; in gld_interpret_tr()
1493 mh = (struct tr_mac_frm *)mp->b_rptr; /* to look at RIF */ in gld_interpret_tr()
1526 snaphdr = (struct llc_snap_hdr *)(mp->b_rptr + pktinfo->macLen); in gld_interpret_tr()
1534 mp->b_rptr + pktinfo->macLen, in gld_interpret_tr()
1548 dl_unitdata_req_t *dlp = (dl_unitdata_req_t *)mp->b_rptr; in gld_unitdata_tr()
1611 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_tr()
1619 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_tr()
1629 nmp->b_rptr -= sizeof (struct llc_snap_hdr); in gld_unitdata_tr()
1630 snap = (struct llc_snap_hdr *)(nmp->b_rptr); in gld_unitdata_tr()
1638 gld_rcc_send(macinfo, WR(gld->gld_qptr), dhost, &rh, llcmp->b_rptr); in gld_unitdata_tr()
1643 nmp->b_rptr -= rh->len; in gld_unitdata_tr()
1644 bcopy((caddr_t)rh, (caddr_t)nmp->b_rptr, rh->len); in gld_unitdata_tr()
1656 nmp->b_rptr -= sizeof (struct tr_mac_frm_nori); in gld_unitdata_tr()
1657 mh = (struct tr_mac_frm_nori *)nmp->b_rptr; in gld_unitdata_tr()
1689 dl_unitdata_req_t *dlp = (dl_unitdata_req_t *)mp->b_cont->b_rptr; in gld_fastpath_tr()
1727 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_fastpath_tr()
1734 nmp->b_rptr -= sizeof (struct llc_snap_hdr); in gld_fastpath_tr()
1735 snap = (struct llc_snap_hdr *)(nmp->b_rptr); in gld_fastpath_tr()
1742 nmp->b_rptr -= ri_ste_def.len; in gld_fastpath_tr()
1743 bcopy((caddr_t)&ri_ste_def, (caddr_t)nmp->b_rptr, in gld_fastpath_tr()
1750 nmp->b_rptr -= sizeof (struct tr_mac_frm_nori); in gld_fastpath_tr()
1751 mh = (struct tr_mac_frm_nori *)nmp->b_rptr; in gld_fastpath_tr()
1920 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_send_rqr()
1922 nmp->b_rptr -= sizeof (struct rde_pdu); in gld_send_rqr()
1923 npdu = (struct rde_pdu *)(nmp->b_rptr); in gld_send_rqr()
1930 nmp->b_rptr -= LLC_HDR1_LEN; in gld_send_rqr()
1931 nsnaphdr = (struct llc_snap_hdr *)(nmp->b_rptr); in gld_send_rqr()
1938 nmp->b_rptr -= 2; in gld_send_rqr()
1939 nrh = (struct gld_ri *)(nmp->b_rptr); in gld_send_rqr()
1951 nmp->b_rptr -= rh->len; in gld_send_rqr()
1952 nrh = (struct gld_ri *)(nmp->b_rptr); in gld_send_rqr()
1958 nmp->b_rptr -= sizeof (struct tr_mac_frm_nori); in gld_send_rqr()
1959 nmh = (struct tr_mac_frm_nori *)(nmp->b_rptr); in gld_send_rqr()
2087 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_rde_pdu_req()
2089 nmp->b_rptr -= sizeof (struct rde_pdu); in gld_rde_pdu_req()
2090 npdu = (struct rde_pdu *)(nmp->b_rptr); in gld_rde_pdu_req()
2104 nmp->b_rptr -= LLC_HDR1_LEN; in gld_rde_pdu_req()
2105 nsnaphdr = (struct llc_snap_hdr *)(nmp->b_rptr); in gld_rde_pdu_req()
2113 nmp->b_rptr -= rh->len; in gld_rde_pdu_req()
2114 nrh = (struct gld_ri *)(nmp->b_rptr); in gld_rde_pdu_req()
2124 nmp->b_rptr -= 2; in gld_rde_pdu_req()
2125 nrh = (struct gld_ri *)(nmp->b_rptr); in gld_rde_pdu_req()
2134 nmp->b_rptr -= sizeof (struct tr_mac_frm_nori); in gld_rde_pdu_req()
2135 nmh = (struct tr_mac_frm_nori *)(nmp->b_rptr); in gld_rde_pdu_req()