Lines Matching full:pp
190 struct adma_port_priv *pp = ap->private_data; in adma_reinit_engine() local
204 writel((u32)pp->pkt_dma, chan + ADMA_CPB_NEXT); in adma_reinit_engine()
247 struct adma_port_priv *pp = ap->private_data; in adma_prereset() local
249 if (pp->state != adma_state_idle) /* healthy paranoia */ in adma_prereset()
250 pp->state = adma_state_mmio; in adma_prereset()
260 struct adma_port_priv *pp = ap->private_data; in adma_fill_sg() local
261 u8 *buf = pp->pkt, *last_buf = NULL; in adma_fill_sg()
285 (pFLAGS & pEND) ? 0 : cpu_to_le32(pp->pkt_dma + i + 4); in adma_fill_sg()
297 struct adma_port_priv *pp = qc->ap->private_data; in adma_qc_prep() local
298 u8 *buf = pp->pkt; in adma_qc_prep()
299 u32 pkt_dma = (u32)pp->pkt_dma; in adma_qc_prep()
367 struct adma_port_priv *pp = qc->ap->private_data; in adma_qc_issue() local
371 pp->state = adma_state_pkt; in adma_qc_issue()
383 pp->state = adma_state_mmio; in adma_qc_issue()
393 struct adma_port_priv *pp; in adma_intr_pkt() local
402 pp = ap->private_data; in adma_intr_pkt()
403 if (!pp || pp->state != adma_state_pkt) in adma_intr_pkt()
412 if (pp->pkt[0] & cATERR) in adma_intr_pkt()
414 else if (pp->pkt[0] != cDONE) in adma_intr_pkt()
425 "pkt[0] 0x%02X", pp->pkt[0]); in adma_intr_pkt()
443 struct adma_port_priv *pp = ap->private_data; in adma_intr_mmio() local
446 if (!pp || pp->state != adma_state_mmio) in adma_intr_mmio()
457 pp->state = adma_state_idle; in adma_intr_mmio()
509 struct adma_port_priv *pp; in adma_port_start() local
512 pp = devm_kzalloc(dev, sizeof(*pp), GFP_KERNEL); in adma_port_start()
513 if (!pp) in adma_port_start()
515 pp->pkt = dmam_alloc_coherent(dev, ADMA_PKT_BYTES, &pp->pkt_dma, in adma_port_start()
517 if (!pp->pkt) in adma_port_start()
520 if ((pp->pkt_dma & 7) != 0) { in adma_port_start()
521 ata_port_err(ap, "bad alignment for pp->pkt_dma: %08x\n", in adma_port_start()
522 (u32)pp->pkt_dma); in adma_port_start()
525 ap->private_data = pp; in adma_port_start()