Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/drivers/infiniband/core/
Dud_header.c41 #define STRUCT_FIELD(header, field) \ argument
42 .struct_offset_bytes = offsetof(struct ib_unpacked_ ## header, field), \
43 .struct_size_bytes = sizeof ((struct ib_unpacked_ ## header *) 0)->field, \
44 .field_name = #header ":" #field
232 struct ib_ud_header *header) in ib_ud_header_init() argument
234 memset(header, 0, sizeof *header); in ib_ud_header_init()
239 header->lrh.link_version = 0; in ib_ud_header_init()
240 header->lrh.link_next_header = in ib_ud_header_init()
249 header->lrh.packet_length = cpu_to_be16(packet_length); in ib_ud_header_init()
253 header->eth.type = cpu_to_be16(ETH_P_8021Q); in ib_ud_header_init()
[all …]
/drivers/i2c/busses/
Di2c-viperboard.c127 rmsg->header.cmd = VPRBRD_I2C_CMD_READ; in vprbrd_i2c_read()
129 rmsg->header.addr = cpu_to_le16(start + 0x4000); in vprbrd_i2c_read()
133 rmsg->header.len0 = remain_len; in vprbrd_i2c_read()
134 rmsg->header.len1 = 0x00; in vprbrd_i2c_read()
135 rmsg->header.len2 = 0x00; in vprbrd_i2c_read()
136 rmsg->header.len3 = 0x00; in vprbrd_i2c_read()
137 rmsg->header.len4 = 0x00; in vprbrd_i2c_read()
138 rmsg->header.len5 = 0x00; in vprbrd_i2c_read()
143 rmsg->header.len0 = remain_len - 255; in vprbrd_i2c_read()
144 rmsg->header.len1 = 0xff; in vprbrd_i2c_read()
[all …]
/drivers/ps3/
Dps3-sys-manager.c242 const struct ps3_sys_manager_header *header, const void *payload) in ps3_sys_manager_write() argument
246 BUG_ON(header->version != 1); in ps3_sys_manager_write()
247 BUG_ON(header->size != 16); in ps3_sys_manager_write()
248 BUG_ON(header->payload_size != 8 && header->payload_size != 16); in ps3_sys_manager_write()
249 BUG_ON(header->service_id > 8); in ps3_sys_manager_write()
251 result = ps3_vuart_write(dev, header, in ps3_sys_manager_write()
255 result = ps3_vuart_write(dev, payload, header->payload_size); in ps3_sys_manager_write()
268 struct ps3_sys_manager_header header; in ps3_sys_manager_send_attr() local
279 memset(&header, 0, sizeof(header)); in ps3_sys_manager_send_attr()
280 header.version = 1; in ps3_sys_manager_send_attr()
[all …]
/drivers/mtd/
Dar7part.c49 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 …]
Dftl.c131 erase_unit_header_t header; member
160 erase_unit_header_t header; in scan_header() local
164 part->header.FormattedSize = 0; in scan_header()
168 (offset + sizeof(header)) < max_offset; in scan_header()
171 err = mtd_read(part->mbd.mtd, offset, sizeof(header), &ret, in scan_header()
172 (unsigned char *)&header); in scan_header()
177 if (strcmp(header.DataOrgTuple+3, "FTL100") == 0) break; in scan_header()
184 if (header.BlockSize != 9 || in scan_header()
185 (header.EraseUnitSize < 10) || (header.EraseUnitSize > 31) || in scan_header()
186 (header.NumTransferUnits >= le16_to_cpu(header.NumEraseUnits))) { in scan_header()
[all …]
/drivers/gpu/drm/radeon/
Dr300_cmdbuf.c299 header) in r300_emit_carefully_checked_packet0()
307 sz = header.packet0.count; in r300_emit_carefully_checked_packet0()
308 reg = (header.packet0.reghi << 8) | header.packet0.reglo; in r300_emit_carefully_checked_packet0()
351 drm_r300_cmd_header_t header) in r300_emit_packet0() argument
357 sz = header.packet0.count; in r300_emit_packet0()
358 reg = (header.packet0.reghi << 8) | header.packet0.reglo; in r300_emit_packet0()
375 header); in r300_emit_packet0()
394 drm_r300_cmd_header_t header) in r300_emit_vpu() argument
400 sz = header.vpu.count; in r300_emit_vpu()
401 addr = (header.vpu.adrhi << 8) | header.vpu.adrlo; in r300_emit_vpu()
[all …]
/drivers/net/wireless/libertas/
Dtypes.h17 struct ieee_ie_header header; member
27 struct ieee_ie_header header; member
38 struct ieee_ie_header header; member
47 struct ieee_ie_header header; member
106 struct mrvl_ie_header header; member
111 struct mrvl_ie_header header; member
116 struct mrvl_ie_header header; member
121 struct mrvl_ie_header header; member
147 struct mrvl_ie_header header; member
152 struct mrvl_ie_header header; member
[all …]
/drivers/net/wireless/ti/wlcore/
Dacx.h79 struct acx_header header; member
129 struct acx_header header; member
167 struct acx_header header; member
186 struct acx_header header; member
199 struct acx_header header; member
209 struct acx_header header; member
219 struct acx_header header; member
227 struct acx_header header; member
276 struct acx_header header; member
285 struct acx_header header; member
[all …]
/drivers/misc/ibmasm/
Ddot_command.c34 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 …]
/drivers/md/persistent-data/
Ddm-btree.c43 int lo = -1, hi = le32_to_cpu(n->header.nr_entries); in bsearch()
70 uint32_t nr_entries = le32_to_cpu(n->header.nr_entries); in inc_children()
72 if (le32_to_cpu(n->header.flags) & INTERNAL_NODE) in inc_children()
84 uint32_t nr_entries = le32_to_cpu(node->header.nr_entries); in insert_at()
88 index >= le32_to_cpu(node->header.max_entries)) { in insert_at()
98 node->header.nr_entries = cpu_to_le32(nr_entries + 1); in insert_at()
138 n->header.flags = cpu_to_le32(LEAF_NODE); in dm_btree_empty()
139 n->header.nr_entries = cpu_to_le32(0); in dm_btree_empty()
140 n->header.max_entries = cpu_to_le32(max_entries); in dm_btree_empty()
141 n->header.value_size = cpu_to_le32(info->value_type.size); in dm_btree_empty()
[all …]
Ddm-btree-remove.c58 uint32_t nr_entries = le32_to_cpu(n->header.nr_entries); in node_shift()
59 uint32_t value_size = le32_to_cpu(n->header.value_size); in node_shift()
72 BUG_ON(nr_entries + shift > le32_to_cpu(n->header.max_entries)); in node_shift()
84 uint32_t nr_left = le32_to_cpu(left->header.nr_entries); in node_copy()
85 uint32_t value_size = le32_to_cpu(left->header.value_size); in node_copy()
86 BUG_ON(value_size != le32_to_cpu(right->header.value_size)); in node_copy()
90 BUG_ON(nr_left + shift > le32_to_cpu(left->header.max_entries)); in node_copy()
98 BUG_ON(shift > le32_to_cpu(right->header.max_entries)); in node_copy()
113 unsigned nr_entries = le32_to_cpu(n->header.nr_entries); in delete_at()
115 uint32_t value_size = le32_to_cpu(n->header.value_size); in delete_at()
[all …]
/drivers/atm/
Dsolos-pci.c197 struct pkt_hdr *header; in solos_param_show() local
202 skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL); in solos_param_show()
208 header = (void *)skb_put(skb, sizeof(*header)); in solos_param_show()
210 buflen = snprintf((void *)&header[1], buflen - 1, in solos_param_show()
214 header->size = cpu_to_le16(buflen); in solos_param_show()
215 header->vpi = cpu_to_le16(0); in solos_param_show()
216 header->vci = cpu_to_le16(0); in solos_param_show()
217 header->type = cpu_to_le16(PKT_COMMAND); in solos_param_show()
252 struct pkt_hdr *header; in solos_param_store() local
258 skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL); in solos_param_store()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c210 SVGA3dCmdHeader *header) in vmw_cmd_invalid() argument
217 SVGA3dCmdHeader *header) in vmw_cmd_ok() argument
436 SVGA3dCmdHeader *header) in vmw_cmd_cid_check() argument
439 SVGA3dCmdHeader header; in vmw_cmd_cid_check() member
443 cmd = container_of(header, struct vmw_cid_cmd, header); in vmw_cmd_cid_check()
450 SVGA3dCmdHeader *header) in vmw_cmd_set_render_target_check() argument
453 SVGA3dCmdHeader header; in vmw_cmd_set_render_target_check() member
458 ret = vmw_cmd_cid_check(dev_priv, sw_context, header); in vmw_cmd_set_render_target_check()
462 cmd = container_of(header, struct vmw_sid_cmd, header); in vmw_cmd_set_render_target_check()
471 SVGA3dCmdHeader *header) in vmw_cmd_surface_copy_check() argument
[all …]
/drivers/net/wireless/ti/wl1251/
Dacx.h41 struct acx_header header; member
64 struct acx_header header; member
104 struct acx_header header; member
137 struct acx_header header; member
164 struct acx_header header; member
191 struct acx_header header; member
282 struct acx_header header; member
316 struct acx_header header; member
329 struct acx_header header; member
345 struct acx_header header; member
[all …]
/drivers/acpi/
Dnuma.c88 acpi_table_print_srat_entry(struct acpi_subtable_header *header) in acpi_table_print_srat_entry() argument
93 if (!header) in acpi_table_print_srat_entry()
96 switch (header->type) { in acpi_table_print_srat_entry()
102 (struct acpi_srat_cpu_affinity *)header; in acpi_table_print_srat_entry()
117 (struct acpi_srat_mem_affinity *)header; in acpi_table_print_srat_entry()
137 (struct acpi_srat_x2apic_cpu_affinity *)header; in acpi_table_print_srat_entry()
151 header->type); in acpi_table_print_srat_entry()
207 acpi_parse_x2apic_affinity(struct acpi_subtable_header *header, in acpi_parse_x2apic_affinity() argument
212 processor_affinity = (struct acpi_srat_x2apic_cpu_affinity *)header; in acpi_parse_x2apic_affinity()
216 acpi_table_print_srat_entry(header); in acpi_parse_x2apic_affinity()
[all …]
Dtables.c47 void acpi_table_print_madt_entry(struct acpi_subtable_header *header) in acpi_table_print_madt_entry() argument
49 if (!header) in acpi_table_print_madt_entry()
52 switch (header->type) { in acpi_table_print_madt_entry()
57 (struct acpi_madt_local_apic *)header; in acpi_table_print_madt_entry()
68 (struct acpi_madt_local_x2apic *)header; in acpi_table_print_madt_entry()
80 (struct acpi_madt_io_apic *)header; in acpi_table_print_madt_entry()
90 (struct acpi_madt_interrupt_override *)header; in acpi_table_print_madt_entry()
109 (struct acpi_madt_nmi_source *)header; in acpi_table_print_madt_entry()
121 (struct acpi_madt_local_apic_nmi *)header; in acpi_table_print_madt_entry()
135 (struct acpi_madt_local_x2apic_nmi *)header; in acpi_table_print_madt_entry()
[all …]
/drivers/s390/char/
Dsclp_cmd.c35 struct sccb_header header; /* 0-7 */ member
92 sccb->header.length = sizeof(*sccb); in sclp_read_info_early()
93 sccb->header.function_code = 0x80; in sclp_read_info_early()
94 sccb->header.control_mask[2] = 0x80; in sclp_read_info_early()
100 if (sccb->header.response_code == 0x10) { in sclp_read_info_early()
104 if (sccb->header.response_code != 0x1f0) in sclp_read_info_early()
116 sccb->header.length = sizeof(*sccb); in sclp_event_mask_early()
146 if (sccb->header.response_code != 0x20) in sclp_has_linemode()
157 if (sccb->header.response_code != 0x20) in sclp_has_vt220()
240 struct sccb_header header; member
[all …]
Dsclp_rw.c69 sccb->header.length = sizeof(struct write_sccb); in sclp_make_buffer()
70 sccb->msg_buf.header.length = sizeof(struct msg_buf); in sclp_make_buffer()
71 sccb->msg_buf.header.type = EVTYP_MSG; in sclp_make_buffer()
72 sccb->msg_buf.mdb.header.length = sizeof(struct mdb); in sclp_make_buffer()
73 sccb->msg_buf.mdb.header.type = 1; in sclp_make_buffer()
74 sccb->msg_buf.mdb.header.tag = 0xD4C4C240; /* ebcdic "MDB " */ in sclp_make_buffer()
75 sccb->msg_buf.mdb.header.revision_code = 1; in sclp_make_buffer()
108 if ((MAX_SCCB_ROOM - sccb->header.length) < mto_size) in sclp_initialize_mto()
112 mto = (struct mto *)(((addr_t) sccb) + sccb->header.length); in sclp_initialize_mto()
150 mto = (struct mto *)(((addr_t) sccb) + sccb->header.length); in sclp_finalize_mto()
[all …]
/drivers/acpi/acpica/
Dtbfind.c73 struct acpi_table_header header; in acpi_tb_find_table() local
79 ACPI_MEMSET(&header, 0, sizeof(struct acpi_table_header)); in acpi_tb_find_table()
80 ACPI_MOVE_NAME(header.signature, signature); in acpi_tb_find_table()
81 ACPI_STRNCPY(header.oem_id, oem_id, ACPI_OEM_ID_SIZE); in acpi_tb_find_table()
82 ACPI_STRNCPY(header.oem_table_id, oem_table_id, ACPI_OEM_TABLE_ID_SIZE); in acpi_tb_find_table()
88 header.signature, ACPI_NAME_SIZE)) { in acpi_tb_find_table()
117 header.signature, ACPI_NAME_SIZE) && (!oem_id[0] in acpi_tb_find_table()
123 header.oem_id, in acpi_tb_find_table()
128 header.oem_table_id, in acpi_tb_find_table()
134 header.signature)); in acpi_tb_find_table()
/drivers/net/wireless/prism54/
Dislpci_mgt.c287 pimfor_header_t *header; in islpci_mgt_receive() local
322 header = pimfor_decode_header(buf->mem, frag_len); in islpci_mgt_receive()
323 if (!header) { in islpci_mgt_receive()
332 header->device_id = priv->ndev->ifindex; in islpci_mgt_receive()
337 header->operation, header->oid, header->device_id, in islpci_mgt_receive()
338 header->flags, header->length); in islpci_mgt_receive()
341 display_buffer((char *) header, PIMFOR_HEADER_SIZE); in islpci_mgt_receive()
342 display_buffer((char *) header + PIMFOR_HEADER_SIZE, in islpci_mgt_receive()
343 header->length); in islpci_mgt_receive()
347 if (header->flags & PIMFOR_FLAG_APPLIC_ORIGIN) { in islpci_mgt_receive()
[all …]
/drivers/md/
Ddm-android-verity.c214 static inline void populate_fec_metadata(struct fec_header *header, in populate_fec_metadata() argument
217 ecc->blocks = fec_div_round_up(le64_to_cpu(header->inp_size), in populate_fec_metadata()
219 ecc->roots = le32_to_cpu(header->roots); in populate_fec_metadata()
220 ecc->start = le64_to_cpu(header->inp_size); in populate_fec_metadata()
223 static inline int validate_fec_header(struct fec_header *header, u64 offset) in validate_fec_header() argument
228 if (le32_to_cpu(header->magic) != FEC_MAGIC || in validate_fec_header()
229 le32_to_cpu(header->version) != FEC_VERSION || in validate_fec_header()
230 le32_to_cpu(header->size) != sizeof(struct fec_header) || in validate_fec_header()
231 le32_to_cpu(header->roots) == 0 || in validate_fec_header()
232 le32_to_cpu(header->roots) >= FEC_RSM || in validate_fec_header()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_cmd.c34 struct qxl_ring_header header; member
53 qxl_ring_create(struct qxl_ring_header *header, in qxl_ring_create() argument
66 ring->ring = (struct ring *)header; in qxl_ring_create()
72 header->notify_on_prod = ring->n_elements; in qxl_ring_create()
80 struct qxl_ring_header *header = &(ring->ring->header); in qxl_check_header() local
83 ret = header->prod - header->cons < header->num_items; in qxl_check_header()
85 header->notify_on_cons = header->cons + 1; in qxl_check_header()
93 struct qxl_ring_header *header = &(ring->ring->header); in qxl_check_idle() local
96 ret = header->prod == header->cons; in qxl_check_idle()
104 struct qxl_ring_header *header = &(ring->ring->header); in qxl_ring_push() local
[all …]
/drivers/net/wireless/mwifiex/
Djoin.c115 tsf_tlv.header.type = cpu_to_le16(TLV_TYPE_TSFTIMESTAMP); in mwifiex_cmd_append_tsf_tlv()
116 tsf_tlv.header.len = cpu_to_le16(2 * sizeof(tsf_val)); in mwifiex_cmd_append_tsf_tlv()
118 memcpy(*buffer, &tsf_tlv, sizeof(tsf_tlv.header)); in mwifiex_cmd_append_tsf_tlv()
119 *buffer += sizeof(tsf_tlv.header); in mwifiex_cmd_append_tsf_tlv()
135 return sizeof(tsf_tlv.header) + (2 * sizeof(tsf_val)); in mwifiex_cmd_append_tsf_tlv()
336 rsn_ie_tlv->header.type = cpu_to_le16((u16) priv->wpa_ie[0]); in mwifiex_append_rsn_ie_wpa_wpa2()
337 rsn_ie_tlv->header.type = cpu_to_le16( in mwifiex_append_rsn_ie_wpa_wpa2()
338 le16_to_cpu(rsn_ie_tlv->header.type) & 0x00FF); in mwifiex_append_rsn_ie_wpa_wpa2()
339 rsn_ie_tlv->header.len = cpu_to_le16((u16) priv->wpa_ie[1]); in mwifiex_append_rsn_ie_wpa_wpa2()
340 rsn_ie_tlv->header.len = cpu_to_le16(le16_to_cpu(rsn_ie_tlv->header.len) in mwifiex_append_rsn_ie_wpa_wpa2()
[all …]
/drivers/firewire/
Dcore-transaction.c218 packet->header[0] = in fw_fill_request()
235 packet->header[0] = in fw_fill_request()
240 packet->header[1] = in fw_fill_request()
242 packet->header[2] = in fw_fill_request()
247 packet->header[3] = *(u32 *)payload; in fw_fill_request()
254 packet->header[3] = in fw_fill_request()
268 packet->header[3] = in fw_fill_request()
449 .header[0] = TCODE_LINK_INTERNAL << 4,
477 phy_config_packet.header[1] = data; in fw_send_phy_config()
478 phy_config_packet.header[2] = ~data; in fw_send_phy_config()
[all …]
/drivers/uwb/
Dhwa-rc.c118 struct uwb_rceb **header, in hwarc_filter_evt_beacon_WUSB_0100() argument
127 be = container_of(*header, struct uwb_rc_evt_beacon_WUSB_0100, rceb); in hwarc_filter_evt_beacon_WUSB_0100()
154 *header = &newbe->rceb; in hwarc_filter_evt_beacon_WUSB_0100()
176 struct uwb_rceb **header, in hwarc_filter_evt_drp_avail_WUSB_0100() argument
187 da = container_of(*header, struct uwb_rc_evt_drp_avail_WUSB_0100, rceb); in hwarc_filter_evt_drp_avail_WUSB_0100()
221 *header = &newda->rceb; in hwarc_filter_evt_drp_avail_WUSB_0100()
251 struct uwb_rceb **header, in hwarc_filter_evt_drp_WUSB_0100() argument
260 drpev = container_of(*header, struct uwb_rc_evt_drp_WUSB_0100, rceb); in hwarc_filter_evt_drp_WUSB_0100()
285 *header = &newdrpev->rceb; in hwarc_filter_evt_drp_WUSB_0100()
310 struct uwb_rccb **header, in hwarc_filter_cmd_scan_WUSB_0100() argument
[all …]

12345678910>>...15