Lines Matching refs:nmp

1237 	mblk_t *nmp;  in llc1_inforeq()  local
1253 nmp = mexchange(q, mp, bufsize, M_PCPROTO, DL_INFO_ACK); in llc1_inforeq()
1255 if (nmp) { in llc1_inforeq()
1256 nmp->b_wptr = nmp->b_rptr + sizeof (dl_info_ack_t); in llc1_inforeq()
1257 dlp = (dl_info_ack_t *)nmp->b_rptr; in llc1_inforeq()
1273 nmp->b_wptr += dlp->dl_addr_length + 1; in llc1_inforeq()
1288 nmp->b_wptr += dlp->dl_brdcst_addr_length; in llc1_inforeq()
1298 qreply(q, nmp); in llc1_inforeq()
1320 mblk_t *nmp; in llc1_unitdata() local
1352 nmp = allocb(macinfo->llcp_addrlen * 2 + 2 + 8, BPRI_MED); in llc1_unitdata()
1353 hdr = (struct ether_header *)nmp->b_rptr; in llc1_unitdata()
1359 nmp->b_wptr = nmp->b_rptr + LLC1_CSMACD_HDR_SIZE; in llc1_unitdata()
1360 llchdr = (struct llchdr *)nmp->b_wptr; in llc1_unitdata()
1383 nmp->b_wptr += sizeof (struct llchdr); in llc1_unitdata()
1386 bcopy(lld->llc_snap, nmp->b_wptr, 5); in llc1_unitdata()
1388 nmp->b_wptr += 5; in llc1_unitdata()
1410 DB_TYPE(nmp) = M_DATA; /* ether/llc header is data */ in llc1_unitdata()
1411 nmp->b_cont = mp->b_cont; /* use the data given */ in llc1_unitdata()
1413 mp = nmp; in llc1_unitdata()
1416 nmp = allocb(sizeof (struct llchdr)+sizeof (struct snaphdr), in llc1_unitdata()
1418 if (nmp == NULL) in llc1_unitdata()
1420 llchdr = (struct llchdr *)(nmp->b_rptr); in llc1_unitdata()
1421 nmp->b_wptr += sizeof (struct llchdr); in llc1_unitdata()
1430 bcopy(lld->llc_snap, nmp->b_wptr, 5); in llc1_unitdata()
1431 nmp->b_wptr += 5; in llc1_unitdata()
1433 nmp->b_cont = mp->b_cont; in llc1_unitdata()
1434 mp->b_cont = nmp; in llc1_unitdata()
1435 nmp = mp; in llc1_unitdata()
1461 if (nmp != NULL) in llc1_unitdata()
1462 freemsg(nmp); /* free on failure */ in llc1_unitdata()
1477 mblk_t *nmp, *udmp; in llc1_recv() local
1492 nmp = mp; in llc1_recv()
1493 udata = (dl_unitdata_ind_t *)(nmp->b_rptr); in llc1_recv()
1494 addr = (struct ether_addr *)(nmp->b_rptr + in llc1_recv()
1496 llchdr = (struct llchdr *)(nmp->b_cont->b_rptr); in llc1_recv()
1507 nmp = NULL; in llc1_recv()
1604 nmp = llc1_form_udata(lld, macinfo, mp); in llc1_recv()
1614 nmp = llc1_form_udata(lld, macinfo, mp); in llc1_recv()
1629 nmp = llc1_xid_reply(macinfo, in llc1_recv()
1641 nmp = llc1_xid_ind_con(lld, in llc1_recv()
1660 nmp = llc1_test_reply(macinfo, in llc1_recv()
1674 nmp = llc1_test_ind_con(lld, in llc1_recv()
1680 nmp = mp; in llc1_recv()
1683 mp = nmp; in llc1_recv()
1920 mblk_t *nmp; in llc1_enable_multi() local
1922 nmp = dupmsg(mp); in llc1_enable_multi()
1923 if (nmp) { in llc1_enable_multi()
1924 nmp->b_cont = NULL; in llc1_enable_multi()
1925 DB_TYPE(nmp) = M_PROTO; in llc1_enable_multi()
1926 putnext(WR(macinfo->llcp_queue), nmp); in llc1_enable_multi()
2147 mblk_t *udmp, *nmp; in llc1_form_udata() local
2168 nmp = dupmsg(mp); /* make a copy for future streams */ in llc1_form_udata()
2224 nmp = dupmsg(mp); /* make a copy for future streams */ in llc1_form_udata()
2259 mp = nmp; in llc1_form_udata()
2269 mblk_t *nmp, *rmp; in llc1_xid_reply() local
2288 nmp = allocb(msgdsize(mp) + LLC_XID_INFO_SIZE, BPRI_MED); in llc1_xid_reply()
2289 if (nmp == NULL) { in llc1_xid_reply()
2297 msgether = (struct ether_header *)nmp->b_rptr; in llc1_xid_reply()
2298 nmp->b_wptr += sizeof (struct ether_header); in llc1_xid_reply()
2307 rmp = nmp; in llc1_xid_reply()
2332 rmp->b_cont = nmp; in llc1_xid_reply()
2335 msgllc = (struct llchdr *)nmp->b_wptr; in llc1_xid_reply()
2337 nmp->b_wptr += sizeof (struct llchdr); in llc1_xid_reply()
2349 nmp->b_wptr += sizeof (struct llchdr_xid); in llc1_xid_reply()
2363 mblk_t *nmp; in llc1_xid_ind_con() local
2369 nmp = allocb(sizeof (dl_xid_ind_t) + 2 * (macinfo->llcp_addrlen + 1), in llc1_xid_ind_con()
2371 if (nmp == NULL) in llc1_xid_ind_con()
2383 xid = (dl_xid_ind_t *)nmp->b_rptr; in llc1_xid_ind_con()
2390 (nmp->b_rptr + xid->dl_dest_addr_offset), in llc1_xid_ind_con()
2396 (nmp->b_rptr + xid->dl_dest_addr_offset), in llc1_xid_ind_con()
2409 (nmp->b_rptr + xid->dl_src_addr_offset), in llc1_xid_ind_con()
2415 (nmp->b_rptr + xid->dl_src_addr_offset), in llc1_xid_ind_con()
2418 LLCADDR(nmp->b_rptr, xid->dl_src_addr_offset)->llca_sap = in llc1_xid_ind_con()
2421 nmp->b_wptr = nmp->b_rptr + sizeof (dl_xid_ind_t) + in llc1_xid_ind_con()
2430 DB_TYPE(nmp) = M_PROTO; in llc1_xid_ind_con()
2434 nmp->b_cont = dupmsg(mp); in llc1_xid_ind_con()
2435 if (nmp->b_cont) { in llc1_xid_ind_con()
2436 nmp->b_cont->b_rptr += in llc1_xid_ind_con()
2443 nmp->b_cont = dupmsg(mp->b_cont); in llc1_xid_ind_con()
2444 (void) adjmsg(nmp->b_cont, sizeof (struct llchdr)); in llc1_xid_ind_con()
2446 putnext(RD(lld->llc_qptr), nmp); in llc1_xid_ind_con()
2460 mblk_t *nmp, *rmp; in llc1_xid_req_res() local
2479 nmp = allocb(sizeof (struct ether_header) + sizeof (struct llchdr) + in llc1_xid_req_res()
2482 if (nmp == NULL) in llc1_xid_req_res()
2486 hdr = (struct ether_header *)nmp->b_rptr; in llc1_xid_req_res()
2492 nmp->b_wptr = nmp->b_rptr + in llc1_xid_req_res()
2495 rmp = nmp; in llc1_xid_req_res()
2501 freemsg(nmp); in llc1_xid_req_res()
2516 rmp->b_cont = nmp; in llc1_xid_req_res()
2517 llchdr = (struct llchdr *)nmp->b_rptr; in llc1_xid_req_res()
2518 nmp->b_wptr += sizeof (struct llchdr); in llc1_xid_req_res()
2526 nmp->b_cont = mp->b_cont; in llc1_xid_req_res()
2541 mblk_t *nmp; in llc1_test_reply() local
2561 nmp = copymsg(mp); /* so info field is duplicated */ in llc1_test_reply()
2562 if (nmp == NULL) { in llc1_test_reply()
2563 nmp = mp; in llc1_test_reply()
2573 if (DB_TYPE(nmp) == M_PROTO) { in llc1_test_reply()
2574 dl_unitdata_req_t *udr = (dl_unitdata_req_t *)nmp->b_rptr; in llc1_test_reply()
2575 dl_unitdata_ind_t *udi = (dl_unitdata_ind_t *)nmp->b_rptr; in llc1_test_reply()
2582 msgllc = (struct llchdr *)nmp->b_cont->b_rptr; in llc1_test_reply()
2584 msgether = (struct ether_header *)nmp->b_rptr; in llc1_test_reply()
2601 putnext(WR(macinfo->llcp_queue), nmp); in llc1_test_reply()
2613 mblk_t *nmp; in llc1_test_ind_con() local
2619 nmp = allocb(sizeof (dl_test_ind_t) + 2 * (ETHERADDRL + 1), BPRI_MED); in llc1_test_ind_con()
2620 if (nmp == NULL) in llc1_test_ind_con()
2632 test = (dl_test_ind_t *)nmp->b_rptr; in llc1_test_ind_con()
2639 LLCADDR(nmp->b_rptr, test->dl_dest_addr_offset)->llca_addr, in llc1_test_ind_con()
2645 (nmp->b_rptr + test->dl_dest_addr_offset), in llc1_test_ind_con()
2658 LLCADDR(nmp->b_rptr, test->dl_src_addr_offset)->llca_addr, in llc1_test_ind_con()
2664 (nmp->b_rptr + test->dl_src_addr_offset), in llc1_test_ind_con()
2667 LLCADDR(nmp->b_rptr, test->dl_src_addr_offset)->llca_sap = in llc1_test_ind_con()
2670 nmp->b_wptr = nmp->b_rptr + sizeof (dl_test_ind_t) + in llc1_test_ind_con()
2679 DB_TYPE(nmp) = M_PROTO; in llc1_test_ind_con()
2683 nmp->b_cont = dupmsg(mp); in llc1_test_ind_con()
2684 if (nmp->b_cont) { in llc1_test_ind_con()
2685 nmp->b_cont->b_rptr += in llc1_test_ind_con()
2692 nmp->b_cont = dupmsg(mp->b_cont); in llc1_test_ind_con()
2693 (void) adjmsg(nmp->b_cont, sizeof (struct llchdr)); in llc1_test_ind_con()
2695 putnext(RD(lld->llc_qptr), nmp); in llc1_test_ind_con()
2709 mblk_t *nmp, *rmp; in llc1_test_req_res() local
2729 nmp = allocb(sizeof (struct ether_header) + sizeof (struct llchdr), in llc1_test_req_res()
2732 if (nmp == NULL) in llc1_test_req_res()
2736 hdr = (struct ether_header *)nmp->b_rptr; in llc1_test_req_res()
2742 nmp->b_wptr = nmp->b_rptr + in llc1_test_req_res()
2745 rmp = nmp; in llc1_test_req_res()
2752 freemsg(nmp); in llc1_test_req_res()
2768 rmp->b_cont = nmp; in llc1_test_req_res()
2769 llchdr = (struct llchdr *)nmp->b_rptr; in llc1_test_req_res()
2770 nmp->b_wptr += sizeof (struct llchdr); in llc1_test_req_res()
2778 nmp->b_cont = mp->b_cont; in llc1_test_req_res()
3013 mblk_t *nmp = mp; in llc1_subs_bind() local
3019 nmp = allocb(sizeof (dl_subs_bind_ack_t) + 5, in llc1_subs_bind()
3022 ack = (dl_subs_bind_ack_t *)nmp->b_rptr; in llc1_subs_bind()
3023 nmp->b_wptr = nmp->b_rptr + in llc1_subs_bind()
3029 (caddr_t)nmp->b_rptr + ack->dl_subs_sap_offset + 5, in llc1_subs_bind()
3031 DB_TYPE(nmp) = M_PCPROTO; in llc1_subs_bind()
3032 qreply(q, nmp); in llc1_subs_bind()