| /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/arch/x86/include/asm/ |
| H A D | segment.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * Constructor for a conventional segment GDT (or LDT) entry. 11 * This is a macro so it can be used in initializers. 14 ((((base) & _AC(0xff000000,ULL)) << (56-24)) | \ 16 (((limit) & _AC(0x000f0000,ULL)) << (48-16)) | \ 36 * When running on Xen PV, the actual privilege level of the kernel is 1, 37 * not 0. Testing the Requested Privilege Level in a segment selector to 52 /* LDT segment has TI set ... */ 61 * The layout of the per-CPU GDT under Linux: 63 * 0 - null <=== cacheline #1 [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/sspl/ |
| H A D | dc_spl.c | 1 // SPDX-License-Identifier: MIT 10 #define IDENTITY_RATIO(ratio) (spl_fixpt_u3d19(ratio) == (1 << 19)) 51 int r0_x_end = r0->x + r0->width; in intersect_rec() 52 int r1_x_end = r1->x + r1->width; in intersect_rec() 53 int r0_y_end = r0->y + r0->height; in intersect_rec() 54 int r1_y_end = r1->y + r1->height; in intersect_rec() 56 rec.x = r0->x > r1->x ? r0->x : r1->x; in intersect_rec() 57 rec.width = r0_x_end > r1_x_end ? r1_x_end - rec.x : r0_x_end - rec.x; in intersect_rec() 58 rec.y = r0->y > r1->y ? r0->y : r1->y; in intersect_rec() 59 rec.height = r0_y_end > r1_y_end ? r1_y_end - rec.y : r0_y_end - rec.y; in intersect_rec() [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 …]
|
| H A D | iscsi_tcp.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * iSCSI Initiator over TCP/IP Data-Path 7 * Copyright (C) 2005 - 2006 Mike Christie 9 * maintained by open-iscsi@googlegroups.com 30 #include <linux/backing-dev.h> 45 MODULE_DESCRIPTION("iSCSI/TCP data-path"); 63 "Set to 1 to turn on, and zero to turn off. Default is off."); 72 &(_conn)->cls_conn->dev, \ 78 * iscsi_sw_tcp_recv - TCP receive in sendfile fashion 82 * @len: skb->len - offset [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(sizeof(*segment), GFP_KERNEL); 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/kernel/ |
| H A D | kexec_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * kexec.c - kexec system call core code. 4 * Copyright (C) 2002-2004 Eric Biederman <ebiederm@xmission.com> 43 #include <linux/dma-map-ops.h> 53 /* Flag to indicate we are going to kexec a new kernel */ 59 * When kexec transitions to the new kernel there is a one-to-one 62 * others it is still a simple predictable page table to setup. 74 * is given by KEXEC_CONTROL_PAGE_SIZE. In the best case only a single 78 * 0 - TASK_SIZE, as only the user space mappings are arbitrarily 81 * The assembly stub in the control code buffer is passed a linked list [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/arch/x86/virt/svm/ |
| H A D | sev.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * AMD SVM-SEV Host Support. 20 #include <linux/amd-iommu.h> 40 u8 assigned :1, 42 u8 pagesize :1, 43 hpage_region_status :1, 45 u8 immutable :1, 61 u64 assigned : 1, 62 pagesize : 1, 63 immutable : 1, [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 | tls-offload.rst | 1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 10 Linux kernel provides TLS connection offload infrastructure. Once a TCP 13 For details regarding the user-facing interface refer to the TLS 18 * Software crypto mode (``TLS_SW``) - CPU handles the cryptography. 22 latency on socket reads (decryption only starts when a read syscall 24 * Packet-based NIC offload mode (``TLS_HW``) - the NIC handles crypto 25 on a packet by packet basis, provided the packets arrive in order. 28 (``ethtool`` flags ``tls-hw-tx-offload`` and ``tls-hw-rx-offload``). 29 * Full TCP NIC offload mode (``TLS_HW_RECORD``) - mode of operation where 33 abilities or QoS and packet scheduling (``ethtool`` flag ``tls-hw-record``). [all …]
|
| 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/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/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/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/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 …]
|