Home
last modified time | relevance | path

Searched refs:total_read (Results 1 – 6 of 6) sorted by relevance

/linux-3.4.99/drivers/mtd/ubi/
Dgluebi.c174 int err = 0, lnum, offs, total_read; in gluebi_read() local
179 total_read = len; in gluebi_read()
180 while (total_read) { in gluebi_read()
183 if (to_read > total_read) in gluebi_read()
184 to_read = total_read; in gluebi_read()
192 total_read -= to_read; in gluebi_read()
196 *retlen = len - total_read; in gluebi_read()
/linux-3.4.99/fs/cifs/
Dmisc.c431 checkSMB(char *buf, unsigned int total_read) in checkSMB() argument
438 total_read, rfclen); in checkSMB()
441 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
442 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB()
448 } else if ((total_read == sizeof(struct smb_hdr) + 1) && in checkSMB()
476 if (4 + rfclen != total_read) { in checkSMB()
Dfile.c2392 ssize_t total_read; in cifs_iovec_read() local
2429 for (total_read = 0; total_read < len; total_read += bytes_read) { in cifs_iovec_read()
2430 cur_len = min_t(const size_t, len - total_read, rsize); in cifs_iovec_read()
2465 if (total_read) { in cifs_iovec_read()
2478 return total_read; in cifs_iovec_read()
2520 unsigned int total_read; in cifs_read() local
2554 for (total_read = 0, current_offset = read_data; in cifs_read()
2555 read_size > total_read; in cifs_read()
2556 total_read += bytes_read, current_offset += bytes_read) { in cifs_read()
2557 current_read_size = min_t(uint, read_size - total_read, rsize); in cifs_read()
[all …]
Dconnect.c663 int total_read; in cifs_readv_from_socket() local
675 for (total_read = 0; to_read; total_read += length, to_read -= length) { in cifs_readv_from_socket()
679 total_read = -EAGAIN; in cifs_readv_from_socket()
683 segs = kvec_array_init(iov, iov_orig, nr_segs, total_read); in cifs_readv_from_socket()
689 total_read = -ESHUTDOWN; in cifs_readv_from_socket()
693 total_read = -EAGAIN; in cifs_readv_from_socket()
710 total_read = -EAGAIN; in cifs_readv_from_socket()
714 return total_read; in cifs_readv_from_socket()
954 memcpy(server->bigbuf, buf, server->total_read); in standard_receive3()
963 server->total_read += length; in standard_receive3()
[all …]
Dcifssmb.c1444 int remaining = rfclen + 4 - server->total_read; in cifs_readv_discard()
1455 server->total_read += length; in cifs_readv_discard()
1512 server->total_read += length; in cifs_readv_receive()
1523 if (server->total_read < read_rsp_size()) { in cifs_readv_receive()
1525 __func__, server->total_read, read_rsp_size()); in cifs_readv_receive()
1531 if (data_offset < server->total_read) { in cifs_readv_receive()
1539 data_offset = server->total_read; in cifs_readv_receive()
1549 server->total_read, data_offset); in cifs_readv_receive()
1551 len = data_offset - server->total_read; in cifs_readv_receive()
1554 rdata->iov[0].iov_base = buf + server->total_read; in cifs_readv_receive()
[all …]
Dcifsglob.h306 unsigned int total_read; /* total amount of data read in this pass */ member