Home
last modified time | relevance | path

Searched refs:to_read (Results 1 – 15 of 15) sorted by relevance

/linux-3.4.99/drivers/isdn/hardware/eicon/
Distream.c156 int read = 0, to_read = -1; in diva_istream_read() local
170 if (to_read < 0) in diva_istream_read()
175 if (to_read < 0) in diva_istream_read()
179 to_read = min(max_length, (int)tmp[1]); in diva_istream_read()
180 if (to_read) { in diva_istream_read()
188 (word)to_read); in diva_istream_read()
189 max_length -= to_read; in diva_istream_read()
190 read += to_read; in diva_istream_read()
191 data_ptr += to_read; in diva_istream_read()
/linux-3.4.99/fs/ncpfs/
Dmmap.c60 int to_read; in ncp_file_mmap_fault() local
62 to_read = bufsize - (pos % bufsize); in ncp_file_mmap_fault()
64 to_read = min_t(unsigned int, to_read, count - already_read); in ncp_file_mmap_fault()
68 pos, to_read, in ncp_file_mmap_fault()
76 if (read_this_time < to_read) { in ncp_file_mmap_fault()
Dfile.c143 size_t to_read = min_t(unsigned int, in ncp_file_read() local
149 pos, to_read, buf, &read_this_time, in ncp_file_read()
159 if (read_this_time != to_read) { in ncp_file_read()
Dncplib_kernel.c970 __u32 offset, __u16 to_read, char *target, int *bytes_read) in ncp_read_kernel() argument
979 ncp_add_be16(server, to_read); in ncp_read_kernel()
1006 __u32 offset, __u16 to_read, char __user *target, int *bytes_read, in ncp_read_bounce() argument
1015 ncp_add_be16(server, to_read); in ncp_read_bounce()
1022 if (len <= to_read) { in ncp_read_bounce()
/linux-3.4.99/drivers/mtd/ubi/
Dgluebi.c181 size_t to_read = mtd->erasesize - offs; in gluebi_read() local
183 if (to_read > total_read) in gluebi_read()
184 to_read = total_read; in gluebi_read()
186 err = ubi_read(gluebi->desc, lnum, buf, offs, to_read); in gluebi_read()
192 total_read -= to_read; in gluebi_read()
193 buf += to_read; in gluebi_read()
/linux-3.4.99/drivers/staging/comedi/drivers/
Dadl_pci9111.c1045 int to_read; in pci9111_interrupt() local
1050 to_read = in pci9111_interrupt()
1054 if (to_read > in pci9111_interrupt()
1056 to_read = in pci9111_interrupt()
1065 to_read * sizeof(short)); in pci9111_interrupt()
1067 to_read = in pci9111_interrupt()
1071 if (to_read > in pci9111_interrupt()
1073 to_read = in pci9111_interrupt()
1078 sizeof(short) * to_read; in pci9111_interrupt()
1081 position += to_read; in pci9111_interrupt()
[all …]
/linux-3.4.99/fs/ntfs/
Dlogfile.c390 int have_read, to_read; in ntfs_check_and_load_restart_page() local
396 to_read = le32_to_cpu(rp->system_page_size) - size; in ntfs_check_and_load_restart_page()
409 size = min_t(int, to_read, PAGE_CACHE_SIZE); in ntfs_check_and_load_restart_page()
413 to_read -= size; in ntfs_check_and_load_restart_page()
415 } while (to_read > 0); in ntfs_check_and_load_restart_page()
/linux-3.4.99/fs/jffs2/
Dreadinode.c940 int err, to_read = needed_len - *rdlen; in read_more() local
945 int rem = to_read % c->wbuf_pagesize; in read_more()
948 to_read += c->wbuf_pagesize - rem; in read_more()
954 dbg_readinode("read more %d bytes\n", to_read); in read_more()
956 err = jffs2_flash_read(c, offs, to_read, &retlen, buf + *rdlen); in read_more()
959 "error code: %d.\n", to_read, offs, err); in read_more()
963 if (retlen < to_read) { in read_more()
965 offs, retlen, to_read); in read_more()
969 *rdlen += to_read; in read_more()
/linux-3.4.99/drivers/media/video/gspca/
Dsn9c2028.c40 unsigned char to_read; /* length to read. 0 means no reply requested */ member
235 switch (cam_commands[i].to_read) { in run_start_commands()
/linux-3.4.99/drivers/md/
Draid5.h252 int locked, uptodate, to_read, to_write, failed, written; member
Draid5.c2452 if (bi) s->to_read--; in handle_failed_stripe()
3178 s->to_read++; in analyse_stripe()
3365 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe()
3373 if (s.to_read+s.to_write+s.written) in handle_stripe()
3404 if (s.to_read || s.non_overwrite in handle_stripe()
/linux-3.4.99/drivers/usb/gadget/
Ds3c-hsotg.c1386 int to_read; in s3c_hsotg_rx_data() local
1407 to_read = size; in s3c_hsotg_rx_data()
1412 __func__, to_read, max_req, read_ptr, hs_req->req.length); in s3c_hsotg_rx_data()
1414 if (to_read > max_req) { in s3c_hsotg_rx_data()
1423 hs_ep->total_data += to_read; in s3c_hsotg_rx_data()
1424 hs_req->req.actual += to_read; in s3c_hsotg_rx_data()
1425 to_read = DIV_ROUND_UP(to_read, 4); in s3c_hsotg_rx_data()
1429 readsl(fifo, hs_req->req.buf + read_ptr, to_read); in s3c_hsotg_rx_data()
/linux-3.4.99/fs/cifs/
Dcifsproto.h161 unsigned int to_read);
164 unsigned int to_read);
Dconnect.c660 unsigned int nr_segs, unsigned int to_read) in cifs_readv_from_socket() argument
675 for (total_read = 0; to_read; total_read += length, to_read -= length) { in cifs_readv_from_socket()
686 iov, segs, to_read, 0); in cifs_readv_from_socket()
708 "got %d", to_read, length); in cifs_readv_from_socket()
719 unsigned int to_read) in cifs_read_from_socket() argument
724 iov.iov_len = to_read; in cifs_read_from_socket()
726 return cifs_readv_from_socket(server, &iov, 1, to_read); in cifs_read_from_socket()
/linux-3.4.99/security/selinux/ss/
Dpolicydb.c1323 int rc, to_read = 2; in role_read() local
1333 to_read = 3; in role_read()
1335 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in role_read()
1386 int rc, to_read = 3; in type_read() local
1396 to_read = 4; in type_read()
1398 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in type_read()
1466 int rc, to_read = 2; in user_read() local
1476 to_read = 3; in user_read()
1478 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in user_read()