Lines Matching refs:tlv
76 const struct wmi_tlv *tlv; in ath10k_wmi_tlv_iter() local
81 if (len < sizeof(*tlv)) { in ath10k_wmi_tlv_iter()
84 ptr - begin, len, sizeof(*tlv)); in ath10k_wmi_tlv_iter()
88 tlv = ptr; in ath10k_wmi_tlv_iter()
89 tlv_tag = __le16_to_cpu(tlv->tag); in ath10k_wmi_tlv_iter()
90 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_tlv_iter()
91 ptr += sizeof(*tlv); in ath10k_wmi_tlv_iter()
92 len -= sizeof(*tlv); in ath10k_wmi_tlv_iter()
1554 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_suspend() local
1557 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_suspend()
1561 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_pdev_suspend()
1562 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_SUSPEND_CMD); in ath10k_wmi_tlv_op_gen_pdev_suspend()
1563 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_suspend()
1564 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_pdev_suspend()
1575 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_resume() local
1578 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_resume()
1582 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_pdev_resume()
1583 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_RESUME_CMD); in ath10k_wmi_tlv_op_gen_pdev_resume()
1584 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_resume()
1585 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_pdev_resume()
1599 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_set_rd() local
1602 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_set_rd()
1606 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_pdev_set_rd()
1607 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_SET_REGDOMAIN_CMD); in ath10k_wmi_tlv_op_gen_pdev_set_rd()
1608 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_set_rd()
1609 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_pdev_set_rd()
1630 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_set_param() local
1633 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_set_param()
1637 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_pdev_set_param()
1638 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_SET_PARAM_CMD); in ath10k_wmi_tlv_op_gen_pdev_set_param()
1639 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_set_param()
1640 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_pdev_set_param()
1653 struct wmi_tlv *tlv; in ath10k_wmi_tlv_put_host_mem_chunks() local
1660 tlv = host_mem_chunks; in ath10k_wmi_tlv_put_host_mem_chunks()
1661 tlv->tag = tlv_tag; in ath10k_wmi_tlv_put_host_mem_chunks()
1662 tlv->len = tlv_len; in ath10k_wmi_tlv_put_host_mem_chunks()
1663 chunk = (void *)tlv->value; in ath10k_wmi_tlv_put_host_mem_chunks()
1676 host_mem_chunks += sizeof(*tlv); in ath10k_wmi_tlv_put_host_mem_chunks()
1684 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_init() local
1692 (sizeof(struct host_memory_chunk) + sizeof(*tlv)); in ath10k_wmi_tlv_op_gen_init()
1693 len = (sizeof(*tlv) + sizeof(*cmd)) + in ath10k_wmi_tlv_op_gen_init()
1694 (sizeof(*tlv) + sizeof(*cfg)) + in ath10k_wmi_tlv_op_gen_init()
1695 (sizeof(*tlv) + chunks_len); in ath10k_wmi_tlv_op_gen_init()
1703 tlv = ptr; in ath10k_wmi_tlv_op_gen_init()
1704 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_INIT_CMD); in ath10k_wmi_tlv_op_gen_init()
1705 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_init()
1706 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_init()
1707 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_init()
1710 tlv = ptr; in ath10k_wmi_tlv_op_gen_init()
1711 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_RESOURCE_CONFIG); in ath10k_wmi_tlv_op_gen_init()
1712 tlv->len = __cpu_to_le16(sizeof(*cfg)); in ath10k_wmi_tlv_op_gen_init()
1713 cfg = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_init()
1714 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_init()
1717 tlv = ptr; in ath10k_wmi_tlv_op_gen_init()
1718 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_init()
1719 tlv->len = __cpu_to_le16(chunks_len); in ath10k_wmi_tlv_op_gen_init()
1720 chunks = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_init()
1722 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_init()
1806 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_start_scan() local
1823 len = (sizeof(*tlv) + sizeof(*cmd)) + in ath10k_wmi_tlv_op_gen_start_scan()
1824 sizeof(*tlv) + chan_len + in ath10k_wmi_tlv_op_gen_start_scan()
1825 sizeof(*tlv) + ssid_len + in ath10k_wmi_tlv_op_gen_start_scan()
1826 sizeof(*tlv) + bssid_len + in ath10k_wmi_tlv_op_gen_start_scan()
1827 sizeof(*tlv) + ie_len; in ath10k_wmi_tlv_op_gen_start_scan()
1834 tlv = ptr; in ath10k_wmi_tlv_op_gen_start_scan()
1835 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_START_SCAN_CMD); in ath10k_wmi_tlv_op_gen_start_scan()
1836 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_start_scan()
1837 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_start_scan()
1854 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_start_scan()
1857 tlv = ptr; in ath10k_wmi_tlv_op_gen_start_scan()
1858 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_UINT32); in ath10k_wmi_tlv_op_gen_start_scan()
1859 tlv->len = __cpu_to_le16(chan_len); in ath10k_wmi_tlv_op_gen_start_scan()
1860 chans = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_start_scan()
1864 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_start_scan()
1867 tlv = ptr; in ath10k_wmi_tlv_op_gen_start_scan()
1868 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_FIXED_STRUCT); in ath10k_wmi_tlv_op_gen_start_scan()
1869 tlv->len = __cpu_to_le16(ssid_len); in ath10k_wmi_tlv_op_gen_start_scan()
1870 ssids = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_start_scan()
1876 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_start_scan()
1879 tlv = ptr; in ath10k_wmi_tlv_op_gen_start_scan()
1880 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_FIXED_STRUCT); in ath10k_wmi_tlv_op_gen_start_scan()
1881 tlv->len = __cpu_to_le16(bssid_len); in ath10k_wmi_tlv_op_gen_start_scan()
1882 addrs = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_start_scan()
1886 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_start_scan()
1889 tlv = ptr; in ath10k_wmi_tlv_op_gen_start_scan()
1890 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); in ath10k_wmi_tlv_op_gen_start_scan()
1891 tlv->len = __cpu_to_le16(ie_len); in ath10k_wmi_tlv_op_gen_start_scan()
1892 memcpy(tlv->value, arg->ie, arg->ie_len); in ath10k_wmi_tlv_op_gen_start_scan()
1894 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_start_scan()
1906 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_stop_scan() local
1916 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_stop_scan()
1926 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_stop_scan()
1927 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STOP_SCAN_CMD); in ath10k_wmi_tlv_op_gen_stop_scan()
1928 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_stop_scan()
1929 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_stop_scan()
1969 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_create() local
1972 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_create()
1976 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_vdev_create()
1977 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_CREATE_CMD); in ath10k_wmi_tlv_op_gen_vdev_create()
1978 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_create()
1979 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_create()
1993 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_delete() local
1996 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_delete()
2000 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_vdev_delete()
2001 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_DELETE_CMD); in ath10k_wmi_tlv_op_gen_vdev_delete()
2002 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_delete()
2003 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_delete()
2017 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_start() local
2028 len = (sizeof(*tlv) + sizeof(*cmd)) + in ath10k_wmi_tlv_op_gen_vdev_start()
2029 (sizeof(*tlv) + sizeof(*ch)) + in ath10k_wmi_tlv_op_gen_vdev_start()
2030 (sizeof(*tlv) + 0); in ath10k_wmi_tlv_op_gen_vdev_start()
2042 tlv = ptr; in ath10k_wmi_tlv_op_gen_vdev_start()
2043 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_START_REQUEST_CMD); in ath10k_wmi_tlv_op_gen_vdev_start()
2044 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_start()
2045 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_start()
2059 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_vdev_start()
2062 tlv = ptr; in ath10k_wmi_tlv_op_gen_vdev_start()
2063 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_CHANNEL); in ath10k_wmi_tlv_op_gen_vdev_start()
2064 tlv->len = __cpu_to_le16(sizeof(*ch)); in ath10k_wmi_tlv_op_gen_vdev_start()
2065 ch = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_start()
2068 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_vdev_start()
2071 tlv = ptr; in ath10k_wmi_tlv_op_gen_vdev_start()
2072 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_vdev_start()
2073 tlv->len = 0; in ath10k_wmi_tlv_op_gen_vdev_start()
2079 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_vdev_start()
2090 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_stop() local
2093 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_stop()
2097 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_vdev_stop()
2098 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_STOP_CMD); in ath10k_wmi_tlv_op_gen_vdev_stop()
2099 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_stop()
2100 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_stop()
2113 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_up() local
2116 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_up()
2120 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_vdev_up()
2121 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_UP_CMD); in ath10k_wmi_tlv_op_gen_vdev_up()
2122 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_up()
2123 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_up()
2136 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_down() local
2139 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_down()
2143 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_vdev_down()
2144 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_DOWN_CMD); in ath10k_wmi_tlv_op_gen_vdev_down()
2145 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_down()
2146 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_down()
2158 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_set_param() local
2161 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_set_param()
2165 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_vdev_set_param()
2166 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_SET_PARAM_CMD); in ath10k_wmi_tlv_op_gen_vdev_set_param()
2167 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_set_param()
2168 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_set_param()
2183 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_install_key() local
2195 len = sizeof(*tlv) + sizeof(*cmd) + in ath10k_wmi_tlv_op_gen_vdev_install_key()
2196 sizeof(*tlv) + roundup(arg->key_len, sizeof(__le32)); in ath10k_wmi_tlv_op_gen_vdev_install_key()
2202 tlv = ptr; in ath10k_wmi_tlv_op_gen_vdev_install_key()
2203 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_CMD); in ath10k_wmi_tlv_op_gen_vdev_install_key()
2204 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_install_key()
2205 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_install_key()
2217 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_vdev_install_key()
2220 tlv = ptr; in ath10k_wmi_tlv_op_gen_vdev_install_key()
2221 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); in ath10k_wmi_tlv_op_gen_vdev_install_key()
2222 tlv->len = __cpu_to_le16(roundup(arg->key_len, sizeof(__le32))); in ath10k_wmi_tlv_op_gen_vdev_install_key()
2224 memcpy(tlv->value, arg->key_data, arg->key_len); in ath10k_wmi_tlv_op_gen_vdev_install_key()
2226 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_vdev_install_key()
2237 struct wmi_tlv *tlv; in ath10k_wmi_tlv_put_uapsd_ac() local
2239 tlv = ptr; in ath10k_wmi_tlv_put_uapsd_ac()
2240 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_UAPSD_AUTO_TRIG_PARAM); in ath10k_wmi_tlv_put_uapsd_ac()
2241 tlv->len = __cpu_to_le16(sizeof(*ac)); in ath10k_wmi_tlv_put_uapsd_ac()
2242 ac = (void *)tlv->value; in ath10k_wmi_tlv_put_uapsd_ac()
2255 return ptr + sizeof(*tlv) + sizeof(*ac); in ath10k_wmi_tlv_put_uapsd_ac()
2266 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd() local
2273 ac_tlv_len = num_ac * (sizeof(*tlv) + sizeof(*ac)); in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2274 len = sizeof(*tlv) + sizeof(*cmd) + in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2275 sizeof(*tlv) + ac_tlv_len; in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2281 tlv = ptr; in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2282 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_UAPSD_AUTO_TRIG_CMD); in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2283 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2284 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2289 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2292 tlv = ptr; in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2293 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2294 tlv->len = __cpu_to_le16(ac_tlv_len); in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2295 ac = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2297 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_vdev_sta_uapsd()
2309 struct wmi_tlv *tlv; in ath10k_wmi_tlv_put_wmm() local
2311 tlv = ptr; in ath10k_wmi_tlv_put_wmm()
2312 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_WMM_PARAMS); in ath10k_wmi_tlv_put_wmm()
2313 tlv->len = __cpu_to_le16(sizeof(*wmm)); in ath10k_wmi_tlv_put_wmm()
2314 wmm = (void *)tlv->value; in ath10k_wmi_tlv_put_wmm()
2317 return ptr + sizeof(*tlv) + sizeof(*wmm); in ath10k_wmi_tlv_put_wmm()
2325 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_wmm_conf() local
2330 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_vdev_wmm_conf()
2336 tlv = ptr; in ath10k_wmi_tlv_op_gen_vdev_wmm_conf()
2337 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_SET_WMM_PARAMS_CMD); in ath10k_wmi_tlv_op_gen_vdev_wmm_conf()
2338 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_wmm_conf()
2339 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_wmm_conf()
2358 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_sta_keepalive() local
2362 len = sizeof(*tlv) + sizeof(*cmd) + in ath10k_wmi_tlv_op_gen_sta_keepalive()
2363 sizeof(*tlv) + sizeof(*arp); in ath10k_wmi_tlv_op_gen_sta_keepalive()
2369 tlv = ptr; in ath10k_wmi_tlv_op_gen_sta_keepalive()
2370 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_KEEPALIVE_CMD); in ath10k_wmi_tlv_op_gen_sta_keepalive()
2371 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_sta_keepalive()
2372 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_sta_keepalive()
2378 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_sta_keepalive()
2381 tlv = ptr; in ath10k_wmi_tlv_op_gen_sta_keepalive()
2382 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_KEEPALVE_ARP_RESPONSE); in ath10k_wmi_tlv_op_gen_sta_keepalive()
2383 tlv->len = __cpu_to_le16(sizeof(*arp)); in ath10k_wmi_tlv_op_gen_sta_keepalive()
2384 arp = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_sta_keepalive()
2401 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_peer_create() local
2404 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_peer_create()
2408 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_peer_create()
2409 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PEER_CREATE_CMD); in ath10k_wmi_tlv_op_gen_peer_create()
2410 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_peer_create()
2411 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_peer_create()
2425 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_peer_delete() local
2428 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_peer_delete()
2432 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_peer_delete()
2433 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PEER_DELETE_CMD); in ath10k_wmi_tlv_op_gen_peer_delete()
2434 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_peer_delete()
2435 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_peer_delete()
2448 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_peer_flush() local
2451 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_peer_flush()
2455 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_peer_flush()
2456 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PEER_FLUSH_TIDS_CMD); in ath10k_wmi_tlv_op_gen_peer_flush()
2457 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_peer_flush()
2458 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_peer_flush()
2474 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_peer_set_param() local
2477 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_peer_set_param()
2481 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_peer_set_param()
2482 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PEER_SET_PARAM_CMD); in ath10k_wmi_tlv_op_gen_peer_set_param()
2483 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_peer_set_param()
2484 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_peer_set_param()
2502 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_peer_assoc() local
2517 len = (sizeof(*tlv) + sizeof(*cmd)) + in ath10k_wmi_tlv_op_gen_peer_assoc()
2518 (sizeof(*tlv) + legacy_rate_len) + in ath10k_wmi_tlv_op_gen_peer_assoc()
2519 (sizeof(*tlv) + ht_rate_len) + in ath10k_wmi_tlv_op_gen_peer_assoc()
2520 (sizeof(*tlv) + sizeof(*vht_rate)); in ath10k_wmi_tlv_op_gen_peer_assoc()
2526 tlv = ptr; in ath10k_wmi_tlv_op_gen_peer_assoc()
2527 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PEER_ASSOC_COMPLETE_CMD); in ath10k_wmi_tlv_op_gen_peer_assoc()
2528 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_peer_assoc()
2529 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_peer_assoc()
2548 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_peer_assoc()
2551 tlv = ptr; in ath10k_wmi_tlv_op_gen_peer_assoc()
2552 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); in ath10k_wmi_tlv_op_gen_peer_assoc()
2553 tlv->len = __cpu_to_le16(legacy_rate_len); in ath10k_wmi_tlv_op_gen_peer_assoc()
2554 memcpy(tlv->value, arg->peer_legacy_rates.rates, in ath10k_wmi_tlv_op_gen_peer_assoc()
2557 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_peer_assoc()
2560 tlv = ptr; in ath10k_wmi_tlv_op_gen_peer_assoc()
2561 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); in ath10k_wmi_tlv_op_gen_peer_assoc()
2562 tlv->len = __cpu_to_le16(ht_rate_len); in ath10k_wmi_tlv_op_gen_peer_assoc()
2563 memcpy(tlv->value, arg->peer_ht_rates.rates, in ath10k_wmi_tlv_op_gen_peer_assoc()
2566 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_peer_assoc()
2569 tlv = ptr; in ath10k_wmi_tlv_op_gen_peer_assoc()
2570 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VHT_RATE_SET); in ath10k_wmi_tlv_op_gen_peer_assoc()
2571 tlv->len = __cpu_to_le16(sizeof(*vht_rate)); in ath10k_wmi_tlv_op_gen_peer_assoc()
2572 vht_rate = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_peer_assoc()
2579 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_peer_assoc()
2591 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_set_psmode() local
2594 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_set_psmode()
2598 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_set_psmode()
2599 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_POWERSAVE_MODE_CMD); in ath10k_wmi_tlv_op_gen_set_psmode()
2600 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_set_psmode()
2601 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_set_psmode()
2615 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_set_sta_ps() local
2618 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_set_sta_ps()
2622 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_set_sta_ps()
2623 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_STA_POWERSAVE_PARAM_CMD); in ath10k_wmi_tlv_op_gen_set_sta_ps()
2624 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_set_sta_ps()
2625 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_set_sta_ps()
2639 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_set_ap_ps() local
2645 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_set_ap_ps()
2649 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_set_ap_ps()
2650 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_AP_PS_PEER_CMD); in ath10k_wmi_tlv_op_gen_set_ap_ps()
2651 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_set_ap_ps()
2652 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_set_ap_ps()
2669 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_scan_chan_list() local
2675 chans_len = arg->n_channels * (sizeof(*tlv) + sizeof(*ci)); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2676 len = (sizeof(*tlv) + sizeof(*cmd)) + in ath10k_wmi_tlv_op_gen_scan_chan_list()
2677 (sizeof(*tlv) + chans_len); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2684 tlv = ptr; in ath10k_wmi_tlv_op_gen_scan_chan_list()
2685 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_SCAN_CHAN_LIST_CMD); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2686 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2687 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_scan_chan_list()
2690 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2693 tlv = ptr; in ath10k_wmi_tlv_op_gen_scan_chan_list()
2694 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2695 tlv->len = __cpu_to_le16(chans_len); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2696 chans = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_scan_chan_list()
2701 tlv = chans; in ath10k_wmi_tlv_op_gen_scan_chan_list()
2702 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_CHANNEL); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2703 tlv->len = __cpu_to_le16(sizeof(*ci)); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2704 ci = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_scan_chan_list()
2708 chans += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2712 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2723 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_scan_prob_req_oui() local
2726 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_scan_prob_req_oui()
2730 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_scan_prob_req_oui()
2731 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_SCAN_PROB_REQ_OUI_CMD); in ath10k_wmi_tlv_op_gen_scan_prob_req_oui()
2732 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_scan_prob_req_oui()
2733 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_scan_prob_req_oui()
2748 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_beacon_dma() local
2753 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_beacon_dma()
2760 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_beacon_dma()
2761 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_BCN_SEND_FROM_HOST_CMD); in ath10k_wmi_tlv_op_gen_beacon_dma()
2762 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_beacon_dma()
2763 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_beacon_dma()
2787 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_set_wmm() local
2792 len = (sizeof(*tlv) + sizeof(*cmd)) + in ath10k_wmi_tlv_op_gen_pdev_set_wmm()
2793 (4 * (sizeof(*tlv) + sizeof(*wmm))); in ath10k_wmi_tlv_op_gen_pdev_set_wmm()
2800 tlv = ptr; in ath10k_wmi_tlv_op_gen_pdev_set_wmm()
2801 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_SET_WMM_PARAMS_CMD); in ath10k_wmi_tlv_op_gen_pdev_set_wmm()
2802 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_set_wmm()
2803 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_pdev_set_wmm()
2807 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_pdev_set_wmm()
2823 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_request_stats() local
2826 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_request_stats()
2830 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_request_stats()
2831 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_REQUEST_STATS_CMD); in ath10k_wmi_tlv_op_gen_request_stats()
2832 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_request_stats()
2833 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_request_stats()
2873 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_mgmt_tx_send() local
2891 len = sizeof(*cmd) + 2 * sizeof(*tlv); in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
2915 tlv = ptr; in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
2916 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_MGMT_TX_CMD); in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
2917 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
2918 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
2926 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
2929 tlv = ptr; in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
2930 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
2931 tlv->len = __cpu_to_le16(buf_len); in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
2933 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_mgmt_tx_send()
2949 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_force_fw_hang() local
2952 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_force_fw_hang()
2956 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_force_fw_hang()
2957 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_FORCE_FW_HANG_CMD); in ath10k_wmi_tlv_op_gen_force_fw_hang()
2958 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_force_fw_hang()
2959 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_force_fw_hang()
2972 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_dbglog_cfg() local
2989 len = sizeof(*tlv) + sizeof(*cmd) + sizeof(*tlv) + bmap_len; in ath10k_wmi_tlv_op_gen_dbglog_cfg()
2996 tlv = ptr; in ath10k_wmi_tlv_op_gen_dbglog_cfg()
2997 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_DEBUG_LOG_CONFIG_CMD); in ath10k_wmi_tlv_op_gen_dbglog_cfg()
2998 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_dbglog_cfg()
2999 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_dbglog_cfg()
3003 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_dbglog_cfg()
3006 tlv = ptr; in ath10k_wmi_tlv_op_gen_dbglog_cfg()
3007 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_UINT32); in ath10k_wmi_tlv_op_gen_dbglog_cfg()
3008 tlv->len = __cpu_to_le16(bmap_len); in ath10k_wmi_tlv_op_gen_dbglog_cfg()
3012 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_dbglog_cfg()
3023 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pktlog_enable() local
3028 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_pktlog_enable()
3034 tlv = ptr; in ath10k_wmi_tlv_op_gen_pktlog_enable()
3035 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_PKTLOG_ENABLE_CMD); in ath10k_wmi_tlv_op_gen_pktlog_enable()
3036 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pktlog_enable()
3037 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_pktlog_enable()
3040 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_pktlog_enable()
3052 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_get_temperature() local
3055 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_get_temperature()
3059 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_pdev_get_temperature()
3060 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_GET_TEMPERATURE_CMD); in ath10k_wmi_tlv_op_gen_pdev_get_temperature()
3061 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_get_temperature()
3062 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_pdev_get_temperature()
3071 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pktlog_disable() local
3076 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_pktlog_disable()
3082 tlv = ptr; in ath10k_wmi_tlv_op_gen_pktlog_disable()
3083 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_PKTLOG_DISABLE_CMD); in ath10k_wmi_tlv_op_gen_pktlog_disable()
3084 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pktlog_disable()
3085 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_pktlog_disable()
3087 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_pktlog_disable()
3102 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_bcn_tmpl() local
3110 len = sizeof(*tlv) + sizeof(*cmd) + in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3111 sizeof(*tlv) + sizeof(*info) + prb_ies_len + in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3112 sizeof(*tlv) + roundup(bcn->len, 4); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3118 tlv = ptr; in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3119 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_BCN_TMPL_CMD); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3120 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3121 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3126 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3134 tlv = ptr; in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3135 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_BCN_PRB_INFO); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3136 tlv->len = __cpu_to_le16(sizeof(*info) + prb_ies_len); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3137 info = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3142 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3146 tlv = ptr; in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3147 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3148 tlv->len = __cpu_to_le16(roundup(bcn->len, 4)); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3149 memcpy(tlv->value, bcn->data, bcn->len); in ath10k_wmi_tlv_op_gen_bcn_tmpl()
3164 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_prb_tmpl() local
3169 len = sizeof(*tlv) + sizeof(*cmd) + in ath10k_wmi_tlv_op_gen_prb_tmpl()
3170 sizeof(*tlv) + sizeof(*info) + in ath10k_wmi_tlv_op_gen_prb_tmpl()
3171 sizeof(*tlv) + roundup(prb->len, 4); in ath10k_wmi_tlv_op_gen_prb_tmpl()
3177 tlv = ptr; in ath10k_wmi_tlv_op_gen_prb_tmpl()
3178 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PRB_TMPL_CMD); in ath10k_wmi_tlv_op_gen_prb_tmpl()
3179 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_prb_tmpl()
3180 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_prb_tmpl()
3184 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_prb_tmpl()
3187 tlv = ptr; in ath10k_wmi_tlv_op_gen_prb_tmpl()
3188 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_BCN_PRB_INFO); in ath10k_wmi_tlv_op_gen_prb_tmpl()
3189 tlv->len = __cpu_to_le16(sizeof(*info)); in ath10k_wmi_tlv_op_gen_prb_tmpl()
3190 info = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_prb_tmpl()
3194 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_prb_tmpl()
3197 tlv = ptr; in ath10k_wmi_tlv_op_gen_prb_tmpl()
3198 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); in ath10k_wmi_tlv_op_gen_prb_tmpl()
3199 tlv->len = __cpu_to_le16(roundup(prb->len, 4)); in ath10k_wmi_tlv_op_gen_prb_tmpl()
3200 memcpy(tlv->value, prb->data, prb->len); in ath10k_wmi_tlv_op_gen_prb_tmpl()
3212 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie() local
3217 len = sizeof(*tlv) + sizeof(*cmd) + in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3218 sizeof(*tlv) + roundup(p2p_ie[1] + 2, 4); in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3224 tlv = ptr; in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3225 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_P2P_GO_SET_BEACON_IE); in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3226 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3227 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3231 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3234 tlv = ptr; in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3235 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3236 tlv->len = __cpu_to_le16(roundup(p2p_ie[1] + 2, 4)); in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3237 memcpy(tlv->value, p2p_ie, p2p_ie[1] + 2); in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3239 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_p2p_go_bcn_ie()
3252 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_update_fw_tdls_state() local
3270 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_update_fw_tdls_state()
3276 tlv = ptr; in ath10k_wmi_tlv_op_gen_update_fw_tdls_state()
3277 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_TDLS_SET_STATE_CMD); in ath10k_wmi_tlv_op_gen_update_fw_tdls_state()
3278 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_update_fw_tdls_state()
3280 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_update_fw_tdls_state()
3295 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_update_fw_tdls_state()
3330 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_tdls_peer_update() local
3337 len = sizeof(*tlv) + sizeof(*cmd) + in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3338 sizeof(*tlv) + sizeof(*peer_cap) + in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3339 sizeof(*tlv) + cap->peer_chan_len * sizeof(*chan); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3346 tlv = ptr; in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3347 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_TDLS_PEER_UPDATE_CMD); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3348 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3350 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3355 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3358 tlv = ptr; in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3359 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_TDLS_PEER_CAPABILITIES); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3360 tlv->len = __cpu_to_le16(sizeof(*peer_cap)); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3361 peer_cap = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3379 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3382 tlv = ptr; in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3383 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3384 tlv->len = __cpu_to_le16(cap->peer_chan_len * sizeof(*chan)); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3386 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3389 tlv = ptr; in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3390 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_CHANNEL); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3391 tlv->len = __cpu_to_le16(sizeof(*chan)); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3392 chan = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3395 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_tdls_peer_update()
3411 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_pdev_set_quiet_mode() local
3414 skb = ath10k_wmi_alloc_skb(ar, sizeof(*tlv) + sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_set_quiet_mode()
3418 tlv = (void *)skb->data; in ath10k_wmi_tlv_op_gen_pdev_set_quiet_mode()
3419 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_PDEV_SET_QUIET_CMD); in ath10k_wmi_tlv_op_gen_pdev_set_quiet_mode()
3420 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_pdev_set_quiet_mode()
3421 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_pdev_set_quiet_mode()
3440 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_wow_enable() local
3444 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_wow_enable()
3449 tlv = (struct wmi_tlv *)skb->data; in ath10k_wmi_tlv_op_gen_wow_enable()
3450 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_WOW_ENABLE_CMD); in ath10k_wmi_tlv_op_gen_wow_enable()
3451 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_wow_enable()
3452 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_wow_enable()
3469 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_wow_add_wakeup_event() local
3473 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_wow_add_wakeup_event()
3478 tlv = (struct wmi_tlv *)skb->data; in ath10k_wmi_tlv_op_gen_wow_add_wakeup_event()
3479 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_WOW_ADD_DEL_EVT_CMD); in ath10k_wmi_tlv_op_gen_wow_add_wakeup_event()
3480 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_wow_add_wakeup_event()
3481 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_wow_add_wakeup_event()
3496 struct wmi_tlv *tlv; in ath10k_wmi_tlv_gen_wow_host_wakeup_ind() local
3500 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_gen_wow_host_wakeup_ind()
3505 tlv = (struct wmi_tlv *)skb->data; in ath10k_wmi_tlv_gen_wow_host_wakeup_ind()
3506 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_WOW_HOSTWAKEUP_FROM_SLEEP_CMD); in ath10k_wmi_tlv_gen_wow_host_wakeup_ind()
3507 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_gen_wow_host_wakeup_ind()
3508 cmd = (void *)tlv->value; in ath10k_wmi_tlv_gen_wow_host_wakeup_ind()
3522 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_wow_add_pattern() local
3527 len = sizeof(*tlv) + sizeof(*cmd) + in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3528 sizeof(*tlv) + /* array struct */ in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3529 sizeof(*tlv) + sizeof(*bitmap) + /* bitmap */ in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3530 sizeof(*tlv) + /* empty ipv4 sync */ in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3531 sizeof(*tlv) + /* empty ipv6 sync */ in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3532 sizeof(*tlv) + /* empty magic */ in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3533 sizeof(*tlv) + /* empty info timeout */ in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3534 sizeof(*tlv) + sizeof(u32); /* ratelimit interval */ in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3542 tlv = ptr; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3543 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_WOW_ADD_PATTERN_CMD); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3544 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3545 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3551 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3555 tlv = ptr; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3556 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3557 tlv->len = __cpu_to_le16(sizeof(*tlv) + sizeof(*bitmap)); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3559 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3561 tlv = ptr; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3562 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_WOW_BITMAP_PATTERN_T); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3563 tlv->len = __cpu_to_le16(sizeof(*bitmap)); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3564 bitmap = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3573 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3577 tlv = ptr; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3578 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3579 tlv->len = __cpu_to_le16(0); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3581 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3584 tlv = ptr; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3585 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3586 tlv->len = __cpu_to_le16(0); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3588 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3591 tlv = ptr; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3592 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3593 tlv->len = __cpu_to_le16(0); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3595 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3598 tlv = ptr; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3599 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_UINT32); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3600 tlv->len = __cpu_to_le16(0); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3602 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3605 tlv = ptr; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3606 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_UINT32); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3607 tlv->len = __cpu_to_le16(sizeof(u32)); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
3619 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_wow_del_pattern() local
3623 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_wow_del_pattern()
3628 tlv = (struct wmi_tlv *)skb->data; in ath10k_wmi_tlv_op_gen_wow_del_pattern()
3629 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_WOW_DEL_PATTERN_CMD); in ath10k_wmi_tlv_op_gen_wow_del_pattern()
3630 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_wow_del_pattern()
3631 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_wow_del_pattern()
3650 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_config_pno_start() local
3657 len = sizeof(*tlv) + sizeof(*cmd) + in ath10k_wmi_tlv_op_gen_config_pno_start()
3658 sizeof(*tlv) + in ath10k_wmi_tlv_op_gen_config_pno_start()
3662 sizeof(*tlv); in ath10k_wmi_tlv_op_gen_config_pno_start()
3675 tlv = ptr; in ath10k_wmi_tlv_op_gen_config_pno_start()
3676 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_NLO_CONFIG_CMD); in ath10k_wmi_tlv_op_gen_config_pno_start()
3677 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_config_pno_start()
3678 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_config_pno_start()
3704 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_config_pno_start()
3711 tlv = ptr; in ath10k_wmi_tlv_op_gen_config_pno_start()
3712 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_config_pno_start()
3713 tlv->len = __cpu_to_le16(len); in ath10k_wmi_tlv_op_gen_config_pno_start()
3715 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_config_pno_start()
3718 tlv = (struct wmi_tlv *)(&nlo_list[i].tlv_header); in ath10k_wmi_tlv_op_gen_config_pno_start()
3719 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_BYTE); in ath10k_wmi_tlv_op_gen_config_pno_start()
3720 tlv->len = __cpu_to_le16(sizeof(struct nlo_configured_parameters) - in ath10k_wmi_tlv_op_gen_config_pno_start()
3721 sizeof(*tlv)); in ath10k_wmi_tlv_op_gen_config_pno_start()
3750 tlv = ptr; in ath10k_wmi_tlv_op_gen_config_pno_start()
3751 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_UINT32); in ath10k_wmi_tlv_op_gen_config_pno_start()
3752 tlv->len = __cpu_to_le16(__le32_to_cpu(cmd->num_of_channels) * in ath10k_wmi_tlv_op_gen_config_pno_start()
3754 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_config_pno_start()
3771 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_config_pno_stop() local
3776 len = sizeof(*tlv) + sizeof(*cmd) + in ath10k_wmi_tlv_op_gen_config_pno_stop()
3777 sizeof(*tlv) + in ath10k_wmi_tlv_op_gen_config_pno_stop()
3781 sizeof(*tlv); in ath10k_wmi_tlv_op_gen_config_pno_stop()
3788 tlv = ptr; in ath10k_wmi_tlv_op_gen_config_pno_stop()
3789 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_NLO_CONFIG_CMD); in ath10k_wmi_tlv_op_gen_config_pno_stop()
3790 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_config_pno_stop()
3791 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_config_pno_stop()
3796 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_config_pno_stop()
3800 tlv = ptr; in ath10k_wmi_tlv_op_gen_config_pno_stop()
3801 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_STRUCT); in ath10k_wmi_tlv_op_gen_config_pno_stop()
3802 tlv->len = __cpu_to_le16(0); in ath10k_wmi_tlv_op_gen_config_pno_stop()
3804 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_config_pno_stop()
3807 tlv = ptr; in ath10k_wmi_tlv_op_gen_config_pno_stop()
3808 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_ARRAY_UINT32); in ath10k_wmi_tlv_op_gen_config_pno_stop()
3809 tlv->len = __cpu_to_le16(0); in ath10k_wmi_tlv_op_gen_config_pno_stop()
3829 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_adaptive_qcs() local
3834 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_adaptive_qcs()
3840 tlv = ptr; in ath10k_wmi_tlv_op_gen_adaptive_qcs()
3841 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_RESMGR_ADAPTIVE_OCS_CMD); in ath10k_wmi_tlv_op_gen_adaptive_qcs()
3842 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_adaptive_qcs()
3843 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_adaptive_qcs()
3846 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_adaptive_qcs()
3857 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_echo() local
3862 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_echo()
3868 tlv = ptr; in ath10k_wmi_tlv_op_gen_echo()
3869 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_ECHO_CMD); in ath10k_wmi_tlv_op_gen_echo()
3870 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_echo()
3871 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_echo()
3874 ptr += sizeof(*tlv); in ath10k_wmi_tlv_op_gen_echo()
3887 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_spectral_conf() local
3891 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_vdev_spectral_conf()
3897 tlv = ptr; in ath10k_wmi_tlv_op_gen_vdev_spectral_conf()
3898 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_SPECTRAL_CONFIGURE_CMD); in ath10k_wmi_tlv_op_gen_vdev_spectral_conf()
3899 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_spectral_conf()
3900 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_spectral_conf()
3930 struct wmi_tlv *tlv; in ath10k_wmi_tlv_op_gen_vdev_spectral_enable() local
3934 len = sizeof(*tlv) + sizeof(*cmd); in ath10k_wmi_tlv_op_gen_vdev_spectral_enable()
3940 tlv = ptr; in ath10k_wmi_tlv_op_gen_vdev_spectral_enable()
3941 tlv->tag = __cpu_to_le16(WMI_TLV_TAG_STRUCT_VDEV_SPECTRAL_ENABLE_CMD); in ath10k_wmi_tlv_op_gen_vdev_spectral_enable()
3942 tlv->len = __cpu_to_le16(sizeof(*cmd)); in ath10k_wmi_tlv_op_gen_vdev_spectral_enable()
3943 cmd = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_vdev_spectral_enable()