Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 927) sorted by relevance

12345678910>>...38

/fs/lockd/
A Dsvcxdr.h51 u32 len; in svcxdr_decode_string() local
55 if (len > NLM_MAXSTRLEN) in svcxdr_decode_string()
60 *data_len = len; in svcxdr_decode_string()
76 u32 len; in svcxdr_decode_cookie() local
80 if (len > NLM_MAXCOOKIELEN) in svcxdr_decode_cookie()
82 if (!len) in svcxdr_decode_cookie()
88 cookie->len = len; in svcxdr_decode_cookie()
95 cookie->len = 4; in svcxdr_decode_cookie()
119 u32 len; in svcxdr_decode_owner() local
123 if (len > XDR_MAX_NETOBJ) in svcxdr_decode_owner()
[all …]
/fs/ntfs3/
A Drun.c151 r->len += n->len - dl; in run_consolidate()
217 if (len) in run_lookup_entry()
218 *len = r->len - gap; in run_lookup_entry()
416 r->len = len; in run_add_entry()
458 if (r->vcn + r->len < vcn + len) in run_add_entry()
459 r->len += len - ((r->vcn + r->len) - vcn); in run_add_entry()
508 r->len -= len; in run_collapse_range()
612 if (len) in run_get_entry()
613 *len = r->len; in run_get_entry()
852 len = r->len - len; in run_pack()
[all …]
/fs/isofs/
A Drock.c30 int len; member
60 rs->len = *((unsigned char *)de) - rs->len; in setup_rock_ridge()
141 int len; in rock_check_overflow() local
181 len = 0; in rock_check_overflow()
185 if (len > rs->len) { in rock_check_overflow()
189 sig, len, rs->len); in rock_check_overflow()
208 int len; in get_rock_ridge_filename() local
231 rs.len -= rr->len; in get_rock_ridge_filename()
273 len = rr->len - 5; in get_rock_ridge_filename()
347 rs.len -= rr->len; in parse_rock_ridge_inode_internal()
[all …]
A Djoliet.c18 uni16_to_x8(unsigned char *ascii, __be16 *uni, int len, struct nls_table *nls) in uni16_to_x8() argument
26 while ((ch = get_unaligned(ip)) && len) { in uni16_to_x8()
35 len--; in uni16_to_x8()
45 unsigned char len = 0; in get_joliet_filename() local
50 len = utf16s_to_utf8s((const wchar_t *) de->name, in get_joliet_filename()
54 len = uni16_to_x8(outname, (__be16 *) de->name, in get_joliet_filename()
57 if ((len > 2) && (outname[len-2] == ';') && (outname[len-1] == '1')) in get_joliet_filename()
58 len -= 2; in get_joliet_filename()
64 while (len >= 2 && (outname[len-1] == '.')) in get_joliet_filename()
65 len--; in get_joliet_filename()
[all …]
/fs/ocfs2/dlm/
A Ddlmdebug.c32 int len);
183 int len) in stringify_lockname() argument
203 char *buf, int len) in stringify_nodemap() argument
236 buf + out, len - out); in dump_mle()
241 buf + out, len - out); in dump_mle()
246 buf + out, len - out); in dump_mle()
251 buf + out, len - out); in dump_mle()
308 if (len - out < 100) in debug_purgelist_print()
312 res->lockname.len, in debug_purgelist_print()
368 if (len - out < 200) in debug_mle_print()
[all …]
/fs/hpfs/
A Dname.c45 if (*len > 254) return -ENAMETOOLONG; in hpfs_chk_name()
46 hpfs_adjust_length(name, len); in hpfs_chk_name()
47 if (!*len) return -EINVAL; in hpfs_chk_name()
55 unsigned len, int lc, int lng) in hpfs_translate_name() argument
61 for (i = 0; i < len; i++) in hpfs_translate_name()
67 if (!(to = kmalloc(len, GFP_KERNEL))) { in hpfs_translate_name()
99 if (i == len) return 0; in hpfs_is_name_long()
100 for (j = i + 1; j < len; j++) in hpfs_is_name_long()
109 if (!*len) return; in hpfs_adjust_length()
112 while (*len && (name[*len - 1] == '.' || name[*len - 1] == ' ')) in hpfs_adjust_length()
[all …]
/fs/btrfs/
A Dsubpage.c209 u32 orig_len = *len; in btrfs_subpage_clamp_range()
218 *len = 0; in btrfs_subpage_clamp_range()
366 uptodate, start, len); in btrfs_subpage_set_uptodate()
381 uptodate, start, len); in btrfs_subpage_clear_uptodate()
395 dirty, start, len); in btrfs_subpage_set_dirty()
419 dirty, start, len); in btrfs_subpage_clear_and_test_dirty()
495 ordered, start, len); in btrfs_subpage_set_ordered()
509 ordered, start, len); in btrfs_subpage_clear_ordered()
524 checked, start, len); in btrfs_subpage_set_checked()
539 checked, start, len); in btrfs_subpage_clear_checked()
[all …]
/fs/btrfs/tests/
A Dextent-map-tests.c67 u64 len = SZ_8K; in test_case_1() local
79 em->len = SZ_16K; in test_case_1()
101 em->len = SZ_4K; in test_case_1()
123 em->len = len; in test_case_1()
144 start, start + len, ret, em->start, em->len, in test_case_1()
319 start, start + len, ret, em->start, em->len, in __test_case_3()
444 start, start + len, ret, em->start, em->len, in __test_case_4()
508 em->len = len; in add_compressed_extent()
527 u64 len; member
577 if (entry->len != valid_ranges[index][i].len) { in validate_range()
[all …]
/fs/smb/server/
A Dsmb2misc.c91 *len = 0; in smb2_get_data_area_len()
131 *len = name_len; in smb2_get_data_area_len()
248 if (offset + 1 < *len) { in smb2_calc_size()
251 offset + 1, *len); in smb2_calc_size()
255 *len = offset + data_length; in smb2_calc_size()
384 len = next_cmd; in ksmbd_smb2_check_message()
420 if (req_struct_size > len + 1) in ksmbd_smb2_check_message()
426 if (len != clc_len) { in ksmbd_smb2_check_message()
428 if (clc_len == len + 1) in ksmbd_smb2_check_message()
451 if (clc_len < len && (len - clc_len) <= 8) in ksmbd_smb2_check_message()
[all …]
/fs/ubifs/
A Dio.c106 int len) in ubifs_leb_write() argument
386 ch->len = cpu_to_le32(len); in ubifs_init_node()
392 len = ALIGN(len, 8); in ubifs_init_node()
393 pad = ALIGN(len, c->min_io_size) - len; in ubifs_init_node()
479 ch->len = cpu_to_le32(len); in ubifs_prep_grp_node()
871 len -= m; in ubifs_wbuf_write_nolock()
882 if (n > len) { in ubifs_wbuf_write_nolock()
884 ubifs_pad(c, wbuf->buf + len, n - len); in ubifs_wbuf_write_nolock()
892 len -= min(len, n); in ubifs_wbuf_write_nolock()
906 ubifs_pad(c, wbuf->buf + len, aligned_len - len); in ubifs_wbuf_write_nolock()
[all …]
A Dscan.c73 if (len < UBIFS_CH_SZ) in ubifs_scan_a_node()
195 snod->len = le32_to_cpu(ch->len); in ubifs_add_snod()
228 int len; in ubifs_scanned_corruption() local
232 if (len > 8192) in ubifs_scanned_corruption()
233 len = 8192; in ubifs_scanned_corruption()
265 while (len >= 8) { in ubifs_scan()
270 lnum, offs, len); in ubifs_scan()
279 len -= ret; in ubifs_scan()
310 len -= node_len; in ubifs_scan()
322 for (; len > 4; offs += 4, buf = buf + 4, len -= 4) in ubifs_scan()
[all …]
/fs/
A Dremap_range.c136 loff_t *len, in generic_remap_check_len() argument
140 loff_t new_len = *len; in generic_remap_check_len()
148 if (new_len == *len) in generic_remap_check_len()
152 *len = new_len; in generic_remap_check_len()
199 while (len) { in vfs_dedupe_file_range_compare()
258 len -= cmp_len; in vfs_dedupe_file_range_compare()
301 if (*len == 0) { in __generic_remap_file_range_prep()
309 if (*len == 0) in __generic_remap_file_range_prep()
478 if (len == 0) { in vfs_dedupe_file_range_one()
497 u64 len; in vfs_dedupe_file_range() local
[all …]
A Dsplice.c220 buf->len = spd->partial[page_nr].len; in splice_to_pipe()
334 len = min_t(size_t, len, npages * PAGE_SIZE); in copy_splice_read()
453 sd->len = buf->len; in splice_from_pipe_feed()
969 len = min_t(size_t, len, p_space << PAGE_SHIFT); in do_splice_read()
1188 .len = len, in do_splice_direct_actor()
1792 if (len >= ibuf->len) { in splice_pipe_to_pipe()
1823 obuf->len = len; in splice_pipe_to_pipe()
1825 ibuf->len -= len; in splice_pipe_to_pipe()
1912 if (obuf->len > len) in link_pipe()
1913 obuf->len = len; in link_pipe()
[all …]
A Dd_path.c14 int len; member
29 p->len--; in prepend_char()
33 p->len = -1; in prepend_char()
60 if (p->len < 0) in prepend()
67 p->buf -= p->len; in prepend()
69 p->len = -1; in prepend()
192 if (b.len == p->len) in prepend_path()
357 if (b.len == p->len) in __dentry_path()
428 unsigned len; in SYSCALL_DEFINE2() local
436 len = PATH_MAX - b.len; in SYSCALL_DEFINE2()
[all …]
/fs/hfs/
A Dstring.c57 unsigned int hash, len = this->len; in hfs_hash_dentry() local
59 if (len > HFS_NAMELEN) in hfs_hash_dentry()
60 len = HFS_NAMELEN; in hfs_hash_dentry()
63 for (; len; len--) in hfs_hash_dentry()
79 int len, tmp; in hfs_strcmp() local
83 while (len--) { in hfs_strcmp()
100 if (len >= HFS_NAMELEN) { in hfs_compare_dentry()
101 if (name->len < HFS_NAMELEN) in hfs_compare_dentry()
103 len = HFS_NAMELEN; in hfs_compare_dentry()
104 } else if (len != name->len) in hfs_compare_dentry()
[all …]
/fs/f2fs/
A Dhash.c48 pad = (__u32)len | ((__u32)len << 8); in str2hashbuf()
52 if (len > num * 4) in str2hashbuf()
53 len = num * 4; in str2hashbuf()
54 for (i = 0; i < len; i++) { in str2hashbuf()
81 str2hashbuf(p, len, in, 4); in TEA_hash_name()
84 if (len <= 16) in TEA_hash_name()
86 len -= 16; in TEA_hash_name()
99 size_t len = fname->disk_name.len; in f2fs_hash_filename() local
103 if (is_dot_dotdot(name, len)) { in f2fs_hash_filename()
122 len = fname->cf_name.len; in f2fs_hash_filename()
[all …]
/fs/nfsd/
A Dblocklayoutxdr.c29 *p++ = cpu_to_be32(len); in nfsd4_block_encode_layoutget()
35 p = xdr_encode_hyper(p, b->len); in nfsd4_block_encode_layoutget()
45 int len; in nfsd4_block_encode_volume() local
75 return len; in nfsd4_block_encode_volume()
103 len += ret; in nfsd4_block_encode_getdeviceinfo()
110 *p++ = cpu_to_be32(len); in nfsd4_block_encode_getdeviceinfo()
142 if (len < sizeof(u32)) in nfsd4_block_decode_layoutupdate()
144 len -= sizeof(u32); in nfsd4_block_decode_layoutupdate()
180 iomaps[i].length = bex.len; in nfsd4_block_decode_layoutupdate()
217 if (len < sizeof(u32)) in nfsd4_scsi_decode_layoutupdate()
[all …]
/fs/exfat/
A Dnls.c409 int len; in exfat_convert_char_to_ucs2() local
419 if (len < 0) { in exfat_convert_char_to_ucs2()
426 return len; in exfat_convert_char_to_ucs2()
432 int len; in exfat_convert_ucs2_to_char() local
442 if (len < 0) { in exfat_convert_ucs2_to_char()
449 return len; in exfat_convert_ucs2_to_char()
483 int len; in exfat_utf16_to_utf8() local
490 return len; in exfat_utf16_to_utf8()
501 WARN_ON(!len); in exfat_utf8_to_utf16()
572 len = 1; in __exfat_utf16_to_nls()
[all …]
/fs/nfs/
A Dnfs4namespace.c36 ssize_t len = 0; in nfs4_pathname_len() local
44 len += 1 + component->len; /* Adding "/foo" */ in nfs4_pathname_len()
48 return len; in nfs4_pathname_len()
60 ssize_t len; in nfs4_pathname_string() local
65 if (len < 0) in nfs4_pathname_string()
67 *_len = len; in nfs4_pathname_string()
300 len = 0; in try_location()
303 if (buf->len > len) in try_location()
304 len = buf->len; in try_location()
348 p += buf->len; in try_location()
[all …]
/fs/netfs/
A Dwrite_retry.c69 len = from->len - from->transferred; in netfs_retry_write_stream()
82 len += to->len; in netfs_retry_write_stream()
90 source.count = len; in netfs_retry_write_stream()
95 if (!len) in netfs_retry_write_stream()
99 subreq->len = len; in netfs_retry_write_stream()
111 subreq->len = part; in netfs_retry_write_stream()
113 len -= part; in netfs_retry_write_stream()
128 if (!len) { in netfs_retry_write_stream()
179 len -= part; in netfs_retry_write_stream()
187 if (!len) in netfs_retry_write_stream()
[all …]
/fs/efivarfs/
A Dvars.c29 unsigned long len) in validate_device_path() argument
36 if (len < sizeof(*node)) in validate_device_path()
62 unsigned long len) in validate_boot_order() argument
65 if ((len % 2) != 0) in validate_boot_order()
92 if (len < 8) in validate_load_option()
124 unsigned long len) in validate_uint16() argument
127 if (len != 2) in validate_uint16()
241 name[len] = '-'; in efivar_get_utf8name()
290 size_t len) in efivar_variable_is_removable() argument
324 unsigned long len; in var_name_strnsize() local
[all …]
/fs/crypto/
A Dfname.c108 if (WARN_ON_ONCE(olen < iname->len)) in fscrypt_fname_encrypt()
111 memset(out + iname->len, 0, olen - iname->len); in fscrypt_fname_encrypt()
162 oname->len = strnlen(oname->name, iname->len); in fname_decrypt()
355 oname->name[iname->len - 1] = '.'; in fscrypt_fname_disk_to_usr()
356 oname->len = iname->len; in fscrypt_fname_disk_to_usr()
430 fname->disk_name.len = iname->len; in fscrypt_setup_filename()
439 &fname->crypto_buf.len)) in fscrypt_setup_filename()
447 fname->crypto_buf.len); in fscrypt_setup_filename()
451 fname->disk_name.len = fname->crypto_buf.len; in fscrypt_setup_filename()
478 fname->crypto_buf.len = ret; in fscrypt_setup_filename()
[all …]
/fs/hfsplus/
A Dbnode.c60 return len; in check_and_correct_requested_length()
72 if (len == 0) { in hfs_bnode_read()
81 len = check_and_correct_requested_length(node, off, len); in hfs_bnode_read()
143 if (len == 0) { in hfs_bnode_write()
152 len = check_and_correct_requested_length(node, off, len); in hfs_bnode_write()
194 len = check_and_correct_requested_length(node, off, len); in hfs_bnode_clear()
218 if (!len) in hfs_bnode_copy()
276 if (!len) in hfs_bnode_move()
279 len = check_and_correct_requested_length(node, src, len); in hfs_bnode_move()
280 len = check_and_correct_requested_length(node, dst, len); in hfs_bnode_move()
[all …]
/fs/xfs/
A Dxfs_stats.c22 int len = 0; in xfs_stats_format() local
66 len += scnprintf(buf + len, PATH_MAX - len, "%s", in xfs_stats_format()
70 len += scnprintf(buf + len, PATH_MAX - len, " %u", in xfs_stats_format()
72 len += scnprintf(buf + len, PATH_MAX - len, "\n"); in xfs_stats_format()
82 len += scnprintf(buf + len, PATH_MAX-len, "xpc %llu %llu %llu\n", in xfs_stats_format()
84 len += scnprintf(buf + len, PATH_MAX-len, "defer_relog %llu\n", in xfs_stats_format()
86 len += scnprintf(buf + len, PATH_MAX-len, "debug %u\n", in xfs_stats_format()
93 return len; in xfs_stats_format()
/fs/smb/client/
A Dcifs_unicode.c121 int len = 1; in cifs_mapchar() local
127 return len; in cifs_mapchar()
130 return len; in cifs_mapchar()
134 if (len <= 0) in cifs_mapchar()
137 return len; in cifs_mapchar()
144 if (len <= 0) in cifs_mapchar()
146 return len; in cifs_mapchar()
150 len = 1; in cifs_mapchar()
151 return len; in cifs_mapchar()
349 int len; in cifs_strndup_from_utf16() local
[all …]

Completed in 65 milliseconds

12345678910>>...38