Home
last modified time | relevance | path

Searched refs:nanoseconds (Results 1 - 11 of 11) sorted by relevance

/kernel/liteos_a/kernel/base/core/
H A Dlos_sys.c62 LITE_OS_SEC_TEXT_MINOR UINT32 OsNS2Tick(UINT64 nanoseconds) in OsNS2Tick() argument
66 UINT64 ticks = (nanoseconds + nsPerTick - 1) / nsPerTick; in OsNS2Tick()
/kernel/liteos_m/kal/posix/src/
H A Dtime.c810 UINT64 nanoseconds = (UINT64)useconds * OS_SYS_NS_PER_US; in usleep() local
812 specTime.tv_sec = (time_t)(nanoseconds / OS_SYS_NS_PER_SECOND); in usleep()
813 specTime.tv_nsec = (long)(nanoseconds % OS_SYS_NS_PER_SECOND); in usleep()
820 UINT64 nanoseconds = (UINT64)seconds * OS_SYS_NS_PER_SECOND; in sleep() local
822 specTime.tv_sec = (time_t)(nanoseconds / OS_SYS_NS_PER_SECOND); in sleep()
823 specTime.tv_nsec = (long)(nanoseconds % OS_SYS_NS_PER_SECOND); in sleep()
/kernel/liteos_a/kernel/base/include/
H A Dlos_sys_pri.h58 * Number of nanoseconds in one second.
70 * Number of nanoseconds in one milliseconds.
76 * Number of nanoseconds in one microsecond.
88 * Number of nanoseconds in one cycle.
100 * Number of nanoseconds in one tick.
134 * Convert nanoseconds to Ticks.
136 extern UINT32 OsNS2Tick(UINT64 nanoseconds);
/kernel/liteos_a/compat/posix/src/
H A Dtime.c131 /* Adjust pacement, nanoseconds per SCHED_CLOCK_INTETRVAL_TICKS ticks */
1027 STATIC INT32 DoNanoSleep(UINT64 nanoseconds) in DoNanoSleep() argument
1031 ret = LOS_TaskDelay(OsNS2Tick(nanoseconds)); in DoNanoSleep()
1049 UINT64 nanoseconds; in nanosleep() local
1060 nanoseconds = (UINT64)rqtp->tv_sec * OS_SYS_NS_PER_SECOND + rqtp->tv_nsec; in nanosleep()
1062 return DoNanoSleep(nanoseconds); in nanosleep()
/kernel/linux/linux-5.10/drivers/iio/light/
H A Dsi1133.c133 /* Integration time in milliseconds, nanoseconds */
518 static int si1133_get_int_time_index(int milliseconds, int nanoseconds) in si1133_get_int_time_index() argument
524 nanoseconds == si1133_int_time_table[i][1]) in si1133_get_int_time_index()
531 int milliseconds, int nanoseconds) in si1133_set_integration_time()
535 index = si1133_get_int_time_index(milliseconds, nanoseconds); in si1133_set_integration_time()
530 si1133_set_integration_time(struct si1133_data *data, u8 adc, int milliseconds, int nanoseconds) si1133_set_integration_time() argument
/kernel/linux/linux-6.6/drivers/iio/light/
H A Dsi1133.c133 /* Integration time in milliseconds, nanoseconds */
518 static int si1133_get_int_time_index(int milliseconds, int nanoseconds) in si1133_get_int_time_index() argument
524 nanoseconds == si1133_int_time_table[i][1]) in si1133_get_int_time_index()
531 int milliseconds, int nanoseconds) in si1133_set_integration_time()
535 index = si1133_get_int_time_index(milliseconds, nanoseconds); in si1133_set_integration_time()
530 si1133_set_integration_time(struct si1133_data *data, u8 adc, int milliseconds, int nanoseconds) si1133_set_integration_time() argument
/kernel/linux/linux-6.6/drivers/net/dsa/microchip/
H A Dksz_ptp.c24 /* Sub-nanoseconds-adj,max * sub-nanoseconds / 40ns * 1ns
597 u32 nanoseconds; in _ksz_ptp_gettime() local
611 ret = ksz_read32(dev, REG_PTP_RTC_NANOSEC, &nanoseconds); in _ksz_ptp_gettime()
620 ts->tv_nsec = nanoseconds + phase * 8; in _ksz_ptp_gettime()
/kernel/linux/linux-5.10/drivers/i2c/busses/
H A Di2c-mlxbf.c1077 static u32 mlxbf_i2c_get_ticks(struct mlxbf_i2c_priv *priv, u64 nanoseconds, in mlxbf_i2c_get_ticks() argument
1091 ticks = (nanoseconds * frequency) / MLXBF_I2C_FREQUENCY_1GHZ; in mlxbf_i2c_get_ticks()
/kernel/linux/linux-6.6/drivers/i2c/busses/
H A Di2c-mlxbf.c1096 static u32 mlxbf_i2c_get_ticks(struct mlxbf_i2c_priv *priv, u64 nanoseconds, in mlxbf_i2c_get_ticks() argument
1110 ticks = (nanoseconds * frequency) / MLXBF_I2C_FREQUENCY_1GHZ; in mlxbf_i2c_get_ticks()
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_common.h312 __be32 nanoseconds; member
H A Dotx2_txrx.c1100 origin_tstamp->nanoseconds = htonl(ts.tv_nsec); in otx2_set_txtstamp()

Completed in 18 milliseconds