Lines Matching refs:mport

147 	struct rio_mport	*mport;  member
307 msg = rio_get_inb_message(cm->mport, cmbox); in riocm_rx_get_msg()
343 rio_add_inb_buffer(cm->mport, cmbox, cm->rx_buf[i]); in riocm_rx_fill()
492 if (!rio_mport_is_running(cm->mport)) in rio_cm_handler()
588 if (!rio_mport_is_running(cm->mport)) in rio_ibmsg_handler()
619 static void riocm_inb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_inb_msg_event() argument
624 if (rio_mport_is_running(cm->mport) && !work_pending(&cm->rx_work)) in riocm_inb_msg_event()
646 cm->mport->id, slot, cm->tx_cnt); in rio_txcq_handler()
680 rc = rio_add_outb_message(cm->mport, req->rdev, cmbox, in rio_txcq_handler()
696 static void riocm_outb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_outb_msg_event() argument
701 if (cm && rio_mport_is_running(cm->mport)) in riocm_outb_msg_event()
743 if (cm->mport == NULL) { in riocm_post_send()
755 rc = rio_add_outb_message(cm->mport, rdev, cmbox, buffer, len); in riocm_post_send()
964 ch->loc_destid = cm->mport->host_deviceid; in riocm_ch_connect()
1241 if ((cm->mport->id == mport_id) && in riocm_ch_bind()
1242 rio_mport_is_running(cm->mport)) { in riocm_ch_bind()
1265 ch->loc_destid = cm->mport->host_deviceid; in riocm_ch_bind()
1546 if (cm->mport->id == mport_id) { in cm_ep_get_list_size()
1582 if (cm->mport->id == (u8)info[1]) in cm_ep_get_list()
1640 *entry_ptr = (cm->mport->id << 16) | in cm_mport_get_list()
1641 cm->mport->host_deviceid; in cm_mport_get_list()
1796 if (cm->mport->id == chan.mport_id) { in cm_chan_connect()
1805 if (chan.remote_destid >= RIO_ANY_DESTID(cm->mport->sys_size)) { in cm_chan_connect()
1965 if (cm->mport == rdev->net->hport) in riocm_add_dev()
2009 if (cm->mport == rdev->net->hport) { in riocm_remove_dev()
2101 struct rio_mport *mport = to_rio_mport(dev); in riocm_add_mport() local
2103 riocm_debug(MPORT, "add mport %s", mport->name); in riocm_add_mport()
2109 cm->mport = mport; in riocm_add_mport()
2111 rc = rio_request_outb_mbox(mport, cm, cmbox, in riocm_add_mport()
2115 cmbox, mport->name); in riocm_add_mport()
2120 rc = rio_request_inb_mbox(mport, cm, cmbox, in riocm_add_mport()
2124 cmbox, mport->name); in riocm_add_mport()
2125 rio_release_outb_mbox(mport, cmbox); in riocm_add_mport()
2132 rio_release_inb_mbox(mport, cmbox); in riocm_add_mport()
2133 rio_release_outb_mbox(mport, cmbox); in riocm_add_mport()
2176 struct rio_mport *mport = to_rio_mport(dev); in riocm_remove_mport() local
2184 riocm_debug(MPORT, "%s", mport->name); in riocm_remove_mport()
2189 if (cm->mport == mport) { in riocm_remove_mport()
2207 mport->name, ch->id); in riocm_remove_mport()
2221 rio_release_inb_mbox(mport, cmbox); in riocm_remove_mport()
2222 rio_release_outb_mbox(mport, cmbox); in riocm_remove_mport()
2235 riocm_debug(MPORT, "%s done", mport->name); in riocm_remove_mport()