Home
last modified time | relevance | path

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

/fs/jffs2/
Dcompr.c75 unsigned char **cpage_out, u32 *datalen, u32 *cdatalen) in jffs2_selected_compress() argument
87 orig_slen = *datalen; in jffs2_selected_compress()
106 *datalen = orig_slen; in jffs2_selected_compress()
108 err = this->compress(data_in, output_buf, datalen, cdatalen); in jffs2_selected_compress()
116 this->stat_compr_orig_size += *datalen; in jffs2_selected_compress()
150 uint32_t *datalen, uint32_t *cdatalen) in jffs2_compress() argument
168 ret = jffs2_selected_compress(0, data_in, cpage_out, datalen, in jffs2_compress()
173 orig_slen = *datalen; in jffs2_compress()
204 *datalen = orig_slen; in jffs2_compress()
206 compr_ret = this->compress(data_in, this->compr_buf, datalen, cdatalen); in jffs2_compress()
[all …]
Dwrite.c61 uint32_t datalen, int alloc_mode) in jffs2_write_dnode() argument
80 vecs[1].iov_len = datalen; in jffs2_write_dnode()
82 if (je32_to_cpu(ri->totlen) != sizeof(*ri) + datalen) { in jffs2_write_dnode()
85 sizeof(*ri), datalen); in jffs2_write_dnode()
93 if (!datalen || !data) in jffs2_write_dnode()
112 if (ret || (retlen != sizeof(*ri) + datalen)) { in jffs2_write_dnode()
114 sizeof(*ri) + datalen, flash_ofs, ret, retlen); in jffs2_write_dnode()
123 jffs2_add_physical_node_ref(c, flash_ofs | REF_OBSOLETE, PAD(sizeof(*ri)+datalen), NULL); in jffs2_write_dnode()
141 ret = jffs2_reserve_space_gc(c, sizeof(*ri) + datalen, &dummy, in jffs2_write_dnode()
148 ret = jffs2_reserve_space(c, sizeof(*ri) + datalen, &dummy, in jffs2_write_dnode()
[all …]
Dcompr.h56 uint32_t cdatalen, uint32_t datalen);
75 uint32_t *datalen, uint32_t *cdatalen);
79 unsigned char *data_out, uint32_t cdatalen, uint32_t datalen);
Dgc.c1339 uint32_t datalen; in jffs2_garbage_collect_dnode() local
1352 datalen = end - offset; in jffs2_garbage_collect_dnode()
1356 comprtype = jffs2_compress(c, f, writebuf, &comprbuf, &datalen, &cdatalen); in jffs2_garbage_collect_dnode()
1374 ri.dsize = cpu_to_je32(datalen); in jffs2_garbage_collect_dnode()
1391 offset += datalen; in jffs2_garbage_collect_dnode()
Dnodelist.h400 uint32_t datalen, int alloc_mode);
/fs/ncpfs/
Dsock.c63 size_t datalen; member
138 memcpy(req->reply_buf, server->rxbuf, req->datalen); in ncp_finish_request()
308 req->sign[3] = htonl(req->datalen + 8); in ncptcp_start_request()
441 result = _recv(sock, server->rxbuf, req->datalen, MSG_DONTWAIT); in ncpdgram_rcv_proc()
540 int datalen; in __ncptcp_rcv_proc() local
574 datalen = ntohl(server->rcv.buf.len) & 0x0FFFFFFF; in __ncptcp_rcv_proc()
575 if (datalen < 10) { in __ncptcp_rcv_proc()
576 pr_err("tcp: Unexpected reply len %d\n", datalen); in __ncptcp_rcv_proc()
582 if (datalen < 18) { in __ncptcp_rcv_proc()
583 pr_err("tcp: Unexpected reply len %d\n", datalen); in __ncptcp_rcv_proc()
[all …]
/fs/fscache/
Dfsdef.c25 uint16_t datalen);
126 uint16_t datalen) in fscache_fsdef_netfs_check_aux() argument
131 _enter("{%s},,%hu", netfs->name, datalen); in fscache_fsdef_netfs_check_aux()
133 if (datalen != sizeof(version)) { in fscache_fsdef_netfs_check_aux()
134 _leave(" = OBSOLETE [dl=%d v=%zu]", datalen, sizeof(version)); in fscache_fsdef_netfs_check_aux()
Dobject-list.c342 for (len = confkey->datalen - 1; len >= 0; len--) { in fscache_objlist_config()
Dobject.c909 const void *data, uint16_t datalen) in fscache_check_aux() argument
919 data, datalen); in fscache_check_aux()
/fs/cifs/
Dcache.c192 uint16_t datalen) in cifs_fscache_super_check_aux() argument
197 if (datalen != sizeof(auxdata)) in cifs_fscache_super_check_aux()
203 if (memcmp(data, &auxdata, datalen) != 0) in cifs_fscache_super_check_aux()
276 uint16_t datalen) in cifs_fscache_inode_check_aux() argument
281 if (datalen != sizeof(auxdata)) in cifs_fscache_inode_check_aux()
289 if (memcmp(data, &auxdata, datalen) != 0) in cifs_fscache_inode_check_aux()
Dcifsacl.c89 if (prep->datalen <= sizeof(key->payload)) { in cifs_idmap_key_instantiate()
91 memcpy(&key->payload, prep->data, prep->datalen); in cifs_idmap_key_instantiate()
93 payload = kmemdup(prep->data, prep->datalen, GFP_KERNEL); in cifs_idmap_key_instantiate()
99 key->datalen = prep->datalen; in cifs_idmap_key_instantiate()
106 if (key->datalen > sizeof(key->payload)) in cifs_idmap_key_destroy()
307 } else if (sidkey->datalen < CIFS_SID_BASE_SIZE) { in id_to_sid()
310 __func__, sidkey->datalen); in id_to_sid()
319 ksid = sidkey->datalen <= sizeof(sidkey->payload) ? in id_to_sid()
324 if (ksid_size > sidkey->datalen) { in id_to_sid()
327 __func__, sidkey->datalen, ksid_size); in id_to_sid()
[all …]
Dcifs_spnego.c43 payload = kmemdup(prep->data, prep->datalen, GFP_KERNEL); in cifs_spnego_key_instantiate()
Dconnect.c2450 delim = strnchr(payload, upayload->datalen, ':'); in cifs_set_cifscreds()
2454 upayload->datalen); in cifs_set_cifscreds()
2476 len = key->datalen - (len + 1); in cifs_set_cifscreds()
/fs/logfs/
Djournal.c165 u16 type, len, datalen; in __read_je_header() local
174 datalen = be16_to_cpu(jh->h_datalen); in __read_je_header()
179 if (datalen > bufsize) in __read_je_header()
227 u16 type, datalen; in read_je() local
234 datalen = be16_to_cpu(jh->h_datalen); in read_je()
251 datalen); in read_je()
266 u16 len, datalen, last_len = 0; in logfs_read_segment() local
281 datalen = be16_to_cpu(jh->h_datalen); in logfs_read_segment()
282 if ((datalen > sizeof(super->s_je_array)) || in logfs_read_segment()
283 (datalen % sizeof(__be64))) in logfs_read_segment()
[all …]
Dlogfs.h209 u16 datalen; member
/fs/cachefiles/
Ddaemon.c217 size_t datalen, in cachefiles_daemon_write() argument
232 if (datalen < 0 || datalen > PAGE_SIZE - 1) in cachefiles_daemon_write()
236 data = memdup_user_nul(_data, datalen); in cachefiles_daemon_write()
241 if (memchr(data, '\0', datalen)) in cachefiles_daemon_write()
245 cp = memchr(data, '\n', datalen); in cachefiles_daemon_write()
286 ret = datalen; in cachefiles_daemon_write()
/fs/nfs/
Dfscache-index.c232 uint16_t datalen) in nfs_fscache_inode_check_aux() argument
237 if (datalen != sizeof(auxdata)) in nfs_fscache_inode_check_aux()
248 if (memcmp(data, &auxdata, datalen) != 0) in nfs_fscache_inode_check_aux()
Dnfs4idmap.c325 ret = payload->datalen; in nfs_idmap_get_key()
606 static int nfs_idmap_instantiate(struct key *key, struct key *authkey, char *data, size_t datalen) in nfs_idmap_instantiate() argument
608 return key_instantiate_and_link(key, data, datalen, in nfs_idmap_instantiate()
/fs/ocfs2/cluster/
Dtcp.c1355 size_t datalen; in o2net_advance_rx() local
1363 datalen = sizeof(struct o2net_handshake) - sc->sc_page_off; in o2net_advance_rx()
1364 ret = o2net_recv_tcp_msg(sc->sc_sock, data, datalen); in o2net_advance_rx()
1380 datalen = sizeof(struct o2net_msg) - sc->sc_page_off; in o2net_advance_rx()
1381 ret = o2net_recv_tcp_msg(sc->sc_sock, data, datalen); in o2net_advance_rx()
1412 datalen = (sizeof(struct o2net_msg) + be16_to_cpu(hdr->data_len)) - in o2net_advance_rx()
1414 ret = o2net_recv_tcp_msg(sc->sc_sock, data, datalen); in o2net_advance_rx()
/fs/nfsd/
Dxdr4.h111 u32 datalen; member
125 #define cr_datalen u.link.datalen
/fs/crypto/
Dkeyinfo.c103 if (ukp->datalen != sizeof(struct fscrypt_key)) { in validate_user_key()