Lines Matching refs:ptlv
254 struct tlv *ptlv, tlv = { in mt76_connac_mcu_add_nested_tlv() local
260 ptlv = skb_put_zero(skb, len); in mt76_connac_mcu_add_nested_tlv()
261 memcpy(ptlv, &tlv, sizeof(tlv)); in mt76_connac_mcu_add_nested_tlv()
271 return ptlv; in mt76_connac_mcu_add_nested_tlv()
2449 struct mt76_connac_wow_pattern_tlv *ptlv; in mt76_connac_mcu_set_wow_pattern() local
2458 skb = mt76_mcu_msg_alloc(dev, NULL, sizeof(hdr) + sizeof(*ptlv)); in mt76_connac_mcu_set_wow_pattern()
2463 ptlv = (struct mt76_connac_wow_pattern_tlv *)skb_put_zero(skb, sizeof(*ptlv)); in mt76_connac_mcu_set_wow_pattern()
2464 ptlv->tag = cpu_to_le16(UNI_SUSPEND_WOW_PATTERN); in mt76_connac_mcu_set_wow_pattern()
2465 ptlv->len = cpu_to_le16(sizeof(*ptlv)); in mt76_connac_mcu_set_wow_pattern()
2466 ptlv->data_len = pattern->pattern_len; in mt76_connac_mcu_set_wow_pattern()
2467 ptlv->enable = enable; in mt76_connac_mcu_set_wow_pattern()
2468 ptlv->index = index; in mt76_connac_mcu_set_wow_pattern()
2470 memcpy(ptlv->pattern, pattern->pattern, pattern->pattern_len); in mt76_connac_mcu_set_wow_pattern()
2471 memcpy(ptlv->mask, pattern->mask, DIV_ROUND_UP(pattern->pattern_len, 8)); in mt76_connac_mcu_set_wow_pattern()