Home
last modified time | relevance | path

Searched refs:prestera_switch (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_hw.h92 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 …]
Dprestera_devlink.c12 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()
Dprestera_devlink.h9 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);
Dprestera_main.c50 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 …]
Dprestera_rxtx.h9 struct prestera_switch;
12 int prestera_rxtx_switch_init(struct prestera_switch *sw);
13 void prestera_rxtx_switch_fini(struct prestera_switch *sw);
Dprestera.h65 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);
Dprestera_hw.c323 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 …]
Dprestera_switchdev.h7 int prestera_switchdev_init(struct prestera_switch *sw);
8 void prestera_switchdev_fini(struct prestera_switch *sw);
Dprestera_switchdev.c30 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 …]
Dprestera_rxtx.c97 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()
Dprestera_ethtool.c301 struct prestera_switch *sw = port->sw; in prestera_ethtool_get_drvinfo()