Lines Matching refs:brdv
164 #define SPCMD_BRDV(brdv) ((brdv) << 2) argument
256 int brdv = 0, spbr; in rspi_set_rate() local
260 while (spbr > 255 && brdv < 3) { in rspi_set_rate()
261 brdv++; in rspi_set_rate()
266 rspi->spcmd |= SPCMD_BRDV(brdv); in rspi_set_rate()
267 rspi->speed_hz = DIV_ROUND_UP(clksrc, (2U << brdv) * (spbr + 1)); in rspi_set_rate()
341 int brdv = 0, spbr; in qspi_set_config_register() local
353 while (spbr > 255 && brdv < 3) { in qspi_set_config_register()
354 brdv++; in qspi_set_config_register()
358 rspi->speed_hz = DIV_ROUND_UP(clksrc, (2U << brdv) * spbr); in qspi_set_config_register()
361 rspi->spcmd |= SPCMD_BRDV(brdv); in qspi_set_config_register()