Lines Matching full:mcu
26 WARN_ON_ONCE(len / 8 != usb->mcu.rp_len); in mt76x02u_multiple_mcu_reads()
28 for (i = 0; i < usb->mcu.rp_len; i++) { in mt76x02u_multiple_mcu_reads()
29 u32 reg = get_unaligned_le32(data + 8 * i) - usb->mcu.base; in mt76x02u_multiple_mcu_reads()
32 WARN_ON_ONCE(usb->mcu.rp[i].reg != reg); in mt76x02u_multiple_mcu_reads()
33 usb->mcu.rp[i].value = val; in mt76x02u_multiple_mcu_reads()
40 u8 *data = usb->mcu.data; in mt76x02u_mcu_wait_resp()
52 if (usb->mcu.rp) in mt76x02u_mcu_wait_resp()
60 dev_err(dev->dev, "error: MCU resp evt:%lx seq:%hhx-%lx\n", in mt76x02u_mcu_wait_resp()
83 seq = ++dev->mcu.msg_seq & 0xf; in __mt76x02u_mcu_send_msg()
85 seq = ++dev->mcu.msg_seq & 0xf; in __mt76x02u_mcu_send_msg()
120 mutex_lock(&dev->mcu.mutex); in mt76x02u_mcu_send_msg()
122 mutex_unlock(&dev->mcu.mutex); in mt76x02u_mcu_send_msg()
156 mutex_lock(&dev->mcu.mutex); in mt76x02u_mcu_wr_rp()
158 mutex_unlock(&dev->mcu.mutex); in mt76x02u_mcu_wr_rp()
192 mutex_lock(&dev->mcu.mutex); in mt76x02u_mcu_rd_rp()
194 usb->mcu.rp = data; in mt76x02u_mcu_rd_rp()
195 usb->mcu.rp_len = n; in mt76x02u_mcu_rd_rp()
196 usb->mcu.base = base; in mt76x02u_mcu_rd_rp()
200 usb->mcu.rp = NULL; in mt76x02u_mcu_rd_rp()
202 mutex_unlock(&dev->mcu.mutex); in mt76x02u_mcu_rd_rp()