qp_dev 418 drivers/infiniband/sw/rdmavt/qp.c rdi->qp_dev = kzalloc_node(sizeof(*rdi->qp_dev), GFP_KERNEL, qp_dev 420 drivers/infiniband/sw/rdmavt/qp.c if (!rdi->qp_dev) qp_dev 424 drivers/infiniband/sw/rdmavt/qp.c rdi->qp_dev->qp_table_size = rdi->dparms.qp_table_size; qp_dev 425 drivers/infiniband/sw/rdmavt/qp.c rdi->qp_dev->qp_table_bits = ilog2(rdi->dparms.qp_table_size); qp_dev 426 drivers/infiniband/sw/rdmavt/qp.c rdi->qp_dev->qp_table = qp_dev 427 drivers/infiniband/sw/rdmavt/qp.c kmalloc_array_node(rdi->qp_dev->qp_table_size, qp_dev 428 drivers/infiniband/sw/rdmavt/qp.c sizeof(*rdi->qp_dev->qp_table), qp_dev 430 drivers/infiniband/sw/rdmavt/qp.c if (!rdi->qp_dev->qp_table) qp_dev 433 drivers/infiniband/sw/rdmavt/qp.c for (i = 0; i < rdi->qp_dev->qp_table_size; i++) qp_dev 434 drivers/infiniband/sw/rdmavt/qp.c RCU_INIT_POINTER(rdi->qp_dev->qp_table[i], NULL); qp_dev 436 drivers/infiniband/sw/rdmavt/qp.c spin_lock_init(&rdi->qp_dev->qpt_lock); qp_dev 439 drivers/infiniband/sw/rdmavt/qp.c if (init_qpn_table(rdi, &rdi->qp_dev->qpn_table)) qp_dev 447 drivers/infiniband/sw/rdmavt/qp.c kfree(rdi->qp_dev->qp_table); qp_dev 448 drivers/infiniband/sw/rdmavt/qp.c free_qpn_table(&rdi->qp_dev->qpn_table); qp_dev 451 drivers/infiniband/sw/rdmavt/qp.c kfree(rdi->qp_dev); qp_dev 508 drivers/infiniband/sw/rdmavt/qp.c if (!rdi->qp_dev) qp_dev 511 drivers/infiniband/sw/rdmavt/qp.c kfree(rdi->qp_dev->qp_table); qp_dev 512 drivers/infiniband/sw/rdmavt/qp.c free_qpn_table(&rdi->qp_dev->qpn_table); qp_dev 513 drivers/infiniband/sw/rdmavt/qp.c kfree(rdi->qp_dev); qp_dev 771 drivers/infiniband/sw/rdmavt/qp.c u32 n = hash_32(qp->ibqp.qp_num, rdi->qp_dev->qp_table_bits); qp_dev 775 drivers/infiniband/sw/rdmavt/qp.c spin_lock_irqsave(&rdi->qp_dev->qpt_lock, flags); qp_dev 778 drivers/infiniband/sw/rdmavt/qp.c lockdep_is_held(&rdi->qp_dev->qpt_lock)) == qp) { qp_dev 781 drivers/infiniband/sw/rdmavt/qp.c lockdep_is_held(&rdi->qp_dev->qpt_lock)) == qp) { qp_dev 788 drivers/infiniband/sw/rdmavt/qp.c qpp = &rdi->qp_dev->qp_table[n]; qp_dev 790 drivers/infiniband/sw/rdmavt/qp.c lockdep_is_held(&rdi->qp_dev->qpt_lock))) != NULL; qp_dev 795 drivers/infiniband/sw/rdmavt/qp.c lockdep_is_held(&rdi->qp_dev->qpt_lock))); qp_dev 803 drivers/infiniband/sw/rdmavt/qp.c spin_unlock_irqrestore(&rdi->qp_dev->qpt_lock, flags); qp_dev 1202 drivers/infiniband/sw/rdmavt/qp.c err = alloc_qpn(rdi, &rdi->qp_dev->qpn_table, qp_dev 1300 drivers/infiniband/sw/rdmavt/qp.c rvt_free_qpn(&rdi->qp_dev->qpn_table, qp->ibqp.qp_num); qp_dev 1422 drivers/infiniband/sw/rdmavt/qp.c spin_lock_irqsave(&rdi->qp_dev->qpt_lock, flags); qp_dev 1427 drivers/infiniband/sw/rdmavt/qp.c u32 n = hash_32(qp->ibqp.qp_num, rdi->qp_dev->qp_table_bits); qp_dev 1429 drivers/infiniband/sw/rdmavt/qp.c qp->next = rdi->qp_dev->qp_table[n]; qp_dev 1430 drivers/infiniband/sw/rdmavt/qp.c rcu_assign_pointer(rdi->qp_dev->qp_table[n], qp); qp_dev 1434 drivers/infiniband/sw/rdmavt/qp.c spin_unlock_irqrestore(&rdi->qp_dev->qpt_lock, flags); qp_dev 1726 drivers/infiniband/sw/rdmavt/qp.c rvt_free_qpn(&rdi->qp_dev->qpn_table, qp->ibqp.qp_num); qp_dev 2766 drivers/infiniband/sw/rdmavt/qp.c for (; n < rdi->qp_dev->qp_table_size + iter->specials; n++) { qp_dev 2779 drivers/infiniband/sw/rdmavt/qp.c rdi->qp_dev->qp_table[ qp_dev 449 include/rdma/rdma_vt.h struct rvt_qp_ibdev *qp_dev; qp_dev 723 include/rdma/rdmavt_qp.h u32 n = hash_32(qpn, rdi->qp_dev->qp_table_bits); qp_dev 725 include/rdma/rdmavt_qp.h for (qp = rcu_dereference(rdi->qp_dev->qp_table[n]); qp;