Home
last modified time | relevance | path

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

12

/Linux-v4.19/arch/powerpc/platforms/83xx/
Dmcu_mpc8349emitx.c38 struct mcu { struct
45 static struct mcu *glob_mcu; argument
51 struct mcu *mcu = glob_mcu; in shutdown_thread_fn() local
54 ret = i2c_smbus_read_byte_data(mcu->client, MCU_REG_CTRL); in shutdown_thread_fn()
57 mcu->reg_ctrl = ret; in shutdown_thread_fn()
60 if (mcu->reg_ctrl & MCU_CTRL_BTN) { in shutdown_thread_fn()
61 i2c_smbus_write_byte_data(mcu->client, MCU_REG_CTRL, in shutdown_thread_fn()
62 mcu->reg_ctrl & ~MCU_CTRL_BTN); in shutdown_thread_fn()
78 struct mcu *mcu = glob_mcu; in show_status() local
80 ret = i2c_smbus_read_byte_data(mcu->client, MCU_REG_CTRL); in show_status()
[all …]
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/
Dmcu.c80 int n = dev->mcu.reg_pairs_len; in mt76x0_read_resp_regs()
81 u8 *buf = dev->mcu.resp.buf; in mt76x0_read_resp_regs()
86 if (dev->mcu.burst_read) { in mt76x0_read_resp_regs()
87 u32 reg = dev->mcu.reg_pairs[0].reg - dev->mcu.reg_base; in mt76x0_read_resp_regs()
93 dev->mcu.reg_pairs[i].reg = reg++; in mt76x0_read_resp_regs()
94 dev->mcu.reg_pairs[i].value = val; in mt76x0_read_resp_regs()
99 u32 reg = get_unaligned_le32(buf + 8*i) - dev->mcu.reg_base; in mt76x0_read_resp_regs()
102 WARN_ON_ONCE(dev->mcu.reg_pairs[i].reg != reg); in mt76x0_read_resp_regs()
103 dev->mcu.reg_pairs[i].value = val; in mt76x0_read_resp_regs()
110 struct urb *urb = dev->mcu.resp.urb; in mt76x0_mcu_wait_resp()
[all …]
DMakefile4 usb.o init.o main.o mcu.o trace.o dma.o eeprom.o phy.o \
Dmt76x0.h165 struct mt76x0_mcu mcu; member
/Linux-v4.19/Documentation/devicetree/bindings/iio/
Dsensorhub.txt10 - ap-mcu-gpios: [out] ap to sensorhub line - used during communication
11 - mcu-ap-gpios: [in] sensorhub to ap - used during communication
12 - mcu-reset-gpios: [out] sensorhub reset
21 ap-mcu-gpios = <&gpx0 0 0>;
22 mcu-ap-gpios = <&gpx0 4 0>;
23 mcu-reset-gpios = <&gpx0 5 0>;
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/
Dusb_mcu.c55 struct mt76u_buf *buf = &usb->mcu.res; in mt76u_mcu_wait_resp()
60 if (!wait_for_completion_timeout(&usb->mcu.cmpl, in mt76u_mcu_wait_resp()
72 &usb->mcu.cmpl); in mt76u_mcu_wait_resp()
102 mutex_lock(&usb->mcu.mutex); in mt76u_mcu_send_msg()
106 seq = ++usb->mcu.msg_seq & 0xf; in mt76u_mcu_send_msg()
108 seq = ++usb->mcu.msg_seq & 0xf; in mt76u_mcu_send_msg()
126 mutex_unlock(&usb->mcu.mutex); in mt76u_mcu_send_msg()
227 err = mt76u_buf_alloc(dev, &usb->mcu.res, 1, in mt76u_mcu_init_rx()
234 &usb->mcu.res, GFP_KERNEL, in mt76u_mcu_init_rx()
236 &usb->mcu.cmpl); in mt76u_mcu_init_rx()
[all …]
Dmt76x2_mcu.c47 wait_event_timeout(dev->mcu.wait, !skb_queue_empty(&dev->mcu.res_q), in mt76x2_mcu_get_response()
49 return skb_dequeue(&dev->mcu.res_q); in mt76x2_mcu_get_response()
63 mutex_lock(&dev->mcu.mutex); in mt76x2_mcu_msg_send()
65 seq = ++dev->mcu.msg_seq & 0xf; in mt76x2_mcu_msg_send()
67 seq = ++dev->mcu.msg_seq & 0xf; in mt76x2_mcu_msg_send()
97 mutex_unlock(&dev->mcu.mutex); in mt76x2_mcu_msg_send()
402 mutex_init(&dev->mcu.mutex); in mt76x2_mcu_init()
423 while ((skb = skb_dequeue(&dev->mcu.res_q)) != NULL) in mt76x2_mcu_cleanup()
Dmt76x2_usb.c92 usb_kill_urb(usb->mcu.res.urb); in mt76x2u_suspend()
103 reinit_completion(&usb->mcu.cmpl); in mt76x2u_resume()
106 &usb->mcu.res, GFP_KERNEL, in mt76x2u_resume()
108 &usb->mcu.cmpl); in mt76x2u_resume()
Dmt76x2_dma.c121 init_waitqueue_head(&dev->mcu.wait); in mt76x2_dma_init()
122 skb_queue_head_init(&dev->mcu.res_q); in mt76x2_dma_init()
Dmt76x2_common.c337 skb_queue_tail(&dev->mcu.res_q, skb); in mt76x2_queue_rx_skb()
338 wake_up(&dev->mcu.wait); in mt76x2_queue_rx_skb()
Dmt76x2u_mcu.c461 usb_kill_urb(usb->mcu.res.urb); in mt76x2u_mcu_deinit()
462 mt76u_buf_free(&usb->mcu.res); in mt76x2u_mcu_deinit()
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/
Dmcu.c78 struct urb *urb = dev->mcu.resp.urb; in mt7601u_mcu_wait_resp()
83 if (!wait_for_completion_timeout(&dev->mcu.resp_cmpl, in mt7601u_mcu_wait_resp()
90 rxfce = get_unaligned_le32(dev->mcu.resp.buf); in mt7601u_mcu_wait_resp()
94 &dev->mcu.resp, GFP_KERNEL, in mt7601u_mcu_wait_resp()
96 &dev->mcu.resp_cmpl); in mt7601u_mcu_wait_resp()
130 mutex_lock(&dev->mcu.mutex); in mt7601u_mcu_msg_send()
134 seq = ++dev->mcu.msg_seq & 0xf; in mt7601u_mcu_msg_send()
138 if (dev->mcu.resp_cmpl.done) in mt7601u_mcu_msg_send()
154 mutex_unlock(&dev->mcu.mutex); in mt7601u_mcu_msg_send()
501 mutex_init(&dev->mcu.mutex); in mt7601u_mcu_init()
[all …]
DMakefile4 usb.o init.o main.o mcu.o trace.o dma.o core.o eeprom.o phy.o \
/Linux-v4.19/Documentation/devicetree/bindings/powerpc/fsl/
Dmcu-mpc8349emitx.txt4 - compatible : "fsl,<mcu-chip>-<board>", "fsl,mcu-mpc8349emitx".
11 mcu@a {
14 "fsl,mcu-mpc8349emitx";
/Linux-v4.19/drivers/perf/
Dxgene_pmu.c366 XGENE_PMU_EVENT_ATTR(mcu-request, 0x12),
367 XGENE_PMU_EVENT_ATTR(mcu-rd-request, 0x13),
368 XGENE_PMU_EVENT_ATTR(mcu-hp-rd-request, 0x14),
369 XGENE_PMU_EVENT_ATTR(mcu-wr-request, 0x15),
370 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-all, 0x16),
371 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-cancel, 0x17),
372 XGENE_PMU_EVENT_ATTR(mcu-rd-response, 0x18),
373 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-all, 0x19),
374 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-cancel, 0x1a),
375 XGENE_PMU_EVENT_ATTR(mcu-wr-proceed-all, 0x1b),
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/hwmon/
Dnsa320-mcu.txt5 - compatible : "zyxel,nsa320-mcu"
13 compatible = "zyxel,nsa320-mcu";
/Linux-v4.19/arch/arm/boot/dts/
Dkirkwood-nsa320.dts52 pmx_mcu_data: pmx-mcu-data {
62 pmx_mcu_clk: pmx-mcu-clk {
67 pmx_mcu_act: pmx-mcu-act {
184 compatible = "zyxel,nsa320-mcu";
Dkirkwood-nsa325.dts42 pmx_mcu_data: pmx-mcu-data {
52 pmx_mcu_clk: pmx-mcu-clk {
57 pmx_mcu_act: pmx-mcu-act {
Dvf610-zii-cfu1.dts63 reg_vcc_3v3_mcu: regulator-vcc-3v3-mcu {
/Linux-v4.19/drivers/edac/
Dxgene_edac.c449 static int xgene_edac_mc_remove(struct xgene_edac_mc_ctx *mcu) in xgene_edac_mc_remove() argument
451 xgene_edac_mc_irq_ctl(mcu->mci, false); in xgene_edac_mc_remove()
452 edac_mc_del_mc(&mcu->mci->dev); in xgene_edac_mc_remove()
453 edac_mc_free(mcu->mci); in xgene_edac_mc_remove()
1839 struct xgene_edac_mc_ctx *mcu; in xgene_edac_isr() local
1841 list_for_each_entry(mcu, &ctx->mcus, next) in xgene_edac_isr()
1842 xgene_edac_mc_check(mcu->mci); in xgene_edac_isr()
1981 struct xgene_edac_mc_ctx *mcu; in xgene_edac_remove() local
1988 list_for_each_entry_safe(mcu, temp_mcu, &edac->mcus, next) in xgene_edac_remove()
1989 xgene_edac_mc_remove(mcu); in xgene_edac_remove()
/Linux-v4.19/arch/powerpc/boot/dts/
Dmpc8349emitx.dts137 mcu_pio: mcu@a {
140 "fsl,mcu-mpc8349emitx";
Dmpc8379_rdb.dts160 mcu_pio: mcu@a {
163 "fsl,mcu-mpc8349emitx";
Dmpc8377_rdb.dts162 mcu_pio: mcu@a {
165 "fsl,mcu-mpc8349emitx";
Dmpc8315erdb.dts126 mcu_pio: mcu@a {
129 "fsl,mcu-mpc8349emitx";
Dmpc8378_rdb.dts162 mcu_pio: mcu@a {
165 "fsl,mcu-mpc8349emitx";

12