Lines Matching refs:pp

331 	struct ahci_ioports *pp = &uc_priv->port[port];  in ahci_fill_sg()  local
332 struct ahci_sg *ahci_sg = pp->cmd_tbl_sg; in ahci_fill_sg()
358 static void ahci_fill_cmd_slot(struct ahci_ioports *pp, u32 cmd_slot, u32 opts) in ahci_fill_cmd_slot() argument
360 struct ahci_cmd_hdr *cmd_hdr = (struct ahci_cmd_hdr *)(pp->cmd_slot + in ahci_fill_cmd_slot()
366 pp->cmd_slot->tbl_addr = cpu_to_le32((u32)pp->cmd_tbl & 0xffffffff); in ahci_fill_cmd_slot()
368 pp->cmd_slot->tbl_addr_hi = in ahci_fill_cmd_slot()
369 cpu_to_le32((u32)(((pp->cmd_tbl) >> 16) >> 16)); in ahci_fill_cmd_slot()
379 struct ahci_ioports *pp = &uc_priv->port[port]; in ahci_exec_ata_cmd() local
380 struct sata_port_regs *port_mmio = pp->port_mmio; in ahci_exec_ata_cmd()
397 memcpy((u8 *)(pp->cmd_tbl), cfis, sizeof(struct sata_fis_h2d)); in ahci_exec_ata_cmd()
405 ahci_fill_cmd_slot(pp, cmd_slot, opts); in ahci_exec_ata_cmd()
407 flush_cache((int)(pp->cmd_slot), AHCI_PORT_PRIV_DMA_SZ); in ahci_exec_ata_cmd()
415 invalidate_dcache_range((int)(pp->cmd_slot), in ahci_exec_ata_cmd()
416 (int)(pp->cmd_slot)+AHCI_PORT_PRIV_DMA_SZ); in ahci_exec_ata_cmd()
418 pp->cmd_slot->status); in ahci_exec_ata_cmd()
442 struct ahci_ioports *pp = &uc_priv->port[port]; in ahci_port_start() local
443 struct sata_port_regs *port_mmio = pp->port_mmio; in ahci_port_start()
469 pp->cmd_slot = (struct ahci_cmd_hdr *)mem; in ahci_port_start()
470 debug("cmd_slot = 0x%x\n", (unsigned int) pp->cmd_slot); in ahci_port_start()
476 pp->rx_fis = mem; in ahci_port_start()
483 pp->cmd_tbl = mem; in ahci_port_start()
484 debug("cmd_tbl_dma = 0x%lx\n", pp->cmd_tbl); in ahci_port_start()
489 pp->cmd_tbl_sg = (struct ahci_sg *)mem; in ahci_port_start()
490 writel_with_flush((u32)pp->cmd_slot, &port_mmio->clb); in ahci_port_start()
491 writel_with_flush(pp->rx_fis, &port_mmio->fb); in ahci_port_start()