H A D | kfifo.c | 3 * A generic kernel FIFO implementation 18 * internal helper to calculate the unused elements in a fifo 20 static inline unsigned int kfifo_unused(struct __kfifo *fifo) in kfifo_unused() 22 return (fifo->mask + 1) - (fifo->in - fifo->out); in kfifo_unused() 25 int __kfifo_alloc(struct __kfifo *fifo, unsigned int size, in __kfifo_alloc() 34 fifo->in = 0; in __kfifo_alloc() 35 fifo->out = 0; in __kfifo_alloc() 36 fifo in __kfifo_alloc() 19 kfifo_unused(struct __kfifo * fifo) kfifo_unused() argument 24 __kfifo_alloc(struct __kfifo * fifo,unsigned int size,size_t esize,gfp_t gfp_mask) __kfifo_alloc() argument 55 __kfifo_free(struct __kfifo * fifo) __kfifo_free() argument 66 __kfifo_init(struct __kfifo * fifo,void * buffer,unsigned int size,size_t esize) __kfifo_init() argument 89 kfifo_copy_in(struct __kfifo * fifo,const void * src,unsigned int len,unsigned int off) kfifo_copy_in() argument 113 __kfifo_in(struct __kfifo * fifo,const void * buf,unsigned int len) __kfifo_in() argument 128 kfifo_copy_out(struct __kfifo * fifo,void * dst,unsigned int len,unsigned int off) kfifo_copy_out() argument 152 __kfifo_out_peek(struct __kfifo * fifo,void * buf,unsigned int len) __kfifo_out_peek() argument 166 __kfifo_out(struct __kfifo * fifo,void * buf,unsigned int len) __kfifo_out() argument 175 kfifo_copy_from_user(struct __kfifo * fifo,const void __user * from,unsigned int len,unsigned int off,unsigned int * copied) kfifo_copy_from_user() argument 210 __kfifo_from_user(struct __kfifo * fifo,const void __user * from,unsigned long len,unsigned int * copied) __kfifo_from_user() argument 236 kfifo_copy_to_user(struct __kfifo * fifo,void __user * to,unsigned int len,unsigned int off,unsigned int * copied) kfifo_copy_to_user() argument 270 __kfifo_to_user(struct __kfifo * fifo,void __user * to,unsigned long len,unsigned int * copied) __kfifo_to_user() argument 334 setup_sgl(struct __kfifo * fifo,struct scatterlist * sgl,int nents,unsigned int len,unsigned int off) setup_sgl() argument 356 __kfifo_dma_in_prepare(struct __kfifo * fifo,struct scatterlist * sgl,int nents,unsigned int len) __kfifo_dma_in_prepare() argument 369 __kfifo_dma_out_prepare(struct __kfifo * fifo,struct scatterlist * sgl,int nents,unsigned int len) __kfifo_dma_out_prepare() argument 398 __kfifo_peek_n(struct __kfifo * fifo,size_t recsize) __kfifo_peek_n() argument 421 __kfifo_poke_n(struct __kfifo * fifo,unsigned int n,size_t recsize) __kfifo_poke_n() argument 432 __kfifo_len_r(struct __kfifo * fifo,size_t recsize) __kfifo_len_r() argument 438 __kfifo_in_r(struct __kfifo * fifo,const void * buf,unsigned int len,size_t recsize) __kfifo_in_r() argument 452 kfifo_out_copy_r(struct __kfifo * fifo,void * buf,unsigned int len,size_t recsize,unsigned int * n) kfifo_out_copy_r() argument 464 __kfifo_out_peek_r(struct __kfifo * fifo,void * buf,unsigned int len,size_t recsize) __kfifo_out_peek_r() argument 476 __kfifo_out_r(struct __kfifo * fifo,void * buf,unsigned int len,size_t recsize) __kfifo_out_r() argument 490 __kfifo_skip_r(struct __kfifo * fifo,size_t recsize) __kfifo_skip_r() argument 499 __kfifo_from_user_r(struct __kfifo * fifo,const void __user * from,unsigned long len,unsigned int * copied,size_t recsize) __kfifo_from_user_r() argument 523 __kfifo_to_user_r(struct __kfifo * fifo,void __user * to,unsigned long len,unsigned int * copied,size_t recsize) __kfifo_to_user_r() argument 548 __kfifo_dma_in_prepare_r(struct __kfifo * fifo,struct scatterlist * sgl,int nents,unsigned int len,size_t recsize) __kfifo_dma_in_prepare_r() argument 562 __kfifo_dma_in_finish_r(struct __kfifo * fifo,unsigned int len,size_t recsize) __kfifo_dma_in_finish_r() argument 571 __kfifo_dma_out_prepare_r(struct __kfifo * fifo,struct scatterlist * sgl,int nents,unsigned int len,size_t recsize) __kfifo_dma_out_prepare_r() argument 585 __kfifo_dma_out_finish_r(struct __kfifo * fifo,size_t recsize) __kfifo_dma_out_finish_r() argument [all...] |