• Home
  • Raw
  • Download

Lines Matching refs:mport

55 static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset,  in tsi721_lcread()  argument
58 struct tsi721_device *priv = mport->priv; in tsi721_lcread()
79 static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, in tsi721_lcwrite() argument
82 struct tsi721_device *priv = mport->priv; in tsi721_lcwrite()
204 static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cread_dma() argument
207 struct tsi721_device *priv = mport->priv; in tsi721_cread_dma()
209 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cread_dma()
227 static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cwrite_dma() argument
230 struct tsi721_device *priv = mport->priv; in tsi721_cwrite_dma()
233 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cwrite_dma()
246 tsi721_pw_handler(struct rio_mport *mport) in tsi721_pw_handler() argument
248 struct tsi721_device *priv = mport->priv; in tsi721_pw_handler()
318 static int tsi721_pw_enable(struct rio_mport *mport, int enable) in tsi721_pw_enable() argument
320 struct tsi721_device *priv = mport->priv; in tsi721_pw_enable()
348 static int tsi721_dsend(struct rio_mport *mport, int index, in tsi721_dsend() argument
351 struct tsi721_device *priv = mport->priv; in tsi721_dsend()
354 offset = (((mport->sys_size) ? RIO_TT_CODE_16 : RIO_TT_CODE_8) << 18) | in tsi721_dsend()
373 tsi721_dbell_handler(struct rio_mport *mport) in tsi721_dbell_handler() argument
375 struct tsi721_device *priv = mport->priv; in tsi721_dbell_handler()
393 struct rio_mport *mport; in tsi721_db_dpc() local
407 mport = priv->mport; in tsi721_db_dpc()
421 list_for_each_entry(dbell, &mport->dbells, node) { in tsi721_db_dpc()
430 dbell->dinb(mport, dbell->dev_id, DBELL_SID(idb.bytes), in tsi721_db_dpc()
467 struct rio_mport *mport = (struct rio_mport *)ptr; in tsi721_irqhandler() local
468 struct tsi721_device *priv = mport->priv; in tsi721_irqhandler()
491 tsi721_dbell_handler(mport); in tsi721_irqhandler()
548 tsi721_pw_handler(mport); in tsi721_irqhandler()
702 static int tsi721_request_msix(struct rio_mport *mport) in tsi721_request_msix() argument
704 struct tsi721_device *priv = mport->priv; in tsi721_request_msix()
709 priv->msix[TSI721_VECT_IDB].irq_name, (void *)mport); in tsi721_request_msix()
715 priv->msix[TSI721_VECT_PWRX].irq_name, (void *)mport); in tsi721_request_msix()
719 (void *)mport); in tsi721_request_msix()
834 static int tsi721_request_irq(struct rio_mport *mport) in tsi721_request_irq() argument
836 struct tsi721_device *priv = mport->priv; in tsi721_request_irq()
841 err = tsi721_request_msix(mport); in tsi721_request_irq()
846 DRV_NAME, (void *)mport); in tsi721_request_irq()
884 static int tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, in tsi721_rio_map_inb_mem() argument
887 struct tsi721_device *priv = mport->priv; in tsi721_rio_map_inb_mem()
930 static void tsi721_rio_unmap_inb_mem(struct rio_mport *mport, in tsi721_rio_unmap_inb_mem() argument
933 struct tsi721_device *priv = mport->priv; in tsi721_rio_unmap_inb_mem()
1301 tsi721_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in tsi721_add_outb_message() argument
1304 struct tsi721_device *priv = mport->priv; in tsi721_add_outb_message()
1327 cpu_to_le32((mport->sys_size << 26) | (mbox << 22) | in tsi721_add_outb_message()
1405 if (!priv->mport->outb_msg[ch].mcback) in tsi721_omsg_handler()
1432 priv->mport->outb_msg[ch].mcback(priv->mport, in tsi721_omsg_handler()
1455 if (priv->mport->outb_msg[ch].mcback) in tsi721_omsg_handler()
1456 priv->mport->outb_msg[ch].mcback(priv->mport, in tsi721_omsg_handler()
1489 static int tsi721_open_outb_mbox(struct rio_mport *mport, void *dev_id, in tsi721_open_outb_mbox() argument
1492 struct tsi721_device *priv = mport->priv; in tsi721_open_outb_mbox()
1583 (void *)mport); in tsi721_open_outb_mbox()
1595 (void *)mport); in tsi721_open_outb_mbox()
1603 (void *)mport); in tsi721_open_outb_mbox()
1671 static void tsi721_close_outb_mbox(struct rio_mport *mport, int mbox) in tsi721_close_outb_mbox() argument
1673 struct tsi721_device *priv = mport->priv; in tsi721_close_outb_mbox()
1687 (void *)mport); in tsi721_close_outb_mbox()
1689 (void *)mport); in tsi721_close_outb_mbox()
1756 priv->mport->inb_msg[mbox].mcback) in tsi721_imsg_handler()
1757 priv->mport->inb_msg[mbox].mcback(priv->mport, in tsi721_imsg_handler()
1779 static int tsi721_open_inb_mbox(struct rio_mport *mport, void *dev_id, in tsi721_open_inb_mbox() argument
1782 struct tsi721_device *priv = mport->priv; in tsi721_open_inb_mbox()
1862 iowrite32((u32)priv->mport->host_deviceid, in tsi721_open_inb_mbox()
1897 (void *)mport); in tsi721_open_inb_mbox()
1909 (void *)mport); in tsi721_open_inb_mbox()
1917 (void *)mport); in tsi721_open_inb_mbox()
1970 static void tsi721_close_inb_mbox(struct rio_mport *mport, int mbox) in tsi721_close_inb_mbox() argument
1972 struct tsi721_device *priv = mport->priv; in tsi721_close_inb_mbox()
1988 (void *)mport); in tsi721_close_inb_mbox()
1990 (void *)mport); in tsi721_close_inb_mbox()
2029 static int tsi721_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) in tsi721_add_inb_buffer() argument
2031 struct tsi721_device *priv = mport->priv; in tsi721_add_inb_buffer()
2060 static void *tsi721_get_inb_message(struct rio_mport *mport, int mbox) in tsi721_get_inb_message() argument
2062 struct tsi721_device *priv = mport->priv; in tsi721_get_inb_message()
2218 struct rio_mport *mport; in tsi721_setup_mport() local
2241 mport = kzalloc(sizeof(struct rio_mport), GFP_KERNEL); in tsi721_setup_mport()
2242 if (!mport) { in tsi721_setup_mport()
2248 mport->ops = ops; in tsi721_setup_mport()
2249 mport->index = 0; in tsi721_setup_mport()
2250 mport->sys_size = 0; /* small system */ in tsi721_setup_mport()
2251 mport->phy_type = RIO_PHY_SERIAL; in tsi721_setup_mport()
2252 mport->priv = (void *)priv; in tsi721_setup_mport()
2253 mport->phys_efptr = 0x100; in tsi721_setup_mport()
2254 mport->dev.parent = &pdev->dev; in tsi721_setup_mport()
2255 priv->mport = mport; in tsi721_setup_mport()
2257 INIT_LIST_HEAD(&mport->dbells); in tsi721_setup_mport()
2259 rio_init_dbell_res(&mport->riores[RIO_DOORBELL_RESOURCE], 0, 0xffff); in tsi721_setup_mport()
2260 rio_init_mbox_res(&mport->riores[RIO_INB_MBOX_RESOURCE], 0, 3); in tsi721_setup_mport()
2261 rio_init_mbox_res(&mport->riores[RIO_OUTB_MBOX_RESOURCE], 0, 3); in tsi721_setup_mport()
2262 snprintf(mport->name, RIO_MAX_MPORT_NAME, "%s(%s)", in tsi721_setup_mport()
2277 err = tsi721_request_irq(mport); in tsi721_setup_mport()
2296 rio_register_mport(mport); in tsi721_setup_mport()
2298 if (mport->host_deviceid >= 0) in tsi721_setup_mport()
2308 kfree(mport); in tsi721_setup_mport()