Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\842\842_compress.c Create Date:2022-07-28 06:57:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_template

Proto:static bool check_template(struct sw842_param *p, u8 c)

Type:bool

Parameter:

TypeParameterName
struct sw842_param *p
u8c
382  t = comp_ops[c]
383  b = 0
385  If c >= he max of the regular templates - not including the special templates Then Return false
388  When i < 4 cycle
389  If t[i] & OP_ACTION_INDEX Then
390  If t[i] & OP_AMOUNT_2 Then match = check_index(p, 2, b >> 1)
392  Else if t[i] & OP_AMOUNT_4 Then match = check_index(p, 4, b >> 2)
394  Else if t[i] & OP_AMOUNT_8 Then match = check_index(p, 8, 0)
396  Else Return false
398  If Not match Then Return false
402  b += t[i] & OP_AMOUNT
405  Return true
Caller
NameDescribe
process_nextd the next template to use, and add it* the p->dataN fields must already be set for the current 8 byte block