Lines Matching refs:kqp
505 struct erdma_kqp *kqp = &qp->kern_qp; in init_kernel_qp() local
509 kqp->sig_all = 1; in init_kernel_qp()
511 kqp->sq_pi = 0; in init_kernel_qp()
512 kqp->sq_ci = 0; in init_kernel_qp()
513 kqp->rq_pi = 0; in init_kernel_qp()
514 kqp->rq_ci = 0; in init_kernel_qp()
515 kqp->hw_sq_db = in init_kernel_qp()
517 kqp->hw_rq_db = dev->func_bar + ERDMA_BAR_RQDB_SPACE_OFFSET; in init_kernel_qp()
519 kqp->swr_tbl = vmalloc_array(qp->attrs.sq_size, sizeof(u64)); in init_kernel_qp()
520 kqp->rwr_tbl = vmalloc_array(qp->attrs.rq_size, sizeof(u64)); in init_kernel_qp()
521 if (!kqp->swr_tbl || !kqp->rwr_tbl) in init_kernel_qp()
525 kqp->sq_buf = dma_alloc_coherent(&dev->pdev->dev, size, in init_kernel_qp()
526 &kqp->sq_buf_dma_addr, GFP_KERNEL); in init_kernel_qp()
527 if (!kqp->sq_buf) in init_kernel_qp()
530 kqp->sq_dbrec = in init_kernel_qp()
531 dma_pool_zalloc(dev->db_pool, GFP_KERNEL, &kqp->sq_dbrec_dma); in init_kernel_qp()
532 if (!kqp->sq_dbrec) in init_kernel_qp()
536 kqp->rq_buf = dma_alloc_coherent(&dev->pdev->dev, size, in init_kernel_qp()
537 &kqp->rq_buf_dma_addr, GFP_KERNEL); in init_kernel_qp()
538 if (!kqp->rq_buf) in init_kernel_qp()
541 kqp->rq_dbrec = in init_kernel_qp()
542 dma_pool_zalloc(dev->db_pool, GFP_KERNEL, &kqp->rq_dbrec_dma); in init_kernel_qp()
543 if (!kqp->rq_dbrec) in init_kernel_qp()