Lines Matching refs:bcount
323 void ide_read_bcount_and_ireason(ide_drive_t *drive, u16 *bcount, u8 *ireason) in ide_read_bcount_and_ireason() argument
330 *bcount = (tf.lbah << 8) | tf.lbam; in ide_read_bcount_and_ireason()
397 u16 bcount; in ide_pc_intr() local
506 ide_read_bcount_and_ireason(drive, &bcount, &ireason); in ide_pc_intr()
508 if (ide_check_ireason(drive, rq, bcount, ireason, write)) in ide_pc_intr()
511 done = min_t(unsigned int, bcount, cmd->nleft); in ide_pc_intr()
517 bcount -= done; in ide_pc_intr()
519 if (bcount) in ide_pc_intr()
520 ide_pad_transfer(drive, write, bcount); in ide_pc_intr()
523 rq->cmd[0], done, bcount, rq->resid_len); in ide_pc_intr()
531 u16 bcount, u8 dma) in ide_init_packet_cmd() argument
538 cmd->tf.lbam = bcount & 0xff; in ide_init_packet_cmd()
539 cmd->tf.lbah = (bcount >> 8) & 0xff; in ide_init_packet_cmd()
676 u16 bcount; in ide_issue_pc() local
682 bcount = ide_cd_get_xferlen(rq); in ide_issue_pc()
693 bcount = ((drive->media == ide_tape) ? bytes in ide_issue_pc()
698 rq->resid_len = bcount; in ide_issue_pc()
715 ide_init_packet_cmd(cmd, valid_tf, bcount, drive->dma); in ide_issue_pc()