Home
last modified time | relevance | path

Searched refs:reclen (Results 1 – 21 of 21) sorted by relevance

/linux-2.6.39/fs/
Dreaddir.c155 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() local
159 if (reclen > buf->count) in filldir()
174 if (__put_user(reclen, &dirent->d_reclen)) in filldir()
180 if (__put_user(d_type, (char __user *) dirent + reclen - 1)) in filldir()
183 dirent = (void __user *)dirent + reclen; in filldir()
185 buf->count -= reclen; in filldir()
241 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() local
245 if (reclen > buf->count) in filldir64()
257 if (__put_user(reclen, &dirent->d_reclen)) in filldir64()
266 dirent = (void __user *)dirent + reclen; in filldir64()
[all …]
Dcompat.c930 int reclen = ALIGN(offsetof(struct compat_linux_dirent, d_name) + in compat_filldir() local
934 if (reclen > buf->count) in compat_filldir()
949 if (__put_user(reclen, &dirent->d_reclen)) in compat_filldir()
955 if (__put_user(d_type, (char __user *) dirent + reclen - 1)) in compat_filldir()
958 dirent = (void __user *)dirent + reclen; in compat_filldir()
960 buf->count -= reclen; in compat_filldir()
1018 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in compat_filldir64() local
1023 if (reclen > buf->count) in compat_filldir64()
1037 if (__put_user(reclen, &dirent->d_reclen)) in compat_filldir64()
1046 dirent = (void __user *)dirent + reclen; in compat_filldir64()
[all …]
/linux-2.6.39/drivers/s390/char/
Dvmur.c107 urd->reclen = cdev->id.driver_info; in urdev_alloc()
230 int reclen) in alloc_chan_prog() argument
236 TRACE("alloc_chan_prog(%p, %i, %i)\n", ubuf, rec_count, reclen); in alloc_chan_prog()
251 cpa[i].count = reclen; in alloc_chan_prog()
252 kbuf = kmalloc(reclen, GFP_KERNEL | GFP_DMA); in alloc_chan_prog()
258 if (copy_from_user(kbuf, ubuf, reclen)) { in alloc_chan_prog()
262 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 …]
Dvmur.h69 size_t reclen; /* Record length for *write* CCWs */ member
/linux-2.6.39/arch/parisc/hpux/
Dfs.c78 int reclen = ALIGN(NAME_OFFSET(dirent) + namlen + 1, sizeof(long)); in filldir() local
81 if (reclen > buf->count) in filldir()
94 put_user(reclen, &dirent->d_reclen) || in filldir()
100 buf->current_dir = (void __user *)dirent + reclen; in filldir()
101 buf->count -= reclen; in filldir()
/linux-2.6.39/fs/9p/
Dvfs_dir.c140 int reclen = 0; in v9fs_dir_readdir() local
177 reclen = st.size+2; in v9fs_dir_readdir()
188 rdir->head += reclen; in v9fs_dir_readdir()
189 filp->f_pos += reclen; in v9fs_dir_readdir()
/linux-2.6.39/fs/gfs2/
Ddir.h53 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() argument
58 dent->de_rec_len = cpu_to_be16(reclen); in gfs2_qstr2dirent()
/linux-2.6.39/fs/nilfs2/
Ddir.c341 unsigned reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_find_entry() local
364 kaddr += nilfs_last_byte(dir, n) - reclen; in nilfs_find_entry()
454 unsigned reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_add_link() local
480 kaddr += PAGE_CACHE_SIZE - reclen; in nilfs_add_link()
501 if (!de->inode && rec_len >= reclen) in nilfs_add_link()
503 if (rec_len >= name_len + reclen) in nilfs_add_link()
/linux-2.6.39/fs/ufs/
Ddir.c257 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_find_entry() local
283 kaddr += ufs_last_byte(dir, n) - reclen; in ufs_find_entry()
318 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_add_link() local
347 kaddr += PAGE_CACHE_SIZE - reclen; in ufs_add_link()
368 if (!de->d_ino && rec_len >= reclen) in ufs_add_link()
370 if (rec_len >= name_len + reclen) in ufs_add_link()
/linux-2.6.39/fs/exofs/
Ddir.c320 unsigned reclen = EXOFS_DIR_REC_LEN(namelen); in exofs_find_entry() local
342 kaddr += exofs_last_byte(dir, n) - reclen; in exofs_find_entry()
442 unsigned reclen = EXOFS_DIR_REC_LEN(namelen); in exofs_add_link() local
464 kaddr += PAGE_CACHE_SIZE - reclen; in exofs_add_link()
485 if (!de->inode_no && rec_len >= reclen) in exofs_add_link()
487 if (rec_len >= name_len + reclen) in exofs_add_link()
/linux-2.6.39/fs/ext2/
Ddir.c374 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_find_entry() local
398 kaddr += ext2_last_byte(dir, n) - reclen; in ext2_find_entry()
496 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_add_link() local
522 kaddr += PAGE_CACHE_SIZE - reclen; in ext2_add_link()
543 if (!de->inode && rec_len >= reclen) in ext2_add_link()
545 if (rec_len >= name_len + reclen) in ext2_add_link()
/linux-2.6.39/drivers/s390/block/
Ddasd_eckd.c334 struct dasd_device *device, unsigned int reclen, in fill_LRE_data() argument
348 dn = ceil_quot(reclen + 6, 232); in fill_LRE_data()
349 d = 9 + ceil_quot(reclen + 6 * (dn + 1), 34); in fill_LRE_data()
353 d = 7 + ceil_quot(reclen + 12, 32); in fill_LRE_data()
388 data->length = reclen; in fill_LRE_data()
394 data->length = reclen; in fill_LRE_data()
416 data->length = reclen; /* not tlf, as one might think */ in fill_LRE_data()
425 data->length = reclen; in fill_LRE_data()
431 data->length = reclen; in fill_LRE_data()
449 data->length = reclen; in fill_LRE_data()
[all …]
/linux-2.6.39/arch/alpha/kernel/
Dosf_sys.c111 unsigned int reclen = ALIGN(NAME_OFFSET + namlen + 1, sizeof(u32)); in osf_filldir() local
115 if (reclen > buf->count) in osf_filldir()
130 put_user(reclen, &dirent->d_reclen) || in osf_filldir()
134 dirent = (void __user *)dirent + reclen; in osf_filldir()
136 buf->count -= reclen; in osf_filldir()
/linux-2.6.39/fs/nfsd/
Dvfs.c1875 unsigned int reclen; in nfsd_buffered_filldir() local
1877 reclen = ALIGN(sizeof(struct buffered_dirent) + namlen, sizeof(u64)); in nfsd_buffered_filldir()
1878 if (buf->used + reclen > PAGE_SIZE) { in nfsd_buffered_filldir()
1888 buf->used += reclen; in nfsd_buffered_filldir()
1910 unsigned int reclen; in nfsd_buffered_readdir() local
1948 reclen = ALIGN(sizeof(*de) + de->namlen, in nfsd_buffered_readdir()
1950 size -= reclen; in nfsd_buffered_readdir()
1951 de = (struct buffered_dirent *)((char *)de + reclen); in nfsd_buffered_readdir()
/linux-2.6.39/drivers/net/wireless/orinoco/
Dhw.c286 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-2.6.39/fs/fuse/
Ddir.c1059 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile() local
1063 if (reclen > nbytes) in parse_dirfile()
1071 buf += reclen; in parse_dirfile()
1072 nbytes -= reclen; in parse_dirfile()
/linux-2.6.39/net/sunrpc/
Dsvcsock.c1146 __be32 reclen; in svc_tcp_sendto() local
1152 reclen = htonl(0x80000000|((xbufp->len ) - 4)); in svc_tcp_sendto()
1153 memcpy(xbufp->head[0].iov_base, &reclen, 4); in svc_tcp_sendto()
Dxprtsock.c579 u32 reclen = buf->len - sizeof(rpc_fraghdr); in xs_encode_tcp_record_marker() local
581 *base = htonl(RPC_LAST_STREAM_FRAGMENT | reclen); in xs_encode_tcp_record_marker()
/linux-2.6.39/fs/ext3/
Dnamei.c1261 unsigned short reclen; in add_dirent_to_buf() local
1265 reclen = EXT3_DIR_REC_LEN(namelen); in add_dirent_to_buf()
1268 top = bh->b_data + dir->i_sb->s_blocksize - reclen; in add_dirent_to_buf()
1281 if ((de->inode? rlen - nlen: rlen) >= reclen) in add_dirent_to_buf()
/linux-2.6.39/fs/ext4/
Dnamei.c1264 unsigned short reclen; in add_dirent_to_buf() local
1268 reclen = EXT4_DIR_REC_LEN(namelen); in add_dirent_to_buf()
1271 top = bh->b_data + blocksize - reclen; in add_dirent_to_buf()
1279 if ((de->inode? rlen - nlen: rlen) >= reclen) in add_dirent_to_buf()
/linux-2.6.39/fs/ceph/
Dmds_client.c2364 size_t reclen; in encode_caps_cb() local
2408 reclen = sizeof(rec.v2); in encode_caps_cb()
2418 reclen = sizeof(rec.v1); in encode_caps_cb()
2438 err = ceph_pagelist_append(pagelist, &rec, reclen); in encode_caps_cb()
2454 err = ceph_pagelist_append(pagelist, &rec, reclen); in encode_caps_cb()