Lines Matching refs:nr_bytes
239 unsigned nr_bytes = min(len, cursg->length - cmd->cursg_ofs); in ide_pio_bytes() local
242 if (nr_bytes > PAGE_SIZE) in ide_pio_bytes()
243 nr_bytes = PAGE_SIZE; in ide_pio_bytes()
258 cmd->nleft -= nr_bytes; in ide_pio_bytes()
259 cmd->cursg_ofs += nr_bytes; in ide_pio_bytes()
268 hwif->tp_ops->output_data(drive, cmd, buf, nr_bytes); in ide_pio_bytes()
270 hwif->tp_ops->input_data(drive, cmd, buf, nr_bytes); in ide_pio_bytes()
277 len -= nr_bytes; in ide_pio_bytes()
285 unsigned int nr_bytes; in ide_pio_datablock() local
298 nr_bytes = min_t(unsigned, cmd->nleft, drive->mult_count << 9); in ide_pio_datablock()
300 nr_bytes = SECTOR_SIZE; in ide_pio_datablock()
302 ide_pio_bytes(drive, cmd, write, nr_bytes); in ide_pio_datablock()
310 int nr_bytes = cmd->nbytes - cmd->nleft; in ide_error_cmd() local
315 nr_bytes -= drive->mult_count << 9; in ide_error_cmd()
317 nr_bytes -= SECTOR_SIZE; in ide_error_cmd()
320 if (nr_bytes > 0) in ide_error_cmd()
321 ide_complete_rq(drive, 0, nr_bytes); in ide_error_cmd()