Lines Matching refs:rif
33 struct mlxsw_sp_rif *rif; member
97 const struct mlxsw_sp_rif *rif);
392 return fid->rif; in mlxsw_sp_fid_rif()
445 const struct mlxsw_sp_rif *rif) in mlxsw_sp_fid_edit_op() argument
463 if (rif) { in mlxsw_sp_fid_edit_op()
465 mlxsw_reg_sfmr_irif_set(sfmr_pl, mlxsw_sp_rif_index(rif)); in mlxsw_sp_fid_edit_op()
472 const struct mlxsw_sp_rif *rif, in mlxsw_sp_fid_vni_to_fid_map() argument
480 irif_valid = !!rif; in mlxsw_sp_fid_vni_to_fid_map()
481 irif_index = rif ? mlxsw_sp_rif_index(rif) : 0; in mlxsw_sp_fid_vni_to_fid_map()
489 const struct mlxsw_sp_rif *rif) in mlxsw_sp_fid_to_fid_rif_update() argument
491 return mlxsw_sp_fid_edit_op(fid, rif); in mlxsw_sp_fid_to_fid_rif_update()
495 const struct mlxsw_sp_rif *rif) in mlxsw_sp_fid_vni_to_fid_rif_update() argument
500 return mlxsw_sp_fid_vni_to_fid_map(fid, rif, fid->vni_valid); in mlxsw_sp_fid_vni_to_fid_rif_update()
505 const struct mlxsw_sp_rif *rif) in mlxsw_sp_fid_vid_to_fid_map() argument
512 irif_valid = !!rif; in mlxsw_sp_fid_vid_to_fid_map()
513 irif_index = rif ? mlxsw_sp_rif_index(rif) : 0; in mlxsw_sp_fid_vid_to_fid_map()
522 const struct mlxsw_sp_rif *rif) in mlxsw_sp_fid_8021q_vid_to_fid_rif_update() argument
529 return mlxsw_sp_fid_vid_to_fid_map(fid, fid_8021q->vid, true, rif); in mlxsw_sp_fid_8021q_vid_to_fid_rif_update()
548 const struct mlxsw_sp_rif *rif) in mlxsw_sp_fid_vid_to_fid_rif_set() argument
555 err = fid->fid_family->ops->vid_to_fid_rif_update(fid, rif); in mlxsw_sp_fid_vid_to_fid_rif_set()
559 irif_index = mlxsw_sp_rif_index(rif); in mlxsw_sp_fid_vid_to_fid_rif_set()
681 int mlxsw_sp_fid_rif_set(struct mlxsw_sp_fid *fid, struct mlxsw_sp_rif *rif) in mlxsw_sp_fid_rif_set() argument
683 u16 rif_index = mlxsw_sp_rif_index(rif); in mlxsw_sp_fid_rif_set()
686 err = mlxsw_sp_fid_to_fid_rif_update(fid, rif); in mlxsw_sp_fid_rif_set()
690 err = mlxsw_sp_fid_vni_to_fid_rif_update(fid, rif); in mlxsw_sp_fid_rif_set()
694 err = mlxsw_sp_fid_vid_to_fid_rif_set(fid, rif); in mlxsw_sp_fid_rif_set()
702 fid->rif = rif; in mlxsw_sp_fid_rif_set()
718 if (!fid->rif) in mlxsw_sp_fid_rif_unset()
721 rif_index = mlxsw_sp_rif_index(fid->rif); in mlxsw_sp_fid_rif_unset()
722 fid->rif = NULL; in mlxsw_sp_fid_rif_unset()
734 err = mlxsw_sp_fid_vni_to_fid_map(fid, fid->rif, fid->vni_valid); in mlxsw_sp_fid_vni_op()
738 err = mlxsw_sp_fid_edit_op(fid, fid->rif); in mlxsw_sp_fid_vni_op()
745 mlxsw_sp_fid_vni_to_fid_map(fid, fid->rif, !fid->vni_valid); in mlxsw_sp_fid_vni_op()
757 if (fid->rif) { in __mlxsw_sp_fid_port_vid_map()
759 irif_index = mlxsw_sp_rif_index(fid->rif); in __mlxsw_sp_fid_port_vid_map()
934 u16 rif_index = mlxsw_sp_rif_index(fid->rif); in mlxsw_sp_fid_erif_eport_to_vid_map_one()
959 if (!fid->rif) in mlxsw_sp_fid_evid_map()
1041 return mlxsw_sp_fid_edit_op(fid, fid->rif); in mlxsw_sp_fid_8021d_nve_flood_index_set()
1046 mlxsw_sp_fid_edit_op(fid, fid->rif); in mlxsw_sp_fid_8021d_nve_flood_index_clear()
1058 const struct mlxsw_sp_rif *rif) in mlxsw_sp_fid_8021d_vid_to_fid_rif_update() argument
1173 if (fid->rif) { in mlxsw_sp_fid_rfid_port_vid_map()
1190 if (fid->rif) in mlxsw_sp_fid_rfid_port_vid_map()
1211 if (fid->rif) in mlxsw_sp_fid_rfid_port_vid_unmap()
1240 const struct mlxsw_sp_rif *rif) in mlxsw_sp_fid_rfid_vid_to_fid_rif_update() argument
1330 err = mlxsw_sp_fid_vid_to_fid_map(fid, fid_8021q->vid, true, fid->rif); in mlxsw_sp_fid_8021q_configure()