Lines Matching refs:range
37 const struct range *r1 = x1; in cmp_range()
38 const struct range *r2 = x2; in cmp_range()
66 struct range range[8]; in get_fam10h_pci_mmconf_base() local
134 range[hi_mmio_num].start = start; in get_fam10h_pci_mmconf_base()
135 range[hi_mmio_num].end = end; in get_fam10h_pci_mmconf_base()
143 sort(range, hi_mmio_num, sizeof(struct range), cmp_range, NULL); in get_fam10h_pci_mmconf_base()
145 if (range[hi_mmio_num - 1].end < base) in get_fam10h_pci_mmconf_base()
147 if (range[0].start > base + MMCONF_SIZE) in get_fam10h_pci_mmconf_base()
151 base = (range[0].start & MMCONF_MASK) - MMCONF_UNIT; in get_fam10h_pci_mmconf_base()
154 base = (range[hi_mmio_num - 1].end + MMCONF_UNIT) & MMCONF_MASK; in get_fam10h_pci_mmconf_base()
159 base = (range[i - 1].end + MMCONF_UNIT) & MMCONF_MASK; in get_fam10h_pci_mmconf_base()
160 val = range[i].start & MMCONF_MASK; in get_fam10h_pci_mmconf_base()