Home
last modified time | relevance | path

Searched +full:x +full:- +full:rp (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/freebsd/usr.sbin/bluetooth/hccontrol/
H A Dinfo.c1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
44 ng_hci_read_local_ver_rp rp; in hci_read_local_version_information() local
47 n = sizeof(rp); in hci_read_local_version_information()
49 NG_HCI_OCF_READ_LOCAL_VER), (char *) &rp, &n) == ERROR) in hci_read_local_version_information()
52 if (rp.status != 0x00) { in hci_read_local_version_information()
53 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_local_version_information()
54 hci_status2str(rp.status), rp.status); in hci_read_local_version_information()
58 rp.manufacturer = le16toh(rp.manufacturer); in hci_read_local_version_information()
[all …]
H A Dhost_controller_baseband.c1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
45 return (*a - '0'); in hci_hexa2int4()
48 return (*a - 'A' + 0xa); in hci_hexa2int4()
51 return (*a - 'a' + 0xa); in hci_hexa2int4()
53 return (-1); in hci_hexa2int4()
64 return (-1); in hci_hexa2int8()
82 return (-1); in hci_hexstring2array()
94 ng_hci_status_rp rp; in hci_reset() local
[all …]
H A Dle.c86 ng_hci_le_set_scan_parameters_rp rp; in le_set_scan_param() local
122 n = sizeof(rp); in le_set_scan_param()
126 (void *)&cp, sizeof(cp), (void *)&rp, &n) == ERROR) in le_set_scan_param()
129 if (rp.status != 0x00) { in le_set_scan_param()
130 fprintf(stdout, "Status: %s [%#02x]\n", in le_set_scan_param()
131 hci_status2str(rp.status), rp.status); in le_set_scan_param()
142 ng_hci_le_set_scan_enable_rp rp; in le_set_scan_enable() local
153 n = sizeof(rp); in le_set_scan_enable()
159 (void *)&rp, &n) == ERROR) in le_set_scan_enable()
162 if (rp.status != 0x00) { in le_set_scan_enable()
[all …]
H A Dlink_policy.c1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
45 ng_hci_role_discovery_rp rp; in hci_role_discovery() local
64 n = sizeof(rp); in hci_role_discovery()
68 (char *) &rp, &n) == ERROR) in hci_role_discovery()
71 if (rp.status != 0x00) { in hci_role_discovery()
72 fprintf(stdout, "Status: %s [%#02x]\n", in hci_role_discovery()
73 hci_status2str(rp.status), rp.status); in hci_role_discovery()
77 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_role_discovery()
[all …]
H A Dstatus.c1 /*-
4 * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
45 ng_hci_read_failed_contact_cntr_rp rp; in hci_read_failed_contact_counter() local
63 n = sizeof(rp); in hci_read_failed_contact_counter()
67 (char *) &rp, &n) == ERROR) in hci_read_failed_contact_counter()
70 if (rp.status != 0x00) { in hci_read_failed_contact_counter()
71 fprintf(stdout, "Status: %s [%#02x]\n", in hci_read_failed_contact_counter()
72 hci_status2str(rp.status), rp.status); in hci_read_failed_contact_counter()
76 fprintf(stdout, "Connection handle: %d\n", le16toh(rp.con_handle)); in hci_read_failed_contact_counter()
[all …]
/freebsd/sys/cddl/contrib/opensolaris/uts/powerpc/dtrace/
H A Dfasttrap_isa.c39 #define OP(x) ((x) >> 26) argument
40 #define OPX(x) (((x) >> 2) & 0x3FF) argument
41 #define OP_BO(x) (((x) & 0x03E00000) >> 21) argument
42 #define OP_BI(x) (((x) & 0x001F0000) >> 16) argument
43 #define OP_RS(x) (((x) & 0x03E00000) >> 21) argument
44 #define OP_RA(x) (((x) & 0x001F0000) >> 16) argument
45 #define OP_RB(x) (((x) & 0x0000F100) >> 11) argument
52 if (uwrite(p, &instr, 4, tp->ftt_pc) != 0) in fasttrap_tracepoint_install()
53 return (-1); in fasttrap_tracepoint_install()
67 if (uread(p, &instr, 4, tp->ftt_pc) != 0) in fasttrap_tracepoint_remove()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/media/
H A Dvideo-interface-devices.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/media/video-interface-devices.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Jacopo Mondi <jacopo@jmondi.org>
11 - Sakari Ailus <sakari.ailus@linux.intel.com>
14 flash-leds:
15 $ref: /schemas/types.yaml#/definitions/phandle-array
17 An array of phandles, each referring to a flash LED, a sub-node of the LED
20 lens-focus:
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-sunrpc.c27 * At least on HP-UX:
41 #include "netdissect-stdinc.h"
94 …* $FreeBSD: projects/clang400-import/contrib/tcpdump/print-sunrpc.c 276788 2015-01-07 19:55:18Z de…
113 * TRUE is success, FALSE is failure. Un-registers pair
159 const struct sunrpc_msg *rp; in sunrpc_print() local
162 uint32_t x; in sunrpc_print() local
165 ndo->ndo_protocol = "sunrpc"; in sunrpc_print()
166 rp = (const struct sunrpc_msg *)bp; in sunrpc_print()
167 ND_TCHECK_SIZE(rp); in sunrpc_print()
169 if (!ndo->ndo_nflag) { in sunrpc_print()
[all …]
H A Dprint-nfs.c26 #include "netdissect-stdinc.h"
119 * was primarily BSD-derived.
130 { 18, "Cross-device link" }, /* EXDEV */
138 { 30, "Read-only file system" }, /* EROFS */
210 strlcpy(srcaddr, GET_IPADDR_STRING(ip->ip_src), sizeof(srcaddr)); in nfsaddr_print()
211 strlcpy(dstaddr, GET_IPADDR_STRING(ip->ip_dst), sizeof(dstaddr)); in nfsaddr_print()
215 strlcpy(srcaddr, GET_IP6ADDR_STRING(ip6->ip6_src), in nfsaddr_print()
217 strlcpy(dstaddr, GET_IP6ADDR_STRING(ip6->ip6_dst), in nfsaddr_print()
261 sa3->sa_modeset = GET_BE_U_4(dp); in parse_sattr3()
263 if (sa3->sa_modeset) { in parse_sattr3()
[all …]
/freebsd/contrib/bearssl/src/codec/
H A Dpemdec.c8 uint32_t *rp; member
15 uint32_t x; in t0_parse7E_unsigned() local
17 x = 0; in t0_parse7E_unsigned()
22 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_unsigned()
24 return x; in t0_parse7E_unsigned()
33 uint32_t x; in t0_parse7E_signed() local
36 x = (uint32_t)-neg; in t0_parse7E_signed()
41 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_signed()
44 return -(int32_t)~x - 1; in t0_parse7E_signed()
46 return (int32_t)x; in t0_parse7E_signed()
[all …]
/freebsd/sys/dev/thunderbolt/
H A Dnhi.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
87 /* 0 = default, 1 = force-on, 2 = force-off */
101 sc->debug = NHI_DEBUG_LEVEL; in nhi_get_tunables()
102 sc->max_ring_count = NHI_DEFAULT_NUM_RINGS; in nhi_get_tunables()
103 sc->force_hcm = NHI_FORCE_HCM; in nhi_get_tunables()
106 val = TB_GET_DEBUG(sc->dev, &sc->debug); in nhi_get_tunables()
110 ufp = devclass_get_device(dc, device_get_unit(sc->dev)); in nhi_get_tunables()
112 TB_GET_DEBUG(ufp, &sc->debug); in nhi_get_tunables()
116 tb_parse_debug(&sc->debug, oid); in nhi_get_tunables()
[all …]
/freebsd/sbin/ifconfig/
H A Diflagg.c1 /*-
39 struct lagg_reqport rp = {}; in setlaggport() local
41 strlcpy(rp.rp_ifname, ctx->ifname, sizeof(rp.rp_ifname)); in setlaggport()
42 strlcpy(rp.rp_portname, val, sizeof(rp.rp_portname)); in setlaggport()
50 if (ioctl_ctx(ctx, SIOCSLAGGPORT, &rp) && errno != EEXIST) { in setlaggport()
52 ctx->ifname, val, strerror(errno)); in setlaggport()
60 struct lagg_reqport rp = {}; in unsetlaggport() local
62 strlcpy(rp.rp_ifname, ctx->ifname, sizeof(rp.rp_ifname)); in unsetlaggport()
63 strlcpy(rp.rp_portname, val, sizeof(rp.rp_portname)); in unsetlaggport()
65 if (ioctl_ctx(ctx, SIOCSLAGGDELPORT, &rp)) in unsetlaggport()
[all …]
/freebsd/contrib/bearssl/src/x509/
H A Dskey_decoder.c8 uint32_t *rp; member
15 uint32_t x; in t0_parse7E_unsigned() local
17 x = 0; in t0_parse7E_unsigned()
22 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_unsigned()
24 return x; in t0_parse7E_unsigned()
33 uint32_t x; in t0_parse7E_signed() local
36 x = (uint32_t)-neg; in t0_parse7E_signed()
41 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_signed()
44 return -(int32_t)~x - 1; in t0_parse7E_signed()
46 return (int32_t)x; in t0_parse7E_signed()
[all …]
H A Dx509_decoder.c8 uint32_t *rp; member
15 uint32_t x; in t0_parse7E_unsigned() local
17 x = 0; in t0_parse7E_unsigned()
22 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_unsigned()
24 return x; in t0_parse7E_unsigned()
33 uint32_t x; in t0_parse7E_signed() local
36 x = (uint32_t)-neg; in t0_parse7E_signed()
41 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_signed()
44 return -(int32_t)~x - 1; in t0_parse7E_signed()
46 return (int32_t)x; in t0_parse7E_signed()
[all …]
/freebsd/sys/netgraph/
H A Dng_nat.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
69 static unsigned int ng_nat_translate_flags(unsigned int x);
135 (buf - offsetof(struct ng_nat_list_redirects, redirects)); in ng_nat_listrdrs_ary_getLength()
136 return lr->total_count; in ng_nat_listrdrs_ary_getLength()
318 priv->lib = LibAliasInit(NULL); in ng_nat_constructor()
321 (void )LibAliasSetMode(priv->lib, PKT_ALIAS_SAME_PORTS, in ng_nat_constructor()
325 priv->rdrcount = 0; in ng_nat_constructor()
326 priv->nextid = 1; in ng_nat_constructor()
327 priv->dlt = DLT_RAW; in ng_nat_constructor()
[all …]
/freebsd/sys/cddl/contrib/opensolaris/uts/intel/dtrace/
H A Dfasttrap_isa.c57 * Lossless User-Land Tracing on x86
58 * ---------
97 FASTTRAP_REX(w,r,x,b) global() argument
208 fasttrap_anarg(struct reg * rp,int function_entry,int argno) fasttrap_anarg() argument
686 fasttrap_return_common(struct reg * rp,uintptr_t pc,pid_t pid,uintptr_t new_pc) fasttrap_return_common() argument
749 fasttrap_usdt_args64(fasttrap_probe_t * probe,struct reg * rp,int argc,uintptr_t * argv) fasttrap_usdt_args64() argument
752 int i, x, cap = MIN(argc, probe->ftp_nargs); fasttrap_usdt_args64() local
771 fasttrap_usdt_args32(fasttrap_probe_t * probe,struct reg * rp,int argc,uint32_t * argv) fasttrap_usdt_args32() argument
774 int i, x, cap = MIN(argc, probe->ftp_nargs); fasttrap_usdt_args32() local
789 fasttrap_do_seg(fasttrap_tracepoint_t * tp,struct reg * rp,uintptr_t * addr) fasttrap_do_seg() argument
921 struct reg reg, *rp; fasttrap_pid_probe() local
1735 struct reg reg, *rp; fasttrap_return_probe() local
1796 fasttrap_getreg(struct reg * rp,uint_t reg) fasttrap_getreg() argument
[all...]
/freebsd/usr.sbin/traceroute/
H A Dfindsaddr-socket.c60 #include "os-proto.h"
64 #define SALEN(sa) ((sa)->sa_len)
67 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */ argument
89 register struct rt_msghdr *rp; in findsaddr() local
107 rp = &rtmsg.rtmsg; in findsaddr()
108 rp->rtm_seq = ++seq; in findsaddr()
109 cp = (u_char *)(rp + 1); in findsaddr()
115 size = cp - (u_char *)rp; in findsaddr()
116 rp->rtm_msglen = size; in findsaddr()
118 cc = write(s, (char *)rp, size); in findsaddr()
[all …]
/freebsd/sys/kern/
H A Dsubr_physmem.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
117 * provided printf-like output function (which will be either printf or
132 prfunc(" 0x%08jx - 0x%08jx, %5ju MB (%7ju pages)\n", addr,
133 addr + size - 1, size / mbyte, size / PAGE_SIZE);
141 prfunc(" 0x%08jx - 0x%08jx, %5ju MB (%7ju pages) %s %s\n",
142 addr, addr + size - 1, size / mbyte, size / PAGE_SIZE,
150 prfunc(" phys_avail[%zu] 0x%08jx\n", i,
154 prfunc(" dump_avail[%zu] 0x%08jx\n", i,
200 adj = round_page(hwp->addr) - hwp->addr; in regions_to_avail()
[all …]
/freebsd/sys/dev/firmware/arm/
H A Dscmi.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
152 (&((_sc)->trs->inflight_ht[(_tk) & (_sc)->trs->inflight_mask]))
199 sc->dev = dev; in scmi_attach()
202 if (node == -1) in scmi_attach()
211 device_printf(dev, "Transport - max_msg:%d max_payld_sz:%lu reply_timo_ms:%d\n", in scmi_attach()
214 sc->sysctl_root = SYSCTL_ADD_NODE(NULL, SYSCTL_STATIC_CHILDREN(_hw), in scmi_attach()
216 sysctl_trans = SYSCTL_ADD_NODE(NULL, SYSCTL_CHILDREN(sc->sysctl_root), in scmi_attach()
219 CTLFLAG_RD, &sc->trs_desc.max_msg, 0, "SCMI Max number of inflight messages"); in scmi_attach()
221 CTLFLAG_RD, &sc->trs_desc.max_payld_sz, 0, "SCMI Max message payload size"); in scmi_attach()
[all …]
/freebsd/crypto/openssl/crypto/ec/asm/
H A Decp_nistz256-armv8.pl2 # Copyright 2015-2025 The OpenSSL Project Authors. All Rights Reserved.
24 # with/without -DECP_NISTZ256_ASM
25 # Apple A7 +190-360%
26 # Cortex-A53 +190-400%
27 # Cortex-A57 +190-350%
28 # Denver +230-400%
31 # on benchmark. Lower coefficients are for ECDSA sign, server-side
32 # operation. Keep in mind that +400% means 5x improvement.
40 ( $xlate="${dir}arm-xlate.pl" and -f $xlate ) or
41 ( $xlate="${dir}../../perlasm/arm-xlate.pl" and -f $xlate) or
[all …]
H A Decp_nistz256-sparcv9.pl2 # Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved.
23 # original .c module was made 32-bit savvy in order to make this
26 # with/without -DECP_NISTZ256_ASM
27 # UltraSPARC III +12-18%
28 # SPARC T4 +99-550% (+66-150% on 32-bit Solaris)
31 # on benchmark. Lower coefficients are for ECDSA sign, server-side
32 # operation. Keep in mind that +200% means 3x improvement.
66 s/TOBN\(\s*(0x[0-9a-f]+),\s*(0x[0-9a-f]+)\s*\)/push @arr,hex($2),hex($1)/geo;
71 # 64*16*37-1 is because $#arr returns last valid index or @arr, not
73 die "insane number of elements" if ($#arr != 64*16*37-1);
[all …]
/freebsd/contrib/libfido2/fuzz/
H A Dfuzz_credman.c2 * Copyright (c) 2019-2021 Yubico AB. All rights reserved.
3 * Use of this source code is governed by a BSD-style
5 * SPDX-License-Identifier: BSD-2-Clause
18 #include "../openbsd-compat/openbsd-compat.h"
86 int ok = -1; in unpack()
97 if (unpack_int(v[0], &p->seed) < 0 || in unpack()
98 unpack_string(v[1], p->pin) < 0 || in unpack()
99 unpack_string(v[2], p->rp_id) < 0 || in unpack()
100 unpack_blob(v[3], &p->cred_id) < 0 || in unpack()
101 unpack_blob(v[4], &p->meta_wire_data) < 0 || in unpack()
[all …]
/freebsd/contrib/nvi/ex/
H A Dex_global.c1 /*-
32 * ex_global -- [line [,line]] g[lobal][!] /pattern/ [commands]
41 cmdp, FL_ISSET(cmdp->iflags, E_C_FORCE) ? V : GLOBAL)); in ex_global()
45 * ex_v -- [line [,line]] v /pattern/ [commands]
57 * ex_g_setup --
66 RANGE *rp; in ex_g_setup() local
78 msgq_wstr(sp, M_ERR, cmdp->cmd->name, in ex_g_setup()
84 * Skip leading white space. Historic vi allowed any non-alphanumeric in ex_g_setup()
87 if (cmdp->argc == 0) in ex_g_setup()
89 for (p = cmdp->argv[0]->bp; cmdskip(*p); ++p); in ex_g_setup()
[all …]
/freebsd/usr.sbin/ppp/
H A Ddeflate.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
53 #define DEFLATE_CHUNK_LEN (1536 - sizeof(struct mbuf))
60 state->seqno = 0; in DeflateResetOutput()
61 state->uncomp_rec = 0; in DeflateResetOutput()
62 deflateReset(&state->cx); in DeflateResetOutput()
73 u_char *wp, *rp; in DeflateOutput() local
78 log_Printf(LogDEBUG, "DeflateOutput: Proto %02x (%d bytes)\n", *proto, ilen); in DeflateOutput()
83 mi->m_next = mp; in DeflateOutput()
84 rp = MBUF_CTOP(mi); in DeflateOutput()
[all …]
/freebsd/crypto/openssl/crypto/ec/
H A Decdsa_ossl.c2 * Copyright 2002-2024 The OpenSSL Project Authors. All Rights Reserved.
34 BIGNUM **kinvp, BIGNUM **rp,
40 BIGNUM **rp) in ossl_ecdsa_sign_setup() argument
42 if (eckey->group->meth->ecdsa_sign_setup == NULL) { in ossl_ecdsa_sign_setup()
47 return eckey->group->meth->ecdsa_sign_setup(eckey, ctx_in, kinvp, rp); in ossl_ecdsa_sign_setup()
54 if (eckey->group->meth->ecdsa_sign_sig == NULL) { in ossl_ecdsa_sign_sig()
59 return eckey->group->meth->ecdsa_sign_sig(dgst, dgst_len, in ossl_ecdsa_sign_sig()
66 if (eckey->group->meth->ecdsa_verify_sig == NULL) { in ossl_ecdsa_verify_sig()
71 return eckey->group->meth->ecdsa_verify_sig(dgst, dgst_len, sig, eckey); in ossl_ecdsa_verify_sig()
133 BIGNUM **kinvp, BIGNUM **rp, in ecdsa_sign_setup() argument
[all …]

12345678910>>...13