函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\hpet.c Create Date:2022-07-27 09:42:03
Last Modify:2020-03-16 21:38:50 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:hpet_clkevt_set_state_periodic

函数原型:static int hpet_clkevt_set_state_periodic(struct clock_event_device *evt)

返回类型:int

参数:

类型参数名称
struct clock_event_device *evt
297  channel等于num
301  Common HPET functions
302  delta等于NSEC_PER_SECHZmult
303  delta右移等于shift
304  now等于hpet_readl(HPET_COUNTER)
305  cmp等于nowdelta
306  cfg等于hpet_readl(HPET_Tn_CFG(channel))
307  cfg或等于HPET_TN_ENABLE按位或HPET_TN_PERIODIC按位或HPET_TN_SETVAL按位或HPET_TN_32BIT
309  hpet_writel(cfg, HPET_Tn_CFG(channel))
310  hpet_writel(cmp, HPET_Tn_CMP(channel))
311  0x10c7 is 2**32 / 1000000 (rounded up) (1)
319  hpet_writel((unsignedint)delta, HPET_Tn_CMP(channel))
320  hpet_start_counter()
321  hpet_print_config()
323  返回:0