• Home
  • Raw
  • Download

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()
848 spin_lock_irq(&dev->cq_table.lock); in mthca_init_cq()
849 if (mthca_array_set(&dev->cq_table.cq, in mthca_init_cq()
852 spin_unlock_irq(&dev->cq_table.lock); in mthca_init_cq()
855 spin_unlock_irq(&dev->cq_table.lock); in mthca_init_cq()
879 mthca_table_put(dev, dev->cq_table.table, cq->cqn); in mthca_init_cq()
882 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_init_cq()
891 spin_lock_irq(&dev->cq_table.lock); in get_cq_refcount()
893 spin_unlock_irq(&dev->cq_table.lock); in get_cq_refcount()
925 spin_lock_irq(&dev->cq_table.lock); in mthca_free_cq()
926 mthca_array_clear(&dev->cq_table.cq, in mthca_free_cq()
929 spin_unlock_irq(&dev->cq_table.lock); in mthca_free_cq()
946 mthca_table_put(dev, dev->cq_table.table, cq->cqn); in mthca_free_cq()
947 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_free_cq()
955 spin_lock_init(&dev->cq_table.lock); in mthca_init_cq_table()
957 err = mthca_alloc_init(&dev->cq_table.alloc, in mthca_init_cq_table()
964 err = mthca_array_init(&dev->cq_table.cq, in mthca_init_cq_table()
967 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_init_cq_table()
974 mthca_array_cleanup(&dev->cq_table.cq, dev->limits.num_cqs); in mthca_cleanup_cq_table()
975 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_cleanup_cq_table()