Home
last modified time | relevance | path

Searched +full:segment +full:- +full:0 (Results 1 – 25 of 1020) sorted by relevance

12345678910>>...41

/linux/drivers/scsi/
H A Dlibiscsi_tcp.c1 // 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, \
61 } while (0);
64 struct iscsi_segment *segment);
80 * iscsi_tcp_segment_init_sg - init indicated scatterlist entry
81 * @segment: the buffer object
[all …]
H A Dqla1280.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
17 #define BIT_0 0x1
18 #define BIT_1 0x2
19 #define BIT_2 0x4
20 #define BIT_3 0x8
21 #define BIT_4 0x10
22 #define BIT_5 0x20
23 #define BIT_6 0x40
24 #define BIT_7 0x80
25 #define BIT_8 0x100
[all …]
H A Discsi_tcp.c1 // 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");
52 static unsigned int iscsi_max_lun = ~0;
72 &(_conn)->cls_conn->dev, \
74 } while (0);
78 * iscsi_sw_tcp_recv - TCP receive in sendfile fashion
[all …]
/linux/drivers/remoteproc/
H A Dremoteproc_coredump.c1 // 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
46 * Return: 0 on success, negative errno on error.
50 struct rproc_dump_segment *segment; in rproc_coredump_add_segment() local
52 segment = kzalloc(sizeof(*segment), GFP_KERNEL); in rproc_coredump_add_segment()
53 if (!segment) in rproc_coredump_add_segment()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/sspl/
H A Ddc_spl.c1 // SPDX-License-Identifier: MIT
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()
62 if (rec.width < 0 || rec.height < 0) in intersect_rec()
[all …]
/linux/fs/romfs/
H A Dstorage.c1 // 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()
39 ssize_t n = 0; in romfs_mtd_strnlen()
40 size_t segment; in romfs_mtd_strnlen() local
46 while (maxlen > 0) { 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()
49 if (ret < 0) in romfs_mtd_strnlen()
51 p = memchr(buf, 0, len); in romfs_mtd_strnlen()
[all …]
/linux/drivers/dma/xilinx/
H A Dxilinx_dma.c1 // 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/arch/x86/include/asm/
H A Dsegment.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 * Constructor for a conventional segment GDT (or LDT) entry.
14 ((((base) & _AC(0xff000000,ULL)) << (56-24)) | \
15 (((flags) & _AC(0x0000f0ff,ULL)) << 40) | \
16 (((limit) & _AC(0x000f0000,ULL)) << (48-16)) | \
17 (((base) & _AC(0x00ffffff,ULL)) << 16) | \
18 (((limit) & _AC(0x0000ffff,ULL))))
33 #define SEGMENT_RPL_MASK 0x3
37 * not 0. Testing the Requested Privilege Level in a segment selector to
40 * matches the 0x3 mask.
[all …]
/linux/arch/x86/math-emu/
H A Dget_address.c1 // SPDX-License-Identifier: GPL-2.0
2 /*---------------------------------------------------------------------------+
9 | Australia. E-mail billm@suburbia.net |
12 +---------------------------------------------------------------------------*/
14 /*---------------------------------------------------------------------------+
19 +---------------------------------------------------------------------------*/
30 #define FPU_WRITE_BIT 0x10
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))
[all …]
/linux/drivers/media/test-drivers/visl/
H A Dvisl-trace-vp8.h1 /* 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/Documentation/devicetree/bindings/auxdisplay/
H A Dgpio-7-segment.yaml1 # 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/kernel/
H A Dkexec_core.c1 // 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>
51 atomic_t __kexec_lock = ATOMIC_INIT(0);
59 * When kexec transitions to the new kernel there is a one-to-one
78 * 0 - TASK_SIZE, as only the user space mappings are arbitrarily
85 * be self-contained.
93 * - allocating a page table with the control code buffer identity
102 #define KIMAGE_NO_DEST (-1UL)
[all …]
/linux/fs/nilfs2/
H A Dsegment.h1 /* 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 Dthe_nilfs.h1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
19 #include <linux/backing-dev.h>
28 THE_NILFS_INIT = 0, /* Information from super_block is set */
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
[all …]
H A Drecovery.c1 // 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 …]
/linux/include/uapi/linux/
H A Dfsmap.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
35 * contents of fsmap_head.fmh_recs[fsmap_head.fmh_count - 1] should be
36 * copied into fmh_keys[0] to have the kernel start where it left off.
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. */
[all …]
H A Dnilfs2_api.h1 /* SPDX-License-Identifier: LGPL-2.1+ WITH Linux-syscall-note */
3 * nilfs2_api.h - NILFS2 user space API
5 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
20 * struct nilfs_cpinfo - checkpoint information
53 return !!(cpinfo->ci_flags & (1UL << NILFS_CPINFO_##flag)); \
61 * nilfs_suinfo - segment usage information
63 * @sui_nblocks: number of written blocks in segment
64 * @sui_flags: segment usage flags
72 /* segment usage flags */
83 return si->sui_flags & (1UL << NILFS_SUINFO_##flag); \
[all …]
/linux/fs/btrfs/
H A Dlzo.c1 // 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
52 * 0 0x2 0x4 0x6 0x8 0xa 0xc 0xe 0x10
53 * 0x0000 | Header | SegHdr 01 | Data payload 01 ... |
[all …]
/linux/arch/powerpc/boot/
H A Delf.h1 /* 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 */
23 #define PT_NULL 0
30 #define PT_TLS 7 /* Thread local storage segment */
31 #define PT_LOOS 0x60000000 /* OS-specific */
32 #define PT_HIOS 0x6fffffff /* OS-specific */
33 #define PT_LOPROC 0x70000000
34 #define PT_HIPROC 0x7fffffff
[all …]
/linux/drivers/soc/qcom/
H A Dmdt_loader.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
27 if (fw->size < sizeof(*ehdr)) in mdt_header_valid()
30 ehdr = (struct elf32_hdr *)fw->data; in mdt_header_valid()
32 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG)) in mdt_header_valid()
35 if (ehdr->e_phentsize != sizeof(struct elf32_phdr)) in mdt_header_valid()
38 phend = size_add(size_mul(sizeof(struct elf32_phdr), ehdr->e_phnum), ehdr->e_phoff); in mdt_header_valid()
39 if (phend > fw->size) in mdt_header_valid()
42 if (ehdr->e_shentsize || ehdr->e_shnum) { in mdt_header_valid()
43 if (ehdr->e_shentsize != sizeof(struct elf32_shdr)) in mdt_header_valid()
[all …]
/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_pcl.c1 // 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/include/linux/sunrpc/
H A Drpc_rdma.h1 /* 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
77 RDMA_MSG = 0, /* An RPC call or reply msg */
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.
108 #define rpcrdma_cmp_magic __cpu_to_be32(0xf6ab0e18)
112 RPCRDMA_CMP_F_SND_W_INV_OK = BIT(0),
[all …]
/linux/arch/s390/include/asm/
H A Ddat-bits.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 unsigned long rsto: 52;/* Region- or Segment-Table Origin */
19 unsigned long s : 1; /* Storage-Alteration-Event control */
20 unsigned long x : 1; /* Space-Switch-Event control */
21 unsigned long r : 1; /* Real-Space control */
23 unsigned long dt : 2; /* Designation-Type control */
24 unsigned long tl : 2; /* Region- or Segment-Table Length */
29 ASCE_TYPE_SEGMENT = 0,
38 unsigned long rto: 52;/* Region-Table Origin */
40 unsigned long p : 1; /* DAT-Protection Bit */
[all …]
/linux/arch/arm64/kernel/
H A Dmachine_kexec.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/page-flags.h>
29 * kexec_image_info - For debugging output.
37 kexec_dprintk(" type: %d\n", kimage->type); in _kexec_image_info()
38 kexec_dprintk(" head: %lx\n", kimage->head); in _kexec_image_info()
39 kexec_dprintk(" kern_reloc: %pa\n", &kimage->arch.kern_reloc); in _kexec_image_info()
40 kexec_dprintk(" el2_vectors: %pa\n", &kimage->arch.el2_vectors); in _kexec_image_info()
49 * machine_kexec_prepare - Prepare for a kexec reboot.
57 if (kimage->type != KEXEC_TYPE_CRASH && cpus_are_stuck_in_kernel()) { in machine_kexec_prepare()
59 return -EBUSY; in machine_kexec_prepare()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ddp.c1 // 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 …]

12345678910>>...41