Searched refs:dump_hdr (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/drivers/net/wireless/rt2x00/ |
H A D | rt2x00debug.c | 165 struct rt2x00dump_hdr *dump_hdr; rt2x00debug_dump_frame() local 183 skbcopy = alloc_skb(sizeof(*dump_hdr) + skbdesc->desc_len + data_len, rt2x00debug_dump_frame() 190 dump_hdr = (struct rt2x00dump_hdr *)skb_put(skbcopy, sizeof(*dump_hdr)); rt2x00debug_dump_frame() 191 dump_hdr->version = cpu_to_le32(DUMP_HEADER_VERSION); rt2x00debug_dump_frame() 192 dump_hdr->header_length = cpu_to_le32(sizeof(*dump_hdr)); rt2x00debug_dump_frame() 193 dump_hdr->desc_length = cpu_to_le32(skbdesc->desc_len); rt2x00debug_dump_frame() 194 dump_hdr->data_length = cpu_to_le32(data_len); rt2x00debug_dump_frame() 195 dump_hdr->chip_rt = cpu_to_le16(rt2x00dev->chip.rt); rt2x00debug_dump_frame() 196 dump_hdr->chip_rf = cpu_to_le16(rt2x00dev->chip.rf); rt2x00debug_dump_frame() 197 dump_hdr->chip_rev = cpu_to_le16(rt2x00dev->chip.rev); rt2x00debug_dump_frame() 198 dump_hdr->type = cpu_to_le16(type); rt2x00debug_dump_frame() 199 dump_hdr->queue_index = skbdesc->entry->queue->qid; rt2x00debug_dump_frame() 200 dump_hdr->entry_index = skbdesc->entry->entry_idx; rt2x00debug_dump_frame() 201 dump_hdr->timestamp_sec = cpu_to_le32(timestamp.tv_sec); rt2x00debug_dump_frame() 202 dump_hdr->timestamp_usec = cpu_to_le32(timestamp.tv_usec); rt2x00debug_dump_frame()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_ethtool.c | 920 struct dump_header dump_hdr = {0}; bnx2x_get_regs() local 935 dump_hdr.header_size = (sizeof(struct dump_header) / 4) - 1; bnx2x_get_regs() 936 dump_hdr.preset = DUMP_ALL_PRESETS; bnx2x_get_regs() 937 dump_hdr.version = BNX2X_DUMP_VERSION; bnx2x_get_regs() 941 dump_hdr.dump_meta_data = DUMP_CHIP_E1; bnx2x_get_regs() 943 dump_hdr.dump_meta_data = DUMP_CHIP_E1H; bnx2x_get_regs() 945 dump_hdr.dump_meta_data = DUMP_CHIP_E2 | bnx2x_get_regs() 948 dump_hdr.dump_meta_data = DUMP_CHIP_E3A0 | bnx2x_get_regs() 951 dump_hdr.dump_meta_data = DUMP_CHIP_E3B0 | bnx2x_get_regs() 955 memcpy(p, &dump_hdr, sizeof(struct dump_header)); bnx2x_get_regs() 956 p += dump_hdr.header_size + 1; bnx2x_get_regs() 1010 struct dump_header dump_hdr = {0}; bnx2x_get_dump_data() local 1019 dump_hdr.header_size = (sizeof(struct dump_header) / 4) - 1; bnx2x_get_dump_data() 1020 dump_hdr.preset = bp->dump_preset_idx; bnx2x_get_dump_data() 1021 dump_hdr.version = BNX2X_DUMP_VERSION; bnx2x_get_dump_data() 1023 DP(BNX2X_MSG_ETHTOOL, "Get dump data of preset %d\n", dump_hdr.preset); bnx2x_get_dump_data() 1027 dump_hdr.dump_meta_data = DUMP_CHIP_E1; bnx2x_get_dump_data() 1029 dump_hdr.dump_meta_data = DUMP_CHIP_E1H; bnx2x_get_dump_data() 1031 dump_hdr.dump_meta_data = DUMP_CHIP_E2 | bnx2x_get_dump_data() 1034 dump_hdr.dump_meta_data = DUMP_CHIP_E3A0 | bnx2x_get_dump_data() 1037 dump_hdr.dump_meta_data = DUMP_CHIP_E3B0 | bnx2x_get_dump_data() 1041 memcpy(p, &dump_hdr, sizeof(struct dump_header)); bnx2x_get_dump_data() 1042 p += dump_hdr.header_size + 1; bnx2x_get_dump_data() 1045 __bnx2x_get_preset_regs(bp, p, dump_hdr.preset); bnx2x_get_dump_data()
|
Completed in 106 milliseconds