/Linux-v5.10/kernel/ |
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-v5.10/Documentation/gpu/ |
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-v5.10/drivers/soc/ti/ |
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 …]
|
D | knav_qmss_queue.c | 112 static int knav_queue_setup_irq(struct knav_range_info *range, in knav_queue_setup_irq() argument 115 unsigned queue = inst->id - range->queue_base; in knav_queue_setup_irq() 118 if (range->flags & RANGE_HAS_IRQ) { in knav_queue_setup_irq() 119 irq = range->irqs[queue].irq; in knav_queue_setup_irq() 125 if (range->irqs[queue].cpu_mask) { in knav_queue_setup_irq() 126 ret = irq_set_affinity_hint(irq, range->irqs[queue].cpu_mask); in knav_queue_setup_irq() 128 dev_warn(range->kdev->dev, in knav_queue_setup_irq() 139 struct knav_range_info *range = inst->range; in knav_queue_free_irq() local 140 unsigned queue = inst->id - inst->range->queue_base; in knav_queue_free_irq() 143 if (range->flags & RANGE_HAS_IRQ) { in knav_queue_free_irq() [all …]
|
/Linux-v5.10/lib/ |
D | logic_pio.c | 27 * logic_pio_register_range - register logical PIO range for a host 28 * @new_range: pointer to the IO range to be registered. 32 * Register a new IO range node in the IO range list. 36 struct logic_pio_hwaddr *range; in logic_pio_register_range() local 51 list_for_each_entry(range, &io_range_list, list) { in logic_pio_register_range() 52 if (range->fwnode == new_range->fwnode) { in logic_pio_register_range() 53 /* 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() 60 end < range->hw_start) { in logic_pio_register_range() [all …]
|
D | linear_ranges.c | 3 * 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 …]
|
/Linux-v5.10/drivers/staging/android/ |
D | ashmem.c | 55 * struct ashmem_range - A range of unpinned/evictable pages 107 static inline unsigned long range_size(struct ashmem_range *range) in range_size() argument 109 return range->pgend - range->pgstart + 1; in range_size() 112 static inline bool range_on_lru(struct ashmem_range *range) in range_on_lru() argument 114 return range->purged == ASHMEM_NOT_PURGED; in range_on_lru() 117 static inline bool page_range_subsumes_range(struct ashmem_range *range, in page_range_subsumes_range() argument 120 return (range->pgstart >= start) && (range->pgend <= end); in page_range_subsumes_range() 123 static inline bool page_range_subsumed_by_range(struct ashmem_range *range, in page_range_subsumed_by_range() argument 126 return (range->pgstart <= start) && (range->pgend >= end); in page_range_subsumed_by_range() 129 static inline bool page_in_range(struct ashmem_range *range, size_t page) in page_in_range() argument [all …]
|
/Linux-v5.10/security/selinux/ss/ |
D | context.h | 25 * 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 …]
|
D | mls.c | 48 int 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() 200 if (!mls_range_isvalid(p, &c->range)) in mls_context_isvalid() 207 * User must be authorized for the MLS range. in mls_context_isvalid() [all …]
|
/Linux-v5.10/arch/mips/loongson64/ |
D | init.c | 77 struct logic_pio_hwaddr *range; in add_legacy_isa_io() local 80 range = kzalloc(sizeof(*range), GFP_ATOMIC); in add_legacy_isa_io() 81 if (!range) in add_legacy_isa_io() 84 range->fwnode = fwnode; in add_legacy_isa_io() 85 range->size = size; in add_legacy_isa_io() 86 range->hw_start = hw_start; in add_legacy_isa_io() 87 range->flags = LOGIC_PIO_CPU_MMIO; in add_legacy_isa_io() 89 ret = logic_pio_register_range(range); in add_legacy_isa_io() 91 kfree(range); in add_legacy_isa_io() 96 if (range->io_start != 0) { in add_legacy_isa_io() [all …]
|
/Linux-v5.10/mm/ |
D | hmm.c | 30 struct hmm_range *range; member 41 struct hmm_range *range, unsigned long cpu_flags) in hmm_pfns_fill() argument 43 unsigned long i = (addr - range->start) >> PAGE_SHIFT; in hmm_pfns_fill() 46 range->hmm_pfns[i] = cpu_flags; in hmm_pfns_fill() 51 * hmm_vma_fault() - fault in a range lacking valid pmd or pte(s) 52 * @addr: range virtual start address (inclusive) 53 * @end: range virtual end address (exclusive) 59 * or whenever there is no page directory covering the virtual address range. 88 struct hmm_range *range = hmm_vma_walk->range; in hmm_pte_need_fault() local 92 * consider the default flags requested for the range. The API can in hmm_pte_need_fault() [all …]
|
D | memremap.c | 66 static void pgmap_array_delete(struct range *range) in pgmap_array_delete() argument 68 xa_store_range(&pgmap_array, PHYS_PFN(range->start), PHYS_PFN(range->end), in pgmap_array_delete() 75 struct range *range = &pgmap->ranges[range_id]; in pfn_first() local 76 unsigned long pfn = PHYS_PFN(range->start); in pfn_first() 85 const struct range *range = &pgmap->ranges[range_id]; in pfn_end() local 87 return (range->start + range_len(range)) >> PAGE_SHIFT; in pfn_end() 126 struct range *range = &pgmap->ranges[range_id]; in pageunmap_range() local 137 remove_pfn_range_from_zone(page_zone(first_page), PHYS_PFN(range->start), in pageunmap_range() 138 PHYS_PFN(range_len(range))); in pageunmap_range() 140 __remove_pages(PHYS_PFN(range->start), in pageunmap_range() [all …]
|
/Linux-v5.10/include/linux/ |
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() 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);
|
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. 133 * the pages in the range, it has to implement the 139 * establishment of sptes is forbidden in the range passed to 144 * range are still mapped and have at least a refcount of one. 147 * range have been unmapped and the pages have been freed by [all …]
|
/Linux-v5.10/drivers/dax/ |
D | kmem.c | 22 static int dax_kmem_range(struct dev_dax *dev_dax, int i, struct range *r) in dax_kmem_range() 25 struct range *range = &dax_range->range; in dax_kmem_range() local 27 /* memory-block align the hotplug range */ in dax_kmem_range() 28 r->start = ALIGN(range->start, memory_block_size_bytes()); in dax_kmem_range() 29 r->end = ALIGN_DOWN(range->end + 1, memory_block_size_bytes()) - 1; in dax_kmem_range() 31 r->start = range->start; in dax_kmem_range() 32 r->end = range->end; in dax_kmem_range() 74 struct range range; in dev_dax_kmem_probe() local 76 rc = dax_kmem_range(dev_dax, i, &range); in dev_dax_kmem_probe() 79 i, range.start, range.end); in dev_dax_kmem_probe() [all …]
|
/Linux-v5.10/drivers/net/wireless/ti/wl12xx/ |
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-v5.10/drivers/net/wireless/ti/wlcore/ |
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-v5.10/net/netfilter/ |
D | nf_nat_core.c | 221 const struct nf_nat_range2 *range) in nf_nat_inet_in_range() argument 224 return ntohl(t->src.u3.ip) >= ntohl(range->min_addr.ip) && in nf_nat_inet_in_range() 225 ntohl(t->src.u3.ip) <= ntohl(range->max_addr.ip); in nf_nat_inet_in_range() 227 return ipv6_addr_cmp(&t->src.u3.in6, &range->min_addr.in6) >= 0 && in nf_nat_inet_in_range() 228 ipv6_addr_cmp(&t->src.u3.in6, &range->max_addr.in6) <= 0; in nf_nat_inet_in_range() 263 * that meet the constraints of range. 266 const struct nf_nat_range2 *range) in in_range() argument 269 * range specified, otherwise let this drag us onto a new src IP. in in_range() 271 if (range->flags & NF_NAT_RANGE_MAP_IPS && in in_range() 272 !nf_nat_inet_in_range(tuple, range)) in in_range() [all …]
|
/Linux-v5.10/drivers/of/ |
D | address.c | 50 u64 (*map)(__be32 *addr, const __be32 *range, 70 static u64 of_bus_default_map(__be32 *addr, const __be32 *range, in of_bus_default_map() argument 75 cp = of_read_number(range, na); in of_bus_default_map() 76 s = of_read_number(range + na + pna, ns); in of_bus_default_map() 166 static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns, in of_bus_pci_map() argument 173 rf = of_bus_pci_get_flags(range); in of_bus_pci_map() 180 cp = of_read_number(range + 1, na - 1); in of_bus_pci_map() 181 s = of_read_number(range + na + pna, ns); in of_bus_pci_map() 258 * @range: the PCI range that describes the resource 259 * @np: device node where the range belongs to [all …]
|
/Linux-v5.10/drivers/gpu/ipu-v3/ |
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-v5.10/drivers/pci/hotplug/ |
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 …]
|
/Linux-v5.10/Documentation/devicetree/bindings/iio/dac/ |
D | ad5758.txt | 36 - adi,range-microvolt: Voltage output range 38 * <0 5000000>: 0 V to 5 V voltage range 39 * <0 10000000>: 0 V to 10 V voltage range 40 * <(-5000000) 5000000>: ±5 V voltage range 41 * <(-10000000) 10000000>: ±10 V voltage range 42 - adi,range-microamp: Current output range 44 * <0 20000>: 0 mA to 20 mA current range 45 * <0 24000>: 0 mA to 24 mA current range 46 * <4 24000>: 4 mA to 20 mA current range 47 * <(-20000) 20000>: ±20 mA current range [all …]
|
/Linux-v5.10/Documentation/userspace-api/media/v4l/ |
D | colorspaces-details.rst | 17 range. The chromaticities of the primary colors and the white reference 81 Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range 86 The default quantization is limited range, but full range is possible 98 quantization is limited range. The chromaticities of the primary colors 129 Transfer function. Normally L is in the range [0…1], but for the 130 extended gamut xvYCC encoding values outside that range are allowed. 161 Y' is clamped to the range [0…1] and Cb and Cr are clamped to the range 164 The default quantization is limited range, but full range is possible 176 that are outside the range [0…1]. The resulting Y', Cb and Cr values are 177 scaled and offset according to the limited range formula: [all …]
|
/Linux-v5.10/arch/powerpc/kexec/ |
D | ranges.c | 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. 137 * @mem_rngs: Range list to sort. 198 * add_mem_range - Updates existing memory range, if there is an overlap. 199 * Else, adds a new memory range. [all …]
|
/Linux-v5.10/drivers/hid/ |
D | hid-roccat-kovaplus.h | 22 /* write; value = profile number range 0-4 */ 24 /* write; value = profile number range 0-4 */ 31 uint8_t actual_profile; /* Range 0-4! */ 37 uint8_t profile_index; /* range 0-4 */ 39 uint8_t sensitivity_x; /* range 1-10 */ 40 uint8_t sensitivity_y; /* range 1-10 */ 42 uint8_t cpi_startup_level; /* range 1-4 */ 49 uint8_t profile_index; /* range 0-4 */ 85 /* data1 = profile_number range 1-5; no release event */ 87 /* data1 = profile_number range 1-5; no release event */ [all …]
|