Lines Matching defs:ocelot

24 static inline u32 ocelot_mact_read_macaccess(struct ocelot *ocelot)  in ocelot_mact_read_macaccess()
30 static inline int ocelot_mact_wait_for_completion(struct ocelot *ocelot) in ocelot_mact_wait_for_completion()
42 static void ocelot_mact_select(struct ocelot *ocelot, in ocelot_mact_select()
64 int ocelot_mact_learn(struct ocelot *ocelot, int port, in ocelot_mact_learn()
101 int ocelot_mact_forget(struct ocelot *ocelot, in ocelot_mact_forget()
123 static void ocelot_mact_init(struct ocelot *ocelot) in ocelot_mact_init()
141 static void ocelot_vcap_enable(struct ocelot *ocelot, int port) in ocelot_vcap_enable()
155 static inline u32 ocelot_vlant_read_vlanaccess(struct ocelot *ocelot) in ocelot_vlant_read_vlanaccess()
160 static inline int ocelot_vlant_wait_for_completion(struct ocelot *ocelot) in ocelot_vlant_wait_for_completion()
172 static int ocelot_vlant_set_mask(struct ocelot *ocelot, u16 vid, u32 mask) in ocelot_vlant_set_mask()
185 static int ocelot_port_num_untagged_vlans(struct ocelot *ocelot, int port) in ocelot_port_num_untagged_vlans()
201 static int ocelot_port_num_tagged_vlans(struct ocelot *ocelot, int port) in ocelot_port_num_tagged_vlans()
220 static bool ocelot_port_uses_native_vlan(struct ocelot *ocelot, int port) in ocelot_port_uses_native_vlan()
227 ocelot_port_find_native_vlan(struct ocelot *ocelot, int port) in ocelot_port_find_native_vlan()
242 static void ocelot_port_manage_port_tag(struct ocelot *ocelot, int port) in ocelot_port_manage_port_tag()
282 static void ocelot_port_set_pvid(struct ocelot *ocelot, int port, in ocelot_port_set_pvid()
314 static struct ocelot_bridge_vlan *ocelot_bridge_vlan_find(struct ocelot *ocelot, in ocelot_bridge_vlan_find()
326 static int ocelot_vlan_member_add(struct ocelot *ocelot, int port, u16 vid, in ocelot_vlan_member_add()
375 static int ocelot_vlan_member_del(struct ocelot *ocelot, int port, u16 vid) in ocelot_vlan_member_del()
400 int ocelot_port_vlan_filtering(struct ocelot *ocelot, int port, in ocelot_port_vlan_filtering()
436 int ocelot_vlan_prepare(struct ocelot *ocelot, int port, u16 vid, bool pvid, in ocelot_vlan_prepare()
459 int ocelot_vlan_add(struct ocelot *ocelot, int port, u16 vid, bool pvid, in ocelot_vlan_add()
480 int ocelot_vlan_del(struct ocelot *ocelot, int port, u16 vid) in ocelot_vlan_del()
500 static void ocelot_vlan_init(struct ocelot *ocelot) in ocelot_vlan_init()
531 static u32 ocelot_read_eq_avail(struct ocelot *ocelot, int port) in ocelot_read_eq_avail()
536 static int ocelot_port_flush(struct ocelot *ocelot, int port) in ocelot_port_flush()
589 void ocelot_phylink_mac_link_down(struct ocelot *ocelot, int port, in ocelot_phylink_mac_link_down()
619 void ocelot_phylink_mac_link_up(struct ocelot *ocelot, int port, in ocelot_phylink_mac_link_up()
709 static int ocelot_port_add_txtstamp_skb(struct ocelot *ocelot, int port, in ocelot_port_add_txtstamp_skb()
760 int ocelot_port_txtstamp_request(struct ocelot *ocelot, int port, in ocelot_port_txtstamp_request()
805 static void ocelot_get_hwtimestamp(struct ocelot *ocelot, in ocelot_get_hwtimestamp()
843 void ocelot_get_txtstamp(struct ocelot *ocelot) in ocelot_get_txtstamp()
914 static int ocelot_rx_frame_word(struct ocelot *ocelot, u8 grp, bool ifh, in ocelot_rx_frame_word()
956 static int ocelot_xtr_poll_xfh(struct ocelot *ocelot, int grp, u32 *xfh) in ocelot_xtr_poll_xfh()
969 int ocelot_xtr_poll_frame(struct ocelot *ocelot, int grp, struct sk_buff **nskb) in ocelot_xtr_poll_frame()
1066 bool ocelot_can_inject(struct ocelot *ocelot, int grp) in ocelot_can_inject()
1079 void ocelot_port_inject_frame(struct ocelot *ocelot, int port, int grp, in ocelot_port_inject_frame()
1123 void ocelot_drain_cpu_queue(struct ocelot *ocelot, int grp) in ocelot_drain_cpu_queue()
1130 int ocelot_fdb_add(struct ocelot *ocelot, int port, in ocelot_fdb_add()
1142 int ocelot_fdb_del(struct ocelot *ocelot, int port, in ocelot_fdb_del()
1194 static int ocelot_mact_read(struct ocelot *ocelot, int port, int row, int col, in ocelot_mact_read()
1241 int ocelot_fdb_dump(struct ocelot *ocelot, int port, in ocelot_fdb_dump()
1320 static int ocelot_trap_add(struct ocelot *ocelot, int port, in ocelot_trap_add()
1367 static int ocelot_trap_del(struct ocelot *ocelot, int port, in ocelot_trap_del()
1387 static int ocelot_l2_ptp_trap_add(struct ocelot *ocelot, int port) in ocelot_l2_ptp_trap_add()
1395 static int ocelot_l2_ptp_trap_del(struct ocelot *ocelot, int port) in ocelot_l2_ptp_trap_del()
1402 static int ocelot_ipv4_ptp_trap_add(struct ocelot *ocelot, int port) in ocelot_ipv4_ptp_trap_add()
1421 static int ocelot_ipv4_ptp_trap_del(struct ocelot *ocelot, int port) in ocelot_ipv4_ptp_trap_del()
1432 static int ocelot_ipv6_ptp_trap_add(struct ocelot *ocelot, int port) in ocelot_ipv6_ptp_trap_add()
1451 static int ocelot_ipv6_ptp_trap_del(struct ocelot *ocelot, int port) in ocelot_ipv6_ptp_trap_del()
1462 static int ocelot_setup_ptp_traps(struct ocelot *ocelot, int port, in ocelot_setup_ptp_traps()
1500 int ocelot_hwstamp_get(struct ocelot *ocelot, int port, struct ifreq *ifr) in ocelot_hwstamp_get()
1507 int ocelot_hwstamp_set(struct ocelot *ocelot, int port, struct ifreq *ifr) in ocelot_hwstamp_set()
1588 void ocelot_get_strings(struct ocelot *ocelot, int port, u32 sset, u8 *data) in ocelot_get_strings()
1601 static void ocelot_update_stats(struct ocelot *ocelot) in ocelot_update_stats()
1632 struct ocelot *ocelot = container_of(del_work, struct ocelot, in ocelot_check_stats_work() local
1641 void ocelot_get_ethtool_stats(struct ocelot *ocelot, int port, u64 *data) in ocelot_get_ethtool_stats()
1654 int ocelot_get_sset_count(struct ocelot *ocelot, int port, int sset) in ocelot_get_sset_count()
1663 int ocelot_get_ts_info(struct ocelot *ocelot, int port, in ocelot_get_ts_info()
1691 static u32 ocelot_get_bond_mask(struct ocelot *ocelot, struct net_device *bond, in ocelot_get_bond_mask()
1714 static u32 ocelot_get_bridge_fwd_mask(struct ocelot *ocelot, int src_port, in ocelot_get_bridge_fwd_mask()
1739 static u32 ocelot_get_dsa_8021q_cpu_mask(struct ocelot *ocelot) in ocelot_get_dsa_8021q_cpu_mask()
1757 void ocelot_apply_bridge_fwd_mask(struct ocelot *ocelot) in ocelot_apply_bridge_fwd_mask()
1812 void ocelot_bridge_stp_state_set(struct ocelot *ocelot, int port, u8 state) in ocelot_bridge_stp_state_set()
1830 void ocelot_set_ageing_time(struct ocelot *ocelot, unsigned int msecs) in ocelot_set_ageing_time()
1844 static struct ocelot_multicast *ocelot_multicast_get(struct ocelot *ocelot, in ocelot_multicast_get()
1867 static struct ocelot_pgid *ocelot_pgid_alloc(struct ocelot *ocelot, int index, in ocelot_pgid_alloc()
1884 static void ocelot_pgid_free(struct ocelot *ocelot, struct ocelot_pgid *pgid) in ocelot_pgid_free()
1893 static struct ocelot_pgid *ocelot_mdb_get_pgid(struct ocelot *ocelot, in ocelot_mdb_get_pgid()
1951 int ocelot_port_mdb_add(struct ocelot *ocelot, int port, in ocelot_port_mdb_add()
2007 int ocelot_port_mdb_del(struct ocelot *ocelot, int port, in ocelot_port_mdb_del()
2051 void ocelot_port_bridge_join(struct ocelot *ocelot, int port, in ocelot_port_bridge_join()
2062 void ocelot_port_bridge_leave(struct ocelot *ocelot, int port, in ocelot_port_bridge_leave()
2075 static void ocelot_set_aggr_pgids(struct ocelot *ocelot) in ocelot_set_aggr_pgids()
2157 static void ocelot_setup_logical_port_ids(struct ocelot *ocelot) in ocelot_setup_logical_port_ids()
2186 int ocelot_port_lag_join(struct ocelot *ocelot, int port, in ocelot_port_lag_join()
2203 void ocelot_port_lag_leave(struct ocelot *ocelot, int port, in ocelot_port_lag_leave()
2214 void ocelot_port_lag_change(struct ocelot *ocelot, int port, bool lag_tx_active) in ocelot_port_lag_change()
2231 void ocelot_port_set_maxlen(struct ocelot *ocelot, int port, size_t sdu) in ocelot_port_set_maxlen()
2266 int ocelot_get_max_mtu(struct ocelot *ocelot, int port) in ocelot_get_max_mtu()
2283 static void ocelot_port_set_learning(struct ocelot *ocelot, int port, in ocelot_port_set_learning()
2298 static void ocelot_port_set_ucast_flood(struct ocelot *ocelot, int port, in ocelot_port_set_ucast_flood()
2309 static void ocelot_port_set_mcast_flood(struct ocelot *ocelot, int port, in ocelot_port_set_mcast_flood()
2320 static void ocelot_port_set_bcast_flood(struct ocelot *ocelot, int port, in ocelot_port_set_bcast_flood()
2331 int ocelot_port_pre_bridge_flags(struct ocelot *ocelot, int port, in ocelot_port_pre_bridge_flags()
2342 void ocelot_port_bridge_flags(struct ocelot *ocelot, int port, in ocelot_port_bridge_flags()
2363 void ocelot_init_port(struct ocelot *ocelot, int port) in ocelot_init_port()
2432 static void ocelot_cpu_port_init(struct ocelot *ocelot) in ocelot_cpu_port_init()
2463 static void ocelot_detect_features(struct ocelot *ocelot) in ocelot_detect_features()
2478 int ocelot_init(struct ocelot *ocelot) in ocelot_init()
2628 void ocelot_deinit(struct ocelot *ocelot) in ocelot_deinit()
2637 void ocelot_deinit_port(struct ocelot *ocelot, int port) in ocelot_deinit_port()