Home
last modified time | relevance | path

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

12345678910>>...107

/linux/kernel/
A Drange.c29 int add_range_with_merge(struct range *range, int az, int nr_range, in add_range_with_merge() argument
53 memmove(&range[i], &range[i + 1], in add_range_with_merge()
76 if (start <= range[j].start && end >= range[j].end) { in subtract_range()
82 if (start <= range[j].start && end < range[j].end && in subtract_range()
89 if (start > range[j].start && end >= range[j].end && in subtract_range()
95 if (start > range[j].start && end < range[j].end) { in subtract_range()
102 range[i].end = range[j].end; in subtract_range()
126 int clean_sort_range(struct range *range, int az) in clean_sort_range() argument
141 range[i].start = range[k].start; in clean_sort_range()
142 range[i].end = range[k].end; in clean_sort_range()
[all …]
/linux/drivers/soc/ti/
A Dknav_qmss_acc.c90 range = _instdata; in knav_acc_int_handler()
92 kdev = range->kdev; in knav_acc_int_handler()
94 acc = range->acc; in knav_acc_int_handler()
205 acc = range->acc; in knav_range_setup_acc_irq()
233 range); in knav_range_setup_acc_irq()
311 acc = range->acc; in knav_acc_setup_cmd()
449 devm_kfree(range->kdev->dev, range->acc); in knav_acc_free_range()
530 range->name); in knav_init_acc_range()
536 range->name); in knav_init_acc_range()
547 range->acc = devm_kcalloc(kdev->dev, channels, sizeof(*range->acc), in knav_init_acc_range()
[all …]
A Dknav_qmss_queue.c139 struct knav_range_info *range = inst->range; in knav_queue_free_irq() local
241 struct knav_range_info *range = inst->range; in __knav_queue_open() local
244 if (range->ops && range->ops->open_queue) in __knav_queue_open()
317 struct knav_range_info *range = inst->range; in knav_queue_set_notify() local
319 if (range->ops && range->ops->set_notify) in knav_queue_set_notify()
566 range->ops->close_queue(range, inst); in knav_queue_close()
1265 range->num_irqs = min(range->num_irqs, range->num_queues); in knav_setup_queue_range()
1298 range->name, range->queue_base, in knav_setup_queue_range()
1332 range->ops->free_range(range); in knav_free_queue_range()
1695 inst->range = range; in knav_queue_init_queue()
[all …]
/linux/drivers/staging/android/
A Dashmem.c109 return range->pgend - range->pgstart + 1; in range_size()
120 return (range->pgstart >= start) && (range->pgend <= end); in page_range_subsumes_range()
126 return (range->pgstart <= start) && (range->pgend >= end); in page_range_subsumed_by_range()
131 return (range->pgstart <= page) && (range->pgend >= page); in page_in_range()
202 lru_add(range); in range_alloc()
672 range_shrink(range, pgend + 1, range->pgend); in ashmem_pin()
678 range_shrink(range, range->pgstart, in ashmem_pin()
688 range_alloc(asma, range, range->purged, in ashmem_pin()
690 range_shrink(range, range->pgstart, pgstart - 1); in ashmem_pin()
771 if (!range) in ashmem_pin_unpin()
[all …]
/linux/security/selinux/ss/
A Dcontext.h38 memset(&c->range, 0, sizeof(c->range)); in mls_context_init()
45 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy()
50 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy()
65 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy_low()
70 dst->range.level[1].sens = src->range.level[0].sens; in mls_context_cpy_low()
85 dst->range.level[0].sens = src->range.level[1].sens; in mls_context_cpy_high()
90 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy_high()
102 struct mls_range *dr = &dst->range, *r1 = &c1->range, *r2 = &c2->range; in mls_context_glblub()
132 return ((c1->range.level[0].sens == c2->range.level[0].sens) && in mls_context_cmp()
134 (c1->range.level[1].sens == c2->range.level[1].sens) && in mls_context_cmp()
[all …]
A Dmls.c54 e = &context->range.level[l].cat; in mls_compute_context_len()
74 &context->range.level[1])) in mls_compute_context_len()
114 e = &context->range.level[l].cat; in mls_sid_to_context()
151 &context->range.level[1])) in mls_sid_to_context()
212 if (!mls_range_contains(usrdatum->range, c->range)) in mls_context_isvalid()
345 context->range.level[1].sens = context->range.level[0].sens; in mls_context_to_sid()
386 struct mls_range *range) in mls_range_set() argument
392 context->range.level[l].sens = range->level[l].sens; in mls_range_set()
394 &range->level[l].cat); in mls_range_set()
595 context->range.level[1].sens = context->range.level[0].sens; in mls_import_netlbl_lvl()
[all …]
/linux/lib/
A Dlogic_pio.c62 if (start >= range->hw_start + range->size || in logic_pio_register_range()
64 mmio_end = range->io_start + range->size; in logic_pio_register_range()
135 found_range = range; in find_io_range_by_fwnode()
151 if (in_range(pio, range->io_start, range->size)) { in find_io_range()
152 found_range = range; in find_io_range()
178 if (range) in logic_pio_to_hwaddr()
179 return range->hw_start + pio - range->io_start; in logic_pio_to_hwaddr()
198 if (!range || range->flags == LOGIC_PIO_CPU_MMIO) { in logic_pio_trans_hwaddr()
207 return addr - range->hw_start + range->io_start; in logic_pio_trans_hwaddr()
218 if (in_range(addr, range->hw_start, range->size)) { in logic_pio_trans_cpuaddr()
[all …]
/linux/mm/
A Dmemremap.c66 static void pgmap_array_delete(struct range *range) in pgmap_array_delete() argument
75 struct range *range = &pgmap->ranges[range_id]; in pfn_first() local
88 struct range *range = &pgmap->ranges[i]; in pgmap_pfn_valid() local
100 const struct range *range = &pgmap->ranges[range_id]; in pfn_end() local
102 return (range->start + range_len(range)) >> PAGE_SHIFT; in pfn_end()
141 struct range *range = &pgmap->ranges[range_id]; in pageunmap_range() local
155 arch_remove_memory(range->start, range_len(range), in pageunmap_range()
161 untrack_pfn(NULL, PHYS_PFN(range->start), range_len(range)); in pageunmap_range()
201 struct range *range = &pgmap->ranges[range_id]; in pagemap_range() local
223 is_ram = region_intersects(range->start, range_len(range), in pagemap_range()
[all …]
A Dhmm.c90 struct hmm_range *range = hmm_vma_walk->range; in hmm_pte_need_fault() local
125 struct hmm_range *range = hmm_vma_walk->range; in hmm_range_need_fault() local
134 if (!((range->default_flags | range->pfn_flags_mask) & in hmm_range_need_fault()
151 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_walk_hole() local
192 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_handle_pmd() local
236 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_handle_pte() local
328 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_walk_pmd() local
416 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_walk_pud() local
481 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_walk_hugetlb_entry() local
518 struct hmm_range *range = hmm_vma_walk->range; in hmm_vma_walk_test() local
[all …]
A Dmmu_notifier.c104 range->end - 1); in mn_itree_inv_start_range()
123 range->start, range->end - 1); in mn_itree_inv_next()
264 struct mmu_notifier_range range = { in mn_itree_release() local
477 struct mmu_notifier_range *range) in mn_hlist_invalidate_range_start() argument
528 range); in mn_hlist_invalidate_range_start()
539 range->mm->notifier_subscriptions; in __mmu_notifier_invalidate_range_start()
577 range->mm, in mn_hlist_invalidate_end()
578 range->start, in mn_hlist_invalidate_end()
579 range->end); in mn_hlist_invalidate_end()
584 range); in mn_hlist_invalidate_end()
[all …]
/linux/drivers/dax/
A Dkmem.c25 struct range *range = &dax_range->range; in dax_kmem_range() local
32 r->end = range->end; in dax_kmem_range()
66 struct range range; in dev_dax_kmem_probe() local
71 i, range.start, range.end); in dev_dax_kmem_probe()
98 struct range range; in dev_dax_kmem_probe() local
105 res = request_mem_region(range.start, range_len(&range), data->res_name); in dev_dax_kmem_probe()
108 i, range.start, range.end); in dev_dax_kmem_probe()
137 i, range.start, range.end); in dev_dax_kmem_probe()
175 struct range range; in dev_dax_kmem_remove() local
182 rc = remove_memory(range.start, range_len(&range)); in dev_dax_kmem_remove()
[all …]
/linux/arch/mips/loongson64/
A Dinit.c141 range = kzalloc(sizeof(*range), GFP_ATOMIC); in add_legacy_isa_io()
142 if (!range) in add_legacy_isa_io()
152 kfree(range); in add_legacy_isa_io()
159 kfree(range); in add_legacy_isa_io()
190 range.cpu_addr, in reserve_pio_range()
191 range.cpu_addr + range.size - 1, in reserve_pio_range()
192 range.bus_addr); in reserve_pio_range()
193 if (add_legacy_isa_io(&np->fwnode, range.cpu_addr, range.size)) in reserve_pio_range()
198 range.cpu_addr, in reserve_pio_range()
199 range.cpu_addr + range.size - 1, in reserve_pio_range()
[all …]
/linux/include/linux/
A Drange.h6 struct range { struct
11 static inline u64 range_len(const struct range *range) in range_len() argument
13 return range->end - range->start + 1; in range_len()
16 int add_range(struct range *range, int az, int nr_range,
20 int add_range_with_merge(struct range *range, int az, int nr_range,
23 void subtract_range(struct range *range, int az, u64 start, u64 end);
25 int clean_sort_range(struct range *range, int az);
27 void sort_range(struct range *range, int nr_range);
A Dmmu_notifier.h484 if (mm_has_notifiers(range->mm)) in mmu_notifier_invalidate_range_end()
491 if (mm_has_notifiers(range->mm)) in mmu_notifier_invalidate_range_only_end()
522 range->vma = vma; in mmu_notifier_range_init()
523 range->event = event; in mmu_notifier_range_init()
524 range->mm = mm; in mmu_notifier_range_init()
525 range->start = start; in mmu_notifier_range_init()
526 range->end = end; in mmu_notifier_range_init()
527 range->flags = flags; in mmu_notifier_range_init()
537 range->owner = owner; in mmu_notifier_range_init_owner()
658 range->start = start; in _mmu_notifier_range_init()
[all …]
/linux/drivers/of/
A Daddress.c238 range->size); in of_pci_range_to_resource()
717 if (!range) in of_pci_range_parser_one()
720 if (!parser->range || parser->range + np > parser->end) in of_pci_range_parser_one()
723 range->flags = parser->bus->get_flags(parser->range); in of_pci_range_parser_one()
758 if (bus_addr != range->bus_addr + range->size || in of_pci_range_parser_one()
759 cpu_addr != range->cpu_addr + range->size) in of_pci_range_parser_one()
766 return range; in of_pci_range_parser_one()
982 range.bus_addr, range.cpu_addr, range.size); in of_dma_get_range()
991 r->offset = range.cpu_addr - range.bus_addr; in of_dma_get_range()
1026 if (range.cpu_addr + range.size > cpu_end) in of_dma_get_max_cpu_address()
[all …]
/linux/drivers/pci/hotplug/
A Dibmphp_res.c521 range = range->next; in fix_me()
938 range = range->next; in find_range()
1203 len_tmp = range->end - range->start; in ibmphp_check_resource()
1238 range = range->next; in ibmphp_check_resource()
1269 len_tmp = range->end - range->start; in ibmphp_check_resource()
1304 range = range->next; in ibmphp_check_resource()
1777 debug_pci("[%x - %x]\n", range->start, range->end); in ibmphp_print_test()
1778 range = range->next; in ibmphp_print_test()
1787 debug_pci("[%x - %x]\n", range->start, range->end); in ibmphp_print_test()
1788 range = range->next; in ibmphp_print_test()
[all …]
/linux/net/netfilter/
A Dnf_nat_core.c259 &range->min_proto, &range->max_proto); in in_range()
294 if (in_range(result, range)) in find_appropriate_src()
330 if (nf_inet_addr_cmp(&range->min_addr, &range->max_addr)) { in find_best_ips_proto()
331 *var_ipp = range->min_addr; in find_best_ips_proto()
552 &range->min_proto, in get_unique_tuple()
554 (range->min_proto.all == range->max_proto.all || in get_unique_tuple()
863 range->max_proto.all = range->min_proto.all; in nf_nat_l4proto_nlattr_to_range()
907 range->max_addr.ip = range->min_addr.ip; in nf_nat_ipv4_nlattr_to_range()
925 range->max_addr = range->min_addr; in nf_nat_ipv6_nlattr_to_range()
937 memset(range, 0, sizeof(*range)); in nfnetlink_parse_nat()
[all …]
A Dxt_nat.c55 struct nf_nat_range2 range; in xt_snat_target_v0() local
64 xt_nat_convert_range(&range, &mr->range[0]); in xt_snat_target_v0()
72 struct nf_nat_range2 range; in xt_dnat_target_v0() local
80 xt_nat_convert_range(&range, &mr->range[0]); in xt_dnat_target_v0()
88 struct nf_nat_range2 range; in xt_snat_target_v1() local
97 memcpy(&range, range_v1, sizeof(*range_v1)); in xt_snat_target_v1()
98 memset(&range.base_proto, 0, sizeof(range.base_proto)); in xt_snat_target_v1()
107 struct nf_nat_range2 range; in xt_dnat_target_v1() local
115 memcpy(&range, range_v1, sizeof(*range_v1)); in xt_dnat_target_v1()
116 memset(&range.base_proto, 0, sizeof(range.base_proto)); in xt_dnat_target_v1()
[all …]
A Dxt_NETMAP.c21 const struct nf_nat_range2 *range = par->targinfo; in netmap_tg6() local
30 netmask.ip6[i] = ~(range->min_addr.ip6[i] ^ in netmap_tg6()
31 range->max_addr.ip6[i]); in netmap_tg6()
41 new_addr.ip6[i] |= range->min_addr.ip6[i] & in netmap_tg6()
48 newrange.min_proto = range->min_proto; in netmap_tg6()
49 newrange.max_proto = range->max_proto; in netmap_tg6()
58 if (!(range->flags & NF_NAT_RANGE_MAP_IPS)) in netmap_tg6_checkentry()
83 netmask = ~(mr->range[0].min_ip ^ mr->range[0].max_ip); in netmap_tg4()
90 new_ip |= mr->range[0].min_ip & netmask; in netmap_tg4()
97 newrange.min_proto = mr->range[0].min; in netmap_tg4()
[all …]
A Dnft_nat.c39 range->min_addr.ip = (__force __be32) in nft_nat_setup_addr()
41 range->max_addr.ip = (__force __be32) in nft_nat_setup_addr()
46 sizeof(range->min_addr.ip6)); in nft_nat_setup_addr()
48 sizeof(range->max_addr.ip6)); in nft_nat_setup_addr()
57 range->min_proto.all = (__force __be16) in nft_nat_setup_proto()
94 netmask = ~(range->min_addr.ip6[i] ^ range->max_addr.ip6[i]); in nft_nat_setup_netmap()
99 range->min_addr = new_addr; in nft_nat_setup_netmap()
100 range->max_addr = new_addr; in nft_nat_setup_netmap()
110 struct nf_nat_range2 range; in nft_nat_eval() local
112 memset(&range, 0, sizeof(range)); in nft_nat_eval()
[all …]
/linux/drivers/regulator/
A Dqcom_spmi-regulator.c641 range = &vreg->set_points->range[range_id]; in spmi_regulator_select_voltage()
673 range = vreg->set_points->range; in spmi_sw_selector_to_hw()
676 for (; range < end; range++) { in spmi_sw_selector_to_hw()
704 if (r == range && range->n_voltages) { in spmi_hw_selector_to_sw()
735 range = vreg->set_points->range; in spmi_regulator_find_range()
740 for (; range < end; range++) in spmi_regulator_find_range()
761 if (uV < range->min_uV || uV > range->max_uV) { in spmi_regulator_select_voltage_same_range()
771 uV = uV * range->step_uV + range->min_uV; in spmi_regulator_select_voltage_same_range()
886 range = vreg->set_points->range; in spmi_regulator_ftsmps426_get_voltage()
1545 for (; range < points->range + points->count; range++) { in spmi_calculate_num_voltages()
[all …]
/linux/drivers/mfd/
A Dab8500-debugfs.c158 .range = NULL,
300 .range = NULL,
313 .range = NULL,
393 .range = NULL,
461 .range = NULL,
465 .range = NULL,
481 .range = NULL,
602 .range = NULL,
606 .range = NULL,
619 .range = NULL,
[all …]
/linux/arch/x86/kernel/cpu/mtrr/
A Dcleanup.c53 static struct range __initdata range[RANGE_NUM]; variable
65 x86_get_mtrr_mem_range(struct range *range, int nr_range, in x86_get_mtrr_mem_range() argument
86 range[i].start, range[i].end); in x86_get_mtrr_mem_range()
121 range[i].start, range[i].end); in x86_get_mtrr_mem_range()
131 range[i].start, range[i].end); in x86_get_mtrr_mem_range()
145 sum += range[i].end - range[i].start; in sum_ranges()
473 x86_setup_var_mtrrs(struct range *range, int nr_range, in x86_setup_var_mtrrs() argument
491 range[i].end - range[i].start); in x86_setup_var_mtrrs()
717 memset(range, 0, sizeof(range)); in mtrr_cleanup()
944 memset(range, 0, sizeof(range)); in mtrr_trim_uncached_memory()
[all …]
/linux/tools/arch/x86/kcpuid/
A Dkcpuid.c190 if (range->is_ext) in raw_dump_range()
208 struct cpuid_range *range; in setup_cpuid_range() local
222 if (!range) in setup_cpuid_range()
226 range->is_ext = true; in setup_cpuid_range()
228 range->is_ext = false; in setup_cpuid_range()
231 if (!range->funcs) in setup_cpuid_range()
234 range->nr = idx_func; in setup_cpuid_range()
276 return range; in setup_cpuid_range()
291 struct cpuid_range *range; in parse_line() local
334 range = leafs_ext; in parse_line()
[all …]
/linux/drivers/pinctrl/
A Dcore.c300 gpio < range->base + range->npins) { in pinctrl_match_gpio_range()
340 if (range->base + range->npins - 1 < chip->base || in pinctrl_ready_for_gpio_range()
382 if (range) { in pinctrl_get_device_gpio_range()
477 pin < range->pin_base + range->npins) in pinctrl_find_gpio_range_from_pin_nolock()
1654 (pin < (range->pin_base + range->npins))) { in pinctrl_pins_show()
1655 gpio_num = range->base + (pin - range->pin_base); in pinctrl_pins_show()
1742 range->id, range->name, in pinctrl_gpioranges_show()
1743 range->base, (range->base + range->npins - 1)); in pinctrl_gpioranges_show()
1750 range->id, range->name, in pinctrl_gpioranges_show()
1751 range->base, (range->base + range->npins - 1), in pinctrl_gpioranges_show()
[all …]

Completed in 104 milliseconds

12345678910>>...107