Searched refs:ocelot (Results 1 - 25 of 42) sorted by relevance

12

/linux-master/drivers/net/ethernet/mscc/
H A Docelot.h25 #include <soc/mscc/ocelot.h>
54 /* A (PGID) port mask structure, encoding the 2^ocelot->num_phys_ports
77 static inline void ocelot_reg_to_target_addr(struct ocelot *ocelot, argument
83 *addr = ocelot->map[*target][reg & REG_MASK];
86 int ocelot_bridge_num_find(struct ocelot *ocelot,
89 int ocelot_mact_learn(struct ocelot *ocelot, int port,
92 int ocelot_mact_forget(struct ocelot *ocelo
[all...]
H A Docelot_vsc7514.c7 #include <linux/dsa/ocelot.h>
20 #include <soc/mscc/ocelot.h>
24 #include "ocelot.h"
29 static int ocelot_chip_init(struct ocelot *ocelot, const struct ocelot_ops *ops) argument
33 ocelot->map = vsc7514_regmap;
34 ocelot->num_mact_rows = 1024;
35 ocelot->ops = ops;
37 ret = ocelot_regfields_init(ocelot, vsc7514_regfields);
41 ocelot_pll5_init(ocelot);
51 struct ocelot *ocelot = arg; local
77 struct ocelot *ocelot = arg; local
116 mscc_ocelot_teardown_devlink_ports(struct ocelot *ocelot) argument
124 mscc_ocelot_release_ports(struct ocelot *ocelot) argument
143 struct ocelot *ocelot = platform_get_drvdata(pdev); local
236 struct ocelot *ocelot; local
397 struct ocelot *ocelot = platform_get_drvdata(pdev); local
[all...]
H A Docelot.c7 #include <linux/dsa/ocelot.h>
14 #include "ocelot.h"
30 /* Caller must hold &ocelot->mact_lock */
31 static inline u32 ocelot_mact_read_macaccess(struct ocelot *ocelot) argument
33 return ocelot_read(ocelot, ANA_TABLES_MACACCESS);
36 /* Caller must hold &ocelot->mact_lock */
37 static inline int ocelot_mact_wait_for_completion(struct ocelot *ocelot) argument
42 ocelot, va
49 ocelot_mact_select(struct ocelot *ocelot, const unsigned char mac[ETH_ALEN], unsigned int vid) argument
71 __ocelot_mact_learn(struct ocelot *ocelot, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
103 ocelot_mact_learn(struct ocelot *ocelot, int port, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type) argument
117 ocelot_mact_forget(struct ocelot *ocelot, const unsigned char mac[ETH_ALEN], unsigned int vid) argument
139 ocelot_mact_lookup(struct ocelot *ocelot, int *dst_idx, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type *type) argument
174 ocelot_mact_learn_streamdata(struct ocelot *ocelot, int dst_idx, const unsigned char mac[ETH_ALEN], unsigned int vid, enum macaccess_entry_type type, int sfid, int ssid) argument
199 ocelot_mact_init(struct ocelot *ocelot) argument
217 ocelot_pll5_init(struct ocelot *ocelot) argument
247 ocelot_vcap_enable(struct ocelot *ocelot, int port) argument
261 ocelot_single_vlan_aware_bridge(struct ocelot *ocelot, struct netlink_ext_ack *extack) argument
290 ocelot_vlant_read_vlanaccess(struct ocelot *ocelot) argument
295 ocelot_vlant_wait_for_completion(struct ocelot *ocelot) argument
307 ocelot_vlant_set_mask(struct ocelot *ocelot, u16 vid, u32 mask) argument
320 ocelot_port_num_untagged_vlans(struct ocelot *ocelot, int port) argument
343 ocelot_port_num_tagged_vlans(struct ocelot *ocelot, int port) argument
362 ocelot_port_uses_native_vlan(struct ocelot *ocelot, int port) argument
369 ocelot_port_find_native_vlan(struct ocelot *ocelot, int port) argument
384 ocelot_port_manage_port_tag(struct ocelot *ocelot, int port) argument
423 ocelot_bridge_num_find(struct ocelot *ocelot, const struct net_device *bridge) argument
439 ocelot_vlan_unaware_pvid(struct ocelot *ocelot, const struct net_device *bridge) argument
457 ocelot_port_set_pvid(struct ocelot *ocelot, int port, const struct ocelot_bridge_vlan *pvid_vlan) argument
489 ocelot_bridge_vlan_find(struct ocelot *ocelot, u16 vid) argument
501 ocelot_vlan_member_add(struct ocelot *ocelot, int port, u16 vid, bool untagged) argument
550 ocelot_vlan_member_del(struct ocelot *ocelot, int port, u16 vid) argument
575 ocelot_add_vlan_unaware_pvid(struct ocelot *ocelot, int port, const struct net_device *bridge) argument
583 ocelot_del_vlan_unaware_pvid(struct ocelot *ocelot, int port, const struct net_device *bridge) argument
591 ocelot_port_vlan_filtering(struct ocelot *ocelot, int port, bool vlan_aware, struct netlink_ext_ack *extack) argument
641 ocelot_vlan_prepare(struct ocelot *ocelot, int port, u16 vid, bool pvid, bool untagged, struct netlink_ext_ack *extack) argument
670 ocelot_vlan_add(struct ocelot *ocelot, int port, u16 vid, bool pvid, bool untagged) argument
698 ocelot_vlan_del(struct ocelot *ocelot, int port, u16 vid) argument
725 ocelot_vlan_init(struct ocelot *ocelot) argument
756 ocelot_read_eq_avail(struct ocelot *ocelot, int port) argument
761 ocelot_port_flush(struct ocelot *ocelot, int port) argument
814 ocelot_port_configure_serdes(struct ocelot *ocelot, int port, struct device_node *portnp) argument
853 ocelot_phylink_mac_config(struct ocelot *ocelot, int port, unsigned int link_an_mode, const struct phylink_link_state *state) argument
879 ocelot_phylink_mac_link_down(struct ocelot *ocelot, int port, unsigned int link_an_mode, phy_interface_t interface, unsigned long quirks) argument
917 ocelot_phylink_mac_link_up(struct ocelot *ocelot, int port, struct phy_device *phydev, unsigned int link_an_mode, phy_interface_t interface, int speed, int duplex, bool tx_pause, bool rx_pause, unsigned long quirks) argument
1024 ocelot_rx_frame_word(struct ocelot *ocelot, u8 grp, bool ifh, u32 *rval) argument
1066 ocelot_xtr_poll_xfh(struct ocelot *ocelot, int grp, u32 *xfh) argument
1079 ocelot_ptp_rx_timestamp(struct ocelot *ocelot, struct sk_buff *skb, u64 timestamp) argument
1102 ocelot_xtr_poll_frame(struct ocelot *ocelot, int grp, struct sk_buff **nskb) argument
1183 ocelot_can_inject(struct ocelot *ocelot, int grp) argument
1208 ocelot_port_inject_frame(struct ocelot *ocelot, int port, int grp, u32 rew_op, struct sk_buff *skb) argument
1248 ocelot_drain_cpu_queue(struct ocelot *ocelot, int grp) argument
1255 ocelot_fdb_add(struct ocelot *ocelot, int port, const unsigned char *addr, u16 vid, const struct net_device *bridge) argument
1265 ocelot_fdb_del(struct ocelot *ocelot, int port, const unsigned char *addr, u16 vid, const struct net_device *bridge) argument
1276 ocelot_mact_read(struct ocelot *ocelot, int port, int row, int col, struct ocelot_mact_entry *entry) argument
1323 ocelot_mact_flush(struct ocelot *ocelot, int port) argument
1360 ocelot_fdb_dump(struct ocelot *ocelot, int port, dsa_fdb_dump_cb_t *cb, void *data) argument
1406 ocelot_trap_add(struct ocelot *ocelot, int port, unsigned long cookie, bool take_ts, void (*populate)(struct ocelot_vcap_filter *f)) argument
1455 ocelot_trap_del(struct ocelot *ocelot, int port, unsigned long cookie) argument
1474 ocelot_get_bond_mask(struct ocelot *ocelot, struct net_device *bond) argument
1497 ocelot_bond_get_id(struct ocelot *ocelot, struct net_device *bond) argument
1518 ocelot_dsa_8021q_cpu_assigned_ports(struct ocelot *ocelot, struct ocelot_port *cpu) argument
1543 ocelot_port_assigned_dsa_8021q_cpu_mask(struct ocelot *ocelot, int port) argument
1558 ocelot_get_bridge_fwd_mask(struct ocelot *ocelot, int src_port) argument
1587 ocelot_apply_bridge_fwd_mask(struct ocelot *ocelot, bool joining) argument
1657 ocelot_update_pgid_cpu(struct ocelot *ocelot) argument
1677 ocelot_port_setup_dsa_8021q_cpu(struct ocelot *ocelot, int cpu) argument
1695 ocelot_port_teardown_dsa_8021q_cpu(struct ocelot *ocelot, int cpu) argument
1713 ocelot_port_assign_dsa_8021q_cpu(struct ocelot *ocelot, int port, int cpu) argument
1727 ocelot_port_unassign_dsa_8021q_cpu(struct ocelot *ocelot, int port) argument
1738 ocelot_bridge_stp_state_set(struct ocelot *ocelot, int port, u8 state) argument
1760 ocelot_set_ageing_time(struct ocelot *ocelot, unsigned int msecs) argument
1774 ocelot_multicast_get(struct ocelot *ocelot, const unsigned char *addr, u16 vid) argument
1797 ocelot_pgid_alloc(struct ocelot *ocelot, int index, unsigned long ports) argument
1814 ocelot_pgid_free(struct ocelot *ocelot, struct ocelot_pgid *pgid) argument
1823 ocelot_mdb_get_pgid(struct ocelot *ocelot, const struct ocelot_multicast *mc) argument
1881 ocelot_port_mdb_add(struct ocelot *ocelot, int port, const struct switchdev_obj_port_mdb *mdb, const struct net_device *bridge) argument
1938 ocelot_port_mdb_del(struct ocelot *ocelot, int port, const struct switchdev_obj_port_mdb *mdb, const struct net_device *bridge) argument
1983 ocelot_port_bridge_join(struct ocelot *ocelot, int port, struct net_device *bridge, int bridge_num, struct netlink_ext_ack *extack) argument
2010 ocelot_port_bridge_leave(struct ocelot *ocelot, int port, struct net_device *bridge) argument
2031 ocelot_set_aggr_pgids(struct ocelot *ocelot) argument
2117 ocelot_setup_logical_port_ids(struct ocelot *ocelot) argument
2145 ocelot_migrate_mc(struct ocelot *ocelot, struct ocelot_multicast *mc, unsigned long from_mask, unsigned long to_mask) argument
2187 ocelot_migrate_mdbs(struct ocelot *ocelot, unsigned long from_mask, unsigned long to_mask) argument
2216 ocelot_migrate_lag_fdbs(struct ocelot *ocelot, struct net_device *bond, int lag) argument
2246 ocelot_port_lag_join(struct ocelot *ocelot, int port, struct net_device *bond, struct netdev_lag_upper_info *info, struct netlink_ext_ack *extack) argument
2271 ocelot_port_lag_leave(struct ocelot *ocelot, int port, struct net_device *bond) argument
2295 ocelot_port_lag_change(struct ocelot *ocelot, int port, bool lag_tx_active) argument
2310 ocelot_lag_fdb_add(struct ocelot *ocelot, struct net_device *bond, const unsigned char *addr, u16 vid, const struct net_device *bridge) argument
2346 ocelot_lag_fdb_del(struct ocelot *ocelot, struct net_device *bond, const unsigned char *addr, u16 vid, const struct net_device *bridge) argument
2382 ocelot_port_set_maxlen(struct ocelot *ocelot, int port, size_t sdu) argument
2417 ocelot_get_max_mtu(struct ocelot *ocelot, int port) argument
2434 ocelot_port_set_learning(struct ocelot *ocelot, int port, bool enabled) argument
2449 ocelot_port_set_ucast_flood(struct ocelot *ocelot, int port, bool enabled) argument
2460 ocelot_port_set_mcast_flood(struct ocelot *ocelot, int port, bool enabled) argument
2473 ocelot_port_set_bcast_flood(struct ocelot *ocelot, int port, bool enabled) argument
2484 ocelot_port_pre_bridge_flags(struct ocelot *ocelot, int port, struct switchdev_brport_flags flags) argument
2495 ocelot_port_bridge_flags(struct ocelot *ocelot, int port, struct switchdev_brport_flags flags) argument
2516 ocelot_port_get_default_prio(struct ocelot *ocelot, int port) argument
2524 ocelot_port_set_default_prio(struct ocelot *ocelot, int port, u8 prio) argument
2539 ocelot_port_get_dscp_prio(struct ocelot *ocelot, int port, u8 dscp) argument
2564 ocelot_port_add_dscp_prio(struct ocelot *ocelot, int port, u8 dscp, u8 prio) argument
2591 ocelot_port_del_dscp_prio(struct ocelot *ocelot, int port, u8 dscp, u8 prio) argument
2632 ocelot_mirror_get(struct ocelot *ocelot, int to, struct netlink_ext_ack *extack) argument
2662 ocelot_mirror_put(struct ocelot *ocelot) argument
2674 ocelot_port_mirror_add(struct ocelot *ocelot, int from, int to, bool ingress, struct netlink_ext_ack *extack) argument
2695 ocelot_port_mirror_del(struct ocelot *ocelot, int from, bool ingress) argument
2708 ocelot_port_reset_mqprio(struct ocelot *ocelot, int port) argument
2716 ocelot_port_mqprio(struct ocelot *ocelot, int port, struct tc_mqprio_qopt_offload *mqprio) argument
2760 ocelot_init_port(struct ocelot *ocelot, int port) argument
2829 ocelot_cpu_port_init(struct ocelot *ocelot) argument
2860 ocelot_detect_features(struct ocelot *ocelot) argument
2875 ocelot_mem_init_status(struct ocelot *ocelot) argument
2886 ocelot_reset(struct ocelot *ocelot) argument
2915 ocelot_init(struct ocelot *ocelot) argument
3066 ocelot_deinit(struct ocelot *ocelot) argument
3073 ocelot_deinit_port(struct ocelot *ocelot, int port) argument
[all...]
H A Docelot_vcap.h9 #include "ocelot.h"
15 int ocelot_vcap_filter_stats_update(struct ocelot *ocelot,
18 int ocelot_vcap_init(struct ocelot *ocelot);
H A Docelot_mm.c9 #include <soc/mscc/ocelot.h>
13 #include "ocelot.h"
52 void ocelot_port_update_active_preemptible_tcs(struct ocelot *ocelot, int port) argument
54 struct ocelot_port *ocelot_port = ocelot->ports[port];
55 struct ocelot_mm_state *mm = &ocelot->mm[port];
58 lockdep_assert_held(&ocelot->fwd_domain_lock);
76 ocelot->ops->tas_guard_bands_update(ocelot, port);
78 dev_dbg(ocelot
90 ocelot_port_change_fp(struct ocelot *ocelot, int port, unsigned long preemptible_tcs) argument
105 ocelot_mm_update_port_status(struct ocelot *ocelot, int port) argument
155 ocelot_mm_irq(struct ocelot *ocelot) argument
168 ocelot_port_set_mm(struct ocelot *ocelot, int port, struct ethtool_mm_cfg *cfg, struct netlink_ext_ack *extack) argument
234 ocelot_port_get_mm(struct ocelot *ocelot, int port, struct ethtool_mm_state *state) argument
272 ocelot_mm_init(struct ocelot *ocelot) argument
[all...]
H A Docelot_devlink.c5 #include "ocelot.h"
221 static u32 ocelot_wm_read(struct ocelot *ocelot, int index) argument
223 int wm = ocelot_read_gix(ocelot, QSYS_RES_CFG, index);
225 return ocelot->ops->wm_dec(wm);
228 static void ocelot_wm_write(struct ocelot *ocelot, int index, u32 val) argument
230 u32 wm = ocelot->ops->wm_enc(val);
232 ocelot_write_gix(ocelot, wm, QSYS_RES_CFG, index);
235 static void ocelot_wm_status(struct ocelot *ocelo argument
252 ocelot_disable_reservation_watermarks(struct ocelot *ocelot, int port) argument
289 ocelot_disable_tc_sharing_watermarks(struct ocelot *ocelot) argument
301 ocelot_get_buf_rsrv(struct ocelot *ocelot, u32 *buf_rsrv_i, u32 *buf_rsrv_e) argument
325 ocelot_get_ref_rsrv(struct ocelot *ocelot, u32 *ref_rsrv_i, u32 *ref_rsrv_e) argument
349 ocelot_setup_sharing_watermarks(struct ocelot *ocelot) argument
382 ocelot_watermark_validate(struct ocelot *ocelot, struct netlink_ext_ack *extack) argument
476 ocelot_watermark_init(struct ocelot *ocelot) argument
536 ocelot_sb_pool_get(struct ocelot *ocelot, unsigned int sb_index, u16 pool_index, struct devlink_sb_pool_info *pool_info) argument
561 ocelot_sb_pool_set(struct ocelot *ocelot, unsigned int sb_index, u16 pool_index, u32 size, enum devlink_sb_threshold_type threshold_type, struct netlink_ext_ack *extack) argument
601 ocelot_sb_port_pool_get(struct ocelot *ocelot, int port, unsigned int sb_index, u16 pool_index, u32 *p_threshold) argument
632 ocelot_sb_port_pool_set(struct ocelot *ocelot, int port, unsigned int sb_index, u16 pool_index, u32 threshold, struct netlink_ext_ack *extack) argument
675 ocelot_sb_tc_pool_bind_get(struct ocelot *ocelot, int port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 *p_pool_index, u32 *p_threshold) argument
712 ocelot_sb_tc_pool_bind_set(struct ocelot *ocelot, int port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u16 pool_index, u32 threshold, struct netlink_ext_ack *extack) argument
766 ocelot_sb_occ_snapshot(struct ocelot *ocelot, unsigned int sb_index) argument
775 ocelot_sb_occ_max_clear(struct ocelot *ocelot, unsigned int sb_index) argument
818 ocelot_sb_occ_port_pool_get(struct ocelot *ocelot, int port, unsigned int sb_index, u16 pool_index, u32 *p_cur, u32 *p_max) argument
850 ocelot_sb_occ_tc_port_bind_get(struct ocelot *ocelot, int port, unsigned int sb_index, u16 tc_index, enum devlink_sb_pool_type pool_type, u32 *p_cur, u32 *p_max) argument
882 ocelot_devlink_sb_register(struct ocelot *ocelot) argument
911 ocelot_devlink_sb_unregister(struct ocelot *ocelot) argument
[all...]
H A Docelot_mrp.c12 #include "ocelot.h"
18 static int ocelot_mrp_find_partner_port(struct ocelot *ocelot, argument
23 for (i = 0; i < ocelot->num_phys_ports; ++i) {
24 struct ocelot_port *ocelot_port = ocelot->ports[i];
36 static int ocelot_mrp_del_vcap(struct ocelot *ocelot, int id) argument
41 block_vcap_is2 = &ocelot->block[VCAP_IS2];
47 return ocelot_vcap_filter_del(ocelot, filter);
50 static int ocelot_mrp_redirect_add_vcap(struct ocelot *ocelo argument
91 ocelot_mrp_trap_add(struct ocelot *ocelot, int port) argument
99 ocelot_mrp_trap_del(struct ocelot *ocelot, int port) argument
106 ocelot_mrp_save_mac(struct ocelot *ocelot, struct ocelot_port *port) argument
115 ocelot_mrp_del_mac(struct ocelot *ocelot, struct ocelot_port *port) argument
122 ocelot_mrp_add(struct ocelot *ocelot, int port, const struct switchdev_obj_mrp *mrp) argument
144 ocelot_mrp_del(struct ocelot *ocelot, int port, const struct switchdev_obj_mrp *mrp) argument
161 ocelot_mrp_add_ring_role(struct ocelot *ocelot, int port, const struct switchdev_obj_ring_role_mrp *mrp) argument
201 ocelot_mrp_del_ring_role(struct ocelot *ocelot, int port, const struct switchdev_obj_ring_role_mrp *mrp) argument
[all...]
H A Docelot_io.c11 #include "ocelot.h"
13 int __ocelot_bulk_read_ix(struct ocelot *ocelot, enum ocelot_reg reg, argument
19 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr);
22 return regmap_bulk_read(ocelot->targets[target], addr + offset,
27 u32 __ocelot_read_ix(struct ocelot *ocelot, enum ocelot_reg reg, u32 offset) argument
32 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr);
35 regmap_read(ocelot->targets[target], addr + offset, &val);
40 void __ocelot_write_ix(struct ocelot *ocelo argument
53 __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, enum ocelot_reg reg, u32 offset) argument
68 struct ocelot *ocelot = port->ocelot; local
81 struct ocelot *ocelot = port->ocelot; local
99 __ocelot_target_read_ix(struct ocelot *ocelot, enum ocelot_target target, u32 reg, u32 offset) argument
109 __ocelot_target_write_ix(struct ocelot *ocelot, enum ocelot_target target, u32 val, u32 reg, u32 offset) argument
116 ocelot_regfields_init(struct ocelot *ocelot, const struct reg_field *const regfields) argument
156 ocelot_regmap_init(struct ocelot *ocelot, struct resource *res) argument
[all...]
H A Docelot_net.c11 #include <linux/dsa/ocelot.h>
16 #include "ocelot.h"
32 static struct ocelot *devlink_port_to_ocelot(struct devlink_port *dlp)
39 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); local
41 return dlp - ocelot->devlink_ports;
48 struct ocelot *ocelot = devlink_priv(dl); local
50 return ocelot_sb_pool_get(ocelot, sb_index, pool_index, pool_info);
58 struct ocelot *ocelo local
68 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); local
80 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); local
93 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); local
108 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); local
119 struct ocelot *ocelot = devlink_priv(dl); local
127 struct ocelot *ocelot = devlink_priv(dl); local
137 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); local
150 struct ocelot *ocelot = devlink_port_to_ocelot(dlp); local
171 ocelot_port_devlink_init(struct ocelot *ocelot, int port, enum devlink_port_flavour flavour) argument
190 ocelot_port_devlink_teardown(struct ocelot *ocelot, int port) argument
201 struct ocelot *ocelot = priv->port.ocelot; local
225 struct ocelot *ocelot = priv->port.ocelot; local
266 struct ocelot *ocelot = priv->port.ocelot; local
306 struct ocelot *ocelot = priv->port.ocelot; local
327 struct ocelot *ocelot = priv->port.ocelot; local
497 struct ocelot *ocelot = ocelot_port->ocelot; local
515 struct ocelot *ocelot = priv->port.ocelot; local
558 struct ocelot *ocelot = ocelot_port->ocelot; local
599 struct ocelot *ocelot; member in struct:ocelot_mact_work_ctx
623 struct ocelot *ocelot = w->ocelot; local
640 ocelot_enqueue_mact_action(struct ocelot *ocelot, const struct ocelot_mact_work_ctx *ctx) argument
659 struct ocelot *ocelot = ocelot_port->ocelot; local
673 struct ocelot *ocelot = ocelot_port->ocelot; local
688 struct ocelot *ocelot = priv->port.ocelot; local
707 struct ocelot *ocelot = ocelot_port->ocelot; local
724 struct ocelot *ocelot = priv->port.ocelot; local
738 struct ocelot *ocelot = ocelot_port->ocelot; local
751 struct ocelot *ocelot = ocelot_port->ocelot; local
806 struct ocelot *ocelot = priv->port.ocelot; local
835 ocelot_vlan_mode(struct ocelot *ocelot, int port, netdev_features_t features) argument
854 struct ocelot *ocelot = priv->port.ocelot; local
873 struct ocelot *ocelot = priv->port.ocelot; local
895 struct ocelot *ocelot = ocelot_port->ocelot; local
921 ocelot_port_to_netdev(struct ocelot *ocelot, int port) argument
956 struct ocelot *ocelot = priv->port.ocelot; local
967 struct ocelot *ocelot = priv->port.ocelot; local
976 struct ocelot *ocelot = priv->port.ocelot; local
986 struct ocelot *ocelot = priv->port.ocelot; local
1004 ocelot_port_attr_stp_state_set(struct ocelot *ocelot, int port, u8 state) argument
1010 ocelot_port_attr_ageing_set(struct ocelot *ocelot, int port, unsigned long ageing_clock_t) argument
1019 ocelot_port_attr_mc_set(struct ocelot *ocelot, int port, bool mc) argument
1038 struct ocelot *ocelot = priv->port.ocelot; local
1079 struct ocelot *ocelot = ocelot_port->ocelot; local
1105 struct ocelot *ocelot = ocelot_port->ocelot; local
1116 struct ocelot *ocelot = ocelot_port->ocelot; local
1127 struct ocelot *ocelot = ocelot_port->ocelot; local
1138 struct ocelot *ocelot = ocelot_port->ocelot; local
1150 struct ocelot *ocelot = ocelot_port->ocelot; local
1162 struct ocelot *ocelot = ocelot_port->ocelot; local
1232 ocelot_inherit_brport_flags(struct ocelot *ocelot, int port, struct net_device *brport_dev) argument
1247 ocelot_clear_brport_flags(struct ocelot *ocelot, int port) argument
1257 ocelot_switchdev_sync(struct ocelot *ocelot, int port, struct net_device *brport_dev, struct net_device *bridge_dev, struct netlink_ext_ack *extack) argument
1278 ocelot_switchdev_unsync(struct ocelot *ocelot, int port) argument
1293 ocelot_bridge_num_get(struct ocelot *ocelot, const struct net_device *bridge_dev) argument
1309 ocelot_bridge_num_put(struct ocelot *ocelot, const struct net_device *bridge_dev, int bridge_num) argument
1327 struct ocelot *ocelot = ocelot_port->ocelot; local
1378 struct ocelot *ocelot = ocelot_port->ocelot; local
1400 struct ocelot *ocelot = ocelot_port->ocelot; local
1442 struct ocelot *ocelot = ocelot_port->ocelot; local
1557 struct ocelot *ocelot = ocelot_port->ocelot; local
1678 struct ocelot *ocelot = priv->port.ocelot; local
1690 struct ocelot *ocelot = priv->port.ocelot; local
1706 struct ocelot *ocelot = priv->port.ocelot; local
1720 ocelot_port_phylink_create(struct ocelot *ocelot, int port, struct device_node *portnp) argument
1783 ocelot_probe_port(struct ocelot *ocelot, int port, struct regmap *target, struct device_node *portnp) argument
1851 struct ocelot *ocelot = ocelot_port->ocelot; local
[all...]
H A Docelot_ptp.c9 #include <linux/dsa/ocelot.h>
14 #include <soc/mscc/ocelot.h>
15 #include "ocelot.h"
19 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); local
25 spin_lock_irqsave(&ocelot->ptp_clock_lock, flags);
27 val = ocelot_read_rix(ocelot, PTP_PIN_CFG, TOD_ACC_PIN);
30 ocelot_write_rix(ocelot, val, PTP_PIN_CFG, TOD_ACC_PIN);
32 s = ocelot_read_rix(ocelot, PTP_PIN_TOD_SEC_MS
54 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); local
90 struct ocelot *ocelot = container_of(ptp, struct ocelot, local
138 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); local
200 struct ocelot *ocelot = container_of(ptp, struct ocelot, ptp_info); local
364 ocelot_l2_ptp_trap_add(struct ocelot *ocelot, int port) argument
372 ocelot_l2_ptp_trap_del(struct ocelot *ocelot, int port) argument
379 ocelot_ipv4_ptp_trap_add(struct ocelot *ocelot, int port) argument
398 ocelot_ipv4_ptp_trap_del(struct ocelot *ocelot, int port) argument
409 ocelot_ipv6_ptp_trap_add(struct ocelot *ocelot, int port) argument
428 ocelot_ipv6_ptp_trap_del(struct ocelot *ocelot, int port) argument
439 ocelot_setup_ptp_traps(struct ocelot *ocelot, int port, bool l2, bool l4) argument
498 ocelot_hwstamp_get(struct ocelot *ocelot, int port, struct ifreq *ifr) argument
521 ocelot_hwstamp_set(struct ocelot *ocelot, int port, struct ifreq *ifr) argument
582 ocelot_get_ts_info(struct ocelot *ocelot, int port, struct ethtool_ts_info *info) argument
610 ocelot_port_add_txtstamp_skb(struct ocelot *ocelot, int port, struct sk_buff *clone) argument
661 ocelot_port_txtstamp_request(struct ocelot *ocelot, int port, struct sk_buff *skb, struct sk_buff **clone) argument
706 ocelot_get_hwtimestamp(struct ocelot *ocelot, struct timespec64 *ts) argument
744 ocelot_get_txtstamp(struct ocelot *ocelot) argument
815 ocelot_init_timestamp(struct ocelot *ocelot, const struct ptp_clock_info *info) argument
852 ocelot_deinit_timestamp(struct ocelot *ocelot) argument
[all...]
H A Docelot_stats.c11 #include "ocelot.h"
153 * and copied to ocelot->stats.
312 ocelot_get_stats_layout(struct ocelot *ocelot) argument
314 if (ocelot->mm_supported)
321 * Caller must hold &ocelot->stat_view_lock.
323 static int ocelot_port_update_stats(struct ocelot *ocelot, int port) argument
329 ocelot_write(ocelot, SYS_STAT_CFG_STAT_VIEW(port), SYS_STAT_CFG);
331 list_for_each_entry(region, &ocelot
344 ocelot_port_transfer_stats(struct ocelot *ocelot, int port) argument
367 struct ocelot *ocelot = container_of(del_work, struct ocelot, local
395 ocelot_get_strings(struct ocelot *ocelot, int port, u32 sset, u8 *data) argument
416 ocelot_port_stats_run(struct ocelot *ocelot, int port, void *priv, void (*cb)(struct ocelot *ocelot, int port, void *priv)) argument
442 ocelot_get_sset_count(struct ocelot *ocelot, int port, int sset) argument
461 ocelot_port_ethtool_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
481 ocelot_get_ethtool_stats(struct ocelot *ocelot, int port, u64 *data) argument
487 ocelot_port_pause_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
496 ocelot_port_pmac_pause_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
506 ocelot_port_mm_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
520 ocelot_port_get_pause_stats(struct ocelot *ocelot, int port, struct ethtool_pause_stats *pause_stats) argument
543 ocelot_port_get_mm_stats(struct ocelot *ocelot, int port, struct ethtool_mm_stats *stats) argument
564 ocelot_port_rmon_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
591 ocelot_port_pmac_rmon_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
619 ocelot_port_get_rmon_stats(struct ocelot *ocelot, int port, struct ethtool_rmon_stats *rmon_stats, const struct ethtool_rmon_hist_range **ranges) argument
645 ocelot_port_ctrl_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
653 ocelot_port_pmac_ctrl_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
662 ocelot_port_get_eth_ctrl_stats(struct ocelot *ocelot, int port, struct ethtool_eth_ctrl_stats *ctrl_stats) argument
685 ocelot_port_mac_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
727 ocelot_port_pmac_mac_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
761 ocelot_port_get_eth_mac_stats(struct ocelot *ocelot, int port, struct ethtool_eth_mac_stats *mac_stats) argument
784 ocelot_port_phy_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
792 ocelot_port_pmac_phy_stats_cb(struct ocelot *ocelot, int port, void *priv) argument
801 ocelot_port_get_eth_phy_stats(struct ocelot *ocelot, int port, struct ethtool_eth_phy_stats *phy_stats) argument
824 ocelot_port_get_stats64(struct ocelot *ocelot, int port, struct rtnl_link_stats64 *stats) argument
889 ocelot_prepare_stats_regions(struct ocelot *ocelot) argument
952 ocelot_stats_init(struct ocelot *ocelot) argument
985 ocelot_stats_deinit(struct ocelot *ocelot) argument
[all...]
H A Docelot_fdma.c13 #include <linux/dsa/ocelot.h>
22 static void ocelot_fdma_writel(struct ocelot *ocelot, u32 reg, u32 data) argument
24 regmap_write(ocelot->targets[FDMA], reg, data);
27 static u32 ocelot_fdma_readl(struct ocelot *ocelot, u32 reg) argument
31 regmap_read(ocelot->targets[FDMA], reg, &retval);
85 static void ocelot_fdma_activate_chan(struct ocelot *ocelot, dma_addr_t dma, argument
88 ocelot_fdma_writel(ocelot, MSCC_FDMA_DCB_LL
96 ocelot_fdma_read_ch_safe(struct ocelot *ocelot) argument
101 ocelot_fdma_wait_chan_safe(struct ocelot *ocelot, int chan) argument
122 ocelot_fdma_rx_alloc_page(struct ocelot *ocelot, struct ocelot_fdma_rx_buf *rxb) argument
146 ocelot_fdma_alloc_rx_buffs(struct ocelot *ocelot, u16 alloc_cnt) argument
186 ocelot_fdma_tx_dcb_set_skb(struct ocelot *ocelot, struct ocelot_fdma_tx_buf *tx_buf, struct ocelot_fdma_dcb *dcb, struct sk_buff *skb) argument
208 ocelot_fdma_check_stop_rx(struct ocelot *ocelot) argument
234 ocelot_fdma_rx_restart(struct ocelot *ocelot) argument
295 ocelot_fdma_reuse_rx_page(struct ocelot *ocelot, struct ocelot_fdma_rx_buf *old_rxb) argument
314 ocelot_fdma_get_skb(struct ocelot *ocelot, u32 stat, struct ocelot_fdma_rx_buf *rxb, struct sk_buff *skb) argument
353 ocelot_fdma_receive_skb(struct ocelot *ocelot, struct sk_buff *skb) argument
389 ocelot_fdma_rx_get(struct ocelot *ocelot, int budget) argument
461 ocelot_fdma_wakeup_netdev(struct ocelot *ocelot) argument
481 ocelot_fdma_tx_cleanup(struct ocelot *ocelot, int budget) argument
554 struct ocelot *ocelot = fdma->ocelot; local
580 struct ocelot *ocelot = dev_id; local
607 ocelot_fdma_send_skb(struct ocelot *ocelot, struct ocelot_fdma *fdma, struct sk_buff *skb) argument
640 ocelot_fdma_prepare_skb(struct ocelot *ocelot, int port, u32 rew_op, struct sk_buff *skb, struct net_device *dev) argument
674 ocelot_fdma_inject_frame(struct ocelot *ocelot, int port, u32 rew_op, struct sk_buff *skb, struct net_device *dev) argument
699 ocelot_fdma_free_rx_ring(struct ocelot *ocelot) argument
722 ocelot_fdma_free_tx_ring(struct ocelot *ocelot) argument
743 ocelot_fdma_rings_alloc(struct ocelot *ocelot) argument
790 ocelot_fdma_netdev_init(struct ocelot *ocelot, struct net_device *dev) argument
805 ocelot_fdma_netdev_deinit(struct ocelot *ocelot, struct net_device *dev) argument
815 ocelot_fdma_init(struct platform_device *pdev, struct ocelot *ocelot) argument
853 ocelot_fdma_start(struct ocelot *ocelot) argument
879 ocelot_fdma_deinit(struct ocelot *ocelot) argument
[all...]
H A Docelot_fdma.h10 #include "ocelot.h"
144 * @ocelot: Back-pointer to ocelot struct
154 struct ocelot *ocelot; member in struct:ocelot_fdma
157 void ocelot_fdma_init(struct platform_device *pdev, struct ocelot *ocelot);
158 void ocelot_fdma_start(struct ocelot *ocelot);
159 void ocelot_fdma_deinit(struct ocelot *ocelo
[all...]
H A Docelot_vcap.c49 static u32 vcap_read_update_ctrl(struct ocelot *ocelot, argument
52 return ocelot_target_read(ocelot, vcap->target, VCAP_CORE_UPDATE_CTRL);
55 static void vcap_cmd(struct ocelot *ocelot, const struct vcap_props *vcap, argument
74 ocelot_target_write(ocelot, vcap->target, value, VCAP_CORE_UPDATE_CTRL);
78 10, 100000, false, ocelot, vcap);
82 static void vcap_row_cmd(struct ocelot *ocelot, const struct vcap_props *vcap, argument
85 vcap_cmd(ocelot, vca
88 vcap_entry2cache(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) argument
105 vcap_cache2entry(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) argument
123 vcap_action2cache(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) argument
148 vcap_cache2action(struct ocelot *ocelot, const struct vcap_props *vcap, struct vcap_data *data) argument
330 is2_action_set(struct ocelot *ocelot, struct vcap_data *data, struct ocelot_vcap_filter *filter) argument
345 is2_entry_set(struct ocelot *ocelot, int ix, struct ocelot_vcap_filter *filter) argument
646 is1_action_set(struct ocelot *ocelot, struct vcap_data *data, const struct ocelot_vcap_filter *filter) argument
669 is1_entry_set(struct ocelot *ocelot, int ix, struct ocelot_vcap_filter *filter) argument
780 es0_action_set(struct ocelot *ocelot, struct vcap_data *data, const struct ocelot_vcap_filter *filter) argument
808 es0_entry_set(struct ocelot *ocelot, int ix, struct ocelot_vcap_filter *filter) argument
851 vcap_entry_get(struct ocelot *ocelot, int ix, struct ocelot_vcap_filter *filter) argument
875 vcap_entry_set(struct ocelot *ocelot, int ix, struct ocelot_vcap_filter *filter) argument
892 ocelot_vcap_policer_add(struct ocelot *ocelot, u32 pol_ix, struct ocelot_policer *pol) argument
930 ocelot_vcap_policer_del(struct ocelot *ocelot, u32 pol_ix) argument
955 ocelot_vcap_filter_add_aux_resources(struct ocelot *ocelot, struct ocelot_vcap_filter *filter, struct netlink_ext_ack *extack) argument
980 ocelot_vcap_filter_del_aux_resources(struct ocelot *ocelot, struct ocelot_vcap_filter *filter) argument
990 ocelot_vcap_filter_add_to_block(struct ocelot *ocelot, struct ocelot_vcap_block *block, struct ocelot_vcap_filter *filter, struct netlink_ext_ack *extack) argument
1078 ocelot_match_all_as_mac_etype(struct ocelot *ocelot, int port, int lookup, bool on) argument
1138 ocelot_exclusive_mac_etype_filter_rules(struct ocelot *ocelot, struct ocelot_vcap_filter *filter) argument
1183 ocelot_vcap_filter_add(struct ocelot *ocelot, struct ocelot_vcap_filter *filter, struct netlink_ext_ack *extack) argument
1222 ocelot_vcap_block_remove_filter(struct ocelot *ocelot, struct ocelot_vcap_block *block, struct ocelot_vcap_filter *filter) argument
1239 ocelot_vcap_filter_del(struct ocelot *ocelot, struct ocelot_vcap_filter *filter) argument
1277 ocelot_vcap_filter_replace(struct ocelot *ocelot, struct ocelot_vcap_filter *filter) argument
1293 ocelot_vcap_filter_stats_update(struct ocelot *ocelot, struct ocelot_vcap_filter *filter) argument
1314 ocelot_vcap_init_one(struct ocelot *ocelot, const struct vcap_props *vcap) argument
1333 ocelot_vcap_detect_constants(struct ocelot *ocelot, struct vcap_props *vcap) argument
1402 ocelot_vcap_init(struct ocelot *ocelot) argument
[all...]
H A Docelot_police.c7 #include <soc/mscc/ocelot.h>
23 int qos_policer_conf_set(struct ocelot *ocelot, u32 pol_ix, argument
105 dev_err(ocelot->dev,
112 dev_err(ocelot->dev,
119 dev_err(ocelot->dev,
126 dev_err(ocelot->dev,
138 ocelot_write_gix(ocelot, value, ANA_POL_MODE_CFG, pol_ix);
140 ocelot_write_gix(ocelot,
145 ocelot_write_gix(ocelot,
202 ocelot_port_policer_add(struct ocelot *ocelot, int port, struct ocelot_policer *pol) argument
233 ocelot_port_policer_del(struct ocelot *ocelot, int port) argument
[all...]
H A Docelot_police.h10 #include "ocelot.h"
34 int qos_policer_conf_set(struct ocelot *ocelot, u32 pol_ix,
H A Docelot_flower.c145 ocelot_find_vcap_filter_that_points_at(struct ocelot *ocelot, int chain) argument
156 block = &ocelot->block[VCAP_IS1];
164 list_for_each_entry(filter, &ocelot->dummy_rules, list)
172 ocelot_flower_parse_ingress_vlan_modify(struct ocelot *ocelot, int port, argument
177 struct ocelot_port *ocelot_port = ocelot->ports[port];
231 static int ocelot_flower_parse_action(struct ocelot *ocelot, int port, argument
340 pol_ix = a->hw_index + ocelot
520 ocelot_flower_parse_indev(struct ocelot *ocelot, int port, struct flow_cls_offload *f, struct ocelot_vcap_filter *filter) argument
572 ocelot_flower_parse_key(struct ocelot *ocelot, int port, bool ingress, struct flow_cls_offload *f, struct ocelot_vcap_filter *filter) argument
782 ocelot_flower_parse(struct ocelot *ocelot, int port, bool ingress, struct flow_cls_offload *f, struct ocelot_vcap_filter *filter) argument
804 ocelot_vcap_filter_create(struct ocelot *ocelot, int port, bool ingress, struct flow_cls_offload *f) argument
826 ocelot_vcap_dummy_filter_add(struct ocelot *ocelot, struct ocelot_vcap_filter *filter) argument
834 ocelot_vcap_dummy_filter_del(struct ocelot *ocelot, struct ocelot_vcap_filter *filter) argument
868 ocelot_cls_flower_replace(struct ocelot *ocelot, int port, struct flow_cls_offload *f, bool ingress) argument
937 ocelot_cls_flower_destroy(struct ocelot *ocelot, int port, struct flow_cls_offload *f, bool ingress) argument
974 ocelot_cls_flower_stats(struct ocelot *ocelot, int port, struct flow_cls_offload *f, bool ingress) argument
[all...]
/linux-master/include/soc/mscc/
H A Docelot.h34 * ocelot->num_phys_ports - 1, or a multicast set: the PGIDs from
35 * ocelot->num_phys_ports to 63. By convention, a unicast PGID corresponds to
73 #define for_each_unicast_dest_pgid(ocelot, pgid) \
75 (pgid) < (ocelot)->num_phys_ports; \
78 #define for_each_nonreserved_multicast_dest_pgid(ocelot, pgid) \
79 for ((pgid) = (ocelot)->num_phys_ports + 1; \
83 #define for_each_aggr_pgid(ocelot, pgid) \
648 struct ocelot;
652 struct net_device *(*port_to_netdev)(struct ocelot *ocelot, in
765 struct ocelot *ocelot; member in struct:ocelot_port
805 struct ocelot { struct
1179 ocelot_mrp_add(struct ocelot *ocelot, int port, const struct switchdev_obj_mrp *mrp) argument
1185 ocelot_mrp_del(struct ocelot *ocelot, int port, const struct switchdev_obj_mrp *mrp) argument
1192 ocelot_mrp_add_ring_role(struct ocelot *ocelot, int port, const struct switchdev_obj_ring_role_mrp *mrp) argument
1199 ocelot_mrp_del_ring_role(struct ocelot *ocelot, int port, const struct switchdev_obj_ring_role_mrp *mrp) argument
[all...]
H A Docelot_ptp.h14 #include <soc/mscc/ocelot.h>
57 int ocelot_init_timestamp(struct ocelot *ocelot,
59 int ocelot_deinit_timestamp(struct ocelot *ocelot);
H A Docelot_vcap.h9 #include <soc/mscc/ocelot.h>
14 #define OCELOT_VCAP_ES0_TAG_8021Q_RXVLAN(ocelot, port, upstream) ((upstream) << 16 | (port))
15 #define OCELOT_VCAP_IS1_TAG_8021Q_TXVLAN(ocelot, port) (port)
16 #define OCELOT_VCAP_IS2_TAG_8021Q_TXVLAN(ocelot, port) (port)
17 #define OCELOT_VCAP_IS2_MRP_REDIRECT(ocelot, port) ((ocelot)->num_phys_ports + (port))
18 #define OCELOT_VCAP_IS2_MRP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2)
19 #define OCELOT_VCAP_IS2_L2_PTP_TRAP(ocelot) ((ocelot)
[all...]
/linux-master/drivers/phy/mscc/
H A DMakefile6 obj-$(CONFIG_PHY_OCELOT_SERDES) := phy-ocelot-serdes.o
/linux-master/drivers/net/dsa/ocelot/
H A Dfelix.h7 #define ocelot_to_felix(o) container_of((o), struct felix, ocelot)
56 int (*mdio_bus_alloc)(struct ocelot *ocelot);
57 void (*mdio_bus_free)(struct ocelot *ocelot);
60 void (*port_sched_speed_set)(struct ocelot *ocelot, int port,
62 void (*phylink_mac_config)(struct ocelot *ocelot, int port,
65 int (*configure_serdes)(struct ocelot *ocelo
91 struct ocelot ocelot; member in struct:felix
[all...]
H A Dfelix.c15 #include <soc/mscc/ocelot.h>
17 #include <linux/dsa/ocelot.h>
28 /* Translate the DSA database API into the ocelot switch library API,
48 struct ocelot *ocelot = ds->priv; local
53 mutex_lock(&ocelot->fwd_domain_lock);
54 lag = ocelot_bond_get_id(ocelot, conduit);
55 mutex_unlock(&ocelot->fwd_domain_lock);
71 struct ocelot *ocelot local
112 struct ocelot *ocelot = ds->priv; local
134 struct ocelot *ocelot = ds->priv; local
201 struct ocelot *ocelot = ds->priv; local
308 struct ocelot *ocelot = ds->priv; local
371 felix_npi_port_init(struct ocelot *ocelot, int port) argument
389 felix_npi_port_deinit(struct ocelot *ocelot, int port) argument
411 struct ocelot *ocelot = ds->priv; local
432 struct ocelot *ocelot = ds->priv; local
439 struct ocelot *ocelot = ds->priv; local
449 struct ocelot *ocelot = ds->priv; local
494 struct ocelot *ocelot = ds->priv; local
538 struct ocelot *ocelot = ds->priv; local
569 struct ocelot *ocelot = ds->priv; local
587 struct ocelot *ocelot = ds->priv; local
607 struct ocelot *ocelot = ds->priv; local
625 struct ocelot *ocelot = ds->priv; local
669 struct ocelot *ocelot = ds->priv; local
716 struct ocelot *ocelot = ds->priv; local
725 struct ocelot *ocelot = ds->priv; local
748 struct ocelot *ocelot = ds->priv; local
757 struct ocelot *ocelot = ds->priv; local
766 struct ocelot *ocelot = ds->priv; local
778 struct ocelot *ocelot = ds->priv; local
789 struct ocelot *ocelot = ds->priv; local
810 struct ocelot *ocelot = ds->priv; local
830 struct ocelot *ocelot = ds->priv; local
843 struct ocelot *ocelot = ds->priv; local
856 struct ocelot *ocelot = ds->priv; local
876 struct ocelot *ocelot = ds->priv; local
894 struct ocelot *ocelot = ds->priv; local
903 struct ocelot *ocelot = ds->priv; local
912 struct ocelot *ocelot = ds->priv; local
926 struct ocelot *ocelot = ds->priv; local
935 struct ocelot *ocelot = ds->priv; local
945 struct ocelot *ocelot = ds->priv; local
962 struct ocelot *ocelot = ds->priv; local
976 struct ocelot *ocelot = ds->priv; local
987 struct ocelot *ocelot = ds->priv; local
1010 struct ocelot *ocelot = ds->priv; local
1019 struct ocelot *ocelot = ds->priv; local
1035 struct ocelot *ocelot = ds->priv; local
1043 struct ocelot *ocelot = ds->priv; local
1057 struct ocelot *ocelot = ds->priv; local
1068 struct ocelot *ocelot = ds->priv; local
1082 struct ocelot *ocelot = ds->priv; local
1098 struct ocelot *ocelot = ds->priv; local
1113 struct ocelot *ocelot = ds->priv; local
1130 felix_port_qos_map_init(struct ocelot *ocelot, int port) argument
1154 struct ocelot *ocelot = ds->priv; local
1162 struct ocelot *ocelot = ds->priv; local
1171 struct ocelot *ocelot = ds->priv; local
1179 struct ocelot *ocelot = ds->priv; local
1187 struct ocelot *ocelot = ds->priv; local
1195 struct ocelot *ocelot = ds->priv; local
1203 struct ocelot *ocelot = ds->priv; local
1210 struct ocelot *ocelot = ds->priv; local
1217 struct ocelot *ocelot = ds->priv; local
1225 struct ocelot *ocelot = ds->priv; local
1323 struct ocelot *ocelot = &felix->ocelot; local
1373 struct ocelot *ocelot = &felix->ocelot; local
1467 ocelot_port_purge_txtstamp_skb(struct ocelot *ocelot, int port, struct sk_buff *skb) argument
1503 struct ocelot *ocelot = ds->priv; local
1548 struct ocelot *ocelot = ds->priv; local
1618 struct ocelot *ocelot = ds->priv; local
1641 struct ocelot *ocelot = ds->priv; local
1649 struct ocelot *ocelot = ds->priv; local
1663 felix_check_xtr_pkt(struct ocelot *ocelot) argument
1718 struct ocelot *ocelot = ds->priv; local
1763 struct ocelot *ocelot = ds->priv; local
1782 struct ocelot *ocelot = ds->priv; local
1799 struct ocelot *ocelot = ds->priv; local
1807 struct ocelot *ocelot = ds->priv; local
1824 struct ocelot *ocelot = ds->priv; local
1832 struct ocelot *ocelot = ds->priv; local
1840 struct ocelot *ocelot = ds->priv; local
1851 struct ocelot *ocelot = ds->priv; local
1860 struct ocelot *ocelot = ds->priv; local
1869 struct ocelot *ocelot = ds->priv; local
1878 struct ocelot *ocelot = ds->priv; local
1891 struct ocelot *ocelot = ds->priv; local
1901 struct ocelot *ocelot = ds->priv; local
1911 struct ocelot *ocelot = ds->priv; local
1921 struct ocelot *ocelot = ds->priv; local
1932 struct ocelot *ocelot = ds->priv; local
1945 struct ocelot *ocelot = ds->priv; local
1955 struct ocelot *ocelot = ds->priv; local
1963 struct ocelot *ocelot = ds->priv; local
1972 struct ocelot *ocelot = ds->priv; local
1983 struct ocelot *ocelot = ds->priv; local
1992 struct ocelot *ocelot = ds->priv; local
2000 struct ocelot *ocelot = ds->priv; local
2009 struct ocelot *ocelot = ds->priv; local
2018 struct ocelot *ocelot = ds->priv; local
2025 struct ocelot *ocelot = ds->priv; local
2033 struct ocelot *ocelot = ds->priv; local
2040 struct ocelot *ocelot = ds->priv; local
2048 struct ocelot *ocelot = ds->priv; local
2056 struct ocelot *ocelot = ds->priv; local
2064 struct ocelot *ocelot = ds->priv; local
2073 struct ocelot *ocelot = ds->priv; local
2081 struct ocelot *ocelot = ds->priv; local
2171 felix_port_to_netdev(struct ocelot *ocelot, int port) argument
[all...]
H A Dfelix_vsc9959.c13 #include <soc/mscc/ocelot.h>
14 #include <linux/dsa/ocelot.h>
879 static int vsc9959_gcb_soft_rst_status(struct ocelot *ocelot) argument
883 ocelot_field_read(ocelot, GCB_SOFT_RST_SWC_RST, &val);
888 static int vsc9959_sys_ram_init_status(struct ocelot *ocelot) argument
890 return ocelot_read(ocelot, SYS_RAM_INIT);
896 static int vsc9959_reset(struct ocelot *ocelot) argument
956 vsc9959_mdio_bus_alloc(struct ocelot *ocelot) argument
1044 vsc9959_mdio_bus_free(struct ocelot *ocelot) argument
1144 vsc9959_port_qmaxsdu_set(struct ocelot *ocelot, int port, int tc, u32 max_sdu) argument
1183 vsc9959_port_qmaxsdu_get(struct ocelot *ocelot, int port, int tc) argument
1213 vsc9959_tas_guard_bands_update(struct ocelot *ocelot, int port) argument
1343 vsc9959_sched_speed_set(struct ocelot *ocelot, int port, u32 speed) argument
1380 vsc9959_new_base_time(struct ocelot *ocelot, ktime_t base_time, u64 cycle_time, struct timespec64 *new_base_ts) argument
1402 vsc9959_tas_read_cfg_status(struct ocelot *ocelot) argument
1407 vsc9959_tas_gcl_set(struct ocelot *ocelot, const u32 gcl_ix, struct tc_taprio_sched_entry *entry) argument
1417 vsc9959_qos_port_tas_set(struct ocelot *ocelot, int port, struct tc_taprio_qopt_offload *taprio) argument
1533 vsc9959_tas_clock_adjust(struct ocelot *ocelot) argument
1585 struct ocelot *ocelot = ds->priv; local
1650 vsc9959_qos_port_mqprio(struct ocelot *ocelot, int port, struct tc_mqprio_qopt_offload *mqprio) argument
1666 struct ocelot *ocelot = ds->priv; local
1790 vsc9959_mact_stream_set(struct ocelot *ocelot, struct felix_stream *stream, struct netlink_ext_ack *extack) argument
1839 vsc9959_stream_table_add(struct ocelot *ocelot, struct list_head *stream_list, struct felix_stream *stream, struct netlink_ext_ack *extack) argument
1876 vsc9959_stream_table_del(struct ocelot *ocelot, struct felix_stream *stream) argument
1886 vsc9959_sfi_access_status(struct ocelot *ocelot) argument
1891 vsc9959_psfp_sfi_set(struct ocelot *ocelot, struct felix_stream_filter *sfi) argument
1935 vsc9959_psfp_sfidmask_set(struct ocelot *ocelot, u32 sfid, int ports) argument
1959 vsc9959_psfp_sfi_list_add(struct ocelot *ocelot, struct felix_stream_filter *sfi, struct list_head *pos) argument
1985 vsc9959_psfp_sfi_table_add(struct ocelot *ocelot, struct felix_stream_filter *sfi) argument
2018 vsc9959_psfp_sfi_table_add2(struct ocelot *ocelot, struct felix_stream_filter *sfi, struct felix_stream_filter *sfi2) argument
2063 vsc9959_psfp_sfi_table_del(struct ocelot *ocelot, u32 index) argument
2099 vsc9959_sgi_cfg_status(struct ocelot *ocelot) argument
2104 vsc9959_psfp_sgi_set(struct ocelot *ocelot, struct felix_stream_gate *sgi) argument
2174 vsc9959_psfp_sgi_table_add(struct ocelot *ocelot, struct felix_stream_gate *sgi) argument
2206 vsc9959_psfp_sgi_table_del(struct ocelot *ocelot, u32 index) argument
2230 vsc9959_psfp_filter_add(struct ocelot *ocelot, int port, struct flow_cls_offload *f) argument
2383 vsc9959_psfp_filter_del(struct ocelot *ocelot, struct flow_cls_offload *f) argument
2433 vsc9959_update_sfid_stats(struct ocelot *ocelot, struct felix_stream_filter *sfi) argument
2464 vsc9959_update_stats(struct ocelot *ocelot) argument
2477 vsc9959_psfp_stats_get(struct ocelot *ocelot, struct flow_cls_offload *f, struct flow_stats *stats) argument
2509 vsc9959_psfp_init(struct ocelot *ocelot) argument
2528 vsc9959_cut_through_fwd(struct ocelot *ocelot) argument
2652 struct ocelot *ocelot = (struct ocelot *)data; local
2664 struct ocelot *ocelot; local
[all...]
H A Docelot_ext.c6 #include <linux/mfd/ocelot.h>
9 #include <soc/mscc/ocelot.h>
70 struct ocelot *ocelot; local
80 ocelot = &felix->ocelot;
81 ocelot->dev = dev;
83 ocelot->num_flooding_pgids = 1;
99 ds->priv = ocelot;
151 .name = "ocelot
[all...]

Completed in 226 milliseconds

12