/openbmc/linux/tools/power/x86/intel-speed-select/ |
H A D | isst-display.c | 84 static void format_and_print_txt(FILE *outf, int level, char *header, in format_and_print_txt() argument 102 if (header && value) { in format_and_print_txt() 104 fprintf(outf, "%s:%s\n", header, value); in format_and_print_txt() 105 } else if (header) { in format_and_print_txt() 107 fprintf(outf, "%s\n", header); in format_and_print_txt() 112 static void format_and_print(FILE *outf, int level, char *header, char *value) in format_and_print() argument 119 format_and_print_txt(outf, level, header, value); in format_and_print() 124 if (header) in format_and_print() 143 fprintf(outf, "%s\"%s\": ", delimiters, header); in format_and_print() 153 if (i == level && header) in format_and_print() [all …]
|
/openbmc/linux/tools/net/ynl/generated/ |
H A D | ethtool-user.h | 214 __u32 header:1; member 219 struct ethtool_header header; member 233 req->_present.header = 1; in ethtool_strset_get_req_set_header_dev_index() 234 req->header._present.dev_index = 1; in ethtool_strset_get_req_set_header_dev_index() 235 req->header.dev_index = dev_index; in ethtool_strset_get_req_set_header_dev_index() 241 free(req->header.dev_name); in ethtool_strset_get_req_set_header_dev_name() 242 req->header._present.dev_name_len = strlen(dev_name); in ethtool_strset_get_req_set_header_dev_name() 243 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_strset_get_req_set_header_dev_name() 244 memcpy(req->header.dev_name, dev_name, req->header._present.dev_name_len); in ethtool_strset_get_req_set_header_dev_name() 245 req->header.dev_name[req->header._present.dev_name_len] = 0; in ethtool_strset_get_req_set_header_dev_name() [all …]
|
/openbmc/qemu/block/ |
H A D | vdi.c | 187 VdiHeader header; member 194 static void vdi_header_to_cpu(VdiHeader *header) in vdi_header_to_cpu() argument 196 header->signature = le32_to_cpu(header->signature); in vdi_header_to_cpu() 197 header->version = le32_to_cpu(header->version); in vdi_header_to_cpu() 198 header->header_size = le32_to_cpu(header->header_size); in vdi_header_to_cpu() 199 header->image_type = le32_to_cpu(header->image_type); in vdi_header_to_cpu() 200 header->image_flags = le32_to_cpu(header->image_flags); in vdi_header_to_cpu() 201 header->offset_bmap = le32_to_cpu(header->offset_bmap); in vdi_header_to_cpu() 202 header->offset_data = le32_to_cpu(header->offset_data); in vdi_header_to_cpu() 203 header->cylinders = le32_to_cpu(header->cylinders); in vdi_header_to_cpu() [all …]
|
/openbmc/linux/sound/soc/intel/skylake/ |
H A D | skl-sst-ipc.c | 298 struct skl_ipc_header *header = (struct skl_ipc_header *)(&msg->tx.header); in skl_ipc_tx_msg() local 303 header->extension); in skl_ipc_tx_msg() 305 header->primary | SKL_ADSP_REG_HIPCI_BUSY); in skl_ipc_tx_msg() 329 struct skl_ipc_header *header = (struct skl_ipc_header *)(&ipc_header); in skl_ipc_reply_get_msg() local 333 header->primary); in skl_ipc_reply_get_msg() 346 struct skl_ipc_header header) in skl_ipc_process_notification() argument 350 if (IPC_GLB_NOTIFY_MSG_TYPE(header.primary)) { in skl_ipc_process_notification() 351 switch (IPC_GLB_NOTIFY_TYPE(header.primary)) { in skl_ipc_process_notification() 354 dev_err(ipc->dev, "FW Underrun %x\n", header.primary); in skl_ipc_process_notification() 359 header.primary); in skl_ipc_process_notification() [all …]
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | ud_header.c | 42 #define STRUCT_FIELD(header, field) \ argument 43 .struct_offset_bytes = offsetof(struct ib_unpacked_ ## header, field), \ 44 .struct_size_bytes = sizeof_field(struct ib_unpacked_ ## header, field), \ 45 .field_name = #header ":" #field 283 __sum16 ib_ud_ip4_csum(struct ib_ud_header *header) in ib_ud_ip4_csum() argument 289 iph.tos = header->ip4.tos; in ib_ud_ip4_csum() 290 iph.tot_len = header->ip4.tot_len; in ib_ud_ip4_csum() 291 iph.id = header->ip4.id; in ib_ud_ip4_csum() 292 iph.frag_off = header->ip4.frag_off; in ib_ud_ip4_csum() 293 iph.ttl = header->ip4.ttl; in ib_ud_ip4_csum() [all …]
|
/openbmc/linux/usr/include/ |
H A D | Makefile | 26 no-header-test += asm/ucontext.h 27 no-header-test += drm/vmwgfx_drm.h 28 no-header-test += linux/am437x-vpfe.h 29 no-header-test += linux/coda.h 30 no-header-test += linux/cyclades.h 31 no-header-test += linux/errqueue.h 32 no-header-test += linux/hdlc/ioctl.h 33 no-header-test += linux/ivtv.h 34 no-header-test += linux/matroxfb.h 35 no-header-test += linux/omap3isp.h [all …]
|
/openbmc/linux/arch/um/drivers/ |
H A D | cow_user.c | 200 struct cow_header_v3 *header; in write_cow_header() local 211 header = cow_malloc(sizeof(*header)); in write_cow_header() 212 if (header == NULL) { in write_cow_header() 217 header->magic = htobe32(COW_MAGIC); in write_cow_header() 218 header->version = htobe32(COW_VERSION); in write_cow_header() 221 if (strlen(backing_file) > sizeof(header->backing_file) - 1) { in write_cow_header() 225 sizeof(header->backing_file) - 1); in write_cow_header() 229 if (absolutize(header->backing_file, sizeof(header->backing_file), in write_cow_header() 233 err = os_file_modtime(header->backing_file, &modtime); in write_cow_header() 236 "request failed, err = %d\n", header->backing_file, in write_cow_header() [all …]
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | err_common.c | 89 el_process_header_subpacket(struct el_subpacket *header) in el_process_header_subpacket() argument 96 if (header->class != EL_CLASS__HEADER) { in el_process_header_subpacket() 99 header->class, header->type); in el_process_header_subpacket() 103 switch(header->type) { in el_process_header_subpacket() 106 length = header->by_type.sys_err.frame_length; in el_process_header_subpacket() 108 header->by_type.sys_err.frame_packet_count; in el_process_header_subpacket() 113 length = header->by_type.sys_event.frame_length; in el_process_header_subpacket() 115 header->by_type.sys_event.frame_packet_count; in el_process_header_subpacket() 116 timestamp = header->by_type.sys_event.timestamp; in el_process_header_subpacket() 120 length = header->by_type.err_halt.frame_length; in el_process_header_subpacket() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-viperboard.c | 121 rmsg->header.cmd = VPRBRD_I2C_CMD_READ; in vprbrd_i2c_read() 123 rmsg->header.addr = cpu_to_le16(start + 0x4000); in vprbrd_i2c_read() 127 rmsg->header.len0 = remain_len; in vprbrd_i2c_read() 128 rmsg->header.len1 = 0x00; in vprbrd_i2c_read() 129 rmsg->header.len2 = 0x00; in vprbrd_i2c_read() 130 rmsg->header.len3 = 0x00; in vprbrd_i2c_read() 131 rmsg->header.len4 = 0x00; in vprbrd_i2c_read() 132 rmsg->header.len5 = 0x00; in vprbrd_i2c_read() 137 rmsg->header.len0 = remain_len - 255; in vprbrd_i2c_read() 138 rmsg->header.len1 = 0xff; in vprbrd_i2c_read() [all …]
|
/openbmc/phosphor-net-ipmid/ |
H A D | message_parsers.cpp | 103 auto header = reinterpret_cast<SessionHeader_t*>(inPacket.data()); in unflatten() local 105 uint32_t sessionID = endian::from_ipmi(header->sessId); in unflatten() 115 message->sessionSeqNum = endian::from_ipmi(header->sessSeqNum); in unflatten() 119 static_cast<ClassOfMsg>(header->base.rmcp.classOfMsg); in unflatten() 123 size_t payloadLen = header->payloadLength; in unflatten() 124 if ((payloadLen == 0) || (inPacket.size() < (sizeof(*header) + payloadLen))) in unflatten() 143 auto header = reinterpret_cast<SessionHeader_t*>(packet.data()); in flatten() local 144 header->base.rmcp.version = parser::RMCP_VERSION; in flatten() 145 header->base.rmcp.reserved = 0x00; in flatten() 146 header->base.rmcp.rmcpSeqNum = parser::RMCP_SEQ; in flatten() [all …]
|
/openbmc/u-boot/board/vscom/baltos/ |
H A D | board.c | 73 static int read_eeprom(BSP_VS_HWPARAM *header) in read_eeprom() argument 85 if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, 1, (uchar *)header, in read_eeprom() 92 if (header->Magic != 0xDEADBEEF) { in read_eeprom() 95 header->Magic); in read_eeprom() 98 header->SystemId = 211; in read_eeprom() 99 header->MAC1[0] = 0x00; in read_eeprom() 100 header->MAC1[1] = 0x00; in read_eeprom() 101 header->MAC1[2] = 0x00; in read_eeprom() 102 header->MAC1[3] = 0x00; in read_eeprom() 103 header->MAC1[4] = 0x00; in read_eeprom() [all …]
|
/openbmc/linux/arch/x86/kernel/acpi/ |
H A D | sleep.c | 61 struct wakeup_header *header = in x86_acpi_suspend_lowlevel() local 64 if (header->signature != WAKEUP_HEADER_SIGNATURE) { in x86_acpi_suspend_lowlevel() 69 header->video_mode = saved_video_mode; in x86_acpi_suspend_lowlevel() 71 header->pmode_behavior = 0; in x86_acpi_suspend_lowlevel() 74 native_store_gdt((struct desc_ptr *)&header->pmode_gdt); in x86_acpi_suspend_lowlevel() 85 &header->pmode_efer_low, in x86_acpi_suspend_lowlevel() 86 &header->pmode_efer_high) && in x86_acpi_suspend_lowlevel() 88 header->pmode_efer_low, in x86_acpi_suspend_lowlevel() 89 header->pmode_efer_high)) in x86_acpi_suspend_lowlevel() 90 header->pmode_behavior |= (1 << WAKEUP_BEHAVIOR_RESTORE_EFER); in x86_acpi_suspend_lowlevel() [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 235 BUG_ON(header->version != 1); in ps3_sys_manager_write() 236 BUG_ON(header->size != 16); in ps3_sys_manager_write() 237 BUG_ON(header->payload_size != 8 && header->payload_size != 16); in ps3_sys_manager_write() 238 BUG_ON(header->service_id > 8); in ps3_sys_manager_write() 240 result = ps3_vuart_write(dev, header, in ps3_sys_manager_write() 244 result = ps3_vuart_write(dev, payload, header->payload_size); in ps3_sys_manager_write() 257 struct ps3_sys_manager_header header; in ps3_sys_manager_send_attr() local 268 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_attr() 269 header.version = 1; in ps3_sys_manager_send_attr() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/ |
H A D | kvm_binary_stats_test.c | 30 struct kvm_stats_header header; in stats_test() local 38 read_stats_header(stats_fd, &header); in stats_test() 40 size_desc = get_stats_descriptor_size(&header); in stats_test() 43 id = malloc(header.name_size); in stats_test() 46 ret = pread(stats_fd, id, header.name_size, sizeof(header)); in stats_test() 47 TEST_ASSERT(ret == header.name_size, in stats_test() 49 header.name_size, ret); in stats_test() 52 TEST_ASSERT(!strncmp(id, "kvm", 3) && strlen(id) < header.name_size, in stats_test() 56 if (header.num_desc == 0) { in stats_test() 65 TEST_ASSERT(header.desc_offset && header.desc_offset >= sizeof(header) && in stats_test() [all …]
|
/openbmc/libpldm/src/oem/ibm/ |
H A D | file_io.c | 42 struct pldm_header_info header = { 0 }; in encode_rw_file_memory_resp() local 43 header.msg_type = PLDM_RESPONSE; in encode_rw_file_memory_resp() 44 header.instance = instance_id; in encode_rw_file_memory_resp() 45 header.pldm_type = PLDM_OEM; in encode_rw_file_memory_resp() 46 header.command = command; in encode_rw_file_memory_resp() 47 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_rw_file_memory_resp() 72 struct pldm_header_info header = { 0 }; in encode_rw_file_memory_req() local 73 header.msg_type = PLDM_REQUEST; in encode_rw_file_memory_req() 74 header.instance = instance_id; in encode_rw_file_memory_req() 75 header.pldm_type = PLDM_OEM; in encode_rw_file_memory_req() [all …]
|
/openbmc/linux/drivers/mtd/parsers/ |
H A D | ar7part.c | 35 struct ar7_bin_rec header; in create_mtd_partitions() local 59 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions() 60 (uint8_t *)&header); in create_mtd_partitions() 61 if (!strncmp((char *)&header, "TIENV0.8", 8)) in create_mtd_partitions() 63 if (header.checksum == LOADER_MAGIC1) in create_mtd_partitions() 65 if (header.checksum == LOADER_MAGIC2) in create_mtd_partitions() 77 switch (header.checksum) { in create_mtd_partitions() 79 while (header.length) { in create_mtd_partitions() 80 offset += sizeof(header) + header.length; in create_mtd_partitions() 81 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions() [all …]
|
/openbmc/bmcweb/redfish-core/include/ |
H A D | registries_selector.hpp | 20 const Header& header; member 27 if (base::header.registryPrefix == registryName) in getRegistryHeaderAndUrlFromPrefix() 29 return HeaderAndUrl{base::header, base::url}; in getRegistryHeaderAndUrlFromPrefix() 31 if (heartbeat_event::header.registryPrefix == registryName) in getRegistryHeaderAndUrlFromPrefix() 33 return HeaderAndUrl{heartbeat_event::header, heartbeat_event::url}; in getRegistryHeaderAndUrlFromPrefix() 35 if (openbmc::header.registryPrefix == registryName) in getRegistryHeaderAndUrlFromPrefix() 37 return HeaderAndUrl{openbmc::header, openbmc::url}; in getRegistryHeaderAndUrlFromPrefix() 39 if (resource_event::header.registryPrefix == registryName) in getRegistryHeaderAndUrlFromPrefix() 41 return HeaderAndUrl{resource_event::header, resource_event::url}; in getRegistryHeaderAndUrlFromPrefix() 43 if (task_event::header.registryPrefix == registryName) in getRegistryHeaderAndUrlFromPrefix() [all …]
|
/openbmc/linux/drivers/media/platform/st/sti/delta/ |
H A D | delta-mjpeg-hdr.c | 15 static char *header_str(struct mjpeg_header *header, in header_str() argument 22 if (!header) in header_str() 31 header->length, in header_str() 32 header->sample_precision, in header_str() 33 header->frame_width, in header_str() 34 header->frame_height, in header_str() 35 header->nb_of_components); in header_str() 42 struct mjpeg_header *header) in delta_mjpeg_read_sof() argument 50 memset(header, 0, sizeof(*header)); in delta_mjpeg_read_sof() 51 header->length = be16_to_cpu(*(__be16 *)(data + offset)); in delta_mjpeg_read_sof() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/pxp/ |
H A D | intel_pxp_gsccs.c | 61 struct intel_gsc_mtl_header *header = exec_res->pkt_vaddr; in gsccs_send_message() local 70 max_msg_size = PXP43_MAX_HECI_INOUT_SIZE - sizeof(*header); in gsccs_send_message() 82 memset(header, 0, sizeof(*header)); in gsccs_send_message() 83 intel_gsc_uc_heci_cmd_emit_mtl_header(header, HECI_MEADDRESS_PXP, in gsccs_send_message() 84 msg_in_size + sizeof(*header), in gsccs_send_message() 89 header->flags |= GSC_INFLAG_MSG_CLEANUP; in gsccs_send_message() 92 header->gsc_message_handle = *gsc_msg_handle_retry; in gsccs_send_message() 96 memcpy(exec_res->pkt_vaddr + sizeof(*header), msg_in, msg_in_size); in gsccs_send_message() 99 pkt.size_in = header->message_size; in gsccs_send_message() 101 pkt.size_out = msg_out_size_max + sizeof(*header); in gsccs_send_message() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_huc_fw.c | 18 struct intel_gsc_mtl_header header; member 23 struct intel_gsc_mtl_header header; member 52 intel_gsc_uc_heci_cmd_emit_mtl_header(&msg_in->header, in intel_huc_fw_auth_via_gsccs() 56 msg_in->huc_in.header.api_version = PXP_APIVER(4, 3); in intel_huc_fw_auth_via_gsccs() 57 msg_in->huc_in.header.command_id = PXP43_CMDID_NEW_HUC_AUTH; in intel_huc_fw_auth_via_gsccs() 58 msg_in->huc_in.header.status = 0; in intel_huc_fw_auth_via_gsccs() 59 msg_in->huc_in.header.buffer_len = sizeof(msg_in->huc_in) - in intel_huc_fw_auth_via_gsccs() 60 sizeof(msg_in->huc_in.header); in intel_huc_fw_auth_via_gsccs() 74 if (msg_out->header.flags & GSC_OUTFLAG_MSG_PENDING) { in intel_huc_fw_auth_via_gsccs() 75 msg_in->header.gsc_message_handle = msg_out->header.gsc_message_handle; in intel_huc_fw_auth_via_gsccs() [all …]
|
/openbmc/libpldm/src/dsp/ |
H A D | bios.c | 16 struct pldm_header_info header = { 0 }; in encode_get_date_time_req() local 17 header.msg_type = PLDM_REQUEST; in encode_get_date_time_req() 18 header.instance = instance_id; in encode_get_date_time_req() 19 header.pldm_type = PLDM_BIOS; in encode_get_date_time_req() 20 header.command = PLDM_GET_DATE_TIME; in encode_get_date_time_req() 21 return pack_pldm_header(&header, &(msg->hdr)); in encode_get_date_time_req() 34 struct pldm_header_info header = { 0 }; in encode_get_date_time_resp() local 35 header.msg_type = PLDM_RESPONSE; in encode_get_date_time_resp() 36 header.instance = instance_id; in encode_get_date_time_resp() 37 header.pldm_type = PLDM_BIOS; in encode_get_date_time_resp() [all …]
|
H A D | base.c | 133 struct pldm_header_info header = { 0 }; in encode_get_types_req() local 134 header.instance = instance_id; in encode_get_types_req() 135 header.msg_type = PLDM_REQUEST; in encode_get_types_req() 136 header.command = PLDM_GET_PLDM_TYPES; in encode_get_types_req() 138 return pack_pldm_header(&header, &(msg->hdr)); in encode_get_types_req() 149 struct pldm_header_info header = { 0 }; in encode_get_commands_req() local 150 header.instance = instance_id; in encode_get_commands_req() 151 header.msg_type = PLDM_REQUEST; in encode_get_commands_req() 152 header.command = PLDM_GET_PLDM_COMMANDS; in encode_get_commands_req() 154 uint8_t rc = pack_pldm_header(&header, &(msg->hdr)); in encode_get_commands_req() [all …]
|
/openbmc/linux/net/tipc/ |
H A D | trace.h | 138 TP_PROTO(struct sk_buff *skb, bool more, const char *header), 140 TP_ARGS(skb, more, header), 143 __string(header, header) 148 __assign_str(header, header); 152 TP_printk("%s\n%s", __get_str(header), __get_str(buf)) 157 TP_PROTO(struct sk_buff *skb, bool more, const char *header), \ 158 TP_ARGS(skb, more, header)) 165 TP_PROTO(struct sk_buff_head *list, bool more, const char *header), 167 TP_ARGS(list, more, header), 170 __string(header, header) [all …]
|
/openbmc/linux/drivers/net/wireless/ath/wcn36xx/ |
H A D | hal.h | 964 struct wcn36xx_hal_msg_header header; member 990 struct wcn36xx_hal_msg_header header; member 1001 struct wcn36xx_hal_msg_header header; member 1006 struct wcn36xx_hal_msg_header header; member 1017 struct wcn36xx_hal_msg_header header; member 1033 struct wcn36xx_hal_msg_header header; member 1105 struct wcn36xx_hal_msg_header header; member 1136 struct wcn36xx_hal_msg_header header; member 1174 struct wcn36xx_hal_msg_header header; member 1182 struct wcn36xx_hal_msg_header header; member [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | processor_core.c | 36 container_of(entry, struct acpi_madt_local_apic, header); in map_lapic_id() 52 container_of(entry, struct acpi_madt_local_x2apic, header); in map_x2apic_id() 69 container_of(entry, struct acpi_madt_local_sapic, header); in map_lsapic_id() 91 container_of(entry, struct acpi_madt_generic_interrupt, header); in map_gicc_mpidr() 117 container_of(entry, struct acpi_madt_rintc, header); in map_rintc_hartid() 142 container_of(entry, struct acpi_madt_core_pic, header); in map_core_pic_id() 169 madt_end = entry + madt->header.length; in map_madt_entry() 175 struct acpi_subtable_header *header = in map_madt_entry() local 177 if (header->type == ACPI_MADT_TYPE_LOCAL_APIC) { in map_madt_entry() 178 if (!map_lapic_id(header, acpi_id, &phys_id)) in map_madt_entry() [all …]
|