Lines Matching defs:delay
10 #include <linux/delay.h>
1387 u32 delay = _delay->value;
1391 if (!delay)
1396 delay *= NSEC_PER_USEC;
1413 /* Convert delay to nanoseconds */
1414 delay *= DIV_ROUND_UP(NSEC_PER_SEC, hz);
1420 return delay;
1426 int delay;
1433 delay = spi_delay_to_ns(_delay, xfer);
1434 if (delay < 0)
1435 return delay;
1437 _spi_transfer_delay_ns(delay);
1447 u32 delay = xfer->cs_change_delay.value;
1452 if (!delay) {
1461 "Use of unsupported delay unit %i, using default of %luus\n",
1958 * latency on the bus by minimising the delay between a transfer
2215 struct spi_delay *delay, const char *prop)
2221 delay->value = DIV_ROUND_UP(value, 1000);
2222 delay->unit = SPI_DELAY_UNIT_USECS;
2224 delay->value = value;
2225 delay->unit = SPI_DELAY_UNIT_NSECS;
2320 of_spi_parse_dt_cs_delay(nc, &spi->cs_setup, "spi-cs-setup-delay-ns");
2321 of_spi_parse_dt_cs_delay(nc, &spi->cs_hold, "spi-cs-hold-delay-ns");
2322 of_spi_parse_dt_cs_delay(nc, &spi->cs_inactive, "spi-cs-inactive-delay-ns");
3499 /* Clear cs_change and delay for all but the last */
3502 xfer->delay.value = 0;