/titanic_41/usr/src/uts/common/crypto/io/ |
H A D | arcfour.c | 283 mblk_t *mp = input->cd_mp, *mp1, *mp2; in rc4_crypt_update() local 287 mp1 = advance_position(mp, input->cd_offset, &start); in rc4_crypt_update() 289 if (mp1 == NULL) in rc4_crypt_update() 299 while (mp1 != NULL) { in rc4_crypt_update() 300 if (_PTRDIFF(mp1->b_wptr, start) > left) { in rc4_crypt_update() 303 mp1 = NULL; in rc4_crypt_update() 305 len = _PTRDIFF(mp1->b_wptr, start); in rc4_crypt_update() 307 mp1 = mp1->b_cont; in rc4_crypt_update() 308 start = mp1->b_rptr; in rc4_crypt_update() 393 mblk_t *mp = input->cd_mp, *mp1, *mp2; in rc4_crypt_update() local [all …]
|
/titanic_41/usr/src/uts/common/io/mac/ |
H A D | mac_ndd.c | 185 mblk_t *mp1; in mac_ndd_get_ioctl() local 200 mp1 = allocb(avail, BPRI_HI); /* the returned buffer */ in mac_ndd_get_ioctl() 201 if (mp1 == NULL) in mac_ndd_get_ioctl() 208 size_out = mac_ndd_get_names(mip, mp1); in mac_ndd_get_ioctl() 224 (void) adjmsg(mp1, -(excess + 1)); in mac_ndd_get_ioctl() 225 cp = (char *)mp1->b_wptr; in mac_ndd_get_ioctl() 234 valp = (char *)mp1->b_rptr; in mac_ndd_get_ioctl() 235 mp1->b_wptr = mp1->b_rptr; in mac_ndd_get_ioctl() 303 MAC_PROP_PRIVATE, avail - 2, mp1->b_rptr); in mac_ndd_get_ioctl() 308 size_out += strnlen((const char *)mp1->b_rptr, avail); in mac_ndd_get_ioctl() [all …]
|
H A D | mac_util.c | 57 mblk_t *mp1; in mac_copymsg_cksum() local 60 mp1 = copymsg(mp); in mac_copymsg_cksum() 61 if (mp1 == NULL) in mac_copymsg_cksum() 65 (void) hcksum_assoc(mp1, NULL, NULL, start, stuff, end, value, in mac_copymsg_cksum() 68 return (mp1); in mac_copymsg_cksum() 102 mblk_t *mp, *prev = NULL, *new_chain = mp_chain, *mp1; in mac_fix_cksum() local 122 mp1 = copymsg(mp); in mac_fix_cksum() 123 if (mp1 == NULL) in mac_fix_cksum() 125 mp1->b_next = mp->b_next; in mac_fix_cksum() 129 prev->b_next = mp1; in mac_fix_cksum() [all …]
|
/titanic_41/usr/src/uts/common/inet/ |
H A D | nd.c | 57 MBLKP mp1; in nd_getset() local 67 if (iocp->ioc_count == 0 || !(mp1 = mp->b_cont)) { in nd_getset() 78 if (mp1->b_cont) { in nd_getset() 79 freemsg(mp1->b_cont); in nd_getset() 80 mp1->b_cont = NULL; in nd_getset() 83 mp1->b_datap->db_lim[-1] = '\0'; /* Force null termination */ in nd_getset() 84 valp = (char *)mp1->b_rptr; in nd_getset() 94 if (!*valp || valp >= (char *)mp1->b_wptr) in nd_getset() 99 mp1->b_wptr = mp1->b_rptr; in nd_getset() 100 err = (*nde->nde_get_pfi)(q, mp1, nde->nde_data, iocp->ioc_cr); in nd_getset() [all …]
|
H A D | mi.c | 209 MBLKP mp1; in mi_copyin() local 240 mp1 = allocb(0, BPRI_MED); in mi_copyin() 241 if (mp1 == NULL) { in mi_copyin() 250 mp1->b_cont = mp->b_cont; in mi_copyin() 251 mp->b_cont = mp1; in mi_copyin() 254 mp->b_cont = mp1->b_cont; in mi_copyin() 255 mp1->b_cont = NULL; in mi_copyin() 262 cp->cp_private = mp1; in mi_copyin() 318 MBLKP mp1; in mi_copyout() local 326 mp1 = mp->b_cont; in mi_copyout() [all …]
|
H A D | ip_impl.h | 89 #define IP_ADJCKSUM_PARTIAL(cksum_start, mp, mp1, len, adj) { \ argument 101 if ((mp1) == NULL) \ 102 (mp1) = (mp); \ 104 (len) += MBLKL(mp1); \ 111 _pad = IP_BCSUM_PARTIAL((mp1)->b_wptr, len, 0); \ 116 if ((uintptr_t)(mp1)->b_wptr & 1) \
|
/titanic_41/usr/src/uts/common/krtld/ |
H A D | kobj_kdi.c | 174 kobj_kdi_mod_haschanged(struct modctl *mc1, struct module *mp1, in kobj_kdi_mod_haschanged() argument 184 return (bcmp(&mp1->hdr, &mp2->hdr, sizeof (mp1->hdr)) != 0 || in kobj_kdi_mod_haschanged() 185 mp1->symhdr != mp2->symhdr || mp1->strhdr != mp2->strhdr || in kobj_kdi_mod_haschanged() 186 mp1->text != mp2->text || mp1->bss != mp2->bss || in kobj_kdi_mod_haschanged() 187 mp1->ctfdata != mp2->ctfdata || mp1->ctfsize != mp2->ctfsize); in kobj_kdi_mod_haschanged()
|
/titanic_41/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rds_ioctl.c | 151 mblk_t *mp1; in rds_ioctl_copyin_done() local 155 if (!(mp1 = mp->b_cont) || !(mp1 = mp1->b_cont)) { in rds_ioctl_copyin_done() 160 addr = mp1->b_rptr; in rds_ioctl_copyin_done() 202 mp1 = mi_copyout_alloc(q, mp, ubuf_addr, ubuf_size, B_FALSE); in rds_ioctl_copyin_done() 203 if (mp1 == NULL) { in rds_ioctl_copyin_done() 209 ifrp = (void *)mp1->b_rptr; in rds_ioctl_copyin_done() 212 MBLKTAIL(mp1) >= sizeof (struct ifreq); i++, lifrp++) { in rds_ioctl_copyin_done() 227 mp1->b_wptr += sizeof (struct ifreq); in rds_ioctl_copyin_done() 230 STRUCT_FSET(ifc, ifc_len, MBLKL(mp1)); in rds_ioctl_copyin_done() 255 mp1 = mi_copyout_alloc(q, mp, STRUCT_FGETP(sb, buf), addrlen, in rds_ioctl_copyin_done() [all …]
|
H A D | rdsddi.c | 288 mblk_t *mp1; in rds_deliver_new_msg() local 307 mp1 = allocb(udi_size, BPRI_MED); in rds_deliver_new_msg() 308 if (mp1 == NULL) { in rds_deliver_new_msg() 314 mp1->b_cont = mp; in rds_deliver_new_msg() 315 mp = mp1; in rds_deliver_new_msg() 744 mblk_t *mp1; in rds_wput_data() local 761 mp1 = mp->b_cont; in rds_wput_data() 763 if (mp1 == NULL) { in rds_wput_data() 777 ASSERT(mp1->b_datap->db_ref == 1); in rds_wput_data() 811 freemsg(mp1); in rds_wput_data()
|
/titanic_41/usr/src/uts/common/inet/tcp/ |
H A D | tcp_input.c | 560 mblk_t *mp1; in tcp_reass() local 581 mp1 = tcp->tcp_reass_tail; in tcp_reass() 582 if (!mp1) { in tcp_reass() 591 if (SEQ_GEQ(start, TCP_REASS_END(mp1))) { in tcp_reass() 593 mp1->b_cont = mp; in tcp_reass() 600 mp1 = tcp->tcp_reass_head; in tcp_reass() 601 u1 = TCP_REASS_SEQ(mp1); in tcp_reass() 605 mp->b_cont = mp1; in tcp_reass() 614 for (; (mp2 = mp1->b_cont) != NULL; mp1 = mp2) { in tcp_reass() 621 mp1->b_cont = mp; in tcp_reass() [all …]
|
H A D | tcp_fusion.c | 349 mblk_t *mp1; in tcp_fuse_output_urg() local 412 mp1 = head; in tcp_fuse_output_urg() 414 ASSERT(DB_TYPE(mp1->b_cont) == M_DATA); in tcp_fuse_output_urg() 415 head = mp1->b_cont; in tcp_fuse_output_urg() 416 mp1->b_cont = NULL; in tcp_fuse_output_urg() 417 head->b_next = mp1->b_next; in tcp_fuse_output_urg() 418 mp1->b_next = NULL; in tcp_fuse_output_urg() 421 if (peer_tcp->tcp_rcv_list == mp1) in tcp_fuse_output_urg() 423 if (peer_tcp->tcp_rcv_last_head == mp1) in tcp_fuse_output_urg() 425 freeb(mp1); in tcp_fuse_output_urg() [all …]
|
H A D | tcp_output.c | 209 mblk_t *mp1; in tcp_wput_data() local 279 mp1 = mp; in tcp_wput_data() 281 freeb(mp1); in tcp_wput_data() 296 mp1 = tcp->tcp_xmit_last; in tcp_wput_data() 298 (dp = mp1->b_datap)->db_ref == 1 && in tcp_wput_data() 299 dp->db_lim - mp1->b_wptr >= len) { in tcp_wput_data() 301 ASSERT(!mp1->b_cont); in tcp_wput_data() 303 *mp1->b_wptr++ = *mp->b_rptr; in tcp_wput_data() 305 bcopy(mp->b_rptr, mp1->b_wptr, len); in tcp_wput_data() 306 mp1->b_wptr += len; in tcp_wput_data() [all …]
|
H A D | tcp_timers.c | 350 mblk_t *mp1 = tcp->tcp_timercache; in tcp_timer_free() local 361 } else if (mp1 == NULL || mp1->b_next == NULL) { in tcp_timer_free() 364 mp->b_next = mp1; in tcp_timer_free() 467 mblk_t *mp1 = allocb(1, BPRI_LO); in tcp_keepalive_timer() local 469 if (mp1 != NULL) { in tcp_keepalive_timer() 470 *mp1->b_wptr++ = '\0'; in tcp_keepalive_timer() 471 mp = tcp_xmit_mp(tcp, mp1, 1, NULL, NULL, in tcp_keepalive_timer() 473 freeb(mp1); in tcp_keepalive_timer()
|
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_diag.c | 300 MATCHMAP *mp1 = NULL; in emlxs_diag_biu_run() local 330 ((mp1 = (MATCHMAP *) emlxs_mem_get(hba, MEM_BUF)) == 0)) { in emlxs_diag_biu_run() 353 bzero(mp1->virt, MEM_ELSBUF_SIZE); in emlxs_diag_biu_run() 354 EMLXS_MPDATA_SYNC(mp1->dma_handle, 0, MEM_ELSBUF_SIZE, in emlxs_diag_biu_run() 358 (void) emlxs_mb_run_biu_diag(hba, mbq, mp->phys, mp1->phys); in emlxs_diag_biu_run() 370 EMLXS_MPDATA_SYNC(mp1->dma_handle, 0, MEM_ELSBUF_SIZE, in emlxs_diag_biu_run() 374 inptr = mp1->virt; in emlxs_diag_biu_run() 408 if (mp1) { in emlxs_diag_biu_run() 410 if (emlxs_fm_check_dma_handle(hba, mp1->dma_handle) in emlxs_diag_biu_run() 415 mp1->dma_handle); in emlxs_diag_biu_run() [all …]
|
/titanic_41/usr/src/stand/lib/tcp/ |
H A D | tcp.c | 2622 mblk_t *mp1; in tcp_rput_data() local 2924 mp1 = tcp_xmit_mp(tcp, tcp->tcp_xmit_head, tcp->tcp_mss, in tcp_rput_data() 2926 if (mp1 != NULL) { in tcp_rput_data() 2927 TCP_DUMP_PACKET("tcp_rput_data replying SYN", mp1); in tcp_rput_data() 2928 (void) ipv4_tcp_output(sock_id, mp1); in tcp_rput_data() 2930 freeb(mp1); in tcp_rput_data() 3139 if ((mp1 = mp2->b_cont) != NULL) { in tcp_rput_data() 3141 freemsg(mp1); in tcp_rput_data() 3465 mp1 = tcp->tcp_xmit_head; in tcp_rput_data() 3479 if (mp1 != NULL && tcp->tcp_suna != tcp->tcp_snxt && in tcp_rput_data() [all …]
|
/titanic_41/usr/src/uts/common/fs/sockfs/ |
H A D | sodirect.c | 154 mblk_t *mp1 = mp; in sod_uioa_mblk_init() local 175 uint32_t len = MBLKL(mp1); in sod_uioa_mblk_init() 177 if (!uioamove(mp1->b_rptr, len, UIO_READ, uioap)) { in sod_uioa_mblk_init() 179 DB_FLAGS(mp1) |= DBLK_UIOA; in sod_uioa_mblk_init() 186 lmp = mp1; in sod_uioa_mblk_init() 187 } while ((mp1 = mp1->b_cont) != NULL); in sod_uioa_mblk_init() 189 if (mp1 != NULL || uioap->uio_resid == 0) { in sod_uioa_mblk_init() 191 if (mp1 != NULL && lmp != NULL) { in sod_uioa_mblk_init() 192 mp->b_next = mp1; in sod_uioa_mblk_init()
|
/titanic_41/usr/src/uts/common/inet/ip/ |
H A D | rts.c | 165 mblk_t *mp1 = NULL; in rts_ioctl_alloc() local 172 mp1 = allocb_tmpl(sizeof (struct iocblk), data); in rts_ioctl_alloc() 173 if (mp1 == NULL) { in rts_ioctl_alloc() 185 ioc = (struct iocblk *)mp1->b_rptr; in rts_ioctl_alloc() 190 mp1->b_wptr += sizeof (struct iocblk); in rts_ioctl_alloc() 191 mp1->b_datap->db_type = M_IOCTL; in rts_ioctl_alloc() 192 mp1->b_cont = mp; in rts_ioctl_alloc() 194 return (mp1); in rts_ioctl_alloc() 838 mblk_t *mp1; in rts_wrw() local 872 if ((mp1 = mp->b_cont) == NULL) { in rts_wrw() [all …]
|
H A D | keysock.c | 1284 mblk_t *mp1 = NULL; in keysock_do_flushdump() local 1342 mp1 = copymsg(mp); in keysock_do_flushdump() 1343 if (mp1 == NULL) { in keysock_do_flushdump() 1370 keysock_passdown(ks, mp1, i, extv, B_TRUE); in keysock_do_flushdump() 1575 mblk_t *mp1 = NULL; in keysock_delpair_all() local 1583 mp1 = copymsg(mp); in keysock_delpair_all() 1584 if (mp1 == NULL) { in keysock_delpair_all() 1589 keysock_passdown(ks, mp1, i, extv, B_FALSE); in keysock_delpair_all() 1846 mblk_t *mp1; in keysock_wput() local 1882 if ((mp1 = mp->b_cont) == NULL) { in keysock_wput() [all …]
|
H A D | ip_arp.c | 459 mblk_t *mp1; in arp_wput() local 473 if ((mp1 = mp->b_cont) == 0) in arp_wput() 476 err = ip_sioctl_slifname_arp(q, mp1->b_rptr); in arp_wput() 478 err = ip_sioctl_ifunitsel_arp(q, (int *)mp1->b_rptr); in arp_wput() 814 mblk_t *mp1; in arp_process_packet() local 862 mp1 = mp->b_cont; in arp_process_packet() 863 if (mp1 == NULL) { in arp_process_packet() 867 if (mp1->b_cont != NULL) { in arp_process_packet() 869 if (!pullupmsg(mp1, -1)) { in arp_process_packet() 875 arh = (arh_t *)mp1->b_rptr; in arp_process_packet() [all …]
|
H A D | ip_output.c | 1235 mblk_t *mp1; in ire_send_broadcast_v4() local 1311 mp1 = copymsg(mp); in ire_send_broadcast_v4() 1312 if (mp1 == NULL) { in ire_send_broadcast_v4() 1320 ipha1 = (ipha_t *)mp1->b_rptr; in ire_send_broadcast_v4() 1329 ip_output_simple_broadcast(ixa, mp1); in ire_send_broadcast_v4() 1339 "broadcast source", mp1, ire1->ire_ill); in ire_send_broadcast_v4() 1340 freemsg(mp1); in ire_send_broadcast_v4() 1350 mp1 = ip_output_attach_policy(mp1, ipha, NULL, in ire_send_broadcast_v4() 1352 if (mp1 == NULL) { in ire_send_broadcast_v4() 1368 mp1, ire1->ire_ill); in ire_send_broadcast_v4() [all …]
|
H A D | ip.c | 1421 mblk_t *mp1; in icmp_inbound_v4() local 1423 mp1 = copymsg(mp); in icmp_inbound_v4() 1425 if (!mp1) { in icmp_inbound_v4() 1429 mp = mp1; in icmp_inbound_v4() 1483 mblk_t *mp1; in icmp_inbound_v4() local 1485 mp1 = copymsg(mp); in icmp_inbound_v4() 1487 if (!mp1) { in icmp_inbound_v4() 1491 mp = mp1; in icmp_inbound_v4() 1544 mblk_t *mp1; in icmp_inbound_v4() local 1546 mp1 = copymsg(mp); in icmp_inbound_v4() [all …]
|
H A D | icmp.c | 318 mblk_t *mp1; in icmp_tpi_bind() local 355 mp1 = reallocb(mp, sizeof (struct T_bind_ack) + sizeof (sin6_t), 1); in icmp_tpi_bind() 356 if (mp1 == NULL) { in icmp_tpi_bind() 360 mp = mp1; in icmp_tpi_bind() 682 mblk_t *mp1; in icmp_tpi_connect() local 689 mp1 = mi_tpi_conn_con(NULL, (char *)sa, in icmp_tpi_connect() 693 mp1 = mi_tpi_conn_con(NULL, (char *)sa, in icmp_tpi_connect() 696 if (mp1 == NULL) { in icmp_tpi_connect() 707 icmp_err_ack_prim(q, mp1, T_CONN_REQ, TSYSERR, ENOMEM); in icmp_tpi_connect() 711 putnext(connp->conn_rq, mp1); in icmp_tpi_connect() [all …]
|
/titanic_41/usr/src/uts/common/inet/sctp/ |
H A D | sctp_output.c | 818 mblk_t *mp1; in sctp_get_msg_to_send() local 832 mp1 = meta->b_cont; in sctp_get_msg_to_send() 836 while (mp1 != NULL) { in sctp_get_msg_to_send() 837 if (SCTP_CHUNK_CANSEND(mp1)) { in sctp_get_msg_to_send() 838 *mp = mp1; in sctp_get_msg_to_send() 845 mp1 = mp1->b_next; in sctp_get_msg_to_send() 860 if (SCTP_CHUNK_ISSENT(mp1)) { in sctp_get_msg_to_send() 936 mp1 = sctp->sctp_xmit_tail->b_cont; in sctp_get_msg_to_send() 937 while (mp1 != NULL) { in sctp_get_msg_to_send() 938 ASSERT(!SCTP_CHUNK_CANSEND(mp1)); in sctp_get_msg_to_send() [all …]
|
H A D | sctp_shutdown.c | 235 mblk_t *mp1; in sctp_ootb_shutdown_ack() local 254 mp1 = allocb(MBLKL(mp) + sctps->sctps_wroff_xtra, BPRI_MED); in sctp_ootb_shutdown_ack() 255 if (mp1 == NULL) { in sctp_ootb_shutdown_ack() 259 mp1->b_rptr += sctps->sctps_wroff_xtra; in sctp_ootb_shutdown_ack() 260 bcopy(mp->b_rptr, mp1->b_rptr, MBLKL(mp)); in sctp_ootb_shutdown_ack() 262 mp = mp1; in sctp_ootb_shutdown_ack()
|
/titanic_41/usr/src/uts/common/io/net80211/ |
H A D | net80211_ioctl.c | 111 mblk_t *mp1; in wifi_getoutmsg() local 117 mp1 = allocb(size, BPRI_HI); in wifi_getoutmsg() 118 if (mp1 == NULL) { in wifi_getoutmsg() 124 bzero(mp1->b_rptr, size); in wifi_getoutmsg() 125 bcopy(mp->b_rptr, mp1->b_rptr, WIFI_BUF_OFFSET); in wifi_getoutmsg() 126 wifi_setupoutmsg(mp1, size - WIFI_BUF_OFFSET); in wifi_getoutmsg() 128 return (mp1); in wifi_getoutmsg() 1242 mblk_t *mp1 = *mp; in wifi_cfg_getset() local 1243 wldp_t *wp = (wldp_t *)mp1->b_rptr; in wifi_cfg_getset() 1246 ASSERT(ic != NULL && mp1 != NULL); in wifi_cfg_getset() [all …]
|