Searched refs:sg_count (Results 1 – 2 of 2) sorted by relevance
506 u32 sg_count; in ahci_fill_sg() local509 sg_count = ((buf_len - 1) / MAX_DATA_BYTE_COUNT) + 1; in ahci_fill_sg()510 if (sg_count > AHCI_MAX_SG) { in ahci_fill_sg()515 for (i = 0; i < sg_count; i++) { in ahci_fill_sg()527 return sg_count; in ahci_fill_sg()640 int sg_count; in ahci_device_data_io() local657 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_device_data_io()658 opts = (fis_len >> 2) | (sg_count << 16) | (is_write << 6); in ahci_device_data_io()
326 u32 sg_count, max_bytes; in ahci_fill_sg() local330 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg()331 if (sg_count > AHCI_MAX_SG) { in ahci_fill_sg()336 for (i = 0; i < sg_count; i++) { in ahci_fill_sg()348 return sg_count; in ahci_fill_sg()375 int sg_count = 0, cmd_slot = 0; in ahci_exec_ata_cmd() local392 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_exec_ata_cmd()393 opts = (sizeof(struct sata_fis_h2d) >> 2) | (sg_count << 16); in ahci_exec_ata_cmd()