Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/arch/powerpc/platforms/83xx/
Dmcu_mpc8349emitx.c34 struct mcu { struct
41 static struct mcu *glob_mcu; argument
47 struct mcu *mcu = glob_mcu; in shutdown_thread_fn() local
50 ret = i2c_smbus_read_byte_data(mcu->client, MCU_REG_CTRL); in shutdown_thread_fn()
53 mcu->reg_ctrl = ret; in shutdown_thread_fn()
56 if (mcu->reg_ctrl & MCU_CTRL_BTN) { in shutdown_thread_fn()
57 i2c_smbus_write_byte_data(mcu->client, MCU_REG_CTRL, in shutdown_thread_fn()
58 mcu->reg_ctrl & ~MCU_CTRL_BTN); in shutdown_thread_fn()
74 struct mcu *mcu = glob_mcu; in show_status() local
76 ret = i2c_smbus_read_byte_data(mcu->client, MCU_REG_CTRL); in show_status()
[all …]
/kernel/linux/linux-5.10/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()
Dmt76x02_mcu.c30 mutex_lock(&mdev->mcu.mutex); in mt76x02_mcu_msg_send()
32 seq = ++mdev->mcu.msg_seq & 0xf; in mt76x02_mcu_msg_send()
34 seq = ++mdev->mcu.msg_seq & 0xf; in mt76x02_mcu_msg_send()
71 mutex_unlock(&mdev->mcu.mutex); in mt76x02_mcu_msg_send()
147 while ((skb = skb_dequeue(&dev->mt76.mcu.res_q)) != NULL) in mt76x02_mcu_cleanup()
/kernel/linux/linux-5.10/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>;
/kernel/linux/linux-5.10/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 \
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/fsl/
Dmcu-mpc8349emitx.txt4 - compatible : "fsl,<mcu-chip>-<board>", "fsl,mcu-mpc8349emitx".
11 mcu@a {
14 "fsl,mcu-mpc8349emitx";
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/perf/
Dxgene_pmu.c357 XGENE_PMU_EVENT_ATTR(mcu-request, 0x12),
358 XGENE_PMU_EVENT_ATTR(mcu-rd-request, 0x13),
359 XGENE_PMU_EVENT_ATTR(mcu-hp-rd-request, 0x14),
360 XGENE_PMU_EVENT_ATTR(mcu-wr-request, 0x15),
361 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-all, 0x16),
362 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-cancel, 0x17),
363 XGENE_PMU_EVENT_ATTR(mcu-rd-response, 0x18),
364 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-all, 0x19),
365 XGENE_PMU_EVENT_ATTR(mcu-rd-proceed-speculative-cancel, 0x1a),
366 XGENE_PMU_EVENT_ATTR(mcu-wr-proceed-all, 0x1b),
[all …]
/kernel/linux/linux-5.10/arch/arm64/boot/dts/ti/
Dk3-am654-industrial-thermal.dtsi33 mcu_thermal: mcu-thermal {
39 mcu_crit: mcu-crit {
Dk3-j721e-som-p0.dtsi81 mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default {
121 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
126 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
Dk3-am654-base-board.dts80 mcu_fss0_ospi0_pins_default: mcu-fss0-ospi0-pins-default {
102 mcu_cpsw_pins_default: mcu-cpsw-pins-default {
119 mcu_mdio_pins_default: mcu-mdio1-pins-default {
389 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 {
398 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 {
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/hwmon/
Dnsa320-mcu.txt5 - compatible : "zyxel,nsa320-mcu"
13 compatible = "zyxel,nsa320-mcu";
/kernel/linux/linux-5.10/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 {
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dusb_mcu.c23 mutex_lock(&mdev->mcu.mutex); in mt7663u_mcu_send_message()
47 mutex_unlock(&mdev->mcu.mutex); in mt7663u_mcu_send_message()
Dsdio_mcu.c49 mutex_lock(&mdev->mcu.mutex); in mt7663s_mcu_send_message()
61 mutex_unlock(&mdev->mcu.mutex); in mt7663s_mcu_send_message()
DMakefile11 mt7615-common-y := main.o init.o mcu.o eeprom.o mac.o \
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7603/
Dmcu.c25 seq = ++mdev->mcu.msg_seq & 0xf; in __mt7603_mcu_msg_send()
27 seq = ++mdev->mcu.msg_seq & 0xf; in __mt7603_mcu_msg_send()
69 mutex_lock(&mdev->mcu.mutex); in mt7603_mcu_msg_send()
99 mutex_unlock(&mdev->mcu.mutex); in mt7603_mcu_msg_send()
280 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7603_mcu_exit()
DMakefile5 pci.o soc.o main.o init.o mcu.o \
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/
Dmediatek,musb.txt18 - clock-names : must contain "main", "mcu", "univpll"
48 clock-names = "main","mcu","univpll";
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
DMakefile5 mt7915e-y := pci.o init.o dma.o eeprom.o main.o mcu.o mac.o \
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
DMakefile7 eeprom.o mac.o init.o phy.o mcu.o

123