Lines Matching refs:pos

175 		    struct resource *res, unsigned int pos)  in __pci_read_base()  argument
195 pci_read_config_dword(dev, pos, &l); in __pci_read_base()
196 pci_write_config_dword(dev, pos, l | mask); in __pci_read_base()
197 pci_read_config_dword(dev, pos, &sz); in __pci_read_base()
198 pci_write_config_dword(dev, pos, l); in __pci_read_base()
236 pci_read_config_dword(dev, pos + 4, &l); in __pci_read_base()
237 pci_write_config_dword(dev, pos + 4, ~0); in __pci_read_base()
238 pci_read_config_dword(dev, pos + 4, &sz); in __pci_read_base()
239 pci_write_config_dword(dev, pos + 4, l); in __pci_read_base()
255 pos); in __pci_read_base()
266 pos, (unsigned long long)sz64); in __pci_read_base()
276 pos, (unsigned long long)l64); in __pci_read_base()
303 pos, (unsigned long long)region.start); in __pci_read_base()
313 dev_printk(KERN_DEBUG, &dev->dev, "reg 0x%x: %pR\n", pos, res); in __pci_read_base()
320 unsigned int pos, reg; in pci_read_bases() local
325 for (pos = 0; pos < howmany; pos++) { in pci_read_bases()
326 struct resource *res = &dev->resource[pos]; in pci_read_bases()
327 reg = PCI_BASE_ADDRESS_0 + (pos << 2); in pci_read_bases()
328 pos += __pci_read_base(dev, pci_bar_unknown, res, reg); in pci_read_bases()
614 int pos; in pci_set_bus_speed() local
616 pos = pci_find_capability(bridge, PCI_CAP_ID_AGP); in pci_set_bus_speed()
617 if (!pos) in pci_set_bus_speed()
618 pos = pci_find_capability(bridge, PCI_CAP_ID_AGP3); in pci_set_bus_speed()
619 if (pos) { in pci_set_bus_speed()
622 pci_read_config_dword(bridge, pos + PCI_AGP_STATUS, &agpstat); in pci_set_bus_speed()
625 pci_read_config_dword(bridge, pos + PCI_AGP_COMMAND, &agpcmd); in pci_set_bus_speed()
629 pos = pci_find_capability(bridge, PCI_CAP_ID_PCIX); in pci_set_bus_speed()
630 if (pos) { in pci_set_bus_speed()
634 pci_read_config_word(bridge, pos + PCI_X_BRIDGE_SSTATUS, in pci_set_bus_speed()
1014 int pos; in set_pcie_port_type() local
1019 pos = pci_find_capability(pdev, PCI_CAP_ID_EXP); in set_pcie_port_type()
1020 if (!pos) in set_pcie_port_type()
1022 pdev->pcie_cap = pos; in set_pcie_port_type()
1023 pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, &reg16); in set_pcie_port_type()
1025 pci_read_config_word(pdev, pos + PCI_EXP_DEVCAP, &reg16); in set_pcie_port_type()
1078 int pos; in pci_ext_cfg_is_aliased() local
1083 for (pos = PCI_CFG_SPACE_SIZE; in pci_ext_cfg_is_aliased()
1084 pos < PCI_CFG_SPACE_EXP_SIZE; pos += PCI_CFG_SPACE_SIZE) { in pci_ext_cfg_is_aliased()
1085 if (pci_read_config_dword(dev, pos, &tmp) != PCIBIOS_SUCCESSFUL in pci_ext_cfg_is_aliased()
1110 int pos = PCI_CFG_SPACE_SIZE; in pci_cfg_space_size_ext() local
1112 if (pci_read_config_dword(dev, pos, &status) != PCIBIOS_SUCCESSFUL) in pci_cfg_space_size_ext()
1125 int pos; in pci_cfg_space_size() local
1134 pos = pci_find_capability(dev, PCI_CAP_ID_PCIX); in pci_cfg_space_size()
1135 if (!pos) in pci_cfg_space_size()
1138 pci_read_config_dword(dev, pos + PCI_X_STATUS, &status); in pci_cfg_space_size()
1182 int pos = 0; in pci_setup_device() local
1299 pos = pci_find_capability(dev, PCI_CAP_ID_SSVID); in pci_setup_device()
1300 if (pos) { in pci_setup_device()
1301 pci_read_config_word(dev, pos + PCI_SSVID_VENDOR_ID, &dev->subsystem_vendor); in pci_setup_device()
1302 pci_read_config_word(dev, pos + PCI_SSVID_DEVICE_ID, &dev->subsystem_device); in pci_setup_device()
1420 int pos; in program_hpp_type2() local
1452 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); in program_hpp_type2()
1453 if (!pos) in program_hpp_type2()
1457 pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_MASK, &reg32); in program_hpp_type2()
1459 pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_MASK, reg32); in program_hpp_type2()
1462 pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, &reg32); in program_hpp_type2()
1464 pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, reg32); in program_hpp_type2()
1467 pci_read_config_dword(dev, pos + PCI_ERR_COR_MASK, &reg32); in program_hpp_type2()
1469 pci_write_config_dword(dev, pos + PCI_ERR_COR_MASK, reg32); in program_hpp_type2()
1472 pci_read_config_dword(dev, pos + PCI_ERR_CAP, &reg32); in program_hpp_type2()
1474 pci_write_config_dword(dev, pos + PCI_ERR_CAP, reg32); in program_hpp_type2()
1791 int pos; in next_fn() local
1798 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ARI); in next_fn()
1799 if (!pos) in next_fn()
1802 pci_read_config_word(dev, pos + PCI_ARI_CAP, &cap); in next_fn()