Home
last modified time | relevance | path

Searched refs:sg_count (Results 1 – 2 of 2) sorted by relevance

/u-boot/drivers/ata/
A Dahci.c503 u32 sg_count; in ahci_fill_sg() local
506 sg_count = ((buf_len - 1) / MAX_DATA_BYTE_COUNT) + 1; in ahci_fill_sg()
507 if (sg_count > AHCI_MAX_SG) { in ahci_fill_sg()
512 for (i = 0; i < sg_count; i++) { in ahci_fill_sg()
530 return sg_count; in ahci_fill_sg()
643 int sg_count; in ahci_device_data_io() local
660 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_device_data_io()
661 opts = (fis_len >> 2) | (sg_count << 16) | (is_write << 6); in ahci_device_data_io()
A Ddwc_ahsata.c333 u32 sg_count, max_bytes; in ahci_fill_sg() local
337 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg()
338 if (sg_count > AHCI_MAX_SG) { in ahci_fill_sg()
343 for (i = 0; i < sg_count; i++) { in ahci_fill_sg()
355 return sg_count; in ahci_fill_sg()
382 int sg_count = 0, cmd_slot = 0; in ahci_exec_ata_cmd() local
399 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_exec_ata_cmd()
400 opts = (sizeof(struct sata_fis_h2d) >> 2) | (sg_count << 16); in ahci_exec_ata_cmd()

Completed in 8 milliseconds