Lines Matching refs:uk_attrs

197 	avail_quanta = qp->uk_attrs->max_hw_sq_chunk -  in irdma_qp_get_next_send_wqe()
199 qp->uk_attrs->max_hw_sq_chunk); in irdma_qp_get_next_send_wqe()
227 if (qp->uk_attrs->hw_rev == IRDMA_GEN_1 && quanta == 1 && in irdma_qp_get_next_send_wqe()
332 if (qp->uk_attrs->hw_rev >= IRDMA_GEN_2 && !(frag_cnt & 0x01) && in irdma_uk_rdma_write()
336 if (qp->uk_attrs->hw_rev == IRDMA_GEN_2) in irdma_uk_rdma_write()
418 if (qp->uk_attrs->hw_rev >= IRDMA_GEN_2 && in irdma_uk_rdma_read()
422 if (qp->uk_attrs->hw_rev == IRDMA_GEN_2) in irdma_uk_rdma_read()
513 if (qp->uk_attrs->hw_rev >= IRDMA_GEN_2 && !(frag_cnt & 0x01) && in irdma_uk_send()
517 if (qp->uk_attrs->hw_rev == IRDMA_GEN_2) in irdma_uk_send()
896 if (qp->uk_attrs->hw_rev >= IRDMA_GEN_2 && !(info->num_sges & 0x01) && in irdma_uk_post_receive()
900 if (qp->uk_attrs->hw_rev == IRDMA_GEN_2) in irdma_uk_post_receive()
1277 void irdma_get_wqe_shift(struct irdma_uk_attrs *uk_attrs, u32 sge, in irdma_get_wqe_shift() argument
1281 if (uk_attrs->hw_rev >= IRDMA_GEN_2) { in irdma_get_wqe_shift()
1303 int irdma_get_sqdepth(struct irdma_uk_attrs *uk_attrs, u32 sq_size, u8 shift, in irdma_get_sqdepth() argument
1310 else if (*sqdepth > uk_attrs->max_hw_wq_quanta) in irdma_get_sqdepth()
1323 int irdma_get_rqdepth(struct irdma_uk_attrs *uk_attrs, u32 rq_size, u8 shift, in irdma_get_rqdepth() argument
1330 else if (*rqdepth > uk_attrs->max_hw_rq_quanta) in irdma_get_rqdepth()
1362 (qp->uk_attrs->feature_flags & IRDMA_FEATURE_RTS_AE)) in irdma_setup_connection_wqes()
1387 qp->uk_attrs = info->uk_attrs; in irdma_uk_qp_init()
1388 if (info->max_sq_frag_cnt > qp->uk_attrs->max_hw_wq_frags || in irdma_uk_qp_init()
1389 info->max_rq_frag_cnt > qp->uk_attrs->max_hw_wq_frags) in irdma_uk_qp_init()
1392 irdma_get_wqe_shift(qp->uk_attrs, info->max_rq_frag_cnt, 0, &rqshift); in irdma_uk_qp_init()
1393 if (qp->uk_attrs->hw_rev == IRDMA_GEN_1) { in irdma_uk_qp_init()
1394 irdma_get_wqe_shift(qp->uk_attrs, info->max_sq_frag_cnt, in irdma_uk_qp_init()
1399 irdma_get_wqe_shift(qp->uk_attrs, info->max_sq_frag_cnt + 1, in irdma_uk_qp_init()
1433 if (qp->uk_attrs->hw_rev == IRDMA_GEN_1) in irdma_uk_qp_init()