/linux/drivers/counter/ |
H A D | ftm-quaddec.c | 5 * 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_t offset, uint32_t data) in ftm_write() argument [all …]
|
H A D | Makefile | 16 obj-$(CONFIG_FTM_QUADDEC) += ftm-quaddec.o
|
/linux/net/wireless/ |
H A D | pmsr.c | 20 if (!(rdev->wiphy.pmsr_capa->ftm.bandwidths & BIT(out->chandef.width))) { in pmsr_parse_ftm() 21 NL_SET_ERR_MSG(info->extack, "FTM: unsupported bandwidth"); in pmsr_parse_ftm() 33 out->ftm.requested = true; in pmsr_parse_ftm() 42 "FTM: must specify preamble"); in pmsr_parse_ftm() 47 if (!(capa->ftm.preambles & BIT(preamble))) { in pmsr_parse_ftm() 50 "FTM: invalid 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() [all …]
|
H A D | core.c | 774 if (WARN_ON(wiphy->pmsr_capa && !wiphy->pmsr_capa->ftm.supported)) in wiphy_register() 777 if (wiphy->pmsr_capa && wiphy->pmsr_capa->ftm.supported) { in wiphy_register() 778 if (WARN_ON(!wiphy->pmsr_capa->ftm.asap && in wiphy_register() 779 !wiphy->pmsr_capa->ftm.non_asap)) in wiphy_register() 781 if (WARN_ON(!wiphy->pmsr_capa->ftm.preambles || in wiphy_register() 782 !wiphy->pmsr_capa->ftm.bandwidths)) in wiphy_register() 784 if (WARN_ON(wiphy->pmsr_capa->ftm.preambles & in wiphy_register() 791 if (WARN_ON((wiphy->pmsr_capa->ftm.trigger_based || in wiphy_register() 792 wiphy->pmsr_capa->ftm.non_trigger_based) && in wiphy_register() 793 !(wiphy->pmsr_capa->ftm.preambles & in wiphy_register() [all …]
|
/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 30 - const: ftm-evt 31 - const: ftm-src 32 - const: ftm-evt-counter-en 33 - const: ftm-src-counter-en 51 ftm@400b8000 { 52 compatible = "fsl,ftm-timer"; 55 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/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | ftm-initiator.c | 183 result.ftm.burst_index = mvm->ftm_initiator.responses[i]; in iwl_mvm_ftm_restart() 341 IWL_ERR(mvm, "Unsupported BW in FTM request (%d)\n", in iwl_mvm_ftm_target_chandef_v1() 392 IWL_ERR(mvm, "Unsupported BW in FTM request (%d)\n", in iwl_mvm_ftm_target_chandef_v2() 398 if (peer->ftm.trigger_based || peer->ftm.non_trigger_based) in iwl_mvm_ftm_target_chandef_v2() 422 cpu_to_le16(peer->ftm.burst_period); in iwl_mvm_ftm_put_target_v2() 423 target->samples_per_burst = peer->ftm.ftms_per_burst; in iwl_mvm_ftm_put_target_v2() 424 target->num_of_bursts = peer->ftm.num_bursts_exp; in iwl_mvm_ftm_put_target_v2() 425 target->measure_type = 0; /* regular two-sided FTM */ in iwl_mvm_ftm_put_target_v2() 426 target->retries_per_sample = peer->ftm.ftmr_retries; in iwl_mvm_ftm_put_target_v2() 427 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/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/Documentation/devicetree/bindings/pwm/ |
H A D | fsl,vf610-ftm-pwm.yaml | 4 $id: http://devicetree.org/schemas/pwm/fsl,vf610-ftm-pwm.yaml# 7 title: Freescale FlexTimer Module (FTM) PWM controller 10 The same FTM PWM device can have a different endianness on different SoCs. The 13 for the endianness of the FTM PWM block as integrated into the existing SoCs: 15 SoC | FTM-PWM endianness 30 - fsl,vf610-ftm-pwm 31 - fsl,imx8qm-ftm-pwm 62 Boolean property, required if the FTM PWM registers use a big- 81 compatible = "fsl,vf610-ftm-pwm";
|
/linux/drivers/rtc/ |
H A D | rtc-fsl-ftm-alarm.c | 3 * 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 …]
|
/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/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | datapath.h | 175 * struct iwl_time_sync_cfg_cmd - TM/FTM time sync measurement configuration 179 * @peer_addr: peer address with which TM/FTM measurements are required 237 * @ftm: FTM specific vendor element 238 * @ftm.element_id: element id of vendor specific ie 239 * @ftm.length: length of vendor specific ie 240 * @ftm.reserved: for alignment 241 * @ftm.data: vendor specific data blob 248 /* Differentiate between FTM and TM specific Vendor elements */ 255 } ftm; member 266 * for TM/FTM, along with additional meta data. [all …]
|
H A D | commands.h | 271 * measurement notification for TM/FTM. Sent on receipt of 273 * frame for FTM protocol from peer device along with additional 280 * measurement confirmation notification for TM/FTM. Sent on 281 * receipt of Ack from peer for previously Tx'ed TM/FTM
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | testmode.c | 110 "event wmi cmd_id %d ftm event msg %pK 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()
|
H A D | testmode_i.h | 58 /* The command used to transmit a FTM WMI command to the firmware
|
/linux/arch/arm/boot/dts/nxp/ls/ |
H A D | ls1021a.dtsi | 396 compatible = "fsl,ftm-quaddec"; 403 compatible = "fsl,ftm-quaddec"; 410 compatible = "fsl,ftm-quaddec"; 417 compatible = "fsl,ftm-quaddec"; 518 compatible = "fsl,vf610-ftm-pwm"; 530 compatible = "fsl,vf610-ftm-pwm"; 542 compatible = "fsl,vf610-ftm-pwm"; 554 compatible = "fsl,vf610-ftm-pwm"; 566 compatible = "fsl,vf610-ftm-pwm"; 578 compatible = "fsl,vf610-ftm-pwm"; [all …]
|
/linux/drivers/pwm/ |
H A D | pwm-fsl-ftm.c | 3 * Freescale FlexTimer Module (FTM) PWM Driver 20 #include <linux/fsl/ftm.h> 242 * The Freescale FTM controller supports only a single period for in fsl_pwm_apply_config() 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");
|
H A D | Kconfig | 235 tristate "Freescale FlexTimer Module (FTM) PWM support" 240 Generic FTM PWM framework driver for Freescale VF610 and 244 will be called pwm-fsl-ftm.
|
/linux/Documentation/devicetree/bindings/counter/ |
H A D | ftm-quaddec.txt | 6 - compatible: Must be "fsl,ftm-quaddec". 14 compatible = "fsl,ftm-quaddec";
|
/linux/arch/arm/boot/dts/nxp/vf/ |
H A D | vfxxx.dtsi | 241 compatible = "fsl,vf610-ftm-pwm"; 254 compatible = "fsl,vf610-ftm-pwm"; 605 ftm: ftm@400b8000 { label 606 compatible = "fsl,ftm-timer"; 609 clock-names = "ftm-evt", "ftm-src", 610 "ftm-evt-counter-en", "ftm-src-counter-en";
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls1028a.dtsi | 1232 compatible = "fsl,vf610-ftm-pwm"; 1243 compatible = "fsl,vf610-ftm-pwm"; 1254 compatible = "fsl,vf610-ftm-pwm"; 1265 compatible = "fsl,vf610-ftm-pwm"; 1276 compatible = "fsl,vf610-ftm-pwm"; 1287 compatible = "fsl,vf610-ftm-pwm"; 1298 compatible = "fsl,vf610-ftm-pwm"; 1309 compatible = "fsl,vf610-ftm-pwm"; 1327 compatible = "fsl,ls1028a-ftm-alarm"; 1335 compatible = "fsl,ls1028a-ftm-alarm";
|
/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/net/ |
H A D | cfg80211.h | 1353 * @ftm_responder: enable FTM responder functionality; -1 for no change 3900 * struct cfg80211_ftm_responder_stats - FTM responder statistics 3904 * @success_num: number of FTM sessions in which all frames were successfully 3906 * @partial_num: number of FTM sessions in which part of frames were 3908 * @failed_num: number of failed FTM sessions 3909 * @asap_num: number of ASAP FTM sessions 3910 * @non_asap_num: number of non-ASAP FTM sessions 3913 * @unknown_triggers_num: number of unknown FTM triggers - triggers from 3916 * @reschedule_requests_num: number of FTM reschedule requests - initiator asks 3917 * for a new scheduling although it already has scheduled FTM slot [all …]
|
/linux/drivers/clk/imx/ |
H A D | clk-vf610.c | 96 /* FTM counter clock source, not module clock */ 346 * ftm_ext_clk and ftm_fix_clk are FTM timer counter's in vf610_clocks_init() 364 /* ftm(n)_clk are FTM module operation clock */ in vf610_clocks_init()
|