Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kfifo.c Create Date:2022-07-28 06:24:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:setup_sgl

Proto:static unsigned int setup_sgl(struct __kfifo *fifo, struct scatterlist *sgl, int nents, unsigned int len, unsigned int off)

Type:unsigned int

Parameter:

TypeParameterName
struct __kfifo *fifo
struct scatterlist *sgl
intnents
unsigned intlen
unsigned intoff
337  size = mask + 1
338  esize = esize
342  off &= mask
343  If esize != 1 Then
344  off *= esize
345  size *= esize
346  len *= esize
348  l = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(len, size - off)
350  n = setup_sgl_buf(sgl, data + off, nents, l)
351  n += setup_sgl_buf(sgl + n, data, nents - n, len - l)
353  Return n
Caller
NameDescribe
__kfifo_dma_in_prepare
__kfifo_dma_out_prepare
__kfifo_dma_in_prepare_r
__kfifo_dma_out_prepare_r