Lines Matching defs:mport

32 #define GET_RMM_HANDLE(mport) \
33 (((struct rio_priv *)(mport->priv))->rmm_handle)
326 if (fsl_dbell->mport[i]) {
328 &fsl_dbell->mport[i]->dbells, node) {
338 dbell->dinb(fsl_dbell->mport[i],
506 if (pw->mport[i])
507 rio_inb_pwrite_handler(pw->mport[i],
515 * @mport: Master port implementing the port write unit
518 int fsl_rio_pw_enable(struct rio_mport *mport, int enable)
536 * @mport: Master port implementing the port write unit
616 * @mport: RapidIO master port info
624 int fsl_rio_doorbell_send(struct rio_mport *mport,
650 * @mport: Master port with outbound message queue
660 fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox,
663 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport);
687 desc->dattr = 0x28000000 | ((mport->index) << 20);
710 * @mport: Master port implementing the outbound message unit
720 fsl_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries)
723 struct rio_priv *priv = mport->priv;
724 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport);
776 rc = request_irq(IRQ_RIO_TX(mport), fsl_rio_tx_handler, 0,
777 "msg_tx", (void *)mport);
817 * @mport: Master port implementing the outbound message unit
823 void fsl_close_outb_mbox(struct rio_mport *mport, int mbox)
825 struct rio_priv *priv = mport->priv;
826 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport);
837 free_irq(IRQ_RIO_TX(mport), (void *)mport);
842 * @mport: Master port implementing the inbound message unit
852 fsl_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries)
855 struct rio_priv *priv = mport->priv;
856 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport);
888 rc = request_irq(IRQ_RIO_RX(mport), fsl_rio_rx_handler, 0,
889 "msg_rx", (void *)mport);
918 * @mport: Master port implementing the inbound message unit
924 void fsl_close_inb_mbox(struct rio_mport *mport, int mbox)
926 struct rio_priv *priv = mport->priv;
927 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport);
937 free_irq(IRQ_RIO_RX(mport), (void *)mport);
942 * @mport: Master port implementing the inbound message unit
949 int fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf)
952 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport);
975 * @mport: Master port implementing the inbound message unit
981 void *fsl_get_inb_message(struct rio_mport *mport, int mbox)
983 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport);
1021 * @mport: Master port implementing the inbound doorbell unit
1065 int fsl_rio_setup_rmu(struct rio_mport *mport, struct device_node *node)
1071 if (!mport || !mport->priv)
1074 priv = mport->priv;
1102 rio_init_dbell_res(&mport->riores[RIO_DOORBELL_RESOURCE], 0, 0xffff);
1103 rio_init_mbox_res(&mport->riores[RIO_INB_MBOX_RESOURCE], 0, 0);
1104 rio_init_mbox_res(&mport->riores[RIO_OUTB_MBOX_RESOURCE], 0, 0);