/titanic_41/usr/src/uts/common/io/ |
H A D | gldutil.c | 341 mblk_t *nmp; in gld_unitdata_ether() local 381 nmp = mp->b_cont; /* where the packet payload M_DATA is */ in gld_unitdata_ether() 382 if (DB_REF(nmp) == 1 && MBLKHEAD(nmp) >= hdrlen) { in gld_unitdata_ether() 387 nmp = mp; in gld_unitdata_ether() 388 DB_TYPE(nmp) = M_DATA; in gld_unitdata_ether() 389 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_ether() 392 if ((nmp = allocb(hdrlen, BPRI_MED)) == NULL) in gld_unitdata_ether() 394 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_ether() 395 linkb(nmp, mp->b_cont); in gld_unitdata_ether() 401 nmp->b_rptr -= sizeof (typelen); in gld_unitdata_ether() [all …]
|
H A D | llc1.c | 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() [all …]
|
H A D | pts.c | 568 mblk_t *nmp; in ptswput() local 571 nmp = copyb(mp); in ptswput() 572 if (nmp) { in ptswput() 578 *nmp->b_rptr |= FLUSHR; in ptswput() 580 putnext(ptsp->ptm_rdq, nmp); in ptswput()
|
/titanic_41/usr/src/uts/sun4v/io/ |
H A D | vnet_common.c | 70 mblk_t *nmp; in vnet_vlan_insert_tag() local 94 nmp = allocb(sizeof (struct ether_vlan_header), in vnet_vlan_insert_tag() 96 if (nmp == NULL) { in vnet_vlan_insert_tag() 105 bcopy(mp->b_rptr, nmp->b_rptr, n); in vnet_vlan_insert_tag() 108 evhp = (struct ether_vlan_header *)nmp->b_rptr; in vnet_vlan_insert_tag() 113 bcopy(mp->b_rptr + n, nmp->b_rptr + n + VLAN_TAGSZ, in vnet_vlan_insert_tag() 120 nmp->b_wptr += sizeof (struct ether_vlan_header); in vnet_vlan_insert_tag() 127 nmp->b_cont = mp; in vnet_vlan_insert_tag() 128 mp = nmp; in vnet_vlan_insert_tag() 139 mblk_t *nmp; in vnet_vlan_remove_tag() local [all …]
|
H A D | vsw_switching.c | 714 mblk_t *nmp = NULL; in vsw_forward_all() local 727 nmp = vsw_dupmsgchain(mp); in vsw_forward_all() 728 if (nmp) { in vsw_forward_all() 729 if ((ret_m = vsw_tx_msg(vswp, nmp, caller, arg)) in vsw_forward_all() 762 nmp = vsw_dupmsgchain(mp); in vsw_forward_all() 763 if (nmp) { in vsw_forward_all() 769 (void) vsw_portsend(portp, nmp); in vsw_forward_all() 795 mblk_t *nmp = NULL; in vsw_forward_grp() local 814 nmp = vsw_dupmsgchain(mp); in vsw_forward_grp() 815 if (nmp) { in vsw_forward_grp() [all …]
|
/titanic_41/usr/src/uts/common/io/nxge/ |
H A D | nxge_send.c | 169 p_mblk_t nmp; in nxge_start() local 396 nmp = mp; in nxge_start() 419 msgsize = msgdsize(nmp); in nxge_start() 434 while (nmp) { in nxge_start() 436 b_rptr = nmp->b_rptr; in nxge_start() 437 len = MBLKL(nmp); in nxge_start() 439 nmp = nmp->b_cont; in nxge_start() 458 if ((t_mp = dupb(nmp)) != NULL) { in nxge_start() 459 nmp->b_wptr = nmp->b_rptr + in nxge_start() 462 t_mp->b_rptr = nmp->b_wptr; in nxge_start() [all …]
|
H A D | nxge_txdma.c | 460 p_mblk_t nmp; in nxge_fill_tx_hdr() local 496 nmp = mp; in nxge_fill_tx_hdr() 499 mp, nmp->b_rptr, MBLKL(nmp))); in nxge_fill_tx_hdr() 503 while ((nmp != NULL) && (tmp > 0)) { in nxge_fill_tx_hdr() 505 mblk_len = MBLKL(nmp); in nxge_fill_tx_hdr() 507 bcopy(nmp->b_rptr, cursor, buflen); in nxge_fill_tx_hdr() 510 nmp = nmp->b_cont; in nxge_fill_tx_hdr() 513 nmp = mp; in nxge_fill_tx_hdr() 514 mblk_len = MBLKL(nmp); in nxge_fill_tx_hdr() 555 ip_buf = nmp->b_rptr + eth_hdr_size; in nxge_fill_tx_hdr() [all …]
|
H A D | nxge_rxdma.c | 1971 p_mblk_t nmp, mp_cont, head_mp, *tail_mp; in nxge_rx_pkts() local 2037 nmp = mp_cont = NULL; in nxge_rx_pkts() 2049 rcr_p, rcr_desc_rd_head_p, &multi, &nmp, &mp_cont); in nxge_rx_pkts() 2054 if (nmp) { in nxge_rx_pkts() 2055 nmp->b_next = NULL; in nxge_rx_pkts() 2057 *tail_mp = nmp; in nxge_rx_pkts() 2058 tail_mp = &nmp->b_next; in nxge_rx_pkts() 2059 totallen += MBLKL(nmp); in nxge_rx_pkts() 2060 nmp = NULL; in nxge_rx_pkts() 2062 *tail_mp = nmp; in nxge_rx_pkts() [all …]
|
/titanic_41/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_data.c | 768 mblk_t *nmp; in eib_data_setup_lso() local 802 nmp = mp; in eib_data_setup_lso() 803 ip_start = (uintptr_t)(nmp->b_rptr) + eth_hdr_len; in eib_data_setup_lso() 804 if (ip_start >= (uintptr_t)(nmp->b_wptr)) { in eib_data_setup_lso() 805 ip_start = (uintptr_t)nmp->b_cont->b_rptr in eib_data_setup_lso() 806 + (ip_start - (uintptr_t)(nmp->b_wptr)); in eib_data_setup_lso() 807 nmp = nmp->b_cont; in eib_data_setup_lso() 812 if (tcp_start >= (uintptr_t)(nmp->b_wptr)) { in eib_data_setup_lso() 813 tcp_start = (uintptr_t)nmp->b_cont->b_rptr in eib_data_setup_lso() 814 + (tcp_start - (uintptr_t)(nmp->b_wptr)); in eib_data_setup_lso() [all …]
|
/titanic_41/usr/src/uts/common/inet/sctp/ |
H A D | sctp_notify.c | 208 mblk_t *nmp; in sctp_sendfail_sent() local 220 nmp = meta->b_cont; in sctp_sendfail_sent() 223 mp = nmp->b_next; in sctp_sendfail_sent() 224 nmp->b_next = NULL; in sctp_sendfail_sent() 230 if (!SCTP_CHUNK_ISSENT(nmp)) { in sctp_sendfail_sent() 233 nmp->b_rptr += sizeof (sctp_data_hdr_t); in sctp_sendfail_sent() 234 if (nmp->b_rptr == nmp->b_wptr) { in sctp_sendfail_sent() 235 tail->b_cont = nmp->b_cont; in sctp_sendfail_sent() 236 freeb(nmp); in sctp_sendfail_sent() 238 tail->b_cont = nmp; in sctp_sendfail_sent() [all …]
|
H A D | sctp_output.c | 555 mblk_t *mp, *nmp; in sctp_free_msg() local 557 for (mp = ump->b_cont; mp; mp = nmp) { in sctp_free_msg() 558 nmp = mp->b_next; in sctp_free_msg() 609 mblk_t *nmp; in sctp_add_proto_hdr() local 616 nmp = allocb(sctps->sctps_wroff_xtra + hdrlen + sacklen, in sctp_add_proto_hdr() 618 if (nmp == NULL) { in sctp_add_proto_hdr() 623 nmp->b_rptr += sctps->sctps_wroff_xtra; in sctp_add_proto_hdr() 624 nmp->b_wptr = nmp->b_rptr + hdrlen + sacklen; in sctp_add_proto_hdr() 625 nmp->b_cont = mp; in sctp_add_proto_hdr() 626 mp = nmp; in sctp_add_proto_hdr() [all …]
|
/titanic_41/usr/src/uts/sun4u/opl/io/oplmsu/ |
H A D | oplmsu_ioctl_lrp.c | 55 mblk_t *hndl_mp, *nmp = NULL, *fmp = NULL; in oplmsu_lrioctl_termios() local 149 termio_flag, &nmp, &term_stat) == FAILURE) { in oplmsu_lrioctl_termios() 162 OPLMSU_TRACE(RD(lrq), nmp, MSU_TRC_LO); in oplmsu_lrioctl_termios() 165 qreply(RD(lrq), nmp); in oplmsu_lrioctl_termios() 239 if (nmp != NULL) { in oplmsu_lrioctl_termios() 240 freemsg(nmp); in oplmsu_lrioctl_termios() 301 &nmp, &term_ioctl, &term_stat) == FAILURE) { in oplmsu_lrioctl_termios() 339 OPLMSU_TRACE(dst_queue, nmp, MSU_TRC_LO); in oplmsu_lrioctl_termios() 340 qreply(dst_queue, nmp); in oplmsu_lrioctl_termios() 355 if (oplmsu_cmn_copymb(lrq, mp, &nmp, hndl_mp, in oplmsu_lrioctl_termios() [all …]
|
H A D | oplmsu_ioctl_uwp.c | 315 mblk_t *nmp = NULL; in oplmsu_uwioctl_termios() local 407 if (oplmsu_cmn_copymb(uwq, mp, &nmp, mp, MSU_WRITE_SIDE) == FAILURE) { in oplmsu_uwioctl_termios() 431 freemsg(nmp); in oplmsu_uwioctl_termios() 458 (void) putq(dst_queue, nmp); in oplmsu_uwioctl_termios() 465 freemsg(nmp); in oplmsu_uwioctl_termios()
|
/titanic_41/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_tx.c | 170 mblk_t *nmp; in e1000g_send() local 185 for (nmp = mp; nmp; nmp = nmp->b_cont) { in e1000g_send() 187 msg_size += MBLKL(nmp); in e1000g_send() 326 nmp = mp; in e1000g_send() 327 while (nmp) { in e1000g_send() 328 tmp = nmp->b_cont; in e1000g_send() 330 len = MBLKL(nmp); in e1000g_send() 342 nmp = tmp; in e1000g_send() 372 e1000g_tx_copy(tx_ring, packet, nmp, in e1000g_send() 377 e1000g_tx_bind(tx_ring, packet, nmp); in e1000g_send() [all …]
|
H A D | e1000g_rx.c | 436 mblk_t *nmp; in e1000g_receive() local 673 nmp = packet->mp; in e1000g_receive() 704 if ((nmp = allocb(length + E1000G_IPALIGNROOM, in e1000g_receive() 715 nmp->b_rptr += E1000G_IPALIGNROOM; in e1000g_receive() 716 nmp->b_wptr += E1000G_IPALIGNROOM; in e1000g_receive() 724 bcopy(rx_buf->address, nmp->b_wptr, length); in e1000g_receive() 727 ASSERT(nmp != NULL); in e1000g_receive() 728 nmp->b_wptr += length; in e1000g_receive() 762 rx_data->rx_mblk = nmp; in e1000g_receive() 763 rx_data->rx_mblk_tail = nmp; in e1000g_receive() [all …]
|
/titanic_41/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_lu.c | 209 char *nmp; in lufslist() local 229 if ((nmp = strstr(ep + 1, "mountPoint=\"")) != NULL) { in lufslist() 230 nmp = nmp + 12; in lufslist() 232 if ((ep = strchr(nmp, '"')) != NULL) { in lufslist() 235 nmp = ""; in lufslist() 239 nmp = ""; in lufslist() 242 if ((status = add_use_record(devp, nmp)) != 0) { in lufslist()
|
/titanic_41/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_restore_writer.c | 152 dtree_push(cstack_t *stp, char *nmp, tlm_acls_t *acls) in dtree_push() argument 158 if (!sp || !nmp || !acls) { in dtree_push() 163 len = strlen(nmp) + 1; in dtree_push() 170 (void) strlcpy(sp->se_name, nmp, len); in dtree_push() 287 char *name, *nmp; in tar_getdir() local 534 nmp = NULL; in tar_getdir() 544 nmp = rs_darhl_new_name(rnp, in tar_getdir() 549 nmp = rs_new_name(rnp, name, pos, in tar_getdir() 551 if (!nmp) { in tar_getdir() 558 if (nmp) { in tar_getdir() [all …]
|
/titanic_41/usr/src/uts/sun4u/starfire/io/ |
H A D | idn_dlpi.c | 857 mblk_t *nmp; local 900 nmp = allocb(sizeof (struct ether_header) + padding, BPRI_MED); 901 if (nmp == NULL) { 905 nmp->b_rptr += padding; 906 nmp->b_wptr = nmp->b_rptr + sizeof (struct ether_header); 911 headerp = (struct ether_header *)nmp->b_rptr; 919 linkb(mp, nmp); 1548 mblk_t *nmp; local 1578 nmp = mp->b_cont; 1579 if (nmp == NULL) { [all …]
|
/titanic_41/usr/src/uts/common/io/hxge/ |
H A D | hxge_send.c | 120 p_mblk_t nmp; in hxge_start() local 229 nmp = mp; in hxge_start() 259 msgsize = msgdsize(nmp); in hxge_start() 274 while (nmp) { in hxge_start() 276 b_rptr = nmp->b_rptr; in hxge_start() 277 len = MBLKL(nmp); in hxge_start() 279 nmp = nmp->b_cont; in hxge_start() 295 if ((t_mp = dupb(nmp)) != NULL) { in hxge_start() 296 nmp->b_wptr = nmp->b_rptr + in hxge_start() 299 t_mp->b_rptr = nmp->b_wptr; in hxge_start() [all …]
|
H A D | hxge_txdma.c | 255 p_mblk_t nmp; in hxge_fill_tx_hdr() local 290 nmp = mp; in hxge_fill_tx_hdr() 291 mblk_len = (size_t)nmp->b_wptr - (size_t)nmp->b_rptr; in hxge_fill_tx_hdr() 294 mp, nmp->b_rptr, mblk_len)); in hxge_fill_tx_hdr() 296 bcopy(nmp->b_rptr, &hdrs_buf[0], sizeof (struct ether_vlan_header)); in hxge_fill_tx_hdr() 337 ip_buf = nmp->b_rptr + eth_hdr_size; in hxge_fill_tx_hdr() 341 ip_buf = nmp->b_rptr; in hxge_fill_tx_hdr() 350 while ((nmp) && (hdrs_size < sizeof (hdrs_buf))) { in hxge_fill_tx_hdr() 351 mblk_len = (size_t)nmp->b_wptr - in hxge_fill_tx_hdr() 352 (size_t)nmp->b_rptr; in hxge_fill_tx_hdr() [all …]
|
H A D | hxge_rxdma.c | 1403 p_mblk_t nmp, mp_cont, head_mp, *tail_mp; in hxge_rx_pkts() local 1461 nmp = mp_cont = NULL; in hxge_rx_pkts() 1494 rcrp, rcr_desc_rd_head_p, &multi, &nmp, &mp_cont, in hxge_rx_pkts() 1508 if (nmp) { in hxge_rx_pkts() 1509 nmp->b_next = NULL; in hxge_rx_pkts() 1511 *tail_mp = nmp; in hxge_rx_pkts() 1512 tail_mp = &nmp->b_next; in hxge_rx_pkts() 1513 nmp = NULL; in hxge_rx_pkts() 1515 *tail_mp = nmp; in hxge_rx_pkts() 1516 tail_mp = &nmp->b_cont; in hxge_rx_pkts() [all …]
|
/titanic_41/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp.c | 468 mblk_t *nmp; in sppp_ioctl() local 529 if ((nmp = allocb(sizeof (struct ppp_idle), in sppp_ioctl() 540 mp->b_cont = nmp; in sppp_ioctl() 541 pip = (struct ppp_idle *)nmp->b_wptr; in sppp_ioctl() 542 nmp->b_wptr += sizeof (struct ppp_idle); in sppp_ioctl() 551 count = msgsize(nmp); in sppp_ioctl() 555 nmp = allocb(sizeof (uint32_t), BPRI_MED); in sppp_ioctl() 556 if (nmp == NULL) { in sppp_ioctl() 563 mp->b_cont = nmp; in sppp_ioctl() 568 *(uint32_t *)nmp->b_wptr = PPPTYP_MUX; in sppp_ioctl() [all …]
|
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_tx.c | 691 mblk_t *nmp = NULL; in oce_send_packet() local 730 nmp = msgpullup(mp, -1); in oce_send_packet() 731 if (nmp == NULL) { in oce_send_packet() 738 mp = nmp; in oce_send_packet() 776 for (nmp = mp; nmp != NULL; nmp = nmp->b_cont) { in oce_send_packet() 777 len = MBLKL(nmp); in oce_send_packet() 782 ret = oce_bcopy_wqe(wq, wqed, nmp, len); in oce_send_packet() 784 ret = oce_map_wqe(wq, wqed, nmp, len); in oce_send_packet()
|
/titanic_41/usr/src/uts/common/io/aggr/ |
H A D | aggr_recv.c | 60 mblk_t *nmp = copymsg(mp); in aggr_recv_lacp() local 62 if (nmp != NULL) in aggr_recv_lacp() 63 aggr_mac_rx(grp->lg_mh, mrh, nmp); in aggr_recv_lacp()
|
/titanic_41/usr/src/uts/common/io/ib/clients/ibd/ |
H A D | ibd.c | 6572 mblk_t *nmp; in ibd_setup_lso() local 6593 nmp = mp; in ibd_setup_lso() 6594 ip_start = (uintptr_t)(nmp->b_rptr) + IPOIB_HDRSIZE; in ibd_setup_lso() 6595 if (ip_start >= (uintptr_t)(nmp->b_wptr)) { in ibd_setup_lso() 6596 ip_start = (uintptr_t)nmp->b_cont->b_rptr in ibd_setup_lso() 6597 + (ip_start - (uintptr_t)(nmp->b_wptr)); in ibd_setup_lso() 6598 nmp = nmp->b_cont; in ibd_setup_lso() 6604 if (tcp_start >= (uintptr_t)(nmp->b_wptr)) { in ibd_setup_lso() 6605 tcp_start = (uintptr_t)nmp->b_cont->b_rptr in ibd_setup_lso() 6606 + (tcp_start - (uintptr_t)(nmp->b_wptr)); in ibd_setup_lso() [all …]
|