Lines Matching refs:cq_table

221 	cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1));  in mthca_cq_completion()
239 spin_lock(&dev->cq_table.lock); in mthca_cq_event()
241 cq = mthca_array_get(&dev->cq_table.cq, cqn & (dev->limits.num_cqs - 1)); in mthca_cq_event()
245 spin_unlock(&dev->cq_table.lock); in mthca_cq_event()
258 spin_lock(&dev->cq_table.lock); in mthca_cq_event()
261 spin_unlock(&dev->cq_table.lock); in mthca_cq_event()
779 cq->cqn = mthca_alloc(&dev->cq_table.alloc); in mthca_init_cq()
784 err = mthca_table_get(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
850 spin_lock_irq(&dev->cq_table.lock); in mthca_init_cq()
851 err = mthca_array_set(&dev->cq_table.cq, in mthca_init_cq()
854 spin_unlock_irq(&dev->cq_table.lock); in mthca_init_cq()
857 spin_unlock_irq(&dev->cq_table.lock); in mthca_init_cq()
881 mthca_table_put(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
884 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_init_cq()
893 spin_lock_irq(&dev->cq_table.lock); in get_cq_refcount()
895 spin_unlock_irq(&dev->cq_table.lock); in get_cq_refcount()
927 spin_lock_irq(&dev->cq_table.lock); in mthca_free_cq()
928 mthca_array_clear(&dev->cq_table.cq, in mthca_free_cq()
931 spin_unlock_irq(&dev->cq_table.lock); in mthca_free_cq()
948 mthca_table_put(dev, dev->cq_table.table, cq->cqn); in mthca_free_cq()
949 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_free_cq()
957 spin_lock_init(&dev->cq_table.lock); in mthca_init_cq_table()
959 err = mthca_alloc_init(&dev->cq_table.alloc, in mthca_init_cq_table()
966 err = mthca_array_init(&dev->cq_table.cq, in mthca_init_cq_table()
969 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_init_cq_table()
976 mthca_array_cleanup(&dev->cq_table.cq, dev->limits.num_cqs); in mthca_cleanup_cq_table()
977 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_cleanup_cq_table()