/freebsd/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 */ 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 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_flags = flags; in hostapd_get_hw_features() 99 iface->dfs_domain = dfs_domain; in hostapd_get_hw_features() [all …]
|
H A D | acs.c | 2 * ACS - Automatic Channel Selection module 31 * ------------ 35 * ---------- 36 * - make sure you have CONFIG_ACS=y in hostapd's .config 37 * - use channel=0 or channel=acs to enable ACS 40 * ---------------- 48 * ----------------- 49 * - Current implementation depends heavily on the amount of time willing to 52 * - Ideal channel may end up overlapping a channel with 40 MHz intolerant BSS 55 * ------------ [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/regulator/ |
H A D | richtek,rt6245-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/regulator/richtek,rt6245-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - ChiYuan Huang <cy_huang@richtek.com> 13 The RT6245 is a high-performance, synchronous step-down converter 18 - $ref: regulator.yaml# 23 - richtek,rt6245 28 enable-gpios: 31 it will be treat as a default-on power. [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/input/ |
H A D | iqs269a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jef [all...] |
H A D | iqs626a.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jeff LaBundy <jeff@labundy.com> 13 The Azoteq IQS626A is a 14-channel capacitive touch controller that features 14 additional Hall-effect and inductive sensing capabilities. 19 - $ref: touchscreen/touchscreen.yaml# 31 "#address-cells": 34 "#size-cells": 37 azoteq,suspend-mode: [all …]
|
/freebsd/sys/riscv/sifive/ |
H A D | sifive_spi.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 80 uint64_t freq; member 84 #define SFSPI_LOCK(sc) mtx_lock(&(sc)->mtx) 85 #define SFSPI_UNLOCK(sc) mtx_unlock(&(sc)->mtx) 86 #define SFSPI_ASSERT_LOCKED(sc) mtx_assert(&(sc)->mtx, MA_OWNED); 87 #define SFSPI_ASSERT_UNLOCKED(sc) mtx_assert(&(sc)->mtx, MA_NOTOWNED); 91 * From Sifive-Unleashed-FU540-C000-v1.0.pdf page 101. 95 #define SFSPI_REG_CSID 0x10 /* Chip select ID */ 96 #define SFSPI_REG_CSDEF 0x14 /* Chip select default */ [all …]
|
/freebsd/contrib/wpa/src/p2p/ |
H A D | p2p.c | 2 * Wi-Fi Direct - P2P module 3 * Copyright (c) 2009-2010, Atheros Communications 45 * P2P_PEER_EXPIRATION_AGE - Number of seconds after which inactive peer 60 dl_list_for_each_safe(dev, n, &p2p->devices, struct p2p_device, list) { in p2p_expire_peers() 61 if (dev->last_seen.sec + P2P_PEER_EXPIRATION_AGE >= now.sec) in p2p_expire_peers() 64 if (dev == p2p->go_neg_peer) { in p2p_expire_peers() 73 if (p2p->cfg->go_connected && in p2p_expire_peers() 74 p2p->cfg->go_connected(p2p->cfg->cb_ctx, in p2p_expire_peers() 75 dev->info.p2p_device_addr)) { in p2p_expire_peers() 80 os_get_reltime(&dev->last_seen); in p2p_expire_peers() [all …]
|
H A D | p2p_go_neg.c | 2 * Wi-Fi Direct - P2P Group Owner Negotiation 3 * Copyright (c) 2009-2010, Atheros Communications 26 return -1; /* both devices want to become GO */ in p2p_go_det() 45 ch = &dev->channels; in p2p_peer_channels_check() 50 if (end - pos < 3) in p2p_peer_channels_check() 51 return -1; in p2p_peer_channels_check() 52 os_memcpy(dev->country, pos, 3); in p2p_peer_channels_check() 54 if (pos[2] != 0x04 && os_memcmp(pos, p2p->cfg->country, 2) != 0) { in p2p_peer_channels_check() 56 p2p->cfg->country[0], p2p->cfg->country[1], in p2p_peer_channels_check() 58 return -1; in p2p_peer_channels_check() [all …]
|
H A D | p2p_pd.c | 2 * Wi-Fi Direct - P2P provision discovery 3 * Copyright (c) 2009-2010, Atheros Communications 54 if (!p2p->cfg->get_go_info) in p2ps_add_new_group_info() 57 found = p2p->cfg->get_go_info( in p2ps_add_new_group_info() 58 p2p->cfg->cb_ctx, intended_addr, ssid, in p2ps_add_new_group_info() 62 p2p->p2ps_prov->force_freq = force_freq; in p2ps_add_new_group_info() 63 p2p->p2ps_prov->pref_freq = 0; in p2ps_add_new_group_info() 68 p2p_buf_add_group_id(buf, p2p->cfg->dev_addr, in p2ps_add_new_group_info() 72 p2p_buf_add_intended_addr(buf, p2p->intended_addr); in p2ps_add_new_group_info() 76 if (!p2p->ssid_set) { in p2ps_add_new_group_info() [all …]
|
/freebsd/sys/dev/bhnd/cores/pmu/ |
H A D | bhnd_pmu_subr.c | 1 /*- 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/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 -- running one at 185 total += cp_times[cpu * CPUSTATES + i] - in read_usage_times() 190 excl = cp_times[cpu * CPUSTATES + CP_IDLE] - in read_usage_times() 193 excl += cp_times[cpu * CPUSTATES + CP_NICE] - in read_usage_times() 195 *load += 100 - excl * 100 / total; in read_usage_times() [all …]
|
/freebsd/sys/x86/isa/ |
H A D | clock.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 84 TUNABLE_INT("hw.i8254.freq", &i8254_freq); 111 static int timer0_period = -2; 141 if (i8254_timecounter && sc->period != 0) { in clkintr() 153 if (sc->et.et_active && sc->mode != MODE_STOP) in clkintr() 154 sc->et.et_event_cb(&sc->et, sc->et.et_arg); in clkintr() 167 return (-1); in timer_spkr_acquire() 173 * knew the rate. Use of splclock() limits glitches to 10-100us, in timer_spkr_acquire() 188 return (-1); in timer_spkr_release() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | wps_supplicant.c | 3 * Copyright (c) 2008-2014, Jouni Malinen <j@w1.fi> 56 os_free(wpa_s->wps_ap); in wpas_wps_clear_ap_info() 57 wpa_s->wps_ap = NULL; in wpas_wps_clear_ap_info() 58 wpa_s->num_wps_ap = 0; in wpas_wps_clear_ap_info() 59 wpa_s->wps_ap_iter = 0; in wpas_wps_clear_ap_info() 87 if (bss->beacon_newer) in wpas_wps_get_wps_ie() 99 if (!wpa_s->wps_success && in wpas_wps_eapol_cb() 100 wpa_s->current_ssid && in wpas_wps_eapol_cb() 101 eap_is_wps_pin_enrollee(&wpa_s->current_ssid->eap)) { in wpas_wps_eapol_cb() 102 const u8 *bssid = wpa_s->bssid; in wpas_wps_eapol_cb() [all …]
|
H A D | p2p_supplicant.c | 2 * wpa_supplicant - P2P 3 * Copyright (c) 2009-2010, Atheros Communications 4 * Copyright (c) 2010-2014, Jouni Malinen <j@w1.fi> 58 * channel (and if the driver supports channel switch). 73 * How many seconds to wait for initial 4-way handshake to get completed after 74 * WPS provisioning step or after the re-invocation of a persistent group on a 82 * How many seconds to wait for initial 4-way handshake to get completed after 92 * How many seconds to wait for initial 4-way handshake to get completed after 93 * re-invocation of a persistent group on the GO when the client is expected 99 #define P2P_MGMT_DEVICE_PREFIX "p2p-dev-" [all …]
|
H A D | README | 4 Copyright (c) 2003-2024, Jouni Malinen <j@w1.fi> and contributors 16 ------- 32 3. Neither the name(s) of the above-listed copyright holder(s) nor the 51 -------- 54 - WPA-PSK ("WPA-Personal") 55 - WPA with EAP (e.g., with RADIUS authentication server) ("WPA-Enterprise") 58 * EAP-TLS 59 * EAP-PEAP/MSCHAPv2 (both PEAPv0 and PEAPv1) 60 * EAP-PEAP/TLS (both PEAPv0 and PEAPv1) 61 * EAP-PEAP/GTC (both PEAPv0 and PEAPv1) [all …]
|
/freebsd/contrib/wpa/src/common/ |
H A D | wpa_ctrl.h | 3 * Copyright (c) 2004-2017, Jouni Malinen <j@w1.fi> 16 /* wpa_supplicant control interface - fixed message prefixes */ 19 #define WPA_CTRL_REQ "CTRL-REQ-" 22 #define WPA_CTRL_RSP "CTRL-RSP-" 26 #define WPA_EVENT_CONNECTED "CTRL-EVENT-CONNECTED " 28 #define WPA_EVENT_DISCONNECTED "CTRL-EVENT-DISCONNECTED " 30 #define WPA_EVENT_ASSOC_REJECT "CTRL-EVENT-ASSOC-REJECT " 32 #define WPA_EVENT_AUTH_REJECT "CTRL-EVENT-AUTH-REJECT " 34 #define WPA_EVENT_TERMINATING "CTRL-EVENT-TERMINATING " 36 #define WPA_EVENT_PASSWORD_CHANGED "CTRL-EVENT-PASSWORD-CHANGED " [all …]
|
/freebsd/contrib/ntp/util/ |
H A D | tg.c | 6 * broadcast timecode. Alternatively, it can generate the IRIG-B 24 * over the range 0-255. The signal generator by default uses WWV 26 * switches to IRIG-B format. 42 * the transmissionorder is low-order first as the frame is processed 44 * For IRIG the on-time marker M preceeds the first (units) bit, so its 64 #define SECOND 8000 /* one second of 125-us samples */ 68 #define IRIG 1 /* IRIG-B encoder */ 82 int c3000[] = {1, 48, 63, 70, 78, 82, 85, 89, 92, 94, /* 0-9 */ 83 96, 98, 99, 100, 101, 101, 102, 103, 103, 103, /* 10-19 */ 84 103, 103, 103, 103, 102, 101, 101, 100, 99, 98, /* 20-29 */ [all …]
|
/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_privsep.c | 2 * WPA Supplicant - privilege separated driver interface 3 * Copyright (c) 2007-2009, Jouni Malinen <j@w1.fi> 34 res = sendto(drv->priv_socket, &cmd, sizeof(cmd), 0, in wpa_priv_reg_cmd() 35 (struct sockaddr *) &drv->priv_addr, in wpa_priv_reg_cmd() 36 sizeof(drv->priv_addr)); in wpa_priv_reg_cmd() 39 return res < 0 ? -1 : 0; in wpa_priv_reg_cmd() 58 msg.msg_name = &drv->priv_addr; in wpa_priv_cmd() 59 msg.msg_namelen = sizeof(drv->priv_addr); in wpa_priv_cmd() 61 if (sendmsg(drv->cmd_socket, &msg, 0) < 0) { in wpa_priv_cmd() 64 return -1; in wpa_priv_cmd() [all …]
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | platform_mpc85xx.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2008-2012 Semihalf. 133 switch (pvr) { in mpc85xx_probe() 154 if ((cpus = OF_finddevice("/cpus")) != -1) { in mpc85xx_attach() 167 ccsr = -1; in mpc85xx_attach() 168 for (name = soc_name_guesses; *name != NULL && ccsr == -1; name++) in mpc85xx_attach() 170 if (ccsr == -1) { in mpc85xx_attach() 187 if (ccsr == -1) in mpc85xx_attach() 190 OF_getprop(ccsr, "#size-cells", &scells, sizeof(scells)); in mpc85xx_attach() [all …]
|
/freebsd/sys/contrib/alpine-hal/ |
H A D | al_hal_serdes_interface.h | 9 found at http://www.gnu.org/licenses/gpl-2.0.html 53 /* *INDENT-OFF* */ 57 /* *INDENT-ON* */ 178 * Tx de-emphasis parameters 183 AL_SERDES_TX_DEEMP_C_MINUS, /*< c(-1) */ 188 * select the input values location. 196 * Transmit Amplitude control signal. Used to define the full-scale 198 * 000 - Not Supported 199 * 001 - 952mVdiff-pkpk 200 * 010 - 1024mVdiff-pkpk [all …]
|
/freebsd/sys/net80211/ |
H A D | ieee80211.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 5 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 135 if (ic->ic_sup_rates[m].rs_nrates == 0) \ in ieee80211_chan_init() 136 ic->ic_sup_rates[m] = def; \ in ieee80211_chan_init() 141 KASSERT(0 < ic->ic_nchans && ic->ic_nchans <= IEEE80211_CHAN_MAX, in ieee80211_chan_init() 142 ("invalid number of channels specified: %u", ic->ic_nchans)); in ieee80211_chan_init() 143 memset(ic->ic_chan_avail, 0, sizeof(ic->ic_chan_avail)); in ieee80211_chan_init() 144 memset(ic->ic_modecaps, 0, sizeof(ic->ic_modecaps)); in ieee80211_chan_init() 145 setbit(ic->ic_modecaps, IEEE80211_MODE_AUTO); in ieee80211_chan_init() [all …]
|
H A D | ieee80211_scan_sta.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 99 (((const uint8_t *)(addr))[IEEE80211_ADDR_LEN - 1] % STA_HASHSIZE) 112 /* ap-related state */ 119 * for use. If non-zero the entry was deemed not suitable and it's 174 TAILQ_INIT(&st->st_entry); in sta_attach() 175 ss->ss_priv = st; in sta_attach() 186 struct sta_table *st = ss->ss_priv; in sta_detach() 194 nrefs--; /* NB: we assume caller locking */ in sta_detach() [all …]
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_eeprom.c | 91 AH9300(ah)->calibration_data_source = source; in ar9300_calibration_data_set() 100 return AH9300(ah)->calibration_data_source; in ar9300_calibration_data_get() 114 AH9300(ah)->calibration_data_source_address = size; in ar9300_calibration_data_address_set() 123 return AH9300(ah)->calibration_data_source_address; in ar9300_calibration_data_address_get() 150 mptr = &ahp->ah_eeprom; in ar9300_eeprom_template_install() 163 return -1; in ar9300_eeprom_template_install() 174 nptr = -1; in ar9300_eeprom_restore_something() 180 AH9300(ah)->calibration_data_source = calibration_data_none; in ar9300_eeprom_restore_something() 181 AH9300(ah)->calibration_data_source_address = 0; in ar9300_eeprom_restore_something() 194 AH9300(ah)->calibration_data_source = calibration_data_none; in ar9300_eeprom_restore_something() [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_wwv.c | 2 * refclock_wwv - clock driver for NIST WWV/H time/frequency station 43 * kHz and mu-law companding. This is the same standard as used by the 53 * Report 97-8-1, University of Delaware, August 1997, 25 pp., available 61 * a nonzero ICOM ID select code. The C-IV trace is turned on if the 68 * port, where 0 is the mike port (default) and 1 is the line-in port. 69 * It does not seem useful to select the compact disc player port. Fudge 74 * CEVNT_PROP propagation failure - no stations heard 82 #define PRECISION (-1 495 int select; /* select bits */ global() member 514 double phase, freq; /* logical clock phase and frequency */ global() member [all...] |