/kernel/linux/linux-5.10/samples/bpf/ |
D | map_perf_test_user.c | 76 static uint32_t max_cnt = 1000000; variable 89 for (i = 0; i < max_cnt; i++) in test_hash_prealloc() 92 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_hash_prealloc() 187 for (i = 0; i < max_cnt; i++) { in do_test_lru() 198 max_cnt * 1000000000ll / (time_get_ns() - start_time)); in do_test_lru() 227 for (i = 0; i < max_cnt; i++) in test_percpu_hash_prealloc() 230 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_percpu_hash_prealloc() 239 for (i = 0; i < max_cnt; i++) in test_hash_kmalloc() 242 cpu, max_cnt * 1000000000ll / (time_get_ns() - start_time)); in test_hash_kmalloc() 251 for (i = 0; i < max_cnt; i++) in test_percpu_hash_kmalloc() [all …]
|
D | tracex3_user.c | 80 __u64 max_cnt = 0; in print_hist() local 93 if (value > max_cnt) in print_hist() 94 max_cnt = value; in print_hist() 98 int c = num_colors * cnt[key] / (max_cnt + 1); in print_hist()
|
/kernel/linux/linux-5.10/tools/perf/arch/x86/util/ |
D | machine.c | 19 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()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | tcp_cubic.c | 223 u32 delta, bic_target, max_cnt; in bictcp_update() local 319 max_cnt = cwnd / delta; in bictcp_update() 320 if (ca->cnt > max_cnt) in bictcp_update() 321 ca->cnt = max_cnt; in bictcp_update()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | bpf_cubic.c | 275 __u32 delta, bic_target, max_cnt; in bictcp_update() local 374 max_cnt = cwnd / delta; in bictcp_update() 375 if (ca->cnt > max_cnt) in bictcp_update() 376 ca->cnt = max_cnt; in bictcp_update()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/ |
D | ionic_ethtool.c | 593 int max_cnt; in ionic_set_channels() local 608 max_cnt = lif->ionic->ntxqs_per_lif; in ionic_set_channels() 610 if (ch->combined_count > max_cnt) in ionic_set_channels() 625 max_cnt /= 2; in ionic_set_channels() 626 if (ch->rx_count > max_cnt) in ionic_set_channels()
|
/kernel/linux/linux-5.10/drivers/net/wan/ |
D | fsl_ucc_hdlc.h | 52 __be32 max_cnt; member
|
/kernel/linux/linux-5.10/drivers/staging/android/ion/ |
D | ion.c | 403 int ret = -EINVAL, cnt = 0, max_cnt; in ion_query_heaps() local 419 max_cnt = query->cnt; in ion_query_heaps() 433 if (cnt >= max_cnt) in ion_query_heaps()
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | hmdfs_share.c | 85 if (st->item_cnt >= st->max_cnt) { in insert_share_item() 310 sbi->share_table.max_cnt = HMDFS_SHARE_ITEMS_MAX; in hmdfs_init_share_table()
|
D | hmdfs.h | 108 int max_cnt; member
|
/kernel/linux/linux-5.10/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() 1746 uresp.num_rqe_allocated = srq->rq.max_cnt; in ocrdma_copy_srq_uresp() 1786 srq->rqe_wr_id_tbl = kcalloc(srq->rq.max_cnt, sizeof(u64), in ocrdma_create_srq() 1793 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
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
D | i40iw_hmc.h | 90 u32 max_cnt; member
|
D | i40iw_ctrl.c | 198 obj_info[rsrc_idx].max_cnt = (u32)temp; in i40iw_sc_decode_fpm_query() 237 obj_info[I40IW_HMC_IW_QP].max_cnt = (u32)RS_64(temp, I40IW_QUERY_FPM_MAX_QPS); in i40iw_sc_parse_fpm_query_buf() 242 obj_info[I40IW_HMC_IW_CQ].max_cnt = (u32)RS_64(temp, I40IW_QUERY_FPM_MAX_CQS); in i40iw_sc_parse_fpm_query_buf() 250 obj_info[I40IW_HMC_IW_APBVT_ENTRY].max_cnt = 1; in i40iw_sc_parse_fpm_query_buf() 256 obj_info[I40IW_HMC_IW_XFFL].max_cnt = (u32)temp; in i40iw_sc_parse_fpm_query_buf() 265 obj_info[I40IW_HMC_IW_Q1FL].max_cnt = (u32)temp; in i40iw_sc_parse_fpm_query_buf() 274 obj_info[I40IW_HMC_IW_PBLE].max_cnt = (u32)temp; in i40iw_sc_parse_fpm_query_buf() 4021 hmc_info->hmc_obj[i].cnt = hmc_info->hmc_obj[i].max_cnt; in i40iw_config_fpm_values() 4031 qpwanted = min(qp_count, hmc_info->hmc_obj[I40IW_HMC_IW_QP].max_cnt); in i40iw_config_fpm_values() 4033 mrwanted = hmc_info->hmc_obj[I40IW_HMC_IW_MR].max_cnt; in i40iw_config_fpm_values() [all …]
|
/kernel/linux/linux-5.10/arch/x86/events/amd/ |
D | ibs.c | 266 u64 max_cnt, config; in perf_ibs_init() local 295 max_cnt = config & perf_ibs->cnt_mask; in perf_ibs_init() 297 event->attr.sample_period = max_cnt << 4; in perf_ibs_init()
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 3885 int *len, int max_cnt, int cq_id) in lpfc_idiag_wqs_for_cq() argument 3895 if (*len >= max_cnt) in lpfc_idiag_wqs_for_cq() 3958 int *len, int max_cnt, int eqidx, int eq_id) in lpfc_idiag_cqs_for_eq() argument 3970 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq() 3974 max_cnt, qp->queue_id); in lpfc_idiag_cqs_for_eq() 3986 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq() 3995 if (*len >= max_cnt) in lpfc_idiag_cqs_for_eq() 4051 int max_cnt, rc, x, len = 0; in lpfc_idiag_queinfo_read() local 4059 max_cnt = LPFC_QUE_INFO_GET_BUF_SIZE - 256; in lpfc_idiag_queinfo_read() 4089 if (len >= max_cnt) in lpfc_idiag_queinfo_read() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/ |
D | qla_os.c | 4386 uint16_t size, max_cnt; in qla2x00_set_exlogins_buffer() local 4398 max_cnt = 0; in qla2x00_set_exlogins_buffer() 4399 rval = qla_get_exlogin_status(vha, &size, &max_cnt); in qla2x00_set_exlogins_buffer() 4406 temp = (ql2xexlogins > max_cnt) ? max_cnt : ql2xexlogins; in qla2x00_set_exlogins_buffer() 4415 max_cnt, size, temp); in qla2x00_set_exlogins_buffer() 4459 qla2x00_number_of_exch(scsi_qla_host_t *vha, u32 *ret_cnt, u16 max_cnt) in qla2x00_number_of_exch() argument 4465 if (max_cnt > vha->hw->max_exchg) in qla2x00_number_of_exch() 4466 max_cnt = vha->hw->max_exchg; in qla2x00_number_of_exch() 4469 if (vha->ql2xiniexchg > max_cnt) in qla2x00_number_of_exch() 4470 vha->ql2xiniexchg = max_cnt; in qla2x00_number_of_exch() [all …]
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | libbpf_internal.h | 109 size_t cur_cnt, size_t max_cnt, size_t add_cnt);
|
/kernel/linux/linux-5.10/drivers/block/rsxx/ |
D | cregs.c | 581 int max_cnt = count; in substrncpy() local 591 return max_cnt - count; in substrncpy()
|
/kernel/linux/linux-5.10/fs/ubifs/ |
D | find.c | 52 if (heap->cnt < heap->max_cnt) in valuable()
|