Lines Matching refs:port

36  *   a physical port and has a single bit set in the destination ports mask:
37 * that corresponding to the port number itself. In contrast, a multicast
46 * Code, will ensure that each flow gets forwarded only to a single port out
49 * is indexed with the ingress port (plus 80). These PGIDs answer the
50 * question "is port i allowed to forward traffic to port j?" If yes, then
58 * of the switch port net devices, towards the CPU port module.
91 /* Source PGIDs, one per physical port */
652 struct net_device *(*port_to_netdev)(struct ocelot *ocelot, int port);
659 int (*psfp_filter_add)(struct ocelot *ocelot, int port,
666 void (*tas_guard_bands_update)(struct ocelot *ocelot, int port);
952 u32 ocelot_port_readl(struct ocelot_port *port, enum ocelot_reg reg);
953 void ocelot_port_writel(struct ocelot_port *port, u32 val, enum ocelot_reg reg);
954 void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask,
970 void ocelot_port_inject_frame(struct ocelot *ocelot, int port, int grp,
972 void ocelot_ifh_port_set(void *ifh, int port, u32 rew_op, u32 vlan_tag);
985 void ocelot_init_port(struct ocelot *ocelot, int port);
986 void ocelot_deinit_port(struct ocelot *ocelot, int port);
990 void ocelot_port_assign_dsa_8021q_cpu(struct ocelot *ocelot, int port, int cpu);
991 void ocelot_port_unassign_dsa_8021q_cpu(struct ocelot *ocelot, int port);
992 u32 ocelot_port_assigned_dsa_8021q_cpu_mask(struct ocelot *ocelot, int port);
1000 void ocelot_get_strings(struct ocelot *ocelot, int port, u32 sset, u8 *data);
1001 void ocelot_get_ethtool_stats(struct ocelot *ocelot, int port, u64 *data);
1002 int ocelot_get_sset_count(struct ocelot *ocelot, int port, int sset);
1003 void ocelot_port_get_stats64(struct ocelot *ocelot, int port,
1005 void ocelot_port_get_pause_stats(struct ocelot *ocelot, int port,
1007 void ocelot_port_get_mm_stats(struct ocelot *ocelot, int port,
1009 void ocelot_port_get_rmon_stats(struct ocelot *ocelot, int port,
1012 void ocelot_port_get_eth_ctrl_stats(struct ocelot *ocelot, int port,
1014 void ocelot_port_get_eth_mac_stats(struct ocelot *ocelot, int port,
1016 void ocelot_port_get_eth_phy_stats(struct ocelot *ocelot, int port,
1018 int ocelot_get_ts_info(struct ocelot *ocelot, int port,
1021 int ocelot_port_vlan_filtering(struct ocelot *ocelot, int port, bool enabled,
1023 void ocelot_bridge_stp_state_set(struct ocelot *ocelot, int port, u8 state);
1025 int ocelot_port_pre_bridge_flags(struct ocelot *ocelot, int port,
1027 void ocelot_port_bridge_flags(struct ocelot *ocelot, int port,
1029 int ocelot_port_get_default_prio(struct ocelot *ocelot, int port);
1030 int ocelot_port_set_default_prio(struct ocelot *ocelot, int port, u8 prio);
1031 int ocelot_port_get_dscp_prio(struct ocelot *ocelot, int port, u8 dscp);
1032 int ocelot_port_add_dscp_prio(struct ocelot *ocelot, int port, u8 dscp, u8 prio);
1033 int ocelot_port_del_dscp_prio(struct ocelot *ocelot, int port, u8 dscp, u8 prio);
1034 int ocelot_port_bridge_join(struct ocelot *ocelot, int port,
1037 void ocelot_port_bridge_leave(struct ocelot *ocelot, int port,
1039 int ocelot_mact_flush(struct ocelot *ocelot, int port);
1040 int ocelot_fdb_dump(struct ocelot *ocelot, int port,
1042 int ocelot_fdb_add(struct ocelot *ocelot, int port, const unsigned char *addr,
1044 int ocelot_fdb_del(struct ocelot *ocelot, int port, const unsigned char *addr,
1052 int ocelot_vlan_prepare(struct ocelot *ocelot, int port, u16 vid, bool pvid,
1054 int ocelot_vlan_add(struct ocelot *ocelot, int port, u16 vid, bool pvid,
1056 int ocelot_vlan_del(struct ocelot *ocelot, int port, u16 vid);
1057 int ocelot_hwstamp_get(struct ocelot *ocelot, int port, struct ifreq *ifr);
1058 int ocelot_hwstamp_set(struct ocelot *ocelot, int port, struct ifreq *ifr);
1059 int ocelot_port_txtstamp_request(struct ocelot *ocelot, int port,
1063 void ocelot_port_set_maxlen(struct ocelot *ocelot, int port, size_t sdu);
1064 int ocelot_get_max_mtu(struct ocelot *ocelot, int port);
1065 int ocelot_port_policer_add(struct ocelot *ocelot, int port,
1067 int ocelot_port_policer_del(struct ocelot *ocelot, int port);
1071 int ocelot_cls_flower_replace(struct ocelot *ocelot, int port,
1073 int ocelot_cls_flower_destroy(struct ocelot *ocelot, int port,
1075 int ocelot_cls_flower_stats(struct ocelot *ocelot, int port,
1077 int ocelot_port_mdb_add(struct ocelot *ocelot, int port,
1080 int ocelot_port_mdb_del(struct ocelot *ocelot, int port,
1083 int ocelot_port_lag_join(struct ocelot *ocelot, int port,
1087 void ocelot_port_lag_leave(struct ocelot *ocelot, int port,
1089 void ocelot_port_lag_change(struct ocelot *ocelot, int port, bool lag_tx_active);
1101 int ocelot_sb_port_pool_get(struct ocelot *ocelot, int port,
1104 int ocelot_sb_port_pool_set(struct ocelot *ocelot, int port,
1107 int ocelot_sb_tc_pool_bind_get(struct ocelot *ocelot, int port,
1111 int ocelot_sb_tc_pool_bind_set(struct ocelot *ocelot, int port,
1118 int ocelot_sb_occ_port_pool_get(struct ocelot *ocelot, int port,
1121 int ocelot_sb_occ_tc_port_bind_get(struct ocelot *ocelot, int port,
1126 int ocelot_port_configure_serdes(struct ocelot *ocelot, int port,
1129 void ocelot_phylink_mac_config(struct ocelot *ocelot, int port,
1132 void ocelot_phylink_mac_link_down(struct ocelot *ocelot, int port,
1136 void ocelot_phylink_mac_link_up(struct ocelot *ocelot, int port,
1161 int ocelot_port_set_mm(struct ocelot *ocelot, int port,
1164 int ocelot_port_get_mm(struct ocelot *ocelot, int port,
1166 int ocelot_port_mqprio(struct ocelot *ocelot, int port,
1170 int ocelot_mrp_add(struct ocelot *ocelot, int port,
1172 int ocelot_mrp_del(struct ocelot *ocelot, int port,
1174 int ocelot_mrp_add_ring_role(struct ocelot *ocelot, int port,
1176 int ocelot_mrp_del_ring_role(struct ocelot *ocelot, int port,
1179 static inline int ocelot_mrp_add(struct ocelot *ocelot, int port,
1185 static inline int ocelot_mrp_del(struct ocelot *ocelot, int port,
1192 ocelot_mrp_add_ring_role(struct ocelot *ocelot, int port,
1199 ocelot_mrp_del_ring_role(struct ocelot *ocelot, int port,