Searched refs:qp_dev (Results 1 – 3 of 3) sorted by relevance
377 rdi->qp_dev = kzalloc_node(sizeof(*rdi->qp_dev), GFP_KERNEL, in rvt_driver_qp_init()379 if (!rdi->qp_dev) in rvt_driver_qp_init()383 rdi->qp_dev->qp_table_size = rdi->dparms.qp_table_size; in rvt_driver_qp_init()384 rdi->qp_dev->qp_table_bits = ilog2(rdi->dparms.qp_table_size); in rvt_driver_qp_init()385 rdi->qp_dev->qp_table = in rvt_driver_qp_init()386 kmalloc_array_node(rdi->qp_dev->qp_table_size, in rvt_driver_qp_init()387 sizeof(*rdi->qp_dev->qp_table), in rvt_driver_qp_init()389 if (!rdi->qp_dev->qp_table) in rvt_driver_qp_init()392 for (i = 0; i < rdi->qp_dev->qp_table_size; i++) in rvt_driver_qp_init()393 RCU_INIT_POINTER(rdi->qp_dev->qp_table[i], NULL); in rvt_driver_qp_init()[all …]
707 u32 n = hash_32(qpn, rdi->qp_dev->qp_table_bits); in rvt_lookup_qpn()709 for (qp = rcu_dereference(rdi->qp_dev->qp_table[n]); qp; in rvt_lookup_qpn()
407 struct rvt_qp_ibdev *qp_dev; member