Lines Matching refs:pos

172 		    struct resource *res, unsigned int pos)  in __pci_read_base()  argument
192 pci_read_config_dword(dev, pos, &l); in __pci_read_base()
193 pci_write_config_dword(dev, pos, l | mask); in __pci_read_base()
194 pci_read_config_dword(dev, pos, &sz); in __pci_read_base()
195 pci_write_config_dword(dev, pos, l); in __pci_read_base()
233 pci_read_config_dword(dev, pos + 4, &l); in __pci_read_base()
234 pci_write_config_dword(dev, pos + 4, ~0); in __pci_read_base()
235 pci_read_config_dword(dev, pos + 4, &sz); in __pci_read_base()
236 pci_write_config_dword(dev, pos + 4, l); in __pci_read_base()
252 pos); in __pci_read_base()
263 pos, (unsigned long long)sz64); in __pci_read_base()
273 pos, (unsigned long long)l64); in __pci_read_base()
300 pos, (unsigned long long)region.start); in __pci_read_base()
310 dev_printk(KERN_DEBUG, &dev->dev, "reg 0x%x: %pR\n", pos, res); in __pci_read_base()
317 unsigned int pos, reg; in pci_read_bases() local
322 for (pos = 0; pos < howmany; pos++) { in pci_read_bases()
323 struct resource *res = &dev->resource[pos]; in pci_read_bases()
324 reg = PCI_BASE_ADDRESS_0 + (pos << 2); in pci_read_bases()
325 pos += __pci_read_base(dev, pci_bar_unknown, res, reg); in pci_read_bases()
612 int pos; in pci_set_bus_speed() local
614 pos = pci_find_capability(bridge, PCI_CAP_ID_AGP); in pci_set_bus_speed()
615 if (!pos) in pci_set_bus_speed()
616 pos = pci_find_capability(bridge, PCI_CAP_ID_AGP3); in pci_set_bus_speed()
617 if (pos) { in pci_set_bus_speed()
620 pci_read_config_dword(bridge, pos + PCI_AGP_STATUS, &agpstat); in pci_set_bus_speed()
623 pci_read_config_dword(bridge, pos + PCI_AGP_COMMAND, &agpcmd); in pci_set_bus_speed()
627 pos = pci_find_capability(bridge, PCI_CAP_ID_PCIX); in pci_set_bus_speed()
628 if (pos) { in pci_set_bus_speed()
632 pci_read_config_word(bridge, pos + PCI_X_BRIDGE_SSTATUS, in pci_set_bus_speed()
977 int pos; in set_pcie_port_type() local
982 pos = pci_find_capability(pdev, PCI_CAP_ID_EXP); in set_pcie_port_type()
983 if (!pos) in set_pcie_port_type()
985 pdev->pcie_cap = pos; in set_pcie_port_type()
986 pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, &reg16); in set_pcie_port_type()
988 pci_read_config_word(pdev, pos + PCI_EXP_DEVCAP, &reg16); in set_pcie_port_type()
1036 int pos; in pci_ext_cfg_is_aliased() local
1041 for (pos = PCI_CFG_SPACE_SIZE; in pci_ext_cfg_is_aliased()
1042 pos < PCI_CFG_SPACE_EXP_SIZE; pos += PCI_CFG_SPACE_SIZE) { in pci_ext_cfg_is_aliased()
1043 if (pci_read_config_dword(dev, pos, &tmp) != PCIBIOS_SUCCESSFUL in pci_ext_cfg_is_aliased()
1068 int pos = PCI_CFG_SPACE_SIZE; in pci_cfg_space_size_ext() local
1070 if (pci_read_config_dword(dev, pos, &status) != PCIBIOS_SUCCESSFUL) in pci_cfg_space_size_ext()
1083 int pos; in pci_cfg_space_size() local
1092 pos = pci_find_capability(dev, PCI_CAP_ID_PCIX); in pci_cfg_space_size()
1093 if (!pos) in pci_cfg_space_size()
1096 pci_read_config_dword(dev, pos + PCI_X_STATUS, &status); in pci_cfg_space_size()
1125 int pos = 0; in pci_setup_device() local
1243 pos = pci_find_capability(dev, PCI_CAP_ID_SSVID); in pci_setup_device()
1244 if (pos) { in pci_setup_device()
1245 pci_read_config_word(dev, pos + PCI_SSVID_VENDOR_ID, &dev->subsystem_vendor); in pci_setup_device()
1246 pci_read_config_word(dev, pos + PCI_SSVID_DEVICE_ID, &dev->subsystem_device); in pci_setup_device()
1326 int pos; in program_hpp_type2() local
1358 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); in program_hpp_type2()
1359 if (!pos) in program_hpp_type2()
1363 pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_MASK, &reg32); in program_hpp_type2()
1365 pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_MASK, reg32); in program_hpp_type2()
1368 pci_read_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, &reg32); in program_hpp_type2()
1370 pci_write_config_dword(dev, pos + PCI_ERR_UNCOR_SEVER, reg32); in program_hpp_type2()
1373 pci_read_config_dword(dev, pos + PCI_ERR_COR_MASK, &reg32); in program_hpp_type2()
1375 pci_write_config_dword(dev, pos + PCI_ERR_COR_MASK, reg32); in program_hpp_type2()
1378 pci_read_config_dword(dev, pos + PCI_ERR_CAP, &reg32); in program_hpp_type2()
1380 pci_write_config_dword(dev, pos + PCI_ERR_CAP, reg32); in program_hpp_type2()
1612 int pos; in next_fn() local
1619 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ARI); in next_fn()
1620 if (!pos) in next_fn()
1623 pci_read_config_word(dev, pos + PCI_ARI_CAP, &cap); in next_fn()