/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | offchannel.c | 2 * wpa_supplicant - Off-channel Action frame TX/RX 3 * Copyright (c) 2009-2010, Atheros Communications 26 if (ether_addr_equal(src, wpa_s->own_addr)) { in wpas_get_tx_interface() 28 if (wpa_s->p2p_mgmt && wpa_s != wpa_s->parent && in wpas_get_tx_interface() 29 wpa_s->parent->ap_iface && in wpas_get_tx_interface() 30 ether_addr_equal(wpa_s->parent->own_addr, in wpas_get_tx_interface() 31 wpa_s->own_addr) && in wpas_get_tx_interface() 32 wpabuf_len(wpa_s->pending_action_tx) >= 2 && in wpas_get_tx_interface() 33 *wpabuf_head_u8(wpa_s->pending_action_tx) != in wpas_get_tx_interface() 37 * the GO interface, make sure non-Public Action frames in wpas_get_tx_interface() [all …]
|
H A D | nan_usd.c | 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() 44 wpa_printf(MSG_DEBUG, "NAN: TX status A1=" MACSTR " A2=" MACSTR 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 …]
|
H A D | dpp_supplicant.c | 2 * wpa_supplicant - DPP 4 * Copyright (c) 2018-2020, The Linux Foundation 5 * Copyright (c) 2021-2022, Qualcomm Innovation Center, Inc. 35 unsigned int freq); 40 unsigned int freq, const u8 *dst, 48 unsigned int freq, const u8 *dst, 70 * wpas_dpp_qr_code - Parse and add DPP bootstrapping info from a QR Code 73 * Returns: Identifier of the stored info or -1 on failure 78 struct dpp_authentication *auth = wpa_s->dpp_auth; in wpas_dpp_qr_code() 80 bi = dpp_add_qr_code(wpa_s->dpp, cmd); in wpas_dpp_qr_code() [all …]
|
H A D | offchannel.h | 2 * wpa_supplicant - Off-channel Action frame TX/RX 3 * Copyright (c) 2009-2010, Atheros Communications 13 int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq, 17 unsigned int freq, const u8 *dst, 25 unsigned int freq, unsigned int duration); 27 unsigned int freq);
|
H A D | gas_query.c | 4 * Copyright (c) 2011-2014, Qualcomm Atheros, Inc. 5 * Copyright (c) 2011-2014, Jouni Malinen <j@w1.fi> 29 /* GAS query wait-time / duration in ms */ 36 * struct gas_query_pending - Pending GAS query 49 int freq; member 64 * struct gas_query - Internal GAS query data 96 * gas_query_init - Initialize GAS query component 108 gas->wpa_s = wpa_s; in gas_query_init() 109 dl_list_init(&gas->pending); in gas_query_init() 140 struct gas_query *gas = query->gas; in gas_query_free() [all …]
|
/freebsd/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}, 177 uint32_t tx, rx; in rk3328_set_delays() local 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() 183 tx = ((reg >> MAC_CON0_GMAC2IO_TX_DL_CFG_SHIFT) & MAC_CON0_GMAC2IO_TX_DL_CFG_MASK); in rk3328_set_delays() 186 reg = SYSCON_READ_4(sc->grf, RK3328_GRF_MAC_CON1); in rk3328_set_delays() [all …]
|
/freebsd/contrib/wpa/src/common/ |
H A D | gas_server.c | 41 int freq; member 52 void (*tx)(void *ctx, int freq, const u8 *da, struct wpabuf *resp, member 65 " (dialog_token=%u freq=%d frag_id=%u sent=%lu/%lu) - drop pending data", in gas_server_response_timeout() 66 response, MAC2STR(response->dst), response->dialog_token, in gas_server_response_timeout() 67 response->freq, response->frag_id, in gas_server_response_timeout() 68 (unsigned long) response->offset, in gas_server_response_timeout() 69 (unsigned long) (response->resp ? in gas_server_response_timeout() 70 wpabuf_len(response->resp) : 0)); in gas_server_response_timeout() 71 response->handler->status_cb(response->handler->ctx, in gas_server_response_timeout() 72 response->resp, 0); in gas_server_response_timeout() [all …]
|
H A D | nan_de.h | 30 int (*tx)(void *ctx, unsigned int freq, unsigned int wait_time, member 33 int (*listen)(void *ctx, unsigned int freq, unsigned int duration); 63 void nan_de_listen_started(struct nan_de *de, unsigned int freq, 65 void nan_de_listen_ended(struct nan_de *de, unsigned int freq); 66 void nan_de_tx_status(struct nan_de *de, unsigned int freq, const u8 *dst); 69 void nan_de_rx_sdf(struct nan_de *de, const u8 *peer_addr, unsigned int freq, 82 /* Time to live (in seconds); 0 = one TX only */ 95 unsigned int freq; member 97 /* Multi-channel frequencies (publishChannelList) */ 104 /* Returns -1 on failure or >0 publish_id */ [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | icom.c | 38 * Frames begin with a two-octet preamble PR-PR followyd by the 39 * transceiver address RE, controller address TX, control code CN, zero 43 * format, but with the RE and TX fields interchanged. The CN field is 48 * +------+------+------+------+------+--//--+------+ 49 * | PR | PR | RE | TX | CN | DA | FI | 50 * +------+------+------+------+------+--//--+------+ 64 * icom_freq(fd, ident, freq) - load radio frequency 68 * -1 (error) 75 double freq /* frequency (MHz) */ in icom_freq() argument 78 u_char cmd[] = {PAD, PR, PR, 0, TX, V_SFREQ, 0, 0, 0, 0, FI, in icom_freq() [all …]
|
/freebsd/sys/dev/eqos/ |
H A D | if_eqos_starfive.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 42 #define WR4(sc, o, v) bus_write_4(sc->base.res[EQOS_RES_MEM], (o), (v)) 45 {"starfive,jh7110-dwmac", 1}, 52 clk_t tx; member 61 uint64_t freq; in if_eqos_starfive_set_speed() local 67 freq = 125000000; in if_eqos_starfive_set_speed() 70 freq = 25000000; in if_eqos_starfive_set_speed() 73 freq = 2500000; in if_eqos_starfive_set_speed() 77 return (-EINVAL); in if_eqos_starfive_set_speed() [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. 101 #define SFSPI_REG_TXDATA 0x48 /* Tx FIFO data */ 103 #define SFSPI_REG_TXMARK 0x50 /* Tx FIFO watermark */ [all …]
|
/freebsd/contrib/wpa/src/p2p/ |
H A D | p2p_dev_disc.c | 2 * Wi-Fi Direct - P2P Device Discoverability procedure 28 go->dialog_token++; in p2p_build_dev_disc_req() 29 if (go->dialog_token == 0) in p2p_build_dev_disc_req() 30 go->dialog_token = 1; in p2p_build_dev_disc_req() 31 p2p_buf_add_public_action_hdr(buf, P2P_DEV_DISC_REQ, go->dialog_token); in p2p_build_dev_disc_req() 35 p2p_buf_add_group_id(buf, go->info.p2p_device_addr, go->oper_ssid, in p2p_build_dev_disc_req() 36 go->oper_ssid_len); in p2p_build_dev_disc_req() 45 p2p_dbg(p2p, "Device Discoverability Request TX callback: success=%d", in p2p_dev_disc_req_cb() 58 p2p_dbg(p2p, "GO acknowledged Device Discoverability Request - wait for response"); in p2p_dev_disc_req_cb() 60 * TODO: is the remain-on-channel from Action frame TX long enough for in p2p_dev_disc_req_cb() [all …]
|
H A D | p2p_invitation.c | 2 * Wi-Fi Direct - P2P Invitation procedure 30 struct wpabuf *wfd_ie = p2p->wfd_ie_invitation; in p2p_build_invitation_req() 31 if (wfd_ie && p2p->inv_role == P2P_INVITE_ROLE_ACTIVE_GO) { in p2p_build_invitation_req() 33 for (i = 0; i < p2p->num_groups; i++) { in p2p_build_invitation_req() 34 struct p2p_group *g = p2p->groups[i]; in p2p_build_invitation_req() 37 p2p->inv_bssid)) in p2p_build_invitation_req() 50 if (p2p->vendor_elem && p2p->vendor_elem[VENDOR_ELEM_P2P_INV_REQ]) in p2p_build_invitation_req() 51 extra += wpabuf_len(p2p->vendor_elem[VENDOR_ELEM_P2P_INV_REQ]); in p2p_build_invitation_req() 57 peer->dialog_token++; in p2p_build_invitation_req() 58 if (peer->dialog_token == 0) in p2p_build_invitation_req() [all …]
|
/freebsd/sys/dev/uart/ |
H A D | uart_dev_snps.c | 1 /*- 71 volatile uint32_t *tx; in uart_snps_early_putc() local 75 tx = (uint32_t *) (socdev_va + 0x1C28000); in uart_snps_early_putc() 79 tx = (uint32_t *) (socdev_va + 0x28000); in uart_snps_early_putc() 84 *tx = c; in uart_snps_early_putc() 117 { "snps,dw-apb-uart", (uintptr_t)&uart_snps_class }, 118 { "marvell,armada-38x-uart", (uintptr_t)&uart_snps_class }, 150 uint64_t freq; in snps_probe() local [all...] |
/freebsd/sys/dev/usb/wlan/ |
H A D | if_upgtvar.h | 148 uint16_t freq; member 166 #define UPGT_H1_FLAGS_TX_MGMT 0x00 /* for TX: mgmt frame */ 167 #define UPGT_H1_FLAGS_TX_NO_CALLBACK 0x01 /* for TX: no USB callback */ 168 #define UPGT_H1_FLAGS_TX_DATA 0x10 /* for TX: data frame */ 171 #define UPGT_H1_TYPE_TX_DATA 0x40 /* 802.11 TX data frame */ 241 uint16_t freq; member 253 uint16_t freq; member 298 uint16_t freq; member 409 #define UPGT_STAT_INC(sc, var) (sc)->sc_stat.var++ 410 #define UPGT_STAT_DEC(sc, var) (sc)->sc_stat.var-- [all …]
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | htt_tx.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 40 struct ath10k *ar = hw->priv; in __ath10k_htt_tx_txq_recalc() 42 struct ath10k_vif *arvif = (void *)txq->vif->drv_priv; in __ath10k_htt_tx_txq_recalc() 51 lockdep_assert_held(&ar->htt.tx_lock); in __ath10k_htt_tx_txq_recalc() 53 if (!ar->htt.tx_q_state.enabled) in __ath10k_htt_tx_txq_recalc() 56 if (ar->htt.tx_q_state.mode != HTT_TX_MODE_SWITCH_PUSH_PULL) in __ath10k_htt_tx_txq_recalc() 59 if (txq->sta) { in __ath10k_htt_tx_txq_recalc() 60 arsta = (void *)txq->sta->drv_priv; in __ath10k_htt_tx_txq_recalc() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_reset.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 33 (AH_PRIVATE(_ah)->ah_eeversion & AR5416_EEP_VER_MINOR_MASK) 122 HALASSERT(AH_PRIVATE(ah)->ah_eeversion >= AR_EEPROM_VER14_1); in ar5416Reset() 144 * Don't do this for the AR9285 - it breaks RX for single in ar5416Reset() 173 (ah->ah_config.ah_force_full_reset)) in ar5416Reset() 192 AH5416(ah)->ah_writeIni(ah, chan); in ar5416Reset() 230 * This routine swaps the analog chains - it should be done in ar5416Reset() [all …]
|
/freebsd/contrib/wpa/src/ap/ |
H A D | nan_usd_ap.c | 19 static int hostapd_nan_de_tx(void *ctx, unsigned int freq, in hostapd_nan_de_tx() argument 26 wpa_printf(MSG_DEBUG, "NAN: TX NAN SDF A1=" MACSTR " A2=" MACSTR in hostapd_nan_de_tx() 32 return hostapd_drv_send_action(hapd, hapd->iface->freq, 0, dst, in hostapd_nan_de_tx() 37 static int hostapd_nan_de_listen(void *ctx, unsigned int freq, in hostapd_nan_de_listen() argument 59 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_DISCOVERY_RESULT in hostapd_nan_de_discovery_result() 82 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_REPLIED in hostapd_nan_de_replied() 97 return "user-request"; in nan_reason_txt() 111 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_PUBLISH_TERMINATED in hostapd_nan_de_publish_terminated() 122 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_SUBSCRIBE_TERMINATED in hostapd_nan_de_subscribe_terminated() 140 wpa_msg(hapd->msg_ctx, MSG_INFO, NAN_RECEIVE in hostapd_nan_de_receive() [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 …]
|
H A D | gas_query_ap.c | 4 * Copyright (c) 2011-2017, Qualcomm Atheros, Inc. 5 * Copyright (c) 2011-2014, Jouni Malinen <j@w1.fi> 28 /* GAS query wait-time / duration in ms */ 35 * struct gas_query_pending - Pending GAS query 46 int freq; member 61 * struct gas_query_ap - Internal GAS query data 90 * gas_query_ap_init - Initialize GAS query component 103 gas->hapd = hapd; in gas_query_ap_init() 104 gas->msg_ctx = msg_ctx; in gas_query_ap_init() 105 dl_list_init(&gas->pending); in gas_query_ap_init() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar9002/ |
H A D | ar9287_reset.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 40 * Set the TX power calibration table per-chain. 42 * This only supports open-loop TX power control for the AR9287. 55 HAL_EEPROM_9287 *ee = AH_PRIVATE(ah)->ah_eeprom; in ar9287SetPowerCalTable() 56 struct ar9287_eeprom *pEepData = &ee->ee_base; in ar9287SetPowerCalTable() 58 xpdMask = pEepData->modalHeader.xpdGain; in ar9287SetPowerCalTable() 60 if ((pEepData->baseEepHeader.version & AR9287_EEP_VER_MINOR_MASK) >= in ar9287SetPowerCalTable() [all …]
|
/freebsd/tools/tools/ath/athprom/ |
H A D | eeprom-4 | 9 |-------------------------------------------------------------| 14 |-------------------------------------------------------------| 18 | tx end to XLNA on $txEndToXLNAOn | Threashold 62 $thresh62 | 19 | tx end to XPA off $txEndToXPAOff | tx end to XPA on $txFrameToXPAOn | 29 |-------------------------------------------------------------| 38 | freq | pwr1 | pwr2 | pwr3 | pwr4 | maxPow | 42 | $freq | $pwr_t4_0 | $pwr_t4_1 | $pwr_t4_2 | $pwr_t4_3 | $maxpow | 50 …| 6-24 | $pwr6_24_0 | $pwr6_24_1 | $pwr6_24_2 | $pwr6_24_3 … 57 …| 6-24 | $pwr6_24_4 | $pwr6_24_5 | $pwr6_24_6 | $pwr6_24_7 … 82 |-------------------------------------------------------------| [all …]
|
H A D | eeprom-5 | 10 |-------------------------------------------------------------| 15 |-------------------------------------------------------------| 19 | tx end to XLNA on $txEndToXLNAOn | Threashold 62 $thresh62 | 20 | tx end to XPA off $txEndToXPAOff | tx end to XPA on $txFrameToXPAOn | 33 |-------------------------------------------------------------| 41 | freq | pd | pwr1 | pwr2 | pwr3 | pwr4 | pwr5 | 46 | $freq | $pd_gain | $maxpwr0 | $maxpwr1 | $maxpwr2 | $maxpwr3 | $maxpwr4 | 63 | 6-24 | $pwr6_24_0 | $pwr6_24_1 | $pwr6_24_2 | $pwr6_24_3 | 70 | 6-24 | $pwr6_24_4 | $pwr6_24_5 | $pwr6_24_6 | $pwr6_24_7 | 96 |-------------------------------------------------------------| [all …]
|
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300eep.h | 32 /* FreeBSD extras - should be in ah_eeprom.h ? */ 111 // 16-bit offset location start of calibration struct 145 #define FREQ2FBIN(freq,is_2ghz) \ argument 146 (u_int8_t)((is_2ghz) ? ((freq) - 2300) : (((freq) - 4800) / 5)) 147 #define FBIN2FREQ(freq,is_2ghz) \ argument 148 ((is_2ghz) ? (2300 + freq) : (4800 + 5 * freq)) 241 u_int8_t txrx_mask; //4 bits tx and 4 bits rx 249 u_int8_t feature_enable; //bit0 - enable tx temp comp 250 //bit1 - enable tx volt comp 251 //bit2 - enable fastClock - default to 1 [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/serial/ |
H A D | lantiq_asc.txt | 4 - compatible : Should be "lantiq,asc" 5 - reg : Address and length of the register set for the device 6 - interrupts: the 3 (tx rx err) interrupt numbers. The interrupt specifier 7 depends on the interrupt-parent interrupt controller. 10 - clocks: Should contain frequency clock and gate clock 11 - clock-names: Should be "freq" and "asc" 18 interrupt-parent = <&gic>; 23 clock-names = "freq", "asc"; 29 interrupt-parent = <&icu0>;
|