Home
last modified time | relevance | path

Searched +full:switch +full:- +full:freq (Results 1 – 25 of 390) sorted by relevance

12345678910>>...16

/freebsd/contrib/wpa/src/common/
H A Dhw_features_common.c3 * 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->freq; in hw_get_channel_chan()
44 hw_mode_get_channel(struct hostapd_hw_modes *mode, int freq, int *chan) in hw_mode_get_channel() argument
[all …]
H A Dieee802_11_common.c3 * 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 -1; in ieee802_11_parse_vendor_specific()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Ddfs.c2 * 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 */
26 DFS_NO_CAC_YET, /* radar-not-yet-available */
38 return (iface->drv_flags2 & WPA_DRIVER_FLAGS2_RADAR_BACKGROUND) && in dfs_use_radar_background()
39 iface->conf->enable_background_radar; in dfs_use_radar_background()
49 if (iface->conf->ieee80211n && iface->conf->secondary_channel) in dfs_get_used_n_chans()
52 if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) { in dfs_get_used_n_chans()
53 switch (hostapd_get_oper_chwidth(iface->conf)) { in dfs_get_used_n_chans()
[all …]
H A Dhw_features.c3 * 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_flags = flags; in hostapd_get_hw_features()
99 iface->dfs_domain = dfs_domain; in hostapd_get_hw_features()
[all …]
H A Ddrv_callbacks.c3 * 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 - buf); in hostapd_notify_assoc_fils_finish()
[all …]
/freebsd/contrib/wpa/wpa_supplicant/
H A Dmesh.c2 * 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->mconf) { in wpa_supplicant_mesh_iface_deinit()
[all …]
H A Dnan_usd.c22 switch (result) { in tx_status_result_txt()
26 return "no-ack"; in tx_status_result_txt()
36 unsigned int freq, const u8 *dst, in wpas_nan_de_tx_status() argument
41 if (!wpa_s->nan_de) in wpas_nan_de_tx_status()
45 " A3=" MACSTR " freq=%d len=%zu result=%s", in wpas_nan_de_tx_status()
46 MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), freq, in wpas_nan_de_tx_status()
49 nan_de_tx_status(wpa_s->nan_de, freq, dst); in wpas_nan_de_tx_status()
54 unsigned int freq; member
67 wpabuf_free(twork->buf); in wpas_nan_usd_tx_work_free()
76 if (!wpa_s->nan_usd_tx_work) in wpas_nan_usd_tx_work_done()
[all …]
/freebsd/sys/dev/bhnd/cores/pmu/
H A Dbhnd_pmu.c1 /*-
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 …]
H A Dbhnd_pmu_subr.c1 /*-
2 * SPDX-License-Identifier: ISC
10 * distributed with the Asus RT-N16 firmware source code release.
41 if (_sc->dev != NULL) \
42 device_printf(_sc->dev, _fmt, ##__VA_ARGS__); \
91 ((uint8_t)BHND_PMU_GET_BITS((_sc)->caps, BHND_PMU_CAP_REV))
94 bhnd_core_clkctl_wait((_sc)->clkctl, (_val), (_mask))
100 CHIPC_CST4330_CHIPMODE_SDIOD((_sc)->io->rd_chipst((_sc)->io_ctx))
113 * @retval non-zero if the query state could not be initialized.
119 query->dev = dev; in bhnd_pmu_query_init()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Dntp_loopfilter.c2 * 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 no
1072 set_freq(double freq) set_freq() argument
1243 loop_config(int item,double freq) loop_config() argument
[all...]
/freebsd/sys/x86/x86/
H A Dtsc.c1 /*-
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
216 for (i = 0; i < sizeof(brand) - 1; i++) in tsc_freq_intel_brand()
220 p -= 5; in tsc_freq_intel_brand()
221 switch (p[4]) { in tsc_freq_intel_brand()
234 #define C2D(c) ((c) - '0') in tsc_freq_intel_brand()
[all …]
/freebsd/sys/x86/cpufreq/
H A Dpowernow.c1 /*-
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 Dp4tcc.c1 /*-
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/sys/dev/dwc/
H A Dif_dwc_rk.c1 /*-
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/usr.sbin/powerd/
H A Dpowerd.c1 /*-
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
278 set_freq(int freq) set_freq() argument
290 get_freq_id(int freq,int * freqs,int numfreqs) get_freq_id() argument
587 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; global() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSpillPlacement.cpp1 //===- SpillPlacement.cpp - Optimal Spill Code Placement ------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
21 // E = -sum_n V_n * ( B_n + sum_{n, m linked by b} V_m * F_b )
27 //===----------------------------------------------------------------------===//
45 #define DEBUG_TYPE "spill-code-placement"
64 /// Node - Each edge bundle corresponds to a Hopfield node.
73 /// BiasN - Sum of blocks that prefer a spill.
76 /// BiasP - Sum of blocks that prefer a register.
79 /// Value - Output value of this node computed from the Bias and links.
[all …]
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_nl80211_event.c2 * 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->u.auth)) { in mlme_event_auth()
222 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN); in mlme_event_auth()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/cpufreq/
H A Dcpufreq-qcom-hw.txt8 - 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 …]
/freebsd/sys/powerpc/mpc85xx/
H A Dmpc85xx.c1 /*-
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/sys/dev/ath/ath_hal/ar5212/
H A Dar5413.c1 /*-
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 Dar5112.c1 /*-
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/sys/kern/
H A Dkern_clocksource.c1 /*-
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/sys/arm/ti/omap4/
H A Domap4_prcm_clks.c1 /*-
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 * - The other thing that is worth noting is that when the omap_prcm device
166 {"ti,omap4-cm1", (uintptr_t)CM1_INSTANCE},
167 {"ti,omap4-cm2", (uintptr_t)CM2_INSTANCE},
168 {"ti,omap4-prm", (uintptr_t)PRM_INSTANCE},
[all …]
/freebsd/sys/dev/clk/
H A Dclk_fixed.c1 /*-
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 / sc->div) * sc->mult; in clknode_fixed_recalc()
95 *freq = sc->freq; in clknode_fixed_recalc()
106 if (sc->mult == 0 || sc->div == 0) { in clknode_fixed_set_freq()
109 if (*fout != sc->freq) in clknode_fixed_set_freq()
[all …]
/freebsd/sys/powerpc/booke/
H A Dplatform_bare.c1 /*-
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 …]

12345678910>>...16