Lines Matching refs:mcg_table
136 mutex_lock(&dev->mcg_table.mutex); in mthca_multicast_attach()
148 index = mthca_alloc(&dev->mcg_table.alloc); in mthca_multicast_attach()
206 mthca_free(&dev->mcg_table.alloc, index); in mthca_multicast_attach()
208 mutex_unlock(&dev->mcg_table.mutex); in mthca_multicast_attach()
229 mutex_lock(&dev->mcg_table.mutex); in mthca_multicast_detach()
286 mthca_free(&dev->mcg_table.alloc, amgm_index_to_free); in mthca_multicast_detach()
305 mthca_free(&dev->mcg_table.alloc, index); in mthca_multicast_detach()
309 mutex_unlock(&dev->mcg_table.mutex); in mthca_multicast_detach()
320 err = mthca_alloc_init(&dev->mcg_table.alloc, in mthca_init_mcg_table()
327 mutex_init(&dev->mcg_table.mutex); in mthca_init_mcg_table()
334 mthca_alloc_cleanup(&dev->mcg_table.alloc); in mthca_cleanup_mcg_table()