Lines Matching refs:cq_table

226 	cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1));  in mthca_cq_completion()
244 spin_lock(&dev->cq_table.lock); in mthca_cq_event()
246 cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); in mthca_cq_event()
250 spin_unlock(&dev->cq_table.lock); in mthca_cq_event()
263 spin_lock(&dev->cq_table.lock); in mthca_cq_event()
266 spin_unlock(&dev->cq_table.lock); in mthca_cq_event()
784 cq->cqn = mthca_alloc(&dev->cq_table.alloc); in mthca_init_cq()
789 err = mthca_table_get(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
853 spin_lock_irq(&dev->cq_table.lock); in mthca_init_cq()
854 if (mthca_array_set(&dev->cq_table.cq, in mthca_init_cq()
857 spin_unlock_irq(&dev->cq_table.lock); in mthca_init_cq()
860 spin_unlock_irq(&dev->cq_table.lock); in mthca_init_cq()
884 mthca_table_put(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
887 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_init_cq()
896 spin_lock_irq(&dev->cq_table.lock); in get_cq_refcount()
898 spin_unlock_irq(&dev->cq_table.lock); in get_cq_refcount()
930 spin_lock_irq(&dev->cq_table.lock); in mthca_free_cq()
931 mthca_array_clear(&dev->cq_table.cq, in mthca_free_cq()
934 spin_unlock_irq(&dev->cq_table.lock); in mthca_free_cq()
951 mthca_table_put(dev, dev->cq_table.table, cq->cqn); in mthca_free_cq()
952 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_free_cq()
960 spin_lock_init(&dev->cq_table.lock); in mthca_init_cq_table()
962 err = mthca_alloc_init(&dev->cq_table.alloc, in mthca_init_cq_table()
969 err = mthca_array_init(&dev->cq_table.cq, in mthca_init_cq_table()
972 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_init_cq_table()
979 mthca_array_cleanup(&dev->cq_table.cq, dev->limits.num_cqs); in mthca_cleanup_cq_table()
980 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_cleanup_cq_table()