Home
last modified time | relevance | path

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

/drivers/comedi/drivers/
Dadl_pci9111.c420 unsigned int to_read; in pci9111_handle_fifo_half_full() local
424 to_read = cmd->chanlist_len - in pci9111_handle_fifo_half_full()
427 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
428 to_read = samples - pos; in pci9111_handle_fifo_half_full()
430 comedi_buf_write_samples(s, buf + pos, to_read); in pci9111_handle_fifo_half_full()
432 to_read = devpriv->chunk_num_samples - in pci9111_handle_fifo_half_full()
435 if (to_read > samples - pos) in pci9111_handle_fifo_half_full()
436 to_read = samples - pos; in pci9111_handle_fifo_half_full()
439 pos += to_read; in pci9111_handle_fifo_half_full()
440 devpriv->chunk_counter += to_read; in pci9111_handle_fifo_half_full()
/drivers/hwtracing/coresight/
Dcoresight-tmc-etf.c476 unsigned long offset, to_read = 0, flags; in tmc_update_etf_buffer() local
507 to_read = drvdata->size; in tmc_update_etf_buffer()
509 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->size); in tmc_update_etf_buffer()
519 if (!buf->snapshot && to_read > handle->size) { in tmc_update_etf_buffer()
526 to_read = handle->size & mask; in tmc_update_etf_buffer()
528 read_ptr = (write_ptr + drvdata->size) - to_read; in tmc_update_etf_buffer()
551 for (i = 0; i < to_read; i += 4) { in tmc_update_etf_buffer()
575 handle->head += to_read; in tmc_update_etf_buffer()
586 return to_read; in tmc_update_etf_buffer()
Dcoresight-etb10.c437 unsigned long offset, to_read = 0, flags; in etb_update_buffer() local
482 to_read = capacity; in etb_update_buffer()
485 to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->buffer_depth); in etb_update_buffer()
486 to_read *= ETB_FRAME_SIZE_WORDS; in etb_update_buffer()
499 if (!buf->snapshot && to_read > handle->size) { in etb_update_buffer()
503 to_read = handle->size & mask; in etb_update_buffer()
509 to_read / ETB_FRAME_SIZE_WORDS; in etb_update_buffer()
533 for (i = 0; i < to_read; i += 4) { in etb_update_buffer()
564 handle->head += to_read; in etb_update_buffer()
571 return to_read; in etb_update_buffer()
/drivers/mtd/ubi/
Dgluebi.c163 size_t to_read = mtd->erasesize - offs; in gluebi_read() local
165 if (to_read > bytes_left) in gluebi_read()
166 to_read = bytes_left; in gluebi_read()
168 err = ubi_read(gluebi->desc, lnum, buf, offs, to_read); in gluebi_read()
174 bytes_left -= to_read; in gluebi_read()
175 buf += to_read; in gluebi_read()
Dblock.c186 int ret, leb, offset, bytes_left, to_read; in ubiblock_read() local
191 to_read = blk_rq_bytes(req); in ubiblock_read()
197 bytes_left = to_read; in ubiblock_read()
204 if (offset + to_read > dev->leb_size) in ubiblock_read()
205 to_read = dev->leb_size - offset; in ubiblock_read()
207 ret = ubi_read_sg(dev->desc, leb, &pdu->usgl, offset, to_read); in ubiblock_read()
211 bytes_left -= to_read; in ubiblock_read()
212 to_read = bytes_left; in ubiblock_read()
Deba.c751 int to_read; in ubi_eba_read_leb_sg() local
759 to_read = len; in ubi_eba_read_leb_sg()
761 to_read = sg->length - sgl->page_pos; in ubi_eba_read_leb_sg()
765 to_read, check); in ubi_eba_read_leb_sg()
769 offset += to_read; in ubi_eba_read_leb_sg()
770 len -= to_read; in ubi_eba_read_leb_sg()
772 sgl->page_pos += to_read; in ubi_eba_read_leb_sg()
/drivers/media/usb/gspca/
Dsn9c2028.c37 unsigned char to_read; /* length to read. 0 means no reply requested */ member
233 switch (cam_commands[i].to_read) { in run_start_commands()
/drivers/md/
Draid5.h285 int locked, uptodate, to_read, to_write, failed, written; member
Draid5.c3746 s->to_read--; in handle_failed_stripe()
4051 if (s->to_read && s->injournal && s->failed) { in handle_stripe_fill()
4745 s->to_read++; in analyse_stripe()
5071 s.locked, s.uptodate, s.to_read, s.to_write, s.failed, in handle_stripe()
5085 if (s.to_read+s.to_write+s.written) in handle_stripe()
5162 if (s.to_read || s.non_overwrite in handle_stripe()
/drivers/usb/dwc2/
Dgadget.c2264 int to_read; in dwc2_hsotg_rx_data() local
2283 to_read = size; in dwc2_hsotg_rx_data()
2288 __func__, to_read, max_req, read_ptr, hs_req->req.length); in dwc2_hsotg_rx_data()
2290 if (to_read > max_req) { in dwc2_hsotg_rx_data()
2300 hs_ep->total_data += to_read; in dwc2_hsotg_rx_data()
2301 hs_req->req.actual += to_read; in dwc2_hsotg_rx_data()
2302 to_read = DIV_ROUND_UP(to_read, 4); in dwc2_hsotg_rx_data()
2309 hs_req->req.buf + read_ptr, to_read); in dwc2_hsotg_rx_data()