Home
last modified time | relevance | path

Searched refs:cntr (Results 1 – 25 of 44) sorted by relevance

12

/drivers/dma/idxd/
Dperfmon.h95 #define FLTCFG_REG(idxd, cntr, flt) \ argument
96 (PERFMON_REG_OFFSET(idxd, IDXD_FLTCFG_OFFSET) + ((cntr) * 32) + ((flt) * 4))
98 #define CNTRCFG_REG(idxd, cntr) \ argument
99 (PERFMON_REG_OFFSET(idxd, IDXD_CNTRCFG_OFFSET) + ((cntr) * 8))
100 #define CNTRDATA_REG(idxd, cntr) \ argument
101 (PERFMON_REG_OFFSET(idxd, IDXD_CNTRDATA_OFFSET) + ((cntr) * 8))
102 #define CNTRCAP_REG(idxd, cntr) \ argument
103 (PERFMON_REG_OFFSET(idxd, IDXD_CNTRCAP_OFFSET) + ((cntr) * 8))
Dperfmon.c234 int cntr = hwc->idx; in perfmon_pmu_read_counter() local
238 return ioread64(CNTRDATA_REG(idxd, cntr)); in perfmon_pmu_read_counter()
329 int cntr; in perfmon_pmu_event_start() local
334 cntr = hwc->idx; in perfmon_pmu_event_start()
350 iowrite32(flt_wq, FLTCFG_REG(idxd, cntr, FLT_WQ)); in perfmon_pmu_event_start()
352 iowrite32(flt_tc, FLTCFG_REG(idxd, cntr, FLT_TC)); in perfmon_pmu_event_start()
354 iowrite32(flt_pg_sz, FLTCFG_REG(idxd, cntr, FLT_PG_SZ)); in perfmon_pmu_event_start()
356 iowrite32(flt_xfer_sz, FLTCFG_REG(idxd, cntr, FLT_XFER_SZ)); in perfmon_pmu_event_start()
358 iowrite32(flt_eng, FLTCFG_REG(idxd, cntr, FLT_ENG)); in perfmon_pmu_event_start()
361 cntrdata = ioread64(CNTRDATA_REG(idxd, cntr)); in perfmon_pmu_event_start()
[all …]
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc.c1802 int cntr; in npc_mcam_rsrcs_init() local
1908 for (cntr = 0; cntr < mcam->counters.max; cntr++) in npc_mcam_rsrcs_init()
1909 mcam->cntr2pfvf_map[cntr] = NPC_MCAM_INVALID_MAP; in npc_mcam_rsrcs_init()
2155 int cntr; in rvu_npc_get_mcam_counter_alloc_info() local
2160 for (cntr = 0; cntr < mcam->counters.max; cntr++) { in rvu_npc_get_mcam_counter_alloc_info()
2161 if (mcam->cntr2pfvf_map[cntr] == pcifunc) { in rvu_npc_get_mcam_counter_alloc_info()
2163 if (mcam->cntr_refcnt[cntr]) in rvu_npc_get_mcam_counter_alloc_info()
2188 u16 pcifunc, int cntr) in npc_mcam_verify_counter() argument
2193 if (cntr >= mcam->counters.max) in npc_mcam_verify_counter()
2196 if (pcifunc != mcam->cntr2pfvf_map[cntr]) in npc_mcam_verify_counter()
[all …]
Drvu_npc_fs.c904 free_req.cntr = rule->cntr; in rvu_mcam_remove_counter_from_rule()
929 rule->cntr = cntr_rsp.cntr; in rvu_mcam_add_counter_to_rule()
931 rsp->counter = rule->cntr; in rvu_mcam_add_counter_to_rule()
1097 rvu_write64(rvu, blkaddr, NPC_AF_MATCH_STATX(rule->cntr), 0x00); in npc_install_flow()
1099 write_req.cntr = rule->cntr; in npc_install_flow()
Dmbox.h1196 u16 cntr; /* Counter for this MCAM entry */ member
1230 u16 cntr; /* Counter allocated or start index if contiguous. member
1239 u16 cntr; /* Free a counter or clear/fetch it's stats */ member
1249 u16 cntr; member
1267 u16 cntr; member
/drivers/scsi/
Da3000.c51 unsigned short cntr = CNTR_PDMD | CNTR_INTEN; in dma_setup() local
82 cntr |= CNTR_DDIR; in dma_setup()
87 regs->CNTR = cntr; in dma_setup()
117 unsigned short cntr = CNTR_PDMD; in dma_stop() local
120 cntr |= CNTR_DDIR; in dma_stop()
122 regs->CNTR = cntr; in dma_stop()
Da2091.c47 unsigned short cntr = CNTR_PDMD | CNTR_INTEN; in dma_setup() local
83 cntr |= CNTR_DDIR; in dma_setup()
88 regs->CNTR = cntr; in dma_setup()
115 unsigned short cntr = CNTR_PDMD; in dma_stop() local
118 cntr |= CNTR_DDIR; in dma_stop()
121 regs->CNTR = cntr; in dma_stop()
Dgvp11.c56 unsigned short cntr = GVP11_DMAC_INT_ENABLE; in dma_setup() local
119 cntr |= GVP11_DMAC_DIR_WRITE; in dma_setup()
122 regs->CNTR = cntr; in dma_setup()
/drivers/media/usb/gspca/gl860/
Dgl860-mi2020.c629 s32 cntr = sd->vcur.contrast; in mi2020_camera_settings() local
734 if (cntr != sd->vold.contrast || gam != sd->vold.gamma) { in mi2020_camera_settings()
735 sd->vold.contrast = cntr; in mi2020_camera_settings()
736 if (cntr < 0 || cntr > sd->vmax.contrast) in mi2020_camera_settings()
737 cntr = 0; in mi2020_camera_settings()
744 if (cntr == 0) in mi2020_camera_settings()
745 cntr = 4; in mi2020_camera_settings()
746 dat_multi4[2] = dat_multi2[2] = cntr * 0x10 + 2 - gam; in mi2020_camera_settings()
Dgl860-mi1320.c343 s32 cntr = sd->vcur.contrast; in mi1320_camera_settings() local
502 if (cntr != sd->vold.contrast) { in mi1320_camera_settings()
503 sd->vold.contrast = cntr; in mi1320_camera_settings()
504 if (cntr < 0 || cntr > sd->vmax.contrast) in mi1320_camera_settings()
505 cntr = 0; in mi1320_camera_settings()
509 ctrl_out(gspca_dev, 0x40, 1, 0xba00 + tbl_cntr1[cntr], 0x0035, in mi1320_camera_settings()
511 ctrl_out(gspca_dev, 0x40, 1, 0xba00 + tbl_cntr2[cntr], 0x00f1, in mi1320_camera_settings()
Dgl860-ov2640.c343 s32 cntr = sd->vcur.contrast; in ov2640_camera_settings() local
383 if (cntr != sd->vold.contrast) { in ov2640_camera_settings()
384 sd->vold.contrast = cntr; in ov2640_camera_settings()
385 if (cntr < 0 || cntr > sd->vmax.contrast) in ov2640_camera_settings()
386 cntr = 0; in ov2640_camera_settings()
390 ctrl_out(gspca_dev, 0x40, 1, 0x6000 + cntr, 0x007d, 0, NULL); in ov2640_camera_settings()
/drivers/gpu/drm/gma500/
Doaktrail_crtc.c268 temp = REG_READ_WITH_AUX(map->cntr, i); in oaktrail_crtc_dpms()
270 REG_WRITE_WITH_AUX(map->cntr, in oaktrail_crtc_dpms()
294 temp = REG_READ_WITH_AUX(map->cntr, i); in oaktrail_crtc_dpms()
296 REG_WRITE_WITH_AUX(map->cntr, in oaktrail_crtc_dpms()
487 dspcntr = REG_READ(map->cntr); in oaktrail_crtc_mode_set()
579 REG_WRITE_WITH_AUX(map->cntr, dspcntr, i); in oaktrail_crtc_mode_set()
616 dspcntr = REG_READ(map->cntr); in oaktrail_pipe_set_base()
638 REG_WRITE(map->cntr, dspcntr); in oaktrail_pipe_set_base()
Dgma_display.c85 dspcntr = REG_READ(map->cntr); in gma_pipe_set_base()
107 REG_WRITE(map->cntr, dspcntr); in gma_pipe_set_base()
232 temp = REG_READ(map->cntr); in gma_crtc_dpms()
234 REG_WRITE(map->cntr, in gma_crtc_dpms()
281 temp = REG_READ(map->cntr); in gma_crtc_dpms()
283 REG_WRITE(map->cntr, in gma_crtc_dpms()
590 crtc_state->saveDSPCNTR = REG_READ(map->cntr); in gma_crtc_save()
667 REG_WRITE(map->cntr, crtc_state->saveDSPCNTR); in gma_crtc_restore()
Doaktrail_device.c207 p->cntr = PSB_RVDC32(DSPACNTR); in oaktrail_save_display_registers()
342 PSB_WVDC32(p->cntr, DSPACNTR); in oaktrail_restore_display_registers()
454 .cntr = DSPACNTR,
478 .cntr = DSPBCNTR,
Dpsb_device.c254 .cntr = DSPACNTR,
278 .cntr = DSPBCNTR,
/drivers/misc/habanalabs/common/
Dcommand_submission.c769 struct hl_cs_counters_atomic *cntr; in allocate_cs() local
775 cntr = &hdev->aggregated_cs_counters; in allocate_cs()
783 atomic64_inc(&cntr->out_of_mem_drop_cnt); in allocate_cs()
812 atomic64_inc(&cntr->out_of_mem_drop_cnt); in allocate_cs()
825 atomic64_inc(&cntr->out_of_mem_drop_cnt); in allocate_cs()
857 atomic64_inc(&cntr->max_cs_in_flight_drop_cnt); in allocate_cs()
1259 struct hl_cs_counters_atomic *cntr; in cs_ioctl_default() local
1268 cntr = &hdev->aggregated_cs_counters; in cs_ioctl_default()
1314 atomic64_inc(&cntr->validation_drop_cnt); in cs_ioctl_default()
1323 atomic64_inc(&cntr->validation_drop_cnt); in cs_ioctl_default()
[all …]
Dhabanalabs_ioctl.c335 struct hl_cs_counters_atomic *cntr; in cs_counters_info() local
338 cntr = &hdev->aggregated_cs_counters; in cs_counters_info()
344 atomic64_read(&cntr->out_of_mem_drop_cnt); in cs_counters_info()
346 atomic64_read(&cntr->parsing_drop_cnt); in cs_counters_info()
348 atomic64_read(&cntr->queue_full_drop_cnt); in cs_counters_info()
350 atomic64_read(&cntr->device_in_reset_drop_cnt); in cs_counters_info()
352 atomic64_read(&cntr->max_cs_in_flight_drop_cnt); in cs_counters_info()
354 atomic64_read(&cntr->validation_drop_cnt); in cs_counters_info()
Dhw_queue.c624 struct hl_cs_counters_atomic *cntr; in hl_hw_queue_schedule_cs() local
633 cntr = &hdev->aggregated_cs_counters; in hl_hw_queue_schedule_cs()
638 atomic64_inc(&cntr->device_in_reset_drop_cnt); in hl_hw_queue_schedule_cs()
676 atomic64_inc(&cntr->queue_full_drop_cnt); in hl_hw_queue_schedule_cs()
/drivers/pwm/
Dpwm-rockchip.c43 unsigned long cntr; member
236 .cntr = 0x00,
249 .cntr = 0x00,
263 .cntr = 0x0c,
277 .cntr = 0x00,
/drivers/gpu/drm/i915/gt/
Dselftest_rps.c534 static u64 __measure_frequency(u32 *cntr, int duration_ms) in __measure_frequency() argument
539 dc = READ_ONCE(*cntr); in __measure_frequency()
541 dc = READ_ONCE(*cntr) - dc; in __measure_frequency()
547 static u64 measure_frequency_at(struct intel_rps *rps, u32 *cntr, int *freq) in measure_frequency_at() argument
554 x[i] = __measure_frequency(cntr, 2); in measure_frequency_at()
630 u32 *cancel, *cntr; in live_rps_frequency_cs() local
640 &cancel, &cntr); in live_rps_frequency_cs()
771 u32 *cancel, *cntr; in live_rps_frequency_srm() local
781 &cancel, &cntr); in live_rps_frequency_srm()
805 if (wait_for(READ_ONCE(*cntr), 10)) { in live_rps_frequency_srm()
[all …]
/drivers/usb/class/
Dcdc-wdm.c522 int rv, cntr; in wdm_read() local
531 cntr = READ_ONCE(desc->length); in wdm_read()
532 if (cntr == 0) { in wdm_read()
597 cntr = desc->length; in wdm_read()
601 if (cntr > count) in wdm_read()
602 cntr = count; in wdm_read()
603 rv = copy_to_user(buffer, desc->ubuf, cntr); in wdm_read()
611 for (i = 0; i < desc->length - cntr; i++) in wdm_read()
612 desc->ubuf[i] = desc->ubuf[i + cntr]; in wdm_read()
614 desc->length -= cntr; in wdm_read()
[all …]
/drivers/infiniband/hw/hfi1/
Daffinity.c250 u16 cntr; in per_cpu_affinity_get() local
272 cntr = *per_cpu_ptr(comp_vect_affinity, curr_cpu); in per_cpu_affinity_get()
274 if (cntr < prev_cntr) { in per_cpu_affinity_get()
276 prev_cntr = cntr; in per_cpu_affinity_get()
291 u16 cntr; in per_cpu_affinity_put_max() local
306 cntr = *per_cpu_ptr(comp_vect_affinity, curr_cpu); in per_cpu_affinity_put_max()
308 if (cntr > prev_cntr) { in per_cpu_affinity_put_max()
310 prev_cntr = cntr; in per_cpu_affinity_put_max()
/drivers/iommu/amd/
Damd_iommu.h47 extern int amd_iommu_pc_get_reg(struct amd_iommu *iommu, u8 bank, u8 cntr,
49 extern int amd_iommu_pc_set_reg(struct amd_iommu *iommu, u8 bank, u8 cntr,
/drivers/video/fbdev/
Dsh7760fb.c74 unsigned short cntr = ioread16(par->base + LDCNTR); in sh7760fb_blank() local
80 cntr = LDCNTR_DON2 | LDCNTR_DON; in sh7760fb_blank()
84 cntr = LDCNTR_DON2; in sh7760fb_blank()
92 iowrite16(cntr, par->base + LDCNTR); in sh7760fb_blank()
/drivers/infiniband/hw/qib/
Dqib_iba6120.c1652 u32 cntr = dd->cspec->lli_counter; in qib_6120intr() local
1654 cntr += crcs; in qib_6120intr()
1655 if (cntr) { in qib_6120intr()
1656 if (cntr > dd->cspec->lli_thresh) { in qib_6120intr()
1660 dd->cspec->lli_counter += cntr; in qib_6120intr()
2518 u64 *cntr = dd->cspec->cntrs; in qib_read_6120cntrs() local
2522 if (!cntr || pos >= ret) { in qib_read_6120cntrs()
2531 *cntrp = cntr; in qib_read_6120cntrs()
2533 *cntr++ = read_6120_creg32(dd, cntr6120indices[i]); in qib_read_6120cntrs()
2551 u64 *cntr = dd->cspec->portcntrs; in qib_read_6120portcntrs() local
[all …]

12