Home
last modified time | relevance | path

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

12

/Linux-v5.4/arch/x86/events/intel/
Dp4.c27 char cntr[2][P4_CNTR_LIMIT]; /* counter index (offset), -1 on abscence */ member
84 .cntr = { {4, 5, -1}, {6, 7, -1} },
91 .cntr = { {0, -1, -1}, {2, -1, -1} },
100 .cntr = { {0, -1, -1}, {2, -1, -1} },
108 .cntr = { {8, 9, -1}, {10, 11, -1} },
116 .cntr = { {8, 9, -1}, {10, 11, -1} },
123 .cntr = { {8, 9, -1}, {10, 11, -1} },
130 .cntr = { {8, 9, -1}, {10, 11, -1} },
140 .cntr = { {0, -1, -1}, {2, -1, -1} },
149 .cntr = { {0, -1, -1}, {2, -1, -1} },
[all …]
/Linux-v5.4/arch/mips/sibyte/common/
Dbus_watcher.c155 unsigned long cntr; in sibyte_bw_int() local
176 stats->l2_err = cntr = csr_in32(IOADDR(A_BUS_L2_ERRORS)); in sibyte_bw_int()
177 stats->l2_cor_d += G_SCD_L2ECC_CORR_D(cntr); in sibyte_bw_int()
178 stats->l2_bad_d += G_SCD_L2ECC_BAD_D(cntr); in sibyte_bw_int()
179 stats->l2_cor_t += G_SCD_L2ECC_CORR_T(cntr); in sibyte_bw_int()
180 stats->l2_bad_t += G_SCD_L2ECC_BAD_T(cntr); in sibyte_bw_int()
183 stats->memio_err = cntr = csr_in32(IOADDR(A_BUS_MEM_IO_ERRORS)); in sibyte_bw_int()
184 stats->mem_cor_d += G_SCD_MEM_ECC_CORR(cntr); in sibyte_bw_int()
185 stats->mem_bad_d += G_SCD_MEM_ECC_BAD(cntr); in sibyte_bw_int()
186 stats->bus_error += G_SCD_MEM_BUSERR(cntr); in sibyte_bw_int()
/Linux-v5.4/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc.c1219 u16 pcifunc, int cntr) in npc_mcam_verify_counter() argument
1224 if (cntr >= mcam->counters.max) in npc_mcam_verify_counter()
1227 if (pcifunc != mcam->cntr2pfvf_map[cntr]) in npc_mcam_verify_counter()
1234 int blkaddr, u16 entry, u16 cntr) in npc_map_mcam_entry_and_cntr() argument
1240 mcam->entry2cntr_map[entry] = cntr; in npc_map_mcam_entry_and_cntr()
1241 mcam->cntr_refcnt[cntr]++; in npc_map_mcam_entry_and_cntr()
1245 BIT_ULL(9) | cntr); in npc_map_mcam_entry_and_cntr()
1250 int blkaddr, u16 entry, u16 cntr) in npc_unmap_mcam_entry_and_cntr() argument
1257 mcam->cntr_refcnt[cntr]--; in npc_unmap_mcam_entry_and_cntr()
1298 u16 index, cntr; in npc_mcam_free_all_entries() local
[all …]
Dmbox.h702 u16 cntr; /* Counter for this MCAM entry */ member
736 u16 cntr; /* Counter allocated or start index if contiguous. member
745 u16 cntr; /* Free a counter or clear/fetch it's stats */ member
755 u16 cntr; member
773 u16 cntr; member
/Linux-v5.4/arch/x86/events/amd/
Diommu.c159 u32 shift, bank, cntr; in get_next_avail_iommu_bnk_cntr() local
166 for (cntr = 0; cntr < max_cntrs; cntr++) { in get_next_avail_iommu_bnk_cntr()
167 shift = bank + (bank*3) + cntr; in get_next_avail_iommu_bnk_cntr()
173 event->hw.iommu_cntr = cntr; in get_next_avail_iommu_bnk_cntr()
186 u8 bank, u8 cntr) in clear_avail_iommu_bnk_cntr() argument
195 if ((bank > max_banks) || (cntr > max_cntrs)) in clear_avail_iommu_bnk_cntr()
198 shift = bank + cntr + (bank*3); in clear_avail_iommu_bnk_cntr()
243 u8 cntr = hwc->iommu_cntr; in perf_iommu_enable_event() local
247 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_COUNTER_SRC_REG, &reg); in perf_iommu_enable_event()
253 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_DEVID_MATCH_REG, &reg); in perf_iommu_enable_event()
[all …]
Diommu.h35 extern int amd_iommu_pc_set_reg(struct amd_iommu *iommu, u8 bank, u8 cntr,
38 extern int amd_iommu_pc_get_reg(struct amd_iommu *iommu, u8 bank, u8 cntr,
/Linux-v5.4/drivers/scsi/
Da2091.c48 unsigned short cntr = CNTR_PDMD | CNTR_INTEN; in dma_setup() local
84 cntr |= CNTR_DDIR; in dma_setup()
89 regs->CNTR = cntr; in dma_setup()
116 unsigned short cntr = CNTR_PDMD; in dma_stop() local
119 cntr |= CNTR_DDIR; in dma_stop()
122 regs->CNTR = cntr; in dma_stop()
Da3000.c52 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()
118 unsigned short cntr = CNTR_PDMD; in dma_stop() local
121 cntr |= CNTR_DDIR; in dma_stop()
123 regs->CNTR = cntr; in dma_stop()
Dgvp11.c57 unsigned short cntr = GVP11_DMAC_INT_ENABLE; in dma_setup() local
120 cntr |= GVP11_DMAC_DIR_WRITE; in dma_setup()
123 regs->CNTR = cntr; in dma_setup()
/Linux-v5.4/drivers/gpu/drm/gma500/
Dmdfld_device.c203 pipe->cntr = PSB_RVDC32(map->cntr); in mdfld_save_display_registers()
347 PSB_WVDC32(pipe->cntr & ~DISPLAY_PLANE_ENABLE, map->cntr); in mdfld_restore_display_registers()
365 PSB_WVDC32(pipe->cntr, map->cntr); in mdfld_restore_display_registers()
441 .cntr = DSPACNTR,
463 .cntr = DSPBCNTR,
485 .cntr = DSPCCNTR,
Dmdfld_intel_display.c193 dspcntr = REG_READ(map->cntr); in mdfld__intel_pipe_set_base()
211 REG_WRITE(map->cntr, dspcntr); in mdfld__intel_pipe_set_base()
243 temp = REG_READ(map->cntr); in mdfld_disable_crtc()
245 REG_WRITE(map->cntr, in mdfld_disable_crtc()
355 temp = REG_READ(map->cntr); in mdfld_crtc_dpms()
357 REG_WRITE(map->cntr, in mdfld_crtc_dpms()
382 temp = REG_READ(map->cntr); in mdfld_crtc_dpms()
383 REG_WRITE(map->cntr, in mdfld_crtc_dpms()
398 temp = REG_READ(map->cntr); in mdfld_crtc_dpms()
399 REG_WRITE(map->cntr, in mdfld_crtc_dpms()
[all …]
Doaktrail_crtc.c266 temp = REG_READ_WITH_AUX(map->cntr, i); in oaktrail_crtc_dpms()
268 REG_WRITE_WITH_AUX(map->cntr, in oaktrail_crtc_dpms()
292 temp = REG_READ_WITH_AUX(map->cntr, i); in oaktrail_crtc_dpms()
294 REG_WRITE_WITH_AUX(map->cntr, in oaktrail_crtc_dpms()
485 dspcntr = REG_READ(map->cntr); in oaktrail_crtc_mode_set()
577 REG_WRITE_WITH_AUX(map->cntr, dspcntr, i); in oaktrail_crtc_mode_set()
614 dspcntr = REG_READ(map->cntr); in oaktrail_pipe_set_base()
636 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()
279 temp = REG_READ(map->cntr); in gma_crtc_dpms()
281 REG_WRITE(map->cntr, in gma_crtc_dpms()
539 crtc_state->saveDSPCNTR = REG_READ(map->cntr); in gma_crtc_save()
616 REG_WRITE(map->cntr, crtc_state->saveDSPCNTR); in gma_crtc_restore()
Doaktrail_device.c210 p->cntr = PSB_RVDC32(DSPACNTR); in oaktrail_save_display_registers()
345 PSB_WVDC32(p->cntr, DSPACNTR); in oaktrail_restore_display_registers()
457 .cntr = DSPACNTR,
481 .cntr = DSPBCNTR,
Dpsb_device.c254 .cntr = DSPACNTR,
278 .cntr = DSPBCNTR,
/Linux-v5.4/drivers/media/usb/gspca/gl860/
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()
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-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()
/Linux-v5.4/drivers/infiniband/hw/qib/
Dqib_sysfs.c461 static u64 get_all_cpu_total(u64 __percpu *cntr) in get_all_cpu_total() argument
467 counter += *per_cpu_ptr(cntr, cpu); in get_all_cpu_total()
471 #define def_write_per_cpu(cntr) \ argument
472 static void write_per_cpu_##cntr(struct qib_pportdata *ppd, u32 data) \
478 qibp->rvp.z_##cntr = get_all_cpu_total(qibp->rvp.cntr); \
487 #define READ_PER_CPU_CNTR(cntr) (get_all_cpu_total(qibp->rvp.cntr) - \ in def_write_per_cpu() argument
488 qibp->rvp.z_##cntr) in def_write_per_cpu()
Dqib_iba6120.c1653 u32 cntr = dd->cspec->lli_counter; in qib_6120intr() local
1655 cntr += crcs; in qib_6120intr()
1656 if (cntr) { in qib_6120intr()
1657 if (cntr > dd->cspec->lli_thresh) { in qib_6120intr()
1661 dd->cspec->lli_counter += cntr; in qib_6120intr()
2519 u64 *cntr = dd->cspec->cntrs; in qib_read_6120cntrs() local
2523 if (!cntr || pos >= ret) { in qib_read_6120cntrs()
2532 *cntrp = cntr; in qib_read_6120cntrs()
2534 *cntr++ = read_6120_creg32(dd, cntr6120indices[i]); in qib_read_6120cntrs()
2552 u64 *cntr = dd->cspec->portcntrs; in qib_read_6120portcntrs() local
[all …]
/Linux-v5.4/drivers/pwm/
Dpwm-rockchip.c43 unsigned long cntr; member
231 .cntr = 0x00,
244 .cntr = 0x00,
258 .cntr = 0x0c,
272 .cntr = 0x00,
/Linux-v5.4/drivers/usb/class/
Dcdc-wdm.c480 int rv, cntr; in wdm_read() local
489 cntr = READ_ONCE(desc->length); in wdm_read()
490 if (cntr == 0) { in wdm_read()
555 cntr = desc->length; in wdm_read()
559 if (cntr > count) in wdm_read()
560 cntr = count; in wdm_read()
561 rv = copy_to_user(buffer, desc->ubuf, cntr); in wdm_read()
569 for (i = 0; i < desc->length - cntr; i++) in wdm_read()
570 desc->ubuf[i] = desc->ubuf[i + cntr]; in wdm_read()
572 desc->length -= cntr; in wdm_read()
[all …]
/Linux-v5.4/drivers/infiniband/hw/hfi1/
Daffinity.c288 u16 cntr; in per_cpu_affinity_get() local
310 cntr = *per_cpu_ptr(comp_vect_affinity, curr_cpu); in per_cpu_affinity_get()
312 if (cntr < prev_cntr) { in per_cpu_affinity_get()
314 prev_cntr = cntr; in per_cpu_affinity_get()
329 u16 cntr; in per_cpu_affinity_put_max() local
344 cntr = *per_cpu_ptr(comp_vect_affinity, curr_cpu); in per_cpu_affinity_put_max()
346 if (cntr > prev_cntr) { in per_cpu_affinity_put_max()
348 prev_cntr = cntr; in per_cpu_affinity_put_max()
/Linux-v5.4/scripts/
Dmarkup_oops.pl97 my ($line, $cntr) = @_;
122 if ($cntr == 0) {
/Linux-v5.4/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()

12