Searched refs:prestera_switch (Results 1 – 11 of 11) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_hw.h | 92 struct prestera_switch; 100 (struct prestera_switch *sw, struct prestera_event *evt, void *arg); 105 int prestera_hw_switch_init(struct prestera_switch *sw); 106 void prestera_hw_switch_fini(struct prestera_switch *sw); 107 int prestera_hw_switch_ageing_set(struct prestera_switch *sw, u32 ageing_ms); 108 int prestera_hw_switch_mac_set(struct prestera_switch *sw, const char *mac); 145 int prestera_hw_vlan_create(struct prestera_switch *sw, u16 vid); 146 int prestera_hw_vlan_delete(struct prestera_switch *sw, u16 vid); 158 int prestera_hw_fdb_flush_vlan(struct prestera_switch *sw, u16 vid, u32 mode); 163 int prestera_hw_bridge_create(struct prestera_switch *sw, u16 *bridge_id); [all …]
|
D | prestera_devlink.c | 12 struct prestera_switch *sw = devlink_priv(dl); in prestera_dl_info_get() 34 struct prestera_switch *prestera_devlink_alloc(void) in prestera_devlink_alloc() 38 dl = devlink_alloc(&prestera_dl_ops, sizeof(struct prestera_switch)); in prestera_devlink_alloc() 43 void prestera_devlink_free(struct prestera_switch *sw) in prestera_devlink_free() 50 int prestera_devlink_register(struct prestera_switch *sw) in prestera_devlink_register() 62 void prestera_devlink_unregister(struct prestera_switch *sw) in prestera_devlink_unregister() 71 struct prestera_switch *sw = port->sw; in prestera_devlink_port_register()
|
D | prestera_devlink.h | 9 struct prestera_switch *prestera_devlink_alloc(void); 10 void prestera_devlink_free(struct prestera_switch *sw); 12 int prestera_devlink_register(struct prestera_switch *sw); 13 void prestera_devlink_unregister(struct prestera_switch *sw);
|
D | prestera_main.c | 50 struct prestera_port *prestera_port_find_by_hwid(struct prestera_switch *sw, in prestera_port_find_by_hwid() 65 struct prestera_port *prestera_find_port(struct prestera_switch *sw, u32 id) in prestera_find_port() 275 static int prestera_port_create(struct prestera_switch *sw, u32 id) in prestera_port_create() 393 static void prestera_destroy_ports(struct prestera_switch *sw) in prestera_destroy_ports() 401 static int prestera_create_ports(struct prestera_switch *sw) in prestera_create_ports() 422 static void prestera_port_handle_event(struct prestera_switch *sw, in prestera_port_handle_event() 447 static int prestera_event_handlers_register(struct prestera_switch *sw) in prestera_event_handlers_register() 454 static void prestera_event_handlers_unregister(struct prestera_switch *sw) in prestera_event_handlers_unregister() 460 static int prestera_switch_set_base_mac_addr(struct prestera_switch *sw) in prestera_switch_set_base_mac_addr() 539 static int prestera_netdev_event_handler_register(struct prestera_switch *sw) in prestera_netdev_event_handler_register() [all …]
|
D | prestera_rxtx.h | 9 struct prestera_switch; 12 int prestera_rxtx_switch_init(struct prestera_switch *sw); 13 void prestera_rxtx_switch_fini(struct prestera_switch *sw);
|
D | prestera.h | 65 struct prestera_switch *sw; 155 struct prestera_switch { struct 177 static inline void prestera_write(const struct prestera_switch *sw, in prestera_write() argument 183 static inline u32 prestera_read(const struct prestera_switch *sw, in prestera_read() 192 struct prestera_port *prestera_port_find_by_hwid(struct prestera_switch *sw, 198 struct prestera_port *prestera_find_port(struct prestera_switch *sw, u32 id);
|
D | prestera_hw.c | 323 static int __prestera_cmd_ret(struct prestera_switch *sw, in __prestera_cmd_ret() 346 static int prestera_cmd_ret(struct prestera_switch *sw, in prestera_cmd_ret() 354 static int prestera_cmd_ret_wait(struct prestera_switch *sw, in prestera_cmd_ret_wait() 363 static int prestera_cmd(struct prestera_switch *sw, in prestera_cmd() 405 __find_event_handler(const struct prestera_switch *sw, in __find_event_handler() 418 static int prestera_find_event_handler(const struct prestera_switch *sw, in prestera_find_event_handler() 438 struct prestera_switch *sw = dev->priv; in prestera_evt_recv() 466 struct prestera_switch *sw = dev->priv; in prestera_pkt_recv() 501 int prestera_hw_switch_mac_set(struct prestera_switch *sw, const char *mac) in prestera_hw_switch_mac_set() 513 int prestera_hw_switch_init(struct prestera_switch *sw) in prestera_hw_switch_init() [all …]
|
D | prestera_switchdev.h | 7 int prestera_switchdev_init(struct prestera_switch *sw); 8 void prestera_switchdev_fini(struct prestera_switch *sw);
|
D | prestera_switchdev.c | 30 struct prestera_switch *sw; 616 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_ageing_set() 634 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_vlan_set() 771 struct prestera_switch *sw = port->sw; in prestera_port_fdb_set() 1030 struct prestera_switch *sw = port->sw; in prestera_port_vlans_add() 1083 struct prestera_switch *sw = port->sw; in prestera_port_vlans_del() 1144 static void prestera_fdb_event(struct prestera_switch *sw, in prestera_fdb_event() 1174 static int prestera_fdb_init(struct prestera_switch *sw) in prestera_fdb_init() 1195 static void prestera_fdb_fini(struct prestera_switch *sw) in prestera_fdb_fini() 1230 int prestera_switchdev_init(struct prestera_switch *sw) in prestera_switchdev_init() [all …]
|
D | prestera_rxtx.c | 97 struct prestera_switch *sw; 599 static void prestera_rxtx_handle_event(struct prestera_switch *sw, in prestera_rxtx_handle_event() 612 static int prestera_sdma_switch_init(struct prestera_switch *sw) in prestera_sdma_switch_init() 672 static void prestera_sdma_switch_fini(struct prestera_switch *sw) in prestera_sdma_switch_fini() 771 int prestera_rxtx_switch_init(struct prestera_switch *sw) in prestera_rxtx_switch_init() 784 void prestera_rxtx_switch_fini(struct prestera_switch *sw) in prestera_rxtx_switch_fini()
|
D | prestera_ethtool.c | 301 struct prestera_switch *sw = port->sw; in prestera_ethtool_get_drvinfo()
|