Lines Matching full:ale

56 MODULE_PARM_DESC(ale_ageout, "cpsw ale ageout interval (seconds)");
97 struct cpsw_ale *ale = cpsw->ale; in cpsw_set_promiscious() local
118 cpsw_ale_control_set(ale, 0, ALE_BYPASS, 1); in cpsw_set_promiscious()
123 cpsw_ale_control_set(ale, 0, ALE_BYPASS, 0); in cpsw_set_promiscious()
132 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious()
134 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious()
139 cpsw_ale_control_set(ale, 0, ALE_AGEOUT, 1); in cpsw_set_promiscious()
142 if (cpsw_ale_control_get(ale, 0, ALE_AGEOUT)) in cpsw_set_promiscious()
145 cpsw_ale_control_set(ale, 0, ALE_AGEOUT, 1); in cpsw_set_promiscious()
147 /* Clear all mcast from ALE */ in cpsw_set_promiscious()
148 cpsw_ale_flush_multicast(ale, ALE_ALL_PORTS, -1); in cpsw_set_promiscious()
152 cpsw_ale_control_set(ale, 0, ALE_P0_UNI_FLOOD, 1); in cpsw_set_promiscious()
156 cpsw_ale_control_set(ale, 0, ALE_P0_UNI_FLOOD, 0); in cpsw_set_promiscious()
160 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious()
162 cpsw_ale_control_set(ale, i, in cpsw_set_promiscious()
196 ret = cpsw_ale_add_mcast(cpsw->ale, addr, mask, flags, vid, 0); in cpsw_set_mc()
198 ret = cpsw_ale_del_mcast(cpsw->ale, addr, 0, flags, vid); in cpsw_set_mc()
320 cpsw_ale_set_allmulti(cpsw->ale, IFF_ALLMULTI, slave_port); in cpsw_ndo_set_rx_mode()
328 cpsw_ale_set_allmulti(cpsw->ale, in cpsw_ndo_set_rx_mode()
500 cpsw_ale_control_set(cpsw->ale, slave_port, in _cpsw_adjust_link()
513 cpsw_ale_control_set(cpsw->ale, slave_port, in _cpsw_adjust_link()
559 cpsw_ale_add_vlan(cpsw->ale, slave->port_vlan, port_mask, in cpsw_add_dual_emac_def_ale_entries()
561 cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_add_dual_emac_def_ale_entries()
563 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_dual_emac_def_ale_entries()
566 cpsw_ale_control_set(cpsw->ale, slave_port, in cpsw_add_dual_emac_def_ale_entries()
618 cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_slave_open()
678 cpsw_ale_add_vlan(cpsw->ale, vlan, ALE_ALL_PORTS, in cpsw_add_default_vlan()
689 /* soft reset the controller and initialize ale */ in cpsw_init_host_port()
691 cpsw_ale_start(cpsw->ale); in cpsw_init_host_port()
694 cpsw_ale_control_set(cpsw->ale, HOST_PORT_NUM, ALE_VLAN_AWARE, in cpsw_init_host_port()
708 cpsw_ale_control_set(cpsw->ale, HOST_PORT_NUM, in cpsw_init_host_port()
712 cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, HOST_PORT_NUM, in cpsw_init_host_port()
714 cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_init_host_port()
730 cpsw_ale_control_set(cpsw->ale, slave_port, in cpsw_slave_stop()
803 cpsw_ale_add_vlan(cpsw->ale, cpsw->data.default_vlan, in cpsw_ndo_open()
893 cpsw_ale_stop(cpsw->ale); in cpsw_ndo_stop()
990 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, HOST_PORT_NUM, in cpsw_ndo_set_mac_address()
992 cpsw_ale_add_ucast(cpsw->ale, addr->sa_data, HOST_PORT_NUM, in cpsw_ndo_set_mac_address()
1029 ret = cpsw_ale_add_vlan(cpsw->ale, vid, port_mask, 0, port_mask, in cpsw_add_vlan_ale_entry()
1034 ret = cpsw_ale_add_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry()
1039 ret = cpsw_ale_add_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_add_vlan_ale_entry()
1046 cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_add_vlan_ale_entry()
1049 cpsw_ale_del_vlan(cpsw->ale, vid, 0); in cpsw_add_vlan_ale_entry()
1117 ret = cpsw_ale_del_vlan(cpsw->ale, vid, 0); in cpsw_ndo_vlan_rx_kill_vid()
1118 ret |= cpsw_ale_del_ucast(cpsw->ale, priv->mac_addr, in cpsw_ndo_vlan_rx_kill_vid()
1120 ret |= cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast, in cpsw_ndo_vlan_rx_kill_vid()
1122 ret |= cpsw_ale_flush_multicast(cpsw->ale, ALE_PORT_HOST, vid); in cpsw_ndo_vlan_rx_kill_vid()