Home
last modified time | relevance | path

Searched refs:nsecs (Results 1 – 16 of 16) sorted by relevance

/drivers/spi/
Dspi-bitbang.c52 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 …]
Dspi-gpio.c138 #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 …]
Dspi-bitbang-txrx.h47 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()
Dspi-sh-sci.c83 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()
Dspi-ath79.c60 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()
Dspi-sh-hspi.c165 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()
Dspi-lm70llp.c192 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()
Dspi-butterfly.c157 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()
Dspi-fsl-spi.c361 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()
Dspi-fsl-lib.h64 unsigned nsecs; /* (clock cycle time)/2 */ member
Dspi-xtensa-xtfpga.c56 static u32 xtfpga_spi_txrx_word(struct spi_device *spi, unsigned nsecs, in xtfpga_spi_txrx_word() argument
/drivers/net/wireless/ath/ath9k/
Ddfs.c38 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/
Dt4_hw.h147 #define FLASH_MAX_SIZE(nsecs) ((nsecs) * SF_SEC_SIZE) argument
/drivers/scsi/csiostor/
Dcsio_hw.h218 #define FLASH_MAX_SIZE(nsecs) ((nsecs) * SF_SEC_SIZE) argument
/drivers/base/power/
Dmain.c209 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/
Dpata_octeon_cf.c74 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()