/drivers/spi/ |
D | spi-bitbang.c | 52 unsigned nsecs; /* (clock cycle time)/2 */ member 53 u32 (*txrx_word)(struct spi_device *spi, unsigned nsecs, 58 unsigned nsecs, 66 unsigned nsecs, in bitbang_txrx_8() argument 92 unsigned nsecs, in bitbang_txrx_16() argument 118 unsigned nsecs, in bitbang_txrx_32() argument 171 cs->nsecs = (1000000000/2) / hz; in spi_bitbang_setup_transfer() 172 if (cs->nsecs > (MAX_UDELAY_MS * 1000 * 1000)) in spi_bitbang_setup_transfer() 209 dev_dbg(&spi->dev, "%s, %u nsec/bit\n", __func__, 2 * cs->nsecs); in spi_bitbang_setup() 220 ndelay(cs->nsecs); in spi_bitbang_setup() [all …]
|
D | spi-gpio.c | 138 #define spidelay(nsecs) do {} while (0) argument 157 unsigned nsecs, u32 word, u8 bits) in spi_gpio_txrx_word_mode0() argument 159 return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits); in spi_gpio_txrx_word_mode0() 163 unsigned nsecs, u32 word, u8 bits) in spi_gpio_txrx_word_mode1() argument 165 return bitbang_txrx_be_cpha1(spi, nsecs, 0, 0, word, bits); in spi_gpio_txrx_word_mode1() 169 unsigned nsecs, u32 word, u8 bits) in spi_gpio_txrx_word_mode2() argument 171 return bitbang_txrx_be_cpha0(spi, nsecs, 1, 0, word, bits); in spi_gpio_txrx_word_mode2() 175 unsigned nsecs, u32 word, u8 bits) in spi_gpio_txrx_word_mode3() argument 177 return bitbang_txrx_be_cpha1(spi, nsecs, 1, 0, word, bits); in spi_gpio_txrx_word_mode3() 191 unsigned nsecs, u32 word, u8 bits) in spi_gpio_spec_txrx_word_mode0() argument [all …]
|
D | spi-bitbang-txrx.h | 47 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0() argument 58 spidelay(nsecs); /* T(setup) */ in bitbang_txrx_be_cpha0() 61 spidelay(nsecs); in bitbang_txrx_be_cpha0() 74 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha1() argument 86 spidelay(nsecs); /* T(setup) */ in bitbang_txrx_be_cpha1() 89 spidelay(nsecs); in bitbang_txrx_be_cpha1()
|
D | spi-sh-sci.c | 83 unsigned nsecs, u32 word, u8 bits) in sh_sci_spi_txrx_mode0() argument 85 return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits); in sh_sci_spi_txrx_mode0() 89 unsigned nsecs, u32 word, u8 bits) in sh_sci_spi_txrx_mode1() argument 91 return bitbang_txrx_be_cpha1(spi, nsecs, 0, 0, word, bits); in sh_sci_spi_txrx_mode1() 95 unsigned nsecs, u32 word, u8 bits) in sh_sci_spi_txrx_mode2() argument 97 return bitbang_txrx_be_cpha0(spi, nsecs, 1, 0, word, bits); in sh_sci_spi_txrx_mode2() 101 unsigned nsecs, u32 word, u8 bits) in sh_sci_spi_txrx_mode3() argument 103 return bitbang_txrx_be_cpha1(spi, nsecs, 1, 0, word, bits); in sh_sci_spi_txrx_mode3()
|
D | spi-ath79.c | 60 static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned nsecs) in ath79_spi_delay() argument 62 if (nsecs > sp->rrw_delay) in ath79_spi_delay() 63 ndelay(nsecs - sp->rrw_delay); in ath79_spi_delay() 175 static u32 ath79_spi_txrx_mode0(struct spi_device *spi, unsigned nsecs, in ath79_spi_txrx_mode0() argument 192 ath79_spi_delay(sp, nsecs); in ath79_spi_txrx_mode0() 194 ath79_spi_delay(sp, nsecs); in ath79_spi_txrx_mode0()
|
D | spi-sh-hspi.c | 165 const int nsecs = 50; in hspi_transfer_one_message() local 176 ndelay(nsecs); in hspi_transfer_one_message() 210 ndelay(nsecs); in hspi_transfer_one_message() 212 ndelay(nsecs); in hspi_transfer_one_message() 218 ndelay(nsecs); in hspi_transfer_one_message()
|
D | spi-lm70llp.c | 192 static u32 lm70_txrx(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits) in lm70_txrx() argument 194 return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits); in lm70_txrx()
|
D | spi-butterfly.c | 157 unsigned nsecs, in butterfly_txrx_word_mode0() argument 160 return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits); in butterfly_txrx_word_mode0()
|
D | spi-fsl-spi.c | 361 const int nsecs = 50; in fsl_spi_do_one_msg() local 389 ndelay(nsecs); in fsl_spi_do_one_msg() 404 ndelay(nsecs); in fsl_spi_do_one_msg() 406 ndelay(nsecs); in fsl_spi_do_one_msg() 415 ndelay(nsecs); in fsl_spi_do_one_msg()
|
D | spi-fsl-lib.h | 64 unsigned nsecs; /* (clock cycle time)/2 */ member
|
D | spi-xtensa-xtfpga.c | 56 static u32 xtfpga_spi_txrx_word(struct spi_device *spi, unsigned nsecs, in xtfpga_spi_txrx_word() argument
|
/drivers/net/wireless/ath/ath9k/ |
D | dfs.c | 38 u32 nsecs; in dur_to_usecs() local 41 nsecs = dur * AR93X_NSECS_PER_DUR_FAST; in dur_to_usecs() 43 nsecs = dur * AR93X_NSECS_PER_DUR; in dur_to_usecs() 45 return (nsecs + 500) / 1000; in dur_to_usecs()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | t4_hw.h | 147 #define FLASH_MAX_SIZE(nsecs) ((nsecs) * SF_SEC_SIZE) argument
|
/drivers/scsi/csiostor/ |
D | csio_hw.h | 218 #define FLASH_MAX_SIZE(nsecs) ((nsecs) * SF_SEC_SIZE) argument
|
/drivers/base/power/ |
D | main.c | 209 s64 nsecs; in initcall_debug_report() local 212 nsecs = (s64) ktime_to_ns(ktime_sub(rettime, calltime)); in initcall_debug_report() 216 error, (unsigned long long)nsecs >> 10); in initcall_debug_report()
|
/drivers/ata/ |
D | pata_octeon_cf.c | 74 static unsigned int ns_to_tim_reg(unsigned int tim_mult, unsigned int nsecs) in ns_to_tim_reg() argument 82 val = DIV_ROUND_UP(nsecs * (octeon_get_io_clock_rate() / 1000000), in ns_to_tim_reg()
|