| /linux/kernel/ |
| H A D | range.c | 3 * 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 D | kms-properties.csv | 7 ,,“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/drivers/soc/ti/ |
| H A D | knav_qmss_acc.c | 20 #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 …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_gpusvm.c | 46 * space is chosen for the range size. Ranges are expected to be 53 * range allocation, notifier allocation, and invalidations. 74 * optionally migrate the range to device memory, and create GPU bindings. 92 * range RB tree and list, as well as the range's DMA mappings and sequence 94 * except for the recheck range's pages being valid 115 * being that a subset of the range still has CPU and GPU mappings. If the 116 * backing store for the range is in device memory, a subset of the backing 117 * store has references. One option would be to split the range and device 119 * complicated. Given that partial unmappings are rare and driver-defined range 122 * With no support for range splitting, upon partial unmapping of a range, the [all …]
|
| /linux/arch/s390/include/asm/ |
| H A D | physmem_info.h | 90 * 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/gpu/drm/xe/ |
| H A D | xe_svm.h | 30 /** struct xe_svm_range - SVM range */ 35 * @garbage_collector_link: Link into VM's garbage collect SVM range 40 * @tile_present: Tile mask of binding is present for this range. 46 * range. Protected by GPU SVM notifier lock. 70 * xe_svm_range_pages_valid() - SVM range pages valid 71 * @range: SVM range 73 * Return: True if SVM range pages are valid, False otherwise 75 static inline bool xe_svm_range_pages_valid(struct xe_svm_range *range) in xe_svm_range_pages_valid() argument 77 return drm_gpusvm_range_pages_valid(range->base.gpusvm, &range->base); in xe_svm_range_pages_valid() 96 void xe_svm_range_debug(struct xe_svm_range *range, const char *operation); [all …]
|
| H A D | xe_svm.c | 50 * 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->base.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 …]
|
| H A D | xe_range_fence.c | 44 * xe_range_fence_insert() - range fence insert 45 * @tree: range fence tree to insert intoi 46 * @rfence: range fence 47 * @ops: range fence ops 48 * @start: start address of range fence 49 * @last: last address of range fence 50 * @fence: dma fence which signals range fence can be removed + freed 107 * xe_range_fence_tree_init() - Init range fence tree 108 * @tree: range fence tree 116 * xe_range_fence_tree_fini() - Fini range fence tree [all …]
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | array.rs | 13 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/tools/testing/selftests/net/ |
| H A D | ip_local_port_range.c | 28 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 D | range.h | 6 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 …]
|
| H A D | mmu_notifier.h | 19 * @MMU_NOTIFY_UNMAP: either munmap() that unmap the range or a mremap() that 20 * move the range 25 * @MMU_NOTIFY_PROTECTION_VMA: update is due to protection change for the range 26 * ie using the vma access permission (vm_page_prot) to update the whole range 31 * pages in the range so to mirror those changes the user must inspect the CPU 40 * that the mm refcount is zero and the range is no longer accessible. 130 * the pages in the range, it has to implement the 136 * establishment of sptes is forbidden in the range passed to 141 * range are still mapped and have at least a refcount of one. 144 * range have been unmapped and the pages have been freed by [all …]
|
| /linux/block/ |
| H A D | badblocks.c | 23 * 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 D | amdgpu_hmm.c | 59 * @mni: the range (mm) is about to update 60 * @range: details on the invalidation 67 const struct mmu_notifier_range *range, in amdgpu_hmm_invalidate_gfx() argument 74 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/tools/testing/selftests/bpf/prog_tests/ |
| H A D | reg_bounds.c | 215 * 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){ (u32)a, (u32)b }; in range() 265 case S64: return (struct range){ (s64)a, (s64)b }; in range() [all …]
|
| /linux/drivers/iommu/generic_pt/ |
| H A D | iommu_pt.h | 29 iommu_from_common(pts->range->common)->iommu_device, in flush_writes_range() 38 iommu_from_common(pts->range->common)->iommu_device, in flush_writes_item() 80 static int make_range_ul(struct pt_common *common, struct pt_range *range, in make_range_ul() argument 91 *range = pt_make_range(common, iova, last); in make_range_ul() 92 if (sizeof(iova) > sizeof(range->va)) { in make_range_ul() 93 if (unlikely(range->va != iova || range->last_va != last)) in make_range_ul() 100 struct pt_range *range, u64 iova, in make_range_u64() argument 105 return make_range_ul(common, range, iova, len); in make_range_u64() 112 #define make_range_no_check(common, range, iova, len) \ argument 117 ret = make_range_u64(common, range, iova, len); \ [all …]
|
| /linux/drivers/of/ |
| H A D | address.c | 33 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/dax/ |
| H A D | kmem.c | 31 static int dax_kmem_range(struct dev_dax *dev_dax, int i, struct range *r) in dax_kmem_range() 34 struct range *range = &dax_range->range; in dax_kmem_range() local 36 /* memory-block align the hotplug range */ in dax_kmem_range() 37 r->start = ALIGN(range->start, memory_block_size_bytes()); in dax_kmem_range() 38 r->end = ALIGN_DOWN(range->end + 1, memory_block_size_bytes()) - 1; in dax_kmem_range() 40 r->start = range->start; in dax_kmem_range() 41 r->end = range->end; in dax_kmem_range() 98 struct range range; in dev_dax_kmem_probe() local 100 orig_len += range_len(&dev_dax->ranges[i].range); in dev_dax_kmem_probe() 101 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe() [all …]
|
| /linux/arch/powerpc/kexec/ |
| H A D | ranges.c | 40 sizeof(struct range)); in get_max_nr_ranges() 58 (mem_rngs->max_nr_ranges * sizeof(struct range))); in get_mem_rngs_size() 68 * __add_mem_range - add a memory range to memory ranges list. 69 * @mem_ranges: Range list to add the memory range to. 70 * @base: Base address of the range to add. 71 * @size: Size of the memory range to add. 89 pr_debug("Added memory range [%#016llx - %#016llx] at index %d\n", in __add_mem_range() 97 * @mem_rngs: Range list to merge. 99 * Assumes a sorted range list. 105 struct range *ranges; in __merge_memory_ranges() [all …]
|
| /linux/drivers/net/wireless/ti/wl12xx/ |
| H A D | conf.h | 19 * 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 D | conf.h | 117 * 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/mm/ |
| H A D | hmm.c | 34 struct hmm_range *range; member 51 struct hmm_range *range, unsigned long cpu_flags) in hmm_pfns_fill() argument 53 unsigned long i = (addr - range->start) >> PAGE_SHIFT; in hmm_pfns_fill() 56 range->hmm_pfns[i] &= HMM_PFN_INOUT_FLAGS; in hmm_pfns_fill() 57 range->hmm_pfns[i] |= cpu_flags; in hmm_pfns_fill() 63 * hmm_vma_fault() - fault in a range lacking valid pmd or pte(s) 64 * @addr: range virtual start address (inclusive) 65 * @end: range virtual end address (exclusive) 71 * or whenever there is no page directory covering the virtual address range. 100 struct hmm_range *range = hmm_vma_walk->range; in hmm_pte_need_fault() local [all …]
|
| H A D | madvise.c | 74 * The range over which the behaviour is currently being applied. If 77 struct madvise_behavior_range range; member 155 struct madvise_behavior_range *range = &madv_behavior->range; in madvise_update_vma() local 158 VMA_ITERATOR(vmi, madv_behavior->mm, range->start); in madvise_update_vma() 167 range->start, range->end, anon_name); in madvise_update_vma() 170 range->start, range->end, &new_vma_flags); in madvise_update_vma() 286 unsigned long start = madv_behavior->range.start; in madvise_willneed() 287 unsigned long end = madv_behavior->range.end; in madvise_willneed() 483 * fully mapped within the range we are operating on. Otherwise in madvise_cold_or_pageout_pte_range() 486 * next pte in the range. in madvise_cold_or_pageout_pte_range() [all …]
|
| /linux/drivers/gpu/ipu-v3/ |
| H A D | ipu-ic-csc.c | 29 * 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 D | ibmphp_res.c | 116 /* 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 …]
|