Lines Matching defs:sppr
146 int spr, sppr;
175 sppr = ((ms->ipb_freq / ms->message->spi->max_speed_hz) + 1) >> 1;
177 if (sppr < 1)
178 sppr = 1;
179 while (((sppr - 1) & ~0x7) != 0) {
180 sppr = (sppr + 1) >> 1; /* add '1' to force rounding up */
183 sppr--; /* sppr quantity in register is offset by 1 */
187 sppr = 7;
189 out_8(ms->regs + SPI_BRR, sppr << 4 | spr); /* Set speed */