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