Lines Matching full:sdio

8 #include "../sdio.h"
12 struct mt76_sdio *sdio = &dev->sdio; in mt7921s_enable_irq() local
14 sdio_claim_host(sdio->func); in mt7921s_enable_irq()
15 sdio_writel(sdio->func, WHLPCR_INT_EN_SET, MCR_WHLPCR, NULL); in mt7921s_enable_irq()
16 sdio_release_host(sdio->func); in mt7921s_enable_irq()
21 struct mt76_sdio *sdio = &dev->sdio; in mt7921s_disable_irq() local
23 sdio_claim_host(sdio->func); in mt7921s_disable_irq()
24 sdio_writel(sdio->func, WHLPCR_INT_EN_CLR, MCR_WHLPCR, NULL); in mt7921s_disable_irq()
25 sdio_release_host(sdio->func); in mt7921s_disable_irq()
30 return sdio_readl(dev->sdio.func, MCR_WHCR, NULL); in mt7921s_read_whcr()
35 struct mt76_sdio *sdio = &dev->mt76.sdio; in mt7921s_wfsys_reset() local
40 sdio_claim_host(sdio->func); in mt7921s_wfsys_reset()
42 val = sdio_readl(sdio->func, MCR_WHCR, NULL); in mt7921s_wfsys_reset()
44 sdio_writel(sdio->func, val, MCR_WHCR, NULL); in mt7921s_wfsys_reset()
48 val = sdio_readl(sdio->func, MCR_WHCR, NULL); in mt7921s_wfsys_reset()
50 sdio_writel(sdio->func, val, MCR_WHCR, NULL); in mt7921s_wfsys_reset()
54 val = sdio_readl(sdio->func, MCR_WHCR, NULL); in mt7921s_wfsys_reset()
56 sdio_writel(sdio->func, val, MCR_WHCR, NULL); in mt7921s_wfsys_reset()
61 sdio_release_host(sdio->func); in mt7921s_wfsys_reset()
80 wait_event_timeout(dev->mt76.sdio.wait, in mt7921s_init_reset()
82 mt76_worker_disable(&dev->mt76.sdio.txrx_worker); in mt7921s_init_reset()
87 mt76_worker_enable(&dev->mt76.sdio.txrx_worker); in mt7921s_init_reset()
104 wait_event_timeout(dev->mt76.sdio.wait, in mt7921s_mac_reset()
106 mt76_worker_disable(&dev->mt76.sdio.txrx_worker); in mt7921s_mac_reset()
107 mt76_worker_disable(&dev->mt76.sdio.status_worker); in mt7921s_mac_reset()
108 mt76_worker_disable(&dev->mt76.sdio.net_worker); in mt7921s_mac_reset()
109 mt76_worker_disable(&dev->mt76.sdio.stat_worker); in mt7921s_mac_reset()
114 mt76_worker_enable(&dev->mt76.sdio.txrx_worker); in mt7921s_mac_reset()
115 mt76_worker_enable(&dev->mt76.sdio.status_worker); in mt7921s_mac_reset()
116 mt76_worker_enable(&dev->mt76.sdio.net_worker); in mt7921s_mac_reset()
117 mt76_worker_enable(&dev->mt76.sdio.stat_worker); in mt7921s_mac_reset()