Lines Matching full:mid

113 mlxsw_sp_pgt_entry_create(struct mlxsw_sp_pgt *pgt, u16 mid, u16 smpe)  in mlxsw_sp_pgt_entry_create()  argument
123 ret = idr_replace(&pgt->pgt_idr, pgt_entry, mid); in mlxsw_sp_pgt_entry_create()
130 pgt_entry->index = mid; in mlxsw_sp_pgt_entry_create()
152 mlxsw_sp_pgt_entry_get(struct mlxsw_sp_pgt *pgt, u16 mid, u16 smpe) in mlxsw_sp_pgt_entry_get() argument
156 pgt_entry = idr_find(&pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_get()
160 return mlxsw_sp_pgt_entry_create(pgt, mid, smpe); in mlxsw_sp_pgt_entry_get()
163 static void mlxsw_sp_pgt_entry_put(struct mlxsw_sp_pgt *pgt, u16 mid) in mlxsw_sp_pgt_entry_put() argument
167 pgt_entry = idr_find(&pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_put()
245 static int mlxsw_sp_pgt_entry_port_add(struct mlxsw_sp *mlxsw_sp, u16 mid, in mlxsw_sp_pgt_entry_port_add() argument
254 pgt_entry = mlxsw_sp_pgt_entry_get(mlxsw_sp->pgt, mid, smpe); in mlxsw_sp_pgt_entry_port_add()
271 mlxsw_sp_pgt_entry_put(mlxsw_sp->pgt, mid); in mlxsw_sp_pgt_entry_port_add()
278 u16 mid, u16 smpe, u16 local_port) in mlxsw_sp_pgt_entry_port_del() argument
285 pgt_entry = idr_find(&mlxsw_sp->pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_port_del()
294 mlxsw_sp_pgt_entry_put(mlxsw_sp->pgt, mid); in mlxsw_sp_pgt_entry_port_del()
300 int mlxsw_sp_pgt_entry_port_set(struct mlxsw_sp *mlxsw_sp, u16 mid, in mlxsw_sp_pgt_entry_port_set() argument
304 return mlxsw_sp_pgt_entry_port_add(mlxsw_sp, mid, smpe, in mlxsw_sp_pgt_entry_port_set()
307 mlxsw_sp_pgt_entry_port_del(mlxsw_sp, mid, smpe, local_port); in mlxsw_sp_pgt_entry_port_set()