/drivers/staging/otus/80211core/ |
D | cinit.c | 64 u16_t zfTxGenWlanHeader(zdev_t* dev, zbuf_t* buf, u16_t* header, u16_t seq, in zfTxGenWlanHeader() argument 97 header[4] = 0x0008 | (flag<<8); in zfTxGenWlanHeader() 99 header[5] = 0x0000; in zfTxGenWlanHeader() 104 header[4] |= 0x0100; in zfTxGenWlanHeader() 109 header[4] |= 0x1000; in zfTxGenWlanHeader() 113 header[6] = wd->sta.bssid[0]; in zfTxGenWlanHeader() 114 header[7] = wd->sta.bssid[1]; in zfTxGenWlanHeader() 115 header[8] = wd->sta.bssid[2]; in zfTxGenWlanHeader() 117 header[12] = da[0]; in zfTxGenWlanHeader() 118 header[13] = da[1]; in zfTxGenWlanHeader() [all …]
|
/drivers/infiniband/core/ |
D | ud_header.c | 39 #define STRUCT_FIELD(header, field) \ argument 40 .struct_offset_bytes = offsetof(struct ib_unpacked_ ## header, field), \ 41 .struct_size_bytes = sizeof ((struct ib_unpacked_ ## header *) 0)->field, \ 42 .field_name = #header ":" #field 194 struct ib_ud_header *header) in ib_ud_header_init() argument 199 memset(header, 0, sizeof *header); in ib_ud_header_init() 209 header->lrh.link_version = 0; in ib_ud_header_init() 210 header->lrh.link_next_header = in ib_ud_header_init() 219 header->grh_present = grh_present; in ib_ud_header_init() 222 header->grh.ip_version = 6; in ib_ud_header_init() [all …]
|
/drivers/ps3/ |
D | ps3-sys-manager.c | 242 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/ |
D | ar7part.c | 53 struct ar7_bin_rec header; in create_mtd_partitions() local 74 sizeof(header), &len, (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 master->read(master, offset, sizeof(header), in create_mtd_partitions() 96 &len, (uint8_t *)&header); in create_mtd_partitions() [all …]
|
D | ftl.c | 131 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 = part->mbd.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/ |
D | r300_cmdbuf.c | 290 header) in r300_emit_carefully_checked_packet0() 298 sz = header.packet0.count; in r300_emit_carefully_checked_packet0() 299 reg = (header.packet0.reghi << 8) | header.packet0.reglo; in r300_emit_carefully_checked_packet0() 346 drm_r300_cmd_header_t header) in r300_emit_packet0() argument 352 sz = header.packet0.count; in r300_emit_packet0() 353 reg = (header.packet0.reghi << 8) | header.packet0.reglo; in r300_emit_packet0() 370 header); in r300_emit_packet0() 392 drm_r300_cmd_header_t header) in r300_emit_vpu() argument 398 sz = header.vpu.count; in r300_emit_vpu() 399 addr = (header.vpu.adrhi << 8) | header.vpu.adrlo; in r300_emit_vpu() [all …]
|
/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 …]
|
/drivers/atm/ |
D | solos-pci.c | 141 struct pkt_hdr *header; in send_command() local 145 if (size > (BUF_SIZE - sizeof(*header))) { in send_command() 149 skb = alloc_skb(size + sizeof(*header), GFP_ATOMIC); in send_command() 155 header = (void *)skb_put(skb, sizeof(*header)); in send_command() 157 header->size = cpu_to_le16(size); in send_command() 158 header->vpi = cpu_to_le16(0); in send_command() 159 header->vci = cpu_to_le16(0); in send_command() 160 header->type = cpu_to_le16(PKT_COMMAND); in send_command() 221 struct pkt_hdr header; in solos_bh() local 228 memcpy_fromio(&header, RX_BUF(card, port), sizeof(header)); in solos_bh() [all …]
|
/drivers/net/wireless/prism54/ |
D | islpci_mgt.c | 291 pimfor_header_t *header; in islpci_mgt_receive() local 326 header = pimfor_decode_header(buf->mem, frag_len); in islpci_mgt_receive() 327 if (!header) { in islpci_mgt_receive() 336 header->device_id = priv->ndev->ifindex; in islpci_mgt_receive() 341 header->operation, header->oid, header->device_id, in islpci_mgt_receive() 342 header->flags, header->length); in islpci_mgt_receive() 345 display_buffer((char *) header, PIMFOR_HEADER_SIZE); in islpci_mgt_receive() 346 display_buffer((char *) header + PIMFOR_HEADER_SIZE, in islpci_mgt_receive() 347 header->length); in islpci_mgt_receive() 351 if (header->flags & PIMFOR_FLAG_APPLIC_ORIGIN) { in islpci_mgt_receive() [all …]
|
/drivers/net/wireless/libertas/ |
D | types.h | 105 struct mrvlietypesheader header; member 110 struct mrvlietypesheader header; member 115 struct mrvlietypesheader header; member 120 struct mrvlietypesheader header; member 146 struct mrvlietypesheader header; member 162 struct mrvlietypesheader header; member 181 struct mrvlietypesheader header; member 189 struct mrvlietypesheader header; member 194 struct mrvlietypesheader header; member 200 struct mrvlietypesheader header; member [all …]
|
/drivers/acpi/acpica/ |
D | tbfind.c | 73 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_STRNCPY(header.signature, signature, ACPI_NAME_SIZE); 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()
|
D | tbutils.c | 177 struct acpi_table_header *header) in acpi_tb_print_table_header() argument 180 if (ACPI_COMPARE_NAME(header->signature, ACPI_SIG_FACS)) { in acpi_tb_print_table_header() 185 header->signature, (unsigned long)address, in acpi_tb_print_table_header() 186 header->length)); in acpi_tb_print_table_header() 187 } else if (ACPI_COMPARE_NAME(header->signature, ACPI_SIG_RSDP)) { in acpi_tb_print_table_header() 193 (ACPI_CAST_PTR(struct acpi_table_rsdp, header)-> in acpi_tb_print_table_header() 196 header)->length : 20, in acpi_tb_print_table_header() 198 header)->revision, in acpi_tb_print_table_header() 200 header)->oem_id)); in acpi_tb_print_table_header() 206 header->signature, (unsigned long)address, in acpi_tb_print_table_header() [all …]
|
/drivers/s390/char/ |
D | sclp_cmd.c | 30 struct sccb_header header; /* 0-7 */ member 85 sccb->header.length = sizeof(*sccb); in sclp_read_info_early() 86 sccb->header.control_mask[2] = 0x80; in sclp_read_info_early() 92 if (sccb->header.response_code == 0x10) { in sclp_read_info_early() 96 if (sccb->header.response_code != 0x1f0) in sclp_read_info_early() 193 struct sccb_header header; member 225 sccb->header.length = sizeof(*sccb); in sclp_get_cpu_info() 229 if (sccb->header.response_code != 0x0010) { in sclp_get_cpu_info() 231 sccb->header.response_code); in sclp_get_cpu_info() 242 struct sccb_header header; member [all …]
|
D | sclp_rw.c | 63 sccb->header.length = sizeof(struct write_sccb); in sclp_make_buffer() 64 sccb->msg_buf.header.length = sizeof(struct msg_buf); in sclp_make_buffer() 65 sccb->msg_buf.header.type = EVTYP_MSG; in sclp_make_buffer() 66 sccb->msg_buf.mdb.header.length = sizeof(struct mdb); in sclp_make_buffer() 67 sccb->msg_buf.mdb.header.type = 1; in sclp_make_buffer() 68 sccb->msg_buf.mdb.header.tag = 0xD4C4C240; /* ebcdic "MDB " */ in sclp_make_buffer() 69 sccb->msg_buf.mdb.header.revision_code = 1; in sclp_make_buffer() 102 if ((MAX_SCCB_ROOM - sccb->header.length) < mto_size) in sclp_initialize_mto() 106 mto = (struct mto *)(((addr_t) sccb) + sccb->header.length); in sclp_initialize_mto() 144 mto = (struct mto *)(((addr_t) sccb) + sccb->header.length); in sclp_finalize_mto() [all …]
|
/drivers/firewire/ |
D | fw-transaction.c | 167 packet->header[0] = in fw_fill_request() 172 packet->header[1] = in fw_fill_request() 174 packet->header[2] = in fw_fill_request() 179 packet->header[3] = *(u32 *)payload; in fw_fill_request() 186 packet->header[3] = in fw_fill_request() 200 packet->header[3] = in fw_fill_request() 367 phy_config_packet.header[0] = data; in fw_send_phy_config() 368 phy_config_packet.header[1] = ~data; in fw_send_phy_config() 543 response->header[0] = in fw_fill_response() 547 response->header[1] = in fw_fill_response() [all …]
|
D | fw-ohci.c | 165 void *header; member 362 static void log_ar_at_event(char dir, int speed, u32 *header, int evt) in log_ar_at_event() argument 364 int tcode = header[0] >> 4 & 0xf; in log_ar_at_event() 375 dir, (header[2] >> 16) & 0xff); in log_ar_at_event() 379 if (header[0] == ~header[1]) { in log_ar_at_event() 381 dir, evts[evt], phys[header[0] >> 30 & 0x3], header[0]); in log_ar_at_event() 388 be32_to_cpu((__force __be32)header[3])); in log_ar_at_event() 392 header[3] >> 16, header[3] & 0xffff); in log_ar_at_event() 406 dir, speed, header[0] >> 10 & 0x3f, in log_ar_at_event() 407 header[1] >> 16, header[0] >> 16, evts[evt], in log_ar_at_event() [all …]
|
/drivers/acpi/ |
D | tables.c | 47 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_io_apic *)header; in acpi_table_print_madt_entry() 78 (struct acpi_madt_interrupt_override *)header; in acpi_table_print_madt_entry() 97 (struct acpi_madt_nmi_source *)header; in acpi_table_print_madt_entry() 109 (struct acpi_madt_local_apic_nmi *)header; in acpi_table_print_madt_entry() 122 (struct acpi_madt_local_apic_override *)header; in acpi_table_print_madt_entry() 132 (struct acpi_madt_io_sapic *)header; in acpi_table_print_madt_entry() [all …]
|
D | numa.c | 91 acpi_table_print_srat_entry(struct acpi_subtable_header *header) in acpi_table_print_srat_entry() argument 96 if (!header) in acpi_table_print_srat_entry() 99 switch (header->type) { in acpi_table_print_srat_entry() 105 (struct acpi_srat_cpu_affinity *)header; in acpi_table_print_srat_entry() 120 (struct acpi_srat_mem_affinity *)header; in acpi_table_print_srat_entry() 137 header->type); in acpi_table_print_srat_entry() 184 acpi_parse_processor_affinity(struct acpi_subtable_header * header, in acpi_parse_processor_affinity() argument 189 processor_affinity = (struct acpi_srat_cpu_affinity *)header; in acpi_parse_processor_affinity() 193 acpi_table_print_srat_entry(header); in acpi_parse_processor_affinity() 202 acpi_parse_memory_affinity(struct acpi_subtable_header * header, in acpi_parse_memory_affinity() argument [all …]
|
/drivers/uwb/ |
D | hwa-rc.c | 117 struct uwb_rceb **header, in hwarc_filter_evt_beacon_WUSB_0100() argument 126 be = container_of(*header, struct uwb_rc_evt_beacon_WUSB_0100, rceb); in hwarc_filter_evt_beacon_WUSB_0100() 153 *header = &newbe->rceb; in hwarc_filter_evt_beacon_WUSB_0100() 175 struct uwb_rceb **header, in hwarc_filter_evt_drp_avail_WUSB_0100() argument 186 da = container_of(*header, struct uwb_rc_evt_drp_avail_WUSB_0100, rceb); in hwarc_filter_evt_drp_avail_WUSB_0100() 220 *header = &newda->rceb; in hwarc_filter_evt_drp_avail_WUSB_0100() 250 struct uwb_rceb **header, in hwarc_filter_evt_drp_WUSB_0100() argument 259 drpev = container_of(*header, struct uwb_rc_evt_drp_WUSB_0100, rceb); in hwarc_filter_evt_drp_WUSB_0100() 284 *header = &newdrpev->rceb; in hwarc_filter_evt_drp_WUSB_0100() 309 struct uwb_rccb **header, in hwarc_filter_cmd_scan_WUSB_0100() argument [all …]
|
/drivers/net/usb/ |
D | net1080.c | 426 struct nc_header *header; in net1080_rx_fixup() local 441 header = (struct nc_header *) skb->data; in net1080_rx_fixup() 442 hdr_len = le16_to_cpup(&header->hdr_len); in net1080_rx_fixup() 443 packet_len = le16_to_cpup(&header->packet_len); in net1080_rx_fixup() 481 if (header->packet_id != get_unaligned(&trailer->packet_id)) { in net1080_rx_fixup() 484 le16_to_cpu(header->packet_id), in net1080_rx_fixup() 489 devdbg(dev, "frame <rx h %d p %d id %d", header->hdr_len, in net1080_rx_fixup() 490 header->packet_len, header->packet_id); in net1080_rx_fixup() 500 struct nc_header *header = NULL; in net1080_tx_fixup() local 539 header = (struct nc_header *) skb_push(skb, sizeof *header); in net1080_tx_fixup() [all …]
|
/drivers/scsi/aacraid/ |
D | commsup.c | 129 hw_fib->header.XferState = cpu_to_le32(0xffffffff); in aac_fib_setup() 130 hw_fib->header.SenderSize = cpu_to_le16(dev->max_fib_size); in aac_fib_setup() 175 fibptr->hw_fib_va->header.XferState = 0; in aac_fib_alloc() 197 if (fibptr->hw_fib_va->header.XferState != 0) { in aac_fib_free() 200 le32_to_cpu(fibptr->hw_fib_va->header.XferState)); in aac_fib_free() 218 hw_fib->header.StructType = FIB_MAGIC; in aac_fib_init() 219 hw_fib->header.Size = cpu_to_le16(fibptr->dev->max_fib_size); in aac_fib_init() 220 …hw_fib->header.XferState = cpu_to_le32(HostOwned | FibInitialized | FibEmpty | FastResponseCapable… in aac_fib_init() 221 hw_fib->header.SenderFibAddress = 0; /* Filled in later if needed */ in aac_fib_init() 222 hw_fib->header.ReceiverFibAddress = cpu_to_le32(fibptr->hw_fib_pa); in aac_fib_init() [all …]
|
/drivers/staging/rtl8187se/ieee80211/ |
D | ieee80211_tx.c | 195 struct ieee80211_hdr *header; in ieee80211_encrypt_fragment() local 199 header = (struct ieee80211_hdr *) frag->data; in ieee80211_encrypt_fragment() 203 ieee->dev->name, MAC_ARG(header->addr1)); in ieee80211_encrypt_fragment() 309 …struct sk_buff *skb, struct net_device *dev, struct ieee80211_hdr_3addr *header, int hdr_len, u8 i… in ieee80211_ext_alloc_txb() argument 335 if (is_multicast_ether_addr(header->addr1) || in ieee80211_ext_alloc_txb() 336 is_broadcast_ether_addr(header->addr1)) { in ieee80211_ext_alloc_txb() 394 memcpy(frag_hdr, (void *)header, hdr_len); in ieee80211_ext_alloc_txb() 400 header->frame_ctl | IEEE80211_FCTL_MOREFRAGS); in ieee80211_ext_alloc_txb() 460 …struct sk_buff *skb, struct net_device *dev, struct ieee80211_hdr_3addr *header, int hdr_len, u8 i… in ieee80211_ext_reuse_txb() argument 480 if (is_multicast_ether_addr(header->addr1) || in ieee80211_ext_reuse_txb() [all …]
|
/drivers/s390/crypto/ |
D | zcrypt_pcica.c | 98 sme->header.msg_fmt = TYPE4_SME_FMT; in ICAMEX_msg_to_type4MEX_msg() 99 sme->header.msg_len = sizeof(*sme); in ICAMEX_msg_to_type4MEX_msg() 100 sme->header.msg_type_code = TYPE4_TYPE_CODE; in ICAMEX_msg_to_type4MEX_msg() 101 sme->header.request_code = TYPE4_REQU_CODE; in ICAMEX_msg_to_type4MEX_msg() 109 lme->header.msg_fmt = TYPE4_LME_FMT; in ICAMEX_msg_to_type4MEX_msg() 110 lme->header.msg_len = sizeof(*lme); in ICAMEX_msg_to_type4MEX_msg() 111 lme->header.msg_type_code = TYPE4_TYPE_CODE; in ICAMEX_msg_to_type4MEX_msg() 112 lme->header.request_code = TYPE4_REQU_CODE; in ICAMEX_msg_to_type4MEX_msg() 149 scr->header.msg_type_code = TYPE4_TYPE_CODE; in ICACRT_msg_to_type4CRT_msg() 150 scr->header.request_code = TYPE4_REQU_CODE; in ICACRT_msg_to_type4CRT_msg() [all …]
|
/drivers/s390/block/ |
D | dasd_eer.c | 297 struct dasd_eer_header header; in dasd_eer_write_standard_trigger() local 307 header.total_size = sizeof(header) + data_size + 4; /* "EOR" */ in dasd_eer_write_standard_trigger() 308 header.trigger = trigger; in dasd_eer_write_standard_trigger() 310 header.tv_sec = tv.tv_sec; in dasd_eer_write_standard_trigger() 311 header.tv_usec = tv.tv_usec; in dasd_eer_write_standard_trigger() 312 strncpy(header.busid, dev_name(&device->cdev->dev), in dasd_eer_write_standard_trigger() 317 dasd_eer_start_record(eerb, header.total_size); in dasd_eer_write_standard_trigger() 318 dasd_eer_write_buffer(eerb, (char *) &header, sizeof(header)); in dasd_eer_write_standard_trigger() 338 struct dasd_eer_header header; in dasd_eer_write_snss_trigger() local 348 header.total_size = sizeof(header) + data_size + 4; /* "EOR" */ in dasd_eer_write_snss_trigger() [all …]
|
/drivers/s390/scsi/ |
D | zfcp_fsf.c | 72 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_access_denied_port() local 76 zfcp_act_eval_err(req->adapter, header->fsf_status_qual.halfword[0]); in zfcp_fsf_access_denied_port() 77 zfcp_act_eval_err(req->adapter, header->fsf_status_qual.halfword[1]); in zfcp_fsf_access_denied_port() 85 struct fsf_qtcb_header *header = &req->qtcb->header; in zfcp_fsf_access_denied_unit() local 90 zfcp_act_eval_err(req->adapter, header->fsf_status_qual.halfword[0]); in zfcp_fsf_access_denied_unit() 91 zfcp_act_eval_err(req->adapter, header->fsf_status_qual.halfword[1]); in zfcp_fsf_access_denied_unit() 341 switch (req->qtcb->header.fsf_status_qual.word[0]) { in zfcp_fsf_fsfstatus_qual_eval() 366 switch (req->qtcb->header.fsf_status) { in zfcp_fsf_fsfstatus_eval() 370 req->qtcb->header.fsf_command); in zfcp_fsf_fsfstatus_eval() 553 switch (qtcb->header.fsf_status) { in zfcp_fsf_exchange_config_data_handler() [all …]
|