| /linux/fs/nfs/flexfilelayout/ |
| H A D | flexfilelayout.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2014, Primary Data, Inc. All rights reserved. 59 pnfs_init_ds_commit_info(&ffl->commit_info); in ff_layout_alloc_layout_hdr() 60 INIT_LIST_HEAD(&ffl->error_list); in ff_layout_alloc_layout_hdr() 61 INIT_LIST_HEAD(&ffl->mirrors); in ff_layout_alloc_layout_hdr() 62 ffl->last_report_time = ktime_get(); in ff_layout_alloc_layout_hdr() 63 ffl->commit_info.ops = &ff_layout_commit_ops; in ff_layout_alloc_layout_hdr() 64 return &ffl->generic_hdr; in ff_layout_alloc_layout_hdr() 75 list_for_each_entry_safe(err, n, &ffl->error_list, list) { in ff_layout_free_layout_hdr() 76 list_del(&err->list); in ff_layout_free_layout_hdr() [all …]
|
| H A D | flexfilelayoutdev.c | 1 // 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 */ 52 struct net *net = server->nfs_client->cl_net; in nfs4_ff_alloc_deviceid_node() 56 int i, ret = -ENOMEM; in nfs4_ff_alloc_deviceid_node() 67 nfs4_init_deviceid_node(&new_ds->id_node, in nfs4_ff_alloc_deviceid_node() [all …]
|
| /linux/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_mirror.c | 1 // 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/tools/testing/selftests/mm/ |
| H A D | hmm-tests.c | 1 // 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. 47 void *mirror; 68 #define ALIGN(x, a) (((x) + (a - 1)) & (~((a) - 1))) 149 self->page_size = sysconf(_SC_PAGE_SIZE); in FIXTURE_SETUP() 150 self->page_shif in FIXTURE_SETUP() 43 void *mirror; global() member [all...] |
| /linux/fs/btrfs/ |
| H A D | scrub.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "disk-io.h" 13 #include "ordered-data.h" 17 #include "dev-replace.h" 19 #include "block-group.h" 23 #include "file-item.h" 25 #include "raid-stripe-tree.h" 28 * This is only the first step towards a full-features scrub. It reads all 30 * is found or the extent cannot be read, good data will be written back if 34 * - In case an unrepairable extent is encountered, track which files are [all …]
|
| H A D | disk-io.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include "ordered-data.h" 38 static inline u64 btrfs_sb_offset(int mirror) in btrfs_sb_offset() argument 41 if (mirror) in btrfs_sb_offset() 42 return start << (BTRFS_SUPER_MIRROR_SHIFT * mirror); in btrfs_sb_offset() 104 if (refcount_inc_not_zero(&root->refs)) in btrfs_grab_root()
|
| H A D | zoned.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "disk-io.h" 13 #include "block-group.h" 14 #include "dev-replace.h" 15 #include "space-info.h" 25 #define WP_MISSING_DEV ((u64)-1) 27 #define WP_CONVENTIONAL ((u64)-2) 32 * - primary superblock: 0B (zone 0) 33 * - first copy: 512G (zone starting at that offset) 34 * - second copy: 4T (zone starting at that offset) [all …]
|
| /linux/fs/nfsd/ |
| H A D | flexfilelayoutxdr.c | 1 // SPDX-License-Identifier: GPL-2.0 22 const struct pnfs_ff_layout *fl = lgp->lg_content; in nfsd4_ff_encode_layoutget() 33 fh_len = 4 + xdr_align_size(fl->fh.size); in nfsd4_ff_encode_layoutget() 35 uid.len = sprintf(uid.buf, "%u", from_kuid(&init_user_ns, fl->uid)); in nfsd4_ff_encode_layoutget() 36 gid.len = sprintf(gid.buf, "%u", from_kgid(&init_user_ns, fl->gid)); in nfsd4_ff_encode_layoutget() 38 /* data server entry: deviceid + efficiency + stateid + fh list + in nfsd4_ff_encode_layoutget() 46 /* mirror: ds_count + ds */ in nfsd4_ff_encode_layoutget() 49 /* stripe_unit + mirror_count + mirror */ in nfsd4_ff_encode_layoutget() 59 *p++ = cpu_to_be32(1); /* single mirror */ in nfsd4_ff_encode_layoutget() 60 *p++ = cpu_to_be32(1); /* single data server */ in nfsd4_ff_encode_layoutget() [all …]
|
| /linux/drivers/staging/fbtft/ |
| H A D | fb_uc1611.c | 1 // 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 …]
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | core_acl_flex_actions.c | 1 // 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 D | dm-clone.rst | 1 .. 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 D | dm-init.rst | 5 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/md/ |
| H A D | raid1.c | 1 // 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 …]
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-mcp23s08.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 #include <linux/pinctrl/pinconf-generic.h> 21 #include "pinctrl-mcp23s08.h" 76 .disable_locking = true, /* mcp->lock protects the regmap */ 111 .disable_locking = true, /* mcp->lock protects the regmap */ 117 return regmap_read(mcp->regmap, reg << mcp->reg_shift, val); in mcp_read() 122 return regmap_write(mcp->regmap, reg << mcp->reg_shift, val); in mcp_write() 128 return regmap_update_bits(mcp->regmap, reg << mcp->reg_shift, in mcp_update_bits() 185 return -ENOTSUPP; in mcp_pinctrl_get_group_pins() 203 unsigned int data, status; in mcp_pinconf_get() local [all …]
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz9477.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2017-2025 Microchip Technology Inc. 31 struct dsa_mall_mirror_tc_entry *mirror, 34 struct dsa_mall_mirror_tc_entry *mirror); 36 dsa_fdb_dump_cb_t *cb, void *data);
|
| /linux/Documentation/devicetree/bindings/display/ |
| H A D | lvds.yaml | 1 # 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/mtd/nand/raw/ |
| H A D | nand_bbt.c | 1 // 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/drivers/net/dsa/b53/ |
| H A D | b53_regs.h | 5 * Copyright (C) 2011-2013 Jonas Gorski <jogo@openwrt.org> 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 106 /* Power-down mode control (8 bit) */ 133 * Override Ports 0-7 State on devices with xMII interfaces (8 bit) 239 /* Mirror capture control register (16 bit) */ 245 /* Ingress mirror control register (16 bit) */ 255 /* Ingress mirror divider register (16 bit) */ 259 /* Ingress mirror MAC address register (48 bit) */ 262 /* Egress mirror control register (16 bit) */ 265 /* Egress mirror divider register (16 bit) */ [all …]
|
| /linux/Documentation/arch/m68k/ |
| H A D | buddha-driver.rst | 8 ------------------------------------------------------------------------ 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 D | otx_cptpf_mbox.c | 1 // 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/drivers/media/platform/mediatek/mdp/ |
| H A D | mtk_mdp_core.h | 1 /* 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/filesystems/ |
| H A D | fiemap.rst | 1 .. 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/fs/ntfs/ |
| H A D | super.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2001-2012 Anton Altaparmakov and Tuxera Inc. 11 #include <linux/backing-dev.h> 41 { "remount-ro", ON_ERRORS_REMOUNT_RO }, 125 struct ntfs_volume *vol = fc->s_fs_info; in ntfs_parse_param() 135 vol->uid = make_kuid(current_user_ns(), result.uint_32); in ntfs_parse_param() 138 vol->gid = make_kgid(current_user_ns(), result.uint_32); in ntfs_parse_param() 141 vol->fmask = vol->dmask = result.uint_32; in ntfs_parse_param() 144 vol->dmask = result.uint_32; in ntfs_parse_param() 147 vol->fmask = result.uint_32; in ntfs_parse_param() [all …]
|
| /linux/drivers/media/platform/ti/omap/ |
| H A D | omap_vout.c | 4 * Copyright (C) 2005-2010 Texas Instruments. 11 * Video-for-Linux (Version 2) camera capture driver for 20 * 20-APR-2006 Khasim Modified VRFB based Rotation, 21 * The image data is always read from 0 degree 24 * 4-DEC-2006 Jian Changed to support better memory management 26 * 17-Nov-2008 Hardik Changed driver to use video_ioctl2 28 * 23-Feb-2010 Vaibhav H Modified to use new DSS2 interface 40 #include <linux/dma-mapping.h> 43 #include <media/v4l2-device.h> 44 #include <media/v4l2-ioctl.h> [all …]
|
| /linux/drivers/media/usb/gspca/gl860/ |
| H A D | gl860.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * GSPCA by Jean-Francois Moine <http://moinejf.free.fr> 30 u8 *data, int len); 52 container_of(ctrl->handler, struct gspca_dev, ctrl_handler); in sd_s_ctrl() 55 switch (ctrl->id) { in sd_s_ctrl() 57 sd->vcur.brightness = ctrl->val; in sd_s_ctrl() 60 sd->vcur.contrast = ctrl->val; in sd_s_ctrl() 63 sd->vcur.saturation = ctrl->val; in sd_s_ctrl() 66 sd->vcur.hue = ctrl->val; in sd_s_ctrl() 69 sd->vcur.gamma = ctrl->val; in sd_s_ctrl() [all …]
|