Lines Matching defs:pos

615 static void quirk_io(struct pci_dev *dev, int pos, unsigned int size,
620 struct resource *res = dev->resource + pos;
622 pci_read_config_dword(dev, PCI_BASE_ADDRESS_0 + (pos << 2), &region);
639 name, PCI_BASE_ADDRESS_0 + (pos << 2), res);
2742 int pos, ttl = PCI_FIND_CAP_TTL;
2744 pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING);
2745 while (pos && ttl--) {
2748 if (pci_read_config_byte(dev, pos + HT_MSI_FLAGS,
2756 pos = pci_find_next_ht_capability(dev, pos,
2796 int pos, ttl = PCI_FIND_CAP_TTL;
2798 pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING);
2799 while (pos && ttl--) {
2802 if (pci_read_config_byte(dev, pos + HT_MSI_FLAGS,
2806 pci_write_config_byte(dev, pos + HT_MSI_FLAGS,
2809 pos = pci_find_next_ht_capability(dev, pos,
2935 int pos, ttl = PCI_FIND_CAP_TTL;
2939 pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING);
2940 while (pos && ttl--) {
2945 if (pci_read_config_byte(dev, pos + HT_MSI_FLAGS,
2954 pos = pci_find_next_ht_capability(dev, pos,
2964 int pos;
2975 pos = pci_find_ht_capability(dev, HT_CAPTYPE_SLAVE);
2976 if (pos != 0) {
2997 int pos, ctrl_off;
3001 pos = pci_find_ht_capability(dev, HT_CAPTYPE_SLAVE);
3003 if (!pos)
3006 pci_read_config_word(dev, pos + PCI_CAP_FLAGS, &flags);
3010 pci_read_config_word(dev, pos + ctrl_off, &ctrl);
3022 int pos;
3032 pos = pci_find_ht_capability(host_bridge, HT_CAPTYPE_SLAVE);
3033 if (pos != 0) {
3060 int pos, ttl = PCI_FIND_CAP_TTL;
3062 pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING);
3063 while (pos && ttl--) {
3066 if (pci_read_config_byte(dev, pos + HT_MSI_FLAGS,
3070 pci_write_config_byte(dev, pos + HT_MSI_FLAGS,
3073 pos = pci_find_next_ht_capability(dev, pos,
3081 int pos;
3105 pos = pci_find_ht_capability(host_bridge, HT_CAPTYPE_SLAVE);
3106 if (pos != 0) {
4930 int pos;
4936 pos = dev->acs_cap;
4937 if (!pos)
4941 pci_read_config_dword(dev, pos + PCI_ACS_CAP, &cap);
4944 pci_read_config_dword(dev, pos + INTEL_SPT_ACS_CTRL, &ctrl);
5318 int pos;
5324 pos = dev->acs_cap;
5325 if (!pos)
5328 pci_read_config_dword(dev, pos + PCI_ACS_CAP, &cap);
5329 pci_read_config_dword(dev, pos + INTEL_SPT_ACS_CTRL, &ctrl);
5339 pci_write_config_dword(dev, pos + INTEL_SPT_ACS_CTRL, ctrl);
5348 int pos;
5354 pos = dev->acs_cap;
5355 if (!pos)
5358 pci_read_config_dword(dev, pos + PCI_ACS_CAP, &cap);
5359 pci_read_config_dword(dev, pos + INTEL_SPT_ACS_CTRL, &ctrl);
5363 pci_write_config_dword(dev, pos + INTEL_SPT_ACS_CTRL, ctrl);
5436 int pos, i = 0, ret;
5446 pos = pci_find_capability(pdev, PCI_CAP_ID_MSI);
5447 if (!pos)
5454 pci_read_config_byte(pdev, pos + 1, &next_cap);
5466 pos = 0x50;
5467 pci_read_config_word(pdev, pos, &reg16);
5475 pdev->pcie_cap = pos;
5476 pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, &reg16);
5478 pci_read_config_word(pdev, pos + PCI_EXP_DEVCAP, &reg16);
5775 int pos;
5780 pos = bridge->acs_cap;
5783 if (pos) {
5784 pci_read_config_word(bridge, pos + PCI_ACS_CTRL, &ctrl);
5786 pci_write_config_word(bridge, pos + PCI_ACS_CTRL,
5798 pci_write_config_word(bridge, pos + PCI_ACS_CTRL, ctrl);