/Linux-v5.4/arch/x86/events/intel/ |
D | p4.c | 27 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/ |
D | bus_watcher.c | 155 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/ |
D | rvu_npc.c | 1219 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 …]
|
D | mbox.h | 702 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/ |
D | iommu.c | 159 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, ®); in perf_iommu_enable_event() 253 amd_iommu_pc_set_reg(iommu, bank, cntr, IOMMU_PC_DEVID_MATCH_REG, ®); in perf_iommu_enable_event() [all …]
|
D | iommu.h | 35 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/ |
D | a2091.c | 48 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()
|
D | a3000.c | 52 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()
|
D | gvp11.c | 57 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/ |
D | mdfld_device.c | 203 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,
|
D | mdfld_intel_display.c | 193 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 …]
|
D | oaktrail_crtc.c | 266 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()
|
D | gma_display.c | 85 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()
|
D | oaktrail_device.c | 210 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,
|
D | psb_device.c | 254 .cntr = DSPACNTR, 278 .cntr = DSPBCNTR,
|
/Linux-v5.4/drivers/media/usb/gspca/gl860/ |
D | gl860-ov2640.c | 343 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()
|
D | gl860-mi1320.c | 343 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()
|
D | gl860-mi2020.c | 629 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/ |
D | qib_sysfs.c | 461 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()
|
D | qib_iba6120.c | 1653 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/ |
D | pwm-rockchip.c | 43 unsigned long cntr; member 231 .cntr = 0x00, 244 .cntr = 0x00, 258 .cntr = 0x0c, 272 .cntr = 0x00,
|
/Linux-v5.4/drivers/usb/class/ |
D | cdc-wdm.c | 480 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/ |
D | affinity.c | 288 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/ |
D | markup_oops.pl | 97 my ($line, $cntr) = @_; 122 if ($cntr == 0) {
|
/Linux-v5.4/drivers/video/fbdev/ |
D | sh7760fb.c | 74 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()
|