/linux/Documentation/arch/arm64/ |
H A D | booting.rst | 13 (EL0 - EL3), with EL0, EL1 and EL2 having a secure and a non-secure 33 --------------------------- 49 ------------------------- 53 The device tree blob (dtb) must be placed on an 8-byte boundary and must 62 ------------------------------ 74 ------------------------ 78 The decompressed kernel image contains a 64-byte header as follows:: 94 - As of v3.17, all fields are little endian unless stated otherwise. 96 - code0/code1 are responsible for branching to stext. 98 - when booting through EFI, code0/code1 are initially skipped. [all …]
|
/linux/Documentation/arch/arm/ |
H A D | porting.rst | 5 Taken from list archive at http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2001-July/00406… 8 ------------------- 14 phys = virt - PAGE_OFFSET + PHYS_OFFSET 18 -------------------- 25 to be located in RAM, it can be in flash or other read-only or 26 read-write addressable medium. 29 Start address of zero-initialised work area for the decompressor. 30 This must be pointing at RAM. The decompressor will zero initialise 59 -------------- 72 always starts at zero, this is the maximum address that a user [all …]
|
/linux/include/linux/ |
H A D | pagevec.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 20 * struct folio_batch - A collection of folios. 36 * folio_batch_init() - Initialise a batch of folios 39 * A freshly initialised folio_batch contains zero folios. 43 fbatch->nr = 0; in folio_batch_init() 44 fbatch->i = 0; in folio_batch_init() 45 fbatch->percpu_pvec_drained = false; in folio_batch_init() 50 fbatch->nr = 0; in folio_batch_reinit() 51 fbatch->i = 0; in folio_batch_reinit() 56 return fbatch->nr; in folio_batch_count() [all …]
|
/linux/drivers/media/rc/img-ir/ |
H A D | img-ir-hw.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright 2010-2014 Imagination Technologies Ltd. 12 #include <media/rc-core.h> 18 #define IMG_IR_CODETYPE_BIPHASE 0x2 /* RC-5/6 */ 19 #define IMG_IR_CODETYPE_2BITPULSEPOS 0x3 /* RC-MM */ 25 * struct img_ir_control - Decoder control settings 53 * struct img_ir_timing_range - range of timing values 56 * preprocessing step, so it is normally not explicitly initialised 65 * struct img_ir_symbol_timing - timing data for a symbol 75 * struct img_ir_free_timing - timing data for free time symbol [all …]
|
/linux/drivers/hid/ |
H A D | hid-u2fzero.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * U2F Zero LED and RNG driver 6 * Loosely based on drivers/hid/hid-led.c 23 #include "hid-ids.h" 44 .name = "U2F Zero", 53 /* We only use broadcast (CID-less) messages */ 63 u8 data[HID_REPORT_SIZE - 7]; 67 u8 data[HID_REPORT_SIZE - 5]; 97 mutex_lock(&dev->lock); in u2fzero_send() 99 memcpy(dev->buf_out, req, sizeof(struct u2f_hid_report)); in u2fzero_send() [all …]
|
/linux/include/xen/interface/io/ |
H A D | tpmif.h | 19 * 3. Frontend populates ring-ref, event-channel, feature-protocol-v2 20 * 4. Frontend transitions to Initialised 21 * 5. Backend maps grant and event channel, verifies feature-protocol-v2 23 * 7. Frontend verifies feature-protocol-v2, transitions to Connected 48 uint8_t nr_extra_pages; /* extra pages for long packets; may be zero */
|
/linux/drivers/virt/coco/arm-cca-guest/ |
H A D | arm-cca-guest.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <linux/arm-smccc.h> 18 * struct arm_cca_token_info - a descriptor for the token buffer. 39 info->result = rsi_attestation_token_init(info->challenge, in arm_cca_attestation_init() 40 info->challenge_size); in arm_cca_attestation_init() 44 * arm_cca_attestation_continue - Retrieve the attestation token data. 51 * attestation token generation was initialised. 63 size = RSI_GRANULE_SIZE - info->offset; in arm_cca_attestation_continue() 64 info->result = rsi_attestation_token_continue(info->granule, in arm_cca_attestation_continue() 65 info->offset, size, &len); in arm_cca_attestation_continue() [all …]
|
/linux/arch/arm/mach-s3c/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0 5 source "arch/arm/mach-s3c/Kconfig.s3c64xx" 29 int "S3C UART to use for low-level messages" 33 Choice of which UART port to use for the low-level messages, 35 this configuration should be between zero and two. The port 36 must have been initialised by the boot-loader before use. 106 Compile in platform device definition for USB high-speed OtG 132 pinctrl-samsung driver. 139 Compile support for wakeup-mask controls found on the S3C6400 140 and above. This code allows a set of interrupt to wakeup-mask [all …]
|
/linux/rust/kernel/sync/ |
H A D | arc.rs | 1 // SPDX-License-Identifier: GPL-2.0 3 //! A reference-counted pointer. 5 //! This module implements a way for users to create reference-counted objects and pointers to 7 //! underlying object when it reaches zero. It is also safe to use concurrently from multiple 17 //! [`Arc`]: https://doc.rust-lang.org/std/sync/struct.Arc.html 39 /// A reference-counted pointer to an instance of `T`. 42 /// when they are dropped. When the count reaches zero, the underlying `T` is also dropped. 46 /// The reference count on an instance of [`Arc`] is always non-zero. 75 /// // The refcount drops to zero when `cloned` goes out of scope, and the memory is freed. 135 // meaningful with respect to dropck - but this may change in the future so this is left here [all …]
|
/linux/drivers/base/ |
H A D | transport_class.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * transport_class.c - implementation of generic transport classes 6 * Copyright (c) 2005 - James Bottomley <James.Bottomley@steeleye.com> 21 * transport class<-----attribute container<----class device 23 * Usually the attribute container is per-HBA, but the design doesn't 38 * transport_class_register - register an initial transport class 40 * @tclass: a pointer to the transport class structure to be initialised 44 * zeros and then generic class must have been initialised with the 53 return class_register(&tclass->class); in transport_class_register() 58 * transport_class_unregister - unregister a previously registered class [all …]
|
/linux/include/xen/interface/ |
H A D | memory.h | 1 /* SPDX-License-Identifier: MIT */ 17 * -ve errcode on failure, or the # extents successfully allocated or freed. 43 * I/O devices often have a 32-bit limitation even in 64-bit systems). If 44 * zero then the user has no addressing restriction. 59 * An atomic exchange of memory pages. If return code is zero then 60 * @out.extent_list provides GMFNs of the newly-allocated memory. 61 * Returns zero on complete success, otherwise a negative error code. 93 * command will be non-zero. 94 * 5. THIS FIELD MUST BE INITIALISED TO ZERO BY THE CALLER! 109 * specified domain (may be DOMID_SELF). Returns -ve errcode on failure. [all …]
|
/linux/drivers/md/persistent-data/ |
H A D | dm-bitset.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 10 #include "dm-array.h" 12 /*----------------------------------------------------------------*/ 19 * Like the dm-array that it's based on, the caller needs to keep track of 20 * the size of the bitset separately. The underlying dm-array implicitly 21 * knows how many words it's storing and will return -ENODATA if you try 25 * Bits are indexed from zero. 82 * tm - the transaction manager that should supervise this structure 83 * info - the structure being initialised 89 * Create an empty, zero length bitset. [all …]
|
/linux/arch/powerpc/platforms/powernv/ |
H A D | subcore.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 32 * A core can be in one of three states, unsplit, 2-way split, and 4-way split. 37 * ------------|------------------ 39 * 2-way split | 2 40 * 4-way split | 4 46 * ---------------------------- 48 * ---------------------------- 50 * ---------------------------- 52 * 2-way split: 53 * ------------------------------------- [all …]
|
/linux/arch/mips/mm/ |
H A D | context.c | 1 // SPDX-License-Identifier: GPL-2.0 94 * context-switch in flush_context() 146 * We had a valid MMID in a previous life, so try to re-use in get_new_mmid() 192 * MMID switch fast-path, to avoid acquiring cpu_mmid_lock when it's in check_switch_mmu_context() 195 * The memory ordering here is subtle. If our active_mmids is non-zero in check_switch_mmu_context() 200 * - We get a zero back from the cmpxchg and end up waiting on in check_switch_mmu_context() 205 * - We get a valid MMID back from the cmpxchg, which means the in check_switch_mmu_context() 263 TLBMISS_HANDLER_SETUP_PGD(mm->pgd); in check_switch_mmu_context() 287 pr_info("MMID allocator initialised with %u entries\n", num_mmids); in mmid_init()
|
/linux/arch/arm64/kernel/ |
H A D | hibernate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Ubuntu project, hibernation support for mach-dove 50 /* hyp-stub vectors, used to restore el2 during resume from hibernate. */ 54 * The logical cpu number we should resume on, initialised to a non-cpu 57 static int sleep_cpu = -EINVAL; 78 * re-configure el2. 88 memcpy(i->uts_version, init_utsname()->version, sizeof(i->uts_version)); in arch_hdr_invariants() 94 unsigned long nosave_end_pfn = sym_to_pfn(&__nosave_end - 1); in pfn_is_nosave() 113 return -EOVERFLOW; in arch_hibernation_header_save() 115 arch_hdr_invariants(&hdr->invariants); in arch_hibernation_header_save() [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_encoder.c | 80 if (encoder->funcs && encoder->funcs->late_register) in drm_encoder_register_all() 81 ret = encoder->funcs->late_register(encoder); in drm_encoder_register_all() 94 if (encoder->funcs && encoder->funcs->early_unregister) in drm_encoder_unregister_all() 95 encoder->funcs->early_unregister(encoder); in drm_encoder_unregister_all() 109 if (WARN_ON(dev->mode_config.num_encoder >= 32)) in __drm_encoder_init() 110 return -EINVAL; in __drm_encoder_init() 112 ret = drm_mode_object_add(dev, &encoder->base, DRM_MODE_OBJECT_ENCODER); in __drm_encoder_init() 116 encoder->dev = dev; in __drm_encoder_init() 117 encoder->encoder_type = encoder_type; in __drm_encoder_init() 118 encoder->funcs = funcs; in __drm_encoder_init() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
H A D | net_driver.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2005-2013 Solarflare Communications Inc. 63 /* Checksum generation is a per-queue option in hardware, so each 86 #define EFX_RX_USR_BUF_SIZE (2048 - 256) 89 * of every buffer. Otherwise, we just need to ensure 4-byte 98 /* Non-standard XDP_PACKET_HEADROOM and tailroom to satisfy XDP_REDIRECT and 111 * struct efx_buffer - A general-purpose DMA buffer 126 * struct efx_tx_buffer - buffer state for a TX descriptor 131 * @option: When @flags & %EFX_TX_BUF_OPTION, an EF10-specific option [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | sta.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2021, 2023 Intel Corporation 4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 11 * enum iwl_sta_flags - flags for the ADD_STA host command 21 * @STA_FLG_MAX_AGG_SIZE_MSK: maximal size for A-MPDU (mask) 22 * @STA_FLG_MAX_AGG_SIZE_SHIFT: maximal size for A-MPDU (bit shift) 23 * @STA_FLG_MAX_AGG_SIZE_8K: maximal size for A-MPDU (8k supported) 24 * @STA_FLG_MAX_AGG_SIZE_16K: maximal size for A-MPDU (16k supported) 25 * @STA_FLG_MAX_AGG_SIZE_32K: maximal size for A-MPDU (32k supported) [all …]
|
/linux/arch/arm64/mm/ |
H A D | context.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2002-2003 Deep Blue Solutions Ltd, all rights reserved. 34 #define ASID_MASK (~GENMASK(asid_bits - 1, 0)) 50 pr_warn("CPU%d: Unknown ASID size (%d); assuming 8-bit\n", in get_cpu_asid_bits() 129 * context-switch in flush_context() 161 u64 asid = atomic64_read(&mm->context.id); in new_context() 179 if (refcount_read(&mm->context.pinned)) in new_context() 183 * We had a valid ASID in a previous life, so try to re-use in new_context() 224 asid = atomic64_read(&mm->context.id); in check_and_switch_context() 228 * If our active_asids is non-zero and the ASID matches the current in check_and_switch_context() [all …]
|
/linux/sound/hda/ |
H A D | hdac_regmap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Regmap support for HD-audio verbs 9 * - Provided for not all verbs but only subset standard non-volatile verbs. 10 * - For reading, only AC_VERB_GET_* variants can be used. 11 * - For writing, mapped to the *corresponding* AC_VERB_SET_* variants, 45 return !codec->cache_coef; in hda_volatile_reg() 58 case AC_VERB_GET_DEVICE_LIST: /* read-only volatile */ in hda_volatile_reg() 72 snd_array_for_each(&codec->vendor_verbs, i, v) { in hda_writeable_reg() 77 if (codec->caps_overwriting) in hda_writeable_reg() 85 return codec->cache_coef; in hda_writeable_reg() [all …]
|
/linux/include/net/ |
H A D | mctp.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 79 * by sk->net->keys_lock 94 * - individual key data (ie, the struct itself) is protected by key->lock; 97 * - the lookup fields: peer_addr, local_addr and tag are set before the 100 * - A ref to the key must be held (throuh key->refs) if a pointer to the 101 * key is to be accessed after key->lock is released. 103 * - a mctp_sk_key contains a reference to a struct sock; this is valid 107 * - these mctp_sk_keys appear on two lists: 108 * 1) the struct mctp_sock->keys list 109 * 2) the struct netns_mctp->keys list [all …]
|
/linux/drivers/tty/serial/ |
H A D | zs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 38 * Per-SCC state for locking and the interrupt handler. 44 int initialised; member 53 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) 144 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */ 154 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */ 156 /* Write Register 7 (Sync bits 8-15/SDLC 01111110) */ 220 #define ZCIE 2 /* Zero count IE */ 230 #define ZCOUNT 0x2 /* Zero count */ 255 /* Read Register 2 (Interrupt Vector (WR2) -- channel A). */ [all …]
|
/linux/drivers/accel/ivpu/ |
H A D | vpu_jsm_api.h | 1 /* SPDX-License-Identifier: MIT */ 3 * Copyright (c) 2020-2024, Intel Corporation. 74 /* Job status returned when the job was preempted mid-inference */ 79 * Host <-> VPU IPC channels. 80 * ASYNC commands use a high priority channel, other messages use low-priority ones. 132 * does not need per-job fence signalling. Other inline commands objects can be 160 * same process with a relative in-process priority. Valid values for relative 161 * priority are given below - max and min. 164 #define VPU_HWS_COMMAND_QUEUE_MIN_IN_PROCESS_PRIORITY -7 207 * present in the queue prior to them, and in-order relative to each other in the queue. [all …]
|
/linux/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/ |
H A D | ia_css_eed1_8.host.c | 1 // SPDX-License-Identifier: GPL-2.0 33 -7171, -256, -29, -3456, -1071, -475, -189, -102, 34 -48, -38, -10, -9, -7, -6, 0 52 -6364, -631, -126, -34, -13, -6, -4452, -2156, 0 68 -5244, -486, -86, -2849, -961, -400, -180, -86, 0 93 to->e_dew_enh_x[0][i] = 0; in ia_css_eed1_8_vmem_encode() 94 to->e_dew_enh_y[0][i] = 0; in ia_css_eed1_8_vmem_encode() 95 to->e_dew_enh_a[0][i] = 0; in ia_css_eed1_8_vmem_encode() 96 to->e_dew_enh_f[0][i] = 0; in ia_css_eed1_8_vmem_encode() 97 to->chgrinv_x[0][i] = 0; in ia_css_eed1_8_vmem_encode() [all …]
|
/linux/Documentation/admin-guide/blockdev/ |
H A D | zram.rst | 2 zram: Compressed RAM-based block devices 8 The zram module creates RAM-based block devices named /dev/zram<id> 20 There are several ways to configure and manage zram device(-s): 23 b) using zramctl utility, provided by util-linux (util-linux@vger.kernel.org). 28 In order to get a better idea about zramctl please consult util-linux 29 documentation, zramctl man-page or `zramctl --help`. Please be informed 30 that zram maintainers do not develop/maintain util-linux or zramctl, should 31 you have any questions please contact util-linux@vger.kernel.org 45 -EBUSY an attempt to modify an attribute that cannot be changed once 46 the device has been initialised. Please reset device first. [all …]
|