/linux/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_fdma.c | 259 struct sparx5 *sparx5 = container_of(rx, struct sparx5, rx); in sparx5_fdma_napi_callback() local 307 int sparx5_fdma_xmit(struct sparx5 *sparx5, u32 *ifh, struct sk_buff *skb) in sparx5_fdma_xmit() 342 static int sparx5_fdma_rx_alloc(struct sparx5 *sparx5) in sparx5_fdma_rx_alloc() 388 static int sparx5_fdma_tx_alloc(struct sparx5 *sparx5) in sparx5_fdma_tx_alloc() 434 static void sparx5_fdma_rx_init(struct sparx5 *sparx5, in sparx5_fdma_rx_init() 451 static void sparx5_fdma_tx_init(struct sparx5 *sparx5, in sparx5_fdma_tx_init() 459 struct sparx5 *sparx5 = args; in sparx5_fdma_handler() local 482 static void sparx5_fdma_injection_mode(struct sparx5 *sparx5) in sparx5_fdma_injection_mode() 542 int sparx5_fdma_start(struct sparx5 *sparx5) in sparx5_fdma_start() 575 static u32 sparx5_fdma_port_ctrl(struct sparx5 *sparx5) in sparx5_fdma_port_ctrl() [all …]
|
A D | sparx5_mactable.c | 59 static void sparx5_mact_select(struct sparx5 *sparx5, in sparx5_mact_select() 80 int sparx5_mact_learn(struct sparx5 *sparx5, int pgid, in sparx5_mact_learn() 121 struct sparx5 *sparx5 = port->sparx5; in sparx5_mc_unsync() local 129 struct sparx5 *sparx5 = port->sparx5; in sparx5_mc_sync() local 134 static int sparx5_mact_get(struct sparx5 *sparx5, in sparx5_mact_get() 159 bool sparx5_mact_getnext(struct sparx5 *sparx5, in sparx5_mact_getnext() 189 static int sparx5_mact_lookup(struct sparx5 *sparx5, in sparx5_mact_lookup() 217 int sparx5_mact_forget(struct sparx5 *sparx5, in sparx5_mact_forget() 288 int sparx5_add_mact_entry(struct sparx5 *sparx5, in sparx5_add_mact_entry() 333 int sparx5_del_mact_entry(struct sparx5 *sparx5, in sparx5_del_mact_entry() [all …]
|
A D | sparx5_vlan.c | 10 static int sparx5_vlant_set_mask(struct sparx5 *sparx5, u16 vid) in sparx5_vlant_set_mask() 25 void sparx5_vlan_init(struct sparx5 *sparx5) in sparx5_vlan_init() 42 void sparx5_vlan_port_setup(struct sparx5 *sparx5, int portno) in sparx5_vlan_port_setup() 58 struct sparx5 *sparx5 = port->sparx5; in sparx5_vlan_vid_add() local 89 struct sparx5 *sparx5 = port->sparx5; in sparx5_vlan_vid_del() local 120 struct sparx5 *sparx5 = port->sparx5; in sparx5_pgid_update_mask() local 141 void sparx5_update_fwd(struct sparx5 *sparx5) in sparx5_update_fwd() 185 void sparx5_vlan_port_apply(struct sparx5 *sparx5, in sparx5_vlan_port_apply()
|
A D | sparx5_port.c | 77 static int sparx5_get_dev2g5_status(struct sparx5 *sparx5, in sparx5_get_dev2g5_status() 120 static int sparx5_get_sfi_status(struct sparx5 *sparx5, in sparx5_get_sfi_status() 159 int sparx5_get_port_status(struct sparx5 *sparx5, in sparx5_get_port_status() 263 static bool sparx5_dev_change(struct sparx5 *sparx5, in sparx5_dev_change() 456 static int sparx5_port_fifo_sz(struct sparx5 *sparx5, in sparx5_port_fifo_sz() 515 static int sparx5_port_mux_set(struct sparx5 *sparx5, in sparx5_port_mux_set() 680 int sparx5_serdes_set(struct sparx5 *sparx5, in sparx5_serdes_set() 920 int sparx5_port_pcs_set(struct sparx5 *sparx5, in sparx5_port_pcs_set() 969 int sparx5_port_config(struct sparx5 *sparx5, in sparx5_port_config() 1012 int sparx5_port_init(struct sparx5 *sparx5, in sparx5_port_init() [all …]
|
A D | sparx5_main.h | 149 struct sparx5 *sparx5; member 180 struct sparx5 { struct 189 struct sparx5_port *ports[SPX5_PORTS]; argument 192 u32 num_stats; 193 u32 num_ethtool_stats; 195 u64 *stats; 197 struct mutex queue_stats_lock; 198 struct delayed_work stats_work; 225 struct sparx5_rx rx; argument 226 struct sparx5_tx tx; argument [all …]
|
A D | sparx5_main.c | 212 static int sparx5_create_targets(struct sparx5 *sparx5) in sparx5_create_targets() 253 static int sparx5_create_port(struct sparx5 *sparx5, in sparx5_create_port() 353 static int sparx5_init_switchcore(struct sparx5 *sparx5) in sparx5_init_switchcore() 386 static int sparx5_init_coreclock(struct sparx5 *sparx5) in sparx5_init_coreclock() 515 static int sparx5_qlim_set(struct sparx5 *sparx5) in sparx5_qlim_set() 541 static void sparx5_board_init(struct sparx5 *sparx5) in sparx5_board_init() 563 static int sparx5_start(struct sparx5 *sparx5) in sparx5_start() 673 static void sparx5_cleanup_ports(struct sparx5 *sparx5) in sparx5_cleanup_ports() 685 struct sparx5 *sparx5; in mchp_sparx5_probe() local 837 struct sparx5 *sparx5 = platform_get_drvdata(pdev); in mchp_sparx5_remove() local
|
A D | sparx5_netdev.c | 130 struct sparx5 *sparx5 = port->sparx5; in sparx5_set_rx_mode() local 152 struct sparx5 *sparx5 = port->sparx5; in sparx5_set_mac_address() local 174 struct sparx5 *sparx5 = sparx5_port->sparx5; in sparx5_get_port_parent_id() local 199 struct net_device *sparx5_create_netdev(struct sparx5 *sparx5, u32 portno) in sparx5_create_netdev() 223 int sparx5_register_netdevs(struct sparx5 *sparx5) in sparx5_register_netdevs() 242 void sparx5_destroy_netdevs(struct sparx5 *sparx5) in sparx5_destroy_netdevs() 261 void sparx5_unregister_netdevs(struct sparx5 *sparx5) in sparx5_unregister_netdevs()
|
A D | sparx5_ethtool.c | 815 struct sparx5 *sparx5 = port->sparx5; in sparx5_get_eth_phy_stats() local 840 struct sparx5 *sparx5 = port->sparx5; in sparx5_get_eth_mac_stats() local 908 struct sparx5 *sparx5 = port->sparx5; in sparx5_get_eth_mac_ctrl_stats() local 940 struct sparx5 *sparx5 = port->sparx5; in sparx5_get_eth_rmon_stats() local 998 struct sparx5 *sparx5 = port->sparx5; in sparx5_get_sset_count() local 1008 struct sparx5 *sparx5 = port->sparx5; in sparx5_get_sset_strings() local 1023 struct sparx5 *sparx5 = port->sparx5; in sparx5_get_sset_data() local 1053 struct sparx5 *sparx5 = port->sparx5; in sparx5_get_stats64() local 1122 static void sparx5_update_stats(struct sparx5 *sparx5) in sparx5_update_stats() 1134 struct sparx5 *sparx5 = container_of(dwork, in sparx5_check_stats_work() local [all …]
|
A D | sparx5_switchdev.c | 32 struct sparx5 *sparx5 = port->sparx5; in sparx5_attr_stp_state_set() local 99 struct sparx5 *sparx5 = port->sparx5; in sparx5_port_bridge_join() local 135 struct sparx5 *sparx5 = port->sparx5; in sparx5_port_bridge_leave() local 177 struct sparx5 *sparx5 = port->sparx5; in sparx5_port_add_addr() local 230 struct sparx5 *sparx5; in sparx5_switchdev_bridge_fdb_event_work() local 317 static void sparx5_sync_port_dev_addr(struct sparx5 *sparx5, in sparx5_sync_port_dev_addr() 344 struct sparx5 *sparx5, in sparx5_sync_bridge_dev_addr() 373 struct sparx5 *sparx5 = in sparx5_handle_port_vlan_add() local 420 struct sparx5 *sparx5 = in sparx5_handle_port_vlan_del() local
|
A D | sparx5_packet.c | 23 void sparx5_xtr_flush(struct sparx5 *sparx5, u8 grp) in sparx5_xtr_flush() 49 static void sparx5_xtr_grp(struct sparx5 *sparx5, u8 grp, bool byte_swap) in sparx5_xtr_grp() 153 static int sparx5_inject(struct sparx5 *sparx5, in sparx5_inject() 220 struct sparx5 *sparx5 = port->sparx5; in sparx5_port_xmit_impl() local 259 int sparx5_manual_injection_mode(struct sparx5 *sparx5) in sparx5_manual_injection_mode()
|
A D | sparx5_calendar.c | 53 static u32 sparx5_target_bandwidth(struct sparx5 *sparx5) in sparx5_target_bandwidth() 129 static enum sparx5_cal_bw sparx5_get_port_cal_speed(struct sparx5 *sparx5, in sparx5_get_port_cal_speed() 160 int sparx5_config_auto_calendar(struct sparx5 *sparx5) in sparx5_config_auto_calendar() 281 static int sparx5_dsm_calendar_calc(struct sparx5 *sparx5, u32 taxi, in sparx5_dsm_calendar_calc() 477 static int sparx5_dsm_calendar_check(struct sparx5 *sparx5, in sparx5_dsm_calendar_check() 533 static int sparx5_dsm_calendar_update(struct sparx5 *sparx5, u32 taxi, in sparx5_dsm_calendar_update() 566 int sparx5_config_dsm_calendar(struct sparx5 *sparx5) in sparx5_config_dsm_calendar()
|