Lines Matching full:mid

123 mlxsw_sp_pgt_entry_create(struct mlxsw_sp_pgt *pgt, u16 mid, u16 smpe)  in mlxsw_sp_pgt_entry_create()  argument
133 ret = idr_replace(&pgt->pgt_idr, pgt_entry, mid); in mlxsw_sp_pgt_entry_create()
140 pgt_entry->index = mid; in mlxsw_sp_pgt_entry_create()
162 mlxsw_sp_pgt_entry_get(struct mlxsw_sp_pgt *pgt, u16 mid, u16 smpe) in mlxsw_sp_pgt_entry_get() argument
166 pgt_entry = idr_find(&pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_get()
170 return mlxsw_sp_pgt_entry_create(pgt, mid, smpe); in mlxsw_sp_pgt_entry_get()
173 static void mlxsw_sp_pgt_entry_put(struct mlxsw_sp_pgt *pgt, u16 mid) in mlxsw_sp_pgt_entry_put() argument
177 pgt_entry = idr_find(&pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_put()
255 static int mlxsw_sp_pgt_entry_port_add(struct mlxsw_sp *mlxsw_sp, u16 mid, in mlxsw_sp_pgt_entry_port_add() argument
264 pgt_entry = mlxsw_sp_pgt_entry_get(mlxsw_sp->pgt, mid, smpe); in mlxsw_sp_pgt_entry_port_add()
281 mlxsw_sp_pgt_entry_put(mlxsw_sp->pgt, mid); in mlxsw_sp_pgt_entry_port_add()
288 u16 mid, u16 smpe, u16 local_port) in mlxsw_sp_pgt_entry_port_del() argument
295 pgt_entry = idr_find(&mlxsw_sp->pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_port_del()
304 mlxsw_sp_pgt_entry_put(mlxsw_sp->pgt, mid); 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() argument
314 return mlxsw_sp_pgt_entry_port_add(mlxsw_sp, mid, smpe, in mlxsw_sp_pgt_entry_port_set()
317 mlxsw_sp_pgt_entry_port_del(mlxsw_sp, mid, smpe, local_port); in mlxsw_sp_pgt_entry_port_set()