mport 133 arch/powerpc/sysdev/fsl_rio.c static int fsl_local_config_read(struct rio_mport *mport, mport 136 arch/powerpc/sysdev/fsl_rio.c struct rio_priv *priv = mport->priv; mport 155 arch/powerpc/sysdev/fsl_rio.c static int fsl_local_config_write(struct rio_mport *mport, mport 158 arch/powerpc/sysdev/fsl_rio.c struct rio_priv *priv = mport->priv; mport 181 arch/powerpc/sysdev/fsl_rio.c fsl_rio_config_read(struct rio_mport *mport, int index, u16 destid, mport 184 arch/powerpc/sysdev/fsl_rio.c struct rio_priv *priv = mport->priv; mport 246 arch/powerpc/sysdev/fsl_rio.c fsl_rio_config_write(struct rio_mport *mport, int index, u16 destid, mport 249 arch/powerpc/sysdev/fsl_rio.c struct rio_priv *priv = mport->priv; mport 298 arch/powerpc/sysdev/fsl_rio.c int fsl_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, mport 301 arch/powerpc/sysdev/fsl_rio.c struct rio_priv *priv = mport->priv; mport 349 arch/powerpc/sysdev/fsl_rio.c void fsl_unmap_inb_mem(struct rio_mport *mport, dma_addr_t lstart) mport 352 arch/powerpc/sysdev/fsl_rio.c struct rio_priv *priv = mport->priv; mport 726 arch/powerpc/sysdev/fsl_rio.c dbell->mport[i] = port; mport 727 arch/powerpc/sysdev/fsl_rio.c pw->mport[i] = port; mport 30 arch/powerpc/sysdev/fsl_rio.h #define RIO_REGS_WIN(mport) (((struct rio_priv *)(mport->priv))->regs_win) mport 88 arch/powerpc/sysdev/fsl_rio.h struct rio_mport *mport[MAX_PORT_NUM]; mport 96 arch/powerpc/sysdev/fsl_rio.h struct rio_mport *mport[MAX_PORT_NUM]; mport 124 arch/powerpc/sysdev/fsl_rio.h extern int fsl_rio_setup_rmu(struct rio_mport *mport, mport 127 arch/powerpc/sysdev/fsl_rio.h extern int fsl_rio_pw_enable(struct rio_mport *mport, int enable); mport 131 arch/powerpc/sysdev/fsl_rio.h extern int fsl_rio_doorbell_send(struct rio_mport *mport, mport 133 arch/powerpc/sysdev/fsl_rio.h extern int fsl_add_outb_message(struct rio_mport *mport, mport 136 arch/powerpc/sysdev/fsl_rio.h extern int fsl_open_outb_mbox(struct rio_mport *mport, mport 138 arch/powerpc/sysdev/fsl_rio.h extern void fsl_close_outb_mbox(struct rio_mport *mport, int mbox); mport 139 arch/powerpc/sysdev/fsl_rio.h extern int fsl_open_inb_mbox(struct rio_mport *mport, mport 141 arch/powerpc/sysdev/fsl_rio.h extern void fsl_close_inb_mbox(struct rio_mport *mport, int mbox); mport 142 arch/powerpc/sysdev/fsl_rio.h extern int fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf); mport 143 arch/powerpc/sysdev/fsl_rio.h extern void *fsl_get_inb_message(struct rio_mport *mport, int mbox); mport 32 arch/powerpc/sysdev/fsl_rmu.c #define GET_RMM_HANDLE(mport) \ mport 33 arch/powerpc/sysdev/fsl_rmu.c (((struct rio_priv *)(mport->priv))->rmm_handle) mport 326 arch/powerpc/sysdev/fsl_rmu.c if (fsl_dbell->mport[i]) { mport 328 arch/powerpc/sysdev/fsl_rmu.c &fsl_dbell->mport[i]->dbells, node) { mport 338 arch/powerpc/sysdev/fsl_rmu.c dbell->dinb(fsl_dbell->mport[i], mport 506 arch/powerpc/sysdev/fsl_rmu.c if (pw->mport[i]) mport 507 arch/powerpc/sysdev/fsl_rmu.c rio_inb_pwrite_handler(pw->mport[i], mport 518 arch/powerpc/sysdev/fsl_rmu.c int fsl_rio_pw_enable(struct rio_mport *mport, int enable) mport 624 arch/powerpc/sysdev/fsl_rmu.c int fsl_rio_doorbell_send(struct rio_mport *mport, mport 660 arch/powerpc/sysdev/fsl_rmu.c fsl_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, mport 663 arch/powerpc/sysdev/fsl_rmu.c struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); mport 687 arch/powerpc/sysdev/fsl_rmu.c desc->dattr = 0x28000000 | ((mport->index) << 20); mport 720 arch/powerpc/sysdev/fsl_rmu.c fsl_open_outb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) mport 723 arch/powerpc/sysdev/fsl_rmu.c struct rio_priv *priv = mport->priv; mport 724 arch/powerpc/sysdev/fsl_rmu.c struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); mport 776 arch/powerpc/sysdev/fsl_rmu.c rc = request_irq(IRQ_RIO_TX(mport), fsl_rio_tx_handler, 0, mport 777 arch/powerpc/sysdev/fsl_rmu.c "msg_tx", (void *)mport); mport 823 arch/powerpc/sysdev/fsl_rmu.c void fsl_close_outb_mbox(struct rio_mport *mport, int mbox) mport 825 arch/powerpc/sysdev/fsl_rmu.c struct rio_priv *priv = mport->priv; mport 826 arch/powerpc/sysdev/fsl_rmu.c struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); mport 837 arch/powerpc/sysdev/fsl_rmu.c free_irq(IRQ_RIO_TX(mport), (void *)mport); mport 852 arch/powerpc/sysdev/fsl_rmu.c fsl_open_inb_mbox(struct rio_mport *mport, void *dev_id, int mbox, int entries) mport 855 arch/powerpc/sysdev/fsl_rmu.c struct rio_priv *priv = mport->priv; mport 856 arch/powerpc/sysdev/fsl_rmu.c struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); mport 888 arch/powerpc/sysdev/fsl_rmu.c rc = request_irq(IRQ_RIO_RX(mport), fsl_rio_rx_handler, 0, mport 889 arch/powerpc/sysdev/fsl_rmu.c "msg_rx", (void *)mport); mport 924 arch/powerpc/sysdev/fsl_rmu.c void fsl_close_inb_mbox(struct rio_mport *mport, int mbox) mport 926 arch/powerpc/sysdev/fsl_rmu.c struct rio_priv *priv = mport->priv; mport 927 arch/powerpc/sysdev/fsl_rmu.c struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); mport 937 arch/powerpc/sysdev/fsl_rmu.c free_irq(IRQ_RIO_RX(mport), (void *)mport); mport 949 arch/powerpc/sysdev/fsl_rmu.c int fsl_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) mport 952 arch/powerpc/sysdev/fsl_rmu.c struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); mport 981 arch/powerpc/sysdev/fsl_rmu.c void *fsl_get_inb_message(struct rio_mport *mport, int mbox) mport 983 arch/powerpc/sysdev/fsl_rmu.c struct fsl_rmu *rmu = GET_RMM_HANDLE(mport); mport 1065 arch/powerpc/sysdev/fsl_rmu.c int fsl_rio_setup_rmu(struct rio_mport *mport, struct device_node *node) mport 1074 arch/powerpc/sysdev/fsl_rmu.c if (!mport || !mport->priv) mport 1077 arch/powerpc/sysdev/fsl_rmu.c priv = mport->priv; mport 1109 arch/powerpc/sysdev/fsl_rmu.c rio_init_dbell_res(&mport->riores[RIO_DOORBELL_RESOURCE], 0, 0xffff); mport 1110 arch/powerpc/sysdev/fsl_rmu.c rio_init_mbox_res(&mport->riores[RIO_INB_MBOX_RESOURCE], 0, 0); mport 1111 arch/powerpc/sysdev/fsl_rmu.c rio_init_mbox_res(&mport->riores[RIO_OUTB_MBOX_RESOURCE], 0, 0); mport 1387 drivers/gpu/drm/drm_dp_mst_topology.c struct drm_dp_mst_port *port, *mport; mport 1394 drivers/gpu/drm/drm_dp_mst_topology.c mport = drm_dp_mst_topology_get_port_validated_locked( mport 1396 drivers/gpu/drm/drm_dp_mst_topology.c if (mport) mport 1397 drivers/gpu/drm/drm_dp_mst_topology.c return mport; mport 710 drivers/infiniband/hw/mlx4/sysfs.c struct mlx4_port *mport; mport 750 drivers/infiniband/hw/mlx4/sysfs.c mport = container_of(p, struct mlx4_port, kobj); mport 751 drivers/infiniband/hw/mlx4/sysfs.c sysfs_remove_group(p, &mport->pkey_group); mport 752 drivers/infiniband/hw/mlx4/sysfs.c sysfs_remove_group(p, &mport->gid_group); mport 753 drivers/infiniband/hw/mlx4/sysfs.c remove_vf_smi_entries(mport); mport 52 drivers/net/rionet.c struct rio_mport *mport; mport 105 drivers/net/rionet.c if (!(data = rio_get_inb_message(rnet->mport, RIONET_MAILBOX))) mport 138 drivers/net/rionet.c rio_add_inb_buffer(rnet->mport, RIONET_MAILBOX, mport 150 drivers/net/rionet.c rio_add_outb_message(rnet->mport, rdev, 0, skb->data, skb->len); mport 181 drivers/net/rionet.c add_num = nets[rnet->mport->id].nact; mport 194 drivers/net/rionet.c for (i = 0; i < RIO_MAX_ROUTE_ENTRIES(rnet->mport->sys_size); mport 196 drivers/net/rionet.c if (nets[rnet->mport->id].active[i]) { mport 198 drivers/net/rionet.c nets[rnet->mport->id].active[i]); mport 205 drivers/net/rionet.c if (nets[rnet->mport->id].active[destid]) mport 207 drivers/net/rionet.c nets[rnet->mport->id].active[destid]); mport 226 drivers/net/rionet.c static void rionet_dbell_event(struct rio_mport *mport, void *dev_id, u16 sid, u16 tid, mport 232 drivers/net/rionet.c unsigned char netid = rnet->mport->id; mport 248 drivers/net/rionet.c rio_mport_send_doorbell(mport, sid, mport 265 drivers/net/rionet.c static void rionet_inb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) mport 281 drivers/net/rionet.c static void rionet_outb_msg_event(struct rio_mport *mport, void *dev_id, int mbox, int slot) mport 313 drivers/net/rionet.c unsigned char netid = rnet->mport->id; mport 319 drivers/net/rionet.c if ((rc = rio_request_inb_dbell(rnet->mport, mport 326 drivers/net/rionet.c if ((rc = rio_request_inb_mbox(rnet->mport, mport 333 drivers/net/rionet.c if ((rc = rio_request_outb_mbox(rnet->mport, mport 369 drivers/net/rionet.c unsigned char netid = rnet->mport->id; mport 394 drivers/net/rionet.c rio_release_inb_dbell(rnet->mport, RIONET_DOORBELL_JOIN, mport 396 drivers/net/rionet.c rio_release_inb_mbox(rnet->mport, RIONET_MAILBOX); mport 397 drivers/net/rionet.c rio_release_outb_mbox(rnet->mport, RIONET_MAILBOX); mport 448 drivers/net/rionet.c strlcpy(info->bus_info, rnet->mport->name, sizeof(info->bus_info)); mport 480 drivers/net/rionet.c static int rionet_setup_netdev(struct rio_mport *mport, struct net_device *ndev) mport 486 drivers/net/rionet.c RIO_MAX_ROUTE_ENTRIES(mport->sys_size); mport 488 drivers/net/rionet.c nets[mport->id].active = (struct rio_dev **)__get_free_pages(GFP_KERNEL, mport 490 drivers/net/rionet.c if (!nets[mport->id].active) { mport 494 drivers/net/rionet.c memset((void *)nets[mport->id].active, 0, rionet_active_bytes); mport 498 drivers/net/rionet.c rnet->mport = mport; mport 502 drivers/net/rionet.c device_id = rio_local_get_device_id(mport); mport 516 drivers/net/rionet.c SET_NETDEV_DEV(ndev, &mport->dev); mport 526 drivers/net/rionet.c free_pages((unsigned long)nets[mport->id].active, mport 537 drivers/net/rionet.c mport->name); mport 665 drivers/net/rionet.c struct rio_mport *mport = to_rio_mport(dev); mport 667 drivers/net/rionet.c int id = mport->id; mport 669 drivers/net/rionet.c pr_debug("%s %s\n", __func__, mport->name); mport 683 drivers/net/rionet.c RIO_MAX_ROUTE_ENTRIES(mport->sys_size))); mport 1304 drivers/net/wireless/marvell/mwifiex/sdio.c u32 pkt_len, pkt_type, mport, pind; mport 1398 drivers/net/wireless/marvell/mwifiex/sdio.c mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | mport 1401 drivers/net/wireless/marvell/mwifiex/sdio.c mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | mport 1407 drivers/net/wireless/marvell/mwifiex/sdio.c mport = adapter->ioport + card->mpa_rx.start_port; mport 1410 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_rx.buf_len, mport, 1)) mport 1736 drivers/net/wireless/marvell/mwifiex/sdio.c u32 mport; mport 1831 drivers/net/wireless/marvell/mwifiex/sdio.c mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | mport 1834 drivers/net/wireless/marvell/mwifiex/sdio.c mport = (adapter->ioport | SDIO_MPA_ADDR_BASE | mport 1840 drivers/net/wireless/marvell/mwifiex/sdio.c mport = adapter->ioport + card->mpa_tx.start_port; mport 1843 drivers/net/wireless/marvell/mwifiex/sdio.c card->mpa_tx.buf_len, mport); mport 1849 drivers/net/wireless/marvell/mwifiex/sdio.c adapter->dbg.last_mp_wr_ports[index] = mport; mport 167 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport; mport 261 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport = priv->md->mport; mport 284 drivers/rapidio/devices/rio_mport_cdev.c ret = __rio_local_read_config_32(mport, mport 287 drivers/rapidio/devices/rio_mport_cdev.c ret = rio_mport_read_config_32(mport, maint_io.rioid, mport 306 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport = priv->md->mport; mport 337 drivers/rapidio/devices/rio_mport_cdev.c ret = __rio_local_write_config_32(mport, mport 340 drivers/rapidio/devices/rio_mport_cdev.c ret = rio_mport_write_config_32(mport, maint_io.rioid, mport 363 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport = md->mport; mport 373 drivers/rapidio/devices/rio_mport_cdev.c ret = rio_map_outb_region(mport, rioid, raddr, size, 0, paddr); mport 466 drivers/rapidio/devices/rio_mport_cdev.c if (!md->mport->ops->unmap_outb) mport 503 drivers/rapidio/devices/rio_mport_cdev.c md->mport->host_deviceid = hdid; mport 505 drivers/rapidio/devices/rio_mport_cdev.c rio_local_set_device_id(md->mport, hdid); mport 525 drivers/rapidio/devices/rio_mport_cdev.c rio_local_write_config_32(md->mport, RIO_COMPONENT_TAG_CSR, comptag); mport 657 drivers/rapidio/devices/rio_mport_cdev.c priv->dmach = rio_request_mport_dma(priv->md->mport); mport 1096 drivers/rapidio/devices/rio_mport_cdev.c map->virt_addr = dma_alloc_coherent(md->mport->dev.parent, size, mport 1204 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport = md->mport; mport 1216 drivers/rapidio/devices/rio_mport_cdev.c map->virt_addr = dma_alloc_coherent(mport->dev.parent, size, mport 1225 drivers/rapidio/devices/rio_mport_cdev.c ret = rio_map_inb_region(mport, map->phys_addr, raddr, (u32)size, 0); mport 1242 drivers/rapidio/devices/rio_mport_cdev.c dma_free_coherent(mport->dev.parent, size, mport 1292 drivers/rapidio/devices/rio_mport_cdev.c if (!md->mport->ops->map_inb) mport 1335 drivers/rapidio/devices/rio_mport_cdev.c if (!md->mport->ops->unmap_inb) mport 1364 drivers/rapidio/devices/rio_mport_cdev.c u32 port_idx = md->mport->index; mport 1398 drivers/rapidio/devices/rio_mport_cdev.c static void rio_mport_doorbell_handler(struct rio_mport *mport, void *dev_id, mport 1446 drivers/rapidio/devices/rio_mport_cdev.c ret = rio_request_inb_dbell(md->mport, md, filter.low, filter.high, mport 1456 drivers/rapidio/devices/rio_mport_cdev.c rio_release_inb_dbell(md->mport, filter.low, filter.high); mport 1504 drivers/rapidio/devices/rio_mport_cdev.c rio_release_inb_dbell(priv->md->mport, filter.low, filter.high); mport 1518 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_pw_handler(struct rio_mport *mport, void *context, mport 1544 drivers/rapidio/devices/rio_mport_cdev.c mport->id, msg->em.comptag); mport 1578 drivers/rapidio/devices/rio_mport_cdev.c ret = rio_add_mport_pw_handler(md->mport, md, mport 1586 drivers/rapidio/devices/rio_mport_cdev.c rio_pw_enable(md->mport, 1); mport 1634 drivers/rapidio/devices/rio_mport_cdev.c rio_del_mport_pw_handler(md->mport, priv->md, mport 1636 drivers/rapidio/devices/rio_mport_cdev.c rio_pw_enable(md->mport, 0); mport 1684 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport; mport 1705 drivers/rapidio/devices/rio_mport_cdev.c mport = md->mport; mport 1709 drivers/rapidio/devices/rio_mport_cdev.c if (rio_mport_read_config_32(mport, destid, hopcount, mport 1714 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_read_config_32(mport, destid, hopcount, mport 1724 drivers/rapidio/devices/rio_mport_cdev.c if (mport->net == NULL) { mport 1727 drivers/rapidio/devices/rio_mport_cdev.c net = rio_alloc_net(mport); mport 1734 drivers/rapidio/devices/rio_mport_cdev.c net->id = mport->id; mport 1735 drivers/rapidio/devices/rio_mport_cdev.c net->hport = mport; mport 1737 drivers/rapidio/devices/rio_mport_cdev.c net->dev.parent = &mport->dev; mport 1747 drivers/rapidio/devices/rio_mport_cdev.c rdev->net = mport->net; mport 1750 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_read_config_32(mport, destid, hopcount, mport 1754 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_read_config_32(mport, destid, hopcount, RIO_DEV_INFO_CAR, mport 1756 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_read_config_32(mport, destid, hopcount, RIO_ASM_ID_CAR, mport 1760 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_read_config_32(mport, destid, hopcount, RIO_ASM_INFO_CAR, mport 1766 drivers/rapidio/devices/rio_mport_cdev.c rdev->phys_efptr = rio_mport_get_physefb(mport, 0, destid, mport 1769 drivers/rapidio/devices/rio_mport_cdev.c rdev->em_efptr = rio_mport_get_feature(mport, 0, destid, mport 1773 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_read_config_32(mport, destid, hopcount, RIO_SRC_OPS_CAR, mport 1775 drivers/rapidio/devices/rio_mport_cdev.c rio_mport_read_config_32(mport, destid, hopcount, RIO_DST_OPS_CAR, mport 1791 drivers/rapidio/devices/rio_mport_cdev.c dev_set_name(&rdev->dev, "%02x:s:%04x", mport->id, mport 1794 drivers/rapidio/devices/rio_mport_cdev.c dev_set_name(&rdev->dev, "%02x:e:%04x", mport->id, mport 1798 drivers/rapidio/devices/rio_mport_cdev.c rdev->dev.parent = &mport->net->dev; mport 1821 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport; mport 1828 drivers/rapidio/devices/rio_mport_cdev.c mport = priv->md->mport; mport 1839 drivers/rapidio/devices/rio_mport_cdev.c if (rdev && rdev->dev.parent == &mport->net->dev && mport 1860 drivers/rapidio/devices/rio_mport_cdev.c mport->net = NULL; mport 2088 drivers/rapidio/devices/rio_mport_cdev.c md->properties.hdid = md->mport->host_deviceid; mport 2146 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport = map->md->mport; mport 2150 drivers/rapidio/devices/rio_mport_cdev.c &map->phys_addr, mport->name); mport 2156 drivers/rapidio/devices/rio_mport_cdev.c rio_unmap_inb_region(mport, map->phys_addr); mport 2159 drivers/rapidio/devices/rio_mport_cdev.c dma_free_coherent(mport->dev.parent, map->size, mport 2163 drivers/rapidio/devices/rio_mport_cdev.c rio_unmap_outb_region(mport, map->rioid, map->rio_addr); mport 2230 drivers/rapidio/devices/rio_mport_cdev.c ret = dma_mmap_coherent(md->mport->dev.parent, vma, mport 2299 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport = priv->md->mport; mport 2317 drivers/rapidio/devices/rio_mport_cdev.c ret = rio_mport_send_doorbell(mport, mport 2359 drivers/rapidio/devices/rio_mport_cdev.c static struct mport_dev *mport_cdev_add(struct rio_mport *mport) mport 2371 drivers/rapidio/devices/rio_mport_cdev.c md->mport = mport; mport 2377 drivers/rapidio/devices/rio_mport_cdev.c md->dev.devt = MKDEV(MAJOR(dev_number), mport->id); mport 2379 drivers/rapidio/devices/rio_mport_cdev.c md->dev.parent = &mport->dev; mport 2381 drivers/rapidio/devices/rio_mport_cdev.c dev_set_name(&md->dev, DEV_NAME "%d", mport->id); mport 2390 drivers/rapidio/devices/rio_mport_cdev.c mport->id, ret); mport 2400 drivers/rapidio/devices/rio_mport_cdev.c md->properties.id = mport->id; mport 2401 drivers/rapidio/devices/rio_mport_cdev.c md->properties.sys_size = mport->sys_size; mport 2402 drivers/rapidio/devices/rio_mport_cdev.c md->properties.hdid = mport->host_deviceid; mport 2403 drivers/rapidio/devices/rio_mport_cdev.c md->properties.index = mport->index; mport 2413 drivers/rapidio/devices/rio_mport_cdev.c ret = rio_query_mport(mport, &attr); mport 2426 drivers/rapidio/devices/rio_mport_cdev.c mport->name, MAJOR(dev_number), mport->id); mport 2433 drivers/rapidio/devices/rio_mport_cdev.c mport->name, MAJOR(dev_number), mport->id); mport 2498 drivers/rapidio/devices/rio_mport_cdev.c rmcd_debug(EXIT, "Remove %s cdev", md->mport->name); mport 2501 drivers/rapidio/devices/rio_mport_cdev.c rio_del_mport_pw_handler(md->mport, md, rio_mport_pw_handler); mport 2521 drivers/rapidio/devices/rio_mport_cdev.c md->mport->name); mport 2523 drivers/rapidio/devices/rio_mport_cdev.c rio_release_inb_dbell(md->mport, 0, 0x0fff); mport 2540 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport = NULL; mport 2543 drivers/rapidio/devices/rio_mport_cdev.c mport = to_rio_mport(dev); mport 2544 drivers/rapidio/devices/rio_mport_cdev.c if (!mport) mport 2547 drivers/rapidio/devices/rio_mport_cdev.c chdev = mport_cdev_add(mport); mport 2561 drivers/rapidio/devices/rio_mport_cdev.c struct rio_mport *mport = NULL; mport 2565 drivers/rapidio/devices/rio_mport_cdev.c mport = to_rio_mport(dev); mport 2566 drivers/rapidio/devices/rio_mport_cdev.c rmcd_debug(EXIT, "Remove %s", mport->name); mport 2570 drivers/rapidio/devices/rio_mport_cdev.c if (chdev->mport->id == mport->id) { mport 57 drivers/rapidio/devices/tsi721.c static int tsi721_lcread(struct rio_mport *mport, int index, u32 offset, mport 60 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 81 drivers/rapidio/devices/tsi721.c static int tsi721_lcwrite(struct rio_mport *mport, int index, u32 offset, mport 84 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 213 drivers/rapidio/devices/tsi721.c static int tsi721_cread_dma(struct rio_mport *mport, int index, u16 destid, mport 216 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 218 drivers/rapidio/devices/tsi721.c return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, mport 236 drivers/rapidio/devices/tsi721.c static int tsi721_cwrite_dma(struct rio_mport *mport, int index, u16 destid, mport 239 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 242 drivers/rapidio/devices/tsi721.c return tsi721_maint_dma(priv, mport->sys_size, destid, hopcount, mport 302 drivers/rapidio/devices/tsi721.c rio_inb_pwrite_handler(&priv->mport, &pwmsg); mport 311 drivers/rapidio/devices/tsi721.c static int tsi721_pw_enable(struct rio_mport *mport, int enable) mport 313 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 341 drivers/rapidio/devices/tsi721.c static int tsi721_dsend(struct rio_mport *mport, int index, mport 344 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 347 drivers/rapidio/devices/tsi721.c offset = (((mport->sys_size) ? RIO_TT_CODE_16 : RIO_TT_CODE_8) << 18) | mport 385 drivers/rapidio/devices/tsi721.c struct rio_mport *mport; mport 399 drivers/rapidio/devices/tsi721.c mport = &priv->mport; mport 413 drivers/rapidio/devices/tsi721.c list_for_each_entry(dbell, &mport->dbells, node) { mport 422 drivers/rapidio/devices/tsi721.c dbell->dinb(mport, dbell->dev_id, DBELL_SID(idb.bytes), mport 919 drivers/rapidio/devices/tsi721.c static int tsi721_map_outb_win(struct rio_mport *mport, u16 destid, u64 rstart, mport 922 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 1002 drivers/rapidio/devices/tsi721.c static void tsi721_unmap_outb_win(struct rio_mport *mport, mport 1005 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 1086 drivers/rapidio/devices/tsi721.c static int tsi721_rio_map_inb_mem(struct rio_mport *mport, dma_addr_t lstart, mport 1089 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 1239 drivers/rapidio/devices/tsi721.c static void tsi721_rio_unmap_inb_mem(struct rio_mport *mport, mport 1242 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 1667 drivers/rapidio/devices/tsi721.c tsi721_add_outb_message(struct rio_mport *mport, struct rio_dev *rdev, int mbox, mport 1670 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 1698 drivers/rapidio/devices/tsi721.c cpu_to_le32((mport->sys_size << 26) | (mbox << 22) | mport 1737 drivers/rapidio/devices/tsi721.c struct rio_mport *mport = &priv->mport; mport 1781 drivers/rapidio/devices/tsi721.c if (!mport->outb_msg[ch].mcback) mport 1862 drivers/rapidio/devices/tsi721.c if (mport->outb_msg[ch].mcback && do_callback) mport 1863 drivers/rapidio/devices/tsi721.c mport->outb_msg[ch].mcback(mport, dev_id, ch, tx_slot); mport 1873 drivers/rapidio/devices/tsi721.c static int tsi721_open_outb_mbox(struct rio_mport *mport, void *dev_id, mport 1876 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 2054 drivers/rapidio/devices/tsi721.c static void tsi721_close_outb_mbox(struct rio_mport *mport, int mbox) mport 2056 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 2117 drivers/rapidio/devices/tsi721.c struct rio_mport *mport = &priv->mport; mport 2137 drivers/rapidio/devices/tsi721.c mport->inb_msg[mbox].mcback) mport 2138 drivers/rapidio/devices/tsi721.c mport->inb_msg[mbox].mcback(mport, mport 2160 drivers/rapidio/devices/tsi721.c static int tsi721_open_inb_mbox(struct rio_mport *mport, void *dev_id, mport 2163 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 2248 drivers/rapidio/devices/tsi721.c iowrite32((u32)priv->mport.host_deviceid, mport 2354 drivers/rapidio/devices/tsi721.c static void tsi721_close_inb_mbox(struct rio_mport *mport, int mbox) mport 2356 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 2413 drivers/rapidio/devices/tsi721.c static int tsi721_add_inb_buffer(struct rio_mport *mport, int mbox, void *buf) mport 2415 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 2444 drivers/rapidio/devices/tsi721.c static void *tsi721_get_inb_message(struct rio_mport *mport, int mbox) mport 2446 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 2546 drivers/rapidio/devices/tsi721.c static int tsi721_query_mport(struct rio_mport *mport, mport 2549 drivers/rapidio/devices/tsi721.c struct tsi721_device *priv = mport->priv; mport 2646 drivers/rapidio/devices/tsi721.c struct rio_mport *mport = to_rio_mport(dev); mport 2648 drivers/rapidio/devices/tsi721.c tsi_debug(EXIT, dev, "%s id=%d", mport->name, mport->id); mport 2661 drivers/rapidio/devices/tsi721.c struct rio_mport *mport = &priv->mport; mport 2663 drivers/rapidio/devices/tsi721.c err = rio_mport_initialize(mport); mport 2667 drivers/rapidio/devices/tsi721.c mport->ops = &tsi721_rio_ops; mport 2668 drivers/rapidio/devices/tsi721.c mport->index = 0; mport 2669 drivers/rapidio/devices/tsi721.c mport->sys_size = 0; /* small system */ mport 2670 drivers/rapidio/devices/tsi721.c mport->priv = (void *)priv; mport 2671 drivers/rapidio/devices/tsi721.c mport->phys_efptr = 0x100; mport 2672 drivers/rapidio/devices/tsi721.c mport->phys_rmap = 1; mport 2673 drivers/rapidio/devices/tsi721.c mport->dev.parent = &pdev->dev; mport 2674 drivers/rapidio/devices/tsi721.c mport->dev.release = tsi721_mport_release; mport 2676 drivers/rapidio/devices/tsi721.c INIT_LIST_HEAD(&mport->dbells); mport 2678 drivers/rapidio/devices/tsi721.c rio_init_dbell_res(&mport->riores[RIO_DOORBELL_RESOURCE], 0, 0xffff); mport 2679 drivers/rapidio/devices/tsi721.c rio_init_mbox_res(&mport->riores[RIO_INB_MBOX_RESOURCE], 0, 3); mport 2680 drivers/rapidio/devices/tsi721.c rio_init_mbox_res(&mport->riores[RIO_OUTB_MBOX_RESOURCE], 0, 3); mport 2681 drivers/rapidio/devices/tsi721.c snprintf(mport->name, RIO_MAX_MPORT_NAME, "%s(%s)", mport 2714 drivers/rapidio/devices/tsi721.c if (mport->host_deviceid >= 0) mport 2721 drivers/rapidio/devices/tsi721.c err = rio_register_mport(mport); mport 2945 drivers/rapidio/devices/tsi721.c rio_unregister_mport(&priv->mport); mport 869 drivers/rapidio/devices/tsi721.h struct rio_mport mport; mport 967 drivers/rapidio/devices/tsi721_dma.c struct rio_mport *mport = &priv->mport; mport 969 drivers/rapidio/devices/tsi721_dma.c INIT_LIST_HEAD(&mport->dma.channels); mport 979 drivers/rapidio/devices/tsi721_dma.c bdma_chan->dchan.device = &mport->dma; mport 994 drivers/rapidio/devices/tsi721_dma.c &mport->dma.channels); mport 998 drivers/rapidio/devices/tsi721_dma.c mport->dma.chancnt = nr_channels; mport 999 drivers/rapidio/devices/tsi721_dma.c dma_cap_zero(mport->dma.cap_mask); mport 1000 drivers/rapidio/devices/tsi721_dma.c dma_cap_set(DMA_PRIVATE, mport->dma.cap_mask); mport 1001 drivers/rapidio/devices/tsi721_dma.c dma_cap_set(DMA_SLAVE, mport->dma.cap_mask); mport 1003 drivers/rapidio/devices/tsi721_dma.c mport->dma.dev = &priv->pdev->dev; mport 1004 drivers/rapidio/devices/tsi721_dma.c mport->dma.device_alloc_chan_resources = tsi721_alloc_chan_resources; mport 1005 drivers/rapidio/devices/tsi721_dma.c mport->dma.device_free_chan_resources = tsi721_free_chan_resources; mport 1006 drivers/rapidio/devices/tsi721_dma.c mport->dma.device_tx_status = tsi721_tx_status; mport 1007 drivers/rapidio/devices/tsi721_dma.c mport->dma.device_issue_pending = tsi721_issue_pending; mport 1008 drivers/rapidio/devices/tsi721_dma.c mport->dma.device_prep_slave_sg = tsi721_prep_rio_sg; mport 1009 drivers/rapidio/devices/tsi721_dma.c mport->dma.device_terminate_all = tsi721_terminate_all; mport 1011 drivers/rapidio/devices/tsi721_dma.c err = dma_async_device_register(&mport->dma); mport 1020 drivers/rapidio/devices/tsi721_dma.c struct rio_mport *mport = &priv->mport; mport 1025 drivers/rapidio/devices/tsi721_dma.c dma_async_device_unregister(&mport->dma); mport 1027 drivers/rapidio/devices/tsi721_dma.c list_for_each_entry_safe(chan, _c, &mport->dma.channels, mport 32 drivers/rapidio/rio-access.c (struct rio_mport *mport, u32 offset, type *value) \ mport 37 drivers/rapidio/rio-access.c res = mport->ops->lcread(mport, mport->id, offset, len, &data); \ mport 53 drivers/rapidio/rio-access.c (struct rio_mport *mport, u32 offset, type value) \ mport 56 drivers/rapidio/rio-access.c return mport->ops->lcwrite(mport, mport->id, offset, len, value);\ mport 84 drivers/rapidio/rio-access.c (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type *value) \ mport 89 drivers/rapidio/rio-access.c res = mport->ops->cread(mport, mport->id, destid, hopcount, offset, len, &data); \ mport 105 drivers/rapidio/rio-access.c (struct rio_mport *mport, u16 destid, u8 hopcount, u32 offset, type value) \ mport 108 drivers/rapidio/rio-access.c return mport->ops->cwrite(mport, mport->id, destid, hopcount, \ mport 136 drivers/rapidio/rio-access.c int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, u16 data) mport 138 drivers/rapidio/rio-access.c return mport->ops->dsend(mport, mport->id, destid, data); mport 835 drivers/rapidio/rio-scan.c static struct rio_net *rio_scan_alloc_net(struct rio_mport *mport, mport 840 drivers/rapidio/rio-scan.c net = rio_alloc_net(mport); mport 848 drivers/rapidio/rio-scan.c RIO_MAX_ROUTE_ENTRIES(mport->sys_size) mport 861 drivers/rapidio/rio-scan.c idtab->max = RIO_MAX_ROUTE_ENTRIES(mport->sys_size); mport 867 drivers/rapidio/rio-scan.c net->id = mport->id; mport 868 drivers/rapidio/rio-scan.c net->hport = mport; mport 870 drivers/rapidio/rio-scan.c net->dev.parent = &mport->dev; mport 944 drivers/rapidio/rio-scan.c static int rio_enum_mport(struct rio_mport *mport, u32 flags) mport 949 drivers/rapidio/rio-scan.c printk(KERN_INFO "RIO: enumerate master port %d, %s\n", mport->id, mport 950 drivers/rapidio/rio-scan.c mport->name); mport 958 drivers/rapidio/rio-scan.c if (mport->nnode.next || mport->nnode.prev) mport 962 drivers/rapidio/rio-scan.c if (rio_enum_host(mport) < 0) { mport 965 drivers/rapidio/rio-scan.c mport->id); mport 971 drivers/rapidio/rio-scan.c if (rio_mport_is_active(mport)) { mport 972 drivers/rapidio/rio-scan.c net = rio_scan_alloc_net(mport, 1, 0); mport 980 drivers/rapidio/rio-scan.c rio_destid_reserve(net, mport->host_deviceid); mport 983 drivers/rapidio/rio-scan.c rio_enable_rx_tx_port(mport, 1, 0, 0, 0); mport 986 drivers/rapidio/rio-scan.c rio_local_write_config_32(mport, RIO_COMPONENT_TAG_CSR, mport 991 drivers/rapidio/rio-scan.c if (rio_enum_peer(net, mport, 0, NULL, 0) < 0) { mport 995 drivers/rapidio/rio-scan.c mport->id); mport 1004 drivers/rapidio/rio-scan.c rio_pw_enable(mport, 1); mport 1007 drivers/rapidio/rio-scan.c mport->id); mport 1059 drivers/rapidio/rio-scan.c static int rio_disc_mport(struct rio_mport *mport, u32 flags) mport 1064 drivers/rapidio/rio-scan.c printk(KERN_INFO "RIO: discover master port %d, %s\n", mport->id, mport 1065 drivers/rapidio/rio-scan.c mport->name); mport 1068 drivers/rapidio/rio-scan.c if (rio_mport_is_active(mport)) { mport 1069 drivers/rapidio/rio-scan.c if (rio_enum_complete(mport)) mport 1078 drivers/rapidio/rio-scan.c if (rio_enum_complete(mport)) mport 1084 drivers/rapidio/rio-scan.c mport->id, mport->name); mport 1089 drivers/rapidio/rio-scan.c net = rio_scan_alloc_net(mport, 0, 0); mport 1096 drivers/rapidio/rio-scan.c rio_local_read_config_32(mport, RIO_DID_CSR, mport 1097 drivers/rapidio/rio-scan.c &mport->host_deviceid); mport 1098 drivers/rapidio/rio-scan.c mport->host_deviceid = RIO_GET_DID(mport->sys_size, mport 1099 drivers/rapidio/rio-scan.c mport->host_deviceid); mport 1101 drivers/rapidio/rio-scan.c if (rio_disc_peer(net, mport, RIO_ANY_DESTID(mport->sys_size), mport 1105 drivers/rapidio/rio-scan.c mport->id); mport 332 drivers/rapidio/rio-sysfs.c struct rio_mport *mport = to_rio_mport(dev); mport 334 drivers/rapidio/rio-sysfs.c if (mport) mport 335 drivers/rapidio/rio-sysfs.c return sprintf(buf, "0x%04x\n", mport->host_deviceid); mport 344 drivers/rapidio/rio-sysfs.c struct rio_mport *mport = to_rio_mport(dev); mport 346 drivers/rapidio/rio-sysfs.c if (mport) mport 347 drivers/rapidio/rio-sysfs.c return sprintf(buf, "%u\n", mport->sys_size); mport 38 drivers/rapidio/rio.c int (*pwcback)(struct rio_mport *mport, void *context, mport 108 drivers/rapidio/rio.c struct rio_net *rio_alloc_net(struct rio_mport *mport) mport 117 drivers/rapidio/rio.c mport->net = net; mport 232 drivers/rapidio/rio.c int rio_request_inb_mbox(struct rio_mport *mport, mport 236 drivers/rapidio/rio.c void (*minb) (struct rio_mport * mport, void *dev_id, int mbox, mport 242 drivers/rapidio/rio.c if (!mport->ops->open_inb_mbox) mport 250 drivers/rapidio/rio.c rc = request_resource(&mport->riores[RIO_INB_MBOX_RESOURCE], mport 257 drivers/rapidio/rio.c mport->inb_msg[mbox].res = res; mport 260 drivers/rapidio/rio.c mport->inb_msg[mbox].mcback = minb; mport 262 drivers/rapidio/rio.c rc = mport->ops->open_inb_mbox(mport, dev_id, mbox, entries); mport 264 drivers/rapidio/rio.c mport->inb_msg[mbox].mcback = NULL; mport 265 drivers/rapidio/rio.c mport->inb_msg[mbox].res = NULL; mport 285 drivers/rapidio/rio.c int rio_release_inb_mbox(struct rio_mport *mport, int mbox) mport 289 drivers/rapidio/rio.c if (!mport->ops->close_inb_mbox || !mport->inb_msg[mbox].res) mport 292 drivers/rapidio/rio.c mport->ops->close_inb_mbox(mport, mbox); mport 293 drivers/rapidio/rio.c mport->inb_msg[mbox].mcback = NULL; mport 295 drivers/rapidio/rio.c rc = release_resource(mport->inb_msg[mbox].res); mport 299 drivers/rapidio/rio.c kfree(mport->inb_msg[mbox].res); mport 300 drivers/rapidio/rio.c mport->inb_msg[mbox].res = NULL; mport 317 drivers/rapidio/rio.c int rio_request_outb_mbox(struct rio_mport *mport, mport 321 drivers/rapidio/rio.c void (*moutb) (struct rio_mport * mport, void *dev_id, int mbox, int slot)) mport 326 drivers/rapidio/rio.c if (!mport->ops->open_outb_mbox) mport 334 drivers/rapidio/rio.c rc = request_resource(&mport->riores[RIO_OUTB_MBOX_RESOURCE], mport 341 drivers/rapidio/rio.c mport->outb_msg[mbox].res = res; mport 344 drivers/rapidio/rio.c mport->outb_msg[mbox].mcback = moutb; mport 346 drivers/rapidio/rio.c rc = mport->ops->open_outb_mbox(mport, dev_id, mbox, entries); mport 348 drivers/rapidio/rio.c mport->outb_msg[mbox].mcback = NULL; mport 349 drivers/rapidio/rio.c mport->outb_msg[mbox].res = NULL; mport 369 drivers/rapidio/rio.c int rio_release_outb_mbox(struct rio_mport *mport, int mbox) mport 373 drivers/rapidio/rio.c if (!mport->ops->close_outb_mbox || !mport->outb_msg[mbox].res) mport 376 drivers/rapidio/rio.c mport->ops->close_outb_mbox(mport, mbox); mport 377 drivers/rapidio/rio.c mport->outb_msg[mbox].mcback = NULL; mport 379 drivers/rapidio/rio.c rc = release_resource(mport->outb_msg[mbox].res); mport 383 drivers/rapidio/rio.c kfree(mport->outb_msg[mbox].res); mport 384 drivers/rapidio/rio.c mport->outb_msg[mbox].res = NULL; mport 402 drivers/rapidio/rio.c rio_setup_inb_dbell(struct rio_mport *mport, void *dev_id, struct resource *res, mport 403 drivers/rapidio/rio.c void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src, u16 dst, mport 415 drivers/rapidio/rio.c mutex_lock(&mport->lock); mport 416 drivers/rapidio/rio.c list_add_tail(&dbell->node, &mport->dbells); mport 417 drivers/rapidio/rio.c mutex_unlock(&mport->lock); mport 433 drivers/rapidio/rio.c int rio_request_inb_dbell(struct rio_mport *mport, mport 437 drivers/rapidio/rio.c void (*dinb) (struct rio_mport * mport, void *dev_id, u16 src, mport 447 drivers/rapidio/rio.c rc = request_resource(&mport->riores[RIO_DOORBELL_RESOURCE], mport 455 drivers/rapidio/rio.c rc = rio_setup_inb_dbell(mport, dev_id, res, dinb); mport 474 drivers/rapidio/rio.c int rio_release_inb_dbell(struct rio_mport *mport, u16 start, u16 end) mport 479 drivers/rapidio/rio.c mutex_lock(&mport->lock); mport 480 drivers/rapidio/rio.c list_for_each_entry(dbell, &mport->dbells, node) { mport 487 drivers/rapidio/rio.c mutex_unlock(&mport->lock); mport 562 drivers/rapidio/rio.c int rio_add_mport_pw_handler(struct rio_mport *mport, void *context, mport 563 drivers/rapidio/rio.c int (*pwcback)(struct rio_mport *mport, mport 573 drivers/rapidio/rio.c mutex_lock(&mport->lock); mport 574 drivers/rapidio/rio.c list_add_tail(&pwrite->node, &mport->pwrites); mport 575 drivers/rapidio/rio.c mutex_unlock(&mport->lock); mport 589 drivers/rapidio/rio.c int rio_del_mport_pw_handler(struct rio_mport *mport, void *context, mport 590 drivers/rapidio/rio.c int (*pwcback)(struct rio_mport *mport, mport 596 drivers/rapidio/rio.c mutex_lock(&mport->lock); mport 597 drivers/rapidio/rio.c list_for_each_entry(pwrite, &mport->pwrites, node) { mport 605 drivers/rapidio/rio.c mutex_unlock(&mport->lock); mport 664 drivers/rapidio/rio.c void rio_pw_enable(struct rio_mport *mport, int enable) mport 666 drivers/rapidio/rio.c if (mport->ops->pwenable) { mport 667 drivers/rapidio/rio.c mutex_lock(&mport->lock); mport 669 drivers/rapidio/rio.c if ((enable && ++mport->pwe_refcnt == 1) || mport 670 drivers/rapidio/rio.c (!enable && mport->pwe_refcnt && --mport->pwe_refcnt == 0)) mport 671 drivers/rapidio/rio.c mport->ops->pwenable(mport, enable); mport 672 drivers/rapidio/rio.c mutex_unlock(&mport->lock); mport 689 drivers/rapidio/rio.c int rio_map_inb_region(struct rio_mport *mport, dma_addr_t local, mport 695 drivers/rapidio/rio.c if (!mport->ops->map_inb) mport 698 drivers/rapidio/rio.c rc = mport->ops->map_inb(mport, local, rbase, size, rflags); mport 709 drivers/rapidio/rio.c void rio_unmap_inb_region(struct rio_mport *mport, dma_addr_t lstart) mport 712 drivers/rapidio/rio.c if (!mport->ops->unmap_inb) mport 715 drivers/rapidio/rio.c mport->ops->unmap_inb(mport, lstart); mport 733 drivers/rapidio/rio.c int rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase, mport 739 drivers/rapidio/rio.c if (!mport->ops->map_outb) mport 743 drivers/rapidio/rio.c rc = mport->ops->map_outb(mport, destid, rbase, size, mport 757 drivers/rapidio/rio.c void rio_unmap_outb_region(struct rio_mport *mport, u16 destid, u64 rstart) mport 761 drivers/rapidio/rio.c if (!mport->ops->unmap_outb) mport 765 drivers/rapidio/rio.c mport->ops->unmap_outb(mport, destid, rstart); mport 993 drivers/rapidio/rio.c rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid, u8 hopcount) mport 998 drivers/rapidio/rio.c while (rio_mport_read_config_32(mport, destid, hopcount, mport 1170 drivers/rapidio/rio.c int rio_inb_pwrite_handler(struct rio_mport *mport, union rio_pw_msg *pw_msg) mport 1181 drivers/rapidio/rio.c pr_debug("%s: PW to mport_%d:\n", __func__, mport->id); mport 1210 drivers/rapidio/rio.c mutex_lock(&mport->lock); mport 1211 drivers/rapidio/rio.c list_for_each_entry(pwrite, &mport->pwrites, node) mport 1212 drivers/rapidio/rio.c pwrite->pwcback(mport, pwrite->context, pw_msg, 0); mport 1213 drivers/rapidio/rio.c mutex_unlock(&mport->lock); mport 1491 drivers/rapidio/rio.c rio_std_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 1495 drivers/rapidio/rio.c rio_mport_write_config_32(mport, destid, hopcount, mport 1498 drivers/rapidio/rio.c rio_mport_write_config_32(mport, destid, hopcount, mport 1519 drivers/rapidio/rio.c rio_std_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 1525 drivers/rapidio/rio.c rio_mport_write_config_32(mport, destid, hopcount, mport 1527 drivers/rapidio/rio.c rio_mport_read_config_32(mport, destid, hopcount, mport 1545 drivers/rapidio/rio.c rio_std_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, mport 1553 drivers/rapidio/rio.c rio_mport_read_config_32(mport, destid, hopcount, mport 1556 drivers/rapidio/rio.c if (mport->sys_size) { mport 1557 drivers/rapidio/rio.c rio_mport_read_config_32(mport, destid, hopcount, mport 1573 drivers/rapidio/rio.c rio_mport_write_config_32(mport, destid, hopcount, mport 1576 drivers/rapidio/rio.c rio_mport_write_config_32(mport, destid, hopcount, mport 1819 drivers/rapidio/rio.c struct rio_mport *mport = arg; mport 1822 drivers/rapidio/rio.c return mport == container_of(chan->device, struct rio_mport, dma); mport 1832 drivers/rapidio/rio.c struct dma_chan *rio_request_mport_dma(struct rio_mport *mport) mport 1838 drivers/rapidio/rio.c return dma_request_channel(mask, rio_chan_filter, mport); mport 2127 drivers/rapidio/rio.c struct rio_mport *mport; mport 2136 drivers/rapidio/rio.c work->mport->id, work->mport->name); mport 2137 drivers/rapidio/rio.c if (try_module_get(work->mport->nscan->owner)) { mport 2138 drivers/rapidio/rio.c work->mport->nscan->discover(work->mport, 0); mport 2139 drivers/rapidio/rio.c module_put(work->mport->nscan->owner); mport 2195 drivers/rapidio/rio.c work[n].mport = port; mport 2223 drivers/rapidio/rio.c int rio_mport_initialize(struct rio_mport *mport) mport 2230 drivers/rapidio/rio.c atomic_set(&mport->state, RIO_DEVICE_INITIALIZING); mport 2231 drivers/rapidio/rio.c mport->id = next_portid++; mport 2232 drivers/rapidio/rio.c mport->host_deviceid = rio_get_hdid(mport->id); mport 2233 drivers/rapidio/rio.c mport->nscan = NULL; mport 2234 drivers/rapidio/rio.c mutex_init(&mport->lock); mport 2235 drivers/rapidio/rio.c mport->pwe_refcnt = 0; mport 2236 drivers/rapidio/rio.c INIT_LIST_HEAD(&mport->pwrites); mport 18 drivers/rapidio/rio.h extern u32 rio_mport_get_feature(struct rio_mport *mport, int local, u16 destid, mport 24 drivers/rapidio/rio.h extern int rio_mport_chk_dev_access(struct rio_mport *mport, u16 destid, mport 36 drivers/rapidio/rio.h extern struct rio_net *rio_alloc_net(struct rio_mport *mport); mport 147 drivers/rapidio/rio_cm.c struct rio_mport *mport; mport 305 drivers/rapidio/rio_cm.c msg = rio_get_inb_message(cm->mport, cmbox); mport 341 drivers/rapidio/rio_cm.c rio_add_inb_buffer(cm->mport, cmbox, cm->rx_buf[i]); mport 490 drivers/rapidio/rio_cm.c if (!rio_mport_is_running(cm->mport)) mport 586 drivers/rapidio/rio_cm.c if (!rio_mport_is_running(cm->mport)) mport 617 drivers/rapidio/rio_cm.c static void riocm_inb_msg_event(struct rio_mport *mport, void *dev_id, mport 622 drivers/rapidio/rio_cm.c if (rio_mport_is_running(cm->mport) && !work_pending(&cm->rx_work)) mport 644 drivers/rapidio/rio_cm.c cm->mport->id, slot, cm->tx_cnt); mport 678 drivers/rapidio/rio_cm.c rc = rio_add_outb_message(cm->mport, req->rdev, cmbox, mport 694 drivers/rapidio/rio_cm.c static void riocm_outb_msg_event(struct rio_mport *mport, void *dev_id, mport 699 drivers/rapidio/rio_cm.c if (cm && rio_mport_is_running(cm->mport)) mport 741 drivers/rapidio/rio_cm.c if (cm->mport == NULL) { mport 753 drivers/rapidio/rio_cm.c rc = rio_add_outb_message(cm->mport, rdev, cmbox, buffer, len); mport 962 drivers/rapidio/rio_cm.c ch->loc_destid = cm->mport->host_deviceid; mport 1239 drivers/rapidio/rio_cm.c if ((cm->mport->id == mport_id) && mport 1240 drivers/rapidio/rio_cm.c rio_mport_is_running(cm->mport)) { mport 1263 drivers/rapidio/rio_cm.c ch->loc_destid = cm->mport->host_deviceid; mport 1544 drivers/rapidio/rio_cm.c if (cm->mport->id == mport_id) { mport 1580 drivers/rapidio/rio_cm.c if (cm->mport->id == (u8)info[1]) mport 1638 drivers/rapidio/rio_cm.c *entry_ptr = (cm->mport->id << 16) | mport 1639 drivers/rapidio/rio_cm.c cm->mport->host_deviceid; mport 1794 drivers/rapidio/rio_cm.c if (cm->mport->id == chan.mport_id) { mport 1803 drivers/rapidio/rio_cm.c if (chan.remote_destid >= RIO_ANY_DESTID(cm->mport->sys_size)) { mport 1963 drivers/rapidio/rio_cm.c if (cm->mport == rdev->net->hport) mport 2007 drivers/rapidio/rio_cm.c if (cm->mport == rdev->net->hport) { mport 2101 drivers/rapidio/rio_cm.c struct rio_mport *mport = to_rio_mport(dev); mport 2103 drivers/rapidio/rio_cm.c riocm_debug(MPORT, "add mport %s", mport->name); mport 2109 drivers/rapidio/rio_cm.c cm->mport = mport; mport 2111 drivers/rapidio/rio_cm.c rc = rio_request_outb_mbox(mport, cm, cmbox, mport 2115 drivers/rapidio/rio_cm.c cmbox, mport->name); mport 2120 drivers/rapidio/rio_cm.c rc = rio_request_inb_mbox(mport, cm, cmbox, mport 2124 drivers/rapidio/rio_cm.c cmbox, mport->name); mport 2125 drivers/rapidio/rio_cm.c rio_release_outb_mbox(mport, cmbox); mport 2143 drivers/rapidio/rio_cm.c cmbox, mport->name); mport 2144 drivers/rapidio/rio_cm.c rio_release_outb_mbox(mport, cmbox); mport 2179 drivers/rapidio/rio_cm.c struct rio_mport *mport = to_rio_mport(dev); mport 2187 drivers/rapidio/rio_cm.c riocm_debug(MPORT, "%s", mport->name); mport 2192 drivers/rapidio/rio_cm.c if (cm->mport == mport) { mport 2210 drivers/rapidio/rio_cm.c mport->name, ch->id); mport 2224 drivers/rapidio/rio_cm.c rio_release_inb_mbox(mport, cmbox); mport 2225 drivers/rapidio/rio_cm.c rio_release_outb_mbox(mport, cmbox); mport 2238 drivers/rapidio/rio_cm.c riocm_debug(MPORT, "%s done", mport->name); mport 87 drivers/rapidio/switches/idt_gen2.c idtg2_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 101 drivers/rapidio/switches/idt_gen2.c rio_mport_write_config_32(mport, destid, hopcount, mport 107 drivers/rapidio/switches/idt_gen2.c rio_mport_write_config_32(mport, destid, hopcount, mport 111 drivers/rapidio/switches/idt_gen2.c rio_mport_write_config_32(mport, destid, hopcount, mport 120 drivers/rapidio/switches/idt_gen2.c idtg2_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 133 drivers/rapidio/switches/idt_gen2.c rio_mport_write_config_32(mport, destid, hopcount, mport 136 drivers/rapidio/switches/idt_gen2.c rio_mport_write_config_32(mport, destid, hopcount, mport 140 drivers/rapidio/switches/idt_gen2.c rio_mport_read_config_32(mport, destid, hopcount, mport 152 drivers/rapidio/switches/idt_gen2.c idtg2_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, mport 165 drivers/rapidio/switches/idt_gen2.c rio_mport_write_config_32(mport, destid, hopcount, mport 170 drivers/rapidio/switches/idt_gen2.c rio_mport_write_config_32(mport, destid, hopcount, mport 172 drivers/rapidio/switches/idt_gen2.c rio_mport_write_config_32(mport, destid, hopcount, mport 184 drivers/rapidio/switches/idt_gen2.c idtg2_set_domain(struct rio_mport *mport, u16 destid, u8 hopcount, mport 190 drivers/rapidio/switches/idt_gen2.c rio_mport_write_config_32(mport, destid, hopcount, mport 196 drivers/rapidio/switches/idt_gen2.c idtg2_get_domain(struct rio_mport *mport, u16 destid, u8 hopcount, mport 204 drivers/rapidio/switches/idt_gen2.c rio_mport_read_config_32(mport, destid, hopcount, mport 37 drivers/rapidio/switches/idt_gen3.c idtg3_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 55 drivers/rapidio/switches/idt_gen3.c err = rio_mport_write_config_32(mport, destid, hopcount, mport 64 drivers/rapidio/switches/idt_gen3.c err = rio_mport_read_config_32(mport, destid, hopcount, mport 72 drivers/rapidio/switches/idt_gen3.c err = rio_mport_write_config_32(mport, destid, hopcount, mport 79 drivers/rapidio/switches/idt_gen3.c idtg3_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 88 drivers/rapidio/switches/idt_gen3.c err = rio_mport_read_config_32(mport, destid, hopcount, mport 103 drivers/rapidio/switches/idt_gen3.c err = rio_mport_read_config_32(mport, destid, hopcount, mport 118 drivers/rapidio/switches/idt_gen3.c idtg3_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, mport 127 drivers/rapidio/switches/idt_gen3.c err = rio_mport_write_config_32(mport, destid, hopcount, mport 137 drivers/rapidio/switches/idt_gen3.c err = rio_mport_read_config_32(mport, destid, hopcount, mport 146 drivers/rapidio/switches/idt_gen3.c err = rio_mport_write_config_32(mport, destid, hopcount, mport 21 drivers/rapidio/switches/idtcps.c idtcps_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 30 drivers/rapidio/switches/idtcps.c rio_mport_write_config_32(mport, destid, hopcount, mport 33 drivers/rapidio/switches/idtcps.c rio_mport_read_config_32(mport, destid, hopcount, mport 37 drivers/rapidio/switches/idtcps.c rio_mport_write_config_32(mport, destid, hopcount, mport 45 drivers/rapidio/switches/idtcps.c idtcps_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 51 drivers/rapidio/switches/idtcps.c rio_mport_write_config_32(mport, destid, hopcount, mport 54 drivers/rapidio/switches/idtcps.c rio_mport_read_config_32(mport, destid, hopcount, mport 68 drivers/rapidio/switches/idtcps.c idtcps_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, mport 75 drivers/rapidio/switches/idtcps.c rio_mport_write_config_32(mport, destid, hopcount, mport 77 drivers/rapidio/switches/idtcps.c rio_mport_write_config_32(mport, destid, hopcount, mport 90 drivers/rapidio/switches/idtcps.c idtcps_set_domain(struct rio_mport *mport, u16 destid, u8 hopcount, mport 96 drivers/rapidio/switches/idtcps.c rio_mport_write_config_32(mport, destid, hopcount, mport 102 drivers/rapidio/switches/idtcps.c idtcps_get_domain(struct rio_mport *mport, u16 destid, u8 hopcount, mport 110 drivers/rapidio/switches/idtcps.c rio_mport_read_config_32(mport, destid, hopcount, mport 33 drivers/rapidio/switches/tsi568.c tsi568_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 37 drivers/rapidio/switches/tsi568.c rio_mport_write_config_32(mport, destid, hopcount, mport 39 drivers/rapidio/switches/tsi568.c rio_mport_write_config_32(mport, destid, hopcount, mport 42 drivers/rapidio/switches/tsi568.c rio_mport_write_config_32(mport, destid, hopcount, mport 45 drivers/rapidio/switches/tsi568.c rio_mport_write_config_32(mport, destid, hopcount, mport 55 drivers/rapidio/switches/tsi568.c tsi568_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 62 drivers/rapidio/switches/tsi568.c rio_mport_write_config_32(mport, destid, hopcount, mport 64 drivers/rapidio/switches/tsi568.c rio_mport_read_config_32(mport, destid, hopcount, mport 67 drivers/rapidio/switches/tsi568.c rio_mport_write_config_32(mport, destid, hopcount, mport 70 drivers/rapidio/switches/tsi568.c rio_mport_read_config_32(mport, destid, hopcount, mport 82 drivers/rapidio/switches/tsi568.c tsi568_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, mport 88 drivers/rapidio/switches/tsi568.c lut_size = (mport->sys_size) ? 0x1ff : 0xff; mport 91 drivers/rapidio/switches/tsi568.c rio_mport_write_config_32(mport, destid, hopcount, mport 94 drivers/rapidio/switches/tsi568.c rio_mport_write_config_32(mport, destid, hopcount, mport 98 drivers/rapidio/switches/tsi568.c rio_mport_write_config_32(mport, destid, hopcount, mport 102 drivers/rapidio/switches/tsi568.c rio_mport_write_config_32(mport, destid, hopcount, mport 42 drivers/rapidio/switches/tsi57x.c tsi57x_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 46 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, mport 48 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, mport 51 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, mport 53 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, mport 63 drivers/rapidio/switches/tsi57x.c tsi57x_route_get_entry(struct rio_mport *mport, u16 destid, u8 hopcount, mport 72 drivers/rapidio/switches/tsi57x.c rio_mport_read_config_32(mport, destid, hopcount, mport 77 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, mport 79 drivers/rapidio/switches/tsi57x.c rio_mport_read_config_32(mport, destid, hopcount, mport 90 drivers/rapidio/switches/tsi57x.c tsi57x_route_clr_table(struct rio_mport *mport, u16 destid, u8 hopcount, mport 96 drivers/rapidio/switches/tsi57x.c lut_size = (mport->sys_size) ? 0x1ff : 0xff; mport 99 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, mport 102 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, mport 106 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, mport 109 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, mport 117 drivers/rapidio/switches/tsi57x.c tsi57x_set_domain(struct rio_mport *mport, u16 destid, u8 hopcount, mport 127 drivers/rapidio/switches/tsi57x.c rio_mport_read_config_32(mport, destid, hopcount, mport 129 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, TSI578_SP_MODE_GLBL, mport 132 drivers/rapidio/switches/tsi57x.c rio_mport_write_config_32(mport, destid, hopcount, mport 139 drivers/rapidio/switches/tsi57x.c tsi57x_get_domain(struct rio_mport *mport, u16 destid, u8 hopcount, mport 147 drivers/rapidio/switches/tsi57x.c rio_mport_read_config_32(mport, destid, hopcount, mport 211 drivers/rapidio/switches/tsi57x.c struct rio_mport *mport = rdev->net->hport; mport 276 drivers/rapidio/switches/tsi57x.c regval = (mport->sys_size) ? (regval >> 16) : (regval >> 24); mport 280 drivers/rapidio/switches/tsi57x.c tsi57x_route_add_entry(mport, rdev->destid, rdev->hopcount, mport 122 include/linux/rio.h int (*add_entry) (struct rio_mport *mport, u16 destid, u8 hopcount, mport 124 include/linux/rio.h int (*get_entry) (struct rio_mport *mport, u16 destid, u8 hopcount, mport 126 include/linux/rio.h int (*clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount, mport 128 include/linux/rio.h int (*set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount, mport 130 include/linux/rio.h int (*get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount, mport 221 include/linux/rio.h void (*mcback) (struct rio_mport * mport, void *dev_id, int mbox, int slot); mport 234 include/linux/rio.h void (*dinb) (struct rio_mport *mport, void *dev_id, u16 src, u16 dst, u16 info); mport 298 include/linux/rio.h static inline int rio_mport_is_running(struct rio_mport *mport) mport 300 include/linux/rio.h return atomic_read(&mport->state) == RIO_DEVICE_RUNNING; mport 400 include/linux/rio.h int (*lcread) (struct rio_mport *mport, int index, u32 offset, int len, mport 402 include/linux/rio.h int (*lcwrite) (struct rio_mport *mport, int index, u32 offset, int len, mport 404 include/linux/rio.h int (*cread) (struct rio_mport *mport, int index, u16 destid, mport 406 include/linux/rio.h int (*cwrite) (struct rio_mport *mport, int index, u16 destid, mport 408 include/linux/rio.h int (*dsend) (struct rio_mport *mport, int index, u16 destid, u16 data); mport 409 include/linux/rio.h int (*pwenable) (struct rio_mport *mport, int enable); mport 410 include/linux/rio.h int (*open_outb_mbox)(struct rio_mport *mport, void *dev_id, mport 412 include/linux/rio.h void (*close_outb_mbox)(struct rio_mport *mport, int mbox); mport 413 include/linux/rio.h int (*open_inb_mbox)(struct rio_mport *mport, void *dev_id, mport 415 include/linux/rio.h void (*close_inb_mbox)(struct rio_mport *mport, int mbox); mport 416 include/linux/rio.h int (*add_outb_message)(struct rio_mport *mport, struct rio_dev *rdev, mport 418 include/linux/rio.h int (*add_inb_buffer)(struct rio_mport *mport, int mbox, void *buf); mport 419 include/linux/rio.h void *(*get_inb_message)(struct rio_mport *mport, int mbox); mport 420 include/linux/rio.h int (*map_inb)(struct rio_mport *mport, dma_addr_t lstart, mport 422 include/linux/rio.h void (*unmap_inb)(struct rio_mport *mport, dma_addr_t lstart); mport 423 include/linux/rio.h int (*query_mport)(struct rio_mport *mport, mport 425 include/linux/rio.h int (*map_outb)(struct rio_mport *mport, u16 destid, u64 rstart, mport 427 include/linux/rio.h void (*unmap_outb)(struct rio_mport *mport, u16 destid, u64 rstart); mport 530 include/linux/rio.h int (*enumerate)(struct rio_mport *mport, u32 flags); mport 531 include/linux/rio.h int (*discover)(struct rio_mport *mport, u32 flags); mport 230 include/linux/rio_drv.h extern int rio_mport_send_doorbell(struct rio_mport *mport, u16 destid, mport 311 include/linux/rio_drv.h static inline int rio_add_outb_message(struct rio_mport *mport, mport 315 include/linux/rio_drv.h return mport->ops->add_outb_message(mport, rdev, mbox, mport 332 include/linux/rio_drv.h static inline int rio_add_inb_buffer(struct rio_mport *mport, int mbox, mport 335 include/linux/rio_drv.h return mport->ops->add_inb_buffer(mport, mbox, buffer); mport 345 include/linux/rio_drv.h static inline void *rio_get_inb_message(struct rio_mport *mport, int mbox) mport 347 include/linux/rio_drv.h return mport->ops->get_inb_message(mport, mbox); mport 365 include/linux/rio_drv.h extern int rio_map_inb_region(struct rio_mport *mport, dma_addr_t local, mport 367 include/linux/rio_drv.h extern void rio_unmap_inb_region(struct rio_mport *mport, dma_addr_t lstart); mport 368 include/linux/rio_drv.h extern int rio_map_outb_region(struct rio_mport *mport, u16 destid, u64 rbase, mport 370 include/linux/rio_drv.h extern void rio_unmap_outb_region(struct rio_mport *mport, mport 377 include/linux/rio_drv.h extern int rio_add_mport_pw_handler(struct rio_mport *mport, void *dev_id, mport 378 include/linux/rio_drv.h int (*pwcback)(struct rio_mport *mport, void *dev_id, mport 380 include/linux/rio_drv.h extern int rio_del_mport_pw_handler(struct rio_mport *mport, void *dev_id, mport 381 include/linux/rio_drv.h int (*pwcback)(struct rio_mport *mport, void *dev_id, mport 383 include/linux/rio_drv.h extern int rio_inb_pwrite_handler(struct rio_mport *mport, mport 385 include/linux/rio_drv.h extern void rio_pw_enable(struct rio_mport *mport, int enable); mport 395 include/linux/rio_drv.h extern struct dma_chan *rio_request_mport_dma(struct rio_mport *mport);