Home
last modified time | relevance | path

Searched full:mirror (Results 1 – 25 of 386) sorted by relevance

12345678910>>...16

/linux/fs/nfs/flexfilelayout/
H A Dflexfilelayoutdev.c253 struct nfs4_ff_layout_mirror *mirror, u64 offset, in ff_layout_track_ds_error() argument
262 if (IS_ERR_OR_NULL(mirror->mirror_ds)) in ff_layout_track_ds_error()
274 nfs4_stateid_copy(&dserr->stateid, &mirror->stateid); in ff_layout_track_ds_error()
275 memcpy(&dserr->deviceid, &mirror->mirror_ds->id_node.deviceid, in ff_layout_track_ds_error()
285 ff_layout_get_mirror_cred(struct nfs4_ff_layout_mirror *mirror, u32 iomode) in ff_layout_get_mirror_cred() argument
290 pcred = &mirror->ro_cred; in ff_layout_get_mirror_cred()
292 pcred = &mirror->rw_cred; in ff_layout_get_mirror_cred()
307 nfs4_ff_layout_select_ds_fh(struct nfs4_ff_layout_mirror *mirror) in nfs4_ff_layout_select_ds_fh() argument
310 return &mirror->fh_versions[0]; in nfs4_ff_layout_select_ds_fh()
314 nfs4_ff_layout_select_ds_stateid(const struct nfs4_ff_layout_mirror *mirror, in nfs4_ff_layout_select_ds_stateid() argument
[all …]
H A Dflexfilelayout.c50 struct nfs4_ff_layout_mirror *mirror);
205 struct nfs4_ff_layout_mirror *mirror) in ff_layout_add_mirror() argument
213 if (memcmp(&mirror->devid, &pos->devid, sizeof(pos->devid)) != 0) in ff_layout_add_mirror()
215 if (!ff_mirror_match_fh(mirror, pos)) in ff_layout_add_mirror()
222 list_add(&mirror->mirrors, &ff_layout->mirrors); in ff_layout_add_mirror()
223 mirror->layout = lo; in ff_layout_add_mirror()
225 return mirror; in ff_layout_add_mirror()
229 ff_layout_remove_mirror(struct nfs4_ff_layout_mirror *mirror) in ff_layout_remove_mirror() argument
232 if (mirror->layout == NULL) in ff_layout_remove_mirror()
234 inode = mirror->layout->plh_inode; in ff_layout_remove_mirror()
[all …]
H A Dflexfilelayout.h20 /* XXX: Let's filter out insanely large mirror count for now to avoid oom
45 struct list_head list; /* linked in mirror error_list */
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()
184 nfs4_ff_layout_ds_version(const struct nfs4_ff_layout_mirror *mirror) in nfs4_ff_layout_ds_version() argument
186 return mirror->mirror_ds->ds_versions[0].version; in nfs4_ff_layout_ds_version()
195 struct nfs4_ff_layout_mirror *mirror, u64 offset,
206 nfs4_ff_layout_select_ds_fh(struct nfs4_ff_layout_mirror *mirror);
208 nfs4_ff_layout_select_ds_stateid(const struct nfs4_ff_layout_mirror *mirror,
[all …]
/linux/drivers/md/
H A Ddm-raid1.c40 * Mirror set structures.
50 struct mirror { struct
81 atomic_t default_mirror; /* Default mirror */
91 struct mirror mirror[]; member
152 struct mirror *m;
159 * Every mirror should look like this one.
164 * This is yucky. We squirrel the mirror struct away inside
168 static struct mirror *bio_get_m(struct bio *bio) in bio_get_m()
170 return (struct mirror *) bio->bi_next; in bio_get_m()
173 static void bio_set_m(struct bio *bio, struct mirror *m) in bio_set_m()
[all …]
/linux/tools/testing/selftests/tc-testing/tc-tests/actions/
H A Dmirred.json4 "name": "Add mirred mirror to egress action",
20 "cmdUnderTest": "$TC actions add action mirred egress mirror index 1 dev lo",
23 "matchPattern": "action order [0-9]*: mirred \\(Egress Mirror to device lo\\).*index 1 ref",
74 "$TC actions add action mirred egress mirror index 1 dev lo",
80 "matchPattern": "[Mirror|Redirect] to device lo",
104 "cmdUnderTest": "$TC actions add action mirred inbound mirror index 20 dev lo",
158 "cmdUnderTest": "$TC actions add action mirred egress mirror index 20 dev eltoh",
186 "cmdUnderTest": "$TC actions add action mirred egress mirror index 15 dev lo",
197 "name": "Add mirred mirror action with control pass",
213 "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pass index 1",
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_mirror.c15 #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 */
92 /* Set the monitor port for this mirror */
[all …]
/linux/tools/testing/selftests/mm/
H A Dhmm-tests.c4 * the linux kernel to help device drivers mirror a process address space in
39 void *mirror; member
188 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd()
212 free(buffer->mirror); in hmm_buffer_free()
311 buffer->mirror = malloc(size); in TEST_F()
312 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
343 ptr = buffer->mirror; in TEST_F()
374 buffer->mirror = malloc(size); in TEST_F()
375 ASSERT_NE(buffer->mirror, NULL); in TEST_F()
387 /* Initialize mirror buffer so we can verify it isn't written. */ in TEST_F()
[all …]
/linux/tools/testing/selftests/net/forwarding/
H A Dmirror_gre.sh7 # Test for "tc action mirred egress mirror" when the device to mirror to is a
112 full_test_span_gre_dir gt4 ingress 8 0 "mirror to gretap"
113 full_test_span_gre_dir gt4 egress 0 8 "mirror to gretap"
118 full_test_span_gre_dir gt6 ingress 8 0 "mirror to ip6gretap"
119 full_test_span_gre_dir gt6 egress 0 8 "mirror to ip6gretap"
124 test_span_gre_mac gt4 ingress "mirror to gretap"
125 test_span_gre_mac gt4 egress "mirror to gretap"
130 test_span_gre_mac gt6 ingress "mirror to ip6gretap"
131 test_span_gre_mac gt6 egress "mirror to ip6gretap"
H A Dmirror_gre_changes.sh211 test_span_gre_ttl gt4 gretap ip "mirror to gretap"
212 test_span_gre_ttl gt6 ip6gretap ipv6 "mirror to ip6gretap"
217 test_span_gre_tun_up gt4 "mirror to gretap"
218 test_span_gre_tun_up gt6 "mirror to ip6gretap"
223 test_span_gre_egress_up gt4 192.0.2.130 "mirror to gretap"
224 test_span_gre_egress_up gt6 2001:db8:2::2 "mirror to ip6gretap"
229 test_span_gre_remote_ip gt4 gretap 192.0.2.130 192.0.2.132 "mirror to gretap"
230 test_span_gre_remote_ip gt6 ip6gretap 2001:db8:2::2 2001:db8:2::4 "mirror to ip6gretap"
236 192.0.2.129 192.0.2.130 "mirror to gretap"
238 2001:db8:2::1 2001:db8:2::2 "mirror to ip6gretap"
[all …]
H A Dmirror_gre_vlan_bridge_1q.sh4 # Test for "tc action mirred egress mirror" when the underlay route points at a
14 # | SW o--> mirred egress mirror dev {gt4,gt6} | |
139 "mirror to gretap"
145 "mirror to ip6gretap"
175 test_span_gre_forbidden_cpu gt4 "mirror to gretap"
180 test_span_gre_forbidden_cpu gt6 "mirror to ip6gretap"
210 test_span_gre_forbidden_egress gt4 "mirror to gretap"
215 test_span_gre_forbidden_egress gt6 "mirror to ip6gretap"
254 test_span_gre_untagged_egress gt4 ip "mirror to gretap"
259 test_span_gre_untagged_egress gt6 ipv6 "mirror to ip6gretap"
[all …]
H A Dmirror_gre_bridge_1d_vlan.sh7 # Test for "tc action mirred egress mirror" when the underlay route points at a
79 "mirror to gretap"
85 "mirror to ip6gretap"
90 # Sometimes after mirror installation, the neighbor's state is not valid.
97 full_test_span_gre_stp gt4 $swp3.555 "mirror to gretap"
104 full_test_span_gre_stp gt6 $swp3.555 "mirror to ip6gretap"
H A Dmirror_gre_flower.sh9 # addresses is configured with mirror action. It is expected that when pinging
99 # Test lack of mirroring after ACL mirror is uninstalled.
107 full_test_span_gre_dir_acl gt4 ingress 8 0 192.0.2.4 "ACL mirror to gretap"
108 full_test_span_gre_dir_acl gt4 egress 0 8 192.0.2.3 "ACL mirror to gretap"
113 full_test_span_gre_dir_acl gt6 ingress 8 0 192.0.2.4 "ACL mirror to ip6gretap"
114 full_test_span_gre_dir_acl gt6 egress 0 8 192.0.2.3 "ACL mirror to ip6gretap"
H A Dmirror_gre_bridge_1q.sh4 # Test for "tc action mirred egress mirror" when the underlay route points at a
7 # This test uses standard topology for testing mirror-to-gretap. See
17 # | SW o---> mirror | |
95 full_test_span_gre_dir gt4 ingress 8 0 "mirror to gretap"
96 full_test_span_gre_dir gt4 egress 0 8 "mirror to gretap"
103 full_test_span_gre_dir gt6 ingress 8 0 "mirror to ip6gretap"
104 full_test_span_gre_dir gt6 egress 0 8 "mirror to ip6gretap"
H A Dmirror_gre_bridge_1d.sh4 # Test for "tc action mirred egress mirror" when the underlay route points at a
7 # This test uses standard topology for testing mirror-to-gretap. See
17 # | SW o---> mirror | |
99 full_test_span_gre_dir gt4 ingress 8 0 "mirror to gretap"
100 full_test_span_gre_dir gt4 egress 0 8 "mirror to gretap"
107 full_test_span_gre_dir gt6 ingress 8 0 "mirror to ip6gretap"
108 full_test_span_gre_dir gt6 egress 0 8 "mirror to ip6gretap"
/linux/fs/nfs/
H A Dpagelist.c99 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in nfs_pgheader_init() local
102 hdr->req = nfs_list_entry(mirror->pg_list.next); in nfs_pgheader_init()
106 hdr->good_bytes = mirror->pg_count; in nfs_pgheader_init()
613 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in nfs_generic_pg_test() local
616 if (mirror->pg_count > mirror->pg_bsize) { in nfs_generic_pg_test()
626 if (((mirror->pg_count + req->wb_bytes) >> PAGE_SHIFT) * in nfs_generic_pg_test()
630 return min(mirror->pg_bsize - mirror->pg_count, (size_t)req->wb_bytes); in nfs_generic_pg_test()
797 static void nfs_pageio_mirror_init(struct nfs_pgio_mirror *mirror, in nfs_pageio_mirror_init() argument
800 INIT_LIST_HEAD(&mirror->pg_list); in nfs_pageio_mirror_init()
801 mirror->pg_bytes_written = 0; in nfs_pageio_mirror_init()
[all …]
/linux/Documentation/devicetree/bindings/arm/mediatek/
H A Dmediatek,mt7622-pcie-mirror.yaml4 $id: http://devicetree.org/schemas/arm/mediatek/mediatek,mt7622-pcie-mirror.yaml#
7 title: MediaTek PCIE Mirror Controller for MT7622
14 The mediatek PCIE mirror provides a configuration interface for PCIE
21 - mediatek,mt7622-pcie-mirror
38 pcie_mirror: pcie-mirror@10000400 {
39 compatible = "mediatek,mt7622-pcie-mirror", "syscon";
/linux/drivers/gpu/drm/omapdrm/
H A Domap_dmm_tiler.h51 0 0 1 0-degree view with vertical mirror 180-degree view with horizontal mirror
52 0 1 0 0-degree view with horizontal mirror 180-degree view with vertical mirror
54 1 0 0 90-degree view with vertical mirror 270-degree view with horizontal mirror
57 1 1 1 90-degree view with horizontal mirror 270-degree view with vertical mirror
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_restrictions.sh144 # It is forbidden in mlxsw driver to have multiple mirror
151 action mirred egress mirror dev $swp2
152 check_err $? "Failed to add rule with single mirror action"
158 action mirred egress mirror dev $swp2 \
159 action mirred egress mirror dev $swp1
160 check_fail $? "Incorrect success to add rule with two mirror actions"
164 log_test "multi mirror"
199 # On ingress, all matchall-mirror and matchall-sample
239 matchall_behind_flower_ingress_test "mirror" "mirred egress mirror dev $swp2"
254 # On egress, all matchall-mirror rules have to be behind the flower rules
[all …]
H A Dmirror_gre.sh174 test_span_failable gt6-key "mirror to keyful gretap"
179 test_span_failable gt6-soft "mirror to gretap w/ soft underlay"
184 test_span_gre_tos_fixed gt4 gretap "mirror to gretap"
185 test_span_gre_tos_fixed gt6 ip6gretap "mirror to ip6gretap"
191 test_span_gre_ttl_inherit gt4 gretap "mirror to gretap"
192 test_span_gre_ttl_inherit gt6 ip6gretap "mirror to ip6gretap"
/linux/fs/btrfs/
H A Dzoned.h63 int btrfs_sb_log_location_bdev(struct block_device *bdev, int mirror, int rw,
65 int btrfs_sb_log_location(struct btrfs_device *device, int mirror, int rw,
67 int btrfs_advance_sb_log(struct btrfs_device *device, int mirror);
68 int btrfs_reset_sb_log_zones(struct block_device *bdev, int mirror);
140 int mirror, int rw, u64 *bytenr_ret) in btrfs_sb_log_location_bdev() argument
142 *bytenr_ret = btrfs_sb_offset(mirror); in btrfs_sb_log_location_bdev()
146 static inline int btrfs_sb_log_location(struct btrfs_device *device, int mirror, in btrfs_sb_log_location() argument
149 *bytenr_ret = btrfs_sb_offset(mirror); in btrfs_sb_log_location()
153 static inline int btrfs_advance_sb_log(struct btrfs_device *device, int mirror) in btrfs_advance_sb_log() argument
158 static inline int btrfs_reset_sb_log_zones(struct block_device *bdev, int mirror) in btrfs_reset_sb_log_zones() argument
H A Dbio.c174 int mirror = repair_bbio->mirror_num; in btrfs_end_repair_bio() local
187 mirror = next_repair_mirror(fbio, mirror); in btrfs_end_repair_bio()
188 if (mirror == fbio->bbio->mirror_num) { in btrfs_end_repair_bio()
189 btrfs_debug(fs_info, "no mirror left"); in btrfs_end_repair_bio()
194 btrfs_submit_bbio(repair_bbio, mirror); in btrfs_end_repair_bio()
199 mirror = prev_repair_mirror(fbio, mirror); in btrfs_end_repair_bio()
203 page_folio(bv->bv_page), bv->bv_offset, mirror); in btrfs_end_repair_bio()
204 } while (mirror != fbio->bbio->mirror_num); in btrfs_end_repair_bio()
212 * Try to kick off a repair read to the next available mirror for a bad sector.
215 * but also tries to write the good data back to the bad mirror(s) when a
[all …]
/linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
H A Dswitch-driver.rst187 …add block 1 ingress protocol 802.1q flower skip_sw vlan_prio 3 action mirred egress mirror dev eth6
196 …add block 1 ingress protocol 802.1q flower skip_sw vlan_id 200 action mirred egress mirror dev eth6
201 …add block 1 ingress protocol 802.1q flower skip_sw vlan_id 200 action mirred egress mirror dev eth6
204 …add block 1 ingress protocol 802.1q flower skip_sw vlan_id 200 action mirred egress mirror dev eth6
208 packet will reach the mirror port, if the VLAN found in the packet is not
212 mirror rules can be installed but their ''to'' port has to be the same::
214 …add block 1 ingress protocol 802.1q flower skip_sw vlan_id 200 action mirred egress mirror dev eth6
215 …add block 1 ingress protocol 802.1q flower skip_sw vlan_id 100 action mirred egress mirror dev eth7
216 Error: fsl_dpaa2_switch: Multiple mirror ports not supported.
/linux/drivers/video/fbdev/omap/
H A Dlcd_dma.c62 int mirror; member
102 void omap_set_lcd_dma_b1_mirror(int mirror) in omap_set_lcd_dma_b1_mirror() argument
105 printk(KERN_ERR "DMA mirror is not supported in 1510 mode\n"); in omap_set_lcd_dma_b1_mirror()
108 lcd_dma.mirror = mirror; in omap_set_lcd_dma_b1_mirror()
169 if (!lcd_dma.mirror) { in set_b1_regs()
189 if (!lcd_dma.mirror) { in set_b1_regs()
204 if (!lcd_dma.mirror) { in set_b1_regs()
219 if (!lcd_dma.mirror) { in set_b1_regs()
270 if (!(lcd_dma.rotate || lcd_dma.mirror || in set_b1_regs()
321 lcd_dma.mirror = 0; in omap_request_lcd_dma()
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptpf_ucode.c186 if (eng_grp->mirror.is_ena) in cpt_set_ucode_base()
188 eng_grp->g->grp[eng_grp->mirror.idx].ucode[0].align_dma; in cpt_set_ucode_base()
522 if (eng_grp->mirror.is_ena) { in print_ucode_info()
524 eng_grp->g->grp[eng_grp->mirror.idx].ucode[0].ver_str, in print_ucode_info()
525 eng_grp->mirror.idx); in print_ucode_info()
546 if (eng_grp->mirror.is_ena) in print_engs_info()
548 &eng_grp->g->grp[eng_grp->mirror.idx], in print_engs_info()
565 eng_grp->mirror.idx); in print_engs_info()
620 mirrored_grp = &eng_grps->grp[grp->mirror.idx]; in print_dbg_info()
622 grp->mirror.is_ena ? in print_dbg_info()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_acl_flex_actions.c1205 * Mirror agent.
1210 * Mirror enable.
1362 struct mlxsw_afa_mirror *mirror) in mlxsw_afa_mirror_destroy() argument
1364 mlxsw_afa_resource_del(&mirror->resource); in mlxsw_afa_mirror_destroy()
1366 mirror->local_in_port, in mlxsw_afa_mirror_destroy()
1367 mirror->span_id, in mlxsw_afa_mirror_destroy()
1368 mirror->ingress); in mlxsw_afa_mirror_destroy()
1369 kfree(mirror); in mlxsw_afa_mirror_destroy()
1376 struct mlxsw_afa_mirror *mirror; in mlxsw_afa_mirror_destructor() local
1378 mirror = container_of(resource, struct mlxsw_afa_mirror, resource); in mlxsw_afa_mirror_destructor()
[all …]

12345678910>>...16