Lines Matching refs:timeout
157 static int mmc_spi_skip(struct mmc_spi_host *host, unsigned long timeout, in mmc_spi_skip() argument
178 } while (time_is_after_jiffies(start + timeout)); in mmc_spi_skip()
183 mmc_spi_wait_unbusy(struct mmc_spi_host *host, unsigned long timeout) in mmc_spi_wait_unbusy() argument
185 return mmc_spi_skip(host, timeout, sizeof(host->data->status), 0); in mmc_spi_wait_unbusy()
188 static int mmc_spi_readtoken(struct mmc_spi_host *host, unsigned long timeout) in mmc_spi_readtoken() argument
190 return mmc_spi_skip(host, timeout, 1, 0xff); in mmc_spi_readtoken()
598 unsigned long timeout) in mmc_spi_writeblock() argument
671 return mmc_spi_wait_unbusy(host, timeout); in mmc_spi_writeblock()
692 unsigned long timeout) in mmc_spi_readblock() argument
708 status = mmc_spi_readtoken(host, timeout); in mmc_spi_readblock()
786 unsigned long timeout; in mmc_spi_data_do() local
796 timeout = data->timeout_ns / 1000 + in mmc_spi_data_do()
798 timeout = usecs_to_jiffies((unsigned int)timeout) + 1; in mmc_spi_data_do()
822 status = mmc_spi_writeblock(host, t, timeout); in mmc_spi_data_do()
824 status = mmc_spi_readblock(host, t, timeout); in mmc_spi_data_do()
890 tmp = mmc_spi_wait_unbusy(host, timeout); in mmc_spi_data_do()