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()
787 cq->cqn = mthca_alloc(&dev->cq_table.alloc); in mthca_init_cq()
792 err = mthca_table_get(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
856 spin_lock_irq(&dev->cq_table.lock); in mthca_init_cq()
857 if (mthca_array_set(&dev->cq_table.cq, in mthca_init_cq()
860 spin_unlock_irq(&dev->cq_table.lock); in mthca_init_cq()
863 spin_unlock_irq(&dev->cq_table.lock); in mthca_init_cq()
887 mthca_table_put(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
890 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_init_cq()
899 spin_lock_irq(&dev->cq_table.lock); in get_cq_refcount()
901 spin_unlock_irq(&dev->cq_table.lock); in get_cq_refcount()
933 spin_lock_irq(&dev->cq_table.lock); in mthca_free_cq()
934 mthca_array_clear(&dev->cq_table.cq, in mthca_free_cq()
937 spin_unlock_irq(&dev->cq_table.lock); in mthca_free_cq()
954 mthca_table_put(dev, dev->cq_table.table, cq->cqn); in mthca_free_cq()
955 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_free_cq()
963 spin_lock_init(&dev->cq_table.lock); in mthca_init_cq_table()
965 err = mthca_alloc_init(&dev->cq_table.alloc, in mthca_init_cq_table()
972 err = mthca_array_init(&dev->cq_table.cq, in mthca_init_cq_table()
975 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_init_cq_table()
982 mthca_array_cleanup(&dev->cq_table.cq, dev->limits.num_cqs); in mthca_cleanup_cq_table()
983 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_cleanup_cq_table()