Lines Matching full:ocelot

32  *   ocelot->num_phys_ports - 1, or a multicast set: the PGIDs from
33 * ocelot->num_phys_ports to 63. By convention, a unicast PGID corresponds to
68 #define for_each_unicast_dest_pgid(ocelot, pgid) \ argument
70 (pgid) < (ocelot)->num_phys_ports; \
73 #define for_each_nonreserved_multicast_dest_pgid(ocelot, pgid) \ argument
74 for ((pgid) = (ocelot)->num_phys_ports + 1; \
78 #define for_each_aggr_pgid(ocelot, pgid) \ argument
559 struct ocelot;
562 struct net_device *(*port_to_netdev)(struct ocelot *ocelot, int port);
564 int (*reset)(struct ocelot *ocelot);
575 struct ocelot *ocelot; member
597 struct ocelot { struct
665 #define ocelot_read_ix(ocelot, reg, gi, ri) __ocelot_read_ix(ocelot, reg, reg##_GSZ * (gi) + reg##_… argument
666 #define ocelot_read_gix(ocelot, reg, gi) __ocelot_read_ix(ocelot, reg, reg##_GSZ * (gi)) argument
667 #define ocelot_read_rix(ocelot, reg, ri) __ocelot_read_ix(ocelot, reg, reg##_RSZ * (ri)) argument
668 #define ocelot_read(ocelot, reg) __ocelot_read_ix(ocelot, reg, 0) argument
670 #define ocelot_write_ix(ocelot, val, reg, gi, ri) __ocelot_write_ix(ocelot, val, reg, reg##_GSZ * (… argument
671 #define ocelot_write_gix(ocelot, val, reg, gi) __ocelot_write_ix(ocelot, val, reg, reg##_GSZ * (gi)) argument
672 #define ocelot_write_rix(ocelot, val, reg, ri) __ocelot_write_ix(ocelot, val, reg, reg##_RSZ * (ri)) argument
673 #define ocelot_write(ocelot, val, reg) __ocelot_write_ix(ocelot, val, reg, 0) argument
675 #define ocelot_rmw_ix(ocelot, val, m, reg, gi, ri) __ocelot_rmw_ix(ocelot, val, m, reg, reg##_GSZ *… argument
676 #define ocelot_rmw_gix(ocelot, val, m, reg, gi) __ocelot_rmw_ix(ocelot, val, m, reg, reg##_GSZ * (g… argument
677 #define ocelot_rmw_rix(ocelot, val, m, reg, ri) __ocelot_rmw_ix(ocelot, val, m, reg, reg##_RSZ * (r… argument
678 #define ocelot_rmw(ocelot, val, m, reg) __ocelot_rmw_ix(ocelot, val, m, reg, 0) argument
680 #define ocelot_field_write(ocelot, reg, val) regmap_field_write((ocelot)->regfields[(reg)], (val)) argument
681 #define ocelot_field_read(ocelot, reg, val) regmap_field_read((ocelot)->regfields[(reg)], (val)) argument
682 #define ocelot_fields_write(ocelot, id, reg, val) regmap_fields_write((ocelot)->regfields[(reg)], (… argument
683 #define ocelot_fields_read(ocelot, id, reg, val) regmap_fields_read((ocelot)->regfields[(reg)], (id… argument
685 #define ocelot_target_read_ix(ocelot, target, reg, gi, ri) \ argument
686 __ocelot_target_read_ix(ocelot, target, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))
687 #define ocelot_target_read_gix(ocelot, target, reg, gi) \ argument
688 __ocelot_target_read_ix(ocelot, target, reg, reg##_GSZ * (gi))
689 #define ocelot_target_read_rix(ocelot, target, reg, ri) \ argument
690 __ocelot_target_read_ix(ocelot, target, reg, reg##_RSZ * (ri))
691 #define ocelot_target_read(ocelot, target, reg) \ argument
692 __ocelot_target_read_ix(ocelot, target, reg, 0)
694 #define ocelot_target_write_ix(ocelot, target, val, reg, gi, ri) \ argument
695 __ocelot_target_write_ix(ocelot, target, val, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))
696 #define ocelot_target_write_gix(ocelot, target, val, reg, gi) \ argument
697 __ocelot_target_write_ix(ocelot, target, val, reg, reg##_GSZ * (gi))
698 #define ocelot_target_write_rix(ocelot, target, val, reg, ri) \ argument
699 __ocelot_target_write_ix(ocelot, target, val, reg, reg##_RSZ * (ri))
700 #define ocelot_target_write(ocelot, target, val, reg) \ argument
701 __ocelot_target_write_ix(ocelot, target, val, reg, 0)
706 u32 __ocelot_read_ix(struct ocelot *ocelot, u32 reg, u32 offset);
707 void __ocelot_write_ix(struct ocelot *ocelot, u32 val, u32 reg, u32 offset);
708 void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask, u32 reg,
710 u32 __ocelot_target_read_ix(struct ocelot *ocelot, enum ocelot_target target,
712 void __ocelot_target_write_ix(struct ocelot *ocelot, enum ocelot_target target,
716 int ocelot_regfields_init(struct ocelot *ocelot,
718 struct regmap *ocelot_regmap_init(struct ocelot *ocelot, struct resource *res);
719 int ocelot_init(struct ocelot *ocelot);
720 void ocelot_deinit(struct ocelot *ocelot);
721 void ocelot_init_port(struct ocelot *ocelot, int port);
722 void ocelot_deinit_port(struct ocelot *ocelot, int port);
725 void ocelot_port_enable(struct ocelot *ocelot, int port,
727 void ocelot_port_disable(struct ocelot *ocelot, int port);
728 void ocelot_get_strings(struct ocelot *ocelot, int port, u32 sset, u8 *data);
729 void ocelot_get_ethtool_stats(struct ocelot *ocelot, int port, u64 *data);
730 int ocelot_get_sset_count(struct ocelot *ocelot, int port, int sset);
731 int ocelot_get_ts_info(struct ocelot *ocelot, int port,
733 void ocelot_set_ageing_time(struct ocelot *ocelot, unsigned int msecs);
734 void ocelot_adjust_link(struct ocelot *ocelot, int port,
736 int ocelot_port_vlan_filtering(struct ocelot *ocelot, int port, bool enabled,
738 void ocelot_bridge_stp_state_set(struct ocelot *ocelot, int port, u8 state);
739 int ocelot_port_bridge_join(struct ocelot *ocelot, int port,
741 int ocelot_port_bridge_leave(struct ocelot *ocelot, int port,
743 int ocelot_fdb_dump(struct ocelot *ocelot, int port,
745 int ocelot_fdb_add(struct ocelot *ocelot, int port,
747 int ocelot_fdb_del(struct ocelot *ocelot, int port,
749 int ocelot_vlan_add(struct ocelot *ocelot, int port, u16 vid, bool pvid,
751 int ocelot_vlan_del(struct ocelot *ocelot, int port, u16 vid);
752 int ocelot_hwstamp_get(struct ocelot *ocelot, int port, struct ifreq *ifr);
753 int ocelot_hwstamp_set(struct ocelot *ocelot, int port, struct ifreq *ifr);
754 void ocelot_port_add_txtstamp_skb(struct ocelot *ocelot, int port,
756 void ocelot_get_txtstamp(struct ocelot *ocelot);
757 void ocelot_port_set_maxlen(struct ocelot *ocelot, int port, size_t sdu);
758 int ocelot_get_max_mtu(struct ocelot *ocelot, int port);
759 int ocelot_port_policer_add(struct ocelot *ocelot, int port,
761 int ocelot_port_policer_del(struct ocelot *ocelot, int port);
762 int ocelot_cls_flower_replace(struct ocelot *ocelot, int port,
764 int ocelot_cls_flower_destroy(struct ocelot *ocelot, int port,
766 int ocelot_cls_flower_stats(struct ocelot *ocelot, int port,
768 int ocelot_port_mdb_add(struct ocelot *ocelot, int port,
770 int ocelot_port_mdb_del(struct ocelot *ocelot, int port,