Lines Matching defs:sppr
151 int spr, sppr;
180 sppr = ((ms->ipb_freq / ms->message->spi->max_speed_hz) + 1) >> 1;
182 if (sppr < 1)
183 sppr = 1;
184 while (((sppr - 1) & ~0x7) != 0) {
185 sppr = (sppr + 1) >> 1; /* add '1' to force rounding up */
188 sppr--; /* sppr quantity in register is offset by 1 */
192 sppr = 7;
194 out_8(ms->regs + SPI_BRR, sppr << 4 | spr); /* Set speed */