| /drivers/spi/ |
| A D | spi-gpio.c | 88 #define spidelay(nsecs) do {} while (0) argument 107 unsigned int nsecs, u32 word, u8 bits, unsigned int flags) in spi_gpio_txrx_word_mode0() argument 110 return bitbang_txrx_le_cpha0(spi, nsecs, 0, flags, word, bits); in spi_gpio_txrx_word_mode0() 112 return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits); in spi_gpio_txrx_word_mode0() 116 unsigned int nsecs, u32 word, u8 bits, unsigned int flags) in spi_gpio_txrx_word_mode1() argument 125 unsigned int nsecs, u32 word, u8 bits, unsigned int flags) in spi_gpio_txrx_word_mode2() argument 134 unsigned int nsecs, u32 word, u8 bits, unsigned int flags) in spi_gpio_txrx_word_mode3() argument 153 unsigned int nsecs, u32 word, u8 bits, unsigned int flags) in spi_gpio_spec_txrx_word_mode0() argument 163 unsigned int nsecs, u32 word, u8 bits, unsigned int flags) in spi_gpio_spec_txrx_word_mode1() argument 173 unsigned int nsecs, u32 word, u8 bits, unsigned int flags) in spi_gpio_spec_txrx_word_mode2() argument [all …]
|
| A D | spi-bitbang-txrx.h | 50 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0() argument 66 spidelay(nsecs); /* T(setup) */ in bitbang_txrx_be_cpha0() 69 spidelay(nsecs); in bitbang_txrx_be_cpha0() 82 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha1() argument 99 spidelay(nsecs); /* T(setup) */ in bitbang_txrx_be_cpha1() 102 spidelay(nsecs); in bitbang_txrx_be_cpha1() 114 unsigned int nsecs, unsigned int cpol, unsigned int flags, in bitbang_txrx_le_cpha0() argument 131 spidelay(nsecs); /* T(setup) */ in bitbang_txrx_le_cpha0() 134 spidelay(nsecs); in bitbang_txrx_le_cpha0() 165 spidelay(nsecs); /* T(setup) */ in bitbang_txrx_le_cpha1() [all …]
|
| A D | spi-sh-sci.c | 79 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode0() argument 82 return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits); in sh_sci_spi_txrx_mode0() 86 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode1() argument 89 return bitbang_txrx_be_cpha1(spi, nsecs, 0, flags, word, bits); in sh_sci_spi_txrx_mode1() 93 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode2() argument 96 return bitbang_txrx_be_cpha0(spi, nsecs, 1, flags, word, bits); in sh_sci_spi_txrx_mode2() 100 unsigned nsecs, u32 word, u8 bits, in sh_sci_spi_txrx_mode3() argument 103 return bitbang_txrx_be_cpha1(spi, nsecs, 1, flags, word, bits); in sh_sci_spi_txrx_mode3()
|
| A D | spi-bitbang.c | 46 unsigned int nsecs; /* (clock cycle time) / 2 */ member 174 cs->nsecs = (NSEC_PER_SEC / 2) / hz; in spi_bitbang_setup_transfer() 175 if (cs->nsecs > (MAX_UDELAY_MS * NSEC_PER_MSEC)) in spi_bitbang_setup_transfer() 219 dev_dbg(&spi->dev, "%s, %u nsec/bit\n", __func__, 2 * cs->nsecs); in spi_bitbang_setup() 242 unsigned int nsecs = cs->nsecs; in spi_bitbang_bufs() local 258 return cs->txrx_bufs(spi, cs->txrx_word, nsecs, t, flags); in spi_bitbang_bufs() 260 return cs->txrx_bufs(spi, cs->txrx_word, nsecs, t, 0); in spi_bitbang_bufs()
|
| A D | spi-ath79.c | 64 static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned int nsecs) in ath79_spi_delay() argument 66 if (nsecs > sp->rrw_delay) in ath79_spi_delay() 67 ndelay(nsecs - sp->rrw_delay); in ath79_spi_delay() 108 static u32 ath79_spi_txrx_mode0(struct spi_device *spi, unsigned int nsecs, in ath79_spi_txrx_mode0() argument 125 ath79_spi_delay(sp, nsecs); in ath79_spi_txrx_mode0() 127 ath79_spi_delay(sp, nsecs); in ath79_spi_txrx_mode0()
|
| A D | spi-sh-hspi.c | 152 const int nsecs = 50; in hspi_transfer_one_message() local 163 ndelay(nsecs); in hspi_transfer_one_message() 196 ndelay(nsecs); in hspi_transfer_one_message() 198 ndelay(nsecs); in hspi_transfer_one_message() 204 ndelay(nsecs); in hspi_transfer_one_message()
|
| A D | spi-lm70llp.c | 182 static u32 lm70_txrx(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits, in lm70_txrx() argument 185 return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits); in lm70_txrx()
|
| A D | spi-butterfly.c | 137 butterfly_txrx_word_mode0(struct spi_device *spi, unsigned nsecs, u32 word, in butterfly_txrx_word_mode0() argument 140 return bitbang_txrx_be_cpha0(spi, nsecs, 0, flags, word, bits); in butterfly_txrx_word_mode0()
|
| A D | spi-fsl-lib.h | 53 unsigned nsecs; /* (clock cycle time)/2 */ member
|
| A D | spi-xtensa-xtfpga.c | 53 static u32 xtfpga_spi_txrx_word(struct spi_device *spi, unsigned nsecs, in xtfpga_spi_txrx_word() argument
|
| /drivers/net/wireless/ath/ath9k/ |
| A D | dfs.c | 187 u32 nsecs; in dur_to_usecs() local 190 nsecs = dur * AR93X_NSECS_PER_DUR_FAST; in dur_to_usecs() 192 nsecs = dur * AR93X_NSECS_PER_DUR; in dur_to_usecs() 194 return (nsecs + 500) / 1000; in dur_to_usecs()
|
| /drivers/net/ethernet/chelsio/cxgb4/ |
| A D | t4_hw.h | 199 #define FLASH_MAX_SIZE(nsecs) ((nsecs) * SF_SEC_SIZE) argument
|
| /drivers/gpu/drm/vmwgfx/ |
| A D | vmwgfx_vkms.c | 521 s64 nsecs = ktime_to_ns(du->vkms.period_ns); in vmw_vkms_lock_max_wait_ns() local 523 return (nsecs > 0) ? nsecs : 16666666; in vmw_vkms_lock_max_wait_ns()
|
| /drivers/net/phy/ |
| A D | microchip_rds_ptp.c | 783 s64 nsecs; in mchp_rds_ptp_ltc_gettime64() local 819 nsecs = (rc & GENMASK(13, 0)); in mchp_rds_ptp_ltc_gettime64() 820 nsecs <<= 16; in mchp_rds_ptp_ltc_gettime64() 826 nsecs |= rc; in mchp_rds_ptp_ltc_gettime64() 828 set_normalized_timespec64(ts, secs, nsecs); in mchp_rds_ptp_ltc_gettime64()
|
| /drivers/net/ethernet/intel/igc/ |
| A D | igc_ptp.c | 462 u32 secs, nsecs; in igc_ptp_rx_pktstamp() local 465 nsecs = le32_to_cpu(buf[0]); in igc_ptp_rx_pktstamp() 468 timestamp = ktime_set(secs, nsecs); in igc_ptp_rx_pktstamp()
|
| /drivers/ata/ |
| A D | pata_octeon_cf.c | 75 static unsigned int ns_to_tim_reg(unsigned int tim_mult, unsigned int nsecs) in ns_to_tim_reg() argument 81 return DIV_ROUND_UP(nsecs * (octeon_get_io_clock_rate() / 1000000), in ns_to_tim_reg()
|