/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 64 struct mlxsw_sp *mlxsw_sp; member 184 static int mlxsw_sp_rif_counter_edit(struct mlxsw_sp *mlxsw_sp, u16 rif_index, in mlxsw_sp_rif_counter_edit() 204 int mlxsw_sp_rif_counter_value_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_rif_counter_value_get() 247 struct mlxsw_sp *mlxsw_sp = rif->mlxsw_sp; in mlxsw_sp_rif_counter_fetch_clear() local 287 static int mlxsw_sp_rif_counter_clear(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_rif_counter_clear() 300 struct mlxsw_sp *mlxsw_sp = rif->mlxsw_sp; in mlxsw_sp_rif_counter_alloc() local 337 struct mlxsw_sp *mlxsw_sp = rif->mlxsw_sp; in mlxsw_sp_rif_counter_free() local 355 struct mlxsw_sp *mlxsw_sp = rif->mlxsw_sp; in mlxsw_sp_rif_counters_alloc() local 502 static struct mlxsw_sp_fib *mlxsw_sp_fib_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fib_create() 534 static void mlxsw_sp_fib_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fib_destroy() [all …]
|
D | spectrum.c | 178 int mlxsw_sp_flow_counter_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_get() 197 static int mlxsw_sp_flow_counter_clear(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_clear() 207 int mlxsw_sp_flow_counter_alloc(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_alloc() 227 void mlxsw_sp_flow_counter_free(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_flow_counter_free() 305 struct mlxsw_sp *mlxsw_sp = mlxsw_core_driver_priv(mlxsw_core); in mlxsw_sp_txhdr_handle() local 346 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_vid_stp_set() local 361 static int mlxsw_sp_base_mac_get(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_base_mac_get() 376 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_admin_status_set() local 388 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_dev_addr_set() local 398 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_dev_addr_init() local [all …]
|
D | spectrum_acl_tcam.c | 21 size_t mlxsw_sp_acl_tcam_priv_size(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_acl_tcam_priv_size() 32 int mlxsw_sp_acl_tcam_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_init() 82 void mlxsw_sp_acl_tcam_fini(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_fini() 93 int mlxsw_sp_acl_tcam_priority_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_priority_get() 217 struct mlxsw_sp *mlxsw_sp; member 263 static int mlxsw_sp_acl_tcam_group_update(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_group_update() 313 mlxsw_sp_acl_tcam_vgroup_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_vgroup_add() 363 mlxsw_sp_acl_tcam_group_bind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_group_bind() 378 mlxsw_sp_acl_tcam_group_unbind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_group_unbind() 439 mlxsw_sp_acl_tcam_group_region_attach(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_tcam_group_region_attach() [all …]
|
D | spectrum_nve.c | 66 struct mlxsw_sp *mlxsw_sp; member 187 int mlxsw_sp_nve_learned_ip_resolve(struct mlxsw_sp *mlxsw_sp, u32 uip, in mlxsw_sp_nve_learned_ip_resolve() 202 mlxsw_sp_nve_mc_list_find(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_list_find() 212 mlxsw_sp_nve_mc_list_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_list_create() 238 static void mlxsw_sp_nve_mc_list_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_list_destroy() 250 mlxsw_sp_nve_mc_list_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_list_get() 263 mlxsw_sp_nve_mc_list_put(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_list_put() 272 mlxsw_sp_nve_mc_record_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_record_create() 306 struct mlxsw_sp *mlxsw_sp = mc_record->mlxsw_sp; in mlxsw_sp_nve_mc_record_destroy() local 316 mlxsw_sp_nve_mc_record_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_nve_mc_record_get() [all …]
|
D | spectrum_trap.c | 62 static int mlxsw_sp_rx_listener(struct mlxsw_sp *mlxsw_sp, struct sk_buff *skb, in mlxsw_sp_rx_listener() 93 struct mlxsw_sp *mlxsw_sp; in mlxsw_sp_rx_drop_listener() local 119 struct mlxsw_sp *mlxsw_sp; in mlxsw_sp_rx_acl_drop_listener() local 146 struct mlxsw_sp *mlxsw_sp; in __mlxsw_sp_rx_no_mark_listener() local 197 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_ptp_listener() local 212 mlxsw_sp_sample_tx_port_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sample_tx_port_get() 238 static void mlxsw_sp_psample_md_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_psample_md_init() 263 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_listener() local 300 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_tx_listener() local 349 struct mlxsw_sp *mlxsw_sp = devlink_trap_ctx_priv(trap_ctx); in mlxsw_sp_rx_sample_acl_listener() local [all …]
|
D | spectrum_ipip.c | 166 mlxsw_sp_ipip_nexthop_update_gre4(struct mlxsw_sp *mlxsw_sp, u32 adj_index, in mlxsw_sp_ipip_nexthop_update_gre4() 184 mlxsw_sp_ipip_decap_config_gre4(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_decap_config_gre4() 237 static bool mlxsw_sp_ipip_can_offload_gre4(const struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_can_offload_gre4() 252 mlxsw_sp_ipip_ol_loopback_config_gre4(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_ol_loopback_config_gre4() 271 mlxsw_sp_ipip_ol_netdev_change_gre(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_ol_netdev_change_gre() 327 mlxsw_sp_ipip_ol_netdev_change_gre4(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_ol_netdev_change_gre4() 339 mlxsw_sp_ipip_rem_addr_set_gre4(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_rem_addr_set_gre4() 346 mlxsw_sp_ipip_rem_addr_unset_gre4(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_ipip_rem_addr_unset_gre4() 375 mlxsw_sp1_ipip_nexthop_update_gre6(struct mlxsw_sp *mlxsw_sp, u32 adj_index, in mlxsw_sp1_ipip_nexthop_update_gre6() 384 mlxsw_sp1_ipip_decap_config_gre6(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ipip_decap_config_gre6() [all …]
|
D | spectrum_mr_tcam.c | 33 mlxsw_sp_mr_erif_sublist_full(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_sublist_full() 49 mlxsw_sp_mr_erif_sublist_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_sublist_create() 70 mlxsw_sp_mr_erif_sublist_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_sublist_destroy() 80 mlxsw_sp_mr_erif_list_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_list_add() 113 mlxsw_sp_mr_erif_list_flush(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_list_flush() 124 mlxsw_sp_mr_erif_list_commit(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_erif_list_commit() 192 mlxsw_sp_mr_tcam_afa_block_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_tcam_afa_block_create() 260 mlxsw_sp_mr_tcam_erif_populate(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_tcam_erif_populate() 279 mlxsw_sp_mr_tcam_route_create(struct mlxsw_sp *mlxsw_sp, void *priv, in mlxsw_sp_mr_tcam_route_create() 343 static void mlxsw_sp_mr_tcam_route_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_tcam_route_destroy() [all …]
|
D | spectrum_dpipe.c | 154 static int mlxsw_sp_erif_entry_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_erif_entry_get() 199 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_dpipe_table_erif_entries_dump() local 259 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_dpipe_table_erif_counters_update() local 281 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_dpipe_table_erif_size_get() local 294 static int mlxsw_sp_dpipe_erif_table_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_dpipe_erif_table_init() 304 static void mlxsw_sp_dpipe_erif_table_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_dpipe_erif_table_fini() 510 mlxsw_sp_dpipe_table_host_entry_fill(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_dpipe_table_host_entry_fill() 537 mlxsw_sp_dpipe_table_host_entries_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_dpipe_table_host_entries_get() 616 mlxsw_sp_dpipe_table_host_entries_dump(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_dpipe_table_host_entries_dump() 653 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_dpipe_table_host4_entries_dump() local [all …]
|
D | spectrum_nve_vxlan.c | 192 mlxsw_sp1_nve_vxlan_config_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_nve_vxlan_config_set() 211 static void mlxsw_sp1_nve_vxlan_config_clear(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp1_nve_vxlan_config_clear() 220 static int mlxsw_sp1_nve_vxlan_rtdp_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_nve_vxlan_rtdp_set() 233 struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; in mlxsw_sp1_nve_vxlan_init() local 274 struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; in mlxsw_sp1_nve_vxlan_fini() local 311 static bool mlxsw_sp2_nve_vxlan_learning_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_nve_vxlan_learning_set() 322 mlxsw_sp2_nve_decap_ethertype_set(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp2_nve_decap_ethertype_set() 334 mlxsw_sp2_nve_vxlan_config_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_nve_vxlan_config_set() 385 static void mlxsw_sp2_nve_vxlan_config_clear(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp2_nve_vxlan_config_clear() 399 static int mlxsw_sp2_nve_vxlan_rtdp_set(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_nve_vxlan_rtdp_set() [all …]
|
D | spectrum_acl_flex_actions.c | 11 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_kvdl_set_add() local 56 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_kvdl_set_del() local 73 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp2_act_kvdl_set_activity_get() local 88 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_kvdl_fwd_entry_add() local 112 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_kvdl_fwd_entry_del() local 121 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_counter_index_get() local 129 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_counter_index_put() local 141 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_mirror_add() local 165 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_mirror_del() local 177 struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_act_policer_add() local [all …]
|
D | spectrum_acl_ctcam.c | 14 mlxsw_sp_acl_ctcam_region_resize(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_resize() 27 mlxsw_sp_acl_ctcam_region_move(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_move() 40 mlxsw_sp_acl_ctcam_region_entry_insert(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_entry_insert() 87 mlxsw_sp_acl_ctcam_region_entry_remove(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_entry_remove() 101 mlxsw_sp_acl_ctcam_region_entry_action_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_entry_action_replace() 126 struct mlxsw_sp *mlxsw_sp = region->mlxsw_sp; in mlxsw_sp_acl_ctcam_region_parman_resize() local 142 struct mlxsw_sp *mlxsw_sp = region->mlxsw_sp; in mlxsw_sp_acl_ctcam_region_parman_move() local 157 mlxsw_sp_acl_ctcam_region_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_region_init() 188 int mlxsw_sp_acl_ctcam_entry_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_entry_add() 214 void mlxsw_sp_acl_ctcam_entry_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ctcam_entry_del() [all …]
|
D | spectrum.h | 160 struct mlxsw_sp { struct 161 struct mlxsw_sp_port **ports; argument 166 struct mlxsw_sp_upper *lags; argument 167 struct mlxsw_sp_port_mapping *port_mapping; argument 168 struct mlxsw_sp_port_mapping_events port_mapping_events; argument 170 struct mlxsw_sp_sb *sb; argument 171 struct mlxsw_sp_bridge *bridge; argument 172 struct mlxsw_sp_router *router; argument 173 struct mlxsw_sp_mr *mr; argument 175 struct mlxsw_sp_acl *acl; argument [all …]
|
D | spectrum_buffers.c | 128 u32 mlxsw_sp_cells_bytes(const struct mlxsw_sp *mlxsw_sp, u32 cells) in mlxsw_sp_cells_bytes() 133 u32 mlxsw_sp_bytes_cells(const struct mlxsw_sp *mlxsw_sp, u32 bytes) in mlxsw_sp_bytes_cells() 148 static struct mlxsw_sp_sb_pr *mlxsw_sp_sb_pr_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_pr_get() 162 static struct mlxsw_sp_sb_cm *mlxsw_sp_sb_cm_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_cm_get() 175 static struct mlxsw_sp_sb_pm *mlxsw_sp_sb_pm_get(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_pm_get() 181 static int mlxsw_sp_sb_pr_write(struct mlxsw_sp *mlxsw_sp, u16 pool_index, in mlxsw_sp_sb_pr_write() 205 static int mlxsw_sp_sb_pr_desc_write(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_sb_pr_desc_write() 220 static int mlxsw_sp_sb_cm_write(struct mlxsw_sp *mlxsw_sp, u16 local_port, in mlxsw_sp_sb_cm_write() 250 static int mlxsw_sp_sb_pm_write(struct mlxsw_sp *mlxsw_sp, u16 local_port, in mlxsw_sp_sb_pm_write() 271 static int mlxsw_sp_sb_pm_occ_clear(struct mlxsw_sp *mlxsw_sp, u16 local_port, in mlxsw_sp_sb_pm_occ_clear() [all …]
|
D | spectrum_acl.c | 24 struct mlxsw_sp *mlxsw_sp; member 88 struct mlxsw_sp_fid *mlxsw_sp_acl_dummy_fid(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_acl_dummy_fid() 100 int mlxsw_sp_acl_ruleset_bind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_bind() 111 void mlxsw_sp_acl_ruleset_unbind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_unbind() 123 mlxsw_sp_acl_ruleset_block_bind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_block_bind() 148 mlxsw_sp_acl_ruleset_block_unbind(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_block_unbind() 160 mlxsw_sp_acl_ruleset_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_create() 205 static void mlxsw_sp_acl_ruleset_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_destroy() 223 static void mlxsw_sp_acl_ruleset_ref_dec(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_ref_dec() 247 mlxsw_sp_acl_ruleset_lookup(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_ruleset_lookup() [all …]
|
D | spectrum_span.c | 23 struct mlxsw_sp *mlxsw_sp; member 75 const struct mlxsw_sp *mlxsw_sp = priv; in mlxsw_sp_span_occ_get() local 80 int mlxsw_sp_span_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_span_init() 121 void mlxsw_sp_span_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_span_fini() 139 static int mlxsw_sp1_span_entry_cpu_parms(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_span_entry_cpu_parms() 168 mlxsw_sp_span_entry_phys_parms(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_span_entry_phys_parms() 181 struct mlxsw_sp *mlxsw_sp = dest_port->mlxsw_sp; in mlxsw_sp_span_entry_phys_configure() local 201 struct mlxsw_sp *mlxsw_sp = dest_port->mlxsw_sp; in mlxsw_sp_span_entry_deconfigure_common() local 450 mlxsw_sp_span_entry_gretap4_parms(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_span_entry_gretap4_parms() 482 struct mlxsw_sp *mlxsw_sp = dest_port->mlxsw_sp; in mlxsw_sp_span_entry_gretap4_configure() local [all …]
|
D | spectrum_ptp.h | 97 mlxsw_sp1_ptp_clock_init(struct mlxsw_sp *mlxsw_sp, struct device *dev) in mlxsw_sp1_ptp_clock_init() 107 mlxsw_sp1_ptp_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp1_ptp_init() 116 static inline void mlxsw_sp1_ptp_receive(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_receive() 122 static inline void mlxsw_sp1_ptp_transmitted(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_transmitted() 129 mlxsw_sp1_ptp_got_timestamp(struct mlxsw_sp *mlxsw_sp, bool ingress, in mlxsw_sp1_ptp_got_timestamp() 154 static inline int mlxsw_sp1_ptp_get_ts_info(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_get_ts_info() 184 mlxsw_sp2_ptp_clock_init(struct mlxsw_sp *mlxsw_sp, struct device *dev) in mlxsw_sp2_ptp_clock_init() 194 mlxsw_sp2_ptp_init(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp2_ptp_init() 203 static inline void mlxsw_sp2_ptp_receive(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_ptp_receive() 209 static inline void mlxsw_sp2_ptp_transmitted(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_ptp_transmitted() [all …]
|
D | spectrum1_acl_tcam.c | 50 static int mlxsw_sp1_acl_tcam_init(struct mlxsw_sp *mlxsw_sp, void *priv, in mlxsw_sp1_acl_tcam_init() 56 static void mlxsw_sp1_acl_tcam_fini(struct mlxsw_sp *mlxsw_sp, void *priv) in mlxsw_sp1_acl_tcam_fini() 61 mlxsw_sp1_acl_ctcam_region_catchall_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_ctcam_region_catchall_add() 100 mlxsw_sp1_acl_ctcam_region_catchall_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_ctcam_region_catchall_del() 113 mlxsw_sp1_acl_tcam_region_init(struct mlxsw_sp *mlxsw_sp, void *region_priv, in mlxsw_sp1_acl_tcam_region_init() 138 mlxsw_sp1_acl_tcam_region_fini(struct mlxsw_sp *mlxsw_sp, void *region_priv) in mlxsw_sp1_acl_tcam_region_fini() 147 mlxsw_sp1_acl_tcam_region_associate(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_tcam_region_associate() 170 static int mlxsw_sp1_acl_tcam_entry_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_tcam_entry_add() 184 static void mlxsw_sp1_acl_tcam_entry_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_tcam_entry_del() 197 mlxsw_sp1_acl_tcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_acl_tcam_entry_action_replace() [all …]
|
D | spectrum1_mr_tcam.c | 13 struct mlxsw_sp *mlxsw_sp; member 28 static int mlxsw_sp1_mr_tcam_route_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_mr_tcam_route_replace() 60 static int mlxsw_sp1_mr_tcam_route_remove(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_mr_tcam_route_remove() 122 mlxsw_sp1_mr_tcam_route_create(struct mlxsw_sp *mlxsw_sp, void *priv, in mlxsw_sp1_mr_tcam_route_create() 149 mlxsw_sp1_mr_tcam_route_destroy(struct mlxsw_sp *mlxsw_sp, void *priv, in mlxsw_sp1_mr_tcam_route_destroy() 161 mlxsw_sp1_mr_tcam_route_update(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_mr_tcam_route_update() 178 struct mlxsw_sp *mlxsw_sp = mr_tcam_region->mlxsw_sp; in mlxsw_sp1_mr_tcam_region_alloc() local 190 struct mlxsw_sp *mlxsw_sp = mr_tcam_region->mlxsw_sp; in mlxsw_sp1_mr_tcam_region_free() local 202 struct mlxsw_sp *mlxsw_sp = mr_tcam_region->mlxsw_sp; in mlxsw_sp1_mr_tcam_region_parman_resize() local 220 struct mlxsw_sp *mlxsw_sp = mr_tcam_region->mlxsw_sp; in mlxsw_sp1_mr_tcam_region_parman_move() local [all …]
|
D | spectrum_pgt.c | 28 int mlxsw_sp_pgt_mid_alloc(struct mlxsw_sp *mlxsw_sp, u16 *p_mid) in mlxsw_sp_pgt_mid_alloc() 50 void mlxsw_sp_pgt_mid_free(struct mlxsw_sp *mlxsw_sp, u16 mid_base) in mlxsw_sp_pgt_mid_free() 58 mlxsw_sp_pgt_mid_alloc_range(struct mlxsw_sp *mlxsw_sp, u16 mid_base, u16 count) in mlxsw_sp_pgt_mid_alloc_range() 95 mlxsw_sp_pgt_mid_free_range(struct mlxsw_sp *mlxsw_sp, u16 mid_base, u16 count) in mlxsw_sp_pgt_mid_free_range() 193 mlxsw_sp_pgt_entry_port_write(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_pgt_entry_port_write() 217 mlxsw_sp_pgt_entry_port_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_pgt_entry_port_create() 244 mlxsw_sp_pgt_entry_port_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_pgt_entry_port_destroy() 255 static int mlxsw_sp_pgt_entry_port_add(struct mlxsw_sp *mlxsw_sp, u16 mid, in mlxsw_sp_pgt_entry_port_add() 287 static void mlxsw_sp_pgt_entry_port_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_pgt_entry_port_del() 310 int mlxsw_sp_pgt_entry_port_set(struct mlxsw_sp *mlxsw_sp, u16 mid, in mlxsw_sp_pgt_entry_port_set() [all …]
|
D | spectrum_switchdev.c | 29 struct mlxsw_sp *mlxsw_sp; member 166 bool mlxsw_sp_bridge_device_is_offloaded(const struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_bridge_device_is_offloaded() 175 struct mlxsw_sp *mlxsw_sp = priv->data; in mlxsw_sp_bridge_device_upper_rif_destroy() local 181 static void mlxsw_sp_bridge_device_rifs_destroy(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_bridge_device_rifs_destroy() 239 static void mlxsw_sp_fdb_notify_work_schedule(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fdb_notify_work_schedule() 839 static int mlxsw_sp_ageing_set(struct mlxsw_sp *mlxsw_sp, u32 ageing_time) in mlxsw_sp_ageing_set() 855 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_br_ageing_set() local 870 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_br_vlan_set() local 888 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_br_vlan_proto_set() local 942 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_mc_disabled_set() local [all …]
|
D | spectrum_ptp.c | 32 struct mlxsw_sp *mlxsw_sp; member 92 mlxsw_sp1_ptp_state(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp1_ptp_state() 99 mlxsw_sp2_ptp_state(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp2_ptp_state() 285 mlxsw_sp1_ptp_clock_init(struct mlxsw_sp *mlxsw_sp, struct device *dev) in mlxsw_sp1_ptp_clock_init() 455 mlxsw_sp2_ptp_clock_init(struct mlxsw_sp *mlxsw_sp, struct device *dev) in mlxsw_sp2_ptp_clock_init() 528 mlxsw_sp1_ptp_unmatched_save(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_unmatched_save() 556 mlxsw_sp1_ptp_unmatched_lookup(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_unmatched_lookup() 576 mlxsw_sp1_ptp_unmatched_remove(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_unmatched_remove() 594 static void mlxsw_sp1_ptp_packet_finish(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_ptp_packet_finish() 622 static void mlxsw_sp1_packet_timestamp(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_packet_timestamp() [all …]
|
D | spectrum_fid.c | 111 struct mlxsw_sp *mlxsw_sp; member 140 bool mlxsw_sp_fid_is_dummy(struct mlxsw_sp *mlxsw_sp, u16 fid_index) in mlxsw_sp_fid_is_dummy() 150 struct mlxsw_sp_fid *mlxsw_sp_fid_lookup_by_index(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fid_lookup_by_index() 184 struct mlxsw_sp_fid *mlxsw_sp_fid_lookup_by_vni(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fid_lookup_by_vni() 252 struct mlxsw_sp *mlxsw_sp = fid_family->mlxsw_sp; in mlxsw_sp_fid_vni_set() local 285 struct mlxsw_sp *mlxsw_sp = fid_family->mlxsw_sp; in mlxsw_sp_fid_vni_clear() local 396 mlxsw_sp_fid_type_rif_type(const struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_fid_type_rif_type() 431 struct mlxsw_sp *mlxsw_sp = fid->fid_family->mlxsw_sp; in mlxsw_sp_fid_op() local 447 struct mlxsw_sp *mlxsw_sp = fid->fid_family->mlxsw_sp; in mlxsw_sp_fid_edit_op() local 475 struct mlxsw_sp *mlxsw_sp = fid->fid_family->mlxsw_sp; in mlxsw_sp_fid_vni_to_fid_map() local [all …]
|
D | spectrum_matchall.c | 30 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_add() local 80 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_del() local 95 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_sample_set() local 107 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_sample_add() local 137 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_sample_del() local 200 int mlxsw_sp_mall_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mall_replace() 379 static int mlxsw_sp1_mall_sample_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_mall_sample_add() 399 static void mlxsw_sp1_mall_sample_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp1_mall_sample_del() 411 static int mlxsw_sp2_mall_sample_add(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_mall_sample_add() 459 static void mlxsw_sp2_mall_sample_del(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp2_mall_sample_del()
|
D | spectrum_acl_atcam.c | 120 struct mlxsw_sp *mlxsw_sp = aregion->region->mlxsw_sp; in mlxsw_sp_acl_atcam_region_12kb_init() local 227 struct mlxsw_sp *mlxsw_sp = region->mlxsw_sp; in mlxsw_sp_acl_atcam_12kb_lkey_id_get() local 274 int mlxsw_sp_acl_atcam_region_associate(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_atcam_region_associate() 315 mlxsw_sp_acl_atcam_region_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_atcam_region_init() 378 mlxsw_sp_acl_atcam_region_entry_insert(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_atcam_region_entry_insert() 420 mlxsw_sp_acl_atcam_region_entry_remove(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_atcam_region_entry_remove() 442 mlxsw_sp_acl_atcam_region_entry_action_replace(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_acl_atcam_region_entry_action_replace() 470 __mlxsw_sp_acl_atcam_entry_add(struct mlxsw_sp *mlxsw_sp, in __mlxsw_sp_acl_atcam_entry_add() 545 __mlxsw_sp_acl_atcam_entry_del(struct mlxsw_sp *mlxsw_sp, in __mlxsw_sp_acl_atcam_entry_del() 558 __mlxsw_sp_acl_atcam_entry_action_replace(struct mlxsw_sp *mlxsw_sp, in __mlxsw_sp_acl_atcam_entry_action_replace() [all …]
|
D | spectrum_ethtool.c | 15 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_get_drvinfo() local 694 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_set_phys_id() local 762 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in __mlxsw_sp_port_get_stats() local 867 mlxsw_sp_port_get_link_supported(struct mlxsw_sp *mlxsw_sp, u32 eth_proto_cap, in mlxsw_sp_port_get_link_supported() 884 mlxsw_sp_port_get_link_advertise(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_port_get_link_advertise() 932 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_ptys_query() local 956 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_get_link_ksettings() local 987 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_set_link_ksettings() local 1036 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_get_module_info() local 1048 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_get_module_eeprom() local [all …]
|