Home
last modified time | relevance | path

Searched refs:msecs (Results 1 – 25 of 83) sorted by relevance

1234

/Linux-v5.10/arch/powerpc/kexec/
Dcrash.c106 unsigned int msecs; in crash_kexec_prepare_cpus() local
125 msecs = IPI_TIMEOUT; in crash_kexec_prepare_cpus()
126 while ((atomic_read(&cpus_in_crash) < ncpus) && (--msecs > 0)) in crash_kexec_prepare_cpus()
185 int msecs = SECONDARY_TIMEOUT; in crash_kexec_secondary() local
191 if (--msecs < 0) { in crash_kexec_secondary()
229 unsigned int msecs; in crash_kexec_wait_realmode() local
232 msecs = REAL_MODE_TIMEOUT; in crash_kexec_wait_realmode()
233 for (i=0; i < nr_cpu_ids && msecs > 0; i++) { in crash_kexec_wait_realmode()
239 if (!cpu_possible(i) || !cpu_online(i) || (msecs <= 0)) in crash_kexec_wait_realmode()
241 msecs--; in crash_kexec_wait_realmode()
/Linux-v5.10/arch/mips/kernel/
Dcrash.c58 unsigned int msecs; in crash_kexec_prepare_cpus() local
74 msecs = 10000; in crash_kexec_prepare_cpus()
75 while ((cpumask_weight(&cpus_in_crash) < ncpus) && (--msecs > 0)) { in crash_kexec_prepare_cpus()
/Linux-v5.10/drivers/staging/rts5208/
Drtsx.h61 #define wait_timeout_x(task_state, msecs) \ argument
64 schedule_timeout((msecs) * HZ / 1000); \
66 #define wait_timeout(msecs) wait_timeout_x(TASK_INTERRUPTIBLE, (msecs)) argument
/Linux-v5.10/arch/arm/kernel/
Dmachine_kexec.c102 unsigned long msecs; in crash_smp_send_stop() local
109 msecs = 1000; /* Wait at most a second for the other cpus to stop */ in crash_smp_send_stop()
110 while ((atomic_read(&waiting_for_crash_ipi) > 0) && msecs) { in crash_smp_send_stop()
112 msecs--; in crash_smp_send_stop()
/Linux-v5.10/drivers/ide/
Dide-park.c98 unsigned int msecs; in ide_park_show() local
107 msecs = jiffies_to_msecs(drive->sleep - now); in ide_park_show()
109 msecs = 0; in ide_park_show()
112 return snprintf(buf, 20, "%u\n", msecs); in ide_park_show()
/Linux-v5.10/include/linux/
Ddelay.h59 void msleep(unsigned int msecs);
60 unsigned long msleep_interruptible(unsigned int msecs);
Dblk-mq.h502 void blk_mq_delay_kick_requeue_list(struct request_queue *q, unsigned long msecs);
514 void blk_mq_delay_run_hw_queue(struct blk_mq_hw_ctx *hctx, unsigned long msecs);
517 void blk_mq_delay_run_hw_queues(struct request_queue *q, unsigned long msecs);
Dgameport.h208 static inline void gameport_set_poll_interval(struct gameport *gameport, unsigned int msecs) in gameport_set_poll_interval() argument
210 gameport->poll_interval = msecs; in gameport_set_poll_interval()
/Linux-v5.10/drivers/crypto/
Datmel-i2c.c68 cmd->msecs = MAX_EXEC_TIME_READ; in atmel_i2c_init_read_cmd()
83 cmd->msecs = MAX_EXEC_TIME_RANDOM; in atmel_i2c_init_random_cmd()
99 cmd->msecs = MAX_EXEC_TIME_GENKEY; in atmel_i2c_init_genkey_cmd()
130 cmd->msecs = MAX_EXEC_TIME_ECDH; in atmel_i2c_init_ecdh_cmd()
234 msleep(cmd->msecs); in atmel_i2c_send_receive()
Datmel-i2c.h56 u8 msecs; member
/Linux-v5.10/block/
Dblk-stat.h162 unsigned int msecs) in blk_stat_activate_msecs() argument
164 mod_timer(&cb->timer, jiffies + msecs_to_jiffies(msecs)); in blk_stat_activate_msecs()
/Linux-v5.10/net/batman-adv/
Dbat_v_ogm.c89 unsigned int msecs = BATADV_MAX_AGGREGATION_MS * 1000; in batadv_v_ogm_start_queue_timer() local
92 msecs += prandom_u32_max(msecs / 5) - (msecs / 10); in batadv_v_ogm_start_queue_timer()
94 msecs_to_jiffies(msecs / 1000)); in batadv_v_ogm_start_queue_timer()
103 unsigned long msecs; in batadv_v_ogm_start_timer() local
110 msecs = atomic_read(&bat_priv->orig_interval) - BATADV_JITTER; in batadv_v_ogm_start_timer()
111 msecs += prandom_u32_max(2 * BATADV_JITTER); in batadv_v_ogm_start_timer()
113 msecs_to_jiffies(msecs)); in batadv_v_ogm_start_timer()
Dbat_v_elp.c50 unsigned int msecs; in batadv_v_elp_start_timer() local
52 msecs = atomic_read(&hard_iface->bat_v.elp_interval) - BATADV_JITTER; in batadv_v_elp_start_timer()
53 msecs += prandom_u32_max(2 * BATADV_JITTER); in batadv_v_elp_start_timer()
56 msecs_to_jiffies(msecs)); in batadv_v_elp_start_timer()
Dbridge_loop_avoidance.c2368 int secs, msecs; in batadv_bla_backbone_table_seq_print_text() local
2389 msecs = jiffies_to_msecs(jiffies - in batadv_bla_backbone_table_seq_print_text()
2391 secs = msecs / 1000; in batadv_bla_backbone_table_seq_print_text()
2392 msecs = msecs % 1000; in batadv_bla_backbone_table_seq_print_text()
2406 msecs, backbone_crc); in batadv_bla_backbone_table_seq_print_text()
2437 int msecs; in batadv_bla_backbone_dump_entry() local
2457 msecs = jiffies_to_msecs(jiffies - backbone_gw->lasttime); in batadv_bla_backbone_dump_entry()
2470 nla_put_u32(msg, BATADV_ATTR_LAST_SEEN_MSECS, msecs)) { in batadv_bla_backbone_dump_entry()
/Linux-v5.10/drivers/staging/vt6656/
Dwcmd.c31 static void vnt_cmd_timer_wait(struct vnt_private *priv, unsigned long msecs) in vnt_cmd_timer_wait() argument
33 schedule_delayed_work(&priv->run_command_work, msecs_to_jiffies(msecs)); in vnt_cmd_timer_wait()
/Linux-v5.10/arch/x86/kernel/
Dreboot.c848 unsigned long msecs; in nmi_shootdown_cpus() local
872 msecs = 1000; /* Wait at most a second for the other cpus to stop */ in nmi_shootdown_cpus()
873 while ((atomic_read(&waiting_for_crash_ipi) > 0) && msecs) { in nmi_shootdown_cpus()
875 msecs--; in nmi_shootdown_cpus()
/Linux-v5.10/drivers/net/dsa/mv88e6xxx/
Dglobal1_atu.c43 unsigned int msecs) in mv88e6xxx_g1_atu_set_age_time() argument
52 if (msecs < min || msecs > max) in mv88e6xxx_g1_atu_set_age_time()
56 age_time = (msecs + coeff / 2) / coeff; in mv88e6xxx_g1_atu_set_age_time()
/Linux-v5.10/Documentation/locking/
Dhwspinlock.rst93 msecs). If the hwspinlock is already taken, the function will busy loop
101 notably -ETIMEDOUT if the hwspinlock is still busy after timeout msecs).
109 msecs). If the hwspinlock is already taken, the function will busy loop
116 notably -ETIMEDOUT if the hwspinlock is still busy after timeout msecs).
125 msecs). If the hwspinlock is already taken, the function will busy loop
133 notably -ETIMEDOUT if the hwspinlock is still busy after timeout msecs).
142 msecs). If the hwspinlock is already taken, the function will busy loop
150 notably -ETIMEDOUT if the hwspinlock is still busy after timeout msecs).
159 msecs). If the hwspinlock is already taken, the function will busy loop
163 value shall not exceed a few msecs.
[all …]
/Linux-v5.10/drivers/net/wireless/intel/iwlwifi/dvm/
Drx.c144 unsigned int msecs) in iwlagn_good_plcp_health() argument
163 if ((delta * 100 / msecs) > threshold) { in iwlagn_good_plcp_health()
166 threshold, delta, msecs); in iwlagn_good_plcp_health()
218 unsigned int msecs; in iwlagn_recover_from_statistics() local
223 msecs = jiffies_to_msecs(stamp - priv->rx_statistics_jiffies); in iwlagn_recover_from_statistics()
230 if (msecs < 99) in iwlagn_recover_from_statistics()
233 if (!iwlagn_good_plcp_health(priv, cur_ofdm, cur_ofdm_ht, msecs)) in iwlagn_recover_from_statistics()
/Linux-v5.10/drivers/md/
Ddm-rq.c171 static void __dm_mq_kick_requeue_list(struct request_queue *q, unsigned long msecs) in __dm_mq_kick_requeue_list() argument
173 blk_mq_delay_kick_requeue_list(q, msecs); in __dm_mq_kick_requeue_list()
182 static void dm_mq_delay_requeue_request(struct request *rq, unsigned long msecs) in dm_mq_delay_requeue_request() argument
185 __dm_mq_kick_requeue_list(rq->q, msecs); in dm_mq_delay_requeue_request()
/Linux-v5.10/Documentation/timers/
Dtimers-howto.rst28 mdelay(unsigned long msecs)
55 msleep(unsigned long msecs)
56 msleep_interruptible(unsigned long msecs)
/Linux-v5.10/drivers/net/phy/
Dmarvell.c1202 static int m88e1540_get_fld(struct phy_device *phydev, u8 *msecs) in m88e1540_get_fld() argument
1211 *msecs = ETHTOOL_PHY_FAST_LINK_DOWN_OFF; in m88e1540_get_fld()
1219 *msecs = 0; in m88e1540_get_fld()
1222 *msecs = 10; in m88e1540_get_fld()
1225 *msecs = 20; in m88e1540_get_fld()
1228 *msecs = 40; in m88e1540_get_fld()
1237 static int m88e1540_set_fld(struct phy_device *phydev, const u8 *msecs) in m88e1540_set_fld() argument
1242 if (*msecs == ETHTOOL_PHY_FAST_LINK_DOWN_OFF) in m88e1540_set_fld()
1255 if (*msecs <= 5) in m88e1540_set_fld()
1257 else if (*msecs <= 15) in m88e1540_set_fld()
[all …]
/Linux-v5.10/drivers/infiniband/core/
Dsysfs.c862 int msecs; in show_stats_lifespan() local
877 msecs = jiffies_to_msecs(stats->lifespan); in show_stats_lifespan()
880 return sprintf(buf, "%d\n", msecs); in show_stats_lifespan()
889 int msecs; in set_stats_lifespan() local
893 ret = kstrtoint(buf, 10, &msecs); in set_stats_lifespan()
896 if (msecs < 0 || msecs > 10000) in set_stats_lifespan()
898 jiffies = msecs_to_jiffies(msecs); in set_stats_lifespan()
/Linux-v5.10/kernel/
Dpanic.c455 static void spin_msec(int msecs) in spin_msec() argument
459 for (i = 0; i < msecs; i++) { in spin_msec()
/Linux-v5.10/mm/
Dkhugepaged.c134 unsigned long msecs; in scan_sleep_millisecs_store() local
137 err = kstrtoul(buf, 10, &msecs); in scan_sleep_millisecs_store()
138 if (err || msecs > UINT_MAX) in scan_sleep_millisecs_store()
141 khugepaged_scan_sleep_millisecs = msecs; in scan_sleep_millisecs_store()
162 unsigned long msecs; in alloc_sleep_millisecs_store() local
165 err = kstrtoul(buf, 10, &msecs); in alloc_sleep_millisecs_store()
166 if (err || msecs > UINT_MAX) in alloc_sleep_millisecs_store()
169 khugepaged_alloc_sleep_millisecs = msecs; in alloc_sleep_millisecs_store()

1234