Searched refs:xlat_reg (Results 1 – 5 of 5) sorted by relevance
/Linux-v5.10/drivers/ntb/hw/intel/ |
D | ntb_hw_gen3.c | 192 ndev->xlat_reg = &gen3_sec_xlat; in gen3_init_ntb() 447 unsigned long xlat_reg, limit_reg; in intel_ntb3_mw_set_trans() local 479 xlat_reg = ndev->xlat_reg->bar2_xlat + (idx * 0x10); in intel_ntb3_mw_set_trans() 480 limit_reg = ndev->xlat_reg->bar2_limit + (idx * 0x10); in intel_ntb3_mw_set_trans() 490 iowrite64(addr, mmio + xlat_reg); in intel_ntb3_mw_set_trans() 491 reg_val = ioread64(mmio + xlat_reg); in intel_ntb3_mw_set_trans() 493 iowrite64(0, mmio + xlat_reg); in intel_ntb3_mw_set_trans() 504 iowrite64(0, mmio + xlat_reg); in intel_ntb3_mw_set_trans() 511 limit_reg = ndev->xlat_reg->bar2_limit + (idx * 0x10) + 0x4000; in intel_ntb3_mw_set_trans() 525 iowrite64(0, mmio + xlat_reg); in intel_ntb3_mw_set_trans()
|
D | ntb_hw_gen4.c | 138 ndev->xlat_reg = &gen4_sec_xlat; in gen4_init_ntb() 324 unsigned long xlat_reg, limit_reg, idx_reg; in intel_ntb4_mw_set_trans() local 362 xlat_reg = ndev->xlat_reg->bar2_xlat + (idx * 0x10); in intel_ntb4_mw_set_trans() 363 limit_reg = ndev->xlat_reg->bar2_limit + (idx * 0x10); in intel_ntb4_mw_set_trans() 377 iowrite64(addr, mmio + xlat_reg); in intel_ntb4_mw_set_trans() 378 reg_val = ioread64(mmio + xlat_reg); in intel_ntb4_mw_set_trans() 380 iowrite64(0, mmio + xlat_reg); in intel_ntb4_mw_set_trans() 391 iowrite64(0, mmio + xlat_reg); in intel_ntb4_mw_set_trans() 398 idx_reg = ndev->xlat_reg->bar2_idx + (idx * 0x2); in intel_ntb4_mw_set_trans() 403 iowrite64(0, mmio + xlat_reg); in intel_ntb4_mw_set_trans()
|
D | ntb_hw_gen1.c | 615 u.v64 = ioread64(mmio + bar2_off(ndev->xlat_reg->bar2_xlat, 2)); in ndev_ntb_debugfs_read() 620 u.v32 = ioread32(mmio + bar2_off(ndev->xlat_reg->bar2_xlat, 4)); in ndev_ntb_debugfs_read() 624 u.v32 = ioread32(mmio + bar2_off(ndev->xlat_reg->bar2_xlat, 5)); in ndev_ntb_debugfs_read() 628 u.v64 = ioread64(mmio + bar2_off(ndev->xlat_reg->bar2_xlat, 4)); in ndev_ntb_debugfs_read() 633 u.v64 = ioread64(mmio + bar2_off(ndev->xlat_reg->bar2_limit, 2)); in ndev_ntb_debugfs_read() 638 u.v32 = ioread32(mmio + bar2_off(ndev->xlat_reg->bar2_limit, 4)); in ndev_ntb_debugfs_read() 641 u.v32 = ioread32(mmio + bar2_off(ndev->xlat_reg->bar2_limit, 5)); in ndev_ntb_debugfs_read() 645 u.v64 = ioread64(mmio + bar2_off(ndev->xlat_reg->bar2_limit, 4)); in ndev_ntb_debugfs_read() 846 unsigned long base_reg, xlat_reg, limit_reg; in intel_ntb_mw_set_trans() local 878 base_reg = bar0_off(ndev->xlat_reg->bar0_base, bar); in intel_ntb_mw_set_trans() [all …]
|
D | ntb_hw_intel.h | 173 const struct intel_ntb_xlat_reg *xlat_reg; member
|
/Linux-v5.10/drivers/ntb/hw/amd/ |
D | ntb_hw_amd.c | 123 unsigned long xlat_reg, limit_reg = 0; in amd_ntb_mw_set_trans() local 148 xlat_reg = AMD_BAR23XLAT_OFFSET + ((bar - 2) << 2); in amd_ntb_mw_set_trans() 155 write64(addr, peer_mmio + xlat_reg); in amd_ntb_mw_set_trans() 156 reg_val = read64(peer_mmio + xlat_reg); in amd_ntb_mw_set_trans() 158 write64(0, peer_mmio + xlat_reg); in amd_ntb_mw_set_trans() 167 write64(0, peer_mmio + xlat_reg); in amd_ntb_mw_set_trans() 171 xlat_reg = AMD_BAR1XLAT_OFFSET; in amd_ntb_mw_set_trans() 178 write64(addr, peer_mmio + xlat_reg); in amd_ntb_mw_set_trans() 179 reg_val = read64(peer_mmio + xlat_reg); in amd_ntb_mw_set_trans() 181 write64(0, peer_mmio + xlat_reg); in amd_ntb_mw_set_trans() [all …]
|