• Home
  • Raw
  • Download

Lines Matching refs:mport

36 #define GET_RMM_HANDLE(mport) \  argument
37 (((struct rio_priv *)(mport->priv))->rmm_handle)
328 if (fsl_dbell->mport[i]) { in fsl_rio_dbell_handler()
330 &fsl_dbell->mport[i]->dbells, node) { in fsl_rio_dbell_handler()
340 dbell->dinb(fsl_dbell->mport[i], in fsl_rio_dbell_handler()
516 int fsl_rio_pw_enable(struct rio_mport *mport, int enable) in fsl_rio_pw_enable() argument
622 int fsl_rio_doorbell_send(struct rio_mport *mport, in fsl_rio_doorbell_send() argument
652 fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in fsl_add_outb_message() argument
655 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_add_outb_message()
679 desc->dattr = 0x28000000 | ((mport->index) << 20); in fsl_add_outb_message()
712 fsl_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) in fsl_open_outb_mbox() argument
715 struct rio_priv *priv = mport->priv; in fsl_open_outb_mbox()
716 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_open_outb_mbox()
769 rc = request_irq(IRQ_RIO_TX(mport), fsl_rio_tx_handler, 0, in fsl_open_outb_mbox()
770 "msg_tx", (void *)mport); in fsl_open_outb_mbox()
816 void fsl_close_outb_mbox(struct rio_mport *mport, int mbox) in fsl_close_outb_mbox() argument
818 struct rio_priv *priv = mport->priv; in fsl_close_outb_mbox()
819 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_close_outb_mbox()
830 free_irq(IRQ_RIO_TX(mport), (void *)mport); in fsl_close_outb_mbox()
845 fsl_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) in fsl_open_inb_mbox() argument
848 struct rio_priv *priv = mport->priv; in fsl_open_inb_mbox()
849 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_open_inb_mbox()
881 rc = request_irq(IRQ_RIO_RX(mport), fsl_rio_rx_handler, 0, in fsl_open_inb_mbox()
882 "msg_rx", (void *)mport); in fsl_open_inb_mbox()
917 void fsl_close_inb_mbox(struct rio_mport *mport, int mbox) in fsl_close_inb_mbox() argument
919 struct rio_priv *priv = mport->priv; in fsl_close_inb_mbox()
920 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_close_inb_mbox()
930 free_irq(IRQ_RIO_RX(mport), (void *)mport); in fsl_close_inb_mbox()
942 int fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) in fsl_add_inb_buffer() argument
945 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_add_inb_buffer()
974 void *fsl_get_inb_message(struct rio_mport *mport, int mbox) in fsl_get_inb_message() argument
976 struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); in fsl_get_inb_message()
1058 int fsl_rio_setup_rmu(struct rio_mport *mport, struct device_node *node) in fsl_rio_setup_rmu() argument
1067 if (!mport || !mport->priv) in fsl_rio_setup_rmu()
1070 priv = mport->priv; in fsl_rio_setup_rmu()
1102 rio_init_dbell_res(&mport->riores[RIO_DOORBELL_RESOURCE], 0, 0xffff); in fsl_rio_setup_rmu()
1103 rio_init_mbox_res(&mport->riores[RIO_INB_MBOX_RESOURCE], 0, 0); in fsl_rio_setup_rmu()
1104 rio_init_mbox_res(&mport->riores[RIO_OUTB_MBOX_RESOURCE], 0, 0); in fsl_rio_setup_rmu()