Lines Matching refs:q_id
29 #define CI_ADDR(base_addr, q_id) ((base_addr) + \ argument
30 (q_id) * CI_Q_ADDR_SIZE)
129 base_qpn + qp->q_id); in write_sq_ctxts()
173 base_qpn + qp->q_id); in write_rq_ctxts()
269 struct hinic_qp *qp, int q_id, in init_qp() argument
278 qp->q_id = q_id; in init_qp()
280 err = hinic_wq_allocate(&func_to_io->wqs, &func_to_io->sq_wq[q_id], in init_qp()
288 err = hinic_wq_allocate(&func_to_io->wqs, &func_to_io->rq_wq[q_id], in init_qp()
303 func_to_io->sq_db[q_id] = db_base; in init_qp()
305 err = hinic_init_sq(&qp->sq, hwif, &func_to_io->sq_wq[q_id], in init_qp()
307 CI_ADDR(func_to_io->ci_addr_base, q_id), in init_qp()
308 CI_ADDR(func_to_io->ci_dma_base, q_id), db_base); in init_qp()
314 err = hinic_init_rq(&qp->rq, hwif, &func_to_io->rq_wq[q_id], in init_qp()
330 hinic_wq_free(&func_to_io->wqs, &func_to_io->rq_wq[q_id]); in init_qp()
333 hinic_wq_free(&func_to_io->wqs, &func_to_io->sq_wq[q_id]); in init_qp()
345 int q_id = qp->q_id; in destroy_qp() local
350 return_db_area(func_to_io, func_to_io->sq_db[q_id]); in destroy_qp()
352 hinic_wq_free(&func_to_io->wqs, &func_to_io->rq_wq[q_id]); in destroy_qp()
353 hinic_wq_free(&func_to_io->wqs, &func_to_io->sq_wq[q_id]); in destroy_qp()