Home
last modified time | relevance | path

Searched refs:dma_as (Results 1 – 25 of 48) sorted by relevance

12

/qemu/hw/misc/
H A Dbcm2835_property.c48 tot_len = ldl_le_phys(&s->dma_as, value); in bcm2835_property_mbox_push()
53 tag = ldl_le_phys(&s->dma_as, value); in bcm2835_property_mbox_push()
54 bufsize = ldl_le_phys(&s->dma_as, value + 4); in bcm2835_property_mbox_push()
87 stl_le_phys(&s->dma_as, value + 12, 0); in bcm2835_property_mbox_push()
111 stl_le_phys(&s->dma_as, value + 16, 0x1); in bcm2835_property_mbox_push()
136 stl_le_phys(&s->dma_as, value + 16, in bcm2835_property_mbox_push()
145 stl_le_phys(&s->dma_as, value + 12, 0); in bcm2835_property_mbox_push()
175 stl_le_phys(&s->dma_as, value + 16, in bcm2835_property_mbox_push()
248 stl_le_phys(&s->dma_as, value + 12, in bcm2835_property_mbox_push()
281 stl_le_phys(&s->dma_as, in bcm2835_property_mbox_push()
[all …]
/qemu/include/hw/virtio/
H A Dvirtio-access.h44 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 …]
/qemu/hw/net/
H A Dmv88w8618_eth.c98 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 Dmsf2-emac.c114 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 Dallwinner-sun8i-emac.c354 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()
/qemu/hw/display/
H A Dbcm2835_fb.c71 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 …]
/qemu/hw/dma/
H A Dbcm2835_dma.c68 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 Dxlnx-zdma.c323 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 Drc4030.c100 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 Dxlnx_csu_dma.c204 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()
/qemu/include/hw/nvram/
H A Dfw_cfg.h81 AddressSpace *dma_as; member
323 AddressSpace *dma_as);
328 hwaddr dma_addr, AddressSpace *dma_as);
/qemu/hw/nvram/
H A Dfw_cfg.c348 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 …]
/qemu/hw/sd/
H A Dsdhci.c703 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()
1565 s->dma_as = &s->sysbus_dma_as; in sdhci_sysbus_realize()
1566 address_space_init(s->dma_as, s->dma_mr, "sdhci-dma"); in sdhci_sysbus_realize()
1569 s->dma_as = &address_space_memory; in sdhci_sysbus_realize()
[all …]
H A Dallwinner-sdhost.c311 dma_memory_read(&s->dma_as, desc_addr, &desc_words, sizeof(desc_words), in read_descriptor()
327 dma_memory_write(&s->dma_as, desc_addr, &desc_words, sizeof(desc_words), in write_descriptor()
366 dma_memory_read(&s->dma_as, in allwinner_sdhost_process_desc()
374 dma_memory_write(&s->dma_as, in allwinner_sdhost_process_desc()
839 address_space_init(&s->dma_as, s->dma_mr, "sdhost-dma"); in allwinner_sdhost_realize()
/qemu/hw/virtio/
H A Dvirtio-bus.c81 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()
/qemu/hw/remote/
H A Dvfio-user-obj.c306 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()
/qemu/include/hw/misc/
H A Dbcm2835_property.h25 AddressSpace dma_as; member
/qemu/include/hw/net/
H A Dmsf2-emac.h42 AddressSpace dma_as; member
H A Dallwinner-sun8i-emac.h55 AddressSpace dma_as; member
H A Dcadence_gem.h54 AddressSpace dma_as; member
/qemu/include/hw/dma/
H A Dbcm2835_dma.h40 AddressSpace dma_as; member
H A Dxlnx_csu_dma.h38 AddressSpace dma_as; member
H A Dxlnx-zdma.h59 AddressSpace dma_as; member
/qemu/include/hw/display/
H A Dbcm2835_fb.h45 AddressSpace dma_as; member
/qemu/include/hw/sd/
H A Dallwinner-sdhost.h79 AddressSpace dma_as; member

12