Lines Matching defs:count
42 static u32 bbc_count_to_reg(struct bbc_beep_info *info, unsigned int count)
47 if (!count)
50 if (count <= clock_freq >> 20)
53 if (count >= clock_freq >> 12)
59 if (count <= clock_freq >> i)
70 unsigned int count = 0;
83 count = 1193182 / value;
85 count = bbc_count_to_reg(info, count);
89 if (count) {
92 sbus_writeb((count >> 16) & 0xff, info->regs + 3);
93 sbus_writeb((count >> 8) & 0xff, info->regs + 4);
108 unsigned int count = 0;
121 count = 1193182 / value;
125 if (count) {
131 sbus_writeb(count & 0xff, info->freq_regs + 0);
132 sbus_writeb((count >> 8) & 0xff, info->freq_regs + 0);