/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mmio.c | 14 val = readl(dev->mmio.regs + offset); in mt76_mmio_rr() 16 val = readl((u8 *)dev->mmio.regs + offset); in mt76_mmio_rr() 27 writel(val, dev->mmio.regs + offset); in mt76_mmio_wr() 29 writel(val, (u8 *)dev->mmio.regs + offset); in mt76_mmio_wr() 44 __iowrite32_copy(dev->mmio.regs + offset, data, DIV_ROUND_UP(len, 4)); in mt76_mmio_write_copy() 46 __iowrite32_copy((u8 *)dev->mmio.regs + offset, data, DIV_ROUND_UP(len, 4)); in mt76_mmio_write_copy() 54 __ioread32_copy(data, dev->mmio.regs + offset, DIV_ROUND_UP(len, 4)); in mt76_mmio_read_copy() 56 __ioread32_copy(data, (u8 *)dev->mmio.regs + offset, DIV_ROUND_UP(len, 4)); in mt76_mmio_read_copy() 89 spin_lock_irqsave(&dev->mmio.irq_lock, flags); in mt76_set_irq_mask() 90 dev->mmio.irqmask &= ~clear; in mt76_set_irq_mask() [all …]
|
H A D | dma.c | 20 _val = mtk_wed_device_reg_read(&(_dev)->mmio.wed, \ 31 mtk_wed_device_reg_write(&(_dev)->mmio.wed, \ 646 struct mtk_wed_device *wed = &dev->mmio.wed; in mt76_dma_wed_setup() 707 q->regs = dev->mmio.regs + ring_base + idx * MT_RING_SIZE; in mt76_dma_alloc_queue() 709 q->regs = (void *)((u8 *)dev->mmio.regs + ring_base + idx * MT_RING_SIZE); in mt76_dma_alloc_queue() 938 init_completion(&dev->mmio.wed_reset); in mt76_dma_init() 939 init_completion(&dev->mmio.wed_reset_complete); in mt76_dma_init() 1001 if (mtk_wed_device_active(&dev->mmio.wed)) in mt76_dma_cleanup() 1002 mtk_wed_device_detach(&dev->mmio.wed); in mt76_dma_cleanup()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | mmio.c | 518 memcpy_fromio(buf, dev->mt76.mmio.regs + addr, len); in mt7915_memcpy_fromio() 520 memcpy_fromio(buf, (u8 *)dev->mt76.mmio.regs + addr, len); in mt7915_memcpy_fromio() 553 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_offload_enable() 567 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_offload_disable() 579 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_release_rx_buf() 604 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_init_rx_buf() 655 dev = container_of(wed, struct mt7915_dev, mt76.mmio.wed); in mt7915_mmio_wed_update_rx_stats() 675 struct mt76_dev *mdev = container_of(wed, struct mt76_dev, mmio.wed); in mt7915_mmio_wed_reset() 691 if (!wait_for_completion_timeout(&mdev->mmio.wed_reset, 20 * HZ)) { in mt7915_mmio_wed_reset() 704 struct mt76_dev *dev = container_of(wed, struct mt76_dev, mmio.wed); in mt7915_mmio_wed_reset_complete() [all …]
|
H A D | dma.c | 13 if (mtk_wed_device_active(&phy->dev->mt76.mmio.wed)) { in mt7915_init_tx_queues() 85 if (is_mt7916(&dev->mt76) && mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_dma_config() 307 if (mtk_wed_device_active(&dev->mt76.mmio.wed) && wed_reset) { in mt7915_dma_start() 321 mtk_wed_device_start(&dev->mt76.mmio.wed, wed_irq_mask); in mt7915_dma_start() 422 if (mtk_wed_device_active(&mdev->mmio.wed)) { in mt7915_dma_init() 492 if (mtk_wed_device_active(&mdev->mmio.wed) && is_mt7915(mdev)) { in mt7915_dma_init() 508 if (mtk_wed_device_active(&mdev->mmio.wed) && in mt7915_dma_init() 509 mtk_wed_get_rx_capa(&mdev->mmio.wed)) { in mt7915_dma_init() 529 if (mtk_wed_device_active(&mdev->mmio.wed)) { in mt7915_dma_init() 545 if (mtk_wed_device_active(&mdev->mmio.wed) && in mt7915_dma_init() [all …]
|
H A D | Makefile | 6 debugfs.o mmio.o
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_pci.c | 527 TAILQ_INIT(&pdev->mmio); in linux_pci_attach_device() 720 struct pci_mmio_region *mmio, *p; in _lkpi_pci_iomap() local 734 TAILQ_FOREACH_SAFE(mmio, &pdev->mmio, next, p) { in _lkpi_pci_iomap() 735 if (mmio->type == type && mmio->rid == PCIR_BAR(bar)) { in _lkpi_pci_iomap() 736 return (mmio->res); in _lkpi_pci_iomap() 740 mmio = malloc(sizeof(*mmio), M_DEVBUF, M_WAITOK | M_ZERO); in _lkpi_pci_iomap() 741 mmio->rid = PCIR_BAR(bar); in _lkpi_pci_iomap() 742 mmio->type = type; in _lkpi_pci_iomap() 743 mmio->res = bus_alloc_resource_any(pdev->dev.bsddev, mmio->type, in _lkpi_pci_iomap() 744 &mmio->rid, RF_ACTIVE|RF_SHAREABLE); in _lkpi_pci_iomap() [all …]
|
/freebsd/sys/dev/usb/controller/ |
H A D | ehci_imx.c | 144 struct resource *mmio; member 161 reg = bus_read_4(sc->mmio, index * sizeof(uint32_t)); in imx_usbmisc_set_ctrl() 162 bus_write_4(sc->mmio, index * sizeof(uint32_t), reg | bits); in imx_usbmisc_set_ctrl() 173 reg = bus_read_4(sc->mmio, index * sizeof(uint32_t)); in imx_usbmisc_clr_ctrl() 174 bus_write_4(sc->mmio, index * sizeof(uint32_t), reg & ~bits); in imx_usbmisc_clr_ctrl() 199 if (sc->mmio != NULL) in imx_usbmisc_detach() 200 bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->mmio); in imx_usbmisc_detach() 215 sc->mmio = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in imx_usbmisc_attach() 217 if (sc->mmio == NULL) { in imx_usbmisc_attach()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | mmio.c | 171 memcpy_fromio(buf, dev->mt76.mmio.regs + addr, len); in mt7996_memcpy_fromio() 173 memcpy_fromio(buf, (u8 *)dev->mt76.mmio.regs + addr, len); in mt7996_memcpy_fromio() 242 spin_lock_irqsave(&mdev->mmio.irq_lock, flags); in mt7996_dual_hif_set_irq_mask() 244 mdev->mmio.irqmask &= ~clear; in mt7996_dual_hif_set_irq_mask() 245 mdev->mmio.irqmask |= set; in mt7996_dual_hif_set_irq_mask() 248 mt76_wr(dev, MT_INT_MASK_CSR, mdev->mmio.irqmask); in mt7996_dual_hif_set_irq_mask() 249 mt76_wr(dev, MT_INT1_MASK_CSR, mdev->mmio.irqmask); in mt7996_dual_hif_set_irq_mask() 252 spin_unlock_irqrestore(&mdev->mmio.irq_lock, flags); in mt7996_dual_hif_set_irq_mask() 274 intr &= dev->mt76.mmio.irqmask; in mt7996_irq_tasklet() 279 intr1 &= dev->mt76.mmio.irqmask; in mt7996_irq_tasklet() [all …]
|
H A D | Makefile | 6 debugfs.o mmio.o
|
/freebsd/sys/contrib/device-tree/src/arc/ |
H A D | haps_hs.dts | 70 compatible = "virtio,mmio"; 76 compatible = "virtio,mmio"; 82 compatible = "virtio,mmio"; 88 compatible = "virtio,mmio"; 94 compatible = "virtio,mmio";
|
/freebsd/sys/contrib/device-tree/src/arm64/arm/ |
H A D | rtsm_ve-motherboard-rs2.dtsi | 14 compatible = "virtio,mmio"; 20 compatible = "virtio,mmio"; 26 compatible = "virtio,mmio";
|
/freebsd/sys/contrib/device-tree/Bindings/virtio/ |
H A D | mmio.txt | 7 - compatible: "virtio,mmio" compatibility string 23 does not access memory through an IOMMU, the "virtio,mmio" 30 compatible = "virtio,mmio"; 39 compatible = "virtio,mmio";
|
/freebsd/sys/contrib/device-tree/Bindings/misc/ |
H A D | pvpanic-mmio.txt | 13 - compatible: "qemu,pvpanic-mmio". 24 pvpanic-mmio@9060000 { 25 compatible = "qemu,pvpanic-mmio";
|
/freebsd/sys/contrib/device-tree/src/arm/nxp/lpc/ |
H A D | lpc4350.dtsi | 25 compatible = "mmio-sram"; 30 compatible = "mmio-sram"; 35 compatible = "mmio-sram";
|
H A D | lpc4357.dtsi | 25 compatible = "mmio-sram"; 30 compatible = "mmio-sram"; 35 compatible = "mmio-sram";
|
/freebsd/sys/contrib/device-tree/Bindings/clock/ |
H A D | fixed-mmio-clock.txt | 12 - compatible : shall be "fixed-mmio-clock". 22 compatible = "fixed-mmio-clock";
|
/freebsd/sys/contrib/device-tree/Bindings/security/tpm/ |
H A D | tpm_tis_mmio.txt | 13 "tcg,tpm-tis-mmio". Valid chip strings are: 21 compatible = "atmel,at97sc3204", "tcg,tpm-tis-mmio";
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | core.c | 24 trace_dev_irq(&dev->mt76, intr, dev->mt76.mmio.irqmask); in mt7603_irq_handler() 26 intr &= dev->mt76.mmio.irqmask; in mt7603_irq_handler()
|
/freebsd/sys/contrib/device-tree/Bindings/arm/ |
H A D | fw-cfg.txt | 20 - compatible: "qemu,fw-cfg-mmio". 35 compatible = "qemu,fw-cfg-mmio";
|
/freebsd/sys/contrib/device-tree/Bindings/mtd/ |
H A D | ti,am654-hbmc.txt | 17 for mmio-mux binding details 29 compatible = "mmio-mux";
|
/freebsd/sys/contrib/device-tree/Bindings/net/ |
H A D | mdio-mux-multiplexer.txt | 4 of a mux producer device. The mux producer can be of any type like mmio mux 9 - compatible : should be "mmio-mux-multiplexer"
|
/freebsd/sys/contrib/device-tree/src/arm/nxp/imx/ |
H A D | imx6qp.dtsi | 10 compatible = "mmio-sram"; 19 compatible = "mmio-sram";
|
/freebsd/sys/contrib/device-tree/Bindings/mux/ |
H A D | reg-mux.txt | 9 "mmio-mux" : if parent device of mux controller is syscon device 94 compatible = "mmio-mux";
|
/freebsd/sys/modules/mt76/mt7615/ |
H A D | Makefile | 14 SRCS+= dma.c mmio.c pci.c pci_init.c pci_mac.c
|
/freebsd/sys/contrib/device-tree/src/arm/microchip/ |
H A D | at91sam9xe.dtsi | 20 compatible = "mmio-sram";
|