Lines Matching +full:com +full:- +full:seq

1 // SPDX-License-Identifier: ISC
3 * Copyright (C) 2019 Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
12 const struct mt76_mcu_ops *ops = dev->mcu_ops; in __mt76_mcu_msg_alloc()
16 len = ops->headroom + len + ops->tailroom; in __mt76_mcu_msg_alloc()
22 memset(skb->head, 0, len); in __mt76_mcu_msg_alloc()
23 skb_reserve(skb, ops->headroom); in __mt76_mcu_msg_alloc()
40 timeout = expires - jiffies; in mt76_mcu_get_response()
41 wait_event_timeout(dev->mcu.wait, in mt76_mcu_get_response()
42 (!skb_queue_empty(&dev->mcu.res_q) || in mt76_mcu_get_response()
43 test_bit(MT76_MCU_RESET, &dev->phy.state)), in mt76_mcu_get_response()
45 return skb_dequeue(&dev->mcu.res_q); in mt76_mcu_get_response()
51 skb_queue_tail(&dev->mcu.res_q, skb); in mt76_mcu_rx_event()
52 wake_up(&dev->mcu.wait); in mt76_mcu_rx_event()
61 if (dev->mcu_ops->mcu_send_msg) in mt76_mcu_send_and_get_msg()
62 return dev->mcu_ops->mcu_send_msg(dev, cmd, data, len, wait_resp); in mt76_mcu_send_and_get_msg()
66 return -ENOMEM; in mt76_mcu_send_and_get_msg()
77 int ret, seq; in mt76_mcu_skb_send_and_get_msg() local
82 mutex_lock(&dev->mcu.mutex); in mt76_mcu_skb_send_and_get_msg()
84 ret = dev->mcu_ops->mcu_skb_send_msg(dev, skb, cmd, &seq); in mt76_mcu_skb_send_and_get_msg()
93 expires = jiffies + dev->mcu.timeout; in mt76_mcu_skb_send_and_get_msg()
97 ret = dev->mcu_ops->mcu_parse_response(dev, cmd, skb, seq); in mt76_mcu_skb_send_and_get_msg()
102 } while (ret == -EAGAIN); in mt76_mcu_skb_send_and_get_msg()
105 mutex_unlock(&dev->mcu.mutex); in mt76_mcu_skb_send_and_get_msg()
128 len -= cur_len; in __mt76_mcu_send_firmware()
130 if (dev->queue_ops->tx_cleanup) in __mt76_mcu_send_firmware()
131 dev->queue_ops->tx_cleanup(dev, in __mt76_mcu_send_firmware()
132 dev->q_mcu[MT_MCUQ_FWDL], in __mt76_mcu_send_firmware()