Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/ata/
H A Dahci.c508 u32 sg_count; in ahci_fill_sg() local
511 sg_count = ((buf_len - 1) / MAX_DATA_BYTE_COUNT) + 1; in ahci_fill_sg()
512 if (sg_count > AHCI_MAX_SG) { in ahci_fill_sg()
517 for (i = 0; i < sg_count; i++) { in ahci_fill_sg()
529 return sg_count; in ahci_fill_sg()
642 int sg_count; in ahci_device_data_io() local
659 sg_count = ahci_fill_sg(uc_priv, port, buf, buf_len); in ahci_device_data_io()
660 opts = (fis_len >> 2) | (sg_count << 16) | (is_write << 6); in ahci_device_data_io()
H A Ddwc_ahsata.c326 u32 sg_count, max_bytes; in ahci_fill_sg() local
330 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() local
392 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()
/openbmc/qemu/fsdev/
H A D9p-iov-marshal.c21 static ssize_t v9fs_packunpack(void *addr, struct iovec *sg, int sg_count, in v9fs_packunpack() argument
29 for (i = 0; size && i < sg_count; i++) { in v9fs_packunpack()