Home
last modified time | relevance | path

Searched refs:wmi (Results 1 – 25 of 87) sorted by relevance

1234

/linux/drivers/net/wireless/ath/ath9k/
H A Dwmi.c91 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_obj(struct wmi); 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 …]
H A Dwmi.h148 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, \
/linux/drivers/net/wireless/ath/ath6kl/
H A Dwmi.c27 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 …]
H A Dwmi.h111 struct wmi { struct
2526 enum htc_endpoint_id ath6kl_wmi_get_control_ep(struct wmi *wmi);
2527 void ath6kl_wmi_set_control_ep(struct wmi *wmi, enum htc_endpoint_id ep_id);
2528 int ath6kl_wmi_dix_2_dot3(struct wmi *wmi, struct sk_buff *skb);
2529 int ath6kl_wmi_data_hdr_add(struct wmi *wmi, struct sk_buff *skb,
2534 int ath6kl_wmi_dot11_hdr_remove(struct wmi *wmi, struct sk_buff *skb);
2536 int ath6kl_wmi_implicit_create_pstream(struct wmi *wmi, u8 if_idx,
2540 int ath6kl_wmi_control_rx(struct wmi *wmi, struct sk_buff *skb);
2542 int ath6kl_wmi_cmd_send(struct wmi *wmi, u8 if_idx, struct sk_buff *skb,
2545 int ath6kl_wmi_connect_cmd(struct wmi *wmi, u8 if_idx,
[all …]
H A Dcfg80211.c158 ath6kl_wmi_enable_sched_scan_cmd(ar->wmi, vif->fw_vif_idx, false); in __ath6kl_cfg80211_sscan_stop()
362 ret = ath6kl_wmi_set_appie_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_set_assoc_req_ies()
427 return ar->tx_pending[ath6kl_wmi_get_control_ep(ar->wmi)] == 0; in ath6kl_is_tx_pending()
448 err = ath6kl_wmi_sta_bmiss_enhance_cmd(vif->ar->wmi, in ath6kl_cfg80211_sta_bmiss_enhance()
494 if (ar->tx_pending[ath6kl_wmi_get_control_ep(ar->wmi)]) { in ath6kl_cfg80211_connect()
521 status = ath6kl_wmi_reconnect_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_cfg80211_connect()
583 ath6kl_wmi_addkey_cmd(ar->wmi, vif->fw_vif_idx, sme->key_idx, in ath6kl_cfg80211_connect()
594 if (ath6kl_wmi_bssfilter_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_cfg80211_connect()
624 status = ath6kl_wmi_listeninterval_cmd(ar->wmi, vif->fw_vif_idx, in ath6kl_cfg80211_connect()
634 status = ath6kl_wmi_connect_cmd(ar->wmi, vif->fw_vif_idx, vif->nw_type, in ath6kl_cfg80211_connect()
[all …]
H A Dmain.c361 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 …]
H A Dcore.c146 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()
251 ath6kl_wmi_shutdown(ar->wmi); in ath6kl_core_init()
253 ar->wmi = NULL; in ath6kl_core_init()
/linux/drivers/net/wireless/ath/ath10k/
H A Dwmi-ops.h240 if (WARN_ON_ONCE(!ar->wmi.ops->rx)) in ath10k_wmi_rx()
243 ar->wmi.ops->rx(ar, skb); in ath10k_wmi_rx()
251 if (!ar->wmi.ops->map_svc) in ath10k_wmi_map_svc()
254 ar->wmi.ops->map_svc(in, out, len); in ath10k_wmi_map_svc()
262 if (!ar->wmi.ops->map_svc_ext) in ath10k_wmi_map_svc_ext()
265 ar->wmi.ops->map_svc_ext(in, out, len); in ath10k_wmi_map_svc_ext()
273 if (!ar->wmi.ops->pull_scan) in ath10k_wmi_pull_scan()
276 return ar->wmi.ops->pull_scan(ar, skb, arg); in ath10k_wmi_pull_scan()
283 if (!ar->wmi.ops->pull_mgmt_tx_compl) in ath10k_wmi_pull_mgmt_tx_compl()
286 return ar->wmi.ops->pull_mgmt_tx_compl(ar, skb, arg); in ath10k_wmi_pull_mgmt_tx_compl()
[all …]
H A Dmac.c220 if (test_bit(WMI_SERVICE_TX_MODE_DYNAMIC, ar->wmi.svc_map)) in ath10k_mac_ext_resource_config()
411 arvif->ar->wmi.vdev_param->def_keyid, in ath10k_install_peer_wep_keys()
721 if (test_bit(WMI_SERVICE_SYNC_DELETE_CMDS, ar->wmi.svc_map)) { in ath10k_wait_for_peer_delete_done()
792 param = ar->wmi.pdev_param->sta_kickout_th; in ath10k_mac_set_kickout()
801 param = ar->wmi.vdev_param->ap_keepalive_min_idle_inactive_time_secs; in ath10k_mac_set_kickout()
810 param = ar->wmi.vdev_param->ap_keepalive_max_idle_inactive_time_secs; in ath10k_mac_set_kickout()
819 param = ar->wmi.vdev_param->ap_keepalive_max_unresponsive_time_secs; in ath10k_mac_set_kickout()
836 vdev_param = ar->wmi.vdev_param->rts_threshold; in ath10k_mac_set_rts()
854 if (test_bit(WMI_SERVICE_SYNC_DELETE_CMDS, ar->wmi.svc_map)) { in ath10k_peer_delete()
1040 if (!test_bit(WMI_SERVICE_SYNC_DELETE_CMDS, ar->wmi.svc_map)) in ath10k_vdev_delete_sync()
[all …]
/linux/Documentation/ABI/testing/
H A Ddebugfs-alienware-wmi1 What: /sys/kernel/debug/alienware-wmi-<wmi_device_name>/system_description
11 See Documentation/admin-guide/laptops/alienware-wmi.rst for
16 What: /sys/kernel/debug/alienware-wmi-<wmi_device_name>/hwmon_data
26 See Documentation/admin-guide/laptops/alienware-wmi.rst for
31 What: /sys/kernel/debug/alienware-wmi-<wmi_device_name>/pprof_data
41 See Documentation/admin-guide/laptops/alienware-wmi.rst for
46 What: /sys/kernel/debug/alienware-wmi-<wmi_device_name>/gpio_ctl/total_gpios
55 What: /sys/kernel/debug/alienware-wmi-<wmi_device_name>/gpio_ctl/pinX
62 See Documentation/wmi/devices/alienware-wmi.rst for details.
H A Ddebugfs-dell-wmi-ddv1 What: /sys/kernel/debug/dell-wmi-ddv-<wmi_device_name>/fan_sensor_information
15 See Documentation/wmi/devices/dell-wmi-ddv.rst for details.
17 What: /sys/kernel/debug/dell-wmi-ddv-<wmi_device_name>/thermal_sensor_information
34 See Documentation/wmi/devices/dell-wmi-ddv.rst for details.
H A Dsysfs-bus-wmi1 What: /sys/bus/wmi/devices/.../driver_override
11 driver_override file (echo wmi-event-dummy > driver_override).
24 What: /sys/bus/wmi/devices/.../modalias
31 Format: wmi:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.
33 What: /sys/bus/wmi/devices/.../guid
42 What: /sys/bus/wmi/devices/.../object_id
50 What: /sys/bus/wmi/devices/.../notify_id
57 What: /sys/bus/wmi/devices/.../instance_count
65 What: /sys/bus/wmi/devices/.../expensive
74 What: /sys/bus/wmi/devices/.../setable
H A Dsysfs-platform-dell-wmi-ddv9 See Documentation/wmi/devices/dell-wmi-ddv.rst for details.
H A Dsysfs-platform-dell-privacy-wmi1 What: /sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919[-X]/dell_privacy_supported_type
32 …# cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919*/dell_privacy_support…
37 What: /sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919[-X]/dell_privacy_current_state
69 …# cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919*/dell_privacy_current…
H A Ddell-smbios-wmi1 What: /dev/wmi/dell-smbios
10 <uapi/linux/wmi.h>
20 the WMI character device /dev/wmi/dell-smbios.
/linux/drivers/hwmon/
H A Dasus_wmi_sensors.c166 struct asus_wmi_wmi_info wmi; member
386 for (i = 0; i < sensor_data->wmi.sensor_count; i++) { in asus_wmi_update_values_for_source()
387 sensor = sensor_data->wmi.info_by_id[i]; in asus_wmi_update_values_for_source()
425 if (time_after(jiffies, sensor_data->wmi.source_last_updated[sensor->source] + HZ)) { in asus_wmi_get_cached_value_or_update()
434 sensor_data->wmi.source_last_updated[sensor->source] = jiffies; in asus_wmi_get_cached_value_or_update()
455 sensor = *(sensor_data->wmi.info[type] + channel); in asus_wmi_hwmon_read()
473 sensor = *(sensor_data->wmi.info[type] + channel); in asus_wmi_hwmon_read_string()
486 sensor = *(sensor_data->wmi.info[type] + channel); in asus_wmi_hwmon_is_visible()
517 for (i = 0; i < sensor_data->wmi.sensor_count; i++) { in asus_wmi_configure_sensor_setup()
555 sensor_data->wmi.info_by_id = devm_kcalloc(dev, sensor_data->wmi.sensor_count, in asus_wmi_configure_sensor_setup()
[all …]
/linux/drivers/platform/x86/lenovo/
H A DMakefile10 lenovo-target-$(CONFIG_LENOVO_WMI_HOTKEY_UTILITIES) += wmi-hotkey-utilities.o
15 lenovo-target-$(CONFIG_LENOVO_WMI_CAMERA) += wmi-camera.o
16 lenovo-target-$(CONFIG_LENOVO_WMI_CAPDATA) += wmi-capdata.o
17 lenovo-target-$(CONFIG_LENOVO_WMI_EVENTS) += wmi-events.o
18 lenovo-target-$(CONFIG_LENOVO_WMI_HELPERS) += wmi-helpers.o
19 lenovo-target-$(CONFIG_LENOVO_WMI_GAMEZONE) += wmi-gamezone.o
20 lenovo-target-$(CONFIG_LENOVO_WMI_TUNING) += wmi-other.o
/linux/drivers/net/wireless/ath/ath11k/
H A Dwmi.c274 static int ath11k_wmi_cmd_send_nowait(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send_nowait() argument
278 struct ath11k_base *ab = wmi->wmi_ab->ab; in ath11k_wmi_cmd_send_nowait()
294 ret = ath11k_htc_send(&ab->htc, wmi->eid, skb); in ath11k_wmi_cmd_send_nowait()
306 int ath11k_wmi_cmd_send(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send() argument
309 struct ath11k_wmi_base *wmi_ab = wmi->wmi_ab; in ath11k_wmi_cmd_send()
317 ret = ath11k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath11k_wmi_cmd_send()
326 wait_event_timeout(wmi->tx_ce_desc_wq, ({ in ath11k_wmi_cmd_send()
327 ret = ath11k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath11k_wmi_cmd_send()
563 static void ath11k_wmi_service_bitmap_copy(struct ath11k_pdev_wmi *wmi, in ath11k_wmi_service_bitmap_copy() argument
571 set_bit(j, wmi->wmi_ab->svc_map); in ath11k_wmi_service_bitmap_copy()
[all …]
/linux/drivers/platform/x86/intel/wmi/
H A DMakefile6 intel-wmi-sbl-fw-update-y := sbl-fw-update.o
7 obj-$(CONFIG_INTEL_WMI_SBL_FW_UPDATE) += intel-wmi-sbl-fw-update.o
8 intel-wmi-thunderbolt-y := thunderbolt.o
9 obj-$(CONFIG_INTEL_WMI_THUNDERBOLT) += intel-wmi-thunderbolt.o
/linux/drivers/net/wireless/ath/ath12k/
H A Dwmi.c386 static int ath12k_wmi_cmd_send_nowait(struct ath12k_wmi_pdev *wmi, struct sk_buff *skb, in ath12k_wmi_cmd_send_nowait() argument
390 struct ath12k_base *ab = wmi->wmi_ab->ab; in ath12k_wmi_cmd_send_nowait()
401 ret = ath12k_htc_send(&ab->htc, wmi->eid, skb); in ath12k_wmi_cmd_send_nowait()
413 int ath12k_wmi_cmd_send(struct ath12k_wmi_pdev *wmi, struct sk_buff *skb, in ath12k_wmi_cmd_send() argument
416 struct ath12k_wmi_base *wmi_ab = wmi->wmi_ab; in ath12k_wmi_cmd_send()
422 ret = ath12k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath12k_wmi_cmd_send()
683 static void ath12k_wmi_service_bitmap_copy(struct ath12k_wmi_pdev *wmi, in ath12k_wmi_service_bitmap_copy() argument
691 set_bit(j, wmi->wmi_ab->svc_map); in ath12k_wmi_service_bitmap_copy()
700 struct ath12k_wmi_pdev *wmi_handle = &ab->wmi_ab.wmi[0]; in ath12k_wmi_svc_rdy_parse()
784 struct ath12k_wmi_pdev *wmi = ar->wmi; in ath12k_wmi_mgmt_send() local
[all …]
/linux/Documentation/ABI/stable/
H A Dsysfs-platform-wmi-bmof1 What: /sys/bus/wmi/devices/05901221-D566-11D1-B2F0-00A0C9062910[-X]/bmof
7 See Documentation/wmi/devices/wmi-bmof.rst for details.
/linux/drivers/net/wireless/ath/wil6210/
H A Dtrace.h30 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)
/linux/Documentation/admin-guide/laptops/
H A Dalienware-wmi.rst19 The alienware-wmi driver controls both interfaces.
24 WMI device documentation: Documentation/wmi/devices/alienware-wmi.rst
35 the features described in this document, try the following alienware-wmi module
43 ``drivers/platform/x86/dell/alienware-wmi-wmax.c`` or contacting the maintainer
74 "alienware-wmi" and it's path can be found with:
78 grep -l "alienware-wmi" /sys/class/platform-profile/platform-profile-*/name | sed 's|/[^/]*$||'
/linux/drivers/platform/x86/hp/
H A DMakefile9 obj-$(CONFIG_HP_WMI) += hp-wmi.o
10 obj-$(CONFIG_TC1100_WMI) += tc1100-wmi.o
/linux/drivers/platform/x86/dell/
H A Ddell-smbios-base.c575 int ret, wmi, smm; in dell_smbios_init() local
600 wmi = init_dell_smbios_wmi(); in dell_smbios_init()
601 if (wmi) in dell_smbios_init()
602 pr_debug("Failed to initialize WMI backend: %d\n", wmi); in dell_smbios_init()
606 if (wmi && smm) { in dell_smbios_init()
608 wmi, smm); in dell_smbios_init()
625 if (!wmi) in dell_smbios_init()

1234