| /NextBSD/contrib/ofed/libibverbs/src/ |
| HD | cmd.c | 51 struct ibv_get_context_resp *resp, in ibv_cmd_get_context_v2() argument 68 IBV_INIT_CMD_RESP(cmd, cmd_size, GET_CONTEXT, resp, resp_size); in ibv_cmd_get_context_v2() 74 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size); in ibv_cmd_get_context_v2() 76 context->async_fd = resp->async_fd; in ibv_cmd_get_context_v2() 87 size_t cmd_size, struct ibv_get_context_resp *resp, in ibv_cmd_get_context() argument 91 return ibv_cmd_get_context_v2(context, cmd, cmd_size, resp, resp_size); in ibv_cmd_get_context() 93 IBV_INIT_CMD_RESP(cmd, cmd_size, GET_CONTEXT, resp, resp_size); in ibv_cmd_get_context() 98 VALGRIND_MAKE_MEM_DEFINED(resp, resp_size); in ibv_cmd_get_context() 100 context->async_fd = resp->async_fd; in ibv_cmd_get_context() 101 context->num_comp_vectors = resp->num_comp_vectors; in ibv_cmd_get_context() [all …]
|
| /NextBSD/sys/dev/sound/pci/ |
| HD | csa.c | 95 static int csa_downloadimage(csa_res *resp); 96 static int csa_transferimage(csa_res *resp, u_int32_t *src, u_long dest, u_long len); 244 csa_res *resp; in csa_attach() local 257 resp = &scp->res; in csa_attach() 261 resp->io_rid = PCIR_BAR(0); in csa_attach() 262 resp->io = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in csa_attach() 263 &resp->io_rid, RF_ACTIVE); in csa_attach() 264 if (resp->io == NULL) in csa_attach() 266 resp->mem_rid = PCIR_BAR(1); in csa_attach() 267 resp->mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in csa_attach() [all …]
|
| HD | csapcm.c | 86 static void csa_setplaysamplerate(csa_res *resp, u_long ulInRate); 87 static void csa_setcapturesamplerate(csa_res *resp, u_long ulOutRate); 92 static int csa_startdsp(csa_res *resp); 93 static int csa_stopdsp(csa_res *resp); 174 csa_setplaysamplerate(csa_res *resp, u_long ulInRate) in csa_setplaysamplerate() argument 215 …csa_writemem(resp, BA1_PSRC, ((ulCorrectionPerSec << 16) & 0xFFFF0000) | (ulCorrectionPerGOF & 0xF… in csa_setplaysamplerate() 216 csa_writemem(resp, BA1_PPI, ulPhiIncr); in csa_setplaysamplerate() 220 csa_setcapturesamplerate(csa_res *resp, u_long ulOutRate) in csa_setcapturesamplerate() argument 288 csa_writemem(resp, BA1_CSRC, in csa_setcapturesamplerate() 290 csa_writemem(resp, BA1_CCI, ulCoeffIncr); in csa_setcapturesamplerate() [all …]
|
| /NextBSD/contrib/wpa/wpa_supplicant/ |
| HD | p2p_supplicant_sd.c | 183 static void wpas_sd_add_empty(struct wpabuf *resp, u8 srv_proto, in wpas_sd_add_empty() argument 188 if (wpabuf_tailroom(resp) < 5) in wpas_sd_add_empty() 192 len_pos = wpabuf_put(resp, 2); in wpas_sd_add_empty() 193 wpabuf_put_u8(resp, srv_proto); in wpas_sd_add_empty() 194 wpabuf_put_u8(resp, srv_trans_id); in wpas_sd_add_empty() 196 wpabuf_put_u8(resp, status); in wpas_sd_add_empty() 198 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_add_empty() 202 static void wpas_sd_add_proto_not_avail(struct wpabuf *resp, u8 srv_proto, in wpas_sd_add_proto_not_avail() argument 205 wpas_sd_add_empty(resp, srv_proto, srv_trans_id, in wpas_sd_add_proto_not_avail() 210 static void wpas_sd_add_bad_request(struct wpabuf *resp, u8 srv_proto, in wpas_sd_add_bad_request() argument [all …]
|
| /NextBSD/contrib/bsnmp/lib/ |
| HD | snmpagent.c | 169 snmp_pdu_create_response(const struct snmp_pdu *pdu, struct snmp_pdu *resp) in snmp_pdu_create_response() argument 171 memset(resp, 0, sizeof(*resp)); in snmp_pdu_create_response() 172 strcpy(resp->community, pdu->community); in snmp_pdu_create_response() 173 resp->version = pdu->version; in snmp_pdu_create_response() 174 resp->type = SNMP_PDU_RESPONSE; in snmp_pdu_create_response() 175 resp->request_id = pdu->request_id; in snmp_pdu_create_response() 176 resp->version = pdu->version; in snmp_pdu_create_response() 178 if (resp->version != SNMP_V3) in snmp_pdu_create_response() 181 memcpy(&resp->engine, &pdu->engine, sizeof(pdu->engine)); in snmp_pdu_create_response() 182 memcpy(&resp->user, &pdu->user, sizeof(pdu->user)); in snmp_pdu_create_response() [all …]
|
| HD | snmpclient.c | 468 table_check_response(struct tabwork *work, const struct snmp_pdu *resp) in table_check_response() argument 473 if (resp->error_status != SNMP_ERR_NOERROR) { in table_check_response() 475 resp->error_status == SNMP_ERR_NOSUCHNAME && in table_check_response() 476 resp->error_index == in table_check_response() 482 resp->error_status, resp->error_index); in table_check_response() 486 for (b = resp->bindings; b < resp->bindings + resp->nbindings; b++) { in table_check_response() 487 if (work->descr->last_change.len != 0 && b == resp->bindings) { in table_check_response() 561 struct snmp_pdu resp; in snmp_table_fetch() local 583 if (snmp_dialog(&work.pdu, &resp)) { in snmp_table_fetch() 587 if ((ret = table_check_response(&work, &resp)) == 0) { in snmp_table_fetch() [all …]
|
| /NextBSD/sys/contrib/ngatm/netnatm/sig/ |
| HD | sig_reset.c | 145 struct uni_all *resp; in start_request() local 153 if ((resp = UNI_ALLOC()) == NULL) { in start_request() 158 MK_MSG_ORIG(resp, UNI_RESTART, 0, 0); in start_request() 159 resp->u.restart.restart = req->restart; in start_request() 160 resp->u.restart.connid = req->connid; in start_request() 162 if (restart_forward(uni, resp)) in start_request() 168 if ((err = uni_send_output(resp, uni)) != 0) in start_request() 170 UNI_FREE(resp); in start_request() 207 struct uniapi_reset_error_indication *resp; in start_t316() local 211 resp = ALLOC_API(struct uniapi_reset_error_indication, app); in start_t316() [all …]
|
| /NextBSD/sys/ofed/drivers/infiniband/core/ |
| HD | uverbs_cmd.c | 339 struct ib_uverbs_get_context_resp resp; in ib_uverbs_get_context() local 346 if (out_len < sizeof resp) in ib_uverbs_get_context() 360 (unsigned long) cmd.response + sizeof resp, in ib_uverbs_get_context() 361 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_get_context() 384 resp.num_comp_vectors = file->device->num_comp_vectors; in ib_uverbs_get_context() 389 resp.async_fd = ret; in ib_uverbs_get_context() 406 &resp, sizeof resp)) { in ib_uverbs_get_context() 414 fd_install(resp.async_fd, filp); in ib_uverbs_get_context() 424 put_unused_fd(resp.async_fd); in ib_uverbs_get_context() 435 struct ib_uverbs_query_device_resp *resp, in ib_uverbs_query_device_assign() argument [all …]
|
| HD | ucma.c | 94 struct rdma_ucm_event_resp resp; member 236 uevent->resp.uid = uevent->mc->uid; in ucma_set_event_context() 237 uevent->resp.id = uevent->mc->id; in ucma_set_event_context() 240 uevent->resp.uid = ctx->uid; in ucma_set_event_context() 241 uevent->resp.id = ctx->id; in ucma_set_event_context() 260 uevent->resp.event = event->event; in ucma_event_handler() 261 uevent->resp.status = event->status; in ucma_event_handler() 263 ucma_copy_ud_event(&uevent->resp.param.ud, &event->param.ud); in ucma_event_handler() 265 ucma_copy_conn_event(&uevent->resp.param.conn, in ucma_event_handler() 303 if (out_len < sizeof uevent->resp) in ucma_get_event() [all …]
|
| /NextBSD/sbin/launchd/ |
| HD | ipc.c | 327 launch_data_t resp; member 340 rmc.resp = launch_data_new_errno(EINVAL); in ipc_readmsg() 343 if (NULL == rmc.resp) { in ipc_readmsg() 344 rmc.resp = launch_data_new_errno(ENOSYS); in ipc_readmsg() 349 if (launchd_msg_send(rmc.c->conn, rmc.resp) == -1) { in ipc_readmsg() 357 launch_data_free(rmc.resp); in ipc_readmsg() 364 launch_data_t resp = NULL; in ipc_readmsg2() local 367 if (rmc->resp) { in ipc_readmsg2() 382 resp = job_export(rmc->c->j); in ipc_readmsg2() 391 resp = launch_data_new_errno(0); in ipc_readmsg2() [all …]
|
| /NextBSD/usr.sbin/flowctl/ |
| HD | flowctl.c | 87 static void flow_cache_print(struct ngnf_show_header *resp); 88 static void flow_cache_print_verbose(struct ngnf_show_header *resp); 91 static void flow_cache_print6(struct ngnf_show_header *resp); 92 static void flow_cache_print6_verbose(struct ngnf_show_header *resp); 227 struct ngnf_show_header req, *resp; in do_show() local 249 resp = (struct ngnf_show_header *)ng_mesg->data; in do_show() 250 if ((ng_mesg->header.arglen < (sizeof(*resp))) || in do_show() 251 (ng_mesg->header.arglen < (sizeof(*resp) + in do_show() 252 (resp->nentries * sizeof(struct flow_entry_data))))) in do_show() 255 (*func)(resp); in do_show() [all …]
|
| /NextBSD/contrib/ofed/libcxgb4/src/ |
| HD | verbs.c | 84 struct c4iw_alloc_pd_resp resp; in c4iw_alloc_pd() local 92 &resp.ibv_resp, sizeof resp)) { in c4iw_alloc_pd() 118 struct ibv_reg_mr_resp resp; in __c4iw_reg_mr() local 127 &resp, sizeof resp)) { in __c4iw_reg_mr() 174 struct c4iw_create_cq_resp resp; in c4iw_create_cq() local 184 resp.reserved = 0; in c4iw_create_cq() 187 &resp.ibv_resp, sizeof resp); in c4iw_create_cq() 191 if (resp.reserved) in c4iw_create_cq() 200 chp->cq.qid_mask = resp.qid_mask; in c4iw_create_cq() 201 chp->cq.cqid = resp.cqid; in c4iw_create_cq() [all …]
|
| /NextBSD/crypto/openssh/openbsd-compat/ |
| HD | getrrsetbyname.c | 385 struct dns_response *resp; in parse_dns_response() local 389 resp = calloc(1, sizeof(*resp)); in parse_dns_response() 390 if (resp == NULL) in parse_dns_response() 397 memcpy(&resp->header, cp, HFIXEDSZ); in parse_dns_response() 401 resp->header.qdcount = ntohs(resp->header.qdcount); in parse_dns_response() 402 resp->header.ancount = ntohs(resp->header.ancount); in parse_dns_response() 403 resp->header.nscount = ntohs(resp->header.nscount); in parse_dns_response() 404 resp->header.arcount = ntohs(resp->header.arcount); in parse_dns_response() 407 if (resp->header.qdcount < 1) { in parse_dns_response() 408 free_dns_response(resp); in parse_dns_response() [all …]
|
| /NextBSD/contrib/ntp/libntp/ |
| HD | ntp_worker.c | 213 blocking_pipe_header * resp, in queue_blocking_response() argument 218 resp->octets = respsize; in queue_blocking_response() 219 resp->magic_sig = BLOCKING_RESP_MAGIC; in queue_blocking_response() 220 resp->rtype = req->rtype; in queue_blocking_response() 221 resp->context = req->context; in queue_blocking_response() 222 resp->done_func = req->done_func; in queue_blocking_response() 224 return send_blocking_resp_internal(c, resp); in queue_blocking_response() 233 blocking_pipe_header * resp; in process_blocking_resp() local 245 resp = receive_blocking_resp_internal(c); in process_blocking_resp() 246 if (NULL != resp) { in process_blocking_resp() [all …]
|
| /NextBSD/sys/arm/broadcom/bcm2835/ |
| HD | bcm2835_mbox_prop.h | 87 } resp; member 103 } resp; member 137 } resp; member 153 } resp; member 168 } resp; member 183 } resp; member 206 } resp; member 222 } resp; member 247 } resp; member 263 } resp; member [all …]
|
| /NextBSD/contrib/ldns/ |
| HD | update.c | 94 ldns_pkt *query, *resp; in ldns_update_soa_mname() local 104 if (ldns_resolver_send_pkt(&resp, r, query) != LDNS_STATUS_OK) { in ldns_update_soa_mname() 109 if (!resp) { in ldns_update_soa_mname() 115 while ((soa_rr = ldns_rr_list_pop_rr(ldns_pkt_answer(resp)))) { in ldns_update_soa_mname() 123 ldns_pkt_free(resp); in ldns_update_soa_mname() 137 ldns_pkt *query, *resp; in ldns_update_soa_zone_mname() local 154 if (ldns_resolver_send_pkt(&resp, r, query) != LDNS_STATUS_OK) { in ldns_update_soa_zone_mname() 159 if (!resp) { in ldns_update_soa_zone_mname() 164 while ((soa_rr = ldns_rr_list_pop_rr(ldns_pkt_authority(resp)))) { in ldns_update_soa_zone_mname() 172 ldns_pkt_free(resp); in ldns_update_soa_zone_mname() [all …]
|
| /NextBSD/sys/powerpc/powermac/ |
| HD | pmu.c | 344 uint8_t resp[16]; in pmu_attach() local 385 pmu_send(sc, PMU_SET_IMASK, 1, ®, 16, resp); in pmu_attach() 389 pmu_send(sc, PMU_SYSTEM_READY, 1, cmd, 16, resp); in pmu_attach() 390 pmu_send(sc, PMU_GET_VERSION, 0, cmd, 16, resp); in pmu_attach() 692 uint8_t resp[16]; in pmu_intr() local 701 len = pmu_send(sc, PMU_INT_ACK, 0, NULL, 16, resp); in pmu_intr() 705 if ((len < 1) || (resp[1] == 0)) { in pmu_intr() 709 if (resp[1] & PMU_INT_ADB) { in pmu_intr() 718 if ((resp[2] & 0x0f) != (ADB_COMMAND_TALK << 2)) { in pmu_intr() 730 adb_receive_raw_packet(sc->adb_bus,resp[1],resp[2], in pmu_intr() [all …]
|
| /NextBSD/contrib/wpa/src/eap_peer/ |
| HD | eap_eke.c | 200 struct wpabuf *resp; in eap_eke_build_fail() local 205 resp = eap_eke_build_msg(data, id, 4, EAP_EKE_FAILURE); in eap_eke_build_fail() 206 if (resp) in eap_eke_build_fail() 207 wpabuf_put_be32(resp, failure_code); in eap_eke_build_fail() 217 return resp; in eap_eke_build_fail() 227 struct wpabuf *resp; in eap_eke_process_id() local 323 resp = eap_eke_build_msg(data, id, in eap_eke_process_id() 326 if (resp == NULL) { in eap_eke_process_id() 331 wpabuf_put_u8(resp, 1); /* NumProposals */ in eap_eke_process_id() 332 wpabuf_put_u8(resp, 0); /* Reserved */ in eap_eke_process_id() [all …]
|
| HD | eap_sake.c | 149 struct wpabuf *resp; in eap_sake_process_identity() local 169 resp = eap_sake_build_msg(data, id, 2 + data->peerid_len, in eap_sake_process_identity() 171 if (resp == NULL) in eap_sake_process_identity() 175 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, in eap_sake_process_identity() 180 return resp; in eap_sake_process_identity() 192 struct wpabuf *resp; in eap_sake_process_challenge() local 249 resp = eap_sake_build_msg(data, id, rlen, EAP_SAKE_SUBTYPE_CHALLENGE); in eap_sake_process_challenge() 250 if (resp == NULL) in eap_sake_process_challenge() 254 eap_sake_add_attr(resp, EAP_SAKE_AT_RAND_P, in eap_sake_process_challenge() 259 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, in eap_sake_process_challenge() [all …]
|
| HD | eap_gpsk.c | 283 struct wpabuf *resp; in eap_gpsk_process_gpsk_1() local 304 resp = eap_gpsk_send_gpsk_2(data, identifier, in eap_gpsk_process_gpsk_1() 306 if (resp == NULL) in eap_gpsk_process_gpsk_1() 311 return resp; in eap_gpsk_process_gpsk_1() 320 struct wpabuf *resp; in eap_gpsk_send_gpsk_2() local 332 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GPSK, len, in eap_gpsk_send_gpsk_2() 334 if (resp == NULL) in eap_gpsk_send_gpsk_2() 337 wpabuf_put_u8(resp, EAP_GPSK_OPCODE_GPSK_2); in eap_gpsk_send_gpsk_2() 338 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_2() 342 wpabuf_put_be16(resp, data->id_peer_len); in eap_gpsk_send_gpsk_2() [all …]
|
| /NextBSD/contrib/ofed/librdmacm/src/ |
| HD | cma.c | 85 #define CMA_CREATE_MSG_CMD_RESP(msg, cmd, resp, type, size) \ argument 97 hdr->out = sizeof(*resp); \ 99 resp = alloca(sizeof(*resp)); \ 100 if (!resp) \ 102 cmd->response = (uintptr_t)resp;\ 391 struct ucma_abi_create_id_resp *resp; in rdma_create_id() local 405 CMA_CREATE_MSG_CMD_RESP(msg, cmd, resp, UCMA_CMD_CREATE_ID, size); in rdma_create_id() 413 VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); in rdma_create_id() 415 id_priv->handle = resp->id; in rdma_create_id() 425 struct ucma_abi_destroy_id_resp *resp; in ucma_destroy_kern_id() local [all …]
|
| /NextBSD/contrib/ofed/libibverbs/fixes/ |
| HD | XRC_RCV_QP.patch | 26 struct ibv_open_xrc_domain_resp *resp, 334 + struct ibv_create_xrc_rcv_qp_resp resp; 339 + IBV_INIT_CMD_RESP(&cmd, sizeof cmd, CREATE_XRC_RCV_QP, &resp, 340 + sizeof resp); 356 + *xrc_rcv_qpn = resp.qpn; 435 + struct ibv_query_qp_resp resp; 440 + IBV_INIT_CMD_RESP(&cmd, sizeof cmd, QUERY_XRC_RCV_QP, &resp, 441 + sizeof resp); 449 + VALGRIND_MAKE_MEM_DEFINED(&resp, sizeof resp); 451 + attr->qkey = resp.qkey; [all …]
|
| /NextBSD/contrib/wpa/src/eap_server/ |
| HD | eap_server_pax.c | 187 struct eap_pax_hdr *resp; in eap_pax_check() local 193 if (pos == NULL || len < sizeof(*resp)) { in eap_pax_check() 199 resp = (struct eap_pax_hdr *) pos; in eap_pax_check() 204 resp->op_code, resp->flags, resp->mac_id, resp->dh_group_id, in eap_pax_check() 205 resp->public_key_id); in eap_pax_check() 207 (u8 *) (resp + 1), len - sizeof(*resp) - EAP_PAX_ICV_LEN); in eap_pax_check() 210 resp->op_code != EAP_PAX_OP_STD_2) { in eap_pax_check() 212 "ignore op %d", resp->op_code); in eap_pax_check() 217 resp->op_code != EAP_PAX_OP_ACK) { in eap_pax_check() 219 "ignore op %d", resp->op_code); in eap_pax_check() [all …]
|
| /NextBSD/contrib/ofed/libibcm/src/ |
| HD | cm.c | 81 #define CM_CREATE_MSG_CMD_RESP(msg, cmd, resp, type, size) \ argument 93 hdr->out = sizeof(*resp); \ 95 resp = alloca(sizeof(*resp)); \ 96 if (!resp) \ 98 cmd->response = (uintptr_t)resp;\ 261 struct cm_abi_create_id_resp *resp; in ib_cm_create_id() local 272 CM_CREATE_MSG_CMD_RESP(msg, cmd, resp, IB_USER_CM_CMD_CREATE_ID, size); in ib_cm_create_id() 279 VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); in ib_cm_create_id() 281 cm_id_priv->id.handle = resp->id; in ib_cm_create_id() 291 struct cm_abi_destroy_id_resp *resp; in ib_cm_destroy_id() local [all …]
|
| /NextBSD/usr.sbin/timed/timed/ |
| HD | candidate.c | 49 struct tsp *resp, msg; in election() local 92 resp = readmsg(TSP_ANY, ANYADDR, &wait, net); in election() 93 if (!resp) in election() 96 switch (resp->tsp_type) { in election() 99 (void)addmach(resp->tsp_name, &from,fromnet); in election() 109 && !good_host_name(resp->tsp_name)) { in election() 110 (void)addmach(resp->tsp_name, &from,fromnet); in election() 111 suppress(&from, resp->tsp_name, net); in election() 135 htp = addmach(resp->tsp_name,&from,fromnet); in election() 147 (void)addmach(resp->tsp_name, &from,fromnet); in election() [all …]
|