Home
last modified time | relevance | path

Searched refs:timer_ms (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_heartbeat_dbgfs.c79 unsigned int timer_ms; in adf_hb_cfg_read() local
86 timer_ms = accel_dev->heartbeat->hb_timer; in adf_hb_cfg_read()
87 len = scnprintf(timer_str, sizeof(timer_str), "%u\n", timer_ms); in adf_hb_cfg_read()
99 unsigned int timer_ms; in adf_hb_cfg_write() local
103 timer_ms = ADF_CFG_HB_TIMER_DEFAULT_MS; in adf_hb_cfg_write()
112 ret = kstrtouint(input_str, 10, &timer_ms); in adf_hb_cfg_write()
119 if (timer_ms < ADF_CFG_HB_TIMER_MIN_MS) { in adf_hb_cfg_write()
130 timer_ms = ADF_CFG_HB_TIMER_MIN_MS; in adf_hb_cfg_write()
132 ret = adf_heartbeat_save_cfg_param(accel_dev, timer_ms); in adf_hb_cfg_write()
136 ret = adf_heartbeat_ms_to_ticks(accel_dev, timer_ms, &ticks); in adf_hb_cfg_write()
[all …]
H A Dadf_heartbeat.c101 u32 timer_ms = ADF_CFG_HB_TIMER_DEFAULT_MS; in get_timer_ticks() local
109 if (kstrtouint(timer_str, 10, &timer_ms)) in get_timer_ticks()
115 if (timer_ms < ADF_CFG_HB_TIMER_MIN_MS) { in get_timer_ticks()
126 timer_ms = ADF_CFG_HB_TIMER_MIN_MS; in get_timer_ticks()
128 ret = adf_heartbeat_ms_to_ticks(accel_dev, timer_ms, &ticks); in get_timer_ticks()
132 adf_heartbeat_save_cfg_param(accel_dev, timer_ms); in get_timer_ticks()
134 accel_dev->heartbeat->hb_timer = timer_ms; in get_timer_ticks()
260 unsigned int timer_ms) in adf_heartbeat_save_cfg_param() argument
264 snprintf(timer_str, sizeof(timer_str), "%u", timer_ms); in adf_heartbeat_save_cfg_param()
H A Dadf_heartbeat.h49 unsigned int timer_ms);
70 unsigned int timer_ms) in adf_heartbeat_save_cfg_param() argument