Lines Matching refs:clkdiv
1428 int clkdiv; in atmci_set_ios() local
1451 clkdiv = DIV_ROUND_UP(host->bus_hz, clock_min) - 2; in atmci_set_ios()
1452 if (clkdiv < 0) { in atmci_set_ios()
1456 clkdiv = 0; in atmci_set_ios()
1457 } else if (clkdiv > 511) { in atmci_set_ios()
1461 clkdiv = 511; in atmci_set_ios()
1463 host->mode_reg = ATMCI_MR_CLKDIV(clkdiv >> 1) in atmci_set_ios()
1464 | ATMCI_MR_CLKODD(clkdiv & 1); in atmci_set_ios()
1466 clkdiv = DIV_ROUND_UP(host->bus_hz, 2 * clock_min) - 1; in atmci_set_ios()
1467 if (clkdiv > 255) { in atmci_set_ios()
1471 clkdiv = 255; in atmci_set_ios()
1473 host->mode_reg = ATMCI_MR_CLKDIV(clkdiv); in atmci_set_ios()