/linux/drivers/firewire/ |
H A D | packet-header-definitions.h | 37 static inline unsigned int async_header_get_destination(const u32 header[ASYNC_HEADER_QUADLET_COUNT… in async_header_get_destination() 39 return (header[0] & ASYNC_HEADER_Q0_DESTINATION_MASK) >> ASYNC_HEADER_Q0_DESTINATION_SHIFT; in async_header_get_destination() 42 static inline unsigned int async_header_get_tlabel(const u32 header[ASYNC_HEADER_QUADLET_COUNT]) in async_header_get_tlabel() 44 return (header[0] & ASYNC_HEADER_Q0_TLABEL_MASK) >> ASYNC_HEADER_Q0_TLABEL_SHIFT; in async_header_get_tlabel() 47 static inline unsigned int async_header_get_retry(const u32 header[ASYNC_HEADER_QUADLET_COUNT]) in async_header_get_retry() 49 return (header[0] & ASYNC_HEADER_Q0_RETRY_MASK) >> ASYNC_HEADER_Q0_RETRY_SHIFT; in async_header_get_retry() 52 static inline unsigned int async_header_get_tcode(const u32 header[ASYNC_HEADER_QUADLET_COUNT]) in async_header_get_tcode() 54 return (header[0] & ASYNC_HEADER_Q0_TCODE_MASK) >> ASYNC_HEADER_Q0_TCODE_SHIFT; in async_header_get_tcode() 57 static inline unsigned int async_header_get_priority(const u32 header[ASYNC_HEADER_QUADLET_COUNT]) in async_header_get_priority() 59 return (header[0] & ASYNC_HEADER_Q0_PRIORITY_MASK) >> ASYNC_HEADER_Q0_PRIORITY_SHIFT; in async_header_get_priority() [all …]
|
H A D | packet-serdes-test.c | 15 static void serialize_async_header_common(u32 header[ASYNC_HEADER_QUADLET_COUNT], in serialize_async_header_common() 20 async_header_set_destination(header, dst_id); in serialize_async_header_common() 21 async_header_set_tlabel(header, tlabel); in serialize_async_header_common() 22 async_header_set_retry(header, retry); in serialize_async_header_common() 23 async_header_set_tcode(header, tcode); in serialize_async_header_common() 24 async_header_set_priority(header, priority); in serialize_async_header_common() 25 async_header_set_source(header, src_id); in serialize_async_header_common() 28 static void serialize_async_header_request(u32 header[ASYNC_HEADER_QUADLET_COUNT], in serialize_async_header_request() 33 serialize_async_header_common(header, dst_id, tlabel, retry, tcode, priority, src_id); in serialize_async_header_request() 34 async_header_set_offset(header, offset); in serialize_async_header_request() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/linux/drivers/gpu/drm/i915/pxp/ |
H A D | intel_pxp_gsccs.c | 62 struct intel_gsc_mtl_header *header = exec_res->pkt_vaddr; in gsccs_send_message() local 71 max_msg_size = PXP43_MAX_HECI_INOUT_SIZE - sizeof(*header); in gsccs_send_message() 83 memset(header, 0, sizeof(*header)); in gsccs_send_message() 84 intel_gsc_uc_heci_cmd_emit_mtl_header(header, HECI_MEADDRESS_PXP, in gsccs_send_message() 85 msg_in_size + sizeof(*header), in gsccs_send_message() 90 header->flags |= GSC_INFLAG_MSG_CLEANUP; in gsccs_send_message() 93 header->gsc_message_handle = *gsc_msg_handle_retry; in gsccs_send_message() 97 memcpy(exec_res->pkt_vaddr + sizeof(*header), msg_in, msg_in_size); in gsccs_send_message() 100 pkt.size_in = header->message_size; in gsccs_send_message() 102 pkt.size_out = msg_out_size_max + sizeof(*header); in gsccs_send_message() [all …]
|
/linux/tools/testing/selftests/kvm/ |
H A D | kvm_binary_stats_test.c | 28 struct kvm_stats_header header; in stats_test() local 36 read_stats_header(stats_fd, &header); in stats_test() 38 size_desc = get_stats_descriptor_size(&header); in stats_test() 41 id = malloc(header.name_size); in stats_test() 44 ret = pread(stats_fd, id, header.name_size, sizeof(header)); in stats_test() 45 TEST_ASSERT(ret == header.name_size, in stats_test() 47 header.name_size, ret); in stats_test() 50 TEST_ASSERT(!strncmp(id, "kvm", 3) && strlen(id) < header.name_size, in stats_test() 54 if (header.num_desc == 0) { in stats_test() 63 TEST_ASSERT(header.desc_offset && header.desc_offset >= sizeof(header) && in stats_test() [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/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); 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), [all...] |
/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() 118 container_of(entry, struct acpi_madt_rintc, header); in map_rintc_hartid() 143 container_of(entry, struct acpi_madt_core_pic, header); in map_core_pic_id() 170 madt_end = entry + madt->header.length; in map_madt_entry() 176 struct acpi_subtable_header *header = in map_madt_entry() local 178 if (header->type == ACPI_MADT_TYPE_LOCAL_APIC) { in map_madt_entry() 179 if (!map_lapic_id(header, acpi_id, &phys_id)) in map_madt_entry() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_hdcp_gsc_message.c | 33 session_init_in.header.api_version = HDCP_API_VERSION; in intel_hdcp_gsc_initiate_session() 34 session_init_in.header.command_id = WIRED_INITIATE_HDCP2_SESSION; in intel_hdcp_gsc_initiate_session() 35 session_init_in.header.status = FW_HDCP_STATUS_SUCCESS; in intel_hdcp_gsc_initiate_session() 36 session_init_in.header.buffer_len = in intel_hdcp_gsc_initiate_session() 53 if (session_init_out.header.status != FW_HDCP_STATUS_SUCCESS) { in intel_hdcp_gsc_initiate_session() 56 session_init_out.header.status); in intel_hdcp_gsc_initiate_session() 92 verify_rxcert_in.header.api_version = HDCP_API_VERSION; in intel_hdcp_gsc_verify_receiver_cert_prepare_km() 93 verify_rxcert_in.header.command_id = WIRED_VERIFY_RECEIVER_CERT; in intel_hdcp_gsc_verify_receiver_cert_prepare_km() 94 verify_rxcert_in.header.status = FW_HDCP_STATUS_SUCCESS; in intel_hdcp_gsc_verify_receiver_cert_prepare_km() 95 verify_rxcert_in.header.buffer_len = in intel_hdcp_gsc_verify_receiver_cert_prepare_km() [all …]
|
/linux/tools/lib/perf/include/perf/ |
H A D | event.h | 11 #define event_contains(obj, mem) ((obj).header.size > offsetof(typeof(obj), mem)) 14 struct perf_event_header header; member 23 struct perf_event_header header; member 48 struct perf_event_header header; member 54 struct perf_event_header header; member 61 struct perf_event_header header; member 68 struct perf_event_header header; member 76 struct perf_event_header header; member 90 struct perf_event_header header; member 100 struct perf_event_header header; member [all …]
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_cmdbuf.c | 235 static void vmw_cmdbuf_header_inline_free(struct vmw_cmdbuf_header *header) in vmw_cmdbuf_header_inline_free() argument 239 if (WARN_ON_ONCE(!header->inline_space)) in vmw_cmdbuf_header_inline_free() 242 dheader = container_of(header->cb_header, struct vmw_cmdbuf_dheader, in vmw_cmdbuf_header_inline_free() 244 dma_pool_free(header->man->dheaders, dheader, header->handle); in vmw_cmdbuf_header_inline_free() 245 kfree(header); in vmw_cmdbuf_header_inline_free() 256 static void __vmw_cmdbuf_header_free(struct vmw_cmdbuf_header *header) in __vmw_cmdbuf_header_free() argument 258 struct vmw_cmdbuf_man *man = header->man; in __vmw_cmdbuf_header_free() 262 if (header->inline_space) { in __vmw_cmdbuf_header_free() 263 vmw_cmdbuf_header_inline_free(header); in __vmw_cmdbuf_header_free() 267 drm_mm_remove_node(&header->node); in __vmw_cmdbuf_header_free() [all …]
|
/linux/sound/isa/wavefront/ |
H A D | wavefront_synth.c | 783 wavefront_send_patch (snd_wavefront_t *dev, wavefront_patch_info *header) in wavefront_send_patch() argument 790 header->number); in wavefront_send_patch() 792 if (header->number >= ARRAY_SIZE(dev->patch_status)) in wavefront_send_patch() 795 dev->patch_status[header->number] |= WF_SLOT_FILLED; in wavefront_send_patch() 797 bptr = munge_int32 (header->number, buf, 2); in wavefront_send_patch() 798 munge_buf ((unsigned char *)&header->hdr.p, bptr, WF_PATCH_BYTES); in wavefront_send_patch() 809 wavefront_send_program (snd_wavefront_t *dev, wavefront_patch_info *header) in wavefront_send_program() argument 816 header->number); in wavefront_send_program() 818 if (header->number >= ARRAY_SIZE(dev->prog_status)) in wavefront_send_program() 821 dev->prog_status[header->number] = WF_SLOT_USED; in wavefront_send_program() [all …]
|
/linux/drivers/misc/mei/hdcp/ |
H A D | mei_hdcp.c | 54 session_init_in.header.api_version = HDCP_API_VERSION; in mei_hdcp_initiate_session() 55 session_init_in.header.command_id = WIRED_INITIATE_HDCP2_SESSION; in mei_hdcp_initiate_session() 56 session_init_in.header.status = FW_HDCP_STATUS_SUCCESS; in mei_hdcp_initiate_session() 57 session_init_in.header.buffer_len = in mei_hdcp_initiate_session() 79 if (session_init_out.header.status != FW_HDCP_STATUS_SUCCESS) { in mei_hdcp_initiate_session() 82 session_init_out.header.status); in mei_hdcp_initiate_session() 124 verify_rxcert_in.header.api_version = HDCP_API_VERSION; in mei_hdcp_verify_receiver_cert_prepare_km() 125 verify_rxcert_in.header.command_id = WIRED_VERIFY_RECEIVER_CERT; in mei_hdcp_verify_receiver_cert_prepare_km() 126 verify_rxcert_in.header.status = FW_HDCP_STATUS_SUCCESS; in mei_hdcp_verify_receiver_cert_prepare_km() 127 verify_rxcert_in.header.buffer_len = in mei_hdcp_verify_receiver_cert_prepare_km() [all …]
|
/linux/sound/soc/intel/avs/ |
H A D | trace.h | 42 trace_avs_ipc_request_msg((msg)->header, fwregs); \ 48 trace_avs_ipc_reply_msg((msg)->header, fwregs); \ 54 trace_avs_ipc_notify_msg((msg)->header, fwregs); \ 61 TP_PROTO(u64 header, u64 fwregs), 63 TP_ARGS(header, fwregs), 66 __field(u64, header) 71 __entry->header = header; 77 lower_32_bits(__entry->header), upper_32_bits(__entry->header), [all...] |
/linux/drivers/platform/x86/intel/ |
H A D | vsec.c | 148 static int intel_vsec_add_dev(struct pci_dev *pdev, struct intel_vsec_header *header, in intel_vsec_add_dev() argument 164 if (!intel_vsec_supported(header->id, info->caps)) in intel_vsec_add_dev() 167 if (!header->num_entries) { in intel_vsec_add_dev() 168 dev_dbg(&pdev->dev, "Invalid 0 entry count for header id %d\n", header->id); in intel_vsec_add_dev() 172 if (!header->entry_size) { in intel_vsec_add_dev() 173 dev_dbg(&pdev->dev, "Invalid 0 entry size for header id %d\n", header->id); in intel_vsec_add_dev() 181 res = kcalloc(header->num_entries, sizeof(*res), GFP_KERNEL); in intel_vsec_add_dev() 186 header->offset >>= TABLE_OFFSET_SHIFT; in intel_vsec_add_dev() 191 base_addr = pdev->resource[header->tbir].start; in intel_vsec_add_dev() 198 for (i = 0, tmp = res; i < header->num_entries; i++, tmp++) { in intel_vsec_add_dev() [all …]
|
/linux/drivers/hwmon/occ/ |
H A D | sysfs.c | 50 struct occ_poll_response_header *header; in occ_sysfs_show() local 58 header = (struct occ_poll_response_header *)occ->resp.data; in occ_sysfs_show() 62 val = !!(header->status & OCC_STAT_MASTER); in occ_sysfs_show() 68 val = !!(header->ext_status & OCC_EXT_STAT_DVFS_OT); in occ_sysfs_show() 71 val = !!(header->ext_status & OCC_EXT_STAT_DVFS_POWER); in occ_sysfs_show() 74 val = !!(header->ext_status & in occ_sysfs_show() 78 val = !!(header->ext_status & OCC_EXT_STAT_QUICK_DROP); in occ_sysfs_show() 81 val = header->occ_state; in occ_sysfs_show() 84 if (header->status & OCC_STAT_MASTER) in occ_sysfs_show() 85 val = hweight8(header->occs_present); in occ_sysfs_show() [all …]
|