Home
last modified time | relevance | path

Searched refs:pgt_idr (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_pgt.c11 struct idr pgt_idr; member
33 index = idr_alloc(&mlxsw_sp->pgt->pgt_idr, NULL, 0, in mlxsw_sp_pgt_mid_alloc()
53 WARN_ON(idr_remove(&mlxsw_sp->pgt->pgt_idr, mid_base)); in mlxsw_sp_pgt_mid_free()
70 idr_cursor = idr_get_cursor(&mlxsw_sp->pgt->pgt_idr); in mlxsw_sp_pgt_mid_alloc_range()
77 err = idr_alloc_cyclic(&mlxsw_sp->pgt->pgt_idr, NULL, in mlxsw_sp_pgt_mid_alloc_range()
88 idr_remove(&mlxsw_sp->pgt->pgt_idr, mid_base + i); in mlxsw_sp_pgt_mid_alloc_range()
97 struct idr *pgt_idr = &mlxsw_sp->pgt->pgt_idr; in mlxsw_sp_pgt_mid_free_range() local
103 WARN_ON_ONCE(idr_remove(pgt_idr, mid_base + i)); in mlxsw_sp_pgt_mid_free_range()
133 ret = idr_replace(&pgt->pgt_idr, pgt_entry, mid); in mlxsw_sp_pgt_entry_create()
154 pgt_entry = idr_replace(&pgt->pgt_idr, NULL, pgt_entry->index); in mlxsw_sp_pgt_entry_destroy()
[all …]