Home
last modified time | relevance | path

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

12345678910>>...12

/linux-5.10/fs/nfs/flexfilelayout/
Dflexfilelayout.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2014, Primary Data, Inc. All rights reserved.
43 struct nfs4_ff_layout_mirror *mirror);
52 pnfs_init_ds_commit_info(&ffl->commit_info); in ff_layout_alloc_layout_hdr()
53 INIT_LIST_HEAD(&ffl->error_list); in ff_layout_alloc_layout_hdr()
54 INIT_LIST_HEAD(&ffl->mirrors); in ff_layout_alloc_layout_hdr()
55 ffl->last_report_time = ktime_get(); in ff_layout_alloc_layout_hdr()
56 ffl->commit_info.ops = &ff_layout_commit_ops; in ff_layout_alloc_layout_hdr()
57 return &ffl->generic_hdr; in ff_layout_alloc_layout_hdr()
68 list_for_each_entry_safe(err, n, &ffl->error_list, list) { in ff_layout_free_layout_hdr()
[all …]
Dflexfilelayoutdev.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2014, Primary Data, Inc. All rights reserved.
29 nfs4_put_deviceid_node(&mirror_ds->id_node); in nfs4_ff_layout_put_deviceid()
34 nfs4_print_deviceid(&mirror_ds->id_node.deviceid); in nfs4_ff_layout_free_deviceid()
35 nfs4_pnfs_ds_put(mirror_ds->ds); in nfs4_ff_layout_free_deviceid()
36 kfree(mirror_ds->ds_versions); in nfs4_ff_layout_free_deviceid()
40 /* Decode opaque device data and construct new_ds using it */
55 int i, ret = -ENOMEM; in nfs4_ff_alloc_deviceid_node()
66 nfs4_init_deviceid_node(&new_ds->id_node, in nfs4_ff_alloc_deviceid_node()
68 &pdev->dev_id); in nfs4_ff_alloc_deviceid_node()
[all …]
Dflexfilelayout.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * NFSv4 flexfile layout driver data structures.
5 * Copyright (c) 2014, Primary Data, Inc. All rights reserved.
20 /* XXX: Let's filter out insanely large mirror count for now to avoid oom
45 struct list_head list; /* linked in mirror error_list */
146 if (idx < fls->mirror_array_cnt) in FF_LAYOUT_COMP()
147 return fls->mirror_array[idx]; in FF_LAYOUT_COMP()
154 struct nfs4_ff_layout_mirror *mirror = FF_LAYOUT_COMP(lseg, idx); in FF_LAYOUT_DEVID_NODE() local
156 if (mirror != NULL) { in FF_LAYOUT_DEVID_NODE()
157 struct nfs4_ff_layout_ds *mirror_ds = mirror->mirror_ds; in FF_LAYOUT_DEVID_NODE()
[all …]
/linux-5.10/tools/testing/selftests/vm/
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.
38 void *mirror; member
50 #define ALIGN(x, a) (((x) + (a - 1)) & (~((a) - 1)))
82 self->page_size = sysconf(_SC_PAGE_SIZE); in FIXTURE_SETUP()
83 self->page_shift = ffs(self->page_size) - 1; in FIXTURE_SETUP()
85 self->fd = hmm_open(0); in FIXTURE_SETUP()
86 ASSERT_GE(self->fd, 0); in FIXTURE_SETUP()
91 self->page_size = sysconf(_SC_PAGE_SIZE); in FIXTURE_SETUP()
[all …]
/linux-5.10/drivers/md/
Ddm-raid1.c3 * Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved.
8 #include "dm-bio-record.h"
16 #include <linux/device-mapper.h>
17 #include <linux/dm-io.h>
18 #include <linux/dm-dirty-log.h>
19 #include <linux/dm-kcopyd.h>
20 #include <linux/dm-region-hash.h>
30 #define errors_handled(p) ((p)->features & DM_RAID1_HANDLE_ERRORS)
31 #define keep_log(p) ((p)->features & DM_RAID1_KEEP_LOG)
35 /*-----------------------------------------------------------------
[all …]
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"
50 do { if ((md)->queue) blk_add_trace_msg((md)->queue, "raid1 " fmt, ##args); } while (0)
52 #include "raid1-10.c"
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
29 Software RAID mini-HOWTO, available from
44 a several-second delay in the boot time due to various
54 use the so-called linear mode, i.e. it will combine the hard disk
63 tristate "RAID-0 (striping) mode"
67 use the so-called raid0 mode, i.e. it will combine the hard disk
73 Software-RAID mini-HOWTO, available from
83 tristate "RAID-1 (mirroring) mode"
86 A RAID-1 set consists of several disk drives which are exact copies
87 of each other. In the event of a mirror failure, the RAID driver
[all …]
/linux-5.10/arch/arm/mach-omap1/
Dlcd_dma.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/mach-omap1/lcd_dma.c
5 * Extracted from arch/arm/plat-omap/dma.c
6 * Copyright (C) 2003 - 2008 Nokia Corporation
11 * OMAP2/3 support Copyright (C) 2004-2007 Texas Instruments, Inc.
13 * Some functions based on earlier dma-omap.c Copyright (C) 2001 RidgeRun, Inc.
16 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
26 #include <linux/omap-dma.h>
52 void (*callback)(u16 status, void *data);
59 int mirror; member
[all …]
/linux-5.10/fs/nfs/
Dpagelist.c1 // SPDX-License-Identifier: GPL-2.0-only
37 if (desc->pg_ops->pg_get_mirror) in nfs_pgio_get_mirror()
38 return desc->pg_ops->pg_get_mirror(desc, idx); in nfs_pgio_get_mirror()
39 return &desc->pg_mirrors[0]; in nfs_pgio_get_mirror()
45 return nfs_pgio_get_mirror(desc, desc->pg_mirror_idx); in nfs_pgio_current_mirror()
52 if (desc->pg_ops->pg_set_mirror) in nfs_pgio_set_current_mirror()
53 return desc->pg_ops->pg_set_mirror(desc, idx); in nfs_pgio_set_current_mirror()
54 return desc->pg_mirror_idx; in nfs_pgio_set_current_mirror()
61 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in nfs_pgheader_init() local
64 hdr->req = nfs_list_entry(mirror->pg_list.next); in nfs_pgheader_init()
[all …]
/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptpf_ucode.c1 // SPDX-License-Identifier: GPL-2.0
25 /* tar header as defined in POSIX 1003.1-1990. */
64 if (eng_grp->g->engs_num > OTX_CPT_MAX_ENGINES) { in get_cores_bmap()
66 eng_grp->g->engs_num); in get_cores_bmap()
71 if (eng_grp->engs[i].type) { in get_cores_bmap()
73 eng_grp->engs[i].bmap, in get_cores_bmap()
74 eng_grp->g->engs_num); in get_cores_bmap()
75 bmap.size = eng_grp->g->engs_num; in get_cores_bmap()
82 eng_grp->idx); in get_cores_bmap()
94 return is_eng_type(eng_grps->eng_types_supported, eng_type); in dev_supports_eng_type()
[all …]
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-5.10/drivers/net/ethernet/mellanox/mlxsw/
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-5.10/drivers/staging/fbtft/
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 …]
Dfb_ili9163.c1 // SPDX-License-Identifier: GPL-2.0+
35 #define CMD_FRMCTR2 0xB2 /* Frame Rate Control (In Idle mode/8-colors) */
58 * http://www.ebay.com/itm/Replace-Nokia-5110-LCD-1-44-Red-Serial-128X128-SPI-
59 * Color-TFT-LCD-Display-Module-/271422122271
71 #define __OFFSET 32 /*see note 2 - this is the red version */
73 #define __OFFSET 0 /*see note 2 - this is the black version */
78 par->fbtftops.reset(par); in init_display()
80 if (par->gpio.cs) in init_display()
81 gpiod_set_value(par->gpio.cs, 0); /* Activate chip */ in init_display()
118 switch (par->info->var.rotate) { in set_addr_win()
[all …]
/linux-5.10/fs/btrfs/
Ddisk-io.h1 /* SPDX-License-Identifier: GPL-2.0 */
30 static inline u64 btrfs_sb_offset(int mirror) in btrfs_sb_offset() argument
33 if (mirror) in btrfs_sb_offset()
34 return start << (BTRFS_SUPER_MIRROR_SHIFT * mirror); in btrfs_sb_offset()
84 int mirror);
96 * fs_info->subvol_srcu
102 if (refcount_inc_not_zero(&root->refs)) in btrfs_grab_root()
131 int btree_lock_page_hook(struct page *page, void *data,
Dscrub.c1 // SPDX-License-Identifier: GPL-2.0
13 #include "disk-io.h"
14 #include "ordered-data.h"
18 #include "dev-replace.h"
19 #include "check-integrity.h"
20 #include "rcu-string.h"
22 #include "block-group.h"
25 * This is only the first step towards a full-features scrub. It reads all
27 * is found or the extent cannot be read, good data will be written back if
31 * - In case an unrepairable extent is encountered, track which files are
[all …]
/linux-5.10/drivers/media/platform/omap/
Domap_voutdef.h14 #include <media/videobuf2-dma-contig.h>
15 #include <media/v4l2-ctrls.h>
119 /* common v4l buffer stuff -- must be first */
131 /* per-device data structure */
151 /* Lock to protect the shared data structures in ioctl */
155 bool mirror; member
186 return (vout->rotation == dss_rotation_90_degree || in is_rotation_90_or_270()
187 vout->rotation == dss_rotation_270_degree); in is_rotation_90_or_270()
195 return vout->rotation || vout->mirror; in is_rotation_enabled()
203 if (!vout->mirror) in calc_rotation()
[all …]
/linux-5.10/Documentation/admin-guide/device-mapper/
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 …]
/linux-5.10/drivers/pinctrl/
Dpinctrl-mcp23s08.c1 // SPDX-License-Identifier: GPL-2.0-only
18 #include <linux/pinctrl/pinconf-generic.h>
20 #include "pinctrl-mcp23s08.h"
138 return regmap_read(mcp->regmap, reg << mcp->reg_shift, val); in mcp_read()
143 return regmap_write(mcp->regmap, reg << mcp->reg_shift, val); in mcp_write()
150 return regmap_update_bits(mcp->regmap, reg << mcp->reg_shift, in mcp_set_mask()
207 return -ENOTSUPP; in mcp_pinctrl_get_group_pins()
225 unsigned int data, status; in mcp_pinconf_get() local
230 ret = mcp_read(mcp, MCP_GPPU, &data); in mcp_pinconf_get()
233 status = (data & BIT(pin)) ? 1 : 0; in mcp_pinconf_get()
[all …]
/linux-5.10/drivers/net/dsa/b53/
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
101 /* Power-down mode control */
120 * Override Ports 0-7 State on devices with xMII interfaces (8 bit)
218 /* Mirror capture control register (16 bit) */
224 /* Ingress mirror control register (16 bit) */
234 /* Ingress mirror divider register (16 bit) */
238 /* Ingress mirror MAC address register (48 bit) */
241 /* Egress mirror control register (16 bit) */
244 /* Egress mirror divider register (16 bit) */
[all …]
/linux-5.10/Documentation/m68k/
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-5.10/drivers/staging/media/atomisp/i2c/
Dov2680.h1 /* SPDX-License-Identifier: GPL-2.0 */
27 #include <media/v4l2-subdev.h>
28 #include <media/v4l2-device.h>
29 #include <media/v4l2-ctrls.h>
30 #include <linux/v4l2-mediabus.h>
31 #include <media/media-entity.h>
58 * bits 31-16: numerator, bits 15-0: denominator
63 * current f-number bits definition:
64 * bits 31-16: numerator, bits 15-0: denominator
69 * f-number range bits definition:
[all …]
/linux-5.10/drivers/mtd/nand/raw/
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-5.10/fs/ntfs/
Dmft.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * mft.c - NTFS kernel mft record operations. Part of the Linux-NTFS project.
5 * Copyright (c) 2001-2012 Anton Altaparmakov and Tuxera Inc.
27 * map_mft_record_page - map the page in which a specific mft record resides
39 ntfs_volume *vol = ni->vol; in map_mft_record_page()
40 struct inode *mft_vi = vol->mft_ino; in map_mft_record_page()
45 BUG_ON(ni->page); in map_mft_record_page()
52 index = (u64)ni->mft_no << vol->mft_record_size_bits >> in map_mft_record_page()
54 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in map_mft_record_page()
57 /* The maximum valid index into the page cache for $MFT's data. */ in map_mft_record_page()
[all …]
/linux-5.10/drivers/media/platform/mtk-mdp/
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 …]

12345678910>>...12