Home
last modified time | relevance | path

Searched refs:port_vlan (Results 1 – 11 of 11) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c242 struct prestera_port_vlan *port_vlan; in prestera_port_vlan_by_vid() local
244 list_for_each_entry(port_vlan, &port->vlans_list, port_head) { in prestera_port_vlan_by_vid()
245 if (port_vlan->vid == vid) in prestera_port_vlan_by_vid()
246 return port_vlan; in prestera_port_vlan_by_vid()
255 struct prestera_port_vlan *port_vlan; in prestera_port_vlan_create() local
258 port_vlan = prestera_port_vlan_by_vid(port, vid); in prestera_port_vlan_create()
259 if (port_vlan) in prestera_port_vlan_create()
266 port_vlan = kzalloc(sizeof(*port_vlan), GFP_KERNEL); in prestera_port_vlan_create()
267 if (!port_vlan) { in prestera_port_vlan_create()
272 port_vlan->port = port; in prestera_port_vlan_create()
[all …]
/Linux-v6.1/drivers/net/ethernet/ti/
Dcpsw_new.c132 vid = cpsw->slaves[slave_no].port_vlan; in cpsw_set_mc()
462 vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_add_vid()
518 writel(vlan, &cpsw->host_port_regs->port_vlan); in cpsw_init_host_port_switch()
540 writel(vlan, &cpsw->host_port_regs->port_vlan); in cpsw_init_host_port_dual_mac()
595 slave_write(slave, slave->port_vlan, reg); in cpsw_port_add_dual_emac_def_ale_entries()
597 cpsw_ale_add_vlan(cpsw->ale, slave->port_vlan, port_mask, in cpsw_port_add_dual_emac_def_ale_entries()
600 ALE_PORT_HOST, ALE_VLAN, slave->port_vlan, in cpsw_port_add_dual_emac_def_ale_entries()
604 ALE_SECURE, slave->port_vlan); in cpsw_port_add_dual_emac_def_ale_entries()
637 port_mask, ALE_VLAN, slave->port_vlan, in cpsw_port_add_switch_def_ale_entries()
640 HOST_PORT_NUM, ALE_VLAN, slave->port_vlan); in cpsw_port_add_switch_def_ale_entries()
[all …]
Dcpsw.c187 vid = cpsw->slaves[priv->emac_port].port_vlan; in cpsw_set_mc()
548 slave_write(slave, slave->port_vlan, CPSW1_PORT_VLAN); in cpsw_add_dual_emac_def_ale_entries()
550 slave_write(slave, slave->port_vlan, CPSW2_PORT_VLAN); in cpsw_add_dual_emac_def_ale_entries()
551 cpsw_ale_add_vlan(cpsw->ale, slave->port_vlan, port_mask, in cpsw_add_dual_emac_def_ale_entries()
554 ALE_PORT_HOST, ALE_VLAN, slave->port_vlan, 0); in cpsw_add_dual_emac_def_ale_entries()
557 ALE_SECURE, slave->port_vlan); in cpsw_add_dual_emac_def_ale_entries()
660 writel(vlan, &cpsw->host_port_regs->port_vlan); in cpsw_add_default_vlan()
976 vid = cpsw->slaves[priv->emac_port].port_vlan; in cpsw_ndo_set_mac_address()
1065 if (vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_add_vid()
1097 if (vid == cpsw->slaves[i].port_vlan) in cpsw_ndo_vlan_rx_kill_vid()
Dam65-cpsw-nuss.h38 int port_vlan; member
Dam65-cpsw-nuss.c2288 writel(slave->port_vlan, port->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_init_port_emac_ale()
2300 HOST_PORT_NUM, ALE_SECURE, slave->port_vlan); in am65_cpsw_init_port_emac_ale()
2302 port_mask, ALE_VLAN, slave->port_vlan, ALE_MCAST_FWD_2); in am65_cpsw_init_port_emac_ale()
2316 slave->port_vlan); in am65_cpsw_init_port_switch_ale()
2321 port_mask, ALE_VLAN, slave->port_vlan, in am65_cpsw_init_port_switch_ale()
2324 writel(slave->port_vlan, port->port_base + AM65_CPSW_PORT_VLAN_REG_OFFSET); in am65_cpsw_init_port_switch_ale()
2376 slave->port_vlan = cpsw->default_vlan; in am65_cpsw_dl_switch_mode_set()
2378 slave->port_vlan = 0; in am65_cpsw_dl_switch_mode_set()
2404 slave->port_vlan = cpsw->default_vlan; in am65_cpsw_dl_switch_mode_set()
2423 port->slave.port_vlan = 0; in am65_cpsw_dl_switch_mode_set()
Dnetcp_ethss.c255 u32 port_vlan; member
269 u32 port_vlan; member
395 u32 port_vlan; member
423 u32 port_vlan; member
582 u32 port_vlan; member
594 u16 port_vlan; member
609 u32 port_vlan; member
615 u16 port_vlan; member
3056 GBE_SET_REG_OFS(slave, port_regs, port_vlan); in init_slave()
3073 GBENU_SET_REG_OFS(slave, port_regs, port_vlan); in init_slave()
[all …]
Dcpsw_priv.h275 u32 port_vlan; member
311 u32 port_vlan; member
Dcpsw_switchdev.c132 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_get_pvid()
160 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_set_pvid()
Dcpsw_priv.c492 slave->port_vlan = slave->data->dual_emac_res_vlan; in cpsw_init_common()
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_main.h376 u16 port_vlan; member
Dhns_dsaf_main.c1600 mac_key->low.bits.port_vlan = 0; in hns_dsaf_set_mac_key()
1601 dsaf_set_field(mac_key->low.bits.port_vlan, DSAF_TBL_TCAM_KEY_VLAN_M, in hns_dsaf_set_mac_key()
1603 dsaf_set_field(mac_key->low.bits.port_vlan, DSAF_TBL_TCAM_KEY_PORT_M, in hns_dsaf_set_mac_key()
2037 soft_mac_entry->tcam_key.low.bits.port_vlan, in hns_dsaf_clr_mac_mc_port()
2053 soft_mac_entry->tcam_key.low.bits.port_vlan, in hns_dsaf_clr_mac_mc_port()