Lines Matching refs:indexes
665 const int *indexes; in pseries_get_iov_fw_value() local
669 indexes = of_get_property(dn, "ibm,open-sriov-vf-bar-info", NULL); in pseries_get_iov_fw_value()
670 if (!indexes) in pseries_get_iov_fw_value()
678 num_res = of_read_number(&indexes[NUM_RES_PROPERTY], 1); in pseries_get_iov_fw_value()
685 ret = of_read_number(&indexes[i], 2); in pseries_get_iov_fw_value()
688 ret = of_read_number(&indexes[i + APERTURE_PROPERTY], 2); in pseries_get_iov_fw_value()
691 ret = of_read_number(&indexes[i + WDW_SIZE_PROPERTY], 2); in pseries_get_iov_fw_value()
698 static void of_pci_set_vf_bar_size(struct pci_dev *dev, const int *indexes) in of_pci_set_vf_bar_size() argument
704 num_res = of_read_number(&indexes[NUM_RES_PROPERTY], 1); in of_pci_set_vf_bar_size()
709 base = of_read_number(&indexes[i], 2); in of_pci_set_vf_bar_size()
710 size = of_read_number(&indexes[i + APERTURE_PROPERTY], 2); in of_pci_set_vf_bar_size()
712 (&indexes[i + LOW_INT], 1), 0); in of_pci_set_vf_bar_size()
720 static void of_pci_parse_iov_addrs(struct pci_dev *dev, const int *indexes) in of_pci_parse_iov_addrs() argument
731 num_res = of_read_number(&indexes[NUM_RES_PROPERTY], 1); in of_pci_parse_iov_addrs()
735 base = of_read_number(&indexes[i], 2); in of_pci_parse_iov_addrs()
736 size = of_read_number(&indexes[i + WDW_SIZE_PROPERTY], 2); in of_pci_parse_iov_addrs()
766 const int *indexes; in pseries_pci_fixup_resources() local
770 indexes = of_get_property(dn, "ibm,open-sriov-vf-bar-info", NULL); in pseries_pci_fixup_resources()
771 if (indexes) in pseries_pci_fixup_resources()
772 of_pci_set_vf_bar_size(pdev, indexes); in pseries_pci_fixup_resources()
779 const int *indexes; in pseries_pci_fixup_iov_resources() local
785 indexes = of_get_property(dn, "ibm,open-sriov-vf-bar-info", NULL); in pseries_pci_fixup_iov_resources()
786 if (indexes) in pseries_pci_fixup_iov_resources()
787 of_pci_parse_iov_addrs(pdev, indexes); in pseries_pci_fixup_iov_resources()