Home
last modified time | relevance | path

Searched refs:tag_protocol (Results 1 – 7 of 7) sorted by relevance

/openbmc/linux/net/dsa/
H A Dtag.c202 const struct dsa_device_ops *dsa_tag_driver_get_by_id(int tag_protocol) in dsa_tag_driver_get_by_id() argument
208 request_module("%sid-%d", DSA_TAG_DRIVER_ALIAS, tag_protocol); in dsa_tag_driver_get_by_id()
213 if (ops->proto == tag_protocol) { in dsa_tag_driver_get_by_id()
H A Dtag.h22 const struct dsa_device_ops *dsa_tag_driver_get_by_id(int tag_protocol);
H A Ddsa.c1134 enum dsa_tag_protocol tag_protocol = DSA_TAG_PROTO_NONE; in dsa_get_tag_protocol() local
1147 tag_protocol = mds->ops->get_tag_protocol(mds, mdp_upstream, in dsa_get_tag_protocol()
1154 return ds->ops->get_tag_protocol(ds, dp->index, tag_protocol); in dsa_get_tag_protocol()
/openbmc/linux/drivers/net/dsa/b53/
H A Db53_common.c628 bool tag_en = !(dev->tag_protocol == DSA_TAG_PROTO_NONE); in b53_brcm_hdr_setup()
739 return dev->tag_protocol == DSA_TAG_PROTO_NONE && dsa_is_cpu_port(ds, port); in b53_vlan_port_needs_forced_tagged()
1112 ds->untag_bridge_pvid = dev->tag_protocol == DSA_TAG_PROTO_NONE; in b53_setup()
2080 enum dsa_tag_protocol tag_protocol) in b53_can_enable_brcm_tags() argument
2090 switch (tag_protocol) { in b53_can_enable_brcm_tags()
2111 dev->tag_protocol = DSA_TAG_PROTO_NONE; in b53_get_tag_protocol()
2117 dev->tag_protocol = DSA_TAG_PROTO_BRCM_LEGACY; in b53_get_tag_protocol()
2125 dev->tag_protocol = DSA_TAG_PROTO_BRCM_PREPEND; in b53_get_tag_protocol()
2129 dev->tag_protocol = DSA_TAG_PROTO_BRCM; in b53_get_tag_protocol()
2131 return dev->tag_protocol; in b53_get_tag_protocol()
H A Db53_priv.h127 enum dsa_tag_protocol tag_protocol; member
/openbmc/linux/drivers/net/dsa/mv88e6xxx/
H A Dchip.h326 enum dsa_tag_protocol tag_protocol; member
H A Dchip.c3142 if (chip->tag_protocol == DSA_TAG_PROTO_DSA) in mv88e6xxx_setup_port_mode()
3145 if (chip->tag_protocol == DSA_TAG_PROTO_EDSA) in mv88e6xxx_setup_port_mode()
6392 return chip->tag_protocol; in mv88e6xxx_get_tag_protocol()
6421 old_protocol = chip->tag_protocol; in mv88e6xxx_change_tag_protocol()
6422 chip->tag_protocol = proto; in mv88e6xxx_change_tag_protocol()
6437 chip->tag_protocol = old_protocol; in mv88e6xxx_change_tag_protocol()
7104 chip->tag_protocol = DSA_TAG_PROTO_EDSA; in mv88e6xxx_probe()
7106 chip->tag_protocol = DSA_TAG_PROTO_DSA; in mv88e6xxx_probe()