/linux/drivers/md/ |
H A D | dm-raid1.c | 40 * Mirror set structures. 50 struct mirror { struct 81 atomic_t default_mirror; /* Default mirror */ 91 struct mirror mirror[]; member 151 struct mirror *m; 158 * Every mirror should look like this one. 163 * This is yucky. We squirrel the mirror struct away inside 167 static struct mirror *bio_get_m(struct bio *bio) in bio_get_m() 169 return (struct mirror *) bio->bi_next; in bio_get_m() 172 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 D | mirred.json | 4 "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 D | sparx5_mirror.c | 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 */ 92 /* Set the monitor port for this mirror */ [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | hmm-tests.c | 4 * 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 D | mirror_gre.sh | 7 # 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 D | mirror_gre_changes.sh | 211 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 D | mirror_gre_vlan_bridge_1q.sh | 4 # 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 D | mirror_gre_bridge_1d_vlan.sh | 7 # 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 D | mirror_gre_flower.sh | 9 # 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 D | mirror_gre_bridge_1q.sh | 4 # 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 D | mirror_gre_bridge_1d.sh | 4 # 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"
|
H A D | mirror_gre_neigh.sh | 81 test_span_gre_neigh 192.0.2.130 gt4 ingress 8 0 "mirror to gretap" 82 test_span_gre_neigh 192.0.2.130 gt4 egress 0 8 "mirror to gretap" 87 test_span_gre_neigh 2001:db8:2::2 gt6 ingress 8 0 "mirror to ip6gretap" 88 test_span_gre_neigh 2001:db8:2::2 gt6 egress 0 8 "mirror to ip6gretap"
|
H A D | mirror_gre_vlan.sh | 7 # Test for "tc action mirred egress mirror" that mirrors to a gretap netdevice 62 full_test_span_gre_dir gt4 ingress 8 0 "mirror to gretap" 63 full_test_span_gre_dir gt4 egress 0 8 "mirror to gretap"
|
H A D | mirror_vlan.sh | 7 # Test for "tc action mirred egress mirror" that mirrors to a vlan device. 74 log_test "$direction mirror to vlan" 96 log_test "$direction mirror tagged to vlan"
|
/linux/Documentation/devicetree/bindings/arm/mediatek/ |
H A D | mediatek,mt7622-pcie-mirror.yaml | 4 $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 D | omap_dmm_tiler.h | 51 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 D | tc_restrictions.sh | 144 # 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 D | mirror_gre.sh | 174 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 D | zoned.h | 63 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); 141 int mirror, int rw, u64 *bytenr_ret) in btrfs_sb_log_location_bdev() argument 143 *bytenr_ret = btrfs_sb_offset(mirror); in btrfs_sb_log_location_bdev() 147 static inline int btrfs_sb_log_location(struct btrfs_device *device, int mirror, in btrfs_sb_log_location() argument 150 *bytenr_ret = btrfs_sb_offset(mirror); in btrfs_sb_log_location() 154 static inline int btrfs_advance_sb_log(struct btrfs_device *device, int mirror) in btrfs_advance_sb_log() argument 159 static inline int btrfs_reset_sb_log_zones(struct block_device *bdev, int mirror) in btrfs_reset_sb_log_zones() argument
|
/linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/ |
H A D | switch-driver.rst | 187 …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/net/ethernet/mellanox/mlxsw/ |
H A D | core_acl_flex_actions.c | 1205 * 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 …]
|
H A D | spectrum_matchall.c | 36 if (!mall_entry->mirror.to_dev) { in mlxsw_sp_mall_port_mirror_add() 41 agent_parms.to_dev = mall_entry->mirror.to_dev; in mlxsw_sp_mall_port_mirror_add() 42 err = mlxsw_sp_span_agent_get(mlxsw_sp, &mall_entry->mirror.span_id, in mlxsw_sp_mall_port_mirror_add() 58 parms.span_id = mall_entry->mirror.span_id; in mlxsw_sp_mall_port_mirror_add() 72 mlxsw_sp_span_agent_put(mlxsw_sp, mall_entry->mirror.span_id); in mlxsw_sp_mall_port_mirror_add() 86 parms.span_id = mall_entry->mirror.span_id; in mlxsw_sp_mall_port_mirror_del() 89 mlxsw_sp_span_agent_put(mlxsw_sp, mall_entry->mirror.span_id); in mlxsw_sp_mall_port_mirror_del() 271 mall_entry->mirror.to_dev = act->dev; in mlxsw_sp_mall_replace() 418 .to_dev = NULL, /* Mirror to CPU. */ in mlxsw_sp2_mall_sample_add()
|
/linux/drivers/video/fbdev/omap2/omapfb/dss/ |
H A D | display-sysfs.c | 171 int mirror; in display_mirror_show() local 174 mirror = dssdev->driver->get_mirror(dssdev); in display_mirror_show() 175 return sysfs_emit(buf, "%u\n", mirror); in display_mirror_show() 182 bool mirror; in display_mirror_store() local 187 r = kstrtobool(buf, &mirror); in display_mirror_store() 191 r = dssdev->driver->set_mirror(dssdev, mirror); in display_mirror_store() 253 static DISPLAY_ATTR(mirror, S_IRUGO|S_IWUSR,
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch-flower.c | 481 /* Also remove it from the list of mirror filters */ in dpaa2_switch_block_remove_mirror() 485 /* If this was the last mirror filter, then unset the mirror port */ in dpaa2_switch_block_remove_mirror() 607 /* We have a single mirror port but can configure egress mirroring on in dpaa2_switch_cls_flower_replace_mirror() 613 "Multiple mirror ports not supported"); in dpaa2_switch_cls_flower_replace_mirror() 622 /* Make sure that we don't already have a mirror rule with the same in dpaa2_switch_cls_flower_replace_mirror() 631 "VLAN mirror filter already installed"); in dpaa2_switch_cls_flower_replace_mirror() 686 /* If not, then it has to be a mirror */ in dpaa2_switch_cls_flower_destroy() 760 /* We have a single mirror port but can configure egress mirroring on in dpaa2_switch_cls_matchall_replace_mirror() 766 "Multiple mirror ports not supported"); in dpaa2_switch_cls_matchall_replace_mirror() 770 /* Make sure that we don't already have a mirror rule with the same in dpaa2_switch_cls_matchall_replace_mirror() [all …]
|
/linux/drivers/staging/fbtft/ |
H A D | fb_uc1611.c | 168 | (0x0 & 0x1) << 2 /* Mirror Y OFF */ in set_var() 169 | (0x0 & 0x1) << 1 /* Mirror X OFF */ in set_var() 181 | (0x1 << 2) /* Mirror Y ON */ in set_var() 182 | (0x0 & 0x1) << 1 /* Mirror X OFF */ in set_var() 194 | (0x1 << 2) /* Mirror Y ON */ in set_var() 195 | (0x1 << 1) /* Mirror X ON */ in set_var() 207 | (0x0 & 0x1) << 2 /* Mirror Y OFF */ in set_var() 208 | (0x1 << 1) /* Mirror X ON */ in set_var()
|