Lines Matching refs:mport
57 static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset, in tsi721_lcread() argument
60 struct tsi721_device *priv = mport->priv; in tsi721_lcread()
81 static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, in tsi721_lcwrite() argument
84 struct tsi721_device *priv = mport->priv; in tsi721_lcwrite()
213 static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cread_dma() argument
216 struct tsi721_device *priv = mport->priv; in tsi721_cread_dma()
218 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cread_dma()
236 static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, in tsi721_cwrite_dma() argument
239 struct tsi721_device *priv = mport->priv; in tsi721_cwrite_dma()
242 return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, in tsi721_cwrite_dma()
302 rio_inb_pwrite_handler(&priv->mport, &pwmsg); in tsi721_pw_dpc()
311 static int tsi721_pw_enable(struct rio_mport *mport, int enable) in tsi721_pw_enable() argument
313 struct tsi721_device *priv = mport->priv; in tsi721_pw_enable()
341 static int tsi721_dsend(struct rio_mport *mport, int index, in tsi721_dsend() argument
344 struct tsi721_device *priv = mport->priv; in tsi721_dsend()
347 offset = (((mport->sys_size) ? RIO_TT_CODE_16 : RIO_TT_CODE_8) << 18) | in tsi721_dsend()
385 struct rio_mport *mport; in tsi721_db_dpc() local
399 mport = &priv->mport; in tsi721_db_dpc()
413 list_for_each_entry(dbell, &mport->dbells, node) { in tsi721_db_dpc()
422 dbell->dinb(mport, dbell->dev_id, DBELL_SID(idb.bytes), in tsi721_db_dpc()
919 static int tsi721_map_outb_win(struct rio_mport *mport, u16 destid, u64 rstart, in tsi721_map_outb_win() argument
922 struct tsi721_device *priv = mport->priv; in tsi721_map_outb_win()
1002 static void tsi721_unmap_outb_win(struct rio_mport *mport, in tsi721_unmap_outb_win() argument
1005 struct tsi721_device *priv = mport->priv; in tsi721_unmap_outb_win()
1086 static int tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, in tsi721_rio_map_inb_mem() argument
1089 struct tsi721_device *priv = mport->priv; in tsi721_rio_map_inb_mem()
1239 static void tsi721_rio_unmap_inb_mem(struct rio_mport *mport, in tsi721_rio_unmap_inb_mem() argument
1242 struct tsi721_device *priv = mport->priv; in tsi721_rio_unmap_inb_mem()
1667 tsi721_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, in tsi721_add_outb_message() argument
1670 struct tsi721_device *priv = mport->priv; in tsi721_add_outb_message()
1698 cpu_to_le32((mport->sys_size << 26) | (mbox << 22) | in tsi721_add_outb_message()
1737 struct rio_mport *mport = &priv->mport; in tsi721_omsg_handler() local
1781 if (!mport->outb_msg[ch].mcback) in tsi721_omsg_handler()
1862 if (mport->outb_msg[ch].mcback && do_callback) in tsi721_omsg_handler()
1863 mport->outb_msg[ch].mcback(mport, dev_id, ch, tx_slot); in tsi721_omsg_handler()
1873 static int tsi721_open_outb_mbox(struct rio_mport *mport, void *dev_id, in tsi721_open_outb_mbox() argument
1876 struct tsi721_device *priv = mport->priv; in tsi721_open_outb_mbox()
2054 static void tsi721_close_outb_mbox(struct rio_mport *mport, int mbox) in tsi721_close_outb_mbox() argument
2056 struct tsi721_device *priv = mport->priv; in tsi721_close_outb_mbox()
2117 struct rio_mport *mport = &priv->mport; in tsi721_imsg_handler() local
2137 mport->inb_msg[mbox].mcback) in tsi721_imsg_handler()
2138 mport->inb_msg[mbox].mcback(mport, in tsi721_imsg_handler()
2160 static int tsi721_open_inb_mbox(struct rio_mport *mport, void *dev_id, in tsi721_open_inb_mbox() argument
2163 struct tsi721_device *priv = mport->priv; in tsi721_open_inb_mbox()
2248 iowrite32((u32)priv->mport.host_deviceid, in tsi721_open_inb_mbox()
2354 static void tsi721_close_inb_mbox(struct rio_mport *mport, int mbox) in tsi721_close_inb_mbox() argument
2356 struct tsi721_device *priv = mport->priv; in tsi721_close_inb_mbox()
2413 static int tsi721_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) in tsi721_add_inb_buffer() argument
2415 struct tsi721_device *priv = mport->priv; in tsi721_add_inb_buffer()
2444 static void *tsi721_get_inb_message(struct rio_mport *mport, int mbox) in tsi721_get_inb_message() argument
2446 struct tsi721_device *priv = mport->priv; in tsi721_get_inb_message()
2546 static int tsi721_query_mport(struct rio_mport *mport, in tsi721_query_mport() argument
2549 struct tsi721_device *priv = mport->priv; in tsi721_query_mport()
2646 struct rio_mport *mport = to_rio_mport(dev); in tsi721_mport_release() local
2648 tsi_debug(EXIT, dev, "%s id=%d", mport->name, mport->id); in tsi721_mport_release()
2661 struct rio_mport *mport = &priv->mport; in tsi721_setup_mport() local
2663 err = rio_mport_initialize(mport); in tsi721_setup_mport()
2667 mport->ops = &tsi721_rio_ops; in tsi721_setup_mport()
2668 mport->index = 0; in tsi721_setup_mport()
2669 mport->sys_size = 0; /* small system */ in tsi721_setup_mport()
2670 mport->priv = (void *)priv; in tsi721_setup_mport()
2671 mport->phys_efptr = 0x100; in tsi721_setup_mport()
2672 mport->phys_rmap = 1; in tsi721_setup_mport()
2673 mport->dev.parent = &pdev->dev; in tsi721_setup_mport()
2674 mport->dev.release = tsi721_mport_release; in tsi721_setup_mport()
2676 INIT_LIST_HEAD(&mport->dbells); in tsi721_setup_mport()
2678 rio_init_dbell_res(&mport->riores[RIO_DOORBELL_RESOURCE], 0, 0xffff); in tsi721_setup_mport()
2679 rio_init_mbox_res(&mport->riores[RIO_INB_MBOX_RESOURCE], 0, 3); in tsi721_setup_mport()
2680 rio_init_mbox_res(&mport->riores[RIO_OUTB_MBOX_RESOURCE], 0, 3); in tsi721_setup_mport()
2681 snprintf(mport->name, RIO_MAX_MPORT_NAME, "%s(%s)", in tsi721_setup_mport()
2714 if (mport->host_deviceid >= 0) in tsi721_setup_mport()
2721 err = rio_register_mport(mport); in tsi721_setup_mport()
2945 rio_unregister_mport(&priv->mport); in tsi721_remove()