Searched refs:recsize (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/lib/ |
D | kfifo.c | 395 unsigned int __kfifo_max_r(unsigned int len, size_t recsize) in __kfifo_max_r() argument 397 unsigned int max = (1 << (recsize << 3)) - 1; in __kfifo_max_r() 411 static unsigned int __kfifo_peek_n(struct __kfifo *fifo, size_t recsize) in __kfifo_peek_n() argument 419 if (--recsize) in __kfifo_peek_n() 434 static void __kfifo_poke_n(struct __kfifo *fifo, unsigned int n, size_t recsize) in __kfifo_poke_n() argument 441 if (recsize > 1) in __kfifo_poke_n() 445 unsigned int __kfifo_len_r(struct __kfifo *fifo, size_t recsize) in __kfifo_len_r() argument 447 return __kfifo_peek_n(fifo, recsize); in __kfifo_len_r() 452 unsigned int len, size_t recsize) in __kfifo_in_r() argument 454 if (len + recsize > kfifo_unused(fifo)) in __kfifo_in_r() [all …]
|
/Linux-v4.19/include/linux/ |
D | kfifo.h | 66 #define __STRUCT_KFIFO_COMMON(datatype, recsize, ptrtype) \ argument 71 char (*rectype)[recsize]; \ 76 #define __STRUCT_KFIFO(type, size, recsize, ptrtype) \ argument 78 __STRUCT_KFIFO_COMMON(type, recsize, ptrtype); \ 85 #define __STRUCT_KFIFO_PTR(type, recsize, ptrtype) \ argument 87 __STRUCT_KFIFO_COMMON(type, recsize, ptrtype); \ 802 const void *buf, unsigned int len, size_t recsize); 805 void *buf, unsigned int len, size_t recsize); 809 size_t recsize); 812 unsigned long len, unsigned int *copied, size_t recsize); [all …]
|
/Linux-v4.19/fs/xfs/ |
D | xfs_ioctl.c | 1543 size_t recsize) in xfs_getbmap_format() argument 1551 if (recsize < sizeof(struct getbmapx)) in xfs_getbmap_format() 1569 size_t recsize; in xfs_ioc_getbmap() local 1580 recsize = sizeof(struct getbmap); in xfs_ioc_getbmap() 1583 recsize = sizeof(struct getbmapx); in xfs_ioc_getbmap() 1589 if (copy_from_user(&bmx, arg, recsize)) in xfs_ioc_getbmap() 1594 if (bmx.bmv_count > ULONG_MAX / recsize) in xfs_ioc_getbmap() 1606 if (copy_to_user(arg, &bmx, recsize)) in xfs_ioc_getbmap() 1608 arg += recsize; in xfs_ioc_getbmap() 1611 if (!xfs_getbmap_format(buf + i, arg, recsize)) in xfs_ioc_getbmap() [all …]
|