Home
last modified time | relevance | path

Searched refs:sa (Results 1 – 25 of 952) sorted by relevance

12345678910>>...39

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_sa_informinfo.c77 osm_sa_t *sa; member
89 static boolean_t validate_ports_access_rights(IN osm_sa_t * sa, in validate_ports_access_rights() argument
98 OSM_LOG_ENTER(sa->p_log); in validate_ports_access_rights()
101 p_requester_physp = osm_get_physp_by_mad_addr(sa->p_log, sa->p_subn, in validate_ports_access_rights()
110 p_port = osm_get_port_by_guid(sa->p_subn, portguid); in validate_ports_access_rights()
112 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4301: " in validate_ports_access_rights()
122 (sa->p_log, p_port->p_physp, p_requester_physp, in validate_ports_access_rights()
123 sa->p_subn->opt.allow_both_pkeys)) { in validate_ports_access_rights()
124 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in validate_ports_access_rights()
144 lids_size = cl_ptr_vector_get_size(&sa->p_subn->port_lid_tbl); in validate_ports_access_rights()
[all …]
H A Dosm_sa_mcmember_record.c119 static void free_mlid(IN osm_sa_t * sa, IN uint16_t mlid) in free_mlid() argument
121 UNUSED_PARAM(sa); in free_mlid()
157 static ib_net16_t get_new_mlid(osm_sa_t * sa, ib_member_rec_t * mcmr) in get_new_mlid() argument
159 osm_subn_t *p_subn = sa->p_subn; in get_new_mlid()
168 if (sa->p_subn->opt.consolidate_ipv6_snm_req in get_new_mlid()
170 && (requested_mlid = find_ipv6_snm_mlid(sa->p_subn, &mcmr->mgid))) { in get_new_mlid()
172 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in get_new_mlid()
180 if (!sa->p_subn->mboxes[i]) in get_new_mlid()
201 static void mcmr_rcv_respond(IN osm_sa_t * sa, IN osm_madw_t * p_madw, in mcmr_rcv_respond() argument
207 OSM_LOG_ENTER(sa->p_log); in mcmr_rcv_respond()
[all …]
H A Dosm_sa_service_record.c71 osm_sa_t *sa; member
80 match_service_pkey_with_ports_pkey(IN osm_sa_t * sa, in match_service_pkey_with_ports_pkey() argument
91 p_req_physp = osm_get_physp_by_mad_addr(sa->p_log, sa->p_subn, in match_service_pkey_with_ports_pkey()
95 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2404: " in match_service_pkey_with_ports_pkey()
100 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in match_service_pkey_with_ports_pkey()
109 (sa->p_log, p_service_rec->service_pkey, p_req_physp)) { in match_service_pkey_with_ports_pkey()
120 osm_get_port_by_alias_guid(sa->p_subn, service_guid); in match_service_pkey_with_ports_pkey()
122 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2405: " in match_service_pkey_with_ports_pkey()
129 if (!osm_physp_has_pkey(sa->p_log, in match_service_pkey_with_ports_pkey()
143 match_name_to_key_association(IN osm_sa_t * sa, in match_name_to_key_association() argument
[all …]
H A Dosm_sa_sminfo_record.c75 osm_sa_t *sa; member
79 static ib_api_status_t smir_rcv_new_smir(IN osm_sa_t * sa, in smir_rcv_new_smir() argument
90 OSM_LOG_ENTER(sa->p_log); in smir_rcv_new_smir()
94 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2801: " in smir_rcv_new_smir()
100 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in smir_rcv_new_smir()
113 OSM_LOG_EXIT(sa->p_log); in smir_rcv_new_smir()
117 static void sa_smir_by_comp_mask(IN osm_sa_t * sa, in sa_smir_by_comp_mask() argument
126 OSM_LOG_ENTER(sa->p_log); in sa_smir_by_comp_mask()
146 p_port = osm_get_port_by_guid(sa->p_subn, p_rem_sm->smi.guid); in sa_smir_by_comp_mask()
149 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2810: " in sa_smir_by_comp_mask()
[all …]
H A Dosm_sa_guidinfo_record.c77 osm_sa_t *sa; member
81 static ib_api_status_t gir_rcv_new_gir(IN osm_sa_t * sa, in gir_rcv_new_gir() argument
92 OSM_LOG_ENTER(sa->p_log); in gir_rcv_new_gir()
96 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 5102: " in gir_rcv_new_gir()
102 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in gir_rcv_new_gir()
120 OSM_LOG_EXIT(sa->p_log); in gir_rcv_new_gir()
124 static void sa_gir_create_gir(IN osm_sa_t * sa, IN osm_node_t * p_node, in sa_gir_create_gir() argument
141 OSM_LOG_ENTER(sa->p_log); in sa_gir_create_gir()
143 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in sa_gir_create_gir()
163 if (!osm_physp_share_pkey(sa->p_log, p_physp, p_req_physp, in sa_gir_create_gir()
[all …]
H A Dosm_sa_sw_info_record.c66 osm_sa_t *sa; member
70 static ib_api_status_t sir_rcv_new_sir(IN osm_sa_t * sa, in sir_rcv_new_sir() argument
78 OSM_LOG_ENTER(sa->p_log); in sir_rcv_new_sir()
82 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 5308: " in sir_rcv_new_sir()
88 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in sir_rcv_new_sir()
99 OSM_LOG_EXIT(sa->p_log); in sir_rcv_new_sir()
103 static void sir_rcv_create_sir(IN osm_sa_t * sa, IN const osm_switch_t * p_sw, in sir_rcv_create_sir() argument
113 OSM_LOG_ENTER(sa->p_log); in sir_rcv_create_sir()
115 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in sir_rcv_create_sir()
121 osm_get_port_by_guid(sa->p_subn, p_sw->p_node->node_info.port_guid); in sir_rcv_create_sir()
[all …]
H A Dosm_sa_pkey_record.c63 osm_sa_t *sa; member
67 static void sa_pkey_create(IN osm_sa_t * sa, IN osm_physp_t * p_physp, in sa_pkey_create() argument
75 OSM_LOG_ENTER(sa->p_log); in sa_pkey_create()
79 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4602: " in sa_pkey_create()
89 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in sa_pkey_create()
113 OSM_LOG_EXIT(sa->p_log); in sa_pkey_create()
116 static void sa_pkey_check_physp(IN osm_sa_t * sa, IN osm_physp_t * p_physp, in sa_pkey_check_physp() argument
122 OSM_LOG_ENTER(sa->p_log); in sa_pkey_check_physp()
126 sa_pkey_create(sa, p_physp, p_ctxt, p_ctxt->block_num); in sa_pkey_check_physp()
132 sa_pkey_create(sa, p_physp, p_ctxt, block); in sa_pkey_check_physp()
[all …]
H A Dosm_sa_vlarb_record.c70 osm_sa_t *sa; member
74 static void sa_vl_arb_create(IN osm_sa_t * sa, IN osm_physp_t * p_physp, in sa_vl_arb_create() argument
81 OSM_LOG_ENTER(sa->p_log); in sa_vl_arb_create()
85 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2A02: " in sa_vl_arb_create()
95 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in sa_vl_arb_create()
111 OSM_LOG_EXIT(sa->p_log); in sa_vl_arb_create()
114 static void sa_vl_arb_check_physp(IN osm_sa_t * sa, IN osm_physp_t * p_physp, in sa_vl_arb_check_physp() argument
120 OSM_LOG_ENTER(sa->p_log); in sa_vl_arb_check_physp()
126 sa_vl_arb_create(sa, p_physp, p_ctxt, block); in sa_vl_arb_check_physp()
129 OSM_LOG_EXIT(sa->p_log); in sa_vl_arb_check_physp()
[all …]
H A Dosm_sa_path_record.c146 static ib_api_status_t pr_rcv_get_path_parms(IN osm_sa_t * sa, in pr_rcv_get_path_parms() argument
181 OSM_LOG_ENTER(sa->p_log); in pr_rcv_get_path_parms()
189 p_osm = sa->p_subn->p_osm; in pr_rcv_get_path_parms()
202 if (sa->p_subn->opt.enable_quirks && in pr_rcv_get_path_parms()
209 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in pr_rcv_get_path_parms()
231 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1F02: " in pr_rcv_get_path_parms()
241 if (sa->p_subn->opt.qos) { in pr_rcv_get_path_parms()
255 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in pr_rcv_get_path_parms()
275 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1F03: " in pr_rcv_get_path_parms()
297 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1F05: " in pr_rcv_get_path_parms()
[all …]
H A Dosm_sa_link_record.c63 static void lr_rcv_build_physp_link(IN osm_sa_t * sa, IN ib_net16_t from_lid, in lr_rcv_build_physp_link() argument
71 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1801: " in lr_rcv_build_physp_link()
96 static void lr_rcv_get_physp_link(IN osm_sa_t * sa, in lr_rcv_get_physp_link() argument
110 OSM_LOG_ENTER(sa->p_log); in lr_rcv_get_physp_link()
140 if (!osm_physp_share_pkey(sa->p_log, p_src_physp, p_dest_physp, in lr_rcv_get_physp_link()
141 sa->p_subn->opt.allow_both_pkeys)) { in lr_rcv_get_physp_link()
142 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in lr_rcv_get_physp_link()
146 if (!osm_physp_share_pkey(sa->p_log, p_src_physp, p_req_physp, in lr_rcv_get_physp_link()
147 sa->p_subn->opt.allow_both_pkeys)) { in lr_rcv_get_physp_link()
148 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in lr_rcv_get_physp_link()
[all …]
H A Dosm_sa_slvl_record.c70 osm_sa_t *sa; member
74 static void sa_slvl_create(IN osm_sa_t * sa, IN const osm_physp_t * p_physp, in sa_slvl_create() argument
81 OSM_LOG_ENTER(sa->p_log); in sa_slvl_create()
85 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2602: " in sa_slvl_create()
95 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in sa_slvl_create()
114 OSM_LOG_EXIT(sa->p_log); in sa_slvl_create()
117 static void sa_slvl_by_comp_mask(IN osm_sa_t * sa, IN const osm_port_t * p_port, in sa_slvl_by_comp_mask() argument
129 OSM_LOG_ENTER(sa->p_log); in sa_slvl_by_comp_mask()
141 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in sa_slvl_by_comp_mask()
146 if (osm_physp_share_pkey(sa->p_log, p_req_physp, p_out_physp, in sa_slvl_by_comp_mask()
[all …]
H A Dosm_sa_lft_record.c66 osm_sa_t *sa; member
70 static ib_api_status_t lftr_rcv_new_lftr(IN osm_sa_t * sa, in lftr_rcv_new_lftr() argument
78 OSM_LOG_ENTER(sa->p_log); in lftr_rcv_new_lftr()
82 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4402: " in lftr_rcv_new_lftr()
88 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in lftr_rcv_new_lftr()
105 OSM_LOG_EXIT(sa->p_log); in lftr_rcv_new_lftr()
114 osm_sa_t *sa = p_ctxt->sa; in lftr_rcv_by_comp_mask() local
123 p_port = osm_get_port_by_guid(sa->p_subn, in lftr_rcv_by_comp_mask()
126 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4405: " in lftr_rcv_by_comp_mask()
136 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4406: " in lftr_rcv_by_comp_mask()
[all …]
H A Dosm_sa_mft_record.c66 osm_sa_t *sa; member
70 static ib_api_status_t mftr_rcv_new_mftr(IN osm_sa_t * sa, in mftr_rcv_new_mftr() argument
80 OSM_LOG_ENTER(sa->p_log); in mftr_rcv_new_mftr()
84 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4A02: " in mftr_rcv_new_mftr()
90 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in mftr_rcv_new_mftr()
110 OSM_LOG_EXIT(sa->p_log); in mftr_rcv_new_mftr()
119 osm_sa_t *sa = p_ctxt->sa; in mftr_rcv_by_comp_mask() local
131 osm_get_port_by_guid(sa->p_subn, p_sw->p_node->node_info.port_guid); in mftr_rcv_by_comp_mask()
133 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4A05: " in mftr_rcv_by_comp_mask()
143 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4A06: " in mftr_rcv_by_comp_mask()
[all …]
H A Dosm_sa_node_record.c66 osm_sa_t *sa; member
70 static ib_api_status_t nr_rcv_new_nr(osm_sa_t * sa, in nr_rcv_new_nr() argument
79 OSM_LOG_ENTER(sa->p_log); in nr_rcv_new_nr()
83 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1D02: " in nr_rcv_new_nr()
89 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in nr_rcv_new_nr()
109 OSM_LOG_EXIT(sa->p_log); in nr_rcv_new_nr()
113 static void nr_rcv_create_nr(IN osm_sa_t * sa, IN osm_node_t * p_node, in nr_rcv_create_nr() argument
131 OSM_LOG_ENTER(sa->p_log); in nr_rcv_create_nr()
133 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in nr_rcv_create_nr()
153 if (!osm_physp_share_pkey(sa->p_log, p_physp, p_req_physp, in nr_rcv_create_nr()
[all …]
H A Dosm_sa_multipath_record.c137 static ib_api_status_t mpr_rcv_get_path_parms(IN osm_sa_t * sa, in mpr_rcv_get_path_parms() argument
171 OSM_LOG_ENTER(sa->p_log); in mpr_rcv_get_path_parms()
190 if (sa->p_subn->opt.enable_quirks && in mpr_rcv_get_path_parms()
197 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in mpr_rcv_get_path_parms()
219 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4514: " in mpr_rcv_get_path_parms()
229 if (sa->p_subn->opt.qos) { in mpr_rcv_get_path_parms()
244 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in mpr_rcv_get_path_parms()
264 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4515: " in mpr_rcv_get_path_parms()
286 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4505: " in mpr_rcv_get_path_parms()
300 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 4520: " in mpr_rcv_get_path_parms()
[all …]
H A Dosm_sa_portinfo_record.c70 osm_sa_t *sa; member
75 static ib_api_status_t pir_rcv_new_pir(IN osm_sa_t * sa, in pir_rcv_new_pir() argument
85 OSM_LOG_ENTER(sa->p_log); in pir_rcv_new_pir()
89 OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 2102: " in pir_rcv_new_pir()
95 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in pir_rcv_new_pir()
136 OSM_LOG_EXIT(sa->p_log); in pir_rcv_new_pir()
140 static void sa_pir_create(IN osm_sa_t * sa, IN const osm_physp_t * p_physp, in sa_pir_create() argument
149 OSM_LOG_ENTER(sa->p_log); in sa_pir_create()
156 sa->p_subn) ? in sa_pir_create()
170 OSM_LOG(sa->p_log, OSM_LOG_DEBUG, in sa_pir_create()
[all …]
/freebsd/crypto/openssl/crypto/
H A Dsparse_array.c65 static void sa_doall(const OPENSSL_SA *sa, void (*node)(void **), in sa_doall() argument
74 nodes[0] = sa->nodes; in sa_doall()
88 if (l < sa->levels - 1) { in sa_doall()
110 void ossl_sa_free(OPENSSL_SA *sa) in ossl_sa_free() argument
112 if (sa != NULL) { in ossl_sa_free()
113 sa_doall(sa, &sa_free_node, NULL, NULL); in ossl_sa_free()
114 OPENSSL_free(sa); in ossl_sa_free()
118 void ossl_sa_free_leaves(OPENSSL_SA *sa) in ossl_sa_free_leaves() argument
120 sa_doall(sa, &sa_free_node, &sa_free_leaf, NULL); in ossl_sa_free_leaves()
121 OPENSSL_free(sa); in ossl_sa_free_leaves()
[all …]
/freebsd/contrib/ofed/libibmad/
H A Dsa.c50 ib_portid_t * portid, ib_sa_call_t * sa, unsigned timeout) in sa_rpc_call() argument
55 DEBUG("attr 0x%x mod 0x%x route %s", sa->attrid, sa->mod, in sa_rpc_call()
64 rpc.method = sa->method; in sa_rpc_call()
65 rpc.attr.id = sa->attrid; in sa_rpc_call()
66 rpc.attr.mod = sa->mod; in sa_rpc_call()
67 rpc.mask = sa->mask; in sa_rpc_call()
71 rpc.trid = sa->trid; in sa_rpc_call()
79 sa->recsz = rpc.recsz; in sa_rpc_call()
84 uint8_t *sa_call(void *rcvbuf, ib_portid_t * portid, ib_sa_call_t * sa, in sa_call() argument
87 return sa_rpc_call(ibmp, rcvbuf, portid, sa, timeout); in sa_call()
[all …]
/freebsd/lib/libc/gen/
H A Dposix_spawn.c92 process_spawnattr(const posix_spawnattr_t sa) in process_spawnattr() argument
104 if (sa->sa_flags & POSIX_SPAWN_SETPGROUP) { in process_spawnattr()
105 if (setpgid(0, sa->sa_pgroup) != 0) in process_spawnattr()
110 if (sa->sa_flags & POSIX_SPAWN_SETSCHEDULER) { in process_spawnattr()
111 if (sched_setscheduler(0, sa->sa_schedpolicy, in process_spawnattr()
112 &sa->sa_schedparam) != 0) in process_spawnattr()
114 } else if (sa->sa_flags & POSIX_SPAWN_SETSCHEDPARAM) { in process_spawnattr()
115 if (sched_setparam(0, &sa->sa_schedparam) != 0) in process_spawnattr()
120 if (sa->sa_flags & POSIX_SPAWN_RESETIDS) { in process_spawnattr()
131 if (sa->sa_flags & POSIX_SPAWN_SETSIGMASK) { in process_spawnattr()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-esp.c176 do_decrypt(netdissect_options *ndo, const char *caller, struct sa_list *sa, in do_decrypt() argument
199 if (set_cipher_parameters(ctx, sa->evp, sa->secret, NULL) < 0) { in do_decrypt()
280 struct sa_list *sa; in esp_decrypt_buffer_by_ikev2_print() local
290 for (sa = ndo->ndo_sa_list_head; sa != NULL; sa = sa->next) { in esp_decrypt_buffer_by_ikev2_print()
291 if (sa->spi == 0 in esp_decrypt_buffer_by_ikev2_print()
292 && initiator == sa->initiator in esp_decrypt_buffer_by_ikev2_print()
293 && memcmp(spii, sa->spii, 8) == 0 in esp_decrypt_buffer_by_ikev2_print()
294 && memcmp(spir, sa->spir, 8) == 0) in esp_decrypt_buffer_by_ikev2_print()
298 if(sa == NULL) return 0; in esp_decrypt_buffer_by_ikev2_print()
299 if(sa->evp == NULL) return 0; in esp_decrypt_buffer_by_ikev2_print()
[all …]
/freebsd/crypto/openssl/include/crypto/
H A Dsparse_array.h31 ossl_sa_##type##_free(SPARSE_ARRAY_OF(type) *sa) \
33 ossl_sa_free((OPENSSL_SA *)sa); \
36 ossl_sa_##type##_free_leaves(SPARSE_ARRAY_OF(type) *sa) \
38 ossl_sa_free_leaves((OPENSSL_SA *)sa); \
41 ossl_sa_##type##_num(const SPARSE_ARRAY_OF(type) *sa) \
43 return ossl_sa_num((OPENSSL_SA *)sa); \
46 ossl_sa_##type##_doall(const SPARSE_ARRAY_OF(type) *sa, \
49 ossl_sa_doall((OPENSSL_SA *)sa, \
53 ossl_sa_##type##_doall_arg(const SPARSE_ARRAY_OF(type) *sa, \
57 ossl_sa_doall_arg((OPENSSL_SA *)sa, \
[all …]
/freebsd/sys/arm/arm/
H A Dsyscall.c101 struct syscall_args *sa; in cpu_fetch_syscall_args() local
106 sa = &td->td_sa; in cpu_fetch_syscall_args()
107 sa->code = td->td_frame->tf_r7; in cpu_fetch_syscall_args()
108 sa->original_code = sa->code; in cpu_fetch_syscall_args()
110 if (sa->code == SYS_syscall) { in cpu_fetch_syscall_args()
111 sa->code = *ap++; in cpu_fetch_syscall_args()
113 } else if (sa->code == SYS___syscall) { in cpu_fetch_syscall_args()
114 sa->code = ap[_QUAD_LOWWORD]; in cpu_fetch_syscall_args()
119 if (sa->code >= p->p_sysent->sv_size) in cpu_fetch_syscall_args()
120 sa->callp = &nosys_sysent; in cpu_fetch_syscall_args()
[all …]
/freebsd/lib/libsdp/
H A Dsession.c46 struct sockaddr_l2cap sa; in sdp_open() local
63 sa.l2cap_len = sizeof(sa); in sdp_open()
64 sa.l2cap_family = AF_BLUETOOTH; in sdp_open()
65 sa.l2cap_psm = 0; in sdp_open()
66 sa.l2cap_cid = 0; in sdp_open()
67 sa.l2cap_bdaddr_type = BDADDR_BREDR; in sdp_open()
69 memcpy(&sa.l2cap_bdaddr, l, sizeof(sa.l2cap_bdaddr)); in sdp_open()
70 if (bind(ss->s, (struct sockaddr *) &sa, sizeof(sa)) < 0) { in sdp_open()
75 sa.l2cap_psm = htole16(NG_L2CAP_PSM_SDP); in sdp_open()
76 memcpy(&sa.l2cap_bdaddr, r, sizeof(sa.l2cap_bdaddr)); in sdp_open()
[all …]
/freebsd/crypto/openssl/test/
H A Dsparse_array_test.c39 SPARSE_ARRAY_OF(char) *sa; in test_sparse_array()
43 if (!TEST_ptr(sa = ossl_sa_char_new()) in test_sparse_array()
44 || !TEST_ptr_null(ossl_sa_char_get(sa, 3)) in test_sparse_array()
45 || !TEST_ptr_null(ossl_sa_char_get(sa, 0)) in test_sparse_array()
46 || !TEST_ptr_null(ossl_sa_char_get(sa, UINT_MAX))) in test_sparse_array()
50 if (!TEST_true(ossl_sa_char_set(sa, cases[i].n, cases[i].v))) { in test_sparse_array()
55 if (!TEST_str_eq(ossl_sa_char_get(sa, cases[j].n), cases[j].v)) { in test_sparse_array()
63 ossl_sa_char_free(sa); in test_sparse_array()
79 SPARSE_ARRAY_OF(char) *sa = NULL; in test_sparse_array_num()
84 || !TEST_ptr(sa = ossl_sa_char_new()) in test_sparse_array_num()
[all …]
/freebsd/crypto/heimdal/lib/roken/
H A Dsocket.c44 socket_set_any (struct sockaddr *sa, int af) in socket_set_any() argument
48 struct sockaddr_in *sin4 = (struct sockaddr_in *)sa; in socket_set_any()
58 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in socket_set_any()
68 errx (1, "unknown address family %d", sa->sa_family); in socket_set_any()
78 socket_set_address_and_port (struct sockaddr *sa, const void *ptr, int port) in socket_set_address_and_port() argument
80 switch (sa->sa_family) { in socket_set_address_and_port()
82 struct sockaddr_in *sin4 = (struct sockaddr_in *)sa; in socket_set_address_and_port()
92 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in socket_set_address_and_port()
102 errx (1, "unknown address family %d", sa->sa_family); in socket_set_address_and_port()
112 socket_addr_size (const struct sockaddr *sa) in socket_addr_size() argument
[all …]

12345678910>>...39