/freebsd/contrib/ofed/libibverbs/ |
H A D | cmd.c | 48 size_t cmd_size, struct ibv_get_context_resp *resp, in ibv_cmd_get_context() argument 54 IBV_INIT_CMD_RESP(cmd, cmd_size, GET_CONTEXT, resp, resp_size); in ibv_cmd_get_context() 59 (void) VALGRIND_MAKE_MEM_DEFINED(resp, resp_size); in ibv_cmd_get_context() 61 context->async_fd = resp->async_fd; in ibv_cmd_get_context() 62 context->num_comp_vectors = resp->num_comp_vectors; in ibv_cmd_get_context() 68 struct ibv_query_device_resp *resp, in copy_query_dev_fields() argument 71 *raw_fw_ver = resp->fw_ver; in copy_query_dev_fields() 72 device_attr->node_guid = resp->node_guid; in copy_query_dev_fields() 73 device_attr->sys_image_guid = resp->sys_image_guid; in copy_query_dev_fields() 74 device_attr->max_mr_size = resp->max_mr_size; in copy_query_dev_fields() [all …]
|
/freebsd/sys/dev/sound/pci/ |
H A D | csa.c | 94 static int csa_downloadimage(csa_res *resp); 95 static int csa_transferimage(csa_res *resp, u_int32_t *src, u_long dest, u_long len); 221 csa_res *resp; in csa_attach() local 234 resp = &scp->res; in csa_attach() 238 resp->io_rid = PCIR_BAR(0); in csa_attach() 239 resp->io = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in csa_attach() 240 &resp->io_rid, RF_ACTIVE); in csa_attach() 241 if (resp->io == NULL) in csa_attach() 243 resp->mem_rid = PCIR_BAR(1); in csa_attach() 244 resp->mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in csa_attach() [all …]
|
H A D | csapcm.c | 85 static void csa_setplaysamplerate(csa_res *resp, u_long ulInRate); 86 static void csa_setcapturesamplerate(csa_res *resp, u_long ulOutRate); 91 static int csa_startdsp(csa_res *resp); 92 static int csa_stopdsp(csa_res *resp); 173 csa_setplaysamplerate(csa_res *resp, u_long ulInRate) in csa_setplaysamplerate() argument 214 …csa_writemem(resp, BA1_PSRC, ((ulCorrectionPerSec << 16) & 0xFFFF0000) | (ulCorrectionPerGOF & 0xF… in csa_setplaysamplerate() 215 csa_writemem(resp, BA1_PPI, ulPhiIncr); in csa_setplaysamplerate() 219 csa_setcapturesamplerate(csa_res *resp, u_long ulOutRate) in csa_setcapturesamplerate() argument 287 csa_writemem(resp, BA1_CSRC, in csa_setcapturesamplerate() 289 csa_writemem(resp, BA1_CCI, ulCoeffIncr); in csa_setcapturesamplerate() [all …]
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | bnxt_hwrm.c | 146 struct hwrm_err_output *resp = (void *)softc->hwrm_cmd_resp.idi_vaddr; in _hwrm_send_message() local 156 memset(resp, 0, PAGE_SIZE); in _hwrm_send_message() 216 if (resp->resp_len && resp->resp_len <= 4096) in _hwrm_send_message() 227 /* Last byte of resp contains the valid key */ in _hwrm_send_message() 228 valid = (uint8_t *)resp + resp->resp_len - 1; in _hwrm_send_message() 244 err = le16toh(resp->error_code); in _hwrm_send_message() 275 struct hwrm_queue_qportcfg_output *resp = in bnxt_hwrm_queue_qportcfg() local 290 if (!resp->max_configurable_queues) { in bnxt_hwrm_queue_qportcfg() 295 if (resp->queue_cfg_info & HWRM_QUEUE_QPORTCFG_OUTPUT_QUEUE_CFG_INFO_ASYM_CFG) { in bnxt_hwrm_queue_qportcfg() 303 max_tc = min_t(uint8_t, resp->max_configurable_queues, BNXT_MAX_QUEUE); in bnxt_hwrm_queue_qportcfg() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | 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 …]
|
/freebsd/contrib/opencsd/decoder/source/ptm/ |
H A D | trc_pkt_decode_ptm.cpp | 60 ocsd_datapath_resp_t resp = OCSD_RESP_CONT; in processPacket() local 71 resp = outputTraceElement(m_output_elem); in processPacket() 90 resp = decodePacket(); in processPacket() 95 // should only see these after a _WAIT resp - in flush handler in processPacket() 103 return resp; in processPacket() 108 ocsd_datapath_resp_t resp = OCSD_RESP_CONT; in onEOT() local 113 resp = outputTraceElement(m_output_elem); in onEOT() 114 return resp; in onEOT() 119 ocsd_datapath_resp_t resp = OCSD_RESP_CONT; in onReset() local 122 return resp; in onReset() [all …]
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | qmi.c | 122 struct wlfw_msa_info_resp_msg_v01 resp = {}; in ath10k_qmi_msa_mem_info_send_sync_msg() local 134 wlfw_msa_info_resp_msg_v01_ei, &resp); in ath10k_qmi_msa_mem_info_send_sync_msg() 152 if (resp.resp.result != QMI_RESULT_SUCCESS_V01) { in ath10k_qmi_msa_mem_info_send_sync_msg() 153 ath10k_err(ar, "msa info req rejected: %d\n", resp.resp.error); in ath10k_qmi_msa_mem_info_send_sync_msg() 158 if (resp.mem_region_info_len > QMI_WLFW_MAX_MEM_REG_V01) { in ath10k_qmi_msa_mem_info_send_sync_msg() 160 resp.mem_region_info_len); in ath10k_qmi_msa_mem_info_send_sync_msg() 166 qmi->nr_mem_region = resp.mem_region_info_len; in ath10k_qmi_msa_mem_info_send_sync_msg() 167 for (i = 0; i < resp.mem_region_info_len; i++) { in ath10k_qmi_msa_mem_info_send_sync_msg() 168 if (resp.mem_region_info[i].size > ar->msa.mem_size || in ath10k_qmi_msa_mem_info_send_sync_msg() 169 resp.mem_region_info[i].region_addr > max_mapped_addr || in ath10k_qmi_msa_mem_info_send_sync_msg() [all …]
|
/freebsd/contrib/bsnmp/lib/ |
H A D | 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() 175 resp->type = SNMP_PDU_REPORT; /* RFC 3414.4 */ in snmp_pdu_create_response() 177 resp->type = SNMP_PDU_RESPONSE; in snmp_pdu_create_response() 178 resp->request_id = pdu->request_id; in snmp_pdu_create_response() 179 resp->version = pdu->version; in snmp_pdu_create_response() 181 if (resp->version != SNMP_V3) in snmp_pdu_create_response() 184 memcpy(&resp->engine, &pdu->engine, sizeof(pdu->engine)); in snmp_pdu_create_response() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_uverbs_cmd.c | 58 * Copy a response to userspace. If the provided 'resp' is larger than the 65 static int uverbs_response(struct uverbs_attr_bundle *attrs, const void *resp, in uverbs_response() argument 72 attrs, UVERBS_ATTR_CORE_OUT, resp, resp_len); in uverbs_response() 74 if (copy_to_user(attrs->ucore.outbuf, resp, in uverbs_response() 275 struct ib_uverbs_get_context_resp resp; in ib_uverbs_get_context() local 295 resp = (struct ib_uverbs_get_context_resp){ in ib_uverbs_get_context() 299 ret = uverbs_response(attrs, &resp, sizeof(resp)); in ib_uverbs_get_context() 321 struct ib_uverbs_query_device_resp *resp, in copy_query_dev_fields() argument 326 resp->fw_ver = attr->fw_ver; in copy_query_dev_fields() 327 resp->node_guid = ib_dev->node_guid; in copy_query_dev_fields() [all …]
|
H A D | ib_uverbs_std_types_device.c | 132 struct ib_uverbs_query_port_resp *resp, in copy_port_attr_to_resp() argument 135 resp->state = attr->state; in copy_port_attr_to_resp() 136 resp->max_mtu = attr->max_mtu; in copy_port_attr_to_resp() 137 resp->active_mtu = attr->active_mtu; in copy_port_attr_to_resp() 138 resp->gid_tbl_len = attr->gid_tbl_len; in copy_port_attr_to_resp() 139 resp->port_cap_flags = make_port_cap_flags(attr); in copy_port_attr_to_resp() 140 resp->max_msg_sz = attr->max_msg_sz; in copy_port_attr_to_resp() 141 resp->bad_pkey_cntr = attr->bad_pkey_cntr; in copy_port_attr_to_resp() 142 resp->qkey_viol_cntr = attr->qkey_viol_cntr; in copy_port_attr_to_resp() 143 resp->pkey_tbl_len = attr->pkey_tbl_len; in copy_port_attr_to_resp() [all …]
|
H A D | ib_ucma.c | 110 struct rdma_ucm_event_resp resp; member 281 uevent->resp.uid = uevent->mc->uid; in ucma_set_event_context() 282 uevent->resp.id = uevent->mc->id; in ucma_set_event_context() 285 uevent->resp.uid = ctx->uid; in ucma_set_event_context() 286 uevent->resp.id = ctx->id; in ucma_set_event_context() 317 con_req_eve->resp.event == RDMA_CM_EVENT_CONNECT_REQUEST) { in ucma_removal_event_handler() 343 uevent->resp.event = event->event; in ucma_event_handler() 344 uevent->resp.status = event->status; in ucma_event_handler() 346 ucma_copy_ud_event(&uevent->resp.param.ud, &event->param.ud); in ucma_event_handler() 348 ucma_copy_conn_event(&uevent->resp.param.conn, in ucma_event_handler() [all …]
|
/freebsd/contrib/wpa/src/common/ |
H A D | gas_server.c | 31 void (*status_cb)(void *ctx, struct wpabuf *resp, int ok); 40 struct wpabuf *resp; member 52 void (*tx)(void *ctx, int freq, const u8 *da, struct wpabuf *resp, 69 (unsigned long) (response->resp ? in gas_server_response_timeout() 70 wpabuf_len(response->resp) : 0)); in gas_server_response_timeout() 72 response->resp, 0); in gas_server_response_timeout() 73 response->resp = NULL; in gas_server_response_timeout() 85 wpabuf_free(response->resp); in gas_server_free_response() 99 struct wpabuf *resp; in gas_server_send_resp() local 121 resp = gas_build_initial_resp(response->dialog_token, in gas_server_send_resp() [all …]
|
/freebsd/contrib/opencsd/decoder/source/etmv3/ |
H A D | trc_pkt_decode_etmv3.cpp | 59 ocsd_datapath_resp_t resp = OCSD_RESP_CONT; in processPacket() local 72 resp = sendUnsyncPacket(); in processPacket() 89 resp = processISync((m_curr_packet_in->getType() == ETM3_PKT_I_SYNC_CYCLE),true); in processPacket() 97 resp = decodePacket(bPktDone); in processPacket() 104 resp = decodePacket(bPktDone); in processPacket() 108 resp = m_outputElemList.sendElements(); in processPacket() 109 if(OCSD_DATA_RESP_IS_CONT(resp)) in processPacket() 118 resp = OCSD_RESP_FATAL_SYS_ERR; in processPacket() 123 return resp; in processPacket() 128 ocsd_datapath_resp_t resp = OCSD_RESP_CONT; in onEOT() local [all …]
|
/freebsd/contrib/ofed/libcxgb4/ |
H A D | verbs.c | 82 struct c4iw_alloc_pd_resp resp; in c4iw_alloc_pd() local 90 &resp.ibv_resp, sizeof resp)) { in c4iw_alloc_pd() 116 struct ibv_reg_mr_resp resp; in __c4iw_reg_mr() local 125 &resp, sizeof resp)) { in __c4iw_reg_mr() 172 struct c4iw_create_cq_resp resp; in c4iw_create_cq() local 182 resp.reserved = 0; in c4iw_create_cq() 185 &resp.ibv_resp, sizeof resp); in c4iw_create_cq() 189 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 …]
|
/freebsd/sys/dev/pms/RefTisa/tisa/sassata/sas/tgt/ |
H A D | ttdsmp.c | 182 smpRespDiscover_t *Resp; in ttdsaDiscoverRespSend() local 222 Resp = (smpRespDiscover_t *)&(SMPResp->RespData); in ttdsaDiscoverRespSend() 223 osti_memset(Resp, 0, sizeof(smpRespDiscover_t)); in ttdsaDiscoverRespSend() 227 Resp->phyIdentifier = 0; in ttdsaDiscoverRespSend() 228 Resp->attachedDeviceType = SAS_EDGE_EXPANDER_DEVICE; in ttdsaDiscoverRespSend() 229 Resp->negotiatedPhyLinkRate = 0x9; /* enabled, 1.5G */ in ttdsaDiscoverRespSend() 230 Resp->attached_Ssp_Stp_Smp_Sata_Initiator = 0; in ttdsaDiscoverRespSend() 231 Resp->attached_SataPS_Ssp_Stp_Smp_Sata_Target = 0x2; /* SMP target */ in ttdsaDiscoverRespSend() 232 Resp->sasAddressHi[3] = 0x01; in ttdsaDiscoverRespSend() 233 Resp->sasAddressHi[2] = 0x02; in ttdsaDiscoverRespSend() [all …]
|
/freebsd/crypto/openssh/ |
H A D | ssh-sk-helper.c | 60 struct sshbuf *resp; in reply_error() local 71 if ((resp = sshbuf_new()) == NULL) in reply_error() 73 if (sshbuf_put_u32(resp, SSH_SK_HELPER_ERROR) != 0 || in reply_error() 74 sshbuf_put_u32(resp, (u_int)-r) != 0) in reply_error() 76 return resp; in reply_error() 94 struct sshbuf *resp, *kbuf; in process_sign() local 127 resp = reply_error(r, "Signing failed: %s", ssh_err(r)); in process_sign() 131 if ((resp = sshbuf_new()) == NULL) in process_sign() 134 if ((r = sshbuf_put_u32(resp, SSH_SK_HELPER_SIGN)) != 0 || in process_sign() 135 (r = sshbuf_put_string(resp, sig, siglen)) != 0) in process_sign() [all …]
|
H A D | ssh-sk.c | 207 sshsk_ecdsa_assemble(struct sk_enroll_response *resp, struct sshkey **keyp) in sshsk_ecdsa_assemble() argument 232 resp->public_key, resp->public_key_len)) != 0) { in sshsk_ecdsa_assemble() 276 sshsk_ed25519_assemble(struct sk_enroll_response *resp, struct sshkey **keyp) in sshsk_ed25519_assemble() argument 282 if (resp->public_key_len != ED25519_PK_SZ) { in sshsk_ed25519_assemble() 283 error_f("invalid size: %zu", resp->public_key_len); in sshsk_ed25519_assemble() 297 memcpy(key->ed25519_pk, resp->public_key, ED25519_PK_SZ); in sshsk_ed25519_assemble() 309 struct sk_enroll_response *resp, struct sshkey **keyp) in sshsk_key_from_response() argument 317 if (resp->public_key == NULL || resp->key_handle == NULL) { in sshsk_key_from_response() 325 if ((r = sshsk_ecdsa_assemble(resp, &key)) != 0) in sshsk_key_from_response() 330 if ((r = sshsk_ed25519_assemble(resp, &key)) != 0) in sshsk_key_from_response() [all …]
|
/freebsd/usr.sbin/flowctl/ |
H A D | flowctl.c | 84 static void flow_cache_print(struct ngnf_show_header *resp); 85 static void flow_cache_print_verbose(struct ngnf_show_header *resp); 88 static void flow_cache_print6(struct ngnf_show_header *resp); 89 static void flow_cache_print6_verbose(struct ngnf_show_header *resp); 224 struct ngnf_show_header req, *resp; in do_show() local 246 resp = (struct ngnf_show_header *)ng_mesg->data; in do_show() 247 if ((ng_mesg->header.arglen < (sizeof(*resp))) || in do_show() 248 (ng_mesg->header.arglen < (sizeof(*resp) + in do_show() 249 (resp->nentries * sizeof(struct flow_entry_data))))) in do_show() 252 (*func)(resp); in do_show() [all …]
|
/freebsd/contrib/lib9p/pytest/ |
H A D | p9conn.py | 597 resp = self.proto.unpack(pkt) 599 resp = protocol.plain.unpack(pkt) 604 resp = self.proto.unpack(pkt, noerror=True) 615 self, resp) 620 # so resp['tag'] always exists. 621 self.logger.log(logging.DEBUG, "read_resp: tag %d resp %r", resp.tag, resp) 622 self.set_tag(resp.tag, resp) 644 resp = self.tagstate.get(tag, None) 645 if resp is None: 648 if resp is True: [all …]
|
/freebsd/sys/dev/mana/ |
H A D | gdma_main.c | 103 struct gdma_query_max_resources_resp resp = {}; in mana_gd_query_max_resources() local 108 sizeof(req), sizeof(resp)); in mana_gd_query_max_resources() 110 err = mana_gd_send_request(gc, sizeof(req), &req, sizeof(resp), &resp); in mana_gd_query_max_resources() 111 if (err || resp.hdr.status) { in mana_gd_query_max_resources() 114 err, resp.hdr.status); in mana_gd_query_max_resources() 120 resp.max_msix, resp.max_eq, resp.max_cq, in mana_gd_query_max_resources() 121 resp.max_sq, resp.max_rq); in mana_gd_query_max_resources() 123 if (gc->num_msix_usable > resp.max_msix) in mana_gd_query_max_resources() 124 gc->num_msix_usable = resp.max_msix; in mana_gd_query_max_resources() 133 if (gc->max_num_queues > resp.max_eq) in mana_gd_query_max_resources() [all …]
|
/freebsd/contrib/wpa/src/eap_peer/ |
H A D | eap_eke.c | 199 struct wpabuf *resp; in eap_eke_build_fail() local 204 resp = eap_eke_build_msg(data, id, 4, EAP_EKE_FAILURE); in eap_eke_build_fail() 205 if (resp) in eap_eke_build_fail() 206 wpabuf_put_be32(resp, failure_code); in eap_eke_build_fail() 216 return resp; in eap_eke_build_fail() 226 struct wpabuf *resp; in eap_eke_process_id() local 321 resp = eap_eke_build_msg(data, id, in eap_eke_process_id() 324 if (resp == NULL) { in eap_eke_process_id() 329 wpabuf_put_u8(resp, 1); /* NumProposals */ in eap_eke_process_id() 330 wpabuf_put_u8(resp, 0); /* Reserved */ in eap_eke_process_id() [all …]
|
H A D | eap_sake.c | 148 struct wpabuf *resp; in eap_sake_process_identity() local 168 resp = eap_sake_build_msg(data, id, 2 + data->peerid_len, in eap_sake_process_identity() 170 if (resp == NULL) in eap_sake_process_identity() 174 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, in eap_sake_process_identity() 179 return resp; in eap_sake_process_identity() 191 struct wpabuf *resp; in eap_sake_process_challenge() local 251 resp = eap_sake_build_msg(data, id, rlen, EAP_SAKE_SUBTYPE_CHALLENGE); in eap_sake_process_challenge() 252 if (resp == NULL) in eap_sake_process_challenge() 256 eap_sake_add_attr(resp, EAP_SAKE_AT_RAND_P, in eap_sake_process_challenge() 261 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, in eap_sake_process_challenge() [all …]
|
H A D | eap_gpsk.c | 280 struct wpabuf *resp; in eap_gpsk_process_gpsk_1() local 301 resp = eap_gpsk_send_gpsk_2(data, identifier, in eap_gpsk_process_gpsk_1() 303 if (resp == NULL) in eap_gpsk_process_gpsk_1() 308 return resp; in eap_gpsk_process_gpsk_1() 317 struct wpabuf *resp; in eap_gpsk_send_gpsk_2() local 329 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GPSK, len, in eap_gpsk_send_gpsk_2() 331 if (resp == NULL) in eap_gpsk_send_gpsk_2() 334 wpabuf_put_u8(resp, EAP_GPSK_OPCODE_GPSK_2); in eap_gpsk_send_gpsk_2() 335 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_2() 339 wpabuf_put_be16(resp, data->id_peer_len); in eap_gpsk_send_gpsk_2() [all …]
|
/freebsd/contrib/pam-krb5/module/ |
H A D | prompting.c | 147 struct pam_response *resp = NULL; in pamk5_conv() local 161 pamret = conv->conv(1, &pmsg, &resp, conv->appdata_ptr); in pamk5_conv() 176 if (resp == NULL || resp->resp == NULL) in pamk5_conv() 179 *response = resp->resp; in pamk5_conv() 182 explicit_bzero(resp->resp, strlen(resp->resp)); in pamk5_conv() 183 free(resp->resp); in pamk5_conv() 186 free(resp); in pamk5_conv() 252 free_pam_responses(struct pam_response *resp, size_t total_prompts) in free_pam_responses() argument 256 if (resp == NULL) in free_pam_responses() 259 if (resp[i].resp != NULL) { in free_pam_responses() [all …]
|
/freebsd/contrib/ofed/libibcm/ |
H A D | cm.c | 71 #define CM_CREATE_MSG_CMD_RESP(msg, cmd, resp, type, size) \ argument 83 hdr->out = sizeof(*resp); \ 85 resp = alloca(sizeof(*resp)); \ 86 if (!resp) \ 88 cmd->response = (uintptr_t)resp;\ 249 struct ib_ucm_create_id_resp *resp; in ib_cm_create_id() local 260 CM_CREATE_MSG_CMD_RESP(msg, cmd, resp, IB_USER_CM_CMD_CREATE_ID, size); in ib_cm_create_id() 267 VALGRIND_MAKE_MEM_DEFINED(resp, sizeof *resp); in ib_cm_create_id() 269 cm_id_priv->id.handle = resp->id; in ib_cm_create_id() 279 struct ib_ucm_destroy_id_resp *resp; in ib_cm_destroy_id() local [all …]
|