/Linux-v6.1/drivers/net/ethernet/marvell/prestera/ |
D | prestera_hw.h | 132 struct prestera_switch; 140 (struct prestera_switch *sw, struct prestera_event *evt, void *arg); 152 int prestera_hw_switch_init(struct prestera_switch *sw); 153 void prestera_hw_switch_fini(struct prestera_switch *sw); 154 int prestera_hw_switch_ageing_set(struct prestera_switch *sw, u32 ageing_ms); 155 int prestera_hw_switch_mac_set(struct prestera_switch *sw, const char *mac); 192 int prestera_hw_vlan_create(struct prestera_switch *sw, u16 vid); 193 int prestera_hw_vlan_delete(struct prestera_switch *sw, u16 vid); 205 int prestera_hw_fdb_flush_vlan(struct prestera_switch *sw, u16 vid, u32 mode); 210 int prestera_hw_bridge_create(struct prestera_switch *sw, u16 *bridge_id); [all …]
|
D | prestera_router_hw.h | 123 prestera_rif_entry_find(const struct prestera_switch *sw, 125 void prestera_rif_entry_destroy(struct prestera_switch *sw, 128 prestera_rif_entry_create(struct prestera_switch *sw, 132 prestera_nh_neigh_find(struct prestera_switch *sw, 135 prestera_nh_neigh_get(struct prestera_switch *sw, 137 void prestera_nh_neigh_put(struct prestera_switch *sw, 139 int prestera_nh_neigh_set(struct prestera_switch *sw, 141 bool prestera_nh_neigh_util_hw_state(struct prestera_switch *sw, 143 struct prestera_fib_node *prestera_fib_node_find(struct prestera_switch *sw, 145 void prestera_fib_node_destroy(struct prestera_switch *sw, [all …]
|
D | prestera_router_hw.c | 54 static int prestera_nexthop_group_set(struct prestera_switch *sw, 57 prestera_nexthop_group_util_hw_state(struct prestera_switch *sw, 67 int prestera_router_hw_init(struct prestera_switch *sw) in prestera_router_hw_init() 99 void prestera_router_hw_fini(struct prestera_switch *sw) in prestera_router_hw_fini() 110 static struct prestera_vr *__prestera_vr_find(struct prestera_switch *sw, in __prestera_vr_find() 123 static struct prestera_vr *__prestera_vr_create(struct prestera_switch *sw, in __prestera_vr_create() 152 static void __prestera_vr_destroy(struct prestera_switch *sw, in __prestera_vr_destroy() 160 static struct prestera_vr *prestera_vr_get(struct prestera_switch *sw, u32 tb_id, in prestera_vr_get() 179 static void prestera_vr_put(struct prestera_switch *sw, struct prestera_vr *vr) in prestera_vr_put() 213 prestera_rif_entry_find(const struct prestera_switch *sw, in prestera_rif_entry_find() [all …]
|
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.h | 25 struct prestera_switch *sw; 31 struct prestera_switch *sw; 131 struct prestera_switch *sw; 287 struct prestera_switch { struct 313 struct prestera_switch *sw; argument 339 static inline void prestera_write(const struct prestera_switch *sw, in prestera_write() 345 static inline u32 prestera_read(const struct prestera_switch *sw, in prestera_read() 354 struct prestera_port *prestera_port_find_by_hwid(struct prestera_switch *sw, 359 int prestera_router_init(struct prestera_switch *sw); 360 void prestera_router_fini(struct prestera_switch *sw); [all …]
|
D | prestera_router.c | 106 static int prestera_util_nhc2nc_key(struct prestera_switch *sw, in prestera_util_nhc2nc_key() 133 prestera_util_nhc_eq_n_cache_key(struct prestera_switch *sw, in prestera_util_nhc_eq_n_cache_key() 151 prestera_util_neigh2nc_key(struct prestera_switch *sw, struct neighbour *n, in prestera_util_neigh2nc_key() 430 prestera_neigh_iface_init(struct prestera_switch *sw, in prestera_neigh_iface_init() 452 prestera_kern_neigh_cache_find(struct prestera_switch *sw, in prestera_kern_neigh_cache_find() 464 __prestera_kern_neigh_cache_destruct(struct prestera_switch *sw, in __prestera_kern_neigh_cache_destruct() 471 __prestera_kern_neigh_cache_destroy(struct prestera_switch *sw, in __prestera_kern_neigh_cache_destroy() 482 __prestera_kern_neigh_cache_create(struct prestera_switch *sw, in __prestera_kern_neigh_cache_create() 512 prestera_kern_neigh_cache_get(struct prestera_switch *sw, in prestera_kern_neigh_cache_get() 525 prestera_kern_neigh_cache_put(struct prestera_switch *sw, in prestera_kern_neigh_cache_put() [all …]
|
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_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() 127 struct prestera_switch *sw = binding->port->sw; in prestera_span_rule_add() 169 int prestera_span_init(struct prestera_switch *sw) in prestera_span_init() 185 void prestera_span_fini(struct prestera_switch *sw) in prestera_span_fini()
|
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 | 12 struct prestera_switch; 15 int prestera_span_init(struct prestera_switch *sw); 16 void prestera_span_fini(struct prestera_switch *sw);
|
D | prestera_hw.c | 811 static int __prestera_cmd_ret(struct prestera_switch *sw, in __prestera_cmd_ret() 834 static int prestera_cmd_ret(struct prestera_switch *sw, in prestera_cmd_ret() 842 static int prestera_cmd_ret_wait(struct prestera_switch *sw, in prestera_cmd_ret_wait() 851 static int prestera_cmd(struct prestera_switch *sw, in prestera_cmd() 916 __find_event_handler(const struct prestera_switch *sw, in __find_event_handler() 929 static int prestera_find_event_handler(const struct prestera_switch *sw, in prestera_find_event_handler() 949 struct prestera_switch *sw = dev->priv; in prestera_evt_recv() 979 struct prestera_switch *sw = dev->priv; in prestera_pkt_recv() 1042 int prestera_hw_switch_mac_set(struct prestera_switch *sw, const char *mac) in prestera_hw_switch_mac_set() 1054 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_main.c | 93 struct prestera_port *prestera_port_find_by_hwid(struct prestera_switch *sw, in prestera_port_find_by_hwid() 110 struct prestera_port *prestera_find_port(struct prestera_switch *sw, u32 id) in prestera_find_port() 126 struct prestera_switch *prestera_switch_get(struct net_device *dev) in prestera_switch_get() 378 struct prestera_switch *sw = port->sw; in prestera_port_sfp_bind() 610 static int prestera_port_create(struct prestera_switch *sw, u32 id) in prestera_port_create() 772 static void prestera_destroy_ports(struct prestera_switch *sw) in prestera_destroy_ports() 780 static int prestera_create_ports(struct prestera_switch *sw) in prestera_create_ports() 803 static void prestera_port_handle_event(struct prestera_switch *sw, in prestera_port_handle_event() 851 static int prestera_event_handlers_register(struct prestera_switch *sw) in prestera_event_handlers_register() 858 static void prestera_event_handlers_unregister(struct prestera_switch *sw) in prestera_event_handlers_unregister() [all …]
|
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_switchdev.c | 30 struct prestera_switch *sw; 97 prestera_bridge_find(const struct prestera_switch *sw, in prestera_bridge_find() 123 prestera_bridge_port_find(struct prestera_switch *sw, in prestera_bridge_port_find() 788 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_ageing_set() 801 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_vlan_set() 879 struct prestera_switch *sw; in prestera_br_port_lag_mdb_mc_enable_sync() 1094 struct prestera_switch *sw = port->sw; in prestera_port_attr_br_mc_disabled_set() 1220 struct prestera_switch *sw = port->sw; in prestera_port_fdb_set() 1474 struct prestera_switch *sw = port->sw; in prestera_port_vlans_add() 1494 prestera_br_mdb_entry_create(struct prestera_switch *sw, in prestera_br_mdb_entry_create() [all …]
|
D | prestera_flow.c | 79 prestera_flow_block_create(struct prestera_switch *sw, in prestera_flow_block_create() 173 prestera_flow_block_get(struct prestera_switch *sw, in prestera_flow_block_get() 222 struct prestera_switch *sw = port->sw; in prestera_setup_flow_block_bind() 259 struct prestera_switch *sw = port->sw; in prestera_setup_flow_block_unbind()
|
D | prestera_acl.c | 15 struct prestera_switch *sw; 477 int prestera_acl_rule_add(struct prestera_switch *sw, in prestera_acl_rule_add() 529 void prestera_acl_rule_del(struct prestera_switch *sw, in prestera_acl_rule_del() 578 static int __prestera_acl_rule_entry2hw_del(struct prestera_switch *sw, in __prestera_acl_rule_entry2hw_del() 584 static int __prestera_acl_rule_entry2hw_add(struct prestera_switch *sw, in __prestera_acl_rule_entry2hw_add() 633 __prestera_acl_rule_entry_act_destruct(struct prestera_switch *sw, in __prestera_acl_rule_entry_act_destruct() 659 __prestera_acl_rule_entry_act_construct(struct prestera_switch *sw, in __prestera_acl_rule_entry_act_construct() 878 int prestera_acl_init(struct prestera_switch *sw) in prestera_acl_init() 913 void prestera_acl_fini(struct prestera_switch *sw) in prestera_acl_fini()
|
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() 794 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()
|