Home
last modified time | relevance | path

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

12345678910>>...185

/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 …]
/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 …]
/linux/arch/s390/include/asm/
H A Dphysmem_info.h90 * for_each_physmem_usable_range - early online memory range iterator
92 * @p_start: ptr to unsigned long for start address of the range
93 * @p_end: ptr to unsigned long for end address of the range
138 #define for_each_physmem_reserved_type_range(t, range, p_start, p_end) \ argument
139 for (range = &physmem_info.reserved[t], *p_start = range->start, *p_end = range->end; \
140 range && range->end; range = range->chain ? __va(range->chain) : NULL, \
141 *p_start = range ? range->start : 0, *p_end = range ? range->end : 0)
144 struct reserved_range *range) in __physmem_reserved_next() argument
146 if (!range) { in __physmem_reserved_next()
147 range = &physmem_info.reserved[*t]; in __physmem_reserved_next()
[all …]
/linux/drivers/android/binder/range_alloc/
H A Darray.rs13 use crate::range_alloc::{DescriptorState, FreedRange, Range};
25 pub(super) ranges: KVec<Range<T>>,
31 /// Which index in `ranges` should we insert the new range at?
33 /// Inserting the new range at this index keeps `ranges` sorted.
35 /// Which offset should we insert the new range at?
65 for range in &self.ranges { in debug_print()
70 range.offset, in debug_print()
71 range.size, in debug_print()
72 range.state.pid(), in debug_print()
73 range.state.is_oneway(), in debug_print()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_svm.h30 /** struct xe_svm_range - SVM range */
34 /** @pages: Page/DMA mapping state for this range (single drm_device). */
37 * @garbage_collector_link: Link into VM's garbage collect SVM range
42 * @tile_present: Tile mask of binding is present for this range.
48 * range. Protected by GPU SVM notifier lock.
72 * xe_svm_range_pages_valid() - SVM range pages valid
73 * @range: SVM range
75 * Return: True if SVM range pages are valid, False otherwise
77 static inline bool xe_svm_range_pages_valid(struct xe_svm_range *range) in xe_svm_range_pages_valid() argument
79 return drm_gpusvm_pages_valid(range->base.gpusvm, &range->pages); in xe_svm_range_pages_valid()
[all …]
H A Dxe_svm.c50 * That includes the range->pages.dpagemap pointer.
60 static bool xe_svm_range_in_vram(struct xe_svm_range *range) in xe_svm_range_in_vram() argument
63 * Advisory only check whether the range is currently backed by VRAM in xe_svm_range_in_vram()
69 .__flags = READ_ONCE(range->pages.flags.__flags), in xe_svm_range_in_vram()
75 static bool xe_svm_range_has_vram_binding(struct xe_svm_range *range) in xe_svm_range_has_vram_binding() argument
78 return xe_svm_range_in_vram(range) && range->tile_present; in xe_svm_range_has_vram_binding()
103 void xe_svm_range_debug(struct xe_svm_range *range, const char *operation) in xe_svm_range_debug() argument
105 range_debug(range, operation); in xe_svm_range_debug()
111 struct xe_svm_range *range; in xe_svm_range_alloc() local
113 range = kzalloc_obj(*range); in xe_svm_range_alloc()
[all …]
/linux/tools/testing/selftests/net/
H A Dip_local_port_range.c28 static void unpack_port_range(__u32 range, __u16 *lo, __u16 *hi) in unpack_port_range() argument
30 *lo = range & 0xffff; in unpack_port_range()
31 *hi = range >> 16; in unpack_port_range()
104 static int get_ip_local_port_range(int fd, __u32 *range) in get_ip_local_port_range() argument
115 *range = val; in get_ip_local_port_range()
199 /* Empty range: low port > high port */ in TEST_F()
221 { 30000, 39999 }, /* socket range below netns range */ in TEST_F()
222 { 50000, 59999 }, /* socket range above netns range */ in TEST_F()
228 * that the range wasn't clamped to a single port from in TEST_F()
229 * the netns range. That is [40000, 40000] or [49999, in TEST_F()
[all …]
/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()
17 static inline bool range_contains(const struct range *r1, in range_contains()
18 const struct range *r2) in range_contains()
24 static inline bool range_overlaps(const struct range *r1, in range_overlaps()
25 const struct range *r2) in range_overlaps()
30 int add_range(struct range *range, int az, int nr_range,
34 int add_range_with_merge(struct range *range, int az, int nr_range,
37 void subtract_range(struct range *range, int az, u64 start, u64 end);
[all …]
/linux/block/
H A Dbadblocks.c23 * When the caller of badblocks_set() wants to set a range of bad blocks, the
24 * setting range can be acked or unacked. And the setting range may merge,
25 * overwrite, skip the overlapped already set range, depends on who they are
27 * more complicated when the setting range covers multiple already set bad block
28 * ranges, with restrictions of maximum length of each bad range and the bad
32 * for setting a large range of bad blocks, we can handle it by dividing the
33 * large range into smaller ones when encounter overlap, max range length or
34 * bad table full conditions. Every time only a smaller piece of the bad range
39 * When setting a range of bad blocks to the bad table, the simplified situations
41 * prefix E, and the setting bad blocks range is naming with prefix S)
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_hmm.c57 * @mni: the range (mm) is about to update
58 * @range: details on the invalidation
65 const struct mmu_notifier_range *range, in amdgpu_hmm_invalidate_gfx() argument
72 if (!mmu_notifier_range_blockable(range)) in amdgpu_hmm_invalidate_gfx()
96 * @mni: the range (mm) is about to update
97 * @range: details on the invalidation
100 * We temporarily evict the BO attached to this range. This necessitates
104 const struct mmu_notifier_range *range, in amdgpu_hmm_invalidate_hsa() argument
109 if (!mmu_notifier_range_blockable(range)) in amdgpu_hmm_invalidate_hsa()
171 struct amdgpu_hmm_range *range) in amdgpu_hmm_range_get_pages() argument
[all …]
/linux/mm/
H A Dmemremap.c41 static void pgmap_array_delete(struct range *range) in pgmap_array_delete() argument
43 xa_store_range(&pgmap_array, PHYS_PFN(range->start), PHYS_PFN(range->end), in pgmap_array_delete()
50 struct range *range = &pgmap->ranges[range_id]; in pfn_first() local
51 unsigned long pfn = PHYS_PFN(range->start); in pfn_first()
63 struct range *range = &pgmap->ranges[i]; in pgmap_pfn_valid() local
65 if (pfn >= PHYS_PFN(range->start) && in pgmap_pfn_valid()
66 pfn <= PHYS_PFN(range->end)) in pgmap_pfn_valid()
75 const struct range *range = &pgmap->ranges[range_id]; in pfn_end() local
77 return (range->start + range_len(range)) >> PAGE_SHIFT; in pfn_end()
88 struct range *range = &pgmap->ranges[range_id]; in pageunmap_range() local
[all …]
H A Dhmm.c35 struct hmm_range *range; member
70 struct hmm_range *range, unsigned long cpu_flags) in hmm_pfns_fill() argument
72 unsigned long i = (addr - range->start) >> PAGE_SHIFT; in hmm_pfns_fill()
75 range->hmm_pfns[i] &= HMM_PFN_INOUT_FLAGS; in hmm_pfns_fill()
76 range->hmm_pfns[i] |= cpu_flags; in hmm_pfns_fill()
82 * hmm_record_fault() - record a range that needs to be faulted in
84 * Called by the walk callbacks when they discover that part of the range
107 struct hmm_range *range = hmm_vma_walk->range; in hmm_pte_need_fault() local
111 * consider the default flags requested for the range. The API can in hmm_pte_need_fault()
115 * fault a range with specific flags. For the latter one it is a in hmm_pte_need_fault()
[all …]
H A Dmadvise.c75 * The range over which the behaviour is currently being applied. If
78 struct madvise_behavior_range range; member
156 struct madvise_behavior_range *range = &madv_behavior->range; in madvise_update_vma() local
159 VMA_ITERATOR(vmi, madv_behavior->mm, range->start); in madvise_update_vma()
168 range->start, range->end, anon_name); in madvise_update_vma()
171 range->start, range->end, &new_vma_flags); in madvise_update_vma()
295 unsigned long start = madv_behavior->range.start; in madvise_willneed()
296 unsigned long end = madv_behavior->range.end; in madvise_willneed()
491 * fully mapped within the range we are operating on. Otherwise in madvise_cold_or_pageout_pte_range()
494 * next pte in the range. in madvise_cold_or_pageout_pte_range()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dreg_bounds.c215 * GENERIC RANGE STRUCT AND OPERATIONS
218 struct range { struct
222 static void snprintf_range(enum num_t t, struct strbuf *sb, struct range x) in snprintf_range() argument
234 static void print_range(enum num_t t, struct range x, const char *sfx) in print_range()
242 static const struct range unkn[] = {
249 static struct range unkn_subreg(enum num_t t) in unkn_subreg()
260 static struct range range(enum num_t t, u64 a, u64 b) in range() function
263 case U64: return (struct range){ (u64)a, (u64)b }; in range()
264 case U32: return (struct range){ (u3 in range()
[all...]
/linux/drivers/of/
H A Daddress.c33 u64 (*map)(__be32 *addr, const __be32 *range,
53 static u64 of_bus_default_map(__be32 *addr, const __be32 *range, in of_bus_default_map() argument
58 cp = of_read_number(range + fna, na - fna); in of_bus_default_map()
59 s = of_read_number(range + na + pna, ns); in of_bus_default_map()
91 static u64 of_bus_default_flags_map(__be32 *addr, const __be32 *range, int na, in of_bus_default_flags_map() argument
95 if (*addr != *range) in of_bus_default_flags_map()
98 return of_bus_default_map(addr, range, na, ns, pna, fna); in of_bus_default_flags_map()
171 static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns, in of_bus_pci_map() argument
177 rf = of_bus_pci_get_flags(range); in of_bus_pci_map()
183 return of_bus_default_map(addr, range, na, ns, pna, fna); in of_bus_pci_map()
[all …]
/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 …]
/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 …]
/linux/security/selinux/ss/
H A Dmls.c44 u32 index_sens = context->range.level[l].sens; in mls_compute_context_len()
50 e = &context->range.level[l].cat; in mls_compute_context_len()
70 if (mls_level_eq(&context->range.level[0], in mls_compute_context_len()
71 &context->range.level[1])) in mls_compute_context_len()
105 context->range.level[l].sens - 1)); in mls_sid_to_context()
111 e = &context->range.level[l].cat; in mls_sid_to_context()
148 if (mls_level_eq(&context->range.level[0], in mls_sid_to_context()
149 &context->range.level[1])) in mls_sid_to_context()
204 if (!mls_range_isvalid(p, &c->range)) in mls_context_isvalid()
211 * User must be authorized for the MLS range. in mls_context_isvalid()
[all …]
/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 …]
/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 …]
/linux/net/netfilter/
H A Dnf_nat_core.c382 const struct nf_nat_range2 *range) in nf_nat_inet_in_range() argument
385 return ntohl(t->src.u3.ip) >= ntohl(range->min_addr.ip) && in nf_nat_inet_in_range()
386 ntohl(t->src.u3.ip) <= ntohl(range->max_addr.ip); in nf_nat_inet_in_range()
388 return ipv6_addr_cmp(&t->src.u3.in6, &range->min_addr.in6) >= 0 && in nf_nat_inet_in_range()
389 ipv6_addr_cmp(&t->src.u3.in6, &range->max_addr.in6) <= 0; in nf_nat_inet_in_range()
422 * that meet the constraints of range.
425 const struct nf_nat_range2 *range) in nf_in_range() argument
428 * range specified, otherwise let this drag us onto a new src IP. in nf_in_range()
430 if (range->flags & NF_NAT_RANGE_MAP_IPS && in nf_in_range()
431 !nf_nat_inet_in_range(tuple, range)) in nf_in_range()
459 find_appropriate_src(struct net * net,const struct nf_conntrack_zone * zone,const struct nf_conntrack_tuple * tuple,struct nf_conntrack_tuple * result,const struct nf_nat_range2 * range) find_appropriate_src() argument
489 find_best_ips_proto(const struct nf_conntrack_zone * zone,struct nf_conntrack_tuple * tuple,const struct nf_nat_range2 * range,const struct nf_conn * ct,enum nf_nat_manip_type maniptype) find_best_ips_proto() argument
560 nf_nat_l4proto_unique_tuple(struct nf_conntrack_tuple * tuple,const struct nf_nat_range2 * range,enum nf_nat_manip_type maniptype,const struct nf_conn * ct) nf_nat_l4proto_unique_tuple() argument
685 get_unique_tuple(struct nf_conntrack_tuple * tuple,const struct nf_conntrack_tuple * orig_tuple,const struct nf_nat_range2 * range,struct nf_conn * ct,enum nf_nat_manip_type maniptype) get_unique_tuple() argument
760 nf_nat_setup_info(struct nf_conn * ct,const struct nf_nat_range2 * range,enum nf_nat_manip_type maniptype) nf_nat_setup_info() argument
838 struct nf_nat_range2 range = { __nf_nat_alloc_null_binding() local
1024 nf_nat_l4proto_nlattr_to_range(struct nlattr * tb[],struct nf_nat_range2 * range) nf_nat_l4proto_nlattr_to_range() argument
1040 nfnetlink_parse_nat_proto(struct nlattr * attr,const struct nf_conn * ct,struct nf_nat_range2 * range) nfnetlink_parse_nat_proto() argument
1062 nf_nat_ipv4_nlattr_to_range(struct nlattr * tb[],struct nf_nat_range2 * range) nf_nat_ipv4_nlattr_to_range() argument
1076 nf_nat_ipv6_nlattr_to_range(struct nlattr * tb[],struct nf_nat_range2 * range) nf_nat_ipv6_nlattr_to_range() argument
1095 nfnetlink_parse_nat(const struct nlattr * nat,const struct nf_conn * ct,struct nf_nat_range2 * range) nfnetlink_parse_nat() argument
1134 struct nf_nat_range2 range; nfnetlink_parse_nat_setup() local
[all...]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_port_range.c13 struct mlxsw_sp_port_range range; member
36 mlxsw_reg_pprr_src_set(pprr_pl, prr->range.source); in mlxsw_sp_port_range_reg_configure()
37 mlxsw_reg_pprr_dst_set(pprr_pl, !prr->range.source); in mlxsw_sp_port_range_reg_configure()
40 mlxsw_reg_pprr_port_range_min_set(pprr_pl, prr->range.min); in mlxsw_sp_port_range_reg_configure()
41 mlxsw_reg_pprr_port_range_max_set(pprr_pl, prr->range.max); in mlxsw_sp_port_range_reg_configure()
48 const struct mlxsw_sp_port_range *range, in mlxsw_sp_port_range_reg_create() argument
59 prr->range = *range; in mlxsw_sp_port_range_reg_create()
66 NL_SET_ERR_MSG_MOD(extack, "Exceeded number of port range registers"); in mlxsw_sp_port_range_reg_create()
72 NL_SET_ERR_MSG_MOD(extack, "Failed to configure port range register"); in mlxsw_sp_port_range_reg_create()
99 const struct mlxsw_sp_port_range *range) in mlxsw_sp_port_range_reg_find() argument
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A Dcolorspaces-details.rst18 range. The chromaticities of the primary colors and the white reference
78 Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range
83 The default quantization is limited range, but full range is possible
95 quantization is limited range. The chromaticities of the primary colors
122 Transfer function. Normally L is in the range [0…1], but for the
123 extended gamut xvYCC encoding values outside that range are allowed.
154 Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range
157 The default quantization is limited range, but full range is possible
169 that are outside the range [0…1]. The resulting Y', Cb and Cr values are
170 scaled and offset according to the limited range formula:
[all …]
/linux/include/uapi/linux/
H A Dfalloc.h5 #define FALLOC_FL_ALLOCATE_RANGE 0x00 /* allocate range */
7 #define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */
11 * FALLOC_FL_COLLAPSE_RANGE is used to remove a range of a file
13 * the range being removed is appended to the start offset of the range
15 * resulting in a file layout that looks like the range that was
16 * removed never existed. As such collapsing a range of a file changes
17 * the size of the file, reducing it by the same length of the range
26 * Attempting to collapse a range that crosses the end of the file is
28 * to collapse a range that crosses EOF.
33 * FALLOC_FL_ZERO_RANGE is used to convert a range of file to zeros preferably
[all …]
/linux/drivers/gpu/drm/sprd/
H A Dmegacores_pll.c221 u32 range[2], constant; in dphy_timing_config() local
236 range[L] = 50 * scale; in dphy_timing_config()
237 range[H] = INFINITY; in dphy_timing_config()
238 val[CLK] = DIV_ROUND_UP(range[L] * (factor << 1), t_byteck) - 2; in dphy_timing_config()
243 range[L] = 38 * scale; in dphy_timing_config()
244 range[H] = 95 * scale; in dphy_timing_config()
245 tmp = AVERAGE(range[L], range[H]); in dphy_timing_config()
246 val[CLK] = DIV_ROUND_UP(AVERAGE(range[L], range[H]), t_half_byteck) - 1; in dphy_timing_config()
247 range[L] = 40 * scale + 4 * t_ui; in dphy_timing_config()
248 range[H] = 85 * scale + 6 * t_ui; in dphy_timing_config()
[all …]

12345678910>>...185