Lines Matching refs:sfmr_pl
105 void (*fid_pack)(char *sfmr_pl, const struct mlxsw_sp_fid *fid,
517 static void mlxsw_sp_fid_pack(char *sfmr_pl, in mlxsw_sp_fid_pack() argument
525 mlxsw_reg_sfmr_pack(sfmr_pl, op, fid->fid_index, in mlxsw_sp_fid_pack()
529 static void mlxsw_sp_fid_pack_ctl(char *sfmr_pl, in mlxsw_sp_fid_pack_ctl() argument
533 mlxsw_sp_fid_pack(sfmr_pl, fid, op); in mlxsw_sp_fid_pack_ctl()
534 mlxsw_reg_sfmr_fid_offset_set(sfmr_pl, fid->fid_offset); in mlxsw_sp_fid_pack_ctl()
535 mlxsw_reg_sfmr_flood_rsp_set(sfmr_pl, fid->fid_family->flood_rsp); in mlxsw_sp_fid_pack_ctl()
536 mlxsw_reg_sfmr_flood_bridge_type_set(sfmr_pl, in mlxsw_sp_fid_pack_ctl()
553 static void mlxsw_sp_fid_fid_pack_cff(char *sfmr_pl, in mlxsw_sp_fid_fid_pack_cff() argument
560 mlxsw_sp_fid_pack(sfmr_pl, fid, op); in mlxsw_sp_fid_fid_pack_cff()
561 mlxsw_reg_sfmr_cff_mid_base_set(sfmr_pl, pgt_base); in mlxsw_sp_fid_fid_pack_cff()
562 mlxsw_reg_sfmr_cff_prf_id_set(sfmr_pl, in mlxsw_sp_fid_fid_pack_cff()
564 mlxsw_reg_sfmr_nve_flood_prf_id_set(sfmr_pl, in mlxsw_sp_fid_fid_pack_cff()
583 char sfmr_pl[MLXSW_REG_SFMR_LEN]; in mlxsw_sp_fid_op() local
585 fid->fid_family->ops->fid_pack(sfmr_pl, fid, in mlxsw_sp_fid_op()
587 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfmr), sfmr_pl); in mlxsw_sp_fid_op()
594 char sfmr_pl[MLXSW_REG_SFMR_LEN]; in mlxsw_sp_fid_edit_op() local
596 fid->fid_family->ops->fid_pack(sfmr_pl, fid, in mlxsw_sp_fid_edit_op()
599 mlxsw_reg_sfmr_vv_set(sfmr_pl, fid->vni_valid); in mlxsw_sp_fid_edit_op()
600 mlxsw_reg_sfmr_vni_set(sfmr_pl, be32_to_cpu(fid->vni)); in mlxsw_sp_fid_edit_op()
601 mlxsw_reg_sfmr_vtfp_set(sfmr_pl, fid->nve_flood_index_valid); in mlxsw_sp_fid_edit_op()
602 mlxsw_reg_sfmr_nve_tunnel_flood_ptr_set(sfmr_pl, fid->nve_flood_index); in mlxsw_sp_fid_edit_op()
605 mlxsw_reg_sfmr_irif_v_set(sfmr_pl, true); in mlxsw_sp_fid_edit_op()
606 mlxsw_reg_sfmr_irif_set(sfmr_pl, mlxsw_sp_rif_index(rif)); in mlxsw_sp_fid_edit_op()
609 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfmr), sfmr_pl); in mlxsw_sp_fid_edit_op()