/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/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/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() 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() 127 ocsd_datapath_resp_t resp = OCSD_RESP_CONT; in onFlush() local [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/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/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/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/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/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() 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() 304 max_lltc = resp->max_configurable_lossless_queues; in bnxt_hwrm_queue_qportcfg() [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/sys/ofed/drivers/infiniband/core/ |
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_uverbs_cmd.c | 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() 328 resp->sys_image_guid = attr->sys_image_guid; in copy_query_dev_fields() [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/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 | 206 sshsk_ecdsa_assemble(struct sk_enroll_response *resp, struct sshkey **keyp) in sshsk_ecdsa_assemble() argument 228 resp->public_key, resp->public_key_len)) != 0) { in sshsk_ecdsa_assemble() 261 sshsk_ed25519_assemble(struct sk_enroll_response *resp, struct sshkey **keyp) in sshsk_ed25519_assemble() argument 267 if (resp->public_key_len != ED25519_PK_SZ) { in sshsk_ed25519_assemble() 268 error_f("invalid size: %zu", resp->public_key_len); in sshsk_ed25519_assemble() 282 memcpy(key->ed25519_pk, resp->public_key, ED25519_PK_SZ); in sshsk_ed25519_assemble() 294 struct sk_enroll_response *resp, struct sshkey **keyp) in sshsk_key_from_response() argument 302 if (resp->public_key == NULL || resp->key_handle == NULL) { in sshsk_key_from_response() 310 if ((r = sshsk_ecdsa_assemble(resp, &key)) != 0) in sshsk_key_from_response() 315 if ((r = sshsk_ed25519_assemble(resp, &key)) != 0) in sshsk_key_from_response() [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) 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: 663 if resp is False: [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/crypto/openssh/openbsd-compat/ |
H A D | getrrsetbyname.c | 390 struct dns_response *resp; in parse_dns_response() local 397 resp = calloc(1, sizeof(*resp)); in parse_dns_response() 398 if (resp == NULL) in parse_dns_response() 405 memcpy(&resp->header, cp, HFIXEDSZ); in parse_dns_response() 409 resp->header.qdcount = ntohs(resp->header.qdcount); in parse_dns_response() 410 resp->header.ancount = ntohs(resp->header.ancount); in parse_dns_response() 411 resp->header.nscount = ntohs(resp->header.nscount); in parse_dns_response() 412 resp->header.arcount = ntohs(resp->header.arcount); in parse_dns_response() 415 if (resp->header.qdcount < 1) { in parse_dns_response() 416 free_dns_response(resp); in parse_dns_response() [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | ntp_worker.c | 215 blocking_pipe_header * resp, in queue_blocking_response() argument 220 resp->octets = respsize; in queue_blocking_response() 221 resp->magic_sig = BLOCKING_RESP_MAGIC; in queue_blocking_response() 222 resp->rtype = req->rtype; in queue_blocking_response() 223 resp->context = req->context; in queue_blocking_response() 224 resp->done_func = req->done_func; in queue_blocking_response() 226 return send_blocking_resp_internal(c, resp); in queue_blocking_response() 235 blocking_pipe_header * resp; in process_blocking_resp() local 247 resp = receive_blocking_resp_internal(c); in process_blocking_resp() 248 if (NULL != resp) { in process_blocking_resp() [all …]
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_mbox_prop.h | 86 } resp; member 102 } resp; member 120 } resp; member 143 } resp; member 166 } resp; member 182 } resp; member 207 } resp; member 223 } resp; member 238 } resp; member 253 } resp; member [all …]
|
/freebsd/contrib/ldns/ |
H A D | 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 155 if (ldns_resolver_send_pkt(&resp, r, query) != LDNS_STATUS_OK) { in ldns_update_soa_zone_mname() 160 if (!resp) { in ldns_update_soa_zone_mname() 165 while ((soa_rr = ldns_rr_list_pop_rr(ldns_pkt_authority(resp)))) { in ldns_update_soa_zone_mname() 173 ldns_pkt_free(resp); in ldns_update_soa_zone_mname() [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 …]
|