Lines Matching refs:hw_attrs
86 if (vsi->dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) in irdma_set_qos_info()
382 info->pd->dev->hw_attrs.uk_attrs.max_hw_wq_frags || in irdma_sc_qp_init()
384 info->pd->dev->hw_attrs.uk_attrs.max_hw_wq_frags) in irdma_sc_qp_init()
456 if (qp->qp_uk.qp_id < cqp->dev->hw_attrs.min_hw_qp_id || in irdma_sc_qp_create()
908 if (dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) in irdma_sc_qp_setctx()
937 if (dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) in irdma_sc_qp_setctx()
978 if (dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) { in irdma_sc_qp_setctx()
1434 if (qp->dev->hw_attrs.uk_attrs.feature_flags & IRDMA_FEATURE_RTS_AE) in irdma_sc_send_lsmm()
1484 if (qp->dev->hw_attrs.uk_attrs.feature_flags & IRDMA_FEATURE_RTS_AE) in irdma_sc_send_rtt()
1897 if (dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) { in irdma_get_stats_idx()
1932 for (i = 0; i < dev->hw_attrs.max_stat_idx; i++) { in irdma_hw_stats_init_gen1()
1982 if (vsi->dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) in irdma_vsi_stats_init()
1998 if (dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2) { in irdma_vsi_stats_free()
2006 stats_idx < vsi->dev->hw_attrs.max_stat_inst) in irdma_vsi_stats_free()
2377 info->push_idx >= cqp->dev->hw_attrs.max_hw_device_pages) in irdma_sc_manage_push_page()
2767 udelay(cqp->dev->hw_attrs.max_sleep_count); in irdma_cqp_poll_registers()
2854 if (dev->hw_attrs.uk_attrs.hw_rev != IRDMA_GEN_1) { in irdma_sc_parse_fpm_commit_buf()
2987 if (dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) in irdma_sc_parse_fpm_query_buf()
3153 hw_rev = cqp->dev->hw_attrs.uk_attrs.hw_rev; in irdma_sc_cqp_create()
3214 if (cnt++ > cqp->dev->hw_attrs.max_done_count) { in irdma_sc_cqp_create()
3218 udelay(cqp->dev->hw_attrs.max_sleep_count); in irdma_sc_cqp_create()
3299 if (cnt++ > cqp->dev->hw_attrs.max_done_count) { in irdma_sc_cqp_destroy()
3303 udelay(cqp->dev->hw_attrs.max_sleep_count); in irdma_sc_cqp_destroy()
3424 if (cnt++ > 100 * cqp->dev->hw_attrs.max_done_count) in irdma_sc_poll_for_cqp_op_done()
3428 udelay(cqp->dev->hw_attrs.max_sleep_count); in irdma_sc_poll_for_cqp_op_done()
3546 cqp->dev->hw_attrs.max_done_count); in irdma_sc_commit_fpm_val()
3605 cqp->dev->hw_attrs.max_done_count); in irdma_sc_query_fpm_val()
3623 if (info->elem_cnt < info->dev->hw_attrs.min_hw_ceq_size || in irdma_sc_ceq_init()
3624 info->elem_cnt > info->dev->hw_attrs.max_hw_ceq_size) in irdma_sc_ceq_init()
3897 if (info->elem_cnt < info->dev->hw_attrs.min_hw_aeq_size || in irdma_sc_aeq_init()
3898 info->elem_cnt > info->dev->hw_attrs.max_hw_aeq_size) in irdma_sc_aeq_init()
4170 if (info->num_elem < info->dev->hw_attrs.uk_attrs.min_hw_cq_size || in irdma_sc_ccq_init()
4171 info->num_elem > info->dev->hw_attrs.uk_attrs.max_hw_cq_size) in irdma_sc_ccq_init()
4295 cqp->dev->hw_attrs.max_done_count); in irdma_sc_ccq_destroy()
4525 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()
4746 if (dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) { in irdma_q1_cnt()
4747 q1_cnt = roundup_pow_of_two(dev->hw_attrs.max_hw_ird * 2 * qpwanted); in irdma_q1_cnt()
4750 q1_cnt = roundup_pow_of_two(dev->hw_attrs.max_hw_ird * 2 * qpwanted + 512); in irdma_q1_cnt()
4752 q1_cnt = dev->hw_attrs.max_hw_ird * 2 * qpwanted; in irdma_q1_cnt()
4761 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()
4872 if (dev->hw_attrs.uk_attrs.hw_rev == IRDMA_GEN_1) in irdma_cfg_fpm_val()
5324 vsi->dev->hw_attrs.max_stat_idx); in sc_vsi_update_stats()
5346 } while (retrycount++ < dev->hw_attrs.max_pe_ready_count); in irdma_wait_pe_ready()
5352 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()