Lines Matching refs:pos

194     int pos;  in pcie_set_port_type()  local
196 if (!(pos = rt_pci_find_capability(pdev, PCIY_EXPRESS))) in pcie_set_port_type()
201 pdev->pcie_cap = pos; in pcie_set_port_type()
257 int pos; in pci_cfg_space_size() local
271 pos = rt_pci_find_capability(pdev, PCIY_PCIX); in pci_cfg_space_size()
272 if (!pos) in pci_cfg_space_size()
277 rt_pci_read_config_u32(pdev, pos + PCIXR_STATUS, &status); in pci_cfg_space_size()
306 rt_uint8_t pos; in rt_pci_setup_device() local
361 pos = rt_pci_find_capability(pdev, PCIY_SUBVENDOR); in rt_pci_setup_device()
362 if (pos) in rt_pci_setup_device()
435 int pos, offset; in pci_ea_fixed_busnrs() local
439 pos = rt_pci_find_capability(pdev, PCIY_EA); in pci_ea_fixed_busnrs()
440 if (!pos) in pci_ea_fixed_busnrs()
445 offset = pos + PCIR_EA_FIRST_ENT; in pci_ea_fixed_busnrs()
462 int pos = pdev->pcie_cap; in pcie_fixup_link() local
478 rt_pci_read_config_u16(pdev, pos + PCIER_LINK_CTL, &exp_lnkctl); in pcie_fixup_link()
479 rt_pci_read_config_u16(pdev, pos + PCIER_LINK_CTL2, &exp_lnkctl2); in pcie_fixup_link()
481 rt_pci_write_config_u16(pdev, pos + PCIER_LINK_CTL2, in pcie_fixup_link()
483 rt_pci_write_config_u16(pdev, pos + PCIER_LINK_CTL, in pcie_fixup_link()
488 rt_pci_read_config_u16(pdev, pos + PCIER_LINK_STA, &exp_lnksta); in pcie_fixup_link()
499 rt_pci_write_config_u16(pdev, pos + PCIER_LINK_CTL2, exp_lnkctl2); in pcie_fixup_link()
500 rt_pci_write_config_u16(pdev, pos + PCIER_LINK_CTL, in pcie_fixup_link()
639 int pos, next_fn; in next_fn() local
647 pos = rt_pci_find_ext_capability(pdev, PCIZ_ARI); in next_fn()
649 if (!pos) in next_fn()
654 rt_pci_read_config_u16(pdev, pos + PCIR_ARI_CAP, &cap); in next_fn()