Home
last modified time | relevance | path

Searched refs:sata_dev_desc (Results 1 – 7 of 7) sorted by relevance

/openbmc/u-boot/drivers/ata/
H A Dsata.c94 sata_dev_desc[i].if_type = IF_TYPE_SATA; in __sata_initialize()
95 sata_dev_desc[i].devnum = i; in __sata_initialize()
97 sata_dev_desc[i].type = DEV_TYPE_HARDDISK; in __sata_initialize()
98 sata_dev_desc[i].lba = 0; in __sata_initialize()
99 sata_dev_desc[i].blksz = 512; in __sata_initialize()
100 sata_dev_desc[i].log2blksz = LOG2(sata_dev_desc[i].blksz); in __sata_initialize()
102 sata_dev_desc[i].block_read = sata_bread; in __sata_initialize()
108 if (!rc && sata_dev_desc[i].lba > 0 && in __sata_initialize()
109 sata_dev_desc[i].blksz > 0) { in __sata_initialize()
110 part_init(&sata_dev_desc[i]); in __sata_initialize()
[all …]
H A Dsata_mv.c283 struct mv_priv *priv = (struct mv_priv *)sata_dev_desc[port].priv; in mv_stop_edma_engine()
304 struct mv_priv *priv = (struct mv_priv *)sata_dev_desc[port].priv; in mv_start_edma_engine()
356 struct mv_priv *priv = (struct mv_priv *)sata_dev_desc[port].priv; in mv_reset_channel()
371 struct mv_priv *priv = (struct mv_priv *)sata_dev_desc[port].priv; in mv_reset_port()
730 if (sata_dev_desc[dev].lba48) { in ata_low_level_rw()
741 if (sata_dev_desc[dev].lba48) { in ata_low_level_rw()
962 sata_dev_desc[dev].priv = (void *)priv; in init_sata()
1017 memcpy(sata_dev_desc[port].product, serial, sizeof(serial)); in scan_sata()
1025 memcpy(sata_dev_desc[port].vendor, product, sizeof(product)); in scan_sata()
1029 sata_dev_desc[port].lba = n_sectors; in scan_sata()
[all …]
H A Dsata_sil.c118 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_read_fis()
133 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_exec_cmd()
169 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_cmd_set_feature()
208 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_cmd_identify_device()
238 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_cmd_soft_reset()
269 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_sata_rw_cmd()
314 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_sata_rw_cmd_ext()
443 struct sil_sata *sata = sata_dev_desc[dev].priv; in sil_sata_init_wcache()
662 sata_dev_desc[dev].priv = (void *)sata; in scan_sata()
682 sata_dev_desc[dev].lba48 = 1; in scan_sata()
[all …]
H A Dfsl_sata.c114 sata_dev_desc[dev].priv = (void *)sata; in init_sata()
484 fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv; in fsl_sata_identify()
499 fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv; in fsl_sata_xfer_mode()
509 fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv; in fsl_sata_set_features()
538 fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv; in fsl_sata_rw_cmd()
563 fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv; in fsl_sata_flush_cache()
577 fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv; in fsl_sata_rw_cmd_ext()
608 fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv; in fsl_sata_rw_ncq_cmd()
651 fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv; in fsl_sata_flush_cache_ext()
665 fsl_sata_t *sata = (fsl_sata_t *)sata_dev_desc[dev].priv; in fsl_sata_init_wcache()
[all …]
H A Dsata_sil3114.c152 ATA_ID_PROD, sizeof (sata_dev_desc[devno].vendor)); in sata_identify()
154 ATA_ID_SERNO, sizeof (sata_dev_desc[devno].product)); in sata_identify()
157 sata_dev_desc[devno].removable = 0; in sata_identify()
159 sata_dev_desc[devno].lba = (u32) n_sectors; in sata_identify()
160 debug("lba=0x%lx\n", sata_dev_desc[devno].lba); in sata_identify()
164 sata_dev_desc[devno].lba48 = 1; in sata_identify()
166 sata_dev_desc[devno].lba48 = 0; in sata_identify()
171 sata_dev_desc[devno].type = DEV_TYPE_HARDDISK; in sata_identify()
172 sata_dev_desc[devno].blksz = ATA_SECT_SIZE; in sata_identify()
519 if (!sata_dev_desc[device].lba48) { in sata_read()
[all …]
H A Ddwc_ahsata.c875 sata_dev_desc[pdev].priv = uc_priv; in ahci_init_one()
898 uc_priv = sata_dev_desc[dev].priv; in init_sata()
913 uc_priv = sata_dev_desc[dev].priv; in reset_sata()
934 if (sata_dev_desc[dev].priv == NULL) in sata_port_status()
937 uc_priv = sata_dev_desc[dev].priv; in sata_port_status()
948 struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv; in sata_read()
950 return sata_read_common(uc_priv, &sata_dev_desc[dev], blknr, blkcnt, in sata_read()
956 struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv; in sata_write()
958 return sata_write_common(uc_priv, &sata_dev_desc[dev], blknr, blkcnt, in sata_write()
964 struct ahci_uc_priv *uc_priv = sata_dev_desc[dev].priv; in scan_sata()
[all …]
/openbmc/u-boot/include/
H A Dsata.h18 extern struct blk_desc sata_dev_desc[];