Lines Matching refs:mlxsw_sp

120 struct mlxsw_sp {  struct
152 mlxsw_sp_lag_get(struct mlxsw_sp *mlxsw_sp, u16 lag_id) in mlxsw_sp_lag_get() argument
154 return &mlxsw_sp->lags[lag_id]; in mlxsw_sp_lag_get()
199 struct mlxsw_sp *mlxsw_sp; member
245 mlxsw_sp_port_lagged_get(struct mlxsw_sp *mlxsw_sp, u16 lag_id, u8 port_index) in mlxsw_sp_port_lagged_get() argument
250 local_port = mlxsw_core_lag_mapping_get(mlxsw_sp->core, in mlxsw_sp_port_lagged_get()
252 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_port_lagged_get()
278 int mlxsw_sp_buffers_init(struct mlxsw_sp *mlxsw_sp);
279 void mlxsw_sp_buffers_fini(struct mlxsw_sp *mlxsw_sp);
312 u32 mlxsw_sp_cells_bytes(const struct mlxsw_sp *mlxsw_sp, u32 cells);
313 u32 mlxsw_sp_bytes_cells(const struct mlxsw_sp *mlxsw_sp, u32 bytes);
316 int mlxsw_sp_switchdev_init(struct mlxsw_sp *mlxsw_sp);
317 void mlxsw_sp_switchdev_fini(struct mlxsw_sp *mlxsw_sp);
320 int mlxsw_sp_rif_fdb_op(struct mlxsw_sp *mlxsw_sp, const char *mac, u16 fid,
331 bool mlxsw_sp_bridge_device_is_offloaded(const struct mlxsw_sp *mlxsw_sp,
358 int mlxsw_sp_flow_counter_get(struct mlxsw_sp *mlxsw_sp,
361 int mlxsw_sp_flow_counter_alloc(struct mlxsw_sp *mlxsw_sp,
363 void mlxsw_sp_flow_counter_free(struct mlxsw_sp *mlxsw_sp,
366 struct mlxsw_sp *mlxsw_sp_lower_get(struct net_device *dev);
386 int mlxsw_sp_router_init(struct mlxsw_sp *mlxsw_sp);
387 void mlxsw_sp_router_fini(struct mlxsw_sp *mlxsw_sp);
389 void mlxsw_sp_rif_macvlan_del(struct mlxsw_sp *mlxsw_sp,
401 bool mlxsw_sp_netdev_is_ipip_ol(const struct mlxsw_sp *mlxsw_sp,
403 bool mlxsw_sp_netdev_is_ipip_ul(const struct mlxsw_sp *mlxsw_sp,
405 int mlxsw_sp_netdevice_ipip_ol_event(struct mlxsw_sp *mlxsw_sp,
410 mlxsw_sp_netdevice_ipip_ul_event(struct mlxsw_sp *mlxsw_sp,
417 void mlxsw_sp_rif_destroy_by_dev(struct mlxsw_sp *mlxsw_sp,
443 int (*init)(struct mlxsw_sp *mlxsw_sp, void *priv);
444 void (*fini)(struct mlxsw_sp *mlxsw_sp, void *priv);
445 int (*alloc)(struct mlxsw_sp *mlxsw_sp, void *priv,
448 void (*free)(struct mlxsw_sp *mlxsw_sp, void *priv,
451 int (*alloc_size_query)(struct mlxsw_sp *mlxsw_sp, void *priv,
455 int (*resources_register)(struct mlxsw_sp *mlxsw_sp, void *priv);
458 int mlxsw_sp_kvdl_init(struct mlxsw_sp *mlxsw_sp);
459 void mlxsw_sp_kvdl_fini(struct mlxsw_sp *mlxsw_sp);
460 int mlxsw_sp_kvdl_alloc(struct mlxsw_sp *mlxsw_sp,
463 void mlxsw_sp_kvdl_free(struct mlxsw_sp *mlxsw_sp,
466 int mlxsw_sp_kvdl_alloc_count_query(struct mlxsw_sp *mlxsw_sp,
494 struct mlxsw_sp *mlxsw_sp_acl_block_mlxsw_sp(struct mlxsw_sp_acl_block *block);
499 struct mlxsw_sp_acl_block *mlxsw_sp_acl_block_create(struct mlxsw_sp *mlxsw_sp,
502 int mlxsw_sp_acl_block_bind(struct mlxsw_sp *mlxsw_sp,
506 int mlxsw_sp_acl_block_unbind(struct mlxsw_sp *mlxsw_sp,
512 mlxsw_sp_acl_ruleset_lookup(struct mlxsw_sp *mlxsw_sp,
516 mlxsw_sp_acl_ruleset_get(struct mlxsw_sp *mlxsw_sp,
520 void mlxsw_sp_acl_ruleset_put(struct mlxsw_sp *mlxsw_sp,
543 int mlxsw_sp_acl_rulei_act_mirror(struct mlxsw_sp *mlxsw_sp,
548 int mlxsw_sp_acl_rulei_act_fwd(struct mlxsw_sp *mlxsw_sp,
552 int mlxsw_sp_acl_rulei_act_vlan(struct mlxsw_sp *mlxsw_sp,
556 int mlxsw_sp_acl_rulei_act_count(struct mlxsw_sp *mlxsw_sp,
559 int mlxsw_sp_acl_rulei_act_fid_set(struct mlxsw_sp *mlxsw_sp,
566 mlxsw_sp_acl_rule_create(struct mlxsw_sp *mlxsw_sp,
570 void mlxsw_sp_acl_rule_destroy(struct mlxsw_sp *mlxsw_sp,
572 int mlxsw_sp_acl_rule_add(struct mlxsw_sp *mlxsw_sp,
574 void mlxsw_sp_acl_rule_del(struct mlxsw_sp *mlxsw_sp,
577 mlxsw_sp_acl_rule_lookup(struct mlxsw_sp *mlxsw_sp,
582 int mlxsw_sp_acl_rule_get_stats(struct mlxsw_sp *mlxsw_sp,
586 struct mlxsw_sp_fid *mlxsw_sp_acl_dummy_fid(struct mlxsw_sp *mlxsw_sp);
588 int mlxsw_sp_acl_init(struct mlxsw_sp *mlxsw_sp);
589 void mlxsw_sp_acl_fini(struct mlxsw_sp *mlxsw_sp);
598 int (*init)(struct mlxsw_sp *mlxsw_sp, void *priv,
600 void (*fini)(struct mlxsw_sp *mlxsw_sp, void *priv);
602 int (*region_init)(struct mlxsw_sp *mlxsw_sp, void *region_priv,
605 void (*region_fini)(struct mlxsw_sp *mlxsw_sp, void *region_priv);
606 int (*region_associate)(struct mlxsw_sp *mlxsw_sp,
613 int (*entry_add)(struct mlxsw_sp *mlxsw_sp,
617 void (*entry_del)(struct mlxsw_sp *mlxsw_sp,
620 int (*entry_activity_get)(struct mlxsw_sp *mlxsw_sp,
640 int mlxsw_sp_flower_replace(struct mlxsw_sp *mlxsw_sp,
643 void mlxsw_sp_flower_destroy(struct mlxsw_sp *mlxsw_sp,
646 int mlxsw_sp_flower_stats(struct mlxsw_sp *mlxsw_sp,
649 int mlxsw_sp_flower_tmplt_create(struct mlxsw_sp *mlxsw_sp,
652 void mlxsw_sp_flower_tmplt_destroy(struct mlxsw_sp *mlxsw_sp,
677 mlxsw_sp_fid_type_rif_type(const struct mlxsw_sp *mlxsw_sp,
680 struct mlxsw_sp_fid *mlxsw_sp_fid_8021q_get(struct mlxsw_sp *mlxsw_sp, u16 vid);
681 struct mlxsw_sp_fid *mlxsw_sp_fid_8021d_get(struct mlxsw_sp *mlxsw_sp,
683 struct mlxsw_sp_fid *mlxsw_sp_fid_rfid_get(struct mlxsw_sp *mlxsw_sp,
685 struct mlxsw_sp_fid *mlxsw_sp_fid_dummy_get(struct mlxsw_sp *mlxsw_sp);
689 int mlxsw_sp_fids_init(struct mlxsw_sp *mlxsw_sp);
690 void mlxsw_sp_fids_fini(struct mlxsw_sp *mlxsw_sp);
706 int (*init)(struct mlxsw_sp *mlxsw_sp, void *priv);
709 int (*route_create)(struct mlxsw_sp *mlxsw_sp, void *priv,
714 void (*route_destroy)(struct mlxsw_sp *mlxsw_sp, void *priv,
717 int (*route_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv,