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:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:add_short_data_template

Proto:static int add_short_data_template(struct sw842_param *p, u8 b)

Type:int

Parameter:

TypeParameterName
struct sw842_param *p
u8b
331  If Not b || b > SHORT_DATA_BITS_MAX Then Return -EINVAL
334  ret = add_bits(p, sw only template - this is not in the hw design; it's used only by this* software compressor and decompressor, to allow input buffers that aren't* a multiple of 8., additional bits of each op param )
335  If ret Then Return ret
338  ret = add_bits(p, b, SHORT_DATA_BITS)
339  If ret Then Return ret
342  When i < b cycle
343  ret = add_bits(p, in[i], 8)
344  If ret Then Return ret
348  If sw842_template_counts Then atomic_inc( & template_short_data_count)
351  Return 0
Caller
NameDescribe
sw842_compresssw842_compress* Compress the uncompressed buffer of length @ilen at @in to the output buffer*@out, using no more than @olen bytes, using the 842 compression format