Searched refs:qsg (Results 1 – 7 of 7) sorted by relevance
/openbmc/qemu/system/ |
H A D | dma-helpers.c | 33 qsg->nsg = 0; in qemu_sglist_init() 35 qsg->size = 0; in qemu_sglist_init() 36 qsg->as = as; in qemu_sglist_init() 37 qsg->dev = dev; in qemu_sglist_init() 43 if (qsg->nsg == qsg->nalloc) { in qemu_sglist_add() 44 qsg->nalloc = 2 * qsg->nalloc + 1; in qemu_sglist_add() 45 qsg->sg = g_renew(ScatterGatherEntry, qsg->sg, qsg->nalloc); in qemu_sglist_add() 47 qsg->sg[qsg->nsg].base = base; in qemu_sglist_add() 48 qsg->sg[qsg->nsg].len = len; in qemu_sglist_add() 50 ++qsg->nsg; in qemu_sglist_add() [all …]
|
/openbmc/qemu/hw/scsi/ |
H A D | mptsas.c | 53 QEMUSGList qsg; member 206 pci_dma_sglist_init(&req->qsg, pci, 4); in mptsas_build_sgl() 232 qemu_sglist_add(&req->qsg, addr, len); in mptsas_build_sgl() 267 qemu_sglist_destroy(&req->qsg); in mptsas_free_request() 319 if (req->qsg.size < scsi_io->DataLength) { in mptsas_process_scsi_io_request() 1137 return &req->qsg; in mptsas_get_sg_list() 1222 qemu_put_be32(f, req->qsg.nsg); in mptsas_save_request() 1223 for (i = 0; i < req->qsg.nsg; i++) { in mptsas_save_request() 1224 qemu_put_be64(f, req->qsg.sg[i].base); in mptsas_save_request() 1225 qemu_put_be64(f, req->qsg.sg[i].len); in mptsas_save_request() [all …]
|
H A D | megasas.c | 71 QEMUSGList qsg; member 309 qemu_sglist_add(&cmd->qsg, iov_pa, iov_size_p); in megasas_map_sgl() 322 qemu_sglist_destroy(&cmd->qsg); in megasas_map_sgl() 478 qemu_sglist_destroy(&cmd->qsg); in megasas_unmap_frame() 714 pci_dma_sglist_init(&cmd->qsg, PCI_DEVICE(s), 1); in megasas_map_dcmd() 715 qemu_sglist_add(&cmd->qsg, iov_pa, iov_size); in megasas_map_dcmd() 855 dma_buf_read(&info, dcmd_size, &residual, &cmd->qsg, in megasas_ctrl_get_info() 888 dma_buf_read(&info, dcmd_size, &residual, &cmd->qsg, in megasas_mfc_get_defaults() 912 dma_buf_read(&info, dcmd_size, &residual, &cmd->qsg, in megasas_dcmd_get_bios_info() 1028 dma_buf_read(&info, offset, &residual, &cmd->qsg, in megasas_dcmd_pd_get_list() [all …]
|
/openbmc/qemu/include/sysemu/ |
H A D | dma.h | 285 void qemu_sglist_init(QEMUSGList *qsg, DeviceState *dev, int alloc_hint, 287 void qemu_sglist_add(QEMUSGList *qsg, dma_addr_t base, dma_addr_t len); 288 void qemu_sglist_destroy(QEMUSGList *qsg);
|
/openbmc/qemu/include/hw/pci/ |
H A D | pci_device.h | 336 static inline void pci_dma_sglist_init(QEMUSGList *qsg, PCIDevice *dev, in pci_dma_sglist_init() argument 339 qemu_sglist_init(qsg, DEVICE(dev), alloc_hint, pci_get_address_space(dev)); in pci_dma_sglist_init()
|
/openbmc/qemu/hw/nvme/ |
H A D | nvme.h | 404 QEMUSGList qsg; member
|
H A D | ctrl.c | 708 pci_dma_sglist_init(&sg->qsg, PCI_DEVICE(n), 0); in nvme_sg_init() 724 qemu_sglist_destroy(&sg->qsg); in nvme_sg_unmap() 745 size_t sg_len = dma ? sg->qsg.size : sg->iov.size; in nvme_sg_split() 751 sge_len = dma ? sg->qsg.sg[sg_idx].len : sg->iov.iov[sg_idx].iov_len; in nvme_sg_split() 758 qemu_sglist_add(&dst->qsg, sg->qsg.sg[sg_idx].base + offset, in nvme_sg_split() 857 if (sg->qsg.nsg + 1 > IOV_MAX) { in nvme_map_addr() 861 qemu_sglist_add(&sg->qsg, addr, len); in nvme_map_addr() 1295 sge_len = dma ? sg->qsg.sg[sg_idx].len : sg->iov.iov[sg_idx].iov_len; in nvme_tx_interleaved() 1313 addr = sg->qsg.sg[sg_idx].base + offset; in nvme_tx_interleaved() 1352 dma_buf_write(ptr, len, &residual, &sg->qsg, attrs); in nvme_tx() [all …]
|