/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | reg.h | 30 #define MLXSW_REG_ZERO(type, payload) memset(payload, 0, MLXSW_REG(type)->len) argument 49 static inline void mlxsw_reg_sgcr_pack(char *payload, bool llb) in mlxsw_reg_sgcr_pack() argument 51 MLXSW_REG_ZERO(sgcr, payload); in mlxsw_reg_sgcr_pack() 52 mlxsw_reg_sgcr_llb_set(payload, !!llb); in mlxsw_reg_sgcr_pack() 110 static inline void mlxsw_reg_sspr_pack(char *payload, u16 local_port) in mlxsw_reg_sspr_pack() argument 112 MLXSW_REG_ZERO(sspr, payload); in mlxsw_reg_sspr_pack() 113 mlxsw_reg_sspr_m_set(payload, 1); in mlxsw_reg_sspr_pack() 114 mlxsw_reg_sspr_local_port_set(payload, local_port); in mlxsw_reg_sspr_pack() 115 mlxsw_reg_sspr_system_port_set(payload, local_port); in mlxsw_reg_sspr_pack() 143 static inline void mlxsw_reg_sfdat_pack(char *payload, u32 age_time) in mlxsw_reg_sfdat_pack() argument [all …]
|
/openbmc/linux/drivers/media/radio/wl128x/ |
H A D | fmdrv_tx.c | 16 u16 payload; in fm_tx_set_stereo_mono() local 25 payload = (1 - mode); in fm_tx_set_stereo_mono() 26 ret = fmc_send_cmd(fmdev, MONO_SET, REG_WR, &payload, in fm_tx_set_stereo_mono() 27 sizeof(payload), NULL, NULL); in fm_tx_set_stereo_mono() 38 u16 payload; in set_rds_text() local 47 payload = (u16)0x1; in set_rds_text() 48 ret = fmc_send_cmd(fmdev, DISPLAY_MODE, REG_WR, &payload, in set_rds_text() 49 sizeof(payload), NULL, NULL); in set_rds_text() 58 u16 payload; in set_rds_data_mode() local 62 payload = (u16)0xcafe; in set_rds_data_mode() [all …]
|
H A D | fmdrv_rx.c | 36 u16 payload, curr_frq, intr_flag; in fm_rx_set_freq() local 47 payload = FM_RX_AUDIO_ENABLE_I2S_AND_ANALOG; in fm_rx_set_freq() 49 ret = fmc_send_cmd(fmdev, AUDIO_ENABLE_SET, REG_WR, &payload, in fm_rx_set_freq() 50 sizeof(payload), NULL, NULL); in fm_rx_set_freq() 55 payload = FM_RX_IFFREQ_HILO_AUTOMATIC; in fm_rx_set_freq() 56 ret = fmc_send_cmd(fmdev, HILO_SET, REG_WR, &payload, in fm_rx_set_freq() 57 sizeof(payload), NULL, NULL); in fm_rx_set_freq() 62 payload = (freq - fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_set_freq() 64 ret = fmc_send_cmd(fmdev, FREQ_SET, REG_WR, &payload, in fm_rx_set_freq() 65 sizeof(payload), NULL, NULL); in fm_rx_set_freq() [all …]
|
/openbmc/linux/security/keys/ |
H A D | big_key.c | 28 #define to_big_key_payload(payload) \ argument 29 (struct big_key_payload *)((payload).data) 59 struct big_key_payload *payload = to_big_key_payload(prep->payload); in big_key_preparse() local 67 BUILD_BUG_ON(sizeof(*payload) != sizeof(prep->payload.data)); in big_key_preparse() 75 payload->length = datalen; in big_key_preparse() 123 payload->data = enckey; in big_key_preparse() 124 payload->path = file->f_path; in big_key_preparse() 125 path_get(&payload->path); in big_key_preparse() 135 payload->data = data; in big_key_preparse() 154 struct big_key_payload *payload = to_big_key_payload(prep->payload); in big_key_free_preparse() local [all …]
|
/openbmc/linux/tools/perf/util/arm-spe-decoder/ |
H A D | arm-spe-pkt-decoder.c | 72 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload() 73 case 2: packet->payload = le16_to_cpu(*(uint16_t *)buf); break; in arm_spe_get_payload() 74 case 4: packet->payload = le32_to_cpu(*(uint32_t *)buf); break; in arm_spe_get_payload() 75 case 8: packet->payload = le64_to_cpu(*(uint64_t *)buf); break; in arm_spe_get_payload() 295 u64 payload = packet->payload; in arm_spe_pkt_desc_event() local 300 if (payload & BIT(EV_EXCEPTION_GEN)) in arm_spe_pkt_desc_event() 302 if (payload & BIT(EV_RETIRED)) in arm_spe_pkt_desc_event() 304 if (payload & BIT(EV_L1D_ACCESS)) in arm_spe_pkt_desc_event() 306 if (payload & BIT(EV_L1D_REFILL)) in arm_spe_pkt_desc_event() 308 if (payload & BIT(EV_TLB_ACCESS)) in arm_spe_pkt_desc_event() [all …]
|
H A D | arm-spe-decoder.c | 25 static u64 arm_spe_calc_ip(int index, u64 payload) in arm_spe_calc_ip() argument 32 ns = SPE_ADDR_PKT_GET_NS(payload); in arm_spe_calc_ip() 33 el = SPE_ADDR_PKT_GET_EL(payload); in arm_spe_calc_ip() 36 payload = SPE_ADDR_PKT_ADDR_GET_BYTES_0_6(payload); in arm_spe_calc_ip() 40 payload |= 0xffULL << SPE_ADDR_PKT_ADDR_BYTE7_SHIFT; in arm_spe_calc_ip() 46 payload = SPE_ADDR_PKT_ADDR_GET_BYTES_0_6(payload); in arm_spe_calc_ip() 62 val = SPE_ADDR_PKT_ADDR_GET_BYTE_6(payload); in arm_spe_calc_ip() 64 payload |= 0xffULL << SPE_ADDR_PKT_ADDR_BYTE7_SHIFT; in arm_spe_calc_ip() 69 payload = SPE_ADDR_PKT_ADDR_GET_BYTES_0_6(payload); in arm_spe_calc_ip() 78 return payload; in arm_spe_calc_ip() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_varlen.c | 46 void *payload = payload1; in handler64_unsigned() local 53 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_unsigned() 55 payload += len; in handler64_unsigned() 59 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in2[0]); in handler64_unsigned() 61 payload += len; in handler64_unsigned() 65 total1 = payload - (void *)payload1; in handler64_unsigned() 76 void *payload = payload3; in handler64_signed() local 83 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in1[0]); in handler64_signed() 85 payload += len; in handler64_signed() 88 len = bpf_probe_read_kernel_str(payload, MAX_LEN, &buf_in2[0]); in handler64_signed() [all …]
|
H A D | profiler.inc.h | 207 void* payload, in read_full_cgroup_path() argument 210 void* payload_start = payload; in read_full_cgroup_path() 218 bpf_probe_read_kernel_str(payload, MAX_PATH, in read_full_cgroup_path() 221 return payload; in read_full_cgroup_path() 223 *root_pos = payload - payload_start; in read_full_cgroup_path() 226 payload += filepart_length; in read_full_cgroup_path() 230 return payload; in read_full_cgroup_path() 253 void* payload) in populate_cgroup_info() argument 306 bpf_probe_read_kernel_str(payload, MAX_PATH, in populate_cgroup_info() 312 payload += cgroup_root_length; in populate_cgroup_info() [all …]
|
/openbmc/ipmitool/src/plugins/lanplus/ |
H A D | lanplus.c | 96 struct ipmi_v2_payload * payload); 99 struct ipmi_v2_payload * payload, /* in */ 107 struct ipmi_v2_payload * payload); 119 struct ipmi_v2_payload * payload); 709 rsp->payload.ipmi_response.rq_addr); in ipmi_lan_poll_single() 711 rsp->payload.ipmi_response.netfn); in ipmi_lan_poll_single() 713 rsp->payload.ipmi_response.rq_lun); in ipmi_lan_poll_single() 715 rsp->payload.ipmi_response.rs_addr); in ipmi_lan_poll_single() 717 rsp->payload.ipmi_response.rq_seq); in ipmi_lan_poll_single() 719 rsp->payload.ipmi_response.rs_lun); in ipmi_lan_poll_single() [all …]
|
H A D | lanplus_dump.c | 53 rsp->payload.open_session_response.message_tag); in lanplus_dump_open_session_response() 56 val2str(rsp->payload.open_session_response.rakp_return_code, in lanplus_dump_open_session_response() 60 val2str(rsp->payload.open_session_response.max_priv_level, in lanplus_dump_open_session_response() 64 (long)rsp->payload.open_session_response.console_id); in lanplus_dump_open_session_response() 67 if (rsp->payload.open_session_response.rakp_return_code != in lanplus_dump_open_session_response() 73 (long)rsp->payload.open_session_response.bmc_id); in lanplus_dump_open_session_response() 76 val2str(rsp->payload.open_session_response.auth_alg, in lanplus_dump_open_session_response() 80 val2str(rsp->payload.open_session_response.integrity_alg, in lanplus_dump_open_session_response() 84 val2str(rsp->payload.open_session_response.crypt_alg, in lanplus_dump_open_session_response() 102 rsp->payload.rakp2_message.message_tag); in lanplus_dump_rakp2_message() [all …]
|
/openbmc/linux/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-pkt-decoder.c | 80 uint64_t payload; in intel_pt_get_long_tnt() local 86 payload = le64_to_cpu(*(uint64_t *)buf); in intel_pt_get_long_tnt() 89 if (payload & BIT63) in intel_pt_get_long_tnt() 91 payload <<= 1; in intel_pt_get_long_tnt() 96 packet->payload = payload << 1; in intel_pt_get_long_tnt() 103 uint64_t payload = 0; in intel_pt_get_pip() local 109 memcpy_le64(&payload, buf + 2, 6); in intel_pt_get_pip() 110 packet->payload = payload; in intel_pt_get_pip() 127 packet->payload = le16_to_cpu(*(uint16_t *)(buf + 2)); in intel_pt_get_cbr() 144 memcpy_le64(&packet->payload, buf + 2, count); in intel_pt_get_vmcs() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_aux.c | 533 static enum i2caux_transaction_action i2caux_action_from_payload(struct aux_payload *payload) in i2caux_action_from_payload() argument 535 if (payload->i2c_over_aux) { in i2caux_action_from_payload() 536 if (payload->write_status_update) { in i2caux_action_from_payload() 537 if (payload->mot) in i2caux_action_from_payload() 542 if (payload->write) { in i2caux_action_from_payload() 543 if (payload->mot) in i2caux_action_from_payload() 548 if (payload->mot) in i2caux_action_from_payload() 553 if (payload->write) in i2caux_action_from_payload() 560 struct aux_payload *payload, in dce_aux_transfer_raw() argument 583 if (payload->i2c_over_aux) in dce_aux_transfer_raw() [all …]
|
/openbmc/linux/drivers/net/ipa/ |
H A D | ipa_cmd.c | 258 struct ipa_cmd_register_write *payload; in ipa_cmd_register_write_offset_valid() local 268 bit_count = BITS_PER_BYTE * sizeof(payload->offset); in ipa_cmd_register_write_offset_valid() 366 struct ipa_cmd_hw_ip_fltrt_init *payload; in ipa_cmd_table_init_add() local 387 payload = &cmd_payload->table_init; in ipa_cmd_table_init_add() 391 payload->hash_rules_addr = cpu_to_le64(hash_addr); in ipa_cmd_table_init_add() 392 payload->flags = cpu_to_le64(val); in ipa_cmd_table_init_add() 393 payload->nhash_rules_addr = cpu_to_le64(addr); in ipa_cmd_table_init_add() 395 gsi_trans_cmd_add(trans, payload, sizeof(*payload), payload_addr, in ipa_cmd_table_init_add() 405 struct ipa_cmd_hw_hdr_init_local *payload; in ipa_cmd_hdr_init_local_add() local 418 payload = &cmd_payload->hdr_init_local; in ipa_cmd_hdr_init_local_add() [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | tunnel_conf.c | 210 struct nfp_tun_active_tuns *payload; in nfp_tunnel_keep_alive() local 217 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive() 218 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive() 225 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive() 232 ipv4_addr = payload->tun_info[i].ipv4; in nfp_tunnel_keep_alive() 233 port = be32_to_cpu(payload->tun_info[i].egress_port); in nfp_tunnel_keep_alive() 252 struct nfp_tun_active_tuns_v6 *payload; in nfp_tunnel_keep_alive_v6() local 259 payload = nfp_flower_cmsg_get_data(skb); in nfp_tunnel_keep_alive_v6() 260 count = be32_to_cpu(payload->count); in nfp_tunnel_keep_alive_v6() 267 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive_v6() [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/runtime/event/src/ |
H A D | event.c | 74 uint8_t *payload) in ia_css_event_decode() argument 76 assert(payload[1] == 0); in ia_css_event_decode() 77 assert(payload[2] == 0); in ia_css_event_decode() 78 assert(payload[3] == 0); in ia_css_event_decode() 89 payload[0] = event & 0xff; /*event_code */ in ia_css_event_decode() 90 payload[1] = (event >> 8) & 0xff; in ia_css_event_decode() 91 payload[2] = (event >> 16) & 0xff; in ia_css_event_decode() 92 payload[3] = 0; in ia_css_event_decode() 94 switch (payload[0]) { in ia_css_event_decode() 96 payload[2] = 0; in ia_css_event_decode() [all …]
|
/openbmc/slpd-lite/test/ |
H A D | test-suite.py | 15 payload = ( variable 26 ret = sock.sendto(payload, addr) 31 payload = ( variable 42 ret = sock.sendto(payload, addr) 47 payload = ( variable 58 ret = sock.sendto(payload, addr) 63 payload = ( variable 74 ret = sock.sendto(payload, addr) 79 payload = ( variable 90 ret = sock.sendto(payload, addr) [all …]
|
/openbmc/linux/security/keys/trusted-keys/ |
H A D | trusted_tpm2.c | 31 static int tpm2_key_encode(struct trusted_key_payload *payload, in tpm2_key_encode() argument 84 work1 = payload->blob; in tpm2_key_encode() 85 work1 = asn1_encode_sequence(work1, work1 + sizeof(payload->blob), in tpm2_key_encode() 94 return work1 - payload->blob; in tpm2_key_encode() 109 static int tpm2_key_decode(struct trusted_key_payload *payload, in tpm2_key_decode() argument 119 ret = asn1_ber_decoder(&tpm2key_decoder, &ctx, payload->blob, in tpm2_key_decode() 120 payload->blob_len); in tpm2_key_decode() 241 struct trusted_key_payload *payload, in tpm2_seal_trusted() argument 282 tpm_buf_append_u16(&buf, 4 + options->blobauth_len + payload->key_len); in tpm2_seal_trusted() 288 tpm_buf_append_u16(&buf, payload->key_len); in tpm2_seal_trusted() [all …]
|
/openbmc/linux/drivers/ps3/ |
H A D | ps3-sys-manager.c | 231 const struct ps3_sys_manager_header *header, const void *payload) in ps3_sys_manager_write() argument 244 result = ps3_vuart_write(dev, payload, header->payload_size); in ps3_sys_manager_write() 262 } payload; in ps3_sys_manager_send_attr() local 264 BUILD_BUG_ON(sizeof(payload) != 8); in ps3_sys_manager_send_attr() 274 memset(&payload, 0, sizeof(payload)); in ps3_sys_manager_send_attr() 275 payload.version = 1; in ps3_sys_manager_send_attr() 276 payload.attribute = attr; in ps3_sys_manager_send_attr() 278 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_attr() 299 } payload; in ps3_sys_manager_send_next_op() local 301 BUILD_BUG_ON(sizeof(payload) != 16); in ps3_sys_manager_send_next_op() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_ddc.c | 99 struct i2c_payload payload = { in i2c_payloads_add() local 104 dal_vector_append(&payloads->payloads, &payload); in i2c_payloads_add() 278 struct aux_payload *payload) in submit_aux_command() argument 286 if (!payload) in submit_aux_command() 292 payload->length; in submit_aux_command() 294 payload->length - retrieved : DEFAULT_AUX_MAX_DATA_SIZE; in submit_aux_command() 296 current_payload.address = payload->address; in submit_aux_command() 297 current_payload.data = &payload->data[retrieved]; in submit_aux_command() 298 current_payload.defer_delay = payload->defer_delay; in submit_aux_command() 299 current_payload.i2c_over_aux = payload->i2c_over_aux; in submit_aux_command() [all …]
|
/openbmc/qemu/docs/interop/ |
H A D | vhost-user-gpu.rst | 39 fields and a payload. 42 | request | flags | size | payload | 54 :size: ``u32``, size of the payload 59 Depending on the request type, **payload** can be: 160 uint32_t size; /* the following payload size */ 171 } payload; 194 :request payload: N/A 195 :reply payload: ``u64`` 201 :request payload: ``u64`` 202 :reply payload: N/A [all …]
|
/openbmc/pldm/oem/ibm/test/ |
H A D | libpldmresponder_fileio_test.cpp | 132 ASSERT_EQ(responsePtr->payload[0], PLDM_SUCCESS); in TEST() 133 ASSERT_EQ(0, memcmp(responsePtr->payload + sizeof(responsePtr->payload[0]), in TEST() 142 ASSERT_EQ(responsePtr->payload[0], PLDM_SUCCESS); in TEST() 143 ASSERT_EQ(0, memcmp(responsePtr->payload + sizeof(responsePtr->payload[0]), in TEST() 154 ASSERT_EQ(responsePtr->payload[0], PLDM_SUCCESS); in TEST() 155 ASSERT_EQ(0, memcmp(responsePtr->payload + sizeof(responsePtr->payload[0]), in TEST() 164 ASSERT_EQ(responsePtr->payload[0], PLDM_SUCCESS); in TEST() 165 ASSERT_EQ(0, memcmp(responsePtr->payload + sizeof(responsePtr->payload[0]), in TEST() 174 ASSERT_EQ(responsePtr->payload[0], PLDM_SUCCESS); in TEST() 175 ASSERT_EQ(0, memcmp(responsePtr->payload + sizeof(responsePtr->payload[0]), in TEST() [all …]
|
/openbmc/ipmitool/src/plugins/lan/ |
H A D | lan.c | 96 struct ipmi_v2_payload * payload); 499 rsp->payload.sol_packet.packet_sequence_number = in ipmi_lan_poll_recv() 502 rsp->payload.sol_packet.acked_packet_number = in ipmi_lan_poll_recv() 505 rsp->payload.sol_packet.accepted_character_count = in ipmi_lan_poll_recv() 508 rsp->payload.sol_packet.is_nack = in ipmi_lan_poll_recv() 511 rsp->payload.sol_packet.transfer_unavailable = in ipmi_lan_poll_recv() 514 rsp->payload.sol_packet.sol_inactive = in ipmi_lan_poll_recv() 517 rsp->payload.sol_packet.transmit_overrun = in ipmi_lan_poll_recv() 520 rsp->payload.sol_packet.break_detected = in ipmi_lan_poll_recv() 526 rsp->payload.sol_packet.packet_sequence_number); in ipmi_lan_poll_recv() [all …]
|
/openbmc/pldm/libpldmresponder/test/ |
H A D | libpldmresponder_base_test.cpp | 35 uint8_t* payload_ptr = responsePtr->payload; in TEST_F() 51 uint8_t* payload_ptr = responsePtr->payload; in TEST_F() 63 request->payload[0] = 0xFF; in TEST_F() 68 uint8_t* payload_ptr = responsePtr->payload; in TEST_F() 94 ASSERT_EQ(responsePtr->payload[0], 0); in TEST_F() 95 ASSERT_EQ(0, memcmp(responsePtr->payload + sizeof(responsePtr->payload[0]), in TEST_F() 97 ASSERT_EQ(0, memcmp(responsePtr->payload + sizeof(responsePtr->payload[0]) + in TEST_F() 100 ASSERT_EQ(0, memcmp(responsePtr->payload + sizeof(responsePtr->payload[0]) + in TEST_F() 125 ASSERT_EQ(responsePtr->payload[0], PLDM_ERROR_INVALID_LENGTH); in TEST_F() 137 ASSERT_EQ(responsePtr->payload[0], PLDM_ERROR_INVALID_PLDM_TYPE); in TEST_F() [all …]
|
/openbmc/linux/drivers/accel/ivpu/ |
H A D | ivpu_jsm_msg.c | 17 req.payload.register_db.db_idx = db_id; in ivpu_jsm_register_db() 18 req.payload.register_db.jobq_base = jobq_base; in ivpu_jsm_register_db() 19 req.payload.register_db.jobq_size = jobq_size; in ivpu_jsm_register_db() 20 req.payload.register_db.host_ssid = ctx_id; in ivpu_jsm_register_db() 40 req.payload.unregister_db.db_idx = db_id; in ivpu_jsm_unregister_db() 63 req.payload.query_engine_hb.engine_idx = engine; in ivpu_jsm_get_heartbeat() 72 *heartbeat = resp.payload.query_engine_hb_done.heartbeat; in ivpu_jsm_get_heartbeat() 85 req.payload.engine_reset.engine_idx = engine; in ivpu_jsm_reset_engine() 104 req.payload.engine_preempt.engine_idx = engine; in ivpu_jsm_preempt_engine() 105 req.payload.engine_preempt.preempt_id = preempt_id; in ivpu_jsm_preempt_engine() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | selftest.c | 92 struct efx_loopback_payload payload; member 291 struct efx_loopback_payload *payload; in efx_siena_loopback_rx_packet() local 299 payload = &state->payload; in efx_siena_loopback_rx_packet() 303 received.ip.saddr = payload->ip.saddr; in efx_siena_loopback_rx_packet() 305 received.ip.check = payload->ip.check; in efx_siena_loopback_rx_packet() 316 if (memcmp(&received.header, &payload->header, ETH_HLEN) != 0) { in efx_siena_loopback_rx_packet() 333 if (memcmp(&received.ip, &payload->ip, sizeof(payload->ip)) != 0) { in efx_siena_loopback_rx_packet() 341 if (memcmp(&received.msg, &payload->msg, sizeof(received.msg)) != 0) { in efx_siena_loopback_rx_packet() 349 if (received.iteration != payload->iteration) { in efx_siena_loopback_rx_packet() 353 ntohs(payload->iteration), LOOPBACK_MODE(efx)); in efx_siena_loopback_rx_packet() [all …]
|