Home
last modified time | relevance | path

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

/drivers/net/ethernet/marvell/prestera/
Dprestera_switchdev.c141 struct prestera_port_vlan *port_vlan; in prestera_port_vlan_by_vid() local
143 list_for_each_entry(port_vlan, &port->vlans_list, port_head) { in prestera_port_vlan_by_vid()
144 if (port_vlan->vid == vid) in prestera_port_vlan_by_vid()
145 return port_vlan; in prestera_port_vlan_by_vid()
154 struct prestera_port_vlan *port_vlan; in prestera_port_vlan_create() local
157 port_vlan = prestera_port_vlan_by_vid(port, vid); in prestera_port_vlan_create()
158 if (port_vlan) in prestera_port_vlan_create()
165 port_vlan = kzalloc(sizeof(*port_vlan), GFP_KERNEL); in prestera_port_vlan_create()
166 if (!port_vlan) { in prestera_port_vlan_create()
171 port_vlan->port = port; in prestera_port_vlan_create()
[all …]
/drivers/net/ethernet/ti/
Dcpsw_new.c131 vid = cpsw->slaves[slave_no].port_vlan; in cpsw_set_mc()
471 vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_add_vid()
525 writel(vlan, &cpsw->host_port_regs->port_vlan); in cpsw_init_host_port_switch()
547 writel(vlan, &cpsw->host_port_regs->port_vlan); in cpsw_init_host_port_dual_mac()
602 slave_write(slave, slave->port_vlan, reg); in cpsw_port_add_dual_emac_def_ale_entries()
604 cpsw_ale_add_vlan(cpsw->ale, slave->port_vlan, port_mask, in cpsw_port_add_dual_emac_def_ale_entries()
607 ALE_PORT_HOST, ALE_VLAN, slave->port_vlan, in cpsw_port_add_dual_emac_def_ale_entries()
611 ALE_SECURE, slave->port_vlan); in cpsw_port_add_dual_emac_def_ale_entries()
644 port_mask, ALE_VLAN, slave->port_vlan, in cpsw_port_add_switch_def_ale_entries()
647 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()
556 slave_write(slave, slave->port_vlan, CPSW1_PORT_VLAN); in cpsw_add_dual_emac_def_ale_entries()
558 slave_write(slave, slave->port_vlan, CPSW2_PORT_VLAN); in cpsw_add_dual_emac_def_ale_entries()
559 cpsw_ale_add_vlan(cpsw->ale, slave->port_vlan, port_mask, in cpsw_add_dual_emac_def_ale_entries()
562 ALE_PORT_HOST, ALE_VLAN, slave->port_vlan, 0); in cpsw_add_dual_emac_def_ale_entries()
565 ALE_SECURE, slave->port_vlan); in cpsw_add_dual_emac_def_ale_entries()
668 writel(vlan, &cpsw->host_port_regs->port_vlan); in cpsw_add_default_vlan()
988 vid = cpsw->slaves[priv->emac_port].port_vlan; in cpsw_ndo_set_mac_address()
1079 if (vid == cpsw->slaves[i].port_vlan) { in cpsw_ndo_vlan_rx_add_vid()
1113 if (vid == cpsw->slaves[i].port_vlan) in cpsw_ndo_vlan_rx_kill_vid()
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
3060 GBE_SET_REG_OFS(slave, port_regs, port_vlan); in init_slave()
3077 GBENU_SET_REG_OFS(slave, port_regs, port_vlan); in init_slave()
[all …]
Dcpsw_priv.h274 u32 port_vlan; member
310 u32 port_vlan; member
Dcpsw_switchdev.c137 port_vlan_reg = &cpsw->host_port_regs->port_vlan; in cpsw_get_pvid()
165 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()
/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()