• Home
  • Raw
  • Download

Lines Matching refs:qc

379 	struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag);  in inic_host_intr()  local
391 if (unlikely(!qc)) in inic_host_intr()
402 qc->err_mask |= AC_ERR_DEV; in inic_host_intr()
404 ata_qc_complete(qc); in inic_host_intr()
410 qc ? qc->tf.command : 0xff, irq_stat, idma_stat); in inic_host_intr()
439 static int inic_check_atapi_dma(struct ata_queued_cmd *qc) in inic_check_atapi_dma() argument
447 if (atapi_cmd_type(qc->cdb[0]) == READ) in inic_check_atapi_dma()
452 static void inic_fill_sg(struct inic_prd *prd, struct ata_queued_cmd *qc) in inic_fill_sg() argument
458 if (qc->tf.flags & ATA_TFLAG_WRITE) in inic_fill_sg()
461 if (ata_is_dma(qc->tf.protocol)) in inic_fill_sg()
464 for_each_sg(qc->sg, sg, qc->n_elem, si) { in inic_fill_sg()
475 static void inic_qc_prep(struct ata_queued_cmd *qc) in inic_qc_prep() argument
477 struct inic_port_priv *pp = qc->ap->private_data; in inic_qc_prep()
481 bool is_atapi = ata_is_atapi(qc->tf.protocol); in inic_qc_prep()
482 bool is_data = ata_is_data(qc->tf.protocol); in inic_qc_prep()
488 cdb_len = qc->dev->cdb_len; in inic_qc_prep()
497 cpb->len = cpu_to_le32(qc->nbytes + cdb_len); in inic_qc_prep()
500 cpb->device = qc->tf.device; in inic_qc_prep()
501 cpb->feature = qc->tf.feature; in inic_qc_prep()
502 cpb->nsect = qc->tf.nsect; in inic_qc_prep()
503 cpb->lbal = qc->tf.lbal; in inic_qc_prep()
504 cpb->lbam = qc->tf.lbam; in inic_qc_prep()
505 cpb->lbah = qc->tf.lbah; in inic_qc_prep()
507 if (qc->tf.flags & ATA_TFLAG_LBA48) { in inic_qc_prep()
508 cpb->hob_feature = qc->tf.hob_feature; in inic_qc_prep()
509 cpb->hob_nsect = qc->tf.hob_nsect; in inic_qc_prep()
510 cpb->hob_lbal = qc->tf.hob_lbal; in inic_qc_prep()
511 cpb->hob_lbam = qc->tf.hob_lbam; in inic_qc_prep()
512 cpb->hob_lbah = qc->tf.hob_lbah; in inic_qc_prep()
515 cpb->command = qc->tf.command; in inic_qc_prep()
520 memcpy(pkt->cdb, qc->cdb, ATAPI_CDB_LEN); in inic_qc_prep()
532 inic_fill_sg(prd, qc); in inic_qc_prep()
537 static unsigned int inic_qc_issue(struct ata_queued_cmd *qc) in inic_qc_issue() argument
539 struct ata_port *ap = qc->ap; in inic_qc_issue()
563 static bool inic_qc_fill_rtf(struct ata_queued_cmd *qc) in inic_qc_fill_rtf() argument
565 struct ata_taskfile *rtf = &qc->result_tf; in inic_qc_fill_rtf()
575 inic_tf_read(qc->ap, &tf); in inic_qc_fill_rtf()
666 static void inic_post_internal_cmd(struct ata_queued_cmd *qc) in inic_post_internal_cmd() argument
669 if (qc->flags & ATA_QCFLAG_FAILED) in inic_post_internal_cmd()
670 inic_reset_port(inic_port_base(qc->ap)); in inic_post_internal_cmd()