Searched refs:to_read (Results 1 - 9 of 9) sorted by relevance

/drivers/isdn/hardware/eicon/
H A Distream.c156 int read = 0, to_read = -1; local
170 if (to_read < 0)
175 if (to_read < 0)
179 to_read = min(max_length, (int)tmp[1]);
180 if (to_read) {
188 (word)to_read);
189 max_length -= to_read;
190 read += to_read;
191 data_ptr += to_read;
/drivers/spi/
H A Dspi-bcm53xx.c196 size_t to_read = min_t(size_t, 16 - b53spi->read_offset, local
198 bool cont = left - to_read > 0;
200 bcm53xxspi_buf_read(b53spi, buf, to_read, cont);
201 left -= to_read;
202 buf += to_read;
/drivers/mtd/ubi/
H A Dgluebi.c181 size_t to_read = mtd->erasesize - offs; local
183 if (to_read > bytes_left)
184 to_read = bytes_left;
186 err = ubi_read(gluebi->desc, lnum, buf, offs, to_read);
192 bytes_left -= to_read;
193 buf += to_read;
H A Dblock.c204 int to_read = len; local
216 if (offset + to_read > dev->leb_size)
217 to_read = dev->leb_size - offset;
219 ret = ubiblock_read_to_buf(dev, buffer, leb, offset, to_read);
223 buffer += to_read;
224 bytes_left -= to_read;
225 to_read = bytes_left;
/drivers/staging/comedi/drivers/
H A Dadl_pci9111.c485 unsigned int to_read; local
489 to_read = cmd->chanlist_len -
492 if (to_read > samples - pos)
493 to_read = samples - pos;
497 to_read * sizeof(short));
499 to_read = devpriv->chunk_num_samples -
502 if (to_read > samples - pos)
503 to_read = samples - pos;
505 total += to_read * sizeof(short);
508 pos += to_read;
[all...]
/drivers/md/
H A Draid5.h253 int locked, uptodate, to_read, to_write, failed, written; member in struct:stripe_head_state
H A Draid5.c3581 s->to_read++;
3771 pr_debug("locked=%d uptodate=%d to_read=%d"
3773 s.locked, s.uptodate, s.to_read, s.to_write, s.failed,
3781 if (s.to_read+s.to_write+s.written)
3853 if (s.to_read || s.non_overwrite
/drivers/usb/dwc2/
H A Dgadget.c1299 int to_read; local
1319 to_read = size;
1324 __func__, to_read, max_req, read_ptr, hs_req->req.length);
1326 if (to_read > max_req) {
1336 hs_ep->total_data += to_read;
1337 hs_req->req.actual += to_read;
1338 to_read = DIV_ROUND_UP(to_read, 4);
1344 ioread32_rep(fifo, hs_req->req.buf + read_ptr, to_read);
/drivers/media/usb/gspca/
H A Dsn9c2028.c40 unsigned char to_read; /* length to read. 0 means no reply requested */ member in struct:init_command
231 switch (cam_commands[i].to_read) {

Completed in 1397 milliseconds