Lines Matching refs:pgt_idr
11 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()
166 pgt_entry = idr_find(&pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_get()
177 pgt_entry = idr_find(&pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_put()
295 pgt_entry = idr_find(&mlxsw_sp->pgt->pgt_idr, mid); in mlxsw_sp_pgt_entry_port_del()
332 idr_init(&pgt->pgt_idr); in mlxsw_sp_pgt_init()
343 WARN_ON(!idr_is_empty(&mlxsw_sp->pgt->pgt_idr)); in mlxsw_sp_pgt_fini()
344 idr_destroy(&mlxsw_sp->pgt->pgt_idr); in mlxsw_sp_pgt_fini()