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

Name:__do_index

Proto:static int __do_index(struct sw842_param *p, u8 size, u8 bits, u64 fsize)

Type:int

Parameter:

TypeParameterName
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  If ret Then Return ret
172  offset = index * size
175  If total > fsize Then
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 = total - section
184  If offset >= pos Then section -= fsize
187  offset += section
190  If offset + size > total Then
191  pr_debug("index%x %lx points past end %lx\n", size, (unsignedlong)offset, (unsignedlong)total)
193  Return -EINVAL
196  If size != 2 && size != 4 && size != 8 Then WARN(1, "__do_index invalid size %x\n", size)
198  Else 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  No 3D Now!(out, & ostart[offset], size)
206  out += size
207  olen -= size
209  Return 0
Caller
NameDescribe
do_index