Lines Matching refs:cmd

1835 	u32 cmd = 0;  in ath10k_wmi_cmd_send_nowait()  local
1840 cmd |= SM(cmd_id, WMI_CMD_HDR_CMD_ID); in ath10k_wmi_cmd_send_nowait()
1843 cmd_hdr->cmd_id = __cpu_to_le32(cmd); in ath10k_wmi_cmd_send_nowait()
1971 struct wmi_mgmt_tx_cmd *cmd; in ath10k_wmi_op_gen_mgmt_tx() local
1993 len = sizeof(cmd->hdr) + msdu->len; in ath10k_wmi_op_gen_mgmt_tx()
2021 cmd = (struct wmi_mgmt_tx_cmd *)skb->data; in ath10k_wmi_op_gen_mgmt_tx()
2023 cmd->hdr.vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_mgmt_tx()
2024 cmd->hdr.tx_rate = 0; in ath10k_wmi_op_gen_mgmt_tx()
2025 cmd->hdr.tx_power = 0; in ath10k_wmi_op_gen_mgmt_tx()
2026 cmd->hdr.buf_len = __cpu_to_le32(buf_len); in ath10k_wmi_op_gen_mgmt_tx()
2028 ether_addr_copy(cmd->hdr.peer_macaddr.addr, ieee80211_get_DA(hdr)); in ath10k_wmi_op_gen_mgmt_tx()
2029 memcpy(cmd->buf, msdu->data, msdu->len); in ath10k_wmi_op_gen_mgmt_tx()
6438 struct wmi_pdev_set_base_macaddr_cmd *cmd; in ath10k_wmi_op_gen_pdev_set_base_macaddr() local
6441 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_set_base_macaddr()
6445 cmd = (struct wmi_pdev_set_base_macaddr_cmd *)skb->data; in ath10k_wmi_op_gen_pdev_set_base_macaddr()
6446 ether_addr_copy(cmd->mac_addr.addr, macaddr); in ath10k_wmi_op_gen_pdev_set_base_macaddr()
6458 struct wmi_pdev_set_regdomain_cmd *cmd; in ath10k_wmi_op_gen_pdev_set_rd() local
6461 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_set_rd()
6465 cmd = (struct wmi_pdev_set_regdomain_cmd *)skb->data; in ath10k_wmi_op_gen_pdev_set_rd()
6466 cmd->reg_domain = __cpu_to_le32(rd); in ath10k_wmi_op_gen_pdev_set_rd()
6467 cmd->reg_domain_2G = __cpu_to_le32(rd2g); in ath10k_wmi_op_gen_pdev_set_rd()
6468 cmd->reg_domain_5G = __cpu_to_le32(rd5g); in ath10k_wmi_op_gen_pdev_set_rd()
6469 cmd->conformance_test_limit_2G = __cpu_to_le32(ctl2g); in ath10k_wmi_op_gen_pdev_set_rd()
6470 cmd->conformance_test_limit_5G = __cpu_to_le32(ctl5g); in ath10k_wmi_op_gen_pdev_set_rd()
6483 struct wmi_pdev_set_regdomain_cmd_10x *cmd; in ath10k_wmi_10x_op_gen_pdev_set_rd() local
6486 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10x_op_gen_pdev_set_rd()
6490 cmd = (struct wmi_pdev_set_regdomain_cmd_10x *)skb->data; in ath10k_wmi_10x_op_gen_pdev_set_rd()
6491 cmd->reg_domain = __cpu_to_le32(rd); in ath10k_wmi_10x_op_gen_pdev_set_rd()
6492 cmd->reg_domain_2G = __cpu_to_le32(rd2g); in ath10k_wmi_10x_op_gen_pdev_set_rd()
6493 cmd->reg_domain_5G = __cpu_to_le32(rd5g); in ath10k_wmi_10x_op_gen_pdev_set_rd()
6494 cmd->conformance_test_limit_2G = __cpu_to_le32(ctl2g); in ath10k_wmi_10x_op_gen_pdev_set_rd()
6495 cmd->conformance_test_limit_5G = __cpu_to_le32(ctl5g); in ath10k_wmi_10x_op_gen_pdev_set_rd()
6496 cmd->dfs_domain = __cpu_to_le32(dfs_reg); in ath10k_wmi_10x_op_gen_pdev_set_rd()
6507 struct wmi_pdev_suspend_cmd *cmd; in ath10k_wmi_op_gen_pdev_suspend() local
6510 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_suspend()
6514 cmd = (struct wmi_pdev_suspend_cmd *)skb->data; in ath10k_wmi_op_gen_pdev_suspend()
6515 cmd->suspend_opt = __cpu_to_le32(suspend_opt); in ath10k_wmi_op_gen_pdev_suspend()
6535 struct wmi_pdev_set_param_cmd *cmd; in ath10k_wmi_op_gen_pdev_set_param() local
6544 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_set_param()
6548 cmd = (struct wmi_pdev_set_param_cmd *)skb->data; in ath10k_wmi_op_gen_pdev_set_param()
6549 cmd->param_id = __cpu_to_le32(id); in ath10k_wmi_op_gen_pdev_set_param()
6550 cmd->param_value = __cpu_to_le32(value); in ath10k_wmi_op_gen_pdev_set_param()
6581 struct wmi_init_cmd *cmd; in ath10k_wmi_op_gen_init() local
6636 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items, in ath10k_wmi_op_gen_init()
6641 cmd = (struct wmi_init_cmd *)buf->data; in ath10k_wmi_op_gen_init()
6643 memcpy(&cmd->resource_config, &config, sizeof(config)); in ath10k_wmi_op_gen_init()
6644 ath10k_wmi_put_host_mem_chunks(ar, &cmd->mem_chunks); in ath10k_wmi_op_gen_init()
6652 struct wmi_init_cmd_10x *cmd; in ath10k_wmi_10_1_op_gen_init() local
6699 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items, in ath10k_wmi_10_1_op_gen_init()
6704 cmd = (struct wmi_init_cmd_10x *)buf->data; in ath10k_wmi_10_1_op_gen_init()
6706 memcpy(&cmd->resource_config, &config, sizeof(config)); in ath10k_wmi_10_1_op_gen_init()
6707 ath10k_wmi_put_host_mem_chunks(ar, &cmd->mem_chunks); in ath10k_wmi_10_1_op_gen_init()
6715 struct wmi_init_cmd_10_2 *cmd; in ath10k_wmi_10_2_op_gen_init() local
6770 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items, in ath10k_wmi_10_2_op_gen_init()
6775 cmd = (struct wmi_init_cmd_10_2 *)buf->data; in ath10k_wmi_10_2_op_gen_init()
6789 cmd->resource_config.feature_mask = __cpu_to_le32(features); in ath10k_wmi_10_2_op_gen_init()
6791 memcpy(&cmd->resource_config.common, &config, sizeof(config)); in ath10k_wmi_10_2_op_gen_init()
6792 ath10k_wmi_put_host_mem_chunks(ar, &cmd->mem_chunks); in ath10k_wmi_10_2_op_gen_init()
6800 struct wmi_init_cmd_10_4 *cmd; in ath10k_wmi_10_4_op_gen_init() local
6864 buf = ath10k_wmi_alloc_skb(ar, struct_size(cmd, mem_chunks.items, in ath10k_wmi_10_4_op_gen_init()
6869 cmd = (struct wmi_init_cmd_10_4 *)buf->data; in ath10k_wmi_10_4_op_gen_init()
6870 memcpy(&cmd->resource_config, &config, sizeof(config)); in ath10k_wmi_10_4_op_gen_init()
6871 ath10k_wmi_put_host_mem_chunks(ar, &cmd->mem_chunks); in ath10k_wmi_10_4_op_gen_init()
7017 struct wmi_start_scan_cmd *cmd; in ath10k_wmi_op_gen_start_scan() local
7026 len = sizeof(*cmd) + ath10k_wmi_start_scan_tlvs_len(arg); in ath10k_wmi_op_gen_start_scan()
7031 cmd = (struct wmi_start_scan_cmd *)skb->data; in ath10k_wmi_op_gen_start_scan()
7033 ath10k_wmi_put_start_scan_common(&cmd->common, arg); in ath10k_wmi_op_gen_start_scan()
7034 ath10k_wmi_put_start_scan_tlvs(&cmd->tlvs, arg); in ath10k_wmi_op_gen_start_scan()
7036 cmd->burst_duration_ms = __cpu_to_le32(0); in ath10k_wmi_op_gen_start_scan()
7046 struct wmi_10x_start_scan_cmd *cmd; in ath10k_wmi_10x_op_gen_start_scan() local
7055 len = sizeof(*cmd) + ath10k_wmi_start_scan_tlvs_len(arg); in ath10k_wmi_10x_op_gen_start_scan()
7060 cmd = (struct wmi_10x_start_scan_cmd *)skb->data; in ath10k_wmi_10x_op_gen_start_scan()
7062 ath10k_wmi_put_start_scan_common(&cmd->common, arg); in ath10k_wmi_10x_op_gen_start_scan()
7063 ath10k_wmi_put_start_scan_tlvs(&cmd->tlvs, arg); in ath10k_wmi_10x_op_gen_start_scan()
7099 struct wmi_stop_scan_cmd *cmd; in ath10k_wmi_op_gen_stop_scan() local
7109 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_stop_scan()
7119 cmd = (struct wmi_stop_scan_cmd *)skb->data; in ath10k_wmi_op_gen_stop_scan()
7120 cmd->req_type = __cpu_to_le32(arg->req_type); in ath10k_wmi_op_gen_stop_scan()
7121 cmd->vdev_id = __cpu_to_le32(arg->u.vdev_id); in ath10k_wmi_op_gen_stop_scan()
7122 cmd->scan_id = __cpu_to_le32(scan_id); in ath10k_wmi_op_gen_stop_scan()
7123 cmd->scan_req_id = __cpu_to_le32(req_id); in ath10k_wmi_op_gen_stop_scan()
7137 struct wmi_vdev_create_cmd *cmd; in ath10k_wmi_op_gen_vdev_create() local
7140 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_create()
7144 cmd = (struct wmi_vdev_create_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_create()
7145 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_vdev_create()
7146 cmd->vdev_type = __cpu_to_le32(type); in ath10k_wmi_op_gen_vdev_create()
7147 cmd->vdev_subtype = __cpu_to_le32(subtype); in ath10k_wmi_op_gen_vdev_create()
7148 ether_addr_copy(cmd->vdev_macaddr.addr, macaddr); in ath10k_wmi_op_gen_vdev_create()
7159 struct wmi_vdev_delete_cmd *cmd; in ath10k_wmi_op_gen_vdev_delete() local
7162 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_delete()
7166 cmd = (struct wmi_vdev_delete_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_delete()
7167 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_vdev_delete()
7179 struct wmi_vdev_start_request_cmd *cmd; in ath10k_wmi_op_gen_vdev_start() local
7186 if (WARN_ON(arg->ssid_len > sizeof(cmd->ssid.ssid))) in ath10k_wmi_op_gen_vdev_start()
7194 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_start()
7203 cmd = (struct wmi_vdev_start_request_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_start()
7204 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); in ath10k_wmi_op_gen_vdev_start()
7205 cmd->disable_hw_ack = __cpu_to_le32(arg->disable_hw_ack); in ath10k_wmi_op_gen_vdev_start()
7206 cmd->beacon_interval = __cpu_to_le32(arg->bcn_intval); in ath10k_wmi_op_gen_vdev_start()
7207 cmd->dtim_period = __cpu_to_le32(arg->dtim_period); in ath10k_wmi_op_gen_vdev_start()
7208 cmd->flags = __cpu_to_le32(flags); in ath10k_wmi_op_gen_vdev_start()
7209 cmd->bcn_tx_rate = __cpu_to_le32(arg->bcn_tx_rate); in ath10k_wmi_op_gen_vdev_start()
7210 cmd->bcn_tx_power = __cpu_to_le32(arg->bcn_tx_power); in ath10k_wmi_op_gen_vdev_start()
7213 cmd->ssid.ssid_len = __cpu_to_le32(arg->ssid_len); in ath10k_wmi_op_gen_vdev_start()
7214 memcpy(cmd->ssid.ssid, arg->ssid, arg->ssid_len); in ath10k_wmi_op_gen_vdev_start()
7217 ath10k_wmi_put_wmi_channel(ar, &cmd->chan, &arg->channel); in ath10k_wmi_op_gen_vdev_start()
7223 cmd->chan.flags, arg->channel.max_power); in ath10k_wmi_op_gen_vdev_start()
7231 struct wmi_vdev_stop_cmd *cmd; in ath10k_wmi_op_gen_vdev_stop() local
7234 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_stop()
7238 cmd = (struct wmi_vdev_stop_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_stop()
7239 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_vdev_stop()
7249 struct wmi_vdev_up_cmd *cmd; in ath10k_wmi_op_gen_vdev_up() local
7252 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_up()
7256 cmd = (struct wmi_vdev_up_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_up()
7257 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_vdev_up()
7258 cmd->vdev_assoc_id = __cpu_to_le32(aid); in ath10k_wmi_op_gen_vdev_up()
7259 ether_addr_copy(cmd->vdev_bssid.addr, bssid); in ath10k_wmi_op_gen_vdev_up()
7270 struct wmi_vdev_down_cmd *cmd; in ath10k_wmi_op_gen_vdev_down() local
7273 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_down()
7277 cmd = (struct wmi_vdev_down_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_down()
7278 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_vdev_down()
7289 struct wmi_vdev_set_param_cmd *cmd; in ath10k_wmi_op_gen_vdev_set_param() local
7299 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_set_param()
7303 cmd = (struct wmi_vdev_set_param_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_set_param()
7304 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_vdev_set_param()
7305 cmd->param_id = __cpu_to_le32(param_id); in ath10k_wmi_op_gen_vdev_set_param()
7306 cmd->param_value = __cpu_to_le32(param_value); in ath10k_wmi_op_gen_vdev_set_param()
7318 struct wmi_vdev_install_key_cmd *cmd; in ath10k_wmi_op_gen_vdev_install_key() local
7326 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd) + arg->key_len); in ath10k_wmi_op_gen_vdev_install_key()
7330 cmd = (struct wmi_vdev_install_key_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_install_key()
7331 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); in ath10k_wmi_op_gen_vdev_install_key()
7332 cmd->key_idx = __cpu_to_le32(arg->key_idx); in ath10k_wmi_op_gen_vdev_install_key()
7333 cmd->key_flags = __cpu_to_le32(arg->key_flags); in ath10k_wmi_op_gen_vdev_install_key()
7334 cmd->key_cipher = __cpu_to_le32(arg->key_cipher); in ath10k_wmi_op_gen_vdev_install_key()
7335 cmd->key_len = __cpu_to_le32(arg->key_len); in ath10k_wmi_op_gen_vdev_install_key()
7336 cmd->key_txmic_len = __cpu_to_le32(arg->key_txmic_len); in ath10k_wmi_op_gen_vdev_install_key()
7337 cmd->key_rxmic_len = __cpu_to_le32(arg->key_rxmic_len); in ath10k_wmi_op_gen_vdev_install_key()
7340 ether_addr_copy(cmd->peer_macaddr.addr, arg->macaddr); in ath10k_wmi_op_gen_vdev_install_key()
7342 memcpy(cmd->key_data, arg->key_data, arg->key_len); in ath10k_wmi_op_gen_vdev_install_key()
7354 struct wmi_vdev_spectral_conf_cmd *cmd; in ath10k_wmi_op_gen_vdev_spectral_conf() local
7357 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_spectral_conf()
7361 cmd = (struct wmi_vdev_spectral_conf_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_spectral_conf()
7362 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); in ath10k_wmi_op_gen_vdev_spectral_conf()
7363 cmd->scan_count = __cpu_to_le32(arg->scan_count); in ath10k_wmi_op_gen_vdev_spectral_conf()
7364 cmd->scan_period = __cpu_to_le32(arg->scan_period); in ath10k_wmi_op_gen_vdev_spectral_conf()
7365 cmd->scan_priority = __cpu_to_le32(arg->scan_priority); in ath10k_wmi_op_gen_vdev_spectral_conf()
7366 cmd->scan_fft_size = __cpu_to_le32(arg->scan_fft_size); in ath10k_wmi_op_gen_vdev_spectral_conf()
7367 cmd->scan_gc_ena = __cpu_to_le32(arg->scan_gc_ena); in ath10k_wmi_op_gen_vdev_spectral_conf()
7368 cmd->scan_restart_ena = __cpu_to_le32(arg->scan_restart_ena); in ath10k_wmi_op_gen_vdev_spectral_conf()
7369 cmd->scan_noise_floor_ref = __cpu_to_le32(arg->scan_noise_floor_ref); in ath10k_wmi_op_gen_vdev_spectral_conf()
7370 cmd->scan_init_delay = __cpu_to_le32(arg->scan_init_delay); in ath10k_wmi_op_gen_vdev_spectral_conf()
7371 cmd->scan_nb_tone_thr = __cpu_to_le32(arg->scan_nb_tone_thr); in ath10k_wmi_op_gen_vdev_spectral_conf()
7372 cmd->scan_str_bin_thr = __cpu_to_le32(arg->scan_str_bin_thr); in ath10k_wmi_op_gen_vdev_spectral_conf()
7373 cmd->scan_wb_rpt_mode = __cpu_to_le32(arg->scan_wb_rpt_mode); in ath10k_wmi_op_gen_vdev_spectral_conf()
7374 cmd->scan_rssi_rpt_mode = __cpu_to_le32(arg->scan_rssi_rpt_mode); in ath10k_wmi_op_gen_vdev_spectral_conf()
7375 cmd->scan_rssi_thr = __cpu_to_le32(arg->scan_rssi_thr); in ath10k_wmi_op_gen_vdev_spectral_conf()
7376 cmd->scan_pwr_format = __cpu_to_le32(arg->scan_pwr_format); in ath10k_wmi_op_gen_vdev_spectral_conf()
7377 cmd->scan_rpt_mode = __cpu_to_le32(arg->scan_rpt_mode); in ath10k_wmi_op_gen_vdev_spectral_conf()
7378 cmd->scan_bin_scale = __cpu_to_le32(arg->scan_bin_scale); in ath10k_wmi_op_gen_vdev_spectral_conf()
7379 cmd->scan_dbm_adj = __cpu_to_le32(arg->scan_dbm_adj); in ath10k_wmi_op_gen_vdev_spectral_conf()
7380 cmd->scan_chn_mask = __cpu_to_le32(arg->scan_chn_mask); in ath10k_wmi_op_gen_vdev_spectral_conf()
7389 struct wmi_vdev_spectral_enable_cmd *cmd; in ath10k_wmi_op_gen_vdev_spectral_enable() local
7392 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_vdev_spectral_enable()
7396 cmd = (struct wmi_vdev_spectral_enable_cmd *)skb->data; in ath10k_wmi_op_gen_vdev_spectral_enable()
7397 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_vdev_spectral_enable()
7398 cmd->trigger_cmd = __cpu_to_le32(trigger); in ath10k_wmi_op_gen_vdev_spectral_enable()
7399 cmd->enable_cmd = __cpu_to_le32(enable); in ath10k_wmi_op_gen_vdev_spectral_enable()
7409 struct wmi_peer_create_cmd *cmd; in ath10k_wmi_op_gen_peer_create() local
7412 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_peer_create()
7416 cmd = (struct wmi_peer_create_cmd *)skb->data; in ath10k_wmi_op_gen_peer_create()
7417 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_peer_create()
7418 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath10k_wmi_op_gen_peer_create()
7419 cmd->peer_type = __cpu_to_le32(peer_type); in ath10k_wmi_op_gen_peer_create()
7431 struct wmi_peer_delete_cmd *cmd; in ath10k_wmi_op_gen_peer_delete() local
7434 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_peer_delete()
7438 cmd = (struct wmi_peer_delete_cmd *)skb->data; in ath10k_wmi_op_gen_peer_delete()
7439 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_peer_delete()
7440 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath10k_wmi_op_gen_peer_delete()
7452 struct wmi_peer_flush_tids_cmd *cmd; in ath10k_wmi_op_gen_peer_flush() local
7455 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_peer_flush()
7459 cmd = (struct wmi_peer_flush_tids_cmd *)skb->data; in ath10k_wmi_op_gen_peer_flush()
7460 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_peer_flush()
7461 cmd->peer_tid_bitmap = __cpu_to_le32(tid_bitmap); in ath10k_wmi_op_gen_peer_flush()
7462 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath10k_wmi_op_gen_peer_flush()
7476 struct wmi_peer_set_param_cmd *cmd; in ath10k_wmi_op_gen_peer_set_param() local
7479 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_peer_set_param()
7483 cmd = (struct wmi_peer_set_param_cmd *)skb->data; in ath10k_wmi_op_gen_peer_set_param()
7484 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_peer_set_param()
7485 cmd->param_id = __cpu_to_le32(param_id); in ath10k_wmi_op_gen_peer_set_param()
7486 cmd->param_value = __cpu_to_le32(param_value); in ath10k_wmi_op_gen_peer_set_param()
7487 ether_addr_copy(cmd->peer_macaddr.addr, peer_addr); in ath10k_wmi_op_gen_peer_set_param()
7499 struct wmi_sta_powersave_mode_cmd *cmd; in ath10k_wmi_op_gen_set_psmode() local
7502 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_set_psmode()
7506 cmd = (struct wmi_sta_powersave_mode_cmd *)skb->data; in ath10k_wmi_op_gen_set_psmode()
7507 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_set_psmode()
7508 cmd->sta_ps_mode = __cpu_to_le32(psmode); in ath10k_wmi_op_gen_set_psmode()
7521 struct wmi_sta_powersave_param_cmd *cmd; in ath10k_wmi_op_gen_set_sta_ps() local
7524 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_set_sta_ps()
7528 cmd = (struct wmi_sta_powersave_param_cmd *)skb->data; in ath10k_wmi_op_gen_set_sta_ps()
7529 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_set_sta_ps()
7530 cmd->param_id = __cpu_to_le32(param_id); in ath10k_wmi_op_gen_set_sta_ps()
7531 cmd->param_value = __cpu_to_le32(value); in ath10k_wmi_op_gen_set_sta_ps()
7543 struct wmi_ap_ps_peer_cmd *cmd; in ath10k_wmi_op_gen_set_ap_ps() local
7549 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_set_ap_ps()
7553 cmd = (struct wmi_ap_ps_peer_cmd *)skb->data; in ath10k_wmi_op_gen_set_ap_ps()
7554 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_set_ap_ps()
7555 cmd->param_id = __cpu_to_le32(param_id); in ath10k_wmi_op_gen_set_ap_ps()
7556 cmd->param_value = __cpu_to_le32(value); in ath10k_wmi_op_gen_set_ap_ps()
7557 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath10k_wmi_op_gen_set_ap_ps()
7569 struct wmi_scan_chan_list_cmd *cmd; in ath10k_wmi_op_gen_scan_chan_list() local
7575 skb = ath10k_wmi_alloc_skb(ar, struct_size(cmd, chan_info, arg->n_channels)); in ath10k_wmi_op_gen_scan_chan_list()
7579 cmd = (struct wmi_scan_chan_list_cmd *)skb->data; in ath10k_wmi_op_gen_scan_chan_list()
7580 cmd->num_scan_chans = __cpu_to_le32(arg->n_channels); in ath10k_wmi_op_gen_scan_chan_list()
7584 ci = &cmd->chan_info[i]; in ath10k_wmi_op_gen_scan_chan_list()
7596 struct wmi_common_peer_assoc_complete_cmd *cmd = buf; in ath10k_wmi_peer_assoc_fill() local
7598 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); in ath10k_wmi_peer_assoc_fill()
7599 cmd->peer_new_assoc = __cpu_to_le32(arg->peer_reassoc ? 0 : 1); in ath10k_wmi_peer_assoc_fill()
7600 cmd->peer_associd = __cpu_to_le32(arg->peer_aid); in ath10k_wmi_peer_assoc_fill()
7601 cmd->peer_flags = __cpu_to_le32(arg->peer_flags); in ath10k_wmi_peer_assoc_fill()
7602 cmd->peer_caps = __cpu_to_le32(arg->peer_caps); in ath10k_wmi_peer_assoc_fill()
7603 cmd->peer_listen_intval = __cpu_to_le32(arg->peer_listen_intval); in ath10k_wmi_peer_assoc_fill()
7604 cmd->peer_ht_caps = __cpu_to_le32(arg->peer_ht_caps); in ath10k_wmi_peer_assoc_fill()
7605 cmd->peer_max_mpdu = __cpu_to_le32(arg->peer_max_mpdu); in ath10k_wmi_peer_assoc_fill()
7606 cmd->peer_mpdu_density = __cpu_to_le32(arg->peer_mpdu_density); in ath10k_wmi_peer_assoc_fill()
7607 cmd->peer_rate_caps = __cpu_to_le32(arg->peer_rate_caps); in ath10k_wmi_peer_assoc_fill()
7608 cmd->peer_nss = __cpu_to_le32(arg->peer_num_spatial_streams); in ath10k_wmi_peer_assoc_fill()
7609 cmd->peer_vht_caps = __cpu_to_le32(arg->peer_vht_caps); in ath10k_wmi_peer_assoc_fill()
7610 cmd->peer_phymode = __cpu_to_le32(arg->peer_phymode); in ath10k_wmi_peer_assoc_fill()
7612 ether_addr_copy(cmd->peer_macaddr.addr, arg->addr); in ath10k_wmi_peer_assoc_fill()
7614 cmd->peer_legacy_rates.num_rates = in ath10k_wmi_peer_assoc_fill()
7616 memcpy(cmd->peer_legacy_rates.rates, arg->peer_legacy_rates.rates, in ath10k_wmi_peer_assoc_fill()
7619 cmd->peer_ht_rates.num_rates = in ath10k_wmi_peer_assoc_fill()
7621 memcpy(cmd->peer_ht_rates.rates, arg->peer_ht_rates.rates, in ath10k_wmi_peer_assoc_fill()
7624 cmd->peer_vht_rates.rx_max_rate = in ath10k_wmi_peer_assoc_fill()
7626 cmd->peer_vht_rates.rx_mcs_set = in ath10k_wmi_peer_assoc_fill()
7628 cmd->peer_vht_rates.tx_max_rate = in ath10k_wmi_peer_assoc_fill()
7630 cmd->peer_vht_rates.tx_mcs_set = in ath10k_wmi_peer_assoc_fill()
7638 struct wmi_main_peer_assoc_complete_cmd *cmd = buf; in ath10k_wmi_peer_assoc_fill_main() local
7641 memset(cmd->peer_ht_info, 0, sizeof(cmd->peer_ht_info)); in ath10k_wmi_peer_assoc_fill_main()
7655 struct wmi_10_2_peer_assoc_complete_cmd *cmd = buf; in ath10k_wmi_peer_assoc_fill_10_2() local
7667 cmd->info0 = __cpu_to_le32(info0); in ath10k_wmi_peer_assoc_fill_10_2()
7674 struct wmi_10_4_peer_assoc_complete_cmd *cmd = buf; in ath10k_wmi_peer_assoc_fill_10_4() local
7677 cmd->peer_bw_rxnss_override = in ath10k_wmi_peer_assoc_fill_10_4()
7811 struct wmi_pdev_chan_info_req_cmd *cmd; in ath10k_wmi_10_2_op_gen_pdev_bss_chan_info() local
7814 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10_2_op_gen_pdev_bss_chan_info()
7818 cmd = (struct wmi_pdev_chan_info_req_cmd *)skb->data; in ath10k_wmi_10_2_op_gen_pdev_bss_chan_info()
7819 cmd->type = __cpu_to_le32(type); in ath10k_wmi_10_2_op_gen_pdev_bss_chan_info()
7833 struct wmi_bcn_tx_ref_cmd *cmd; in ath10k_wmi_op_gen_beacon_dma() local
7838 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_beacon_dma()
7845 cmd = (struct wmi_bcn_tx_ref_cmd *)skb->data; in ath10k_wmi_op_gen_beacon_dma()
7846 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_beacon_dma()
7847 cmd->data_len = __cpu_to_le32(bcn_len); in ath10k_wmi_op_gen_beacon_dma()
7848 cmd->data_ptr = __cpu_to_le32(bcn_paddr); in ath10k_wmi_op_gen_beacon_dma()
7849 cmd->msdu_id = 0; in ath10k_wmi_op_gen_beacon_dma()
7850 cmd->frame_control = __cpu_to_le32(fc); in ath10k_wmi_op_gen_beacon_dma()
7851 cmd->flags = 0; in ath10k_wmi_op_gen_beacon_dma()
7852 cmd->antenna_mask = __cpu_to_le32(WMI_BCN_TX_REF_DEF_ANTENNA); in ath10k_wmi_op_gen_beacon_dma()
7855 cmd->flags |= __cpu_to_le32(WMI_BCN_TX_REF_FLAG_DTIM_ZERO); in ath10k_wmi_op_gen_beacon_dma()
7858 cmd->flags |= __cpu_to_le32(WMI_BCN_TX_REF_FLAG_DELIVER_CAB); in ath10k_wmi_op_gen_beacon_dma()
7878 struct wmi_pdev_set_wmm_params *cmd; in ath10k_wmi_op_gen_pdev_set_wmm() local
7881 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_set_wmm()
7885 cmd = (struct wmi_pdev_set_wmm_params *)skb->data; in ath10k_wmi_op_gen_pdev_set_wmm()
7886 ath10k_wmi_set_wmm_param(&cmd->ac_be, &arg->ac_be); in ath10k_wmi_op_gen_pdev_set_wmm()
7887 ath10k_wmi_set_wmm_param(&cmd->ac_bk, &arg->ac_bk); in ath10k_wmi_op_gen_pdev_set_wmm()
7888 ath10k_wmi_set_wmm_param(&cmd->ac_vi, &arg->ac_vi); in ath10k_wmi_op_gen_pdev_set_wmm()
7889 ath10k_wmi_set_wmm_param(&cmd->ac_vo, &arg->ac_vo); in ath10k_wmi_op_gen_pdev_set_wmm()
7898 struct wmi_request_stats_cmd *cmd; in ath10k_wmi_op_gen_request_stats() local
7901 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_request_stats()
7905 cmd = (struct wmi_request_stats_cmd *)skb->data; in ath10k_wmi_op_gen_request_stats()
7906 cmd->stats_id = __cpu_to_le32(stats_mask); in ath10k_wmi_op_gen_request_stats()
7917 struct wmi_force_fw_hang_cmd *cmd; in ath10k_wmi_op_gen_force_fw_hang() local
7920 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_force_fw_hang()
7924 cmd = (struct wmi_force_fw_hang_cmd *)skb->data; in ath10k_wmi_op_gen_force_fw_hang()
7925 cmd->type = __cpu_to_le32(type); in ath10k_wmi_op_gen_force_fw_hang()
7926 cmd->delay_ms = __cpu_to_le32(delay_ms); in ath10k_wmi_op_gen_force_fw_hang()
7937 struct wmi_dbglog_cfg_cmd *cmd; in ath10k_wmi_op_gen_dbglog_cfg() local
7941 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_dbglog_cfg()
7945 cmd = (struct wmi_dbglog_cfg_cmd *)skb->data; in ath10k_wmi_op_gen_dbglog_cfg()
7957 cmd->module_enable = __cpu_to_le32(module_enable); in ath10k_wmi_op_gen_dbglog_cfg()
7958 cmd->module_valid = __cpu_to_le32(~0); in ath10k_wmi_op_gen_dbglog_cfg()
7959 cmd->config_enable = __cpu_to_le32(cfg); in ath10k_wmi_op_gen_dbglog_cfg()
7960 cmd->config_valid = __cpu_to_le32(ATH10K_DBGLOG_CFG_LOG_LVL_MASK); in ath10k_wmi_op_gen_dbglog_cfg()
7964 __le32_to_cpu(cmd->module_enable), in ath10k_wmi_op_gen_dbglog_cfg()
7965 __le32_to_cpu(cmd->module_valid), in ath10k_wmi_op_gen_dbglog_cfg()
7966 __le32_to_cpu(cmd->config_enable), in ath10k_wmi_op_gen_dbglog_cfg()
7967 __le32_to_cpu(cmd->config_valid)); in ath10k_wmi_op_gen_dbglog_cfg()
7975 struct wmi_10_4_dbglog_cfg_cmd *cmd; in ath10k_wmi_10_4_op_gen_dbglog_cfg() local
7979 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10_4_op_gen_dbglog_cfg()
7983 cmd = (struct wmi_10_4_dbglog_cfg_cmd *)skb->data; in ath10k_wmi_10_4_op_gen_dbglog_cfg()
7995 cmd->module_enable = __cpu_to_le64(module_enable); in ath10k_wmi_10_4_op_gen_dbglog_cfg()
7996 cmd->module_valid = __cpu_to_le64(~0); in ath10k_wmi_10_4_op_gen_dbglog_cfg()
7997 cmd->config_enable = __cpu_to_le32(cfg); in ath10k_wmi_10_4_op_gen_dbglog_cfg()
7998 cmd->config_valid = __cpu_to_le32(ATH10K_DBGLOG_CFG_LOG_LVL_MASK); in ath10k_wmi_10_4_op_gen_dbglog_cfg()
8002 __le64_to_cpu(cmd->module_enable), in ath10k_wmi_10_4_op_gen_dbglog_cfg()
8003 __le64_to_cpu(cmd->module_valid), in ath10k_wmi_10_4_op_gen_dbglog_cfg()
8004 __le32_to_cpu(cmd->config_enable), in ath10k_wmi_10_4_op_gen_dbglog_cfg()
8005 __le32_to_cpu(cmd->config_valid)); in ath10k_wmi_10_4_op_gen_dbglog_cfg()
8012 struct wmi_pdev_pktlog_enable_cmd *cmd; in ath10k_wmi_op_gen_pktlog_enable() local
8015 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pktlog_enable()
8021 cmd = (struct wmi_pdev_pktlog_enable_cmd *)skb->data; in ath10k_wmi_op_gen_pktlog_enable()
8022 cmd->ev_bitmap = __cpu_to_le32(ev_bitmap); in ath10k_wmi_op_gen_pktlog_enable()
8047 struct wmi_pdev_set_quiet_cmd *cmd; in ath10k_wmi_op_gen_pdev_set_quiet_mode() local
8050 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_set_quiet_mode()
8054 cmd = (struct wmi_pdev_set_quiet_cmd *)skb->data; in ath10k_wmi_op_gen_pdev_set_quiet_mode()
8055 cmd->period = __cpu_to_le32(period); in ath10k_wmi_op_gen_pdev_set_quiet_mode()
8056 cmd->duration = __cpu_to_le32(duration); in ath10k_wmi_op_gen_pdev_set_quiet_mode()
8057 cmd->next_start = __cpu_to_le32(next_offset); in ath10k_wmi_op_gen_pdev_set_quiet_mode()
8058 cmd->enabled = __cpu_to_le32(enabled); in ath10k_wmi_op_gen_pdev_set_quiet_mode()
8070 struct wmi_addba_clear_resp_cmd *cmd; in ath10k_wmi_op_gen_addba_clear_resp() local
8076 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_addba_clear_resp()
8080 cmd = (struct wmi_addba_clear_resp_cmd *)skb->data; in ath10k_wmi_op_gen_addba_clear_resp()
8081 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_addba_clear_resp()
8082 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath10k_wmi_op_gen_addba_clear_resp()
8094 struct wmi_addba_send_cmd *cmd; in ath10k_wmi_op_gen_addba_send() local
8100 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_addba_send()
8104 cmd = (struct wmi_addba_send_cmd *)skb->data; in ath10k_wmi_op_gen_addba_send()
8105 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_addba_send()
8106 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath10k_wmi_op_gen_addba_send()
8107 cmd->tid = __cpu_to_le32(tid); in ath10k_wmi_op_gen_addba_send()
8108 cmd->buffersize = __cpu_to_le32(buf_size); in ath10k_wmi_op_gen_addba_send()
8120 struct wmi_addba_setresponse_cmd *cmd; in ath10k_wmi_op_gen_addba_set_resp() local
8126 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_addba_set_resp()
8130 cmd = (struct wmi_addba_setresponse_cmd *)skb->data; in ath10k_wmi_op_gen_addba_set_resp()
8131 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_addba_set_resp()
8132 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath10k_wmi_op_gen_addba_set_resp()
8133 cmd->tid = __cpu_to_le32(tid); in ath10k_wmi_op_gen_addba_set_resp()
8134 cmd->statuscode = __cpu_to_le32(status); in ath10k_wmi_op_gen_addba_set_resp()
8146 struct wmi_delba_send_cmd *cmd; in ath10k_wmi_op_gen_delba_send() local
8152 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_delba_send()
8156 cmd = (struct wmi_delba_send_cmd *)skb->data; in ath10k_wmi_op_gen_delba_send()
8157 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_op_gen_delba_send()
8158 ether_addr_copy(cmd->peer_macaddr.addr, mac); in ath10k_wmi_op_gen_delba_send()
8159 cmd->tid = __cpu_to_le32(tid); in ath10k_wmi_op_gen_delba_send()
8160 cmd->initiator = __cpu_to_le32(initiator); in ath10k_wmi_op_gen_delba_send()
8161 cmd->reasoncode = __cpu_to_le32(reason); in ath10k_wmi_op_gen_delba_send()
8172 struct wmi_pdev_get_tpc_config_cmd *cmd; in ath10k_wmi_10_2_4_op_gen_pdev_get_tpc_config() local
8175 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10_2_4_op_gen_pdev_get_tpc_config()
8179 cmd = (struct wmi_pdev_get_tpc_config_cmd *)skb->data; in ath10k_wmi_10_2_4_op_gen_pdev_get_tpc_config()
8180 cmd->param = __cpu_to_le32(param); in ath10k_wmi_10_2_4_op_gen_pdev_get_tpc_config()
8563 struct wmi_pdev_set_adaptive_cca_params *cmd; in ath10k_wmi_op_gen_pdev_enable_adaptive_cca() local
8566 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_pdev_enable_adaptive_cca()
8570 cmd = (struct wmi_pdev_set_adaptive_cca_params *)skb->data; in ath10k_wmi_op_gen_pdev_enable_adaptive_cca()
8571 cmd->enable = __cpu_to_le32(enable); in ath10k_wmi_op_gen_pdev_enable_adaptive_cca()
8572 cmd->cca_detect_level = __cpu_to_le32(detect_level); in ath10k_wmi_op_gen_pdev_enable_adaptive_cca()
8573 cmd->cca_detect_margin = __cpu_to_le32(detect_margin); in ath10k_wmi_op_gen_pdev_enable_adaptive_cca()
8809 struct wmi_ext_resource_config_10_4_cmd *cmd; in ath10k_wmi_10_4_ext_resource_config() local
8813 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10_4_ext_resource_config()
8820 cmd = (struct wmi_ext_resource_config_10_4_cmd *)skb->data; in ath10k_wmi_10_4_ext_resource_config()
8821 cmd->host_platform_config = __cpu_to_le32(type); in ath10k_wmi_10_4_ext_resource_config()
8822 cmd->fw_feature_bitmap = __cpu_to_le32(fw_feature_bitmap); in ath10k_wmi_10_4_ext_resource_config()
8823 cmd->wlan_gpio_priority = __cpu_to_le32(ar->coex_gpio_pin); in ath10k_wmi_10_4_ext_resource_config()
8824 cmd->coex_version = __cpu_to_le32(WMI_NO_COEX_VERSION_SUPPORT); in ath10k_wmi_10_4_ext_resource_config()
8825 cmd->coex_gpio_pin1 = __cpu_to_le32(-1); in ath10k_wmi_10_4_ext_resource_config()
8826 cmd->coex_gpio_pin2 = __cpu_to_le32(-1); in ath10k_wmi_10_4_ext_resource_config()
8827 cmd->coex_gpio_pin3 = __cpu_to_le32(-1); in ath10k_wmi_10_4_ext_resource_config()
8828 cmd->num_tdls_vdevs = __cpu_to_le32(TARGET_10_4_NUM_TDLS_VDEVS); in ath10k_wmi_10_4_ext_resource_config()
8829 cmd->num_tdls_conn_table_entries = __cpu_to_le32(20); in ath10k_wmi_10_4_ext_resource_config()
8830 cmd->max_tdls_concurrent_sleep_sta = __cpu_to_le32(num_tdls_sleep_sta); in ath10k_wmi_10_4_ext_resource_config()
8831 cmd->max_tdls_concurrent_buffer_sta = in ath10k_wmi_10_4_ext_resource_config()
8844 struct wmi_10_4_tdls_set_state_cmd *cmd; in ath10k_wmi_10_4_gen_update_fw_tdls_state() local
8848 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8859 cmd = (struct wmi_10_4_tdls_set_state_cmd *)skb->data; in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8860 cmd->vdev_id = __cpu_to_le32(vdev_id); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8861 cmd->state = __cpu_to_le32(state); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8862 cmd->notification_interval_ms = __cpu_to_le32(5000); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8863 cmd->tx_discovery_threshold = __cpu_to_le32(100); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8864 cmd->tx_teardown_threshold = __cpu_to_le32(5); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8865 cmd->rssi_teardown_threshold = __cpu_to_le32(-75); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8866 cmd->rssi_delta = __cpu_to_le32(-20); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8867 cmd->tdls_options = __cpu_to_le32(options); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8868 cmd->tdls_peer_traffic_ind_window = __cpu_to_le32(2); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8869 cmd->tdls_peer_traffic_response_timeout_ms = __cpu_to_le32(5000); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8870 cmd->tdls_puapsd_mask = __cpu_to_le32(0xf); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8871 cmd->tdls_puapsd_inactivity_time_ms = __cpu_to_le32(0); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8872 cmd->tdls_puapsd_rx_frame_threshold = __cpu_to_le32(10); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8873 cmd->teardown_notification_ms = __cpu_to_le32(10); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8874 cmd->tdls_peer_kickout_threshold = __cpu_to_le32(96); in ath10k_wmi_10_4_gen_update_fw_tdls_state()
8902 struct wmi_pdev_get_tpc_table_cmd *cmd; in ath10k_wmi_10_4_op_gen_pdev_get_tpc_table_cmdid() local
8905 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10_4_op_gen_pdev_get_tpc_table_cmdid()
8909 cmd = (struct wmi_pdev_get_tpc_table_cmd *)skb->data; in ath10k_wmi_10_4_op_gen_pdev_get_tpc_table_cmdid()
8910 cmd->param = __cpu_to_le32(param); in ath10k_wmi_10_4_op_gen_pdev_get_tpc_table_cmdid()
8923 struct wmi_10_4_tdls_peer_update_cmd *cmd; in ath10k_wmi_10_4_gen_tdls_peer_update() local
8934 len = sizeof(*cmd) + chan_len * sizeof(*chan); in ath10k_wmi_10_4_gen_tdls_peer_update()
8940 memset(skb->data, 0, sizeof(*cmd)); in ath10k_wmi_10_4_gen_tdls_peer_update()
8942 cmd = (struct wmi_10_4_tdls_peer_update_cmd *)skb->data; in ath10k_wmi_10_4_gen_tdls_peer_update()
8943 cmd->vdev_id = __cpu_to_le32(arg->vdev_id); in ath10k_wmi_10_4_gen_tdls_peer_update()
8944 ether_addr_copy(cmd->peer_macaddr.addr, arg->addr); in ath10k_wmi_10_4_gen_tdls_peer_update()
8945 cmd->peer_state = __cpu_to_le32(arg->peer_state); in ath10k_wmi_10_4_gen_tdls_peer_update()
8950 peer_cap = &cmd->peer_capab; in ath10k_wmi_10_4_gen_tdls_peer_update()
8981 struct wmi_radar_found_info *cmd; in ath10k_wmi_10_4_gen_radar_found() local
8984 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10_4_gen_radar_found()
8988 cmd = (struct wmi_radar_found_info *)skb->data; in ath10k_wmi_10_4_gen_radar_found()
8989 cmd->pri_min = __cpu_to_le32(arg->pri_min); in ath10k_wmi_10_4_gen_radar_found()
8990 cmd->pri_max = __cpu_to_le32(arg->pri_max); in ath10k_wmi_10_4_gen_radar_found()
8991 cmd->width_min = __cpu_to_le32(arg->width_min); in ath10k_wmi_10_4_gen_radar_found()
8992 cmd->width_max = __cpu_to_le32(arg->width_max); in ath10k_wmi_10_4_gen_radar_found()
8993 cmd->sidx_min = __cpu_to_le32(arg->sidx_min); in ath10k_wmi_10_4_gen_radar_found()
8994 cmd->sidx_max = __cpu_to_le32(arg->sidx_max); in ath10k_wmi_10_4_gen_radar_found()
9007 struct wmi_peer_per_tid_cfg_cmd *cmd; in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg() local
9010 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9014 memset(skb->data, 0, sizeof(*cmd)); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9016 cmd = (struct wmi_peer_per_tid_cfg_cmd *)skb->data; in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9017 cmd->vdev_id = cpu_to_le32(arg->vdev_id); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9018 ether_addr_copy(cmd->peer_macaddr.addr, arg->peer_macaddr.addr); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9019 cmd->tid = cpu_to_le32(arg->tid); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9020 cmd->ack_policy = cpu_to_le32(arg->ack_policy); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9021 cmd->aggr_control = cpu_to_le32(arg->aggr_control); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9022 cmd->rate_control = cpu_to_le32(arg->rate_ctrl); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9023 cmd->retry_count = cpu_to_le32(arg->retry_count); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9024 cmd->rcode_flags = cpu_to_le32(arg->rcode_flags); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9025 cmd->ext_tid_cfg_bitmap = cpu_to_le32(arg->ext_tid_cfg_bitmap); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9026 cmd->rtscts_ctrl = cpu_to_le32(arg->rtscts_ctrl); in ath10k_wmi_10_4_gen_per_peer_per_tid_cfg()
9039 struct wmi_echo_cmd *cmd; in ath10k_wmi_op_gen_echo() local
9042 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_op_gen_echo()
9046 cmd = (struct wmi_echo_cmd *)skb->data; in ath10k_wmi_op_gen_echo()
9047 cmd->value = cpu_to_le32(value); in ath10k_wmi_op_gen_echo()
9082 struct wmi_pdev_bb_timing_cfg_cmd *cmd; in ath10k_wmi_10_2_4_op_gen_bb_timing() local
9085 skb = ath10k_wmi_alloc_skb(ar, sizeof(*cmd)); in ath10k_wmi_10_2_4_op_gen_bb_timing()
9089 cmd = (struct wmi_pdev_bb_timing_cfg_cmd *)skb->data; in ath10k_wmi_10_2_4_op_gen_bb_timing()
9090 cmd->bb_tx_timing = __cpu_to_le32(arg->bb_tx_timing); in ath10k_wmi_10_2_4_op_gen_bb_timing()
9091 cmd->bb_xpa_timing = __cpu_to_le32(arg->bb_xpa_timing); in ath10k_wmi_10_2_4_op_gen_bb_timing()
9462 ar->wmi.cmd = &wmi_10_4_cmd_map; in ath10k_wmi_attach()
9470 ar->wmi.cmd = &wmi_10_2_4_cmd_map; in ath10k_wmi_attach()
9479 ar->wmi.cmd = &wmi_10_2_cmd_map; in ath10k_wmi_attach()
9488 ar->wmi.cmd = &wmi_10x_cmd_map; in ath10k_wmi_attach()
9497 ar->wmi.cmd = &wmi_cmd_map; in ath10k_wmi_attach()