/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_encoder.c | 311 return pt_encode_ip(encoder, pt_opc_fup, &packet->payload.ip); in pt_enc_next() 314 return pt_encode_ip(encoder, pt_opc_tip, &packet->payload.ip); in pt_enc_next() 318 &packet->payload.ip); in pt_enc_next() 322 &packet->payload.ip); in pt_enc_next() 327 if (packet->payload.tnt.bit_size >= 7) in pt_enc_next() 334 stop = packet->payload.tnt.bit_size + pt_opm_tnt_8_shr; in pt_enc_next() 336 (packet->payload.tnt.payload << pt_opm_tnt_8_shr); in pt_enc_next() 351 if (packet->payload.tnt.bit_size >= pt_pl_tnt_64_bits) in pt_enc_next() 354 stop = 1ull << packet->payload.tnt.bit_size; in pt_enc_next() 355 tnt = packet->payload.tnt.payload; in pt_enc_next() [all …]
|
H A D | pt_packet.c | 67 packet->payload.unknown.packet = pos; in pt_pkt_read_unknown() 68 packet->payload.unknown.priv = NULL; in pt_pkt_read_unknown() 73 size = (*decode)(&packet->payload.unknown, config, pos, in pt_pkt_read_unknown() 164 static uint8_t pt_pkt_tnt_bit_size(uint64_t payload) in pt_pkt_tnt_bit_size() argument 172 payload >>= 1; in pt_pkt_tnt_bit_size() 173 if (!payload) in pt_pkt_tnt_bit_size() 180 static int pt_pkt_read_tnt(struct pt_packet_tnt *packet, uint64_t payload) in pt_pkt_read_tnt() argument 187 bit_size = pt_pkt_tnt_bit_size(payload); in pt_pkt_read_tnt() 192 payload &= ~(1ull << bit_size); in pt_pkt_read_tnt() 194 packet->payload = payload; in pt_pkt_read_tnt() [all …]
|
/freebsd/sys/dev/firmware/xilinx/ |
H A D | zynqmp_firmware.c | 88 typedef int (*zynqmp_callfn_t)(register_t, register_t, register_t, uint32_t *payload); 100 zynqmp_call_smc(uint32_t id, uint32_t a0, uint32_t a1, uint32_t a2, uint32_t a3, uint32_t *payload,… in zynqmp_call_smc() argument 109 if (payload != NULL) { in zynqmp_call_smc() 110 payload[0] = res.a0 & 0xFFFFFFFF; in zynqmp_call_smc() 111 payload[1] = res.a0 >> 32; in zynqmp_call_smc() 112 payload[2] = res.a1 & 0xFFFFFFFF; in zynqmp_call_smc() 113 payload[3] = res.a1 >> 32; in zynqmp_call_smc() 114 if (!ignore_error && payload[0] != PM_RET_SUCCESS) { in zynqmp_call_smc() 115 printf("%s: fail %x\n", __func__, payload[0]); in zynqmp_call_smc() 126 uint32_t payload[4]; in zynqmp_get_api_version() local [all …]
|
/freebsd/sys/dev/sound/pci/hda/ |
H A D | hda_reg.h | 47 #define HDA_CMD_VERB_4BIT(verb, payload) \ argument 48 (((verb) << HDA_CMD_VERB_4BIT_SHIFT) | (payload)) 49 #define HDA_CMD_4BIT(cad, nid, verb, payload) \ argument 52 (HDA_CMD_VERB_4BIT((verb), (payload)))) 54 #define HDA_CMD_VERB_12BIT(verb, payload) \ argument 55 (((verb) << HDA_CMD_VERB_12BIT_SHIFT) | (payload)) 56 #define HDA_CMD_12BIT(cad, nid, verb, payload) \ argument 59 (HDA_CMD_VERB_12BIT((verb), (payload)))) 64 #define HDA_CMD_GET_PARAMETER(cad, nid, payload) \ argument 66 HDA_CMD_VERB_GET_PARAMETER, (payload))) [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | hda_reg.h | 47 #define HDA_CMD_VERB_4BIT(verb, payload) \ argument 48 (((verb) << HDA_CMD_VERB_4BIT_SHIFT) | (payload)) 49 #define HDA_CMD_4BIT(cad, nid, verb, payload) \ argument 52 (HDA_CMD_VERB_4BIT((verb), (payload)))) 54 #define HDA_CMD_VERB_12BIT(verb, payload) \ argument 55 (((verb) << HDA_CMD_VERB_12BIT_SHIFT) | (payload)) 56 #define HDA_CMD_12BIT(cad, nid, verb, payload) \ argument 59 (HDA_CMD_VERB_12BIT((verb), (payload)))) 64 #define HDA_CMD_GET_PARAMETER(cad, nid, payload) \ argument 66 HDA_CMD_VERB_GET_PARAMETER, (payload))) [all …]
|
H A D | hda_codec.c | 172 uint16_t payload); 215 uint16_t verb, uint16_t payload); 219 uint16_t verb, uint16_t payload); 224 uint16_t verb, uint16_t payload); 504 uint16_t verb = 0, payload = 0; in hda_codec_command() local 516 payload = cmd_data & 0xff; in hda_codec_command() 521 payload = cmd_data & 0xffff; in hda_codec_command() 545 if (payload < HDA_CODEC_PARAMS_COUNT) in hda_codec_command() 546 res = sc->get_parameters[nid][payload]; in hda_codec_command() 566 res = sc->verb_handlers[nid](sc, verb, payload); in hda_codec_command() [all …]
|
/freebsd/sys/dev/pms/RefTisa/sallsdk/spc/ |
H A D | sasata.c | 77 bit32 *payload = agNULL; in saSATAStart() local 217 payload = (bit32 *)pMessage; in saSATAStart() 218 SA_DBG4(("saSATAStart: Payload offset 0x%X\n", (unsigned int)(payload - (bit32 *)pMessage))); in saSATAStart() 302 si_memset((void *)payload, 0, sizeof(agsaSATAStartCmd_t)); in saSATAStart() 304 OSSA_WRITE_LE_32(agRoot, payload, OSSA_OFFSET_OF(agsaSATAStartCmd_t, tag), pRequest->HTag); in saSATAStart() 306 OSSA_WRITE_LE_32(agRoot, payload, OSSA_OFFSET_OF(agsaSATAStartCmd_t,deviceId ), deviceIndex); in saSATAStart() 308 OSSA_WRITE_LE_32(agRoot, payload, OSSA_OFFSET_OF(agsaSATAStartCmd_t,dataLen ), 0 ); in saSATAStart() 311 payload, in saSATAStart() 317 …si_memcpy((void *)(payload+4), (void *)&agSATAReq->fis.fisRegHostToDev, sizeof(agsaFisRegHostToDev… in saSATAStart() 322 OSSA_WRITE_LE_32(agRoot, payload, OSSA_OFFSET_OF(agsaSATAStartCmd_t, tag), pRequest->HTag); in saSATAStart() [all …]
|
H A D | sampicmd.c | 95 bit32 *payload, in mpiBuildCmd() argument 151 if (agNULL != payload) in mpiBuildCmd() 153 si_memcpy(pMessage, payload, (size - sizeof(mpiMsgHeader_t))); in mpiBuildCmd() 198 agsaEchoCmd_t payload; in mpiEchoCmd() local 229 OSSA_WRITE_LE_32(agRoot, &payload, OSSA_OFFSET_OF(agsaEchoCmd_t, tag), pRequest->HTag); in mpiEchoCmd() 231 si_memcpy(&payload.payload[0], echoPayload, (sizeof(agsaEchoCmd_t) - 4)); in mpiEchoCmd() 233 …ret = mpiBuildCmd(agRoot, (bit32 *)&payload, MPI_CATEGORY_SAS_SATA, OPC_INB_ECHO, IOMB_SIZE64, que… in mpiEchoCmd() 293 agsaGetPhyProfileCmd_V_t payload; in mpiGetPhyProfileCmd() local 327 si_memset(&payload, 0, sizeof(agsaGetPhyProfileCmd_V_t)); in mpiGetPhyProfileCmd() 330 … OSSA_WRITE_LE_32(agRoot, &payload, OSSA_OFFSET_OF(agsaGetPhyProfileCmd_V_t, tag), pRequest->HTag); in mpiGetPhyProfileCmd() [all …]
|
H A D | saioctlcmd.c | 528 agsaFwProfileRsp_t *payload in mpiFwProfileRsp() argument 539 OSSA_READ_LE_32(AGROOT, &tag, payload, OSSA_OFFSET_OF(agsaFwProfileRsp_t, tag)); in mpiFwProfileRsp() 540 OSSA_READ_LE_32(AGROOT, &status, payload, OSSA_OFFSET_OF(agsaFwProfileRsp_t, status)); in mpiFwProfileRsp() 541 OSSA_READ_LE_32(AGROOT, &len, payload, OSSA_OFFSET_OF(agsaFwProfileRsp_t, len)); in mpiFwProfileRsp() 592 agsaFwFlashUpdateRsp_t *payload in mpiFwFlashUpdateRsp() argument 604 OSSA_READ_LE_32(AGROOT, &tag, payload, OSSA_OFFSET_OF(agsaFwFlashUpdateRsp_t, tag)); in mpiFwFlashUpdateRsp() 605 OSSA_READ_LE_32(AGROOT, &status, payload, OSSA_OFFSET_OF(agsaFwFlashUpdateRsp_t, status)); in mpiFwFlashUpdateRsp() 642 agsaFwFlashOpExtRsp_t *payload in mpiFwExtFlashUpdateRsp() argument 656 OSSA_READ_LE_32(AGROOT, &tag, payload, OSSA_OFFSET_OF(agsaFwFlashOpExtRsp_t, tag)); in mpiFwExtFlashUpdateRsp() 657 OSSA_READ_LE_32(AGROOT, &Command, payload, OSSA_OFFSET_OF(agsaFwFlashOpExtRsp_t,Command )); in mpiFwExtFlashUpdateRsp() [all …]
|
/freebsd/contrib/wpa/src/tls/ |
H A D | tlsv1_client_ocsp.c | 145 pos = hdr.payload; in tls_process_ocsp_single_response() 146 end = hdr.payload + hdr.length; in tls_process_ocsp_single_response() 167 name_hash = hdr.payload; in tls_process_ocsp_single_response() 171 pos = hdr.payload + hdr.length; in tls_process_ocsp_single_response() 192 key_hash = hdr.payload; in tls_process_ocsp_single_response() 195 pos = hdr.payload + hdr.length; in tls_process_ocsp_single_response() 215 serial_number = hdr.payload; in tls_process_ocsp_single_response() 249 hdr.payload, hdr.length); in tls_process_ocsp_single_response() 250 pos = hdr.payload + hdr.length; in tls_process_ocsp_single_response() 256 x509_parse_time(hdr.payload, hdr.length, hdr.tag, &update) < 0) { in tls_process_ocsp_single_response() [all …]
|
H A D | tlsv1_cred.c | 463 pos = hdr.payload; in pkcs12_certbag() 464 end = hdr.payload + hdr.length; in pkcs12_certbag() 488 if (asn1_get_next(hdr.payload, hdr.length, &hdr) < 0 || in pkcs12_certbag() 496 hdr.payload, hdr.length); in pkcs12_certbag() 501 cert = x509_certificate_parse(hdr.payload, hdr.length); in pkcs12_certbag() 511 return tlsv1_set_cert(cred, NULL, hdr.payload, hdr.length); in pkcs12_certbag() 535 hdr.payload, hdr.length); in pkcs12_parse_attr_friendly_name() 560 hdr.payload, hdr.length); in pkcs12_parse_attr_local_key_id() 592 hdr.payload, hdr.length); in pkcs12_parse_attr() 593 pos = hdr.payload; in pkcs12_parse_attr() [all …]
|
H A D | x509v3.c | 200 if (hdr.length > buf + len - hdr.payload) in x509_parse_algorithm_identifier() 202 pos = hdr.payload; in x509_parse_algorithm_identifier() 239 pos = hdr.payload; in x509_parse_public_key() 258 pos = hdr.payload; in x509_parse_public_key() 310 pos = hdr.payload; in x509_parse_name() 328 set_pos = hdr.payload; in x509_parse_name() 329 pos = set_end = hdr.payload + hdr.length; in x509_parse_name() 339 seq_pos = hdr.payload; in x509_parse_name() 340 seq_end = hdr.payload + hdr.length; in x509_parse_name() 412 os_memcpy(name->email, hdr.payload, hdr.length); in x509_parse_name() [all …]
|
H A D | pkcs8.c | 35 pos = hdr.payload; in pkcs8_key_import() 48 if (bignum_set_unsigned_bin(zero, hdr.payload, hdr.length) < 0) { in pkcs8_key_import() 53 pos = hdr.payload + hdr.length; in pkcs8_key_import() 72 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) { in pkcs8_key_import() 94 pos = hdr.payload + hdr.length; in pkcs8_key_import() 106 crypto_rsa_import_private_key(hdr.payload, hdr.length); in pkcs8_key_import() 136 pos = hdr.payload; in pkcs8_enc_key_import() 146 enc_alg = hdr.payload; in pkcs8_enc_key_import() 148 pos = hdr.payload + hdr.length; in pkcs8_enc_key_import() 158 data = pkcs5_decrypt(enc_alg, enc_alg_len, hdr.payload, hdr.length, in pkcs8_enc_key_import()
|
H A D | pkcs5.c | 115 pos = hdr.payload; in pkcs5_get_params_pbes2() 116 end = hdr.payload + hdr.length; in pkcs5_get_params_pbes2() 125 pos = hdr.payload; in pkcs5_get_params_pbes2() 126 kdf_end = end = hdr.payload + hdr.length; in pkcs5_get_params_pbes2() 166 pos = hdr.payload; in pkcs5_get_params_pbes2() 167 end = hdr.payload + hdr.length; in pkcs5_get_params_pbes2() 177 pos = hdr.payload + hdr.length; in pkcs5_get_params_pbes2() 178 os_memcpy(params->salt, hdr.payload, hdr.length); in pkcs5_get_params_pbes2() 188 params->iter_count = *hdr.payload; in pkcs5_get_params_pbes2() 190 params->iter_count = WPA_GET_BE16(hdr.payload); in pkcs5_get_params_pbes2() [all …]
|
/freebsd/contrib/ofed/infiniband-diags/src/ |
H A D | ibccconfig.c | 122 uint8_t payload[IB_CC_DATA_SZ] = { 0 }; in congestion_key_info() local 150 mad_set_field64(payload, in congestion_key_info() 155 mad_encode_field(payload, in congestion_key_info() 159 mad_encode_field(payload, in congestion_key_info() 167 mad_encode_field(payload, in congestion_key_info() 171 if (!cc_config_status_via(payload, rcv, dest, IB_CC_ATTR_CONGESTION_KEY_INFO, in congestion_key_info() 256 uint8_t payload[IB_CC_DATA_SZ] = { 0 }; in switch_congestion_setting() local 299 mad_encode_field(payload, in switch_congestion_setting() 303 mad_set_array(payload, in switch_congestion_setting() 308 mad_set_array(payload, in switch_congestion_setting() [all …]
|
/freebsd/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-packet.c | 183 ptu_ptr_eq(pfix->packet[1].payload.unknown.packet, in unknown() 185 ptu_ptr_eq(pfix->packet[1].payload.unknown.priv, pfix); in unknown() 206 ptu_ptr_eq(pfix->packet[1].payload.unknown.packet, in unknown_ext() 208 ptu_ptr_eq(pfix->packet[1].payload.unknown.priv, pfix); in unknown_ext() 230 ptu_ptr_eq(pfix->packet[1].payload.unknown.packet, in unknown_ext2() 232 ptu_ptr_eq(pfix->packet[1].payload.unknown.priv, pfix); in unknown_ext2() 241 pfix->packet[0].payload.tnt.bit_size = 4; in tnt_8() 242 pfix->packet[0].payload.tnt.payload = 0x5ull; in tnt_8() 252 pfix->packet[0].payload.tnt.bit_size = 23; in tnt_64() 253 pfix->packet[0].payload.tnt.payload = 0xabcdeull; in tnt_64() [all …]
|
/freebsd/contrib/wpa/src/common/ |
H A D | dpp_backup.c | 565 hdr.payload, hdr.length); in dpp_parse_recipient_infos() 566 pos = hdr.payload; in dpp_parse_recipient_infos() 582 pos = hdr.payload; in dpp_parse_recipient_infos() 600 pos = hdr.payload; in dpp_parse_recipient_infos() 633 pos = hdr.payload; in dpp_parse_recipient_infos() 642 hdr.payload, hdr.length); in dpp_parse_recipient_infos() 648 data->salt = hdr.payload; in dpp_parse_recipient_infos() 649 pos = hdr.payload + hdr.length; in dpp_parse_recipient_infos() 667 asn1_get_oid(hdr.payload, hdr.length, &oid, &pos) < 0) { in dpp_parse_recipient_infos() 720 hdr.payload, hdr.length); in dpp_parse_recipient_infos() [all …]
|
/freebsd/sbin/ping/tests/ |
H A D | injection.py | 55 )/ICMP(type=0, code=0, id=echo_req.payload.id)/echo_req.payload.payload 63 )/ICMP(type=0, code=0, id=echo_req.payload.id)/echo_req.payload.payload 75 )/ICMP(type=0, code=0, id=echo_req.payload.id)/echo_req.payload.payload
|
/freebsd/sys/dev/nvme/ |
H A D | nvme_ctrlr_cmd.c | 33 nvme_ctrlr_cmd_identify_controller(struct nvme_controller *ctrlr, void *payload, in nvme_ctrlr_cmd_identify_controller() argument 39 req = nvme_allocate_request_vaddr(payload, in nvme_ctrlr_cmd_identify_controller() 56 void *payload, nvme_cb_fn_t cb_fn, void *cb_arg) in nvme_ctrlr_cmd_identify_namespace() argument 61 req = nvme_allocate_request_vaddr(payload, in nvme_ctrlr_cmd_identify_namespace() 168 uint32_t cdw15, void *payload, uint32_t payload_size, in nvme_ctrlr_cmd_set_feature() argument 190 uint32_t cdw11, void *payload, uint32_t payload_size, in nvme_ctrlr_cmd_get_feature() argument 256 uint32_t nsid, void *payload, uint32_t payload_size, nvme_cb_fn_t cb_fn, in nvme_ctrlr_cmd_get_log_page() argument 266 req = nvme_allocate_request_vaddr(payload, payload_size, in nvme_ctrlr_cmd_get_log_page() 281 struct nvme_error_information_entry *payload, uint32_t num_entries, in nvme_ctrlr_cmd_get_error_page() argument 296 NVME_GLOBAL_NAMESPACE_TAG, payload, sizeof(*payload) * num_entries, in nvme_ctrlr_cmd_get_error_page() [all …]
|
/freebsd/tests/sys/netpfil/pf/ |
H A D | frag-overindex.py | 33 payload = b"ABCDEFGHIJKLMNOP" 40 (int((boundary + 8) / len(payload)) * payload) 69 a.payload.proto == 1 and \ 70 a.payload.frag == 0 and \ 71 sp.icmptypes[a.payload.payload.type] == 'echo-reply': 72 id = a.payload.payload.id
|
H A D | frag-overlimit.py | 36 payload = b"ABCDEFGHIJKLMNOP" 43 (int((boundary + boundary) / len(payload)) * payload) 74 a.payload.proto == 1 and \ 75 a.payload.frag == 0 and \ 76 sp.icmptypes[a.payload.payload.type] == 'echo-reply': 77 id = a.payload.payload.id
|
H A D | frag-overreplace.py | 34 payload = b"ABCDEFGHIJKLMNOP" 41 (int((boundary + fragsize) / len(payload)) * payload) 72 a.payload.proto == 1 and \ 73 a.payload.frag == 0 and \ 74 sp.icmptypes[a.payload.payload.type] == 'echo-reply': 75 id=a.payload.payload.id
|
/freebsd/contrib/opencsd/decoder/include/opencsd/stm/ |
H A D | trc_pkt_elem_stm.h | 142 payload.D8 = value & 0xF; in setD4Payload() 147 payload.D8 = value; in setD8Payload() 152 payload.D16 = value; in setD16Payload() 157 payload.D32 = value; in setD32Payload() 162 payload.D64 = value; in setD64Payload() 207 return payload.D8; in getD4Val() 212 return payload.D8; in getD8Val() 217 return payload.D16; in getD16Val() 222 return payload.D32; in getD32Val() 227 return payload.D64; in getD64Val()
|
/freebsd/crypto/openssl/util/perl/TLSProxy/ |
H A D | Message.pm | 137 my $payload = ""; 152 $payload = ""; 175 if ($serverin != $server && length($payload) != 0) { 181 if ($payload ne "") { 198 if (length $payload > 0) { 204 if ($messlen <= length($payload)) { 207 ." payload length:".length($payload)."\n"; 209 if (length($payload) + $record->decrypt_len >= $messlen) { 211 $recoffset = $messlen - length($payload); 212 $payload .= substr($record->decrypt_data, 0, $recoffset); [all …]
|
/freebsd/sys/dev/sfxge/common/ |
H A D | efx_nvram.c | 543 EFX_MCDI_DECLARE_BUF(payload, MC_CMD_NVRAM_PARTITIONS_IN_LEN, in efx_mcdi_nvram_partitions() 549 req.emr_in_buf = payload; in efx_mcdi_nvram_partitions() 551 req.emr_out_buf = payload; in efx_mcdi_nvram_partitions() 605 EFX_MCDI_DECLARE_BUF(payload, MC_CMD_NVRAM_METADATA_IN_LEN, 610 req.emr_in_buf = payload; 612 req.emr_out_buf = payload; 694 EFX_MCDI_DECLARE_BUF(payload, MC_CMD_NVRAM_INFO_IN_LEN, in efx_mcdi_nvram_info() 700 req.emr_in_buf = payload; in efx_mcdi_nvram_info() 702 req.emr_out_buf = payload; in efx_mcdi_nvram_info() 754 EFX_MCDI_DECLARE_BUF(payload, MC_CMD_NVRAM_UPDATE_START_V2_IN_LEN, in efx_mcdi_nvram_update_start() [all …]
|