/qemu/include/sysemu/ |
H A D | dma.h | 30 typedef uint64_t dma_addr_t; typedef 41 dma_addr_t size; 73 dma_addr_t addr, dma_addr_t len, in dma_memory_valid() 82 dma_addr_t addr, in dma_memory_rw_relaxed() 188 MemTxResult dma_memory_set(AddressSpace *as, dma_addr_t addr, 206 dma_addr_t addr, dma_addr_t *len, in dma_memory_map() 281 dma_addr_t base; 282 dma_addr_t len; 287 void qemu_sglist_add(QEMUSGList *qsg, dma_addr_t base, dma_addr_t len); 304 MemTxResult dma_buf_read(void *ptr, dma_addr_t len, dma_addr_t *residual, [all …]
|
/qemu/include/hw/pci/ |
H A D | pci_device.h | 236 static inline MemTxResult pci_dma_rw(PCIDevice *dev, dma_addr_t addr, in pci_dma_rw() 237 void *buf, dma_addr_t len, in pci_dma_rw() 256 static inline MemTxResult pci_dma_read(PCIDevice *dev, dma_addr_t addr, in pci_dma_read() 257 void *buf, dma_addr_t len) in pci_dma_read() 275 static inline MemTxResult pci_dma_write(PCIDevice *dev, dma_addr_t addr, in pci_dma_write() 276 const void *buf, dma_addr_t len) in pci_dma_write() 284 dma_addr_t addr, \ 291 dma_addr_t addr, \ 320 static inline void *pci_dma_map(PCIDevice *dev, dma_addr_t addr, in pci_dma_map() 321 dma_addr_t *plen, DMADirection dir) in pci_dma_map() [all …]
|
H A D | pcie_sriov.h | 38 uint8_t type, dma_addr_t size);
|
/qemu/system/ |
H A D | dma-helpers.c | 21 MemTxResult dma_memory_set(AddressSpace *as, dma_addr_t addr, in dma_memory_set() 22 uint8_t c, dma_addr_t len, MemTxAttrs attrs) in dma_memory_set() 41 void qemu_sglist_add(QEMUSGList *qsg, dma_addr_t base, dma_addr_t len) in qemu_sglist_add() 69 dma_addr_t sg_cur_byte; 117 dma_addr_t cur_addr, cur_len; in dma_blk_cb() 278 static MemTxResult dma_buf_rw(void *buf, dma_addr_t len, dma_addr_t *residual, in dma_buf_rw() 283 dma_addr_t xresidual; in dma_buf_rw() 292 dma_addr_t xfer = MIN(len, entry.len); in dma_buf_rw() 305 MemTxResult dma_buf_read(void *ptr, dma_addr_t len, dma_addr_t *residual, in dma_buf_read() 311 MemTxResult dma_buf_write(void *ptr, dma_addr_t len, dma_addr_t *residual, in dma_buf_write()
|
/qemu/include/hw/arm/ |
H A D | smmu-common.h | 65 dma_addr_t addr; /* fetched address that induced an abort, if any */ 188 int smmu_ptw(SMMUState *bs, SMMUTransCfg *cfg, dma_addr_t iova, 196 SMMUTLBEntry *smmu_translate(SMMUState *bs, SMMUTransCfg *cfg, dma_addr_t addr, 203 SMMUTransTableInfo *select_tt(SMMUTransCfg *cfg, dma_addr_t iova); 219 void smmu_iotlb_inv_iova(SMMUState *s, int asid, int vmid, dma_addr_t iova, 221 void smmu_iotlb_inv_ipa(SMMUState *s, int vmid, dma_addr_t ipa, uint8_t tg,
|
/qemu/hw/misc/ |
H A D | edu.c | 70 dma_addr_t src; 71 dma_addr_t dst; 72 dma_addr_t cnt; 73 dma_addr_t cmd; 127 static dma_addr_t edu_clamp_addr(const EduState *edu, dma_addr_t addr) in edu_clamp_addr() 129 dma_addr_t res = addr & edu->dma_mask; in edu_clamp_addr() 173 static void dma_rw(EduState *edu, bool write, dma_addr_t *val, dma_addr_t *dma, in dma_rw()
|
/qemu/hw/arm/ |
H A D | smmu-common.c | 317 dma_addr_t addr = baseaddr + index * sizeof(*pte); in get_pte() 366 SMMUTransTableInfo *select_tt(SMMUTransCfg *cfg, dma_addr_t iova) in select_tt() 396 dma_addr_t addr = *table_addr; in translate_table_addr_ipa() 437 dma_addr_t iova, IOMMUAccessFlags perm, in smmu_ptw_64_s1() 440 dma_addr_t baseaddr, indexmask; in smmu_ptw_64_s1() 464 dma_addr_t pte_addr = baseaddr + offset * sizeof(pte); in smmu_ptw_64_s1() 566 dma_addr_t ipa, IOMMUAccessFlags perm, in smmu_ptw_64_s2() 600 dma_addr_t pte_addr = baseaddr + offset * sizeof(pte); in smmu_ptw_64_s2() 680 dma_addr_t iova, SMMUTransCfg *cfg) in combine_tlb() 709 int smmu_ptw(SMMUState *bs, SMMUTransCfg *cfg, dma_addr_t iova, in smmu_ptw() [all …]
|
H A D | smmuv3-internal.h | 447 dma_addr_t addr; 459 dma_addr_t addr; 463 dma_addr_t addr; 477 dma_addr_t addr; 482 dma_addr_t addr2;
|
H A D | smmuv3.c | 109 dma_addr_t addr = Q_CONS_ENTRY(q); in queue_read() 126 dma_addr_t addr = Q_PROD_ENTRY(q); in queue_write() 321 static int smmu_get_ste(SMMUv3State *s, dma_addr_t addr, STE *buf, in smmu_get_ste() 354 dma_addr_t addr = STE_CTXPTR(ste); in smmu_get_cd() 634 dma_addr_t addr, strtab_base; in smmu_find_ste() 650 dma_addr_t l1ptr, l2ptr; in smmu_find_ste() 662 l1ptr = (dma_addr_t)(strtab_base + l1_ste_offset * sizeof(l1std)); in smmu_find_ste() 1143 dma_addr_t iova, uint8_t tg, in smmuv3_notify_iova() 1203 dma_addr_t iova, uint8_t tg, in smmuv3_inv_notifiers_iova() 1223 dma_addr_t end, addr = CMD_ADDR(cmd); in smmuv3_range_inval()
|
H A D | smmu-internal.h | 120 dma_addr_t ipa) in pgd_concat_idx()
|
/qemu/hw/usb/ |
H A D | libhw.c | 34 dma_addr_t base = sgl->sg[i].base; in usb_packet_map() 35 dma_addr_t len = sgl->sg[i].len; in usb_packet_map() 38 dma_addr_t xlen = len; in usb_packet_map()
|
H A D | hcd-ohci.h | 86 dma_addr_t localmem_base; 110 dma_addr_t dma_offset; 116 dma_addr_t localmem_base, char *masterbus,
|
H A D | hcd-xhci.h | 119 dma_addr_t dequeue; 137 dma_addr_t ctx; 163 dma_addr_t er_start;
|
H A D | hcd-xhci.c | 135 dma_addr_t addr; 266 dma_addr_t pctx; 281 dma_addr_t pctx; 611 dma_addr_t addr; in xhci_write_event() 644 dma_addr_t erdp; in xhci_event() 1004 dma_addr_t base; in xhci_find_stream() 1101 dma_addr_t dequeue; in xhci_init_epctx() 1385 dma_addr_t dequeue; in xhci_set_ep_dequeue() 2362 dma_addr_t octx; in xhci_reset_slot() 2428 dma_addr_t ctx; in xhci_get_port_bandwidth() [all …]
|
H A D | hcd-ohci.c | 378 dma_addr_t addr, uint32_t *buf, int num) in get_dwords() 397 dma_addr_t addr, uint32_t *buf, int num) in put_dwords() 416 dma_addr_t addr, uint16_t *buf, int num) in get_words() 435 dma_addr_t addr, uint16_t *buf, int num) in put_words() 453 dma_addr_t addr, struct ohci_ed *ed) in ohci_read_ed() 459 dma_addr_t addr, struct ohci_td *td) in ohci_read_td() 479 dma_addr_t addr, struct ohci_ed *ed) in ohci_put_ed() 491 dma_addr_t addr, struct ohci_td *td) in ohci_put_td() 516 dma_addr_t ptr, n; in ohci_copy_td() 544 dma_addr_t ptr, n; in ohci_copy_iso_td() [all …]
|
/qemu/include/hw/i386/ |
H A D | intel_iommu.h | 267 dma_addr_t root; /* Current root table pointer */ 273 dma_addr_t iq; /* Current invalidation queue pointer */ 299 dma_addr_t intr_root; /* Interrupt remapping table pointer */
|
/qemu/hw/scsi/ |
H A D | megasas.c | 744 dma_addr_t residual; in megasas_ctrl_get_info() 865 dma_addr_t residual; in megasas_mfc_get_defaults() 898 dma_addr_t residual; in megasas_dcmd_get_bios_info() 922 dma_addr_t residual; in megasas_dcmd_get_fw_time() 948 dma_addr_t residual; in megasas_event_info() 988 dma_addr_t residual; in megasas_dcmd_pd_get_list() 1058 dma_addr_t residual; in megasas_pd_get_info_submit() 1165 dma_addr_t residual; in megasas_dcmd_ld_get_list() 1211 dma_addr_t residual; in megasas_dcmd_ld_list_query() 1264 dma_addr_t residual; in megasas_ld_get_info_submit() [all …]
|
/qemu/hw/i386/ |
H A D | intel_iommu.c | 657 dma_addr_t addr; in vtd_get_root_entry() 680 dma_addr_t addr, ce_size; in vtd_get_context_entry_from_root() 792 dma_addr_t addr, entry_size; in vtd_get_pdire_from_pdir_table() 814 dma_addr_t addr, in vtd_get_pe_in_pasid_leaf_table() 818 dma_addr_t entry_size; in vtd_get_pe_in_pasid_leaf_table() 899 dma_addr_t pasid_dir_base; in vtd_ce_get_rid2pasid_entry() 917 dma_addr_t pasid_dir_base; in vtd_ce_get_pasid_fpd() 2516 dma_addr_t base_addr = s->iq; in vtd_get_inv_desc() 2519 dma_addr_t addr = base_addr + offset * dw; in vtd_get_inv_desc() 2552 dma_addr_t status_addr = inv_desc->hi; in vtd_process_wait_desc() [all …]
|
/qemu/hw/net/ |
H A D | net_tx_pkt.h | 180 dma_addr_t pa, size_t len);
|
H A D | npcm7xx_emc.c | 212 static int emc_read_tx_desc(dma_addr_t addr, NPCM7xxEMCTxDesc *desc) in emc_read_tx_desc() 227 static int emc_write_tx_desc(const NPCM7xxEMCTxDesc *desc, dma_addr_t addr) in emc_write_tx_desc() 244 static int emc_read_rx_desc(dma_addr_t addr, NPCM7xxEMCRxDesc *desc) in emc_read_rx_desc() 259 static int emc_write_rx_desc(const NPCM7xxEMCRxDesc *desc, dma_addr_t addr) in emc_write_rx_desc()
|
H A D | npcm_gmac.c | 210 static int gmac_read_rx_desc(dma_addr_t addr, struct NPCMGMACRxDesc *desc) in gmac_read_rx_desc() 225 static int gmac_write_rx_desc(dma_addr_t addr, struct NPCMGMACRxDesc *desc) in gmac_write_rx_desc() 241 static int gmac_read_tx_desc(dma_addr_t addr, struct NPCMGMACTxDesc *desc) in gmac_read_tx_desc() 256 static int gmac_write_tx_desc(dma_addr_t addr, struct NPCMGMACTxDesc *desc) in gmac_write_tx_desc()
|
H A D | imx_fec.c | 404 static void imx_fec_read_bd(IMXFECBufDesc *bd, dma_addr_t addr) in imx_fec_read_bd() 412 static void imx_fec_write_bd(IMXFECBufDesc *bd, dma_addr_t addr) in imx_fec_write_bd() 418 static void imx_enet_read_bd(IMXENETBufDesc *bd, dma_addr_t addr) in imx_enet_read_bd() 427 static void imx_enet_write_bd(IMXENETBufDesc *bd, dma_addr_t addr) in imx_enet_write_bd()
|
/qemu/include/hw/ppc/ |
H A D | mac_dbdma.h | 49 dma_addr_t dma_len;
|
/qemu/include/hw/nvram/ |
H A D | fw_cfg.h | 80 dma_addr_t dma_addr;
|
/qemu/hw/hyperv/ |
H A D | vmbus.c | 91 dma_addr_t rb_addr; 369 dma_addr_t maddr; in gpadl_iter_io() 370 dma_addr_t mlen = pgleft; in gpadl_iter_io() 480 dma_addr_t mlen = MIN(sg[i].len - off, len); in vmbus_map_sgl() 481 dma_addr_t addr = sg[i].base + off; in vmbus_map_sgl() 486 dma_addr_t l = mlen; in vmbus_map_sgl() 487 dma_addr_t a = addr; in vmbus_map_sgl() 568 dma_addr_t mlen = sizeof(*rb); in ringbuf_map_hdr()
|