| /linux/arch/x86/kernel/ |
| H A D | resource.c | 1 // SPDX-License-Identifier: GPL-2.0 8 resource_size_t end) in resource_clip() argument 10 resource_size_t low = 0, high = 0; in resource_clip() local 12 if (res->end < start || res->start > end) in resource_clip() 15 if (res->start < start) in resource_clip() 16 low = start - res->start; in resource_clip() 18 if (res->end > end) in resource_clip() 19 high = res->end - end; in resource_clip() 22 if (low > high) in resource_clip() 23 res->end = start - 1; in resource_clip() [all …]
|
| /linux/kernel/ |
| H A D | crash_reserve.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * crash.c - kernel crash support code. 4 * Copyright (C) 2002-2004 Eric Biederman <ebiederm@xmission.com> 32 .end = 0, 39 .end = 0, 54 * crashkernel=ramsize-range:size[,...][@offset] 56 * The function returns 0 on success and -EINVAL on failure. 74 /* for each entry of the comma-separated list */ in parse_crashkernel_mem() 76 unsigned long long start, end = ULLONG_MAX, size; in parse_crashkernel_mem() local 82 return -EINVAL; in parse_crashkernel_mem() [all …]
|
| H A D | kallsyms.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * kallsyms.c: in-kernel printing of symbolic oopses and stack traces. 5 * Rewritten and vastly simplified by Rusty Russell for in-kernel 75 len--; in kallsyms_expand_symbol() 83 maxlen--; in kallsyms_expand_symbol() 146 return name - kallsyms_names; in get_symbol_offset() 167 unsigned int *end) in kallsyms_lookup_names() argument 170 int low, mid, high; in kallsyms_lookup_names() local 175 high = kallsyms_num_syms - 1; in kallsyms_lookup_names() 177 while (low <= high) { in kallsyms_lookup_names() [all …]
|
| /linux/rust/kernel/ |
| H A D | bits.rs | 1 // SPDX-License-Identifier: GPL-2.0 21 pub fn [<checked_bit_ $ty>](n: u32) -> Option<$ty> { 25 /// Computes `1 << n` by performing a compile-time assertion that `n` is 31 pub const fn [<bit_ $ty>](n: u32) -> $ty { 55 /// greater than the end or if the range is outside of the 59 pub fn [<genmask_checked_ $ty>](range: RangeInclusive<u32>) -> Option<$ty> { 61 let end = *range.end(); localVariable 63 if start > end { 67 let high = [<checked_bit_ $ty>](end)?; localVariable 69 Some((high | (high - 1)) & !(low - 1)) [all …]
|
| /linux/tools/testing/selftests/powerpc/signal/ |
| H A D | sigreturn_vdso.c | 1 // SPDX-License-Identifier: GPL-2.0 26 static int search_proc_maps(char *needle, unsigned long *low, unsigned long *high) in search_proc_maps() argument 28 unsigned long start, end; in search_proc_maps() local 32 int rc = -1; in search_proc_maps() 37 return -1; in search_proc_maps() 41 rc = sscanf(buf, "%lx-%lx %*c%*c%*c%*c %*x %*d:%*d %*d %127s\n", in search_proc_maps() 42 &start, &end, name); in search_proc_maps() 48 rc = -1; in search_proc_maps() 54 *high = end - 1; in search_proc_maps() 74 unsigned long low, high, size; in test_sigreturn_vdso() local [all …]
|
| /linux/drivers/gpu/drm/msm/registers/display/ |
| H A D | dsi.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 4 xsi:schemaLocation="https://gitlab.freedesktop.org/freedreno/ rules-fd.xsd"> 89 <bitfield name="MAJOR" low="28" high="31" type="uint"/> 90 <bitfield name="MINOR" low="16" high="27" type="uint"/> 91 <bitfield name="STEP" low="0" high="15" type="uint"/> 112 <bitfield name="DSI_BUSY" pos="4" type="boolean"/> <!-- see mipi_dsi_cmd_bta_sw_trigger() --> 144 <bitfield name="VIRT_CHANNEL" low="0" high="1" type="uint"/> <!-- always zero? --> 145 <bitfield name="DST_FORMAT" low="4" high="5" type="dsi_vid_dst_format"/> 146 <bitfield name="TRAFFIC_MODE" low="8" high="9" type="dsi_traffic_mode"/> [all …]
|
| /linux/tools/lib/perf/ |
| H A D | mmap.c | 1 // SPDX-License-Identifier: GPL-2.0 23 map->fd = -1; in perf_mmap__init() 24 map->overwrite = overwrite; in perf_mmap__init() 25 map->unmap_cb = unmap_cb; in perf_mmap__init() 26 refcount_set(&map->refcnt, 0); in perf_mmap__init() 28 prev->next = map; in perf_mmap__init() 33 return map->mask + 1 + page_size; in perf_mmap__mmap_len() 39 map->prev = 0; in perf_mmap__mmap() 40 map->mask = mp->mask; in perf_mmap__mmap() 41 map->base = mmap(NULL, perf_mmap__mmap_len(map), mp->prot, in perf_mmap__mmap() [all …]
|
| /linux/include/uapi/linux/media/raspberrypi/ |
| H A D | pisp_be_config.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 3 * PiSP Back End configuration definitions. 5 * Copyright (C) 2021 - Raspberry Pi Ltd 98 * struct pisp_be_global_config - PiSP global enable bitmaps 112 * struct pisp_be_input_buffer_config - PiS [all...] |
| /linux/arch/s390/tools/ |
| H A D | gen_facilities.c | 1 // SPDX-License-Identifier: GPL-2.0 26 * -march=<machine>. 33 21, /* extended-immediate facility */ 41 45, /* fast-BCR, etc. */ 44 49, /* misc-instruction-extensions */ 48 53, /* load-and-zero-rightmost-byte, etc. */ 52 58, /* miscellaneous-instruction-extension 2 */ 55 61, /* miscellaneous-instruction-extension 3 */ 58 84, /* miscellaneous-instruction-extension 4 */ 60 -1 /* END */ [all …]
|
| /linux/arch/alpha/lib/ |
| H A D | stxncpy.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Copy no more than COUNT bytes of the null-terminated string from 24 * the end of the range specified by COUNT 29 * Furthermore, v0, a3-a5, t11, and $at are untouched. 55 lda t2, -1 # e1 : build a mask against false zero 79 the end-of-count bit is set in t8 iff it applies. 107 /* Add the end-of-count bit to the eos detection bitmask. */ 112 .end stxncpy_aligned 121 /* Are source and destination co-aligned? */ 128 srl a2, 3, a2 # e0 : a2 = loop counter = (count - 1)/8 [all …]
|
| H A D | ev6-stxncpy.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * arch/alpha/lib/ev6-stxncpy.S 4 * 21264 version contributed by Rick Gorton <rick.gorton@api-networks.com> 6 * Copy no more than COUNT bytes of the null-terminated string from 24 * the end of the range specified by COUNT 29 * Furthermore, v0, a3-a5, t11, and $at are untouched. 34 * ftp.digital.com/pub/Digital/info/semiconductor/literature/dsc-library.html 36 * E - either cluster 37 * U - upper subcluster; U0 - subcluster U0; U1 - subcluster U1 38 * L - lower subcluster; L0 - subcluster L0; L1 - subcluster L1 [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_fsmap.c | 1 // SPDX-License-Identifier: GPL-2.0+ 38 dest->fmr_device = src->fmr_device; in xfs_fsmap_from_internal() 39 dest->fmr_flags = src->fmr_flags; in xfs_fsmap_from_internal() 40 dest->fmr_physical = BBTOB(src->fmr_physical); in xfs_fsmap_from_internal() 41 dest->fmr_owner = src->fmr_owner; in xfs_fsmap_from_internal() 42 dest->fmr_offset = BBTOB(src->fmr_offset); in xfs_fsmap_from_internal() 43 dest->fmr_length = BBTOB(src->fmr_length); in xfs_fsmap_from_internal() 44 dest->fmr_reserved[0] = 0; in xfs_fsmap_from_internal() 45 dest->fmr_reserved[1] = 0; in xfs_fsmap_from_internal() 46 dest->fmr_reserved[2] = 0; in xfs_fsmap_from_internal() [all …]
|
| H A D | xfs_discard.c | 1 // SPDX-License-Identifier: GPL-2.0 51 * We can't do this exactly with free space - once we drop the AGF lock, the 57 * This is exactly how online discard works - free extents are marked busy when 87 xfs_extent_busy_clear(&extents->extent_list, false); in xfs_discard_endio_work() 88 kfree(extents->owner); in xfs_discard_endio_work() 92 * Queue up the actual completion to a thread to avoid IRQ-safe locking for 99 struct xfs_busy_extents *extents = bio->bi_private; in xfs_discard_endio() 101 INIT_WORK(&extents->endio_work, xfs_discard_endio_work); in xfs_discard_endio() 102 queue_work(xfs_discard_wq, &extents->endio_work); in xfs_discard_endio() 122 list_for_each_entry(busyp, &extents->extent_list, list) { in xfs_discard_extents() [all …]
|
| /linux/drivers/scsi/ |
| H A D | sense_codes.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 4 * http://www.t10.org/lists/asc-num.txt [most recent: 20200817] 9 SENSE_CODE(0x0002, "End-of-partition/medium detected") 11 SENSE_CODE(0x0004, "Beginning-of-partition/medium detected") 12 SENSE_CODE(0x0005, "End-of-data detected") 51 SENSE_CODE(0x0409, "Logical unit not ready, self-test in progress") 87 SENSE_CODE(0x0801, "Logical unit communication time-out") 89 SENSE_CODE(0x0803, "Logical unit communication CRC error (Ultra-DMA/32)") 102 SENSE_CODE(0x0B01, "Warning - specified temperature exceeded") 103 SENSE_CODE(0x0B02, "Warning - enclosure degraded") [all …]
|
| /linux/include/uapi/linux/ |
| H A D | taskstats.h | 1 /* SPDX-License-Identifier: LGPL-2.1 WITH Linux-syscall-note */ 2 /* taskstats.h - exporting per-task statistics 22 /* Format for per-task data returned to userland when 23 * - a task exits 24 * - listener requests stats for a task 32 * b) add comment indicating new version number at end of struct 33 * c) add new fields after version comment; maintain 64-bit alignment 59 * All values, until comment "Delay accounting fields end" are 76 /* Following four fields atomically updated using task->delays->lock */ 88 /* cpu "wall-clock" running time [all …]
|
| /linux/arch/arm64/mm/ |
| H A D | init.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1995-2005 Russell King 24 #include <linux/dma-direct.h> 25 #include <linux/dma-map-ops.h> 40 #include <asm/kernel-pgtable.h> 50 #include <asm/xen/swiotlb-xen.h> 58 s64 memstart_addr __ro_after_init = -1; 63 * and ZONE_DMA32. By default ZONE_DMA covers the 32-bit addressable memory 64 * unless restricted on specific platforms (e.g. 30-bit on Raspberry Pi 4). 65 * In such case, ZONE_DMA32 covers the rest of the 32-bit addressable memory, [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 5 #include <linux/posix-clock.h> 39 CANT_DO_PINS = -1, 52 end = -2, enumerator 66 led_end = -2, 68 high, enumerator 83 {off, off, off, high, high, high, high}, 84 {off, in_A, off, high, high, high, low}, 85 {off, out_A, off, high, low, high, high}, [all …]
|
| /linux/net/ieee802154/6lowpan/ |
| H A D | reassembly.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 29 static const char lowpan_frags_cache_name[] = "lowpan-frags"; 41 BUILD_BUG_ON(sizeof(*key) > sizeof(q->key)); in lowpan_frag_init() 42 memcpy(&q->key, key, sizeof(*key)); in lowpan_frag_init() 53 spin_lock(&fq->q.lock); in lowpan_frag_expire() 55 if (fq->q.flags & INET_FRAG_COMPLETE) in lowpan_frag_expire() 58 inet_frag_kill(&fq->q, &refs); in lowpan_frag_expire() 60 spin_unlock(&fq->q.lock); in lowpan_frag_expire() 61 inet_frag_putn(&fq->q, refs); in lowpan_frag_expire() 74 key.tag = cb->d_tag; in fq_find() [all …]
|
| /linux/mm/ |
| H A D | numa_memblks.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 26 for (i = 0; i < ARRAY_SIZE(mi->blk); i++) in numa_nodemask_from_meminfo() 27 if (mi->blk[i].start != mi->blk[i].end && in numa_nodemask_from_meminfo() 28 mi->blk[i].nid != NUMA_NO_NODE) in numa_nodemask_from_meminfo() 29 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo() 33 * numa_reset_distance - Reset NUMA distance table 69 return -ENOMEM; in numa_alloc_distance() 85 * numa_set_distance - Set NUMA distance from one NUMA to another 133 static int __init numa_add_memblk_to(int nid, u64 start, u64 end, in numa_add_memblk_to() argument 137 if (start == end) in numa_add_memblk_to() [all …]
|
| H A D | page_alloc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 39 #include <linux/fault-inject.h> 63 /* Free Page Internal flags: for internal, non-pcp variants of free_pages(). */ 72 * reporting it and marking it "reported" - it only skips notifying 81 * page shuffling (relevant code - e.g., memory onlining - is expected to 84 * Note: No code should rely on this flag for correctness - it's purely 94 /* prevent >1 _updater_ of zone percpu pageset ->high and ->batch fields */ 107 /* UP spin_trylock always succeeds so disable IRQs to prevent re-entrancy. */ 118 * interfered with and a high priority task cannot preempt the allocator. 129 * Generic helper to lookup and a per-cpu variable with an embedded spinlock. [all …]
|
| /linux/drivers/bus/ |
| H A D | uniphier-system-bus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 29 u32 end; member 41 u64 end, mask; in uniphier_system_bus_add_bank() local 43 dev_dbg(priv->dev, in uniphier_system_bus_add_bank() 47 if (bank >= ARRAY_SIZE(priv->bank)) { in uniphier_system_bus_add_bank() 48 dev_err(priv->dev, "unsupported bank number %d\n", bank); in uniphier_system_bus_add_bank() 49 return -EINVAL; in uniphier_system_bus_add_bank() 52 if (priv->bank[bank].base || priv->bank[bank].end) { in uniphier_system_bus_add_bank() 53 dev_err(priv->dev, in uniphier_system_bus_add_bank() 55 return -EINVAL; in uniphier_system_bus_add_bank() [all …]
|
| /linux/fs/xfs/scrub/ |
| H A D | refcount.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2017-2023 Oracle. All Rights Reserved. 64 * need to find ($refcount - $seen) owners for every block in the 72 * b. Note the block number of the end of these fragments. 78 * and that they all end at or beyond the end of the refcount extent. 120 if (xchk_should_terminate(refchk->sc, &error)) in xchk_refcountbt_rmap_check() 123 rm_last = rec->rm_startblock + rec->rm_blockcount - 1; in xchk_refcountbt_rmap_check() 124 rc_last = refchk->bno + refchk->len - 1; in xchk_refcountbt_rmap_check() 126 /* Confirm that a single-owner refc extent is a CoW stage. */ in xchk_refcountbt_rmap_check() 127 if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) { in xchk_refcountbt_rmap_check() [all …]
|
| H A D | rtrefcount.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2021-2024 Oracle. All Rights Reserved. 44 error = xchk_rtgroup_init(sc, sc->sm->sm_agno, &sc->sr); in xchk_setup_rtrefcountbt() 52 error = xchk_install_live_inode(sc, rtg_refcount(sc->sr.rtg)); in xchk_setup_rtrefcountbt() 56 return xchk_rtgroup_lock(sc, &sc->sr, XCHK_RTGLOCK_ALL); in xchk_setup_rtrefcountbt() 78 * need to find ($refcount - $seen) owners for every block in the 86 * b. Note the block number of the end of these fragments. 92 * and that they all end at or beyond the end of the refcount extent. 134 if (xchk_should_terminate(refchk->sc, &error)) in xchk_rtrefcountbt_rmap_check() 137 rm_last = rec->rm_startblock + rec->rm_blockcount - 1; in xchk_rtrefcountbt_rmap_check() [all …]
|
| /linux/Documentation/hwmon/ |
| H A D | pxe1610.rst | 10 Addresses scanned: - 18 Addresses scanned: - 26 Addresses scanned: - 34 ----------- 36 PXE1610/PXE1110 are Multi-rail/Multiphase Digital Controllers 39 - Intel VR13 DC-DC converter specifications. 40 - Intel SVID protocol. 44 - Servers, Workstations, and High-end desktops 46 PXM1310 is a Multi-rail Controller and it is compliant to 48 - Intel VR13 DC-DC converter specifications. [all …]
|
| /linux/arch/arm/mach-footbridge/ |
| H A D | dma-isa.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 1999-2000 Russell King 9 * High DMA channel support & info by Hannu Savolainen and John Boyd, 11 * arch/arm/kernel/dma-ebsa285.c 14 #include <linux/dma-map-ops.h> 17 #include <linux/dma-mapping.h> 63 if (dma->invalid) { in isa_enable_dma() 68 mode = (chan & 3) | dma->dma_mode; in isa_enable_dma() 69 switch (dma->dma_mode & DMA_MODE_MASK) { in isa_enable_dma() 87 if (!dma->sg) { in isa_enable_dma() [all …]
|