Lines Matching full:sdio

21 #include "sdio.h"
25 return sdio_readl(dev->sdio.func, MCR_WHISR, NULL); in mt76s_read_whisr()
30 struct mt76_sdio *sdio = &dev->sdio; in mt76s_read_pcr() local
32 return sdio_readl(sdio->func, MCR_WHLPCR, NULL); in mt76s_read_pcr()
38 struct sdio_func *func = dev->sdio.func; in mt76s_read_mailbox()
93 struct sdio_func *func = dev->sdio.func; in mt76s_write_mailbox()
231 dev->sdio.hw_ver = hw_ver; in mt76s_hw_init()
410 struct mt76_sdio *sdio = container_of(w, struct mt76_sdio, in mt76s_net_worker() local
412 struct mt76_dev *dev = container_of(sdio, struct mt76_dev, sdio); in mt76s_net_worker()
463 struct mt76_sdio *sdio = container_of(w, struct mt76_sdio, in mt76s_status_worker() local
465 struct mt76_dev *dev = container_of(sdio, struct mt76_dev, sdio); in mt76s_status_worker()
484 mt76_worker_schedule(&sdio->stat_worker); in mt76s_status_worker()
493 struct mt76_sdio *sdio; in mt76s_tx_status_data() local
498 sdio = container_of(worker, struct mt76_sdio, stat_worker); in mt76s_tx_status_data()
499 dev = container_of(sdio, struct mt76_dev, sdio); in mt76s_tx_status_data()
512 mt76_worker_schedule(&sdio->status_worker); in mt76s_tx_status_data()
589 struct mt76_sdio *sdio = &dev->sdio; in mt76s_tx_kick() local
591 mt76_worker_schedule(&sdio->txrx_worker); in mt76s_tx_kick()
602 struct mt76_sdio *sdio = &dev->sdio; in mt76s_deinit() local
605 mt76_worker_teardown(&sdio->txrx_worker); in mt76s_deinit()
606 mt76_worker_teardown(&sdio->status_worker); in mt76s_deinit()
607 mt76_worker_teardown(&sdio->net_worker); in mt76s_deinit()
608 mt76_worker_teardown(&sdio->stat_worker); in mt76s_deinit()
614 sdio_claim_host(sdio->func); in mt76s_deinit()
615 sdio_release_irq(sdio->func); in mt76s_deinit()
616 sdio_release_host(sdio->func); in mt76s_deinit()
638 struct mt76_sdio *sdio = &dev->sdio; in mt76s_init() local
642 err = mt76_worker_setup(dev->hw, &sdio->status_worker, in mt76s_init()
643 mt76s_status_worker, "sdio-status"); in mt76s_init()
647 err = mt76_worker_setup(dev->hw, &sdio->net_worker, mt76s_net_worker, in mt76s_init()
648 "sdio-net"); in mt76s_init()
652 err = mt76_worker_setup(dev->hw, &sdio->stat_worker, mt76s_tx_status_data, in mt76s_init()
653 "sdio-sta"); in mt76s_init()
657 sched_set_fifo_low(sdio->status_worker.task); in mt76s_init()
658 sched_set_fifo_low(sdio->net_worker.task); in mt76s_init()
659 sched_set_fifo_low(sdio->stat_worker.task); in mt76s_init()
663 dev->sdio.func = func; in mt76s_init()
668 dev->sdio.xmit_buf_sz = min_t(u32, host_max_cap, MT76S_XMIT_BUF_SZ); in mt76s_init()
669 dev->sdio.xmit_buf = devm_kmalloc(dev->dev, dev->sdio.xmit_buf_sz, in mt76s_init()
671 if (!dev->sdio.xmit_buf) in mt76s_init()
680 MODULE_DESCRIPTION("MediaTek MT76x SDIO helpers");