Lines Matching refs:hw_attrs

359 	    info->pd->dev->hw_attrs.uk_attrs.max_hw_wq_frags ||  in irdma_sc_qp_init()
361 info->pd->dev->hw_attrs.uk_attrs.max_hw_wq_frags) in irdma_sc_qp_init()
433 if (qp->qp_uk.qp_id < cqp->dev->hw_attrs.min_hw_qp_id || in irdma_sc_qp_create()
889 if (dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) in irdma_sc_qp_setctx()
918 if (dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) in irdma_sc_qp_setctx()
959 if (dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) { in irdma_sc_qp_setctx()
1418 if (qp->dev->hw_attrs.uk_attrs.feature_flags & IRDMA_FEATURE_RTS_AE) in irdma_sc_send_lsmm()
1468 if (qp->dev->hw_attrs.uk_attrs.feature_flags & IRDMA_FEATURE_RTS_AE) in irdma_sc_send_rtt()
1856 if (vsi->dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) in irdma_sc_vsi_init()
1863 if (vsi->dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) in irdma_sc_vsi_init()
1896 if (dev->hw_attrs.uk_attrs.hw_rev != IRDMA_GEN_1) { in irdma_get_fcn_id()
1975 if (dev->hw_attrs.uk_attrs.hw_rev != IRDMA_GEN_1) { in irdma_vsi_stats_free()
1983 fcn_id < vsi->dev->hw_attrs.max_stat_inst) in irdma_vsi_stats_free()
2359 info->push_idx >= cqp->dev->hw_attrs.max_hw_device_pages) in irdma_sc_manage_push_page()
2755 udelay(cqp->dev->hw_attrs.max_sleep_count); in irdma_cqp_poll_registers()
2842 if (dev->hw_attrs.uk_attrs.hw_rev != IRDMA_GEN_1) { in irdma_sc_parse_fpm_commit_buf()
2976 if (dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) in irdma_sc_parse_fpm_query_buf()
3144 hw_rev = cqp->dev->hw_attrs.uk_attrs.hw_rev; in irdma_sc_cqp_create()
3205 if (cnt++ > cqp->dev->hw_attrs.max_done_count) { in irdma_sc_cqp_create()
3209 udelay(cqp->dev->hw_attrs.max_sleep_count); in irdma_sc_cqp_create()
3290 if (cnt++ > cqp->dev->hw_attrs.max_done_count) { in irdma_sc_cqp_destroy()
3294 udelay(cqp->dev->hw_attrs.max_sleep_count); in irdma_sc_cqp_destroy()
3412 if (cnt++ > 100 * cqp->dev->hw_attrs.max_done_count) in irdma_sc_poll_for_cqp_op_done()
3416 udelay(cqp->dev->hw_attrs.max_sleep_count); in irdma_sc_poll_for_cqp_op_done()
3536 cqp->dev->hw_attrs.max_done_count); in irdma_sc_commit_fpm_val()
3596 cqp->dev->hw_attrs.max_done_count); in irdma_sc_query_fpm_val()
3614 if (info->elem_cnt < info->dev->hw_attrs.min_hw_ceq_size || in irdma_sc_ceq_init()
3615 info->elem_cnt > info->dev->hw_attrs.max_hw_ceq_size) in irdma_sc_ceq_init()
3890 if (info->elem_cnt < info->dev->hw_attrs.min_hw_aeq_size || in irdma_sc_aeq_init()
3891 info->elem_cnt > info->dev->hw_attrs.max_hw_aeq_size) in irdma_sc_aeq_init()
4163 if (info->num_elem < info->dev->hw_attrs.uk_attrs.min_hw_cq_size || in irdma_sc_ccq_init()
4164 info->num_elem > info->dev->hw_attrs.uk_attrs.max_hw_cq_size) in irdma_sc_ccq_init()
4289 cqp->dev->hw_attrs.max_done_count); in irdma_sc_ccq_destroy()
4524 cqp->dev->hw_attrs.max_done_count); in irdma_update_sds_noccq()
4568 cqp->dev->hw_attrs.max_done_count); in irdma_sc_static_hmc_pages_allocated()
4748 if (dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) { in irdma_q1_cnt()
4749 q1_cnt = roundup_pow_of_two(dev->hw_attrs.max_hw_ird * 2 * qpwanted); in irdma_q1_cnt()
4752 q1_cnt = roundup_pow_of_two(dev->hw_attrs.max_hw_ird * 2 * qpwanted + 512); in irdma_q1_cnt()
4754 q1_cnt = dev->hw_attrs.max_hw_ird * 2 * qpwanted; in irdma_q1_cnt()
4763 hmc_info->hmc_obj[IRDMA_HMC_IW_XF].cnt = roundup_pow_of_two(qpwanted * dev->hw_attrs.max_hw_wqes); in cfg_fpm_value_gen_1()
4874 if (dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) in irdma_cfg_fpm_val()
5345 } while (retrycount++ < dev->hw_attrs.max_pe_ready_count); in irdma_wait_pe_ready()
5351 switch (dev->hw_attrs.uk_attrs.hw_rev) { in irdma_sc_init_hw()
5385 dev->hw_attrs.min_hw_qp_id = IRDMA_MIN_IW_QP_ID; in irdma_sc_dev_init()
5386 dev->hw_attrs.min_hw_aeq_size = IRDMA_MIN_AEQ_ENTRIES; in irdma_sc_dev_init()
5387 dev->hw_attrs.max_hw_aeq_size = IRDMA_MAX_AEQ_ENTRIES; in irdma_sc_dev_init()
5388 dev->hw_attrs.min_hw_ceq_size = IRDMA_MIN_CEQ_ENTRIES; in irdma_sc_dev_init()
5389 dev->hw_attrs.max_hw_ceq_size = IRDMA_MAX_CEQ_ENTRIES; in irdma_sc_dev_init()
5390 dev->hw_attrs.uk_attrs.min_hw_cq_size = IRDMA_MIN_CQ_SIZE; in irdma_sc_dev_init()
5391 dev->hw_attrs.uk_attrs.max_hw_cq_size = IRDMA_MAX_CQ_SIZE; in irdma_sc_dev_init()
5392 dev->hw_attrs.uk_attrs.max_hw_wq_frags = IRDMA_MAX_WQ_FRAGMENT_COUNT; in irdma_sc_dev_init()
5393 dev->hw_attrs.uk_attrs.max_hw_read_sges = IRDMA_MAX_SGE_RD; in irdma_sc_dev_init()
5394 dev->hw_attrs.max_hw_outbound_msg_size = IRDMA_MAX_OUTBOUND_MSG_SIZE; in irdma_sc_dev_init()
5395 dev->hw_attrs.max_mr_size = IRDMA_MAX_MR_SIZE; in irdma_sc_dev_init()
5396 dev->hw_attrs.max_hw_inbound_msg_size = IRDMA_MAX_INBOUND_MSG_SIZE; in irdma_sc_dev_init()
5397 dev->hw_attrs.max_hw_device_pages = IRDMA_MAX_PUSH_PAGE_COUNT; in irdma_sc_dev_init()
5398 dev->hw_attrs.uk_attrs.max_hw_inline = IRDMA_MAX_INLINE_DATA_SIZE; in irdma_sc_dev_init()
5399 dev->hw_attrs.max_hw_wqes = IRDMA_MAX_WQ_ENTRIES; in irdma_sc_dev_init()
5400 dev->hw_attrs.max_qp_wr = IRDMA_MAX_QP_WRS(IRDMA_MAX_QUANTA_PER_WR); in irdma_sc_dev_init()
5402 dev->hw_attrs.uk_attrs.max_hw_rq_quanta = IRDMA_QP_SW_MAX_RQ_QUANTA; in irdma_sc_dev_init()
5403 dev->hw_attrs.uk_attrs.max_hw_wq_quanta = IRDMA_QP_SW_MAX_WQ_QUANTA; in irdma_sc_dev_init()
5404 dev->hw_attrs.max_hw_pds = IRDMA_MAX_PDS; in irdma_sc_dev_init()
5405 dev->hw_attrs.max_hw_ena_vf_count = IRDMA_MAX_PE_ENA_VF_COUNT; in irdma_sc_dev_init()
5407 dev->hw_attrs.max_pe_ready_count = 14; in irdma_sc_dev_init()
5408 dev->hw_attrs.max_done_count = IRDMA_DONE_COUNT; in irdma_sc_dev_init()
5409 dev->hw_attrs.max_sleep_count = IRDMA_SLEEP_COUNT; in irdma_sc_dev_init()
5410 dev->hw_attrs.max_cqp_compl_wait_time_ms = CQP_COMPL_WAIT_TIME_MS; in irdma_sc_dev_init()
5412 dev->hw_attrs.uk_attrs.hw_rev = ver; in irdma_sc_dev_init()