Lines Matching defs:mport

39 	DBG_MPORT	= BIT(2), /* mport add/remove */
147 struct rio_mport *mport;
307 msg = rio_get_inb_message(cm->mport, cmbox);
343 rio_add_inb_buffer(cm->mport, cmbox, cm->rx_buf[i]);
492 if (!rio_mport_is_running(cm->mport))
588 if (!rio_mport_is_running(cm->mport))
619 static void riocm_inb_msg_event(struct rio_mport *mport, void *dev_id,
624 if (rio_mport_is_running(cm->mport) && !work_pending(&cm->rx_work))
646 cm->mport->id, slot, cm->tx_cnt);
680 rc = rio_add_outb_message(cm->mport, req->rdev, cmbox,
696 static void riocm_outb_msg_event(struct rio_mport *mport, void *dev_id,
701 if (cm && rio_mport_is_running(cm->mport))
743 if (cm->mport == NULL) {
755 rc = rio_add_outb_message(cm->mport, rdev, cmbox, buffer, len);
821 * internal transfer buffer (true for all RIONET compatible mport
822 * drivers). Must be reviewed if mport driver uses the buffer directly.
964 ch->loc_destid = cm->mport->host_deviceid;
988 * internal transfer buffer. Must be reviewed if mport driver uses
1061 * @new_ch_id: local mport device
1066 * -ENODEV - cannot find specified channel or mport,
1220 * riocm_ch_bind - associate a channel object and an mport device
1222 * @mport_id: local mport device ID
1226 * -ENODEV if cannot find specified mport,
1241 if ((cm->mport->id == mport_id) &&
1242 rio_mport_is_running(cm->mport)) {
1265 ch->loc_destid = cm->mport->host_deviceid;
1546 if (cm->mport->id == mport_id) {
1582 if (cm->mport->id == (u8)info[1])
1607 ((u32 *)buf)[1] = info[1]; /* put back an mport ID */
1616 * cm_mport_get_list() - Returns list of available local mport devices
1640 *entry_ptr = (cm->mport->id << 16) |
1641 cm->mport->host_deviceid;
1796 if (cm->mport->id == chan.mport_id) {
1805 if (chan.remote_destid >= RIO_ANY_DESTID(cm->mport->sys_size)) {
1965 if (cm->mport == rdev->net->hport)
2009 if (cm->mport == rdev->net->hport) {
2090 * riocm_add_mport - add new local mport device into channel management core
2091 * @dev: device object associated with mport
2093 * When a new mport device is added, CM immediately reserves inbound and
2101 struct rio_mport *mport = to_rio_mport(dev);
2103 riocm_debug(MPORT, "add mport %s", mport->name);
2109 cm->mport = mport;
2111 rc = rio_request_outb_mbox(mport, cm, cmbox,
2115 cmbox, mport->name);
2120 rc = rio_request_inb_mbox(mport, cm, cmbox,
2124 cmbox, mport->name);
2125 rio_release_outb_mbox(mport, cmbox);
2132 rio_release_inb_mbox(mport, cmbox);
2133 rio_release_outb_mbox(mport, cmbox);
2167 * riocm_remove_mport - remove local mport device from channel management core
2168 * @dev: device object associated with mport
2170 * Removes a local mport device from the list of registered devices that provide
2171 * channel management services. Returns an error if the specified mport is not
2176 struct rio_mport *mport = to_rio_mport(dev);
2184 riocm_debug(MPORT, "%s", mport->name);
2189 if (cm->mport == mport) {
2202 /* Release channels bound to this mport */
2207 mport->name, ch->id);
2221 rio_release_inb_mbox(mport, cmbox);
2222 rio_release_outb_mbox(mport, cmbox);
2235 riocm_debug(MPORT, "%s done", mport->name);
2281 * rio_mport_interface handles addition/removal local mport devices
2316 * mport additions and removals.