Lines Matching refs:nr_bytes
239 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()
257 cmd->nleft -= nr_bytes; in ide_pio_bytes()
258 cmd->cursg_ofs += nr_bytes; in ide_pio_bytes()
267 hwif->tp_ops->output_data(drive, cmd, buf, nr_bytes); in ide_pio_bytes()
269 hwif->tp_ops->input_data(drive, cmd, buf, nr_bytes); in ide_pio_bytes()
276 len -= nr_bytes; in ide_pio_bytes()
284 unsigned int nr_bytes; in ide_pio_datablock() local
297 nr_bytes = min_t(unsigned, cmd->nleft, drive->mult_count << 9); in ide_pio_datablock()
299 nr_bytes = SECTOR_SIZE; in ide_pio_datablock()
301 ide_pio_bytes(drive, cmd, write, nr_bytes); in ide_pio_datablock()
309 int nr_bytes = cmd->nbytes - cmd->nleft; in ide_error_cmd() local
314 nr_bytes -= drive->mult_count << 9; in ide_error_cmd()
316 nr_bytes -= SECTOR_SIZE; in ide_error_cmd()
319 if (nr_bytes > 0) in ide_error_cmd()
320 ide_complete_rq(drive, 0, nr_bytes); in ide_error_cmd()