Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 141) sorted by relevance

123456

/arch/x86/pci/
Damd_bus.c137 static void __init update_range(struct res_range *range, size_t start, in update_range() argument
144 if (!range[j].end) in update_range()
147 if (start <= range[j].start && end >= range[j].end) { in update_range()
148 range[j].start = 0; in update_range()
149 range[j].end = 0; in update_range()
153 if (start <= range[j].start && end < range[j].end && range[j].start < end + 1) { in update_range()
154 range[j].start = end + 1; in update_range()
159 if (start > range[j].start && end >= range[j].end && range[j].end > start - 1) { in update_range()
160 range[j].end = start - 1; in update_range()
164 if (start > range[j].start && end < range[j].end) { in update_range()
[all …]
/arch/x86/kernel/
Dmmconf-fam10h_64.c33 struct range { struct
40 const struct range *r1 = x1; in cmp_range() argument
41 const struct range *r2 = x2; in cmp_range()
67 struct range range[8]; in get_fam10h_pci_mmconf_base() local
136 range[hi_mmio_num].start = start; in get_fam10h_pci_mmconf_base()
137 range[hi_mmio_num].end = end; in get_fam10h_pci_mmconf_base()
145 sort(range, hi_mmio_num, sizeof(struct range), cmp_range, NULL); in get_fam10h_pci_mmconf_base()
147 if (range[hi_mmio_num - 1].end < base) in get_fam10h_pci_mmconf_base()
149 if (range[0].start > base) in get_fam10h_pci_mmconf_base()
153 base = range[0].start - (1ULL << 32); in get_fam10h_pci_mmconf_base()
[all …]
/arch/x86/kernel/cpu/mtrr/
Dmain.c622 add_range(struct res_range *range, int nr_range, unsigned long start, in add_range() argument
629 range[nr_range].start = start; in add_range()
630 range[nr_range].end = end; in add_range()
638 add_range_with_merge(struct res_range *range, int nr_range, unsigned long start, in add_range_with_merge() argument
648 if (!range[i].end) in add_range_with_merge()
651 common_start = max(range[i].start, start); in add_range_with_merge()
652 common_end = min(range[i].end, end); in add_range_with_merge()
656 final_start = min(range[i].start, start); in add_range_with_merge()
657 final_end = max(range[i].end, end); in add_range_with_merge()
659 range[i].start = final_start; in add_range_with_merge()
[all …]
Dgeneric.c420 int block=-1, range; in set_fixed_ranges() local
423 for (range=0; range < fixed_range_blocks[block].ranges; range++) in set_fixed_ranges()
424 set_fixed_range(fixed_range_blocks[block].base_msr + range, in set_fixed_ranges()
/arch/powerpc/kernel/
Disa-bridge.c65 const struct isa_range *range; in pci_process_ISA_OF_ranges() local
71 range = of_get_property(isa_node, "ranges", &rlen); in pci_process_ISA_OF_ranges()
72 if (range == NULL || (rlen < sizeof(struct isa_range))) in pci_process_ISA_OF_ranges()
83 if ((range->isa_addr.a_hi & ISA_SPACE_MASK) != ISA_SPACE_IO) { in pci_process_ISA_OF_ranges()
84 range++; in pci_process_ISA_OF_ranges()
89 if ((range->isa_addr.a_hi & ISA_SPACE_MASK) != ISA_SPACE_IO) in pci_process_ISA_OF_ranges()
92 isa_addr = range->isa_addr.a_lo; in pci_process_ISA_OF_ranges()
93 pci_addr = (unsigned long) range->pci_addr.a_mid << 32 | in pci_process_ISA_OF_ranges()
94 range->pci_addr.a_lo; in pci_process_ISA_OF_ranges()
107 size = PAGE_ALIGN(range->size); in pci_process_ISA_OF_ranges()
Dprom_parse.c56 u64 (*map)(u32 *addr, const u32 *range,
76 static u64 of_bus_default_map(u32 *addr, const u32 *range, in of_bus_default_map() argument
81 cp = of_read_number(range, na); in of_bus_default_map()
82 s = of_read_number(range + na + pna, ns); in of_bus_default_map()
150 static u64 of_bus_pci_map(u32 *addr, const u32 *range, int na, int ns, int pna) in of_bus_pci_map() argument
156 rf = of_bus_pci_get_flags(range); in of_bus_pci_map()
163 cp = of_read_number(range + 1, na - 1); in of_bus_pci_map()
164 s = of_read_number(range + na + pna, ns); in of_bus_pci_map()
334 static u64 of_bus_isa_map(u32 *addr, const u32 *range, int na, int ns, int pna) in of_bus_isa_map() argument
339 if ((addr[0] ^ range[0]) & 0x00000001) in of_bus_isa_map()
[all …]
/arch/s390/mm/
Dextmem.c52 struct qrange range[6]; member
67 struct qrange_old range[6]; member
90 struct qrange range[6]; member
303 qout->range[i].start = in query_segment_type()
304 (unsigned long) qout_old->range[i].start; in query_segment_type()
305 qout->range[i].end = in query_segment_type()
306 (unsigned long) qout_old->range[i].end; in query_segment_type()
317 seg->vm_segtype = qout->range[0].start & 0xff; in query_segment_type()
325 if (((qout->range[i].start & 0xff) != SEG_TYPE_EW) && in query_segment_type()
326 ((qout->range[i].start & 0xff) != SEG_TYPE_EN)) { in query_segment_type()
[all …]
/arch/frv/lib/
Dcache.S20 # Write back a range of dcache
40 # Invalidate a range of dcache and icache
61 # Invalidate a range of icache
81 # Write back and invalidate a range of dcache and icache
D__ashrdi3.S30 # deal with a shift in the range 1<=N<=31
37 # deal with a shift in the range 32<=N<=63
D__lshrdi3.S29 # deal with a shift in the range 1<=N<=31
36 # deal with a shift in the range 32<=N<=63
D__ashldi3.S29 # deal with a shift in the range 1<=N<=31
36 # deal with a shift in the range 32<=N<=63
/arch/sparc/kernel/
Dof_device_32.c94 int (*map)(u32 *addr, const u32 *range,
128 static int of_bus_default_map(u32 *addr, const u32 *range, in of_bus_default_map() argument
139 if (of_out_of_range(addr, range, range + na + pna, na, ns)) in of_bus_default_map()
143 memcpy(result, range + na, pna * 4); in of_bus_default_map()
149 range[na - 1 - i]); in of_bus_default_map()
194 static int of_bus_pci_map(u32 *addr, const u32 *range, in of_bus_pci_map() argument
201 if ((addr[0] ^ range[0]) & 0x03000000) in of_bus_pci_map()
204 if (of_out_of_range(addr + 1, range + 1, range + na + pna, in of_bus_pci_map()
209 memcpy(result, range + na, pna * 4); in of_bus_pci_map()
215 range[na - 1 - i]); in of_bus_pci_map()
[all …]
Dof_device_64.c120 int (*map)(u32 *addr, const u32 *range,
154 static int of_bus_default_map(u32 *addr, const u32 *range, in of_bus_default_map() argument
165 if (of_out_of_range(addr, range, range + na + pna, na, ns)) in of_bus_default_map()
169 memcpy(result, range + na, pna * 4); in of_bus_default_map()
175 range[na - 1 - i]); in of_bus_default_map()
234 static int of_bus_simba_map(u32 *addr, const u32 *range, in of_bus_simba_map() argument
249 static int of_bus_pci_map(u32 *addr, const u32 *range, in of_bus_pci_map() argument
256 if ((addr[0] ^ range[0]) & 0x03000000) in of_bus_pci_map()
259 if (of_out_of_range(addr + 1, range + 1, range + na + pna, in of_bus_pci_map()
264 memcpy(result, range + na, pna * 4); in of_bus_pci_map()
[all …]
/arch/sh/kernel/
Dgpio.c228 struct pinmux_range *range; in pinmux_config_gpio() local
235 range = NULL; in pinmux_config_gpio()
239 range = &gpioc->output; in pinmux_config_gpio()
243 range = &gpioc->input; in pinmux_config_gpio()
247 range = &gpioc->input_pu; in pinmux_config_gpio()
251 range = &gpioc->input_pd; in pinmux_config_gpio()
270 if (!in_range && range) { in pinmux_config_gpio()
271 in_range = enum_in_range(enum_id, range); in pinmux_config_gpio()
273 if (in_range && enum_id == range->force) in pinmux_config_gpio()
/arch/avr32/boards/favr-32/
DKconfig8 range 32000 50000
14 Must be within the range 32000 to 50000, which should be suitable to
/arch/mn10300/lib/
D__ashldi3.S32 # the count is in the range 1-31
44 # the count is in the range 32-63
D__lshrdi3.S33 # the count is in the range 1-31
45 # the count is in the range 32-63
D__ashrdi3.S32 # the count is in the range 1-31
44 # the count is in the range 32-63
/arch/ia64/ia32/
DMakefile11 CFLAGS_ia32_signal.o += -mfixed-range=f16-f31
/arch/arm/mm/
Dproc-feroceon.S254 mcr p15, 5, r0, c15, c15, 0 @ D clean/inv range start
255 mcr p15, 5, r1, c15, c15, 1 @ D clean/inv range top
300 mcr p15, 5, r0, c15, c14, 0 @ D inv range start
301 mcr p15, 5, r1, c15, c14, 1 @ D inv range top
332 mcr p15, 5, r0, c15, c13, 0 @ D clean range start
333 mcr p15, 5, r1, c15, c13, 1 @ D clean range top
363 mcr p15, 5, r0, c15, c15, 0 @ D clean/inv range start
364 mcr p15, 5, r1, c15, c15, 1 @ D clean/inv range top
/arch/powerpc/boot/
Ddevtree.c181 static int compare_reg(u32 *reg, u32 *range, u32 *rangesize) in compare_reg() argument
187 if (reg[i] < range[i]) in compare_reg()
189 if (reg[i] > range[i]) in compare_reg()
194 end = range[i] + rangesize[i]; in compare_reg()
/arch/powerpc/boot/dts/
Dkatmai.dts248 /* Inbound 2GB range starting at 0 */
252 bus-range = <0x0 0xf>;
292 /* Inbound 2GB range starting at 0 */
296 bus-range = <0x10 0x1f>;
333 /* Inbound 2GB range starting at 0 */
337 bus-range = <0x20 0x2f>;
374 /* Inbound 2GB range starting at 0 */
378 bus-range = <0x30 0x3f>;
Dcanyonlands.dts360 /* Inbound 2GB range starting at 0 */
364 bus-range = <0x0 0x3f>;
391 /* Inbound 2GB range starting at 0 */
395 bus-range = <0x40 0x7f>;
433 /* Inbound 2GB range starting at 0 */
437 bus-range = <0x80 0xbf>;
/arch/parisc/mm/
Dinit.c739 int range; in pagetable_init() local
743 for (range = 0; range < npmem_ranges; range++) { in pagetable_init()
748 start_paddr = pmem_ranges[range].start_pfn << PAGE_SHIFT; in pagetable_init()
749 end_paddr = start_paddr + (pmem_ranges[range].pages << PAGE_SHIFT); in pagetable_init()
750 size = pmem_ranges[range].pages << PAGE_SHIFT; in pagetable_init()
/arch/mips/cavium-octeon/
DKconfig31 range 0 54
37 legally range is from zero to 54 cache blocks (i.e. CVMSEG LM is

123456