Home
last modified time | relevance | path

Searched refs:max_cnt (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.12.1/samples/bpf/
Dmap_perf_test_user.c75 static uint32_t max_cnt = 10000; variable
88 for (i = 0; i < max_cnt; i++) in test_hash_prealloc()
91 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_hash_prealloc()
189 for (i = 0; i < max_cnt; i++) { in do_test_lru()
200 max_cnt * 1000000000ll / (time_get_ns() - start_time)); in do_test_lru()
229 for (i = 0; i < max_cnt; i++) in test_percpu_hash_prealloc()
232 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_percpu_hash_prealloc()
241 for (i = 0; i < max_cnt; i++) in test_hash_kmalloc()
244 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_hash_kmalloc()
253 for (i = 0; i < max_cnt; i++) in test_percpu_hash_kmalloc()
[all …]
Dtracex3_user.c79 __u64 max_cnt = 0; in print_hist() local
92 if (value > max_cnt) in print_hist()
93 max_cnt = value; in print_hist()
97 int c = num_colors * cnt[key] / (max_cnt + 1); in print_hist()
/linux-6.12.1/tools/perf/arch/x86/util/
Dmachine.c19 int max_cnt; member
28 if (mi->cnt >= mi->max_cnt) { in add_extra_kernel_map()
32 mi->max_cnt = mi->max_cnt ? mi->max_cnt * 2 : 32; in add_extra_kernel_map()
33 sz = sizeof(struct extra_kernel_map) * mi->max_cnt; in add_extra_kernel_map()
/linux-6.12.1/drivers/net/ethernet/intel/i40e/
Di40e_lan_hmc.c96 full_obj->max_cnt = 0; in i40e_init_lan_hmc()
103 obj->max_cnt = rd32(hw, I40E_GLHMC_LANQMAX); in i40e_init_lan_hmc()
110 if (txq_num > obj->max_cnt) { in i40e_init_lan_hmc()
113 txq_num, obj->max_cnt, ret_code); in i40e_init_lan_hmc()
118 full_obj->max_cnt += obj->max_cnt; in i40e_init_lan_hmc()
123 obj->max_cnt = rd32(hw, I40E_GLHMC_LANQMAX); in i40e_init_lan_hmc()
133 if (rxq_num > obj->max_cnt) { in i40e_init_lan_hmc()
136 rxq_num, obj->max_cnt, ret_code); in i40e_init_lan_hmc()
141 full_obj->max_cnt += obj->max_cnt; in i40e_init_lan_hmc()
146 obj->max_cnt = rd32(hw, I40E_GLHMC_FCOEMAX); in i40e_init_lan_hmc()
[all …]
Di40e_hmc.h24 u32 max_cnt; /* max count available for this hmc func */ member
/linux-6.12.1/drivers/misc/
Dsmpro-errmon.c98 u8 max_cnt; /* Max num of errors */ member
110 .max_cnt = 32
116 .max_cnt = 32
122 .max_cnt = 16
128 .max_cnt = 16
134 .max_cnt = 96
140 .max_cnt = 96
146 .max_cnt = 8
152 .max_cnt = 8
261 if (ret || !err_count || err_count > err_info->max_cnt) in smpro_error_data_read()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dkprobe_multi_test.c553 int err = 0, max_cnt, inc_cnt; in get_addrs() local
571 max_cnt = 65536; in get_addrs()
573 addrs = malloc(max_cnt * sizeof(long)); in get_addrs()
589 if (cnt == max_cnt) { in get_addrs()
590 max_cnt += inc_cnt; in get_addrs()
591 tmp_addrs = realloc(addrs, max_cnt); in get_addrs()
/linux-6.12.1/net/ipv4/
Dtcp_cubic.c216 u32 delta, bic_target, max_cnt; in bictcp_update() local
312 max_cnt = cwnd / delta; in bictcp_update()
313 if (ca->cnt > max_cnt) in bictcp_update()
314 ca->cnt = max_cnt; in bictcp_update()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dbpf_cubic.c274 __u32 delta, bic_target, max_cnt; in bictcp_update() local
373 max_cnt = cwnd / delta; in bictcp_update()
374 if (ca->cnt > max_cnt) in bictcp_update()
375 ca->cnt = max_cnt; in bictcp_update()
/linux-6.12.1/drivers/infiniband/hw/irdma/
Dctrl.c457 qp->qp_uk.qp_id >= cqp->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_QP].max_cnt) in irdma_sc_qp_create()
2526 if (cq->cq_uk.cq_id >= cqp->dev->hmc_info->hmc_obj[IRDMA_HMC_IW_CQ].max_cnt) in irdma_sc_cq_create()
2908 obj_info[rsrc_idx].max_cnt = (u32)temp; in irdma_sc_decode_fpm_query()
2943 obj_info[IRDMA_HMC_IW_QP].max_cnt = (u32)FIELD_GET(IRDMA_QUERY_FPM_MAX_QPS, temp); in irdma_sc_parse_fpm_query_buf()
2948 obj_info[IRDMA_HMC_IW_CQ].max_cnt = (u32)FIELD_GET(IRDMA_QUERY_FPM_MAX_CQS, temp); in irdma_sc_parse_fpm_query_buf()
2956 obj_info[IRDMA_HMC_IW_APBVT_ENTRY].max_cnt = 1; in irdma_sc_parse_fpm_query_buf()
2962 obj_info[IRDMA_HMC_IW_XFFL].max_cnt = (u32)temp; in irdma_sc_parse_fpm_query_buf()
2970 obj_info[IRDMA_HMC_IW_Q1FL].max_cnt = (u32)temp; in irdma_sc_parse_fpm_query_buf()
2980 obj_info[IRDMA_HMC_IW_PBLE].max_cnt = (u32)temp; in irdma_sc_parse_fpm_query_buf()
2994 obj_info[IRDMA_HMC_IW_RRFFL].max_cnt = (u32)temp; in irdma_sc_parse_fpm_query_buf()
[all …]
Dhmc.h53 u32 max_cnt; member
/linux-6.12.1/drivers/net/wan/
Dfsl_ucc_hdlc.h52 __be32 max_cnt; member
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c967 u32 max_cnt; in __stmmac_get_coalesce() local
973 max_cnt = max(rx_cnt, tx_cnt); in __stmmac_get_coalesce()
977 else if (queue >= max_cnt) in __stmmac_get_coalesce()
1021 u32 max_cnt; in __stmmac_set_coalesce() local
1027 max_cnt = max(rx_cnt, tx_cnt); in __stmmac_set_coalesce()
1031 else if (queue >= max_cnt) in __stmmac_set_coalesce()
/linux-6.12.1/net/sched/
Dsch_fq_pie.c389 int max_cnt, i; in fq_pie_timer() local
396 max_cnt = min_t(int, q->flows_cnt - q->flows_cursor, 2048); in fq_pie_timer()
397 for (i = 0; i < max_cnt; i++) { in fq_pie_timer()
/linux-6.12.1/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c723 int max_cnt; in ionic_set_channels() local
746 max_cnt = lif->ionic->ntxqs_per_lif; in ionic_set_channels()
748 if (ch->combined_count > max_cnt) in ionic_set_channels()
763 max_cnt /= 2; in ionic_set_channels()
764 if (ch->rx_count > max_cnt) in ionic_set_channels()
/linux-6.12.1/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c1190 uresp.num_wqe_allocated = qp->sq.max_cnt; in ocrdma_copy_qp_uresp()
1196 uresp.num_rqe_allocated = qp->rq.max_cnt; in ocrdma_copy_qp_uresp()
1254 kcalloc(qp->sq.max_cnt, sizeof(*(qp->wqe_wr_id_tbl)), in ocrdma_alloc_wr_id_tbl()
1259 kcalloc(qp->rq.max_cnt, sizeof(u64), GFP_KERNEL); in ocrdma_alloc_wr_id_tbl()
1485 qp_attr->cap.max_send_wr = qp->sq.max_cnt - 1; in ocrdma_query_qp()
1486 qp_attr->cap.max_recv_wr = qp->rq.max_cnt - 1; in ocrdma_query_qp()
1554 return ((q->max_wqe_idx - q->head) + q->tail) % q->max_cnt; in ocrdma_hwq_free_cnt()
1746 uresp.num_rqe_allocated = srq->rq.max_cnt; in ocrdma_copy_srq_uresp()
1789 srq->rqe_wr_id_tbl = kcalloc(srq->rq.max_cnt, sizeof(u64), in ocrdma_create_srq()
1796 srq->bit_fields_len = (srq->rq.max_cnt / 32) + in ocrdma_create_srq()
[all …]
Docrdma_hw.c2201 qp->sq.max_cnt = max_wqe_allocated; in ocrdma_set_create_qp_sq_cmd()
2223 cmd->max_wqe_rqe |= (ilog2(qp->sq.max_cnt) << in ocrdma_set_create_qp_sq_cmd()
2251 qp->rq.max_cnt = max_rqe_allocated; in ocrdma_set_create_qp_rq_cmd()
2270 cmd->max_wqe_rqe |= (ilog2(qp->rq.max_cnt) << in ocrdma_set_create_qp_rq_cmd()
2354 qp->sq.max_cnt = max_wqe_allocated; in ocrdma_get_create_qp_rsp()
2358 qp->rq.max_cnt = max_rqe_allocated; in ocrdma_get_create_qp_rsp()
2778 srq->rq.max_cnt = max_rqe_allocated; in ocrdma_mbx_create_srq()
2801 srq->rq.max_cnt = max_rqe_allocated; in ocrdma_mbx_create_srq()
Docrdma.h366 u32 max_cnt; member
/linux-6.12.1/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_ucode.c856 int i, j, cnt, max_cnt; in eng_grp_update_masks() local
868 max_cnt = eng_grp->g->avail.max_se_cnt; in eng_grp_update_masks()
872 max_cnt = eng_grp->g->avail.max_ie_cnt; in eng_grp_update_masks()
876 max_cnt = eng_grp->g->avail.max_ae_cnt; in eng_grp_update_masks()
885 WARN_ON(engs->offset + max_cnt > OTX2_CPT_MAX_ENGINES); in eng_grp_update_masks()
887 for (j = engs->offset; j < engs->offset + max_cnt; j++) { in eng_grp_update_masks()
/linux-6.12.1/drivers/media/platform/samsung/exynos-gsc/
Dgsc-m2m.c366 u32 max_cnt; in gsc_m2m_reqbufs() local
368 max_cnt = (reqbufs->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) ? in gsc_m2m_reqbufs()
370 if (reqbufs->count > max_cnt) in gsc_m2m_reqbufs()
/linux-6.12.1/drivers/scsi/lpfc/
Dlpfc_debugfs.c3884 int *len, int max_cnt, int cq_id) in lpfc_idiag_wqs_for_cq() argument
3894 if (*len >= max_cnt) in lpfc_idiag_wqs_for_cq()
3957 int *len, int max_cnt, int eqidx, int eq_id) in lpfc_idiag_cqs_for_eq() argument
3969 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq()
3973 max_cnt, qp->queue_id); in lpfc_idiag_cqs_for_eq()
3985 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq()
3994 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq()
4050 int max_cnt, rc, x, len = 0; in lpfc_idiag_queinfo_read() local
4058 max_cnt = LPFC_QUE_INFO_GET_BUF_SIZE - 256; in lpfc_idiag_queinfo_read()
4088 if (len >= max_cnt) in lpfc_idiag_queinfo_read()
[all …]
/linux-6.12.1/drivers/crypto/marvell/octeontx/
Dotx_cptpf_ucode.c1073 int i, j, cnt, max_cnt; in eng_grp_update_masks() local
1085 max_cnt = eng_grp->g->avail.max_se_cnt; in eng_grp_update_masks()
1089 max_cnt = eng_grp->g->avail.max_ae_cnt; in eng_grp_update_masks()
1098 WARN_ON(engs->offset + max_cnt > OTX_CPT_MAX_ENGINES); in eng_grp_update_masks()
1100 for (j = engs->offset; j < engs->offset + max_cnt; j++) { in eng_grp_update_masks()
/linux-6.12.1/drivers/scsi/qla2xxx/
Dqla_os.c4613 uint16_t size, max_cnt; in qla2x00_set_exlogins_buffer() local
4625 max_cnt = 0; in qla2x00_set_exlogins_buffer()
4626 rval = qla_get_exlogin_status(vha, &size, &max_cnt); in qla2x00_set_exlogins_buffer()
4633 temp = (ql2xexlogins > max_cnt) ? max_cnt : ql2xexlogins; in qla2x00_set_exlogins_buffer()
4642 max_cnt, size, temp); in qla2x00_set_exlogins_buffer()
4686 qla2x00_number_of_exch(scsi_qla_host_t *vha, u32 *ret_cnt, u16 max_cnt) in qla2x00_number_of_exch() argument
4692 if (max_cnt > vha->hw->max_exchg) in qla2x00_number_of_exch()
4693 max_cnt = vha->hw->max_exchg; in qla2x00_number_of_exch()
4696 if (vha->ql2xiniexchg > max_cnt) in qla2x00_number_of_exch()
4697 vha->ql2xiniexchg = max_cnt; in qla2x00_number_of_exch()
[all …]
/linux-6.12.1/arch/x86/events/amd/
Dibs.c275 u64 max_cnt, config; in perf_ibs_init() local
312 max_cnt = config & perf_ibs->cnt_mask; in perf_ibs_init()
314 event->attr.sample_period = max_cnt << 4; in perf_ibs_init()
/linux-6.12.1/tools/lib/bpf/
Dlibbpf_internal.h286 size_t cur_cnt, size_t max_cnt, size_t add_cnt);

12