/Linux-v4.19/drivers/infiniband/core/ |
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 ((struct ib_unpacked_ ## header *) 0)->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-v4.19/sound/soc/intel/skylake/ |
D | skl-sst-ipc.c | 304 struct skl_ipc_header *header = (struct skl_ipc_header *)(&msg->header); in skl_ipc_tx_msg() local 309 header->extension); in skl_ipc_tx_msg() 311 header->primary | SKL_ADSP_REG_HIPCI_BUSY); in skl_ipc_tx_msg() 335 struct skl_ipc_header *header = (struct skl_ipc_header *)(&ipc_header); in skl_ipc_reply_get_msg() local 339 header->primary); in skl_ipc_reply_get_msg() 351 struct skl_ipc_header header) in skl_ipc_process_notification() argument 355 if (IPC_GLB_NOTIFY_MSG_TYPE(header.primary)) { in skl_ipc_process_notification() 356 switch (IPC_GLB_NOTIFY_TYPE(header.primary)) { in skl_ipc_process_notification() 359 dev_err(ipc->dev, "FW Underrun %x\n", header.primary); in skl_ipc_process_notification() 364 header.primary); in skl_ipc_process_notification() [all …]
|
/Linux-v4.19/arch/um/drivers/ |
D | cow_user.c | 199 struct cow_header_v3 *header; in write_cow_header() local 210 header = cow_malloc(sizeof(*header)); in write_cow_header() 211 if (header == NULL) { in write_cow_header() 216 header->magic = htobe32(COW_MAGIC); in write_cow_header() 217 header->version = htobe32(COW_VERSION); in write_cow_header() 220 if (strlen(backing_file) > sizeof(header->backing_file) - 1) { in write_cow_header() 224 sizeof(header->backing_file) - 1); in write_cow_header() 228 if (absolutize(header->backing_file, sizeof(header->backing_file), in write_cow_header() 232 err = os_file_modtime(header->backing_file, &modtime); in write_cow_header() 235 "request failed, err = %d\n", header->backing_file, in write_cow_header() [all …]
|
/Linux-v4.19/arch/alpha/kernel/ |
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-v4.19/arch/x86/kernel/acpi/ |
D | sleep.c | 49 struct wakeup_header *header = in x86_acpi_suspend_lowlevel() local 52 if (header->signature != WAKEUP_HEADER_SIGNATURE) { in x86_acpi_suspend_lowlevel() 57 header->video_mode = saved_video_mode; in x86_acpi_suspend_lowlevel() 59 header->pmode_behavior = 0; in x86_acpi_suspend_lowlevel() 62 native_store_gdt((struct desc_ptr *)&header->pmode_gdt); in x86_acpi_suspend_lowlevel() 73 &header->pmode_efer_low, in x86_acpi_suspend_lowlevel() 74 &header->pmode_efer_high) && in x86_acpi_suspend_lowlevel() 76 header->pmode_efer_low, in x86_acpi_suspend_lowlevel() 77 header->pmode_efer_high)) in x86_acpi_suspend_lowlevel() 78 header->pmode_behavior |= (1 << WAKEUP_BEHAVIOR_RESTORE_EFER); in x86_acpi_suspend_lowlevel() [all …]
|
/Linux-v4.19/drivers/i2c/busses/ |
D | i2c-viperboard.c | 126 rmsg->header.cmd = VPRBRD_I2C_CMD_READ; in vprbrd_i2c_read() 128 rmsg->header.addr = cpu_to_le16(start + 0x4000); in vprbrd_i2c_read() 132 rmsg->header.len0 = remain_len; in vprbrd_i2c_read() 133 rmsg->header.len1 = 0x00; in vprbrd_i2c_read() 134 rmsg->header.len2 = 0x00; in vprbrd_i2c_read() 135 rmsg->header.len3 = 0x00; in vprbrd_i2c_read() 136 rmsg->header.len4 = 0x00; in vprbrd_i2c_read() 137 rmsg->header.len5 = 0x00; in vprbrd_i2c_read() 142 rmsg->header.len0 = remain_len - 255; in vprbrd_i2c_read() 143 rmsg->header.len1 = 0xff; in vprbrd_i2c_read() [all …]
|
/Linux-v4.19/drivers/mtd/ |
D | ar7part.c | 49 struct ar7_bin_rec header; in create_mtd_partitions() local 73 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions() 74 (uint8_t *)&header); in create_mtd_partitions() 75 if (!strncmp((char *)&header, "TIENV0.8", 8)) in create_mtd_partitions() 77 if (header.checksum == LOADER_MAGIC1) in create_mtd_partitions() 79 if (header.checksum == LOADER_MAGIC2) in create_mtd_partitions() 91 switch (header.checksum) { in create_mtd_partitions() 93 while (header.length) { in create_mtd_partitions() 94 offset += sizeof(header) + header.length; in create_mtd_partitions() 95 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions() [all …]
|
D | ftl.c | 130 erase_unit_header_t header; member 153 erase_unit_header_t header; in scan_header() local 157 part->header.FormattedSize = 0; in scan_header() 161 (offset + sizeof(header)) < max_offset; in scan_header() 164 err = mtd_read(part->mbd.mtd, offset, sizeof(header), &ret, in scan_header() 165 (unsigned char *)&header); in scan_header() 170 if (strcmp(header.DataOrgTuple+3, "FTL100") == 0) break; in scan_header() 177 if (header.BlockSize != 9 || in scan_header() 178 (header.EraseUnitSize < 10) || (header.EraseUnitSize > 31) || in scan_header() 179 (header.NumTransferUnits >= le16_to_cpu(header.NumEraseUnits))) { in scan_header() [all …]
|
/Linux-v4.19/drivers/media/platform/sti/delta/ |
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-v4.19/drivers/ps3/ |
D | ps3-sys-manager.c | 243 const struct ps3_sys_manager_header *header, const void *payload) in ps3_sys_manager_write() argument 247 BUG_ON(header->version != 1); in ps3_sys_manager_write() 248 BUG_ON(header->size != 16); in ps3_sys_manager_write() 249 BUG_ON(header->payload_size != 8 && header->payload_size != 16); in ps3_sys_manager_write() 250 BUG_ON(header->service_id > 8); in ps3_sys_manager_write() 252 result = ps3_vuart_write(dev, header, in ps3_sys_manager_write() 256 result = ps3_vuart_write(dev, payload, header->payload_size); in ps3_sys_manager_write() 269 struct ps3_sys_manager_header header; in ps3_sys_manager_send_attr() local 280 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_attr() 281 header.version = 1; in ps3_sys_manager_send_attr() [all …]
|
/Linux-v4.19/drivers/net/wireless/ath/wcn36xx/ |
D | hal.h | 832 struct wcn36xx_hal_msg_header header; member 858 struct wcn36xx_hal_msg_header header; member 869 struct wcn36xx_hal_msg_header header; member 874 struct wcn36xx_hal_msg_header header; member 885 struct wcn36xx_hal_msg_header header; member 901 struct wcn36xx_hal_msg_header header; member 973 struct wcn36xx_hal_msg_header header; member 1004 struct wcn36xx_hal_msg_header header; member 1042 struct wcn36xx_hal_msg_header header; member 1050 struct wcn36xx_hal_msg_header header; member [all …]
|
/Linux-v4.19/drivers/fmc/ |
D | fru-parse.c | 14 __fru_get_board_tl(struct fru_common_header *header, int nr) in __fru_get_board_tl() argument 19 bia = fru_get_board_area(header); in __fru_get_board_tl() 30 static char *__fru_alloc_get_tl(struct fru_common_header *header, int nr) in __fru_alloc_get_tl() argument 35 tl = __fru_get_board_tl(header, nr); in __fru_alloc_get_tl() 46 int fru_header_cksum_ok(struct fru_common_header *header) in fru_header_cksum_ok() argument 48 uint8_t *ptr = (void *)header; in fru_header_cksum_ok() 51 for (i = sum = 0; i < sizeof(*header); i++) in fru_header_cksum_ok() 66 char *fru_get_board_manufacturer(struct fru_common_header *header) in fru_get_board_manufacturer() argument 68 return __fru_alloc_get_tl(header, 0); in fru_get_board_manufacturer() 70 char *fru_get_product_name(struct fru_common_header *header) in fru_get_product_name() argument [all …]
|
/Linux-v4.19/sound/isa/wavefront/ |
D | wavefront_synth.c | 780 wavefront_send_patch (snd_wavefront_t *dev, wavefront_patch_info *header) in wavefront_send_patch() argument 787 header->number); in wavefront_send_patch() 789 if (header->number >= ARRAY_SIZE(dev->patch_status)) in wavefront_send_patch() 792 dev->patch_status[header->number] |= WF_SLOT_FILLED; in wavefront_send_patch() 795 bptr = munge_int32 (header->number, buf, 2); in wavefront_send_patch() 796 munge_buf ((unsigned char *)&header->hdr.p, bptr, WF_PATCH_BYTES); in wavefront_send_patch() 807 wavefront_send_program (snd_wavefront_t *dev, wavefront_patch_info *header) in wavefront_send_program() argument 814 header->number); in wavefront_send_program() 816 if (header->number >= ARRAY_SIZE(dev->prog_status)) in wavefront_send_program() 819 dev->prog_status[header->number] = WF_SLOT_USED; in wavefront_send_program() [all …]
|
/Linux-v4.19/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cmdbuf.c | 232 static void vmw_cmdbuf_header_inline_free(struct vmw_cmdbuf_header *header) in vmw_cmdbuf_header_inline_free() argument 236 if (WARN_ON_ONCE(!header->inline_space)) in vmw_cmdbuf_header_inline_free() 239 dheader = container_of(header->cb_header, struct vmw_cmdbuf_dheader, in vmw_cmdbuf_header_inline_free() 241 dma_pool_free(header->man->dheaders, dheader, header->handle); in vmw_cmdbuf_header_inline_free() 242 kfree(header); in vmw_cmdbuf_header_inline_free() 253 static void __vmw_cmdbuf_header_free(struct vmw_cmdbuf_header *header) in __vmw_cmdbuf_header_free() argument 255 struct vmw_cmdbuf_man *man = header->man; in __vmw_cmdbuf_header_free() 259 if (header->inline_space) { in __vmw_cmdbuf_header_free() 260 vmw_cmdbuf_header_inline_free(header); in __vmw_cmdbuf_header_free() 264 drm_mm_remove_node(&header->node); in __vmw_cmdbuf_header_free() [all …]
|
D | vmwgfx_execbuf.c | 522 SVGA3dCmdHeader *header) in vmw_cmd_invalid() argument 529 SVGA3dCmdHeader *header) in vmw_cmd_ok() argument 826 SVGA3dCmdHeader header; in vmw_rebind_all_dx_query() member 843 cmd->header.id = SVGA_3D_CMD_DX_BIND_ALL_QUERY; in vmw_rebind_all_dx_query() 844 cmd->header.size = sizeof(cmd->body); in vmw_rebind_all_dx_query() 962 SVGA3dCmdHeader *header) in vmw_cmd_cid_check() argument 965 SVGA3dCmdHeader header; in vmw_cmd_cid_check() member 969 cmd = container_of(header, struct vmw_cid_cmd, header); in vmw_cmd_cid_check() 976 SVGA3dCmdHeader *header) in vmw_cmd_set_render_target_check() argument 979 SVGA3dCmdHeader header; in vmw_cmd_set_render_target_check() member [all …]
|
/Linux-v4.19/drivers/thunderbolt/ |
D | cap.c | 48 struct tb_cap_any header; in tb_port_find_cap() local 51 ret = tb_port_read(port, &header, TB_CFG_PORT, offset, 1); in tb_port_find_cap() 55 if (header.basic.cap == cap) in tb_port_find_cap() 58 offset = header.basic.next; in tb_port_find_cap() 69 struct tb_cap_any header; in tb_switch_find_cap() local 72 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 1); in tb_switch_find_cap() 76 if (header.basic.cap == cap) in tb_switch_find_cap() 79 offset = header.basic.next; in tb_switch_find_cap() 97 struct tb_cap_any header; in tb_switch_find_vse_cap() local 107 ret = tb_sw_read(sw, &header, TB_CFG_SWITCH, offset, 2); in tb_switch_find_vse_cap() [all …]
|
/Linux-v4.19/drivers/acpi/ |
D | processor_core.c | 38 container_of(entry, struct acpi_madt_local_apic, header); in map_lapic_id() 54 container_of(entry, struct acpi_madt_local_x2apic, header); in map_x2apic_id() 71 container_of(entry, struct acpi_madt_local_sapic, header); in map_lsapic_id() 93 container_of(entry, struct acpi_madt_generic_interrupt, header); in map_gicc_mpidr() 121 madt_end = entry + madt->header.length; in map_madt_entry() 127 struct acpi_subtable_header *header = in map_madt_entry() local 129 if (header->type == ACPI_MADT_TYPE_LOCAL_APIC) { in map_madt_entry() 130 if (!map_lapic_id(header, acpi_id, &phys_id)) in map_madt_entry() 132 } else if (header->type == ACPI_MADT_TYPE_LOCAL_X2APIC) { in map_madt_entry() 133 if (!map_x2apic_id(header, type, acpi_id, &phys_id)) in map_madt_entry() [all …]
|
/Linux-v4.19/drivers/gpu/drm/msm/adreno/ |
D | a6xx_hfi.c | 24 struct a6xx_hfi_queue_header *header = queue->header; in a6xx_hfi_queue_read() local 25 u32 i, hdr, index = header->read_index; in a6xx_hfi_queue_read() 27 if (header->read_index == header->write_index) { in a6xx_hfi_queue_read() 28 header->rx_request = 1; in a6xx_hfi_queue_read() 47 index = (index + 1) % header->size; in a6xx_hfi_queue_read() 50 header->read_index = index; in a6xx_hfi_queue_read() 57 struct a6xx_hfi_queue_header *header = queue->header; in a6xx_hfi_queue_write() local 58 u32 i, space, index = header->write_index; in a6xx_hfi_queue_write() 62 space = CIRC_SPACE(header->write_index, header->read_index, in a6xx_hfi_queue_write() 63 header->size); in a6xx_hfi_queue_write() [all …]
|
/Linux-v4.19/drivers/firmware/broadcom/ |
D | bcm47xx_nvram.c | 43 struct nvram_header __iomem *header; in find_nvram_size() local 47 header = (struct nvram_header *)(end - nvram_sizes[i]); in find_nvram_size() 48 if (header->magic == NVRAM_MAGIC) in find_nvram_size() 58 struct nvram_header __iomem *header; in nvram_find_and_copy() local 73 header = (struct nvram_header *)(iobase + off - size); in nvram_find_and_copy() 80 header = (struct nvram_header *)(iobase + 4096); in nvram_find_and_copy() 81 if (header->magic == NVRAM_MAGIC) { in nvram_find_and_copy() 86 header = (struct nvram_header *)(iobase + 1024); in nvram_find_and_copy() 87 if (header->magic == NVRAM_MAGIC) { in nvram_find_and_copy() 96 __ioread32_copy(nvram_buf, header, sizeof(*header) / 4); in nvram_find_and_copy() [all …]
|
/Linux-v4.19/scripts/ |
D | headerdep.pl | 91 my $header = pop @queue; 92 next if exists $deps{$header}; 94 $deps{$header} = [] unless exists $deps{$header}; 96 my $path = search($header); 107 push @{$deps{$header}}, [$i + 1, $dep]; 130 for my $header (reverse @$cycle) { 133 $header->[1], $header->[0], 134 $header->[1] eq $last->[1] ? ' <-- here' : ''; 177 for my $header (keys %deps) { 179 mangle($header), $header; [all …]
|
/Linux-v4.19/drivers/net/wireless/marvell/libertas/ |
D | types.h | 18 struct ieee_ie_header header; member 28 struct ieee_ie_header header; member 39 struct ieee_ie_header header; member 48 struct ieee_ie_header header; member 107 struct mrvl_ie_header header; member 112 struct mrvl_ie_header header; member 117 struct mrvl_ie_header header; member 122 struct mrvl_ie_header header; member 148 struct mrvl_ie_header header; member 153 struct mrvl_ie_header header; member [all …]
|
/Linux-v4.19/drivers/misc/mic/scif/ |
D | scif_rb.c | 48 static void memcpy_torb(struct scif_rb *rb, void *header, in memcpy_torb() argument 53 if (header + size >= rb->rb_base + rb->size) { in memcpy_torb() 55 size1 = (u32)(rb->rb_base + rb->size - header); in memcpy_torb() 57 memcpy_toio((void __iomem __force *)header, msg, size1); in memcpy_torb() 61 memcpy_toio((void __iomem __force *)header, msg, size); in memcpy_torb() 66 static void memcpy_fromrb(struct scif_rb *rb, void *header, in memcpy_fromrb() argument 71 if (header + size >= rb->rb_base + rb->size) { in memcpy_fromrb() 73 size1 = (u32)(rb->rb_base + rb->size - header); in memcpy_fromrb() 75 memcpy_fromio(msg, (void __iomem __force *)header, size1); in memcpy_fromrb() 79 memcpy_fromio(msg, (void __iomem __force *)header, size); in memcpy_fromrb() [all …]
|
/Linux-v4.19/sound/pci/asihpi/ |
D | hpidspcd.c | 39 struct code_header header; in hpi_dsp_code_open() local 53 if (firmware->size < sizeof(header)) { in hpi_dsp_code_open() 57 memcpy(&header, firmware->data, sizeof(header)); in hpi_dsp_code_open() 59 if ((header.type != 0x45444F43) || /* "CODE" */ in hpi_dsp_code_open() 60 (header.adapter != adapter) in hpi_dsp_code_open() 61 || (header.size != firmware->size)) { in hpi_dsp_code_open() 64 header.size, firmware->size); in hpi_dsp_code_open() 68 if (HPI_VER_MAJOR(header.version) != HPI_VER_MAJOR(HPI_VER)) { in hpi_dsp_code_open() 72 header.version, HPI_VER); in hpi_dsp_code_open() 76 if (header.version != HPI_VER) { in hpi_dsp_code_open() [all …]
|
/Linux-v4.19/drivers/misc/ibmasm/ |
D | dot_command.c | 34 struct dot_command_header *header = (struct dot_command_header *)message; in ibmasm_receive_message() local 46 switch (header->type) { in ibmasm_receive_message() 71 struct dot_command_header *header; in ibmasm_send_driver_vpd() local 80 header = (struct dot_command_header *)command->buffer; in ibmasm_send_driver_vpd() 81 header->type = sp_write; in ibmasm_send_driver_vpd() 82 header->command_size = 4; in ibmasm_send_driver_vpd() 83 header->data_size = 16; in ibmasm_send_driver_vpd() 84 header->status = 0; in ibmasm_send_driver_vpd() 85 header->reserved = 0; in ibmasm_send_driver_vpd() 93 vpd_data = vpd_command + header->command_size; in ibmasm_send_driver_vpd() [all …]
|
/Linux-v4.19/include/acpi/ |
D | actbl2.h | 75 struct acpi_table_header header; member 254 struct acpi_table_header header; /* Common ACPI table header */ member 305 struct acpi_ivrs_header header; member 368 struct acpi_ivrs_de_header header; member 374 struct acpi_ivrs_de_header header; member 383 struct acpi_ivrs_de_header header; member 394 struct acpi_ivrs_de_header header; member 408 struct acpi_ivrs_header header; member 424 struct acpi_table_header header; /* Common ACPI table header */ member 456 struct acpi_lpit_header header; member [all …]
|