/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_tcp.c | 94 if ((MBLKL(mp) < etherhs) && (pullupmsg(mp, etherhs) == 0)) in sfxge_pkthdr_parse() 105 if ((MBLKL(mp) < etherhs) && (pullupmsg(mp, etherhs) == 0)) in sfxge_pkthdr_parse() 121 if ((MBLKL(mp) < len) && (pullupmsg(mp, len) == 0)) in sfxge_pkthdr_parse() 145 if ((MBLKL(mp) < len) && (pullupmsg(mp, len) == 0)) in sfxge_pkthdr_parse() 166 if ((MBLKL(mp) < len) && (pullupmsg(mp, len) == 0)) in sfxge_pkthdr_parse() 185 if ((MBLKL(mp) < len) && (pullupmsg(mp, len) == 0)) in sfxge_pkthdr_parse() 200 if (MBLKL(mp) < off) in sfxge_pkthdr_parse()
|
/illumos-gate/usr/src/common/inet/ |
H A D | inet_hash.c | 166 ASSERT(MBLKL(mp) >= sizeof (struct ether_header)); in inet_pkt_hash() 190 if (MBLKL(mp) < skip_len) { in inet_pkt_hash() 193 if ((newmp == NULL) || (MBLKL(newmp) < skip_len)) { in inet_pkt_hash() 208 if (MBLKL(mp) <= skip_len) { in inet_pkt_hash() 209 skip_len -= MBLKL(mp); in inet_pkt_hash() 311 if (MBLKL(mp) <= skip_len) { in inet_pkt_hash() 312 skip_len -= MBLKL(mp); in inet_pkt_hash() 346 if (MBLKL(mp) <= skip_len) { in inet_pkt_hash() 347 skip_len -= MBLKL(mp); in inet_pkt_hash()
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 437 ip_hdr_offset -= MBLKL(mp); in mac_sw_cksum() 757 seg_len -= MBLKL(seg_mp); in build_data_seg() 1333 uint_t len = MBLKL(mp), l2len; in mac_hw_emul() 1470 if (MBLKL(mp) == 0) { in mac_add_vlan_tag() 2043 if (MBLKL(mp) < skip_len) { in mac_pkt_hash() 2061 if (MBLKL(mp) <= skip_len) { in mac_pkt_hash() 2062 skip_len -= MBLKL(mp); in mac_pkt_hash() 2164 if (MBLKL(mp) <= skip_len) { in mac_pkt_hash() 2165 skip_len -= MBLKL(mp); in mac_pkt_hash() 2199 if (MBLKL(mp) <= skip_len) { in mac_pkt_hash() [all …]
|
/illumos-gate/usr/src/uts/common/inet/dlpistub/ |
H A D | dlpistub.c | 205 if (MBLKL(mp) < sizeof (t_scalar_t)) { in ds_wput() 214 if (MBLKL(mp) < DL_ATTACH_REQ_SIZE) in ds_wput() 225 if (MBLKL(mp) < DL_BIND_REQ_SIZE) in ds_wput() 236 if (MBLKL(mp) < DL_INFO_REQ_SIZE) in ds_wput() 251 if (MBLKL(mp) < DL_PHYS_ADDR_REQ_SIZE) in ds_wput() 258 if (MBLKL(mp) < DL_UNBIND_REQ_SIZE) in ds_wput() 269 if (MBLKL(mp) < DL_DETACH_REQ_SIZE) in ds_wput()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_send.c | 437 len = MBLKL(nmp); in nxge_start() 465 len = MBLKL(nmp); in nxge_start() 1340 if (MBLKL(mp) > hdrlen) { in nxge_do_softlso() 1354 (int)MBLKL(mp), (int)MBLKL(datamp))); in nxge_do_softlso() 1384 (int)MBLKL(datamp), in nxge_do_softlso() 1397 pktlen, (int)MBLKL(mp), (int)MBLKL(datamp), in nxge_do_softlso() 1469 len -= MBLKL(nmp); in nxge_do_softlso() 1518 len -= MBLKL(nmp); in nxge_do_softlso() 1605 (int)MBLKL(mp), (int)MBLKL(datamp), in nxge_do_softlso() 1648 pktlen, (int)MBLKL(mp), (int)MBLKL(datamp))); in nxge_do_softlso() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_sign.c | 147 ASSERT(MBLKL(m) >= SMB_HDRLEN); in smb_compute_MAC() 166 size = MBLKL(m) - SMB_HDRLEN; in smb_compute_MAC() 174 size = MBLKL(m); in smb_compute_MAC() 211 ASSERT(MBLKL(mp) >= SMB_HDRLEN); in smb_rq_sign() 265 ASSERT(MBLKL(mp) >= SMB_HDRLEN); in smb_rq_verify()
|
H A D | smb2_sign.c | 236 ASSERT(MBLKL(m) >= SMB2_HDRLEN); in smb2_compute_MAC() 252 size = MBLKL(m) - SMB2_HDRLEN; in smb2_compute_MAC() 260 size = MBLKL(m); in smb2_compute_MAC() 288 ASSERT(MBLKL(mp) >= SMB2_HDRLEN); in smb2_rq_sign() 336 ASSERT(MBLKL(mp) >= SMB2_HDRLEN); in smb2_rq_verify()
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockstr.c | 187 length = MAX(MBLKL(mp), 64); in so_sock2stream() 1683 (ptrdiff_t)(MBLKL(mp))); in strsock_proto() 1704 (ptrdiff_t)(MBLKL(mp))); in strsock_proto() 1735 (ptrdiff_t)(MBLKL(mp))); in strsock_proto() 1947 (ptrdiff_t)(MBLKL(mp))); in strsock_proto() 2011 (ptrdiff_t)(MBLKL(mp))); in strsock_proto() 2152 (ptrdiff_t)(MBLKL(mp))); in strsock_proto() 2257 (ptrdiff_t)(MBLKL(mp))); in strsock_proto() 2281 (ptrdiff_t)(MBLKL(mp))); in strsock_proto() 2312 (ptrdiff_t)(MBLKL(mp))); in strsock_proto() [all …]
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | xdr_mblk.c | 127 xdrs->x_handy = (int)MBLKL(m); in xdrmblk_init() 174 xdrs->x_handy = (int)MBLKL(m); in xdrmblk_getint32() 275 xdrs->x_handy = (int)MBLKL(m); in xdrmblk_getbytes() 322 while (m != NULL && len + (int)MBLKL(m) <= llen) { in xdrmblk_getmblk() 323 len += (int)MBLKL(m); in xdrmblk_getmblk() 351 xdrs->x_handy = m != NULL ? MBLKL(m) : 0; in xdrmblk_getmblk() 471 p->apos += MBLKL(m); in xdrmblk_putmblk_raw() 476 p->rpos = MBLKL(m); in xdrmblk_putmblk_raw() 664 xdrs->x_handy = (int)MBLKL(m); in xdrmblk_control() 730 xdrs->x_handy = (int)MBLKL(m); in xdrmblk_skip_fully_read_mblks()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | drcompat.c | 242 if (MBLKL(mp) < sizeof (t_uscalar_t)) { in drrput() 251 if (MBLKL(mp) < DL_OK_ACK_SIZE) { in drrput() 330 if (MBLKL(mp) < sizeof (t_uscalar_t)) { in drwput() 350 if (MBLKL(mp) >= DL_OK_ACK_SIZE) { in drwput()
|
H A D | strsun.c | 121 n += MBLKL(mp); in msgsize() 134 n = MBLKL(bp); in mcopymsg() 215 ASSERT(MBLKL(iocmp) == sizeof (struct iocblk)); in miocpullup() 216 if (MBLKL(iocmp) != sizeof (struct iocblk)) { in miocpullup() 231 if (MBLKL(datamp) >= size) in miocpullup()
|
/illumos-gate/usr/src/uts/common/io/dld/ |
H A D | dld_proto.c | 70 if (MBLKL(mp) < sizeof (t_uscalar_t)) { in dld_proto() 326 if (MBLKL(mp) < sizeof (dl_attach_req_t) || in proto_attach_req() 370 if (MBLKL(mp) < sizeof (dl_detach_req_t)) { in proto_detach_req() 413 if (MBLKL(mp) < sizeof (dl_bind_req_t)) { in proto_bind_req() 515 if (MBLKL(mp) < sizeof (dl_unbind_req_t)) { in proto_unbind_req() 582 if (MBLKL(mp) < sizeof (dl_promiscon_req_t)) { in proto_promiscon_req() 755 if (MBLKL(mp) < sizeof (dl_enabmulti_req_t) || in proto_enabmulti_req() 1151 if (MBLKL(mp) < sizeof (dl_notify_req_t)) { in proto_notify_req() 1243 size += MBLKL(bp); in proto_unitdata_req() 1313 if (MBLKL(mp) < sizeof (dl_passive_req_t)) { in proto_passive_req() [all …]
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | md4_mod.c | 400 for (mp = data->cd_mp; mp != NULL && offset >= MBLKL(mp); in md4_digest_update_mblk() 401 offset -= MBLKL(mp), mp = mp->b_cont) in md4_digest_update_mblk() 415 cur_len = MIN(MBLKL(mp) - offset, length); in md4_digest_update_mblk() 451 for (mp = digest->cd_mp; mp != NULL && offset >= MBLKL(mp); in md4_digest_final_mblk() 452 offset -= MBLKL(mp), mp = mp->b_cont) in md4_digest_final_mblk() 462 if (offset + digest_len <= MBLKL(mp)) { in md4_digest_final_mblk() 493 cur_len = MIN(MBLKL(mp) - offset, length); in md4_digest_final_mblk()
|
H A D | skein_mod.c | 399 for (mp = data->cd_mp; mp != NULL && offset >= MBLKL(mp); in skein_digest_update_mblk() 400 offset -= MBLKL(mp), mp = mp->b_cont) in skein_digest_update_mblk() 412 cur_len = MIN(MBLKL(mp) - offset, length); in skein_digest_update_mblk() 442 for (mp = digest->cd_mp; mp != NULL && offset >= MBLKL(mp); in skein_digest_final_mblk() 443 offset -= MBLKL(mp), mp = mp->b_cont) in skein_digest_final_mblk() 450 if (offset + CRYPTO_BITS2BYTES(ctx->sc_digest_bitlen) <= MBLKL(mp)) { in skein_digest_final_mblk() 466 cur_len = MIN(MBLKL(mp) - offset, length); in skein_digest_final_mblk()
|
/illumos-gate/usr/src/uts/common/io/igb/ |
H A D | igb_tx.c | 129 mbsize += MBLKL(nmp); in igb_tx() 187 len = MBLKL(mp); in igb_tx() 192 len += MBLKL(hdr_current_mp); in igb_tx() 257 current_len = MBLKL(current_mp); in igb_tx() 636 size = len = MBLKL(mp); in igb_get_tx_context() 641 len = MBLKL(mp); in igb_get_tx_context() 655 len = MBLKL(mp); in igb_get_tx_context() 678 len = MBLKL(mp); in igb_get_tx_context() 710 len = MBLKL(mp); in igb_get_tx_context() 721 len = MBLKL(mp); in igb_get_tx_context() [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/ |
H A D | fake_ktli.c | 327 n = MBLKL(m); in tli_send() 343 ctlbuf.len = MBLKL(bp); in tli_send() 344 ctlbuf.maxlen = MBLKL(bp); in tli_send() 350 databuf.len = MBLKL(m); in tli_send() 351 databuf.maxlen = MBLKL(m); in tli_send()
|
/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_krcvudat.c | 119 hdrsz = MBLKL(bp); in t_krcvudata() 210 if (!pullupmsg(bp, MBLKL(bp))) { in t_krcvudata() 218 unitdata->udata.len = (uint_t)MBLKL(bp); in t_krcvudata() 234 hdrsz = MBLKL(bp); in t_krcvudata()
|
/illumos-gate/usr/src/common/crypto/modes/ |
H A D | modes.c | 73 for (mp = out->cd_mp; mp != NULL && offset >= MBLKL(mp); in crypto_init_ptrs() 74 offset -= MBLKL(mp), mp = mp->b_cont) in crypto_init_ptrs() 347 for (mp = data->cd_mp; mp != NULL && offset >= MBLKL(mp); in crypto_mblk_data() 348 offset -= MBLKL(mp), mp = mp->b_cont) in crypto_mblk_data() 362 cur_len = MIN(MBLKL(mp) - offset, length); in crypto_mblk_data()
|
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_ksocket.c | 57 tlen += MBLKL(m); in ksocket_sendmblk() 76 iov[i++].iov_len = MBLKL(m); in ksocket_sendmblk()
|
/illumos-gate/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_tx.c | 232 size_t mlen = MBLKL(mp); in ixgbe_ring_tx() 298 len = MBLKL(mp) - offset; in ixgbe_ring_tx() 617 size = len = MBLKL(mp); in ixgbe_get_context() 622 len = MBLKL(mp); in ixgbe_get_context() 636 len = MBLKL(mp); in ixgbe_get_context() 660 len = MBLKL(mp); in ixgbe_get_context() 671 len = MBLKL(mp); in ixgbe_get_context() 691 len = MBLKL(mp); in ixgbe_get_context() 707 len = MBLKL(mp); in ixgbe_get_context() 718 len = MBLKL(mp); in ixgbe_get_context() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | strsun.h | 49 #define MBLKL(mp) _PTRDIFF((mp)->b_wptr, (mp)->b_rptr) macro 53 #define MBLKIN(mp, off, len) (((off) <= MBLKL(mp)) && \
|
/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | s_common.c | 93 if (i < MBLKL(mp)) { in msg_byte() 96 i -= MBLKL(mp); in msg_byte()
|
/illumos-gate/usr/src/uts/common/io/arn/ |
H A D | arn_beacon.c | 87 MBLKL(mp) + IEEE80211_CRC_LEN, /* frame length */ in arn_beacon_setup() 96 roundup(MBLKL(mp), 4), /* buffer length */ in arn_beacon_setup() 128 bcopy(mp->b_rptr, bf->bf_dma.mem_va, MBLKL(mp)); in arn_beacon_start_adhoc() 192 bcopy(mp->b_rptr, bf->bf_dma.mem_va, MBLKL(mp)); in arn_beacon_alloc()
|
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | usba_bos.c | 112 size_t len = MBLKL(mp); in usba_bos_save() 157 len = MIN(MBLKL(mp), bdesc->wTotalLength) - USB_BOS_PACKED_SIZE; in usba_bos_save() 269 size = usba_bos_parse_bos_descr(mp->b_rptr, MBLKL(mp), &bos, in usba_get_binary_object_store() 298 size = usba_bos_parse_bos_descr(mp->b_rptr, MBLKL(mp), &bos, in usba_get_binary_object_store()
|
/illumos-gate/usr/src/uts/common/io/net80211/ |
H A D | net80211_crypto_wep.c | 251 MBLKL(mp) - (hdrlen + wep.ic_header), in wep_encrypt() 258 MBLKL(mp) - (hdrlen + wep.ic_header)); in wep_encrypt() 300 MBLKL(mp) - in wep_decrypt() 305 MBLKL(mp) - in wep_decrypt()
|