Home
last modified time | relevance | path

Searched refs:counter_val (Results 1 – 14 of 14) sorted by relevance

/linux/arch/riscv/kvm/
H A Dvcpu_pmu.c42 if (!pmc->counter_val) in kvm_pmu_get_sample_period()
45 sample_period = (-pmc->counter_val) & counter_val_mask; in kvm_pmu_get_sample_period()
223 pmc->counter_val = kvpmu->fw_event[fevent_code].value; in pmu_fw_ctr_read_hi()
225 *out_val = pmc->counter_val >> 32; in pmu_fw_ctr_read_hi()
247 pmc->counter_val = kvpmu->fw_event[fevent_code].value; in pmu_ctr_read()
249 pmc->counter_val += perf_event_read_value(pmc->perf_event, &enabled, &running); in pmu_ctr_read()
253 *out_val = pmc->counter_val; in pmu_ctr_read()
319 pmc->counter_val = 0; in kvm_pmu_create_perf_event()
516 pmc->counter_val = ival; in kvm_riscv_vcpu_pmu_ctr_start()
519 pmc->counter_val = kvpmu->sdata->ctr_values[i]; in kvm_riscv_vcpu_pmu_ctr_start()
[all …]
/linux/fs/xfs/
H A Dxfs_stats.c10 static int counter_val(struct xfsstats __percpu *stats, int idx) in counter_val() function
71 counter_val(stats, j)); in xfs_stats_format()
123 0, counter_val(xfsstats.xs_stats, XFSSTAT_END_XQMSTAT), in xqm_proc_show()
124 0, counter_val(xfsstats.xs_stats, XFSSTAT_END_XQMSTAT + 1), in xqm_proc_show()
136 seq_printf(m, " %u", counter_val(xfsstats.xs_stats, j)); in xqmstat_proc_show()
/linux/tools/testing/selftests/kvm/riscv/
H A Dsbi_pmu_test.c140 unsigned long counter_val = 0; in guest_irq_handler() local
155 counter_val = READ_ONCE(snapshot_data->ctr_values[0]); in guest_irq_handler()
157 start_counter(counter_in_use, SBI_PMU_START_FLAG_SET_INIT_VALUE, counter_val); in guest_irq_handler()
219 unsigned long counter_val = 0; in read_counter() local
224 counter_val = pmu_csr_read_num(ctrinfo.csr); in read_counter()
226 counter_val = read_fw_counter(idx, ctrinfo); in read_counter()
228 return counter_val; in read_counter()
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_tl_debugfs.c31 u32 counter_val; in tl_collect_values_u32() local
40 counter_val = regs_hist_buff[counter_offset / sizeof(counter_val)]; in tl_collect_values_u32()
41 arr[i] = counter_val; in tl_collect_values_u32()
55 u64 counter_val; in tl_collect_values_u64() local
64 counter_val = regs_hist_buff[counter_offset / sizeof(counter_val)]; in tl_collect_values_u64()
65 arr[i] = counter_val; in tl_collect_values_u64()
/linux/drivers/scsi/csiostor/
H A Dcsio_wr.c1296 for (i = 0; i < ARRAY_SIZE(s->counter_val); i++) { in csio_closest_thresh()
1297 delta = cnt - s->counter_val[i]; in csio_closest_thresh()
1507 sge->counter_val[0] = THRESHOLD_0_G(ingress_rx_threshold); in csio_wr_get_sge()
1508 sge->counter_val[1] = THRESHOLD_1_G(ingress_rx_threshold); in csio_wr_get_sge()
1509 sge->counter_val[2] = THRESHOLD_2_G(ingress_rx_threshold); in csio_wr_get_sge()
1510 sge->counter_val[3] = THRESHOLD_3_G(ingress_rx_threshold); in csio_wr_get_sge()
1577 sge->counter_val[0] = CSIO_SGE_INT_CNT_VAL_0; in csio_wr_set_sge()
1578 sge->counter_val[1] = CSIO_SGE_INT_CNT_VAL_1; in csio_wr_set_sge()
1579 sge->counter_val[2] = CSIO_SGE_INT_CNT_VAL_2; in csio_wr_set_sge()
1580 sge->counter_val[3] = CSIO_SGE_INT_CNT_VAL_3; in csio_wr_set_sge()
[all …]
H A Dcsio_wr.h434 uint8_t counter_val[CSIO_SGE_NCOUNTERS]; member
/linux/drivers/rtc/
H A Drtc-sun6i.c526 u32 counter_val, counter_val_hms; in sun6i_rtc_setalarm() local
540 counter_val = div_u64(rtc_tm_to_time64(alrm_tm), SECS_PER_DAY); in sun6i_rtc_setalarm()
561 counter_val = time_set - time_now; in sun6i_rtc_setalarm()
570 writel(counter_val, chip->base + SUN6I_ALRM_COUNTER); in sun6i_rtc_setalarm()
/linux/arch/riscv/include/asm/
H A Dkvm_vcpu_pmu.h34 u64 counter_val; member
/linux/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dcxgb4vf_main.c1039 for (i = 0; i < ARRAY_SIZE(s->counter_val); i++) { in closest_thres()
1040 delta = thres - s->counter_val[i]; in closest_thres()
1665 ? adapter->sge.counter_val[rspq->pktcnt_idx] in cxgb4vf_get_coalesce()
2086 adapter->sge.counter_val[rxq[qs].rspq.pktcnt_idx]); in sge_qinfo_show()
2106 adapter->sge.counter_val[evtq->pktcnt_idx]); in sge_qinfo_show()
2117 adapter->sge.counter_val[intrq->pktcnt_idx]); in sge_qinfo_show()
2610 s->counter_val[0] = THRESHOLD_0_G(sge_params->sge_ingress_rx_threshold); in adap_init0()
2611 s->counter_val[1] = THRESHOLD_1_G(sge_params->sge_ingress_rx_threshold); in adap_init0()
2612 s->counter_val[2] = THRESHOLD_2_G(sge_params->sge_ingress_rx_threshold); in adap_init0()
2613 s->counter_val[3] = THRESHOLD_3_G(sge_params->sge_ingress_rx_threshold); in adap_init0()
H A Dadapter.h311 u8 counter_val[SGE_NCOUNTERS]; /* interrupt RX threshold array */ member
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_debugfs.c2714 S3("u", "Intr pktcnt:", s->counter_val[rx[i].rspq.pktcnt_idx]); in sge_qinfo_show()
2773 S3("u", "Intr pktcnt:", s->counter_val[rx[i].rspq.pktcnt_idx]); in sge_qinfo_show()
2828 S3("u", "Intr pktcnt:", s->counter_val[rx[i].rspq.pktcnt_idx]); in sge_qinfo_show()
2951 S3("u", "Intr pktcnt:", s->counter_val[rx[i].rspq.pktcnt_idx]); in sge_qinfo_show()
2981 S3("u", "Intr pktcnt:", s->counter_val[rx[i].rspq.pktcnt_idx]); in sge_qinfo_show()
3001 S3("u", "Intr pktcnt:", s->counter_val[rx[i].rspq.pktcnt_idx]); in sge_qinfo_show()
3027 S3("u", "Intr pktcnt:", s->counter_val[rx[i].rspq.pktcnt_idx]); in sge_qinfo_show()
3053 S3("u", "Intr pktcnt:", s->counter_val[rx[i].rspq.pktcnt_idx]); in sge_qinfo_show()
3087 S3("u", "Intr pktcnt:", s->counter_val[rx[i].rspq.pktcnt_idx]); in sge_qinfo_show()
3132 s->counter_val[evtq->pktcnt_idx]); in sge_qinfo_show()
H A Dcxgb4.h991 u8 counter_val[SGE_NCOUNTERS]; member
H A Dcxgb4_ethtool.c1182 adap->sge.counter_val[rq->pktcnt_idx] : 0; in get_coalesce()
H A Dcxgb4_main.c1219 for (i = 0; i < ARRAY_SIZE(s->counter_val); i++) { in closest_thres()
1220 delta = thres - s->counter_val[i]; in closest_thres()