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