Lines Matching refs:uk_attrs
39 props->max_send_sge = hw_attrs->uk_attrs.max_hw_wq_frags; in irdma_query_device()
40 props->max_recv_sge = hw_attrs->uk_attrs.max_hw_wq_frags; in irdma_query_device()
46 props->max_sge_rd = hw_attrs->uk_attrs.max_hw_read_sges; in irdma_query_device()
60 if (hw_attrs->uk_attrs.hw_rev >= IRDMA_GEN_2) in irdma_query_device()
309 struct irdma_uk_attrs *uk_attrs; in irdma_alloc_ucontext() local
324 uk_attrs = &iwdev->rf->sc_dev.hw_attrs.uk_attrs; in irdma_alloc_ucontext()
327 if (uk_attrs->hw_rev != IRDMA_GEN_1) in irdma_alloc_ucontext()
349 uresp.feature_flags = uk_attrs->feature_flags; in irdma_alloc_ucontext()
350 uresp.max_hw_wq_frags = uk_attrs->max_hw_wq_frags; in irdma_alloc_ucontext()
351 uresp.max_hw_read_sges = uk_attrs->max_hw_read_sges; in irdma_alloc_ucontext()
352 uresp.max_hw_inline = uk_attrs->max_hw_inline; in irdma_alloc_ucontext()
353 uresp.max_hw_rq_quanta = uk_attrs->max_hw_rq_quanta; in irdma_alloc_ucontext()
354 uresp.max_hw_wq_quanta = uk_attrs->max_hw_wq_quanta; in irdma_alloc_ucontext()
355 uresp.max_hw_sq_chunk = uk_attrs->max_hw_sq_chunk; in irdma_alloc_ucontext()
356 uresp.max_hw_cq_size = uk_attrs->max_hw_cq_size; in irdma_alloc_ucontext()
357 uresp.min_hw_cq_size = uk_attrs->min_hw_cq_size; in irdma_alloc_ucontext()
358 uresp.hw_rev = uk_attrs->hw_rev; in irdma_alloc_ucontext()
615 struct irdma_uk_attrs *uk_attrs = &iwdev->rf->sc_dev.hw_attrs.uk_attrs; in irdma_setup_kmode_qp() local
617 irdma_get_wqe_shift(uk_attrs, in irdma_setup_kmode_qp()
618 uk_attrs->hw_rev >= IRDMA_GEN_2 ? ukinfo->max_sq_frag_cnt + 1 : in irdma_setup_kmode_qp()
621 status = irdma_get_sqdepth(uk_attrs, ukinfo->sq_size, sqshift, in irdma_setup_kmode_qp()
626 if (uk_attrs->hw_rev == IRDMA_GEN_1) in irdma_setup_kmode_qp()
629 irdma_get_wqe_shift(uk_attrs, ukinfo->max_rq_frag_cnt, 0, in irdma_setup_kmode_qp()
632 status = irdma_get_rqdepth(uk_attrs, ukinfo->rq_size, rqshift, in irdma_setup_kmode_qp()
767 if (dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) in irdma_iw_fill_and_set_qpctx_info()
786 struct irdma_uk_attrs *uk_attrs = &dev->hw_attrs.uk_attrs; in irdma_validate_qp_attrs() local
791 if (init_attr->cap.max_inline_data > uk_attrs->max_hw_inline || in irdma_validate_qp_attrs()
792 init_attr->cap.max_send_sge > uk_attrs->max_hw_wq_frags || in irdma_validate_qp_attrs()
793 init_attr->cap.max_recv_sge > uk_attrs->max_hw_wq_frags) in irdma_validate_qp_attrs()
842 struct irdma_uk_attrs *uk_attrs = &dev->hw_attrs.uk_attrs; in irdma_create_qp() local
859 init_info.qp_uk_init_info.uk_attrs = uk_attrs; in irdma_create_qp()
968 if (dev->hw_attrs.uk_attrs.hw_rev > IRDMA_GEN_1) in irdma_create_qp()
1372 dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) { in irdma_modify_qp_roce()
1454 if (udata && udata->outlen && dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) { in irdma_modify_qp_roce()
1547 dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) { in irdma_modify_qp()
1700 dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) { in irdma_modify_qp()
1853 if (!(rf->sc_dev.hw_attrs.uk_attrs.feature_flags & in irdma_resize_cq()
1865 if (rf->sc_dev.hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) in irdma_resize_cq()
2009 err_code = cq_validate_flags(attr->flags, dev->hw_attrs.uk_attrs.hw_rev); in irdma_create_cq()
2069 if (rf->sc_dev.hw_attrs.uk_attrs.feature_flags & in irdma_create_cq()
2105 if (dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) in irdma_create_cq()
2135 if (dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) in irdma_create_cq()
2879 if (iwdev->rf->sc_dev.hw_attrs.uk_attrs.feature_flags & IRDMA_FEATURE_CQ_RESIZE) in irdma_reg_user_mr()
3230 dev->hw_attrs.uk_attrs.max_hw_read_sges) { in irdma_post_send()