/linux-master/drivers/net/dsa/hirschmann/ |
H A D | hellcreek.h | 317 u16 vid; member in struct:hellcreek_devlink_vlan_entry
|
/linux-master/drivers/net/dsa/ |
H A D | lan9303-core.c | 1186 const unsigned char *addr, u16 vid, 1191 dev_dbg(chip->dev, "%s(%d, %pM, %d)\n", __func__, port, addr, vid); 1197 const unsigned char *addr, u16 vid, 1202 dev_dbg(chip->dev, "%s(%d, %pM, %d)\n", __func__, port, addr, vid); 1228 mdb->vid); 1229 if (mdb->vid) 1251 mdb->vid); 1262 mdb->vid); 1263 if (mdb->vid) 1185 lan9303_port_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1196 lan9303_port_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument
|
H A D | lantiq_gswip.c | 272 u16 vid; member in struct:gswip_vlan 666 vlan_active.key[0] = 0; /* vid */ 680 vlan_mapping.val[0] = 0 /* vid */; 917 int fid, u16 vid) 941 vlan_active.key[0] = vid; 952 priv->vlans[idx].vid = vid; 1036 u16 vid, bool untagged, 1054 if (priv->vlans[i].vid == vid) { 915 gswip_vlan_active_create(struct gswip_priv *priv, struct net_device *bridge, int fid, u16 vid) argument 1034 gswip_vlan_add_aware(struct gswip_priv *priv, struct net_device *bridge, int port, u16 vid, bool untagged, bool pvid) argument 1110 gswip_vlan_remove(struct gswip_priv *priv, struct net_device *bridge, int port, u16 vid, bool pvid, bool vlan_aware) argument 1364 gswip_port_fdb(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, bool add) argument 1407 gswip_port_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1414 gswip_port_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument [all...] |
H A D | mt7530.c | 334 fdb->vid = (reg[1] >> CVID) & CVID_MASK; 347 mt7530_fdb_write(struct mt7530_priv *priv, u16 vid, argument 354 reg[1] |= vid & CVID_MASK; 1537 const unsigned char *addr, u16 vid, 1545 mt7530_fdb_write(priv, vid, port_mask, addr, -1, STATIC_ENT); 1554 const unsigned char *addr, u16 vid, 1562 mt7530_fdb_write(priv, vid, port_mask, addr, -1, STATIC_EMP); 1589 ret = cb(_fdb.mac, _fdb.vid, _fdb.noarp, 1611 u16 vid = mdb->vid; local 1536 mt7530_port_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1553 mt7530_port_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1638 u16 vid = mdb->vid; local 1660 mt7530_vlan_cmd(struct mt7530_priv *priv, enum mt7530_vlan_cmd cmd, u16 vid) argument 1770 mt7530_hw_vlan_update(struct mt7530_priv *priv, u16 vid, struct mt7530_hw_vlan_entry *entry, mt7530_vlan_op vlan_op) argument [all...] |
H A D | mt7530.h | 683 u16 vid; member in struct:mt7530_fdb
|
H A D | rzn1_a5psw.c | 497 const unsigned char *addr, u16 vid, 548 const unsigned char *addr, u16 vid, 661 static int a5psw_find_vlan_entry(struct a5psw *a5psw, u16 vid) argument 669 if (FIELD_GET(A5PSW_VLAN_RES_VLANID, vlan_res) == vid) 735 u16 vid = vlan->vid; local 738 vlan_res_id = a5psw_find_vlan_entry(a5psw, vid); 740 vlan_res_id = a5psw_new_vlan_res_entry(a5psw, vid); 754 a5psw_reg_writel(a5psw, A5PSW_SYSTEM_TAGINFO(port), vid); 763 u16 vid local 496 a5psw_port_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 547 a5psw_port_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument [all...] |
/linux-master/drivers/net/dsa/microchip/ |
H A D | ksz8.h | 32 u16 vid, struct dsa_db db); 34 u16 vid, struct dsa_db db);
|
H A D | ksz8795.c | 605 static void ksz8_r_vlan_table(struct ksz_device *dev, u16 vid, u16 *vlan) argument 613 addr = vid / 4; 614 index = vid & 3; 619 static void ksz8_w_vlan_table(struct ksz_device *dev, u16 vid, u16 vlan) argument 627 addr = vid / 4; 628 index = vid & 3; 631 dev->vlan_cache[vid].table[0] = vlan; 1221 const unsigned char *addr, u16 vid) 1241 if (!memcmp(alu.mac, addr, ETH_ALEN) && alu.fid == vid) 1257 if (vid) { 1220 ksz8_add_sta_mac(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid) argument 1267 ksz8_del_sta_mac(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid) argument 1310 ksz8_fdb_add(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1316 ksz8_fdb_del(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1368 unsigned int vid; local 1408 u16 vid; local [all...] |
H A D | ksz9477.c | 248 static int ksz9477_get_vlan_table(struct ksz_device *dev, u16 vid, argument 255 ksz_write16(dev, REG_SW_VLAN_ENTRY_INDEX__2, vid & VLAN_INDEX_M); 277 static int ksz9477_set_vlan_table(struct ksz_device *dev, u16 vid, argument 288 ksz_write16(dev, REG_SW_VLAN_ENTRY_INDEX__2, vid & VLAN_INDEX_M); 301 dev->vlan_cache[vid].table[0] = vlan_table[0]; 302 dev->vlan_cache[vid].table[1] = vlan_table[1]; 303 dev->vlan_cache[vid].table[2] = vlan_table[2]; 588 err = ksz9477_get_vlan_table(dev, vlan->vid, vlan_table); 594 vlan_table[0] = VLAN_VALID | (vlan->vid & VLAN_FID_M); 603 err = ksz9477_set_vlan_table(dev, vlan->vid, vlan_tabl 649 ksz9477_fdb_add(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 705 ksz9477_fdb_del(struct ksz_device *dev, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument [all...] |
H A D | ksz9477.h | 44 const unsigned char *addr, u16 vid, struct dsa_db db); 46 const unsigned char *addr, u16 vid, struct dsa_db db);
|
H A D | ksz_common.c | 2605 const unsigned char *addr, u16 vid, 2613 return dev->dev_ops->fdb_add(dev, port, addr, vid, db); 2618 u16 vid, struct dsa_db db) 2625 return dev->dev_ops->fdb_del(dev, port, addr, vid, db); 2604 ksz_port_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 2616 ksz_port_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument
|
H A D | ksz_common.h | 336 const unsigned char *addr, u16 vid, struct dsa_db db); 338 const unsigned char *addr, u16 vid, struct dsa_db db);
|
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | chip.c | 1862 static int mv88e6xxx_vtu_get(struct mv88e6xxx_chip *chip, u16 vid, argument 1870 entry->vid = vid ? vid - 1 : mv88e6xxx_max_vid(chip); 1875 if (entry->vid != vid) 1888 .vid = mv88e6xxx_max_vid(chip), 1907 } while (entry.vid < mv88e6xxx_max_vid(chip)); 2140 u16 vid) 2151 err = mv88e6xxx_vtu_get(chip, vid, 2139 mv88e6xxx_port_check_hw_vlan(struct dsa_switch *ds, int port, u16 vid) argument 2253 mv88e6xxx_port_db_load_purge(struct mv88e6xxx_chip *chip, int port, const unsigned char *addr, u16 vid, u8 state) argument 2320 u16 vid = policy->vid; local 2370 u16 vid = 0; local 2524 mv88e6xxx_port_add_broadcast(struct mv88e6xxx_chip *chip, int port, u16 vid) argument 2535 mv88e6xxx_broadcast_setup(struct mv88e6xxx_chip *chip, u16 vid) argument 2609 mv88e6xxx_port_vlan_join(struct mv88e6xxx_chip *chip, int port, u16 vid, u8 member, bool warn) argument 2722 mv88e6xxx_port_vlan_leave(struct mv88e6xxx_chip *chip, int port, u16 vid) argument 2809 mv88e6xxx_port_vlan_fast_age(struct dsa_switch *ds, int port, u16 vid) argument 2875 mv88e6xxx_port_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 2890 mv88e6xxx_port_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 2904 mv88e6xxx_port_db_dump_fid(struct mv88e6xxx_chip *chip, u16 fid, u16 vid, int port, dsa_fdb_dump_cb_t *cb, void *data) argument [all...] |
H A D | chip.h | 188 u16 vid; member in struct:mv88e6xxx_vtu_entry 267 u16 vid; member in struct:mv88e6xxx_policy 271 u16 vid; member in struct:mv88e6xxx_vlan
|
H A D | devlink.c | 425 * @vid: Global1/6: VID, valid, and page. 439 u16 vid; member in struct:mv88e6xxx_devlink_vtu_entry 462 vlan.vid = mv88e6xxx_max_vid(chip); 482 &entry->vid); 493 } while (vlan.vid < mv88e6xxx_max_vid(chip)); 509 * @vid: Global1/6: Valid bit. 522 u16 vid; member in struct:mv88e6xxx_devlink_stu_entry 561 &entry->vid);
|
H A D | global1_vtu.c | 93 bool *valid, u16 *vid) 102 if (vid) { 103 *vid = val & 0xfff; 106 *vid |= 0x1000; 116 bool valid, u16 vid) 118 u16 val = vid & 0xfff; 120 if (vid & 0x1000) 277 err = mv88e6xxx_g1_vtu_vid_write(chip, false, entry->vid); 286 return mv88e6xxx_g1_vtu_vid_read(chip, &entry->valid, &entry->vid); 383 err = mv88e6xxx_g1_vtu_vid_write(chip, entry->valid, entry->vid); 92 mv88e6xxx_g1_vtu_vid_read(struct mv88e6xxx_chip *chip, bool *valid, u16 *vid) argument 115 mv88e6xxx_g1_vtu_vid_write(struct mv88e6xxx_chip *chip, bool valid, u16 vid) argument 611 u16 val, vid; local [all...] |
H A D | switchdev.c | 27 ctx->vid_found = entry->vid; 34 static int mv88e6xxx_find_vid(struct mv88e6xxx_chip *chip, u16 fid, u16 *vid) argument 46 *vid = ctx.vid_found; 62 u16 vid; local 65 err = mv88e6xxx_find_vid(chip, fid, &vid); 69 info.vid = vid;
|
H A D | trace.h | 60 TP_PROTO(const struct device *dev, int spid, u16 vid), 62 TP_ARGS(dev, spid, vid), 67 __field(u16, vid) 73 __entry->vid = vid; 76 TP_printk("dev %s spid %d vid %u", 77 __get_str(name), __entry->spid, __entry->vid) 81 TP_PROTO(const struct device *dev, int spid, u16 vid), 82 TP_ARGS(dev, spid, vid)); 85 TP_PROTO(const struct device *dev, int spid, u16 vid), [all...] |
/linux-master/drivers/net/dsa/ocelot/ |
H A D | felix.c | 68 int upstream, u16 vid) 98 outer_tagging_rule->action.vid_a_val = vid; 108 int upstream, u16 vid) 130 u16 vid) 152 untagging_rule->vlan.vid.value = vid; 153 untagging_rule->vlan.vid.mask = VLAN_VID_MASK; 196 static int felix_tag_8021q_vlan_del_tx(struct dsa_switch *ds, int port, u16 vid) argument 227 static int felix_tag_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid, argument 241 err = felix_tag_8021q_vlan_add_rx(ds, port, cpu_dp->index, vid); 67 felix_tag_8021q_vlan_add_rx(struct dsa_switch *ds, int port, int upstream, u16 vid) argument 107 felix_tag_8021q_vlan_del_rx(struct dsa_switch *ds, int port, int upstream, u16 vid) argument 129 felix_tag_8021q_vlan_add_tx(struct dsa_switch *ds, int port, u16 vid) argument 259 felix_tag_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid) argument 783 felix_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 804 felix_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 825 felix_lag_fdb_add(struct dsa_switch *ds, struct dsa_lag lag, const unsigned char *addr, u16 vid, struct dsa_db db) argument 838 felix_lag_fdb_del(struct dsa_switch *ds, struct dsa_lag lag, const unsigned char *addr, u16 vid, struct dsa_db db) argument [all...] |
H A D | felix_vsc9959.c | 1696 u16 vid; member in struct:felix_stream 1780 stream->vid = match.key->vlan_id; 1796 u32 vid, dst_idx; local 1800 vid = stream->vid; 1805 ret = ocelot_mact_lookup(ocelot, &dst_idx, mac, vid, &type); 1819 ret = ocelot_mact_learn_streamdata(ocelot, dst_idx, mac, vid, type, 1833 tmp->vid == stream->vid)
|
/linux-master/drivers/net/dsa/qca/ |
H A D | qca8k-common.c | 123 /* vid - 83:72 */ 124 fdb->vid = FIELD_GET(QCA8K_ATU_VID_MASK, reg[2]); 140 static void qca8k_fdb_write(struct qca8k_priv *priv, u16 vid, u8 port_mask, argument 145 /* vid - 83:72 */ 146 reg[2] = FIELD_PREP(QCA8K_ATU_VID_MASK, vid); 205 qca8k_fdb_write(priv, fdb->vid, fdb->port_mask, fdb->mac, fdb->aging); 214 u16 port_mask, u16 vid, u8 aging) 219 qca8k_fdb_write(priv, vid, port_mask, mac, aging); 227 u16 port_mask, u16 vid) 232 qca8k_fdb_write(priv, vid, port_mas 213 qca8k_fdb_add(struct qca8k_priv *priv, const u8 *mac, u16 port_mask, u16 vid, u8 aging) argument 226 qca8k_fdb_del(struct qca8k_priv *priv, const u8 *mac, u16 port_mask, u16 vid) argument 246 qca8k_fdb_search_and_insert(struct qca8k_priv *priv, u8 port_mask, const u8 *mac, u16 vid, u8 aging) argument 283 qca8k_fdb_search_and_del(struct qca8k_priv *priv, u8 port_mask, const u8 *mac, u16 vid) argument 325 qca8k_vlan_access(struct qca8k_priv *priv, enum qca8k_vlan_cmd cmd, u16 vid) argument 358 qca8k_vlan_add(struct qca8k_priv *priv, u8 port, u16 vid, bool untagged) argument 396 qca8k_vlan_del(struct qca8k_priv *priv, u8 port, u16 vid) argument 801 qca8k_port_fdb_insert(struct qca8k_priv *priv, const u8 *addr, u16 port_mask, u16 vid) argument 812 qca8k_port_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 822 qca8k_port_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 864 u16 vid = mdb->vid; local 879 u16 vid = mdb->vid; local [all...] |
H A D | qca8k.h | 479 u16 vid; member in struct:qca8k_fdb 554 u16 port_mask, u16 vid); 556 const unsigned char *addr, u16 vid, 559 const unsigned char *addr, u16 vid,
|
/linux-master/drivers/net/dsa/realtek/ |
H A D | realtek.h | 36 u16 vid; member in struct:rtl8366_vlan_mc 44 u16 vid; member in struct:rtl8366_vlan_4k 102 int (*get_vlan_4k)(struct realtek_priv *priv, u32 vid, 128 int rtl8366_set_vlan(struct realtek_priv *priv, int vid, u32 member, 131 unsigned int vid);
|
H A D | rtl8366-core.c | 42 * @vid: the VLAN ID to look up or allocate 47 static int rtl8366_obtain_mc(struct realtek_priv *priv, int vid, argument 59 i, vid); 63 if (vid == vlanmc->vid) 72 i, vid); 76 if (vlanmc->vid == 0 && vlanmc->member == 0) { 78 ret = priv->ops->get_vlan_4k(priv, vid, &vlan4k); 81 i, vid); 85 vlanmc->vid 136 rtl8366_set_vlan(struct realtek_priv *priv, int vid, u32 member, u32 untag, u32 fid) argument 192 rtl8366_set_pvid(struct realtek_priv *priv, unsigned int port, unsigned int vid) argument [all...] |
H A D | rtl8366rb.c | 1493 static int rtl8366rb_get_vlan_4k(struct realtek_priv *priv, u32 vid, argument 1502 if (vid >= RTL8366RB_NUM_VIDS) 1507 vid & RTL8366RB_VLAN_VID_MASK); 1525 vlan4k->vid = vid; 1541 if (vlan4k->vid >= RTL8366RB_NUM_VIDS || 1547 data[0] = vlan4k->vid & RTL8366RB_VLAN_VID_MASK; 1588 vlanmc->vid = data[0] & RTL8366RB_VLAN_VID_MASK; 1607 vlanmc->vid >= RTL8366RB_NUM_VIDS || 1614 data[0] = (vlanmc->vid [all...] |