函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\842\842_compress.c Create Date:2022-07-27 07:54:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:add_short_data_template

函数原型:static int add_short_data_template(struct sw842_param *p, u8 b)

返回类型:int

参数:

类型参数名称
struct sw842_param *p
u8b
331  如果非bb大于SHORT_DATA_BITS_MAX则返回:负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  如果ret则返回:ret
338  ret等于add_bits(p, b, SHORT_DATA_BITS)
339  如果ret则返回:ret
342 i小于b循环
343  ret等于add_bits(p, in[i], 8)
344  如果ret则返回:ret
348  如果sw842_template_countsatomic_inc( & template_short_data_count)
351  返回:0
调用者
名称描述
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