函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__do_index

函数原型:static int __do_index(struct sw842_param *p, u8 size, u8 bits, u64 fsize)

返回类型:int

参数:

类型参数名称
struct sw842_param *p
u8size
u8bits
u64fsize
165  total等于und_down - round down to next specified power of 2*@x: the value to round*@y: multiple to round down to (must be a power of 2)* Rounds @x down to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding down, use rounddown() below.(out - ostart, 8)
168  ret等于next_bits(p, & index, bits)
169  如果ret则返回:ret
172  offset等于indexsize
175  如果total大于fsize
177  section等于und_down - round down to next specified power of 2*@x: the value to round*@y: multiple to round down to (must be a power of 2)* Rounds @x down to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding down, use rounddown() below.(total, fsize)
179  pos等于totalsection
184  如果offset大于等于possection减等于fsize
187  offset加等于section
190  如果offsetsize大于total
191  pr_debug("index%x %lx points past end %lx\n", size, (unsignedlong)offset, (unsignedlong)total)
193  返回:负EINVAL
196  如果size不等于2且size不等于4且size不等于8则WARN(1, "__do_index invalid size %x\n", size)
198  否则pr_debug("index%x to %lx off %lx adjoff %lx tot %lx data %lx\n", size, (unsignedlong)index, (unsignedlong)(index * size), (unsignedlong)offset, (unsignedlong)total, (unsignedlong)beN_to_cpu( & ostart[offset], size))
205  内存复制(out, & ostart[offset], size)
206  out加等于size
207  olen减等于size
209  返回:0
调用者
名称描述
do_index