Home
last modified time | relevance | path

Searched refs:datalen (Results 1 – 19 of 19) 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.c1316 uint32_t datalen; in jffs2_garbage_collect_dnode() local
1329 datalen = end - offset; in jffs2_garbage_collect_dnode()
1333 comprtype = jffs2_compress(c, f, writebuf, &comprbuf, &datalen, &cdatalen); in jffs2_garbage_collect_dnode()
1351 ri.dsize = cpu_to_je32(datalen); in jffs2_garbage_collect_dnode()
1368 offset += datalen; in jffs2_garbage_collect_dnode()
Dnodelist.h396 uint32_t datalen, int alloc_mode);
/fs/ncpfs/
Dsock.c62 size_t datalen; member
137 memcpy(req->reply_buf, server->rxbuf, req->datalen); in ncp_finish_request()
307 req->sign[3] = htonl(req->datalen + 8); in ncptcp_start_request()
440 result = _recv(sock, server->rxbuf, req->datalen, MSG_DONTWAIT); in ncpdgram_rcv_proc()
539 int datalen; in __ncptcp_rcv_proc() local
573 datalen = ntohl(server->rcv.buf.len) & 0x0FFFFFFF; in __ncptcp_rcv_proc()
574 if (datalen < 10) { in __ncptcp_rcv_proc()
575 printk(KERN_ERR "ncpfs: tcp: Unexpected reply len %d\n", datalen); in __ncptcp_rcv_proc()
581 if (datalen < 18) { in __ncptcp_rcv_proc()
582 printk(KERN_ERR "ncpfs: tcp: Unexpected reply len %d\n", datalen); in __ncptcp_rcv_proc()
[all …]
/fs/fscache/
Dfsdef.c25 uint16_t datalen);
124 uint16_t datalen) in fscache_fsdef_netfs_check_aux() argument
129 _enter("{%s},,%hu", netfs->name, datalen); in fscache_fsdef_netfs_check_aux()
131 if (datalen != sizeof(version)) { in fscache_fsdef_netfs_check_aux()
132 _leave(" = OBSOLETE [dl=%d v=%zu]", datalen, sizeof(version)); in fscache_fsdef_netfs_check_aux()
Dobject.c859 const void *data, uint16_t datalen) in fscache_check_aux() argument
869 data, datalen); in fscache_check_aux()
Dobject-list.c343 for (len = confkey->datalen - 1; len >= 0; len--) { in fscache_objlist_config()
/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()
Dcifs_spnego.c34 cifs_spnego_key_instantiate(struct key *key, const void *data, size_t datalen) in cifs_spnego_key_instantiate() argument
40 payload = kmalloc(datalen, GFP_KERNEL); in cifs_spnego_key_instantiate()
45 memcpy(payload, data, datalen); in cifs_spnego_key_instantiate()
Dcifsacl.c170 cifs_idmap_key_instantiate(struct key *key, const void *data, size_t datalen) in cifs_idmap_key_instantiate() argument
174 payload = kmalloc(datalen, GFP_KERNEL); in cifs_idmap_key_instantiate()
178 memcpy(payload, data, datalen); in cifs_idmap_key_instantiate()
180 key->datalen = datalen; in cifs_idmap_key_instantiate()
380 } else if (sidkey->datalen < sizeof(struct cifs_sid)) { in id_to_sid()
383 "(datalen=%hu)", __func__, sidkey->datalen); in id_to_sid()
Dconnect.c2426 delim = strnchr(payload, upayload->datalen, ':'); in cifs_set_cifscreds()
2430 upayload->datalen); in cifs_set_cifscreds()
2450 len = key->datalen - (len + 1); in cifs_set_cifscreds()
/fs/cachefiles/
Ddaemon.c210 size_t datalen, in cachefiles_daemon_write() argument
225 if (datalen < 0 || datalen > PAGE_SIZE - 1) in cachefiles_daemon_write()
229 data = kmalloc(datalen + 1, GFP_KERNEL); in cachefiles_daemon_write()
234 if (copy_from_user(data, _data, datalen) != 0) in cachefiles_daemon_write()
237 data[datalen] = '\0'; in cachefiles_daemon_write()
240 if (memchr(data, '\0', datalen)) in cachefiles_daemon_write()
244 cp = memchr(data, '\n', datalen); in cachefiles_daemon_write()
285 ret = datalen; in cachefiles_daemon_write()
/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/nfs/
Dfscache-index.c233 uint16_t datalen) in nfs_fscache_inode_check_aux() argument
238 if (datalen != sizeof(auxdata)) in nfs_fscache_inode_check_aux()
249 if (memcmp(data, &auxdata, datalen) != 0) in nfs_fscache_inode_check_aux()
Didmap.c310 ret = payload->datalen; in nfs_idmap_request_key()
/fs/ocfs2/cluster/
Dtcp.c1384 size_t datalen; in o2net_advance_rx() local
1392 datalen = sizeof(struct o2net_handshake) - sc->sc_page_off; in o2net_advance_rx()
1393 ret = o2net_recv_tcp_msg(sc->sc_sock, data, datalen); in o2net_advance_rx()
1409 datalen = sizeof(struct o2net_msg) - sc->sc_page_off; in o2net_advance_rx()
1410 ret = o2net_recv_tcp_msg(sc->sc_sock, data, datalen); in o2net_advance_rx()
1441 datalen = (sizeof(struct o2net_msg) + be16_to_cpu(hdr->data_len)) - in o2net_advance_rx()
1443 ret = o2net_recv_tcp_msg(sc->sc_sock, data, datalen); in o2net_advance_rx()