Lines Matching refs:uk_attrs

163 	avail_quanta = qp->uk_attrs->max_hw_sq_chunk -  in irdma_qp_get_next_send_wqe()
165 qp->uk_attrs->max_hw_sq_chunk); in irdma_qp_get_next_send_wqe()
189 if (qp->uk_attrs->hw_rev == IRDMA_GEN_1 && quanta == 1 && in irdma_qp_get_next_send_wqe()
292 if (qp->uk_attrs->hw_rev >= IRDMA_GEN_2 && !(frag_cnt & 0x01) && in irdma_uk_rdma_write()
296 if (qp->uk_attrs->hw_rev == IRDMA_GEN_2) in irdma_uk_rdma_write()
372 if (qp->uk_attrs->hw_rev >= IRDMA_GEN_2 && in irdma_uk_rdma_read()
376 if (qp->uk_attrs->hw_rev == IRDMA_GEN_2) in irdma_uk_rdma_read()
461 if (qp->uk_attrs->hw_rev >= IRDMA_GEN_2 && !(frag_cnt & 0x01) && in irdma_uk_send()
465 if (qp->uk_attrs->hw_rev == IRDMA_GEN_2) in irdma_uk_send()
868 if (qp->uk_attrs->hw_rev >= IRDMA_GEN_2 && !(info->num_sges & 0x01) && in irdma_uk_post_receive()
872 if (qp->uk_attrs->hw_rev == IRDMA_GEN_2) in irdma_uk_post_receive()
1240 void irdma_get_wqe_shift(struct irdma_uk_attrs *uk_attrs, u32 sge, in irdma_get_wqe_shift() argument
1244 if (uk_attrs->hw_rev >= IRDMA_GEN_2) { in irdma_get_wqe_shift()
1266 int irdma_get_sqdepth(struct irdma_uk_attrs *uk_attrs, u32 sq_size, u8 shift, in irdma_get_sqdepth() argument
1269 u32 min_size = (u32)uk_attrs->min_hw_wq_size << shift; in irdma_get_sqdepth()
1275 else if (*sqdepth > uk_attrs->max_hw_wq_quanta) in irdma_get_sqdepth()
1288 int irdma_get_rqdepth(struct irdma_uk_attrs *uk_attrs, u32 rq_size, u8 shift, in irdma_get_rqdepth() argument
1291 u32 min_size = (u32)uk_attrs->min_hw_wq_size << shift; in irdma_get_rqdepth()
1297 else if (*rqdepth > uk_attrs->max_hw_rq_quanta) in irdma_get_rqdepth()
1329 (qp->uk_attrs->feature_flags & IRDMA_FEATURE_RTS_AE)) in irdma_setup_connection_wqes()
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()
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()
1372 bool imm_support = ukinfo->uk_attrs->hw_rev >= IRDMA_GEN_2; in irdma_uk_calc_depth_shift_sq()
1375 irdma_get_wqe_shift(ukinfo->uk_attrs, in irdma_uk_calc_depth_shift_sq()
1379 status = irdma_get_sqdepth(ukinfo->uk_attrs, ukinfo->sq_size, in irdma_uk_calc_depth_shift_sq()
1396 irdma_get_wqe_shift(ukinfo->uk_attrs, ukinfo->max_rq_frag_cnt, 0, in irdma_uk_calc_depth_shift_rq()
1399 if (ukinfo->uk_attrs->hw_rev == IRDMA_GEN_1) { in irdma_uk_calc_depth_shift_rq()
1404 status = irdma_get_rqdepth(ukinfo->uk_attrs, ukinfo->rq_size, in irdma_uk_calc_depth_shift_rq()
1425 qp->uk_attrs = info->uk_attrs; in irdma_uk_qp_init()
1426 if (info->max_sq_frag_cnt > qp->uk_attrs->max_hw_wq_frags || in irdma_uk_qp_init()
1427 info->max_rq_frag_cnt > qp->uk_attrs->max_hw_wq_frags) in irdma_uk_qp_init()
1460 if (qp->uk_attrs->hw_rev == IRDMA_GEN_1) in irdma_uk_qp_init()