| /freebsd/sys/dev/ath/ath_rate/sample/ |
| H A D | sample.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 17 * 3. Neither the names of the above-listed copyright holders nor the names 45 /* per-device state */ 56 #define ATH_SOFTC_SAMPLE(sc) ((struct sample_softc *)sc->sc_rc) 89 /* per-node state */ 115 #define IS_RATE_DEFINED(sn, rix) (((uint64_t) (sn)->ratemask & (1ULL<<((uint64_t) rix))) != 0) 120 #ifndef MAX 121 #define MAX(a,b) ((a) > (b) ? (a) : (b)) macro 135 const HAL_RATE_TABLE *rt = sc->sc_currates; in calc_usecs_unicast_packet() local [all …]
|
| H A D | sample.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 17 * 3. Neither the names of the above-listed copyright holders nor the names 86 * in "Bit-rate Selection in Wireless Networks" 87 * (http://www.pdos.lcs.mit.edu/papers/jbicket-ms.ps) 89 * SampleRate chooses the bit-rate it predicts will provide the most 90 * throughput based on estimates of the expected per-packet 91 * transmission time for each bit-rate. SampleRate periodically sends 92 * packets at bit-rates other than the current one to estimate when 93 * another bit-rate will provide better performance. SampleRate [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm64/nvidia/ |
| H A D | tegra234-p3740-0002+p3701-0008.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include <dt-bindings/input/linux-event-codes.h> 5 #include <dt-bindings/input/gpio-keys.h> 6 #include <dt-bindings/sound/rt5640.h> 7 #include "tegra234-p3701-0008.dtsi" 11 compatible = "nvidia,p3740-0002+p3701-0008", "nvidia,p3701-0008", "nvidia,tegra234"; 19 stdout-path = "serial0:115200n8"; 29 dai-format = "i2s"; 30 remote-endpoint = <&rt5640_ep>; [all …]
|
| H A D | tegra234-p3737-0000+p3701.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <dt-bindings/clock/tegra234-clock.h> 4 #include <dt-bindings/gpio/tegra234-gpio.h> 5 #include <dt-bindings/input/linux-event-codes.h> 6 #include <dt-bindings/input/gpio-keys.h> 7 #include <dt-bindings/sound/rt5640.h> 17 stdout-path = "serial0:115200n8"; 27 dai-format = "i2s"; 28 remote-endpoint = <&rt5640_ep>; 37 compatible = "nvidia,tegra194-hsuart"; [all …]
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | range_tree.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 39 * Range trees are tree-based data structures that can be used to 67 * to the zfs_range_tree_create function. Any callbacks that are non-NULL 80 zfs_rs_copy(zfs_range_seg_t *src, zfs_range_seg_t *dest, zfs_range_tree_t *rt) in zfs_rs_copy() argument 82 ASSERT3U(rt->rt_type, <, ZFS_RANGE_SEG_NUM_TYPES); in zfs_rs_copy() 84 switch (rt->rt_type) { in zfs_rs_copy() 101 zfs_range_tree_stat_verify(zfs_range_tree_t *rt) in zfs_range_tree_stat_verify() argument 108 for (rs = zfs_btree_first(&rt->rt_root, &where); rs != NULL; in zfs_range_tree_stat_verify() 109 rs = zfs_btree_next(&rt->rt_root, &where, &where)) { in zfs_range_tree_stat_verify() [all …]
|
| H A D | space_map.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 45 * DMU to keep more data in-core, and also to waste more I/O bandwidth 50 * Enabled whenever we want to stress test the use of double-word 59 * or two indirect blocks (16K-32K, rather than 128K). 83 * Iterate through the space map, invoking the callback on each (non-debug) 89 uint64_t blksz = sm->sm_blksz; in space_map_iterate() 95 dmu_prefetch(sm->sm_os, space_map_object(sm), 0, 0, end, in space_map_iterate() 103 error = dmu_buf_hold(sm->sm_os, space_map_object(sm), in space_map_iterate() 108 uint64_t *block_start = db->db_data; in space_map_iterate() [all …]
|
| /freebsd/sys/dev/rtwn/rtl8192c/ |
| H A D | r92c_chan.c | 3 /*- 62 if (sc->sc_debug & RTWN_DEBUG_TXPWR) { in r92c_dump_txpower() 87 for (i = 0; i < sc->ntxchains; i++) { in r92c_dump_txpower() 89 "TX [%d]: MCS%d-%d: %d %d %d %d %d %d %d %d\n", in r92c_dump_txpower() 119 return (-1); in r92c_get_power_group() 122 KASSERT(0, ("wrong channel band (flags %08X)\n", c->ic_flags)); in r92c_get_power_group() 123 return (-1); in r92c_get_power_group() 134 const struct ieee80211com *ic = &sc->sc_ic; in r92c_get_txpower() 135 struct r92c_softc *rs = sc->sc_priv; in r92c_get_txpower() 136 struct rtwn_r92c_txpwr *rt = rs->rs_txpwr; in r92c_get_txpower() local [all …]
|
| /freebsd/sys/contrib/openzfs/include/sys/ |
| H A D | space_map.h | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 51 * The space_map_phys is the on-disk representation of the space map. 87 * allocated, and the on-disk object that stores this information. 101 space_map_phys_t *sm_phys; /* on-disk space map */ 108 * +-----+-----+------------+----------------------------------+ 110 * +-----+-----+------------+----------------------------------+ 114 * one-word entry 117 * +-----------------------------------------------------------+ 119 * +-----------------------------------------------------------+ [all …]
|
| /freebsd/sys/dts/arm/ |
| H A D | qcom-ipq4018-rt-ac58u.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 #include "qcom/qcom-ipq4019.dtsi" 4 #include "qcom-ipq4019-ethernet.dtsi" 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/soc/qcom,tcsr.h> 11 model = "ASUS RT-AC58U"; 12 compatible = "asus,rt-ac58u"; 20 led-boot = &led_power; 21 led-failsafe = &led_power; [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | Program.cpp | 1 //===--- Program.cpp - Bytecode for the constexpr VM ------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 24 return It->second; in getOrCreateNativePointer() 37 const size_t CharWidth = S->getCharByteWidth(); in createGlobalString() 57 allocateDescriptor(S, CharType, Descriptor::GlobalMD, S->getLength() + 1, in createGlobalString() 65 unsigned Sz = Desc->getAllocSize(); in createGlobalString() 68 G->block()->invokeCtor(); in createGlobalString() 70 new (G->block()->rawData()) InlineDescriptor(Desc); in createGlobalString() 74 const Pointer Ptr(G->block()); in createGlobalString() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MicroMips32r6InstrInfo.td | 1 //=- MicroMips32r6InstrInfo.td - MicroMips r6 Instruction Information -*- tablegen -*-=// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 47 //===----------------------------------------------------------------------===// 51 //===----------------------------------------------------------------------===// 254 class MAX_S_MMR6_ENC : POOL32F_MINMAX_FM<"max.s", 0, 0b000001011>; 255 class MAX_D_MMR6_ENC : POOL32F_MINMAX_FM<"max.d", 1, 0b000001011>; 270 //===----------------------------------------------------------------------===// 274 //===----------------------------------------------------------------------===// [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | AMDGPU.cpp | 1 //===- AMDGPU.cpp ---------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 16 //===----------------------------------------------------------------------===// 18 //===----------------------------------------------------------------------===// 37 if (PtrTy && PtrTy->getAddressSpace() == FromAS) in coerceKernelArgumentType() 38 return llvm::PointerType::get(Ty->getContext(), ToAS); in coerceKernelArgumentType() 72 if (const VectorType *VT = Ty->getAs<VectorType>()) { in numRegsForType() 74 // in-memory size, which includes the padding 4th element for 3-vectors. in numRegsForType() 75 QualType EltTy = VT->getElementType(); in numRegsForType() [all …]
|
| /freebsd/sys/dev/rtwn/rtl8188e/ |
| H A D | r88e_chan.c | 3 /*- 6 * Copyright (c) 2015-2016 Andriy Voskoboinyk <avos@FreeBSD.org> 73 return (-1); in r88e_get_power_group() 76 KASSERT(0, ("wrong channel band (flags %08X)\n", c->ic_flags)); in r88e_get_power_group() 77 return (-1); in r88e_get_power_group() 87 const struct ieee80211com *ic = &sc->sc_ic; in r88e_get_txpower() 88 struct r92c_softc *rs = sc->sc_priv; in r88e_get_txpower() 89 const struct rtwn_r88e_txpwr *rt = rs->rs_txpwr; in r88e_get_txpower() local 95 if (group == -1) { /* shouldn't happen */ in r88e_get_txpower() 96 device_printf(sc->sc_dev, "%s: incorrect channel\n", __func__); in r88e_get_txpower() [all …]
|
| /freebsd/sys/net80211/ |
| H A D | ieee80211_hwmp.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 123 #define HWMP_SEQ_LT(a, b) ((int32_t)((a)-(b)) < 0) 124 #define HWMP_SEQ_LEQ(a, b) ((int32_t)((a)-(b)) <= 0) 125 #define HWMP_SEQ_EQ(a, b) ((int32_t)((a)-(b)) == 0) 126 #define HWMP_SEQ_GT(a, b) ((int32_t)((a)-(b)) > 0) 148 uint8_t hs_maxhops; /* max hop count */ 156 static int ieee80211_hwmp_pathtimeout = -1; 161 static int ieee80211_hwmp_maxpreq_retries = -1; 166 static int ieee80211_hwmp_net_diameter_traversaltime = -1; [all …]
|
| H A D | ieee80211_mesh.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 106 static int ieee80211_mesh_gateint = -1; 111 static int ieee80211_mesh_retrytimeout = -1; 116 static int ieee80211_mesh_holdingtimeout = -1; 122 static int ieee80211_mesh_confirmtimeout = -1; 127 static int ieee80211_mesh_backofftimeout = -1; 185 struct ieee80211_mesh_route *rt; in mesh_rt_find_locked() local 189 TAILQ_FOREACH(rt, &ms->ms_routes, rt_next) { in mesh_rt_find_locked() 190 if (IEEE80211_ADDR_EQ(dest, rt->rt_dest)) in mesh_rt_find_locked() [all …]
|
| /freebsd/sys/netgraph/bluetooth/socket/ |
| H A D | ng_btsocket_l2cap_raw.c | 5 /*- 6 * SPDX-License-Identifier: BSD-2-Clause 8 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com> 32 * $Id: ng_btsocket_l2cap_raw.c,v 1.12 2003/09/14 23:29:06 max Exp $ 148 "Bluetooth raw L2CAP sockets input queue max. length"); 284 if (msg != NULL && msg->header.typecookie == NGM_L2CAP_COOKIE) { in ng_btsocket_l2cap_raw_node_rcvmsg() 291 if (msg->header.cmd != NGM_L2CAP_NODE_HOOK_INFO) { in ng_btsocket_l2cap_raw_node_rcvmsg() 292 if (msg->header.token == 0 || in ng_btsocket_l2cap_raw_node_rcvmsg() 293 !(msg->header.flags & NGF_RESP)) { in ng_btsocket_l2cap_raw_node_rcvmsg() 362 KASSERT((item->el_flags & NGQF_TYPE) == NGQF_MESG, in ng_btsocket_l2cap_raw_input() [all …]
|
| H A D | ng_btsocket_l2cap.c | 5 /*- 6 * SPDX-License-Identifier: BSD-2-Clause 8 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com> 32 * $Id: ng_btsocket_l2cap.c,v 1.16 2003/09/14 23:29:06 max Exp $ 129 "Bluetooth SEQPACKET L2CAP sockets input queue max. length"); 351 if (msg != NULL && msg->header.typecookie == NGM_L2CAP_COOKIE) { in ng_btsocket_l2cap_node_rcvmsg() 414 ng_btsocket_l2cap_rtentry_p rt) in ng_btsocket_l2cap_process_l2ca_con_req_rsp() argument 420 if (msg->header.arglen != sizeof(*op)) in ng_btsocket_l2cap_process_l2ca_con_req_rsp() 423 op = (ng_l2cap_l2ca_con_op *)(msg->data); in ng_btsocket_l2cap_process_l2ca_con_req_rsp() 428 pcb = ng_btsocket_l2cap_pcb_by_token(msg->header.token); in ng_btsocket_l2cap_process_l2ca_con_req_rsp() [all …]
|
| H A D | ng_btsocket_sco.c | 5 /*- 6 * SPDX-License-Identifier: BSD-2-Clause 8 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com> 32 * $Id: ng_btsocket_sco.c,v 1.2 2005/10/31 18:08:51 max Exp $ 128 "Bluetooth SEQPACKET SCO sockets input queue max. length"); 316 if (msg != NULL && msg->header.typecookie == NGM_HCI_COOKIE) { in ng_btsocket_sco_node_rcvmsg() 378 ng_btsocket_sco_rtentry_p rt) in ng_btsocket_sco_process_lp_con_cfm() argument 384 if (msg->header.arglen != sizeof(*ep)) in ng_btsocket_sco_process_lp_con_cfm() 387 ep = (ng_hci_lp_con_cfm_ep *)(msg->data); in ng_btsocket_sco_process_lp_con_cfm() 392 pcb = ng_btsocket_sco_pcb_by_addrs(&rt->src, &ep->bdaddr); in ng_btsocket_sco_process_lp_con_cfm() [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm/aspeed/ |
| H A D | aspeed-bmc-facebook-harma.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 /dts-v1/; 5 #include "aspeed-g6.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 7 #include <dt-bindings/i2c/i2c.h> 11 compatible = "facebook,harma-bmc", "aspeed,ast2600"; 32 stdout-path = &uart5; 40 iio-hwmon { 41 compatible = "iio-hwmon"; 42 io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>, [all …]
|
| /freebsd/sys/netgraph/netflow/ |
| H A D | netflow.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2010-2011 Alexander V. Chernikov <melifaro@ipfw.ru> 5 * Copyright (c) 2004-2005 Gleb Smirnoff <glebius@FreeBSD.org> 6 * Copyright (c) 2001-2003 Roman V. Palagin <romanp@unshadow.net> 81 (NBUCKETS - 1)) 87 (NBUCKETS - 1)) 91 #define INACTIVE(fle) (time_uptime - fle->f.last > priv->nfinfo_inact_t) 92 #define AGED(fle) (time_uptime - fle->f.first > priv->nfinfo_act_t) 93 #define ISFREE(fle) (fle->f.packets == 0) [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | EPCGenericJITLinkMemoryManager.cpp | 1 //===---- EPCGenericJITLinkMemoryManager.cpp -- Mem management via EPC ----===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 27 // due to http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1397. 48 assert(KV.second.ContentSize <= std::numeric_limits<size_t>::max()); in finalize() 61 rt::SPSSimpleExecutorMemoryManagerFinalizeSignature>( in finalize() 63 [OnFinalize = std::move(OnFinalize), AllocAddr = this->AllocAddr]( in finalize() 80 rt::SPSSimpleExecutorMemoryManagerDeallocateSignature>( in abandon() 109 EPC.callSPSWrapperAsync<rt::SPSSimpleExecutorMemoryManagerReserveSignature>( in allocate() 122 SAs.Allocator, Pages->total()); in allocate() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonConstExtenders.cpp | 1 //===- HexagonConstExtenders.cpp ------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 28 #define DEBUG_TYPE "hexagon-cext-opt" 33 "hexagon-cext-threshold", cl::init(3), cl::Hidden, 37 ReplaceLimit("hexagon-cext-limit", cl::init(0), cl::Hidden, 47 int32_t U = (V & -A) + O; in adjustUp() 53 int32_t U = (V & -A) + O; in adjustDown() 54 return U <= V ? U : U-A; in adjustDown() 59 // The range of values between Min and Max that are of form Align*N+Offset, [all …]
|
| H A D | HexagonIntrinsicsV5.td | 1 //===- HexagonIntrinsicsV5.td - V5 Instruction intrinsics --*- tablegen -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 41 // Rdd=vmpyhsu(Rs,Rt)[:<<1]:sat 45 // Rxx+=vmpyhsu(Rs,Rt)[:<<1]:sat 50 // Rdd=vpmpyh(Rs,Rt) 52 // Rxx[^]=vpmpyh(Rs,Rt) 56 // Rdd=pmpyw(Rs,Rt) 58 // Rxx^=pmpyw(Rs,Rt) 61 //Rxx^=asr(Rss,Rt) [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
| H A D | SimpleExecutorMemoryManager.cpp | 1 //===- SimpleExecuorMemoryManagare.cpp - Simple executor-side memory mgmt -===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 42 // NOTE: Finalizing nothing is currently a no-op. Should it be an error? in finalize() 68 AllocSize = I->second.Size; in finalize() 69 I->second.DeallocationActions = std::move(DeallocationActions); in finalize() 73 // Bail-out function: this will run deallocation actions corresponding to any in finalize() 98 joinErrors(std::move(Err), FR.Actions[--SuccessfulFinalizationActions] in finalize() 122 formatv("Segment {0:x} -- {1:x} crosses boundary of " in finalize() 123 "allocation {2:x} -- {3:x}", in finalize() [all …]
|
| /freebsd/sbin/routed/ |
| H A D | trace.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 61 for (p = buf; len != 0 && p < &buf[sizeof(buf)-1]; len--) { in qstring() 154 (void)fprintf(ftrace, "-- %s --\n", ts(now.tv_sec)); in lastlog() 238 int dump) /* -1=no dump, 0=default, 1=force */ in tracelevel_msg() 266 while (--tracelevel != new_tracelevel); in tracelevel_msg() 283 int dump) /* -1=no dump, 0=default, 1=force */ in set_tracefile() 311 /* Allow the file specified with "-T file" to be reopened, in set_tracefile() 318 && (strncmp(filename, _PATH_TRACE, sizeof(_PATH_TRACE)-1) in set_tracefile() 353 strncpy(savetracename, fn, sizeof(savetracename)-1); in set_tracefile() [all …]
|