Home
last modified time | relevance | path

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

12345678910>>...21

/fs/hpfs/
Dname.c20 void hpfs_decide_conv(struct inode *inode, unsigned char *name, unsigned len) in hpfs_decide_conv() argument
27 if (l <= len) in hpfs_decide_conv()
28 if (!hpfs_compare_names(inode->i_sb, text_postfix[i], l, name + len - l, l, 0)) in hpfs_decide_conv()
33 if (l <= len) in hpfs_decide_conv()
74 int hpfs_chk_name(unsigned char *name, unsigned *len) in hpfs_chk_name() argument
77 if (*len > 254) return -ENAMETOOLONG; in hpfs_chk_name()
78 hpfs_adjust_length(name, len); in hpfs_chk_name()
79 if (!*len) return -EINVAL; in hpfs_chk_name()
80 for (i = 0; i < *len; i++) if (not_allowed_char(name[i])) return -EINVAL; in hpfs_chk_name()
81 if (*len == 1) if (name[0] == '.') return -EINVAL; in hpfs_chk_name()
[all …]
Dea.c14 void hpfs_ea_ext_remove(struct super_block *s, secno a, int ano, unsigned len) in hpfs_ea_ext_remove() argument
17 while (pos < len) { in hpfs_ea_ext_remove()
20 if (pos + 4 > len) { in hpfs_ea_ext_remove()
22 ano ? "anode" : "sectors", a, len); in hpfs_ea_ext_remove()
38 if (!ano) hpfs_free_sectors(s, a, (len+511) >> 9); in hpfs_ea_ext_remove()
77 int ano, len; in hpfs_read_ea() local
92 len = fnode->ea_size_l; in hpfs_read_ea()
95 while (pos < len) { in hpfs_read_ea()
98 if (pos + 4 > len) { in hpfs_read_ea()
100 ano ? "anode" : "sectors", a, len); in hpfs_read_ea()
[all …]
/fs/isofs/
Drock.c30 int len; member
55 rs->len = sizeof(struct iso_directory_record) + de->name_len[0]; in setup_rock_ridge()
56 if (rs->len & 1) in setup_rock_ridge()
57 (rs->len)++; in setup_rock_ridge()
58 rs->chr = (unsigned char *)de + rs->len; in setup_rock_ridge()
59 rs->len = *((unsigned char *)de) - rs->len; in setup_rock_ridge()
60 if (rs->len < 0) in setup_rock_ridge()
61 rs->len = 0; in setup_rock_ridge()
64 rs->len -= ISOFS_SB(inode->i_sb)->s_rock_offset; in setup_rock_ridge()
66 if (rs->len < 0) in setup_rock_ridge()
[all …]
Djoliet.c17 uni16_to_x8(unsigned char *ascii, __be16 *uni, int len, struct nls_table *nls) in uni16_to_x8() argument
25 while ((ch = get_unaligned(ip)) && len) { in uni16_to_x8()
34 len--; in uni16_to_x8()
76 unsigned char len = 0; in get_joliet_filename() local
82 len = wcsntombs_be(outname, de->name, in get_joliet_filename()
85 len = uni16_to_x8(outname, (__be16 *) de->name, in get_joliet_filename()
88 if ((len > 2) && (outname[len-2] == ';') && (outname[len-1] == '1')) in get_joliet_filename()
89 len -= 2; in get_joliet_filename()
95 while (len >= 2 && (outname[len-1] == '.')) in get_joliet_filename()
96 len--; in get_joliet_filename()
[all …]
/fs/hfs/
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
81 len = (len1 > len2) ? len2 : len1; in hfs_strcmp()
83 while (len--) { in hfs_strcmp()
98 int len; in hfs_compare_dentry() local
100 len = s1->len; in hfs_compare_dentry()
101 if (len >= HFS_NAMELEN) { in hfs_compare_dentry()
[all …]
Dbitmap.c32 u32 mask, start, len, n; in hfs_find_set_zero_bits() local
36 len = *max; in hfs_find_set_zero_bits()
37 if (!len) in hfs_find_set_zero_bits()
74 len = min(size - start, len); in hfs_find_set_zero_bits()
80 if (!--len || n & mask) in hfs_find_set_zero_bits()
83 if (!--len) in hfs_find_set_zero_bits()
89 if (len < 32) in hfs_find_set_zero_bits()
92 len = 32; in hfs_find_set_zero_bits()
96 len -= 32; in hfs_find_set_zero_bits()
100 for (i = 0; i < len; i++) { in hfs_find_set_zero_bits()
[all …]
/fs/ext4/
Dhash.c38 static __u32 dx_hack_hash_unsigned(const char *name, int len) in dx_hack_hash_unsigned() argument
43 while (len--) { in dx_hack_hash_unsigned()
54 static __u32 dx_hack_hash_signed(const char *name, int len) in dx_hack_hash_signed() argument
59 while (len--) { in dx_hack_hash_signed()
70 static void str2hashbuf_signed(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_signed() argument
76 pad = (__u32)len | ((__u32)len << 8); in str2hashbuf_signed()
80 if (len > num*4) in str2hashbuf_signed()
81 len = num * 4; in str2hashbuf_signed()
82 for (i = 0; i < len; i++) { in str2hashbuf_signed()
98 static void str2hashbuf_unsigned(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_unsigned() argument
[all …]
/fs/ext3/
Dhash.c38 static __u32 dx_hack_hash_unsigned(const char *name, int len) in dx_hack_hash_unsigned() argument
43 while (len--) { in dx_hack_hash_unsigned()
54 static __u32 dx_hack_hash_signed(const char *name, int len) in dx_hack_hash_signed() argument
59 while (len--) { in dx_hack_hash_signed()
70 static void str2hashbuf_signed(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_signed() argument
76 pad = (__u32)len | ((__u32)len << 8); in str2hashbuf_signed()
80 if (len > num*4) in str2hashbuf_signed()
81 len = num * 4; in str2hashbuf_signed()
82 for (i = 0; i < len; i++) { in str2hashbuf_signed()
98 static void str2hashbuf_unsigned(const char *msg, int len, __u32 *buf, int num) in str2hashbuf_unsigned() argument
[all …]
/fs/ocfs2/dlm/
Ddlmdebug.c48 int len);
105 stringify_lockname(res->lockname.name, res->lockname.len, in __dlm_print_one_lock_resource()
256 int len) in stringify_lockname() argument
266 out += snprintf(buf + out, len - out, "%.*s%08x", in stringify_lockname()
270 out += snprintf(buf + out, len - out, "%.*s", in stringify_lockname()
276 char *buf, int len) in stringify_nodemap() argument
282 out += snprintf(buf + out, len - out, "%d ", i); in stringify_nodemap()
287 static int dump_mle(struct dlm_master_list_entry *mle, char *buf, int len) in dump_mle() argument
295 namelen = mle->u.name.len; in dump_mle()
298 namelen = mle->u.res->lockname.len; in dump_mle()
[all …]
/fs/xfs/support/
Ddebug.c43 int len; in cmn_err() local
53 len = vsnprintf(message, sizeof(message), fp, ap); in cmn_err()
54 if (len >= sizeof(message)) in cmn_err()
55 len = sizeof(message) - 1; in cmn_err()
56 if (message[len-1] == '\n') in cmn_err()
57 message[len-1] = 0; in cmn_err()
72 int len = 0; in xfs_fs_vcmn_err() local
81 len = sprintf(message, "Filesystem \"%s\": ", mp->m_fsname); in xfs_fs_vcmn_err()
87 if (len >= sizeof(message)) in xfs_fs_vcmn_err()
91 len = vsnprintf(message + len, sizeof(message) - len, fmt, ap); in xfs_fs_vcmn_err()
[all …]
/fs/
Dsplice.c201 buf->len = spd->partial[page_nr].len; in splice_to_pipe()
209 ret += buf->len; in splice_to_pipe()
271 struct pipe_inode_info *pipe, size_t len, in __generic_file_splice_read() argument
292 req_pages = (len + loff + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT; in __generic_file_splice_read()
353 if (!len) in __generic_file_splice_read()
359 this_len = min_t(unsigned long, len, PAGE_CACHE_SIZE - loff); in __generic_file_splice_read()
452 len = this_len; in __generic_file_splice_read()
456 partial[page_nr].len = this_len; in __generic_file_splice_read()
457 len -= this_len; in __generic_file_splice_read()
492 struct pipe_inode_info *pipe, size_t len, in generic_file_splice_read() argument
[all …]
Dfilesystems.c46 static struct file_system_type **find_filesystem(const char *name, unsigned len) in find_filesystem() argument
50 if (strlen((*p)->name) == len && in find_filesystem()
51 strncmp((*p)->name, name, len) == 0) in find_filesystem()
150 int len, res; in fs_name() local
161 len = strlen(tmp->name) + 1; in fs_name()
162 res = copy_to_user(buf, tmp->name, len) ? -EFAULT : 0; in fs_name()
204 int len = 0; in get_filesystem_list() local
209 while (tmp && len < PAGE_SIZE - 80) { in get_filesystem_list()
210 len += sprintf(buf+len, "%s\t%s\n", in get_filesystem_list()
216 return len; in get_filesystem_list()
[all …]
/fs/affs/
Dnamei.c67 i = affs_check_name(qstr->name,qstr->len); in __affs_hash_dentry()
72 i = min(qstr->len, 30u); in __affs_hash_dentry()
96 int len; in __affs_compare_dentry() local
102 if (affs_check_name(b->name,b->len)) in __affs_compare_dentry()
108 len = a->len; in __affs_compare_dentry()
109 if (len >= 30) { in __affs_compare_dentry()
110 if (b->len < 30) in __affs_compare_dentry()
112 len = 30; in __affs_compare_dentry()
113 } else if (len != b->len) in __affs_compare_dentry()
116 for (; len > 0; len--) in __affs_compare_dentry()
[all …]
/fs/ubifs/
Dscan.c40 static int scan_padding_bytes(void *buf, int len) in scan_padding_bytes() argument
42 int pad_len = 0, max_pad_len = min_t(int, UBIFS_PAD_NODE_SZ, len); in scan_padding_bytes()
69 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, in ubifs_scan_a_node() argument
83 return scan_padding_bytes(buf, len); in ubifs_scan_a_node()
85 if (len < UBIFS_CH_SZ) in ubifs_scan_a_node()
96 int node_len = le32_to_cpu(ch->len); in ubifs_scan_a_node()
208 snod->len = le32_to_cpu(ch->len); in ubifs_add_snod()
239 int len; in ubifs_scanned_corruption() local
244 len = c->leb_size - offs; in ubifs_scanned_corruption()
245 if (len > 4096) in ubifs_scanned_corruption()
[all …]
Drecovery.c44 static int is_empty(void *buf, int len) in is_empty() argument
49 for (i = 0; i < len; i++) in is_empty()
76 int err, offs, len; in get_master_node() local
90 len = c->leb_size; in get_master_node()
98 len -= sz; in get_master_node()
106 len += sz; in get_master_node()
107 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node()
112 len += sz; in get_master_node()
113 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node()
131 len -= sz; in get_master_node()
[all …]
Dio.c121 node_len = le32_to_cpu(ch->len); in ubifs_check_node()
126 if (node_len != c->ranges[type].len) in ubifs_check_node()
191 ch->len = cpu_to_le32(UBIFS_PAD_NODE_SZ); in ubifs_pad()
237 void ubifs_prepare_node(struct ubifs_info *c, void *node, int len, int pad) in ubifs_prepare_node() argument
243 ubifs_assert(len >= UBIFS_CH_SZ); in ubifs_prepare_node()
246 ch->len = cpu_to_le32(len); in ubifs_prepare_node()
250 crc = crc32(UBIFS_CRC32_INIT, node + 8, len - 8); in ubifs_prepare_node()
254 len = ALIGN(len, 8); in ubifs_prepare_node()
255 pad = ALIGN(len, c->min_io_size) - len; in ubifs_prepare_node()
256 ubifs_pad(c, node + len, pad); in ubifs_prepare_node()
[all …]
Djournal.c115 static int reserve_space(struct ubifs_info *c, int jhead, int len) in reserve_space() argument
135 if (wbuf->lnum != -1 && avail >= len) in reserve_space()
142 lnum = ubifs_find_free_space(c, len, &free, squeeze); in reserve_space()
191 if (wbuf->lnum != -1 && avail >= len) { in reserve_space()
249 static int write_node(struct ubifs_info *c, int jhead, void *node, int len, in write_node() argument
259 dbg_jnl("jhead %d, LEB %d:%d, len %d", jhead, *lnum, *offs, len); in write_node()
260 ubifs_prepare_node(c, node, len, 0); in write_node()
262 return ubifs_wbuf_write_nolock(wbuf, node, len); in write_node()
279 static int write_head(struct ubifs_info *c, int jhead, void *buf, int len, in write_head() argument
289 dbg_jnl("jhead %d, LEB %d:%d, len %d", jhead, *lnum, *offs, len); in write_head()
[all …]
/fs/reiserfs/
Dhashes.c50 u32 keyed_hash(const signed char *msg, int len) in keyed_hash() argument
61 pad = (u32) len | ((u32) len << 8); in keyed_hash()
64 while (len >= 16) { in keyed_hash()
78 len -= 16; in keyed_hash()
82 if (len >= 12) { in keyed_hash()
92 for (i = 12; i < len; i++) { in keyed_hash()
96 } else if (len >= 8) { in keyed_hash()
103 for (i = 8; i < len; i++) { in keyed_hash()
107 } else if (len >= 4) { in keyed_hash()
112 for (i = 4; i < len; i++) { in keyed_hash()
[all …]
/fs/xfs/linux-2.6/
Dxfs_stats.c32 int c, i, j, len, val; in xfs_read_xfsstats() local
63 for (i=j=len = 0; i < ARRAY_SIZE(xstats); i++) { in xfs_read_xfsstats()
64 len += sprintf(buffer + len, "%s", xstats[i].desc); in xfs_read_xfsstats()
71 len += sprintf(buffer + len, " %u", val); in xfs_read_xfsstats()
74 buffer[len++] = '\n'; in xfs_read_xfsstats()
83 len += sprintf(buffer + len, "xpc %Lu %Lu %Lu\n", in xfs_read_xfsstats()
85 len += sprintf(buffer + len, "debug %u\n", in xfs_read_xfsstats()
92 if (offset >= len) { in xfs_read_xfsstats()
98 if ((len -= offset) > count) in xfs_read_xfsstats()
102 return len; in xfs_read_xfsstats()
/fs/autofs4/
Dwaitq.c107 wq->wait_queue_token, wq->name.len, wq->name.name, type); in autofs4_notify_daemon()
122 mp->len = wq->name.len; in autofs4_notify_daemon()
123 memcpy(mp->name, wq->name.name, wq->name.len); in autofs4_notify_daemon()
124 mp->name[wq->name.len] = '\0'; in autofs4_notify_daemon()
134 ep->len = wq->name.len; in autofs4_notify_daemon()
135 memcpy(ep->name, wq->name.name, wq->name.len); in autofs4_notify_daemon()
136 ep->name[wq->name.len] = '\0'; in autofs4_notify_daemon()
153 packet->len = wq->name.len; in autofs4_notify_daemon()
154 memcpy(packet->name, wq->name.name, wq->name.len); in autofs4_notify_daemon()
155 packet->name[wq->name.len] = '\0'; in autofs4_notify_daemon()
[all …]
/fs/proc/
Duptime.c8 int count, int *eof, int len) in proc_calc_metrics() argument
10 if (len <= off + count) in proc_calc_metrics()
13 len -= off; in proc_calc_metrics()
14 if (len > count) in proc_calc_metrics()
15 len = count; in proc_calc_metrics()
16 if (len < 0) in proc_calc_metrics()
17 len = 0; in proc_calc_metrics()
18 return len; in proc_calc_metrics()
26 int len; in uptime_read_proc() local
32 len = sprintf(page, "%lu.%02lu %lu.%02lu\n", in uptime_read_proc()
[all …]
/fs/cifs/
Dsess.c285 int words_left, len; in decode_unicode_ssetup() local
304 len = UniStrnlen((wchar_t *) data, words_left); in decode_unicode_ssetup()
309 if (len >= words_left) in decode_unicode_ssetup()
314 ses->serverOS = kzalloc((4 * len) + 2 /* trailing null */, GFP_KERNEL); in decode_unicode_ssetup()
316 cifs_strfromUCS_le(ses->serverOS, (__le16 *)data, len, nls_cp); in decode_unicode_ssetup()
317 data += 2 * (len + 1); in decode_unicode_ssetup()
318 words_left -= len + 1; in decode_unicode_ssetup()
321 len = UniStrnlen((wchar_t *) data, words_left); in decode_unicode_ssetup()
323 if (len >= words_left) in decode_unicode_ssetup()
327 ses->serverNOS = kzalloc((4 * len) + 2 /* trailing null */, GFP_KERNEL); in decode_unicode_ssetup()
[all …]
Ddns_resolve.c115 int len; in dns_resolve_server_name_to_ip() local
121 len = strlen(unc); in dns_resolve_server_name_to_ip()
122 if (len < 3) { in dns_resolve_server_name_to_ip()
126 len -= 2; in dns_resolve_server_name_to_ip()
127 name = memchr(unc+2, '\\', len); in dns_resolve_server_name_to_ip()
132 len = (name - unc) - 2/* leading // */; in dns_resolve_server_name_to_ip()
135 name = kmalloc(len+1, GFP_KERNEL); in dns_resolve_server_name_to_ip()
140 memcpy(name, unc+2, len); in dns_resolve_server_name_to_ip()
141 name[len] = 0; in dns_resolve_server_name_to_ip()
152 len = rkey->type_data.x[0]; in dns_resolve_server_name_to_ip()
[all …]
/fs/lockd/
Dxdr.c47 unsigned int len; in nlm_decode_cookie() local
49 len = ntohl(*p++); in nlm_decode_cookie()
51 if(len==0) in nlm_decode_cookie()
53 c->len=4; in nlm_decode_cookie()
56 else if(len<=NLM_MAXCOOKIELEN) in nlm_decode_cookie()
58 c->len=len; in nlm_decode_cookie()
59 memcpy(c->data, p, len); in nlm_decode_cookie()
60 p+=XDR_QUADLEN(len); in nlm_decode_cookie()
66 len, NLM_MAXCOOKIELEN); in nlm_decode_cookie()
75 *p++ = htonl(c->len); in nlm_encode_cookie()
[all …]
/fs/xfs/quota/
Dxfs_qm_stats.c61 int len; in xfs_qm_read_xfsquota() local
64 len = sprintf(buffer, "%d\t%d\t%d\t%u\n", in xfs_qm_read_xfsquota()
70 if (offset >= len) { in xfs_qm_read_xfsquota()
76 if ((len -= offset) > count) in xfs_qm_read_xfsquota()
80 return len; in xfs_qm_read_xfsquota()
92 int len; in xfs_qm_read_stats() local
95 len = sprintf(buffer, "qm %u %u %u %u %u %u %u %u\n", in xfs_qm_read_stats()
105 if (offset >= len) { in xfs_qm_read_stats()
111 if ((len -= offset) > count) in xfs_qm_read_stats()
115 return len; in xfs_qm_read_stats()

12345678910>>...21