Lines Matching full:mmio

125 	void __iomem *mmio, *peer_mmio;  in amd_ntb_mw_set_trans()  local
142 mmio = ndev->self_mmio; in amd_ntb_mw_set_trans()
166 write64(base_addr, mmio + limit_reg); in amd_ntb_mw_set_trans()
189 writel(base_addr, mmio + limit_reg); in amd_ntb_mw_set_trans()
346 void __iomem *mmio = ndev->self_mmio; in amd_ntb_link_enable() local
350 writel(ndev->int_mask, mmio + AMD_INTMASK_OFFSET); in amd_ntb_link_enable()
362 void __iomem *mmio = ndev->self_mmio; in amd_ntb_link_disable() local
366 writel(ndev->int_mask, mmio + AMD_INTMASK_OFFSET); in amd_ntb_link_disable()
423 void __iomem *mmio = ndev->self_mmio; in amd_ntb_db_read() local
425 return (u64)readw(mmio + AMD_DBSTAT_OFFSET); in amd_ntb_db_read()
431 void __iomem *mmio = ndev->self_mmio; in amd_ntb_db_clear() local
433 writew((u16)db_bits, mmio + AMD_DBSTAT_OFFSET); in amd_ntb_db_clear()
441 void __iomem *mmio = ndev->self_mmio; in amd_ntb_db_set_mask() local
449 writew((u16)ndev->db_mask, mmio + AMD_DBMASK_OFFSET); in amd_ntb_db_set_mask()
458 void __iomem *mmio = ndev->self_mmio; in amd_ntb_db_clear_mask() local
466 writew((u16)ndev->db_mask, mmio + AMD_DBMASK_OFFSET); in amd_ntb_db_clear_mask()
475 void __iomem *mmio = ndev->self_mmio; in amd_ntb_peer_db_set() local
477 writew((u16)db_bits, mmio + AMD_DBREQ_OFFSET); in amd_ntb_peer_db_set()
490 void __iomem *mmio = ndev->self_mmio; in amd_ntb_spad_read() local
497 return readl(mmio + AMD_SPAD_OFFSET + offset); in amd_ntb_spad_read()
504 void __iomem *mmio = ndev->self_mmio; in amd_ntb_spad_write() local
511 writel(val, mmio + AMD_SPAD_OFFSET + offset); in amd_ntb_spad_write()
519 void __iomem *mmio = ndev->self_mmio; in amd_ntb_peer_spad_read() local
526 return readl(mmio + AMD_SPAD_OFFSET + offset); in amd_ntb_peer_spad_read()
533 void __iomem *mmio = ndev->self_mmio; in amd_ntb_peer_spad_write() local
540 writel(val, mmio + AMD_SPAD_OFFSET + offset); in amd_ntb_peer_spad_write()
571 void __iomem *mmio = ndev->self_mmio; in amd_ack_smu() local
574 reg = readl(mmio + AMD_SMUACK_OFFSET); in amd_ack_smu()
576 writel(reg, mmio + AMD_SMUACK_OFFSET); in amd_ack_smu()
581 void __iomem *mmio = ndev->self_mmio; in amd_handle_event() local
585 status = readl(mmio + AMD_INTSTAT_OFFSET); in amd_handle_event()
627 mmio = ndev->peer_mmio; in amd_handle_event()
628 status = readl(mmio + AMD_PMESTAT_OFFSET); in amd_handle_event()
647 writel(status, mmio + AMD_INTSTAT_OFFSET); in amd_handle_event()
813 void __iomem *mmio = ndev->self_mmio; in ndev_deinit_isr() local
820 writel(ndev->db_mask, mmio + AMD_DBMASK_OFFSET); in ndev_deinit_isr()
842 void __iomem *mmio; in ndev_debugfs_read() local
849 mmio = ndev->self_mmio; in ndev_debugfs_read()
899 u.v32 = readl(mmio + AMD_DBSTAT_OFFSET); in ndev_debugfs_read()
906 u.v64 = read64(mmio + AMD_BAR1XLAT_OFFSET); in ndev_debugfs_read()
918 u.v32 = readl(mmio + AMD_BAR1LMT_OFFSET); in ndev_debugfs_read()
968 void __iomem *mmio = ndev->peer_mmio; in amd_poll_link() local
971 reg = readl(mmio + AMD_SIDEINFO_OFFSET); in amd_poll_link()
1001 void __iomem *mmio = NULL; in amd_set_side_info_reg() local
1005 mmio = ndev->peer_mmio; in amd_set_side_info_reg()
1007 mmio = ndev->self_mmio; in amd_set_side_info_reg()
1009 reg = readl(mmio + AMD_SIDEINFO_OFFSET); in amd_set_side_info_reg()
1012 writel(reg, mmio + AMD_SIDEINFO_OFFSET); in amd_set_side_info_reg()
1018 void __iomem *mmio = NULL; in amd_clear_side_info_reg() local
1022 mmio = ndev->peer_mmio; in amd_clear_side_info_reg()
1024 mmio = ndev->self_mmio; in amd_clear_side_info_reg()
1026 reg = readl(mmio + AMD_SIDEINFO_OFFSET); in amd_clear_side_info_reg()
1029 writel(reg, mmio + AMD_SIDEINFO_OFFSET); in amd_clear_side_info_reg()
1030 readl(mmio + AMD_SIDEINFO_OFFSET); in amd_clear_side_info_reg()
1036 void __iomem *mmio = ndev->self_mmio; in amd_init_side_info() local
1041 ntb_ctl = readl(mmio + AMD_CNTL_OFFSET); in amd_init_side_info()
1043 writel(ntb_ctl, mmio + AMD_CNTL_OFFSET); in amd_init_side_info()
1048 void __iomem *mmio = ndev->self_mmio; in amd_deinit_side_info() local
1053 ntb_ctl = readl(mmio + AMD_CNTL_OFFSET); in amd_deinit_side_info()
1055 writel(ntb_ctl, mmio + AMD_CNTL_OFFSET); in amd_deinit_side_info()
1060 void __iomem *mmio = ndev->self_mmio; in amd_init_ntb() local
1089 writel(ndev->int_mask, mmio + AMD_INTMASK_OFFSET); in amd_init_ntb()
1096 void __iomem *mmio = ndev->self_mmio; in amd_get_topo() local
1099 info = readl(mmio + AMD_SIDEINFO_OFFSET); in amd_get_topo()
1108 void __iomem *mmio = ndev->self_mmio; in amd_init_dev() local
1137 writew((u16)~BIT(ndev->db_last_bit), mmio + AMD_DBMASK_OFFSET); in amd_init_dev()
1147 writel(ndev->int_mask, mmio + AMD_INTMASK_OFFSET); in amd_init_dev()