/openbmc/qemu/hw/misc/ |
H A D | bcm2835_property.c | 42 tot_len = ldl_le_phys(&s->dma_as, value); in bcm2835_property_mbox_push() 47 uint32_t tag = ldl_le_phys(&s->dma_as, value); in bcm2835_property_mbox_push() 81 stl_le_phys(&s->dma_as, value + 12, 0); in bcm2835_property_mbox_push() 133 stl_le_phys(&s->dma_as, value + 16, in bcm2835_property_mbox_push() 142 stl_le_phys(&s->dma_as, value + 12, 0); in bcm2835_property_mbox_push() 172 stl_le_phys(&s->dma_as, value + 16, in bcm2835_property_mbox_push() 245 stl_le_phys(&s->dma_as, value + 12, in bcm2835_property_mbox_push() 283 stl_le_phys(&s->dma_as, in bcm2835_property_mbox_push() 323 stl_le_phys(&s->dma_as, in bcm2835_property_mbox_push() 342 stl_le_phys(&s->dma_as, in bcm2835_property_mbox_push() [all …]
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-access.h | 44 AddressSpace *dma_as = vdev->dma_as; in virtio_lduw_phys() local 47 return lduw_be_phys(dma_as, pa); in virtio_lduw_phys() 49 return lduw_le_phys(dma_as, pa); in virtio_lduw_phys() 54 AddressSpace *dma_as = vdev->dma_as; in virtio_ldl_phys() local 57 return ldl_be_phys(dma_as, pa); in virtio_ldl_phys() 59 return ldl_le_phys(dma_as, pa); in virtio_ldl_phys() 64 AddressSpace *dma_as = vdev->dma_as; in virtio_ldq_phys() local 67 return ldq_be_phys(dma_as, pa); in virtio_ldq_phys() 69 return ldq_le_phys(dma_as, pa); in virtio_ldq_phys() 75 AddressSpace *dma_as = vdev->dma_as; in virtio_stw_phys() local [all …]
|
/openbmc/qemu/hw/net/ |
H A D | mv88w8618_eth.c | 98 AddressSpace dma_as; member 112 static void eth_rx_desc_put(AddressSpace *dma_as, uint32_t addr, in eth_rx_desc_put() argument 123 static void eth_rx_desc_get(AddressSpace *dma_as, uint32_t addr, in eth_rx_desc_get() argument 147 eth_rx_desc_get(&s->dma_as, desc_addr, &desc); in eth_receive() 159 eth_rx_desc_put(&s->dma_as, desc_addr, &desc); in eth_receive() 168 static void eth_tx_desc_put(AddressSpace *dma_as, uint32_t addr, in eth_tx_desc_put() argument 179 static void eth_tx_desc_get(AddressSpace *dma_as, uint32_t addr, in eth_tx_desc_get() argument 199 eth_tx_desc_get(&s->dma_as, desc_addr, &desc); in eth_send() 204 dma_memory_read(&s->dma_as, desc.buffer, buf, len, in eth_send() 210 eth_tx_desc_put(&s->dma_as, desc_addr, &desc); in eth_send() [all …]
|
H A D | msf2-emac.c | 114 address_space_read(&s->dma_as, desc, MEMTXATTRS_UNSPECIFIED, d, sizeof *d); in emac_load_desc() 132 address_space_write(&s->dma_as, desc, MEMTXATTRS_UNSPECIFIED, &outd, sizeof outd); in emac_store_desc() 155 address_space_read(&s->dma_as, d.pktaddr, MEMTXATTRS_UNSPECIFIED, in msf2_dma_tx() 478 address_space_write(&s->dma_as, d.pktaddr, MEMTXATTRS_UNSPECIFIED, in emac_rx() 529 address_space_init(&s->dma_as, s->dma_mr, "emac-ahb"); in msf2_emac_realize()
|
H A D | allwinner-sun8i-emac.c | 354 dma_memory_read(&s->dma_as, phys_addr, &desc_words, sizeof(desc_words), in allwinner_sun8i_emac_get_desc() 416 dma_memory_write(&s->dma_as, phys_addr, &desc_words, sizeof(desc_words), in allwinner_sun8i_emac_flush_desc() 475 dma_memory_write(&s->dma_as, desc.addr, buf, desc_bytes, in allwinner_sun8i_emac_receive() 528 dma_memory_read(&s->dma_as, desc.addr, packet_buf + packet_bytes, in allwinner_sun8i_emac_transmit() 823 address_space_init(&s->dma_as, s->dma_mr, "emac-dma"); in allwinner_sun8i_emac_realize()
|
/openbmc/qemu/hw/display/ |
H A D | bcm2835_fb.c | 71 rgb888 = ldl_le_phys(&s->dma_as, s->vcram_base + (*src << 2)); in draw_line_src16() 274 newconf.xres = ldl_le_phys(&s->dma_as, value); in bcm2835_fb_mbox_push() 275 newconf.yres = ldl_le_phys(&s->dma_as, value + 4); in bcm2835_fb_mbox_push() 276 newconf.xres_virtual = ldl_le_phys(&s->dma_as, value + 8); in bcm2835_fb_mbox_push() 277 newconf.yres_virtual = ldl_le_phys(&s->dma_as, value + 12); in bcm2835_fb_mbox_push() 278 newconf.bpp = ldl_le_phys(&s->dma_as, value + 20); in bcm2835_fb_mbox_push() 279 newconf.xoffset = ldl_le_phys(&s->dma_as, value + 24); in bcm2835_fb_mbox_push() 280 newconf.yoffset = ldl_le_phys(&s->dma_as, value + 28); in bcm2835_fb_mbox_push() 293 stl_le_phys(&s->dma_as, value + 16, pitch); in bcm2835_fb_mbox_push() 294 stl_le_phys(&s->dma_as, value + 32, newconf.base); in bcm2835_fb_mbox_push() [all …]
|
/openbmc/qemu/hw/dma/ |
H A D | bcm2835_dma.c | 68 ch->ti = ldl_le_phys(&s->dma_as, ch->conblk_ad); in bcm2835_dma_update() 69 ch->source_ad = ldl_le_phys(&s->dma_as, ch->conblk_ad + 4); in bcm2835_dma_update() 70 ch->dest_ad = ldl_le_phys(&s->dma_as, ch->conblk_ad + 8); in bcm2835_dma_update() 71 ch->txfr_len = ldl_le_phys(&s->dma_as, ch->conblk_ad + 12); in bcm2835_dma_update() 72 ch->stride = ldl_le_phys(&s->dma_as, ch->conblk_ad + 16); in bcm2835_dma_update() 73 ch->nextconbk = ldl_le_phys(&s->dma_as, ch->conblk_ad + 20); in bcm2835_dma_update() 96 data = ldl_le_phys(&s->dma_as, ch->source_ad); in bcm2835_dma_update() 105 stl_le_phys(&s->dma_as, ch->dest_ad, data); in bcm2835_dma_update() 383 address_space_init(&s->dma_as, s->dma_mr, TYPE_BCM2835_DMA "-memory"); in bcm2835_dma_realize()
|
H A D | xlnx-zdma.c | 323 descr->addr = address_space_ldq_le(&s->dma_as, addr, s->attr, NULL); in zdma_load_descriptor() 324 descr->size = address_space_ldl_le(&s->dma_as, addr + 8, s->attr, NULL); in zdma_load_descriptor() 325 descr->attr = address_space_ldl_le(&s->dma_as, addr + 12, s->attr, NULL); in zdma_load_descriptor() 357 next = address_space_ldq_le(&s->dma_as, addr, s->attr, NULL); in zdma_update_descr_addr() 424 address_space_write(&s->dma_as, s->dsc_dst.addr, s->attr, buf, dlen); in zdma_write_dst() 500 address_space_read(&s->dma_as, src_addr, s->attr, s->buf, len); in zdma_process_descr() 772 address_space_init(&s->dma_as, s->dma_mr, "zdma-dma"); in zdma_realize()
|
H A D | rc4030.c | 100 AddressSpace dma_as; member 619 address_space_rw(&s->dma_as, dma_addr, MEMTXATTRS_UNSPECIFIED, in rc4030_do_dma() 691 address_space_init(&s->dma_as, MEMORY_REGION(&s->dma_mr), "rc4030-dma"); in rc4030_realize() 700 address_space_destroy(&s->dma_as); in rc4030_unrealize()
|
H A D | xlnx_csu_dma.c | 204 result = address_space_rw(&s->dma_as, addr, s->attr, in xlnx_csu_dma_read() 208 result = address_space_rw(&s->dma_as, addr, s->attr, buf, len, false); in xlnx_csu_dma_read() 235 result = address_space_rw(&s->dma_as, addr, s->attr, in xlnx_csu_dma_write() 240 result = address_space_rw(&s->dma_as, addr, s->attr, buf, len, true); in xlnx_csu_dma_write() 656 address_space_init(&s->dma_as, s->dma_mr, "csu-dma"); in xlnx_csu_dma_realize()
|
/openbmc/qemu/include/hw/nvram/ |
H A D | fw_cfg.h | 81 AddressSpace *dma_as; member 323 AddressSpace *dma_as); 328 hwaddr dma_addr, AddressSpace *dma_as);
|
/openbmc/qemu/hw/nvram/ |
H A D | fw_cfg.c | 348 if (dma_memory_read(s->dma_as, dma_addr, in fw_cfg_dma_transfer() 391 if (dma_memory_set(s->dma_as, dma.address, 0, len, in fw_cfg_dma_transfer() 410 if (dma_memory_write(s->dma_as, dma.address, in fw_cfg_dma_transfer() 419 dma_memory_read(s->dma_as, dma.address, in fw_cfg_dma_transfer() 436 stl_be_dma(s->dma_as, dma_addr + offsetof(FWCfgDmaAccess, control), in fw_cfg_dma_transfer() 1140 AddressSpace *dma_as) in fw_cfg_init_io_dma() argument 1147 bool dma_requested = dma_iobase && dma_as; in fw_cfg_init_io_dma() 1166 s->dma_as = dma_as; in fw_cfg_init_io_dma() 1181 hwaddr dma_addr, AddressSpace *dma_as) in fw_cfg_init_mem_wide() argument 1186 bool dma_requested = dma_addr && dma_as; in fw_cfg_init_mem_wide() [all …]
|
/openbmc/qemu/hw/sd/ |
H A D | sdhci.c | 703 dma_memory_read(s->dma_as, entry_addr, &adma2, sizeof(adma2), in get_adma_description() 715 dma_memory_read(s->dma_as, entry_addr, &adma1, sizeof(adma1), in get_adma_description() 728 dma_memory_read(s->dma_as, entry_addr, &dscr->attr, 1, in get_adma_description() 730 dma_memory_read(s->dma_as, entry_addr + 2, &dscr->length, 2, in get_adma_description() 733 dma_memory_read(s->dma_as, entry_addr + 4, &dscr->addr, 8, in get_adma_description() 799 res = dma_memory_write(s->dma_as, dscr.addr, in sdhci_do_adma() 828 res = dma_memory_read(s->dma_as, dscr.addr, in sdhci_do_adma() 1567 s->dma_as = &s->sysbus_dma_as; in sdhci_sysbus_realize() 1568 address_space_init(s->dma_as, s->dma_mr, "sdhci-dma"); in sdhci_sysbus_realize() 1571 s->dma_as = &address_space_memory; in sdhci_sysbus_realize() [all …]
|
H A D | sdhci-pci.c | 44 s->dma_as = pci_get_address_space(dev); in sdhci_pci_realize()
|
/openbmc/qemu/include/hw/misc/ |
H A D | bcm2835_property.h | 26 AddressSpace dma_as; member
|
/openbmc/qemu/include/hw/net/ |
H A D | msf2-emac.h | 42 AddressSpace dma_as; member
|
H A D | allwinner-sun8i-emac.h | 55 AddressSpace dma_as; member
|
H A D | cadence_gem.h | 54 AddressSpace dma_as; member
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-bus.c | 81 vdev->dma_as = &address_space_memory; in virtio_bus_device_plugged() 91 vdev->dma_as = klass->get_dma_as(qbus->parent); in virtio_bus_device_plugged() 92 if (!vdev_has_iommu && vdev->dma_as != &address_space_memory) { in virtio_bus_device_plugged()
|
/openbmc/qemu/include/hw/dma/ |
H A D | bcm2835_dma.h | 40 AddressSpace dma_as; member
|
H A D | xlnx_csu_dma.h | 38 AddressSpace dma_as; member
|
H A D | xlnx-zdma.h | 59 AddressSpace dma_as; member
|
/openbmc/qemu/hw/remote/ |
H A D | vfio-user-obj.c | 306 AddressSpace *dma_as = NULL; in dma_register() local 323 dma_as = pci_device_iommu_address_space(o->pci_dev); in dma_register() 325 memory_region_add_subregion(dma_as->root, (hwaddr)iov->iov_base, subregion); in dma_register() 333 AddressSpace *dma_as = NULL; in dma_unregister() local 342 dma_as = pci_device_iommu_address_space(o->pci_dev); in dma_unregister() 344 memory_region_del_subregion(dma_as->root, mr); in dma_unregister()
|
/openbmc/qemu/include/hw/display/ |
H A D | bcm2835_fb.h | 45 AddressSpace dma_as; member
|
/openbmc/qemu/include/hw/sd/ |
H A D | allwinner-sdhost.h | 79 AddressSpace dma_as; member
|