Home
last modified time | relevance | path

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

/linux-4.1.27/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-4.1.27/fs/ncpfs/
Dmmap.c58 int to_read; in ncp_file_mmap_fault() local
60 to_read = bufsize - (pos % bufsize); in ncp_file_mmap_fault()
62 to_read = min_t(unsigned int, to_read, count - already_read); in ncp_file_mmap_fault()
66 pos, to_read, in ncp_file_mmap_fault()
74 if (read_this_time < to_read) { in ncp_file_mmap_fault()
Dfile.c137 size_t to_read = min_t(size_t, in ncp_file_read_iter() local
143 pos, to_read, to, &read_this_time, in ncp_file_read_iter()
152 if (read_this_time != to_read) in ncp_file_read_iter()
Dncplib_kernel.c968 __u32 offset, __u16 to_read, char *target, int *bytes_read) in ncp_read_kernel() argument
977 ncp_add_be16(server, to_read); in ncp_read_kernel()
1004 __u32 offset, __u16 to_read, struct iov_iter *to, in ncp_read_bounce() argument
1013 ncp_add_be16(server, to_read); in ncp_read_bounce()
1020 if (len <= to_read) { in ncp_read_bounce()
/linux-4.1.27/drivers/spi/
Dspi-bcm53xx.c196 size_t to_read = min_t(size_t, 16 - b53spi->read_offset, in bcm53xxspi_transfer_one() local
198 bool cont = left - to_read > 0; in bcm53xxspi_transfer_one()
200 bcm53xxspi_buf_read(b53spi, buf, to_read, cont); in bcm53xxspi_transfer_one()
201 left -= to_read; in bcm53xxspi_transfer_one()
202 buf += to_read; in bcm53xxspi_transfer_one()
/linux-4.1.27/drivers/staging/comedi/drivers/
Dadl_pci9111.c447 unsigned int to_read; in pci9111_handle_fifo_half_full() local
451 to_read = cmd->chanlist_len - in pci9111_handle_fifo_half_full()
454 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
455 to_read = samples - pos; in pci9111_handle_fifo_half_full()
459 to_read); in pci9111_handle_fifo_half_full()
461 to_read = devpriv->chunk_num_samples - in pci9111_handle_fifo_half_full()
464 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
465 to_read = samples - pos; in pci9111_handle_fifo_half_full()
468 pos += to_read; in pci9111_handle_fifo_half_full()
469 devpriv->chunk_counter += to_read; in pci9111_handle_fifo_half_full()
/linux-4.1.27/drivers/mtd/ubi/
Dblock.c191 int ret, leb, offset, bytes_left, to_read; in ubiblock_read() local
196 to_read = blk_rq_bytes(req); in ubiblock_read()
202 bytes_left = to_read; in ubiblock_read()
209 if (offset + to_read > dev->leb_size) in ubiblock_read()
210 to_read = dev->leb_size - offset; in ubiblock_read()
212 ret = ubi_read_sg(dev->desc, leb, &pdu->usgl, offset, to_read); in ubiblock_read()
216 bytes_left -= to_read; in ubiblock_read()
217 to_read = bytes_left; in ubiblock_read()
Dgluebi.c181 size_t to_read = mtd->erasesize - offs; in gluebi_read() local
183 if (to_read > bytes_left) in gluebi_read()
184 to_read = bytes_left; in gluebi_read()
186 err = ubi_read(gluebi->desc, lnum, buf, offs, to_read); in gluebi_read()
192 bytes_left -= to_read; in gluebi_read()
193 buf += to_read; in gluebi_read()
Deba.c519 int to_read; in ubi_eba_read_leb_sg() local
527 to_read = len; in ubi_eba_read_leb_sg()
529 to_read = sg->length - sgl->page_pos; in ubi_eba_read_leb_sg()
533 to_read, check); in ubi_eba_read_leb_sg()
537 offset += to_read; in ubi_eba_read_leb_sg()
538 len -= to_read; in ubi_eba_read_leb_sg()
540 sgl->page_pos += to_read; in ubi_eba_read_leb_sg()
/linux-4.1.27/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-4.1.27/fs/jffs2/
Dreadinode.c923 int err, to_read = needed_len - *rdlen; in read_more() local
928 int rem = to_read % c->wbuf_pagesize; in read_more()
931 to_read += c->wbuf_pagesize - rem; in read_more()
937 dbg_readinode("read more %d bytes\n", to_read); in read_more()
939 err = jffs2_flash_read(c, offs, to_read, &retlen, buf + *rdlen); in read_more()
942 "error code: %d.\n", to_read, offs, err); in read_more()
946 if (retlen < to_read) { in read_more()
948 offs, retlen, to_read); in read_more()
952 *rdlen += to_read; in read_more()
/linux-4.1.27/drivers/media/usb/gspca/
Dsn9c2028.c40 unsigned char to_read; /* length to read. 0 means no reply requested */ member
231 switch (cam_commands[i].to_read) { in run_start_commands()
/linux-4.1.27/drivers/iio/
Dindustrialio-buffer.c104 size_t to_read; in iio_buffer_read_first_n_outer() local
122 to_read = min_t(size_t, n / datum_size, rb->watermark); in iio_buffer_read_first_n_outer()
125 to_wait = to_read; in iio_buffer_read_first_n_outer()
129 iio_buffer_ready(indio_dev, rb, to_wait, to_read)); in iio_buffer_read_first_n_outer()
/linux-4.1.27/drivers/md/
Draid5.h261 int locked, uptodate, to_read, to_write, failed, written; member
Draid5.c4054 s->to_read++; in analyse_stripe()
4351 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe()
4360 if (s.to_read+s.to_write+s.written) in handle_stripe()
4432 if (s.to_read || s.non_overwrite in handle_stripe()
/linux-4.1.27/fs/cifs/
Dcifsproto.h186 unsigned int to_read);
189 unsigned int to_read);
Dconnect.c545 unsigned int nr_segs, unsigned int to_read) in cifs_readv_from_socket() argument
560 for (total_read = 0; to_read; total_read += length, to_read -= length) { in cifs_readv_from_socket()
571 iov, segs, to_read, 0); in cifs_readv_from_socket()
593 "got %d", to_read, length); in cifs_readv_from_socket()
604 unsigned int to_read) in cifs_read_from_socket() argument
609 iov.iov_len = to_read; in cifs_read_from_socket()
611 return cifs_readv_from_socket(server, &iov, 1, to_read); in cifs_read_from_socket()
/linux-4.1.27/drivers/usb/dwc2/
Dgadget.c1441 int to_read; in s3c_hsotg_rx_data() local
1461 to_read = size; in s3c_hsotg_rx_data()
1466 __func__, to_read, max_req, read_ptr, hs_req->req.length); in s3c_hsotg_rx_data()
1468 if (to_read > max_req) { in s3c_hsotg_rx_data()
1478 hs_ep->total_data += to_read; in s3c_hsotg_rx_data()
1479 hs_req->req.actual += to_read; in s3c_hsotg_rx_data()
1480 to_read = DIV_ROUND_UP(to_read, 4); in s3c_hsotg_rx_data()
1486 ioread32_rep(fifo, hs_req->req.buf + read_ptr, to_read); in s3c_hsotg_rx_data()
/linux-4.1.27/security/selinux/ss/
Dpolicydb.c1405 int rc, to_read = 2; in role_read() local
1415 to_read = 3; in role_read()
1417 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in role_read()
1462 int rc, to_read = 3; in type_read() local
1472 to_read = 4; in type_read()
1474 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in type_read()
1537 int rc, to_read = 2; in user_read() local
1547 to_read = 3; in user_read()
1549 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in user_read()