Home
last modified time | relevance | path

Searched full:range (Results 1 – 25 of 6014) sorted by relevance

12345678910>>...241

/openbmc/qemu/include/qemu/
H A Drange.h31 struct Range { struct
34 * A non-empty range has @lob <= @upb.
35 * An empty range has @lob == @upb + 1.
41 static inline void range_invariant(const Range *range) in range_invariant() argument
43 assert(range->lob <= range->upb || range->lob == range->upb + 1); in range_invariant()
46 /* Compound literal encoding the empty range */
47 #define range_empty ((Range){ .lob = 1, .upb = 0 })
49 /* Is @range empty? */
50 static inline bool range_is_empty(const Range *range) in range_is_empty() argument
52 range_invariant(range); in range_is_empty()
[all …]
/openbmc/linux/kernel/
H A Drange.c3 * Range add and subtract
10 #include <linux/range.h>
12 int add_range(struct range *range, int az, int nr_range, u64 start, u64 end) in add_range() argument
21 range[nr_range].start = start; in add_range()
22 range[nr_range].end = end; in add_range()
29 int add_range_with_merge(struct range *range, int az, int nr_range, in add_range_with_merge() argument
41 if (!range[i].end) in add_range_with_merge()
44 common_start = max(range[i].start, start); in add_range_with_merge()
45 common_end = min(range[i].end, end); in add_range_with_merge()
50 start = min(range[i].start, start); in add_range_with_merge()
[all …]
/openbmc/linux/Documentation/gpu/
H A Dkms-properties.csv7 ,,“left margin”,RANGE,"Min=0, Max=100",Connector,TBD
8 ,,“right margin”,RANGE,"Min=0, Max=100",Connector,TBD
9 ,,“top margin”,RANGE,"Min=0, Max=100",Connector,TBD
10 ,,“bottom margin”,RANGE,"Min=0, Max=100",Connector,TBD
11 ,,“brightness”,RANGE,"Min=0, Max=100",Connector,TBD
12 ,,“contrast”,RANGE,"Min=0, Max=100",Connector,TBD
13 ,,“flicker reduction”,RANGE,"Min=0, Max=100",Connector,TBD
14 ,,“overscan”,RANGE,"Min=0, Max=100",Connector,TBD
15 ,,“saturation”,RANGE,"Min=0, Max=100",Connector,TBD
16 ,,“hue”,RANGE,"Min=0, Max=100",Connector,TBD
[all …]
/openbmc/linux/drivers/soc/ti/
H A Dknav_qmss_acc.c20 #define knav_range_offset_to_inst(kdev, range, q) \ argument
21 (range->queue_base_inst + (q << kdev->inst_shift))
23 static void __knav_acc_notify(struct knav_range_info *range, in __knav_acc_notify() argument
26 struct knav_device *kdev = range->kdev; in __knav_acc_notify()
30 range_base = kdev->base_id + range->queue_base; in __knav_acc_notify()
32 if (range->flags & RANGE_MULTI_QUEUE) { in __knav_acc_notify()
33 for (queue = 0; queue < range->num_queues; queue++) { in __knav_acc_notify()
34 inst = knav_range_offset_to_inst(kdev, range, in __knav_acc_notify()
44 queue = acc->channel - range->acc_info.start_channel; in __knav_acc_notify()
45 inst = knav_range_offset_to_inst(kdev, range, queue); in __knav_acc_notify()
[all …]
/openbmc/qemu/hw/hyperv/
H A Dhv-balloon-page_range_tree.c41 PageRange *range = g_malloc(sizeof(*range)); in page_range_tree_insert_new() local
45 *key = range->start = start; in page_range_tree_insert_new()
46 range->count = count; in page_range_tree_insert_new()
48 return g_tree_insert_node(tree.t, key, range); in page_range_tree_insert_new()
58 PageRange *range; in hvb_page_range_tree_insert() local
73 range = g_tree_node_value(node); in hvb_page_range_tree_insert()
74 assert(range); in hvb_page_range_tree_insert()
75 intersection = page_range_intersection_size(range, start, count); in hvb_page_range_tree_insert()
76 joinable = page_range_joinable_right(range, start, count); in hvb_page_range_tree_insert()
83 * already has a higher key (the start of its range). in hvb_page_range_tree_insert()
[all …]
H A Dhv-balloon-page_range_tree.h20 /* return just the part of range before (start) */
21 static inline void page_range_part_before(const PageRange *range, in page_range_part_before() argument
24 uint64_t endr = range->start + range->count; in page_range_part_before()
27 out->start = range->start; in page_range_part_before()
35 /* return just the part of range after (start, count) */
36 static inline void page_range_part_after(const PageRange *range, in page_range_part_after() argument
40 uint64_t end = range->start + range->count; in page_range_part_after()
43 out->start = MAX(range->start, ends); in page_range_part_after()
51 static inline void page_range_intersect(const PageRange *range, in page_range_intersect() argument
55 uint64_t end1 = range->start + range->count; in page_range_intersect()
[all …]
/openbmc/linux/lib/
H A Dlogic_pio.c24 * logic_pio_register_range - register logical PIO range for a host
25 * @new_range: pointer to the IO range to be registered.
28 * If the range already exists, -EEXIST will be returned, which should be
31 * Register a new IO range node in the IO range list.
35 struct logic_pio_hwaddr *range; in logic_pio_register_range() local
50 list_for_each_entry(range, &io_range_list, list) { in logic_pio_register_range()
51 if (range->fwnode == new_range->fwnode) { in logic_pio_register_range()
52 /* range already there */ in logic_pio_register_range()
56 if (range->flags == LOGIC_PIO_CPU_MMIO && in logic_pio_register_range()
59 if (start >= range->hw_start + range->size || in logic_pio_register_range()
[all …]
H A Dlinear_ranges.c3 * helpers to map values in a linear range to range index
18 * linear_range_values_in_range - return the amount of values in a range
19 * @r: pointer to linear range where values are counted
21 * Compute the amount of values in range pointed by @r. Note, values can
22 * be all equal - range with selectors 0,...,2 with step 0 still contains
25 * Return: the amount of values in range pointed by @r
41 * be all equal - range with selectors 0,...,2 with step 0 still contains
65 * linear_range_get_max_value - return the largest value in a range
66 * @r: pointer to linear range where value is looked from
68 * Return: the largest value in the given range
[all …]
/openbmc/linux/arch/s390/include/asm/
H A Dphysmem_info.h89 * for_each_physmem_usable_range - early online memory range iterator
91 * @p_start: ptr to unsigned long for start address of the range
92 * @p_end: ptr to unsigned long for end address of the range
135 #define for_each_physmem_reserved_type_range(t, range, p_start, p_end) \ argument
136 for (range = &physmem_info.reserved[t], *p_start = range->start, *p_end = range->end; \
137 range && range->end; range = range->chain ? __va(range->chain) : NULL, \
138 *p_start = range ? range->start : 0, *p_end = range ? range->end : 0)
141 struct reserved_range *range) in __physmem_reserved_next() argument
143 if (!range) { in __physmem_reserved_next()
144 range = &physmem_info.reserved[*t]; in __physmem_reserved_next()
[all …]
/openbmc/linux/security/selinux/ss/
H A Dcontext.h25 * identity, a role, a type and a MLS range.
32 struct mls_range range; member
38 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()
46 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy()
50 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy()
51 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy()
53 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy()
59 * Sets both levels in the MLS range of 'dst' to the low level of 'src'.
65 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy_low()
[all …]
H A Dmls.c48 u32 index_sens = context->range.level[l].sens; in mls_compute_context_len()
54 e = &context->range.level[l].cat; in mls_compute_context_len()
73 if (mls_level_eq(&context->range.level[0], in mls_compute_context_len()
74 &context->range.level[1])) in mls_compute_context_len()
108 context->range.level[l].sens - 1)); in mls_sid_to_context()
114 e = &context->range.level[l].cat; in mls_sid_to_context()
150 if (mls_level_eq(&context->range.level[0], in mls_sid_to_context()
151 &context->range.level[1])) in mls_sid_to_context()
199 if (!mls_range_isvalid(p, &c->range)) in mls_context_isvalid()
206 * User must be authorized for the MLS range. in mls_context_isvalid()
[all …]
/openbmc/linux/include/linux/
H 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 static inline bool range_contains(struct range *r1, struct range *r2) in range_contains()
21 int add_range(struct range *range, int az, int nr_range,
25 int add_range_with_merge(struct range *range, int az, int nr_range,
28 void subtract_range(struct range *range, int az, u64 start, u64 end);
30 int clean_sort_range(struct range *range, int az);
32 void sort_range(struct range *range, int nr_range);
/openbmc/linux/tools/testing/selftests/net/
H A Dip_local_port_range.c24 static void unpack_port_range(__u32 range, __u16 *lo, __u16 *hi) in unpack_port_range() argument
26 *lo = range & 0xffff; in unpack_port_range()
27 *hi = range >> 16; in unpack_port_range()
100 static int get_ip_local_port_range(int fd, __u32 *range) in get_ip_local_port_range() argument
111 *range = val; in get_ip_local_port_range()
183 /* Empty range: low port > high port */ in TEST_F()
205 { 30000, 39999 }, /* socket range below netns range */ in TEST_F()
206 { 50000, 59999 }, /* socket range above netns range */ in TEST_F()
212 * that the range wasn't clamped to a single port from in TEST_F()
213 * the netns range. That is [40000, 40000] or [49999, in TEST_F()
[all …]
/openbmc/linux/mm/
H A Dmemremap.c65 static void pgmap_array_delete(struct range *range) in pgmap_array_delete() argument
67 xa_store_range(&pgmap_array, PHYS_PFN(range->start), PHYS_PFN(range->end), in pgmap_array_delete()
74 struct range *range = &pgmap->ranges[range_id]; in pfn_first() local
75 unsigned long pfn = PHYS_PFN(range->start); in pfn_first()
87 struct range *range = &pgmap->ranges[i]; in pgmap_pfn_valid() local
89 if (pfn >= PHYS_PFN(range->start) && in pgmap_pfn_valid()
90 pfn <= PHYS_PFN(range->end)) in pgmap_pfn_valid()
99 const struct range *range = &pgmap->ranges[range_id]; in pfn_end() local
101 return (range->start + range_len(range)) >> PAGE_SHIFT; in pfn_end()
112 struct range *range = &pgmap->ranges[range_id]; in pageunmap_range() local
[all …]
H A Dhmm.c32 struct hmm_range *range; member
43 struct hmm_range *range, unsigned long cpu_flags) in hmm_pfns_fill() argument
45 unsigned long i = (addr - range->start) >> PAGE_SHIFT; in hmm_pfns_fill()
48 range->hmm_pfns[i] = cpu_flags; in hmm_pfns_fill()
53 * hmm_vma_fault() - fault in a range lacking valid pmd or pte(s)
54 * @addr: range virtual start address (inclusive)
55 * @end: range virtual end address (exclusive)
61 * or whenever there is no page directory covering the virtual address range.
90 struct hmm_range *range = hmm_vma_walk->range; in hmm_pte_need_fault() local
94 * consider the default flags requested for the range. The API can in hmm_pte_need_fault()
[all …]
/openbmc/linux/drivers/dax/
H A Dkmem.c30 static int dax_kmem_range(struct dev_dax *dev_dax, int i, struct range *r) in dax_kmem_range()
33 struct range *range = &dax_range->range; in dax_kmem_range() local
35 /* memory-block align the hotplug range */ in dax_kmem_range()
36 r->start = ALIGN(range->start, memory_block_size_bytes()); in dax_kmem_range()
37 r->end = ALIGN_DOWN(range->end + 1, memory_block_size_bytes()) - 1; in dax_kmem_range()
39 r->start = range->start; in dax_kmem_range()
40 r->end = range->end; in dax_kmem_range()
75 struct range range; in dev_dax_kmem_probe() local
77 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe()
80 i, range.start, range.end); in dev_dax_kmem_probe()
[all …]
/openbmc/linux/arch/mips/loongson64/
H A Dinit.c153 struct logic_pio_hwaddr *range; in add_legacy_isa_io() local
156 range = kzalloc(sizeof(*range), GFP_ATOMIC); in add_legacy_isa_io()
157 if (!range) in add_legacy_isa_io()
160 range->fwnode = fwnode; in add_legacy_isa_io()
161 range->size = size = round_up(size, PAGE_SIZE); in add_legacy_isa_io()
162 range->hw_start = hw_start; in add_legacy_isa_io()
163 range->flags = LOGIC_PIO_CPU_MMIO; in add_legacy_isa_io()
165 ret = logic_pio_register_range(range); in add_legacy_isa_io()
167 kfree(range); in add_legacy_isa_io()
172 if (range->io_start != 0) { in add_legacy_isa_io()
[all …]
/openbmc/linux/drivers/net/wireless/ti/wl12xx/
H A Dconf.h19 * Range: s8
26 * Range: s8
41 * Range: 0 - 255 (ms)
50 * Range: 0 - 255 (ms)
59 * Range: 0 - 255 (ms)
68 * Range: 0 - 255 (ms)
77 * Range: 0 - 255 (ms)
86 * Range: 0 - 255 (ms)
112 * Range: 0 - 255 (%)
120 * Range: 0 - 255 (%)
[all …]
/openbmc/linux/drivers/of/
H A Daddress.c46 u64 (*map)(__be32 *addr, const __be32 *range,
66 static u64 of_bus_default_map(__be32 *addr, const __be32 *range, in of_bus_default_map() argument
71 cp = of_read_number(range, na); in of_bus_default_map()
72 s = of_read_number(range + na + pna, ns); in of_bus_default_map()
104 static u64 of_bus_default_flags_map(__be32 *addr, const __be32 *range, int na, in of_bus_default_flags_map() argument
110 if (*addr != *range) in of_bus_default_flags_map()
114 cp = of_read_number(range + 1, na - 1); in of_bus_default_flags_map()
115 s = of_read_number(range + na + pna, ns); in of_bus_default_flags_map()
195 static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns, in of_bus_pci_map() argument
202 rf = of_bus_pci_get_flags(range); in of_bus_pci_map()
241 of_pci_range_to_resource(struct of_pci_range * range,struct device_node * np,struct resource * res) of_pci_range_to_resource() argument
294 struct of_range range; of_range_to_resource() local
326 of_bus_isa_map(__be32 * addr,const __be32 * range,int na,int ns,int pna) of_bus_isa_map() argument
834 of_pci_range_parser_one(struct of_pci_range_parser * parser,struct of_pci_range * range) of_pci_range_parser_one() argument
941 struct of_range range; of_dma_get_range() local
1027 struct of_range range; of_dma_get_max_cpu_address() local
[all...]
/openbmc/u-boot/drivers/core/
H A Dregmap.c42 struct regmap_range *range; in regmap_init_mem_platdata() local
49 for (range = map->ranges; count > 0; reg += 2, range++, count--) { in regmap_init_mem_platdata()
50 range->start = *reg; in regmap_init_mem_platdata()
51 range->size = reg[1]; in regmap_init_mem_platdata()
60 * init_range() - Initialize a single range of a regmap
62 * @range: Pointer to a regmap_range structure that will be initialized
65 * @index: The index of the range to initialize
68 * (the 'addr' part, and the 'length' part), and initialize the range in
73 static int init_range(ofnode node, struct regmap_range *range, int addr_len, in init_range() argument
85 debug("%s: Could not read resource of range %d (ret = %d)\n", in init_range()
[all …]
/openbmc/linux/drivers/net/wireless/ti/wlcore/
H A Dconf.h117 * Range: 0 - 0xFFFFFFFF
132 * Range: 0 - 200000
139 * Range: 0 - 200000
147 * Range: 0 - 4096
155 * Range: ENABLE_ENERGY_D == 0x140A
164 * Range: u16
172 * Range: u16
179 * Range: 1 - 100
186 * Range: RX_QUEUE_TYPE_RX_LOW_PRIORITY, RX_QUEUE_TYPE_RX_HIGH_PRIORITY,
252 * Range: CONF_HW_BIT_RATE_* bit mask
[all …]
/openbmc/linux/mm/damon/
H A Dsysfs-common.c15 * unsigned long range directory
22 struct damon_sysfs_ul_range *range = kmalloc(sizeof(*range), in damon_sysfs_ul_range_alloc() local
25 if (!range) in damon_sysfs_ul_range_alloc()
27 range->kobj = (struct kobject){}; in damon_sysfs_ul_range_alloc()
28 range->min = min; in damon_sysfs_ul_range_alloc()
29 range->max = max; in damon_sysfs_ul_range_alloc()
31 return range; in damon_sysfs_ul_range_alloc()
37 struct damon_sysfs_ul_range *range = container_of(kobj, in min_show() local
40 return sysfs_emit(buf, "%lu\n", range->min); in min_show()
46 struct damon_sysfs_ul_range *range = container_of(kobj, in min_store() local
[all …]
/openbmc/linux/drivers/gpu/ipu-v3/
H A Dipu-ic-csc.c29 * RGB full-range to RGB limited-range
46 * RGB limited-range to RGB full-range
63 * YUV full-range to YUV limited-range
81 * YUV limited-range to YUV full-range
112 * BT.601 RGB full-range to YUV full-range
128 /* BT.601 RGB full-range to YUV limited-range */
140 /* BT.601 RGB limited-range to YUV full-range */
151 /* BT.601 RGB limited-range to YUV limited-range */
164 * BT.601 YUV full-range to RGB full-range
186 /* BT.601 YUV full-range to RGB limited-range */
[all …]
/openbmc/linux/arch/powerpc/kexec/
H A Dranges.c36 sizeof(struct range)); in get_max_nr_ranges()
54 (mem_rngs->max_nr_ranges * sizeof(struct range))); in get_mem_rngs_size()
64 * __add_mem_range - add a memory range to memory ranges list.
65 * @mem_ranges: Range list to add the memory range to.
66 * @base: Base address of the range to add.
67 * @size: Size of the memory range to add.
85 pr_debug("Added memory range [%#016llx - %#016llx] at index %d\n", in __add_mem_range()
93 * @mem_rngs: Range list to merge.
95 * Assumes a sorted range list.
101 struct range *ranges; in __merge_memory_ranges()
[all …]
/openbmc/linux/drivers/pci/hotplug/
H A Dibmphp_res.c116 /* need to insert our range */ in alloc_bus_range()
164 * 2. If cannot allocate out of PFMem range, allocate from Mem ranges. PFmemFromMem
294 * assign a -1 and then update once the range in ibmphp_rsrc_init()
336 * range actually appears... in ibmphp_rsrc_init()
361 * This function adds a range into a sorted list of ranges per bus for a particular
362 * range type, it then calls another routine to update the range numbers on the
365 * Input: type of the resource, range to add, current bus
366 * Output: 0 or -1, bus and range ptrs
368 static int add_bus_range(int type, struct range_node *range, struct bus_node *bus_cur) in add_bus_range() argument
392 if (range->start < range_cur->start) in add_bus_range()
[all …]

12345678910>>...241