Lines Matching refs:pp

94 static void ahci_dcache_flush_sata_cmd(struct ahci_ioports *pp)  in ahci_dcache_flush_sata_cmd()  argument
96 ahci_dcache_flush_range((unsigned long)pp->cmd_slot, in ahci_dcache_flush_sata_cmd()
501 struct ahci_ioports *pp = &(uc_priv->port[port]); in ahci_fill_sg() local
502 struct ahci_sg *ahci_sg = pp->cmd_tbl_sg; in ahci_fill_sg()
534 static void ahci_fill_cmd_slot(struct ahci_ioports *pp, u32 opts) in ahci_fill_cmd_slot() argument
536 pp->cmd_slot->opts = cpu_to_le32(opts); in ahci_fill_cmd_slot()
537 pp->cmd_slot->status = 0; in ahci_fill_cmd_slot()
538 pp->cmd_slot->tbl_addr = cpu_to_le32((u32)pp->cmd_tbl & 0xffffffff); in ahci_fill_cmd_slot()
540 pp->cmd_slot->tbl_addr_hi = in ahci_fill_cmd_slot()
541 cpu_to_le32((u32)(((pp->cmd_tbl) >> 16) >> 16)); in ahci_fill_cmd_slot()
562 struct ahci_ioports *pp = &(uc_priv->port[port]); in ahci_port_start() local
563 void __iomem *port_mmio = pp->port_mmio; in ahci_port_start()
578 free(pp); in ahci_port_start()
588 pp->cmd_slot = in ahci_port_start()
590 debug("cmd_slot = %p\n", pp->cmd_slot); in ahci_port_start()
596 pp->rx_fis = virt_to_phys((void *)mem); in ahci_port_start()
603 pp->cmd_tbl = virt_to_phys((void *)mem); in ahci_port_start()
604 debug("cmd_tbl_dma = %lx\n", pp->cmd_tbl); in ahci_port_start()
607 pp->cmd_tbl_sg = in ahci_port_start()
610 dma_addr = (ulong)pp->cmd_slot; in ahci_port_start()
613 dma_addr = (ulong)pp->rx_fis; in ahci_port_start()
639 struct ahci_ioports *pp = &(uc_priv->port[port]); in ahci_device_data_io() local
640 void __iomem *port_mmio = pp->port_mmio; in ahci_device_data_io()
658 memcpy((unsigned char *)pp->cmd_tbl, fis, fis_len); in ahci_device_data_io()
662 ahci_fill_cmd_slot(pp, opts); in ahci_device_data_io()
664 ahci_dcache_flush_sata_cmd(pp); in ahci_device_data_io()
677 debug("%s: %d byte transferred.\n", __func__, pp->cmd_slot->status); in ahci_device_data_io()
1118 struct ahci_ioports *pp = &(uc_priv->port[port]); in ata_io_flush() local
1119 void __iomem *port_mmio = pp->port_mmio; in ata_io_flush()
1128 memcpy((unsigned char *)pp->cmd_tbl, fis, 20); in ata_io_flush()
1129 ahci_fill_cmd_slot(pp, cmd_fis_len); in ata_io_flush()
1130 ahci_dcache_flush_sata_cmd(pp); in ata_io_flush()