| /kernel/linux/linux-6.6/fs/nfs/flexfilelayout/ |
| D | flexfilelayout.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2014, Primary Data, Inc. All rights reserved. 49 struct nfs4_ff_layout_mirror *mirror); 58 pnfs_init_ds_commit_info(&ffl->commit_info); in ff_layout_alloc_layout_hdr() 59 INIT_LIST_HEAD(&ffl->error_list); in ff_layout_alloc_layout_hdr() 60 INIT_LIST_HEAD(&ffl->mirrors); in ff_layout_alloc_layout_hdr() 61 ffl->last_report_time = ktime_get(); in ff_layout_alloc_layout_hdr() 62 ffl->commit_info.ops = &ff_layout_commit_ops; in ff_layout_alloc_layout_hdr() 63 return &ffl->generic_hdr; in ff_layout_alloc_layout_hdr() 74 list_for_each_entry_safe(err, n, &ffl->error_list, list) { in ff_layout_free_layout_hdr() [all …]
|
| 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 …]
|
| D | flexfilelayout.h | 1 /* 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 …]
|
| /kernel/linux/linux-5.10/fs/nfs/flexfilelayout/ |
| D | flexfilelayout.c | 1 // 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 …]
|
| 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 */ 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 …]
|
| D | flexfilelayout.h | 1 /* 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
| 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. 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 …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
| 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. 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 …]
|
| /kernel/linux/linux-6.6/drivers/md/ |
| D | dm-raid1.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/md/ |
| D | dm-raid1.c | 3 * 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 …]
|
| /kernel/linux/linux-6.6/drivers/video/fbdev/omap/ |
| D | lcd_dma.c | 1 // 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> 28 #include <linux/soc/ti/omap1-soc.h> 29 #include <linux/soc/ti/omap1-io.h> [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
| D | lcd_dma.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/fs/nfs/ |
| D | pagelist.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/ |
| D | otx_cptpf_ucode.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx/ |
| D | otx_cptpf_ucode.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/fs/nfs/ |
| D | pagelist.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 i->req = req; in nfs_page_iter_page_init() 45 i->count = 0; in nfs_page_iter_page_init() 50 const struct nfs_page *req = i->req; in nfs_page_iter_page_advance() 51 size_t tmp = i->count + sz; in nfs_page_iter_page_advance() 53 i->count = (tmp < req->wb_bytes) ? tmp : req->wb_bytes; in nfs_page_iter_page_advance() 58 const struct nfs_page *req = i->req; in nfs_page_iter_page_get() 61 if (i->count != req->wb_bytes) { in nfs_page_iter_page_get() 62 size_t base = i->count + req->wb_pgbase; in nfs_page_iter_page_get() 63 size_t len = PAGE_SIZE - offset_in_page(base); in nfs_page_iter_page_get() [all …]
|
| /kernel/linux/linux-6.6/fs/btrfs/ |
| D | bio.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include "async-thread.h" 13 #include "check-integrity.h" 14 #include "dev-replace.h" 15 #include "rcu-string.h" 17 #include "file-item.h" 30 /* Is this a data path I/O that needs storage layer checksum and repair? */ 33 return bbio->inode && is_data_inode(&bbio->inode->vfs_inode); in is_data_bbio() 38 return is_data_bbio(bbio) && btrfs_op(&bbio->bio) == BTRFS_MAP_WRITE; in bbio_has_ordered_extent() 49 bbio->fs_info = fs_info; in btrfs_bio_init() [all …]
|
| D | scrub.c | 1 // 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" 21 #include "block-group.h" 25 #include "file-item.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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/staging/fbtft/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/staging/fbtft/ |
| 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 …]
|
| /kernel/linux/linux-5.10/fs/btrfs/ |
| D | disk-io.h | 1 /* 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,
|
| /kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx2/ |
| D | otx2_cptpf_ucode.c | 1 // SPDX-License-Identifier: GPL-2.0-only 32 if (eng_grp->g->engs_num < 0 || in get_cores_bmap() 33 eng_grp->g->engs_num > OTX2_CPT_MAX_ENGINES) { in get_cores_bmap() 35 eng_grp->g->engs_num); in get_cores_bmap() 40 if (eng_grp->engs[i].type) { in get_cores_bmap() 42 eng_grp->engs[i].bmap, in get_cores_bmap() 43 eng_grp->g->engs_num); in get_cores_bmap() 44 bmap.size = eng_grp->g->engs_num; in get_cores_bmap() 51 eng_grp->idx); in get_cores_bmap() 62 if (eng_grp->ucode[1].type) in is_2nd_ucode_used() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/media/platform/ti/omap/ |
| D | omap_voutdef.h | 14 #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 …]
|