| /linux/net/wireless/ |
| H A D | pmsr.c | 20 if (out->ftm.request_type == NL80211_PMSR_FTM_REQ_TYPE_INFRA && in pmsr_parse_ftm() 21 !(capa->ftm.bandwidths & BIT(out->chandef.width))) { in pmsr_parse_ftm() 22 NL_SET_ERR_MSG(info->extack, "FTM: unsupported bandwidth"); in pmsr_parse_ftm() 26 if (out->ftm.request_type == NL80211_PMSR_FTM_REQ_TYPE_PD && in pmsr_parse_ftm() 27 !(capa->ftm.pd_bandwidths & BIT(out->chandef.width))) { in pmsr_parse_ftm() 29 "FTM: unsupported bandwidth for PD request"); in pmsr_parse_ftm() 41 out->ftm.requested = true; in pmsr_parse_ftm() 50 "FTM: must specify preamble"); in pmsr_parse_ftm() 55 if (out->ftm.request_type == NL80211_PMSR_FTM_REQ_TYPE_INFRA && in pmsr_parse_ftm() 56 !(capa->ftm.preambles & BIT(preamble))) { in pmsr_parse_ftm() [all …]
|
| H A D | core.c | 894 if (WARN_ON(wiphy->pmsr_capa && !wiphy->pmsr_capa->ftm.supported)) in wiphy_register() 897 if (wiphy->pmsr_capa && wiphy->pmsr_capa->ftm.supported) { in wiphy_register() 898 if (WARN_ON(!wiphy->pmsr_capa->ftm.asap && in wiphy_register() 899 !wiphy->pmsr_capa->ftm.non_asap)) in wiphy_register() 901 if (WARN_ON(!wiphy->pmsr_capa->ftm.preambles || in wiphy_register() 902 !wiphy->pmsr_capa->ftm.bandwidths)) in wiphy_register() 904 if (WARN_ON(wiphy->pmsr_capa->ftm.preambles & in wiphy_register() 911 if (WARN_ON((wiphy->pmsr_capa->ftm.trigger_based || in wiphy_register() 912 wiphy->pmsr_capa->ftm.non_trigger_based) && in wiphy_register() 913 !(wiphy->pmsr_capa->ftm.preambles & in wiphy_register() [all …]
|
| H A D | nl80211.c | 2484 struct nlattr *ftm; in nl80211_send_pmsr_ftm_capa() local 2486 if (!cap->ftm.supported) in nl80211_send_pmsr_ftm_capa() 2489 ftm = nla_nest_start_noflag(msg, NL80211_PMSR_TYPE_FTM); in nl80211_send_pmsr_ftm_capa() 2490 if (!ftm) in nl80211_send_pmsr_ftm_capa() 2493 if (cap->ftm.asap && nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_ASAP)) in nl80211_send_pmsr_ftm_capa() 2495 if (cap->ftm.non_asap && in nl80211_send_pmsr_ftm_capa() 2498 if (cap->ftm.request_lci && in nl80211_send_pmsr_ftm_capa() 2501 if (cap->ftm.request_civicloc && in nl80211_send_pmsr_ftm_capa() 2505 cap->ftm.preambles)) in nl80211_send_pmsr_ftm_capa() 2508 cap->ftm.bandwidths)) in nl80211_send_pmsr_ftm_capa() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | ftm-initiator.c | 15 #include "ftm-initiator.h" 104 IWL_ERR(mld, "Unsupported BW in FTM request (%d)\n", in iwl_mld_ftm_set_target_chandef() 110 if (peer->ftm.trigger_based || peer->ftm.non_trigger_based) in iwl_mld_ftm_set_target_chandef() 131 if (peer->ftm.asap) in iwl_mld_ftm_set_target_flags() 134 if (peer->ftm.request_lci) in iwl_mld_ftm_set_target_flags() 137 if (peer->ftm.request_civicloc) in iwl_mld_ftm_set_target_flags() 148 if (peer->ftm.trigger_based) in iwl_mld_ftm_set_target_flags() 150 else if (peer->ftm.non_trigger_based) in iwl_mld_ftm_set_target_flags() 153 if ((peer->ftm.trigger_based || peer->ftm.non_trigger_based) && in iwl_mld_ftm_set_target_flags() 154 peer->ftm.lmr_feedback) in iwl_mld_ftm_set_target_flags() [all …]
|
| H A D | ftm-initiator.h | 9 * struct ftm_initiator_data - FTM initiator data 11 * @req: a pointer to cfg80211 FTM request 12 * @req_wdev: a pointer to the wdev that requested the current FTM request 13 * @responses: the number of responses received for the current FTM session.
|
| H A D | mld.h | 37 #include "ftm-initiator.h" 200 * @ftm_initiator: FTM initiator data
|
| /linux/Documentation/devicetree/bindings/timer/ |
| H A D | fsl,ftm-timer.yaml | 4 $id: http://devicetree.org/schemas/timer/fsl,ftm-timer.yaml# 7 title: Freescale FlexTimer Module (FTM) Timer 14 const: fsl,ftm-timer 32 - const: ftm-evt 33 - const: ftm-src 34 - const: ftm-evt-counter-en 35 - const: ftm-src-counter-en 53 ftm@400b8000 { 54 compatible = "fsl,ftm-timer"; 58 clock-names = "ftm-evt", "ftm-src", "ftm-evt-counter-en", "ftm-src-counter-en";
|
| /linux/drivers/clocksource/ |
| H A D | timer-fsl-ftm.c | 3 * Freescale FlexTimer Module (FTM) timer driver. 18 #include <linux/fsl/ftm.h> 99 * The CNT register contains the FTM counter value. in ftm_reset_counter() 123 /* Force the value of CNTIN to be loaded into the FTM counter */ in ftm_set_next_event() 129 * The TOF (the overflow flag) bit is set when the FTM counter in ftm_set_next_event() 170 .name = "Freescale ftm timer", 189 "Freescale ftm timer", &ftm_clockevent); in ftm_clockevent_init() 191 pr_err("ftm: setup irq failed: %d\n", err); in ftm_clockevent_init() 217 err = clocksource_mmio_init(priv->clksrc_base + FTM_CNT, "fsl-ftm", in ftm_clocksource_init() 221 pr_err("ftm: init clock source mmio failed: %d\n", err); in ftm_clocksource_init() [all …]
|
| /linux/Documentation/devicetree/bindings/rtc/ |
| H A D | fsl,ls-ftm-alarm.yaml | 4 $id: http://devicetree.org/schemas/rtc/fsl,ls-ftm-alarm.yaml# 7 title: Freescale FlexTimer Module (FTM) Alarm 15 - fsl,ls1012a-ftm-alarm 16 - fsl,ls1021a-ftm-alarm 17 - fsl,ls1028a-ftm-alarm 18 - fsl,ls1043a-ftm-alarm 19 - fsl,ls1046a-ftm-alarm 20 - fsl,ls1088a-ftm-alarm 21 - fsl,ls208xa-ftm-alarm 22 - fsl,lx2160a-ftm-alarm [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | ftm-initiator.c | 82 result.ftm.burst_index = mvm->ftm_initiator.responses[i]; in iwl_mvm_ftm_restart() 240 IWL_ERR(mvm, "Unsupported BW in FTM request (%d)\n", in iwl_mvm_ftm_target_chandef_v1() 301 IWL_ERR(mvm, "Unsupported BW in FTM request (%d)\n", in iwl_mvm_ftm_target_chandef_v2() 307 if (peer->ftm.trigger_based || peer->ftm.non_trigger_based) in iwl_mvm_ftm_target_chandef_v2() 331 cpu_to_le16(peer->ftm.burst_period); in iwl_mvm_ftm_put_target_v2() 332 target->samples_per_burst = peer->ftm.ftms_per_burst; in iwl_mvm_ftm_put_target_v2() 333 target->num_of_bursts = peer->ftm.num_bursts_exp; in iwl_mvm_ftm_put_target_v2() 334 target->measure_type = 0; /* regular two-sided FTM */ in iwl_mvm_ftm_put_target_v2() 335 target->retries_per_sample = peer->ftm.ftmr_retries; in iwl_mvm_ftm_put_target_v2() 336 target->asap_mode = peer->ftm.asap; in iwl_mvm_ftm_put_target_v2() [all …]
|
| H A D | Makefile | 9 iwlmvm-y += ftm-responder.o ftm-initiator.o
|
| /linux/drivers/rtc/ |
| H A D | rtc-fsl-ftm-alarm.c | 3 * Freescale FlexTimer Module (FTM) alarm device driver. 16 #include <linux/fsl/ftm.h> 87 * If the FTM counter reaches the FTM_MOD value between in ftm_irq_acknowledge() 99 * FTMx_CONF[NUMTOF] was seted as nonzero and FTM counter in ftm_irq_acknowledge() 103 * (FTM counter doesn't always reache the FTM_MOD anyway), in ftm_irq_acknowledge() 131 * The CNT register contains the FTM counter value. in ftm_reset_counter() 224 * The TOF (the overflow flag) bit is set when the FTM counter in ftm_rtc_set_alarm() 299 { .compatible = "fsl,ls1012a-ftm-alarm", }, 300 { .compatible = "fsl,ls1021a-ftm-alarm", }, 301 { .compatible = "fsl,ls1028a-ftm-alarm", }, [all …]
|
| H A D | Makefile | 73 obj-$(CONFIG_RTC_DRV_FSL_FTM_ALARM) += rtc-fsl-ftm-alarm.o
|
| /linux/include/linux/fsl/ |
| H A D | ftm.h | 17 #define FTM_EXTTRIG 0x6C /* FTM External Trigger */ 24 #define FTM_FLTPOL 0x88 /* FTM Fault Input Polarity */ 26 #define FTM_INVCTRL 0x90 /* FTM Inverting Control */ 27 #define FTM_SWOCTRL 0x94 /* FTM Software Output Control */ 28 #define FTM_PWMLOAD 0x98 /* FTM PWM Load */
|
| /linux/Documentation/devicetree/bindings/counter/ |
| H A D | fsl,ftm-quaddec.yaml | 4 $id: http://devicetree.org/schemas/counter/fsl,ftm-quaddec.yaml# 17 const: fsl,ftm-quaddec 33 compatible = "fsl,ftm-quaddec";
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | testmode.c | 81 struct wmi_ftm_cmd *ftm = (struct wmi_ftm_cmd *)skb->data; in ath10k_tm_event_segmented() local 89 if (skb->len < sizeof(*ftm)) { in ath10k_tm_event_segmented() 90 ath10k_warn(ar, "Invalid ftm event length: %d\n", skb->len); in ath10k_tm_event_segmented() 95 __le32_to_cpu(ftm->seg_hdr.segmentinfo)); in ath10k_tm_event_segmented() 97 __le32_to_cpu(ftm->seg_hdr.segmentinfo)); in ath10k_tm_event_segmented() 98 datalen = skb->len - sizeof(*ftm); in ath10k_tm_event_segmented() 99 buf_pos = ftm->data; in ath10k_tm_event_segmented() 109 ath10k_warn(ar, "Invalid ftm event length at %u: %u\n", in ath10k_tm_event_segmented() 571 "cmd wmi ftm cmd_id %d buffer length %d\n", in ath10k_tm_cmd_tlv() 613 ath10k_warn(ar, "failed to send wmi ftm command: %d\n", ret); in ath10k_tm_cmd_tlv()
|
| /linux/include/net/ |
| H A D | cfg80211.h | 1465 * @ftm_responder: enable FTM responder functionality; -1 for no change 4452 * struct cfg80211_ftm_responder_stats - FTM responder statistics 4456 * @success_num: number of FTM sessions in which all frames were successfully 4458 * @partial_num: number of FTM sessions in which part of frames were 4460 * @failed_num: number of failed FTM sessions 4461 * @asap_num: number of ASAP FTM sessions 4462 * @non_asap_num: number of non-ASAP FTM sessions 4465 * @unknown_triggers_num: number of unknown FTM triggers - triggers from 4468 * @reschedule_requests_num: number of FTM reschedule requests - initiator asks 4469 * for a new scheduling although it already has scheduled FTM slot [all …]
|
| /linux/drivers/net/wireless/virtual/ |
| H A D | mac80211_hwsim_main.c | 3600 struct nlattr *ftm; in mac80211_hwsim_send_pmsr_ftm_request_peer() local 3605 ftm = nla_nest_start(msg, NL80211_PMSR_TYPE_FTM); in mac80211_hwsim_send_pmsr_ftm_request_peer() 3606 if (!ftm) in mac80211_hwsim_send_pmsr_ftm_request_peer() 3694 nla_nest_end(msg, ftm); in mac80211_hwsim_send_pmsr_ftm_request_peer() 3734 err = mac80211_hwsim_send_pmsr_ftm_request_peer(msg, &request->ftm); in mac80211_hwsim_send_pmsr_request_peer() 3957 static int mac80211_hwsim_parse_ftm_result(struct nlattr *ftm, in mac80211_hwsim_parse_ftm_result() argument 3965 ftm, hwsim_ftm_result_policy, info->extack); in mac80211_hwsim_parse_ftm_result() 4167 ret = mac80211_hwsim_parse_ftm_result(pmsr, &result->ftm, info); in mac80211_hwsim_parse_pmsr_resp() 6665 NL_SET_ERR_MSG_ATTR(info->extack, ftm_capa, "malformed FTM capability"); in parse_ftm_capa() 6669 out->ftm.supported = 1; in parse_ftm_capa() [all …]
|
| /linux/drivers/counter/ |
| H A D | Makefile | 16 obj-$(CONFIG_FTM_QUADDEC) += ftm-quaddec.o
|
| H A D | Kconfig | 58 module will be called ftm-quaddec.
|
| /linux/drivers/net/wireless/ath/wcn36xx/ |
| H A D | testmode.h | 26 /* The request buffer of FTM which contains a byte of command and the request */
|
| /linux/include/uapi/linux/ |
| H A D | nl80211.h | 1218 * @NL80211_CMD_GET_FTM_RESPONDER_STATS: Retrieve FTM responder statistics, in 1328 * all TM/FTM frames (including ones that were enabled with specific MAC 2741 * measurement (FTM) responder functionality and containing parameters as 2744 * @NL80211_ATTR_FTM_RESPONDER_STATS: Nested attribute with FTM responder 5849 * secure LTF keys used in case of peer measurement request with FTM 7865 * @NL80211_FTM_RESP_ATTR_ENABLED: FTM responder is enabled 7873 * @NL80211_FTM_RESP_ATTR_MAX: highest FTM responder attribute. 7888 * enum nl80211_ftm_responder_stats - FTM responder statistics 7891 * when getting FTM responder statistics. 7894 * @NL80211_FTM_STATS_SUCCESS_NUM: number of FTM sessions in which all frames [all …]
|
| /linux/drivers/net/wireless/ath/wil6210/ |
| H A D | wmi.h | 3534 /* maximum supported FTM burst duration , wmi_tof_burst_duration_e */ 3563 /* FTM session ID */ 3584 /* Responder FTM Results */ 3611 /* FTM session ID */ 3621 /* responder number of FTM per burst */ 3623 /* responder number of FTM burst exponent */ 3635 /* actual received ftm per burst */ 3663 /* FTM session ID */
|
| /linux/Documentation/netlink/specs/ |
| H A D | nl80211.yaml | 144 - get-ftm-responder-stats 1069 name: ftm-responder 1072 name: ftm-responder-stats
|
| /linux/include/linux/ |
| H A D | ieee80211.h | 1144 } __packed ftm; member 2422 /* action frame - additionally check for non-bufferable FTM */ in ieee80211_is_bufferable_mmpdu() 2710 * ieee80211_is_ftm - check if frame is FTM response 2712 * Return: whether or not the frame is a valid FTM response action frame 2718 if (skb->len < IEEE80211_MIN_ACTION_SIZE(ftm)) in ieee80211_is_ftm()
|