Lines Matching full:mcu
16 #include "mcu.h"
70 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()
93 dev_err(dev->dev, "Error: MCU resp urb failed:%d\n", in mt7601u_mcu_wait_resp()
100 dev_err(dev->dev, "Error: MCU resp evt:%lx seq:%hhx-%lx!\n", 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()
133 dev_err(dev->dev, "Error: MCU response pre-completed!\n"); in mt7601u_mcu_msg_send()
139 dev_err(dev->dev, "Error: send MCU cmd failed:%d\n", ret); in mt7601u_mcu_msg_send()
148 mutex_unlock(&dev->mcu.mutex); in mt7601u_mcu_msg_send()
183 dev_warn(dev->dev, "Warning: MCU TSSI read kick failed\n"); in mt7601u_mcu_tssi_read_kick()
495 mutex_init(&dev->mcu.mutex); in mt7601u_mcu_init()
514 init_completion(&dev->mcu.resp_cmpl); in mt7601u_mcu_cmd_init()
515 if (mt7601u_usb_alloc_buf(dev, MCU_RESP_URB_SIZE, &dev->mcu.resp)) { in mt7601u_mcu_cmd_init()
516 mt7601u_usb_free_buf(dev, &dev->mcu.resp); in mt7601u_mcu_cmd_init()
521 &dev->mcu.resp, GFP_KERNEL, in mt7601u_mcu_cmd_init()
522 mt7601u_complete_urb, &dev->mcu.resp_cmpl); in mt7601u_mcu_cmd_init()
524 mt7601u_usb_free_buf(dev, &dev->mcu.resp); in mt7601u_mcu_cmd_init()
533 usb_kill_urb(dev->mcu.resp.urb); in mt7601u_mcu_cmd_deinit()
534 mt7601u_usb_free_buf(dev, &dev->mcu.resp); in mt7601u_mcu_cmd_deinit()