Lines Matching full:sata
14 #include <sata.h>
16 #include <sata.h>
118 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_read_fis() local
119 void *port = sata->port; in sil_read_fis()
133 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_exec_cmd() local
134 void *port = sata->port; in sil_exec_cmd()
135 u64 paddr = virt_to_bus(sata->devno, pcmd); in sil_exec_cmd()
169 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_cmd_set_feature() local
182 udma_cap = (u8)(sata->udma & 0xff); in sil_cmd_set_feature()
198 readl(sata->port + PORT_SERROR)); in sil_cmd_set_feature()
208 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_cmd_identify_device() local
219 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, id)); in sil_cmd_identify_device()
226 printf("Err: id cmd(0x%x).\n", readl(sata->port + PORT_SERROR)); in sil_cmd_identify_device()
238 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_cmd_soft_reset() local
240 void *port = sata->port; in sil_cmd_soft_reset()
269 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_sata_rw_cmd() local
295 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, buffer)); in sil_sata_rw_cmd()
303 readl(sata->port + PORT_SERROR)); in sil_sata_rw_cmd()
314 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_sata_rw_cmd_ext() local
343 pcmd->sge.addr = cpu_to_le64(virt_to_bus(sata->devno, buffer)); in sil_sata_rw_cmd_ext()
351 readl(sata->port + PORT_SERROR)); in sil_sata_rw_cmd_ext()
443 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_sata_init_wcache() local
446 sata->wcache = 1; in sil_sata_init_wcache()
448 sata->flush = 1; in sil_sata_init_wcache()
450 sata->flush_ext = 1; in sil_sata_init_wcache()
455 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_sata_get_wcache() local
457 return sata->wcache; in sil_sata_get_wcache()
462 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_sata_get_flush() local
464 return sata->flush; in sil_sata_get_flush()
469 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_sata_get_flush_ext() local
471 return sata->flush_ext; in sil_sata_get_flush_ext()
475 * SATA interface between low level driver and command layer
479 struct sil_sata *sata = sata_dev_desc[dev].priv; in sata_read() local
482 if (sata->lba48) in sata_read()
491 * SATA interface between low level driver and command layer
495 struct sil_sata *sata = sata_dev_desc[dev].priv; in sata_write() local
498 if (sata->lba48) { in sata_write()
512 * SATA interface between low level driver and command layer
579 * SATA interface between low level driver and command layer
586 struct sil_sata *sata; in scan_sata() local
593 printf("SATA#%d is not present\n", dev); in scan_sata()
597 printf("SATA#%d\n", dev); in scan_sata()
649 sata = (struct sil_sata *)malloc(sizeof(struct sil_sata)); in scan_sata()
650 if (!sata) { in scan_sata()
654 memset((void *)sata, 0, sizeof(struct sil_sata)); in scan_sata()
662 sata_dev_desc[dev].priv = (void *)sata; in scan_sata()
663 sata->port = port; in scan_sata()
664 sata->devno = sata_info.devno; in scan_sata()
665 sprintf(sata->name, "SATA#%d", dev); in scan_sata()
674 free((void *)sata); in scan_sata()
683 sata->lba48 = 1; in scan_sata()