| /freebsd-src/contrib/wpa/src/ap/ |
| H A D | dfs.c | 2 * DFS - Dynamic Frequency Selection 3 * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi> 4 * Copyright (c) 2013-2017, Qualcomm Atheros, Inc. 25 DFS_AVAILABLE, /* non-radar or radar-available */ in dfs_get_used_n_chans() 26 DFS_NO_CAC_YET, /* radar-not-yet-available */ in dfs_get_used_n_chans() 38 return (iface->drv_flags2 & WPA_DRIVER_FLAGS2_RADAR_BACKGROUND) && in dfs_get_used_n_chans() 39 iface->con in dfs_get_used_n_chans() 126 dfs_get_chan_data(struct hostapd_hw_modes * mode,int freq,int first_chan_idx) dfs_get_chan_data() argument 571 set_dfs_state_freq(struct hostapd_iface * iface,int freq,u32 state) set_dfs_state_freq() argument 597 set_dfs_state(struct hostapd_iface * iface,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2,u32 state) set_dfs_state() argument 663 dfs_are_channels_overlapped(struct hostapd_iface * iface,int freq,int chan_width,int cf1,int cf2) dfs_are_channels_overlapped() argument 879 hostapd_dfs_complete_cac(struct hostapd_iface * iface,int success,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2) hostapd_dfs_complete_cac() argument 921 hostapd_dfs_pre_cac_expired(struct hostapd_iface * iface,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2) hostapd_dfs_pre_cac_expired() argument 1171 hostapd_dfs_radar_detected(struct hostapd_iface * iface,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2) hostapd_dfs_radar_detected() argument 1206 hostapd_dfs_nop_finished(struct hostapd_iface * iface,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2) hostapd_dfs_nop_finished() argument 1258 hostapd_dfs_start_cac(struct hostapd_iface * iface,int freq,int ht_enabled,int chan_offset,int chan_width,int cf1,int cf2) hostapd_dfs_start_cac() argument [all...] |
| H A D | hw_features.c | 3 * Copyright 2002-2003, Instant802 Networks, Inc. 4 * Copyright 2005-2006, Devicescape Software, Inc. 5 * Copyright (c) 2008-2012, Jouni Malinen <j@w1.fi> 51 switch (chan->flag & HOSTAPD_CHAN_DFS_MASK) { in dfs_info() 68 info[sizeof(info) - 1] = '\0'; in dfs_info() 77 struct hostapd_data *hapd = iface->bss[0]; in hostapd_get_hw_features() 87 return -1; in hostapd_get_hw_features() 95 return -1; in hostapd_get_hw_features() 98 iface->hw_flag in hostapd_get_hw_features() 852 int freq = 56160 + 2160 * (i + 1); hostapd_is_usable_edmg() local 1171 hostapd_hw_get_channel(struct hostapd_data * hapd,int freq) hostapd_hw_get_channel() argument [all...] |
| H A D | drv_callbacks.c | 3 * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi> 59 __func__, MAC2STR(sta->addr)); in hostapd_notify_assoc_fils_finish() 61 if (!sta->fils_pending_assoc_req) in hostapd_notify_assoc_fils_finish() 64 if (ieee802_11_parse_elems(sta->fils_pending_assoc_req, in hostapd_notify_assoc_fils_finish() 65 sta->fils_pending_assoc_req_len, &elems, in hostapd_notify_assoc_fils_finish() 73 p = hostapd_eid_assoc_fils_session(sta->wpa_sm, p, in hostapd_notify_assoc_fils_finish() 75 sta->fils_hlp_resp); in hostapd_notify_assoc_fils_finish() 77 reply_res = hostapd_sta_assoc(hapd, sta->addr, in hostapd_notify_assoc_fils_finish() 78 sta->fils_pending_assoc_is_reassoc, in hostapd_notify_assoc_fils_finish() 80 buf, p - bu in hostapd_notify_assoc_fils_finish() 862 hostapd_event_ch_switch(struct hostapd_data * hapd,int freq,int ht,int offset,int width,int cf1,int cf2,int finished) hostapd_event_ch_switch() argument 1555 hostapd_get_mode_chan(struct hostapd_hw_modes * mode,unsigned int freq) hostapd_get_mode_chan() argument 1571 hostapd_get_mode_channel(struct hostapd_iface * iface,unsigned int freq) hostapd_get_mode_channel() argument [all...] |
| /freebsd-src/contrib/wpa/src/common/ |
| H A D | hw_features_common.c | 3 * Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi> 20 int chan, int *freq) in hw_get_channel_chan() argument 24 if (freq) in hw_get_channel_chan() 25 *freq = 0; in hw_get_channel_chan() 30 for (i = 0; i < mode->num_channels; i++) { in hw_get_channel_chan() 31 struct hostapd_channel_data *ch = &mode->channels[i]; in hw_get_channel_chan() 32 if (ch->chan == chan) { in hw_get_channel_chan() 33 if (freq) in hw_get_channel_chan() 34 *freq = ch->fre in hw_get_channel_chan() 44 hw_mode_get_channel(struct hostapd_hw_modes * mode,int freq,int * chan) hw_mode_get_channel() argument 63 hw_get_channel_freq(enum hostapd_hw_mode mode,int freq,int * chan,struct hostapd_hw_modes * hw_features,int num_hw_features) hw_get_channel_freq() argument 92 int freq; hw_get_freq() local 100 hw_get_chan(enum hostapd_hw_mode mode,int freq,struct hostapd_hw_modes * hw_features,int num_hw_features) hw_get_chan() argument 383 hostapd_set_freq_params(struct hostapd_freq_params * data,enum hostapd_hw_mode mode,int freq,int channel,int enable_edmg,u8 edmg_channel,int ht_enabled,int vht_enabled,int he_enabled,int sec_channel_offset,int oper_chwidth,int center_segment0,int center_segment1,u32 vht_caps,struct he_capabilities * he_cap) hostapd_set_freq_params() argument [all...] |
| H A D | ieee802_11_common.c | 3 * Copyright (c) 2002-2019, Jouni Malinen <j@w1.fi> 15 #include "qca-vendor.h" 28 * sub-type. */ in ieee802_11_parse_vendor_specific() 35 return -1; in ieee802_11_parse_vendor_specific() 39 switch (oui) { in ieee802_11_parse_vendor_specific() 41 /* Microsoft/Wi-Fi information elements are further typed and in ieee802_11_parse_vendor_specific() 43 switch (pos[3]) { in ieee802_11_parse_vendor_specific() 47 elems->wpa_ie = pos; in ieee802_11_parse_vendor_specific() 48 elems->wpa_ie_len = elen; in ieee802_11_parse_vendor_specific() 57 return - in ieee802_11_parse_vendor_specific() 871 ieee80211_freq_to_chan(int freq,u8 * channel) ieee80211_freq_to_chan() argument 890 ieee80211_freq_to_channel_ext(unsigned int freq,int sec_channel,int chanwidth,u8 * op_class,u8 * channel) ieee80211_freq_to_channel_ext() argument 1119 ieee80211_chaninfo_to_channel(unsigned int freq,enum chan_width chanwidth,int sec_channel,u8 * op_class,u8 * channel) ieee80211_chaninfo_to_channel() argument 1483 int freq; ieee80211_chan_to_freq() local 1513 ieee80211_is_dfs(int freq,const struct hostapd_hw_modes * modes,u16 num_modes) ieee80211_is_dfs() argument 1933 ieee80211_phy_type_by_freq(int freq) ieee80211_phy_type_by_freq() argument 1956 ieee80211_get_phy_type(int freq,int ht,int vht) ieee80211_get_phy_type() argument 2265 is_6ghz_freq(int freq) is_6ghz_freq() argument 2286 is_6ghz_psc_frequency(int freq) is_6ghz_psc_frequency() argument [all...] |
| /freebsd-src/contrib/wpa/wpa_supplicant/ |
| H A D | mesh.c | 2 * WPA Supplicant - Basic mesh mode routines 3 * Copyright (c) 2013-2014, cozybit, Inc. All rights reserved. 34 wpa_supplicant_mesh_iface_deinit(wpa_s, wpa_s->ifmsh, in wpa_supplicant_mesh_deinit() 38 wpa_s->ifmsh = NULL; in wpa_supplicant_mesh_deinit() 39 wpa_s->current_ssid = NULL; in wpa_supplicant_mesh_deinit() 40 os_free(wpa_s->mesh_params); in wpa_supplicant_mesh_deinit() 41 wpa_s->mesh_params = NULL; in wpa_supplicant_mesh_deinit() 44 os_free(wpa_s->mesh_rsn); in wpa_supplicant_mesh_deinit() 45 wpa_s->mesh_rsn = NULL; in wpa_supplicant_mesh_deinit() 59 if (ifmsh->mcon in wpa_supplicant_mesh_iface_deinit() 382 wpa_supplicant_mesh_init(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid,struct hostapd_freq_params * freq) wpa_supplicant_mesh_init() argument [all...] |
| /freebsd-src/sys/dev/bhnd/cores/pmu/ |
| H A D | bhnd_pmu.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2015-2016 Landon Fuller <landon@landonf.org> 112 sc->dev = dev; in bhnd_pmu_attach() 113 sc->res = res; in bhnd_pmu_attach() 116 sc->caps = bhnd_bus_read_4(sc->res, BHND_PMU_CAP); in bhnd_pmu_attach() 118 /* Find the bus and bus-attached core */ in bhnd_pmu_attach() 120 core = sc->dev; in bhnd_pmu_attach() 129 device_printf(sc->dev, "bhnd bus not found\n"); in bhnd_pmu_attach() 134 sc->cid = *bhnd_get_chipid(core); in bhnd_pmu_attach() [all …]
|
| /freebsd-src/sys/x86/x86/ |
| H A D | tsc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1998-2003 Poul-Henning Kamp 66 &tsc_is_invariant, 0, "Indicates whether the TSC is P-state invariant"); 80 &tsc_shift, 0, "Shift to pre-apply for the maximum TSC frequency"); 199 uint64_t freq; in tsc_freq_intel_brand() local 773 uint64_t freq; tsc_calibrate() local 873 uint64_t freq; tsc_freq_changed() local 888 uint64_t freq; sysctl_machdep_tsc_freq() local [all...] |
| /freebsd-src/usr.sbin/powerd/ |
| H A D | powerd.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 98 static int set_freq(int freq); 135 static int apm_fd = -1; 137 static int devd_pipe = -1; 147 * threads are processing requests as a pipeline -- runnin in read_usage_times() 265 set_freq(int freq) set_freq() argument 277 get_freq_id(int freq,int * freqs,int numfreqs) get_freq_id() argument 491 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; global() local [all...] |
| /freebsd-src/sys/x86/cpufreq/ |
| H A D | powernow.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2004-2005 Bruno Ducrot 30 * to Jung-uk Kim for testing. 158 * Some of those tables are the same as the Linux powernow-k7 207 int freq; member 289 ctl |= PN7_CTR_SGTC(sc->sgtc); in pn7_setfidvid() 291 if (sc->errata & A0_ERRATA) in pn7_setfidvid() 304 if (sc->errata & A0_ERRATA) in pn7_setfidvid() 317 while (PN8_STA_PENDING(*status) && --i); in pn8_read_pending_wait() [all …]
|
| H A D | p4tcc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 34 * Reference: Intel Developer's manual v.3 #245472-012 125 if (device_find_child(parent, "p4tcc", -1) != NULL) in p4tcc_identify() 157 sc->dev = dev; in p4tcc_attach() 158 sc->set_count = TCC_NUM_SETTINGS; in p4tcc_attach() 166 sc->auto_mode = TRUE; in p4tcc_attach() 176 switch (cpu_id & 0xff) { in p4tcc_attach() 186 sc->set_count -= 1; in p4tcc_attach() 199 sc->set_count -= 2; in p4tcc_attach() [all …]
|
| /freebsd-src/sys/dev/dwc/ |
| H A D | if_dwc_rk.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 167 {"rockchip,rk3288-gmac", (uintptr_t)&rk3288_ops}, 168 {"rockchip,rk3328-gmac", (uintptr_t)&rk3328_ops}, 169 {"rockchip,rk3399-gmac", (uintptr_t)&rk3399_ops}, 179 if (!mii_contype_is_rgmii(sc->base.phy_mode)) in rk3328_set_delays() 182 reg = SYSCON_READ_4(sc->grf, RK3328_GRF_MAC_CON0); in rk3328_set_delays() 186 reg = SYSCON_READ_4(sc->grf, RK3328_GRF_MAC_CON1); in rk3328_set_delays() 188 device_printf(sc->base.dev, "current delays settings: tx=%u(%s) rx=%u(%s)\n", in rk3328_set_delays() 192 device_printf(sc->base.dev, "setting new RK3328 RX/TX delays: %d/%d\n", in rk3328_set_delays() [all …]
|
| /freebsd-src/contrib/ntp/ntpd/ |
| H A D | ntp_loopfilter.c | 2 * ntp_loopfilter.c - implements the NTP loop filter algorithm 33 * in UDel TR 97-4-3, as amended. It operates as an adaptive parameter, 34 * hybrid phase/frequency-lock loop. A number of sanity checks are 41 #define CLOCK_PHI 15e-6 /* max frequency error (s/s) */ 47 #define CLOCK_LIMIT 30 /* poll-adjust threshold */ 48 #define CLOCK_PGATE 4. /* poll-adjust gate */ 60 * NSET FREQ step, FREQ freq not set 62 * FSET SYNC step, SYNC freq set 64 * FREQ if (mu < 900) if (mu < 900) set freq direct 67 * freq, SYNC freq, step, SYNC [all …]
|
| /freebsd-src/contrib/wpa/src/drivers/ |
| H A D | driver_nl80211_event.c | 2 * Driver interaction with Linux nl80211/cfg80211 - Event processing 3 * Copyright (c) 2002-2017, Jouni Malinen <j@w1.fi> 5 * Copyright (c) 2009-2010, Atheros Communications 16 #include "common/qca-vendor.h" 17 #include "common/qca-vendor-attr.h" 33 switch (cmd) { in nl80211_command_to_string() 203 if (!(drv->capa.flags & WPA_DRIVER_FLAGS_SME) && in mlme_event_auth() 204 drv->force_connect_cmd) { in mlme_event_auth() 216 if (len < 24 + sizeof(mgmt-> in mlme_event_auth() 650 calculate_chan_offset(int width,int freq,int cf1,int cf2) calculate_chan_offset() argument 684 mlme_event_ch_switch(struct wpa_driver_nl80211_data * drv,struct nlattr * ifindex,struct nlattr * freq,struct nlattr * type,struct nlattr * bw,struct nlattr * cf1,struct nlattr * cf2,int finished) mlme_event_ch_switch() argument 784 mlme_event_mgmt(struct i802_bss * bss,struct nlattr * freq,struct nlattr * sig,const u8 * frame,size_t len) mlme_event_mgmt() argument 1072 mlme_event(struct i802_bss * bss,enum nl80211_commands cmd,struct nlattr * frame,struct nlattr * addr,struct nlattr * timed_out,struct nlattr * freq,struct nlattr * ack,struct nlattr * cookie,struct nlattr * sig,struct nlattr * wmm,struct nlattr * req_ie) mlme_event() argument 1198 unsigned int freq; mlme_event_join_ibss() local 1229 unsigned int freq, chan_type, duration; mlme_event_remain_on_channel() local 2625 u32 freq = 0, max_tx_power = 0; nl80211_dump_freq() local [all...] |
| H A D | driver_nl80211_capa.c | 2 * Driver interaction with Linux nl80211/cfg80211 - Capabilities 3 * Copyright (c) 2002-2015, Jouni Malinen <j@w1.fi> 5 * Copyright (c) 2009-2010, Atheros Communications 17 #include "common/qca-vendor.h" 18 #include "common/qca-vendor-attr.h" 115 switch (nla_type(nl_mode)) { in wiphy_info_supported_iftypes() 117 info->capa->flags |= WPA_DRIVER_FLAGS_AP; in wiphy_info_supported_iftypes() 120 info->cap in wiphy_info_supported_iftypes() [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | SpillPlacement.cpp | 1 //===- SpillPlacement.cpp - Optimal Spill Code Placement -------- 253 uint64_t Freq = Entry.getFrequency(); setThreshold() local 262 BlockFrequency Freq = BlockFrequencies[LB.Number]; addConstraints() local 283 BlockFrequency Freq = BlockFrequencies[B]; addPrefSpill() local 305 BlockFrequency Freq = BlockFrequencies[Number]; addLinks() local [all...] |
| /freebsd-src/sys/contrib/device-tree/Bindings/cpufreq/ |
| H A D | cpufreq-qcom-hw.txt | 8 - compatible 11 Definition: must be "qcom,cpufreq-hw" or "qcom,cpufreq-epss". 13 - clocks 18 - clock-names 23 - reg 25 Value type: <prop-encoded-array> 28 - reg-names 32 "freq-domain0", "freq-domain1". 34 - #freq-domain-cells: 38 * Property qcom,freq-domain [all …]
|
| H A D | cpufreq-qcom-hw.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/cpufreq/cpufreq-qco [all...] |
| /freebsd-src/sys/powerpc/mpc85xx/ |
| H A D | mpc85xx.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 85 switch (ver) { in law_getmax() 169 (flsl(size + (size - 1)) - 2)) 235 trgt = -1; in law_pci_target() 236 switch (start) { in law_pci_target() 333 static uint32_t freq; in mpc85xx_get_platform_clock() local 335 if (freq != 0) in mpc85xx_get_platform_clock() 336 return (freq); in mpc85xx_get_platform_clock() 340 /* freq isn't modified on error. */ in mpc85xx_get_platform_clock() [all …]
|
| /freebsd-src/sys/dev/ath/ath_hal/ar5212/ |
| H A D | ar5413.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 58 #define AR5413(ah) ((struct ar5413State *) AH5212(ah)->ah_rfHal) 80 uint16_t freq = ath_hal_gethwchannel(ah, chan); in ar5413SetChannel() local 86 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); in ar5413SetChannel() 88 if (freq < 4800) { in ar5413SetChannel() 91 if (((freq - 2192) % 5) == 0) { in ar5413SetChannel() 92 channelSel = ((freq - 672) * 2 - 3040)/10; in ar5413SetChannel() [all …]
|
| H A D | ar5112.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 45 #define AR5112(ah) ((struct ar5112State *) AH5212(ah)->ah_rfHal) 80 uint16_t freq = ath_hal_gethwchannel(ah, chan); in ar5112SetChannel() local 86 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); in ar5112SetChannel() 88 if (freq < 4800) { in ar5112SetChannel() 91 if (((freq - 2192) % 5) == 0) { in ar5112SetChannel() 92 channelSel = ((freq - 672) * 2 - 3040)/10; in ar5112SetChannel() [all …]
|
| /freebsd-src/sys/kern/ |
| H A D | kern_clocksource.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2010-2013 Alexander Motin <mav@FreeBSD.org> 64 static int round_freq(struct eventtimer *et, int freq); 75 if (timer->et_flags & ET_FLAGS_PERCPU) \ 76 mtx_lock_spin(&(state)->et_hw_mtx); \ 83 if (timer->et_flags & ET_FLAGS_PERCPU) \ 84 mtx_unlock_spin(&(state)->et_hw_mtx); \ 108 static int periodic; /* Periodic or one-shot mode. */ 113 struct mtx et_hw_mtx; /* Per-CPU timer mutex. */ [all …]
|
| /freebsd-src/sys/arm/ti/omap4/ |
| H A D | omap4_prcm_clks.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 61 * - There is a top level omap_prcm module that defines all OMAP SoC drivers 65 * configuring the clock - this file is the 'donkey' for OMAP44xx devices. 67 * - The key bit in this file is the omap_clk_devmap array, it's 71 * - In essence you just need to define some callbacks for each of the 74 * - Th 685 omap4_clk_generic_get_source_freq(struct ti_clock_dev * clkdev,unsigned int * freq) omap4_clk_generic_get_source_freq() argument 757 omap4_clk_gptimer_get_source_freq(struct ti_clock_dev * clkdev,unsigned int * freq) omap4_clk_gptimer_get_source_freq() argument 866 omap4_clk_hsmmc_get_source_freq(struct ti_clock_dev * clkdev,unsigned int * freq) omap4_clk_hsmmc_get_source_freq() argument 927 omap4_clk_get_sysclk_freq(struct ti_clock_dev * clkdev,unsigned int * freq) omap4_clk_get_sysclk_freq() argument 985 omap4_clk_get_arm_fclk_freq(struct ti_clock_dev * clkdev,unsigned int * freq) omap4_clk_get_arm_fclk_freq() argument 1459 unsigned int freq; omap4_prcm_new_pass() local [all...] |
| /freebsd-src/sys/powerpc/booke/ |
| H A D | platform_bare.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2008-2012 Semihalf. 75 if (OF_peer(0) == -1) /* Needs device tree to work */ in bare_probe() 94 pcell_t freq; in bare_timebase_freq() local 98 /* Backward compatibility. See 8-STABLE. */ in bare_timebase_freq() 107 if ((cpus = OF_finddevice("/cpus")) == -1) in bare_timebase_freq() 113 switch (OF_getproplen(child, "timebase-frequency")) { in bare_timebase_freq() 117 OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase)); in bare_timebase_freq() 124 OF_getprop(child, "timebase-frequency", &tbase, sizeof(tbase)); in bare_timebase_freq() [all …]
|
| /freebsd-src/sys/dev/clk/ |
| H A D | clk_fixed.c | 1 /*- 53 static int clknode_fixed_recalc(struct clknode *clk, uint64_t *freq); 59 uint64_t freq; member 80 if (sc->freq == 0) in clknode_fixed_init() 86 clknode_fixed_recalc(struct clknode *clk, uint64_t *freq) in clknode_fixed_recalc() argument 92 if ((sc->mult != 0) && (sc->div != 0)) in clknode_fixed_recalc() 93 *freq = (*freq / s in clknode_fixed_recalc() 184 uint32_t freq; clk_fixed_init_fixed() local [all...] |