Home
last modified time | relevance | path

Searched +full:data +full:- +full:mirror (Results 1 – 25 of 256) sorted by relevance

1234567891011

/linux/tools/testing/selftests/mm/
H A Dhmm-tests.c1 // SPDX-License-Identifier: GPL-2.0
4 * the linux kernel to help device drivers mirror a process address space in
6 * makes communication and data exchange a lot easier.
39 void *mirror; member
58 #define ALIGN(x, a) (((x) + (a - 1)) & (~((a) - 1)))
136 self->page_size = sysconf(_SC_PAGE_SIZE); in FIXTURE_SETUP()
137 self->page_shift = ffs(self->page_size) - 1; in FIXTURE_SETUP()
139 self->fd = hmm_open(variant->device_number); in FIXTURE_SETUP()
140 if (self->fd < 0 && hmm_is_coherent_type(variant->device_number)) in FIXTURE_SETUP()
142 ASSERT_GE(self->fd, 0); in FIXTURE_SETUP()
[all …]
/linux/drivers/md/
H A Ddm-raid1.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved.
9 #include "dm-bio-record.h"
17 #include <linux/device-mapper.h>
18 #include <linux/dm-io.h>
19 #include <linux/dm-dirty-log.h>
20 #include <linux/dm-kcopyd.h>
21 #include <linux/dm-region-hash.h>
33 #define errors_handled(p) ((p)->features & DM_RAID1_HANDLE_ERRORS)
34 #define keep_log(p) ((p)->features & DM_RAID1_KEEP_LOG)
[all …]
H A Draid1.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * RAID-1 management functions.
11 * Better read-balancing code written by Mika Kuoppala <miku@iki.fi>, 2000
19 * - bitmap marked during normal i/o
20 * - bitmap used to skip nondirty blocks during sync
22 * Additions to bitmap code, (C) 2003-2004 Paul Clements, SteelEye Technology:
23 * - persistent bitmap code
38 #include "md-bitmap.h"
39 #include "md-cluster.h"
52 #include "raid1-10.c"
[all …]
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
20 # after relevant mdadm enhancements - to make "names=yes"
21 # the default - are widely available.
34 Software RAID mini-HOWTO, available from
49 a several-second delay in the boot time due to various
69 use the so-called linear mode, i.e. it will combine the hard disk
78 tristate "RAID-0 (striping) mode"
82 use the so-called raid0 mode, i.e. it will combine the hard disk
88 Software-RAID mini-HOWTO, available from
98 tristate "RAID-1 (mirroring) mode"
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_mirror.c1 // SPDX-License-Identifier: GPL-2.0+
15 #define SPX5_QFWD_MP_OFFSET 9 /* Mirror port offset in the QFWD register */
17 /* Convert from bool ingress/egress to mirror direction */
23 /* Get ports belonging to this mirror */
36 /* Add port to mirror (only front ports) */
50 /* Delete port from mirror (only front ports) */
64 /* Check if mirror contains port */
70 /* Check if mirror is empty */
76 /* Get direction of mirror */
84 /* Set direction of mirror */
[all …]
/linux/fs/btrfs/
H A Dscrub.c1 // SPDX-License-Identifier: GPL-2.0
13 #include "disk-io.h"
14 #include "ordered-data.h"
18 #include "dev-replace.h"
20 #include "block-group.h"
24 #include "file-item.h"
26 #include "raid-stripe-tree.h"
29 * This is only the first step towards a full-features scrub. It reads all
31 * is found or the extent cannot be read, good data will be written back if
35 * - In case an unrepairable extent is encountered, track which files are
[all …]
H A Dzoned.c1 // SPDX-License-Identifier: GPL-2.0
12 #include "rcu-string.h"
13 #include "disk-io.h"
14 #include "block-group.h"
15 #include "dev-replace.h"
16 #include "space-info.h"
24 #define WP_MISSING_DEV ((u64)-1)
26 #define WP_CONVENTIONAL ((u64)-2)
31 * - primary superblock: 0B (zone 0)
32 * - first copy: 512G (zone starting at that offset)
[all …]
/linux/drivers/staging/fbtft/
H A Dfb_uc1611.c1 // SPDX-License-Identifier: GPL-2.0+
5 * The display is 4-bit grayscale (16 shades) 240x160.
29 * V_LCD = (C_V0 + C_PM × pot) * (1 + (T - 25) * temp)
34 /* BR -> actual ratio: 0-3 -> 5, 10, 11, 13 */
37 MODULE_PARM_DESC(ratio, "BR[1:0] Bias voltage ratio: 0-3 (default: 2)");
41 MODULE_PARM_DESC(gain, "GN[1:0] Bias voltage gain: 0-3 (default: 3)");
45 MODULE_PARM_DESC(pot, "PM[6:0] Bias voltage pot.: 0-63 (default: 16)");
47 /* TC -> % compensation per deg C: 0-3 -> -.05, -.10, -.015, -.20 */
50 MODULE_PARM_DESC(temp, "TC[1:0] Temperature compensation: 0-3 (default: 0)");
52 /* PC[1:0] -> LCD capacitance: 0-3 -> <20nF, 20-28 nF, 29-40 nF, 40-56 nF */
[all …]
H A Dfb_ili9163.c1 // SPDX-License-Identifier: GPL-2.0+
34 #define CMD_FRMCTR2 0xB2 /* Frame Rate Control (In Idle mode/8-colors) */
57 * http://www.ebay.com/itm/Replace-Nokia-5110-LCD-1-44-Red-Serial-128X128-SPI-
58 * Color-TFT-LCD-Display-Module-/271422122271
70 #define __OFFSET 32 /*see note 2 - this is the red version */
72 #define __OFFSET 0 /*see note 2 - this is the black version */
77 par->fbtftops.reset(par); in init_display()
114 switch (par->info->var.rotate) { in set_addr_win()
138 par->info->var.rotate = 0; in set_addr_win()
155 * 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 //Y-Mirror
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_acl_flex_actions.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2 /* Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved */
34 * group - When set, the binding is of an ACL group. When cleared,
144 return jhash2((u32 *) fa_cookie->cookie, in mlxsw_afa_cookie_hash()
145 fa_cookie->cookie_len / sizeof(u32), seed); in mlxsw_afa_cookie_hash()
148 static u32 mlxsw_afa_cookie_key_hashfn(const void *data, u32 len, u32 seed) in mlxsw_afa_cookie_key_hashfn() argument
150 const struct flow_action_cookie *fa_cookie = data; in mlxsw_afa_cookie_key_hashfn()
155 static u32 mlxsw_afa_cookie_obj_hashfn(const void *data, u32 len, u32 seed) in mlxsw_afa_cookie_obj_hashfn() argument
157 const struct mlxsw_afa_cookie *cookie = data; in mlxsw_afa_cookie_obj_hashfn()
159 return mlxsw_afa_cookie_hash(&cookie->fa_cookie, seed); in mlxsw_afa_cookie_obj_hashfn()
[all …]
/linux/Documentation/admin-guide/device-mapper/
H A Ddm-clone.rst1 .. SPDX-License-Identifier: GPL-2.0-only
4 dm-clone
10 dm-clone is a device mapper target which produces a one-to-one copy of an
11 existing, read-only source device into a writable destination device: It
12 presents a virtual block device which makes all data appear immediately, and
15 The main use case of dm-clone is to clone a potentially remote, high-latency,
16 read-only, archival-type block device into a writable, fast, primary-type device
17 for fast, low-latency I/O. The cloned device is visible/mountable immediately
21 For example, one could restore an application backup from a read-only copy,
26 When the cloning completes, the dm-clone table can be removed altogether and be
[all …]
H A Ddm-ima.rst2 dm-ima
6 (including the attestation service) interact with it - both during the
7 setup and during rest of the system run-time. They share sensitive data
9 may want to verify the current run-time state of the relevant kernel
10 subsystems before fully trusting the system with business-critical
11 data/workload.
18 impact the security profile of the block device, and in-turn, of the
24 fully trusting the system with business-critical data/workload.
28 various block devices -
30 - by device mapper itself, from within the kernel,
[all …]
H A Ddm-init.rst5 It is possible to configure a device-mapper device to act as the root device for
11 The second is to create one or more device-mappers using the module parameter
12 "dm-mod.create=" through the kernel boot command line argument.
14 The format is specified as a string of data separated by commas and optionally
15 semi-colons, where:
17 - a comma is used to separate fields like name, uuid, flags and table
19 - a semi-colon is used to separate devices.
23 …dm-mod.create=<name>,<uuid>,<minor>,<flags>,<table>[,<table>+][;<name>,<uuid>,<minor>,<flags>,<tab…
28 <uuid> ::= xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | ""
35 `--concise` argument.
[all …]
/linux/drivers/net/dsa/microchip/
H A Dksz8.h1 /* SPDX-License-Identifier: GPL-2.0 */
28 dsa_fdb_dump_cb_t *cb, void *data);
45 struct dsa_mall_mirror_tc_entry *mirror,
48 struct dsa_mall_mirror_tc_entry *mirror);
58 int ksz8_pme_pread8(struct ksz_device *dev, int port, int offset, u8 *data);
59 int ksz8_pme_pwrite8(struct ksz_device *dev, int port, int offset, u8 data);
/linux/drivers/pinctrl/
H A Dpinctrl-mcp23s08.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <linux/pinctrl/pinconf-generic.h>
22 #include "pinctrl-mcp23s08.h"
89 .disable_locking = true, /* mcp->lock protects the regmap */
136 .disable_locking = true, /* mcp->lock protects the regmap */
142 return regmap_read(mcp->regmap, reg << mcp->reg_shift, val); in mcp_read()
147 return regmap_write(mcp->regmap, reg << mcp->reg_shift, val); in mcp_write()
153 return regmap_update_bits(mcp->regmap, reg << mcp->reg_shift, in mcp_update_bits()
210 return -ENOTSUPP; in mcp_pinctrl_get_group_pins()
228 unsigned int data, status; in mcp_pinconf_get() local
[all …]
/linux/drivers/mtd/nand/raw/
H A Dnand_bbt.c1 // SPDX-License-Identifier: GPL-2.0-only
18 * based BBT is created. If a mirrored BBT is selected then the mirror is
19 * searched too and the versions are compared. If the mirror has a greater
20 * version number, then the mirror BBT is used to build the memory based BBT.
26 * For manufacturer created BBTs like the one found on M-SYS DOC devices
35 * course): it moves the ident pattern and the version byte into the data area
52 * - bbts start at a page boundary, if autolocated on a block boundary
53 * - the space necessary for a bbt in FLASH does not exceed a block boundary
78 uint8_t entry = chip->bbt[block >> BBT_ENTRY_SHIFT]; in bbt_get_entry()
87 chip->bbt[block >> BBT_ENTRY_SHIFT] |= msk; in bbt_mark_entry()
[all …]
/linux/Documentation/arch/m68k/
H A Dbuddha-driver.rst8 ------------------------------------------------------------------------
11 Buddha-part of the Catweasel Zorro-II version
21 product number: 0 (42 for Catweasel Z-II)
23 Rom-vector: $1000
25 The card should be a Z-II board, size 64K, not for freemem
26 list, Rom-Vektor is valid, no second Autoconfig-board on the
30 as the Amiga Kickstart does: The lower nibble of the 8-Bit
36 otherwise your chance is only 1:16 to find the board :-).
38 The local memory-map is even active when mapped to $e8:
41 $0-$7e Autokonfig-space, see Z-II docs.
[all …]
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptpf_mbox.c1 // SPDX-License-Identifier: GPL-2.0
67 get_mbox_opcode_str(mbox_msg->msg), vf_id, in dump_mbox_msg()
71 get_mbox_opcode_str(mbox_msg->msg), raw_data_str); in dump_mbox_msg()
78 writeq(mbx->data, cpt->reg_base + OTX_CPT_PF_VFX_MBOXX(vf, 1)); in otx_cpt_send_msg_to_vf()
79 writeq(mbx->msg, cpt->reg_base + OTX_CPT_PF_VFX_MBOXX(vf, 0)); in otx_cpt_send_msg_to_vf()
89 mbx->data = 0ull; in otx_cpt_mbox_send_ack()
90 mbx->msg = OTX_CPT_MSG_ACK; in otx_cpt_mbox_send_ack()
98 mbx->data = 0ull; in otx_cptpf_mbox_send_nack()
99 mbx->msg = OTX_CPT_MSG_NACK; in otx_cptpf_mbox_send_nack()
106 writeq(1ull << vf, cpt->reg_base + OTX_CPT_PF_MBOX_INTX(0)); in otx_cpt_clear_mbox_intr()
[all …]
/linux/Documentation/devicetree/bindings/display/
H A Dlvds.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - $ref: lvds-data-mapping.yaml#
13 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
14 - Thierry Reding <thierry.reding@gmail.com>
17 This binding extends the data mapping defined in lvds-data-mapping.yaml.
19 to accommodate for even more specialized data formats, since a variety of
20 data formats and layouts is used to drive LVDS displays.
23 data-mirror:
[all …]
/linux/drivers/net/dsa/b53/
H A Db53_regs.h5 * Copyright (C) 2011-2013 Jonas Gorski <jogo@openwrt.org>
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
104 /* Power-down mode control */
124 * Override Ports 0-7 State on devices with xMII interfaces (8 bit)
230 /* Mirror capture control register (16 bit) */
236 /* Ingress mirror control register (16 bit) */
246 /* Ingress mirror divider register (16 bit) */
250 /* Ingress mirror MAC address register (48 bit) */
253 /* Egress mirror control register (16 bit) */
256 /* Egress mirror divider register (16 bit) */
[all …]
/linux/drivers/media/platform/mediatek/mdp/
H A Dmtk_mdp_core.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2015-2016 MediaTek Inc.
12 #include <media/v4l2-ctrls.h>
13 #include <media/v4l2-device.h>
14 #include <media/v4l2-mem2mem.h>
15 #include <media/videobuf2-core.h>
16 #include <media/videobuf2-dma-contig.h>
22 #define MTK_MDP_MODULE_NAME "mtk-mdp"
34 * struct mtk_mdp_pix_align - alignment of image
48 * struct mtk_mdp_fmt - the driver's internal color format data
[all …]
/linux/Documentation/arch/arm/omap/
H A Ddss.rst7 TV-out and multiple display support, but there are lots of small improvements
10 The DSS2 driver (omapdss module) is in arch/arm/plat-omap/dss/, and the FB,
15 --------
19 - MIPI DPI (parallel) output
20 - MIPI DSI output in command mode
21 - MIPI DBI (RFBI) output
22 - SDI output
23 - TV output
24 - All pieces can be compiled as a module or inside kernel
25 - Use DISPC to update any of the outputs
[all …]
/linux/Documentation/networking/device_drivers/ethernet/marvell/
H A Docteontx2.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
12 - `Overview`_
13 - `Drivers`_
14 - `Basic packet flow`_
15 - `Devlink health reporters`_
16 - `Quality of service`_
17 - `RVU representors`_
24 PCI-compatible physical and virtual functions. Each functional block
32 - Network pool or buffer allocator (NPA)
33 - Network interface controller (NIX)
[all …]
/linux/Documentation/filesystems/
H A Dfiemap.rst1 .. SPDX-License-Identifier: GPL-2.0
8 extent mappings. Instead of block-by-block mapping (such as bmap), fiemap
13 --------------
17 .. kernel-doc:: include/uapi/linux/fiemap.h
21 which the process would like mappings for. Extents returned mirror
22 those on disk - that is, the logical offset of the 1st returned extent
50 extended attribute lookup tree, instead of its data tree.
56 --------------
73 .. kernel-doc:: include/uapi/linux/fiemap.h
76 All offsets and lengths are in bytes and mirror those on disk. It is valid
[all …]
/linux/drivers/comedi/drivers/
H A Dme_daq.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Hardware driver for Meilhaus data acquisition cards:
5 * ME-2000i, ME-2600i, ME-3000vm1
12 * Description: Meilhaus PCI data acquisition cards
13 * Devices: [Meilhaus] ME-2600i (me-2600i), ME-2000i (me-2000i)
35 * PCI BAR2 Memory map (dev->mmio)
76 #define ME_TIMER_DATA_REG(x) (0x0a + ((x) * 2)) /* - | W */
83 #define ME_DAC_CTRL_BIPOLAR(x) BIT(7 - ((x) & 0x3))
84 #define ME_DAC_CTRL_GAIN(x) BIT(11 - ((x) & 0x3))
87 #define ME_AO_DATA_REG(x) (0x14 + ((x) * 2)) /* - | W */
[all …]

1234567891011