Lines Matching refs:cpb

227 	struct nv_adma_cpb	*cpb;
768 static unsigned int nv_adma_tf_to_cpb(struct ata_taskfile *tf, __le16 *cpb)
774 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->hob_feature | WNB);
775 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->hob_nsect);
776 cpb[idx++] = cpu_to_le16((ATA_REG_LBAL << 8) | tf->hob_lbal);
777 cpb[idx++] = cpu_to_le16((ATA_REG_LBAM << 8) | tf->hob_lbam);
778 cpb[idx++] = cpu_to_le16((ATA_REG_LBAH << 8) | tf->hob_lbah);
779 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->feature);
781 cpb[idx++] = cpu_to_le16((ATA_REG_ERR << 8) | tf->feature | WNB);
783 cpb[idx++] = cpu_to_le16((ATA_REG_NSECT << 8) | tf->nsect);
784 cpb[idx++] = cpu_to_le16((ATA_REG_LBAL << 8) | tf->lbal);
785 cpb[idx++] = cpu_to_le16((ATA_REG_LBAM << 8) | tf->lbam);
786 cpb[idx++] = cpu_to_le16((ATA_REG_LBAH << 8) | tf->lbah);
790 cpb[idx++] = cpu_to_le16((ATA_REG_DEVICE << 8) | tf->device);
792 cpb[idx++] = cpu_to_le16((ATA_REG_CMD << 8) | tf->command | CMDEND);
795 cpb[idx++] = cpu_to_le16(IGN);
803 u8 flags = pp->cpb[cpb_num].resp_flags;
1141 pp->cpb = mem;
1310 static void nv_adma_fill_sg(struct ata_queued_cmd *qc, struct nv_adma_cpb *cpb)
1320 aprd = (si < 5) ? &cpb->aprd[si] :
1325 cpb->next_aprd = cpu_to_le64(((u64)(pp->aprd_dma + NV_ADMA_SGTBL_SZ * qc->hw_tag)));
1327 cpb->next_aprd = cpu_to_le64(0);
1350 struct nv_adma_cpb *cpb = &pp->cpb[qc->hw_tag];
1362 cpb->resp_flags = NV_CPB_RESP_DONE;
1364 cpb->ctl_flags = 0;
1367 cpb->len = 3;
1368 cpb->tag = qc->hw_tag;
1369 cpb->next_cpb_idx = 0;
1377 nv_adma_tf_to_cpb(&qc->tf, cpb->tf);
1380 nv_adma_fill_sg(qc, cpb);
1383 memset(&cpb->aprd[0], 0, sizeof(struct nv_adma_prd) * 5);
1388 cpb->ctl_flags = ctl_flags;
1390 cpb->resp_flags = 0;
1653 "next cpb count 0x%X next cpb idx 0x%x\n",
1658 struct nv_adma_cpb *cpb = &pp->cpb[i];
1663 i, cpb->ctl_flags, cpb->resp_flags);
1673 pp->cpb[i].ctl_flags &= ~NV_CPB_CTL_CPB_VALID;