/drivers/net/ethernet/intel/i40e/ |
D | i40e_lan_hmc.c | 99 full_obj->max_cnt = 0; in i40e_init_lan_hmc() 106 obj->max_cnt = rd32(hw, I40E_GLHMC_LANQMAX); in i40e_init_lan_hmc() 113 if (txq_num > obj->max_cnt) { in i40e_init_lan_hmc() 116 txq_num, obj->max_cnt, ret_code); in i40e_init_lan_hmc() 121 full_obj->max_cnt += obj->max_cnt; in i40e_init_lan_hmc() 126 obj->max_cnt = rd32(hw, I40E_GLHMC_LANQMAX); in i40e_init_lan_hmc() 136 if (rxq_num > obj->max_cnt) { in i40e_init_lan_hmc() 139 rxq_num, obj->max_cnt, ret_code); in i40e_init_lan_hmc() 144 full_obj->max_cnt += obj->max_cnt; in i40e_init_lan_hmc() 149 obj->max_cnt = rd32(hw, I40E_GLHMC_FCOEMAX); in i40e_init_lan_hmc() [all …]
|
D | i40e_hmc.h | 20 u32 max_cnt; /* max count available for this hmc func */ member
|
/drivers/infiniband/hw/irdma/ |
D | ctrl.c | 434 qp->qp_uk.qp_id >= (cqp->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_QP].max_cnt)) in irdma_sc_qp_create() 2560 if (cq->cq_uk.cq_id >= (cqp->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_CQ].max_cnt)) in irdma_sc_cq_create() 2943 obj_info[rsrc_idx].max_cnt = (u32)temp; in irdma_sc_decode_fpm_query() 2979 obj_info[IRDMA_HMC_IW_QP].max_cnt = (u32)FIELD_GET(IRDMA_QUERY_FPM_MAX_QPS, temp); in irdma_sc_parse_fpm_query_buf() 2984 obj_info[IRDMA_HMC_IW_CQ].max_cnt = (u32)FIELD_GET(IRDMA_QUERY_FPM_MAX_CQS, temp); in irdma_sc_parse_fpm_query_buf() 2992 obj_info[IRDMA_HMC_IW_APBVT_ENTRY].max_cnt = 1; in irdma_sc_parse_fpm_query_buf() 2998 obj_info[IRDMA_HMC_IW_XFFL].max_cnt = (u32)temp; in irdma_sc_parse_fpm_query_buf() 3006 obj_info[IRDMA_HMC_IW_Q1FL].max_cnt = (u32)temp; in irdma_sc_parse_fpm_query_buf() 3016 obj_info[IRDMA_HMC_IW_PBLE].max_cnt = (u32)temp; in irdma_sc_parse_fpm_query_buf() 3030 obj_info[IRDMA_HMC_IW_RRFFL].max_cnt = (u32)temp; in irdma_sc_parse_fpm_query_buf() [all …]
|
D | hmc.h | 53 u32 max_cnt; member
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ethtool.c | 856 u32 max_cnt; in __stmmac_get_coalesce() local 862 max_cnt = max(rx_cnt, tx_cnt); in __stmmac_get_coalesce() 866 else if (queue >= max_cnt) in __stmmac_get_coalesce() 910 u32 max_cnt; in __stmmac_set_coalesce() local 916 max_cnt = max(rx_cnt, tx_cnt); in __stmmac_set_coalesce() 920 else if (queue >= max_cnt) in __stmmac_set_coalesce()
|
/drivers/net/ethernet/pensando/ionic/ |
D | ionic_ethtool.c | 619 int max_cnt; in ionic_set_channels() local 637 max_cnt = lif->ionic->ntxqs_per_lif; in ionic_set_channels() 639 if (ch->combined_count > max_cnt) in ionic_set_channels() 654 max_cnt /= 2; in ionic_set_channels() 655 if (ch->rx_count > max_cnt) in ionic_set_channels()
|
/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptpf_ucode.c | 852 int i, j, cnt, max_cnt; in eng_grp_update_masks() local 864 max_cnt = eng_grp->g->avail.max_se_cnt; in eng_grp_update_masks() 868 max_cnt = eng_grp->g->avail.max_ie_cnt; in eng_grp_update_masks() 872 max_cnt = eng_grp->g->avail.max_ae_cnt; in eng_grp_update_masks() 881 WARN_ON(engs->offset + max_cnt > OTX2_CPT_MAX_ENGINES); in eng_grp_update_masks() 883 for (j = engs->offset; j < engs->offset + max_cnt; j++) { in eng_grp_update_masks()
|
/drivers/net/wan/ |
D | fsl_ucc_hdlc.h | 52 __be32 max_cnt; member
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 1187 uresp.num_wqe_allocated = qp->sq.max_cnt; in ocrdma_copy_qp_uresp() 1193 uresp.num_rqe_allocated = qp->rq.max_cnt; in ocrdma_copy_qp_uresp() 1251 kcalloc(qp->sq.max_cnt, sizeof(*(qp->wqe_wr_id_tbl)), in ocrdma_alloc_wr_id_tbl() 1256 kcalloc(qp->rq.max_cnt, sizeof(u64), GFP_KERNEL); in ocrdma_alloc_wr_id_tbl() 1482 qp_attr->cap.max_send_wr = qp->sq.max_cnt - 1; in ocrdma_query_qp() 1483 qp_attr->cap.max_recv_wr = qp->rq.max_cnt - 1; in ocrdma_query_qp() 1551 return ((q->max_wqe_idx - q->head) + q->tail) % q->max_cnt; in ocrdma_hwq_free_cnt() 1745 uresp.num_rqe_allocated = srq->rq.max_cnt; in ocrdma_copy_srq_uresp() 1788 srq->rqe_wr_id_tbl = kcalloc(srq->rq.max_cnt, sizeof(u64), in ocrdma_create_srq() 1795 srq->bit_fields_len = (srq->rq.max_cnt / 32) + in ocrdma_create_srq() [all …]
|
D | ocrdma_hw.c | 2205 qp->sq.max_cnt = max_wqe_allocated; in ocrdma_set_create_qp_sq_cmd() 2227 cmd->max_wqe_rqe |= (ilog2(qp->sq.max_cnt) << in ocrdma_set_create_qp_sq_cmd() 2255 qp->rq.max_cnt = max_rqe_allocated; in ocrdma_set_create_qp_rq_cmd() 2274 cmd->max_wqe_rqe |= (ilog2(qp->rq.max_cnt) << in ocrdma_set_create_qp_rq_cmd() 2358 qp->sq.max_cnt = max_wqe_allocated; in ocrdma_get_create_qp_rsp() 2362 qp->rq.max_cnt = max_rqe_allocated; in ocrdma_get_create_qp_rsp() 2782 srq->rq.max_cnt = max_rqe_allocated; in ocrdma_mbx_create_srq() 2805 srq->rq.max_cnt = max_rqe_allocated; in ocrdma_mbx_create_srq()
|
D | ocrdma.h | 366 u32 max_cnt; member
|
/drivers/media/platform/exynos-gsc/ |
D | gsc-m2m.c | 371 u32 max_cnt; in gsc_m2m_reqbufs() local 373 max_cnt = (reqbufs->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) ? in gsc_m2m_reqbufs() 375 if (reqbufs->count > max_cnt) in gsc_m2m_reqbufs()
|
/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 3882 int *len, int max_cnt, int cq_id) in lpfc_idiag_wqs_for_cq() argument 3892 if (*len >= max_cnt) in lpfc_idiag_wqs_for_cq() 3955 int *len, int max_cnt, int eqidx, int eq_id) in lpfc_idiag_cqs_for_eq() argument 3967 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq() 3971 max_cnt, qp->queue_id); in lpfc_idiag_cqs_for_eq() 3983 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq() 3992 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq() 4048 int max_cnt, rc, x, len = 0; in lpfc_idiag_queinfo_read() local 4056 max_cnt = LPFC_QUE_INFO_GET_BUF_SIZE - 256; in lpfc_idiag_queinfo_read() 4086 if (len >= max_cnt) in lpfc_idiag_queinfo_read() [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_os.c | 4561 uint16_t size, max_cnt; in qla2x00_set_exlogins_buffer() local 4573 max_cnt = 0; in qla2x00_set_exlogins_buffer() 4574 rval = qla_get_exlogin_status(vha, &size, &max_cnt); in qla2x00_set_exlogins_buffer() 4581 temp = (ql2xexlogins > max_cnt) ? max_cnt : ql2xexlogins; in qla2x00_set_exlogins_buffer() 4590 max_cnt, size, temp); in qla2x00_set_exlogins_buffer() 4634 qla2x00_number_of_exch(scsi_qla_host_t *vha, u32 *ret_cnt, u16 max_cnt) in qla2x00_number_of_exch() argument 4640 if (max_cnt > vha->hw->max_exchg) in qla2x00_number_of_exch() 4641 max_cnt = vha->hw->max_exchg; in qla2x00_number_of_exch() 4644 if (vha->ql2xiniexchg > max_cnt) in qla2x00_number_of_exch() 4645 vha->ql2xiniexchg = max_cnt; in qla2x00_number_of_exch() [all …]
|
/drivers/crypto/marvell/octeontx/ |
D | otx_cptpf_ucode.c | 1074 int i, j, cnt, max_cnt; in eng_grp_update_masks() local 1086 max_cnt = eng_grp->g->avail.max_se_cnt; in eng_grp_update_masks() 1090 max_cnt = eng_grp->g->avail.max_ae_cnt; in eng_grp_update_masks() 1099 WARN_ON(engs->offset + max_cnt > OTX_CPT_MAX_ENGINES); in eng_grp_update_masks() 1101 for (j = engs->offset; j < engs->offset + max_cnt; j++) { in eng_grp_update_masks()
|
/drivers/block/rsxx/ |
D | cregs.c | 581 int max_cnt = count; in substrncpy() local 591 return max_cnt - count; in substrncpy()
|