Home
last modified time | relevance | path

Searched refs:mcu (Results 1 – 25 of 31) sorted by relevance

12

/drivers/net/wireless/mediatek/mt76/
Dmt76x02_usb_mcu.c27 if (usb->mcu.burst) { in mt76x02u_multiple_mcu_reads()
28 WARN_ON_ONCE(len / 4 != usb->mcu.rp_len); in mt76x02u_multiple_mcu_reads()
30 reg = usb->mcu.rp[0].reg - usb->mcu.base; in mt76x02u_multiple_mcu_reads()
31 for (i = 0; i < usb->mcu.rp_len; i++) { in mt76x02u_multiple_mcu_reads()
33 usb->mcu.rp[i].reg = reg++; in mt76x02u_multiple_mcu_reads()
34 usb->mcu.rp[i].value = val; in mt76x02u_multiple_mcu_reads()
37 WARN_ON_ONCE(len / 8 != usb->mcu.rp_len); in mt76x02u_multiple_mcu_reads()
39 for (i = 0; i < usb->mcu.rp_len; i++) { in mt76x02u_multiple_mcu_reads()
41 usb->mcu.base; in mt76x02u_multiple_mcu_reads()
44 WARN_ON_ONCE(usb->mcu.rp[i].reg != reg); in mt76x02u_multiple_mcu_reads()
[all …]
Dmcu.c39 wait_event_timeout(dev->mcu.wait, in mt76_mcu_get_response()
40 (!skb_queue_empty(&dev->mcu.res_q) || in mt76_mcu_get_response()
43 return skb_dequeue(&dev->mcu.res_q); in mt76_mcu_get_response()
49 skb_queue_tail(&dev->mcu.res_q, skb); in mt76_mcu_rx_event()
50 wake_up(&dev->mcu.wait); in mt76_mcu_rx_event()
80 mutex_lock(&dev->mcu.mutex); in mt76_mcu_skb_send_and_get_msg()
91 expires = jiffies + dev->mcu.timeout; in mt76_mcu_skb_send_and_get_msg()
103 mutex_unlock(&dev->mcu.mutex); in mt76_mcu_skb_send_and_get_msg()
Dmt76x02_mcu.c51 mutex_lock(&mdev->mcu.mutex); in mt76x02_mcu_msg_send()
53 seq = ++mdev->mcu.msg_seq & 0xf; in mt76x02_mcu_msg_send()
55 seq = ++mdev->mcu.msg_seq & 0xf; in mt76x02_mcu_msg_send()
76 mutex_unlock(&mdev->mcu.mutex); in mt76x02_mcu_msg_send()
153 while ((skb = skb_dequeue(&dev->mt76.mcu.res_q)) != NULL) in mt76x02_mcu_cleanup()
Dsdio.c162 bool mcu; in mt76s_process_tx_queue() local
167 mcu = q == dev->q_mcu[MT_MCUQ_WM]; in mt76s_process_tx_queue()
175 if (mcu) { in mt76s_process_tx_queue()
DMakefile11 tx.o agg-rx.o mcu.o
Dmac80211.c444 skb_queue_head_init(&dev->mcu.res_q); in mt76_alloc_device()
445 init_waitqueue_head(&dev->mcu.wait); in mt76_alloc_device()
446 mutex_init(&dev->mcu.mutex); in mt76_alloc_device()
/drivers/net/wireless/mediatek/mt7601u/
Dmcu.c70 struct urb *urb = dev->mcu.resp.urb; in mt7601u_mcu_wait_resp()
75 if (!wait_for_completion_timeout(&dev->mcu.resp_cmpl, in mt7601u_mcu_wait_resp()
82 rxfce = get_unaligned_le32(dev->mcu.resp.buf); in mt7601u_mcu_wait_resp()
86 &dev->mcu.resp, GFP_KERNEL, in mt7601u_mcu_wait_resp()
88 &dev->mcu.resp_cmpl); in mt7601u_mcu_wait_resp()
124 mutex_lock(&dev->mcu.mutex); in mt7601u_mcu_msg_send()
128 seq = ++dev->mcu.msg_seq & 0xf; in mt7601u_mcu_msg_send()
132 if (dev->mcu.resp_cmpl.done) in mt7601u_mcu_msg_send()
148 mutex_unlock(&dev->mcu.mutex); in mt7601u_mcu_msg_send()
495 mutex_init(&dev->mcu.mutex); in mt7601u_mcu_init()
[all …]
DMakefile5 usb.o init.o main.o mcu.o trace.o dma.o core.o eeprom.o phy.o \
Dmt7601u.h165 struct mt7601u_mcu mcu; member
/drivers/thermal/
Dkhadas_mcu_fan.c20 struct khadas_mcu *mcu; member
30 ret = regmap_write(ctx->mcu->regmap, KHADAS_MCU_CMD_FAN_STATUS_CTRL_REG, in khadas_mcu_fan_set_level()
81 struct khadas_mcu *mcu = dev_get_drvdata(pdev->dev.parent); in khadas_mcu_fan_probe() local
90 ctx->mcu = mcu; in khadas_mcu_fan_probe()
/drivers/net/wireless/mediatek/mt76/mt7615/
Dsdio_txrx.c168 static int mt7663s_tx_pick_quota(struct mt76_sdio *sdio, bool mcu, int buf_sz, in mt7663s_tx_pick_quota() argument
175 if (mcu) { in mt7663s_tx_pick_quota()
190 static void mt7663s_tx_update_quota(struct mt76_sdio *sdio, bool mcu, in mt7663s_tx_update_quota() argument
193 if (mcu) { in mt7663s_tx_update_quota()
219 bool mcu = q == dev->q_mcu[MT_MCUQ_WM]; in mt7663s_tx_run_queue() local
223 qid = mcu ? ARRAY_SIZE(sdio->xmit_buf) - 1 : q->qid; in mt7663s_tx_run_queue()
244 if (mt7663s_tx_pick_quota(sdio, mcu, e->buf_sz, &pse_sz, in mt7663s_tx_run_queue()
275 mt7663s_tx_update_quota(sdio, mcu, pse_sz, ple_sz); in mt7663s_tx_run_queue()
DMakefile11 mt7615-common-y := main.o init.o mcu.o eeprom.o mac.o \
Dpci_mac.c286 wake_up(&dev->mt76.mcu.wait); in mt7615_mac_reset_work()
/drivers/perf/
Dxgene_pmu.c354 XGENE_PMU_EVENT_ATTR(mcu-request, 0x12),
355 XGENE_PMU_EVENT_ATTR(mcu-rd-request, 0x13),
356 XGENE_PMU_EVENT_ATTR(mcu-hp-rd-request, 0x14),
357 XGENE_PMU_EVENT_ATTR(mcu-wr-request, 0x15),
358 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-all, 0x16),
359 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-cancel, 0x17),
360 XGENE_PMU_EVENT_ATTR(mcu-rd-response, 0x18),
361 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-all, 0x19),
362 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-cancel, 0x1a),
363 XGENE_PMU_EVENT_ATTR(mcu-wr-proceed-all, 0x1b),
[all …]
/drivers/usb/musb/
Dmediatek.c48 struct clk *mcu; member
64 glue->mcu = devm_clk_get(dev, "mcu"); in mtk_musb_clks_get()
65 if (IS_ERR(glue->mcu)) { in mtk_musb_clks_get()
67 return PTR_ERR(glue->mcu); in mtk_musb_clks_get()
89 ret = clk_prepare_enable(glue->mcu); in mtk_musb_clks_enable()
104 clk_disable_unprepare(glue->mcu); in mtk_musb_clks_enable()
114 clk_disable_unprepare(glue->mcu); in mtk_musb_clks_disable()
/drivers/net/wireless/mediatek/mt76/mt7603/
Dmcu.c46 mdev->mcu.timeout = 3 * HZ; in mt7603_mcu_skb_send_msg()
48 seq = ++mdev->mcu.msg_seq & 0xf; in mt7603_mcu_skb_send_msg()
50 seq = ++mdev->mcu.msg_seq & 0xf; in mt7603_mcu_skb_send_msg()
234 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7603_mcu_exit()
DMakefile5 pci.o soc.o main.o init.o mcu.o \
/drivers/net/wireless/mediatek/mt76/mt7921/
DMakefile7 mt7921e-y := pci.o mac.o mcu.o dma.o eeprom.o main.o init.o debugfs.o trace.o
Dmcu.c236 mdev->mcu.timeout = HZ / 3; in mt7921_mcu_send_message()
239 mdev->mcu.timeout = 3 * HZ; in mt7921_mcu_send_message()
243 seq = ++dev->mt76.mcu.msg_seq & 0xf; in mt7921_mcu_send_message()
245 seq = ++dev->mt76.mcu.msg_seq & 0xf; in mt7921_mcu_send_message()
1024 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921_mcu_exit()
/drivers/net/wireless/mediatek/mt76/mt7915/
DMakefile5 mt7915e-y := pci.o init.o dma.o eeprom.o main.o mcu.o mac.o \
/drivers/net/wireless/mediatek/mt76/mt76x2/
DMakefile7 eeprom.o mac.o init.o phy.o mcu.o
Dusb_init.c203 usb->mcu.data = devm_kmalloc(dev->mt76.dev, MCU_RESP_URB_SIZE, in mt76x2u_register_device()
205 if (!usb->mcu.data) in mt76x2u_register_device()
/drivers/edac/
Dxgene_edac.c437 static int xgene_edac_mc_remove(struct xgene_edac_mc_ctx *mcu) in xgene_edac_mc_remove() argument
439 xgene_edac_mc_irq_ctl(mcu->mci, false); in xgene_edac_mc_remove()
440 edac_mc_del_mc(&mcu->mci->dev); in xgene_edac_mc_remove()
441 edac_mc_free(mcu->mci); in xgene_edac_mc_remove()
1824 struct xgene_edac_mc_ctx *mcu; in xgene_edac_isr() local
1826 list_for_each_entry(mcu, &ctx->mcus, next) in xgene_edac_isr()
1827 xgene_edac_mc_check(mcu->mci); in xgene_edac_isr()
1966 struct xgene_edac_mc_ctx *mcu; in xgene_edac_remove() local
1973 list_for_each_entry_safe(mcu, temp_mcu, &edac->mcus, next) in xgene_edac_remove()
1974 xgene_edac_mc_remove(mcu); in xgene_edac_remove()
/drivers/net/wireless/mediatek/mt76/mt76x0/
Dusb.c180 usb->mcu.data = devm_kmalloc(dev->mt76.dev, MCU_RESP_URB_SIZE, in mt76x0u_register_device()
182 if (!usb->mcu.data) in mt76x0u_register_device()
/drivers/dma/
Dimx-sdma.c673 unsigned long evt, mcu, dsp; in sdma_config_ownership() local
679 mcu = readl_relaxed(sdma->regs + SDMA_H_HOSTOVR); in sdma_config_ownership()
693 __clear_bit(channel, &mcu); in sdma_config_ownership()
695 __set_bit(channel, &mcu); in sdma_config_ownership()
698 writel_relaxed(mcu, sdma->regs + SDMA_H_HOSTOVR); in sdma_config_ownership()

12