| /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"); 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 85 * This function sets up the segment so that subsequent [all …]
|
| H A D | qla1280.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 77 /* Command retry count (0-65535) */ 85 /* ISP request and response entry counts (37-65535) */ 95 /* NOTE: the sp->cmd will be NULL when this completion is 126 #define ISP_CFG1_F128 BIT_6 /* 128-byte FIFO threshold */ 127 #define ISP_CFG1_F64 BIT_4|BIT_5 /* 128-byte FIFO threshold */ 128 #define ISP_CFG1_F32 BIT_5 /* 128-byte FIFO threshold */ 129 #define ISP_CFG1_F16 BIT_4 /* 128-byte FIFO threshold */ 139 #define PCI_64BIT_SLOT BIT_14 /* PCI 64-bit slot indicator. */ 159 #define CDMA_CONF_DIR BIT_0 /* DMA direction (0=fifo->host 1=host->fifo) */ [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 41 * @size: size of segment 50 struct rproc_dump_segment *segment; in rproc_coredump_add_segment() local 52 segment = kzalloc_obj(*segment); in rproc_coredump_add_segment() 53 if (!segment) in rproc_coredump_add_segment() 54 return -ENOMEM; in rproc_coredump_add_segment() [all …]
|
| /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() 40 size_t segment; in romfs_mtd_strnlen() local 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() 64 * - return 1 if matched, 0 if differ, -ve if error 70 size_t len, segment; in romfs_mtd_strcmp() local [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 | segbuf.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * NILFS Segment buffer prototypes and definitions 5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. 19 * struct nilfs_segsum_info - On-memory segment summary 22 * @nblocks: Number of blocks included in the partial segment 24 * @sumbytes: Byte count of segment summary 26 * @seg_seq: Segment sequence number 29 * @next: Block number of the next full segment 45 * struct nilfs_segment_buffer - Segment buffer 48 * @sb_sum: On-memory segment summary [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/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/drivers/md/dm-pcache/ |
| H A D | segment.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 #include "segment.h" 8 int segment_copy_to_bio(struct pcache_segment *segment, in segment_copy_to_bio() argument 15 iov_iter_bvec(&iter, ITER_DEST, &bio->bi_io_vec[bio->bi_iter.bi_idx], in segment_copy_to_bio() 16 bio_segments(bio), bio->bi_iter.bi_size); in segment_copy_to_bio() 17 iter.iov_offset = bio->bi_iter.bi_offset; in segment_copy_to_bio() 21 src = segment->data + data_off; in segment_copy_to_bio() 24 return -EIO; in segment_copy_to_bio() 29 int segment_copy_from_bio(struct pcache_segment *segment, in segment_copy_from_bio() argument 36 iov_iter_bvec(&iter, ITER_SOURCE, &bio->bi_io_vec[bio->bi_iter.bi_idx], in segment_copy_from_bio() [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. 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. 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 26 * Access (DMA) between a memory-mapped source address and a memory-mapped 30 * Xilinx IP that provides high-bandwidth direct memory access between [all …]
|
| /linux/drivers/media/test-drivers/visl/ |
| H A D | visl-trace-vp8.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 TP_fast_assign(__entry->f = *f;), 21 __entry->f.entropy.coeff_probs, 22 sizeof(__entry->f.entropy.coeff_probs), 24 __print_array(__entry->f.entropy.y_mode_probs, 25 ARRAY_SIZE(__entry->f.entropy.y_mode_probs), 26 sizeof(__entry->f.entropy.y_mode_probs[0])), 27 __print_array(__entry->f.entropy.uv_mode_probs, 28 ARRAY_SIZE(__entry->f.entropy.uv_mode_probs), 29 sizeof(__entry->f.entropy.uv_mode_probs[0])), [all …]
|
| /linux/block/ |
| H A D | blk-mq-dma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 #include <linux/blk-integrity.h> 6 #include <linux/blk-mq-dma.h> 11 if (iter->iter.bi_size) in __blk_map_iter_next() 13 if (!iter->bio || !iter->bio->bi_next) in __blk_map_iter_next() 16 iter->bio = iter->bio->bi_next; in __blk_map_iter_next() 17 if (iter->is_integrity) { in __blk_map_iter_next() 18 iter->iter = bio_integrity(iter->bio)->bip_iter; in __blk_map_iter_next() 19 iter->bvecs = bio_integrity(iter->bio)->bip_vec; in __blk_map_iter_next() 21 iter->iter = iter->bio->bi_iter; in __blk_map_iter_next() [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/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_buddy.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 3 * Copyright (c) 2005 - 2008 Mellanox Technologies. All rights reserved. 4 * Copyright (c) 2006 - 2007 Cisco Systems, Inc. All rights reserved. 15 buddy->max_order = max_order; in mlx5dr_buddy_init() 17 INIT_LIST_HEAD(&buddy->list_node); in mlx5dr_buddy_init() 19 buddy->bitmap = kzalloc_objs(*buddy->bitmap, buddy->max_order + 1); in mlx5dr_buddy_init() 20 buddy->num_free = kzalloc_objs(*buddy->num_free, buddy->max_order + 1); in mlx5dr_buddy_init() 22 if (!buddy->bitmap || !buddy->num_free) in mlx5dr_buddy_init() 27 for (i = 0; i <= buddy->max_order; ++i) { in mlx5dr_buddy_init() 28 unsigned int size = 1 << (buddy->max_order - i); in mlx5dr_buddy_init() [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. 9 * COPYING in the main directory of this source tree, or the BSD-type 78 RDMA_NOMSG = 1, /* An RPC call or reply msg - separate body */ 94 * Private extension to RPC-over-RDMA Version One. 95 * Message passed during RDMA-CM connection set-up. 118 return (size >> 10) - 1; in rpcrdma_encode_buffer_size() 128 * xdr_encode_rdma_segment - Encode contents of an RDMA segment 135 * Pointer to the XDR position that follows the encoded RDMA segment [all …]
|
| /linux/include/uapi/linux/ |
| H A D | fsmap.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 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, 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() 87 /* fmh_iflags values - set by FS_IOC_GETFSMAP caller in the header. */ 91 /* fmh_oflags values - returned in the header segment only. */ [all …]
|
| /linux/fs/btrfs/ |
| H A D | lzo.c | 1 // SPDX-License-Identifier: GPL-2.0 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 70 return lzo1x_worst_compress(fs_info->sectorsize); in workspace_buf_length() 74 return lzo1x_worst_compress(fs_info->sectorsize); in workspace_cbuf_length() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-fs-nilfs2 | 64 Show last write time of super block in human-readable 97 Show start block number of the latest segment. 103 Show sequence value of the latest segment. 109 Show checkpoint number of the latest segment. 115 Show segment sequence counter. 121 Show index number of the latest full segment. 127 Show index number of the full segment index 134 Show offset of next partial segment in the current 135 full segment. 147 Show write time of the last segment in [all …]
|
| /linux/arch/powerpc/boot/ |
| H A D | elf.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 /* 32-bit ELF base types. */ 12 /* 64-bit ELF base types. */ 22 /* These constants are for the segment types stored in the image headers */ 30 #define PT_TLS 7 /* Thread local storage segment */ 31 #define PT_LOOS 0x60000000 /* OS-specific */ 32 #define PT_HIOS 0x6fffffff /* OS-specific */ 109 Elf64_Off p_offset; /* Segment file offset */ 110 Elf64_Addr p_vaddr; /* Segment virtual address */ 111 Elf64_Addr p_paddr; /* Segment physical address */ [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. 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() 53 /* make sure segment array fits in package length */ in ice_verify_pkg() [all …]
|
| /linux/rust/syn/ |
| H A D | path.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 26 fn from(segment: T) -> Self { in from() 31 path.segments.push_value(segment.into()); in from() 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>> { 65 pub fn is_ident<I>(&self, ident: &I) -> bool in is_ident() 80 /// - the path has no leading colon, [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | machine_kexec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 39 pr_debug(" type: %d\n", kimage->type); in kexec_image_info() 40 pr_debug(" start: %lx\n", kimage->start); in kexec_image_info() 41 pr_debug(" head: %lx\n", kimage->head); in kexec_image_info() 42 pr_debug(" nr_segments: %lu\n", kimage->nr_segments); in kexec_image_info() 44 for (i = 0; i < kimage->nr_segments; i++) { in kexec_image_info() 45 pr_debug(" segment[%lu]: %016lx - %016lx, 0x%lx bytes, %lu pages\n", in kexec_image_info() 47 kimage->segment[i].mem, in kexec_image_info() 48 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_image_info() 49 (unsigned long)kimage->segment[i].memsz, in kexec_image_info() [all …]
|
| /linux/net/sunrpc/xprtrdma/ |
| H A D | svc_rdma_pcl.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * pcl_free - Release all memory associated with a parsed chunk list 19 while (!list_empty(&pcl->cl_chunks)) { in pcl_free() 23 list_del(&chunk->ch_list); in pcl_free() 36 chunk->ch_position = position; in pcl_alloc_chunk() 37 chunk->ch_length = 0; in pcl_alloc_chunk() 38 chunk->ch_payload_length = 0; in pcl_alloc_chunk() 39 chunk->ch_segcount = 0; in pcl_alloc_chunk() 49 if (pos->ch_position == position) in pcl_lookup_position() 61 if (pos->ch_position > chunk->ch_position) in pcl_insert_position() [all …]
|
| /linux/kernel/rcu/ |
| H A D | rcu_segcblist.c | 1 // SPDX-License-Identifier: GPL-2.0+ 21 rclp->head = NULL; in rcu_cblist_init() 22 rclp->tail = &rclp->head; in rcu_cblist_init() 23 rclp->len = 0; in rcu_cblist_init() 31 *rclp->tail = rhp; in rcu_cblist_enqueue() 32 rclp->tail = &rhp->next; in rcu_cblist_enqueue() 33 WRITE_ONCE(rclp->len, rclp->len + 1); in rcu_cblist_enqueue() 38 * any contents of the first. If rhp is non-NULL, enqueue it as the sole 40 * rcu_cblist structure, if initially non-empty, always appears non-empty 48 drclp->head = srclp->head; in rcu_cblist_flush_enqueue() [all …]
|
| /linux/arch/x86/purgatory/ |
| H A D | setup-x86_64.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 * This code has been taken from kexec-tools. 18 /* Load a gdt so I know what the segment registers are */ 22 movl $0x18, %eax /* data segment */ 40 /* 0x00 unusable segment 44 .word gdt_end - gdt - 1 48 /* 0x10 4GB flat code segment */ 51 /* 0x18 4GB flat data segment */
|