/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
D | wmi.c | 91 struct wmi *ath9k_init_wmi(struct ath9k_htc_priv *priv) in ath9k_init_wmi() 93 struct wmi *wmi; in ath9k_init_wmi() local 95 wmi = kzalloc(sizeof(struct wmi), GFP_KERNEL); in ath9k_init_wmi() 96 if (!wmi) in ath9k_init_wmi() 99 wmi->drv_priv = priv; in ath9k_init_wmi() 100 wmi->stopped = false; in ath9k_init_wmi() 101 skb_queue_head_init(&wmi->wmi_event_queue); in ath9k_init_wmi() 102 spin_lock_init(&wmi->wmi_lock); in ath9k_init_wmi() 103 spin_lock_init(&wmi->event_lock); in ath9k_init_wmi() 104 mutex_init(&wmi->op_mutex); in ath9k_init_wmi() [all …]
|
D | htc_drv_init.c | 146 ret = ath9k_wmi_connect(priv->htc, priv->wmi, &priv->wmi_cmd_ep); in ath9k_init_htc_services() 242 r = ath9k_wmi_cmd(priv->wmi, WMI_REG_READ_CMDID, in ath9k_regread() 269 ret = ath9k_wmi_cmd(priv->wmi, WMI_REG_READ_CMDID, in ath9k_multi_regread() 289 r = ath9k_wmi_cmd(priv->wmi, WMI_REG_WRITE_CMDID, in ath9k_regwrite_multi() 290 (u8 *) &priv->wmi->multi_write, in ath9k_regwrite_multi() 291 sizeof(struct register_write) * priv->wmi->multi_write_idx, in ath9k_regwrite_multi() 297 priv->wmi->multi_write_idx); in ath9k_regwrite_multi() 299 priv->wmi->multi_write_idx = 0; in ath9k_regwrite_multi() 313 r = ath9k_wmi_cmd(priv->wmi, WMI_REG_WRITE_CMDID, in ath9k_regwrite_single() 329 mutex_lock(&priv->wmi->multi_write_mutex); in ath9k_regwrite_buffer() [all …]
|
D | wmi.h | 148 struct wmi { struct 181 struct wmi *ath9k_init_wmi(struct ath9k_htc_priv *priv); argument 182 int ath9k_wmi_connect(struct htc_target *htc, struct wmi *wmi, 184 int ath9k_wmi_cmd(struct wmi *wmi, enum wmi_cmd_id cmd_id, 196 ret = ath9k_wmi_cmd(priv->wmi, _wmi_cmd, NULL, 0, \ 203 ret = ath9k_wmi_cmd(priv->wmi, _wmi_cmd, \
|
D | htc_drv_txrx.c | 547 tasklet_kill(&priv->wmi->wmi_event_tasklet); in ath9k_htc_tx_drain() 561 spin_lock_bh(&priv->wmi->event_lock); in ath9k_htc_tx_drain() 562 list_for_each_entry_safe(event, tmp, &priv->wmi->pending_tx_events, list) { in ath9k_htc_tx_drain() 566 spin_unlock_bh(&priv->wmi->event_lock); in ath9k_htc_tx_drain() 669 spin_lock(&priv->wmi->event_lock); in ath9k_htc_txstatus() 671 &priv->wmi->pending_tx_events); in ath9k_htc_txstatus() 672 spin_unlock(&priv->wmi->event_lock); in ath9k_htc_txstatus() 762 spin_lock(&priv->wmi->event_lock); in ath9k_htc_tx_cleanup_timer() 763 list_for_each_entry_safe(event, tmp, &priv->wmi->pending_tx_events, list) { in ath9k_htc_tx_cleanup_timer() 783 spin_unlock(&priv->wmi->event_lock); in ath9k_htc_tx_cleanup_timer()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/ |
D | wmi.c | 27 static int ath6kl_wmi_sync_point(struct wmi *wmi, u8 if_idx); 123 void ath6kl_wmi_set_control_ep(struct wmi *wmi, enum htc_endpoint_id ep_id) in ath6kl_wmi_set_control_ep() argument 128 wmi->ep_id = ep_id; in ath6kl_wmi_set_control_ep() 131 enum htc_endpoint_id ath6kl_wmi_get_control_ep(struct wmi *wmi) in ath6kl_wmi_get_control_ep() argument 133 return wmi->ep_id; in ath6kl_wmi_get_control_ep() 160 int ath6kl_wmi_dix_2_dot3(struct wmi *wmi, struct sk_buff *skb) in ath6kl_wmi_dix_2_dot3() argument 206 static int ath6kl_wmi_meta_add(struct wmi *wmi, struct sk_buff *skb, in ath6kl_wmi_meta_add() argument 234 int ath6kl_wmi_data_hdr_add(struct wmi *wmi, struct sk_buff *skb, in ath6kl_wmi_data_hdr_add() argument 242 if (WARN_ON(skb == NULL || (if_idx > wmi->parent_dev->vif_max - 1))) in ath6kl_wmi_data_hdr_add() 246 ret = ath6kl_wmi_meta_add(wmi, skb, &meta_ver, tx_meta_info); in ath6kl_wmi_data_hdr_add() [all …]
|
D | wmi.h | 111 struct wmi { struct 2536 enum htc_endpoint_id ath6kl_wmi_get_control_ep(struct wmi *wmi); 2537 void ath6kl_wmi_set_control_ep(struct wmi *wmi, enum htc_endpoint_id ep_id); 2538 int ath6kl_wmi_dix_2_dot3(struct wmi *wmi, struct sk_buff *skb); 2539 int ath6kl_wmi_data_hdr_add(struct wmi *wmi, struct sk_buff *skb, 2544 int ath6kl_wmi_dot11_hdr_remove(struct wmi *wmi, struct sk_buff *skb); 2546 int ath6kl_wmi_implicit_create_pstream(struct wmi *wmi, u8 if_idx, 2550 int ath6kl_wmi_control_rx(struct wmi *wmi, struct sk_buff *skb); 2552 int ath6kl_wmi_cmd_send(struct wmi *wmi, u8 if_idx, struct sk_buff *skb, 2555 int ath6kl_wmi_connect_cmd(struct wmi *wmi, u8 if_idx, [all …]
|
D | cfg80211.c | 157 ath6kl_wmi_enable_sched_scan_cmd(ar->wmi, vif->fw_vif_idx, false); in __ath6kl_cfg80211_sscan_stop() 361 ret = ath6kl_wmi_set_appie_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_set_assoc_req_ies() 426 return ar->tx_pending[ath6kl_wmi_get_control_ep(ar->wmi)] == 0; in ath6kl_is_tx_pending() 447 err = ath6kl_wmi_sta_bmiss_enhance_cmd(vif->ar->wmi, in ath6kl_cfg80211_sta_bmiss_enhance() 493 if (ar->tx_pending[ath6kl_wmi_get_control_ep(ar->wmi)]) { in ath6kl_cfg80211_connect() 520 status = ath6kl_wmi_reconnect_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_cfg80211_connect() 582 ath6kl_wmi_addkey_cmd(ar->wmi, vif->fw_vif_idx, sme->key_idx, in ath6kl_cfg80211_connect() 593 if (ath6kl_wmi_bssfilter_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_cfg80211_connect() 623 status = ath6kl_wmi_listeninterval_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_cfg80211_connect() 633 status = ath6kl_wmi_connect_cmd(ar->wmi, vif->fw_vif_idx, vif->nw_type, in ath6kl_cfg80211_connect() [all …]
|
D | main.c | 361 ath6kl_wmi_addkey_cmd(vif->ar->wmi, vif->fw_vif_idx, in ath6kl_install_static_wep_keys() 403 ar->wmi, vif->fw_vif_idx, ik->key_index, ik->key_type, in ath6kl_connect_ap_mode_bss() 418 ath6kl_wmi_bssfilter_cmd(ar->wmi, vif->fw_vif_idx, NONE_BSS_FILTER, 0); in ath6kl_connect_ap_mode_bss() 516 ath6kl_wmi_disconnect_cmd(vif->ar->wmi, vif->fw_vif_idx); in ath6kl_disconnect() 570 ath6kl_wmi_bssfilter_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_scan_complete_evt() 592 ath6kl_wmi_set_ie_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_commit_ch_switch() 597 return ath6kl_wmi_ap_profile_commit(ar->wmi, vif->fw_vif_idx, in ath6kl_commit_ch_switch() 646 ath6kl_wmi_listeninterval_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_connect_event() 671 ath6kl_wmi_bssfilter_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_connect_event() 742 stats->tx_ucast_rate = ath6kl_wmi_get_rate(ar->wmi, rate); in ath6kl_update_target_stats() [all …]
|
D | core.c | 146 ar->wmi = ath6kl_wmi_init(ar); in ath6kl_core_init() 147 if (!ar->wmi) { in ath6kl_core_init() 153 ath6kl_dbg(ATH6KL_DBG_TRC, "%s: got wmi @ 0x%p.\n", __func__, ar->wmi); in ath6kl_core_init() 249 ath6kl_wmi_shutdown(ar->wmi); in ath6kl_core_init() 251 ar->wmi = NULL; in ath6kl_core_init()
|
D | init.c | 301 ath6kl_wmi_set_control_ep(ar->wmi, response.endpoint); in ath6kl_connectservice() 461 ret = ath6kl_wmi_set_rx_frame_format_cmd(ar->wmi, idx, in ath6kl_target_config_wlan_params() 469 ret = ath6kl_wmi_pmparams_cmd(ar->wmi, idx, 0, 1, 0, 0, 1, in ath6kl_target_config_wlan_params() 479 ret = ath6kl_wmi_set_lpreamble_cmd(ar->wmi, idx, 0, in ath6kl_target_config_wlan_params() 488 ret = ath6kl_wmi_set_keepalive_cmd(ar->wmi, idx, in ath6kl_target_config_wlan_params() 495 ret = ath6kl_wmi_disctimeout_cmd(ar->wmi, idx, in ath6kl_target_config_wlan_params() 503 ret = ath6kl_wmi_set_wmm_txop(ar->wmi, idx, WMI_TXOP_DISABLED); in ath6kl_target_config_wlan_params() 511 ret = ath6kl_wmi_info_req_cmd(ar->wmi, idx, in ath6kl_target_config_wlan_params() 525 ret = ath6kl_wmi_probe_report_req_cmd(ar->wmi, idx, true); in ath6kl_target_config_wlan_params() 1927 ath6kl_wmi_shutdown(ar->wmi); in ath6kl_stop_txrx()
|
D | txrx.c | 166 ath6kl_wmi_set_apsd_bfrd_traf(ar->wmi, in ath6kl_process_uapsdq() 203 ath6kl_wmi_set_pvb_cmd(ar->wmi, in ath6kl_process_psq() 248 ath6kl_wmi_set_pvb_cmd(ar->wmi, in ath6kl_powersave_ap() 408 if (ath6kl_wmi_dix_2_dot3(ar->wmi, skb)) { in ath6kl_data_tx() 427 ret = ath6kl_wmi_data_hdr_add(ar->wmi, skb, in ath6kl_data_tx() 443 ret = ath6kl_wmi_implicit_create_pstream(ar->wmi, in ath6kl_data_tx() 1293 ath6kl_wmi_set_apsd_bfrd_traf(ar->wmi, in ath6kl_uapsd_trigger_frame_rx() 1341 ath6kl_wmi_control_rx(ar->wmi, skb); in ath6kl_rx() 1472 ath6kl_wmi_send_mgmt_cmd(ar->wmi, in ath6kl_rx() 1501 ar->wmi, in ath6kl_rx() [all …]
|
D | debug.c | 110 if (ath6kl_wmi_get_stats_cmd(ar->wmi, 0)) { in ath6kl_read_tgt_stats() 548 ret = ath6kl_wmi_config_debug_module_cmd(ar->wmi, in ath6kl_fwlog_mask_write() 1037 ret = ath6kl_wmi_set_roam_lrssi_cmd(ar->wmi, ar->lrssi_roam_threshold); in ath6kl_lrssi_roam_write() 1177 ret = ath6kl_wmi_get_roam_tbl_cmd(ar->wmi); in ath6kl_roam_table_read() 1249 ret = ath6kl_wmi_force_roam_cmd(ar->wmi, bssid); in ath6kl_force_roam_write() 1289 ret = ath6kl_wmi_set_roam_mode_cmd(ar->wmi, mode); in ath6kl_roam_mode_write() 1332 ret = ath6kl_wmi_set_keepalive_cmd(ar->wmi, 0, val); in ath6kl_keepalive_write() 1377 ret = ath6kl_wmi_disctimeout_cmd(ar->wmi, 0, val); in ath6kl_disconnect_timeout_write() 1558 ath6kl_wmi_create_pstream_cmd(ar->wmi, vif->fw_vif_idx, &pstream); in ath6kl_create_qos_write() 1604 ath6kl_wmi_delete_pstream_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_delete_qos_write() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
D | wmi-ops.h | 237 if (WARN_ON_ONCE(!ar->wmi.ops->rx)) in ath10k_wmi_rx() 240 ar->wmi.ops->rx(ar, skb); in ath10k_wmi_rx() 248 if (!ar->wmi.ops->map_svc) in ath10k_wmi_map_svc() 251 ar->wmi.ops->map_svc(in, out, len); in ath10k_wmi_map_svc() 259 if (!ar->wmi.ops->map_svc_ext) in ath10k_wmi_map_svc_ext() 262 ar->wmi.ops->map_svc_ext(in, out, len); in ath10k_wmi_map_svc_ext() 270 if (!ar->wmi.ops->pull_scan) in ath10k_wmi_pull_scan() 273 return ar->wmi.ops->pull_scan(ar, skb, arg); in ath10k_wmi_pull_scan() 280 if (!ar->wmi.ops->pull_mgmt_tx_compl) in ath10k_wmi_pull_mgmt_tx_compl() 283 return ar->wmi.ops->pull_mgmt_tx_compl(ar, skb, arg); in ath10k_wmi_pull_mgmt_tx_compl() [all …]
|
D | thermal.c | 132 if (!test_bit(WMI_SERVICE_THERM_THROT, ar->wmi.svc_map)) in ath10k_thermal_set_throttling() 135 if (!ar->wmi.ops->gen_pdev_set_quiet_mode) in ath10k_thermal_set_throttling() 160 if (!test_bit(WMI_SERVICE_THERM_THROT, ar->wmi.svc_map)) in ath10k_thermal_register() 185 if (!(ar->wmi.ops->gen_pdev_get_temperature)) in ath10k_thermal_register() 214 if (!test_bit(WMI_SERVICE_THERM_THROT, ar->wmi.svc_map)) in ath10k_thermal_unregister()
|
D | mac.c | 205 if (test_bit(WMI_SERVICE_TX_MODE_DYNAMIC, ar->wmi.svc_map)) in ath10k_mac_ext_resource_config() 389 arvif->ar->wmi.vdev_param->def_keyid, in ath10k_install_peer_wep_keys() 699 if (test_bit(WMI_SERVICE_SYNC_DELETE_CMDS, ar->wmi.svc_map)) { in ath10k_wait_for_peer_delete_done() 777 param = ar->wmi.pdev_param->sta_kickout_th; in ath10k_mac_set_kickout() 786 param = ar->wmi.vdev_param->ap_keepalive_min_idle_inactive_time_secs; in ath10k_mac_set_kickout() 795 param = ar->wmi.vdev_param->ap_keepalive_max_idle_inactive_time_secs; in ath10k_mac_set_kickout() 804 param = ar->wmi.vdev_param->ap_keepalive_max_unresponsive_time_secs; in ath10k_mac_set_kickout() 821 vdev_param = ar->wmi.vdev_param->rts_threshold; in ath10k_mac_set_rts() 839 if (test_bit(WMI_SERVICE_SYNC_DELETE_CMDS, ar->wmi.svc_map)) { in ath10k_peer_delete() 1313 vdev_param = ar->wmi.vdev_param->protection_mode; in ath10k_mac_set_cts_prot() [all …]
|
D | Makefile | 11 wmi.o \ 12 wmi-tlv.o \
|
D | wmi.c | 1767 time_left = wait_for_completion_timeout(&ar->wmi.service_ready, in ath10k_wmi_wait_for_service_ready() 1778 time_left = wait_for_completion_timeout(&ar->wmi.unified_ready, in ath10k_wmi_wait_for_unified_ready() 1827 ret = ath10k_htc_send(&ar->htc, ar->wmi.eid, skb); in ath10k_wmi_cmd_send_nowait() 1907 wake_up(&ar->wmi.tx_credits_wq); in ath10k_wmi_op_ep_tx_credits() 1922 wait_event_timeout(ar->wmi.tx_credits_wq, ({ in ath10k_wmi_cmd_send() 2404 struct ath10k_wmi *wmi = &ar->wmi; in wmi_process_mgmt_tx_comp() local 2411 pkt_addr = idr_find(&wmi->mgmt_pending_tx, param->desc_id); in wmi_process_mgmt_tx_comp() 2438 idr_remove(&wmi->mgmt_pending_tx, param->desc_id); in wmi_process_mgmt_tx_comp() 2459 if (test_bit(WMI_SERVICE_TX_DATA_ACK_RSSI, ar->wmi.svc_map)) in ath10k_wmi_event_mgmt_tx_compl() 2489 if (test_bit(WMI_SERVICE_TX_DATA_ACK_RSSI, ar->wmi.svc_map)) in ath10k_wmi_event_mgmt_tx_bundle_compl() [all …]
|
/kernel/linux/linux-5.10/drivers/platform/x86/ |
D | Makefile | 8 obj-$(CONFIG_ACPI_WMI) += wmi.o 9 obj-$(CONFIG_WMI_BMOF) += wmi-bmof.o 12 obj-$(CONFIG_ALIENWARE_WMI) += alienware-wmi.o 13 obj-$(CONFIG_HUAWEI_WMI) += huawei-wmi.o 14 obj-$(CONFIG_INTEL_WMI_SBL_FW_UPDATE) += intel-wmi-sbl-fw-update.o 15 obj-$(CONFIG_INTEL_WMI_THUNDERBOLT) += intel-wmi-thunderbolt.o 16 obj-$(CONFIG_MXM_WMI) += mxm-wmi.o 17 obj-$(CONFIG_PEAQ_WMI) += peaq-wmi.o 18 obj-$(CONFIG_XIAOMI_WMI) += xiaomi-wmi.o 23 obj-$(CONFIG_ACER_WMI) += acer-wmi.o [all …]
|
D | dell-smbios-base.c | 564 int ret, wmi, smm; in dell_smbios_init() local 588 wmi = init_dell_smbios_wmi(); in dell_smbios_init() 589 if (wmi) in dell_smbios_init() 590 pr_debug("Failed to initialize WMI backend: %d\n", wmi); in dell_smbios_init() 594 if (wmi && smm) { in dell_smbios_init() 596 wmi, smm); in dell_smbios_init()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/ |
D | wmi.c | 229 static int ath11k_wmi_cmd_send_nowait(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send_nowait() argument 233 struct ath11k_base *ab = wmi->wmi_ab->ab; in ath11k_wmi_cmd_send_nowait() 247 ret = ath11k_htc_send(&ab->htc, wmi->eid, skb); in ath11k_wmi_cmd_send_nowait() 259 int ath11k_wmi_cmd_send(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send() argument 262 struct ath11k_wmi_base *wmi_sc = wmi->wmi_ab; in ath11k_wmi_cmd_send() 268 ret = ath11k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath11k_wmi_cmd_send() 485 static void ath11k_wmi_service_bitmap_copy(struct ath11k_pdev_wmi *wmi, in ath11k_wmi_service_bitmap_copy() argument 493 set_bit(j, wmi->wmi_ab->svc_map); in ath11k_wmi_service_bitmap_copy() 502 struct ath11k_pdev_wmi *wmi_handle = &ab->wmi_ab.wmi[0]; in ath11k_wmi_tlv_svc_rdy_parse() 571 struct ath11k_pdev_wmi *wmi = ar->wmi; in ath11k_wmi_mgmt_send() local [all …]
|
D | testmode.c | 120 struct ath11k_pdev_wmi *wmi = ar->wmi; in ath11k_tm_cmd_wmi() local 153 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, buf_len); in ath11k_tm_cmd_wmi() 161 ret = ath11k_wmi_cmd_send(wmi, skb, cmd_id); in ath11k_tm_cmd_wmi()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/ |
D | trace.h | 30 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len), 32 TP_ARGS(wmi, buf, buf_len), 43 __entry->mid = wmi->mid; 44 __entry->command_id = le16_to_cpu(wmi->command_id); 45 __entry->fw_timestamp = le32_to_cpu(wmi->fw_timestamp); 58 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len), 59 TP_ARGS(wmi, buf, buf_len) 63 TP_PROTO(struct wmi_cmd_hdr *wmi, void *buf, u16 buf_len), 64 TP_ARGS(wmi, buf, buf_len)
|
D | wmi.c | 638 struct wmi_cmd_hdr wmi; in __wmi_send() member 643 .len = cpu_to_le16(sizeof(cmd.wmi) + len), in __wmi_send() 645 .wmi = { in __wmi_send() 744 trace_wil6210_wmi_cmd(&cmd.wmi, buf, len); in __wmi_send() 1963 event.wmi) + len, 4), in wmi_recv_cmd() 1969 cmd = (void *)&evt->event.wmi; in wmi_recv_cmd() 1977 struct wmi_cmd_hdr *wmi = &evt->event.wmi; in wmi_recv_cmd() local 1978 u16 id = le16_to_cpu(wmi->command_id); in wmi_recv_cmd() 1979 u8 mid = wmi->mid; in wmi_recv_cmd() 1980 u32 tstamp = le32_to_cpu(wmi->fw_timestamp); in wmi_recv_cmd() [all …]
|
D | Makefile | 9 wil6210-y += wmi.o
|
/kernel/linux/linux-5.10/Documentation/ABI/testing/ |
D | dell-smbios-wmi | 1 What: /dev/wmi/dell-smbios 10 <uapi/linux/wmi.h> 20 the WMI character device /dev/wmi/dell-smbios.
|