/illumos-gate/usr/src/uts/common/io/ |
H A D | gldutil.c | 340 mblk_t *nmp; in gld_unitdata_ether() local 380 nmp = mp->b_cont; /* where the packet payload M_DATA is */ in gld_unitdata_ether() 381 if (DB_REF(nmp) == 1 && MBLKHEAD(nmp) >= hdrlen) { in gld_unitdata_ether() 386 nmp = mp; in gld_unitdata_ether() 387 DB_TYPE(nmp) = M_DATA; in gld_unitdata_ether() 388 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_ether() 391 if ((nmp = allocb(hdrlen, BPRI_MED)) == NULL) in gld_unitdata_ether() 393 nmp->b_rptr = nmp->b_wptr = DB_LIM(nmp); in gld_unitdata_ether() 394 linkb(nmp, mp->b_cont); in gld_unitdata_ether() 400 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 | gld.c | 2000 mblk_t *nmp; in gld_start() local 2119 nmp = dupmsg_noloan(mp); in gld_start() 2121 nmp = dupmsg(mp); in gld_start() 2123 nmp = NULL; /* we need no loopback */ in gld_start() 2128 if (nmp) in gld_start() 2129 freemsg(nmp); /* free the duped message */ in gld_start() 2159 if (nmp) in gld_start() 2160 freemsg(nmp); /* free the dupped message */ in gld_start() 2172 if (nmp) { in gld_start() 2174 gld_precv(macinfo, nmp, vtag, stats); in gld_start() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efichar.c | 120 utf8_to_ucs2(const char *name, CHAR16 **nmp, size_t *len) in utf8_to_ucs2() argument 126 int freeit = *nmp == NULL; in utf8_to_ucs2() 129 if (*nmp == NULL) in utf8_to_ucs2() 130 *nmp = malloc(sz); in utf8_to_ucs2() 131 if (*nmp == NULL) in utf8_to_ucs2() 133 nm = *nmp; in utf8_to_ucs2() 180 *nmp = NULL; in utf8_to_ucs2() 191 *nmp = NULL; in utf8_to_ucs2()
|
/illumos-gate/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 …]
|
/illumos-gate/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 | 437 mblk_t *nmp; in e1000g_receive() local 664 nmp = packet->mp; in e1000g_receive() 695 if ((nmp = allocb(length + E1000G_IPALIGNROOM, in e1000g_receive() 706 nmp->b_rptr += E1000G_IPALIGNROOM; in e1000g_receive() 707 nmp->b_wptr += E1000G_IPALIGNROOM; in e1000g_receive() 715 bcopy(rx_buf->address, nmp->b_wptr, length); in e1000g_receive() 718 ASSERT(nmp != NULL); in e1000g_receive() 719 nmp->b_wptr += length; in e1000g_receive() 753 rx_data->rx_mblk = nmp; in e1000g_receive() 754 rx_data->rx_mblk_tail = nmp; in e1000g_receive() [all …]
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_lu.c | 207 char *nmp; in lufslist() local 227 if ((nmp = strstr(ep + 1, "mountPoint=\"")) != NULL) { in lufslist() 228 nmp = nmp + 12; in lufslist() 230 if ((ep = strchr(nmp, '"')) != NULL) { in lufslist() 233 nmp = ""; in lufslist() 237 nmp = ""; in lufslist() 240 if ((status = add_use_record(devp, nmp)) != 0) { in lufslist()
|
/illumos-gate/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 …]
|
/illumos-gate/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() 255 msgsize = msgdsize(nmp); in hxge_start() 270 while (nmp) { in hxge_start() 272 b_rptr = nmp->b_rptr; in hxge_start() 273 len = MBLKL(nmp); in hxge_start() 275 nmp = nmp->b_cont; in hxge_start() 291 if ((t_mp = dupb(nmp)) != NULL) { in hxge_start() 292 nmp->b_wptr = nmp->b_rptr + in hxge_start() 295 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 | 1394 p_mblk_t nmp, mp_cont, head_mp, *tail_mp; in hxge_rx_pkts() local 1452 nmp = mp_cont = NULL; in hxge_rx_pkts() 1485 rcrp, rcr_desc_rd_head_p, &multi, &nmp, &mp_cont, in hxge_rx_pkts() 1499 if (nmp) { in hxge_rx_pkts() 1500 nmp->b_next = NULL; in hxge_rx_pkts() 1502 *tail_mp = nmp; in hxge_rx_pkts() 1503 tail_mp = &nmp->b_next; in hxge_rx_pkts() 1504 nmp = NULL; in hxge_rx_pkts() 1506 *tail_mp = nmp; in hxge_rx_pkts() 1507 tail_mp = &nmp->b_cont; in hxge_rx_pkts() [all …]
|
/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp.c | 471 mblk_t *nmp; in sppp_ioctl() local 532 if ((nmp = allocb(sizeof (struct ppp_idle), in sppp_ioctl() 543 mp->b_cont = nmp; in sppp_ioctl() 544 pip = (struct ppp_idle *)nmp->b_wptr; in sppp_ioctl() 545 nmp->b_wptr += sizeof (struct ppp_idle); in sppp_ioctl() 554 count = msgsize(nmp); in sppp_ioctl() 558 nmp = allocb(sizeof (uint32_t), BPRI_MED); in sppp_ioctl() 559 if (nmp == NULL) { in sppp_ioctl() 566 mp->b_cont = nmp; in sppp_ioctl() 571 *(uint32_t *)nmp->b_wptr = PPPTYP_MUX; in sppp_ioctl() [all …]
|
/illumos-gate/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()
|
/illumos-gate/usr/src/uts/common/io/aggr/ |
H A D | aggr_recv.c | 62 mblk_t *nmp = copymsg(mp); in aggr_recv_lacp() local 64 if (nmp != NULL) in aggr_recv_lacp() 65 aggr_mac_rx(grp->lg_mh, mrh, nmp); in aggr_recv_lacp()
|
/illumos-gate/usr/src/uts/common/io/ena/ |
H A D | ena_tx.c | 327 mblk_t *nmp = mp; in ena_tcb_pull() local 335 while (nmp != NULL) { in ena_tcb_pull() 336 const size_t nmp_len = MBLKL(nmp); in ena_tcb_pull() 339 nmp = nmp->b_cont; in ena_tcb_pull() 343 ena_tx_copy_fragment(tcb, nmp, 0, nmp_len); in ena_tcb_pull() 344 nmp = nmp->b_cont; in ena_tcb_pull()
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/uts/common/io/vioif/ |
H A D | vioif.c | 1143 mblk_t *nmp = mp; in vioif_tx_external() local 1146 while (nmp != NULL) { in vioif_tx_external() 1149 if ((len = MBLKL(nmp)) == 0) { in vioif_tx_external() 1153 nmp = nmp->b_cont; in vioif_tx_external() 1180 if (virtio_dma_bind(extdma, nmp->b_rptr, len, in vioif_tx_external() 1203 nmp = nmp->b_cont; in vioif_tx_external() 1240 mblk_t *nmp; in vioif_send() local 1245 for (nmp = mp; nmp; nmp = nmp->b_cont) in vioif_send() 1246 msg_size += MBLKL(nmp); in vioif_send() 1433 mblk_t *nmp; in vioif_m_tx() local [all …]
|