/linux-4.4.14/fs/ |
D | readdir.c | 159 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() local 163 if (reclen > buf->count) in filldir() 178 if (__put_user(reclen, &dirent->d_reclen)) in filldir() 184 if (__put_user(d_type, (char __user *) dirent + reclen - 1)) in filldir() 187 dirent = (void __user *)dirent + reclen; in filldir() 189 buf->count -= reclen; in filldir() 243 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() local 247 if (reclen > buf->count) in filldir64() 259 if (__put_user(reclen, &dirent->d_reclen)) in filldir64() 268 dirent = (void __user *)dirent + reclen; in filldir64() [all …]
|
D | compat.c | 927 int reclen = ALIGN(offsetof(struct compat_linux_dirent, d_name) + in compat_filldir() local 931 if (reclen > buf->count) in compat_filldir() 946 if (__put_user(reclen, &dirent->d_reclen)) in compat_filldir() 952 if (__put_user(d_type, (char __user *) dirent + reclen - 1)) in compat_filldir() 955 dirent = (void __user *)dirent + reclen; in compat_filldir() 957 buf->count -= reclen; in compat_filldir() 1014 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in compat_filldir64() local 1019 if (reclen > buf->count) in compat_filldir64() 1033 if (__put_user(reclen, &dirent->d_reclen)) in compat_filldir64() 1042 dirent = (void __user *)dirent + reclen; in compat_filldir64() [all …]
|
/linux-4.4.14/drivers/s390/char/ |
D | vmur.c | 108 urd->reclen = cdev->id.driver_info; in urdev_alloc() 231 int reclen) in alloc_chan_prog() argument 237 TRACE("alloc_chan_prog(%p, %i, %i)\n", ubuf, rec_count, reclen); in alloc_chan_prog() 252 cpa[i].count = reclen; in alloc_chan_prog() 253 kbuf = kmalloc(reclen, GFP_KERNEL | GFP_DMA); in alloc_chan_prog() 259 if (copy_from_user(kbuf, ubuf, reclen)) { in alloc_chan_prog() 263 ubuf += reclen; in alloc_chan_prog() 342 rc = sprintf(buf, "%zu\n", urd->reclen); in ur_attr_reclen_show() 347 static DEVICE_ATTR(reclen, 0444, ur_attr_reclen_show, NULL); 415 size_t count, size_t reclen, loff_t *ppos) in do_write() argument [all …]
|
D | vmur.h | 69 size_t reclen; /* Record length for *write* CCWs */ member
|
/linux-4.4.14/fs/9p/ |
D | vfs_dir.c | 117 int reclen = 0; in v9fs_dir_readdir() local 156 reclen = st.size+2; in v9fs_dir_readdir() 164 rdir->head += reclen; in v9fs_dir_readdir() 165 ctx->pos += reclen; in v9fs_dir_readdir()
|
/linux-4.4.14/fs/gfs2/ |
D | dir.h | 71 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() argument 76 dent->de_rec_len = cpu_to_be16(reclen); in gfs2_qstr2dirent()
|
/linux-4.4.14/fs/nilfs2/ |
D | dir.c | 324 unsigned reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_find_entry() local 347 kaddr += nilfs_last_byte(dir, n) - reclen; in nilfs_find_entry() 437 unsigned reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_add_link() local 463 kaddr += PAGE_CACHE_SIZE - reclen; in nilfs_add_link() 484 if (!de->inode && rec_len >= reclen) in nilfs_add_link() 486 if (rec_len >= name_len + reclen) in nilfs_add_link()
|
/linux-4.4.14/fs/ufs/ |
D | dir.c | 254 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_find_entry() local 280 kaddr += ufs_last_byte(dir, n) - reclen; in ufs_find_entry() 315 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_add_link() local 344 kaddr += PAGE_CACHE_SIZE - reclen; in ufs_add_link() 365 if (!de->d_ino && rec_len >= reclen) in ufs_add_link() 367 if (rec_len >= name_len + reclen) in ufs_add_link()
|
/linux-4.4.14/fs/ext2/ |
D | dir.c | 366 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_find_entry() local 390 kaddr += ext2_last_byte(dir, n) - reclen; in ext2_find_entry() 488 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_add_link() local 514 kaddr += PAGE_CACHE_SIZE - reclen; in ext2_add_link() 535 if (!de->inode && rec_len >= reclen) in ext2_add_link() 537 if (rec_len >= name_len + reclen) in ext2_add_link()
|
/linux-4.4.14/fs/exofs/ |
D | dir.c | 308 unsigned reclen = EXOFS_DIR_REC_LEN(namelen); in exofs_find_entry() local 330 kaddr += exofs_last_byte(dir, n) - reclen; in exofs_find_entry() 430 unsigned reclen = EXOFS_DIR_REC_LEN(namelen); in exofs_add_link() local 452 kaddr += PAGE_CACHE_SIZE - reclen; in exofs_add_link() 473 if (!de->inode_no && rec_len >= reclen) in exofs_add_link() 475 if (rec_len >= name_len + reclen) in exofs_add_link()
|
/linux-4.4.14/fs/nfsd/ |
D | vfs.c | 1776 unsigned int reclen; in nfsd_buffered_filldir() local 1778 reclen = ALIGN(sizeof(struct buffered_dirent) + namlen, sizeof(u64)); in nfsd_buffered_filldir() 1779 if (buf->used + reclen > PAGE_SIZE) { in nfsd_buffered_filldir() 1789 buf->used += reclen; in nfsd_buffered_filldir() 1813 unsigned int reclen; in nfsd_buffered_readdir() local 1851 reclen = ALIGN(sizeof(*de) + de->namlen, in nfsd_buffered_readdir() 1853 size -= reclen; in nfsd_buffered_readdir() 1854 de = (struct buffered_dirent *)((char *)de + reclen); in nfsd_buffered_readdir()
|
/linux-4.4.14/include/trace/events/ |
D | sunrpc.h | 422 __field(unsigned int, reclen) 432 __entry->reclen = xs->tcp_reclen; 439 __entry->copied, __entry->reclen, __entry->offset)
|
/linux-4.4.14/drivers/s390/block/ |
D | dasd_eckd.c | 346 struct dasd_device *device, unsigned int reclen, in fill_LRE_data() argument 360 dn = ceil_quot(reclen + 6, 232); in fill_LRE_data() 361 d = 9 + ceil_quot(reclen + 6 * (dn + 1), 34); in fill_LRE_data() 365 d = 7 + ceil_quot(reclen + 12, 32); in fill_LRE_data() 400 data->length = reclen; in fill_LRE_data() 406 data->length = reclen; in fill_LRE_data() 428 data->length = reclen; /* not tlf, as one might think */ in fill_LRE_data() 437 data->length = reclen; in fill_LRE_data() 443 data->length = reclen; in fill_LRE_data() 461 data->length = reclen; in fill_LRE_data() [all …]
|
/linux-4.4.14/fs/fuse/ |
D | dir.c | 1141 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile() local 1144 if (reclen > nbytes) in parse_dirfile() 1153 buf += reclen; in parse_dirfile() 1154 nbytes -= reclen; in parse_dirfile() 1273 size_t reclen; in parse_dirplusfile() local 1280 reclen = FUSE_DIRENTPLUS_SIZE(direntplus); in parse_dirplusfile() 1284 if (reclen > nbytes) in parse_dirplusfile() 1301 buf += reclen; in parse_dirplusfile() 1302 nbytes -= reclen; in parse_dirplusfile()
|
/linux-4.4.14/arch/alpha/kernel/ |
D | osf_sys.c | 113 unsigned int reclen = ALIGN(NAME_OFFSET + namlen + 1, sizeof(u32)); in osf_filldir() local 117 if (reclen > buf->count) in osf_filldir() 132 put_user(reclen, &dirent->d_reclen) || in osf_filldir() 136 dirent = (void __user *)dirent + reclen; in osf_filldir() 138 buf->count -= reclen; in osf_filldir()
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
D | hw.c | 286 u16 reclen; in orinoco_hw_read_card_settings() local 300 sizeof(nickbuf), &reclen, &nickbuf); in orinoco_hw_read_card_settings() 308 len = min(IW_ESSID_MAX_SIZE, 2 * reclen); in orinoco_hw_read_card_settings()
|
/linux-4.4.14/net/sunrpc/ |
D | svcsock.c | 1216 __be32 reclen; in svc_tcp_sendto() local 1222 reclen = htonl(0x80000000|((xbufp->len ) - 4)); in svc_tcp_sendto() 1223 memcpy(xbufp->head[0].iov_base, &reclen, 4); in svc_tcp_sendto()
|
D | xprtsock.c | 486 u32 reclen = buf->len - sizeof(rpc_fraghdr); in xs_encode_stream_record_marker() local 488 *base = cpu_to_be32(RPC_LAST_STREAM_FRAGMENT | reclen); in xs_encode_stream_record_marker()
|
/linux-4.4.14/fs/ceph/ |
D | mds_client.c | 2790 size_t reclen; in encode_caps_cb() local 2836 reclen = sizeof(rec.v2); in encode_caps_cb() 2846 reclen = sizeof(rec.v1); in encode_caps_cb() 2877 err = ceph_pagelist_append(pagelist, &rec, reclen); in encode_caps_cb() 2884 err = ceph_pagelist_append(pagelist, &rec, reclen); in encode_caps_cb()
|
/linux-4.4.14/fs/ext4/ |
D | namei.c | 1799 unsigned short reclen = EXT4_DIR_REC_LEN(fname_len(fname)); in ext4_find_dest_de() local 1806 top = buf + buf_size - reclen; in ext4_find_dest_de() 1823 if ((de->inode ? rlen - nlen : rlen) >= reclen) in ext4_find_dest_de()
|