Lines Matching defs:count
43 static u32 bbc_count_to_reg(struct bbc_beep_info *info, unsigned int count)
48 if (!count)
51 if (count <= clock_freq >> 20)
54 if (count >= clock_freq >> 12)
60 if (count <= clock_freq >> i)
71 unsigned int count = 0;
84 count = 1193182 / value;
86 count = bbc_count_to_reg(info, count);
90 if (count) {
93 sbus_writeb((count >> 16) & 0xff, info->regs + 3);
94 sbus_writeb((count >> 8) & 0xff, info->regs + 4);
109 unsigned int count = 0;
122 count = 1193182 / value;
126 if (count) {
132 sbus_writeb(count & 0xff, info->freq_regs + 0);
133 sbus_writeb((count >> 8) & 0xff, info->freq_regs + 0);