Home
last modified time | relevance | path

Searched refs:rec_len (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/fs/nilfs2/
Ddir.c122 unsigned int offs, rec_len; in nilfs_check_page() local
134 for (offs = 0; offs <= limit - NILFS_DIR_REC_LEN(1); offs += rec_len) { in nilfs_check_page()
136 rec_len = nilfs_rec_len_from_disk(p->rec_len); in nilfs_check_page()
138 if (rec_len < NILFS_DIR_REC_LEN(1)) in nilfs_check_page()
140 if (rec_len & 3) in nilfs_check_page()
142 if (rec_len < NILFS_DIR_REC_LEN(p->name_len)) in nilfs_check_page()
144 if (((offs + rec_len - 1) ^ offs) & ~(chunk_size-1)) in nilfs_check_page()
176 rec_len, p->name_len); in nilfs_check_page()
229 nilfs_rec_len_from_disk(p->rec_len)); in nilfs_next_entry()
290 if (de->rec_len == 0) { in nilfs_readdir()
[all …]
/kernel/linux/linux-5.10/fs/ext2/
Ddir.c122 unsigned offs, rec_len; in ext2_check_page() local
134 for (offs = 0; offs <= limit - EXT2_DIR_REC_LEN(1); offs += rec_len) { in ext2_check_page()
136 rec_len = ext2_rec_len_from_disk(p->rec_len); in ext2_check_page()
138 if (unlikely(rec_len < EXT2_DIR_REC_LEN(1))) in ext2_check_page()
140 if (unlikely(rec_len & 3)) in ext2_check_page()
142 if (unlikely(rec_len < EXT2_DIR_REC_LEN(p->name_len))) in ext2_check_page()
144 if (unlikely(((offs + rec_len - 1) ^ offs) & ~(chunk_size-1))) in ext2_check_page()
183 rec_len, p->name_len); in ext2_check_page()
239 ext2_rec_len_from_disk(p->rec_len)); in ext2_next_entry()
248 if (p->rec_len == 0) in ext2_validate_entry()
[all …]
Dext2.h586 __le16 rec_len; /* Directory entry length */ member
599 __le16 rec_len; /* Directory entry length */ member
/kernel/linux/linux-5.10/net/tls/
Dtrace.h46 TP_PROTO(struct sock *sk, u32 tcp_seq, u8 *rec_no, u32 rec_len,
49 TP_ARGS(sk, tcp_seq, rec_no, rec_len, encrypted, decrypted),
55 __field( u32, rec_len )
64 __entry->rec_len = rec_len;
72 __entry->rec_no, __entry->rec_len,
125 TP_PROTO(struct sock *sk, u32 sock_data, u32 rec_len),
127 TP_ARGS(sk, sock_data, rec_len),
132 __field( u32, rec_len )
138 __entry->rec_len = rec_len;
143 __entry->sk, __entry->sock_data, __entry->rec_len
/kernel/linux/linux-5.10/fs/ufs/
Ddir.c115 unsigned offs, rec_len; in ufs_check_page() local
128 for (offs = 0; offs <= limit - UFS_DIR_REC_LEN(1); offs += rec_len) { in ufs_check_page()
130 rec_len = fs16_to_cpu(sb, p->d_reclen); in ufs_check_page()
132 if (rec_len < UFS_DIR_REC_LEN(1)) in ufs_check_page()
134 if (rec_len & 3) in ufs_check_page()
136 if (rec_len < UFS_DIR_REC_LEN(ufs_get_de_namlen(sb, p))) in ufs_check_page()
138 if (((offs + rec_len - 1) ^ offs) & ~chunk_mask) in ufs_check_page()
176 rec_len, ufs_get_de_namlen(sb, p)); in ufs_check_page()
313 unsigned short rec_len, name_len; in ufs_add_link() local
345 rec_len = chunk_size; in ufs_add_link()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Ddir.c136 struct buffer_head *bh, u16 rec_len) in ocfs2_init_dir_trailer() argument
146 trailer->db_free_rec_len = cpu_to_le16(rec_len); in ocfs2_init_dir_trailer()
305 const int rlen = le16_to_cpu(de->rec_len); in ocfs2_check_dir_entry()
376 de_len = le16_to_cpu(de->rec_len); in ocfs2_search_dirblock()
1157 le16_add_cpu(&pde->rec_len, in __ocfs2_delete_entry()
1158 le16_to_cpu(de->rec_len)); in __ocfs2_delete_entry()
1164 i += le16_to_cpu(de->rec_len); in __ocfs2_delete_entry()
1166 de = (struct ocfs2_dir_entry *)((char *)de + le16_to_cpu(de->rec_len)); in __ocfs2_delete_entry()
1177 hole = le16_to_cpu(de->rec_len); in ocfs2_figure_dirent_hole()
1179 hole = le16_to_cpu(de->rec_len) - in ocfs2_figure_dirent_hole()
[all …]
/kernel/linux/linux-5.10/fs/ext4/
Dnamei.c138 else if (ext4_rec_len_from_disk(dirent->rec_len, in __ext4_read_dirblock()
198 __le16 rec_len; member
327 while (d < top && d->rec_len) in get_dirent_tail()
329 le16_to_cpu(d->rec_len)); in get_dirent_tail()
422 if (le16_to_cpu(dirent->rec_len) == EXT4_BLOCK_SIZE(inode->i_sb)) in get_dx_countlimit()
424 else if (le16_to_cpu(dirent->rec_len) == 12) { in get_dx_countlimit()
426 if (le16_to_cpu(dp->rec_len) != in get_dx_countlimit()
531 ext4_rec_len_from_disk(p->rec_len, blocksize)); in ext4_next_entry()
1249 map_tail->size = le16_to_cpu(de->rec_len); in dx_make_map()
1428 de_len = ext4_rec_len_from_disk(de->rec_len, in ext4_search_dir()
[all …]
Ddir.c73 const int rlen = ext4_rec_len_from_disk(de->rec_len, in __ext4_check_dir_entry()
228 if (ext4_rec_len_from_disk(de->rec_len, in ext4_readdir()
231 i += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir()
253 offset += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir()
282 ctx->pos += ext4_rec_len_from_disk(de->rec_len, in ext4_readdir()
648 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_check_all_de()
Dinline.c1004 de_len = ext4_rec_len_from_disk(de->rec_len, inline_size); in ext4_show_inline_dir()
1092 de_len = ext4_rec_len_from_disk(de->rec_len, old_size); in ext4_update_final_de()
1097 prev_de->rec_len = ext4_rec_len_to_disk(de_len + new_size - in ext4_update_final_de()
1102 de->rec_len = ext4_rec_len_to_disk(new_size, new_size); in ext4_update_final_de()
1392 fake.rec_len = ext4_rec_len_to_disk( in ext4_inlinedir_to_tree()
1402 fake.rec_len = ext4_rec_len_to_disk( in ext4_inlinedir_to_tree()
1410 pos += ext4_rec_len_from_disk(de->rec_len, inline_size); in ext4_inlinedir_to_tree()
1536 if (ext4_rec_len_from_disk(de->rec_len, extra_size) in ext4_read_inline_dir()
1539 i += ext4_rec_len_from_disk(de->rec_len, in ext4_read_inline_dir()
1573 ctx->pos += ext4_rec_len_from_disk(de->rec_len, extra_size); in ext4_read_inline_dir()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/
Dpcan_usb.c637 u8 rec_len = status_len & PCAN_USB_STATUSLEN_DLC; in pcan_usb_decode_status() local
670 rec_len = 2; in pcan_usb_decode_status()
675 rec_len = 1; in pcan_usb_decode_status()
695 if ((mc->ptr + rec_len) > mc->end) in pcan_usb_decode_status()
698 mc->ptr += rec_len; in pcan_usb_decode_status()
708 u8 rec_len = status_len & PCAN_USB_STATUSLEN_DLC; in pcan_usb_decode_data() local
739 cf->can_dlc = get_can_dlc(rec_len); in pcan_usb_decode_data()
753 if ((mc->ptr + rec_len) > mc->end) in pcan_usb_decode_data()
757 mc->ptr += rec_len; in pcan_usb_decode_data()
Dpcan_usb_pro.c246 u16 rec_len; in pcan_usb_pro_wait_rsp() local
277 rec_len = pcan_usb_pro_sizeof_rec[pr->data_type]; in pcan_usb_pro_wait_rsp()
278 if (!rec_len) { in pcan_usb_pro_wait_rsp()
304 pc += rec_len; in pcan_usb_pro_wait_rsp()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Diqs5xx.c763 u8 rec_len, rec_type, rec_chksm, chksm; in iqs5xx_fw_file_parse() local
806 rec_len = *rec_hdr; in iqs5xx_fw_file_parse()
807 rec_addr = get_unaligned_be16(rec_hdr + sizeof(rec_len)); in iqs5xx_fw_file_parse()
808 rec_type = *(rec_hdr + sizeof(rec_len) + sizeof(rec_addr)); in iqs5xx_fw_file_parse()
810 if (pos + rec_len * 2 > fw->size) { in iqs5xx_fw_file_parse()
815 pos += (rec_len * 2); in iqs5xx_fw_file_parse()
817 error = hex2bin(rec_data, rec->data, rec_len); in iqs5xx_fw_file_parse()
825 rec->data + rec_len * 2, sizeof(rec_chksm)); in iqs5xx_fw_file_parse()
835 for (i = 0; i < rec_len; i++) in iqs5xx_fw_file_parse()
857 rec_data, rec_len); in iqs5xx_fw_file_parse()
/kernel/linux/linux-5.10/drivers/s390/char/
Dvmur.h35 __s16 rec_len; member
/kernel/linux/linux-5.10/fs/hfs/
Dbfind.c163 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument
170 if (fd->entrylength > rec_len) in hfs_brec_read()
/kernel/linux/linux-5.10/fs/hfsplus/
Dbfind.c218 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument
225 if (fd->entrylength > rec_len) in hfs_brec_read()
/kernel/linux/linux-5.10/drivers/s390/scsi/
Dzfcp_dbf.c470 u16 rec_len; in zfcp_dbf_san() local
485 rec_len = min_t(unsigned int, sg->length, ZFCP_DBF_SAN_MAX_PAYLOAD); in zfcp_dbf_san()
486 memcpy(rec->payload, sg_virt(sg), rec_len); /* part of 1st sg entry */ in zfcp_dbf_san()
487 if (len <= rec_len) in zfcp_dbf_san()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_alloc_btree.c428 .rec_len = sizeof(xfs_alloc_rec_t),
450 .rec_len = sizeof(xfs_alloc_rec_t),
Dxfs_ialloc_btree.c382 .rec_len = sizeof(xfs_inobt_rec_t),
403 .rec_len = sizeof(xfs_inobt_rec_t),
Dxfs_alloc.c741 xfs_extlen_t rec_len;/* extent length */ member
766 acur->rec_len = 0; in xfs_alloc_cur_setup()
895 acur->rec_len = len; in xfs_alloc_cur_check()
930 ASSERT(acur->bno + acur->len <= acur->rec_bno + acur->rec_len); in xfs_alloc_cur_finish()
931 ASSERT(acur->rec_bno + acur->rec_len <= be32_to_cpu(agf->agf_length)); in xfs_alloc_cur_finish()
934 acur->rec_len, acur->bno, acur->len, 0); in xfs_alloc_cur_finish()
Dxfs_iext_tree.c294 uint32_t rec_len = rec->hi & XFS_IEXT_LENGTH_MASK; in xfs_iext_rec_cmp() local
298 if (rec_offset + rec_len <= offset) in xfs_iext_rec_cmp()
Dxfs_btree.h99 size_t rec_len; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dnilfs2_ondisk.h144 __le16 rec_len; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dnilfs2_ondisk.h121 __le16 rec_len; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dnilfs2_ondisk.h302 __le16 rec_len; /* Directory entry length */ member
/kernel/linux/linux-5.10/fs/gfs2/
Ddir.c611 u16 rec_len = be16_to_cpu(d->de_rec_len); in dirent_check_reclen() local
613 if (unlikely(rec_len < sizeof(struct gfs2_dirent))) in dirent_check_reclen()
615 ptr += rec_len; in dirent_check_reclen()
617 return rec_len; in dirent_check_reclen()

12