Home
last modified time | relevance | path

Searched refs:recsize (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/lib/
Dkfifo.c382 unsigned int __kfifo_max_r(unsigned int len, size_t recsize) in __kfifo_max_r() argument
384 unsigned int max = (1 << (recsize << 3)) - 1; in __kfifo_max_r()
398 static unsigned int __kfifo_peek_n(struct __kfifo *fifo, size_t recsize) in __kfifo_peek_n() argument
406 if (--recsize) in __kfifo_peek_n()
421 static void __kfifo_poke_n(struct __kfifo *fifo, unsigned int n, size_t recsize) in __kfifo_poke_n() argument
428 if (recsize > 1) in __kfifo_poke_n()
432 unsigned int __kfifo_len_r(struct __kfifo *fifo, size_t recsize) in __kfifo_len_r() argument
434 return __kfifo_peek_n(fifo, recsize); in __kfifo_len_r()
439 unsigned int len, size_t recsize) in __kfifo_in_r() argument
441 if (len + recsize > kfifo_unused(fifo)) in __kfifo_in_r()
[all …]
/Linux-v5.4/include/linux/
Dkfifo.h52 #define __STRUCT_KFIFO_COMMON(datatype, recsize, ptrtype) \ argument
57 char (*rectype)[recsize]; \
62 #define __STRUCT_KFIFO(type, size, recsize, ptrtype) \ argument
64 __STRUCT_KFIFO_COMMON(type, recsize, ptrtype); \
71 #define __STRUCT_KFIFO_PTR(type, recsize, ptrtype) \ argument
73 __STRUCT_KFIFO_COMMON(type, recsize, ptrtype); \
788 const void *buf, unsigned int len, size_t recsize);
791 void *buf, unsigned int len, size_t recsize);
795 size_t recsize);
798 unsigned long len, unsigned int *copied, size_t recsize);
[all …]
/Linux-v5.4/fs/xfs/
Dxfs_ioctl.c1753 size_t recsize) in xfs_getbmap_format() argument
1761 if (recsize < sizeof(struct getbmapx)) in xfs_getbmap_format()
1779 size_t recsize; in xfs_ioc_getbmap() local
1790 recsize = sizeof(struct getbmap); in xfs_ioc_getbmap()
1793 recsize = sizeof(struct getbmapx); in xfs_ioc_getbmap()
1799 if (copy_from_user(&bmx, arg, recsize)) in xfs_ioc_getbmap()
1804 if (bmx.bmv_count > ULONG_MAX / recsize) in xfs_ioc_getbmap()
1816 if (copy_to_user(arg, &bmx, recsize)) in xfs_ioc_getbmap()
1818 arg += recsize; in xfs_ioc_getbmap()
1821 if (!xfs_getbmap_format(buf + i, arg, recsize)) in xfs_ioc_getbmap()
[all …]