Home
last modified time | relevance | path

Searched refs:mp2 (Results 1 – 25 of 25) sorted by relevance

/titanic_41/usr/src/uts/common/os/
H A Dlogsubr.c497 mblk_t *mp2; in log_makemsg() local
507 (mp2 = allocb(MAX(size, LOG_MSGSIZE), BPRI_HI)) == NULL) { in log_makemsg()
513 mp->b_cont = mp2; in log_makemsg()
515 mp2 = mp->b_cont; in log_makemsg()
516 mp2->b_wptr = mp2->b_rptr; in log_makemsg()
526 bcopy(msg, mp2->b_wptr, size - 1); in log_makemsg()
527 mp2->b_wptr[size - 1] = '\0'; in log_makemsg()
528 mp2->b_wptr += strlen((char *)mp2->b_wptr) + 1; in log_makemsg()
536 mblk_t *mp2 = mp->b_cont; in log_freemsg() local
539 ASSERT(mp2->b_rptr == mp2->b_datap->db_base); in log_freemsg()
[all …]
/titanic_41/usr/src/uts/common/krtld/
H A Dkobj_kdi.c175 struct modctl *mc2, struct module *mp2) 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/rpc/sec/
H A Dauthdesubr.c94 mblk_t *mp2; in rtime() local
277 mp2 = mp; in rtime()
283 while (mp2 != NULL) { in rtime()
291 mp2->b_rptr < mp2->b_wptr) { in rtime()
301 dummy += ((*mp2->b_rptr) & in rtime()
304 mp2->b_rptr++; in rtime()
307 mp2 = mp2->b_cont; in rtime()
/titanic_41/usr/src/uts/common/io/
H A Dlog.c163 mblk_t *mp2; in log_wput() local
246 mp2 = log_makemsg(LOG_MID, LOG_CONSMIN, lc->level, in log_wput()
249 if (mp2 != NULL) in log_wput()
250 log_sendmsg(mp2, zoneid); in log_wput()
255 mp2 = log_makemsg(LOG_MID, LOG_CONSMIN, 0, SL_CONSOLE, in log_wput()
257 if (mp2 != NULL) in log_wput()
258 log_sendmsg(mp2, zoneid); in log_wput()
H A Dwscons.c924 mblk_t *mp2; in wc_open_kb_polledio() local
930 mp2 = mkiocb(CONSOPENPOLLEDIO); in wc_open_kb_polledio()
932 if (mp2 == NULL) { in wc_open_kb_polledio()
939 mp2->b_cont = allocb(sizeof (struct cons_polledio *), BPRI_HI); in wc_open_kb_polledio()
941 if (mp2->b_cont == NULL) { in wc_open_kb_polledio()
946 freemsg(mp2); in wc_open_kb_polledio()
950 iocp = (struct iocblk *)(void *)mp2->b_rptr; in wc_open_kb_polledio()
953 mp2->b_cont->b_wptr = mp2->b_cont->b_rptr + in wc_open_kb_polledio()
960 putnext(wscons->wc_kbdqueue, mp2); in wc_open_kb_polledio()
980 mblk_t *mp2; in wc_close_kb_polledio() local
[all …]
H A Dstream.c516 mblk_t *mp2; in msg_getcred() local
542 mp2 = mp->b_cont; in msg_getcred()
543 while (mp2 != NULL) { in msg_getcred()
544 cr2 = DB_CRED(mp2); in msg_getcred()
552 mp2 = mp2->b_cont; in msg_getcred()
578 mblk_t *mp2; in msg_extractcred() local
605 mp2 = mp->b_cont; in msg_extractcred()
606 while (mp2 != NULL) { in msg_extractcred()
607 cr2 = DB_CRED(mp2); in msg_extractcred()
615 mp2 = mp2->b_cont; in msg_extractcred()
[all …]
/titanic_41/usr/src/uts/sun4u/starfire/cvc/
H A Dcvc.c474 mblk_t *mp2 = mp; in cvc_wput() local
477 while (mp2 != NULL) { in cvc_wput()
478 count = mp2->b_wptr - mp2->b_rptr; in cvc_wput()
479 msgp = (char *)mp2->b_rptr; in cvc_wput()
487 mp2 = mp2->b_cont; in cvc_wput()
520 mblk_t *mp2 = mp; in cvc_wsrv() local
523 while (mp2 != NULL) { in cvc_wsrv()
524 count = mp2->b_wptr - mp2->b_rptr; in cvc_wsrv()
525 msgp = (char *)mp2->b_rptr; in cvc_wsrv()
533 mp2 = mp2->b_cont; in cvc_wsrv()
/titanic_41/usr/src/uts/common/crypto/io/
H A Darcfour.c283 mblk_t *mp = input->cd_mp, *mp1, *mp2; in rc4_crypt_update() local
292 mp2 = advance_position(mp, input->cd_offset + in rc4_crypt_update()
295 if (mp2 == NULL) in rc4_crypt_update()
393 mblk_t *mp = input->cd_mp, *mp1, *mp2; in rc4_crypt_update() local
402 mp2 = advance_position(mp, input->cd_offset + input->cd_length, in rc4_crypt_update()
405 if (mp2 == NULL) in rc4_crypt_update()
557 mblk_t *mp = out->cd_mp, *mp1, *mp2; in crypto_arcfour_crypt() local
566 mp2 = advance_position(mp, out->cd_offset + in crypto_arcfour_crypt()
569 if (mp2 == NULL) in crypto_arcfour_crypt()
/titanic_41/usr/src/stand/lib/tcp/
H A Dtcp.c3061 mblk_t *mp2; in tcp_rput_data() local
3069 mp2 = mp; in tcp_rput_data()
3071 freeb(mp2); in tcp_rput_data()
3079 mblk_t *mp2; in tcp_rput_data() local
3132 mp2 = mp; in tcp_rput_data()
3134 assert((uintptr_t)(mp2->b_wptr - in tcp_rput_data()
3135 mp2->b_rptr) <= (uintptr_t)INT_MAX); in tcp_rput_data()
3136 rgap -= (int)(mp2->b_wptr - mp2->b_rptr); in tcp_rput_data()
3138 mp2->b_wptr += rgap; in tcp_rput_data()
3139 if ((mp1 = mp2->b_cont) != NULL) { in tcp_rput_data()
[all …]
/titanic_41/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_kdi.c131 struct modctl *mc2, struct module *mp2) in kmdb_kdi_mod_haschanged() argument
133 return (mdb.m_kdi->kdi_mod_haschanged(mc1, mp1, mc2, mp2)); in kmdb_kdi_mod_haschanged()
/titanic_41/usr/src/uts/common/io/hxge/
H A Dhxge_ndd.c1351 p_mblk_t mp1, mp2; in hxge_nd_getset() local
1415 mp2 = mp1; in hxge_nd_getset()
1416 while (mp2) { in hxge_nd_getset()
1417 mp2->b_wptr = mp2->b_rptr; in hxge_nd_getset()
1418 mp2 = mp2->b_cont; in hxge_nd_getset()
1430 err = hxge_mk_mblk_tail_space(mp1, &mp2, 1); in hxge_nd_getset()
1432 *mp2->b_wptr++ = '\0'; in hxge_nd_getset()
1440 mp1, &mp2, 1); in hxge_nd_getset()
1442 *mp2->b_wptr++ = '\0'; in hxge_nd_getset()
/titanic_41/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge.c1875 mblk_t *mp2 = NULL; /* packet content */ in ql_build_rx_mp() local
2042 mp2 = sbq_desc->mp; in ql_build_rx_mp()
2045 if ((err_flag != 0) || (mp2 == NULL)) { in ql_build_rx_mp()
2051 mp2 = NULL; in ql_build_rx_mp()
2060 mp2 = NULL; in ql_build_rx_mp()
2063 mp2->b_wptr = mp2->b_rptr + payload_len; in ql_build_rx_mp()
2064 mp2->b_next = mp2->b_cont = NULL; in ql_build_rx_mp()
2067 (uint8_t *)mp2->b_rptr, 8, payload_len); in ql_build_rx_mp()
2076 bcopy(mp2->b_rptr, mp1->b_wptr, payload_len); in ql_build_rx_mp()
2078 freemsg(mp2); in ql_build_rx_mp()
[all …]
/titanic_41/usr/src/uts/common/inet/
H A Dmi.c319 MBLKP mp2; in mi_copyout() local
354 for (mp2 = mp1; mp2->b_cont->b_cont; mp2 = mp2->b_cont) in mi_copyout()
356 if (mp2 == mp1) in mi_copyout()
360 cq->cq_addr = (char *)mp2->b_cont->b_next; in mi_copyout()
361 mp1 = mp2->b_cont; in mi_copyout()
364 mp2->b_cont = NULL; in mi_copyout()
/titanic_41/usr/src/uts/common/inet/tcp/
H A Dtcp_input.c561 mblk_t *mp2; in tcp_reass() local
614 for (; (mp2 = mp1->b_cont) != NULL; mp1 = mp2) { in tcp_reass()
615 u1 = TCP_REASS_SEQ(mp2); in tcp_reass()
620 mp->b_cont = mp2; in tcp_reass()
3043 mblk_t *mp2; in tcp_input_data() local
3051 mp2 = mp; in tcp_input_data()
3053 freeb(mp2); in tcp_input_data()
3067 mblk_t *mp2; in tcp_input_data() local
3178 mp2 = mp; in tcp_input_data()
3180 ASSERT((uintptr_t)(mp2->b_wptr - mp2->b_rptr) <= in tcp_input_data()
[all …]
H A Dtcp_output.c3026 mblk_t *mp2; in tcp_xmit_mp() local
3064 for (mp2 = mp1; mp && data_length != max_to_send; mp = mp->b_cont) { in tcp_xmit_mp()
3066 if (mp2 != mp1 && !sendall && in tcp_xmit_mp()
3074 mp2->b_cont = dupb(mp); in tcp_xmit_mp()
3075 mp2 = mp2->b_cont; in tcp_xmit_mp()
3076 if (!mp2) { in tcp_xmit_mp()
3080 mp2->b_rptr += off; in tcp_xmit_mp()
3081 ASSERT((uintptr_t)(mp2->b_wptr - mp2->b_rptr) <= in tcp_xmit_mp()
3084 data_length += (int)(mp2->b_wptr - mp2->b_rptr); in tcp_xmit_mp()
3086 mp2->b_wptr -= data_length - max_to_send; in tcp_xmit_mp()
[all …]
/titanic_41/usr/src/uts/common/io/usb/usba/
H A Dusba_ugen.c3416 mblk_t *mp1 = NULL, *mp2 = NULL; in ugen_epx_isoc_IN_req_cb() local
3434 mp2 = allocb(sizeof (ugen_isoc_pkt_descr_t) * n_pkt, BPRI_HI); in ugen_epx_isoc_IN_req_cb()
3435 if (mp2 == NULL) { in ugen_epx_isoc_IN_req_cb()
3440 bcopy(pkt_descr, mp2->b_wptr, in ugen_epx_isoc_IN_req_cb()
3443 mp2->b_wptr += sizeof (ugen_isoc_pkt_descr_t) * n_pkt; in ugen_epx_isoc_IN_req_cb()
3446 linkb(mp2, reqp->isoc_data); in ugen_epx_isoc_IN_req_cb()
3449 if ((mp1 = msgpullup(mp2, -1)) != NULL) { in ugen_epx_isoc_IN_req_cb()
3460 mp2->b_cont = NULL; in ugen_epx_isoc_IN_req_cb()
3463 freemsg(mp2); in ugen_epx_isoc_IN_req_cb()
3464 mp2 = NULL; in ugen_epx_isoc_IN_req_cb()
/titanic_41/usr/src/uts/common/inet/ip/
H A Dip_arp.c2400 mblk_t *mp1, *mp2; in arp_ifname_notify() local
2406 if ((mp2 = allocb(sizeof (struct lifreq), BPRI_HI)) == NULL) { in arp_ifname_notify()
2411 lifr = (struct lifreq *)mp2->b_rptr; in arp_ifname_notify()
2412 mp2->b_wptr += sizeof (struct lifreq); in arp_ifname_notify()
2421 mp1->b_cont = mp2; in arp_ifname_notify()
H A Dip.c3898 mblk_t *mp2; in ip_carve_mp() local
3927 for (mp2 = mp1 = mp0; (mp2 = mp2->b_cont) != 0 && len; mp1 = mp2) { in ip_carve_mp()
3928 if (mp2->b_wptr - mp2->b_rptr > len) { in ip_carve_mp()
3933 mp1->b_cont = dupb(mp2); in ip_carve_mp()
3943 freemsg(mp2); in ip_carve_mp()
3948 mp2->b_rptr = mp1->b_wptr; in ip_carve_mp()
3954 if (!OK_32PTR(mp2->b_rptr)) { in ip_carve_mp()
3955 if (!pullupmsg(mp2, -1)) { in ip_carve_mp()
3957 freemsg(mp2); in ip_carve_mp()
3962 *mpp = mp2; in ip_carve_mp()
[all …]
H A Dip_if.c16764 mblk_t *mp1, *mp2; in ip_ifname_notify() local
16771 mp2 = allocb(sizeof (struct lifreq), BPRI_HI); in ip_ifname_notify()
16772 if (mp2 == NULL) { in ip_ifname_notify()
16777 mp1->b_cont = mp2; in ip_ifname_notify()
16781 lifr = (struct lifreq *)mp2->b_rptr; in ip_ifname_notify()
16782 mp2->b_wptr += sizeof (struct lifreq); in ip_ifname_notify()
/titanic_41/usr/src/common/mpi/
H A Dmpi.h257 void mp_exch(mp_int *mp1, mp_int *mp2);
H A Dmpi.c272 void mp_exch(mp_int *mp1, mp_int *mp2) in mp_exch() argument
275 assert(mp1 != NULL && mp2 != NULL); in mp_exch()
277 if(mp1 == NULL || mp2 == NULL) in mp_exch()
281 s_mp_exch(mp1, mp2); in mp_exch()
/titanic_41/usr/src/uts/common/inet/sockmods/
H A Dsocksctp.c2057 mblk_t *mp2; in sctp_assoc_recv() local
2086 mp2 = mp->b_cont; in sctp_assoc_recv()
2087 sn = (union sctp_notification *)mp2->b_rptr; in sctp_assoc_recv()
/titanic_41/usr/src/uts/common/inet/sctp/
H A Dsctp_input.c2849 mblk_t *mp2 = sctp->sctp_xmit_head->b_cont; in sctp_got_sack() local
2851 while (mp2 != NULL) { in sctp_got_sack()
2852 if (mp2 == mp) in sctp_got_sack()
2854 mp2 = mp2->b_next; in sctp_got_sack()
2856 ASSERT(mp2 != NULL); in sctp_got_sack()
/titanic_41/usr/src/uts/sun/io/eri/
H A Deri.c4455 mblk_t *mp2 = mp1; in eri_nd_getset() local
4457 while (mp2) { in eri_nd_getset()
4458 mp2->b_wptr = mp2->b_rptr; in eri_nd_getset()
4459 mp2 = mp2->b_cont; in eri_nd_getset()
/titanic_41/usr/src/uts/sun4u/starcat/io/
H A Ddman.c3130 man_match_proto(mblk_t *mp1, mblk_t *mp2) in man_match_proto() argument
3140 prim2 = DL_PRIM(mp2); in man_match_proto()
3154 poff2 = (dl_promiscoff_req_t *)mp2->b_rptr; in man_match_proto()
3172 dlp = (union DL_primitives *)mp2->b_rptr; in man_match_proto()
3174 addrp2 = (eaddr_t *)(mp2->b_rptr + off); in man_match_proto()