| /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/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/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/Documentation/devicetree/bindings/regulator/ |
| H A D | regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Liam Girdwood <lgirdwood@gmail.com> 11 - Mark Brown <broonie@kernel.org> 14 regulator-name: 18 regulator-min-microvolt: 21 regulator-max-microvolt: 24 regulator-microvolt-offset: 28 regulator-min-microamp: [all …]
|
| /linux/include/linux/raspberrypi/ |
| H A D | vchiq_core.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 2 /* Copyright (c) 2010-2012 Broadcom. All rights reserved. */ 9 #include <linux/dma-mapping.h> 21 /* Do this so that we can test-build the code on non-rpi systems */ 35 #define VCHIQ_MAX_MSG_SIZE (VCHIQ_SLOT_SIZE - sizeof(struct vchiq_header)) 37 #define VCHIQ_SLOT_MASK (VCHIQ_SLOT_SIZE - 1) 38 #define VCHIQ_SLOT_QUEUE_MASK (VCHIQ_MAX_SLOTS_PER_SIDE - 1) 67 #define DEBUG_INITIALISE(local) int *debug_ptr = (local)->debug 145 * are non-counting. They are designed in such a way as to minimise the number 149 * comprises two booleans - armed and fired: [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/drivers/net/ethernet/sfc/siena/ |
| 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. 61 /* Checksum generation is a per-queue option in hardware, so each 68 #define EFX_TXQ_TYPE_HIGHPRI 4 /* High-priority (for TC) */ 70 /* HIGHPRI is Siena-only, and INNER_CSUM is EF10, so no need for both */ 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 [all …]
|
| /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/fs/xfs/ |
| H A D | xfs_mru_cache.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2006-2007 Silicon Graphics, Inc. 23 * period in time. When the first element is added, time zero for the data 24 * structure is initialised to the current time. 29 * inserted at the head of the current most-recently-used list. 88 * likely result in a loop in one of the lists. That's a sure-fire recipe for 98 unsigned int lru_grp; /* Group containing time zero. */ 115 * list again and again until either a) the lists are all empty, or b) time zero 123 * zero if there's no need to schedule more work because the lists are empty. 135 if (!mru->time_zero) in _xfs_mru_cache_migrate() [all …]
|
| /linux/fs/nfs/ |
| H A D | nfs4client.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 struct nfs_net *nn = net_generic(clp->cl_net, nfs_net_id); in nfs_get_cb_ident_idr() 35 if (clp->rpc_ops->version != 4 || minorversion != 0) in nfs_get_cb_ident_idr() 38 spin_lock(&nn->nfs_client_lock); in nfs_get_cb_ident_idr() 39 ret = idr_alloc(&nn->cb_ident_idr, clp, 1, 0, GFP_NOWAIT); in nfs_get_cb_ident_idr() 41 clp->cl_cb_ident = ret; in nfs_get_cb_ident_idr() 42 spin_unlock(&nn->nfs_client_lock); in nfs_get_cb_ident_idr() 51 struct list_head list; /* ds_clp->cl_ds_clients */ 56 * nfs4_find_ds_client - Common lookup case for DS I/O 66 list_for_each_entry_rcu(dss, &ds_clp->cl_ds_clients, list) { in nfs4_find_ds_client() [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/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 …]
|
| /linux/sound/core/ |
| H A D | jack.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 45 struct snd_jack *jack = device->device_data; in snd_jack_dev_disconnect() 50 guard(mutex)(&jack->input_dev_lock); in snd_jack_dev_disconnect() 51 if (!jack->input_dev) in snd_jack_dev_disconnect() 56 if (jack->registered) in snd_jack_dev_disconnect() 57 input_unregister_device(jack->input_dev); in snd_jack_dev_disconnect() 59 input_free_device(jack->input_dev); in snd_jack_dev_disconnect() 60 jack->input_dev = NULL; in snd_jack_dev_disconnect() 67 struct snd_jack *jack = device->device_data; in snd_jack_dev_free() 68 struct snd_card *card = device->card; in snd_jack_dev_free() [all …]
|
| /linux/net/sunrpc/ |
| H A D | xprtmultipath.c | 1 // SPDX-License-Identifier: GPL-2.0 37 list_add_tail_rcu(&xprt->xprt_switch, &xps->xps_xprt_list); in xprt_switch_add_xprt_locked() 39 if (xps->xps_nxprts == 0) in xprt_switch_add_xprt_locked() 40 xps->xps_net = xprt->xprt_net; in xprt_switch_add_xprt_locked() 41 xps->xps_nxprts++; in xprt_switch_add_xprt_locked() 42 xps->xps_nactive++; in xprt_switch_add_xprt_locked() 46 * rpc_xprt_switch_add_xprt - Add a new rpc_xprt to an rpc_xprt_switch 57 spin_lock(&xps->xps_lock); in rpc_xprt_switch_add_xprt() 58 if (xps->xps_net == xprt->xprt_net || xps->xps_net == NULL) in rpc_xprt_switch_add_xprt() 60 spin_unlock(&xps->xps_lock); in rpc_xprt_switch_add_xprt() [all …]
|
| /linux/sound/soc/amd/acp/ |
| H A D | acp-sdw-sof-mach.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * acp-sdw-sof-mach - ASoC Machine driver for AMD SoundWire platforms 15 #include <sound/soc-acpi.h> 20 static int quirk_override = -1; 22 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 27 dev_dbg(dev, "quirk realtek,jack-detect-source %ld\n", in log_quirks() 35 sof_sdw_quirk = (unsigned long)id->driver_data; in sof_sdw_quirk_cb() 44 DMI_MATCH(DMI_PRODUCT_NAME, "Birman-PHX"), 74 struct device *dev = card->dev; in create_sdw_dailink() 76 struct amd_mc_ctx *amd_ctx = (struct amd_mc_ctx *)ctx->private; in create_sdw_dailink() [all …]
|
| /linux/lib/ |
| H A D | radix-tree.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 #include <linux/radix-tree.h> 30 #include "radix-tree.h" 38 * The radix tree is variable-height, so an insert operation not only has 43 * The worst case is a zero height tree with just a single item at index 0, 48 #define RADIX_TREE_PRELOAD_SIZE (RADIX_TREE_MAX_PATH * 2 - 1) 54 #define IDR_INDEX_BITS (8 /* CHAR_BIT */ * sizeof(int) - 1) 57 #define IDR_PRELOAD_SIZE (IDR_MAX_PATH * 2 - 1) 60 * Per-cpu pool of preloaded nodes 82 return parent ? slot - parent->slots : 0; in get_slot_offset() [all …]
|
| /linux/drivers/usb/serial/ |
| H A D | generic.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2010 - 2013 Johan Hovold (jhovold@gmail.com) 6 * Copyright (C) 1999 - 2002 Greg Kroah-Hartman (greg@kroah.com) 40 struct device *dev = &serial->interface->dev; in usb_serial_generic_probe() 42 dev_info(dev, "The \"generic\" usb-serial driver is only for testing and one-off prototypes.\n"); in usb_serial_generic_probe() 43 dev_info(dev, "Tell linux-usb@vger.kernel.org to add your device to a proper driver.\n"); in usb_serial_generic_probe() 51 struct device *dev = &serial->interface->dev; in usb_serial_generic_calc_num_ports() 54 num_ports = max(epds->num_bulk_in, epds->num_bulk_out); in usb_serial_generic_calc_num_ports() 58 return -ENODEV; in usb_serial_generic_calc_num_ports() 109 clear_bit(USB_SERIAL_THROTTLED, &port->flags); in usb_serial_generic_open() [all …]
|