Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_op

Proto:static int do_op(struct sw842_param *p, u8 o)

Type:int

Parameter:

TypeParameterName
struct sw842_param *p
u8o
228  ret = 0
230  If o >= he max of the regular templates - not including the special templates Then Return -EINVAL
233  When i < 4 cycle
234  op = decomp_ops[o][i]
236  pr_debug("op is %x\n", op)
239  Case & == OP_ACTION_DATA
240  ret = do_data(p, op & OP_AMOUNT)
241  Break
242  Case & == OP_ACTION_INDEX
243  ret = do_index(p, op & OP_AMOUNT)
244  Break
245  Case & == OP_ACTION_NOOP
246  Break
247  Default
248  pr_err("Internal error, invalid op %x\n", op)
249  Return -EINVAL
252  If ret Then Return ret
256  If sw842_template_counts Then atomic_inc( & template_count[o])
259  Return 0
Caller
NameDescribe
sw842_decompresssw842_decompress* Decompress the 842-compressed buffer of length @ilen at @in* to the output buffer @out, using no more than @olen bytes.* The compressed buffer must be only a single 842-compressed buffer,