Lines Matching refs:mport
147 struct rio_mport *mport; member
305 msg = rio_get_inb_message(cm->mport, cmbox); in riocm_rx_get_msg()
341 rio_add_inb_buffer(cm->mport, cmbox, cm->rx_buf[i]); in riocm_rx_fill()
490 if (!rio_mport_is_running(cm->mport)) in rio_cm_handler()
586 if (!rio_mport_is_running(cm->mport)) in rio_ibmsg_handler()
617 static void riocm_inb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_inb_msg_event() argument
622 if (rio_mport_is_running(cm->mport) && !work_pending(&cm->rx_work)) in riocm_inb_msg_event()
644 cm->mport->id, slot, cm->tx_cnt); in rio_txcq_handler()
678 rc = rio_add_outb_message(cm->mport, req->rdev, cmbox, in rio_txcq_handler()
694 static void riocm_outb_msg_event(struct rio_mport *mport, void *dev_id, in riocm_outb_msg_event() argument
699 if (cm && rio_mport_is_running(cm->mport)) in riocm_outb_msg_event()
741 if (cm->mport == NULL) { in riocm_post_send()
753 rc = rio_add_outb_message(cm->mport, rdev, cmbox, buffer, len); in riocm_post_send()
962 ch->loc_destid = cm->mport->host_deviceid; in riocm_ch_connect()
1239 if ((cm->mport->id == mport_id) && in riocm_ch_bind()
1240 rio_mport_is_running(cm->mport)) { in riocm_ch_bind()
1263 ch->loc_destid = cm->mport->host_deviceid; in riocm_ch_bind()
1544 if (cm->mport->id == mport_id) { in cm_ep_get_list_size()
1580 if (cm->mport->id == (u8)info[1]) in cm_ep_get_list()
1638 *entry_ptr = (cm->mport->id << 16) | in cm_mport_get_list()
1639 cm->mport->host_deviceid; in cm_mport_get_list()
1794 if (cm->mport->id == chan.mport_id) { in cm_chan_connect()
1803 if (chan.remote_destid >= RIO_ANY_DESTID(cm->mport->sys_size)) { in cm_chan_connect()
1963 if (cm->mport == rdev->net->hport) in riocm_add_dev()
2007 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()
2178 struct rio_mport *mport = to_rio_mport(dev); in riocm_remove_mport() local
2186 riocm_debug(MPORT, "%s", mport->name); in riocm_remove_mport()
2191 if (cm->mport == mport) { in riocm_remove_mport()
2209 mport->name, ch->id); in riocm_remove_mport()
2223 rio_release_inb_mbox(mport, cmbox); in riocm_remove_mport()
2224 rio_release_outb_mbox(mport, cmbox); in riocm_remove_mport()
2237 riocm_debug(MPORT, "%s done", mport->name); in riocm_remove_mport()