/linux-5.19.10/drivers/net/ethernet/marvell/prestera/ |
D | prestera_hw.h | 131 struct prestera_switch; 139 (struct prestera_switch *sw, struct prestera_event *evt, void *arg); 148 int prestera_hw_switch_init(struct prestera_switch *sw); 149 void prestera_hw_switch_fini(struct prestera_switch *sw); 150 int prestera_hw_switch_ageing_set(struct prestera_switch *sw, u32 ageing_ms); 151 int prestera_hw_switch_mac_set(struct prestera_switch *sw, const char *mac); 186 int prestera_hw_vlan_create(struct prestera_switch *sw, u16 vid); 187 int prestera_hw_vlan_delete(struct prestera_switch *sw, u16 vid); 199 int prestera_hw_fdb_flush_vlan(struct prestera_switch *sw, u16 vid, u32 mode); 204 int prestera_hw_bridge_create(struct prestera_switch *sw, u16 *bridge_id); [all …]
|
D | prestera_router_hw.h | 62 prestera_rif_entry_find(const struct prestera_switch *sw, 64 void prestera_rif_entry_destroy(struct prestera_switch *sw, 67 prestera_rif_entry_create(struct prestera_switch *sw, 70 struct prestera_fib_node *prestera_fib_node_find(struct prestera_switch *sw, 72 void prestera_fib_node_destroy(struct prestera_switch *sw, 75 prestera_fib_node_create(struct prestera_switch *sw, 78 int prestera_router_hw_init(struct prestera_switch *sw); 79 void prestera_router_hw_fini(struct prestera_switch *sw);
|
D | prestera_devlink.h | 9 struct prestera_switch *prestera_devlink_alloc(struct prestera_device *dev); 10 void prestera_devlink_free(struct prestera_switch *sw); 12 void prestera_devlink_register(struct prestera_switch *sw); 13 void prestera_devlink_unregister(struct prestera_switch *sw); 25 int prestera_devlink_traps_register(struct prestera_switch *sw); 26 void prestera_devlink_traps_unregister(struct prestera_switch *sw);
|
D | prestera_router_hw.c | 34 int prestera_router_hw_init(struct prestera_switch *sw) in prestera_router_hw_init() 50 void prestera_router_hw_fini(struct prestera_switch *sw) in prestera_router_hw_fini() 57 static struct prestera_vr *__prestera_vr_find(struct prestera_switch *sw, in __prestera_vr_find() 70 static struct prestera_vr *__prestera_vr_create(struct prestera_switch *sw, in __prestera_vr_create() 99 static void __prestera_vr_destroy(struct prestera_switch *sw, in __prestera_vr_destroy() 107 static struct prestera_vr *prestera_vr_get(struct prestera_switch *sw, u32 tb_id, in prestera_vr_get() 126 static void prestera_vr_put(struct prestera_switch *sw, struct prestera_vr *vr) in prestera_vr_put() 160 prestera_rif_entry_find(const struct prestera_switch *sw, in prestera_rif_entry_find() 178 void prestera_rif_entry_destroy(struct prestera_switch *sw, in prestera_rif_entry_destroy() 194 prestera_rif_entry_create(struct prestera_switch *sw, in prestera_rif_entry_create() [all …]
|
D | prestera.h | 109 struct prestera_switch *sw; 257 struct prestera_switch { struct 281 struct prestera_switch *sw; argument 298 static inline void prestera_write(const struct prestera_switch *sw, in prestera_write() 304 static inline u32 prestera_read(const struct prestera_switch *sw, in prestera_read() 313 struct prestera_port *prestera_port_find_by_hwid(struct prestera_switch *sw, 318 int prestera_router_init(struct prestera_switch *sw); 319 void prestera_router_fini(struct prestera_switch *sw); 321 struct prestera_port *prestera_find_port(struct prestera_switch *sw, u32 id); 341 struct prestera_lag *prestera_lag_by_id(struct prestera_switch *sw, u16 id);
|
D | prestera_devlink.c | 127 struct prestera_switch *sw; 356 struct prestera_switch *sw = devlink_priv(dl); in prestera_dl_info_get() 389 struct prestera_switch *prestera_devlink_alloc(struct prestera_device *dev) in prestera_devlink_alloc() 393 dl = devlink_alloc(&prestera_dl_ops, sizeof(struct prestera_switch), in prestera_devlink_alloc() 399 void prestera_devlink_free(struct prestera_switch *sw) in prestera_devlink_free() 406 void prestera_devlink_register(struct prestera_switch *sw) in prestera_devlink_register() 413 void prestera_devlink_unregister(struct prestera_switch *sw) in prestera_devlink_unregister() 422 struct prestera_switch *sw = port->sw; in prestera_devlink_port_register() 465 int prestera_devlink_traps_register(struct prestera_switch *sw) in prestera_devlink_traps_register() 520 prestera_get_trap_item_by_cpu_code(struct prestera_switch *sw, u8 cpu_code) in prestera_get_trap_item_by_cpu_code() [all …]
|
D | prestera_router.c | 64 prestera_kern_fib_cache_find(struct prestera_switch *sw, in prestera_kern_fib_cache_find() 76 prestera_kern_fib_cache_destroy(struct prestera_switch *sw, in prestera_kern_fib_cache_destroy() 90 prestera_kern_fib_cache_create(struct prestera_switch *sw, in prestera_kern_fib_cache_create() 123 __prestera_k_arb_fib_lpm_offload_set(struct prestera_switch *sw, in __prestera_k_arb_fib_lpm_offload_set() 147 __prestera_pr_k_arb_fc_lpm_info_calc(struct prestera_switch *sw, in __prestera_pr_k_arb_fc_lpm_info_calc() 180 static int __prestera_k_arb_f_lpm_set(struct prestera_switch *sw, in __prestera_k_arb_f_lpm_set() 206 static int __prestera_k_arb_fc_apply(struct prestera_switch *sw, in __prestera_k_arb_fc_apply() 239 __prestera_k_arb_util_fib_overlaps(struct prestera_switch *sw, in __prestera_k_arb_util_fib_overlaps() 257 __prestera_k_arb_util_fib_overlapped(struct prestera_switch *sw, in __prestera_k_arb_util_fib_overlapped() 275 prestera_k_arb_fib_evt(struct prestera_switch *sw, in prestera_k_arb_fib_evt() [all …]
|
D | prestera_main.c | 61 struct prestera_port *prestera_port_find_by_hwid(struct prestera_switch *sw, in prestera_port_find_by_hwid() 78 struct prestera_port *prestera_find_port(struct prestera_switch *sw, u32 id) in prestera_find_port() 326 static int prestera_port_create(struct prestera_switch *sw, u32 id) in prestera_port_create() 478 static void prestera_destroy_ports(struct prestera_switch *sw) in prestera_destroy_ports() 486 static int prestera_create_ports(struct prestera_switch *sw) in prestera_create_ports() 507 static void prestera_port_handle_event(struct prestera_switch *sw, in prestera_port_handle_event() 535 static int prestera_event_handlers_register(struct prestera_switch *sw) in prestera_event_handlers_register() 542 static void prestera_event_handlers_unregister(struct prestera_switch *sw) in prestera_event_handlers_unregister() 548 static int prestera_switch_set_base_mac_addr(struct prestera_switch *sw) in prestera_switch_set_base_mac_addr() 568 struct prestera_lag *prestera_lag_by_id(struct prestera_switch *sw, u16 id) in prestera_lag_by_id() [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_span.h | 11 struct prestera_switch; 14 int prestera_span_init(struct prestera_switch *sw); 15 void prestera_span_fini(struct prestera_switch *sw);
|
D | prestera_hw.c | 685 static int __prestera_cmd_ret(struct prestera_switch *sw, in __prestera_cmd_ret() 708 static int prestera_cmd_ret(struct prestera_switch *sw, in prestera_cmd_ret() 716 static int prestera_cmd_ret_wait(struct prestera_switch *sw, in prestera_cmd_ret_wait() 725 static int prestera_cmd(struct prestera_switch *sw, in prestera_cmd() 790 __find_event_handler(const struct prestera_switch *sw, in __find_event_handler() 803 static int prestera_find_event_handler(const struct prestera_switch *sw, in prestera_find_event_handler() 823 struct prestera_switch *sw = dev->priv; in prestera_evt_recv() 853 struct prestera_switch *sw = dev->priv; in prestera_pkt_recv() 916 int prestera_hw_switch_mac_set(struct prestera_switch *sw, const char *mac) in prestera_hw_switch_mac_set() 928 int prestera_hw_switch_init(struct prestera_switch *sw) in prestera_hw_switch_init() [all …]
|
D | prestera_counter.h | 14 struct prestera_switch; 18 int prestera_counter_init(struct prestera_switch *sw); 19 void prestera_counter_fini(struct prestera_switch *sw);
|
D | prestera_span.c | 21 struct prestera_switch *sw; 78 struct prestera_switch *sw = port->sw; in prestera_span_get() 103 static int prestera_span_put(struct prestera_switch *sw, u8 span_id) in prestera_span_put() 126 struct prestera_switch *sw = binding->port->sw; in prestera_span_rule_add() 218 int prestera_span_init(struct prestera_switch *sw) in prestera_span_init() 234 void prestera_span_fini(struct prestera_switch *sw) in prestera_span_fini()
|
D | prestera_acl.h | 149 struct prestera_switch; 152 int prestera_acl_init(struct prestera_switch *sw); 153 void prestera_acl_fini(struct prestera_switch *sw); 164 int prestera_acl_rule_add(struct prestera_switch *sw, 166 void prestera_acl_rule_del(struct prestera_switch *sw,
|
D | prestera_switchdev.h | 7 int prestera_switchdev_init(struct prestera_switch *sw); 8 void prestera_switchdev_fini(struct prestera_switch *sw);
|
D | prestera_flow.h | 10 struct prestera_switch; 20 struct prestera_switch *sw;
|
D | prestera_flow.c | 78 prestera_flow_block_create(struct prestera_switch *sw, struct net *net) in prestera_flow_block_create() 166 prestera_flow_block_get(struct prestera_switch *sw, in prestera_flow_block_get() 214 struct prestera_switch *sw = port->sw; in prestera_setup_flow_block_bind() 247 struct prestera_switch *sw = port->sw; in prestera_setup_flow_block_unbind()
|
D | prestera_acl.c | 15 struct prestera_switch *sw; 411 int prestera_acl_rule_add(struct prestera_switch *sw, in prestera_acl_rule_add() 462 void prestera_acl_rule_del(struct prestera_switch *sw, in prestera_acl_rule_del() 510 static int __prestera_acl_rule_entry2hw_del(struct prestera_switch *sw, in __prestera_acl_rule_entry2hw_del() 516 static int __prestera_acl_rule_entry2hw_add(struct prestera_switch *sw, in __prestera_acl_rule_entry2hw_add() 565 __prestera_acl_rule_entry_act_destruct(struct prestera_switch *sw, in __prestera_acl_rule_entry_act_destruct() 591 __prestera_acl_rule_entry_act_construct(struct prestera_switch *sw, in __prestera_acl_rule_entry_act_construct() 808 int prestera_acl_init(struct prestera_switch *sw) in prestera_acl_init() 843 void prestera_acl_fini(struct prestera_switch *sw) in prestera_acl_fini()
|
D | prestera_switchdev.c | 30 struct prestera_switch *sw; 633 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_ageing_set() 646 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_vlan_set() 773 struct prestera_switch *sw = port->sw; in prestera_port_fdb_set() 1032 struct prestera_switch *sw = port->sw; in prestera_port_vlans_add() 1072 struct prestera_switch *sw = port->sw; in prestera_port_vlans_del() 1131 static void prestera_fdb_event(struct prestera_switch *sw, in prestera_fdb_event() 1177 static int prestera_fdb_init(struct prestera_switch *sw) in prestera_fdb_init() 1198 static void prestera_fdb_fini(struct prestera_switch *sw) in prestera_fdb_fini() 1233 int prestera_switchdev_init(struct prestera_switch *sw) in prestera_switchdev_init() [all …]
|
D | prestera_rxtx.c | 98 struct prestera_switch *sw; 604 static void prestera_rxtx_handle_event(struct prestera_switch *sw, in prestera_rxtx_handle_event() 617 static int prestera_sdma_switch_init(struct prestera_switch *sw) in prestera_sdma_switch_init() 677 static void prestera_sdma_switch_fini(struct prestera_switch *sw) in prestera_sdma_switch_fini() 776 int prestera_rxtx_switch_init(struct prestera_switch *sw) in prestera_rxtx_switch_init() 789 void prestera_rxtx_switch_fini(struct prestera_switch *sw) in prestera_rxtx_switch_fini()
|
D | prestera_counter.c | 14 struct prestera_switch *sw; 437 int prestera_counter_init(struct prestera_switch *sw) in prestera_counter_init() 462 void prestera_counter_fini(struct prestera_switch *sw) in prestera_counter_fini()
|
D | prestera_ethtool.c | 301 struct prestera_switch *sw = port->sw; in prestera_ethtool_get_drvinfo()
|