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

Name:do_data

Proto:static int do_data(struct sw842_param *p, u8 n)

Type:int

Parameter:

TypeParameterName
struct sw842_param *p
u8n
136  If n > olen Then Return -ENOSPC
139  ret = next_bits(p, & v, n * 8)
140  If ret Then Return ret
144  Case n == 2
145  put value to a possibly mis-aligned location(cpu_to_be16((u16)v), (__be16 * )out)
146  Break
147  Case n == 4
148  put value to a possibly mis-aligned location(cpu_to_be32((u32)v), (__be32 * )out)
149  Break
150  Case n == 8
151  put value to a possibly mis-aligned location(cpu_to_be64((u64)v), (__be64 * )out)
152  Break
153  Default
154  Return -EINVAL
157  out += n
158  olen -= n
160  Return 0
Caller
NameDescribe
do_op