Lines Matching refs:nr_bytes
239 unsigned nr_bytes = min(len, cursg->length - cmd->cursg_ofs);
249 nr_bytes = min_t(unsigned, nr_bytes, (PAGE_SIZE - offset));
257 cmd->nleft -= nr_bytes;
258 cmd->cursg_ofs += nr_bytes;
267 hwif->tp_ops->output_data(drive, cmd, buf, nr_bytes);
269 hwif->tp_ops->input_data(drive, cmd, buf, nr_bytes);
276 len -= nr_bytes;
284 unsigned int nr_bytes;
297 nr_bytes = min_t(unsigned, cmd->nleft, drive->mult_count << 9);
299 nr_bytes = SECTOR_SIZE;
301 ide_pio_bytes(drive, cmd, write, nr_bytes);
309 int nr_bytes = cmd->nbytes - cmd->nleft;
314 nr_bytes -= drive->mult_count << 9;
316 nr_bytes -= SECTOR_SIZE;
319 if (nr_bytes > 0)
320 ide_complete_rq(drive, 0, nr_bytes);