Home
last modified time | relevance | path

Searched refs:ftm (Results 1 - 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/counter/
H A Dftm-quaddec.c9 #include <linux/fsl/ftm.h>
18 #define FTM_FIELD_UPDATE(ftm, offset, mask, val) \
21 ftm_read(ftm, offset, &flags); \
24 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_t offset, uint32_t data) in ftm_write() argument
45 if (ftm in ftm_write()
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
121 struct ftm_quaddec *ftm = counter->priv; ftm_quaddec_get_prescaler() local
135 struct ftm_quaddec *ftm = counter->priv; ftm_quaddec_set_prescaler() local
183 struct ftm_quaddec *const ftm = counter->priv; ftm_quaddec_count_read() local
197 struct ftm_quaddec *const ftm = counter->priv; ftm_quaddec_count_write() local
277 struct ftm_quaddec *ftm; ftm_quaddec_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/counter/
H A Dftm-quaddec.c9 #include <linux/fsl/ftm.h>
19 #define FTM_FIELD_UPDATE(ftm, offset, mask, val) \
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_t offset, uint32_t data) in ftm_write() argument
45 if (ftm in ftm_write()
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
/kernel/linux/linux-6.6/net/wireless/
H A Dpmsr.c20 if (!(rdev->wiphy.pmsr_capa->ftm.bandwidths & BIT(out->chandef.width))) { in pmsr_parse_ftm()
33 out->ftm.requested = true; in pmsr_parse_ftm()
47 if (!(capa->ftm.preambles & BIT(preamble))) { in pmsr_parse_ftm()
54 out->ftm.preamble = preamble; in pmsr_parse_ftm()
56 out->ftm.burst_period = 0; in pmsr_parse_ftm()
58 out->ftm.burst_period = in pmsr_parse_ftm()
61 out->ftm.asap = !!tb[NL80211_PMSR_FTM_REQ_ATTR_ASAP]; in pmsr_parse_ftm()
62 if (out->ftm.asap && !capa->ftm.asap) { in pmsr_parse_ftm()
69 if (!out->ftm in pmsr_parse_ftm()
[all...]
H A Dcore.c727 if (WARN_ON(wiphy->pmsr_capa && !wiphy->pmsr_capa->ftm.supported)) in wiphy_register()
730 if (wiphy->pmsr_capa && wiphy->pmsr_capa->ftm.supported) { in wiphy_register()
731 if (WARN_ON(!wiphy->pmsr_capa->ftm.asap && in wiphy_register()
732 !wiphy->pmsr_capa->ftm.non_asap)) in wiphy_register()
734 if (WARN_ON(!wiphy->pmsr_capa->ftm.preambles || in wiphy_register()
735 !wiphy->pmsr_capa->ftm.bandwidths)) in wiphy_register()
737 if (WARN_ON(wiphy->pmsr_capa->ftm.preambles & in wiphy_register()
744 if (WARN_ON((wiphy->pmsr_capa->ftm.trigger_based || in wiphy_register()
745 wiphy->pmsr_capa->ftm.non_trigger_based) && in wiphy_register()
746 !(wiphy->pmsr_capa->ftm in wiphy_register()
[all...]
H A Dnl80211.c2137 struct nlattr *ftm; in nl80211_send_pmsr_ftm_capa() local
2139 if (!cap->ftm.supported) in nl80211_send_pmsr_ftm_capa()
2142 ftm = nla_nest_start_noflag(msg, NL80211_PMSR_TYPE_FTM); in nl80211_send_pmsr_ftm_capa()
2143 if (!ftm) in nl80211_send_pmsr_ftm_capa()
2146 if (cap->ftm.asap && nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_ASAP)) in nl80211_send_pmsr_ftm_capa()
2148 if (cap->ftm.non_asap && in nl80211_send_pmsr_ftm_capa()
2151 if (cap->ftm.request_lci && in nl80211_send_pmsr_ftm_capa()
2154 if (cap->ftm.request_civicloc && in nl80211_send_pmsr_ftm_capa()
2158 cap->ftm.preambles)) in nl80211_send_pmsr_ftm_capa()
2161 cap->ftm in nl80211_send_pmsr_ftm_capa()
[all...]
/kernel/linux/linux-5.10/net/wireless/
H A Dpmsr.c22 if (!(rdev->wiphy.pmsr_capa->ftm.bandwidths & BIT(out->chandef.width))) { in pmsr_parse_ftm()
35 out->ftm.requested = true; in pmsr_parse_ftm()
49 if (!(capa->ftm.preambles & BIT(preamble))) { in pmsr_parse_ftm()
56 out->ftm.preamble = preamble; in pmsr_parse_ftm()
58 out->ftm.burst_period = 0; in pmsr_parse_ftm()
60 out->ftm.burst_period = in pmsr_parse_ftm()
63 out->ftm.asap = !!tb[NL80211_PMSR_FTM_REQ_ATTR_ASAP]; in pmsr_parse_ftm()
64 if (out->ftm.asap && !capa->ftm.asap) { in pmsr_parse_ftm()
71 if (!out->ftm in pmsr_parse_ftm()
[all...]
H A Dcore.c684 if (WARN_ON(wiphy->pmsr_capa && !wiphy->pmsr_capa->ftm.supported)) in wiphy_register()
687 if (wiphy->pmsr_capa && wiphy->pmsr_capa->ftm.supported) { in wiphy_register()
688 if (WARN_ON(!wiphy->pmsr_capa->ftm.asap && in wiphy_register()
689 !wiphy->pmsr_capa->ftm.non_asap)) in wiphy_register()
691 if (WARN_ON(!wiphy->pmsr_capa->ftm.preambles || in wiphy_register()
692 !wiphy->pmsr_capa->ftm.bandwidths)) in wiphy_register()
694 if (WARN_ON(wiphy->pmsr_capa->ftm.preambles & in wiphy_register()
701 if (WARN_ON((wiphy->pmsr_capa->ftm.trigger_based || in wiphy_register()
702 wiphy->pmsr_capa->ftm.non_trigger_based) && in wiphy_register()
703 !(wiphy->pmsr_capa->ftm in wiphy_register()
[all...]
H A Dnl80211.c1935 struct nlattr *ftm; in nl80211_send_pmsr_ftm_capa() local
1937 if (!cap->ftm.supported) in nl80211_send_pmsr_ftm_capa()
1940 ftm = nla_nest_start_noflag(msg, NL80211_PMSR_TYPE_FTM); in nl80211_send_pmsr_ftm_capa()
1941 if (!ftm) in nl80211_send_pmsr_ftm_capa()
1944 if (cap->ftm.asap && nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_ASAP)) in nl80211_send_pmsr_ftm_capa()
1946 if (cap->ftm.non_asap && in nl80211_send_pmsr_ftm_capa()
1949 if (cap->ftm.request_lci && in nl80211_send_pmsr_ftm_capa()
1952 if (cap->ftm.request_civicloc && in nl80211_send_pmsr_ftm_capa()
1956 cap->ftm.preambles)) in nl80211_send_pmsr_ftm_capa()
1959 cap->ftm in nl80211_send_pmsr_ftm_capa()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dftm-initiator.c175 result.ftm.burst_index = mvm->ftm_initiator.responses[i]; in iwl_mvm_ftm_restart()
390 if (peer->ftm.trigger_based || peer->ftm.non_trigger_based) in iwl_mvm_ftm_target_chandef_v2()
414 cpu_to_le16(peer->ftm.burst_period); in iwl_mvm_ftm_put_target_v2()
415 target->samples_per_burst = peer->ftm.ftms_per_burst; in iwl_mvm_ftm_put_target_v2()
416 target->num_of_bursts = peer->ftm.num_bursts_exp; in iwl_mvm_ftm_put_target_v2()
418 target->retries_per_sample = peer->ftm.ftmr_retries; in iwl_mvm_ftm_put_target_v2()
419 target->asap_mode = peer->ftm.asap; in iwl_mvm_ftm_put_target_v2()
422 if (peer->ftm.request_lci) in iwl_mvm_ftm_put_target_v2()
424 if (peer->ftm in iwl_mvm_ftm_put_target_v2()
[all...]
H A Dtime-sync.c23 skb_dialog_token = mgmt->u.action.u.ftm.dialog_token; in iwl_mvm_is_skb_match()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dftm-initiator.c209 result.ftm.burst_index = mvm->ftm_initiator.responses[i]; in iwl_mvm_ftm_restart()
412 if (peer->ftm.trigger_based || peer->ftm.non_trigger_based) in iwl_mvm_ftm_target_chandef_v2()
436 cpu_to_le16(peer->ftm.burst_period); in iwl_mvm_ftm_put_target_v2()
437 target->samples_per_burst = peer->ftm.ftms_per_burst; in iwl_mvm_ftm_put_target_v2()
438 target->num_of_bursts = peer->ftm.num_bursts_exp; in iwl_mvm_ftm_put_target_v2()
440 target->retries_per_sample = peer->ftm.ftmr_retries; in iwl_mvm_ftm_put_target_v2()
441 target->asap_mode = peer->ftm.asap; in iwl_mvm_ftm_put_target_v2()
444 if (peer->ftm.request_lci) in iwl_mvm_ftm_put_target_v2()
446 if (peer->ftm in iwl_mvm_ftm_put_target_v2()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/virtual/
H A Dmac80211_hwsim.c3262 struct nlattr *ftm; in mac80211_hwsim_send_pmsr_ftm_request_peer() local
3267 ftm = nla_nest_start(msg, NL80211_PMSR_TYPE_FTM); in mac80211_hwsim_send_pmsr_ftm_request_peer()
3268 if (!ftm) in mac80211_hwsim_send_pmsr_ftm_request_peer()
3315 nla_nest_end(msg, ftm); in mac80211_hwsim_send_pmsr_ftm_request_peer()
3355 err = mac80211_hwsim_send_pmsr_ftm_request_peer(msg, &request->ftm); in mac80211_hwsim_send_pmsr_request_peer()
3574 static int mac80211_hwsim_parse_ftm_result(struct nlattr *ftm, in mac80211_hwsim_parse_ftm_result() argument
3582 ftm, hwsim_ftm_result_policy, info->extack); in mac80211_hwsim_parse_ftm_result()
3721 ret = mac80211_hwsim_parse_ftm_result(pmsr, &result->ftm, info); in mac80211_hwsim_parse_pmsr_resp()
5788 out->ftm.supported = 1; in parse_ftm_capa()
5790 out->ftm in parse_ftm_capa()
[all...]
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-fsl-ftm-alarm.c20 #include <linux/fsl/ftm.h>
303 { .compatible = "fsl,ls1012a-ftm-alarm", },
304 { .compatible = "fsl,ls1021a-ftm-alarm", },
305 { .compatible = "fsl,ls1028a-ftm-alarm", },
306 { .compatible = "fsl,ls1043a-ftm-alarm", },
307 { .compatible = "fsl,ls1046a-ftm-alarm", },
308 { .compatible = "fsl,ls1088a-ftm-alarm", },
309 { .compatible = "fsl,ls208xa-ftm-alarm", },
310 { .compatible = "fsl,lx2160a-ftm-alarm", },
324 .name = "ftm
[all...]
H A DMakefile71 obj-$(CONFIG_RTC_DRV_FSL_FTM_ALARM) += rtc-fsl-ftm-alarm.o
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-fsl-ftm-alarm.c17 #include <linux/fsl/ftm.h>
300 { .compatible = "fsl,ls1012a-ftm-alarm", },
301 { .compatible = "fsl,ls1021a-ftm-alarm", },
302 { .compatible = "fsl,ls1028a-ftm-alarm", },
303 { .compatible = "fsl,ls1043a-ftm-alarm", },
304 { .compatible = "fsl,ls1046a-ftm-alarm", },
305 { .compatible = "fsl,ls1088a-ftm-alarm", },
306 { .compatible = "fsl,ls208xa-ftm-alarm", },
307 { .compatible = "fsl,lx2160a-ftm-alarm", },
321 .name = "ftm
[all...]
H A DMakefile69 obj-$(CONFIG_RTC_DRV_FSL_FTM_ALARM) += rtc-fsl-ftm-alarm.o
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Ddatapath.h243 } ftm; /* FTM specific vendor IE */ member
/kernel/linux/linux-5.10/drivers/clocksource/
H A Dtimer-fsl-ftm.c18 #include <linux/fsl/ftm.h>
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()
238 pr_err("ftm: Cannot get \"%s\": %ld\n", cnt_name, PTR_ERR(clk)); in __ftm_clk_init()
243 pr_err("ftm: clock failed to prepare+enable \"%s\": %d\n", in __ftm_clk_init()
250 pr_err("ftm: Cannot get \"%s\": %ld\n", ftm_name, PTR_ERR(clk)); in __ftm_clk_init()
255 pr_err("ftm in __ftm_clk_init()
[all...]
/kernel/linux/linux-6.6/drivers/clocksource/
H A Dtimer-fsl-ftm.c18 #include <linux/fsl/ftm.h>
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()
238 pr_err("ftm: Cannot get \"%s\": %ld\n", cnt_name, PTR_ERR(clk)); in __ftm_clk_init()
243 pr_err("ftm: clock failed to prepare+enable \"%s\": %d\n", in __ftm_clk_init()
250 pr_err("ftm: Cannot get \"%s\": %ld\n", ftm_name, PTR_ERR(clk)); in __ftm_clk_init()
255 pr_err("ftm in __ftm_clk_init()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dieee80211.h1405 } __packed ftm; member
4280 if (skb->len < offsetofend(typeof(*mgmt), u.action.u.ftm.action_code)) in ieee80211_is_bufferable_mmpdu()
4289 if (mgmt->u.action.u.ftm.action_code == WLAN_PUB_ACTION_FTM_REQUEST || in ieee80211_is_bufferable_mmpdu()
4290 mgmt->u.action.u.ftm.action_code == WLAN_PUB_ACTION_FTM_RESPONSE) in ieee80211_is_bufferable_mmpdu()
4571 if (mgmt->u.action.u.ftm.action_code == in ieee80211_is_ftm()
4573 skb->len >= offsetofend(typeof(*mgmt), u.action.u.ftm)) in ieee80211_is_ftm()
/kernel/linux/linux-5.10/drivers/pwm/
H A Dpwm-fsl-ftm.c21 #include <linux/fsl/ftm.h>
547 { .compatible = "fsl,vf610-ftm-pwm", .data = &vf610_ftm_pwm },
548 { .compatible = "fsl,imx8qm-ftm-pwm", .data = &imx8qm_ftm_pwm },
555 .name = "fsl-ftm-pwm",
566 MODULE_ALIAS("platform:fsl-ftm-pwm");
/kernel/linux/linux-6.6/drivers/pwm/
H A Dpwm-fsl-ftm.c20 #include <linux/fsl/ftm.h>
530 { .compatible = "fsl,vf610-ftm-pwm", .data = &vf610_ftm_pwm },
531 { .compatible = "fsl,imx8qm-ftm-pwm", .data = &imx8qm_ftm_pwm },
538 .name = "fsl-ftm-pwm",
548 MODULE_ALIAS("platform:fsl-ftm-pwm");
/kernel/linux/linux-5.10/include/net/
H A Dcfg80211.h3447 struct cfg80211_pmsr_ftm_result ftm; member
3492 * @ftm: FTM data, see &struct cfg80211_pmsr_ftm_request_peer
3498 struct cfg80211_pmsr_ftm_request_peer ftm; member
4643 * @ftm.supported: FTM measurement is supported
4644 * @ftm.asap: ASAP-mode is supported
4645 * @ftm.non_asap: non-ASAP-mode is supported
4646 * @ftm.request_lci: can request LCI data
4647 * @ftm.request_civicloc: can request civic location data
4648 * @ftm.preambles: bitmap of preambles supported (&enum nl80211_preamble)
4649 * @ftm
4675 } ftm; global() member
[all...]
/kernel/linux/linux-6.6/include/net/
H A Dcfg80211.h3846 * @ftm: FTM result
3860 struct cfg80211_pmsr_ftm_result ftm; member
3912 * @ftm: FTM data, see &struct cfg80211_pmsr_ftm_request_peer
3918 struct cfg80211_pmsr_ftm_request_peer ftm; member
5168 * @ftm: FTM measurement data
5169 * @ftm.supported: FTM measurement is supported
5170 * @ftm.asap: ASAP-mode is supported
5171 * @ftm.non_asap: non-ASAP-mode is supported
5172 * @ftm.request_lci: can request LCI data
5173 * @ftm
5201 } ftm; global() member
[all...]

Completed in 102 milliseconds

12