Lines Matching refs:sc_count
462 tprof_param_t *param = &tb->tb_softc.sc_count[counter].ctr_param; in tprof_init_percpu_counters_offset()
471 tprof_param_t *param = &tb->tb_softc.sc_count[counter].ctr_param; in tprof_configure_event_cpu()
513 sc->sc_count[c].ctr_bitwidth = in tprof_configure_event()
516 sc_param = &sc->sc_count[c].ctr_param; in tprof_configure_event()
523 sc->sc_count[c].ctr_counter_val = freq / TPROF_HZ; in tprof_configure_event()
524 if (sc->sc_count[c].ctr_counter_val == 0) { in tprof_configure_event()
528 sc->sc_count[c].ctr_counter_val = in tprof_configure_event()
543 sc->sc_count[c].ctr_counter_val = in tprof_configure_event()
544 sc->sc_count[c].ctr_counter_val * inum + in tprof_configure_event()
545 (sc->sc_count[c].ctr_counter_val * dnum >> 32); in tprof_configure_event()
546 if (sc->sc_count[c].ctr_counter_val == 0) in tprof_configure_event()
547 sc->sc_count[c].ctr_counter_val = 1; in tprof_configure_event()
553 __BITS(sc->sc_count[c].ctr_bitwidth - 1, 0)) { in tprof_configure_event()
555 __BITS(sc->sc_count[c].ctr_bitwidth - 1, 0); in tprof_configure_event()
557 sc->sc_count[c].ctr_counter_val = sc_param->p_value2; in tprof_configure_event()
562 sc->sc_count[c].ctr_counter_reset_val = in tprof_configure_event()
563 -sc->sc_count[c].ctr_counter_val; in tprof_configure_event()
564 sc->sc_count[c].ctr_counter_reset_val &= in tprof_configure_event()
565 __BITS(sc->sc_count[c].ctr_bitwidth - 1, 0); in tprof_configure_event()
567 sc->sc_count[c].ctr_counter_val = 0; in tprof_configure_event()
568 sc->sc_count[c].ctr_counter_reset_val = 0; in tprof_configure_event()
575 sc_param->p_value = tb->tb_softc.sc_count[c].ctr_counter_reset_val; in tprof_configure_event()
592 if (sc->sc_count[c].ctr_bitwidth != 64) in tprof_configure_event()
617 ((ctr - sc->sc_count[c].ctr_counter_reset_val) & in tprof_getcounts_cpu()
618 __BITS(sc->sc_count[c].ctr_bitwidth - 1, 0)); in tprof_getcounts_cpu()