Lines Matching refs:mcu
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()
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()
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()