Lines Matching refs:cpsw_ale

252 static int cpsw_ale_entry_get_fld(struct cpsw_ale *ale,  in cpsw_ale_entry_get_fld()
276 static void cpsw_ale_entry_set_fld(struct cpsw_ale *ale, in cpsw_ale_entry_set_fld()
301 static int cpsw_ale_vlan_get_fld(struct cpsw_ale *ale, in cpsw_ale_vlan_get_fld()
309 static void cpsw_ale_vlan_set_fld(struct cpsw_ale *ale, in cpsw_ale_vlan_set_fld()
335 static int cpsw_ale_read(struct cpsw_ale *ale, int idx, u32 *ale_entry) in cpsw_ale_read()
350 static int cpsw_ale_write(struct cpsw_ale *ale, int idx, u32 *ale_entry) in cpsw_ale_write()
366 static int cpsw_ale_match_addr(struct cpsw_ale *ale, const u8 *addr, u16 vid) in cpsw_ale_match_addr()
387 static int cpsw_ale_match_vlan(struct cpsw_ale *ale, u16 vid) in cpsw_ale_match_vlan()
403 static int cpsw_ale_match_free(struct cpsw_ale *ale) in cpsw_ale_match_free()
417 static int cpsw_ale_find_ageable(struct cpsw_ale *ale) in cpsw_ale_find_ageable()
437 static void cpsw_ale_flush_mcast(struct cpsw_ale *ale, u32 *ale_entry, in cpsw_ale_flush_mcast()
456 int cpsw_ale_flush_multicast(struct cpsw_ale *ale, int port_mask, int vid) in cpsw_ale_flush_multicast()
502 int cpsw_ale_add_ucast(struct cpsw_ale *ale, const u8 *addr, int port, in cpsw_ale_add_ucast()
528 int cpsw_ale_del_ucast(struct cpsw_ale *ale, const u8 *addr, int port, in cpsw_ale_del_ucast()
543 int cpsw_ale_add_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_add_mcast()
576 int cpsw_ale_del_mcast(struct cpsw_ale *ale, const u8 *addr, int port_mask, in cpsw_ale_del_mcast()
606 static void cpsw_ale_set_vlan_mcast(struct cpsw_ale *ale, u32 *ale_entry, in cpsw_ale_set_vlan_mcast()
622 static void cpsw_ale_set_vlan_untag(struct cpsw_ale *ale, u32 *ale_entry, in cpsw_ale_set_vlan_untag()
634 int cpsw_ale_add_vlan(struct cpsw_ale *ale, u16 vid, int port_mask, int untag, in cpsw_ale_add_vlan()
674 static void cpsw_ale_vlan_del_modify_int(struct cpsw_ale *ale, u32 *ale_entry, in cpsw_ale_vlan_del_modify_int()
714 int cpsw_ale_vlan_del_modify(struct cpsw_ale *ale, u16 vid, int port_mask) in cpsw_ale_vlan_del_modify()
731 int cpsw_ale_del_vlan(struct cpsw_ale *ale, u16 vid, int port_mask) in cpsw_ale_del_vlan()
765 int cpsw_ale_vlan_add_modify(struct cpsw_ale *ale, u16 vid, int port_mask, in cpsw_ale_vlan_add_modify()
804 void cpsw_ale_set_unreg_mcast(struct cpsw_ale *ale, int unreg_mcast_mask, in cpsw_ale_set_unreg_mcast()
831 static void cpsw_ale_vlan_set_unreg_mcast(struct cpsw_ale *ale, u32 *ale_entry, in cpsw_ale_vlan_set_unreg_mcast()
848 cpsw_ale_vlan_set_unreg_mcast_idx(struct cpsw_ale *ale, u32 *ale_entry, in cpsw_ale_vlan_set_unreg_mcast_idx()
867 void cpsw_ale_set_allmulti(struct cpsw_ale *ale, int allmulti, int port) in cpsw_ale_set_allmulti()
1122 int cpsw_ale_control_set(struct cpsw_ale *ale, int port, int control, in cpsw_ale_control_set()
1153 int cpsw_ale_control_get(struct cpsw_ale *ale, int port, int control) in cpsw_ale_control_get()
1176 int cpsw_ale_rx_ratelimit_mc(struct cpsw_ale *ale, int port, unsigned int ratelimit_pps) in cpsw_ale_rx_ratelimit_mc()
1198 int cpsw_ale_rx_ratelimit_bc(struct cpsw_ale *ale, int port, unsigned int ratelimit_pps) in cpsw_ale_rx_ratelimit_bc()
1222 struct cpsw_ale *ale = from_timer(ale, t, timer); in cpsw_ale_timer()
1232 static void cpsw_ale_hw_aging_timer_start(struct cpsw_ale *ale) in cpsw_ale_hw_aging_timer_start()
1248 static void cpsw_ale_hw_aging_timer_stop(struct cpsw_ale *ale) in cpsw_ale_hw_aging_timer_stop()
1253 static void cpsw_ale_aging_start(struct cpsw_ale *ale) in cpsw_ale_aging_start()
1268 static void cpsw_ale_aging_stop(struct cpsw_ale *ale) in cpsw_ale_aging_stop()
1281 void cpsw_ale_start(struct cpsw_ale *ale) in cpsw_ale_start()
1309 void cpsw_ale_stop(struct cpsw_ale *ale) in cpsw_ale_stop()
1482 static int cpsw_ale_regfield_init(struct cpsw_ale *ale) in cpsw_ale_regfield_init()
1501 struct cpsw_ale *cpsw_ale_create(struct cpsw_ale_params *params) in cpsw_ale_create()
1505 struct cpsw_ale *ale; in cpsw_ale_create()
1616 void cpsw_ale_dump(struct cpsw_ale *ale, u32 *data) in cpsw_ale_dump()
1626 void cpsw_ale_restore(struct cpsw_ale *ale, u32 *data) in cpsw_ale_restore()
1636 u32 cpsw_ale_get_num_entries(struct cpsw_ale *ale) in cpsw_ale_get_num_entries()
1642 static void cpsw_ale_policer_read_idx(struct cpsw_ale *ale, u32 idx) in cpsw_ale_policer_read_idx()
1649 static void cpsw_ale_policer_write_idx(struct cpsw_ale *ale, u32 idx) in cpsw_ale_policer_write_idx()
1657 static void cpsw_ale_policer_thread_idx_enable(struct cpsw_ale *ale, u32 idx, in cpsw_ale_policer_thread_idx_enable()
1666 static void cpsw_ale_policer_reset(struct cpsw_ale *ale) in cpsw_ale_policer_reset()
1692 void cpsw_ale_classifier_setup_default(struct cpsw_ale *ale, int num_rx_ch) in cpsw_ale_classifier_setup_default()