Lines Matching refs:cpb
228 struct nv_adma_cpb *cpb;
775 static unsigned int nv_adma_tf_to_cpb(struct ata_taskfile *tf, __le16 *cpb)
781 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->hob_feature | WNB);
782 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->hob_nsect);
783 cpb[idx++] = cpu_to_le16((ATA_REG_LBAL << 8) | tf->hob_lbal);
784 cpb[idx++] = cpu_to_le16((ATA_REG_LBAM << 8) | tf->hob_lbam);
785 cpb[idx++] = cpu_to_le16((ATA_REG_LBAH << 8) | tf->hob_lbah);
786 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->feature);
788 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->feature | WNB);
790 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->nsect);
791 cpb[idx++] = cpu_to_le16((ATA_REG_LBAL << 8) | tf->lbal);
792 cpb[idx++] = cpu_to_le16((ATA_REG_LBAM << 8) | tf->lbam);
793 cpb[idx++] = cpu_to_le16((ATA_REG_LBAH << 8) | tf->lbah);
797 cpb[idx++] = cpu_to_le16((ATA_REG_DEVICE << 8) | tf->device);
799 cpb[idx++] = cpu_to_le16((ATA_REG_CMD << 8) | tf->command | CMDEND);
802 cpb[idx++] = cpu_to_le16(IGN);
810 u8 flags = pp->cpb[cpb_num].resp_flags;
1146 pp->cpb = mem;
1310 static void nv_adma_fill_sg(struct ata_queued_cmd *qc, struct nv_adma_cpb *cpb)
1318 aprd = (si < 5) ? &cpb->aprd[si] :
1323 cpb->next_aprd = cpu_to_le64(((u64)(pp->aprd_dma + NV_ADMA_SGTBL_SZ * qc->hw_tag)));
1325 cpb->next_aprd = cpu_to_le64(0);
1348 struct nv_adma_cpb *cpb = &pp->cpb[qc->hw_tag];
1360 cpb->resp_flags = NV_CPB_RESP_DONE;
1362 cpb->ctl_flags = 0;
1365 cpb->len = 3;
1366 cpb->tag = qc->hw_tag;
1367 cpb->next_cpb_idx = 0;
1373 nv_adma_tf_to_cpb(&qc->tf, cpb->tf);
1376 nv_adma_fill_sg(qc, cpb);
1379 memset(&cpb->aprd[0], 0, sizeof(struct nv_adma_prd) * 5);
1384 cpb->ctl_flags = ctl_flags;
1386 cpb->resp_flags = 0;
1644 "next cpb count 0x%X next cpb idx 0x%x\n",
1649 struct nv_adma_cpb *cpb = &pp->cpb[i];
1654 i, cpb->ctl_flags, cpb->resp_flags);
1664 pp->cpb[i].ctl_flags &= ~NV_CPB_CTL_CPB_VALID;