Lines Matching refs:mport

32 #define GET_RMM_HANDLE(mport) \  argument
33 (((struct rio_priv *)(mport->priv))->rmm_handle)
326 if (fsl_dbell->mport[i]) { in fsl_rio_dbell_handler()
328 &fsl_dbell->mport[i]->dbells, node) { in fsl_rio_dbell_handler()
338 dbell->dinb(fsl_dbell->mport[i], in fsl_rio_dbell_handler()
506 if (pw->mport[i]) in fsl_pw_dpc()
507 rio_inb_pwrite_handler(pw->mport[i], in fsl_pw_dpc()
518 int fsl_rio_pw_enable(struct rio_mport *mport, int enable) in fsl_rio_pw_enable() argument
624 int fsl_rio_doorbell_send(struct rio_mport *mport, in fsl_rio_doorbell_send() argument
660 fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in fsl_add_outb_message() argument
663 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_add_outb_message()
687 desc->dattr = 0x28000000 | ((mport->index) << 20); in fsl_add_outb_message()
720 fsl_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) in fsl_open_outb_mbox() argument
723 struct rio_priv *priv = mport->priv; in fsl_open_outb_mbox()
724 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_open_outb_mbox()
776 rc = request_irq(IRQ_RIO_TX(mport), fsl_rio_tx_handler, 0, in fsl_open_outb_mbox()
777 "msg_tx", (void *)mport); in fsl_open_outb_mbox()
823 void fsl_close_outb_mbox(struct rio_mport *mport, int mbox) in fsl_close_outb_mbox() argument
825 struct rio_priv *priv = mport->priv; in fsl_close_outb_mbox()
826 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_close_outb_mbox()
837 free_irq(IRQ_RIO_TX(mport), (void *)mport); in fsl_close_outb_mbox()
852 fsl_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) in fsl_open_inb_mbox() argument
855 struct rio_priv *priv = mport->priv; in fsl_open_inb_mbox()
856 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_open_inb_mbox()
888 rc = request_irq(IRQ_RIO_RX(mport), fsl_rio_rx_handler, 0, in fsl_open_inb_mbox()
889 "msg_rx", (void *)mport); in fsl_open_inb_mbox()
924 void fsl_close_inb_mbox(struct rio_mport *mport, int mbox) in fsl_close_inb_mbox() argument
926 struct rio_priv *priv = mport->priv; in fsl_close_inb_mbox()
927 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_close_inb_mbox()
937 free_irq(IRQ_RIO_RX(mport), (void *)mport); in fsl_close_inb_mbox()
949 int fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) in fsl_add_inb_buffer() argument
952 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_add_inb_buffer()
981 void *fsl_get_inb_message(struct rio_mport *mport, int mbox) in fsl_get_inb_message() argument
983 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_get_inb_message()
1065 int fsl_rio_setup_rmu(struct rio_mport *mport, struct device_node *node) in fsl_rio_setup_rmu() argument
1074 if (!mport || !mport->priv) in fsl_rio_setup_rmu()
1077 priv = mport->priv; in fsl_rio_setup_rmu()
1109 rio_init_dbell_res(&mport->riores[RIO_DOORBELL_RESOURCE], 0, 0xffff); in fsl_rio_setup_rmu()
1110 rio_init_mbox_res(&mport->riores[RIO_INB_MBOX_RESOURCE], 0, 0); in fsl_rio_setup_rmu()
1111 rio_init_mbox_res(&mport->riores[RIO_OUTB_MBOX_RESOURCE], 0, 0); in fsl_rio_setup_rmu()