Home
last modified time | relevance | path

Searched full:ftm (Results 1 – 25 of 36) sorted by relevance

12

/linux/drivers/counter/
H A Dftm-quaddec.c5 * This module implements a driver for decoding the FTM quadrature
9 #include <linux/fsl/ftm.h>
19 #define FTM_FIELD_UPDATE(ftm, offset, mask, val) \ argument
22 ftm_read(ftm, offset, &flags); \
25 ftm_write(ftm, offset, flags); \
35 static void ftm_read(struct ftm_quaddec *ftm, uint32_t offset, uint32_t *data) in ftm_read() argument
37 if (ftm->big_endian) in ftm_read()
38 *data = ioread32be(ftm->ftm_base + offset); in ftm_read()
40 *data = ioread32(ftm->ftm_base + offset); in ftm_read()
43 static void ftm_write(struct ftm_quaddec *ftm, uint32_ argument
52 ftm_clear_write_protection(struct ftm_quaddec * ftm) ftm_clear_write_protection() argument
63 ftm_set_write_protection(struct ftm_quaddec * ftm) ftm_set_write_protection() argument
68 ftm_reset_counter(struct ftm_quaddec * ftm) ftm_reset_counter() argument
74 ftm_quaddec_init(struct ftm_quaddec * ftm) ftm_quaddec_init() argument
103 ftm_quaddec_disable(void * ftm) ftm_quaddec_disable() argument
120 struct ftm_quaddec *ftm = counter_priv(counter); ftm_quaddec_get_prescaler() local
133 struct ftm_quaddec *ftm = counter_priv(counter); ftm_quaddec_set_prescaler() local
164 struct ftm_quaddec *const ftm = counter_priv(counter); ftm_quaddec_count_read() local
178 struct ftm_quaddec *const ftm = counter_priv(counter); ftm_quaddec_count_write() local
262 struct ftm_quaddec *ftm; ftm_quaddec_probe() local
[all...]
H A DMakefile16 obj-$(CONFIG_FTM_QUADDEC) += ftm-quaddec.o
H A DKconfig58 module will be called ftm-quaddec.
/linux/net/wireless/
H A Dpmsr.c20 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 in pmsr_parse_ftm()
[all...]
H A Dcore.c891 if (WARN_ON(wiphy->pmsr_capa && !wiphy->pmsr_capa->ftm.supported)) in wiphy_register()
894 if (wiphy->pmsr_capa && wiphy->pmsr_capa->ftm.supported) { in wiphy_register()
895 if (WARN_ON(!wiphy->pmsr_capa->ftm.asap && in wiphy_register()
896 !wiphy->pmsr_capa->ftm.non_asap)) in wiphy_register()
898 if (WARN_ON(!wiphy->pmsr_capa->ftm.preambles || in wiphy_register()
899 !wiphy->pmsr_capa->ftm.bandwidths)) in wiphy_register()
901 if (WARN_ON(wiphy->pmsr_capa->ftm.preambles & in wiphy_register()
908 if (WARN_ON((wiphy->pmsr_capa->ftm.trigger_based || in wiphy_register()
909 wiphy->pmsr_capa->ftm.non_trigger_based) && in wiphy_register()
910 !(wiphy->pmsr_capa->ftm in wiphy_register()
[all...]
H A Dnl80211.c2481 struct nlattr *ftm; in nl80211_send_pmsr_ftm_capa()
2483 if (!cap->ftm.supported) in nl80211_send_pmsr_ftm_capa()
2486 ftm = nla_nest_start_noflag(msg, NL80211_PMSR_TYPE_FTM); in nl80211_send_pmsr_ftm_capa()
2487 if (!ftm) in nl80211_send_pmsr_ftm_capa()
2490 if (cap->ftm.asap && nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_ASAP)) in nl80211_send_pmsr_ftm_capa()
2492 if (cap->ftm.non_asap && in nl80211_send_pmsr_ftm_capa()
2495 if (cap->ftm.request_lci && in nl80211_send_pmsr_ftm_capa()
2498 if (cap->ftm.request_civicloc && in nl80211_send_pmsr_ftm_capa()
2502 cap->ftm.preambles)) in nl80211_send_pmsr_ftm_capa()
2505 cap->ftm in nl80211_send_pmsr_ftm_capa()
2449 struct nlattr *ftm; nl80211_send_pmsr_ftm_capa() local
[all...]
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dftm-initiator.c15 #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)
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_sta()
150 else if (peer->ftm.non_trigger_based) in iwl_mld_ftm_set_sta()
153 if ((peer->ftm in iwl_mld_ftm_set_sta()
[all...]
H A Dftm-initiator.h9 * 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 Dnotif.c37 #include "ftm-initiator.h"
/linux/Documentation/devicetree/bindings/timer/
H A Dfsl,ftm-timer.yaml4 $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 Dtimer-fsl-ftm.c3 * 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 Dfsl,ls-ftm-alarm.yaml4 $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/rtc/
H A Drtc-fsl-ftm-alarm.c3 * Freescale FlexTimer Module (FTM) alarm device driver.
17 #include <linux/fsl/ftm.h>
88 * If the FTM counter reaches the FTM_MOD value between in ftm_irq_acknowledge()
100 * FTMx_CONF[NUMTOF] was seted as nonzero and FTM counter in ftm_irq_acknowledge()
104 * (FTM counter doesn't always reache the FTM_MOD anyway), in ftm_irq_acknowledge()
132 * The CNT register contains the FTM counter value. in ftm_reset_counter()
225 * The TOF (the overflow flag) bit is set when the FTM counter in ftm_rtc_set_alarm()
300 { .compatible = "fsl,ls1012a-ftm-alarm", },
301 { .compatible = "fsl,ls1021a-ftm-alarm", },
302 { .compatible = "fsl,ls1028a-ftm-alarm", },
[all …]
H A DKconfig1477 LS1088A, LS208xA, we can use FTM as the wakeup source.
1479 Say y here to enable FTM alarm support. The FTM alarm provides
1483 will be called "rtc-fsl-ftm-alarm".
H A DMakefile73 obj-$(CONFIG_RTC_DRV_FSL_FTM_ALARM) += rtc-fsl-ftm-alarm.o
/linux/include/linux/fsl/
H A Dftm.h17 #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 Dfsl,ftm-quaddec.yaml4 $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/ath11k/
H A Dtestmode.c110 "event wmi cmd_id %d ftm event msg %p datalen %d\n", in ath11k_tm_process_event()
144 ath11k_warn(ab, "Invalid ftm event length at %d: %d\n", in ath11k_tm_process_event()
204 ath11k_warn(ab, "failed to parse ftm event tlv: %d\n", ret); in ath11k_tm_wmi_event_segmented()
210 ath11k_warn(ab, "failed to fetch ftm msg\n"); in ath11k_tm_wmi_event_segmented()
218 ath11k_warn(ab, "Failed to process ftm event\n"); in ath11k_tm_wmi_event_segmented()
422 "cmd wmi ftm cmd_id %d buffer length %d\n", in ath11k_tm_cmd_wmi_ftm()
459 ath11k_warn(ar->ab, "failed to send wmi ftm command: %d\n", ret); in ath11k_tm_cmd_wmi_ftm()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A DMakefile9 iwlmvm-y += ftm-responder.o ftm-initiator.o
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Dcommands.h268 * measurement notification for TM/FTM. Sent on receipt of
270 * frame for FTM protocol from peer device along with additional
277 * measurement confirmation notification for TM/FTM. Sent on
278 * receipt of Ack from peer for previously Tx'ed TM/FTM
/linux/drivers/net/wireless/ath/wcn36xx/
H A Dtestmode.h26 /* The request buffer of FTM which contains a byte of command and the request */
/linux/drivers/net/wireless/ath/
H A Dtestmode_i.h58 /* The command used to transmit a FTM WMI command to the firmware
/linux/drivers/pwm/
H A DKconfig263 tristate "Freescale FlexTimer Module (FTM) PWM support"
268 Generic FTM PWM framework driver for Freescale VF610 and
272 will be called pwm-fsl-ftm.
/linux/drivers/net/wireless/virtual/
H A Dmac80211_hwsim.c
/linux/drivers/net/wireless/ath/wil6210/
H A Dwmi.h3534 /* 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 */

12