Home
last modified time | relevance | path

Searched full:vid (Results 1 – 25 of 955) sorted by relevance

12345678910>>...39

/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_vlan.c26 static void lan966x_vlan_set_mask(struct lan966x *lan966x, u16 vid) in lan966x_vlan_set_mask() argument
28 u16 mask = lan966x->vlan_mask[vid]; in lan966x_vlan_set_mask()
33 /* Set flags and the VID to configure */ in lan966x_vlan_set_mask()
35 ANA_VLANTIDX_V_INDEX_SET(vid), in lan966x_vlan_set_mask()
54 static void lan966x_vlan_port_add_vlan_mask(struct lan966x_port *port, u16 vid) in lan966x_vlan_port_add_vlan_mask() argument
59 lan966x->vlan_mask[vid] |= BIT(p); in lan966x_vlan_port_add_vlan_mask()
60 lan966x_vlan_set_mask(lan966x, vid); in lan966x_vlan_port_add_vlan_mask()
63 static void lan966x_vlan_port_del_vlan_mask(struct lan966x_port *port, u16 vid) in lan966x_vlan_port_del_vlan_mask() argument
68 lan966x->vlan_mask[vid] &= ~BIT(p); in lan966x_vlan_port_del_vlan_mask()
69 lan966x_vlan_set_mask(lan966x, vid); in lan966x_vlan_port_del_vlan_mask()
[all …]
Dlan966x_mac.c22 u16 vid; member
54 unsigned int vid) in lan966x_mac_select() argument
61 mach |= vid << 16; in lan966x_mac_select()
76 unsigned int vid, in __lan966x_mac_learn_locked() argument
81 lan966x_mac_select(lan966x, mac, vid); in __lan966x_mac_learn_locked()
98 unsigned int vid, in __lan966x_mac_learn() argument
104 ret = __lan966x_mac_learn_locked(lan966x, pgid, cpu_copy, mac, vid, type); in __lan966x_mac_learn()
116 unsigned int vid, in lan966x_mac_ip_learn() argument
121 return __lan966x_mac_learn(lan966x, 0, cpu_copy, mac, vid, type); in lan966x_mac_ip_learn()
126 unsigned int vid, in lan966x_mac_learn() argument
[all …]
Dlan966x_fdb.c19 u16 vid; member
30 if (fdb_entry->vid == fdb_info->vid && in lan966x_fdb_find_entry()
54 fdb_entry->vid = fdb_info->vid; in lan966x_fdb_add_entry()
66 if (fdb_entry->vid == fdb_info->vid && in lan966x_fdb_del_entry()
81 void lan966x_fdb_write_entries(struct lan966x *lan966x, u16 vid) in lan966x_fdb_write_entries() argument
86 if (fdb_entry->vid != vid) in lan966x_fdb_write_entries()
89 lan966x_mac_cpu_learn(lan966x, fdb_entry->mac, fdb_entry->vid); in lan966x_fdb_write_entries()
93 void lan966x_fdb_erase_entries(struct lan966x *lan966x, u16 vid) in lan966x_fdb_erase_entries() argument
98 if (fdb_entry->vid != vid) in lan966x_fdb_erase_entries()
101 lan966x_mac_cpu_forget(lan966x, fdb_entry->mac, fdb_entry->vid); in lan966x_fdb_erase_entries()
[all …]
Dlan966x_mdb.c17 u16 vid; member
58 u16 vid) in lan966x_mdb_entry_get() argument
64 mdb_entry->vid == vid) in lan966x_mdb_entry_get()
82 mdb_entry->vid = mdb->vid; in lan966x_mdb_entry_add()
115 mdb_entry = lan966x_mdb_entry_get(lan966x, mdb->addr, mdb->vid); in lan966x_mdb_ip_add()
122 lan966x_mac_forget(lan966x, mac, mdb_entry->vid, type); in lan966x_mdb_ip_add()
131 if (lan966x_vlan_cpu_member_cpu_vlan_mask(lan966x, mdb_entry->vid) && in lan966x_mdb_ip_add()
137 mac, mdb_entry->vid, type); in lan966x_mdb_ip_add()
150 mdb_entry = lan966x_mdb_entry_get(lan966x, mdb->addr, mdb->vid); in lan966x_mdb_ip_del()
167 lan966x_mac_forget(lan966x, mac, mdb_entry->vid, type); in lan966x_mdb_ip_del()
[all …]
/linux-6.12.1/net/dsa/
Dtrace.h26 TP_PROTO(const struct dsa_port *dp, const unsigned char *addr, u16 vid,
29 TP_ARGS(dp, addr, vid, db, err),
36 __field(u16, vid)
46 __entry->vid = vid;
51 TP_printk("%s %s port %d addr %pM vid %u db \"%s\" err %d",
53 __entry->vid, __entry->db_buf, __entry->err)
62 u16 vid, const struct dsa_db *db, int err),
63 TP_ARGS(dp, addr, vid, db, err));
67 u16 vid, const struct dsa_db *db, int err),
68 TP_ARGS(dp, addr, vid, db, err));
[all …]
Dtag_8021q.c15 /* Binary structure of the fake 12-bit VID field (when the TPID is
23 * RSV - VID[11:10]:
26 * SWITCH_ID - VID[8:6]:
29 * VBID - { VID[9], VID[5:4] }:
34 * PORT - VID[3:0]:
69 u16 vid; member
76 /* EtherType of RX VID, used for filtering on conduit interface */
89 /* Returns the VID that will be installed as pvid for this switch port, sent as
99 /* Returns the decoded switch ID from the RX VID. */
100 int dsa_8021q_rx_switch_id(u16 vid) in dsa_8021q_rx_switch_id() argument
[all …]
/linux-6.12.1/tools/testing/selftests/net/forwarding/
Dbridge_mdb.sh21 # | | vid 10 vid 10 | |
22 # | | vid 20 vid 20 | |
69 bridge vlan add vid 10 dev br0 self
70 bridge vlan add vid 20 dev br0 self
75 bridge vlan add vid 10 dev $swp1
76 bridge vlan add vid 20 dev $swp1
80 bridge vlan add vid 10 dev $swp2
81 bridge vlan add vid 20 dev $swp2
92 bridge vlan del vid 20 dev $swp2
93 bridge vlan del vid 10 dev $swp2
[all …]
Dno_forwarding.sh96 local vid=
110 for vid in "${vids[@]}"; do
111 vlan_create $h1 $vid
112 simple_if_init $h1.$vid $H1_IPV4/24 $H1_IPV6/64
114 send_non_ip $h1.$vid $smac $dmac
115 send_non_ip $h1.$vid $smac $NON_IP_MC
116 send_non_ip $h1.$vid $smac $BC
117 send_uc_ipv4 $h1.$vid $dmac
118 send_mc_ipv4 $h1.$vid
119 send_uc_ipv6 $h1.$vid $dmac
[all …]
Dvxlan_bridge_1q.sh19 # | | vid 10 vid 10 | |
20 # | | vid 20 vid 20 | |
26 # | | vid 10 pvid untagged vid 20 pvid untagged | |
61 # | | vid 10 pvid untagged | | | | vid 10 pvid untagged | |
68 # | | vid 20 pvid untagged | | | | vid 20 pvid untagged | |
71 # | | | vid 10 | | | | | vid 10 | |
72 # | | | vid 20 | | | | | vid 20 | |
170 bridge vlan add vid 10 dev vx10 pvid untagged
178 bridge vlan add vid 20 dev vx20 pvid untagged
182 bridge vlan add vid 10 dev $swp1
[all …]
Dbridge_vlan_mcast.sh52 bridge vlan add vid 10-11 dev $swp1 master
53 bridge vlan add vid 10-11 dev $swp2 master
109 jq -e ".[].mdb[] | select(.grp == \"$TEST_GROUP\" and .vid == 10)" &>/dev/null
122 .vid == 10)" &>/dev/null
144 bridge vlan global set vid 10 dev br0 mcast_snooping 0
199 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 1
214 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 0
234 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 1
237 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_querier 0
270 bridge vlan global set vid 10 dev br0 mcast_snooping 1 mcast_igmp_version 3
[all …]
/linux-6.12.1/drivers/gpu/drm/sti/
Dsti_vid.c61 readl(vid->regs + reg))
96 struct sti_vid *vid = (struct sti_vid *)node->info_ent->data; in vid_dbg_show() local
98 seq_printf(s, "VID: (vaddr= 0x%p)", vid->regs); in vid_dbg_show()
101 vid_dbg_ctl(s, readl(vid->regs + VID_CTL)); in vid_dbg_show()
105 vid_dbg_vpo(s, readl(vid->regs + VID_VPO)); in vid_dbg_show()
107 vid_dbg_vps(s, readl(vid->regs + VID_VPS)); in vid_dbg_show()
115 vid_dbg_mst(s, readl(vid->regs + VID_MST)); in vid_dbg_show()
124 { "vid", vid_dbg_show, 0, NULL },
127 void vid_debugfs_init(struct sti_vid *vid, struct drm_minor *minor) in vid_debugfs_init() argument
132 vid_debugfs_files[i].data = vid; in vid_debugfs_init()
[all …]
/linux-6.12.1/drivers/staging/media/tegra-video/
Dvideo.c16 struct tegra_video_device *vid; in tegra_v4l2_dev_release() local
18 vid = container_of(v4l2_dev, struct tegra_video_device, v4l2_dev); in tegra_v4l2_dev_release()
21 tegra_channels_cleanup(vid->vi); in tegra_v4l2_dev_release()
24 media_device_unregister(&vid->media_dev); in tegra_v4l2_dev_release()
25 media_device_cleanup(&vid->media_dev); in tegra_v4l2_dev_release()
26 kfree(vid); in tegra_v4l2_dev_release()
46 struct tegra_video_device *vid; in host1x_video_probe() local
49 vid = kzalloc(sizeof(*vid), GFP_KERNEL); in host1x_video_probe()
50 if (!vid) in host1x_video_probe()
53 dev_set_drvdata(&dev->dev, vid); in host1x_video_probe()
[all …]
/linux-6.12.1/drivers/net/dsa/realtek/
Drtl8366-core.c42 * @vid: the VLAN ID to look up or allocate
47 static int rtl8366_obtain_mc(struct realtek_priv *priv, int vid, in rtl8366_obtain_mc() argument
54 /* Try to find an existing member config entry for this VID */ in rtl8366_obtain_mc()
58 dev_err(priv->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc()
59 i, vid); in rtl8366_obtain_mc()
63 if (vid == vlanmc->vid) in rtl8366_obtain_mc()
67 /* We have no MC entry for this VID, try to find an empty one */ in rtl8366_obtain_mc()
71 dev_err(priv->dev, "error searching for VLAN MC %d for VID %d\n", in rtl8366_obtain_mc()
72 i, vid); in rtl8366_obtain_mc()
76 if (vlanmc->vid == 0 && vlanmc->member == 0) { in rtl8366_obtain_mc()
[all …]
/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/
Dsparx5_vlan.c10 static int sparx5_vlant_set_mask(struct sparx5 *sparx5, u16 vid) in sparx5_vlant_set_mask() argument
15 bitmap_to_arr32(mask, sparx5->vlan_mask[vid], SPX5_PORTS); in sparx5_vlant_set_mask()
18 spx5_wr(mask[0], sparx5, ANA_L3_VLAN_MASK_CFG(vid)); in sparx5_vlant_set_mask()
19 spx5_wr(mask[1], sparx5, ANA_L3_VLAN_MASK_CFG1(vid)); in sparx5_vlant_set_mask()
20 spx5_wr(mask[2], sparx5, ANA_L3_VLAN_MASK_CFG2(vid)); in sparx5_vlant_set_mask()
27 u16 vid; in sparx5_vlan_init() local
35 for (vid = NULL_VID; vid < VLAN_N_VID; vid++) in sparx5_vlan_init()
36 spx5_rmw(ANA_L3_VLAN_CFG_VLAN_FID_SET(vid), in sparx5_vlan_init()
39 ANA_L3_VLAN_CFG(vid)); in sparx5_vlan_init()
55 int sparx5_vlan_vid_add(struct sparx5_port *port, u16 vid, bool pvid, in sparx5_vlan_vid_add() argument
[all …]
Dsparx5_mactable.c40 u16 vid; member
61 u16 vid) in sparx5_mact_select() argument
68 mach |= vid << 16; in sparx5_mact_select()
81 const unsigned char mac[ETH_ALEN], u16 vid) in sparx5_mact_learn() argument
96 sparx5_mact_select(sparx5, mac, vid); in sparx5_mact_learn()
136 u16 *vid, u32 *pcfg2) in sparx5_mact_get() argument
151 *vid = mach >> 16; in sparx5_mact_get()
160 unsigned char mac[ETH_ALEN], u16 *vid, u32 *pcfg2) in sparx5_mact_getnext() argument
167 sparx5_mact_select(sparx5, mac, *vid); in sparx5_mact_getnext()
179 ret = sparx5_mact_get(sparx5, mac, vid, &cfg2); in sparx5_mact_getnext()
[all …]
Dsparx5_switchdev.c219 port->vid = NULL_VID; in sparx5_port_bridge_leave()
254 u16 vid = port->pvid; in sparx5_port_add_addr() local
257 sparx5_mact_learn(sparx5, PGID_CPU, port->ndev->dev_addr, vid); in sparx5_port_add_addr()
259 sparx5_mact_forget(sparx5, port->ndev->dev_addr, vid); in sparx5_port_add_addr()
308 u16 vid; in sparx5_switchdev_bridge_fdb_event_work() local
325 if (fdb_info->vid == 0) in sparx5_switchdev_bridge_fdb_event_work()
326 vid = 1; in sparx5_switchdev_bridge_fdb_event_work()
328 vid = fdb_info->vid; in sparx5_switchdev_bridge_fdb_event_work()
334 fdb_info->addr, vid); in sparx5_switchdev_bridge_fdb_event_work()
337 fdb_info->addr, vid); in sparx5_switchdev_bridge_fdb_event_work()
[all …]
/linux-6.12.1/include/trace/events/
Dbridge.h15 const unsigned char *addr, u16 vid, u16 nlh_flags),
17 TP_ARGS(ndm, dev, addr, vid, nlh_flags),
23 __field(u16, vid)
30 __entry->vid = vid;
35 TP_printk("dev %s addr %02x:%02x:%02x:%02x:%02x:%02x vid %u nlh_flags %04x ndm_flags %02x",
38 __entry->addr[5], __entry->vid,
45 const unsigned char *addr, u16 vid),
47 TP_ARGS(br, p, addr, vid),
53 __field(u16, vid)
60 __entry->vid = vid;
[all …]
/linux-6.12.1/tools/testing/selftests/net/netfilter/
Dvxlan_mtu_frag.sh33 for vid in 10 20; do
34 ip -n "$host" link add link host-eth0 name host-eth0.$vid type vlan id $vid
35 ip -n "$host" addr add 10.0.$vid.1/24 dev host-eth0.$vid
36 ip -n "$host" link set host-eth0.$vid up
48 bridge -n "$vtep" vlan add dev vtep-host vid 10 pvid untagged
50 # VLAN 20 as other VID
52 bridge -n "$vtep" vlan add dev vtep-host vid 20
62 for vid in 10 20; do
63 bridge -n "$vtep" vlan add dev vxd vid $vid
64 bridge -n "$vtep" vlan add dev vxd vid $vid tunnel_info id $vid
[all …]
/linux-6.12.1/net/bridge/
Dbr_netlink_tunnel.c51 } else if ((v->vid - vtend->vid) == 1 && in __get_num_vlan_tunnel_infos()
56 if ((vtend->vid - vtbegin->vid) > 0) in __get_num_vlan_tunnel_infos()
67 if ((vtend->vid - vtbegin->vid) > 0) in __get_num_vlan_tunnel_infos()
90 static int br_fill_vlan_tinfo(struct sk_buff *skb, u16 vid, in br_fill_vlan_tinfo() argument
103 vid)) in br_fill_vlan_tinfo()
124 if (vtend && (vtend->vid - vtbegin->vid) > 0) { in br_fill_vlan_tinfo_range()
126 err = br_fill_vlan_tinfo(skb, vtbegin->vid, in br_fill_vlan_tinfo_range()
132 err = br_fill_vlan_tinfo(skb, vtend->vid, in br_fill_vlan_tinfo_range()
138 err = br_fill_vlan_tinfo(skb, vtbegin->vid, in br_fill_vlan_tinfo_range()
167 } else if ((v->vid - vtend->vid) == 1 && in br_fill_vlan_tunnel_info()
[all …]
Dbr_vlan.c11 static void nbp_vlan_set_vlan_dev_state(struct net_bridge_port *p, u16 vid);
17 u16 vid = *(u16 *)arg->key; in br_vlan_cmp() local
19 return vle->vid != vid; in br_vlan_cmp()
24 .key_offset = offsetof(struct net_bridge_vlan, vid),
32 static struct net_bridge_vlan *br_vlan_lookup(struct rhashtable *tbl, u16 vid) in br_vlan_lookup() argument
34 return rhashtable_lookup_fast(tbl, &vid, br_vlan_rht_params); in br_vlan_lookup()
40 if (vg->pvid == v->vid) in __vlan_add_pvid()
45 vg->pvid = v->vid; in __vlan_add_pvid()
48 static void __vlan_delete_pvid(struct net_bridge_vlan_group *vg, u16 vid) in __vlan_delete_pvid() argument
50 if (vg->pvid != vid) in __vlan_delete_pvid()
[all …]
/linux-6.12.1/drivers/net/ethernet/ti/icssg/
Dicssg_switchdev.c119 info.vid = rcv->vid; in prueth_switchdev_fdb_offload_notify()
139 netdev_dbg(emac->ndev, "prueth_fdb_add: MACID = %pM vid = %u flags = %u %u -- port %d\n", in prueth_switchdev_event_work()
140 fdb->addr, fdb->vid, fdb->added_by_user, in prueth_switchdev_event_work()
148 ret = icssg_fdb_add_del(emac, fdb->addr, fdb->vid, in prueth_switchdev_event_work()
156 netdev_dbg(emac->ndev, "prueth_fdb_del: MACID = %pM vid = %u flags = %u %u -- port %d\n", in prueth_switchdev_event_work()
157 fdb->addr, fdb->vid, fdb->added_by_user, in prueth_switchdev_event_work()
164 icssg_fdb_add_del(emac, fdb->addr, fdb->vid, in prueth_switchdev_event_work()
231 u8 vid, struct net_device *orig_dev) in prueth_switchdev_vlan_add() argument
246 icssg_vtbl_modify(emac, vid, port_mask, untag_mask, true); in prueth_switchdev_vlan_add()
248 netdev_dbg(emac->ndev, "VID add vid:%u port_mask:%X untag_mask %X PVID %d\n", in prueth_switchdev_vlan_add()
[all …]
/linux-6.12.1/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c64 u16 vid; member
72 u16 vid; member
93 static int prestera_port_vid_stp_set(struct prestera_port *port, u16 vid,
179 prestera_bridge_vlan_create(struct prestera_bridge_port *br_port, u16 vid) in prestera_bridge_vlan_create() argument
188 br_vlan->vid = vid; in prestera_bridge_vlan_create()
202 prestera_bridge_vlan_by_vid(struct prestera_bridge_port *br_port, u16 vid) in prestera_bridge_vlan_by_vid() argument
207 if (br_vlan->vid == vid) in prestera_bridge_vlan_by_vid()
215 u16 vid) in prestera_bridge_vlan_port_count() argument
223 if (br_vlan->vid == vid) { in prestera_bridge_vlan_port_count()
240 prestera_port_vlan_by_vid(struct prestera_port *port, u16 vid) in prestera_port_vlan_by_vid() argument
[all …]
/linux-6.12.1/drivers/net/ethernet/ti/
Dam65-cpsw-switchdev.c133 static void am65_cpsw_set_pvid(struct am65_cpsw_port *port, u16 vid, bool cfi, u32 cos) in am65_cpsw_set_pvid() argument
139 pvid = vid; in am65_cpsw_set_pvid()
150 u16 vid, struct net_device *orig_dev) in am65_cpsw_port_vlan_add() argument
176 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in am65_cpsw_port_vlan_add()
185 HOST_PORT_NUM, ALE_VLAN | ALE_SECURE, vid); in am65_cpsw_port_vlan_add()
189 am65_cpsw_set_pvid(port, vid, 0, 0); in am65_cpsw_port_vlan_add()
191 netdev_dbg(port->ndev, "VID add: %s: vid:%u ports:%X\n", in am65_cpsw_port_vlan_add()
192 port->ndev->name, vid, port_mask); in am65_cpsw_port_vlan_add()
197 static int am65_cpsw_port_vlan_del(struct am65_cpsw_port *port, u16 vid, in am65_cpsw_port_vlan_del() argument
210 ret = cpsw_ale_del_vlan(cpsw->ale, vid, port_mask); in am65_cpsw_port_vlan_del()
[all …]
Dcpsw_switchdev.c141 static void cpsw_set_pvid(struct cpsw_priv *priv, u16 vid, bool cfi, u32 cos) in cpsw_set_pvid() argument
147 pvid = vid; in cpsw_set_pvid()
166 u16 vid, struct net_device *orig_dev) in cpsw_port_vlan_add() argument
192 ret = cpsw_ale_vlan_add_modify(cpsw->ale, vid, port_mask, untag_mask, in cpsw_port_vlan_add()
201 HOST_PORT_NUM, ALE_VLAN, vid); in cpsw_port_vlan_add()
205 cpsw_set_pvid(priv, vid, 0, 0); in cpsw_port_vlan_add()
207 dev_dbg(priv->dev, "VID add: %s: vid:%u ports:%X\n", in cpsw_port_vlan_add()
208 priv->ndev->name, vid, port_mask); in cpsw_port_vlan_add()
212 static int cpsw_port_vlan_del(struct cpsw_priv *priv, u16 vid, in cpsw_port_vlan_del() argument
225 ret = cpsw_ale_vlan_del_modify(cpsw->ale, vid, port_mask); in cpsw_port_vlan_del()
[all …]
/linux-6.12.1/drivers/media/usb/pvrusb2/
Dpvrusb2-cx2584x-v4l.c27 int vid; member
38 .vid = CX25840_COMPOSITE7,
42 .vid = CX25840_COMPOSITE3,
46 .vid = CX25840_COMPOSITE3,
50 .vid = CX25840_SVIDEO1,
63 .vid = CX25840_COMPOSITE2,
69 .vid = CX25840_COMPOSITE1,
73 .vid = CX25840_COMPOSITE1,
77 .vid = (CX25840_SVIDEO_LUMA3|CX25840_SVIDEO_CHROMA4),
90 .vid = CX25840_COMPOSITE1,
[all …]

12345678910>>...39