Lines Matching refs:val_to_freq
76 struct value_to_freq *val_to_freq; member
152 rtc->val_to_freq[i].value = readl(rtc->regs + rtc_reg); in read_rtc_register_38x_wa()
153 rtc->val_to_freq[i].freq = 0; in read_rtc_register_38x_wa()
158 u32 value = rtc->val_to_freq[i].value; in read_rtc_register_38x_wa()
160 while (rtc->val_to_freq[j].freq) { in read_rtc_register_38x_wa()
161 if (rtc->val_to_freq[j].value == value) { in read_rtc_register_38x_wa()
162 rtc->val_to_freq[j].freq++; in read_rtc_register_38x_wa()
168 if (!rtc->val_to_freq[j].freq) { in read_rtc_register_38x_wa()
169 rtc->val_to_freq[j].value = value; in read_rtc_register_38x_wa()
170 rtc->val_to_freq[j].freq = 1; in read_rtc_register_38x_wa()
173 if (rtc->val_to_freq[j].freq > max) { in read_rtc_register_38x_wa()
175 max = rtc->val_to_freq[j].freq; in read_rtc_register_38x_wa()
186 return rtc->val_to_freq[index_max].value; in read_rtc_register_38x_wa()
504 rtc->val_to_freq = devm_kcalloc(&pdev->dev, SAMPLE_NR, in armada38x_rtc_probe()
506 if (!rtc->val_to_freq) in armada38x_rtc_probe()