Lines Matching refs:sq
504 u32 sge_num = hr_qp->sq.ext_sge_cnt;
569 hr_qp->sq.ext_sge_cnt = inline_ext_sge ?
572 hr_qp->sq.max_gs = max(1U, (hr_qp->sq.ext_sge_cnt + std_sge_num));
573 hr_qp->sq.max_gs = min(hr_qp->sq.max_gs, hr_dev->caps.max_sq_sg);
575 ext_wqe_sge_cnt = hr_qp->sq.ext_sge_cnt;
577 hr_qp->sq.max_gs = max(1U, cap->max_send_sge);
578 hr_qp->sq.max_gs = min(hr_qp->sq.max_gs, hr_dev->caps.max_sq_sg);
579 hr_qp->sq.ext_sge_cnt = hr_qp->sq.max_gs;
638 hr_qp->sq.wqe_shift = ucmd->log_sq_stride;
639 hr_qp->sq.wqe_cnt = cnt;
640 cap->max_send_sge = hr_qp->sq.max_gs;
655 hr_qp->sq.offset = 0;
656 buf_size = to_hr_hem_entries_size(hr_qp->sq.wqe_cnt,
657 hr_qp->sq.wqe_shift);
715 hr_qp->sq.wqe_shift = ilog2(hr_dev->caps.max_sq_desc_sz);
716 hr_qp->sq.wqe_cnt = cnt;
722 cap->max_send_sge = hr_qp->sq.max_gs;
890 hr_qp->sq.db_reg = hr_dev->mem_base +
893 hr_qp->sq.db_reg = hr_dev->reg_base + hr_dev->sdb_offset +
978 sq_wrid = kcalloc(hr_qp->sq.wqe_cnt, sizeof(u64), GFP_KERNEL);
993 hr_qp->sq.wrid = sq_wrid;
1005 kfree(hr_qp->sq.wrid);
1131 spin_lock_init(&hr_qp->sq.lock);
1407 hr_qp->sq.head = *(int *)(hr_qp->sdb.virt_addr);
1515 return get_wqe(hr_qp, hr_qp->sq.offset + (n << hr_qp->sq.wqe_shift));