Lines Matching refs:mchbar
266 static int get_mchbar(struct pci_dev *pdev, u64 *mchbar) in get_mchbar() argument
291 *mchbar = MCHBAR_BASE(u.v); in get_mchbar()
360 u64 mchbar; in mtl_ps_ibecc_available() local
363 if (get_mchbar(pdev, &mchbar)) in mtl_ps_ibecc_available()
366 window = ioremap(mchbar, MCHBAR_SIZE * 2); in mtl_ps_ibecc_available()
368 igen6_printk(KERN_ERR, "Failed to ioremap 0x%llx\n", mchbar); in mtl_ps_ibecc_available()
1120 static int igen6_pci_setup(struct pci_dev *pdev, u64 *mchbar) in igen6_pci_setup() argument
1156 if (get_mchbar(pdev, mchbar)) in igen6_pci_setup()
1173 static int igen6_register_mci(int mc, u64 mchbar, struct pci_dev *pdev) in igen6_register_mci() argument
1183 mchbar += mc * MCHBAR_SIZE; in igen6_register_mci()
1184 window = ioremap(mchbar, MCHBAR_SIZE); in igen6_register_mci()
1186 igen6_printk(KERN_ERR, "Failed to ioremap 0x%llx\n", mchbar); in igen6_register_mci()
1277 static int igen6_mem_slice_setup(u64 mchbar) in igen6_mem_slice_setup() argument
1280 u64 base = mchbar + res_cfg->cmf_base; in igen6_mem_slice_setup()
1353 u64 mchbar; in igen6_probe() local
1364 rc = igen6_pci_setup(pdev, &mchbar); in igen6_probe()
1369 rc = igen6_register_mci(i, mchbar, pdev); in igen6_probe()
1375 rc = igen6_mem_slice_setup(mchbar); in igen6_probe()