Home
last modified time | relevance | path

Searched refs:HZ (Results 1 – 200 of 2479) sorted by relevance

12345678910>>...13

/linux-4.4.14/include/linux/
Djiffies.h19 #if HZ >= 12 && HZ < 24
21 #elif HZ >= 24 && HZ < 48
23 #elif HZ >= 48 && HZ < 96
25 #elif HZ >= 96 && HZ < 192
27 #elif HZ >= 192 && HZ < 384
29 #elif HZ >= 384 && HZ < 768
31 #elif HZ >= 768 && HZ < 1536
33 #elif HZ >= 1536 && HZ < 3072
35 #elif HZ >= 3072 && HZ < 6144
37 #elif HZ >= 6144 && HZ < 12288
[all …]
Dn_r3964.h66 #define R3964_TO_QVZ ((550)*HZ/1000)
67 #define R3964_TO_ZVZ ((220)*HZ/1000)
68 #define R3964_TO_NO_BUF ((400)*HZ/1000)
69 #define R3964_NO_TX_ROOM ((100)*HZ/1000)
70 #define R3964_TO_RX_PANIC ((4000)*HZ/1000)
Dacct.h73 # if HZ < AHZ in jiffies_to_AHZ()
74 return x * (AHZ / HZ); in jiffies_to_AHZ()
76 return x / (HZ / AHZ); in jiffies_to_AHZ()
Di8253.h21 #define PIT_LATCH ((PIT_TICK_RATE + HZ/2) / HZ)
Datalk.h96 #define AARP_EXPIRY_TIME (5 * 60 * HZ)
100 #define AARP_TICK_TIME (HZ / 5)
107 #define AARP_RESOLVE_TIME (10 * HZ)
Disdn.h106 #define ISDN_TIMER_02SEC (HZ/ISDN_TIMER_RES/5) /* Slow-Timer1 .2 sec */
107 #define ISDN_TIMER_1SEC (HZ/ISDN_TIMER_RES) /* Slow-Timer2 1 sec */
123 #define ISDN_TIMER_DTIMEOUT10 (10*HZ/(ISDN_TIMER_02SEC*(ISDN_TIMER_RES+1)))
124 #define ISDN_TIMER_DTIMEOUT15 (15*HZ/(ISDN_TIMER_02SEC*(ISDN_TIMER_RES+1)))
125 #define ISDN_TIMER_DTIMEOUT60 (60*HZ/(ISDN_TIMER_02SEC*(ISDN_TIMER_RES+1)))
/linux-4.4.14/arch/mn10300/unit-asb2305/include/unit/
Dtimex.h30 #ifndef HZ
31 # error HZ undeclared.
34 #if (MN10300_SRC_IOCLK + HZ / 2) / HZ - 1 <= TMJCBR_MAX
38 #elif (MN10300_SRC_IOCLK / 8 + HZ / 2) / HZ - 1 <= TMJCBR_MAX
42 #elif (MN10300_SRC_IOCLK / 32 + HZ / 2) / HZ - 1 <= TMJCBR_MAX
53 #define MN10300_JC_PER_HZ ((MN10300_JCCLK + HZ / 2) / HZ)
54 #define MN10300_TSC_PER_HZ ((MN10300_TSCCLK + HZ / 2) / HZ)
/linux-4.4.14/arch/mn10300/unit-asb2303/include/unit/
Dtimex.h30 #ifndef HZ
31 # error HZ undeclared.
34 #if (MN10300_SRC_IOCLK + HZ / 2) / HZ - 1 <= TMJCBR_MAX
38 #elif (MN10300_SRC_IOCLK / 8 + HZ / 2) / HZ - 1 <= TMJCBR_MAX
42 #elif (MN10300_SRC_IOCLK / 32 + HZ / 2) / HZ - 1 <= TMJCBR_MAX
53 #define MN10300_JC_PER_HZ ((MN10300_JCCLK + HZ / 2) / HZ)
54 #define MN10300_TSC_PER_HZ ((MN10300_TSCCLK + HZ / 2) / HZ)
/linux-4.4.14/kernel/time/
Dtime.c255 #if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ) in jiffies_to_msecs()
256 return (MSEC_PER_SEC / HZ) * j; in jiffies_to_msecs()
257 #elif HZ > MSEC_PER_SEC && !(HZ % MSEC_PER_SEC) in jiffies_to_msecs()
258 return (j + (HZ / MSEC_PER_SEC) - 1)/(HZ / MSEC_PER_SEC); in jiffies_to_msecs()
275 BUILD_BUG_ON(HZ > USEC_PER_SEC); in jiffies_to_usecs()
277 #if !(USEC_PER_SEC % HZ) in jiffies_to_usecs()
278 return (USEC_PER_SEC / HZ) * j; in jiffies_to_usecs()
632 # if HZ < USER_HZ in jiffies_to_clock_t()
633 return x * (USER_HZ / HZ); in jiffies_to_clock_t()
635 return x / (HZ / USER_HZ); in jiffies_to_clock_t()
[all …]
Djiffies.c40 #define NSEC_PER_JIFFY ((NSEC_PER_SEC+HZ/2)/HZ)
54 #if HZ < 34
56 #elif HZ < 67
122 cycles_per_tick = (cycles_per_second + HZ/2)/HZ; in register_refined_jiffies()
Dtimeconst.bc43 print "/* Time conversion constants for HZ == ", hz, " */\n"
52 print "#if HZ != ", hz, "\n"
53 print "#error \qinclude/generated/timeconst.h has the wrong HZ value!\q\n"
57 print "#error Totally bogus HZ value!\n"
/linux-4.4.14/include/net/irda/
Dtimer.h46 #define POLL_TIMEOUT (450*HZ/1000) /* Must never exceed 500 ms */
47 #define FINAL_TIMEOUT (500*HZ/1000) /* Must never exceed 500 ms */
55 #define MEDIABUSY_TIMEOUT (500*HZ/1000) /* 500 msec */
56 #define SMALLBUSY_TIMEOUT (100*HZ/1000) /* 100 msec - IrLAP 6.13.4 */
64 #define SLOT_TIMEOUT (90*HZ/1000)
71 #define XIDEXTRA_TIMEOUT (34*HZ/1000) /* 34 msec */
73 #define WATCHDOG_TIMEOUT (20*HZ) /* 20 sec */
/linux-4.4.14/fs/fscache/
Dhistogram.c18 atomic_t fscache_obj_instantiate_histogram[HZ];
19 atomic_t fscache_objs_histogram[HZ];
20 atomic_t fscache_ops_histogram[HZ];
21 atomic_t fscache_retrieval_delay_histogram[HZ];
22 atomic_t fscache_retrieval_histogram[HZ];
49 t = (index * 1000) / HZ; in fscache_histogram_show()
62 if ((unsigned long long)*_pos >= HZ + 2) in fscache_histogram_start()
75 return (unsigned long long)*pos > HZ + 2 ? in fscache_histogram_next()
Dinternal.h64 extern atomic_t fscache_obj_instantiate_histogram[HZ];
65 extern atomic_t fscache_objs_histogram[HZ];
66 extern atomic_t fscache_ops_histogram[HZ];
67 extern atomic_t fscache_retrieval_delay_histogram[HZ];
68 extern atomic_t fscache_retrieval_histogram[HZ];
73 if (jif >= HZ) in fscache_hist()
74 jif = HZ - 1; in fscache_hist()
/linux-4.4.14/arch/blackfin/kernel/
Dtime.c42 set_gptimer_period(TIMER0_id, get_sclk() / HZ); in setup_system_timer0()
59 tcount = ((get_cclk() / (HZ * TIME_SCALE)) - 1); in setup_core_timer()
96 (((clocks_per_jiffy + 1) * HZ) / USEC_PER_SEC); in blackfin_gettimeoffset()
98 if ((get_gptimer_status(0) & TIMER_STATUS_TIMIL0) && offset < (100000 / HZ / 2)) in blackfin_gettimeoffset()
99 offset += (USEC_PER_SEC / HZ); in blackfin_gettimeoffset()
103 (((clocks_per_jiffy + 1) * HZ) / USEC_PER_SEC); in blackfin_gettimeoffset()
107 && (offset < (100000 / HZ / 2))) in blackfin_gettimeoffset()
108 offset += (USEC_PER_SEC / HZ); in blackfin_gettimeoffset()
/linux-4.4.14/arch/microblaze/include/asm/
Ddelay.h41 #define __MAX_UDELAY (226050910UL/HZ) /* maximum udelay argument */
42 #define __MAX_NDELAY (4294967295UL/HZ) /* maximum ndelay argument */
70 __udelay((n) * (19 * HZ)); \
72 __udelay((n) * (19 * HZ)); \
82 __udelay((n) * HZ); \
84 __udelay((n) * HZ); \
/linux-4.4.14/net/bridge/
Dbr_private_stp.h20 #define BR_MIN_HELLO_TIME (1*HZ)
21 #define BR_MAX_HELLO_TIME (10*HZ)
23 #define BR_MIN_FORWARD_DELAY (2*HZ)
24 #define BR_MAX_FORWARD_DELAY (30*HZ)
26 #define BR_MIN_MAX_AGE (6*HZ)
27 #define BR_MAX_MAX_AGE (40*HZ)
/linux-4.4.14/net/netrom/
Dsysctl_net_netrom.c21 static int min_t1[] = {5 * HZ};
22 static int max_t1[] = {600 * HZ};
24 static int min_t2[] = {1 * HZ};
25 static int max_t2[] = {60 * HZ};
26 static int min_t4[] = {1 * HZ};
27 static int max_t4[] = {1000 * HZ};
29 static int min_idle[] = {0 * HZ};
30 static int max_idle[] = {65535 * HZ};
Daf_netrom.c288 sk->sk_timer.expires = jiffies + 2 * HZ; in nr_destroy_socket()
317 if (opt < 1 || opt > ULONG_MAX / HZ) in nr_setsockopt()
319 nr->t1 = opt * HZ; in nr_setsockopt()
323 if (opt < 1 || opt > ULONG_MAX / HZ) in nr_setsockopt()
325 nr->t2 = opt * HZ; in nr_setsockopt()
335 if (opt < 1 || opt > ULONG_MAX / HZ) in nr_setsockopt()
337 nr->t4 = opt * HZ; in nr_setsockopt()
341 if (opt > ULONG_MAX / (60 * HZ)) in nr_setsockopt()
343 nr->idle = opt * 60 * HZ; in nr_setsockopt()
370 val = nr->t1 / HZ; in nr_getsockopt()
[all …]
/linux-4.4.14/drivers/media/usb/b2c2/
Dflexcop-usb.h89 #define B2C2_WAIT_FOR_OPERATION_RW (1*HZ)
90 #define B2C2_WAIT_FOR_OPERATION_RDW (3*HZ)
91 #define B2C2_WAIT_FOR_OPERATION_WDW (1*HZ)
93 #define B2C2_WAIT_FOR_OPERATION_V8READ (3*HZ)
94 #define B2C2_WAIT_FOR_OPERATION_V8WRITE (3*HZ)
95 #define B2C2_WAIT_FOR_OPERATION_V8FLASH (3*HZ)
/linux-4.4.14/arch/mips/sni/
Dtime.c15 #define SNI_COUNTER0_DIV ((SNI_CLOCK_TICK_RATE / SNI_COUNTER2_DIV) / HZ)
82 #define SNI_8254_TCSAMP_COUNTER ((SNI_8254_TICK_RATE / HZ) + 255)
113 return (ct1 - ct0) / (500000/HZ) * (500000/HZ); in dosample()
159 (int) (r4k_tick / (500000 / HZ)), in plat_time_init()
160 (int) (r4k_tick % (500000 / HZ))); in plat_time_init()
162 mips_hpt_frequency = r4k_tick * HZ; in plat_time_init()
/linux-4.4.14/arch/mn10300/unit-asb2364/include/unit/
Dtimex.h29 #ifndef HZ
30 # error HZ undeclared.
36 #define MN10300_JC_PER_HZ ((MN10300_JCCLK + HZ / 2) / HZ)
37 #define MN10300_TSC_PER_HZ ((MN10300_TSCCLK + HZ / 2) / HZ)
/linux-4.4.14/fs/cachefiles/
Dproc.c17 atomic_t cachefiles_lookup_histogram[HZ];
18 atomic_t cachefiles_mkdir_histogram[HZ];
19 atomic_t cachefiles_create_histogram[HZ];
44 t = (index * 1000) / HZ; in cachefiles_histogram_show()
56 if ((unsigned long long)*_pos >= HZ + 2) in cachefiles_histogram_start()
69 return (unsigned long long)*pos > HZ + 2 ? in cachefiles_histogram_next()
Dinternal.h180 extern atomic_t cachefiles_lookup_histogram[HZ];
181 extern atomic_t cachefiles_mkdir_histogram[HZ];
182 extern atomic_t cachefiles_create_histogram[HZ];
190 if (jif >= HZ) in cachefiles_hist()
191 jif = HZ - 1; in cachefiles_hist()
/linux-4.4.14/net/rose/
Dsysctl_net_rose.c15 static int min_timer[] = {1 * HZ};
16 static int max_timer[] = {300 * HZ};
17 static int min_idle[] = {0 * HZ};
18 static int max_idle[] = {65535 * HZ};
20 static int min_ftimer[] = {60 * HZ};
21 static int max_ftimer[] = {600 * HZ};
Daf_rose.c358 sk->sk_timer.expires = jiffies + 10 * HZ; in rose_destroy_socket()
393 rose->t1 = opt * HZ; in rose_setsockopt()
399 rose->t2 = opt * HZ; in rose_setsockopt()
405 rose->t3 = opt * HZ; in rose_setsockopt()
411 rose->hb = opt * HZ; in rose_setsockopt()
417 rose->idle = opt * 60 * HZ; in rose_setsockopt()
452 val = rose->t1 / HZ; in rose_getsockopt()
456 val = rose->t2 / HZ; in rose_getsockopt()
460 val = rose->t3 / HZ; in rose_getsockopt()
464 val = rose->hb / HZ; in rose_getsockopt()
[all …]
/linux-4.4.14/arch/mips/sgi-ip22/
Dip22-time.c63 return (ct1 - ct0) / (500000/HZ) * (500000/HZ); in dosample()
109 (int) (r4k_tick / (500000 / HZ)), in plat_time_init()
110 (int) (r4k_tick % (500000 / HZ))); in plat_time_init()
112 mips_hpt_frequency = r4k_tick * HZ; in plat_time_init()
Dip22-reset.c38 #define POWERDOWN_FREQ (HZ / 4)
39 #define PANIC_FREQ (HZ / 8)
104 debounce_timer.expires = jiffies + (HZ / 20); /* 0.05s */ in debounce()
137 power_timer.expires = jiffies + POWERDOWN_TIMEOUT * HZ; in power_button()
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
Dtimer.c24 int next_tick = 2*HZ; in tulip_media_task()
46 next_tick = 60*HZ; in tulip_media_task()
104 next_tick = (24*HZ)/10; in tulip_media_task()
111 next_tick = 3*HZ; in tulip_media_task()
114 next_tick = 60*HZ; in tulip_media_task()
145 int next_tick = 60*HZ; in mxic_timer()
161 int next_tick = 2*HZ; in comet_timer()
Dpnic.c68 if (! tp->nwayset || time_after(jiffies, dev_trans_start(dev) + 1*HZ)) { in pnic_lnk_change()
92 int next_tick = 60*HZ; in pnic_timer()
106 next_tick = 3*HZ; in pnic_timer()
119 next_tick = 1*HZ; in pnic_timer()
123 next_tick = 60*HZ; in pnic_timer()
131 next_tick = 3*HZ; in pnic_timer()
134 next_tick = 1*HZ; in pnic_timer()
D21142.c35 int next_tick = 60*HZ; in t21142_media_task()
48 next_tick = 3*HZ; in t21142_media_task()
51 next_tick = 60*HZ; in t21142_media_task()
68 next_tick = 3*HZ; in t21142_media_task()
101 next_tick = 3*HZ; in t21142_media_task()
221 tp->timer.expires = RUN_AT(3*HZ); in t21142_lnk_change()
231 tp->timer.expires = RUN_AT(3*HZ); in t21142_lnk_change()
Dpnic2.c84 int next_tick = 60*HZ; in pnic2_timer()
328 tp->timer.expires = RUN_AT(3*HZ); in pnic2_lnk_change()
353 tp->timer.expires = RUN_AT(3*HZ); in pnic2_lnk_change()
377 tp->timer.expires = RUN_AT(3*HZ); in pnic2_lnk_change()
/linux-4.4.14/include/scsi/
Dscsi.h17 SCSI_DEFAULT_EH_TIMEOUT = 10 * HZ,
248 #define FORMAT_UNIT_TIMEOUT (2 * 60 * 60 * HZ)
249 #define START_STOP_TIMEOUT (60 * HZ)
250 #define MOVE_MEDIUM_TIMEOUT (5 * 60 * HZ)
251 #define READ_ELEMENT_STATUS_TIMEOUT (5 * 60 * HZ)
252 #define READ_DEFECT_DATA_TIMEOUT (60 * HZ )
/linux-4.4.14/arch/ia64/include/asm/
Dparam.h14 # define HZ CONFIG_HZ macro
15 # define USER_HZ HZ
16 # define CLOCKS_PER_SEC HZ /* frequency at which times() counts */
/linux-4.4.14/kernel/
DKconfig.hz15 environment leading to NR_CPUS * HZ number of timer interrupts
20 bool "100 HZ"
27 bool "250 HZ"
35 bool "300 HZ"
43 bool "1000 HZ"
50 config HZ config
/linux-4.4.14/arch/mips/include/asm/
Ddelay.h24 #if HZ >= 1000
26 #elif HZ <= 200
29 #define MAX_UDELAY_MS (1000 / HZ)
Dhpet.h68 #define HPET_COMPARE_VAL ((HPET_FREQ + HZ / 2) / HZ)
/linux-4.4.14/net/ax25/
Daf_ax25.c331 ax25->dtimer.expires = jiffies + 2 * HZ; in ax25_destroy_socket()
366 if (ax25_ctl.arg > ULONG_MAX / HZ && ax25_ctl.cmd != AX25_KILL) in ax25_ctl_ioctl()
398 if (ax25_ctl.arg < 1 || ax25_ctl.arg > ULONG_MAX / HZ) in ax25_ctl_ioctl()
400 ax25->rtt = (ax25_ctl.arg * HZ) / 2; in ax25_ctl_ioctl()
401 ax25->t1 = ax25_ctl.arg * HZ; in ax25_ctl_ioctl()
405 if (ax25_ctl.arg < 1 || ax25_ctl.arg > ULONG_MAX / HZ) in ax25_ctl_ioctl()
407 ax25->t2 = ax25_ctl.arg * HZ; in ax25_ctl_ioctl()
418 if (ax25_ctl.arg > ULONG_MAX / HZ) in ax25_ctl_ioctl()
420 ax25->t3 = ax25_ctl.arg * HZ; in ax25_ctl_ioctl()
424 if (ax25_ctl.arg > ULONG_MAX / (60 * HZ)) in ax25_ctl_ioctl()
[all …]
/linux-4.4.14/arch/h8300/kernel/
Dsetup.c167 (loops_per_jiffy*HZ)/500000, in show_cpuinfo()
168 ((loops_per_jiffy*HZ)/5000)%100, in show_cpuinfo()
169 (loops_per_jiffy*HZ)); in show_cpuinfo()
246 loops_per_jiffy = freq / HZ / (access_timing() * 2); in calibrate_delay()
248 loops_per_jiffy / (500000 / HZ), in calibrate_delay()
249 (loops_per_jiffy / (5000 / HZ)) % 100, loops_per_jiffy); in calibrate_delay()
/linux-4.4.14/drivers/hwmon/
Dlm75.c221 data->sample_time = HZ / 8; in lm75_probe()
229 data->sample_time = HZ; in lm75_probe()
234 data->sample_time = HZ / 4; in lm75_probe()
240 data->sample_time = HZ / 2; in lm75_probe()
244 data->sample_time = HZ / 4; in lm75_probe()
248 data->sample_time = HZ / 4; in lm75_probe()
253 data->sample_time = HZ / 4; in lm75_probe()
257 data->sample_time = HZ / 8; in lm75_probe()
266 data->sample_time = HZ; in lm75_probe()
273 data->sample_time = HZ / 4; in lm75_probe()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/include/linux/
Dobd.h84 if (time_before(cur + 5 * HZ, jiffies) && in __client_obd_list_lock()
85 time_before(lock->time + 5 * HZ, jiffies)) { in __client_obd_list_lock()
95 (jiffies - lock->time) / HZ); in __client_obd_list_lock()
100 schedule_timeout(1000 * HZ); in __client_obd_list_lock()
/linux-4.4.14/arch/powerpc/include/asm/
Dcputime.h74 ct = jif % HZ; in jiffies_to_cputime()
75 sec = jif / HZ; in jiffies_to_cputime()
78 do_div(ct, HZ); in jiffies_to_cputime()
96 ct = jif % HZ; in jiffies64_to_cputime64()
97 sec = jif / HZ; in jiffies64_to_cputime64()
100 do_div(ct, HZ); in jiffies64_to_cputime64()
/linux-4.4.14/fs/nfs/
Dnfs4renewd.c124 if (timeout < 5 * HZ) in nfs4_schedule_state_renewal()
125 timeout = 5 * HZ; in nfs4_schedule_state_renewal()
127 __func__, (timeout + HZ - 1) / HZ); in nfs4_schedule_state_renewal()
/linux-4.4.14/arch/m68k/include/asm/
Ddelay.h54 #define HZSCALE (268435456 / (1000000 / HZ))
68 __delay(xloops * HZ); in __xdelay()
115 #define HZSCALE (268435456 / (1000000 / HZ))
/linux-4.4.14/drivers/net/wireless/b43/
Dlo.h68 #define B43_LO_CALIB_EXPIRE (HZ * (30 - 2))
69 #define B43_LO_PWRVEC_EXPIRE (HZ * (30 - 2))
70 #define B43_LO_TXCTL_EXPIRE (HZ * (180 - 4))
/linux-4.4.14/net/sunrpc/
Dtimer.c24 #define RPC_RTO_MAX (60*HZ)
25 #define RPC_RTO_INIT (HZ/5)
26 #define RPC_RTO_MIN (HZ/10)
/linux-4.4.14/arch/m32r/kernel/
Dtime.c56 #define USECS_PER_JIFFY (1000000/HZ)
161 ts->tv_nsec = (INITIAL_JIFFIES % HZ) * (NSEC_PER_SEC / HZ); in read_persistent_clock()
181 latch = DIV_ROUND_CLOSEST(bus_clock/divide, HZ); in time_init()
/linux-4.4.14/net/bridge/netfilter/
Debt_limit.c23 #define MAX_CPJ (0xFFFFFFFF / (HZ*60*60*24))
61 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()
63 return (user / EBT_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()
65 return (user * HZ * CREDITS_PER_JIFFY) / EBT_LIMIT_SCALE; in user2credits()
/linux-4.4.14/include/asm-generic/
Dcputime_nsecs.h36 cputime_div(__ct, NSEC_PER_SEC / HZ)
39 (__force cputime_t)((__jif) * (NSEC_PER_SEC / HZ))
41 cputime_div(__ct, NSEC_PER_SEC / HZ)
43 (__force cputime64_t)((__jif) * (NSEC_PER_SEC / HZ))
Dparam.h6 # undef HZ
7 # define HZ CONFIG_HZ /* Internal kernel timer frequency */ macro
Dcputime_jiffies.h43 #define cputime_to_secs(jif) (cputime_to_jiffies(jif) / HZ)
44 #define secs_to_cputime(sec) jiffies_to_cputime((sec) * HZ)
/linux-4.4.14/arch/s390/include/asm/
Dcputime.h35 return __div((__force unsigned long long) cputime, CPUTIME_PER_SEC / HZ); in cputime_to_jiffies()
40 return (__force cputime_t)(jif * (CPUTIME_PER_SEC / HZ)); in jiffies_to_cputime()
46 do_div(jif, CPUTIME_PER_SEC / HZ); in cputime64_to_jiffies64()
52 return (__force cputime64_t)(jif * (CPUTIME_PER_SEC / HZ)); in jiffies64_to_cputime64()
/linux-4.4.14/arch/hexagon/kernel/
Dsetup.c44 loops_per_jiffy = thread_freq_mhz * 1000000 / HZ; in calibrate_delay()
139 (loops_per_jiffy * HZ) / 500000, in show_cpuinfo()
140 ((loops_per_jiffy * HZ) / 5000) % 100); in show_cpuinfo()
/linux-4.4.14/drivers/scsi/
Dipr.h227 #define IPR_SHUTDOWN_TIMEOUT (ipr_fastfail ? 60 * HZ : 10 * 60 * HZ)
228 #define IPR_VSET_RW_TIMEOUT (ipr_fastfail ? 30 * HZ : 2 * 60 * HZ)
229 #define IPR_ABBREV_SHUTDOWN_TIMEOUT (10 * HZ)
230 #define IPR_DUAL_IOA_ABBR_SHUTDOWN_TO (2 * 60 * HZ)
231 #define IPR_DEVICE_RESET_TIMEOUT (ipr_fastfail ? 10 * HZ : 30 * HZ)
232 #define IPR_CANCEL_TIMEOUT (ipr_fastfail ? 10 * HZ : 30 * HZ)
233 #define IPR_CANCEL_ALL_TIMEOUT (ipr_fastfail ? 10 * HZ : 30 * HZ)
234 #define IPR_ABORT_TASK_TIMEOUT (ipr_fastfail ? 10 * HZ : 30 * HZ)
235 #define IPR_INTERNAL_TIMEOUT (ipr_fastfail ? 10 * HZ : 30 * HZ)
236 #define IPR_WRITE_BUFFER_TIMEOUT (30 * 60 * HZ)
[all …]
Dpmcraid.h200 #define PMCRAID_RESET_TIMEOUT (2 * HZ)
201 #define PMCRAID_CHECK_FOR_RESET_TIMEOUT ((HZ / 10))
202 #define PMCRAID_VSET_IO_TIMEOUT (60 * HZ)
203 #define PMCRAID_INTERNAL_TIMEOUT (60 * HZ)
204 #define PMCRAID_SHUTDOWN_TIMEOUT (150 * HZ)
205 #define PMCRAID_RESET_BUS_TIMEOUT (60 * HZ)
206 #define PMCRAID_RESET_HOST_TIMEOUT (150 * HZ)
207 #define PMCRAID_REQUEST_SENSE_TIMEOUT (30 * HZ)
208 #define PMCRAID_SET_SUP_DEV_TIMEOUT (2 * 60 * HZ)
Dsr.h24 #define SR_TIMEOUT (30 * HZ)
30 #define IOCTL_TIMEOUT 30*HZ
Dsd.h14 #define SD_TIMEOUT (30 * HZ)
15 #define SD_MOD_TIMEOUT (75 * HZ)
21 #define SD_WRITE_SAME_TIMEOUT (120 * HZ)
/linux-4.4.14/arch/openrisc/kernel/
Dsetup.c277 loops_per_jiffy = *val / HZ; in calibrate_delay()
279 loops_per_jiffy / (500000 / HZ), in calibrate_delay()
280 (loops_per_jiffy / (5000 / HZ)) % 100, loops_per_jiffy); in calibrate_delay()
345 loops_per_jiffy * HZ, in show_cpuinfo()
354 (loops_per_jiffy * HZ) / 500000, in show_cpuinfo()
355 ((loops_per_jiffy * HZ) / 5000) % 100); in show_cpuinfo()
/linux-4.4.14/fs/nfsd/
Dstats.c55 unsigned int sec = jifs / HZ, msec = (jifs % HZ)*1000/HZ; in nfsd_proc_show()
Dcache.h72 #define RC_DELAY (HZ/5)
75 #define RC_EXPIRE (120 * HZ)
/linux-4.4.14/include/video/
Dudlfb.h72 #define GET_URB_TIMEOUT HZ
73 #define FREE_URB_TIMEOUT (HZ*2)
91 #define DL_DEFIO_WRITE_DISABLE (HZ*60) /* "disable" with long delay */
/linux-4.4.14/include/uapi/asm-generic/
Dparam.h4 #ifndef HZ
5 #define HZ 100 macro
/linux-4.4.14/arch/alpha/include/asm/
Dparam.h6 # undef HZ
7 # define HZ CONFIG_HZ macro
/linux-4.4.14/drivers/net/wireless/realtek/rtl818x/rtl8187/
Drtl8187.h172 &priv->io_dmabuf->bits8, sizeof(val), HZ / 2); in rtl818x_ioread8_idx()
194 &priv->io_dmabuf->bits16, sizeof(val), HZ / 2); in rtl818x_ioread16_idx()
216 &priv->io_dmabuf->bits32, sizeof(val), HZ / 2); in rtl818x_ioread32_idx()
238 &priv->io_dmabuf->bits8, sizeof(val), HZ / 2); in rtl818x_iowrite8_idx()
257 &priv->io_dmabuf->bits16, sizeof(val), HZ / 2); in rtl818x_iowrite16_idx()
277 &priv->io_dmabuf->bits32, sizeof(val), HZ / 2); in rtl818x_iowrite32_idx()
/linux-4.4.14/drivers/char/
Ddtlk.c203 retries < loops_per_jiffy / (4000/HZ); in dtlk_write()
218 if (++retries > 10 * HZ) { /* wait no more than 10 sec in dtlk_write()
256 expires = jiffies + 3*HZ / 100; in dtlk_poll()
441 __delay(loops_per_jiffy/(1000000/HZ)); \ in dtlk_dev_probe()
452 __delay(50 * loops_per_jiffy / (1000/HZ)); in dtlk_dev_probe()
471 __delay(loops_per_jiffy/(1000000/HZ)); /* 1 us */ \ in dtlk_dev_probe()
611 retries = (loops_per_jiffy * 20) / (1000000/HZ); in dtlk_read_lpc()
653 for (retries = 0; retries < loops_per_jiffy / (100000/HZ); retries++) in dtlk_write_tts()
Dhangcheck-timer.c161 mod_timer(&hangcheck_ticktock, jiffies + (hangcheck_tick*HZ)); in hangcheck_fire()
175 mod_timer(&hangcheck_ticktock, jiffies + (hangcheck_tick*HZ)); in hangcheck_init()
Drtc.c263 mod_timer(&rtc_irq_timer, jiffies + HZ/rtc_freq + 2*HZ/100); in rtc_interrupt()
460 mod_timer(&rtc_irq_timer, jiffies + HZ/rtc_freq + in rtc_do_ioctl()
461 2*HZ/100); in rtc_do_ioctl()
1074 rtc_freq = HZ; in rtc_init()
1187 mod_timer(&rtc_irq_timer, jiffies + HZ/rtc_freq + 2*HZ/100); in rtc_dropped_irq()
1189 rtc_irq_data += ((rtc_freq/HZ)<<8); in rtc_dropped_irq()
1313 time_before(jiffies, uip_watchdog + 2*HZ/100)) in rtc_get_rtc_time()
/linux-4.4.14/net/netfilter/
Dnf_conntrack_proto_gre.c52 [GRE_CT_UNREPLIED] = 30*HZ,
53 [GRE_CT_REPLIED] = 180*HZ,
240 (ct->proto.gre.timeout / HZ), in gre_print_conntrack()
241 (ct->proto.gre.stream_timeout / HZ)); in gre_print_conntrack()
318 ntohl(nla_get_be32(tb[CTA_TIMEOUT_GRE_UNREPLIED])) * HZ; in gre_timeout_nlattr_to_obj()
322 ntohl(nla_get_be32(tb[CTA_TIMEOUT_GRE_REPLIED])) * HZ; in gre_timeout_nlattr_to_obj()
333 htonl(timeouts[GRE_CT_UNREPLIED] / HZ)) || in gre_timeout_obj_to_nlattr()
335 htonl(timeouts[GRE_CT_REPLIED] / HZ))) in gre_timeout_obj_to_nlattr()
Dxt_limit.c54 #define MAX_CPJ (0xFFFFFFFF / (HZ*60*60*24))
95 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()
97 return (user / XT_LIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()
99 return (user * HZ * CREDITS_PER_JIFFY) / XT_LIMIT_SCALE; in user2credits()
Dnf_conntrack_proto_udp.c30 [UDP_CT_UNREPLIED] = 30*HZ,
31 [UDP_CT_REPLIED] = 180*HZ,
173 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDP_UNREPLIED])) * HZ; in udp_timeout_nlattr_to_obj()
177 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDP_REPLIED])) * HZ; in udp_timeout_nlattr_to_obj()
188 htonl(timeouts[UDP_CT_UNREPLIED] / HZ)) || in udp_timeout_obj_to_nlattr()
190 htonl(timeouts[UDP_CT_REPLIED] / HZ))) in udp_timeout_obj_to_nlattr()
Dnf_conntrack_proto_udplite.c34 [UDPLITE_CT_UNREPLIED] = 30*HZ,
35 [UDPLITE_CT_REPLIED] = 180*HZ,
188 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDPLITE_UNREPLIED])) * HZ; in udplite_timeout_nlattr_to_obj()
192 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDPLITE_REPLIED])) * HZ; in udplite_timeout_nlattr_to_obj()
203 htonl(timeouts[UDPLITE_CT_UNREPLIED] / HZ)) || in udplite_timeout_obj_to_nlattr()
205 htonl(timeouts[UDPLITE_CT_REPLIED] / HZ))) in udplite_timeout_obj_to_nlattr()
Dnf_conntrack_proto_tcp.c66 #define SECS * HZ
1310 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_SYN_SENT]))*HZ; in tcp_timeout_nlattr_to_obj()
1314 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_SYN_RECV]))*HZ; in tcp_timeout_nlattr_to_obj()
1318 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_ESTABLISHED]))*HZ; in tcp_timeout_nlattr_to_obj()
1322 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_FIN_WAIT]))*HZ; in tcp_timeout_nlattr_to_obj()
1326 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_CLOSE_WAIT]))*HZ; in tcp_timeout_nlattr_to_obj()
1330 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_LAST_ACK]))*HZ; in tcp_timeout_nlattr_to_obj()
1334 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_TIME_WAIT]))*HZ; in tcp_timeout_nlattr_to_obj()
1338 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_CLOSE]))*HZ; in tcp_timeout_nlattr_to_obj()
1342 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_SYN_SENT2]))*HZ; in tcp_timeout_nlattr_to_obj()
[all …]
Dxt_hashlimit.c401 #define MAX_CPJ (0xFFFFFFFF / (HZ*60*60*24))
419 #define MAX_CPJ_BYTES (0xFFFFFFFF / HZ)
431 if (user > 0xFFFFFFFF / (HZ*CREDITS_PER_JIFFY)) in user2credits()
433 return (user / XT_HASHLIMIT_SCALE) * HZ * CREDITS_PER_JIFFY; in user2credits()
435 return (user * HZ * CREDITS_PER_JIFFY) / XT_HASHLIMIT_SCALE; in user2credits()
441 us *= HZ * CREDITS_PER_JIFFY_BYTES; in user2credits_byte()
458 cap = CREDITS_PER_JIFFY_BYTES * HZ; in rateinfo_recalc()
476 dh->rateinfo.credit = CREDITS_PER_JIFFY_BYTES * HZ; in rateinfo_init()
595 if (unlikely(tmp > CREDITS_PER_JIFFY_BYTES * HZ)) in hashlimit_byte_cost()
596 tmp = CREDITS_PER_JIFFY_BYTES * HZ; in hashlimit_byte_cost()
[all …]
Dnf_conntrack_proto_generic.c15 static unsigned int nf_ct_generic_timeout __read_mostly = 600*HZ;
115 ntohl(nla_get_be32(tb[CTA_TIMEOUT_GENERIC_TIMEOUT])) * HZ; in generic_timeout_nlattr_to_obj()
129 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / HZ))) in generic_timeout_obj_to_nlattr()
/linux-4.4.14/net/x25/
Dx25_proc.c109 x25->va, x25_display_timer(s) / HZ, x25->t2 / HZ, in x25_seq_socket_show()
110 x25->t21 / HZ, x25->t22 / HZ, x25->t23 / HZ, in x25_seq_socket_show()
Dsysctl_net_x25.c15 static int min_timer[] = { 1 * HZ };
16 static int max_timer[] = { 300 * HZ };
/linux-4.4.14/include/net/
Dx25.h73 #define X25_DEFAULT_T20 (180 * HZ) /* Default T20 value */
74 #define X25_DEFAULT_T21 (200 * HZ) /* Default T21 value */
75 #define X25_DEFAULT_T22 (180 * HZ) /* Default T22 value */
76 #define X25_DEFAULT_T23 (180 * HZ) /* Default T23 value */
77 #define X25_DEFAULT_T2 (3 * HZ) /* Default ack holdback value */
Daddrconf.h5 #define RTR_SOLICITATION_INTERVAL (4*HZ)
14 #define ADDR_CHECK_FREQUENCY (120*HZ)
18 #define ADDRCONF_TIMER_FUZZ_MINUS (HZ > 50 ? HZ / 50 : 1)
19 #define ADDRCONF_TIMER_FUZZ (HZ / 4)
20 #define ADDRCONF_TIMER_FUZZ_MAX (HZ)
Dtcp.h117 #define TCP_TIMEWAIT_LEN (60*HZ) /* how long to wait to destroy TIME-WAIT
126 #define TCP_DELACK_MAX ((unsigned)(HZ/5)) /* maximal time to delay before sending an ACK */
127 #if HZ >= 100
128 #define TCP_DELACK_MIN ((unsigned)(HZ/25)) /* minimal time to delay before sending an ACK */
129 #define TCP_ATO_MIN ((unsigned)(HZ/25))
134 #define TCP_RTO_MAX ((unsigned)(120*HZ))
135 #define TCP_RTO_MIN ((unsigned)(HZ/5))
136 #define TCP_TIMEOUT_INIT ((unsigned)(1*HZ)) /* RFC6298 2.1 initial RTO value */
137 #define TCP_TIMEOUT_FALLBACK ((unsigned)(3*HZ)) /* RFC 1122 initial RTO value, now
144 #define TCP_RESOURCE_PROBE_INTERVAL ((unsigned)(HZ/2U)) /* Maximal interval between probes
[all …]
Dndisc.h41 #define MAX_RTR_SOLICITATION_DELAY HZ
43 #define ND_REACHABLE_TIME (30*HZ)
44 #define ND_RETRANS_TIMER HZ
Dlapb.h60 #define LAPB_DEFAULT_T1 (5 * HZ) /* T1=5s */
61 #define LAPB_DEFAULT_T2 (1 * HZ) /* T2=1s */
/linux-4.4.14/arch/cris/include/arch-v10/arch/
Dtimex.h17 #define TIMER0_DIV (TIMER0_FREQ/(HZ))
21 ( (TIMER0_DIV - *R_TIMER0_DATA) * (1000000/HZ)/TIMER0_DIV )
/linux-4.4.14/arch/mips/include/asm/mach-loongson64/cs5536/
Dcs5536_mfgpt.h28 #define COMPARE ((MFGPT_TICK_RATE + HZ/2) / HZ)
/linux-4.4.14/arch/cris/kernel/
Dtime.c60 return (unsigned long long)jiffies * (NSEC_PER_SEC / HZ) + in sched_clock()
68 loops_per_usec = (loops_per_jiffy * HZ) / 1000000; in init_udelay()
/linux-4.4.14/arch/mips/rb532/
Dtime.c46 return mips_hpt_frequency / HZ; in cal_r4koff()
60 est_freq = 2 * r4k_offset * HZ; in plat_time_init()
/linux-4.4.14/include/uapi/linux/
Dnfs_fs.h20 #define NFS_MAX_UDP_TIMEOUT (60*HZ)
21 #define NFS_MAX_TCP_TIMEOUT (600*HZ)
Dlp.h96 #define LP_TIMEOUT_INTERRUPT (60 * HZ)
97 #define LP_TIMEOUT_POLLED (10 * HZ)
/linux-4.4.14/arch/alpha/lib/
Dudelay.c44 usecs *= (((unsigned long)HZ << 32) / 1000000) * LPJ; in udelay()
52 nsecs *= (((unsigned long)HZ << 32) / 1000000000) * LPJ; in ndelay()
/linux-4.4.14/arch/mips/kernel/
Dbinfmt_elfn32.c129 value->tv_usec = (jiffies % HZ) * (1000000L / HZ); in cputime_to_compat_timeval()
130 value->tv_sec = jiffies / HZ; in cputime_to_compat_timeval()
Dbinfmt_elfo32.c148 value->tv_usec = (jiffies % HZ) * (1000000L / HZ); in cputime_to_compat_timeval()
149 value->tv_sec = jiffies / HZ; in cputime_to_compat_timeval()
Dcevt-gt641xx.c42 GT_WRITE(GT_TC0_OFS, gt641xx_base_clock / HZ); in gt641xx_timer0_state()
149 GT_WRITE(GT_TC0_OFS, gt641xx_base_clock / HZ); in gt641xx_timer0_clockevent_init()
/linux-4.4.14/arch/mips/sgi-ip32/
Dip32-reset.c34 #define POWERDOWN_FREQ (HZ / 4)
35 #define PANIC_FREQ (HZ / 8)
106 power_timer.expires = jiffies + POWERDOWN_TIMEOUT * HZ; in ip32_prepare_poweroff()
/linux-4.4.14/arch/mips/lib/
Ddelay.c54 __delay((us * 0x000010c7ull * HZ * lpj) >> 32); in __udelay()
62 __delay((ns * 0x00000005ull * HZ * lpj) >> 32); in __ndelay()
/linux-4.4.14/init/
Dcalibrate.c31 #define DELAY_CALIBRATION_TICKS ((HZ < 100) ? 1 : (HZ/100))
308 lpj/(500000/HZ), in calibrate_delay()
309 (lpj/(5000/HZ)) % 100, lpj); in calibrate_delay()
/linux-4.4.14/lib/raid6/
Dalgos.c162 (perf*HZ) >> (20-16+RAID6_TIME_JIFFIES_LG2)); in raid6_choose_gen()
185 (perf*HZ) >> (20-16+RAID6_TIME_JIFFIES_LG2+1)); in raid6_choose_gen()
192 (bestgenperf*HZ) >> (20-16+RAID6_TIME_JIFFIES_LG2)); in raid6_choose_gen()
195 (bestxorperf*HZ) >> (20-16+RAID6_TIME_JIFFIES_LG2+1)); in raid6_choose_gen()
/linux-4.4.14/fs/gfs2/
Dglock.h116 #define GL_GLOCK_MAX_HOLD (long)(HZ / 5)
117 #define GL_GLOCK_DFT_HOLD (long)(HZ / 5)
119 #define GL_GLOCK_HOLD_INCR (long)(HZ / 20)
120 #define GL_GLOCK_HOLD_DECR (long)(HZ / 40)
/linux-4.4.14/arch/m68k/kernel/
Dsetup_no.c280 clockfreq = (loops_per_jiffy * HZ) * CPU_INSTR_PER_JIFFY; in show_cpuinfo()
291 (loops_per_jiffy * HZ) / 500000, in show_cpuinfo()
292 ((loops_per_jiffy * HZ) / 5000) % 100, in show_cpuinfo()
293 (loops_per_jiffy * HZ)); in show_cpuinfo()
/linux-4.4.14/drivers/watchdog/
Dep93xx_wdt.c58 #define WDT_INTERVAL (HZ/5)
71 next_heartbeat = jiffies + (timeout * HZ); in ep93xx_wdt_start()
90 next_heartbeat = jiffies + (timeout * HZ); in ep93xx_wdt_keepalive()
Dat91sam9_wdt.c52 #define ticks_to_hz_rounddown(t) ((((t) + 1) * HZ) >> 8)
53 #define ticks_to_hz_roundup(t) (((((t) + 1) * HZ) + 255) >> 8)
69 #define WDT_TIMEOUT (HZ/2)
139 wdt->next_heartbeat = jiffies + wdd->timeout * HZ; in at91_wdt_start()
244 wdt->next_heartbeat = jiffies + wdt->wdd.timeout * HZ; in at91_wdt_init()
Dw83877f_wdt.c77 #define WDT_INTERVAL (HZ/4+1)
160 next_heartbeat = jiffies + (timeout * HZ); in wdt_startup()
183 next_heartbeat = jiffies + (timeout * HZ); in wdt_keepalive()
Dsbc60xxwdt.c90 #define WDT_INTERVAL (HZ/4+1)
145 next_heartbeat = jiffies + (timeout * HZ); in wdt_startup()
163 next_heartbeat = jiffies + (timeout * HZ); in wdt_keepalive()
Dsc520_wdt.c83 #define WDT_INTERVAL (HZ/4+1)
178 next_heartbeat = jiffies + (timeout * HZ); in wdt_startup()
205 next_heartbeat = jiffies + (timeout * HZ); in wdt_keepalive()
Dnuc900_wdt.c49 #define WDT_TIMEOUT (HZ/2)
102 nuc900_wdt->next_heartbeat = jiffies + heartbeat * HZ; in nuc900_wdt_start()
123 nuc900_wdt->next_heartbeat = jiffies + heartbeat * HZ; in nuc900_wdt_ping()
/linux-4.4.14/include/net/iucv/
Daf_iucv.h37 #define IUCV_CONN_TIMEOUT (HZ * 40)
38 #define IUCV_DISCONN_TIMEOUT (HZ * 2)
39 #define IUCV_CONN_IDLE_TIMEOUT (HZ * 60)
/linux-4.4.14/net/ipv4/
Dtcp_htcp.c130 __u32 cur_Bi = ca->packetcount * HZ / (now - ca->lasttime); in measure_achieved_throughput()
179 if (diff > HZ) { in htcp_alpha_update()
180 diff -= HZ; in htcp_alpha_update()
181 factor = 1 + (10 * diff + ((diff / 2) * (diff / 2) / HZ)) / HZ; in htcp_alpha_update()
185 u32 scale = (HZ << 3) / (10 * minRTT); in htcp_alpha_update()
Dinetpeer.c57 static const int gc_delay = 60 * HZ;
84 int inet_peer_minttl __read_mostly = 120 * HZ; /* TTL under high load: 120 sec */
85 int inet_peer_maxttl __read_mostly = 10 * 60 * HZ; /* usual time to live: 10 min */
379 - (inet_peer_maxttl - inet_peer_minttl) / HZ * in inet_peer_gc()
380 base->total / inet_peer_threshold * HZ; in inet_peer_gc()
454 p->rate_last = jiffies - 60*HZ; in inet_getpeer()
/linux-4.4.14/fs/ext4/
Dmmp.c196 if (diff < mmp_update_interval * HZ) in kmmpd()
198 HZ - diff); in kmmpd()
206 if (diff > mmp_check_interval * HZ) { in kmmpd()
237 mmp_check_interval = max(min(EXT4_MMP_CHECK_MULT * diff / HZ, in kmmpd()
326 if (schedule_timeout_interruptible(HZ * wait_time) != 0) { in ext4_multi_mount_protect()
355 if (schedule_timeout_interruptible(HZ * wait_time) != 0) { in ext4_multi_mount_protect()
/linux-4.4.14/Documentation/scheduler/
Dsched-nice-design.txt10 units were driven by the HZ tick, so the smallest timeslice was 1/HZ.
40 HZ=1000 it caused 1 jiffy to be 1 msec, which meant 0.1% CPU usage which
47 So for HZ=1000 we changed nice +19 to 5msecs, because that felt like the
49 But the fundamental HZ-sensitive property for nice+19 still remained,
55 within the constraints of HZ and jiffies and their nasty design level
87 enough), the scheduler was decoupled from 'time slice' and HZ concepts
90 support: with the new scheduler nice +19 tasks get a HZ-independent
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dlib-socket.c256 long ticks = timeout * HZ; in lnet_sock_write()
276 .tv_sec = ticks / HZ, in lnet_sock_write()
277 .tv_usec = ((ticks % HZ) * 1000000) / HZ in lnet_sock_write()
317 long ticks = timeout * HZ; in lnet_sock_read()
335 .tv_sec = ticks / HZ, in lnet_sock_read()
336 .tv_usec = ((ticks % HZ) * 1000000) / HZ in lnet_sock_read()
/linux-4.4.14/net/irda/ircomm/
Dircomm_tty_attach.c665 ircomm_tty_start_watchdog_timer(self, 3*HZ); in ircomm_tty_state_idle()
687 ircomm_tty_start_watchdog_timer(self, 3*HZ); in ircomm_tty_state_idle()
754 ircomm_tty_start_watchdog_timer(self, 3*HZ); in ircomm_tty_state_search()
769 ircomm_tty_start_watchdog_timer(self, 3*HZ); in ircomm_tty_state_search()
815 ircomm_tty_start_watchdog_timer(self, 3*HZ); in ircomm_tty_state_query_parameters()
821 ircomm_tty_start_watchdog_timer(self, 3*HZ); in ircomm_tty_state_query_parameters()
864 ircomm_tty_start_watchdog_timer(self, 3*HZ); in ircomm_tty_state_query_lsap_sel()
870 ircomm_tty_start_watchdog_timer(self, 3*HZ); in ircomm_tty_state_query_lsap_sel()
931 ircomm_tty_start_watchdog_timer(self, 3*HZ); in ircomm_tty_state_setup()
969 ircomm_tty_start_watchdog_timer(self, 3*HZ); in ircomm_tty_state_ready()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_proto_tcp.c369 [IP_VS_TCP_S_NONE] = 2*HZ,
370 [IP_VS_TCP_S_ESTABLISHED] = 15*60*HZ,
371 [IP_VS_TCP_S_SYN_SENT] = 2*60*HZ,
372 [IP_VS_TCP_S_SYN_RECV] = 1*60*HZ,
373 [IP_VS_TCP_S_FIN_WAIT] = 2*60*HZ,
374 [IP_VS_TCP_S_TIME_WAIT] = 2*60*HZ,
375 [IP_VS_TCP_S_CLOSE] = 10*HZ,
376 [IP_VS_TCP_S_CLOSE_WAIT] = 60*HZ,
377 [IP_VS_TCP_S_LAST_ACK] = 30*HZ,
378 [IP_VS_TCP_S_LISTEN] = 2*60*HZ,
[all …]
/linux-4.4.14/arch/mips/mti-malta/
Dmalta-display.c40 static DEFINE_TIMER(mips_scroll_timer, scroll_display_message, HZ, 0);
48 mod_timer(&mips_scroll_timer, jiffies + HZ); in scroll_display_message()
/linux-4.4.14/drivers/target/
Dtarget_core_pscsi.h15 #define PS_TIMEOUT_DISK (15*HZ)
16 #define PS_TIMEOUT_OTHER (500*HZ)
/linux-4.4.14/drivers/net/fjes/
Dfjes.h31 #define FJES_TX_RETRY_INTERVAL (20 * HZ)
35 #define FJES_IRQ_WATCH_DELAY (HZ)
/linux-4.4.14/drivers/atm/
Didt77105.h87 #define IDT77105_STATS_TIMER_PERIOD (HZ)
89 #define IDT77105_RESTART_TIMER_PERIOD (5 * HZ)
/linux-4.4.14/include/net/caif/
Dcaif_hsi.h83 #define CFHSI_INACTIVITY_TOUT (1 * HZ)
87 #define CFHSI_WAKE_TOUT (3 * HZ)
91 #define CFHSI_MAX_RX_RETRIES (10 * HZ)
/linux-4.4.14/arch/parisc/kernel/
Dbinfmt_elf32.c100 value->tv_usec = (jiffies % HZ) * (1000000L / HZ); in cputime_to_compat_timeval()
101 value->tv_sec = jiffies / HZ; in cputime_to_compat_timeval()
/linux-4.4.14/arch/sparc/kernel/
Dsmp_32.c88 num, bogosum/(500000/HZ), in smp_cpus_done()
89 (bogosum/(5000/HZ))%100); in smp_cpus_done()
386 cpu_data(i).udelay_val/(500000/HZ), in smp_bogo()
387 (cpu_data(i).udelay_val/(5000/HZ))%100); in smp_bogo()
Dled.c41 ((1 + (avenrun[0] >> FSHIFT)) * HZ); in led_blink()
44 led_blink_timer.expires = jiffies + (timeout * HZ); in led_blink()
/linux-4.4.14/arch/mn10300/kernel/
Dsetup.c252 c->loops_per_jiffy / (500000 / HZ), in show_cpuinfo()
253 (c->loops_per_jiffy / (5000 / HZ)) % 100 in show_cpuinfo()
255 loops_per_jiffy / (500000 / HZ), in show_cpuinfo()
256 (loops_per_jiffy / (5000 / HZ)) % 100 in show_cpuinfo()
/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/linux/
Dlinux-time.h73 return ((long)seconds) * HZ; in cfs_time_seconds()
78 return d / HZ; in cfs_duration_sec()
/linux-4.4.14/drivers/soc/mediatek/
Dmtk-infracfg.c40 expired = jiffies + HZ; in mtk_infracfg_set_bus_protection()
73 expired = jiffies + HZ; in mtk_infracfg_clear_bus_protection()
/linux-4.4.14/net/can/
Dproc.c116 if (count > (ULONG_MAX / HZ)) { in calc_rate()
122 rate = (count * HZ) / (newjif - oldjif); in calc_rate()
140 if (can_stats.rx_frames > (ULONG_MAX / HZ)) in can_stat_update()
144 if (can_stats.tx_frames > (ULONG_MAX / HZ)) in can_stat_update()
167 can_stats.current_tx_rate = calc_rate(0, HZ, can_stats.tx_frames_delta); in can_stat_update()
168 can_stats.current_rx_rate = calc_rate(0, HZ, can_stats.rx_frames_delta); in can_stat_update()
186 mod_timer(&can_stattimer, round_jiffies(jiffies + HZ)); in can_stat_update()
/linux-4.4.14/arch/xtensa/kernel/
Dtime.c174 loops_per_jiffy = ccount_freq / HZ; in calibrate_delay()
177 loops_per_jiffy/(1000000/HZ), in calibrate_delay()
178 (loops_per_jiffy/(10000/HZ)) % 100); in calibrate_delay()
/linux-4.4.14/drivers/mtd/chips/
Dcfi_cmdset_0020.c264 timeo = jiffies + HZ; in do_read_onechip()
356 timeo = jiffies + HZ; in do_read_onechip()
439 timeo = jiffies + HZ; in do_write_buffer()
489 timeo = jiffies + HZ; in do_write_buffer()
536 timeo = jiffies + (HZ/2); in do_write_buffer()
546 timeo = jiffies + (HZ / 2); /* FIXME */ in do_write_buffer()
745 timeo = jiffies + HZ; in do_erase_oneblock()
782 timeo = jiffies + HZ; in do_erase_oneblock()
802 timeo = jiffies + (HZ*20); in do_erase_oneblock()
811 timeo = jiffies + (HZ*20); /* FIXME */ in do_erase_oneblock()
[all …]
/linux-4.4.14/net/lapb/
Dlapb_iface.c209 parms->t1 = lapb->t1 / HZ; in lapb_getparms()
210 parms->t2 = lapb->t2 / HZ; in lapb_getparms()
220 parms->t1timer = (lapb->t1timer.expires - jiffies) / HZ; in lapb_getparms()
225 parms->t2timer = (lapb->t2timer.expires - jiffies) / HZ; in lapb_getparms()
258 lapb->t1 = parms->t1 * HZ; in lapb_setparms()
259 lapb->t2 = parms->t2 * HZ; in lapb_setparms()
/linux-4.4.14/kernel/rcu/
Drcutorture.c58 torture_param(int, cbflood_inter_holdoff, HZ,
492 const long uspertick = 1000000 / HZ; in srcu_read_delay()
756 endtime = oldstarttime + test_boost_duration * HZ; in rcu_torture_boost()
765 test_boost_duration * HZ - HZ / 2) { in rcu_torture_boost()
787 test_boost_interval * HZ; in rcu_torture_boost()
874 fqs_resume_time = jiffies + fqs_stutter * HZ; in rcu_torture_fqs()
1181 schedule_timeout_interruptible(HZ); in rcu_torture_reader()
1328 schedule_timeout_interruptible(stat_interval * HZ); in rcu_torture_stats()
1412 schedule_timeout_interruptible(stall_cpu_holdoff * HZ); in rcu_torture_stall()
1429 schedule_timeout_interruptible(10 * HZ); in rcu_torture_stall()
[all …]
Dupdate.c445 #define RCU_STALL_DELAY_DELTA (5 * HZ)
471 return till_stall_check * HZ + RCU_STALL_DELAY_DELTA; in rcu_jiffies_till_stall_check()
528 static int rcu_task_stall_timeout __read_mostly = HZ * 60 * 10;
678 schedule_timeout_interruptible(HZ/10); in rcu_tasks_kthread()
740 schedule_timeout_interruptible(HZ); in rcu_tasks_kthread()
786 schedule_timeout_uninterruptible(HZ/10); in rcu_tasks_kthread()
/linux-4.4.14/drivers/pps/clients/
Dpps-ktimer.c51 mod_timer(&ktimer, jiffies + HZ); in pps_ktimer_event()
89 mod_timer(&ktimer, jiffies + HZ); in pps_ktimer_init()
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2x00lib.h31 #define WATCHDOG_INTERVAL round_jiffies_relative(HZ)
32 #define LINK_TUNE_INTERVAL round_jiffies_relative(HZ)
33 #define AGC_INTERVAL round_jiffies_relative(4 * HZ)
34 #define VCO_INTERVAL round_jiffies_relative(10 * HZ) /* 10 sec */
/linux-4.4.14/drivers/s390/crypto/
Dzcrypt_pcixcc.c59 #define PCIXCC_CLEANUP_TIME (15*HZ)
237 for (i = 0; i < 2 * HZ; i++) { in zcrypt_pcixcc_rng_supported()
238 msleep(1000 / HZ); in zcrypt_pcixcc_rng_supported()
244 if (i >= 2 * HZ) { in zcrypt_pcixcc_rng_supported()
/linux-4.4.14/drivers/isdn/isdnloop/
Disdnloop.h57 #define ISDNLOOP_TIMER_DCREAD (HZ/2) /* D-Channel poll-cycle */
58 #define ISDNLOOP_TIMER_ALERTWAIT (10 * HZ) /* Alert timeout */
/linux-4.4.14/arch/mips/netlogic/common/
Dtime.c105 preset_lpj = mips_hpt_frequency / (3 * HZ); in plat_time_init()
107 preset_lpj = mips_hpt_frequency / (2 * HZ); in plat_time_init()
/linux-4.4.14/arch/mips/mti-sead3/
Dsead3-display.c26 static DEFINE_TIMER(mips_scroll_timer, scroll_display_message, HZ, 0);
69 mod_timer(&mips_scroll_timer, jiffies + HZ); in scroll_display_message()
/linux-4.4.14/net/decnet/
Ddn_timer.c34 #define SLOW_INTERVAL (HZ/2)
57 sk_reset_timer(sk, &sk->sk_timer, jiffies + HZ / 10); in dn_slow_timer()
Ddn_neigh.c88 .reachable_time = 30 * HZ,
93 [NEIGH_VAR_RETRANS_TIME] = 1 * HZ,
94 [NEIGH_VAR_BASE_REACHABLE_TIME] = 30 * HZ,
95 [NEIGH_VAR_DELAY_PROBE_TIME] = 5 * HZ,
96 [NEIGH_VAR_GC_STALETIME] = 60 * HZ,
101 [NEIGH_VAR_LOCKTIME] = 1 * HZ,
104 .gc_interval = 30 * HZ,
/linux-4.4.14/net/core/
Dlink_watch.c130 if (delay > HZ) in linkwatch_schedule_work()
182 linkwatch_nextevent = jiffies + HZ; in __linkwatch_run_queue()
184 else if (time_after(linkwatch_nextevent, jiffies + HZ)) in __linkwatch_run_queue()
/linux-4.4.14/drivers/media/pci/pt1/
Dva1j5jf8007t.c282 *delay = 3 * HZ; in va1j5jf8007t_tune()
302 *delay = (HZ + 999) / 1000; in va1j5jf8007t_tune()
330 *delay = 3 * HZ; in va1j5jf8007t_tune()
334 *delay = (HZ + 999) / 1000; in va1j5jf8007t_tune()
343 *delay = 3 * HZ; in va1j5jf8007t_tune()
348 *delay = 3 * HZ; in va1j5jf8007t_tune()
Dva1j5jf8007s.c403 *delay = 3 * HZ; in va1j5jf8007s_tune()
423 *delay = (HZ + 99) / 100; in va1j5jf8007s_tune()
443 *delay = (HZ + 999) / 1000; in va1j5jf8007s_tune()
469 *delay = (HZ + 49) / 50; in va1j5jf8007s_tune()
493 *delay = (HZ + 99) / 100; in va1j5jf8007s_tune()
502 *delay = 3 * HZ; in va1j5jf8007s_tune()
/linux-4.4.14/arch/cris/arch-v10/kernel/
Dsetup.c93 (loops_per_jiffy * HZ + 500) / 500000, in show_cpuinfo()
94 ((loops_per_jiffy * HZ + 500) / 5000) % 100); in show_cpuinfo()
/linux-4.4.14/net/dccp/ccids/
Dccid3.h58 #if (HZ >= 500)
61 # define TFRC_T_DELTA (USEC_PER_SEC / (2 * HZ))
/linux-4.4.14/drivers/usb/storage/
Dinitializers.c54 0x01, 0x0, NULL, 0x0, 5 * HZ); in usb_stor_euscsi_init()
102 0x01, 0x0, NULL, 0x0, 1 * HZ); in usb_stor_huawei_e220_init()
/linux-4.4.14/arch/nios2/kernel/
Dcpuinfo.c141 (loops_per_jiffy * HZ) / 500000, in show_cpuinfo()
142 ((loops_per_jiffy * HZ) / 5000) % 100, in show_cpuinfo()
143 (loops_per_jiffy * HZ)); in show_cpuinfo()
/linux-4.4.14/drivers/block/
Dcpqarray.h42 #define IDA_TIMER (5*HZ)
43 #define IDA_TIMEOUT (10*HZ)
Dfloppy.c357 #define SEL_DLY (2 * HZ / 100)
381 {{0, 500, 16, 16, 8000, 1*HZ, 3*HZ, 0, SEL_DLY, 5, 80, 3*HZ, 20, {3,1,2,0,2}, 0,
382 0, { 7, 4, 8, 2, 1, 5, 3,10}, 3*HZ/2, 0 }, "unknown" },
384 {{1, 300, 16, 16, 8000, 1*HZ, 3*HZ, 0, SEL_DLY, 5, 40, 3*HZ, 17, {3,1,2,0,2}, 0,
385 0, { 1, 0, 0, 0, 0, 0, 0, 0}, 3*HZ/2, 1 }, "360K PC" }, /*5 1/4 360 KB PC*/
387 {{2, 500, 16, 16, 6000, 4*HZ/10, 3*HZ, 14, SEL_DLY, 6, 83, 3*HZ, 17, {3,1,2,0,2}, 0,
388 0, { 2, 5, 6,23,10,20,12, 0}, 3*HZ/2, 2 }, "1.2M" }, /*5 1/4 HD AT*/
390 {{3, 250, 16, 16, 3000, 1*HZ, 3*HZ, 0, SEL_DLY, 5, 83, 3*HZ, 20, {3,1,2,0,2}, 0,
391 0, { 4,22,21,30, 3, 0, 0, 0}, 3*HZ/2, 4 }, "720k" }, /*3 1/2 DD*/
393 {{4, 500, 16, 16, 4000, 4*HZ/10, 3*HZ, 10, SEL_DLY, 5, 83, 3*HZ, 20, {3,1,2,0,2}, 0,
[all …]
/linux-4.4.14/drivers/clocksource/
Dtimer-integrator-ap.c149 if (rate > 0x100000 * HZ) { in integrator_clockevent_init()
152 } else if (rate > 0x10000 * HZ) { in integrator_clockevent_init()
156 timer_reload = rate / HZ; in integrator_clockevent_init()
Dclps711x-timer.c84 writew(DIV_ROUND_CLOSEST(rate, HZ), base); in _clps711x_clkevt_init()
90 clockevents_config_and_register(clkevt, HZ, 0, 0); in _clps711x_clkevt_init()
Dtime-orion.c142 ticks_per_jiffy = (clk_get_rate(clk) + HZ/2) / HZ; in orion_timer_init()
/linux-4.4.14/drivers/parisc/
Dled.c434 #define HEARTBEAT_LEN (HZ*10/100)
435 #define HEARTBEAT_2ND_RANGE_START (HZ*28/100)
438 #define LED_UPDATE_INTERVAL (1 + (HZ*19/1000))
453 if (count_HZ >= HZ) in led_work_func()
475 currentleds = (count_HZ <= (HZ/2)) ? 0 : 0xff; in led_work_func()
478 if (count_HZ <= (HZ/2)) in led_work_func()
Dpower.c123 schedule_timeout_interruptible(pwrsw_enabled ? HZ : HZ/POWERSWITCH_POLL_PER_SEC); in kpowerswd()
/linux-4.4.14/samples/trace_events/
Dtrace-events-sample.c28 schedule_timeout(HZ); in simple_thread_func()
63 schedule_timeout(HZ); in simple_thread_func_fn()
/linux-4.4.14/arch/frv/kernel/
Dtime.c78 base = __res_bus_clock_speed_HZ / pre / HZ / (1 << prediv); in time_divisor_init()
121 return jiffies_64 * (1000000000 / HZ); in sched_clock()
/linux-4.4.14/drivers/net/ethernet/sun/
Dsunvnet.h12 #define VNET_TX_TIMEOUT (5 * HZ)
17 #define VNET_CLEAN_TIMEOUT ((HZ/100)+1)
/linux-4.4.14/arch/arm/mach-omap1/
Dtimer32k.c84 #define OMAP_32K_TIMER_TICK_PERIOD ((OMAP_32K_TICKS_PER_SEC / HZ) - 1)
87 (((nr_jiffies) * (clock_rate)) / HZ)
/linux-4.4.14/arch/arm/mach-ebsa110/
Dcore.c154 #define COUNT ((CLKBY7 + (HZ / 2)) / HZ)
182 offset = offset * (1000000 / HZ) / COUNT; in ebsa110_gettimeoffset()
/linux-4.4.14/drivers/phy/
Dphy-pxa-28nm-hsic.c88 PHY_28NM_HSIC_H2S_PLL_LOCK, HZ / 10)) { in mv_hsic_phy_init()
121 PHY_28NM_HSIC_H2S_IMPCAL_DONE, HZ / 10)) { in mv_hsic_phy_power_on()
128 PHY_28NM_HSIC_CONNECT_INT, HZ / 5)) { in mv_hsic_phy_power_on()
/linux-4.4.14/drivers/staging/fwserial/
Dfwserial.h120 #define CONNECT_RETRY_DELAY HZ
160 #define VIRT_CABLE_PLUG_TIMEOUT (60 * HZ)
292 #define FREQ_BREAKS (HZ / 50)
/linux-4.4.14/include/net/bluetooth/
Drfcomm.h27 #define RFCOMM_CONN_TIMEOUT (HZ * 30)
28 #define RFCOMM_DISC_TIMEOUT (HZ * 20)
29 #define RFCOMM_AUTH_TIMEOUT (HZ * 25)
30 #define RFCOMM_IDLE_TIMEOUT (HZ * 2)
/linux-4.4.14/drivers/firewire/
Dcore-card.c248 delayed ? DIV_ROUND_UP(HZ, 100) : 0)) in fw_schedule_bus_reset()
259 time_before64(get_jiffies_64(), card->reset_jiffies + 2 * HZ)) { in br_work()
260 if (!queue_delayed_work(fw_workqueue, &card->br_work, 2 * HZ)) in br_work()
343 card->reset_jiffies + DIV_ROUND_UP(HZ, 8)); in bm_work()
410 fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); in bm_work()
434 fw_schedule_bm_work(card, DIV_ROUND_UP(HZ, 8)); in bm_work()
542 DIV_ROUND_UP(DEFAULT_SPLIT_TIMEOUT * HZ, 8000); in fw_card_initialize()
/linux-4.4.14/include/drm/
Ddrm_os_linux.h57 schedule_timeout((HZ/100 > 1) ? HZ/100 : 1); \
/linux-4.4.14/arch/tile/kernel/
Dproc.c57 loops_per_jiffy/(500000/HZ), in show_cpuinfo()
58 (loops_per_jiffy/(5000/HZ)) % 100); in show_cpuinfo()
Dtime.c99 loops_per_jiffy = get_clock_rate() / HZ; in calibrate_delay()
101 loops_per_jiffy / (500000 / HZ), in calibrate_delay()
102 (loops_per_jiffy / (5000 / HZ)) % 100, loops_per_jiffy); in calibrate_delay()
/linux-4.4.14/arch/s390/kernel/
Dprocessor.c72 num_online_cpus(), loops_per_jiffy/(500000/HZ), in show_cpuinfo()
73 (loops_per_jiffy/(5000/HZ))%100); in show_cpuinfo()
/linux-4.4.14/arch/alpha/kernel/
Dsmp.c102 unsigned long stop = jiffies + 10*HZ; in wait_boot_cpu_to_stop()
183 timeout = jiffies + 10*HZ; in wait_for_txrdy()
343 timeout = jiffies + 10*HZ; in secondary_cpu_start()
379 timeout = jiffies + 1*HZ; in smp_boot_one_cpu()
498 (bogosum + 2500) / (500000/HZ), in smp_cpus_done()
499 ((bogosum + 2500) / (5000/HZ)) % 100); in smp_cpus_done()
/linux-4.4.14/drivers/staging/wilc1000/
Dwilc_wfi_cfgoperations.h49 #define nl80211_SCAN_RESULT_EXPIRE (3 * HZ)
50 #define SCAN_RESULT_EXPIRE (40 * HZ)
/linux-4.4.14/drivers/usb/host/
Doxu210hp.h435 #define EHCI_IAA_JIFFIES (HZ/100) /* arbitrary; ~10 msec */
436 #define EHCI_IO_JIFFIES (HZ/10) /* io watchdog > irq_thresh */
437 #define EHCI_ASYNC_JIFFIES (HZ/20) /* async idle timeout */
438 #define EHCI_SHRINK_JIFFIES (HZ/200) /* async qh unlink delay */
/linux-4.4.14/drivers/mtd/devices/
Dbcm47xxsflash.c91 err = bcm47xxsflash_poll(b47s, HZ); in bcm47xxsflash_erase()
158 if (bcm47xxsflash_poll(b47s, HZ / 10)) in bcm47xxsflash_write_st()
180 err = bcm47xxsflash_poll(b47s, HZ / 1000); in bcm47xxsflash_write_at()
312 if (bcm47xxsflash_poll(b47s, HZ / 10)) in bcm47xxsflash_bcma_probe()
/linux-4.4.14/mm/
Dpage-writeback.c47 #define MAX_PAUSE max(HZ/5, 1)
58 #define BANDWIDTH_INTERVAL max(HZ/5, 1)
153 #define VM_COMPLETIONS_PERIOD_LEN (3*HZ)
1046 const unsigned long period = roundup_pow_of_two(3 * HZ); in wb_update_write_bandwidth()
1062 bw *= HZ; in wb_update_write_bandwidth()
1167 dirty_rate = (dirtied - wb->dirtied_stamp) * HZ / elapsed; in wb_update_dirty_ratelimit()
1329 if (elapsed > HZ && time_before(wb->bw_time_stamp, start_time)) in __wb_update_bandwidth()
1390 t = wb_dirty / (1 + bw / roundup_pow_of_two(1 + HZ / 8)); in wb_max_pause()
1409 t = max(1, HZ / 100); in wb_min_pause()
1418 t += (hi - lo) * (10 * HZ) / 1024; in wb_min_pause()
[all …]
/linux-4.4.14/net/sunrpc/xprtrdma/
Dtransport.c146 #define RPCRDMA_BIND_TO (60U * HZ)
147 #define RPCRDMA_INIT_REEST_TO (5U * HZ)
148 #define RPCRDMA_MAX_REEST_TO (30U * HZ)
149 #define RPCRDMA_IDLE_DISC_TO (5U * 60 * HZ)
287 .to_initval = 60 * HZ,
288 .to_maxval = 60 * HZ,
648 idle_time = (long)(jiffies - xprt->last_used) / HZ; in xprt_rdma_print_stats()
/linux-4.4.14/drivers/block/paride/
Dpg.c183 #define PG_TMO HZ
184 #define PG_RESET_TMO 10*HZ
398 pg_sleep(20 * HZ / 1000); in pg_reset()
609 dev->timeout = hdr.timeout * HZ + HZ / 2 + jiffies; in pg_write()
654 hdr.duration = (jiffies - dev->start + HZ / 2) / HZ; in pg_read()
/linux-4.4.14/arch/ia64/sn/kernel/
Dbte_error.c81 mod_timer(recovery_timer, jiffies + (HZ * 5)); in shub1_bte_error_handler()
98 mod_timer(recovery_timer, jiffies + (HZ * 5)); in shub1_bte_error_handler()
157 mod_timer(recovery_timer, jiffies + (HZ * 5)); in shub2_bte_error_handler()
/linux-4.4.14/drivers/net/wireless/zd1211rw/
Dzd_usb.h34 #define ZD_TX_TIMEOUT (HZ * 5)
35 #define ZD_TX_WATCHDOG_INTERVAL round_jiffies_relative(HZ)
36 #define ZD_RX_IDLE_INTERVAL round_jiffies_relative(30 * HZ)
/linux-4.4.14/arch/sh/kernel/
Dsetup.c182 loops_per_jiffy = (clk_get_rate(clk) >> 1) / HZ; in calibrate_delay()
186 loops_per_jiffy/(500000/HZ), in calibrate_delay()
187 (loops_per_jiffy/(5000/HZ)) % 100, in calibrate_delay()
/linux-4.4.14/arch/arm/mach-footbridge/
Ddc21285-timer.c69 *CSR_TIMER1_LOAD = (mem_fclk_21285 + 8 * HZ) / (16 * HZ); in ckevt_dc21285_set_periodic()
/linux-4.4.14/drivers/tty/
Dtty_port.c29 port->close_delay = (50 * HZ) / 100; in tty_port_init()
30 port->closing_wait = (3000 * HZ) / 100; in tty_port_init()
446 timeout = (HZ * 10 * port->drain_delay) / bps; in tty_port_drain_delay()
447 timeout = max_t(long, timeout, HZ / 10); in tty_port_drain_delay()
449 timeout = 2 * HZ; in tty_port_drain_delay()
/linux-4.4.14/drivers/isdn/hisax/
Davm_a1.c252 HZDELAY(HZ / 5 + 1); in setup_avm_a1()
254 HZDELAY(HZ / 5 + 1); in setup_avm_a1()
256 HZDELAY(HZ / 5 + 1); in setup_avm_a1()
261 HZDELAY(HZ / 5 + 1); in setup_avm_a1()
263 HZDELAY(HZ / 5 + 1); in setup_avm_a1()
Davm_a1p.c183 HZDELAY(HZ / 5 + 1); in AVM_card_msg()
185 HZDELAY(HZ / 5 + 1); in AVM_card_msg()
235 HZDELAY(HZ / 5 + 1); in setup_avm_a1_pcmcia()
237 HZDELAY(HZ / 5 + 1); in setup_avm_a1_pcmcia()
/linux-4.4.14/drivers/media/dvb-core/
Ddvb_ca_en50221.c318 if ((ret = dvb_ca_en50221_wait_if_status(ca, slot, STATUSREG_DA, HZ / 10)) != 0) in dvb_ca_en50221_link_init()
337 if ((ret = dvb_ca_en50221_wait_if_status(ca, slot, STATUSREG_FR, HZ / 10)) != 0) in dvb_ca_en50221_link_init()
933 delay = HZ * 60; /* 60s */ in dvb_ca_en50221_thread_update_delay()
935 delay = HZ * 5; /* 5s */ in dvb_ca_en50221_thread_update_delay()
938 delay = HZ * 60; /* 60s */ in dvb_ca_en50221_thread_update_delay()
940 delay = HZ / 10; /* 100ms */ in dvb_ca_en50221_thread_update_delay()
948 delay = HZ / 10; /* 100ms */ in dvb_ca_en50221_thread_update_delay()
952 delay = HZ * 60; /* 60s */ in dvb_ca_en50221_thread_update_delay()
954 delay = HZ / 10; /* 100ms */ in dvb_ca_en50221_thread_update_delay()
958 delay = HZ / 10; /* 100ms */ in dvb_ca_en50221_thread_update_delay()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ar5523/
Dar5523.h51 #define AR5523_TX_WD_TIMEOUT (HZ * 2)
52 #define AR5523_FLUSH_TIMEOUT (HZ * 3)
/linux-4.4.14/arch/cris/arch-v32/kernel/
Dsetup.c103 (loops_per_jiffy * HZ + 500) / 500000, in show_cpuinfo()
104 ((loops_per_jiffy * HZ + 500) / 5000) % 100); in show_cpuinfo()
/linux-4.4.14/fs/xfs/
Dkmem.c61 congestion_wait(BLK_RW_ASYNC, HZ/50); in kmem_alloc()
127 congestion_wait(BLK_RW_ASYNC, HZ/50); in kmem_zone_alloc()
/linux-4.4.14/drivers/infiniband/hw/nes/
Dnes_cm.h173 #define NES_RETRY_TIMEOUT (1000*HZ/1000)
175 #define NES_RETRY_TIMEOUT (3000*HZ/1000)
178 #define NES_LONG_TIME (2000*HZ/1000)
179 #define NES_MAX_TIMEOUT ((unsigned long) (12*HZ))
/linux-4.4.14/sound/usb/line6/
Ddriver.c104 &partial, LINE6_TIMEOUT * HZ); in line6_send_raw_message()
320 NULL, 0, LINE6_TIMEOUT * HZ); in line6_read_data()
335 LINE6_TIMEOUT * HZ); in line6_read_data()
362 LINE6_TIMEOUT * HZ); in line6_read_data()
390 LINE6_TIMEOUT * HZ); in line6_write_data()
406 &status, 1, LINE6_TIMEOUT * HZ); in line6_write_data()
/linux-4.4.14/drivers/net/slip/
Dslip.c474 if (time_before(jiffies, dev_trans_start(dev) + 20 * HZ)) {
621 dev->watchdog_timeo = 20*HZ;
840 sl->keepalive_timer.expires = jiffies + sl->keepalive * HZ;
844 sl->outfill_timer.expires = jiffies + sl->outfill * HZ;
1132 jiffies + sl->keepalive * HZ);
1157 jiffies + sl->outfill * HZ);
1227 jiffies + sl->keepalive * HZ;
1229 jiffies + sl->keepalive * HZ);
1247 jiffies + sl->outfill * HZ);
1334 unsigned long timeout = jiffies + HZ;
[all …]
/linux-4.4.14/drivers/net/wireless/cw1200/
Dcw1200.h51 #define CW1200_BLOCK_ACK_INTERVAL (1 * HZ / CW1200_BLOCK_ACK_HIST)
53 #define CW1200_JOIN_TIMEOUT (1 * HZ)
54 #define CW1200_AUTH_TIMEOUT (5 * HZ)
Dbh.c142 1 * HZ) ? 0 : -ETIMEDOUT; in cw1200_bh_suspend()
157 1 * HZ) ? 0 : -ETIMEDOUT; in cw1200_bh_resume()
440 status = 1 * HZ; in cw1200_bh()
446 status = 1 * HZ; in cw1200_bh()
502 1 * HZ - in cw1200_bh()
/linux-4.4.14/sound/soc/txx9/
Dtxx9aclc-ac97.c61 if (!wait_event_timeout(ac97_waitq, txx9aclc_regready(txx9aclc_drvdata), HZ)) { in txx9aclc_ac97_read()
91 if (!wait_event_timeout(ac97_waitq, txx9aclc_regready(txx9aclc_drvdata), HZ)) { in txx9aclc_ac97_write()
112 HZ)) { in txx9aclc_ac97_cold_reset()
/linux-4.4.14/drivers/video/backlight/
Dcr_bllcd.c131 schedule_timeout(HZ / 10); in cr_panel_on()
139 schedule_timeout(HZ / 10); in cr_panel_on()
155 schedule_timeout(HZ / 10); in cr_panel_off()
/linux-4.4.14/drivers/isdn/pcbit/
Dpcbit.h101 #define STATS_TIMER (10 * HZ)
102 #define ERRTIME (HZ / 10)
/linux-4.4.14/net/mac80211/
Dsta_info.h101 #define ADDBA_RESP_INTERVAL HZ
104 #define HT_AGG_RETRIES_PERIOD (15 * HZ)
581 #define STA_TX_BUFFER_EXPIRE (10 * HZ)
585 #define STA_INFO_CLEANUP_INTERVAL (10 * HZ)
/linux-4.4.14/drivers/xen/
Dxen-selfballoon.c241 selfballoon_interval * HZ); in selfballoon_process()
279 selfballoon_interval * HZ); in store_selfballooning()
436 selfballoon_interval * HZ); in store_frontswap_selfshrinking()
575 schedule_delayed_work(&selfballoon_worker, selfballoon_interval * HZ); in xen_selfballoon_init()
/linux-4.4.14/arch/metag/kernel/
Dsetup.c492 lpj / (500000 / HZ), (lpj / (5000 / HZ)) % 100, in show_cpuinfo()
504 loops_per_jiffy / (500000 / HZ), in show_cpuinfo()
505 (loops_per_jiffy / (5000 / HZ)) % 100, in show_cpuinfo()
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
Dmt7601u.h29 #define MT_CALIBRATE_INTERVAL (4 * HZ)
31 #define MT_FREQ_CAL_INIT_DELAY (30 * HZ)
32 #define MT_FREQ_CAL_CHECK_INTERVAL (10 * HZ)
33 #define MT_FREQ_CAL_ADJ_INTERVAL (HZ / 2)
/linux-4.4.14/arch/powerpc/platforms/powermac/
Dsetup.c287 loops_per_jiffy = 50000000 / HZ; in pmac_setup_arch()
294 loops_per_jiffy = *fp / (3 * HZ); in pmac_setup_arch()
297 loops_per_jiffy = *fp / HZ; in pmac_setup_arch()
300 loops_per_jiffy = *fp / (2 * HZ); in pmac_setup_arch()
/linux-4.4.14/arch/mips/dec/
Dtime.c130 int i = HZ / 8; in plat_time_init()
133 ds1287_set_base_clock(HZ); in plat_time_init()
/linux-4.4.14/arch/microblaze/kernel/cpu/
Dmb.c61 loops_per_jiffy / (500000 / HZ), in show_cpuinfo()
62 (loops_per_jiffy / (5000 / HZ)) % 100); in show_cpuinfo()
/linux-4.4.14/drivers/staging/rdma/amso1100/
Dc2_vq.c210 schedule_timeout(1 * HZ); /* 1 second... */ in vq_send_wr()
248 60*HZ)) in vq_wait_for_reply()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dreset.c61 #define MLX4_SEM_TIMEOUT_JIFFIES (10 * HZ) in mlx4_reset()
62 #define MLX4_RESET_TIMEOUT_JIFFIES (2 * HZ) in mlx4_reset()
/linux-4.4.14/drivers/net/ethernet/toshiba/
Dspider_net.h53 #define SPIDER_NET_TX_TIMER (HZ/5)
54 #define SPIDER_NET_ANEG_TIMER (HZ)
59 #define SPIDER_NET_WATCHDOG_TIMEOUT 50*HZ
/linux-4.4.14/include/linux/raid/
Dpq.h167 #undef HZ
168 #define HZ 1000 macro

12345678910>>...13