Searched refs:dump_hdr (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/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.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_ethtool.c | 948 struct dump_header dump_hdr = {0}; bnx2x_get_regs() local 963 dump_hdr.header_size = (sizeof(struct dump_header) / 4) - 1; bnx2x_get_regs() 964 dump_hdr.preset = DUMP_ALL_PRESETS; bnx2x_get_regs() 965 dump_hdr.version = BNX2X_DUMP_VERSION; bnx2x_get_regs() 969 dump_hdr.dump_meta_data = DUMP_CHIP_E1; bnx2x_get_regs() 971 dump_hdr.dump_meta_data = DUMP_CHIP_E1H; bnx2x_get_regs() 973 dump_hdr.dump_meta_data = DUMP_CHIP_E2 | bnx2x_get_regs() 976 dump_hdr.dump_meta_data = DUMP_CHIP_E3A0 | bnx2x_get_regs() 979 dump_hdr.dump_meta_data = DUMP_CHIP_E3B0 | bnx2x_get_regs() 983 memcpy(p, &dump_hdr, sizeof(struct dump_header)); bnx2x_get_regs() 984 p += dump_hdr.header_size + 1; bnx2x_get_regs() 1038 struct dump_header dump_hdr = {0}; bnx2x_get_dump_data() local 1047 dump_hdr.header_size = (sizeof(struct dump_header) / 4) - 1; bnx2x_get_dump_data() 1048 dump_hdr.preset = bp->dump_preset_idx; bnx2x_get_dump_data() 1049 dump_hdr.version = BNX2X_DUMP_VERSION; bnx2x_get_dump_data() 1051 DP(BNX2X_MSG_ETHTOOL, "Get dump data of preset %d\n", dump_hdr.preset); bnx2x_get_dump_data() 1055 dump_hdr.dump_meta_data = DUMP_CHIP_E1; bnx2x_get_dump_data() 1057 dump_hdr.dump_meta_data = DUMP_CHIP_E1H; bnx2x_get_dump_data() 1059 dump_hdr.dump_meta_data = DUMP_CHIP_E2 | bnx2x_get_dump_data() 1062 dump_hdr.dump_meta_data = DUMP_CHIP_E3A0 | bnx2x_get_dump_data() 1065 dump_hdr.dump_meta_data = DUMP_CHIP_E3B0 | bnx2x_get_dump_data() 1069 memcpy(p, &dump_hdr, sizeof(struct dump_header)); bnx2x_get_dump_data() 1070 p += dump_hdr.header_size + 1; bnx2x_get_dump_data() 1073 __bnx2x_get_preset_regs(bp, p, dump_hdr.preset); bnx2x_get_dump_data()
|
Completed in 167 milliseconds