Home
last modified time | relevance | path

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

1234

/linux-5.19.10/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-5.19.10/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 …]
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-5.19.10/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()
1324 vdev_param = ar->wmi.vdev_param->protection_mode; in ath10k_mac_set_cts_prot()
[all …]
DMakefile11 wmi.o \
12 wmi-tlv.o \
Dwmi.c1767 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 …]
/linux-5.19.10/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_LED) += dell-wmi-led.o
23 obj-$(CONFIG_DELL_WMI_SYSMAN) += dell-wmi-sysman/
Ddell-smbios-base.c564 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()
/linux-5.19.10/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_PEAQ_WMI) += peaq-wmi.o
16 obj-$(CONFIG_XIAOMI_WMI) += xiaomi-wmi.o
17 obj-$(CONFIG_GIGABYTE_WMI) += gigabyte-wmi.o
18 obj-$(CONFIG_YOGABOOK_WMI) += lenovo-yogabook-wmi.o
23 obj-$(CONFIG_ACER_WMI) += acer-wmi.o
[all …]
/linux-5.19.10/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()
521 for (i = 0; i < sensor_data->wmi.sensor_count; i++) { in asus_wmi_configure_sensor_setup()
557 sensor_data->wmi.info_by_id = devm_kcalloc(dev, sensor_data->wmi.sensor_count, in asus_wmi_configure_sensor_setup()
[all …]
/linux-5.19.10/drivers/net/wireless/ath/ath11k/
Dwmi.c254 static int ath11k_wmi_cmd_send_nowait(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send_nowait() argument
258 struct ath11k_base *ab = wmi->wmi_ab->ab; in ath11k_wmi_cmd_send_nowait()
274 ret = ath11k_htc_send(&ab->htc, wmi->eid, skb); in ath11k_wmi_cmd_send_nowait()
286 int ath11k_wmi_cmd_send(struct ath11k_pdev_wmi *wmi, struct sk_buff *skb, in ath11k_wmi_cmd_send() argument
289 struct ath11k_wmi_base *wmi_sc = wmi->wmi_ab; in ath11k_wmi_cmd_send()
297 ret = ath11k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath11k_wmi_cmd_send()
306 wait_event_timeout(wmi->tx_ce_desc_wq, ({ in ath11k_wmi_cmd_send()
307 ret = ath11k_wmi_cmd_send_nowait(wmi, skb, cmd_id); in ath11k_wmi_cmd_send()
545 static void ath11k_wmi_service_bitmap_copy(struct ath11k_pdev_wmi *wmi, in ath11k_wmi_service_bitmap_copy() argument
553 set_bit(j, wmi->wmi_ab->svc_map); in ath11k_wmi_service_bitmap_copy()
[all …]
Dtestmode.c120 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()
/linux-5.19.10/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-5.19.10/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-5.19.10/drivers/platform/x86/dell/dell-wmi-sysman/
DMakefile1 obj-$(CONFIG_DELL_WMI_SYSMAN) += dell-wmi-sysman.o
2 dell-wmi-sysman-objs := sysman.o \
/linux-5.19.10/Documentation/ABI/testing/
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_…
Ddell-smbios-wmi1 What: /dev/wmi/dell-smbios
10 <uapi/linux/wmi.h>
20 the WMI character device /dev/wmi/dell-smbios.

1234