• Home
  • Raw
  • Download

Lines Matching refs:si

322 	struct hws_qsi_info_block si;  in sfb_set_limits()  local
327 memset(&si, 0, sizeof(si)); in sfb_set_limits()
328 if (!qsi(&si)) in sfb_set_limits()
329 CPUM_SF_SDB_DIAG_FACTOR = DIV_ROUND_UP(si.dsdes, si.bsdes); in sfb_set_limits()
621 static unsigned long hw_limit_rate(const struct hws_qsi_info_block *si, in hw_limit_rate() argument
625 si->min_sampl_rate, si->max_sampl_rate); in hw_limit_rate()
690 struct hws_qsi_info_block *si) in getrate() argument
695 rate = freq_to_sample_rate(si, sample); in getrate()
696 rate = hw_limit_rate(si, rate); in getrate()
702 rate = hw_limit_rate(si, sample); in getrate()
710 if (sample_rate_to_freq(si, rate) > in getrate()
739 struct hws_qsi_info_block *si) in __hw_perf_event_init_rate() argument
748 rate = getrate(attr->freq, attr->sample_freq, si); in __hw_perf_event_init_rate()
752 rate = getrate(attr->freq, attr->sample_period, si); in __hw_perf_event_init_rate()
768 struct hws_qsi_info_block si; in __hw_perf_event_init() local
797 memset(&si, 0, sizeof(si)); in __hw_perf_event_init()
800 qsi(&si); in __hw_perf_event_init()
806 si = cpuhw->qsi; in __hw_perf_event_init()
813 if (!si.as) { in __hw_perf_event_init()
818 if (si.ribm & CPU_MF_SF_RIBM_NOTAV) { in __hw_perf_event_init()
831 if (!si.ad) { in __hw_perf_event_init()
842 err = __hw_perf_event_init_rate(event, &si); in __hw_perf_event_init()
1005 struct hws_qsi_info_block si; in cpumsf_pmu_disable() local
1027 err = qsi(&si); in cpumsf_pmu_disable()
1034 if (si.es) { in cpumsf_pmu_disable()
1035 cpuhw->lsctl.tear = si.tear; in cpumsf_pmu_disable()
1036 cpuhw->lsctl.dear = si.dear; in cpumsf_pmu_disable()
1834 struct hws_qsi_info_block si; in cpumsf_pmu_check_period() local
1838 memset(&si, 0, sizeof(si)); in cpumsf_pmu_check_period()
1840 if (qsi(&si)) in cpumsf_pmu_check_period()
1848 si = cpuhw->qsi; in cpumsf_pmu_check_period()
1852 rate = getrate(do_freq, value, &si); in cpumsf_pmu_check_period()
2194 struct hws_qsi_info_block si; in init_cpum_sampling_pmu() local
2200 memset(&si, 0, sizeof(si)); in init_cpum_sampling_pmu()
2201 if (qsi(&si)) { in init_cpum_sampling_pmu()
2206 if (!si.as && !si.ad) in init_cpum_sampling_pmu()
2209 if (si.bsdes != sizeof(struct hws_basic_entry)) { in init_cpum_sampling_pmu()
2214 if (si.ad) { in init_cpum_sampling_pmu()