/freebsd/contrib/ofed/librdmacm/ |
H A D | rsocket.c | 2 * Copyright (c) 2008-2014 Intel Corporation. All rights reserved. 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 84 struct rsocket *rs; member 121 * bit 31: message type, 0 - data, 1 - control 122 * bit 30: buffers updated, 0 - target, 1 - direct-receive 123 * bit 29: more data, 0 - end of transfer, 1 - more data available 129 * bits [28-0]: receive credits granted 131 * bits [28-16]: reserved, bits [15-0]: index 196 int index; /* -1 if mapping is local and not in iomap_list */ [all …]
|
/freebsd/sys/kern/ |
H A D | subr_rangeset.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 39 static void rangeset_check(struct rangeset *rs); 41 #define rangeset_check(rs) argument 54 SYSINIT(rs, SI_SUB_LOCK, SI_ORDER_ANY, rs_rangeset_init, NULL); 59 struct rangeset *rs; in rs_node_alloc() local 61 rs = __containerof(ptree, struct rangeset, rs_trie); in rs_node_alloc() 62 return (uma_zalloc(rs_node_zone, rs->rs_alloc_flags)); in rs_node_alloc() 75 rangeset_init(struct rangeset *rs, rs_dup_data_t dup_data, in rangeset_init() argument 79 pctrie_init(&rs->rs_trie); in rangeset_init() [all …]
|
/freebsd/sys/netinet/ |
H A D | tcp_ratelimit.c | 1 /*- 3 * SPDX-License-Identifier: BSD-3-Clause 5 * Copyright (c) 2018-2020 73 * Why do the rates cluster in the 1-100Mbps range more 81 * Chelsio - Supporting 16 configurable rates. 82 * Mlx - c4 supporting 13 fixed rates. 83 * Mlx - c5 & c6 supporting 127 configurable rates. 113 * by the hardware will cause a 390 micro-second gap between 115 * would need 416 micro-seconds gap between each send. 126 * delta between the two rates (416 - 390) divided into the rate [all …]
|
/freebsd/sys/dev/rtwn/rtl8812a/ |
H A D | r12a_rom.c | 1 /*- 63 struct r12a_softc *rs = sc->sc_priv; in r12a_parse_rom_common() local 67 sc->thermal_meter = rom->thermal_meter; in r12a_parse_rom_common() 68 rs->crystalcap = RTWN_GET_ROM_VAR(rom->crystalcap, in r12a_parse_rom_common() 70 rs->tx_bbswing_2g = RTWN_GET_ROM_VAR(rom->tx_bbswing_2g, 0); in r12a_parse_rom_common() 71 rs->tx_bbswing_5g = RTWN_GET_ROM_VAR(rom->tx_bbswing_5g, 0); in r12a_parse_rom_common() 73 for (i = 0; i < sc->ntxchains; i++) { in r12a_parse_rom_common() 74 struct r12a_tx_pwr_2g *pwr_2g = &rom->tx_pwr[i].pwr_2g; in r12a_parse_rom_common() 75 struct r12a_tx_pwr_5g *pwr_5g = &rom->tx_pwr[i].pwr_5g; in r12a_parse_rom_common() 77 &rom->tx_pwr[i].pwr_diff_2g; in r12a_parse_rom_common() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/direct/ |
H A D | dio_aligned_block.ksh | 1 #!/bin/ksh -p 10 # or https://opensource.org/licenses/CDDL-1.0. 36 # 1. Create a multi-block file 44 zfs set recordsize=$rs $TESTPOOL/$TESTFS 45 log_must rm -f $tmp_file 54 rs=$(get_prop recordsize $TESTPOOL/$TESTFS) 58 file_size=$((rs * 8)) 60 log_must stride_dd -i /dev/urandom -o $tmp_file -b $file_size -c 1 63 check_write $TESTPOOL $tmp_file $rs 1 0 "-D" 0 1 64 check_write $TESTPOOL $tmp_file $rs 2 0 "-D" 0 2 [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | range_tree.c | 9 * or https://opensource.org/licenses/CDDL-1.0. 38 * Range trees are tree-based data structures that can be used to 66 * to the range_tree_create function. Any callbacks that are non-NULL 81 ASSERT3U(rt->rt_type, <, RANGE_SEG_NUM_TYPES); in rs_copy() 83 switch (rt->rt_type) { in rs_copy() 102 range_seg_t *rs; in range_tree_stat_verify() local 107 for (rs = zfs_btree_first(&rt->rt_root, &where); rs != NULL; in range_tree_stat_verify() 108 rs = zfs_btree_next(&rt->rt_root, &where, &where)) { in range_tree_stat_verify() 109 uint64_t size = rs_get_end(rs, rt) - rs_get_start(rs, rt); in range_tree_stat_verify() 110 int idx = highbit64(size) - 1; in range_tree_stat_verify() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonPatterns.td | 1 //===- HexagonPatterns.td - Selection Patterns for Hexagon -*- tablegen -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 46 // 5. Compound instructions (e.g. Rx+Rs*Rt) are generated under the condition 49 // 6. The v4 vector instructions (64-bit) are treated as core instructions, 51 // 7. When adding a pattern for an instruction with a constant-extendable 56 // --(0) Definitions ----------------------------------------------------- 119 // 64-bit value. 120 def LoReg: OutPatFrag<(ops node:$Rs), (EXTRACT_SUBREG $Rs, isub_lo)>; 121 def HiReg: OutPatFrag<(ops node:$Rs), (EXTRACT_SUBREG $Rs, isub_hi)>; [all …]
|
H A D | HexagonIntrinsics.td | 1 //===-- HexagonIntrinsics.td - Instruction intrinsics ------*- tablegen -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // These intrinsic patterns are not auto-generated. 12 : Pat <(IntID I32:$Rs), 13 (MI I32:$Rs)>; 16 : Pat <(IntID I32:$Rs, I32:$Rt), 17 (MI I32:$Rs, I32:$Rt)>; 20 : Pat <(IntID I32:$Rs, I64:$Rt), 21 (MI I32:$Rs, I64:$Rt)>; [all …]
|
/freebsd/sys/net/route/ |
H A D | route_subscription.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2022 Alexander V. Chernikov 59 struct rib_subscription *rs; in rib_notify() local 61 CK_STAILQ_FOREACH(rs, &rnh->rnh_subscribers, next) { in rib_notify() 62 if (rs->type == type) in rib_notify() 63 rs->func(rnh, rc, rs->arg); in rib_notify() 71 struct rib_subscription *rs; in allocate_subscription() local 74 rs = malloc(sizeof(struct rib_subscription), M_RTABLE, flags); in allocate_subscription() 75 if (rs == NULL) in allocate_subscription() [all …]
|
/freebsd/contrib/ofed/librdmacm/examples/ |
H A D | rcopy.c | 11 * - Redistributions of source code must retain the above 15 * - Redistributions in binary form must reproduce the above 96 usec = (end.tv_sec - start.tv_sec) * 1000000 + (end.tv_usec - start.tv_usec); in show_perf() 106 switch (rsa->sa.sa_family) { in _ntop() 108 inet_ntop(AF_INET, &rsa->sin.sin_addr, addr, sizeof addr); in _ntop() 111 inet_ntop(AF_INET6, &rsa->sin6.sin6_addr, addr, sizeof addr); in _ntop() 121 static size_t _recv(int rs, char *msg, size_t len) in _recv() argument 126 ret = rrecv(rs, msg + offset, len - offset, 0); in _recv() 134 static int msg_recv_hdr(int rs, struct msg_hdr *hdr) in msg_recv_hdr() argument 138 ret = _recv(rs, (char *) hdr, sizeof *hdr); in msg_recv_hdr() [all …]
|
/freebsd/contrib/netbsd-tests/usr.bin/awk/ |
H A D | t_awk.sh | 37 cp -r $(atf_get_srcdir)/$fname.$sfx . 40 atf_check -o file:$fname.out -x "awk $@ -f $fname.awk < $fname.in" 73 cp -r $(atf_get_srcdir)/d_string1.$sfx . 75 atf_check -o file:d_string1.out awk -f d_string1.awk 86 export LANG=en_US.UTF-8 100 export LANG=ru_RU.KOI8-R 102 h_check period -v x=0.5 118 atf_set "descr" "Test awk(1) with single character RS" 123 -o "inline:1\n2\n\n3\n\n\n4\n\n" \ 124 -x "echo 1a2aa3aaa4 | $awk 1 RS=a" [all …]
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | range_tree.h | 9 * or https://opensource.org/licenses/CDDL-1.0. 56 zfs_btree_t rt_root; /* offset-ordered segment b-tree */ 68 uint64_t rt_gap; /* allowable inter-segment gap */ 80 uint32_t rs_end; /* ending offset (non-inclusive) */ 84 * Extremely large metaslabs, vdev-wide trees, and dnode-wide trees may 85 * require 64-bit integers for ranges. 89 uint64_t rs_end; /* ending offset (non-inclusive) */ 94 uint64_t rs_end; /* ending offset (non-inclusive) */ 114 void (*rtop_add)(range_tree_t *rt, void *rs, void *arg); 115 void (*rtop_remove)(range_tree_t *rt, void *rs, void *arg); [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430InstrInfo.td | 1 //===-- MSP430InstrInfo.td - MSP430 Instruction defs -------* [all...] |
/freebsd/sys/dev/rtwn/rtl8812a/usb/ |
H A D | r12au_attach.c | 1 /*- 79 struct r12a_softc *rs = sc->sc_priv; in r12au_postattach() local 81 if (usbd_get_speed(uc->uc_udev) == USB_SPEED_SUPER) { in r12au_postattach() 82 rs->ac_usb_dma_size = 0x07; in r12au_postattach() 83 rs->ac_usb_dma_time = 0x1a; in r12au_postattach() 85 rs->ac_usb_dma_size = 0x01; in r12au_postattach() 86 rs->ac_usb_dma_time = 0x10; in r12au_postattach() 89 if (rs->chip & R12A_CHIP_C_CUT) in r12au_postattach() 90 sc->sc_rf_read = r12a_c_cut_rf_read; in r12au_postattach() 92 sc->sc_rf_read = r12a_rf_read; in r12au_postattach() [all …]
|
/freebsd/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_recv.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 114 ar5416AniReset(ah, ahp->ah_curchan, ahp->ah_opmode, ! is_scanning); in ar5416StartPcuReceive() 147 ads->ds_ctl1 = size & AR_BufLen; in ar5416SetupRxDesc() 149 ads->ds_ctl1 |= AR_RxIntrReq; in ar5416SetupRxDesc() 152 ads->ds_rxstatus8 &= ~AR_RxDone; in ar5416SetupRxDesc() 155 OS_MEMZERO(&(ads->u), sizeof(ads->u)); in ar5416SetupRxDesc() 171 struct ath_rx_status *rs) in ar5416ProcRxDesc() argument [all …]
|
/freebsd/sys/dev/rtwn/rtl8192c/usb/ |
H A D | r92cu_attach.c | 3 /*- 65 struct r92c_softc *rs = sc->sc_priv; in r92cu_postattach() local 66 struct ieee80211com *ic = &sc->sc_ic; in r92cu_postattach() 68 if (!(rs->chip & R92C_CHIP_92C) && in r92cu_postattach() 69 rs->board_type == R92C_BOARD_TYPE_HIGHPA) { in r92cu_postattach() 70 sc->agc_prog = &rtl8188ru_agc[0]; in r92cu_postattach() 71 sc->agc_size = nitems(rtl8188ru_agc); in r92cu_postattach() 72 rs->rs_txagc = &rtl8188ru_txagc[0]; in r92cu_postattach() 74 sc->agc_prog = &rtl8192ce_agc[0]; in r92cu_postattach() 75 sc->agc_size = nitems(rtl8192ce_agc); in r92cu_postattach() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | Mips64InstrInfo.td | 1 //===- Mips64InstrInfo.td - Mips64 Instruction Information -*- tablegen -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===// 21 // Node immediate fits as 10-bit sign extended on target immediate. 24 [{ return isInt<10>(N->getSExtValue()); }]>; 27 [{ return isUInt<16>(N->getZExtValue()); }]>; 33 return getImm(N, Log2_64((unsigned) N->getZExtValue())); [all …]
|
H A D | MicroMipsDSPInstrFormats.td | 1 //===-- MicroMipsDSPInstrFormats.td - Instruction Formats --*- tablegen -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 26 bits<5> rs; 29 let Inst{31-26} = 0b000000; 30 let Inst{25-21} = rt; 31 let Inst{20-16} = rs; 32 let Inst{15-11} = rd; 33 let Inst{10-0} = op; 38 bits<5> rs; [all …]
|
/freebsd/usr.bin/rs/tests/ |
H A D | rs_test.sh | 36 atf_check -s exit:0 -o inline:"1 2 3 4 38 " rs -c, 2 <<EOF 51 atf_check -s exit:0 -o inline:"1 2 3 4 53 " rs -s% 2 <<EOF 67 atf_check -s exit:0 -o inline:"1,2,3,4, 69 " rs -C, 2 <<EOF 82 atf_check -s exit:0 -o inline:"1,,2,,3,,4 84 " rs -S, 2 <<EOF 97 atf_check -s exit:0 -o inline:"1 4 7 100 " rs -t 3 <<EOF [all …]
|
/freebsd/sys/dev/rtwn/rtl8821a/usb/ |
H A D | r21au_attach.c | 1 /*- 76 struct ieee80211com *ic = &sc->sc_ic; in r21a_postattach() 77 struct r12a_softc *rs = sc->sc_priv; in r21a_postattach() local 79 if (rs->board_type == R92C_BOARD_TYPE_MINICARD || in r21a_postattach() 80 rs->board_type == R92C_BOARD_TYPE_SOLO || in r21a_postattach() 81 rs->board_type == R92C_BOARD_TYPE_COMBO) in r21a_postattach() 82 sc->sc_set_led = r88e_set_led; in r21a_postattach() 84 sc->sc_set_led = r21a_set_led; in r21a_postattach() 86 TIMEOUT_TASK_INIT(taskqueue_thread, &rs->rs_chan_check, 0, in r21a_postattach() 90 ic->ic_ioctl = r12a_ioctl_net; in r21a_postattach() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_random.c | 1 /*- 185 static struct arc4_stream rs; 198 rs.s[n] = n; in arc4_init() 199 rs.i = 0; in arc4_init() 200 rs.j = 0; in arc4_init() 209 rs.i--; in arc4_addrandom() 211 rs.i = (rs in arc4_addrandom() 186 static struct arc4_stream rs; global() variable [all...] |
/freebsd/sys/dev/rtwn/rtl8192e/ |
H A D | r92e_rom.c | 1 /*- 63 struct r92e_softc *rs = sc->sc_priv; in r92e_parse_rom() local 68 sc->thermal_meter = rom->thermal_meter; in r92e_parse_rom() 69 rs->crystalcap = RTWN_GET_ROM_VAR(rom->crystalcap, in r92e_parse_rom() 72 for (i = 0; i < sc->ntxchains; i++) { in r92e_parse_rom() 73 struct r92e_tx_pwr_2g *pwr_2g = &rom->tx_pwr[i].pwr_2g; in r92e_parse_rom() 75 &rom->tx_pwr[i].pwr_diff_2g; in r92e_parse_rom() 77 for (j = 0; j < R92E_GROUP_2G - 1; j++) { in r92e_parse_rom() 78 rs->cck_tx_pwr[i][j] = in r92e_parse_rom() 79 RTWN_GET_ROM_VAR(pwr_2g->cck[j], in r92e_parse_rom() [all …]
|
/freebsd/contrib/unbound/compat/ |
H A D | arc4random.c | 66 } *rs; variable 88 return -1; in fallback_gotdata() 110 if (fd == -1) { in fallback_getentropy_urandom() 121 size_t wanted = len - i; in fallback_getentropy_urandom() 124 if (ret == -1) { in fallback_getentropy_urandom() 139 return -1; in fallback_getentropy_urandom() 149 if (rs == NULL) { in _rs_init() 151 if ((rs = mmap(NULL, sizeof(*rs), PROT_READ|PROT_WRITE, in _rs_init() 152 MAP_ANON|MAP_PRIVATE, -1, 0)) == MAP_FAILED) in _rs_init() 155 if (minherit(rs, sizeof(*rs), MAP_INHERIT_ZERO) == -1) in _rs_init() [all …]
|
/freebsd/sys/dev/rtwn/rtl8192c/pci/ |
H A D | r92ce_attach.c | 3 /*- 69 struct r92c_softc *rs = sc->sc_priv; in r92ce_postattach() local 70 struct ieee80211com *ic = &sc->sc_ic; in r92ce_postattach() 72 if (!(rs->chip & R92C_CHIP_92C) && in r92ce_postattach() 73 rs->board_type == R92C_BOARD_TYPE_HIGHPA) in r92ce_postattach() 74 rs->rs_txagc = &rtl8188ru_txagc[0]; in r92ce_postattach() 76 rs->rs_txagc = &rtl8192cu_txagc[0]; in r92ce_postattach() 78 if ((rs->chip & (R92C_CHIP_UMC_A_CUT | R92C_CHIP_92C)) == in r92ce_postattach() 80 sc->fwname = "rtwn-rtl8192cfwE"; in r92ce_postattach() 82 sc->fwname = "rtwn-rtl8192cfwE_B"; in r92ce_postattach() [all …]
|
/freebsd/sys/powerpc/powerpc/ |
H A D | support.S | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 33 * - Direct-access versions of copyin/copyout methods. 34 * - These are used by Radix AIM pmap (ISA 3.0), and Book-E, to avoid 99 bge- copy_fault ;\ 105 bge- fusufault ;\ 128 blt- copy_fault ;\ 131 blt- 7, copy_fault ;\ 133 bt- 0, copy_fault ;\ 140 blt- copy_fault ;\ [all …]
|