/linux/Documentation/staging/ |
H A D | lzo.rst | 26 - a distance when copying data from the dictionary (past output buffer) 27 - a length (number of bytes to copy from dictionary) 28 - the number of literals to copy, which is retained in variable "state" 35 The first byte of the block follows a different encoding from other bytes, it 45 length = byte & ((1 << #bits) - 1) 47 length = ((1 << #bits) - 1) 49 length += first-non-zero-byte 55 ranges, resulting in multiple copy instructions using different encodings. 57 forming a little-endian 16-bit quantity (marked LE16 below). 59 After any instruction except the large literal copy, 0, 1, 2 or 3 literals [all …]
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | pio_copy.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 8 /* additive distance between non-SOP and SOP space */ 10 #define PIO_BLOCK_MASK (PIO_BLOCK_SIZE - 1) 11 /* number of QUADWORDs in a block */ 15 * pio_copy - copy data block to MMIO space 20 * @count: number of DWORD (32-bit) quantities to copy from source 22 * Copy data from source to PIO Send Buffer memory, 8 bytes at a time. 23 * Must always write full BLOCK_SIZE bytes blocks. The first block must 27 * o pbuf->start always starts on a block boundary 28 * o pbuf can wrap only at a block boundary [all …]
|
/linux/Documentation/devicetree/bindings/dma/ti/ |
H A D | k3-bcdma.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 5 --- 6 $id: http://devicetree.org/schemas/dma/ti/k3-bcdm [all...] |
/linux/drivers/block/ |
H A D | brd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Ram backed block device driver. 8 * Parts derived from drivers/block/rd.c, and drivers/block/loop.c, copyright 25 #include <linux/backing-dev.h> 31 * Each block ramdisk device has a xarray brd_pages of pages that stores 32 * the pages containing the block device's contents. 40 * Backing store of pages. This is the contents of the block device. 51 return xa_load(&brd->brd_pages, sector >> PAGE_SECTORS_SHIFT); in brd_lookup_page() 69 return -ENOMEM; in brd_insert_page() 71 xa_lock(&brd->brd_pages); in brd_insert_page() [all …]
|
/linux/Documentation/admin-guide/device-mapper/ |
H A D | kcopyd.rst | 5 Kcopyd provides the ability to copy a range of sectors from one block-device 6 to one or more other block-devices, with an asynchronous completion 7 notification. It is used by dm-snapshot and dm-mirror. 10 to set aside for their copy jobs. This is done with a call to 16 To start a copy job, the user must set up io_region structures to describe 17 the source and destinations of the copy. Each io_region indicates a 18 block-device along with the starting sector and size of the region. The source 19 of the copy is given as one io_region structure, and the destinations of the 20 copy are given as an array of io_region structures:: 28 To start the copy, the user calls kcopyd_copy(), passing in the client [all …]
|
H A D | persistent-data.rst | 8 The more-sophisticated device-mapper targets require complex metadata 12 - Mikulas Patocka's multisnap implementation 13 - Heinz Mauelshagen's thin provisioning target 14 - Another btree-based caching target posted to dm-devel 15 - Another multi-snapshot target based on a design of Daniel Phillips 20 The persistent-data library is an attempt to provide a re-usable 21 framework for people who want to store metadata in device-mapper 22 targets. It's currently used by the thin-provisioning target and an 29 under drivers/md/persistent-data. 31 The block manager [all …]
|
/linux/Documentation/block/ |
H A D | ublk.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Userspace block device driver (ublk driver) 10 ublk is a generic framework for implementing block device logic from userspace. 11 The motivation behind it is that moving virtual block drivers into userspace, 13 new virtual block device such as ublk-qcow2 (there are several attempts of 16 Userspace block devices are attractive because: 18 - They can be written many programming languages. 19 - They can use libraries that are not available in the kernel. 20 - They can be debugged with tools familiar to application developers. 21 - Crashes do not kernel panic the machine. [all …]
|
/linux/lib/zlib_inflate/ |
H A D | inflate.h | 4 /* inflate.h -- internal inflate state definition 5 * Copyright (C) 1995-2004 Mark Adler 29 TYPE, /* i: waiting for type bits, including last-flag bit */ 30 TYPEDO, /* i: same, but skip check to exit inflate on new block */ 32 COPY, /* i/o: waiting for input or output to copy stored block */ enumerator 33 TABLE, /* i: waiting for dynamic block table lengths */ 40 MATCH, /* o: waiting for output space to copy string */ 42 CHECK, /* i: waiting for 32-bit check value */ 43 LENGTH, /* i: waiting for 32-bit length (gzip) */ 44 DONE, /* finished check, done -- remain here until reset */ [all …]
|
H A D | inflate.c | 1 /* inflate.c -- zlib decompression 2 * Copyright (C) 1995-2005 Mark Adler 18 /* architecture-specific bits */ 37 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; in zlib_inflateReset() 38 state = (struct inflate_state *)strm->state; in zlib_inflateReset() 39 strm->total_in = strm->total_out = state->total = 0; in zlib_inflateReset() 40 strm->msg = NULL; in zlib_inflateReset() 41 strm->adler = 1; /* to support ill-conceived Java test suite */ in zlib_inflateReset() 42 state->mode = HEAD; in zlib_inflateReset() 43 state->last = 0; in zlib_inflateReset() [all …]
|
H A D | inffast.c | 1 /* inffast.c -- fast decoding 2 * Copyright (C) 1995-2004 Mark Adler 33 available, an end-of-block is encountered, or a data error is encountered. 40 state->mode == LEN 41 strm->avail_in >= 6 42 strm->avail_out >= 258 43 start >= strm->avail_out 44 state->bits < 8 46 On return, state->mode is one of: 48 LEN -- ran out of enough output space or enough available input [all …]
|
/linux/include/uapi/linux/ |
H A D | rseq.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 10 * Copyright (c) 2015-2018 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> 17 RSEQ_CPU_ID_UNINITIALIZED = -1, 18 RSEQ_CPU_ID_REGISTRATION_FAILED = -2, 42 * contained within a single cache-line. It is usually declared as 43 * link-time constant data. 58 * contained within a single cache-line. 65 * kernel. Read by user-space with single-copy atomicity 67 * registered this data structure. Aligned on 32-bit. Always 78 * Read by user-space with single-copy atomicity semantics. This [all …]
|
/linux/arch/nios2/lib/ |
H A D | memcpy.c | 16 You should have received a copy of the GNU Lesser General Public 33 /* Copy exactly NBYTES bytes from SRC_BP to DST_BP, 41 __nbytes -= 1; \ 47 /* Copy *up to* NBYTES bytes from SRC_BP to DST_BP, with 59 src_bp += (nbytes) & -OPSIZ; \ 60 dst_bp += (nbytes) & -OPSIZ; \ 68 /* _wordcopy_fwd_aligned -- Copy block beginning at SRCP to 69 block beginning at DSTP with LEN `op_t' words (not LEN bytes!). 71 /* stream-lined (read x8 + write x8) */ 96 len -= 8; in _wordcopy_fwd_aligned() [all …]
|
/linux/tools/testing/selftests/rseq/ |
H A D | rseq-abi.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 6 * rseq-abi.h 10 * Copyright (c) 2015-2022 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> 17 RSEQ_ABI_CPU_ID_UNINITIALIZED = -1, 18 RSEQ_ABI_CPU_ID_REGISTRATION_FAILED = -2, 42 * contained within a single cache-line. It is usually declared as 43 * link-time constant data. 58 * contained within a single cache-line. 65 * kernel. Read by user-space with single-copy atomicity 67 * registered this data structure. Aligned on 32-bit. Always [all …]
|
/linux/drivers/mtd/ |
H A D | Kconfig | 33 # MTD block device support is select'ed if needed 39 tristate "Caching block device access to MTD devices" 40 depends on BLOCK 44 as block devices, it is possible to use MTD devices which are based 45 on RAM chips in this manner. This block device is a user of MTD 53 on flash chips to emulate a smaller block size. Needless to say, 61 tristate "Readonly block device access to MTD devices" 62 depends on MTD_BLOCK!=y && BLOCK 65 This allows you to mount read-only file systems (such as cramfs) 72 comment "Note that in some cases UBI block is preferred. See MTD_UBI_BLOCK." [all …]
|
/linux/drivers/thunderbolt/ |
H A D | property.c | 1 // SPDX-License-Identifier: GPL-2.0 38 static struct tb_property_dir *__tb_property_parse_dir(const u32 *block, 55 switch (entry->type) { in tb_property_entry_valid() 59 if (entry->length > block_len) in tb_property_entry_valid() 61 if (entry->value + entry->length > block_len) in tb_property_entry_valid() 66 if (entry->length != 1) in tb_property_entry_valid() 88 strcpy(property->key, key); in tb_property_alloc() 89 property->type = type; in tb_property_alloc() 90 INIT_LIST_HEAD(&property->list); in tb_property_alloc() 95 static struct tb_property *tb_property_parse(const u32 *block, size_t block_len, in tb_property_parse() argument [all …]
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vram_mgr.h | 1 /* SPDX-License-Identifier: MIT 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 46 static inline u64 amdgpu_vram_mgr_block_start(struct drm_buddy_block *block) in amdgpu_vram_mgr_block_start() argument 48 return drm_buddy_block_offset(block); in amdgpu_vram_mgr_block_start() 51 static inline u64 amdgpu_vram_mgr_block_size(struct drm_buddy_block *block) in amdgpu_vram_mgr_block_size() argument 53 return (u64)PAGE_SIZE << drm_buddy_block_order(block); in amdgpu_vram_mgr_block_size() 56 static inline bool amdgpu_vram_mgr_is_cleared(struct drm_buddy_block *block) in amdgpu_vram_mgr_is_cleared() argument 58 return drm_buddy_block_is_clear(block); in amdgpu_vram_mgr_is_cleared() 69 to_amdgpu_vram_mgr_resource(res)->flags |= DRM_BUDDY_CLEARED; in amdgpu_vram_mgr_set_cleared()
|
H A D | amdgpu_res_cursor.h | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 6 * copy of this software and associated documentation files (the "Software"), 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 45 * amdgpu_res_first - initialize a amdgpu_res_cursor 58 struct drm_buddy_block *block; in amdgpu_res_first() local 65 BUG_ON(start + size > res->size); in amdgpu_res_first() 67 cur->mem_type = res->mem_type; in amdgpu_res_first() 69 switch (cur->mem_type) { in amdgpu_res_first() 71 head = &to_amdgpu_vram_mgr_resource(res)->blocks; in amdgpu_res_first() 73 block = list_first_entry_or_null(head, in amdgpu_res_first() [all …]
|
/linux/Documentation/admin-guide/media/ |
H A D | lmedm04.rst | 1 .. SPDX-License-Identifier: GPL-2.0 6 To extract firmware for the DM04/QQBOX you need to copy the 10 ------------------------------------------- 19 .. code-block:: none 23 will produce dvb-usb-lme2510c-s7395.fw 26 disk DVB-S_EN_3.5A in BDADriver/driver 32 .. code-block:: none 36 will produce dvb-usb-lme2510c-s7395.fw 42 --------------------------- 49 .. code-block:: none [all …]
|
/linux/Documentation/filesystems/ext4/ |
H A D | blockgroup.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 ------ 6 The layout of a standard block group is approximately as follows (each 9 .. list-table:: 11 :header-rows: 1 13 * - Group 0 Padding 14 - ext4 Super Block 15 - Group Descriptors 16 - Reserved GDT Blocks 17 - Data Block Bitmap [all …]
|
/linux/fs/nfsd/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 20 You may choose to use a user-space NFS server instead, in which 24 user space programs which can be found in the Linux nfs-utils 25 package, available from http://linux-nfs.org/. More detail about 41 NFSv2 (RFC 1094) was the first publicly-released version of NFS. 68 To store ACLs on your NFS server, you also need to enable ACL- 88 space programs which can be found in the Linux nfs-utils package, 89 available from http://linux-nfs.org/. 97 bool "NFSv4.1 server support for pNFS block layouts" 98 depends on NFSD_V4 && BLOCK [all …]
|
/linux/sound/pci/emu10k1/ |
H A D | emu10k1_patch.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 22 * allocate a sample block and copy data from userspace 37 emu = rec->hw; in snd_emu10k1_sample_new() 39 return -EINVAL; in snd_emu10k1_sample_new() 41 if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP | SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) { in snd_emu10k1_sample_new() 42 /* should instead return -ENOTSUPP; but compatibility */ in snd_emu10k1_sample_new() 43 dev_warn(emu->card->dev, in snd_emu10k1_sample_new() 45 sp->v.sample); in snd_emu10k1_sample_new() 48 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) { in snd_emu10k1_sample_new() 51 xor = (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_UNSIGNED) ? 0 : 0x80808080; in snd_emu10k1_sample_new() [all …]
|
/linux/include/trace/events/ |
H A D | smbus.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 17 * drivers/i2c/i2c-core-smbus.c 41 __entry->adapter_nr = adap->nr; 42 __entry->addr = addr; 43 __entry->flags = flags; 44 __entry->command = command; 45 __entry->protocol = protocol; 49 __entry->len = 1; 50 goto copy; 53 __entry->len = 2; [all …]
|
/linux/virt/kvm/ |
H A D | binary_stats.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * kvm_stats_read() - Common function to read from the binary statistics 20 * @stats: start address of stats data block for a vm or a vcpu 21 * @size_stats: the size of stats data block pointed by @stats 28 * +-------------+ 30 * +-------------+ 32 * +-------------+ 34 * +-------------+ 36 * +-------------+ 41 * and some other necessary information. This is a one-time work for the [all …]
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_btree.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. 49 __be32 magic = ops->buf_ops->magic[idx]; in xfs_btree_magic() 51 /* Ensure we asked for crc for crc-only magics. */ in xfs_btree_magic() 63 * on x86-64. Yes, gcc-11 fails to inline them, and explicit inlining of these 127 struct xfs_btree_block *block, in __xfs_btree_check_lblock_hdr() argument 131 struct xfs_mount *mp = cur->bc_mp; in __xfs_btree_check_lblock_hdr() 134 if (!uuid_equal(&block->bb_u.l.bb_uuid, &mp->m_sb.sb_meta_uuid)) in __xfs_btree_check_lblock_hdr() 136 if (block->bb_u.l.bb_blkno != in __xfs_btree_check_lblock_hdr() 139 if (block->bb_u.l.bb_pad != cpu_to_be32(0)) in __xfs_btree_check_lblock_hdr() [all …]
|
/linux/drivers/md/ |
H A D | dm-thin-metadata.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2010-2011 Red Hat, Inc. 11 #include "persistent-data/dm-block-manager.h" 12 #include "persistent-data/dm-space-map.h" 13 #include "persistent-data/dm-space-map-metadata.h" 27 /*----------------------------------------------------------------*/ 93 * All other methods will fail with -EINVAL. 110 * The metadata snapshot is a copy of the current superblock (minus the 113 * copy of the metadata to userland due to extra copy-on-write operations 127 * Opening the same device more than once will fail with -EBUSY. [all …]
|