Searched refs:sg_count (Results 1 – 2 of 2) sorted by relevance
518 u32 sg_count; in ahci_fill_sg() local521 sg_count = ((buf_len - 1) / MAX_DATA_BYTE_COUNT) + 1; in ahci_fill_sg()522 if (sg_count > AHCI_MAX_SG) { in ahci_fill_sg()527 for (i = 0; i < sg_count; i++) { in ahci_fill_sg()545 return sg_count; in ahci_fill_sg()658 int sg_count; in ahci_device_data_io() local675 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_device_data_io()676 opts = (fis_len >> 2) | (sg_count << 16) | (is_write << 6); in ahci_device_data_io()
327 u32 sg_count, max_bytes; in ahci_fill_sg() local331 sg_count = ((buf_len - 1) / max_bytes) + 1; in ahci_fill_sg()332 if (sg_count > AHCI_MAX_SG) { in ahci_fill_sg()337 for (i = 0; i < sg_count; i++) { in ahci_fill_sg()349 return sg_count; in ahci_fill_sg()376 int sg_count = 0, cmd_slot = 0; in ahci_exec_ata_cmd() local393 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_exec_ata_cmd()394 opts = (sizeof(struct sata_fis_h2d) >> 2) | (sg_count << 16); in ahci_exec_ata_cmd()