Lines Matching defs:nr_bytes
240 unsigned nr_bytes = min(len, cursg->length - cmd->cursg_ofs);
249 nr_bytes = min_t(unsigned, nr_bytes, (PAGE_SIZE - offset));
253 cmd->nleft -= nr_bytes;
254 cmd->cursg_ofs += nr_bytes;
263 hwif->tp_ops->output_data(drive, cmd, buf, nr_bytes);
265 hwif->tp_ops->input_data(drive, cmd, buf, nr_bytes);
269 len -= nr_bytes;
277 unsigned int nr_bytes;
290 nr_bytes = min_t(unsigned, cmd->nleft, drive->mult_count << 9);
292 nr_bytes = SECTOR_SIZE;
294 ide_pio_bytes(drive, cmd, write, nr_bytes);
302 int nr_bytes = cmd->nbytes - cmd->nleft;
307 nr_bytes -= drive->mult_count << 9;
309 nr_bytes -= SECTOR_SIZE;
312 if (nr_bytes > 0)
313 ide_complete_rq(drive, BLK_STS_OK, nr_bytes);