| /linux/fs/romfs/ |
| H A D | storage.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #define ROMFS_MTD_READ(sb, ...) mtd_read((sb)->s_mtd, ##__VA_ARGS__) 30 return (ret < 0 || rlen != buflen) ? -EIO : 0; in romfs_mtd_read() 34 * determine the length of a string in a romfs image on an MTD device 40 size_t segment; in romfs_mtd_strnlen() local 45 /* scan the string up to 16 bytes at a time */ in romfs_mtd_strnlen() 47 segment = min_t(size_t, maxlen, 16); in romfs_mtd_strnlen() 48 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strnlen() 53 return n + (p - buf); in romfs_mtd_strnlen() 54 maxlen -= len; in romfs_mtd_strnlen() [all …]
|
| /linux/drivers/scsi/ |
| H A D | libiscsi_tcp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * iSCSI over TCP/IP Data-Path lib 7 * Copyright (C) 2005 - 2006 Mike Christie 9 * maintained by open-iscsi@googlegroups.com 42 MODULE_DESCRIPTION("iSCSI/TCP data-path"); 49 "module. Set to 1 to turn on, and zero to turn off. Default " 59 &(_conn)->cls_conn->dev, \ 64 struct iscsi_segment *segment); 80 * iscsi_tcp_segment_init_sg - init indicated scatterlist entry 81 * @segment: the buffer object [all …]
|
| /linux/drivers/remoteproc/ |
| H A D | remoteproc_coredump.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 * rproc_coredump_cleanup() - clean up dump_segments list 30 list_for_each_entry_safe(entry, tmp, &rproc->dump_segments, node) { in rproc_coredump_cleanup() 31 list_del(&entry->node); in rproc_coredump_cleanup() 38 * rproc_coredump_add_segment() - add segment of device memory to coredump 39 * @rproc: handle of a remote processor 41 * @size: size of segment 43 * Add device memory to the list of segments to be included in a coredump for 50 struct rproc_dump_segment *segment; in rproc_coredump_add_segment() local 52 segment = kzalloc_obj(*segment); in rproc_coredump_add_segment() [all …]
|
| /linux/fs/nilfs2/ |
| H A D | segment.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * NILFS Segment constructor prototypes and definitions 5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 22 * struct nilfs_recovery_info - Recovery information 26 * @ri_lsegs_start: Region for roll-forwarding (start block number) 27 * @ri_lsegs_end: Region for roll-forwarding (end block number) 28 * @ri_lsegs_start_seq: Sequence value of the segment at ri_lsegs_start 30 * @ri_pseg_start: Block number of the last partial segment 31 * @ri_seq: Sequence number on the last partial segment 32 * @ri_segnum: Segment number on the last partial segment [all …]
|
| H A D | recovery.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 16 #include "segment.h" 22 * Segment check result 54 nilfs_err(sb, "I/O error reading segment"); in nilfs_warn_segment_error() 55 return -EIO; in nilfs_warn_segment_error() 66 msg = "Checksum error in segment payload"; in nilfs_warn_segment_error() 72 msg = "No super root in the last segment"; in nilfs_warn_segment_error() 75 nilfs_err(sb, "unrecognized segment error %d", err); in nilfs_warn_segment_error() 76 return -EINVAL; in nilfs_warn_segment_error() [all …]
|
| H A D | the_nilfs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 19 #include <linux/backing-dev.h> 36 * struct the_nilfs - struct to supervise multiple nilfs mount points 43 * @ns_sbh: buffer heads of on-disk super blocks 50 * @ns_seg_seq: segment sequence counter 51 * @ns_segnum: index number of the latest full segment. 52 * @ns_nextnum: index number of the full segment index to be used next 53 * @ns_pseg_offset: offset of next partial segment in the current full segment 55 * @ns_ctime: write time of the last segment [all …]
|
| /linux/arch/s390/mm/ |
| H A D | extmem.c | 1 // SPDX-License-Identifier: GPL-2.0 80 "EW/EN-MIXED" }; 87 * Create the 8 bytes, ebcdic VM segment name from 121 if (memcmp(tmp->dcss_name, dcss_name, 8) == 0) { in segment_by_name() 131 * Perform a function on a dcss segment. 158 return -ENOENT; in dcss_diag_translate_rc() 159 return -EIO; in dcss_diag_translate_rc() 163 /* do a diag to get info about a segment. 177 rc = -ENOMEM; in query_segment_type() 182 qin->qopcode = DCSS_FINDSEGA; in query_segment_type() [all …]
|
| /linux/drivers/md/dm-pcache/ |
| H A D | cache_segment.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 u32 seg_id = cache_seg->segment.seg_id; in get_seg_info_addr() 14 seg_addr = CACHE_DEV_SEGMENT(cache_seg->cache->cache_dev, seg_id); in get_seg_info_addr() 15 seg_info_addr = seg_addr + PCACHE_SEG_INFO_SIZE * cache_seg->info_index; in get_seg_info_addr() 23 struct pcache_segment_info *seg_info = &cache_seg->cache_seg_info; in cache_seg_info_write() 25 mutex_lock(&cache_seg->info_lock); in cache_seg_info_write() 26 seg_info->header.seq++; in cache_seg_info_write() 27 seg_info->header.crc = pcache_meta_crc(&seg_info->header, sizeof(struct pcache_segment_info)); in cache_seg_info_write() 29 cache_seg->info_index = (cache_seg->info_index + 1) % PCACHE_META_INDEX_MAX; in cache_seg_info_write() 34 mutex_unlock(&cache_seg->info_lock); in cache_seg_info_write() [all …]
|
| H A D | cache.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 #include "segment.h" 38 /* Offset and size definitions for cache segment control */ 54 #define PCACHE_CACHE_FLAGS_INIT_DONE BIT(1) 58 #define PCACHE_CACHE_MODE_WRITETHROUGH 1 79 u32 cache_seg_id; /* Index in cache->segments */ 80 struct pcache_segment segment; member 124 #define PCACHE_CACHE_KEY_FLAGS_CLEAN BIT(1) 206 u32 data_crc:1; 225 return FIELD_GET(PCACHE_CACHE_FLAGS_GC_PERCENT_MASK, cache->cache_info.flags); in pcache_cache_get_gc_percent() [all …]
|
| /linux/include/linux/sunrpc/ |
| H A D | rpc_rdma.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (c) 2015-2017 Oracle. All rights reserved. 4 * Copyright (c) 2003-2007 Network Appliance, Inc. All rights reserved. 6 * This software is available to you under a choice of one of two 9 * COPYING in the main directory of this source tree, or the BSD-type 32 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 48 #define RPCRDMA_VERSION 1 61 rpcrdma_readseg_maxsz = 1 + rpcrdma_segment_maxsz, 62 rpcrdma_readchunk_maxsz = 1 + rpcrdma_readseg_maxsz, 72 ERR_VERS = 1, [all …]
|
| /linux/Documentation/devicetree/bindings/auxdisplay/ |
| H A D | gpio-7-segment.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/auxdisplay/gpio-7-segment.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO based LED segment display 10 - Chris Packham <chris.packham@alliedtelesis.co.nz> 14 const: gpio-7-segment 16 segment-gpios: 18 An array of GPIOs one per segment. The first GPIO corresponds to the A 19 segment, the seventh GPIO corresponds to the G segment. Some LED blocks [all …]
|
| /linux/Documentation/arch/powerpc/ |
| H A D | pci_iov_resource_on_powernv.rst | 19 1. Introduction to Partitionable Endpoints 22 A Partitionable Endpoint (PE) is a way to group the various resources 23 associated with a device or a set of devices to provide isolation between 24 partitions (i.e., filtering of DMA, MSIs etc.) and to provide a mechanism 25 to freeze a device that is causing errors in order to limit the possibility 28 There is thus, in HW, a table of PE states that contains a pair of "frozen" 32 When a PE is frozen, all stores in any direction are dropped and all loads 33 return all 1's value. MSIs are also blocked. There's a bit more state that 40 The following section provides a rough description of what we have on P8 42 is a completely separate HW entity that replicates the entire logic, so has [all …]
|
| /linux/drivers/dma/xilinx/ |
| H A D | xilinx_dma.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2010-2014 Xilinx, Inc. All rights reserved. 10 * The AXI Video Direct Memory Access (AXI VDMA) core is a soft Xilinx IP 11 * core that provides high-bandwidth direct memory access between memory 12 * and AXI4-Stream type video target peripherals. The core provides efficient 18 * registers are accessed through an AXI4-Lite slave interface. 20 * The AXI Direct Memory Access (AXI DMA) core is a soft Xilinx IP core that 21 * provides high-bandwidth one dimensional direct memory access between memory 22 * and AXI4-Stream target peripherals. It supports one receive and one 25 * The AXI CDMA, is a soft IP, which provides high-bandwidth Direct Memory [all …]
|
| /linux/fs/btrfs/ |
| H A D | lzo.c | 1 // SPDX-License-Identifier: GPL-2.0 29 * 1. Header 33 * 2. Segment(s) 34 * Variable size. Each segment includes one segment header, followed by data 37 * For inlined LZO compressed extent, only one segment is allowed. 38 * One segment represents at most one sector of uncompressed data. 40 * 2.1 Segment header 42 * Records the total size of the segment (not including the header). 43 * Segment header never crosses sector boundary, thus it's possible to 48 * which is 4419 for a 4KiB sectorsize. [all …]
|
| /linux/include/uapi/linux/ |
| H A D | fsmap.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 34 * the first entry it knows about. For a subsequent call, the 35 * contents of fsmap_head.fmh_recs[fsmap_head.fmh_count - 1] should be 44 * fmr_device can be either a 32-bit cookie representing a device, or 45 * a 32-bit dev_t if the FMH_OF_DEV_T flag is set. fmr_physical, 47 * fmr_owner is either an inode number, or a special value if 53 __u64 fmr_physical; /* device offset of segment */ 55 __u64 fmr_offset; /* file offset of segment */ 56 __u64 fmr_length; /* length of segment */ 84 head->fmh_keys[0] = head->fmh_recs[head->fmh_entries - 1]; in fsmap_advance() [all …]
|
| /linux/tools/testing/selftests/x86/ |
| H A D | fsgsbase_restore.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * This test case simulates a tracer redirecting tracee execution to 7 * a function and then restoring tracee state using PTRACE_GETREGS and 10 * modify a segment register. This makes sure that ptrace correctly 11 * restores segment state when using PTRACE_SETREGS. 13 * This is not part of fsgsbase.c, because that test is 64-bit only. 53 MAP_PRIVATE | MAP_ANONYMOUS | MAP_32BIT, -1, 0); in init_seg() 55 err(1, "mmap"); in init_seg() 64 .limit = sizeof(unsigned int) - 1, in init_seg() 65 .seg_32bit = 1, in init_seg() [all …]
|
| /linux/Documentation/networking/ |
| H A D | tcp_ao.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 TCP Authentication Option (TCP-AO) provides a TCP extension aimed at verifying 8 segments between trusted peers. It adds a new TCP header option with 9 a Message Authentication Code (MAC). MACs are produced from the content 10 of a TCP segment using a hashing function with a password known to both peers. 11 The intent of TCP-AO is to deprecate TCP-MD5 providing better security, 12 key rotation and support for a variety of hashing algorithms. 14 1. Introduction 17 .. table:: Short and Limited Comparison of TCP-AO and TCP-MD5 19 +----------------------+------------------------+-----------------------+ [all …]
|
| /linux/kernel/rcu/ |
| H A D | rcu_segcblist.c | 1 // SPDX-License-Identifier: GPL-2.0+ 20 rclp->head = NULL; in rcu_cblist_init() 21 rclp->tail = &rclp->head; in rcu_cblist_init() 22 rclp->len = 0; in rcu_cblist_init() 30 *rclp->tail = rhp; in rcu_cblist_enqueue() 31 rclp->tail = &rhp->next; in rcu_cblist_enqueue() 32 WRITE_ONCE(rclp->len, rclp->len + 1); in rcu_cblist_enqueue() 37 * any contents of the first. If rhp is non-NULL, enqueue it as the sole 39 * rcu_cblist structure, if initially non-empty, always appears non-empty 47 drclp->head = srclp->head; in rcu_cblist_flush_enqueue() [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A D | nsaccess.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: nsaccess - Top-level functions for accessing ACPI namespace 51 * The global root ptr is initially NULL, so a non-NULL value indicates in acpi_ns_root_initialize() 83 * 0 _OSI Method 00203678 00 Args 1 Len 0000 Aml 00000000 in acpi_ns_root_initialize() 85 for (init_val = acpi_gbl_pre_defined_names; init_val->name; init_val++) { in acpi_ns_root_initialize() 90 if (!strcmp(init_val->name, "_OSI") in acpi_ns_root_initialize() 102 acpi_ns_create_node(*ACPI_CAST_PTR(u32, init_val->name)); in acpi_ns_root_initialize() 108 new_node->descriptor_type = ACPI_DESC_TYPE_NAMED; in acpi_ns_root_initialize() 109 new_node->type = init_val->type; in acpi_ns_root_initialize() 114 prev_node->peer = new_node; in acpi_ns_root_initialize() [all …]
|
| /linux/Documentation/filesystems/ |
| H A D | nilfs2.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 NILFS2 is a log-structured file system (LFS) supporting continuous 10 destroyed just a few seconds ago. Since NILFS2 can keep consistency 14 NILFS2 creates a number of checkpoints every few seconds or per 21 full. Each snapshot is mountable as a read-only file system 25 The userland tools are included in nilfs-utils package, which is 33 :List info: http://vger.kernel.org/vger-lists.html#linux-nilfs 40 - atime 41 - extended attributes 42 - POSIX ACLs [all …]
|
| /linux/rust/syn/ |
| H A D | path.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 14 /// A path at which a named item is exported (e.g. `std::collections::HashMap`). 26 fn from(segment: T) -> Self { in from() 31 path.segments.push_value(segment.into()); in from() 37 /// Determines whether this is a path of length 1 equal to the given 42 /// - the path has no leading colon, 43 /// - the number of path segments is 1, 44 /// - the first path segment has no angle bracketed or parenthesized 46 /// - the ident of the first path segment is equal to the given one. 54 /// fn get_serde_meta_item(attr: &Attribute) -> Result<Option<&TokenStream>> { [all …]
|
| /linux/arch/x86/math-emu/ |
| H A D | get_address.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /*---------------------------------------------------------------------------+ 9 | Australia. E-mail billm@suburbia.net | 12 +---------------------------------------------------------------------------*/ 14 /*---------------------------------------------------------------------------+ 19 +---------------------------------------------------------------------------*/ 43 #define REG_(x) (*(long *)(reg_offset[(x)] + (u_char *)FPU_info->regs)) 56 (reg_offset_vm86[((unsigned)x)] + (u_char *)FPU_info->regs)) 69 (reg_offset_pm[((unsigned)x)] + (u_char *)FPU_info->regs)) 78 FPU_code_access_ok(1); in sib() [all …]
|
| /linux/arch/s390/include/asm/ |
| H A D | pgtable.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 * Derived from "include/asm-i386/pgtable.h" 18 #include <linux/page-flags.h> 20 #include <linux/radix-tree.h> 57 * ZERO_PAGE is a global shared page that is always zero; used 58 * for zero-mapped memory areas etc.. 85 * At the top of the vmalloc area a 2GB area is reserved where modules 87 * happen without trampolines and in addition the placement within a 92 #define VMALLOC_DEFAULT_SIZE ((512UL << 30) - MODULES_LEN) 100 #define MODULES_LEN (1UL << 31) [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ddp.c | 1 // SPDX-License-Identifier: GPL-2.0 27 * ice_verify_pkg - verify package 32 * version, and the requirement of at least one segment. 39 if (len < struct_size(pkg, seg_offset, 1)) in ice_verify_pkg() 42 if (pkg->pkg_format_ver.major != ICE_PKG_FMT_VER_MAJ || in ice_verify_pkg() 43 pkg->pkg_format_ver.minor != ICE_PKG_FMT_VER_MNR || in ice_verify_pkg() 44 pkg->pkg_format_ver.update != ICE_PKG_FMT_VER_UPD || in ice_verify_pkg() 45 pkg->pkg_format_ver.draft != ICE_PKG_FMT_VER_DFT) in ice_verify_pkg() 48 /* pkg must have at least one segment */ in ice_verify_pkg() 49 seg_count = le32_to_cpu(pkg->seg_count); in ice_verify_pkg() [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | eprom.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 14 * partition 1: 4K config file (sector size) 24 #define EP_PAGE_MASK (EP_PAGE_SIZE - 1) 44 * Read a 256 byte (64 dword) EPROM page. 45 * All callers have verified the offset is at a page boundary. 75 * command address range. Note that '>' is correct below - the end in read_length() 78 if (end > (1 << CMD_SHIFT)) in read_length() 79 return -EINVAL; in read_length() 91 bytes = EP_PAGE_SIZE - start_offset; in read_length() 102 len -= bytes; in read_length() [all …]
|