Lines Matching defs:mtp

88 static void	idn_recv_config(int domid, idn_msgtype_t *mtp,
97 static void idn_recv_cmd(int domid, idn_msgtype_t *mtp,
99 static int idn_recv_data(int domid, idn_msgtype_t *mtp,
110 static void idn_send_cmd_nackresp(int domid, idn_msgtype_t *mtp,
115 static void idn_mboxarea_init(idn_mboxtbl_t *mtp, register int ntbls);
144 static void idn_recv_slaballoc_req(int domid, idn_msgtype_t *mtp,
146 static void idn_send_slaballoc_resp(int domid, idn_msgtype_t *mtp,
151 static void idn_recv_slabreap_req(int domid, idn_msgtype_t *mtp,
154 static void idn_send_slabreap_resp(int domid, idn_msgtype_t *mtp,
156 static void idn_recv_slabfree_req(int domid, idn_msgtype_t *mtp,
160 static void idn_send_slabfree_resp(int domid, idn_msgtype_t *mtp,
165 static void idn_send_nodename_resp(int domid, idn_msgtype_t *mtp,
167 static void idn_recv_nodename_req(int domid, idn_msgtype_t *mtp,
177 static int idn_xphase_transition(int domid, idn_msgtype_t *mtp,
197 static void idn_send_acknack(int domid, idn_msgtype_t *mtp,
200 static int idn_send_nego(int domid, idn_msgtype_t *mtp,
203 static int idn_check_nego(int domid, idn_msgtype_t *mtp,
205 static void idn_action_nego_pend(int domid, idn_msgtype_t *mtp,
207 static void idn_error_nego(int domid, idn_msgtype_t *mtp,
209 static void idn_action_nego_sent(int domid, idn_msgtype_t *mtp,
211 static void idn_action_nego_rcvd(int domid, idn_msgtype_t *mtp,
216 static int idn_send_con(int domid, idn_msgtype_t *mtp,
219 static int idn_check_con(int domid, idn_msgtype_t *mtp,
221 static void idn_action_con_pend(int domid, idn_msgtype_t *mtp,
223 static void idn_error_con(int domid, idn_msgtype_t *mtp,
225 static void idn_action_con_sent(int domid, idn_msgtype_t *mtp,
227 static void idn_action_con_rcvd(int domid, idn_msgtype_t *mtp,
232 static int idn_send_fin(int domid, idn_msgtype_t *mtp, idn_fin_t fintype,
236 static int idn_check_fin_pend(int domid, idn_msgtype_t *mtp,
238 static void idn_action_fin_pend(int domid, idn_msgtype_t *mtp,
240 static void idn_error_fin_pend(int domid, idn_msgtype_t *mtp,
242 static int idn_check_fin_sent(int domid, idn_msgtype_t *mtp,
244 static void idn_action_fin_sent(int domid, idn_msgtype_t *mtp,
246 static void idn_error_fin_sent(int domid, idn_msgtype_t *mtp,
248 static void idn_action_fin_rcvd(int domid, idn_msgtype_t *mtp,
1362 idn_send_nego(int domid, idn_msgtype_t *mtp, domainset_t conset)
1376 if (mtp) {
1377 acknack = mtp->mt_mtype & IDNP_ACKNACK_MASK;
1378 mt.mt_mtype = mtp->mt_mtype;
1379 mt.mt_atype = mtp->mt_atype;
1380 mt.mt_cookie = mtp->mt_cookie;
1479 idn_recv_nego(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs,
1482 uint_t msg = mtp->mt_mtype;
1491 mt.mt_cookie = mtp->mt_cookie;
1582 (void) idn_xphase_transition(domid, mtp, xargs);
1672 idn_check_nego(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
1677 uint_t msg = mtp ? mtp->mt_mtype : 0;
2016 idn_action_nego_pend(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
2018 uint_t msg = mtp ? mtp->mt_mtype : 0;
2033 mt.mt_cookie = mtp->mt_cookie;
2040 idn_error_nego(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
2044 uint_t msg = mtp ? mtp->mt_mtype : 0;
2078 mt.mt_cookie = mtp->mt_cookie;
2109 idn_action_nego_sent(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
2111 uint_t msg = mtp ? mtp->mt_mtype : 0;
2118 mt.mt_cookie = mtp ? mtp->mt_cookie : 0;
2214 idn_action_nego_rcvd(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
2216 uint_t msg = mtp ? mtp->mt_mtype : 0;
2478 idn_send_con(int domid, idn_msgtype_t *mtp, idn_con_t contype, domainset_t
2488 if (mtp) {
2489 acknack = mtp->mt_mtype & IDNP_ACKNACK_MASK;
2490 mt.mt_mtype = mtp->mt_mtype;
2491 mt.mt_atype = mtp->mt_atype;
2492 mt.mt_cookie = mtp->mt_cookie;
2529 idn_recv_con(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
2531 uint_t msg = mtp ? mtp->mt_mtype : 0;
2532 uint_t msgarg = mtp ? mtp->mt_atype : 0;
2543 mt.mt_cookie = mtp ? mtp->mt_cookie : 0;
2603 (void) idn_xphase_transition(domid, mtp, xargs);
2657 idn_check_con(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
2660 uint_t msg = mtp ? mtp->mt_mtype : 0;
2732 idn_error_con(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
2735 uint_t msg = mtp ? mtp->mt_mtype : 0;
2746 mt.mt_cookie = mtp->mt_cookie;
2759 idn_action_con_pend(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
2761 uint_t msg = mtp ? mtp->mt_mtype : 0;
2779 mt.mt_cookie = mtp->mt_cookie;
2785 idn_action_con_sent(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
2787 uint_t msg = mtp ? mtp->mt_mtype : 0;
2796 mt.mt_cookie = mtp ? mtp->mt_cookie : 0;
2837 idn_action_con_rcvd(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
2839 uint_t msg = mtp ? mtp->mt_mtype : 0;
2994 idn_send_fin(int domid, idn_msgtype_t *mtp, idn_fin_t fintype, idn_finarg_t
3009 if (mtp) {
3010 acknack = mtp->mt_mtype & IDNP_ACKNACK_MASK;
3011 mt.mt_mtype = mtp->mt_mtype;
3012 mt.mt_atype = mtp->mt_atype;
3013 mt.mt_cookie = mtp->mt_cookie;
3056 idn_recv_fin(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
3058 uint_t msg = mtp ? mtp->mt_mtype : 0;
3071 mt.mt_cookie = mtp ? mtp->mt_cookie : 0;
3189 mtp->mt_mtype = 0;
3190 mtp->mt_atype = 0;
3194 mtp->mt_mtype = IDNP_FIN | IDNP_ACK;
3195 mtp->mt_atype = 0;
3199 mtp->mt_mtype = IDNP_ACK;
3200 mtp->mt_atype = IDNP_FIN | IDNP_ACK;
3225 (void) idn_xphase_transition(domid, mtp, xargs);
3288 idn_check_fin_pend(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
3298 uint_t msg = mtp ? mtp->mt_mtype : 0;
3686 idn_error_fin_pend(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
3688 uint_t msg = mtp ? mtp->mt_mtype : 0;
3705 mt.mt_cookie = mtp->mt_cookie;
3717 idn_action_fin_pend(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
3725 uint_t msg = mtp ? mtp->mt_mtype : 0;
3740 mt.mt_cookie = mtp ? mtp->mt_cookie : 0;
3783 idn_check_fin_sent(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
3786 uint_t msg = mtp ? mtp->mt_mtype : 0;
3913 idn_error_fin_sent(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
3915 uint_t msg = mtp ? mtp->mt_mtype : 0;
3932 mt.mt_cookie = mtp->mt_cookie;
3944 idn_action_fin_sent(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
3946 uint_t msg = mtp ? mtp->mt_mtype : 0;
3958 mt.mt_cookie = mtp ? mtp->mt_cookie : 0;
4019 idn_action_fin_rcvd(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
4021 uint_t msg = mtp ? mtp->mt_mtype : 0;
4318 idn_xphase_transition(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
4320 uint_t msg = mtp ? mtp->mt_mtype : 0;
4321 uint_t msgarg = mtp ? mtp->mt_atype : 0;
4401 if (cfunc && ((err = (*cfunc)(domid, mtp, xargs)) < 0)) {
4427 (*efunc)(domid, mtp, xargs);
4429 (*afunc)(domid, mtp, xargs);
5858 idn_reset_mboxtbl(idn_mboxtbl_t *mtp)
5861 idn_mboxmsg_t *mp = &mtp->mt_queue[0];
5908 idn_mboxtbl_t *mtp;
5910 mtp = IDN_MBOXTBL_PTR(ldp->dmbox.m_tbl, domid);
5913 *mdomain = IDN_ADDR2OFFSET(mtp);
5922 mtp = IDN_MBOXAREA_BASE(idn.mboxarea, domid);
5924 *mtable = IDN_ADDR2OFFSET(mtp);
5926 dp->dmbox.m_tbl = mtp;
6375 idn_recv_config(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
6377 uint_t msg = mtp->mt_mtype;
6764 mt.mt_cookie = mtp->mt_cookie;
7522 idn_mboxtbl_t *mtp;
7550 mtp = IDN_MBOXTBL_PTR(ldp->dmbox.m_tbl, domid);
7555 mmp[c].mm_smr_mboxp = mtp;
7556 mbox_csum = IDN_CKSUM_MBOX(&mtp->mt_header);
7557 if (!VALID_MBOXHDR(&mtp->mt_header, c, mbox_csum)) {
7566 IDN_GET_MBOXHDR_COOKIE(&mtp->mt_header),
7567 (int)mtp->mt_header.mh_cksum,
7574 activeptr = mtp->mt_header.mh_svr_active_ptr;
7575 readyptr = mtp->mt_header.mh_svr_ready_ptr;
7596 IDN_MBOXTBL_PTR_INC(mtp);
7611 if ((mtp = mmp->mm_smr_mboxp) == NULL) {
7617 mbox_csum = IDN_CKSUM_MBOX(&mtp->mt_header);
7619 if (!VALID_MBOXHDR(&mtp->mt_header, c, mbox_csum)) {
7628 IDN_GET_MBOXHDR_COOKIE(&mtp->mt_header),
7629 (int)mtp->mt_header.mh_cksum,
7636 activeptr = mtp->mt_header.mh_svr_active_ptr;
7637 readyptr = mtp->mt_header.mh_svr_ready_ptr;
7657 idn_reset_mboxtbl(mtp);
7659 IDN_MBOXTBL_PTR_INC(mtp);
8078 idn_send_cmdresp(int domid, idn_msgtype_t *mtp, idn_cmd_t cmdtype, uint_t arg1,
8096 mt.mt_cookie = mtp->mt_cookie;
8102 idn_send_cmd_nackresp(int domid, idn_msgtype_t *mtp, idn_cmd_t cmdtype,
8112 mt.mt_cookie = mtp->mt_cookie;
8153 idn_recv_cmd(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
8155 uint_t msg = mtp->mt_mtype;
8195 idn_send_cmd_nackresp(domid, mtp, cmdtype,
8298 idn_recv_slaballoc_req(domid, mtp, cmdarg1);
8302 idn_recv_slabfree_req(domid, mtp, cmdarg1, cmdarg2);
8306 idn_recv_slabreap_req(domid, mtp, cmdarg1);
8310 idn_recv_nodename_req(domid, mtp, cmdarg1);
8324 idn_send_cmd_nackresp(domid, mtp, cmdtype,
8469 idn_send_acknack(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
8474 ASSERT(mtp ? (mtp->mt_mtype & IDNP_ACKNACK_MASK) : 1);
8482 INUM2STR(mtp->mt_mtype, mstr);
8483 INUM2STR(mtp->mt_atype, astr);
8485 if (mtp->mt_mtype & IDNP_ACK) {
8504 (void) IDNXDC(domid, mtp, xargs[0], xargs[1], xargs[2], xargs[3]);
8562 idn_recv_slaballoc_req(int domid, idn_msgtype_t *mtp, uint_t slab_size)
8582 idn_send_slaballoc_resp(domid, mtp, 0, 0, EACCES);
8591 idn_send_slaballoc_resp(domid, mtp, 0, 0, ENOLINK);
8639 idn_send_slaballoc_resp(domid, mtp, slab_offset, slab_size,
8645 idn_send_slaballoc_resp(int domid, idn_msgtype_t *mtp, smr_offset_t slab_offset,
8654 idn_send_cmdresp(domid, mtp, IDNCMD_SLABALLOC, slab_offset, slab_size,
8748 idn_recv_slabreap_req(int domid, idn_msgtype_t *mtp, int nslabs)
8764 idn_send_cmdresp(domid, mtp, IDNCMD_SLABREAP, 0, 0, EACCES);
8782 idn_send_slabreap_resp(domid, mtp, nslabs, 0);
8808 idn_send_slabreap_resp(int domid, idn_msgtype_t *mtp, int nslabs, int serrno)
8810 idn_send_cmdresp(domid, mtp, IDNCMD_SLABREAP, nslabs, 0, serrno);
8818 idn_recv_slabfree_req(int domid, idn_msgtype_t *mtp, smr_offset_t slab_offset,
8831 idn_send_slabfree_resp(domid, mtp, slab_offset, slab_size,
8838 idn_send_slabfree_resp(domid, mtp, slab_offset, slab_size,
8858 idn_send_slabfree_resp(domid, mtp, slab_offset, slab_size, serrno);
8890 idn_send_slabfree_resp(int domid, idn_msgtype_t *mtp, uint_t slab_offset,
8893 idn_send_cmdresp(domid, mtp, IDNCMD_SLABFREE, slab_offset, slab_size,
8954 idn_send_nodename_resp(int domid, idn_msgtype_t *mtp, smr_offset_t bufoffset,
8957 idn_send_cmdresp(domid, mtp, IDNCMD_NODENAME, (uint_t)bufoffset, 0,
8962 idn_recv_nodename_req(int domid, idn_msgtype_t *mtp, smr_offset_t bufoffset)
8977 idn_send_cmd_nackresp(domid, mtp, IDNCMD_NODENAME,
8989 idn_send_nodename_resp(domid, mtp, bufoffset, EINVAL);
9000 idn_send_nodename_resp(domid, mtp, bufoffset, EINVAL);
9008 idn_send_nodename_resp(domid, mtp, bufoffset, 0);
9955 idn_mboxarea_init(idn_mboxtbl_t *mtp, register int ntbls)
9958 caddr_t state_ptr = NULL, mtbasep = (caddr_t)mtp;
9962 ASSERT(mtp && (ntbls > 0));
9965 proc, (void *)mtp, ntbls);
9971 mtp->mt_header.mh_svr_active = 0;
9972 mtp->mt_header.mh_svr_ready = 0;
9995 mtp->mt_header.mh_svr_active_ptr = IDN_ADDR2OFFSET(state_ptr);
9998 mtp->mt_header.mh_svr_ready_ptr = IDN_ADDR2OFFSET(state_ptr);
10000 mtp->mt_header.mh_cookie = IDN_MAKE_MBOXHDR_COOKIE(pd, sd, ch);
10002 mtp->mt_header.mh_cksum = IDN_CKSUM_MBOX(&mtp->mt_header);
10004 IDN_MBOXTBL_PTR_INC(mtp);
10491 idn_mboxtbl_t *mtp;
10506 mtp = IDN_MBOXTBL_PTR_CHAN(ldp->dmbox.m_tbl, channel);
10507 mhp = &mtp->mt_header;
10508 mbox_csum = IDN_CKSUM_MBOX(&mtp->mt_header);
12138 idn_recv_data(int domid, idn_msgtype_t *mtp, idn_xdcargs_t xargs)
12141 uint_t msg = mtp ? mtp->mt_mtype : 0;
12142 uint_t msgarg = mtp ? mtp->mt_atype : 0;