Home
last modified time | relevance | path

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

1234

/linux-6.6.21/drivers/net/wireless/ath/ath9k/
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(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 …]
Dhtc_drv_init.c146 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 …]
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-6.6.21/drivers/net/wireless/ath/ath6kl/
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 …]
Dwmi.h111 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 …]
Dcfg80211.c157 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 …]
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 …]
/linux-6.6.21/drivers/net/wireless/ath/ath10k/
Dwmi-ops.h237 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 …]
Dthermal.c132 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()
Dmac.c216 if (test_bit(WMI_SERVICE_TX_MODE_DYNAMIC, ar->wmi.svc_map)) in ath10k_mac_ext_resource_config()
400 arvif->ar->wmi.vdev_param->def_keyid, in ath10k_install_peer_wep_keys()
710 if (test_bit(WMI_SERVICE_SYNC_DELETE_CMDS, ar->wmi.svc_map)) { in ath10k_wait_for_peer_delete_done()
788 param = ar->wmi.pdev_param->sta_kickout_th; in ath10k_mac_set_kickout()
797 param = ar->wmi.vdev_param->ap_keepalive_min_idle_inactive_time_secs; in ath10k_mac_set_kickout()
806 param = ar->wmi.vdev_param->ap_keepalive_max_idle_inactive_time_secs; in ath10k_mac_set_kickout()
815 param = ar->wmi.vdev_param->ap_keepalive_max_unresponsive_time_secs; in ath10k_mac_set_kickout()
832 vdev_param = ar->wmi.vdev_param->rts_threshold; in ath10k_mac_set_rts()
850 if (test_bit(WMI_SERVICE_SYNC_DELETE_CMDS, ar->wmi.svc_map)) { in ath10k_peer_delete()
1331 vdev_param = ar->wmi.vdev_param->protection_mode; in ath10k_mac_set_cts_prot()
[all …]
/linux-6.6.21/drivers/platform/x86/dell/
DMakefile7 obj-$(CONFIG_ALIENWARE_WMI) += alienware-wmi.o
14 dell-smbios-$(CONFIG_DELL_SMBIOS_WMI) += dell-smbios-wmi.o
17 obj-$(CONFIG_DELL_WMI) += dell-wmi.o
18 dell-wmi-objs := dell-wmi-base.o
19 dell-wmi-$(CONFIG_DELL_WMI_PRIVACY) += dell-wmi-privacy.o
20 obj-$(CONFIG_DELL_WMI_AIO) += dell-wmi-aio.o
21 obj-$(CONFIG_DELL_WMI_DESCRIPTOR) += dell-wmi-descriptor.o
22 obj-$(CONFIG_DELL_WMI_DDV) += dell-wmi-ddv.o
23 obj-$(CONFIG_DELL_WMI_LED) += dell-wmi-led.o
24 obj-$(CONFIG_DELL_WMI_SYSMAN) += dell-wmi-sysman/
/linux-6.6.21/drivers/platform/x86/
DMakefile8 obj-$(CONFIG_ACPI_WMI) += wmi.o
9 obj-$(CONFIG_WMI_BMOF) += wmi-bmof.o
12 obj-$(CONFIG_HUAWEI_WMI) += huawei-wmi.o
13 obj-$(CONFIG_MXM_WMI) += mxm-wmi.o
14 obj-$(CONFIG_NVIDIA_WMI_EC_BACKLIGHT) += nvidia-wmi-ec-backlight.o
15 obj-$(CONFIG_XIAOMI_WMI) += xiaomi-wmi.o
16 obj-$(CONFIG_GIGABYTE_WMI) += gigabyte-wmi.o
21 obj-$(CONFIG_ACER_WMI) += acer-wmi.o
35 obj-$(CONFIG_ASUS_WMI) += asus-wmi.o
36 obj-$(CONFIG_ASUS_NB_WMI) += asus-nb-wmi.o
[all …]
/linux-6.6.21/drivers/hwmon/
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-6.6.21/drivers/net/wireless/ath/ath11k/
Dwmi.c260 static int ath11k_wmi_cmd_send_nowait(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send_nowait() argument
264 struct ath11k_base *ab = wmi->wmi_ab->ab; in ath11k_wmi_cmd_send_nowait()
280 ret = ath11k_htc_send(&ab->htc, wmi->eid, skb); in ath11k_wmi_cmd_send_nowait()
292 int ath11k_wmi_cmd_send(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send() argument
295 struct ath11k_wmi_base *wmi_sc = wmi->wmi_ab; in ath11k_wmi_cmd_send()
303 ret = ath11k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath11k_wmi_cmd_send()
312 wait_event_timeout(wmi->tx_ce_desc_wq, ({ in ath11k_wmi_cmd_send()
313 ret = ath11k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath11k_wmi_cmd_send()
549 static void ath11k_wmi_service_bitmap_copy(struct ath11k_pdev_wmi *wmi, in ath11k_wmi_service_bitmap_copy() argument
557 set_bit(j, wmi->wmi_ab->svc_map); in ath11k_wmi_service_bitmap_copy()
[all …]
Dtestmode.c303 struct ath11k_pdev_wmi *wmi = ar->wmi; in ath11k_tm_cmd_wmi() local
367 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, buf_len); in ath11k_tm_cmd_wmi()
375 ret = ath11k_wmi_cmd_send(wmi, skb, cmd_id); in ath11k_tm_cmd_wmi()
392 struct ath11k_pdev_wmi *wmi = ar->wmi; in ath11k_tm_cmd_wmi_ftm() local
436 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, (chunk_len + in ath11k_tm_cmd_wmi_ftm()
457 ret = ath11k_wmi_cmd_send(wmi, skb, cmd_id); in ath11k_tm_cmd_wmi_ftm()
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Dwmi.c379 static int ath12k_wmi_cmd_send_nowait(struct ath12k_wmi_pdev *wmi, struct sk_buff *skb, in ath12k_wmi_cmd_send_nowait() argument
383 struct ath12k_base *ab = wmi->wmi_ab->ab; in ath12k_wmi_cmd_send_nowait()
394 ret = ath12k_htc_send(&ab->htc, wmi->eid, skb); in ath12k_wmi_cmd_send_nowait()
406 int ath12k_wmi_cmd_send(struct ath12k_wmi_pdev *wmi, struct sk_buff *skb, in ath12k_wmi_cmd_send() argument
409 struct ath12k_wmi_base *wmi_sc = wmi->wmi_ab; in ath12k_wmi_cmd_send()
415 ret = ath12k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath12k_wmi_cmd_send()
665 static void ath12k_wmi_service_bitmap_copy(struct ath12k_wmi_pdev *wmi, in ath12k_wmi_service_bitmap_copy() argument
673 set_bit(j, wmi->wmi_ab->svc_map); in ath12k_wmi_service_bitmap_copy()
682 struct ath12k_wmi_pdev *wmi_handle = &ab->wmi_ab.wmi[0]; in ath12k_wmi_svc_rdy_parse()
751 struct ath12k_wmi_pdev *wmi = ar->wmi; in ath12k_wmi_mgmt_send() local
[all …]
/linux-6.6.21/Documentation/ABI/testing/
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.
Dsysfs-platform-dell-wmi-ddv9 See Documentation/wmi/devices/dell-wmi-ddv.rst for details.
Dsysfs-platform-dell-privacy-wmi1 What: /sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_supported_type
32 …# cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_supporte…
37 What: /sys/bus/wmi/devices/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_current_state
69 …# cat /sys/bus/wmi/drivers/dell-privacy/6932965F-1671-4CEB-B988-D3AB0A901919/dell_privacy_current_…
/linux-6.6.21/drivers/platform/x86/intel/wmi/
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-6.6.21/Documentation/ABI/stable/
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-6.6.21/drivers/net/wireless/ath/wil6210/
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)
Dwmi.c638 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()
1964 event.wmi) + len, 4), in wmi_recv_cmd()
1970 cmd = (void *)&evt->event.wmi; in wmi_recv_cmd()
1978 struct wmi_cmd_hdr *wmi = &evt->event.wmi; in wmi_recv_cmd() local
1979 u16 id = le16_to_cpu(wmi->command_id); in wmi_recv_cmd()
1980 u8 mid = wmi->mid; in wmi_recv_cmd()
1981 u32 tstamp = le32_to_cpu(wmi->fw_timestamp); in wmi_recv_cmd()
[all …]
/linux-6.6.21/drivers/platform/x86/hp/
DMakefile9 obj-$(CONFIG_HP_WMI) += hp-wmi.o
10 obj-$(CONFIG_TC1100_WMI) += tc1100-wmi.o
/linux-6.6.21/drivers/platform/x86/dell/dell-wmi-sysman/
DMakefile1 obj-$(CONFIG_DELL_WMI_SYSMAN) += dell-wmi-sysman.o
2 dell-wmi-sysman-objs := sysman.o \

1234