Lines Matching refs:range
36 const struct range *r1 = x1; in cmp_range()
37 const struct range *r2 = x2; in cmp_range()
65 struct range range[8]; in get_fam10h_pci_mmconf_base() local
133 range[hi_mmio_num].start = start; in get_fam10h_pci_mmconf_base()
134 range[hi_mmio_num].end = end; in get_fam10h_pci_mmconf_base()
142 sort(range, hi_mmio_num, sizeof(struct range), cmp_range, NULL); in get_fam10h_pci_mmconf_base()
144 if (range[hi_mmio_num - 1].end < base) in get_fam10h_pci_mmconf_base()
146 if (range[0].start > base + MMCONF_SIZE) in get_fam10h_pci_mmconf_base()
150 base = (range[0].start & MMCONF_MASK) - MMCONF_UNIT; in get_fam10h_pci_mmconf_base()
153 base = (range[hi_mmio_num - 1].end + MMCONF_UNIT) & MMCONF_MASK; in get_fam10h_pci_mmconf_base()
158 base = (range[i - 1].end + MMCONF_UNIT) & MMCONF_MASK; in get_fam10h_pci_mmconf_base()
159 val = range[i].start & MMCONF_MASK; in get_fam10h_pci_mmconf_base()