Home
last modified time | relevance | path

Searched refs:ukinfo (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/infiniband/hw/irdma/
H A Duk.c1344 void irdma_uk_calc_shift_wq(struct irdma_qp_uk_init_info *ukinfo, u8 *sq_shift, in irdma_uk_calc_shift_wq() argument
1347 bool imm_support = ukinfo->uk_attrs->hw_rev >= IRDMA_GEN_2; in irdma_uk_calc_shift_wq()
1349 irdma_get_wqe_shift(ukinfo->uk_attrs, in irdma_uk_calc_shift_wq()
1350 imm_support ? ukinfo->max_sq_frag_cnt + 1 : in irdma_uk_calc_shift_wq()
1351 ukinfo->max_sq_frag_cnt, in irdma_uk_calc_shift_wq()
1352 ukinfo->max_inline_data, sq_shift); in irdma_uk_calc_shift_wq()
1354 irdma_get_wqe_shift(ukinfo->uk_attrs, ukinfo->max_rq_frag_cnt, 0, in irdma_uk_calc_shift_wq()
1357 if (ukinfo->uk_attrs->hw_rev == IRDMA_GEN_1) { in irdma_uk_calc_shift_wq()
1358 if (ukinfo->abi_ver > 4) in irdma_uk_calc_shift_wq()
1369 int irdma_uk_calc_depth_shift_sq(struct irdma_qp_uk_init_info *ukinfo, in irdma_uk_calc_depth_shift_sq() argument
[all …]
H A Dverbs.c590 struct irdma_qp_uk_init_info *ukinfo = &info->qp_uk_init_info; in irdma_setup_umode_qp() local
627 ukinfo->sq_size = init_attr->cap.max_send_wr; in irdma_setup_umode_qp()
628 ukinfo->rq_size = init_attr->cap.max_recv_wr; in irdma_setup_umode_qp()
629 irdma_uk_calc_shift_wq(ukinfo, &ukinfo->sq_shift, in irdma_setup_umode_qp()
630 &ukinfo->rq_shift); in irdma_setup_umode_qp()
632 ret = irdma_uk_calc_depth_shift_sq(ukinfo, &ukinfo->sq_depth, in irdma_setup_umode_qp()
633 &ukinfo->sq_shift); in irdma_setup_umode_qp()
637 ret = irdma_uk_calc_depth_shift_rq(ukinfo, &ukinfo->rq_depth, in irdma_setup_umode_qp()
638 &ukinfo->rq_shift); in irdma_setup_umode_qp()
643 (ukinfo->sq_depth - IRDMA_SQ_RSVD) >> ukinfo->sq_shift; in irdma_setup_umode_qp()
[all …]
H A Duser.h297 void irdma_uk_calc_shift_wq(struct irdma_qp_uk_init_info *ukinfo, u8 *sq_shift,
299 int irdma_uk_calc_depth_shift_sq(struct irdma_qp_uk_init_info *ukinfo,
301 int irdma_uk_calc_depth_shift_rq(struct irdma_qp_uk_init_info *ukinfo,