Home
last modified time | relevance | path

Searched refs:reclen (Results 1 - 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/fs/
H A Dreaddir.c229 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() local
237 if (reclen > buf->count) in filldir()
249 if (!user_write_access_begin(prev, reclen + prev_reclen)) in filldir()
255 unsafe_put_user(reclen, &dirent->d_reclen, efault_end); in filldir()
256 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir()
260 buf->current_dir = (void __user *)dirent + reclen; in filldir()
261 buf->prev_reclen = reclen; in filldir()
262 buf->count -= reclen; in filldir()
316 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() local
324 if (reclen > bu in filldir64()
481 int reclen = ALIGN(offsetof(struct compat_linux_dirent, d_name) + compat_filldir() local
[all...]
/kernel/linux/linux-6.6/fs/
H A Dreaddir.c265 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() local
273 if (reclen > buf->count) in filldir()
285 if (!user_write_access_begin(prev, reclen + prev_reclen)) in filldir()
291 unsafe_put_user(reclen, &dirent->d_reclen, efault_end); in filldir()
292 unsafe_put_user(d_type, (char __user *) dirent + reclen - 1, efault_end); in filldir()
296 buf->current_dir = (void __user *)dirent + reclen; in filldir()
297 buf->prev_reclen = reclen; in filldir()
298 buf->count -= reclen; in filldir()
352 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() local
360 if (reclen > bu in filldir64()
517 int reclen = ALIGN(offsetof(struct compat_linux_dirent, d_name) + compat_filldir() local
[all...]
/kernel/linux/linux-5.10/fs/fuse/
H A Dreaddir.c36 size_t reclen = FUSE_DIRENT_SIZE(dirent); in fuse_add_dirent_to_cache() local
58 if (offset + reclen > PAGE_SIZE) { in fuse_add_dirent_to_cache()
84 memcpy(addr + offset, dirent, reclen); in fuse_add_dirent_to_cache()
86 fi->rdc.size = (index << PAGE_SHIFT) + offset + reclen; in fuse_add_dirent_to_cache()
131 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile() local
134 if (reclen > nbytes) in parse_dirfile()
142 buf += reclen; in parse_dirfile()
143 nbytes -= reclen; in parse_dirfile()
291 size_t reclen; in parse_dirplusfile() local
298 reclen in parse_dirplusfile()
402 size_t reclen; fuse_parse_cache() local
[all...]
/kernel/linux/linux-6.6/fs/fuse/
H A Dreaddir.c36 size_t reclen = FUSE_DIRENT_SIZE(dirent); in fuse_add_dirent_to_cache() local
58 if (offset + reclen > PAGE_SIZE) { in fuse_add_dirent_to_cache()
84 memcpy(addr + offset, dirent, reclen); in fuse_add_dirent_to_cache()
86 fi->rdc.size = (index << PAGE_SHIFT) + offset + reclen; in fuse_add_dirent_to_cache()
131 size_t reclen = FUSE_DIRENT_SIZE(dirent); in parse_dirfile() local
134 if (reclen > nbytes) in parse_dirfile()
142 buf += reclen; in parse_dirfile()
143 nbytes -= reclen; in parse_dirfile()
291 size_t reclen; in parse_dirplusfile() local
298 reclen in parse_dirplusfile()
402 size_t reclen; fuse_parse_cache() local
[all...]
/kernel/linux/linux-5.10/drivers/s390/char/
H A Dvmur.c38 * is available by reading sysfs attr reclen. Each write() to the device
39 * must specify an integral multiple (maximal 511) of reclen.
109 urd->reclen = cdev->id.driver_info; in urdev_alloc()
229 * data length in each CCW is reclen.
232 int reclen) in alloc_chan_prog()
238 TRACE("alloc_chan_prog(%p, %i, %i)\n", ubuf, rec_count, reclen); in alloc_chan_prog()
242 * That means we allocate room for CCWs to cover count/reclen in alloc_chan_prog()
253 cpa[i].count = reclen; in alloc_chan_prog()
254 kbuf = kmalloc(reclen, GFP_KERNEL | GFP_DMA); in alloc_chan_prog()
260 if (copy_from_user(kbuf, ubuf, reclen)) { in alloc_chan_prog()
231 alloc_chan_prog(const char __user *ubuf, int rec_count, int reclen) alloc_chan_prog() argument
416 do_write(struct urdev *urd, const char __user *udata, size_t count, size_t reclen, loff_t *ppos) do_write() argument
516 u16 reclen; diag14_read() local
[all...]
H A Dvmur.h72 size_t reclen; /* Record length for *write* CCWs */ member
111 #define FILE_RECLEN_OFFSET 4064 /* reclen offset in spool data block */
/kernel/linux/linux-6.6/drivers/s390/char/
H A Dvmur.c40 * is available by reading sysfs attr reclen. Each write() to the device
41 * must specify an integral multiple (maximal 511) of reclen.
111 urd->reclen = cdev->id.driver_info; in urdev_alloc()
210 * data length in each CCW is reclen.
213 int reclen) in alloc_chan_prog()
219 TRACE("alloc_chan_prog(%p, %i, %i)\n", ubuf, rec_count, reclen); in alloc_chan_prog()
223 * That means we allocate room for CCWs to cover count/reclen in alloc_chan_prog()
234 cpa[i].count = reclen; in alloc_chan_prog()
235 kbuf = kmalloc(reclen, GFP_KERNEL | GFP_DMA); in alloc_chan_prog()
241 if (copy_from_user(kbuf, ubuf, reclen)) { in alloc_chan_prog()
212 alloc_chan_prog(const char __user *ubuf, int rec_count, int reclen) alloc_chan_prog() argument
418 do_write(struct urdev *urd, const char __user *udata, size_t count, size_t reclen, loff_t *ppos) do_write() argument
518 u16 reclen; diag14_read() local
[all...]
H A Dvmur.h73 size_t reclen; /* Record length for *write* CCWs */ member
113 #define FILE_RECLEN_OFFSET 4064 /* reclen offset in spool data block */
/kernel/linux/linux-5.10/fs/gfs2/
H A Ddir.h67 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() argument
72 dent->de_rec_len = cpu_to_be16(reclen); in gfs2_qstr2dirent()
/kernel/linux/linux-6.6/fs/gfs2/
H A Ddir.h67 static inline void gfs2_qstr2dirent(const struct qstr *name, u16 reclen, struct gfs2_dirent *dent) in gfs2_qstr2dirent() argument
72 dent->de_rec_len = cpu_to_be16(reclen); in gfs2_qstr2dirent()
/kernel/linux/linux-5.10/fs/nilfs2/
H A Ddir.c330 unsigned int reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_find_entry() local
354 kaddr += nilfs_last_byte(dir, n) - reclen; in nilfs_find_entry()
444 unsigned int reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_add_link() local
470 kaddr += PAGE_SIZE - reclen; in nilfs_add_link()
491 if (!de->inode && rec_len >= reclen) in nilfs_add_link()
493 if (rec_len >= name_len + reclen) in nilfs_add_link()
/kernel/linux/linux-5.10/fs/ext2/
H A Ddir.c345 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_find_entry() local
370 kaddr += ext2_last_byte(dir, n) - reclen; in ext2_find_entry()
466 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_add_link() local
492 kaddr += PAGE_SIZE - reclen; in ext2_add_link()
513 if (!de->inode && rec_len >= reclen) in ext2_add_link()
515 if (rec_len >= name_len + reclen) in ext2_add_link()
/kernel/linux/linux-5.10/fs/ufs/
H A Ddir.c256 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_find_entry() local
282 kaddr += ufs_last_byte(dir, n) - reclen; in ufs_find_entry()
311 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_add_link() local
340 kaddr += PAGE_SIZE - reclen; in ufs_add_link()
361 if (!de->d_ino && rec_len >= reclen) in ufs_add_link()
363 if (rec_len >= name_len + reclen) in ufs_add_link()
509 UFSD("ino %u, reclen %u, namlen %u, name %s\n", in ufs_delete_entry()
/kernel/linux/linux-6.6/fs/nilfs2/
H A Ddir.c330 unsigned int reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_find_entry() local
354 kaddr += nilfs_last_byte(dir, n) - reclen; in nilfs_find_entry()
444 unsigned int reclen = NILFS_DIR_REC_LEN(namelen); in nilfs_add_link() local
470 kaddr += PAGE_SIZE - reclen; in nilfs_add_link()
491 if (!de->inode && rec_len >= reclen) in nilfs_add_link()
493 if (rec_len >= name_len + reclen) in nilfs_add_link()
/kernel/linux/linux-6.6/fs/ext2/
H A Ddir.c346 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_find_entry() local
369 kaddr += ext2_last_byte(dir, n) - reclen; in ext2_find_entry()
486 unsigned reclen = EXT2_DIR_REC_LEN(namelen); in ext2_add_link() local
509 kaddr += PAGE_SIZE - reclen; in ext2_add_link()
530 if (!de->inode && rec_len >= reclen) in ext2_add_link()
532 if (rec_len >= name_len + reclen) in ext2_add_link()
/kernel/linux/linux-6.6/fs/ufs/
H A Ddir.c262 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_find_entry() local
288 kaddr += ufs_last_byte(dir, n) - reclen; in ufs_find_entry()
317 unsigned reclen = UFS_DIR_REC_LEN(namelen); in ufs_add_link() local
346 kaddr += PAGE_SIZE - reclen; in ufs_add_link()
367 if (!de->d_ino && rec_len >= reclen) in ufs_add_link()
369 if (rec_len >= name_len + reclen) in ufs_add_link()
516 UFSD("ino %u, reclen %u, namlen %u, name %s\n", in ufs_delete_entry()
/kernel/linux/linux-5.10/fs/nfsd/
H A Dvfs.c1947 unsigned int reclen; in nfsd_buffered_filldir() local
1949 reclen = ALIGN(sizeof(struct buffered_dirent) + namlen, sizeof(u64)); in nfsd_buffered_filldir()
1950 if (buf->used + reclen > PAGE_SIZE) { in nfsd_buffered_filldir()
1960 buf->used += reclen; in nfsd_buffered_filldir()
1983 unsigned int reclen; in nfsd_buffered_readdir() local
2012 reclen = ALIGN(sizeof(*de) + de->namlen, in nfsd_buffered_readdir()
2014 size -= reclen; in nfsd_buffered_readdir()
2015 de = (struct buffered_dirent *)((char *)de + reclen); in nfsd_buffered_readdir()
/kernel/linux/linux-6.6/fs/nfsd/
H A Dvfs.c2004 unsigned int reclen; in nfsd_buffered_filldir() local
2006 reclen = ALIGN(sizeof(struct buffered_dirent) + namlen, sizeof(u64)); in nfsd_buffered_filldir()
2007 if (buf->used + reclen > PAGE_SIZE) { in nfsd_buffered_filldir()
2017 buf->used += reclen; in nfsd_buffered_filldir()
2041 unsigned int reclen; in nfsd_buffered_readdir() local
2072 reclen = ALIGN(sizeof(*de) + de->namlen, in nfsd_buffered_readdir()
2074 size -= reclen; in nfsd_buffered_readdir()
2075 de = (struct buffered_dirent *)((char *)de + reclen); in nfsd_buffered_readdir()
/kernel/linux/linux-5.10/arch/alpha/kernel/
H A Dosf_sys.c117 unsigned int reclen = ALIGN(NAME_OFFSET + namlen + 1, sizeof(u32)); in osf_filldir() local
121 if (reclen > buf->count) in osf_filldir()
136 put_user(reclen, &dirent->d_reclen) || in osf_filldir()
140 dirent = (void __user *)dirent + reclen; in osf_filldir()
142 buf->count -= reclen; in osf_filldir()
/kernel/linux/linux-6.6/arch/alpha/kernel/
H A Dosf_sys.c118 unsigned int reclen = ALIGN(NAME_OFFSET + namlen + 1, sizeof(u32)); in osf_filldir() local
122 if (reclen > buf->count) in osf_filldir()
137 put_user(reclen, &dirent->d_reclen) || in osf_filldir()
141 dirent = (void __user *)dirent + reclen; in osf_filldir()
143 buf->count -= reclen; in osf_filldir()
/kernel/linux/linux-5.10/drivers/s390/block/
H A Ddasd_eckd.c387 unsigned int reclen, unsigned int tlf) in locate_record_ext()
408 dn = ceil_quot(reclen + 6, 232); in locate_record_ext()
409 d = 9 + ceil_quot(reclen + 6 * (dn + 1), 34); in locate_record_ext()
413 d = 7 + ceil_quot(reclen + 12, 32); in locate_record_ext()
448 data->length = reclen; in locate_record_ext()
454 data->length = reclen; in locate_record_ext()
476 data->length = reclen; /* not tlf, as one might think */ in locate_record_ext()
485 data->length = reclen; in locate_record_ext()
491 data->length = reclen; in locate_record_ext()
509 data->length = reclen; in locate_record_ext()
384 locate_record_ext(struct ccw1 *ccw, struct LRE_eckd_data *data, unsigned int trk, unsigned int rec_on_trk, int count, int cmd, struct dasd_device *device, unsigned int reclen, unsigned int tlf) locate_record_ext() argument
602 locate_record(struct ccw1 *ccw, struct LO_eckd_data *data, unsigned int trk, unsigned int rec_on_trk, int no_rec, int cmd, struct dasd_device * device, int reclen) locate_record() argument
[all...]
/kernel/linux/linux-6.6/drivers/s390/block/
H A Ddasd_eckd.c390 unsigned int reclen, unsigned int tlf) in locate_record_ext()
411 dn = ceil_quot(reclen + 6, 232); in locate_record_ext()
412 d = 9 + ceil_quot(reclen + 6 * (dn + 1), 34); in locate_record_ext()
416 d = 7 + ceil_quot(reclen + 12, 32); in locate_record_ext()
451 data->length = reclen; in locate_record_ext()
457 data->length = reclen; in locate_record_ext()
479 data->length = reclen; /* not tlf, as one might think */ in locate_record_ext()
488 data->length = reclen; in locate_record_ext()
494 data->length = reclen; in locate_record_ext()
512 data->length = reclen; in locate_record_ext()
387 locate_record_ext(struct ccw1 *ccw, struct LRE_eckd_data *data, unsigned int trk, unsigned int rec_on_trk, int count, int cmd, struct dasd_device *device, unsigned int reclen, unsigned int tlf) locate_record_ext() argument
605 locate_record(struct ccw1 *ccw, struct LO_eckd_data *data, unsigned int trk, unsigned int rec_on_trk, int no_rec, int cmd, struct dasd_device * device, int reclen) locate_record() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/orinoco/
H A 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()
/kernel/linux/linux-6.6/drivers/net/wireless/intersil/orinoco/
H A 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()
/kernel/linux/linux-5.10/include/trace/events/
H A Dsunrpc.h1256 __field(unsigned int, reclen)
1265 __entry->reclen = xs->recv.len;
1269 TP_printk("peer=[%s]:%s xid=0x%08x copied=%lu reclen=%u offset=%u",
1271 __entry->copied, __entry->reclen, __entry->offset)

Completed in 41 milliseconds

12