/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | vdev_raidz_math_powerpc_altivec_common.h | 30 #define REG_CNT(r...) _REG_CNT(r, 8, 7, 6, 5, 4, 3, 2, 1) argument 50 #define VR0(r...) VR0_(r) argument 51 #define VR1(r...) VR1_(r) argument 52 #define VR2(r...) VR2_(r, 36) argument 53 #define VR3(r...) VR3_(r, 36, 35) argument 54 #define VR4(r...) VR4_(r, 36, 35, 34, 33) argument 55 #define VR5(r...) VR5_(r, 36, 35, 34, 33, 32) argument 56 #define VR6(r...) VR6_(r, 36, 35, 34, 33, 32, 31) argument 57 #define VR7(r...) VR7_(r, 36, 35, 34, 33, 32, 31, 30) argument 70 #define RVR0(r...) RVR0_(r) argument [all …]
|
H A D | vdev_raidz_math_aarch64_neon_common.h | 33 #define REG_CNT(r...) _REG_CNT(r, 8, 7, 6, 5, 4, 3, 2, 1) argument 53 #define VR0(r...) VR0_(r) argument 54 #define VR1(r...) VR1_(r) argument 55 #define VR2(r...) VR2_(r, 36) argument 56 #define VR3(r...) VR3_(r, 36, 35) argument 57 #define VR4(r...) VR4_(r, 36, 35, 34, 33) argument 58 #define VR5(r...) VR5_(r, 36, 35, 34, 33, 32) argument 59 #define VR6(r...) VR6_(r, 36, 35, 34, 33, 32, 31) argument 60 #define VR7(r...) VR7_(r, 36, 35, 34, 33, 32, 31, 30) argument 73 #define RVR0(r...) RVR0_(r) argument [all …]
|
H A D | vdev_raidz_math_avx2.c | 36 #define REG_CNT(r...) _REG_CNT(r, 8, 7, 6, 5, 4, 3, 2, 1) argument 47 #define VR0(r...) VR0_(r) argument 48 #define VR1(r...) VR1_(r) argument 49 #define VR2(r...) VR2_(r, 1) argument 50 #define VR3(r...) VR3_(r, 1, 2) argument 51 #define VR4(r...) VR4_(r, 1, 2) argument 52 #define VR5(r...) VR5_(r, 1, 2, 3) argument 53 #define VR6(r...) VR6_(r, 1, 2, 3, 4) argument 54 #define VR7(r...) VR7_(r, 1, 2, 3, 4, 5) argument 71 #define XOR_ACC(src, r...) \ argument [all …]
|
H A D | vdev_raidz_math_avx512bw.c | 40 #define REG_CNT(r...) _REG_CNT(r, 8, 7, 6, 5, 4, 3, 2, 1) argument 51 #define VR0(r...) VR0_(r) argument 52 #define VR1(r...) VR1_(r) argument 53 #define VR2(r...) VR2_(r, 1) argument 54 #define VR3(r...) VR3_(r, 1, 2) argument 55 #define VR4(r...) VR4_(r, 1, 2) argument 56 #define VR5(r...) VR5_(r, 1, 2, 3) argument 57 #define VR6(r...) VR6_(r, 1, 2, 3, 4) argument 58 #define VR7(r...) VR7_(r, 1, 2, 3, 4, 5) argument 74 #define XOR_ACC(src, r...) \ argument [all …]
|
H A D | vdev_raidz_math_ssse3.c | 37 #define REG_CNT(r...) _REG_CNT(r, 8, 7, 6, 5, 4, 3, 2, 1) argument 48 #define VR0(r...) VR0_(r) argument 49 #define VR1(r...) VR1_(r) argument 50 #define VR2(r...) VR2_(r, 1) argument 51 #define VR3(r...) VR3_(r, 1, 2) argument 52 #define VR4(r...) VR4_(r, 1, 2) argument 53 #define VR5(r...) VR5_(r, 1, 2, 3) argument 54 #define VR6(r...) VR6_(r, 1, 2, 3, 4) argument 55 #define VR7(r...) VR7_(r, 1, 2, 3, 4, 5) argument 72 #define XOR_ACC(src, r...) \ argument [all …]
|
/freebsd/usr.sbin/bluetooth/hccontrol/ |
H A D | node.c | 50 struct ng_btsocket_hci_raw_node_state r; in hci_read_node_state() 52 memset(&r, 0, sizeof(r)); in hci_read_node_state() 53 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_STATE, &r, sizeof(r)) < 0) in hci_read_node_state() 56 fprintf(stdout, "State: %#x\n", r.state); in hci_read_node_state() 75 struct ng_btsocket_hci_raw_node_debug r; in hci_read_debug_level() 77 memset(&r, 0, sizeof(r)); in hci_read_debug_level() 78 if (ioctl(s, SIOC_HCI_RAW_NODE_GET_DEBUG, &r, sizeo in hci_read_debug_level() 49 struct ng_btsocket_hci_raw_node_state r; hci_read_node_state() local 74 struct ng_btsocket_hci_raw_node_debug r; hci_read_debug_level() local 89 struct ng_btsocket_hci_raw_node_debug r; hci_write_debug_level() local 111 struct ng_btsocket_hci_raw_node_buffer r; hci_read_node_buffer_size() local 139 struct ng_btsocket_hci_raw_node_bdaddr r; hci_read_node_bd_addr() local 154 struct ng_btsocket_hci_raw_node_features r; hci_read_node_features() local 175 struct ng_btsocket_hci_raw_node_stat r; hci_read_node_stat() local 217 struct ng_btsocket_hci_raw_node_neighbor_cache r; hci_read_neighbor_cache() local 276 struct ng_btsocket_hci_raw_con_list r; hci_read_connection_list() local 336 struct ng_btsocket_hci_raw_node_link_policy_mask r; hci_read_node_link_policy_settings_mask() local 351 struct ng_btsocket_hci_raw_node_link_policy_mask r; hci_write_node_link_policy_settings_mask() local 378 struct ng_btsocket_hci_raw_node_packet_mask r; hci_read_node_packet_mask() local 393 struct ng_btsocket_hci_raw_node_packet_mask r; hci_write_node_packet_mask() local 420 struct ng_btsocket_hci_raw_node_role_switch r; hci_read_node_role_switch() local 435 struct ng_btsocket_hci_raw_node_role_switch r; hci_write_node_role_switch() local 462 struct ng_btsocket_hci_raw_node_list_names r; hci_read_node_list() local [all...] |
/freebsd/sys/crypto/des/ |
H A D | des_enc.c | 69 DES_LONG l,r,t,u; in des_encrypt1() local 78 r=data[0]; in des_encrypt1() 81 IP(r,l); in des_encrypt1() 90 r=ROTATE(r,29)&0xffffffffL; in des_encrypt1() 99 D_ENCRYPT(l,r, 0); /* 1 */ in des_encrypt1() 100 D_ENCRYPT(r,l, 2); /* 2 */ in des_encrypt1() 101 D_ENCRYPT(l,r, 4); /* 3 */ in des_encrypt1() 102 D_ENCRYPT(r,l, 6); /* 4 */ in des_encrypt1() 103 D_ENCRYPT(l,r, 8); /* 5 */ in des_encrypt1() 104 D_ENCRYPT(r,l,10); /* 6 */ in des_encrypt1() [all …]
|
/freebsd/tests/sys/netgraph/ |
H A D | bridge.c | 88 ng_counter_t r; in ATF_TC_BODY() local 103 ng_counter_clear(r); in ATF_TC_BODY() 106 ng_handle_events(50, &r); in ATF_TC_BODY() 107 ATF_CHECK(r[0] == 0); in ATF_TC_BODY() 112 ng_counter_clear(r); in ATF_TC_BODY() 115 ng_handle_events(50, &r); in ATF_TC_BODY() 116 ATF_CHECK(r[0] == 0 && r[1] == 1 && r[2] == 1); in ATF_TC_BODY() 118 ng_counter_clear(r); in ATF_TC_BODY() 121 ng_handle_events(50, &r); in ATF_TC_BODY() 122 ATF_CHECK(r[0] == 1 && r[1] == 0 && r[2] == 1); in ATF_TC_BODY() [all …]
|
/freebsd/lib/libthread_db/arch/arm/ |
H A D | libpthread_md.c | 36 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument 41 gr[_REG_R0] = r->r[0]; in pt_reg_to_ucontext() 42 gr[_REG_R1] = r->r[1]; in pt_reg_to_ucontext() 43 gr[_REG_R2] = r->r[2]; in pt_reg_to_ucontext() 44 gr[_REG_R3] = r->r[3]; in pt_reg_to_ucontext() 45 gr[_REG_R4] = r->r[4]; in pt_reg_to_ucontext() 46 gr[_REG_R5] = r->r[5]; in pt_reg_to_ucontext() 47 gr[_REG_R6] = r->r[6]; in pt_reg_to_ucontext() 48 gr[_REG_R7] = r->r[7]; in pt_reg_to_ucontext() 49 gr[_REG_R8] = r->r[8]; in pt_reg_to_ucontext() [all …]
|
/freebsd/contrib/ldns/ |
H A D | resolver.c | 24 ldns_resolver_port(const ldns_resolver *r) in ldns_resolver_port() argument 26 return r->_port; in ldns_resolver_port() 30 ldns_resolver_source(const ldns_resolver *r) in ldns_resolver_source() argument 32 return r->_source; in ldns_resolver_source() 36 ldns_resolver_edns_udp_size(const ldns_resolver *r) in ldns_resolver_edns_udp_size() argument 38 return r->_edns_udp_size; in ldns_resolver_edns_udp_size() 42 ldns_resolver_retry(const ldns_resolver *r) in ldns_resolver_retry() argument 44 return r->_retry; in ldns_resolver_retry() 48 ldns_resolver_retrans(const ldns_resolver *r) in ldns_resolver_retrans() argument 50 return r->_retrans; in ldns_resolver_retrans() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | radius.c | 148 demangle(struct radius *r, const void *mangled, size_t mlen, in demangle() argument 168 if (rad_request_authenticator(r->cx.rad, R, sizeof R) != AUTH_LEN) { in demangle() 178 S = rad_server_secret(r->cx.rad); /* We need the RADIUS secret */ in demangle() 248 radius_Process(struct radius *r, int got) in radius_Process() argument 265 r->cx.fd = -1; /* Stop select()ing */ in radius_Process() 266 stype = r->cx.auth ? "auth" : "acct"; in radius_Process() 272 if (!r->cx.auth) { in radius_Process() 273 rad_close(r->cx.rad); in radius_Process() 281 if (!r->cx.auth) { in radius_Process() 282 rad_close(r->cx.rad); in radius_Process() [all …]
|
/freebsd/contrib/libfido2/examples/ |
H A D | cred.c | 51 int r; in verify_cred() 57 r = fido_cred_set_type(cred, type); in verify_cred() 58 if (r != FIDO_OK) in verify_cred() 59 errx(1, "fido_cred_set_type: %s (0x%x)", fido_strerr(r), r); in verify_cred() 62 r = fido_cred_set_clientdata(cred, cd, sizeof(cd)); in verify_cred() 63 if (r != FIDO_OK) in verify_cred() 64 errx(1, "fido_cred_set_clientdata: %s (0x%x)", fido_strerr(r), r); in verify_cred() 67 r in verify_cred() 50 int r; verify_cred() local 161 int r; main() local [all...] |
H A D | assert.c | 55 int r; in verify_assert() local 127 r = fido_assert_set_clientdata(assert, cd, sizeof(cd)); in verify_assert() 128 if (r != FIDO_OK) in verify_assert() 129 errx(1, "fido_assert_set_clientdata: %s (0x%x)", fido_strerr(r), r); in verify_assert() 132 r = fido_assert_set_rp(assert, "localhost"); in verify_assert() 133 if (r != FIDO_OK) in verify_assert() 134 errx(1, "fido_assert_set_rp: %s (0x%x)", fido_strerr(r), r); in verify_assert() 137 r = fido_assert_set_count(assert, 1); in verify_assert() 138 if (r != FIDO_OK) in verify_assert() 139 errx(1, "fido_assert_set_count: %s (0x%x)", fido_strerr(r), r); in verify_assert() [all …]
|
/freebsd/crypto/openssl/crypto/des/ |
H A D | des_enc.c | 22 register DES_LONG l, r, t, u; in DES_encrypt1() local 25 r = data[0]; in DES_encrypt1() 28 IP(r, l); in DES_encrypt1() 37 r = ROTATE(r, 29) & 0xffffffffL; in DES_encrypt1() 46 D_ENCRYPT(l, r, 0); /* 1 */ in DES_encrypt1() 47 D_ENCRYPT(r, l, 2); /* 2 */ in DES_encrypt1() 48 D_ENCRYPT(l, r, 4); /* 3 */ in DES_encrypt1() 49 D_ENCRYPT(r, l, 6); /* 4 */ in DES_encrypt1() 50 D_ENCRYPT(l, r, 8); /* 5 */ in DES_encrypt1() 51 D_ENCRYPT(r, l, 10); /* 6 */ in DES_encrypt1() [all …]
|
/freebsd/lib/libc/tests/gen/ |
H A D | wordexp_test.c | 58 int r; in ATF_TC_BODY() local 67 r = wordexp("hello world", &we, 0); in ATF_TC_BODY() 68 ATF_REQUIRE(r == 0); in ATF_TC_BODY() 81 int i, r; in ATF_TC_BODY() local 86 r = wordexp(longdata, &we, 0); in ATF_TC_BODY() 87 ATF_REQUIRE(r == 0); in ATF_TC_BODY() 97 int r; in ATF_TC_BODY() local 100 r = wordexp("hello world", &we, WRDE_DOOFFS); in ATF_TC_BODY() 101 ATF_REQUIRE(r == 0); in ATF_TC_BODY() 116 int r; in ATF_TC_BODY() local [all …]
|
/freebsd/sys/dev/bhnd/ |
H A D | bhnd.h | 625 struct bhnd_resource *r); 628 struct bhnd_resource *r); 631 struct bhnd_resource *r); 1336 struct bhnd_resource *r) in bhnd_activate_resource() argument 1339 rid, r); in bhnd_activate_resource() 1356 struct bhnd_resource *r) in bhnd_deactivate_resource() argument 1359 rid, r); in bhnd_deactivate_resource() 1376 struct bhnd_resource *r) in bhnd_release_resource() argument 1379 rid, r); in bhnd_release_resource() 1490 #define bhnd_bus_barrier(r, o, l, f) \ argument [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | t-sem.c | 136 int r; local 138 r = setgid(gid); 139 if (r != 0) 140 return r; 141 r = setuid(uid); 142 return r; 164 int semid, r; local 169 r = drop_priv(uid, gid); 170 if (r < 0) 187 r = sm_semsetowner(semid, uid, gid, 0660); [all …]
|
/freebsd/usr.sbin/bluetooth/l2control/ |
H A D | l2cap.c | 75 struct ng_btsocket_l2cap_raw_node_flags r; in l2cap_read_node_flags() local 77 memset(&r, 0, sizeof(r)); in l2cap_read_node_flags() 78 if (ioctl(s, SIOC_L2CAP_NODE_GET_FLAGS, &r, sizeof(r)) < 0) in l2cap_read_node_flags() 83 (r.flags & NG_L2CAP_CLT_SDP_DISABLED)? "disabled" : "enabled"); in l2cap_read_node_flags() 85 (r.flags & NG_L2CAP_CLT_RFCOMM_DISABLED)? "disabled":"enabled"); in l2cap_read_node_flags() 87 (r.flags & NG_L2CAP_CLT_TCP_DISABLED)? "disabled" : "enabled"); in l2cap_read_node_flags() 96 struct ng_btsocket_l2cap_raw_node_debug r; in l2cap_read_debug_level() local 98 memset(&r, 0, sizeof(r)); in l2cap_read_debug_level() 99 if (ioctl(s, SIOC_L2CAP_NODE_GET_DEBUG, &r, sizeof(r)) < 0) in l2cap_read_debug_level() 102 fprintf(stdout, "Debug level: %d\n", r.debug); in l2cap_read_debug_level() [all …]
|
/freebsd/sys/net/ |
H A D | mp_ring.c | 57 space_available(struct ifmp_ring *r, union ring_state s) in space_available() argument 59 uint16_t x = r->size - 1; in space_available() 70 increment_idx(struct ifmp_ring *r, uint16_t idx, uint16_t n) in increment_idx() argument 72 int x = r->size - idx; in increment_idx() 93 drain_ring_locked(struct ifmp_ring *r, union ring_state os, uint16_t prev, int budget) in drain_ring_locked() argument 104 counter_u64_add(r->starts, 1); in drain_ring_locked() 110 n = r->drain(r, cidx, pidx); in drain_ring_locked() 112 os.state = ns.state = r->state; in drain_ring_locked() 115 r->state = ns.state; in drain_ring_locked() 117 counter_u64_add(r->stalls, 1); in drain_ring_locked() [all …]
|
/freebsd/contrib/ldns/ldns/ |
H A D | resolver.h | 157 uint16_t ldns_resolver_port(const ldns_resolver *r); 164 ldns_rdf *ldns_resolver_source(const ldns_resolver *r); 171 bool ldns_resolver_recursive(const ldns_resolver *r); 178 bool ldns_resolver_debug(const ldns_resolver *r); 185 uint8_t ldns_resolver_retry(const ldns_resolver *r); 192 uint8_t ldns_resolver_retrans(const ldns_resolver *r); 199 bool ldns_resolver_fallback(const ldns_resolver *r); 206 uint8_t ldns_resolver_ip6(const ldns_resolver *r); 213 uint16_t ldns_resolver_edns_udp_size(const ldns_resolver *r); 219 bool ldns_resolver_usevc(const ldns_resolver *r); [all …]
|
/freebsd/tools/bus_space/ |
H A D | bus.c | 79 struct resource *r; in rid_lookup() local 85 r = ridtbl + rid; in rid_lookup() 86 if (r->fd == -1) { in rid_lookup() 90 return (r); in rid_lookup() 98 struct resource *r; in bs_map() local 109 r = rid_lookup(rid); in bs_map() 110 if (r == NULL) in bs_map() 112 r->fd = open(path, O_RDWR); in bs_map() 113 if (r->fd == -1) in bs_map() 115 r->rid = -1; in bs_map() [all …]
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_mp_ring.c | 89 space_available(struct mp_ring *r, union ring_state s) in space_available() argument 91 uint16_t x = r->size - 1; in space_available() 102 increment_idx(struct mp_ring *r, uint16_t idx, uint16_t n) in increment_idx() argument 104 int x = r->size - idx; in increment_idx() 115 drain_ring(struct mp_ring *r, int budget) in drain_ring() argument 123 mtx_assert(r->cons_lock, MA_OWNED); in drain_ring() 125 os.state = atomic_load_acq_64(&r->state); in drain_ring() 138 n = r->drain(r, cidx, pidx, &coalescing); in drain_ring() 141 os.state = atomic_load_64(&r->state); in drain_ring() 154 } while (atomic_fcmpset_64(&r->state, &os.state, in drain_ring() [all …]
|
/freebsd/lib/libthread_db/arch/amd64/ |
H A D | libpthread_md.c | 39 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument 43 mc->mc_rdi = r->r_rdi; in pt_reg_to_ucontext() 44 mc->mc_rsi = r->r_rsi; in pt_reg_to_ucontext() 45 mc->mc_rdx = r->r_rdx; in pt_reg_to_ucontext() 46 mc->mc_rcx = r->r_rcx; in pt_reg_to_ucontext() 47 mc->mc_r8 = r->r_r8; in pt_reg_to_ucontext() 48 mc->mc_r9 = r->r_r9; in pt_reg_to_ucontext() 49 mc->mc_rax = r->r_rax; in pt_reg_to_ucontext() 50 mc->mc_rbx = r->r_rbx; in pt_reg_to_ucontext() 51 mc->mc_rbp = r->r_rbp; in pt_reg_to_ucontext() [all …]
|
/freebsd/contrib/unbound/util/ |
H A D | regional.c | 73 regional_init(struct regional* r) in regional_init() argument 76 r->data = (char*)r + a; in regional_init() 77 r->available = r->first_size - a; in regional_init() 78 r->next = NULL; in regional_init() 79 r->large_list = NULL; in regional_init() 80 r->total_large = 0; in regional_init() 92 struct regional* r; in regional_create_custom_large_object() local 94 r = (struct regional*)malloc(size); in regional_create_custom_large_object() 96 if(!r) return NULL; in regional_create_custom_large_object() 97 r->first_size = size; in regional_create_custom_large_object() [all …]
|
/freebsd/crypto/openssh/ |
H A D | authfd.c | 140 int r; in ssh_request_reply() local 173 if ((r = sshbuf_put(reply, buf, l)) != 0) in ssh_request_reply() 174 return r; in ssh_request_reply() 185 int r; in ssh_request_reply_decode() local 190 if ((r = ssh_request_reply(sock, request, reply)) != 0 || in ssh_request_reply_decode() 191 (r = sshbuf_get_u8(reply, &type)) != 0 || in ssh_request_reply_decode() 192 (r = decode_reply(type)) != 0) in ssh_request_reply_decode() 195 r = 0; in ssh_request_reply_decode() 198 return r; in ssh_request_reply_decode() 217 int r; in ssh_lock_agent() local [all …]
|