Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/staging/comedi/drivers/
Dadl_pci9111.c430 unsigned int to_read; in pci9111_handle_fifo_half_full() local
434 to_read = cmd->chanlist_len - in pci9111_handle_fifo_half_full()
437 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
438 to_read = samples - pos; in pci9111_handle_fifo_half_full()
440 comedi_buf_write_samples(s, buf + pos, to_read); in pci9111_handle_fifo_half_full()
442 to_read = devpriv->chunk_num_samples - in pci9111_handle_fifo_half_full()
445 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
446 to_read = samples - pos; in pci9111_handle_fifo_half_full()
449 pos += to_read; in pci9111_handle_fifo_half_full()
450 devpriv->chunk_counter += to_read; in pci9111_handle_fifo_half_full()
/linux-4.4.14/drivers/mtd/ubi/
Dblock.c192 int ret, leb, offset, bytes_left, to_read; in ubiblock_read() local
197 to_read = blk_rq_bytes(req); in ubiblock_read()
203 bytes_left = to_read; in ubiblock_read()
210 if (offset + to_read > dev->leb_size) in ubiblock_read()
211 to_read = dev->leb_size - offset; in ubiblock_read()
213 ret = ubi_read_sg(dev->desc, leb, &pdu->usgl, offset, to_read); in ubiblock_read()
217 bytes_left -= to_read; in ubiblock_read()
218 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.4.14/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.4.14/fs/jffs2/
Dreadinode.c927 int err, to_read = needed_len - *rdlen; in read_more() local
932 int rem = to_read % c->wbuf_pagesize; in read_more()
935 to_read += c->wbuf_pagesize - rem; in read_more()
941 dbg_readinode("read more %d bytes\n", to_read); in read_more()
943 err = jffs2_flash_read(c, offs, to_read, &retlen, buf + *rdlen); in read_more()
946 "error code: %d.\n", to_read, offs, err); in read_more()
950 if (retlen < to_read) { in read_more()
952 offs, retlen, to_read); in read_more()
956 *rdlen += to_read; in read_more()
/linux-4.4.14/drivers/media/usb/gspca/
Dsn9c2028.c50 unsigned char to_read; /* length to read. 0 means no reply requested */ member
244 switch (cam_commands[i].to_read) { in run_start_commands()
/linux-4.4.14/drivers/usb/dwc2/
Dgadget.c1443 int to_read; in dwc2_hsotg_rx_data() local
1463 to_read = size; in dwc2_hsotg_rx_data()
1468 __func__, to_read, max_req, read_ptr, hs_req->req.length); in dwc2_hsotg_rx_data()
1470 if (to_read > max_req) { in dwc2_hsotg_rx_data()
1480 hs_ep->total_data += to_read; in dwc2_hsotg_rx_data()
1481 hs_req->req.actual += to_read; in dwc2_hsotg_rx_data()
1482 to_read = DIV_ROUND_UP(to_read, 4); in dwc2_hsotg_rx_data()
1488 ioread32_rep(fifo, hs_req->req.buf + read_ptr, to_read); in dwc2_hsotg_rx_data()
/linux-4.4.14/drivers/md/
Draid5.h265 int locked, uptodate, to_read, to_write, failed, written; member
Draid5.c3163 s->to_read--; in handle_failed_stripe()
4061 s->to_read++; in analyse_stripe()
4363 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe()
4372 if (s.to_read+s.to_write+s.written) in handle_stripe()
4444 if (s.to_read || s.non_overwrite in handle_stripe()
/linux-4.4.14/fs/cifs/
Dcifsproto.h184 unsigned int to_read);
187 unsigned int to_read);
Dconnect.c556 unsigned int nr_segs, unsigned int to_read) in cifs_readv_from_socket() argument
571 for (total_read = 0; to_read; total_read += length, to_read -= length) { in cifs_readv_from_socket()
582 iov, segs, to_read, 0); in cifs_readv_from_socket()
604 "got %d", to_read, length); in cifs_readv_from_socket()
615 unsigned int to_read) in cifs_read_from_socket() argument
620 iov.iov_len = to_read; in cifs_read_from_socket()
622 return cifs_readv_from_socket(server, &iov, 1, to_read); in cifs_read_from_socket()
/linux-4.4.14/security/selinux/ss/
Dpolicydb.c1410 int rc, to_read = 2; in role_read() local
1420 to_read = 3; in role_read()
1422 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in role_read()
1467 int rc, to_read = 3; in type_read() local
1477 to_read = 4; in type_read()
1479 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in type_read()
1542 int rc, to_read = 2; in user_read() local
1552 to_read = 3; in user_read()
1554 rc = next_entry(buf, fp, sizeof(buf[0]) * to_read); in user_read()