Lines Matching refs:PCIR_BAR
421 val = pci_read_config(dev, PCIR_BAR(0), 4);
437 mpt_io_bar = PCIR_BAR(mpt_io_bar);
450 mpt_mem_bar = PCIR_BAR(mpt_mem_bar);
739 mpt->pci_cfg.IO_BAR = pci_read_config(mpt->dev, PCIR_BAR(0), 4);
740 mpt->pci_cfg.Mem0_BAR[0] = pci_read_config(mpt->dev, PCIR_BAR(1), 4);
741 mpt->pci_cfg.Mem0_BAR[1] = pci_read_config(mpt->dev, PCIR_BAR(2), 4);
742 mpt->pci_cfg.Mem1_BAR[0] = pci_read_config(mpt->dev, PCIR_BAR(3), 4);
743 mpt->pci_cfg.Mem1_BAR[1] = pci_read_config(mpt->dev, PCIR_BAR(4), 4);
766 MPT_CHECK(IO_BAR, PCIR_BAR(0), 4);
767 MPT_CHECK(Mem0_BAR[0], PCIR_BAR(1), 4);
768 MPT_CHECK(Mem0_BAR[1], PCIR_BAR(2), 4);
769 MPT_CHECK(Mem1_BAR[0], PCIR_BAR(3), 4);
770 MPT_CHECK(Mem1_BAR[1], PCIR_BAR(4), 4);
780 pci_write_config(mpt->dev, PCIR_BAR(0), mpt->pci_cfg.IO_BAR, 4);
781 pci_write_config(mpt->dev, PCIR_BAR(1), mpt->pci_cfg.Mem0_BAR[0], 4);
782 pci_write_config(mpt->dev, PCIR_BAR(2), mpt->pci_cfg.Mem0_BAR[1], 4);
783 pci_write_config(mpt->dev, PCIR_BAR(3), mpt->pci_cfg.Mem1_BAR[0], 4);
784 pci_write_config(mpt->dev, PCIR_BAR(4), mpt->pci_cfg.Mem1_BAR[1], 4);