arch/alpha/kernel/module.c
113
rela = (void *)hdr + s->sh_offset;
arch/alpha/kernel/module.c
64
module_frob_arch_sections(Elf64_Ehdr *hdr, Elf64_Shdr *sechdrs,
arch/alpha/kernel/module.c
72
esechdrs = sechdrs + hdr->e_shnum;
arch/arc/kernel/module.c
132
int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
arch/arc/kernel/module.c
26
int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
arch/arc/kernel/unwind.c
924
const u8 *hdr = table->header;
arch/arc/kernel/unwind.c
928
if (hdr && hdr[0] == 1) {
arch/arc/kernel/unwind.c
929
switch (hdr[3] & DW_EH_PE_FORM) {
arch/arc/kernel/unwind.c
946
ptr = hdr + 4;
arch/arc/kernel/unwind.c
947
end = hdr + table->hdrsz;
arch/arc/kernel/unwind.c
948
if (tableSize && read_pointer(&ptr, end, hdr[1])
arch/arc/kernel/unwind.c
950
&& (i = read_pointer(&ptr, end, hdr[2])) > 0
arch/arc/kernel/unwind.c
959
hdr[3]);
arch/arc/kernel/unwind.c
970
hdr[3])) != 0
arch/arc/kernel/unwind.c
975
hdr[3]);
arch/arm/boot/compressed/atags_to_fdt.c
148
if (atag->hdr.tag != ATAG_CORE ||
arch/arm/boot/compressed/atags_to_fdt.c
149
(atag->hdr.size != tag_size(tag_core) &&
arch/arm/boot/compressed/atags_to_fdt.c
150
atag->hdr.size != 2))
arch/arm/boot/compressed/atags_to_fdt.c
159
if (atag->hdr.tag == ATAG_CMDLINE) {
arch/arm/boot/compressed/atags_to_fdt.c
172
} else if (atag->hdr.tag == ATAG_MEM) {
arch/arm/boot/compressed/atags_to_fdt.c
196
} else if (atag->hdr.tag == ATAG_INITRD2) {
arch/arm/boot/compressed/atags_to_fdt.c
204
} else if (atag->hdr.tag == ATAG_SERIAL) {
arch/arm/include/uapi/asm/setup.h
148
struct tag_header hdr;
arch/arm/include/uapi/asm/setup.h
179
<= (tag)->hdr.size * 4)
arch/arm/include/uapi/asm/setup.h
181
#define tag_next(t) ((struct tag *)((__u32 *)(t) + (t)->hdr.size))
arch/arm/include/uapi/asm/setup.h
185
for (t = base; t->hdr.size; t = tag_next(t))
arch/arm/kernel/atags_compat.c
119
tag->hdr.tag = ATAG_CORE;
arch/arm/kernel/atags_compat.c
120
tag->hdr.size = tag_size(tag_core);
arch/arm/kernel/atags_compat.c
126
tag->hdr.tag = ATAG_RAMDISK;
arch/arm/kernel/atags_compat.c
127
tag->hdr.size = tag_size(tag_ramdisk);
arch/arm/kernel/atags_compat.c
134
tag->hdr.tag = ATAG_INITRD;
arch/arm/kernel/atags_compat.c
135
tag->hdr.size = tag_size(tag_initrd);
arch/arm/kernel/atags_compat.c
140
tag->hdr.tag = ATAG_SERIAL;
arch/arm/kernel/atags_compat.c
141
tag->hdr.size = tag_size(tag_serialnr);
arch/arm/kernel/atags_compat.c
146
tag->hdr.tag = ATAG_REVISION;
arch/arm/kernel/atags_compat.c
147
tag->hdr.size = tag_size(tag_revision);
arch/arm/kernel/atags_compat.c
163
tag->hdr.tag = ATAG_MEMCLK;
arch/arm/kernel/atags_compat.c
164
tag->hdr.size = tag_size(tag_memclk);
arch/arm/kernel/atags_compat.c
172
tag->hdr.tag = ATAG_VIDEOTEXT;
arch/arm/kernel/atags_compat.c
173
tag->hdr.size = tag_size(tag_videotext);
arch/arm/kernel/atags_compat.c
188
tag->hdr.tag = ATAG_ACORN;
arch/arm/kernel/atags_compat.c
189
tag->hdr.size = tag_size(tag_acorn);
arch/arm/kernel/atags_compat.c
197
tag->hdr.tag = ATAG_CMDLINE;
arch/arm/kernel/atags_compat.c
198
tag->hdr.size = (strlen(params->commandline) + 3 +
arch/arm/kernel/atags_compat.c
203
tag->hdr.tag = ATAG_NONE;
arch/arm/kernel/atags_compat.c
204
tag->hdr.size = 0;
arch/arm/kernel/atags_compat.c
84
tag->hdr.tag = ATAG_MEM;
arch/arm/kernel/atags_compat.c
85
tag->hdr.size = tag_size(tag_mem32);
arch/arm/kernel/atags_parse.c
149
if (tag->hdr.tag == t->tag) {
arch/arm/kernel/atags_parse.c
163
for (; t->hdr.size; t = tag_next(t))
arch/arm/kernel/atags_parse.c
166
t->hdr.tag);
arch/arm/kernel/atags_parse.c
171
for (; tag->hdr.size; tag = tag_next(tag))
arch/arm/kernel/atags_parse.c
172
if (tag->hdr.tag == ATAG_MEM)
arch/arm/kernel/atags_parse.c
173
tag->hdr.tag = ATAG_NONE;
arch/arm/kernel/atags_parse.c
208
if (tags->hdr.tag != ATAG_CORE)
arch/arm/kernel/atags_parse.c
211
if (tags->hdr.tag != ATAG_CORE) {
arch/arm/kernel/atags_parse.c
219
if (tags->hdr.tag == ATAG_CORE) {
arch/arm/kernel/atags_parse.c
55
if (tag->hdr.size > 2) {
arch/arm/kernel/atags_proc.c
44
if (tag->hdr.tag != ATAG_CORE) {
arch/arm/kernel/atags_proc.c
49
for (; tag->hdr.size; tag = tag_next(tag))
arch/arm/kernel/atags_proc.c
55
WARN_ON(tag->hdr.tag != ATAG_NONE);
arch/arm/kernel/elf.c
121
elf_set_personality(&exec_params->hdr);
arch/arm/kernel/module.c
398
static const Elf_Shdr *find_mod_section(const Elf32_Ehdr *hdr,
arch/arm/kernel/module.c
402
const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/arm/kernel/module.c
404
for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++)
arch/arm/kernel/module.c
414
int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
arch/arm/kernel/module.c
419
const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/arm/kernel/module.c
420
const Elf_Shdr *sechdrs_end = sechdrs + hdr->e_shnum;
arch/arm/kernel/module.c
439
txt_sec = find_mod_section(hdr, sechdrs, txtname);
arch/arm/kernel/module.c
457
s = find_mod_section(hdr, sechdrs, ".pv_table");
arch/arm/kernel/module.c
461
s = find_mod_section(hdr, sechdrs, ".alt.smp.init");
arch/arm/kernel/vdso.c
150
.hdr = ehdr,
arch/arm/kernel/vdso.c
153
einfo.dynsym = find_section(einfo.hdr, ".dynsym", &einfo.dynsymsize);
arch/arm/kernel/vdso.c
154
einfo.dynstr = find_section(einfo.hdr, ".dynstr", NULL);
arch/arm/kernel/vdso.c
51
Elf32_Ehdr *hdr; /* ptr to ELF */
arch/arm/mach-omap2/board-generic.c
95
if (tags->hdr.tag != ATAG_CORE)
arch/arm/mach-omap2/board-generic.c
99
if (tag->hdr.tag == ATAG_REVISION) {
arch/arm/mach-orion5x/common.c
369
for (; t->hdr.size; t = tag_next(t))
arch/arm/mach-orion5x/common.c
370
if (t->hdr.tag == ATAG_MEM &&
arch/arm/mach-orion5x/common.c
376
t->hdr.tag = 0;
arch/arm/mach-rpc/include/mach/uncompress.h
118
if (t->hdr.tag == ATAG_CORE) {
arch/arm/mach-rpc/include/mach/uncompress.h
119
for (; t->hdr.size; t = tag_next(t)) {
arch/arm/mach-rpc/include/mach/uncompress.h
120
if (t->hdr.tag == ATAG_VIDEOTEXT) {
arch/arm/mach-rpc/include/mach/uncompress.h
125
} else if (t->hdr.tag == ATAG_VIDEOLFB) {
arch/arm/mach-rpc/include/mach/uncompress.h
128
} else if (t->hdr.tag == ATAG_MEM) {
arch/arm64/include/asm/module.h
54
static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
arch/arm64/include/asm/module.h
59
const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/arm64/include/asm/module.h
61
for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) {
arch/arm64/kernel/alternative.c
206
const struct elf64_hdr *hdr;
arch/arm64/kernel/alternative.c
213
hdr = (struct elf64_hdr *)vdso_start;
arch/arm64/kernel/alternative.c
214
shdr = (void *)hdr + hdr->e_shoff;
arch/arm64/kernel/alternative.c
215
alt = find_section(hdr, shdr, ".altinstructions");
arch/arm64/kernel/alternative.c
220
.begin = (void *)hdr + alt->sh_offset,
arch/arm64/kernel/alternative.c
221
.end = (void *)hdr + alt->sh_offset + alt->sh_size,
arch/arm64/kernel/hibernate.c
110
struct arch_hibernate_hdr *hdr = addr;
arch/arm64/kernel/hibernate.c
112
if (max_size < sizeof(*hdr))
arch/arm64/kernel/hibernate.c
115
arch_hdr_invariants(&hdr->invariants);
arch/arm64/kernel/hibernate.c
116
hdr->ttbr1_el1 = __pa_symbol(swapper_pg_dir);
arch/arm64/kernel/hibernate.c
117
hdr->reenter_kernel = _cpu_resume;
arch/arm64/kernel/hibernate.c
121
hdr->__hyp_stub_vectors = __pa_symbol(__hyp_stub_vectors);
arch/arm64/kernel/hibernate.c
123
hdr->__hyp_stub_vectors = 0;
arch/arm64/kernel/hibernate.c
130
hdr->sleep_cpu_mpidr = cpu_logical_map(sleep_cpu);
arch/arm64/kernel/hibernate.c
132
hdr->sleep_cpu_mpidr);
arch/arm64/kernel/hibernate.c
142
struct arch_hibernate_hdr *hdr = addr;
arch/arm64/kernel/hibernate.c
145
if (memcmp(&hdr->invariants, &invariants, sizeof(invariants))) {
arch/arm64/kernel/hibernate.c
150
sleep_cpu = get_logical_index(hdr->sleep_cpu_mpidr);
arch/arm64/kernel/hibernate.c
152
hdr->sleep_cpu_mpidr);
arch/arm64/kernel/hibernate.c
165
resume_hdr = *hdr;
arch/arm64/kernel/module.c
452
static int module_init_ftrace_plt(const Elf_Ehdr *hdr,
arch/arm64/kernel/module.c
460
s = find_section(hdr, sechdrs, ".text.ftrace_trampoline");
arch/arm64/kernel/module.c
470
s = find_section(hdr, sechdrs, ".init.text.ftrace_trampoline");
arch/arm64/kernel/module.c
484
int module_finalize(const Elf_Ehdr *hdr,
arch/arm64/kernel/module.c
491
s = find_section(hdr, sechdrs, ".altinstructions");
arch/arm64/kernel/module.c
501
s = find_section(hdr, sechdrs, ".init.eh_frame");
arch/arm64/kernel/module.c
518
return module_init_ftrace_plt(hdr, sechdrs, me);
arch/arm64/kernel/process.c
788
int compat_elf_check_arch(const struct elf32_hdr *hdr)
arch/arm64/kernel/process.c
793
if ((hdr)->e_machine != EM_ARM)
arch/arm64/kernel/process.c
796
if (!((hdr)->e_flags & EF_ARM_EABI_MASK))
arch/arm64/kvm/vgic/vgic-debug.c
169
char *hdr = "SPI ";
arch/arm64/kvm/vgic/vgic-debug.c
172
hdr = "VCPU";
arch/arm64/kvm/vgic/vgic-debug.c
177
seq_printf(s, "%s%2d TYP ID TGT_ID PLAEHCG HWID TARGET SRC PRI VCPU_ID\n", hdr, id);
arch/arm64/net/bpf_jit_comp.c
3175
struct bpf_binary_header *hdr;
arch/arm64/net/bpf_jit_comp.c
3189
hdr = bpf_jit_binary_pack_hdr(prog);
arch/arm64/net/bpf_jit_comp.c
3190
bpf_jit_binary_pack_free(hdr, NULL);
arch/hexagon/include/asm/elf.h
154
#define elf_check_arch(hdr) ((hdr)->e_machine == EM_HEXAGON)
arch/hexagon/kernel/module.c
27
int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
arch/hexagon/kernel/module.c
35
for (i = 0; i < hdr->e_shnum; i++) {
arch/loongarch/include/asm/elf.h
240
#define elf32_check_arch(hdr) \
arch/loongarch/include/asm/elf.h
243
struct elfhdr *__h = (hdr); \
arch/loongarch/include/asm/elf.h
256
#define elf64_check_arch(hdr) \
arch/loongarch/include/asm/elf.h
259
struct elfhdr *__h = (hdr); \
arch/loongarch/kernel/efi.c
117
efi_systab_report_header(&efi_systab->hdr, efi_systab->fw_vendor);
arch/loongarch/kernel/efi.c
63
efi.runtime_version = (unsigned int)efi.runtime->hdr.revision;
arch/loongarch/kernel/module.c
589
static void module_init_ftrace_plt(const Elf_Ehdr *hdr,
arch/loongarch/kernel/module.c
606
int module_finalize(const Elf_Ehdr *hdr,
arch/loongarch/kernel/module.c
609
const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/loongarch/kernel/module.c
612
for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
arch/loongarch/kernel/module.c
630
module_init_ftrace_plt(hdr, ftrace, mod);
arch/loongarch/net/bpf_jit.c
2105
struct bpf_binary_header *hdr;
arch/loongarch/net/bpf_jit.c
2116
hdr = bpf_jit_binary_pack_hdr(prog);
arch/loongarch/net/bpf_jit.c
2117
bpf_jit_binary_pack_free(hdr, NULL);
arch/m68k/kernel/module.c
102
int module_finalize(const Elf_Ehdr *hdr,
arch/microblaze/kernel/module.c
91
int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
arch/mips/include/asm/elf.h
282
#define elf32_check_arch(hdr) \
arch/mips/include/asm/elf.h
285
struct elfhdr *__h = (hdr); \
arch/mips/include/asm/elf.h
310
#define elf64_check_arch(hdr) \
arch/mips/include/asm/elf.h
313
struct elfhdr *__h = (hdr); \
arch/mips/kernel/module.c
414
int module_finalize(const Elf_Ehdr *hdr,
arch/mips/kernel/module.c
419
char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/mips/kernel/module.c
425
for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
arch/mips/kernel/vpe.c
183
static void layout_sections(struct module *mod, const Elf_Ehdr *hdr,
arch/mips/kernel/vpe.c
197
for (i = 0; i < hdr->e_shnum; i++)
arch/mips/kernel/vpe.c
201
for (i = 0; i < hdr->e_shnum; ++i) {
arch/mips/kernel/vpe.c
578
Elf_Ehdr *hdr;
arch/mips/kernel/vpe.c
588
hdr = (Elf_Ehdr *) v->pbuffer;
arch/mips/kernel/vpe.c
593
if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0
arch/mips/kernel/vpe.c
594
|| (hdr->e_type != ET_REL && hdr->e_type != ET_EXEC)
arch/mips/kernel/vpe.c
595
|| !elf_check_arch(hdr)
arch/mips/kernel/vpe.c
596
|| hdr->e_shentsize != sizeof(*sechdrs)) {
arch/mips/kernel/vpe.c
602
if (hdr->e_type == ET_REL)
arch/mips/kernel/vpe.c
605
if (len < hdr->e_shoff + hdr->e_shnum * sizeof(Elf_Shdr)) {
arch/mips/kernel/vpe.c
612
sechdrs = (void *)hdr + hdr->e_shoff;
arch/mips/kernel/vpe.c
613
secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/mips/kernel/vpe.c
620
for (i = 1; i < hdr->e_shnum; i++) {
arch/mips/kernel/vpe.c
630
sechdrs[i].sh_addr = (size_t) hdr +
arch/mips/kernel/vpe.c
637
strtab = (char *)hdr +
arch/mips/kernel/vpe.c
641
layout_sections(&mod, hdr, sechdrs, secstrings);
arch/mips/kernel/vpe.c
651
for (i = 0; i < hdr->e_shnum; i++) {
arch/mips/kernel/vpe.c
672
hdr->e_shnum, &mod);
arch/mips/kernel/vpe.c
675
for (i = 1; i < hdr->e_shnum; i++) {
arch/mips/kernel/vpe.c
680
if (info >= hdr->e_shnum)
arch/mips/kernel/vpe.c
699
((char *)hdr + hdr->e_phoff);
arch/mips/kernel/vpe.c
701
for (i = 0; i < hdr->e_phnum; i++) {
arch/mips/kernel/vpe.c
704
(char *)hdr + phdr->p_offset,
arch/mips/kernel/vpe.c
712
for (i = 0; i < hdr->e_shnum; i++) {
arch/mips/kernel/vpe.c
717
strtab = (char *)hdr +
arch/mips/kernel/vpe.c
724
sechdrs[i].sh_addr = (size_t) hdr +
arch/mips/kernel/vpe.c
800
Elf_Ehdr *hdr;
arch/mips/kernel/vpe.c
807
hdr = (Elf_Ehdr *) v->pbuffer;
arch/mips/kernel/vpe.c
808
if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) == 0) {
arch/mips/tools/elf-entry.c
40
} hdr;
arch/mips/tools/elf-entry.c
51
nread = fread(&hdr, 1, sizeof(hdr), file);
arch/mips/tools/elf-entry.c
52
if (nread != sizeof(hdr)) {
arch/mips/tools/elf-entry.c
58
if (memcmp(hdr.ehdr32.e_ident, ELFMAG, SELFMAG)) {
arch/mips/tools/elf-entry.c
63
switch (hdr.ehdr32.e_ident[EI_CLASS]) {
arch/mips/tools/elf-entry.c
65
switch (hdr.ehdr32.e_ident[EI_DATA]) {
arch/mips/tools/elf-entry.c
67
entry = le32toh(hdr.ehdr32.e_entry);
arch/mips/tools/elf-entry.c
70
entry = be32toh(hdr.ehdr32.e_entry);
arch/mips/tools/elf-entry.c
82
switch (hdr.ehdr32.e_ident[EI_DATA]) {
arch/mips/tools/elf-entry.c
84
entry = le64toh(hdr.ehdr64.e_entry);
arch/mips/tools/elf-entry.c
87
entry = be64toh(hdr.ehdr64.e_entry);
arch/nios2/kernel/module.c
112
int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
arch/parisc/kernel/module.c
267
int module_frob_arch_sections(CONST Elf_Ehdr *hdr,
arch/parisc/kernel/module.c
276
len = hdr->e_shnum * sizeof(me->arch.section[0]);
arch/parisc/kernel/module.c
281
for (i = 1; i < hdr->e_shnum; i++) {
arch/parisc/kernel/module.c
827
int module_finalize(const Elf_Ehdr *hdr,
arch/parisc/kernel/module.c
859
for (i = 1; i < hdr->e_shnum; i++) {
arch/parisc/kernel/module.c
911
secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/parisc/kernel/module.c
912
for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
arch/powerpc/boot/elf.h
155
int parse_elf64(void *hdr, struct elf_info *info);
arch/powerpc/boot/elf.h
156
int parse_elf32(void *hdr, struct elf_info *info);
arch/powerpc/boot/elf_util.c
14
int parse_elf64(void *hdr, struct elf_info *info)
arch/powerpc/boot/elf_util.c
16
Elf64_Ehdr *elf64 = hdr;
arch/powerpc/boot/elf_util.c
50
int parse_elf32(void *hdr, struct elf_info *info)
arch/powerpc/boot/elf_util.c
52
Elf32_Ehdr *elf32 = hdr;
arch/powerpc/boot/of.c
49
static void of_image_hdr(const void *hdr)
arch/powerpc/boot/of.c
51
const Elf64_Ehdr *elf64 = hdr;
arch/powerpc/boot/wii.c
49
struct mipc_infohdr **hdrp, *hdr;
arch/powerpc/boot/wii.c
55
hdr = NULL;
arch/powerpc/boot/wii.c
59
hdr = *hdrp;
arch/powerpc/boot/wii.c
60
if (mipc_check_address((u32)hdr)) {
arch/powerpc/boot/wii.c
61
printf("mini: invalid hdr %08X\n", (u32)hdr);
arch/powerpc/boot/wii.c
62
hdr = NULL;
arch/powerpc/boot/wii.c
65
if (memcmp(hdr->magic, "IPC", 3)) {
arch/powerpc/boot/wii.c
67
hdr = NULL;
arch/powerpc/boot/wii.c
72
return hdr;
arch/powerpc/boot/wii.c
77
struct mipc_infohdr *hdr;
arch/powerpc/boot/wii.c
80
hdr = mipc_get_infohdr();
arch/powerpc/boot/wii.c
81
if (!hdr) {
arch/powerpc/boot/wii.c
86
if (mipc_check_address(hdr->mem2_boundary)) {
arch/powerpc/boot/wii.c
88
hdr->mem2_boundary);
arch/powerpc/boot/wii.c
92
*mem2_boundary = hdr->mem2_boundary;
arch/powerpc/include/asm/guest-state-buffer.h
260
struct kvmppc_gs_header *hdr;
arch/powerpc/include/asm/guest-state-buffer.h
353
return gsb->hdr;
arch/powerpc/include/asm/hvsi.h
33
struct hvsi_header hdr;
arch/powerpc/include/asm/hvsi.h
38
struct hvsi_header hdr;
arch/powerpc/include/asm/hvsi.h
46
struct hvsi_header hdr;
arch/powerpc/include/asm/hvsi.h
51
struct hvsi_header hdr;
arch/powerpc/kernel/module.c
19
static const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
arch/powerpc/kernel/module.c
26
secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/powerpc/kernel/module.c
27
for (i = 1; i < hdr->e_shnum; i++)
arch/powerpc/kernel/module.c
33
int module_finalize(const Elf_Ehdr *hdr,
arch/powerpc/kernel/module.c
44
sect = find_section(hdr, sechdrs, "__ftr_fixup");
arch/powerpc/kernel/module.c
50
sect = find_section(hdr, sechdrs, "__mmu_ftr_fixup");
arch/powerpc/kernel/module.c
57
sect = find_section(hdr, sechdrs, "__fw_ftr_fixup");
arch/powerpc/kernel/module.c
65
sect = find_section(hdr, sechdrs, ".opd");
arch/powerpc/kernel/module.c
73
sect = find_section(hdr, sechdrs, "__spec_barrier_fixup");
arch/powerpc/kernel/module.c
80
sect = find_section(hdr, sechdrs, "__lwsync_fixup");
arch/powerpc/kernel/module_32.c
105
sort((void *)hdr + sechdrs[i].sh_offset,
arch/powerpc/kernel/module_32.c
109
ret += count_relocs((void *)hdr
arch/powerpc/kernel/module_32.c
120
int module_frob_arch_sections(Elf32_Ehdr *hdr,
arch/powerpc/kernel/module_32.c
128
for (i = 0; i < hdr->e_shnum; i++) {
arch/powerpc/kernel/module_32.c
141
= get_plt_size(hdr, sechdrs, secstrings, 0);
arch/powerpc/kernel/module_32.c
143
= get_plt_size(hdr, sechdrs, secstrings, 1);
arch/powerpc/kernel/module_32.c
73
static unsigned long get_plt_size(const Elf32_Ehdr *hdr,
arch/powerpc/kernel/module_32.c
83
for (i = 1; i < hdr->e_shnum; i++) {
arch/powerpc/kernel/module_32.c
97
(void *)hdr + sechdrs[i].sh_offset,
arch/powerpc/kernel/module_64.c
207
static unsigned long get_stubs_size(const Elf64_Ehdr *hdr,
arch/powerpc/kernel/module_64.c
216
for (i = 1; i < hdr->e_shnum; i++) {
arch/powerpc/kernel/module_64.c
250
for (i = 1; i < hdr->e_shnum; i++) {
arch/powerpc/kernel/module_64.c
297
static unsigned long get_got_size(const Elf64_Ehdr *hdr,
arch/powerpc/kernel/module_64.c
305
for (i = 1; i < hdr->e_shnum; i++) {
arch/powerpc/kernel/module_64.c
314
for (i = 1; i < hdr->e_shnum; i++) {
arch/powerpc/kernel/module_64.c
34
bool module_elf_check_arch(Elf_Ehdr *hdr)
arch/powerpc/kernel/module_64.c
36
unsigned long abi_level = hdr->e_flags & 0x3;
arch/powerpc/kernel/module_64.c
430
int module_frob_arch_sections(Elf64_Ehdr *hdr,
arch/powerpc/kernel/module_64.c
438
for (i = 1; i < hdr->e_shnum; i++) {
arch/powerpc/kernel/module_64.c
455
dedotify_versions((void *)hdr + sechdrs[i].sh_offset,
arch/powerpc/kernel/module_64.c
458
dedotify_ext_version_names((void *)hdr + sechdrs[i].sh_offset,
arch/powerpc/kernel/module_64.c
462
dedotify((void *)hdr + sechdrs[i].sh_offset,
arch/powerpc/kernel/module_64.c
464
(void *)hdr
arch/powerpc/kernel/module_64.c
481
sechdrs[me->arch.got_section].sh_size = get_got_size(hdr, sechdrs, me);
arch/powerpc/kernel/module_64.c
492
sechdrs[me->arch.stubs_section].sh_size = get_stubs_size(hdr, sechdrs, secstrings, me);
arch/powerpc/kernel/prom_init.c
2705
struct boot_param_header *hdr;
arch/powerpc/kernel/prom_init.c
2731
hdr = make_room(&mem_start, &mem_end,
arch/powerpc/kernel/prom_init.c
2733
dt_header_start = (unsigned long)hdr;
arch/powerpc/kernel/prom_init.c
2760
hdr->boot_cpuid_phys = cpu_to_be32(prom.cpu);
arch/powerpc/kernel/prom_init.c
2761
hdr->magic = cpu_to_be32(OF_DT_HEADER);
arch/powerpc/kernel/prom_init.c
2762
hdr->totalsize = cpu_to_be32(dt_struct_end - dt_header_start);
arch/powerpc/kernel/prom_init.c
2763
hdr->off_dt_struct = cpu_to_be32(dt_struct_start - dt_header_start);
arch/powerpc/kernel/prom_init.c
2764
hdr->off_dt_strings = cpu_to_be32(dt_string_start - dt_header_start);
arch/powerpc/kernel/prom_init.c
2765
hdr->dt_strings_size = cpu_to_be32(dt_string_end - dt_string_start);
arch/powerpc/kernel/prom_init.c
2766
hdr->off_mem_rsvmap = cpu_to_be32(((unsigned long)rsvmap) - dt_header_start);
arch/powerpc/kernel/prom_init.c
2767
hdr->version = cpu_to_be32(OF_DT_VERSION);
arch/powerpc/kernel/prom_init.c
2769
hdr->last_comp_version = cpu_to_be32(0x10);
arch/powerpc/kernel/prom_init.c
3241
unsigned long hdr;
arch/powerpc/kernel/prom_init.c
3415
hdr = dt_header_start;
arch/powerpc/kernel/prom_init.c
3418
prom_debug("->dt_header_start=0x%lx\n", hdr);
arch/powerpc/kernel/prom_init.c
3425
setup_secure_guest(kbase, hdr);
arch/powerpc/kernel/prom_init.c
3427
__start(hdr, kbase, 0, 0, 0, 0, 0);
arch/powerpc/kvm/book3s_64_mmu_hv.c
1701
struct kvm_get_htab_header hdr;
arch/powerpc/kvm/book3s_64_mmu_hv.c
1725
while (nb + sizeof(hdr) + HPTE_SIZE < count) {
arch/powerpc/kvm/book3s_64_mmu_hv.c
1728
hdr.n_valid = 0;
arch/powerpc/kvm/book3s_64_mmu_hv.c
1729
hdr.n_invalid = 0;
arch/powerpc/kvm/book3s_64_mmu_hv.c
1731
nb += sizeof(hdr);
arch/powerpc/kvm/book3s_64_mmu_hv.c
1732
lbuf = (unsigned long __user *)(buf + sizeof(hdr));
arch/powerpc/kvm/book3s_64_mmu_hv.c
1743
hdr.index = i;
arch/powerpc/kvm/book3s_64_mmu_hv.c
1747
hdr.n_valid < 0xffff &&
arch/powerpc/kvm/book3s_64_mmu_hv.c
1751
++hdr.n_valid;
arch/powerpc/kvm/book3s_64_mmu_hv.c
1763
hdr.n_invalid < 0xffff &&
arch/powerpc/kvm/book3s_64_mmu_hv.c
1766
++hdr.n_invalid;
arch/powerpc/kvm/book3s_64_mmu_hv.c
1772
if (hdr.n_valid || hdr.n_invalid) {
arch/powerpc/kvm/book3s_64_mmu_hv.c
1774
if (__copy_to_user(hptr, &hdr, sizeof(hdr)))
arch/powerpc/kvm/book3s_64_mmu_hv.c
1800
struct kvm_get_htab_header hdr;
arch/powerpc/kvm/book3s_64_mmu_hv.c
1831
for (nb = 0; nb + sizeof(hdr) <= count; ) {
arch/powerpc/kvm/book3s_64_mmu_hv.c
1833
if (__copy_from_user(&hdr, buf, sizeof(hdr)))
arch/powerpc/kvm/book3s_64_mmu_hv.c
1837
if (nb + hdr.n_valid * HPTE_SIZE > count)
arch/powerpc/kvm/book3s_64_mmu_hv.c
1840
nb += sizeof(hdr);
arch/powerpc/kvm/book3s_64_mmu_hv.c
1841
buf += sizeof(hdr);
arch/powerpc/kvm/book3s_64_mmu_hv.c
1844
i = hdr.index;
arch/powerpc/kvm/book3s_64_mmu_hv.c
1846
i + hdr.n_valid + hdr.n_invalid > kvmppc_hpt_npte(&kvm->arch.hpt))
arch/powerpc/kvm/book3s_64_mmu_hv.c
1851
for (j = 0; j < hdr.n_valid; ++j) {
arch/powerpc/kvm/book3s_64_mmu_hv.c
1898
for (j = 0; j < hdr.n_invalid; ++j) {
arch/powerpc/kvm/book3s_64_mmu_radix.c
1251
u8 hdr;
arch/powerpc/kvm/book3s_64_mmu_radix.c
1336
p->hdr = 0;
arch/powerpc/kvm/book3s_64_mmu_radix.c
1353
if (!p->hdr) {
arch/powerpc/kvm/book3s_64_mmu_radix.c
1359
p->hdr = 1;
arch/powerpc/kvm/guest-state-buffer.c
36
gsb->hdr = kzalloc(size, GFP_KERNEL);
arch/powerpc/kvm/guest-state-buffer.c
37
if (!gsb->hdr)
arch/powerpc/kvm/guest-state-buffer.c
45
gsb->hdr->nelems = cpu_to_be32(0);
arch/powerpc/kvm/guest-state-buffer.c
61
kfree(gsb->hdr);
arch/powerpc/kvm/guest-state-buffer.c
630
__pa(gsb->hdr), gsb->capacity, &i);
arch/powerpc/kvm/guest-state-buffer.c
657
__pa(gsb->hdr), gsb->capacity, &i);
arch/powerpc/kvm/test-guest-state-buffer.c
18
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, gsb->hdr);
arch/powerpc/net/bpf_jit_comp.c
118
struct bpf_binary_header *hdr;
arch/powerpc/net/bpf_jit_comp.c
144
struct bpf_binary_header *hdr = NULL;
arch/powerpc/net/bpf_jit_comp.c
188
hdr = jit_data->hdr;
arch/powerpc/net/bpf_jit_comp.c
189
image = (void *)hdr + ((void *)fimage - (void *)fhdr);
arch/powerpc/net/bpf_jit_comp.c
251
fhdr = bpf_jit_binary_pack_alloc(alloclen, &fimage, 4, &hdr, &image,
arch/powerpc/net/bpf_jit_comp.c
273
bpf_arch_text_copy(&fhdr->size, &hdr->size, sizeof(hdr->size));
arch/powerpc/net/bpf_jit_comp.c
274
bpf_jit_binary_pack_free(fhdr, hdr);
arch/powerpc/net/bpf_jit_comp.c
303
if (bpf_jit_binary_pack_finalize(fhdr, hdr)) {
arch/powerpc/net/bpf_jit_comp.c
318
jit_data->hdr = hdr;
arch/powerpc/net/bpf_jit_comp.c
421
struct bpf_binary_header *hdr;
arch/powerpc/net/bpf_jit_comp.c
429
bpf_jit_binary_pack_finalize(jit_data->fhdr, jit_data->hdr);
arch/powerpc/net/bpf_jit_comp.c
433
hdr = bpf_jit_binary_pack_hdr(fp);
arch/powerpc/net/bpf_jit_comp.c
434
bpf_jit_binary_pack_free(hdr, NULL);
arch/powerpc/platforms/powermac/bootx_init.c
353
struct boot_param_header *hdr;
arch/powerpc/platforms/powermac/bootx_init.c
362
hdr = (struct boot_param_header *)mem_start;
arch/powerpc/platforms/powermac/bootx_init.c
365
hdr->off_mem_rsvmap = ((unsigned long)rsvmap) - mem_start;
arch/powerpc/platforms/powermac/bootx_init.c
386
hdr->off_dt_strings = bootx_dt_strbase - mem_start;
arch/powerpc/platforms/powermac/bootx_init.c
387
hdr->dt_strings_size = bootx_dt_strend - bootx_dt_strbase;
arch/powerpc/platforms/powermac/bootx_init.c
392
hdr->off_dt_struct = mem_end - mem_start;
arch/powerpc/platforms/powermac/bootx_init.c
397
hdr->boot_cpuid_phys = 0;
arch/powerpc/platforms/powermac/bootx_init.c
398
hdr->magic = OF_DT_HEADER;
arch/powerpc/platforms/powermac/bootx_init.c
399
hdr->totalsize = mem_end - mem_start;
arch/powerpc/platforms/powermac/bootx_init.c
400
hdr->version = OF_DT_VERSION;
arch/powerpc/platforms/powermac/bootx_init.c
402
hdr->last_comp_version = 0x10;
arch/powerpc/platforms/powermac/bootx_init.c
422
return (unsigned long)hdr;
arch/powerpc/platforms/powermac/bootx_init.c
466
unsigned long hdr;
arch/powerpc/platforms/powermac/bootx_init.c
581
hdr = bootx_flatten_dt(space);
arch/powerpc/platforms/powermac/bootx_init.c
594
__start(hdr, KERNELBASE + offset, 0);
arch/powerpc/platforms/powermac/low_i2c.c
678
struct pmu_i2c_hdr *hdr = (struct pmu_i2c_hdr *)&req->data[1];
arch/powerpc/platforms/powermac/low_i2c.c
692
hdr->bus = bus->channel;
arch/powerpc/platforms/powermac/low_i2c.c
693
hdr->count = len;
arch/powerpc/platforms/powermac/low_i2c.c
699
hdr->address = addrdir;
arch/powerpc/platforms/powermac/low_i2c.c
700
hdr->mode = PMU_I2C_MODE_SIMPLE;
arch/powerpc/platforms/powermac/low_i2c.c
706
hdr->address = addrdir & 0xfe;
arch/powerpc/platforms/powermac/low_i2c.c
707
hdr->comb_addr = addrdir;
arch/powerpc/platforms/powermac/low_i2c.c
708
hdr->sub_addr = subaddr;
arch/powerpc/platforms/powermac/low_i2c.c
710
hdr->mode = PMU_I2C_MODE_STDSUB;
arch/powerpc/platforms/powermac/low_i2c.c
712
hdr->mode = PMU_I2C_MODE_COMBINED;
arch/powerpc/platforms/powermac/low_i2c.c
725
memcpy(hdr->data, data, len);
arch/powerpc/platforms/powermac/low_i2c.c
747
hdr->bus = PMU_I2C_BUS_STATUS;
arch/powerpc/platforms/powermac/nvram.c
228
static u8 chrp_checksum(struct chrp_header* hdr)
arch/powerpc/platforms/powermac/nvram.c
231
u16 sum = hdr->signature;
arch/powerpc/platforms/powermac/nvram.c
232
for (ptr = (u8 *)&hdr->len; ptr < hdr->data; ptr++)
arch/powerpc/platforms/powermac/nvram.c
265
if (hdr99->hdr.signature != CORE99_SIGNATURE) {
arch/powerpc/platforms/powermac/nvram.c
269
if (hdr99->hdr.cksum != chrp_checksum(&hdr99->hdr)) {
arch/powerpc/platforms/powermac/nvram.c
440
struct chrp_header* hdr;
arch/powerpc/platforms/powermac/nvram.c
446
hdr = (struct chrp_header *)buffer;
arch/powerpc/platforms/powermac/nvram.c
453
if (!strcmp(hdr->name, "common"))
arch/powerpc/platforms/powermac/nvram.c
455
if (!strcmp(hdr->name, "APL,MacOS75")) {
arch/powerpc/platforms/powermac/nvram.c
459
offset += (hdr->len * 0x10);
arch/powerpc/platforms/powermac/nvram.c
488
hdr99->hdr.signature = CORE99_SIGNATURE;
arch/powerpc/platforms/powermac/nvram.c
489
hdr99->hdr.cksum = chrp_checksum(&hdr99->hdr);
arch/powerpc/platforms/powermac/nvram.c
62
struct chrp_header hdr;
arch/powerpc/platforms/powernv/opal-prd.c
225
struct opal_prd_msg_header hdr;
arch/powerpc/platforms/powernv/opal-prd.c
230
size = sizeof(hdr);
arch/powerpc/platforms/powernv/opal-prd.c
236
rc = copy_from_user(&hdr, buf, sizeof(hdr));
arch/powerpc/platforms/powernv/opal-prd.c
240
size = be16_to_cpu(hdr.size);
arch/powerpc/platforms/powernv/opal-prd.c
346
struct opal_prd_msg_header *hdr;
arch/powerpc/platforms/powernv/opal-prd.c
356
hdr = (void *)msg->params;
arch/powerpc/platforms/powernv/opal-prd.c
357
msg_size = be16_to_cpu(hdr->size);
arch/powerpc/platforms/ps3/repository.c
24
static void _dump_field(const char *hdr, u64 n, const char *func, int line)
arch/powerpc/platforms/ps3/repository.c
35
pr_devel("%s:%d: %s%016llx : %s\n", func, line, hdr, n, s);
arch/powerpc/platforms/pseries/papr-hvpipe.c
330
struct papr_hvpipe_hdr hdr;
arch/powerpc/platforms/pseries/papr-hvpipe.c
356
hdr.version = 0;
arch/powerpc/platforms/pseries/papr-hvpipe.c
357
hdr.flags = 0;
arch/powerpc/platforms/pseries/papr-hvpipe.c
367
hdr.flags = HVPIPE_MSG_AVAILABLE;
arch/powerpc/platforms/pseries/papr-hvpipe.c
369
hdr.flags = HVPIPE_LOST_CONNECTION;
arch/powerpc/platforms/pseries/papr-hvpipe.c
377
ret = copy_to_user(buf, &hdr, HVPIPE_HDR_LEN);
arch/powerpc/platforms/pseries/papr-hvpipe.c
385
if (hdr.flags & HVPIPE_MSG_AVAILABLE) {
arch/powerpc/platforms/pseries/papr-hvpipe.c
392
} else if (hdr.flags & HVPIPE_LOST_CONNECTION) {
arch/powerpc/platforms/pseries/papr_platform_attributes.c
120
hdr = (struct h_energy_scale_info_hdr *) buf;
arch/powerpc/platforms/pseries/papr_platform_attributes.c
122
(buf + be64_to_cpu(hdr->array_offset));
arch/powerpc/platforms/pseries/papr_platform_attributes.c
125
be64_to_cpu(hdr->array_offset) + (be64_to_cpu(hdr->num_attrs)
arch/powerpc/platforms/pseries/papr_platform_attributes.c
81
struct h_energy_scale_info_hdr *hdr;
arch/powerpc/platforms/pseries/papr_scm.c
561
struct nd_cmd_get_config_data_hdr *hdr)
arch/powerpc/platforms/pseries/papr_scm.c
568
if ((hdr->in_offset + hdr->in_length) > p->metadata_size)
arch/powerpc/platforms/pseries/papr_scm.c
571
for (len = hdr->in_length; len; len -= read) {
arch/powerpc/platforms/pseries/papr_scm.c
573
data_offset = hdr->in_length - len;
arch/powerpc/platforms/pseries/papr_scm.c
574
offset = hdr->in_offset + data_offset;
arch/powerpc/platforms/pseries/papr_scm.c
595
*(uint64_t *)(hdr->out_buf + data_offset) = be64_to_cpu(data[0]);
arch/powerpc/platforms/pseries/papr_scm.c
598
*(uint32_t *)(hdr->out_buf + data_offset) = be32_to_cpu(data[0] & 0xffffffff);
arch/powerpc/platforms/pseries/papr_scm.c
602
*(uint16_t *)(hdr->out_buf + data_offset) = be16_to_cpu(data[0] & 0xffff);
arch/powerpc/platforms/pseries/papr_scm.c
606
*(uint8_t *)(hdr->out_buf + data_offset) = (data[0] & 0xff);
arch/powerpc/platforms/pseries/papr_scm.c
614
struct nd_cmd_set_config_hdr *hdr)
arch/powerpc/platforms/pseries/papr_scm.c
622
if ((hdr->in_offset + hdr->in_length) > p->metadata_size)
arch/powerpc/platforms/pseries/papr_scm.c
625
for (len = hdr->in_length; len; len -= wrote) {
arch/powerpc/platforms/pseries/papr_scm.c
627
data_offset = hdr->in_length - len;
arch/powerpc/platforms/pseries/papr_scm.c
628
offset = hdr->in_offset + data_offset;
arch/powerpc/platforms/pseries/papr_scm.c
631
data = *(uint64_t *)(hdr->in_buf + data_offset);
arch/powerpc/platforms/pseries/papr_scm.c
635
data = *(uint32_t *)(hdr->in_buf + data_offset);
arch/powerpc/platforms/pseries/papr_scm.c
640
data = *(uint16_t *)(hdr->in_buf + data_offset);
arch/powerpc/platforms/pseries/papr_scm.c
645
data_be = *(uint8_t *)(hdr->in_buf + data_offset);
arch/riscv/include/asm/elf.h
40
extern bool compat_elf_check_arch(Elf32_Ehdr *hdr);
arch/riscv/include/asm/module.h
115
static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
arch/riscv/include/asm/module.h
120
const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/riscv/include/asm/module.h
122
for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) {
arch/riscv/include/uapi/asm/ptrace.h
92
struct __riscv_ctx_hdr hdr;
arch/riscv/kernel/alternative.c
179
const Elf_Ehdr *hdr;
arch/riscv/kernel/alternative.c
184
hdr = (Elf_Ehdr *)vdso_start;
arch/riscv/kernel/alternative.c
185
shdr = (void *)hdr + hdr->e_shoff;
arch/riscv/kernel/alternative.c
186
alt = find_section(hdr, shdr, ".alternative");
arch/riscv/kernel/alternative.c
190
begin = (void *)hdr + alt->sh_offset,
arch/riscv/kernel/alternative.c
191
end = (void *)hdr + alt->sh_offset + alt->sh_size,
arch/riscv/kernel/hibernate.c
101
hdr->hartid = cpuid_to_hartid_map(sleep_cpu);
arch/riscv/kernel/hibernate.c
102
hdr->saved_satp = csr_read(CSR_SATP);
arch/riscv/kernel/hibernate.c
103
hdr->restore_cpu_addr = (unsigned long)__hibernate_cpu_resume;
arch/riscv/kernel/hibernate.c
115
struct arch_hibernate_hdr *hdr = addr;
arch/riscv/kernel/hibernate.c
120
if (memcmp(&hdr->invariants, &invariants, sizeof(invariants))) {
arch/riscv/kernel/hibernate.c
125
sleep_cpu = riscv_hartid_to_cpuid(hdr->hartid);
arch/riscv/kernel/hibernate.c
139
resume_hdr = *hdr;
arch/riscv/kernel/hibernate.c
94
struct arch_hibernate_hdr *hdr = addr;
arch/riscv/kernel/hibernate.c
96
if (max_size < sizeof(*hdr))
arch/riscv/kernel/hibernate.c
99
arch_hdr_invariants(&hdr->invariants);
arch/riscv/kernel/module.c
895
int module_finalize(const Elf_Ehdr *hdr,
arch/riscv/kernel/module.c
901
s = find_section(hdr, sechdrs, ".alternative");
arch/riscv/kernel/process.c
119
bool compat_elf_check_arch(Elf32_Ehdr *hdr)
arch/riscv/kernel/process.c
122
hdr->e_machine == EM_RISCV &&
arch/riscv/kernel/process.c
123
hdr->e_ident[EI_CLASS] == ELFCLASS32;
arch/riscv/kernel/signal.c
222
void __user *sc_ext_ptr = &sc->sc_extdesc.hdr;
arch/riscv/kernel/signal.c
357
struct __riscv_ctx_hdr __user *sc_ext_ptr = &sc->sc_extdesc.hdr;
arch/riscv/net/bpf_jit_core.c
251
struct bpf_binary_header *hdr;
arch/riscv/net/bpf_jit_core.c
262
hdr = bpf_jit_binary_pack_hdr(prog);
arch/riscv/net/bpf_jit_core.c
263
bpf_jit_binary_pack_free(hdr, NULL);
arch/s390/boot/ipl_parm.c
57
ipl_block.hdr.version <= IPL_MAX_SUPPORTED_VERSION)
arch/s390/boot/ipl_report.c
101
ipl_secure_flag = !!(ipl_block.hdr.flags & IPL_PL_FLAG_SIPL);
arch/s390/boot/ipl_report.c
99
!(ipl_block.hdr.flags & IPL_PL_FLAG_IPLSR))
arch/s390/hypfs/hypfs_diag.c
166
struct dbfs_d204_hdr hdr; /* 64 byte header */
arch/s390/hypfs/hypfs_diag.c
176
buf_size = PAGE_SIZE * (diag204_buf_pages + 1) + sizeof(d204->hdr);
arch/s390/hypfs/hypfs_diag.c
180
d204 = PTR_ALIGN(base + sizeof(d204->hdr), PAGE_SIZE) - sizeof(d204->hdr);
arch/s390/hypfs/hypfs_diag.c
186
d204->hdr.version = DBFS_D204_HDR_VERSION;
arch/s390/hypfs/hypfs_diag.c
187
d204->hdr.len = PAGE_SIZE * diag204_buf_pages;
arch/s390/hypfs/hypfs_diag.c
188
d204->hdr.sc = diag204_store_sc;
arch/s390/hypfs/hypfs_diag.c
191
*size = d204->hdr.len + sizeof(struct dbfs_d204_hdr);
arch/s390/hypfs/hypfs_diag0c.c
85
memset(&diag0c_data->hdr, 0, sizeof(diag0c_data->hdr));
arch/s390/hypfs/hypfs_diag0c.c
86
store_tod_clock_ext((union tod_clock *)diag0c_data->hdr.tod_ext);
arch/s390/hypfs/hypfs_diag0c.c
87
diag0c_data->hdr.len = count * sizeof(struct hypfs_diag0c_entry);
arch/s390/hypfs/hypfs_diag0c.c
88
diag0c_data->hdr.version = DBFS_D0C_HDR_VERSION;
arch/s390/hypfs/hypfs_diag0c.c
89
diag0c_data->hdr.count = count;
arch/s390/hypfs/hypfs_diag0c.c
92
*size = diag0c_data->hdr.len + sizeof(struct hypfs_diag0c_hdr);
arch/s390/hypfs/hypfs_diag_fs.c
105
static inline __u8 cpu_info__ctidx(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
108
return ((struct diag204_cpu_info *)hdr)->ctidx;
arch/s390/hypfs/hypfs_diag_fs.c
110
return ((struct diag204_x_cpu_info *)hdr)->ctidx;
arch/s390/hypfs/hypfs_diag_fs.c
113
static inline __u16 cpu_info__cpu_addr(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
116
return ((struct diag204_cpu_info *)hdr)->cpu_addr;
arch/s390/hypfs/hypfs_diag_fs.c
118
return ((struct diag204_x_cpu_info *)hdr)->cpu_addr;
arch/s390/hypfs/hypfs_diag_fs.c
121
static inline __u64 cpu_info__acc_time(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
124
return ((struct diag204_cpu_info *)hdr)->acc_time;
arch/s390/hypfs/hypfs_diag_fs.c
126
return ((struct diag204_x_cpu_info *)hdr)->acc_time;
arch/s390/hypfs/hypfs_diag_fs.c
129
static inline __u64 cpu_info__lp_time(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
132
return ((struct diag204_cpu_info *)hdr)->lp_time;
arch/s390/hypfs/hypfs_diag_fs.c
134
return ((struct diag204_x_cpu_info *)hdr)->lp_time;
arch/s390/hypfs/hypfs_diag_fs.c
137
static inline __u64 cpu_info__online_time(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
142
return ((struct diag204_x_cpu_info *)hdr)->online_time;
arch/s390/hypfs/hypfs_diag_fs.c
155
static inline __u8 phys_hdr__cpus(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
158
return ((struct diag204_phys_hdr *)hdr)->cpus;
arch/s390/hypfs/hypfs_diag_fs.c
160
return ((struct diag204_x_phys_hdr *)hdr)->cpus;
arch/s390/hypfs/hypfs_diag_fs.c
173
static inline __u16 phys_cpu__cpu_addr(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
176
return ((struct diag204_phys_cpu *)hdr)->cpu_addr;
arch/s390/hypfs/hypfs_diag_fs.c
178
return ((struct diag204_x_phys_cpu *)hdr)->cpu_addr;
arch/s390/hypfs/hypfs_diag_fs.c
181
static inline __u64 phys_cpu__mgm_time(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
184
return ((struct diag204_phys_cpu *)hdr)->mgm_time;
arch/s390/hypfs/hypfs_diag_fs.c
186
return ((struct diag204_x_phys_cpu *)hdr)->mgm_time;
arch/s390/hypfs/hypfs_diag_fs.c
189
static inline __u64 phys_cpu__ctidx(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
192
return ((struct diag204_phys_cpu *)hdr)->ctidx;
arch/s390/hypfs/hypfs_diag_fs.c
194
return ((struct diag204_x_phys_cpu *)hdr)->ctidx;
arch/s390/hypfs/hypfs_diag_fs.c
47
static inline __u8 info_blk_hdr__npar(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
50
return ((struct diag204_info_blk_hdr *)hdr)->npar;
arch/s390/hypfs/hypfs_diag_fs.c
52
return ((struct diag204_x_info_blk_hdr *)hdr)->npar;
arch/s390/hypfs/hypfs_diag_fs.c
55
static inline __u8 info_blk_hdr__flags(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
58
return ((struct diag204_info_blk_hdr *)hdr)->flags;
arch/s390/hypfs/hypfs_diag_fs.c
60
return ((struct diag204_x_info_blk_hdr *)hdr)->flags;
arch/s390/hypfs/hypfs_diag_fs.c
73
static inline __u8 part_hdr__rcpus(enum diag204_format type, void *hdr)
arch/s390/hypfs/hypfs_diag_fs.c
76
return ((struct diag204_part_hdr *)hdr)->cpus;
arch/s390/hypfs/hypfs_diag_fs.c
78
return ((struct diag204_x_part_hdr *)hdr)->rcpus;
arch/s390/hypfs/hypfs_diag_fs.c
81
static inline void part_hdr__part_name(enum diag204_format type, void *hdr,
arch/s390/hypfs/hypfs_diag_fs.c
85
memcpy(name, ((struct diag204_part_hdr *)hdr)->part_name,
arch/s390/hypfs/hypfs_diag_fs.c
88
memcpy(name, ((struct diag204_x_part_hdr *)hdr)->part_name,
arch/s390/hypfs/hypfs_vm.c
103
d2fc = diag2fc_store(diag2fc_guest_query, &count, sizeof(d2fc->hdr));
arch/s390/hypfs/hypfs_vm.c
106
store_tod_clock_ext(&d2fc->hdr.tod_ext);
arch/s390/hypfs/hypfs_vm.c
107
d2fc->hdr.len = count * sizeof(struct diag2fc_data);
arch/s390/hypfs/hypfs_vm.c
108
d2fc->hdr.version = DBFS_D2FC_HDR_VERSION;
arch/s390/hypfs/hypfs_vm.c
109
d2fc->hdr.count = count;
arch/s390/hypfs/hypfs_vm.c
110
memset(&d2fc->hdr.reserved, 0, sizeof(d2fc->hdr.reserved));
arch/s390/hypfs/hypfs_vm.c
113
*size = d2fc->hdr.len + sizeof(struct dbfs_d2fc_hdr);
arch/s390/hypfs/hypfs_vm.c
94
struct dbfs_d2fc_hdr hdr; /* 64 byte header */
arch/s390/include/asm/clp.h
43
struct clp_req_hdr hdr;
arch/s390/include/asm/clp.h
47
struct clp_rsp_hdr hdr;
arch/s390/include/asm/diag.h
252
struct diag204_x_part_hdr hdr;
arch/s390/include/asm/diag.h
257
struct diag204_x_phys_hdr hdr;
arch/s390/include/asm/fpu-types.h
25
struct kernel_fpu_hdr hdr;
arch/s390/include/asm/fpu-types.h
31
struct kernel_fpu_hdr hdr; \
arch/s390/include/asm/fpu.h
193
state->hdr.mask = mask;
arch/s390/include/asm/fpu.h
203
int mask = state->hdr.mask;
arch/s390/include/asm/ipl.h
19
struct ipl_pl_hdr hdr;
arch/s390/include/asm/module.h
41
static inline const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
arch/s390/include/asm/module.h
45
const char *secstrs = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/s390/include/asm/module.h
48
for (s = sechdrs, se = sechdrs + hdr->e_shnum; s < se; s++) {
arch/s390/include/asm/pci_clp.h
103
struct clp_req_hdr hdr;
arch/s390/include/asm/pci_clp.h
111
struct clp_rsp_hdr hdr;
arch/s390/include/asm/pci_clp.h
146
struct clp_req_hdr hdr;
arch/s390/include/asm/pci_clp.h
155
struct clp_rsp_hdr hdr;
arch/s390/include/asm/pci_clp.h
181
struct clp_req_hdr hdr;
arch/s390/include/asm/pci_clp.h
192
struct clp_rsp_hdr hdr;
arch/s390/include/asm/pci_clp.h
59
struct clp_rsp_hdr hdr;
arch/s390/include/asm/pci_clp.h
73
struct clp_req_hdr hdr;
arch/s390/include/asm/pci_clp.h
80
struct clp_rsp_hdr hdr;
arch/s390/include/asm/uv.h
412
struct uv_secret_list_item_hdr hdr;
arch/s390/include/uapi/asm/hypfs.h
51
struct hypfs_diag0c_hdr hdr; /* 64 byte header */
arch/s390/kernel/crash_dump.c
619
void *ptr, *hdr;
arch/s390/kernel/crash_dump.c
641
hdr = kzalloc(alloc_size, GFP_KERNEL);
arch/s390/kernel/crash_dump.c
648
if (!hdr)
arch/s390/kernel/crash_dump.c
652
phdr_notes = ehdr_init(hdr, mem_chunk_cnt + phdr_text_cnt);
arch/s390/kernel/crash_dump.c
662
hdr_off = PTR_DIFF(ptr, hdr);
arch/s390/kernel/crash_dump.c
663
ptr = notes_init(phdr_notes, ptr, ((unsigned long) hdr) + hdr_off);
arch/s390/kernel/crash_dump.c
670
hdr_off = PTR_DIFF(ptr, hdr);
arch/s390/kernel/crash_dump.c
671
*addr = (unsigned long long) hdr;
arch/s390/kernel/fpu.c
24
flags &= state->hdr.mask;
arch/s390/kernel/fpu.c
26
fpu_stfpc(&state->hdr.fpc);
arch/s390/kernel/fpu.c
73
flags &= state->hdr.mask;
arch/s390/kernel/fpu.c
75
fpu_lfpc(&state->hdr.fpc);
arch/s390/kernel/ipl.c
1050
DEFINE_IPL_ATTR_SCP_DATA_RW(reipl_eckd, reipl_block_eckd->hdr,
arch/s390/kernel/ipl.c
1062
reipl_block_eckd->hdr,
arch/s390/kernel/ipl.c
1160
reipl_block_actual->hdr.len);
arch/s390/kernel/ipl.c
1279
ipb->hdr.len = IPL_BP_CCW_LEN;
arch/s390/kernel/ipl.c
1280
ipb->hdr.version = IPL_PARM_BLOCK_VERSION;
arch/s390/kernel/ipl.c
1391
reipl_block_fcp->hdr.len = IPL_BP_FCP_LEN;
arch/s390/kernel/ipl.c
1392
reipl_block_fcp->hdr.version = IPL_PARM_BLOCK_VERSION;
arch/s390/kernel/ipl.c
1447
reipl_block_nvme->hdr.len = IPL_BP_NVME_LEN;
arch/s390/kernel/ipl.c
1448
reipl_block_nvme->hdr.version = IPL_PARM_BLOCK_VERSION;
arch/s390/kernel/ipl.c
1499
reipl_block_eckd->hdr.len = IPL_BP_ECKD_LEN;
arch/s390/kernel/ipl.c
1500
reipl_block_eckd->hdr.version = IPL_PARM_BLOCK_VERSION;
arch/s390/kernel/ipl.c
1596
dump_block_fcp->hdr,
arch/s390/kernel/ipl.c
1599
DEFINE_IPL_ATTR_SCP_DATA_RW(dump_fcp, dump_block_fcp->hdr,
arch/s390/kernel/ipl.c
1632
dump_block_nvme->hdr,
arch/s390/kernel/ipl.c
1635
DEFINE_IPL_ATTR_SCP_DATA_RW(dump_nvme, dump_block_nvme->hdr,
arch/s390/kernel/ipl.c
1662
dump_block_eckd->hdr,
arch/s390/kernel/ipl.c
1671
DEFINE_IPL_ATTR_SCP_DATA_RW(dump_eckd, dump_block_eckd->hdr,
arch/s390/kernel/ipl.c
1815
dump_block_ccw->hdr.len = IPL_BP_CCW_LEN;
arch/s390/kernel/ipl.c
1816
dump_block_ccw->hdr.version = IPL_PARM_BLOCK_VERSION;
arch/s390/kernel/ipl.c
1837
dump_block_fcp->hdr.len = IPL_BP_FCP_LEN;
arch/s390/kernel/ipl.c
1838
dump_block_fcp->hdr.version = IPL_PARM_BLOCK_VERSION;
arch/s390/kernel/ipl.c
1860
dump_block_nvme->hdr.len = IPL_BP_NVME_LEN;
arch/s390/kernel/ipl.c
1861
dump_block_nvme->hdr.version = IPL_PARM_BLOCK_VERSION;
arch/s390/kernel/ipl.c
1883
dump_block_eckd->hdr.len = IPL_BP_ECKD_LEN;
arch/s390/kernel/ipl.c
1884
dump_block_eckd->hdr.version = IPL_PARM_BLOCK_VERSION;
arch/s390/kernel/ipl.c
1945
csum = (__force unsigned int)cksm(reipl_block_actual, reipl_block_actual->hdr.len, 0);
arch/s390/kernel/ipl.c
2444
report->size = ALIGN(ipib->hdr.len, 8);
arch/s390/kernel/ipl.c
2467
memcpy(ptr, report->ipib, report->ipib->hdr.len);
arch/s390/kernel/ipl.c
2470
ipib->hdr.flags |= IPL_PL_FLAG_SIPL;
arch/s390/kernel/ipl.c
2471
ipib->hdr.flags |= IPL_PL_FLAG_IPLSR;
arch/s390/kernel/ipl.c
2472
ptr += report->ipib->hdr.len;
arch/s390/kernel/ipl.c
460
ipl_block.hdr.len);
arch/s390/kernel/ipl.c
825
DEFINE_IPL_ATTR_SCP_DATA_RW(reipl_fcp, reipl_block_fcp->hdr,
arch/s390/kernel/ipl.c
844
reipl_block_fcp->hdr,
arch/s390/kernel/ipl.c
950
DEFINE_IPL_ATTR_SCP_DATA_RW(reipl_nvme, reipl_block_nvme->hdr,
arch/s390/kernel/ipl.c
967
reipl_block_nvme->hdr,
arch/s390/kernel/module.c
108
int module_frob_arch_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
arch/s390/kernel/module.c
120
for (i = 0; i < hdr->e_shnum; i++)
arch/s390/kernel/module.c
137
symbols = (void *) hdr + symtab->sh_offset;
arch/s390/kernel/module.c
138
strings = (void *) hdr + sechdrs[symtab->sh_link].sh_offset;
arch/s390/kernel/module.c
153
for (i = 0; i < hdr->e_shnum; i++) {
arch/s390/kernel/module.c
157
rela = (void *) hdr + sechdrs[i].sh_offset;
arch/s390/kernel/module.c
493
int module_finalize(const Elf_Ehdr *hdr,
arch/s390/kernel/module.c
513
secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/s390/kernel/module.c
514
for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
arch/s390/kernel/setup.c
853
if (ipl_block.hdr.flags & IPL_PL_FLAG_SIPL)
arch/s390/kernel/sthyi.c
125
struct hdr_sctn hdr;
arch/s390/kernel/sthyi.c
178
sctns->hdr.infhdln = sizeof(sctns->hdr);
arch/s390/kernel/sthyi.c
179
sctns->hdr.infmoff = sizeof(sctns->hdr);
arch/s390/kernel/sthyi.c
180
sctns->hdr.infmlen = sizeof(sctns->mac);
arch/s390/kernel/sthyi.c
181
sctns->hdr.infplen = sizeof(sctns->par);
arch/s390/kernel/sthyi.c
182
sctns->hdr.infpoff = sctns->hdr.infhdln + sctns->hdr.infmlen;
arch/s390/kernel/sthyi.c
183
sctns->hdr.infhtotl = sctns->hdr.infpoff + sctns->hdr.infplen;
arch/s390/kernel/sthyi.c
237
for (i = 0; i < block->hdr.cpus; i++) {
arch/s390/kernel/sthyi.c
265
for (i = 0; i < block->hdr.rcpus; i++) {
arch/s390/kernel/sthyi.c
378
if (part_block->hdr.mtid)
arch/s390/kernel/sthyi.c
384
memcpy(sctns->par.infplgnm, part_block->hdr.hardware_group_name,
arch/s390/kernel/sthyi.c
402
sctns->hdr.infhflg1 |= HDR_PERF_UNAV;
arch/s390/kernel/uv.c
765
*secret = list->secrets[i].hdr;
arch/s390/kernel/vdso.c
147
const struct elf64_hdr *hdr;
arch/s390/kernel/vdso.c
149
hdr = (struct elf64_hdr *)vdso_start;
arch/s390/kernel/vdso.c
150
shdr = (void *)hdr + hdr->e_shoff;
arch/s390/kernel/vdso.c
151
alt = find_section(hdr, shdr, ".altinstructions");
arch/s390/kernel/vdso.c
154
start = (void *)hdr + alt->sh_offset;
arch/s390/kernel/vdso.c
155
end = (void *)hdr + alt->sh_offset + alt->sh_size;
arch/s390/kvm/kvm-s390.c
2581
void *hdr;
arch/s390/kvm/kvm-s390.c
2597
hdr = vmalloc(parms.length);
arch/s390/kvm/kvm-s390.c
2598
if (!hdr)
arch/s390/kvm/kvm-s390.c
2602
if (!copy_from_user(hdr, (void __user *)parms.origin,
arch/s390/kvm/kvm-s390.c
2604
r = kvm_s390_pv_set_sec_parms(kvm, hdr, parms.length,
arch/s390/kvm/kvm-s390.c
2607
vfree(hdr);
arch/s390/kvm/kvm-s390.h
309
int kvm_s390_pv_set_sec_parms(struct kvm *kvm, void *hdr, u64 length, u16 *rc,
arch/s390/kvm/pv.c
749
int kvm_s390_pv_set_sec_parms(struct kvm *kvm, void *hdr, u64 length, u16 *rc,
arch/s390/kvm/pv.c
755
.sec_header_origin = (u64)hdr,
arch/s390/pci/pci_clp.c
135
rrb->request.hdr.len = sizeof(rrb->request);
arch/s390/pci/pci_clp.c
136
rrb->request.hdr.cmd = CLP_QUERY_PCI_FNGRP;
arch/s390/pci/pci_clp.c
137
rrb->response.hdr.len = sizeof(rrb->response);
arch/s390/pci/pci_clp.c
141
if (!rc && rrb->response.hdr.rsp == CLP_RC_OK)
arch/s390/pci/pci_clp.c
145
zpci_err_clp(rrb->response.hdr.rsp, rc);
arch/s390/pci/pci_clp.c
206
rrb->request.hdr.len = sizeof(rrb->request);
arch/s390/pci/pci_clp.c
207
rrb->request.hdr.cmd = CLP_QUERY_PCI_FN;
arch/s390/pci/pci_clp.c
208
rrb->response.hdr.len = sizeof(rrb->response);
arch/s390/pci/pci_clp.c
212
if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) {
arch/s390/pci/pci_clp.c
219
zpci_err_clp(rrb->response.hdr.rsp, rc);
arch/s390/pci/pci_clp.c
253
rrb->request.hdr.len = sizeof(rrb->request);
arch/s390/pci/pci_clp.c
254
rrb->request.hdr.cmd = CLP_SET_PCI_FN;
arch/s390/pci/pci_clp.c
255
rrb->response.hdr.len = sizeof(rrb->response);
arch/s390/pci/pci_clp.c
262
if (rrb->response.hdr.rsp == CLP_RC_SETPCIFN_BUSY) {
arch/s390/pci/pci_clp.c
268
} while (rrb->response.hdr.rsp == CLP_RC_SETPCIFN_BUSY);
arch/s390/pci/pci_clp.c
270
if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) {
arch/s390/pci/pci_clp.c
274
zpci_err_clp(rrb->response.hdr.rsp, rc);
arch/s390/pci/pci_clp.c
276
rc = rrb->response.hdr.rsp;
arch/s390/pci/pci_clp.c
293
rrb->request.hdr.len = sizeof(rrb->request);
arch/s390/pci/pci_clp.c
294
rrb->request.hdr.cmd = CLP_SLPC;
arch/s390/pci/pci_clp.c
295
rrb->response.hdr.len = sizeof(rrb->response);
arch/s390/pci/pci_clp.c
298
if (!rc && rrb->response.hdr.rsp == CLP_RC_OK) {
arch/s390/pci/pci_clp.c
309
zpci_err_clp(rrb->response.hdr.rsp, rc);
arch/s390/pci/pci_clp.c
350
rrb->request.hdr.len = sizeof(rrb->request);
arch/s390/pci/pci_clp.c
351
rrb->request.hdr.cmd = CLP_LIST_PCI;
arch/s390/pci/pci_clp.c
353
rrb->response.hdr.len = CLP_BLK_SIZE - LIST_PCI_HDR_LEN;
arch/s390/pci/pci_clp.c
358
if (rc || rrb->response.hdr.rsp != CLP_RC_OK) {
arch/s390/pci/pci_clp.c
360
zpci_err_clp(rrb->response.hdr.rsp, rc);
arch/s390/pci/pci_clp.c
368
*nentries = (rrb->response.hdr.len - LIST_PCI_HDR_LEN) /
arch/s390/pci/pci_clp.c
496
if (lpcb->request.hdr.len != sizeof(lpcb->request) ||
arch/s390/pci/pci_clp.c
497
lpcb->response.hdr.len > limit)
arch/s390/pci/pci_clp.c
516
if (lpcb->request.hdr.len != sizeof(lpcb->request) ||
arch/s390/pci/pci_clp.c
517
lpcb->response.hdr.len > limit)
arch/s390/pci/pci_clp.c
526
if (lpcb->request.hdr.len != sizeof(lpcb->request) ||
arch/s390/pci/pci_clp.c
527
lpcb->response.hdr.len > limit)
arch/s390/pci/pci_clp.c
539
if (lpcb->request.hdr.len != sizeof(lpcb->request) ||
arch/s390/pci/pci_clp.c
540
lpcb->response.hdr.len > limit)
arch/s390/pci/pci_clp.c
552
if (lpcb->request.hdr.len != sizeof(lpcb->request) ||
arch/s390/pci/pci_clp.c
553
lpcb->response.hdr.len > limit)
arch/sh/include/asm/dwarf.h
410
#define module_dwarf_finalize(hdr, sechdrs, me) (0)
arch/sh/kernel/dwarf.c
1089
int module_dwarf_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
arch/sh/kernel/dwarf.c
1094
char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/sh/kernel/dwarf.c
1098
for (i = 1; i < hdr->e_shnum; i++) {
arch/sh/kernel/dwarf.c
1109
if (i != hdr->e_shnum) {
arch/sh/kernel/module.c
90
int module_finalize(const Elf_Ehdr *hdr,
arch/sh/kernel/module.c
96
ret |= module_dwarf_finalize(hdr, sechdrs, me);
arch/sparc/include/asm/vio.h
141
struct vio_dring_hdr hdr;
arch/sparc/include/asm/vio.h
246
struct vio_dring_hdr hdr;
arch/sparc/kernel/ds.c
703
struct ds_var_hdr hdr;
arch/sparc/kernel/ds.c
708
struct ds_var_hdr hdr;
arch/sparc/kernel/ds.c
713
struct ds_var_hdr hdr;
arch/sparc/kernel/ds.c
735
if (rp->hdr.type != DS_VAR_SET_RESP &&
arch/sparc/kernel/ds.c
736
rp->hdr.type != DS_VAR_DELETE_RESP)
arch/sparc/kernel/ds.c
801
pkt.header.msg.hdr.type = DS_VAR_SET_REQ;
arch/sparc/kernel/module.c
153
static void do_patch_sections(const Elf_Ehdr *hdr,
arch/sparc/kernel/module.c
157
char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/sparc/kernel/module.c
159
for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
arch/sparc/kernel/module.c
176
int module_finalize(const Elf_Ehdr *hdr,
arch/sparc/kernel/module.c
180
do_patch_sections(hdr, sechdrs);
arch/sparc/kernel/module.c
25
int module_frob_arch_sections(Elf_Ehdr *hdr,
arch/sparc/kernel/module.c
35
if (symidx == hdr->e_shnum-1) {
arch/sparc/vdso/vdso2c.c
146
Elf64_Ehdr *hdr = (Elf64_Ehdr *)raw_addr;
arch/sparc/vdso/vdso2c.c
148
if (hdr->e_ident[EI_CLASS] == ELFCLASS64) {
arch/sparc/vdso/vdso2c.c
151
} else if (hdr->e_ident[EI_CLASS] == ELFCLASS32) {
arch/sparc/vdso/vdso2c.h
21
ELF(Ehdr) *hdr = (ELF(Ehdr) *)raw_addr;
arch/sparc/vdso/vdso2c.h
25
ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_BE(&hdr->e_phoff));
arch/sparc/vdso/vdso2c.h
28
for (i = 0; i < GET_BE(&hdr->e_phnum); i++) {
arch/sparc/vdso/vdso2c.h
65
for (i = 0; i < GET_BE(&hdr->e_shnum); i++) {
arch/sparc/vdso/vdso2c.h
66
ELF(Shdr) *sh = raw_addr + GET_BE(&hdr->e_shoff) +
arch/sparc/vdso/vdso2c.h
67
GET_BE(&hdr->e_shentsize) * i;
arch/sparc/vdso/vdso2c.h
75
strtab_hdr = raw_addr + GET_BE(&hdr->e_shoff) +
arch/sparc/vdso/vdso2c.h
76
GET_BE(&hdr->e_shentsize) * GET_BE(&symtab_hdr->sh_link);
arch/sparc/vdso/vma.c
143
shdrs = (void *)e->hdr + e->hdr->e_shoff;
arch/sparc/vdso/vma.c
144
snames = (void *)e->hdr + shdrs[e->hdr->e_shstrndx].sh_offset;
arch/sparc/vdso/vma.c
145
for (i = 1; i < e->hdr->e_shnum; i++) {
arch/sparc/vdso/vma.c
149
return (void *)e->hdr + shdrs[i].sh_offset;
arch/sparc/vdso/vma.c
159
e->hdr = image->data;
arch/sparc/vdso/vma.c
46
Elf32_Ehdr *hdr;
arch/sparc/vdso/vma.c
54
Elf64_Ehdr *hdr;
arch/sparc/vdso/vma.c
75
shdrs = (void *)e->hdr + e->hdr->e_shoff;
arch/sparc/vdso/vma.c
76
snames = (void *)e->hdr + shdrs[e->hdr->e_shstrndx].sh_offset;
arch/sparc/vdso/vma.c
77
for (i = 1; i < e->hdr->e_shnum; i++) {
arch/sparc/vdso/vma.c
81
return (void *)e->hdr + shdrs[i].sh_offset;
arch/sparc/vdso/vma.c
91
e->hdr = image->data;
arch/um/drivers/vector_kern.c
830
struct user_msghdr hdr;
arch/um/drivers/vector_kern.c
836
hdr.msg_name = NULL;
arch/um/drivers/vector_kern.c
837
hdr.msg_namelen = 0;
arch/um/drivers/vector_kern.c
838
hdr.msg_iov = (struct iovec *) &iov;
arch/um/drivers/vector_kern.c
839
hdr.msg_control = NULL;
arch/um/drivers/vector_kern.c
840
hdr.msg_controllen = 0;
arch/um/drivers/vector_kern.c
841
hdr.msg_flags = 0;
arch/um/drivers/vector_kern.c
848
skb = prep_skb(vp, &hdr);
arch/um/drivers/vector_kern.c
856
hdr.msg_iovlen = 1;
arch/um/drivers/vector_kern.c
860
pkt_len = uml_vector_recvmsg(vp->fds->rx_fd, &hdr, 0);
arch/um/drivers/vector_user.c
763
int uml_vector_sendmsg(int fd, void *hdr, int flags)
arch/um/drivers/vector_user.c
767
CATCH_EINTR(n = sendmsg(fd, (struct msghdr *) hdr, flags));
arch/um/drivers/vector_user.c
776
int uml_vector_recvmsg(int fd, void *hdr, int flags)
arch/um/drivers/vector_user.c
779
struct msghdr *msg = (struct msghdr *) hdr;
arch/um/drivers/vector_user.c
790
int uml_vector_writev(int fd, void *hdr, int iovcount)
arch/um/drivers/vector_user.c
794
CATCH_EINTR(n = writev(fd, (struct iovec *) hdr, iovcount));
arch/um/drivers/vector_user.h
84
extern int uml_vector_recvmsg(int fd, void *hdr, int flags);
arch/um/drivers/vector_user.h
85
extern int uml_vector_sendmsg(int fd, void *hdr, int flags);
arch/um/drivers/vector_user.h
86
extern int uml_vector_writev(int fd, void *hdr, int iovcount);
arch/um/drivers/virtio_pcidev.c
210
struct virtio_pcidev_msg hdr = {
arch/um/drivers/virtio_pcidev.c
221
if (virtio_pcidev_send_cmd(dev, &hdr, sizeof(hdr), NULL, 0, data, size))
arch/um/drivers/virtio_pcidev.c
246
struct virtio_pcidev_msg hdr;
arch/um/drivers/virtio_pcidev.c
250
.hdr = {
arch/um/drivers/virtio_pcidev.c
275
WARN_ON(virtio_pcidev_send_cmd(dev, &msg.hdr, sizeof(msg), NULL, 0, NULL, 0));
arch/um/drivers/virtio_pcidev.c
283
struct virtio_pcidev_msg hdr = {
arch/um/drivers/virtio_pcidev.c
292
virtio_pcidev_send_cmd(dev, &hdr, sizeof(hdr), NULL, 0, buffer, size);
arch/um/drivers/virtio_pcidev.c
30
struct virtio_pcidev_msg hdr;
arch/um/drivers/virtio_pcidev.c
325
struct virtio_pcidev_msg hdr = {
arch/um/drivers/virtio_pcidev.c
332
virtio_pcidev_send_cmd(dev, &hdr, sizeof(hdr), buffer, size, NULL, 0);
arch/um/drivers/virtio_pcidev.c
368
struct virtio_pcidev_msg hdr;
arch/um/drivers/virtio_pcidev.c
371
.hdr = {
arch/um/drivers/virtio_pcidev.c
380
virtio_pcidev_send_cmd(dev, &msg.hdr, sizeof(msg), NULL, 0, NULL, 0);
arch/x86/boot/boot.h
251
unsigned long cmd_line_ptr = boot_params.hdr.cmd_line_ptr;
arch/x86/boot/boot.h
261
unsigned long cmd_line_ptr = boot_params.hdr.cmd_line_ptr;
arch/x86/boot/boot.h
34
extern struct setup_header hdr;
arch/x86/boot/compressed/cmdline.c
19
unsigned long cmd_line_ptr = boot_params_ptr->hdr.cmd_line_ptr;
arch/x86/boot/compressed/efi.c
95
pa_data = bp->hdr.setup_data;
arch/x86/boot/compressed/efi.h
67
efi_table_hdr_t hdr;
arch/x86/boot/compressed/efi.h
85
efi_table_hdr_t hdr;
arch/x86/boot/compressed/ident_map_64.c
172
sd = (struct setup_data *)boot_params_ptr->hdr.setup_data;
arch/x86/boot/compressed/kaslr.c
357
unsigned long init_size = boot_params_ptr->hdr.init_size;
arch/x86/boot/compressed/kaslr.c
370
initrd_start |= boot_params_ptr->hdr.ramdisk_image;
arch/x86/boot/compressed/kaslr.c
372
initrd_size |= boot_params_ptr->hdr.ramdisk_size;
arch/x86/boot/compressed/kaslr.c
421
ptr = (struct setup_data *)(unsigned long)boot_params_ptr->hdr.setup_data;
arch/x86/boot/compressed/kaslr.c
777
ptr = (struct setup_data *)(unsigned long)boot_params_ptr->hdr.setup_data;
arch/x86/boot/compressed/kaslr.c
874
boot_params_ptr->hdr.loadflags |= KASLR_FLAG;
arch/x86/boot/compressed/misc.c
368
static void parse_mem_encrypt(struct setup_header *hdr)
arch/x86/boot/compressed/misc.c
374
hdr->xloadflags |= XLF_MEM_ENCRYPTION;
arch/x86/boot/compressed/misc.c
418
boot_params_ptr->hdr.loadflags &= ~KASLR_FLAG;
arch/x86/boot/compressed/misc.c
420
parse_mem_encrypt(&boot_params_ptr->hdr);
arch/x86/boot/edd.c
57
if (!(boot_params.hdr.loadflags & CAN_USE_HEAP))
arch/x86/boot/edd.c
59
if (mbrbuf_end > (char *)(size_t)boot_params.hdr.heap_end_ptr)
arch/x86/boot/main.c
122
if (boot_params.hdr.loadflags & CAN_USE_HEAP) {
arch/x86/boot/main.c
124
heap_end = (char *) ((size_t)boot_params.hdr.heap_end_ptr + 0x200);
arch/x86/boot/main.c
39
memcpy(&boot_params.hdr, &hdr, sizeof(hdr));
arch/x86/boot/main.c
41
if (!boot_params.hdr.cmd_line_ptr && oldcmd->cl_magic == OLD_CL_MAGIC) {
arch/x86/boot/main.c
50
if (oldcmd->cl_offset < boot_params.hdr.setup_move_size)
arch/x86/boot/main.c
55
boot_params.hdr.cmd_line_ptr = (cmdline_seg << 4) + oldcmd->cl_offset;
arch/x86/boot/pm.c
123
protected_mode_jump(boot_params.hdr.code32_start,
arch/x86/boot/pm.c
23
if (boot_params.hdr.realmode_swtch) {
arch/x86/boot/pm.c
25
: : "m" (boot_params.hdr.realmode_swtch)
arch/x86/boot/startup/sev-shared.c
533
struct setup_data *hdr;
arch/x86/boot/startup/sev-shared.c
535
hdr = (struct setup_data *)bp->hdr.setup_data;
arch/x86/boot/startup/sev-shared.c
537
while (hdr) {
arch/x86/boot/startup/sev-shared.c
538
if (hdr->type == SETUP_CC_BLOB) {
arch/x86/boot/startup/sev-shared.c
539
sd = (struct cc_setup_data *)hdr;
arch/x86/boot/startup/sev-shared.c
542
hdr = (struct setup_data *)hdr->next;
arch/x86/boot/startup/sme.c
327
initrd_len = (unsigned long)bp->hdr.ramdisk_size |
arch/x86/boot/startup/sme.c
330
initrd_start = (unsigned long)bp->hdr.ramdisk_image |
arch/x86/boot/startup/sme.c
540
if (!(bp->hdr.xloadflags & XLF_MEM_ENCRYPTION))
arch/x86/boot/video-mode.c
168
boot_params.hdr.vid_mode = real_mode;
arch/x86/boot/video.c
319
u16 mode = boot_params.hdr.vid_mode;
arch/x86/boot/video.c
337
boot_params.hdr.vid_mode = mode;
arch/x86/coco/sev/core.c
1714
struct snp_guest_msg_hdr *req_msg_hdr = &req_msg->hdr;
arch/x86/coco/sev/core.c
1715
struct snp_guest_msg_hdr *resp_msg_hdr = &resp_msg->hdr;
arch/x86/coco/sev/core.c
1754
struct snp_guest_msg_hdr *hdr = &msg->hdr;
arch/x86/coco/sev/core.c
1760
hdr->algo = SNP_AEAD_AES_256_GCM;
arch/x86/coco/sev/core.c
1761
hdr->hdr_version = MSG_HDR_VER;
arch/x86/coco/sev/core.c
1762
hdr->hdr_sz = sizeof(*hdr);
arch/x86/coco/sev/core.c
1763
hdr->msg_type = req->msg_type;
arch/x86/coco/sev/core.c
1764
hdr->msg_version = req->msg_version;
arch/x86/coco/sev/core.c
1765
hdr->msg_seqno = seqno;
arch/x86/coco/sev/core.c
1766
hdr->msg_vmpck = req->vmpck_id;
arch/x86/coco/sev/core.c
1767
hdr->msg_sz = req->req_sz;
arch/x86/coco/sev/core.c
1770
if (!hdr->msg_seqno)
arch/x86/coco/sev/core.c
1774
hdr->msg_seqno, hdr->msg_type, hdr->msg_version, hdr->msg_sz);
arch/x86/coco/sev/core.c
1779
memcpy(iv, &hdr->msg_seqno, min(sizeof(iv), sizeof(hdr->msg_seqno)));
arch/x86/coco/sev/core.c
1780
aesgcm_encrypt(ctx, msg->payload, req->req_buf, req->req_sz, &hdr->algo,
arch/x86/coco/sev/core.c
1781
AAD_LEN, iv, hdr->authtag);
arch/x86/coco/sev/core.c
198
for (i = 0; i <= desc->hdr.end_entry; i++) {
arch/x86/coco/sev/core.c
241
for (i = 0; i <= desc->hdr.end_entry; i++) {
arch/x86/coco/sev/core.c
277
cur_entry = data->hdr.cur_entry;
arch/x86/coco/sev/core.c
278
end_entry = data->hdr.end_entry;
arch/x86/coco/sev/core.c
280
while (data->hdr.cur_entry <= data->hdr.end_entry) {
arch/x86/coco/sev/core.c
298
if (WARN(data->hdr.reserved, "Reserved bit is set in the PSC header\n")) {
arch/x86/coco/sev/core.c
307
if (WARN(data->hdr.end_entry > end_entry || cur_entry > data->hdr.cur_entry,
arch/x86/coco/sev/core.c
309
end_entry, data->hdr.end_entry, cur_entry, data->hdr.cur_entry)) {
arch/x86/coco/sev/core.c
324
struct psc_hdr *hdr;
arch/x86/coco/sev/core.c
331
hdr = &data->hdr;
arch/x86/coco/sev/core.c
338
hdr->end_entry = i;
arch/x86/coco/sev/svsm.c
139
while (desc_entry <= desc->hdr.end_entry) {
arch/x86/coco/sev/svsm.c
204
for (i = 0; i <= desc->hdr.end_entry;) {
arch/x86/include/asm/bootparam_utils.h
74
BOOT_PARAM_PRESERVE(hdr),
arch/x86/include/asm/microcode.h
50
struct microcode_header_intel hdr;
arch/x86/include/asm/microcode.h
59
static inline int intel_microcode_get_datasize(struct microcode_header_intel *hdr)
arch/x86/include/asm/microcode.h
61
return hdr->datasize ? : DEFAULT_UCODE_DATASIZE;
arch/x86/include/asm/setup.h
88
!!(boot_params.hdr.loadflags & KASLR_FLAG);
arch/x86/include/asm/sev-common.h
175
struct psc_hdr hdr;
arch/x86/include/asm/sev.h
207
struct snp_guest_msg_hdr hdr;
arch/x86/include/uapi/asm/bootparam.h
156
struct setup_header hdr; /* setup header */ /* 0x1f1 */
arch/x86/include/uapi/asm/kvm.h
549
} hdr;
arch/x86/include/uapi/asm/setup_data.h
59
} __attribute__((packed)) hdr;
arch/x86/kernel/asm-offsets.c
102
OFFSET(BP_loadflags, boot_params, hdr.loadflags);
arch/x86/kernel/asm-offsets.c
103
OFFSET(BP_hardware_subarch, boot_params, hdr.hardware_subarch);
arch/x86/kernel/asm-offsets.c
104
OFFSET(BP_version, boot_params, hdr.version);
arch/x86/kernel/asm-offsets.c
105
OFFSET(BP_kernel_alignment, boot_params, hdr.kernel_alignment);
arch/x86/kernel/asm-offsets.c
106
OFFSET(BP_init_size, boot_params, hdr.init_size);
arch/x86/kernel/asm-offsets.c
107
OFFSET(BP_pref_address, boot_params, hdr.pref_address);
arch/x86/kernel/cpu/mce/apei.c
188
struct cper_record_header hdr;
arch/x86/kernel/cpu/mce/apei.c
198
memcpy(rcd.hdr.signature, CPER_SIG_RECORD, CPER_SIG_SIZE);
arch/x86/kernel/cpu/mce/apei.c
199
rcd.hdr.revision = CPER_RECORD_REV;
arch/x86/kernel/cpu/mce/apei.c
200
rcd.hdr.signature_end = CPER_SIG_END;
arch/x86/kernel/cpu/mce/apei.c
201
rcd.hdr.section_count = 1;
arch/x86/kernel/cpu/mce/apei.c
202
rcd.hdr.error_severity = CPER_SEV_FATAL;
arch/x86/kernel/cpu/mce/apei.c
204
rcd.hdr.validation_bits = 0;
arch/x86/kernel/cpu/mce/apei.c
205
rcd.hdr.record_length = sizeof(rcd);
arch/x86/kernel/cpu/mce/apei.c
206
rcd.hdr.creator_id = CPER_CREATOR_MCE;
arch/x86/kernel/cpu/mce/apei.c
207
rcd.hdr.notification_type = CPER_NOTIFY_MCE;
arch/x86/kernel/cpu/mce/apei.c
208
rcd.hdr.record_id = cper_next_record_id();
arch/x86/kernel/cpu/mce/apei.c
209
rcd.hdr.flags = CPER_HW_ERROR_FLAGS_PREVERR;
arch/x86/kernel/cpu/mce/apei.c
222
return erst_write(&rcd.hdr);
arch/x86/kernel/cpu/mce/apei.c
240
rc = erst_read_record(*record_id, &rcd.hdr, sizeof(rcd), sizeof(rcd),
arch/x86/kernel/cpu/microcode/amd.c
1000
cpu, mc_amd->hdr.patch_id);
arch/x86/kernel/cpu/microcode/amd.c
1004
rev = mc_amd->hdr.patch_id;
arch/x86/kernel/cpu/microcode/amd.c
1029
const u32 *hdr;
arch/x86/kernel/cpu/microcode/amd.c
1034
hdr = (const u32 *)buf;
arch/x86/kernel/cpu/microcode/amd.c
1035
equiv_tbl_len = hdr[2];
arch/x86/kernel/cpu/microcode/amd.c
393
const u32 *hdr = (const u32 *)buf;
arch/x86/kernel/cpu/microcode/amd.c
403
cont_type = hdr[1];
arch/x86/kernel/cpu/microcode/amd.c
412
equiv_tbl_len = hdr[2];
arch/x86/kernel/cpu/microcode/amd.c
432
const u32 *hdr;
arch/x86/kernel/cpu/microcode/amd.c
439
hdr = (const u32 *)buf;
arch/x86/kernel/cpu/microcode/amd.c
440
p_type = hdr[0];
arch/x86/kernel/cpu/microcode/amd.c
441
p_size = hdr[1];
arch/x86/kernel/cpu/microcode/amd.c
581
return ucode_rev_to_cpuid(mc->hdr.patch_id).full == bsp_cpuid_1_eax;
arch/x86/kernel/cpu/microcode/amd.c
583
return eq_id == mc->hdr.processor_rev_id;
arch/x86/kernel/cpu/microcode/amd.c
597
u32 *hdr = (u32 *)ucode;
arch/x86/kernel/cpu/microcode/amd.c
607
table.num_entries = hdr[2] / sizeof(struct equiv_cpu_entry);
arch/x86/kernel/cpu/microcode/amd.c
616
buf += hdr[2] + CONTAINER_HDR_SZ;
arch/x86/kernel/cpu/microcode/amd.c
617
size -= hdr[2] + CONTAINER_HDR_SZ;
arch/x86/kernel/cpu/microcode/amd.c
697
unsigned long p_addr = (unsigned long)&mc->hdr.data_code;
arch/x86/kernel/cpu/microcode/amd.c
699
if (!verify_sha256_digest(mc->hdr.patch_id, *cur_rev, (const u8 *)p_addr, psize))
arch/x86/kernel/cpu/microcode/amd.c
718
microcode_rev[smp_processor_id()] = mc->hdr.patch_id;
arch/x86/kernel/cpu/microcode/amd.c
725
if (*cur_rev != mc->hdr.patch_id)
arch/x86/kernel/cpu/microcode/amd.c
815
if (ed->old_rev > mc->hdr.patch_id)
arch/x86/kernel/cpu/microcode/amd.c
88
struct microcode_header_amd hdr;
arch/x86/kernel/cpu/microcode/amd.c
945
if (rev < mc->hdr.patch_id) {
arch/x86/kernel/cpu/microcode/amd.c
993
if (rev > mc_amd->hdr.patch_id) {
arch/x86/kernel/cpu/microcode/core.c
244
size = boot_params.hdr.ramdisk_size;
arch/x86/kernel/cpu/microcode/core.c
251
size |= boot_params.hdr.ramdisk_size;
arch/x86/kernel/cpu/microcode/core.c
255
start |= boot_params.hdr.ramdisk_image;
arch/x86/kernel/cpu/microcode/intel.c
113
static inline unsigned int get_totalsize(struct microcode_header_intel *hdr)
arch/x86/kernel/cpu/microcode/intel.c
115
return hdr->datasize ? hdr->totalsize : DEFAULT_UCODE_TOTALSIZE;
arch/x86/kernel/cpu/microcode/intel.c
302
unsigned int size = get_totalsize(&patch->hdr);
arch/x86/kernel/cpu/microcode/intel.c
403
ss->ucode_len = get_totalsize(&ucode_patch_late->hdr);
arch/x86/kernel/cpu/microcode/intel.c
612
if (!IS_ALIGNED(get_totalsize(&ucode_patch_late->hdr), sizeof(u32))) {
arch/x86/kernel/cpu/microcode/intel.c
614
get_totalsize(&ucode_patch_late->hdr));
arch/x86/kernel/cpu/microcode/intel.c
643
pr_info("Staging of patch revision 0x%x succeeded.\n", ucode_patch_late->hdr.rev);
arch/x86/kernel/cpu/microcode/intel.c
661
if (*cur_rev >= mc->hdr.rev) {
arch/x86/kernel/cpu/microcode/intel.c
670
if (rev != mc->hdr.rev)
arch/x86/kernel/cpu/resctrl/core.c
476
struct rdt_domain_hdr *hdr;
arch/x86/kernel/cpu/resctrl/core.c
488
hdr = resctrl_find_domain(&r->ctrl_domains, id, &add_pos);
arch/x86/kernel/cpu/resctrl/core.c
489
if (hdr) {
arch/x86/kernel/cpu/resctrl/core.c
490
if (!domain_header_is_valid(hdr, RESCTRL_CTRL_DOMAIN, r->rid))
arch/x86/kernel/cpu/resctrl/core.c
492
d = container_of(hdr, struct rdt_ctrl_domain, hdr);
arch/x86/kernel/cpu/resctrl/core.c
494
cpumask_set_cpu(cpu, &d->hdr.cpu_mask);
arch/x86/kernel/cpu/resctrl/core.c
505
d->hdr.id = id;
arch/x86/kernel/cpu/resctrl/core.c
506
d->hdr.type = RESCTRL_CTRL_DOMAIN;
arch/x86/kernel/cpu/resctrl/core.c
507
d->hdr.rid = r->rid;
arch/x86/kernel/cpu/resctrl/core.c
508
cpumask_set_cpu(cpu, &d->hdr.cpu_mask);
arch/x86/kernel/cpu/resctrl/core.c
517
list_add_tail_rcu(&d->hdr.list, add_pos);
arch/x86/kernel/cpu/resctrl/core.c
521
list_del_rcu(&d->hdr.list);
arch/x86/kernel/cpu/resctrl/core.c
539
d->hdr.id = id;
arch/x86/kernel/cpu/resctrl/core.c
540
d->hdr.type = RESCTRL_MON_DOMAIN;
arch/x86/kernel/cpu/resctrl/core.c
541
d->hdr.rid = RDT_RESOURCE_L3;
arch/x86/kernel/cpu/resctrl/core.c
549
cpumask_set_cpu(cpu, &d->hdr.cpu_mask);
arch/x86/kernel/cpu/resctrl/core.c
558
list_add_tail_rcu(&d->hdr.list, add_pos);
arch/x86/kernel/cpu/resctrl/core.c
560
err = resctrl_online_mon_domain(r, &d->hdr);
arch/x86/kernel/cpu/resctrl/core.c
562
list_del_rcu(&d->hdr.list);
arch/x86/kernel/cpu/resctrl/core.c
572
struct rdt_domain_hdr *hdr;
arch/x86/kernel/cpu/resctrl/core.c
582
hdr = resctrl_find_domain(&r->mon_domains, id, &add_pos);
arch/x86/kernel/cpu/resctrl/core.c
583
if (hdr)
arch/x86/kernel/cpu/resctrl/core.c
584
cpumask_set_cpu(cpu, &hdr->cpu_mask);
arch/x86/kernel/cpu/resctrl/core.c
591
if (!hdr)
arch/x86/kernel/cpu/resctrl/core.c
595
if (!hdr)
arch/x86/kernel/cpu/resctrl/core.c
616
struct rdt_domain_hdr *hdr;
arch/x86/kernel/cpu/resctrl/core.c
627
hdr = resctrl_find_domain(&r->ctrl_domains, id, NULL);
arch/x86/kernel/cpu/resctrl/core.c
628
if (!hdr) {
arch/x86/kernel/cpu/resctrl/core.c
634
cpumask_clear_cpu(cpu, &hdr->cpu_mask);
arch/x86/kernel/cpu/resctrl/core.c
635
if (!cpumask_empty(&hdr->cpu_mask))
arch/x86/kernel/cpu/resctrl/core.c
638
if (!domain_header_is_valid(hdr, RESCTRL_CTRL_DOMAIN, r->rid))
arch/x86/kernel/cpu/resctrl/core.c
641
d = container_of(hdr, struct rdt_ctrl_domain, hdr);
arch/x86/kernel/cpu/resctrl/core.c
645
list_del_rcu(&hdr->list);
arch/x86/kernel/cpu/resctrl/core.c
660
struct rdt_domain_hdr *hdr;
arch/x86/kernel/cpu/resctrl/core.c
670
hdr = resctrl_find_domain(&r->mon_domains, id, NULL);
arch/x86/kernel/cpu/resctrl/core.c
671
if (!hdr) {
arch/x86/kernel/cpu/resctrl/core.c
677
cpumask_clear_cpu(cpu, &hdr->cpu_mask);
arch/x86/kernel/cpu/resctrl/core.c
678
if (!cpumask_empty(&hdr->cpu_mask))
arch/x86/kernel/cpu/resctrl/core.c
686
if (!domain_header_is_valid(hdr, RESCTRL_MON_DOMAIN, RDT_RESOURCE_L3))
arch/x86/kernel/cpu/resctrl/core.c
689
d = container_of(hdr, struct rdt_l3_mon_domain, hdr);
arch/x86/kernel/cpu/resctrl/core.c
691
resctrl_offline_mon_domain(r, hdr);
arch/x86/kernel/cpu/resctrl/core.c
692
list_del_rcu(&hdr->list);
arch/x86/kernel/cpu/resctrl/core.c
700
if (!domain_header_is_valid(hdr, RESCTRL_MON_DOMAIN, RDT_RESOURCE_PERF_PKG))
arch/x86/kernel/cpu/resctrl/core.c
703
pkgd = container_of(hdr, struct rdt_perf_pkg_mon_domain, hdr);
arch/x86/kernel/cpu/resctrl/core.c
704
resctrl_offline_mon_domain(r, hdr);
arch/x86/kernel/cpu/resctrl/core.c
705
list_del_rcu(&hdr->list);
arch/x86/kernel/cpu/resctrl/ctrlmondata.c
118
list_for_each_entry(d, &r->ctrl_domains, hdr.list)
arch/x86/kernel/cpu/resctrl/ctrlmondata.c
119
on_each_cpu_mask(&d->hdr.cpu_mask, resctrl_sdciae_set_one_amd, &enable, 1);
arch/x86/kernel/cpu/resctrl/ctrlmondata.c
30
if (!cpumask_test_cpu(smp_processor_id(), &d->hdr.cpu_mask))
arch/x86/kernel/cpu/resctrl/ctrlmondata.c
56
list_for_each_entry(d, &r->ctrl_domains, hdr.list) {
arch/x86/kernel/cpu/resctrl/ctrlmondata.c
80
smp_call_function_any(&d->hdr.cpu_mask, rdt_ctrl_update, &msr_param, 1);
arch/x86/kernel/cpu/resctrl/intel_aet.c
397
d->hdr.id = id;
arch/x86/kernel/cpu/resctrl/intel_aet.c
398
d->hdr.type = RESCTRL_MON_DOMAIN;
arch/x86/kernel/cpu/resctrl/intel_aet.c
399
d->hdr.rid = RDT_RESOURCE_PERF_PKG;
arch/x86/kernel/cpu/resctrl/intel_aet.c
400
cpumask_set_cpu(cpu, &d->hdr.cpu_mask);
arch/x86/kernel/cpu/resctrl/intel_aet.c
401
list_add_tail_rcu(&d->hdr.list, add_pos);
arch/x86/kernel/cpu/resctrl/intel_aet.c
403
err = resctrl_online_mon_domain(r, &d->hdr);
arch/x86/kernel/cpu/resctrl/intel_aet.c
405
list_del_rcu(&d->hdr.list);
arch/x86/kernel/cpu/resctrl/internal.h
98
struct rdt_domain_hdr hdr;
arch/x86/kernel/cpu/resctrl/monitor.c
179
int cpu = cpumask_any(&d->hdr.cpu_mask);
arch/x86/kernel/cpu/resctrl/monitor.c
241
int resctrl_arch_rmid_read(struct rdt_resource *r, struct rdt_domain_hdr *hdr,
arch/x86/kernel/cpu/resctrl/monitor.c
256
return intel_aet_read_event(hdr->id, rmid, arch_priv, val);
arch/x86/kernel/cpu/resctrl/monitor.c
258
if (!domain_header_is_valid(hdr, RESCTRL_MON_DOMAIN, RDT_RESOURCE_L3))
arch/x86/kernel/cpu/resctrl/monitor.c
261
d = container_of(hdr, struct rdt_l3_mon_domain, hdr);
arch/x86/kernel/cpu/resctrl/monitor.c
263
cpu = cpumask_any(&hdr->cpu_mask);
arch/x86/kernel/cpu/resctrl/monitor.c
501
list_for_each_entry(d, &r->mon_domains, hdr.list) {
arch/x86/kernel/cpu/resctrl/monitor.c
502
on_each_cpu_mask(&d->hdr.cpu_mask, resctrl_abmc_set_one_amd,
arch/x86/kernel/cpu/resctrl/monitor.c
551
smp_call_function_any(&d->hdr.cpu_mask, resctrl_abmc_config_one_amd, &abmc_cfg, 1);
arch/x86/kernel/cpu/resctrl/rdtgroup.c
154
list_for_each_entry(d, &r_l->ctrl_domains, hdr.list) {
arch/x86/kernel/cpu/resctrl/rdtgroup.c
157
for_each_cpu(cpu, &d->hdr.cpu_mask)
arch/x86/kernel/cpu/resctrl/rdtgroup.c
161
cpumask_set_cpu(cpumask_any(&d->hdr.cpu_mask), cpu_mask);
arch/x86/kernel/cpu/resctrl/rdtgroup.c
252
list_for_each_entry(d, &r->ctrl_domains, hdr.list) {
arch/x86/kernel/cpu/resctrl/rdtgroup.c
258
smp_call_function_any(&d->hdr.cpu_mask, rdt_ctrl_update, &msr_param, 1);
arch/x86/kernel/fpu/xstate.c
1323
struct xstate_header hdr;
arch/x86/kernel/fpu/xstate.c
1328
if (copy_from_buffer(&hdr, offset, sizeof(hdr), kbuf, ubuf))
arch/x86/kernel/fpu/xstate.c
1331
if (validate_user_xstate_header(&hdr, fpstate))
arch/x86/kernel/fpu/xstate.c
1336
if (hdr.xfeatures & mask) {
arch/x86/kernel/fpu/xstate.c
1348
if (!(hdr.xfeatures & XFEATURE_MASK_FP)) {
arch/x86/kernel/fpu/xstate.c
1357
if (hdr.xfeatures & mask) {
arch/x86/kernel/fpu/xstate.c
1368
if (hdr.xfeatures & XFEATURE_MASK_PKRU) {
arch/x86/kernel/fpu/xstate.c
1391
xsave->header.xfeatures |= hdr.xfeatures;
arch/x86/kernel/fpu/xstate.c
431
static int validate_user_xstate_header(const struct xstate_header *hdr,
arch/x86/kernel/fpu/xstate.c
435
if (hdr->xfeatures & ~fpstate->user_xfeatures)
arch/x86/kernel/fpu/xstate.c
439
if (hdr->xcomp_bv)
arch/x86/kernel/fpu/xstate.c
446
BUILD_BUG_ON(sizeof(hdr->reserved) != 48);
arch/x86/kernel/fpu/xstate.c
449
if (memchr_inv(hdr->reserved, 0, sizeof(hdr->reserved)))
arch/x86/kernel/head32.c
149
if (!params->hdr.ramdisk_size || !params->hdr.ramdisk_image)
arch/x86/kernel/head32.c
155
*ptr += ((unsigned long)params->hdr.ramdisk_image) & ~PAGE_MASK;
arch/x86/kernel/head32.c
161
limit = (unsigned long)params->hdr.ramdisk_image;
arch/x86/kernel/head32.c
163
limit = (unsigned long)params->hdr.ramdisk_image + params->hdr.ramdisk_size;
arch/x86/kernel/head32.c
67
switch (boot_params.hdr.hardware_subarch) {
arch/x86/kernel/head64.c
187
unsigned long cmd_line_ptr = boot_params.hdr.cmd_line_ptr;
arch/x86/kernel/head64.c
297
if (!boot_params.hdr.version)
arch/x86/kernel/head64.c
302
switch (boot_params.hdr.hardware_subarch) {
arch/x86/kernel/jailhouse.c
114
setup_data.hdr.version < 2) {
arch/x86/kernel/jailhouse.c
189
if (setup_data.hdr.version > 1)
arch/x86/kernel/jailhouse.c
200
u64 pa_data = boot_params.hdr.setup_data;
arch/x86/kernel/jailhouse.c
238
if (header.len < sizeof(setup_data.hdr))
arch/x86/kernel/jailhouse.c
248
if (setup_data.hdr.version == 0 ||
arch/x86/kernel/jailhouse.c
249
setup_data.hdr.compatible_version !=
arch/x86/kernel/jailhouse.c
251
(setup_data.hdr.version == 1 && header.len < SETUP_DATA_V1_LEN) ||
arch/x86/kernel/jailhouse.c
252
(setup_data.hdr.version >= 2 && header.len < SETUP_DATA_V2_LEN))
arch/x86/kernel/jailhouse.c
29
#define SETUP_DATA_V1_LEN (sizeof(setup_data.hdr) + sizeof(setup_data.v1))
arch/x86/kernel/kdebugfs.c
102
pa_data = boot_params.hdr.setup_data;
arch/x86/kernel/kdebugfs.c
172
debugfs_create_x16("version", S_IRUGO, dbp, &boot_params.hdr.version);
arch/x86/kernel/kexec-bzimage64.c
138
sd->next = params->hdr.setup_data;
arch/x86/kernel/kexec-bzimage64.c
139
params->hdr.setup_data = setup_data_phys;
arch/x86/kernel/kexec-bzimage64.c
182
sd->next = params->hdr.setup_data;
arch/x86/kernel/kexec-bzimage64.c
183
params->hdr.setup_data = setup_data_phys;
arch/x86/kernel/kexec-bzimage64.c
242
sd->next = params->hdr.setup_data;
arch/x86/kernel/kexec-bzimage64.c
243
params->hdr.setup_data = setup_data_phys;
arch/x86/kernel/kexec-bzimage64.c
269
sd->next = params->hdr.setup_data;
arch/x86/kernel/kexec-bzimage64.c
270
params->hdr.setup_data = setup_data_phys;
arch/x86/kernel/kexec-bzimage64.c
296
sd->next = params->hdr.setup_data;
arch/x86/kernel/kexec-bzimage64.c
297
params->hdr.setup_data = params_load_addr + setup_data_offset;
arch/x86/kernel/kexec-bzimage64.c
311
params->hdr.hardware_subarch = boot_params.hdr.hardware_subarch;
arch/x86/kernel/kexec-bzimage64.c
423
header = (struct setup_header *)(buf + offsetof(struct boot_params, hdr));
arch/x86/kernel/kexec-bzimage64.c
489
unsigned int setup_hdr_offset = offsetof(struct boot_params, hdr);
arch/x86/kernel/kexec-bzimage64.c
600
memcpy(¶ms->hdr, (kernel + setup_hdr_offset), setup_header_size);
arch/x86/kernel/kexec-bzimage64.c
63
params->hdr.ramdisk_image = initrd_load_addr & 0xffffffffUL;
arch/x86/kernel/kexec-bzimage64.c
64
params->hdr.ramdisk_size = initrd_len & 0xffffffffUL;
arch/x86/kernel/kexec-bzimage64.c
653
params->hdr.type_of_loader = 0x0D << 4;
arch/x86/kernel/kexec-bzimage64.c
654
params->hdr.loadflags = 0;
arch/x86/kernel/kexec-bzimage64.c
99
params->hdr.cmd_line_ptr = cmdline_low_32;
arch/x86/kernel/ksysfs.c
25
return sprintf(buf, "0x%04x\n", boot_params.hdr.version);
arch/x86/kernel/ksysfs.c
333
pa_data = boot_params.hdr.setup_data;
arch/x86/kernel/ksysfs.c
74
u64 pa_data = boot_params.hdr.setup_data;
arch/x86/kernel/ksysfs.c
94
u64 pa_data = boot_params.hdr.setup_data, pa_next;
arch/x86/kernel/module.c
241
int module_finalize(const Elf_Ehdr *hdr,
arch/x86/kernel/module.c
249
char *secstrings = (void *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
arch/x86/kernel/module.c
251
for (s = sechdrs; s < sechdrs + hdr->e_shnum; s++) {
arch/x86/kernel/platform-quirks.c
17
switch (boot_params.hdr.hardware_subarch) {
arch/x86/kernel/setup.c
297
u64 ramdisk_image = boot_params.hdr.ramdisk_image;
arch/x86/kernel/setup.c
308
u64 ramdisk_size = boot_params.hdr.ramdisk_size;
arch/x86/kernel/setup.c
355
if (!boot_params.hdr.type_of_loader ||
arch/x86/kernel/setup.c
369
if (!boot_params.hdr.type_of_loader ||
arch/x86/kernel/setup.c
484
pa_data = boot_params.hdr.setup_data;
arch/x86/kernel/setup.c
532
ROOT_DEV = old_decode_dev(boot_params.hdr.root_dev);
arch/x86/kernel/setup.c
541
saved_video_mode = boot_params.hdr.vid_mode;
arch/x86/kernel/setup.c
542
bootloader_type = boot_params.hdr.type_of_loader;
arch/x86/kernel/setup.c
545
bootloader_type |= (boot_params.hdr.ext_loader_type+0x10) << 4;
arch/x86/kernel/setup.c
548
bootloader_version |= boot_params.hdr.ext_loader_ver << 4;
arch/x86/kernel/setup.c
551
rd_image_start = boot_params.hdr.ram_size & RAMDISK_IMAGE_START_MASK;
arch/x86/kernel/setup.c
564
if (!boot_params.hdr.root_flags)
arch/x86/kernel/setup.c
575
pa_data = boot_params.hdr.setup_data;
arch/x86/kvm/svm/nested.c
1768
kvm_state.hdr.svm.vmcb_pa = svm->nested.vmcb12_gpa;
arch/x86/kvm/svm/nested.c
1855
if (!page_address_valid(vcpu, kvm_state->hdr.svm.vmcb_pa))
arch/x86/kvm/svm/nested.c
1912
svm->nested.vmcb12_gpa = kvm_state->hdr.svm.vmcb_pa;
arch/x86/kvm/svm/sev.c
1377
void *blob, *hdr;
arch/x86/kvm/svm/sev.c
1421
hdr = psp_copy_user_blob(params.hdr_uaddr, params.hdr_len);
arch/x86/kvm/svm/sev.c
1422
if (IS_ERR(hdr)) {
arch/x86/kvm/svm/sev.c
1423
ret = PTR_ERR(hdr);
arch/x86/kvm/svm/sev.c
1426
data.hdr_address = __psp_pa(hdr);
arch/x86/kvm/svm/sev.c
1432
kfree(hdr);
arch/x86/kvm/svm/sev.c
1641
void *hdr, *trans_data;
arch/x86/kvm/svm/sev.c
1674
hdr = kzalloc(params.hdr_len, GFP_KERNEL);
arch/x86/kvm/svm/sev.c
1675
if (!hdr)
arch/x86/kvm/svm/sev.c
1683
data.hdr_address = __psp_pa(hdr);
arch/x86/kvm/svm/sev.c
1707
if (copy_to_user(u64_to_user_ptr(params.hdr_uaddr), hdr,
arch/x86/kvm/svm/sev.c
1714
kfree(hdr);
arch/x86/kvm/svm/sev.c
1821
void *hdr = NULL, *trans = NULL;
arch/x86/kvm/svm/sev.c
1843
hdr = psp_copy_user_blob(params.hdr_uaddr, params.hdr_len);
arch/x86/kvm/svm/sev.c
1844
if (IS_ERR(hdr))
arch/x86/kvm/svm/sev.c
1845
return PTR_ERR(hdr);
arch/x86/kvm/svm/sev.c
1854
data.hdr_address = __psp_pa(hdr);
arch/x86/kvm/svm/sev.c
1888
kfree(hdr);
arch/x86/kvm/svm/sev.c
3769
struct psc_hdr hdr;
arch/x86/kvm/svm/sev.c
3794
struct psc_hdr *hdr = &psc->hdr;
arch/x86/kvm/svm/sev.c
3809
hdr->cur_entry = idx;
arch/x86/kvm/svm/sev.c
3832
struct psc_hdr *hdr = &psc->hdr;
arch/x86/kvm/svm/sev.c
3856
idx_start = hdr->cur_entry;
arch/x86/kvm/svm/sev.c
3857
idx_end = hdr->end_entry;
arch/x86/kvm/svm/sev.c
3865
for (idx = idx_start; idx <= idx_end; idx++, hdr->cur_entry++) {
arch/x86/kvm/vmx/nested.c
2187
vmcs12->hdr.revision_id = VMCS12_REVISION;
arch/x86/kvm/vmx/nested.c
3250
struct vmcs_hdr hdr;
arch/x86/kvm/vmx/nested.c
3263
if (CC(kvm_read_guest_offset_cached(vcpu->kvm, ghc, &hdr,
arch/x86/kvm/vmx/nested.c
3264
offsetof(struct vmcs12, hdr),
arch/x86/kvm/vmx/nested.c
3265
sizeof(hdr))))
arch/x86/kvm/vmx/nested.c
3268
if (CC(hdr.revision_id != VMCS12_REVISION) ||
arch/x86/kvm/vmx/nested.c
3269
CC(hdr.shadow_vmcs != nested_cpu_has_shadow_vmcs(vmcs12)))
arch/x86/kvm/vmx/nested.c
3803
if (CC(vmcs12->hdr.shadow_vmcs))
arch/x86/kvm/vmx/nested.c
5882
struct vmcs_hdr hdr;
arch/x86/kvm/vmx/nested.c
5895
if (kvm_read_guest_offset_cached(vcpu->kvm, ghc, &hdr,
arch/x86/kvm/vmx/nested.c
5896
offsetof(struct vmcs12, hdr),
arch/x86/kvm/vmx/nested.c
5897
sizeof(hdr))) {
arch/x86/kvm/vmx/nested.c
5902
if (hdr.revision_id != VMCS12_REVISION ||
arch/x86/kvm/vmx/nested.c
5903
(hdr.shadow_vmcs &&
arch/x86/kvm/vmx/nested.c
6737
.hdr.vmx.flags = 0,
arch/x86/kvm/vmx/nested.c
6738
.hdr.vmx.vmxon_pa = INVALID_GPA,
arch/x86/kvm/vmx/nested.c
6739
.hdr.vmx.vmcs12_pa = INVALID_GPA,
arch/x86/kvm/vmx/nested.c
6740
.hdr.vmx.preemption_timer_deadline = 0,
arch/x86/kvm/vmx/nested.c
6753
kvm_state.hdr.vmx.vmxon_pa = vmx->nested.vmxon_ptr;
arch/x86/kvm/vmx/nested.c
6754
kvm_state.hdr.vmx.vmcs12_pa = vmx->nested.current_vmptr;
arch/x86/kvm/vmx/nested.c
6770
kvm_state.hdr.vmx.smm.flags |= KVM_STATE_NESTED_SMM_VMXON;
arch/x86/kvm/vmx/nested.c
6773
kvm_state.hdr.vmx.smm.flags |= KVM_STATE_NESTED_SMM_GUEST_MODE;
arch/x86/kvm/vmx/nested.c
6786
kvm_state.hdr.vmx.flags |=
arch/x86/kvm/vmx/nested.c
6788
kvm_state.hdr.vmx.preemption_timer_deadline =
arch/x86/kvm/vmx/nested.c
6868
if (shadow_vmcs12->hdr.revision_id != VMCS12_REVISION ||
arch/x86/kvm/vmx/nested.c
6869
!shadow_vmcs12->hdr.shadow_vmcs)
arch/x86/kvm/vmx/nested.c
6894
if (kvm_state->hdr.vmx.vmxon_pa == INVALID_GPA) {
arch/x86/kvm/vmx/nested.c
6895
if (kvm_state->hdr.vmx.smm.flags)
arch/x86/kvm/vmx/nested.c
6898
if (kvm_state->hdr.vmx.vmcs12_pa != INVALID_GPA)
arch/x86/kvm/vmx/nested.c
6916
if (!page_address_valid(vcpu, kvm_state->hdr.vmx.vmxon_pa))
arch/x86/kvm/vmx/nested.c
6920
if ((kvm_state->hdr.vmx.smm.flags & KVM_STATE_NESTED_SMM_GUEST_MODE) &&
arch/x86/kvm/vmx/nested.c
6924
if (kvm_state->hdr.vmx.smm.flags &
arch/x86/kvm/vmx/nested.c
6928
if (kvm_state->hdr.vmx.flags & ~KVM_STATE_VMX_PREEMPTION_TIMER_DEADLINE)
arch/x86/kvm/vmx/nested.c
6939
: kvm_state->hdr.vmx.smm.flags)
arch/x86/kvm/vmx/nested.c
6942
if ((kvm_state->hdr.vmx.smm.flags & KVM_STATE_NESTED_SMM_GUEST_MODE) &&
arch/x86/kvm/vmx/nested.c
6943
!(kvm_state->hdr.vmx.smm.flags & KVM_STATE_NESTED_SMM_VMXON))
arch/x86/kvm/vmx/nested.c
6953
if (kvm_state->hdr.vmx.vmxon_pa == INVALID_GPA)
arch/x86/kvm/vmx/nested.c
6956
vmx->nested.vmxon_ptr = kvm_state->hdr.vmx.vmxon_pa;
arch/x86/kvm/vmx/nested.c
6966
(kvm_state->hdr.vmx.vmcs12_pa != INVALID_GPA))
arch/x86/kvm/vmx/nested.c
6972
if (kvm_state->hdr.vmx.vmcs12_pa != INVALID_GPA) {
arch/x86/kvm/vmx/nested.c
6973
if (kvm_state->hdr.vmx.vmcs12_pa == kvm_state->hdr.vmx.vmxon_pa ||
arch/x86/kvm/vmx/nested.c
6974
!page_address_valid(vcpu, kvm_state->hdr.vmx.vmcs12_pa))
arch/x86/kvm/vmx/nested.c
6977
set_current_vmptr(vmx, kvm_state->hdr.vmx.vmcs12_pa);
arch/x86/kvm/vmx/nested.c
6993
if (kvm_state->hdr.vmx.smm.flags & KVM_STATE_NESTED_SMM_VMXON) {
arch/x86/kvm/vmx/nested.c
6997
if (kvm_state->hdr.vmx.smm.flags & KVM_STATE_NESTED_SMM_GUEST_MODE)
arch/x86/kvm/vmx/nested.c
7005
if (vmcs12->hdr.revision_id != VMCS12_REVISION)
arch/x86/kvm/vmx/nested.c
7035
if (kvm_state->hdr.vmx.flags & KVM_STATE_VMX_PREEMPTION_TIMER_DEADLINE) {
arch/x86/kvm/vmx/nested.c
7038
kvm_state->hdr.vmx.preemption_timer_deadline;
arch/x86/kvm/vmx/vmcs.h
31
struct vmcs_hdr hdr;
arch/x86/kvm/vmx/vmcs12.h
224
CHECK_OFFSET(hdr, 0);
arch/x86/kvm/vmx/vmcs12.h
31
struct vmcs_hdr hdr;
arch/x86/kvm/vmx/vmx.c
3070
vmcs->hdr.revision_id = KVM_EVMCS_VERSION;
arch/x86/kvm/vmx/vmx.c
3072
vmcs->hdr.revision_id = vmx_basic_vmcs_revision_id(vmcs_config.basic);
arch/x86/kvm/vmx/vmx.c
3075
vmcs->hdr.shadow_vmcs = 1;
arch/x86/kvm/vmx/vmx.c
3165
vmcs->hdr.revision_id = vmx_basic_vmcs_revision_id(vmcs_config.basic);
arch/x86/mm/ioremap.c
648
paddr = boot_params.hdr.setup_data;
arch/x86/mm/mem_encrypt_amd.c
187
cmdline_paddr = boot_data->hdr.cmd_line_ptr | ((u64)boot_data->ext_cmd_line_ptr << 32);
arch/x86/mm/mem_encrypt_amd.c
209
cmdline_paddr = boot_data->hdr.cmd_line_ptr | ((u64)boot_data->ext_cmd_line_ptr << 32);
arch/x86/net/bpf_jit_comp.c
3962
struct bpf_binary_header *hdr;
arch/x86/net/bpf_jit_comp.c
3978
hdr = bpf_jit_binary_pack_hdr(prog);
arch/x86/net/bpf_jit_comp.c
3979
bpf_jit_binary_pack_free(hdr, NULL);
arch/x86/pci/common.c
650
pa_data = boot_params.hdr.setup_data;
arch/x86/pci/olpc.c
176
static uint32_t *hdr_addr(const uint32_t *hdr, int reg)
arch/x86/pci/olpc.c
191
addr = (uint32_t)hdr + reg + (bar_probing ? -0x10 : 0x20);
arch/x86/platform/efi/efi.c
366
const efi_table_hdr_t *hdr;
arch/x86/platform/efi/efi.c
371
hdr = p = early_memremap_ro(phys, size);
arch/x86/platform/efi/efi.c
377
ret = efi_systab_check_header(hdr);
arch/x86/platform/efi/efi.c
422
efi.runtime_version = hdr->revision;
arch/x86/platform/efi/efi.c
424
efi_systab_report_header(hdr, efi_fw_vendor);
arch/x86/platform/olpc/olpc_ofw.c
102
olpc_ofw_cif = (int (*)(int *))hdr->cif_handler;
arch/x86/platform/olpc/olpc_ofw.c
95
struct olpc_ofw_header *hdr = &boot_params.olpc_ofw_header;
arch/x86/platform/olpc/olpc_ofw.c
99
if (hdr->ofw_magic != OLPC_OFW_SIG)
arch/x86/platform/pvh/enlighten.c
73
pvh_bootparams.hdr.cmd_line_ptr =
arch/x86/platform/pvh/enlighten.c
80
pvh_bootparams.hdr.ramdisk_image = modaddr->paddr;
arch/x86/platform/pvh/enlighten.c
81
pvh_bootparams.hdr.ramdisk_size = modaddr->size;
arch/x86/platform/pvh/enlighten.c
90
pvh_bootparams.hdr.version = (2 << 8) | 12;
arch/x86/platform/pvh/enlighten.c
91
pvh_bootparams.hdr.type_of_loader = ((xen_guest ? 0x9 : 0xb) << 4) | 0;
arch/x86/tools/vdso2c.c
152
Elf64_Ehdr *hdr = (Elf64_Ehdr *)raw_addr;
arch/x86/tools/vdso2c.c
154
if (hdr->e_ident[EI_CLASS] == ELFCLASS64) {
arch/x86/tools/vdso2c.c
157
} else if (hdr->e_ident[EI_CLASS] == ELFCLASS32) {
arch/x86/tools/vdso2c.h
103
secstrings_hdr = raw_addr + GET_LE(&hdr->e_shoff) +
arch/x86/tools/vdso2c.h
104
GET_LE(&hdr->e_shentsize)*GET_LE(&hdr->e_shstrndx);
arch/x86/tools/vdso2c.h
106
for (i = 0; i < GET_LE(&hdr->e_shnum); i++) {
arch/x86/tools/vdso2c.h
107
ELF(Shdr) *sh = raw_addr + GET_LE(&hdr->e_shoff) +
arch/x86/tools/vdso2c.h
108
GET_LE(&hdr->e_shentsize) * i;
arch/x86/tools/vdso2c.h
122
strtab_hdr = raw_addr + GET_LE(&hdr->e_shoff) +
arch/x86/tools/vdso2c.h
123
GET_LE(&hdr->e_shentsize) * GET_LE(&symtab_hdr->sh_link);
arch/x86/tools/vdso2c.h
50
ELF(Ehdr) *hdr = (ELF(Ehdr) *)raw_addr;
arch/x86/tools/vdso2c.h
58
ELF(Phdr) *pt = (ELF(Phdr) *)(raw_addr + GET_LE(&hdr->e_phoff));
arch/x86/tools/vdso2c.h
60
if (GET_LE(&hdr->e_type) != ET_DYN)
arch/x86/tools/vdso2c.h
64
for (i = 0; i < GET_LE(&hdr->e_phnum); i++) {
arch/x86/xen/efi.c
24
.hdr = {
arch/x86/xen/efi.c
84
efi_systab_xen.hdr.revision = info->version;
arch/x86/xen/enlighten_pv.c
1507
boot_params.hdr.type_of_loader = (9 << 4) | 0;
arch/x86/xen/enlighten_pv.c
1508
boot_params.hdr.ramdisk_image = initrd_start;
arch/x86/xen/enlighten_pv.c
1509
boot_params.hdr.ramdisk_size = xen_start_info->mod_len;
arch/x86/xen/enlighten_pv.c
1510
boot_params.hdr.cmd_line_ptr = __pa(xen_start_info->cmd_line);
arch/x86/xen/enlighten_pv.c
1511
boot_params.hdr.hardware_subarch = X86_SUBARCH_XEN;
arch/x86/xen/setup.c
951
if (xen_is_e820_reserved(boot_params.hdr.ramdisk_image,
arch/x86/xen/setup.c
952
boot_params.hdr.ramdisk_size)) {
arch/x86/xen/setup.c
955
new_area = xen_find_free_area(boot_params.hdr.ramdisk_size);
arch/x86/xen/setup.c
961
start = boot_params.hdr.ramdisk_image;
arch/x86/xen/setup.c
962
size = boot_params.hdr.ramdisk_size;
arch/x86/xen/setup.c
967
boot_params.hdr.ramdisk_image = new_area;
block/bsg-lib.c
101
hdr->device_status = job->result & 0xff;
block/bsg-lib.c
102
hdr->transport_status = host_byte(job->result);
block/bsg-lib.c
103
hdr->driver_status = 0;
block/bsg-lib.c
104
hdr->info = 0;
block/bsg-lib.c
105
if (hdr->device_status || hdr->transport_status || hdr->driver_status)
block/bsg-lib.c
106
hdr->info |= SG_INFO_CHECK;
block/bsg-lib.c
107
hdr->response_len = 0;
block/bsg-lib.c
115
if (job->reply_len && hdr->response) {
block/bsg-lib.c
116
int len = min(hdr->max_response_len, job->reply_len);
block/bsg-lib.c
118
if (copy_to_user(uptr64(hdr->response), job->reply, len))
block/bsg-lib.c
121
hdr->response_len = len;
block/bsg-lib.c
125
hdr->dout_resid = 0;
block/bsg-lib.c
131
hdr->din_resid = 0;
block/bsg-lib.c
133
hdr->din_resid = rsp_len - job->reply_payload_rcv_len;
block/bsg-lib.c
135
hdr->din_resid = 0;
block/bsg-lib.c
28
static int bsg_transport_sg_io_fn(struct request_queue *q, struct sg_io_v4 *hdr,
block/bsg-lib.c
37
if (hdr->protocol != BSG_PROTOCOL_SCSI ||
block/bsg-lib.c
38
hdr->subprotocol != BSG_SUB_PROTOCOL_SCSI_TRANSPORT)
block/bsg-lib.c
43
rq = blk_mq_alloc_request(q, hdr->dout_xfer_len ?
block/bsg-lib.c
56
job->request_len = hdr->request_len;
block/bsg-lib.c
57
job->request = memdup_user(uptr64(hdr->request), hdr->request_len);
block/bsg-lib.c
63
if (hdr->dout_xfer_len && hdr->din_xfer_len) {
block/bsg-lib.c
71
uptr64(hdr->din_xferp), hdr->din_xfer_len,
block/bsg-lib.c
83
if (hdr->dout_xfer_len) {
block/bsg-lib.c
84
ret = blk_rq_map_user(rq->q, rq, NULL, uptr64(hdr->dout_xferp),
block/bsg-lib.c
85
hdr->dout_xfer_len, GFP_KERNEL);
block/bsg-lib.c
86
} else if (hdr->din_xfer_len) {
block/bsg-lib.c
87
ret = blk_rq_map_user(rq->q, rq, NULL, uptr64(hdr->din_xferp),
block/bsg-lib.c
88
hdr->din_xfer_len, GFP_KERNEL);
block/bsg-lib.c
95
blk_execute_rq(rq, !(hdr->flags & BSG_FLAG_Q_AT_TAIL));
block/bsg.c
45
static unsigned int bsg_timeout(struct bsg_device *bd, struct sg_io_v4 *hdr)
block/bsg.c
49
if (hdr->timeout)
block/bsg.c
50
timeout = msecs_to_jiffies(hdr->timeout);
block/bsg.c
60
struct sg_io_v4 hdr;
block/bsg.c
63
if (copy_from_user(&hdr, uarg, sizeof(hdr)))
block/bsg.c
65
if (hdr.guard != 'Q')
block/bsg.c
67
ret = bd->sg_io_fn(bd->queue, &hdr, open_for_write,
block/bsg.c
68
bsg_timeout(bd, &hdr));
block/bsg.c
69
if (!ret && copy_to_user(uarg, &hdr, sizeof(hdr)))
block/sed-opal.c
1012
const struct opal_header *hdr;
block/sed-opal.c
1026
hdr = (struct opal_header *)buf;
block/sed-opal.c
1028
pos += sizeof(*hdr);
block/sed-opal.c
1030
clen = be32_to_cpu(hdr->cp.length);
block/sed-opal.c
1031
plen = be32_to_cpu(hdr->pkt.length);
block/sed-opal.c
1032
slen = be32_to_cpu(hdr->subpkt.length);
block/sed-opal.c
1037
slen > IO_BUFFER_LENGTH - sizeof(*hdr)) {
block/sed-opal.c
1040
print_buffer(pos, sizeof(*hdr));
block/sed-opal.c
474
struct opal_header *hdr = buffer;
block/sed-opal.c
479
hdr->cp.outstandingData,
block/sed-opal.c
480
hdr->cp.minTransfer);
block/sed-opal.c
482
if (hdr->cp.outstandingData == 0 ||
block/sed-opal.c
483
hdr->cp.minTransfer != 0)
block/sed-opal.c
573
const struct d0_header *hdr = (struct d0_header *)dev->resp;
block/sed-opal.c
576
u32 hlen = be32_to_cpu(hdr->length);
block/sed-opal.c
581
if (hlen > IO_BUFFER_LENGTH - sizeof(*hdr)) {
block/sed-opal.c
583
sizeof(*hdr), hlen, IO_BUFFER_LENGTH);
block/sed-opal.c
597
cpos += sizeof(*hdr); /* current position on buffer */
block/sed-opal.c
839
struct opal_header *hdr = (struct opal_header *)cmd->cmd;
block/sed-opal.c
841
hdr->cp.extendedComID[0] = comid >> 8;
block/sed-opal.c
842
hdr->cp.extendedComID[1] = comid;
block/sed-opal.c
843
hdr->cp.extendedComID[2] = 0;
block/sed-opal.c
844
hdr->cp.extendedComID[3] = 0;
block/sed-opal.c
849
struct opal_header *hdr;
block/sed-opal.c
871
hdr = (struct opal_header *) cmd->cmd;
block/sed-opal.c
873
hdr->pkt.tsn = cpu_to_be32(tsn);
block/sed-opal.c
874
hdr->pkt.hsn = cpu_to_be32(hsn);
block/sed-opal.c
876
hdr->subpkt.length = cpu_to_be32(cmd->pos - sizeof(*hdr));
block/sed-opal.c
884
hdr->pkt.length = cpu_to_be32(cmd->pos - sizeof(hdr->cp) -
block/sed-opal.c
885
sizeof(hdr->pkt));
block/sed-opal.c
886
hdr->cp.length = cpu_to_be32(cmd->pos - sizeof(hdr->cp));
drivers/accel/habanalabs/common/irq.c
512
cur_eqe = le32_to_cpu(eq_base[eq->ci].hdr.ctl);
drivers/accel/habanalabs/common/irq.c
540
ctl = le32_to_cpu(eq_entry->hdr.ctl);
drivers/accel/habanalabs/common/irq.c
559
eq_entry->hdr.ctl =
drivers/accel/habanalabs/common/irq.c
560
cpu_to_le32(le32_to_cpu(eq_entry->hdr.ctl) &
drivers/accel/habanalabs/common/irq.c
706
struct hl_eq_header *hdr;
drivers/accel/habanalabs/common/irq.c
716
hdr = (struct hl_eq_header *) ptr;
drivers/accel/habanalabs/common/irq.c
717
ctl = le32_to_cpu(hdr->ctl);
drivers/accel/habanalabs/gaudi/gaudi.c
7577
u32 ctl = le32_to_cpu(eq_entry->hdr.ctl);
drivers/accel/habanalabs/gaudi2/gaudi2.c
10151
ctl = le32_to_cpu(eq_entry->hdr.ctl);
drivers/accel/habanalabs/gaudi2/gaudi2.c
10364
is_critical = eq_entry->sei_data.hdr.is_critical;
drivers/accel/habanalabs/gaudi2/gaudi2.c
9739
cause_idx = sei_data->hdr.sei_cause;
drivers/accel/habanalabs/gaudi2/gaudi2.c
9747
gaudi2_print_event(hdev, event_type, !sei_data->hdr.is_critical,
drivers/accel/habanalabs/gaudi2/gaudi2.c
9749
sei_data->hdr.is_critical ? "Critical" : "Non-critical",
drivers/accel/habanalabs/gaudi2/gaudi2.c
9750
hbm_id, mc_id, sei_data->hdr.mc_channel, sei_data->hdr.mc_pseudo_channel,
drivers/accel/habanalabs/gaudi2/gaudi2.c
9761
le32_to_cpu(sei_data->hdr.cnt));
drivers/accel/habanalabs/gaudi2/gaudi2.c
9767
le32_to_cpu(sei_data->hdr.cnt));
drivers/accel/habanalabs/gaudi2/gaudi2.c
9773
le32_to_cpu(sei_data->hdr.cnt));
drivers/accel/habanalabs/gaudi2/gaudi2.c
9783
le32_to_cpu(sei_data->hdr.cnt));
drivers/accel/habanalabs/gaudi2/gaudi2.c
9790
require_hard_reset |= !!sei_data->hdr.is_critical;
drivers/accel/habanalabs/goya/goya.c
4622
u32 ctl = le32_to_cpu(eq_entry->hdr.ctl);
drivers/accel/qaic/qaic_control.c
1014
if (msg_len != (msg_hdr_len - sizeof(msg->hdr)))
drivers/accel/qaic/qaic_control.c
102
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
112
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
1155
out_trans->hdr.type = cpu_to_le32(QAIC_TRANS_DMA_XFER_TO_DEV);
drivers/accel/qaic/qaic_control.c
1156
out_trans->hdr.len = cpu_to_le32(size);
drivers/accel/qaic/qaic_control.c
1161
msg->hdr.len = cpu_to_le32(size + sizeof(*msg));
drivers/accel/qaic/qaic_control.c
1162
msg->hdr.count = cpu_to_le32(1);
drivers/accel/qaic/qaic_control.c
119
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
1215
msg->hdr.magic_number = MANAGE_MAGIC_NUMBER;
drivers/accel/qaic/qaic_control.c
1216
msg->hdr.sequence_number = cpu_to_le32(qdev->next_seq_num++);
drivers/accel/qaic/qaic_control.c
1219
msg->hdr.handle = cpu_to_le32(usr->handle);
drivers/accel/qaic/qaic_control.c
1220
msg->hdr.partition_id = cpu_to_le32(usr->qddev->partition_id);
drivers/accel/qaic/qaic_control.c
1222
msg->hdr.handle = 0;
drivers/accel/qaic/qaic_control.c
1223
msg->hdr.partition_id = cpu_to_le32(QAIC_NO_PARTITION);
drivers/accel/qaic/qaic_control.c
1226
msg->hdr.padding = cpu_to_le32(0);
drivers/accel/qaic/qaic_control.c
1227
msg->hdr.crc32 = cpu_to_le32(qdev->gen_crc(wrappers));
drivers/accel/qaic/qaic_control.c
1268
if (le32_to_cpu(rsp->hdr.count) == 1) {
drivers/accel/qaic/qaic_control.c
1270
if (le32_to_cpu(dma_cont->hdr.type) != QAIC_TRANS_DMA_XFER_CONT)
drivers/accel/qaic/qaic_control.c
129
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
136
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
1380
status_query->hdr.type = QAIC_TRANS_STATUS_FROM_USR;
drivers/accel/qaic/qaic_control.c
1381
status_query->hdr.len = sizeof(status_query->hdr);
drivers/accel/qaic/qaic_control.c
1415
if (elem->seq_num == le32_to_cpu(msg->hdr.sequence_number)) {
drivers/accel/qaic/qaic_control.c
142
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
1449
u32 msg_count = le32_to_cpu(msg->hdr.count);
drivers/accel/qaic/qaic_control.c
1450
u32 msg_len = le32_to_cpu(msg->hdr.len);
drivers/accel/qaic/qaic_control.c
148
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
1499
if (mhi_result->transaction_status || msg->hdr.magic_number != MANAGE_MAGIC_NUMBER) {
drivers/accel/qaic/qaic_control.c
154
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
1565
trans->hdr.type = cpu_to_le32(QAIC_TRANS_TERMINATE_TO_DEV);
drivers/accel/qaic/qaic_control.c
1566
trans->hdr.len = cpu_to_le32(sizeof(*trans));
drivers/accel/qaic/qaic_control.c
1570
wrapper->len = sizeof(msg->hdr) + sizeof(*trans);
drivers/accel/qaic/qaic_control.c
1571
msg->hdr.magic_number = MANAGE_MAGIC_NUMBER;
drivers/accel/qaic/qaic_control.c
1572
msg->hdr.sequence_number = cpu_to_le32(qdev->next_seq_num++);
drivers/accel/qaic/qaic_control.c
1573
msg->hdr.len = cpu_to_le32(wrapper->len);
drivers/accel/qaic/qaic_control.c
1574
msg->hdr.count = cpu_to_le32(1);
drivers/accel/qaic/qaic_control.c
1575
msg->hdr.handle = cpu_to_le32(usr->handle);
drivers/accel/qaic/qaic_control.c
1576
msg->hdr.padding = cpu_to_le32(0);
drivers/accel/qaic/qaic_control.c
1577
msg->hdr.crc32 = cpu_to_le32(qdev->gen_crc(wrappers));
drivers/accel/qaic/qaic_control.c
158
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
166
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
172
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
270
struct wire_msg_hdr *hdr = msg;
drivers/accel/qaic/qaic_control.c
278
crc = le32_to_cpu(hdr->crc32);
drivers/accel/qaic/qaic_control.c
279
hdr->crc32 = 0;
drivers/accel/qaic/qaic_control.c
280
ret = (crc32(~0, msg, le32_to_cpu(hdr->len)) ^ ~0) == crc;
drivers/accel/qaic/qaic_control.c
281
hdr->crc32 = cpu_to_le32(crc);
drivers/accel/qaic/qaic_control.c
367
msg_hdr_len = le32_to_cpu(msg->hdr.len);
drivers/accel/qaic/qaic_control.c
369
if (in_trans->hdr.len % 8 != 0)
drivers/accel/qaic/qaic_control.c
372
if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_WIRE_MSG_LENGTH)
drivers/accel/qaic/qaic_control.c
376
offsetof(struct wrapper_msg, trans) + in_trans->hdr.len);
drivers/accel/qaic/qaic_control.c
379
trans_wrapper->len = in_trans->hdr.len;
drivers/accel/qaic/qaic_control.c
382
memcpy(out_trans->data, in_trans->data, in_trans->hdr.len - sizeof(in_trans->hdr));
drivers/accel/qaic/qaic_control.c
383
msg->hdr.len = cpu_to_le32(msg_hdr_len + in_trans->hdr.len);
drivers/accel/qaic/qaic_control.c
384
msg->hdr.count = incr_le32(msg->hdr.count);
drivers/accel/qaic/qaic_control.c
385
*user_len += in_trans->hdr.len;
drivers/accel/qaic/qaic_control.c
386
out_trans->hdr.type = cpu_to_le32(QAIC_TRANS_PASSTHROUGH_TO_DEV);
drivers/accel/qaic/qaic_control.c
387
out_trans->hdr.len = cpu_to_le32(in_trans->hdr.len);
drivers/accel/qaic/qaic_control.c
578
msg_hdr_len = le32_to_cpu(msg->hdr.len);
drivers/accel/qaic/qaic_control.c
601
msg->hdr.len = cpu_to_le32(msg_hdr_len + size);
drivers/accel/qaic/qaic_control.c
602
msg->hdr.count = incr_le32(msg->hdr.count);
drivers/accel/qaic/qaic_control.c
604
out_trans->hdr.type = cpu_to_le32(QAIC_TRANS_DMA_XFER_TO_DEV);
drivers/accel/qaic/qaic_control.c
605
out_trans->hdr.len = cpu_to_le32(size);
drivers/accel/qaic/qaic_control.c
610
*user_len += in_trans->hdr.len;
drivers/accel/qaic/qaic_control.c
649
msg_hdr_len = le32_to_cpu(msg->hdr.len);
drivers/accel/qaic/qaic_control.c
65
struct wire_msg_hdr hdr;
drivers/accel/qaic/qaic_control.c
684
out_trans->hdr.type = cpu_to_le32(QAIC_TRANS_ACTIVATE_TO_DEV);
drivers/accel/qaic/qaic_control.c
685
out_trans->hdr.len = cpu_to_le32(sizeof(*out_trans));
drivers/accel/qaic/qaic_control.c
693
*user_len += in_trans->hdr.len;
drivers/accel/qaic/qaic_control.c
694
msg->hdr.len = cpu_to_le32(msg_hdr_len + sizeof(*out_trans));
drivers/accel/qaic/qaic_control.c
695
msg->hdr.count = incr_le32(msg->hdr.count);
drivers/accel/qaic/qaic_control.c
717
*user_len += in_trans->hdr.len;
drivers/accel/qaic/qaic_control.c
734
msg_hdr_len = le32_to_cpu(msg->hdr.len);
drivers/accel/qaic/qaic_control.c
736
if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_WIRE_MSG_LENGTH)
drivers/accel/qaic/qaic_control.c
746
out_trans->hdr.type = cpu_to_le32(QAIC_TRANS_STATUS_TO_DEV);
drivers/accel/qaic/qaic_control.c
747
out_trans->hdr.len = cpu_to_le32(in_trans->hdr.len);
drivers/accel/qaic/qaic_control.c
748
msg->hdr.len = cpu_to_le32(msg_hdr_len + in_trans->hdr.len);
drivers/accel/qaic/qaic_control.c
749
msg->hdr.count = incr_le32(msg->hdr.count);
drivers/accel/qaic/qaic_control.c
750
*user_len += in_trans->hdr.len;
drivers/accel/qaic/qaic_control.c
775
msg->hdr.len = cpu_to_le32(sizeof(msg->hdr));
drivers/accel/qaic/qaic_control.c
779
msg->hdr.count = cpu_to_le32(1);
drivers/accel/qaic/qaic_control.c
841
len = le32_to_cpu(in_trans->hdr.len);
drivers/accel/qaic/qaic_control.c
848
memcpy(out_trans->data, in_trans->data, len - sizeof(in_trans->hdr));
drivers/accel/qaic/qaic_control.c
851
out_trans->hdr.type = le32_to_cpu(in_trans->hdr.type);
drivers/accel/qaic/qaic_control.c
852
out_trans->hdr.len = len;
drivers/accel/qaic/qaic_control.c
866
len = le32_to_cpu(in_trans->hdr.len);
drivers/accel/qaic/qaic_control.c
872
out_trans->hdr.type = le32_to_cpu(in_trans->hdr.type);
drivers/accel/qaic/qaic_control.c
873
out_trans->hdr.len = len;
drivers/accel/qaic/qaic_control.c
92
struct wire_trans_hdr hdr;
drivers/accel/qaic/qaic_control.c
943
len = le32_to_cpu(in_trans->hdr.len);
drivers/accel/qaic/qaic_control.c
947
out_trans->hdr.type = QAIC_TRANS_STATUS_FROM_DEV;
drivers/accel/qaic/qaic_control.c
948
out_trans->hdr.len = len;
drivers/accel/qaic/qaic_control.c
953
*user_len += le32_to_cpu(in_trans->hdr.len);
drivers/accel/qaic/qaic_control.c
968
u32 msg_hdr_len = le32_to_cpu(msg->hdr.len);
drivers/accel/qaic/qaic_control.c
979
user_msg->count = le32_to_cpu(msg->hdr.count);
drivers/accel/qaic/qaic_data.c
1010
if (args->hdr.dbc_id >= qdev->num_dbc) {
drivers/accel/qaic/qaic_data.c
1023
obj = drm_gem_object_lookup(file_priv, args->hdr.handle);
drivers/accel/qaic/qaic_data.c
1029
ret = qaic_validate_req(qdev, slice_ent, args->hdr.count, obj->size);
drivers/accel/qaic/qaic_data.c
1043
dbc = &qdev->dbc[args->hdr.dbc_id];
drivers/accel/qaic/qaic_data.c
1055
ret = qaic_prepare_bo(qdev, bo, &args->hdr);
drivers/accel/qaic/qaic_data.c
1059
ret = qaic_attach_slicing_bo(qdev, bo, &args->hdr, slice_ent);
drivers/accel/qaic/qaic_data.c
1063
if (args->hdr.dir == DMA_TO_DEVICE)
drivers/accel/qaic/qaic_data.c
1064
dma_sync_sgtable_for_cpu(&qdev->pdev->dev, bo->sgt, args->hdr.dir);
drivers/accel/qaic/qaic_data.c
1344
if (args->hdr.count == 0)
drivers/accel/qaic/qaic_data.c
1347
exec = memdup_array_user(u64_to_user_ptr(args->data), args->hdr.count, size);
drivers/accel/qaic/qaic_data.c
1365
if (args->hdr.dbc_id >= qdev->num_dbc) {
drivers/accel/qaic/qaic_data.c
1370
dbc = &qdev->dbc[args->hdr.dbc_id];
drivers/accel/qaic/qaic_data.c
1398
ret = send_bo_list_to_device(qdev, file_priv, exec, args->hdr.count, is_partial, dbc,
drivers/accel/qaic/qaic_data.c
1408
update_profiling_data(file_priv, exec, args->hdr.count, is_partial, received_ts,
drivers/accel/qaic/qaic_data.c
1800
if (args->hdr.dbc_id >= qdev->num_dbc) {
drivers/accel/qaic/qaic_data.c
1805
ent = memdup_array_user(u64_to_user_ptr(args->data), args->hdr.count, sizeof(*ent));
drivers/accel/qaic/qaic_data.c
1811
for (i = 0; i < args->hdr.count; i++) {
drivers/accel/qaic/qaic_data.c
1823
if (bo->dbc->id != args->hdr.dbc_id) {
drivers/accel/qaic/qaic_data.c
1845
if (copy_to_user(u64_to_user_ptr(args->data), ent, args->hdr.count * sizeof(*ent)))
drivers/accel/qaic/qaic_data.c
867
static int qaic_prepare_import_bo(struct qaic_bo *bo, struct qaic_attach_slice_hdr *hdr)
drivers/accel/qaic/qaic_data.c
873
sgt = dma_buf_map_attachment(obj->import_attach, hdr->dir);
drivers/accel/qaic/qaic_data.c
885
struct qaic_attach_slice_hdr *hdr)
drivers/accel/qaic/qaic_data.c
889
ret = dma_map_sgtable(&qdev->pdev->dev, bo->sgt, hdr->dir, 0);
drivers/accel/qaic/qaic_data.c
897
struct qaic_attach_slice_hdr *hdr)
drivers/accel/qaic/qaic_data.c
902
ret = qaic_prepare_import_bo(bo, hdr);
drivers/accel/qaic/qaic_data.c
904
ret = qaic_prepare_export_bo(qdev, bo, hdr);
drivers/accel/qaic/qaic_data.c
905
bo->dir = hdr->dir;
drivers/accel/qaic/qaic_data.c
906
bo->dbc = &qdev->dbc[hdr->dbc_id];
drivers/accel/qaic/qaic_data.c
907
bo->nr_slice = hdr->count;
drivers/accel/qaic/qaic_data.c
947
struct qaic_attach_slice_hdr *hdr,
drivers/accel/qaic/qaic_data.c
952
for (i = 0; i < hdr->count; i++) {
drivers/accel/qaic/qaic_data.c
982
if (args->hdr.count == 0)
drivers/accel/qaic/qaic_data.c
985
if (check_mul_overflow((unsigned long)args->hdr.count,
drivers/accel/qaic/qaic_data.c
990
if (!(args->hdr.dir == DMA_TO_DEVICE || args->hdr.dir == DMA_FROM_DEVICE))
drivers/accel/qaic/qaic_ssr.c
104
struct _ssr_hdr hdr;
drivers/accel/qaic/qaic_ssr.c
273
xfer_done->hdr.cmd = cpu_to_le32(DEBUG_TRANSFER_DONE);
drivers/accel/qaic/qaic_ssr.c
274
xfer_done->hdr.len = cpu_to_le32(sizeof(*xfer_done));
drivers/accel/qaic/qaic_ssr.c
275
xfer_done->hdr.dbc_id = cpu_to_le32(dbc_id);
drivers/accel/qaic/qaic_ssr.c
303
read_buf_req->hdr.cmd = cpu_to_le32(MEMORY_READ);
drivers/accel/qaic/qaic_ssr.c
304
read_buf_req->hdr.len = cpu_to_le32(sizeof(*read_buf_req));
drivers/accel/qaic/qaic_ssr.c
305
read_buf_req->hdr.dbc_id = cpu_to_le32(qdev->ssr_dbc);
drivers/accel/qaic/qaic_ssr.c
369
struct ssr_hdr hdr;
drivers/accel/qaic/qaic_ssr.c
374
_hdr = &mem_rd_resp->hdr;
drivers/accel/qaic/qaic_ssr.c
375
hdr.cmd = le32_to_cpu(_hdr->cmd);
drivers/accel/qaic/qaic_ssr.c
376
hdr.len = le32_to_cpu(_hdr->len);
drivers/accel/qaic/qaic_ssr.c
377
hdr.dbc_id = le32_to_cpu(_hdr->dbc_id);
drivers/accel/qaic/qaic_ssr.c
379
if (hdr.dbc_id != qdev->ssr_dbc)
drivers/accel/qaic/qaic_ssr.c
386
if (hdr.cmd != MEMORY_READ_RSP)
drivers/accel/qaic/qaic_ssr.c
389
if (hdr.len > SSR_MEM_READ_DATA_SIZE)
drivers/accel/qaic/qaic_ssr.c
392
data_len = hdr.len - sizeof(*mem_rd_resp);
drivers/accel/qaic/qaic_ssr.c
415
ret = send_xfer_done(qdev, dump_info->resp->data, hdr.dbc_id);
drivers/accel/qaic/qaic_ssr.c
515
debug_rsp->hdr.cmd = cpu_to_le32(DEBUG_TRANSFER_INFO_RSP);
drivers/accel/qaic/qaic_ssr.c
516
debug_rsp->hdr.len = cpu_to_le32(sizeof(*debug_rsp));
drivers/accel/qaic/qaic_ssr.c
517
debug_rsp->hdr.dbc_id = cpu_to_le32(dbc->id);
drivers/accel/qaic/qaic_ssr.c
560
struct ssr_hdr *hdr = (struct ssr_hdr *)resp->data;
drivers/accel/qaic/qaic_ssr.c
570
le32_to_cpus(&hdr->cmd);
drivers/accel/qaic/qaic_ssr.c
571
le32_to_cpus(&hdr->len);
drivers/accel/qaic/qaic_ssr.c
572
le32_to_cpus(&hdr->dbc_id);
drivers/accel/qaic/qaic_ssr.c
574
if (hdr->len > SSR_RESP_MSG_SZ)
drivers/accel/qaic/qaic_ssr.c
577
if (hdr->dbc_id >= qdev->num_dbc)
drivers/accel/qaic/qaic_ssr.c
580
dbc = &qdev->dbc[hdr->dbc_id];
drivers/accel/qaic/qaic_ssr.c
582
switch (hdr->cmd) {
drivers/accel/qaic/qaic_ssr.c
608
event = (struct ssr_event *)hdr;
drivers/accel/qaic/qaic_ssr.c
615
set_dbc_state(qdev, hdr->dbc_id, DBC_STATE_BEFORE_SHUTDOWN);
drivers/accel/qaic/qaic_ssr.c
616
qaic_dbc_enter_ssr(qdev, hdr->dbc_id);
drivers/accel/qaic/qaic_ssr.c
619
set_dbc_state(qdev, hdr->dbc_id, DBC_STATE_AFTER_SHUTDOWN);
drivers/accel/qaic/qaic_ssr.c
622
set_dbc_state(qdev, hdr->dbc_id, DBC_STATE_BEFORE_POWER_UP);
drivers/accel/qaic/qaic_ssr.c
637
set_dbc_state(qdev, hdr->dbc_id, DBC_STATE_AFTER_POWER_UP);
drivers/accel/qaic/qaic_ssr.c
64
struct ssr_hdr hdr;
drivers/accel/qaic/qaic_ssr.c
647
event_rsp->hdr.cmd = cpu_to_le32(SSR_EVENT_RSP);
drivers/accel/qaic/qaic_ssr.c
648
event_rsp->hdr.len = cpu_to_le32(sizeof(*event_rsp));
drivers/accel/qaic/qaic_ssr.c
649
event_rsp->hdr.dbc_id = cpu_to_le32(hdr->dbc_id);
drivers/accel/qaic/qaic_ssr.c
659
set_dbc_state(qdev, hdr->dbc_id, DBC_STATE_IDLE);
drivers/accel/qaic/qaic_ssr.c
664
dbg_xfer_done_rsp(qdev, dbc, (struct ssr_debug_transfer_done_rsp *)hdr);
drivers/accel/qaic/qaic_ssr.c
71
struct _ssr_hdr hdr;
drivers/accel/qaic/qaic_ssr.c
721
struct _ssr_hdr *hdr = mhi_result->buf_addr;
drivers/accel/qaic/qaic_ssr.c
736
if (le32_to_cpu(hdr->cmd) == MEMORY_READ) {
drivers/accel/qaic/qaic_ssr.c
76
struct _ssr_hdr hdr;
drivers/accel/qaic/qaic_ssr.c
83
struct _ssr_hdr hdr;
drivers/accel/qaic/qaic_ssr.c
89
struct _ssr_hdr hdr;
drivers/accel/qaic/qaic_ssr.c
94
struct _ssr_hdr hdr;
drivers/accel/qaic/qaic_ssr.c
99
struct ssr_hdr hdr;
drivers/accel/qaic/qaic_timesync.c
276
switch (data.hdr.msg_type) {
drivers/accel/qaic/qaic_timesync.c
282
req->header = data.hdr;
drivers/accel/qaic/qaic_timesync.c
298
dev_err(&mhi_dev->dev, "Invalid message type %u.\n", data.hdr.msg_type);
drivers/accel/qaic/qaic_timesync.c
88
struct qts_hdr hdr;
drivers/acpi/apei/erst.c
1047
struct cper_record_header hdr;
drivers/acpi/apei/erst.c
1096
len = erst_read_record(record_id, &rcd->hdr, rcd_len, sizeof(*rcd),
drivers/acpi/apei/erst.c
1123
if (rcd->hdr.validation_bits & CPER_VALID_TIMESTAMP)
drivers/acpi/apei/erst.c
1124
record->time.tv_sec = rcd->hdr.timestamp;
drivers/acpi/apei/erst.c
1141
memcpy(rcd->hdr.signature, CPER_SIG_RECORD, CPER_SIG_SIZE);
drivers/acpi/apei/erst.c
1142
rcd->hdr.revision = CPER_RECORD_REV;
drivers/acpi/apei/erst.c
1143
rcd->hdr.signature_end = CPER_SIG_END;
drivers/acpi/apei/erst.c
1144
rcd->hdr.section_count = 1;
drivers/acpi/apei/erst.c
1145
rcd->hdr.error_severity = CPER_SEV_FATAL;
drivers/acpi/apei/erst.c
1147
rcd->hdr.validation_bits = CPER_VALID_TIMESTAMP;
drivers/acpi/apei/erst.c
1148
rcd->hdr.timestamp = ktime_get_real_seconds();
drivers/acpi/apei/erst.c
1149
rcd->hdr.record_length = sizeof(*rcd) + record->size;
drivers/acpi/apei/erst.c
1150
rcd->hdr.creator_id = CPER_CREATOR_PSTORE;
drivers/acpi/apei/erst.c
1151
rcd->hdr.notification_type = CPER_NOTIFY_MCE;
drivers/acpi/apei/erst.c
1152
rcd->hdr.record_id = cper_next_record_id();
drivers/acpi/apei/erst.c
1153
rcd->hdr.flags = CPER_HW_ERROR_FLAGS_PREVERR;
drivers/acpi/apei/erst.c
1176
ret = erst_write(&rcd->hdr);
drivers/acpi/apei/erst.c
1177
record->id = rcd->hdr.record_id;
drivers/acpi/apei/ghes.c
804
if (rec->hdr.length <= sizeof(rec->hdr) ||
drivers/acpi/apei/ghes.c
805
rec->hdr.length > sizeof(*rec)) {
drivers/acpi/apei/ghes.c
807
rec->hdr.length);
drivers/acpi/apei/ghes.c
811
if (!(rec->hdr.validation_bits & CPER_CXL_COMP_EVENT_LOG_VALID)) {
drivers/acpi/apei/hest.c
219
struct acpi_hest_header *hdr;
drivers/acpi/apei/hest.c
221
hdr = *(struct acpi_hest_header **)ghes_dev->dev.platform_data;
drivers/acpi/apei/hest.c
222
if (hdr->source_id == hest_hdr->source_id) {
drivers/acpi/apei/hest.c
224
hdr->source_id);
drivers/acpi/nfit/core.c
1008
dev_err(dev, "unknown table '%d' parsing nfit\n", hdr->type);
drivers/acpi/nfit/core.c
1012
return table + hdr->length;
drivers/acpi/nfit/core.c
962
struct acpi_nfit_header *hdr;
drivers/acpi/nfit/core.c
968
hdr = table;
drivers/acpi/nfit/core.c
969
if (!hdr->length) {
drivers/acpi/nfit/core.c
971
hdr->type);
drivers/acpi/nfit/core.c
975
switch (hdr->type) {
drivers/acpi/numa/hmat.c
594
struct acpi_hmat_structure *hdr = (void *)header;
drivers/acpi/numa/hmat.c
596
if (!hdr)
drivers/acpi/numa/hmat.c
599
switch (hdr->type) {
drivers/acpi/pfr_update.c
325
size += sizeof(u64) + auth->auth_info.hdr.len;
drivers/acpi/processor_core.c
354
struct acpi_subtable_header *hdr;
drivers/acpi/processor_core.c
369
hdr = (struct acpi_subtable_header *)entry;
drivers/acpi/processor_core.c
370
if (hdr->type == ACPI_MADT_TYPE_IO_APIC &&
drivers/acpi/processor_core.c
371
get_ioapic_id(hdr, gsi_base, phys_addr, &apic_id))
drivers/acpi/processor_core.c
374
entry += hdr->length;
drivers/acpi/utils.c
1059
struct acpi_table_header hdr;
drivers/acpi/utils.c
1066
if (ACPI_FAILURE(acpi_get_table_header(plat->table, 0, &hdr)))
drivers/acpi/utils.c
1069
if (strncmp(plat->oem_id, hdr.oem_id, ACPI_OEM_ID_SIZE))
drivers/acpi/utils.c
1072
if (strncmp(plat->oem_table_id, hdr.oem_table_id, ACPI_OEM_TABLE_ID_SIZE))
drivers/acpi/utils.c
1076
(plat->pred == less_than_or_equal && hdr.oem_revision <= plat->oem_revision) ||
drivers/acpi/utils.c
1077
(plat->pred == greater_than_or_equal && hdr.oem_revision >= plat->oem_revision) ||
drivers/acpi/utils.c
1078
(plat->pred == equal && hdr.oem_revision == plat->oem_revision))
drivers/acpi/viot.c
131
struct acpi_viot_header *hdr = ACPI_ADD_PTR(struct acpi_viot_header,
drivers/acpi/viot.c
136
} *node = (void *)hdr;
drivers/acpi/viot.c
142
if (viot_check_bounds(hdr))
drivers/acpi/viot.c
150
switch (hdr->type) {
drivers/acpi/viot.c
152
if (hdr->length < sizeof(node->pci))
drivers/acpi/viot.c
159
if (hdr->length < sizeof(node->mmio))
drivers/acpi/viot.c
179
static int __init viot_parse_node(const struct acpi_viot_header *hdr)
drivers/acpi/viot.c
187
} *node = (void *)hdr;
drivers/acpi/viot.c
189
if (viot_check_bounds(hdr))
drivers/acpi/viot.c
192
if (hdr->type == ACPI_VIOT_NODE_VIRTIO_IOMMU_PCI ||
drivers/acpi/viot.c
193
hdr->type == ACPI_VIOT_NODE_VIRTIO_IOMMU_MMIO)
drivers/acpi/viot.c
200
switch (hdr->type) {
drivers/acpi/viot.c
202
if (hdr->length < sizeof(node->pci)) {
drivers/acpi/viot.c
216
if (hdr->length < sizeof(node->mmio)) {
drivers/acpi/viot.c
227
pr_warn("Unsupported node %x\n", hdr->type);
drivers/acpi/viot.c
260
struct acpi_table_header *hdr;
drivers/acpi/viot.c
262
status = acpi_get_table(ACPI_SIG_VIOT, 0, &hdr);
drivers/acpi/viot.c
266
acpi_put_table(hdr);
drivers/acpi/viot.c
280
struct acpi_table_header *hdr;
drivers/acpi/viot.c
283
status = acpi_get_table(ACPI_SIG_VIOT, 0, &hdr);
drivers/acpi/viot.c
293
viot = (void *)hdr;
drivers/acpi/viot.c
304
acpi_put_table(hdr);
drivers/acpi/viot.c
57
static int __init viot_check_bounds(const struct acpi_viot_header *hdr)
drivers/acpi/viot.c
64
hdr_end = ACPI_ADD_PTR(struct acpi_viot_header, hdr, sizeof(*hdr));
drivers/acpi/viot.c
66
if (hdr < start || hdr_end > end) {
drivers/acpi/viot.c
70
if (hdr->length < sizeof(*hdr)) {
drivers/android/binder.c
1787
struct binder_object_header *hdr;
drivers/android/binder.c
1791
if (offset > buffer->data_size || read_size < sizeof(*hdr) ||
drivers/android/binder.c
1805
hdr = &object->hdr;
drivers/android/binder.c
1806
switch (hdr->type) {
drivers/android/binder.c
183
#define to_flat_binder_object(hdr) \
drivers/android/binder.c
184
container_of(hdr, struct flat_binder_object, hdr)
drivers/android/binder.c
186
#define to_binder_fd_object(hdr) container_of(hdr, struct binder_fd_object, hdr)
drivers/android/binder.c
1876
if (!object_size || object->hdr.type != BINDER_TYPE_PTR)
drivers/android/binder.c
188
#define to_binder_buffer_object(hdr) \
drivers/android/binder.c
189
container_of(hdr, struct binder_buffer_object, hdr)
drivers/android/binder.c
191
#define to_binder_fd_array_object(hdr) \
drivers/android/binder.c
192
container_of(hdr, struct binder_fd_array_object, hdr)
drivers/android/binder.c
2049
struct binder_object_header *hdr;
drivers/android/binder.c
2064
hdr = &object.hdr;
drivers/android/binder.c
2065
switch (hdr->type) {
drivers/android/binder.c
2071
fp = to_flat_binder_object(hdr);
drivers/android/binder.c
2081
binder_dec_node(node, hdr->type == BINDER_TYPE_BINDER,
drivers/android/binder.c
2091
fp = to_flat_binder_object(hdr);
drivers/android/binder.c
2093
hdr->type == BINDER_TYPE_HANDLE, &rdata);
drivers/android/binder.c
2141
fda = to_binder_fd_array_object(hdr);
drivers/android/binder.c
2199
debug_id, hdr->type);
drivers/android/binder.c
2250
fp->hdr.type == BINDER_TYPE_BINDER,
drivers/android/binder.c
2255
if (fp->hdr.type == BINDER_TYPE_BINDER)
drivers/android/binder.c
2256
fp->hdr.type = BINDER_TYPE_HANDLE;
drivers/android/binder.c
2258
fp->hdr.type = BINDER_TYPE_WEAK_HANDLE;
drivers/android/binder.c
2284
fp->hdr.type == BINDER_TYPE_HANDLE, &src_rdata);
drivers/android/binder.c
2297
if (fp->hdr.type == BINDER_TYPE_HANDLE)
drivers/android/binder.c
2298
fp->hdr.type = BINDER_TYPE_BINDER;
drivers/android/binder.c
2300
fp->hdr.type = BINDER_TYPE_WEAK_BINDER;
drivers/android/binder.c
2308
fp->hdr.type == BINDER_TYPE_BINDER,
drivers/android/binder.c
2325
fp->hdr.type == BINDER_TYPE_HANDLE,
drivers/android/binder.c
3006
void *hdr;
drivers/android/binder.c
3018
hdr = genlmsg_put(skb, 0, 0, &binder_nl_family, 0, BINDER_CMD_REPORT);
drivers/android/binder.c
3019
if (!hdr)
drivers/android/binder.c
3044
genlmsg_end(skb, hdr);
drivers/android/binder.c
3050
genlmsg_cancel(skb, hdr);
drivers/android/binder.c
3461
struct binder_object_header *hdr;
drivers/android/binder.c
3518
hdr = &object.hdr;
drivers/android/binder.c
3520
switch (hdr->type) {
drivers/android/binder.c
3525
fp = to_flat_binder_object(hdr);
drivers/android/binder.c
3545
fp = to_flat_binder_object(hdr);
drivers/android/binder.c
3562
struct binder_fd_object *fp = to_binder_fd_object(hdr);
drivers/android/binder.c
3588
to_binder_fd_array_object(hdr);
drivers/android/binder.c
3658
to_binder_buffer_object(hdr);
drivers/android/binder.c
3710
proc->pid, thread->pid, hdr->type);
drivers/android/binder_internal.h
573
struct binder_object_header hdr;
drivers/ata/libata-scsi.c
1969
u8 hdr[] = {
drivers/ata/libata-scsi.c
1985
hdr[1] |= (1 << 7);
drivers/ata/libata-scsi.c
1988
hdr[0] = TYPE_ZBC;
drivers/ata/libata-scsi.c
1989
hdr[2] = 0x7; /* claim SPC-5 version compatibility */
drivers/ata/libata-scsi.c
1993
hdr[2] = 0xd; /* claim SPC-6 version compatibility */
drivers/ata/libata-scsi.c
1995
memcpy(rbuf, hdr, sizeof(hdr));
drivers/ata/libata-scsi.c
2071
static const u8 hdr[] = {
drivers/ata/libata-scsi.c
2078
memcpy(rbuf, hdr, sizeof(hdr));
drivers/ata/libata-scsi.c
3703
char *hdr;
drivers/ata/libata-scsi.c
3709
hdr = miter.addr;
drivers/ata/libata-scsi.c
3710
list_length = get_unaligned_le32(&hdr[0]);
drivers/ata/libata-scsi.c
3711
same = get_unaligned_le16(&hdr[4]);
drivers/ata/libata-scsi.c
3712
max_lba = get_unaligned_le64(&hdr[8]);
drivers/ata/libata-scsi.c
3713
opt_lba = get_unaligned_le64(&hdr[16]);
drivers/ata/libata-scsi.c
3714
put_unaligned_be32(list_length, &hdr[0]);
drivers/ata/libata-scsi.c
3715
hdr[4] = same & 0xf;
drivers/ata/libata-scsi.c
3716
put_unaligned_be64(max_lba, &hdr[8]);
drivers/ata/libata-scsi.c
3717
put_unaligned_be64(opt_lba, &hdr[16]);
drivers/atm/atmtcp.c
129
msg.hdr.vpi = htons(vpi);
drivers/atm/atmtcp.c
131
msg.hdr.vci = htons(vci);
drivers/atm/atmtcp.c
196
struct atmtcp_hdr *hdr;
drivers/atm/atmtcp.c
221
hdr = skb_put(new_skb, sizeof(struct atmtcp_hdr));
drivers/atm/atmtcp.c
222
hdr->vpi = htons(vcc->vpi);
drivers/atm/atmtcp.c
223
hdr->vci = htons(vcc->vci);
drivers/atm/atmtcp.c
224
hdr->length = htonl(skb->len);
drivers/atm/atmtcp.c
284
struct atmtcp_hdr *hdr;
drivers/atm/atmtcp.c
289
hdr = (struct atmtcp_hdr *)skb->data;
drivers/atm/atmtcp.c
290
if (hdr->length == ATMTCP_HDR_MAGIC)
drivers/atm/atmtcp.c
299
struct atmtcp_hdr *hdr;
drivers/atm/atmtcp.c
305
hdr = (struct atmtcp_hdr *) skb->data;
drivers/atm/atmtcp.c
306
if (hdr->length == ATMTCP_HDR_MAGIC) {
drivers/atm/atmtcp.c
312
out_vcc = find_vcc(dev, ntohs(hdr->vpi), ntohs(hdr->vci));
drivers/atm/atmtcp.c
66
new_msg->hdr.length = ATMTCP_HDR_MAGIC;
drivers/block/amiflop.c
1107
static inline ushort dos_hdr_crc (struct dos_header *hdr)
drivers/block/amiflop.c
1109
return dos_crc(&(hdr->track), 0xb2, 0x30, 3); /* precomputed magic */
drivers/block/amiflop.c
1157
struct dos_header hdr;
drivers/block/amiflop.c
1176
raw = dos_decode((unsigned char *)&hdr,(ushort *) raw,8);
drivers/block/amiflop.c
1177
crc = dos_hdr_crc(&hdr);
drivers/block/amiflop.c
1180
printk("(%3d,%d,%2d,%d) %x\n", hdr.track, hdr.side,
drivers/block/amiflop.c
1181
hdr.sec, hdr.len_desc, hdr.crc);
drivers/block/amiflop.c
1184
if (crc != hdr.crc) {
drivers/block/amiflop.c
1186
hdr.crc, crc);
drivers/block/amiflop.c
1189
if (hdr.track != unit[drive].track/unit[drive].type->heads) {
drivers/block/amiflop.c
1191
hdr.track,
drivers/block/amiflop.c
1196
if (hdr.side != unit[drive].track%unit[drive].type->heads) {
drivers/block/amiflop.c
1198
hdr.side,
drivers/block/amiflop.c
1203
if (hdr.len_desc != 2) {
drivers/block/amiflop.c
1205
"descriptor %d\n", hdr.len_desc);
drivers/block/amiflop.c
1214
unit[drive].track, drive, scnt, hdr.sec);
drivers/block/amiflop.c
1224
hdr.track,hdr.side,hdr.sec,hdr.len_desc,scnt);
drivers/block/amiflop.c
1229
raw = dos_decode((unsigned char *)(unit[drive].trackbuf + (hdr.sec - 1) * 512), (ushort *) raw, 512);
drivers/block/amiflop.c
1231
crc = dos_data_crc(unit[drive].trackbuf + (hdr.sec - 1) * 512);
drivers/block/amiflop.c
1235
"sc=%d, %x %x\n", hdr.track, hdr.side,
drivers/block/amiflop.c
1236
hdr.sec, hdr.len_desc, scnt,data_crc[0], crc);
drivers/block/amiflop.c
1238
((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[0],
drivers/block/amiflop.c
1239
((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[1],
drivers/block/amiflop.c
1240
((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[2],
drivers/block/amiflop.c
1241
((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[3]);
drivers/block/amiflop.c
1274
static struct dos_header hdr={0,0,0,2,0,
drivers/block/amiflop.c
1289
hdr.track=unit[drive].track/unit[drive].type->heads;
drivers/block/amiflop.c
1290
hdr.side=unit[drive].track%unit[drive].type->heads;
drivers/block/amiflop.c
1291
hdr.sec=cnt+1;
drivers/block/amiflop.c
1292
hdr.crc=dos_hdr_crc(&hdr);
drivers/block/amiflop.c
1295
dos_encode_block((ushort *)raw,(unsigned char *) &hdr.track,28);
drivers/block/amiflop.c
842
struct header hdr;
drivers/block/amiflop.c
854
raw = decode ((ulong *)&hdr.magic, (ulong *)raw, 4);
drivers/block/amiflop.c
855
raw = decode ((ulong *)&hdr.labels, (ulong *)raw, 16);
drivers/block/amiflop.c
856
raw = decode ((ulong *)&hdr.hdrchk, (ulong *)raw, 4);
drivers/block/amiflop.c
857
raw = decode ((ulong *)&hdr.datachk, (ulong *)raw, 4);
drivers/block/amiflop.c
858
csum = checksum((ulong *)&hdr,
drivers/block/amiflop.c
859
(char *)&hdr.hdrchk-(char *)&hdr);
drivers/block/amiflop.c
863
hdr.magic, hdr.track, hdr.sect, hdr.ord,
drivers/block/amiflop.c
864
*(ulong *)&hdr.labels[0], *(ulong *)&hdr.labels[4],
drivers/block/amiflop.c
865
*(ulong *)&hdr.labels[8], *(ulong *)&hdr.labels[12],
drivers/block/amiflop.c
866
hdr.hdrchk, hdr.datachk);
drivers/block/amiflop.c
869
if (hdr.hdrchk != csum) {
drivers/block/amiflop.c
870
printk(KERN_INFO "MFM_HEADER: %08lx,%08lx\n", hdr.hdrchk, csum);
drivers/block/amiflop.c
875
if (hdr.track != unit[drive].track) {
drivers/block/amiflop.c
876
printk(KERN_INFO "MFM_TRACK: %d, %d\n", hdr.track, unit[drive].track);
drivers/block/amiflop.c
880
raw = decode ((ulong *)(unit[drive].trackbuf + hdr.sect*512),
drivers/block/amiflop.c
882
csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512);
drivers/block/amiflop.c
884
if (hdr.datachk != csum) {
drivers/block/amiflop.c
886
hdr.magic, hdr.track, hdr.sect, hdr.ord, scnt,
drivers/block/amiflop.c
887
hdr.datachk, csum);
drivers/block/amiflop.c
889
((ulong *)(unit[drive].trackbuf+hdr.sect*512))[0],
drivers/block/amiflop.c
890
((ulong *)(unit[drive].trackbuf+hdr.sect*512))[1],
drivers/block/amiflop.c
891
((ulong *)(unit[drive].trackbuf+hdr.sect*512))[2],
drivers/block/amiflop.c
892
((ulong *)(unit[drive].trackbuf+hdr.sect*512))[3]);
drivers/block/amiflop.c
934
struct header hdr;
drivers/block/amiflop.c
942
hdr.magic = 0xFF;
drivers/block/amiflop.c
943
hdr.track = unit[disk].track;
drivers/block/amiflop.c
944
hdr.sect = cnt;
drivers/block/amiflop.c
945
hdr.ord = unit[disk].dtype->sects * unit[disk].type->sect_mult - cnt;
drivers/block/amiflop.c
947
hdr.labels[i] = 0;
drivers/block/amiflop.c
948
hdr.hdrchk = checksum((ulong *)&hdr,
drivers/block/amiflop.c
949
(char *)&hdr.hdrchk-(char *)&hdr);
drivers/block/amiflop.c
950
hdr.datachk = checksum((ulong *)(unit[disk].trackbuf+cnt*512), 512);
drivers/block/amiflop.c
952
encode_block(raw, (ulong *)&hdr.magic, 4);
drivers/block/amiflop.c
954
encode_block(raw, (ulong *)&hdr.labels, 16);
drivers/block/amiflop.c
956
encode_block(raw, (ulong *)&hdr.hdrchk, 4);
drivers/block/amiflop.c
958
encode_block(raw, (ulong *)&hdr.datachk, 4);
drivers/block/mtip32xx/mtip32xx.c
2050
struct mtip_cmd_hdr *hdr =
drivers/block/mtip32xx/mtip32xx.c
2103
hdr->ctba = cpu_to_le32(command->command_dma & 0xFFFFFFFF);
drivers/block/mtip32xx/mtip32xx.c
2105
hdr->ctbau = cpu_to_le32((command->command_dma >> 16) >> 16);
drivers/block/mtip32xx/mtip32xx.c
2106
hdr->opts = cpu_to_le32((nents << 16) | 5 | AHCI_CMD_PREFETCH);
drivers/block/mtip32xx/mtip32xx.c
2107
hdr->byte_count = 0;
drivers/block/mtip32xx/mtip32xx.c
3274
struct mtip_cmd_hdr *hdr =
drivers/block/mtip32xx/mtip32xx.c
3281
hdr->ctba = cpu_to_le32(cmd->command_dma & 0xFFFFFFFF);
drivers/block/mtip32xx/mtip32xx.c
3283
hdr->ctbau = cpu_to_le32((cmd->command_dma >> 16) >> 16);
drivers/block/mtip32xx/mtip32xx.c
3285
hdr->opts = cpu_to_le32(icmd->opts | icmd->fis_len);
drivers/block/mtip32xx/mtip32xx.c
3294
hdr->opts |= cpu_to_le32((1 << 16));
drivers/block/mtip32xx/mtip32xx.c
3298
hdr->byte_count = 0;
drivers/block/rnbd/rnbd-clt.c
1020
msg.hdr.type = cpu_to_le16(RNBD_MSG_IO);
drivers/block/rnbd/rnbd-clt.c
1583
msg.hdr.type = cpu_to_le16(RNBD_MSG_OPEN);
drivers/block/rnbd/rnbd-clt.c
465
msg.hdr.type = cpu_to_le16(RNBD_MSG_CLOSE);
drivers/block/rnbd/rnbd-clt.c
559
msg.hdr.type = cpu_to_le16(RNBD_MSG_OPEN);
drivers/block/rnbd/rnbd-clt.c
604
msg.hdr.type = cpu_to_le16(RNBD_MSG_SESS_INFO);
drivers/block/rnbd/rnbd-proto.h
106
struct rnbd_msg_hdr hdr;
drivers/block/rnbd/rnbd-proto.h
122
struct rnbd_msg_hdr hdr;
drivers/block/rnbd/rnbd-proto.h
150
struct rnbd_msg_hdr hdr;
drivers/block/rnbd/rnbd-proto.h
178
struct rnbd_msg_hdr hdr;
drivers/block/rnbd/rnbd-proto.h
80
struct rnbd_msg_hdr hdr;
drivers/block/rnbd/rnbd-proto.h
92
struct rnbd_msg_hdr hdr;
drivers/block/rnbd/rnbd-srv.c
383
const struct rnbd_msg_hdr *hdr = usr;
drivers/block/rnbd/rnbd-srv.c
390
type = le16_to_cpu(hdr->type);
drivers/block/rnbd/rnbd-srv.c
556
rsp->hdr.type = cpu_to_le16(RNBD_MSG_OPEN_RSP);
drivers/block/rnbd/rnbd-srv.c
663
rsp->hdr.type = cpu_to_le16(RNBD_MSG_SESS_INFO_RSP);
drivers/block/sunvdc.c
1100
desc->hdr.state = VIO_DESC_FREE;
drivers/block/sunvdc.c
313
if (unlikely(desc->hdr.state != VIO_DESC_DONE))
drivers/block/sunvdc.c
317
desc->hdr.state = VIO_DESC_FREE;
drivers/block/sunvdc.c
427
struct vio_dring_data hdr = {
drivers/block/sunvdc.c
441
hdr.seq = dr->snd_nxt;
drivers/block/sunvdc.c
444
err = vio_ldc_send(&port->vio, &hdr, sizeof(hdr));
drivers/block/sunvdc.c
506
desc->hdr.ack = VIO_ACK_ENABLE;
drivers/block/sunvdc.c
523
desc->hdr.state = VIO_DESC_READY;
drivers/block/sunvdc.c
676
desc->hdr.ack = VIO_ACK_ENABLE;
drivers/block/sunvdc.c
689
desc->hdr.state = VIO_DESC_READY;
drivers/bluetooth/bfusb.c
245
static inline int bfusb_recv_block(struct bfusb_data *data, int hdr, unsigned char *buf, int len)
drivers/bluetooth/bfusb.c
247
BT_DBG("bfusb %p hdr 0x%02x data %p len %d", data, hdr, buf, len);
drivers/bluetooth/bfusb.c
249
if (hdr & 0x10) {
drivers/bluetooth/bfusb.c
256
if (hdr & 0x04) {
drivers/bluetooth/bfusb.c
277
struct hci_event_hdr *hdr = (struct hci_event_hdr *) buf;
drivers/bluetooth/bfusb.c
278
pkt_len = HCI_EVENT_HDR_SIZE + hdr->plen;
drivers/bluetooth/bfusb.c
287
struct hci_acl_hdr *hdr = (struct hci_acl_hdr *) buf;
drivers/bluetooth/bfusb.c
288
pkt_len = HCI_ACL_HDR_SIZE + __le16_to_cpu(hdr->dlen);
drivers/bluetooth/bfusb.c
297
struct hci_sco_hdr *hdr = (struct hci_sco_hdr *) buf;
drivers/bluetooth/bfusb.c
298
pkt_len = HCI_SCO_HDR_SIZE + hdr->dlen;
drivers/bluetooth/bfusb.c
325
if (hdr & 0x08) {
drivers/bluetooth/bfusb.c
339
int err, hdr, len;
drivers/bluetooth/bfusb.c
356
hdr = buf[0] | (buf[1] << 8);
drivers/bluetooth/bfusb.c
358
if (hdr & 0x4000) {
drivers/bluetooth/bfusb.c
371
if ((hdr & 0xe1) == 0xc1)
drivers/bluetooth/bfusb.c
372
bfusb_recv_block(data, hdr, buf, len);
drivers/bluetooth/btintel.c
3724
struct hci_event_hdr *hdr = (void *)skb->data;
drivers/bluetooth/btintel.c
3727
if (skb->len > HCI_EVENT_HDR_SIZE && hdr->evt == 0xff &&
drivers/bluetooth/btintel.c
3728
hdr->plen > 0) {
drivers/bluetooth/btintel_pcie.c
1028
struct hci_event_hdr *hdr = (void *)skb->data;
drivers/bluetooth/btintel_pcie.c
1031
if (skb->len > HCI_EVENT_HDR_SIZE && hdr->evt == 0xff &&
drivers/bluetooth/btintel_pcie.c
1032
hdr->plen > 0) {
drivers/bluetooth/btintel_pcie.c
1905
struct hci_event_hdr *hdr;
drivers/bluetooth/btintel_pcie.c
1908
skb = bt_skb_alloc(sizeof(*hdr) + sizeof(*evt) + 1, GFP_KERNEL);
drivers/bluetooth/btintel_pcie.c
1912
hdr = (struct hci_event_hdr *)skb_put(skb, sizeof(*hdr));
drivers/bluetooth/btintel_pcie.c
1913
hdr->evt = HCI_EV_CMD_COMPLETE;
drivers/bluetooth/btintel_pcie.c
1914
hdr->plen = sizeof(*evt) + 1;
drivers/bluetooth/btmrvl_main.c
160
struct hci_command_hdr *hdr;
drivers/bluetooth/btmrvl_main.c
173
hdr = skb_put(skb, HCI_COMMAND_HDR_SIZE);
drivers/bluetooth/btmrvl_main.c
174
hdr->opcode = cpu_to_le16(opcode);
drivers/bluetooth/btmrvl_main.c
175
hdr->plen = len;
drivers/bluetooth/btmrvl_main.c
44
struct hci_event_hdr *hdr = (void *) skb->data;
drivers/bluetooth/btmrvl_main.c
46
if (hdr->evt == HCI_EV_CMD_COMPLETE) {
drivers/bluetooth/btmtk.c
134
struct btmtk_patch_header *hdr;
drivers/bluetooth/btmtk.c
153
hdr = (struct btmtk_patch_header *)fw_ptr;
drivers/bluetooth/btmtk.c
158
le16_to_cpu(hdr->hwver), le16_to_cpu(hdr->swver), hdr->datetime);
drivers/bluetooth/btmtk.c
588
struct btmtk_wmt_hdr *hdr;
drivers/bluetooth/btmtk.c
592
hlen = sizeof(*hdr) + wmt_params->dlen;
drivers/bluetooth/btmtk.c
600
hdr = &wc->hdr;
drivers/bluetooth/btmtk.c
601
hdr->dir = 1;
drivers/bluetooth/btmtk.c
602
hdr->op = wmt_params->op;
drivers/bluetooth/btmtk.c
603
hdr->dlen = cpu_to_le16(wmt_params->dlen + 1);
drivers/bluetooth/btmtk.c
604
hdr->flag = wmt_params->flag;
drivers/bluetooth/btmtk.c
659
if (wmt_evt->whdr.op != hdr->op) {
drivers/bluetooth/btmtk.c
661
wmt_evt->whdr.op, hdr->op);
drivers/bluetooth/btmtk.h
75
struct btmtk_wmt_hdr hdr;
drivers/bluetooth/btmtksdio.c
155
struct btmtk_wmt_hdr *hdr;
drivers/bluetooth/btmtksdio.c
159
hlen = sizeof(*hdr) + wmt_params->dlen;
drivers/bluetooth/btmtksdio.c
167
hdr = &wc->hdr;
drivers/bluetooth/btmtksdio.c
168
hdr->dir = 1;
drivers/bluetooth/btmtksdio.c
169
hdr->op = wmt_params->op;
drivers/bluetooth/btmtksdio.c
170
hdr->dlen = cpu_to_le16(wmt_params->dlen + 1);
drivers/bluetooth/btmtksdio.c
171
hdr->flag = wmt_params->flag;
drivers/bluetooth/btmtksdio.c
208
if (wmt_evt->whdr.op != hdr->op) {
drivers/bluetooth/btmtksdio.c
210
wmt_evt->whdr.op, hdr->op);
drivers/bluetooth/btmtksdio.c
383
struct hci_event_hdr *hdr = (void *)skb->data;
drivers/bluetooth/btmtksdio.c
384
u8 evt = hdr->evt;
drivers/bluetooth/btmtkuart.c
102
hlen = sizeof(*hdr) + wmt_params->dlen;
drivers/bluetooth/btmtkuart.c
114
hdr = &wc->hdr;
drivers/bluetooth/btmtkuart.c
115
hdr->dir = 1;
drivers/bluetooth/btmtkuart.c
116
hdr->op = wmt_params->op;
drivers/bluetooth/btmtkuart.c
117
hdr->dlen = cpu_to_le16(wmt_params->dlen + 1);
drivers/bluetooth/btmtkuart.c
118
hdr->flag = wmt_params->flag;
drivers/bluetooth/btmtkuart.c
155
if (wmt_evt->whdr.op != hdr->op) {
drivers/bluetooth/btmtkuart.c
157
wmt_evt->whdr.op, hdr->op);
drivers/bluetooth/btmtkuart.c
195
struct hci_event_hdr *hdr = (void *)skb->data;
drivers/bluetooth/btmtkuart.c
213
if (hdr->evt == HCI_EV_WMT) {
drivers/bluetooth/btmtkuart.c
98
struct btmtk_wmt_hdr *hdr;
drivers/bluetooth/btnxpuart.c
1567
struct hci_command_hdr *hdr;
drivers/bluetooth/btnxpuart.c
1582
hdr = (struct hci_command_hdr *)skb->data;
drivers/bluetooth/btnxpuart.c
1583
if (hdr->plen != (skb->len - HCI_COMMAND_HDR_SIZE))
drivers/bluetooth/btnxpuart.c
1586
switch (__le16_to_cpu(hdr->opcode)) {
drivers/bluetooth/btnxpuart.c
1588
if (hdr->plen == sizeof(ps_parm)) {
drivers/bluetooth/btnxpuart.c
1589
memcpy(&ps_parm, skb->data + HCI_COMMAND_HDR_SIZE, hdr->plen);
drivers/bluetooth/btnxpuart.c
1600
if (hdr->plen == sizeof(wakeup_parm)) {
drivers/bluetooth/btnxpuart.c
1601
memcpy(&wakeup_parm, skb->data + HCI_COMMAND_HDR_SIZE, hdr->plen);
drivers/bluetooth/btnxpuart.c
1622
if (hdr->plen == sizeof(baudrate_parm)) {
drivers/bluetooth/btnxpuart.c
1623
memcpy(&baudrate_parm, skb->data + HCI_COMMAND_HDR_SIZE, hdr->plen);
drivers/bluetooth/btnxpuart.c
1630
if (hdr->plen == 1) {
drivers/bluetooth/btnxpuart.c
870
struct nxp_bootloader_cmd *hdr = (struct nxp_bootloader_cmd *)buf;
drivers/bluetooth/btnxpuart.c
872
return __le32_to_cpu(hdr->payload_len);
drivers/bluetooth/btqca.c
547
struct hci_event_hdr *hdr;
drivers/bluetooth/btqca.c
551
skb = bt_skb_alloc(sizeof(*hdr) + sizeof(*evt) + 1, GFP_KERNEL);
drivers/bluetooth/btqca.c
555
hdr = skb_put(skb, sizeof(*hdr));
drivers/bluetooth/btqca.c
556
hdr->evt = HCI_EV_CMD_COMPLETE;
drivers/bluetooth/btqca.c
557
hdr->plen = sizeof(*evt) + 1;
drivers/bluetooth/btrtl.c
484
struct rtl_section_hdr *hdr;
drivers/bluetooth/btrtl.c
498
hdr = rtl_iov_pull_data(&iov, sizeof(*hdr));
drivers/bluetooth/btrtl.c
499
if (!hdr)
drivers/bluetooth/btrtl.c
501
num_subsecs = le16_to_cpu(hdr->num);
drivers/bluetooth/btrtl.c
545
struct rtl_epatch_header_v2 *hdr;
drivers/bluetooth/btrtl.c
563
hdr = rtl_iov_pull_data(&iov, sizeof(*hdr));
drivers/bluetooth/btrtl.c
564
if (!hdr)
drivers/bluetooth/btrtl.c
566
num_sections = le32_to_cpu(hdr->num_sections);
drivers/bluetooth/btrtl.c
568
rtl_dev_dbg(hdev, "FW version %08x-%08x", *((u32 *)hdr->fw_version),
drivers/bluetooth/btrtl.c
569
*((u32 *)(hdr->fw_version + 4)));
drivers/bluetooth/btsdio.c
112
u8 hdr[4] __attribute__ ((aligned(4)));
drivers/bluetooth/btsdio.c
118
err = sdio_readsb(data->func, hdr, REG_RDAT, 4);
drivers/bluetooth/btsdio.c
122
len = hdr[0] | (hdr[1] << 8) | (hdr[2] << 16);
drivers/bluetooth/btsdio.c
145
switch (hdr[3]) {
drivers/bluetooth/btsdio.c
150
hci_skb_pkt_type(skb) = hdr[3];
drivers/bluetooth/btusb.c
1056
struct rtk_dev_coredump_hdr *hdr, u8 *buf, u32 len)
drivers/bluetooth/btusb.c
1060
skb = alloc_skb(len + sizeof(*hdr), GFP_ATOMIC);
drivers/bluetooth/btusb.c
1064
skb_put_data(skb, hdr, sizeof(*hdr));
drivers/bluetooth/btusb.c
1081
struct rtk_dev_coredump_hdr hdr = {
drivers/bluetooth/btusb.c
1085
btusb_rtl_alloc_devcoredump(hdev, &hdr, NULL, 0);
drivers/bluetooth/btusb.c
1111
struct rtk_dev_coredump_hdr hdr = {
drivers/bluetooth/btusb.c
1118
btusb_rtl_alloc_devcoredump(hdev, &hdr, NULL, 0);
drivers/bluetooth/btusb.c
1342
struct hci_sco_hdr *hdr)
drivers/bluetooth/btusb.c
1358
handle = hci_handle(__le16_to_cpu(hdr->handle));
drivers/bluetooth/btusb.c
1401
struct hci_sco_hdr *hdr = hci_sco_hdr(skb);
drivers/bluetooth/btusb.c
1403
hci_skb_expect(skb) = hdr->dlen;
drivers/bluetooth/btusb.c
1406
!btusb_validate_sco_handle(data->hdev, hdr)) {
drivers/bluetooth/btusb.c
2617
struct hci_event_hdr *hdr;
drivers/bluetooth/btusb.c
2620
skb = bt_skb_alloc(sizeof(*hdr) + sizeof(*evt) + 1, GFP_KERNEL);
drivers/bluetooth/btusb.c
2624
hdr = skb_put(skb, sizeof(*hdr));
drivers/bluetooth/btusb.c
2625
hdr->evt = HCI_EV_CMD_COMPLETE;
drivers/bluetooth/btusb.c
2626
hdr->plen = sizeof(*evt) + 1;
drivers/bluetooth/btusb.c
2738
struct rtk_dev_coredump_hdr hdr = {
drivers/bluetooth/btusb.c
2745
btusb_rtl_alloc_devcoredump(hdev, &hdr, skb->data, skb->len);
drivers/bluetooth/hci_ath.c
221
struct hci_command_hdr *hdr = (void *)skb->data;
drivers/bluetooth/hci_ath.c
223
if (__le16_to_cpu(hdr->opcode) == HCI_OP_ATH_SLEEP)
drivers/bluetooth/hci_bcsp.c
167
u8 hdr[4], chan;
drivers/bluetooth/hci_bcsp.c
226
hdr[0] = bcsp->rxseq_txack << 3;
drivers/bluetooth/hci_bcsp.c
231
hdr[0] |= 0x80 + bcsp->msgq_txseq;
drivers/bluetooth/hci_bcsp.c
237
hdr[0] |= 0x40;
drivers/bluetooth/hci_bcsp.c
239
hdr[1] = ((len << 4) & 0xff) | chan;
drivers/bluetooth/hci_bcsp.c
240
hdr[2] = len >> 4;
drivers/bluetooth/hci_bcsp.c
241
hdr[3] = ~(hdr[0] + hdr[1] + hdr[2]);
drivers/bluetooth/hci_bcsp.c
245
bcsp_slip_one_byte(nskb, hdr[i]);
drivers/bluetooth/hci_bcsp.c
248
bcsp_crc_update(&bcsp_txmsg_crc, hdr[i]);
drivers/bluetooth/hci_bcsp.c
534
struct hci_event_hdr hdr;
drivers/bluetooth/hci_bcsp.c
543
hdr.evt = 0xff;
drivers/bluetooth/hci_bcsp.c
544
hdr.plen = bcsp->rx_skb->len;
drivers/bluetooth/hci_bcsp.c
545
memcpy(skb_push(bcsp->rx_skb, HCI_EVENT_HDR_SIZE), &hdr, HCI_EVENT_HDR_SIZE);
drivers/bluetooth/hci_h5.c
341
const unsigned char *hdr = h5->rx_skb->data;
drivers/bluetooth/hci_h5.c
346
if (H5_HDR_PKT_TYPE(hdr) != HCI_3WIRE_LINK_PKT)
drivers/bluetooth/hci_h5.c
349
if (H5_HDR_LEN(hdr) < 2)
drivers/bluetooth/hci_h5.c
367
if (H5_HDR_LEN(hdr) > 2) {
drivers/bluetooth/hci_h5.c
397
const unsigned char *hdr = h5->rx_skb->data;
drivers/bluetooth/hci_h5.c
399
if (H5_HDR_RELIABLE(hdr)) {
drivers/bluetooth/hci_h5.c
405
h5->rx_ack = H5_HDR_ACK(hdr);
drivers/bluetooth/hci_h5.c
409
switch (H5_HDR_PKT_TYPE(hdr)) {
drivers/bluetooth/hci_h5.c
414
hci_skb_pkt_type(h5->rx_skb) = H5_HDR_PKT_TYPE(hdr);
drivers/bluetooth/hci_h5.c
435
const unsigned char *hdr = h5->rx_skb->data;
drivers/bluetooth/hci_h5.c
439
crc = crc_ccitt(0xffff, hdr, 4 + H5_HDR_LEN(hdr));
drivers/bluetooth/hci_h5.c
444
if (memcmp(&crc_be, hdr + 4 + H5_HDR_LEN(hdr), 2) != 0) {
drivers/bluetooth/hci_h5.c
449
skb_trim(h5->rx_skb, 4 + H5_HDR_LEN(hdr));
drivers/bluetooth/hci_h5.c
45
#define H5_HDR_SEQ(hdr) ((hdr)[0] & 0x07)
drivers/bluetooth/hci_h5.c
459
const unsigned char *hdr = h5->rx_skb->data;
drivers/bluetooth/hci_h5.c
46
#define H5_HDR_ACK(hdr) (((hdr)[0] >> 3) & 0x07)
drivers/bluetooth/hci_h5.c
461
if (H5_HDR_CRC(hdr)) {
drivers/bluetooth/hci_h5.c
47
#define H5_HDR_CRC(hdr) (((hdr)[0] >> 6) & 0x01)
drivers/bluetooth/hci_h5.c
474
const unsigned char *hdr = h5->rx_skb->data;
drivers/bluetooth/hci_h5.c
477
hu->hdev->name, H5_HDR_SEQ(hdr), H5_HDR_ACK(hdr),
drivers/bluetooth/hci_h5.c
478
H5_HDR_CRC(hdr), H5_HDR_RELIABLE(hdr), H5_HDR_PKT_TYPE(hdr),
drivers/bluetooth/hci_h5.c
479
H5_HDR_LEN(hdr));
drivers/bluetooth/hci_h5.c
48
#define H5_HDR_RELIABLE(hdr) (((hdr)[0] >> 7) & 0x01)
drivers/bluetooth/hci_h5.c
481
if (((hdr[0] + hdr[1] + hdr[2] + hdr[3]) & 0xff) != 0xff) {
drivers/bluetooth/hci_h5.c
487
if (H5_HDR_RELIABLE(hdr) && H5_HDR_SEQ(hdr) != h5->tx_ack) {
drivers/bluetooth/hci_h5.c
489
H5_HDR_SEQ(hdr), h5->tx_ack);
drivers/bluetooth/hci_h5.c
49
#define H5_HDR_PKT_TYPE(hdr) ((hdr)[1] & 0x0f)
drivers/bluetooth/hci_h5.c
497
H5_HDR_PKT_TYPE(hdr) != HCI_3WIRE_LINK_PKT) {
drivers/bluetooth/hci_h5.c
50
#define H5_HDR_LEN(hdr) ((((hdr)[1] >> 4) & 0x0f) + ((hdr)[2] << 4))
drivers/bluetooth/hci_h5.c
504
h5->rx_pending = H5_HDR_LEN(hdr);
drivers/bluetooth/hci_h5.c
710
u8 hdr[4];
drivers/bluetooth/hci_h5.c
733
hdr[0] = h5->tx_ack << 3;
drivers/bluetooth/hci_h5.c
738
hdr[0] |= 1 << 7;
drivers/bluetooth/hci_h5.c
739
hdr[0] |= (test_bit(H5_CRC, &h5->flags) && 1) << 6;
drivers/bluetooth/hci_h5.c
740
hdr[0] |= h5->tx_seq;
drivers/bluetooth/hci_h5.c
744
hdr[1] = pkt_type | ((len & 0x0f) << 4);
drivers/bluetooth/hci_h5.c
745
hdr[2] = len >> 4;
drivers/bluetooth/hci_h5.c
746
hdr[3] = ~((hdr[0] + hdr[1] + hdr[2]) & 0xff);
drivers/bluetooth/hci_h5.c
749
hu->hdev->name, H5_HDR_SEQ(hdr), H5_HDR_ACK(hdr),
drivers/bluetooth/hci_h5.c
750
H5_HDR_CRC(hdr), H5_HDR_RELIABLE(hdr), H5_HDR_PKT_TYPE(hdr),
drivers/bluetooth/hci_h5.c
751
H5_HDR_LEN(hdr));
drivers/bluetooth/hci_h5.c
754
h5_slip_one_byte(nskb, hdr[i]);
drivers/bluetooth/hci_h5.c
759
if (H5_HDR_CRC(hdr)) {
drivers/bluetooth/hci_h5.c
760
crc = crc_ccitt(0xffff, hdr, 4);
drivers/bluetooth/hci_intel.c
436
struct hci_event_hdr *hdr;
drivers/bluetooth/hci_intel.c
439
skb = bt_skb_alloc(sizeof(*hdr) + sizeof(*evt) + 1, GFP_KERNEL);
drivers/bluetooth/hci_intel.c
443
hdr = skb_put(skb, sizeof(*hdr));
drivers/bluetooth/hci_intel.c
444
hdr->evt = HCI_EV_CMD_COMPLETE;
drivers/bluetooth/hci_intel.c
445
hdr->plen = sizeof(*evt) + 1;
drivers/bluetooth/hci_intel.c
867
struct hci_event_hdr *hdr;
drivers/bluetooth/hci_intel.c
873
hdr = (void *)skb->data;
drivers/bluetooth/hci_intel.c
879
if (skb->len == 7 && hdr->evt == 0xff && hdr->plen == 0x05 &&
drivers/bluetooth/hci_intel.c
892
} else if (skb->len == 9 && hdr->evt == 0xff && hdr->plen == 0x07 &&
drivers/bluetooth/hci_nokia.c
220
struct hci_nokia_alive_hdr *hdr;
drivers/bluetooth/hci_nokia.c
227
len = H4_TYPE_SIZE + sizeof(*hdr) + sizeof(*pkt);
drivers/bluetooth/hci_nokia.c
235
hdr = skb_put(skb, sizeof(*hdr));
drivers/bluetooth/hci_nokia.c
236
hdr->dlen = sizeof(*pkt);
drivers/bluetooth/hci_nokia.c
532
struct hci_nokia_neg_hdr *hdr;
drivers/bluetooth/hci_nokia.c
536
hdr = (struct hci_nokia_neg_hdr *)skb->data;
drivers/bluetooth/hci_nokia.c
537
if (hdr->dlen != sizeof(*evt)) {
drivers/bluetooth/hci_nokia.c
543
evt = skb_pull(skb, sizeof(*hdr));
drivers/bluetooth/hci_nokia.c
569
struct hci_nokia_alive_hdr *hdr;
drivers/bluetooth/hci_nokia.c
573
hdr = (struct hci_nokia_alive_hdr *)skb->data;
drivers/bluetooth/hci_nokia.c
574
if (hdr->dlen != sizeof(*pkt)) {
drivers/bluetooth/hci_nokia.c
581
pkt = skb_pull(skb, sizeof(*hdr));
drivers/bluetooth/hci_qca.c
1213
struct hci_event_hdr *hdr = (void *)skb->data;
drivers/bluetooth/hci_qca.c
1225
if (hdr->evt == HCI_EV_VENDOR)
drivers/bus/fsl-mc/mc-sys.c
33
struct mc_cmd_header *hdr = (struct mc_cmd_header *)&cmd->header;
drivers/bus/fsl-mc/mc-sys.c
35
return (enum mc_cmd_status)hdr->status;
drivers/bus/fsl-mc/mc-sys.c
40
struct mc_cmd_header *hdr = (struct mc_cmd_header *)&cmd->header;
drivers/bus/fsl-mc/mc-sys.c
41
u16 cmd_id = le16_to_cpu(hdr->cmd_id);
drivers/cdrom/cdrom.c
1293
buf->hdr.nslots = 3;
drivers/cdrom/cdrom.c
1294
buf->hdr.curslot = cdi->sanyo_slot == 3 ? 0 : cdi->sanyo_slot;
drivers/cdrom/cdrom.c
1355
nslots = info->hdr.nslots;
drivers/cdrom/cdrom.c
1418
curslot = info->hdr.curslot;
drivers/cdx/controller/cdx_controller.c
25
const struct cdx_dword *hdr, size_t hdr_len,
drivers/cdx/controller/cdx_controller.c
28
if (cdx_rpmsg_send(cdx, hdr, hdr_len, sdu, sdu_len))
drivers/cdx/controller/cdx_controller.h
19
const struct cdx_dword *hdr, size_t hdr_len,
drivers/cdx/controller/cdx_rpmsg.c
27
const struct cdx_dword *hdr, size_t hdr_len,
drivers/cdx/controller/cdx_rpmsg.c
37
memcpy(send_buf, hdr, hdr_len);
drivers/cdx/controller/mcdi.c
225
static u8 cdx_mcdi_payload_csum(const struct cdx_dword *hdr, size_t hdr_len,
drivers/cdx/controller/mcdi.c
228
u8 *p = (u8 *)hdr;
drivers/cdx/controller/mcdi.c
248
struct cdx_dword hdr[2];
drivers/cdx/controller/mcdi.c
266
CDX_POPULATE_DWORD_7(hdr[0],
drivers/cdx/controller/mcdi.c
274
CDX_POPULATE_DWORD_3(hdr[1],
drivers/cdx/controller/mcdi.c
281
hdr[0].cdx_u32 |= (__force __le32)(cdx_mcdi_payload_csum(hdr, hdr_len, inbuf, inlen) <<
drivers/cdx/controller/mcdi.c
284
print_hex_dump_debug("MCDI REQ HEADER: ", DUMP_PREFIX_NONE, 32, 4, hdr, hdr_len, false);
drivers/cdx/controller/mcdi.c
287
cdx->mcdi_ops->mcdi_request(cdx, hdr, hdr_len, inbuf, inlen);
drivers/char/tpm/eventlog/acpi.c
30
struct acpi_table_header hdr;
drivers/char/tpm/tpm_atmel.c
114
native_size = (__force __be32 *) (hdr + 2);
drivers/char/tpm/tpm_atmel.c
95
u8 status, *hdr = buf;
drivers/char/tpm/tpm_i2c_atmel.c
72
struct tpm_header *hdr = (struct tpm_header *)priv->buffer;
drivers/char/tpm/tpm_i2c_atmel.c
82
expected_len = be32_to_cpu(hdr->length);
drivers/char/tpm/tpm_vtpm_proxy.c
300
struct tpm_header *hdr = (struct tpm_header *)buf;
drivers/char/tpm/tpm_vtpm_proxy.c
306
switch (be32_to_cpu(hdr->ordinal)) {
drivers/char/tpm/tpm_vtpm_proxy.c
311
switch (be32_to_cpu(hdr->ordinal)) {
drivers/clk/imx/clk-scu.c
111
struct imx_sc_rpc_msg hdr;
drivers/clk/imx/clk-scu.c
127
struct imx_sc_rpc_msg hdr;
drivers/clk/imx/clk-scu.c
147
struct imx_sc_rpc_msg hdr;
drivers/clk/imx/clk-scu.c
164
struct imx_sc_rpc_msg hdr;
drivers/clk/imx/clk-scu.c
244
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/clk/imx/clk-scu.c
247
hdr->ver = IMX_SC_RPC_VERSION;
drivers/clk/imx/clk-scu.c
248
hdr->svc = IMX_SC_RPC_SVC_PM;
drivers/clk/imx/clk-scu.c
249
hdr->func = IMX_SC_PM_FUNC_GET_CLOCK_RATE;
drivers/clk/imx/clk-scu.c
250
hdr->size = 2;
drivers/clk/imx/clk-scu.c
317
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/clk/imx/clk-scu.c
319
hdr->ver = IMX_SC_RPC_VERSION;
drivers/clk/imx/clk-scu.c
320
hdr->svc = IMX_SC_RPC_SVC_PM;
drivers/clk/imx/clk-scu.c
321
hdr->func = IMX_SC_PM_FUNC_SET_CLOCK_RATE;
drivers/clk/imx/clk-scu.c
322
hdr->size = 3;
drivers/clk/imx/clk-scu.c
335
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/clk/imx/clk-scu.c
338
hdr->ver = IMX_SC_RPC_VERSION;
drivers/clk/imx/clk-scu.c
339
hdr->svc = IMX_SC_RPC_SVC_PM;
drivers/clk/imx/clk-scu.c
340
hdr->func = IMX_SC_PM_FUNC_GET_CLOCK_PARENT;
drivers/clk/imx/clk-scu.c
341
hdr->size = 2;
drivers/clk/imx/clk-scu.c
362
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/clk/imx/clk-scu.c
365
hdr->ver = IMX_SC_RPC_VERSION;
drivers/clk/imx/clk-scu.c
366
hdr->svc = IMX_SC_RPC_SVC_PM;
drivers/clk/imx/clk-scu.c
367
hdr->func = IMX_SC_PM_FUNC_SET_CLOCK_PARENT;
drivers/clk/imx/clk-scu.c
368
hdr->size = 2;
drivers/clk/imx/clk-scu.c
390
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/clk/imx/clk-scu.c
392
hdr->ver = IMX_SC_RPC_VERSION;
drivers/clk/imx/clk-scu.c
393
hdr->svc = IMX_SC_RPC_SVC_PM;
drivers/clk/imx/clk-scu.c
394
hdr->func = IMX_SC_PM_FUNC_CLOCK_ENABLE;
drivers/clk/imx/clk-scu.c
395
hdr->size = 3;
drivers/clk/imx/clk-scu.c
87
struct imx_sc_rpc_msg hdr;
drivers/crypto/cavium/nitrox/nitrox_reqmgr.c
416
struct ctx_hdr *hdr;
drivers/crypto/cavium/nitrox/nitrox_reqmgr.c
420
hdr = (struct ctx_hdr *)(ctx_ptr - sizeof(struct ctx_hdr));
drivers/crypto/cavium/nitrox/nitrox_reqmgr.c
421
ctx_handle = hdr->ctx_dma;
drivers/crypto/ccp/sev-dev-tio.c
134
#define SPDM_DOBJ_HDR_SIZE(hdr) sla_dobj_id_to_size((hdr)->id)
drivers/crypto/ccp/sev-dev-tio.c
135
#define SPDM_DOBJ_DATA(hdr) ((u8 *)(hdr) + SPDM_DOBJ_HDR_SIZE(hdr))
drivers/crypto/ccp/sev-dev-tio.c
136
#define SPDM_DOBJ_LEN(hdr) ((hdr)->length - SPDM_DOBJ_HDR_SIZE(hdr))
drivers/crypto/ccp/sev-dev-tio.c
153
struct spdm_dobj_hdr *hdr = sla_to_dobj_hdr(buf);
drivers/crypto/ccp/sev-dev-tio.c
155
if (WARN_ON_ONCE(!hdr))
drivers/crypto/ccp/sev-dev-tio.c
158
if (hdr->id != check_dobjid) {
drivers/crypto/ccp/sev-dev-tio.c
159
pr_err("! ERROR: expected %d, found %d\n", check_dobjid, hdr->id);
drivers/crypto/ccp/sev-dev-tio.c
163
return hdr;
drivers/crypto/ccp/sev-dev-tio.c
168
struct spdm_dobj_hdr *hdr = sla_to_dobj_hdr(buf);
drivers/crypto/ccp/sev-dev-tio.c
173
if (!hdr)
drivers/crypto/ccp/sev-dev-tio.c
176
return (u8 *) hdr + sla_dobj_id_to_size(dobjid);
drivers/crypto/ccp/sev-dev-tio.c
595
dev_data->spdm.req_len = req_hdr->hdr.length -
drivers/crypto/ccp/sev-dev-tio.c
616
resp_hdr->hdr.length = ALIGN(sla_dobj_id_to_size(SPDM_DOBJ_ID_RESP) +
drivers/crypto/ccp/sev-dev-tio.c
618
dev_data->respbuf->payload_sz = resp_hdr->hdr.length;
drivers/crypto/ccp/sev-dev-tio.c
89
struct spdm_dobj_hdr hdr; /* hdr.id == SPDM_DOBJ_ID_REQ */
drivers/crypto/ccp/sev-dev-tio.c
95
struct spdm_dobj_hdr hdr; /* hdr.id == SPDM_DOBJ_ID_RESP */
drivers/crypto/ccp/sfs.c
139
&sfs_dev->command_buf->hdr.status,
drivers/crypto/ccp/sfs.c
165
&sfs_dev->command_buf->hdr.status,
drivers/crypto/ccp/sfs.c
28
sfs_dev->command_buf->hdr.status = 0;
drivers/crypto/ccp/sfs.c
29
sfs_dev->command_buf->hdr.sub_cmd_id = msg;
drivers/crypto/ccp/sfs.c
37
msg, sfs_dev->command_buf->hdr.status,
drivers/crypto/ccp/sfs.c
51
sfs_dev->command_buf->hdr.payload_size = 2 * PAGE_SIZE;
drivers/crypto/ccp/sfs.c
98
sfs_dev->command_buf->hdr.payload_size = package_size;
drivers/crypto/ccp/sfs.h
29
struct psp_ext_req_buffer_hdr hdr;
drivers/crypto/intel/qat/qat_common/adf_pfvf_msg.h
222
(blkmsg)->hdr.payload_size)
drivers/crypto/intel/qat/qat_common/adf_pfvf_msg.h
237
struct pfvf_blkmsg_header hdr;
drivers/crypto/intel/qat/qat_common/adf_pfvf_msg.h
242
struct pfvf_blkmsg_header hdr;
drivers/crypto/intel/qat/qat_common/adf_pfvf_msg.h
248
struct pfvf_blkmsg_header hdr;
drivers/crypto/intel/qat/qat_common/adf_pfvf_msg.h
260
struct pfvf_blkmsg_header hdr;
drivers/crypto/intel/qat/qat_common/adf_pfvf_pf_msg.c
111
rts_map_msg.hdr.version = ADF_PFVF_RING_TO_SVC_VERSION;
drivers/crypto/intel/qat/qat_common/adf_pfvf_pf_msg.c
112
rts_map_msg.hdr.payload_size = ADF_PFVF_BLKMSG_PAYLOAD_SIZE(rts_map_msg);
drivers/crypto/intel/qat/qat_common/adf_pfvf_pf_msg.c
96
caps_msg.hdr.version = ADF_PFVF_CAPABILITIES_V2_VERSION;
drivers/crypto/intel/qat/qat_common/adf_pfvf_pf_msg.c
97
caps_msg.hdr.payload_size =
drivers/crypto/intel/qat/qat_common/adf_pfvf_vf_msg.c
127
switch (cap_msg.hdr.version) {
drivers/crypto/intel/qat/qat_common/qat_bl.c
144
struct qat_alg_buf_list, hdr);
drivers/crypto/intel/qat/qat_common/qat_bl.c
85
struct qat_alg_buf_list, hdr);
drivers/crypto/intel/qat/qat_common/qat_bl.h
19
__struct_group(qat_alg_buf_list_hdr, hdr, __packed,
drivers/crypto/intel/qat/qat_common/qat_uclo.c
1048
struct icp_qat_css_hdr *hdr = img_ptr;
drivers/crypto/intel/qat/qat_common/qat_uclo.c
1057
return hdr->fw_type;
drivers/crypto/intel/qat/qat_common/qat_uclo.c
88
static int qat_uclo_check_uof_format(struct icp_qat_uof_filehdr *hdr)
drivers/crypto/intel/qat/qat_common/qat_uclo.c
90
int maj = hdr->maj_ver & 0xff;
drivers/crypto/intel/qat/qat_common/qat_uclo.c
91
int min = hdr->min_ver & 0xff;
drivers/crypto/intel/qat/qat_common/qat_uclo.c
93
if (hdr->file_id != ICP_QAT_UOF_FID) {
drivers/crypto/intel/qat/qat_common/qat_uclo.c
94
pr_err("Invalid header 0x%x\n", hdr->file_id);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
433
if (strncmp(tar_blk->hdr.magic, TAR_MAGIC, TAR_MAGIC_LEN - 1)) {
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
441
ret = kstrtouint(tar_blk->hdr.size, 8, &cur_size);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
452
if (tar_blk->hdr.typeflag == REGTYPE ||
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
453
tar_blk->hdr.typeflag == AREGTYPE) {
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
455
tar_blk->hdr.name,
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
48
struct tar_hdr_t hdr;
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
121
struct mbox_msghdr hdr;
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
125
struct mbox_msghdr hdr;
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
52
struct mbox_msghdr hdr;
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
71
struct mbox_msghdr hdr;
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
76
struct mbox_msghdr hdr;
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
86
struct mbox_msghdr hdr;
drivers/crypto/marvell/octeontx2/otx2_cpt_common.h
90
struct mbox_msghdr hdr;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
140
req->hdr.id = MBOX_MSG_ATTACH_RESOURCES;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
141
req->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
142
req->hdr.pcifunc = 0;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
170
req->hdr.id = MBOX_MSG_DETACH_RESOURCES;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
171
req->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
172
req->hdr.pcifunc = 0;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
247
req->hdr.id = MBOX_MSG_CPT_LF_RESET;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
248
req->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
249
req->hdr.pcifunc = 0;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
273
req->hdr.id = MBOX_MSG_LMTST_TBL_SETUP;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
274
req->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
275
req->hdr.pcifunc = 0;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
62
reg_msg->hdr.id = MBOX_MSG_CPT_RD_WR_REGISTER;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
63
reg_msg->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
64
reg_msg->hdr.pcifunc = 0;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
87
reg_msg->hdr.id = MBOX_MSG_CPT_RD_WR_REGISTER;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
88
reg_msg->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/crypto/marvell/octeontx2/otx2_cpt_mbox_common.c
89
reg_msg->hdr.pcifunc = 0;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
100
rsp->hdr.id = MBOX_MSG_GET_ENG_GRP_NUM;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
101
rsp->hdr.sig = OTX2_MBOX_RSP_SIG;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
102
rsp->hdr.pcifunc = req->pcifunc;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
121
rsp->hdr.id = MBOX_MSG_GET_KVF_LIMITS;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
122
rsp->hdr.sig = OTX2_MBOX_RSP_SIG;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
123
rsp->hdr.pcifunc = req->pcifunc;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
143
req->hdr.id = MBOX_MSG_CPT_INLINE_IPSEC_CFG;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
144
req->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
145
req->hdr.pcifunc = OTX2_CPT_RVU_PFFUNC(cptpf->pdev, cptpf->pf_id, 0);
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
171
nix_req->hdr.id = MBOX_MSG_NIX_INLINE_IPSEC_CFG;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
172
nix_req->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
422
struct mbox_hdr *hdr;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
431
hdr = mdev->mbase + mbox->rx_start;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
432
if (hdr->num_msgs)
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
438
hdr = mdev->mbase + mbox->rx_start;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
439
if (hdr->num_msgs)
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
611
rsp->hdr.id = msg->id;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
612
rsp->hdr.sig = OTX2_MBOX_RSP_SIG;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
613
rsp->hdr.pcifunc = 0;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
614
rsp->hdr.rc = 0;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
77
rsp->hdr.id = MBOX_MSG_GET_CAPS;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
78
rsp->hdr.sig = OTX2_MBOX_RSP_SIG;
drivers/crypto/marvell/octeontx2/otx2_cptpf_mbox.c
79
rsp->hdr.pcifunc = req->pcifunc;
drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c
195
req->hdr.id = MBOX_MSG_GET_ENG_GRP_NUM;
drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c
196
req->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c
197
req->hdr.pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->pdev, cptvf->vf_id, 0);
drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c
33
struct mbox_hdr *hdr;
drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c
39
hdr = hw_mbase + mbox->rx_start;
drivers/crypto/marvell/octeontx2/otx2_cptvf_mbox.c
40
msg_size = hdr->msg_size;
drivers/crypto/nx/nx-842.c
146
static int nx842_crypto_add_header(struct nx842_crypto_header *hdr, u8 *buf)
drivers/crypto/nx/nx-842.c
148
int s = NX842_CRYPTO_HEADER_SIZE(hdr->groups);
drivers/crypto/nx/nx-842.c
151
if (s > be16_to_cpu(hdr->group[0].padding)) {
drivers/crypto/nx/nx-842.c
156
memcpy(buf, hdr, s);
drivers/crypto/nx/nx-842.c
259
struct nx842_crypto_header *hdr =
drivers/crypto/nx/nx-842.c
261
struct nx842_crypto_header, hdr);
drivers/crypto/nx/nx-842.c
295
hdr->magic = cpu_to_be16(NX842_CRYPTO_MAGIC);
drivers/crypto/nx/nx-842.c
296
hdr->groups = 0;
drivers/crypto/nx/nx-842.c
297
hdr->ignore = 0;
drivers/crypto/nx/nx-842.c
300
n = hdr->groups++;
drivers/crypto/nx/nx-842.c
302
if (hdr->groups > NX842_CRYPTO_GROUP_MAX)
drivers/crypto/nx/nx-842.c
311
ret = compress(ctx, &p, &hdr->group[n], &c, &ignore, h);
drivers/crypto/nx/nx-842.c
316
if (!add_header && hdr->groups > 1) {
drivers/crypto/nx/nx-842.c
323
hdr->ignore = cpu_to_be16(ignore);
drivers/crypto/nx/nx-842.c
328
ret = nx842_crypto_add_header(hdr, dst);
drivers/crypto/nx/nx-842.c
444
struct nx842_crypto_header *hdr;
drivers/crypto/nx/nx-842.c
460
hdr = (struct nx842_crypto_header *)src;
drivers/crypto/nx/nx-842.c
467
if (be16_to_cpu(hdr->magic) != NX842_CRYPTO_MAGIC) {
drivers/crypto/nx/nx-842.c
481
if (!hdr->groups) {
drivers/crypto/nx/nx-842.c
486
if (hdr->groups > NX842_CRYPTO_GROUP_MAX) {
drivers/crypto/nx/nx-842.c
488
hdr->groups, NX842_CRYPTO_GROUP_MAX);
drivers/crypto/nx/nx-842.c
493
hdr_len = NX842_CRYPTO_HEADER_SIZE(hdr->groups);
drivers/crypto/nx/nx-842.c
500
hdr = container_of(&ctx->header, struct nx842_crypto_header, hdr);
drivers/crypto/nx/nx-842.c
502
for (n = 0; n < hdr->groups; n++) {
drivers/crypto/nx/nx-842.c
504
if (n + 1 == hdr->groups)
drivers/crypto/nx/nx-842.c
505
ignore = be16_to_cpu(hdr->ignore);
drivers/crypto/nx/nx-842.c
507
ret = decompress(ctx, &p, &hdr->group[n], &c, ignore);
drivers/crypto/nx/nx-842.h
162
struct_group_tagged(nx842_crypto_header_hdr, hdr,
drivers/crypto/nx/nx-aes-cbc.c
49
csbcpb->cpb.hdr.mode = NX_MODE_AES_CBC;
drivers/crypto/nx/nx-aes-ccm.c
43
csbcpb->cpb.hdr.mode = NX_MODE_AES_CCM;
drivers/crypto/nx/nx-aes-ccm.c
46
csbcpb_aead->cpb.hdr.mode = NX_MODE_AES_CCA;
drivers/crypto/nx/nx-aes-ctr.c
50
csbcpb->cpb.hdr.mode = NX_MODE_AES_CTR;
drivers/crypto/nx/nx-aes-ecb.c
49
csbcpb->cpb.hdr.mode = NX_MODE_AES_ECB;
drivers/crypto/nx/nx-aes-gcm.c
178
csbcpb->cpb.hdr.mode = NX_MODE_AES_GMAC;
drivers/crypto/nx/nx-aes-gcm.c
235
csbcpb->cpb.hdr.mode = NX_MODE_AES_GCM;
drivers/crypto/nx/nx-aes-gcm.c
255
csbcpb->cpb.hdr.mode = NX_MODE_AES_ECB;
drivers/crypto/nx/nx-aes-gcm.c
293
csbcpb->cpb.hdr.mode = NX_MODE_AES_GCM;
drivers/crypto/nx/nx-aes-gcm.c
53
csbcpb->cpb.hdr.mode = NX_MODE_AES_GCM;
drivers/crypto/nx/nx-aes-gcm.c
56
csbcpb_aead->cpb.hdr.mode = NX_MODE_AES_GCA;
drivers/crypto/nx/nx-aes-xcbc.c
130
csbcpb->cpb.hdr.mode = NX_MODE_AES_XCBC_MAC;
drivers/crypto/nx/nx-aes-xcbc.c
150
csbcpb->cpb.hdr.mode = NX_MODE_AES_XCBC_MAC;
drivers/crypto/nx/nx-aes-xcbc.c
69
csbcpb->cpb.hdr.mode = NX_MODE_AES_ECB;
drivers/crypto/nx/nx_csbcpb.h
104
#define NX_CPB_FDM(c) ((c)->cpb.hdr.fdm)
drivers/crypto/nx/nx_csbcpb.h
105
#define NX_CPB_KS_DS(c) ((c)->cpb.hdr.ks_ds)
drivers/crypto/nx/nx_csbcpb.h
120
struct cop_symcpb_header hdr;
drivers/crypto/sahara.c
125
u32 hdr;
drivers/crypto/sahara.c
234
u32 hdr = SAHARA_HDR_BASE | SAHARA_HDR_SKHA_ALG_AES |
drivers/crypto/sahara.c
239
hdr |= SAHARA_HDR_SKHA_MODE_CBC;
drivers/crypto/sahara.c
240
hdr ^= SAHARA_HDR_PARITY_BIT;
drivers/crypto/sahara.c
244
hdr |= SAHARA_HDR_SKHA_OP_ENC;
drivers/crypto/sahara.c
245
hdr ^= SAHARA_HDR_PARITY_BIT;
drivers/crypto/sahara.c
248
return hdr;
drivers/crypto/sahara.c
403
dev_dbg(dev->device, "\thdr = 0x%08x\n", dev->hw_desc[i]->hdr);
drivers/crypto/sahara.c
453
dev->hw_desc[idx]->hdr = sahara_aes_key_hdr(dev);
drivers/crypto/sahara.c
521
dev->hw_desc[idx]->hdr = sahara_aes_data_link_hdr(dev);
drivers/crypto/sahara.c
736
u32 hdr = 0;
drivers/crypto/sahara.c
738
hdr = rctx->mode;
drivers/crypto/sahara.c
741
hdr |= SAHARA_HDR_MDHA_SET_MODE_HASH;
drivers/crypto/sahara.c
742
hdr |= SAHARA_HDR_MDHA_INIT;
drivers/crypto/sahara.c
744
hdr |= SAHARA_HDR_MDHA_SET_MODE_MD_KEY;
drivers/crypto/sahara.c
748
hdr |= SAHARA_HDR_MDHA_PDATA;
drivers/crypto/sahara.c
750
if (hweight_long(hdr) % 2 == 0)
drivers/crypto/sahara.c
751
hdr |= SAHARA_HDR_PARITY_BIT;
drivers/crypto/sahara.c
753
return hdr;
drivers/crypto/sahara.c
809
dev->hw_desc[index]->hdr = sahara_sha_init_hdr(dev, rctx);
drivers/crypto/sahara.c
812
dev->hw_desc[index]->hdr = SAHARA_HDR_MDHA_HASH;
drivers/crypto/sahara.c
857
dev->hw_desc[index]->hdr = sahara_sha_init_hdr(dev, rctx);
drivers/crypto/talitos.c
1212
bool is_ipsec_esp = desc->hdr & DESC_HDR_TYPE_IPSEC_ESP;
drivers/crypto/talitos.c
1251
if (is_ipsec_esp && (desc->hdr & DESC_HDR_MODE1_MDEU_CICV))
drivers/crypto/talitos.c
1444
edesc->desc.hdr = ctx->desc_hdr_template | DESC_HDR_MODE0_ENCRYPT;
drivers/crypto/talitos.c
1463
if ((edesc->desc.hdr & DESC_HDR_TYPE_IPSEC_ESP) &&
drivers/crypto/talitos.c
1469
edesc->desc.hdr = ctx->desc_hdr_template |
drivers/crypto/talitos.c
1480
edesc->desc.hdr = ctx->desc_hdr_template | DESC_HDR_DIR_INBOUND;
drivers/crypto/talitos.c
1582
bool is_ctr = (desc->hdr & DESC_HDR_SEL0_MASK) == DESC_HDR_SEL0_AESU &&
drivers/crypto/talitos.c
1583
(desc->hdr & DESC_HDR_MODE0_AESU_MASK) == DESC_HDR_MODE0_AESU_CTR;
drivers/crypto/talitos.c
1671
edesc->desc.hdr = ctx->desc_hdr_template | DESC_HDR_MODE0_ENCRYPT;
drivers/crypto/talitos.c
1695
edesc->desc.hdr = ctx->desc_hdr_template | DESC_HDR_DIR_INBOUND;
drivers/crypto/talitos.c
1781
edesc->desc.hdr &= ~DESC_HDR_MODE0_MDEU_PAD;
drivers/crypto/talitos.c
1868
desc2->hdr = desc->hdr;
drivers/crypto/talitos.c
1869
desc2->hdr &= ~DESC_HDR_MODE0_MDEU_INIT;
drivers/crypto/talitos.c
1870
desc2->hdr1 = desc2->hdr;
drivers/crypto/talitos.c
1871
desc->hdr &= ~DESC_HDR_MODE0_MDEU_PAD;
drivers/crypto/talitos.c
1872
desc->hdr |= DESC_HDR_MODE0_MDEU_CONT;
drivers/crypto/talitos.c
1873
desc->hdr &= ~DESC_HDR_DONE_NOTIFY;
drivers/crypto/talitos.c
2072
edesc->desc.hdr = ctx->desc_hdr_template;
drivers/crypto/talitos.c
2076
edesc->desc.hdr |= DESC_HDR_MODE0_MDEU_PAD;
drivers/crypto/talitos.c
2078
edesc->desc.hdr |= DESC_HDR_MODE0_MDEU_CONT;
drivers/crypto/talitos.c
2082
edesc->desc.hdr |= DESC_HDR_MODE0_MDEU_INIT;
drivers/crypto/talitos.c
2088
edesc->desc.hdr |= DESC_HDR_MODE0_MDEU_HMAC;
drivers/crypto/talitos.c
294
desc->hdr1 = desc->hdr;
drivers/crypto/talitos.c
329
return request->desc->hdr;
drivers/crypto/talitos.c
354
__be32 hdr;
drivers/crypto/talitos.c
360
hdr = get_request_hdr(request, is_sec1);
drivers/crypto/talitos.c
362
if ((hdr & DESC_HDR_DONE) == DESC_HDR_DONE)
drivers/crypto/talitos.c
496
(edesc->buf + edesc->dma_len))->hdr;
drivers/crypto/talitos.c
499
return priv->chan[ch].fifo[iter].desc->hdr;
drivers/crypto/talitos.c
996
bool is_ipsec_esp = edesc->desc.hdr & DESC_HDR_TYPE_IPSEC_ESP;
drivers/crypto/talitos.h
34
__be32 hdr; /* header high bits */
drivers/cxl/core/cdat.c
127
struct acpi_cdat_header *hdr = &header->cdat;
drivers/cxl/core/cdat.c
129
int size = sizeof(*hdr) + sizeof(*dslbis);
drivers/cxl/core/cdat.c
137
len = le16_to_cpu((__force __le16)hdr->length);
drivers/cxl/core/cdat.c
138
if (len != size || (unsigned long)hdr + len > end) {
drivers/cxl/core/cdat.c
144
dslbis = (struct acpi_cdat_dslbis *)(hdr + 1);
drivers/cxl/core/cdat.c
55
struct acpi_cdat_header *hdr = &header->cdat;
drivers/cxl/core/cdat.c
57
int size = sizeof(*hdr) + sizeof(*dsmas);
drivers/cxl/core/cdat.c
63
len = le16_to_cpu((__force __le16)hdr->length);
drivers/cxl/core/cdat.c
64
if (len != size || (unsigned long)hdr + len > end) {
drivers/cxl/core/cdat.c
70
dsmas = (struct acpi_cdat_dsmas *)(hdr + 1);
drivers/cxl/core/edac.c
1032
u64 cur_ts = le64_to_cpu(cur_rec->media_hdr.hdr.timestamp);
drivers/cxl/core/edac.c
1039
le64_to_cpu(rec->media_hdr.hdr.timestamp)) / 1000000000ULL;
drivers/cxl/core/edac.c
1050
u64 cur_ts = le64_to_cpu(cur_rec->media_hdr.hdr.timestamp);
drivers/cxl/core/edac.c
1057
le64_to_cpu(rec->media_hdr.hdr.timestamp)) / 1000000000ULL;
drivers/cxl/core/edac.c
1240
struct cxl_memdev_repair_rd_attrbs_hdr hdr;
drivers/cxl/core/edac.c
1280
cxl_sparing_ctx->op_class = rd_attrbs->hdr.op_class;
drivers/cxl/core/edac.c
1281
cxl_sparing_ctx->op_subclass = rd_attrbs->hdr.op_subclass;
drivers/cxl/core/edac.c
1730
struct cxl_memdev_repair_rd_attrbs_hdr hdr;
drivers/cxl/core/edac.c
1767
cxl_ppr_ctx->op_class = rd_attrbs->hdr.op_class;
drivers/cxl/core/edac.c
1768
cxl_ppr_ctx->op_subclass = rd_attrbs->hdr.op_subclass;
drivers/cxl/core/edac.c
839
struct cxl_mbox_maintenance_hdr hdr;
drivers/cxl/core/edac.c
850
pi->hdr.op_class = class;
drivers/cxl/core/edac.c
851
pi->hdr.op_subclass = subclass;
drivers/cxl/core/edac.c
852
hdr_size = sizeof(pi->hdr);
drivers/cxl/core/features.c
299
hdr_size = sizeof(pi->hdr);
drivers/cxl/core/features.c
507
if (rpc_in->op_size <= sizeof(feat_in->hdr))
drivers/cxl/core/features.c
526
data_size = rpc_in->op_size - sizeof(feat_in->hdr);
drivers/cxl/core/mbox.c
1034
payload->handles[i++] = gen->hdr.handle;
drivers/cxl/core/regs.c
67
u32 length, hdr;
drivers/cxl/core/regs.c
69
hdr = readl(base + cap * 0x4);
drivers/cxl/core/regs.c
71
cap_id = FIELD_GET(CXL_CM_CAP_HDR_ID_MASK, hdr);
drivers/cxl/core/regs.c
72
offset = FIELD_GET(CXL_CM_CAP_PTR_MASK, hdr);
drivers/cxl/core/regs.c
74
hdr = readl(register_block);
drivers/cxl/core/regs.c
84
decoder_cnt = cxl_hdm_decoder_count(hdr);
drivers/cxl/core/trace.h
258
#define CXL_EVT_TP_fast_assign(cxlmd, l, hdr) \
drivers/cxl/core/trace.h
263
__entry->hdr_length = (hdr).length; \
drivers/cxl/core/trace.h
264
__entry->hdr_flags = get_unaligned_le24((hdr).flags); \
drivers/cxl/core/trace.h
265
__entry->hdr_handle = le16_to_cpu((hdr).handle); \
drivers/cxl/core/trace.h
266
__entry->hdr_related_handle = le16_to_cpu((hdr).related_handle); \
drivers/cxl/core/trace.h
267
__entry->hdr_timestamp = le64_to_cpu((hdr).timestamp); \
drivers/cxl/core/trace.h
268
__entry->hdr_maint_op_class = (hdr).maint_op_class; \
drivers/cxl/core/trace.h
269
__entry->hdr_maint_op_sub_class = (hdr).maint_op_sub_class; \
drivers/cxl/core/trace.h
270
__entry->hdr_ld_id = le16_to_cpu((hdr).ld_id); \
drivers/cxl/core/trace.h
271
__entry->hdr_head_id = (hdr).head_id
drivers/cxl/core/trace.h
300
CXL_EVT_TP_fast_assign(cxlmd, log, gen_rec->hdr);
drivers/cxl/core/trace.h
481
CXL_EVT_TP_fast_assign(cxlmd, log, rec->media_hdr.hdr);
drivers/cxl/core/trace.h
630
CXL_EVT_TP_fast_assign(cxlmd, log, rec->media_hdr.hdr);
drivers/cxl/core/trace.h
841
CXL_EVT_TP_fast_assign(cxlmd, log, rec->hdr);
drivers/cxl/core/trace.h
954
CXL_EVT_TP_fast_assign(cxlmd, log, rec->hdr);
drivers/cxl/pci.c
1077
struct cper_cxl_event_devid *device_id = &rec->hdr.device_id;
drivers/cxl/pci.c
1103
hdr_flags = get_unaligned_le24(rec->event.generic.hdr.flags);
drivers/dma/arm-dma350.c
401
u32 hdr, *reg;
drivers/dma/arm-dma350.c
412
hdr = dch->desc->command[0];
drivers/dma/arm-dma350.c
415
if (hdr & LINK_INTREN)
drivers/dma/arm-dma350.c
417
if (hdr & LINK_CTRL)
drivers/dma/arm-dma350.c
419
if (hdr & LINK_SRCADDR)
drivers/dma/arm-dma350.c
421
if (hdr & LINK_SRCADDRHI)
drivers/dma/arm-dma350.c
423
if (hdr & LINK_DESADDR)
drivers/dma/arm-dma350.c
425
if (hdr & LINK_DESADDRHI)
drivers/dma/arm-dma350.c
427
if (hdr & LINK_XSIZE)
drivers/dma/arm-dma350.c
429
if (hdr & LINK_XSIZEHI)
drivers/dma/arm-dma350.c
431
if (hdr & LINK_SRCTRANSCFG)
drivers/dma/arm-dma350.c
433
if (hdr & LINK_DESTRANSCFG)
drivers/dma/arm-dma350.c
435
if (hdr & LINK_XADDRINC)
drivers/dma/arm-dma350.c
437
if (hdr & LINK_FILLVAL)
drivers/dma/arm-dma350.c
439
if (hdr & LINK_SRCTRIGINCFG)
drivers/dma/arm-dma350.c
441
if (hdr & LINK_DESTRIGINCFG)
drivers/dma/arm-dma350.c
443
if (hdr & LINK_AUTOCFG)
drivers/dma/arm-dma350.c
445
if (hdr & LINK_LINKADDR)
drivers/dma/arm-dma350.c
447
if (hdr & LINK_LINKADDRHI)
drivers/dma/bestcomm/bestcomm.c
139
struct bcom_task_header *hdr = (struct bcom_task_header *)task_image;
drivers/dma/bestcomm/bestcomm.c
145
if (hdr->magic != BCOM_TASK_MAGIC) {
drivers/dma/bestcomm/bestcomm.c
162
if (hdr->desc_size != bcom_task_num_descs(task)) {
drivers/dma/bestcomm/bestcomm.c
167
hdr->desc_size,
drivers/dma/bestcomm/bestcomm.c
174
desc = bcom_sram_alloc(hdr->desc_size * sizeof(u32), 4, &start_pa);
drivers/dma/bestcomm/bestcomm.c
179
tdt->stop = start_pa + ((hdr->desc_size-1) * sizeof(u32));
drivers/dma/bestcomm/bestcomm.c
189
desc_src = (u32 *)(hdr + 1);
drivers/dma/bestcomm/bestcomm.c
190
var_src = desc_src + hdr->desc_size;
drivers/dma/bestcomm/bestcomm.c
191
inc_src = var_src + hdr->var_size;
drivers/dma/bestcomm/bestcomm.c
193
memcpy_toio(desc, desc_src, hdr->desc_size * sizeof(u32));
drivers/dma/bestcomm/bestcomm.c
194
memcpy_toio(var + hdr->first_var, var_src, hdr->var_size * sizeof(u32));
drivers/dma/bestcomm/bestcomm.c
195
memcpy_toio(inc, inc_src, hdr->inc_size * sizeof(u32));
drivers/dma/ti/k3-udma-glue.c
482
cppi5_desc_set_retpolicy(&desc_tx->hdr, 0, ringtxcq_id);
drivers/dma/ti/k3-udma.c
3286
cppi5_desc_set_pktids(&desc->hdr, uc->id,
drivers/dma/ti/k3-udma.c
3288
cppi5_desc_set_retpolicy(&desc->hdr, 0, ring_id);
drivers/dma/ti/k3-udma.c
3291
cppi5_desc_set_retpolicy(&desc->hdr, 0, 0xffff);
drivers/dma/ti/k3-udma.c
3373
*payload_len = cppi5_hdesc_epib_present(&h_desc->hdr) ?
drivers/dma/ti/k3-udma.c
3630
cppi5_desc_set_pktids(&h_desc->hdr, uc->id,
drivers/dma/ti/k3-udma.c
3632
cppi5_desc_set_retpolicy(&h_desc->hdr, 0, ring_id);
drivers/dma/ti/k3-udma.c
5288
cppi5_desc_set_pktids(&desc->hdr, 0, CPPI5_INFO1_DESC_FLOWID_DEFAULT);
drivers/dma/ti/k3-udma.c
5289
cppi5_desc_set_retpolicy(&desc->hdr, 0, 0);
drivers/dpll/dpll_netlink.c
1623
struct nlattr *hdr;
drivers/dpll/dpll_netlink.c
1629
hdr = genlmsg_put_reply(msg, info, &dpll_nl_family, 0,
drivers/dpll/dpll_netlink.c
1631
if (!hdr) {
drivers/dpll/dpll_netlink.c
1649
genlmsg_end(msg, hdr);
drivers/dpll/dpll_netlink.c
1658
struct nlattr *hdr;
drivers/dpll/dpll_netlink.c
1666
hdr = genlmsg_put_reply(msg, info, &dpll_nl_family, 0,
drivers/dpll/dpll_netlink.c
1668
if (!hdr) {
drivers/dpll/dpll_netlink.c
1677
genlmsg_end(msg, hdr);
drivers/dpll/dpll_netlink.c
1686
struct nlattr *hdr;
drivers/dpll/dpll_netlink.c
1695
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
drivers/dpll/dpll_netlink.c
1699
if (!hdr) {
drivers/dpll/dpll_netlink.c
1705
genlmsg_cancel(skb, hdr);
drivers/dpll/dpll_netlink.c
1708
genlmsg_end(skb, hdr);
drivers/dpll/dpll_netlink.c
1800
struct nlattr *hdr;
drivers/dpll/dpll_netlink.c
1806
hdr = genlmsg_put_reply(msg, info, &dpll_nl_family, 0,
drivers/dpll/dpll_netlink.c
1808
if (!hdr) {
drivers/dpll/dpll_netlink.c
1823
genlmsg_end(msg, hdr);
drivers/dpll/dpll_netlink.c
1832
struct nlattr *hdr;
drivers/dpll/dpll_netlink.c
1838
hdr = genlmsg_put_reply(msg, info, &dpll_nl_family, 0,
drivers/dpll/dpll_netlink.c
1840
if (!hdr) {
drivers/dpll/dpll_netlink.c
1850
genlmsg_end(msg, hdr);
drivers/dpll/dpll_netlink.c
1898
struct nlattr *hdr;
drivers/dpll/dpll_netlink.c
1905
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
drivers/dpll/dpll_netlink.c
1908
if (!hdr) {
drivers/dpll/dpll_netlink.c
1914
genlmsg_cancel(skb, hdr);
drivers/dpll/dpll_netlink.c
1917
genlmsg_end(skb, hdr);
drivers/dpll/dpll_netlink.c
736
void *hdr;
drivers/dpll/dpll_netlink.c
743
hdr = genlmsg_put(msg, 0, 0, &dpll_nl_family, 0, event);
drivers/dpll/dpll_netlink.c
744
if (!hdr)
drivers/dpll/dpll_netlink.c
749
genlmsg_end(msg, hdr);
drivers/dpll/dpll_netlink.c
755
genlmsg_cancel(msg, hdr);
drivers/dpll/dpll_netlink.c
805
void *hdr;
drivers/dpll/dpll_netlink.c
814
hdr = genlmsg_put(msg, 0, 0, &dpll_nl_family, 0, event);
drivers/dpll/dpll_netlink.c
815
if (!hdr)
drivers/dpll/dpll_netlink.c
820
genlmsg_end(msg, hdr);
drivers/dpll/dpll_netlink.c
826
genlmsg_cancel(msg, hdr);
drivers/edac/versalnet_edac.c
515
const struct cdx_dword *hdr, size_t hdr_len,
drivers/edac/versalnet_edac.c
525
memcpy(send_buf, hdr, hdr_len);
drivers/firewire/net.c
101
hdr->w1 = fwnet_set_hdr_dgl(dgl);
drivers/firewire/net.c
104
static inline void fwnet_make_sf_hdr(struct rfc2734_header *hdr,
drivers/firewire/net.c
107
hdr->w0 = fwnet_set_hdr_lf(lf)
drivers/firewire/net.c
110
hdr->w1 = fwnet_set_hdr_dgl(dgl);
drivers/firewire/net.c
1310
ptask->hdr.w0 = 0;
drivers/firewire/net.c
1311
ptask->hdr.w1 = 0;
drivers/firewire/net.c
1317
fwnet_make_uf_hdr(&ptask->hdr, ntohs(proto));
drivers/firewire/net.c
1325
fwnet_make_ff_hdr(&ptask->hdr, ntohs(proto), dg_size,
drivers/firewire/net.c
191
struct rfc2734_header hdr;
drivers/firewire/net.c
565
struct rfc2734_header hdr;
drivers/firewire/net.c
579
hdr.w0 = be32_to_cpu(buf[0]);
drivers/firewire/net.c
580
lf = fwnet_get_hdr_lf(&hdr);
drivers/firewire/net.c
587
ether_type = fwnet_get_hdr_ether_type(&hdr);
drivers/firewire/net.c
609
hdr.w1 = ntohl(buf[1]);
drivers/firewire/net.c
613
ether_type = fwnet_get_hdr_ether_type(&hdr);
drivers/firewire/net.c
617
fg_off = fwnet_get_hdr_fg_off(&hdr);
drivers/firewire/net.c
619
datagram_label = fwnet_get_hdr_dgl(&hdr);
drivers/firewire/net.c
620
dg_size = fwnet_get_hdr_dg_size(&hdr);
drivers/firewire/net.c
852
lf = fwnet_get_hdr_lf(&ptask->hdr);
drivers/firewire/net.c
859
ptask->outstanding_pkts, lf, ptask->hdr.w0,
drivers/firewire/net.c
860
ptask->hdr.w1);
drivers/firewire/net.c
865
dg_size = fwnet_get_hdr_dg_size(&ptask->hdr);
drivers/firewire/net.c
867
datagram_label = fwnet_get_hdr_dgl(&ptask->hdr);
drivers/firewire/net.c
871
dg_size = fwnet_get_hdr_dg_size(&ptask->hdr);
drivers/firewire/net.c
872
fg_off = fwnet_get_hdr_fg_off(&ptask->hdr)
drivers/firewire/net.c
874
datagram_label = fwnet_get_hdr_dgl(&ptask->hdr);
drivers/firewire/net.c
88
static inline void fwnet_make_uf_hdr(struct rfc2734_header *hdr,
drivers/firewire/net.c
885
fwnet_make_sf_hdr(&ptask->hdr, RFC2374_HDR_INTFRAG,
drivers/firewire/net.c
888
fwnet_make_sf_hdr(&ptask->hdr, RFC2374_HDR_LASTFRAG,
drivers/firewire/net.c
91
hdr->w0 = fwnet_set_hdr_lf(RFC2374_HDR_UNFRAG)
drivers/firewire/net.c
95
static inline void fwnet_make_ff_hdr(struct rfc2734_header *hdr,
drivers/firewire/net.c
958
switch (fwnet_get_hdr_lf(&ptask->hdr)) {
drivers/firewire/net.c
961
put_unaligned_be32(ptask->hdr.w0, &bufhdr->w0);
drivers/firewire/net.c
968
put_unaligned_be32(ptask->hdr.w0, &bufhdr->w0);
drivers/firewire/net.c
969
put_unaligned_be32(ptask->hdr.w1, &bufhdr->w1);
drivers/firewire/net.c
98
hdr->w0 = fwnet_set_hdr_lf(RFC2374_HDR_FIRSTFRAG)
drivers/firmware/arm_scmi/clock.c
645
t->hdr.poll_completion = atomic;
drivers/firmware/arm_scmi/clock.c
682
t->hdr.poll_completion = false;
drivers/firmware/arm_scmi/clock.c
738
t->hdr.poll_completion = atomic;
drivers/firmware/arm_scmi/clock.c
807
t->hdr.poll_completion = atomic;
drivers/firmware/arm_scmi/clock.c
851
t->hdr.poll_completion = atomic;
drivers/firmware/arm_scmi/common.h
105
static inline u32 pack_scmi_header(struct scmi_msg_hdr *hdr)
drivers/firmware/arm_scmi/common.h
107
return FIELD_PREP(MSG_ID_MASK, hdr->id) |
drivers/firmware/arm_scmi/common.h
108
FIELD_PREP(MSG_TYPE_MASK, hdr->type) |
drivers/firmware/arm_scmi/common.h
109
FIELD_PREP(MSG_TOKEN_ID_MASK, hdr->seq) |
drivers/firmware/arm_scmi/common.h
110
FIELD_PREP(MSG_PROTOCOL_ID_MASK, hdr->protocol_id);
drivers/firmware/arm_scmi/common.h
119
static inline void unpack_scmi_header(u32 msg_hdr, struct scmi_msg_hdr *hdr)
drivers/firmware/arm_scmi/common.h
121
hdr->id = MSG_XTRACT_ID(msg_hdr);
drivers/firmware/arm_scmi/common.h
122
hdr->protocol_id = MSG_XTRACT_PROT_ID(msg_hdr);
drivers/firmware/arm_scmi/common.h
123
hdr->type = MSG_XTRACT_TYPE(msg_hdr);
drivers/firmware/arm_scmi/common.h
136
if (xfer_->hdr.seq == k_) \
drivers/firmware/arm_scmi/common.h
75
#define MSG_XTRACT_ID(hdr) FIELD_GET(MSG_ID_MASK, (hdr))
drivers/firmware/arm_scmi/common.h
77
#define MSG_XTRACT_TYPE(hdr) FIELD_GET(MSG_TYPE_MASK, (hdr))
drivers/firmware/arm_scmi/common.h
82
#define MSG_XTRACT_PROT_ID(hdr) FIELD_GET(MSG_PROTOCOL_ID_MASK, (hdr))
drivers/firmware/arm_scmi/common.h
84
#define MSG_XTRACT_TOKEN(hdr) FIELD_GET(MSG_TOKEN_ID_MASK, (hdr))
drivers/firmware/arm_scmi/driver.c
1099
unpack_scmi_header(msg_hdr, &xfer->hdr);
drivers/firmware/arm_scmi/driver.c
1106
trace_scmi_msg_dump(info->id, cinfo->id, xfer->hdr.protocol_id,
drivers/firmware/arm_scmi/driver.c
1107
xfer->hdr.id, "NOTI", xfer->hdr.seq,
drivers/firmware/arm_scmi/driver.c
1108
xfer->hdr.status, xfer->rx.buf, xfer->rx.len);
drivers/firmware/arm_scmi/driver.c
1111
scmi_notify(cinfo->handle, xfer->hdr.protocol_id,
drivers/firmware/arm_scmi/driver.c
1112
xfer->hdr.id, xfer->rx.buf, xfer->rx.len, ts);
drivers/firmware/arm_scmi/driver.c
1114
trace_scmi_rx_done(xfer->transfer_id, xfer->hdr.id,
drivers/firmware/arm_scmi/driver.c
1115
xfer->hdr.protocol_id, xfer->hdr.seq,
drivers/firmware/arm_scmi/driver.c
1119
xfer->hdr.seq = MSG_XTRACT_TOKEN(msg_hdr);
drivers/firmware/arm_scmi/driver.c
1146
if (xfer->hdr.type == MSG_TYPE_DELAYED_RESP)
drivers/firmware/arm_scmi/driver.c
1154
trace_scmi_msg_dump(info->id, cinfo->id, xfer->hdr.protocol_id,
drivers/firmware/arm_scmi/driver.c
1155
xfer->hdr.id,
drivers/firmware/arm_scmi/driver.c
1156
xfer->hdr.type == MSG_TYPE_DELAYED_RESP ?
drivers/firmware/arm_scmi/driver.c
1159
xfer->hdr.seq, xfer->hdr.status,
drivers/firmware/arm_scmi/driver.c
1162
trace_scmi_rx_done(xfer->transfer_id, xfer->hdr.id,
drivers/firmware/arm_scmi/driver.c
1163
xfer->hdr.protocol_id, xfer->hdr.seq,
drivers/firmware/arm_scmi/driver.c
1164
xfer->hdr.type);
drivers/firmware/arm_scmi/driver.c
1166
if (xfer->hdr.type == MSG_TYPE_DELAYED_RESP) {
drivers/firmware/arm_scmi/driver.c
1181
if (!xfer->hdr.poll_completion ||
drivers/firmware/arm_scmi/driver.c
1182
xfer->hdr.type == MSG_TYPE_DELAYED_RESP)
drivers/firmware/arm_scmi/driver.c
1261
if (xfer->hdr.poll_completion) {
drivers/firmware/arm_scmi/driver.c
1302
xfer->hdr.protocol_id, xfer->hdr.id,
drivers/firmware/arm_scmi/driver.c
1305
xfer->hdr.seq, xfer->hdr.status,
drivers/firmware/arm_scmi/driver.c
1347
trace_scmi_xfer_response_wait(xfer->transfer_id, xfer->hdr.id,
drivers/firmware/arm_scmi/driver.c
1348
xfer->hdr.protocol_id, xfer->hdr.seq,
drivers/firmware/arm_scmi/driver.c
1350
xfer->hdr.poll_completion);
drivers/firmware/arm_scmi/driver.c
1377
pack_scmi_header(&xfer->hdr));
drivers/firmware/arm_scmi/driver.c
1402
if (xfer->hdr.poll_completion &&
drivers/firmware/arm_scmi/driver.c
1417
xfer->hdr.poll_completion = true;
drivers/firmware/arm_scmi/driver.c
1424
xfer->hdr.protocol_id = pi->proto->id;
drivers/firmware/arm_scmi/driver.c
1427
trace_scmi_xfer_begin(xfer->transfer_id, xfer->hdr.id,
drivers/firmware/arm_scmi/driver.c
1428
xfer->hdr.protocol_id, xfer->hdr.seq,
drivers/firmware/arm_scmi/driver.c
1429
xfer->hdr.poll_completion,
drivers/firmware/arm_scmi/driver.c
1433
xfer->hdr.status = SCMI_SUCCESS;
drivers/firmware/arm_scmi/driver.c
1451
trace_scmi_msg_dump(info->id, cinfo->id, xfer->hdr.protocol_id,
drivers/firmware/arm_scmi/driver.c
1452
xfer->hdr.id, "CMND", xfer->hdr.seq,
drivers/firmware/arm_scmi/driver.c
1453
xfer->hdr.status, xfer->tx.buf, xfer->tx.len);
drivers/firmware/arm_scmi/driver.c
1457
if (!ret && xfer->hdr.status) {
drivers/firmware/arm_scmi/driver.c
1458
ret = scmi_to_linux_errno(xfer->hdr.status);
drivers/firmware/arm_scmi/driver.c
1465
trace_scmi_xfer_end(xfer->transfer_id, xfer->hdr.id,
drivers/firmware/arm_scmi/driver.c
1466
xfer->hdr.protocol_id, xfer->hdr.seq, ret,
drivers/firmware/arm_scmi/driver.c
1519
WARN_ON_ONCE(xfer->hdr.poll_completion);
drivers/firmware/arm_scmi/driver.c
1528
} else if (xfer->hdr.status) {
drivers/firmware/arm_scmi/driver.c
1529
ret = scmi_to_linux_errno(xfer->hdr.status);
drivers/firmware/arm_scmi/driver.c
1586
xfer->hdr.type = MSG_TYPE_COMMAND;
drivers/firmware/arm_scmi/driver.c
1587
xfer->hdr.id = msg_id;
drivers/firmware/arm_scmi/driver.c
1588
xfer->hdr.poll_completion = false;
drivers/firmware/arm_scmi/driver.c
558
xfer->hdr.seq = (u16)xfer_id;
drivers/firmware/arm_scmi/driver.c
572
clear_bit(xfer->hdr.seq, minfo->xfer_alloc_table);
drivers/firmware/arm_scmi/driver.c
595
set_bit(xfer->hdr.seq, minfo->xfer_alloc_table);
drivers/firmware/arm_scmi/driver.c
596
hash_add(minfo->pending_xfers, &xfer->node, xfer->hdr.seq);
drivers/firmware/arm_scmi/driver.c
623
if (!test_bit(xfer->hdr.seq, minfo->xfer_alloc_table))
drivers/firmware/arm_scmi/driver.c
924
xfer->hdr.seq);
drivers/firmware/arm_scmi/driver.c
935
xfer->hdr.status = SCMI_SUCCESS;
drivers/firmware/arm_scmi/driver.c
940
xfer->hdr.seq);
drivers/firmware/arm_scmi/driver.c
969
xfer->hdr.type = msg_type;
drivers/firmware/arm_scmi/driver.c
972
if (xfer->hdr.type == MSG_TYPE_COMMAND)
drivers/firmware/arm_scmi/msg.c
58
msg->msg_header = cpu_to_le32(pack_scmi_header(&xfer->hdr));
drivers/firmware/arm_scmi/msg.c
87
xfer->hdr.status = le32_to_cpu(msg->msg_payload[0]);
drivers/firmware/arm_scmi/perf.c
690
t->hdr.poll_completion = poll;
drivers/firmware/arm_scmi/perf.c
754
t->hdr.poll_completion = poll;
drivers/firmware/arm_scmi/protocols.h
129
struct scmi_msg_hdr hdr;
drivers/firmware/arm_scmi/raw_mode.c
1336
if (xfer->hdr.type != MSG_TYPE_NOTIFICATION)
drivers/firmware/arm_scmi/raw_mode.c
1343
*m = cpu_to_le32(pack_scmi_header(&xfer->hdr));
drivers/firmware/arm_scmi/raw_mode.c
1344
if (xfer->hdr.type != MSG_TYPE_NOTIFICATION)
drivers/firmware/arm_scmi/raw_mode.c
1345
*++m = cpu_to_le32(xfer->hdr.status);
drivers/firmware/arm_scmi/raw_mode.c
1461
unpack_scmi_header(msg_hdr, &xfer->hdr);
drivers/firmware/arm_scmi/raw_mode.c
1462
xfer->hdr.seq = MSG_XTRACT_TOKEN(msg_hdr);
drivers/firmware/arm_scmi/raw_mode.c
379
trace_scmi_xfer_response_wait(rw->xfer->transfer_id, rw->xfer->hdr.id,
drivers/firmware/arm_scmi/raw_mode.c
380
rw->xfer->hdr.protocol_id,
drivers/firmware/arm_scmi/raw_mode.c
381
rw->xfer->hdr.seq,
drivers/firmware/arm_scmi/raw_mode.c
383
rw->xfer->hdr.poll_completion);
drivers/firmware/arm_scmi/raw_mode.c
471
if (!ret && xfer->hdr.status)
drivers/firmware/arm_scmi/raw_mode.c
472
ret = scmi_to_linux_errno(xfer->hdr.status);
drivers/firmware/arm_scmi/raw_mode.c
477
trace_scmi_xfer_end(xfer->transfer_id, xfer->hdr.id,
drivers/firmware/arm_scmi/raw_mode.c
478
xfer->hdr.protocol_id, xfer->hdr.seq,
drivers/firmware/arm_scmi/raw_mode.c
488
pack_scmi_header(&xfer->hdr));
drivers/firmware/arm_scmi/raw_mode.c
553
unpack_scmi_header(msg_hdr, &xfer->hdr);
drivers/firmware/arm_scmi/raw_mode.c
554
xfer->hdr.seq = (u16)MSG_XTRACT_TOKEN(msg_hdr);
drivers/firmware/arm_scmi/raw_mode.c
556
xfer->hdr.poll_completion = false;
drivers/firmware/arm_scmi/raw_mode.c
557
xfer->hdr.status = SCMI_SUCCESS;
drivers/firmware/arm_scmi/raw_mode.c
586
xfer->hdr.seq, msg_hdr);
drivers/firmware/arm_scmi/raw_mode.c
622
chan_id = xfer->hdr.protocol_id;
drivers/firmware/arm_scmi/raw_mode.c
638
xfer->hdr.poll_completion = true;
drivers/firmware/arm_scmi/raw_mode.c
644
trace_scmi_xfer_begin(xfer->transfer_id, xfer->hdr.id,
drivers/firmware/arm_scmi/raw_mode.c
645
xfer->hdr.protocol_id, xfer->hdr.seq,
drivers/firmware/arm_scmi/raw_mode.c
646
xfer->hdr.poll_completion,
drivers/firmware/arm_scmi/raw_mode.c
656
trace_scmi_msg_dump(raw->id, cinfo->id, xfer->hdr.protocol_id,
drivers/firmware/arm_scmi/raw_mode.c
657
xfer->hdr.id, "cmnd", xfer->hdr.seq,
drivers/firmware/arm_scmi/raw_mode.c
658
xfer->hdr.status,
drivers/firmware/arm_scmi/raw_mode.c
693
xfer->hdr.poll_completion = true;
drivers/firmware/arm_scmi/shmem.c
123
iowrite32(xfer->hdr.poll_completion ? 0 : SCMI_SHMEM_FLAG_INTR_ENABLED,
drivers/firmware/arm_scmi/shmem.c
126
iowrite32(pack_scmi_header(&xfer->hdr), &shmem->msg_header);
drivers/firmware/arm_scmi/shmem.c
142
xfer->hdr.status = ioread32(shmem->msg_payload);
drivers/firmware/arm_scmi/shmem.c
175
if (xfer->hdr.seq != xfer_id)
drivers/firmware/arm_scmi/transports/smc.c
109
ret = atomic_cmpxchg(inflight, INFLIGHT_NONE, xfer->hdr.seq);
drivers/firmware/arm_scmi/transports/virtio.c
515
if (xfer->hdr.poll_completion) {
drivers/firmware/arm_scmi/transports/virtio.c
536
if (xfer->hdr.poll_completion)
drivers/firmware/arm_scmi/transports/virtio.c
614
if (!xfer->hdr.poll_completion || scmi_vio_msg_release(vioch, msg)) {
drivers/firmware/cirrus/cs_dsp.c
1257
if (sizeof(raw->hdr) > (data_len - pos))
drivers/firmware/cirrus/cs_dsp.c
1260
blk_len = le32_to_cpu(raw->hdr.size);
drivers/firmware/cirrus/cs_dsp.c
1264
if (blk_len > (data_len - pos - sizeof(raw->hdr)))
drivers/firmware/cirrus/cs_dsp.c
1267
blk_end_pos = pos + sizeof(raw->hdr) + blk_len;
drivers/firmware/cirrus/cs_dsp.c
1269
blk->offset = le16_to_cpu(raw->hdr.offset);
drivers/firmware/cirrus/cs_dsp.c
1270
blk->mem_type = le16_to_cpu(raw->hdr.type);
drivers/firmware/cirrus/cs_dsp.c
1285
pos += sizeof(raw->hdr);
drivers/firmware/cirrus/cs_dsp.c
2179
struct wmfw_coeff_hdr *hdr;
drivers/firmware/cirrus/cs_dsp.c
2195
if (sizeof(*hdr) >= firmware->size) {
drivers/firmware/cirrus/cs_dsp.c
2201
hdr = (void *)&firmware->data[0];
drivers/firmware/cirrus/cs_dsp.c
2202
if (memcmp(hdr->magic, "WMDR", 4) != 0) {
drivers/firmware/cirrus/cs_dsp.c
2207
switch (be32_to_cpu(hdr->rev) & 0xff) {
drivers/firmware/cirrus/cs_dsp.c
2214
file, be32_to_cpu(hdr->rev) & 0xff);
drivers/firmware/cirrus/cs_dsp.c
2220
be32_to_cpu(hdr->rev) & 0xff,
drivers/firmware/cirrus/cs_dsp.c
2221
(le32_to_cpu(hdr->ver) >> 16) & 0xff,
drivers/firmware/cirrus/cs_dsp.c
2222
(le32_to_cpu(hdr->ver) >> 8) & 0xff,
drivers/firmware/cirrus/cs_dsp.c
2223
le32_to_cpu(hdr->ver) & 0xff);
drivers/firmware/cirrus/cs_dsp.c
2225
pos = le32_to_cpu(hdr->len);
drivers/firmware/cirrus/test/cs_dsp_mock_bin.c
208
struct wmfw_coeff_hdr *hdr;
drivers/firmware/cirrus/test/cs_dsp_mock_bin.c
222
hdr = builder->buf;
drivers/firmware/cirrus/test/cs_dsp_mock_bin.c
223
memcpy(hdr->magic, "WMDR", sizeof(hdr->magic));
drivers/firmware/cirrus/test/cs_dsp_mock_bin.c
224
hdr->len = cpu_to_le32(offsetof(struct wmfw_coeff_hdr, data));
drivers/firmware/cirrus/test/cs_dsp_mock_bin.c
225
hdr->ver = cpu_to_le32(fw_version | (format_version << 24));
drivers/firmware/cirrus/test/cs_dsp_mock_bin.c
226
hdr->core_ver = cpu_to_le32(((u32)priv->dsp->type << 24) | priv->dsp->rev);
drivers/firmware/cirrus/test/cs_dsp_mock_bin.c
228
builder->write_p = hdr->data;
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
541
struct wmfw_adsp2_id_hdr *hdr = builder->blob_data;
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
544
next_free_xm_word = be32_to_cpu(hdr->xm);
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
545
next_free_ym_word = be32_to_cpu(hdr->ym);
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
546
next_free_zm_word = be32_to_cpu(hdr->zm);
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
549
hdr->n_algs = cpu_to_be32(num_algs);
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
553
(struct wmfw_adsp2_alg_hdr *)(&hdr[1]);
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
595
struct wmfw_halo_id_hdr *hdr = builder->blob_data;
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
599
next_free_xm_word = be32_to_cpu(hdr->xm_base) + be32_to_cpu(hdr->xm_size) - 1;
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
600
next_free_ym_word = be32_to_cpu(hdr->ym_base) + be32_to_cpu(hdr->ym_size) - 1;
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
603
hdr->n_algs = cpu_to_be32(num_algs);
drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
607
(struct wmfw_halo_alg_hdr *)(&hdr[1]);
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
286
v1->hdr.offset = cpu_to_le16(def->offset_dsp_words);
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
287
v1->hdr.type = cpu_to_le16(def->mem_type);
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
288
v1->hdr.size = cpu_to_le32(bytes_needed - sizeof(v1->hdr));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
403
struct wmfw_adsp2_halo_header *hdr = builder->buf;
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
406
memcpy(hdr->header.magic, "WMFW", sizeof(hdr->header.magic));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
407
hdr->header.len = cpu_to_le32(sizeof(*hdr));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
408
hdr->header.ver = builder->format_version;
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
409
hdr->header.core = dsp->type;
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
410
hdr->header.rev = cpu_to_le16(dsp->rev);
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
412
hdr->sizes.pm = cpu_to_le32(cs_dsp_mock_size_of_region(dsp, WMFW_ADSP2_PM));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
413
hdr->sizes.xm = cpu_to_le32(cs_dsp_mock_size_of_region(dsp, WMFW_ADSP2_XM));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
414
hdr->sizes.ym = cpu_to_le32(cs_dsp_mock_size_of_region(dsp, WMFW_ADSP2_YM));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
418
hdr->sizes.zm = cpu_to_le32(cs_dsp_mock_size_of_region(dsp, WMFW_ADSP2_ZM));
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
424
builder->write_p = &hdr[1];
drivers/firmware/cirrus/test/cs_dsp_mock_wmfw.c
425
builder->bytes_used += sizeof(*hdr);
drivers/firmware/efi/apple-properties.c
186
pa_data = boot_params.hdr.setup_data;
drivers/firmware/efi/efi-init.c
108
retval = efi_systab_check_header(&systab->hdr);
drivers/firmware/efi/efi-init.c
113
efi.runtime_version = systab->hdr.revision;
drivers/firmware/efi/efi-init.c
115
efi_systab_report_header(&systab->hdr, efi_to_phys(systab->fw_vendor));
drivers/firmware/efi/libstub/efi-stub-entry.c
51
if (efi_system_table->hdr.signature != EFI_SYSTEM_TABLE_SIGNATURE)
drivers/firmware/efi/libstub/efistub.h
258
efi_table_hdr_t hdr;
drivers/firmware/efi/libstub/efistub.h
334
efi_table_hdr_t hdr;
drivers/firmware/efi/libstub/efistub.h
407
efi_table_hdr_t hdr;
drivers/firmware/efi/libstub/efistub.h
430
efi_table_hdr_t hdr;
drivers/firmware/efi/libstub/x86-stub.c
129
data = (struct setup_data *)(unsigned long)params->hdr.setup_data;
drivers/firmware/efi/libstub/x86-stub.c
150
params->hdr.setup_data = (unsigned long)rom;
drivers/firmware/efi/libstub/x86-stub.c
196
data = (struct setup_data *)(unsigned long)boot_params->hdr.setup_data;
drivers/firmware/efi/libstub/x86-stub.c
198
boot_params->hdr.setup_data = (unsigned long)new;
drivers/firmware/efi/libstub/x86-stub.c
260
const struct efi_smbios_record *hdr =
drivers/firmware/efi/libstub/x86-stub.c
264
if (hdr->type == type)
drivers/firmware/efi/libstub/x86-stub.c
265
return hdr;
drivers/firmware/efi/libstub/x86-stub.c
268
if (hdr->type == 0x7F)
drivers/firmware/efi/libstub/x86-stub.c
272
next = p + hdr->length;
drivers/firmware/efi/libstub/x86-stub.c
512
struct setup_header *hdr;
drivers/firmware/efi/libstub/x86-stub.c
528
hdr = &boot_params->hdr;
drivers/firmware/efi/libstub/x86-stub.c
531
hdr->root_flags = 1;
drivers/firmware/efi/libstub/x86-stub.c
532
hdr->vid_mode = 0xffff;
drivers/firmware/efi/libstub/x86-stub.c
534
hdr->type_of_loader = 0x21;
drivers/firmware/efi/libstub/x86-stub.c
535
hdr->initrd_addr_max = INT_MAX;
drivers/firmware/efi/libstub/x86-stub.c
544
efi_set_u64_split((unsigned long)cmdline_ptr, &hdr->cmd_line_ptr,
drivers/firmware/efi/libstub/x86-stub.c
560
data = (struct setup_data *)(unsigned long)params->hdr.setup_data;
drivers/firmware/efi/libstub/x86-stub.c
568
params->hdr.setup_data = (unsigned long)e820ext;
drivers/firmware/efi/libstub/x86-stub.c
865
if (efi_system_table->hdr.revision <= EFI_2_00_SYSTEM_TABLE_REVISION &&
drivers/firmware/efi/libstub/x86-stub.c
875
boot_params->hdr.loadflags |= KASLR_FLAG;
drivers/firmware/efi/libstub/x86-stub.c
920
struct setup_header *hdr;
drivers/firmware/efi/libstub/x86-stub.c
925
if (efi_system_table->hdr.signature != EFI_SYSTEM_TABLE_SIGNATURE)
drivers/firmware/efi/libstub/x86-stub.c
934
hdr = &boot_params->hdr;
drivers/firmware/efi/libstub/x86-stub.c
942
efi_dxe_table->hdr.signature != EFI_DXE_SERVICES_TABLE_SIGNATURE) {
drivers/firmware/efi/libstub/x86-stub.c
965
unsigned long cmdline_paddr = ((u64)hdr->cmd_line_ptr |
drivers/firmware/efi/libstub/x86-stub.c
975
hdr->xloadflags |= XLF_MEM_ENCRYPTION;
drivers/firmware/efi/libstub/x86-stub.c
992
status = efi_load_initrd(image, hdr->initrd_addr_max, ULONG_MAX,
drivers/firmware/efi/libstub/x86-stub.c
997
efi_set_u64_split(initrd->base, &hdr->ramdisk_image,
drivers/firmware/efi/libstub/x86-stub.c
999
efi_set_u64_split(initrd->size, &hdr->ramdisk_size,
drivers/firmware/efi/ovmf-debug-log.c
109
memunmap(hdr);
drivers/firmware/efi/ovmf-debug-log.c
27
static struct ovmf_debug_log_header *hdr;
drivers/firmware/efi/ovmf-debug-log.c
37
start = hdr->head_off + offset;
drivers/firmware/efi/ovmf-debug-log.c
38
if (hdr->head_off > hdr->tail_off && start >= hdr->log_size)
drivers/firmware/efi/ovmf-debug-log.c
39
start -= hdr->log_size;
drivers/firmware/efi/ovmf-debug-log.c
42
if (start > hdr->tail_off) {
drivers/firmware/efi/ovmf-debug-log.c
43
if (end > hdr->log_size)
drivers/firmware/efi/ovmf-debug-log.c
44
end = hdr->log_size;
drivers/firmware/efi/ovmf-debug-log.c
46
if (end > hdr->tail_off)
drivers/firmware/efi/ovmf-debug-log.c
47
end = hdr->tail_off;
drivers/firmware/efi/ovmf-debug-log.c
73
hdr = memremap(ovmf_debug_log_table, sizeof(*hdr), MEMREMAP_WB);
drivers/firmware/efi/ovmf-debug-log.c
74
if (!hdr) {
drivers/firmware/efi/ovmf-debug-log.c
79
if (hdr->magic1 != OVMF_DEBUG_LOG_MAGIC1 ||
drivers/firmware/efi/ovmf-debug-log.c
80
hdr->magic2 != OVMF_DEBUG_LOG_MAGIC2) {
drivers/firmware/efi/ovmf-debug-log.c
85
size = hdr->hdr_size + hdr->log_size;
drivers/firmware/efi/ovmf-debug-log.c
86
pr_info("OVMF debug log: firmware version: \"%s\"\n", hdr->fw_version);
drivers/firmware/efi/ovmf-debug-log.c
90
memunmap(hdr);
drivers/firmware/efi/ovmf-debug-log.c
91
hdr = memremap(ovmf_debug_log_table, size, MEMREMAP_WB);
drivers/firmware/efi/ovmf-debug-log.c
92
if (!hdr) {
drivers/firmware/efi/ovmf-debug-log.c
96
logbuf = (void *)hdr + hdr->hdr_size;
drivers/firmware/efi/ovmf-debug-log.c
97
logbufsize = hdr->log_size;
drivers/firmware/google/memconsole-x86-legacy.c
102
struct biosmemcon_ebda *hdr = phys_to_virt(address + cur);
drivers/firmware/google/memconsole-x86-legacy.c
105
if (hdr->signature == BIOS_MEMCONSOLE_V1_MAGIC) {
drivers/firmware/google/memconsole-x86-legacy.c
106
found_v1_header(hdr);
drivers/firmware/google/memconsole-x86-legacy.c
111
if (hdr->signature == BIOS_MEMCONSOLE_V2_MAGIC) {
drivers/firmware/google/memconsole-x86-legacy.c
112
found_v2_header(hdr);
drivers/firmware/google/memconsole-x86-legacy.c
52
static void found_v1_header(struct biosmemcon_ebda *hdr)
drivers/firmware/google/memconsole-x86-legacy.c
55
hdr);
drivers/firmware/google/memconsole-x86-legacy.c
57
hdr->v1.buffer_addr, hdr->v1.start,
drivers/firmware/google/memconsole-x86-legacy.c
58
hdr->v1.end, hdr->v1.num_chars);
drivers/firmware/google/memconsole-x86-legacy.c
60
memconsole_baseaddr = phys_to_virt(hdr->v1.buffer_addr);
drivers/firmware/google/memconsole-x86-legacy.c
61
memconsole_length = hdr->v1.num_chars;
drivers/firmware/google/memconsole-x86-legacy.c
65
static void found_v2_header(struct biosmemcon_ebda *hdr)
drivers/firmware/google/memconsole-x86-legacy.c
68
hdr);
drivers/firmware/google/memconsole-x86-legacy.c
70
hdr->v2.buffer_addr, hdr->v2.start,
drivers/firmware/google/memconsole-x86-legacy.c
71
hdr->v2.end, hdr->v2.num_bytes);
drivers/firmware/google/memconsole-x86-legacy.c
73
memconsole_baseaddr = phys_to_virt(hdr->v2.buffer_addr + hdr->v2.start);
drivers/firmware/google/memconsole-x86-legacy.c
74
memconsole_length = hdr->v2.end - hdr->v2.start;
drivers/firmware/imx/imx-scu-irq.c
120
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/firmware/imx/imx-scu-irq.c
123
hdr->ver = IMX_SC_RPC_VERSION;
drivers/firmware/imx/imx-scu-irq.c
124
hdr->svc = IMX_SC_RPC_SVC_IRQ;
drivers/firmware/imx/imx-scu-irq.c
125
hdr->func = IMX_SC_IRQ_FUNC_STATUS;
drivers/firmware/imx/imx-scu-irq.c
126
hdr->size = 2;
drivers/firmware/imx/imx-scu-irq.c
145
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/firmware/imx/imx-scu-irq.c
151
hdr->ver = IMX_SC_RPC_VERSION;
drivers/firmware/imx/imx-scu-irq.c
152
hdr->svc = IMX_SC_RPC_SVC_IRQ;
drivers/firmware/imx/imx-scu-irq.c
153
hdr->func = IMX_SC_IRQ_FUNC_ENABLE;
drivers/firmware/imx/imx-scu-irq.c
154
hdr->size = 3;
drivers/firmware/imx/imx-scu-irq.c
25
struct imx_sc_rpc_msg hdr;
drivers/firmware/imx/imx-scu-irq.c
39
struct imx_sc_rpc_msg hdr;
drivers/firmware/imx/imx-scu-soc.c
16
struct imx_sc_rpc_msg hdr;
drivers/firmware/imx/imx-scu-soc.c
29
struct imx_sc_rpc_msg hdr;
drivers/firmware/imx/imx-scu-soc.c
37
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/firmware/imx/imx-scu-soc.c
40
hdr->ver = IMX_SC_RPC_VERSION;
drivers/firmware/imx/imx-scu-soc.c
41
hdr->svc = IMX_SC_RPC_SVC_MISC;
drivers/firmware/imx/imx-scu-soc.c
42
hdr->func = IMX_SC_MISC_FUNC_UNIQUE_ID;
drivers/firmware/imx/imx-scu-soc.c
43
hdr->size = 1;
drivers/firmware/imx/imx-scu-soc.c
61
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/firmware/imx/imx-scu-soc.c
64
hdr->ver = IMX_SC_RPC_VERSION;
drivers/firmware/imx/imx-scu-soc.c
65
hdr->svc = IMX_SC_RPC_SVC_MISC;
drivers/firmware/imx/imx-scu-soc.c
66
hdr->func = IMX_SC_MISC_FUNC_GET_CONTROL;
drivers/firmware/imx/imx-scu-soc.c
67
hdr->size = 3;
drivers/firmware/imx/imx-scu.c
117
struct imx_sc_rpc_msg *hdr;
drivers/firmware/imx/imx-scu.c
128
hdr = msg;
drivers/firmware/imx/imx-scu.c
129
sc_ipc->rx_size = hdr->size;
drivers/firmware/imx/imx-scu.c
141
hdr = msg;
drivers/firmware/imx/imx-scu.c
142
sc_ipc->rx_size = hdr->size;
drivers/firmware/imx/imx-scu.c
161
struct imx_sc_rpc_msg hdr = *(struct imx_sc_rpc_msg *)msg;
drivers/firmware/imx/imx-scu.c
169
if (hdr.size > IMX_SC_RPC_MAX_MSG)
drivers/firmware/imx/imx-scu.c
172
dev_dbg(sc_ipc->dev, "RPC SVC %u FUNC %u SIZE %u\n", hdr.svc,
drivers/firmware/imx/imx-scu.c
173
hdr.func, hdr.size);
drivers/firmware/imx/imx-scu.c
175
size = sc_ipc->fast_ipc ? 1 : hdr.size;
drivers/firmware/imx/imx-scu.c
207
struct imx_sc_rpc_msg *hdr;
drivers/firmware/imx/imx-scu.c
237
hdr = msg;
drivers/firmware/imx/imx-scu.c
238
ret = hdr->func;
drivers/firmware/imx/misc.c
123
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/firmware/imx/misc.c
125
hdr->ver = IMX_SC_RPC_VERSION;
drivers/firmware/imx/misc.c
126
hdr->svc = IMX_SC_RPC_SVC_PM;
drivers/firmware/imx/misc.c
127
hdr->func = IMX_SC_PM_FUNC_CPU_START;
drivers/firmware/imx/misc.c
128
hdr->size = 4;
drivers/firmware/imx/misc.c
15
struct imx_sc_rpc_msg hdr;
drivers/firmware/imx/misc.c
22
struct imx_sc_rpc_msg hdr;
drivers/firmware/imx/misc.c
30
struct imx_sc_rpc_msg hdr;
drivers/firmware/imx/misc.c
36
struct imx_sc_rpc_msg hdr;
drivers/firmware/imx/misc.c
55
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/firmware/imx/misc.c
57
hdr->ver = IMX_SC_RPC_VERSION;
drivers/firmware/imx/misc.c
58
hdr->svc = (uint8_t)IMX_SC_RPC_SVC_MISC;
drivers/firmware/imx/misc.c
59
hdr->func = (uint8_t)IMX_SC_MISC_FUNC_SET_CONTROL;
drivers/firmware/imx/misc.c
60
hdr->size = 4;
drivers/firmware/imx/misc.c
86
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/firmware/imx/misc.c
89
hdr->ver = IMX_SC_RPC_VERSION;
drivers/firmware/imx/misc.c
90
hdr->svc = (uint8_t)IMX_SC_RPC_SVC_MISC;
drivers/firmware/imx/misc.c
91
hdr->func = (uint8_t)IMX_SC_MISC_FUNC_GET_CONTROL;
drivers/firmware/imx/misc.c
92
hdr->size = 3;
drivers/firmware/imx/rm.c
12
struct imx_sc_rpc_msg hdr;
drivers/firmware/imx/rm.c
27
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/firmware/imx/rm.c
29
hdr->ver = IMX_SC_RPC_VERSION;
drivers/firmware/imx/rm.c
30
hdr->svc = IMX_SC_RPC_SVC_RM;
drivers/firmware/imx/rm.c
31
hdr->func = IMX_SC_RM_FUNC_IS_RESOURCE_OWNED;
drivers/firmware/imx/rm.c
32
hdr->size = 2;
drivers/firmware/imx/rm.c
43
return hdr->func;
drivers/firmware/imx/rm.c
48
struct imx_sc_rpc_msg hdr;
drivers/firmware/imx/rm.c
71
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/firmware/imx/rm.c
74
hdr->ver = IMX_SC_RPC_VERSION;
drivers/firmware/imx/rm.c
75
hdr->svc = IMX_SC_RPC_SVC_RM;
drivers/firmware/imx/rm.c
76
hdr->func = IMX_SC_RM_FUNC_GET_RESOURCE_OWNER;
drivers/firmware/imx/rm.c
77
hdr->size = 2;
drivers/firmware/iscsi_ibft.c
109
struct ibft_hdr hdr;
drivers/firmware/iscsi_ibft.c
119
struct ibft_hdr hdr;
drivers/firmware/iscsi_ibft.c
135
struct ibft_hdr hdr;
drivers/firmware/iscsi_ibft.c
177
struct ibft_hdr *hdr;
drivers/firmware/iscsi_ibft.c
229
static int ibft_verify_hdr(char *t, struct ibft_hdr *hdr, int id, int length)
drivers/firmware/iscsi_ibft.c
231
if (hdr->id != id) {
drivers/firmware/iscsi_ibft.c
234
"found %d instead!\n", t, id, hdr->id);
drivers/firmware/iscsi_ibft.c
237
if (length && hdr->length != length) {
drivers/firmware/iscsi_ibft.c
240
"found %d instead!\n", t, length, hdr->length);
drivers/firmware/iscsi_ibft.c
262
str += sprintf(str, "%d\n", initiator->hdr.index);
drivers/firmware/iscsi_ibft.c
265
str += sprintf(str, "%d\n", initiator->hdr.flags);
drivers/firmware/iscsi_ibft.c
304
str += sprintf(str, "%d\n", nic->hdr.index);
drivers/firmware/iscsi_ibft.c
307
str += sprintf(str, "%d\n", nic->hdr.flags);
drivers/firmware/iscsi_ibft.c
367
str += sprintf(str, "%d\n", tgt->hdr.index);
drivers/firmware/iscsi_ibft.c
370
str += sprintf(str, "%d\n", tgt->hdr.flags);
drivers/firmware/iscsi_ibft.c
629
struct ibft_hdr *hdr)
drivers/firmware/iscsi_ibft.c
633
struct ibft_nic *nic = (struct ibft_nic *)hdr;
drivers/firmware/iscsi_ibft.c
642
ibft_kobj->hdr = hdr;
drivers/firmware/iscsi_ibft.c
644
switch (hdr->id) {
drivers/firmware/iscsi_ibft.c
646
rc = ibft_verify_hdr("initiator", hdr, id_initiator,
drivers/firmware/iscsi_ibft.c
651
boot_kobj = iscsi_boot_create_initiator(boot_kset, hdr->index,
drivers/firmware/iscsi_ibft.c
662
rc = ibft_verify_hdr("ethernet", hdr, id_nic,
drivers/firmware/iscsi_ibft.c
667
boot_kobj = iscsi_boot_create_ethernet(boot_kset, hdr->index,
drivers/firmware/iscsi_ibft.c
678
rc = ibft_verify_hdr("target", hdr, id_target,
drivers/firmware/iscsi_ibft.c
683
boot_kobj = iscsi_boot_create_target(boot_kset, hdr->index,
drivers/firmware/iscsi_ibft.c
701
"Report this bug to %.6s!\n", hdr->id,
drivers/firmware/iscsi_ibft.c
713
if (hdr->id == id_nic) {
drivers/firmware/iscsi_ibft.c
752
end = (void *)control + control->hdr.length;
drivers/firmware/iscsi_ibft.c
757
rc |= ((control->hdr.index) ? -ENODEV : 0);
drivers/firmware/iscsi_ibft.c
758
rc |= ((control->hdr.length < sizeof(*control)) ? -ENODEV : 0);
drivers/firmware/iscsi_ibft.c
781
ibft_kobj->hdr = NULL; /*for ibft_unregister*/
drivers/firmware/iscsi_ibft.c
804
if (ibft_kobj->hdr && ibft_kobj->hdr->id == id_nic)
drivers/firmware/iscsi_ibft.c
98
struct ibft_hdr hdr;
drivers/firmware/tegra/ivc.c
71
#define tegra_ivc_header_read_field(hdr, field) \
drivers/firmware/tegra/ivc.c
72
iosys_map_rd_field(hdr, 0, struct tegra_ivc_header, field)
drivers/firmware/tegra/ivc.c
74
#define tegra_ivc_header_write_field(hdr, field, value) \
drivers/firmware/tegra/ivc.c
75
iosys_map_wr_field(hdr, 0, struct tegra_ivc_header, field, value)
drivers/firmware/thead,th1520-aon.c
112
struct th1520_aon_rpc_msg_hdr *hdr = msg;
drivers/firmware/thead,th1520-aon.c
118
RPC_SET_VER(hdr, TH1520_AON_RPC_VERSION);
drivers/firmware/thead,th1520-aon.c
119
RPC_SET_SVC_ID(hdr, hdr->svc);
drivers/firmware/thead,th1520-aon.c
120
RPC_SET_SVC_FLAG_MSG_TYPE(hdr, RPC_SVC_MSG_TYPE_DATA);
drivers/firmware/thead,th1520-aon.c
121
RPC_SET_SVC_FLAG_ACK_TYPE(hdr, RPC_SVC_MSG_NEED_ACK);
drivers/firmware/thead,th1520-aon.c
166
struct th1520_aon_rpc_msg_hdr *hdr = &msg.hdr;
drivers/firmware/thead,th1520-aon.c
169
hdr->svc = TH1520_AON_RPC_SVC_PM;
drivers/firmware/thead,th1520-aon.c
170
hdr->func = TH1520_AON_PM_FUNC_SET_RESOURCE_POWER_MODE;
drivers/firmware/thead,th1520-aon.c
171
hdr->size = TH1520_AON_RPC_MSG_NUM;
drivers/firmware/thead,th1520-aon.c
28
struct th1520_aon_rpc_msg_hdr hdr;
drivers/firmware/thead,th1520-aon.c
80
struct th1520_aon_rpc_msg_hdr *hdr =
drivers/firmware/thead,th1520-aon.c
82
u8 recv_size = sizeof(struct th1520_aon_rpc_msg_hdr) + hdr->size;
drivers/firmware/ti_sci.c
218
struct ti_sci_msg_hdr *hdr)
drivers/firmware/ti_sci.c
221
hdr->type, hdr->host, hdr->seq, hdr->flags);
drivers/firmware/ti_sci.c
241
struct ti_sci_msg_hdr *hdr = (struct ti_sci_msg_hdr *)mbox_msg->buf;
drivers/firmware/ti_sci.c
245
xfer_id = hdr->seq;
drivers/firmware/ti_sci.c
262
ti_sci_dump_header_dbg(dev, hdr);
drivers/firmware/ti_sci.c
268
ti_sci_dump_header_dbg(dev, hdr);
drivers/firmware/ti_sci.c
272
ti_sci_dump_header_dbg(dev, hdr);
drivers/firmware/ti_sci.c
302
struct ti_sci_msg_hdr *hdr;
drivers/firmware/ti_sci.c
312
rx_message_size < sizeof(*hdr) || tx_message_size < sizeof(*hdr))
drivers/firmware/ti_sci.c
343
hdr = (struct ti_sci_msg_hdr *)xfer->tx_message.buf;
drivers/firmware/ti_sci.c
351
hdr->seq = xfer_id;
drivers/firmware/ti_sci.c
352
hdr->type = msg_type;
drivers/firmware/ti_sci.c
353
hdr->host = info->host_id;
drivers/firmware/ti_sci.c
354
hdr->flags = msg_flags;
drivers/firmware/ti_sci.c
370
struct ti_sci_msg_hdr *hdr;
drivers/firmware/ti_sci.c
373
hdr = (struct ti_sci_msg_hdr *)xfer->tx_message.buf;
drivers/firmware/ti_sci.c
374
xfer_id = hdr->seq;
drivers/firmware/ti_sci.c
401
struct ti_sci_msg_hdr *hdr = (struct ti_sci_msg_hdr *)xfer->tx_message.buf;
drivers/firmware/ti_sci.c
402
bool response_expected = !!(hdr->flags & (TI_SCI_FLAG_REQ_ACK_ON_PROCESSED |
drivers/firmware/ti_sci.c
500
struct ti_sci_msg_hdr *hdr = r;
drivers/firmware/ti_sci.c
502
return hdr->flags & TI_SCI_FLAG_RESP_GENERIC_ACK ? true : false;
drivers/firmware/ti_sci.h
1108
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
1231
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
126
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
1399
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
141
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
1433
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
1446
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
1460
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
1487
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
1510
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
1525
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
1542
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
159
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
196
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
215
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
233
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
257
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
304
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
330
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
348
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
373
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
395
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
412
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
433
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
451
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
481
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
499
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
540
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
564
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
578
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
598
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
622
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
640
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
668
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
693
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
716
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
735
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
778
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
833
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
871
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
899
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
943
struct ti_sci_msg_hdr hdr;
drivers/firmware/ti_sci.h
990
struct ti_sci_msg_hdr hdr;
drivers/fpga/dfl.c
1985
struct dfl_fpga_irq_set hdr;
drivers/fpga/dfl.c
1992
if (copy_from_user(&hdr, (void __user *)arg, sizeof(hdr)))
drivers/fpga/dfl.c
1995
if (!hdr.count || (hdr.start + hdr.count > feature->nr_irqs) ||
drivers/fpga/dfl.c
1996
(hdr.start + hdr.count < hdr.start))
drivers/fpga/dfl.c
1999
fds = memdup_array_user((void __user *)(arg + sizeof(hdr)),
drivers/fpga/dfl.c
2000
hdr.count, sizeof(s32));
drivers/fpga/dfl.c
2005
ret = dfl_fpga_set_irq_triggers(feature, hdr.start, hdr.count, fds);
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
376
struct acpi_table_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
381
if (!ACPI_SUCCESS(acpi_get_table("VFCT", 1, &hdr)))
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
383
tbl_size = hdr->length;
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
389
vfct = (UEFI_ACPI_VFCT *)hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
393
GOP_VBIOS_CONTENT *vbios = (GOP_VBIOS_CONTENT *)((char *)hdr + offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
249
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
376
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
377
amdgpu_ucode_print_smc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
378
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
379
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
380
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
382
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
100
hdr->notify_type = MCE;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
107
__inc_entry_length(hdr, HDR_LEN);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
142
struct cper_hdr *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
149
section_desc = (struct cper_sec_desc *)((uint8_t *)hdr + SEC_DESC_OFFSET(idx));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
150
section = (struct cper_sec_crashdump_fatal *)((uint8_t *)hdr +
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
151
FATAL_SEC_OFFSET(hdr->sec_cnt, idx));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
155
FATAL_SEC_OFFSET(hdr->sec_cnt, idx));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
161
__inc_entry_length(hdr, SEC_DESC_LEN + FATAL_SEC_LEN);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
167
struct cper_hdr *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
178
section_desc = (struct cper_sec_desc *)((uint8_t *)hdr + SEC_DESC_OFFSET(idx));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
179
section = (struct cper_sec_nonstd_err *)((uint8_t *)hdr +
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
180
NONSTD_SEC_OFFSET(hdr->sec_cnt, idx));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
184
NONSTD_SEC_OFFSET(hdr->sec_cnt, idx));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
188
section->hdr.valid_bits.err_info_cnt = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
189
section->hdr.valid_bits.err_context_cnt = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
198
__inc_entry_length(hdr, SEC_DESC_LEN + NONSTD_SEC_LEN);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
204
struct cper_hdr *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
211
section_desc = (struct cper_sec_desc *)((uint8_t *)hdr + SEC_DESC_OFFSET(idx));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
212
section = (struct cper_sec_nonstd_err *)((uint8_t *)hdr +
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
213
NONSTD_SEC_OFFSET(hdr->sec_cnt, idx));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
217
NONSTD_SEC_OFFSET(hdr->sec_cnt, idx));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
219
section->hdr.valid_bits.err_info_cnt = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
220
section->hdr.valid_bits.err_context_cnt = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
249
__inc_entry_length(hdr, SEC_DESC_LEN + NONSTD_SEC_LEN);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
258
struct cper_hdr *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
280
hdr = kzalloc(size, GFP_KERNEL);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
281
if (!hdr)
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
285
hdr->sec_cnt = section_count;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
287
return hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
35
static void __inc_entry_length(struct cper_hdr *hdr, uint32_t size)
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
37
hdr->record_length += size;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
57
struct cper_hdr *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
63
hdr->signature[0] = 'C';
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
64
hdr->signature[1] = 'P';
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
65
hdr->signature[2] = 'E';
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
66
hdr->signature[3] = 'R';
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
67
hdr->revision = CPER_HDR_REV_1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
68
hdr->signature_end = 0xFFFFFFFF;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
69
hdr->error_severity = sev;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
71
hdr->valid_bits.platform_id = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
72
hdr->valid_bits.timestamp = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
74
amdgpu_cper_get_timestamp(&hdr->timestamp);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
81
memcpy(hdr->record_id, record_id, 8);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
83
snprintf(hdr->platform_id, 16, "0x%04X:0x%04X",
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
86
snprintf(hdr->creator_id, 16, "%s", CPER_CREATOR_ID_AMDGPU);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
90
hdr->notify_type = BOOT;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
94
hdr->notify_type = MCE;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
98
hdr->notify_type = CMC;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h
71
struct cper_hdr *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h
75
struct cper_hdr *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h
79
struct cper_hdr *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.h
85
struct cper_hdr *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
2483
const struct gpu_info_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
2529
hdr = (const struct gpu_info_firmware_header_v1_0 *)adev->firmware.gpu_info_fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
2530
amdgpu_ucode_print_gpu_info_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
2532
switch (hdr->version_major) {
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
2537
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
2563
if (hdr->version_minor >= 1) {
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
2566
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
2578
if (hdr->version_minor == 2) {
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
2581
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
2588
"Unsupported gpu_info table %d\n", hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
73
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
89
hdr = (const struct common_firmware_header *)adev->isp.fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c
96
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2863
struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2874
hdr = (struct common_firmware_header *)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2876
amdgpu_ucode_print_sdma_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2879
hdr = (struct common_firmware_header *)adev->gfx.ce_fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2880
amdgpu_ucode_print_gfx_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2883
hdr = (struct common_firmware_header *)adev->gfx.pfp_fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2884
amdgpu_ucode_print_gfx_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2887
hdr = (struct common_firmware_header *)adev->gfx.me_fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2888
amdgpu_ucode_print_gfx_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2891
hdr = (struct common_firmware_header *)adev->gfx.mec_fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2892
amdgpu_ucode_print_gfx_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2897
hdr = (struct common_firmware_header *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2898
amdgpu_ucode_print_rlc_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2901
hdr = (struct common_firmware_header *)adev->pm.fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2902
amdgpu_ucode_print_smc_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
3969
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
3982
hdr = (const struct common_firmware_header *)adev->psp.ta_fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
3983
switch (le16_to_cpu(hdr->header_version_major)) {
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c
38
const struct common_firmware_header *hdr =
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c
41
return hdr->ucode_version;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1519
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1530
res = amdgpu_ras_smu_get_table_version(adev, &(hdr->version));
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1556
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1589
__decode_table_header_from_buf(hdr, buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1591
if (hdr->header != RAS_TABLE_HDR_VAL &&
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1592
hdr->header != RAS_TABLE_HDR_BAD) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1597
switch (hdr->version) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1600
control->ras_num_recs = RAS_NUM_RECS_V2_1(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1605
control->ras_num_recs = RAS_NUM_RECS(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1612
hdr->version);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1623
control->ras_fri = RAS_OFFSET_TO_INDEX(control, hdr->first_rec_offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1673
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1692
if (hdr->header == RAS_TABLE_HDR_VAL) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1697
if (hdr->version >= RAS_TABLE_VER_V2_1) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1717
} else if (hdr->header == RAS_TABLE_HDR_BAD &&
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
1719
if (hdr->version >= RAS_TABLE_VER_V2_1) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
240
__encode_table_header_to_buf(struct amdgpu_ras_eeprom_table_header *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
245
pp[0] = cpu_to_le32(hdr->header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
246
pp[1] = cpu_to_le32(hdr->version);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
247
pp[2] = cpu_to_le32(hdr->first_rec_offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
248
pp[3] = cpu_to_le32(hdr->tbl_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
249
pp[4] = cpu_to_le32(hdr->checksum);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
253
__decode_table_header_from_buf(struct amdgpu_ras_eeprom_table_header *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
258
hdr->header = le32_to_cpu(pp[0]);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
259
hdr->version = le32_to_cpu(pp[1]);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
260
hdr->first_rec_offset = le32_to_cpu(pp[2]);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
261
hdr->tbl_size = le32_to_cpu(pp[3]);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
262
hdr->checksum = le32_to_cpu(pp[4]);
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
396
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
401
csum = -hdr->checksum;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
403
hh = (void *) &hdr->header;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
409
hdr->header = header;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
410
hdr->checksum = csum;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
420
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
424
hdr->version = RAS_TABLE_VER_V2_1;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
428
hdr->version = RAS_TABLE_VER_V3;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
431
hdr->version = RAS_TABLE_VER_V1;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
446
struct amdgpu_ras_eeprom_table_header *hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
456
hdr->header = RAS_TABLE_HDR_VAL;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
459
if (hdr->version >= RAS_TABLE_VER_V2_1) {
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
460
hdr->first_rec_offset = RAS_RECORD_START_V2_1;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
461
hdr->tbl_size = RAS_TABLE_HEADER_SIZE +
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
475
hdr->first_rec_offset = RAS_RECORD_START;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
476
hdr->tbl_size = RAS_TABLE_HEADER_SIZE;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
483
if (hdr->version >= RAS_TABLE_VER_V2_1)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
486
hdr->checksum = csum;
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c
488
if (!res && hdr->version > RAS_TABLE_VER_V1)
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
203
const struct gfx_firmware_header_v1_0 *hdr =
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
207
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
208
table_offset = le32_to_cpu(hdr->jt_offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
209
table_size = le32_to_cpu(hdr->jt_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
211
const struct gfx_firmware_header_v1_0 *hdr =
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
215
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
216
table_offset = le32_to_cpu(hdr->jt_offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
217
table_size = le32_to_cpu(hdr->jt_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
219
const struct gfx_firmware_header_v1_0 *hdr =
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
223
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
224
table_offset = le32_to_cpu(hdr->jt_offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
225
table_size = le32_to_cpu(hdr->jt_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
227
const struct gfx_firmware_header_v1_0 *hdr =
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
231
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
232
table_offset = le32_to_cpu(hdr->jt_offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
233
table_size = le32_to_cpu(hdr->jt_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
235
const struct gfx_firmware_header_v1_0 *hdr =
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
239
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
240
table_offset = le32_to_cpu(hdr->jt_offset);
drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c
241
table_size = le32_to_cpu(hdr->jt_size);
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
154
const struct sdma_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
164
hdr = (const struct sdma_firmware_header_v1_0 *)sdma_inst->fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
165
sdma_inst->fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c
166
sdma_inst->feature_version = le32_to_cpu(hdr->ucode_feature_version);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
109
void amdgpu_ucode_print_gfx_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
111
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
112
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
115
amdgpu_ucode_print_common_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
119
container_of(hdr, struct gfx_firmware_header_v1_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
127
container_of(hdr, struct gfx_firmware_header_v2_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
136
void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
138
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
139
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
142
amdgpu_ucode_print_common_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
146
container_of(hdr, struct rlc_firmware_header_v1_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
160
container_of(hdr, struct rlc_firmware_header_v2_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
321
void amdgpu_ucode_print_sdma_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
323
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
324
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
327
amdgpu_ucode_print_common_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
331
container_of(hdr, struct sdma_firmware_header_v1_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
346
container_of(hdr, struct sdma_firmware_header_v2_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
357
container_of(hdr, struct sdma_firmware_header_v3_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
367
void amdgpu_ucode_print_psp_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
369
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
370
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
375
amdgpu_ucode_print_common_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
379
container_of(hdr, struct psp_firmware_header_v1_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
38
static void amdgpu_ucode_print_common_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
40
DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
41
DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
42
DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major));
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
43
DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor));
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
439
container_of(hdr, struct psp_firmware_header_v2_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
44
DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major));
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
45
DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor));
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
46
DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version));
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
47
DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
49
le32_to_cpu(hdr->ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
50
DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32));
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
514
void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
516
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
517
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
520
amdgpu_ucode_print_common_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
524
container_of(hdr, struct gpu_info_firmware_header_v1_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
53
void amdgpu_ucode_print_mc_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
537
const struct common_firmware_header *hdr =
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
540
if (fw->size == le32_to_cpu(hdr->size_bytes))
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
546
bool amdgpu_ucode_hdr_version(union amdgpu_firmware_header *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
549
if ((hdr->common.header_version_major == hdr_major) &&
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
55
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
550
(hdr->common.header_version_minor == hdr_minor))
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
56
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
59
amdgpu_ucode_print_common_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
63
container_of(hdr, struct mc_firmware_header_v1_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
74
void amdgpu_ucode_print_smc_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
76
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
77
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
83
amdgpu_ucode_print_common_hdr(hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
86
v1_0_hdr = container_of(hdr, struct smc_firmware_header_v1_0, header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
91
v2_0_hdr = container_of(hdr, struct smc_firmware_header_v2_0, v1_0.header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
96
v2_1_hdr = container_of(hdr, struct smc_firmware_header_v2_1, v1_0.header);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
625
void amdgpu_ucode_print_mc_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
626
void amdgpu_ucode_print_smc_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
627
void amdgpu_ucode_print_imu_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
628
void amdgpu_ucode_print_gfx_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
629
void amdgpu_ucode_print_rlc_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
630
void amdgpu_ucode_print_sdma_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
631
void amdgpu_ucode_print_psp_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
632
void amdgpu_ucode_print_gpu_info_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
637
bool amdgpu_ucode_hdr_version(union amdgpu_firmware_header *hdr,
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
188
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
274
hdr = (const struct common_firmware_header *)adev->uvd.fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
275
family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
280
version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
281
version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
306
dec_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
307
enc_minor = (le32_to_cpu(hdr->ucode_version) >> 24) & 0x3f;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
308
enc_major = (le32_to_cpu(hdr->ucode_version) >> 30) & 0x3;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
314
adev->uvd.fw_version = le32_to_cpu(hdr->ucode_version);
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
320
bo_size += AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
499
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
502
hdr = (const struct common_firmware_header *)adev->uvd.fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
504
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
507
le32_to_cpu(hdr->ucode_size_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
510
size -= le32_to_cpu(hdr->ucode_size_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
511
ptr += le32_to_cpu(hdr->ucode_size_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
169
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
186
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
188
ucode_version = le32_to_cpu(hdr->ucode_version);
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
329
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
336
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
337
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
1129
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
1139
hdr = (const struct common_firmware_header *)adev->vcn.inst[i].fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
1149
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
133
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
170
hdr = (const struct common_firmware_header *)adev->vcn.inst[i].fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
171
adev->vcn.inst[i].fw_version = le32_to_cpu(hdr->ucode_version);
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
172
adev->vcn.fw_version = le32_to_cpu(hdr->ucode_version);
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
180
fw_check = (le32_to_cpu(hdr->ucode_version) >> 20) & 0xf;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
184
fw_rev = le32_to_cpu(hdr->ucode_version) & 0xfff;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
185
enc_minor = (le32_to_cpu(hdr->ucode_version) >> 12) & 0xff;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
187
dec_ver = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xf;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
188
vep = (le32_to_cpu(hdr->ucode_version) >> 28) & 0xf;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
195
family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
196
version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
197
version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
204
bo_size += AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
390
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
393
hdr = (const struct common_firmware_header *)adev->vcn.inst[i].fw->data;
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
395
offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
399
le32_to_cpu(hdr->ucode_size_bytes));
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
402
size -= le32_to_cpu(hdr->ucode_size_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
403
ptr += le32_to_cpu(hdr->ucode_size_bytes);
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
70
#define IS_SRIOV_CRIT_REGN_ENTRY_VALID(hdr, id) ((hdr)->valid_tables & (1 << (id)))
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
530
const struct sdma_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
541
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
542
amdgpu_ucode_print_sdma_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
543
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
544
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
545
adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
549
(adev->sdma.instance[i].fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
5533
const struct rlc_firmware_header_v2_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
5540
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
5541
amdgpu_ucode_print_rlc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
5544
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
5545
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2321
const struct rlc_firmware_header_v2_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2325
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2327
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2328
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2342
const struct rlc_firmware_header_v2_2 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2347
hdr = (const struct rlc_firmware_header_v2_2 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2350
le32_to_cpu(hdr->rlc_iram_ucode_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2351
fw_size = le32_to_cpu(hdr->rlc_iram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2365
le32_to_cpu(hdr->rlc_dram_ucode_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2366
fw_size = le32_to_cpu(hdr->rlc_dram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2386
const struct rlc_firmware_header_v2_3 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2391
hdr = (const struct rlc_firmware_header_v2_3 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2394
le32_to_cpu(hdr->rlcp_ucode_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2395
fw_size = le32_to_cpu(hdr->rlcp_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2413
le32_to_cpu(hdr->rlcv_ucode_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2414
fw_size = le32_to_cpu(hdr->rlcv_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2434
const struct rlc_firmware_header_v2_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2441
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2442
amdgpu_ucode_print_rlc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2444
version_major = le16_to_cpu(hdr->header.header_version_major);
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
2445
version_minor = le16_to_cpu(hdr->header.header_version_minor);
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
1980
const struct rlc_firmware_header_v2_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
1984
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
1986
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
1987
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2001
const struct rlc_firmware_header_v2_2 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2006
hdr = (const struct rlc_firmware_header_v2_2 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2009
le32_to_cpu(hdr->rlc_iram_ucode_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2010
fw_size = le32_to_cpu(hdr->rlc_iram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2024
le32_to_cpu(hdr->rlc_dram_ucode_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2025
fw_size = le32_to_cpu(hdr->rlc_dram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2045
const struct rlc_firmware_header_v2_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2052
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2053
amdgpu_ucode_print_rlc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2055
version_major = le16_to_cpu(hdr->header.header_version_major);
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
2056
version_minor = le16_to_cpu(hdr->header.header_version_minor);
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1623
const struct rlc_firmware_header_v2_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1627
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1629
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1630
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1648
const struct rlc_firmware_header_v2_2 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1653
hdr = (const struct rlc_firmware_header_v2_2 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1656
le32_to_cpu(hdr->rlc_iram_ucode_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1657
fw_size = le32_to_cpu(hdr->rlc_iram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1673
le32_to_cpu(hdr->rlc_dram_ucode_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1674
fw_size = le32_to_cpu(hdr->rlc_dram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1698
const struct rlc_firmware_header_v2_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1705
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1706
amdgpu_ucode_print_rlc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1708
version_major = le16_to_cpu(hdr->header.header_version_major);
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
1709
version_minor = le16_to_cpu(hdr->header.header_version_minor);
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
2505
const struct rlc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
2528
hdr = (const struct rlc_firmware_header_v1_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
2529
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
2531
(adev->gfx.rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
2533
amdgpu_ucode_print_rlc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
3410
const struct rlc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
3418
hdr = (const struct rlc_firmware_header_v1_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
3419
amdgpu_ucode_print_rlc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
3420
adev->gfx.rlc_fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
3422
hdr->ucode_feature_version);
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
3448
(adev->gfx.rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
3449
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
3172
const struct rlc_firmware_header_v2_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
3179
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
3180
amdgpu_ucode_print_rlc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
3183
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
3184
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
1603
const struct rlc_firmware_header_v2_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
1610
hdr = (const struct rlc_firmware_header_v2_0 *)adev->gfx.rlc_fw->data;
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
1611
amdgpu_ucode_print_rlc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
1614
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c
1615
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
151
const struct mc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
156
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
158
amdgpu_ucode_print_mc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
160
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
161
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
163
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
164
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
166
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
179
const struct mc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
188
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
189
amdgpu_ucode_print_mc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
191
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
192
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
194
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
195
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
197
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
281
const struct mc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
298
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
299
amdgpu_ucode_print_mc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
301
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
302
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
304
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
305
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
307
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
350
const struct mc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
367
hdr = (const struct mc_firmware_header_v1_0 *)adev->gmc.fw->data;
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
368
amdgpu_ucode_print_mc_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
370
adev->gmc.fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
371
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
373
(adev->gmc.fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
374
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
376
(adev->gmc.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
102
hdr = (const struct imu_firmware_header_v1_0 *)adev->gfx.imu_fw->data;
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
106
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
107
fw_size = le32_to_cpu(hdr->imu_iram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
117
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
118
le32_to_cpu(hdr->imu_iram_ucode_size_bytes));
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
119
fw_size = le32_to_cpu(hdr->imu_dram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c
95
const struct imu_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/imu_v12_0.c
100
fw_size = le32_to_cpu(hdr->imu_iram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/imu_v12_0.c
110
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
drivers/gpu/drm/amd/amdgpu/imu_v12_0.c
111
le32_to_cpu(hdr->imu_iram_ucode_size_bytes));
drivers/gpu/drm/amd/amdgpu/imu_v12_0.c
112
fw_size = le32_to_cpu(hdr->imu_dram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/imu_v12_0.c
89
const struct imu_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/imu_v12_0.c
96
hdr = (const struct imu_firmware_header_v1_0 *)adev->gfx.imu_fw->data;
drivers/gpu/drm/amd/amdgpu/imu_v12_0.c
99
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/imu_v12_1.c
105
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
drivers/gpu/drm/amd/amdgpu/imu_v12_1.c
106
le32_to_cpu(hdr->imu_iram_ucode_size_bytes));
drivers/gpu/drm/amd/amdgpu/imu_v12_1.c
107
fw_size = le32_to_cpu(hdr->imu_dram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/imu_v12_1.c
84
const struct imu_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/imu_v12_1.c
88
hdr = (const struct imu_firmware_header_v1_0 *)adev->gfx.imu_fw->data;
drivers/gpu/drm/amd/amdgpu/imu_v12_1.c
90
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/imu_v12_1.c
91
fw_size = le32_to_cpu(hdr->imu_iram_ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
133
const struct sdma_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
156
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
157
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
158
adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
273
const struct sdma_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
316
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
317
adev->sdma.instance[i].fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
318
adev->sdma.instance[i].feature_version = le32_to_cpu(hdr->ucode_feature_version);
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
1341
const struct sdma_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
1353
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
1354
amdgpu_ucode_print_sdma_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
1355
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
1359
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
923
const struct sdma_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
935
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
936
amdgpu_ucode_print_sdma_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
937
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
941
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
885
const struct sdma_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
897
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
898
amdgpu_ucode_print_sdma_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
899
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
903
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
732
const struct sdma_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
744
hdr = (const struct sdma_firmware_header_v1_0 *)adev->sdma.instance[i].fw->data;
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
745
amdgpu_ucode_print_sdma_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
746
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
750
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
668
const struct sdma_firmware_header_v2_0 *hdr;
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
686
hdr = (const struct sdma_firmware_header_v2_0 *)adev->sdma.instance[0].fw->data;
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
687
amdgpu_ucode_print_sdma_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
688
fw_size = le32_to_cpu(hdr->ctx_jt_offset + hdr->ctx_jt_size) / 4;
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
692
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
703
fw_size = le32_to_cpu(hdr->ctl_jt_offset + hdr->ctl_jt_size) / 4;
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
707
le32_to_cpu(hdr->ctl_ucode_offset));
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
720
hdr = (const struct sdma_firmware_header_v2_0 *)adev->sdma.instance[0].fw->data;
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
721
amdgpu_ucode_print_sdma_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
722
fw_size = le32_to_cpu(hdr->ctx_jt_offset + hdr->ctx_jt_size) / 4;
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
726
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
739
fw_size = le32_to_cpu(hdr->ctl_jt_offset + hdr->ctl_jt_size) / 4;
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
743
le32_to_cpu(hdr->ctl_ucode_offset));
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
681
const struct sdma_firmware_header_v3_0 *hdr;
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
693
hdr = (const struct sdma_firmware_header_v3_0 *)
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
695
amdgpu_ucode_print_sdma_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
698
le32_to_cpu(hdr->ucode_offset_bytes));
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
699
fw_size = le32_to_cpu(hdr->ucode_size_bytes);
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
670
const struct sdma_firmware_header_v3_0 *hdr;
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
682
hdr = (const struct sdma_firmware_header_v3_0 *)
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
684
amdgpu_ucode_print_sdma_hdr(&hdr->header);
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
687
le32_to_cpu(hdr->ucode_offset_bytes));
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
688
fw_size = le32_to_cpu(hdr->ucode_size_bytes);
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
428
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
429
hdr = (const struct common_firmware_header *)adev->uvd.fw->data;
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
433
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
439
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
drivers/gpu/drm/amd/amdgpu/vce_v1_0.c
195
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vce_v1_0.c
202
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
drivers/gpu/drm/amd/amdgpu/vce_v1_0.c
203
ucode_offset = le32_to_cpu(hdr->ucode_array_offset_bytes);
drivers/gpu/drm/amd/amdgpu/vce_v1_0.c
239
memcpy_toio(&cpu_addr[16], &sign[1], hdr->ucode_size_bytes - sizeof(*sign));
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
451
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
458
hdr = (const struct common_firmware_header *)adev->vce.fw->data;
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c
462
ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
452
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
454
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst].fw->data;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
455
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
515
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
516
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c
517
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
457
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
459
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
460
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
534
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
536
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c
537
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
403
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
405
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst].fw->data;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
406
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
466
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
468
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c
469
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
367
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
369
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst].fw->data;
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
370
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
430
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
432
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c
433
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
425
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
427
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst].fw->data;
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
428
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
490
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
492
hdr = (const struct common_firmware_header *)adev->vcn.inst[inst_idx].fw->data;
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c
493
size = AMDGPU_GPU_PAGE_ALIGN(le32_to_cpu(hdr->ucode_size_bytes) + 8);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1246
const struct dmcub_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1295
hdr = (const struct dmcub_firmware_header_v1_0 *)dmub_fw->data;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1298
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1302
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1303
le32_to_cpu(hdr->inst_const_bytes);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
1308
fw_bss_data_size = le32_to_cpu(hdr->bss_data_bytes);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2314
const struct dmcu_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2400
hdr = (const struct dmcu_firmware_header_v1_0 *)adev->dm.fw_dmcu->data;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2404
ALIGN(le32_to_cpu(hdr->header.ucode_size_bytes) - le32_to_cpu(hdr->intv_size_bytes), PAGE_SIZE);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2409
ALIGN(le32_to_cpu(hdr->intv_size_bytes), PAGE_SIZE);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2411
adev->dm.dmcu_fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2443
const struct dmcub_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2511
hdr = (const struct dmcub_firmware_header_v1_0 *)adev->dm.dmub_fw->data;
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2512
adev->dm.dmcub_fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2520
ALIGN(le32_to_cpu(hdr->inst_const_bytes), PAGE_SIZE);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2551
fw_meta_info_params.inst_const_size = le32_to_cpu(hdr->inst_const_bytes) -
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2553
fw_meta_info_params.bss_data_size = le32_to_cpu(hdr->bss_data_bytes);
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2555
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2558
le32_to_cpu(hdr->header.ucode_array_offset_bytes) +
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
2559
le32_to_cpu(hdr->inst_const_bytes) : NULL;
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
1268
ATOM_COMMON_TABLE_HEADER *hdr;
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
1273
hdr = GET_IMAGE(ATOM_COMMON_TABLE_HEADER, DATA_TABLES(LCD_Info));
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
1275
if (!hdr)
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
1278
switch (hdr->ucTableFormatRevision) {
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c
1280
switch (hdr->ucTableContentRevision) {
drivers/gpu/drm/amd/include/amd_cper.h
218
struct cper_sec_nonstd_err_hdr hdr;
drivers/gpu/drm/amd/include/amd_cper.h
258
struct cper_sec_crashdump_hdr hdr;
drivers/gpu/drm/amd/include/amd_cper.h
263
struct cper_sec_crashdump_hdr hdr;
drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
233
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
243
hdr = (const struct smc_firmware_header_v1_0 *)adev->pm.fw->data;
drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
245
amdgpu_ucode_print_smc_hdr(&hdr->header);
drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
247
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
248
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
249
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c
251
(adev->pm.fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
113
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
114
amdgpu_ucode_print_smc_hdr(&hdr->header);
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
115
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
144
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
150
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
152
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
153
smc_fw_size = hdr->header.ucode_size_bytes;
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
315
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
324
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
325
version_major = le16_to_cpu(hdr->header.header_version_major);
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
326
version_minor = le16_to_cpu(hdr->header.header_version_minor);
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
98
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
117
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
118
amdgpu_ucode_print_smc_hdr(&hdr->header);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
119
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
149
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
155
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
157
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
158
smc_fw_size = hdr->header.ucode_size_bytes;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
372
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
377
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
378
if (!hdr)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
383
version_major = le16_to_cpu(hdr->header.header_version_major);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
384
version_minor = le16_to_cpu(hdr->header.header_version_minor);
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
98
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
492
const struct common_firmware_header *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
519
hdr = (const struct common_firmware_header *)adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
520
amdgpu_ucode_print_smc_hdr(hdr);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
123
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
129
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
131
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
132
smc_fw_size = hdr->header.ucode_size_bytes;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
361
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
366
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
367
if (!hdr)
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
372
version_major = le16_to_cpu(hdr->header.header_version_major);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
373
version_minor = le16_to_cpu(hdr->header.header_version_minor);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
74
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
92
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
93
amdgpu_ucode_print_smc_hdr(&hdr->header);
drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0.c
94
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
113
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
119
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
121
le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
122
smc_fw_size = hdr->header.ucode_size_bytes;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
331
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
336
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
337
if (!hdr)
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
342
version_major = le16_to_cpu(hdr->header.header_version_major);
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
343
version_minor = le16_to_cpu(hdr->header.header_version_minor);
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
68
const struct smc_firmware_header_v1_0 *hdr;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
82
hdr = (const struct smc_firmware_header_v1_0 *) adev->pm.fw->data;
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
83
amdgpu_ucode_print_smc_hdr(&hdr->header);
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0.c
84
adev->pm.fw_version = le32_to_cpu(hdr->header.ucode_version);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
152
runtime->hdr.valid_bits.err_info_cnt = 1;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
153
runtime->hdr.valid_bits.err_context_cnt = 1;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
178
struct cper_section_hdr *hdr, struct ras_log_info **trace_arr, uint32_t arr_num,
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
185
fill_section_hdr(ras_core, hdr, RAS_CPER_TYPE_RUNTIME, sev, trace_arr[0]);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
186
hdr->record_length = RAS_HDR_LEN + ((RAS_SEC_DESC_LEN + RAS_NONSTD_SEC_LEN) * arr_num);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
187
hdr->sec_cnt = arr_num;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
189
descriptor = (struct cper_section_descriptor *)((uint8_t *)hdr +
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
191
runtime = (struct cper_section_runtime *)((uint8_t *)hdr +
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
192
RAS_NONSTD_SEC_OFFSET(hdr->sec_cnt, i));
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
195
RAS_NONSTD_SEC_OFFSET(hdr->sec_cnt, i),
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
210
fill_section_hdr(ras_core, &record.hdr, RAS_CPER_TYPE_FATAL,
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
212
record.hdr.record_length = RAS_HDR_LEN + RAS_SEC_DESC_LEN + RAS_FATAL_SEC_LEN;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
213
record.hdr.sec_cnt = 1;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
221
memcpy(buffer + (i * record.hdr.record_length),
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
222
&record, record.hdr.record_length);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
280
struct cper_section_hdr *hdr;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
289
hdr = (struct cper_section_hdr *)(buffer + saved_size);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
293
cper_generate_runtime_record(ras_core, hdr, trace_list, count, RAS_CPER_SEV_RMA);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
297
hdr, trace_list, count, RAS_CPER_SEV_NON_FATAL_UE);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
301
hdr, trace_list, count, RAS_CPER_SEV_NON_FATAL_CE);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
53
struct cper_section_hdr *hdr, enum ras_cper_type type,
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
59
hdr->signature[0] = 'C';
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
60
hdr->signature[1] = 'P';
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
61
hdr->signature[2] = 'E';
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
62
hdr->signature[3] = 'R';
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
63
hdr->revision = CPER_HDR__REV_1;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
64
hdr->signature_end = 0xFFFFFFFF;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
65
hdr->error_severity = (sev == RAS_CPER_SEV_RMA ? RAS_CPER_SEV_FATAL_UE : sev);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
67
hdr->valid_bits.platform_id = 1;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
68
hdr->valid_bits.timestamp = 1;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
72
cper_get_timestamp(ras_core, &hdr->timestamp, trace->timestamp);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
76
memcpy(hdr->record_id, record_id, 8);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
78
snprintf(hdr->platform_id, 16, "0x%04X:0x%04X",
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
81
snprintf(hdr->creator_id, 16, "%s", CPER_CREATOR_ID__AMDGPU);
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
85
hdr->notify_type = BOOT;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
89
hdr->notify_type = MCE;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
93
hdr->notify_type = CMC;
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
95
hdr->notify_type = MCE;
drivers/gpu/drm/amd/ras/rascore/ras_cper.h
231
struct runtime_hdr hdr;
drivers/gpu/drm/amd/ras/rascore/ras_cper.h
267
struct crashdump_hdr hdr;
drivers/gpu/drm/amd/ras/rascore/ras_cper.h
272
struct crashdump_hdr hdr;
drivers/gpu/drm/amd/ras/rascore/ras_cper.h
277
struct cper_section_hdr hdr;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1106
struct ras_eeprom_table_header *hdr;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1109
hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1131
__decode_table_header_from_buf(hdr, buf);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1133
if (hdr->header != RAS_TABLE_HDR_VAL &&
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1134
hdr->header != RAS_TABLE_HDR_BAD) {
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1139
switch (hdr->version) {
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1142
control->ras_num_recs = RAS_NUM_RECS_V2_1(hdr);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1147
control->ras_num_recs = RAS_NUM_RECS(hdr);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1154
hdr->version);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1165
control->ras_fri = RAS_OFFSET_TO_INDEX(control, hdr->first_rec_offset);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1173
struct ras_eeprom_table_header *hdr;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1183
hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1186
if (hdr->header == RAS_TABLE_HDR_VAL) {
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1191
if (hdr->version >= RAS_TABLE_VER_V2_1) {
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1210
} else if (hdr->header == RAS_TABLE_HDR_BAD &&
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
1212
if (hdr->version >= RAS_TABLE_VER_V2_1) {
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
266
__encode_table_header_to_buf(struct ras_eeprom_table_header *hdr,
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
271
pp[0] = cpu_to_le32(hdr->header);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
272
pp[1] = cpu_to_le32(hdr->version);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
273
pp[2] = cpu_to_le32(hdr->first_rec_offset);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
274
pp[3] = cpu_to_le32(hdr->tbl_size);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
275
pp[4] = cpu_to_le32(hdr->checksum);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
279
__decode_table_header_from_buf(struct ras_eeprom_table_header *hdr,
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
284
hdr->header = le32_to_cpu(pp[0]);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
285
hdr->version = le32_to_cpu(pp[1]);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
286
hdr->first_rec_offset = le32_to_cpu(pp[2]);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
287
hdr->tbl_size = le32_to_cpu(pp[3]);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
288
hdr->checksum = le32_to_cpu(pp[4]);
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
418
struct ras_eeprom_table_header *hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
423
csum = -hdr->checksum;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
425
hh = (void *) &hdr->header;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
431
hdr->header = header;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
432
hdr->checksum = csum;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
441
struct ras_eeprom_table_header *hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
443
hdr->version = RAS_TABLE_VER_V3;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
449
struct ras_eeprom_table_header *hdr = &control->tbl_hdr;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
456
hdr->header = RAS_TABLE_HDR_VAL;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
459
if (hdr->version >= RAS_TABLE_VER_V2_1) {
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
460
hdr->first_rec_offset = RAS_RECORD_START_V2_1;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
461
hdr->tbl_size = RAS_TABLE_HEADER_SIZE +
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
472
hdr->first_rec_offset = RAS_RECORD_START;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
473
hdr->tbl_size = RAS_TABLE_HEADER_SIZE;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
477
if (hdr->version >= RAS_TABLE_VER_V2_1)
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
480
hdr->checksum = csum;
drivers/gpu/drm/amd/ras/rascore/ras_eeprom.c
482
if (!res && hdr->version > RAS_TABLE_VER_V1)
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
100
n_input = PIPELINE_INFO_N_VALID_INPUTS(hdr.pipeline_info);
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
104
i, hdr.input_ids[i]);
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
108
i, hdr.output_ids[i]);
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
92
struct block_header hdr;
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
95
d71_read_block_header(reg, &hdr);
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
96
seq_printf(sf, "BLOCK_INFO:\t\t0x%X\n", hdr.block_info);
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
97
seq_printf(sf, "PIPELINE_INFO:\t\t0x%X\n", hdr.pipeline_info);
drivers/gpu/drm/arm/display/komeda/d71/d71_component.c
99
n_output = PIPELINE_INFO_N_OUTPUTS(hdr.pipeline_info);
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c
499
u8 hdr[5]; /* For DPCD read response header */
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c
524
sizeof(hdr) + DP_LINK_STATUS_SIZE);
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c
528
ret = cdns_mhdp_mailbox_recv_data(mhdp, hdr, sizeof(hdr));
drivers/gpu/drm/bridge/cadence/cdns-mhdp8546-core.c
532
addr = get_unaligned_be24(hdr + 2);
drivers/gpu/drm/bridge/sil-sii8620.c
1741
sii8620_mhl_burst_hdr_set(&d->hdr, MHL_BURST_ID_EMSC_SUPPORT);
drivers/gpu/drm/bridge/sil-sii8620.c
736
sii8620_mhl_burst_hdr_set(&d->hdr, MHL_BURST_ID_BITS_PER_PIXEL_FMT);
drivers/gpu/drm/bridge/sil-sii8620.c
740
d->hdr.checksum -= sii8620_checksum(d, size);
drivers/gpu/drm/display/drm_dp_mst_topology.c
274
static inline u8 drm_dp_calc_sb_hdr_size(struct drm_dp_sideband_msg_hdr *hdr)
drivers/gpu/drm/display/drm_dp_mst_topology.c
2761
static int set_hdr_from_dst_qlock(struct drm_dp_sideband_msg_hdr *hdr,
drivers/gpu/drm/display/drm_dp_mst_topology.c
2771
hdr->broadcast = 1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2773
hdr->broadcast = 0;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2774
hdr->path_msg = txmsg->path_msg;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2775
if (hdr->broadcast) {
drivers/gpu/drm/display/drm_dp_mst_topology.c
2776
hdr->lct = 1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2777
hdr->lcr = 6;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2779
hdr->lct = mstb->lct;
drivers/gpu/drm/display/drm_dp_mst_topology.c
278
size += (hdr->lct / 2);
drivers/gpu/drm/display/drm_dp_mst_topology.c
2780
hdr->lcr = mstb->lct - 1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2783
memcpy(hdr->rad, mstb->rad, hdr->lct / 2);
drivers/gpu/drm/display/drm_dp_mst_topology.c
2795
struct drm_dp_sideband_msg_hdr hdr;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2802
memset(&hdr, 0, sizeof(struct drm_dp_sideband_msg_hdr));
drivers/gpu/drm/display/drm_dp_mst_topology.c
2808
ret = set_hdr_from_dst_qlock(&hdr, txmsg);
drivers/gpu/drm/display/drm_dp_mst_topology.c
2816
space = 48 - 1 - drm_dp_calc_sb_hdr_size(&hdr);
drivers/gpu/drm/display/drm_dp_mst_topology.c
282
static void drm_dp_encode_sideband_msg_hdr(struct drm_dp_sideband_msg_hdr *hdr,
drivers/gpu/drm/display/drm_dp_mst_topology.c
2820
hdr.somt = 1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2822
hdr.eomt = 1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2825
hdr.msg_len = tosend + 1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2826
drm_dp_encode_sideband_msg_hdr(&hdr, chunk, &idx);
drivers/gpu/drm/display/drm_dp_mst_topology.c
289
buf[idx++] = ((hdr->lct & 0xf) << 4) | (hdr->lcr & 0xf);
drivers/gpu/drm/display/drm_dp_mst_topology.c
290
for (i = 0; i < (hdr->lct / 2); i++)
drivers/gpu/drm/display/drm_dp_mst_topology.c
291
buf[idx++] = hdr->rad[i];
drivers/gpu/drm/display/drm_dp_mst_topology.c
292
buf[idx++] = (hdr->broadcast << 7) | (hdr->path_msg << 6) |
drivers/gpu/drm/display/drm_dp_mst_topology.c
293
(hdr->msg_len & 0x3f);
drivers/gpu/drm/display/drm_dp_mst_topology.c
294
buf[idx++] = (hdr->somt << 7) | (hdr->eomt << 6) | (hdr->seqno << 4);
drivers/gpu/drm/display/drm_dp_mst_topology.c
303
struct drm_dp_sideband_msg_hdr *hdr,
drivers/gpu/drm/display/drm_dp_mst_topology.c
324
hdr->lct = (buf[0] & 0xf0) >> 4;
drivers/gpu/drm/display/drm_dp_mst_topology.c
325
hdr->lcr = (buf[0] & 0xf);
drivers/gpu/drm/display/drm_dp_mst_topology.c
327
for (i = 0; i < (hdr->lct / 2); i++)
drivers/gpu/drm/display/drm_dp_mst_topology.c
328
hdr->rad[i] = buf[idx++];
drivers/gpu/drm/display/drm_dp_mst_topology.c
329
hdr->broadcast = (buf[idx] >> 7) & 0x1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
330
hdr->path_msg = (buf[idx] >> 6) & 0x1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
331
hdr->msg_len = buf[idx] & 0x3f;
drivers/gpu/drm/display/drm_dp_mst_topology.c
332
if (hdr->msg_len < 1) /* min space for body CRC */
drivers/gpu/drm/display/drm_dp_mst_topology.c
336
hdr->somt = (buf[idx] >> 7) & 0x1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
337
hdr->eomt = (buf[idx] >> 6) & 0x1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
338
hdr->seqno = (buf[idx] >> 4) & 0x1;
drivers/gpu/drm/display/drm_dp_mst_topology.c
3872
struct drm_dp_sideband_msg_hdr hdr;
drivers/gpu/drm/display/drm_dp_mst_topology.c
3888
ret = drm_dp_decode_sideband_msg_hdr(mgr, &hdr, replyblock, len, &hdrlen);
drivers/gpu/drm/display/drm_dp_mst_topology.c
3898
*mstb = drm_dp_get_mst_branch_device(mgr, hdr.lct, hdr.rad);
drivers/gpu/drm/display/drm_dp_mst_topology.c
3900
drm_dbg_kms(mgr->dev, "Got MST reply from unknown device %d\n", hdr.lct);
drivers/gpu/drm/display/drm_dp_mst_topology.c
3905
if (!drm_dp_sideband_msg_set_header(msg, &hdr, hdrlen)) {
drivers/gpu/drm/display/drm_dp_mst_topology.c
3950
const struct drm_dp_sideband_msg_hdr *hdr = &rxmsg->initial_hdr;
drivers/gpu/drm/display/drm_dp_mst_topology.c
3962
mstb, hdr->seqno, mstb->lct, rad_str,
drivers/gpu/drm/display/drm_dp_mst_topology.c
3990
struct drm_dp_sideband_msg_hdr *hdr;
drivers/gpu/drm/display/drm_dp_mst_topology.c
3992
hdr = &msg->initial_hdr;
drivers/gpu/drm/display/drm_dp_mst_topology.c
3994
mstb, hdr->seqno, hdr->lct, hdr->rad[0], msg->msg[0]);
drivers/gpu/drm/display/drm_dp_mst_topology.c
4057
struct drm_dp_sideband_msg_hdr *hdr = &up_req->hdr;
drivers/gpu/drm/display/drm_dp_mst_topology.c
4060
if (hdr->broadcast) {
drivers/gpu/drm/display/drm_dp_mst_topology.c
4071
mstb = drm_dp_get_mst_branch_device(mgr, hdr->lct, hdr->rad);
drivers/gpu/drm/display/drm_dp_mst_topology.c
4075
drm_dbg_kms(mgr->dev, "Got MST reply from unknown device %d\n", hdr->lct);
drivers/gpu/drm/display/drm_dp_mst_topology.c
4190
up_req->hdr = mgr->up_req_recv.initial_hdr;
drivers/gpu/drm/display/drm_dp_mst_topology.c
61
struct drm_dp_sideband_msg_hdr hdr;
drivers/gpu/drm/display/drm_dp_mst_topology.c
756
struct drm_dp_sideband_msg_hdr *hdr,
drivers/gpu/drm/display/drm_dp_mst_topology.c
763
if (!hdr->somt && !msg->have_somt)
drivers/gpu/drm/display/drm_dp_mst_topology.c
768
msg->curchunk_len = hdr->msg_len;
drivers/gpu/drm/display/drm_dp_mst_topology.c
772
if (hdr->somt && msg->have_somt)
drivers/gpu/drm/display/drm_dp_mst_topology.c
775
if (hdr->somt) {
drivers/gpu/drm/display/drm_dp_mst_topology.c
776
memcpy(&msg->initial_hdr, hdr,
drivers/gpu/drm/display/drm_dp_mst_topology.c
780
if (hdr->eomt)
drivers/gpu/drm/etnaviv/etnaviv_dump.c
113
iter->hdr->iova = cpu_to_le64(iova);
drivers/gpu/drm/etnaviv/etnaviv_dump.c
159
file_size += sizeof(*iter.hdr) * n_obj;
drivers/gpu/drm/etnaviv/etnaviv_dump.c
170
iter.hdr = iter.start;
drivers/gpu/drm/etnaviv/etnaviv_dump.c
171
iter.data = &iter.hdr[n_obj];
drivers/gpu/drm/etnaviv/etnaviv_dump.c
173
memset(iter.hdr, 0, iter.data - iter.start);
drivers/gpu/drm/etnaviv/etnaviv_dump.c
214
iter.hdr->data[0] = cpu_to_le32((bomap - bomap_start));
drivers/gpu/drm/etnaviv/etnaviv_dump.c
220
iter.hdr->iova = cpu_to_le64(vram->iova);
drivers/gpu/drm/etnaviv/etnaviv_dump.c
23
struct etnaviv_dump_object_header *hdr;
drivers/gpu/drm/etnaviv/etnaviv_dump.c
70
struct etnaviv_dump_object_header *hdr = iter->hdr;
drivers/gpu/drm/etnaviv/etnaviv_dump.c
72
hdr->magic = cpu_to_le32(ETDUMP_MAGIC);
drivers/gpu/drm/etnaviv/etnaviv_dump.c
73
hdr->type = cpu_to_le32(type);
drivers/gpu/drm/etnaviv/etnaviv_dump.c
74
hdr->file_offset = cpu_to_le32(iter->data - iter->start);
drivers/gpu/drm/etnaviv/etnaviv_dump.c
75
hdr->file_size = cpu_to_le32(data_end - iter->data);
drivers/gpu/drm/etnaviv/etnaviv_dump.c
77
iter->hdr++;
drivers/gpu/drm/etnaviv/etnaviv_dump.c
78
iter->data += le32_to_cpu(hdr->file_size);
drivers/gpu/drm/exynos/exynos_drm_vidi.c
268
struct edid hdr;
drivers/gpu/drm/exynos/exynos_drm_vidi.c
271
if (copy_from_user(&hdr, edid_userptr, sizeof(hdr)))
drivers/gpu/drm/exynos/exynos_drm_vidi.c
274
size = (hdr.extensions + 1) * EDID_LENGTH;
drivers/gpu/drm/i915/display/intel_display_debugfs.c
441
const char *hdr)
drivers/gpu/drm/i915/display/intel_display_debugfs.c
449
seq_printf(m, "%sUpdates: %llu\n", hdr, count);
drivers/gpu/drm/i915/display/intel_display_debugfs.c
478
seq_printf(m, "%s%s\n", hdr, columns);
drivers/gpu/drm/i915/display/intel_display_debugfs.c
482
hdr, crtc->debug.vbl.min);
drivers/gpu/drm/i915/display/intel_display_debugfs.c
484
hdr, crtc->debug.vbl.max);
drivers/gpu/drm/i915/display/intel_display_debugfs.c
486
hdr, div64_u64(crtc->debug.vbl.sum, count));
drivers/gpu/drm/i915/display/intel_display_debugfs.c
488
hdr, VBLANK_EVASION_TIME_US, crtc->debug.vbl.over);
drivers/gpu/drm/i915/display/intel_display_debugfs.c
533
const char *hdr)
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2177
char hdr[160];
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2180
len = scnprintf(hdr, sizeof(hdr),
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2186
len += print_ring(hdr + len, sizeof(hdr) - len, rq);
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2187
scnprintf(hdr + len, sizeof(hdr) - len, "rq: ");
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2188
i915_request_show(m, rq, hdr, 0);
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2191
char hdr[160];
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2194
len = scnprintf(hdr, sizeof(hdr),
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2200
len += print_ring(hdr + len, sizeof(hdr) - len, rq);
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2201
scnprintf(hdr + len, sizeof(hdr) - len, "rq: ");
drivers/gpu/drm/i915/gt/intel_engine_cs.c
2202
i915_request_show(m, rq, hdr, 0);
drivers/gpu/drm/i915/gt/intel_migrate.c
376
u32 *hdr, *cs;
drivers/gpu/drm/i915/gt/intel_migrate.c
410
hdr = cs;
drivers/gpu/drm/i915/gt/intel_migrate.c
416
if (cs - hdr >= pkt) {
drivers/gpu/drm/i915/gt/intel_migrate.c
419
*hdr += cs - hdr - 2;
drivers/gpu/drm/i915/gt/intel_migrate.c
443
hdr = cs;
drivers/gpu/drm/i915/gt/intel_migrate.c
468
*hdr += cs - hdr - 2;
drivers/gpu/drm/i915/gt/uc/intel_gsc_proxy.c
101
in_size = hdr->message_size - sizeof(struct intel_gsc_mtl_header);
drivers/gpu/drm/i915/gt/uc/intel_gsc_proxy.c
163
u32 type = FIELD_GET(GSC_PROXY_TYPE, header->hdr);
drivers/gpu/drm/i915/gt/uc/intel_gsc_proxy.c
164
u32 length = FIELD_GET(GSC_PROXY_PAYLOAD_LENGTH, header->hdr);
drivers/gpu/drm/i915/gt/uc/intel_gsc_proxy.c
200
to_gsc->proxy_header.hdr =
drivers/gpu/drm/i915/gt/uc/intel_gsc_proxy.c
220
if (FIELD_GET(GSC_PROXY_TYPE, to_csme->proxy_header.hdr) ==
drivers/gpu/drm/i915/gt/uc/intel_gsc_proxy.c
59
u32 hdr;
drivers/gpu/drm/i915/gt/uc/intel_gsc_proxy.c
90
struct intel_gsc_mtl_header *hdr;
drivers/gpu/drm/i915/gt/uc/intel_gsc_proxy.c
97
hdr = in;
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1101
struct guc_state_capture_header_t hdr = {};
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1179
if (guc_capture_log_get_data_hdr(guc, buf, &hdr)) {
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1184
datatype = FIELD_GET(CAP_HDR_CAPTURE_TYPE, hdr.info);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1187
numregs = FIELD_GET(CAP_HDR_NUM_MMIOS, hdr.num_mmios);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1235
node->reginfo[datatype].vfid = FIELD_GET(CAP_HDR_CAPTURE_VFID, hdr.owner);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1238
node->eng_class = FIELD_GET(CAP_HDR_ENGINE_CLASS, hdr.info);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1239
node->eng_inst = FIELD_GET(CAP_HDR_ENGINE_INSTANCE, hdr.info);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1240
node->lrca = hdr.lrca;
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1241
node->guc_id = hdr.guc_id;
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1244
node->eng_class = FIELD_GET(CAP_HDR_ENGINE_CLASS, hdr.info);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
1250
numregs = FIELD_GET(CAP_HDR_NUM_MMIOS, hdr.num_mmios);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
839
struct guc_state_capture_header_t *hdr)
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
847
if (guc_capture_data_extracted(buf, fullsize, (void *)hdr))
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
850
read += guc_capture_log_remove_dw(guc, buf, &hdr->owner);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
851
read += guc_capture_log_remove_dw(guc, buf, &hdr->info);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
852
read += guc_capture_log_remove_dw(guc, buf, &hdr->lrca);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
853
read += guc_capture_log_remove_dw(guc, buf, &hdr->guc_id);
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
854
read += guc_capture_log_remove_dw(guc, buf, &hdr->num_mmios);
drivers/gpu/drm/i915/gvt/kvmgt.c
1319
struct vfio_irq_set hdr;
drivers/gpu/drm/i915/gvt/kvmgt.c
1326
if (copy_from_user(&hdr, (void __user *)arg, minsz))
drivers/gpu/drm/i915/gvt/kvmgt.c
1329
if (!is_power_of_2(hdr.flags & VFIO_IRQ_SET_DATA_TYPE_MASK) ||
drivers/gpu/drm/i915/gvt/kvmgt.c
1330
!is_power_of_2(hdr.flags & VFIO_IRQ_SET_ACTION_TYPE_MASK))
drivers/gpu/drm/i915/gvt/kvmgt.c
1333
if (!(hdr.flags & VFIO_IRQ_SET_DATA_NONE)) {
drivers/gpu/drm/i915/gvt/kvmgt.c
1334
int max = intel_vgpu_get_irq_count(vgpu, hdr.index);
drivers/gpu/drm/i915/gvt/kvmgt.c
1336
if (!hdr.count)
drivers/gpu/drm/i915/gvt/kvmgt.c
1339
ret = vfio_set_irqs_validate_and_prepare(&hdr, max,
drivers/gpu/drm/i915/gvt/kvmgt.c
1352
ret = intel_vgpu_set_irqs(vgpu, hdr.flags, hdr.index,
drivers/gpu/drm/i915/gvt/kvmgt.c
1353
hdr.start, hdr.count, data);
drivers/gpu/drm/msm/adreno/a6xx_hfi.c
35
u32 i, hdr, index = header->read_index;
drivers/gpu/drm/msm/adreno/a6xx_hfi.c
42
hdr = queue->data[index];
drivers/gpu/drm/msm/adreno/a6xx_hfi.c
55
BUG_ON(HFI_HEADER_SIZE(hdr) > dwords);
drivers/gpu/drm/msm/adreno/a6xx_hfi.c
57
for (i = 0; i < HFI_HEADER_SIZE(hdr); i++) {
drivers/gpu/drm/msm/adreno/a6xx_hfi.c
66
return HFI_HEADER_SIZE(hdr);
drivers/gpu/drm/nouveau/include/nvfw/acr.h
110
struct wpr_generic_header hdr;
drivers/gpu/drm/nouveau/include/nvfw/acr.h
112
struct wpr_generic_header hdr;
drivers/gpu/drm/nouveau/include/nvfw/acr.h
53
struct wpr_generic_header hdr;
drivers/gpu/drm/nouveau/include/nvfw/pmu.h
28
struct nvfw_falcon_msg hdr;
drivers/gpu/drm/nouveau/include/nvfw/pmu.h
47
struct nvfw_falcon_cmd hdr;
drivers/gpu/drm/nouveau/include/nvfw/pmu.h
55
struct nvfw_falcon_cmd hdr;
drivers/gpu/drm/nouveau/include/nvfw/sec2.h
17
struct nvfw_falcon_msg hdr;
drivers/gpu/drm/nouveau/include/nvfw/sec2.h
38
struct nvfw_falcon_msg hdr;
drivers/gpu/drm/nouveau/include/nvfw/sec2.h
61
struct nvfw_falcon_cmd hdr;
drivers/gpu/drm/nouveau/include/nvfw/sec2.h
67
struct nvfw_falcon_cmd hdr;
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0203.h
10
u32 nvbios_M0203Te(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0203.h
11
u32 nvbios_M0203Tp(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0203.h
28
u32 nvbios_M0203Ee(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0203.h
29
u32 nvbios_M0203Ep(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0203.h
31
u32 nvbios_M0203Em(struct nvkm_bios *, u8 ramcfg, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0205.h
11
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0205.h
19
u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0205.h
21
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0205E *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0205.h
27
u32 nvbios_M0205Se(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0205.h
28
u32 nvbios_M0205Sp(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0205.h
9
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0209.h
17
u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0209.h
19
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0209.h
25
u32 nvbios_M0209Se(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0209.h
26
u32 nvbios_M0209Sp(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/M0209.h
5
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/P0260.h
11
u32 nvbios_P0260Ee(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/P0260.h
12
u32 nvbios_P0260Ep(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/P0260.h
19
u32 nvbios_P0260Xe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/P0260.h
20
u32 nvbios_P0260Xp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/P0260.h
5
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/conn.h
84
u32 nvbios_connTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/conn.h
85
u32 nvbios_connTp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/conn.h
98
u32 nvbios_connEe(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/conn.h
99
u32 nvbios_connEp(struct nvkm_bios *bios, u8 idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/cstep.h
12
u32 nvbios_cstepEe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/cstep.h
13
u32 nvbios_cstepEp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/cstep.h
15
u32 nvbios_cstepEm(struct nvkm_bios *, u8 pstate, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/cstep.h
24
u32 nvbios_cstepXe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/cstep.h
25
u32 nvbios_cstepXp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/cstep.h
5
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dcb.h
60
u16 dcb_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *ent, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h
11
u16 nvbios_disp_entry(struct nvkm_bios *, u8 idx, u8 *ver, u8 *hdr, u8 *sub);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h
12
u16 nvbios_disp_parse(struct nvkm_bios *, u8 idx, u8 *ver, u8 *hdr, u8 *sub,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h
22
u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h
24
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h
26
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h
35
u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h
37
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h
39
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h
5
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dp.h
17
u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dp.h
20
u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dp.h
32
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dp.h
35
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_dpcfg *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dp.h
6
nvbios_dp_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/gpio.h
46
u16 dcb_gpio_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/i2c.h
23
u16 dcb_i2c_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/mxm.h
4
u16 mxm_table(struct nvkm_bios *, u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/pcir.h
14
u32 nvbios_pcirTe(struct nvkm_bios *, u32, u8 *ver, u16 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/pcir.h
15
u32 nvbios_pcirTp(struct nvkm_bios *, u32, u8 *ver, u16 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/perf.h
22
u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/perf.h
24
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/perf.h
35
u8 *ver, u8 *hdr, u8 cnt, u8 len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/perf.h
37
u8 *ver, u8 *hdr, u8 cnt, u8 len, struct nvbios_perfS *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/perf.h
4
u32 nvbios_perf_table(struct nvkm_bios *, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/pmu.h
14
u32 nvbios_pmuEe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/pmu.h
15
u32 nvbios_pmuEp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/pmu.h
7
u32 nvbios_pmuTe(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/rammap.h
10
u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/rammap.h
14
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/rammap.h
16
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/rammap.h
20
u8 *ver, u8 *hdr);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/rammap.h
25
u8 *ver, u8 *hdr, struct nvbios_ramcfg *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/rammap.h
6
u32 nvbios_rammapTe(struct nvkm_bios *, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/timing.h
11
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/timing.h
7
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/timing.h
9
u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h
10
u32 nvbios_vmap_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/vmap.h
11
u32 nvbios_vmap_parse(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/volt.h
26
u32 nvbios_volt_table(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/volt.h
27
u32 nvbios_volt_parse(struct nvkm_bios *, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/xpio.h
16
u8 *ver, u8 *hdr, u8 *cnt, u8 *len);
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/xpio.h
18
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_xpio *);
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
139
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
172
&ver, &hdr, &cnt, &len, &info);
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
177
&ver, &hdr, &cnt, &len, &ocfg);
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
642
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
662
&outp->dp.version, &hdr, &cnt, &len, &outp->dp.info);
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
668
OUTP_DBG(outp, "bios dp %02x %02x %02x %02x", outp->dp.version, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c
670
data = nvbios_dp_table(bios, &ver, &hdr, &cnt, &len);
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
1015
u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
1022
u32 data = nvbios_outp_match(bios, t, m, ver, hdr, cnt, len, iedt);
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
1037
u8 ver, hdr, cnt, len, flags = 0x00;
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
1046
data = nv50_disp_super_iedt(head, outp, &ver, &hdr, &cnt, &len, &iedt);
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
1061
&ver, &hdr, &cnt, &len, &iedtrs);
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
1089
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
1097
data = nv50_disp_super_iedt(head, outp, &ver, &hdr, &cnt, &len, &iedt);
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
1591
u8 ver, hdr;
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
1648
while ((data = dcb_outp_parse(bios, ++i, &ver, &hdr, &dcbE))) {
drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c
1696
data = nvbios_connEp(bios, outp->info.connector, &ver, &hdr,
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
320
u8 hdr = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
321
if (ver == 0x20 && hdr >= 8) {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
351
u8 ver, hdr;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
353
while (nvbios_P0260Ep(bios, ++E, &ver, &hdr, &infoE)) {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c
356
while (nvbios_P0260Xp(bios, ++X, &ver, &hdr, &infoX))
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
48
struct flcn_bl_dmem_desc_v1 hdr;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
49
nvkm_robj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
50
hdr.code_dma_base = hdr.code_dma_base + adjust;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
51
hdr.data_dma_base = hdr.data_dma_base + adjust;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
52
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
53
flcn_bl_dmem_desc_v1_dump(&acr->subdev, &hdr);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
63
const struct flcn_bl_dmem_desc_v1 hdr = {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
73
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
36
struct flcn_bl_dmem_desc hdr;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
39
nvkm_robj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
40
addr = ((u64)hdr.code_dma_base1 << 40 | hdr.code_dma_base << 8);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
41
hdr.code_dma_base = lower_32_bits((addr + adjust) >> 8);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
42
hdr.code_dma_base1 = upper_32_bits((addr + adjust) >> 8);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
43
addr = ((u64)hdr.data_dma_base1 << 40 | hdr.data_dma_base << 8);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
44
hdr.data_dma_base = lower_32_bits((addr + adjust) >> 8);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
45
hdr.data_dma_base1 = upper_32_bits((addr + adjust) >> 8);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
46
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
48
flcn_bl_dmem_desc_dump(&acr->subdev, &hdr);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
58
const struct flcn_bl_dmem_desc hdr = {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm20b.c
70
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp108.c
31
struct flcn_bl_dmem_desc_v2 hdr;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp108.c
32
nvkm_robj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp108.c
33
hdr.code_dma_base = hdr.code_dma_base + adjust;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp108.c
34
hdr.data_dma_base = hdr.data_dma_base + adjust;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp108.c
35
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp108.c
36
flcn_bl_dmem_desc_v2_dump(&acr->subdev, &hdr);
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp108.c
46
const struct flcn_bl_dmem_desc_v2 hdr = {
drivers/gpu/drm/nouveau/nvkm/engine/gr/gp108.c
56
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/sec2/base.c
31
nvkm_sec2_finimsg(void *priv, struct nvfw_falcon_msg *hdr)
drivers/gpu/drm/nouveau/nvkm/engine/sec2/ga102.c
104
return nvkm_falcon_cmdq_send(sec2->cmdq, &cmd.cmd.hdr,
drivers/gpu/drm/nouveau/nvkm/engine/sec2/ga102.c
40
if (msg.hdr.unit_id != NV_SEC2_UNIT_INIT ||
drivers/gpu/drm/nouveau/nvkm/engine/sec2/ga102.c
75
ga102_sec2_acr_bootstrap_falcon_callback(void *priv, struct nvfw_falcon_msg *hdr)
drivers/gpu/drm/nouveau/nvkm/engine/sec2/ga102.c
78
container_of(hdr, typeof(*msg), msg.hdr);
drivers/gpu/drm/nouveau/nvkm/engine/sec2/ga102.c
97
.cmd.hdr.unit_id = sec2->func->unit_acr,
drivers/gpu/drm/nouveau/nvkm/engine/sec2/ga102.c
98
.cmd.hdr.size = sizeof(cmd),
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
107
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
131
if (msg.hdr.unit_id != NV_SEC2_UNIT_INIT ||
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
243
struct flcn_bl_dmem_desc_v2 hdr;
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
244
nvkm_robj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
245
hdr.code_dma_base = hdr.code_dma_base + adjust;
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
246
hdr.data_dma_base = hdr.data_dma_base + adjust;
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
247
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
248
flcn_bl_dmem_desc_v2_dump(&acr->subdev, &hdr);
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
255
const struct flcn_bl_dmem_desc_v2 hdr = {
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
268
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
40
gp102_sec2_acr_bootstrap_falcon_callback(void *priv, struct nvfw_falcon_msg *hdr)
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
43
container_of(hdr, typeof(*msg), msg.hdr);
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
64
.cmd.hdr.unit_id = sec2->func->unit_acr,
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
65
.cmd.hdr.size = sizeof(cmd),
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
71
return nvkm_falcon_cmdq_send(sec2->cmdq, &cmd.cmd.hdr,
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
80
struct loader_config_v1 hdr;
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
81
nvkm_robj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
82
hdr.code_dma_base = hdr.code_dma_base + adjust;
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
83
hdr.data_dma_base = hdr.data_dma_base + adjust;
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
84
hdr.overlay_dma_base = hdr.overlay_dma_base + adjust;
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
85
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
86
loader_config_v1_dump(&acr->subdev, &hdr);
drivers/gpu/drm/nouveau/nvkm/engine/sec2/gp102.c
93
const struct loader_config_v1 hdr = {
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
220
const struct nvfw_bin_hdr *hdr;
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
231
hdr = nvfw_bin_hdr(subdev, blob->data);
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
232
hshdr = nvfw_hs_header(subdev, blob->data + hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
235
blob->data + hdr->data_offset, hdr->data_size, falcon, fw);
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
243
switch (hdr->bin_magic) {
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
286
hdr = nvfw_bin_hdr(subdev, blob->data);
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
287
desc = nvfw_bl_desc(subdev, blob->data + hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
291
fw->boot = kmemdup(blob->data + hdr->data_offset + desc->code_off,
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
312
const struct nvfw_bin_hdr *hdr;
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
323
hdr = nvfw_bin_hdr(subdev, blob->data);
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
324
hshdr = nvfw_hs_header_v2(subdev, blob->data + hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/falcon/fw.c
331
blob->data + hdr->data_offset, hdr->data_size, falcon, fw);
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
101
ret = nvkm_falcon_msgq_pop(msgq, (hdr + 1), read_size);
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
115
nvkm_falcon_msgq_exec(struct nvkm_falcon_msgq *msgq, struct nvfw_falcon_msg *hdr)
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
119
seq = &msgq->qmgr->seq.id[hdr->seq_id];
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
127
seq->result = seq->callback(seq->priv, hdr);
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
147
struct nvfw_falcon_msg *hdr = (void *)msg_buffer;
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
149
while (nvkm_falcon_msgq_read(msgq, hdr) > 0)
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
150
nvkm_falcon_msgq_exec(msgq, hdr);
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
158
struct nvfw_falcon_msg *hdr = data;
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
167
if (ret == 0 && hdr->size != size) {
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
169
hdr->size, size);
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
77
nvkm_falcon_msgq_read(struct nvkm_falcon_msgq *msgq, struct nvfw_falcon_msg *hdr)
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
86
ret = nvkm_falcon_msgq_pop(msgq, hdr, HDR_SIZE);
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
92
if (hdr->size > MSG_BUF_SIZE) {
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
93
FLCNQ_ERR(msgq, "message too big, %d bytes", hdr->size);
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
98
if (hdr->size > HDR_SIZE) {
drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c
99
u32 read_size = hdr->size - HDR_SIZE;
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
100
nvkm_debug(subdev, "\tappCodeOff : 0x%x\n", hdr->app_code_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
101
nvkm_debug(subdev, "\tappCodeSize : 0x%x\n", hdr->app_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
102
nvkm_debug(subdev, "\tappDataOff : 0x%x\n", hdr->app_data_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
103
nvkm_debug(subdev, "\tappDataSize : 0x%x\n", hdr->app_data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
104
nvkm_debug(subdev, "\tflags : 0x%x\n", hdr->flags);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
108
lsb_header_dump(struct nvkm_subdev *subdev, struct lsb_header *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
110
lsb_header_tail_dump(subdev, &hdr->tail);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
114
lsb_header_v1_dump(struct nvkm_subdev *subdev, struct lsb_header_v1 *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
116
lsb_header_tail_dump(subdev, &hdr->tail);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
120
flcn_acr_desc_dump(struct nvkm_subdev *subdev, struct flcn_acr_desc *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
125
nvkm_debug(subdev, "\twprRegionId : %d\n", hdr->wpr_region_id);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
126
nvkm_debug(subdev, "\twprOffset : 0x%x\n", hdr->wpr_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
128
hdr->mmu_mem_range);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
130
hdr->regions.no_regions);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
132
for (i = 0; i < ARRAY_SIZE(hdr->regions.region_props); i++) {
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
135
hdr->regions.region_props[i].start_addr);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
137
hdr->regions.region_props[i].end_addr);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
139
hdr->regions.region_props[i].region_id);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
141
hdr->regions.region_props[i].read_mask);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
143
hdr->regions.region_props[i].write_mask);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
145
hdr->regions.region_props[i].client_mask);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
149
hdr->ucode_blob_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
151
hdr->ucode_blob_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
153
hdr->vpr_desc.vpr_enabled);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
155
hdr->vpr_desc.vpr_start);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
157
hdr->vpr_desc.vpr_end);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
159
hdr->vpr_desc.hdcp_policies);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
163
flcn_acr_desc_v1_dump(struct nvkm_subdev *subdev, struct flcn_acr_desc_v1 *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
168
nvkm_debug(subdev, "\twprRegionId : %d\n", hdr->wpr_region_id);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
169
nvkm_debug(subdev, "\twprOffset : 0x%x\n", hdr->wpr_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
171
hdr->mmu_memory_range);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
173
hdr->regions.no_regions);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
175
for (i = 0; i < ARRAY_SIZE(hdr->regions.region_props); i++) {
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
178
hdr->regions.region_props[i].start_addr);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
180
hdr->regions.region_props[i].end_addr);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
182
hdr->regions.region_props[i].region_id);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
184
hdr->regions.region_props[i].read_mask);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
186
hdr->regions.region_props[i].write_mask);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
188
hdr->regions.region_props[i].client_mask);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
190
hdr->regions.region_props[i].shadow_mem_start_addr);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
194
hdr->ucode_blob_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
196
hdr->ucode_blob_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
198
hdr->vpr_desc.vpr_enabled);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
200
hdr->vpr_desc.vpr_start);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
202
hdr->vpr_desc.vpr_end);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
204
hdr->vpr_desc.hdcp_policies);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
26
wpr_header_dump(struct nvkm_subdev *subdev, const struct wpr_header *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
29
nvkm_debug(subdev, "\tfalconID : %d\n", hdr->falcon_id);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
30
nvkm_debug(subdev, "\tlsbOffset : 0x%x\n", hdr->lsb_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
31
nvkm_debug(subdev, "\tbootstrapOwner: %d\n", hdr->bootstrap_owner);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
32
nvkm_debug(subdev, "\tlazyBootstrap : %d\n", hdr->lazy_bootstrap);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
33
nvkm_debug(subdev, "\tstatus : %d\n", hdr->status);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
37
wpr_header_v1_dump(struct nvkm_subdev *subdev, const struct wpr_header_v1 *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
40
nvkm_debug(subdev, "\tfalconID : %d\n", hdr->falcon_id);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
41
nvkm_debug(subdev, "\tlsbOffset : 0x%x\n", hdr->lsb_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
42
nvkm_debug(subdev, "\tbootstrapOwner: %d\n", hdr->bootstrap_owner);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
43
nvkm_debug(subdev, "\tlazyBootstrap : %d\n", hdr->lazy_bootstrap);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
44
nvkm_debug(subdev, "\tbinVersion : %d\n", hdr->bin_version);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
45
nvkm_debug(subdev, "\tstatus : %d\n", hdr->status);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
49
wpr_generic_header_dump(struct nvkm_subdev *subdev, const struct wpr_generic_header *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
52
nvkm_debug(subdev, "\tidentifier : %04x\n", hdr->identifier);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
53
nvkm_debug(subdev, "\tversion : %04x\n", hdr->version);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
54
nvkm_debug(subdev, "\tsize : %08x\n", hdr->size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
58
wpr_header_v2_dump(struct nvkm_subdev *subdev, const struct wpr_header_v2 *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
60
wpr_generic_header_dump(subdev, &hdr->hdr);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
61
wpr_header_v1_dump(subdev, &hdr->wpr);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
65
lsb_header_v2_dump(struct nvkm_subdev *subdev, struct lsb_header_v2 *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
67
wpr_generic_header_dump(subdev, &hdr->hdr);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
69
nvkm_debug(subdev, "\tucodeOff : 0x%x\n", hdr->ucode_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
70
nvkm_debug(subdev, "\tucodeSize : 0x%x\n", hdr->ucode_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
71
nvkm_debug(subdev, "\tdataSize : 0x%x\n", hdr->data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
72
nvkm_debug(subdev, "\tblCodeSize : 0x%x\n", hdr->bl_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
73
nvkm_debug(subdev, "\tblImemOff : 0x%x\n", hdr->bl_imem_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
74
nvkm_debug(subdev, "\tblDataOff : 0x%x\n", hdr->bl_data_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
75
nvkm_debug(subdev, "\tblDataSize : 0x%x\n", hdr->bl_data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
76
nvkm_debug(subdev, "\treserved0 : %08x\n", hdr->rsvd0);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
77
nvkm_debug(subdev, "\tappCodeOff : 0x%x\n", hdr->app_code_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
78
nvkm_debug(subdev, "\tappCodeSize : 0x%x\n", hdr->app_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
79
nvkm_debug(subdev, "\tappDataOff : 0x%x\n", hdr->app_data_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
80
nvkm_debug(subdev, "\tappDataSize : 0x%x\n", hdr->app_data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
81
nvkm_debug(subdev, "\tappImemOffset : 0x%x\n", hdr->app_imem_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
82
nvkm_debug(subdev, "\tappDmemOffset : 0x%x\n", hdr->app_dmem_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
83
nvkm_debug(subdev, "\tflags : 0x%x\n", hdr->flags);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
84
nvkm_debug(subdev, "\tmonitorCodeOff: 0x%x\n", hdr->monitor_code_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
85
nvkm_debug(subdev, "\tmonitorDataOff: 0x%x\n", hdr->monitor_data_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
86
nvkm_debug(subdev, "\tmanifestOffset: 0x%x\n", hdr->manifest_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
90
lsb_header_tail_dump(struct nvkm_subdev *subdev, struct lsb_header_tail *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
93
nvkm_debug(subdev, "\tucodeOff : 0x%x\n", hdr->ucode_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
94
nvkm_debug(subdev, "\tucodeSize : 0x%x\n", hdr->ucode_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
95
nvkm_debug(subdev, "\tdataSize : 0x%x\n", hdr->data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
96
nvkm_debug(subdev, "\tblCodeSize : 0x%x\n", hdr->bl_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
97
nvkm_debug(subdev, "\tblImemOff : 0x%x\n", hdr->bl_imem_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
98
nvkm_debug(subdev, "\tblDataOff : 0x%x\n", hdr->bl_data_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/acr.c
99
nvkm_debug(subdev, "\tblDataSize : 0x%x\n", hdr->bl_data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
100
nvkm_debug(subdev, "\tnonSecCodeSize: 0x%x\n", hdr->non_sec_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
101
nvkm_debug(subdev, "\tsecCodeOff : 0x%x\n", hdr->sec_code_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
102
nvkm_debug(subdev, "\tsecCodeSize : 0x%x\n", hdr->sec_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
103
nvkm_debug(subdev, "\tcodeEntryPoint: 0x%x\n", hdr->code_entry_point);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
104
nvkm_debug(subdev, "\tdataDmaBase : 0x%llx\n", hdr->data_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
105
nvkm_debug(subdev, "\tdataSize : 0x%x\n", hdr->data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
110
const struct flcn_bl_dmem_desc_v2 *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
112
flcn_bl_dmem_desc_v1_dump(subdev, (void *)hdr);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
113
nvkm_debug(subdev, "\targc : 0x%08x\n", hdr->argc);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
114
nvkm_debug(subdev, "\targv : 0x%08x\n", hdr->argv);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
26
loader_config_dump(struct nvkm_subdev *subdev, const struct loader_config *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
29
nvkm_debug(subdev, "\tdmaIdx : %d\n", hdr->dma_idx);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
30
nvkm_debug(subdev, "\tcodeDmaBase : 0x%xx\n", hdr->code_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
31
nvkm_debug(subdev, "\tcodeSizeTotal : 0x%x\n", hdr->code_size_total);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
32
nvkm_debug(subdev, "\tcodeSizeToLoad: 0x%x\n", hdr->code_size_to_load);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
33
nvkm_debug(subdev, "\tcodeEntryPoint: 0x%x\n", hdr->code_entry_point);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
34
nvkm_debug(subdev, "\tdataDmaBase : 0x%x\n", hdr->data_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
35
nvkm_debug(subdev, "\tdataSize : 0x%x\n", hdr->data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
36
nvkm_debug(subdev, "\toverlayDmaBase: 0x%x\n", hdr->overlay_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
37
nvkm_debug(subdev, "\targc : 0x%08x\n", hdr->argc);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
38
nvkm_debug(subdev, "\targv : 0x%08x\n", hdr->argv);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
39
nvkm_debug(subdev, "\tcodeDmaBase1 : 0x%x\n", hdr->code_dma_base1);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
40
nvkm_debug(subdev, "\tdataDmaBase1 : 0x%x\n", hdr->data_dma_base1);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
41
nvkm_debug(subdev, "\tovlyDmaBase1 : 0x%x\n", hdr->overlay_dma_base1);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
46
const struct loader_config_v1 *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
49
nvkm_debug(subdev, "\treserved : 0x%08x\n", hdr->reserved);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
50
nvkm_debug(subdev, "\tdmaIdx : %d\n", hdr->dma_idx);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
51
nvkm_debug(subdev, "\tcodeDmaBase : 0x%llxx\n", hdr->code_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
52
nvkm_debug(subdev, "\tcodeSizeTotal : 0x%x\n", hdr->code_size_total);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
53
nvkm_debug(subdev, "\tcodeSizeToLoad: 0x%x\n", hdr->code_size_to_load);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
54
nvkm_debug(subdev, "\tcodeEntryPoint: 0x%x\n", hdr->code_entry_point);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
55
nvkm_debug(subdev, "\tdataDmaBase : 0x%llx\n", hdr->data_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
56
nvkm_debug(subdev, "\tdataSize : 0x%x\n", hdr->data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
57
nvkm_debug(subdev, "\toverlayDmaBase: 0x%llx\n", hdr->overlay_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
58
nvkm_debug(subdev, "\targc : 0x%08x\n", hdr->argc);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
59
nvkm_debug(subdev, "\targv : 0x%08x\n", hdr->argv);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
64
const struct flcn_bl_dmem_desc *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
68
hdr->reserved[0], hdr->reserved[1], hdr->reserved[2],
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
69
hdr->reserved[3]);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
71
hdr->signature[0], hdr->signature[1], hdr->signature[2],
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
72
hdr->signature[3]);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
73
nvkm_debug(subdev, "\tctxDma : %d\n", hdr->ctx_dma);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
74
nvkm_debug(subdev, "\tcodeDmaBase : 0x%x\n", hdr->code_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
75
nvkm_debug(subdev, "\tnonSecCodeOff : 0x%x\n", hdr->non_sec_code_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
76
nvkm_debug(subdev, "\tnonSecCodeSize: 0x%x\n", hdr->non_sec_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
77
nvkm_debug(subdev, "\tsecCodeOff : 0x%x\n", hdr->sec_code_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
78
nvkm_debug(subdev, "\tsecCodeSize : 0x%x\n", hdr->sec_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
79
nvkm_debug(subdev, "\tcodeEntryPoint: 0x%x\n", hdr->code_entry_point);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
80
nvkm_debug(subdev, "\tdataDmaBase : 0x%x\n", hdr->data_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
81
nvkm_debug(subdev, "\tdataSize : 0x%x\n", hdr->data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
82
nvkm_debug(subdev, "\tcodeDmaBase1 : 0x%x\n", hdr->code_dma_base1);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
83
nvkm_debug(subdev, "\tdataDmaBase1 : 0x%x\n", hdr->data_dma_base1);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
88
const struct flcn_bl_dmem_desc_v1 *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
92
hdr->reserved[0], hdr->reserved[1], hdr->reserved[2],
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
93
hdr->reserved[3]);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
95
hdr->signature[0], hdr->signature[1], hdr->signature[2],
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
96
hdr->signature[3]);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
97
nvkm_debug(subdev, "\tctxDma : %d\n", hdr->ctx_dma);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
98
nvkm_debug(subdev, "\tcodeDmaBase : 0x%llx\n", hdr->code_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/flcn.c
99
nvkm_debug(subdev, "\tnonSecCodeOff : 0x%x\n", hdr->non_sec_code_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
28
const struct nvfw_bin_hdr *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
30
nvkm_debug(subdev, "\tbinMagic : 0x%08x\n", hdr->bin_magic);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
31
nvkm_debug(subdev, "\tbinVer : %d\n", hdr->bin_ver);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
32
nvkm_debug(subdev, "\tbinSize : %d\n", hdr->bin_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
33
nvkm_debug(subdev, "\theaderOffset : 0x%x\n", hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
34
nvkm_debug(subdev, "\tdataOffset : 0x%x\n", hdr->data_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
35
nvkm_debug(subdev, "\tdataSize : 0x%x\n", hdr->data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
36
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
42
const struct nvfw_bl_desc *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
44
nvkm_debug(subdev, "\tstartTag : 0x%x\n", hdr->start_tag);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
45
nvkm_debug(subdev, "\tdmemLoadOff : 0x%x\n", hdr->dmem_load_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
46
nvkm_debug(subdev, "\tcodeOff : 0x%x\n", hdr->code_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
47
nvkm_debug(subdev, "\tcodeSize : 0x%x\n", hdr->code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
48
nvkm_debug(subdev, "\tdataOff : 0x%x\n", hdr->data_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
49
nvkm_debug(subdev, "\tdataSize : 0x%x\n", hdr->data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/fw.c
50
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
100
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
28
const struct nvfw_hs_header *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
30
nvkm_debug(subdev, "\tsigDbgOffset : 0x%x\n", hdr->sig_dbg_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
31
nvkm_debug(subdev, "\tsigDbgSize : 0x%x\n", hdr->sig_dbg_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
32
nvkm_debug(subdev, "\tsigProdOffset : 0x%x\n", hdr->sig_prod_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
33
nvkm_debug(subdev, "\tsigProdSize : 0x%x\n", hdr->sig_prod_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
34
nvkm_debug(subdev, "\tpatchLoc : 0x%x\n", hdr->patch_loc);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
35
nvkm_debug(subdev, "\tpatchSig : 0x%x\n", hdr->patch_sig);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
36
nvkm_debug(subdev, "\thdrOffset : 0x%x\n", hdr->hdr_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
37
nvkm_debug(subdev, "\thdrSize : 0x%x\n", hdr->hdr_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
38
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
44
const struct nvfw_hs_header_v2 *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
47
nvkm_debug(subdev, "\tsigProdOffset : 0x%x\n", hdr->sig_prod_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
48
nvkm_debug(subdev, "\tsigProdSize : 0x%x\n", hdr->sig_prod_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
49
nvkm_debug(subdev, "\tpatchLoc : 0x%x\n", hdr->patch_loc);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
50
nvkm_debug(subdev, "\tpatchSig : 0x%x\n", hdr->patch_sig);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
51
nvkm_debug(subdev, "\tmetadataOffset : 0x%x\n", hdr->meta_data_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
52
nvkm_debug(subdev, "\tmetadataSize : 0x%x\n", hdr->meta_data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
53
nvkm_debug(subdev, "\tnumSig : 0x%x\n", hdr->num_sig);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
54
nvkm_debug(subdev, "\theaderOffset : 0x%x\n", hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
55
nvkm_debug(subdev, "\theaderSize : 0x%x\n", hdr->header_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
56
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
62
const struct nvfw_hs_load_header *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
67
hdr->non_sec_code_off);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
69
hdr->non_sec_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
70
nvkm_debug(subdev, "\tdataDmaBase : 0x%x\n", hdr->data_dma_base);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
71
nvkm_debug(subdev, "\tdataSize : 0x%x\n", hdr->data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
72
nvkm_debug(subdev, "\tnumApps : 0x%x\n", hdr->num_apps);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
73
for (i = 0; i < hdr->num_apps; i++) {
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
76
hdr->apps[(i * 2) + 0], hdr->apps[(i * 2) + 1]);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
79
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
85
const struct nvfw_hs_load_header_v2 *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
89
nvkm_debug(subdev, "\tosCodeOffset : 0x%x\n", hdr->os_code_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
90
nvkm_debug(subdev, "\tosCodeSize : 0x%x\n", hdr->os_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
91
nvkm_debug(subdev, "\tosDataOffset : 0x%x\n", hdr->os_data_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
92
nvkm_debug(subdev, "\tosDataSize : 0x%x\n", hdr->os_data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
93
nvkm_debug(subdev, "\tnumApps : 0x%x\n", hdr->num_apps);
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
94
for (i = 0; i < hdr->num_apps; i++) {
drivers/gpu/drm/nouveau/nvkm/nvfw/hs.c
97
hdr->app[i].offset, hdr->app[i].size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
100
hdr->nb_imem_overlays);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
101
for (i = 0; i < ARRAY_SIZE(hdr->load_ovl); i++) {
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
103
hdr->load_ovl[i].start, hdr->load_ovl[i].size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
105
nvkm_debug(subdev, "\tcompressed : %d\n", hdr->compressed);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
107
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
113
const struct nvfw_ls_desc_v2 *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
118
nvkm_debug(subdev, "\tdescriptorSize : %d\n", hdr->descriptor_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
119
nvkm_debug(subdev, "\timageSize : %d\n", hdr->image_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
120
nvkm_debug(subdev, "\ttoolsVersion : 0x%x\n", hdr->tools_version);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
121
nvkm_debug(subdev, "\tappVersion : 0x%x\n", hdr->app_version);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
123
date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
127
nvkm_debug(subdev, "\tsecureBootloader : 0x%x\n", hdr->secure_bootloader);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
128
nvkm_debug(subdev, "\tbootloaderStartOffset: 0x%x\n", hdr->bootloader_start_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
129
nvkm_debug(subdev, "\tbootloaderSize : 0x%x\n", hdr->bootloader_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
130
nvkm_debug(subdev, "\tbootloaderImemOffset : 0x%x\n", hdr->bootloader_imem_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
131
nvkm_debug(subdev, "\tbootloaderEntryPoint : 0x%x\n", hdr->bootloader_entry_point);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
133
nvkm_debug(subdev, "\tappStartOffset : 0x%x\n", hdr->app_start_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
134
nvkm_debug(subdev, "\tappSize : 0x%x\n", hdr->app_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
135
nvkm_debug(subdev, "\tappImemOffset : 0x%x\n", hdr->app_imem_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
136
nvkm_debug(subdev, "\tappImemEntry : 0x%x\n", hdr->app_imem_entry);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
137
nvkm_debug(subdev, "\tappDmemOffset : 0x%x\n", hdr->app_dmem_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
138
nvkm_debug(subdev, "\tappResidentCodeOffset: 0x%x\n", hdr->app_resident_code_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
139
nvkm_debug(subdev, "\tappResidentCodeSize : 0x%x\n", hdr->app_resident_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
140
nvkm_debug(subdev, "\tappResidentDataOffset: 0x%x\n", hdr->app_resident_data_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
141
nvkm_debug(subdev, "\tappResidentDataSize : 0x%x\n", hdr->app_resident_data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
143
nvkm_debug(subdev, "\tnbImemOverlays : %d\n", hdr->nb_imem_overlays);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
144
nvkm_debug(subdev, "\tnbDmemOverlays : %d\n", hdr->nb_dmem_overlays);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
145
for (i = 0; i < ARRAY_SIZE(hdr->load_ovl); i++) {
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
147
hdr->load_ovl[i].start, hdr->load_ovl[i].size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
150
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
156
const struct nvfw_ls_hsbl_bin_hdr *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
159
nvkm_debug(subdev, "\tbinMagic : 0x%08x\n", hdr->bin_magic);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
160
nvkm_debug(subdev, "\tbinVer : %d\n", hdr->bin_ver);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
161
nvkm_debug(subdev, "\tbinSize : %d\n", hdr->bin_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
162
nvkm_debug(subdev, "\theaderOffset : 0x%x\n", hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
163
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
169
const struct nvfw_ls_hsbl_hdr *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
172
nvkm_debug(subdev, "\tsigProdOffset : 0x%x\n", hdr->sig_prod_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
173
nvkm_debug(subdev, "\tsigProdSize : 0x%x\n", hdr->sig_prod_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
174
nvkm_debug(subdev, "\tpatchLoc : 0x%x\n", hdr->patch_loc);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
175
nvkm_debug(subdev, "\tpatchSig : 0x%x\n", hdr->patch_sig);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
176
nvkm_debug(subdev, "\tmetadataOffset : 0x%x\n", hdr->meta_data_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
177
nvkm_debug(subdev, "\tmetadataSize : 0x%x\n", hdr->meta_data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
178
nvkm_debug(subdev, "\tnumSig : 0x%x\n", hdr->num_sig);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
179
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
27
const struct nvfw_ls_desc_head *hdr)
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
33
hdr->descriptor_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
34
nvkm_debug(subdev, "\timageSize : %d\n", hdr->image_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
36
hdr->tools_version);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
37
nvkm_debug(subdev, "\tappVersion : 0x%x\n", hdr->app_version);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
39
date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
44
hdr->bootloader_start_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
46
hdr->bootloader_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
48
hdr->bootloader_imem_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
50
hdr->bootloader_entry_point);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
53
hdr->app_start_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
54
nvkm_debug(subdev, "\tappSize : 0x%x\n", hdr->app_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
56
hdr->app_imem_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
58
hdr->app_imem_entry);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
60
hdr->app_dmem_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
62
hdr->app_resident_code_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
64
hdr->app_resident_code_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
66
hdr->app_resident_data_offset);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
68
hdr->app_resident_data_size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
74
const struct nvfw_ls_desc *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
77
nvfw_ls_desc_head(subdev, &hdr->head);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
79
nvkm_debug(subdev, "\tnbOverlays : %d\n", hdr->nb_overlays);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
80
for (i = 0; i < ARRAY_SIZE(hdr->load_ovl); i++) {
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
82
hdr->load_ovl[i].start, hdr->load_ovl[i].size);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
84
nvkm_debug(subdev, "\tcompressed : %d\n", hdr->compressed);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
86
return hdr;
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
92
const struct nvfw_ls_desc_v1 *hdr = data;
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
95
nvfw_ls_desc_head(subdev, &hdr->head);
drivers/gpu/drm/nouveau/nvkm/nvfw/ls.c
98
hdr->nb_imem_overlays);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
116
hdr->hs_fmc_params.hs_fmc = 1;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
117
hdr->hs_fmc_params.pkc_algo = 0;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
118
hdr->hs_fmc_params.pkc_algo_version = 1;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
119
hdr->hs_fmc_params.engid_mask = lsfw->engine_id;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
120
hdr->hs_fmc_params.ucode_id = lsfw->ucode_id;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
121
hdr->hs_fmc_params.fuse_ver = lsfw->fuse_ver;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
127
nvkm_wobj(acr->wpr, lsfw->offset.lsb, hdr, sizeof(*hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
128
kvfree(hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
136
struct wpr_header_v2 hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
151
hdr.hdr.identifier = WPR_GENERIC_HEADER_ID_LSF_WPR_HEADER;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
152
hdr.hdr.version = 2;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
153
hdr.hdr.size = sizeof(hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
154
hdr.wpr.falcon_id = lsfw->id;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
155
hdr.wpr.lsb_offset = lsfw->offset.lsb;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
156
hdr.wpr.bootstrap_owner = NVKM_ACR_LSF_GSPLITE;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
157
hdr.wpr.lazy_bootstrap = 1;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
158
hdr.wpr.bin_version = sig->ls_ucode_version;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
159
hdr.wpr.status = WPR_HEADER_V1_STATUS_COPY;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
162
nvkm_wobj(acr->wpr, offset, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
163
offset += sizeof(hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
180
hdr.hdr.identifier = WPR_GENERIC_HEADER_ID_LSF_WPR_HEADER;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
181
hdr.hdr.version = 2;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
182
hdr.hdr.size = sizeof(hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
183
hdr.wpr.falcon_id = WPR_HEADER_V1_FALCON_ID_INVALID;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
184
nvkm_wobj(acr->wpr, offset, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
220
const struct wpr_header_v2 *hdr = (void *)acr->wpr_fw->data;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
222
while (hdr->wpr.falcon_id != WPR_HEADER_V1_FALCON_ID_INVALID) {
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
223
wpr_header_v2_dump(&acr->subdev, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
224
if (!nvkm_acr_lsfw_add(NULL, acr, NULL, (hdr++)->wpr.falcon_id))
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
30
struct wpr_header_v2 hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
40
nvkm_robj(acr->wpr, offset, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
41
wpr_header_v2_dump(&acr->subdev, &hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
44
if (lsfw->id != hdr.wpr.falcon_id)
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
47
nvkm_robj(acr->wpr, hdr.wpr.lsb_offset, lsb, sizeof(*lsb));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
54
offset += sizeof(hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
55
} while (hdr.wpr.falcon_id != WPR_HEADER_V1_FALCON_ID_INVALID);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
64
struct lsb_header_v2 *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
67
if (WARN_ON(lsfw->sig->size != sizeof(hdr->signature)))
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
70
hdr = kvzalloc_obj(*hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
71
if (!hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
74
hdr->hdr.identifier = WPR_GENERIC_HEADER_ID_LSF_LSB_HEADER;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
75
hdr->hdr.version = 2;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
76
hdr->hdr.size = sizeof(*hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
78
memcpy(&hdr->signature, lsfw->sig->data, lsfw->sig->size);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
79
hdr->ucode_off = lsfw->offset.img;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
80
hdr->ucode_size = lsfw->ucode_size;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
81
hdr->data_size = lsfw->data_size;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
82
hdr->bl_code_size = lsfw->bootloader_size;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
83
hdr->bl_imem_off = lsfw->bootloader_imem_offset;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
84
hdr->bl_data_off = lsfw->offset.bld;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
85
hdr->bl_data_size = lsfw->bl_data_size;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
86
hdr->app_code_off = lsfw->app_start_offset + lsfw->app_resident_code_offset;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
87
hdr->app_code_size = ALIGN(lsfw->app_resident_code_size, 0x100);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
88
hdr->app_data_off = lsfw->app_start_offset + lsfw->app_resident_data_offset;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
89
hdr->app_data_size = ALIGN(lsfw->app_resident_data_size, 0x100);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
90
hdr->app_imem_offset = lsfw->app_imem_offset;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
91
hdr->app_dmem_offset = lsfw->app_dmem_offset;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
92
hdr->flags = lsfw->func->flags;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
93
hdr->monitor_code_offset = 0;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
94
hdr->monitor_data_offset = 0;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
95
hdr->manifest_offset = 0;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/ga102.c
99
.fw.img = hdr->hs_fmc_params.pkc_signature,
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
100
hdr->bl_code_size = lsfw->bootloader_size;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
101
hdr->bl_imem_off = lsfw->bootloader_imem_offset;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
102
hdr->bl_data_off = lsfw->offset.bld;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
103
hdr->bl_data_size = lsfw->bl_data_size;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
104
hdr->app_code_off = lsfw->app_start_offset +
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
106
hdr->app_code_size = lsfw->app_resident_code_size;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
107
hdr->app_data_off = lsfw->app_start_offset +
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
109
hdr->app_data_size = lsfw->app_resident_data_size;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
110
hdr->flags = lsfw->func->flags;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
116
struct lsb_header hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
118
if (WARN_ON(lsfw->sig->size != sizeof(hdr.signature)))
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
121
memcpy(&hdr.signature, lsfw->sig->data, lsfw->sig->size);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
122
gm200_acr_wpr_build_lsb_tail(lsfw, &hdr.tail);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
124
nvkm_wobj(acr->wpr, lsfw->offset.lsb, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
137
struct wpr_header hdr = {
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
146
nvkm_wobj(acr->wpr, offset, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
147
offset += sizeof(hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
211
const struct wpr_header *hdr = (void *)acr->wpr_fw->data;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
214
while (hdr->falcon_id != WPR_HEADER_V0_FALCON_ID_INVALID) {
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
215
wpr_header_dump(&acr->subdev, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
216
lsfw = nvkm_acr_lsfw_add(NULL, acr, NULL, (hdr++)->falcon_id);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
68
struct wpr_header hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
74
nvkm_robj(acr->wpr, offset, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
75
wpr_header_dump(subdev, &hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
78
if (lsfw->id != hdr.falcon_id)
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
81
nvkm_robj(acr->wpr, hdr.lsb_offset, &lsb, sizeof(lsb));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
87
offset += sizeof(hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
88
} while (hdr.falcon_id != WPR_HEADER_V0_FALCON_ID_INVALID);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
95
struct lsb_header_tail *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
97
hdr->ucode_off = lsfw->offset.img;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
98
hdr->ucode_size = lsfw->ucode_size;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gm200.c
99
hdr->data_size = lsfw->data_size;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
165
const struct wpr_header_v1 *hdr = (void *)acr->wpr_fw->data;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
168
while (hdr->falcon_id != WPR_HEADER_V1_FALCON_ID_INVALID) {
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
169
wpr_header_v1_dump(&acr->subdev, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
170
lsfw = nvkm_acr_lsfw_add(NULL, acr, NULL, (hdr++)->falcon_id);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
35
struct wpr_header_v1 hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
41
nvkm_robj(acr->wpr, offset, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
42
wpr_header_v1_dump(&acr->subdev, &hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
45
if (lsfw->id != hdr.falcon_id)
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
48
nvkm_robj(acr->wpr, hdr.lsb_offset, &lsb, sizeof(lsb));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
55
offset += sizeof(hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
56
} while (hdr.falcon_id != WPR_HEADER_V1_FALCON_ID_INVALID);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
64
struct lsb_header_v1 hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
66
if (WARN_ON(lsfw->sig->size != sizeof(hdr.signature)))
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
69
memcpy(&hdr.signature, lsfw->sig->data, lsfw->sig->size);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
70
gm200_acr_wpr_build_lsb_tail(lsfw, &hdr.tail);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
72
nvkm_wobj(acr->wpr, lsfw->offset.lsb, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
86
struct wpr_header_v1 hdr = {
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
96
nvkm_wobj(acr->wpr, offset, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/gp102.c
97
offset += sizeof(hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
219
const struct nvfw_ls_hsbl_bin_hdr *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
227
hdr = nvfw_ls_hsbl_bin_hdr(subdev, hsbl->data);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
228
hshdr = nvfw_ls_hsbl_hdr(subdev, hsbl->data + hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
258
const struct nvfw_bin_hdr *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
270
hdr = nvfw_bin_hdr(subdev, bl->data);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
271
desc = nvfw_bl_desc(subdev, bl->data + hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
272
bldata = (void *)(bl->data + hdr->data_offset);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
344
} *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
355
hdr = (const void *)bl->data;
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
356
bldata = (void *)(bl->data + hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/lsfw.c
362
lsfw->bootloader_size = ALIGN(hdr->header_size, 256);
drivers/gpu/drm/nouveau/nvkm/subdev/acr/tu102.c
55
struct wpr_header_v1 hdr = {
drivers/gpu/drm/nouveau/nvkm/subdev/acr/tu102.c
65
nvkm_wobj(acr->wpr, offset, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/acr/tu102.c
66
offset += sizeof(hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
103
nvbios_M0203Em(struct nvkm_bios *bios, u8 ramcfg, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
111
if (!nvbios_M0203Tp(bios, ver, hdr, &cnt, &len, &M0203T)) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
116
while ((data = nvbios_M0203Ep(bios, ++idx, ver, hdr, info))) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
29
nvbios_M0203Te(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
41
*hdr = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
55
nvbios_M0203Tp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
58
u32 data = nvbios_M0203Te(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
72
nvbios_M0203Ee(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
75
u32 data = nvbios_M0203Te(bios, ver, hdr, &cnt, &len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
77
data = data + *hdr + idx * len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
78
*hdr = len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
85
nvbios_M0203Ep(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0203.c
88
u32 data = nvbios_M0203Ee(bios, idx, ver, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
108
nvbios_M0205Se(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
112
u32 data = nvbios_M0205Ee(bios, ent, ver, hdr, &cnt, &len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
114
data = data + *hdr + idx * len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
115
*hdr = len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
122
nvbios_M0205Sp(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
125
u32 data = nvbios_M0205Se(bios, ent, idx, ver, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
30
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
42
*hdr = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
59
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
62
u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, snr, ssz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
76
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
79
u32 data = nvbios_M0205Te(bios, ver, hdr, cnt, len, &snr, &ssz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
81
data = data + *hdr + idx * (*len + (snr * ssz));
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
82
*hdr = *len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
92
u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0205.c
95
u32 data = nvbios_M0205Ee(bios, idx, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
101
data = data + *hdr + idx * len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
102
*hdr = len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
109
nvbios_M0209Sp(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
114
u32 data = nvbios_M0209Ep(bios, ent, ver, hdr, &cnt, &len, &M0209E);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
116
u32 i, data = nvbios_M0209Se(bios, ent, idx, ver, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
30
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
42
*hdr = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
59
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
62
u32 data = nvbios_M0209Te(bios, ver, hdr, cnt, len, &snr, &ssz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
64
data = data + *hdr + idx * (*len + (snr * ssz));
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
65
*hdr = *len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
75
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_M0209E *info)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
77
u32 data = nvbios_M0209Ee(bios, idx, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
95
nvbios_M0209Se(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c
99
u32 data = nvbios_M0209Ee(bios, ent, ver, hdr, &cnt, &len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c
30
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c
42
*hdr = nvbios_rd08(bios, data + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c
60
u8 hdr, cnt, xnr, xsz;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c
61
u32 data = nvbios_P0260Te(bios, ver, &hdr, &cnt, len, &xnr, &xsz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c
63
return data + hdr + (idx * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c
86
u8 hdr, cnt, len, xnr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c
87
u32 data = nvbios_P0260Te(bios, ver, &hdr, &cnt, &len, &xnr, xsz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c
89
return data + hdr + (cnt * len) + (idx * *xsz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c
94
nvbios_P0260Xp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/P0260.c
97
u32 data = nvbios_P0260Xe(bios, idx, ver, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
102
u32 data, u8 *ver, u8 *hdr, u8 cnt, u8 len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
105
data = data + *hdr + (idx * len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
106
*hdr = len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
114
u32 data, u8 *ver, u8 *hdr, u8 cnt, u8 len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
117
data = nvbios_boostSe(bios, idx, data, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
30
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
43
*hdr = nvbios_rd08(bios, boost + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
60
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
63
u32 data = nvbios_boostTe(bios, ver, hdr, cnt, len, &snr, &ssz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
65
data = data + *hdr + (idx * (*len + (snr * ssz)));
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
66
*hdr = *len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
76
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
78
u32 data = nvbios_boostEe(bios, idx, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
90
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_boostE *info)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/boost.c
93
while ((data = nvbios_boostEp(bios, idx++, ver, hdr, cnt, len, info))) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c
29
nvbios_connTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c
31
u32 dcb = dcb_table(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c
32
if (dcb && *ver >= 0x30 && *hdr >= 0x16) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c
36
*hdr = nvbios_rd08(bios, data + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c
46
nvbios_connTp(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c
49
u32 data = nvbios_connTe(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c
64
u8 hdr, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c
65
u32 data = nvbios_connTe(bios, ver, &hdr, &cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/conn.c
67
return data + hdr + (idx * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
100
u32 data = nvbios_cstepTe(bios, ver, hdr, &cnt, &len, &xnr, &xsz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
102
data = data + *hdr + (cnt * len) + (idx * xsz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
103
*hdr = xsz;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
110
nvbios_cstepXp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
113
u32 data = nvbios_cstepXe(bios, idx, ver, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
30
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *xnr, u8 *xsz)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
43
*hdr = nvbios_rd08(bios, cstep + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
59
nvbios_cstepEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
62
u32 data = nvbios_cstepTe(bios, ver, hdr, &cnt, &len, &xnr, &xsz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
64
data = data + *hdr + (idx * len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
65
*hdr = len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
72
nvbios_cstepEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
75
u32 data = nvbios_cstepEe(bios, idx, ver, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
85
nvbios_cstepEm(struct nvkm_bios *bios, u8 pstate, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
89
while ((data = nvbios_cstepEp(bios, idx++, ver, hdr, info))) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/cstep.c
97
nvbios_cstepXe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c
101
u8 hdr, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c
102
u16 dcb = dcb_table(bios, ver, &hdr, &cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c
104
return dcb + hdr + (idx * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c
28
dcb_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c
49
*hdr = nvbios_rd08(bios, dcb + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c
58
*hdr = 8;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c
67
*hdr = 4;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
100
if (data && *hdr >= 0x0a) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
108
if (*hdr >= 0x0c)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
117
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
120
while ((data = nvbios_outp_parse(bios, idx++, ver, hdr, cnt, len, info)) || *ver) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
131
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
134
return outp + *hdr + (idx * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
140
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *info)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
142
u16 data = nvbios_ocfg_entry(bios, outp, idx, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
154
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ocfg *info)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
157
while ((data = nvbios_ocfg_parse(bios, outp, idx++, ver, hdr, cnt, len, info))) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
30
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *sub)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
43
*hdr = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
61
u8 hdr, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
62
u16 data = nvbios_disp_table(bios, ver, &hdr, &cnt, len, sub);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
64
return data + hdr + (idx * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
83
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
86
u16 data = nvbios_disp_parse(bios, idx, ver, len, hdr, &info);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
97
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_outp *info)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c
99
u16 data = nvbios_outp_entry(bios, idx, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
139
u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
143
while ((data = nvbios_dpout_parse(bios, idx++, ver, hdr, cnt, len, info)) || *ver) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
154
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
157
outp = nvbios_dp_table(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
158
*hdr = *hdr + (*len * * cnt);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
165
return outp + *hdr + (idx * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
172
u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
175
u16 data = nvbios_dpcfg_entry(bios, outp, idx, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
208
u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
217
if (*ver >= 0x40 && *ver <= 0x41 && *hdr >= 0x12)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
224
ver, hdr, cnt, len))) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
231
return nvbios_dpcfg_parse(bios, outp, idx, ver, hdr, cnt, len, info);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
29
nvbios_dp_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
45
*hdr = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
61
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
63
u16 data = nvbios_dp_table(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
65
u16 outp = nvbios_rd16(bios, data + *hdr + idx * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
70
*hdr = nvbios_rd08(bios, data + 0x04);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
77
*hdr = nvbios_rd08(bios, data + 0x04);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
92
u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c
95
u16 data = nvbios_dpout_entry(bios, idx, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c
29
extdev_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c
43
*hdr = nvbios_rd08(bios, extdev + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c
46
return extdev + *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c
52
u8 ver, hdr, len, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c
53
u16 data = extdev_table(bios, &ver, &hdr, &len, &cnt);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c
54
if (data && ver == 0x40 && hdr >= 5) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c
55
u8 flags = nvbios_rd08(bios, data - hdr + 4);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c
65
u8 hdr, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c
66
u16 extdev = extdev_table(bios, ver, &hdr, len, &cnt);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c
29
nvbios_fan_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c
42
*hdr = nvbios_rd08(bios, fan + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c
56
nvbios_fan_entry(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c
59
u32 data = nvbios_fan_table(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c
61
return data + *hdr + (idx * (*len));
drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c
68
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/fan.c
70
u32 data = nvbios_fan_entry(bios, 0, &ver, &hdr, &cnt, &len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
122
u8 hdr, cnt, i = 0;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
132
if ((data = dcb_table(bios, ver, &hdr, &cnt, len))) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
30
dcb_gpio_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
33
u16 dcb = dcb_table(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
35
if (*ver >= 0x30 && *hdr >= 0x0c)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
44
*hdr = 3;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
49
*hdr = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
63
u8 hdr, cnt, xver; /* use gpio version for xpio entry parsing */
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
67
gpio = dcb_gpio_table(bios, ver, &hdr, &cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
69
gpio = dcb_xpio_table(bios, idx, &xver, &hdr, &cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/gpio.c
72
return gpio + hdr + (ent * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c
29
dcb_i2c_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c
32
u16 dcb = dcb_table(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c
47
*hdr = nvbios_rd08(bios, i2c + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c
52
*hdr = 0;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c
63
u8 hdr, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c
64
u16 i2c = dcb_i2c_table(bios, ver, &hdr, &cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c
66
return i2c + hdr + (idx * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c
30
nvbios_iccsense_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c
48
*hdr = nvbios_rd08(bios, iccsense + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c
63
u8 ver, hdr, cnt, len, i;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c
66
table = nvbios_iccsense_table(bios, &ver, &hdr, &cnt, &len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/iccsense.c
86
entry = table + hdr + i * len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c
36
u16 hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/image.c
50
if (!(data = nvbios_pcirTp(bios, image->base, &ver, &hdr, &pcir)))
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
126
u8 ver, hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
132
conn = nvbios_connEp(bios, conn, &ver, &hdr, &connE);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
802
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
819
&ver, &hdr, &cnt, &len, &info)))
drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c
115
u8 ver, hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c
116
u16 mxm = mxm_table(bios, &ver, &hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c
117
if (mxm && hdr >= 8) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c
29
mxm_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c
40
*hdr = x.length;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c
41
if (*ver != 1 || *hdr < 3) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c
42
nvkm_warn(subdev, "BIT 'x' table %d/%d unknown\n", *ver, *hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c
78
u8 ver, hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c
79
u16 mxm = mxm_table(bios, &ver, &hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/mxm.c
80
if (mxm && hdr >= 6) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c
32
u8 ver; u16 hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c
33
u32 data = nvbios_pcirTp(bios, base, &ver, &hdr, &pcir);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/npde.c
34
if (data = (data + hdr + 0x0f) & ~0x0f, data) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c
28
nvbios_pcirTe(struct nvkm_bios *bios, u32 base, u8 *ver, u16 *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c
37
*hdr = nvbios_rd16(bios, data + 0x0a);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c
52
nvbios_pcirTp(struct nvkm_bios *bios, u32 base, u8 *ver, u16 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pcir.c
55
u32 data = nvbios_pcirTe(bios, base, ver, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
108
if (*hdr > 0x38)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
174
u8 *ver, u8 *hdr, u8 cnt, u8 len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
178
data = perfE + *hdr + (idx * len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
179
*hdr = len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
186
u8 *ver, u8 *hdr, u8 cnt, u8 len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
189
u32 data = nvbios_perfSe(bios, perfE, idx, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
205
u8 ver, hdr, cnt, len, snr, ssz;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
206
u32 perf = nvbios_perf_table(bios, &ver, &hdr, &cnt, &len, &snr, &ssz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
210
if (ver >= 0x20 && ver < 0x40 && hdr > 6)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
30
nvbios_perf_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
41
*hdr = nvbios_rd08(bios, perf + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
64
*hdr = nvbios_rd08(bios, perf + 0);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
80
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
83
u32 perf = nvbios_perf_table(bios, ver, hdr, cnt, len, &snr, &ssz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
85
perf = perf + *hdr + (idx * (*len + (snr * ssz)));
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
86
*hdr = *len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
96
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_perfE *info)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/perf.c
98
u32 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
104
*hdr = 1;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
146
u8 hdr, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
149
data = pll_limits_table(bios, ver, &hdr, &cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
151
data += hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
165
u32 addr = (data += hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
188
u8 hdr, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
191
data = pll_limits_table(bios, ver, &hdr, &cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
193
data += hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
210
u32 addr = (data += hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
81
pll_limits_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pll.c
93
*hdr = nvbios_rd08(bios, data + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c
30
nvbios_pmuTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c
40
*hdr = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c
50
nvbios_pmuEe(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c
53
u32 data = nvbios_pmuTe(bios, ver, hdr, &cnt, &len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c
55
data = data + *hdr + (idx * len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c
56
*hdr = len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c
63
nvbios_pmuEp(struct nvkm_bios *bios, int idx, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c
66
u32 data = nvbios_pmuEe(bios, idx, ver, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c
78
u8 ver, hdr, idx = 0;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c
81
while ((data = nvbios_pmuEp(bios, idx++, &ver, &hdr, &pmuE))) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c
29
nvbios_power_budget_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c
47
*hdr = nvbios_rd08(bios, power_budget + 0x1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c
62
u8 ver, hdr, cnt, len, cap_entry;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c
68
header = nvbios_power_budget_table(bios, &ver, &hdr, &cnt, &len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/power_budget.c
92
budget->hlen = hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c
58
u8 ver, hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/ramcfg.c
69
nvbios_M0203Em(bios, strap, &ver, &hdr, &M0203E))
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
134
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *info)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
138
while ((data = nvbios_rammapEp(bios, idx++, ver, hdr, cnt, len, info))) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
147
u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx, u8 *ver, u8 *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
152
*hdr = elen;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
192
u8 *ver, u8 *hdr, struct nvbios_ramcfg *p)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
194
data = nvbios_rammapSe(bios, data, ever, ehdr, ecnt, elen, idx, ver, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
196
p->ramcfg_hdr = *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
29
nvbios_rammapTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
44
*hdr = nvbios_rd08(bios, rammap + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
61
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
64
u32 rammap = nvbios_rammapTe(bios, ver, hdr, cnt, len, &snr, &ssz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
66
rammap = rammap + *hdr + (idx * (*len + (snr * ssz)));
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
67
*hdr = *len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
92
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
94
u32 data = nvbios_rammapEe(bios, idx, ver, hdr, cnt, len), temp;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/rammap.c
97
p->rammap_hdr = *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c
29
therm_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *len, u8 *cnt)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c
50
*hdr = nvbios_rd08(bios, therm + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c
59
u8 hdr, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c
60
u32 therm = therm_table(bios, ver, &hdr, len, &cnt);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
115
switch (min_t(u8, *hdr, 25)) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
30
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, u8 *snr, u8 *ssz)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
46
*hdr = nvbios_rd08(bios, timing + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
53
*hdr = nvbios_rd08(bios, timing + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
70
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
73
u32 timing = nvbios_timingTe(bios, ver, hdr, cnt, len, &snr, &ssz);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
75
timing += *hdr + idx * (*len + (snr * ssz));
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
76
*hdr = *len;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
86
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
88
u32 data = nvbios_timingEe(bios, idx, ver, hdr, cnt, len), temp;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/timing.c
90
p->timing_hdr = *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
29
nvbios_vmap_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
42
*hdr = nvbios_rd08(bios, vmap + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
57
nvbios_vmap_parse(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
60
u32 vmap = nvbios_vmap_table(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
83
u8 hdr, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
84
u32 vmap = nvbios_vmap_table(bios, ver, &hdr, &cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/vmap.c
86
vmap = vmap + hdr + (idx * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
127
u8 hdr, cnt;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
128
u32 volt = nvbios_volt_table(bios, ver, &hdr, &cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
130
volt = volt + hdr + (idx * *len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
29
nvbios_volt_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
45
*hdr = 5;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
50
*hdr = nvbios_rd08(bios, volt + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
57
*hdr = nvbios_rd08(bios, volt + 1);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
69
nvbios_volt_parse(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len,
drivers/gpu/drm/nouveau/nvkm/subdev/bios/volt.c
72
u32 volt = nvbios_volt_table(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c
29
dcb_xpiod_table(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c
31
u16 data = dcb_gpio_table(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c
32
if (data && *ver >= 0x40 && *hdr >= 0x06) {
drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c
36
*hdr = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c
47
u8 *ver, u8 *hdr, u8 *cnt, u8 *len)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c
49
u16 data = dcb_xpiod_table(bios, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c
51
u16 xpio = nvbios_rd16(bios, data + *hdr + (idx * *len));
drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c
54
*hdr = nvbios_rd08(bios, data + 0x01);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c
65
u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_xpio *info)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/xpio.c
67
u16 data = dcb_xpio_table(bios, idx, ver, hdr, cnt, len);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
232
u8 ver, hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
235
data = nvbios_cstepXp(bios, idx, &ver, &hdr, &cstepX);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
410
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
413
data = nvbios_perfEp(bios, idx, &ver, &hdr, &cnt, &len, &perfE);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
439
u8 sver = ver, shdr = hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
455
data = nvbios_cstepEm(bios, pstate->pstate, &ver, &hdr, &cstepE);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
46
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
49
data = nvbios_boostEm(bios, pstate, &ver, &hdr, &cnt, &len, &boostE);
drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c
59
shdr = hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.c
127
u8 ver = 0xff, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.c
134
while (init->base.post && dcb_outp_parse(bios, i, &ver, &hdr, &outp)) {
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.c
136
&ver, &hdr, &cnt, &len, &info)) {
drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c
76
u8 ver, hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c
78
if (nvbios_M0203Em(bios, ramcfg, &ver, &hdr, &M0203E)) {
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1280
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1284
if (!(data = nvbios_M0205Ep(bios, i, &ver, &hdr, &cnt, &len, &M0205E)))
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1300
if (!(data = nvbios_M0205Sp(bios, i, ramcfg, &ver, &hdr, &M0205S)))
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1305
if (!(data = nvbios_M0209Ep(bios, i, &ver, &hdr, &cnt, &len, &M0209E)))
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1309
if (!(data = nvbios_M0209Sp(bios, i, 0, &ver, &hdr, value)))
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1317
if (!(data = nvbios_M0209Sp(bios, M0209E.v03, 0, &ver, &hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1402
u8 ver, hdr, cnt, len, snr, ssz;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1417
data = nvbios_rammapTe(bios, &ver, &hdr, &cnt, &len, &snr, &ssz);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1418
if (!data || hdr < 0x15)
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1445
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1455
data = nvbios_rammapEp(bios, i, &ver, &hdr, &cnt, &len, &cfg->bios);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1458
if (ret = -ENOSYS, ver != 0x11 || hdr < 0x12)
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1462
data = nvbios_rammapSp(bios, data, ver, hdr, cnt, len, ramcfg,
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1463
&ver, &hdr, &cfg->bios);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1466
if (ret = -ENOSYS, ver != 0x11 || hdr < 0x0a)
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1472
&ver, &hdr, &cnt, &len,
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c
1476
if (ret = -ENOSYS, ver != 0x20 || hdr < 0x33)
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c
36
u8 ver, hdr, cnt, len, snr, ssz;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c
51
data = nvbios_rammapTe(bios, &ver, &hdr, &cnt, &len, &snr, &ssz);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c
52
if (!data || hdr < 0x15)
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
165
u8 ver, hdr, cnt, len, snr, ssz;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
181
nvbios_M0205Tp(bios, &ver, &hdr, &cnt, &len, &snr, &ssz, &M0205T);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
284
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
293
if (!nvbios_M0205Ep(bios, i, &ver, &hdr, &cnt, &len, &M0205E))
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
503
u8 ver, hdr, cnt, len, strap;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
519
data = nvbios_rammapEm(bios, freq / 1000, &ver, &hdr, &cnt, &len,
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
521
if (!data || ver != 0x10 || hdr < 0x05) {
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
533
data = nvbios_rammapSp(bios, data, ver, hdr, cnt, len, strap,
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
534
&ver, &hdr, &next->bios);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
535
if (!data || ver != 0x10 || hdr < 0x09) {
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
543
&ver, &hdr, &cnt, &len,
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c
545
if (!data || ver != 0x10 || hdr < 0x17) {
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c
227
u8 ver, hdr, cnt, len, strap, size;
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c
241
data = nvbios_perfEp(bios, i++, &ver, &hdr, &cnt,
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c
250
nvbios_rammapEp_from_perf(bios, data, hdr, &next->bios);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c
259
data = nvbios_rammapSp_from_perf(bios, data + hdr, size, strap,
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c
269
&ver, &hdr, &cnt, &len, &next->bios);
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c
270
if (!data || ver != 0x10 || hdr < 0x12) {
drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c
273
strap, data, ver, hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
112
frtscmd->read_vbios.hdr = sizeof(frtscmd->read_vbios);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
119
frtscmd->frts_region.hdr = sizeof(frtscmd->frts_region);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
128
if (WARN_ON(i == hdr->v1.cnt))
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
178
const struct nvfw_bin_hdr *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
206
hdr = nvfw_bin_hdr(subdev, bl->data);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
207
bld = nvfw_bl_desc(subdev, bl->data + hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
211
fw->boot = kmemdup(bl->data + hdr->data_offset + bld->code_off, fw->boot_size, GFP_KERNEL);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
271
u8 idx, ver, hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
275
for (idx = 0; (data = nvbios_pmuEp(bios, idx, &ver, &hdr, &flcn_ucode)); idx++) {
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
32
u8 hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
73
u32 hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
80
u32 hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
91
union nvfw_falcon_appif_hdr *hdr = (void *)(fw->fw.img + fw->dmem_base_img + if_offset);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
95
if (WARN_ON(hdr->v1.ver != 1))
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
98
for (i = 0; i < hdr->v1.cnt; i++) {
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/fwsec.c
99
union nvfw_falcon_appif *app = (void *)((u8 *)hdr + hdr->v1.hdr + i * hdr->v1.len);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga102.c
47
const struct nvfw_bin_hdr *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga102.c
53
hdr = nvfw_bin_hdr(subdev, blob->data);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga102.c
54
hshdr = nvfw_hs_header_v2(subdev, blob->data + hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga102.c
61
blob->data + hdr->data_offset, hdr->data_size, falcon, fw);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
1816
const struct nvfw_bin_hdr *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
1824
hdr = nvfw_bin_hdr(&gsp->subdev, fw->data);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
1825
desc = (void *)fw->data + hdr->header_offset;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
1827
ret = nvkm_gsp_mem_ctor(gsp, hdr->data_size, &gsp->boot.fw);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
1831
memcpy(gsp->boot.fw.data, fw->data + hdr->data_offset, hdr->data_size);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/tu102.c
82
const struct nvfw_bin_hdr *hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/tu102.c
88
hdr = nvfw_bin_hdr(subdev, blob->data);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/tu102.c
89
hshdr = nvfw_hs_header_v2(subdev, blob->data + hdr->header_offset);
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/tu102.c
95
blob->data + hdr->data_offset, hdr->data_size, falcon, fw);
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
266
u8 ver, hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
345
while (dcb_outp_parse(bios, ++i, &ver, &hdr, &dcbE)) {
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
54
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c
55
u16 i2c = dcb_i2c_table(bios, &ver, &hdr, &cnt, &len);
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
1225
u32 hdr, bool managed, u64 addr, u64 size,
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
1231
return nvkm_vmm_ctor(func, mmu, hdr, managed, addr, size, key, name, *pvmm);
drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c
192
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/mxm/nv50.c
193
u16 dcb = dcb_table(bios, &ver, &hdr, &cnt, &len);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
109
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
125
gm20b_pmu_acr_init_wpr_callback(void *priv, struct nvfw_falcon_msg *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
128
container_of(hdr, typeof(*msg), msg.hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
147
.cmd.hdr.unit_id = NV_PMU_UNIT_ACR,
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
148
.cmd.hdr.size = sizeof(cmd),
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
154
return nvkm_falcon_cmdq_send(pmu->hpq, &cmd.cmd.hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
168
if (msg.hdr.unit_id != NV_PMU_UNIT_INIT ||
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
31
gm20b_pmu_acr_bootstrap_falcon_cb(void *priv, struct nvfw_falcon_msg *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
34
container_of(hdr, typeof(*msg), msg.hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
44
.cmd.hdr.unit_id = NV_PMU_UNIT_ACR,
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
45
.cmd.hdr.size = sizeof(cmd),
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
52
ret = nvkm_falcon_cmdq_send(pmu->hpq, &cmd.cmd.hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
68
struct loader_config hdr;
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
71
nvkm_robj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
72
addr = ((u64)hdr.code_dma_base1 << 40 | hdr.code_dma_base << 8);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
73
hdr.code_dma_base = lower_32_bits((addr + adjust) >> 8);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
74
hdr.code_dma_base1 = upper_32_bits((addr + adjust) >> 8);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
75
addr = ((u64)hdr.data_dma_base1 << 40 | hdr.data_dma_base << 8);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
76
hdr.data_dma_base = lower_32_bits((addr + adjust) >> 8);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
77
hdr.data_dma_base1 = upper_32_bits((addr + adjust) >> 8);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
78
addr = ((u64)hdr.overlay_dma_base1 << 40 | hdr.overlay_dma_base << 8);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
79
hdr.overlay_dma_base = lower_32_bits((addr + adjust) << 8);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
80
hdr.overlay_dma_base1 = upper_32_bits((addr + adjust) << 8);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
81
nvkm_wobj(acr->wpr, bld, &hdr, sizeof(hdr));
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
83
loader_config_dump(&acr->subdev, &hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gm20b.c
93
const struct loader_config hdr = {
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gp10b.c
31
struct nvfw_falcon_msg *hdr)
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gp10b.c
34
container_of(hdr, typeof(*msg), msg.hdr);
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gp10b.c
42
.cmd.hdr.unit_id = NV_PMU_UNIT_ACR,
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gp10b.c
43
.cmd.hdr.size = sizeof(cmd),
drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gp10b.c
52
ret = nvkm_falcon_cmdq_send(pmu->hpq, &cmd.cmd.hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
191
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
195
data = nvbios_volt_parse(bios, &ver, &hdr, &cnt, &len, &info);
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
215
data = nvbios_volt_entry_parse(bios, i, &ver, &hdr,
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
294
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c
301
if (nvbios_vmap_parse(bios, &ver, &hdr, &cnt, &len, &vmap)) {
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c
105
u8 ver, hdr, cnt, len;
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c
108
if (!nvbios_volt_parse(device->bios, &ver, &hdr, &cnt, &len, &bios))
drivers/gpu/drm/panfrost/panfrost_dump.c
153
file_size += sizeof(*iter.hdr) * n_obj;
drivers/gpu/drm/panfrost/panfrost_dump.c
171
iter.hdr = iter.start;
drivers/gpu/drm/panfrost/panfrost_dump.c
172
iter.data = &iter.hdr[n_obj];
drivers/gpu/drm/panfrost/panfrost_dump.c
174
memset(iter.hdr, 0, iter.data - iter.start);
drivers/gpu/drm/panfrost/panfrost_dump.c
180
iter.hdr->reghdr.jc = job->jc;
drivers/gpu/drm/panfrost/panfrost_dump.c
181
iter.hdr->reghdr.major = PANFROSTDUMP_MAJOR;
drivers/gpu/drm/panfrost/panfrost_dump.c
182
iter.hdr->reghdr.minor = PANFROSTDUMP_MINOR;
drivers/gpu/drm/panfrost/panfrost_dump.c
183
iter.hdr->reghdr.gpu_id = pfdev->features.id;
drivers/gpu/drm/panfrost/panfrost_dump.c
184
iter.hdr->reghdr.nbos = job->bo_count;
drivers/gpu/drm/panfrost/panfrost_dump.c
208
iter.hdr->bomap.valid = 0;
drivers/gpu/drm/panfrost/panfrost_dump.c
215
iter.hdr->bomap.valid = 0;
drivers/gpu/drm/panfrost/panfrost_dump.c
221
iter.hdr->bomap.data[0] = bomap - bomap_start;
drivers/gpu/drm/panfrost/panfrost_dump.c
226
iter.hdr->bomap.iova = mapping->mmnode.start << PAGE_SHIFT;
drivers/gpu/drm/panfrost/panfrost_dump.c
23
struct panfrost_dump_object_header *hdr;
drivers/gpu/drm/panfrost/panfrost_dump.c
233
iter.hdr->bomap.valid = 1;
drivers/gpu/drm/panfrost/panfrost_dump.c
64
struct panfrost_dump_object_header *hdr = iter->hdr;
drivers/gpu/drm/panfrost/panfrost_dump.c
66
hdr->magic = PANFROSTDUMP_MAGIC;
drivers/gpu/drm/panfrost/panfrost_dump.c
67
hdr->type = type;
drivers/gpu/drm/panfrost/panfrost_dump.c
68
hdr->file_offset = iter->data - iter->start;
drivers/gpu/drm/panfrost/panfrost_dump.c
69
hdr->file_size = data_end - iter->data;
drivers/gpu/drm/panfrost/panfrost_dump.c
71
iter->hdr++;
drivers/gpu/drm/panfrost/panfrost_dump.c
72
iter->data += hdr->file_size;
drivers/gpu/drm/panthor/panthor_fw.c
541
struct panthor_fw_binary_section_entry_hdr hdr;
drivers/gpu/drm/panthor/panthor_fw.c
547
ret = panthor_fw_binary_iter_read(ptdev, iter, &hdr, sizeof(hdr));
drivers/gpu/drm/panthor/panthor_fw.c
551
if (hdr.data.end < hdr.data.start) {
drivers/gpu/drm/panthor/panthor_fw.c
553
hdr.data.end, hdr.data.start);
drivers/gpu/drm/panthor/panthor_fw.c
557
if (hdr.va.end < hdr.va.start) {
drivers/gpu/drm/panthor/panthor_fw.c
559
hdr.va.end, hdr.va.start);
drivers/gpu/drm/panthor/panthor_fw.c
563
if (hdr.data.end > fw->size) {
drivers/gpu/drm/panthor/panthor_fw.c
565
hdr.data.end, fw->size);
drivers/gpu/drm/panthor/panthor_fw.c
569
if (!IS_ALIGNED(hdr.va.start, vm_pgsz) || !IS_ALIGNED(hdr.va.end, vm_pgsz)) {
drivers/gpu/drm/panthor/panthor_fw.c
571
hdr.va.start, hdr.va.end);
drivers/gpu/drm/panthor/panthor_fw.c
575
if (hdr.flags & ~CSF_FW_BINARY_IFACE_ENTRY_SUPPORTED_FLAGS) {
drivers/gpu/drm/panthor/panthor_fw.c
577
hdr.flags);
drivers/gpu/drm/panthor/panthor_fw.c
581
if (hdr.flags & CSF_FW_BINARY_IFACE_ENTRY_PROT) {
drivers/gpu/drm/panthor/panthor_fw.c
587
if (hdr.va.start == CSF_MCU_SHARED_REGION_START &&
drivers/gpu/drm/panthor/panthor_fw.c
588
!(hdr.flags & CSF_FW_BINARY_IFACE_ENTRY_SHARED)) {
drivers/gpu/drm/panthor/panthor_fw.c
601
section->flags = hdr.flags;
drivers/gpu/drm/panthor/panthor_fw.c
602
section->data.size = hdr.data.end - hdr.data.start;
drivers/gpu/drm/panthor/panthor_fw.c
610
memcpy(data, fw->data + hdr.data.start, section->data.size);
drivers/gpu/drm/panthor/panthor_fw.c
625
section_size = hdr.va.end - hdr.va.start;
drivers/gpu/drm/panthor/panthor_fw.c
627
u32 cache_mode = hdr.flags & CSF_FW_BINARY_IFACE_ENTRY_CACHE_MODE_MASK;
drivers/gpu/drm/panthor/panthor_fw.c
631
u64 va = hdr.va.start;
drivers/gpu/drm/panthor/panthor_fw.c
633
if (!(hdr.flags & CSF_FW_BINARY_IFACE_ENTRY_WR))
drivers/gpu/drm/panthor/panthor_fw.c
636
if (!(hdr.flags & CSF_FW_BINARY_IFACE_ENTRY_EX))
drivers/gpu/drm/panthor/panthor_fw.c
656
if (drm_WARN_ON(&ptdev->base, section->mem->va_node.start != hdr.va.start))
drivers/gpu/drm/panthor/panthor_fw.c
675
if (hdr.va.start == CSF_MCU_SHARED_REGION_START)
drivers/gpu/drm/panthor/panthor_fw.c
686
struct panthor_fw_build_info_hdr hdr;
drivers/gpu/drm/panthor/panthor_fw.c
691
ret = panthor_fw_binary_iter_read(ptdev, iter, &hdr, sizeof(hdr));
drivers/gpu/drm/panthor/panthor_fw.c
695
if (hdr.meta_start > fw->size ||
drivers/gpu/drm/panthor/panthor_fw.c
696
hdr.meta_start + hdr.meta_size > fw->size) {
drivers/gpu/drm/panthor/panthor_fw.c
702
if (memcmp(git_sha_header, fw->data + hdr.meta_start, header_len)) {
drivers/gpu/drm/panthor/panthor_fw.c
708
if (fw->data[hdr.meta_start + hdr.meta_size - 1] != '\0') {
drivers/gpu/drm/panthor/panthor_fw.c
715
fw->data + hdr.meta_start + header_len);
drivers/gpu/drm/panthor/panthor_fw.c
790
struct panthor_fw_binary_hdr hdr;
drivers/gpu/drm/panthor/panthor_fw.c
808
ret = panthor_fw_binary_iter_read(ptdev, &iter, &hdr, sizeof(hdr));
drivers/gpu/drm/panthor/panthor_fw.c
812
if (hdr.magic != CSF_FW_BINARY_HEADER_MAGIC) {
drivers/gpu/drm/panthor/panthor_fw.c
818
if (hdr.major != CSF_FW_BINARY_HEADER_MAJOR_MAX) {
drivers/gpu/drm/panthor/panthor_fw.c
821
hdr.major, hdr.minor, CSF_FW_BINARY_HEADER_MAJOR_MAX);
drivers/gpu/drm/panthor/panthor_fw.c
825
if (hdr.size > iter.size) {
drivers/gpu/drm/panthor/panthor_fw.c
830
iter.size = hdr.size;
drivers/gpu/drm/panthor/panthor_fw.c
832
while (iter.offset < hdr.size) {
drivers/gpu/drm/panthor/panthor_heap.c
145
struct panthor_heap_chunk_header *hdr;
drivers/gpu/drm/panthor/panthor_heap.c
166
hdr = chunk->bo->kmap;
drivers/gpu/drm/panthor/panthor_heap.c
167
memset(hdr, 0, sizeof(*hdr));
drivers/gpu/drm/panthor/panthor_heap.c
178
hdr->next = (prev_gpuva & GENMASK_ULL(63, 12)) |
drivers/gpu/drm/radeon/ci_smc.c
198
const struct smc_firmware_header_v1_0 *hdr =
drivers/gpu/drm/radeon/ci_smc.c
201
radeon_ucode_print_smc_hdr(&hdr->header);
drivers/gpu/drm/radeon/ci_smc.c
203
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
drivers/gpu/drm/radeon/ci_smc.c
204
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
drivers/gpu/drm/radeon/ci_smc.c
206
(rdev->smc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/cik.c
1873
const struct mc_firmware_header_v1_0 *hdr =
drivers/gpu/drm/radeon/cik.c
1876
radeon_ucode_print_mc_hdr(&hdr->header);
drivers/gpu/drm/radeon/cik.c
1878
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
drivers/gpu/drm/radeon/cik.c
1880
(rdev->mc_fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
drivers/gpu/drm/radeon/cik.c
1881
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/radeon/cik.c
1883
(rdev->mc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/cik.c
5940
const struct rlc_firmware_header_v1_0 *hdr =
drivers/gpu/drm/radeon/cik.c
5943
(rdev->rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/cik.c
5945
radeon_ucode_print_rlc_hdr(&hdr->header);
drivers/gpu/drm/radeon/cik.c
5947
size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/radeon/cik.c
5951
WREG32(RLC_GPM_UCODE_ADDR, le32_to_cpu(hdr->header.ucode_version));
drivers/gpu/drm/radeon/cik.c
6428
const struct gfx_firmware_header_v1_0 *hdr;
drivers/gpu/drm/radeon/cik.c
6431
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->ce_fw->data;
drivers/gpu/drm/radeon/cik.c
6433
(rdev->ce_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/cik.c
6434
table_offset = le32_to_cpu(hdr->jt_offset);
drivers/gpu/drm/radeon/cik.c
6435
table_size = le32_to_cpu(hdr->jt_size);
drivers/gpu/drm/radeon/cik.c
6437
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->pfp_fw->data;
drivers/gpu/drm/radeon/cik.c
6439
(rdev->pfp_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/cik.c
6440
table_offset = le32_to_cpu(hdr->jt_offset);
drivers/gpu/drm/radeon/cik.c
6441
table_size = le32_to_cpu(hdr->jt_size);
drivers/gpu/drm/radeon/cik.c
6443
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->me_fw->data;
drivers/gpu/drm/radeon/cik.c
6445
(rdev->me_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/cik.c
6446
table_offset = le32_to_cpu(hdr->jt_offset);
drivers/gpu/drm/radeon/cik.c
6447
table_size = le32_to_cpu(hdr->jt_size);
drivers/gpu/drm/radeon/cik.c
6449
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->mec_fw->data;
drivers/gpu/drm/radeon/cik.c
6451
(rdev->mec_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/cik.c
6452
table_offset = le32_to_cpu(hdr->jt_offset);
drivers/gpu/drm/radeon/cik.c
6453
table_size = le32_to_cpu(hdr->jt_size);
drivers/gpu/drm/radeon/cik.c
6455
hdr = (const struct gfx_firmware_header_v1_0 *)rdev->mec2_fw->data;
drivers/gpu/drm/radeon/cik.c
6457
(rdev->mec2_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/cik.c
6458
table_offset = le32_to_cpu(hdr->jt_offset);
drivers/gpu/drm/radeon/cik.c
6459
table_size = le32_to_cpu(hdr->jt_size);
drivers/gpu/drm/radeon/cik_sdma.c
472
const struct sdma_firmware_header_v1_0 *hdr =
drivers/gpu/drm/radeon/cik_sdma.c
477
radeon_ucode_print_sdma_hdr(&hdr->header);
drivers/gpu/drm/radeon/cik_sdma.c
481
(rdev->sdma_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/cik_sdma.c
482
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/radeon/cik_sdma.c
490
(rdev->sdma_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/cik_sdma.c
491
fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/radeon/radeon_bios.c
602
struct acpi_table_header *hdr;
drivers/gpu/drm/radeon/radeon_bios.c
608
if (!ACPI_SUCCESS(acpi_get_table("VFCT", 1, &hdr)))
drivers/gpu/drm/radeon/radeon_bios.c
610
tbl_size = hdr->length;
drivers/gpu/drm/radeon/radeon_bios.c
616
vfct = (UEFI_ACPI_VFCT *)hdr;
drivers/gpu/drm/radeon/radeon_bios.c
620
GOP_VBIOS_CONTENT *vbios = (GOP_VBIOS_CONTENT *)((char *)hdr + offset);
drivers/gpu/drm/radeon/radeon_bios.c
654
acpi_put_table(hdr);
drivers/gpu/drm/radeon/radeon_ucode.c
106
void radeon_ucode_print_rlc_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/radeon/radeon_ucode.c
108
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/radeon/radeon_ucode.c
109
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/radeon/radeon_ucode.c
112
radeon_ucode_print_common_hdr(hdr);
drivers/gpu/drm/radeon/radeon_ucode.c
116
container_of(hdr, struct rlc_firmware_header_v1_0, header);
drivers/gpu/drm/radeon/radeon_ucode.c
133
void radeon_ucode_print_sdma_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/radeon/radeon_ucode.c
135
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/radeon/radeon_ucode.c
136
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/radeon/radeon_ucode.c
139
radeon_ucode_print_common_hdr(hdr);
drivers/gpu/drm/radeon/radeon_ucode.c
143
container_of(hdr, struct sdma_firmware_header_v1_0, header);
drivers/gpu/drm/radeon/radeon_ucode.c
159
const struct common_firmware_header *hdr =
drivers/gpu/drm/radeon/radeon_ucode.c
162
if (fw->size == le32_to_cpu(hdr->size_bytes))
drivers/gpu/drm/radeon/radeon_ucode.c
31
static void radeon_ucode_print_common_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/radeon/radeon_ucode.c
33
DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes));
drivers/gpu/drm/radeon/radeon_ucode.c
34
DRM_DEBUG("header_size_bytes: %u\n", le32_to_cpu(hdr->header_size_bytes));
drivers/gpu/drm/radeon/radeon_ucode.c
35
DRM_DEBUG("header_version_major: %u\n", le16_to_cpu(hdr->header_version_major));
drivers/gpu/drm/radeon/radeon_ucode.c
36
DRM_DEBUG("header_version_minor: %u\n", le16_to_cpu(hdr->header_version_minor));
drivers/gpu/drm/radeon/radeon_ucode.c
37
DRM_DEBUG("ip_version_major: %u\n", le16_to_cpu(hdr->ip_version_major));
drivers/gpu/drm/radeon/radeon_ucode.c
38
DRM_DEBUG("ip_version_minor: %u\n", le16_to_cpu(hdr->ip_version_minor));
drivers/gpu/drm/radeon/radeon_ucode.c
39
DRM_DEBUG("ucode_version: 0x%08x\n", le32_to_cpu(hdr->ucode_version));
drivers/gpu/drm/radeon/radeon_ucode.c
40
DRM_DEBUG("ucode_size_bytes: %u\n", le32_to_cpu(hdr->ucode_size_bytes));
drivers/gpu/drm/radeon/radeon_ucode.c
42
le32_to_cpu(hdr->ucode_array_offset_bytes));
drivers/gpu/drm/radeon/radeon_ucode.c
43
DRM_DEBUG("crc32: 0x%08x\n", le32_to_cpu(hdr->crc32));
drivers/gpu/drm/radeon/radeon_ucode.c
46
void radeon_ucode_print_mc_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/radeon/radeon_ucode.c
48
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/radeon/radeon_ucode.c
49
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/radeon/radeon_ucode.c
52
radeon_ucode_print_common_hdr(hdr);
drivers/gpu/drm/radeon/radeon_ucode.c
56
container_of(hdr, struct mc_firmware_header_v1_0, header);
drivers/gpu/drm/radeon/radeon_ucode.c
67
void radeon_ucode_print_smc_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/radeon/radeon_ucode.c
69
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/radeon/radeon_ucode.c
70
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/radeon/radeon_ucode.c
73
radeon_ucode_print_common_hdr(hdr);
drivers/gpu/drm/radeon/radeon_ucode.c
77
container_of(hdr, struct smc_firmware_header_v1_0, header);
drivers/gpu/drm/radeon/radeon_ucode.c
85
void radeon_ucode_print_gfx_hdr(const struct common_firmware_header *hdr)
drivers/gpu/drm/radeon/radeon_ucode.c
87
uint16_t version_major = le16_to_cpu(hdr->header_version_major);
drivers/gpu/drm/radeon/radeon_ucode.c
88
uint16_t version_minor = le16_to_cpu(hdr->header_version_minor);
drivers/gpu/drm/radeon/radeon_ucode.c
91
radeon_ucode_print_common_hdr(hdr);
drivers/gpu/drm/radeon/radeon_ucode.c
95
container_of(hdr, struct gfx_firmware_header_v1_0, header);
drivers/gpu/drm/radeon/radeon_ucode.h
220
void radeon_ucode_print_mc_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/radeon/radeon_ucode.h
221
void radeon_ucode_print_smc_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/radeon/radeon_ucode.h
222
void radeon_ucode_print_gfx_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/radeon/radeon_ucode.h
223
void radeon_ucode_print_rlc_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/radeon/radeon_ucode.h
224
void radeon_ucode_print_sdma_hdr(const struct common_firmware_header *hdr);
drivers/gpu/drm/radeon/radeon_uvd.c
146
struct common_firmware_header *hdr = (void *)rdev->uvd_fw->data;
drivers/gpu/drm/radeon/radeon_uvd.c
155
family_id = (__force u32)(hdr->ucode_version) & 0xff;
drivers/gpu/drm/radeon/radeon_uvd.c
156
version_major = (le32_to_cpu((__force __le32)(hdr->ucode_version))
drivers/gpu/drm/radeon/radeon_uvd.c
158
version_minor = (le32_to_cpu((__force __le32)(hdr->ucode_version))
drivers/gpu/drm/radeon/si.c
1564
const struct mc_firmware_header_v1_0 *hdr =
drivers/gpu/drm/radeon/si.c
1567
radeon_ucode_print_mc_hdr(&hdr->header);
drivers/gpu/drm/radeon/si.c
1568
regs_size = le32_to_cpu(hdr->io_debug_size_bytes) / (4 * 2);
drivers/gpu/drm/radeon/si.c
1570
(rdev->mc_fw->data + le32_to_cpu(hdr->io_debug_array_offset_bytes));
drivers/gpu/drm/radeon/si.c
1571
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/radeon/si.c
1573
(rdev->mc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/si.c
5871
const struct rlc_firmware_header_v1_0 *hdr =
drivers/gpu/drm/radeon/si.c
5873
u32 fw_size = le32_to_cpu(hdr->header.ucode_size_bytes) / 4;
drivers/gpu/drm/radeon/si.c
5875
(rdev->rlc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/radeon/si.c
5877
radeon_ucode_print_rlc_hdr(&hdr->header);
drivers/gpu/drm/radeon/si_smc.c
223
const struct smc_firmware_header_v1_0 *hdr =
drivers/gpu/drm/radeon/si_smc.c
226
radeon_ucode_print_smc_hdr(&hdr->header);
drivers/gpu/drm/radeon/si_smc.c
228
ucode_start_address = le32_to_cpu(hdr->ucode_start_addr);
drivers/gpu/drm/radeon/si_smc.c
229
ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes);
drivers/gpu/drm/radeon/si_smc.c
231
(rdev->smc_fw->data + le32_to_cpu(hdr->header.ucode_array_offset_bytes));
drivers/gpu/drm/rockchip/cdn-dp-core.c
318
const struct cdn_firmware_header *hdr;
drivers/gpu/drm/rockchip/cdn-dp-core.c
320
hdr = (struct cdn_firmware_header *)fw->data;
drivers/gpu/drm/rockchip/cdn-dp-core.c
321
if (fw->size != le32_to_cpu(hdr->size_bytes)) {
drivers/gpu/drm/rockchip/cdn-dp-core.c
326
iram_data = (const u32 *)(fw->data + hdr->header_size);
drivers/gpu/drm/rockchip/cdn-dp-core.c
327
dram_data = (const u32 *)(fw->data + hdr->header_size + hdr->iram_size);
drivers/gpu/drm/rockchip/cdn-dp-core.c
329
ret = cdn_dp_load_firmware(dp, iram_data, hdr->iram_size,
drivers/gpu/drm/rockchip/cdn-dp-core.c
330
dram_data, hdr->dram_size);
drivers/gpu/drm/tegra/vic.c
58
void *hdr;
drivers/gpu/drm/tegra/vic.c
92
hdr = vic->falcon.firmware.virt;
drivers/gpu/drm/tegra/vic.c
93
fce_bin_data_offset = *(u32 *)(hdr + VIC_UCODE_FCE_DATA_OFFSET);
drivers/gpu/drm/tegra/vic.c
97
hdr = vic->falcon.firmware.virt +
drivers/gpu/drm/tegra/vic.c
98
*(u32 *)(hdr + VIC_UCODE_FCE_HEADER_OFFSET);
drivers/gpu/drm/tegra/vic.c
99
fce_ucode_size = *(u32 *)(hdr + FCE_UCODE_SIZE_OFFSET);
drivers/gpu/drm/tiny/cirrus-qemu.c
231
u8 sr07, hdr;
drivers/gpu/drm/tiny/cirrus-qemu.c
239
hdr = 0x00;
drivers/gpu/drm/tiny/cirrus-qemu.c
243
hdr = 0xc1;
drivers/gpu/drm/tiny/cirrus-qemu.c
247
hdr = 0xc5;
drivers/gpu/drm/tiny/cirrus-qemu.c
251
hdr = 0xc5;
drivers/gpu/drm/tiny/cirrus-qemu.c
265
wreg_hdr(cirrus, hdr);
drivers/gpu/drm/tiny/gm12u320.c
170
const char *hdr;
drivers/gpu/drm/tiny/gm12u320.c
179
hdr = data_last_block_header;
drivers/gpu/drm/tiny/gm12u320.c
182
hdr = data_block_header;
drivers/gpu/drm/tiny/gm12u320.c
190
memcpy(gm12u320->data_buf[i], hdr, DATA_BLOCK_HEADER_SIZE);
drivers/gpu/drm/udl/udl_edid.c
62
u8 hdr[8];
drivers/gpu/drm/udl/udl_edid.c
65
ret = udl_read_edid_block(udl, hdr, 0, sizeof(hdr));
drivers/gpu/drm/udl/udl_edid.c
73
return !mem_is_zero(hdr, sizeof(hdr));
drivers/gpu/drm/virtio/virtgpu_plane.c
478
output->cursor.hdr.type =
drivers/gpu/drm/virtio/virtgpu_plane.c
494
output->cursor.hdr.type =
drivers/gpu/drm/virtio/virtgpu_trace.h
12
TP_PROTO(struct virtqueue *vq, struct virtio_gpu_ctrl_hdr *hdr, u32 seqno),
drivers/gpu/drm/virtio/virtgpu_trace.h
13
TP_ARGS(vq, hdr, seqno),
drivers/gpu/drm/virtio/virtgpu_trace.h
29
__entry->type = le32_to_cpu(hdr->type);
drivers/gpu/drm/virtio/virtgpu_trace.h
30
__entry->flags = le32_to_cpu(hdr->flags);
drivers/gpu/drm/virtio/virtgpu_trace.h
31
__entry->fence_id = le64_to_cpu(hdr->fence_id);
drivers/gpu/drm/virtio/virtgpu_trace.h
32
__entry->ctx_id = le32_to_cpu(hdr->ctx_id);
drivers/gpu/drm/virtio/virtgpu_trace.h
43
TP_PROTO(struct virtqueue *vq, struct virtio_gpu_ctrl_hdr *hdr, u32 seqno),
drivers/gpu/drm/virtio/virtgpu_trace.h
44
TP_ARGS(vq, hdr, seqno)
drivers/gpu/drm/virtio/virtgpu_trace.h
48
TP_PROTO(struct virtqueue *vq, struct virtio_gpu_ctrl_hdr *hdr, u32 seqno),
drivers/gpu/drm/virtio/virtgpu_trace.h
49
TP_ARGS(vq, hdr, seqno)
drivers/gpu/drm/virtio/virtgpu_vq.c
1044
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_CAPSET);
drivers/gpu/drm/virtio/virtgpu_vq.c
1072
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_EDID);
drivers/gpu/drm/virtio/virtgpu_vq.c
1090
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_CREATE);
drivers/gpu/drm/virtio/virtgpu_vq.c
1091
cmd_p->hdr.ctx_id = cpu_to_le32(id);
drivers/gpu/drm/virtio/virtgpu_vq.c
1107
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_DESTROY);
drivers/gpu/drm/virtio/virtgpu_vq.c
1108
cmd_p->hdr.ctx_id = cpu_to_le32(id);
drivers/gpu/drm/virtio/virtgpu_vq.c
1124
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_ATTACH_RESOURCE);
drivers/gpu/drm/virtio/virtgpu_vq.c
1125
cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id);
drivers/gpu/drm/virtio/virtgpu_vq.c
1142
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_CTX_DETACH_RESOURCE);
drivers/gpu/drm/virtio/virtgpu_vq.c
1143
cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id);
drivers/gpu/drm/virtio/virtgpu_vq.c
1162
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_3D);
drivers/gpu/drm/virtio/virtgpu_vq.c
1204
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_TO_HOST_3D);
drivers/gpu/drm/virtio/virtgpu_vq.c
1205
cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id);
drivers/gpu/drm/virtio/virtgpu_vq.c
1234
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_FROM_HOST_3D);
drivers/gpu/drm/virtio/virtgpu_vq.c
1235
cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id);
drivers/gpu/drm/virtio/virtgpu_vq.c
1262
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SUBMIT_3D);
drivers/gpu/drm/virtio/virtgpu_vq.c
1263
cmd_p->hdr.ctx_id = cpu_to_le32(ctx_id);
drivers/gpu/drm/virtio/virtgpu_vq.c
1315
uint32_t resp_type = le32_to_cpu(resp->hdr.type);
drivers/gpu/drm/virtio/virtgpu_vq.c
1355
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_ASSIGN_UUID);
drivers/gpu/drm/virtio/virtgpu_vq.c
1371
uint32_t resp_type = le32_to_cpu(resp->hdr.type);
drivers/gpu/drm/virtio/virtgpu_vq.c
1403
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_MAP_BLOB);
drivers/gpu/drm/virtio/virtgpu_vq.c
1421
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_UNMAP_BLOB);
drivers/gpu/drm/virtio/virtgpu_vq.c
1440
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_BLOB);
drivers/gpu/drm/virtio/virtgpu_vq.c
1441
cmd_p->hdr.ctx_id = cpu_to_le32(params->ctx_id);
drivers/gpu/drm/virtio/virtgpu_vq.c
1474
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SET_SCANOUT_BLOB);
drivers/gpu/drm/virtio/virtgpu_vq.c
607
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_CREATE_2D);
drivers/gpu/drm/virtio/virtgpu_vq.c
639
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_UNREF);
drivers/gpu/drm/virtio/virtgpu_vq.c
659
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_SET_SCANOUT);
drivers/gpu/drm/virtio/virtgpu_vq.c
683
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_FLUSH);
drivers/gpu/drm/virtio/virtgpu_vq.c
707
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_FLUSH);
drivers/gpu/drm/virtio/virtgpu_vq.c
737
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D);
drivers/gpu/drm/virtio/virtgpu_vq.c
768
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_TRANSFER_TO_HOST_2D);
drivers/gpu/drm/virtio/virtgpu_vq.c
792
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING);
drivers/gpu/drm/virtio/virtgpu_vq.c
813
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_DETACH_BACKING);
drivers/gpu/drm/virtio/virtgpu_vq.c
971
cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_GET_CAPSET_INFO);
drivers/gpu/drm/xe/abi/gsc_proxy_commands_abi.h
22
u32 hdr;
drivers/gpu/drm/xe/xe_gsc_proxy.c
158
u32 type = FIELD_GET(GSC_PROXY_TYPE, header->hdr);
drivers/gpu/drm/xe/xe_gsc_proxy.c
159
u32 length = FIELD_GET(GSC_PROXY_PAYLOAD_LENGTH, header->hdr);
drivers/gpu/drm/xe/xe_gsc_proxy.c
210
proxy_header_wr(xe, map, offset, hdr,
drivers/gpu/drm/xe/xe_gsc_proxy.c
264
if (FIELD_GET(GSC_PROXY_TYPE, to_csme_hdr->hdr) == GSC_PROXY_MSG_TYPE_PROXY_END) {
drivers/gpu/drm/xe/xe_gsc_proxy.c
284
size = FIELD_GET(GSC_PROXY_PAYLOAD_LENGTH, to_csme_hdr->hdr);
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c
1137
switch (data->hdr.type) {
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c
1152
vfid, data->hdr.type);
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
105
ret = xe_gt_sriov_pf_config_ggtt_restore(gt, vfid, data->vaddr, data->hdr.size);
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
268
xe_gt_assert(gt, size <= data->hdr.size);
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
269
data->hdr.size = size;
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
328
xe_gt_assert(gt, data->hdr.size);
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
332
ret = pf_send_guc_restore_vf_mig_data(gt, vfid, data->vaddr, data->hdr.size);
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
461
ret = pf_migration_mmio_restore(gt, vfid, data->vaddr, data->hdr.size);
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
48
drm_printf(&p, "VF%u %s (%llu bytes)\n", vfid, what, data->hdr.size);
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
49
drm_print_hex_dump(&p, "mig_hdr: ", (void *)&data->hdr, sizeof(data->hdr));
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
50
drm_print_hex_dump(&p, "mig_data: ", data->vaddr, min(SZ_64, data->hdr.size));
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
641
u64 end = data->hdr.offset + data->hdr.size;
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
653
if (end > size || end < data->hdr.size) {
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
660
fence = __pf_save_restore_vram(gt, vfid, vram, data->hdr.offset,
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
661
data->bo, 0, data->hdr.size, false);
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
952
xe_gt_assert(gt, data->hdr.tile_id == gt->tile->id);
drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c
953
xe_gt_assert(gt, data->hdr.gt_id == gt->info.id);
drivers/gpu/drm/xe/xe_guc_capture.c
1075
struct guc_state_capture_header_t *hdr)
drivers/gpu/drm/xe/xe_guc_capture.c
1079
if (guc_capture_log_remove_bytes(guc, buf, hdr, fullsize) != fullsize)
drivers/gpu/drm/xe/xe_guc_capture.c
1173
struct guc_state_capture_header_t hdr = {0};
drivers/gpu/drm/xe/xe_guc_capture.c
1252
if (guc_capture_log_get_data_hdr(guc, buf, &hdr)) {
drivers/gpu/drm/xe/xe_guc_capture.c
1257
datatype = FIELD_GET(GUC_STATE_CAPTURE_HEADER_CAPTURE_TYPE, hdr.info);
drivers/gpu/drm/xe/xe_guc_capture.c
1261
hdr.num_mmio_entries);
drivers/gpu/drm/xe/xe_guc_capture.c
1309
node->reginfo[datatype].vfid = FIELD_GET(GUC_STATE_CAPTURE_HEADER_VFID, hdr.owner);
drivers/gpu/drm/xe/xe_guc_capture.c
1316
hdr.info);
drivers/gpu/drm/xe/xe_guc_capture.c
1318
hdr.info);
drivers/gpu/drm/xe/xe_guc_capture.c
1319
node->lrca = hdr.lrca;
drivers/gpu/drm/xe/xe_guc_capture.c
1320
node->guc_id = hdr.guc_id;
drivers/gpu/drm/xe/xe_guc_capture.c
1324
hdr.info);
drivers/gpu/drm/xe/xe_guc_capture.c
1331
hdr.num_mmio_entries);
drivers/gpu/drm/xe/xe_sriov_packet.c
121
struct xe_gt *gt = xe_device_get_gt(data->xe, data->hdr.gt_id);
drivers/gpu/drm/xe/xe_sriov_packet.c
126
if (data->hdr.size == 0)
drivers/gpu/drm/xe/xe_sriov_packet.c
132
bo = xe_bo_create_pin_map_novm(data->xe, gt->tile, PAGE_ALIGN(data->hdr.size),
drivers/gpu/drm/xe/xe_sriov_packet.c
141
void *buff = kvzalloc(data->hdr.size, GFP_KERNEL);
drivers/gpu/drm/xe/xe_sriov_packet.c
169
data->hdr.version = XE_SRIOV_PACKET_SUPPORTED_VERSION;
drivers/gpu/drm/xe/xe_sriov_packet.c
170
data->hdr.type = type;
drivers/gpu/drm/xe/xe_sriov_packet.c
171
data->hdr.tile_id = tile_id;
drivers/gpu/drm/xe/xe_sriov_packet.c
172
data->hdr.gt_id = gt_id;
drivers/gpu/drm/xe/xe_sriov_packet.c
173
data->hdr.offset = offset;
drivers/gpu/drm/xe/xe_sriov_packet.c
174
data->hdr.size = size;
drivers/gpu/drm/xe/xe_sriov_packet.c
192
if (data->hdr.version != XE_SRIOV_PACKET_SUPPORTED_VERSION)
drivers/gpu/drm/xe/xe_sriov_packet.c
195
data->remaining = data->hdr.size;
drivers/gpu/drm/xe/xe_sriov_packet.c
203
loff_t offset = sizeof(data->hdr) - data->hdr_remaining;
drivers/gpu/drm/xe/xe_sriov_packet.c
211
if (copy_to_user(buf, (void *)&data->hdr + offset, len))
drivers/gpu/drm/xe/xe_sriov_packet.c
225
if (copy_to_user(buf, data->vaddr + (data->hdr.size - data->remaining), len))
drivers/gpu/drm/xe/xe_sriov_packet.c
278
loff_t offset = sizeof(data->hdr) - data->hdr_remaining;
drivers/gpu/drm/xe/xe_sriov_packet.c
284
if (copy_from_user((void *)&data->hdr + offset, buf, len))
drivers/gpu/drm/xe/xe_sriov_packet.c
304
if (copy_from_user(data->vaddr + (data->hdr.size - data->remaining), buf, len))
drivers/gpu/drm/xe/xe_sriov_packet.c
410
u32 num_dwords = data->hdr.size / sizeof(u32);
drivers/gpu/drm/xe/xe_sriov_packet.c
413
xe_assert(xe, data->hdr.type == XE_SRIOV_PACKET_TYPE_DESCRIPTOR);
drivers/gpu/drm/xe/xe_sriov_packet.c
415
if (data->hdr.size % sizeof(u32)) {
drivers/gpu/drm/xe/xe_sriov_packet.c
417
data->hdr.size);
drivers/gpu/drm/xe/xe_sriov_packet.c
75
return data->hdr.type == XE_SRIOV_PACKET_TYPE_VRAM;
drivers/gpu/drm/xe/xe_sriov_packet.c
97
data->hdr_remaining = sizeof(data->hdr);
drivers/gpu/drm/xe/xe_sriov_packet_types.h
72
struct xe_sriov_packet_hdr hdr;
drivers/gpu/drm/xe/xe_sriov_pf_migration.c
205
if (data->hdr.tile_id != 0 || data->hdr.gt_id != 0)
drivers/gpu/drm/xe/xe_sriov_pf_migration.c
223
if (data->hdr.tile_id != 0 || data->hdr.gt_id != 0)
drivers/gpu/drm/xe/xe_sriov_pf_migration.c
225
if (data->hdr.offset != 0 || data->hdr.size != 0 || data->buff || data->bo)
drivers/gpu/drm/xe/xe_sriov_pf_migration.c
255
if (data->hdr.type == XE_SRIOV_PACKET_TYPE_DESCRIPTOR)
drivers/gpu/drm/xe/xe_sriov_pf_migration.c
257
if (data->hdr.type == XE_SRIOV_PACKET_TYPE_TRAILER)
drivers/gpu/drm/xe/xe_sriov_pf_migration.c
260
gt = xe_device_get_gt(xe, data->hdr.gt_id);
drivers/gpu/drm/xe/xe_sriov_pf_migration.c
261
if (!gt || data->hdr.tile_id != gt->tile->id || data->hdr.type == 0) {
drivers/gpu/drm/xe/xe_sriov_pf_migration.c
263
vfid, data->hdr.type, data->hdr.tile_id, data->hdr.gt_id);
drivers/greybus/gb-beagleplay.c
119
struct gb_operation_msg_hdr hdr;
drivers/greybus/gb-beagleplay.c
208
u16 gb_msg_len = le16_to_cpu(gb_frame->hdr.size);
drivers/greybus/gb-beagleplay.c
211
gb_frame->hdr.operation_id, gb_frame->hdr.type, cport_id, gb_frame->hdr.result);
drivers/greybus/gb-beagleplay.c
213
greybus_data_rcvd(bg->gb_hd, cport_id, (u8 *)&gb_frame->hdr, gb_msg_len);
drivers/hid/hid-goodix-spi.c
342
struct goodix_hid_report_header hdr;
drivers/hid/hid-goodix-spi.c
354
&hdr, sizeof(hdr));
drivers/hid/hid-goodix-spi.c
355
if (!error && (hdr.flag & GOODIX_HID_ACK_READY_FLAG)) {
drivers/hid/hid-goodix-spi.c
356
len = le16_to_cpu(hdr.size);
drivers/hid/hid-goodix-spi.c
596
if (event->hdr.flag != GOODIX_HID_REPORT_READY_FLAG)
drivers/hid/hid-goodix-spi.c
608
report_size = le16_to_cpu(event->hdr.size);
drivers/hid/hid-goodix-spi.c
72
struct goodix_hid_report_header hdr;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
115
struct loader_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
150
struct loader_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
155
struct loader_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
173
struct loader_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
338
struct loader_msg_hdr *hdr;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
376
hdr = (struct loader_msg_hdr *)rb_in_proc->buffer.data;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
381
hdr->command & CMD_MASK,
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
382
hdr->command & IS_RESPONSE ? 1 : 0,
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
383
hdr->status);
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
385
if (((hdr->command & CMD_MASK) != LOADER_CMD_XFER_QUERY) &&
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
386
((hdr->command & CMD_MASK) != LOADER_CMD_XFER_FRAGMENT) &&
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
387
((hdr->command & CMD_MASK) != LOADER_CMD_START)) {
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
390
hdr->command & CMD_MASK);
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
404
if (!(hdr->command & IS_RESPONSE)) {
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
411
if (hdr->status) {
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
414
hdr->status);
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
479
ldr_xfer_query.hdr.command = LOADER_CMD_XFER_QUERY;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
571
ldr_xfer_ipc_frag->fragment.hdr.command = LOADER_CMD_XFER_FRAGMENT;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
670
ldr_xfer_dma_frag.fragment.hdr.command = LOADER_CMD_XFER_FRAGMENT;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
732
ldr_start.hdr.command = LOADER_CMD_START;
drivers/hid/intel-ish-hid/ishtp-hid-client.c
112
__func__, recv_msg->hdr.command & CMD_MASK);
drivers/hid/intel-ish-hid/ishtp-hid-client.c
114
switch (recv_msg->hdr.command & CMD_MASK) {
drivers/hid/intel-ish-hid/ishtp-hid-client.c
116
if ((!(recv_msg->hdr.command & ~CMD_MASK) ||
drivers/hid/intel-ish-hid/ishtp-hid-client.c
165
if ((!(recv_msg->hdr.command & ~CMD_MASK) ||
drivers/hid/intel-ish-hid/ishtp-hid-client.c
190
if ((!(recv_msg->hdr.command & ~CMD_MASK) ||
drivers/hid/intel-ish-hid/ishtp-hid-client.c
224
if (recv_msg->hdr.device_id ==
drivers/hid/intel-ish-hid/ishtp-hid-client.c
256
if (recv_msg->hdr.device_id ==
drivers/hid/intel-ish-hid/ishtp-hid-client.c
270
if (recv_msg->hdr.device_id ==
drivers/hid/intel-ish-hid/ishtp-hid-client.c
287
struct hostif_msg, hdr);
drivers/hid/intel-ish-hid/ishtp-hid-client.c
295
if (recv_msg->hdr.device_id ==
drivers/hid/intel-ish-hid/ishtp-hid-client.c
387
msg->hdr.command = HOSTIF_SET_FEATURE_REPORT;
drivers/hid/intel-ish-hid/ishtp-hid-client.c
390
msg->hdr.device_id =
drivers/hid/intel-ish-hid/ishtp-hid-client.c
431
msg.hdr.command = (report_type == HID_FEATURE_REPORT) ?
drivers/hid/intel-ish-hid/ishtp-hid-client.c
435
msg.hdr.device_id =
drivers/hid/intel-ish-hid/ishtp-hid-client.c
49
recv_msg->hdr.command, client_data->bad_recv_cnt,
drivers/hid/intel-ish-hid/ishtp-hid-client.c
500
msg.hdr.command = HOSTIF_DM_ENUM_DEVICES;
drivers/hid/intel-ish-hid/ishtp-hid-client.c
54
recv_msg->hdr.command & ~CMD_MASK);
drivers/hid/intel-ish-hid/ishtp-hid-client.c
556
msg.hdr.command = HOSTIF_GET_HID_DESCRIPTOR;
drivers/hid/intel-ish-hid/ishtp-hid-client.c
557
msg.hdr.device_id = client_data->hid_devices[index].dev_id;
drivers/hid/intel-ish-hid/ishtp-hid-client.c
603
msg.hdr.command = HOSTIF_GET_REPORT_DESCRIPTOR;
drivers/hid/intel-ish-hid/ishtp-hid-client.c
604
msg.hdr.device_id = client_data->hid_devices[index].dev_id;
drivers/hid/intel-ish-hid/ishtp-hid-client.c
99
payload_len = recv_msg->hdr.size;
drivers/hid/intel-ish-hid/ishtp-hid.h
33
struct hostif_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp-hid.h
38
struct hostif_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/bus.c
113
int ishtp_write_message(struct ishtp_device *dev, struct ishtp_msg_hdr *hdr,
drivers/hid/intel-ish-hid/ishtp/bus.c
116
return ishtp_send_msg(dev, hdr, buf, NULL, NULL);
drivers/hid/intel-ish-hid/ishtp/bus.c
84
int ishtp_send_msg(struct ishtp_device *dev, struct ishtp_msg_hdr *hdr,
drivers/hid/intel-ish-hid/ishtp/bus.c
91
drbl_val = dev->ops->ipc_get_header(dev, hdr->length +
drivers/hid/intel-ish-hid/ishtp/bus.c
96
memcpy(ipc_msg + sizeof(uint32_t), hdr, sizeof(uint32_t));
drivers/hid/intel-ish-hid/ishtp/bus.c
97
memcpy(ipc_msg + 2 * sizeof(uint32_t), msg, hdr->length);
drivers/hid/intel-ish-hid/ishtp/bus.c
99
ipc_msg, 2 * sizeof(uint32_t) + hdr->length);
drivers/hid/intel-ish-hid/ishtp/bus.h
54
struct ishtp_msg_hdr *hdr, void *msg,
drivers/hid/intel-ish-hid/ishtp/bus.h
60
struct ishtp_msg_hdr *hdr,
drivers/hid/intel-ish-hid/ishtp/client.c
893
struct ishtp_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/client.c
942
ishtp_hbm_hdr(&hdr, sizeof(struct dma_xfer_hbm));
drivers/hid/intel-ish-hid/ishtp/client.c
950
ishtp_write_message(dev, &hdr, (unsigned char *)&dma_xfer);
drivers/hid/intel-ish-hid/ishtp/hbm.c
1006
query_subscribers_msg.hdr.cmd = SYSTEM_STATE_QUERY_SUBSCRIBERS;
drivers/hid/intel-ish-hid/ishtp/hbm.c
129
struct ishtp_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
132
ishtp_hbm_hdr(&hdr, sizeof(start_req));
drivers/hid/intel-ish-hid/ishtp/hbm.c
145
if (ishtp_write_message(dev, &hdr, &start_req)) {
drivers/hid/intel-ish-hid/ishtp/hbm.c
166
struct ishtp_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
170
ishtp_hbm_hdr(&hdr, sizeof(enum_req));
drivers/hid/intel-ish-hid/ishtp/hbm.c
173
if (ishtp_write_message(dev, &hdr, &enum_req)) {
drivers/hid/intel-ish-hid/ishtp/hbm.c
191
struct ishtp_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
216
ishtp_hbm_hdr(&hdr, sizeof(prop_req));
drivers/hid/intel-ish-hid/ishtp/hbm.c
221
if (ishtp_write_message(dev, &hdr, &prop_req)) {
drivers/hid/intel-ish-hid/ishtp/hbm.c
241
struct ishtp_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
244
ishtp_hbm_hdr(&hdr, sizeof(stop_req));
drivers/hid/intel-ish-hid/ishtp/hbm.c
249
ishtp_write_message(dev, &hdr, &stop_req);
drivers/hid/intel-ish-hid/ishtp/hbm.c
264
struct ishtp_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
272
ishtp_hbm_hdr(&hdr, len);
drivers/hid/intel-ish-hid/ishtp/hbm.c
286
rv = ishtp_write_message(dev, &hdr, &flow_ctrl);
drivers/hid/intel-ish-hid/ishtp/hbm.c
315
struct ishtp_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
319
ishtp_hbm_hdr(&hdr, len);
drivers/hid/intel-ish-hid/ishtp/hbm.c
322
return ishtp_write_message(dev, &hdr, &disconn_req);
drivers/hid/intel-ish-hid/ishtp/hbm.c
360
struct ishtp_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
364
ishtp_hbm_hdr(&hdr, len);
drivers/hid/intel-ish-hid/ishtp/hbm.c
367
return ishtp_write_message(dev, &hdr, &conn_req);
drivers/hid/intel-ish-hid/ishtp/hbm.c
413
struct ishtp_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
422
ishtp_hbm_hdr(&hdr, len);
drivers/hid/intel-ish-hid/ishtp/hbm.c
425
ishtp_write_message(dev, &hdr, data);
drivers/hid/intel-ish-hid/ishtp/hbm.c
507
struct ishtp_msg_hdr hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
533
ishtp_hbm_hdr(&hdr, ishtp_hdr->length);
drivers/hid/intel-ish-hid/ishtp/hbm.c
534
ishtp_write_message(dev, &hdr, (unsigned char *)prm);
drivers/hid/intel-ish-hid/ishtp/hbm.c
546
struct ishtp_bus_message *hdr)
drivers/hid/intel-ish-hid/ishtp/hbm.c
560
ishtp_msg = hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
924
static inline void fix_cl_hdr(struct ishtp_msg_hdr *hdr, size_t length,
drivers/hid/intel-ish-hid/ishtp/hbm.c
927
hdr->host_addr = 0;
drivers/hid/intel-ish-hid/ishtp/hbm.c
928
hdr->fw_addr = cl_addr;
drivers/hid/intel-ish-hid/ishtp/hbm.c
929
hdr->length = length;
drivers/hid/intel-ish-hid/ishtp/hbm.c
930
hdr->msg_complete = 1;
drivers/hid/intel-ish-hid/ishtp/hbm.c
931
hdr->reserved = 0;
drivers/hid/intel-ish-hid/ishtp/hbm.c
954
state_status_msg.hdr.cmd = SYSTEM_STATE_STATUS;
drivers/hid/intel-ish-hid/ishtp/hbm.c
980
state_status_msg.hdr.cmd = SYSTEM_STATE_STATUS;
drivers/hid/intel-ish-hid/ishtp/hbm.h
247
struct ish_system_states_header hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.h
252
struct ish_system_states_header hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.h
258
struct ish_system_states_header hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.h
262
struct ish_system_states_header hdr;
drivers/hid/intel-ish-hid/ishtp/hbm.h
285
static inline void ishtp_hbm_hdr(struct ishtp_msg_hdr *hdr, size_t length)
drivers/hid/intel-ish-hid/ishtp/hbm.h
287
hdr->host_addr = 0;
drivers/hid/intel-ish-hid/ishtp/hbm.h
288
hdr->fw_addr = 0;
drivers/hid/intel-ish-hid/ishtp/hbm.h
289
hdr->length = length;
drivers/hid/intel-ish-hid/ishtp/hbm.h
290
hdr->msg_complete = 1;
drivers/hid/intel-ish-hid/ishtp/hbm.h
291
hdr->reserved = 0;
drivers/hid/intel-ish-hid/ishtp/hbm.h
306
struct ishtp_bus_message *hdr);
drivers/hv/channel_mgmt.c
1020
static void vmbus_onoffer(struct vmbus_channel_message_header *hdr)
drivers/hv/channel_mgmt.c
1027
offer = (struct vmbus_channel_offer_channel *)hdr;
drivers/hv/channel_mgmt.c
1155
static void vmbus_onoffer_rescind(struct vmbus_channel_message_header *hdr)
drivers/hv/channel_mgmt.c
1162
rescind = (struct vmbus_channel_rescind_offer *)hdr;
drivers/hv/channel_mgmt.c
1326
struct vmbus_channel_message_header *hdr)
drivers/hv/channel_mgmt.c
1338
static void vmbus_onopen_result(struct vmbus_channel_message_header *hdr)
drivers/hv/channel_mgmt.c
1346
result = (struct vmbus_channel_open_result *)hdr;
drivers/hv/channel_mgmt.c
1384
static void vmbus_ongpadl_created(struct vmbus_channel_message_header *hdr)
drivers/hv/channel_mgmt.c
1392
gpadlcreated = (struct vmbus_channel_gpadl_created *)hdr;
drivers/hv/channel_mgmt.c
1432
static void vmbus_onmodifychannel_response(struct vmbus_channel_message_header *hdr)
drivers/hv/channel_mgmt.c
1438
response = (struct vmbus_channel_modifychannel_response *)hdr;
drivers/hv/channel_mgmt.c
1474
struct vmbus_channel_message_header *hdr)
drivers/hv/channel_mgmt.c
1482
gpadl_torndown = (struct vmbus_channel_gpadl_torndown *)hdr;
drivers/hv/channel_mgmt.c
1521
struct vmbus_channel_message_header *hdr)
drivers/hv/channel_mgmt.c
1528
version_response = (struct vmbus_channel_version_response *)hdr;
drivers/hv/channel_mgmt.c
1592
void vmbus_onmessage(struct vmbus_channel_message_header *hdr)
drivers/hv/channel_mgmt.c
1594
trace_vmbus_on_message(hdr);
drivers/hv/channel_mgmt.c
1600
channel_message_table[hdr->msgtype].message_handler(hdr);
drivers/hv/channel_mgmt.c
818
struct vmbus_channel_message_header *hdr;
drivers/hv/channel_mgmt.c
865
hdr = (struct vmbus_channel_message_header *)
drivers/hv/channel_mgmt.c
868
if (hdr->msgtype == CHANNELMSG_UNLOAD_RESPONSE)
drivers/hv/channel_mgmt.c
907
static void vmbus_unload_response(struct vmbus_channel_message_header *hdr)
drivers/hv/channel_mgmt.c
923
struct vmbus_channel_message_header hdr;
drivers/hv/channel_mgmt.c
933
memset(&hdr, 0, sizeof(struct vmbus_channel_message_header));
drivers/hv/channel_mgmt.c
934
hdr.msgtype = CHANNELMSG_UNLOAD;
drivers/hv/channel_mgmt.c
935
vmbus_post_msg(&hdr, sizeof(struct vmbus_channel_message_header),
drivers/hv/connection.c
441
struct vmbus_channel_message_header *hdr;
drivers/hv/connection.c
469
hdr = buffer;
drivers/hv/connection.c
470
if (hdr->msgtype == CHANNELMSG_INITIATE_CONTACT)
drivers/hv/hv_balloon.c
1037
resp.hdr.trans_id = atomic_inc_return(&trans_id);
drivers/hv/hv_balloon.c
1135
status.hdr.type = DM_STATUS_REPORT;
drivers/hv/hv_balloon.c
1136
status.hdr.size = sizeof(struct dm_status);
drivers/hv/hv_balloon.c
1137
status.hdr.trans_id = atomic_inc_return(&trans_id);
drivers/hv/hv_balloon.c
1165
if (status.hdr.trans_id != atomic_read(&trans_id))
drivers/hv/hv_balloon.c
1209
if (bl_resp->hdr.size + sizeof(union dm_mem_page_range) >
drivers/hv/hv_balloon.c
1245
bl_resp->hdr.size += sizeof(union dm_mem_page_range);
drivers/hv/hv_balloon.c
1284
bl_resp->hdr.type = DM_BALLOON_RESPONSE;
drivers/hv/hv_balloon.c
1285
bl_resp->hdr.size = sizeof(struct dm_balloon_response);
drivers/hv/hv_balloon.c
1313
bl_resp->hdr.trans_id = atomic_inc_return(&trans_id);
drivers/hv/hv_balloon.c
1316
bl_resp->hdr.size,
drivers/hv/hv_balloon.c
1361
resp.hdr.type = DM_UNBALLOON_RESPONSE;
drivers/hv/hv_balloon.c
1362
resp.hdr.trans_id = atomic_inc_return(&trans_id);
drivers/hv/hv_balloon.c
1363
resp.hdr.size = sizeof(struct dm_unballoon_response);
drivers/hv/hv_balloon.c
1431
version_req.hdr.type = DM_VERSION_REQUEST;
drivers/hv/hv_balloon.c
1432
version_req.hdr.size = sizeof(struct dm_version_request);
drivers/hv/hv_balloon.c
1433
version_req.hdr.trans_id = atomic_inc_return(&trans_id);
drivers/hv/hv_balloon.c
1495
dm_hdr = &dm_msg->hdr;
drivers/hv/hv_balloon.c
1538
if (ha_msg->hdr.size == sizeof(struct dm_hot_add)) {
drivers/hv/hv_balloon.c
166
struct dm_header hdr;
drivers/hv/hv_balloon.c
1743
version_req.hdr.type = DM_VERSION_REQUEST;
drivers/hv/hv_balloon.c
1744
version_req.hdr.size = sizeof(struct dm_version_request);
drivers/hv/hv_balloon.c
1745
version_req.hdr.trans_id = atomic_inc_return(&trans_id);
drivers/hv/hv_balloon.c
1779
cap_msg.hdr.type = DM_CAPABILITIES_REPORT;
drivers/hv/hv_balloon.c
1780
cap_msg.hdr.size = sizeof(struct dm_capabilities);
drivers/hv/hv_balloon.c
1781
cap_msg.hdr.trans_id = atomic_inc_return(&trans_id);
drivers/hv/hv_balloon.c
185
struct dm_header hdr;
drivers/hv/hv_balloon.c
203
struct dm_header hdr;
drivers/hv/hv_balloon.c
214
struct dm_header hdr;
drivers/hv/hv_balloon.c
231
struct dm_header hdr;
drivers/hv/hv_balloon.c
257
struct dm_header hdr;
drivers/hv/hv_balloon.c
275
struct dm_header hdr;
drivers/hv/hv_balloon.c
295
struct dm_header hdr;
drivers/hv/hv_balloon.c
318
struct dm_header hdr;
drivers/hv/hv_balloon.c
332
struct dm_header hdr;
drivers/hv/hv_balloon.c
343
struct dm_header hdr;
drivers/hv/hv_balloon.c
368
struct dm_header hdr;
drivers/hv/hv_balloon.c
401
struct dm_header hdr;
drivers/hv/hv_balloon.c
978
resp.hdr.type = DM_MEM_HOT_ADD_RESPONSE;
drivers/hv/hv_balloon.c
979
resp.hdr.size = sizeof(struct dm_hot_add_response);
drivers/hv/hv_trace.h
12
TP_PROTO(const struct vmbus_channel_message_header *hdr),
drivers/hv/hv_trace.h
13
TP_ARGS(hdr),
drivers/hv/hv_trace.h
15
TP_fast_assign(__entry->msgtype = hdr->msgtype;),
drivers/hv/hv_trace.h
20
TP_PROTO(const struct vmbus_channel_message_header *hdr),
drivers/hv/hv_trace.h
21
TP_ARGS(hdr)
drivers/hv/hv_trace.h
25
TP_PROTO(const struct vmbus_channel_message_header *hdr),
drivers/hv/hv_trace.h
26
TP_ARGS(hdr)
drivers/hv/vmbus_drv.c
1065
struct vmbus_channel_message_header *hdr;
drivers/hv/vmbus_drv.c
1096
hdr = (struct vmbus_channel_message_header *)msg_copy.u.payload;
drivers/hv/vmbus_drv.c
1097
msgtype = hdr->msgtype;
drivers/hv/vmbus_drv.c
1099
trace_vmbus_on_msg_dpc(hdr);
drivers/hv/vmbus_drv.c
1195
entry->message_handler(hdr);
drivers/i2c/busses/i2c-designware-amdpsp.c
100
req->hdr.payload_size = sizeof(*req);
drivers/i2c/busses/i2c-designware-amdpsp.c
26
struct psp_req_buffer_hdr hdr;
drivers/i2c/busses/i2c-designware-amdpsp.c
44
status = READ_ONCE(req->hdr.status);
drivers/i2c/busses/i2c-designware-amdpsp.c
82
ret = psp_ring_platform_doorbell(req->type, &req->hdr.status);
drivers/iio/imu/bno055/bno055_ser_core.c
188
u8 hdr[] = {0xAA, read, addr, len};
drivers/iio/imu/bno055/bno055_ser_core.c
192
ret = bno055_ser_send_chunk(priv, hdr, 2);
drivers/iio/imu/bno055/bno055_ser_core.c
196
ret = bno055_ser_send_chunk(priv, hdr + 2, 2);
drivers/infiniband/core/cm.c
1321
static void cm_format_mad_hdr(struct ib_mad_hdr *hdr,
drivers/infiniband/core/cm.c
1324
hdr->base_version = IB_MGMT_BASE_VERSION;
drivers/infiniband/core/cm.c
1325
hdr->mgmt_class = IB_MGMT_CLASS_CM;
drivers/infiniband/core/cm.c
1326
hdr->class_version = IB_CM_CLASS_VERSION;
drivers/infiniband/core/cm.c
1327
hdr->method = IB_MGMT_METHOD_SEND;
drivers/infiniband/core/cm.c
1328
hdr->attr_id = attr_id;
drivers/infiniband/core/cm.c
1329
hdr->tid = tid;
drivers/infiniband/core/cm.c
1332
static void cm_format_mad_ece_hdr(struct ib_mad_hdr *hdr, __be16 attr_id,
drivers/infiniband/core/cm.c
1335
cm_format_mad_hdr(hdr, attr_id, tid);
drivers/infiniband/core/cm.c
1336
hdr->attr_mod = cpu_to_be32(attr_mod);
drivers/infiniband/core/cm.c
1352
cm_format_mad_ece_hdr(&req_msg->hdr, CM_REQ_ATTR_ID,
drivers/infiniband/core/cm.c
1585
cm_id_priv->tid = req_msg->hdr.tid;
drivers/infiniband/core/cm.c
1624
cm_format_mad_hdr(&rej_msg->hdr, CM_REJ_ATTR_ID, rcv_msg->hdr.tid);
drivers/infiniband/core/cm.c
1856
param->ece.attr_mod = be32_to_cpu(req_msg->hdr.attr_mod);
drivers/infiniband/core/cm.c
1892
cm_format_mad_hdr(&mra_msg->hdr, CM_MRA_ATTR_ID, cm_id_priv->tid);
drivers/infiniband/core/cm.c
1913
cm_format_mad_hdr(&rej_msg->hdr, CM_REJ_ATTR_ID, cm_id_priv->tid);
drivers/infiniband/core/cm.c
2113
cm_id_priv->tid = req_msg->hdr.tid;
drivers/infiniband/core/cm.c
2253
cm_format_mad_ece_hdr(&rep_msg->hdr, CM_REP_ATTR_ID, cm_id_priv->tid,
drivers/infiniband/core/cm.c
2350
cm_format_mad_hdr(&rtu_msg->hdr, CM_RTU_ATTR_ID, cm_id_priv->tid);
drivers/infiniband/core/cm.c
2438
param->ece.attr_mod = be32_to_cpu(rep_msg->hdr.attr_mod);
drivers/infiniband/core/cm.c
2655
cm_format_mad_hdr(&dreq_msg->hdr, CM_DREQ_ATTR_ID,
drivers/infiniband/core/cm.c
2741
cm_format_mad_hdr(&drep_msg->hdr, CM_DREP_ATTR_ID, cm_id_priv->tid);
drivers/infiniband/core/cm.c
2823
cm_format_mad_hdr(&drep_msg->hdr, CM_DREP_ATTR_ID, dreq_msg->hdr.tid);
drivers/infiniband/core/cm.c
2904
cm_id_priv->tid = dreq_msg->hdr.tid;
drivers/infiniband/core/cm.c
3373
cm_id_priv->tid = lap_msg->hdr.tid;
drivers/infiniband/core/cm.c
3459
cm_format_mad_hdr(&sidr_req_msg->hdr, CM_SIDR_REQ_ATTR_ID,
drivers/infiniband/core/cm.c
3566
cm_id_priv->tid = sidr_req_msg->hdr.tid;
drivers/infiniband/core/cm.c
3625
cm_format_mad_ece_hdr(&sidr_rep_msg->hdr, CM_SIDR_REP_ATTR_ID,
drivers/infiniband/core/cma.c
1458
struct cma_hdr *hdr,
drivers/infiniband/core/cma.c
1464
.sin_addr.s_addr = hdr->dst_addr.ip4.addr,
drivers/infiniband/core/cma.c
1472
.sin_addr.s_addr = hdr->src_addr.ip4.addr,
drivers/infiniband/core/cma.c
1473
.sin_port = hdr->port,
drivers/infiniband/core/cma.c
1480
struct cma_hdr *hdr,
drivers/infiniband/core/cma.c
1486
.sin6_addr = hdr->dst_addr.ip6,
drivers/infiniband/core/cma.c
1494
.sin6_addr = hdr->src_addr.ip6,
drivers/infiniband/core/cma.c
1495
.sin6_port = hdr->port,
drivers/infiniband/core/cma.c
1510
struct cma_hdr *hdr;
drivers/infiniband/core/cma.c
1513
hdr = ib_event->private_data;
drivers/infiniband/core/cma.c
1514
if (hdr->cma_version != CMA_VERSION)
drivers/infiniband/core/cma.c
1519
switch (cma_get_ip_ver(hdr)) {
drivers/infiniband/core/cma.c
1522
(struct sockaddr_in *)dst_addr, hdr, port);
drivers/infiniband/core/cma.c
1526
(struct sockaddr_in6 *)dst_addr, hdr, port);
drivers/infiniband/core/cma.c
1727
const struct cma_hdr *hdr)
drivers/infiniband/core/cma.c
1739
if (cma_get_ip_ver(hdr) != 4)
drivers/infiniband/core/cma.c
1742
hdr->dst_addr.ip4.addr != ip4_addr)
drivers/infiniband/core/cma.c
1747
if (cma_get_ip_ver(hdr) != 6)
drivers/infiniband/core/cma.c
1750
memcmp(&hdr->dst_addr.ip6, &ip6_addr, sizeof(ip6_addr)))
drivers/infiniband/core/cma.c
416
static inline u8 cma_get_ip_ver(const struct cma_hdr *hdr)
drivers/infiniband/core/cma.c
418
return hdr->ip_version >> 4;
drivers/infiniband/core/cma.c
421
static void cma_set_ip_ver(struct cma_hdr *hdr, u8 ip_ver)
drivers/infiniband/core/cma.c
4220
static int cma_format_hdr(void *hdr, struct rdma_id_private *id_priv)
drivers/infiniband/core/cma.c
4224
cma_hdr = hdr;
drivers/infiniband/core/cma.c
423
hdr->ip_version = (ip_ver << 4) | (hdr->ip_version & 0xF);
drivers/infiniband/core/mad.c
204
int ib_response_mad(const struct ib_mad_hdr *hdr)
drivers/infiniband/core/mad.c
206
return ((hdr->method & IB_MGMT_METHOD_RESP) ||
drivers/infiniband/core/mad.c
207
(hdr->method == IB_MGMT_METHOD_TRAP_REPRESS) ||
drivers/infiniband/core/mad.c
208
((hdr->mgmt_class == IB_MGMT_CLASS_BM) &&
drivers/infiniband/core/mad.c
209
(hdr->attr_mod & IB_BM_ATTR_MOD_RESP)));
drivers/infiniband/core/ucma.c
1831
struct rdma_ucm_cmd_hdr hdr;
drivers/infiniband/core/ucma.c
1840
if (len < sizeof(hdr))
drivers/infiniband/core/ucma.c
1843
if (copy_from_user(&hdr, buf, sizeof(hdr)))
drivers/infiniband/core/ucma.c
1846
if (hdr.cmd >= ARRAY_SIZE(ucma_cmd_table))
drivers/infiniband/core/ucma.c
1848
hdr.cmd = array_index_nospec(hdr.cmd, ARRAY_SIZE(ucma_cmd_table));
drivers/infiniband/core/ucma.c
1850
if (hdr.in + sizeof(hdr) > len)
drivers/infiniband/core/ucma.c
1853
if (!ucma_cmd_table[hdr.cmd])
drivers/infiniband/core/ucma.c
1856
ret = ucma_cmd_table[hdr.cmd](file, buf + sizeof(hdr), hdr.in, hdr.out);
drivers/infiniband/core/user_mad.c
197
for (packet->mad.hdr.id = 0;
drivers/infiniband/core/user_mad.c
198
packet->mad.hdr.id < IB_UMAD_MAX_AGENTS;
drivers/infiniband/core/user_mad.c
199
packet->mad.hdr.id++)
drivers/infiniband/core/user_mad.c
200
if (agent == __get_agent(file, packet->mad.hdr.id)) {
drivers/infiniband/core/user_mad.c
233
packet->mad.hdr.status = ETIMEDOUT;
drivers/infiniband/core/user_mad.c
257
packet->mad.hdr.status = 0;
drivers/infiniband/core/user_mad.c
258
packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len;
drivers/infiniband/core/user_mad.c
259
packet->mad.hdr.qpn = cpu_to_be32(mad_recv_wc->wc->src_qp);
drivers/infiniband/core/user_mad.c
265
packet->mad.hdr.lid = ib_lid_be16(0xFFFF &
drivers/infiniband/core/user_mad.c
268
packet->mad.hdr.lid = ib_lid_be16(mad_recv_wc->wc->slid);
drivers/infiniband/core/user_mad.c
269
packet->mad.hdr.sl = mad_recv_wc->wc->sl;
drivers/infiniband/core/user_mad.c
270
packet->mad.hdr.path_bits = mad_recv_wc->wc->dlid_path_bits;
drivers/infiniband/core/user_mad.c
271
packet->mad.hdr.pkey_index = mad_recv_wc->wc->pkey_index;
drivers/infiniband/core/user_mad.c
272
packet->mad.hdr.grh_present = !!(mad_recv_wc->wc->wc_flags & IB_WC_GRH);
drivers/infiniband/core/user_mad.c
273
if (packet->mad.hdr.grh_present) {
drivers/infiniband/core/user_mad.c
286
packet->mad.hdr.gid_index = grh->sgid_index;
drivers/infiniband/core/user_mad.c
287
packet->mad.hdr.hop_limit = grh->hop_limit;
drivers/infiniband/core/user_mad.c
288
packet->mad.hdr.traffic_class = grh->traffic_class;
drivers/infiniband/core/user_mad.c
289
memcpy(packet->mad.hdr.gid, &grh->dgid, 16);
drivers/infiniband/core/user_mad.c
290
packet->mad.hdr.flow_label = cpu_to_be32(grh->flow_label);
drivers/infiniband/core/user_mad.c
355
trace_ib_umad_read_recv(file, &packet->mad.hdr, &recv_buf->mad->mad_hdr);
drivers/infiniband/core/user_mad.c
376
trace_ib_umad_read_send(file, &packet->mad.hdr,
drivers/infiniband/core/user_mad.c
478
struct ib_mad_hdr *sent_hdr, *hdr;
drivers/infiniband/core/user_mad.c
480
hdr = (struct ib_mad_hdr *) packet->mad.data;
drivers/infiniband/core/user_mad.c
484
if ((hdr->tid != sent_hdr->tid) ||
drivers/infiniband/core/user_mad.c
485
(hdr->mgmt_class != sent_hdr->mgmt_class))
drivers/infiniband/core/user_mad.c
493
if (!ib_response_mad(hdr)) {
drivers/infiniband/core/user_mad.c
500
if (same_destination(&packet->mad.hdr, &sent_packet->mad.hdr))
drivers/infiniband/core/user_mad.c
533
if (packet->mad.hdr.id >= IB_UMAD_MAX_AGENTS) {
drivers/infiniband/core/user_mad.c
547
trace_ib_umad_write(file, &packet->mad.hdr,
drivers/infiniband/core/user_mad.c
550
agent = __get_agent(file, packet->mad.hdr.id);
drivers/infiniband/core/user_mad.c
559
rdma_ah_set_dlid(&ah_attr, be16_to_cpu(packet->mad.hdr.lid));
drivers/infiniband/core/user_mad.c
560
rdma_ah_set_sl(&ah_attr, packet->mad.hdr.sl);
drivers/infiniband/core/user_mad.c
561
rdma_ah_set_path_bits(&ah_attr, packet->mad.hdr.path_bits);
drivers/infiniband/core/user_mad.c
563
if (packet->mad.hdr.grh_present) {
drivers/infiniband/core/user_mad.c
565
be32_to_cpu(packet->mad.hdr.flow_label),
drivers/infiniband/core/user_mad.c
566
packet->mad.hdr.gid_index,
drivers/infiniband/core/user_mad.c
567
packet->mad.hdr.hop_limit,
drivers/infiniband/core/user_mad.c
568
packet->mad.hdr.traffic_class);
drivers/infiniband/core/user_mad.c
569
rdma_ah_set_dgid_raw(&ah_attr, packet->mad.hdr.gid);
drivers/infiniband/core/user_mad.c
597
be32_to_cpu(packet->mad.hdr.qpn),
drivers/infiniband/core/user_mad.c
598
packet->mad.hdr.pkey_index, rmpp_active,
drivers/infiniband/core/user_mad.c
607
packet->msg->timeout_ms = packet->mad.hdr.timeout_ms;
drivers/infiniband/core/user_mad.c
608
packet->msg->retries = packet->mad.hdr.retries;
drivers/infiniband/core/uverbs.h
237
struct ib_uverbs_flow_spec_hdr hdr;
drivers/infiniband/core/uverbs_cmd.c
2880
if (check_sub_overflow((size_t)kern_spec->hdr.size,
drivers/infiniband/core/uverbs_ioctl.c
113
container_of(&bundle->hdr, struct bundle_priv, bundle);
drivers/infiniband/core/uverbs_ioctl.c
155
container_of(&bundle->hdr, struct bundle_priv, bundle);
drivers/infiniband/core/uverbs_ioctl.c
173
container_of(&pbundle->bundle, struct uverbs_attr_bundle, hdr);
drivers/infiniband/core/uverbs_ioctl.c
249
container_of(&pbundle->bundle, struct uverbs_attr_bundle, hdr);
drivers/infiniband/core/uverbs_ioctl.c
39
struct_group_tagged(bundle_alloc_head_hdr, hdr,
drivers/infiniband/core/uverbs_ioctl.c
433
container_of(&pbundle->bundle, struct uverbs_attr_bundle, hdr);
drivers/infiniband/core/uverbs_ioctl.c
512
container_of(&pbundle->bundle, struct uverbs_attr_bundle, hdr);
drivers/infiniband/core/uverbs_ioctl.c
559
struct ib_uverbs_ioctl_hdr *hdr,
drivers/infiniband/core/uverbs_ioctl.c
570
if (unlikely(hdr->driver_id != uapi->driver_id))
drivers/infiniband/core/uverbs_ioctl.c
575
uapi_key_obj(hdr->object_id) |
drivers/infiniband/core/uverbs_ioctl.c
576
uapi_key_ioctl_method(hdr->method_id));
drivers/infiniband/core/uverbs_ioctl.c
590
struct bundle_alloc_head, hdr);
drivers/infiniband/core/uverbs_ioctl.c
609
struct uverbs_attr_bundle, hdr)->attrs),
drivers/infiniband/core/uverbs_ioctl.c
618
ret = ib_uverbs_run_method(pbundle, hdr->num_attrs);
drivers/infiniband/core/uverbs_ioctl.c
628
struct ib_uverbs_ioctl_hdr hdr;
drivers/infiniband/core/uverbs_ioctl.c
635
err = copy_from_user(&hdr, user_hdr, sizeof(hdr));
drivers/infiniband/core/uverbs_ioctl.c
639
if (hdr.length > PAGE_SIZE ||
drivers/infiniband/core/uverbs_ioctl.c
640
hdr.length != struct_size(&hdr, attrs, hdr.num_attrs))
drivers/infiniband/core/uverbs_ioctl.c
643
if (hdr.reserved1 || hdr.reserved2)
drivers/infiniband/core/uverbs_ioctl.c
647
err = ib_uverbs_cmd_verbs(file, &hdr, user_hdr->attrs);
drivers/infiniband/core/uverbs_ioctl.c
713
container_of(&bundle->hdr, struct bundle_priv, bundle);
drivers/infiniband/core/uverbs_ioctl.c
715
container_of(&pbundle->bundle, struct uverbs_attr_bundle, hdr);
drivers/infiniband/core/uverbs_ioctl.c
844
container_of(&bundle->hdr, struct bundle_priv, bundle);
drivers/infiniband/core/uverbs_main.c
512
static ssize_t verify_hdr(struct ib_uverbs_cmd_hdr *hdr,
drivers/infiniband/core/uverbs_main.c
517
count -= sizeof(*hdr) + sizeof(*ex_hdr);
drivers/infiniband/core/uverbs_main.c
519
if ((hdr->in_words + ex_hdr->provider_in_words) * 8 != count)
drivers/infiniband/core/uverbs_main.c
522
if (hdr->in_words * 8 < method_elm->req_size)
drivers/infiniband/core/uverbs_main.c
529
if (!hdr->out_words && !ex_hdr->provider_out_words)
drivers/infiniband/core/uverbs_main.c
532
if (hdr->out_words * 8 < method_elm->resp_size)
drivers/infiniband/core/uverbs_main.c
536
(hdr->out_words + ex_hdr->provider_out_words) * 8))
drivers/infiniband/core/uverbs_main.c
539
if (hdr->out_words || ex_hdr->provider_out_words)
drivers/infiniband/core/uverbs_main.c
547
if (hdr->in_words * 4 != count)
drivers/infiniband/core/uverbs_main.c
550
if (count < method_elm->req_size + sizeof(*hdr)) {
drivers/infiniband/core/uverbs_main.c
558
if (hdr->command == IB_USER_VERBS_CMD_DESTROY_CQ &&
drivers/infiniband/core/uverbs_main.c
560
hdr->in_words = 6;
drivers/infiniband/core/uverbs_main.c
565
if (hdr->out_words * 4 < method_elm->resp_size)
drivers/infiniband/core/uverbs_main.c
578
struct ib_uverbs_cmd_hdr hdr;
drivers/infiniband/core/uverbs_main.c
589
if (count < sizeof(hdr))
drivers/infiniband/core/uverbs_main.c
592
if (copy_from_user(&hdr, buf, sizeof(hdr)))
drivers/infiniband/core/uverbs_main.c
595
method_elm = uapi_get_method(uapi, hdr.command);
drivers/infiniband/core/uverbs_main.c
600
if (count < (sizeof(hdr) + sizeof(ex_hdr)))
drivers/infiniband/core/uverbs_main.c
602
if (copy_from_user(&ex_hdr, buf + sizeof(hdr), sizeof(ex_hdr)))
drivers/infiniband/core/uverbs_main.c
606
ret = verify_hdr(&hdr, &ex_hdr, count, method_elm);
drivers/infiniband/core/uverbs_main.c
612
buf += sizeof(hdr);
drivers/infiniband/core/uverbs_main.c
619
size_t in_len = hdr.in_words * 4 - sizeof(hdr);
drivers/infiniband/core/uverbs_main.c
620
size_t out_len = hdr.out_words * 4;
drivers/infiniband/core/uverbs_main.c
670
hdr.in_words * 8, hdr.out_words * 8);
drivers/infiniband/core/verbs.c
681
int ib_get_rdma_header_version(const union rdma_network_hdr *hdr)
drivers/infiniband/core/verbs.c
683
const struct iphdr *ip4h = (struct iphdr *)&hdr->roce4grh;
drivers/infiniband/core/verbs.c
685
const struct ipv6hdr *ip6h = (struct ipv6hdr *)&hdr->ibgrh;
drivers/infiniband/core/verbs.c
769
int ib_get_gids_from_rdma_hdr(const union rdma_network_hdr *hdr,
drivers/infiniband/core/verbs.c
782
&hdr->roce4grh.saddr, 4);
drivers/infiniband/core/verbs.c
784
&hdr->roce4grh.daddr, 4);
drivers/infiniband/core/verbs.c
794
*dgid = hdr->ibgrh.dgid;
drivers/infiniband/core/verbs.c
795
*sgid = hdr->ibgrh.sgid;
drivers/infiniband/hw/bng_re/bng_dev.c
100
hdr->cmpl_ring = cpu_to_le16(-1);
drivers/infiniband/hw/bng_re/bng_dev.c
101
hdr->target_id = cpu_to_le16(-1);
drivers/infiniband/hw/bng_re/bng_dev.c
97
static void bng_re_init_hwrm_hdr(struct input *hdr, u16 opcd)
drivers/infiniband/hw/bng_re/bng_dev.c
99
hdr->req_type = cpu_to_le16(opcd);
drivers/infiniband/hw/bng_re/bng_fw.h
24
#define BNG_FW_CREQ_CMP_VALID(hdr, pass) \
drivers/infiniband/hw/bng_re/bng_fw.h
25
(!!((hdr)->v & CREQ_BASE_V) == \
drivers/infiniband/hw/bnxt_re/main.c
530
static void bnxt_re_init_hwrm_hdr(struct input *hdr, u16 opcd)
drivers/infiniband/hw/bnxt_re/main.c
532
hdr->req_type = cpu_to_le16(opcd);
drivers/infiniband/hw/bnxt_re/main.c
533
hdr->cmpl_ring = cpu_to_le16(-1);
drivers/infiniband/hw/bnxt_re/main.c
534
hdr->target_id = cpu_to_le16(-1);
drivers/infiniband/hw/bnxt_re/qplib_fp.h
365
#define CQE_CMP_VALID(hdr, pass) \
drivers/infiniband/hw/bnxt_re/qplib_fp.h
366
(!!((hdr)->cqe_type_toggle & CQ_BASE_TOGGLE) == \
drivers/infiniband/hw/bnxt_re/qplib_fp.h
494
#define NQE_CMP_VALID(hdr, pass) \
drivers/infiniband/hw/bnxt_re/qplib_fp.h
495
(!!(le32_to_cpu((hdr)->info63_v[0]) & NQ_BASE_V) == \
drivers/infiniband/hw/bnxt_re/qplib_rcfw.h
146
#define CREQ_CMP_VALID(hdr, pass) \
drivers/infiniband/hw/bnxt_re/qplib_rcfw.h
147
(!!((hdr)->v & CREQ_BASE_V) == \
drivers/infiniband/hw/bnxt_re/qplib_sp.c
942
struct roce_tlv *hdr;
drivers/infiniband/hw/bnxt_re/qplib_sp.c
949
hdr = &tlv_req.tlv_hdr;
drivers/infiniband/hw/bnxt_re/qplib_sp.c
952
__roce_1st_tlv_prep(hdr, chunks, payload, true);
drivers/infiniband/hw/bnxt_re/qplib_sp.c
954
hdr = (struct roce_tlv *)&tlv_req.ext_req;
drivers/infiniband/hw/bnxt_re/qplib_sp.c
957
__roce_ext_tlv_prep(hdr, TLV_TYPE_MODIFY_ROCE_CC_GEN1, payload, false, true);
drivers/infiniband/hw/cxgb4/cm.c
1849
struct cpl_rx_data *hdr = cplhdr(skb);
drivers/infiniband/hw/cxgb4/cm.c
1850
unsigned int dlen = ntohs(hdr->len);
drivers/infiniband/hw/cxgb4/cm.c
1851
unsigned int tid = GET_TID(hdr);
drivers/infiniband/hw/cxgb4/cm.c
1852
__u8 status = hdr->status;
drivers/infiniband/hw/cxgb4/cm.c
1859
skb_pull(skb, sizeof(*hdr));
drivers/infiniband/hw/cxgb4/cm.c
2714
struct cpl_peer_close *hdr = cplhdr(skb);
drivers/infiniband/hw/cxgb4/cm.c
2719
unsigned int tid = GET_TID(hdr);
drivers/infiniband/hw/cxgb4/cm.c
3061
struct cpl_fw4_ack *hdr = cplhdr(skb);
drivers/infiniband/hw/cxgb4/cm.c
3062
u8 credits = hdr->credits;
drivers/infiniband/hw/cxgb4/cm.c
3063
unsigned int tid = GET_TID(hdr);
drivers/infiniband/hw/erdma/erdma.h
266
void erdma_cmdq_build_reqhdr(u64 *hdr, u32 mod, u32 op);
drivers/infiniband/hw/erdma/erdma_cm.c
1143
if (cep->mpa.hdr.params.pd_len) {
drivers/infiniband/hw/erdma/erdma_cm.c
1144
cep->mpa.hdr.params.pd_len = 0;
drivers/infiniband/hw/erdma/erdma_cm.c
1279
if (__mpa_rr_revision(cep->mpa.hdr.params.bits) == MPA_REVISION_EXT_1) {
drivers/infiniband/hw/erdma/erdma_cm.c
1280
cep->mpa.hdr.params.bits |= MPA_RR_FLAG_REJECT; /* reject */
drivers/infiniband/hw/erdma/erdma_cm.c
256
u16 pd_len = be16_to_cpu(cep->mpa.hdr.params.pd_len);
drivers/infiniband/hw/erdma/erdma_cm.c
336
struct mpa_rr *rr = &cep->mpa.hdr;
drivers/infiniband/hw/erdma/erdma_cm.c
378
static int __recv_mpa_hdr(struct erdma_cep *cep, int hdr_rcvd, char *hdr,
drivers/infiniband/hw/erdma/erdma_cm.c
386
rcvd = ksock_recv(s, hdr + hdr_rcvd, hdr_size - hdr_rcvd,
drivers/infiniband/hw/erdma/erdma_cm.c
441
struct mpa_rr *hdr = &cep->mpa.hdr;
drivers/infiniband/hw/erdma/erdma_cm.c
448
(char *)&cep->mpa.hdr,
drivers/infiniband/hw/erdma/erdma_cm.c
455
if (be16_to_cpu(hdr->params.pd_len) > MPA_MAX_PRIVDATA ||
drivers/infiniband/hw/erdma/erdma_cm.c
456
__mpa_rr_revision(hdr->params.bits) != MPA_REVISION_EXT_1)
drivers/infiniband/hw/erdma/erdma_cm.c
470
pd_len = be16_to_cpu(hdr->params.pd_len);
drivers/infiniband/hw/erdma/erdma_cm.c
534
req = &cep->mpa.hdr;
drivers/infiniband/hw/erdma/erdma_cm.c
582
rep = &cep->mpa.hdr;
drivers/infiniband/hw/erdma/erdma_cm.c
724
cep->mpa.hdr.params.bits = 0;
drivers/infiniband/hw/erdma/erdma_cm.c
725
__mpa_rr_set_revision(&cep->mpa.hdr.params.bits, MPA_REVISION_EXT_1);
drivers/infiniband/hw/erdma/erdma_cm.c
727
memcpy(cep->mpa.hdr.key, MPA_KEY_REQ, MPA_KEY_SIZE);
drivers/infiniband/hw/erdma/erdma_cm.c
733
cep->mpa.hdr.params.pd_len = 0;
drivers/infiniband/hw/erdma/erdma_cm.c
839
cep->mpa.hdr.params.pd_len = 0;
drivers/infiniband/hw/erdma/erdma_cm.h
61
struct mpa_rr hdr; /* peer mpa hdr in host byte order */
drivers/infiniband/hw/erdma/erdma_cmdq.c
261
u64 hdr = *req;
drivers/infiniband/hw/erdma/erdma_cmdq.c
272
hdr |= FIELD_PREP(ERDMA_CMD_HDR_WQEBB_INDEX_MASK, cmdq->sq.pi) |
drivers/infiniband/hw/erdma/erdma_cmdq.c
276
*wqe = cpu_to_le64(hdr);
drivers/infiniband/hw/erdma/erdma_cmdq.c
392
void erdma_cmdq_build_reqhdr(u64 *hdr, u32 mod, u32 op)
drivers/infiniband/hw/erdma/erdma_cmdq.c
394
*hdr = FIELD_PREP(ERDMA_CMD_HDR_SUB_MOD_MASK, mod) |
drivers/infiniband/hw/erdma/erdma_cq.c
149
cqe_hdr = be32_to_cpu(cqe->hdr);
drivers/infiniband/hw/erdma/erdma_cq.c
255
be32_to_cpu(dst_cqe->hdr));
drivers/infiniband/hw/erdma/erdma_cq.c
256
cqe->hdr = cpu_to_be32(
drivers/infiniband/hw/erdma/erdma_cq.c
257
(be32_to_cpu(cqe->hdr) &
drivers/infiniband/hw/erdma/erdma_eq.c
228
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_COMMON,
drivers/infiniband/hw/erdma/erdma_eq.c
275
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_COMMON,
drivers/infiniband/hw/erdma/erdma_eq.c
53
le32_to_cpu(aeqe->hdr)) == ERDMA_AE_TYPE_CQ_ERR) {
drivers/infiniband/hw/erdma/erdma_hw.h
179
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
187
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
198
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
211
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
217
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
227
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
256
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
284
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
301
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
323
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
330
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
341
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
356
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
373
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
410
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
430
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
435
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
444
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
464
struct erdma_cmdq_query_resp_hdr hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
495
u64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
539
__be32 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
595
__le64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
609
__le64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
620
__le64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
631
__le64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
641
__le64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
651
__le64 hdr;
drivers/infiniband/hw/erdma/erdma_hw.h
680
__le32 hdr;
drivers/infiniband/hw/erdma/erdma_main.c
435
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_COMMON,
drivers/infiniband/hw/erdma/erdma_qp.c
129
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_qp.c
223
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_qp.c
82
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_verbs.c
1297
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_verbs.c
1325
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_verbs.c
1373
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_verbs.c
144
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA, CMDQ_OPCODE_REG_MR);
drivers/infiniband/hw/erdma/erdma_verbs.c
1469
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_COMMON,
drivers/infiniband/hw/erdma/erdma_verbs.c
1501
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_COMMON,
drivers/infiniband/hw/erdma/erdma_verbs.c
1872
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_verbs.c
199
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_verbs.c
2036
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_COMMON,
drivers/infiniband/hw/erdma/erdma_verbs.c
2100
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_COMMON,
drivers/infiniband/hw/erdma/erdma_verbs.c
2115
if (resp->hdr.magic != ERDMA_HW_RESP_MAGIC) {
drivers/infiniband/hw/erdma/erdma_verbs.c
2170
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_verbs.c
2250
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_verbs.c
2275
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_verbs.c
462
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/erdma/erdma_verbs.c
48
erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_RDMA,
drivers/infiniband/hw/hfi1/driver.c
1439
packet->hdr = (struct hfi1_ib_message_header *)
drivers/infiniband/hw/hfi1/driver.c
1442
packet->hlen = (u8 *)packet->rhf_addr - (u8 *)packet->hdr;
drivers/infiniband/hw/hfi1/driver.c
1477
struct ib_header *hdr;
drivers/infiniband/hw/hfi1/driver.c
1481
hdr = packet->hdr;
drivers/infiniband/hw/hfi1/driver.c
1483
lnh = ib_get_lnh(hdr);
drivers/infiniband/hw/hfi1/driver.c
1485
packet->ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/driver.c
1490
packet->ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/driver.c
1491
packet->grh = &hdr->u.l.grh;
drivers/infiniband/hw/hfi1/driver.c
1504
packet->slid = ib_get_slid(hdr);
drivers/infiniband/hw/hfi1/driver.c
1505
packet->dlid = ib_get_dlid(hdr);
drivers/infiniband/hw/hfi1/driver.c
1510
packet->sl = ib_get_sl(hdr);
drivers/infiniband/hw/hfi1/driver.c
1511
packet->sc = hfi1_9B_get_sc5(hdr, packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
1540
packet->hdr = (struct hfi1_16b_header *)
drivers/infiniband/hw/hfi1/driver.c
1543
l4 = hfi1_16B_get_l4(packet->hdr);
drivers/infiniband/hw/hfi1/driver.c
1585
packet->slid = hfi1_16B_get_slid(packet->hdr);
drivers/infiniband/hw/hfi1/driver.c
1586
packet->dlid = hfi1_16B_get_dlid(packet->hdr);
drivers/infiniband/hw/hfi1/driver.c
1591
packet->sc = hfi1_16B_get_sc(packet->hdr);
drivers/infiniband/hw/hfi1/driver.c
1594
packet->pkey = hfi1_16B_get_pkey(packet->hdr);
drivers/infiniband/hw/hfi1/driver.c
1650
packet->ohdr = &((struct ib_header *)packet->hdr)->u.oth;
drivers/infiniband/hw/hfi1/driver.c
1743
if (hfi1_16B_get_l2(packet->hdr) == 0x2) {
drivers/infiniband/hw/hfi1/driver.c
1847
struct ib_header *hdr;
drivers/infiniband/hw/hfi1/driver.c
1863
packet.hdr = hfi1_get_msgheader(rcd, rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
1864
hdr = packet.hdr;
drivers/infiniband/hw/hfi1/driver.c
1866
lnh = be16_to_cpu(hdr->lrh[0]) & 3;
drivers/infiniband/hw/hfi1/driver.c
1869
packet.ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/driver.c
1871
packet.ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/driver.c
210
struct ib_header *rhdr = packet->hdr;
drivers/infiniband/hw/hfi1/driver.c
417
pkey = hfi1_16B_get_pkey(pkt->hdr);
drivers/infiniband/hw/hfi1/driver.c
418
sc = hfi1_16B_get_sc(pkt->hdr);
drivers/infiniband/hw/hfi1/driver.c
419
dlid = hfi1_16B_get_dlid(pkt->hdr);
drivers/infiniband/hw/hfi1/driver.c
420
slid = hfi1_16B_get_slid(pkt->hdr);
drivers/infiniband/hw/hfi1/driver.c
424
fecn = hfi1_16B_get_fecn(pkt->hdr);
drivers/infiniband/hw/hfi1/driver.c
425
becn = hfi1_16B_get_becn(pkt->hdr);
drivers/infiniband/hw/hfi1/driver.c
428
sc = hfi1_9B_get_sc5(pkt->hdr, pkt->rhf);
drivers/infiniband/hw/hfi1/driver.c
429
dlid = qp->ibqp.qp_type != IB_QPT_UD ? ib_get_dlid(pkt->hdr) :
drivers/infiniband/hw/hfi1/driver.c
431
slid = ib_get_slid(pkt->hdr);
drivers/infiniband/hw/hfi1/driver.c
582
struct ib_header *hdr;
drivers/infiniband/hw/hfi1/driver.c
597
packet->hdr = hfi1_get_msgheader(packet->rcd, rhf_addr);
drivers/infiniband/hw/hfi1/driver.c
598
hdr = packet->hdr;
drivers/infiniband/hw/hfi1/driver.c
599
lnh = ib_get_lnh(hdr);
drivers/infiniband/hw/hfi1/driver.c
602
packet->ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/driver.c
605
packet->ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/driver.c
606
packet->grh = &hdr->u.l.grh;
drivers/infiniband/hw/hfi1/driver.c
954
struct ib_header *hdr = hfi1_get_msgheader(packet->rcd,
drivers/infiniband/hw/hfi1/driver.c
956
sc = hfi1_9B_get_sc5(hdr, packet->rhf);
drivers/infiniband/hw/hfi1/driver.c
958
struct hfi1_16b_header *hdr = hfi1_get_16B_header(
drivers/infiniband/hw/hfi1/driver.c
961
sc = hfi1_16B_get_sc(hdr);
drivers/infiniband/hw/hfi1/hfi.h
1606
static inline int hfi1_9B_get_sc5(struct ib_header *hdr, u64 rhf)
drivers/infiniband/hw/hfi1/hfi.h
1608
return ib_get_sc(hdr) | ((!!(rhf_dc_info(rhf))) << 4);
drivers/infiniband/hw/hfi1/hfi.h
1957
fecn = hfi1_16B_get_fecn(pkt->hdr);
drivers/infiniband/hw/hfi1/hfi.h
1958
becn = hfi1_16B_get_becn(pkt->hdr);
drivers/infiniband/hw/hfi1/hfi.h
2593
static inline void hfi1_make_ib_hdr(struct ib_header *hdr,
drivers/infiniband/hw/hfi1/hfi.h
2597
hdr->lrh[0] = cpu_to_be16(lrh0);
drivers/infiniband/hw/hfi1/hfi.h
2598
hdr->lrh[1] = cpu_to_be16(dlid);
drivers/infiniband/hw/hfi1/hfi.h
2599
hdr->lrh[2] = cpu_to_be16(len);
drivers/infiniband/hw/hfi1/hfi.h
2600
hdr->lrh[3] = cpu_to_be16(slid);
drivers/infiniband/hw/hfi1/hfi.h
2603
static inline void hfi1_make_16b_hdr(struct hfi1_16b_header *hdr,
drivers/infiniband/hw/hfi1/hfi.h
2627
hdr->lrh[0] = lrh0;
drivers/infiniband/hw/hfi1/hfi.h
2628
hdr->lrh[1] = lrh1;
drivers/infiniband/hw/hfi1/hfi.h
2629
hdr->lrh[2] = lrh2;
drivers/infiniband/hw/hfi1/hfi.h
2630
hdr->lrh[3] = lrh3;
drivers/infiniband/hw/hfi1/hfi.h
335
void *hdr;
drivers/infiniband/hw/hfi1/hfi.h
413
static inline u8 hfi1_16B_get_l4(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
415
return (u8)(hdr->lrh[2] & OPA_16B_L4_MASK);
drivers/infiniband/hw/hfi1/hfi.h
418
static inline u8 hfi1_16B_get_sc(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
420
return (u8)((hdr->lrh[1] & OPA_16B_SC_MASK) >> OPA_16B_SC_SHIFT);
drivers/infiniband/hw/hfi1/hfi.h
423
static inline u32 hfi1_16B_get_dlid(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
425
return (u32)((hdr->lrh[1] & OPA_16B_LID_MASK) |
drivers/infiniband/hw/hfi1/hfi.h
426
(((hdr->lrh[2] & OPA_16B_DLID_MASK) >>
drivers/infiniband/hw/hfi1/hfi.h
430
static inline u32 hfi1_16B_get_slid(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
432
return (u32)((hdr->lrh[0] & OPA_16B_LID_MASK) |
drivers/infiniband/hw/hfi1/hfi.h
433
(((hdr->lrh[2] & OPA_16B_SLID_MASK) >>
drivers/infiniband/hw/hfi1/hfi.h
437
static inline u8 hfi1_16B_get_becn(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
439
return (u8)((hdr->lrh[0] & OPA_16B_BECN_MASK) >> OPA_16B_BECN_SHIFT);
drivers/infiniband/hw/hfi1/hfi.h
442
static inline u8 hfi1_16B_get_fecn(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
444
return (u8)((hdr->lrh[1] & OPA_16B_FECN_MASK) >> OPA_16B_FECN_SHIFT);
drivers/infiniband/hw/hfi1/hfi.h
447
static inline u8 hfi1_16B_get_l2(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
449
return (u8)((hdr->lrh[1] & OPA_16B_L2_MASK) >> OPA_16B_L2_SHIFT);
drivers/infiniband/hw/hfi1/hfi.h
452
static inline u16 hfi1_16B_get_pkey(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
454
return (u16)((hdr->lrh[2] & OPA_16B_PKEY_MASK) >> OPA_16B_PKEY_SHIFT);
drivers/infiniband/hw/hfi1/hfi.h
457
static inline u8 hfi1_16B_get_rc(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
459
return (u8)((hdr->lrh[1] & OPA_16B_RC_MASK) >> OPA_16B_RC_SHIFT);
drivers/infiniband/hw/hfi1/hfi.h
462
static inline u8 hfi1_16B_get_age(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
464
return (u8)((hdr->lrh[3] & OPA_16B_AGE_MASK) >> OPA_16B_AGE_SHIFT);
drivers/infiniband/hw/hfi1/hfi.h
467
static inline u16 hfi1_16B_get_len(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
469
return (u16)((hdr->lrh[0] & OPA_16B_LEN_MASK) >> OPA_16B_LEN_SHIFT);
drivers/infiniband/hw/hfi1/hfi.h
472
static inline u16 hfi1_16B_get_entropy(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/hfi.h
474
return (u16)(hdr->lrh[3] & OPA_16B_ENTROPY_MASK);
drivers/infiniband/hw/hfi1/hfi.h
518
struct ib_header *hdr = NULL;
drivers/infiniband/hw/hfi1/hfi.h
523
hdr = &opah->ibh;
drivers/infiniband/hw/hfi1/hfi.h
524
if (ib_get_lnh(hdr) == HFI1_LRH_BTH)
drivers/infiniband/hw/hfi1/hfi.h
525
ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/hfi.h
527
ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/ipoib_tx.c
286
grh = &sdma_hdr->hdr.ibh.u.l.grh;
drivers/infiniband/hw/hfi1/ipoib_tx.c
294
ohdr = &sdma_hdr->hdr.ibh.u.l.oth;
drivers/infiniband/hw/hfi1/ipoib_tx.c
297
ohdr = &sdma_hdr->hdr.ibh.u.oth;
drivers/infiniband/hw/hfi1/ipoib_tx.c
322
sdma_hdr->hdr.hdr_type = HFI1_PKT_TYPE_9B;
drivers/infiniband/hw/hfi1/ipoib_tx.c
323
hfi1_make_ib_hdr(&sdma_hdr->hdr.ibh, lrh0, dwords, dlid, slid);
drivers/infiniband/hw/hfi1/ipoib_tx.c
487
&tx->sdma_hdr->hdr,
drivers/infiniband/hw/hfi1/ipoib_tx.c
551
&tx->sdma_hdr->hdr,
drivers/infiniband/hw/hfi1/ipoib_tx.c
563
u8 *hdr = (u8 *)skb_transport_header(skb);
drivers/infiniband/hw/hfi1/ipoib_tx.c
565
return (hdr[0] ^ hdr[1] ^ hdr[2] ^ hdr[3]);
drivers/infiniband/hw/hfi1/rc.c
1228
struct ib_header *hdr = &opa_hdr->ibh;
drivers/infiniband/hw/hfi1/rc.c
1235
ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/rc.c
1240
*hwords += hfi1_make_grh(ibp, &hdr->u.l.grh,
drivers/infiniband/hw/hfi1/rc.c
1243
ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/rc.c
1256
hfi1_make_ib_hdr(hdr, lrh0, *hwords + SIZE_OF_CRC,
drivers/infiniband/hw/hfi1/rc.c
1281
struct hfi1_16b_header *hdr = &opa_hdr->opah;
drivers/infiniband/hw/hfi1/rc.c
1290
ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/rc.c
1298
*hwords += hfi1_make_grh(ibp, &hdr->u.l.grh,
drivers/infiniband/hw/hfi1/rc.c
1301
ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/rc.c
1312
hfi1_make_16b_hdr(hdr, ppd->lid |
drivers/infiniband/hw/hfi1/rc.c
419
ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth;
drivers/infiniband/hw/hfi1/rc.c
421
ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth;
drivers/infiniband/hw/hfi1/rc.c
427
ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth;
drivers/infiniband/hw/hfi1/rc.c
429
ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth;
drivers/infiniband/hw/hfi1/ruc.c
126
u32 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr,
drivers/infiniband/hw/hfi1/ruc.c
129
hdr->version_tclass_flow =
drivers/infiniband/hw/hfi1/ruc.c
133
hdr->paylen = cpu_to_be16((hwords + nwords) << 2);
drivers/infiniband/hw/hfi1/ruc.c
135
hdr->next_hdr = IB_GRH_NEXT_HDR;
drivers/infiniband/hw/hfi1/ruc.c
136
hdr->hop_limit = grh->hop_limit;
drivers/infiniband/hw/hfi1/ruc.c
138
hdr->sgid.global.subnet_prefix = ibp->rvp.gid_prefix;
drivers/infiniband/hw/hfi1/ruc.c
139
hdr->sgid.global.interface_id =
drivers/infiniband/hw/hfi1/ruc.c
143
hdr->dgid = grh->dgid;
drivers/infiniband/hw/hfi1/ruc.c
150
hdr.ibh.u.oth.bth[2]) / 4)
drivers/infiniband/hw/hfi1/ruc.c
261
grh = &ps->s_txreq->phdr.hdr.opah.u.l.grh;
drivers/infiniband/hw/hfi1/ruc.c
297
hfi1_make_16b_hdr(&ps->s_txreq->phdr.hdr.opah,
drivers/infiniband/hw/hfi1/ruc.c
335
struct ib_grh *grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh;
drivers/infiniband/hw/hfi1/ruc.c
367
hfi1_make_ib_hdr(&ps->s_txreq->phdr.hdr.ibh,
drivers/infiniband/hw/hfi1/tid_rdma.c
2854
struct ib_header *hdr = packet->hdr;
drivers/infiniband/hw/hfi1/tid_rdma.c
2856
int lnh = be16_to_cpu(hdr->lrh[0]) & 3;
drivers/infiniband/hw/hfi1/tid_rdma.c
2857
u16 lid = be16_to_cpu(hdr->lrh[1]);
drivers/infiniband/hw/hfi1/tid_rdma.c
2874
packet->ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/tid_rdma.c
5048
ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth;
drivers/infiniband/hw/hfi1/trace.c
10
static u8 __get_ib_hdr_len(struct ib_header *hdr)
drivers/infiniband/hw/hfi1/trace.c
15
if (ib_get_lnh(hdr) == HFI1_LRH_BTH)
drivers/infiniband/hw/hfi1/trace.c
150
static u16 ib_get_len(const struct ib_header *hdr)
drivers/infiniband/hw/hfi1/trace.c
152
return be16_to_cpu(hdr->lrh[2]);
drivers/infiniband/hw/hfi1/trace.c
155
void hfi1_trace_parse_9b_hdr(struct ib_header *hdr, bool sc5,
drivers/infiniband/hw/hfi1/trace.c
159
*lnh = ib_get_lnh(hdr);
drivers/infiniband/hw/hfi1/trace.c
16
ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/trace.c
160
*lver = ib_get_lver(hdr);
drivers/infiniband/hw/hfi1/trace.c
161
*sl = ib_get_sl(hdr);
drivers/infiniband/hw/hfi1/trace.c
162
*sc = ib_get_sc(hdr) | (sc5 << 4);
drivers/infiniband/hw/hfi1/trace.c
163
*len = ib_get_len(hdr);
drivers/infiniband/hw/hfi1/trace.c
164
*dlid = ib_get_dlid(hdr);
drivers/infiniband/hw/hfi1/trace.c
165
*slid = ib_get_slid(hdr);
drivers/infiniband/hw/hfi1/trace.c
168
void hfi1_trace_parse_16b_hdr(struct hfi1_16b_header *hdr,
drivers/infiniband/hw/hfi1/trace.c
174
*age = hfi1_16B_get_age(hdr);
drivers/infiniband/hw/hfi1/trace.c
175
*becn = hfi1_16B_get_becn(hdr);
drivers/infiniband/hw/hfi1/trace.c
176
*fecn = hfi1_16B_get_fecn(hdr);
drivers/infiniband/hw/hfi1/trace.c
177
*l4 = hfi1_16B_get_l4(hdr);
drivers/infiniband/hw/hfi1/trace.c
178
*rc = hfi1_16B_get_rc(hdr);
drivers/infiniband/hw/hfi1/trace.c
179
*sc = hfi1_16B_get_sc(hdr);
drivers/infiniband/hw/hfi1/trace.c
18
ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/trace.c
180
*entropy = hfi1_16B_get_entropy(hdr);
drivers/infiniband/hw/hfi1/trace.c
181
*len = hfi1_16B_get_len(hdr);
drivers/infiniband/hw/hfi1/trace.c
182
*pkey = hfi1_16B_get_pkey(hdr);
drivers/infiniband/hw/hfi1/trace.c
183
*dlid = hfi1_16B_get_dlid(hdr);
drivers/infiniband/hw/hfi1/trace.c
184
*slid = hfi1_16B_get_slid(hdr);
drivers/infiniband/hw/hfi1/trace.c
24
static u8 __get_16b_hdr_len(struct hfi1_16b_header *hdr)
drivers/infiniband/hw/hfi1/trace.c
28
u8 l4 = hfi1_16B_get_l4(hdr);
drivers/infiniband/hw/hfi1/trace.c
36
ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/trace.c
38
ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/trace.c
48
return __get_ib_hdr_len(packet->hdr);
drivers/infiniband/hw/hfi1/trace.c
50
return __get_16b_hdr_len(packet->hdr);
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
155
__entry->l2 = hfi1_16B_get_l2(packet->hdr);
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
159
hfi1_trace_parse_16b_hdr(packet->hdr,
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
189
hfi1_trace_parse_9b_hdr(packet->hdr, sc5,
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
67
u8 ibhdr_exhdr_len(struct ib_header *hdr);
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
78
void hfi1_trace_parse_9b_hdr(struct ib_header *hdr, bool sc5,
drivers/infiniband/hw/hfi1/trace_ibhdrs.h
85
void hfi1_trace_parse_16b_hdr(struct hfi1_16b_header *hdr,
drivers/infiniband/hw/hfi1/trace_tx.h
467
struct hfi1_pkt_header *hdr, u32 tidval),
drivers/infiniband/hw/hfi1/trace_tx.h
468
TP_ARGS(dd, ctxt, subctxt, req, hdr, tidval),
drivers/infiniband/hw/hfi1/trace_tx.h
493
__le32 *pbc = (__le32 *)hdr->pbc;
drivers/infiniband/hw/hfi1/trace_tx.h
494
__be32 *lrh = (__be32 *)hdr->lrh;
drivers/infiniband/hw/hfi1/trace_tx.h
495
__be32 *bth = (__be32 *)hdr->bth;
drivers/infiniband/hw/hfi1/trace_tx.h
496
__le32 *kdeth = (__le32 *)&hdr->kdeth;
drivers/infiniband/hw/hfi1/uc.c
58
ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth;
drivers/infiniband/hw/hfi1/uc.c
60
ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth;
drivers/infiniband/hw/hfi1/uc.c
66
ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth;
drivers/infiniband/hw/hfi1/uc.c
68
ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth;
drivers/infiniband/hw/hfi1/ud.c
287
grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh;
drivers/infiniband/hw/hfi1/ud.c
293
ohdr = &ps->s_txreq->phdr.hdr.ibh.u.l.oth;
drivers/infiniband/hw/hfi1/ud.c
296
ohdr = &ps->s_txreq->phdr.hdr.ibh.u.oth;
drivers/infiniband/hw/hfi1/ud.c
327
ps->s_txreq->phdr.hdr.hdr_type = HFI1_PKT_TYPE_9B;
drivers/infiniband/hw/hfi1/ud.c
328
hfi1_make_ib_hdr(&ps->s_txreq->phdr.hdr.ibh,
drivers/infiniband/hw/hfi1/ud.c
384
grh = &ps->s_txreq->phdr.hdr.opah.u.l.grh;
drivers/infiniband/hw/hfi1/ud.c
389
ohdr = &ps->s_txreq->phdr.hdr.opah.u.l.oth;
drivers/infiniband/hw/hfi1/ud.c
392
ohdr = &ps->s_txreq->phdr.hdr.opah.u.oth;
drivers/infiniband/hw/hfi1/ud.c
412
hfi1_16B_set_qpn(&ps->s_txreq->phdr.hdr.opah.u.mgmt,
drivers/infiniband/hw/hfi1/ud.c
421
ps->s_txreq->phdr.hdr.hdr_type = HFI1_PKT_TYPE_16B;
drivers/infiniband/hw/hfi1/ud.c
422
hfi1_make_16b_hdr(&ps->s_txreq->phdr.hdr.opah,
drivers/infiniband/hw/hfi1/ud.c
599
struct hfi1_opa_header hdr;
drivers/infiniband/hw/hfi1/ud.c
606
hdr.hdr_type = HFI1_PKT_TYPE_16B;
drivers/infiniband/hw/hfi1/ud.c
611
struct ib_grh *grh = &hdr.opah.u.l.grh;
drivers/infiniband/hw/hfi1/ud.c
619
ohdr = &hdr.opah.u.l.oth;
drivers/infiniband/hw/hfi1/ud.c
623
ohdr = &hdr.opah.u.oth;
drivers/infiniband/hw/hfi1/ud.c
637
hfi1_make_16b_hdr(&hdr.opah, slid, dlid, len, pkey, 1, 0, l4, sc5);
drivers/infiniband/hw/hfi1/ud.c
646
trace_pio_output_ibhdr(ppd->dd, &hdr, sc5);
drivers/infiniband/hw/hfi1/ud.c
648
&hdr, hwords);
drivers/infiniband/hw/hfi1/ud.c
661
struct hfi1_opa_header hdr;
drivers/infiniband/hw/hfi1/ud.c
667
hdr.hdr_type = HFI1_PKT_TYPE_9B;
drivers/infiniband/hw/hfi1/ud.c
669
struct ib_grh *grh = &hdr.ibh.u.l.grh;
drivers/infiniband/hw/hfi1/ud.c
677
ohdr = &hdr.ibh.u.l.oth;
drivers/infiniband/hw/hfi1/ud.c
681
ohdr = &hdr.ibh.u.oth;
drivers/infiniband/hw/hfi1/ud.c
693
hfi1_make_ib_hdr(&hdr.ibh, lrh0, hwords + SIZE_OF_CRC, dlid, slid);
drivers/infiniband/hw/hfi1/ud.c
701
trace_pio_output_ibhdr(ppd->dd, &hdr, sc5);
drivers/infiniband/hw/hfi1/ud.c
703
&hdr, hwords);
drivers/infiniband/hw/hfi1/ud.c
838
l4 = hfi1_16B_get_l4(packet->hdr);
drivers/infiniband/hw/hfi1/ud.c
839
pkey = hfi1_16B_get_pkey(packet->hdr);
drivers/infiniband/hw/hfi1/user_sdma.c
1001
KDETH_SET(hdr->kdeth.ver_tid_offset, TID,
drivers/infiniband/hw/hfi1/user_sdma.c
1005
KDETH_SET(hdr->kdeth.ver_tid_offset, SH, 0);
drivers/infiniband/hw/hfi1/user_sdma.c
1014
KDETH_SET(hdr->kdeth.ver_tid_offset, OFFSET,
drivers/infiniband/hw/hfi1/user_sdma.c
1016
KDETH_SET(hdr->kdeth.ver_tid_offset, OM,
drivers/infiniband/hw/hfi1/user_sdma.c
1021
req->info.comp_idx, hdr, tidval);
drivers/infiniband/hw/hfi1/user_sdma.c
1022
return sdma_txadd_kvaddr(pq->dd, &tx->txreq, hdr, sizeof(*hdr));
drivers/infiniband/hw/hfi1/user_sdma.c
1032
struct hfi1_pkt_header *hdr = &req->hdr;
drivers/infiniband/hw/hfi1/user_sdma.c
1033
u16 pbclen = le16_to_cpu(hdr->pbc[0]);
drivers/infiniband/hw/hfi1/user_sdma.c
1034
u32 val32, tidval = 0, lrhlen = get_lrh_len(*hdr, pad_len(datalen));
drivers/infiniband/hw/hfi1/user_sdma.c
1054
val32 = (be32_to_cpu(hdr->bth[2]) + req->seqnum) &
drivers/infiniband/hw/hfi1/user_sdma.c
1113
val |= cpu_to_le16((KDETH_GET(hdr->kdeth.ver_tid_offset,
drivers/infiniband/hw/hfi1/user_sdma.c
1117
val |= KDETH_GET(hdr->kdeth.ver_tid_offset, SH) ?
drivers/infiniband/hw/hfi1/user_sdma.c
1119
cpu_to_le16((KDETH_GET(hdr->kdeth.ver_tid_offset,
drivers/infiniband/hw/hfi1/user_sdma.c
1136
ahg, sizeof(req->hdr),
drivers/infiniband/hw/hfi1/user_sdma.c
295
if (iovec[idx].iov_len < sizeof(info) + sizeof(req->hdr)) {
drivers/infiniband/hw/hfi1/user_sdma.c
300
iovec[idx].iov_len, sizeof(info) + sizeof(req->hdr));
drivers/infiniband/hw/hfi1/user_sdma.c
389
ret = copy_from_user(&req->hdr, iovec[idx].iov_base + sizeof(info),
drivers/infiniband/hw/hfi1/user_sdma.c
390
sizeof(req->hdr));
drivers/infiniband/hw/hfi1/user_sdma.c
399
req->hdr.pbc[2] = 0;
drivers/infiniband/hw/hfi1/user_sdma.c
402
opcode = (be32_to_cpu(req->hdr.bth[0]) >> 24) & 0xff;
drivers/infiniband/hw/hfi1/user_sdma.c
414
vl = (le16_to_cpu(req->hdr.pbc[0]) >> 12) & 0xF;
drivers/infiniband/hw/hfi1/user_sdma.c
415
sc = (((be16_to_cpu(req->hdr.lrh[0]) >> 12) & 0xF) |
drivers/infiniband/hw/hfi1/user_sdma.c
416
(((le16_to_cpu(req->hdr.pbc[1]) >> 14) & 0x1) << 4));
drivers/infiniband/hw/hfi1/user_sdma.c
425
pkey = (u16)be32_to_cpu(req->hdr.bth[0]);
drivers/infiniband/hw/hfi1/user_sdma.c
426
slid = be16_to_cpu(req->hdr.lrh[3]);
drivers/infiniband/hw/hfi1/user_sdma.c
43
struct hfi1_pkt_header *hdr, u32 lrhlen,
drivers/infiniband/hw/hfi1/user_sdma.c
437
if ((be16_to_cpu(req->hdr.lrh[0]) & 0x3) == HFI1_LRH_GRH) {
drivers/infiniband/hw/hfi1/user_sdma.c
443
req->koffset = le32_to_cpu(req->hdr.kdeth.swdata[6]);
drivers/infiniband/hw/hfi1/user_sdma.c
448
req->tidoffset = KDETH_GET(req->hdr.kdeth.ver_tid_offset, OFFSET) *
drivers/infiniband/hw/hfi1/user_sdma.c
449
(KDETH_GET(req->hdr.kdeth.ver_tid_offset, OM) ?
drivers/infiniband/hw/hfi1/user_sdma.c
509
dlid = be16_to_cpu(req->hdr.lrh[1]);
drivers/infiniband/hw/hfi1/user_sdma.c
589
len = ((be16_to_cpu(req->hdr.lrh[2]) << 2) -
drivers/infiniband/hw/hfi1/user_sdma.c
590
(sizeof(tx->hdr) - 4));
drivers/infiniband/hw/hfi1/user_sdma.c
631
static inline u32 get_lrh_len(struct hfi1_pkt_header hdr, u32 len)
drivers/infiniband/hw/hfi1/user_sdma.c
634
return ((sizeof(hdr) - sizeof(hdr.pbc)) + 4 + len);
drivers/infiniband/hw/hfi1/user_sdma.c
642
u16 pbclen = le16_to_cpu(req->hdr.pbc[0]);
drivers/infiniband/hw/hfi1/user_sdma.c
643
u32 lrhlen = get_lrh_len(req->hdr, pad_len(datalen));
drivers/infiniband/hw/hfi1/user_sdma.c
654
memcpy(&tx->hdr, &req->hdr, sizeof(tx->hdr));
drivers/infiniband/hw/hfi1/user_sdma.c
657
tx->hdr.pbc[0] = cpu_to_le16(pbclen);
drivers/infiniband/hw/hfi1/user_sdma.c
659
ret = check_header_template(req, &tx->hdr, lrhlen, datalen);
drivers/infiniband/hw/hfi1/user_sdma.c
663
sizeof(tx->hdr) + datalen, req->ahg_idx,
drivers/infiniband/hw/hfi1/user_sdma.c
667
ret = sdma_txadd_kvaddr(pq->dd, &tx->txreq, &tx->hdr, sizeof(tx->hdr));
drivers/infiniband/hw/hfi1/user_sdma.c
782
ret = sdma_txinit(&tx->txreq, 0, sizeof(req->hdr) +
drivers/infiniband/hw/hfi1/user_sdma.c
842
struct hfi1_pkt_header *hdr, u32 lrhlen,
drivers/infiniband/hw/hfi1/user_sdma.c
856
lrhlen > get_lrh_len(*hdr, req->info.fragsize))
drivers/infiniband/hw/hfi1/user_sdma.c
871
__le32 kval = hdr->kdeth.ver_tid_offset;
drivers/infiniband/hw/hfi1/user_sdma.c
874
(KDETH_GET(req->hdr.kdeth.ver_tid_offset, OM) ?
drivers/infiniband/hw/hfi1/user_sdma.c
915
struct hfi1_pkt_header *hdr = &tx->hdr;
drivers/infiniband/hw/hfi1/user_sdma.c
919
u32 tidval = 0, lrhlen = get_lrh_len(*hdr, pad_len(datalen));
drivers/infiniband/hw/hfi1/user_sdma.c
922
memcpy(hdr, &req->hdr, sizeof(*hdr));
drivers/infiniband/hw/hfi1/user_sdma.c
928
pbclen = le16_to_cpu(hdr->pbc[0]);
drivers/infiniband/hw/hfi1/user_sdma.c
931
hdr->pbc[0] = cpu_to_le16(pbclen);
drivers/infiniband/hw/hfi1/user_sdma.c
932
hdr->lrh[2] = cpu_to_be16(lrhlen >> 2);
drivers/infiniband/hw/hfi1/user_sdma.c
947
req->hdr.pbc[0] = hdr->pbc[0];
drivers/infiniband/hw/hfi1/user_sdma.c
948
req->hdr.lrh[2] = hdr->lrh[2];
drivers/infiniband/hw/hfi1/user_sdma.c
957
ret = check_header_template(req, hdr, lrhlen, datalen);
drivers/infiniband/hw/hfi1/user_sdma.c
963
hdr->bth[2] = cpu_to_be32(
drivers/infiniband/hw/hfi1/user_sdma.c
964
set_pkt_bth_psn(hdr->bth[2],
drivers/infiniband/hw/hfi1/user_sdma.c
970
hdr->bth[2] |= cpu_to_be32(1UL << 31);
drivers/infiniband/hw/hfi1/user_sdma.c
973
hdr->kdeth.swdata[6] = cpu_to_le32(req->koffset);
drivers/infiniband/hw/hfi1/user_sdma.c
998
KDETH_SET(hdr->kdeth.ver_tid_offset, TIDCTRL,
drivers/infiniband/hw/hfi1/user_sdma.h
124
struct hfi1_pkt_header hdr;
drivers/infiniband/hw/hfi1/user_sdma.h
186
struct hfi1_pkt_header hdr;
drivers/infiniband/hw/hfi1/verbs.c
1034
pio_copy(ppd->dd, pbuf, pbc, hdr, hdrwords);
drivers/infiniband/hw/hfi1/verbs.c
1037
hdr, hdrwords * 4);
drivers/infiniband/hw/hfi1/verbs.c
1058
&ps->s_txreq->phdr.hdr, ib_is_sc5(sc5));
drivers/infiniband/hw/hfi1/verbs.c
1066
hfi1_rc_verbs_aborted(qp, &ps->s_txreq->phdr.hdr);
drivers/infiniband/hw/hfi1/verbs.c
1067
hfi1_rc_send_complete(qp, &ps->s_txreq->phdr.hdr);
drivers/infiniband/hw/hfi1/verbs.c
1225
if (ps->s_txreq->phdr.hdr.hdr_type) {
drivers/infiniband/hw/hfi1/verbs.c
1226
struct hfi1_16b_header *hdr = &ps->s_txreq->phdr.hdr.opah;
drivers/infiniband/hw/hfi1/verbs.c
1228
l4 = hfi1_16B_get_l4(hdr);
drivers/infiniband/hw/hfi1/verbs.c
1230
ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/verbs.c
1232
ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/verbs.c
1234
slid = hfi1_16B_get_slid(hdr);
drivers/infiniband/hw/hfi1/verbs.c
1235
pkey = hfi1_16B_get_pkey(hdr);
drivers/infiniband/hw/hfi1/verbs.c
1237
struct ib_header *hdr = &ps->s_txreq->phdr.hdr.ibh;
drivers/infiniband/hw/hfi1/verbs.c
1238
u8 lnh = ib_get_lnh(hdr);
drivers/infiniband/hw/hfi1/verbs.c
1241
ohdr = &hdr->u.l.oth;
drivers/infiniband/hw/hfi1/verbs.c
1243
ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/verbs.c
1244
slid = ib_get_slid(hdr);
drivers/infiniband/hw/hfi1/verbs.c
1916
struct ib_header *hdr = packet->hdr;
drivers/infiniband/hw/hfi1/verbs.c
1943
sc5 = hfi1_9B_get_sc5(hdr, packet->rhf);
drivers/infiniband/hw/hfi1/verbs.c
330
struct ib_header *hdr = packet->hdr;
drivers/infiniband/hw/hfi1/verbs.c
345
lnh = be16_to_cpu(hdr->lrh[0]) & 3;
drivers/infiniband/hw/hfi1/verbs.c
349
packet->ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/verbs.c
384
struct ib_header *hdr = packet->hdr;
drivers/infiniband/hw/hfi1/verbs.c
399
lnh = be16_to_cpu(hdr->lrh[0]) & 3;
drivers/infiniband/hw/hfi1/verbs.c
403
packet->ohdr = &hdr->u.oth;
drivers/infiniband/hw/hfi1/verbs.c
439
struct hfi1_16b_header *hdr = packet->hdr;
drivers/infiniband/hw/hfi1/verbs.c
447
pkey = hfi1_16B_get_pkey(hdr);
drivers/infiniband/hw/hfi1/verbs.c
500
hfi1_16B_get_l4(packet->hdr) == OPA_16B_L4_FM)
drivers/infiniband/hw/hfi1/verbs.c
597
struct hfi1_opa_header *hdr;
drivers/infiniband/hw/hfi1/verbs.c
599
hdr = &tx->phdr.hdr;
drivers/infiniband/hw/hfi1/verbs.c
601
hfi1_rc_verbs_aborted(qp, hdr);
drivers/infiniband/hw/hfi1/verbs.c
602
hfi1_rc_send_complete(qp, hdr);
drivers/infiniband/hw/hfi1/verbs.c
730
if (tx->phdr.hdr.hdr_type) {
drivers/infiniband/hw/hfi1/verbs.c
812
if (ps->s_txreq->phdr.hdr.hdr_type) {
drivers/infiniband/hw/hfi1/verbs.c
829
if (ps->s_txreq->phdr.hdr.hdr_type)
drivers/infiniband/hw/hfi1/verbs.c
861
&ps->s_txreq->phdr.hdr, ib_is_sc5(sc5));
drivers/infiniband/hw/hfi1/verbs.c
947
u32 *hdr;
drivers/infiniband/hw/hfi1/verbs.c
957
if (ps->s_txreq->phdr.hdr.hdr_type) {
drivers/infiniband/hw/hfi1/verbs.c
962
hdr = (u32 *)&ps->s_txreq->phdr.hdr.opah;
drivers/infiniband/hw/hfi1/verbs.c
965
hdr = (u32 *)&ps->s_txreq->phdr.hdr.ibh;
drivers/infiniband/hw/hfi1/verbs.c
987
if (ps->s_txreq->phdr.hdr.hdr_type)
drivers/infiniband/hw/hfi1/verbs.h
108
struct hfi1_opa_header hdr;
drivers/infiniband/hw/hfi1/verbs.h
396
u32 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr,
drivers/infiniband/hw/hfi1/verbs_txreq.h
55
tx->phdr.hdr.hdr_type = priv->hdr_type;
drivers/infiniband/hw/ionic/ionic_controlpath.c
1457
if (!qp->hdr)
drivers/infiniband/hw/ionic/ionic_controlpath.c
1464
rc = ionic_build_hdr(dev, qp->hdr, &attr->ah_attr, sport, true);
drivers/infiniband/hw/ionic/ionic_controlpath.c
1474
hdr_len = ib_ud_header_pack(qp->hdr, hdr_buf);
drivers/infiniband/hw/ionic/ionic_controlpath.c
1488
if (qp->hdr->ipv4_present) {
drivers/infiniband/hw/ionic/ionic_controlpath.c
1490
qp->hdr->vlan_present ?
drivers/infiniband/hw/ionic/ionic_controlpath.c
1495
qp->hdr->vlan_present ?
drivers/infiniband/hw/ionic/ionic_controlpath.c
1650
qp->hdr, qp->sgid_index);
drivers/infiniband/hw/ionic/ionic_controlpath.c
2206
qp->hdr = kzalloc_obj(*qp->hdr);
drivers/infiniband/hw/ionic/ionic_controlpath.c
2207
if (!qp->hdr) {
drivers/infiniband/hw/ionic/ionic_controlpath.c
2387
kfree(qp->hdr);
drivers/infiniband/hw/ionic/ionic_controlpath.c
2672
kfree(qp->hdr);
drivers/infiniband/hw/ionic/ionic_controlpath.c
505
struct ib_ud_header *hdr,
drivers/infiniband/hw/ionic/ionic_controlpath.c
536
hdr);
drivers/infiniband/hw/ionic/ionic_controlpath.c
540
ether_addr_copy(hdr->eth.smac_h, smac);
drivers/infiniband/hw/ionic/ionic_controlpath.c
541
ether_addr_copy(hdr->eth.dmac_h, attr->roce.dmac);
drivers/infiniband/hw/ionic/ionic_controlpath.c
544
hdr->eth.type = cpu_to_be16(ETH_P_IP);
drivers/infiniband/hw/ionic/ionic_controlpath.c
545
hdr->ip4.frag_off = cpu_to_be16(0x4000); /* don't fragment */
drivers/infiniband/hw/ionic/ionic_controlpath.c
546
hdr->ip4.ttl = grh->hop_limit;
drivers/infiniband/hw/ionic/ionic_controlpath.c
547
hdr->ip4.tot_len = cpu_to_be16(0xffff);
drivers/infiniband/hw/ionic/ionic_controlpath.c
548
hdr->ip4.saddr =
drivers/infiniband/hw/ionic/ionic_controlpath.c
550
hdr->ip4.daddr = *(const __be32 *)(grh->dgid.raw + 12);
drivers/infiniband/hw/ionic/ionic_controlpath.c
553
hdr->ip4.tos = ionic_set_ecn(grh->traffic_class);
drivers/infiniband/hw/ionic/ionic_controlpath.c
555
hdr->ip4.tos = ionic_clear_ecn(grh->traffic_class);
drivers/infiniband/hw/ionic/ionic_controlpath.c
557
hdr->eth.type = cpu_to_be16(ETH_P_IPV6);
drivers/infiniband/hw/ionic/ionic_controlpath.c
558
hdr->grh.flow_label = cpu_to_be32(grh->flow_label);
drivers/infiniband/hw/ionic/ionic_controlpath.c
559
hdr->grh.hop_limit = grh->hop_limit;
drivers/infiniband/hw/ionic/ionic_controlpath.c
560
hdr->grh.source_gid = grh->sgid_attr->gid;
drivers/infiniband/hw/ionic/ionic_controlpath.c
561
hdr->grh.destination_gid = grh->dgid;
drivers/infiniband/hw/ionic/ionic_controlpath.c
564
hdr->grh.traffic_class =
drivers/infiniband/hw/ionic/ionic_controlpath.c
567
hdr->grh.traffic_class =
drivers/infiniband/hw/ionic/ionic_controlpath.c
573
hdr->vlan.tag = cpu_to_be16(vlan);
drivers/infiniband/hw/ionic/ionic_controlpath.c
574
hdr->vlan.type = hdr->eth.type;
drivers/infiniband/hw/ionic/ionic_controlpath.c
575
hdr->eth.type = cpu_to_be16(ETH_P_8021Q);
drivers/infiniband/hw/ionic/ionic_controlpath.c
578
hdr->udp.sport = cpu_to_be16(sport);
drivers/infiniband/hw/ionic/ionic_controlpath.c
579
hdr->udp.dport = cpu_to_be16(ROCE_V2_UDP_DPORT);
drivers/infiniband/hw/ionic/ionic_controlpath.c
586
struct ib_ud_header *hdr,
drivers/infiniband/hw/ionic/ionic_controlpath.c
593
if (hdr->vlan_present)
drivers/infiniband/hw/ionic/ionic_controlpath.c
594
vlan = be16_to_cpu(hdr->vlan.tag);
drivers/infiniband/hw/ionic/ionic_controlpath.c
596
if (hdr->ipv4_present) {
drivers/infiniband/hw/ionic/ionic_controlpath.c
598
ttl = hdr->ip4.ttl;
drivers/infiniband/hw/ionic/ionic_controlpath.c
599
tos = hdr->ip4.tos;
drivers/infiniband/hw/ionic/ionic_controlpath.c
600
*(__be16 *)(hdr->grh.destination_gid.raw + 10) = cpu_to_be16(0xffff);
drivers/infiniband/hw/ionic/ionic_controlpath.c
601
*(__be32 *)(hdr->grh.destination_gid.raw + 12) = hdr->ip4.daddr;
drivers/infiniband/hw/ionic/ionic_controlpath.c
603
flow_label = be32_to_cpu(hdr->grh.flow_label);
drivers/infiniband/hw/ionic/ionic_controlpath.c
604
ttl = hdr->grh.hop_limit;
drivers/infiniband/hw/ionic/ionic_controlpath.c
605
tos = hdr->grh.traffic_class;
drivers/infiniband/hw/ionic/ionic_controlpath.c
610
if (hdr->eth_present)
drivers/infiniband/hw/ionic/ionic_controlpath.c
611
ether_addr_copy(ah_attr->roce.dmac, hdr->eth.dmac_h);
drivers/infiniband/hw/ionic/ionic_controlpath.c
615
rdma_ah_set_dgid_raw(ah_attr, &hdr->grh.destination_gid);
drivers/infiniband/hw/ionic/ionic_controlpath.c
650
rc = ionic_build_hdr(dev, &ah->hdr, attr, IONIC_ROCE_UDP_SPORT, false);
drivers/infiniband/hw/ionic/ionic_controlpath.c
654
if (ah->hdr.eth.type == cpu_to_be16(ETH_P_8021Q)) {
drivers/infiniband/hw/ionic/ionic_controlpath.c
655
if (ah->hdr.vlan.type == cpu_to_be16(ETH_P_IP))
drivers/infiniband/hw/ionic/ionic_controlpath.c
662
if (ah->hdr.eth.type == cpu_to_be16(ETH_P_IP))
drivers/infiniband/hw/ionic/ionic_controlpath.c
676
hdr_len = ib_ud_header_pack(&ah->hdr, hdr_buf);
drivers/infiniband/hw/ionic/ionic_controlpath.c
774
ionic_set_ah_attr(dev, ah_attr, &ah->hdr, ah->sgid_index);
drivers/infiniband/hw/ionic/ionic_fw.h
1019
static inline int ionic_v1_stat_type(struct ionic_v1_stat *hdr)
drivers/infiniband/hw/ionic/ionic_fw.h
1021
return hdr->type_off >> IONIC_V1_STAT_TYPE_SHIFT;
drivers/infiniband/hw/ionic/ionic_fw.h
1024
static inline unsigned int ionic_v1_stat_off(struct ionic_v1_stat *hdr)
drivers/infiniband/hw/ionic/ionic_fw.h
1026
return hdr->type_off & IONIC_V1_STAT_OFF_MASK;
drivers/infiniband/hw/ionic/ionic_hw_stats.c
349
ionic_v1_stat_val(&cs->hdr[stat_i],
drivers/infiniband/hw/ionic/ionic_hw_stats.c
375
cs->hdr = kzalloc(PAGE_SIZE, GFP_KERNEL);
drivers/infiniband/hw/ionic/ionic_hw_stats.c
376
if (!cs->hdr)
drivers/infiniband/hw/ionic/ionic_hw_stats.c
379
hdr_dma = dma_map_single(dev->lif_cfg.hwdev, cs->hdr,
drivers/infiniband/hw/ionic/ionic_hw_stats.c
393
hw_stats_count = ionic_v1_stat_normalize(cs->hdr,
drivers/infiniband/hw/ionic/ionic_hw_stats.c
394
PAGE_SIZE / sizeof(*cs->hdr));
drivers/infiniband/hw/ionic/ionic_hw_stats.c
409
ionic_fill_stats_desc(cs->stats_hdrs, cs->hdr, hw_stats_count);
drivers/infiniband/hw/ionic/ionic_hw_stats.c
416
kfree(cs->hdr);
drivers/infiniband/hw/ionic/ionic_hw_stats.c
471
kfree(dev->counter_stats->hdr);
drivers/infiniband/hw/ionic/ionic_ibdev.h
306
struct ib_ud_header *hdr;
drivers/infiniband/hw/ionic/ionic_ibdev.h
313
struct ib_ud_header hdr;
drivers/infiniband/hw/ionic/ionic_ibdev.h
332
struct ionic_v1_stat *hdr;
drivers/infiniband/hw/irdma/cm.c
303
struct irdma_kmem_info *hdr,
drivers/infiniband/hw/irdma/cm.c
332
if (hdr)
drivers/infiniband/hw/irdma/cm.c
333
hdr_len = hdr->size;
drivers/infiniband/hw/irdma/cm.c
387
memcpy(buf, hdr->addr, hdr_len);
drivers/infiniband/hw/irdma/cm.c
412
struct irdma_kmem_info *hdr,
drivers/infiniband/hw/irdma/cm.c
441
if (hdr)
drivers/infiniband/hw/irdma/cm.c
442
hdr_len = hdr->size;
drivers/infiniband/hw/irdma/cm.c
575
memcpy(buf, hdr->addr, hdr_len);
drivers/infiniband/hw/irdma/cm.h
376
struct irdma_kmem_info *hdr,
drivers/infiniband/hw/irdma/ctrl.c
1160
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
1166
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE,
drivers/infiniband/hw/irdma/ctrl.c
1172
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
1456
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
1487
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_ALLOC_STAG) |
drivers/infiniband/hw/irdma/ctrl.c
1500
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
1524
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
1580
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_REG_MR) |
drivers/infiniband/hw/irdma/ctrl.c
1594
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
1615
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
1630
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_DEALLOC_STAG) |
drivers/infiniband/hw/irdma/ctrl.c
1635
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
1656
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
1671
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_ALLOC_STAG) |
drivers/infiniband/hw/irdma/ctrl.c
1678
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
1698
u64 temp, hdr;
drivers/infiniband/hw/irdma/ctrl.c
1739
hdr = FIELD_PREP(IRDMAQPSQ_STAGKEY, info->stag_key) |
drivers/infiniband/hw/irdma/ctrl.c
1753
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
1771
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
1778
hdr = FIELD_PREP(IRDMAQPSQ_OPCODE, IRDMAQP_OP_NOP) |
drivers/infiniband/hw/irdma/ctrl.c
1783
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
1788
hdr = FIELD_PREP(IRDMAQPSQ_OPCODE, IRDMAQP_OP_GEN_RTS_AE) |
drivers/infiniband/hw/irdma/ctrl.c
1792
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
1808
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
1827
hdr = FIELD_PREP(IRDMAQPSQ_OPCODE, IRDMAQP_OP_RDMA_SEND) |
drivers/infiniband/hw/irdma/ctrl.c
1833
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
1850
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
1866
hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, 0x1234) |
drivers/infiniband/hw/irdma/ctrl.c
1877
hdr = FIELD_PREP(IRDMAQPSQ_OPCODE, IRDMAQP_OP_RDMA_WRITE) |
drivers/infiniband/hw/irdma/ctrl.c
1883
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
1935
struct irdma_terminate_hdr *hdr,
drivers/infiniband/hw/irdma/ctrl.c
1940
hdr->layer_etype = layer_etype;
drivers/infiniband/hw/irdma/ctrl.c
1941
hdr->error_code = err;
drivers/infiniband/hw/irdma/ctrl.c
195
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
1951
static void irdma_bld_termhdr_ddp_rdma(u8 *pkt, struct irdma_terminate_hdr *hdr,
drivers/infiniband/hw/irdma/ctrl.c
1959
hdr->hdrct = DDP_LEN_FLAG;
drivers/infiniband/hw/irdma/ctrl.c
1964
hdr->hdrct |= DDP_HDR_FLAG;
drivers/infiniband/hw/irdma/ctrl.c
1969
hdr->hdrct |= DDP_HDR_FLAG;
drivers/infiniband/hw/irdma/ctrl.c
1974
hdr->hdrct |= RDMA_HDR_FLAG;
drivers/infiniband/hw/irdma/ctrl.c
203
hdr = info->arp_index |
drivers/infiniband/hw/irdma/ctrl.c
210
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
231
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
237
hdr = arp_index |
drivers/infiniband/hw/irdma/ctrl.c
242
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
2637
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
265
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
2684
hdr = qp->qp_uk.qp_id |
drivers/infiniband/hw/irdma/ctrl.c
2692
hdr |= FIELD_PREP(IRDMA_CQPSQ_FWQE_ERR_SQ_IDX_VALID, info->err_sq_idx_valid) |
drivers/infiniband/hw/irdma/ctrl.c
2696
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
2720
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
273
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_MANAGE_APBVT) |
drivers/infiniband/hw/irdma/ctrl.c
2731
hdr = qp->qp_uk.qp_id | FIELD_PREP(IRDMA_CQPSQ_OPCODE,
drivers/infiniband/hw/irdma/ctrl.c
2737
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
2759
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
2768
hdr = FIELD_PREP(IRDMA_CQPSQ_UCTX_QPID, info->qp_id) |
drivers/infiniband/hw/irdma/ctrl.c
2776
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
278
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
2798
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
2809
hdr = FIELD_PREP(IRDMA_CQPSQ_MPP_PPIDX, info->push_idx) |
drivers/infiniband/hw/irdma/ctrl.c
2816
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
2835
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
2842
hdr = FIELD_PREP(IRDMA_CQPSQ_SUSPENDQP_QPID, qp->qp_uk.qp_id) |
drivers/infiniband/hw/irdma/ctrl.c
2847
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
2865
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
2875
hdr = FIELD_PREP(IRDMA_CQPSQ_RESUMEQP_QPID, qp->qp_uk.qp_id) |
drivers/infiniband/hw/irdma/ctrl.c
2880
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
2936
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
2961
hdr = FLD_LS_64(cq->dev, cq->cq_uk.cq_id, IRDMA_CQPSQ_CQ_CQID) |
drivers/infiniband/hw/irdma/ctrl.c
2979
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
2999
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
3012
hdr = cq->cq_uk.cq_id |
drivers/infiniband/hw/irdma/ctrl.c
3025
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
3062
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
3086
hdr = cq->cq_uk.cq_id |
drivers/infiniband/hw/irdma/ctrl.c
3099
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
4119
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
4133
hdr = FIELD_PREP(IRDMA_CQPSQ_MHMC_VFIDX, info->vf_id) |
drivers/infiniband/hw/irdma/ctrl.c
4140
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
4177
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
4188
hdr = FIELD_PREP(IRDMA_CQPSQ_BUFSIZE, IRDMA_COMMIT_FPM_BUF_SIZE) |
drivers/infiniband/hw/irdma/ctrl.c
4194
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
4238
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
4249
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_QUERY_FPM_VAL) |
drivers/infiniband/hw/irdma/ctrl.c
4253
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
4325
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
4340
hdr = FIELD_PREP(IRDMA_CQPSQ_CEQ_CEQID, ceq->ceq_id) |
drivers/infiniband/hw/irdma/ctrl.c
4351
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
4418
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
4429
hdr = ceq->ceq_id |
drivers/infiniband/hw/irdma/ctrl.c
4438
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
4573
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
4587
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_CREATE_AEQ) |
drivers/infiniband/hw/irdma/ctrl.c
4594
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
4616
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
4631
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_DESTROY_AEQ) |
drivers/infiniband/hw/irdma/ctrl.c
4638
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
4949
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
4962
hdr = ccq->cq_uk.cq_id |
drivers/infiniband/hw/irdma/ctrl.c
4973
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
501
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
5126
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
5176
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE, IRDMA_CQP_OP_UPDATE_PE_SDS) |
drivers/infiniband/hw/irdma/ctrl.c
5181
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
5249
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
5260
hdr = FIELD_PREP(IRDMA_CQPSQ_OPCODE,
drivers/infiniband/hw/irdma/ctrl.c
5265
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
532
hdr = srq->srq_uk.srq_id |
drivers/infiniband/hw/irdma/ctrl.c
542
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
565
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
597
hdr = srq->srq_uk.srq_id |
drivers/infiniband/hw/irdma/ctrl.c
606
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
627
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
637
hdr = srq->srq_uk.srq_id |
drivers/infiniband/hw/irdma/ctrl.c
642
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
664
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
678
hdr = qp->qp_uk.qp_id |
drivers/infiniband/hw/irdma/ctrl.c
693
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
715
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
740
hdr = qp->qp_uk.qp_id |
drivers/infiniband/hw/irdma/ctrl.c
762
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/ctrl.c
785
u64 hdr;
drivers/infiniband/hw/irdma/ctrl.c
795
hdr = qp->qp_uk.qp_id |
drivers/infiniband/hw/irdma/ctrl.c
803
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/puda.c
429
u64 hdr[2];
drivers/infiniband/hw/irdma/puda.c
452
hdr[0] = 0; /* Dest_QPN and Dest_QKey only for UD */
drivers/infiniband/hw/irdma/puda.c
453
hdr[1] = FIELD_PREP(IRDMA_UDA_QPSQ_OPCODE, IRDMA_OP_TYPE_SEND) |
drivers/infiniband/hw/irdma/puda.c
467
hdr[0] = FIELD_PREP(IRDMA_UDA_QPSQ_MACLEN, info->maclen >> 1) |
drivers/infiniband/hw/irdma/puda.c
473
hdr[1] = FIELD_PREP(IRDMA_UDA_QPSQ_OPCODE, IRDMA_OP_TYPE_SEND) |
drivers/infiniband/hw/irdma/puda.c
485
set_64bit_val(wqe, 16, hdr[0]);
drivers/infiniband/hw/irdma/puda.c
488
set_64bit_val(wqe, 24, hdr[1]);
drivers/infiniband/hw/irdma/puda.c
609
u64 hdr;
drivers/infiniband/hw/irdma/puda.c
621
hdr = qp->qp_uk.qp_id |
drivers/infiniband/hw/irdma/puda.c
629
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/puda.c
726
u64 hdr;
drivers/infiniband/hw/irdma/puda.c
744
hdr = cq->cq_uk.cq_id |
drivers/infiniband/hw/irdma/puda.c
752
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
1026
hdr = FIELD_PREP(IRDMAQPSQ_ADDFRAGCNT, addl_frag_cnt) |
drivers/infiniband/hw/irdma/uk.c
1031
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
1819
u64 hdr;
drivers/infiniband/hw/irdma/uk.c
1835
hdr = FIELD_PREP(IRDMAQPSQ_OPCODE, IRDMAQP_OP_NOP) |
drivers/infiniband/hw/irdma/uk.c
1841
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
230
u64 hdr;
drivers/infiniband/hw/irdma/uk.c
295
hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, op_info->rem_addr.lkey) |
drivers/infiniband/hw/irdma/uk.c
307
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
329
u64 hdr;
drivers/infiniband/hw/irdma/uk.c
342
hdr = FIELD_PREP(IRDMAQPSQ_ADDFRAGCNT, 1) |
drivers/infiniband/hw/irdma/uk.c
358
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
380
u64 hdr;
drivers/infiniband/hw/irdma/uk.c
393
hdr = FIELD_PREP(IRDMAQPSQ_ADDFRAGCNT, 1) |
drivers/infiniband/hw/irdma/uk.c
409
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
428
u64 hdr;
drivers/infiniband/hw/irdma/uk.c
457
hdr = FIELD_PREP(IRDMAQPSQ_ADDFRAGCNT, addl_frag_cnt) |
drivers/infiniband/hw/irdma/uk.c
462
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
487
u64 hdr;
drivers/infiniband/hw/irdma/uk.c
530
hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, op_info->rem_addr.lkey) |
drivers/infiniband/hw/irdma/uk.c
542
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
561
u64 hdr;
drivers/infiniband/hw/irdma/uk.c
60
u64 hdr;
drivers/infiniband/hw/irdma/uk.c
621
hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, info->stag_to_inv) |
drivers/infiniband/hw/irdma/uk.c
637
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
77
hdr = FIELD_PREP(IRDMAQPSQ_OPCODE, IRDMAQP_OP_NOP) |
drivers/infiniband/hw/irdma/uk.c
808
u64 hdr = 0;
drivers/infiniband/hw/irdma/uk.c
837
hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, op_info->rem_addr.lkey) |
drivers/infiniband/hw/irdma/uk.c
84
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
857
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
876
u64 hdr;
drivers/infiniband/hw/irdma/uk.c
906
hdr = FIELD_PREP(IRDMAQPSQ_REMSTAG, info->stag_to_inv) |
drivers/infiniband/hw/irdma/uk.c
929
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
949
u64 hdr;
drivers/infiniband/hw/irdma/uk.c
969
hdr = FIELD_PREP(IRDMAQPSQ_OPCODE, IRDMA_OP_TYPE_INV_STAG) |
drivers/infiniband/hw/irdma/uk.c
977
set_64bit_val(wqe, 24, hdr);
drivers/infiniband/hw/irdma/uk.c
996
u64 hdr;
drivers/infiniband/hw/mana/counters.c
109
mana_gd_init_req_hdr(&req.hdr, MANA_IB_QUERY_VF_COUNTERS,
drivers/infiniband/hw/mana/counters.c
111
req.hdr.resp.msg_version = GDMA_MESSAGE_V2;
drivers/infiniband/hw/mana/counters.c
112
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/counters.c
77
mana_gd_init_req_hdr(&req.hdr, MANA_IB_QUERY_DEVICE_COUNTERS,
drivers/infiniband/hw/mana/counters.c
79
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
1004
mana_gd_init_req_hdr(&req.hdr, MANA_IB_DESTROY_CQ, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
1005
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
1030
mana_gd_init_req_hdr(&req.hdr, MANA_IB_CREATE_RC_QP, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
1031
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
1066
mana_gd_init_req_hdr(&req.hdr, MANA_IB_DESTROY_RC_QP, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
1067
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
1089
mana_gd_init_req_hdr(&req.hdr, MANA_IB_CREATE_UD_QP, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
1090
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
1124
mana_gd_init_req_hdr(&req.hdr, MANA_IB_DESTROY_UD_QP, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
1125
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
126
mana_gd_init_req_hdr(&req.hdr, GDMA_DESTROY_PD, sizeof(req),
drivers/infiniband/hw/mana/main.c
133
if (err || resp.hdr.status) {
drivers/infiniband/hw/mana/main.c
136
pd->pd_handle, err, resp.hdr.status);
drivers/infiniband/hw/mana/main.c
151
mana_gd_init_req_hdr(&req.hdr, GDMA_DESTROY_RESOURCE_RANGE,
drivers/infiniband/hw/mana/main.c
176
mana_gd_init_req_hdr(&req.hdr, GDMA_ALLOCATE_RESOURCE_RANGE,
drivers/infiniband/hw/mana/main.c
187
if (err || resp.hdr.status) {
drivers/infiniband/hw/mana/main.c
190
err, resp.hdr.status);
drivers/infiniband/hw/mana/main.c
323
if (err || create_resp.hdr.status != expected_status) {
drivers/infiniband/hw/mana/main.c
326
err, create_resp.hdr.status);
drivers/infiniband/hw/mana/main.c
350
mana_gd_init_req_hdr(&add_req->hdr, GDMA_DMA_REGION_ADD_PAGES,
drivers/infiniband/hw/mana/main.c
356
if (err || add_resp.hdr.status != expected_status) {
drivers/infiniband/hw/mana/main.c
359
err, add_resp.hdr.status);
drivers/infiniband/hw/mana/main.c
405
mana_gd_init_req_hdr(&create_req->hdr, GDMA_CREATE_DMA_REGION,
drivers/infiniband/hw/mana/main.c
680
mana_gd_init_req_hdr(&req.hdr, MANA_IB_GET_ADAPTER_CAP, sizeof(req),
drivers/infiniband/hw/mana/main.c
682
req.hdr.resp.msg_version = GDMA_MESSAGE_V4;
drivers/infiniband/hw/mana/main.c
683
req.hdr.dev_id = dev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
727
mana_gd_init_req_hdr(&req.hdr, GDMA_QUERY_MAX_RESOURCES,
drivers/infiniband/hw/mana/main.c
83
mana_gd_init_req_hdr(&req.hdr, GDMA_CREATE_PD, sizeof(req),
drivers/infiniband/hw/mana/main.c
841
mana_gd_init_req_hdr(&req.hdr, MANA_IB_CREATE_ADAPTER, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
842
req.hdr.req.msg_version = GDMA_MESSAGE_V2;
drivers/infiniband/hw/mana/main.c
843
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
867
mana_gd_init_req_hdr(&req.hdr, MANA_IB_DESTROY_ADAPTER, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
868
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
894
mana_gd_init_req_hdr(&req.hdr, MANA_IB_CONFIG_IP_ADDR, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
895
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
924
mana_gd_init_req_hdr(&req.hdr, MANA_IB_CONFIG_IP_ADDR, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
925
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
93
if (err || resp.hdr.status) {
drivers/infiniband/hw/mana/main.c
947
mana_gd_init_req_hdr(&req.hdr, MANA_IB_CONFIG_MAC_ADDR, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
948
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/main.c
96
resp.hdr.status);
drivers/infiniband/hw/mana/main.c
972
mana_gd_init_req_hdr(&req.hdr, MANA_IB_CREATE_CQ, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/main.c
973
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/mana_ib.h
224
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
234
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
261
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
268
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
273
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
278
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
292
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
300
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
304
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
312
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
316
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
324
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
331
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
337
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
345
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
362
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
369
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
375
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
379
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
394
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
400
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
406
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
424
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
449
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
502
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
507
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
545
struct gdma_req_hdr hdr;
drivers/infiniband/hw/mana/mana_ib.h
550
struct gdma_resp_hdr hdr;
drivers/infiniband/hw/mana/mr.c
103
if (err || resp.hdr.status) {
drivers/infiniband/hw/mana/mr.c
105
resp.hdr.status);
drivers/infiniband/hw/mana/mr.c
336
mana_gd_init_req_hdr(&req.hdr, GDMA_ALLOC_DM, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/mr.c
342
if (err || resp.hdr.status) {
drivers/infiniband/hw/mana/mr.c
385
mana_gd_init_req_hdr(&req.hdr, GDMA_DESTROY_DM, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/mr.c
389
if (err || resp.hdr.status) {
drivers/infiniband/hw/mana/mr.c
41
mana_gd_init_req_hdr(&req.hdr, GDMA_CREATE_MR, sizeof(req),
drivers/infiniband/hw/mana/mr.c
43
req.hdr.req.msg_version = GDMA_MESSAGE_V2;
drivers/infiniband/hw/mana/mr.c
74
if (err || resp.hdr.status) {
drivers/infiniband/hw/mana/mr.c
76
resp.hdr.status);
drivers/infiniband/hw/mana/mr.c
97
mana_gd_init_req_hdr(&req.hdr, GDMA_DESTROY_MR, sizeof(req),
drivers/infiniband/hw/mana/qp.c
29
mana_gd_init_req_hdr(&req->hdr, MANA_CONFIG_VPORT_RX, req_buf_size,
drivers/infiniband/hw/mana/qp.c
32
req->hdr.req.msg_version = GDMA_MESSAGE_V2;
drivers/infiniband/hw/mana/qp.c
38
req->hdr.dev_id = gc->mana.dev_id;
drivers/infiniband/hw/mana/qp.c
736
mana_gd_init_req_hdr(&req.hdr, MANA_IB_SET_QP_STATE, sizeof(req), sizeof(resp));
drivers/infiniband/hw/mana/qp.c
738
req.hdr.req.msg_version = GDMA_MESSAGE_V3;
drivers/infiniband/hw/mana/qp.c
739
req.hdr.dev_id = mdev->gdma_dev->dev_id;
drivers/infiniband/hw/mana/qp.c
76
if (resp.hdr.status) {
drivers/infiniband/hw/mana/qp.c
78
resp.hdr.status);
drivers/infiniband/hw/mlx4/cm.c
65
struct ib_mad_hdr hdr;
drivers/infiniband/hw/mlx4/cm.c
74
struct ib_mad_hdr hdr;
drivers/infiniband/hw/mlx4/cq.c
588
struct mlx4_ib_proxy_sqp_hdr *hdr;
drivers/infiniband/hw/mlx4/cq.c
594
hdr = (struct mlx4_ib_proxy_sqp_hdr *) (qp->sqp_proxy_rcv[tail].addr);
drivers/infiniband/hw/mlx4/cq.c
595
wc->pkey_index = be16_to_cpu(hdr->tun.pkey_index);
drivers/infiniband/hw/mlx4/cq.c
596
wc->src_qp = be32_to_cpu(hdr->tun.flags_src_qp) & 0xFFFFFF;
drivers/infiniband/hw/mlx4/cq.c
597
wc->wc_flags |= (hdr->tun.g_ml_path & 0x80) ? (IB_WC_GRH) : 0;
drivers/infiniband/hw/mlx4/cq.c
602
wc->vlan_id = be16_to_cpu(hdr->tun.sl_vid);
drivers/infiniband/hw/mlx4/cq.c
603
memcpy(&(wc->smac[0]), (char *)&hdr->tun.mac_31_0, 4);
drivers/infiniband/hw/mlx4/cq.c
604
memcpy(&(wc->smac[4]), (char *)&hdr->tun.slid_mac_47_32, 2);
drivers/infiniband/hw/mlx4/cq.c
607
wc->slid = be16_to_cpu(hdr->tun.slid_mac_47_32);
drivers/infiniband/hw/mlx4/cq.c
608
wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12);
drivers/infiniband/hw/mlx4/mad.c
1567
memcpy(&ah.av, &tunnel->hdr.av, sizeof (struct mlx4_av));
drivers/infiniband/hw/mlx4/mad.c
1582
memcpy(dmac, tunnel->hdr.mac, ETH_ALEN);
drivers/infiniband/hw/mlx4/mad.c
1583
vlan_id = be16_to_cpu(tunnel->hdr.vlan);
drivers/infiniband/hw/mlx4/mad.c
1592
be16_to_cpu(tunnel->hdr.pkey_index),
drivers/infiniband/hw/mlx4/mad.c
1593
be32_to_cpu(tunnel->hdr.remote_qpn),
drivers/infiniband/hw/mlx4/mad.c
1594
be32_to_cpu(tunnel->hdr.qkey),
drivers/infiniband/hw/mlx4/mad.c
618
tun_mad->hdr.pkey_index = cpu_to_be16(tun_pkey_ix);
drivers/infiniband/hw/mlx4/mad.c
619
tun_mad->hdr.flags_src_qp = cpu_to_be32(wc->src_qp & 0xFFFFFF);
drivers/infiniband/hw/mlx4/mad.c
620
tun_mad->hdr.g_ml_path = (grh && (wc->wc_flags & IB_WC_GRH)) ? 0x80 : 0;
drivers/infiniband/hw/mlx4/mad.c
641
tun_mad->hdr.sl_vid = cpu_to_be16(vlan);
drivers/infiniband/hw/mlx4/mad.c
642
memcpy((char *)&tun_mad->hdr.mac_31_0, &(wc->smac[0]), 4);
drivers/infiniband/hw/mlx4/mad.c
643
memcpy((char *)&tun_mad->hdr.slid_mac_47_32, &(wc->smac[4]), 2);
drivers/infiniband/hw/mlx4/mad.c
645
tun_mad->hdr.sl_vid = cpu_to_be16(((u16)(wc->sl)) << 12);
drivers/infiniband/hw/mlx4/mad.c
646
tun_mad->hdr.slid_mac_47_32 = ib_lid_be16(wc->slid);
drivers/infiniband/hw/mlx4/mad.c
81
struct mlx4_ib_tunnel_header hdr;
drivers/infiniband/hw/mlx4/mad.c
86
struct mlx4_rcv_tunnel_hdr hdr;
drivers/infiniband/hw/mlx4/qp.c
3407
struct mlx4_ib_tunnel_header hdr;
drivers/infiniband/hw/mlx4/qp.c
3412
memcpy(&hdr.av, &ah->av, sizeof hdr.av);
drivers/infiniband/hw/mlx4/qp.c
3413
hdr.remote_qpn = cpu_to_be32(wr->remote_qpn);
drivers/infiniband/hw/mlx4/qp.c
3414
hdr.pkey_index = cpu_to_be16(wr->pkey_index);
drivers/infiniband/hw/mlx4/qp.c
3415
hdr.qkey = cpu_to_be32(wr->remote_qkey);
drivers/infiniband/hw/mlx4/qp.c
3416
memcpy(hdr.mac, ah->av.eth.mac, 6);
drivers/infiniband/hw/mlx4/qp.c
3417
hdr.vlan = ah->av.eth.vlan;
drivers/infiniband/hw/mlx4/qp.c
3421
if (sizeof (hdr) <= spc) {
drivers/infiniband/hw/mlx4/qp.c
3422
memcpy(inl + 1, &hdr, sizeof (hdr));
drivers/infiniband/hw/mlx4/qp.c
3424
inl->byte_count = cpu_to_be32(1 << 31 | sizeof (hdr));
drivers/infiniband/hw/mlx4/qp.c
3427
memcpy(inl + 1, &hdr, spc);
drivers/infiniband/hw/mlx4/qp.c
3432
memcpy(inl + 1, (void *) &hdr + spc, sizeof (hdr) - spc);
drivers/infiniband/hw/mlx4/qp.c
3434
inl->byte_count = cpu_to_be32(1 << 31 | (sizeof (hdr) - spc));
drivers/infiniband/hw/mlx4/qp.c
3439
ALIGN(i * sizeof (struct mlx4_wqe_inline_seg) + sizeof (hdr), 16);
drivers/infiniband/hw/mlx5/devx.c
1880
async_data = kvzalloc(struct_size(async_data, hdr.out_data,
drivers/infiniband/hw/mlx5/devx.c
1887
err = uverbs_copy_from(&async_data->hdr.wr_id, attrs,
drivers/infiniband/hw/mlx5/devx.c
1900
async_data->hdr.out_data,
drivers/infiniband/hw/mlx5/devx.c
2543
event_data->hdr.cookie = event_sub->cookie;
drivers/infiniband/hw/mlx5/devx.c
2544
memcpy(event_data->hdr.out_data, data, sizeof(struct mlx5_eqe));
drivers/infiniband/hw/mlx5/devx.c
2787
if (copy_to_user(buf, &event->hdr, eventsz))
drivers/infiniband/hw/mlx5/devx.c
2875
event_data = &event->hdr;
drivers/infiniband/hw/mlx5/devx.c
53
struct mlx5_ib_uapi_devx_async_cmd_hdr hdr;
drivers/infiniband/hw/mlx5/devx.c
58
struct mlx5_ib_uapi_devx_async_event_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
1046
cmd->hdr.tag_lo = dev->mq.sq.head;
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
1090
if ((mqe->hdr.spcl_sge_cnt_emb & OCRDMA_MQE_HDR_EMB_MASK) >>
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
1122
if ((mqe->hdr.spcl_sge_cnt_emb & OCRDMA_MQE_HDR_EMB_MASK) >>
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
1297
mqe->hdr.pyld_len = dev->stats_mem.size;
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
1298
mqe->hdr.spcl_sge_cnt_emb |=
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
1345
mqe->hdr.pyld_len = dma.size;
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
1346
mqe->hdr.spcl_sge_cnt_emb |=
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
2885
cmd.hdr.pyld_len = max_t (u32, sizeof(struct ocrdma_get_dcbx_cfg_rsp),
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
2887
req = dma_alloc_coherent(&pdev->dev, cmd.hdr.pyld_len, &pa, GFP_KERNEL);
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
2893
cmd.hdr.spcl_sge_cnt_emb |= (1 << OCRDMA_MQE_HDR_SGE_CNT_SHIFT) &
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
2897
mqe_sge->len = cmd.hdr.pyld_len;
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
2899
ocrdma_init_mch(&req->hdr, OCRDMA_CMD_GET_DCBX_CONFIG,
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
2900
OCRDMA_SUBSYS_DCBX, cmd.hdr.pyld_len);
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
2912
dma_free_coherent(&pdev->dev, cmd.hdr.pyld_len, req, pa);
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
361
mqe->hdr.spcl_sge_cnt_emb |=
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
364
mqe->hdr.pyld_len = cmd_len - sizeof(struct ocrdma_mqe_hdr);
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
367
mqe->hdr.pyld_len);
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1033
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1046
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1052
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1204
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1228
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1236
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1245
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1272
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1293
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1312
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1325
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1346
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1359
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1371
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1383
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1389
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1395
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1400
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1407
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1418
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1425
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1459
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1467
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1475
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1483
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1528
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1555
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1575
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1595
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1608
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1620
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1627
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1636
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1641
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1650
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1671
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1679
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1685
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
1691
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
2055
struct ocrdma_mbx_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
2061
struct ocrdma_mbx_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
2165
struct ocrdma_mbx_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
2231
struct ocrdma_mbx_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
2236
struct ocrdma_mbx_rsp hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
284
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
354
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
360
struct ocrdma_mbx_rsp hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
620
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
649
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
656
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
698
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
739
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
801
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
819
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
856
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
863
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_sli.h
973
struct ocrdma_mqe_hdr hdr;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1876
struct ocrdma_hdr_wqe *hdr,
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1880
(struct ocrdma_ewqe_ud_hdr *)(hdr + 1);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1891
hdr->cw |= (OCRDMA_FLAG_AH_VLAN_PR << OCRDMA_WQE_FLAGS_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1894
static void ocrdma_build_sges(struct ocrdma_hdr_wqe *hdr,
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1905
hdr->total_len += sg_list[i].length;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1922
struct ocrdma_hdr_wqe *hdr,
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1930
hdr->total_len = ocrdma_sglist_len(wr->sg_list, wr->num_sge);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1931
if (unlikely(hdr->total_len > qp->max_inline_data)) {
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1934
qp->max_inline_data, hdr->total_len);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1945
wqe_size += roundup(hdr->total_len, OCRDMA_WQE_ALIGN_BYTES);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1946
if (0 == hdr->total_len)
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1948
hdr->cw |= (OCRDMA_TYPE_INLINE << OCRDMA_WQE_TYPE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1950
ocrdma_build_sges(hdr, sge, wr->num_sge, wr->sg_list);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1955
hdr->cw |= (OCRDMA_TYPE_LKEY << OCRDMA_WQE_TYPE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1957
hdr->cw |= ((wqe_size / OCRDMA_WQE_STRIDE) << OCRDMA_WQE_SIZE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1961
static int ocrdma_build_send(struct ocrdma_qp *qp, struct ocrdma_hdr_wqe *hdr,
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1965
u32 wqe_size = sizeof(*hdr);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1968
ocrdma_build_ud_hdr(qp, hdr, wr);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1969
sge = (struct ocrdma_sge *)(hdr + 2);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1972
sge = (struct ocrdma_sge *)(hdr + 1);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1975
return ocrdma_build_inline_sges(qp, hdr, sge, wr, wqe_size);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1978
static int ocrdma_build_write(struct ocrdma_qp *qp, struct ocrdma_hdr_wqe *hdr,
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1982
struct ocrdma_sge *ext_rw = (struct ocrdma_sge *)(hdr + 1);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1984
u32 wqe_size = sizeof(*hdr) + sizeof(*ext_rw);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1986
status = ocrdma_build_inline_sges(qp, hdr, sge, wr, wqe_size);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1992
ext_rw->len = hdr->total_len;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1996
static void ocrdma_build_read(struct ocrdma_qp *qp, struct ocrdma_hdr_wqe *hdr,
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
1999
struct ocrdma_sge *ext_rw = (struct ocrdma_sge *)(hdr + 1);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2004
ocrdma_build_sges(hdr, sge, wr->num_sge, wr->sg_list);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2005
hdr->cw |= ((wqe_size / OCRDMA_WQE_STRIDE) << OCRDMA_WQE_SIZE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2006
hdr->cw |= (OCRDMA_READ << OCRDMA_WQE_OPCODE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2007
hdr->cw |= (OCRDMA_TYPE_LKEY << OCRDMA_WQE_TYPE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2012
ext_rw->len = hdr->total_len;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2026
struct ocrdma_hdr_wqe *hdr,
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2030
struct ocrdma_ewqe_fr *fast_reg = (struct ocrdma_ewqe_fr *)(hdr + 1);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2034
u32 wqe_size = sizeof(*fast_reg) + sizeof(*hdr);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2039
hdr->cw |= (OCRDMA_FR_MR << OCRDMA_WQE_OPCODE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2040
hdr->cw |= ((wqe_size / OCRDMA_WQE_STRIDE) << OCRDMA_WQE_SIZE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2043
hdr->rsvd_lkey_flags |= OCRDMA_LKEY_FLAG_LOCAL_WR;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2045
hdr->rsvd_lkey_flags |= OCRDMA_LKEY_FLAG_REMOTE_WR;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2047
hdr->rsvd_lkey_flags |= OCRDMA_LKEY_FLAG_REMOTE_RD;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2048
hdr->lkey = wr->key;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2049
hdr->total_len = mr->ibmr.length;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2093
struct ocrdma_hdr_wqe *hdr;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2117
hdr = ocrdma_hwq_head(&qp->sq);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2118
hdr->cw = 0;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2120
hdr->cw |= (OCRDMA_FLAG_SIG << OCRDMA_WQE_FLAGS_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2122
hdr->cw |=
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2125
hdr->cw |=
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2127
hdr->total_len = 0;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2130
hdr->cw |= (OCRDMA_FLAG_IMM << OCRDMA_WQE_FLAGS_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2131
hdr->immdt = ntohl(wr->ex.imm_data);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2134
hdr->cw |= (OCRDMA_SEND << OCRDMA_WQE_OPCODE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2135
ocrdma_build_send(qp, hdr, wr);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2138
hdr->cw |= (OCRDMA_FLAG_INV << OCRDMA_WQE_FLAGS_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2139
hdr->cw |= (OCRDMA_SEND << OCRDMA_WQE_OPCODE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2140
hdr->lkey = wr->ex.invalidate_rkey;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2141
status = ocrdma_build_send(qp, hdr, wr);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2144
hdr->cw |= (OCRDMA_FLAG_IMM << OCRDMA_WQE_FLAGS_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2145
hdr->immdt = ntohl(wr->ex.imm_data);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2148
hdr->cw |= (OCRDMA_WRITE << OCRDMA_WQE_OPCODE_SHIFT);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2149
status = ocrdma_build_write(qp, hdr, wr);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2152
ocrdma_build_read(qp, hdr, wr);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2155
hdr->cw |=
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2157
hdr->cw |= ((sizeof(struct ocrdma_hdr_wqe) +
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2160
hdr->lkey = wr->ex.invalidate_rkey;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2163
status = ocrdma_build_reg(qp, hdr, reg_wr(wr));
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2178
ocrdma_cpu_to_le32(hdr, ((hdr->cw >> OCRDMA_WQE_SIZE_SHIFT) &
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2405
struct ocrdma_hdr_wqe *hdr;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2409
hdr = ocrdma_hwq_head_from_idx(&qp->sq, wqe_idx);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2413
opcode = le32_to_cpu(hdr->cw) & OCRDMA_WQE_OPCODE_MASK;
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2419
rw = (struct ocrdma_sge *)(hdr + 1);
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
2435
__func__, hdr->cw & OCRDMA_WQE_OPCODE_MASK);
drivers/infiniband/hw/qedr/verbs.c
3365
#define SRQ_HDR_SET(hdr, vwr_id, num_sge) \
drivers/infiniband/hw/qedr/verbs.c
3367
DMA_REGPAIR_LE(hdr->wr_id, vwr_id); \
drivers/infiniband/hw/qedr/verbs.c
3368
(hdr)->num_sges = num_sge; \
drivers/infiniband/hw/qedr/verbs.c
3850
struct rdma_srq_wqe_header *hdr;
drivers/infiniband/hw/qedr/verbs.c
3864
hdr = qed_chain_produce(pbl);
drivers/infiniband/hw/qedr/verbs.c
3867
SRQ_HDR_SET(hdr, wr->wr_id, num_sge);
drivers/infiniband/hw/vmw_pvrdma/pvrdma_cmd.c
72
if (resp->hdr.ack != resp_code) {
drivers/infiniband/hw/vmw_pvrdma/pvrdma_cmd.c
75
resp->hdr.ack, resp_code);
drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c
184
cmd->hdr.cmd = PVRDMA_CMD_CREATE_CQ;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c
252
cmd->hdr.cmd = PVRDMA_CMD_DESTROY_CQ;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
393
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
399
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
404
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
411
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
417
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
425
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
431
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
437
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
443
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
449
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
455
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
466
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
474
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
480
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
489
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
495
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
501
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
507
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
513
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
523
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
529
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
536
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
542
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
547
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
553
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
576
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
586
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
597
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
604
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
610
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
615
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
621
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
627
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
637
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
644
struct pvrdma_cmd_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h
669
struct pvrdma_cmd_resp_hdr hdr;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
623
cmd_bind->hdr.cmd = PVRDMA_CMD_CREATE_BIND;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c
662
cmd_dest->hdr.cmd = PVRDMA_CMD_DESTROY_BIND;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c
171
cmd->hdr.cmd = PVRDMA_CMD_CREATE_MR;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c
244
cmd->hdr.cmd = PVRDMA_CMD_CREATE_MR;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c
291
cmd->hdr.cmd = PVRDMA_CMD_DESTROY_MR;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c
80
cmd->hdr.cmd = PVRDMA_CMD_CREATE_MR;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
357
cmd->hdr.cmd = PVRDMA_CMD_CREATE_QP;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
483
cmd->hdr.cmd = PVRDMA_CMD_DESTROY_QP;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
583
cmd->hdr.cmd = PVRDMA_CMD_MODIFY_QP;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
619
} else if (rsp.hdr.err > 0) {
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
621
"cannot modify queuepair, error: %d\n", rsp.hdr.err);
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
985
cmd->hdr.cmd = PVRDMA_CMD_QUERY_QP;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c
174
cmd->hdr.cmd = PVRDMA_CMD_CREATE_SRQ;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c
252
cmd->hdr.cmd = PVRDMA_CMD_DESTROY_SRQ;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c
288
cmd->hdr.cmd = PVRDMA_CMD_MODIFY_SRQ;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c
73
cmd->hdr.cmd = PVRDMA_CMD_QUERY_SRQ;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
139
cmd->hdr.cmd = PVRDMA_CMD_QUERY_PORT;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
217
cmd->hdr.cmd = PVRDMA_CMD_QUERY_PKEY;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
311
cmd->hdr.cmd = PVRDMA_CMD_CREATE_UC;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
348
cmd->hdr.cmd = PVRDMA_CMD_DESTROY_UC;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
417
cmd->hdr.cmd = PVRDMA_CMD_CREATE_PD;
drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c
463
cmd->hdr.cmd = PVRDMA_CMD_DESTROY_PD;
drivers/infiniband/sw/rxe/rxe_hdr.h
18
u8 *hdr; /* points to bth */
drivers/infiniband/sw/rxe/rxe_hdr.h
282
return __bth_opcode(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
287
__bth_set_opcode(pkt->hdr, opcode);
drivers/infiniband/sw/rxe/rxe_hdr.h
292
return __bth_se(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
297
__bth_set_se(pkt->hdr, se);
drivers/infiniband/sw/rxe/rxe_hdr.h
302
return __bth_mig(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
307
__bth_set_mig(pkt->hdr, mig);
drivers/infiniband/sw/rxe/rxe_hdr.h
312
return __bth_pad(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
317
__bth_set_pad(pkt->hdr, pad);
drivers/infiniband/sw/rxe/rxe_hdr.h
322
return __bth_tver(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
327
__bth_set_tver(pkt->hdr, tver);
drivers/infiniband/sw/rxe/rxe_hdr.h
332
return __bth_pkey(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
337
__bth_set_pkey(pkt->hdr, pkey);
drivers/infiniband/sw/rxe/rxe_hdr.h
342
return __bth_qpn(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
347
__bth_set_qpn(pkt->hdr, qpn);
drivers/infiniband/sw/rxe/rxe_hdr.h
352
return __bth_fecn(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
357
__bth_set_fecn(pkt->hdr, fecn);
drivers/infiniband/sw/rxe/rxe_hdr.h
362
return __bth_becn(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
367
__bth_set_becn(pkt->hdr, becn);
drivers/infiniband/sw/rxe/rxe_hdr.h
372
return __bth_resv6a(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
377
__bth_set_resv6a(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
382
return __bth_ack(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
387
__bth_set_ack(pkt->hdr, ack);
drivers/infiniband/sw/rxe/rxe_hdr.h
392
__bth_set_resv7(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
397
return __bth_psn(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
402
__bth_set_psn(pkt->hdr, psn);
drivers/infiniband/sw/rxe/rxe_hdr.h
409
struct rxe_bth *bth = (struct rxe_bth *)(pkt->hdr);
drivers/infiniband/sw/rxe/rxe_hdr.h
450
return __rdeth_een(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
456
__rdeth_set_een(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
501
return __deth_qkey(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
507
__deth_set_qkey(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
513
return __deth_sqp(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
519
__deth_set_sqp(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
576
return __reth_va(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
582
__reth_set_va(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
588
return __reth_rkey(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
594
__reth_set_rkey(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
600
return __reth_len(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
606
__reth_set_len(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
638
return __feth_plt(pkt->hdr + rxe_opcode[pkt->opcode].offset[RXE_FETH]);
drivers/infiniband/sw/rxe/rxe_hdr.h
643
return __feth_sel(pkt->hdr + rxe_opcode[pkt->opcode].offset[RXE_FETH]);
drivers/infiniband/sw/rxe/rxe_hdr.h
649
(pkt->hdr + rxe_opcode[pkt->opcode].offset[RXE_FETH]);
drivers/infiniband/sw/rxe/rxe_hdr.h
724
return __atmeth_va(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
730
__atmeth_set_va(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
736
return __atmeth_rkey(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
742
__atmeth_set_rkey(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
748
return __atmeth_swap_add(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
754
__atmeth_set_swap_add(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
760
return __atmeth_comp(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
766
__atmeth_set_comp(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
827
return __aeth_syn(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
833
__aeth_set_syn(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
839
return __aeth_msn(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
845
__aeth_set_msn(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
872
return __atmack_orig(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
878
__atmack_set_orig(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
905
return __immdt_imm(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
911
__immdt_set_imm(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
938
return __ieth_rkey(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
944
__ieth_set_rkey(pkt->hdr +
drivers/infiniband/sw/rxe/rxe_hdr.h
968
return pkt->hdr + rxe_opcode[pkt->opcode].offset[RXE_PAYLOAD];
drivers/infiniband/sw/rxe/rxe_icrc.c
108
icrcp = (__be32 *)(pkt->hdr + pkt->paylen - RXE_ICRC_SIZE);
drivers/infiniband/sw/rxe/rxe_icrc.c
132
icrcp = (__be32 *)(pkt->hdr + pkt->paylen - RXE_ICRC_SIZE);
drivers/infiniband/sw/rxe/rxe_icrc.c
79
memcpy(&pshdr[bth_offset], pkt->hdr, RXE_BTH_BYTES);
drivers/infiniband/sw/rxe/rxe_icrc.c
89
crc = rxe_crc32(pkt->rxe, crc, pkt->hdr + RXE_BTH_BYTES,
drivers/infiniband/sw/rxe/rxe_net.c
238
pkt->hdr = (u8 *)(udph + 1);
drivers/infiniband/sw/rxe/rxe_net.c
581
pkt->hdr = skb_put(skb, paylen);
drivers/infiniband/sw/rxe/rxe_resp.c
1002
union rdma_network_hdr hdr;
drivers/infiniband/sw/rxe/rxe_resp.c
1008
memset(&hdr.reserved, 0,
drivers/infiniband/sw/rxe/rxe_resp.c
1009
sizeof(hdr.reserved));
drivers/infiniband/sw/rxe/rxe_resp.c
1010
memcpy(&hdr.roce4grh, ip_hdr(skb),
drivers/infiniband/sw/rxe/rxe_resp.c
1011
sizeof(hdr.roce4grh));
drivers/infiniband/sw/rxe/rxe_resp.c
1012
err = send_data_in(qp, &hdr, sizeof(hdr));
drivers/infiniband/sw/rxe/rxe_resp.c
1015
sizeof(hdr));
drivers/infiniband/sw/siw/siw.h
290
union iwarp_hdr hdr;
drivers/infiniband/sw/siw/siw.h
362
union iwarp_hdr hdr;
drivers/infiniband/sw/siw/siw_cm.c
1182
cep->mpa.hdr.params.pd_len = 0;
drivers/infiniband/sw/siw/siw_cm.c
1506
cep->mpa.hdr.params.bits = 0;
drivers/infiniband/sw/siw/siw_cm.c
1513
__mpa_rr_set_revision(&cep->mpa.hdr.params.bits, version);
drivers/infiniband/sw/siw/siw_cm.c
1516
cep->mpa.hdr.params.bits |= MPA_RR_FLAG_GSO_EXP;
drivers/infiniband/sw/siw/siw_cm.c
1519
cep->mpa.hdr.params.bits |= MPA_RR_FLAG_CRC;
drivers/infiniband/sw/siw/siw_cm.c
1529
cep->mpa.hdr.params.bits |= MPA_RR_FLAG_ENHANCED;
drivers/infiniband/sw/siw/siw_cm.c
1542
memcpy(cep->mpa.hdr.key, MPA_KEY_REQ, 16);
drivers/infiniband/sw/siw/siw_cm.c
1548
cep->mpa.hdr.params.pd_len = 0;
drivers/infiniband/sw/siw/siw_cm.c
1614
if (cep->mpa.hdr.params.pd_len) {
drivers/infiniband/sw/siw/siw_cm.c
1615
cep->mpa.hdr.params.pd_len = 0;
drivers/infiniband/sw/siw/siw_cm.c
1636
if (try_gso && cep->mpa.hdr.params.bits & MPA_RR_FLAG_GSO_EXP) {
drivers/infiniband/sw/siw/siw_cm.c
1701
if (cep->mpa.hdr.params.bits & MPA_RR_FLAG_CRC)
drivers/infiniband/sw/siw/siw_cm.c
1789
if (__mpa_rr_revision(cep->mpa.hdr.params.bits) >= MPA_REVISION_1) {
drivers/infiniband/sw/siw/siw_cm.c
1790
cep->mpa.hdr.params.bits |= MPA_RR_FLAG_REJECT; /* reject */
drivers/infiniband/sw/siw/siw_cm.c
384
u16 pd_len = be16_to_cpu(cep->mpa.hdr.params.pd_len);
drivers/infiniband/sw/siw/siw_cm.c
517
struct mpa_rr *rr = &cep->mpa.hdr;
drivers/infiniband/sw/siw/siw_cm.c
563
struct mpa_rr *hdr = &cep->mpa.hdr;
drivers/infiniband/sw/siw/siw_cm.c
569
rcvd = ksock_recv(s, (char *)hdr + cep->mpa.bytes_rcvd,
drivers/infiniband/sw/siw/siw_cm.c
580
if (be16_to_cpu(hdr->params.pd_len) > MPA_MAX_PRIVDATA)
drivers/infiniband/sw/siw/siw_cm.c
583
pd_len = be16_to_cpu(hdr->params.pd_len);
drivers/infiniband/sw/siw/siw_cm.c
661
req = &cep->mpa.hdr;
drivers/infiniband/sw/siw/siw_cm.c
794
rep = &cep->mpa.hdr;
drivers/infiniband/sw/siw/siw_cm.h
28
struct mpa_rr hdr; /* peer mpa hdr in host byte order */
drivers/infiniband/sw/siw/siw_qp.c
371
union iwarp_hdr *rx_hdr = &srx->hdr;
drivers/infiniband/sw/siw/siw_qp_rx.c
1203
u8 opcode = __rdmap_get_opcode(&srx->hdr.ctrl);
drivers/infiniband/sw/siw/siw_qp_rx.c
1362
be16_to_cpu(srx->hdr.ctrl.mpa_len) -
drivers/infiniband/sw/siw/siw_qp_rx.c
1393
be16_to_cpu(srx->hdr.ctrl.mpa_len)
drivers/infiniband/sw/siw/siw_qp_rx.c
1421
if (!(srx->hdr.ctrl.ddp_rdmap_ctrl &
drivers/infiniband/sw/siw/siw_qp_rx.c
168
struct iwarp_rdma_rresp *rresp = &srx->hdr.rresp;
drivers/infiniband/sw/siw/siw_qp_rx.c
232
struct iwarp_rdma_write *write = &srx->hdr.rwrite;
drivers/infiniband/sw/siw/siw_qp_rx.c
280
struct iwarp_send_inv *send = &srx->hdr.send_inv;
drivers/infiniband/sw/siw/siw_qp_rx.c
635
be16_to_cpu(srx->hdr.ctrl.mpa_len));
drivers/infiniband/sw/siw/siw_qp_rx.c
661
uint64_t raddr = be64_to_cpu(srx->hdr.rreq.sink_to),
drivers/infiniband/sw/siw/siw_qp_rx.c
662
laddr = be64_to_cpu(srx->hdr.rreq.source_to);
drivers/infiniband/sw/siw/siw_qp_rx.c
663
uint32_t length = be32_to_cpu(srx->hdr.rreq.read_size),
drivers/infiniband/sw/siw/siw_qp_rx.c
664
lkey = be32_to_cpu(srx->hdr.rreq.source_stag),
drivers/infiniband/sw/siw/siw_qp_rx.c
665
rkey = be32_to_cpu(srx->hdr.rreq.sink_stag),
drivers/infiniband/sw/siw/siw_qp_rx.c
666
msn = be32_to_cpu(srx->hdr.rreq.ddp_msn);
drivers/infiniband/sw/siw/siw_qp_rx.c
882
struct iwarp_terminate *term = &srx->hdr.terminate;
drivers/infiniband/sw/siw/siw_qp_rx.c
999
struct iwarp_ctrl *c_hdr = &srx->hdr.ctrl;
drivers/infiniband/ulp/iser/iscsi_iser.c
138
void iscsi_iser_recv(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
drivers/infiniband/ulp/iser/iscsi_iser.c
145
datalen = ntoh24(hdr->dlength);
drivers/infiniband/ulp/iser/iscsi_iser.c
157
rc = iscsi_complete_pdu(conn, hdr, rx_data, rx_data_len);
drivers/infiniband/ulp/iser/iscsi_iser.c
178
task->hdr = (struct iscsi_hdr *)&iser_task->desc.iscsi_header;
drivers/infiniband/ulp/iser/iscsi_iser.c
285
struct iscsi_data hdr;
drivers/infiniband/ulp/iser/iscsi_iser.c
290
iscsi_prep_data_out_pdu(task, r2t, &hdr);
drivers/infiniband/ulp/iser/iscsi_iser.c
292
hdr.itt, r2t->data_count);
drivers/infiniband/ulp/iser/iscsi_iser.c
296
error = iser_send_data_out(conn, task, &hdr);
drivers/infiniband/ulp/iser/iscsi_iser.h
481
struct iscsi_data *hdr);
drivers/infiniband/ulp/iser/iscsi_iser.h
484
struct iscsi_hdr *hdr,
drivers/infiniband/ulp/iser/iser_initiator.c
115
hdr->flags |= ISER_WSV;
drivers/infiniband/ulp/iser/iser_initiator.c
117
hdr->write_stag = cpu_to_be32(mem_reg->rkey);
drivers/infiniband/ulp/iser/iser_initiator.c
118
hdr->write_va = cpu_to_be64(mem_reg->sge.addr + unsol_sz);
drivers/infiniband/ulp/iser/iser_initiator.c
348
struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)task->hdr;
drivers/infiniband/ulp/iser/iser_initiator.c
352
edtl = ntohl(hdr->data_length);
drivers/infiniband/ulp/iser/iser_initiator.c
358
if (hdr->flags & ISCSI_FLAG_CMD_READ) {
drivers/infiniband/ulp/iser/iser_initiator.c
379
if (hdr->flags & ISCSI_FLAG_CMD_READ) {
drivers/infiniband/ulp/iser/iser_initiator.c
384
if (hdr->flags & ISCSI_FLAG_CMD_WRITE) {
drivers/infiniband/ulp/iser/iser_initiator.c
412
struct iscsi_data *hdr)
drivers/infiniband/ulp/iser/iser_initiator.c
424
itt = (__force uint32_t)hdr->itt;
drivers/infiniband/ulp/iser/iser_initiator.c
425
data_seg_len = ntoh24(hdr->dlength);
drivers/infiniband/ulp/iser/iser_initiator.c
426
buf_offset = ntohl(hdr->offset);
drivers/infiniband/ulp/iser/iser_initiator.c
438
memcpy(&tx_desc->iscsi_header, hdr, sizeof(struct iscsi_hdr));
drivers/infiniband/ulp/iser/iser_initiator.c
487
data_seg_len = ntoh24(task->hdr->dlength);
drivers/infiniband/ulp/iser/iser_initiator.c
514
task->hdr->opcode, data_seg_len);
drivers/infiniband/ulp/iser/iser_initiator.c
518
err = iser_post_rx_bufs(conn, task->hdr);
drivers/infiniband/ulp/iser/iser_initiator.c
537
struct iscsi_hdr *hdr;
drivers/infiniband/ulp/iser/iser_initiator.c
54
struct iser_ctrl *hdr = &iser_task->desc.iser_header;
drivers/infiniband/ulp/iser/iser_initiator.c
551
hdr = desc->rsp + sizeof(struct iser_ctrl);
drivers/infiniband/ulp/iser/iser_initiator.c
554
full_feature_phase = ((hdr->flags & ISCSI_FULL_FEATURE_PHASE) ==
drivers/infiniband/ulp/iser/iser_initiator.c
556
(hdr->flags & ISCSI_FLAG_CMD_FINAL);
drivers/infiniband/ulp/iser/iser_initiator.c
558
iser_dbg("op 0x%x itt 0x%x dlen %d\n", hdr->opcode,
drivers/infiniband/ulp/iser/iser_initiator.c
559
hdr->itt, length);
drivers/infiniband/ulp/iser/iser_initiator.c
561
iscsi_iser_recv(iser_conn->iscsi_conn, hdr, data, length);
drivers/infiniband/ulp/iser/iser_initiator.c
592
struct iscsi_hdr *hdr)
drivers/infiniband/ulp/iser/iser_initiator.c
607
task = iscsi_itt_to_ctask(iser_conn->iscsi_conn, hdr->itt);
drivers/infiniband/ulp/iser/iser_initiator.c
624
iser_err("failed to get task for itt=%d\n", hdr->itt);
drivers/infiniband/ulp/iser/iser_initiator.c
638
struct iscsi_hdr *hdr;
drivers/infiniband/ulp/iser/iser_initiator.c
650
hdr = &desc->iscsi_header;
drivers/infiniband/ulp/iser/iser_initiator.c
653
iser_dbg("op 0x%x itt 0x%x dlen %d\n", hdr->opcode,
drivers/infiniband/ulp/iser/iser_initiator.c
654
hdr->itt, length);
drivers/infiniband/ulp/iser/iser_initiator.c
656
if (iser_check_remote_inv(iser_conn, wc, hdr)) {
drivers/infiniband/ulp/iser/iser_initiator.c
662
iscsi_iser_recv(iser_conn->iscsi_conn, hdr, desc->data, length);
drivers/infiniband/ulp/iser/iser_initiator.c
69
hdr->flags |= ISER_RSV;
drivers/infiniband/ulp/iser/iser_initiator.c
691
if (task->hdr->itt == RESERVED_ITT)
drivers/infiniband/ulp/iser/iser_initiator.c
70
hdr->read_stag = cpu_to_be32(mem_reg->rkey);
drivers/infiniband/ulp/iser/iser_initiator.c
71
hdr->read_va = cpu_to_be64(mem_reg->sge.addr);
drivers/infiniband/ulp/iser/iser_initiator.c
95
struct iser_ctrl *hdr = &iser_task->desc.iser_header;
drivers/infiniband/ulp/isert/ib_isert.c
1048
struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)buf;
drivers/infiniband/ulp/isert/ib_isert.c
1064
rc = iscsit_process_scsi_cmd(conn, cmd, hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1101
rc = iscsit_sequence_cmd(conn, cmd, buf, hdr->cmdsn);
drivers/infiniband/ulp/isert/ib_isert.c
1118
struct iscsi_data *hdr = (struct iscsi_data *)buf;
drivers/infiniband/ulp/isert/ib_isert.c
1119
u32 unsol_data_len = ntoh24(hdr->dlength);
drivers/infiniband/ulp/isert/ib_isert.c
1160
rc = iscsit_check_dataout_payload(cmd, hdr, false);
drivers/infiniband/ulp/isert/ib_isert.c
1177
struct iscsi_nopout *hdr = (struct iscsi_nopout *)buf;
drivers/infiniband/ulp/isert/ib_isert.c
1180
rc = iscsit_setup_nop_out(conn, cmd, hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1187
return iscsit_process_nop_out(conn, cmd, hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1193
struct iscsi_text *hdr)
drivers/infiniband/ulp/isert/ib_isert.c
1196
u32 payload_length = ntoh24(hdr->dlength);
drivers/infiniband/ulp/isert/ib_isert.c
1200
rc = iscsit_setup_text_cmd(conn, cmd, hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1213
return iscsit_process_text_cmd(conn, cmd, hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1221
struct iscsi_hdr *hdr = isert_get_iscsi_hdr(rx_desc);
drivers/infiniband/ulp/isert/ib_isert.c
1226
u8 opcode = (hdr->opcode & ISCSI_OPCODE_MASK);
drivers/infiniband/ulp/isert/ib_isert.c
1249
rx_desc, (unsigned char *)hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1258
rx_desc, (unsigned char *)hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1262
(unsigned char *)hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1270
(unsigned char *)hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1277
ret = iscsit_handle_logout_cmd(conn, cmd, (unsigned char *)hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1280
if (be32_to_cpu(hdr->ttt) != 0xFFFFFFFF)
drivers/infiniband/ulp/isert/ib_isert.c
1281
cmd = iscsit_find_cmd_from_itt(conn, hdr->itt);
drivers/infiniband/ulp/isert/ib_isert.c
1290
rx_desc, (struct iscsi_text *)hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1319
struct iscsi_hdr *hdr = isert_get_iscsi_hdr(rx_desc);
drivers/infiniband/ulp/isert/ib_isert.c
1337
rx_desc->dma_addr, hdr->opcode, hdr->itt, hdr->flags,
drivers/infiniband/ulp/isert/ib_isert.c
1431
struct iscsi_text_rsp *hdr;
drivers/infiniband/ulp/isert/ib_isert.c
1472
hdr = (struct iscsi_text_rsp *)&isert_cmd->tx_desc.iscsi_header;
drivers/infiniband/ulp/isert/ib_isert.c
1474
if (hdr->flags & ISCSI_FLAG_TEXT_CONTINUE)
drivers/infiniband/ulp/isert/ib_isert.c
1762
struct iscsi_scsi_rsp *hdr = (struct iscsi_scsi_rsp *)
drivers/infiniband/ulp/isert/ib_isert.c
1766
iscsit_build_rsp_pdu(cmd, conn, true, hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1784
hton24(hdr->dlength, (u32)cmd->se_cmd.scsi_sense_length);
drivers/infiniband/ulp/isert/ib_isert.c
1908
struct iscsi_reject *hdr =
drivers/infiniband/ulp/isert/ib_isert.c
1912
iscsit_build_reject(cmd, conn, hdr);
drivers/infiniband/ulp/isert/ib_isert.c
1915
hton24(hdr->dlength, ISCSI_HDR_LEN);
drivers/infiniband/ulp/isert/ib_isert.c
1940
struct iscsi_text_rsp *hdr =
drivers/infiniband/ulp/isert/ib_isert.c
1946
rc = iscsit_build_text_rsp(cmd, conn, hdr, ISCSI_INFINIBAND);
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
487
u8 def_port, sc, rc, entropy, *hdr;
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
491
hdr = skb_push(skb, OPA_VNIC_HDR_LEN);
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
510
opa_vnic_make_header(hdr, info->vport.encap_slid, dlid, len,
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
73
static inline void opa_vnic_make_header(u8 *hdr, u32 slid, u32 dlid, u16 len,
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.c
96
memcpy(hdr, h, OPA_VNIC_HDR_LEN);
drivers/infiniband/ulp/rtrs/rtrs-srv.c
1152
struct rtrs_msg_rdma_hdr *hdr;
drivers/infiniband/ulp/rtrs/rtrs-srv.c
1158
hdr = msg;
drivers/infiniband/ulp/rtrs/rtrs-srv.c
1159
type = le16_to_cpu(hdr->type);
drivers/input/keyboard/imx_sc_key.c
37
struct imx_sc_rpc_msg hdr;
drivers/input/keyboard/imx_sc_key.c
66
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/input/keyboard/imx_sc_key.c
70
hdr->ver = IMX_SC_RPC_VERSION;
drivers/input/keyboard/imx_sc_key.c
71
hdr->svc = IMX_SC_RPC_SVC_MISC;
drivers/input/keyboard/imx_sc_key.c
72
hdr->func = IMX_SC_MISC_FUNC_GET_BUTTON_STATUS;
drivers/input/keyboard/imx_sc_key.c
73
hdr->size = 1;
drivers/input/touchscreen/apple_z2.c
182
struct apple_z2_hbpp_blob_hdr *hdr;
drivers/input/touchscreen/apple_z2.c
197
hdr = (struct apple_z2_hbpp_blob_hdr *)blob_data;
drivers/input/touchscreen/apple_z2.c
198
hdr->cmd = cpu_to_le16(APPLE_Z2_HBPP_CMD_BLOB);
drivers/input/touchscreen/apple_z2.c
199
hdr->len = cpu_to_le16(round_up(cal_size, 4) / 4);
drivers/input/touchscreen/apple_z2.c
200
hdr->addr = cpu_to_le32(address);
drivers/input/touchscreen/apple_z2.c
205
hdr->checksum = cpu_to_le16(checksum_hdr);
drivers/input/touchscreen/goodix_berlin_core.c
158
struct goodix_berlin_header hdr;
drivers/input/touchscreen/goodix_berlin_core.c
480
cd->event.hdr.request_type);
drivers/input/touchscreen/goodix_berlin_core.c
568
if (cd->event.hdr.status == 0)
drivers/input/touchscreen/goodix_berlin_core.c
571
if (!goodix_berlin_checksum_valid((u8 *)&cd->event.hdr,
drivers/input/touchscreen/goodix_berlin_core.c
576
&cd->event.hdr);
drivers/input/touchscreen/goodix_berlin_core.c
580
if (cd->event.hdr.status & GOODIX_BERLIN_TOUCH_EVENT)
drivers/input/touchscreen/goodix_berlin_core.c
583
if (cd->event.hdr.status & GOODIX_BERLIN_REQUEST_EVENT) {
drivers/input/touchscreen/goodix_berlin_core.c
584
switch (cd->event.hdr.request_type) {
drivers/input/touchscreen/goodix_berlin_core.c
592
cd->event.hdr.request_type);
drivers/iommu/intel/dmar.c
303
drhd = container_of(dmaru->hdr,
drivers/iommu/intel/dmar.c
427
dmaru->hdr = (void *)(dmaru + 1);
drivers/iommu/intel/dmar.c
428
memcpy(dmaru->hdr, header, header->length);
drivers/iommu/intel/dmar.c
709
drhd = container_of(dmaru->hdr,
drivers/iommu/intel/dmar.c
739
drhd = container_of(dmaru->hdr,
drivers/iommu/intel/iommu.c
166
struct acpi_dmar_header *hdr; /* ACPI header */
drivers/iommu/intel/iommu.c
175
struct acpi_dmar_header *hdr; /* ACPI header */
drivers/iommu/intel/iommu.c
183
struct acpi_dmar_header *hdr; /* ACPI header */
drivers/iommu/intel/iommu.c
1933
rmrru->hdr = header;
drivers/iommu/intel/iommu.c
1960
tmp = (struct acpi_dmar_atsr *)atsru->hdr;
drivers/iommu/intel/iommu.c
1972
int dmar_parse_one_atsr(struct acpi_dmar_header *hdr, void *arg)
drivers/iommu/intel/iommu.c
1980
atsr = container_of(hdr, struct acpi_dmar_atsr, header);
drivers/iommu/intel/iommu.c
1985
atsru = kzalloc(sizeof(*atsru) + hdr->length, GFP_KERNEL);
drivers/iommu/intel/iommu.c
1994
atsru->hdr = (void *)(atsru + 1);
drivers/iommu/intel/iommu.c
1995
memcpy(atsru->hdr, hdr, hdr->length);
drivers/iommu/intel/iommu.c
2018
int dmar_release_one_atsr(struct acpi_dmar_header *hdr, void *arg)
drivers/iommu/intel/iommu.c
2023
atsr = container_of(hdr, struct acpi_dmar_atsr, header);
drivers/iommu/intel/iommu.c
2034
int dmar_check_one_atsr(struct acpi_dmar_header *hdr, void *arg)
drivers/iommu/intel/iommu.c
2041
atsr = container_of(hdr, struct acpi_dmar_atsr, header);
drivers/iommu/intel/iommu.c
2062
tmp = (struct acpi_dmar_satc *)satcu->hdr;
drivers/iommu/intel/iommu.c
2074
int dmar_parse_one_satc(struct acpi_dmar_header *hdr, void *arg)
drivers/iommu/intel/iommu.c
2082
satc = container_of(hdr, struct acpi_dmar_satc, header);
drivers/iommu/intel/iommu.c
2087
satcu = kzalloc(sizeof(*satcu) + hdr->length, GFP_KERNEL);
drivers/iommu/intel/iommu.c
2091
satcu->hdr = (void *)(satcu + 1);
drivers/iommu/intel/iommu.c
2092
memcpy(satcu->hdr, hdr, hdr->length);
drivers/iommu/intel/iommu.c
2211
satc = container_of(satcu->hdr, struct acpi_dmar_satc, header);
drivers/iommu/intel/iommu.c
2263
atsr = container_of(atsru->hdr, struct acpi_dmar_atsr, header);
drivers/iommu/intel/iommu.c
2295
rmrr = container_of(rmrru->hdr,
drivers/iommu/intel/iommu.c
2314
atsr = container_of(atsru->hdr, struct acpi_dmar_atsr, header);
drivers/iommu/intel/iommu.c
2331
satc = container_of(satcu->hdr, struct acpi_dmar_satc, header);
drivers/iommu/intel/irq_remapping.c
1551
if (ir_parse_ioapic_hpet_scope(dmaru->hdr, iommu)) {
drivers/iommu/intel/irq_remapping.c
972
ret = ir_parse_ioapic_hpet_scope(drhd->hdr, iommu);
drivers/iommu/iommufd/eventq.c
305
struct iommufd_vevent_header *hdr;
drivers/iommu/iommufd/eventq.c
315
if (done >= count || sizeof(*hdr) > count - done) {
drivers/iommu/iommufd/eventq.c
319
hdr = &cur->header;
drivers/iommu/iommufd/eventq.c
323
sizeof(hdr) + cur->data_len > count - done) {
drivers/iommu/iommufd/eventq.c
328
if (copy_to_user(buf + done, hdr, sizeof(*hdr))) {
drivers/iommu/iommufd/eventq.c
333
done += sizeof(*hdr);
drivers/iommu/riscv/iommu-bits.h
539
u64 hdr;
drivers/iommu/riscv/iommu-bits.h
657
u64 hdr;
drivers/iommu/riscv/iommu.c
517
unsigned int err = FIELD_GET(RISCV_IOMMU_FQ_HDR_CAUSE, event->hdr);
drivers/iommu/riscv/iommu.c
518
unsigned int devid = FIELD_GET(RISCV_IOMMU_FQ_HDR_DID, event->hdr);
drivers/macintosh/smu.c
1005
return hdr;
drivers/macintosh/smu.c
1115
struct smu_user_cmd_hdr hdr;
drivers/macintosh/smu.c
1120
else if (copy_from_user(&hdr, buf, sizeof(hdr)))
drivers/macintosh/smu.c
1122
else if (hdr.cmdtype == SMU_CMDTYPE_WANTS_EVENTS) {
drivers/macintosh/smu.c
1125
} else if (hdr.cmdtype == SMU_CMDTYPE_GET_PARTITION) {
drivers/macintosh/smu.c
1127
part = __smu_get_sdb_partition(hdr.cmd, NULL, 1);
drivers/macintosh/smu.c
1133
} else if (hdr.cmdtype != SMU_CMDTYPE_SMU)
drivers/macintosh/smu.c
1137
else if (hdr.data_len > SMU_MAX_DATA)
drivers/macintosh/smu.c
1149
if (copy_from_user(pp->buffer, buf + sizeof(hdr), hdr.data_len)) {
drivers/macintosh/smu.c
1154
pp->cmd.cmd = hdr.cmd;
drivers/macintosh/smu.c
1155
pp->cmd.data_len = hdr.data_len;
drivers/macintosh/smu.c
1172
struct smu_user_reply_hdr hdr;
drivers/macintosh/smu.c
1207
size = sizeof(hdr) + pp->cmd.reply_len;
drivers/macintosh/smu.c
1211
hdr.status = pp->cmd.status;
drivers/macintosh/smu.c
1212
hdr.reply_len = pp->cmd.reply_len;
drivers/macintosh/smu.c
1213
if (copy_to_user(buf, &hdr, sizeof(hdr)))
drivers/macintosh/smu.c
1215
size -= sizeof(hdr);
drivers/macintosh/smu.c
1216
if (size && copy_to_user(buf + sizeof(hdr), pp->buffer, size))
drivers/macintosh/smu.c
952
struct smu_sdbp_header *hdr;
drivers/macintosh/smu.c
979
hdr = (struct smu_sdbp_header *)(prop + 1);
drivers/macintosh/smu.c
983
prop->value = hdr;
drivers/macintosh/smu.c
987
if (smu_read_datablock((u8 *)hdr, addr, len)) {
drivers/macintosh/smu.c
994
if (hdr->id != id) {
drivers/macintosh/smu.c
996
"%02x !\n", id, hdr->id);
drivers/macintosh/windfarm_pm112.c
130
struct smu_sdbp_header *hdr;
drivers/macintosh/windfarm_pm112.c
138
hdr = smu_sat_get_sdb_partition(chip, 0xC4 + core, NULL);
drivers/macintosh/windfarm_pm112.c
139
if (hdr) {
drivers/macintosh/windfarm_pm112.c
140
struct smu_sdbp_fvt *fvt = (struct smu_sdbp_fvt *)&hdr[1];
drivers/macintosh/windfarm_pm112.c
149
kfree(hdr);
drivers/macintosh/windfarm_pm112.c
152
hdr = smu_sat_get_sdb_partition(chip, 0xC8 + core, NULL);
drivers/macintosh/windfarm_pm112.c
153
if (hdr == NULL) {
drivers/macintosh/windfarm_pm112.c
157
piddata = (struct smu_sdbp_cpupiddata *)&hdr[1];
drivers/macintosh/windfarm_pm112.c
182
kfree(hdr);
drivers/macintosh/windfarm_pm121.c
643
const struct smu_sdbp_header *hdr;
drivers/macintosh/windfarm_pm121.c
652
hdr = smu_get_sdb_partition(SMU_SDB_CPUPIDDATA_ID, NULL);
drivers/macintosh/windfarm_pm121.c
653
if (!hdr) {
drivers/macintosh/windfarm_pm121.c
657
piddata = (struct smu_sdbp_cpupiddata *)&hdr[1];
drivers/macintosh/windfarm_pm121.c
662
hdr = smu_get_sdb_partition(SMU_SDB_FVT_ID, NULL);
drivers/macintosh/windfarm_pm121.c
663
if (hdr) {
drivers/macintosh/windfarm_pm121.c
664
fvt = (struct smu_sdbp_fvt *)&hdr[1];
drivers/macintosh/windfarm_pm121.c
968
const struct smu_sdbp_header *hdr;
drivers/macintosh/windfarm_pm121.c
970
hdr = smu_get_sdb_partition(SMU_SDB_SENSORTREE_ID, NULL);
drivers/macintosh/windfarm_pm121.c
971
if (hdr) {
drivers/macintosh/windfarm_pm121.c
973
(struct smu_sdbp_sensortree *)&hdr[1];
drivers/macintosh/windfarm_pm81.c
396
const struct smu_sdbp_header *hdr;
drivers/macintosh/windfarm_pm81.c
402
hdr = smu_get_sdb_partition(SMU_SDB_CPUPIDDATA_ID, NULL);
drivers/macintosh/windfarm_pm81.c
403
if (!hdr) {
drivers/macintosh/windfarm_pm81.c
408
piddata = (struct smu_sdbp_cpupiddata *)&hdr[1];
drivers/macintosh/windfarm_pm81.c
413
hdr = smu_get_sdb_partition(SMU_SDB_FVT_ID, NULL);
drivers/macintosh/windfarm_pm81.c
414
if (hdr) {
drivers/macintosh/windfarm_pm81.c
415
fvt = (struct smu_sdbp_fvt *)&hdr[1];
drivers/macintosh/windfarm_pm81.c
703
const struct smu_sdbp_header *hdr;
drivers/macintosh/windfarm_pm81.c
705
hdr = smu_get_sdb_partition(SMU_SDB_SENSORTREE_ID, NULL);
drivers/macintosh/windfarm_pm81.c
706
if (hdr) {
drivers/macintosh/windfarm_pm81.c
708
(struct smu_sdbp_sensortree *)&hdr[1];
drivers/macintosh/windfarm_pm91.c
146
const struct smu_sdbp_header *hdr;
drivers/macintosh/windfarm_pm91.c
152
hdr = smu_get_sdb_partition(SMU_SDB_CPUPIDDATA_ID, NULL);
drivers/macintosh/windfarm_pm91.c
153
if (!hdr) {
drivers/macintosh/windfarm_pm91.c
158
piddata = (struct smu_sdbp_cpupiddata *)&hdr[1];
drivers/macintosh/windfarm_pm91.c
163
hdr = smu_get_sdb_partition(SMU_SDB_FVT_ID, NULL);
drivers/macintosh/windfarm_pm91.c
164
if (hdr) {
drivers/macintosh/windfarm_pm91.c
165
fvt = (struct smu_sdbp_fvt *)&hdr[1];
drivers/macintosh/windfarm_smu_sensors.c
383
const struct smu_sdbp_header *hdr;
drivers/macintosh/windfarm_smu_sensors.c
386
hdr = smu_get_sdb_partition(SMU_SDB_CPUVCP_ID, NULL);
drivers/macintosh/windfarm_smu_sensors.c
387
if (hdr != NULL) {
drivers/macintosh/windfarm_smu_sensors.c
388
cpuvcp = (struct smu_sdbp_cpuvcp *)&hdr[1];
drivers/macintosh/windfarm_smu_sensors.c
390
cpuvcp_version = hdr->version;
drivers/macintosh/windfarm_smu_sensors.c
394
hdr = smu_get_sdb_partition(SMU_SDB_CPUDIODE_ID, NULL);
drivers/macintosh/windfarm_smu_sensors.c
395
if (hdr != NULL)
drivers/macintosh/windfarm_smu_sensors.c
396
cpudiode = (struct smu_sdbp_cpudiode *)&hdr[1];
drivers/macintosh/windfarm_smu_sensors.c
399
hdr = smu_get_sdb_partition(SMU_SDB_SLOTSPOW_ID, NULL);
drivers/macintosh/windfarm_smu_sensors.c
400
if (hdr != NULL)
drivers/macintosh/windfarm_smu_sensors.c
401
slotspow = (struct smu_sdbp_slotspow *)&hdr[1];
drivers/macintosh/windfarm_smu_sensors.c
404
hdr = smu_get_sdb_partition(SMU_SDB_DEBUG_SWITCHES_ID, NULL);
drivers/macintosh/windfarm_smu_sensors.c
405
if (hdr != NULL)
drivers/macintosh/windfarm_smu_sensors.c
406
debugswitches = (u8 *)&hdr[1];
drivers/mailbox/bcm74110-mailbox.c
82
#define BCM_MSG_SET_FIELD(hdr, field, val) \
drivers/mailbox/bcm74110-mailbox.c
84
hdr &= ~BCM_MSG_##field##_MASK; \
drivers/mailbox/bcm74110-mailbox.c
85
hdr |= FIELD_PREP(BCM_MSG_##field##_MASK, val); \
drivers/mailbox/bcm74110-mailbox.c
88
#define BCM_MSG_GET_FIELD(hdr, field) \
drivers/mailbox/bcm74110-mailbox.c
89
FIELD_GET(BCM_MSG_##field##_MASK, hdr)
drivers/mailbox/imx-mailbox.c
297
size = ((struct imx_s4_rpc_msg_max *)data)->hdr.size;
drivers/mailbox/imx-mailbox.c
300
size = ((struct imx_sc_rpc_msg_max *)data)->hdr.size;
drivers/mailbox/imx-mailbox.c
358
size = ((struct imx_s4_rpc_msg_max *)priv->msg)->hdr.size;
drivers/mailbox/imx-mailbox.c
361
size = ((struct imx_sc_rpc_msg_max *)priv->msg)->hdr.size;
drivers/mailbox/imx-mailbox.c
400
byte_size = msg->hdr.size * sizeof(u32);
drivers/mailbox/imx-mailbox.c
425
for (i = 1; i < 4 && i < msg->hdr.size; i++) {
drivers/mailbox/imx-mailbox.c
432
for (; i < msg->hdr.size; i++) {
drivers/mailbox/imx-mailbox.c
468
byte_size = msg.hdr.size * sizeof(u32);
drivers/mailbox/imx-mailbox.c
477
for (i = 1; i < msg.hdr.size; i++) {
drivers/mailbox/imx-mailbox.c
70
struct imx_sc_rpc_msg hdr;
drivers/mailbox/imx-mailbox.c
75
struct imx_s4_rpc_msg hdr;
drivers/media/common/siano/smscoreapi.c
1816
struct sms_msg_hdr hdr;
drivers/media/common/siano/smscoreapi.c
1821
msg.hdr.msg_src_id = DVBT_BDA_CONTROL_MSG_ID;
drivers/media/common/siano/smscoreapi.c
1822
msg.hdr.msg_dst_id = HIF_TASK;
drivers/media/common/siano/smscoreapi.c
1823
msg.hdr.msg_flags = 0;
drivers/media/common/siano/smscoreapi.c
1824
msg.hdr.msg_type = MSG_SMS_GPIO_CONFIG_EX_REQ;
drivers/media/common/siano/smscoreapi.c
1825
msg.hdr.msg_length = sizeof(msg);
drivers/media/common/siano/smscoreapi.c
1861
struct sms_msg_hdr hdr;
drivers/media/common/siano/smscoreapi.c
1868
msg.hdr.msg_src_id = DVBT_BDA_CONTROL_MSG_ID;
drivers/media/common/siano/smscoreapi.c
1869
msg.hdr.msg_dst_id = HIF_TASK;
drivers/media/common/siano/smscoreapi.c
1870
msg.hdr.msg_flags = 0;
drivers/media/common/siano/smscoreapi.c
1871
msg.hdr.msg_type = MSG_SMS_GPIO_SET_LEVEL_REQ;
drivers/media/common/siano/smscoreapi.c
1872
msg.hdr.msg_length = sizeof(msg);
drivers/media/dvb-core/dvb_ca_en50221.c
1555
u8 hdr[2];
drivers/media/dvb-core/dvb_ca_en50221.c
1569
dvb_ringbuffer_pkt_read(&sl->rx_buffer, idx, 0, hdr, 2);
drivers/media/dvb-core/dvb_ca_en50221.c
1571
connection_id = hdr[0];
drivers/media/dvb-core/dvb_ca_en50221.c
1572
if ((hdr[0] == connection_id) &&
drivers/media/dvb-core/dvb_ca_en50221.c
1573
((hdr[1] & 0x80) == 0)) {
drivers/media/dvb-core/dvb_ca_en50221.c
1610
u8 hdr[2];
drivers/media/dvb-core/dvb_ca_en50221.c
1657
dvb_ringbuffer_pkt_read(&sl->rx_buffer, idx, 0, hdr, 2);
drivers/media/dvb-core/dvb_ca_en50221.c
1659
connection_id = hdr[0];
drivers/media/dvb-core/dvb_ca_en50221.c
1660
if (hdr[0] == connection_id) {
drivers/media/dvb-core/dvb_ca_en50221.c
1678
if ((hdr[1] & 0x80) == 0)
drivers/media/dvb-core/dvb_ca_en50221.c
1690
hdr[0] = slot;
drivers/media/dvb-core/dvb_ca_en50221.c
1691
hdr[1] = connection_id;
drivers/media/dvb-core/dvb_ca_en50221.c
1692
status = copy_to_user(buf, hdr, 2);
drivers/media/dvb-core/dvb_net.c
188
struct ethhdr *hdr = (struct ethhdr*) p->ule_next_hdr;
drivers/media/dvb-core/dvb_net.c
189
if(ntohs(hdr->h_proto) < ETH_P_802_3_MIN) {
drivers/media/dvb-core/dvb_net.c
192
if(framelen != ntohs(hdr->h_proto)) {
drivers/media/i2c/vgxy61.c
1025
sensor->hdr = index;
drivers/media/i2c/vgxy61.c
1028
return vgxy61_apply_hdr(sensor, sensor->hdr);
drivers/media/i2c/vgxy61.c
1037
ret = vgxy61_apply_hdr(sensor, sensor->hdr);
drivers/media/i2c/vgxy61.c
1233
sensor->hdr);
drivers/media/i2c/vgxy61.c
1275
ret = vgxy61_update_exposure(sensor, ctrl->val, sensor->hdr);
drivers/media/i2c/vgxy61.c
1311
ret = vgxy61_update_vblank(sensor, ctrl->val, sensor->hdr);
drivers/media/i2c/vgxy61.c
1753
sensor->hdr = VGXY61_NO_HDR;
drivers/media/i2c/vgxy61.c
1822
ret = vgxy61_update_hdr(sensor, sensor->hdr);
drivers/media/i2c/vgxy61.c
416
enum vgxy61_hdr_mode hdr;
drivers/media/i2c/vgxy61.c
711
enum vgxy61_hdr_mode hdr)
drivers/media/i2c/vgxy61.c
718
if (hdr != VGXY61_NO_HDR)
drivers/media/i2c/vgxy61.c
815
enum vgxy61_hdr_mode hdr)
drivers/media/i2c/vgxy61.c
820
switch (hdr) {
drivers/media/i2c/vgxy61.c
900
enum vgxy61_hdr_mode hdr)
drivers/media/i2c/vgxy61.c
909
switch (hdr) {
drivers/media/i2c/vgxy61.c
978
enum vgxy61_hdr_mode hdr)
drivers/media/i2c/vgxy61.c
982
sensor->vblank_min = vgxy61_get_vblank_min(sensor, hdr);
drivers/media/i2c/vgxy61.c
988
ret = vgxy61_update_exposure(sensor, sensor->expo_long, hdr);
drivers/media/mmc/siano/smssdio.c
129
struct sms_msg_hdr *hdr;
drivers/media/mmc/siano/smssdio.c
160
hdr = cb->p;
drivers/media/mmc/siano/smssdio.c
162
if (hdr->msg_flags & MSG_HDR_FLAG_SPLIT_MSG) {
drivers/media/mmc/siano/smssdio.c
167
if (hdr->msg_length > smsdev->func->cur_blksize)
drivers/media/mmc/siano/smssdio.c
168
size = hdr->msg_length - smsdev->func->cur_blksize;
drivers/media/mmc/siano/smssdio.c
173
hdr = cb->p;
drivers/media/mmc/siano/smssdio.c
175
size = hdr->msg_length - sizeof(struct sms_msg_hdr);
drivers/media/mmc/siano/smssdio.c
183
buffer = cb->p + (hdr->msg_length - size);
drivers/media/mmc/siano/smssdio.c
229
cb->size = hdr->msg_length;
drivers/media/pci/cx18/cx18-vbi.c
185
} *hdr = (struct vbi_data_hdr *) buf->buf;
drivers/media/pci/cx18/cx18-vbi.c
217
pts = (be32_to_cpu(hdr->magic) == 0x3fffffff) ? be32_to_cpu(hdr->pts)
drivers/media/pci/intel/ipu6/ipu6-cpd.c
322
const struct ipu6_cpd_hdr *hdr = cpd_file;
drivers/media/pci/intel/ipu6/ipu6-cpd.c
334
if (hdr->hdr_mark != CPD_HDR_MARK) {
drivers/media/pci/intel/ipu6/ipu6-cpd.h
68
struct ipu6_cpd_metadata_cmpnt_hdr hdr;
drivers/media/pci/intel/ipu6/ipu6-cpd.h
76
struct ipu6_cpd_metadata_cmpnt_hdr hdr;
drivers/media/pci/intel/ivsc/mei_ace.c
104
struct ace_cmd_hdr hdr;
drivers/media/pci/intel/ivsc/mei_ace.c
158
union ace_notif_hdr hdr;
drivers/media/pci/intel/ivsc/mei_ace.c
185
static inline void init_cmd_hdr(struct ace_cmd_hdr *hdr)
drivers/media/pci/intel/ivsc/mei_ace.c
187
memset(hdr, 0, sizeof(struct ace_cmd_hdr));
drivers/media/pci/intel/ivsc/mei_ace.c
189
hdr->type = ACE_CMD_SET;
drivers/media/pci/intel/ivsc/mei_ace.c
190
hdr->msg_tgt = ACE_DRV_MSG;
drivers/media/pci/intel/ivsc/mei_ace.c
191
hdr->init_block = ACE_CMD_INIT_BLOCK;
drivers/media/pci/intel/ivsc/mei_ace.c
192
hdr->final_block = ACE_CMD_FINAL_BLOCK;
drivers/media/pci/intel/ivsc/mei_ace.c
199
struct ace_cmd_hdr *hdr = &cmd->hdr;
drivers/media/pci/intel/ivsc/mei_ace.c
201
init_cmd_hdr(hdr);
drivers/media/pci/intel/ivsc/mei_ace.c
203
hdr->cmd_id = cmd_id;
drivers/media/pci/intel/ivsc/mei_ace.c
207
hdr->param_size = sizeof(param->uuid);
drivers/media/pci/intel/ivsc/mei_ace.c
211
hdr->firmware_id = ace->firmware_id;
drivers/media/pci/intel/ivsc/mei_ace.c
212
hdr->param_size = sizeof(param->param);
drivers/media/pci/intel/ivsc/mei_ace.c
215
hdr->firmware_id = ace->firmware_id;
drivers/media/pci/intel/ivsc/mei_ace.c
221
return hdr->param_size + sizeof(cmd->hdr);
drivers/media/pci/intel/ivsc/mei_ace.c
228
union ace_notif_hdr *resp_hdr = &ace->cmd_response.hdr;
drivers/media/pci/intel/ivsc/mei_ace.c
229
union ace_notif_hdr *ack_hdr = &ace->cmd_ack.hdr;
drivers/media/pci/intel/ivsc/mei_ace.c
230
struct ace_cmd_hdr *cmd_hdr = &cmd->hdr;
drivers/media/pci/intel/ivsc/mei_ace.c
326
union ace_notif_hdr *hdr = &resp->hdr;
drivers/media/pci/intel/ivsc/mei_ace.c
328
switch (hdr->response.cmd_id) {
drivers/media/pci/intel/ivsc/mei_ace.c
344
union ace_notif_hdr *hdr = &ack->hdr;
drivers/media/pci/intel/ivsc/mei_ace.c
346
switch (hdr->ack.cmd_id) {
drivers/media/pci/intel/ivsc/mei_ace.c
365
union ace_notif_hdr *hdr = &event.hdr;
drivers/media/pci/intel/ivsc/mei_ace.c
374
if (hdr->event.ack) {
drivers/media/pci/intel/ivsc/mei_ace.c
379
switch (hdr->event.event_type) {
drivers/media/pci/ngene/ngene-core.c
1618
com.cmd.hdr.Opcode = CMD_MEM_WRITE;
drivers/media/pci/ngene/ngene-core.c
1619
com.cmd.hdr.Length = 3;
drivers/media/pci/ngene/ngene-core.c
262
if (com->cmd.hdr.Opcode == CMD_FWLOAD_PREPARE) {
drivers/media/pci/ngene/ngene-core.c
271
} else if (com->cmd.hdr.Opcode == CMD_FWLOAD_FINISH) {
drivers/media/pci/ngene/ngene-core.c
305
com->cmd.hdr.Opcode, dev->prev_cmd);
drivers/media/pci/ngene/ngene-core.c
309
if (com->cmd.hdr.Opcode == CMD_FWLOAD_FINISH)
drivers/media/pci/ngene/ngene-core.c
312
dev->prev_cmd = com->cmd.hdr.Opcode;
drivers/media/pci/ngene/ngene-core.c
340
com.cmd.hdr.Opcode = CMD_FWLOAD_PREPARE;
drivers/media/pci/ngene/ngene-core.c
341
com.cmd.hdr.Length = 0;
drivers/media/pci/ngene/ngene-core.c
356
com.cmd.hdr.Opcode = CMD_FWLOAD_FINISH;
drivers/media/pci/ngene/ngene-core.c
357
com.cmd.hdr.Length = 4;
drivers/media/pci/ngene/ngene-core.c
371
com.cmd.hdr.Opcode = CMD_CONFIGURE_BUFFER;
drivers/media/pci/ngene/ngene-core.c
372
com.cmd.hdr.Length = 1;
drivers/media/pci/ngene/ngene-core.c
386
com.cmd.hdr.Opcode = CMD_CONFIGURE_FREE_BUFFER;
drivers/media/pci/ngene/ngene-core.c
387
com.cmd.hdr.Length = 6;
drivers/media/pci/ngene/ngene-core.c
402
com.cmd.hdr.Opcode = CMD_SET_GPIO_PIN;
drivers/media/pci/ngene/ngene-core.c
403
com.cmd.hdr.Length = 1;
drivers/media/pci/ngene/ngene-core.c
552
com.cmd.hdr.Opcode = CMD_CONTROL;
drivers/media/pci/ngene/ngene-core.c
553
com.cmd.hdr.Length = sizeof(struct FW_STREAM_CONTROL) - 2;
drivers/media/pci/ngene/ngene-i2c.c
36
com.cmd.hdr.Opcode = CMD_I2C_READ;
drivers/media/pci/ngene/ngene-i2c.c
37
com.cmd.hdr.Length = outlen + 3;
drivers/media/pci/ngene/ngene-i2c.c
64
com.cmd.hdr.Opcode = CMD_I2C_WRITE;
drivers/media/pci/ngene/ngene-i2c.c
65
com.cmd.hdr.Length = outlen + 1;
drivers/media/pci/ngene/ngene.h
255
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
261
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
266
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
272
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
278
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
284
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
288
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
334
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
358
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
363
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
369
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
374
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
380
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
385
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
390
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
395
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
410
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
422
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
436
struct FW_HEADER hdr;
drivers/media/pci/ngene/ngene.h
447
struct FW_HEADER hdr;
drivers/media/pci/saa7164/saa7164-api.c
1296
dprintk(DBGLVL_API, "default %d\n", hdr->subtype);
drivers/media/pci/saa7164/saa7164-api.c
1299
dprintk(DBGLVL_API, " 1.%x\n", hdr->len);
drivers/media/pci/saa7164/saa7164-api.c
1300
dprintk(DBGLVL_API, " 2.%x\n", hdr->type);
drivers/media/pci/saa7164/saa7164-api.c
1301
dprintk(DBGLVL_API, " 3.%x\n", hdr->subtype);
drivers/media/pci/saa7164/saa7164-api.c
1302
dprintk(DBGLVL_API, " 4.%x\n", hdr->unitid);
drivers/media/pci/saa7164/saa7164-api.c
1304
idx += hdr->len;
drivers/media/pci/saa7164/saa7164-api.c
922
struct tmComResDescrHeader *hdr, *t;
drivers/media/pci/saa7164/saa7164-api.c
943
hdr = (struct tmComResDescrHeader *)(buf + idx);
drivers/media/pci/saa7164/saa7164-api.c
945
if (hdr->type != CS_INTERFACE)
drivers/media/pci/saa7164/saa7164-api.c
949
switch (hdr->subtype) {
drivers/media/pci/saa7164/saa7164-fw.c
195
struct fw_header *hdr, *boothdr = NULL, *fwhdr;
drivers/media/pci/saa7164/saa7164-fw.c
426
hdr = (struct fw_header *)fw->data;
drivers/media/pci/saa7164/saa7164-fw.c
428
printk(KERN_INFO " .FirmwareSize = 0x%x\n", hdr->firmwaresize);
drivers/media/pci/saa7164/saa7164-fw.c
429
printk(KERN_INFO " .BSLSize = 0x%x\n", hdr->bslsize);
drivers/media/pci/saa7164/saa7164-fw.c
430
printk(KERN_INFO " .Reserved = 0x%x\n", hdr->reserved);
drivers/media/pci/saa7164/saa7164-fw.c
431
printk(KERN_INFO " .Version = 0x%x\n", hdr->version);
drivers/media/pci/saa7164/saa7164-fw.c
434
if ((hdr->firmwaresize == 0) && (hdr->bslsize == 0))
drivers/media/pci/saa7164/saa7164-fw.c
436
filesize = hdr->reserved * 16;
drivers/media/pci/saa7164/saa7164-fw.c
438
filesize = (hdr->firmwaresize + hdr->bslsize) *
drivers/media/pci/saa7164/saa7164-fw.c
445
if ((hdr->firmwaresize == 0) && (hdr->bslsize == 0)) {
drivers/media/pci/saa7164/saa7164-fw.c
492
fwhdr = hdr;
drivers/media/pci/saa7164/saa7164-fw.c
508
if ((hdr->firmwaresize == 0) && (hdr->bslsize == 0)) {
drivers/media/platform/amphion/vdec.c
1317
static void vdec_update_v4l2_profile_level(struct vpu_inst *inst, struct vpu_dec_codec_info *hdr)
drivers/media/platform/amphion/vdec.c
1323
vpu_get_h264_v4l2_profile(hdr));
drivers/media/platform/amphion/vdec.c
1325
vpu_get_h264_v4l2_level(hdr));
drivers/media/platform/amphion/vdec.c
1329
vpu_get_hevc_v4l2_profile(hdr));
drivers/media/platform/amphion/vdec.c
1331
vpu_get_hevc_v4l2_level(hdr));
drivers/media/platform/amphion/vdec.c
1338
static void vdec_event_seq_hdr(struct vpu_inst *inst, struct vpu_dec_codec_info *hdr)
drivers/media/platform/amphion/vdec.c
1347
hdr->decoded_width,
drivers/media/platform/amphion/vdec.c
1348
hdr->decoded_height,
drivers/media/platform/amphion/vdec.c
1349
hdr->offset_x,
drivers/media/platform/amphion/vdec.c
1350
hdr->offset_y,
drivers/media/platform/amphion/vdec.c
1351
hdr->width,
drivers/media/platform/amphion/vdec.c
1352
hdr->height,
drivers/media/platform/amphion/vdec.c
1353
hdr->num_ref_frms,
drivers/media/platform/amphion/vdec.c
1354
hdr->num_dpb_frms,
drivers/media/platform/amphion/vdec.c
1355
hdr->color_primaries,
drivers/media/platform/amphion/vdec.c
1356
hdr->transfer_chars,
drivers/media/platform/amphion/vdec.c
1357
hdr->matrix_coeffs,
drivers/media/platform/amphion/vdec.c
1358
hdr->full_range);
drivers/media/platform/amphion/vdec.c
1359
inst->min_buffer_cap = hdr->num_ref_frms + hdr->num_dpb_frms;
drivers/media/platform/amphion/vdec.c
1360
vdec->is_source_changed = vdec_check_source_change(inst, hdr);
drivers/media/platform/amphion/vdec.c
1361
memcpy(&vdec->codec_info, hdr, sizeof(vdec->codec_info));
drivers/media/platform/amphion/vdec.c
1366
vdec_update_v4l2_profile_level(inst, hdr);
drivers/media/platform/amphion/vdec.c
951
static bool vdec_check_source_change(struct vpu_inst *inst, struct vpu_dec_codec_info *hdr)
drivers/media/platform/amphion/vdec.c
963
if (sibling && hdr->pixfmt == sibling->pixfmt)
drivers/media/platform/amphion/vdec.c
964
hdr->pixfmt = inst->cap_format.pixfmt;
drivers/media/platform/amphion/vdec.c
968
if (inst->cap_format.pixfmt != hdr->pixfmt)
drivers/media/platform/amphion/vdec.c
970
if (inst->cap_format.width != hdr->decoded_width)
drivers/media/platform/amphion/vdec.c
972
if (inst->cap_format.height != hdr->decoded_height)
drivers/media/platform/amphion/vdec.c
976
if (inst->crop.left != hdr->offset_x)
drivers/media/platform/amphion/vdec.c
978
if (inst->crop.top != hdr->offset_y)
drivers/media/platform/amphion/vdec.c
980
if (inst->crop.width != hdr->width)
drivers/media/platform/amphion/vdec.c
982
if (inst->crop.height != hdr->height)
drivers/media/platform/amphion/vdec.c
984
if (!hdr->progressive)
drivers/media/platform/amphion/vdec.c
988
(hdr->color_primaries != vdec->codec_info.color_primaries ||
drivers/media/platform/amphion/vdec.c
989
hdr->transfer_chars != vdec->codec_info.transfer_chars ||
drivers/media/platform/amphion/vdec.c
990
hdr->matrix_coeffs != vdec->codec_info.matrix_coeffs ||
drivers/media/platform/amphion/vdec.c
991
hdr->full_range != vdec->codec_info.full_range))
drivers/media/platform/amphion/vpu_helpers.c
584
u32 vpu_get_h264_v4l2_profile(struct vpu_dec_codec_info *hdr)
drivers/media/platform/amphion/vpu_helpers.c
586
if (!hdr)
drivers/media/platform/amphion/vpu_helpers.c
594
if (hdr->profile_idc == 66 && hdr->constraint_set1_flag)
drivers/media/platform/amphion/vpu_helpers.c
597
return vpu_find_v4l2_id(hdr->profile_idc, h264_profiles, ARRAY_SIZE(h264_profiles));
drivers/media/platform/amphion/vpu_helpers.c
600
u32 vpu_get_h264_v4l2_level(struct vpu_dec_codec_info *hdr)
drivers/media/platform/amphion/vpu_helpers.c
602
if (!hdr)
drivers/media/platform/amphion/vpu_helpers.c
613
if (hdr->level_idc == 11 && hdr->constraint_set3_flag &&
drivers/media/platform/amphion/vpu_helpers.c
614
(hdr->profile_idc == 66 || hdr->profile_idc == 77 || hdr->profile_idc == 88))
drivers/media/platform/amphion/vpu_helpers.c
617
return vpu_find_v4l2_id(hdr->level_idc, h264_levels, ARRAY_SIZE(h264_levels));
drivers/media/platform/amphion/vpu_helpers.c
620
u32 vpu_get_hevc_v4l2_profile(struct vpu_dec_codec_info *hdr)
drivers/media/platform/amphion/vpu_helpers.c
622
if (!hdr)
drivers/media/platform/amphion/vpu_helpers.c
625
return vpu_find_v4l2_id(hdr->profile_idc, hevc_profiles, ARRAY_SIZE(hevc_profiles));
drivers/media/platform/amphion/vpu_helpers.c
628
u32 vpu_get_hevc_v4l2_level(struct vpu_dec_codec_info *hdr)
drivers/media/platform/amphion/vpu_helpers.c
630
if (!hdr)
drivers/media/platform/amphion/vpu_helpers.c
633
return vpu_find_v4l2_id(hdr->level_idc, hevc_levels, ARRAY_SIZE(hevc_levels));
drivers/media/platform/amphion/vpu_helpers.h
71
u32 vpu_get_h264_v4l2_profile(struct vpu_dec_codec_info *hdr);
drivers/media/platform/amphion/vpu_helpers.h
72
u32 vpu_get_h264_v4l2_level(struct vpu_dec_codec_info *hdr);
drivers/media/platform/amphion/vpu_helpers.h
73
u32 vpu_get_hevc_v4l2_profile(struct vpu_dec_codec_info *hdr);
drivers/media/platform/amphion/vpu_helpers.h
74
u32 vpu_get_hevc_v4l2_level(struct vpu_dec_codec_info *hdr);
drivers/media/platform/amphion/vpu_imx8q.c
198
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/media/platform/amphion/vpu_imx8q.c
210
hdr->ver = IMX_SC_RPC_VERSION;
drivers/media/platform/amphion/vpu_imx8q.c
211
hdr->svc = IMX_SC_RPC_SVC_MISC;
drivers/media/platform/amphion/vpu_imx8q.c
212
hdr->func = IMX_SC_MISC_FUNC_OTP_FUSE_READ;
drivers/media/platform/amphion/vpu_imx8q.c
213
hdr->size = 2;
drivers/media/platform/amphion/vpu_imx8q.c
37
struct imx_sc_rpc_msg hdr;
drivers/media/platform/amphion/vpu_malone.c
1298
u8 hdr[MALONE_PAYLOAD_HEADER_SIZE];
drivers/media/platform/amphion/vpu_malone.c
1301
set_payload_hdr(hdr,
drivers/media/platform/amphion/vpu_malone.c
1309
sizeof(hdr),
drivers/media/platform/amphion/vpu_malone.c
1310
hdr);
drivers/media/platform/amphion/vpu_malone.c
1313
return sizeof(hdr);
drivers/media/platform/amphion/vpu_malone.c
1318
u8 hdr[MALONE_PAYLOAD_HEADER_SIZE];
drivers/media/platform/amphion/vpu_malone.c
1321
set_payload_hdr(hdr,
drivers/media/platform/amphion/vpu_malone.c
1329
sizeof(hdr),
drivers/media/platform/amphion/vpu_malone.c
1330
hdr);
drivers/media/platform/amphion/vpu_malone.c
1333
return sizeof(hdr);
drivers/media/platform/amphion/vpu_malone.c
774
pkt->hdr.num = 7;
drivers/media/platform/amphion/vpu_malone.c
802
pkt->hdr.num = 1;
drivers/media/platform/amphion/vpu_malone.c
811
pkt->hdr.num = 3;
drivers/media/platform/amphion/vpu_malone.c
826
pkt->hdr.id = ret;
drivers/media/platform/amphion/vpu_malone.c
827
pkt->hdr.num = 0;
drivers/media/platform/amphion/vpu_malone.c
828
pkt->hdr.index = index;
drivers/media/platform/amphion/vpu_malone.c
842
pkt->hdr.index = index;
drivers/media/platform/amphion/vpu_malone.c
929
if (pkt->hdr.num > 28)
drivers/media/platform/amphion/vpu_malone.c
996
switch (pkt->hdr.id) {
drivers/media/platform/amphion/vpu_msgs.c
194
if (pkt->hdr.num == ARRAY_SIZE(pkt->data))
drivers/media/platform/amphion/vpu_msgs.c
195
pkt->hdr.num--;
drivers/media/platform/amphion/vpu_msgs.c
196
pkt->data[pkt->hdr.num] = 0;
drivers/media/platform/amphion/vpu_msgs.c
225
ret = vpu_iface_convert_msg_id(inst->core, msg->hdr.id);
drivers/media/platform/amphion/vpu_msgs.c
264
if (pkt->hdr.num > 0) {
drivers/media/platform/amphion/vpu_msgs.c
265
bytes = pkt->hdr.num * sizeof(u32);
drivers/media/platform/amphion/vpu_msgs.c
286
u32 id = pkt->hdr.id;
drivers/media/platform/amphion/vpu_msgs.c
292
bytes = sizeof(pkt->hdr) + pkt->hdr.num * sizeof(u32);
drivers/media/platform/amphion/vpu_msgs.c
308
pkt.hdr.index, pkt.hdr.id, pkt.hdr.num);
drivers/media/platform/amphion/vpu_msgs.c
310
ret = vpu_iface_convert_msg_id(core, pkt.hdr.id);
drivers/media/platform/amphion/vpu_msgs.c
314
inst = vpu_core_find_instance(core, pkt.hdr.index);
drivers/media/platform/amphion/vpu_rpc.c
143
msg->hdr.index = (msgword >> 24) & 0xff;
drivers/media/platform/amphion/vpu_rpc.c
144
msg->hdr.num = (msgword >> 16) & 0xff;
drivers/media/platform/amphion/vpu_rpc.c
145
msg->hdr.id = msgword & 0x3fff;
drivers/media/platform/amphion/vpu_rpc.c
147
if (msg->hdr.num > ARRAY_SIZE(msg->data))
drivers/media/platform/amphion/vpu_rpc.c
150
for (i = 0; i < msg->hdr.num; i++) {
drivers/media/platform/amphion/vpu_rpc.c
64
if (cmd->hdr.num > 0xff || cmd->hdr.num >= ARRAY_SIZE(cmd->data))
drivers/media/platform/amphion/vpu_rpc.c
68
if (space < (((cmd->hdr.num + 1) << 2) + 16))
drivers/media/platform/amphion/vpu_rpc.c
73
*data |= ((cmd->hdr.index & 0xff) << 24);
drivers/media/platform/amphion/vpu_rpc.c
74
*data |= ((cmd->hdr.num & 0xff) << 16);
drivers/media/platform/amphion/vpu_rpc.c
75
*data |= (cmd->hdr.id & 0x3fff);
drivers/media/platform/amphion/vpu_rpc.c
83
for (i = 0; i < cmd->hdr.num; i++) {
drivers/media/platform/amphion/vpu_rpc.h
38
struct vpu_rpc_event_header hdr;
drivers/media/platform/amphion/vpu_windsor.c
690
pkt->hdr.id = ret;
drivers/media/platform/amphion/vpu_windsor.c
691
pkt->hdr.num = 0;
drivers/media/platform/amphion/vpu_windsor.c
692
pkt->hdr.index = index;
drivers/media/platform/amphion/vpu_windsor.c
697
pkt->hdr.num = 2;
drivers/media/platform/amphion/vpu_windsor.c
758
switch (pkt->hdr.id) {
drivers/media/platform/mediatek/mdp3/mdp_sm_mt8195.h
262
struct mdp_hdr_data_8195 hdr;
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1259
reg = CFG_COMP(MT8195, ctx->param, hdr.top);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1263
reg = CFG_COMP(MT8195, ctx->param, hdr.relay);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1277
reg = CFG_COMP(MT8195, ctx->param, hdr.subfrms[index].win_size);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1281
reg = CFG_COMP(MT8195, ctx->param, hdr.subfrms[index].src);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1285
reg = CFG_COMP(MT8195, ctx->param, hdr.subfrms[index].clip_ofst0);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1289
reg = CFG_COMP(MT8195, ctx->param, hdr.subfrms[index].clip_ofst1);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1293
reg = CFG_COMP(MT8195, ctx->param, hdr.subfrms[index].hist_ctrl_0);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1297
reg = CFG_COMP(MT8195, ctx->param, hdr.subfrms[index].hist_ctrl_1);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1301
reg = CFG_COMP(MT8195, ctx->param, hdr.subfrms[index].hdr_top);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
1306
reg = CFG_COMP(MT8195, ctx->param, hdr.subfrms[index].hist_addr);
drivers/media/platform/mediatek/mdp3/mtk-mdp3-regs.h
316
u32 hdr:1;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
28
#define HDR_FLAG(x) (!!((hdr)->flags & V4L2_VP9_FRAME_FLAG_##x))
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
733
struct v4l2_ctrl_vp9_frame *hdr)
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
737
uh->profile = hdr->profile;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
743
uh->bit_depth = hdr->bit_depth;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
746
uh->frame_width = hdr->frame_width_minus_1 + 1;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
747
uh->frame_height = hdr->frame_height_minus_1 + 1;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
750
switch (hdr->reset_frame_context) {
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
777
!!(hdr->ref_frame_sign_bias & (1 << i));
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
779
uh->interpolation_filter = hdr->interpolation_filter;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
782
uh->frame_context_idx = hdr->frame_context_idx;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
785
uh->tile_cols_log2 = hdr->tile_cols_log2;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
786
uh->tile_rows_log2 = hdr->tile_rows_log2;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
788
uh->uncompressed_header_size = hdr->uncompressed_header_size;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
789
uh->header_size_in_bytes = hdr->compressed_header_size;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
794
struct v4l2_ctrl_vp9_frame *hdr)
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
879
struct v4l2_ctrl_vp9_frame *hdr)
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
893
rows_log2 = hdr->tile_rows_log2;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
894
cols_log2 = hdr->tile_cols_log2;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
904
mi_rows = (hdr->frame_height_minus_1 + 1 + 7) >> 3;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
905
mi_cols = (hdr->frame_width_minus_1 + 1 + 7) >> 3;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
932
struct v4l2_ctrl_vp9_frame *hdr)
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
934
pfc->ref_idx[0] = hdr->last_frame_ts;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
935
pfc->ref_idx[1] = hdr->golden_frame_ts;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
936
pfc->ref_idx[2] = hdr->alt_frame_ts;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
942
struct v4l2_ctrl_vp9_frame *hdr;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
953
hdr = hdr_ctrl->p_cur.p;
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
958
vdec_vp9_slice_setup_hdr(instance, uh, hdr);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
959
vdec_vp9_slice_setup_frame_ctx(instance, uh, hdr);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
960
vdec_vp9_slice_setup_loop_filter(uh, &hdr->lf);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
961
vdec_vp9_slice_setup_quantization(uh, &hdr->quant);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
962
vdec_vp9_slice_setup_segmentation(uh, &hdr->seg);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
963
ret = vdec_vp9_slice_setup_tile(vsi, hdr);
drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
969
vdec_vp9_slice_setup_ref_idx(pfc, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
113
packet.shdr.hdr.size = sizeof(struct hfi_session_open_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
114
packet.shdr.hdr.pkt_type = HFI_CMD_SYS_SESSION_INIT;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
126
ret = iris_hfi_queue_cmd_write(inst->core, &packet, packet.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
137
packet->shdr.hdr.size = sizeof(*packet);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
138
packet->shdr.hdr.pkt_type = ptype;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
148
return iris_hfi_queue_cmd_write(inst->core, &packet, packet.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
166
ret = iris_hfi_queue_cmd_write(core, &packet, packet.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
177
ret = iris_hfi_queue_cmd_write(core, &packet, packet.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
205
flush_pkt.shdr.hdr.size = sizeof(struct hfi_session_flush_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
206
flush_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_FLUSH;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
210
ret = iris_hfi_queue_cmd_write(core, &flush_pkt, flush_pkt.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
218
ret = iris_hfi_queue_cmd_write(core, &pkt, pkt.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
225
ret = iris_hfi_queue_cmd_write(core, &pkt, pkt.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
242
ret = iris_hfi_queue_cmd_write(core, &pkt, pkt.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
249
ret = iris_hfi_queue_cmd_write(core, &pkt, pkt.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
271
return iris_hfi_queue_cmd_write(inst->core, &packet, packet.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
280
com_ip_pkt.shdr.hdr.size = sizeof(struct hfi_session_empty_buffer_compressed_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
281
com_ip_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
294
com_ip_pkt.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
296
uncom_ip_pkt.shdr.hdr.size =
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
298
uncom_ip_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
312
uncom_ip_pkt.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
320
op_pkt.shdr.hdr.size = sizeof(struct hfi_session_fill_buffer_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
321
op_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_FILL_BUFFER;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
336
return iris_hfi_queue_cmd_write(inst->core, &op_pkt, op_pkt.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
351
int_pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_BUFFERS;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
357
int_pkt->shdr.hdr.size = packet_size;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
367
ret = iris_hfi_queue_cmd_write(inst->core, int_pkt, int_pkt->shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
37
sys_init_pkt.hdr.size = sizeof(sys_init_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
38
sys_init_pkt.hdr.pkt_type = HFI_CMD_SYS_INIT;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
41
return iris_hfi_queue_cmd_write_locked(core, &sys_init_pkt, sys_init_pkt.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
412
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_RELEASE_BUFFERS;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
426
pkt->shdr.hdr.size = packet_size;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
431
pkt->shdr.hdr.size =
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
439
ret = iris_hfi_queue_cmd_write(inst->core, pkt, pkt->shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
458
ip_pkt.shdr.hdr.size = sizeof(struct hfi_session_empty_buffer_compressed_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
459
ip_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
464
return iris_hfi_queue_cmd_write(inst->core, &ip_pkt, ip_pkt.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
470
ip_pkt.shdr.hdr.size = sizeof(struct hfi_session_empty_buffer_uncompressed_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
471
ip_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
476
return iris_hfi_queue_cmd_write(inst->core, &ip_pkt, ip_pkt.shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
48
packet.hdr.size = sizeof(packet);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
488
packet->shdr.hdr.size = sizeof(*packet);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
489
packet->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
49
packet.hdr.pkt_type = HFI_CMD_SYS_GET_PROPERTY;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
501
packet->shdr.hdr.size += sizeof(u32) + sizeof(*fsize);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
508
packet->shdr.hdr.size += sizeof(u32) + sizeof(*cu);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
517
packet->shdr.hdr.size += sizeof(u32) + sizeof(*hfi);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
53
return iris_hfi_queue_cmd_write_locked(core, &packet, packet.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
536
packet->shdr.hdr.size += sizeof(u32) + sizeof(*info);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
546
packet->shdr.hdr.size += sizeof(u32) + sizeof(*count);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
555
packet->shdr.hdr.size += sizeof(u32) + sizeof(*multi);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
563
packet->shdr.hdr.size += sizeof(u32) + sizeof(*sz);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
571
packet->shdr.hdr.size += sizeof(u32) + sizeof(*wr);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
579
packet->shdr.hdr.size += sizeof(u32) + sizeof(*wm);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
595
packet->shdr.hdr.size += sizeof(u32) + sizeof(*pl);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
603
packet->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
612
packet->shdr.hdr.size += sizeof(u32) + sizeof(*brate);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
631
packet->shdr.hdr.size += sizeof(u32) * 2;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
641
packet->shdr.hdr.size += sizeof(u32) + sizeof(*entropy);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
666
packet->shdr.hdr.size += sizeof(u32) + sizeof(*range);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
675
packet->shdr.hdr.size += sizeof(u32) + sizeof(*frate);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
687
packet->shdr.hdr.size += sizeof(u32) + sizeof(*plane_actual_info);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
70
pkt->hdr.size = packet_size;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
71
pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
717
ret = iris_hfi_queue_cmd_write(inst->core, pkt, pkt->shdr.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
76
ret = iris_hfi_queue_cmd_write_locked(core, pkt, pkt->hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
86
pkt.hdr.size = sizeof(struct hfi_sys_pc_prep_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
87
pkt.hdr.pkt_type = HFI_CMD_SYS_PC_PREP;
drivers/media/platform/qcom/iris/iris_hfi_gen1_command.c
89
return iris_hfi_queue_cmd_write_locked(core, &pkt, pkt.hdr.size);
drivers/media/platform/qcom/iris/iris_hfi_gen1_defines.h
152
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_defines.h
167
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_defines.h
172
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_defines.h
178
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_defines.h
190
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_defines.h
277
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_defines.h
295
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_defines.h
535
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_defines.h
544
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
205
flush_pkt.shdr.hdr.size = sizeof(struct hfi_session_flush_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
206
flush_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_FLUSH;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
209
if (!iris_hfi_queue_cmd_write(inst->core, &flush_pkt, flush_pkt.shdr.hdr.size))
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
298
int req_bytes = pkt->hdr.size - sizeof(*pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
430
flush_pkt.shdr.hdr.size = sizeof(struct hfi_session_flush_pkt);
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
431
flush_pkt.shdr.hdr.pkt_type = HFI_CMD_SESSION_FLUSH;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
434
if (!iris_hfi_queue_cmd_write(core, &flush_pkt, flush_pkt.shdr.hdr.size))
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
598
struct hfi_pkt_hdr *hdr = (struct hfi_pkt_hdr *)response;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
608
if (pkt_info->pkt != hdr->pkt_type)
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
614
if (!found || hdr->size < pkt_info->pkt_sz) {
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
616
hdr->size, pkt_info->pkt_sz, hdr->pkt_type, found);
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
621
switch (hdr->pkt_type) {
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
623
iris_hfi_gen1_sys_init_done(core, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
626
iris_hfi_gen1_sys_property_info(core, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
629
pkt = (struct hfi_session_pkt *)hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
633
iris_hfi_gen1_session_event_notify(inst, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
636
iris_hfi_gen1_sys_event_notify(core, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
641
pkt = (struct hfi_session_pkt *)hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
651
if (hdr->pkt_type == HFI_MSG_SESSION_EMPTY_BUFFER) {
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
652
iris_hfi_gen1_session_etb_done(inst, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
653
} else if (hdr->pkt_type == HFI_MSG_SESSION_FILL_BUFFER) {
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
654
iris_hfi_gen1_session_ftb_done(inst, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
658
shdr = (struct hfi_msg_session_hdr_pkt *)hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen1_response.c
682
if (pkt->hdr.pkt_type != HFI_MSG_SYS_COV) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
26
struct iris_hfi_header *hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
29
hdr = kzalloc(SYS_INIT_PKT_SIZE, GFP_KERNEL);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
30
if (!hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
33
iris_hfi_gen2_packet_sys_init(core, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
34
ret = iris_hfi_queue_cmd_write_locked(core, hdr, hdr->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
36
kfree(hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
43
struct iris_hfi_header *hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
46
hdr = kzalloc(SYS_NO_PAYLOAD_PKT_SIZE, GFP_KERNEL);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
47
if (!hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
50
iris_hfi_gen2_packet_image_version(core, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
51
ret = iris_hfi_queue_cmd_write_locked(core, hdr, hdr->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
53
kfree(hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
60
struct iris_hfi_header *hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
63
hdr = kzalloc(SYS_IFPC_PKT_SIZE, GFP_KERNEL);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
64
if (!hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
67
iris_hfi_gen2_packet_sys_interframe_powercollapse(core, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
68
ret = iris_hfi_queue_cmd_write_locked(core, hdr, hdr->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
70
kfree(hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
77
struct iris_hfi_header *hdr;
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
80
hdr = kzalloc(SYS_NO_PAYLOAD_PKT_SIZE, GFP_KERNEL);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
81
if (!hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
84
iris_hfi_gen2_packet_sys_pc_prep(core, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
85
ret = iris_hfi_queue_cmd_write_locked(core, hdr, hdr->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c
87
kfree(hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
100
static void iris_hfi_gen2_create_packet(struct iris_hfi_header *hdr, u32 pkt_type,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
104
struct iris_hfi_packet *pkt = (struct iris_hfi_packet *)((u8 *)hdr + hdr->size);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
117
hdr->num_packets++;
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
118
hdr->size += pkt->size;
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
121
void iris_hfi_gen2_packet_sys_init(struct iris_core *core, struct iris_hfi_header *hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
125
iris_hfi_gen2_create_header(hdr, 0, core->header_id++);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
128
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
140
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
150
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
160
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
170
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
180
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
190
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
200
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
210
void iris_hfi_gen2_packet_image_version(struct iris_core *core, struct iris_hfi_header *hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
212
iris_hfi_gen2_create_header(hdr, 0, core->header_id++);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
214
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
265
struct iris_hfi_header *hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
269
iris_hfi_gen2_create_header(hdr, 0 /*session_id*/, core->header_id++);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
271
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
281
void iris_hfi_gen2_packet_sys_pc_prep(struct iris_core *core, struct iris_hfi_header *hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
283
iris_hfi_gen2_create_header(hdr, 0 /*session_id*/, core->header_id++);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
285
iris_hfi_gen2_create_packet(hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
89
static void iris_hfi_gen2_create_header(struct iris_hfi_header *hdr,
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
92
memset(hdr, 0, sizeof(*hdr));
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
94
hdr->size = sizeof(*hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
95
hdr->session_id = session_id;
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
96
hdr->header_id = header_id;
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.c
97
hdr->num_packets = 0;
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.h
112
void iris_hfi_gen2_packet_sys_init(struct iris_core *core, struct iris_hfi_header *hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.h
113
void iris_hfi_gen2_packet_image_version(struct iris_core *core, struct iris_hfi_header *hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.h
122
struct iris_hfi_header *hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_packet.h
123
void iris_hfi_gen2_packet_sys_pc_prep(struct iris_core *core, struct iris_hfi_header *hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
172
static int iris_hfi_gen2_validate_hdr_packet(struct iris_core *core, struct iris_hfi_header *hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
179
if (hdr->size < sizeof(*hdr) + sizeof(*packet))
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
182
pkt = (u8 *)((u8 *)hdr + sizeof(*hdr));
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
184
for (i = 0; i < hdr->num_packets; i++) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
779
struct iris_hfi_header *hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
781
u8 *start_pkt = (u8 *)((u8 *)hdr + sizeof(*hdr));
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
794
for (j = 0; j < hdr->num_packets; j++) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
880
struct iris_hfi_header *hdr)
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
882
u8 *pkt = (u8 *)((u8 *)hdr + sizeof(*hdr));
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
900
inst = iris_get_instance(core, hdr->session_id);
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
908
for (i = 0; i < hdr->num_packets; i++) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
919
pkt = (u8 *)((u8 *)hdr + sizeof(*hdr));
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
921
pkt = (u8 *)((u8 *)hdr + sizeof(*hdr));
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
922
for (j = 0; j < hdr->num_packets; j++) {
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
947
struct iris_hfi_header *hdr = (struct iris_hfi_header *)response;
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
950
ret = iris_hfi_gen2_validate_hdr_packet(core, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
954
if (!hdr->session_id)
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
955
return iris_hfi_gen2_handle_system_response(core, hdr);
drivers/media/platform/qcom/iris/iris_hfi_gen2_response.c
957
return iris_hfi_gen2_handle_session_response(core, hdr);
drivers/media/platform/qcom/venus/hfi_cmds.c
100
pkt->hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
101
pkt->hdr.pkt_type = HFI_CMD_SYS_RELEASE_RESOURCE;
drivers/media/platform/qcom/venus/hfi_cmds.c
1010
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*csc);
drivers/media/platform/qcom/venus/hfi_cmds.c
1017
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
1024
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
1031
pkt->shdr.hdr.size += sizeof(u32) * 2;
drivers/media/platform/qcom/venus/hfi_cmds.c
1038
pkt->shdr.hdr.size += sizeof(u32) * 2;
drivers/media/platform/qcom/venus/hfi_cmds.c
1045
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
1052
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hierp);
drivers/media/platform/qcom/venus/hfi_cmds.c
1064
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*info);
drivers/media/platform/qcom/venus/hfi_cmds.c
1106
pkt->shdr.hdr.size = sizeof(struct hfi_session_get_property_pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
1107
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_GET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
1135
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
1136
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
1153
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*multi);
drivers/media/platform/qcom/venus/hfi_cmds.c
1174
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*intra);
drivers/media/platform/qcom/venus/hfi_cmds.c
1199
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
120
pkt->hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
1200
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
121
pkt->hdr.pkt_type = HFI_CMD_SYS_PING;
drivers/media/platform/qcom/venus/hfi_cmds.c
1218
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count);
drivers/media/platform/qcom/venus/hfi_cmds.c
1225
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*wm);
drivers/media/platform/qcom/venus/hfi_cmds.c
1232
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*cu);
drivers/media/platform/qcom/venus/hfi_cmds.c
1239
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hdr10);
drivers/media/platform/qcom/venus/hfi_cmds.c
1250
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*color);
drivers/media/platform/qcom/venus/hfi_cmds.c
1258
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*tm);
drivers/media/platform/qcom/venus/hfi_cmds.c
1282
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*range);
drivers/media/platform/qcom/venus/hfi_cmds.c
129
pkt->hdr.size = struct_size(pkt, data, 1) + sizeof(*hfi);
drivers/media/platform/qcom/venus/hfi_cmds.c
130
pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
1310
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
1311
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
1327
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*info);
drivers/media/platform/qcom/venus/hfi_cmds.c
1334
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*cq);
drivers/media/platform/qcom/venus/hfi_cmds.c
1341
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*wr);
drivers/media/platform/qcom/venus/hfi_cmds.c
147
pkt->hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
148
pkt->hdr.pkt_type = HFI_CMD_SYS_TEST_SSR;
drivers/media/platform/qcom/venus/hfi_cmds.c
156
pkt->hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
157
pkt->hdr.pkt_type = HFI_CMD_SYS_GET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
16
pkt->hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
168
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
169
pkt->shdr.hdr.pkt_type = HFI_CMD_SYS_SESSION_INIT;
drivers/media/platform/qcom/venus/hfi_cmds.c
17
pkt->hdr.pkt_type = HFI_CMD_SYS_INIT;
drivers/media/platform/qcom/venus/hfi_cmds.c
179
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
180
pkt->shdr.hdr.pkt_type = pkt_type;
drivers/media/platform/qcom/venus/hfi_cmds.c
192
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_BUFFERS;
drivers/media/platform/qcom/venus/hfi_cmds.c
203
pkt->shdr.hdr.size = sizeof(*pkt) +
drivers/media/platform/qcom/venus/hfi_cmds.c
212
pkt->shdr.hdr.size = struct_size(pkt, buffer_info,
drivers/media/platform/qcom/venus/hfi_cmds.c
23
pkt->hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
231
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_RELEASE_BUFFERS;
drivers/media/platform/qcom/venus/hfi_cmds.c
24
pkt->hdr.pkt_type = HFI_CMD_SYS_PC_PREP;
drivers/media/platform/qcom/venus/hfi_cmds.c
245
pkt->shdr.hdr.size =
drivers/media/platform/qcom/venus/hfi_cmds.c
253
pkt->shdr.hdr.size =
drivers/media/platform/qcom/venus/hfi_cmds.c
270
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
271
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER;
drivers/media/platform/qcom/venus/hfi_cmds.c
294
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
295
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER;
drivers/media/platform/qcom/venus/hfi_cmds.c
31
pkt->hdr.size = struct_size(pkt, data, 1) + sizeof(*hfi);
drivers/media/platform/qcom/venus/hfi_cmds.c
319
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
32
pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
320
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_FILL_BUFFER;
drivers/media/platform/qcom/venus/hfi_cmds.c
346
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
347
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_PARSE_SEQUENCE_HEADER;
drivers/media/platform/qcom/venus/hfi_cmds.c
361
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
362
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_GET_SEQUENCE_HEADER;
drivers/media/platform/qcom/venus/hfi_cmds.c
382
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
383
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_FLUSH;
drivers/media/platform/qcom/venus/hfi_cmds.c
401
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
402
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_GET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
421
pkt->shdr.hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
422
pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
43
pkt->hdr.size = struct_size(pkt, data, 1) + sizeof(*hfi);
drivers/media/platform/qcom/venus/hfi_cmds.c
433
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*frate);
drivers/media/platform/qcom/venus/hfi_cmds.c
44
pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
442
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hfi);
drivers/media/platform/qcom/venus/hfi_cmds.c
451
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*fsize);
drivers/media/platform/qcom/venus/hfi_cmds.c
458
pkt->shdr.hdr.size += sizeof(u32) * 2;
drivers/media/platform/qcom/venus/hfi_cmds.c
466
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count);
drivers/media/platform/qcom/venus/hfi_cmds.c
474
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*sz);
drivers/media/platform/qcom/venus/hfi_cmds.c
483
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count);
drivers/media/platform/qcom/venus/hfi_cmds.c
491
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*fmt);
drivers/media/platform/qcom/venus/hfi_cmds.c
507
pkt->shdr.hdr.size += sizeof(u32) * 2;
drivers/media/platform/qcom/venus/hfi_cmds.c
514
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
521
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
530
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
54
pkt->hdr.size = struct_size(pkt, data, 2);
drivers/media/platform/qcom/venus/hfi_cmds.c
540
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*multi);
drivers/media/platform/qcom/venus/hfi_cmds.c
549
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count);
drivers/media/platform/qcom/venus/hfi_cmds.c
55
pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
566
pkt->shdr.hdr.size += sizeof(u32) * 2;
drivers/media/platform/qcom/venus/hfi_cmds.c
573
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
580
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
587
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
594
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
598
pkt->shdr.hdr.size += sizeof(u32);
drivers/media/platform/qcom/venus/hfi_cmds.c
609
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*brate);
drivers/media/platform/qcom/venus/hfi_cmds.c
617
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hfi);
drivers/media/platform/qcom/venus/hfi_cmds.c
63
pkt->hdr.size = struct_size(pkt, data, 1) + sizeof(*hfi);
drivers/media/platform/qcom/venus/hfi_cmds.c
633
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*pl);
drivers/media/platform/qcom/venus/hfi_cmds.c
64
pkt->hdr.pkt_type = HFI_CMD_SYS_SET_PROPERTY;
drivers/media/platform/qcom/venus/hfi_cmds.c
642
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hfi);
drivers/media/platform/qcom/venus/hfi_cmds.c
662
pkt->shdr.hdr.size += sizeof(u32) * 2;
drivers/media/platform/qcom/venus/hfi_cmds.c
669
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*res);
drivers/media/platform/qcom/venus/hfi_cmds.c
676
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ext);
drivers/media/platform/qcom/venus/hfi_cmds.c
695
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*db);
drivers/media/platform/qcom/venus/hfi_cmds.c
705
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*quant);
drivers/media/platform/qcom/venus/hfi_cmds.c
73
pkt->hdr.size = sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_cmds.c
731
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*range);
drivers/media/platform/qcom/venus/hfi_cmds.c
74
pkt->hdr.pkt_type = HFI_CMD_SYS_SET_RESOURCE;
drivers/media/platform/qcom/venus/hfi_cmds.c
744
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*perf);
drivers/media/platform/qcom/venus/hfi_cmds.c
752
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*bframes);
drivers/media/platform/qcom/venus/hfi_cmds.c
760
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*intra);
drivers/media/platform/qcom/venus/hfi_cmds.c
767
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*idr);
drivers/media/platform/qcom/venus/hfi_cmds.c
777
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*color);
drivers/media/platform/qcom/venus/hfi_cmds.c
806
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ops);
drivers/media/platform/qcom/venus/hfi_cmds.c
828
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*intra);
drivers/media/platform/qcom/venus/hfi_cmds.c
847
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*multi);
drivers/media/platform/qcom/venus/hfi_cmds.c
854
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
86
pkt->hdr.size += sizeof(*res);
drivers/media/platform/qcom/venus/hfi_cmds.c
863
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*vui);
drivers/media/platform/qcom/venus/hfi_cmds.c
870
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
877
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
885
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*mode);
drivers/media/platform/qcom/venus/hfi_cmds.c
892
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
899
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
906
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
914
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*thres);
drivers/media/platform/qcom/venus/hfi_cmds.c
933
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*mvc);
drivers/media/platform/qcom/venus/hfi_cmds.c
952
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ltr);
drivers/media/platform/qcom/venus/hfi_cmds.c
961
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ltr_use);
drivers/media/platform/qcom/venus/hfi_cmds.c
968
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ltr_mark);
drivers/media/platform/qcom/venus/hfi_cmds.c
975
pkt->shdr.hdr.size += sizeof(u32) * 2;
drivers/media/platform/qcom/venus/hfi_cmds.c
982
pkt->shdr.hdr.size += sizeof(u32) * 2;
drivers/media/platform/qcom/venus/hfi_cmds.c
989
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
drivers/media/platform/qcom/venus/hfi_cmds.c
999
pkt->shdr.hdr.size += sizeof(u32) + sizeof(*quant);
drivers/media/platform/qcom/venus/hfi_cmds.h
249
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_cmds.h
47
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_cmds.h
52
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_cmds.h
56
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_cmds.h
63
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_cmds.h
69
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_cmds.h
75
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_cmds.h
81
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_cmds.h
89
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_helper.h
1294
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_msgs.c
269
rem_bytes = pkt->hdr.size - sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_msgs.c
299
req_bytes = pkt->hdr.size - sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_msgs.c
408
req_bytes = pkt->shdr.hdr.size - sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_msgs.c
429
req_bytes = pkt->shdr.hdr.size - sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_msgs.c
503
rem_bytes = pkt->shdr.hdr.size - sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_msgs.c
59
rem_bytes = pkt->shdr.hdr.size - sizeof(*pkt);
drivers/media/platform/qcom/venus/hfi_msgs.c
807
u32 hfi_process_msg_packet(struct venus_core *core, struct hfi_pkt_hdr *hdr)
drivers/media/platform/qcom/venus/hfi_msgs.c
817
if (handler->pkt != hdr->pkt_type)
drivers/media/platform/qcom/venus/hfi_msgs.c
824
return hdr->pkt_type;
drivers/media/platform/qcom/venus/hfi_msgs.c
826
if (hdr->size && hdr->size < handler->pkt_sz &&
drivers/media/platform/qcom/venus/hfi_msgs.c
827
hdr->size < handler->pkt_sz2) {
drivers/media/platform/qcom/venus/hfi_msgs.c
829
hdr->size, handler->pkt_sz, hdr->pkt_type);
drivers/media/platform/qcom/venus/hfi_msgs.c
831
return hdr->pkt_type;
drivers/media/platform/qcom/venus/hfi_msgs.c
839
pkt = (struct hfi_session_pkt *)hdr;
drivers/media/platform/qcom/venus/hfi_msgs.c
851
if (!inst && hdr->pkt_type != HFI_MSG_EVENT_NOTIFY) {
drivers/media/platform/qcom/venus/hfi_msgs.c
858
handler->done(core, inst, hdr);
drivers/media/platform/qcom/venus/hfi_msgs.c
861
return hdr->pkt_type;
drivers/media/platform/qcom/venus/hfi_msgs.h
105
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_msgs.h
109
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_msgs.h
114
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_msgs.h
254
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_msgs.h
263
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_msgs.h
274
u32 hfi_process_msg_packet(struct venus_core *core, struct hfi_pkt_hdr *hdr);
drivers/media/platform/qcom/venus/hfi_msgs.h
63
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_msgs.h
70
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_msgs.h
75
struct hfi_pkt_hdr hdr;
drivers/media/platform/qcom/venus/hfi_venus.c
996
if (pkt->hdr.pkt_type != HFI_MSG_SYS_COV) {
drivers/media/platform/renesas/vsp1/vsp1_dl.c
773
struct vsp1_dl_header_list *hdr = dl->header->lists;
drivers/media/platform/renesas/vsp1/vsp1_dl.c
783
hdr->num_bytes = dl->body0->num_entries
drivers/media/platform/renesas/vsp1/vsp1_dl.c
788
hdr++;
drivers/media/platform/renesas/vsp1/vsp1_dl.c
790
hdr->addr = dlb->dma;
drivers/media/platform/renesas/vsp1/vsp1_dl.c
791
hdr->num_bytes = dlb->num_entries
drivers/media/platform/ti/vpe/vip.c
82
#define VIP_SET_MMR_ADB_HDR(port, hdr, regs, offset_a) \
drivers/media/platform/ti/vpe/vip.c
83
VPDMA_SET_MMR_ADB_HDR((port)->mmr_adb, vip_mmr_adb, hdr, regs, offset_a)
drivers/media/platform/ti/vpe/vpdma.h
203
#define VPDMA_SET_MMR_ADB_HDR(buf, str, hdr, regs, offset_a) \
drivers/media/platform/ti/vpe/vpdma.h
207
h = MMR_ADB_ADDR(buf, str, hdr); \
drivers/media/platform/ti/vpe/vpe.c
522
#define VPE_SET_MMR_ADB_HDR(ctx, hdr, regs, offset_a) \
drivers/media/platform/ti/vpe/vpe.c
523
VPDMA_SET_MMR_ADB_HDR(ctx->mmr_adb, vpe_mmr_adb, hdr, regs, offset_a)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
135
const struct v4l2_ctrl_vp8_frame *hdr)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
137
const struct v4l2_vp8_segment *seg = &hdr->segment;
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
138
const struct v4l2_vp8_loop_filter *lf = &hdr->lf;
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
177
const struct v4l2_ctrl_vp8_frame *hdr)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
179
const struct v4l2_vp8_quantization *q = &hdr->quant;
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
180
const struct v4l2_vp8_segment *seg = &hdr->segment;
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
232
const struct v4l2_ctrl_vp8_frame *hdr)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
236
u32 first_part_offset = V4L2_VP8_FRAME_IS_KEY_FRAME(hdr) ? 10 : 3;
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
260
hdr->first_part_header_bits + 8;
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
264
mb_size = hdr->first_part_size -
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
292
dct_size_part_size = (hdr->num_dct_parts - 1) * 3;
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
293
dct_part_offset = first_part_offset + hdr->first_part_size;
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
294
for (i = 0; i < hdr->num_dct_parts; i++)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
295
dct_part_total_len += hdr->dct_part_sizes[i];
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
303
hantro_reg_write(vpu, ®, hdr->num_dct_parts - 1);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
311
for (i = 0; i < hdr->num_dct_parts; i++) {
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
321
count += hdr->dct_part_sizes[i];
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
330
const struct v4l2_ctrl_vp8_frame *hdr)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
340
if ((hdr->version & 0x03) != 0)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
370
const struct v4l2_ctrl_vp8_frame *hdr,
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
377
ref = hantro_get_ref(ctx, hdr->last_frame_ts);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
380
hdr->last_frame_ts);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
385
ref = hantro_get_ref(ctx, hdr->golden_frame_ts);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
386
if (!ref && hdr->golden_frame_ts)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
388
hdr->golden_frame_ts);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
391
if (hdr->flags & V4L2_VP8_FRAME_FLAG_SIGN_BIAS_GOLDEN)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
395
ref = hantro_get_ref(ctx, hdr->alt_frame_ts);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
396
if (!ref && hdr->alt_frame_ts)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
398
hdr->alt_frame_ts);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
401
if (hdr->flags & V4L2_VP8_FRAME_FLAG_SIGN_BIAS_ALT)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
407
const struct v4l2_ctrl_vp8_frame *hdr,
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
410
const struct v4l2_vp8_segment *seg = &hdr->segment;
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
434
const struct v4l2_ctrl_vp8_frame *hdr;
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
444
hdr = hantro_get_ctrl(ctx, V4L2_CID_STATELESS_VP8_FRAME);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
445
if (WARN_ON(!hdr))
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
449
if (V4L2_VP8_FRAME_IS_KEY_FRAME(hdr) && ctx->vp8_dec.segment_map.cpu)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
453
hantro_vp8_prob_update(ctx, hdr);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
468
if (!V4L2_VP8_FRAME_IS_KEY_FRAME(hdr))
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
470
if (!(hdr->flags & V4L2_VP8_FRAME_FLAG_MB_NO_SKIP_COEFF))
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
472
if (hdr->lf.level == 0)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
486
reg = G1_REG_DEC_CTRL2_BOOLEAN_RANGE(hdr->coder_state.range)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
487
| G1_REG_DEC_CTRL2_BOOLEAN_VALUE(hdr->coder_state.value);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
491
if (hdr->version != 3)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
493
if (hdr->version & 0x3)
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
497
cfg_lf(ctx, hdr);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
498
cfg_qp(ctx, hdr);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
499
cfg_parts(ctx, hdr);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
500
cfg_tap(ctx, hdr);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
503
cfg_ref(ctx, hdr, vb2_dst);
drivers/media/platform/verisilicon/hantro_g1_vp8_dec.c
504
cfg_buffers(ctx, hdr, vb2_dst);
drivers/media/platform/verisilicon/hantro_hw.h
579
const struct v4l2_ctrl_vp8_frame *hdr);
drivers/media/platform/verisilicon/hantro_vp8.c
50
const struct v4l2_ctrl_vp8_frame *hdr)
drivers/media/platform/verisilicon/hantro_vp8.c
52
const struct v4l2_vp8_entropy *entropy = &hdr->entropy;
drivers/media/platform/verisilicon/hantro_vp8.c
59
dst[0] = hdr->prob_skip_false;
drivers/media/platform/verisilicon/hantro_vp8.c
60
dst[1] = hdr->prob_intra;
drivers/media/platform/verisilicon/hantro_vp8.c
61
dst[2] = hdr->prob_last;
drivers/media/platform/verisilicon/hantro_vp8.c
62
dst[3] = hdr->prob_gf;
drivers/media/platform/verisilicon/hantro_vp8.c
63
dst[4] = hdr->segment.segment_probs[0];
drivers/media/platform/verisilicon/hantro_vp8.c
64
dst[5] = hdr->segment.segment_probs[1];
drivers/media/platform/verisilicon/hantro_vp8.c
65
dst[6] = hdr->segment.segment_probs[2];
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
276
const struct v4l2_ctrl_vp8_frame *hdr)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
278
const struct v4l2_vp8_segment *seg = &hdr->segment;
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
279
const struct v4l2_vp8_loop_filter *lf = &hdr->lf;
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
315
const struct v4l2_ctrl_vp8_frame *hdr)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
317
const struct v4l2_vp8_quantization *q = &hdr->quant;
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
318
const struct v4l2_vp8_segment *seg = &hdr->segment;
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
345
const struct v4l2_ctrl_vp8_frame *hdr)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
349
u32 first_part_offset = V4L2_VP8_FRAME_IS_KEY_FRAME(hdr) ? 10 : 3;
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
372
hdr->first_part_header_bits + 8;
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
376
mb_size = hdr->first_part_size -
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
394
dct_size_part_size = (hdr->num_dct_parts - 1) * 3;
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
395
dct_part_offset = first_part_offset + hdr->first_part_size;
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
396
for (i = 0; i < hdr->num_dct_parts; i++)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
397
dct_part_total_len += hdr->dct_part_sizes[i];
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
403
hdr->num_dct_parts - 1);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
409
for (i = 0; i < hdr->num_dct_parts; i++) {
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
419
count += hdr->dct_part_sizes[i];
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
428
const struct v4l2_ctrl_vp8_frame *hdr)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
433
if ((hdr->version & 0x03) != 0)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
447
const struct v4l2_ctrl_vp8_frame *hdr,
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
453
ref = hantro_get_ref(ctx, hdr->last_frame_ts);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
456
hdr->last_frame_ts);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
461
ref = hantro_get_ref(ctx, hdr->golden_frame_ts);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
462
if (!ref && hdr->golden_frame_ts)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
464
hdr->golden_frame_ts);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
467
if (hdr->flags & V4L2_VP8_FRAME_FLAG_SIGN_BIAS_GOLDEN)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
471
ref = hantro_get_ref(ctx, hdr->alt_frame_ts);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
472
if (!ref && hdr->alt_frame_ts)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
474
hdr->alt_frame_ts);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
477
if (hdr->flags & V4L2_VP8_FRAME_FLAG_SIGN_BIAS_ALT)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
483
const struct v4l2_ctrl_vp8_frame *hdr,
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
486
const struct v4l2_vp8_segment *seg = &hdr->segment;
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
511
const struct v4l2_ctrl_vp8_frame *hdr;
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
521
hdr = hantro_get_ctrl(ctx, V4L2_CID_STATELESS_VP8_FRAME);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
522
if (WARN_ON(!hdr))
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
526
if (V4L2_VP8_FRAME_IS_KEY_FRAME(hdr) && ctx->vp8_dec.segment_map.cpu)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
530
hantro_vp8_prob_update(ctx, hdr);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
543
if (!V4L2_VP8_FRAME_IS_KEY_FRAME(hdr))
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
561
if (!(hdr->flags & V4L2_VP8_FRAME_FLAG_MB_NO_SKIP_COEFF))
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
563
if (hdr->lf.level == 0)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
576
hantro_reg_write(vpu, &vp8_dec_bool_range, hdr->coder_state.range);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
577
hantro_reg_write(vpu, &vp8_dec_bool_value, hdr->coder_state.value);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
580
if (hdr->version != 3)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
582
if (hdr->version & 0x3)
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
586
cfg_lf(ctx, hdr);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
587
cfg_qp(ctx, hdr);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
588
cfg_parts(ctx, hdr);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
589
cfg_tap(ctx, hdr);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
592
cfg_ref(ctx, hdr, vb2_dst);
drivers/media/platform/verisilicon/rockchip_vpu2_hw_vp8_dec.c
593
cfg_buffers(ctx, hdr, vb2_dst);
drivers/media/test-drivers/vicodec/codec-fwht.c
736
s16 hdr = ntohs(*last_rlco);
drivers/media/test-drivers/vicodec/codec-fwht.c
739
(hdr & DUPS_MASK) < DUPS_MASK)
drivers/media/test-drivers/vicodec/codec-fwht.c
740
*last_rlco = htons(hdr + 2);
drivers/media/usb/gspca/kinect.c
383
struct pkt_hdr *hdr = (void *)__data;
drivers/media/usb/gspca/kinect.c
384
uint8_t *data = __data + sizeof(*hdr);
drivers/media/usb/gspca/kinect.c
385
int datalen = len - sizeof(*hdr);
drivers/media/usb/gspca/kinect.c
394
if (hdr->magic[0] != 'R' || hdr->magic[1] != 'B') {
drivers/media/usb/gspca/kinect.c
396
sd->stream_flag, hdr->magic[0], hdr->magic[1]);
drivers/media/usb/gspca/kinect.c
400
if (hdr->flag == sof)
drivers/media/usb/gspca/kinect.c
403
else if (hdr->flag == mof)
drivers/media/usb/gspca/kinect.c
406
else if (hdr->flag == eof)
drivers/media/usb/gspca/stk1135.c
490
struct stk1135_pkt_header *hdr = (void *)data;
drivers/media/usb/gspca/stk1135.c
499
flip = !(le16_to_cpu(hdr->gpio) & (1 << 8));
drivers/media/usb/gspca/stk1135.c
507
if (!(hdr->flags & STK1135_HDR_FRAME_START)) {
drivers/media/usb/gspca/stk1135.c
508
seq = hdr->seq & STK1135_HDR_SEQ_MASK;
drivers/media/usb/gspca/stk1135.c
524
if (hdr->flags & STK1135_HDR_FRAME_START) { /* new frame */
drivers/media/usb/uvc/uvc_isight.c
38
static const u8 hdr[] = {
drivers/media/usb/uvc/uvc_isight.c
52
if ((len >= 14 && memcmp(&data[2], hdr, 12) == 0) ||
drivers/media/usb/uvc/uvc_isight.c
53
(len >= 15 && memcmp(&data[3], hdr, 12) == 0)) {
drivers/media/v4l2-core/v4l2-ctrls-core.c
564
validate_vp9_compressed_hdr(struct v4l2_ctrl_vp9_compressed_hdr *hdr)
drivers/media/v4l2-core/v4l2-ctrls-core.c
566
if (hdr->tx_mode > V4L2_VP9_TX_MODE_SELECT)
drivers/message/fusion/mptbase.c
284
ConfigExtendedPageHeader_t hdr;
drivers/message/fusion/mptbase.c
290
memset(&hdr, 0, sizeof(ConfigExtendedPageHeader_t));
drivers/message/fusion/mptbase.c
292
hdr.PageVersion = MPI_SASIOUNITPAGE0_PAGEVERSION;
drivers/message/fusion/mptbase.c
293
hdr.PageType = MPI_CONFIG_PAGETYPE_EXTENDED;
drivers/message/fusion/mptbase.c
294
hdr.ExtPageType = MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT;
drivers/message/fusion/mptbase.c
295
cfg.cfghdr.ehdr = &hdr;
drivers/message/fusion/mptbase.c
300
if (!hdr.ExtPageLength)
drivers/message/fusion/mptbase.c
303
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4,
drivers/message/fusion/mptbase.c
319
dma_free_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4, buffer,
drivers/message/fusion/mptbase.c
4941
ConfigPageHeader_t hdr;
drivers/message/fusion/mptbase.c
4952
hdr.PageVersion = 0;
drivers/message/fusion/mptbase.c
4953
hdr.PageLength = 0;
drivers/message/fusion/mptbase.c
4954
hdr.PageNumber = 0;
drivers/message/fusion/mptbase.c
4955
hdr.PageType = MPI_CONFIG_PAGETYPE_LAN;
drivers/message/fusion/mptbase.c
4956
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptbase.c
4966
if (hdr.PageLength > 0) {
drivers/message/fusion/mptbase.c
4967
data_sz = hdr.PageLength * 4;
drivers/message/fusion/mptbase.c
4998
hdr.PageVersion = 0;
drivers/message/fusion/mptbase.c
4999
hdr.PageLength = 0;
drivers/message/fusion/mptbase.c
5000
hdr.PageNumber = 1;
drivers/message/fusion/mptbase.c
5001
hdr.PageType = MPI_CONFIG_PAGETYPE_LAN;
drivers/message/fusion/mptbase.c
5002
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptbase.c
5011
if (hdr.PageLength == 0)
drivers/message/fusion/mptbase.c
5014
data_sz = hdr.PageLength * 4;
drivers/message/fusion/mptbase.c
5291
ConfigPageHeader_t hdr;
drivers/message/fusion/mptbase.c
5299
hdr.PageVersion = 0;
drivers/message/fusion/mptbase.c
5300
hdr.PageLength = 0;
drivers/message/fusion/mptbase.c
5301
hdr.PageNumber = 2;
drivers/message/fusion/mptbase.c
5302
hdr.PageType = MPI_CONFIG_PAGETYPE_IO_UNIT;
drivers/message/fusion/mptbase.c
5303
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptbase.c
5313
if (hdr.PageLength == 0)
drivers/message/fusion/mptbase.c
5317
data_sz = hdr.PageLength * 4;
drivers/message/fusion/mptbase.c
533
ioc->name, mr, req_idx, cb_idx, mr->u.hdr.Function));
drivers/message/fusion/mptbase.c
5396
cfg.cfghdr.hdr = &header;
drivers/message/fusion/mptbase.c
5477
cfg.cfghdr.hdr = &header;
drivers/message/fusion/mptbase.c
5590
cfg.cfghdr.hdr = &header;
drivers/message/fusion/mptbase.c
5599
ioc->spi_data.sdp1version = cfg.cfghdr.hdr->PageVersion;
drivers/message/fusion/mptbase.c
5600
ioc->spi_data.sdp1length = cfg.cfghdr.hdr->PageLength;
drivers/message/fusion/mptbase.c
5609
ioc->spi_data.sdp0version = cfg.cfghdr.hdr->PageVersion;
drivers/message/fusion/mptbase.c
5610
ioc->spi_data.sdp0length = cfg.cfghdr.hdr->PageLength;
drivers/message/fusion/mptbase.c
5652
ConfigPageHeader_t hdr;
drivers/message/fusion/mptbase.c
5661
memset(&hdr, 0 , sizeof(ConfigPageHeader_t));
drivers/message/fusion/mptbase.c
5662
hdr.PageType = MPI_CONFIG_PAGETYPE_RAID_VOLUME;
drivers/message/fusion/mptbase.c
5664
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptbase.c
5670
if (!hdr.PageLength)
drivers/message/fusion/mptbase.c
5673
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptbase.c
5720
dma_free_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptbase.c
5740
ConfigPageHeader_t hdr;
drivers/message/fusion/mptbase.c
5746
memset(&hdr, 0 , sizeof(ConfigPageHeader_t));
drivers/message/fusion/mptbase.c
5749
hdr.PageVersion = MPI_RAIDPHYSDISKPAGE0_PAGEVERSION;
drivers/message/fusion/mptbase.c
5750
hdr.PageType = MPI_CONFIG_PAGETYPE_RAID_PHYSDISK;
drivers/message/fusion/mptbase.c
5751
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptbase.c
5760
if (!hdr.PageLength) {
drivers/message/fusion/mptbase.c
5765
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptbase.c
5789
dma_free_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptbase.c
5807
ConfigPageHeader_t hdr;
drivers/message/fusion/mptbase.c
5813
memset(&hdr, 0 , sizeof(ConfigPageHeader_t));
drivers/message/fusion/mptbase.c
5815
hdr.PageVersion = MPI_RAIDPHYSDISKPAGE1_PAGEVERSION;
drivers/message/fusion/mptbase.c
5816
hdr.PageType = MPI_CONFIG_PAGETYPE_RAID_PHYSDISK;
drivers/message/fusion/mptbase.c
5817
hdr.PageNumber = 1;
drivers/message/fusion/mptbase.c
5818
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptbase.c
5827
if (!hdr.PageLength) {
drivers/message/fusion/mptbase.c
5832
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptbase.c
5853
dma_free_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptbase.c
5876
ConfigPageHeader_t hdr;
drivers/message/fusion/mptbase.c
5884
memset(&hdr, 0 , sizeof(ConfigPageHeader_t));
drivers/message/fusion/mptbase.c
5887
hdr.PageVersion = MPI_RAIDPHYSDISKPAGE1_PAGEVERSION;
drivers/message/fusion/mptbase.c
5888
hdr.PageType = MPI_CONFIG_PAGETYPE_RAID_PHYSDISK;
drivers/message/fusion/mptbase.c
5889
hdr.PageNumber = 1;
drivers/message/fusion/mptbase.c
5890
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptbase.c
5899
if (!hdr.PageLength) {
drivers/message/fusion/mptbase.c
5904
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptbase.c
5942
dma_free_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptbase.c
5986
cfg.cfghdr.hdr = &header;
drivers/message/fusion/mptbase.c
6052
cfg.cfghdr.hdr = &header;
drivers/message/fusion/mptbase.c
6105
cfg.cfghdr.hdr = &header;
drivers/message/fusion/mptbase.c
6161
cfg.cfghdr.hdr = &header;
drivers/message/fusion/mptbase.c
6237
ConfigPageHeader_t hdr;
drivers/message/fusion/mptbase.c
6242
memset(&hdr, 0 , sizeof(ConfigPageHeader_t));
drivers/message/fusion/mptbase.c
6244
hdr.PageType = MPI_CONFIG_PAGETYPE_MANUFACTURING;
drivers/message/fusion/mptbase.c
6245
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptbase.c
6253
if (!cfg.cfghdr.hdr->PageLength)
drivers/message/fusion/mptbase.c
6257
pbuf = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptbase.c
6274
dma_free_coherent(&ioc->pcidev->dev, hdr.PageLength * 4, pbuf,
drivers/message/fusion/mptbase.c
634
switch (reply->u.hdr.Function) {
drivers/message/fusion/mptbase.c
6420
pReq->Header.PageVersion = pCfg->cfghdr.hdr->PageVersion;
drivers/message/fusion/mptbase.c
6421
pReq->Header.PageLength = pCfg->cfghdr.hdr->PageLength;
drivers/message/fusion/mptbase.c
6422
pReq->Header.PageNumber = pCfg->cfghdr.hdr->PageNumber;
drivers/message/fusion/mptbase.c
6423
pReq->Header.PageType = (pCfg->cfghdr.hdr->PageType & MPI_CONFIG_PAGETYPE_MASK);
drivers/message/fusion/mptbase.c
6425
if ((pCfg->cfghdr.hdr->PageType & MPI_CONFIG_PAGETYPE_MASK) == MPI_CONFIG_PAGETYPE_EXTENDED) {
drivers/message/fusion/mptbase.c
6446
if ((pCfg->cfghdr.hdr->PageType & MPI_CONFIG_PAGETYPE_MASK) ==
drivers/message/fusion/mptbase.c
6452
flagsLength |= pCfg->cfghdr.hdr->PageLength * 4;
drivers/message/fusion/mptbase.c
6505
pCfg->cfghdr.hdr->PageVersion = pReply->Header.PageVersion;
drivers/message/fusion/mptbase.c
6506
pCfg->cfghdr.hdr->PageLength = pReply->Header.PageLength;
drivers/message/fusion/mptbase.c
6507
pCfg->cfghdr.hdr->PageNumber = pReply->Header.PageNumber;
drivers/message/fusion/mptbase.c
6508
pCfg->cfghdr.hdr->PageType = pReply->Header.PageType;
drivers/message/fusion/mptbase.c
6542
pCfg->cfghdr.hdr->PageNumber, pCfg->action);
drivers/message/fusion/mptbase.c
667
ioc->name, reply->u.hdr.Function);
drivers/message/fusion/mptbase.h
322
MPIHeader_t hdr;
drivers/message/fusion/mptbase.h
892
ConfigPageHeader_t *hdr;
drivers/message/fusion/mptctl.c
1259
if (karg->hdr.maxDataSize != data_size) {
drivers/message/fusion/mptctl.c
1280
if (karg->hdr.port > 1) {
drivers/message/fusion/mptctl.c
1284
port = karg->hdr.port;
drivers/message/fusion/mptctl.c
1385
numBytes = karg.hdr.maxDataSize - sizeof(mpt_ioctl_header);
drivers/message/fusion/mptctl.c
1608
numBytes = karg.hdr.maxDataSize - sizeof(mpt_ioctl_header);
drivers/message/fusion/mptctl.c
1732
MPIHeader_t *hdr;
drivers/message/fusion/mptctl.c
1792
hdr = (MPIHeader_t *) mf;
drivers/message/fusion/mptctl.c
1793
msgContext = le32_to_cpu(hdr->MsgContext);
drivers/message/fusion/mptctl.c
1808
hdr->MsgContext = cpu_to_le32(msgContext);
drivers/message/fusion/mptctl.c
1809
function = hdr->Function;
drivers/message/fusion/mptctl.c
1815
ioc->name, hdr->Function, mf));
drivers/message/fusion/mptctl.c
2072
ioc->name, __FILE__, __LINE__, hdr->Function);
drivers/message/fusion/mptctl.c
211
"(0x%02X), req=%p, reply=%p\n", ioc->name, req->u.hdr.Function,
drivers/message/fusion/mptctl.c
2160
SET_MGMT_MSG_CONTEXT(ioc->ioctl_cmds.msg_context, hdr->MsgContext);
drivers/message/fusion/mptctl.c
2162
if (hdr->Function == MPI_FUNCTION_SCSI_TASK_MGMT) {
drivers/message/fusion/mptctl.c
218
if (ioc->ioctl_cmds.msg_context != req->u.hdr.MsgContext)
drivers/message/fusion/mptctl.c
2328
ConfigPageHeader_t hdr;
drivers/message/fusion/mptctl.c
236
if ((req->u.hdr.Function == MPI_FUNCTION_SCSI_IO_REQUEST) ||
drivers/message/fusion/mptctl.c
237
(req->u.hdr.Function ==
drivers/message/fusion/mptctl.c
2384
hdr.PageVersion = 0;
drivers/message/fusion/mptctl.c
2385
hdr.PageLength = 0;
drivers/message/fusion/mptctl.c
2386
hdr.PageNumber = 0;
drivers/message/fusion/mptctl.c
2387
hdr.PageType = MPI_CONFIG_PAGETYPE_MANUFACTURING;
drivers/message/fusion/mptctl.c
2388
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptctl.c
2397
if (cfg.cfghdr.hdr->PageLength > 0) {
drivers/message/fusion/mptctl.c
2402
hdr.PageLength * 4,
drivers/message/fusion/mptctl.c
2415
hdr.PageLength * 4, pbuf,
drivers/message/fusion/mptctl.c
2565
ConfigPageHeader_t hdr;
drivers/message/fusion/mptctl.c
2575
if (karg.hdr.id >= MPT_MAX_FC_DEVICES)
drivers/message/fusion/mptctl.c
2588
if (ioc->sh->host_no != karg.hdr.host)
drivers/message/fusion/mptctl.c
2597
hdr.PageVersion = ioc->spi_data.sdp0version;
drivers/message/fusion/mptctl.c
2598
hdr.PageLength = data_sz;
drivers/message/fusion/mptctl.c
2599
hdr.PageNumber = 0;
drivers/message/fusion/mptctl.c
2600
hdr.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE;
drivers/message/fusion/mptctl.c
2602
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptctl.c
2608
cfg.pageAddr = (karg.hdr.channel << 8) | karg.hdr.id;
drivers/message/fusion/mptctl.c
2646
hdr.PageVersion = 0;
drivers/message/fusion/mptctl.c
2647
hdr.PageLength = 0;
drivers/message/fusion/mptctl.c
2648
hdr.PageNumber = 3;
drivers/message/fusion/mptctl.c
2649
hdr.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE;
drivers/message/fusion/mptctl.c
265
if (req->u.hdr.Function == MPI_FUNCTION_SCSI_TASK_MGMT) {
drivers/message/fusion/mptctl.c
2651
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptctl.c
2656
if ((mpt_config(ioc, &cfg) == 0) && (cfg.cfghdr.hdr->PageLength > 0)) {
drivers/message/fusion/mptctl.c
2659
data_sz = (int) cfg.cfghdr.hdr->PageLength * 4;
drivers/message/fusion/mptctl.c
2664
cfg.pageAddr = (karg.hdr.channel << 8) | karg.hdr.id;
drivers/message/fusion/mptctl.c
2676
karg.select_timeouts = hd->sel_timeout[karg.hdr.id];
drivers/message/fusion/mptctl.c
2767
iocnumX = karg32.hdr.iocnum & 0xFF;
drivers/message/fusion/mptctl.c
2781
karg.hdr.iocnum = karg32.hdr.iocnum;
drivers/message/fusion/mptctl.c
2782
karg.hdr.port = karg32.hdr.port;
drivers/message/fusion/mptctl.c
466
u8 function = mf->u.hdr.Function;
drivers/message/fusion/mptctl.h
137
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
179
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
197
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
219
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
246
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
257
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
264
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
277
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
283
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
294
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
321
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
340
mpt_ioctl_header hdr;
drivers/message/fusion/mptctl.h
381
hp_header_t hdr;
drivers/message/fusion/mptctl.h
404
hp_header_t hdr;
drivers/message/fusion/mptctl.h
434
hp_header_t hdr;
drivers/message/fusion/mptfc.c
324
ConfigPageHeader_t hdr;
drivers/message/fusion/mptfc.c
354
hdr.PageVersion = 0;
drivers/message/fusion/mptfc.c
355
hdr.PageLength = 0;
drivers/message/fusion/mptfc.c
356
hdr.PageNumber = 0;
drivers/message/fusion/mptfc.c
357
hdr.PageType = MPI_CONFIG_PAGETYPE_FC_DEVICE;
drivers/message/fusion/mptfc.c
358
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptfc.c
368
if (hdr.PageLength <= 0)
drivers/message/fusion/mptfc.c
371
data_sz = hdr.PageLength * 4;
drivers/message/fusion/mptfc.c
771
ConfigPageHeader_t hdr;
drivers/message/fusion/mptfc.c
785
hdr.PageVersion = 0;
drivers/message/fusion/mptfc.c
786
hdr.PageLength = 0;
drivers/message/fusion/mptfc.c
787
hdr.PageNumber = 0;
drivers/message/fusion/mptfc.c
788
hdr.PageType = MPI_CONFIG_PAGETYPE_FC_PORT;
drivers/message/fusion/mptfc.c
789
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptfc.c
799
if (hdr.PageLength == 0)
drivers/message/fusion/mptfc.c
802
data_sz = hdr.PageLength * 4;
drivers/message/fusion/mptfc.c
869
ConfigPageHeader_t hdr;
drivers/message/fusion/mptfc.c
880
hdr.PageVersion = 0;
drivers/message/fusion/mptfc.c
881
hdr.PageLength = 0;
drivers/message/fusion/mptfc.c
882
hdr.PageNumber = 1;
drivers/message/fusion/mptfc.c
883
hdr.PageType = MPI_CONFIG_PAGETYPE_FC_PORT;
drivers/message/fusion/mptfc.c
884
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptfc.c
894
if (hdr.PageLength == 0)
drivers/message/fusion/mptfc.c
897
if (hdr.PageLength*4 != ioc->fc_data.fc_port_page1[portnum].pg_sz)
drivers/message/fusion/mptfc.c
912
ConfigPageHeader_t hdr;
drivers/message/fusion/mptfc.c
923
hdr.PageVersion = 0;
drivers/message/fusion/mptfc.c
924
hdr.PageLength = 0;
drivers/message/fusion/mptfc.c
925
hdr.PageNumber = 1;
drivers/message/fusion/mptfc.c
926
hdr.PageType = MPI_CONFIG_PAGETYPE_FC_PORT;
drivers/message/fusion/mptfc.c
927
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptfc.c
937
if (hdr.PageLength == 0)
drivers/message/fusion/mptfc.c
943
data_sz = hdr.PageLength * 4;
drivers/message/fusion/mptfc.c
956
if (hdr.PageLength * 4 > data_sz) {
drivers/message/fusion/mptlan.c
241
switch (reply->u.hdr.Function) {
drivers/message/fusion/mptsas.c
1373
ConfigExtendedPageHeader_t hdr;
drivers/message/fusion/mptsas.c
1380
memset(&hdr, 0, sizeof(hdr));
drivers/message/fusion/mptsas.c
1381
hdr.PageVersion = MPI_SASENCLOSURE0_PAGEVERSION;
drivers/message/fusion/mptsas.c
1382
hdr.PageNumber = 0;
drivers/message/fusion/mptsas.c
1383
hdr.PageType = MPI_CONFIG_PAGETYPE_EXTENDED;
drivers/message/fusion/mptsas.c
1384
hdr.ExtPageType = MPI_CONFIG_EXTPAGETYPE_ENCLOSURE;
drivers/message/fusion/mptsas.c
1386
cfg.cfghdr.ehdr = &hdr;
drivers/message/fusion/mptsas.c
1396
if (!hdr.ExtPageLength) {
drivers/message/fusion/mptsas.c
1401
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4,
drivers/message/fusion/mptsas.c
1428
dma_free_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4, buffer,
drivers/message/fusion/mptsas.c
2030
ConfigExtendedPageHeader_t hdr;
drivers/message/fusion/mptsas.c
2040
hdr.PageVersion = MPI_SASPHY1_PAGEVERSION;
drivers/message/fusion/mptsas.c
2041
hdr.ExtPageLength = 0;
drivers/message/fusion/mptsas.c
2042
hdr.PageNumber = 1 /* page number 1*/;
drivers/message/fusion/mptsas.c
2043
hdr.Reserved1 = 0;
drivers/message/fusion/mptsas.c
2044
hdr.Reserved2 = 0;
drivers/message/fusion/mptsas.c
2045
hdr.PageType = MPI_CONFIG_PAGETYPE_EXTENDED;
drivers/message/fusion/mptsas.c
2046
hdr.ExtPageType = MPI_CONFIG_EXTPAGETYPE_SAS_PHY;
drivers/message/fusion/mptsas.c
2048
cfg.cfghdr.ehdr = &hdr;
drivers/message/fusion/mptsas.c
2058
if (!hdr.ExtPageLength)
drivers/message/fusion/mptsas.c
2061
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4,
drivers/message/fusion/mptsas.c
2084
dma_free_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4, buffer,
drivers/message/fusion/mptsas.c
2113
MPIHeader_t *hdr;
drivers/message/fusion/mptsas.c
2134
hdr = (MPIHeader_t *) mf;
drivers/message/fusion/mptsas.c
2138
req->MsgContext = hdr->MsgContext;
drivers/message/fusion/mptsas.c
2386
ConfigExtendedPageHeader_t hdr;
drivers/message/fusion/mptsas.c
2392
hdr.PageVersion = MPI_SASIOUNITPAGE0_PAGEVERSION;
drivers/message/fusion/mptsas.c
2393
hdr.ExtPageLength = 0;
drivers/message/fusion/mptsas.c
2394
hdr.PageNumber = 0;
drivers/message/fusion/mptsas.c
2395
hdr.Reserved1 = 0;
drivers/message/fusion/mptsas.c
2396
hdr.Reserved2 = 0;
drivers/message/fusion/mptsas.c
2397
hdr.PageType = MPI_CONFIG_PAGETYPE_EXTENDED;
drivers/message/fusion/mptsas.c
2398
hdr.ExtPageType = MPI_CONFIG_EXTPAGETYPE_SAS_IO_UNIT;
drivers/message/fusion/mptsas.c
2400
cfg.cfghdr.ehdr = &hdr;
drivers/message/fusion/mptsas.c
2410
if (!hdr.ExtPageLength) {
drivers/message/fusion/mptsas.c
2415
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4,
drivers/message/fusion/mptsas.c
2455
dma_free_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4, buffer,
drivers/message/fusion/mptsas.c
2464
ConfigExtendedPageHeader_t hdr;
drivers/message/fusion/mptsas.c
2471
memset(&hdr, 0, sizeof(ConfigExtendedPageHeader_t));
drivers/message/fusion/mptsas.c
2474
cfg.cfghdr.ehdr = &hdr;
drivers/message/fusion/mptsas.c
2485
if (!hdr.ExtPageLength) {
drivers/message/fusion/mptsas.c
2490
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4,
drivers/message/fusion/mptsas.c
2512
dma_free_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4, buffer,
drivers/message/fusion/mptsas.c
2522
ConfigExtendedPageHeader_t hdr;
drivers/message/fusion/mptsas.c
2528
hdr.PageVersion = MPI_SASPHY0_PAGEVERSION;
drivers/message/fusion/mptsas.c
2529
hdr.ExtPageLength = 0;
drivers/message/fusion/mptsas.c
2530
hdr.PageNumber = 0;
drivers/message/fusion/mptsas.c
2531
hdr.Reserved1 = 0;
drivers/message/fusion/mptsas.c
2532
hdr.Reserved2 = 0;
drivers/message/fusion/mptsas.c
2533
hdr.PageType = MPI_CONFIG_PAGETYPE_EXTENDED;
drivers/message/fusion/mptsas.c
2534
hdr.ExtPageType = MPI_CONFIG_EXTPAGETYPE_SAS_PHY;
drivers/message/fusion/mptsas.c
2536
cfg.cfghdr.ehdr = &hdr;
drivers/message/fusion/mptsas.c
2549
if (!hdr.ExtPageLength) {
drivers/message/fusion/mptsas.c
2554
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4,
drivers/message/fusion/mptsas.c
2576
dma_free_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4, buffer,
drivers/message/fusion/mptsas.c
2586
ConfigExtendedPageHeader_t hdr;
drivers/message/fusion/mptsas.c
2593
hdr.PageVersion = MPI_SASDEVICE0_PAGEVERSION;
drivers/message/fusion/mptsas.c
2594
hdr.ExtPageLength = 0;
drivers/message/fusion/mptsas.c
2595
hdr.PageNumber = 0;
drivers/message/fusion/mptsas.c
2596
hdr.Reserved1 = 0;
drivers/message/fusion/mptsas.c
2597
hdr.Reserved2 = 0;
drivers/message/fusion/mptsas.c
2598
hdr.PageType = MPI_CONFIG_PAGETYPE_EXTENDED;
drivers/message/fusion/mptsas.c
2599
hdr.ExtPageType = MPI_CONFIG_EXTPAGETYPE_SAS_DEVICE;
drivers/message/fusion/mptsas.c
2601
cfg.cfghdr.ehdr = &hdr;
drivers/message/fusion/mptsas.c
2612
if (!hdr.ExtPageLength) {
drivers/message/fusion/mptsas.c
2617
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4,
drivers/message/fusion/mptsas.c
2657
dma_free_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4, buffer,
drivers/message/fusion/mptsas.c
2667
ConfigExtendedPageHeader_t hdr;
drivers/message/fusion/mptsas.c
2675
hdr.PageVersion = MPI_SASEXPANDER0_PAGEVERSION;
drivers/message/fusion/mptsas.c
2676
hdr.ExtPageLength = 0;
drivers/message/fusion/mptsas.c
2677
hdr.PageNumber = 0;
drivers/message/fusion/mptsas.c
2678
hdr.Reserved1 = 0;
drivers/message/fusion/mptsas.c
2679
hdr.Reserved2 = 0;
drivers/message/fusion/mptsas.c
2680
hdr.PageType = MPI_CONFIG_PAGETYPE_EXTENDED;
drivers/message/fusion/mptsas.c
2681
hdr.ExtPageType = MPI_CONFIG_EXTPAGETYPE_SAS_EXPANDER;
drivers/message/fusion/mptsas.c
2683
cfg.cfghdr.ehdr = &hdr;
drivers/message/fusion/mptsas.c
2695
if (!hdr.ExtPageLength) {
drivers/message/fusion/mptsas.c
2700
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4,
drivers/message/fusion/mptsas.c
2740
dma_free_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4, buffer,
drivers/message/fusion/mptsas.c
2750
ConfigExtendedPageHeader_t hdr;
drivers/message/fusion/mptsas.c
2756
hdr.PageVersion = MPI_SASEXPANDER1_PAGEVERSION;
drivers/message/fusion/mptsas.c
2757
hdr.ExtPageLength = 0;
drivers/message/fusion/mptsas.c
2758
hdr.PageNumber = 1;
drivers/message/fusion/mptsas.c
2759
hdr.Reserved1 = 0;
drivers/message/fusion/mptsas.c
2760
hdr.Reserved2 = 0;
drivers/message/fusion/mptsas.c
2761
hdr.PageType = MPI_CONFIG_PAGETYPE_EXTENDED;
drivers/message/fusion/mptsas.c
2762
hdr.ExtPageType = MPI_CONFIG_EXTPAGETYPE_SAS_EXPANDER;
drivers/message/fusion/mptsas.c
2764
cfg.cfghdr.ehdr = &hdr;
drivers/message/fusion/mptsas.c
2775
if (!hdr.ExtPageLength) {
drivers/message/fusion/mptsas.c
2780
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4,
drivers/message/fusion/mptsas.c
2813
dma_free_coherent(&ioc->pcidev->dev, hdr.ExtPageLength * 4, buffer,
drivers/message/fusion/mptsas.c
4248
ConfigPageHeader_t hdr;
drivers/message/fusion/mptsas.c
4257
memset(&hdr, 0 , sizeof(ConfigPageHeader_t));
drivers/message/fusion/mptsas.c
4258
hdr.PageType = MPI_CONFIG_PAGETYPE_RAID_VOLUME;
drivers/message/fusion/mptsas.c
4260
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptsas.c
4267
if (!hdr.PageLength)
drivers/message/fusion/mptsas.c
4270
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptsas.c
4317
dma_free_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptsas.c
683
ConfigPageHeader_t hdr;
drivers/message/fusion/mptsas.c
691
memset(&hdr, 0 , sizeof(ConfigPageHeader_t));
drivers/message/fusion/mptsas.c
692
hdr.PageType = MPI_CONFIG_PAGETYPE_RAID_VOLUME;
drivers/message/fusion/mptsas.c
695
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptsas.c
702
if (!hdr.PageLength)
drivers/message/fusion/mptsas.c
705
buffer = dma_alloc_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptsas.c
772
dma_free_coherent(&ioc->pcidev->dev, hdr.PageLength * 4,
drivers/message/fusion/mptscsih.c
2634
cmd = reply->u.hdr.Function;
drivers/message/fusion/mptscsih.c
611
MPIHeader_t *hdr = (MPIHeader_t *)mf;
drivers/message/fusion/mptscsih.c
617
if (hdr->Function == MPI_FUNCTION_SCSI_IO_REQUEST)
drivers/message/fusion/mptspi.c
523
struct _CONFIG_PAGE_HEADER hdr;
drivers/message/fusion/mptspi.c
545
memset(&hdr, 0, sizeof(hdr));
drivers/message/fusion/mptspi.c
547
hdr.PageVersion = ioc->spi_data.sdp0version;
drivers/message/fusion/mptspi.c
548
hdr.PageLength = ioc->spi_data.sdp0length;
drivers/message/fusion/mptspi.c
549
hdr.PageNumber = 0;
drivers/message/fusion/mptspi.c
550
hdr.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE;
drivers/message/fusion/mptspi.c
554
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptspi.c
861
struct _CONFIG_PAGE_HEADER hdr;
drivers/message/fusion/mptspi.c
882
memset(&hdr, 0, sizeof(hdr));
drivers/message/fusion/mptspi.c
884
hdr.PageVersion = ioc->spi_data.sdp1version;
drivers/message/fusion/mptspi.c
885
hdr.PageLength = ioc->spi_data.sdp1length;
drivers/message/fusion/mptspi.c
886
hdr.PageNumber = 1;
drivers/message/fusion/mptspi.c
887
hdr.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE;
drivers/message/fusion/mptspi.c
891
cfg.cfghdr.hdr = &hdr;
drivers/message/fusion/mptspi.c
899
pg1->Header.PageVersion = hdr.PageVersion;
drivers/message/fusion/mptspi.c
900
pg1->Header.PageLength = hdr.PageLength;
drivers/message/fusion/mptspi.c
901
pg1->Header.PageNumber = hdr.PageNumber;
drivers/message/fusion/mptspi.c
902
pg1->Header.PageType = hdr.PageType;
drivers/mfd/cs42l43.c
675
const struct cs42l43_patch_header *hdr;
drivers/mfd/cs42l43.c
685
hdr = (const struct cs42l43_patch_header *)&firmware->data[0];
drivers/mfd/cs42l43.c
686
loadaddr = le32_to_cpu(hdr->load_addr);
drivers/mfd/cs42l43.c
688
if (le16_to_cpu(hdr->version) != CS42L43_MCU_UPDATE_FORMAT) {
drivers/mfd/cs42l43.c
689
dev_err(cs42l43->dev, "Bad firmware file format: %d\n", hdr->version);
drivers/mfd/dln2.c
237
struct dln2_header *hdr = urb->transfer_buffer;
drivers/mfd/dln2.c
265
handle = le16_to_cpu(hdr->handle);
drivers/mfd/dln2.c
266
id = le16_to_cpu(hdr->id);
drivers/mfd/dln2.c
267
echo = le16_to_cpu(hdr->echo);
drivers/mfd/dln2.c
268
size = le16_to_cpu(hdr->size);
drivers/mfd/dln2.c
307
struct dln2_header *hdr;
drivers/mfd/dln2.c
309
len = *obuf_len + sizeof(*hdr);
drivers/mfd/dln2.c
31
struct dln2_header hdr;
drivers/mfd/dln2.c
314
hdr = (struct dln2_header *)buf;
drivers/mfd/dln2.c
315
hdr->id = cpu_to_le16(cmd);
drivers/mfd/dln2.c
316
hdr->size = cpu_to_le16(len);
drivers/mfd/dln2.c
317
hdr->echo = cpu_to_le16(echo);
drivers/mfd/dln2.c
318
hdr->handle = cpu_to_le16(handle);
drivers/mfd/dln2.c
320
memcpy(buf + sizeof(*hdr), obuf, *obuf_len);
drivers/mfd/dln2.c
479
size = le16_to_cpu(rsp->hdr.size);
drivers/misc/mei/bus-fixup.c
122
req->hdr.group_id = MKHI_FWCAPS_GROUP_ID;
drivers/misc/mei/bus-fixup.c
123
req->hdr.command = MKHI_FWCAPS_SET_OS_VER_APP_RULE_CMD;
drivers/misc/mei/bus-fixup.c
150
req.hdr.group_id = MKHI_GEN_GROUP_ID;
drivers/misc/mei/bus-fixup.c
151
req.hdr.command = MKHI_GEN_GET_FW_VERSION_CMD;
drivers/misc/mei/bus-fixup.c
201
req.hdr.group_id = MKHI_GROUP_ID_GFX;
drivers/misc/mei/bus-fixup.c
202
req.hdr.command = MKHI_GFX_MEMORY_READY_CMD_REQ;
drivers/misc/mei/bus.c
968
ext_hdr->hdr.type = MEI_EXT_HDR_GSC;
drivers/misc/mei/bus.c
969
ext_hdr->hdr.length = buf_sz / sizeof(u32); /* length is in dw */
drivers/misc/mei/client.c
1713
vtag_hdr->hdr.type = MEI_EXT_HDR_VTAG;
drivers/misc/mei/client.c
1714
vtag_hdr->hdr.length = mei_data2slots(sizeof(*vtag_hdr));
drivers/misc/mei/client.c
1717
return vtag_hdr->hdr.length;
drivers/misc/mei/hbm.c
101
return mei_write_message(dev, hdr, sizeof(*hdr), data, hdr->length);
drivers/misc/mei/hbm.c
1248
int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr)
drivers/misc/mei/hbm.c
1265
BUG_ON(hdr->length >= sizeof(dev->rd_msg_buf));
drivers/misc/mei/hbm.c
1266
mei_read_slots(dev, dev->rd_msg_buf, hdr->length);
drivers/misc/mei/hbm.c
98
struct mei_msg_hdr *hdr,
drivers/misc/mei/hbm.h
40
int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr);
drivers/misc/mei/hw-me.c
598
const void *hdr, size_t hdr_len,
drivers/misc/mei/hw-me.c
607
if (WARN_ON(!hdr || hdr_len & 0x3))
drivers/misc/mei/hw-me.c
615
dev_dbg(&dev->dev, MEI_HDR_FMT, MEI_HDR_PRM((struct mei_msg_hdr *)hdr));
drivers/misc/mei/hw-me.c
627
reg_buf = hdr;
drivers/misc/mei/hw-txe.c
698
const void *hdr, size_t hdr_len,
drivers/misc/mei/hw-txe.c
708
if (WARN_ON(!hdr || !data || hdr_len & 0x3))
drivers/misc/mei/hw-txe.c
711
dev_dbg(&dev->dev, MEI_HDR_FMT, MEI_HDR_PRM((struct mei_msg_hdr *)hdr));
drivers/misc/mei/hw-txe.c
731
reg_buf = hdr;
drivers/misc/mei/hw.h
280
struct mei_ext_hdr hdr;
drivers/misc/mei/hw.h
341
struct mei_ext_hdr hdr;
drivers/misc/mei/hw.h
361
struct mei_ext_hdr hdr;
drivers/misc/mei/interrupt.c
172
u32 ext_hdr_len = mei_ext_hdr_len(&gsc_f2h->hdr);
drivers/misc/mei/interrupt.c
66
static void mei_irq_discard_msg(struct mei_device *dev, struct mei_msg_hdr *hdr,
drivers/misc/mei/interrupt.c
69
if (hdr->dma_ring) {
drivers/misc/mei/interrupt.c
71
hdr->extension[dev->rd_msg_hdr_count - 2]);
drivers/misc/mei/interrupt.c
80
MEI_HDR_PRM(hdr));
drivers/misc/mei/mei_dev.h
386
const void *hdr, size_t hdr_len,
drivers/misc/mei/mei_dev.h
817
const void *hdr, size_t hdr_len,
drivers/misc/mei/mei_dev.h
820
return dev->ops->write(dev, hdr, hdr_len, data, data_len);
drivers/misc/mei/mei_dev.h
868
#define MEI_HDR_PRM(hdr) \
drivers/misc/mei/mei_dev.h
869
(hdr)->host_addr, (hdr)->me_addr, \
drivers/misc/mei/mei_dev.h
870
(hdr)->length, (hdr)->dma_ring, (hdr)->extended, \
drivers/misc/mei/mei_dev.h
871
(hdr)->internal, (hdr)->msg_complete
drivers/misc/mei/mkhi.h
46
struct mkhi_msg_hdr hdr;
drivers/misc/mei/mkhi.h
51
struct mkhi_msg_hdr hdr;
drivers/misc/mei/platform-vsc.c
182
const void *hdr, size_t hdr_len,
drivers/misc/mei/platform-vsc.c
189
if (WARN_ON(!hdr || !IS_ALIGNED(hdr_len, 4)))
drivers/misc/mei/platform-vsc.c
197
memcpy(buf, hdr, hdr_len);
drivers/misc/mei/platform-vsc.c
231
struct mei_msg_hdr *hdr;
drivers/misc/mei/platform-vsc.c
233
hdr = (struct mei_msg_hdr *)&hw->rx_hdr;
drivers/misc/mei/platform-vsc.c
234
if (len != hdr->length || hdr->length + sizeof(*hdr) != hw->rx_len)
drivers/misc/mei/platform-vsc.c
237
memcpy(buf, hw->rx_buf + sizeof(*hdr), len);
drivers/misc/mei/vsc-tp.c
290
pkt->hdr.sync = VSC_TP_PACKET_SYNC;
drivers/misc/mei/vsc-tp.c
291
pkt->hdr.cmd = cmd;
drivers/misc/mei/vsc-tp.c
292
pkt->hdr.len = cpu_to_le16(olen);
drivers/misc/mei/vsc-tp.c
293
pkt->hdr.seq = cpu_to_le32(++tp->seq);
drivers/misc/mei/vsc-tp.c
40
(sizeof(struct vsc_tp_packet_hdr) + le16_to_cpu((pkt)->hdr.len) + VSC_TP_CRC_SIZE)
drivers/misc/mei/vsc-tp.c
56
struct vsc_tp_packet_hdr hdr;
drivers/misc/sgi-gru/grukdump.c
111
struct gru_dump_context_header hdr;
drivers/misc/sgi-gru/grukdump.c
118
memset(&hdr, 0, sizeof(hdr));
drivers/misc/sgi-gru/grukdump.c
128
ubuf += sizeof(hdr);
drivers/misc/sgi-gru/grukdump.c
137
bytes = sizeof(hdr) + GRU_CACHE_LINE_BYTES;
drivers/misc/sgi-gru/grukdump.c
142
hdr.pid = gts->ts_tgid_owner;
drivers/misc/sgi-gru/grukdump.c
143
hdr.vaddr = gts->ts_vma->vm_start;
drivers/misc/sgi-gru/grukdump.c
163
hdr.magic = GRU_DUMP_MAGIC;
drivers/misc/sgi-gru/grukdump.c
164
hdr.gid = gru->gs_gid;
drivers/misc/sgi-gru/grukdump.c
165
hdr.ctxnum = ctxnum;
drivers/misc/sgi-gru/grukdump.c
166
hdr.cbrcnt = cbrcnt;
drivers/misc/sgi-gru/grukdump.c
167
hdr.dsrcnt = dsrcnt;
drivers/misc/sgi-gru/grukdump.c
168
hdr.cch_locked = cch_locked;
drivers/misc/sgi-gru/grukdump.c
169
if (copy_to_user(uhdr, &hdr, sizeof(hdr)))
drivers/misc/sgi-xp/xpc.h
164
struct xpc_activate_mq_msghdr_uv hdr;
drivers/misc/sgi-xp/xpc.h
168
struct xpc_activate_mq_msghdr_uv hdr;
drivers/misc/sgi-xp/xpc.h
175
struct xpc_activate_mq_msghdr_uv hdr;
drivers/misc/sgi-xp/xpc.h
180
struct xpc_activate_mq_msghdr_uv hdr;
drivers/misc/sgi-xp/xpc.h
186
struct xpc_activate_mq_msghdr_uv hdr;
drivers/misc/sgi-xp/xpc.h
191
struct xpc_activate_mq_msghdr_uv hdr;
drivers/misc/sgi-xp/xpc.h
198
struct xpc_activate_mq_msghdr_uv hdr;
drivers/misc/sgi-xp/xpc.h
206
struct xpc_activate_mq_msghdr_uv hdr;
drivers/misc/sgi-xp/xpc.h
277
struct xpc_notify_mq_msghdr_uv hdr;
drivers/misc/sgi-xp/xpc_uv.c
1052
msg_slot->hdr.msg_slot_number = entry;
drivers/misc/sgi-xp/xpc_uv.c
1307
int entry = msg->hdr.msg_slot_number % ch->local_nentries;
drivers/misc/sgi-xp/xpc_uv.c
1311
BUG_ON(msg_slot->msg_slot_number != msg->hdr.msg_slot_number);
drivers/misc/sgi-xp/xpc_uv.c
1329
int ch_number = msg->hdr.ch_number;
drivers/misc/sgi-xp/xpc_uv.c
1357
if (msg->hdr.size == 0) {
drivers/misc/sgi-xp/xpc_uv.c
1367
(msg->hdr.msg_slot_number % ch->remote_nentries) * ch->entry_size;
drivers/misc/sgi-xp/xpc_uv.c
1369
BUG_ON(msg_slot->hdr.size != 0);
drivers/misc/sgi-xp/xpc_uv.c
1371
memcpy(msg_slot, msg, msg->hdr.size);
drivers/misc/sgi-xp/xpc_uv.c
1373
xpc_put_fifo_entry_uv(&ch_uv->recv_msg_list, &msg_slot->hdr.u.next);
drivers/misc/sgi-xp/xpc_uv.c
1399
partid = msg->hdr.partid;
drivers/misc/sgi-xp/xpc_uv.c
1490
msg->hdr.partid = xp_partition_id;
drivers/misc/sgi-xp/xpc_uv.c
1491
msg->hdr.ch_number = ch->number;
drivers/misc/sgi-xp/xpc_uv.c
1492
msg->hdr.size = msg_size;
drivers/misc/sgi-xp/xpc_uv.c
1493
msg->hdr.msg_slot_number = msg_slot->msg_slot_number;
drivers/misc/sgi-xp/xpc_uv.c
1568
hdr.u.next);
drivers/misc/sgi-xp/xpc_uv.c
1585
msg->hdr.partid = xp_partition_id;
drivers/misc/sgi-xp/xpc_uv.c
1586
msg->hdr.size = 0; /* size of zero indicates this is an ACK */
drivers/misc/sgi-xp/xpc_uv.c
376
xpc_activate_mq_msg_activate_req_uv, hdr);
drivers/misc/sgi-xp/xpc_uv.c
403
xpc_activate_mq_msg_deactivate_req_uv, hdr);
drivers/misc/sgi-xp/xpc_uv.c
423
hdr);
drivers/misc/sgi-xp/xpc_uv.c
442
hdr);
drivers/misc/sgi-xp/xpc_uv.c
459
hdr);
drivers/misc/sgi-xp/xpc_uv.c
478
xpc_activate_mq_msg_chctl_openreply_uv, hdr);
drivers/misc/sgi-xp/xpc_uv.c
498
xpc_activate_mq_msg_chctl_opencomplete_uv, hdr);
drivers/misc/vmw_vmci/vmci_context.c
250
ev.msg.hdr.dst = vmci_handle_arr_get_entry(subscriber_array, i);
drivers/misc/vmw_vmci/vmci_context.c
251
ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID,
drivers/misc/vmw_vmci/vmci_context.c
253
ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr);
drivers/misc/vmw_vmci/vmci_context.c
254
memset((char*)&ev + sizeof(ev.msg.hdr), 0,
drivers/misc/vmw_vmci/vmci_context.c
255
ev.msg.hdr.payload_size);
drivers/misc/vmw_vmci/vmci_context.c
260
&ev.msg.hdr, false);
drivers/misc/vmw_vmci/vmci_context.c
264
ev.msg.hdr.dst.context);
drivers/misc/vmw_vmci/vmci_doorbell.c
233
link_msg.hdr.dst = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID,
drivers/misc/vmw_vmci/vmci_doorbell.c
235
link_msg.hdr.src = VMCI_ANON_SRC_HANDLE;
drivers/misc/vmw_vmci/vmci_doorbell.c
236
link_msg.hdr.payload_size = sizeof(link_msg) - VMCI_DG_HEADERSIZE;
drivers/misc/vmw_vmci/vmci_doorbell.c
240
return vmci_send_datagram(&link_msg.hdr);
drivers/misc/vmw_vmci/vmci_doorbell.c
251
unlink_msg.hdr.dst = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID,
drivers/misc/vmw_vmci/vmci_doorbell.c
253
unlink_msg.hdr.src = VMCI_ANON_SRC_HANDLE;
drivers/misc/vmw_vmci/vmci_doorbell.c
254
unlink_msg.hdr.payload_size = sizeof(unlink_msg) - VMCI_DG_HEADERSIZE;
drivers/misc/vmw_vmci/vmci_doorbell.c
257
return vmci_send_datagram(&unlink_msg.hdr);
drivers/misc/vmw_vmci/vmci_doorbell.c
314
bitmap_set_msg.hdr.dst = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID,
drivers/misc/vmw_vmci/vmci_doorbell.c
316
bitmap_set_msg.hdr.src = VMCI_ANON_SRC_HANDLE;
drivers/misc/vmw_vmci/vmci_doorbell.c
317
bitmap_set_msg.hdr.payload_size = sizeof(bitmap_set_msg) -
drivers/misc/vmw_vmci/vmci_doorbell.c
324
result = vmci_send_datagram(&bitmap_set_msg.hdr);
drivers/misc/vmw_vmci/vmci_queue_pair.c
1472
ev.msg.hdr.dst = vmci_make_handle(peer_id, VMCI_EVENT_HANDLER);
drivers/misc/vmw_vmci/vmci_queue_pair.c
1473
ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID,
drivers/misc/vmw_vmci/vmci_queue_pair.c
1475
ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr);
drivers/misc/vmw_vmci/vmci_queue_pair.c
1482
&ev.msg.hdr, false);
drivers/misc/vmw_vmci/vmci_queue_pair.c
858
ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER);
drivers/misc/vmw_vmci/vmci_queue_pair.c
859
ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID,
drivers/misc/vmw_vmci/vmci_queue_pair.c
861
ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr);
drivers/misc/vmw_vmci/vmci_queue_pair.c
867
return vmci_event_dispatch(&ev.msg.hdr);
drivers/misc/vmw_vmci/vmci_queue_pair.c
962
alloc_msg->hdr.dst = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID,
drivers/misc/vmw_vmci/vmci_queue_pair.c
964
alloc_msg->hdr.src = VMCI_ANON_SRC_HANDLE;
drivers/misc/vmw_vmci/vmci_queue_pair.c
965
alloc_msg->hdr.payload_size = msg_size - VMCI_DG_HEADERSIZE;
drivers/misc/vmw_vmci/vmci_queue_pair.c
976
result = vmci_send_datagram(&alloc_msg->hdr);
drivers/misc/vmw_vmci/vmci_queue_pair.c
991
detach_msg.hdr.dst = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID,
drivers/misc/vmw_vmci/vmci_queue_pair.c
993
detach_msg.hdr.src = VMCI_ANON_SRC_HANDLE;
drivers/misc/vmw_vmci/vmci_queue_pair.c
994
detach_msg.hdr.payload_size = sizeof(handle);
drivers/misc/vmw_vmci/vmci_queue_pair.c
997
return vmci_send_datagram(&detach_msg.hdr);
drivers/mtd/mtdoops.c
203
struct mtdoops_hdr *hdr;
drivers/mtd/mtdoops.c
210
hdr = (struct mtdoops_hdr *)cxt->oops_buf;
drivers/mtd/mtdoops.c
211
hdr->seq = cxt->nextcount;
drivers/mtd/mtdoops.c
212
hdr->magic = MTDOOPS_KERNMSG_MAGIC_v2;
drivers/mtd/mtdoops.c
213
hdr->timestamp = ktime_get_real();
drivers/mtd/mtdoops.c
248
struct mtdoops_hdr hdr;
drivers/mtd/mtdoops.c
258
ret = mtd_read(mtd, page * record_size, sizeof(hdr),
drivers/mtd/mtdoops.c
259
&retlen, (u_char *)&hdr);
drivers/mtd/mtdoops.c
260
if (retlen != sizeof(hdr) ||
drivers/mtd/mtdoops.c
263
page * record_size, retlen, sizeof(hdr), ret);
drivers/mtd/mtdoops.c
267
if (hdr.seq == 0xffffffff && hdr.magic == 0xffffffff)
drivers/mtd/mtdoops.c
269
if (hdr.seq == 0xffffffff ||
drivers/mtd/mtdoops.c
270
(hdr.magic != MTDOOPS_KERNMSG_MAGIC_v1 &&
drivers/mtd/mtdoops.c
271
hdr.magic != MTDOOPS_KERNMSG_MAGIC_v2))
drivers/mtd/mtdoops.c
274
maxcount = hdr.seq;
drivers/mtd/mtdoops.c
276
} else if (hdr.seq < 0x40000000 && maxcount > 0xc0000000) {
drivers/mtd/mtdoops.c
277
maxcount = hdr.seq;
drivers/mtd/mtdoops.c
279
} else if (hdr.seq > maxcount && hdr.seq < 0xc0000000) {
drivers/mtd/mtdoops.c
280
maxcount = hdr.seq;
drivers/mtd/mtdoops.c
282
} else if (hdr.seq > maxcount && hdr.seq > 0xc0000000
drivers/mtd/mtdoops.c
284
maxcount = hdr.seq;
drivers/mtd/parsers/tplink_safeloader.c
23
struct safeloader_cmn_header hdr;
drivers/mtd/parsers/tplink_safeloader.c
42
err = mtd_read(mtd, offset, sizeof(hdr), &bytes_read, (uint8_t *)&hdr);
drivers/mtd/parsers/tplink_safeloader.c
48
size = be32_to_cpu(hdr.size);
drivers/mtd/parsers/tplink_safeloader.c
54
err = mtd_read(mtd, offset + sizeof(hdr), size, &bytes_read, buf);
drivers/mtd/parsers/tplink_safeloader.c
56
pr_err("Failed to read from %s at 0x%zx\n", mtd->name, offset + sizeof(hdr));
drivers/mtd/ubi/ubi.h
1089
vidb->hdr = buf + ubi->vid_hdr_shift;
drivers/mtd/ubi/ubi.h
1137
return vidb->hdr;
drivers/mtd/ubi/ubi.h
155
struct ubi_vid_hdr *hdr;
drivers/net/arcnet/arcnet.c
151
char hdr[32];
drivers/net/arcnet/arcnet.c
154
snprintf(hdr, sizeof(hdr), "%6s:%s skb->data:", dev->name, desc);
drivers/net/arcnet/arcnet.c
155
print_hex_dump(KERN_DEBUG, hdr, DUMP_PREFIX_OFFSET,
drivers/net/arcnet/arcnet.c
170
char hdr[32];
drivers/net/arcnet/arcnet.c
186
snprintf(hdr, sizeof(hdr), "%6s:%s packet dump:", dev->name, desc);
drivers/net/arcnet/arcnet.c
187
print_hex_dump(KERN_DEBUG, hdr, DUMP_PREFIX_OFFSET,
drivers/net/bonding/bond_3ad.c
1002
ether_addr_copy(marker_header->hdr.h_dest, lacpdu_mcast_addr);
drivers/net/bonding/bond_3ad.c
1006
ether_addr_copy(marker_header->hdr.h_source, slave->perm_hwaddr);
drivers/net/bonding/bond_3ad.c
1007
marker_header->hdr.h_proto = PKT_TYPE_LACPDU;
drivers/net/bonding/bond_3ad.c
949
ether_addr_copy(lacpdu_header->hdr.h_dest, lacpdu_mcast_addr);
drivers/net/bonding/bond_3ad.c
953
ether_addr_copy(lacpdu_header->hdr.h_source, slave->perm_hwaddr);
drivers/net/bonding/bond_3ad.c
954
lacpdu_header->hdr.h_proto = PKT_TYPE_LACPDU;
drivers/net/bonding/bond_alb.c
1287
struct icmp6hdr *hdr;
drivers/net/bonding/bond_alb.c
1296
if (!pskb_network_may_pull(skb, sizeof(*ip6hdr) + sizeof(*hdr)))
drivers/net/bonding/bond_alb.c
1299
hdr = icmp6_hdr(skb);
drivers/net/bonding/bond_alb.c
1300
return hdr->icmp6_type == NDISC_NEIGHBOUR_ADVERTISEMENT ||
drivers/net/bonding/bond_alb.c
1301
hdr->icmp6_type == NDISC_NEIGHBOUR_SOLICITATION;
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
17
struct mcp251xfd_dump_object_header *hdr;
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
230
struct mcp251xfd_dump_object_header *hdr = iter->hdr;
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
232
hdr->magic = cpu_to_le32(MCP251XFD_DUMP_MAGIC);
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
233
hdr->type = cpu_to_le32(MCP251XFD_DUMP_OBJECT_TYPE_END);
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
234
hdr->offset = cpu_to_le32(0);
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
235
hdr->len = cpu_to_le32(0);
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
238
iter->hdr = NULL;
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
263
file_size += sizeof(*iter.hdr) * obj_num;
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
274
iter.hdr = iter.start;
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
275
iter.data = &iter.hdr[obj_num];
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
48
struct mcp251xfd_dump_object_header *hdr = iter->hdr;
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
55
hdr->magic = cpu_to_le32(MCP251XFD_DUMP_MAGIC);
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
56
hdr->type = cpu_to_le32(object_type);
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
57
hdr->offset = cpu_to_le32(iter->data - iter->start);
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
58
hdr->len = cpu_to_le32(len);
drivers/net/can/spi/mcp251xfd/mcp251xfd-dump.c
60
iter->hdr++;
drivers/net/can/usb/esd_usb.c
1071
msg->hdr.len = sizeof(struct esd_usb_set_baudrate_msg) / sizeof(u32); /* # of 32bit words */
drivers/net/can/usb/esd_usb.c
1072
msg->hdr.cmd = ESD_USB_CMD_SETBAUD;
drivers/net/can/usb/esd_usb.c
1167
msg->hdr.len = sizeof(struct esd_usb_3_set_baudrate_msg_x) / sizeof(u32);
drivers/net/can/usb/esd_usb.c
1168
msg->hdr.cmd = ESD_USB_CMD_SETBAUD;
drivers/net/can/usb/esd_usb.c
1328
msg->hdr.cmd = ESD_USB_CMD_VERSION;
drivers/net/can/usb/esd_usb.c
1329
msg->hdr.len = sizeof(struct esd_usb_version_msg) / sizeof(u32); /* # of 32bit words */
drivers/net/can/usb/esd_usb.c
243
struct esd_usb_header_msg hdr;
drivers/net/can/usb/esd_usb.c
513
switch (msg->hdr.cmd) {
drivers/net/can/usb/esd_usb.c
534
pos += msg->hdr.len * sizeof(u32); /* convert to # of bytes */
drivers/net/can/usb/esd_usb.c
633
msg->hdr.len * sizeof(u32), /* convert to # of bytes */
drivers/net/can/usb/esd_usb.c
743
msg->hdr.cmd = ESD_USB_CMD_IDADD;
drivers/net/can/usb/esd_usb.c
744
msg->hdr.len = sizeof(struct esd_usb_id_filter_msg) / sizeof(u32); /* # of 32bit words */
drivers/net/can/usb/esd_usb.c
855
msg->hdr.len = offsetof(struct esd_usb_tx_msg, data) / sizeof(u32);
drivers/net/can/usb/esd_usb.c
856
msg->hdr.cmd = ESD_USB_CMD_CAN_TX;
drivers/net/can/usb/esd_usb.c
880
msg->hdr.len += DIV_ROUND_UP(cfd->len, sizeof(u32));
drivers/net/can/usb/esd_usb.c
903
msg->hdr.len * sizeof(u32), /* convert to # of bytes */
drivers/net/can/usb/esd_usb.c
966
msg->hdr.cmd = ESD_USB_CMD_IDADD;
drivers/net/can/usb/esd_usb.c
967
msg->hdr.len = sizeof(struct esd_usb_id_filter_msg) / sizeof(u32);/* # of 32bit words */
drivers/net/can/usb/esd_usb.c
979
msg->hdr.len = sizeof(struct esd_usb_set_baudrate_msg) / sizeof(u32); /* # of 32bit words */
drivers/net/can/usb/esd_usb.c
980
msg->hdr.cmd = ESD_USB_CMD_SETBAUD;
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
153
struct ptp_header *hdr;
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
155
hdr = ptp_parse_header(skb, type);
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
156
if (!hdr)
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
162
return hdr;
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
165
static u64 hellcreek_get_reserved_field(const struct ptp_header *hdr)
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
167
return be32_to_cpu(hdr->reserved2);
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
170
static void hellcreek_clear_reserved_field(struct ptp_header *hdr)
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
172
hdr->reserved2 = 0;
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
302
struct ptp_header *hdr;
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
308
hdr = ptp_parse_header(skb, type);
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
309
ns = hellcreek_get_reserved_field(hdr);
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
310
hellcreek_clear_reserved_field(hdr);
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
364
struct ptp_header *hdr;
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
378
hdr = hellcreek_should_tstamp(hellcreek, port, skb, type);
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
379
if (!hdr)
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
407
struct ptp_header *hdr;
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
421
hdr = hellcreek_should_tstamp(hellcreek, port, skb, type);
drivers/net/dsa/hirschmann/hellcreek_hwtstamp.c
422
if (!hdr)
drivers/net/dsa/microchip/ksz_ptp.c
499
struct ptp_header *hdr;
drivers/net/dsa/microchip/ksz_ptp.c
514
hdr = ptp_parse_header(skb, type);
drivers/net/dsa/microchip/ksz_ptp.c
515
if (!hdr)
drivers/net/dsa/microchip/ksz_ptp.c
518
ptp_msg_type = ptp_get_msgtype(hdr, type);
drivers/net/dsa/mv88e6xxx/hwtstamp.c
214
struct ptp_header *hdr;
drivers/net/dsa/mv88e6xxx/hwtstamp.c
219
hdr = ptp_parse_header(skb, type);
drivers/net/dsa/mv88e6xxx/hwtstamp.c
220
if (!hdr)
drivers/net/dsa/mv88e6xxx/hwtstamp.c
226
return hdr;
drivers/net/dsa/mv88e6xxx/hwtstamp.c
241
struct ptp_header *hdr;
drivers/net/dsa/mv88e6xxx/hwtstamp.c
243
hdr = ptp_parse_header(skb, type);
drivers/net/dsa/mv88e6xxx/hwtstamp.c
245
return ts_seqid == ntohs(hdr->sequence_id);
drivers/net/dsa/mv88e6xxx/hwtstamp.c
322
static int is_pdelay_resp(const struct ptp_header *hdr)
drivers/net/dsa/mv88e6xxx/hwtstamp.c
324
return (hdr->tsmt & 0xf) == 3;
drivers/net/dsa/mv88e6xxx/hwtstamp.c
332
struct ptp_header *hdr;
drivers/net/dsa/mv88e6xxx/hwtstamp.c
340
hdr = mv88e6xxx_should_tstamp(chip, port, skb, type);
drivers/net/dsa/mv88e6xxx/hwtstamp.c
341
if (!hdr)
drivers/net/dsa/mv88e6xxx/hwtstamp.c
346
if (is_pdelay_resp(hdr))
drivers/net/dsa/mv88e6xxx/hwtstamp.c
468
struct ptp_header *hdr;
drivers/net/dsa/mv88e6xxx/hwtstamp.c
476
hdr = mv88e6xxx_should_tstamp(chip, port, skb, type);
drivers/net/dsa/mv88e6xxx/hwtstamp.c
477
if (!hdr)
drivers/net/dsa/mv88e6xxx/hwtstamp.c
492
ps->tx_seq_id = be16_to_cpu(hdr->sequence_id);
drivers/net/dsa/qca/qca8k-8xxx.c
1660
port = FIELD_GET(QCA_HDR_RECV_SOURCE_PORT, ntohs(mib_ethhdr->hdr));
drivers/net/dsa/qca/qca8k-8xxx.c
226
u16 hdr;
drivers/net/dsa/qca/qca8k-8xxx.c
266
hdr = FIELD_PREP(QCA_HDR_XMIT_VERSION, QCA_HDR_VERSION);
drivers/net/dsa/qca/qca8k-8xxx.c
267
hdr |= FIELD_PREP(QCA_HDR_XMIT_PRIORITY, priority);
drivers/net/dsa/qca/qca8k-8xxx.c
268
hdr |= QCA_HDR_XMIT_FROM_CPU;
drivers/net/dsa/qca/qca8k-8xxx.c
269
hdr |= FIELD_PREP(QCA_HDR_XMIT_DP_BIT, BIT(0));
drivers/net/dsa/qca/qca8k-8xxx.c
270
hdr |= FIELD_PREP(QCA_HDR_XMIT_CONTROL, QCA_HDR_XMIT_TYPE_RW_REG);
drivers/net/dsa/qca/qca8k-8xxx.c
283
mgmt_ethhdr->hdr = htons(hdr);
drivers/net/dsa/sja1105/sja1105_main.c
2608
struct ethhdr *hdr;
drivers/net/dsa/sja1105/sja1105_main.c
2612
hdr = eth_hdr(skb);
drivers/net/dsa/sja1105/sja1105_main.c
2614
mgmt_route.macaddr = ether_addr_to_u64(hdr->h_dest);
drivers/net/dsa/sja1105/sja1105_static_config.c
929
sja1105_table_header_pack_with_crc(void *buf, struct sja1105_table_header *hdr)
drivers/net/dsa/sja1105/sja1105_static_config.c
935
sja1105_table_header_packing(buf, hdr, PACK);
drivers/net/dsa/sja1105/sja1105_static_config.c
936
hdr->crc = sja1105_crc32(buf, SJA1105_SIZE_TABLE_HEADER - 4);
drivers/net/dsa/sja1105/sja1105_static_config.c
937
sja1105_pack(buf + SJA1105_SIZE_TABLE_HEADER - 4, &hdr->crc, 31, 0, 4);
drivers/net/dsa/sja1105/sja1105_static_config.h
459
size_t sja1105_table_header_packing(void *buf, void *hdr, enum packing_op op);
drivers/net/dsa/sja1105/sja1105_static_config.h
461
sja1105_table_header_pack_with_crc(void *buf, struct sja1105_table_header *hdr);
drivers/net/ethernet/8390/8390.h
75
struct e8390_pkt_hdr *hdr, int ring_page);
drivers/net/ethernet/8390/apne.c
377
apne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/apne.c
403
ptrs = (short*)hdr;
drivers/net/ethernet/8390/apne.c
407
ptrc = (char*)hdr;
drivers/net/ethernet/8390/apne.c
415
le16_to_cpus(&hdr->count);
drivers/net/ethernet/8390/apne.c
76
static void apne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/ax88796.c
186
static void ax_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/ax88796.c
210
ioread16_rep(nic_base + NE_DATAPORT, hdr,
drivers/net/ethernet/8390/ax88796.c
213
ioread8_rep(nic_base + NE_DATAPORT, hdr,
drivers/net/ethernet/8390/ax88796.c
219
le16_to_cpus(&hdr->count);
drivers/net/ethernet/8390/axnet_cs.c
630
struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/axnet_cs.c
639
insw(nic_base + AXNET_DATAPORT, hdr,
drivers/net/ethernet/8390/axnet_cs.c
642
hdr->count = le16_to_cpu(hdr->count);
drivers/net/ethernet/8390/etherh.c
411
etherh_get_header (struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/etherh.c
429
writeb (sizeof (*hdr), addr + EN0_RCNTLO);
drivers/net/ethernet/8390/etherh.c
436
readsw (dma_base, hdr, sizeof (*hdr) >> 1);
drivers/net/ethernet/8390/etherh.c
438
readsb (dma_base, hdr, sizeof (*hdr));
drivers/net/ethernet/8390/hydra.c
202
struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/hydra.c
208
ptrs = (short *)hdr;
drivers/net/ethernet/8390/hydra.c
211
*((short *)hdr) = WORDSWAP(*((short *)hdr));
drivers/net/ethernet/8390/hydra.c
214
*((short *)hdr+1) = WORDSWAP(*((short *)hdr+1));
drivers/net/ethernet/8390/hydra.c
61
struct e8390_pkt_hdr *hdr, int ring_page);
drivers/net/ethernet/8390/mac8390.c
134
struct e8390_pkt_hdr *hdr, int ring_page);
drivers/net/ethernet/8390/mac8390.c
148
struct e8390_pkt_hdr *hdr, int ring_page);
drivers/net/ethernet/8390/mac8390.c
156
struct e8390_pkt_hdr *hdr, int ring_page);
drivers/net/ethernet/8390/mac8390.c
705
struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/mac8390.c
708
memcpy_fromio(hdr, (void __iomem *)dev->mem_start + hdr_start, 4);
drivers/net/ethernet/8390/mac8390.c
710
hdr->count = swab16(hdr->count);
drivers/net/ethernet/8390/mac8390.c
745
struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/mac8390.c
749
dayna_memcpy_fromcard(dev, hdr, hdr_start, 4);
drivers/net/ethernet/8390/mac8390.c
751
hdr->count = (hdr->count & 0xFF) << 8 | (hdr->count >> 8);
drivers/net/ethernet/8390/mac8390.c
787
struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/mac8390.c
791
word_memcpy_fromcard(hdr, dev->mem_start + hdr_start, 4);
drivers/net/ethernet/8390/mac8390.c
793
hdr->count = (hdr->count&0xFF)<<8|(hdr->count>>8);
drivers/net/ethernet/8390/mcf8390.c
190
struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/mcf8390.c
209
ei_insw(addr + NE_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr) >> 1);
drivers/net/ethernet/8390/mcf8390.c
214
hdr->count = cpu_to_le16(hdr->count);
drivers/net/ethernet/8390/ne.c
178
static void ne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/ne.c
572
static void ne_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/ne.c
595
insw(NE_BASE + NE_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1);
drivers/net/ethernet/8390/ne.c
597
insb(NE_BASE + NE_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr));
drivers/net/ethernet/8390/ne.c
602
le16_to_cpus(&hdr->count);
drivers/net/ethernet/8390/ne2k-pci.c
180
struct e8390_pkt_hdr *hdr, int ring_page);
drivers/net/ethernet/8390/ne2k-pci.c
490
struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/ne2k-pci.c
512
insw(NE_BASE + NE_DATAPORT, hdr,
drivers/net/ethernet/8390/ne2k-pci.c
515
*(u32 *)hdr = le32_to_cpu(inl(NE_BASE + NE_DATAPORT));
drivers/net/ethernet/8390/ne2k-pci.c
516
le16_to_cpus(&hdr->count);
drivers/net/ethernet/8390/pcnet_cs.c
1134
struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/pcnet_cs.c
1154
insw(nic_base + PCNET_DATAPORT, hdr,
drivers/net/ethernet/8390/pcnet_cs.c
1157
hdr->count = le16_to_cpu(hdr->count);
drivers/net/ethernet/8390/pcnet_cs.c
1366
struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/pcnet_cs.c
1373
copyin(hdr, xfer_start, sizeof(struct e8390_pkt_hdr));
drivers/net/ethernet/8390/pcnet_cs.c
1375
hdr->count = le16_to_cpu(hdr->count);
drivers/net/ethernet/8390/smc-ultra.c
443
ultra_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/smc-ultra.c
451
memcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr));
drivers/net/ethernet/8390/smc-ultra.c
452
hdr->count = le16_to_cpu(hdr->count);
drivers/net/ethernet/8390/smc-ultra.c
454
((unsigned int*)hdr)[0] = readl(hdr_start);
drivers/net/ethernet/8390/smc-ultra.c
505
static void ultra_pio_get_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/smc-ultra.c
511
insw(ioaddr + IOPD, hdr, sizeof(struct e8390_pkt_hdr)>>1);
drivers/net/ethernet/8390/smc-ultra.c
88
static void ultra_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/smc-ultra.c
94
static void ultra_pio_get_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/stnic.c
181
stnic_get_hdr (struct net_device *dev, struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/stnic.c
198
hdr->next = buf[0] >> 8;
drivers/net/ethernet/8390/stnic.c
199
hdr->status = buf[0] & 0xff;
drivers/net/ethernet/8390/stnic.c
201
hdr->count = buf[1];
drivers/net/ethernet/8390/stnic.c
203
hdr->count = ((buf[1] >> 8) & 0xff) | (buf[1] << 8);
drivers/net/ethernet/8390/stnic.c
207
ring_page, hdr->status, hdr->next, hdr->count);
drivers/net/ethernet/8390/stnic.c
60
static void stnic_get_hdr (struct net_device *dev, struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/wd.c
412
wd_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/wd.c
426
memcpy_fromio(hdr, hdr_start, sizeof(struct e8390_pkt_hdr));
drivers/net/ethernet/8390/wd.c
427
hdr->count = le16_to_cpu(hdr->count);
drivers/net/ethernet/8390/wd.c
429
((unsigned int*)hdr)[0] = readl(hdr_start);
drivers/net/ethernet/8390/wd.c
54
static void wd_get_8390_hdr(struct net_device *dev, struct e8390_pkt_hdr *hdr,
drivers/net/ethernet/8390/zorro8390.c
107
struct e8390_pkt_hdr *hdr, int ring_page)
drivers/net/ethernet/8390/zorro8390.c
132
ptrs = (short *)hdr;
drivers/net/ethernet/8390/zorro8390.c
138
hdr->count = WORDSWAP(hdr->count);
drivers/net/ethernet/airoha/airoha_eth.h
457
} hdr[2];
drivers/net/ethernet/airoha/airoha_ppe.c
1087
data.vlan.hdr[data.vlan.num].id = act->vlan.vid;
drivers/net/ethernet/airoha/airoha_ppe.c
1088
data.vlan.hdr[data.vlan.num].proto = act->vlan.proto;
drivers/net/ethernet/airoha/airoha_ppe.c
380
l2->vlan1 = data->vlan.hdr[0].id;
drivers/net/ethernet/airoha/airoha_ppe.c
382
l2->vlan2 = data->vlan.hdr[1].id;
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
268
xgbe_set_buffer_data(&rdata->rx.hdr, &ring->rx_hdr_pa,
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
271
xgbe_set_buffer_data(&rdata->rx.hdr, &ring->rx_hdr_pa,
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
386
if (rdata->rx.hdr.pa.pages)
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
387
put_page(rdata->rx.hdr.pa.pages);
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
389
if (rdata->rx.hdr.pa_unmap.pages) {
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
390
dma_unmap_page(pdata->dev, rdata->rx.hdr.pa_unmap.pages_dma,
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
391
rdata->rx.hdr.pa_unmap.pages_len,
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
393
put_page(rdata->rx.hdr.pa_unmap.pages);
drivers/net/ethernet/amd/xgbe/xgbe-dev.c
1506
hdr_dma = rdata->rx.hdr.dma_base + rdata->rx.hdr.dma_off;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2090
skb = napi_alloc_skb(napi, rdata->rx.hdr.dma_len);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2097
dma_sync_single_range_for_cpu(pdata->dev, rdata->rx.hdr.dma_base,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2098
rdata->rx.hdr.dma_off,
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2099
rdata->rx.hdr.dma_len, DMA_FROM_DEVICE);
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2101
packet = page_address(rdata->rx.hdr.pa.pages) +
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2102
rdata->rx.hdr.pa.pages_offset;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2124
return rdata->rx.hdr.dma_len;
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
2129
return min_t(unsigned int, rdata->rx.hdr.dma_len, rdata->rx.len);
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
40
struct netsfhdr *hdr;
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
84
hdr = (struct netsfhdr *)((u8 *)th + sizeof(*th));
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
93
hdr = (struct netsfhdr *)((u8 *)uh + sizeof(*uh));
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
96
if (hdr->magic != cpu_to_be64(NET_TEST_PKT_MAGIC))
drivers/net/ethernet/amd/xgbe/xgbe-selftest.c
98
if (tdata->packet->id != hdr->id)
drivers/net/ethernet/amd/xgbe/xgbe.h
333
struct xgbe_buffer_data hdr; /* Header locations */
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
1264
struct stats_query_header hdr;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
1934
struct ethhdr *hdr = (struct ethhdr *)skb->data;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
1935
u16 ether_type = ntohs(hdr->h_proto);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
2097
u32 hdr;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
3183
struct doorbell_hdr hdr;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
3185
struct doorbell_hdr hdr;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
4393
struct spe_hdr hdr;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
4716
struct mac_configuration_hdr hdr;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
5820
struct spe_hdr hdr;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h
5838
struct spe_hdr hdr;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
14439
u16 type = (le16_to_cpu(bp->cnic_kwq_cons->hdr.type)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
14442
u8 cmd = (le32_to_cpu(bp->cnic_kwq_cons->hdr.conn_and_cmd_data)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
14537
spe->hdr.conn_and_cmd_data, spe->hdr.type,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
3915
spe->hdr.conn_and_cmd_data =
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
3932
spe->hdr.type = cpu_to_le16(type);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
1026
&config->hdr);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
2390
struct eth_classify_header *hdr,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
2393
hdr->echo = cpu_to_le32(cid);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
2394
hdr->rule_cnt = rule_cnt;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
3704
data->hdr.offset = offset;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
3705
data->hdr.client_id = cpu_to_le16(0xff);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
3706
data->hdr.echo = cpu_to_le32((r->cid & BNX2X_SWCID_MASK) |
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
3709
data->hdr.length = len;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
3843
int i, len = data->hdr.length;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
845
struct eth_classify_cmd_header *hdr)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
849
hdr->client_id = raw->cl_id;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
850
hdr->func_id = raw->func_id;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
853
hdr->cmd_general_data |=
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
857
hdr->cmd_general_data |= ETH_CLASSIFY_CMD_HEADER_IS_ADD;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
859
hdr->cmd_general_data |=
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
875
struct eth_classify_header *hdr, int rule_cnt)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
877
hdr->echo = cpu_to_le32((cid & BNX2X_SWCID_MASK) |
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
879
hdr->rule_cnt = (u8)rule_cnt;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
981
struct mac_configuration_hdr *hdr)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
985
hdr->length = 1;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
986
hdr->offset = (u8)cam_offset;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
987
hdr->client_id = cpu_to_le16(0xff);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
988
hdr->echo = cpu_to_le32((r->cid & BNX2X_SWCID_MASK) |
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c
1947
bp->fw_stats_req->hdr.cmd_num = bp->fw_stats_num + stats_count;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
100
bp->fw_stats_req->hdr.stats_counters_addrs.hi,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
101
bp->fw_stats_req->hdr.stats_counters_addrs.lo);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
103
for (i = 0; i < bp->fw_stats_req->hdr.cmd_num; i++) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
133
bp->fw_stats_req->hdr.drv_stats_counter =
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
137
le16_to_cpu(bp->fw_stats_req->hdr.drv_stats_counter));
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
1439
struct stats_query_header *stats_hdr = &bp->fw_stats_req->hdr;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
96
bp->fw_stats_req->hdr.cmd_num,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
97
bp->fw_stats_req->hdr.reserved0,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
98
bp->fw_stats_req->hdr.drv_stats_counter,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
99
bp->fw_stats_req->hdr.reserved1,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
1032
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status, bp->vf2pf_mbox_mapping);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
1036
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
1037
BNX2X_ERR("Set Rx mode failed: %d\n", resp->hdr.status);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
1155
resp->hdr.status = bnx2x_pfvf_status_codes(vf_rc);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
278
&resp->hdr.status,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
293
if (bp->acquire_resp.hdr.status == PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
296
} else if (bp->acquire_resp.hdr.status ==
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
333
bp->acquire_resp.hdr.status);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
419
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status, bp->vf2pf_mbox_mapping);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
425
if (resp->hdr.status == PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
431
resp->hdr.status);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
469
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status, bp->vf2pf_mbox_mapping);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
473
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
475
resp->hdr.status);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
520
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status, bp->vf2pf_mbox_mapping);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
525
else if (resp->hdr.status != PFVF_STATUS_SUCCESS)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
527
resp->hdr.status);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
670
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status, bp->vf2pf_mbox_mapping);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
675
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
677
fp_idx, resp->hdr.status);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
705
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status, bp->vf2pf_mbox_mapping);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
714
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
716
resp->hdr.status);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
760
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status, bp->vf2pf_mbox_mapping);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
767
while (resp->hdr.status == PFVF_STATUS_FAILURE) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
781
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
789
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
790
BNX2X_ERR("vfpf SET MAC failed: %d\n", resp->hdr.status);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
847
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status, bp->vf2pf_mbox_mapping);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
853
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
860
resp->hdr.status);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
914
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status, bp->vf2pf_mbox_mapping);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
920
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
922
resp->hdr.status);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
975
rc = bnx2x_send_msg2pf(bp, &resp->hdr.status, bp->vf2pf_mbox_mapping);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
981
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.h
112
struct pfvf_tlv hdr;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.h
176
struct pfvf_tlv hdr;
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
40
struct ptp_header *hdr;
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
47
hdr = ptp_parse_header(skb, ptp_class);
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
48
if (!hdr)
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
51
*hdr_off = (u8 *)hdr - skb->data;
drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c
52
*seq_id = ntohs(hdr->sequence_id);
drivers/net/ethernet/broadcom/cnic.c
1404
kwqe.hdr.conn_and_cmd_data =
drivers/net/ethernet/broadcom/cnic.c
1412
kwqe.hdr.type = cpu_to_le16(type_16);
drivers/net/ethernet/broadcom/cnic.c
1413
kwqe.hdr.reserved1 = 0;
drivers/net/ethernet/broadcom/cnic.c
2304
if (req2->hdr.op_code != FCOE_KWQE_OPCODE_INIT2) {
drivers/net/ethernet/broadcom/cnic.c
2308
if (req3->hdr.op_code != FCOE_KWQE_OPCODE_INIT3) {
drivers/net/ethernet/broadcom/cnic_defs.h
2643
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
2669
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
2684
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
2697
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
2713
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
2734
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
2771
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
2789
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
2818
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
2829
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
2838
struct fcoe_kwqe_header hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
5333
struct l5cm_pcs_hdr hdr;
drivers/net/ethernet/broadcom/cnic_defs.h
5370
struct spe_hdr hdr;
drivers/net/ethernet/brocade/bna/bna.h
193
(q1) = rxp->rxq.hds.hdr; \
drivers/net/ethernet/brocade/bna/bna_hw_defs.h
382
} hdr;
drivers/net/ethernet/brocade/bna/bna_tx_rx.c
1845
rxp->rxq.hds.hdr = q1;
drivers/net/ethernet/brocade/bna/bna_types.h
597
struct bna_rxq *hdr;
drivers/net/ethernet/brocade/bna/bnad.c
2818
txqent->hdr.wi.vlan_tag = htons(vlan_tag);
drivers/net/ethernet/brocade/bna/bnad.c
2827
txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND);
drivers/net/ethernet/brocade/bna/bnad.c
2828
txqent->hdr.wi.lso_mss = 0;
drivers/net/ethernet/brocade/bna/bnad.c
2831
txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND_LSO);
drivers/net/ethernet/brocade/bna/bnad.c
2832
txqent->hdr.wi.lso_mss = htons(gso_size);
drivers/net/ethernet/brocade/bna/bnad.c
2841
txqent->hdr.wi.l4_hdr_size_n_offset =
drivers/net/ethernet/brocade/bna/bnad.c
2845
txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND);
drivers/net/ethernet/brocade/bna/bnad.c
2846
txqent->hdr.wi.lso_mss = 0;
drivers/net/ethernet/brocade/bna/bnad.c
2867
txqent->hdr.wi.l4_hdr_size_n_offset =
drivers/net/ethernet/brocade/bna/bnad.c
2880
txqent->hdr.wi.l4_hdr_size_n_offset =
drivers/net/ethernet/brocade/bna/bnad.c
2897
txqent->hdr.wi.l4_hdr_size_n_offset = 0;
drivers/net/ethernet/brocade/bna/bnad.c
2900
txqent->hdr.wi.flags = htons(flags);
drivers/net/ethernet/brocade/bna/bnad.c
2901
txqent->hdr.wi.frame_length = htonl(skb->len);
drivers/net/ethernet/brocade/bna/bnad.c
3006
txqent->hdr.wi.reserved = 0;
drivers/net/ethernet/brocade/bna/bnad.c
3007
txqent->hdr.wi.num_vectors = vectors;
drivers/net/ethernet/brocade/bna/bnad.c
3046
txqent->hdr.wi_ext.opcode = htons(BNA_TXQ_WI_EXTENSION);
drivers/net/ethernet/cadence/macb_main.c
1236
struct ptp_header *hdr;
drivers/net/ethernet/cadence/macb_main.c
1249
hdr = ptp_parse_header(skb, ptp_class);
drivers/net/ethernet/cadence/macb_main.c
1250
if (!hdr)
drivers/net/ethernet/cadence/macb_main.c
1253
if (hdr->flag_field[0] & PTP_FLAG_TWOSTEP)
drivers/net/ethernet/cadence/macb_main.c
1256
msgtype = ptp_get_msgtype(hdr, ptp_class);
drivers/net/ethernet/cavium/thunder/nicvf_main.c
664
struct sq_hdr_subdesc *hdr;
drivers/net/ethernet/cavium/thunder/nicvf_main.c
669
hdr = (struct sq_hdr_subdesc *)GET_SQ_DESC(sq, cqe_tx->sqe_ptr);
drivers/net/ethernet/cavium/thunder/nicvf_main.c
670
if (hdr->subdesc_type != SQ_DESC_TYPE_HEADER)
drivers/net/ethernet/cavium/thunder/nicvf_main.c
683
hdr->subdesc_cnt);
drivers/net/ethernet/cavium/thunder/nicvf_main.c
689
*subdesc_cnt += hdr->subdesc_cnt + 1;
drivers/net/ethernet/cavium/thunder/nicvf_main.c
696
if (hdr->dont_send) {
drivers/net/ethernet/cavium/thunder/nicvf_main.c
699
(struct sq_hdr_subdesc *)GET_SQ_DESC(sq, hdr->rsvd2);
drivers/net/ethernet/cavium/thunder/nicvf_main.c
700
nicvf_unmap_sndq_buffers(nic, sq, hdr->rsvd2,
drivers/net/ethernet/cavium/thunder/nicvf_main.c
705
hdr->subdesc_cnt);
drivers/net/ethernet/cavium/thunder/nicvf_main.c
707
*subdesc_cnt += hdr->subdesc_cnt + 1;
drivers/net/ethernet/cavium/thunder/nicvf_main.c
723
*subdesc_cnt += hdr->subdesc_cnt + 1;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1185
struct sq_hdr_subdesc *hdr;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1189
hdr = (struct sq_hdr_subdesc *)GET_SQ_DESC(sq, sq->head);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1190
if (hdr->subdesc_type != SQ_DESC_TYPE_HEADER) {
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1198
atomic64_add(hdr->tot_len,
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1200
nicvf_put_sq_desc(sq, hdr->subdesc_cnt + 1);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1224
struct sq_hdr_subdesc *hdr;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1226
hdr = (struct sq_hdr_subdesc *)GET_SQ_DESC(sq, qentry);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1227
memset(hdr, 0, SND_QUEUE_DESC_SIZE);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1228
hdr->subdesc_type = SQ_DESC_TYPE_HEADER;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1229
hdr->subdesc_cnt = subdesc_cnt;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1230
hdr->tot_len = len;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1231
hdr->post_cqe = 1;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1333
struct sq_hdr_subdesc *hdr;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1337
unsigned char *hdr;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1340
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1341
hdr = (struct sq_hdr_subdesc *)GET_SQ_DESC(sq, qentry);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1342
memset(hdr, 0, SND_QUEUE_DESC_SIZE);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1343
hdr->subdesc_type = SQ_DESC_TYPE_HEADER;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1349
hdr->subdesc_cnt = subdesc_cnt - POST_CQE_DESC_COUNT;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1353
hdr->post_cqe = 1;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1355
hdr->subdesc_cnt = subdesc_cnt;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1357
hdr->tot_len = len;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1362
hdr->csum_l3 = 1; /* Enable IP csum calculation */
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1363
hdr->l3_offset = skb_network_offset(skb);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1364
hdr->l4_offset = skb_transport_offset(skb);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1371
hdr->csum_l4 = SEND_L4_CSUM_TCP;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1374
hdr->csum_l4 = SEND_L4_CSUM_UDP;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1377
hdr->csum_l4 = SEND_L4_CSUM_SCTP;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1383
hdr->tso = 1;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1384
hdr->tso_start = skb_tcp_all_headers(skb);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1385
hdr->tso_max_paysize = skb_shinfo(skb)->gso_size;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1387
hdr->inner_l3_offset = skb_network_offset(skb) - 2;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1410
hdr->tstmp = 1;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1439
struct sq_hdr_subdesc *hdr;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1443
hdr = (struct sq_hdr_subdesc *)GET_SQ_DESC(sq, qentry);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1444
memset(hdr, 0, SND_QUEUE_DESC_SIZE);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1445
hdr->subdesc_type = SQ_DESC_TYPE_HEADER;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1447
hdr->post_cqe = 1;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1449
hdr->dont_send = 1;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1450
hdr->subdesc_cnt = POST_CQE_DESC_COUNT - 1;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1451
hdr->tot_len = 1;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1453
hdr->rsvd2 = tso_sqe;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1498
char *hdr;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1508
hdr = sq->tso_hdrs + qentry * TSO_HEADER_SIZE;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
1509
tso_build_hdr(skb, hdr, &tso, data_left, total_len == 0);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
575
struct sq_hdr_subdesc *hdr;
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
603
hdr = (struct sq_hdr_subdesc *)GET_SQ_DESC(sq, sq->head);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
605
if (hdr->dont_send) {
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
608
(struct sq_hdr_subdesc *)GET_SQ_DESC(sq, hdr->rsvd2);
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
609
nicvf_unmap_sndq_buffers(nic, sq, hdr->rsvd2,
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
613
hdr->subdesc_cnt);
drivers/net/ethernet/chelsio/cxgb/sge.c
1834
struct cpl_tx_pkt_lso *hdr;
drivers/net/ethernet/chelsio/cxgb/sge.c
1841
hdr = skb_push(skb, sizeof(*hdr));
drivers/net/ethernet/chelsio/cxgb/sge.c
1842
hdr->opcode = CPL_TX_PKT_LSO;
drivers/net/ethernet/chelsio/cxgb/sge.c
1843
hdr->ip_csum_dis = hdr->l4_csum_dis = 0;
drivers/net/ethernet/chelsio/cxgb/sge.c
1844
hdr->ip_hdr_words = ip_hdr(skb)->ihl;
drivers/net/ethernet/chelsio/cxgb/sge.c
1845
hdr->tcp_hdr_words = tcp_hdr(skb)->doff;
drivers/net/ethernet/chelsio/cxgb/sge.c
1846
hdr->eth_type_mss = htons(MK_ETH_TYPE_MSS(eth_type,
drivers/net/ethernet/chelsio/cxgb/sge.c
1848
hdr->len = htonl(skb->len - sizeof(*hdr));
drivers/net/ethernet/chelsio/cxgb/sge.c
1849
cpl = (struct cpl_tx_pkt *)hdr;
drivers/net/ethernet/chelsio/cxgb3/sge.c
1196
struct cpl_tx_pkt_lso *hdr = (struct cpl_tx_pkt_lso *)cpl;
drivers/net/ethernet/chelsio/cxgb3/sge.c
1200
hdr->cntrl = htonl(cntrl);
drivers/net/ethernet/chelsio/cxgb3/sge.c
1206
hdr->lso_info = htonl(tso_info);
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3158
} *hdr;
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3169
hdr = (struct exprom_header *)exprom_header_buf;
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3170
if (hdr->hdr_arr[0] != 0x55 || hdr->hdr_arr[1] != 0xaa)
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3173
*vers = (FW_HDR_FW_VER_MAJOR_V(hdr->hdr_ver[0]) |
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3174
FW_HDR_FW_VER_MINOR_V(hdr->hdr_ver[1]) |
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3175
FW_HDR_FW_VER_MICRO_V(hdr->hdr_ver[2]) |
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3176
FW_HDR_FW_VER_BUILD_V(hdr->hdr_ver[3]));
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3600
const struct fw_hdr *hdr)
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3605
if ((is_t4(adap->params.chip) && hdr->chip == FW_HDR_CHIP_T4) ||
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3606
(is_t5(adap->params.chip) && hdr->chip == FW_HDR_CHIP_T5) ||
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3607
(is_t6(adap->params.chip) && hdr->chip == FW_HDR_CHIP_T6))
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3612
hdr->chip, CHELSIO_CHIP_VERSION(adap->params.chip));
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3631
const struct fw_hdr *hdr = (const struct fw_hdr *)fw_data;
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3646
if ((unsigned int)be16_to_cpu(hdr->len512) * 512 != size) {
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3656
if (!t4_fw_matches_chip(adap, hdr))
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
3694
sizeof(hdr->fw_ver), (const u8 *)&hdr->fw_ver,
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1684
struct cpl_rx_data *hdr = cplhdr(skb) + RSS_HDR;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1696
ULP_SKB_CB(skb)->seq = ntohl(hdr->seq);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1697
ULP_SKB_CB(skb)->psh = hdr->psh;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1701
__skb_pull(skb, sizeof(*hdr) + RSS_HDR);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1703
__skb_trim(skb, ntohs(hdr->len));
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1705
if (unlikely(hdr->urg))
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1706
handle_urg_ptr(sk, tp->rcv_nxt + ntohs(hdr->urg));
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1712
if (unlikely(hdr->dack_mode != csk->delack_mode)) {
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1713
csk->delack_mode = hdr->dack_mode;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1746
struct cpl_tls_data *hdr = cplhdr(skb);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1760
ULP_SKB_CB(skb)->seq = ntohl(hdr->seq);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1765
__skb_pull(skb, sizeof(*hdr));
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1768
CPL_TLS_DATA_LENGTH_G(ntohl(hdr->length_pkd)));
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
1776
tlsk->pldlen = CPL_TLS_DATA_LENGTH_G(ntohl(hdr->length_pkd));
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2226
struct cpl_fw4_ack *hdr = cplhdr(skb) + RSS_HDR;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2229
u32 credits = hdr->credits;
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2232
snd_una = ntohl(hdr->snd_una);
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2256
if (hdr->seq_vld & CPL_FW4_ACK_FLAGS_SEQVAL) {
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
2271
if (hdr->seq_vld & CPL_FW4_ACK_FLAGS_CH) {
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
295
struct cxgbi_pagepod_hdr *hdr)
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
302
hdr->vld_tid = htonl(PPOD_VALID_FLAG | PPOD_TID(tid));
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
304
hdr->rsvd = 0;
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
305
hdr->pgsz_tag_clr = htonl(tag & ppm->tformat.idx_clr_mask);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
306
hdr->max_offset = htonl(length);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
307
hdr->page_offset = htonl(offset);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h
290
ppod->hdr.vld_tid = 0U;
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h
321
struct cxgbi_pagepod_hdr *hdr);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h
61
struct cxgbi_pagepod_hdr hdr;
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h
92
struct cxgbi_pagepod_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.c
1008
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1016
req->hdr.version = ver;
drivers/net/ethernet/emulex/benet/be_cmds.c
1059
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1100
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1104
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
1143
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1147
req->hdr.domain = dom;
drivers/net/ethernet/emulex/benet/be_cmds.c
1175
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1192
req->hdr.version = 2;
drivers/net/ethernet/emulex/benet/be_cmds.c
1253
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1264
req->hdr.version = 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
1318
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1370
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ETH,
drivers/net/ethernet/emulex/benet/be_cmds.c
1374
req->hdr.version = 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
1377
req->hdr.version = 2;
drivers/net/ethernet/emulex/benet/be_cmds.c
1379
req->hdr.version = 2;
drivers/net/ethernet/emulex/benet/be_cmds.c
1382
if (req->hdr.version > 0)
drivers/net/ethernet/emulex/benet/be_cmds.c
1390
ver = req->hdr.version;
drivers/net/ethernet/emulex/benet/be_cmds.c
1426
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ETH,
drivers/net/ethernet/emulex/benet/be_cmds.c
1493
be_wrb_cmd_hdr_prepare(&req->hdr, subsys, opcode, sizeof(*req), wrb,
drivers/net/ethernet/emulex/benet/be_cmds.c
1520
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ETH,
drivers/net/ethernet/emulex/benet/be_cmds.c
1543
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1546
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
1576
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1579
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
1593
struct be_cmd_req_hdr *hdr;
drivers/net/ethernet/emulex/benet/be_cmds.c
1603
hdr = nonemb_cmd->va;
drivers/net/ethernet/emulex/benet/be_cmds.c
1605
be_wrb_cmd_hdr_prepare(hdr, CMD_SUBSYSTEM_ETH,
drivers/net/ethernet/emulex/benet/be_cmds.c
1611
hdr->version = 0;
drivers/net/ethernet/emulex/benet/be_cmds.c
1613
hdr->version = 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
1615
hdr->version = 2;
drivers/net/ethernet/emulex/benet/be_cmds.c
1649
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ETH,
drivers/net/ethernet/emulex/benet/be_cmds.c
1712
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1718
req->hdr.version = 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
1720
req->hdr.domain = dom;
drivers/net/ethernet/emulex/benet/be_cmds.c
1759
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1778
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1828
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1875
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1911
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1961
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
1964
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
1993
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2058
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2062
req->hdr.version = 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
2097
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2128
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2201
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ETH,
drivers/net/ethernet/emulex/benet/be_cmds.c
2209
req->hdr.version = 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
2238
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2270
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2318
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2359
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2473
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2504
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2550
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
2596
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3233
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ETH,
drivers/net/ethernet/emulex/benet/be_cmds.c
3266
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_LOWLEVEL,
drivers/net/ethernet/emulex/benet/be_cmds.c
3315
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_LOWLEVEL,
drivers/net/ethernet/emulex/benet/be_cmds.c
3319
req->hdr.timeout = cpu_to_le32(15);
drivers/net/ethernet/emulex/benet/be_cmds.c
3363
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_LOWLEVEL,
drivers/net/ethernet/emulex/benet/be_cmds.c
3409
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3449
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3496
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3499
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
3542
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3587
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3628
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3632
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
3671
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3674
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
3724
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3727
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
3848
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3852
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
3908
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3912
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
3963
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
3967
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
4056
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ETH,
drivers/net/ethernet/emulex/benet/be_cmds.c
4060
req->hdr.version = 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4179
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4208
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4230
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4234
req->hdr.version = 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4260
struct be_res_desc_hdr *hdr = (struct be_res_desc_hdr *)buf;
drivers/net/ethernet/emulex/benet/be_cmds.c
4265
if (hdr->desc_type == NIC_RESOURCE_DESC_TYPE_V0 ||
drivers/net/ethernet/emulex/benet/be_cmds.c
4266
hdr->desc_type == NIC_RESOURCE_DESC_TYPE_V1) {
drivers/net/ethernet/emulex/benet/be_cmds.c
4267
nic = (struct be_nic_res_desc *)hdr;
drivers/net/ethernet/emulex/benet/be_cmds.c
4274
hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0;
drivers/net/ethernet/emulex/benet/be_cmds.c
4275
hdr = (void *)hdr + hdr->desc_len;
drivers/net/ethernet/emulex/benet/be_cmds.c
4295
struct be_res_desc_hdr *hdr = (struct be_res_desc_hdr *)buf;
drivers/net/ethernet/emulex/benet/be_cmds.c
4300
if (hdr->desc_type == PCIE_RESOURCE_DESC_TYPE_V0 ||
drivers/net/ethernet/emulex/benet/be_cmds.c
4301
hdr->desc_type == PCIE_RESOURCE_DESC_TYPE_V1) {
drivers/net/ethernet/emulex/benet/be_cmds.c
4302
pcie = (struct be_pcie_res_desc *)hdr;
drivers/net/ethernet/emulex/benet/be_cmds.c
4307
hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0;
drivers/net/ethernet/emulex/benet/be_cmds.c
4308
hdr = (void *)hdr + hdr->desc_len;
drivers/net/ethernet/emulex/benet/be_cmds.c
4315
struct be_res_desc_hdr *hdr = (struct be_res_desc_hdr *)buf;
drivers/net/ethernet/emulex/benet/be_cmds.c
4319
if (hdr->desc_type == PORT_RESOURCE_DESC_TYPE_V1)
drivers/net/ethernet/emulex/benet/be_cmds.c
4320
return (struct be_port_res_desc *)hdr;
drivers/net/ethernet/emulex/benet/be_cmds.c
4322
hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0;
drivers/net/ethernet/emulex/benet/be_cmds.c
4323
hdr = (void *)hdr + hdr->desc_len;
drivers/net/ethernet/emulex/benet/be_cmds.c
4375
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4380
req->hdr.version = 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4417
struct be_res_desc_hdr *hdr = (struct be_res_desc_hdr *)buf;
drivers/net/ethernet/emulex/benet/be_cmds.c
4423
if (hdr->desc_type == PCIE_RESOURCE_DESC_TYPE_V0 ||
drivers/net/ethernet/emulex/benet/be_cmds.c
4424
hdr->desc_type == PCIE_RESOURCE_DESC_TYPE_V1) {
drivers/net/ethernet/emulex/benet/be_cmds.c
4425
pcie = (struct be_pcie_res_desc *)hdr;
drivers/net/ethernet/emulex/benet/be_cmds.c
4432
hdr->desc_len = hdr->desc_len ? : RESOURCE_DESC_SIZE_V0;
drivers/net/ethernet/emulex/benet/be_cmds.c
4433
hdr = (void *)hdr + hdr->desc_len;
drivers/net/ethernet/emulex/benet/be_cmds.c
4463
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4468
req->hdr.version = 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4470
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
4550
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4553
req->hdr.version = version;
drivers/net/ethernet/emulex/benet/be_cmds.c
4554
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
4617
nic_desc.hdr.desc_type = NIC_RESOURCE_DESC_TYPE_V0;
drivers/net/ethernet/emulex/benet/be_cmds.c
4618
nic_desc.hdr.desc_len = RESOURCE_DESC_SIZE_V0;
drivers/net/ethernet/emulex/benet/be_cmds.c
4624
nic_desc.hdr.desc_type = NIC_RESOURCE_DESC_TYPE_V1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4625
nic_desc.hdr.desc_len = RESOURCE_DESC_SIZE_V1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4632
nic_desc.hdr.desc_len,
drivers/net/ethernet/emulex/benet/be_cmds.c
4647
desc.pcie.hdr.desc_type = PCIE_RESOURCE_DESC_TYPE_V1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4648
desc.pcie.hdr.desc_len = RESOURCE_DESC_SIZE_V1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4656
desc.nic_vft.hdr.desc_type = NIC_RESOURCE_DESC_TYPE_V1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4657
desc.nic_vft.hdr.desc_len = RESOURCE_DESC_SIZE_V1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4701
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4718
port_desc.hdr.desc_type = PORT_RESOURCE_DESC_TYPE_V1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4719
port_desc.hdr.desc_len = RESOURCE_DESC_SIZE_V1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4752
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4755
req->hdr.domain = vf_num + 1;
drivers/net/ethernet/emulex/benet/be_cmds.c
4868
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4872
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
4893
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4923
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4959
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
4963
req->hdr.version = version;
drivers/net/ethernet/emulex/benet/be_cmds.c
4964
req->hdr.domain = domain;
drivers/net/ethernet/emulex/benet/be_cmds.c
5018
be_wrb_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/net/ethernet/emulex/benet/be_cmds.c
5055
struct be_cmd_req_hdr *hdr = (struct be_cmd_req_hdr *)wrb_payload;
drivers/net/ethernet/emulex/benet/be_cmds.c
5070
be_wrb_cmd_hdr_prepare(req, hdr->subsystem,
drivers/net/ethernet/emulex/benet/be_cmds.c
5071
hdr->opcode, wrb_payload_size, wrb, NULL);
drivers/net/ethernet/emulex/benet/be_cmds.h
1003
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1015
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1020
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1029
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1044
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1056
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1078
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1093
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1118
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1126
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1132
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1139
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1146
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1151
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1164
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1178
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1183
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1216
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1232
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1240
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1444
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1452
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1469
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1504
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1528
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1536
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1543
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1553
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1575
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1594
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1603
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1612
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1624
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1629
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1679
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1695
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1704
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1732
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1736
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1745
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1752
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1783
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1788
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1793
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1801
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1821
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1833
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1866
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1890
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1895
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1902
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
1907
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2040
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2045
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2063
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2068
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2107
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2112
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2117
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2144
struct be_res_desc_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2164
struct be_res_desc_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2181
struct be_res_desc_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2236
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2240
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2251
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2261
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2269
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2276
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2281
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2287
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2293
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2311
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2315
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2330
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2346
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2359
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
2368
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
389
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
416
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
424
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
430
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
437
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
443
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
491
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
501
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
507
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
516
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
554
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
562
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
571
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
581
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
596
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
605
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
617
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
634
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
678
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
689
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
696
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
812
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
817
struct be_cmd_resp_hdr hdr;
drivers/net/ethernet/emulex/benet/be_cmds.h
995
struct be_cmd_req_hdr hdr;
drivers/net/ethernet/emulex/benet/be_main.c
1227
struct be_eth_hdr_wrb *hdr = queue_index_node(txq, txo->last_req_hdr);
drivers/net/ethernet/emulex/benet/be_main.c
1230
if (!(hdr->dw[2] & cpu_to_le32(TX_HDR_WRB_EVT)))
drivers/net/ethernet/emulex/benet/be_main.c
1231
hdr->dw[2] |= cpu_to_le32(TX_HDR_WRB_EVT | TX_HDR_WRB_COMPL);
drivers/net/ethernet/emulex/benet/be_main.c
1239
hdr->dw[2] &= ~cpu_to_le32(TX_HDR_WRB_NUM_MASK <<
drivers/net/ethernet/emulex/benet/be_main.c
1241
hdr->dw[2] |= cpu_to_le32((txo->last_req_wrb_cnt + 1) <<
drivers/net/ethernet/emulex/benet/be_main.c
1319
struct ipv6hdr *hdr = ipv6_hdr((*skb));
drivers/net/ethernet/emulex/benet/be_main.c
1320
u8 nexthdr = hdr->nexthdr;
drivers/net/ethernet/emulex/benet/be_main.c
863
struct be_eth_hdr_wrb *hdr,
drivers/net/ethernet/emulex/benet/be_main.c
867
memset(hdr, 0, sizeof(*hdr));
drivers/net/ethernet/emulex/benet/be_main.c
869
SET_TX_WRB_HDR_BITS(crc, hdr,
drivers/net/ethernet/emulex/benet/be_main.c
871
SET_TX_WRB_HDR_BITS(ipcs, hdr,
drivers/net/ethernet/emulex/benet/be_main.c
873
SET_TX_WRB_HDR_BITS(tcpcs, hdr,
drivers/net/ethernet/emulex/benet/be_main.c
875
SET_TX_WRB_HDR_BITS(udpcs, hdr,
drivers/net/ethernet/emulex/benet/be_main.c
878
SET_TX_WRB_HDR_BITS(lso, hdr,
drivers/net/ethernet/emulex/benet/be_main.c
880
SET_TX_WRB_HDR_BITS(lso6, hdr,
drivers/net/ethernet/emulex/benet/be_main.c
882
SET_TX_WRB_HDR_BITS(lso_mss, hdr, wrb_params->lso_mss);
drivers/net/ethernet/emulex/benet/be_main.c
887
SET_TX_WRB_HDR_BITS(event, hdr,
drivers/net/ethernet/emulex/benet/be_main.c
889
SET_TX_WRB_HDR_BITS(vlan, hdr,
drivers/net/ethernet/emulex/benet/be_main.c
891
SET_TX_WRB_HDR_BITS(vlan_tag, hdr, wrb_params->vlan_tag);
drivers/net/ethernet/emulex/benet/be_main.c
893
SET_TX_WRB_HDR_BITS(num_wrb, hdr, skb_wrb_cnt(skb));
drivers/net/ethernet/emulex/benet/be_main.c
894
SET_TX_WRB_HDR_BITS(len, hdr, skb->len);
drivers/net/ethernet/emulex/benet/be_main.c
895
SET_TX_WRB_HDR_BITS(mgmt, hdr,
drivers/net/ethernet/emulex/benet/be_main.c
933
struct be_eth_hdr_wrb *hdr = queue_index_node(txq, head);
drivers/net/ethernet/emulex/benet/be_main.c
935
wrb_fill_hdr(adapter, hdr, wrb_params, skb);
drivers/net/ethernet/emulex/benet/be_main.c
936
be_dws_cpu_to_le(hdr, sizeof(*hdr));
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
766
struct ptp_header *hdr;
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
774
hdr = ptp_parse_header(skb, ptp_class);
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
775
if (!hdr)
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
778
*msgtype = ptp_get_msgtype(hdr, ptp_class);
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
779
*twostep = hdr->flag_field[0] & 0x2;
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
789
*correction_offset = (u8 *)&hdr->correction - base;
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
790
*origintimestamp_offset = (u8 *)hdr + sizeof(struct ptp_header) - base;
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
2455
struct vlan_ethhdr *hdr;
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
2490
hdr = vlan_eth_hdr(skb);
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
2491
vid = ntohs(hdr->h_vlan_TCI) & VLAN_VID_MASK;
drivers/net/ethernet/freescale/enetc/enetc.c
166
struct ptp_header *hdr;
drivers/net/ethernet/freescale/enetc/enetc.c
174
hdr = ptp_parse_header(skb, ptp_class);
drivers/net/ethernet/freescale/enetc/enetc.c
175
if (!hdr)
drivers/net/ethernet/freescale/enetc/enetc.c
184
*msgtype = ptp_get_msgtype(hdr, ptp_class);
drivers/net/ethernet/freescale/enetc/enetc.c
185
*twostep = hdr->flag_field[0] & 0x2;
drivers/net/ethernet/freescale/enetc/enetc.c
188
*correction_offset = (u8 *)&hdr->correction - base;
drivers/net/ethernet/freescale/enetc/enetc.c
189
*body_offset = (u8 *)hdr + sizeof(struct ptp_header) - base;
drivers/net/ethernet/freescale/enetc/enetc.c
593
char *hdr, int hdr_len, int *l4_hdr_len)
drivers/net/ethernet/freescale/enetc/enetc.c
595
char *l4_hdr = hdr + skb_transport_offset(skb);
drivers/net/ethernet/freescale/enetc/enetc.c
612
struct iphdr *iph = (void *)(hdr + mac_hdr_len);
drivers/net/ethernet/freescale/enetc/enetc.c
624
struct sk_buff *skb, char *hdr, int len,
drivers/net/ethernet/freescale/enetc/enetc.c
627
char *l4_hdr = hdr + skb_transport_offset(skb);
drivers/net/ethernet/freescale/enetc/enetc.c
693
char *hdr;
drivers/net/ethernet/freescale/enetc/enetc.c
701
hdr = tx_ring->tso_headers + *i * TSO_HEADER_SIZE;
drivers/net/ethernet/freescale/enetc/enetc.c
702
memcpy(hdr, skb->data, lso->hdr_len);
drivers/net/ethernet/freescale/enetc/enetc.c
894
char *hdr;
drivers/net/ethernet/freescale/enetc/enetc.c
906
hdr = tx_ring->tso_headers + i * TSO_HEADER_SIZE;
drivers/net/ethernet/freescale/enetc/enetc.c
907
tso_build_hdr(skb, hdr, &tso, data_len, total_len == 0);
drivers/net/ethernet/freescale/enetc/enetc.c
910
csum = enetc_tso_hdr_csum(&tso, skb, hdr, hdr_len, &pos);
drivers/net/ethernet/freescale/enetc/enetc.c
954
enetc_tso_complete_csum(tx_ring, &tso, skb, hdr, pos, csum);
drivers/net/ethernet/freescale/fec_main.c
866
char *hdr;
drivers/net/ethernet/freescale/fec_main.c
873
hdr = txq->tso_hdrs + index * TSO_HEADER_SIZE;
drivers/net/ethernet/freescale/fec_main.c
874
tso_build_hdr(skb, hdr, &tso, data_left, total_len == 0);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1199
l3.hdr = skb_network_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1200
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1214
l3.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1215
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1225
l4_offset = l4.hdr - skb->data;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1268
l3.hdr = skb_network_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1272
exthdr = l3.hdr + sizeof(*l3.v6);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1292
l3.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1296
exthdr = l3.hdr + sizeof(*l3.v6);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1328
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1347
l3.hdr = skb_network_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1348
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1351
l2_len = l3.hdr - skb->data;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1355
l3_len = l4.hdr - l3.hdr;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1360
l4_len = il2_hdr - l4.hdr;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1462
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1463
l3.hdr = skb_network_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1485
l3.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1486
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1493
l2_len = l3.hdr - l2_hdr;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
1497
l3_len = l4.hdr - l3.hdr;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
606
unsigned char *hdr;
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h
613
unsigned char *hdr;
drivers/net/ethernet/huawei/hinic/hinic_hw_io.c
126
hinic_qp_prepare_header(&sq_ctxt_block->hdr, HINIC_QP_CTXT_TYPE_SQ,
drivers/net/ethernet/huawei/hinic/hinic_hw_io.c
170
hinic_qp_prepare_header(&rq_ctxt_block->hdr, HINIC_QP_CTXT_TYPE_RQ,
drivers/net/ethernet/huawei/hinic/hinic_hw_qp_ctxt.h
201
struct hinic_qp_ctxt_header hdr;
drivers/net/ethernet/huawei/hinic/hinic_hw_qp_ctxt.h
206
struct hinic_qp_ctxt_header hdr;
drivers/net/ethernet/huawei/hinic/hinic_tx.c
214
exthdr = ip->hdr + sizeof(*ip->v6);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
216
if (exthdr != l4->hdr) {
drivers/net/ethernet/huawei/hinic/hinic_tx.c
242
*offset = *l4_len + TRANSPORT_OFFSET(l4->hdr, skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
248
*offset = TRANSPORT_OFFSET(l4->hdr, skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
258
*offset = TRANSPORT_OFFSET(l4->hdr, skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
294
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
295
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
321
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
322
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
324
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
325
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
371
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
382
exthdr = ip.hdr + sizeof(*ip.v6);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
384
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
385
if (l4.hdr != exthdr)
drivers/net/ethernet/huawei/hinic/hinic_tx.c
400
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
401
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
409
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
410
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
421
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
422
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/huawei/hinic/hinic_tx.c
57
unsigned char *hdr;
drivers/net/ethernet/huawei/hinic/hinic_tx.c
63
unsigned char *hdr;
drivers/net/ethernet/huawei/hinic3/hinic3_cmdq.c
174
struct cmdq_header *hdr = CMDQ_WQE_HEADER(wqe);
drivers/net/ethernet/huawei/hinic3/hinic3_cmdq.c
175
__le32 header_info = hdr->header_info;
drivers/net/ethernet/huawei/hinic3/hinic3_cmdq.c
358
struct cmdq_header *hdr = CMDQ_WQE_HEADER(wqe);
drivers/net/ethernet/huawei/hinic3/hinic3_cmdq.c
381
hdr->header_info =
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
183
unsigned char *hdr;
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
189
unsigned char *hdr;
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
216
TRANSPORT_OFFSET(l4->hdr, skb);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
221
*offset = TRANSPORT_OFFSET(l4->hdr, skb);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
242
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
250
exthdr = ip.hdr + sizeof(*ip.v6);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
252
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
253
if (l4.hdr != exthdr)
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
286
exthdr = ip->hdr + sizeof(*ip->v6);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
288
if (exthdr != l4->hdr) {
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
354
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
355
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
363
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
364
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
366
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/huawei/hinic3/hinic3_tx.c
367
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/ibm/emac/core.c
2174
struct emac_ethtool_regs_subhdr *hdr = buf;
drivers/net/ethernet/ibm/emac/core.c
2176
hdr->index = dev->cell_index;
drivers/net/ethernet/ibm/emac/core.c
2178
hdr->version = EMAC4SYNC_ETHTOOL_REGS_VER;
drivers/net/ethernet/ibm/emac/core.c
2180
hdr->version = EMAC4_ETHTOOL_REGS_VER;
drivers/net/ethernet/ibm/emac/core.c
2182
hdr->version = EMAC_ETHTOOL_REGS_VER;
drivers/net/ethernet/ibm/emac/core.c
2184
memcpy_fromio(hdr + 1, dev->emacp, sizeof(struct emac_regs));
drivers/net/ethernet/ibm/emac/core.c
2185
return (void *)(hdr + 1) + sizeof(struct emac_regs);
drivers/net/ethernet/ibm/emac/core.c
2192
struct emac_ethtool_regs_hdr *hdr = buf;
drivers/net/ethernet/ibm/emac/core.c
2194
hdr->components = 0;
drivers/net/ethernet/ibm/emac/core.c
2195
buf = hdr + 1;
drivers/net/ethernet/ibm/emac/core.c
2200
hdr->components |= EMAC_ETHTOOL_REGS_ZMII;
drivers/net/ethernet/ibm/emac/core.c
2204
hdr->components |= EMAC_ETHTOOL_REGS_RGMII;
drivers/net/ethernet/ibm/emac/core.c
2208
hdr->components |= EMAC_ETHTOOL_REGS_TAH;
drivers/net/ethernet/ibm/emac/mal.c
484
struct emac_ethtool_regs_subhdr *hdr = buf;
drivers/net/ethernet/ibm/emac/mal.c
485
struct mal_regs *regs = (struct mal_regs *)(hdr + 1);
drivers/net/ethernet/ibm/emac/mal.c
488
hdr->version = mal->version;
drivers/net/ethernet/ibm/emac/mal.c
489
hdr->index = mal->index;
drivers/net/ethernet/ibm/emac/rgmii.c
204
struct emac_ethtool_regs_subhdr *hdr = buf;
drivers/net/ethernet/ibm/emac/rgmii.c
205
struct rgmii_regs *regs = (struct rgmii_regs *)(hdr + 1);
drivers/net/ethernet/ibm/emac/rgmii.c
207
hdr->version = 0;
drivers/net/ethernet/ibm/emac/rgmii.c
208
hdr->index = 0; /* for now, are there chips with more than one
drivers/net/ethernet/ibm/emac/tah.c
76
struct emac_ethtool_regs_subhdr *hdr = buf;
drivers/net/ethernet/ibm/emac/tah.c
77
struct tah_regs *regs = (struct tah_regs *)(hdr + 1);
drivers/net/ethernet/ibm/emac/tah.c
79
hdr->version = 0;
drivers/net/ethernet/ibm/emac/tah.c
80
hdr->index = 0; /* for now, are there chips with more than one
drivers/net/ethernet/ibm/emac/zmii.c
221
struct emac_ethtool_regs_subhdr *hdr = buf;
drivers/net/ethernet/ibm/emac/zmii.c
222
struct zmii_regs *regs = (struct zmii_regs *)(hdr + 1);
drivers/net/ethernet/ibm/emac/zmii.c
224
hdr->version = 0;
drivers/net/ethernet/ibm/emac/zmii.c
225
hdr->index = 0; /* for now, are there chips with more than one
drivers/net/ethernet/ibm/ibmvnic.c
2235
data = hdr_desc->hdr.data;
drivers/net/ethernet/ibm/ibmvnic.c
2237
hdr_desc->hdr.first = IBMVNIC_CRQ_CMD;
drivers/net/ethernet/ibm/ibmvnic.c
2238
hdr_desc->hdr.type = IBMVNIC_HDR_DESC;
drivers/net/ethernet/ibm/ibmvnic.c
2239
hdr_desc->hdr.len = tmp;
drivers/net/ethernet/ibm/ibmvnic.c
2240
hdr_desc->hdr.l2_len = (u8)hdr_len[0];
drivers/net/ethernet/ibm/ibmvnic.c
2241
hdr_desc->hdr.l3_len = cpu_to_be16((u16)hdr_len[1]);
drivers/net/ethernet/ibm/ibmvnic.c
2242
hdr_desc->hdr.l4_len = (u8)hdr_len[2];
drivers/net/ethernet/ibm/ibmvnic.c
2243
hdr_desc->hdr.flag = hdr_field << 1;
drivers/net/ethernet/ibm/ibmvnic.h
804
struct ibmvnic_hdr_desc hdr;
drivers/net/ethernet/intel/e1000e/manage.c
123
hdr_csum = hdr->checksum;
drivers/net/ethernet/intel/e1000e/manage.c
124
hdr->checksum = 0;
drivers/net/ethernet/intel/e1000e/manage.c
125
csum = e1000_calculate_checksum((u8 *)hdr,
drivers/net/ethernet/intel/e1000e/manage.c
131
if ((hdr_csum != csum) || (hdr->signature != E1000_IAMT_SIGNATURE)) {
drivers/net/ethernet/intel/e1000e/manage.c
137
if (!(hdr->status & E1000_MNG_DHCP_COOKIE_STATUS_PARSING))
drivers/net/ethernet/intel/e1000e/manage.c
151
struct e1000_host_mng_command_header *hdr)
drivers/net/ethernet/intel/e1000e/manage.c
157
hdr->checksum = e1000_calculate_checksum((u8 *)hdr, length);
drivers/net/ethernet/intel/e1000e/manage.c
162
E1000_WRITE_REG_ARRAY(hw, E1000_HOST_IF, i, *((u32 *)hdr + i));
drivers/net/ethernet/intel/e1000e/manage.c
251
struct e1000_host_mng_command_header hdr;
drivers/net/ethernet/intel/e1000e/manage.c
255
hdr.command_id = E1000_MNG_DHCP_TX_PAYLOAD_CMD;
drivers/net/ethernet/intel/e1000e/manage.c
256
hdr.command_length = length;
drivers/net/ethernet/intel/e1000e/manage.c
257
hdr.reserved1 = 0;
drivers/net/ethernet/intel/e1000e/manage.c
258
hdr.reserved2 = 0;
drivers/net/ethernet/intel/e1000e/manage.c
259
hdr.checksum = 0;
drivers/net/ethernet/intel/e1000e/manage.c
268
sizeof(hdr), &(hdr.checksum));
drivers/net/ethernet/intel/e1000e/manage.c
273
ret_val = e1000_mng_write_cmd_header(hw, &hdr);
drivers/net/ethernet/intel/e1000e/manage.c
94
struct e1000_host_mng_dhcp_cookie *hdr = &hw->mng_cookie;
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1151
const u32 *hdr = &mbx->mbx_hdr;
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1155
size = FM10K_MSG_HDR_FIELD_GET(*hdr, CONNECT_SIZE);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1156
head = FM10K_MSG_HDR_FIELD_GET(*hdr, HEAD);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1197
const u32 *hdr = &mbx->mbx_hdr;
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1202
head = FM10K_MSG_HDR_FIELD_GET(*hdr, HEAD);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1203
tail = FM10K_MSG_HDR_FIELD_GET(*hdr, TAIL);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1240
const u32 *hdr = &mbx->mbx_hdr;
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1245
head = FM10K_MSG_HDR_FIELD_GET(*hdr, HEAD);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1292
const u32 *hdr = &mbx->mbx_hdr;
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1296
head = FM10K_MSG_HDR_FIELD_GET(*hdr, HEAD);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1774
const u32 *hdr = &mbx->mbx_hdr;
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1777
tail = FM10K_MSG_HDR_FIELD_GET(*hdr, SM_TAIL);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1778
ver = FM10K_MSG_HDR_FIELD_GET(*hdr, SM_VER);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
1779
head = FM10K_MSG_HDR_FIELD_GET(*hdr, SM_HEAD);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
2042
const u32 *hdr = &mbx->mbx_hdr;
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
2047
tail = FM10K_MSG_HDR_FIELD_GET(*hdr, SM_TAIL);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
2048
head = FM10K_MSG_HDR_FIELD_GET(*hdr, SM_HEAD);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
853
u32 hdr = FM10K_MSG_HDR_FIELD_SET(FM10K_MSG_DATA, TYPE) |
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
865
crc = fm10k_crc_16b(&hdr, crc, 1);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
868
mbx->mbx_hdr = hdr | FM10K_MSG_HDR_FIELD_SET(crc, CRC);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
879
u32 hdr = FM10K_MSG_HDR_FIELD_SET(FM10K_MSG_DISCONNECT, TYPE) |
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
882
u16 crc = fm10k_crc_16b(&hdr, mbx->local, 1);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
887
mbx->mbx_hdr = hdr | FM10K_MSG_HDR_FIELD_SET(crc, CRC);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
900
u32 hdr = FM10K_MSG_HDR_FIELD_SET(FM10K_MSG_DISCONNECT, TYPE) |
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
903
u16 crc = fm10k_crc_16b(&hdr, mbx->local, 1);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
908
mbx->mbx_hdr = hdr | FM10K_MSG_HDR_FIELD_SET(crc, CRC);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
953
const u32 *hdr = &mbx->mbx_hdr;
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
955
type = FM10K_MSG_HDR_FIELD_GET(*hdr, TYPE);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
956
rsvd0 = FM10K_MSG_HDR_FIELD_GET(*hdr, RSVD0);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
957
tail = FM10K_MSG_HDR_FIELD_GET(*hdr, TAIL);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
958
head = FM10K_MSG_HDR_FIELD_GET(*hdr, HEAD);
drivers/net/ethernet/intel/fm10k/fm10k_mbx.c
959
size = FM10K_MSG_HDR_FIELD_GET(*hdr, CONNECT_SIZE);
drivers/net/ethernet/intel/i40e/i40e_dcb.c
347
typelength = ntohs(tlv->hdr.typelen);
drivers/net/ethernet/intel/i40e/i40e_dcb.c
419
typelength = ntohs(sub_tlv->hdr.typelen);
drivers/net/ethernet/intel/i40e/i40e_dcb.c
438
sizeof(sub_tlv->hdr.typelen) +
drivers/net/ethernet/intel/i40e/i40e_dcb.h
123
struct i40e_cee_tlv_hdr hdr;
drivers/net/ethernet/intel/i40e/i40e_dcb.h
129
struct i40e_cee_tlv_hdr hdr;
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
439
char hdr[32];
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
442
snprintf(hdr, sizeof(hdr), "%s %s: ",
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
456
print_hex_dump(KERN_INFO, hdr, DUMP_PREFIX_NONE,
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
469
print_hex_dump(KERN_INFO, hdr, DUMP_PREFIX_NONE,
drivers/net/ethernet/intel/i40e/i40e_txrx.c
2867
} hdr;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
2890
hdr.network = (tx_flags & I40E_TX_FLAGS_UDP_TUNNEL) ?
drivers/net/ethernet/intel/i40e/i40e_txrx.c
2898
hlen = (hdr.network[0] & 0x0F) << 2;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
2899
l4_proto = hdr.ipv4->protocol;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
2902
unsigned int inner_hlen = hdr.network - skb->data;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
2915
th = (struct tcphdr *)(hdr.network + hlen);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3084
unsigned char *hdr;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3089
unsigned char *hdr;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3108
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3110
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3111
l4.hdr = skb_checksum_start(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3135
l4_offset = l4.hdr - skb->data;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3144
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3145
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3157
l4_offset = l4.hdr - skb->data;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3250
unsigned char *hdr;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3255
unsigned char *hdr;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3269
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3270
l4.hdr = skb_checksum_start(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3272
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3273
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3285
offset = ((ip.hdr - skb->data) / 2) << I40E_TX_DESC_LENGTH_MACLEN_SHIFT;
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3301
exthdr = ip.hdr + sizeof(*ip.v6);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3322
l4.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3333
tunnel |= ((l4.hdr - ip.hdr) / 4) <<
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3337
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3340
tunnel |= ((ip.hdr - l4.hdr) / 2) <<
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3353
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3376
exthdr = ip.hdr + sizeof(*ip.v6);
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3378
if (l4.hdr != exthdr)
drivers/net/ethernet/intel/i40e/i40e_txrx.c
3384
offset |= ((l4.hdr - ip.hdr) / 4) << I40E_TX_DESC_LENGTH_IPLEN_SHIFT;
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
111
struct virtchnl_proto_hdr *hdr;
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
113
hdr = &proto_hdrs->proto_hdr[proto_hdrs->count - 1];
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
118
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, GTPC);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
121
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, GTPU_EH);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
124
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, GTPU_EH_PDU_UP);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
125
hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
126
iavf_fill_adv_rss_ip4_hdr(hdr, IAVF_ADV_RSS_HASH_FLD_IPV4_DA);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
129
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, GTPU_EH_PDU_DWN);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
132
hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
133
iavf_fill_adv_rss_ip4_hdr(hdr, IAVF_ADV_RSS_HASH_FLD_IPV4_DA);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
14
iavf_fill_adv_rss_ip4_hdr(struct virtchnl_proto_hdr *hdr, u64 hash_flds)
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
158
struct virtchnl_proto_hdr *hdr;
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
16
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, IPV4);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
168
hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
171
iavf_fill_adv_rss_ip4_hdr(hdr, hash_flds);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
174
iavf_fill_adv_rss_ip6_hdr(hdr, hash_flds);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
182
hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
185
iavf_fill_adv_rss_tcp_hdr(hdr, hash_flds);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
188
iavf_fill_adv_rss_udp_hdr(hdr, hash_flds);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
19
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV4, SRC);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
191
iavf_fill_adv_rss_sctp_hdr(hdr, hash_flds);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
199
hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
22
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV4, DST);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
31
iavf_fill_adv_rss_ip6_hdr(struct virtchnl_proto_hdr *hdr, u64 hash_flds)
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
33
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, IPV6);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
36
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV6, SRC);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
39
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV6, DST);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
48
iavf_fill_adv_rss_tcp_hdr(struct virtchnl_proto_hdr *hdr, u64 hash_flds)
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
50
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, TCP);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
53
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, TCP, SRC_PORT);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
56
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, TCP, DST_PORT);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
65
iavf_fill_adv_rss_udp_hdr(struct virtchnl_proto_hdr *hdr, u64 hash_flds)
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
67
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, UDP);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
70
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, UDP, SRC_PORT);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
73
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, UDP, DST_PORT);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
82
iavf_fill_adv_rss_sctp_hdr(struct virtchnl_proto_hdr *hdr, u64 hash_flds)
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
84
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, SCTP);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
87
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, SCTP, SRC_PORT);
drivers/net/ethernet/intel/iavf/iavf_adv_rss.c
90
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, SCTP, DST_PORT);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
191
struct virtchnl_proto_hdr *hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
195
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, PFCP);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
208
hdr->buffer[0] = (fltr->flex_words[i].word >> 8) & 0xff;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
209
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, PFCP, S_FIELD);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
233
struct virtchnl_proto_hdr *hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
238
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, ESP);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
265
*(__be32 *)hdr->buffer = htonl(spi);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
266
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, ESP, SPI);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
315
struct virtchnl_proto_hdr *hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
316
struct iphdr *iph = (struct iphdr *)hdr->buffer;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
318
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, IPV4);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
322
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV4, DSCP);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
327
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV4, PROT);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
332
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV4, SRC);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
337
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV4, DST);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
354
struct virtchnl_proto_hdr *hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
355
struct ipv6hdr *iph = (struct ipv6hdr *)hdr->buffer;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
357
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, IPV6);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
362
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV6, TC);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
367
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV6, PROT);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
374
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV6, SRC);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
381
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, IPV6, DST);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
398
struct virtchnl_proto_hdr *hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
399
struct tcphdr *tcph = (struct tcphdr *)hdr->buffer;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
401
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, TCP);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
405
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, TCP, SRC_PORT);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
410
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, TCP, DST_PORT);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
427
struct virtchnl_proto_hdr *hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
428
struct udphdr *udph = (struct udphdr *)hdr->buffer;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
430
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, UDP);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
434
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, UDP, SRC_PORT);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
439
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, UDP, DST_PORT);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
459
struct virtchnl_proto_hdr *hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
460
struct sctphdr *sctph = (struct sctphdr *)hdr->buffer;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
462
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, SCTP);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
466
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, SCTP, SRC_PORT);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
471
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, SCTP, DST_PORT);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
488
struct virtchnl_proto_hdr *hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
489
struct ip_auth_hdr *ah = (struct ip_auth_hdr *)hdr->buffer;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
491
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, AH);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
495
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, AH, SPI);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
512
struct virtchnl_proto_hdr *hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
513
struct ip_esp_hdr *esph = (struct ip_esp_hdr *)hdr->buffer;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
515
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, ESP);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
519
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, ESP, SPI);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
536
struct virtchnl_proto_hdr *hdr;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
542
hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
543
l4_4_data = (__be32 *)hdr->buffer;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
547
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, L2TPV3);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
548
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, L2TPV3, SESS_ID);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
569
struct virtchnl_proto_hdr *hdr = &proto_hdrs->proto_hdr[proto_hdrs->count++];
drivers/net/ethernet/intel/iavf/iavf_fdir.c
570
struct ethhdr *ehdr = (struct ethhdr *)hdr->buffer;
drivers/net/ethernet/intel/iavf/iavf_fdir.c
572
VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, ETH);
drivers/net/ethernet/intel/iavf/iavf_fdir.c
580
VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, ETH, ETHERTYPE);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1737
unsigned char *hdr;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1742
unsigned char *hdr;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1758
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1759
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1780
l4_offset = l4.hdr - skb->data;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1789
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1790
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1802
l4_offset = l4.hdr - skb->data;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1853
unsigned char *hdr;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1858
unsigned char *hdr;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1868
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1869
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1872
offset = ((ip.hdr - skb->data) / 2) << IAVF_TX_DESC_LENGTH_MACLEN_SHIFT;
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1886
exthdr = ip.hdr + sizeof(*ip.v6);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1888
if (l4.hdr != exthdr)
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1906
l4.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1917
tunnel |= ((l4.hdr - ip.hdr) / 4) <<
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1921
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1924
tunnel |= ((ip.hdr - l4.hdr) / 2) <<
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1937
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1960
exthdr = ip.hdr + sizeof(*ip.v6);
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1962
if (l4.hdr != exthdr)
drivers/net/ethernet/intel/iavf/iavf_txrx.c
1968
offset |= ((l4.hdr - ip.hdr) / 4) << IAVF_TX_DESC_LENGTH_IPLEN_SHIFT;
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
554
struct ice_aqc_sw_rules_elem_hdr hdr;
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
640
struct ice_aqc_sw_rules_elem_hdr hdr;
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
702
struct ice_aqc_sw_rules_elem_hdr hdr;
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
774
struct ice_aqc_txsched_move_grp_info_hdr hdr;
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
827
struct ice_aqc_txsched_topo_grp_info_hdr hdr;
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
832
struct ice_aqc_txsched_topo_grp_info_hdr hdr;
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
838
struct ice_aqc_txsched_topo_grp_info_hdr hdr;
drivers/net/ethernet/intel/ice/ice_dcb.c
455
typelen = ntohs(tlv->hdr.typelen);
drivers/net/ethernet/intel/ice/ice_dcb.c
528
typelen = ntohs(sub_tlv->hdr.typelen);
drivers/net/ethernet/intel/ice/ice_dcb.c
547
((char *)sub_tlv + sizeof(sub_tlv->hdr.typelen) +
drivers/net/ethernet/intel/ice/ice_dcb.h
118
struct ice_cee_tlv_hdr hdr;
drivers/net/ethernet/intel/ice/ice_dcb.h
124
struct ice_cee_tlv_hdr hdr;
drivers/net/ethernet/intel/ice/ice_ddp.c
1233
struct ice_buf_hdr *hdr;
drivers/net/ethernet/intel/ice/ice_ddp.c
124
const struct ice_buf_hdr *hdr;
drivers/net/ethernet/intel/ice/ice_ddp.c
1259
struct ice_buf_hdr *prev_hunk = ctx->hdr;
drivers/net/ethernet/intel/ice/ice_ddp.c
1269
ctx->hdr = hunk;
drivers/net/ethernet/intel/ice/ice_ddp.c
128
hdr = (const struct ice_buf_hdr *)buf->buf;
drivers/net/ethernet/intel/ice/ice_ddp.c
130
section_count = le16_to_cpu(hdr->section_count);
drivers/net/ethernet/intel/ice/ice_ddp.c
134
data_end = le16_to_cpu(hdr->data_end);
drivers/net/ethernet/intel/ice/ice_ddp.c
138
return hdr;
drivers/net/ethernet/intel/ice/ice_ddp.c
1636
ice_seg->hdr.seg_format_ver.major,
drivers/net/ethernet/intel/ice/ice_ddp.c
1637
ice_seg->hdr.seg_format_ver.minor,
drivers/net/ethernet/intel/ice/ice_ddp.c
1638
ice_seg->hdr.seg_format_ver.update,
drivers/net/ethernet/intel/ice/ice_ddp.c
1639
ice_seg->hdr.seg_format_ver.draft);
drivers/net/ethernet/intel/ice/ice_ddp.c
1642
le32_to_cpu(ice_seg->hdr.seg_type),
drivers/net/ethernet/intel/ice/ice_ddp.c
1643
le32_to_cpu(ice_seg->hdr.seg_size), ice_seg->hdr.seg_id);
drivers/net/ethernet/intel/ice/ice_ddp.c
2074
if ((*seg)->hdr.seg_format_ver.major !=
drivers/net/ethernet/intel/ice/ice_ddp.c
2076
(*seg)->hdr.seg_format_ver.minor >
drivers/net/ethernet/intel/ice/ice_ddp.h
138
struct ice_generic_seg_hdr hdr;
drivers/net/ethernet/intel/ice/ice_ddp.h
159
struct ice_generic_seg_hdr hdr;
drivers/net/ethernet/intel/ice/ice_ddp.h
166
struct ice_generic_seg_hdr hdr;
drivers/net/ethernet/intel/ice/ice_ddp.h
178
struct ice_generic_seg_hdr hdr;
drivers/net/ethernet/intel/ice/ice_dpll.c
2885
u16 addr, len, end, hdr;
drivers/net/ethernet/intel/ice/ice_dpll.c
2888
ret = ice_get_pfa_module_tlv(hw, &hdr, &len, ICE_SR_PFA_DPLL_DEFAULTS);
drivers/net/ethernet/intel/ice/ice_dpll.c
2894
end = hdr + len;
drivers/net/ethernet/intel/ice/ice_dpll.c
2896
for (addr = hdr + ICE_DPLL_PFA_HEADER_LEN; addr < end;
drivers/net/ethernet/intel/ice/ice_flow.c
1928
ICE_FLOW_SET_HDRS(seg, ice_flds_info[fld].hdr);
drivers/net/ethernet/intel/ice/ice_flow.c
42
enum ice_flow_seg_hdr hdr;
drivers/net/ethernet/intel/ice/ice_flow.c
49
.hdr = _hdr, \
drivers/net/ethernet/intel/ice/ice_flow.c
57
.hdr = _hdr, \
drivers/net/ethernet/intel/ice/ice_lag.c
1296
buf->hdr.src_parent_teid = parent_teid;
drivers/net/ethernet/intel/ice/ice_lag.c
1297
buf->hdr.dest_parent_teid = n_prt->info.node_teid;
drivers/net/ethernet/intel/ice/ice_lag.c
1298
buf->hdr.num_elems = cpu_to_le16(1);
drivers/net/ethernet/intel/ice/ice_lag.c
1299
buf->hdr.mode = ICE_AQC_MOVE_ELEM_MODE_KEEP_OWN;
drivers/net/ethernet/intel/ice/ice_lag.c
1584
s_rule->hdr.type = cpu_to_le16(ICE_AQC_SW_RULES_T_PRUNE_LIST_SET);
drivers/net/ethernet/intel/ice/ice_lag.c
1623
s_rule->hdr.type = cpu_to_le16(ICE_AQC_SW_RULES_T_PRUNE_LIST_CLEAR);
drivers/net/ethernet/intel/ice/ice_lag.c
2514
buf->hdr.src_parent_teid = parent_teid;
drivers/net/ethernet/intel/ice/ice_lag.c
2515
buf->hdr.dest_parent_teid = n_prt->info.node_teid;
drivers/net/ethernet/intel/ice/ice_lag.c
2516
buf->hdr.num_elems = cpu_to_le16(1);
drivers/net/ethernet/intel/ice/ice_lag.c
2517
buf->hdr.mode = ICE_AQC_MOVE_ELEM_MODE_KEEP_OWN;
drivers/net/ethernet/intel/ice/ice_lag.c
263
s_rule->hdr.type =
drivers/net/ethernet/intel/ice/ice_lag.c
267
s_rule->hdr.type =
drivers/net/ethernet/intel/ice/ice_lag.c
410
s_rule->hdr.type = cpu_to_le16(ICE_AQC_SW_RULES_T_LKUP_RX);
drivers/net/ethernet/intel/ice/ice_lag.c
709
buf->hdr.src_parent_teid = parent_teid;
drivers/net/ethernet/intel/ice/ice_lag.c
710
buf->hdr.dest_parent_teid = n_prt->info.node_teid;
drivers/net/ethernet/intel/ice/ice_lag.c
711
buf->hdr.num_elems = cpu_to_le16(1);
drivers/net/ethernet/intel/ice/ice_lag.c
712
buf->hdr.mode = ICE_AQC_MOVE_ELEM_MODE_KEEP_OWN;
drivers/net/ethernet/intel/ice/ice_parser.c
114
struct ice_pkg_sect_hdr *hdr = state.sect;
drivers/net/ethernet/intel/ice/ice_parser.c
117
idx = le16_to_cpu(hdr->offset) +
drivers/net/ethernet/intel/ice/ice_parser.c
24
struct ice_pkg_sect_hdr *hdr;
drivers/net/ethernet/intel/ice/ice_parser.c
72
hdr = section;
drivers/net/ethernet/intel/ice/ice_parser.c
73
if (index >= le16_to_cpu(hdr->count))
drivers/net/ethernet/intel/ice/ice_sched.c
1277
num_elems = le16_to_cpu(buf[0].hdr.num_elems);
drivers/net/ethernet/intel/ice/ice_sched.c
1305
num_elems = le16_to_cpu(buf[i].hdr.num_elems);
drivers/net/ethernet/intel/ice/ice_sched.c
2362
buf->hdr.src_parent_teid = node->info.parent_teid;
drivers/net/ethernet/intel/ice/ice_sched.c
2363
buf->hdr.dest_parent_teid = parent->info.node_teid;
drivers/net/ethernet/intel/ice/ice_sched.c
2365
buf->hdr.num_elems = cpu_to_le16(1);
drivers/net/ethernet/intel/ice/ice_sched.c
264
buf->hdr.parent_teid = parent->info.node_teid;
drivers/net/ethernet/intel/ice/ice_sched.c
265
buf->hdr.num_elems = cpu_to_le16(1);
drivers/net/ethernet/intel/ice/ice_sched.c
922
buf->hdr.parent_teid = parent->info.node_teid;
drivers/net/ethernet/intel/ice/ice_sched.c
923
buf->hdr.num_elems = cpu_to_le16(num_nodes);
drivers/net/ethernet/intel/ice/ice_switch.c
2712
s_rule->hdr.type = (f_info->flag & ICE_FLTR_RX) ?
drivers/net/ethernet/intel/ice/ice_switch.c
2781
lg_act->hdr.type = cpu_to_le16(ICE_AQC_SW_RULES_T_LG_ACT);
drivers/net/ethernet/intel/ice/ice_switch.c
2926
s_rule->hdr.type = cpu_to_le16(rule_type);
drivers/net/ethernet/intel/ice/ice_switch.c
3346
s_rule->hdr.type = cpu_to_le16(ICE_AQC_SW_RULES_T_VSI_LIST_CLEAR);
drivers/net/ethernet/intel/ice/ice_switch.c
5793
struct ice_l4_hdr *hdr;
drivers/net/ethernet/intel/ice/ice_switch.c
5797
hdr = (struct ice_l4_hdr *)&pkt[offset];
drivers/net/ethernet/intel/ice/ice_switch.c
5798
hdr->dst_port = cpu_to_be16(open_port);
drivers/net/ethernet/intel/ice/ice_switch.c
5828
struct ice_vlan_hdr *hdr;
drivers/net/ethernet/intel/ice/ice_switch.c
5832
hdr = (struct ice_vlan_hdr *)&pkt[offset];
drivers/net/ethernet/intel/ice/ice_switch.c
5833
hdr->type = cpu_to_be16(vlan_type);
drivers/net/ethernet/intel/ice/ice_switch.c
6208
s_rule->hdr.type = cpu_to_le16(ICE_AQC_SW_RULES_T_LKUP_TX);
drivers/net/ethernet/intel/ice/ice_switch.c
6211
s_rule->hdr.type = cpu_to_le16(ICE_AQC_SW_RULES_T_LKUP_RX);
drivers/net/ethernet/intel/ice/ice_tc_lib.c
187
struct ice_tc_flower_lyr_2_4_hdrs *hdr = &fltr->outer_headers;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
222
hdr->l2_key.dst_mac);
drivers/net/ethernet/intel/ice/ice_tc_lib.c
224
hdr->l2_mask.dst_mac);
drivers/net/ethernet/intel/ice/ice_tc_lib.c
266
list[i].h_u.ipv4_hdr.src_addr = hdr->l3_key.src_ipv4;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
267
list[i].m_u.ipv4_hdr.src_addr = hdr->l3_mask.src_ipv4;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
270
list[i].h_u.ipv4_hdr.dst_addr = hdr->l3_key.dst_ipv4;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
271
list[i].m_u.ipv4_hdr.dst_addr = hdr->l3_mask.dst_ipv4;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
282
&hdr->l3_key.src_ipv6_addr,
drivers/net/ethernet/intel/ice/ice_tc_lib.c
283
sizeof(hdr->l3_key.src_ipv6_addr));
drivers/net/ethernet/intel/ice/ice_tc_lib.c
285
&hdr->l3_mask.src_ipv6_addr,
drivers/net/ethernet/intel/ice/ice_tc_lib.c
286
sizeof(hdr->l3_mask.src_ipv6_addr));
drivers/net/ethernet/intel/ice/ice_tc_lib.c
290
&hdr->l3_key.dst_ipv6_addr,
drivers/net/ethernet/intel/ice/ice_tc_lib.c
291
sizeof(hdr->l3_key.dst_ipv6_addr));
drivers/net/ethernet/intel/ice/ice_tc_lib.c
293
&hdr->l3_mask.dst_ipv6_addr,
drivers/net/ethernet/intel/ice/ice_tc_lib.c
294
sizeof(hdr->l3_mask.dst_ipv6_addr));
drivers/net/ethernet/intel/ice/ice_tc_lib.c
305
list[i].h_u.ipv4_hdr.tos = hdr->l3_key.tos;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
306
list[i].m_u.ipv4_hdr.tos = hdr->l3_mask.tos;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
310
list[i].h_u.ipv4_hdr.time_to_live = hdr->l3_key.ttl;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
311
list[i].m_u.ipv4_hdr.time_to_live = hdr->l3_mask.ttl;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
328
hdr->l3_key.tos,
drivers/net/ethernet/intel/ice/ice_tc_lib.c
331
hdr->l3_mask.tos,
drivers/net/ethernet/intel/ice/ice_tc_lib.c
336
hdr_h->hop_limit = hdr->l3_key.ttl;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
337
hdr_m->hop_limit = hdr->l3_mask.ttl;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
344
hdr->l3_key.ip_proto == IPPROTO_UDP) {
drivers/net/ethernet/intel/ice/ice_tc_lib.c
346
list[i].h_u.l4_hdr.dst_port = hdr->l4_key.dst_port;
drivers/net/ethernet/intel/ice/ice_tc_lib.c
347
list[i].m_u.l4_hdr.dst_port = hdr->l4_mask.dst_port;
drivers/net/ethernet/intel/ice/ice_txrx.c
1593
unsigned char *hdr;
drivers/net/ethernet/intel/ice/ice_txrx.c
1597
unsigned char *hdr;
drivers/net/ethernet/intel/ice/ice_txrx.c
1610
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1611
l4.hdr = skb_checksum_start(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1613
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1614
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1618
l2_len = ip.hdr - skb->data;
drivers/net/ethernet/intel/ice/ice_txrx.c
1643
exthdr = ip.hdr + sizeof(*ip.v6);
drivers/net/ethernet/intel/ice/ice_txrx.c
1664
l4.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1675
tunnel |= ((l4.hdr - ip.hdr) / 4) <<
drivers/net/ethernet/intel/ice/ice_txrx.c
1679
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1682
tunnel |= ((ip.hdr - l4.hdr) / 2) <<
drivers/net/ethernet/intel/ice/ice_txrx.c
1700
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1724
exthdr = ip.hdr + sizeof(*ip.v6);
drivers/net/ethernet/intel/ice/ice_txrx.c
1726
if (l4.hdr != exthdr)
drivers/net/ethernet/intel/ice/ice_txrx.c
1734
l3_len = l4.hdr - ip.hdr;
drivers/net/ethernet/intel/ice/ice_txrx.c
1840
unsigned char *hdr;
drivers/net/ethernet/intel/ice/ice_txrx.c
1845
unsigned char *hdr;
drivers/net/ethernet/intel/ice/ice_txrx.c
1866
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1868
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1869
l4.hdr = skb_checksum_start(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1890
l4_start = (u8)(l4.hdr - skb->data);
drivers/net/ethernet/intel/ice/ice_txrx.c
1899
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1900
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/intel/ice/ice_txrx.c
1912
l4_start = (u8)(l4.hdr - skb->data);
drivers/net/ethernet/intel/ice/virt/fdir.c
1009
udph = (struct udphdr *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
1015
if (hdr->field_selector) {
drivers/net/ethernet/intel/ice/virt/fdir.c
1026
sctph = (struct sctphdr *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
1034
if (hdr->field_selector) {
drivers/net/ethernet/intel/ice/virt/fdir.c
1050
if (hdr->field_selector)
drivers/net/ethernet/intel/ice/virt/fdir.c
1051
input->l2tpv3_data.session_id = *((__be32 *)hdr->buffer);
drivers/net/ethernet/intel/ice/virt/fdir.c
1054
esph = (struct ip_esp_hdr *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
1073
if (hdr->field_selector) {
drivers/net/ethernet/intel/ice/virt/fdir.c
1081
ah = (struct ip_auth_hdr *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
1087
if (hdr->field_selector) {
drivers/net/ethernet/intel/ice/virt/fdir.c
1095
rawh = (u8 *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
1106
if (hdr->field_selector) {
drivers/net/ethernet/intel/ice/virt/fdir.c
1114
rawh = (u8 *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
1117
if (hdr->field_selector)
drivers/net/ethernet/intel/ice/virt/fdir.c
1122
rawh = (u8 *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
1124
if (hdr->field_selector)
drivers/net/ethernet/intel/ice/virt/fdir.c
1130
hdr->type, vf->vf_id);
drivers/net/ethernet/intel/ice/virt/fdir.c
251
struct virtchnl_proto_hdr hdr;
drivers/net/ethernet/intel/ice/virt/fdir.c
254
memcpy(&hdr, proto_hdr, sizeof(hdr));
drivers/net/ethernet/intel/ice/virt/fdir.c
257
VIRTCHNL_GET_PROTO_HDR_FIELD(&hdr); i++)
drivers/net/ethernet/intel/ice/virt/fdir.c
258
if (VIRTCHNL_TEST_PROTO_HDR(&hdr, fdir_inset_map[i].field)) {
drivers/net/ethernet/intel/ice/virt/fdir.c
268
VIRTCHNL_DEL_PROTO_HDR_FIELD(&hdr,
drivers/net/ethernet/intel/ice/virt/fdir.c
301
struct virtchnl_proto_hdr *hdr = &proto->proto_hdr[i];
drivers/net/ethernet/intel/ice/virt/fdir.c
304
ret = ice_vc_fdir_parse_flow_fld(hdr, conf, fld, &fld_cnt);
drivers/net/ethernet/intel/ice/virt/fdir.c
942
struct virtchnl_proto_hdr *hdr = &proto->proto_hdr[i];
drivers/net/ethernet/intel/ice/virt/fdir.c
954
switch (hdr->type) {
drivers/net/ethernet/intel/ice/virt/fdir.c
956
eth = (struct ethhdr *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
959
if (hdr->field_selector)
drivers/net/ethernet/intel/ice/virt/fdir.c
963
iph = (struct iphdr *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
967
if (hdr->field_selector) {
drivers/net/ethernet/intel/ice/virt/fdir.c
975
ip6h = (struct ipv6hdr *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
979
if (hdr->field_selector) {
drivers/net/ethernet/intel/ice/virt/fdir.c
992
tcph = (struct tcphdr *)hdr->buffer;
drivers/net/ethernet/intel/ice/virt/fdir.c
998
if (hdr->field_selector) {
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
111
l4.hdr = skb_inner_transport_header(skb);
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
145
l3_len = l4.hdr - ip.hdr;
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
23
unsigned char *hdr;
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
27
unsigned char *hdr;
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
37
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
38
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
41
l2_len = ip.hdr - skb->data;
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
78
l4.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
92
(l4.hdr - ip.hdr) / 4);
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
95
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/idpf/idpf_singleq_txrx.c
99
(ip.hdr - l4.hdr) / 2);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
2827
unsigned char *hdr;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
2832
unsigned char *hdr;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
2846
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
2847
l4.hdr = skb_transport_header(skb);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3461
static u32 idpf_rx_hsplit_wa(const struct libeth_fqe *hdr,
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3473
hdr_page = __netmem_to_page(hdr->netmem);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3475
dst = page_address(hdr_page) + hdr->offset +
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3541
struct libeth_fqe *hdr, *rx_buf = NULL;
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3603
hdr = &rx_bufq->hdr_buf[buf_id];
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3606
hdr_len = idpf_rx_hsplit_wa(hdr, rx_buf, pkt_len);
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3615
if (libeth_xdp_process_buff(xdp, hdr, hdr_len))
drivers/net/ethernet/intel/idpf/idpf_txrx.c
3618
hdr->netmem = 0;
drivers/net/ethernet/intel/igb/igb_main.c
6057
unsigned char *hdr;
drivers/net/ethernet/intel/igb/igb_main.c
6062
unsigned char *hdr;
drivers/net/ethernet/intel/igb/igb_main.c
6077
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/igb/igb_main.c
6078
l4.hdr = skb_checksum_start(skb);
drivers/net/ethernet/intel/igb/igb_main.c
6087
unsigned char *trans_start = ip.hdr + (ip.v4->ihl * 4);
drivers/net/ethernet/intel/igb/igb_main.c
6108
l4_offset = l4.hdr - skb->data;
drivers/net/ethernet/intel/igb/igb_main.c
6133
vlan_macip_lens = l4.hdr - ip.hdr;
drivers/net/ethernet/intel/igb/igb_main.c
6134
vlan_macip_lens |= (ip.hdr - skb->data) << E1000_ADVTXD_MACLEN_SHIFT;
drivers/net/ethernet/intel/igbvf/netdev.c
1999
unsigned char *hdr;
drivers/net/ethernet/intel/igbvf/netdev.c
2003
unsigned char *hdr;
drivers/net/ethernet/intel/igbvf/netdev.c
2018
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/igbvf/netdev.c
2019
l4.hdr = skb_checksum_start(skb);
drivers/net/ethernet/intel/igbvf/netdev.c
2027
unsigned char *trans_start = ip.hdr + (ip.v4->ihl * 4);
drivers/net/ethernet/intel/igbvf/netdev.c
2043
l4_offset = l4.hdr - skb->data;
drivers/net/ethernet/intel/igbvf/netdev.c
2057
vlan_macip_lens = l4.hdr - ip.hdr;
drivers/net/ethernet/intel/igbvf/netdev.c
2058
vlan_macip_lens |= (ip.hdr - skb->data) << E1000_ADVTXD_MACLEN_SHIFT;
drivers/net/ethernet/intel/igc/igc_main.c
1461
unsigned char *hdr;
drivers/net/ethernet/intel/igc/igc_main.c
1466
unsigned char *hdr;
drivers/net/ethernet/intel/igc/igc_main.c
1481
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/igc/igc_main.c
1482
l4.hdr = skb_checksum_start(skb);
drivers/net/ethernet/intel/igc/igc_main.c
1490
unsigned char *trans_start = ip.hdr + (ip.v4->ihl * 4);
drivers/net/ethernet/intel/igc/igc_main.c
1511
l4_offset = l4.hdr - skb->data;
drivers/net/ethernet/intel/igc/igc_main.c
1536
vlan_macip_lens = l4.hdr - ip.hdr;
drivers/net/ethernet/intel/igc/igc_main.c
1537
vlan_macip_lens |= (ip.hdr - skb->data) << IGC_ADVTXD_MACLEN_SHIFT;
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
3702
struct ixgbe_hic_hdr *hdr = buffer;
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
3734
buf_len = hdr->buf_len;
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
3782
fw_cmd.hdr.cmd = FW_CEM_CMD_DRIVER_INFO;
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
3783
fw_cmd.hdr.buf_len = FW_CEM_CMD_DRIVER_INFO_LEN;
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
3784
fw_cmd.hdr.cmd_or_resp.cmd_resv = FW_CEM_CMD_RESERVED;
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
3790
fw_cmd.hdr.checksum = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
3793
fw_cmd.hdr.checksum = ixgbe_calculate_checksum((u8 *)&fw_cmd,
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
3794
(FW_CEM_HDR_LEN + fw_cmd.hdr.buf_len));
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
3804
if (fw_cmd.hdr.cmd_or_resp.ret_status ==
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8709
unsigned char *hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8714
unsigned char *hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8731
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8733
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8734
l4.hdr = skb_checksum_start(skb);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8743
unsigned char *trans_start = ip.hdr + (ip.v4->ihl * 4);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8766
l4_offset = l4.hdr - skb->data;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8795
vlan_macip_lens = l4.hdr - ip.hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8796
vlan_macip_lens |= (ip.hdr - skb->data) << IXGBE_ADVTXD_MACLEN_SHIFT;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9098
} hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9122
hdr.network = skb_network_header(skb);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9123
if (unlikely(hdr.network <= skb->data))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9127
hdr.ipv4->protocol == IPPROTO_UDP) {
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9130
if (unlikely(skb_tail_pointer(skb) < hdr.network +
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9137
hdr.network = skb_inner_network_header(skb);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9141
hdr.network = skb_inner_network_header(skb);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9147
if (unlikely(skb_tail_pointer(skb) < hdr.network + 40))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9151
switch (hdr.ipv4->version) {
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9154
hlen = (hdr.network[0] & 0x0F) << 2;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9155
l4_proto = hdr.ipv4->protocol;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9158
hlen = hdr.network - skb->data;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9160
hlen -= hdr.network - skb->data;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9169
if (unlikely(skb_tail_pointer(skb) < hdr.network +
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9173
th = (struct tcphdr *)(hdr.network + hlen);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9207
switch (hdr.ipv4->version) {
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9210
common.ip ^= hdr.ipv4->saddr ^ hdr.ipv4->daddr;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9214
common.ip ^= hdr.ipv6->saddr.s6_addr32[0] ^
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9215
hdr.ipv6->saddr.s6_addr32[1] ^
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9216
hdr.ipv6->saddr.s6_addr32[2] ^
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9217
hdr.ipv6->saddr.s6_addr32[3] ^
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9218
hdr.ipv6->daddr.s6_addr32[0] ^
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9219
hdr.ipv6->daddr.s6_addr32[1] ^
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9220
hdr.ipv6->daddr.s6_addr32[2] ^
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9221
hdr.ipv6->daddr.s6_addr32[3];
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
9227
if (hdr.network != skb_network_header(skb))
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
2806
struct ixgbe_hic_hdr hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
2817
struct ixgbe_hic_hdr hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
2828
union ixgbe_hic_hdr2 hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
2837
union ixgbe_hic_hdr2 hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
2846
struct ixgbe_hic_hdr hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
2853
struct ixgbe_hic_hdr hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
2860
struct ixgbe_hic_hdr hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
2870
struct ixgbe_hic_hdr hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
2875
struct ixgbe_hic_hdr hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
2883
struct ixgbe_hic_hdr hdr;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1091
buffer.hdr.req.cmd = FW_READ_SHADOW_RAM_CMD;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1092
buffer.hdr.req.buf_lenh = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1093
buffer.hdr.req.buf_lenl = FW_READ_SHADOW_RAM_LEN;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1094
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1179
buffer.hdr.req.cmd = FW_WRITE_SHADOW_RAM_CMD;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1180
buffer.hdr.req.buf_lenh = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1181
buffer.hdr.req.buf_lenl = FW_WRITE_SHADOW_RAM_LEN;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1182
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1289
fw_cmd.hdr.cmd = FW_DISABLE_RXEN_CMD;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1290
fw_cmd.hdr.buf_len = FW_DISABLE_RXEN_LEN;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
1291
fw_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
2785
fw_cmd.hdr.cmd = FW_CEM_CMD_DRIVER_INFO;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
2786
fw_cmd.hdr.buf_len = FW_CEM_CMD_DRIVER_INFO_LEN + len;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
2787
fw_cmd.hdr.cmd_or_resp.cmd_resv = FW_CEM_CMD_RESERVED;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
2793
fw_cmd.hdr.checksum = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
2795
fw_cmd.hdr.checksum = ixgbe_calculate_checksum((u8 *)&fw_cmd,
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
2796
(FW_CEM_HDR_LEN + fw_cmd.hdr.buf_len));
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
2806
if (fw_cmd.hdr.cmd_or_resp.ret_status !=
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
445
hic.cmd.hdr.cmd = FW_PHY_ACT_REQ_CMD;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
446
hic.cmd.hdr.buf_len = FW_PHY_ACT_REQ_LEN;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
447
hic.cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
458
if (hic.rsp.hdr.cmd_or_resp.ret_status ==
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
742
token_cmd.hdr.cmd = FW_PHY_TOKEN_REQ_CMD;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
743
token_cmd.hdr.buf_len = FW_PHY_TOKEN_REQ_LEN;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
744
token_cmd.hdr.cmd_or_resp.cmd_resv = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
745
token_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
754
if (token_cmd.hdr.cmd_or_resp.ret_status == FW_PHY_TOKEN_OK)
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
756
if (token_cmd.hdr.cmd_or_resp.ret_status != FW_PHY_TOKEN_RETRY)
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
771
token_cmd.hdr.cmd = FW_PHY_TOKEN_REQ_CMD;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
772
token_cmd.hdr.buf_len = FW_PHY_TOKEN_REQ_LEN;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
773
token_cmd.hdr.cmd_or_resp.cmd_resv = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
774
token_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
783
if (token_cmd.hdr.cmd_or_resp.ret_status == FW_PHY_TOKEN_OK)
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
802
write_cmd.hdr.cmd = FW_INT_PHY_REQ_CMD;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
803
write_cmd.hdr.buf_len = FW_INT_PHY_REQ_LEN;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
804
write_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
832
hic.cmd.hdr.cmd = FW_INT_PHY_REQ_CMD;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
833
hic.cmd.hdr.buf_len = FW_INT_PHY_REQ_LEN;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
834
hic.cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
879
buffer.hdr.req.cmd = FW_READ_SHADOW_RAM_CMD;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
880
buffer.hdr.req.buf_lenh = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
881
buffer.hdr.req.buf_lenl = FW_READ_SHADOW_RAM_LEN;
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c
882
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3811
unsigned char *hdr;
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3815
unsigned char *hdr;
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3832
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3834
ip.hdr = skb_network_header(skb);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3835
l4.hdr = skb_checksum_start(skb);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3843
unsigned char *trans_start = ip.hdr + (ip.v4->ihl * 4);
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3866
l4_offset = l4.hdr - skb->data;
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3888
vlan_macip_lens = l4.hdr - ip.hdr;
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
3889
vlan_macip_lens |= (ip.hdr - skb->data) << IXGBE_ADVTXD_MACLEN_SHIFT;
drivers/net/ethernet/marvell/mv643xx_eth.c
842
char *hdr;
drivers/net/ethernet/marvell/mv643xx_eth.c
849
hdr = txq->tso_hdrs + txq->tx_curr_desc * TSO_HEADER_SIZE;
drivers/net/ethernet/marvell/mv643xx_eth.c
850
tso_build_hdr(skb, hdr, &tso, data_left, total_len == 0);
drivers/net/ethernet/marvell/mvneta.c
2727
char *hdr;
drivers/net/ethernet/marvell/mvneta.c
2729
hdr = mvneta_get_tso_hdr(txq, &hdr_phys);
drivers/net/ethernet/marvell/mvneta.c
2730
tso_build_hdr(skb, hdr, tso, size, is_last);
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
4114
struct ptp_header *hdr;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
4125
hdr = ptp_parse_header(skb, type);
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
4126
if (!hdr)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
4142
mtype = hdr->tsmt & 15;
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
4325
char *hdr = txq_pcpu->tso_headers +
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
4331
tso_build_hdr(skb, hdr, &tso, left, len == 0);
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c
178
if (octep_ctrl_mbox_circq_space(pi, ci, q->sz) < (msg->hdr.s.sz + mbox_hdr_sz)) {
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c
183
octep_write_mbox_data(q, &pi, ci, (void *)&msg->hdr, mbox_hdr_sz);
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c
184
buf_sz = msg->hdr.s.sz;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c
246
octep_read_mbox_data(q, pi, &ci, (void *)&msg->hdr, mbox_hdr_sz);
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c
247
buf_sz = msg->hdr.s.sz;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.h
106
union octep_ctrl_mbox_msg_hdr hdr;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
134
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_LINK_STATUS;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
150
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_LINK_STATUS;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
165
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_RX_STATE;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
180
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_MAC;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
198
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_MAC;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
213
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_MTU;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
230
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_MTU;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
247
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_GET_IF_STATS;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
267
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_LINK_INFO;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
291
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_LINK_INFO;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
307
if (pos->msg.hdr.s.msg_id == msg->hdr.s.msg_id) {
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
310
msg->hdr.s.sz);
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
326
cmd = req->hdr.s.cmd;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
333
if (msg->hdr.s.is_vf) {
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
351
pr_info("Unknown mbox req : %u\n", req->hdr.s.cmd);
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
365
msg.hdr.s.sz = msg_sz;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
371
msg.hdr.s.sz = msg_sz;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
376
if (msg.hdr.s.flags & OCTEP_CTRL_MBOX_MSG_HDR_FLAG_RESP)
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
378
else if (msg.hdr.s.flags & OCTEP_CTRL_MBOX_MSG_HDR_FLAG_NOTIFY)
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
393
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_GET_INFO;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
413
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_DEV_REMOVE;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
427
req->hdr.s.cmd = OCTEP_CTRL_NET_H2F_CMD_OFFLOADS;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
46
msg->hdr.s.flags = OCTEP_CTRL_MBOX_MSG_HDR_FLAG_REQ;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
47
msg->hdr.s.msg_id = atomic_inc_return(&ctrl_net_msg_id) &
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
48
GENMASK(sizeof(msg->hdr.s.msg_id) * BITS_PER_BYTE, 0);
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
49
msg->hdr.s.sz = req_hdr_sz + sz;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
52
msg->sg_list[0].sz = msg->hdr.s.sz;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
54
msg->hdr.s.is_vf = 1;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
55
msg->hdr.s.vf_idx = vfid;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
66
cmd = d->data.req.hdr.s.cmd;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
95
if (d->data.resp.hdr.s.reply != OCTEP_CTRL_NET_REPLY_OK)
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.h
139
union octep_ctrl_net_req_hdr hdr;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.h
195
union octep_ctrl_net_resp_hdr hdr;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.h
216
union octep_ctrl_net_req_hdr hdr;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.h
224
union octep_ctrl_net_resp_hdr hdr;
drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.c
395
switch (req->hdr.s.cmd) {
drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.c
402
req->hdr.s.cmd);
drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.c
407
octep_send_notification(oct, msg->hdr.s.vf_idx, notif);
drivers/net/ethernet/marvell/octeontx2/af/mbox.c
526
rsp->hdr.id = id;
drivers/net/ethernet/marvell/octeontx2/af/mbox.c
527
rsp->hdr.sig = OTX2_MBOX_RSP_SIG;
drivers/net/ethernet/marvell/octeontx2/af/mbox.c
528
rsp->hdr.rc = MBOX_MSG_INVALID;
drivers/net/ethernet/marvell/octeontx2/af/mbox.c
529
rsp->hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1005
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1018
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1041
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1054
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1077
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1093
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1100
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1113
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1123
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1138
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1197
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1210
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1244
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1249
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1254
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1259
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1268
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1273
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1282
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1292
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1301
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1308
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1313
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1324
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1330
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1339
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1351
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1361
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1387
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1393
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1412
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1428
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1440
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1446
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1458
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1465
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1471
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1478
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1524
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1536
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1546
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1560
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1571
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1576
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1584
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1589
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1596
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1605
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1610
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1615
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1622
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1632
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1638
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1657
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1663
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1670
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1686
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1739
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1771
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1776
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1784
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1789
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1794
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1801
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1806
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1811
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1817
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1822
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1843
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1854
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1860
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1866
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1871
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1879
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1891
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1913
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1922
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1938
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1949
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1954
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
1996
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2007
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2014
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2021
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2028
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2046
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2051
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2085
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2095
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2109
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2119
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2134
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2144
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2153
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2163
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2177
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2187
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2196
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2205
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2215
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2223
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2231
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2239
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2250
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2257
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2268
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2275
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2293
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2310
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2318
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2327
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2337
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2349
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2357
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2363
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2393
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2403
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2417
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2437
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2451
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
2475
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
425
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
432
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
443
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
466
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
483
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
497
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
516
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
536
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
547
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
555
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
563
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
572
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
580
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
588
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
596
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
612
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
617
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
634
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
681
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
696
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
701
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
706
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
711
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
717
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
731
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
736
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
744
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
751
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
759
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
790
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
798
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
807
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
830
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
840
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
863
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
874
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
936
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
954
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
974
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
982
struct mbox_msghdr hdr;
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
584
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c
139
req->hdr.pcifunc = event->pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c
183
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c
242
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c
28
req->hdr.sig = OTX2_MBOX_REQ_SIG; \
drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c
29
req->hdr.id = _id; \
drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c
633
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c
683
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/mcs_rvu_if.c
765
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1481
return rvu_detach_rsrcs(rvu, detach, detach->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1537
if (attach->hdr.ver < RVU_MULTI_BLK_VER)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1711
attach->hdr.pcifunc, attach);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1715
num_lfs = rvu_get_rsrc_mapcount(rvu_get_pfvf(rvu, attach->hdr.pcifunc),
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1725
u16 pcifunc = attach->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1893
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2048
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2091
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2134
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2214
rsp->hdr.id = _id; \
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2215
rsp->hdr.sig = OTX2_MBOX_RSP_SIG; \
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2216
rsp->hdr.pcifunc = req->pcifunc; \
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2217
rsp->hdr.rc = 0; \
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2224
rsp->hdr.rc = err; \
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2670
struct mbox_hdr *hdr;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2680
hdr = mdev->mbase + mbox->rx_start;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2690
if (hdr->num_msgs) {
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2691
mw->mbox_wrk[i].num_msgs = hdr->num_msgs;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2692
hdr->num_msgs = 0;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2697
hdr = mdev->mbase + mbox->rx_start;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2698
if (hdr->num_msgs) {
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2699
mw->mbox_wrk_up[i].up_num_msgs = hdr->num_msgs;
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
2700
hdr->num_msgs = 0;
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
1093
const char *npc_get_field_name(u8 hdr);
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
185
u8 hdr;
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1044
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1061
err = rvu_cgx_cfg_pause_frm(rvu, req->hdr.pcifunc, req->tx_pause, req->rx_pause);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1071
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1177
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1193
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1220
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1228
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1246
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1249
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1264
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1267
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1318
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
1334
err = rvu_cgx_prio_flow_ctrl_cfg(rvu, req->hdr.pcifunc, req->tx_pause,
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
35
req->hdr.sig = OTX2_MBOX_REQ_SIG; \
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
36
req->hdr.id = _id; \
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
566
rvu_cgx_config_rxtx(rvu, req->hdr.pcifunc, true);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
573
rvu_cgx_config_rxtx(rvu, req->hdr.pcifunc, false);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
580
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
587
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
636
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
642
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
666
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
671
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
684
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
707
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
711
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
731
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
734
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
749
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
756
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc)) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
775
struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
777
if (!is_pf_cgxmapped(rvu, rvu_get_pf(rvu->pdev, req->hdr.pcifunc)))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
787
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
791
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
796
return rvu_npc_exact_promisc_enable(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
807
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
810
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
815
return rvu_npc_exact_promisc_disable(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
862
if (!is_pf_cgxmapped(rvu, rvu_get_pf(rvu->pdev, req->hdr.pcifunc)))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
865
return rvu_cgx_ptp_rx_cfg(rvu, req->hdr.pcifunc, true);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
871
return rvu_cgx_ptp_rx_cfg(rvu, req->hdr.pcifunc, false);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
898
rvu_cgx_config_linkevents(rvu, req->hdr.pcifunc, true);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
905
rvu_cgx_config_linkevents(rvu, req->hdr.pcifunc, false);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
915
pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
931
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
990
rvu_cgx_config_intlbk(rvu, req->hdr.pcifunc, true);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c
997
rvu_cgx_config_intlbk(rvu, req->hdr.pcifunc, false);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c
152
struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c
163
err = rvu_get_lmtaddr(rvu, req->hdr.pcifunc,
drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c
169
err = rvu_update_lmtaddr(rvu, req->hdr.pcifunc, lmt_addr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c
199
err = rvu_update_lmtaddr(rvu, req->hdr.pcifunc, val);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c
209
tbl_idx = rvu_get_lmtst_tbl_index(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
1178
req->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
1179
req->hdr.id = MBOX_MSG_CPT_INST_LMTST;
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
448
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
516
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
663
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
716
pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
724
req->hdr.pcifunc, lf);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
734
} else if (!(req->hdr.pcifunc & RVU_PFVF_FUNC_MASK)) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
775
if (!is_cpt_pf(rvu, req->hdr.pcifunc) &&
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
776
!is_cpt_vf(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
868
if (!is_cpt_pf(rvu, req->hdr.pcifunc) &&
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
869
!is_cpt_vf(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
935
if (!is_cpt_pf(rvu, req->hdr.pcifunc) &&
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
936
!is_cpt_vf(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
947
return rvu_cpt_ctx_flush(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_cpt.c
953
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
1248
aq_req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
1709
aq_req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
1974
aq_req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2366
aq_req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1043
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1286
req->hdr.pcifunc, ctype, req->qidx);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1291
req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1339
blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NIX, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1384
struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1394
aq_req.hdr.pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1449
lock_ctx_req.hdr.pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1457
req->hdr.pcifunc,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1504
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1738
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1785
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2149
u16 pcifunc = rsp->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2233
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2618
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2687
return nix_txschq_free(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2808
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2862
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3070
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3107
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3148
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3183
aq_req.hdr.pcifunc = 0;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3896
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3939
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
4343
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
4443
bool from_vf = req->hdr.pcifunc & RVU_PFVF_FUNC_MASK;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
4444
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
4477
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
4494
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
4613
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
4683
err = nix_get_nixlf(rvu, req->hdr.pcifunc, &nixlf, &blkaddr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5250
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5280
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5322
ctx_req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5432
return rvu_nix_lf_ptp_tx_cfg(rvu, req->hdr.pcifunc, true);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5438
return rvu_nix_lf_ptp_tx_cfg(rvu, req->hdr.pcifunc, false);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5445
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5609
err = nix_get_nixlf(rvu, req->hdr.pcifunc, &lf, &blkaddr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
585
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5881
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5960
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6011
aq_req->hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6028
aq_req->hdr.pcifunc = 0x00;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6163
aq_req.hdr.pcifunc = 0x00;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6264
err = nix_get_struct_ptrs(rvu, req->hdr.pcifunc, &nix_hw, &blkaddr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6357
dreq.hdr.pcifunc = elem->pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6370
ureq.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6418
err = nix_get_struct_ptrs(rvu, req->hdr.pcifunc, &nix_hw, &blkaddr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6430
elem->pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6455
err = nix_get_struct_ptrs(rvu, req->hdr.pcifunc, &nix_hw, &blkaddr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6485
uninstall_req.hdr.pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6524
err = nix_get_struct_ptrs(rvu, req->hdr.pcifunc, &nix_hw, &blkaddr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
6549
dreq.hdr.pcifunc = elem->pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
658
pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
660
err = nix_get_struct_ptrs(rvu, req->hdr.pcifunc, &nix_hw, &blkaddr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
699
bp->fn_map[bpid] = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
733
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
212
struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
222
aq_req.hdr.pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
267
lock_ctx_req.hdr.pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
275
req->hdr.pcifunc,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
333
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
439
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
557
ctx_req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
65
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2733
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2779
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2826
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2849
struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2851
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2881
if (is_pffunc_af(req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2902
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2925
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2948
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3017
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3100
err = npc_mcam_verify_counter(mcam, req->hdr.pcifunc, req->cntr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3152
free_req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3167
cntr_req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3197
rc = npc_mcam_verify_counter(mcam, req->hdr.pcifunc, req->cntr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3203
rc = npc_mcam_verify_entry(mcam, req->hdr.pcifunc, req->entry);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3243
err = npc_mcam_verify_counter(mcam, req->hdr.pcifunc, req->cntr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3265
err = npc_mcam_verify_counter(mcam, req->hdr.pcifunc, req->cntr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3280
struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3299
entry_req.hdr.pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3319
cntr_req.hdr.pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3493
return rvu_npc_set_parse_mode(rvu, req->hdr.pcifunc, req->mode,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3504
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
648
req.hdr.pcifunc = 0; /* AF is requester */
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
736
req.hdr.pcifunc = 0; /* AF is requester */
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
819
req.hdr.pcifunc = 0; /* AF is requester */
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
904
req.hdr.pcifunc = 0; /* AF is requester */
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1117
if (req->hdr.pcifunc &&
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1119
mce_index = rvu_nix_mcast_get_mce_index(rvu, req->hdr.pcifunc, req->index);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1204
if (is_pffunc_af(req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1249
u16 owner = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1316
write_req.hdr.pcifunc = owner;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1322
write_req.hdr.pcifunc = 0;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1386
return rvu_nix_setup_ratelimit_aggr(rvu, req->hdr.pcifunc,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1390
return rvu_nix_mcast_update_mcam_entry(rvu, req->hdr.pcifunc,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1400
bool from_vf = !!(req->hdr.pcifunc & RVU_PFVF_FUNC_MASK);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1401
bool from_rep_dev = !!is_rep_dev(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1425
if (is_pffunc_af(req->hdr.pcifunc) &&
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1455
if (!req->hdr.pcifunc) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1460
target = (req->hdr.pcifunc & ~RVU_PFVF_FUNC_MASK) | req->vf;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1468
target = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1472
if (!is_pffunc_af(req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1484
if (req->hdr.pcifunc && !from_vf && req->vf && !from_rep_dev)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1543
dis_req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1558
u16 pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1620
write_req.hdr.pcifunc = rule->owner;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
166
input->layer_mdata.hdr = FIELD_GET(NPC_HDR_OFFSET, cfg);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
1761
cntr_req.hdr.pcifunc = 0; /* AF request */
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
464
u8 hdr, key, nr_bytes, bit_offset;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
470
hdr = FIELD_GET(NPC_HDR_OFFSET, cfg);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
489
if ((hstart) >= hdr && \
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
490
((hstart) + (hlen)) <= (hdr + nr_bytes)) { \
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
491
bit_offset = (hdr + nr_bytes - (hstart) - (hlen)) * 8; \
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
565
int hdr;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
570
for (hdr = NPC_DMAC; hdr < NPC_HEADER_FIELDS_MAX; hdr++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
571
if (npc_check_field(rvu, blkaddr, hdr, intf))
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
572
*features |= BIT_ULL(hdr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
623
for (hdr = NPC_MPLS1_LBTCBOS; hdr <= NPC_MPLS4_TTL; hdr++) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
624
if (npc_check_field(rvu, blkaddr, hdr, intf))
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
625
*features |= BIT_ULL(hdr);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
73
const char *npc_get_field_name(u8 hdr)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
75
if (hdr >= ARRAY_SIZE(npc_flow_names))
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
78
return npc_flow_names[hdr];
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
106
u8 hdr, key;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
110
hdr = FIELD_GET(NPC_HDR_OFFSET, cfg);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
117
hdr, 0x1, 0x0, key);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1563
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1571
pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1596
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1605
if (!is_cgx_config_permitted(rvu, req->hdr.pcifunc))
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1613
pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1651
mcam_idx, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1678
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1685
pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1689
true, -1, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1714
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1739
int pf = rvu_get_pf(rvu->pdev, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1772
rc = nix_get_nixlf(rvu, req->hdr.pcifunc, &nixlf, NULL);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1774
mcam_idx = npc_get_nixlf_mcam_index(&rvu->hw->mcam, req->hdr.pcifunc,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1780
true, mcam_idx, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
129
req->hdr.pcifunc = rvu->rep_pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
161
rst_req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
203
req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
224
req.hdr.pcifunc = pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
259
req.hdr.pcifunc = 0; /* AF is requester */
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
28
req->hdr.sig = OTX2_MBOX_REQ_SIG; \
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
29
req->hdr.id = _id; \
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
295
req.hdr.pcifunc = 0; /* AF is requester */
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
427
if (req->hdr.pcifunc != rvu->rep_pcifunc)
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
433
rvu_npc_free_mcam_entries(rvu, req->hdr.pcifunc, -1);
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
444
rvu->rep_pcifunc = req->hdr.pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_rep.c
54
msg->hdr.pcifunc = event->pcifunc;
drivers/net/ethernet/marvell/octeontx2/af/rvu_sdp.c
97
struct rvu_pfvf *pfvf = rvu_get_pfvf(rvu, req->hdr.pcifunc);
drivers/net/ethernet/marvell/octeontx2/af/rvu_switch.c
39
req.hdr.pcifunc = 0; /* AF is requester */
drivers/net/ethernet/marvell/octeontx2/af/rvu_switch.c
71
req.hdr.pcifunc = 0; /* AF is requester */
drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c
224
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
162
0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
786
0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
841
0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c
896
0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
20
struct mbox_hdr *hdr;
drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
33
hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start);
drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
34
if (hdr->num_msgs)
drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
46
hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start);
drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
47
if (hdr->num_msgs)
drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
61
struct mbox_hdr *hdr;
drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
77
hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start);
drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
78
if (hdr->num_msgs)
drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
91
hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start);
drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
92
if (hdr->num_msgs)
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
1254
&nixlf->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
1261
return rsp->hdr.rc;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
199
msghdr = otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
1998
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
2083
0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
311
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
484
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &lso->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
503
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &lso->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
786
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
732
struct mbox_hdr *hdr;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
738
hdr = hw_mbase + mbox->rx_start;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
739
msg_size = hdr->msg_size;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
917
req->hdr.sig = OTX2_MBOX_REQ_SIG; \
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
918
req->hdr.id = _id; \
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
919
req->hdr.pcifunc = pcifunc; \
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dcbnl.c
317
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dcbnl.c
82
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dmac_flt.c
168
otx2_mbox_get_rsp(&pf->mbox.mbox, 0, &msg->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dmac_flt.c
207
otx2_mbox_get_rsp(&pf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dmac_flt.c
30
otx2_mbox_get_rsp(&pf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dmac_flt.c
66
otx2_mbox_get_rsp(&pf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
1017
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
1093
0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
333
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
116
(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
1499
rsp_hdr = otx2_mbox_get_rsp(&pf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
196
(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
235
(&pfvf->mbox.mbox, 0, &freq->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
1050
struct mbox_hdr *hdr;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
1067
hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
1068
if (hdr->num_msgs)
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
1075
hdr->num_msgs);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
1086
hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
1087
if (hdr->num_msgs)
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
1094
hdr->num_msgs);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
131
req->hdr.pcifunc &= RVU_PFVF_FUNC_MASK;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
132
req->hdr.pcifunc |= (vf + 1) & RVU_PFVF_FUNC_MASK;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
2683
(&pf->mbox.mbox, 0, &vtag_req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
304
struct mbox_hdr *hdr;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
314
hdr = mdev->mbase + mbox->rx_start;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
322
if (hdr->num_msgs) {
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
323
mw[i].num_msgs = hdr->num_msgs;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
324
hdr->num_msgs = 0;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
330
hdr = mdev->mbase + mbox->rx_start;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
331
if (hdr->num_msgs) {
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
332
mw[i].up_num_msgs = hdr->num_msgs;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
333
hdr->num_msgs = 0;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
3381
req->hdr.id = MBOX_MSG_CGX_LINK_EVENT;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
3382
req->hdr.sig = OTX2_MBOX_REQ_SIG;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
3383
req->hdr.pcifunc = pf->pcifunc;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
984
rsp->hdr.id = _id; \
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
985
rsp->hdr.sig = OTX2_MBOX_RSP_SIG; \
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
986
rsp->hdr.pcifunc = 0; \
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
987
rsp->hdr.rc = 0; \
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
223
&req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
35
&req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c
92
&req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_struct.h
168
struct nix_cqe_hdr_s hdr;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_struct.h
174
struct nix_cqe_hdr_s hdr;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
1093
0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
1304
memcpy(&dummy.hdr, &req->hdr, sizeof(struct mbox_msghdr));
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
1388
(&nic->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
391
&creq->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
413
memcpy(&ureq->hdr, &grp_update_req->hdr, sizeof(struct mbox_msghdr));
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
241
hash = cqe->hdr.flow_tag;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
410
if (cqe->hdr.cqe_type == NIX_XQE_TYPE_INVALID ||
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
421
cqe->hdr.cqe_type = NIX_XQE_TYPE_INVALID;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
503
cqe->hdr.cqe_type = NIX_XQE_TYPE_INVALID;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
952
char *hdr;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
964
hdr = sq->tso_hdrs->base + (sq->head * TSO_HEADER_SIZE);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
965
tso_build_hdr(skb, hdr, &tso, seg_len, tcp_data == 0);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
137
rsp->hdr.id = MBOX_MSG_CGX_LINK_EVENT;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
138
rsp->hdr.sig = OTX2_MBOX_RSP_SIG;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
139
rsp->hdr.pcifunc = req->pcifunc;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
140
rsp->hdr.rc = 0;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
189
struct mbox_hdr *hdr;
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
209
hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
210
if (hdr->num_msgs)
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
226
hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start);
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
227
if (hdr->num_msgs)
drivers/net/ethernet/marvell/octeontx2/nic/qos.c
665
otx2_mbox_get_rsp(&pfvf->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/rep.c
359
otx2_mbox_get_rsp(&priv->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/rep.c
59
req->hdr.pcifunc = rep->pcifunc;
drivers/net/ethernet/marvell/octeontx2/nic/rep.c
69
(&priv->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/octeontx2/nic/rep.c
749
msghdr = otx2_mbox_get_rsp(&priv->mbox.mbox, 0, &req->hdr);
drivers/net/ethernet/marvell/prestera/prestera_pci.c
658
static void prestera_fw_rev_parse(const struct prestera_fw_header *hdr,
drivers/net/ethernet/marvell/prestera/prestera_pci.c
661
u32 version = be32_to_cpu(hdr->version_value);
drivers/net/ethernet/marvell/prestera/prestera_pci.c
684
struct prestera_fw_header *hdr;
drivers/net/ethernet/marvell/prestera/prestera_pci.c
687
hdr = (struct prestera_fw_header *)fw->bin->data;
drivers/net/ethernet/marvell/prestera/prestera_pci.c
689
magic = be32_to_cpu(hdr->magic_number);
drivers/net/ethernet/marvell/prestera/prestera_pci.c
695
prestera_fw_rev_parse(hdr, rev);
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
101
struct mtk_wed_mcu_hdr *hdr = (struct mtk_wed_mcu_hdr *)skb->data;
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
103
skb_pull(skb, sizeof(*hdr));
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
105
switch (hdr->cmd) {
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
137
struct mtk_wed_mcu_hdr *hdr;
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
142
hdr = (struct mtk_wed_mcu_hdr *)skb_push(skb, sizeof(*hdr));
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
143
hdr->cmd = cmd;
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
144
hdr->length = cpu_to_le16(skb->len);
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
153
hdr->flag |= cpu_to_le16(MTK_WED_WARP_CMD_FLAG_NEED_RSP);
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
154
hdr->seq = cpu_to_le16(seq);
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
157
hdr->flag |= cpu_to_le16(MTK_WED_WARP_CMD_FLAG_FROM_TO_WO);
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
166
struct mtk_wed_mcu_hdr *hdr;
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
174
hdr = (struct mtk_wed_mcu_hdr *)skb->data;
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
175
if (le16_to_cpu(hdr->seq) != seq)
drivers/net/ethernet/mediatek/mtk_wed_mcu.c
178
skb_pull(skb, sizeof(*hdr));
drivers/net/ethernet/mediatek/mtk_wed_wo.c
189
struct mtk_wed_mcu_hdr *hdr;
drivers/net/ethernet/mediatek/mtk_wed_wo.c
210
hdr = (struct mtk_wed_mcu_hdr *)skb->data;
drivers/net/ethernet/mediatek/mtk_wed_wo.c
211
if (hdr->flag & cpu_to_le16(MTK_WED_WARP_CMD_FLAG_RSP))
drivers/net/ethernet/mediatek/mtk_wed_wo.h
259
struct mtk_wed_mcu_hdr *hdr = (struct mtk_wed_mcu_hdr *)skb->data;
drivers/net/ethernet/mediatek/mtk_wed_wo.h
261
if (hdr->version)
drivers/net/ethernet/mediatek/mtk_wed_wo.h
264
if (skb->len < sizeof(*hdr) || skb->len != le16_to_cpu(hdr->length))
drivers/net/ethernet/mellanox/mlx4/en_rx.c
600
void *hdr;
drivers/net/ethernet/mellanox/mlx4/en_rx.c
613
hdr = (u8 *)va + sizeof(struct ethhdr);
drivers/net/ethernet/mellanox/mlx4/en_rx.c
618
hw_checksum = get_fixed_vlan_csum(hw_checksum, hdr);
drivers/net/ethernet/mellanox/mlx4/en_rx.c
619
hdr += sizeof(struct vlan_hdr);
drivers/net/ethernet/mellanox/mlx4/en_rx.c
624
return get_fixed_ipv6_csum(hw_checksum, skb, hdr);
drivers/net/ethernet/mellanox/mlx4/en_rx.c
626
return get_fixed_ipv4_csum(hw_checksum, skb, hdr);
drivers/net/ethernet/mellanox/mlx4/en_tx.c
1045
unsigned char *hdr;
drivers/net/ethernet/mellanox/mlx4/en_tx.c
1049
ip.hdr = skb_inner_network_header(skb);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
2298
attr = MLX5_ADDR_OF(create_alias_obj_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/en.h
244
struct mlx5e_umr_wqe_hdr hdr;
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
102
void *hdr;
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
105
hdr = MLX5_ADDR_OF(pcie_cong_event_cmd_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
108
MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode,
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
111
MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type,
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
146
void *hdr;
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
148
hdr = MLX5_ADDR_OF(pcie_cong_event_cmd_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
149
MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode,
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
151
MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type,
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
153
MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_id, obj_id);
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
165
void *hdr;
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
169
hdr = MLX5_ADDR_OF(pcie_cong_event_cmd_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
171
MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode,
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
173
MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type,
drivers/net/ethernet/mellanox/mlx5/core/en/pcie_cong_event.c
175
MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_id, obj_id);
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c
128
umr_wqe->hdr.ctrl.opmod_idx_opcode =
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c
139
umr_wqe->hdr.uctrl.xlt_offset = cpu_to_be16(offset);
drivers/net/ethernet/mellanox/mlx5/core/en/xsk/rx.c
150
icosq->doorbell_cseg = &umr_wqe->hdr.ctrl;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1757
void *hdr;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1803
hdr = reformatbf + sizeof(*eth_hdr);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1806
iphdr = (struct iphdr *)hdr;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1813
hdr += sizeof(*iphdr);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1816
ipv6hdr = (struct ipv6hdr *)hdr;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1822
hdr += sizeof(*ipv6hdr);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1828
esp_hdr = (struct ip_esp_hdr *)hdr;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1876
void *hdr;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1894
hdr = reformatbf;
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1899
hdr += sizeof(*udphdr);
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c
1904
memcpy(hdr, &spi, sizeof(spi));
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
324
struct mlx5_wqe_ctrl_seg *cseg = &wqe->hdr.ctrl;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
325
struct mlx5_wqe_umr_ctrl_seg *ucseg = &wqe->hdr.uctrl;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
367
struct mlx5e_umr_wqe, hdr));
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
661
umr_wqe->hdr.ctrl.opmod_idx_opcode =
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
666
umr_wqe->hdr.uctrl.xlt_offset = cpu_to_be16(offset);
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
677
sq->doorbell_cseg = &umr_wqe->hdr.ctrl;
drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c
25
void *hdr, *opt;
drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c
33
hdr = MLX5_ADDR_OF(create_geneve_tlv_option_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c
36
MLX5_SET(general_obj_in_cmd_hdr, hdr, opcode, MLX5_CMD_OP_CREATE_GENERAL_OBJECT);
drivers/net/ethernet/mellanox/mlx5/core/lib/geneve.c
37
MLX5_SET(general_obj_in_cmd_hdr, hdr, obj_type, MLX5_OBJ_TYPE_GENEVE_TLV_OPT);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
1494
reformat_hdrs[i].sz = hdrs[i].hdr.sz;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/action.c
1495
reformat_hdrs[i].data = hdrs[i].hdr.data;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
381
attr = MLX5_ADDR_OF(create_rtc_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
438
attr = MLX5_ADDR_OF(create_stc_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
590
attr = MLX5_ADDR_OF(create_stc_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
630
attr = MLX5_ADDR_OF(create_modify_header_arg_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
678
attr = MLX5_ADDR_OF(create_header_modify_pattern_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/cmd.c
728
attr = MLX5_ADDR_OF(create_ste_in, in, hdr);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
105
#define HWS_IS_FLD_SET_SZ(match_param, hdr, sz_in_bits) \
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
106
(((sz_in_bits) > 32) ? HWS_IS_FLD_SET_DW_ARR(match_param, hdr, sz_in_bits) : \
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
107
!!(HWS_GET_MATCH_PARAM(match_param, hdr)))
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
109
#define HWS_GET64_MATCH_PARAM(match_param, hdr) \
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
110
MLX5_GET64(fte_match_param, match_param, hdr)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
112
#define HWS_IS_FLD64_SET(match_param, hdr) \
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
113
(!!(HWS_GET64_MATCH_PARAM(match_param, hdr)))
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
87
#define HWS_GET_MATCH_PARAM(match_param, hdr) \
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
88
MLX5_GET(fte_match_param, match_param, hdr)
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
90
#define HWS_IS_FLD_SET(match_param, hdr) \
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
91
(!!(HWS_GET_MATCH_PARAM(match_param, hdr)))
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
93
#define HWS_IS_FLD_SET_DW_ARR(match_param, hdr, sz_in_bits) ({ \
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c
97
u32 dw_off = __mlx5_dw_off(fte_match_param, hdr); \
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools.c
68
insert_hdr.hdr.sz = MLX5_FS_INSERT_HDR_VLAN_SIZE;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws.h
189
struct mlx5hws_action_reformat_header hdr;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/prm.h
407
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/prm.h
412
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/prm.h
417
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/prm.h
422
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/prm.h
427
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_cmd.c
698
attr = MLX5_ADDR_OF(create_modify_header_arg_in, in, hdr);
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
490
struct ptp_header *hdr;
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
502
hdr = ptp_parse_header(skb, ptp_class);
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
503
if (!hdr)
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
506
*p_message_type = ptp_get_msgtype(hdr, ptp_class);
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
507
*p_domain_number = hdr->domain_number;
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c
508
*p_sequence_id = be16_to_cpu(hdr->sequence_id);
drivers/net/ethernet/mellanox/mlxsw/txheader.h
11
MLXSW_ITEM32(tx, hdr, version, 0x00, 28, 4);
drivers/net/ethernet/mellanox/mlxsw/txheader.h
18
MLXSW_ITEM32(tx, hdr, ctl, 0x00, 26, 2);
drivers/net/ethernet/mellanox/mlxsw/txheader.h
23
MLXSW_ITEM32(tx, hdr, proto, 0x00, 21, 3);
drivers/net/ethernet/mellanox/mlxsw/txheader.h
28
MLXSW_ITEM32(tx, hdr, rx_is_router, 0x00, 19, 1);
drivers/net/ethernet/mellanox/mlxsw/txheader.h
34
MLXSW_ITEM32(tx, hdr, fid_valid, 0x00, 16, 1);
drivers/net/ethernet/mellanox/mlxsw/txheader.h
39
MLXSW_ITEM32(tx, hdr, swid, 0x00, 12, 3);
drivers/net/ethernet/mellanox/mlxsw/txheader.h
45
MLXSW_ITEM32(tx, hdr, control_tclass, 0x00, 6, 1);
drivers/net/ethernet/mellanox/mlxsw/txheader.h
55
MLXSW_ITEM32(tx, hdr, port_mid, 0x04, 16, 16);
drivers/net/ethernet/mellanox/mlxsw/txheader.h
62
MLXSW_ITEM32(tx, hdr, fid, 0x08, 16, 16);
drivers/net/ethernet/mellanox/mlxsw/txheader.h
68
MLXSW_ITEM32(tx, hdr, type, 0x0C, 0, 4);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
110
char hdr[80];
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
115
snprintf(hdr, sizeof(hdr), "%4s %5s %s %s\n",
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
117
seq_puts(s, hdr);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
118
fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr)));
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
135
char hdr[80];
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
140
snprintf(hdr, sizeof(hdr), "%4s %s %s %s %5s %-16s %-6s %-6s\n",
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
142
seq_puts(s, hdr);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
143
fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr)));
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
184
char hdr[80];
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
189
snprintf(hdr, sizeof(hdr), "%4s %-4s %s\n",
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
191
seq_puts(s, hdr);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
192
fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr)));
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
257
char hdr[80];
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
262
snprintf(hdr, sizeof(hdr),
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
264
seq_puts(s, hdr);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
265
snprintf(hdr, sizeof(hdr),
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
268
seq_puts(s, hdr);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
269
fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr)));
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
383
char hdr[80];
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
387
snprintf(hdr, sizeof(hdr), "%3s %s %-17s %s\n",
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
389
seq_puts(s, hdr);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
390
fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr)));
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
410
char hdr[80];
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
413
snprintf(hdr, sizeof(hdr), "%3s %s %-17s %s\n",
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
415
seq_puts(s, hdr);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
416
fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr)));
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
443
char hdr[80];
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
447
snprintf(hdr, sizeof(hdr), "%3s %s %-55s %-4s %s\n",
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
449
seq_puts(s, hdr);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
450
fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr)));
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
480
char hdr[80];
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
484
snprintf(hdr, sizeof(hdr), "%3s %s %-17s %s %s\n",
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
486
seq_puts(s, hdr);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
487
fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr)));
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
536
char hdr[80];
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
545
snprintf(hdr, sizeof(hdr), "%3s %-4s %s %-12s %s %-3s %-16s\n",
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
547
seq_puts(s, hdr);
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
548
fbnic_dbg_desc_break(s, strnlen(hdr, sizeof(hdr)));
drivers/net/ethernet/meta/fbnic/fbnic_fw.c
1428
attr_len = le16_to_cpu(attr->hdr.len) / sizeof(u32) - 1;
drivers/net/ethernet/meta/fbnic/fbnic_fw.c
1625
if (le16_to_cpu(msg->hdr.len) * sizeof(u32) > length)
drivers/net/ethernet/meta/fbnic/fbnic_fw.c
1638
dev_dbg(fbd->dev, "Parsed msg type %d\n", msg->hdr.type);
drivers/net/ethernet/meta/fbnic/fbnic_fw.c
232
le16_to_cpu(msg->hdr.len) * sizeof(u32), 1);
drivers/net/ethernet/meta/fbnic/fbnic_fw.c
326
le16_to_cpu(msg->hdr.len) * sizeof(u32), 1);
drivers/net/ethernet/meta/fbnic/fbnic_fw.c
543
int attr_len = le16_to_cpu(attr->hdr.len) / sizeof(u32) - 1;
drivers/net/ethernet/meta/fbnic/fbnic_fw.c
962
if (length > le16_to_cpu(data_hdr->hdr.len) - sizeof(u32)) {
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
101
attr_max_len -= le16_to_cpu(msg->hdr.len) * sizeof(u32);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
106
attr = &msg[le16_to_cpu(msg->hdr.len)];
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
109
hdr.type = attr_id;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
110
hdr.len = cpu_to_le16(sizeof(hdr) + len);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
113
if (len % sizeof(hdr))
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
114
attr->value[len / sizeof(hdr)] = 0;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
119
attr->hdr = hdr;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
120
le16_add_cpu(&msg->hdr.len,
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
121
FBNIC_TLV_MSG_SIZE(le16_to_cpu(hdr.len)));
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
190
attr_max_len -= le16_to_cpu(msg->hdr.len) * sizeof(u32);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
211
le16_to_cpu(attr->hdr.len) - sizeof(*attr));
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
232
shift = (8 + sizeof(*attr) - le16_to_cpu(attr->hdr.len)) * 8;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
236
le16_to_cpu(attr->hdr.len) - sizeof(*attr));
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
24
struct fbnic_tlv_hdr hdr = { 0 };
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
263
srclen = le16_to_cpu(attr->hdr.len) - sizeof(*attr);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
296
struct fbnic_tlv_msg *attr = &msg[le16_to_cpu(msg->hdr.len)];
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
297
struct fbnic_tlv_hdr hdr = { 0 };
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
300
attr_max_len -= le16_to_cpu(msg->hdr.len) * sizeof(u32);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
305
hdr.type = attr_id;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
311
hdr.len = cpu_to_le16(1);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
313
attr->hdr = hdr;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
32
hdr.type = msg_id;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
327
struct fbnic_tlv_msg *attr = &msg[le16_to_cpu(msg->hdr.len)];
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
328
u16 len = le16_to_cpu(attr->hdr.len);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
33
hdr.is_msg = 1;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
334
le16_add_cpu(&msg->hdr.len, len);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
337
attr->hdr.len = cpu_to_le16(len * sizeof(u32));
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
34
hdr.len = cpu_to_le16(1);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
344
u16 len = le16_to_cpu(attr->hdr.len) - sizeof(*attr);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
345
u16 attr_id = attr->hdr.type;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
348
if (attr->hdr.is_msg)
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
356
if (attr->hdr.cannot_ignore)
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
358
return le16_to_cpu(attr->hdr.len);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
37
msg->hdr = hdr;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
429
u16 attr_id = attr->hdr.type;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
446
attr_len = FBNIC_TLV_MSG_SIZE(le16_to_cpu(attr->hdr.len));
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
480
u16 attr_id = attr->hdr.type;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
496
attr_len = FBNIC_TLV_MSG_SIZE(le16_to_cpu(attr->hdr.len));
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
519
u16 msg_id = msg->hdr.type;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
522
if (!msg->hdr.is_msg)
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
525
if (le16_to_cpu(msg->hdr.len) > PAGE_SIZE / sizeof(u32))
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
534
err = fbnic_tlv_attr_parse(&msg[1], le16_to_cpu(msg->hdr.len) - 1,
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
56
struct fbnic_tlv_hdr hdr = { 0 };
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
59
attr_max_len -= le16_to_cpu(msg->hdr.len) * sizeof(u32);
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
64
attr = &msg[le16_to_cpu(msg->hdr.len)];
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
67
hdr.type = attr_id;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
68
hdr.len = cpu_to_le16(sizeof(hdr));
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
70
attr->hdr = hdr;
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
71
le16_add_cpu(&msg->hdr.len,
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
72
FBNIC_TLV_MSG_SIZE(le16_to_cpu(hdr.len)));
drivers/net/ethernet/meta/fbnic/fbnic_tlv.c
98
struct fbnic_tlv_hdr hdr = { 0 };
drivers/net/ethernet/meta/fbnic/fbnic_tlv.h
54
struct fbnic_tlv_hdr hdr;
drivers/net/ethernet/microsoft/mana/gdma_main.c
1018
mana_gd_init_req_hdr(&req->hdr, GDMA_CREATE_DMA_REGION,
drivers/net/ethernet/microsoft/mana/gdma_main.c
1033
if (resp.hdr.status ||
drivers/net/ethernet/microsoft/mana/gdma_main.c
1036
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/gdma_main.c
1048
length, req->gdma_page_type, resp.hdr.status, err);
drivers/net/ethernet/microsoft/mana/gdma_main.c
112
mana_gd_init_req_hdr(&req.hdr, GDMA_QUERY_MAX_RESOURCES,
drivers/net/ethernet/microsoft/mana/gdma_main.c
116
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/gdma_main.c
118
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/gdma_main.c
1197
mana_gd_init_req_hdr(&req.hdr, GDMA_VERIFY_VF_DRIVER_VERSION,
drivers/net/ethernet/microsoft/mana/gdma_main.c
1218
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/gdma_main.c
1220
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/gdma_main.c
1246
mana_gd_init_req_hdr(&req.hdr, GDMA_REGISTER_DEVICE, sizeof(req),
drivers/net/ethernet/microsoft/mana/gdma_main.c
1249
req.hdr.dev_id = gd->dev_id;
drivers/net/ethernet/microsoft/mana/gdma_main.c
1252
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/gdma_main.c
1254
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/gdma_main.c
1275
mana_gd_init_req_hdr(&req.hdr, GDMA_DEREGISTER_DEVICE, sizeof(req),
drivers/net/ethernet/microsoft/mana/gdma_main.c
1278
req.hdr.dev_id = gd->dev_id;
drivers/net/ethernet/microsoft/mana/gdma_main.c
1281
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/gdma_main.c
1284
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/gdma_main.c
165
mana_gd_init_req_hdr(&req.hdr, GDMA_QUERY_HWC_TIMEOUT,
drivers/net/ethernet/microsoft/mana/gdma_main.c
169
if (err || resp.hdr.status)
drivers/net/ethernet/microsoft/mana/gdma_main.c
188
mana_gd_init_req_hdr(&req.hdr, GDMA_LIST_DEVICES, sizeof(req),
drivers/net/ethernet/microsoft/mana/gdma_main.c
192
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/gdma_main.c
194
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/gdma_main.c
271
mana_gd_init_req_hdr(&req.hdr, GDMA_CREATE_QUEUE,
drivers/net/ethernet/microsoft/mana/gdma_main.c
274
req.hdr.dev_id = queue->gdma_dev->dev_id;
drivers/net/ethernet/microsoft/mana/gdma_main.c
284
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/gdma_main.c
286
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/gdma_main.c
305
mana_gd_init_req_hdr(&req.hdr, GDMA_DISABLE_QUEUE,
drivers/net/ethernet/microsoft/mana/gdma_main.c
308
req.hdr.dev_id = queue->gdma_dev->dev_id;
drivers/net/ethernet/microsoft/mana/gdma_main.c
314
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/gdma_main.c
317
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/gdma_main.c
790
mana_gd_init_req_hdr(&req.hdr, GDMA_GENERATE_TEST_EQE,
drivers/net/ethernet/microsoft/mana/gdma_main.c
793
req.hdr.dev_id = eq->gdma_dev->dev_id;
drivers/net/ethernet/microsoft/mana/gdma_main.c
805
if (resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/gdma_main.c
806
dev_err(dev, "test_eq failed: 0x%x\n", resp.hdr.status);
drivers/net/ethernet/microsoft/mana/gdma_main.c
974
mana_gd_init_req_hdr(&req.hdr, GDMA_DESTROY_DMA_REGION, sizeof(req),
drivers/net/ethernet/microsoft/mana/gdma_main.c
979
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/gdma_main.c
982
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1069
mana_gd_init_req_hdr(&req.hdr, MANA_REGISTER_HW_PORT,
drivers/net/ethernet/microsoft/mana/mana_en.c
1082
err = mana_verify_resp_hdr(&resp.hdr, MANA_REGISTER_HW_PORT,
drivers/net/ethernet/microsoft/mana/mana_en.c
1084
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
1086
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1100
mana_gd_init_req_hdr(&req.hdr, MANA_DEREGISTER_HW_PORT,
drivers/net/ethernet/microsoft/mana/mana_en.c
1114
err = mana_verify_resp_hdr(&resp.hdr, MANA_DEREGISTER_HW_PORT,
drivers/net/ethernet/microsoft/mana/mana_en.c
1116
if (err || resp.hdr.status)
drivers/net/ethernet/microsoft/mana/mana_en.c
1119
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1128
mana_gd_init_req_hdr(&req.hdr, MANA_REGISTER_FILTER,
drivers/net/ethernet/microsoft/mana/mana_en.c
1140
err = mana_verify_resp_hdr(&resp.hdr, MANA_REGISTER_FILTER,
drivers/net/ethernet/microsoft/mana/mana_en.c
1142
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
1144
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1158
mana_gd_init_req_hdr(&req.hdr, MANA_DEREGISTER_FILTER,
drivers/net/ethernet/microsoft/mana/mana_en.c
1172
err = mana_verify_resp_hdr(&resp.hdr, MANA_DEREGISTER_FILTER,
drivers/net/ethernet/microsoft/mana/mana_en.c
1174
if (err || resp.hdr.status)
drivers/net/ethernet/microsoft/mana/mana_en.c
1177
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1190
mana_gd_init_req_hdr(&req.hdr, MANA_QUERY_DEV_CONFIG,
drivers/net/ethernet/microsoft/mana/mana_en.c
1193
req.hdr.resp.msg_version = GDMA_MESSAGE_V3;
drivers/net/ethernet/microsoft/mana/mana_en.c
1205
err = mana_verify_resp_hdr(&resp.hdr, MANA_QUERY_DEV_CONFIG,
drivers/net/ethernet/microsoft/mana/mana_en.c
1207
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
1209
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1217
if (resp.hdr.response.msg_version >= GDMA_MESSAGE_V2)
drivers/net/ethernet/microsoft/mana/mana_en.c
1222
if (resp.hdr.response.msg_version >= GDMA_MESSAGE_V3)
drivers/net/ethernet/microsoft/mana/mana_en.c
1239
mana_gd_init_req_hdr(&req.hdr, MANA_QUERY_VPORT_CONFIG,
drivers/net/ethernet/microsoft/mana/mana_en.c
1249
err = mana_verify_resp_hdr(&resp.hdr, MANA_QUERY_VPORT_CONFIG,
drivers/net/ethernet/microsoft/mana/mana_en.c
1254
if (resp.hdr.status)
drivers/net/ethernet/microsoft/mana/mana_en.c
1318
mana_gd_init_req_hdr(&req.hdr, MANA_CONFIG_VPORT_TX,
drivers/net/ethernet/microsoft/mana/mana_en.c
1331
err = mana_verify_resp_hdr(&resp.hdr, MANA_CONFIG_VPORT_TX,
drivers/net/ethernet/microsoft/mana/mana_en.c
1333
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
1335
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1371
mana_gd_init_req_hdr(&req->hdr, MANA_CONFIG_VPORT_RX, req_buf_size,
drivers/net/ethernet/microsoft/mana/mana_en.c
1374
req->hdr.req.msg_version = GDMA_MESSAGE_V2;
drivers/net/ethernet/microsoft/mana/mana_en.c
1404
err = mana_verify_resp_hdr(&resp.hdr, MANA_CONFIG_VPORT_RX,
drivers/net/ethernet/microsoft/mana/mana_en.c
1411
if (resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
1413
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1431
mana_gd_init_req_hdr(&req.hdr, MANA_QUERY_LINK_CONFIG,
drivers/net/ethernet/microsoft/mana/mana_en.c
1435
req.hdr.resp.msg_version = GDMA_MESSAGE_V2;
drivers/net/ethernet/microsoft/mana/mana_en.c
1449
err = mana_verify_resp_hdr(&resp.hdr, MANA_QUERY_LINK_CONFIG,
drivers/net/ethernet/microsoft/mana/mana_en.c
1452
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
1454
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1477
mana_gd_init_req_hdr(&req.hdr, MANA_SET_BW_CLAMP,
drivers/net/ethernet/microsoft/mana/mana_en.c
1496
err = mana_verify_resp_hdr(&resp.hdr, MANA_SET_BW_CLAMP,
drivers/net/ethernet/microsoft/mana/mana_en.c
1499
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
1501
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1524
mana_gd_init_req_hdr(&req.hdr, MANA_CREATE_WQ_OBJ,
drivers/net/ethernet/microsoft/mana/mana_en.c
1542
err = mana_verify_resp_hdr(&resp.hdr, MANA_CREATE_WQ_OBJ,
drivers/net/ethernet/microsoft/mana/mana_en.c
1544
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
1546
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1576
mana_gd_init_req_hdr(&req.hdr, MANA_DESTROY_WQ_OBJ,
drivers/net/ethernet/microsoft/mana/mana_en.c
1590
err = mana_verify_resp_hdr(&resp.hdr, MANA_DESTROY_WQ_OBJ,
drivers/net/ethernet/microsoft/mana/mana_en.c
1592
if (err || resp.hdr.status)
drivers/net/ethernet/microsoft/mana/mana_en.c
1594
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
1679
mana_gd_init_req_hdr(&req.hdr, MANA_FENCE_RQ,
drivers/net/ethernet/microsoft/mana/mana_en.c
1691
err = mana_verify_resp_hdr(&resp.hdr, MANA_FENCE_RQ, sizeof(resp));
drivers/net/ethernet/microsoft/mana/mana_en.c
1692
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
1694
rxq->rxq_idx, err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
2923
mana_gd_init_req_hdr(&req.hdr, MANA_QUERY_GF_STAT,
drivers/net/ethernet/microsoft/mana/mana_en.c
2925
req.hdr.resp.msg_version = GDMA_MESSAGE_V2;
drivers/net/ethernet/microsoft/mana/mana_en.c
2960
err = mana_verify_resp_hdr(&resp.hdr, MANA_QUERY_GF_STAT,
drivers/net/ethernet/microsoft/mana/mana_en.c
2962
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
2964
resp.hdr.status);
drivers/net/ethernet/microsoft/mana/mana_en.c
3011
mana_gd_init_req_hdr(&req.hdr, MANA_QUERY_PHY_STAT,
drivers/net/ethernet/microsoft/mana/mana_en.c
3018
err = mana_verify_resp_hdr(&resp.hdr, MANA_QUERY_PHY_STAT,
drivers/net/ethernet/microsoft/mana/mana_en.c
3020
if (err || resp.hdr.status) {
drivers/net/ethernet/microsoft/mana/mana_en.c
3023
err, resp.hdr.status);
drivers/net/ethernet/microsoft/mana/shm_channel.c
100
union smc_proto_hdr hdr;
drivers/net/ethernet/microsoft/mana/shm_channel.c
108
hdr.as_uint32 = readl(base + SMC_LAST_DWORD * SMC_BASIC_UNIT);
drivers/net/ethernet/microsoft/mana/shm_channel.c
110
if (reset_vf && hdr.as_uint32 == SHMEM_VF_RESET_STATE)
drivers/net/ethernet/microsoft/mana/shm_channel.c
114
if (hdr.msg_type != msg_type || hdr.msg_version > msg_version ||
drivers/net/ethernet/microsoft/mana/shm_channel.c
115
hdr.direction != SMC_MSG_DIRECTION_RESPONSE) {
drivers/net/ethernet/microsoft/mana/shm_channel.c
117
hdr.as_uint32, msg_type, msg_version);
drivers/net/ethernet/microsoft/mana/shm_channel.c
122
if (hdr.status != 0) {
drivers/net/ethernet/microsoft/mana/shm_channel.c
123
dev_err(sc->dev, "SMC operation failed: 0x%x\n", hdr.status);
drivers/net/ethernet/microsoft/mana/shm_channel.c
141
union smc_proto_hdr *hdr;
drivers/net/ethernet/microsoft/mana/shm_channel.c
228
hdr = (union smc_proto_hdr *)ptr;
drivers/net/ethernet/microsoft/mana/shm_channel.c
229
hdr->msg_type = SMC_MSG_TYPE_ESTABLISH_HWC;
drivers/net/ethernet/microsoft/mana/shm_channel.c
230
hdr->msg_version = SMC_MSG_TYPE_ESTABLISH_HWC_VERSION;
drivers/net/ethernet/microsoft/mana/shm_channel.c
231
hdr->direction = SMC_MSG_DIRECTION_REQUEST;
drivers/net/ethernet/microsoft/mana/shm_channel.c
232
hdr->reset_vf = reset_vf;
drivers/net/ethernet/microsoft/mana/shm_channel.c
258
union smc_proto_hdr hdr = {};
drivers/net/ethernet/microsoft/mana/shm_channel.c
269
hdr.msg_type = SMC_MSG_TYPE_DESTROY_HWC;
drivers/net/ethernet/microsoft/mana/shm_channel.c
270
hdr.msg_version = SMC_MSG_TYPE_DESTROY_HWC_VERSION;
drivers/net/ethernet/microsoft/mana/shm_channel.c
271
hdr.direction = SMC_MSG_DIRECTION_REQUEST;
drivers/net/ethernet/microsoft/mana/shm_channel.c
272
hdr.reset_vf = reset_vf;
drivers/net/ethernet/microsoft/mana/shm_channel.c
277
writel(hdr.as_uint32, sc->base + SMC_LAST_DWORD * SMC_BASIC_UNIT);
drivers/net/ethernet/mscc/ocelot_ptp.c
617
struct ptp_header *hdr;
drivers/net/ethernet/mscc/ocelot_ptp.c
629
hdr = ptp_parse_header(skb, OCELOT_SKB_CB(skb)->ptp_class);
drivers/net/ethernet/mscc/ocelot_ptp.c
630
if (seqid != ntohs(hdr->sequence_id))
drivers/net/ethernet/mscc/ocelot_ptp.c
704
struct ptp_header *hdr;
drivers/net/ethernet/mscc/ocelot_ptp.c
707
hdr = ptp_parse_header(skb, ptp_class);
drivers/net/ethernet/mscc/ocelot_ptp.c
708
if (!hdr)
drivers/net/ethernet/mscc/ocelot_ptp.c
711
msgtype = ptp_get_msgtype(hdr, ptp_class);
drivers/net/ethernet/mscc/ocelot_ptp.c
712
twostep = hdr->flag_field[0] & 0x2;
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
1881
struct mcp_gen_header *hdr;
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
1888
if ((hdr_off & 3) || hdr_off + sizeof(*hdr) > mgp->sram_size) {
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
545
struct mcp_gen_header *hdr)
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
550
if (ntohl(hdr->mcp_type) != MCP_TYPE_ETH) {
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
551
dev_err(dev, "Bad firmware type: 0x%x\n", ntohl(hdr->mcp_type));
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
556
strscpy(mgp->fw_version, hdr->version, sizeof(mgp->fw_version));
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
577
struct mcp_gen_header *hdr;
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
600
if ((hdr_offset & 3) || hdr_offset + sizeof(*hdr) > fw->size) {
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
605
hdr = (void *)(fw->data + hdr_offset);
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
607
status = myri10ge_validate_firmware(mgp, hdr);
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
645
struct mcp_gen_header *hdr;
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
654
if ((hdr_offset & 3) || hdr_offset + sizeof(*hdr) > mgp->sram_size) {
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
662
hdr = kmalloc(bytes, GFP_KERNEL);
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
663
if (hdr == NULL)
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
666
memcpy_fromio(hdr, mgp->sram + hdr_offset, bytes);
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
667
status = myri10ge_validate_firmware(mgp, hdr);
drivers/net/ethernet/myricom/myri10ge/myri10ge.c
668
kfree(hdr);
drivers/net/ethernet/netronome/nfp/bpf/cmsg.c
468
const struct nfp_ccm_hdr *hdr = data;
drivers/net/ethernet/netronome/nfp/bpf/cmsg.c
476
if (hdr->type == NFP_CCM_TYPE_BPF_BPF_EVENT)
drivers/net/ethernet/netronome/nfp/bpf/cmsg.c
480
hdr->type);
drivers/net/ethernet/netronome/nfp/bpf/fw.h
103
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/bpf/fw.h
118
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/bpf/fw.h
74
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/bpf/fw.h
79
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/bpf/fw.h
93
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/bpf/offload.c
462
if (cbe->hdr.ver != NFP_CCM_ABI_VERSION)
drivers/net/ethernet/netronome/nfp/ccm.c
132
struct nfp_ccm_hdr *hdr;
drivers/net/ethernet/netronome/nfp/ccm.c
143
hdr = (void *)skb->data;
drivers/net/ethernet/netronome/nfp/ccm.c
144
hdr->ver = NFP_CCM_ABI_VERSION;
drivers/net/ethernet/netronome/nfp/ccm.c
145
hdr->type = type;
drivers/net/ethernet/netronome/nfp/ccm.c
146
hdr->tag = cpu_to_be16(tag);
drivers/net/ethernet/netronome/nfp/ccm.h
51
struct nfp_ccm_hdr *hdr;
drivers/net/ethernet/netronome/nfp/ccm.h
53
hdr = (struct nfp_ccm_hdr *)skb->data;
drivers/net/ethernet/netronome/nfp/ccm.h
55
return hdr->type;
drivers/net/ethernet/netronome/nfp/ccm.h
60
struct nfp_ccm_hdr *hdr;
drivers/net/ethernet/netronome/nfp/ccm.h
62
hdr = (struct nfp_ccm_hdr *)skb->data;
drivers/net/ethernet/netronome/nfp/ccm.h
64
return hdr->tag;
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
226
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
260
hdr.raw = cpu_to_be32(readl(data));
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
262
skb = nfp_ccm_mbox_find_req(nn, hdr.tag, last);
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
265
be16_to_cpu(hdr.tag));
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
278
if (hdr.type != __NFP_CCM_REPLY(nfp_ccm_get_type(skb))) {
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
280
hdr.type,
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
287
hdr.type, length, cb->exp_reply);
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
293
hdr.type, cb->max_len, length);
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
312
memcpy(skb_data, &hdr, 4);
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
520
struct nfp_ccm_hdr *hdr;
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
529
hdr = (void *)skb->data;
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
530
hdr->ver = NFP_CCM_ABI_VERSION;
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
531
hdr->type = type;
drivers/net/ethernet/netronome/nfp/ccm_mbox.c
532
hdr->tag = cpu_to_be16(nn->mbox_cmsg.tag++);
drivers/net/ethernet/netronome/nfp/crypto/fw.h
21
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/crypto/fw.h
26
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/crypto/fw.h
37
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/crypto/fw.h
78
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/crypto/fw.h
84
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/crypto/fw.h
90
struct nfp_ccm_hdr hdr;
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c
114
FIELD_GET(NFP_NET_CFG_TLV_HEADER_TYPE, hdr),
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c
152
if (!FIELD_GET(NFP_NET_CFG_TLV_HEADER_REQUIRED, hdr))
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c
156
FIELD_GET(NFP_NET_CFG_TLV_HEADER_TYPE, hdr),
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c
49
u32 hdr;
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c
53
hdr = readl(data);
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c
54
if (!hdr)
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c
59
u32 hdr = readl(data);
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c
61
length = FIELD_GET(NFP_NET_CFG_TLV_HEADER_LENGTH, hdr);
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.c
78
switch (FIELD_GET(NFP_NET_CFG_TLV_HEADER_TYPE, hdr)) {
drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c
38
struct_group_tagged(nfp_dump_tl_hdr, hdr,
drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c
458
container_of(&spec_csr->tl, struct nfp_dump_tl, hdr);
drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c
563
container_of(&spec_csr->tl, struct nfp_dump_tl, hdr);
drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c
610
container_of(&spec->tl, struct nfp_dump_tl, hdr);
drivers/net/ethernet/pasemi/pasemi_mac.c
1349
int cs_size, i, fill, hdr, evt;
drivers/net/ethernet/pasemi/pasemi_mac.c
1374
hdr = fill;
drivers/net/ethernet/pasemi/pasemi_mac.c
1408
cs_size = fill - hdr;
drivers/net/ethernet/qlogic/netxen/netxen_nic.h
1118
u64 hdr;
drivers/net/ethernet/qlogic/netxen/netxen_nic.h
1343
struct netxen_common_entry_hdr hdr;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2315
entry->hdr.driver_flags |= NX_DUMP_SKIP;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2318
if (esize != entry->hdr.entry_capture_size) {
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2319
entry->hdr.entry_capture_size = esize;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2320
entry->hdr.driver_flags |= NX_DUMP_SIZE_ERR;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2323
entry->hdr.entry_type, entry->hdr.entry_capture_mask,
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2324
esize, entry->hdr.entry_capture_size);
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2357
if (!(entry->hdr.entry_capture_mask & capture_mask)) {
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2358
entry->hdr.driver_flags |= NX_DUMP_SKIP;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2360
((char *) entry + entry->hdr.entry_size);
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2363
switch (entry->hdr.entry_type) {
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2365
entry->hdr.driver_flags |= NX_DUMP_SKIP;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2368
entry->hdr.driver_flags |= NX_DUMP_SKIP;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2375
entry->hdr.driver_flags |= NX_DUMP_SKIP;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2464
entry->hdr.driver_flags |= NX_DUMP_SKIP;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2469
((char *) entry + entry->hdr.entry_size);
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2482
struct netxen_minidump_template_hdr *hdr;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2483
hdr = (struct netxen_minidump_template_hdr *)
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2485
hdr->driver_capture_mask = adapter->mdump.md_capture_mask;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2486
hdr->driver_timestamp = ktime_get_seconds();
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2487
hdr->driver_info_word2 = adapter->fw_version;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2488
hdr->driver_info_word3 = NXRD32(adapter, CRB_DRIVER_VERSION);
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2500
struct netxen_minidump_template_hdr *hdr;
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2503
hdr = (struct netxen_minidump_template_hdr *)
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c
2509
data_size += hdr->capture_size_array[k];
drivers/net/ethernet/qlogic/qed/qed_dbg_hsi.h
314
u32 hdr;
drivers/net/ethernet/qlogic/qed/qed_debug.c
2323
GET_FIELD(split_hdr->hdr,
drivers/net/ethernet/qlogic/qed/qed_debug.c
2325
split_data_size = GET_FIELD(split_hdr->hdr,
drivers/net/ethernet/qlogic/qed/qed_debug.c
2800
split_type = GET_FIELD(split_hdr->hdr,
drivers/net/ethernet/qlogic/qed/qed_debug.c
2802
split_data_size = GET_FIELD(split_hdr->hdr,
drivers/net/ethernet/qlogic/qed/qed_debug.c
3728
struct dbg_idle_chk_result_hdr *hdr;
drivers/net/ethernet/qlogic/qed/qed_debug.c
3732
hdr = (struct dbg_idle_chk_result_hdr *)dump_buf;
drivers/net/ethernet/qlogic/qed/qed_debug.c
3741
memset(hdr, 0, sizeof(*hdr));
drivers/net/ethernet/qlogic/qed/qed_debug.c
3742
hdr->rule_id = rule_id;
drivers/net/ethernet/qlogic/qed/qed_debug.c
3743
hdr->mem_entry_id = fail_entry_id;
drivers/net/ethernet/qlogic/qed/qed_debug.c
3744
hdr->severity = rule->severity;
drivers/net/ethernet/qlogic/qed/qed_debug.c
3745
hdr->num_dumped_cond_regs = rule->num_cond_regs;
drivers/net/ethernet/qlogic/qed/qed_debug.c
3828
hdr->num_dumped_info_regs++;
drivers/net/ethernet/qlogic/qed/qed_debug.c
6505
struct dbg_idle_chk_result_hdr *hdr;
drivers/net/ethernet/qlogic/qed/qed_debug.c
6511
hdr = (struct dbg_idle_chk_result_hdr *)dump_buf;
drivers/net/ethernet/qlogic/qed/qed_debug.c
6515
hdr->rule_id;
drivers/net/ethernet/qlogic/qed/qed_debug.c
6528
if (hdr->severity >= MAX_DBG_IDLE_CHK_SEVERITY_TYPES)
drivers/net/ethernet/qlogic/qed/qed_debug.c
6532
dump_buf += BYTES_TO_DWORDS(sizeof(*hdr));
drivers/net/ethernet/qlogic/qed/qed_debug.c
6535
if (hdr->severity == IDLE_CHK_SEVERITY_ERROR ||
drivers/net/ethernet/qlogic/qed/qed_debug.c
6536
hdr->severity == IDLE_CHK_SEVERITY_ERROR_NO_TRAFFIC)
drivers/net/ethernet/qlogic/qed/qed_debug.c
6545
s_idle_chk_severity_str[hdr->severity]);
drivers/net/ethernet/qlogic/qed/qed_debug.c
6562
i < hdr->num_dumped_cond_regs + hdr->num_dumped_info_regs;
drivers/net/ethernet/qlogic/qed/qed_debug.c
6588
if (i < hdr->num_dumped_cond_regs && is_mem)
drivers/net/ethernet/qlogic/qed/qed_debug.c
6592
"[%d]", hdr->mem_entry_id +
drivers/net/ethernet/qlogic/qed/qed_hsi.h
1373
struct ramrod_header hdr;
drivers/net/ethernet/qlogic/qed/qed_hsi.h
5779
struct toe_init_ramrod_header hdr;
drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c
1702
struct fw_overlay_buf_hdr *hdr;
drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c
1706
hdr =
drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c
1708
storm_buf_size = GET_FIELD(hdr->data,
drivers/net/ethernet/qlogic/qed/qed_init_fw_funcs.c
1710
storm_id = GET_FIELD(hdr->data, FW_OVERLAY_BUF_HDR_STORM_ID);
drivers/net/ethernet/qlogic/qed/qed_init_ops.c
305
union init_array_hdr *hdr;
drivers/net/ethernet/qlogic/qed/qed_init_ops.c
312
hdr = (union init_array_hdr *)(array_data + dmae_array_offset);
drivers/net/ethernet/qlogic/qed/qed_init_ops.c
313
data = le32_to_cpu(hdr->raw.data);
drivers/net/ethernet/qlogic/qed/qed_mfw_hsi.h
560
u32 hdr;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
55
p_ent->elem.hdr.cid = cpu_to_le32(opaque_cid);
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
56
p_ent->elem.hdr.cmd_id = cmd;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
57
p_ent->elem.hdr.protocol_id = protocol;
drivers/net/ethernet/qlogic/qed/qed_spq.c
143
le32_to_cpu(p_ent->elem.hdr.cid),
drivers/net/ethernet/qlogic/qed/qed_spq.c
144
qed_get_ramrod_cmd_id_str(p_ent->elem.hdr.protocol_id,
drivers/net/ethernet/qlogic/qed/qed_spq.c
145
p_ent->elem.hdr.cmd_id),
drivers/net/ethernet/qlogic/qed/qed_spq.c
146
p_ent->elem.hdr.cmd_id,
drivers/net/ethernet/qlogic/qed/qed_spq.c
147
qed_get_protocol_type_str(p_ent->elem.hdr.protocol_id),
drivers/net/ethernet/qlogic/qed/qed_spq.c
148
p_ent->elem.hdr.protocol_id,
drivers/net/ethernet/qlogic/qed/qed_spq.c
149
le16_to_cpu(p_ent->elem.hdr.echo));
drivers/net/ethernet/qlogic/qed/qed_spq.c
179
p_ent->elem.hdr.cid,
drivers/net/ethernet/qlogic/qed/qed_spq.c
180
qed_get_ramrod_cmd_id_str(p_ent->elem.hdr.protocol_id,
drivers/net/ethernet/qlogic/qed/qed_spq.c
181
p_ent->elem.hdr.cmd_id),
drivers/net/ethernet/qlogic/qed/qed_spq.c
182
p_ent->elem.hdr.cmd_id,
drivers/net/ethernet/qlogic/qed/qed_spq.c
183
qed_get_protocol_type_str(p_ent->elem.hdr.protocol_id),
drivers/net/ethernet/qlogic/qed/qed_spq.c
184
p_ent->elem.hdr.protocol_id,
drivers/net/ethernet/qlogic/qed/qed_spq.c
241
p_ent->elem.hdr.echo = cpu_to_le16(echo);
drivers/net/ethernet/qlogic/qed/qed_spq.c
806
if (p_ent->elem.hdr.protocol_id == PROTOCOLID_ROCE ||
drivers/net/ethernet/qlogic/qed/qed_spq.c
807
p_ent->elem.hdr.protocol_id == PROTOCOLID_IWARP)
drivers/net/ethernet/qlogic/qed/qed_spq.c
850
qed_get_ramrod_cmd_id_str(p_ent->elem.hdr.protocol_id,
drivers/net/ethernet/qlogic/qed/qed_spq.c
851
p_ent->elem.hdr.cmd_id),
drivers/net/ethernet/qlogic/qed/qed_spq.c
852
p_ent->elem.hdr.cmd_id,
drivers/net/ethernet/qlogic/qed/qed_spq.c
853
qed_get_protocol_type_str(p_ent->elem.hdr.protocol_id),
drivers/net/ethernet/qlogic/qed/qed_spq.c
854
p_ent->elem.hdr.protocol_id);
drivers/net/ethernet/qlogic/qed/qed_spq.c
921
qed_spq_comp_bmap_update(p_hwfn, p_ent->elem.hdr.echo);
drivers/net/ethernet/qlogic/qed/qed_spq.c
951
if (p_ent->elem.hdr.echo == echo) {
drivers/net/ethernet/qlogic/qed/qed_spq.c
965
le16_to_cpu(p_ent->elem.hdr.echo));
drivers/net/ethernet/qlogic/qed/qed_sriov.c
1204
mbx->reply_virt->default_resp.hdr.status = status;
drivers/net/ethernet/qlogic/qed/qed_sriov.c
1283
resp->hdr.status = status;
drivers/net/ethernet/qlogic/qed/qed_sriov.c
1285
resp->hdr.status = PFVF_STATUS_NOT_SUPPORTED;
drivers/net/ethernet/qlogic/qed/qed_sriov.c
1291
qed_iov_vport_to_tlv(p_hwfn, i), resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
1001
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
1059
if (p_resp && p_resp->hdr.status)
drivers/net/ethernet/qlogic/qed/qed_vf.c
1063
(p_resp && p_resp->hdr.status) ? "succeeded"
drivers/net/ethernet/qlogic/qed/qed_vf.c
1205
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
1209
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
1237
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
1241
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
1295
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
1299
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
1324
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
1328
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
1356
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
1360
if (resp->hdr.status != PFVF_STATUS_SUCCESS)
drivers/net/ethernet/qlogic/qed/qed_vf.c
1394
rc = qed_send_msg2pf(p_hwfn, &p_resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
1425
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
1429
if (resp->hdr.status != PFVF_STATUS_SUCCESS)
drivers/net/ethernet/qlogic/qed/qed_vf.c
172
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
174
if (!rc && resp->hdr.status != PFVF_STATUS_SUCCESS)
drivers/net/ethernet/qlogic/qed/qed_vf.c
301
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
319
if (resp->hdr.status == PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
332
} else if (resp->hdr.status == PFVF_STATUS_NO_RESOURCE &&
drivers/net/ethernet/qlogic/qed/qed_vf.c
336
} else if (resp->hdr.status == PFVF_STATUS_NOT_SUPPORTED) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
375
resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
53
req_status, resp->default_resp.hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
705
rc = qed_send_msg2pf(p_hwfn, &p_resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
710
if (p_resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
772
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
776
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
822
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
826
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
867
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
871
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
918
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
922
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
968
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.c
972
if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
drivers/net/ethernet/qlogic/qed/qed_vf.c
997
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status);
drivers/net/ethernet/qlogic/qed/qed_vf.h
151
struct pfvf_tlv hdr;
drivers/net/ethernet/qlogic/qed/qed_vf.h
222
struct pfvf_tlv hdr;
drivers/net/ethernet/qlogic/qed/qed_vf.h
457
struct pfvf_tlv hdr;
drivers/net/ethernet/qlogic/qed/qed_vf.h
494
struct pfvf_tlv hdr;
drivers/net/ethernet/qlogic/qed/qed_vf.h
69
struct pfvf_tlv hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
1531
u32 *hdr; /* Back channel message header */
drivers/net/ethernet/qlogic/qlcnic/qlcnic.h
976
u64 hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c
3986
writel(*(cmd->hdr++), QLCNIC_MBX_HOST(ahw, i));
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h
281
struct qlc_83xx_reset_hdr *hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1670
int count = p_dev->ahw->reset.hdr->size / sizeof(u16);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1715
ahw->reset.hdr = (struct qlc_83xx_reset_hdr *)ahw->reset.buff;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1716
addr = QLC_83XX_RESET_TEMPLATE_ADDR + ahw->reset.hdr->hdr_size;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1717
p_buff = ahw->reset.buff + ahw->reset.hdr->hdr_size;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1718
count = (ahw->reset.hdr->size - ahw->reset.hdr->hdr_size) / sizeof(u32);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1729
ahw->reset.init_offset = ahw->reset.buff + ahw->reset.hdr->init_offset;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1731
ahw->reset.hdr->start_offset;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1732
ahw->reset.stop_offset = ahw->reset.buff + ahw->reset.hdr->hdr_size;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c
1983
entries = p_dev->ahw->reset.hdr->entries;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1352
if (!(entry->hdr.mask & fw_dump->cap_mask)) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1353
entry->hdr.flags |= QLCNIC_DUMP_SKIP;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1354
entry_offset += entry->hdr.offset;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1361
if (entry->hdr.type == fw_dump_ops[ops_index].opcode)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1368
entry->hdr.type);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1369
entry->hdr.flags |= QLCNIC_DUMP_SKIP;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1370
entry_offset += entry->hdr.offset;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1377
entry->hdr.flags |= QLCNIC_DUMP_SKIP;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1378
entry_offset += entry->hdr.offset;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1382
buf_offset += entry->hdr.cap_size;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1383
entry_offset += entry->hdr.offset;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1443
struct qlcnic_83xx_dump_template_hdr *hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1445
hdr = fw_dump->tmpl_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1446
if (!hdr)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
1448
hdr->drv_cap_mask = 0x1f;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
229
struct qlcnic_common_entry_hdr hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
272
struct qlcnic_82xx_dump_template_hdr *hdr = t_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
274
return hdr->saved_state[index];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
280
struct qlcnic_82xx_dump_template_hdr *hdr = t_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
282
hdr->saved_state[index] = value;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
287
struct qlcnic_82xx_dump_template_hdr *hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
289
hdr = fw_dump->tmpl_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
290
fw_dump->tmpl_hdr_size = hdr->size;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
291
fw_dump->version = hdr->version;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
292
fw_dump->num_entries = hdr->num_entries;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
293
fw_dump->offset = hdr->offset;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
295
hdr->drv_cap_mask = hdr->cap_mask;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
296
fw_dump->cap_mask = hdr->cap_mask;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
298
fw_dump->use_pex_dma = (hdr->capabilities & BIT_0) ? true : false;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
303
struct qlcnic_82xx_dump_template_hdr *hdr = t_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
305
return hdr->cap_sizes[index];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
310
struct qlcnic_82xx_dump_template_hdr *hdr = t_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
312
hdr->sys_info[idx] = value;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
317
struct qlcnic_82xx_dump_template_hdr *hdr = tmpl_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
319
hdr->drv_cap_mask = mask;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
324
struct qlcnic_83xx_dump_template_hdr *hdr = t_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
326
return hdr->saved_state[index];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
332
struct qlcnic_83xx_dump_template_hdr *hdr = t_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
334
hdr->saved_state[index] = value;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
341
struct qlcnic_83xx_dump_template_hdr *hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
343
hdr = fw_dump->tmpl_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
344
fw_dump->tmpl_hdr_size = hdr->size;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
345
fw_dump->version = hdr->version;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
346
fw_dump->num_entries = hdr->num_entries;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
347
fw_dump->offset = hdr->offset;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
349
hdr->drv_cap_mask = hdr->cap_mask;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
350
fw_dump->cap_mask = hdr->cap_mask;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
358
struct qlcnic_83xx_dump_template_hdr *hdr = t_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
360
return hdr->cap_sizes[index];
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
365
struct qlcnic_83xx_dump_template_hdr *hdr = t_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
367
hdr->sys_info[idx] = value;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
372
struct qlcnic_83xx_dump_template_hdr *hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
374
hdr = tmpl_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
375
hdr->drv_cap_mask = mask;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
405
void *hdr = adapter->ahw->fw_dump.tmpl_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
455
hdr,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
458
qlcnic_set_saved_state(adapter, hdr,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
465
hdr,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
473
hdr,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
478
data = qlcnic_get_saved_state(adapter, hdr,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
486
qlcnic_set_saved_state(adapter, hdr,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
868
entry->hdr.mask);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
877
entry->hdr.mask);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
887
entry->hdr.flags |= QLCNIC_DUMP_SKIP;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
895
if (size != entry->hdr.cap_size) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
898
entry->hdr.type, entry->hdr.mask, size,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c
899
entry->hdr.cap_size);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1087
static void qlcnic_sriov_handle_bc_resp(struct qlcnic_bc_hdr *hdr,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1101
if (trans->trans_id != hdr->seq_id)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1149
struct qlcnic_bc_hdr *hdr)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1160
if (trans->trans_id == hdr->seq_id) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1176
if (trans->curr_req_frag >= hdr->num_frags) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1192
struct qlcnic_bc_hdr *hdr,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1206
hdr->op_type != QLC_BC_CMD &&
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1207
hdr->cmd_op != QLCNIC_BC_CMD_CHANNEL_INIT)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1210
if (hdr->frag_num > 1) {
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1211
qlcnic_sriov_handle_pending_trans(sriov, vf, hdr);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1216
cmd_op = hdr->cmd_op;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1220
if (hdr->op_type == QLC_BC_CMD)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1230
cmd.op_type = hdr->op_type;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1231
if (qlcnic_sriov_prepare_bc_hdr(trans, &cmd, hdr->seq_id,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1246
trans->trans_id = hdr->seq_id;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1268
struct qlcnic_bc_hdr hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1269
u32 *ptr = (u32 *)&hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1274
msg_type = hdr.msg_type;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1278
qlcnic_sriov_handle_bc_cmd(sriov, &hdr, vf);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
1281
qlcnic_sriov_handle_bc_resp(&hdr, vf);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
310
static int qlcnic_sriov_post_bc_msg(struct qlcnic_adapter *adapter, u32 *hdr,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
320
cmd.hdr = hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
325
cmd.cmd_op = ((struct qlcnic_bc_hdr *)hdr)->cmd_op;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
709
static inline int qlcnic_sriov_alloc_bc_msg(struct qlcnic_bc_hdr **hdr,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
712
*hdr = kzalloc_objs(struct qlcnic_bc_hdr, size, GFP_ATOMIC);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
713
if (!*hdr)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
756
struct qlcnic_bc_hdr *hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
785
hdr = trans->req_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
797
hdr = trans->rsp_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
804
hdr[i].version = 2;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
805
hdr[i].msg_type = msg_type;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
806
hdr[i].op_type = cmd->op_type;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
807
hdr[i].num_cmds = 1;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
808
hdr[i].num_frags = num_frags;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
809
hdr[i].frag_num = i + 1;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
810
hdr[i].cmd_op = cmd_op;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
811
hdr[i].seq_id = seq;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
907
u32 *hdr, u32 *pay, u32 size)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
916
*(hdr++) = readl(QLCNIC_MBX_FW(ahw, i));
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
941
u32 *hdr, *pay;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
949
hdr = (u32 *)(trans->req_hdr + trans->curr_req_frag);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
955
hdr = (u32 *)(trans->rsp_hdr + trans->curr_rsp_frag);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
962
ret = qlcnic_sriov_post_bc_msg(vf->adapter, hdr, pay,
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
1725
struct qlcnic_bc_hdr *hdr = trans->req_hdr;
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
1727
if ((hdr->cmd_op == QLCNIC_BC_CMD_CHANNEL_INIT) &&
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c
1728
(hdr->op_type == QLC_BC_CMD) &&
drivers/net/ethernet/sfc/ef10.c
2050
const efx_dword_t *hdr, size_t hdr_len,
drivers/net/ethernet/sfc/ef10.c
2056
memcpy(pdu, hdr, hdr_len);
drivers/net/ethernet/sfc/ef10.c
2075
const efx_dword_t hdr = *(const efx_dword_t *)nic_data->mcdi_buf.addr;
drivers/net/ethernet/sfc/ef10.c
2078
return EFX_DWORD_FIELD(hdr, MCDI_HEADER_RESPONSE);
drivers/net/ethernet/sfc/ef100_nic.c
66
const efx_dword_t *hdr, size_t hdr_len,
drivers/net/ethernet/sfc/ef100_nic.c
72
memcpy(pdu, hdr, hdr_len);
drivers/net/ethernet/sfc/ef100_nic.c
88
const efx_dword_t hdr =
drivers/net/ethernet/sfc/ef100_nic.c
92
return EFX_DWORD_FIELD(hdr, MCDI_HEADER_RESPONSE);
drivers/net/ethernet/sfc/mcdi.c
154
efx_dword_t hdr[2];
drivers/net/ethernet/sfc/mcdi.c
172
EFX_POPULATE_DWORD_7(hdr[0],
drivers/net/ethernet/sfc/mcdi.c
184
EFX_POPULATE_DWORD_7(hdr[0],
drivers/net/ethernet/sfc/mcdi.c
192
EFX_POPULATE_DWORD_2(hdr[1],
drivers/net/ethernet/sfc/mcdi.c
214
le32_to_cpu(hdr[i].u32[0]));
drivers/net/ethernet/sfc/mcdi.c
225
efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen);
drivers/net/ethernet/sfc/mcdi.c
269
efx_dword_t hdr;
drivers/net/ethernet/sfc/mcdi.c
271
efx->type->mcdi_read_response(efx, &hdr, 0, 4);
drivers/net/ethernet/sfc/mcdi.c
272
respseq = EFX_DWORD_FIELD(hdr, MCDI_HEADER_SEQ);
drivers/net/ethernet/sfc/mcdi.c
273
respcmd = EFX_DWORD_FIELD(hdr, MCDI_HEADER_CODE);
drivers/net/ethernet/sfc/mcdi.c
274
error = EFX_DWORD_FIELD(hdr, MCDI_HEADER_ERROR);
drivers/net/ethernet/sfc/mcdi.c
278
mcdi->resp_data_len = EFX_DWORD_FIELD(hdr, MCDI_HEADER_DATALEN);
drivers/net/ethernet/sfc/mcdi.c
280
efx->type->mcdi_read_response(efx, &hdr, 4, 4);
drivers/net/ethernet/sfc/mcdi.c
283
EFX_DWORD_FIELD(hdr, MC_CMD_V2_EXTN_IN_ACTUAL_LEN);
drivers/net/ethernet/sfc/mcdi.c
303
efx->type->mcdi_read_response(efx, &hdr, (i * 4), 4);
drivers/net/ethernet/sfc/mcdi.c
305
" %08x", le32_to_cpu(hdr.u32[0]));
drivers/net/ethernet/sfc/mcdi.c
309
efx->type->mcdi_read_response(efx, &hdr,
drivers/net/ethernet/sfc/mcdi.c
312
" %08x", le32_to_cpu(hdr.u32[0]));
drivers/net/ethernet/sfc/mcdi.c
329
efx->type->mcdi_read_response(efx, &hdr, mcdi->resp_hdr_len, 4);
drivers/net/ethernet/sfc/mcdi.c
330
mcdi->resprc_raw = EFX_DWORD_FIELD(hdr, EFX_DWORD_0);
drivers/net/ethernet/sfc/net_driver.h
1435
const efx_dword_t *hdr, size_t hdr_len,
drivers/net/ethernet/sfc/siena/mcdi.c
158
efx_dword_t hdr[2];
drivers/net/ethernet/sfc/siena/mcdi.c
176
EFX_POPULATE_DWORD_7(hdr[0],
drivers/net/ethernet/sfc/siena/mcdi.c
188
EFX_POPULATE_DWORD_7(hdr[0],
drivers/net/ethernet/sfc/siena/mcdi.c
196
EFX_POPULATE_DWORD_2(hdr[1],
drivers/net/ethernet/sfc/siena/mcdi.c
218
le32_to_cpu(hdr[i].u32[0]));
drivers/net/ethernet/sfc/siena/mcdi.c
229
efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen);
drivers/net/ethernet/sfc/siena/mcdi.c
273
efx_dword_t hdr;
drivers/net/ethernet/sfc/siena/mcdi.c
275
efx->type->mcdi_read_response(efx, &hdr, 0, 4);
drivers/net/ethernet/sfc/siena/mcdi.c
276
respseq = EFX_DWORD_FIELD(hdr, MCDI_HEADER_SEQ);
drivers/net/ethernet/sfc/siena/mcdi.c
277
respcmd = EFX_DWORD_FIELD(hdr, MCDI_HEADER_CODE);
drivers/net/ethernet/sfc/siena/mcdi.c
278
error = EFX_DWORD_FIELD(hdr, MCDI_HEADER_ERROR);
drivers/net/ethernet/sfc/siena/mcdi.c
282
mcdi->resp_data_len = EFX_DWORD_FIELD(hdr, MCDI_HEADER_DATALEN);
drivers/net/ethernet/sfc/siena/mcdi.c
284
efx->type->mcdi_read_response(efx, &hdr, 4, 4);
drivers/net/ethernet/sfc/siena/mcdi.c
287
EFX_DWORD_FIELD(hdr, MC_CMD_V2_EXTN_IN_ACTUAL_LEN);
drivers/net/ethernet/sfc/siena/mcdi.c
307
efx->type->mcdi_read_response(efx, &hdr, (i * 4), 4);
drivers/net/ethernet/sfc/siena/mcdi.c
309
" %08x", le32_to_cpu(hdr.u32[0]));
drivers/net/ethernet/sfc/siena/mcdi.c
313
efx->type->mcdi_read_response(efx, &hdr,
drivers/net/ethernet/sfc/siena/mcdi.c
316
" %08x", le32_to_cpu(hdr.u32[0]));
drivers/net/ethernet/sfc/siena/mcdi.c
333
efx->type->mcdi_read_response(efx, &hdr, mcdi->resp_hdr_len, 4);
drivers/net/ethernet/sfc/siena/mcdi.c
334
mcdi->resprc_raw = EFX_DWORD_FIELD(hdr, EFX_DWORD_0);
drivers/net/ethernet/sfc/siena/net_driver.h
1334
const efx_dword_t *hdr, size_t hdr_len,
drivers/net/ethernet/sfc/siena/siena.c
750
const efx_dword_t *hdr, size_t hdr_len,
drivers/net/ethernet/sfc/siena/siena.c
760
efx_writed(efx, hdr, pdu);
drivers/net/ethernet/sfc/siena/siena.c
775
efx_dword_t hdr;
drivers/net/ethernet/sfc/siena/siena.c
777
efx_readd(efx, &hdr, pdu);
drivers/net/ethernet/sfc/siena/siena.c
783
return EFX_DWORD_FIELD(hdr, EFX_DWORD_0) != 0xffffffff &&
drivers/net/ethernet/sfc/siena/siena.c
784
EFX_DWORD_FIELD(hdr, MCDI_HEADER_RESPONSE);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
4381
u8 proto_hdr_len, hdr;
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
4407
hdr = sizeof(struct udphdr);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
4410
hdr = tcp_hdrlen(skb);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
4447
__func__, hdr, proto_hdr_len, pay_len, mss);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
4578
is_last_segment, hdr / 4,
drivers/net/ethernet/sun/sunvnet_common.c
1008
if (d->hdr.state == VIO_DESC_READY) {
drivers/net/ethernet/sun/sunvnet_common.c
1013
if (d->hdr.state != VIO_DESC_DONE)
drivers/net/ethernet/sun/sunvnet_common.c
1015
d->hdr.state);
drivers/net/ethernet/sun/sunvnet_common.c
1025
} else if (d->hdr.state == VIO_DESC_FREE) {
drivers/net/ethernet/sun/sunvnet_common.c
1028
d->hdr.state = VIO_DESC_FREE;
drivers/net/ethernet/sun/sunvnet_common.c
1424
d->hdr.ack = VIO_ACK_DISABLE;
drivers/net/ethernet/sun/sunvnet_common.c
1450
d->hdr.state = VIO_DESC_READY;
drivers/net/ethernet/sun/sunvnet_common.c
1481
d->hdr.state = VIO_DESC_FREE;
drivers/net/ethernet/sun/sunvnet_common.c
1695
d->hdr.state = VIO_DESC_FREE;
drivers/net/ethernet/sun/sunvnet_common.c
1757
d->hdr.state = VIO_DESC_FREE;
drivers/net/ethernet/sun/sunvnet_common.c
473
struct vio_dring_data hdr = {
drivers/net/ethernet/sun/sunvnet_common.c
488
hdr.seq = dr->snd_nxt;
drivers/net/ethernet/sun/sunvnet_common.c
491
err = vio_ldc_send(&port->vio, &hdr, sizeof(hdr));
drivers/net/ethernet/sun/sunvnet_common.c
563
if (desc->hdr.state != VIO_DESC_READY)
drivers/net/ethernet/sun/sunvnet_common.c
569
desc->hdr.state, desc->hdr.ack,
drivers/net/ethernet/sun/sunvnet_common.c
578
index, desc->hdr.ack);
drivers/net/ethernet/sun/sunvnet_common.c
579
desc->hdr.state = VIO_DESC_DONE;
drivers/net/ethernet/sun/sunvnet_common.c
583
*needs_ack = desc->hdr.ack;
drivers/net/ethernet/sun/sunvnet_common.c
713
if (desc->hdr.state == VIO_DESC_READY && !port->start_cons) {
drivers/net/ethernet/sun/sunvnet_common.c
943
struct vio_dring_data hdr = {
drivers/net/ethernet/sun/sunvnet_common.c
969
hdr.seq = dr->snd_nxt;
drivers/net/ethernet/sun/sunvnet_common.c
972
err = vio_ldc_send(&port->vio, &hdr, sizeof(hdr));
drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c
407
xlgmac_set_buffer_data(&desc_data->rx.hdr, &ring->rx_hdr_pa,
drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c
41
if (desc_data->rx.hdr.pa.pages)
drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c
42
put_page(desc_data->rx.hdr.pa.pages);
drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c
44
if (desc_data->rx.hdr.pa_unmap.pages) {
drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c
45
dma_unmap_page(pdata->dev, desc_data->rx.hdr.pa_unmap.pages_dma,
drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c
46
desc_data->rx.hdr.pa_unmap.pages_len,
drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c
48
put_page(desc_data->rx.hdr.pa_unmap.pages);
drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c
1110
hdr_dma = desc_data->rx.hdr.dma_base + desc_data->rx.hdr.dma_off;
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
1003
dma_sync_single_range_for_cpu(pdata->dev, desc_data->rx.hdr.dma_base,
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
1004
desc_data->rx.hdr.dma_off,
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
1005
desc_data->rx.hdr.dma_len,
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
1008
packet = page_address(desc_data->rx.hdr.pa.pages) +
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
1009
desc_data->rx.hdr.pa.pages_offset;
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
1011
copy_len = min(desc_data->rx.hdr.dma_len, copy_len);
drivers/net/ethernet/synopsys/dwc-xlgmac-net.c
996
skb = napi_alloc_skb(napi, desc_data->rx.hdr.dma_len);
drivers/net/ethernet/synopsys/dwc-xlgmac.h
248
struct xlgmac_buffer_data hdr; /* Header locations */
drivers/net/ethernet/ti/am65-cpsw-ethtool.c
541
if (am65_cpsw_regdump[i].hdr.module_id ==
drivers/net/ethernet/ti/am65-cpsw-ethtool.c
548
regdump_len += am65_cpsw_regdump[i].hdr.len;
drivers/net/ethernet/ti/am65-cpsw-ethtool.c
566
reg[pos++] = am65_cpsw_regdump[i].hdr.module_id;
drivers/net/ethernet/ti/am65-cpsw-ethtool.c
568
if (am65_cpsw_regdump[i].hdr.module_id ==
drivers/net/ethernet/ti/am65-cpsw-ethtool.c
579
reg[pos++] = am65_cpsw_regdump[i].hdr.len;
drivers/net/ethernet/ti/am65-cpsw-ethtool.c
58
struct am65_cpsw_regdump_hdr hdr;
drivers/net/ethernet/ti/am65-cpsw-ethtool.c
64
.hdr.module_id = (mod), \
drivers/net/ethernet/ti/am65-cpsw-ethtool.c
65
.hdr.len = (end + 4 - start) * 2 + \
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1126
cppi5_desc_set_pktids(&host_desc->hdr, 0, AM65_CPSW_CPPI_TX_FLOW_ID);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1127
cppi5_desc_set_tags_ids(&host_desc->hdr, 0, port->port_id);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1314
cppi5_desc_get_tags_ids(&desc_rx->hdr, &port_id, NULL);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1640
cppi5_desc_set_pktids(&first_desc->hdr, 0, AM65_CPSW_CPPI_TX_FLOW_ID);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1642
cppi5_desc_set_tags_ids(&first_desc->hdr, 0, port->port_id);
drivers/net/ethernet/ti/am65-cpts.c
899
struct ptp_header *hdr;
drivers/net/ethernet/ti/am65-cpts.c
906
hdr = ptp_parse_header(skb, ptp_class);
drivers/net/ethernet/ti/am65-cpts.c
907
if (!hdr)
drivers/net/ethernet/ti/am65-cpts.c
910
msgtype = ptp_get_msgtype(hdr, ptp_class);
drivers/net/ethernet/ti/am65-cpts.c
911
seqid = ntohs(hdr->sequence_id);
drivers/net/ethernet/ti/cpts.c
437
struct ptp_header *hdr;
drivers/net/ethernet/ti/cpts.c
444
hdr = ptp_parse_header(skb, ptp_class);
drivers/net/ethernet/ti/cpts.c
445
if (!hdr)
drivers/net/ethernet/ti/cpts.c
448
msgtype = ptp_get_msgtype(hdr, ptp_class);
drivers/net/ethernet/ti/cpts.c
449
seqid = ntohs(hdr->sequence_id);
drivers/net/ethernet/ti/icssg/icssg_common.c
1059
cppi5_desc_get_tags_ids(&desc_rx->hdr, &port_id, NULL);
drivers/net/ethernet/ti/icssg/icssg_common.c
1251
cppi5_desc_set_tags_ids(&first_desc->hdr, 0, dst_tag_id);
drivers/net/ethernet/ti/icssg/icssg_common.c
140
cppi5_desc_set_tags_ids(&host_desc->hdr, 0,
drivers/net/ethernet/ti/icssg/icssg_common.c
742
cppi5_desc_set_tags_ids(&first_desc->hdr, 0, (emac->port_id | (q_idx << 8)));
drivers/net/ethernet/ti/icssg/icssg_common.c
963
cppi5_desc_get_tags_ids(&desc_rx->hdr, &port_id, NULL);
drivers/net/ethernet/wangxun/libwx/wx_hw.c
401
struct wx_hic_hdr *hdr = (struct wx_hic_hdr *)buffer;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
418
hdr->index = wx->swfw_index;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
419
send_cmd = hdr->cmd;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
442
if (hdr->cmd_or_resp.ret_status == 0x80) {
drivers/net/ethernet/wangxun/libwx/wx_hw.c
453
buf_len = hdr->buf_len;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
521
pps_cmd.hdr.cmd = FW_PPS_SET_CMD;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
522
pps_cmd.hdr.buf_len = FW_PPS_SET_LEN;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
523
pps_cmd.hdr.cmd_or_resp.cmd_resv = FW_CEM_CMD_RESERVED;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
528
pps_cmd.hdr.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
550
buffer.hdr.req.cmd = FW_READ_SHADOW_RAM_CMD;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
551
buffer.hdr.req.buf_lenh = 0;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
552
buffer.hdr.req.buf_lenl = FW_READ_SHADOW_RAM_LEN;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
553
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
627
buffer.hdr.req.cmd = FW_READ_SHADOW_RAM_CMD;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
628
buffer.hdr.req.buf_lenh = 0;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
629
buffer.hdr.req.buf_lenl = FW_READ_SHADOW_RAM_LEN;
drivers/net/ethernet/wangxun/libwx/wx_hw.c
630
buffer.hdr.req.checksum = FW_DEFAULT_CHECKSUM;
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1206
union network_header hdr;
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1226
hdr.raw = (void *)inner_ip_hdr(skb);
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1229
hdr.raw = (void *)inner_ip_hdr(skb);
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1242
hdr.raw = (void *)inner_ip_hdr(skb);
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1257
switch (hdr.ipv4->version) {
drivers/net/ethernet/wangxun/libwx/wx_lib.c
1259
l4_prot = hdr.ipv4->protocol;
drivers/net/ethernet/wangxun/libwx/wx_type.h
818
union wx_hic_hdr2 hdr;
drivers/net/ethernet/wangxun/libwx/wx_type.h
827
struct wx_hic_hdr hdr;
drivers/net/ethernet/wangxun/libwx/wx_type.h
833
struct wx_hic_hdr hdr;
drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c
19
buffer.hdr.req.cmd = NGBE_FW_EEPROM_CHECKSUM_CMD;
drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c
20
buffer.hdr.req.buf_lenh = 0;
drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c
21
buffer.hdr.req.buf_lenl = 0;
drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c
22
buffer.hdr.req.checksum = NGBE_FW_CMD_DEFAULT_CHECKSUM;
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
112
buffer->hdr.cmd = FW_GET_MODULE_INFO_CMD;
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
113
buffer->hdr.buf_len = sizeof(struct txgbe_hic_get_module_info) -
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
115
buffer->hdr.cmd_or_resp.cmd_resv = FW_CEM_CMD_RESERVED;
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
126
buffer.hdr.cmd = FW_PHY_SET_LINK_CMD;
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
127
buffer.hdr.buf_len = sizeof(struct txgbe_hic_ephy_setlink) -
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
129
buffer.hdr.cmd_or_resp.cmd_resv = FW_CEM_CMD_RESERVED;
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
67
buffer.hdr.cmd = FW_PHY_GET_LINK_CMD;
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
68
buffer.hdr.buf_len = sizeof(struct txgbe_hic_ephy_getlink) -
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
70
buffer.hdr.cmd_or_resp.cmd_resv = FW_CEM_CMD_RESERVED;
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
83
buffer->hdr.cmd = FW_READ_EEPROM_CMD;
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
84
buffer->hdr.buf_len = sizeof(struct txgbe_hic_i2c_read) -
drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
86
buffer->hdr.cmd_or_resp.cmd_resv = FW_CEM_CMD_RESERVED;
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
235
} hdr;
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
247
hdr.raw = (void *)skb_inner_network_header(first->skb);
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
253
hdr.raw = (void *)skb_network_header(first->skb);
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
289
common.ip ^= hdr.ipv6->saddr.s6_addr32[0] ^
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
290
hdr.ipv6->saddr.s6_addr32[1] ^
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
291
hdr.ipv6->saddr.s6_addr32[2] ^
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
292
hdr.ipv6->saddr.s6_addr32[3] ^
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
293
hdr.ipv6->daddr.s6_addr32[0] ^
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
294
hdr.ipv6->daddr.s6_addr32[1] ^
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
295
hdr.ipv6->daddr.s6_addr32[2] ^
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
296
hdr.ipv6->daddr.s6_addr32[3];
drivers/net/ethernet/wangxun/txgbe/txgbe_fdir.c
299
common.ip ^= hdr.ipv4->saddr ^ hdr.ipv4->daddr;
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h
374
struct wx_hic_hdr hdr;
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h
379
struct wx_hic_hdr hdr;
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h
388
struct wx_hic_hdr hdr;
drivers/net/ethernet/wangxun/txgbe/txgbe_type.h
399
struct wx_hic_hdr hdr;
drivers/net/fddi/defza.c
705
((u8 *)&frame->hdr.fc - (u8 *)frame),
drivers/net/fddi/defza.c
706
sizeof(frame->hdr.fc),
drivers/net/fddi/defza.c
708
fc = frame->hdr.fc;
drivers/net/fddi/defza.c
748
is_multi = ((frame->hdr.daddr[0] & 0x01) != 0);
drivers/net/fddi/defza.h
791
struct fddihdr hdr;
drivers/net/gtp.c
401
static void gtp0_build_echo_msg(struct gtp0_header *hdr, __u8 msg_type)
drivers/net/gtp.c
405
hdr->flags = 0x1e; /* v0, GTP-non-prime. */
drivers/net/gtp.c
406
hdr->type = msg_type;
drivers/net/gtp.c
410
hdr->flow = 0;
drivers/net/gtp.c
411
hdr->tid = 0;
drivers/net/gtp.c
412
hdr->number = 0xff;
drivers/net/gtp.c
413
hdr->spare[0] = 0xff;
drivers/net/gtp.c
414
hdr->spare[1] = 0xff;
drivers/net/gtp.c
415
hdr->spare[2] = 0xff;
drivers/net/gtp.c
421
hdr->length = htons(len_pkt - len_hdr);
drivers/net/gtp.c
423
hdr->length = 0;
drivers/net/gtp.c
625
static void gtp1u_build_echo_msg(struct gtp1_header_long *hdr, __u8 msg_type)
drivers/net/gtp.c
630
hdr->flags = 0x32; /* v1, GTP-non-prime. */
drivers/net/gtp.c
631
hdr->type = msg_type;
drivers/net/gtp.c
633
hdr->tid = 0;
drivers/net/gtp.c
644
hdr->length = htons(len_pkt - len_hdr);
drivers/net/gtp.c
650
hdr->length = htons(len_pkt - len_hdr);
drivers/net/hyperv/hyperv_net.h
50
struct ndis_obj_header hdr;
drivers/net/hyperv/hyperv_net.h
81
struct ndis_obj_header hdr;
drivers/net/hyperv/hyperv_net.h
821
struct nvsp_message_header hdr;
drivers/net/hyperv/hyperv_net.h
845
struct nvsp_message_header hdr;
drivers/net/hyperv/netvsc.c
1113
nvmsg.hdr.msg_type = NVSP_MSG1_TYPE_SEND_RNDIS_PKT;
drivers/net/hyperv/netvsc.c
1357
struct nvsp_message_header hdr;
drivers/net/hyperv/netvsc.c
1361
.hdr.msg_type = NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE,
drivers/net/hyperv/netvsc.c
1462
if (unlikely(nvsp->hdr.msg_type != NVSP_MSG1_TYPE_SEND_RNDIS_PKT)) {
drivers/net/hyperv/netvsc.c
1465
nvsp->hdr.msg_type);
drivers/net/hyperv/netvsc.c
1632
switch (nvmsg->hdr.msg_type) {
drivers/net/hyperv/netvsc.c
196
revoke_packet->hdr.msg_type =
drivers/net/hyperv/netvsc.c
246
revoke_packet->hdr.msg_type =
drivers/net/hyperv/netvsc.c
382
init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF;
drivers/net/hyperv/netvsc.c
48
init_pkt->hdr.msg_type = NVSP_MSG4_TYPE_SWITCH_DATA_PATH;
drivers/net/hyperv/netvsc.c
485
init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF;
drivers/net/hyperv/netvsc.c
563
init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT;
drivers/net/hyperv/netvsc.c
589
init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG;
drivers/net/hyperv/netvsc.c
661
init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER;
drivers/net/hyperv/netvsc.c
839
switch (pkt_rqst->hdr.msg_type) {
drivers/net/hyperv/netvsc.c
857
switch (nvsp_packet->hdr.msg_type) {
drivers/net/hyperv/netvsc.c
920
nvsp_packet->hdr.msg_type);
drivers/net/hyperv/netvsc_drv.c
329
static u32 init_page_array(void *hdr, u32 len, struct sk_buff *skb,
drivers/net/hyperv/netvsc_drv.c
342
pb[0].offset = offset_in_hvpage(hdr);
drivers/net/hyperv/netvsc_drv.c
344
pb[0].pfn = virt_to_hvpfn(hdr);
drivers/net/hyperv/netvsc_trace.h
125
__entry->msg_type = msg->hdr.msg_type;
drivers/net/hyperv/netvsc_trace.h
170
__entry->msg_type = msg->hdr.msg_type;
drivers/net/hyperv/rndis_filter.c
1298
init_packet->hdr.msg_type = NVSP_MSG5_TYPE_SUBCHANNEL;
drivers/net/hyperv/rndis_filter.c
689
cap->hdr.type = NDIS_OBJECT_TYPE_RSS_CAPABILITIES;
drivers/net/hyperv/rndis_filter.c
690
cap->hdr.rev = NDIS_RECEIVE_SCALE_CAPABILITIES_REVISION_2;
drivers/net/hyperv/rndis_filter.c
691
cap->hdr.size = sizeof(struct ndis_recv_scale_cap);
drivers/net/hyperv/rndis_filter.c
935
rssp->hdr.type = NDIS_OBJECT_TYPE_RSS_PARAMETERS;
drivers/net/hyperv/rndis_filter.c
936
rssp->hdr.rev = NDIS_RECEIVE_SCALE_PARAMETERS_REVISION_2;
drivers/net/hyperv/rndis_filter.c
937
rssp->hdr.size = sizeof(struct ndis_recv_scale_param);
drivers/net/ieee802154/ca8210.c
1757
struct ieee802154_hdr hdr;
drivers/net/ieee802154/ca8210.c
1765
skb = dev_alloc_skb(IEEE802154_MTU + sizeof(hdr));
drivers/net/ieee802154/ca8210.c
1769
skb_reserve(skb, sizeof(hdr));
drivers/net/ieee802154/ca8210.c
1786
hdr.sec.level = data_ind[29 + msdulen];
drivers/net/ieee802154/ca8210.c
1787
dev_dbg(&priv->spi->dev, "security level: %#03x\n", hdr.sec.level);
drivers/net/ieee802154/ca8210.c
1788
if (hdr.sec.level > 0) {
drivers/net/ieee802154/ca8210.c
1789
hdr.sec.key_id_mode = data_ind[30 + msdulen];
drivers/net/ieee802154/ca8210.c
1790
memcpy(&hdr.sec.extended_src, &data_ind[31 + msdulen], 8);
drivers/net/ieee802154/ca8210.c
1791
hdr.sec.key_id = data_ind[39 + msdulen];
drivers/net/ieee802154/ca8210.c
1793
hdr.source.mode = data_ind[0];
drivers/net/ieee802154/ca8210.c
1794
dev_dbg(&priv->spi->dev, "srcAddrMode: %#03x\n", hdr.source.mode);
drivers/net/ieee802154/ca8210.c
1795
hdr.source.pan_id = cpu_to_le16(get_unaligned_le16(&data_ind[1]));
drivers/net/ieee802154/ca8210.c
1796
dev_dbg(&priv->spi->dev, "srcPanId: %#06x\n", hdr.source.pan_id);
drivers/net/ieee802154/ca8210.c
1797
memcpy(&hdr.source.extended_addr, &data_ind[3], 8);
drivers/net/ieee802154/ca8210.c
1798
hdr.dest.mode = data_ind[11];
drivers/net/ieee802154/ca8210.c
1799
dev_dbg(&priv->spi->dev, "dstAddrMode: %#03x\n", hdr.dest.mode);
drivers/net/ieee802154/ca8210.c
1800
hdr.dest.pan_id = cpu_to_le16(get_unaligned_le16(&data_ind[12]));
drivers/net/ieee802154/ca8210.c
1801
dev_dbg(&priv->spi->dev, "dstPanId: %#06x\n", hdr.dest.pan_id);
drivers/net/ieee802154/ca8210.c
1802
memcpy(&hdr.dest.extended_addr, &data_ind[14], 8);
drivers/net/ieee802154/ca8210.c
1805
hdr.fc.type = 1; /* Data frame */
drivers/net/ieee802154/ca8210.c
1806
if (hdr.sec.level)
drivers/net/ieee802154/ca8210.c
1807
hdr.fc.security_enabled = 1;
drivers/net/ieee802154/ca8210.c
1809
hdr.fc.security_enabled = 0;
drivers/net/ieee802154/ca8210.c
1811
hdr.fc.intra_pan = 1;
drivers/net/ieee802154/ca8210.c
1813
hdr.fc.intra_pan = 0;
drivers/net/ieee802154/ca8210.c
1814
hdr.fc.dest_addr_mode = hdr.dest.mode;
drivers/net/ieee802154/ca8210.c
1815
hdr.fc.source_addr_mode = hdr.source.mode;
drivers/net/ieee802154/ca8210.c
1818
hlen = ieee802154_hdr_push(skb, &hdr);
drivers/net/ieee802154/mac802154_hwsim.c
153
struct ieee802154_hdr hdr;
drivers/net/ieee802154/mac802154_hwsim.c
165
memcpy(&hdr, skb->data, 3);
drivers/net/ieee802154/mac802154_hwsim.c
183
switch (hdr.fc.version) {
drivers/net/ieee802154/mac802154_hwsim.c
191
hdr.fc.version);
drivers/net/ieee802154/mac802154_hwsim.c
433
void *hdr;
drivers/net/ieee802154/mac802154_hwsim.c
436
hdr = genlmsg_put(skb, portid, seq, &hwsim_genl_family, flags,
drivers/net/ieee802154/mac802154_hwsim.c
438
if (!hdr)
drivers/net/ieee802154/mac802154_hwsim.c
442
genl_dump_check_consistent(cb, hdr);
drivers/net/ieee802154/mac802154_hwsim.c
448
genlmsg_end(skb, hdr);
drivers/net/ieee802154/mac802154_hwsim.c
452
genlmsg_cancel(skb, hdr);
drivers/net/macsec.c
1010
struct ethhdr *hdr = eth_hdr(skb);
drivers/net/macsec.c
1066
if (ether_addr_equal_64bits(hdr->h_dest,
drivers/net/macsec.c
1074
hdr->h_dest)) {
drivers/net/macsec.c
1129
struct macsec_eth_header *hdr;
drivers/net/macsec.c
1147
hdr = macsec_ethhdr(skb);
drivers/net/macsec.c
1148
if (hdr->eth.h_proto != htons(ETH_P_MACSEC))
drivers/net/macsec.c
1162
hdr = macsec_ethhdr(skb);
drivers/net/macsec.c
1169
if ((hdr->tci_an & (MACSEC_TCI_C | MACSEC_TCI_E)) == MACSEC_TCI_E)
drivers/net/macsec.c
1173
if (hdr->tci_an & MACSEC_TCI_SC) {
drivers/net/macsec.c
1181
macsec_skb_cb(skb)->has_sci = !!(hdr->tci_an & MACSEC_TCI_SC);
drivers/net/macsec.c
1182
macsec_skb_cb(skb)->assoc_num = hdr->tci_an & MACSEC_AN_MASK;
drivers/net/macsec.c
1187
sci = macsec_frame_sci(hdr, macsec_skb_cb(skb)->has_sci, rxd);
drivers/net/macsec.c
1226
if (hdr->tci_an & MACSEC_TCI_C ||
drivers/net/macsec.c
1245
hdr_pn = ntohl(hdr->packet_number);
drivers/net/macsec.c
1269
if (hdr->tci_an & MACSEC_TCI_C ||
drivers/net/macsec.c
1322
cbit = !!(hdr->tci_an & MACSEC_TCI_C);
drivers/net/macsec.c
262
static sci_t macsec_frame_sci(struct macsec_eth_header *hdr, bool sci_present,
drivers/net/macsec.c
270
memcpy(&sci, hdr->secure_channel_id,
drivers/net/macsec.c
271
sizeof(hdr->secure_channel_id));
drivers/net/macsec.c
273
} else if ((!(hdr->tci_an & (MACSEC_TCI_ES | MACSEC_TCI_SC))) &&
drivers/net/macsec.c
281
sci = make_sci(hdr->eth.h_source, MACSEC_PORT_ES);
drivers/net/macsec.c
3055
void *hdr;
drivers/net/macsec.c
3058
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
drivers/net/macsec.c
3060
if (!hdr)
drivers/net/macsec.c
3063
genl_dump_check_consistent(cb, hdr);
drivers/net/macsec.c
3265
genlmsg_end(skb, hdr);
drivers/net/macsec.c
3270
genlmsg_cancel(skb, hdr);
drivers/net/macsec.c
739
struct macsec_eth_header *hdr = macsec_ethhdr(skb);
drivers/net/macsec.c
762
if (hdr->tci_an & MACSEC_TCI_E)
drivers/net/macsec.c
773
if (hdr->tci_an & MACSEC_TCI_C ||
drivers/net/macsec.c
892
struct macsec_eth_header *hdr;
drivers/net/macsec.c
912
hdr = (struct macsec_eth_header *)skb->data;
drivers/net/macsec.c
913
hdr_pn = ntohl(hdr->packet_number);
drivers/net/macsec.c
937
if (hdr->tci_an & MACSEC_TCI_E) {
drivers/net/mctp/mctp-i2c.c
280
struct mctp_i2c_hdr *hdr;
drivers/net/mctp/mctp-i2c.c
299
hdr = (void *)midev->rx_buffer;
drivers/net/mctp/mctp-i2c.c
300
if (hdr->command != MCTP_I2C_COMMANDCODE) {
drivers/net/mctp/mctp-i2c.c
305
if (hdr->byte_count + offsetof(struct mctp_i2c_hdr, source_slave) != recvlen) {
drivers/net/mctp/mctp-i2c.c
331
cb->haddr[0] = hdr->source_slave >> 1;
drivers/net/mctp/mctp-i2c.c
494
struct mctp_i2c_hdr *hdr;
drivers/net/mctp/mctp-i2c.c
501
hdr = (void *)skb_mac_header(skb);
drivers/net/mctp/mctp-i2c.c
505
if (skb->len != hdr->byte_count + 3) {
drivers/net/mctp/mctp-i2c.c
508
hdr->byte_count + 3, skb->len);
drivers/net/mctp/mctp-i2c.c
518
hdr = (void *)midev->tx_scratch;
drivers/net/mctp/mctp-i2c.c
521
pecp = (void *)&hdr->source_slave + hdr->byte_count;
drivers/net/mctp/mctp-i2c.c
522
*pecp = i2c_smbus_pec(0, (u8 *)hdr, hdr->byte_count + 3);
drivers/net/mctp/mctp-i2c.c
523
msg.buf = (void *)&hdr->command;
drivers/net/mctp/mctp-i2c.c
525
msg.len = 2 + hdr->byte_count + 1;
drivers/net/mctp/mctp-i2c.c
526
msg.addr = hdr->dest_slave >> 1;
drivers/net/mctp/mctp-i2c.c
593
struct mctp_i2c_hdr *hdr;
drivers/net/mctp/mctp-i2c.c
613
hdr = (void *)skb_mac_header(skb);
drivers/net/mctp/mctp-i2c.c
615
hdr->dest_slave = (lldst << 1) & 0xff;
drivers/net/mctp/mctp-i2c.c
616
hdr->command = MCTP_I2C_COMMANDCODE;
drivers/net/mctp/mctp-i2c.c
617
hdr->byte_count = len + 1;
drivers/net/mctp/mctp-i2c.c
618
hdr->source_slave = ((llsrc << 1) & 0xff) | 0x01;
drivers/net/mctp/mctp-usb.c
185
struct mctp_usb_hdr *hdr;
drivers/net/mctp/mctp-usb.c
189
hdr = skb_pull_data(skb, sizeof(*hdr));
drivers/net/mctp/mctp-usb.c
190
if (!hdr)
drivers/net/mctp/mctp-usb.c
193
if (be16_to_cpu(hdr->id) != MCTP_USB_DMTF_ID) {
drivers/net/mctp/mctp-usb.c
195
be16_to_cpu(hdr->id));
drivers/net/mctp/mctp-usb.c
199
if (hdr->len <
drivers/net/mctp/mctp-usb.c
202
hdr->len);
drivers/net/mctp/mctp-usb.c
207
pkt_len = hdr->len - sizeof(struct mctp_usb_hdr);
drivers/net/mctp/mctp-usb.c
211
hdr->len, skb->len);
drivers/net/mctp/mctp-usb.c
70
struct mctp_usb_hdr *hdr;
drivers/net/mctp/mctp-usb.c
77
if (plen + sizeof(*hdr) > MCTP_USB_XFER_SIZE)
drivers/net/mctp/mctp-usb.c
80
rc = skb_cow_head(skb, sizeof(*hdr));
drivers/net/mctp/mctp-usb.c
84
hdr = skb_push(skb, sizeof(*hdr));
drivers/net/mctp/mctp-usb.c
85
if (!hdr)
drivers/net/mctp/mctp-usb.c
88
hdr->id = cpu_to_be16(MCTP_USB_DMTF_ID);
drivers/net/mctp/mctp-usb.c
89
hdr->rsvd = 0;
drivers/net/mctp/mctp-usb.c
90
hdr->len = plen + sizeof(*hdr);
drivers/net/ovpn/netlink.c
1153
void *hdr;
drivers/net/ovpn/netlink.c
1162
hdr = genlmsg_put(msg, 0, 0, &ovpn_nl_family, 0, OVPN_CMD_PEER_DEL_NTF);
drivers/net/ovpn/netlink.c
1163
if (!hdr) {
drivers/net/ovpn/netlink.c
1183
genlmsg_end(msg, hdr);
drivers/net/ovpn/netlink.c
1200
genlmsg_cancel(msg, hdr);
drivers/net/ovpn/netlink.c
1219
void *hdr;
drivers/net/ovpn/netlink.c
1228
hdr = genlmsg_put(msg, 0, 0, &ovpn_nl_family, 0, OVPN_CMD_KEY_SWAP_NTF);
drivers/net/ovpn/netlink.c
1229
if (!hdr) {
drivers/net/ovpn/netlink.c
1248
genlmsg_end(msg, hdr);
drivers/net/ovpn/netlink.c
1264
genlmsg_cancel(msg, hdr);
drivers/net/ovpn/netlink.c
543
void *hdr;
drivers/net/ovpn/netlink.c
546
hdr = genlmsg_put(skb, portid, seq, &ovpn_nl_family, flags,
drivers/net/ovpn/netlink.c
548
if (!hdr)
drivers/net/ovpn/netlink.c
640
genlmsg_end(skb, hdr);
drivers/net/ovpn/netlink.c
646
genlmsg_cancel(skb, hdr);
drivers/net/ovpn/netlink.c
952
void *hdr;
drivers/net/ovpn/netlink.c
954
hdr = genlmsg_put(skb, info->snd_portid, info->snd_seq, &ovpn_nl_family,
drivers/net/ovpn/netlink.c
956
if (!hdr)
drivers/net/ovpn/netlink.c
972
genlmsg_end(skb, hdr);
drivers/net/ovpn/netlink.c
976
genlmsg_cancel(skb, hdr);
drivers/net/phy/bcm-phy-ptp.c
748
struct ptp_header *hdr;
drivers/net/phy/bcm-phy-ptp.c
752
hdr = ptp_parse_header(skb, type);
drivers/net/phy/bcm-phy-ptp.c
753
if (!hdr)
drivers/net/phy/bcm-phy-ptp.c
755
msgtype = ptp_get_msgtype(hdr, type);
drivers/net/phy/bcm-phy-ptp.c
768
BCM_SKB_CB(skb)->seq_id = be16_to_cpu(hdr->sequence_id);
drivers/net/phy/dp83640.c
797
struct ptp_header *hdr;
drivers/net/phy/dp83640.c
804
hdr = ptp_parse_header(skb, type);
drivers/net/phy/dp83640.c
805
if (!hdr)
drivers/net/phy/dp83640.c
808
msgtype = ptp_get_msgtype(hdr, type);
drivers/net/phy/dp83640.c
813
seqid = be16_to_cpu(hdr->sequence_id);
drivers/net/phy/dp83640.c
818
(unsigned char *)&hdr->source_port_identity) >> 20;
drivers/net/ppp/pppoe.c
847
struct pppoe_hdr hdr;
drivers/net/ppp/pppoe.c
859
hdr.ver = 1;
drivers/net/ppp/pppoe.c
860
hdr.type = 1;
drivers/net/ppp/pppoe.c
861
hdr.code = 0;
drivers/net/ppp/pppoe.c
862
hdr.sid = po->num;
drivers/net/ppp/pppoe.c
900
memcpy(ph, &hdr, sizeof(struct pppoe_hdr));
drivers/net/ppp/pptp.c
155
struct pptp_gre_header *hdr;
drivers/net/ppp/pptp.c
156
unsigned int header_len = sizeof(*hdr);
drivers/net/ppp/pptp.c
176
max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(*iph) + sizeof(*hdr) + 2;
drivers/net/ppp/pptp.c
213
header_len -= sizeof(hdr->ack);
drivers/net/ppp/pptp.c
217
hdr = (struct pptp_gre_header *)(skb->data);
drivers/net/ppp/pptp.c
219
hdr->gre_hd.flags = GRE_KEY | GRE_VERSION_1 | GRE_SEQ;
drivers/net/ppp/pptp.c
220
hdr->gre_hd.protocol = GRE_PROTO_PPP;
drivers/net/ppp/pptp.c
221
hdr->call_id = htons(opt->dst_addr.call_id);
drivers/net/ppp/pptp.c
223
hdr->seq = htonl(++opt->seq_sent);
drivers/net/ppp/pptp.c
226
hdr->gre_hd.flags |= GRE_ACK;
drivers/net/ppp/pptp.c
227
hdr->ack = htonl(seq_recv);
drivers/net/ppp/pptp.c
230
hdr->payload_len = htons(len);
drivers/net/team/team_core.c
2271
void *hdr;
drivers/net/team/team_core.c
2278
hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq,
drivers/net/team/team_core.c
2280
if (!hdr) {
drivers/net/team/team_core.c
2285
genlmsg_end(msg, hdr);
drivers/net/team/team_core.c
2437
void *hdr;
drivers/net/team/team_core.c
2452
hdr = genlmsg_put(skb, portid, seq, &team_nl_family, flags | NLM_F_MULTI,
drivers/net/team/team_core.c
2454
if (!hdr) {
drivers/net/team/team_core.c
2482
genlmsg_end(skb, hdr);
drivers/net/team/team_core.c
2725
void *hdr;
drivers/net/team/team_core.c
2740
hdr = genlmsg_put(skb, portid, seq, &team_nl_family, flags | NLM_F_MULTI,
drivers/net/team/team_core.c
2742
if (!hdr) {
drivers/net/team/team_core.c
2780
genlmsg_end(skb, hdr);
drivers/net/thunderbolt/main.c
1000
void *dest = hdr + 1;
drivers/net/thunderbolt/main.c
1008
hdr = page_address(frames[i]->page);
drivers/net/thunderbolt/main.c
1009
hdr->frame_count = cpu_to_le32(frame_count);
drivers/net/thunderbolt/main.c
1010
trace_tbnet_tx_ip_frame(hdr->frame_size, hdr->frame_id,
drivers/net/thunderbolt/main.c
1011
hdr->frame_index, hdr->frame_count);
drivers/net/thunderbolt/main.c
107
struct thunderbolt_ip_header hdr;
drivers/net/thunderbolt/main.c
1070
hdr = page_address(frames[i]->page);
drivers/net/thunderbolt/main.c
1071
dest = (void *)(hdr + 1) + offset;
drivers/net/thunderbolt/main.c
1072
len = le32_to_cpu(hdr->frame_size) - offset;
drivers/net/thunderbolt/main.c
1074
hdr->frame_count = cpu_to_le32(frame_count);
drivers/net/thunderbolt/main.c
1075
trace_tbnet_tx_ip_frame(hdr->frame_size, hdr->frame_id,
drivers/net/thunderbolt/main.c
1076
hdr->frame_index, hdr->frame_count);
drivers/net/thunderbolt/main.c
1109
struct thunderbolt_ip_frame_header *hdr;
drivers/net/thunderbolt/main.c
1131
hdr = page_address(frames[frame_index]->page);
drivers/net/thunderbolt/main.c
1132
dest = hdr + 1;
drivers/net/thunderbolt/main.c
1138
hdr->frame_size = cpu_to_le32(TBNET_MAX_PAYLOAD_SIZE);
drivers/net/thunderbolt/main.c
1139
hdr->frame_index = cpu_to_le16(frame_index);
drivers/net/thunderbolt/main.c
1140
hdr->frame_id = cpu_to_le16(frame_id);
drivers/net/thunderbolt/main.c
115
struct thunderbolt_ip_header hdr;
drivers/net/thunderbolt/main.c
1181
hdr = page_address(frames[frame_index]->page);
drivers/net/thunderbolt/main.c
1182
dest = hdr + 1;
drivers/net/thunderbolt/main.c
1185
hdr->frame_size = cpu_to_le32(data_len);
drivers/net/thunderbolt/main.c
1186
hdr->frame_index = cpu_to_le16(frame_index);
drivers/net/thunderbolt/main.c
1187
hdr->frame_id = cpu_to_le16(frame_id);
drivers/net/thunderbolt/main.c
1189
frames[frame_index]->frame.size = data_len + sizeof(*hdr);
drivers/net/thunderbolt/main.c
119
struct thunderbolt_ip_header hdr;
drivers/net/thunderbolt/main.c
221
static void tbnet_fill_header(struct thunderbolt_ip_header *hdr, u64 route,
drivers/net/thunderbolt/main.c
231
hdr->route_hi = upper_32_bits(route);
drivers/net/thunderbolt/main.c
232
hdr->route_lo = lower_32_bits(route);
drivers/net/thunderbolt/main.c
233
hdr->length_sn = length_sn;
drivers/net/thunderbolt/main.c
234
uuid_copy(&hdr->uuid, &tbnet_svc_uuid);
drivers/net/thunderbolt/main.c
235
uuid_copy(&hdr->initiator_uuid, initiator_uuid);
drivers/net/thunderbolt/main.c
236
uuid_copy(&hdr->target_uuid, target_uuid);
drivers/net/thunderbolt/main.c
237
hdr->type = type;
drivers/net/thunderbolt/main.c
238
hdr->command_id = command_id;
drivers/net/thunderbolt/main.c
248
tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid,
drivers/net/thunderbolt/main.c
265
tbnet_fill_header(&request.hdr, xd->route, sequence, xd->local_uuid,
drivers/net/thunderbolt/main.c
285
tbnet_fill_header(&reply.hdr, route, sequence, xd->local_uuid,
drivers/net/thunderbolt/main.c
299
tbnet_fill_header(&request.hdr, xd->route, 0, xd->local_uuid,
drivers/net/thunderbolt/main.c
431
if (!uuid_equal(&pkg->hdr.initiator_uuid, net->xd->remote_uuid))
drivers/net/thunderbolt/main.c
433
if (!uuid_equal(&pkg->hdr.target_uuid, net->xd->local_uuid))
drivers/net/thunderbolt/main.c
436
route = ((u64)pkg->hdr.route_hi << 32) | pkg->hdr.route_lo;
drivers/net/thunderbolt/main.c
441
sequence = pkg->hdr.length_sn & TBIP_HDR_SN_MASK;
drivers/net/thunderbolt/main.c
443
command_id = pkg->hdr.command_id;
drivers/net/thunderbolt/main.c
445
switch (pkg->hdr.type) {
drivers/net/thunderbolt/main.c
452
pkg->hdr.command_id);
drivers/net/thunderbolt/main.c
733
const struct thunderbolt_ip_frame_header *hdr)
drivers/net/thunderbolt/main.c
748
if (size <= sizeof(*hdr)) {
drivers/net/thunderbolt/main.c
753
frame_count = le32_to_cpu(hdr->frame_count);
drivers/net/thunderbolt/main.c
754
frame_size = le32_to_cpu(hdr->frame_size);
drivers/net/thunderbolt/main.c
755
frame_index = le16_to_cpu(hdr->frame_index);
drivers/net/thunderbolt/main.c
756
frame_id = le16_to_cpu(hdr->frame_id);
drivers/net/thunderbolt/main.c
758
if ((frame_size > size - sizeof(*hdr)) || !frame_size) {
drivers/net/thunderbolt/main.c
811
const struct thunderbolt_ip_frame_header *hdr;
drivers/net/thunderbolt/main.c
812
unsigned int hdr_size = sizeof(*hdr);
drivers/net/thunderbolt/main.c
843
hdr = page_address(page);
drivers/net/thunderbolt/main.c
844
if (!tbnet_check_frame(net, tf, hdr)) {
drivers/net/thunderbolt/main.c
845
trace_tbnet_invalid_rx_ip_frame(hdr->frame_size,
drivers/net/thunderbolt/main.c
846
hdr->frame_id, hdr->frame_index, hdr->frame_count);
drivers/net/thunderbolt/main.c
853
trace_tbnet_rx_ip_frame(hdr->frame_size, hdr->frame_id,
drivers/net/thunderbolt/main.c
854
hdr->frame_index, hdr->frame_count);
drivers/net/thunderbolt/main.c
855
frame_size = le32_to_cpu(hdr->frame_size);
drivers/net/thunderbolt/main.c
877
net->rx_hdr.frame_size = hdr->frame_size;
drivers/net/thunderbolt/main.c
878
net->rx_hdr.frame_count = hdr->frame_count;
drivers/net/thunderbolt/main.c
879
net->rx_hdr.frame_index = hdr->frame_index;
drivers/net/thunderbolt/main.c
880
net->rx_hdr.frame_id = hdr->frame_id;
drivers/net/thunderbolt/main.c
98
struct thunderbolt_ip_header hdr;
drivers/net/thunderbolt/main.c
992
struct thunderbolt_ip_frame_header *hdr = page_address(frames[0]->page);
drivers/net/tun.c
1599
struct virtio_net_hdr *hdr,
drivers/net/tun.c
1634
if (hdr->gso_type || !xdp_prog) {
drivers/net/tun.c
1701
struct virtio_net_hdr_v1_hash_tunnel hdr;
drivers/net/tun.c
1719
memset(&hdr, 0, sizeof(hdr));
drivers/net/tun.c
1720
gso = (struct virtio_net_hdr *)&hdr;
drivers/net/tun.c
1814
if (tun_vnet_hdr_tnl_to_skb(tun->flags, features, skb, &hdr)) {
drivers/net/tun.c
2068
struct virtio_net_hdr_v1_hash_tunnel hdr;
drivers/net/tun.c
2072
&hdr);
drivers/net/tun.c
2080
gso = (struct virtio_net_hdr *)&hdr;
drivers/net/tun_vnet.h
123
struct virtio_net_hdr *hdr)
drivers/net/tun_vnet.h
131
if (!copy_from_iter_full(hdr, parsed_size, from))
drivers/net/tun_vnet.h
134
hdr_len = tun_vnet16_to_cpu(flags, hdr->hdr_len);
drivers/net/tun_vnet.h
136
if (hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) {
drivers/net/tun_vnet.h
137
hdr_len = max(tun_vnet16_to_cpu(flags, hdr->csum_start) + tun_vnet16_to_cpu(flags, hdr->csum_offset) + 2, hdr_len);
drivers/net/tun_vnet.h
138
hdr->hdr_len = cpu_to_tun_vnet16(flags, hdr_len);
drivers/net/tun_vnet.h
151
struct virtio_net_hdr *hdr)
drivers/net/tun_vnet.h
153
return __tun_vnet_hdr_get(sz, flags, 0, from, hdr);
drivers/net/tun_vnet.h
158
const struct virtio_net_hdr *hdr)
drivers/net/tun_vnet.h
165
if (unlikely(copy_to_iter(hdr, parsed_size, iter) != parsed_size))
drivers/net/tun_vnet.h
175
const struct virtio_net_hdr *hdr)
drivers/net/tun_vnet.h
177
return __tun_vnet_hdr_put(sz, 0, iter, hdr);
drivers/net/tun_vnet.h
181
const struct virtio_net_hdr *hdr)
drivers/net/tun_vnet.h
183
return virtio_net_hdr_to_skb(skb, hdr, tun_vnet_is_little_endian(flags));
drivers/net/tun_vnet.h
200
const struct virtio_net_hdr_v1_hash_tunnel *hdr)
drivers/net/tun_vnet.h
202
return virtio_net_hdr_tnl_to_skb(skb, hdr,
drivers/net/tun_vnet.h
211
struct virtio_net_hdr *hdr)
drivers/net/tun_vnet.h
215
if (virtio_net_hdr_from_skb(skb, hdr,
drivers/net/tun_vnet.h
222
sinfo->gso_type, tun_vnet16_to_cpu(flags, hdr->gso_size),
drivers/net/tun_vnet.h
223
tun_vnet16_to_cpu(flags, hdr->hdr_len));
drivers/net/tun_vnet.h
227
min(tun_vnet16_to_cpu(flags, hdr->hdr_len), 64), true);
drivers/net/tun_vnet.h
248
struct virtio_net_hdr_v1 *hdr = &tnl_hdr->hash_hdr.hdr;
drivers/net/tun_vnet.h
252
int hdr_len = tun_vnet16_to_cpu(flags, hdr->hdr_len);
drivers/net/tun_vnet.h
256
tun_vnet16_to_cpu(flags, hdr->gso_size),
drivers/net/tun_vnet.h
257
tun_vnet16_to_cpu(flags, hdr->hdr_len));
drivers/net/usb/cdc-phonet.c
327
struct usb_cdc_parsed_header hdr;
drivers/net/usb/cdc-phonet.c
331
cdc_parse_cdc_header(&hdr, intf, data, len);
drivers/net/usb/cdc-phonet.c
332
union_header = hdr.usb_cdc_union_desc;
drivers/net/usb/cdc-phonet.c
333
phonet = hdr.phonet_magic_present;
drivers/net/usb/cdc_ncm.c
828
struct usb_cdc_parsed_header hdr;
drivers/net/usb/cdc_ncm.c
853
cdc_parse_cdc_header(&hdr, intf, buf, len);
drivers/net/usb/cdc_ncm.c
855
if (hdr.usb_cdc_union_desc)
drivers/net/usb/cdc_ncm.c
857
hdr.usb_cdc_union_desc->bSlaveInterface0);
drivers/net/usb/cdc_ncm.c
858
ctx->ether_desc = hdr.usb_cdc_ether_desc;
drivers/net/usb/cdc_ncm.c
859
ctx->func_desc = hdr.usb_cdc_ncm_desc;
drivers/net/usb/cdc_ncm.c
860
ctx->mbim_desc = hdr.usb_cdc_mbim_desc;
drivers/net/usb/cdc_ncm.c
861
ctx->mbim_extended_desc = hdr.usb_cdc_mbim_extended_desc;
drivers/net/usb/cdc_ncm.c
864
if (!hdr.usb_cdc_union_desc && intf->intf_assoc && intf->intf_assoc->bInterfaceCount == 2) {
drivers/net/usb/qmi_wwan.c
102
struct qmimux_hdr *hdr;
drivers/net/usb/qmi_wwan.c
105
hdr = skb_push(skb, sizeof(struct qmimux_hdr));
drivers/net/usb/qmi_wwan.c
106
hdr->pad = 0;
drivers/net/usb/qmi_wwan.c
107
hdr->mux_id = priv->mux_id;
drivers/net/usb/qmi_wwan.c
108
hdr->pkt_len = cpu_to_be16(len);
drivers/net/usb/qmi_wwan.c
165
struct qmimux_hdr *hdr;
drivers/net/usb/qmi_wwan.c
168
u8 qmimux_hdr_sz = sizeof(*hdr);
drivers/net/usb/qmi_wwan.c
171
hdr = (struct qmimux_hdr *)(skb->data + offset);
drivers/net/usb/qmi_wwan.c
172
len = be16_to_cpu(hdr->pkt_len);
drivers/net/usb/qmi_wwan.c
179
if (hdr->pad & 0x80)
drivers/net/usb/qmi_wwan.c
183
pad_len = hdr->pad & 0x3f;
drivers/net/usb/qmi_wwan.c
188
net = qmimux_find_dev(dev, hdr->mux_id);
drivers/net/usb/qmi_wwan.c
754
struct usb_cdc_parsed_header hdr;
drivers/net/usb/qmi_wwan.c
764
cdc_parse_cdc_header(&hdr, intf, buf, len);
drivers/net/usb/qmi_wwan.c
765
cdc_union = hdr.usb_cdc_union_desc;
drivers/net/usb/qmi_wwan.c
766
cdc_ether = hdr.usb_cdc_ether_desc;
drivers/net/usb/rndis_host.c
506
struct rndis_data_hdr *hdr = (void *)skb->data;
drivers/net/usb/rndis_host.c
510
msg_type = le32_to_cpu(hdr->msg_type);
drivers/net/usb/rndis_host.c
511
msg_len = le32_to_cpu(hdr->msg_len);
drivers/net/usb/rndis_host.c
512
data_offset = le32_to_cpu(hdr->data_offset);
drivers/net/usb/rndis_host.c
513
data_len = le32_to_cpu(hdr->data_len);
drivers/net/usb/rndis_host.c
520
le32_to_cpu(hdr->msg_type),
drivers/net/usb/rndis_host.c
527
if (likely((data_len - skb->len) <= sizeof *hdr)) {
drivers/net/usb/rndis_host.c
536
skb_pull(skb, msg_len - sizeof *hdr);
drivers/net/usb/rndis_host.c
556
struct rndis_data_hdr *hdr;
drivers/net/usb/rndis_host.c
564
if (unlikely((sizeof *hdr) <= room))
drivers/net/usb/rndis_host.c
569
if (likely((sizeof *hdr) <= room)) {
drivers/net/usb/rndis_host.c
570
skb->data = memmove(skb->head + sizeof *hdr,
drivers/net/usb/rndis_host.c
578
skb2 = skb_copy_expand(skb, sizeof *hdr, 1, flags);
drivers/net/usb/rndis_host.c
588
hdr = __skb_push(skb, sizeof *hdr);
drivers/net/usb/rndis_host.c
589
memset(hdr, 0, sizeof *hdr);
drivers/net/usb/rndis_host.c
590
hdr->msg_type = cpu_to_le32(RNDIS_MSG_PACKET);
drivers/net/usb/rndis_host.c
591
hdr->msg_len = cpu_to_le32(skb->len);
drivers/net/usb/rndis_host.c
592
hdr->data_offset = cpu_to_le32(sizeof(*hdr) - 8);
drivers/net/usb/rndis_host.c
593
hdr->data_len = cpu_to_le32(len);
drivers/net/virtio_net.c
1294
struct virtio_net_hdr_mrg_rxbuf *hdr,
drivers/net/virtio_net.c
1311
hdr->num_buffers));
drivers/net/virtio_net.c
1356
struct virtio_net_hdr_mrg_rxbuf *hdr;
drivers/net/virtio_net.c
1361
hdr = xdp->data - vi->hdr_len;
drivers/net/virtio_net.c
1362
num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers);
drivers/net/virtio_net.c
1383
if (xsk_append_merge_buffer(vi, rq, skb, num_buf, hdr, stats)) {
drivers/net/virtio_net.c
1432
flags = ((struct virtio_net_common_hdr *)(xdp->data - vi->hdr_len))->hdr.flags;
drivers/net/virtio_net.c
1631
struct virtio_net_hdr_mrg_rxbuf *hdr;
drivers/net/virtio_net.c
1654
hdr = xdpf->data;
drivers/net/virtio_net.c
1655
memset(hdr, 0, vi->hdr_len);
drivers/net/virtio_net.c
1961
struct virtio_net_hdr_mrg_rxbuf *hdr = buf + header_offset;
drivers/net/virtio_net.c
1970
if (unlikely(hdr->hdr.gso_type))
drivers/net/virtio_net.c
1974
if (unlikely(hdr->hdr.flags & VIRTIO_NET_HDR_F_NEEDS_CSUM))
drivers/net/virtio_net.c
2207
struct virtio_net_hdr_mrg_rxbuf *hdr = buf;
drivers/net/virtio_net.c
2244
virtio16_to_cpu(vi->vdev, hdr->num_buffers));
drivers/net/virtio_net.c
2286
struct virtio_net_hdr_mrg_rxbuf *hdr)
drivers/net/virtio_net.c
2297
if (unlikely(hdr->hdr.gso_type))
drivers/net/virtio_net.c
2301
if (unlikely(hdr->hdr.flags & VIRTIO_NET_HDR_F_NEEDS_CSUM))
drivers/net/virtio_net.c
2365
struct virtio_net_hdr_mrg_rxbuf *hdr = buf;
drivers/net/virtio_net.c
2366
int num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers);
drivers/net/virtio_net.c
2378
offset, &len, hdr);
drivers/net/virtio_net.c
2467
struct virtio_net_hdr_mrg_rxbuf *hdr = buf;
drivers/net/virtio_net.c
2468
int num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers);
drivers/net/virtio_net.c
2506
hdr->num_buffers));
drivers/net/virtio_net.c
2576
struct virtio_net_common_hdr *hdr;
drivers/net/virtio_net.c
2579
hdr = skb_vnet_common_hdr(skb);
drivers/net/virtio_net.c
2581
virtio_skb_set_hash(&hdr->hash_v1_hdr, skb);
drivers/net/virtio_net.c
2583
hdr->hdr.flags = flags;
drivers/net/virtio_net.c
2584
if (virtio_net_handle_csum_offload(skb, &hdr->hdr, vi->rx_tnl_csum)) {
drivers/net/virtio_net.c
2586
dev->name, hdr->hdr.flags,
drivers/net/virtio_net.c
2587
hdr->hdr.gso_type, vi->rx_tnl_csum);
drivers/net/virtio_net.c
2591
if (virtio_net_hdr_tnl_to_skb(skb, &hdr->tnl_hdr, vi->rx_tnl,
drivers/net/virtio_net.c
2595
dev->name, hdr->hdr.gso_type,
drivers/net/virtio_net.c
2596
hdr->hdr.gso_size, hdr->hdr.flags,
drivers/net/virtio_net.c
2640
flags = ((struct virtio_net_common_hdr *)buf)->hdr.flags;
drivers/net/virtio_net.c
2646
flags = ((struct virtio_net_common_hdr *)p)->hdr.flags;
drivers/net/virtio_net.c
2649
flags = ((struct virtio_net_common_hdr *)buf)->hdr.flags;
drivers/net/virtio_net.c
3265
struct virtio_net_hdr_v1_hash_tunnel *hdr;
drivers/net/virtio_net.c
3277
BUILD_BUG_ON(__alignof__(*hdr) != __alignof__(hdr->hash_hdr));
drivers/net/virtio_net.c
3278
BUILD_BUG_ON(__alignof__(*hdr) != __alignof__(hdr->hash_hdr.hdr));
drivers/net/virtio_net.c
3281
!((unsigned long)skb->data & (__alignof__(*hdr) - 1)) &&
drivers/net/virtio_net.c
3286
hdr = (struct virtio_net_hdr_v1_hash_tunnel *)(skb->data -
drivers/net/virtio_net.c
3289
hdr = &skb_vnet_common_hdr(skb)->tnl_hdr;
drivers/net/virtio_net.c
3291
if (virtio_net_hdr_tnl_from_skb(skb, hdr, vi->tx_tnl,
drivers/net/virtio_net.c
3297
hdr->hash_hdr.hdr.num_buffers = 0;
drivers/net/virtio_net.c
3308
sg_set_buf(sq->sg, hdr, hdr_len);
drivers/net/virtio_net.c
3527
struct scatterlist *sgs[5], hdr, stat;
drivers/net/virtio_net.c
3537
vi->ctrl->hdr.class = class;
drivers/net/virtio_net.c
3538
vi->ctrl->hdr.cmd = cmd;
drivers/net/virtio_net.c
3540
sg_init_one(&hdr, &vi->ctrl->hdr, sizeof(vi->ctrl->hdr));
drivers/net/virtio_net.c
3541
sgs[out_num++] = &hdr;
drivers/net/virtio_net.c
386
struct virtio_net_ctrl_hdr hdr;
drivers/net/virtio_net.c
4912
struct virtio_net_stats_reply_hdr *hdr;
drivers/net/virtio_net.c
4928
for (p = reply; p - reply < res_size; p += le16_to_cpu(hdr->size)) {
drivers/net/virtio_net.c
4929
hdr = p;
drivers/net/virtio_net.c
4930
qid = le16_to_cpu(hdr->vq_index);
drivers/net/virtio_net.c
4931
virtnet_fill_stats(vi, qid, ctx, p, false, hdr->type);
drivers/net/virtio_net.c
494
struct virtio_net_hdr_v1_hash hdr;
drivers/net/virtio_net.c
505
struct virtio_net_hdr hdr;
drivers/net/virtio_net.c
850
struct virtio_net_common_hdr *hdr;
drivers/net/virtio_net.c
923
hdr = skb_vnet_common_hdr(skb);
drivers/net/virtio_net.c
924
memcpy(hdr, hdr_p, hdr_len);
drivers/net/vmxnet3/vmxnet3_drv.c
1532
} hdr;
drivers/net/vmxnet3/vmxnet3_drv.c
1545
hdr.eth = eth_hdr(skb);
drivers/net/vmxnet3/vmxnet3_drv.c
1547
BUG_ON(hdr.eth->h_proto != htons(ETH_P_IP) &&
drivers/net/vmxnet3/vmxnet3_drv.c
1548
hdr.veth->h_vlan_encapsulated_proto != htons(ETH_P_IP));
drivers/net/vmxnet3/vmxnet3_drv.c
1549
hdr.ptr += hlen;
drivers/net/vmxnet3/vmxnet3_drv.c
1550
BUG_ON(hdr.ipv4->protocol != IPPROTO_TCP);
drivers/net/vmxnet3/vmxnet3_drv.c
1551
hlen = hdr.ipv4->ihl << 2;
drivers/net/vmxnet3/vmxnet3_drv.c
1552
hdr.ptr += hdr.ipv4->ihl << 2;
drivers/net/vmxnet3/vmxnet3_drv.c
1554
BUG_ON(hdr.eth->h_proto != htons(ETH_P_IPV6) &&
drivers/net/vmxnet3/vmxnet3_drv.c
1555
hdr.veth->h_vlan_encapsulated_proto != htons(ETH_P_IPV6));
drivers/net/vmxnet3/vmxnet3_drv.c
1556
hdr.ptr += hlen;
drivers/net/vmxnet3/vmxnet3_drv.c
1560
if (hdr.ipv6->nexthdr != IPPROTO_TCP)
drivers/net/vmxnet3/vmxnet3_drv.c
1563
hdr.ptr += sizeof(struct ipv6hdr);
drivers/net/vmxnet3/vmxnet3_drv.c
1572
return (hlen + (hdr.tcp->doff << 2));
drivers/net/vxlan/vxlan_core.c
1817
struct vxlanhdr *hdr;
drivers/net/vxlan/vxlan_core.c
1823
hdr = vxlan_hdr(skb);
drivers/net/vxlan/vxlan_core.c
1825
if (!(hdr->vx_flags & VXLAN_HF_VNI))
drivers/net/vxlan/vxlan_core.c
1832
vni = vxlan_vni(hdr->vx_vni);
drivers/net/vxlan/vxlan_core.c
604
static bool vxlan_parse_gpe_proto(const struct vxlanhdr *hdr, __be16 *protocol)
drivers/net/vxlan/vxlan_core.c
606
const struct vxlanhdr_gpe *gpe = (const struct vxlanhdr_gpe *)hdr;
drivers/net/wan/hdlc_fr.c
151
static inline u16 q922_to_dlci(u8 *hdr)
drivers/net/wan/hdlc_fr.c
153
return ((hdr[0] & 0xFC) << 2) | ((hdr[1] & 0xF0) >> 4);
drivers/net/wan/hdlc_fr.c
156
static inline void dlci_to_q922(u8 *hdr, u16 dlci)
drivers/net/wan/hdlc_fr.c
158
hdr[0] = (dlci >> 2) & 0xFC;
drivers/net/wan/hdlc_fr.c
159
hdr[1] = ((dlci << 4) & 0xF0) | 0x01;
drivers/net/wan/hdlc_ppp.c
433
struct hdlc_header *hdr = (struct hdlc_header *)skb->data;
drivers/net/wan/hdlc_ppp.c
451
if (hdr->address != HDLC_ADDR_ALLSTATIONS ||
drivers/net/wan/hdlc_ppp.c
452
hdr->control != HDLC_CTRL_UI)
drivers/net/wan/hdlc_ppp.c
455
pid = ntohs(hdr->protocol);
drivers/net/wan/hdlc_ppp.c
460
++ppp->seq, skb->len + 2, &hdr->protocol);
drivers/net/wireguard/netlink.c
189
void *hdr;
drivers/net/wireguard/netlink.c
196
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
drivers/net/wireguard/netlink.c
198
if (!hdr)
drivers/net/wireguard/netlink.c
200
genl_dump_check_consistent(cb, hdr);
drivers/net/wireguard/netlink.c
258
genlmsg_cancel(skb, hdr);
drivers/net/wireguard/netlink.c
261
genlmsg_end(skb, hdr);
drivers/net/wireless/admtek/adm8211.c
1679
struct ieee80211_hdr *hdr;
drivers/net/wireless/admtek/adm8211.c
1688
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/admtek/adm8211.c
1689
hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/admtek/adm8211.c
1691
hdr = (struct ieee80211_hdr *)skb->cb;
drivers/net/wireless/admtek/adm8211.c
1697
memcpy(txhdr->da, ieee80211_get_DA(hdr), ETH_ALEN);
drivers/net/wireless/admtek/adm8211.c
1700
txhdr->frame_control = hdr->frame_control;
drivers/net/wireless/ath/ar5523/ar5523.c
112
be32_to_cpu(hdr->code) & 0xff, hdr->priv);
drivers/net/wireless/ath/ar5523/ar5523.c
114
code = be32_to_cpu(hdr->code);
drivers/net/wireless/ath/ar5523/ar5523.c
115
hdrlen = be32_to_cpu(hdr->len);
drivers/net/wireless/ath/ar5523/ar5523.c
120
if (hdr->priv != AR5523_CMD_ID) {
drivers/net/wireless/ath/ar5523/ar5523.c
125
ar5523_read_reply(ar, hdr, cmd);
drivers/net/wireless/ath/ar5523/ar5523.c
151
dlen = hdrlen - sizeof(*hdr);
drivers/net/wireless/ath/ar5523/ar5523.c
160
memcpy(cmd->odata, hdr + 1, sizeof(u32));
drivers/net/wireless/ath/ar5523/ar5523.c
252
struct ar5523_cmd_hdr *hdr;
drivers/net/wireless/ath/ar5523/ar5523.c
259
hdr = cmd->buf_tx;
drivers/net/wireless/ath/ar5523/ar5523.c
260
memset(hdr, 0, sizeof(struct ar5523_cmd_hdr));
drivers/net/wireless/ath/ar5523/ar5523.c
261
hdr->len = cpu_to_be32(xferlen);
drivers/net/wireless/ath/ar5523/ar5523.c
262
hdr->code = cpu_to_be32(code);
drivers/net/wireless/ath/ar5523/ar5523.c
263
hdr->priv = AR5523_CMD_ID;
drivers/net/wireless/ath/ar5523/ar5523.c
266
hdr->magic = cpu_to_be32(1 << 24);
drivers/net/wireless/ath/ar5523/ar5523.c
268
memcpy(hdr + 1, idata, ilen);
drivers/net/wireless/ath/ar5523/ar5523.c
48
static void ar5523_read_reply(struct ar5523 *ar, struct ar5523_cmd_hdr *hdr,
drivers/net/wireless/ath/ar5523/ar5523.c
54
dlen = be32_to_cpu(hdr->len) - sizeof(*hdr);
drivers/net/wireless/ath/ar5523/ar5523.c
61
ar5523_dbg(ar, "Code = %d len = %d\n", be32_to_cpu(hdr->code) & 0xff,
drivers/net/wireless/ath/ar5523/ar5523.c
64
rp = (__be32 *)(hdr + 1);
drivers/net/wireless/ath/ar5523/ar5523.c
96
struct ar5523_cmd_hdr *hdr = ar->rx_cmd_buf;
drivers/net/wireless/ath/ath.h
201
bool ath_is_mybeacon(struct ath_common *common, struct ieee80211_hdr *hdr);
drivers/net/wireless/ath/ath10k/core.c
1092
static void ath10k_core_check_bdfext(const struct dmi_header *hdr, void *data)
drivers/net/wireless/ath/ath10k/core.c
1100
if (hdr->type != ATH10K_SMBIOS_BDF_EXT_TYPE)
drivers/net/wireless/ath/ath10k/core.c
1103
if (hdr->length != ATH10K_SMBIOS_BDF_EXT_LENGTH) {
drivers/net/wireless/ath/ath10k/core.c
1106
hdr->length);
drivers/net/wireless/ath/ath10k/core.c
1110
bdf_enabled = *((u8 *)hdr + ATH10K_SMBIOS_BDF_EXT_OFFSET);
drivers/net/wireless/ath/ath10k/core.c
1117
bdf_ext = (char *)hdr + hdr->length;
drivers/net/wireless/ath/ath10k/core.c
1343
const struct ath10k_fw_ie *hdr;
drivers/net/wireless/ath/ath10k/core.c
1353
hdr = buf;
drivers/net/wireless/ath/ath10k/core.c
1354
board_ie_id = le32_to_cpu(hdr->id);
drivers/net/wireless/ath/ath10k/core.c
1355
board_ie_len = le32_to_cpu(hdr->len);
drivers/net/wireless/ath/ath10k/core.c
1356
board_ie_data = hdr->data;
drivers/net/wireless/ath/ath10k/core.c
1358
buf_len -= sizeof(*hdr);
drivers/net/wireless/ath/ath10k/core.c
1359
buf += sizeof(*hdr);
drivers/net/wireless/ath/ath10k/core.c
1434
struct ath10k_fw_ie *hdr;
drivers/net/wireless/ath/ath10k/core.c
1438
hdr = (struct ath10k_fw_ie *)data;
drivers/net/wireless/ath/ath10k/core.c
1439
ie_id = le32_to_cpu(hdr->id);
drivers/net/wireless/ath/ath10k/core.c
1440
ie_len = le32_to_cpu(hdr->len);
drivers/net/wireless/ath/ath10k/core.c
1442
len -= sizeof(*hdr);
drivers/net/wireless/ath/ath10k/core.c
1443
data = hdr->data;
drivers/net/wireless/ath/ath10k/core.c
2014
struct ath10k_fw_ie *hdr;
drivers/net/wireless/ath/ath10k/core.c
2051
hdr = (struct ath10k_fw_ie *)data;
drivers/net/wireless/ath/ath10k/core.c
2053
ie_id = le32_to_cpu(hdr->id);
drivers/net/wireless/ath/ath10k/core.c
2054
ie_len = le32_to_cpu(hdr->len);
drivers/net/wireless/ath/ath10k/core.c
2056
len -= sizeof(*hdr);
drivers/net/wireless/ath/ath10k/core.c
2057
data += sizeof(*hdr);
drivers/net/wireless/ath/ath10k/core.c
2160
le32_to_cpu(hdr->id));
drivers/net/wireless/ath/ath10k/debugfs_sta.c
100
tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TID_MASK;
drivers/net/wireless/ath/ath10k/debugfs_sta.c
107
sta = ieee80211_find_sta_by_ifaddr(ar->hw, hdr->addr2, NULL);
drivers/net/wireless/ath/ath10k/debugfs_sta.c
90
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/debugfs_sta.c
95
hdr = (struct ieee80211_hdr *)first_hdr;
drivers/net/wireless/ath/ath10k/debugfs_sta.c
96
if (!ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/ath/ath10k/debugfs_sta.c
99
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/ath/ath10k/htc.c
100
hdr->flags = 0;
drivers/net/wireless/ath/ath10k/htc.c
102
hdr->flags |= ATH10K_HTC_FLAG_NEED_CREDIT_UPDATE;
drivers/net/wireless/ath/ath10k/htc.c
105
hdr->seq_no = ep->seq_no++;
drivers/net/wireless/ath/ath10k/htc.c
1056
length = sizeof(msg->hdr) + sizeof(msg->connect_service);
drivers/net/wireless/ath/ath10k/htc.c
1061
msg->hdr.message_id =
drivers/net/wireless/ath/ath10k/htc.c
1095
message_id = __le16_to_cpu(msg->hdr.message_id);
drivers/net/wireless/ath/ath10k/htc.c
1099
(htc->control_resp_len < sizeof(msg->hdr) +
drivers/net/wireless/ath/ath10k/htc.c
1258
skb_put(skb, sizeof(msg->hdr) + sizeof(msg->setup_complete_ext));
drivers/net/wireless/ath/ath10k/htc.c
1262
msg->hdr.message_id =
drivers/net/wireless/ath/ath10k/htc.c
369
if (length < sizeof(record->hdr)) {
drivers/net/wireless/ath/ath10k/htc.c
374
if (record->hdr.len > length) {
drivers/net/wireless/ath/ath10k/htc.c
377
record->hdr.len);
drivers/net/wireless/ath/ath10k/htc.c
382
switch (record->hdr.id) {
drivers/net/wireless/ath/ath10k/htc.c
385
if (record->hdr.len < len) {
drivers/net/wireless/ath/ath10k/htc.c
392
record->hdr.len,
drivers/net/wireless/ath/ath10k/htc.c
397
if (record->hdr.len < len) {
drivers/net/wireless/ath/ath10k/htc.c
404
record->hdr.len,
drivers/net/wireless/ath/ath10k/htc.c
413
record->hdr.len,
drivers/net/wireless/ath/ath10k/htc.c
420
record->hdr.id, record->hdr.len);
drivers/net/wireless/ath/ath10k/htc.c
428
buffer += sizeof(record->hdr) + record->hdr.len;
drivers/net/wireless/ath/ath10k/htc.c
429
length -= sizeof(record->hdr) + record->hdr.len;
drivers/net/wireless/ath/ath10k/htc.c
444
struct ath10k_htc_hdr *hdr;
drivers/net/wireless/ath/ath10k/htc.c
452
hdr = (struct ath10k_htc_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htc.c
453
skb_pull(skb, sizeof(*hdr));
drivers/net/wireless/ath/ath10k/htc.c
455
eid = hdr->eid;
drivers/net/wireless/ath/ath10k/htc.c
460
hdr, sizeof(*hdr));
drivers/net/wireless/ath/ath10k/htc.c
470
payload_len = __le16_to_cpu(hdr->len);
drivers/net/wireless/ath/ath10k/htc.c
472
if (payload_len + sizeof(*hdr) > ATH10K_HTC_MAX_LEN) {
drivers/net/wireless/ath/ath10k/htc.c
474
payload_len + sizeof(*hdr));
drivers/net/wireless/ath/ath10k/htc.c
476
hdr, sizeof(*hdr));
drivers/net/wireless/ath/ath10k/htc.c
485
"", hdr, sizeof(*hdr));
drivers/net/wireless/ath/ath10k/htc.c
490
trailer_present = hdr->flags & ATH10K_HTC_FLAG_TRAILER_PRESENT;
drivers/net/wireless/ath/ath10k/htc.c
494
trailer_len = hdr->trailer_len;
drivers/net/wireless/ath/ath10k/htc.c
504
trailer = (u8 *)hdr;
drivers/net/wireless/ath/ath10k/htc.c
505
trailer += sizeof(*hdr);
drivers/net/wireless/ath/ath10k/htc.c
509
trailer_len, hdr->eid,
drivers/net/wireless/ath/ath10k/htc.c
538
switch (__le16_to_cpu(msg->hdr.message_id)) {
drivers/net/wireless/ath/ath10k/htc.c
58
struct ath10k_htc_hdr *hdr;
drivers/net/wireless/ath/ath10k/htc.c
709
struct ath10k_htc_hdr *hdr;
drivers/net/wireless/ath/ath10k/htc.c
72
hdr = (struct ath10k_htc_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htc.c
735
trans_len = skb->len + sizeof(*hdr);
drivers/net/wireless/ath/ath10k/htc.c
787
hdr = (struct ath10k_htc_hdr *)bundle_buf;
drivers/net/wireless/ath/ath10k/htc.c
788
hdr->flags |= ATH10K_HTC_FLAG_SEND_BUNDLE;
drivers/net/wireless/ath/ath10k/htc.c
789
hdr->pad_len = __cpu_to_le16(credit_pad);
drivers/net/wireless/ath/ath10k/htc.c
81
if (hdr->flags & ATH10K_HTC_FLAG_SEND_BUNDLE) {
drivers/net/wireless/ath/ath10k/htc.c
93
struct ath10k_htc_hdr *hdr;
drivers/net/wireless/ath/ath10k/htc.c
949
if (htc->control_resp_len < sizeof(msg->hdr) + sizeof(msg->ready)) {
drivers/net/wireless/ath/ath10k/htc.c
95
hdr = (struct ath10k_htc_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htc.c
956
message_id = __le16_to_cpu(msg->hdr.message_id);
drivers/net/wireless/ath/ath10k/htc.c
96
memset(hdr, 0, sizeof(struct ath10k_htc_hdr));
drivers/net/wireless/ath/ath10k/htc.c
98
hdr->eid = ep->eid;
drivers/net/wireless/ath/ath10k/htc.c
986
sizeof(msg->hdr) + sizeof(msg->ready_ext)) {
drivers/net/wireless/ath/ath10k/htc.c
99
hdr->len = __cpu_to_le16(skb->len - sizeof(*hdr));
drivers/net/wireless/ath/ath10k/htc.h
195
struct ath10k_ath10k_htc_msg_hdr hdr;
drivers/net/wireless/ath/ath10k/htc.h
247
struct ath10k_ath10k_htc_record_hdr hdr;
drivers/net/wireless/ath/ath10k/htt.h
1009
u32 hdr;
drivers/net/wireless/ath/ath10k/htt.h
1687
struct htt_cmd_hdr hdr;
drivers/net/wireless/ath/ath10k/htt.h
1705
struct htt_resp_hdr hdr;
drivers/net/wireless/ath/ath10k/htt.h
286
struct htt_rx_ring_setup_hdr hdr;
drivers/net/wireless/ath/ath10k/htt.h
291
struct htt_rx_ring_setup_hdr hdr;
drivers/net/wireless/ath/ath10k/htt.h
373
u8 hdr[HTT_MGMT_FRM_HDR_DOWNLOAD_LEN];
drivers/net/wireless/ath/ath10k/htt.h
714
struct htt_rx_indication_hdr hdr;
drivers/net/wireless/ath/ath10k/htt.h
735
struct htt_rx_indication_hdr hdr;
drivers/net/wireless/ath/ath10k/htt.h
761
ptr += sizeof(rx_ind->hdr)
drivers/net/wireless/ath/ath10k/htt.h
773
ptr += sizeof(rx_ind->hdr)
drivers/net/wireless/ath/ath10k/htt_rx.c
1333
static char *ath10k_get_tid(struct ieee80211_hdr *hdr, char *out, size_t size)
drivers/net/wireless/ath/ath10k/htt_rx.c
1338
if (!ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/ath/ath10k/htt_rx.c
1341
qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/ath10k/htt_rx.c
1366
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
1382
ieee80211_get_SA(hdr),
drivers/net/wireless/ath/ath10k/htt_rx.c
1383
ath10k_get_tid(hdr, tid, sizeof(tid)),
drivers/net/wireless/ath/ath10k/htt_rx.c
1384
is_multicast_ether_addr(ieee80211_get_DA(hdr)) ?
drivers/net/wireless/ath/ath10k/htt_rx.c
1386
IEEE80211_SEQ_TO_SN(__le16_to_cpu(hdr->seq_ctrl)),
drivers/net/wireless/ath/ath10k/htt_rx.c
1410
struct ieee80211_hdr *hdr)
drivers/net/wireless/ath/ath10k/htt_rx.c
1412
int len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
1428
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1481
hdr = (struct ieee80211_hdr *)first_hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1482
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
1485
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/htt_rx.c
1486
qos = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/ath10k/htt_rx.c
1492
(void *)hdr + round_up(hdr_len, bytes_aligned),
drivers/net/wireless/ath/ath10k/htt_rx.c
1495
memcpy(skb_push(msdu, hdr_len), hdr, hdr_len);
drivers/net/wireless/ath/ath10k/htt_rx.c
1512
hdr = (void *)msdu->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
1535
!ieee80211_has_morefrags(hdr->frame_control) &&
drivers/net/wireless/ath/ath10k/htt_rx.c
1541
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
1557
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1583
hdr = (struct ieee80211_hdr *)(msdu->data + l3_pad_bytes);
drivers/net/wireless/ath/ath10k/htt_rx.c
1585
hdr_len = ath10k_htt_rx_nwifi_hdrlen(ar, hdr);
drivers/net/wireless/ath/ath10k/htt_rx.c
1586
ether_addr_copy(da, ieee80211_get_DA(hdr));
drivers/net/wireless/ath/ath10k/htt_rx.c
1587
ether_addr_copy(sa, ieee80211_get_SA(hdr));
drivers/net/wireless/ath/ath10k/htt_rx.c
1591
hdr = (struct ieee80211_hdr *)first_hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1592
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
1597
(void *)hdr + round_up(hdr_len, bytes_aligned),
drivers/net/wireless/ath/ath10k/htt_rx.c
1601
memcpy(skb_push(msdu, hdr_len), hdr, hdr_len);
drivers/net/wireless/ath/ath10k/htt_rx.c
1606
hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
1607
ether_addr_copy(ieee80211_get_DA(hdr), da);
drivers/net/wireless/ath/ath10k/htt_rx.c
1608
ether_addr_copy(ieee80211_get_SA(hdr), sa);
drivers/net/wireless/ath/ath10k/htt_rx.c
1615
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1630
hdr = (void *)rxd_rx_hdr_status;
drivers/net/wireless/ath/ath10k/htt_rx.c
1638
rfc1042 = hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1641
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
1661
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1698
hdr = (struct ieee80211_hdr *)first_hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1699
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
1704
(void *)hdr + round_up(hdr_len, bytes_aligned),
drivers/net/wireless/ath/ath10k/htt_rx.c
1708
memcpy(skb_push(msdu, hdr_len), hdr, hdr_len);
drivers/net/wireless/ath/ath10k/htt_rx.c
1713
hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
1714
ether_addr_copy(ieee80211_get_DA(hdr), da);
drivers/net/wireless/ath/ath10k/htt_rx.c
1715
ether_addr_copy(ieee80211_get_SA(hdr), sa);
drivers/net/wireless/ath/ath10k/htt_rx.c
1725
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1745
hdr = (struct ieee80211_hdr *)first_hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1746
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
1751
(void *)hdr + round_up(hdr_len, bytes_aligned),
drivers/net/wireless/ath/ath10k/htt_rx.c
1755
memcpy(skb_push(msdu, hdr_len), hdr, hdr_len);
drivers/net/wireless/ath/ath10k/htt_rx.c
1853
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1857
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
1858
ehdr = skb->data + ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
1874
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1876
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
1877
return !is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/ath/ath10k/htt_rx.c
1887
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1897
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
1898
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/ath/ath10k/htt_rx.c
1899
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/ath/ath10k/htt_rx.c
1905
frag_number = le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG;
drivers/net/wireless/ath/ath10k/htt_rx.c
1906
seq = IEEE80211_SEQ_TO_SN(__le16_to_cpu(hdr->seq_ctrl));
drivers/net/wireless/ath/ath10k/htt_rx.c
1941
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1973
hdr = (void *)ath10k_htt_rx_desc_get_rx_hdr_status(hw, rxd);
drivers/net/wireless/ath/ath10k/htt_rx.c
1974
memcpy(first_hdr, hdr, RX_HTT_HDR_STATUS_LEN);
drivers/net/wireless/ath/ath10k/htt_rx.c
1977
memcpy(rx_hdr, hdr, RX_HTT_HDR_STATUS_LEN);
drivers/net/wireless/ath/ath10k/htt_rx.c
1982
hdr = (void *)first_hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
1984
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/htt_rx.c
1985
qos = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/ath10k/htt_rx.c
2102
hdr = (void *)msdu->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
2103
hdr->frame_control &= ~__cpu_to_le16(IEEE80211_FCTL_PROTECTED);
drivers/net/wireless/ath/ath10k/htt_rx.c
2233
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
2245
hdr = (void *)ath10k_htt_rx_desc_get_rx_hdr_status(hw, rxd);
drivers/net/wireless/ath/ath10k/htt_rx.c
2263
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
2266
subframe_hdr = (u8 *)hdr + round_up(hdr_len, bytes_aligned) +
drivers/net/wireless/ath/ath10k/htt_rx.c
2418
num_mpdu_ranges = MS(__le32_to_cpu(rx->hdr.info1),
drivers/net/wireless/ath/ath10k/htt_rx.c
2427
tid = MS(rx->hdr.info0, HTT_RX_INDICATION_INFO0_EXT_TID);
drivers/net/wireless/ath/ath10k/htt_rx.c
2469
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
2479
peer_id = __le16_to_cpu(rx->hdr.peer_id);
drivers/net/wireless/ath/ath10k/htt_rx.c
2480
tid = MS(rx->hdr.info0, HTT_RX_INDICATION_INFO0_EXT_TID);
drivers/net/wireless/ath/ath10k/htt_rx.c
2491
num_mpdu_ranges = MS(__le32_to_cpu(rx->hdr.info1),
drivers/net/wireless/ath/ath10k/htt_rx.c
2545
tot_hdr_len = sizeof(struct htt_resp_hdr) + sizeof(rx->hdr) +
drivers/net/wireless/ath/ath10k/htt_rx.c
2552
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
2553
qos = ieee80211_is_data_qos(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
2594
if (ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/htt_rx.c
2595
hdr->frame_control &= ~__cpu_to_le16(IEEE80211_FCTL_PROTECTED);
drivers/net/wireless/ath/ath10k/htt_rx.c
2610
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
2611
offset = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
2612
hdr->frame_control |= __cpu_to_le16(IEEE80211_FCTL_PROTECTED);
drivers/net/wireless/ath/ath10k/htt_rx.c
2661
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
2662
offset = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
2664
hdr->frame_control |= cpu_to_le16(IEEE80211_STYPE_QOS_DATA);
drivers/net/wireless/ath/ath10k/htt_rx.c
2773
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/htt_rx.c
2793
num_mpdu_ranges = MS(__le32_to_cpu(rx_hl->hdr.info1),
drivers/net/wireless/ath/ath10k/htt_rx.c
2797
sizeof(rx_hl->hdr) +
drivers/net/wireless/ath/ath10k/htt_rx.c
2803
tid = MS(rx_hl->hdr.info0, HTT_RX_INDICATION_INFO0_EXT_TID);
drivers/net/wireless/ath/ath10k/htt_rx.c
2807
hdr = (struct ieee80211_hdr *)((u8 *)rx_desc + rx_hl->fw_desc.len);
drivers/net/wireless/ath/ath10k/htt_rx.c
2809
if (is_multicast_ether_addr(hdr->addr1)) {
drivers/net/wireless/ath/ath10k/htt_rx.c
2821
if (ieee80211_has_retry(hdr->frame_control))
drivers/net/wireless/ath/ath10k/htt_rx.c
2824
hdr_space = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/htt_rx.c
2825
sc = __le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/ath/ath10k/htt_rx.c
2927
num_mpdu_ranges = MS(__le32_to_cpu(rx->hdr.info1),
drivers/net/wireless/ath/ath10k/htt_rx.c
2929
peer_id = __le16_to_cpu(rx->hdr.peer_id);
drivers/net/wireless/ath/ath10k/htt_rx.c
2930
tid = MS(rx->hdr.info0, HTT_RX_INDICATION_INFO0_EXT_TID);
drivers/net/wireless/ath/ath10k/htt_rx.c
3195
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/htt_rx.c
3197
if (!ieee80211_has_protected(hdr->frame_control))
drivers/net/wireless/ath/ath10k/htt_rx.c
3205
hdr->frame_control &= ~__cpu_to_le16(IEEE80211_FCTL_PROTECTED);
drivers/net/wireless/ath/ath10k/htt_rx.c
3281
skb_pull(skb, sizeof(resp->hdr));
drivers/net/wireless/ath/ath10k/htt_rx.c
3396
len = sizeof(resp->hdr) + sizeof(resp->tx_fetch_ind);
drivers/net/wireless/ath/ath10k/htt_rx.c
3516
len = sizeof(resp->hdr) + sizeof(resp->tx_fetch_confirm);
drivers/net/wireless/ath/ath10k/htt_rx.c
3555
len = sizeof(resp->hdr) + sizeof(resp->tx_mode_switch_ind);
drivers/net/wireless/ath/ath10k/htt_rx.c
3975
struct ath10k_pktlog_hdr *hdr = (struct ath10k_pktlog_hdr *)data;
drivers/net/wireless/ath/ath10k/htt_rx.c
3980
u16 log_type = __le16_to_cpu(hdr->log_type);
drivers/net/wireless/ath/ath10k/htt_rx.c
3986
tx_stats = (struct ath10k_10_2_peer_tx_stats *)((hdr->payload) +
drivers/net/wireless/ath/ath10k/htt_rx.c
4085
resp->hdr.msg_type);
drivers/net/wireless/ath/ath10k/htt_rx.c
4087
if (resp->hdr.msg_type >= ar->htt.t2h_msg_types_max) {
drivers/net/wireless/ath/ath10k/htt_rx.c
4089
resp->hdr.msg_type, ar->htt.t2h_msg_types_max);
drivers/net/wireless/ath/ath10k/htt_rx.c
4092
type = ar->htt.t2h_msg_types[resp->hdr.msg_type];
drivers/net/wireless/ath/ath10k/htt_rx.c
4294
resp->hdr.msg_type);
drivers/net/wireless/ath/ath10k/htt_tx.c
1026
len = sizeof(cmd->hdr);
drivers/net/wireless/ath/ath10k/htt_tx.c
1035
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_AGGR_CFG;
drivers/net/wireless/ath/ath10k/htt_tx.c
1073
len = sizeof(cmd->hdr);
drivers/net/wireless/ath/ath10k/htt_tx.c
1082
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_AGGR_CFG;
drivers/net/wireless/ath/ath10k/htt_tx.c
1117
len += sizeof(cmd->hdr);
drivers/net/wireless/ath/ath10k/htt_tx.c
1127
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_TX_FETCH_RESP;
drivers/net/wireless/ath/ath10k/htt_tx.c
1170
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath10k/htt_tx.c
1173
if (!is_eth && ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/ath/ath10k/htt_tx.c
1193
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath10k/htt_tx.c
1195
len += sizeof(cmd->hdr);
drivers/net/wireless/ath/ath10k/htt_tx.c
1204
if ((ieee80211_is_action(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/htt_tx.c
1205
ieee80211_is_deauth(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/htt_tx.c
1206
ieee80211_is_disassoc(hdr->frame_control)) &&
drivers/net/wireless/ath/ath10k/htt_tx.c
1207
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/htt_tx.c
1208
peer_addr = hdr->addr1;
drivers/net/wireless/ath/ath10k/htt_tx.c
1238
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_MGMT_TX;
drivers/net/wireless/ath/ath10k/htt_tx.c
1243
memcpy(cmd->mgmt_tx.hdr, msdu->data,
drivers/net/wireless/ath/ath10k/htt_tx.c
1287
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath10k/htt_tx.c
1289
if ((ieee80211_is_action(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/htt_tx.c
1290
ieee80211_is_deauth(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/htt_tx.c
1291
ieee80211_is_disassoc(hdr->frame_control)) &&
drivers/net/wireless/ath/ath10k/htt_tx.c
1292
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/htt_tx.c
1423
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath10k/htt_tx.c
1425
if ((ieee80211_is_action(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/htt_tx.c
1426
ieee80211_is_deauth(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/htt_tx.c
1427
ieee80211_is_disassoc(hdr->frame_control)) &&
drivers/net/wireless/ath/ath10k/htt_tx.c
1428
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/htt_tx.c
1432
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/htt_tx.c
1628
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath10k/htt_tx.c
1630
if ((ieee80211_is_action(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/htt_tx.c
1631
ieee80211_is_deauth(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/htt_tx.c
1632
ieee80211_is_disassoc(hdr->frame_control)) &&
drivers/net/wireless/ath/ath10k/htt_tx.c
1633
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/htt_tx.c
1637
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/htt_tx.c
613
len += sizeof(cmd->hdr);
drivers/net/wireless/ath/ath10k/htt_tx.c
622
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_VERSION_REQ;
drivers/net/wireless/ath/ath10k/htt_tx.c
642
len += sizeof(cmd->hdr);
drivers/net/wireless/ath/ath10k/htt_tx.c
651
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_STATS_REQ;
drivers/net/wireless/ath/ath10k/htt_tx.c
694
size = sizeof(cmd->hdr) + sizeof(cmd->frag_desc_bank_cfg32);
drivers/net/wireless/ath/ath10k/htt_tx.c
701
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_FRAG_DESC_BANK_CFG;
drivers/net/wireless/ath/ath10k/htt_tx.c
756
size = sizeof(cmd->hdr) + sizeof(cmd->frag_desc_bank_cfg64);
drivers/net/wireless/ath/ath10k/htt_tx.c
763
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_FRAG_DESC_BANK_CFG;
drivers/net/wireless/ath/ath10k/htt_tx.c
833
len = sizeof(cmd->hdr) + sizeof(cmd->rx_setup_32.hdr)
drivers/net/wireless/ath/ath10k/htt_tx.c
844
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_RX_RING_CFG;
drivers/net/wireless/ath/ath10k/htt_tx.c
845
cmd->rx_setup_32.hdr.num_rings = 1;
drivers/net/wireless/ath/ath10k/htt_tx.c
905
len = sizeof(cmd->hdr) + sizeof(cmd->rx_setup_64.hdr)
drivers/net/wireless/ath/ath10k/htt_tx.c
916
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_RX_RING_CFG;
drivers/net/wireless/ath/ath10k/htt_tx.c
917
cmd->rx_setup_64.hdr.num_rings = 1;
drivers/net/wireless/ath/ath10k/htt_tx.c
974
len = sizeof(cmd->hdr) + sizeof(cmd->rx_setup_32.hdr)
drivers/net/wireless/ath/ath10k/htt_tx.c
985
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_RX_RING_CFG;
drivers/net/wireless/ath/ath10k/htt_tx.c
986
cmd->rx_setup_32.hdr.num_rings = 1;
drivers/net/wireless/ath/ath10k/hw.c
1015
struct bmi_segmented_file_header *hdr;
drivers/net/wireless/ath/ath10k/hw.c
1019
if (length < sizeof(*hdr))
drivers/net/wireless/ath/ath10k/hw.c
1025
hdr = (struct bmi_segmented_file_header *)buf;
drivers/net/wireless/ath/ath10k/hw.c
1026
if (__le32_to_cpu(hdr->magic_num) != BMI_SGMTFILE_MAGIC_NUM) {
drivers/net/wireless/ath/ath10k/hw.c
1029
hdr->magic_num);
drivers/net/wireless/ath/ath10k/hw.c
1033
if (hdr->file_flags != 0) {
drivers/net/wireless/ath/ath10k/hw.c
1036
hdr->file_flags);
drivers/net/wireless/ath/ath10k/hw.c
1040
metadata = (struct bmi_segmented_metadata *)hdr->data;
drivers/net/wireless/ath/ath10k/hw.c
1041
left = length - sizeof(*hdr);
drivers/net/wireless/ath/ath10k/mac.c
3743
const struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath10k/mac.c
3745
__le16 fc = hdr->frame_control;
drivers/net/wireless/ath/ath10k/mac.c
3800
const struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath10k/mac.c
3804
if (!ieee80211_has_protected(hdr->frame_control))
drivers/net/wireless/ath/ath10k/mac.c
3821
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath10k/mac.c
3825
if (!ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/ath/ath10k/mac.c
3828
qos_ctl = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/ath10k/mac.c
3837
hdr = (void *)skb->data;
drivers/net/wireless/ath/ath10k/mac.c
3838
if (ieee80211_is_qos_nullfunc(hdr->frame_control))
drivers/net/wireless/ath/ath10k/mac.c
3841
hdr->frame_control &= ~__cpu_to_le16(IEEE80211_STYPE_QOS_DATA);
drivers/net/wireless/ath/ath10k/mac.c
3846
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/mac.c
3854
hdr = (void *)skb->data;
drivers/net/wireless/ath/ath10k/mac.c
3855
hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/mac.c
3858
ether_addr_copy(da, ieee80211_get_DA(hdr));
drivers/net/wireless/ath/ath10k/mac.c
3859
ether_addr_copy(sa, ieee80211_get_SA(hdr));
drivers/net/wireless/ath/ath10k/mac.c
3875
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/mac.c
3882
if (unlikely(ieee80211_is_probe_resp(hdr->frame_control))) {
drivers/net/wireless/ath/ath10k/mac.c
3899
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath10k/mac.c
3902
bool is_data = ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/mac.c
3903
ieee80211_is_data_qos(hdr->frame_control);
drivers/net/wireless/ath/ath10k/mac.c
3919
if (ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/ath/ath10k/mac.c
3922
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/mac.c
3924
qos_ctl = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/ath10k/mac.c
3948
if (is_data && ieee80211_has_protected(hdr->frame_control) &&
drivers/net/wireless/ath/ath10k/mac.c
4133
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/mac.c
4161
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/mac.c
4162
peer_addr = ieee80211_get_DA(hdr);
drivers/net/wireless/ath/ath10k/mac.c
4410
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/mac.c
4441
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/mac.c
4442
is_presp = ieee80211_is_probe_resp(hdr->frame_control);
drivers/net/wireless/ath/ath10k/mac.c
4717
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath10k/mac.c
4719
is_presp = ieee80211_is_probe_resp(hdr->frame_control);
drivers/net/wireless/ath/ath10k/mac.h
81
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/mac.h
90
hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG);
drivers/net/wireless/ath/ath10k/mac.h
91
hdr->seq_ctrl |= cpu_to_le16(arvif->tx_seq_no);
drivers/net/wireless/ath/ath10k/pci.c
1663
struct ath10k_dump_ram_data_hdr *hdr;
drivers/net/wireless/ath/ath10k/pci.c
1712
hdr = (void *)buf;
drivers/net/wireless/ath/ath10k/pci.c
1713
buf += sizeof(*hdr);
drivers/net/wireless/ath/ath10k/pci.c
1714
buf_len -= sizeof(*hdr);
drivers/net/wireless/ath/ath10k/pci.c
1736
hdr->region_type = cpu_to_le32(current_region->type);
drivers/net/wireless/ath/ath10k/pci.c
1737
hdr->start = cpu_to_le32(current_region->start);
drivers/net/wireless/ath/ath10k/pci.c
1738
hdr->length = cpu_to_le32(count);
drivers/net/wireless/ath/ath10k/sdio.c
2423
struct ath10k_dump_ram_data_hdr *hdr;
drivers/net/wireless/ath/ath10k/sdio.c
2455
hdr = (void *)buf;
drivers/net/wireless/ath/ath10k/sdio.c
2456
buf += sizeof(*hdr);
drivers/net/wireless/ath/ath10k/sdio.c
2457
buf_len -= sizeof(*hdr);
drivers/net/wireless/ath/ath10k/sdio.c
2464
hdr->region_type = cpu_to_le32(current_region->type);
drivers/net/wireless/ath/ath10k/sdio.c
2465
hdr->start = cpu_to_le32(current_region->start);
drivers/net/wireless/ath/ath10k/sdio.c
2466
hdr->length = cpu_to_le32(count);
drivers/net/wireless/ath/ath10k/snoc.c
1448
struct ath10k_dump_ram_data_hdr *hdr;
drivers/net/wireless/ath/ath10k/snoc.c
1466
hdr = (void *)buf;
drivers/net/wireless/ath/ath10k/snoc.c
1467
buf += sizeof(*hdr);
drivers/net/wireless/ath/ath10k/snoc.c
1468
buf_len -= sizeof(*hdr);
drivers/net/wireless/ath/ath10k/snoc.c
1470
hdr->region_type = cpu_to_le32(current_region->type);
drivers/net/wireless/ath/ath10k/snoc.c
1471
hdr->start = cpu_to_le32((unsigned long)ar->msa.vaddr);
drivers/net/wireless/ath/ath10k/snoc.c
1472
hdr->length = cpu_to_le32(ar->msa.mem_size);
drivers/net/wireless/ath/ath10k/trace.h
15
const struct ieee80211_hdr *hdr = buf;
drivers/net/wireless/ath/ath10k/trace.h
22
return min_t(u32, len, ieee80211_hdrlen(hdr->frame_control));
drivers/net/wireless/ath/ath10k/wmi-tlv.c
2921
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/wmi-tlv.c
2928
hdr = (struct ieee80211_hdr *)bcn;
drivers/net/wireless/ath/ath10k/wmi-tlv.c
2929
fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3088
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3100
hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3104
if (WARN_ON_ONCE(!ieee80211_is_mgmt(hdr->frame_control) &&
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3105
(!(ieee80211_is_nullfunc(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3106
ieee80211_is_qos_nullfunc(hdr->frame_control)))))
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3111
if ((ieee80211_is_action(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3112
ieee80211_is_deauth(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3113
ieee80211_is_disassoc(hdr->frame_control)) &&
drivers/net/wireless/ath/ath10k/wmi-tlv.c
3114
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/wmi.c
1980
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/wmi.c
1988
hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath10k/wmi.c
1989
fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/ath/ath10k/wmi.c
1998
if (WARN_ON_ONCE(!ieee80211_is_mgmt(hdr->frame_control)))
drivers/net/wireless/ath/ath10k/wmi.c
2001
len = sizeof(cmd->hdr) + msdu->len;
drivers/net/wireless/ath/ath10k/wmi.c
2003
if ((ieee80211_is_action(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/wmi.c
2004
ieee80211_is_deauth(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/wmi.c
2005
ieee80211_is_disassoc(hdr->frame_control)) &&
drivers/net/wireless/ath/ath10k/wmi.c
2006
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/wmi.c
2007
peer_addr = hdr->addr1;
drivers/net/wireless/ath/ath10k/wmi.c
2031
cmd->hdr.vdev_id = __cpu_to_le32(vdev_id);
drivers/net/wireless/ath/ath10k/wmi.c
2032
cmd->hdr.tx_rate = 0;
drivers/net/wireless/ath/ath10k/wmi.c
2033
cmd->hdr.tx_power = 0;
drivers/net/wireless/ath/ath10k/wmi.c
2034
cmd->hdr.buf_len = __cpu_to_le32(buf_len);
drivers/net/wireless/ath/ath10k/wmi.c
2036
ether_addr_copy(cmd->hdr.peer_macaddr.addr, ieee80211_get_DA(hdr));
drivers/net/wireless/ath/ath10k/wmi.c
2284
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/wmi.c
2289
if (!ieee80211_is_auth(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/wmi.c
2290
!ieee80211_has_protected(hdr->frame_control))
drivers/net/wireless/ath/ath10k/wmi.c
2293
hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/wmi.c
2298
addr = ieee80211_get_SA(hdr);
drivers/net/wireless/ath/ath10k/wmi.c
2325
ev_hdr = &ev_v2->hdr.v1;
drivers/net/wireless/ath/ath10k/wmi.c
2329
ev_hdr = &ev_v1->hdr;
drivers/net/wireless/ath/ath10k/wmi.c
2374
ev_hdr = &ev->hdr;
drivers/net/wireless/ath/ath10k/wmi.c
2406
struct ieee80211_hdr *hdr)
drivers/net/wireless/ath/ath10k/wmi.c
2408
if (!ieee80211_has_protected(hdr->frame_control))
drivers/net/wireless/ath/ath10k/wmi.c
2415
if (ieee80211_is_auth(hdr->frame_control))
drivers/net/wireless/ath/ath10k/wmi.c
2421
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) &&
drivers/net/wireless/ath/ath10k/wmi.c
2532
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/wmi.c
2615
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath10k/wmi.c
2616
fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/ath/ath10k/wmi.c
2626
if (ath10k_wmi_rx_is_decrypted(ar, hdr)) {
drivers/net/wireless/ath/ath10k/wmi.c
2629
if (!ieee80211_is_action(hdr->frame_control) &&
drivers/net/wireless/ath/ath10k/wmi.c
2630
!ieee80211_is_deauth(hdr->frame_control) &&
drivers/net/wireless/ath/ath10k/wmi.c
2631
!ieee80211_is_disassoc(hdr->frame_control)) {
drivers/net/wireless/ath/ath10k/wmi.c
2634
hdr->frame_control = __cpu_to_le16(fc &
drivers/net/wireless/ath/ath10k/wmi.c
2639
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/ath/ath10k/wmi.c
2642
if (ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/ath/ath10k/wmi.c
2643
ieee80211_is_probe_resp(hdr->frame_control))
drivers/net/wireless/ath/ath10k/wmi.c
3580
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)bcn->data;
drivers/net/wireless/ath/ath10k/wmi.c
3622
ies += ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath10k/wmi.c
7887
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath10k/wmi.c
7894
hdr = (struct ieee80211_hdr *)bcn;
drivers/net/wireless/ath/ath10k/wmi.c
7895
fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/ath/ath10k/wmi.h
3448
struct wmi_mgmt_rx_hdr_v1 hdr;
drivers/net/wireless/ath/ath10k/wmi.h
3453
struct wmi_mgmt_rx_hdr_v2 hdr;
drivers/net/wireless/ath/ath10k/wmi.h
3468
struct wmi_10_4_mgmt_rx_hdr hdr;
drivers/net/wireless/ath/ath10k/wmi.h
3647
struct wmi_mgmt_tx_hdr hdr;
drivers/net/wireless/ath/ath10k/wmi.h
5751
struct wmi_bcn_tx_hdr hdr;
drivers/net/wireless/ath/ath11k/cfr.c
19
static int ath11k_cfr_calculate_tones_from_dma_hdr(struct ath11k_cfr_dma_hdr *hdr)
drivers/net/wireless/ath/ath11k/cfr.c
21
u8 bw = FIELD_GET(CFIR_DMA_HDR_INFO1_UPLOAD_PKT_BW, hdr->info1);
drivers/net/wireless/ath/ath11k/cfr.c
22
u8 preamble = FIELD_GET(CFIR_DMA_HDR_INFO1_PREAMBLE_TYPE, hdr->info1);
drivers/net/wireless/ath/ath11k/cfr.c
228
memcpy(&lut->hdr, dma_hdr, sizeof(*dma_hdr));
drivers/net/wireless/ath/ath11k/cfr.h
161
struct ath11k_cfr_dma_hdr hdr;
drivers/net/wireless/ath/ath11k/core.c
1384
static void ath11k_core_check_cc_code_bdfext(const struct dmi_header *hdr, void *data)
drivers/net/wireless/ath/ath11k/core.c
1388
struct ath11k_smbios_bdf *smbios = (struct ath11k_smbios_bdf *)hdr;
drivers/net/wireless/ath/ath11k/core.c
1396
if (hdr->type != ATH11K_SMBIOS_BDF_EXT_TYPE)
drivers/net/wireless/ath/ath11k/core.c
1399
if (hdr->length != ATH11K_SMBIOS_BDF_EXT_LENGTH) {
drivers/net/wireless/ath/ath11k/core.c
1402
hdr->length);
drivers/net/wireless/ath/ath11k/core.c
1625
const struct ath11k_fw_ie *hdr;
drivers/net/wireless/ath/ath11k/core.c
1635
hdr = buf;
drivers/net/wireless/ath/ath11k/core.c
1636
board_ie_id = le32_to_cpu(hdr->id);
drivers/net/wireless/ath/ath11k/core.c
1637
board_ie_len = le32_to_cpu(hdr->len);
drivers/net/wireless/ath/ath11k/core.c
1638
board_ie_data = hdr->data;
drivers/net/wireless/ath/ath11k/core.c
1640
buf_len -= sizeof(*hdr);
drivers/net/wireless/ath/ath11k/core.c
1641
buf += sizeof(*hdr);
drivers/net/wireless/ath/ath11k/core.c
1713
struct ath11k_fw_ie *hdr;
drivers/net/wireless/ath/ath11k/core.c
1758
hdr = (struct ath11k_fw_ie *)data;
drivers/net/wireless/ath/ath11k/core.c
1759
ie_id = le32_to_cpu(hdr->id);
drivers/net/wireless/ath/ath11k/core.c
1760
ie_len = le32_to_cpu(hdr->len);
drivers/net/wireless/ath/ath11k/core.c
1762
len -= sizeof(*hdr);
drivers/net/wireless/ath/ath11k/core.c
1763
data = hdr->data;
drivers/net/wireless/ath/ath11k/core.h
197
struct dmi_header hdr;
drivers/net/wireless/ath/ath11k/dp.h
1412
u32 hdr;
drivers/net/wireless/ath/ath11k/dp.h
1501
struct htt_ext_stats_cfg_hdr hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
1607
struct ath_pktlog_hdr *hdr = (struct ath_pktlog_hdr *)data;
drivers/net/wireless/ath/ath11k/dp_rx.c
1611
pdev_id = FIELD_GET(HTT_T2H_PPDU_STATS_INFO_PDEV_ID, data->hdr);
drivers/net/wireless/ath/ath11k/dp_rx.c
1621
trace_ath11k_htt_pktlog(ar, data->payload, hdr->size,
drivers/net/wireless/ath/ath11k/dp_rx.c
1957
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
1965
hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath11k/dp_rx.c
1966
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath11k/dp_rx.c
1967
ether_addr_copy(da, ieee80211_get_DA(hdr));
drivers/net/wireless/ath/ath11k/dp_rx.c
1968
ether_addr_copy(sa, ieee80211_get_SA(hdr));
drivers/net/wireless/ath/ath11k/dp_rx.c
1969
skb_pull(msdu, ieee80211_hdrlen(hdr->frame_control));
drivers/net/wireless/ath/ath11k/dp_rx.c
1975
hdr = (struct ieee80211_hdr *)first_hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
1976
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath11k/dp_rx.c
1981
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/ath/ath11k/dp_rx.c
1982
qos = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/ath11k/dp_rx.c
1987
hdr->frame_control |= __cpu_to_le16(IEEE80211_STYPE_QOS_DATA);
drivers/net/wireless/ath/ath11k/dp_rx.c
1990
hdr->frame_control &= ~(__cpu_to_le16(IEEE80211_FCTL_ORDER));
drivers/net/wireless/ath/ath11k/dp_rx.c
2000
memcpy(decap_hdr, (uint8_t *)hdr, hdr_len);
drivers/net/wireless/ath/ath11k/dp_rx.c
2006
(void *)hdr + hdr_len,
drivers/net/wireless/ath/ath11k/dp_rx.c
2018
memcpy(skb_push(msdu, hdr_len), hdr, hdr_len);
drivers/net/wireless/ath/ath11k/dp_rx.c
2023
hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath11k/dp_rx.c
2024
ether_addr_copy(ieee80211_get_DA(hdr), da);
drivers/net/wireless/ath/ath11k/dp_rx.c
2025
ether_addr_copy(ieee80211_get_SA(hdr), sa);
drivers/net/wireless/ath/ath11k/dp_rx.c
2034
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
2049
hdr = (void *)msdu->data;
drivers/net/wireless/ath/ath11k/dp_rx.c
2072
!ieee80211_has_morefrags(hdr->frame_control) &&
drivers/net/wireless/ath/ath11k/dp_rx.c
2078
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath11k/dp_rx.c
2092
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
2098
hdr = (struct ieee80211_hdr *)ath11k_dp_rx_h_80211_hdr(ar->ab, rxcb->rx_desc);
drivers/net/wireless/ath/ath11k/dp_rx.c
2099
rfc1042 = hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
2102
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath11k/dp_rx.c
2120
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
2142
hdr = (struct ieee80211_hdr *)first_hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
2143
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath11k/dp_rx.c
2148
(void *)hdr + hdr_len,
drivers/net/wireless/ath/ath11k/dp_rx.c
2152
memcpy(skb_push(msdu, hdr_len), hdr, hdr_len);
drivers/net/wireless/ath/ath11k/dp_rx.c
2157
hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath11k/dp_rx.c
2158
ether_addr_copy(ieee80211_get_DA(hdr), da);
drivers/net/wireless/ath/ath11k/dp_rx.c
2159
ether_addr_copy(ieee80211_get_SA(hdr), sa);
drivers/net/wireless/ath/ath11k/dp_rx.c
2240
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
2304
hdr = (void *)msdu->data;
drivers/net/wireless/ath/ath11k/dp_rx.c
2305
hdr->frame_control &= ~__cpu_to_le16(IEEE80211_FCTL_PROTECTED);
drivers/net/wireless/ath/ath11k/dp_rx.c
3222
struct ieee80211_hdr *hdr, u8 *data,
drivers/net/wireless/ath/ath11k/dp_rx.c
3244
memcpy(mic_hdr, ieee80211_get_DA(hdr), ETH_ALEN);
drivers/net/wireless/ath/ath11k/dp_rx.c
3245
memcpy(mic_hdr + ETH_ALEN, ieee80211_get_SA(hdr), ETH_ALEN);
drivers/net/wireless/ath/ath11k/dp_rx.c
3246
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/ath/ath11k/dp_rx.c
3247
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/ath/ath11k/dp_rx.c
3268
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
3280
hdr = (struct ieee80211_hdr *)(msdu->data + hal_rx_desc_sz);
drivers/net/wireless/ath/ath11k/dp_rx.c
3281
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath11k/dp_rx.c
3285
if (!is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/ath/ath11k/dp_rx.c
3296
ret = ath11k_dp_rx_h_michael_mic(peer->tfm_mmic, key, hdr, data, data_len, mic);
drivers/net/wireless/ath/ath11k/dp_rx.c
3320
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
3328
hdr = (struct ieee80211_hdr *)(msdu->data + hal_rx_desc_sz);
drivers/net/wireless/ath/ath11k/dp_rx.c
3339
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath11k/dp_rx.c
3355
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
3369
hdr = (struct ieee80211_hdr *)(skb->data + hal_rx_desc_sz);
drivers/net/wireless/ath/ath11k/dp_rx.c
3392
ieee80211_hdrlen(hdr->frame_control));
drivers/net/wireless/ath/ath11k/dp_rx.c
3407
hdr = (struct ieee80211_hdr *)(first_frag->data + hal_rx_desc_sz);
drivers/net/wireless/ath/ath11k/dp_rx.c
3408
hdr->frame_control &= ~__cpu_to_le16(IEEE80211_FCTL_MOREFRAGS);
drivers/net/wireless/ath/ath11k/dp_rx.c
3562
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
3567
hdr = (struct ieee80211_hdr *)(skb->data + hal_rx_desc_sz);
drivers/net/wireless/ath/ath11k/dp_rx.c
3568
ehdr = skb->data + hal_rx_desc_sz + ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath11k/dp_rx.c
76
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
78
hdr = (struct ieee80211_hdr *)(skb->data + ab->hw_params.hal_desc_sz);
drivers/net/wireless/ath/ath11k/dp_rx.c
79
return ieee80211_has_morefrags(hdr->frame_control);
drivers/net/wireless/ath/ath11k/dp_rx.c
85
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/dp_rx.c
87
hdr = (struct ieee80211_hdr *)(skb->data + ab->hw_params.hal_desc_sz);
drivers/net/wireless/ath/ath11k/dp_rx.c
88
return le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG;
drivers/net/wireless/ath/ath11k/dp_tx.c
107
!ieee80211_is_data(hdr->frame_control)))
drivers/net/wireless/ath/ath11k/dp_tx.c
1160
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_EXT_STATS_CFG;
drivers/net/wireless/ath/ath11k/dp_tx.c
1167
cmd->hdr.pdev_mask = 1 << pdev_id;
drivers/net/wireless/ath/ath11k/dp_tx.c
1169
cmd->hdr.stats_type = type;
drivers/net/wireless/ath/ath11k/dp_tx.c
146
if (ieee80211_has_a4(hdr->frame_control) &&
drivers/net/wireless/ath/ath11k/dp_tx.c
147
is_multicast_ether_addr(hdr->addr3) && arsta &&
drivers/net/wireless/ath/ath11k/dp_tx.c
160
if (ieee80211_has_protected(hdr->frame_control))
drivers/net/wireless/ath/ath11k/dp_tx.c
33
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath11k/dp_tx.c
36
if (!ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/ath/ath11k/dp_tx.c
39
qos_ctl = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/ath11k/dp_tx.c
44
hdr = (void *)skb->data;
drivers/net/wireless/ath/ath11k/dp_tx.c
45
hdr->frame_control &= ~__cpu_to_le16(IEEE80211_STYPE_QOS_DATA);
drivers/net/wireless/ath/ath11k/dp_tx.c
50
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath11k/dp_tx.c
55
else if (!ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/ath/ath11k/dp_tx.c
92
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath11k/fw.c
17
struct ath11k_fw_ie *hdr;
drivers/net/wireless/ath/ath11k/fw.c
63
hdr = (struct ath11k_fw_ie *)data;
drivers/net/wireless/ath/ath11k/fw.c
65
ie_id = le32_to_cpu(hdr->id);
drivers/net/wireless/ath/ath11k/fw.c
66
ie_len = le32_to_cpu(hdr->len);
drivers/net/wireless/ath/ath11k/fw.c
68
len -= sizeof(*hdr);
drivers/net/wireless/ath/ath11k/fw.c
69
data += sizeof(*hdr);
drivers/net/wireless/ath/ath11k/hal_desc.h
2191
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath11k/hal_desc.h
2286
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath11k/hal_desc.h
2321
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath11k/hal_desc.h
2383
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath11k/hal_desc.h
2419
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath11k/hal_desc.h
2462
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath11k/hal_rx.c
14
static void ath11k_hal_reo_set_desc_hdr(struct hal_desc_header *hdr,
drivers/net/wireless/ath/ath11k/hal_rx.c
17
hdr->info0 = FIELD_PREP(HAL_DESC_HDR_INFO0_OWNER, owner) |
drivers/net/wireless/ath/ath11k/hal_rx.c
21
hdr->info0 |= FIELD_PREP(HAL_DESC_HDR_INFO0_DBG_RESERVED, magic);
drivers/net/wireless/ath/ath11k/hal_rx.c
442
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
445
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
502
struct hal_reo_status_hdr *hdr;
drivers/net/wireless/ath/ath11k/hal_rx.c
504
hdr = (struct hal_reo_status_hdr *)tlv->value;
drivers/net/wireless/ath/ath11k/hal_rx.c
505
*status = FIELD_GET(HAL_REO_STATUS_HDR_INFO0_EXEC_STATUS, hdr->info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
507
return FIELD_GET(HAL_REO_STATUS_HDR_INFO0_STATUS_NUM, hdr->info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
519
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
522
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
538
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
541
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
580
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
583
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
608
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
611
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
638
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.c
641
desc->hdr.info0);
drivers/net/wireless/ath/ath11k/hal_rx.h
26
u32 hdr;
drivers/net/wireless/ath/ath11k/htc.c
198
if (length < sizeof(record->hdr)) {
drivers/net/wireless/ath/ath11k/htc.c
203
if (record->hdr.len > length) {
drivers/net/wireless/ath/ath11k/htc.c
206
record->hdr.len);
drivers/net/wireless/ath/ath11k/htc.c
212
switch (record->hdr.id) {
drivers/net/wireless/ath/ath11k/htc.c
215
if (record->hdr.len < len) {
drivers/net/wireless/ath/ath11k/htc.c
222
record->hdr.len,
drivers/net/wireless/ath/ath11k/htc.c
227
record->hdr.id, record->hdr.len);
drivers/net/wireless/ath/ath11k/htc.c
236
buffer += sizeof(record->hdr) + record->hdr.len;
drivers/net/wireless/ath/ath11k/htc.c
237
length -= sizeof(record->hdr) + record->hdr.len;
drivers/net/wireless/ath/ath11k/htc.c
290
struct ath11k_htc_hdr *hdr;
drivers/net/wireless/ath/ath11k/htc.c
298
hdr = (struct ath11k_htc_hdr *)skb->data;
drivers/net/wireless/ath/ath11k/htc.c
299
skb_pull(skb, sizeof(*hdr));
drivers/net/wireless/ath/ath11k/htc.c
301
eid = FIELD_GET(HTC_HDR_ENDPOINTID, hdr->htc_info);
drivers/net/wireless/ath/ath11k/htc.c
310
payload_len = FIELD_GET(HTC_HDR_PAYLOADLEN, hdr->htc_info);
drivers/net/wireless/ath/ath11k/htc.c
312
if (payload_len + sizeof(*hdr) > ATH11K_HTC_MAX_LEN) {
drivers/net/wireless/ath/ath11k/htc.c
314
payload_len + sizeof(*hdr));
drivers/net/wireless/ath/ath11k/htc.c
325
trailer_present = (FIELD_GET(HTC_HDR_FLAGS, hdr->htc_info)) &
drivers/net/wireless/ath/ath11k/htc.c
334
trailer_len = FIELD_GET(HTC_HDR_CONTROLBYTES0, hdr->ctrl_info);
drivers/net/wireless/ath/ath11k/htc.c
344
trailer = (u8 *)hdr;
drivers/net/wireless/ath/ath11k/htc.c
345
trailer += sizeof(*hdr);
drivers/net/wireless/ath/ath11k/htc.c
56
struct ath11k_htc_hdr *hdr;
drivers/net/wireless/ath/ath11k/htc.c
58
hdr = (struct ath11k_htc_hdr *)skb->data;
drivers/net/wireless/ath/ath11k/htc.c
60
memset(hdr, 0, sizeof(*hdr));
drivers/net/wireless/ath/ath11k/htc.c
61
hdr->htc_info = FIELD_PREP(HTC_HDR_ENDPOINTID, ep->eid) |
drivers/net/wireless/ath/ath11k/htc.c
63
(skb->len - sizeof(*hdr)));
drivers/net/wireless/ath/ath11k/htc.c
66
hdr->htc_info |= FIELD_PREP(HTC_HDR_FLAGS,
drivers/net/wireless/ath/ath11k/htc.c
70
hdr->ctrl_info = FIELD_PREP(HTC_HDR_CONTROLBYTES1, ep->seq_no++);
drivers/net/wireless/ath/ath11k/htc.h
153
struct ath11k_htc_record_hdr hdr;
drivers/net/wireless/ath/ath11k/mac.c
6183
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath11k/mac.c
6209
if ((ieee80211_is_action(hdr->frame_control) ||
drivers/net/wireless/ath/ath11k/mac.c
6210
ieee80211_is_deauth(hdr->frame_control) ||
drivers/net/wireless/ath/ath11k/mac.c
6211
ieee80211_is_disassoc(hdr->frame_control)) &&
drivers/net/wireless/ath/ath11k/mac.c
6212
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath11k/mac.c
6231
peer_in_unassoc_pool = ath11k_cfr_peer_is_in_cfr_unassoc_pool(ar, hdr->addr1);
drivers/net/wireless/ath/ath11k/mac.c
6234
ieee80211_is_probe_resp(hdr->frame_control) &&
drivers/net/wireless/ath/ath11k/mac.c
6239
ath11k_cfr_update_unassoc_pool_entry(ar, hdr->addr1);
drivers/net/wireless/ath/ath11k/mac.c
6272
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath11k/mac.c
6289
has_protected = ieee80211_has_protected(hdr->frame_control);
drivers/net/wireless/ath/ath11k/mac.c
6298
mgmt = (struct ieee80211_mgmt *)hdr;
drivers/net/wireless/ath/ath11k/mac.c
6414
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath11k/mac.c
6416
if (!ieee80211_is_action(hdr->frame_control))
drivers/net/wireless/ath/ath11k/mac.c
6516
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath11k/mac.c
6533
} else if (ieee80211_is_mgmt(hdr->frame_control)) {
drivers/net/wireless/ath/ath11k/mac.c
6534
is_prb_rsp = ieee80211_is_probe_resp(hdr->frame_control);
drivers/net/wireless/ath/ath11k/wmi.c
5943
struct mgmt_rx_event_params *hdr)
drivers/net/wireless/ath/ath11k/wmi.c
5967
hdr->pdev_id = ev->pdev_id;
drivers/net/wireless/ath/ath11k/wmi.c
5968
hdr->chan_freq = ev->chan_freq;
drivers/net/wireless/ath/ath11k/wmi.c
5969
hdr->channel = ev->channel;
drivers/net/wireless/ath/ath11k/wmi.c
5970
hdr->snr = ev->snr;
drivers/net/wireless/ath/ath11k/wmi.c
5971
hdr->rate = ev->rate;
drivers/net/wireless/ath/ath11k/wmi.c
5972
hdr->phy_mode = ev->phy_mode;
drivers/net/wireless/ath/ath11k/wmi.c
5973
hdr->buf_len = ev->buf_len;
drivers/net/wireless/ath/ath11k/wmi.c
5974
hdr->status = ev->status;
drivers/net/wireless/ath/ath11k/wmi.c
5975
hdr->flags = ev->flags;
drivers/net/wireless/ath/ath11k/wmi.c
5976
hdr->rssi = ev->rssi;
drivers/net/wireless/ath/ath11k/wmi.c
5977
hdr->tsf_delta = ev->tsf_delta;
drivers/net/wireless/ath/ath11k/wmi.c
5978
memcpy(hdr->rssi_ctl, ev->rssi_ctl, sizeof(hdr->rssi_ctl));
drivers/net/wireless/ath/ath11k/wmi.c
5980
if (skb->len < (frame - skb->data) + hdr->buf_len) {
drivers/net/wireless/ath/ath11k/wmi.c
5989
skb_put(skb, hdr->buf_len);
drivers/net/wireless/ath/ath11k/wmi.c
5991
ath11k_ce_byte_swap(skb->data, hdr->buf_len);
drivers/net/wireless/ath/ath11k/wmi.c
7608
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath11k/wmi.c
7674
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath11k/wmi.c
7675
fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/ath/ath11k/wmi.c
7687
if (ieee80211_has_protected(hdr->frame_control) &&
drivers/net/wireless/ath/ath11k/wmi.c
7688
!is_multicast_ether_addr(ieee80211_get_DA(hdr))) {
drivers/net/wireless/ath/ath11k/wmi.c
7694
hdr->frame_control = __cpu_to_le16(fc &
drivers/net/wireless/ath/ath11k/wmi.c
7699
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/ath/ath12k/core.c
318
const struct ath12k_fw_ie *hdr;
drivers/net/wireless/ath/ath12k/core.c
328
hdr = buf;
drivers/net/wireless/ath/ath12k/core.c
329
board_ie_id = le32_to_cpu(hdr->id);
drivers/net/wireless/ath/ath12k/core.c
330
board_ie_len = le32_to_cpu(hdr->len);
drivers/net/wireless/ath/ath12k/core.c
331
board_ie_data = hdr->data;
drivers/net/wireless/ath/ath12k/core.c
333
buf_len -= sizeof(*hdr);
drivers/net/wireless/ath/ath12k/core.c
334
buf += sizeof(*hdr);
drivers/net/wireless/ath/ath12k/core.c
406
struct ath12k_fw_ie *hdr;
drivers/net/wireless/ath/ath12k/core.c
451
hdr = (struct ath12k_fw_ie *)data;
drivers/net/wireless/ath/ath12k/core.c
452
ie_id = le32_to_cpu(hdr->id);
drivers/net/wireless/ath/ath12k/core.c
453
ie_len = le32_to_cpu(hdr->len);
drivers/net/wireless/ath/ath12k/core.c
455
len -= sizeof(*hdr);
drivers/net/wireless/ath/ath12k/core.c
456
data = hdr->data;
drivers/net/wireless/ath/ath12k/core.c
724
static void ath12k_core_check_cc_code_bdfext(const struct dmi_header *hdr, void *data)
drivers/net/wireless/ath/ath12k/core.c
728
struct ath12k_smbios_bdf *smbios = (struct ath12k_smbios_bdf *)hdr;
drivers/net/wireless/ath/ath12k/core.c
736
if (hdr->type != ATH12K_SMBIOS_BDF_EXT_TYPE)
drivers/net/wireless/ath/ath12k/core.c
739
if (hdr->length != ATH12K_SMBIOS_BDF_EXT_LENGTH) {
drivers/net/wireless/ath/ath12k/core.c
742
hdr->length);
drivers/net/wireless/ath/ath12k/core.h
196
struct dmi_header hdr;
drivers/net/wireless/ath/ath12k/dp_htt.c
1103
cmd->hdr.msg_type = HTT_H2T_MSG_TYPE_EXT_STATS_CFG;
drivers/net/wireless/ath/ath12k/dp_htt.c
1106
cmd->hdr.pdev_mask = 1 << pdev_id;
drivers/net/wireless/ath/ath12k/dp_htt.c
1108
cmd->hdr.stats_type = type;
drivers/net/wireless/ath/ath12k/dp_htt.h
1451
struct htt_ext_stats_cfg_hdr hdr;
drivers/net/wireless/ath/ath12k/dp_rx.c
1013
hdr = (void *)msdu->data;
drivers/net/wireless/ath/ath12k/dp_rx.c
1036
!ieee80211_has_morefrags(hdr->frame_control) &&
drivers/net/wireless/ath/ath12k/dp_rx.c
1042
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath12k/dp_rx.c
1060
struct ieee80211_hdr hdr;
drivers/net/wireless/ath/ath12k/dp_rx.c
1064
ath12k_dp_rx_desc_get_dot11_hdr(hal, rx_desc, &hdr);
drivers/net/wireless/ath/ath12k/dp_rx.c
1065
hdr_len = ieee80211_hdrlen(hdr.frame_control);
drivers/net/wireless/ath/ath12k/dp_rx.c
1075
memcpy(msdu->data, &hdr, min(hdr_len, sizeof(hdr)));
drivers/net/wireless/ath/ath12k/dp_rx.c
1081
if (ieee80211_is_data_qos(hdr.frame_control)) {
drivers/net/wireless/ath/ath12k/dp_rx.c
1097
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/dp_rx.c
1116
hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath12k/dp_rx.c
1117
ether_addr_copy(ieee80211_get_DA(hdr), da);
drivers/net/wireless/ath/ath12k/dp_rx.c
1118
ether_addr_copy(ieee80211_get_SA(hdr), sa);
drivers/net/wireless/ath/ath12k/dp_rx.c
1402
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/dp_rx.c
1408
hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath12k/dp_rx.c
1409
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath12k/dp_rx.c
1479
struct ieee80211_hdr *hdr, u8 *data,
drivers/net/wireless/ath/ath12k/dp_rx.c
1501
memcpy(mic_hdr, ieee80211_get_DA(hdr), ETH_ALEN);
drivers/net/wireless/ath/ath12k/dp_rx.c
1502
memcpy(mic_hdr + ETH_ALEN, ieee80211_get_SA(hdr), ETH_ALEN);
drivers/net/wireless/ath/ath12k/dp_rx.c
1503
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/ath/ath12k/dp_rx.c
1504
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/ath/ath12k/dp_rx.c
1524
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/dp_rx.c
1532
hdr = (struct ieee80211_hdr *)(msdu->data + hal_rx_desc_sz);
drivers/net/wireless/ath/ath12k/dp_rx.c
1543
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath12k/dp_rx.c
1584
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/dp_rx.c
1589
hdr = (struct ieee80211_hdr *)(skb->data + hal_rx_desc_sz);
drivers/net/wireless/ath/ath12k/dp_rx.c
1590
ehdr = skb->data + hal_rx_desc_sz + ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath12k/dp_rx.c
949
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/dp_rx.c
955
hdr = (struct ieee80211_hdr *)msdu->data;
drivers/net/wireless/ath/ath12k/dp_rx.c
956
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath12k/dp_rx.c
960
hdr->frame_control |= __cpu_to_le16(IEEE80211_STYPE_QOS_DATA);
drivers/net/wireless/ath/ath12k/dp_rx.c
963
hdr->frame_control &= ~(__cpu_to_le16(IEEE80211_FCTL_ORDER));
drivers/net/wireless/ath/ath12k/dp_rx.c
973
memcpy(decap_hdr, hdr, hdr_len);
drivers/net/wireless/ath/ath12k/dp_rx.c
998
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/dp_rx.h
112
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/dp_rx.h
114
hdr = (struct ieee80211_hdr *)(skb->data + hal->hal_desc_sz);
drivers/net/wireless/ath/ath12k/dp_rx.h
115
return ieee80211_has_morefrags(hdr->frame_control);
drivers/net/wireless/ath/ath12k/dp_rx.h
121
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/dp_rx.h
123
hdr = (struct ieee80211_hdr *)(skb->data + hal->hal_desc_sz);
drivers/net/wireless/ath/ath12k/dp_rx.h
124
return le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG;
drivers/net/wireless/ath/ath12k/dp_rx.h
155
struct ieee80211_hdr *hdr)
drivers/net/wireless/ath/ath12k/dp_rx.h
157
hal->ops->rx_desc_get_dot11_hdr(desc, hdr);
drivers/net/wireless/ath/ath12k/dp_rx.h
210
struct ieee80211_hdr *hdr, u8 *data,
drivers/net/wireless/ath/ath12k/dp_tx.c
32
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath12k/dp_tx.c
35
if (!ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/ath/ath12k/dp_tx.c
38
qos_ctl = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/ath12k/dp_tx.c
43
hdr = (void *)skb->data;
drivers/net/wireless/ath/ath12k/dp_tx.c
44
hdr->frame_control &= ~__cpu_to_le16(IEEE80211_STYPE_QOS_DATA);
drivers/net/wireless/ath/ath12k/dp_tx.c
50
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath12k/dp_tx.c
55
else if (!ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/ath/ath12k/fw.c
15
struct ath12k_fw_ie *hdr;
drivers/net/wireless/ath/ath12k/fw.c
61
hdr = (struct ath12k_fw_ie *)data;
drivers/net/wireless/ath/ath12k/fw.c
63
ie_id = le32_to_cpu(hdr->id);
drivers/net/wireless/ath/ath12k/fw.c
64
ie_len = le32_to_cpu(hdr->len);
drivers/net/wireless/ath/ath12k/fw.c
66
len -= sizeof(*hdr);
drivers/net/wireless/ath/ath12k/fw.c
67
data += sizeof(*hdr);
drivers/net/wireless/ath/ath12k/hal.h
1366
struct ieee80211_hdr *hdr);
drivers/net/wireless/ath/ath12k/htc.c
192
if (length < sizeof(record->hdr)) {
drivers/net/wireless/ath/ath12k/htc.c
197
if (record->hdr.len > length) {
drivers/net/wireless/ath/ath12k/htc.c
200
record->hdr.len);
drivers/net/wireless/ath/ath12k/htc.c
205
switch (record->hdr.id) {
drivers/net/wireless/ath/ath12k/htc.c
208
if (record->hdr.len < len) {
drivers/net/wireless/ath/ath12k/htc.c
215
record->hdr.len,
drivers/net/wireless/ath/ath12k/htc.c
220
record->hdr.id, record->hdr.len);
drivers/net/wireless/ath/ath12k/htc.c
228
buffer += sizeof(record->hdr) + record->hdr.len;
drivers/net/wireless/ath/ath12k/htc.c
229
length -= sizeof(record->hdr) + record->hdr.len;
drivers/net/wireless/ath/ath12k/htc.c
257
struct ath12k_htc_hdr *hdr;
drivers/net/wireless/ath/ath12k/htc.c
265
hdr = (struct ath12k_htc_hdr *)skb->data;
drivers/net/wireless/ath/ath12k/htc.c
266
skb_pull(skb, sizeof(*hdr));
drivers/net/wireless/ath/ath12k/htc.c
268
eid = le32_get_bits(hdr->htc_info, HTC_HDR_ENDPOINTID);
drivers/net/wireless/ath/ath12k/htc.c
277
payload_len = le32_get_bits(hdr->htc_info, HTC_HDR_PAYLOADLEN);
drivers/net/wireless/ath/ath12k/htc.c
279
if (payload_len + sizeof(*hdr) > ATH12K_HTC_MAX_LEN) {
drivers/net/wireless/ath/ath12k/htc.c
281
payload_len + sizeof(*hdr));
drivers/net/wireless/ath/ath12k/htc.c
292
trailer_present = le32_get_bits(hdr->htc_info, HTC_HDR_FLAGS) &
drivers/net/wireless/ath/ath12k/htc.c
298
trailer_len = le32_get_bits(hdr->ctrl_info,
drivers/net/wireless/ath/ath12k/htc.c
309
trailer = (u8 *)hdr;
drivers/net/wireless/ath/ath12k/htc.c
310
trailer += sizeof(*hdr);
drivers/net/wireless/ath/ath12k/htc.c
56
struct ath12k_htc_hdr *hdr;
drivers/net/wireless/ath/ath12k/htc.c
58
hdr = (struct ath12k_htc_hdr *)skb->data;
drivers/net/wireless/ath/ath12k/htc.c
60
memset(hdr, 0, sizeof(*hdr));
drivers/net/wireless/ath/ath12k/htc.c
61
hdr->htc_info = le32_encode_bits(ep->eid, HTC_HDR_ENDPOINTID) |
drivers/net/wireless/ath/ath12k/htc.c
62
le32_encode_bits((skb->len - sizeof(*hdr)),
drivers/net/wireless/ath/ath12k/htc.c
66
hdr->htc_info |= le32_encode_bits(ATH12K_HTC_FLAG_NEED_CREDIT_UPDATE,
drivers/net/wireless/ath/ath12k/htc.c
70
hdr->ctrl_info = le32_encode_bits(ep->seq_no++, HTC_HDR_CONTROLBYTES1);
drivers/net/wireless/ath/ath12k/htc.h
151
struct ath12k_htc_record_hdr hdr;
drivers/net/wireless/ath/ath12k/mac.c
9033
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath12k/mac.c
9055
if ((ieee80211_is_action(hdr->frame_control) ||
drivers/net/wireless/ath/ath12k/mac.c
9056
ieee80211_is_deauth(hdr->frame_control) ||
drivers/net/wireless/ath/ath12k/mac.c
9057
ieee80211_is_disassoc(hdr->frame_control)) &&
drivers/net/wireless/ath/ath12k/mac.c
9058
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath12k/mac.c
9104
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath12k/mac.c
9124
has_protected = ieee80211_has_protected(hdr->frame_control);
drivers/net/wireless/ath/ath12k/mac.c
9133
mgmt = (struct ieee80211_mgmt *)hdr;
drivers/net/wireless/ath/ath12k/mac.c
9261
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath12k/mac.c
9263
if (!ieee80211_is_action(hdr->frame_control))
drivers/net/wireless/ath/ath12k/mac.c
9391
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath12k/mac.c
9399
ether_addr_copy(hdr->addr2, bss_conf->addr);
drivers/net/wireless/ath/ath12k/mac.c
9407
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath12k/mac.c
9434
ether_addr_copy(hdr->addr2, bss_conf->addr);
drivers/net/wireless/ath/ath12k/mac.c
9435
if (!ieee80211_has_tods(hdr->frame_control) &&
drivers/net/wireless/ath/ath12k/mac.c
9436
!ieee80211_has_fromds(hdr->frame_control))
drivers/net/wireless/ath/ath12k/mac.c
9437
ether_addr_copy(hdr->addr3, bss_conf->addr);
drivers/net/wireless/ath/ath12k/mac.c
9447
ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/ath/ath12k/mac.c
9454
if (!ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/ath/ath12k/mac.c
9462
ether_addr_copy(hdr->addr1, link_sta->addr);
drivers/net/wireless/ath/ath12k/mac.c
9463
ether_addr_copy(hdr->addr2, bss_conf->addr);
drivers/net/wireless/ath/ath12k/mac.c
9466
ether_addr_copy(hdr->addr3, bss_conf->bssid);
drivers/net/wireless/ath/ath12k/mac.c
9468
ether_addr_copy(hdr->addr3, bss_conf->addr);
drivers/net/wireless/ath/ath12k/mac.c
9490
ether_addr_copy(hdr->addr2, bss_conf->addr);
drivers/net/wireless/ath/ath12k/mac.c
9493
ether_addr_copy(hdr->addr3, bss_conf->bssid);
drivers/net/wireless/ath/ath12k/mac.c
9495
ether_addr_copy(hdr->addr3, bss_conf->addr);
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
1000
hdr = (struct ieee80211_hdr *)(msdu->data + hal_rx_desc_sz);
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
1001
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
1005
if (!is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
1016
ret = ath12k_dp_rx_h_michael_mic(peer->tfm_mmic, key, hdr, data,
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
1054
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
1065
hdr = (struct ieee80211_hdr *)(skb->data + hal_rx_desc_sz);
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
1085
ieee80211_hdrlen(hdr->frame_control));
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
1100
hdr = (struct ieee80211_hdr *)(first_frag->data + hal_rx_desc_sz);
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
1101
hdr->frame_control &= ~__cpu_to_le16(IEEE80211_FCTL_MOREFRAGS);
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
2166
void *hdr, *desc;
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
2176
while ((hdr = ath12k_hal_srng_dst_get_next_entry(ab, srng))) {
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
2177
tag = hal->ops->reo_status_dec_tlv_hdr(hdr, &desc);
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
334
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
398
hdr = (void *)msdu->data;
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
399
hdr->frame_control &= ~__cpu_to_le16(IEEE80211_FCTL_PROTECTED);
drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
986
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
134
if (ieee80211_has_protected(hdr->frame_control))
drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
183
is_null_frame = ieee80211_is_nullfunc(hdr->frame_control);
drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
228
hdr = (void *)skb->data;
drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
242
ieee80211_has_protected(hdr->frame_control)) ||
drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
76
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath12k/wifi7/dp_tx.c
96
!ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/ath/ath12k/wifi7/hal_desc.h
2354
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath12k/wifi7/hal_desc.h
2454
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath12k/wifi7/hal_desc.h
2489
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath12k/wifi7/hal_desc.h
2551
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath12k/wifi7/hal_desc.h
2587
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath12k/wifi7/hal_desc.h
2630
struct hal_reo_status_hdr hdr;
drivers/net/wireless/ath/ath12k/wifi7/hal_qcc2072.c
110
struct ieee80211_hdr *hdr)
drivers/net/wireless/ath/ath12k/wifi7/hal_qcc2072.c
112
hdr->frame_control = desc->u.qcc2072.mpdu_start.frame_ctrl;
drivers/net/wireless/ath/ath12k/wifi7/hal_qcc2072.c
113
hdr->duration_id = desc->u.qcc2072.mpdu_start.duration;
drivers/net/wireless/ath/ath12k/wifi7/hal_qcc2072.c
114
ether_addr_copy(hdr->addr1, desc->u.qcc2072.mpdu_start.addr1);
drivers/net/wireless/ath/ath12k/wifi7/hal_qcc2072.c
115
ether_addr_copy(hdr->addr2, desc->u.qcc2072.mpdu_start.addr2);
drivers/net/wireless/ath/ath12k/wifi7/hal_qcc2072.c
116
ether_addr_copy(hdr->addr3, desc->u.qcc2072.mpdu_start.addr3);
drivers/net/wireless/ath/ath12k/wifi7/hal_qcc2072.c
120
ether_addr_copy(hdr->addr4, desc->u.qcc2072.mpdu_start.addr4);
drivers/net/wireless/ath/ath12k/wifi7/hal_qcc2072.c
122
hdr->seq_ctrl = desc->u.qcc2072.mpdu_start.seq_ctrl;
drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
801
struct ieee80211_hdr *hdr)
drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
803
hdr->frame_control = desc->u.qcn9274_compact.mpdu_start.frame_ctrl;
drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
804
hdr->duration_id = desc->u.qcn9274_compact.mpdu_start.duration;
drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
805
ether_addr_copy(hdr->addr1, desc->u.qcn9274_compact.mpdu_start.addr1);
drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
806
ether_addr_copy(hdr->addr2, desc->u.qcn9274_compact.mpdu_start.addr2);
drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
807
ether_addr_copy(hdr->addr3, desc->u.qcn9274_compact.mpdu_start.addr3);
drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
810
ether_addr_copy(hdr->addr4, desc->u.qcn9274_compact.mpdu_start.addr4);
drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.c
812
hdr->seq_ctrl = desc->u.qcn9274_compact.mpdu_start.seq_ctrl;
drivers/net/wireless/ath/ath12k/wifi7/hal_qcn9274.h
41
struct ieee80211_hdr *hdr);
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
16
void ath12k_wifi7_hal_reo_set_desc_hdr(struct hal_desc_header *hdr,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
19
hdr->info0 = le32_encode_bits(owner, HAL_DESC_HDR_INFO0_OWNER) |
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
23
hdr->info0 |= le32_encode_bits(magic, HAL_DESC_HDR_INFO0_DBG_RESERVED);
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
550
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
553
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
611
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
614
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
629
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
632
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
669
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
672
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
694
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
697
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
721
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.c
724
le32_get_bits(desc->hdr.info0,
drivers/net/wireless/ath/ath12k/wifi7/hal_rx.h
40
u32 hdr;
drivers/net/wireless/ath/ath12k/wifi7/hal_wcn7850.c
571
struct ieee80211_hdr *hdr)
drivers/net/wireless/ath/ath12k/wifi7/hal_wcn7850.c
573
hdr->frame_control = desc->u.wcn7850.mpdu_start.frame_ctrl;
drivers/net/wireless/ath/ath12k/wifi7/hal_wcn7850.c
574
hdr->duration_id = desc->u.wcn7850.mpdu_start.duration;
drivers/net/wireless/ath/ath12k/wifi7/hal_wcn7850.c
575
ether_addr_copy(hdr->addr1, desc->u.wcn7850.mpdu_start.addr1);
drivers/net/wireless/ath/ath12k/wifi7/hal_wcn7850.c
576
ether_addr_copy(hdr->addr2, desc->u.wcn7850.mpdu_start.addr2);
drivers/net/wireless/ath/ath12k/wifi7/hal_wcn7850.c
577
ether_addr_copy(hdr->addr3, desc->u.wcn7850.mpdu_start.addr3);
drivers/net/wireless/ath/ath12k/wifi7/hal_wcn7850.c
580
ether_addr_copy(hdr->addr4, desc->u.wcn7850.mpdu_start.addr4);
drivers/net/wireless/ath/ath12k/wifi7/hal_wcn7850.c
582
hdr->seq_ctrl = desc->u.wcn7850.mpdu_start.seq_ctrl;
drivers/net/wireless/ath/ath12k/wifi7/hal_wcn7850.h
35
struct ieee80211_hdr *hdr);
drivers/net/wireless/ath/ath12k/wifi7/hw.c
768
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath12k/wifi7/hw.c
830
is_prb_rsp = ieee80211_is_probe_resp(hdr->frame_control);
drivers/net/wireless/ath/ath12k/wifi7/hw.c
837
} else if (ieee80211_is_mgmt(hdr->frame_control)) {
drivers/net/wireless/ath/ath12k/wifi7/hw.c
851
is_mcast = is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/ath/ath12k/wifi7/hw.c
867
ieee80211_has_protected(hdr->frame_control))
drivers/net/wireless/ath/ath12k/wifi7/hw.c
934
hdr = (struct ieee80211_hdr *)msdu_copied->data;
drivers/net/wireless/ath/ath12k/wifi7/hw.c
935
if (!ieee80211_has_protected(hdr->frame_control))
drivers/net/wireless/ath/ath12k/wifi7/hw.c
936
hdr->frame_control |=
drivers/net/wireless/ath/ath12k/wmi.c
6240
struct ath12k_wmi_mgmt_rx_arg *hdr)
drivers/net/wireless/ath/ath12k/wmi.c
6263
hdr->pdev_id = le32_to_cpu(ev->pdev_id);
drivers/net/wireless/ath/ath12k/wmi.c
6264
hdr->chan_freq = le32_to_cpu(ev->chan_freq);
drivers/net/wireless/ath/ath12k/wmi.c
6265
hdr->channel = le32_to_cpu(ev->channel);
drivers/net/wireless/ath/ath12k/wmi.c
6266
hdr->snr = le32_to_cpu(ev->snr);
drivers/net/wireless/ath/ath12k/wmi.c
6267
hdr->rate = le32_to_cpu(ev->rate);
drivers/net/wireless/ath/ath12k/wmi.c
6268
hdr->phy_mode = le32_to_cpu(ev->phy_mode);
drivers/net/wireless/ath/ath12k/wmi.c
6269
hdr->buf_len = le32_to_cpu(ev->buf_len);
drivers/net/wireless/ath/ath12k/wmi.c
6270
hdr->status = le32_to_cpu(ev->status);
drivers/net/wireless/ath/ath12k/wmi.c
6271
hdr->flags = le32_to_cpu(ev->flags);
drivers/net/wireless/ath/ath12k/wmi.c
6272
hdr->rssi = a_sle32_to_cpu(ev->rssi);
drivers/net/wireless/ath/ath12k/wmi.c
6273
hdr->tsf_delta = le32_to_cpu(ev->tsf_delta);
drivers/net/wireless/ath/ath12k/wmi.c
6276
hdr->rssi_ctl[i] = le32_to_cpu(ev->rssi_ctl[i]);
drivers/net/wireless/ath/ath12k/wmi.c
6278
if (skb->len < (frame - skb->data) + hdr->buf_len) {
drivers/net/wireless/ath/ath12k/wmi.c
6287
skb_put(skb, hdr->buf_len);
drivers/net/wireless/ath/ath12k/wmi.c
7174
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath12k/wmi.c
720
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)frame->data;
drivers/net/wireless/ath/ath12k/wmi.c
723
struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)hdr;
drivers/net/wireless/ath/ath12k/wmi.c
7246
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath12k/wmi.c
7247
fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/ath/ath12k/wmi.c
7258
if (ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/ath/ath12k/wmi.c
7264
hdr->frame_control = __cpu_to_le16(fc &
drivers/net/wireless/ath/ath12k/wmi.c
7269
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/ath/ath5k/base.c
1260
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/ath/ath5k/base.c
1270
hlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath5k/base.c
1271
if (ieee80211_has_protected(hdr->frame_control) &&
drivers/net/wireless/ath/ath5k/base.c
1353
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath5k/base.c
1354
__le16 frame_control = hdr->frame_control;
drivers/net/wireless/ath/ath5k/base.c
673
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath5k/base.c
677
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath5k/base.c
678
fc = hdr->frame_control;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
362
struct htc_frame_hdr *hdr;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
365
hdr = (struct htc_frame_hdr *)packet->buf;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
367
put_unaligned_le16(packet->act_len, &hdr->payld_len);
drivers/net/wireless/ath/ath6kl/htc_mbox.c
368
hdr->flags = flags;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
369
hdr->eid = packet->endpoint;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
370
hdr->ctrl[0] = ctrl0;
drivers/net/wireless/ath/ath6kl/htc_mbox.c
371
hdr->ctrl[1] = ctrl1;
drivers/net/wireless/ath/ath6kl/init.c
1000
ie_len = le32_to_cpup(&hdr->len);
drivers/net/wireless/ath/ath6kl/init.c
1002
len -= sizeof(*hdr);
drivers/net/wireless/ath/ath6kl/init.c
1003
data += sizeof(*hdr);
drivers/net/wireless/ath/ath6kl/init.c
1137
le32_to_cpup(&hdr->id));
drivers/net/wireless/ath/ath6kl/init.c
957
struct ath6kl_fw_ie *hdr;
drivers/net/wireless/ath/ath6kl/init.c
997
hdr = (struct ath6kl_fw_ie *) data;
drivers/net/wireless/ath/ath6kl/init.c
999
ie_id = le32_to_cpup(&hdr->id);
drivers/net/wireless/ath/ath6kl/trace.h
13
struct wmi_cmd_hdr *hdr = buf;
drivers/net/wireless/ath/ath6kl/trace.h
15
if (buf_len < sizeof(*hdr))
drivers/net/wireless/ath/ath6kl/trace.h
18
return le16_to_cpu(hdr->cmd_id);
drivers/net/wireless/ath/ath6kl/txrx.c
1003
hdr = (struct ethhdr *) framep;
drivers/net/wireless/ath/ath6kl/txrx.c
1004
payload_8023_len = be16_to_cpu(hdr->h_proto);
drivers/net/wireless/ath/ath6kl/txrx.c
994
struct ethhdr *hdr;
drivers/net/wireless/ath/ath9k/channel.c
1508
u8 *hdr;
drivers/net/wireless/ath/ath9k/channel.c
1516
hdr = skb_put_data(skb, noa_ie_hdr, sizeof(noa_ie_hdr));
drivers/net/wireless/ath/ath9k/channel.c
1517
hdr[1] = sizeof(noa_ie_hdr) + noa_len - 2;
drivers/net/wireless/ath/ath9k/channel.c
1518
hdr[7] = noa_len;
drivers/net/wireless/ath/ath9k/common-spectral.c
469
int ath_cmn_process_fft(struct ath_spec_scan_priv *spec_priv, struct ieee80211_hdr *hdr,
drivers/net/wireless/ath/ath9k/common-spectral.c
476
u8 num_bins, *vdata = (u8 *)hdr;
drivers/net/wireless/ath/ath9k/common-spectral.h
180
int ath_cmn_process_fft(struct ath_spec_scan_priv *spec_priv, struct ieee80211_hdr *hdr,
drivers/net/wireless/ath/ath9k/common-spectral.h
198
struct ieee80211_hdr *hdr,
drivers/net/wireless/ath/ath9k/common.c
126
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/common.c
132
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/common.c
134
fc = hdr->frame_control;
drivers/net/wireless/ath/ath9k/common.c
33
struct ieee80211_hdr *hdr,
drivers/net/wireless/ath/ath9k/common.c
43
fc = hdr->frame_control;
drivers/net/wireless/ath/ath9k/common.c
45
is_mc = !!is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/ath/ath9k/common.c
65
!(le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG) &&
drivers/net/wireless/ath/ath9k/common.h
65
struct ieee80211_hdr *hdr,
drivers/net/wireless/ath/ath9k/debug_sta.c
102
if (!ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/ath/ath9k/debug_sta.c
107
sta = ieee80211_find_sta_by_ifaddr(sc->hw, hdr->addr2, NULL);
drivers/net/wireless/ath/ath9k/debug_sta.c
95
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/dynack.c
211
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/dynack.c
223
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/dynack.c
227
if (ieee80211_is_assoc_req(hdr->frame_control) ||
drivers/net/wireless/ath/ath9k/dynack.c
228
ieee80211_is_assoc_resp(hdr->frame_control) ||
drivers/net/wireless/ath/ath9k/dynack.c
229
ieee80211_is_auth(hdr->frame_control)) {
drivers/net/wireless/ath/ath9k/dynack.c
254
memcpy(da->st_rbf.addr[da->st_rbf.t_rb].h_dest, hdr->addr1, ETH_ALEN);
drivers/net/wireless/ath/ath9k/dynack.c
255
memcpy(da->st_rbf.addr[da->st_rbf.t_rb].h_src, hdr->addr2, ETH_ALEN);
drivers/net/wireless/ath/ath9k/dynack.c
278
hdr->addr1, ts->ts_tstamp, dur, da->st_rbf.h_rb,
drivers/net/wireless/ath/ath9k/dynack.c
299
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/dynack.c
301
if (!da->enabled || !ath_dynack_bssidmask(ah, hdr->addr1))
drivers/net/wireless/ath/ath9k/hif_usb.c
187
__le16 *hdr;
drivers/net/wireless/ath/ath9k/hif_usb.c
202
hdr = skb_push(skb, 4);
drivers/net/wireless/ath/ath9k/hif_usb.c
203
*hdr++ = cpu_to_le16(skb->len - 4);
drivers/net/wireless/ath/ath9k/hif_usb.c
204
*hdr++ = cpu_to_le16(ATH_USB_TX_STREAM_MODE_TAG);
drivers/net/wireless/ath/ath9k/hif_usb.c
315
__le16 *hdr;
drivers/net/wireless/ath/ath9k/hif_usb.c
340
hdr = (__le16 *)buf;
drivers/net/wireless/ath/ath9k/hif_usb.c
341
*hdr++ = cpu_to_le16(nskb->len);
drivers/net/wireless/ath/ath9k/hif_usb.c
342
*hdr++ = cpu_to_le16(ATH_USB_TX_STREAM_MODE_TAG);
drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
143
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
153
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
155
padpos = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
233
struct ieee80211_hdr *hdr =
drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
236
hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG);
drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
237
hdr->seq_ctrl |= cpu_to_le16(avp->seq_no);
drivers/net/wireless/ath/ath9k/htc_drv_main.c
866
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_drv_main.c
871
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/htc_drv_main.c
874
padpos = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
1040
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
1048
if (ath_cmn_process_fft(&priv->spec_priv, hdr,
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
1055
if (!ath9k_cmn_rx_accept(common, hdr, rx_status, &rx_stats,
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
1065
rx_stats.is_mybeacon = ath_is_mybeacon(common, hdr);
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
1088
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
1115
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
1117
if (ieee80211_is_beacon(hdr->frame_control) && priv->ps_enabled)
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
221
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
227
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
236
if (avp && unlikely(ieee80211_is_probe_resp(hdr->frame_control))) {
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
267
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
275
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
305
ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
306
qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
345
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
352
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
381
if (ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
410
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
413
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
414
fc = hdr->frame_control;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
418
sta = ieee80211_find_sta(vif, hdr->addr1);
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
430
qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
599
struct tx_mgmt_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
600
hdr = (struct tx_mgmt_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
601
fcookie = hdr->cookie;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
607
struct tx_frame_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
608
hdr = (struct tx_frame_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
609
fcookie = hdr->cookie;
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
977
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_hst.c
25
struct htc_frame_hdr *hdr;
drivers/net/wireless/ath/ath9k/htc_hst.c
29
hdr = skb_push(skb, sizeof(struct htc_frame_hdr));
drivers/net/wireless/ath/ath9k/htc_hst.c
30
hdr->endpoint_id = epid;
drivers/net/wireless/ath/ath9k/htc_hst.c
31
hdr->flags = flags;
drivers/net/wireless/ath/ath9k/htc_hst.c
32
hdr->payload_len = cpu_to_be16(len);
drivers/net/wireless/ath/ath9k/htc_hst.c
33
memset(hdr->control, 0, sizeof(hdr->control));
drivers/net/wireless/ath/ath9k/link.c
246
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/link.c
274
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/link.c
276
hdr->frame_control = cpu_to_le16(ftype);
drivers/net/wireless/ath/ath9k/link.c
277
hdr->duration_id = cpu_to_le16(10);
drivers/net/wireless/ath/ath9k/link.c
278
memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN);
drivers/net/wireless/ath/ath9k/link.c
279
memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN);
drivers/net/wireless/ath/ath9k/link.c
280
memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN);
drivers/net/wireless/ath/ath9k/main.c
760
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/main.c
768
if (ieee80211_is_data(hdr->frame_control) &&
drivers/net/wireless/ath/ath9k/main.c
769
!ieee80211_is_nullfunc(hdr->frame_control) &&
drivers/net/wireless/ath/ath9k/main.c
770
!ieee80211_has_pm(hdr->frame_control)) {
drivers/net/wireless/ath/ath9k/main.c
773
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM);
drivers/net/wireless/ath/ath9k/main.c
787
if (ieee80211_is_pspoll(hdr->frame_control)) {
drivers/net/wireless/ath/ath9k/recv.c
1014
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/recv.c
1026
if (!ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/ath/ath9k/recv.c
1031
sta = ieee80211_find_sta_by_ifaddr(sc->hw, hdr->addr2, NULL);
drivers/net/wireless/ath/ath9k/recv.c
1077
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/recv.c
1208
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/recv.c
1209
if (ieee80211_is_ack(hdr->frame_control))
drivers/net/wireless/ath/ath9k/recv.c
593
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/recv.c
596
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/recv.c
603
(ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/ath/ath9k/recv.c
604
ieee80211_is_action(hdr->frame_control)) &&
drivers/net/wireless/ath/ath9k/recv.c
605
is_multicast_ether_addr(hdr->addr1) &&
drivers/net/wireless/ath/ath9k/recv.c
606
!ieee80211_has_moredata(hdr->frame_control)) {
drivers/net/wireless/ath/ath9k/recv.c
615
!is_multicast_ether_addr(hdr->addr1) &&
drivers/net/wireless/ath/ath9k/recv.c
616
!ieee80211_has_morefrags(hdr->frame_control)) {
drivers/net/wireless/ath/ath9k/recv.c
817
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/recv.c
865
hdr = (struct ieee80211_hdr *) (skb->data + ah->caps.rx_status_len);
drivers/net/wireless/ath/ath9k/recv.c
883
ath9k_dfs_process_phyerr(sc, hdr, rx_stats,
drivers/net/wireless/ath/ath9k/recv.c
886
ath_cmn_process_fft(&sc->spec_priv, hdr, rx_stats,
drivers/net/wireless/ath/ath9k/recv.c
898
if (!ath9k_cmn_rx_accept(common, hdr, rx_status, rx_stats, decrypt_error,
drivers/net/wireless/ath/ath9k/recv.c
905
if (ath_is_mybeacon(common, hdr)) {
drivers/net/wireless/ath/ath9k/recv.c
941
if (ieee80211_is_data_present(hdr->frame_control) &&
drivers/net/wireless/ath/ath9k/recv.c
942
!ieee80211_is_qos_nullfunc(hdr->frame_control))
drivers/net/wireless/ath/ath9k/tx99.c
54
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/tx99.c
67
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/tx99.c
68
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA);
drivers/net/wireless/ath/ath9k/tx99.c
69
hdr->duration_id = 0;
drivers/net/wireless/ath/ath9k/tx99.c
71
memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN);
drivers/net/wireless/ath/ath9k/tx99.c
72
memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN);
drivers/net/wireless/ath/ath9k/tx99.c
73
memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN);
drivers/net/wireless/ath/ath9k/tx99.c
77
hdr->seq_ctrl |= cpu_to_le16(avp->seq_no);
drivers/net/wireless/ath/ath9k/tx99.c
93
memcpy(skb->data + sizeof(*hdr), PN9Data, sizeof(PN9Data));
drivers/net/wireless/ath/ath9k/wmi.c
142
struct wmi_cmd_hdr *hdr;
drivers/net/wireless/ath/ath9k/wmi.c
164
hdr = (struct wmi_cmd_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/wmi.c
165
cmd_id = be16_to_cpu(hdr->command_id);
drivers/net/wireless/ath/ath9k/wmi.c
219
struct wmi_cmd_hdr *hdr;
drivers/net/wireless/ath/ath9k/wmi.c
230
hdr = (struct wmi_cmd_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/wmi.c
231
cmd_id = be16_to_cpu(hdr->command_id);
drivers/net/wireless/ath/ath9k/wmi.c
243
if (be16_to_cpu(hdr->seq_no) != wmi->last_seq_id) {
drivers/net/wireless/ath/ath9k/wmi.c
291
struct wmi_cmd_hdr *hdr;
drivers/net/wireless/ath/ath9k/wmi.c
294
hdr = skb_push(skb, sizeof(struct wmi_cmd_hdr));
drivers/net/wireless/ath/ath9k/wmi.c
295
hdr->command_id = cpu_to_be16(cmd);
drivers/net/wireless/ath/ath9k/wmi.c
296
hdr->seq_no = cpu_to_be16(++wmi->tx_seq_id);
drivers/net/wireless/ath/ath9k/xmit.c
1269
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/xmit.c
1278
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/xmit.c
1281
info->dur_update = !ieee80211_is_pspoll(hdr->frame_control);
drivers/net/wireless/ath/ath9k/xmit.c
1382
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/xmit.c
1386
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/xmit.c
1387
fc = hdr->frame_control;
drivers/net/wireless/ath/ath9k/xmit.c
1672
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/xmit.c
1682
hdr = (struct ieee80211_hdr *) bf->bf_mpdu->data;
drivers/net/wireless/ath/ath9k/xmit.c
1683
if ((hdr->frame_control & mask) != mask_val) {
drivers/net/wireless/ath/ath9k/xmit.c
1684
hdr->frame_control = (hdr->frame_control & ~mask) | mask_val;
drivers/net/wireless/ath/ath9k/xmit.c
1686
sizeof(*hdr), DMA_TO_DEVICE);
drivers/net/wireless/ath/ath9k/xmit.c
2138
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/xmit.c
2178
else if (an && ieee80211_is_data(hdr->frame_control) && an->ps_key > 0)
drivers/net/wireless/ath/ath9k/xmit.c
2220
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/xmit.c
2233
if (tid && ieee80211_is_data_present(hdr->frame_control)) {
drivers/net/wireless/ath/ath9k/xmit.c
2234
fragno = le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_FRAG;
drivers/net/wireless/ath/ath9k/xmit.c
2236
hdr->seq_ctrl = cpu_to_le16(tid->seq_next << IEEE80211_SEQ_SEQ_SHIFT);
drivers/net/wireless/ath/ath9k/xmit.c
2239
hdr->seq_ctrl |= cpu_to_le16(fragno);
drivers/net/wireless/ath/ath9k/xmit.c
2241
if (!ieee80211_has_morefrags(hdr->frame_control))
drivers/net/wireless/ath/ath9k/xmit.c
2267
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/xmit.c
2283
hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG);
drivers/net/wireless/ath/ath9k/xmit.c
2284
hdr->seq_ctrl |= cpu_to_le16(avp->seq_no);
drivers/net/wireless/ath/ath9k/xmit.c
2290
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/xmit.c
2305
!ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/ath/ath9k/xmit.c
2309
padpos = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath9k/xmit.c
2463
struct ieee80211_hdr * hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/xmit.c
2480
padpos = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath9k/xmit.c
2570
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/xmit.c
2615
ieee80211_is_data(hdr->frame_control) &&
drivers/net/wireless/ath/ath9k/xmit.c
2914
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/ath9k/xmit.c
2920
padpos = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/ath/ath9k/xmit.c
392
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/xmit.c
401
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/ath9k/xmit.c
402
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_RETRY);
drivers/net/wireless/ath/ath9k/xmit.c
404
sizeof(*hdr), DMA_TO_DEVICE);
drivers/net/wireless/ath/ath9k/xmit.c
732
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/ath9k/xmit.c
747
hdr = (struct ieee80211_hdr *) bf->bf_mpdu->data;
drivers/net/wireless/ath/ath9k/xmit.c
748
sta = ieee80211_find_sta_by_ifaddr(hw, hdr->addr1, hdr->addr2);
drivers/net/wireless/ath/carl9170/carl9170.h
625
static inline u16 get_seq_h(struct ieee80211_hdr *hdr)
drivers/net/wireless/ath/carl9170/carl9170.h
627
return le16_to_cpu(hdr->seq_ctrl) >> 4;
drivers/net/wireless/ath/carl9170/cmd.c
125
tmp->hdr.cmd = cmd;
drivers/net/wireless/ath/carl9170/cmd.c
126
tmp->hdr.len = len;
drivers/net/wireless/ath/carl9170/cmd.h
145
__cmd->hdr.len = 8 * __nreg; \
drivers/net/wireless/ath/carl9170/debug.c
286
struct ieee80211_hdr *hdr = (void *) txc->frame_data;
drivers/net/wireless/ath/carl9170/debug.c
290
ieee80211_get_DA(hdr), get_seq_h(hdr),
drivers/net/wireless/ath/carl9170/fwcmd.h
229
struct carl9170_cmd_head hdr;
drivers/net/wireless/ath/carl9170/fwcmd.h
316
struct carl9170_cmd_head hdr;
drivers/net/wireless/ath/carl9170/rx.c
140
ar->cmd_buf, (ar->cmd.hdr.len + 4) & 0x3f);
drivers/net/wireless/ath/carl9170/rx.c
166
if ((cmd->hdr.cmd & CARL9170_RSP_FLAG) != CARL9170_RSP_FLAG) {
drivers/net/wireless/ath/carl9170/rx.c
167
if (!(cmd->hdr.cmd & CARL9170_CMD_ASYNC_FLAG))
drivers/net/wireless/ath/carl9170/rx.c
173
if (unlikely(cmd->hdr.len != (len - 4))) {
drivers/net/wireless/ath/carl9170/rx.c
177
cmd->hdr.cmd, cmd->hdr.len, len - 4);
drivers/net/wireless/ath/carl9170/rx.c
187
switch (cmd->hdr.cmd) {
drivers/net/wireless/ath/carl9170/rx.c
283
cmd->hdr.cmd);
drivers/net/wireless/ath/carl9170/rx.c
466
struct ieee80211_hdr *hdr = (void *) buf;
drivers/net/wireless/ath/carl9170/rx.c
468
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/ath/carl9170/rx.c
469
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/carl9170/rx.c
476
if (ieee80211_has_a4(hdr->frame_control))
drivers/net/wireless/ath/carl9170/rx.c
520
struct ieee80211_hdr *hdr = data;
drivers/net/wireless/ath/carl9170/rx.c
536
if (!ath_is_mybeacon(common, hdr) || !common->curaid)
drivers/net/wireless/ath/carl9170/rx.c
834
i += cmd->hdr.len + 4;
drivers/net/wireless/ath/carl9170/rx.c
838
if (carl9170_check_sequence(ar, cmd->hdr.seq))
drivers/net/wireless/ath/carl9170/rx.c
841
carl9170_handle_command_response(ar, cmd, cmd->hdr.len + 4);
drivers/net/wireless/ath/carl9170/tx.c
1012
if (unlikely(ieee80211_is_probe_resp(hdr->frame_control)))
drivers/net/wireless/ath/carl9170/tx.c
111
struct ieee80211_hdr *hdr = (void *) super->frame_data;
drivers/net/wireless/ath/carl9170/tx.c
135
return ieee80211_find_sta(vif, hdr->addr1);
drivers/net/wireless/ath/carl9170/tx.c
382
struct ieee80211_hdr *hdr = (void *) super->frame_data;
drivers/net/wireless/ath/carl9170/tx.c
397
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/ath/carl9170/tx.c
406
carl9170_tx_shift_bm(ar, tid_info, get_seq_h(hdr));
drivers/net/wireless/ath/carl9170/tx.c
694
for (i = 0; i < cmd->hdr.ext; i++) {
drivers/net/wireless/ath/carl9170/tx.c
695
if (WARN_ON(i > ((cmd->hdr.len / 2) + 1))) {
drivers/net/wireless/ath/carl9170/tx.c
697
(void *) cmd, cmd->hdr.len + 4);
drivers/net/wireless/ath/carl9170/tx.c
963
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/carl9170/tx.c
985
hdr = (void *)skb->data;
drivers/net/wireless/ath/carl9170/usb.c
622
if (WARN_ON(cmd->hdr.len > CARL9170_MAX_CMD_LEN - 4)) {
drivers/net/wireless/ath/carl9170/usb.c
636
cmd, cmd->hdr.len + 4,
drivers/net/wireless/ath/carl9170/usb.c
641
cmd, cmd->hdr.len + 4,
drivers/net/wireless/ath/carl9170/usb.c
671
ar->cmd.hdr.len = plen;
drivers/net/wireless/ath/carl9170/usb.c
672
ar->cmd.hdr.cmd = cmd;
drivers/net/wireless/ath/carl9170/wlan.h
270
struct ar9170_tx_hwdesc hdr;
drivers/net/wireless/ath/main.c
64
bool ath_is_mybeacon(struct ath_common *common, struct ieee80211_hdr *hdr)
drivers/net/wireless/ath/main.c
66
return ieee80211_is_beacon(hdr->frame_control) &&
drivers/net/wireless/ath/main.c
68
ether_addr_equal_64bits(hdr->addr3, common->curbssid);
drivers/net/wireless/ath/wcn36xx/smd.c
426
struct wcn36xx_hal_msg_header *hdr =
drivers/net/wireless/ath/wcn36xx/smd.c
428
u16 req_type = hdr->msg_type;
drivers/net/wireless/ath/wcn36xx/smd.c
448
req_type, hdr->msg_type,
drivers/net/wireless/ath/wcn36xx/txrx.c
310
struct ieee80211_hdr *hdr;
drivers/net/wireless/ath/wcn36xx/txrx.c
349
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/ath/wcn36xx/txrx.c
350
fc = __le16_to_cpu(hdr->frame_control);
drivers/net/wireless/ath/wcn36xx/txrx.c
351
sn = IEEE80211_SEQ_TO_SN(__le16_to_cpu(hdr->seq_ctrl));
drivers/net/wireless/ath/wcn36xx/txrx.c
407
if (ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/ath/wcn36xx/txrx.c
408
ieee80211_is_probe_resp(hdr->frame_control))
drivers/net/wireless/ath/wcn36xx/txrx.c
413
if (ieee80211_is_beacon(hdr->frame_control)) {
drivers/net/wireless/ath/wcn36xx/txrx.c
489
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/wcn36xx/txrx.c
498
if (WARN_ON(!ieee80211_is_data_qos(hdr->frame_control)))
drivers/net/wireless/ath/wcn36xx/txrx.c
504
qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/ath/wcn36xx/txrx.c
527
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/wcn36xx/txrx.c
531
bool is_data_qos = ieee80211_is_data_qos(hdr->frame_control);
drivers/net/wireless/ath/wcn36xx/txrx.c
555
__vif_priv = get_vif_by_addr(wcn, hdr->addr2);
drivers/net/wireless/ath/wcn36xx/txrx.c
562
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/ath/wcn36xx/txrx.c
575
if (ieee80211_is_any_nullfunc(hdr->frame_control)) {
drivers/net/wireless/ath/wcn36xx/txrx.c
579
if (ieee80211_is_qos_nullfunc(hdr->frame_control))
drivers/net/wireless/ath/wcn36xx/txrx.c
605
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/wcn36xx/txrx.c
607
get_vif_by_addr(wcn, hdr->addr2);
drivers/net/wireless/ath/wcn36xx/txrx.c
613
if (ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/ath/wcn36xx/txrx.c
617
else if (ieee80211_is_ctl(hdr->frame_control))
drivers/net/wireless/ath/wcn36xx/txrx.c
627
ieee80211_is_probe_req(hdr->frame_control))
drivers/net/wireless/ath/wcn36xx/txrx.c
643
ieee80211_is_data_qos(hdr->frame_control) ?
drivers/net/wireless/ath/wcn36xx/txrx.c
653
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ath/wcn36xx/txrx.c
656
bool is_low = ieee80211_is_data(hdr->frame_control);
drivers/net/wireless/ath/wcn36xx/txrx.c
657
bool bcast = is_broadcast_ether_addr(hdr->addr1) ||
drivers/net/wireless/ath/wcn36xx/txrx.c
658
is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/ath/wcn36xx/txrx.c
668
skb, skb->len, __le16_to_cpu(hdr->frame_control),
drivers/net/wireless/ath/wcn36xx/txrx.c
669
IEEE80211_SEQ_TO_SN(__le16_to_cpu(hdr->seq_ctrl)),
drivers/net/wireless/ath/wil6210/debugfs.c
315
struct wil6210_mbox_hdr hdr;
drivers/net/wireless/ath/wil6210/debugfs.c
326
if (0 == wmi_read_hdr(wil, d.addr, &hdr)) {
drivers/net/wireless/ath/wil6210/debugfs.c
327
u16 len = le16_to_cpu(hdr.len);
drivers/net/wireless/ath/wil6210/debugfs.c
330
le16_to_cpu(hdr.seq), len,
drivers/net/wireless/ath/wil6210/debugfs.c
331
le16_to_cpu(hdr.type), hdr.flags);
drivers/net/wireless/ath/wil6210/fw.h
108
struct wil_fw_record_comment_hdr hdr;
drivers/net/wireless/ath/wil6210/fw.h
62
struct wil_fw_record_comment_hdr hdr;
drivers/net/wireless/ath/wil6210/fw_inc.c
101
dlen - sizeof(*hdr) - sizeof(fh));
drivers/net/wireless/ath/wil6210/fw_inc.c
239
const struct wil_fw_record_comment_hdr *hdr = data;
drivers/net/wireless/ath/wil6210/fw_inc.c
243
if (size < sizeof(*hdr))
drivers/net/wireless/ath/wil6210/fw_inc.c
246
magic = le32_to_cpu(hdr->magic);
drivers/net/wireless/ath/wil6210/fw_inc.c
41
const struct wil_fw_record_head *hdr = (const void *)data;
drivers/net/wireless/ath/wil6210/fw_inc.c
52
if (size < sizeof(*hdr) + sizeof(fh)) {
drivers/net/wireless/ath/wil6210/fw_inc.c
58
if (le16_to_cpu(hdr->type) != wil_fw_type_file_header) {
drivers/net/wireless/ath/wil6210/fw_inc.c
602
const struct wil_fw_record_head *hdr;
drivers/net/wireless/ath/wil6210/fw_inc.c
605
for (hdr = data;; hdr = (const void *)hdr + s, size -= s) {
drivers/net/wireless/ath/wil6210/fw_inc.c
606
if (size < sizeof(*hdr))
drivers/net/wireless/ath/wil6210/fw_inc.c
608
hdr_sz = le32_to_cpu(hdr->size);
drivers/net/wireless/ath/wil6210/fw_inc.c
609
s = sizeof(*hdr) + hdr_sz;
drivers/net/wireless/ath/wil6210/fw_inc.c
617
rc = wil_fw_handle_record(wil, le16_to_cpu(hdr->type),
drivers/net/wireless/ath/wil6210/fw_inc.c
618
&hdr[1], hdr_sz, load);
drivers/net/wireless/ath/wil6210/fw_inc.c
624
if (size >= sizeof(*hdr)) {
drivers/net/wireless/ath/wil6210/fw_inc.c
627
(long)((const void *)hdr - data),
drivers/net/wireless/ath/wil6210/fw_inc.c
628
le16_to_cpu(hdr->type), hdr_sz);
drivers/net/wireless/ath/wil6210/fw_inc.c
64
fh_ = (struct wil_fw_record_file_header *)&hdr[1];
drivers/net/wireless/ath/wil6210/fw_inc.c
692
const struct wil_fw_record_head *hdr = data;
drivers/net/wireless/ath/wil6210/fw_inc.c
701
if (size < sizeof(*hdr))
drivers/net/wireless/ath/wil6210/fw_inc.c
703
s = sizeof(*hdr) + le32_to_cpu(hdr->size);
drivers/net/wireless/ath/wil6210/fw_inc.c
710
for (hdr = data + s;; hdr = (const void *)hdr + s, size -= s, i++) {
drivers/net/wireless/ath/wil6210/fw_inc.c
711
if (size < sizeof(*hdr))
drivers/net/wireless/ath/wil6210/fw_inc.c
721
hdr_sz = le32_to_cpu(hdr->size);
drivers/net/wireless/ath/wil6210/fw_inc.c
722
s = sizeof(*hdr) + hdr_sz;
drivers/net/wireless/ath/wil6210/fw_inc.c
726
if (sizeof(*hdr) + hdr_sz > size)
drivers/net/wireless/ath/wil6210/fw_inc.c
733
type = le16_to_cpu(hdr->type);
drivers/net/wireless/ath/wil6210/fw_inc.c
75
if (dlen < sizeof(*hdr) + sizeof(fh)) {
drivers/net/wireless/ath/wil6210/fw_inc.c
750
rc = __fw_handle_data(wil, &hdr[1], hdr_sz,
drivers/net/wireless/ath/wil6210/fw_inc.c
758
if (size >= sizeof(*hdr)) {
drivers/net/wireless/ath/wil6210/fw_inc.c
761
(long)((const void *)hdr - data),
drivers/net/wireless/ath/wil6210/fw_inc.c
762
le16_to_cpu(hdr->type), hdr_sz);
drivers/net/wireless/ath/wil6210/fw_inc.c
98
crc = crc32_le(~0, (unsigned char const *)hdr, sizeof(*hdr));
drivers/net/wireless/ath/wil6210/txrx.c
374
struct ieee80211_hdr_3addr *hdr;
drivers/net/wireless/ath/wil6210/txrx.c
398
hdr = (void *)skb->data;
drivers/net/wireless/ath/wil6210/txrx.c
399
ta = hdr->addr2;
drivers/net/wireless/ath/wil6210/txrx.c
723
const struct wil_1x_hdr *hdr;
drivers/net/wireless/ath/wil6210/txrx.c
741
hdr = (const struct wil_1x_hdr *)buf;
drivers/net/wireless/ath/wil6210/txrx.c
742
if (hdr->type != WIL_1X_TYPE_EAPOL_KEY)
drivers/net/wireless/ath/wil6210/wil6210.h
1240
struct wil6210_mbox_hdr *hdr);
drivers/net/wireless/ath/wil6210/wil6210.h
490
struct wil6210_mbox_hdr hdr;
drivers/net/wireless/ath/wil6210/wmi.c
1481
struct wmi_link_stats_record *hdr;
drivers/net/wireless/ath/wil6210/wmi.c
1489
hdr = payload;
drivers/net/wireless/ath/wil6210/wmi.c
1490
stats_size = le16_to_cpu(hdr->record_size);
drivers/net/wireless/ath/wil6210/wmi.c
1499
switch (hdr->record_type_id) {
drivers/net/wireless/ath/wil6210/wmi.c
1908
struct wil6210_mbox_hdr hdr;
drivers/net/wireless/ath/wil6210/wmi.c
1948
if (0 != wmi_read_hdr(wil, d_tail.addr, &hdr)) {
drivers/net/wireless/ath/wil6210/wmi.c
1953
len = le16_to_cpu(hdr.len);
drivers/net/wireless/ath/wil6210/wmi.c
1955
le16_to_cpu(hdr.seq), len, le16_to_cpu(hdr.type),
drivers/net/wireless/ath/wil6210/wmi.c
1956
hdr.flags);
drivers/net/wireless/ath/wil6210/wmi.c
1967
evt->event.hdr = hdr;
drivers/net/wireless/ath/wil6210/wmi.c
1974
if ((hdr.type == WIL_MBOX_HDR_TYPE_WMI) &&
drivers/net/wireless/ath/wil6210/wmi.c
2011
&evt->event.hdr, sizeof(hdr) + len, true);
drivers/net/wireless/ath/wil6210/wmi.c
319
struct wil6210_mbox_hdr *hdr)
drivers/net/wireless/ath/wil6210/wmi.c
326
wil_memcpy_fromio_32(hdr, src, sizeof(*hdr));
drivers/net/wireless/ath/wil6210/wmi.c
3317
struct wil6210_mbox_hdr *hdr)
drivers/net/wireless/ath/wil6210/wmi.c
3319
u16 len = le16_to_cpu(hdr->len);
drivers/net/wireless/ath/wil6210/wmi.c
3322
if ((hdr->type == WIL_MBOX_HDR_TYPE_WMI) &&
drivers/net/wireless/ath/wil6210/wmi.c
3324
struct wmi_cmd_hdr *wmi = (void *)(&hdr[1]);
drivers/net/wireless/ath/wil6210/wmi.c
3379
hdr, sizeof(*hdr) + len, true);
drivers/net/wireless/ath/wil6210/wmi.c
3416
wmi_event_handle(wil, &evt->event.hdr);
drivers/net/wireless/ath/wil6210/wmi.c
3728
struct wmi_cmd_hdr hdr;
drivers/net/wireless/ath/wil6210/wmi.c
3769
struct wmi_cmd_hdr hdr;
drivers/net/wireless/ath/wil6210/wmi.c
3809
struct wmi_cmd_hdr hdr;
drivers/net/wireless/ath/wil6210/wmi.c
3850
struct wmi_cmd_hdr hdr;
drivers/net/wireless/ath/wil6210/wmi.c
3901
struct wmi_cmd_hdr hdr;
drivers/net/wireless/ath/wil6210/wmi.c
3946
struct wmi_cmd_hdr hdr;
drivers/net/wireless/ath/wil6210/wmi.c
4018
struct wmi_cmd_hdr hdr;
drivers/net/wireless/ath/wil6210/wmi.c
637
struct wil6210_mbox_hdr hdr;
drivers/net/wireless/ath/wil6210/wmi.c
640
.hdr = {
drivers/net/wireless/ath/wil6210/wmi.c
728
cmd.hdr.seq = cpu_to_le16(++wil->wmi_seq);
drivers/net/wireless/atmel/at76c50x-usb.c
1514
struct ieee80211_hdr *hdr = (void *)priv->rx_skb->data;
drivers/net/wireless/atmel/at76c50x-usb.c
1522
if (ieee80211_is_probe_resp(hdr->frame_control)) {
drivers/net/wireless/atmel/at76c50x-usb.c
1524
el = ((struct ieee80211_mgmt *)hdr)->u.probe_resp.variable;
drivers/net/wireless/atmel/at76c50x-usb.c
1525
} else if (ieee80211_is_beacon(hdr->frame_control)) {
drivers/net/wireless/atmel/at76c50x-usb.c
1527
el = ((struct ieee80211_mgmt *)hdr)->u.beacon.variable;
drivers/net/wireless/broadcom/b43/dma.c
1342
struct ieee80211_hdr *hdr;
drivers/net/wireless/broadcom/b43/dma.c
1346
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/broadcom/b43/dma.c
1352
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_MOREDATA);
drivers/net/wireless/broadcom/b43/main.c
2191
struct b43_fw_header *hdr;
drivers/net/wireless/broadcom/b43/main.c
2264
hdr = (struct b43_fw_header *)(ctx->blob->data);
drivers/net/wireless/broadcom/b43/main.c
2265
switch (hdr->type) {
drivers/net/wireless/broadcom/b43/main.c
2268
size = be32_to_cpu(hdr->size);
drivers/net/wireless/broadcom/b43/main.c
2273
if (hdr->ver != 1)
drivers/net/wireless/broadcom/b43/main.c
2818
const struct b43_fw_header *hdr;
drivers/net/wireless/broadcom/b43/main.c
2823
hdr = (const struct b43_fw_header *)(fw->initvals.data->data);
drivers/net/wireless/broadcom/b43/main.c
2825
count = be32_to_cpu(hdr->size);
drivers/net/wireless/broadcom/b43/main.c
2833
const struct b43_fw_header *hdr;
drivers/net/wireless/broadcom/b43/main.c
2841
hdr = (const struct b43_fw_header *)(fw->initvals_band.data->data);
drivers/net/wireless/broadcom/b43/main.c
2843
count = be32_to_cpu(hdr->size);
drivers/net/wireless/broadcom/b43/pio.c
350
const u8 *hdr, unsigned int hdrlen)
drivers/net/wireless/broadcom/b43/pio.c
362
ctl = tx_write_2byte_queue(q, ctl, hdr, hdrlen);
drivers/net/wireless/broadcom/b43/pio.c
420
const u8 *hdr, unsigned int hdrlen)
drivers/net/wireless/broadcom/b43/pio.c
432
ctl = tx_write_4byte_queue(q, ctl, hdr, hdrlen);
drivers/net/wireless/broadcom/b43/pio.c
492
struct ieee80211_hdr *hdr;
drivers/net/wireless/broadcom/b43/pio.c
497
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/broadcom/b43/pio.c
504
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_MOREDATA);
drivers/net/wireless/broadcom/b43/xmit.c
425
struct ieee80211_hdr *hdr;
drivers/net/wireless/broadcom/b43/xmit.c
505
hdr = (struct ieee80211_hdr *)
drivers/net/wireless/broadcom/b43/xmit.c
509
hdr = (struct ieee80211_hdr *)
drivers/net/wireless/broadcom/b43/xmit.c
513
hdr = (struct ieee80211_hdr *)
drivers/net/wireless/broadcom/b43/xmit.c
517
txhdr->rts_dur_fb = hdr->duration_id;
drivers/net/wireless/broadcom/b43legacy/main.c
1058
struct ieee80211_hdr *hdr;
drivers/net/wireless/broadcom/b43legacy/main.c
1090
hdr = (struct ieee80211_hdr *)dest_data;
drivers/net/wireless/broadcom/b43legacy/main.c
1093
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT |
drivers/net/wireless/broadcom/b43legacy/main.c
1100
hdr->duration_id = dur;
drivers/net/wireless/broadcom/b43legacy/main.c
1499
struct b43legacy_fw_header *hdr;
drivers/net/wireless/broadcom/b43legacy/main.c
1534
hdr = (struct b43legacy_fw_header *)((*fw)->data);
drivers/net/wireless/broadcom/b43legacy/main.c
1535
switch (hdr->type) {
drivers/net/wireless/broadcom/b43legacy/main.c
1538
size = be32_to_cpu(hdr->size);
drivers/net/wireless/broadcom/b43legacy/main.c
1543
if (hdr->ver != 1)
drivers/net/wireless/broadcom/b43legacy/main.c
1844
const struct b43legacy_fw_header *hdr;
drivers/net/wireless/broadcom/b43legacy/main.c
1850
hdr = (const struct b43legacy_fw_header *)(fw->initvals->data);
drivers/net/wireless/broadcom/b43legacy/main.c
1852
count = be32_to_cpu(hdr->size);
drivers/net/wireless/broadcom/b43legacy/main.c
1858
hdr = (const struct b43legacy_fw_header *)
drivers/net/wireless/broadcom/b43legacy/main.c
1862
count = be32_to_cpu(hdr->size);
drivers/net/wireless/broadcom/b43legacy/xmit.c
296
struct ieee80211_hdr *hdr;
drivers/net/wireless/broadcom/b43legacy/xmit.c
331
hdr = (struct ieee80211_hdr *)(&txhdr->rts_frame);
drivers/net/wireless/broadcom/b43legacy/xmit.c
332
txhdr->rts_dur_fb = hdr->duration_id;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c
57
#define BCDC_GET_IF_IDX(hdr) \
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c
58
((int)((((hdr)->flags2) & BCDC_FLAG2_IF_MASK) >> BCDC_FLAG2_IF_SHIFT))
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c
59
#define BCDC_SET_IF_IDX(hdr, idx) \
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c
60
((hdr)->flags2 = (((hdr)->flags2 & ~BCDC_FLAG2_IF_MASK) | \
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h
246
struct brcm_ethhdr hdr;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h
383
subtype = get_unaligned_be16(&event_packet->hdr.subtype);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h
389
if (memcmp(BRCM_OUI, &event_packet->hdr.oui[0],
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h
390
sizeof(event_packet->hdr.oui)))
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h
394
usr_stype = get_unaligned_be16(&event_packet->hdr.usr_subtype);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
1757
brcmf_sdio_read_control(struct brcmf_sdio *bus, u8 *hdr, uint len, uint doff)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
1775
memcpy(buf, hdr, BRCMF_FIRSTREAD);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
2266
u8 *hdr;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
2283
hdr = pkt_next->data + bus->tx_hdrlen - SDPCM_SWHDR_LEN;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
2284
dat_offset = le32_to_cpu(*(__le32 *)hdr);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c
2289
tail_pad = le16_to_cpu(*(__le16 *)(hdr - 2));
drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h
119
__dynamic_array(u8, hdr, dir == SDPCM_GLOM ? 20 : 12)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h
122
memcpy(__get_dynamic_array(hdr), data, dir == SDPCM_GLOM ? 20 : 12);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h
128
__entry->len, ((u8 *)__get_dynamic_array(hdr))[4])
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1607
struct firmware_hdr *hdr;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1609
hdr = (struct firmware_hdr *)wl->fw.fw_hdr[i]->data;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1611
entry++, hdr++) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1612
u32 len = le32_to_cpu(hdr->len);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1613
if (le32_to_cpu(hdr->idx) == idx) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1615
le32_to_cpu(hdr->offset);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1637
struct firmware_hdr *hdr;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1639
hdr = (struct firmware_hdr *)wl->fw.fw_hdr[i]->data;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1641
entry++, hdr++) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1642
if (le32_to_cpu(hdr->idx) == idx) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1644
le32_to_cpu(hdr->offset);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1645
if (le32_to_cpu(hdr->len) != 4) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7109
struct ieee80211_hdr *hdr;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7121
hdr = (struct ieee80211_hdr *)p->data;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7122
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3056
struct libipw_hdr_3addr *hdr;
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3090
hdr = (struct libipw_hdr_3addr *)packet->info.d_struct.txb->
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3096
memcpy(ipw_hdr->src_addr, hdr->addr2, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3097
memcpy(ipw_hdr->dst_addr, hdr->addr3, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3101
memcpy(ipw_hdr->src_addr, hdr->addr2, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/ipw2100.c
3102
memcpy(ipw_hdr->dst_addr, hdr->addr1, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10049
struct libipw_hdr_3addrqos *hdr = (struct libipw_hdr_3addrqos *)
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10066
hdr_len = libipw_get_hdrlen(le16_to_cpu(hdr->frame_ctl));
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10069
unicast = !is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10070
id = ipw_find_station(priv, hdr->addr1);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10072
id = ipw_add_station(priv, hdr->addr1);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10076
hdr->addr1);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10084
unicast = !is_multicast_ether_addr(hdr->addr3);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10108
fc = le16_to_cpu(hdr->frame_ctl);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10109
hdr->frame_ctl = cpu_to_le16(fc & ~IEEE80211_FCTL_MOREFRAGS);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10111
memcpy(&tfd->u.data.tfd.tfd_24.mchdr, hdr, hdr_len);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10260
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10271
hdr = (void *)txb->fragments[0]->data;
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10272
if (libipw_is_management(le16_to_cpu(hdr->frame_control))) {
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10277
} else if (libipw_is_control(le16_to_cpu(hdr->frame_control))) {
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10282
} else if (libipw_is_data(le16_to_cpu(hdr->frame_control))) {
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10296
hdr = (void *)src->data;
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10297
len = libipw_get_hdrlen(le16_to_cpu(hdr->frame_control));
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7596
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7599
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7600
fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7605
hdr->frame_control = cpu_to_le16(fc);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7637
struct libipw_hdr_4addr *hdr;
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7667
hdr = (struct libipw_hdr_4addr *)rxb->skb->data;
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7669
(is_multicast_ether_addr(hdr->addr1) ?
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7870
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7910
hdr = (void *)rxb->skb->data + IPW_RX_FRAME_SIZE;
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7911
if (libipw_is_management(le16_to_cpu(hdr->frame_control))) {
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7916
} else if (libipw_is_control(le16_to_cpu(hdr->frame_control))) {
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7921
} else if (libipw_is_data(le16_to_cpu(hdr->frame_control))) {
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7939
len = libipw_get_hdrlen(le16_to_cpu(hdr->frame_control));
drivers/net/wireless/intel/ipw2x00/ipw2200.c
7941
memcpy(ipw_rt->payload, hdr, len);
drivers/net/wireless/intel/ipw2x00/libipw.h
347
__struct_group(libipw_hdr_3addr_hdr, hdr, __packed,
drivers/net/wireless/intel/ipw2x00/libipw.h
958
static inline u8 *libipw_get_payload(struct ieee80211_hdr *hdr)
drivers/net/wireless/intel/ipw2x00/libipw.h
960
switch (libipw_get_hdrlen(le16_to_cpu(hdr->frame_control))) {
drivers/net/wireless/intel/ipw2x00/libipw.h
962
return ((struct libipw_hdr_1addr *)hdr)->payload;
drivers/net/wireless/intel/ipw2x00/libipw.h
964
return ((struct libipw_hdr_2addr *)hdr)->payload;
drivers/net/wireless/intel/ipw2x00/libipw.h
966
return ((struct libipw_hdr_3addr *)hdr)->payload;
drivers/net/wireless/intel/ipw2x00/libipw.h
968
return ((struct libipw_hdr_4addr *)hdr)->payload;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
101
pos = (u8 *) & hdr->addr4;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
119
memcpy(iv + 2, hdr->addr2, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
129
pos = (u8 *) hdr;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
132
memcpy(aad + 2, &hdr->addrs, 3 * ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
133
pos = (u8 *) & hdr->seq_ctrl;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
138
memcpy(aad + 22, hdr->addr4, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
186
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
206
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
207
aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
251
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
265
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
270
hdr->addr2);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
282
hdr->addr2, keyidx);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
297
hdr->addr2,
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
310
aad_len = ccmp_init_iv_and_aad(hdr, pn, iv, aad);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
325
hdr->addr2, ret);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
87
static int ccmp_init_iv_and_aad(const struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
94
a4_included = ieee80211_has_a4(hdr->frame_control);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_ccmp.c
95
qc_included = ieee80211_is_data_qos(hdr->frame_control);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
281
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
283
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
292
tkip_mixing_phase1(tkey->tx_ttak, tkey->key, hdr->addr2,
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
328
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
330
hdr->addr1);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
376
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
381
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
385
hdr->addr2);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
396
hdr->addr2);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
407
hdr->addr2, keyidx);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
417
hdr->addr2, tkey->rx_iv32, tkey->rx_iv16,
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
425
tkip_mixing_phase1(tkey->rx_ttak, tkey->key, hdr->addr2, iv32);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
448
hdr->addr2);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
467
static int michael_mic(struct crypto_shash *tfm_michael, u8 *key, u8 *hdr,
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
486
err = crypto_shash_update(desc, hdr, 16);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
499
static void michael_mic_hdr(struct sk_buff *skb, u8 * hdr)
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
508
memcpy(hdr, hdr11->addr3, ETH_ALEN); /* DA */
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
509
memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
512
memcpy(hdr, hdr11->addr1, ETH_ALEN); /* DA */
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
513
memcpy(hdr + ETH_ALEN, hdr11->addr3, ETH_ALEN); /* SA */
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
516
memcpy(hdr, hdr11->addr3, ETH_ALEN); /* DA */
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
517
memcpy(hdr + ETH_ALEN, hdr11->addr4, ETH_ALEN); /* SA */
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
520
memcpy(hdr, hdr11->addr1, ETH_ALEN); /* DA */
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
521
memcpy(hdr + ETH_ALEN, hdr11->addr2, ETH_ALEN); /* SA */
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
526
hdr[12] = le16_to_cpu(*((__le16 *)ieee80211_get_qos_ctl(hdr11)))
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
529
hdr[12] = 0; /* priority */
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
531
hdr[13] = hdr[14] = hdr[15] = 0; /* reserved */
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
557
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
566
if (hdr->addr1[0] & 0x01)
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
571
memcpy(ev.src_addr.sa_data, hdr->addr2, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
591
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
592
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
595
skb->dev ? skb->dev->name : "N/A", hdr->addr2,
drivers/net/wireless/intel/ipw2x00/libipw_crypto_tkip.c
598
libipw_michael_mic_failure(skb->dev, hdr, keyidx);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
116
memcpy(entry->src_addr, hdr->addr2, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
117
memcpy(entry->dst_addr, hdr->addr1, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
121
entry = libipw_frag_cache_find(ieee, seq, frag, hdr->addr2,
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
122
hdr->addr1);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
134
struct libipw_hdr_4addr *hdr)
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
140
sc = le16_to_cpu(hdr->seq_ctl);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
143
entry = libipw_frag_cache_find(ieee, seq, -1, hdr->addr2,
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
144
hdr->addr1);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
229
struct libipw_hdr_3addr *hdr;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
235
hdr = (struct libipw_hdr_3addr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
236
fc = le16_to_cpu(hdr->frame_ctl);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
241
ether_addr_equal(hdr->addr1, dev->dev_addr) &&
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
242
ether_addr_equal(hdr->addr3, dev->dev_addr)) {
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
246
ether_addr_equal(hdr->addr1, dev->dev_addr)) {
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
268
struct libipw_hdr_3addr *hdr;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
274
hdr = (struct libipw_hdr_3addr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
275
hdrlen = libipw_get_hdrlen(le16_to_cpu(hdr->frame_ctl));
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
282
hdr->addr2, res);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
300
struct libipw_hdr_3addr *hdr;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
306
hdr = (struct libipw_hdr_3addr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
307
hdrlen = libipw_get_hdrlen(le16_to_cpu(hdr->frame_ctl));
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
314
" (SA=%pM keyidx=%d)\n", ieee->dev->name, hdr->addr2,
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
329
struct libipw_hdr_4addr *hdr;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
349
hdr = (struct libipw_hdr_4addr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
355
fc = le16_to_cpu(hdr->frame_ctl);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
358
sc = le16_to_cpu(hdr->seq_ctl);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
36
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
37
u16 fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
396
libipw_spy_update(ieee->dev, hdr->addr2, &wstats);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
402
hostap_update_rx_stats(local->ap, hdr, rx_stats);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
412
can_be_decrypted = (is_multicast_ether_addr(hdr->addr1) ||
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
413
is_broadcast_ether_addr(hdr->addr2)) ?
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
438
if (is_unicast_ether_addr(hdr->addr1) || local->bcrx_sta_key)
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
439
(void)hostap_handle_sta_crypto(local, hdr, &crypt,
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
455
" (SA=%pM)\n", hdr->addr2);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
466
"from %pM\n", dev->name, hdr->addr2);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
490
memcpy(dst, hdr->addr1, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
491
memcpy(src, hdr->addr3, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
494
memcpy(dst, hdr->addr3, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
495
memcpy(src, hdr->addr2, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
500
memcpy(dst, hdr->addr3, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
501
memcpy(src, hdr->addr4, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
504
memcpy(dst, hdr->addr1, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
505
memcpy(src, hdr->addr2, ETH_ALEN);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
510
if (hostap_rx_frame_wds(ieee, hdr, fc, &wds))
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
520
ether_addr_equal(hdr->addr2, ieee->assoc_ap_addr)) {
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
570
hdr = (struct libipw_hdr_4addr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
577
struct sk_buff *frag_skb = libipw_frag_cache_get(ieee, hdr);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
597
libipw_frag_cache_invalidate(ieee, hdr);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
624
hdr = (struct libipw_hdr_4addr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
625
libipw_frag_cache_invalidate(ieee, hdr);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
634
hdr = (struct libipw_hdr_4addr *)skb->data;
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
643
hdr->addr2);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
652
hdr->addr2);
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
83
struct libipw_hdr_4addr *hdr)
drivers/net/wireless/intel/ipw2x00/libipw_rx.c
90
sc = le16_to_cpu(hdr->seq_ctl);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
1185
if (il->handlers[pkt->hdr.cmd]) {
drivers/net/wireless/intel/iwlegacy/3945-mac.c
1187
il_get_cmd_string(pkt->hdr.cmd), pkt->hdr.cmd);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
1188
il->isr_stats.handlers[pkt->hdr.cmd]++;
drivers/net/wireless/intel/iwlegacy/3945-mac.c
1189
il->handlers[pkt->hdr.cmd] (il, rxb);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
1193
i, il_get_cmd_string(pkt->hdr.cmd), pkt->hdr.cmd);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
295
il3945_fill_beacon_frame(struct il_priv *il, struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlegacy/3945-mac.c
305
memcpy(hdr, il->beacon_skb->data, il->beacon_skb->len);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
393
struct ieee80211_hdr *hdr, u8 std_id)
drivers/net/wireless/intel/iwlegacy/3945-mac.c
397
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlegacy/3945-mac.c
405
!(le16_to_cpu(hdr->seq_ctrl) & 0xf))
drivers/net/wireless/intel/iwlegacy/3945-mac.c
417
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
449
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlegacy/3945-mac.c
479
fc = hdr->frame_control;
drivers/net/wireless/intel/iwlegacy/3945-mac.c
497
D_DROP("Dropping - INVALID STATION: %pM\n", hdr->addr1);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
504
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
527
memset(&out_cmd->hdr, 0, sizeof(out_cmd->hdr));
drivers/net/wireless/intel/iwlegacy/3945-mac.c
536
out_cmd->hdr.cmd = C_TX;
drivers/net/wireless/intel/iwlegacy/3945-mac.c
537
out_cmd->hdr.sequence =
drivers/net/wireless/intel/iwlegacy/3945-mac.c
542
memcpy(tx_cmd->hdr, hdr, hdr_len);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
548
il3945_build_tx_cmd_basic(il, out_cmd, info, hdr, sta_id);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
550
il3945_hw_build_tx_cmd_rate(il, out_cmd, info, hdr, sta_id);
drivers/net/wireless/intel/iwlegacy/3945-mac.c
574
txcmd_phys = dma_map_single(&il->pci_dev->dev, &out_cmd->hdr, firstlen,
drivers/net/wireless/intel/iwlegacy/3945-mac.c
598
if (!ieee80211_has_morefrags(hdr->frame_control)) {
drivers/net/wireless/intel/iwlegacy/3945-mac.c
607
D_TX("sequence nr = 0X%x\n", le16_to_cpu(out_cmd->hdr.sequence));
drivers/net/wireless/intel/iwlegacy/3945-mac.c
610
il_print_hex_dump(il, IL_DL_TX, (u8 *) tx_cmd->hdr,
drivers/net/wireless/intel/iwlegacy/3945-mac.c
689
if (pkt->hdr.flags & IL_CMD_FAILED_MSK) {
drivers/net/wireless/intel/iwlegacy/3945.c
1692
if (pkt->hdr.flags & IL_CMD_FAILED_MSK) {
drivers/net/wireless/intel/iwlegacy/3945.c
301
u16 sequence = le16_to_cpu(pkt->hdr.sequence);
drivers/net/wireless/intel/iwlegacy/3945.c
469
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)IL_RX_DATA(pkt);
drivers/net/wireless/intel/iwlegacy/3945.c
474
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlegacy/3945.c
685
struct ieee80211_hdr *hdr, int sta_id)
drivers/net/wireless/intel/iwlegacy/3945.c
694
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlegacy/3945.h
162
hdr)->payload + \
drivers/net/wireless/intel/iwlegacy/3945.h
179
struct ieee80211_hdr *hdr, int left);
drivers/net/wireless/intel/iwlegacy/3945.h
219
struct ieee80211_hdr *hdr, int sta_id);
drivers/net/wireless/intel/iwlegacy/4965-calib.c
752
cmd.hdr.op_code = IL_PHY_CALIBRATE_DIFF_GAIN_CMD;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1388
(pkt->hdr.cmd == N_STATS)) {
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1487
struct ieee80211_hdr *hdr, u8 std_id)
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1489
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1498
!(le16_to_cpu(hdr->seq_ctrl) & 0xf))
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1513
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1650
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1679
fc = hdr->frame_control;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1700
D_DROP("Dropping - INVALID STATION: %pM\n", hdr->addr1);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1734
qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1742
hdr->seq_ctrl =
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1743
hdr->seq_ctrl & cpu_to_le16(IEEE80211_SCTL_FRAG);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1744
hdr->seq_ctrl |= cpu_to_le16(seq_number);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1776
memset(&out_cmd->hdr, 0, sizeof(out_cmd->hdr));
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1785
out_cmd->hdr.cmd = C_TX;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1786
out_cmd->hdr.sequence =
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1791
memcpy(tx_cmd->hdr, hdr, hdr_len);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1800
il4965_tx_cmd_build_basic(il, skb, tx_cmd, info, hdr, sta_id);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1822
txcmd_phys = dma_map_single(&il->pci_dev->dev, &out_cmd->hdr, firstlen,
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1846
if (!ieee80211_has_morefrags(hdr->frame_control)) {
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1865
D_TX("sequence nr = 0X%x\n", le16_to_cpu(out_cmd->hdr.sequence));
drivers/net/wireless/intel/iwlegacy/4965-mac.c
1868
il_print_hex_dump(il, IL_DL_TX, (u8 *) tx_cmd->hdr, hdr_len);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2446
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2449
il4965_non_agg_tx_status(il, hdr->addr1);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2460
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2478
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2479
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2608
il4965_get_ra_sta_id(struct il_priv *il, struct ieee80211_hdr *hdr)
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2613
u8 *da = ieee80211_get_DA(hdr);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2653
struct ieee80211_hdr *hdr = NULL;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2710
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2712
sc = le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2716
IEEE80211_SEQ_TO_SN(sc), hdr->seq_ctrl);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2761
u16 sequence = le16_to_cpu(pkt->hdr.sequence);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2766
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2789
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2790
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2791
qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
2795
sta_id = il4965_get_ra_sta_id(il, hdr);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
3735
il4965_fill_beacon_frame(struct il_priv *il, struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlegacy/4965-mac.c
3746
memcpy(hdr, il->beacon_skb->data, il->beacon_skb->len);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
4255
if (il->handlers[pkt->hdr.cmd]) {
drivers/net/wireless/intel/iwlegacy/4965-mac.c
4257
il_get_cmd_string(pkt->hdr.cmd), pkt->hdr.cmd);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
4258
il->isr_stats.handlers[pkt->hdr.cmd]++;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
4259
il->handlers[pkt->hdr.cmd] (il, rxb);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
4263
i, il_get_cmd_string(pkt->hdr.cmd), pkt->hdr.cmd);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
565
il4965_pass_packet_to_mac80211(struct il_priv *il, struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlegacy/4965-mac.c
570
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlegacy/4965-mac.c
585
il_set_decrypted_flag(il, hdr, ampdu_status, stats))
drivers/net/wireless/intel/iwlegacy/4965-mac.c
595
skb_put_data(skb, hdr, len);
drivers/net/wireless/intel/iwlegacy/4965-mac.c
597
skb_add_rx_frag(skb, 0, rxb->page, (void *)hdr - rxb_addr(rxb),
drivers/net/wireless/intel/iwlegacy/4965-mac.c
633
if (pkt->hdr.cmd == N_RX) {
drivers/net/wireless/intel/iwlegacy/4965-rs.c
1726
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlegacy/4965-rs.c
1753
if (!ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/intel/iwlegacy/4965-rs.c
1759
tid = il4965_rs_tl_add_packet(lq_sta, hdr);
drivers/net/wireless/intel/iwlegacy/4965-rs.c
1792
rate_mask = il4965_rs_get_supported_rates(lq_sta, hdr, tbl->lq_type);
drivers/net/wireless/intel/iwlegacy/4965-rs.c
250
il4965_rs_tl_add_packet(struct il_lq_sta *lq_data, struct ieee80211_hdr *hdr)
drivers/net/wireless/intel/iwlegacy/4965-rs.c
258
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/intel/iwlegacy/4965-rs.c
259
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlegacy/4965-rs.c
637
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlegacy/4965-rs.c
794
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlegacy/4965-rs.c
813
if (!ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/intel/iwlegacy/4965.c
541
cmd.hdr.op_code = IL_PHY_CALIBRATE_DIFF_GAIN_CMD;
drivers/net/wireless/intel/iwlegacy/commands.h
1161
__struct_group(il3945_rx_frame_stats_hdr, hdr, __packed,
drivers/net/wireless/intel/iwlegacy/commands.h
1176
__struct_group(il3945_rx_frame_hdr_hdr, hdr, __packed,
drivers/net/wireless/intel/iwlegacy/commands.h
1204
struct il3945_rx_frame_hdr_hdr hdr;
drivers/net/wireless/intel/iwlegacy/commands.h
1421
struct ieee80211_hdr hdr[];
drivers/net/wireless/intel/iwlegacy/commands.h
1423
static_assert(offsetof(struct il3945_tx_cmd, hdr) == sizeof(struct il3945_tx_cmd_hdr),
drivers/net/wireless/intel/iwlegacy/commands.h
1527
struct ieee80211_hdr hdr[];
drivers/net/wireless/intel/iwlegacy/commands.h
1529
static_assert(offsetof(struct il_tx_cmd, hdr) == sizeof(struct il_tx_cmd_hdr),
drivers/net/wireless/intel/iwlegacy/commands.h
3312
struct il_calib_hdr hdr;
drivers/net/wireless/intel/iwlegacy/commands.h
3362
struct il_cmd_header hdr;
drivers/net/wireless/intel/iwlegacy/common.c
1764
if (pkt->hdr.flags & IL_CMD_FAILED_MSK) {
drivers/net/wireless/intel/iwlegacy/common.c
1765
IL_ERR("Bad return from C_ADD_STA (0x%08X)\n", pkt->hdr.flags);
drivers/net/wireless/intel/iwlegacy/common.c
2111
if (pkt->hdr.flags & IL_CMD_FAILED_MSK) {
drivers/net/wireless/intel/iwlegacy/common.c
2112
IL_ERR("Bad return from C_REM_STA (0x%08X)\n", pkt->hdr.flags);
drivers/net/wireless/intel/iwlegacy/common.c
244
if (pkt->hdr.flags & IL_CMD_FAILED_MSK) {
drivers/net/wireless/intel/iwlegacy/common.c
246
il_get_cmd_string(cmd->hdr.cmd), pkt->hdr.flags);
drivers/net/wireless/intel/iwlegacy/common.c
250
switch (cmd->hdr.cmd) {
drivers/net/wireless/intel/iwlegacy/common.c
254
il_get_cmd_string(cmd->hdr.cmd), pkt->hdr.flags);
drivers/net/wireless/intel/iwlegacy/common.c
257
D_HC("back from %s (0x%08X)\n", il_get_cmd_string(cmd->hdr.cmd),
drivers/net/wireless/intel/iwlegacy/common.c
258
pkt->hdr.flags);
drivers/net/wireless/intel/iwlegacy/common.c
2656
il_set_decrypted_flag(struct il_priv *il, struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlegacy/common.c
2659
u16 fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/intel/iwlegacy/common.c
3127
fix_size = (u16) (cmd->len + sizeof(out_cmd->hdr));
drivers/net/wireless/intel/iwlegacy/common.c
3180
out_cmd->hdr.cmd = cmd->id;
drivers/net/wireless/intel/iwlegacy/common.c
3186
out_cmd->hdr.flags = 0;
drivers/net/wireless/intel/iwlegacy/common.c
3187
out_cmd->hdr.sequence =
drivers/net/wireless/intel/iwlegacy/common.c
3190
out_cmd->hdr.sequence |= SEQ_HUGE_FRAME;
drivers/net/wireless/intel/iwlegacy/common.c
3193
switch (out_cmd->hdr.cmd) {
drivers/net/wireless/intel/iwlegacy/common.c
3198
il_get_cmd_string(out_cmd->hdr.cmd), out_cmd->hdr.cmd,
drivers/net/wireless/intel/iwlegacy/common.c
3199
le16_to_cpu(out_cmd->hdr.sequence), fix_size,
drivers/net/wireless/intel/iwlegacy/common.c
3205
il_get_cmd_string(out_cmd->hdr.cmd), out_cmd->hdr.cmd,
drivers/net/wireless/intel/iwlegacy/common.c
3206
le16_to_cpu(out_cmd->hdr.sequence), fix_size, q->write_ptr,
drivers/net/wireless/intel/iwlegacy/common.c
3211
phys_addr = dma_map_single(&il->pci_dev->dev, &out_cmd->hdr, fix_size,
drivers/net/wireless/intel/iwlegacy/common.c
3283
u16 sequence = le16_to_cpu(pkt->hdr.sequence);
drivers/net/wireless/intel/iwlegacy/common.c
3287
bool huge = !!(pkt->hdr.sequence & SEQ_HUGE_FRAME);
drivers/net/wireless/intel/iwlegacy/common.c
3328
il_get_cmd_string(cmd->hdr.cmd));
drivers/net/wireless/intel/iwlegacy/common.c
4433
il_get_cmd_string(pkt->hdr.cmd));
drivers/net/wireless/intel/iwlegacy/common.h
1713
int il_set_decrypted_flag(struct il_priv *il, struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlegacy/common.h
1986
return !(pkt->hdr.sequence & SEQ_RX_FRAME) &&
drivers/net/wireless/intel/iwlegacy/common.h
1987
pkt->hdr.cmd != N_STATS && pkt->hdr.cmd != C_TX &&
drivers/net/wireless/intel/iwlegacy/common.h
1988
pkt->hdr.cmd != N_RX_PHY && pkt->hdr.cmd != N_RX &&
drivers/net/wireless/intel/iwlegacy/common.h
1989
pkt->hdr.cmd != N_RX_MPDU && pkt->hdr.cmd != N_COMPRESSED_BA;
drivers/net/wireless/intel/iwlegacy/common.h
550
struct il_cmd_header hdr; /* uCode API */
drivers/net/wireless/intel/iwlegacy/common.h
569
struct il_cmd_header hdr; /* uCode API */
drivers/net/wireless/intel/iwlwifi/dvm/agn.h
56
static inline void iwl_set_calib_hdr(struct iwl_calib_hdr *hdr, u8 cmd)
drivers/net/wireless/intel/iwlwifi/dvm/agn.h
58
hdr->op_code = cmd;
drivers/net/wireless/intel/iwlwifi/dvm/agn.h
59
hdr->first_group = 0;
drivers/net/wireless/intel/iwlwifi/dvm/agn.h
60
hdr->groups_num = 1;
drivers/net/wireless/intel/iwlwifi/dvm/agn.h
61
hdr->data_valid = 1;
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
50
ret, res->cmd.hdr.op_code);
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
74
if (tmp->cmd.hdr.op_code == res->cmd.hdr.op_code) {
drivers/net/wireless/intel/iwlwifi/dvm/calib.c
869
iwl_set_calib_hdr(&cmd.hdr,
drivers/net/wireless/intel/iwlwifi/dvm/commands.h
1260
struct ieee80211_hdr hdr[];
drivers/net/wireless/intel/iwlwifi/dvm/commands.h
1262
static_assert(offsetof(struct iwl_tx_cmd, hdr) == sizeof(struct iwl_tx_cmd_hdr),
drivers/net/wireless/intel/iwlwifi/dvm/commands.h
3145
struct iwl_calib_hdr hdr;
drivers/net/wireless/intel/iwlwifi/dvm/commands.h
3150
struct iwl_calib_hdr hdr;
drivers/net/wireless/intel/iwlwifi/dvm/commands.h
3158
struct iwl_calib_hdr hdr;
drivers/net/wireless/intel/iwlwifi/dvm/commands.h
3164
struct iwl_calib_hdr hdr;
drivers/net/wireless/intel/iwlwifi/dvm/commands.h
3173
struct iwl_calib_hdr hdr;
drivers/net/wireless/intel/iwlwifi/dvm/commands.h
3179
struct iwl_calib_hdr hdr;
drivers/net/wireless/intel/iwlwifi/dvm/eeprom.c
221
const struct iwl_eeprom_calib_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/dvm/eeprom.c
223
hdr = iwl_eeprom_query_addr(eeprom, eeprom_size, EEPROM_CALIB_ALL);
drivers/net/wireless/intel/iwlwifi/dvm/eeprom.c
224
if (!hdr)
drivers/net/wireless/intel/iwlwifi/dvm/eeprom.c
226
data->calib_version = hdr->version;
drivers/net/wireless/intel/iwlwifi/dvm/eeprom.c
227
data->calib_voltage = hdr->voltage;
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
2165
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
2194
if (!ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
2200
tid = rs_tl_add_packet(lq_sta, hdr);
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
2235
rate_mask = rs_get_supported_rates(lq_sta, hdr, tbl->lq_type);
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
249
struct ieee80211_hdr *hdr)
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
257
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
258
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
678
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
854
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/dvm/rs.c
876
if (!ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
1011
if (priv->rx_handlers[pkt->hdr.cmd]) {
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
1012
priv->rx_handlers_stats[pkt->hdr.cmd]++;
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
1013
priv->rx_handlers[pkt->hdr.cmd](priv, rxb);
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
1018
WIDE_ID(0, pkt->hdr.cmd)),
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
1019
pkt->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
435
(pkt->hdr.cmd == STATISTICS_NOTIFICATION)) {
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
555
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
559
u16 fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
605
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
612
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
625
iwlagn_set_decrypted_flag(priv, hdr, ampdu_status, stats))
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
640
hdrlen = (len <= skb_tailroom(skb)) ? len : sizeof(*hdr);
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
642
skb_put_data(skb, hdr, hdrlen);
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
646
int offset = (u8 *)hdr + hdrlen -
drivers/net/wireless/intel/iwlwifi/dvm/rx.c
662
if (!ether_addr_equal(hdr->addr3,
drivers/net/wireless/intel/iwlwifi/dvm/rxon.c
1370
iwl_set_calib_hdr(&cmd.hdr,
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
1114
u16 sequence = le16_to_cpu(pkt->hdr.sequence);
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
1118
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
1181
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
1183
if (!ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
1222
iwlagn_non_agg_tx_status(priv, ctx, hdr->addr1);
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
1356
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
1359
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
264
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
285
fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
304
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
318
hdr->addr1);
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
349
dev_cmd->hdr.cmd = REPLY_TX;
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
360
iwlagn_tx_cmd_build_basic(priv, skb, tx_cmd, info, hdr, sta_id);
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
376
qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
404
hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG);
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
405
hdr->seq_ctrl |= cpu_to_le16(seq_number);
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
414
memcpy(tx_cmd->hdr, hdr, hdr_len);
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
425
hdr->frame_control |=
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
47
struct ieee80211_hdr *hdr, u8 sta_id)
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
49
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/dvm/tx.c
77
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlwifi/dvm/ucode.c
35
iwl_set_calib_hdr(&cmd.hdr, IWL_PHY_CALIBRATE_CRYSTAL_FRQ_CMD);
drivers/net/wireless/intel/iwlwifi/dvm/ucode.c
357
if (pkt->hdr.cmd != CALIBRATION_RES_NOTIFICATION) {
drivers/net/wireless/intel/iwlwifi/dvm/ucode.c
358
WARN_ON(pkt->hdr.cmd != CALIBRATION_COMPLETE_NOTIFICATION);
drivers/net/wireless/intel/iwlwifi/dvm/ucode.c
366
cmd->hdr.op_code);
drivers/net/wireless/intel/iwlwifi/dvm/ucode.c
46
iwl_set_calib_hdr(&cmd.hdr, IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD);
drivers/net/wireless/intel/iwlwifi/dvm/ucode.c
61
iwl_set_calib_hdr(&cmd.hdr, IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD);
drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h
181
struct iwl_fw_ini_header hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h
211
struct iwl_fw_ini_header hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h
227
struct iwl_fw_ini_header hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h
254
struct iwl_fw_ini_header hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h
278
struct iwl_fw_ini_header hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/dbg-tlv.h
306
struct iwl_fw_ini_header hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h
523
struct iwl_bios_config_hdr hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/stats.h
1051
struct iwl_statistics_ntfy_hdr hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/stats.h
654
struct iwl_statistics_ntfy_hdr hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/stats.h
690
struct iwl_statistics_ntfy_hdr hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/stats.h
772
struct iwl_statistics_ntfy_hdr hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/stats.h
822
struct iwl_statistics_ntfy_hdr hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/stats.h
853
struct iwl_statistics_ntfy_hdr hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/stats.h
941
struct iwl_statistics_ntfy_hdr hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/stats.h
991
struct iwl_statistics_ntfy_hdr hdr;
drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
256
struct ieee80211_hdr hdr[];
drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
282
struct ieee80211_hdr hdr[];
drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
305
struct ieee80211_hdr hdr[];
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
1719
memcpy(&range->fw_pkt_hdr, &pkt->hdr, sizeof(range->fw_pkt_hdr));
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
2273
if (le32_to_cpu(reg->hdr.version) >= 2) {
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
2760
struct iwl_fw_ini_dump_file_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
2767
entry = vzalloc(sizeof(*entry) + sizeof(*hdr));
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
2771
entry->size = sizeof(*hdr);
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
2779
hdr = (void *)entry->data;
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
2780
hdr->barker = cpu_to_le32(IWL_FW_INI_ERROR_DUMP_BARKER);
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
2781
hdr->file_len = cpu_to_le32(size + entry->size);
drivers/net/wireless/intel/iwlwifi/fw/dbg.c
2785
return le32_to_cpu(hdr->file_len);
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
44
u16 rec_id = WIDE_ID(pkt->hdr.group_id,
drivers/net/wireless/intel/iwlwifi/fw/notif-wait.c
45
pkt->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/fw/regulatory.c
379
cmd->v7.ppag_config_info.hdr.table_source =
drivers/net/wireless/intel/iwlwifi/fw/regulatory.c
381
cmd->v7.ppag_config_info.hdr.table_revision =
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
1185
if (pkt && (pkt->hdr.cmd == wanted_hdr->cmd &&
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
1186
pkt->hdr.group_id == wanted_hdr->group_id)) {
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
205
if (le32_to_cpu(reg->hdr.version) >= 2)
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
328
const struct iwl_fw_ini_header *hdr = (const void *)&tlv->data[0];
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
334
if (le32_to_cpu(tlv->length) < sizeof(*hdr))
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
339
domain = le32_to_cpu(hdr->domain);
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
356
le32_to_cpu(hdr->version));
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
87
const struct iwl_fw_ini_header *hdr = (const void *)&tlv->data[0];
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c
90
u32 ver = le32_to_cpu(hdr->version);
drivers/net/wireless/intel/iwlwifi/iwl-devtrace-iwlwifi.h
21
struct iwl_cmd_header_wide *hdr),
drivers/net/wireless/intel/iwlwifi/iwl-devtrace-iwlwifi.h
22
TP_ARGS(dev, cmd, total_size, hdr),
drivers/net/wireless/intel/iwlwifi/iwl-devtrace-iwlwifi.h
31
if (hdr->group_id)
drivers/net/wireless/intel/iwlwifi/iwl-devtrace-iwlwifi.h
36
memcpy(__get_dynamic_array(hcmd), hdr, offset);
drivers/net/wireless/intel/iwlwifi/iwl-devtrace-iwlwifi.h
65
__entry->cmd = WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h
19
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h
20
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h
54
struct ieee80211_hdr *hdr = NULL;
drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h
66
hdr = (void *)((u8 *)cmd + hdr_offset);
drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h
67
if (!ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h
72
ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/iwl-trans.h
101
return iwl_rx_packet_len(pkt) - sizeof(pkt->hdr);
drivers/net/wireless/intel/iwlwifi/iwl-trans.h
138
struct iwl_cmd_header hdr; /* uCode API */
drivers/net/wireless/intel/iwlwifi/iwl-trans.h
158
struct iwl_cmd_header hdr;
drivers/net/wireless/intel/iwlwifi/iwl-trans.h
90
struct iwl_cmd_header hdr;
drivers/net/wireless/intel/iwlwifi/iwl-utils.c
18
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/iwl-utils.c
24
bool qos = ieee80211_is_data_qos(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1028
le16_to_cpu(hdr->type), len);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1063
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/main.c
1071
while (valid_rx_sz >= sizeof(hdr)) {
drivers/net/wireless/intel/iwlwifi/mei/main.c
1077
iwl_mei_read_from_q(q_head, q_sz, &rd, wr, &hdr, sizeof(hdr));
drivers/net/wireless/intel/iwlwifi/mei/main.c
1078
valid_rx_sz -= sizeof(hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1079
len = le16_to_cpu(hdr.len);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1096
if (le16_to_cpu(hdr.type) != SAP_MSG_DATA_PACKET) {
drivers/net/wireless/intel/iwlwifi/mei/main.c
1098
le16_to_cpu(hdr.type), len);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1137
struct iwl_sap_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/mei/main.c
1142
hdr = page_address(p);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1144
while (valid_rx_sz >= sizeof(*hdr)) {
drivers/net/wireless/intel/iwlwifi/mei/main.c
1147
iwl_mei_read_from_q(q_head, q_sz, &rd, wr, hdr, sizeof(*hdr));
drivers/net/wireless/intel/iwlwifi/mei/main.c
1148
valid_rx_sz -= sizeof(*hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1149
len = le16_to_cpu(hdr->len);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1154
iwl_mei_read_from_q(q_head, q_sz, &rd, wr, hdr + 1, len);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1156
trace_iwlmei_sap_cmd(hdr, false);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1157
iwl_mei_handle_sap_msg(cldev, hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1270
struct iwl_sap_me_msg_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/mei/main.c
1285
hdr = (void *)msg;
drivers/net/wireless/intel/iwlwifi/mei/main.c
1286
trace_iwlmei_me_msg(hdr, false);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1288
switch (le32_to_cpu(hdr->type)) {
drivers/net/wireless/intel/iwlwifi/mei/main.c
1300
le32_to_cpu(hdr->type));
drivers/net/wireless/intel/iwlwifi/mei/main.c
1309
.hdr.type = cpu_to_le32(SAP_ME_MSG_START),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1310
.hdr.seq_num = cpu_to_le32(atomic_inc_return(&mei->seq_no)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1311
.hdr.len = cpu_to_le32(sizeof(msg)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1318
trace_iwlmei_me_msg(&msg.hdr, true);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1404
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_PLDR),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1405
.hdr.len = cpu_to_le16(sizeof(msg) - sizeof(msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1430
ret = iwl_mei_send_sap_msg_payload(mei->cldev, &msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1509
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_PLDR_END),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1510
.hdr.len = cpu_to_le16(sizeof(msg) - sizeof(msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1526
iwl_mei_send_sap_msg_payload(mei->cldev, &msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1536
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_HOST_LINK_UP),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1537
.hdr.len = cpu_to_le16(sizeof(msg) - sizeof(msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1570
iwl_mei_send_sap_msg_payload(mei->cldev, &msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1584
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_HOST_LINK_DOWN),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1585
.hdr.len = cpu_to_le16(sizeof(msg) - sizeof(msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1599
iwl_mei_send_sap_msg_payload(mei->cldev, &msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1613
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_RADIO_STATE),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1614
.hdr.len = cpu_to_le16(sizeof(msg) - sizeof(msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1635
iwl_mei_send_sap_msg_payload(mei->cldev, &msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1647
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_NIC_INFO),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1648
.hdr.len = cpu_to_le16(sizeof(msg) - sizeof(msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1664
iwl_mei_send_sap_msg_payload(mei->cldev, &msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1677
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_COUNTRY_CODE),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1678
.hdr.len = cpu_to_le16(sizeof(msg) - sizeof(msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1692
iwl_mei_send_sap_msg_payload(mei->cldev, &msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
1704
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_SAR_LIMITS),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1705
.hdr.len = cpu_to_le16(sizeof(msg) - sizeof(msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
1720
iwl_mei_send_sap_msg_payload(mei->cldev, &msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
334
const struct iwl_sap_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mei/main.c
340
size_t tx_sz = sizeof(*hdr) + le16_to_cpu(hdr->len);
drivers/net/wireless/intel/iwlwifi/mei/main.c
358
memcpy(q_head + wr, hdr, tx_sz);
drivers/net/wireless/intel/iwlwifi/mei/main.c
360
memcpy(q_head + wr, hdr, q_sz - wr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
361
memcpy(q_head, (const u8 *)hdr + q_sz - wr, tx_sz - (q_sz - wr));
drivers/net/wireless/intel/iwlwifi/mei/main.c
387
.hdr.type = cpu_to_le32(SAP_ME_MSG_CHECK_SHARED_AREA),
drivers/net/wireless/intel/iwlwifi/mei/main.c
388
.hdr.seq_num = cpu_to_le32(atomic_inc_return(&mei->seq_no)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
397
trace_iwlmei_me_msg(&msg.hdr, true);
drivers/net/wireless/intel/iwlwifi/mei/main.c
430
struct iwl_sap_hdr *hdr)
drivers/net/wireless/intel/iwlwifi/mei/main.c
453
hdr->seq_num = cpu_to_le32(atomic_inc_return(&mei->sap_seq_no));
drivers/net/wireless/intel/iwlwifi/mei/main.c
454
dev_dbg(&cldev->dev, "Sending %d\n", hdr->type);
drivers/net/wireless/intel/iwlwifi/mei/main.c
460
ret = iwl_mei_write_cyclic_buf(q_head, notif_q, q_head, hdr, q_sz);
drivers/net/wireless/intel/iwlwifi/mei/main.c
465
trace_iwlmei_sap_cmd(hdr, true);
drivers/net/wireless/intel/iwlwifi/mei/main.c
543
cb_hdr->hdr.type = cpu_to_le16(SAP_MSG_CB_DATA_PACKET);
drivers/net/wireless/intel/iwlwifi/mei/main.c
544
cb_hdr->hdr.len = cpu_to_le16(skb->len - sizeof(cb_hdr->hdr));
drivers/net/wireless/intel/iwlwifi/mei/main.c
545
cb_hdr->hdr.seq_num = cpu_to_le32(atomic_inc_return(&mei->sap_seq_no));
drivers/net/wireless/intel/iwlwifi/mei/main.c
550
struct iwl_sap_hdr *hdr = skb_push(skb, sizeof(*hdr));
drivers/net/wireless/intel/iwlwifi/mei/main.c
552
hdr->type = cpu_to_le16(SAP_MSG_DATA_PACKET);
drivers/net/wireless/intel/iwlwifi/mei/main.c
553
hdr->len = cpu_to_le16(skb->len - sizeof(*hdr));
drivers/net/wireless/intel/iwlwifi/mei/main.c
554
hdr->seq_num = cpu_to_le32(atomic_inc_return(&mei->sap_seq_no));
drivers/net/wireless/intel/iwlwifi/mei/main.c
761
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_HOST_LINK_UP),
drivers/net/wireless/intel/iwlwifi/mei/main.c
762
.hdr.len = cpu_to_le16(sizeof(link_msg) - sizeof(link_msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
765
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_COUNTRY_CODE),
drivers/net/wireless/intel/iwlwifi/mei/main.c
766
.hdr.len = cpu_to_le16(sizeof(mcc_msg) - sizeof(mcc_msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
770
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_SAR_LIMITS),
drivers/net/wireless/intel/iwlwifi/mei/main.c
771
.hdr.len = cpu_to_le16(sizeof(sar_msg) - sizeof(sar_msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
774
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_NIC_INFO),
drivers/net/wireless/intel/iwlwifi/mei/main.c
775
.hdr.len = cpu_to_le16(sizeof(nic_info_msg) - sizeof(nic_info_msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
778
.hdr.type = cpu_to_le16(SAP_MSG_NOTIF_RADIO_STATE),
drivers/net/wireless/intel/iwlwifi/mei/main.c
779
.hdr.len = cpu_to_le16(sizeof(rfkill_msg) - sizeof(rfkill_msg.hdr)),
drivers/net/wireless/intel/iwlwifi/mei/main.c
794
iwl_mei_send_sap_msg_payload(mei->cldev, &link_msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
797
iwl_mei_send_sap_msg_payload(mei->cldev, &mcc_msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
802
iwl_mei_send_sap_msg_payload(mei->cldev, &sar_msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
810
iwl_mei_send_sap_msg_payload(mei->cldev, &nic_info_msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
813
iwl_mei_send_sap_msg_payload(mei->cldev, &rfkill_msg.hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
940
const struct iwl_sap_hdr *hdr)
drivers/net/wireless/intel/iwlwifi/mei/main.c
946
const struct iwl_sap_hdr *hdr)
drivers/net/wireless/intel/iwlwifi/mei/main.c
948
u16 len = le16_to_cpu(hdr->len) + sizeof(*hdr);
drivers/net/wireless/intel/iwlwifi/mei/main.c
949
u16 type = le16_to_cpu(hdr->type);
drivers/net/wireless/intel/iwlwifi/mei/main.c
953
le16_to_cpu(hdr->type), len,
drivers/net/wireless/intel/iwlwifi/mei/main.c
954
le32_to_cpu(hdr->seq_num));
drivers/net/wireless/intel/iwlwifi/mei/main.c
961
le16_to_cpu(hdr->type), \
drivers/net/wireless/intel/iwlwifi/mei/main.c
967
_handler(cldev, (const void *)hdr); \
drivers/net/wireless/intel/iwlwifi/mei/main.c
976
le16_to_cpu(hdr->type), \
drivers/net/wireless/intel/iwlwifi/mei/main.c
981
_handler(cldev, (const void *)hdr); \
drivers/net/wireless/intel/iwlwifi/mei/main.c
989
le16_to_cpu(hdr->type), \
drivers/net/wireless/intel/iwlwifi/mei/net.c
373
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/mei/net.c
395
hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mei/net.c
397
memcpy(ethhdr.h_dest, ieee80211_get_DA(hdr), ETH_ALEN);
drivers/net/wireless/intel/iwlwifi/mei/net.c
398
memcpy(ethhdr.h_source, ieee80211_get_SA(hdr), ETH_ALEN);
drivers/net/wireless/intel/iwlwifi/mei/net.c
404
pskb_pull(skb, ieee80211_hdrlen(hdr->frame_control) + ivlen + 6);
drivers/net/wireless/intel/iwlwifi/mei/sap.h
160
struct iwl_sap_me_msg_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
179
struct iwl_sap_me_msg_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
316
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
399
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
442
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
460
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
490
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
504
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
515
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
525
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
551
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
713
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
733
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
747
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
768
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/sap.h
779
struct iwl_sap_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mei/trace.h
47
TP_PROTO(const struct iwl_sap_me_msg_hdr *hdr, bool tx),
drivers/net/wireless/intel/iwlwifi/mei/trace.h
48
TP_ARGS(hdr, tx),
drivers/net/wireless/intel/iwlwifi/mei/trace.h
55
__entry->type = le32_to_cpu(hdr->type);
drivers/net/wireless/intel/iwlwifi/mei/trace.h
56
__entry->seq_num = le32_to_cpu(hdr->seq_num);
drivers/net/wireless/intel/iwlwifi/mld/agg.c
193
struct ieee80211_hdr *hdr = (void *)skb_mac_header(skb);
drivers/net/wireless/intel/iwlwifi/mld/agg.c
201
u8 tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mld/agg.c
225
if (!ieee80211_is_data_qos(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mld/agg.c
226
is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/intel/iwlwifi/mld/agg.c
229
if (unlikely(!ieee80211_is_data_present(hdr->frame_control)))
drivers/net/wireless/intel/iwlwifi/mld/d3.c
1275
switch (WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd)) {
drivers/net/wireless/intel/iwlwifi/mld/d3.c
712
const struct ieee80211_hdr *hdr = (const void *)pktdata;
drivers/net/wireless/intel/iwlwifi/mld/d3.c
715
if (ieee80211_is_data(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mld/d3.c
716
int hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
248
switch (resp->tas_config_info.hdr.table_source) {
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
264
resp->tas_config_info.hdr.table_source);
drivers/net/wireless/intel/iwlwifi/mld/debugfs.c
270
resp->tas_config_info.hdr.table_revision,
drivers/net/wireless/intel/iwlwifi/mld/low_latency.c
236
static bool iwl_mld_is_vo_vi_pkt(struct ieee80211_hdr *hdr)
drivers/net/wireless/intel/iwlwifi/mld/low_latency.c
250
if (!hdr || !ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mld/low_latency.c
253
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mld/low_latency.c
261
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/low_latency.c
282
if (!iwl_mld_is_vo_vi_pkt(hdr))
drivers/net/wireless/intel/iwlwifi/mld/low_latency.h
62
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
518
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
525
if (ieee80211_is_mgmt(hdr->frame_control) && sta &&
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
527
!ieee80211_is_probe_resp(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mld/mac80211.c
540
mgmt = (void *)hdr;
drivers/net/wireless/intel/iwlwifi/mld/mld.h
521
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/notif.c
539
WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd)),
drivers/net/wireless/intel/iwlwifi/mld/notif.c
540
pkt->hdr.group_id, pkt->hdr.cmd,
drivers/net/wireless/intel/iwlwifi/mld/notif.c
541
le16_to_cpu(pkt->hdr.sequence));
drivers/net/wireless/intel/iwlwifi/mld/notif.c
554
if (rx_h->cmd_id != WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd))
drivers/net/wireless/intel/iwlwifi/mld/notif.c
599
u16 cmd_id = WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/mld/notif.c
621
u16 cmd_id = WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/mld/regulatory.c
168
.v7.ppag_config_info.hdr.table_source = fwrt->ppag_bios_source,
drivers/net/wireless/intel/iwlwifi/mld/regulatory.c
169
.v7.ppag_config_info.hdr.table_revision = fwrt->ppag_bios_rev,
drivers/net/wireless/intel/iwlwifi/mld/regulatory.c
424
cmd.tas_config_info.hdr.table_source = data.table_source;
drivers/net/wireless/intel/iwlwifi/mld/regulatory.c
425
cmd.tas_config_info.hdr.table_revision = data.table_revision;
drivers/net/wireless/intel/iwlwifi/mld/rx.c
138
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
144
if (unlikely(!hdr || link_id < 0))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
147
if (likely(!ieee80211_is_beacon(hdr->frame_control)))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1494
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1502
iwl_mld_fill_signal(mld, link_id, hdr, rx_status, phy_data);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1545
struct ieee80211_hdr *hdr, u16 len,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1551
unsigned int hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1597
skb_put_data(skb, hdr, hdrlen);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1598
skb_put_data(skb, (u8 *)hdr + hdrlen + pad_len, headlen - hdrlen);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1602
u8 hdr[6];
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1604
} __packed *shdr = (void *)((u8 *)hdr + hdrlen + pad_len);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1607
!ether_addr_equal(shdr->hdr, rfc1042_header) ||
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1620
int offset = (u8 *)hdr + headlen + pad_len -
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1636
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1657
if (ieee80211_is_ctl(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1658
ieee80211_is_any_nullfunc(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1659
is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1662
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1664
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1682
if (unlikely(ieee80211_has_retry(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1683
dup_data->last_seq[tid] == hdr->seq_ctrl &&
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1688
if (dup_data->last_seq[tid] == hdr->seq_ctrl &&
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1692
dup_data->last_seq[tid] = hdr->seq_ctrl;
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1732
iwl_mld_rx_with_sta(struct iwl_mld *mld, struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1754
} else if (!is_multicast_ether_addr(hdr->addr2)) {
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1758
sta = ieee80211_find_sta_by_ifaddr(mld->hw, hdr->addr2, NULL);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1773
if (ieee80211_is_data(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1781
if (iwl_mld_is_dup(mld, sta, hdr, mpdu_desc, rx_status, queue)) {
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1783
le16_to_cpu(hdr->seq_ctrl));
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1793
if (link_sta && ieee80211_is_data(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1801
if (!is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1802
iwl_mld_low_latency_update_counters(mld, hdr, sta,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1810
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1821
const u8 *frame = (void *)hdr;
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1836
if (!ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
185
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1901
cfg80211_rx_unprot_mlme_mgmt(wdev->netdev, (void *)hdr,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1909
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1916
if (unlikely(ieee80211_is_mgmt(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1917
!ieee80211_has_protected(hdr->frame_control)))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1918
return iwl_mld_rx_mgmt_prot(sta, hdr, rx_status, status,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
1921
if (!ieee80211_has_protected(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mld/rx.c
201
if (iwl_mld_used_average_energy(mld, link_id, hdr, rx_status))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2027
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2067
hdr = (void *)(pkt->data + mpdu_desc_size);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2089
sta = iwl_mld_rx_with_sta(mld, hdr, skb, mpdu_desc, pkt, queue, &drop);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2115
if (!queue && unlikely(ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2116
ieee80211_is_probe_resp(hdr->frame_control))) {
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2128
iwl_mld_rx_fill_status(mld, link_id, hdr, skb, &phy_data);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2130
if (iwl_mld_rx_crypto(mld, sta, hdr, rx_status, mpdu_desc, queue,
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2134
if (iwl_mld_build_rx_skb(mld, skb, hdr, mpdu_len, crypto_len, rxb))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
2140
if (iwl_mld_time_sync_frame(mld, skb, hdr->addr2))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
53
struct ieee80211_hdr *hdr = (void *)skb_mac_header(skb);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
67
if (queue == 0 || !ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mld/rx.c
68
is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
83
extiv = (u8 *)hdr + ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mld/rx.c
90
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mld/rx.c
91
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mld/stats.c
84
u16 cmd = WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/mld/tests/agg.c
506
struct ieee80211_hdr hdr = {
drivers/net/wireless/intel/iwlwifi/mld/tests/agg.c
515
if (ieee80211_is_data_qos(hdr.frame_control)) {
drivers/net/wireless/intel/iwlwifi/mld/tests/agg.c
516
u8 *qc = ieee80211_get_qos_ctl(&hdr);
drivers/net/wireless/intel/iwlwifi/mld/tests/agg.c
522
hdr.addr1[0] = 0x1;
drivers/net/wireless/intel/iwlwifi/mld/tests/agg.c
525
skb_put_data(skb, &hdr, ieee80211_hdrlen(hdr.frame_control));
drivers/net/wireless/intel/iwlwifi/mld/tests/agg.c
643
struct ieee80211_hdr *hdr = (void *)skb_mac_header(skb);
drivers/net/wireless/intel/iwlwifi/mld/tests/agg.c
645
KUNIT_ASSERT_EQ(test, le16_to_cpu(hdr->seq_ctrl),
drivers/net/wireless/intel/iwlwifi/mld/tests/rx.c
293
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mld/tests/rx.c
299
hdr->frame_control = param->rx_pkt.fc;
drivers/net/wireless/intel/iwlwifi/mld/tests/rx.c
300
hdr->seq_ctrl = param->rx_pkt.seq;
drivers/net/wireless/intel/iwlwifi/mld/tests/rx.c
302
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mld/tests/rx.c
303
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlwifi/mld/tests/rx.c
309
hdr->addr1[0] = 0x1;
drivers/net/wireless/intel/iwlwifi/mld/tests/rx.c
326
struct ieee80211_hdr hdr;
drivers/net/wireless/intel/iwlwifi/mld/tests/rx.c
333
setup_rx_pkt(param, &hdr, &mpdu_desc);
drivers/net/wireless/intel/iwlwifi/mld/tests/rx.c
336
iwl_mld_is_dup(mld, sta, &hdr, &mpdu_desc, &rx_status,
drivers/net/wireless/intel/iwlwifi/mld/tests/utils.c
402
pkt->len_n_flags = cpu_to_le32(sizeof(pkt->hdr) + notif_sz);
drivers/net/wireless/intel/iwlwifi/mld/tx.c
1107
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
1138
if (ieee80211_is_action(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mld/tx.c
1140
else if (ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mld/tx.c
1148
if (likely(!iwl_mld_time_sync_frame(mld, skb, hdr->addr1)))
drivers/net/wireless/intel/iwlwifi/mld/tx.c
211
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
212
u16 mh_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mld/tx.c
296
else if (ieee80211_hdrlen(hdr->frame_control) % 4)
drivers/net/wireless/intel/iwlwifi/mld/tx.c
500
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
504
memcpy(tx_cmd->hdr, hdr, ieee80211_hdrlen(hdr->frame_control));
drivers/net/wireless/intel/iwlwifi/mld/tx.c
523
ether_addr_copy(tx_cmd->hdr->addr3, vif->cfg.ap_addr);
drivers/net/wireless/intel/iwlwifi/mld/tx.c
526
ether_addr_copy(tx_cmd->hdr->addr3, vif->addr);
drivers/net/wireless/intel/iwlwifi/mld/tx.c
539
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
543
bool amsdu = ieee80211_is_data_qos(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/mld/tx.c
544
(*ieee80211_get_qos_ctl(hdr) &
drivers/net/wireless/intel/iwlwifi/mld/tx.c
549
dev_tx_cmd->hdr.cmd = TX_CMD;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
562
hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mld/tx.c
563
} else if (!ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mld/tx.c
608
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
609
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
636
if (is_multicast_ether_addr(hdr->addr1) &&
drivers/net/wireless/intel/iwlwifi/mld/tx.c
739
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
750
if (unlikely(ieee80211_is_any_nullfunc(hdr->frame_control)))
drivers/net/wireless/intel/iwlwifi/mld/tx.c
757
if (unlikely(ieee80211_is_probe_resp(hdr->frame_control))) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
766
if (ieee80211_is_data(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mld/tx.c
767
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mld/tx.c
768
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mld/tx.c
789
iwl_mld_low_latency_update_counters(mld, hdr, sta, 0);
drivers/net/wireless/intel/iwlwifi/mld/tx.c
809
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mld/tx.c
818
if (!ieee80211_is_data_qos(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mld/tx.c
832
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mld/tx.c
866
*ieee80211_get_qos_ctl(hdr) |= IEEE80211_QOS_CTL_A_MSDU_PRESENT;
drivers/net/wireless/intel/iwlwifi/mvm/coex.c
673
u8 iwl_mvm_bt_coex_tx_prio(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mvm/coex.c
676
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/mvm/coex.c
697
} else if (is_multicast_ether_addr(hdr->addr1)) {
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
1505
const struct ieee80211_hdr *hdr = (const void *)pktdata;
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
1512
if (ieee80211_is_data(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
1513
int hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
1524
if (ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
1531
if (is_multicast_ether_addr(hdr->addr1)) {
drivers/net/wireless/intel/iwlwifi/mvm/d3.c
2859
switch (WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd)) {
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
1139
cmd_v5.tas_config_info.hdr.table_source = data.table_source;
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
1140
cmd_v5.tas_config_info.hdr.table_revision =
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
243
WARN_ON(pkt->hdr.cmd != INIT_COMPLETE_NOTIF);
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
253
if (pkt->hdr.cmd != CALIB_RES_NOTIF_PHY_DB) {
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
254
WARN_ON(pkt->hdr.cmd != INIT_COMPLETE_NOTIF);
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
4493
if (WARN_ON(pkt->hdr.cmd != HOT_SPOT_CMD))
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
822
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
843
if (ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
852
!ieee80211_is_probe_resp(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
864
mgmt = (void *)hdr;
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
2186
u8 iwl_mvm_bt_coex_tx_prio(struct iwl_mvm *mvm, struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
1000
if (len < sizeof(hdr))
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
1004
if (hdr->group_id != LONG_GROUP)
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
1007
switch (hdr->cmd) {
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
1703
if (cmds_trig->cmds[i].cmd_id != pkt->hdr.cmd ||
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
1704
cmds_trig->cmds[i].group_id != pkt->hdr.group_id)
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
1709
pkt->hdr.group_id, pkt->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
1737
if (rx_h->cmd_id != WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd))
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
1778
u16 cmd = WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
1794
u16 cmd = WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
2124
u16 cmd = WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
997
struct iwl_cmd_header_wide *hdr = hcmd;
drivers/net/wireless/intel/iwlwifi/mvm/ops.c
998
unsigned int frob_start = sizeof(*hdr), frob_end = 0;
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
1144
static u8 rs_get_tid(struct ieee80211_hdr *hdr)
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
1148
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
1149
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
1167
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
1176
if (!ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
1180
iwl_mvm_rs_tx_status(mvm, sta, rs_get_tid(hdr), info,
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
1181
ieee80211_is_qos_nullfunc(hdr->frame_control));
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
140
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
145
if (!ieee80211_has_protected(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
201
struct ieee80211_hdr *hdr, u32 len,
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
216
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
217
u8 tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
291
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
310
hdr = (struct ieee80211_hdr *)(pkt->data + sizeof(*rx_res));
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
374
} else if (!is_multicast_ether_addr(hdr->addr2)) {
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
378
sta = ieee80211_find_sta_by_ifaddr(mvm->hw, hdr->addr2, NULL);
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
390
if (is_multicast_ether_addr(hdr->addr1) &&
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
393
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
404
if (iwl_mvm_set_mac80211_rx_flag(mvm, hdr, rx_status, rx_pkt_status,
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
439
if (trig && ieee80211_is_beacon(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
451
if (!mvm->tcm.paused && len >= sizeof(*hdr) &&
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
452
!is_multicast_ether_addr(hdr->addr1) &&
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
453
ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
454
iwl_mvm_rx_handle_tcm(mvm, sta, hdr, len, phy_info,
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
457
if (ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
49
struct ieee80211_hdr *hdr, u16 len,
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
53
unsigned int hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
531
if (unlikely((ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
532
ieee80211_is_probe_resp(hdr->frame_control)) &&
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
536
if (unlikely(ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
537
ieee80211_is_probe_resp(hdr->frame_control)))
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
540
iwl_mvm_pass_packet_to_mac80211(mvm, sta, napi, skb, hdr, len,
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
82
skb_put_data(skb, hdr, hdrlen);
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
828
struct iwl_statistics_ntfy_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
835
hdr = (void *)&pkt->data;
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
837
if (WARN_ONCE((hdr->type & IWL_STATISTICS_TYPE_MSK) != FW_STATISTICS_OPERATIONAL ||
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
838
hdr->version !=
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
841
hdr->type, hdr->version))
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
844
if (WARN_ONCE(le16_to_cpu(hdr->size) != expected_size,
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
846
le16_to_cpu(hdr->size), expected_size))
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
86
int offset = (u8 *)hdr + hdrlen -
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
145
skb_put_data(skb, hdr, hdrlen);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
146
skb_put_data(skb, (u8 *)hdr + hdrlen + pad_len, headlen - hdrlen);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
161
u8 hdr[6];
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
163
} __packed *shdr = (void *)((u8 *)hdr + hdrlen + pad_len);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
166
!ether_addr_equal(shdr->hdr, rfc1042_header) ||
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
18
struct ieee80211_hdr *hdr = (void *)skb_mac_header(skb);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
182
int offset = (u8 *)hdr + headlen + pad_len -
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
1974
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2029
iwl_mvm_get_signal_strength(mvm, desc, hdr, rx_status, rate_n_flags,
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2101
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2167
hdr = (void *)(pkt->data + desc_size);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2261
} else if (!is_multicast_ether_addr(hdr->addr2)) {
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2266
sta = ieee80211_find_sta_by_ifaddr(mvm->hw, hdr->addr2, NULL);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2269
if (iwl_mvm_rx_crypto(mvm, sta, hdr, rx_status, phy_data.phy_info, desc,
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2276
iwl_mvm_rx_fill_status(mvm, desc, hdr, skb, &phy_data, queue);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2288
if (!mvm->tcm.paused && len >= sizeof(*hdr) &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2289
!is_multicast_ether_addr(hdr->addr1) &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2290
ieee80211_is_data(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2328
if (trig && ieee80211_is_beacon(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2340
if (ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2343
if (iwl_mvm_is_dup(sta, queue, rx_status, hdr, desc)) {
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2345
le16_to_cpu(hdr->seq_ctrl));
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2357
!WARN_ON(!ieee80211_is_data_qos(hdr->frame_control))) {
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2358
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2364
iwl_mvm_flip_address(hdr->addr3);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2366
if (ieee80211_has_a4(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2367
iwl_mvm_flip_address(hdr->addr4);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2379
if (unlikely((ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2380
ieee80211_is_probe_resp(hdr->frame_control)) &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2385
if (unlikely(ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2386
ieee80211_is_probe_resp(hdr->frame_control)))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2390
if (iwl_mvm_create_skb(mvm, skb, hdr, len, crypt_len, rxb)) {
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
2396
likely(!iwl_mvm_time_sync_frame(mvm, skb, hdr->addr2)) &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
251
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
258
if (unlikely(!hdr || !desc))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
261
if (likely(!ieee80211_is_beacon(hdr->frame_control)))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
29
if (!ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
299
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
30
is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
313
if (iwl_mvm_used_average_energy(mvm, desc, hdr, rx_status))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
323
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
334
const u8 *frame = (void *)hdr;
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
348
if (!ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
409
cfg80211_rx_unprot_mlme_mgmt(wdev->netdev, (void *)hdr, len);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
415
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
436
if (unlikely(ieee80211_is_mgmt(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
437
!ieee80211_has_protected(hdr->frame_control)))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
438
return iwl_mvm_rx_mgmt_prot(sta, hdr, desc, status, stats);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
440
if (!ieee80211_has_protected(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
506
if (!is_multicast_ether_addr(hdr->addr1) &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
54
extiv = (u8 *)hdr + ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
552
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
573
if (ieee80211_is_ctl(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
574
ieee80211_is_any_nullfunc(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
575
is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
578
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
580
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
591
if (unlikely(ieee80211_has_retry(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
592
dup_data->last_seq[tid] == hdr->seq_ctrl &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
597
if (dup_data->last_seq[tid] == hdr->seq_ctrl &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
602
dup_data->last_seq[tid] = hdr->seq_ctrl;
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
61
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
62
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
786
struct ieee80211_hdr *hdr = (void *)skb_mac_header(skb);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
793
u8 tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
822
if (!ieee80211_is_back_req(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
823
(!ieee80211_is_data_qos(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
824
is_multicast_ether_addr(hdr->addr1)))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
827
if (unlikely(!ieee80211_is_data_present(hdr->frame_control)))
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
92
struct ieee80211_hdr *hdr, u16 len, u8 crypt_len,
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c
98
unsigned int hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mvm/tdls.c
340
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/mvm/tdls.c
406
hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tdls.c
420
hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c
1392
if (WARN_ON(pkt->hdr.cmd != SESSION_PROTECTION_NOTIF ||
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c
1393
pkt->hdr.group_id != MAC_CONF_GROUP))
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c
532
if (WARN_ON(pkt->hdr.cmd != TIME_EVENT_NOTIFICATION))
drivers/net/wireless/intel/iwlwifi/mvm/time-event.c
564
if (WARN_ON(pkt->hdr.cmd != TIME_EVENT_CMD))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1077
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1091
fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1126
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1143
hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1144
hdr->seq_ctrl |= cpu_to_le16(seq_number);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1146
tx_cmd->hdr->seq_ctrl = hdr->seq_ctrl;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1289
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1293
hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1294
amsdu = ieee80211_is_data_qos(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1295
(*ieee80211_get_qos_ctl(hdr) &
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
140
else if (ieee80211_hdrlen(hdr->frame_control) % 4)
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
154
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
155
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1551
u16 sequence = le16_to_cpu(pkt->hdr.sequence);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1580
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1606
status, le16_to_cpu(hdr->frame_control));
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1614
ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1625
iwl_mvm_tx_status_check_trigger(mvm, status, hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
163
!is_multicast_ether_addr(hdr->addr1)))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1645
if (ieee80211_is_back_req(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1648
seq_ctl = le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1658
if (ieee80211_is_qos_nullfunc(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1673
if (likely(!iwl_mvm_time_sync_frame(mvm, skb, hdr->addr1)))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
175
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1845
u16 sequence = le16_to_cpu(pkt->hdr.sequence);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1982
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
1986
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
209
tx_flags |= iwl_mvm_bt_coex_tx_prio(mvm, hdr, info, ac) <<
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
231
!is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
49
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
50
u16 mh_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
516
struct ieee80211_hdr *hdr,
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
525
if (likely(ieee80211_is_data(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
539
static void iwl_mvm_copy_hdr(void *cmd, const void *hdr, int hdrlen,
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
544
memcpy(cmd, hdr, hdrlen);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
558
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
567
dev_cmd->hdr.cmd = TX_CMD;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
576
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
577
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
591
if (unlikely(iwl_mvm_use_host_rate(mvm, mvmsta, hdr, info))) {
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
595
hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
596
} else if (!ieee80211_is_data(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
614
iwl_mvm_copy_hdr(cmd->hdr, hdr, hdrlen, addr3_override);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
629
iwl_mvm_copy_hdr(cmd->hdr, hdr, hdrlen, addr3_override);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
644
iwl_mvm_set_tx_cmd_rate(mvm, &tx_cmd->params, info, sta, hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
647
iwl_mvm_copy_hdr(tx_cmd->hdr, hdr, hdrlen, addr3_override);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
669
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
670
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
691
is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
772
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
776
int hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
777
__le16 fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
821
if (!ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
901
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
911
!ieee80211_is_data_qos(hdr->frame_control) ||
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
926
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/intel/iwlwifi/mvm/tx.c
983
*ieee80211_get_qos_ctl(hdr) |= IEEE80211_QOS_CTL_A_MSDU_PRESENT;
drivers/net/wireless/intel/iwlwifi/mvm/utils.c
332
WARN_ON(pkt->hdr.cmd != STATISTICS_NOTIFICATION);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/internal.h
641
u8 **hdr, unsigned int hdr_room,
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/rx.c
1343
WIDE_ID(pkt->hdr.group_id, pkt->hdr.cmd)),
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/rx.c
1344
pkt->hdr.group_id, pkt->hdr.cmd,
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/rx.c
1345
le16_to_cpu(pkt->hdr.sequence));
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/rx.c
1364
reclaim = !(pkt->hdr.sequence & SEQ_RX_FRAME);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/rx.c
1365
if (reclaim && !pkt->hdr.group_id) {
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/rx.c
1370
pkt->hdr.cmd) {
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/rx.c
1390
u16 sequence = le16_to_cpu(pkt->hdr.sequence);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
1365
out_cmd->hdr.cmd, le16_to_cpu(out_cmd->hdr.sequence),
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
167
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
178
&dev_cmd->hdr, start_len, 0);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
225
ether_addr_copy(pos_hdr, ieee80211_get_DA(hdr));
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
227
ether_addr_copy(pos_hdr, ieee80211_get_SA(hdr));
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
331
tb1_addr = ((u8 *)&dev_cmd->hdr) + IWL_FIRST_TB_SIZE;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
427
tb1_addr = ((u8 *)&dev_cmd->hdr) + IWL_FIRST_TB_SIZE;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
436
trace_iwlwifi_dev_tx(trans->dev, skb, tfd, sizeof(*tfd), &dev_cmd->hdr,
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
486
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
509
amsdu = ieee80211_is_data_qos(hdr->frame_control) &&
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
510
(*ieee80211_get_qos_ctl(hdr) &
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
513
hdr_len = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx-gen2.c
766
dev_cmd->hdr.sequence =
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1482
out_cmd->hdr.cmd = iwl_cmd_opcode(cmd->id);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1483
out_cmd->hdr.sequence =
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1486
out_cmd->hdr.group_id = 0;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1533
group_id, out_cmd->hdr.cmd,
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1534
le16_to_cpu(out_cmd->hdr.sequence),
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1539
memcpy(&txq->first_tb_bufs[idx], &out_cmd->hdr, tb0_size);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1547
((u8 *)&out_cmd->hdr) + tb0_size,
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1625
u16 sequence = le16_to_cpu(pkt->hdr.sequence);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1650
group_id = cmd->hdr.group_id;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1651
cmd_id = WIDE_ID(group_id, cmd->hdr.cmd);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1864
u8 **hdr, unsigned int hdr_room,
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1874
*hdr = iwl_pcie_get_page_hdr(trans,
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1879
if (!*hdr)
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1882
sgt = (void *)PTR_ALIGN(*hdr + hdr_room, __alignof__(struct sg_table));
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1912
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1924
iv_len = ieee80211_has_protected(hdr->frame_control) ?
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1930
&dev_cmd->hdr, IWL_FIRST_TB_SIZE + tb1_len, 0);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1981
ether_addr_copy(pos_hdr, ieee80211_get_DA(hdr));
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
1983
ether_addr_copy(pos_hdr, ieee80211_get_SA(hdr));
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
2112
struct ieee80211_hdr *hdr;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
2140
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
2141
fc = hdr->frame_control;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
2170
wifi_seq = IEEE80211_SEQ_TO_SN(le16_to_cpu(hdr->seq_ctrl));
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
2180
dev_cmd->hdr.sequence =
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
2205
(*ieee80211_get_qos_ctl(hdr) &
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
2230
tb1_addr = ((u8 *)&dev_cmd->hdr) + IWL_FIRST_TB_SIZE;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/tx.c
2239
&dev_cmd->hdr, IWL_FIRST_TB_SIZE + tb1_len,
drivers/net/wireless/intersil/p54/fwio.c
189
struct p54_hdr *hdr;
drivers/net/wireless/intersil/p54/fwio.c
191
size_t frame_len = sizeof(*hdr) + payload_len;
drivers/net/wireless/intersil/p54/fwio.c
204
hdr = skb_put(skb, sizeof(*hdr));
drivers/net/wireless/intersil/p54/fwio.c
205
hdr->flags = cpu_to_le16(hdr_flags);
drivers/net/wireless/intersil/p54/fwio.c
206
hdr->len = cpu_to_le16(payload_len);
drivers/net/wireless/intersil/p54/fwio.c
207
hdr->type = cpu_to_le16(type);
drivers/net/wireless/intersil/p54/fwio.c
208
hdr->tries = hdr->rts_tries = 0;
drivers/net/wireless/intersil/p54/fwio.c
394
struct p54_hdr *hdr;
drivers/net/wireless/intersil/p54/fwio.c
523
hdr = (struct p54_hdr *) skb->data;
drivers/net/wireless/intersil/p54/fwio.c
524
hdr->len = cpu_to_le16(skb->len - sizeof(*hdr));
drivers/net/wireless/intersil/p54/p54spi.c
395
struct p54_hdr *hdr = (struct p54_hdr *) skb->data;
drivers/net/wireless/intersil/p54/p54spi.c
401
ret = p54spi_spi_write_dma(priv, hdr->req_id, skb->data, skb->len);
drivers/net/wireless/intersil/p54/p54usb.c
298
struct lm87_tx_hdr *hdr = (void *)skb->data - sizeof(*hdr);
drivers/net/wireless/intersil/p54/p54usb.c
306
hdr->chksum = p54u_lm87_chksum((__le32 *)skb->data, skb->len);
drivers/net/wireless/intersil/p54/p54usb.c
307
hdr->device_addr = ((struct p54_hdr *)skb->data)->req_id;
drivers/net/wireless/intersil/p54/p54usb.c
311
hdr, skb->len + sizeof(*hdr), FREE_AFTER_TX(skb) ?
drivers/net/wireless/intersil/p54/p54usb.c
327
struct net2280_tx_hdr *hdr = (void *)skb->data - sizeof(*hdr);
drivers/net/wireless/intersil/p54/p54usb.c
347
memset(hdr, 0, sizeof(*hdr));
drivers/net/wireless/intersil/p54/p54usb.c
348
hdr->len = cpu_to_le16(skb->len);
drivers/net/wireless/intersil/p54/p54usb.c
349
hdr->device_addr = ((struct p54_hdr *) skb->data)->req_id;
drivers/net/wireless/intersil/p54/p54usb.c
365
hdr, skb->len + sizeof(*hdr), FREE_AFTER_TX(skb) ?
drivers/net/wireless/intersil/p54/p54usb.c
505
struct x2_header *hdr;
drivers/net/wireless/intersil/p54/p54usb.c
524
hdr = (struct x2_header *)(buf + strlen(p54u_firmware_upload_3887));
drivers/net/wireless/intersil/p54/p54usb.c
525
memcpy(hdr->signature, X2_SIGNATURE, X2_SIGNATURE_SIZE);
drivers/net/wireless/intersil/p54/p54usb.c
526
hdr->fw_load_addr = cpu_to_le32(ISL38XX_DEV_FIRMWARE_ADDR);
drivers/net/wireless/intersil/p54/p54usb.c
527
hdr->fw_length = cpu_to_le32(priv->fw->size);
drivers/net/wireless/intersil/p54/p54usb.c
528
hdr->crc = cpu_to_le32(~crc32_le(~0, (void *)&hdr->fw_load_addr,
drivers/net/wireless/intersil/p54/p54usb.c
530
left -= sizeof(*hdr);
drivers/net/wireless/intersil/p54/p54usb.c
531
tmp += sizeof(*hdr);
drivers/net/wireless/intersil/p54/txrx.c
256
struct p54_hdr *hdr = (struct p54_hdr *) entry->data;
drivers/net/wireless/intersil/p54/txrx.c
258
if (hdr->req_id == req_id) {
drivers/net/wireless/intersil/p54/txrx.c
296
struct ieee80211_hdr *hdr = (void *) skb->data;
drivers/net/wireless/intersil/p54/txrx.c
303
if (!ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/intersil/p54/txrx.c
310
if (!ether_addr_equal_64bits(hdr->addr3, priv->bssid))
drivers/net/wireless/intersil/p54/txrx.c
329
struct p54_rx_data *hdr = (struct p54_rx_data *) skb->data;
drivers/net/wireless/intersil/p54/txrx.c
33
struct p54_hdr *hdr;
drivers/net/wireless/intersil/p54/txrx.c
331
u16 freq = le16_to_cpu(hdr->freq);
drivers/net/wireless/intersil/p54/txrx.c
332
size_t header_len = sizeof(*hdr);
drivers/net/wireless/intersil/p54/txrx.c
335
u8 rate = hdr->rate & 0xf;
drivers/net/wireless/intersil/p54/txrx.c
345
if (!(hdr->flags & cpu_to_le16(P54_HDR_FLAG_DATA_IN_FCS_GOOD)))
drivers/net/wireless/intersil/p54/txrx.c
348
if (hdr->decrypt_status == P54_DECRYPT_OK)
drivers/net/wireless/intersil/p54/txrx.c
350
if ((hdr->decrypt_status == P54_DECRYPT_FAIL_MICHAEL) ||
drivers/net/wireless/intersil/p54/txrx.c
351
(hdr->decrypt_status == P54_DECRYPT_FAIL_TKIP))
drivers/net/wireless/intersil/p54/txrx.c
354
rx_status->signal = p54_rssi_to_dbm(priv, hdr->rssi);
drivers/net/wireless/intersil/p54/txrx.c
355
if (hdr->rate & 0x10)
drivers/net/wireless/intersil/p54/txrx.c
364
rx_status->antenna = hdr->antenna;
drivers/net/wireless/intersil/p54/txrx.c
366
tsf32 = le32_to_cpu(hdr->tsf32);
drivers/net/wireless/intersil/p54/txrx.c
378
if (hdr->flags & cpu_to_le16(P54_HDR_FLAG_DATA_ALIGN))
drivers/net/wireless/intersil/p54/txrx.c
379
header_len += hdr->align[0];
drivers/net/wireless/intersil/p54/txrx.c
382
skb_trim(skb, le16_to_cpu(hdr->len));
drivers/net/wireless/intersil/p54/txrx.c
401
struct p54_hdr *hdr = (struct p54_hdr *) skb->data;
drivers/net/wireless/intersil/p54/txrx.c
402
struct p54_frame_sent *payload = (struct p54_frame_sent *) hdr->data;
drivers/net/wireless/intersil/p54/txrx.c
410
entry = p54_find_and_unlink_skb(priv, hdr->req_id);
drivers/net/wireless/intersil/p54/txrx.c
46
hdr = (void *) skb->data;
drivers/net/wireless/intersil/p54/txrx.c
484
skb_pull(entry, sizeof(*hdr) + pad + sizeof(*entry_data));
drivers/net/wireless/intersil/p54/txrx.c
491
struct p54_hdr *hdr = (struct p54_hdr *) skb->data;
drivers/net/wireless/intersil/p54/txrx.c
492
struct p54_eeprom_lm86 *eeprom = (struct p54_eeprom_lm86 *) hdr->data;
drivers/net/wireless/intersil/p54/txrx.c
512
tmp = p54_find_and_unlink_skb(priv, hdr->req_id);
drivers/net/wireless/intersil/p54/txrx.c
519
struct p54_hdr *hdr = (struct p54_hdr *) skb->data;
drivers/net/wireless/intersil/p54/txrx.c
520
struct p54_statistics *stats = (struct p54_statistics *) hdr->data;
drivers/net/wireless/intersil/p54/txrx.c
54
le16_to_cpu(hdr->flags), le16_to_cpu(hdr->len),
drivers/net/wireless/intersil/p54/txrx.c
55
le32_to_cpu(hdr->req_id), le16_to_cpu(hdr->type),
drivers/net/wireless/intersil/p54/txrx.c
606
tmp = p54_find_and_unlink_skb(priv, hdr->req_id);
drivers/net/wireless/intersil/p54/txrx.c
613
struct p54_hdr *hdr = (struct p54_hdr *) skb->data;
drivers/net/wireless/intersil/p54/txrx.c
614
struct p54_trap *trap = (struct p54_trap *) hdr->data;
drivers/net/wireless/intersil/p54/txrx.c
649
struct p54_hdr *hdr = (struct p54_hdr *) skb->data;
drivers/net/wireless/intersil/p54/txrx.c
651
switch (le16_to_cpu(hdr->type)) {
drivers/net/wireless/intersil/p54/txrx.c
669
le16_to_cpu(hdr->type));
drivers/net/wireless/intersil/p54/txrx.c
694
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/intersil/p54/txrx.c
696
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/intersil/p54/txrx.c
734
if (unlikely(ieee80211_is_mgmt(hdr->frame_control))) {
drivers/net/wireless/intersil/p54/txrx.c
735
if (ieee80211_is_probe_resp(hdr->frame_control)) {
drivers/net/wireless/intersil/p54/txrx.c
740
} else if (ieee80211_is_beacon(hdr->frame_control)) {
drivers/net/wireless/intersil/p54/txrx.c
788
struct p54_hdr *hdr;
drivers/net/wireless/intersil/p54/txrx.c
808
padding = (unsigned long)(skb->data - (sizeof(*hdr) + sizeof(*txhdr))) & 3;
drivers/net/wireless/intersil/p54/txrx.c
826
hdr = skb_push(skb, sizeof(*hdr));
drivers/net/wireless/intersil/p54/txrx.c
830
hdr->type = cpu_to_le16(aid);
drivers/net/wireless/intersil/p54/txrx.c
831
hdr->rts_tries = info->control.rates[0].count;
drivers/net/wireless/intersil/p54/txrx.c
905
hdr->flags = cpu_to_le16(hdr_flags);
drivers/net/wireless/intersil/p54/txrx.c
906
hdr->tries = ridx;
drivers/net/wireless/intersil/p54/txrx.c
941
hdr->len = cpu_to_le16(len);
drivers/net/wireless/marvell/libertas/cfg.c
1018
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/cfg.c
1047
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cfg.c
1085
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cfg.c
1144
cmd->hdr.command = cpu_to_le16(CMD_802_11_ASSOCIATE);
drivers/net/wireless/marvell/libertas/cfg.c
1186
cmd->hdr.size = cpu_to_le16(len);
drivers/net/wireless/marvell/libertas/cfg.c
1189
le16_to_cpu(cmd->hdr.size));
drivers/net/wireless/marvell/libertas/cfg.c
1252
resp_ie_len = le16_to_cpu(resp->hdr.size)
drivers/net/wireless/marvell/libertas/cfg.c
1253
- sizeof(resp->hdr)
drivers/net/wireless/marvell/libertas/cfg.c
1458
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cfg.c
1816
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cfg.c
1929
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cfg.c
2016
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cfg.c
781
scan_cmd->hdr.size = cpu_to_le16(tlv - (u8 *)scan_cmd);
drivers/net/wireless/marvell/libertas/cfg.c
787
__lbs_cmd(priv, CMD_802_11_SCAN, &scan_cmd->hdr,
drivers/net/wireless/marvell/libertas/cfg.c
788
le16_to_cpu(scan_cmd->hdr.size),
drivers/net/wireless/marvell/libertas/cfg.c
910
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cfg.c
951
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cfg.c
998
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
1016
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
1020
lbs_cmd_async(priv, CMD_MAC_CONTROL, &cmd.hdr, sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
1028
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
193
cmd_config.hdr.size = cpu_to_le16(sizeof(cmd_config));
drivers/net/wireless/marvell/libertas/cmd.c
204
ret = __lbs_cmd(priv, CMD_802_11_HOST_SLEEP_CFG, &cmd_config.hdr,
drivers/net/wireless/marvell/libertas/cmd.c
205
le16_to_cpu(cmd_config.hdr.size),
drivers/net/wireless/marvell/libertas/cmd.c
236
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
256
lbs_cmd_async(priv, CMD_802_11_PS_MODE, &cmd.hdr, sizeof (cmd));
drivers/net/wireless/marvell/libertas/cmd.c
278
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
423
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
472
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
502
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
531
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
576
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
610
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
734
cmd.hdr.size = cpu_to_le16(sizeof(cmd.hdr) +
drivers/net/wireless/marvell/libertas/cmd.c
765
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
805
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
96
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.c
977
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/cmd.h
35
uint16_t __sz = le16_to_cpu((cmd)->hdr.size); \
drivers/net/wireless/marvell/libertas/cmd.h
36
(cmd)->hdr.size = cpu_to_le16(sizeof(*(cmd))); \
drivers/net/wireless/marvell/libertas/cmd.h
37
__lbs_cmd(priv, cmdnr, &(cmd)->hdr, __sz, cb, cb_arg); \
drivers/net/wireless/marvell/libertas/debugfs.c
241
subscribed->hdr.size = cpu_to_le16(sizeof(*subscribed));
drivers/net/wireless/marvell/libertas/debugfs.c
297
events->hdr.size = cpu_to_le16(sizeof(*events));
drivers/net/wireless/marvell/libertas/debugfs.c
324
events->hdr.size = cpu_to_le16(sizeof(events->hdr) + 4 + sizeof(*tlv));
drivers/net/wireless/marvell/libertas/ethtool.c
49
cmd.hdr.size = cpu_to_le16(sizeof(struct cmd_ds_802_11_eeprom_access) -
drivers/net/wireless/marvell/libertas/host.h
398
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
409
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
444
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
462
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
470
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
478
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
496
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
502
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
509
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
517
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
524
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
536
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
546
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
560
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
569
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
580
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
587
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
595
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
620
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
630
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
648
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
655
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
665
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
672
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
679
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
686
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
721
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
731
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
739
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
746
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
763
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
792
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
800
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
804
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
851
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
861
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
868
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
878
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
890
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
901
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
910
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
934
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
943
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
965
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/host.h
975
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas/if_usb.c
136
b2_cmd.hdr.size = cpu_to_le16(sizeof(b2_cmd));
drivers/net/wireless/marvell/libertas/if_usb.c
148
wake_method.hdr.size = cpu_to_le16(sizeof(wake_method));
drivers/net/wireless/marvell/libertas/if_usb.c
351
memcpy(&fwdata->hdr, &firmware[cardp->totalbytes],
drivers/net/wireless/marvell/libertas/if_usb.c
358
le32_to_cpu(fwdata->hdr.datalength));
drivers/net/wireless/marvell/libertas/if_usb.c
361
le32_to_cpu(fwdata->hdr.datalength));
drivers/net/wireless/marvell/libertas/if_usb.c
364
cardp->totalbytes += le32_to_cpu(fwdata->hdr.datalength);
drivers/net/wireless/marvell/libertas/if_usb.c
367
le32_to_cpu(fwdata->hdr.datalength));
drivers/net/wireless/marvell/libertas/if_usb.c
369
if (fwdata->hdr.dnldcmd == cpu_to_le32(FW_HAS_DATA_TO_RECV)) {
drivers/net/wireless/marvell/libertas/if_usb.c
373
} else if (fwdata->hdr.dnldcmd == cpu_to_le32(FW_HAS_LAST_BLOCK)) {
drivers/net/wireless/marvell/libertas/if_usb.h
92
struct fwheader hdr;
drivers/net/wireless/marvell/libertas/main.c
1055
confirm_sleep.hdr.command = cpu_to_le16(CMD_802_11_PS_MODE);
drivers/net/wireless/marvell/libertas/main.c
1056
confirm_sleep.hdr.size = cpu_to_le16(sizeof(confirm_sleep));
drivers/net/wireless/marvell/libertas/main.c
119
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas/main.c
376
mcast_cmd.hdr.size = cpu_to_le16(size);
drivers/net/wireless/marvell/libertas/main.c
379
lbs_cmd_async(priv, CMD_MAC_MULTICAST_ADR, &mcast_cmd.hdr, size);
drivers/net/wireless/marvell/libertas/mesh.c
30
cmd->hdr.command = cpu_to_le16(CMD_MESH_ACCESS);
drivers/net/wireless/marvell/libertas/mesh.c
31
cmd->hdr.size = cpu_to_le16(sizeof(*cmd));
drivers/net/wireless/marvell/libertas/mesh.c
32
cmd->hdr.result = 0;
drivers/net/wireless/marvell/libertas/mesh.c
56
cmd->hdr.command = cpu_to_le16(command);
drivers/net/wireless/marvell/libertas/mesh.c
57
cmd->hdr.size = cpu_to_le16(sizeof(struct cmd_ds_mesh_config));
drivers/net/wireless/marvell/libertas/mesh.c
58
cmd->hdr.result = 0;
drivers/net/wireless/marvell/libertas/radiotap.h
34
struct ieee80211_radiotap_header_fixed hdr;
drivers/net/wireless/marvell/libertas/radiotap.h
5
struct ieee80211_radiotap_header_fixed hdr;
drivers/net/wireless/marvell/libertas/rx.c
237
radiotap_hdr.hdr.it_len = cpu_to_le16 (sizeof(struct rx_radiotap_hdr));
drivers/net/wireless/marvell/libertas/rx.c
238
radiotap_hdr.hdr.it_present = cpu_to_le32 (RX_RADIOTAP_PRESENT);
drivers/net/wireless/marvell/libertas_tf/cmd.c
156
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
177
cmd.hdr.size = cpu_to_le16(size);
drivers/net/wireless/marvell/libertas_tf/cmd.c
181
lbtf_cmd_async(priv, CMD_802_11_BEACON_SET, &cmd.hdr, size);
drivers/net/wireless/marvell/libertas_tf/cmd.c
193
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
198
lbtf_cmd_async(priv, CMD_802_11_BEACON_CTRL, &cmd.hdr, sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
322
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
332
lbtf_cmd_async(priv, CMD_MAC_MULTICAST_ADR, &cmd.hdr, sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
343
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
346
lbtf_cmd_async(priv, CMD_802_11_SET_MODE, &cmd.hdr, sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
356
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
361
lbtf_cmd_async(priv, CMD_802_11_SET_BSSID, &cmd.hdr, sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
370
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
375
lbtf_cmd_async(priv, CMD_802_11_MAC_ADDRESS, &cmd.hdr, sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
387
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
424
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
429
&cmd.hdr, sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/cmd.c
88
cmd.hdr.size = cpu_to_le16(sizeof(cmd));
drivers/net/wireless/marvell/libertas_tf/if_usb.c
104
b2_cmd.hdr.size = cpu_to_le16(sizeof(b2_cmd));
drivers/net/wireless/marvell/libertas_tf/if_usb.c
294
memcpy(&fwdata->hdr, &firmware[cardp->totalbytes],
drivers/net/wireless/marvell/libertas_tf/if_usb.c
301
le32_to_cpu(fwdata->hdr.datalength));
drivers/net/wireless/marvell/libertas_tf/if_usb.c
304
le32_to_cpu(fwdata->hdr.datalength));
drivers/net/wireless/marvell/libertas_tf/if_usb.c
307
cardp->totalbytes += le32_to_cpu(fwdata->hdr.datalength);
drivers/net/wireless/marvell/libertas_tf/if_usb.c
310
le32_to_cpu(fwdata->hdr.datalength), 0);
drivers/net/wireless/marvell/libertas_tf/if_usb.c
312
if (fwdata->hdr.dnldcmd == cpu_to_le32(FW_HAS_DATA_TO_RECV)) {
drivers/net/wireless/marvell/libertas_tf/if_usb.c
317
} else if (fwdata->hdr.dnldcmd == cpu_to_le32(FW_HAS_LAST_BLOCK)) {
drivers/net/wireless/marvell/libertas_tf/if_usb.c
345
cmd->hdr.command = cpu_to_le16(CMD_802_11_RESET);
drivers/net/wireless/marvell/libertas_tf/if_usb.c
346
cmd->hdr.size = cpu_to_le16(sizeof(struct cmd_ds_802_11_reset));
drivers/net/wireless/marvell/libertas_tf/if_usb.c
347
cmd->hdr.result = cpu_to_le16(0);
drivers/net/wireless/marvell/libertas_tf/if_usb.c
348
cmd->hdr.seqnum = cpu_to_le16(0x5a5a);
drivers/net/wireless/marvell/libertas_tf/if_usb.h
82
struct fwheader hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
344
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
379
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
385
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
392
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
400
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
406
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
413
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
421
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
431
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
438
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
444
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
452
struct cmd_header hdr;
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
499
uint16_t __sz = le16_to_cpu((cmd)->hdr.size); \
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
500
(cmd)->hdr.size = cpu_to_le16(sizeof(*(cmd))); \
drivers/net/wireless/marvell/libertas_tf/libertas_tf.h
501
__lbtf_cmd(priv, cmdnr, &(cmd)->hdr, __sz, cb, cb_arg); \
drivers/net/wireless/marvell/libertas_tf/main.c
498
struct ieee80211_hdr *hdr;
drivers/net/wireless/marvell/libertas_tf/main.c
522
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/marvell/libertas_tf/main.c
524
need_padding = ieee80211_is_data_qos(hdr->frame_control);
drivers/net/wireless/marvell/libertas_tf/main.c
525
need_padding ^= ieee80211_has_a4(hdr->frame_control);
drivers/net/wireless/marvell/libertas_tf/main.c
526
need_padding ^= ieee80211_is_data_qos(hdr->frame_control) &&
drivers/net/wireless/marvell/libertas_tf/main.c
527
(*ieee80211_get_qos_ctl(hdr) &
drivers/net/wireless/marvell/mwifiex/11n.c
310
struct ieee_types_header *hdr;
drivers/net/wireless/marvell/mwifiex/11n.c
435
hdr = (void *)bss_desc->bcn_ext_cap;
drivers/net/wireless/marvell/mwifiex/11n.c
439
ext_cap->header.len = cpu_to_le16(hdr->len);
drivers/net/wireless/marvell/mwifiex/11n.c
445
if (hdr->len > 3 &&
drivers/net/wireless/marvell/mwifiex/11n.c
451
*buffer += sizeof(struct mwifiex_ie_types_extcap) + hdr->len;
drivers/net/wireless/marvell/mwifiex/11n.c
452
ret_len += sizeof(struct mwifiex_ie_types_extcap) + hdr->len;
drivers/net/wireless/marvell/mwifiex/decl.h
238
struct arphdr hdr;
drivers/net/wireless/marvell/mwifiex/ie.c
318
struct ieee_types_header *hdr;
drivers/net/wireless/marvell/mwifiex/ie.c
338
hdr = (void *)(info->tail + parsed_len);
drivers/net/wireless/marvell/mwifiex/ie.c
339
token_len = hdr->len + sizeof(struct ieee_types_header);
drivers/net/wireless/marvell/mwifiex/ie.c
345
switch (hdr->element_id) {
drivers/net/wireless/marvell/mwifiex/ie.c
361
(const u8 *)hdr,
drivers/net/wireless/marvell/mwifiex/ie.c
370
memcpy(gen_ie->ie_buffer + ie_len, hdr, token_len);
drivers/net/wireless/marvell/mwifiex/join.c
674
struct ieee80211_mgmt *hdr;
drivers/net/wireless/marvell/mwifiex/join.c
676
hdr = (struct ieee80211_mgmt *)&resp->params;
drivers/net/wireless/marvell/mwifiex/join.c
677
if (!memcmp(hdr->bssid,
drivers/net/wireless/marvell/mwifiex/join.c
681
&hdr->u.assoc_resp;
drivers/net/wireless/marvell/mwifiex/sta_rx.c
35
if (arp->hdr.ar_op == htons(ARPOP_REPLY) ||
drivers/net/wireless/marvell/mwifiex/sta_rx.c
36
arp->hdr.ar_op == htons(ARPOP_REQUEST)) {
drivers/net/wireless/marvell/mwifiex/txrx.c
78
struct ethhdr *hdr = (void *)skb->data;
drivers/net/wireless/marvell/mwifiex/txrx.c
89
dest_node = mwifiex_get_sta_entry(priv, hdr->h_dest);
drivers/net/wireless/marvell/mwl8k.c
591
__struct_group(mwl8k_cmd_pkt_hdr, hdr, __packed,
drivers/net/wireless/mediatek/mt76/mac80211.c
1238
struct ieee80211_hdr *hdr = mt76_skb_get_hdr(skb);
drivers/net/wireless/mediatek/mt76/mac80211.c
1271
if (ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/mediatek/mt76/mac80211.c
1272
ieee80211_is_probe_resp(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mac80211.c
1295
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mac80211.c
1312
hdr = mt76_skb_get_hdr(skb);
drivers/net/wireless/mediatek/mt76/mac80211.c
1318
if (ieee80211_is_frag(hdr) &&
drivers/net/wireless/mediatek/mt76/mac80211.c
1319
!ieee80211_is_first_frag(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mac80211.c
1329
if (ieee80211_is_mgmt(hdr->frame_control) &&
drivers/net/wireless/mediatek/mt76/mac80211.c
1330
!ieee80211_has_tods(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mac80211.c
1409
struct ieee80211_hdr *hdr = mt76_skb_get_hdr(skb);
drivers/net/wireless/mediatek/mt76/mac80211.c
1414
if (!ether_addr_equal(hdr->addr1, dev->phy.macaddr))
drivers/net/wireless/mediatek/mt76/mac80211.c
1443
struct ieee80211_hdr *hdr = mt76_skb_get_hdr(skb);
drivers/net/wireless/mediatek/mt76/mac80211.c
1451
if (ieee80211_is_pspoll(hdr->frame_control) && !wcid &&
drivers/net/wireless/mediatek/mt76/mac80211.c
1453
sta = ieee80211_find_sta_by_ifaddr(hw, hdr->addr2, NULL);
drivers/net/wireless/mediatek/mt76/mac80211.c
1476
if (ieee80211_is_pspoll(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mac80211.c
1481
if (ieee80211_has_morefrags(hdr->frame_control) ||
drivers/net/wireless/mediatek/mt76/mac80211.c
1482
!(ieee80211_is_mgmt(hdr->frame_control) ||
drivers/net/wireless/mediatek/mt76/mac80211.c
1483
ieee80211_is_data(hdr->frame_control)))
drivers/net/wireless/mediatek/mt76/mac80211.c
1486
ps = ieee80211_has_pm(hdr->frame_control);
drivers/net/wireless/mediatek/mt76/mac80211.c
1488
if (ps && (ieee80211_is_data_qos(hdr->frame_control) ||
drivers/net/wireless/mediatek/mt76/mac80211.c
1489
ieee80211_is_qos_nullfunc(hdr->frame_control)))
drivers/net/wireless/mediatek/mt76/mac80211.c
1884
u8 *hdr, *pn = status->iv;
drivers/net/wireless/mediatek/mt76/mac80211.c
1888
hdr = skb->data + hdr_len;
drivers/net/wireless/mediatek/mt76/mac80211.c
1890
hdr[0] = pn[5];
drivers/net/wireless/mediatek/mt76/mac80211.c
1891
hdr[1] = pn[4];
drivers/net/wireless/mediatek/mt76/mac80211.c
1892
hdr[2] = 0;
drivers/net/wireless/mediatek/mt76/mac80211.c
1893
hdr[3] = 0x20 | (key_id << 6);
drivers/net/wireless/mediatek/mt76/mac80211.c
1894
hdr[4] = pn[3];
drivers/net/wireless/mediatek/mt76/mac80211.c
1895
hdr[5] = pn[2];
drivers/net/wireless/mediatek/mt76/mac80211.c
1896
hdr[6] = pn[1];
drivers/net/wireless/mediatek/mt76/mac80211.c
1897
hdr[7] = pn[0];
drivers/net/wireless/mediatek/mt76/mt7603/dma.c
28
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7603/dma.c
54
hdr = (struct ieee80211_hdr *)&skb->data[MT_TXD_SIZE];
drivers/net/wireless/mediatek/mt76/mt7603/dma.c
57
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7603/dma.c
58
tid = *ieee80211_get_qos_ctl(hdr) &
drivers/net/wireless/mediatek/mt76/mt7603/dma.c
63
} else if (ieee80211_is_data(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
1020
if (ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
1021
seqno = le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
1022
else if (ieee80211_is_back_req(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
509
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
674
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
675
if (!status->wcid || !ieee80211_is_data_qos(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
679
!ieee80211_is_qos_nullfunc(hdr->frame_control);
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
680
status->qos_ctl = *ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
681
status->seqno = IEEE80211_SEQ_TO_SN(le16_to_cpu(hdr->seq_ctrl));
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
922
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
931
u16 fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
978
is_multicast_ether_addr(hdr->addr1));
drivers/net/wireless/mediatek/mt76/mt7603/main.c
429
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7603/main.c
431
hdr = (struct ieee80211_hdr *)&skb->data[MT_TXD_SIZE];
drivers/net/wireless/mediatek/mt76/mt7603/main.c
432
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_MOREDATA);
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
119
const struct mt7603_fw_trailer *hdr;
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
141
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
147
hdr = (const struct mt7603_fw_trailer *)(fw->data + fw->size -
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
148
sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
150
dev_info(dev->mt76.dev, "Firmware Version: %.10s\n", hdr->fw_ver);
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
151
dev_info(dev->mt76.dev, "Build Time: %.15s\n", hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
174
dl_len = le32_to_cpu(hdr->dl_len) + 4;
drivers/net/wireless/mediatek/mt76/mt7603/mcu.c
209
"%.10s-%.15s", hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
257
struct ieee80211_hdr hdr;
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
275
hdr.frame_control = cpu_to_le16(frame_control);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
276
hdr.seq_ctrl = cpu_to_le16(le32_get_bits(rxd[6], MT_RXD6_SEQ_CTRL));
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
277
hdr.duration_id = 0;
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
279
ether_addr_copy(hdr.addr1, vif->addr);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
280
ether_addr_copy(hdr.addr2, sta->addr);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
284
ether_addr_copy(hdr.addr3, vif->bss_conf.bssid);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
287
ether_addr_copy(hdr.addr3, eth_hdr->h_source);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
290
ether_addr_copy(hdr.addr3, eth_hdr->h_dest);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
293
ether_addr_copy(hdr.addr3, eth_hdr->h_dest);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
294
ether_addr_copy(hdr.addr4, eth_hdr->h_source);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
309
if (ieee80211_has_order(hdr.frame_control))
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
313
if (ieee80211_is_data_qos(hdr.frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
321
if (ieee80211_has_a4(hdr.frame_control))
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
322
memcpy(skb_push(skb, sizeof(hdr)), &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
324
memcpy(skb_push(skb, sizeof(hdr) - 6), &hdr, sizeof(hdr) - 6);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
336
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
631
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
632
fc = hdr->frame_control;
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
634
seq_ctrl = le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
635
qos_ctl = *ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
715
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
720
bool multicast = is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
725
__le16 fc = hdr->frame_control;
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
840
seqno = le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
842
if (ieee80211_is_back_req(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1049
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1069
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1229
const struct mt7615_patch_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1237
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1255
hdr = (const struct mt7615_patch_hdr *)(fw->data);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1258
be32_to_cpu(hdr->hw_sw_ver), hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1260
len = fw->size - sizeof(*hdr);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1270
fw->data + sizeof(*hdr), len);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1299
const struct mt7615_fw_trailer *hdr,
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1308
hdr[i].feature_set, is_cr4);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1309
len = le32_to_cpu(hdr[i].len) + IMG_CRC_LEN;
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1310
addr = le32_to_cpu(hdr[i].addr);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1334
const struct mt7615_fw_trailer *hdr;
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1342
if (!fw || !fw->data || fw->size < N9_REGION_NUM * sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1348
hdr = (const struct mt7615_fw_trailer *)(fw->data + fw->size -
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1349
N9_REGION_NUM * sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1352
hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1354
ret = mt7615_mcu_send_ram_firmware(dev, hdr, fw->data, false);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1359
le32_to_cpu(hdr->addr),
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1368
"%.10s-%.15s", hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1385
const struct mt7615_fw_trailer *hdr;
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1393
if (!fw || !fw->data || fw->size < CR4_REGION_NUM * sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1399
hdr = (const struct mt7615_fw_trailer *)(fw->data + fw->size -
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1400
CR4_REGION_NUM * sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1403
hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1405
ret = mt7615_mcu_send_ram_firmware(dev, hdr, fw->data, true);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1525
const struct mt76_connac2_fw_trailer *hdr;
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1541
hdr = (const void *)(fw->data + fw->size - FW_V3_COMMON_TAILER_SIZE);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1543
hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1544
dev_info(dev->mt76.dev, "Region number: 0x%x\n", hdr->n_region);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1547
for (i = 0; i < hdr->n_region; i++) {
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1548
u32 shift = (hdr->n_region - i) * FW_V3_REGION_TAILER_SIZE;
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
1595
"%.10s-%.15s", hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
635
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c
644
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.c
21
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx_info->skb->data;
drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.c
47
if (ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
1010
if (ieee80211_has_order(hdr.frame_control))
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
1013
if (ieee80211_is_data_qos(hdr.frame_control)) {
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
1021
if (ieee80211_has_a4(hdr.frame_control))
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
1022
memcpy(skb_push(skb, sizeof(hdr)), &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
1024
memcpy(skb_push(skb, sizeof(hdr) - 6), &hdr, sizeof(hdr) - 6);
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
405
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
408
bool multicast = is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
410
__le16 fc = hdr->frame_control;
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
411
__le16 sc = hdr->seq_ctrl;
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
423
} else if (ieee80211_is_back_req(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
424
struct ieee80211_bar *bar = (struct ieee80211_bar *)hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
471
if (ieee80211_is_back_req(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
587
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
588
bool multicast = ieee80211_is_data(hdr->frame_control) &&
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
589
is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
962
struct ieee80211_hdr hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
976
hdr.frame_control = cpu_to_le16(frame_control);
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
977
hdr.seq_ctrl = cpu_to_le16(le32_get_bits(rxd[8], MT_RXD8_SEQ_CTRL));
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
978
hdr.duration_id = 0;
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
980
ether_addr_copy(hdr.addr1, vif->addr);
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
981
ether_addr_copy(hdr.addr2, sta->addr);
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
985
ether_addr_copy(hdr.addr3, vif->bss_conf.bssid);
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
988
ether_addr_copy(hdr.addr3, eth_hdr->h_source);
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
991
ether_addr_copy(hdr.addr3, eth_hdr->h_dest);
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
994
ether_addr_copy(hdr.addr3, eth_hdr->h_dest);
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c
995
ether_addr_copy(hdr.addr4, eth_hdr->h_source);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
114
len = sizeof(hdr) + n_max_channels * sizeof(channel);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1153
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1162
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1177
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1180
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
120
skb_reserve(skb, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1470
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1487
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1555
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1559
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
159
BUILD_BUG_ON(sizeof(dev->alpha2) > sizeof(hdr.alpha2));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
160
memcpy(hdr.alpha2, dev->alpha2, sizeof(dev->alpha2));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
161
hdr.n_2ch = n_2ch;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
162
hdr.n_5ch = n_5ch;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
163
hdr.n_6ch = n_6ch;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1631
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1635
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
165
memcpy(__skb_push(skb, sizeof(hdr)), &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1670
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
1673
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2292
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2295
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2397
} __packed hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2402
sizeof(hdr) + sizeof(*gtk_tlv));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2406
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2436
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2439
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2462
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2465
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2491
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2494
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2523
} __packed hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2527
skb = mt76_mcu_msg_alloc(dev, NULL, sizeof(hdr) + sizeof(*ptlv));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2531
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2555
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2559
.hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2608
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2624
req.hdr.hif_type = 2;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2626
req.hdr.hif_type = 1;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2628
req.hdr.hif_type = 0;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
278
struct sta_req_hdr hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
286
hdr.muar_idx = 0xe;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
288
mt76_connac_mcu_get_wlan_idx(dev, wcid, &hdr.wlan_idx_lo,
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
289
&hdr.wlan_idx_hi);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
294
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2955
const struct mt76_connac2_fw_trailer *hdr,
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2961
for (i = 0; i < hdr->n_region; i++) {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2966
region = (const void *)((const u8 *)hdr -
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
2967
(hdr->n_region - i) * sizeof(*region));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3007
const struct mt76_connac2_fw_trailer *hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3015
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3021
hdr = (const void *)(fw->data + fw->size - sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3023
hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3025
ret = mt76_connac_mcu_send_ram_firmware(dev, hdr, fw->data, false);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3033
"%.10s-%.15s", hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3044
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
305
struct wtbl_req_hdr hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3050
hdr = (const void *)(fw->data + fw->size - sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3052
hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3054
ret = mt76_connac_mcu_send_ram_firmware(dev, hdr, fw->data, true);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3062
"%.10s-%.15s", hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
310
mt76_connac_mcu_get_wlan_idx(dev, wcid, &hdr.wlan_idx_lo,
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3102
const struct mt76_connac2_patch_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
311
&hdr.wlan_idx_hi);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3120
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3126
hdr = (const void *)fw->data;
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3128
be32_to_cpu(hdr->hw_sw_ver), hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3130
for (i = 0; i < be32_to_cpu(hdr->desc.n_region); i++) {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
3136
sec = (void *)(fw->data + sizeof(*hdr) + i * sizeof(*sec));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
322
le16_add_cpu(&sta_hdr->len, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
324
return skb_put_data(nskb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
97
} __packed hdr = {
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h
119
struct_group_tagged(mt76_connac2_mcu_rxd_hdr, hdr,
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
105
mt76x02_set_ethtool_fwver(dev, hdr);
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
17
const struct mt76x02_fw_header *hdr;
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
32
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
37
hdr = (const struct mt76x02_fw_header *)fw->data;
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
39
len = sizeof(*hdr);
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
40
len += le32_to_cpu(hdr->ilm_len);
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
41
len += le32_to_cpu(hdr->dlm_len);
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
48
fw_payload = fw->data + sizeof(*hdr);
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
50
val = le16_to_cpu(hdr->fw_ver);
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
54
val = le16_to_cpu(hdr->fw_ver);
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
58
le16_to_cpu(hdr->build_ver), hdr->build_time);
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
69
ilm_len = le32_to_cpu(hdr->ilm_len);
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
87
dlm_len = le32_to_cpu(hdr->dlm_len);
drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
90
fw_payload + le32_to_cpu(hdr->ilm_len), dlm_len);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
102
if (!fw || !fw->data || fw->size < sizeof(*hdr))
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
105
hdr = (const struct mt76x02_fw_header *)fw->data;
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
107
if (le32_to_cpu(hdr->ilm_len) <= MT_MCU_IVB_SIZE)
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
110
len = sizeof(*hdr);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
111
len += le32_to_cpu(hdr->ilm_len);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
112
len += le32_to_cpu(hdr->dlm_len);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
117
val = le16_to_cpu(hdr->fw_ver);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
121
le16_to_cpu(hdr->build_ver), hdr->build_time);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
123
len = le32_to_cpu(hdr->ilm_len);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
150
ret = mt76x0u_upload_firmware(dev, hdr);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
151
mt76x02_set_ethtool_fwver(dev, hdr);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
18
const struct mt76x02_fw_header *hdr)
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
20
u8 *fw_payload = (u8 *)(hdr + 1);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
29
ilm_len = le32_to_cpu(hdr->ilm_len) - MT_MCU_IVB_SIZE;
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
38
dlm_len = le32_to_cpu(hdr->dlm_len);
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
41
fw_payload + le32_to_cpu(hdr->ilm_len),
drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
88
const struct mt76x02_fw_header *hdr;
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
339
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
355
ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
430
if (ieee80211_is_probe_resp(hdr->frame_control) ||
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
431
ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
775
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
869
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
870
status->qos_ctl = *ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c
143
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx_info->skb->data;
drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c
151
hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
100
len += le32_to_cpu(hdr->dlm_len);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
105
val = le16_to_cpu(hdr->fw_ver);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
109
val = le16_to_cpu(hdr->build_ver);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
111
dev_info(dev->mt76.dev, "Build Time: %.16s\n", hdr->build_time);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
113
cur = (__le32 *)(fw->data + sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
114
len = le32_to_cpu(hdr->ilm_len);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
120
len = le32_to_cpu(hdr->dlm_len);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
144
mt76x02_set_ethtool_fwver(dev, hdr);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
18
struct mt76x02_patch_header *hdr;
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
47
if (!fw || !fw->data || fw->size <= sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
53
hdr = (struct mt76x02_patch_header *)fw->data;
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
54
dev_info(dev->mt76.dev, "ROM patch build: %.15s\n", hdr->build_time);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
58
cur = (__le32 *)(fw->data + sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
59
len = fw->size - sizeof(*hdr);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
84
const struct mt76x02_fw_header *hdr;
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
93
if (!fw || !fw->data || fw->size < sizeof(*hdr))
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
96
hdr = (const struct mt76x02_fw_header *)fw->data;
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
98
len = sizeof(*hdr);
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
99
len += le32_to_cpu(hdr->ilm_len);
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
119
err = mt76x02u_mcu_fw_send_data(dev, fw->data + sizeof(*hdr),
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
120
fw->size - sizeof(*hdr),
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
147
const struct mt76x02_fw_header *hdr;
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
155
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
160
hdr = (const struct mt76x02_fw_header *)fw->data;
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
161
ilm_len = le32_to_cpu(hdr->ilm_len);
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
162
dlm_len = le32_to_cpu(hdr->dlm_len);
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
163
len = sizeof(*hdr) + ilm_len + dlm_len;
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
169
val = le16_to_cpu(hdr->fw_ver);
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
173
val = le16_to_cpu(hdr->build_ver);
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
175
dev_info(dev->mt76.dev, "Build Time: %.16s\n", hdr->build_time);
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
198
err = mt76x02u_mcu_fw_send_data(dev, fw->data + sizeof(*hdr),
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
209
err = mt76x02u_mcu_fw_send_data(dev, fw->data + sizeof(*hdr) + ilm_len,
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
227
mt76x02_set_ethtool_fwver(dev, hdr);
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
60
struct mt76x02_patch_header *hdr;
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
89
if (!fw || !fw->data || fw->size <= sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
95
hdr = (struct mt76x02_patch_header *)fw->data;
drivers/net/wireless/mediatek/mt76/mt76x2/usb_mcu.c
96
dev_info(dev->mt76.dev, "ROM patch build: %.15s\n", hdr->build_time);
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
1344
mt7915_debugfs_write_fwlog(struct mt7915_dev *dev, const void *hdr, int hdrlen,
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
1358
memcpy(dest, hdr, hdrlen);
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
1375
} hdr = {
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
1383
hdr.timestamp = cpu_to_le32(mt76_rr(dev, MT_LPON_FRCR(0)));
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
1384
hdr.len = *(__le16 *)data;
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
1385
mt7915_debugfs_write_fwlog(dev, &hdr, sizeof(hdr), data, len);
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
1614
struct mt7915_mem_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
1650
hdr = (void *)buf;
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
1651
buf += sizeof(*hdr);
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
1652
buf_len -= sizeof(*hdr);
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
1657
hdr->start = mem_region->start;
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
1658
hdr->len = mem_region->len;
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
525
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
533
hdr = mt76_skb_get_hdr(skb);
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
534
fc = hdr->frame_control;
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
536
seq_ctrl = le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
537
qos_ctl = *ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
746
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx_info->skb->data;
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
798
ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
1805
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
1814
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
3416
} __packed hdr = {
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
3437
sizeof(hdr) + MT7915_SKU_RATE_NUM);
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
3441
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
3464
sizeof(hdr) + MT7915_SKU_PATH_NUM);
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
3468
hdr.limit_type = TX_POWER_LIMIT_TABLE_PATH;
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c
3469
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
413
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
421
hdr = mt76_skb_get_hdr(skb);
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
422
fc = hdr->frame_control;
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
424
seq_ctrl = le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/mediatek/mt76/mt7921/mac.c
425
qos_ctl = *ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/mediatek/mt76/mt7921/main.c
1219
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7921/main.c
1222
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
110
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
113
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
1139
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
1147
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
1186
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
1201
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
1242
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
1262
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
415
const struct mt76_connac2_fw_trailer *hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
440
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
446
hdr = (const void *)(fw->data + fw->size - sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
447
for (i = 0; i < hdr->n_region; i++) {
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
448
region = (const void *)((const u8 *)hdr -
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
449
(hdr->n_region - i) * sizeof(*region));
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
561
} __packed * hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
571
hdr = (struct mt76_connac_cap_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
572
if (skb->len < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
577
skb_pull(skb, sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
579
for (i = 0; i < le16_to_cpu(hdr->n_element); i++) {
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
775
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
840
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
945
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
958
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
984
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7921/mcu.c
993
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
177
struct ieee80211_hdr hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
195
hdr.frame_control = cpu_to_le16(frame_control);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
196
hdr.seq_ctrl = cpu_to_le16(le32_get_bits(rxd[10], MT_RXD10_SEQ_CTRL));
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
197
hdr.duration_id = 0;
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
199
ether_addr_copy(hdr.addr1, vif->addr);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
200
ether_addr_copy(hdr.addr2, sta->addr);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
204
ether_addr_copy(hdr.addr3, vif->bss_conf.bssid);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
207
ether_addr_copy(hdr.addr3, eth_hdr->h_source);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
210
ether_addr_copy(hdr.addr3, eth_hdr->h_dest);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
213
ether_addr_copy(hdr.addr3, eth_hdr->h_dest);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
214
ether_addr_copy(hdr.addr4, eth_hdr->h_source);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
229
if (ieee80211_has_order(hdr.frame_control))
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
232
if (ieee80211_is_data_qos(hdr.frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
240
if (ieee80211_has_a4(hdr.frame_control))
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
241
memcpy(skb_push(skb, sizeof(hdr)), &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
243
memcpy(skb_push(skb, sizeof(hdr) - 6), &hdr, sizeof(hdr) - 6);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
577
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
585
hdr = mt76_skb_get_hdr(skb);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
586
fc = hdr->frame_control;
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
588
seq_ctrl = le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
589
qos_ctl = *ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
591
skb_set_mac_header(skb, (unsigned char *)hdr - skb->data);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
661
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
664
bool multicast = is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
666
__le16 fc = hdr->frame_control;
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
675
else if (ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
708
u16 seqno = le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
710
if (ieee80211_is_back_req(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
819
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
820
bool mcast = ieee80211_is_data(hdr->frame_control) &&
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
821
is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
869
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7925/mac.c
871
fc = le16_to_cpu(hdr->frame_control) &
drivers/net/wireless/mediatek/mt76/mt7925/main.c
1580
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/main.c
1584
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1149
} __packed hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1153
int len = sizeof(hdr) + IEEE80211_NUM_ACS * sizeof(struct edca);
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1160
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
131
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1324
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
134
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1407
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1454
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1507
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1520
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1546
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1557
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1585
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1596
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1610
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
1616
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
170
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
174
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2103
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2111
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2153
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2168
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2209
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2229
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
225
} __packed hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
229
skb = mt76_mcu_msg_alloc(dev, NULL, sizeof(hdr) + sizeof(*tlv));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
233
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2357
struct bss_req_hdr hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2366
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
277
if (mvif->idx != event->hdr.bss_idx)
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2779
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2798
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2809
dev_req.hdr.omac_idx = mvif->omac_idx;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2810
dev_req.hdr.band_idx = mvif->band_idx;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2812
basic_req.hdr.bss_idx = mvif->idx;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2873
struct mbmc_set_req *hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2878
max_len = sizeof(*hdr) + sizeof(*conf);
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2883
hdr = (struct mbmc_set_req *)skb_put(skb, sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2955
struct scan_hdr_tlv *hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2968
max_len = sizeof(*hdr) + sizeof(*req) + sizeof(*ssid) +
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2980
hdr = (struct scan_hdr_tlv *)skb_put(skb, sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2981
hdr->seq_num = mvif->scan_seq_num | mvif->band_idx << 7;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
2982
hdr->bss_idx = mvif->idx;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3087
struct scan_hdr_tlv *hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3097
max_len = sizeof(*hdr) + sizeof(*req) + sizeof(*ssid) +
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3107
hdr = (struct scan_hdr_tlv *)skb_put(skb, sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3108
hdr->seq_num = mvif->scan_seq_num | mvif->band_idx << 7;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3109
hdr->bss_idx = mvif->idx;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3181
struct scan_hdr_tlv *hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3186
max_len = sizeof(*hdr) + sizeof(*req);
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3192
hdr = (struct scan_hdr_tlv *)skb_put(skb, sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3193
hdr->seq_num = 0;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3194
hdr->bss_idx = 0;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3218
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3226
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3264
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3274
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3340
BUILD_BUG_ON(sizeof(dev->alpha2) > sizeof(req.hdr.alpha2));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3341
memcpy(req.hdr.alpha2, dev->alpha2, sizeof(dev->alpha2));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3883
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
3891
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
525
} __packed * hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
528
hdr = (struct mt7925_uni_debug_msg *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
530
if (hdr->id == 0x28) {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
534
} else if (hdr->id != 0xa8) {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
538
if (hdr->type == 0) { /* idx log */
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
550
nr_val = (le16_to_cpu(hdr->len) - sizeof(*hdr)) / 4;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
551
val = (__le32 *)hdr->idx.data;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
562
le32_to_cpu(hdr->idx.idx), nr_val, buf);
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
564
} else if (hdr->type == 2) { /* str log */
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
565
wiphy_info(mt76_hw(dev)->wiphy, "%.*s", hdr->txt.len, hdr->txt.data);
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
731
const struct mt76_connac2_fw_trailer *hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
756
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
762
hdr = (const void *)(fw->data + fw->size - sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
763
for (i = 0; i < hdr->n_region; i++) {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
764
region = (const void *)((const u8 *)hdr -
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
765
(hdr->n_region - i) * sizeof(*region));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
940
} __packed * hdr;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
949
hdr = (struct mt76_connac_cap_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
950
if (skb->len < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
955
skb_pull(skb, sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c
957
for (i = 0; i < le16_to_cpu(hdr->n_element); i++) {
drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h
102
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt792x.h
496
u32 hdr, len;
drivers/net/wireless/mediatek/mt76/mt792x.h
498
len = mt76_is_usb(&dev->mt76) ? skb->len : skb->len + sizeof(hdr);
drivers/net/wireless/mediatek/mt76/mt792x.h
499
hdr = FIELD_PREP(MT792x_SDIO_HDR_TX_BYTES, len) |
drivers/net/wireless/mediatek/mt76/mt792x.h
502
put_unaligned_le32(hdr, skb_push(skb, sizeof(hdr)));
drivers/net/wireless/mediatek/mt76/mt792x_core.c
109
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt792x_core.c
116
memcpy(hdr->addr2, conf->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt792x_core.c
119
memcpy(hdr->addr1, link_sta->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt792x_core.c
122
memcpy(hdr->addr3, conf->bssid, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt792x_core.c
710
const struct mt76_connac2_fw_trailer *hdr;
drivers/net/wireless/mediatek/mt76/mt792x_core.c
721
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt792x_core.c
727
hdr = (const void *)(fw->data + fw->size - sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt792x_core.c
729
for (i = 0; i < hdr->n_region; i++) {
drivers/net/wireless/mediatek/mt76/mt792x_core.c
732
region = (const void *)((const u8 *)hdr -
drivers/net/wireless/mediatek/mt76/mt792x_core.c
733
(hdr->n_region - i) * sizeof(*region));
drivers/net/wireless/mediatek/mt76/mt792x_mac.c
167
struct ieee80211_hdr *hdr = mt76_skb_get_hdr(skb);
drivers/net/wireless/mediatek/mt76/mt792x_mac.c
172
if (!ether_addr_equal(vif->addr, hdr->addr1))
drivers/net/wireless/mediatek/mt76/mt792x_mac.c
180
struct ieee80211_hdr *hdr = mt76_skb_get_hdr(skb);
drivers/net/wireless/mediatek/mt76/mt792x_mac.c
182
if (!ieee80211_is_assoc_resp(hdr->frame_control) &&
drivers/net/wireless/mediatek/mt76/mt792x_mac.c
183
!ieee80211_is_auth(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
893
mt7996_debugfs_write_fwlog(struct mt7996_dev *dev, const void *hdr, int hdrlen,
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
907
memcpy(dest, hdr, hdrlen);
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
927
} hdr = {
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
936
hdr.serial_id = cpu_to_le16(dev->fw_debug_seq++);
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
937
hdr.timestamp = cpu_to_le32(mt76_rr(dev, MT_LPON_FRCR(0)));
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
938
hdr.len = *(__le16 *)data;
drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c
939
mt7996_debugfs_write_fwlog(dev, &hdr, sizeof(hdr), data, len);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1021
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1023
if (ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1031
if (ieee80211_has_a4(hdr->frame_control) &&
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1032
!ieee80211_is_data_present(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1044
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx_info->skb->data;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1065
if ((is_8023 || ieee80211_is_data_qos(hdr->frame_control)) && sta->mlo &&
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1101
struct ieee80211_hdr *hdr = (void *)tx_info->skb->data;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1116
memcpy(hdr->addr1, link_sta->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1117
memcpy(hdr->addr2, link_conf->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1118
if (ieee80211_has_a4(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1119
memcpy(hdr->addr3, sta->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1120
memcpy(hdr->addr4, vif->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1121
} else if (ieee80211_has_tods(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1122
memcpy(hdr->addr3, sta->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1123
} else if (ieee80211_has_fromds(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1124
memcpy(hdr->addr3, vif->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1264
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
1266
fc = le16_to_cpu(hdr->frame_control) &
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
238
struct ieee80211_hdr hdr;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
259
hdr.frame_control = cpu_to_le16(frame_control);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
260
hdr.seq_ctrl = cpu_to_le16(le32_get_bits(rxd[10], MT_RXD10_SEQ_CTRL));
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
261
hdr.duration_id = 0;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
263
ether_addr_copy(hdr.addr1, vif->addr);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
264
ether_addr_copy(hdr.addr2, sta->addr);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
2657
struct mt7996_mem_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
268
ether_addr_copy(hdr.addr3, link_conf->bssid);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
2692
hdr = (void *)buf;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
2693
buf += sizeof(*hdr);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
2694
buf_len -= sizeof(*hdr);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
2699
hdr->start = mem_region->start;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
2700
hdr->len = mem_region->len;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
271
ether_addr_copy(hdr.addr3, eth_hdr->h_source);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
274
ether_addr_copy(hdr.addr3, eth_hdr->h_dest);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
277
ether_addr_copy(hdr.addr3, eth_hdr->h_dest);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
278
ether_addr_copy(hdr.addr4, eth_hdr->h_source);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
293
if (ieee80211_has_order(hdr.frame_control))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
296
if (ieee80211_is_data_qos(hdr.frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
304
if (ieee80211_has_a4(hdr.frame_control))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
305
memcpy(skb_push(skb, sizeof(hdr)), &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
307
memcpy(skb_push(skb, sizeof(hdr) - 6), &hdr, sizeof(hdr) - 6);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
693
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
701
hdr = mt76_skb_get_hdr(skb);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
702
fc = hdr->frame_control;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
704
u8 *qos = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
706
seq_ctrl = le16_to_cpu(hdr->seq_ctrl);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
716
skb_set_mac_header(skb, (unsigned char *)hdr - skb->data);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
791
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
794
bool multicast = is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
796
__le16 fc = hdr->frame_control, sc = hdr->seq_ctrl;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
812
} else if (ieee80211_is_mgmt(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
866
if (ieee80211_is_back_req(hdr->frame_control)) {
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
898
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
985
else if (is_8023 || !ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
997
bool mcast = ieee80211_is_data(hdr->frame_control) &&
drivers/net/wireless/mediatek/mt76/mt7996/mac.c
998
is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/mediatek/mt76/mt7996/main.c
1299
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/mt7996/main.c
1334
memcpy(hdr->addr1, link_sta->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt7996/main.c
1335
if (ether_addr_equal(sta->addr, hdr->addr3))
drivers/net/wireless/mediatek/mt76/mt7996/main.c
1336
memcpy(hdr->addr3, link_sta->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt7996/main.c
1342
memcpy(hdr->addr2, link_conf->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt7996/main.c
1343
if (ether_addr_equal(vif->addr, hdr->addr3))
drivers/net/wireless/mediatek/mt76/mt7996/main.c
1344
memcpy(hdr->addr3, link_conf->addr, ETH_ALEN);
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
1109
struct bss_req_hdr hdr = {
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
1118
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
1957
struct uni_header hdr = {};
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
1963
len = sizeof(hdr) + sizeof(*req);
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
1969
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
2633
} __packed hdr;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
2642
.hdr = {
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
2948
const struct mt7996_patch_hdr *hdr;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
2967
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
2973
hdr = (const struct mt7996_patch_hdr *)(fw->data);
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
2976
be32_to_cpu(hdr->hw_sw_ver), hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
2978
for (i = 0; i < be32_to_cpu(hdr->desc.n_region); i++) {
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
2983
sec = (struct mt7996_patch_sec *)(fw->data + sizeof(*hdr) +
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3034
const struct mt7996_fw_trailer *hdr,
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3040
for (i = 0; i < hdr->n_region; i++) {
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3045
region = (const struct mt7996_fw_region *)((const u8 *)hdr -
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3046
(hdr->n_region - i) * sizeof(*region));
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3088
const struct mt7996_fw_trailer *hdr;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3096
if (!fw || !fw->data || fw->size < sizeof(*hdr)) {
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3102
hdr = (const void *)(fw->data + fw->size - sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3104
fw_type, hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3106
ret = mt7996_mcu_send_ram_firmware(dev, hdr, fw->data, ram_type);
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3114
"%.10s-%.15s", hdr->fw_ver, hdr->build_date);
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3290
struct uni_header hdr = {};
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3296
len = sizeof(hdr) + num * sizeof(struct vow_rx_airtime);
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3301
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3391
} __packed hdr = {};
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3396
int len = MT7996_HDR_TRANS_MAX_SIZE + sizeof(hdr);
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3402
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3440
} __packed hdr = {
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3444
int len = sizeof(hdr) + IEEE80211_NUM_ACS * sizeof(struct edca);
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3451
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3961
} hdr;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3968
.hdr.band = phy->mt76->band_idx,
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
3994
skb_pull(skb, sizeof(req.hdr));
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
4189
struct uni_header hdr;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
4192
int len = sizeof(hdr) + MT7996_BF_MAX_SIZE;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
4194
memset(&hdr, 0, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
4200
skb_put_data(skb, &hdr, sizeof(hdr));
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
500
struct header *hdr = (struct header *)data;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
503
if (hdr->band >= ARRAY_SIZE(dev->mt76.phys))
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
506
if (hdr->band && dev->mt76.phys[hdr->band])
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
507
mphy = dev->mt76.phys[hdr->band];
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
975
} hdr;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
987
.hdr.band = mlink->band_idx,
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c
989
.len = cpu_to_le16(sizeof(req) - sizeof(req.hdr)),
drivers/net/wireless/mediatek/mt76/scan.c
52
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/scan.c
54
ether_addr_copy(hdr->addr1, req->bssid);
drivers/net/wireless/mediatek/mt76/scan.c
55
ether_addr_copy(hdr->addr3, req->bssid);
drivers/net/wireless/mediatek/mt76/testmode.c
109
struct ieee80211_hdr *hdr;
drivers/net/wireless/mediatek/mt76/testmode.c
129
hdr = __skb_put_zero(head, sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/testmode.c
130
hdr->frame_control = cpu_to_le16(fc);
drivers/net/wireless/mediatek/mt76/testmode.c
131
memcpy(hdr->addr1, td->addr[0], ETH_ALEN);
drivers/net/wireless/mediatek/mt76/testmode.c
132
memcpy(hdr->addr2, td->addr[1], ETH_ALEN);
drivers/net/wireless/mediatek/mt76/testmode.c
133
memcpy(hdr->addr3, td->addr[2], ETH_ALEN);
drivers/net/wireless/mediatek/mt76/testmode.c
135
get_random_bytes(__skb_put(head, head_len - sizeof(*hdr)),
drivers/net/wireless/mediatek/mt76/testmode.c
136
head_len - sizeof(*hdr));
drivers/net/wireless/mediatek/mt76/tx.c
125
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/tx.c
142
ieee80211_is_data(hdr->frame_control)))
drivers/net/wireless/mediatek/mt76/tx.c
20
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/tx.c
25
if (!sta || !ieee80211_is_data_qos(hdr->frame_control) ||
drivers/net/wireless/mediatek/mt76/tx.c
26
!ieee80211_is_data_present(hdr->frame_control))
drivers/net/wireless/mediatek/mt76/tx.c
335
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/mediatek/mt76/tx.c
35
mtxq->agg_ssn = le16_to_cpu(hdr->seq_ctrl) + 0x10;
drivers/net/wireless/mediatek/mt76/tx.c
354
ieee80211_is_probe_req(hdr->frame_control)))
drivers/net/wireless/mediatek/mt76/tx.c
613
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/tx.c
619
!ieee80211_is_data(hdr->frame_control) &&
drivers/net/wireless/mediatek/mt76/tx.c
621
ieee80211_is_deauth(hdr->frame_control) ||
drivers/net/wireless/mediatek/mt76/util.h
46
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/mediatek/mt76/util.h
49
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_MOREDATA);
drivers/net/wireless/mediatek/mt76/util.h
51
hdr->frame_control &= ~cpu_to_le16(IEEE80211_FCTL_MOREDATA);
drivers/net/wireless/mediatek/mt7601u/dma.c
16
const struct ieee80211_hdr *hdr = (const struct ieee80211_hdr *)data;
drivers/net/wireless/mediatek/mt7601u/dma.c
21
hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/mediatek/mt7601u/mac.c
454
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)data;
drivers/net/wireless/mediatek/mt7601u/mac.c
456
return ieee80211_is_beacon(hdr->frame_control) &&
drivers/net/wireless/mediatek/mt7601u/mac.c
457
ether_addr_equal(hdr->addr2, dev->ap_bssid);
drivers/net/wireless/mediatek/mt7601u/mcu.c
278
struct mt76_fw_header hdr;
drivers/net/wireless/mediatek/mt7601u/mcu.c
371
ilm_len = le32_to_cpu(fw->hdr.ilm_len) - sizeof(fw->ivb);
drivers/net/wireless/mediatek/mt7601u/mcu.c
378
dlm_len = le32_to_cpu(fw->hdr.dlm_len);
drivers/net/wireless/mediatek/mt7601u/mcu.c
409
const struct mt76_fw_header *hdr;
drivers/net/wireless/mediatek/mt7601u/mcu.c
423
if (!fw || !fw->data || fw->size < sizeof(*hdr))
drivers/net/wireless/mediatek/mt7601u/mcu.c
426
hdr = (const struct mt76_fw_header *) fw->data;
drivers/net/wireless/mediatek/mt7601u/mcu.c
428
if (le32_to_cpu(hdr->ilm_len) <= MT_MCU_IVB_SIZE)
drivers/net/wireless/mediatek/mt7601u/mcu.c
431
len = sizeof(*hdr);
drivers/net/wireless/mediatek/mt7601u/mcu.c
432
len += le32_to_cpu(hdr->ilm_len);
drivers/net/wireless/mediatek/mt7601u/mcu.c
433
len += le32_to_cpu(hdr->dlm_len);
drivers/net/wireless/mediatek/mt7601u/mcu.c
438
val = le16_to_cpu(hdr->fw_ver);
drivers/net/wireless/mediatek/mt7601u/mcu.c
442
le16_to_cpu(hdr->build_ver), hdr->build_time);
drivers/net/wireless/mediatek/mt7601u/mcu.c
444
len = le32_to_cpu(hdr->ilm_len);
drivers/net/wireless/microchip/wilc1000/cfg80211.c
1034
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)buff;
drivers/net/wireless/microchip/wilc1000/cfg80211.c
1036
if (ieee80211_is_probe_resp(hdr->frame_control) ||
drivers/net/wireless/microchip/wilc1000/mon.c
10
struct ieee80211_radiotap_header_fixed hdr;
drivers/net/wireless/microchip/wilc1000/mon.c
15
struct ieee80211_radiotap_header_fixed hdr;
drivers/net/wireless/microchip/wilc1000/mon.c
172
cb_hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */
drivers/net/wireless/microchip/wilc1000/mon.c
174
cb_hdr->hdr.it_len = cpu_to_le16(sizeof(*cb_hdr));
drivers/net/wireless/microchip/wilc1000/mon.c
176
cb_hdr->hdr.it_present = cpu_to_le32(TX_RADIOTAP_PRESENT);
drivers/net/wireless/microchip/wilc1000/mon.c
28
struct wilc_wfi_radiotap_hdr *hdr;
drivers/net/wireless/microchip/wilc1000/mon.c
57
cb_hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */
drivers/net/wireless/microchip/wilc1000/mon.c
59
cb_hdr->hdr.it_len = cpu_to_le16(sizeof(*cb_hdr));
drivers/net/wireless/microchip/wilc1000/mon.c
61
cb_hdr->hdr.it_present = cpu_to_le32(TX_RADIOTAP_PRESENT);
drivers/net/wireless/microchip/wilc1000/mon.c
73
skb = dev_alloc_skb(size + sizeof(*hdr));
drivers/net/wireless/microchip/wilc1000/mon.c
79
hdr = skb_push(skb, sizeof(*hdr));
drivers/net/wireless/microchip/wilc1000/mon.c
80
memset(hdr, 0, sizeof(struct wilc_wfi_radiotap_hdr));
drivers/net/wireless/microchip/wilc1000/mon.c
81
hdr->hdr.it_version = 0; /* PKTHDR_RADIOTAP_VERSION; */
drivers/net/wireless/microchip/wilc1000/mon.c
82
hdr->hdr.it_len = cpu_to_le16(sizeof(*hdr));
drivers/net/wireless/microchip/wilc1000/mon.c
83
hdr->hdr.it_present = cpu_to_le32
drivers/net/wireless/microchip/wilc1000/mon.c
85
hdr->rate = 5;
drivers/net/wireless/microchip/wilc1000/wlan.c
1458
cfg->hdr.cmd_type = 'W';
drivers/net/wireless/microchip/wilc1000/wlan.c
1460
cfg->hdr.cmd_type = 'Q';
drivers/net/wireless/microchip/wilc1000/wlan.c
1462
cfg->hdr.seq_no = wilc->cfg_seq_no % 256;
drivers/net/wireless/microchip/wilc1000/wlan.c
1463
cfg->hdr.total_len = cpu_to_le16(t_len);
drivers/net/wireless/microchip/wilc1000/wlan.c
1464
cfg->hdr.driver_handler = cpu_to_le32(drv_handler);
drivers/net/wireless/microchip/wilc1000/wlan.c
1465
wilc->cfg_seq_no = cfg->hdr.seq_no;
drivers/net/wireless/microchip/wilc1000/wlan.c
1467
if (!wilc_wlan_txq_add_cfg_pkt(vif, (u8 *)&cfg->hdr, t_len))
drivers/net/wireless/microchip/wilc1000/wlan.h
424
struct wilc_cfg_cmd_hdr hdr;
drivers/net/wireless/quantenna/qtnfmac/commands.c
1330
if (tlv->hdr.len != cpu_to_le16(payload_len)) {
drivers/net/wireless/quantenna/qtnfmac/commands.c
1331
pr_err("bad IFTYPE_DATA TLV len %u\n", tlv->hdr.len);
drivers/net/wireless/quantenna/qtnfmac/commands.c
180
tlv->hdr.type = cpu_to_le16(QTN_TLV_ID_IE_SET);
drivers/net/wireless/quantenna/qtnfmac/commands.c
181
tlv->hdr.len = cpu_to_le16(len + sizeof(*tlv) - sizeof(tlv->hdr));
drivers/net/wireless/quantenna/qtnfmac/commands.c
1951
tlv->hdr.type = cpu_to_le16(QTN_TLV_ID_CHANNEL);
drivers/net/wireless/quantenna/qtnfmac/commands.c
1952
tlv->hdr.len = cpu_to_le16(sizeof(*qch));
drivers/net/wireless/quantenna/qtnfmac/commands.c
1970
struct qlink_tlv_hdr *hdr =
drivers/net/wireless/quantenna/qtnfmac/commands.c
1971
skb_put(cmd_skb, sizeof(*hdr) + sizeof(*randmac));
drivers/net/wireless/quantenna/qtnfmac/commands.c
1973
hdr->type = cpu_to_le16(QTN_TLV_ID_RANDOM_MAC_ADDR);
drivers/net/wireless/quantenna/qtnfmac/commands.c
1974
hdr->len = cpu_to_le16(sizeof(*randmac));
drivers/net/wireless/quantenna/qtnfmac/commands.c
1975
randmac = (struct qlink_random_mac_addr *)hdr->val;
drivers/net/wireless/quantenna/qtnfmac/commands.c
228
tlv->hdr.type = cpu_to_le16(WLAN_EID_EXTENSION);
drivers/net/wireless/quantenna/qtnfmac/commands.c
229
tlv->hdr.len = cpu_to_le16(sizeof(*tlv) + len - sizeof(tlv->hdr));
drivers/net/wireless/quantenna/qtnfmac/commands.c
302
chtlv->hdr.type = cpu_to_le16(QTN_TLV_ID_CHANDEF);
drivers/net/wireless/quantenna/qtnfmac/commands.c
303
chtlv->hdr.len = cpu_to_le16(sizeof(*chtlv) -
drivers/net/wireless/quantenna/qtnfmac/commands.c
304
sizeof(chtlv->hdr));
drivers/net/wireless/quantenna/qtnfmac/event.c
240
(sizeof(*ie_set) - sizeof(ie_set->hdr))) {
drivers/net/wireless/quantenna/qtnfmac/event.c
248
(sizeof(*ie_set) - sizeof(ie_set->hdr));
drivers/net/wireless/quantenna/qtnfmac/event.c
379
(sizeof(*ie_set) - sizeof(ie_set->hdr)))
drivers/net/wireless/quantenna/qtnfmac/event.c
384
(sizeof(*ie_set) - sizeof(ie_set->hdr));
drivers/net/wireless/quantenna/qtnfmac/event.c
71
(sizeof(*ie_set) - sizeof(ie_set->hdr))) {
drivers/net/wireless/quantenna/qtnfmac/event.c
78
(sizeof(*ie_set) - sizeof(ie_set->hdr));
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
912
struct qtnf_pearl_fw_hdr *hdr;
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
915
int hds = sizeof(*hdr);
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
927
hdr = (struct qtnf_pearl_fw_hdr *)skb->data;
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
928
memcpy(hdr->boardflg, QTN_PCIE_BOARDFLG, strlen(QTN_PCIE_BOARDFLG));
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
929
hdr->fwsize = cpu_to_le32(size);
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
930
hdr->seqnum = cpu_to_le32(blk);
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
933
hdr->type = cpu_to_le32(QTN_FW_DSUB);
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
935
hdr->type = cpu_to_le32(QTN_FW_DBEGIN);
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
942
hdr->type = cpu_to_le32(QTN_FW_DEND);
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
945
hdr->pktlen = cpu_to_le32(len);
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c
947
hdr->crc = cpu_to_le32(~crc32(0, pdata, len));
drivers/net/wireless/quantenna/qtnfmac/qlink.h
1575
struct qlink_tlv_hdr_fixed hdr;
drivers/net/wireless/quantenna/qtnfmac/qlink.h
1614
struct qlink_tlv_hdr_fixed hdr;
drivers/net/wireless/quantenna/qtnfmac/qlink.h
1626
struct qlink_tlv_hdr_fixed hdr;
drivers/net/wireless/quantenna/qtnfmac/qlink.h
1651
struct qlink_tlv_hdr_fixed hdr;
drivers/net/wireless/quantenna/qtnfmac/qlink.h
1665
struct qlink_tlv_hdr_fixed hdr;
drivers/net/wireless/quantenna/qtnfmac/qlink.h
1686
struct qlink_tlv_hdr_fixed hdr;
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
23
struct qlink_tlv_hdr *hdr;
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
25
hdr = skb_put(skb, sizeof(*hdr) + round_up(arr_len, QLINK_ALIGN));
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
26
hdr->type = cpu_to_le16(tlv_id);
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
27
hdr->len = cpu_to_le16(arr_len);
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
28
memcpy(hdr->val, arr, arr_len);
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
34
struct qlink_tlv_hdr *hdr = skb_put(skb, sizeof(*hdr) + sizeof(value));
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
37
hdr->type = cpu_to_le16(tlv_id);
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
38
hdr->len = cpu_to_le16(sizeof(value));
drivers/net/wireless/quantenna/qtnfmac/qlink_util.h
39
memcpy(hdr->val, &tmp, sizeof(tmp));
drivers/net/wireless/quantenna/qtnfmac/shm_ipc.c
128
shm_reg_hdr = &ipc->shm_region->headroom.hdr;
drivers/net/wireless/quantenna/qtnfmac/shm_ipc.c
14
const u32 flags = readl(&ipc->shm_region->headroom.hdr.flags);
drivers/net/wireless/quantenna/qtnfmac/shm_ipc.c
25
shm_reg_hdr = &ipc->shm_region->headroom.hdr;
drivers/net/wireless/quantenna/qtnfmac/shm_ipc.c
59
flags = readl(&ipc->shm_region->headroom.hdr.flags);
drivers/net/wireless/quantenna/qtnfmac/shm_ipc.c
72
flags = readl(&ipc->shm_region->headroom.hdr.flags);
drivers/net/wireless/quantenna/qtnfmac/shm_ipc_defs.h
24
struct qtnf_shm_ipc_region_header hdr;
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
645
struct ieee80211_hdr *hdr = (void *) skb->data;
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
654
if (likely(!ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/ralink/rt2x00/rt2x00link.c
186
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ralink/rt2x00/rt2x00link.c
205
if (!ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
181
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
198
if (ieee80211_is_beacon(hdr->frame_control)) {
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
223
hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG);
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
224
hdr->seq_ctrl |= cpu_to_le16(seqno);
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
299
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
375
if (ieee80211_is_mgmt(hdr->frame_control) &&
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
376
!ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
390
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
412
if (ieee80211_is_rts(hdr->frame_control) ||
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
413
ieee80211_is_cts(hdr->frame_control)) {
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
415
if (ieee80211_is_rts(hdr->frame_control))
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
431
if (ieee80211_has_morefrags(hdr->frame_control)) {
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
446
if ((ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c
447
ieee80211_is_probe_resp(hdr->frame_control)) &&
drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c
459
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c
544
hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG);
drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c
545
hdr->seq_ctrl |= cpu_to_le16(priv->seqno);
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
278
struct rtl8187_tx_hdr *hdr = skb_push(skb, sizeof(*hdr));
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
279
hdr->flags = cpu_to_le32(flags);
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
280
hdr->len = 0;
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
281
hdr->rts_duration = rts_dur;
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
282
hdr->retry = cpu_to_le32((info->control.rates[0].count - 1) << 8);
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
283
buf = hdr;
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
291
struct rtl8187b_tx_hdr *hdr = skb_push(skb, sizeof(*hdr));
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
294
memset(hdr, 0, sizeof(*hdr));
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
295
hdr->flags = cpu_to_le32(flags);
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
296
hdr->rts_duration = rts_dur;
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
297
hdr->retry = cpu_to_le32((info->control.rates[0].count - 1) << 8);
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
298
hdr->tx_duration =
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
302
buf = hdr;
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
345
struct rtl8187_rx_hdr *hdr;
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
350
hdr = (typeof(hdr))(skb_tail_pointer(skb) - sizeof(*hdr));
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
351
flags = le32_to_cpu(hdr->flags);
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
356
signal = -4 - ((27 * hdr->agc) >> 6);
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
357
rx_status.antenna = (hdr->signal >> 7) & 1;
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
358
rx_status.mactime = le64_to_cpu(hdr->mac_time);
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
360
struct rtl8187b_rx_hdr *hdr;
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
365
hdr = (typeof(hdr))(skb_tail_pointer(skb) - sizeof(*hdr));
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
378
flags = le32_to_cpu(hdr->flags);
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
379
signal = 14 - hdr->agc / 2;
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
380
rx_status.antenna = (hdr->rssi >> 7) & 1;
drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c
381
rx_status.mactime = le64_to_cpu(hdr->mac_time);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5018
static u32 rtl8xxxu_queue_select(struct ieee80211_hdr *hdr, struct sk_buff *skb)
drivers/net/wireless/realtek/rtl8xxxu/core.c
5022
if (unlikely(ieee80211_is_beacon(hdr->frame_control)))
drivers/net/wireless/realtek/rtl8xxxu/core.c
5024
else if (ieee80211_is_mgmt(hdr->frame_control))
drivers/net/wireless/realtek/rtl8xxxu/core.c
5141
struct ieee80211_hdr *hdr)
drivers/net/wireless/realtek/rtl8xxxu/core.c
5143
struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)hdr;
drivers/net/wireless/realtek/rtl8xxxu/core.c
5184
rtl8xxxu_fill_txdesc_v1(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
5192
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5201
seq_number = IEEE80211_SEQ_TO_SN(le16_to_cpu(hdr->seq_ctrl));
drivers/net/wireless/realtek/rtl8xxxu/core.c
5205
if (ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/realtek/rtl8xxxu/core.c
5215
if (ieee80211_is_mgmt(hdr->frame_control)) {
drivers/net/wireless/realtek/rtl8xxxu/core.c
5222
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/realtek/rtl8xxxu/core.c
5259
rtl8xxxu_fill_txdesc_v2(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
5268
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5281
seq_number = IEEE80211_SEQ_TO_SN(le16_to_cpu(hdr->seq_ctrl));
drivers/net/wireless/realtek/rtl8xxxu/core.c
5284
if (ieee80211_is_data(hdr->frame_control)) {
drivers/net/wireless/realtek/rtl8xxxu/core.c
5296
if (ieee80211_is_mgmt(hdr->frame_control)) {
drivers/net/wireless/realtek/rtl8xxxu/core.c
5333
rtl8xxxu_fill_txdesc_v3(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
5342
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5347
seq_number = IEEE80211_SEQ_TO_SN(le16_to_cpu(hdr->seq_ctrl));
drivers/net/wireless/realtek/rtl8xxxu/core.c
5349
if (ieee80211_is_data(hdr->frame_control)) {
drivers/net/wireless/realtek/rtl8xxxu/core.c
5369
if (ieee80211_is_mgmt(hdr->frame_control)) {
drivers/net/wireless/realtek/rtl8xxxu/core.c
5376
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/realtek/rtl8xxxu/core.c
5416
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtl8xxxu/core.c
5451
if (ieee80211_is_action(hdr->frame_control))
drivers/net/wireless/realtek/rtl8xxxu/core.c
5452
rtl8xxxu_dump_action(dev, hdr);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5459
queue = rtl8xxxu_queue_select(hdr, skb);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5471
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
drivers/net/wireless/realtek/rtl8xxxu/core.c
5472
is_broadcast_ether_addr(ieee80211_get_DA(hdr))) {
drivers/net/wireless/realtek/rtl8xxxu/core.c
5502
if (ieee80211_is_data_qos(hdr->frame_control) && sta) {
drivers/net/wireless/realtek/rtl8xxxu/core.c
5505
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5521
if (ieee80211_is_data_qos(hdr->frame_control) &&
drivers/net/wireless/realtek/rtl8xxxu/core.c
5541
priv->fops->fill_txdesc(hw, hdr, tx_info, tx_desc, sgi, short_preamble,
drivers/net/wireless/realtek/rtl8xxxu/core.c
5623
struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
5629
ether_addr_equal(priv->vifs[port_num]->bss_conf.bssid, hdr->addr2);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5643
u32 rxmcs, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
5657
!ieee80211_is_ctl(hdr->frame_control) &&
drivers/net/wireless/realtek/rtl8xxxu/core.c
5659
(rtl8xxxu_is_packet_match_bssid(priv, hdr, 0) ||
drivers/net/wireless/realtek/rtl8xxxu/core.c
5660
rtl8xxxu_is_packet_match_bssid(priv, hdr, 1));
drivers/net/wireless/realtek/rtl8xxxu/core.c
5677
u32 rxmcs, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
5691
u32 rxmcs, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
5696
!ieee80211_is_ctl(hdr->frame_control) &&
drivers/net/wireless/realtek/rtl8xxxu/core.c
5698
(rtl8xxxu_is_packet_match_bssid(priv, hdr, 0) ||
drivers/net/wireless/realtek/rtl8xxxu/core.c
5699
rtl8xxxu_is_packet_match_bssid(priv, hdr, 1));
drivers/net/wireless/realtek/rtl8xxxu/core.c
5730
u32 rxmcs, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
5745
u32 rxmcs, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
5756
rxmcs, hdr, crc_icv_err);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5761
rxmcs, hdr, crc_icv_err);
drivers/net/wireless/realtek/rtl8xxxu/core.c
5766
rxmcs, hdr, crc_icv_err);
drivers/net/wireless/realtek/rtl8xxxu/core.c
6209
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtl8xxxu/core.c
6219
struct ieee80211_hdr *hdr = iter_data->hdr;
drivers/net/wireless/realtek/rtl8xxxu/core.c
6228
if (!(ether_addr_equal(vif->addr, hdr->addr1) ||
drivers/net/wireless/realtek/rtl8xxxu/core.c
6229
ieee80211_is_beacon(hdr->frame_control)))
drivers/net/wireless/realtek/rtl8xxxu/core.c
6232
sta = ieee80211_find_sta_by_ifaddr(priv->hw, hdr->addr2,
drivers/net/wireless/realtek/rtl8xxxu/core.c
6241
static inline u8 *get_hdr_bssid(struct ieee80211_hdr *hdr)
drivers/net/wireless/realtek/rtl8xxxu/core.c
6243
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtl8xxxu/core.c
6247
bssid = hdr->addr1;
drivers/net/wireless/realtek/rtl8xxxu/core.c
6249
bssid = hdr->addr2;
drivers/net/wireless/realtek/rtl8xxxu/core.c
6251
bssid = hdr->addr3;
drivers/net/wireless/realtek/rtl8xxxu/core.c
6258
struct ieee80211_hdr *hdr)
drivers/net/wireless/realtek/rtl8xxxu/core.c
6262
if (ieee80211_is_ctl(hdr->frame_control))
drivers/net/wireless/realtek/rtl8xxxu/core.c
6266
data.hdr = hdr;
drivers/net/wireless/realtek/rtl8xxxu/core.c
6268
data.bssid = get_hdr_bssid(hdr);
drivers/net/wireless/realtek/rtl8xxxu/core.c
6332
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtl8xxxu/core.c
6340
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtl8xxxu/core.c
6345
hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
6350
hdr);
drivers/net/wireless/realtek/rtl8xxxu/core.c
6449
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtl8xxxu/core.c
6453
rx_desc->rxmcs, hdr,
drivers/net/wireless/realtek/rtl8xxxu/core.c
6458
hdr);
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
1975
u32 rxmcs, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
1991
void (*fill_txdesc) (struct ieee80211_hw *hw, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
2129
u32 rxmcs, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
2134
u32 rxmcs, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
2141
void rtl8xxxu_fill_txdesc_v1(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
2146
void rtl8xxxu_fill_txdesc_v2(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
2151
void rtl8xxxu_fill_txdesc_v3(struct ieee80211_hw *hw, struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtlwifi/base.c
1243
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/base.c
1299
if (is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/realtek/rtlwifi/base.c
1301
else if (is_broadcast_ether_addr(hdr->addr1))
drivers/net/wireless/realtek/rtlwifi/base.c
1343
struct ieee80211_hdr *hdr, u16 tid)
drivers/net/wireless/realtek/rtlwifi/base.c
1349
skb_delba = rtl_make_del_ba(hw, hdr->addr2, hdr->addr3, tid);
drivers/net/wireless/realtek/rtlwifi/base.c
1370
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/base.c
1390
is_tx ? "Tx" : "Rx", hdr->addr2);
drivers/net/wireless/realtek/rtlwifi/base.c
1401
sta = rtl_find_sta(hw, hdr->addr3);
drivers/net/wireless/realtek/rtlwifi/base.c
1422
process_agg_start(hw, hdr, tid);
drivers/net/wireless/realtek/rtlwifi/base.c
1429
is_tx ? "Tx" : "Rx", hdr->addr2);
drivers/net/wireless/realtek/rtlwifi/base.c
1433
"ACT_ADDBADEL From :%pM\n", hdr->addr2);
drivers/net/wireless/realtek/rtlwifi/base.c
1899
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/base.c
1908
if (!ieee80211_is_beacon(hdr->frame_control) &&
drivers/net/wireless/realtek/rtlwifi/base.c
1909
!ieee80211_is_probe_resp(hdr->frame_control))
drivers/net/wireless/realtek/rtlwifi/base.c
1917
if (!ether_addr_equal(hdr->addr3, rtlpriv->mac80211.bssid))
drivers/net/wireless/realtek/rtlwifi/base.c
1985
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/base.c
1996
if (!ieee80211_is_beacon(hdr->frame_control) &&
drivers/net/wireless/realtek/rtlwifi/base.c
1997
!ieee80211_is_probe_resp(hdr->frame_control))
drivers/net/wireless/realtek/rtlwifi/base.c
2003
if (memcmp(iter->bssid, hdr->addr3, ETH_ALEN) == 0) {
drivers/net/wireless/realtek/rtlwifi/base.c
2008
hdr->addr3, rtlpriv->scan_list.num);
drivers/net/wireless/realtek/rtlwifi/base.c
2019
memcpy(entry->bssid, hdr->addr3, ETH_ALEN);
drivers/net/wireless/realtek/rtlwifi/base.c
2024
hdr->addr3, rtlpriv->scan_list.num);
drivers/net/wireless/realtek/rtlwifi/base.c
2617
struct ieee80211_hdr *hdr = (void *)data;
drivers/net/wireless/realtek/rtlwifi/base.c
2649
if (!ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/realtek/rtlwifi/base.c
2657
if (!ether_addr_equal_64bits(hdr->addr3, rtlpriv->mac80211.bssid))
drivers/net/wireless/realtek/rtlwifi/pci.c
1011
struct ieee80211_hdr *hdr = NULL;
drivers/net/wireless/realtek/rtlwifi/pci.c
1040
hdr = rtl_get_hdr(pskb);
drivers/net/wireless/realtek/rtlwifi/pci.c
1046
rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *)pdesc,
drivers/net/wireless/realtek/rtlwifi/pci.c
1533
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/pci.c
1535
u8 *pda_addr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/pci.c
1546
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM);
drivers/net/wireless/realtek/rtlwifi/pci.c
1600
rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *)pdesc,
drivers/net/wireless/realtek/rtlwifi/pci.c
39
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/pci.c
49
hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/pci.c
51
if (is_multicast_ether_addr(hdr->addr1) ||
drivers/net/wireless/realtek/rtlwifi/pci.c
52
is_broadcast_ether_addr(hdr->addr1))
drivers/net/wireless/realtek/rtlwifi/pci.c
665
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/pci.c
748
hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/pci.c
755
if (is_broadcast_ether_addr(hdr->addr1)) {
drivers/net/wireless/realtek/rtlwifi/pci.c
757
} else if (is_multicast_ether_addr(hdr->addr1)) {
drivers/net/wireless/realtek/rtlwifi/ps.c
466
struct ieee80211_hdr *hdr = data;
drivers/net/wireless/realtek/rtlwifi/ps.c
492
if (!ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/realtek/rtlwifi/ps.c
500
if (!ether_addr_equal_64bits(hdr->addr3, rtlpriv->mac80211.bssid))
drivers/net/wireless/realtek/rtlwifi/ps.c
958
struct ieee80211_hdr *hdr = data;
drivers/net/wireless/realtek/rtlwifi/ps.c
969
if (!ether_addr_equal_64bits(hdr->addr3, rtlpriv->mac80211.bssid))
drivers/net/wireless/realtek/rtlwifi/ps.c
973
if (!(ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/realtek/rtlwifi/ps.c
974
ieee80211_is_probe_resp(hdr->frame_control) ||
drivers/net/wireless/realtek/rtlwifi/ps.c
975
ieee80211_is_action(hdr->frame_control)))
drivers/net/wireless/realtek/rtlwifi/ps.c
978
if (ieee80211_is_action(hdr->frame_control))
drivers/net/wireless/realtek/rtlwifi/rc.c
215
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/rc.c
225
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
drivers/net/wireless/realtek/rtlwifi/rc.c
226
is_broadcast_ether_addr(ieee80211_get_DA(hdr)))
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
279
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
288
hdr = (struct ieee80211_hdr *)tmp_buf;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
289
fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
290
praddr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
291
psaddr = ieee80211_get_SA(hdr);
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
296
hdr->addr1 : ieee80211_has_fromds(fc) ?
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
297
hdr->addr2 : hdr->addr3)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
304
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
374
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
419
hdr = (struct ieee80211_hdr *)(skb->data + status->rx_drvinfo_size
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
442
if ((!_ieee80211_is_robust_mgmt_frame(hdr)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
443
(ieee80211_has_protected(hdr->frame_control)))
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
477
struct ieee80211_hdr *hdr, u8 *pdesc8,
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
489
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
493
bool firstseg = ((hdr->seq_ctrl &
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
495
bool lastseg = ((hdr->frame_control &
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
510
seq_number = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
659
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
660
is_broadcast_ether_addr(ieee80211_get_DA(hdr))) {
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
676
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c
677
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.h
783
struct ieee80211_hdr *hdr, u8 *pdesc_tx,
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
220
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
229
hdr = (struct ieee80211_hdr *)tmp_buf;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
230
fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
233
praddr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
238
(c_fc & IEEE80211_FCTL_TODS) ? hdr->addr1 :
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
239
(c_fc & IEEE80211_FCTL_FROMDS) ? hdr->addr2 :
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
240
hdr->addr3) &&
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
263
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
289
hdr = (struct ieee80211_hdr *)(skb->data + stats->rx_drvinfo_size
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
312
if ((_ieee80211_is_robust_mgmt_frame(hdr)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
313
(ieee80211_has_protected(hdr->frame_control)))
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
343
struct ieee80211_hdr *hdr, u8 *pdesc8,
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
355
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
357
bool firstseg = ((hdr->seq_ctrl &
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
360
bool lastseg = ((hdr->frame_control &
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
384
seq_number = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
509
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
510
is_broadcast_ether_addr(ieee80211_get_DA(hdr))) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
525
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c
526
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.h
513
struct ieee80211_hdr *hdr, u8 *pdesc,
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c
718
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c
726
hdr = (struct ieee80211_hdr *)tmp_buf;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c
727
fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c
730
praddr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c
734
(cpu_fc & IEEE80211_FCTL_TODS) ? hdr->addr1 :
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c
735
(cpu_fc & IEEE80211_FCTL_FROMDS) ? hdr->addr2 :
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c
736
hdr->addr3) &&
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
358
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
404
hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
405
fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
417
(u32)hdr->addr1[0], (u32)hdr->addr1[1],
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
418
(u32)hdr->addr1[2], (u32)hdr->addr1[3],
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
419
(u32)hdr->addr1[4], (u32)hdr->addr1[5]);
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
475
struct ieee80211_hdr *hdr, u8 *pdesc_tx,
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
489
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
498
seq_number = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
513
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
605
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
606
is_broadcast_ether_addr(ieee80211_get_DA(hdr)))
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
618
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c
619
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.h
388
struct ieee80211_hdr *hdr, u8 *pdesc_tx,
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
354
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
364
hdr = (struct ieee80211_hdr *)tmp_buf;
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
365
fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
368
praddr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
371
(cfc & IEEE80211_FCTL_TODS) ? hdr->addr1 :
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
372
(cfc & IEEE80211_FCTL_FROMDS) ? hdr->addr2 :
drivers/net/wireless/realtek/rtlwifi/rtl8192d/trx_common.c
373
hdr->addr3) &&
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c
240
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c
241
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c
45
struct ieee80211_hdr *hdr, u8 *pdesc8,
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c
58
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c
62
bool firstseg = ((hdr->seq_ctrl &
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c
64
bool lastseg = ((hdr->frame_control &
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c
76
seq_number = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.h
125
struct ieee80211_hdr *hdr, u8 *pdesc,
drivers/net/wireless/realtek/rtlwifi/rtl8192du/trx.c
108
tid = ieee80211_get_tid(hdr);
drivers/net/wireless/realtek/rtlwifi/rtl8192du/trx.c
123
seq_number = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtlwifi/rtl8192du/trx.c
209
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
drivers/net/wireless/realtek/rtlwifi/rtl8192du/trx.c
210
is_broadcast_ether_addr(ieee80211_get_DA(hdr)))
drivers/net/wireless/realtek/rtlwifi/rtl8192du/trx.c
62
struct ieee80211_hdr *hdr, u8 *pdesc_tx,
drivers/net/wireless/realtek/rtlwifi/rtl8192du/trx.c
74
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192du/trx.h
47
struct ieee80211_hdr *hdr, u8 *pdesc,
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
222
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
232
hdr = (struct ieee80211_hdr *)tmp_buf;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
233
fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
234
praddr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
235
psaddr = ieee80211_get_SA(hdr);
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
241
hdr->addr1 :
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
243
hdr->addr2 : hdr->addr3)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
258
if (packet_matchbssid && ieee80211_is_data_qos(hdr->frame_control) &&
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
259
!is_multicast_ether_addr(ieee80211_get_DA(hdr))) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
334
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
372
hdr = (struct ieee80211_hdr *)(skb->data + status->rx_drvinfo_size +
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
395
if ((!_ieee80211_is_robust_mgmt_frame(hdr)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
396
(ieee80211_has_protected(hdr->frame_control)))
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
642
struct ieee80211_hdr *hdr, u8 *pdesc8,
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
655
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
657
bool firstseg = ((hdr->seq_ctrl &
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
659
bool lastseg = ((hdr->frame_control &
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
673
seq_number = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
825
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c
826
is_broadcast_ether_addr(ieee80211_get_DA(hdr))) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.h
725
struct ieee80211_hdr *hdr, u8 *pdesc_tx,
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
200
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
209
hdr = (struct ieee80211_hdr *)tmp_buf;
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
210
fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
213
praddr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
217
(cfc & IEEE80211_FCTL_TODS) ? hdr->addr1 :
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
218
(cfc & IEEE80211_FCTL_FROMDS) ? hdr->addr2 :
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
219
hdr->addr3) &&
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
240
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
285
hdr = (struct ieee80211_hdr *)(skb->data +
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
288
if ((_ieee80211_is_robust_mgmt_frame(hdr)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
289
(ieee80211_has_protected(hdr->frame_control)))
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
313
struct ieee80211_hdr *hdr, u8 *pdesc8,
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
325
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
328
bool firstseg = (!(hdr->seq_ctrl & cpu_to_le16(IEEE80211_SCTL_FRAG)));
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
329
bool lastseg = (!(hdr->frame_control &
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c
348
seq_number = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.h
8
struct ieee80211_hdr *hdr, u8 *pdesc,
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c
181
static bool is_fw_header(struct rtlwifi_firmware_header *hdr)
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/sw.c
183
return (le16_to_cpu(hdr->signature) & 0xfff0) == 0x2300;
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
224
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
233
hdr = (struct ieee80211_hdr *)tmp_buf;
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
234
fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
235
type = WLAN_FC_GET_TYPE(hdr->frame_control);
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
236
praddr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
240
hdr->addr1 : (fc & IEEE80211_FCTL_FROMDS) ?
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
241
hdr->addr2 : hdr->addr3)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
248
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
266
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
292
hdr = (struct ieee80211_hdr *)(skb->data + status->rx_drvinfo_size
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
315
if ((!_ieee80211_is_robust_mgmt_frame(hdr)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
316
(ieee80211_has_protected(hdr->frame_control)))
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
342
struct ieee80211_hdr *hdr, u8 *pdesc_tx,
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
356
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
358
bool firstseg = ((hdr->seq_ctrl &
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
361
bool lastseg = ((hdr->frame_control &
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
382
seq_number = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
510
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
511
is_broadcast_ether_addr(ieee80211_get_DA(hdr))) {
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
526
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c
527
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.h
515
struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c
185
static bool is_fw_header(struct rtlwifi_firmware_header *hdr)
drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c
187
return (le16_to_cpu(hdr->signature) & 0xfff0) == 0x5300;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
196
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
205
hdr = (struct ieee80211_hdr *)tmp_buf;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
206
fc = le16_to_cpu(hdr->frame_control);
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
207
type = WLAN_FC_GET_TYPE(hdr->frame_control);
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
208
praddr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
209
psaddr = ieee80211_get_SA(hdr);
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
214
hdr->addr1 : (fc & IEEE80211_FCTL_FROMDS) ?
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
215
hdr->addr2 : hdr->addr3)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
227
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
301
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
347
hdr = (struct ieee80211_hdr *)(skb->data + status->rx_drvinfo_size +
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
370
if ((!_ieee80211_is_robust_mgmt_frame(hdr)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
371
(ieee80211_has_protected(hdr->frame_control)))
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
403
struct ieee80211_hdr *hdr, u8 *pdesc8,
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
415
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
419
bool firstseg = ((hdr->seq_ctrl &
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
421
bool lastseg = ((hdr->frame_control &
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
435
seq_number = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
579
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c
580
is_broadcast_ether_addr(ieee80211_get_DA(hdr))) {
drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.h
628
struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
282
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
291
hdr = (struct ieee80211_hdr *)tmp_buf;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
292
fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
293
praddr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
294
psaddr = ieee80211_get_SA(hdr);
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
300
hdr->addr1 :
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
302
hdr->addr2 : hdr->addr3)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
309
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
318
ieee80211_is_data_qos(hdr->frame_control) &&
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
319
!is_multicast_ether_addr(ieee80211_get_DA(hdr))) {
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
438
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
492
hdr = (struct ieee80211_hdr *)(skb->data +
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
522
if ((!_ieee80211_is_robust_mgmt_frame(hdr)) &&
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
523
(ieee80211_has_protected(hdr->frame_control)))
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
663
struct ieee80211_hdr *hdr, u8 *pdesc8, u8 *txbd,
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
675
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
679
bool firstseg = ((hdr->seq_ctrl &
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
681
bool lastseg = ((hdr->frame_control &
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
688
seq_number = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
822
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)) ||
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c
823
is_broadcast_ether_addr(ieee80211_get_DA(hdr))) {
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.h
634
struct ieee80211_hdr *hdr, u8 *pdesc_tx, u8 *txbd,
drivers/net/wireless/realtek/rtlwifi/usb.c
374
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/usb.c
386
hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/usb.c
387
fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/usb.c
391
if (is_broadcast_ether_addr(hdr->addr1)) {
drivers/net/wireless/realtek/rtlwifi/usb.c
393
} else if (is_multicast_ether_addr(hdr->addr1)) {
drivers/net/wireless/realtek/rtlwifi/usb.c
416
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/usb.c
428
hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/usb.c
429
fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/usb.c
433
if (is_broadcast_ether_addr(hdr->addr1)) {
drivers/net/wireless/realtek/rtlwifi/usb.c
435
} else if (is_multicast_ether_addr(hdr->addr1)) {
drivers/net/wireless/realtek/rtlwifi/usb.c
502
static unsigned int _rtl_rx_get_padding(struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtlwifi/usb.c
510
if (NET_IP_ALIGN == 0 || len < sizeof(*hdr))
drivers/net/wireless/realtek/rtlwifi/usb.c
517
if (ieee80211_is_data_qos(hdr->frame_control)) {
drivers/net/wireless/realtek/rtlwifi/usb.c
518
u8 *qc = ieee80211_get_qos_ctl(hdr);
drivers/net/wireless/realtek/rtlwifi/usb.c
525
if ((unsigned long)qc - (unsigned long)hdr < len &&
drivers/net/wireless/realtek/rtlwifi/usb.c
530
if (ieee80211_has_a4(hdr->frame_control))
drivers/net/wireless/realtek/rtlwifi/usb.c
552
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtlwifi/usb.c
567
hdr = (void *)(_urb->transfer_buffer + RTL_RX_DESC_SIZE);
drivers/net/wireless/realtek/rtlwifi/usb.c
568
padding = _rtl_rx_get_padding(hdr, size - RTL_RX_DESC_SIZE);
drivers/net/wireless/realtek/rtlwifi/usb.c
876
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/usb.c
877
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/usb.c
878
u8 *pda_addr = hdr->addr1;
drivers/net/wireless/realtek/rtlwifi/usb.c
888
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM);
drivers/net/wireless/realtek/rtlwifi/usb.c
898
rtlpriv->cfg->ops->fill_tx_desc(hw, hdr, (u8 *)pdesc, NULL, info, sta, skb,
drivers/net/wireless/realtek/rtlwifi/usb.c
911
struct ieee80211_hdr *hdr = rtl_get_hdr(skb);
drivers/net/wireless/realtek/rtlwifi/usb.c
912
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtlwifi/wifi.h
2196
struct ieee80211_hdr *hdr, u8 *pdesc_tx,
drivers/net/wireless/realtek/rtlwifi/wifi.h
2260
bool (*is_fw_header)(struct rtlwifi_firmware_header *hdr);
drivers/net/wireless/realtek/rtw88/main.c
439
struct rtw_fwcd_hdr *hdr;
drivers/net/wireless/realtek/rtw88/main.c
453
hdr = (struct rtw_fwcd_hdr *)(desc->next);
drivers/net/wireless/realtek/rtw88/main.c
454
hdr->item = item;
drivers/net/wireless/realtek/rtw88/main.c
455
hdr->size = size;
drivers/net/wireless/realtek/rtw88/main.c
456
hdr->padding1 = 0x01234567;
drivers/net/wireless/realtek/rtw88/main.c
457
hdr->padding2 = 0x89abcdef;
drivers/net/wireless/realtek/rtw88/main.h
664
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtw88/phy.c
677
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtw88/phy.c
707
struct ieee80211_hdr *hdr = pkt_stat->hdr;
drivers/net/wireless/realtek/rtw88/phy.c
711
ieee80211_is_ctl(hdr->frame_control))
drivers/net/wireless/realtek/rtw88/phy.c
715
data.hdr = hdr;
drivers/net/wireless/realtek/rtw88/phy.c
717
data.bssid = get_hdr_bssid(hdr);
drivers/net/wireless/realtek/rtw88/rx.c
107
struct ieee80211_hdr *hdr = iter_data->hdr;
drivers/net/wireless/realtek/rtw88/rx.c
116
if (!(ether_addr_equal(vif->addr, hdr->addr1) ||
drivers/net/wireless/realtek/rtw88/rx.c
117
ieee80211_is_beacon(hdr->frame_control)))
drivers/net/wireless/realtek/rtw88/rx.c
120
rtw_rx_phy_stat(rtwdev, pkt_stat, hdr);
drivers/net/wireless/realtek/rtw88/rx.c
121
sta = ieee80211_find_sta_by_ifaddr(rtwdev->hw, hdr->addr2,
drivers/net/wireless/realtek/rtw88/rx.c
132
struct ieee80211_hdr *hdr)
drivers/net/wireless/realtek/rtw88/rx.c
137
ieee80211_is_ctl(hdr->frame_control))
drivers/net/wireless/realtek/rtw88/rx.c
14
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtw88/rx.c
141
data.hdr = hdr;
drivers/net/wireless/realtek/rtw88/rx.c
143
data.bssid = get_hdr_bssid(hdr);
drivers/net/wireless/realtek/rtw88/rx.c
17
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw88/rx.c
19
if (!ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/realtek/rtw88/rx.c
198
struct ieee80211_hdr *hdr,
drivers/net/wireless/realtek/rtw88/rx.c
22
if (!is_broadcast_ether_addr(hdr->addr1) &&
drivers/net/wireless/realtek/rtw88/rx.c
23
!is_multicast_ether_addr(hdr->addr1)) {
drivers/net/wireless/realtek/rtw88/rx.c
253
rtw_rx_addr_match(rtwdev, pkt_stat, hdr);
drivers/net/wireless/realtek/rtw88/rx.c
270
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtw88/rx.c
306
hdr = phy_status + pkt_stat->drv_info_sz;
drivers/net/wireless/realtek/rtw88/rx.c
307
pkt_stat->hdr = hdr;
drivers/net/wireless/realtek/rtw88/rx.c
312
rtw_rx_fill_rx_status(rtwdev, pkt_stat, hdr, rx_status);
drivers/net/wireless/realtek/rtw88/rx.c
37
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtw88/rx.c
44
struct ieee80211_hdr *hdr)
drivers/net/wireless/realtek/rtw88/rx.c
53
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/realtek/rtw88/tx.c
15
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtw88/tx.c
18
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw88/tx.c
20
if (!ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/realtek/rtw88/tx.c
23
if (!is_broadcast_ether_addr(hdr->addr1) &&
drivers/net/wireless/realtek/rtw88/tx.c
24
!is_multicast_ether_addr(hdr->addr1)) {
drivers/net/wireless/realtek/rtw88/tx.c
336
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw88/tx.c
352
seq = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtw88/tx.c
409
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw88/tx.c
413
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtw88/tx.c
429
bmc = is_broadcast_ether_addr(hdr->addr1) ||
drivers/net/wireless/realtek/rtw88/tx.c
430
is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/realtek/rtw88/tx.c
452
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw88/tx.c
463
bmc = is_broadcast_ether_addr(hdr->addr1) ||
drivers/net/wireless/realtek/rtw88/tx.c
464
is_multicast_ether_addr(hdr->addr1);
drivers/net/wireless/realtek/rtw88/tx.c
733
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw88/tx.c
734
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtw88/tx.c
742
else if (is_broadcast_ether_addr(hdr->addr1) ||
drivers/net/wireless/realtek/rtw88/tx.c
743
is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/realtek/rtw88/usb.c
553
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw88/usb.c
554
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtw88/usb.c
559
else if (is_broadcast_ether_addr(hdr->addr1) ||
drivers/net/wireless/realtek/rtw88/usb.c
560
is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/realtek/rtw88/util.h
28
static inline u8 *get_hdr_bssid(struct ieee80211_hdr *hdr)
drivers/net/wireless/realtek/rtw88/util.h
30
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtw88/util.h
34
bssid = hdr->addr1;
drivers/net/wireless/realtek/rtw88/util.h
36
bssid = hdr->addr2;
drivers/net/wireless/realtek/rtw88/util.h
38
bssid = hdr->addr3;
drivers/net/wireless/realtek/rtw89/acpi.c
1053
const struct rtw89_acpi_static_sar_hdr *hdr;
drivers/net/wireless/realtek/rtw89/acpi.c
1067
if (len <= sizeof(*hdr)) {
drivers/net/wireless/realtek/rtw89/acpi.c
1072
hdr = (typeof(hdr))data->buf;
drivers/net/wireless/realtek/rtw89/acpi.c
1074
parm.cid = le16_to_cpu(hdr->cid);
drivers/net/wireless/realtek/rtw89/acpi.c
1075
parm.rev = hdr->rev;
drivers/net/wireless/realtek/rtw89/acpi.c
1077
parm.pld_len = len - sizeof(*hdr);
drivers/net/wireless/realtek/rtw89/acpi.c
1083
rec->load(rtwdev, rec, hdr->content, &tmp);
drivers/net/wireless/realtek/rtw89/acpi.c
1101
const struct rtw89_acpi_dynamic_sar_hdr *hdr;
drivers/net/wireless/realtek/rtw89/acpi.c
1114
if (len <= sizeof(*hdr)) {
drivers/net/wireless/realtek/rtw89/acpi.c
1119
hdr = (typeof(hdr))data->buf;
drivers/net/wireless/realtek/rtw89/acpi.c
1121
parm.cid = le16_to_cpu(hdr->cid);
drivers/net/wireless/realtek/rtw89/acpi.c
1122
parm.rev = hdr->rev;
drivers/net/wireless/realtek/rtw89/acpi.c
1123
parm.tbl_cnt = hdr->cnt;
drivers/net/wireless/realtek/rtw89/acpi.c
1124
parm.pld_len = len - sizeof(*hdr);
drivers/net/wireless/realtek/rtw89/acpi.c
1130
for (unsigned int i = 0; i < hdr->cnt; i++) {
drivers/net/wireless/realtek/rtw89/acpi.c
1131
const u8 *content = hdr->content + rec->id.size * i;
drivers/net/wireless/realtek/rtw89/acpi.c
1141
cfg->valid_num = hdr->cnt;
drivers/net/wireless/realtek/rtw89/core.c
1211
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/realtek/rtw89/core.c
1232
seq = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/realtek/rtw89/core.c
1241
is_bmc = (is_broadcast_ether_addr(hdr->addr1) ||
drivers/net/wireless/realtek/rtw89/core.c
1242
is_multicast_ether_addr(hdr->addr1));
drivers/net/wireless/realtek/rtw89/core.c
2177
const struct rtw89_phy_sts_hdr_v2 *hdr = phy_ppdu->buf + PHY_STS_HDR_LEN;
drivers/net/wireless/realtek/rtw89/core.c
2179
phy_ppdu->rx_path_en = le32_get_bits(hdr->w0, RTW89_PHY_STS_HDR_V2_W0_PATH_EN);
drivers/net/wireless/realtek/rtw89/core.c
2184
const struct rtw89_phy_sts_hdr *hdr = phy_ppdu->buf;
drivers/net/wireless/realtek/rtw89/core.c
2187
phy_ppdu->ie = le32_get_bits(hdr->w0, RTW89_PHY_STS_HDR_W0_IE_MAP);
drivers/net/wireless/realtek/rtw89/core.c
2188
phy_ppdu->rssi_avg = le32_get_bits(hdr->w0, RTW89_PHY_STS_HDR_W0_RSSI_AVG);
drivers/net/wireless/realtek/rtw89/core.c
2189
rssi[RF_PATH_A] = le32_get_bits(hdr->w1, RTW89_PHY_STS_HDR_W1_RSSI_A);
drivers/net/wireless/realtek/rtw89/core.c
2190
rssi[RF_PATH_B] = le32_get_bits(hdr->w1, RTW89_PHY_STS_HDR_W1_RSSI_B);
drivers/net/wireless/realtek/rtw89/core.c
2191
rssi[RF_PATH_C] = le32_get_bits(hdr->w1, RTW89_PHY_STS_HDR_W1_RSSI_C);
drivers/net/wireless/realtek/rtw89/core.c
2192
rssi[RF_PATH_D] = le32_get_bits(hdr->w1, RTW89_PHY_STS_HDR_W1_RSSI_D);
drivers/net/wireless/realtek/rtw89/core.c
2194
phy_ppdu->hdr_2_en = le32_get_bits(hdr->w0, RTW89_PHY_STS_HDR_W0_HDR_2_EN);
drivers/net/wireless/realtek/rtw89/core.c
2202
const struct rtw89_phy_sts_hdr *hdr = phy_ppdu->buf;
drivers/net/wireless/realtek/rtw89/core.c
2206
physts_valid = le32_get_bits(hdr->w0, RTW89_PHY_STS_HDR_W0_VALID);
drivers/net/wireless/realtek/rtw89/core.c
2210
len_from_header = le32_get_bits(hdr->w0, RTW89_PHY_STS_HDR_W0_LEN) << 3;
drivers/net/wireless/realtek/rtw89/core.c
2506
struct ieee80211_hdr *hdr, size_t len)
drivers/net/wireless/realtek/rtw89/core.c
2508
struct ieee80211_mgmt *mgmt = (typeof(mgmt))hdr;
drivers/net/wireless/realtek/rtw89/core.c
2957
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw89/core.c
2966
(ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/realtek/rtw89/core.c
2967
ieee80211_is_probe_resp(hdr->frame_control)))
drivers/net/wireless/realtek/rtw89/core.c
2980
if (ieee80211_is_trigger(hdr->frame_control)) {
drivers/net/wireless/realtek/rtw89/core.c
2985
target_bssid = ieee80211_is_beacon(hdr->frame_control) &&
drivers/net/wireless/realtek/rtw89/core.c
2996
if (ieee80211_is_beacon(hdr->frame_control)) {
drivers/net/wireless/realtek/rtw89/core.c
2999
rtw89_vif_sync_bcn_tsf(rtwvif_link, hdr, skb->len);
drivers/net/wireless/realtek/rtw89/core.c
3016
if (!ether_addr_equal(bss_conf->addr, hdr->addr1))
drivers/net/wireless/realtek/rtw89/core.c
361
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw89/core.c
3628
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw89/core.c
363
if (!ieee80211_is_data(hdr->frame_control))
drivers/net/wireless/realtek/rtw89/core.c
3640
if (ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/realtek/rtw89/core.c
3641
ieee80211_is_probe_resp(hdr->frame_control))
drivers/net/wireless/realtek/rtw89/core.c
366
if (is_broadcast_ether_addr(hdr->addr1) ||
drivers/net/wireless/realtek/rtw89/core.c
367
is_multicast_ether_addr(hdr->addr1))
drivers/net/wireless/realtek/rtw89/core.c
3751
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw89/core.c
3771
if (ieee80211_is_pspoll(hdr->frame_control))
drivers/net/wireless/realtek/rtw89/core.c
3773
else if (ieee80211_has_pm(hdr->frame_control) &&
drivers/net/wireless/realtek/rtw89/core.c
3774
(ieee80211_is_data_qos(hdr->frame_control) ||
drivers/net/wireless/realtek/rtw89/core.c
3775
ieee80211_is_qos_nullfunc(hdr->frame_control)))
drivers/net/wireless/realtek/rtw89/core.c
3776
ieee80211_sta_uapsd_trigger(sta, ieee80211_get_tid(hdr));
drivers/net/wireless/realtek/rtw89/core.c
4215
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtw89/core.c
4245
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw89/core.c
4247
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM);
drivers/net/wireless/realtek/rtw89/core.c
574
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/realtek/rtw89/core.c
575
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtw89/core.c
759
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/realtek/rtw89/core.c
760
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtw89/core.c
935
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/realtek/rtw89/core.c
937
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtw89/core.c
974
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/realtek/rtw89/core.c
975
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtw89/core.c
985
hdr = data;
drivers/net/wireless/realtek/rtw89/core.c
987
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_ORDER);
drivers/net/wireless/realtek/rtw89/core.h
7492
static inline u8 *get_hdr_bssid(struct ieee80211_hdr *hdr)
drivers/net/wireless/realtek/rtw89/core.h
7494
__le16 fc = hdr->frame_control;
drivers/net/wireless/realtek/rtw89/core.h
7497
return hdr->addr1;
drivers/net/wireless/realtek/rtw89/core.h
7499
return hdr->addr2;
drivers/net/wireless/realtek/rtw89/core.h
7501
return hdr->addr3;
drivers/net/wireless/realtek/rtw89/efuse_be.c
223
u32 hdr, page_offset;
drivers/net/wireless/realtek/rtw89/efuse_be.c
249
hdr = get_efuse_blk_idx_dav_be(hdr1, hdr2);
drivers/net/wireless/realtek/rtw89/efuse_be.c
252
blk_idx = u32_get_bits(hdr, EFUSE_HDR_OFFSET_DAV_MASK);
drivers/net/wireless/realtek/rtw89/efuse_be.c
253
word_en = u32_get_bits(hdr, EFUSE_HDR_WORD_EN_MASK);
drivers/net/wireless/realtek/rtw89/efuse_be.c
263
hdr = get_efuse_blk_idx_be(hdr1, hdr2, hdr3);
drivers/net/wireless/realtek/rtw89/efuse_be.c
265
blk_page = u32_get_bits(hdr, EFUSE_HDR_PAGE_MASK);
drivers/net/wireless/realtek/rtw89/efuse_be.c
266
blk_idx = u32_get_bits(hdr, EFUSE_HDR_OFFSET_MASK);
drivers/net/wireless/realtek/rtw89/efuse_be.c
267
word_en = u32_get_bits(hdr, EFUSE_HDR_WORD_EN_MASK);
drivers/net/wireless/realtek/rtw89/efuse_be.c
272
rtw89_err(rtwdev, "[ERR]read hdr:0x%X\n", hdr);
drivers/net/wireless/realtek/rtw89/fw.c
1509
const struct rtw89_fw_element_hdr *hdr;
drivers/net/wireless/realtek/rtw89/fw.c
1522
while (offset + sizeof(*hdr) < firmware->size) {
drivers/net/wireless/realtek/rtw89/fw.c
1523
hdr = (const struct rtw89_fw_element_hdr *)(firmware->data + offset);
drivers/net/wireless/realtek/rtw89/fw.c
1525
elm_size = le32_to_cpu(hdr->size);
drivers/net/wireless/realtek/rtw89/fw.c
1531
elem_id = le32_to_cpu(hdr->id);
drivers/net/wireless/realtek/rtw89/fw.c
1539
ret = handler->fn(rtwdev, hdr, handler->arg);
drivers/net/wireless/realtek/rtw89/fw.c
1547
handler->name, hdr->ver);
drivers/net/wireless/realtek/rtw89/fw.c
1551
offset += sizeof(*hdr) + elm_size;
drivers/net/wireless/realtek/rtw89/fw.c
1569
struct fwcmd_hdr *hdr;
drivers/net/wireless/realtek/rtw89/fw.c
1571
hdr = (struct fwcmd_hdr *)skb_push(skb, 8);
drivers/net/wireless/realtek/rtw89/fw.c
1575
hdr->hdr0 = cpu_to_le32(FIELD_PREP(H2C_HDR_DEL_TYPE, type) |
drivers/net/wireless/realtek/rtw89/fw.c
1581
hdr->hdr1 = cpu_to_le32(FIELD_PREP(H2C_HDR_TOTAL_LEN,
drivers/net/wireless/realtek/rtw89/fw.c
1594
struct fwcmd_hdr *hdr;
drivers/net/wireless/realtek/rtw89/fw.c
1596
hdr = (struct fwcmd_hdr *)skb_push(skb, 8);
drivers/net/wireless/realtek/rtw89/fw.c
1598
hdr->hdr0 = cpu_to_le32(FIELD_PREP(H2C_HDR_DEL_TYPE, type) |
drivers/net/wireless/realtek/rtw89/fw.c
1604
hdr->hdr1 = cpu_to_le32(FIELD_PREP(H2C_HDR_TOTAL_LEN,
drivers/net/wireless/realtek/rtw89/fw.c
2252
goto hdr;
drivers/net/wireless/realtek/rtw89/fw.c
2257
hdr:
drivers/net/wireless/realtek/rtw89/fw.c
2810
struct ieee80211_hdr_3addr *hdr;
drivers/net/wireless/realtek/rtw89/fw.c
2823
skb = dev_alloc_skb(sizeof(*hdr) + sec_hdr_len + sizeof(*eapol_pkt));
drivers/net/wireless/realtek/rtw89/fw.c
2827
hdr = skb_put_zero(skb, sizeof(*hdr));
drivers/net/wireless/realtek/rtw89/fw.c
2828
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA |
drivers/net/wireless/realtek/rtw89/fw.c
2836
ether_addr_copy(hdr->addr1, bss_conf->bssid);
drivers/net/wireless/realtek/rtw89/fw.c
2837
ether_addr_copy(hdr->addr2, bss_conf->addr);
drivers/net/wireless/realtek/rtw89/fw.c
2838
ether_addr_copy(hdr->addr3, bss_conf->bssid);
drivers/net/wireless/realtek/rtw89/fw.c
2856
struct ieee80211_hdr_3addr *hdr;
drivers/net/wireless/realtek/rtw89/fw.c
2860
skb = dev_alloc_skb(sizeof(*hdr) + sec_hdr_len + sizeof(*sa_query));
drivers/net/wireless/realtek/rtw89/fw.c
2864
hdr = skb_put_zero(skb, sizeof(*hdr));
drivers/net/wireless/realtek/rtw89/fw.c
2865
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT |
drivers/net/wireless/realtek/rtw89/fw.c
2873
ether_addr_copy(hdr->addr1, bss_conf->bssid);
drivers/net/wireless/realtek/rtw89/fw.c
2874
ether_addr_copy(hdr->addr2, bss_conf->addr);
drivers/net/wireless/realtek/rtw89/fw.c
2875
ether_addr_copy(hdr->addr3, bss_conf->bssid);
drivers/net/wireless/realtek/rtw89/fw.c
2894
struct ieee80211_hdr_3addr *hdr;
drivers/net/wireless/realtek/rtw89/fw.c
2900
skb = dev_alloc_skb(sizeof(*hdr) + sec_hdr_len + sizeof(*arp_skb));
drivers/net/wireless/realtek/rtw89/fw.c
2904
hdr = skb_put_zero(skb, sizeof(*hdr));
drivers/net/wireless/realtek/rtw89/fw.c
2912
hdr->frame_control = fc;
drivers/net/wireless/realtek/rtw89/fw.c
2913
ether_addr_copy(hdr->addr1, rtwvif_link->bssid);
drivers/net/wireless/realtek/rtw89/fw.c
2914
ether_addr_copy(hdr->addr2, rtwvif_link->mac_addr);
drivers/net/wireless/realtek/rtw89/fw.c
2915
ether_addr_copy(hdr->addr3, rtwvif_link->bssid);
drivers/net/wireless/realtek/rtw89/fw.c
4615
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtw89/fw.c
4646
hdr = (struct ieee80211_hdr *)skb_beacon;
drivers/net/wireless/realtek/rtw89/fw.c
4647
tim_offset -= ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/realtek/rtw89/fw.c
4694
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtw89/fw.c
4725
hdr = (struct ieee80211_hdr *)skb_beacon;
drivers/net/wireless/realtek/rtw89/fw.c
4726
tim_offset -= ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/realtek/rtw89/fw.c
5579
h2c->hdr.type = type;
drivers/net/wireless/realtek/rtw89/fw.c
5580
h2c->hdr.len = len - H2C_LEN_CXDRVHDR;
drivers/net/wireless/realtek/rtw89/fw.c
5644
h2c->hdr.type = type;
drivers/net/wireless/realtek/rtw89/fw.c
5645
h2c->hdr.ver = btc->ver->fcxinit;
drivers/net/wireless/realtek/rtw89/fw.c
5646
h2c->hdr.len = len - H2C_LEN_CXDRVHDR_V7;
drivers/net/wireless/realtek/rtw89/fw.c
5943
h2c->hdr.type = type;
drivers/net/wireless/realtek/rtw89/fw.c
5944
h2c->hdr.ver = btc->ver->fwlrole;
drivers/net/wireless/realtek/rtw89/fw.c
5945
h2c->hdr.len = len - H2C_LEN_CXDRVHDR_V7;
drivers/net/wireless/realtek/rtw89/fw.c
5989
h2c->hdr.type = type;
drivers/net/wireless/realtek/rtw89/fw.c
5990
h2c->hdr.ver = btc->ver->fwlrole;
drivers/net/wireless/realtek/rtw89/fw.c
5991
h2c->hdr.len = len - H2C_LEN_CXDRVHDR_V7;
drivers/net/wireless/realtek/rtw89/fw.c
6032
h2c->hdr.type = type;
drivers/net/wireless/realtek/rtw89/fw.c
6033
h2c->hdr.ver = btc->ver->fcxosi;
drivers/net/wireless/realtek/rtw89/fw.c
6034
h2c->hdr.len = len - H2C_LEN_CXDRVHDR_V7;
drivers/net/wireless/realtek/rtw89/fw.c
6117
h2c->hdr.type = type;
drivers/net/wireless/realtek/rtw89/fw.c
6118
h2c->hdr.ver = btc->ver->fcxctrl;
drivers/net/wireless/realtek/rtw89/fw.c
6119
h2c->hdr.len = sizeof(*h2c) - H2C_LEN_CXDRVHDR_V7;
drivers/net/wireless/realtek/rtw89/fw.c
695
const struct rtw89_fw_hdr *hdr)
drivers/net/wireless/realtek/rtw89/fw.c
697
fw_suit->major_ver = le32_get_bits(hdr->w1, FW_HDR_W1_MAJOR_VERSION);
drivers/net/wireless/realtek/rtw89/fw.c
698
fw_suit->minor_ver = le32_get_bits(hdr->w1, FW_HDR_W1_MINOR_VERSION);
drivers/net/wireless/realtek/rtw89/fw.c
699
fw_suit->sub_ver = le32_get_bits(hdr->w1, FW_HDR_W1_SUBVERSION);
drivers/net/wireless/realtek/rtw89/fw.c
700
fw_suit->sub_idex = le32_get_bits(hdr->w1, FW_HDR_W1_SUBINDEX);
drivers/net/wireless/realtek/rtw89/fw.c
701
fw_suit->commitid = le32_get_bits(hdr->w2, FW_HDR_W2_COMMITID);
drivers/net/wireless/realtek/rtw89/fw.c
702
fw_suit->build_year = le32_get_bits(hdr->w5, FW_HDR_W5_YEAR);
drivers/net/wireless/realtek/rtw89/fw.c
703
fw_suit->build_mon = le32_get_bits(hdr->w4, FW_HDR_W4_MONTH);
drivers/net/wireless/realtek/rtw89/fw.c
704
fw_suit->build_date = le32_get_bits(hdr->w4, FW_HDR_W4_DATE);
drivers/net/wireless/realtek/rtw89/fw.c
705
fw_suit->build_hour = le32_get_bits(hdr->w4, FW_HDR_W4_HOUR);
drivers/net/wireless/realtek/rtw89/fw.c
706
fw_suit->build_min = le32_get_bits(hdr->w4, FW_HDR_W4_MIN);
drivers/net/wireless/realtek/rtw89/fw.c
707
fw_suit->cmd_ver = le32_get_bits(hdr->w7, FW_HDR_W7_CMD_VERSERION);
drivers/net/wireless/realtek/rtw89/fw.c
712
const struct rtw89_fw_hdr_v1 *hdr)
drivers/net/wireless/realtek/rtw89/fw.c
714
fw_suit->major_ver = le32_get_bits(hdr->w1, FW_HDR_V1_W1_MAJOR_VERSION);
drivers/net/wireless/realtek/rtw89/fw.c
715
fw_suit->minor_ver = le32_get_bits(hdr->w1, FW_HDR_V1_W1_MINOR_VERSION);
drivers/net/wireless/realtek/rtw89/fw.c
716
fw_suit->sub_ver = le32_get_bits(hdr->w1, FW_HDR_V1_W1_SUBVERSION);
drivers/net/wireless/realtek/rtw89/fw.c
717
fw_suit->sub_idex = le32_get_bits(hdr->w1, FW_HDR_V1_W1_SUBINDEX);
drivers/net/wireless/realtek/rtw89/fw.c
718
fw_suit->commitid = le32_get_bits(hdr->w2, FW_HDR_V1_W2_COMMITID);
drivers/net/wireless/realtek/rtw89/fw.c
719
fw_suit->build_year = le32_get_bits(hdr->w5, FW_HDR_V1_W5_YEAR);
drivers/net/wireless/realtek/rtw89/fw.c
720
fw_suit->build_mon = le32_get_bits(hdr->w4, FW_HDR_V1_W4_MONTH);
drivers/net/wireless/realtek/rtw89/fw.c
721
fw_suit->build_date = le32_get_bits(hdr->w4, FW_HDR_V1_W4_DATE);
drivers/net/wireless/realtek/rtw89/fw.c
722
fw_suit->build_hour = le32_get_bits(hdr->w4, FW_HDR_V1_W4_HOUR);
drivers/net/wireless/realtek/rtw89/fw.c
723
fw_suit->build_min = le32_get_bits(hdr->w4, FW_HDR_V1_W4_MIN);
drivers/net/wireless/realtek/rtw89/fw.c
724
fw_suit->cmd_ver = le32_get_bits(hdr->w7, FW_HDR_V1_W3_CMD_VERSERION);
drivers/net/wireless/realtek/rtw89/fw.c
7561
goto hdr;
drivers/net/wireless/realtek/rtw89/fw.c
7566
hdr:
drivers/net/wireless/realtek/rtw89/fw.c
7800
const struct rtw89_c2h_hdr *hdr = (const struct rtw89_c2h_hdr *)c2h->data;
drivers/net/wireless/realtek/rtw89/fw.c
7803
attr->category = le32_get_bits(hdr->w0, RTW89_C2H_HDR_W0_CATEGORY);
drivers/net/wireless/realtek/rtw89/fw.c
7804
attr->class = le32_get_bits(hdr->w0, RTW89_C2H_HDR_W0_CLASS);
drivers/net/wireless/realtek/rtw89/fw.c
7805
attr->func = le32_get_bits(hdr->w0, RTW89_C2H_HDR_W0_FUNC);
drivers/net/wireless/realtek/rtw89/fw.c
7806
attr->len = le32_get_bits(hdr->w1, RTW89_C2H_HDR_W1_LEN);
drivers/net/wireless/realtek/rtw89/fw.c
7952
u32p_replace_bits(&info->u.hdr.w0, info->id, RTW89_H2CREG_HDR_FUNC_MASK);
drivers/net/wireless/realtek/rtw89/fw.c
7953
u32p_replace_bits(&info->u.hdr.w0, len, RTW89_H2CREG_HDR_LEN_MASK);
drivers/net/wireless/realtek/rtw89/fw.c
7999
info->id = u32_get_bits(info->u.hdr.w0, RTW89_C2HREG_HDR_FUNC_MASK);
drivers/net/wireless/realtek/rtw89/fw.c
8001
(u32_get_bits(info->u.hdr.w0, RTW89_C2HREG_HDR_LEN_MASK) << 2) -
drivers/net/wireless/realtek/rtw89/fw.c
8201
struct ieee80211_hdr *hdr;
drivers/net/wireless/realtek/rtw89/fw.c
8234
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw89/fw.c
8235
ether_addr_copy(hdr->addr3, params->bssid);
drivers/net/wireless/realtek/rtw89/fw.c
9794
goto hdr;
drivers/net/wireless/realtek/rtw89/fw.c
9823
hdr:
drivers/net/wireless/realtek/rtw89/fw.h
130
struct rtw89_c2hreg_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
140
struct rtw89_h2creg_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
2431
struct rtw89_h2c_cxhdr_v7 hdr;
drivers/net/wireless/realtek/rtw89/fw.h
2457
struct rtw89_h2c_cxhdr_v7 hdr;
drivers/net/wireless/realtek/rtw89/fw.h
2483
struct rtw89_h2c_cxhdr_v7 hdr;
drivers/net/wireless/realtek/rtw89/fw.h
2489
struct rtw89_h2c_cxhdr_v7 hdr;
drivers/net/wireless/realtek/rtw89/fw.h
2494
struct rtw89_h2c_cxhdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
2526
struct rtw89_h2c_cxhdr_v7 hdr;
drivers/net/wireless/realtek/rtw89/fw.h
3857
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
3877
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
3893
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
3913
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
3986
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
4001
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
4064
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
4095
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
4103
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
4154
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
5141
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/fw.h
5152
struct rtw89_c2h_hdr hdr;
drivers/net/wireless/realtek/rtw89/mac.c
3098
h2c_info.u.hdr.w0 = u32_encode_bits(part_num, RTW89_H2CREG_GET_FEATURE_PART_NUM);
drivers/net/wireless/realtek/rtw89/mac.c
7184
h2c_info.content_len = sizeof(h2c_info.u.hdr);
drivers/net/wireless/realtek/rtw89/mac.c
7185
h2c_info.u.hdr.w0 = u32_encode_bits(wow_enable, RTW89_H2CREG_WOW_CPUIO_RX_CTRL_EN);
drivers/net/wireless/realtek/rtw89/phy.c
3959
(int)(len - sizeof(report->hdr)), &report->state);
drivers/net/wireless/realtek/rtw89/wow.h
131
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/realtek/rtw89/wow.h
133
if (likely(!ieee80211_is_assoc_req(hdr->frame_control)))
drivers/net/wireless/rsi/rsi_91x_mac80211.c
1319
struct ieee80211_hdr *hdr;
drivers/net/wireless/rsi/rsi_91x_mac80211.c
1326
hdr = ((struct ieee80211_hdr *)(skb->data));
drivers/net/wireless/rsi/rsi_91x_mac80211.c
1327
hdrlen = ieee80211_hdrlen(hdr->frame_control);
drivers/net/wireless/rsi/rsi_91x_mac80211.c
1340
if (ieee80211_has_protected(hdr->frame_control)) {
drivers/net/wireless/rsi/rsi_91x_mac80211.c
1365
if (vif->cfg.assoc && !(memcmp(bss->bssid, hdr->addr2, ETH_ALEN))) {
drivers/net/wireless/rsi/rsi_91x_mac80211.c
1366
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/rsi/rsi_91x_mac80211.c
1367
rsi_perform_cqm(common, hdr->addr2, rxs->signal, vif);
drivers/net/wireless/silabs/wfx/data_rx.c
40
struct ieee80211_rx_status *hdr = IEEE80211_SKB_RXCB(skb);
drivers/net/wireless/silabs/wfx/data_rx.c
44
memset(hdr, 0, sizeof(*hdr));
drivers/net/wireless/silabs/wfx/data_rx.c
47
hdr->flag |= RX_FLAG_MMIC_ERROR | RX_FLAG_IV_STRIPPED;
drivers/net/wireless/silabs/wfx/data_rx.c
56
hdr->band = NL80211_BAND_2GHZ;
drivers/net/wireless/silabs/wfx/data_rx.c
57
hdr->freq = ieee80211_channel_to_frequency(arg->channel_number, hdr->band);
drivers/net/wireless/silabs/wfx/data_rx.c
60
hdr->encoding = RX_ENC_HT;
drivers/net/wireless/silabs/wfx/data_rx.c
61
hdr->rate_idx = arg->rxed_rate - 14;
drivers/net/wireless/silabs/wfx/data_rx.c
63
hdr->rate_idx = arg->rxed_rate - 2;
drivers/net/wireless/silabs/wfx/data_rx.c
65
hdr->rate_idx = arg->rxed_rate;
drivers/net/wireless/silabs/wfx/data_rx.c
69
hdr->flag |= RX_FLAG_NO_SIGNAL_VAL;
drivers/net/wireless/silabs/wfx/data_rx.c
72
hdr->signal = arg->rcpi_rssi / 2 - 110;
drivers/net/wireless/silabs/wfx/data_rx.c
73
hdr->antenna = 0;
drivers/net/wireless/silabs/wfx/data_rx.c
76
hdr->flag |= RX_FLAG_DECRYPTED;
drivers/net/wireless/silabs/wfx/data_tx.c
200
static bool wfx_is_action_back(struct ieee80211_hdr *hdr)
drivers/net/wireless/silabs/wfx/data_tx.c
202
struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)hdr;
drivers/net/wireless/silabs/wfx/data_tx.c
242
struct ieee80211_hdr *hdr)
drivers/net/wireless/silabs/wfx/data_tx.c
246
const u8 *da = ieee80211_get_DA(hdr);
drivers/net/wireless/silabs/wfx/data_tx.c
341
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/silabs/wfx/data_tx.c
383
req->packet_id |= IEEE80211_SEQ_TO_SN(le16_to_cpu(hdr->seq_ctrl)) << 16;
drivers/net/wireless/silabs/wfx/data_tx.c
394
req->peer_sta_id = wfx_tx_get_link_id(wvif, sta, hdr);
drivers/net/wireless/silabs/wfx/data_tx.c
417
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/silabs/wfx/data_tx.c
433
if (wfx_is_action_back(hdr)) {
drivers/net/wireless/st/cw1200/pm.c
20
struct wsm_udp_port_filter_hdr hdr;
drivers/net/wireless/st/cw1200/pm.c
204
wsm_set_udp_port_filter(priv, &cw1200_udp_port_filter_on.hdr);
drivers/net/wireless/st/cw1200/pm.c
207
wsm_set_ether_type_filter(priv, &cw1200_ether_type_filter_on.hdr);
drivers/net/wireless/st/cw1200/pm.c
26
struct wsm_ether_type_filter_hdr hdr;
drivers/net/wireless/st/cw1200/pm.c
32
.hdr.num = 2,
drivers/net/wireless/st/cw1200/pm.c
56
.hdr.num = 4,
drivers/net/wireless/st/cw1200/txrx.c
1006
struct ieee80211_rx_status *hdr = IEEE80211_SKB_RXCB(skb);
drivers/net/wireless/st/cw1200/txrx.c
1015
hdr->flag = 0;
drivers/net/wireless/st/cw1200/txrx.c
1054
hdr->flag |= RX_FLAG_MMIC_ERROR;
drivers/net/wireless/st/cw1200/txrx.c
1074
hdr->band = ((arg->channel_number & 0xff00) ||
drivers/net/wireless/st/cw1200/txrx.c
1077
hdr->freq = ieee80211_channel_to_frequency(
drivers/net/wireless/st/cw1200/txrx.c
1079
hdr->band);
drivers/net/wireless/st/cw1200/txrx.c
1082
hdr->encoding = RX_ENC_HT;
drivers/net/wireless/st/cw1200/txrx.c
1083
hdr->rate_idx = arg->rx_rate - 14;
drivers/net/wireless/st/cw1200/txrx.c
1085
hdr->rate_idx = arg->rx_rate - 2;
drivers/net/wireless/st/cw1200/txrx.c
1087
hdr->rate_idx = arg->rx_rate;
drivers/net/wireless/st/cw1200/txrx.c
1090
hdr->signal = (s8)arg->rcpi_rssi;
drivers/net/wireless/st/cw1200/txrx.c
1091
hdr->antenna = 0;
drivers/net/wireless/st/cw1200/txrx.c
1098
hdr->flag |= RX_FLAG_DECRYPTED | RX_FLAG_IV_STRIPPED;
drivers/net/wireless/st/cw1200/txrx.c
1112
hdr->flag |= RX_FLAG_MMIC_STRIPPED;
drivers/net/wireless/st/cw1200/txrx.c
1145
hdr->mactime = get_unaligned_le64(skb->data + skb->len - 8);
drivers/net/wireless/st/cw1200/txrx.c
1149
hdr->mactime = 0;
drivers/net/wireless/st/cw1200/txrx.c
405
struct ieee80211_hdr *hdr;
drivers/net/wireless/st/cw1200/txrx.c
478
if (ieee80211_is_auth(t->hdr->frame_control)) {
drivers/net/wireless/st/cw1200/txrx.c
491
if (ieee80211_is_data_qos(t->hdr->frame_control)) {
drivers/net/wireless/st/cw1200/txrx.c
492
u8 *qos = ieee80211_get_qos_ctl(t->hdr);
drivers/net/wireless/st/cw1200/txrx.c
494
} else if (ieee80211_is_data(t->hdr->frame_control)) {
drivers/net/wireless/st/cw1200/txrx.c
504
!ieee80211_has_protected(t->hdr->frame_control))
drivers/net/wireless/st/cw1200/txrx.c
552
(struct ieee80211_mgmt *)t->hdr;
drivers/net/wireless/st/cw1200/txrx.c
553
if (ieee80211_is_action(t->hdr->frame_control) &&
drivers/net/wireless/st/cw1200/txrx.c
577
wsm->hdr.len = __cpu_to_le16(t->skb->len);
drivers/net/wireless/st/cw1200/txrx.c
578
wsm->hdr.id = __cpu_to_le16(0x0004);
drivers/net/wireless/st/cw1200/txrx.c
594
if (ieee80211_is_nullfunc(t->hdr->frame_control)) {
drivers/net/wireless/st/cw1200/txrx.c
596
} else if (ieee80211_is_data(t->hdr->frame_control)) {
drivers/net/wireless/st/cw1200/txrx.c
602
} else if (ieee80211_is_assoc_req(t->hdr->frame_control) ||
drivers/net/wireless/st/cw1200/txrx.c
603
ieee80211_is_reassoc_req(t->hdr->frame_control)) {
drivers/net/wireless/st/cw1200/txrx.c
605
(struct ieee80211_mgmt *)t->hdr;
drivers/net/wireless/st/cw1200/txrx.c
620
if (ieee80211_is_action(t->hdr->frame_control))
drivers/net/wireless/st/cw1200/txrx.c
622
else if (ieee80211_is_mgmt(t->hdr->frame_control))
drivers/net/wireless/st/cw1200/txrx.c
712
.hdr = (struct ieee80211_hdr *)skb->data,
drivers/net/wireless/st/cw1200/txrx.c
725
t.hdrlen = ieee80211_hdrlen(t.hdr->frame_control);
drivers/net/wireless/st/cw1200/txrx.c
726
t.da = ieee80211_get_DA(t.hdr);
drivers/net/wireless/st/cw1200/txrx.c
963
struct ieee80211_hdr *hdr;
drivers/net/wireless/st/cw1200/txrx.c
977
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/st/cw1200/txrx.c
979
sta = ieee80211_find_sta(priv->vif, hdr->addr1);
drivers/net/wireless/st/cw1200/wsm.c
1718
wsm->hdr.id &= __cpu_to_le16(
drivers/net/wireless/st/cw1200/wsm.c
1720
wsm->hdr.id |= cpu_to_le16(
drivers/net/wireless/st/cw1200/wsm.c
1725
*tx_len = __le16_to_cpu(wsm->hdr.len);
drivers/net/wireless/st/cw1200/wsm.c
1741
struct ieee80211_hdr *hdr =
drivers/net/wireless/st/cw1200/wsm.c
1748
hdr->frame_control |=
drivers/net/wireless/st/cw1200/wsm.c
866
struct ieee80211_hdr *hdr;
drivers/net/wireless/st/cw1200/wsm.c
879
hdr = (struct ieee80211_hdr *)(*skb_p)->data;
drivers/net/wireless/st/cw1200/wsm.c
882
(ieee80211_is_probe_resp(hdr->frame_control) ||
drivers/net/wireless/st/cw1200/wsm.c
883
ieee80211_is_beacon(hdr->frame_control)))
drivers/net/wireless/st/cw1200/wsm.h
801
struct wsm_hdr hdr;
drivers/net/wireless/ti/wlcore/cmd.c
1228
struct ieee80211_hdr_3addr *hdr;
drivers/net/wireless/ti/wlcore/cmd.c
1231
skb = dev_alloc_skb(sizeof(*hdr) + sizeof(__le16) + sizeof(*tmpl) +
drivers/net/wireless/ti/wlcore/cmd.c
1238
skb_reserve(skb, sizeof(*hdr) + WL1271_EXTRA_SPACE_MAX);
drivers/net/wireless/ti/wlcore/cmd.c
1289
hdr = skb_push(skb, sizeof(*hdr));
drivers/net/wireless/ti/wlcore/cmd.c
1290
memset(hdr, 0, sizeof(*hdr));
drivers/net/wireless/ti/wlcore/cmd.c
1299
hdr->frame_control = cpu_to_le16(fc);
drivers/net/wireless/ti/wlcore/cmd.c
1300
memcpy(hdr->addr1, vif->bss_conf.bssid, ETH_ALEN);
drivers/net/wireless/ti/wlcore/cmd.c
1301
memcpy(hdr->addr2, vif->addr, ETH_ALEN);
drivers/net/wireless/ti/wlcore/cmd.c
1302
eth_broadcast_addr(hdr->addr3);
drivers/net/wireless/ti/wlcore/main.c
1384
struct ieee80211_hdr_3addr *hdr;
drivers/net/wireless/ti/wlcore/main.c
1388
sizeof(struct wl1271_tx_hw_descr) - sizeof(*hdr);
drivers/net/wireless/ti/wlcore/main.c
1398
hdr = skb_put_zero(skb, sizeof(*hdr));
drivers/net/wireless/ti/wlcore/main.c
1399
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA |
drivers/net/wireless/ti/wlcore/main.c
4111
struct ieee80211_hdr *hdr;
drivers/net/wireless/ti/wlcore/main.c
4169
hdr = (struct ieee80211_hdr *) beacon->data;
drivers/net/wireless/ti/wlcore/main.c
4170
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT |
drivers/net/wireless/ti/wlcore/rx.c
108
struct ieee80211_hdr *hdr;
drivers/net/wireless/ti/wlcore/rx.c
145
hdr = (void *)(data + sizeof(*desc) + offset_to_data);
drivers/net/wireless/ti/wlcore/rx.c
151
ieee80211_hdrlen(hdr->frame_control)));
drivers/net/wireless/ti/wlcore/rx.c
177
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ti/wlcore/rx.c
178
if (ieee80211_is_beacon(hdr->frame_control))
drivers/net/wireless/ti/wlcore/rx.c
180
if (ieee80211_is_data_present(hdr->frame_control))
drivers/net/wireless/ti/wlcore/rx.c
184
ieee80211_is_probe_resp(hdr->frame_control));
drivers/net/wireless/ti/wlcore/rx.c
187
seq_num = (le16_to_cpu(hdr->seq_ctrl) & IEEE80211_SCTL_SEQ) >> 4;
drivers/net/wireless/ti/wlcore/tx.c
146
struct ieee80211_hdr *hdr;
drivers/net/wireless/ti/wlcore/tx.c
151
hdr = (struct ieee80211_hdr *)skb->data;
drivers/net/wireless/ti/wlcore/tx.c
152
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)))
drivers/net/wireless/ti/wlcore/tx.c
261
struct ieee80211_hdr *hdr;
drivers/net/wireless/ti/wlcore/tx.c
267
hdr = (struct ieee80211_hdr *)(frame_start + extra);
drivers/net/wireless/ti/wlcore/tx.c
268
frame_control = hdr->frame_control;
drivers/net/wireless/ti/wlcore/tx.c
273
memmove(frame_start, hdr, hdrlen);
drivers/net/wireless/ti/wlcore/tx.c
699
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)(skb->data);
drivers/net/wireless/ti/wlcore/tx.c
701
return ieee80211_is_data_present(hdr->frame_control);
drivers/net/wireless/ti/wlcore/tx.c
79
struct ieee80211_hdr *hdr;
drivers/net/wireless/ti/wlcore/tx.c
81
hdr = (struct ieee80211_hdr *)(skb->data +
drivers/net/wireless/ti/wlcore/tx.c
83
if (!ieee80211_is_auth(hdr->frame_control))
drivers/net/wireless/ti/wlcore/tx.c
91
wl1271_acx_set_inconnection_sta(wl, wlvif, hdr->addr1);
drivers/net/wireless/virtual/mac80211_hwsim.c
1060
struct ieee80211_hdr *hdr;
drivers/net/wireless/virtual/mac80211_hwsim.c
1070
skb = dev_alloc_skb(sizeof(*hdr));
drivers/net/wireless/virtual/mac80211_hwsim.c
1073
hdr = skb_put(skb, sizeof(*hdr) - ETH_ALEN);
drivers/net/wireless/virtual/mac80211_hwsim.c
1074
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA |
drivers/net/wireless/virtual/mac80211_hwsim.c
1078
hdr->duration_id = cpu_to_le16(0);
drivers/net/wireless/virtual/mac80211_hwsim.c
1079
memcpy(hdr->addr1, vp->bssid, ETH_ALEN);
drivers/net/wireless/virtual/mac80211_hwsim.c
1080
memcpy(hdr->addr2, mac, ETH_ALEN);
drivers/net/wireless/virtual/mac80211_hwsim.c
1081
memcpy(hdr->addr3, vp->bssid, ETH_ALEN);
drivers/net/wireless/virtual/mac80211_hwsim.c
1264
struct hwsim_radiotap_hdr *hdr;
drivers/net/wireless/virtual/mac80211_hwsim.c
1277
skb = skb_copy_expand(tx_skb, sizeof(*hdr), 0, GFP_ATOMIC);
drivers/net/wireless/virtual/mac80211_hwsim.c
1281
hdr = skb_push(skb, sizeof(*hdr));
drivers/net/wireless/virtual/mac80211_hwsim.c
1282
hdr->hdr.it_version = PKTHDR_RADIOTAP_VERSION;
drivers/net/wireless/virtual/mac80211_hwsim.c
1283
hdr->hdr.it_pad = 0;
drivers/net/wireless/virtual/mac80211_hwsim.c
1284
hdr->hdr.it_len = cpu_to_le16(sizeof(*hdr));
drivers/net/wireless/virtual/mac80211_hwsim.c
1285
hdr->hdr.it_present = cpu_to_le32((1 << IEEE80211_RADIOTAP_FLAGS) |
drivers/net/wireless/virtual/mac80211_hwsim.c
1289
hdr->rt_tsft = __mac80211_hwsim_get_tsf(data);
drivers/net/wireless/virtual/mac80211_hwsim.c
1290
hdr->rt_flags = 0;
drivers/net/wireless/virtual/mac80211_hwsim.c
1291
hdr->rt_rate = bitrate / 5;
drivers/net/wireless/virtual/mac80211_hwsim.c
1292
hdr->rt_channel = cpu_to_le16(chan->center_freq);
drivers/net/wireless/virtual/mac80211_hwsim.c
1298
hdr->rt_chbitmask = cpu_to_le16(flags);
drivers/net/wireless/virtual/mac80211_hwsim.c
1314
struct hwsim_radiotap_ack_hdr *hdr;
drivers/net/wireless/virtual/mac80211_hwsim.c
1325
hdr = skb_put(skb, sizeof(*hdr));
drivers/net/wireless/virtual/mac80211_hwsim.c
1326
hdr->hdr.it_version = PKTHDR_RADIOTAP_VERSION;
drivers/net/wireless/virtual/mac80211_hwsim.c
1327
hdr->hdr.it_pad = 0;
drivers/net/wireless/virtual/mac80211_hwsim.c
1328
hdr->hdr.it_len = cpu_to_le16(sizeof(*hdr));
drivers/net/wireless/virtual/mac80211_hwsim.c
1329
hdr->hdr.it_present = cpu_to_le32((1 << IEEE80211_RADIOTAP_FLAGS) |
drivers/net/wireless/virtual/mac80211_hwsim.c
1331
hdr->rt_flags = 0;
drivers/net/wireless/virtual/mac80211_hwsim.c
1332
hdr->pad = 0;
drivers/net/wireless/virtual/mac80211_hwsim.c
1333
hdr->rt_channel = cpu_to_le16(chan->center_freq);
drivers/net/wireless/virtual/mac80211_hwsim.c
1335
hdr->rt_chbitmask = cpu_to_le16(flags);
drivers/net/wireless/virtual/mac80211_hwsim.c
1532
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) my_skb->data;
drivers/net/wireless/virtual/mac80211_hwsim.c
1542
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM);
drivers/net/wireless/virtual/mac80211_hwsim.c
1739
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/virtual/mac80211_hwsim.c
1741
if (!ieee80211_has_morefrags(hdr->frame_control) &&
drivers/net/wireless/virtual/mac80211_hwsim.c
1742
!is_multicast_ether_addr(hdr->addr1) &&
drivers/net/wireless/virtual/mac80211_hwsim.c
1743
(ieee80211_is_mgmt(hdr->frame_control) ||
drivers/net/wireless/virtual/mac80211_hwsim.c
1744
ieee80211_is_data(hdr->frame_control))) {
drivers/net/wireless/virtual/mac80211_hwsim.c
1749
sta = ieee80211_find_sta_by_link_addrs(data->hw, hdr->addr2,
drivers/net/wireless/virtual/mac80211_hwsim.c
1750
hdr->addr1, &link_id);
drivers/net/wireless/virtual/mac80211_hwsim.c
1754
if (ieee80211_has_pm(hdr->frame_control))
drivers/net/wireless/virtual/mac80211_hwsim.c
1780
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/virtual/mac80211_hwsim.c
1817
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM);
drivers/net/wireless/virtual/mac80211_hwsim.c
1833
if (ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/virtual/mac80211_hwsim.c
1834
ieee80211_is_probe_resp(hdr->frame_control)) {
drivers/net/wireless/virtual/mac80211_hwsim.c
1896
if (mac80211_hwsim_addr_match(data2, hdr->addr1))
drivers/net/wireless/virtual/mac80211_hwsim.c
1912
struct ieee80211_hdr *hdr,
drivers/net/wireless/virtual/mac80211_hwsim.c
1921
WARN_ON(is_multicast_ether_addr(hdr->addr1));
drivers/net/wireless/virtual/mac80211_hwsim.c
1964
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/virtual/mac80211_hwsim.c
2018
hdr, &link_sta);
drivers/net/wireless/virtual/mac80211_hwsim.c
2041
ether_addr_copy(hdr->addr1, link_sta->addr);
drivers/net/wireless/virtual/mac80211_hwsim.c
2042
ether_addr_copy(hdr->addr2, bss_conf->addr);
drivers/net/wireless/virtual/mac80211_hwsim.c
2044
if (!ieee80211_has_tods(hdr->frame_control) &&
drivers/net/wireless/virtual/mac80211_hwsim.c
2045
!ieee80211_has_fromds(hdr->frame_control)) {
drivers/net/wireless/virtual/mac80211_hwsim.c
2046
if (ether_addr_equal(hdr->addr3, sta->addr))
drivers/net/wireless/virtual/mac80211_hwsim.c
2047
ether_addr_copy(hdr->addr3, link_sta->addr);
drivers/net/wireless/virtual/mac80211_hwsim.c
2048
else if (ether_addr_equal(hdr->addr3, vif->addr))
drivers/net/wireless/virtual/mac80211_hwsim.c
2049
ether_addr_copy(hdr->addr3, bss_conf->addr);
drivers/net/wireless/virtual/mac80211_hwsim.c
2104
ieee80211_is_probe_resp(hdr->frame_control)) {
drivers/net/wireless/virtual/mac80211_hwsim.c
2136
mac80211_hwsim_monitor_ack(channel, hdr->addr2);
drivers/net/wireless/virtual/mac80211_hwsim.c
3277
struct ieee80211_hdr *hdr = (void *)skb->data;
drivers/net/wireless/virtual/mac80211_hwsim.c
3279
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM);
drivers/net/wireless/virtual/mac80211_hwsim.c
5926
void *hdr;
drivers/net/wireless/virtual/mac80211_hwsim.c
5930
hdr = genlmsg_put(skb, portid, seq, &hwsim_genl_family, flags,
drivers/net/wireless/virtual/mac80211_hwsim.c
5932
if (!hdr)
drivers/net/wireless/virtual/mac80211_hwsim.c
5936
genl_dump_check_consistent(cb, hdr);
drivers/net/wireless/virtual/mac80211_hwsim.c
5957
genlmsg_end(skb, hdr);
drivers/net/wireless/virtual/mac80211_hwsim.c
5961
genlmsg_cancel(skb, hdr);
drivers/net/wireless/virtual/mac80211_hwsim.c
6021
struct ieee80211_hdr *hdr;
drivers/net/wireless/virtual/mac80211_hwsim.c
6098
hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/virtual/mac80211_hwsim.c
6100
hdr->addr2);
drivers/net/wireless/virtual/mac80211_hwsim.c
6120
struct ieee80211_hdr *hdr;
drivers/net/wireless/virtual/mac80211_hwsim.c
6214
hdr = (void *)skb->data;
drivers/net/wireless/virtual/mac80211_hwsim.c
6216
if (ieee80211_is_beacon(hdr->frame_control) ||
drivers/net/wireless/virtual/mac80211_hwsim.c
6217
ieee80211_is_probe_resp(hdr->frame_control))
drivers/net/wireless/virtual/mac80211_hwsim.c
6605
void *hdr;
drivers/net/wireless/virtual/mac80211_hwsim.c
6634
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
drivers/net/wireless/virtual/mac80211_hwsim.c
6637
if (hdr) {
drivers/net/wireless/virtual/mac80211_hwsim.c
6638
genl_dump_check_consistent(cb, hdr);
drivers/net/wireless/virtual/mac80211_hwsim.c
6639
genlmsg_end(skb, hdr);
drivers/net/wireless/virtual/mac80211_hwsim.c
775
struct ieee80211_radiotap_header_fixed hdr;
drivers/net/wireless/virtual/mac80211_hwsim.c
784
struct ieee80211_radiotap_header_fixed hdr;
drivers/net/wireless/zydas/zd1211rw/zd_mac.c
856
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
drivers/net/wireless/zydas/zd1211rw/zd_mac.c
870
if (!ieee80211_is_pspoll(hdr->frame_control))
drivers/net/wireless/zydas/zd1211rw/zd_mac.c
871
hdr->duration_id = 0;
drivers/net/wireless/zydas/zd1211rw/zd_mac.c
881
cs_set_control(mac, cs, hdr, info);
drivers/net/wireless/zydas/zd1211rw/zd_usb.c
427
struct usb_int_header *hdr;
drivers/net/wireless/zydas/zd1211rw/zd_usb.c
447
if (urb->actual_length < sizeof(hdr)) {
drivers/net/wireless/zydas/zd1211rw/zd_usb.c
452
hdr = urb->transfer_buffer;
drivers/net/wireless/zydas/zd1211rw/zd_usb.c
453
if (hdr->type != USB_INT_TYPE) {
drivers/net/wireless/zydas/zd1211rw/zd_usb.c
463
if (hdr->id != USB_INT_ID_REGS && atomic_read(&intr->read_regs_enabled))
drivers/net/wireless/zydas/zd1211rw/zd_usb.c
466
switch (hdr->id) {
drivers/net/wireless/zydas/zd1211rw/zd_usb.c
475
(unsigned int)hdr->id);
drivers/net/wireless/zydas/zd1211rw/zd_usb.h
120
struct usb_int_header hdr;
drivers/net/wireless/zydas/zd1211rw/zd_usb.h
125
struct usb_int_header hdr;
drivers/net/wwan/qcom_bam_dmux.c
233
struct bam_dmux_hdr *hdr;
drivers/net/wwan/qcom_bam_dmux.c
237
skb = alloc_skb(sizeof(*hdr), GFP_KERNEL);
drivers/net/wwan/qcom_bam_dmux.c
241
hdr = skb_put_zero(skb, sizeof(*hdr));
drivers/net/wwan/qcom_bam_dmux.c
242
hdr->magic = BAM_DMUX_HDR_MAGIC;
drivers/net/wwan/qcom_bam_dmux.c
243
hdr->cmd = cmd;
drivers/net/wwan/qcom_bam_dmux.c
244
hdr->ch = bndev->ch;
drivers/net/wwan/qcom_bam_dmux.c
311
struct bam_dmux_hdr *hdr;
drivers/net/wwan/qcom_bam_dmux.c
320
hdr = skb_push(skb, sizeof(*hdr));
drivers/net/wwan/qcom_bam_dmux.c
321
hdr->magic = BAM_DMUX_HDR_MAGIC;
drivers/net/wwan/qcom_bam_dmux.c
322
hdr->signal = 0;
drivers/net/wwan/qcom_bam_dmux.c
323
hdr->cmd = BAM_DMUX_CMD_DATA;
drivers/net/wwan/qcom_bam_dmux.c
324
hdr->pad = pad;
drivers/net/wwan/qcom_bam_dmux.c
325
hdr->ch = bndev->ch;
drivers/net/wwan/qcom_bam_dmux.c
326
hdr->len = skb->len - sizeof(*hdr);
drivers/net/wwan/qcom_bam_dmux.c
504
struct bam_dmux_hdr *hdr = (struct bam_dmux_hdr *)skb->data;
drivers/net/wwan/qcom_bam_dmux.c
505
struct net_device *netdev = dmux->netdevs[hdr->ch];
drivers/net/wwan/qcom_bam_dmux.c
508
dev_warn(dmux->dev, "Data for inactive channel %u\n", hdr->ch);
drivers/net/wwan/qcom_bam_dmux.c
512
if (hdr->len > BAM_DMUX_MAX_DATA_SIZE) {
drivers/net/wwan/qcom_bam_dmux.c
514
hdr->len, (u16)BAM_DMUX_MAX_DATA_SIZE);
drivers/net/wwan/qcom_bam_dmux.c
520
skb_pull(skb, sizeof(*hdr));
drivers/net/wwan/qcom_bam_dmux.c
521
skb_trim(skb, hdr->len);
drivers/net/wwan/qcom_bam_dmux.c
540
static void bam_dmux_cmd_open(struct bam_dmux *dmux, struct bam_dmux_hdr *hdr)
drivers/net/wwan/qcom_bam_dmux.c
542
struct net_device *netdev = dmux->netdevs[hdr->ch];
drivers/net/wwan/qcom_bam_dmux.c
544
dev_dbg(dmux->dev, "open channel: %u\n", hdr->ch);
drivers/net/wwan/qcom_bam_dmux.c
546
if (__test_and_set_bit(hdr->ch, dmux->remote_channels)) {
drivers/net/wwan/qcom_bam_dmux.c
547
dev_warn(dmux->dev, "Channel already open: %u\n", hdr->ch);
drivers/net/wwan/qcom_bam_dmux.c
559
static void bam_dmux_cmd_close(struct bam_dmux *dmux, struct bam_dmux_hdr *hdr)
drivers/net/wwan/qcom_bam_dmux.c
561
struct net_device *netdev = dmux->netdevs[hdr->ch];
drivers/net/wwan/qcom_bam_dmux.c
563
dev_dbg(dmux->dev, "close channel: %u\n", hdr->ch);
drivers/net/wwan/qcom_bam_dmux.c
565
if (!__test_and_clear_bit(hdr->ch, dmux->remote_channels)) {
drivers/net/wwan/qcom_bam_dmux.c
566
dev_err(dmux->dev, "Channel not open: %u\n", hdr->ch);
drivers/net/wwan/qcom_bam_dmux.c
579
struct bam_dmux_hdr *hdr = (struct bam_dmux_hdr *)skb->data;
drivers/net/wwan/qcom_bam_dmux.c
583
if (hdr->magic != BAM_DMUX_HDR_MAGIC) {
drivers/net/wwan/qcom_bam_dmux.c
584
dev_err(dmux->dev, "Invalid magic in header: %#x\n", hdr->magic);
drivers/net/wwan/qcom_bam_dmux.c
588
if (hdr->ch >= BAM_DMUX_NUM_CH) {
drivers/net/wwan/qcom_bam_dmux.c
589
dev_dbg(dmux->dev, "Unsupported channel: %u\n", hdr->ch);
drivers/net/wwan/qcom_bam_dmux.c
593
switch (hdr->cmd) {
drivers/net/wwan/qcom_bam_dmux.c
598
bam_dmux_cmd_open(dmux, hdr);
drivers/net/wwan/qcom_bam_dmux.c
601
bam_dmux_cmd_close(dmux, hdr);
drivers/net/wwan/qcom_bam_dmux.c
605
hdr->cmd, hdr->ch);
drivers/nfc/mei_phy.c
102
cmd.hdr.cmd = MEI_NFC_CMD_MAINTENANCE;
drivers/nfc/mei_phy.c
103
cmd.hdr.data_size = 1;
drivers/nfc/mei_phy.c
106
MEI_DUMP_NFC_HDR("version", &cmd.hdr);
drivers/nfc/mei_phy.c
166
cmd->hdr.cmd = MEI_NFC_CMD_MAINTENANCE;
drivers/nfc/mei_phy.c
167
cmd->hdr.data_size = 3;
drivers/nfc/mei_phy.c
172
MEI_DUMP_NFC_HDR("connect request", &cmd->hdr);
drivers/nfc/mei_phy.c
187
MEI_DUMP_NFC_HDR("connect reply", &reply->hdr);
drivers/nfc/mei_phy.c
207
struct mei_nfc_hdr *hdr;
drivers/nfc/mei_phy.c
216
hdr = (struct mei_nfc_hdr *)mei_buf;
drivers/nfc/mei_phy.c
217
hdr->cmd = MEI_NFC_CMD_HCI_SEND;
drivers/nfc/mei_phy.c
218
hdr->status = 0;
drivers/nfc/mei_phy.c
219
hdr->req_id = phy->req_id;
drivers/nfc/mei_phy.c
220
hdr->reserved = 0;
drivers/nfc/mei_phy.c
221
hdr->data_size = length;
drivers/nfc/mei_phy.c
223
MEI_DUMP_NFC_HDR("send", hdr);
drivers/nfc/mei_phy.c
24
struct mei_nfc_hdr hdr;
drivers/nfc/mei_phy.c
263
struct mei_nfc_hdr *hdr;
drivers/nfc/mei_phy.c
270
hdr = (struct mei_nfc_hdr *) buf;
drivers/nfc/mei_phy.c
272
MEI_DUMP_NFC_HDR("receive", hdr);
drivers/nfc/mei_phy.c
273
if (hdr->cmd == MEI_NFC_CMD_HCI_SEND) {
drivers/nfc/mei_phy.c
274
phy->recv_req_id = hdr->req_id;
drivers/nfc/mei_phy.c
30
struct mei_nfc_hdr hdr;
drivers/nfc/nfcmrvl/fw_dnld.c
76
struct nci_data_hdr *hdr;
drivers/nfc/nfcmrvl/fw_dnld.c
82
hdr = skb_put(skb, NCI_DATA_HDR_SIZE);
drivers/nfc/nfcmrvl/fw_dnld.c
83
hdr->conn_id = NCI_CORE_LC_CONNID_PROP_FW_DL;
drivers/nfc/nfcmrvl/fw_dnld.c
84
hdr->rfu = 0;
drivers/nfc/nfcmrvl/fw_dnld.c
85
hdr->plen = plen;
drivers/nfc/nfcmrvl/fw_dnld.c
87
nci_mt_set((__u8 *)hdr, NCI_MT_DATA_PKT);
drivers/nfc/nfcmrvl/fw_dnld.c
88
nci_pbf_set((__u8 *)hdr, NCI_PBF_LAST);
drivers/nfc/nfcmrvl/main.c
57
unsigned char *hdr;
drivers/nfc/nfcmrvl/main.c
60
hdr = skb_push(skb, NFCMRVL_HCI_EVENT_HEADER_SIZE);
drivers/nfc/nfcmrvl/main.c
61
hdr[0] = NFCMRVL_HCI_COMMAND_CODE;
drivers/nfc/nfcmrvl/main.c
62
hdr[1] = NFCMRVL_HCI_OGF;
drivers/nfc/nfcmrvl/main.c
63
hdr[2] = NFCMRVL_HCI_OCF;
drivers/nfc/nfcmrvl/main.c
64
hdr[3] = len;
drivers/nfc/pn533/pn533.h
55
#define PN533_STD_IS_EXTENDED(hdr) ((hdr)->datalen == 0xFF \
drivers/nfc/pn533/pn533.h
56
&& (hdr)->datalen_checksum == 0xFF)
drivers/nfc/port100.c
1338
struct port100_tg_comm_rf_res *hdr;
drivers/nfc/port100.c
1343
hdr = (struct port100_tg_comm_rf_res *)resp->data;
drivers/nfc/port100.c
1345
status = le32_to_cpu(hdr->status);
drivers/nfc/port100.c
1348
!port100_tg_target_activated(dev, hdr->target_activated)) {
drivers/nfc/port100.c
1377
struct port100_tg_comm_rf_cmd *hdr;
drivers/nfc/port100.c
1389
hdr = (struct port100_tg_comm_rf_cmd *)skb->data;
drivers/nfc/port100.c
1391
memset(hdr, 0, sizeof(struct port100_tg_comm_rf_cmd));
drivers/nfc/port100.c
1392
hdr->guard_time = cpu_to_le16(500);
drivers/nfc/port100.c
1393
hdr->send_timeout = cpu_to_le16(0xFFFF);
drivers/nfc/port100.c
1394
hdr->recv_timeout = cpu_to_le16(timeout);
drivers/nfc/port100.c
1406
struct port100_tg_comm_rf_cmd *hdr;
drivers/nfc/port100.c
1436
hdr = (struct port100_tg_comm_rf_cmd *)skb->data;
drivers/nfc/port100.c
1438
memset(hdr, 0, sizeof(struct port100_tg_comm_rf_cmd));
drivers/nfc/port100.c
1440
hdr->guard_time = 0;
drivers/nfc/port100.c
1441
hdr->send_timeout = cpu_to_le16(0xFFFF);
drivers/nfc/port100.c
1442
hdr->mdaa = 1;
drivers/nfc/port100.c
1443
hdr->nfca_param[0] = (params->sens_res >> 8) & 0xFF;
drivers/nfc/port100.c
1444
hdr->nfca_param[1] = params->sens_res & 0xFF;
drivers/nfc/port100.c
1445
memcpy(hdr->nfca_param + 2, params->nfcid1, 3);
drivers/nfc/port100.c
1446
hdr->nfca_param[5] = params->sel_res;
drivers/nfc/port100.c
1447
memcpy(hdr->nfcf_param, params->nfcid2, 8);
drivers/nfc/port100.c
1448
hdr->nfcf_param[16] = (params->sc >> 8) & 0xFF;
drivers/nfc/port100.c
1449
hdr->nfcf_param[17] = params->sc & 0xFF;
drivers/nfc/port100.c
1450
hdr->recv_timeout = cpu_to_le16(timeout);
drivers/nfc/s3fwrn5/firmware.c
114
struct s3fwrn5_fw_header *hdr;
drivers/nfc/s3fwrn5/firmware.c
132
hdr = (struct s3fwrn5_fw_header *) rsp->data;
drivers/nfc/s3fwrn5/firmware.c
133
if (hdr->code != S3FWRN5_FW_RET_SUCCESS) {
drivers/nfc/s3fwrn5/firmware.c
152
hdr = (struct s3fwrn5_fw_header *) rsp->data;
drivers/nfc/s3fwrn5/firmware.c
153
if (hdr->code != S3FWRN5_FW_RET_SUCCESS) {
drivers/nfc/s3fwrn5/firmware.c
172
hdr = (struct s3fwrn5_fw_header *) rsp->data;
drivers/nfc/s3fwrn5/firmware.c
173
if (hdr->code != S3FWRN5_FW_RET_SUCCESS)
drivers/nfc/s3fwrn5/firmware.c
186
struct s3fwrn5_fw_header *hdr;
drivers/nfc/s3fwrn5/firmware.c
203
hdr = (struct s3fwrn5_fw_header *) rsp->data;
drivers/nfc/s3fwrn5/firmware.c
204
if (hdr->code != S3FWRN5_FW_RET_SUCCESS) {
drivers/nfc/s3fwrn5/firmware.c
224
hdr = (struct s3fwrn5_fw_header *) rsp->data;
drivers/nfc/s3fwrn5/firmware.c
225
if (hdr->code != S3FWRN5_FW_RET_SUCCESS) {
drivers/nfc/s3fwrn5/firmware.c
243
struct s3fwrn5_fw_header *hdr;
drivers/nfc/s3fwrn5/firmware.c
258
hdr = (struct s3fwrn5_fw_header *) rsp->data;
drivers/nfc/s3fwrn5/firmware.c
259
if (hdr->code != S3FWRN5_FW_RET_SUCCESS)
drivers/nfc/s3fwrn5/firmware.c
55
struct s3fwrn5_fw_header hdr;
drivers/nfc/s3fwrn5/firmware.c
58
hdr.type = type | fw_info->parity;
drivers/nfc/s3fwrn5/firmware.c
60
hdr.code = code;
drivers/nfc/s3fwrn5/firmware.c
61
hdr.len = len;
drivers/nfc/s3fwrn5/firmware.c
67
skb_put_data(skb, &hdr, S3FWRN5_FW_HDR_SIZE);
drivers/nfc/s3fwrn5/firmware.c
80
struct s3fwrn5_fw_header *hdr;
drivers/nfc/s3fwrn5/firmware.c
95
hdr = (struct s3fwrn5_fw_header *) rsp->data;
drivers/nfc/s3fwrn5/firmware.c
96
if (hdr->code != S3FWRN5_FW_RET_SUCCESS) {
drivers/nfc/s3fwrn5/i2c.c
105
skb_put_data(skb, hdr, hdr_size);
drivers/nfc/s3fwrn5/i2c.c
85
char hdr[4];
drivers/nfc/s3fwrn5/i2c.c
90
ret = i2c_master_recv(phy->i2c_dev, hdr, hdr_size);
drivers/nfc/s3fwrn5/i2c.c
98
((struct nci_ctrl_hdr *)hdr)->plen :
drivers/nfc/s3fwrn5/i2c.c
99
((struct s3fwrn5_fw_header *)hdr)->len;
drivers/ntb/ntb_transport.c
1608
struct ntb_payload_header *hdr;
drivers/ntb/ntb_transport.c
1613
hdr = offset + qp->rx_max_frame - sizeof(struct ntb_payload_header);
drivers/ntb/ntb_transport.c
1616
qp->qp_num, hdr->ver, hdr->len, hdr->flags);
drivers/ntb/ntb_transport.c
1618
if (!(hdr->flags & DESC_DONE_FLAG)) {
drivers/ntb/ntb_transport.c
1624
if (hdr->flags & LINK_DOWN_FLAG) {
drivers/ntb/ntb_transport.c
1627
hdr->flags = 0;
drivers/ntb/ntb_transport.c
1631
if (hdr->ver != (u32)qp->rx_pkts) {
drivers/ntb/ntb_transport.c
1634
qp->rx_pkts, hdr->ver);
drivers/ntb/ntb_transport.c
1646
entry->rx_hdr = hdr;
drivers/ntb/ntb_transport.c
1649
if (hdr->len > entry->len) {
drivers/ntb/ntb_transport.c
1652
hdr->len, entry->len);
drivers/ntb/ntb_transport.c
1662
qp->rx_index, hdr->ver, hdr->len, entry->len);
drivers/ntb/ntb_transport.c
1664
qp->rx_bytes += hdr->len;
drivers/ntb/ntb_transport.c
1667
entry->len = hdr->len;
drivers/ntb/ntb_transport.c
1722
struct ntb_payload_header __iomem *hdr = entry->tx_hdr;
drivers/ntb/ntb_transport.c
1751
iowrite32(entry->flags | DESC_DONE_FLAG, &hdr->flags);
drivers/ntb/ntb_transport.c
1758
ioread32(&hdr->flags);
drivers/ntb/ntb_transport.c
1908
struct ntb_payload_header __iomem *hdr;
drivers/ntb/ntb_transport.c
1915
hdr = offset + qp->tx_max_frame - sizeof(struct ntb_payload_header);
drivers/ntb/ntb_transport.c
1916
entry->tx_hdr = hdr;
drivers/ntb/ntb_transport.c
1921
iowrite32(entry->len, &hdr->len);
drivers/ntb/ntb_transport.c
1922
iowrite32((u32)qp->tx_pkts, &hdr->ver);
drivers/nvdimm/bus.c
874
struct nd_cmd_set_config_hdr *hdr = buf;
drivers/nvdimm/bus.c
876
return hdr->in_length;
drivers/nvdimm/bus.c
878
struct nd_cmd_vendor_hdr *hdr = buf;
drivers/nvdimm/bus.c
880
return hdr->in_length;
drivers/nvme/host/core.c
2193
struct nvme_fdp_config_log hdr, *h;
drivers/nvme/host/core.c
2195
size_t size = sizeof(hdr);
drivers/nvme/host/core.c
2200
NVME_CSI_NVM, &hdr, size, 0, info->endgid);
drivers/nvme/host/core.c
2208
size = le32_to_cpu(hdr.sze);
drivers/nvme/host/fc.c
1193
if (assoc_acc->hdr.w0.ls_cmd != FCNVME_LS_ACC)
drivers/nvme/host/fc.c
1195
else if (assoc_acc->hdr.desc_list_len !=
drivers/nvme/host/fc.c
1199
else if (assoc_acc->hdr.rqst.desc_tag !=
drivers/nvme/host/fc.c
1202
else if (assoc_acc->hdr.rqst.desc_len !=
drivers/nvme/host/fc.c
1205
else if (assoc_acc->hdr.rqst.w0.ls_cmd != FCNVME_LS_CREATE_ASSOCIATION)
drivers/nvme/host/fc.c
1308
if (conn_acc->hdr.w0.ls_cmd != FCNVME_LS_ACC)
drivers/nvme/host/fc.c
1310
else if (conn_acc->hdr.desc_list_len !=
drivers/nvme/host/fc.c
1313
else if (conn_acc->hdr.rqst.desc_tag != cpu_to_be32(FCNVME_LSDESC_RQST))
drivers/nvme/host/fc.c
1315
else if (conn_acc->hdr.rqst.desc_len !=
drivers/nvme/host/fc.c
1318
else if (conn_acc->hdr.rqst.w0.ls_cmd != FCNVME_LS_CREATE_CONNECTION)
drivers/nvme/host/tcp.c
1014
if (pdu->hdr.flags & NVME_TCP_F_DATA_SUCCESS) {
drivers/nvme/host/tcp.c
1481
icreq->hdr.type = nvme_tcp_icreq;
drivers/nvme/host/tcp.c
1482
icreq->hdr.hlen = sizeof(*icreq);
drivers/nvme/host/tcp.c
1483
icreq->hdr.pdo = 0;
drivers/nvme/host/tcp.c
1484
icreq->hdr.plen = cpu_to_le32(icreq->hdr.hlen);
drivers/nvme/host/tcp.c
1530
if (icresp->hdr.type != nvme_tcp_icresp) {
drivers/nvme/host/tcp.c
1532
nvme_tcp_queue_id(queue), icresp->hdr.type);
drivers/nvme/host/tcp.c
1536
if (le32_to_cpu(icresp->hdr.plen) != sizeof(*icresp)) {
drivers/nvme/host/tcp.c
1538
nvme_tcp_queue_id(queue), icresp->hdr.plen);
drivers/nvme/host/tcp.c
2610
pdu->hdr.type = nvme_tcp_cmd;
drivers/nvme/host/tcp.c
2612
pdu->hdr.flags |= NVME_TCP_F_HDGST;
drivers/nvme/host/tcp.c
2613
pdu->hdr.hlen = sizeof(*pdu);
drivers/nvme/host/tcp.c
2614
pdu->hdr.plen = cpu_to_le32(pdu->hdr.hlen + hdgst);
drivers/nvme/host/tcp.c
2650
rq->tag, nvme_cid(rq), pdu->hdr.type, cmd->common.opcode,
drivers/nvme/host/tcp.c
2729
pdu->hdr.type = nvme_tcp_cmd;
drivers/nvme/host/tcp.c
2730
pdu->hdr.flags = 0;
drivers/nvme/host/tcp.c
2732
pdu->hdr.flags |= NVME_TCP_F_HDGST;
drivers/nvme/host/tcp.c
2734
pdu->hdr.flags |= NVME_TCP_F_DDGST;
drivers/nvme/host/tcp.c
2737
pdu->hdr.hlen = sizeof(*pdu);
drivers/nvme/host/tcp.c
2738
pdu->hdr.pdo = req->pdu_len ? pdu->hdr.hlen + hdgst : 0;
drivers/nvme/host/tcp.c
2739
pdu->hdr.plen =
drivers/nvme/host/tcp.c
2740
cpu_to_le32(pdu->hdr.hlen + hdgst + req->pdu_len + ddgst);
drivers/nvme/host/tcp.c
498
struct nvme_tcp_hdr *hdr = pdu;
drivers/nvme/host/tcp.c
502
if (unlikely(!(hdr->flags & NVME_TCP_F_HDGST))) {
drivers/nvme/host/tcp.c
509
recv_digest = *(__le32 *)(pdu + hdr->hlen);
drivers/nvme/host/tcp.c
523
struct nvme_tcp_hdr *hdr = pdu;
drivers/nvme/host/tcp.c
527
len = le32_to_cpu(hdr->plen) - hdr->hlen -
drivers/nvme/host/tcp.c
528
((hdr->flags & NVME_TCP_F_HDGST) ? digest_len : 0);
drivers/nvme/host/tcp.c
530
if (unlikely(len && !(hdr->flags & NVME_TCP_F_DDGST))) {
drivers/nvme/host/tcp.c
670
if (pdu->hdr.flags & NVME_TCP_F_DATA_SUCCESS &&
drivers/nvme/host/tcp.c
671
unlikely(!(pdu->hdr.flags & NVME_TCP_F_DATA_LAST))) {
drivers/nvme/host/tcp.c
721
data->hdr.type = nvme_tcp_h2c_data;
drivers/nvme/host/tcp.c
723
data->hdr.flags = NVME_TCP_F_DATA_LAST;
drivers/nvme/host/tcp.c
725
data->hdr.flags |= NVME_TCP_F_HDGST;
drivers/nvme/host/tcp.c
727
data->hdr.flags |= NVME_TCP_F_DDGST;
drivers/nvme/host/tcp.c
728
data->hdr.hlen = sizeof(*data);
drivers/nvme/host/tcp.c
729
data->hdr.pdo = data->hdr.hlen + hdgst;
drivers/nvme/host/tcp.c
730
data->hdr.plen =
drivers/nvme/host/tcp.c
731
cpu_to_le32(data->hdr.hlen + hdgst + req->pdu_len + ddgst);
drivers/nvme/host/tcp.c
802
u32 plen = le32_to_cpu(pdu->hdr.plen);
drivers/nvme/host/tcp.c
834
struct nvme_tcp_hdr *hdr;
drivers/nvme/host/tcp.c
851
hdr = queue->pdu;
drivers/nvme/host/tcp.c
852
if (unlikely(hdr->hlen != sizeof(struct nvme_tcp_rsp_pdu))) {
drivers/nvme/host/tcp.c
853
if (!nvme_tcp_recv_pdu_supported(hdr->type))
drivers/nvme/host/tcp.c
858
hdr->type, hdr->hlen);
drivers/nvme/host/tcp.c
862
if (unlikely(hdr->type == nvme_tcp_c2h_term)) {
drivers/nvme/host/tcp.c
872
ret = nvme_tcp_verify_hdgst(queue, queue->pdu, hdr->hlen);
drivers/nvme/host/tcp.c
884
switch (hdr->type) {
drivers/nvme/host/tcp.c
899
"unsupported pdu type (%d)\n", hdr->type);
drivers/nvme/host/tcp.c
970
if (pdu->hdr.flags & NVME_TCP_F_DATA_SUCCESS) {
drivers/nvme/target/admin-cmd.c
536
struct nvme_ana_rsp_hdr hdr = { 0, };
drivers/nvme/target/admin-cmd.c
565
hdr.chgcnt = cpu_to_le64(nvmet_ana_chgcnt);
drivers/nvme/target/admin-cmd.c
566
hdr.ngrps = cpu_to_le16(ngrps);
drivers/nvme/target/admin-cmd.c
573
status = nvmet_copy_to_sgl(req, 0, &hdr, sizeof(hdr));
drivers/nvme/target/discovery.c
105
static void nvmet_format_discovery_entry(struct nvmf_disc_rsp_page_hdr *hdr,
drivers/nvme/target/discovery.c
109
struct nvmf_disc_rsp_page_entry *e = &hdr->entries[numrec];
drivers/nvme/target/discovery.c
165
struct nvmf_disc_rsp_page_hdr *hdr;
drivers/nvme/target/discovery.c
200
alloc_len = sizeof(*hdr) + entry_size * discovery_log_entries(req);
drivers/nvme/target/discovery.c
207
hdr = buffer;
drivers/nvme/target/discovery.c
211
nvmet_format_discovery_entry(hdr, req->port,
drivers/nvme/target/discovery.c
220
nvmet_format_discovery_entry(hdr, req->port,
drivers/nvme/target/discovery.c
230
nvmet_format_discovery_entry(hdr, r,
drivers/nvme/target/discovery.c
237
hdr->genctr = cpu_to_le64(nvmet_genctr);
drivers/nvme/target/discovery.c
238
hdr->numrec = cpu_to_le64(numrec);
drivers/nvme/target/discovery.c
239
hdr->recfmt = cpu_to_le16(0);
drivers/nvme/target/tcp.c
1028
struct nvme_tcp_hdr *hdr = &queue->pdu.cmd.hdr;
drivers/nvme/target/tcp.c
1034
if (hdr->type != nvme_tcp_icreq) {
drivers/nvme/target/tcp.c
1036
hdr->type);
drivers/nvme/target/tcp.c
1043
if (unlikely(hdr->type == nvme_tcp_icreq)) {
drivers/nvme/target/tcp.c
1050
if (hdr->type == nvme_tcp_h2c_data) {
drivers/nvme/target/tcp.c
1174
struct nvme_tcp_hdr *hdr = &queue->pdu.cmd.hdr;
drivers/nvme/target/tcp.c
1205
if (unlikely(!nvmet_tcp_pdu_valid(hdr->type))) {
drivers/nvme/target/tcp.c
1206
pr_err("unexpected pdu type %d\n", hdr->type);
drivers/nvme/target/tcp.c
1211
if (unlikely(hdr->hlen != nvmet_tcp_pdu_size(hdr->type))) {
drivers/nvme/target/tcp.c
1212
pr_err("pdu %d bad hlen %d\n", hdr->type, hdr->hlen);
drivers/nvme/target/tcp.c
1216
queue->left = hdr->hlen - queue->offset + hdgst;
drivers/nvme/target/tcp.c
1221
nvmet_tcp_verify_hdgst(queue, &queue->pdu, hdr->hlen)) {
drivers/nvme/target/tcp.c
1311
queue->pdu.cmd.hdr.type, le32_to_cpu(cmd->recv_ddgst),
drivers/nvme/target/tcp.c
1743
struct nvme_tcp_hdr *hdr = &queue->pdu.cmd.hdr;
drivers/nvme/target/tcp.c
1777
queue->idx, hdr->type, hdr->hlen, hdr->plen,
drivers/nvme/target/tcp.c
1779
if (hdr->type == nvme_tcp_icreq &&
drivers/nvme/target/tcp.c
1780
hdr->hlen == sizeof(struct nvme_tcp_icreq_pdu) &&
drivers/nvme/target/tcp.c
1781
hdr->plen == cpu_to_le32(sizeof(struct nvme_tcp_icreq_pdu))) {
drivers/nvme/target/tcp.c
303
struct nvme_tcp_hdr *hdr = pdu;
drivers/nvme/target/tcp.c
307
if (unlikely(!(hdr->flags & NVME_TCP_F_HDGST))) {
drivers/nvme/target/tcp.c
313
recv_digest = *(__le32 *)(pdu + hdr->hlen);
drivers/nvme/target/tcp.c
315
exp_digest = *(__le32 *)(pdu + hdr->hlen);
drivers/nvme/target/tcp.c
328
struct nvme_tcp_hdr *hdr = pdu;
drivers/nvme/target/tcp.c
332
len = le32_to_cpu(hdr->plen) - hdr->hlen -
drivers/nvme/target/tcp.c
333
(hdr->flags & NVME_TCP_F_HDGST ? digest_len : 0);
drivers/nvme/target/tcp.c
335
if (unlikely(len && !(hdr->flags & NVME_TCP_F_DDGST))) {
drivers/nvme/target/tcp.c
483
pdu->hdr.type = nvme_tcp_c2h_data;
drivers/nvme/target/tcp.c
484
pdu->hdr.flags = NVME_TCP_F_DATA_LAST | (queue->nvme_sq.sqhd_disabled ?
drivers/nvme/target/tcp.c
486
pdu->hdr.hlen = sizeof(*pdu);
drivers/nvme/target/tcp.c
487
pdu->hdr.pdo = pdu->hdr.hlen + hdgst;
drivers/nvme/target/tcp.c
488
pdu->hdr.plen =
drivers/nvme/target/tcp.c
489
cpu_to_le32(pdu->hdr.hlen + hdgst +
drivers/nvme/target/tcp.c
496
pdu->hdr.flags |= NVME_TCP_F_DDGST;
drivers/nvme/target/tcp.c
501
pdu->hdr.flags |= NVME_TCP_F_HDGST;
drivers/nvme/target/tcp.c
514
pdu->hdr.type = nvme_tcp_r2t;
drivers/nvme/target/tcp.c
515
pdu->hdr.flags = 0;
drivers/nvme/target/tcp.c
516
pdu->hdr.hlen = sizeof(*pdu);
drivers/nvme/target/tcp.c
517
pdu->hdr.pdo = 0;
drivers/nvme/target/tcp.c
518
pdu->hdr.plen = cpu_to_le32(pdu->hdr.hlen + hdgst);
drivers/nvme/target/tcp.c
525
pdu->hdr.flags |= NVME_TCP_F_HDGST;
drivers/nvme/target/tcp.c
538
pdu->hdr.type = nvme_tcp_rsp;
drivers/nvme/target/tcp.c
539
pdu->hdr.flags = 0;
drivers/nvme/target/tcp.c
540
pdu->hdr.hlen = sizeof(*pdu);
drivers/nvme/target/tcp.c
541
pdu->hdr.pdo = 0;
drivers/nvme/target/tcp.c
542
pdu->hdr.plen = cpu_to_le32(pdu->hdr.hlen + hdgst);
drivers/nvme/target/tcp.c
544
pdu->hdr.flags |= NVME_TCP_F_HDGST;
drivers/nvme/target/tcp.c
887
if (le32_to_cpu(icreq->hdr.plen) != sizeof(struct nvme_tcp_icreq_pdu)) {
drivers/nvme/target/tcp.c
889
le32_to_cpu(icreq->hdr.plen));
drivers/nvme/target/tcp.c
909
icresp->hdr.type = nvme_tcp_icresp;
drivers/nvme/target/tcp.c
910
icresp->hdr.hlen = sizeof(*icresp);
drivers/nvme/target/tcp.c
911
icresp->hdr.pdo = 0;
drivers/nvme/target/tcp.c
912
icresp->hdr.plen = cpu_to_le32(icresp->hdr.hlen);
drivers/nvme/target/tcp.c
989
exp_data_len = le32_to_cpu(data->hdr.plen) -
drivers/nvmem/imx-ocotp-scu.c
113
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/nvmem/imx-ocotp-scu.c
116
hdr->ver = IMX_SC_RPC_VERSION;
drivers/nvmem/imx-ocotp-scu.c
117
hdr->svc = IMX_SC_RPC_SVC_MISC;
drivers/nvmem/imx-ocotp-scu.c
118
hdr->func = IMX_SC_MISC_FUNC_OTP_FUSE_READ;
drivers/nvmem/imx-ocotp-scu.c
119
hdr->size = 2;
drivers/nvmem/imx-ocotp-scu.c
48
struct imx_sc_rpc_msg hdr;
drivers/nvmem/layouts/onie-tlv.c
143
static bool onie_tlv_hdr_is_valid(struct device *dev, struct onie_tlv_hdr *hdr)
drivers/nvmem/layouts/onie-tlv.c
145
if (memcmp(hdr->id, ONIE_TLV_HDR_ID, sizeof(hdr->id))) {
drivers/nvmem/layouts/onie-tlv.c
150
if (hdr->version != 0x1) {
drivers/nvmem/layouts/onie-tlv.c
189
struct onie_tlv_hdr hdr;
drivers/nvmem/layouts/onie-tlv.c
194
ret = nvmem_device_read(nvmem, 0, sizeof(hdr), &hdr);
drivers/nvmem/layouts/onie-tlv.c
198
if (!onie_tlv_hdr_is_valid(dev, &hdr)) {
drivers/nvmem/layouts/onie-tlv.c
203
hdr_len = sizeof(hdr.id) + sizeof(hdr.version) + sizeof(hdr.data_len);
drivers/nvmem/layouts/onie-tlv.c
204
data_len = be16_to_cpu(hdr.data_len);
drivers/nvmem/layouts/sl28vpd.c
100
if (hdr.magic != SL28VPD_MAGIC) {
drivers/nvmem/layouts/sl28vpd.c
101
dev_err(dev, "Invalid magic value (%02x)\n", hdr.magic);
drivers/nvmem/layouts/sl28vpd.c
105
if (hdr.version != 1) {
drivers/nvmem/layouts/sl28vpd.c
106
dev_err(dev, "Version %d is unsupported.\n", hdr.version);
drivers/nvmem/layouts/sl28vpd.c
90
struct sl28vpd_header hdr;
drivers/nvmem/layouts/sl28vpd.c
94
ret = nvmem_device_read(nvmem, 0, sizeof(hdr), &hdr);
drivers/nvmem/layouts/sl28vpd.c
97
else if (ret != sizeof(hdr))
drivers/pci/controller/cadence/pcie-cadence-ep.c
39
struct pci_epf_header *hdr)
drivers/pci/controller/cadence/pcie-cadence-ep.c
52
cdns_pcie_ep_fn_writew(pcie, fn, reg, hdr->deviceid);
drivers/pci/controller/cadence/pcie-cadence-ep.c
56
cdns_pcie_ep_fn_writew(pcie, fn, PCI_DEVICE_ID, hdr->deviceid);
drivers/pci/controller/cadence/pcie-cadence-ep.c
57
cdns_pcie_ep_fn_writeb(pcie, fn, PCI_REVISION_ID, hdr->revid);
drivers/pci/controller/cadence/pcie-cadence-ep.c
58
cdns_pcie_ep_fn_writeb(pcie, fn, PCI_CLASS_PROG, hdr->progif_code);
drivers/pci/controller/cadence/pcie-cadence-ep.c
60
hdr->subclass_code | hdr->baseclass_code << 8);
drivers/pci/controller/cadence/pcie-cadence-ep.c
62
hdr->cache_line_size);
drivers/pci/controller/cadence/pcie-cadence-ep.c
63
cdns_pcie_ep_fn_writew(pcie, fn, PCI_SUBSYSTEM_ID, hdr->subsys_id);
drivers/pci/controller/cadence/pcie-cadence-ep.c
64
cdns_pcie_ep_fn_writeb(pcie, fn, PCI_INTERRUPT_PIN, hdr->interrupt_pin);
drivers/pci/controller/cadence/pcie-cadence-ep.c
72
u32 id = CDNS_PCIE_LM_ID_VENDOR(hdr->vendorid) |
drivers/pci/controller/cadence/pcie-cadence-ep.c
73
CDNS_PCIE_LM_ID_SUBSYS(hdr->subsys_vendor_id);
drivers/pci/controller/dwc/pcie-designware-ep.c
101
hdr->subsys_vendor_id);
drivers/pci/controller/dwc/pcie-designware-ep.c
102
dw_pcie_ep_writew_dbi(ep, func_no, PCI_SUBSYSTEM_ID, hdr->subsys_id);
drivers/pci/controller/dwc/pcie-designware-ep.c
104
hdr->interrupt_pin);
drivers/pci/controller/dwc/pcie-designware-ep.c
86
struct pci_epf_header *hdr)
drivers/pci/controller/dwc/pcie-designware-ep.c
92
dw_pcie_ep_writew_dbi(ep, func_no, PCI_VENDOR_ID, hdr->vendorid);
drivers/pci/controller/dwc/pcie-designware-ep.c
93
dw_pcie_ep_writew_dbi(ep, func_no, PCI_DEVICE_ID, hdr->deviceid);
drivers/pci/controller/dwc/pcie-designware-ep.c
94
dw_pcie_ep_writeb_dbi(ep, func_no, PCI_REVISION_ID, hdr->revid);
drivers/pci/controller/dwc/pcie-designware-ep.c
95
dw_pcie_ep_writeb_dbi(ep, func_no, PCI_CLASS_PROG, hdr->progif_code);
drivers/pci/controller/dwc/pcie-designware-ep.c
97
hdr->subclass_code | hdr->baseclass_code << 8);
drivers/pci/controller/dwc/pcie-designware-ep.c
99
hdr->cache_line_size);
drivers/pci/controller/pci-hyperv.c
301
struct vmpacket_descriptor hdr;
drivers/pci/controller/pci-hyperv.c
306
struct vmpacket_descriptor hdr;
drivers/pci/controller/pci-hyperv.c
359
struct vmpacket_descriptor hdr;
drivers/pci/controller/pci-hyperv.c
372
struct vmpacket_descriptor hdr;
drivers/pci/controller/pci-hyperv.c
436
struct vmpacket_descriptor hdr;
drivers/pci/controller/pcie-rcar-ep.c
160
struct pci_epf_header *hdr)
drivers/pci/controller/pcie-rcar-ep.c
167
val = hdr->vendorid;
drivers/pci/controller/pcie-rcar-ep.c
170
val |= hdr->deviceid << 16;
drivers/pci/controller/pcie-rcar-ep.c
173
val = hdr->revid;
drivers/pci/controller/pcie-rcar-ep.c
174
val |= hdr->progif_code << 8;
drivers/pci/controller/pcie-rcar-ep.c
175
val |= hdr->subclass_code << 16;
drivers/pci/controller/pcie-rcar-ep.c
176
val |= hdr->baseclass_code << 24;
drivers/pci/controller/pcie-rcar-ep.c
180
val = hdr->subsys_vendor_id;
drivers/pci/controller/pcie-rcar-ep.c
183
val |= hdr->subsys_id << 16;
drivers/pci/controller/pcie-rcar-ep.c
186
if (hdr->interrupt_pin > PCI_INTERRUPT_INTA)
drivers/pci/controller/pcie-rcar-ep.c
189
val |= (hdr->interrupt_pin << 8);
drivers/pci/controller/pcie-rockchip-ep.c
115
struct pci_epf_header *hdr)
drivers/pci/controller/pcie-rockchip-ep.c
124
hdr->vendorid | hdr->subsys_vendor_id << 16,
drivers/pci/controller/pcie-rockchip-ep.c
129
reg = (reg & 0xFFFF) | (hdr->deviceid << 16);
drivers/pci/controller/pcie-rockchip-ep.c
133
hdr->revid |
drivers/pci/controller/pcie-rockchip-ep.c
134
hdr->progif_code << 8 |
drivers/pci/controller/pcie-rockchip-ep.c
135
hdr->subclass_code << 16 |
drivers/pci/controller/pcie-rockchip-ep.c
136
hdr->baseclass_code << 24,
drivers/pci/controller/pcie-rockchip-ep.c
138
rockchip_pcie_write(rockchip, hdr->cache_line_size,
drivers/pci/controller/pcie-rockchip-ep.c
141
rockchip_pcie_write(rockchip, hdr->subsys_id << 16,
drivers/pci/controller/pcie-rockchip-ep.c
144
rockchip_pcie_write(rockchip, hdr->interrupt_pin << 8,
drivers/pci/doe.c
589
u32 hdr = 0;
drivers/pci/doe.c
591
pci_read_config_dword(doe_mb->pdev, doe_mb->cap_offset, &hdr);
drivers/pci/doe.c
598
rc = pci_doe_discovery(doe_mb, PCI_EXT_CAP_VER(hdr), &index,
drivers/pci/pcie/rcec.c
152
u32 rcec, hdr, busn;
drivers/pci/pcie/rcec.c
171
pci_read_config_dword(dev, rcec, &hdr);
drivers/pci/pcie/rcec.c
172
ver = PCI_EXT_CAP_VER(hdr);
drivers/pci/quirks.c
1839
u8 hdr;
drivers/pci/quirks.c
1882
pci_read_config_byte(pdev, PCI_HEADER_TYPE, &hdr);
drivers/pci/quirks.c
1883
pdev->hdr_type = hdr & PCI_HEADER_TYPE_MASK;
drivers/pci/quirks.c
1884
pdev->multifunction = FIELD_GET(PCI_HEADER_TYPE_MFD, hdr);
drivers/pci/switch/switchtec.c
1020
u32 hdr;
drivers/pci/switch/switchtec.c
1026
hdr = ioread32(reg);
drivers/pci/switch/switchtec.c
1027
if (hdr & SWITCHTEC_EVENT_NOT_SUPP)
drivers/pci/switch/switchtec.c
1033
ctl->occurred = hdr & SWITCHTEC_EVENT_OCCURRED;
drivers/pci/switch/switchtec.c
1034
ctl->count = (hdr >> 5) & 0xFF;
drivers/pci/switch/switchtec.c
1037
hdr &= ~SWITCHTEC_EVENT_CLEAR;
drivers/pci/switch/switchtec.c
1039
hdr |= SWITCHTEC_EVENT_EN_IRQ;
drivers/pci/switch/switchtec.c
1041
hdr &= ~SWITCHTEC_EVENT_EN_IRQ;
drivers/pci/switch/switchtec.c
1043
hdr |= SWITCHTEC_EVENT_EN_LOG;
drivers/pci/switch/switchtec.c
1045
hdr &= ~SWITCHTEC_EVENT_EN_LOG;
drivers/pci/switch/switchtec.c
1047
hdr |= SWITCHTEC_EVENT_EN_CLI;
drivers/pci/switch/switchtec.c
1049
hdr &= ~SWITCHTEC_EVENT_EN_CLI;
drivers/pci/switch/switchtec.c
1051
hdr |= SWITCHTEC_EVENT_FATAL;
drivers/pci/switch/switchtec.c
1053
hdr &= ~SWITCHTEC_EVENT_FATAL;
drivers/pci/switch/switchtec.c
1056
iowrite32(hdr, reg);
drivers/pci/switch/switchtec.c
1059
if (hdr & SWITCHTEC_EVENT_EN_IRQ)
drivers/pci/switch/switchtec.c
1061
if (hdr & SWITCHTEC_EVENT_EN_LOG)
drivers/pci/switch/switchtec.c
1063
if (hdr & SWITCHTEC_EVENT_EN_CLI)
drivers/pci/switch/switchtec.c
1065
if (hdr & SWITCHTEC_EVENT_FATAL)
drivers/pci/switch/switchtec.c
1397
u32 hdr;
drivers/pci/switch/switchtec.c
1400
hdr = ioread32(hdr_reg);
drivers/pci/switch/switchtec.c
1402
if (hdr & SWITCHTEC_EVENT_NOT_SUPP)
drivers/pci/switch/switchtec.c
1405
if (!(hdr & SWITCHTEC_EVENT_OCCURRED && hdr & SWITCHTEC_EVENT_EN_IRQ))
drivers/pci/switch/switchtec.c
1408
dev_dbg(&stdev->dev, "%s: %d %d %x\n", __func__, eid, idx, hdr);
drivers/pci/switch/switchtec.c
1409
hdr &= ~(SWITCHTEC_EVENT_EN_IRQ | SWITCHTEC_EVENT_OCCURRED);
drivers/pci/switch/switchtec.c
1410
iowrite32(hdr, hdr_reg);
drivers/pinctrl/freescale/pinctrl-scu.c
100
hdr = &wmsg.hdr;
drivers/pinctrl/freescale/pinctrl-scu.c
101
hdr->ver = IMX_SC_RPC_VERSION;
drivers/pinctrl/freescale/pinctrl-scu.c
102
hdr->svc = IMX_SC_RPC_SVC_PAD;
drivers/pinctrl/freescale/pinctrl-scu.c
103
hdr->func = IMX_SC_PAD_FUNC_SET_WAKEUP;
drivers/pinctrl/freescale/pinctrl-scu.c
104
hdr->size = 2;
drivers/pinctrl/freescale/pinctrl-scu.c
123
hdr->ver = IMX_SC_RPC_VERSION;
drivers/pinctrl/freescale/pinctrl-scu.c
124
hdr->svc = IMX_SC_RPC_SVC_PAD;
drivers/pinctrl/freescale/pinctrl-scu.c
125
hdr->func = IMX_SC_PAD_FUNC_SET;
drivers/pinctrl/freescale/pinctrl-scu.c
126
hdr->size = 3;
drivers/pinctrl/freescale/pinctrl-scu.c
29
struct imx_sc_rpc_msg hdr;
drivers/pinctrl/freescale/pinctrl-scu.c
35
struct imx_sc_rpc_msg hdr;
drivers/pinctrl/freescale/pinctrl-scu.c
40
struct imx_sc_rpc_msg hdr;
drivers/pinctrl/freescale/pinctrl-scu.c
45
struct imx_sc_rpc_msg hdr;
drivers/pinctrl/freescale/pinctrl-scu.c
65
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/pinctrl/freescale/pinctrl-scu.c
68
hdr->ver = IMX_SC_RPC_VERSION;
drivers/pinctrl/freescale/pinctrl-scu.c
69
hdr->svc = IMX_SC_RPC_SVC_PAD;
drivers/pinctrl/freescale/pinctrl-scu.c
70
hdr->func = IMX_SC_PAD_FUNC_GET;
drivers/pinctrl/freescale/pinctrl-scu.c
71
hdr->size = 2;
drivers/pinctrl/freescale/pinctrl-scu.c
91
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/platform/chrome/cros_ec_ishtp.c
254
in_msg->hdr.channel, in_msg->hdr.status);
drivers/platform/chrome/cros_ec_ishtp.c
256
switch (in_msg->hdr.channel) {
drivers/platform/chrome/cros_ec_ishtp.c
264
if (client_data->response.token != in_msg->hdr.token) {
drivers/platform/chrome/cros_ec_ishtp.c
267
in_msg->hdr.token);
drivers/platform/chrome/cros_ec_ishtp.c
287
if (in_msg->hdr.status) {
drivers/platform/chrome/cros_ec_ishtp.c
289
in_msg->hdr.status);
drivers/platform/chrome/cros_ec_ishtp.c
331
dev_err(dev, "Invalid channel=%02d\n", in_msg->hdr.channel);
drivers/platform/chrome/cros_ec_ishtp.c
495
out_msg->hdr.channel = CROS_EC_COMMAND;
drivers/platform/chrome/cros_ec_ishtp.c
496
out_msg->hdr.status = 0;
drivers/platform/chrome/cros_ec_ishtp.c
59
struct header hdr;
drivers/platform/chrome/cros_ec_ishtp.c
64
struct header hdr;
drivers/platform/chrome/cros_typec_vdm.c
103
u32 hdr;
drivers/platform/chrome/cros_typec_vdm.c
105
hdr = VDO(amode->svid, 1, SVDM_VER_2_0, CMD_ENTER_MODE);
drivers/platform/chrome/cros_typec_vdm.c
106
hdr |= VDO_OPOS(amode->mode);
drivers/platform/chrome/cros_typec_vdm.c
108
vdm_req.vdm_data[0] = hdr;
drivers/platform/chrome/cros_typec_vdm.c
114
hdr, port->port_num);
drivers/platform/chrome/cros_typec_vdm.c
120
static int cros_typec_port_amode_vdm(struct typec_altmode *amode, const u32 hdr,
drivers/platform/chrome/cros_typec_vdm.c
131
vdm_req.vdm_data[0] = hdr;
drivers/platform/chrome/cros_typec_vdm.c
139
hdr, cnt, port->port_num);
drivers/platform/chrome/cros_typec_vdm.c
28
u32 hdr;
drivers/platform/chrome/cros_typec_vdm.c
39
hdr = resp.vdm_response[0];
drivers/platform/chrome/cros_typec_vdm.c
40
svid = PD_VDO_VID(hdr);
drivers/platform/chrome/cros_typec_vdm.c
41
dev_dbg(typec->dev, "Received VDM Attention header: %x, port: %d\n", hdr, port_num);
drivers/platform/chrome/cros_typec_vdm.c
44
CROS_EC_ALTMODE_MAX, svid, PD_VDO_OPOS(hdr));
drivers/platform/chrome/cros_typec_vdm.c
67
u32 hdr;
drivers/platform/chrome/cros_typec_vdm.c
77
hdr = resp.vdm_response[0];
drivers/platform/chrome/cros_typec_vdm.c
78
svid = PD_VDO_VID(hdr);
drivers/platform/chrome/cros_typec_vdm.c
79
dev_dbg(typec->dev, "Received VDM header: %x, port: %d\n", hdr, port_num);
drivers/platform/chrome/cros_typec_vdm.c
82
svid, PD_VDO_OPOS(hdr));
drivers/platform/chrome/cros_typec_vdm.c
89
ret = typec_altmode_vdm(amode, hdr, &resp.vdm_response[1], resp.vdm_data_objects);
drivers/platform/mellanox/mlxbf-tmfifo.c
540
struct mlxbf_tmfifo_msg_hdr hdr;
drivers/platform/mellanox/mlxbf-tmfifo.c
562
if (size + sizeof(hdr) > avail * sizeof(u64))
drivers/platform/mellanox/mlxbf-tmfifo.c
563
size = avail * sizeof(u64) - sizeof(hdr);
drivers/platform/mellanox/mlxbf-tmfifo.c
566
hdr.type = VIRTIO_ID_CONSOLE;
drivers/platform/mellanox/mlxbf-tmfifo.c
567
hdr.len = htons(size);
drivers/platform/mellanox/mlxbf-tmfifo.c
568
writeq(*(u64 *)&hdr, fifo->tx.data);
drivers/platform/mellanox/mlxbf-tmfifo.c
661
struct mlxbf_tmfifo_msg_hdr hdr;
drivers/platform/mellanox/mlxbf-tmfifo.c
668
*(u64 *)&hdr = readq(fifo->rx.data);
drivers/platform/mellanox/mlxbf-tmfifo.c
671
if (hdr.len == 0)
drivers/platform/mellanox/mlxbf-tmfifo.c
675
if (hdr.type == VIRTIO_ID_NET) {
drivers/platform/mellanox/mlxbf-tmfifo.c
680
if (ntohs(hdr.len) >
drivers/platform/mellanox/mlxbf-tmfifo.c
712
vring->pkt_len = ntohs(hdr.len) + hdr_len;
drivers/platform/mellanox/mlxbf-tmfifo.c
718
hdr.type = (vring->vdev_id == VIRTIO_ID_NET) ?
drivers/platform/mellanox/mlxbf-tmfifo.c
720
hdr.len = htons(vring->pkt_len - hdr_len);
drivers/platform/mellanox/mlxbf-tmfifo.c
721
writeq(*(u64 *)&hdr, fifo->tx.data);
drivers/platform/x86/intel/ifs/load.c
69
struct microcode_header_intel *hdr = &((struct microcode_intel *)ucode)->hdr;
drivers/platform/x86/intel/ifs/load.c
74
data_size = intel_microcode_get_datasize(hdr);
drivers/platform/x86/intel/ifs/load.c
75
total_meta = hdr->metasize;
drivers/platform/x86/intel/pmc/ssram_telemetry.c
38
u32 table, hdr;
drivers/platform/x86/intel/pmc/ssram_telemetry.c
45
hdr = readl(dvsec + PCI_DVSEC_HEADER1);
drivers/platform/x86/intel/pmc/ssram_telemetry.c
47
header.rev = PCI_DVSEC_HEADER1_REV(hdr);
drivers/platform/x86/intel/pmc/ssram_telemetry.c
48
header.length = PCI_DVSEC_HEADER1_LEN(hdr);
drivers/platform/x86/intel/vsec.c
483
u32 table, hdr;
drivers/platform/x86/intel/vsec.c
491
pci_read_config_dword(pdev, pos + PCI_DVSEC_HEADER1, &hdr);
drivers/platform/x86/intel/vsec.c
492
vid = PCI_DVSEC_HEADER1_VID(hdr);
drivers/platform/x86/intel/vsec.c
497
header.rev = PCI_DVSEC_HEADER1_REV(hdr);
drivers/platform/x86/intel/vsec.c
503
header.length = PCI_DVSEC_HEADER1_LEN(hdr);
drivers/platform/x86/intel/vsec.c
512
pci_read_config_dword(pdev, pos + PCI_DVSEC_HEADER2, &hdr);
drivers/platform/x86/intel/vsec.c
513
header.id = PCI_DVSEC_HEADER2_ID(hdr);
drivers/platform/x86/intel/vsec.c
533
u32 table, hdr;
drivers/platform/x86/intel/vsec.c
540
pci_read_config_dword(pdev, pos + PCI_VNDR_HEADER, &hdr);
drivers/platform/x86/intel/vsec.c
543
header.rev = PCI_VNDR_HEADER_REV(hdr);
drivers/platform/x86/intel/vsec.c
549
header.id = PCI_VNDR_HEADER_ID(hdr);
drivers/platform/x86/intel/vsec.c
550
header.length = PCI_VNDR_HEADER_LEN(hdr);
drivers/pmdomain/imx/scu-pd.c
334
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/pmdomain/imx/scu-pd.c
337
hdr->ver = IMX_SC_RPC_VERSION;
drivers/pmdomain/imx/scu-pd.c
338
hdr->svc = IMX_SC_RPC_SVC_PM;
drivers/pmdomain/imx/scu-pd.c
339
hdr->func = IMX_SC_PM_FUNC_GET_RESOURCE_POWER_MODE;
drivers/pmdomain/imx/scu-pd.c
340
hdr->size = 2;
drivers/pmdomain/imx/scu-pd.c
355
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/pmdomain/imx/scu-pd.c
361
hdr->ver = IMX_SC_RPC_VERSION;
drivers/pmdomain/imx/scu-pd.c
362
hdr->svc = IMX_SC_RPC_SVC_PM;
drivers/pmdomain/imx/scu-pd.c
363
hdr->func = IMX_SC_PM_FUNC_SET_RESOURCE_POWER_MODE;
drivers/pmdomain/imx/scu-pd.c
364
hdr->size = 2;
drivers/pmdomain/imx/scu-pd.c
70
struct imx_sc_rpc_msg hdr;
drivers/pmdomain/imx/scu-pd.c
84
struct imx_sc_rpc_msg hdr;
drivers/power/reset/th1520-aon-reboot.c
19
struct th1520_aon_rpc_msg_hdr hdr;
drivers/power/reset/th1520-aon-reboot.c
28
msg.hdr.svc = TH1520_AON_RPC_SVC_WDG;
drivers/power/reset/th1520-aon-reboot.c
29
msg.hdr.func = TH1520_AON_WDG_FUNC_POWER_OFF;
drivers/power/reset/th1520-aon-reboot.c
30
msg.hdr.size = TH1520_AON_RPC_MSG_NUM;
drivers/power/reset/th1520-aon-reboot.c
42
msg.hdr.svc = TH1520_AON_RPC_SVC_WDG;
drivers/power/reset/th1520-aon-reboot.c
43
msg.hdr.func = TH1520_AON_WDG_FUNC_RESTART;
drivers/power/reset/th1520-aon-reboot.c
44
msg.hdr.size = TH1520_AON_RPC_MSG_NUM;
drivers/power/supply/qcom_battmgr.c
108
struct pmic_glink_hdr hdr;
drivers/power/supply/qcom_battmgr.c
116
struct pmic_glink_hdr hdr;
drivers/power/supply/qcom_battmgr.c
123
struct pmic_glink_hdr hdr;
drivers/power/supply/qcom_battmgr.c
1260
unsigned int opcode = le32_to_cpu(resp->hdr.opcode);
drivers/power/supply/qcom_battmgr.c
128
struct pmic_glink_hdr hdr;
drivers/power/supply/qcom_battmgr.c
135
struct pmic_glink_hdr hdr;
drivers/power/supply/qcom_battmgr.c
1371
unsigned int opcode = le32_to_cpu(resp->hdr.opcode);
drivers/power/supply/qcom_battmgr.c
142
struct pmic_glink_hdr hdr;
drivers/power/supply/qcom_battmgr.c
149
struct pmic_glink_hdr hdr;
drivers/power/supply/qcom_battmgr.c
1573
const struct pmic_glink_hdr *hdr = data;
drivers/power/supply/qcom_battmgr.c
1575
unsigned int opcode = le32_to_cpu(hdr->opcode);
drivers/power/supply/qcom_battmgr.c
1590
.hdr.owner = cpu_to_le32(PMIC_GLINK_OWNER_BATTMGR),
drivers/power/supply/qcom_battmgr.c
1591
.hdr.type = cpu_to_le32(PMIC_GLINK_NOTIFY),
drivers/power/supply/qcom_battmgr.c
1592
.hdr.opcode = cpu_to_le32(BATTMGR_REQUEST_NOTIFICATION),
drivers/power/supply/qcom_battmgr.c
367
.hdr.owner = cpu_to_le32(PMIC_GLINK_OWNER_BATTMGR),
drivers/power/supply/qcom_battmgr.c
368
.hdr.type = cpu_to_le32(PMIC_GLINK_REQ_RESP),
drivers/power/supply/qcom_battmgr.c
369
.hdr.opcode = cpu_to_le32(opcode),
drivers/power/supply/qcom_battmgr.c
381
.hdr.owner = cpu_to_le32(PMIC_GLINK_OWNER_BATTMGR),
drivers/power/supply/qcom_battmgr.c
382
.hdr.type = cpu_to_le32(PMIC_GLINK_REQ_RESP),
drivers/power/supply/qcom_battmgr.c
383
.hdr.opcode = cpu_to_le32(BATTMGR_BAT_STATUS),
drivers/power/supply/qcom_battmgr.c
393
.hdr.owner = cpu_to_le32(PMIC_GLINK_OWNER_BATTMGR),
drivers/power/supply/qcom_battmgr.c
394
.hdr.type = cpu_to_le32(PMIC_GLINK_REQ_RESP),
drivers/power/supply/qcom_battmgr.c
395
.hdr.opcode = cpu_to_le32(BATTMGR_BAT_INFO),
drivers/power/supply/qcom_battmgr.c
405
.hdr.owner = cpu_to_le32(PMIC_GLINK_OWNER_BATTMGR),
drivers/power/supply/qcom_battmgr.c
406
.hdr.type = cpu_to_le32(PMIC_GLINK_REQ_RESP),
drivers/power/supply/qcom_battmgr.c
407
.hdr.opcode = cpu_to_le32(BATTMGR_BAT_CHARGE_TIME),
drivers/power/supply/qcom_battmgr.c
418
.hdr.owner = cpu_to_le32(PMIC_GLINK_OWNER_BATTMGR),
drivers/power/supply/qcom_battmgr.c
419
.hdr.type = cpu_to_le32(PMIC_GLINK_REQ_RESP),
drivers/power/supply/qcom_battmgr.c
420
.hdr.opcode = cpu_to_le32(BATTMGR_BAT_DISCHARGE_TIME),
drivers/power/supply/qcom_battmgr.c
665
.hdr.owner = cpu_to_le32(PMIC_GLINK_OWNER_BATTMGR),
drivers/power/supply/qcom_battmgr.c
666
.hdr.type = cpu_to_le32(PMIC_GLINK_REQ_RESP),
drivers/power/supply/qcom_battmgr.c
667
.hdr.opcode = cpu_to_le32(BATTMGR_CHG_CTRL_LIMIT_EN),
drivers/ps3/ps3av.c
152
static int ps3av_parse_event_packet(const struct ps3av_reply_hdr *hdr)
drivers/ps3/ps3av.c
156
if (hdr->cid & PS3AV_EVENT_CMD_MASK) {
drivers/ps3/ps3av.c
157
table = ps3av_search_cmd_table(hdr->cid, PS3AV_EVENT_CMD_MASK);
drivers/ps3/ps3av.c
161
hdr->cid, ps3av_event_get_port_id(hdr->cid),
drivers/ps3/ps3av.c
162
hdr->size);
drivers/ps3/ps3av.c
166
__func__, hdr->cid, hdr->size);
drivers/ps3/ps3av.c
281
void ps3av_set_hdr(u32 cid, u16 size, struct ps3av_send_hdr *hdr)
drivers/ps3/ps3av.c
283
hdr->version = PS3AV_VERSION;
drivers/ps3/ps3av.c
284
hdr->size = size - PS3AV_HDR_SIZE;
drivers/ps3/ps3av.c
285
hdr->cid = cid;
drivers/ptp/ptp_ines.c
454
struct ptp_header *hdr;
drivers/ptp/ptp_ines.c
462
hdr = ptp_parse_header(skb, ptp_class);
drivers/ptp/ptp_ines.c
463
if (!hdr)
drivers/ptp/ptp_ines.c
466
msgtype = ptp_get_msgtype(hdr, ptp_class);
drivers/ptp/ptp_ines.c
467
clkid = be64_to_cpup((__be64 *)&hdr->source_port_identity.clock_identity.id[0]);
drivers/ptp/ptp_ines.c
468
portn = be16_to_cpu(hdr->source_port_identity.port_number);
drivers/ptp/ptp_ines.c
469
seqid = be16_to_cpu(hdr->sequence_id);
drivers/ptp/ptp_ines.c
684
struct ptp_header *hdr;
drivers/ptp/ptp_ines.c
687
hdr = ptp_parse_header(skb, type);
drivers/ptp/ptp_ines.c
688
if (!hdr)
drivers/ptp/ptp_ines.c
691
msgtype = ptp_get_msgtype(hdr, type);
drivers/ptp/ptp_ocp.c
1779
const struct ptp_ocp_firmware_header *hdr;
drivers/ptp/ptp_ocp.c
1783
hdr = (const struct ptp_ocp_firmware_header *)fw->data;
drivers/ptp/ptp_ocp.c
1784
if (memcmp(hdr->magic, OCP_FIRMWARE_MAGIC_HEADER, 4)) {
drivers/ptp/ptp_ocp.c
1791
if (be16_to_cpu(hdr->pci_vendor_id) != bp->pdev->vendor ||
drivers/ptp/ptp_ocp.c
1792
be16_to_cpu(hdr->pci_device_id) != bp->pdev->device) {
drivers/ptp/ptp_ocp.c
1799
offset = sizeof(*hdr);
drivers/ptp/ptp_ocp.c
1800
length = be32_to_cpu(hdr->image_size);
drivers/ptp/ptp_ocp.c
1809
if (be16_to_cpu(hdr->crc) != crc) {
drivers/rapidio/rio_cm.c
1022
struct rio_ch_chan_hdr *hdr;
drivers/rapidio/rio_cm.c
1025
hdr = kzalloc_obj(*hdr);
drivers/rapidio/rio_cm.c
1026
if (hdr == NULL)
drivers/rapidio/rio_cm.c
1029
hdr->bhdr.src_id = htonl(ch->loc_destid);
drivers/rapidio/rio_cm.c
1030
hdr->bhdr.dst_id = htonl(ch->rem_destid);
drivers/rapidio/rio_cm.c
1031
hdr->dst_ch = htons(ch->rem_channel);
drivers/rapidio/rio_cm.c
1032
hdr->src_ch = htons(ch->id);
drivers/rapidio/rio_cm.c
1033
hdr->bhdr.src_mbox = cmbox;
drivers/rapidio/rio_cm.c
1034
hdr->bhdr.dst_mbox = cmbox;
drivers/rapidio/rio_cm.c
1035
hdr->bhdr.type = RIO_CM_CHAN;
drivers/rapidio/rio_cm.c
1036
hdr->ch_op = CM_CONN_ACK;
drivers/rapidio/rio_cm.c
1042
ret = riocm_post_send(ch->cmdev, ch->rdev, hdr, sizeof(*hdr));
drivers/rapidio/rio_cm.c
1045
ch->rdev, hdr, sizeof(*hdr)))
drivers/rapidio/rio_cm.c
1047
kfree(hdr);
drivers/rapidio/rio_cm.c
1392
struct rio_ch_chan_hdr *hdr;
drivers/rapidio/rio_cm.c
1399
hdr = kzalloc_obj(*hdr);
drivers/rapidio/rio_cm.c
1400
if (hdr == NULL)
drivers/rapidio/rio_cm.c
1403
hdr->bhdr.src_id = htonl(ch->loc_destid);
drivers/rapidio/rio_cm.c
1404
hdr->bhdr.dst_id = htonl(ch->rem_destid);
drivers/rapidio/rio_cm.c
1405
hdr->bhdr.src_mbox = cmbox;
drivers/rapidio/rio_cm.c
1406
hdr->bhdr.dst_mbox = cmbox;
drivers/rapidio/rio_cm.c
1407
hdr->bhdr.type = RIO_CM_CHAN;
drivers/rapidio/rio_cm.c
1408
hdr->ch_op = CM_CONN_CLOSE;
drivers/rapidio/rio_cm.c
1409
hdr->dst_ch = htons(ch->rem_channel);
drivers/rapidio/rio_cm.c
1410
hdr->src_ch = htons(ch->id);
drivers/rapidio/rio_cm.c
1416
ret = riocm_post_send(ch->cmdev, ch->rdev, hdr, sizeof(*hdr));
drivers/rapidio/rio_cm.c
1419
hdr, sizeof(*hdr)))
drivers/rapidio/rio_cm.c
1421
kfree(hdr);
drivers/rapidio/rio_cm.c
484
struct rio_ch_chan_hdr *hdr;
drivers/rapidio/rio_cm.c
489
hdr = data;
drivers/rapidio/rio_cm.c
492
hdr->ch_op, ntohs(hdr->dst_ch), ntohs(hdr->src_ch));
drivers/rapidio/rio_cm.c
494
switch (hdr->ch_op) {
drivers/rapidio/rio_cm.c
524
struct rio_ch_chan_hdr *hdr;
drivers/rapidio/rio_cm.c
527
hdr = buf;
drivers/rapidio/rio_cm.c
529
riocm_debug(RX_DATA, "for ch=%d", ntohs(hdr->dst_ch));
drivers/rapidio/rio_cm.c
531
ch = riocm_get_channel(ntohs(hdr->dst_ch));
drivers/rapidio/rio_cm.c
580
struct rio_ch_chan_hdr *hdr;
drivers/rapidio/rio_cm.c
595
hdr = data;
drivers/rapidio/rio_cm.c
597
if (hdr->bhdr.type != RIO_CM_CHAN) {
drivers/rapidio/rio_cm.c
600
hdr->bhdr.type);
drivers/rapidio/rio_cm.c
606
if (hdr->ch_op == CM_DATA_MSG)
drivers/rapidio/rio_cm.c
780
struct rio_ch_chan_hdr *hdr;
drivers/rapidio/rio_cm.c
804
hdr = buf;
drivers/rapidio/rio_cm.c
806
hdr->bhdr.src_id = htonl(ch->loc_destid);
drivers/rapidio/rio_cm.c
807
hdr->bhdr.dst_id = htonl(ch->rem_destid);
drivers/rapidio/rio_cm.c
808
hdr->bhdr.src_mbox = cmbox;
drivers/rapidio/rio_cm.c
809
hdr->bhdr.dst_mbox = cmbox;
drivers/rapidio/rio_cm.c
810
hdr->bhdr.type = RIO_CM_CHAN;
drivers/rapidio/rio_cm.c
811
hdr->ch_op = CM_DATA_MSG;
drivers/rapidio/rio_cm.c
812
hdr->dst_ch = htons(ch->rem_channel);
drivers/rapidio/rio_cm.c
813
hdr->src_ch = htons(ch->id);
drivers/rapidio/rio_cm.c
814
hdr->msg_len = htons((u16)len);
drivers/rapidio/rio_cm.c
945
struct rio_ch_chan_hdr *hdr;
drivers/rapidio/rio_cm.c
968
hdr = kzalloc_obj(*hdr);
drivers/rapidio/rio_cm.c
969
if (hdr == NULL) {
drivers/rapidio/rio_cm.c
974
hdr->bhdr.src_id = htonl(ch->loc_destid);
drivers/rapidio/rio_cm.c
975
hdr->bhdr.dst_id = htonl(peer->rdev->destid);
drivers/rapidio/rio_cm.c
976
hdr->bhdr.src_mbox = cmbox;
drivers/rapidio/rio_cm.c
977
hdr->bhdr.dst_mbox = cmbox;
drivers/rapidio/rio_cm.c
978
hdr->bhdr.type = RIO_CM_CHAN;
drivers/rapidio/rio_cm.c
979
hdr->ch_op = CM_CONN_REQ;
drivers/rapidio/rio_cm.c
980
hdr->dst_ch = htons(rem_ch);
drivers/rapidio/rio_cm.c
981
hdr->src_ch = htons(loc_ch);
drivers/rapidio/rio_cm.c
988
ret = riocm_post_send(cm, peer->rdev, hdr, sizeof(*hdr));
drivers/rapidio/rio_cm.c
991
kfree(hdr);
drivers/rapidio/rio_cm.c
993
ret = riocm_queue_req(cm, peer->rdev, hdr, sizeof(*hdr));
drivers/rapidio/rio_cm.c
995
kfree(hdr);
drivers/ras/amd/fmpm.c
105
struct cper_record_header hdr;
drivers/ras/amd/fmpm.c
231
ret = erst_write(&rec->hdr);
drivers/ras/amd/fmpm.c
485
struct cper_record_header *hdr = &rec->hdr;
drivers/ras/amd/fmpm.c
491
if (hdr->record_length && hdr->record_length < max_rec_len) {
drivers/ras/amd/fmpm.c
493
hdr->record_id, hdr->record_length, max_rec_len);
drivers/ras/amd/fmpm.c
497
memcpy(hdr->signature, CPER_SIG_RECORD, CPER_SIG_SIZE);
drivers/ras/amd/fmpm.c
498
hdr->revision = CPER_RECORD_REV;
drivers/ras/amd/fmpm.c
499
hdr->signature_end = CPER_SIG_END;
drivers/ras/amd/fmpm.c
505
hdr->section_count = 1;
drivers/ras/amd/fmpm.c
508
hdr->error_severity = CPER_SEV_RECOVERABLE;
drivers/ras/amd/fmpm.c
510
hdr->validation_bits = 0;
drivers/ras/amd/fmpm.c
511
hdr->creator_id = CPER_CREATOR_FMP;
drivers/ras/amd/fmpm.c
512
hdr->notification_type = CPER_NOTIFY_MCE;
drivers/ras/amd/fmpm.c
513
hdr->record_id = cper_next_record_id();
drivers/ras/amd/fmpm.c
514
hdr->flags = CPER_HW_ERROR_FLAGS_PREVERR;
drivers/ras/amd/fmpm.c
524
hdr->record_length = max_rec_len;
drivers/ras/amd/fmpm.c
537
if (rec->hdr.record_length == max_rec_len)
drivers/ras/amd/fmpm.c
540
if (!rec->hdr.record_length)
drivers/ras/amd/fmpm.c
557
erst_clear(rec->hdr.record_id);
drivers/ras/amd/fmpm.c
686
len = erst_read_record(record_id, &old->hdr, FMPM_MAX_REC_LEN,
drivers/remoteproc/remoteproc_core.c
1027
struct fw_rsc_hdr *hdr = (void *)rproc->table_ptr + offset;
drivers/remoteproc/remoteproc_core.c
1028
int avail = rproc->table_sz - offset - sizeof(*hdr);
drivers/remoteproc/remoteproc_core.c
1029
void *rsc = (void *)hdr + sizeof(*hdr);
drivers/remoteproc/remoteproc_core.c
1037
dev_dbg(dev, "rsc: type %d\n", hdr->type);
drivers/remoteproc/remoteproc_core.c
1039
if (hdr->type >= RSC_VENDOR_START &&
drivers/remoteproc/remoteproc_core.c
1040
hdr->type <= RSC_VENDOR_END) {
drivers/remoteproc/remoteproc_core.c
1041
ret = rproc_handle_rsc(rproc, hdr->type, rsc,
drivers/remoteproc/remoteproc_core.c
1042
offset + sizeof(*hdr), avail);
drivers/remoteproc/remoteproc_core.c
1049
hdr->type);
drivers/remoteproc/remoteproc_core.c
1053
if (hdr->type >= RSC_LAST) {
drivers/remoteproc/remoteproc_core.c
1054
dev_warn(dev, "unsupported resource %d\n", hdr->type);
drivers/remoteproc/remoteproc_core.c
1058
handler = handlers[hdr->type];
drivers/remoteproc/remoteproc_core.c
1062
ret = handler(rproc, rsc, offset + sizeof(*hdr), avail);
drivers/remoteproc/remoteproc_debugfs.c
293
struct fw_rsc_hdr *hdr = (void *)table + offset;
drivers/remoteproc/remoteproc_debugfs.c
294
void *rsc = (void *)hdr + sizeof(*hdr);
drivers/remoteproc/remoteproc_debugfs.c
296
switch (hdr->type) {
drivers/remoteproc/remoteproc_debugfs.c
299
seq_printf(seq, "Entry %d is of type %s\n", i, types[hdr->type]);
drivers/remoteproc/remoteproc_debugfs.c
309
seq_printf(seq, "Entry %d is of type %s\n", i, types[hdr->type]);
drivers/remoteproc/remoteproc_debugfs.c
319
seq_printf(seq, "Entry %d is of type %s\n", i, types[hdr->type]);
drivers/remoteproc/remoteproc_debugfs.c
327
seq_printf(seq, "Entry %d is of type %s\n", i, types[hdr->type]);
drivers/remoteproc/remoteproc_debugfs.c
351
hdr->type, hdr);
drivers/remoteproc/remoteproc_elf_helpers.h
30
static inline void elf_hdr_init_ident(struct elf32_hdr *hdr, u8 class)
drivers/remoteproc/remoteproc_elf_helpers.h
32
memcpy(hdr->e_ident, ELFMAG, SELFMAG);
drivers/remoteproc/remoteproc_elf_helpers.h
33
hdr->e_ident[EI_CLASS] = class;
drivers/remoteproc/remoteproc_elf_helpers.h
34
hdr->e_ident[EI_DATA] = ELFDATA2LSB;
drivers/remoteproc/remoteproc_elf_helpers.h
35
hdr->e_ident[EI_VERSION] = EV_CURRENT;
drivers/remoteproc/remoteproc_elf_helpers.h
36
hdr->e_ident[EI_OSABI] = ELFOSABI_NONE;
drivers/remoteproc/remoteproc_elf_helpers.h
57
ELF_GEN_FIELD_GET_SET(hdr, e_entry, u64)
drivers/remoteproc/remoteproc_elf_helpers.h
58
ELF_GEN_FIELD_GET_SET(hdr, e_phnum, u16)
drivers/remoteproc/remoteproc_elf_helpers.h
59
ELF_GEN_FIELD_GET_SET(hdr, e_shnum, u16)
drivers/remoteproc/remoteproc_elf_helpers.h
60
ELF_GEN_FIELD_GET_SET(hdr, e_phoff, u64)
drivers/remoteproc/remoteproc_elf_helpers.h
61
ELF_GEN_FIELD_GET_SET(hdr, e_shoff, u64)
drivers/remoteproc/remoteproc_elf_helpers.h
62
ELF_GEN_FIELD_GET_SET(hdr, e_shstrndx, u16)
drivers/remoteproc/remoteproc_elf_helpers.h
63
ELF_GEN_FIELD_GET_SET(hdr, e_machine, u16)
drivers/remoteproc/remoteproc_elf_helpers.h
64
ELF_GEN_FIELD_GET_SET(hdr, e_type, u16)
drivers/remoteproc/remoteproc_elf_helpers.h
65
ELF_GEN_FIELD_GET_SET(hdr, e_version, u32)
drivers/remoteproc/remoteproc_elf_helpers.h
66
ELF_GEN_FIELD_GET_SET(hdr, e_ehsize, u32)
drivers/remoteproc/remoteproc_elf_helpers.h
67
ELF_GEN_FIELD_GET_SET(hdr, e_phentsize, u16)
drivers/remoteproc/remoteproc_elf_helpers.h
68
ELF_GEN_FIELD_GET_SET(hdr, e_shentsize, u16)
drivers/remoteproc/remoteproc_elf_helpers.h
98
ELF_STRUCT_SIZE(hdr)
drivers/rpmsg/qcom_glink_native.c
1011
qcom_glink_rx_advance(glink, ALIGN(sizeof(hdr) + chunk_size, 8));
drivers/rpmsg/qcom_glink_native.c
1790
msg = container_of(&dcmd->msg, struct glink_msg, hdr);
drivers/rpmsg/qcom_glink_native.c
318
const void *hdr, size_t hlen,
drivers/rpmsg/qcom_glink_native.c
321
glink->tx_pipe->write(glink->tx_pipe, hdr, hlen, data, dlen);
drivers/rpmsg/qcom_glink_native.c
343
const void *hdr, size_t hlen,
drivers/rpmsg/qcom_glink_native.c
37
__struct_group(glink_msg_hdr, hdr, __packed,
drivers/rpmsg/qcom_glink_native.c
389
qcom_glink_tx_write(glink, hdr, hlen, data, dlen);
drivers/rpmsg/qcom_glink_native.c
885
container_of(&dcmd->msg, struct glink_msg, hdr), 0,
drivers/rpmsg/qcom_glink_native.c
906
} __packed hdr;
drivers/rpmsg/qcom_glink_native.c
914
if (avail < sizeof(hdr)) {
drivers/rpmsg/qcom_glink_native.c
919
qcom_glink_rx_peek(glink, &hdr, 0, sizeof(hdr));
drivers/rpmsg/qcom_glink_native.c
920
chunk_size = le32_to_cpu(hdr.chunk_size);
drivers/rpmsg/qcom_glink_native.c
921
left_size = le32_to_cpu(hdr.left_size);
drivers/rpmsg/qcom_glink_native.c
923
if (avail < sizeof(hdr) + chunk_size) {
drivers/rpmsg/qcom_glink_native.c
928
rcid = le16_to_cpu(hdr.msg.param1);
drivers/rpmsg/qcom_glink_native.c
929
liid = le32_to_cpu(hdr.msg.param2);
drivers/rpmsg/qcom_glink_native.c
937
hdr.msg.cmd == GLINK_CMD_TX_DATA_CONT);
drivers/rpmsg/qcom_glink_native.c
989
sizeof(hdr), chunk_size);
drivers/rpmsg/qcom_glink_native.h
25
const void *hdr, size_t hlen,
drivers/rpmsg/qcom_glink_rpm.c
163
const void *hdr, size_t hlen,
drivers/rpmsg/qcom_glink_rpm.c
186
head = glink_rpm_tx_write_one(pipe, head, hdr, hlen);
drivers/rpmsg/qcom_glink_smem.c
173
const void *hdr, size_t hlen,
drivers/rpmsg/qcom_glink_smem.c
181
head = glink_smem_tx_write_one(pipe, head, hdr, hlen);
drivers/rpmsg/qcom_smd.c
746
__le32 hdr[5] = { cpu_to_le32(len), };
drivers/rpmsg/qcom_smd.c
747
int tlen = sizeof(hdr) + len;
drivers/rpmsg/qcom_smd.c
796
qcom_smd_write_fifo(channel, hdr, sizeof(hdr));
drivers/rtc/rtc-imx-sc.c
28
struct imx_sc_rpc_msg hdr;
drivers/rtc/rtc-imx-sc.c
33
struct imx_sc_rpc_msg hdr;
drivers/rtc/rtc-imx-sc.c
45
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/rtc/rtc-imx-sc.c
48
hdr->ver = IMX_SC_RPC_VERSION;
drivers/rtc/rtc-imx-sc.c
49
hdr->svc = IMX_SC_RPC_SVC_TIMER;
drivers/rtc/rtc-imx-sc.c
50
hdr->func = IMX_SC_TIMER_FUNC_GET_RTC_SEC1970;
drivers/rtc/rtc-imx-sc.c
51
hdr->size = 1;
drivers/rtc/rtc-imx-sc.c
86
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/rtc/rtc-imx-sc.c
90
hdr->ver = IMX_SC_RPC_VERSION;
drivers/rtc/rtc-imx-sc.c
91
hdr->svc = IMX_SC_RPC_SVC_TIMER;
drivers/rtc/rtc-imx-sc.c
92
hdr->func = IMX_SC_TIMER_FUNC_SET_RTC_ALARM;
drivers/rtc/rtc-imx-sc.c
93
hdr->size = 3;
drivers/s390/char/monwriter.c
104
struct monwrite_hdr *monhdr = &monpriv->hdr;
drivers/s390/char/monwriter.c
117
monhdr->datalen = monbuf->hdr.datalen;
drivers/s390/char/monwriter.c
138
monbuf->hdr = *monhdr;
drivers/s390/char/monwriter.c
149
struct monwrite_hdr *monhdr = &monpriv->hdr;
drivers/s390/char/monwriter.c
195
monpriv->hdr_to_read = sizeof(monpriv->hdr);
drivers/s390/char/monwriter.c
207
if (entry->hdr.mon_function != MONWRITE_GEN_EVENT)
drivers/s390/char/monwriter.c
208
monwrite_diag(&entry->hdr, entry->data,
drivers/s390/char/monwriter.c
231
to = (char *) &monpriv->hdr +
drivers/s390/char/monwriter.c
232
sizeof(monpriv->hdr) - monpriv->hdr_to_read;
drivers/s390/char/monwriter.c
245
monpriv->current_buf->hdr.datalen : 0;
drivers/s390/char/monwriter.c
251
monpriv->hdr.datalen - monpriv->data_to_read;
drivers/s390/char/monwriter.c
264
monpriv->hdr_to_read = sizeof(monpriv->hdr);
drivers/s390/char/monwriter.c
37
struct monwrite_hdr hdr;
drivers/s390/char/monwriter.c
44
struct monwrite_hdr hdr;
drivers/s390/char/monwriter.c
90
if ((entry->hdr.mon_function == monhdr->mon_function ||
drivers/s390/char/monwriter.c
92
entry->hdr.applid == monhdr->applid &&
drivers/s390/char/monwriter.c
93
entry->hdr.record_num == monhdr->record_num &&
drivers/s390/char/monwriter.c
94
entry->hdr.version == monhdr->version &&
drivers/s390/char/monwriter.c
95
entry->hdr.release == monhdr->release &&
drivers/s390/char/monwriter.c
96
entry->hdr.mod_level == monhdr->mod_level)
drivers/s390/char/sclp_diag.h
71
struct evbuf_header hdr;
drivers/s390/char/sclp_diag.h
86
struct sccb_header hdr;
drivers/s390/char/sclp_ftp.c
102
sccb->hdr.length = SCLP_DIAG_FTP_EVBUF_LEN +
drivers/s390/char/sclp_ftp.c
104
sccb->evbuf.hdr.type = EVTYP_DIAG_TEST;
drivers/s390/char/sclp_ftp.c
105
sccb->evbuf.hdr.length = SCLP_DIAG_FTP_EVBUF_LEN;
drivers/s390/char/sclp_ftp.c
106
sccb->evbuf.hdr.flags = 0; /* clear processed-buffer */
drivers/s390/char/sclp_ftp.c
143
sccb->hdr.response_code, sccb->evbuf.hdr.flags);
drivers/s390/char/sclp_ftp.c
152
(sccb->evbuf.hdr.flags & 0x80) == 0 || /* processed-buffer */
drivers/s390/char/sclp_ftp.c
153
(sccb->hdr.response_code & 0xffU) != 0x20U) {
drivers/s390/char/sclp_sd.c
206
sccb->hdr.length = sizeof(sccb->hdr) + sizeof(sccb->evbuf);
drivers/s390/char/sclp_sd.c
208
evbuf->hdr.length = sizeof(*evbuf);
drivers/s390/char/sclp_sd.c
209
evbuf->hdr.type = EVTYP_STORE_DATA;
drivers/s390/char/sclp_sd.c
227
if (sccb->hdr.response_code == 0x73f0) {
drivers/s390/char/sclp_sd.c
232
if (sccb->hdr.response_code != 0x0020 || !(evbuf->hdr.flags & 0x80)) {
drivers/s390/char/sclp_sd.c
268
eq, di, sccb->hdr.response_code, evbuf->hdr.flags,
drivers/s390/char/sclp_sd.c
32
struct evbuf_header hdr;
drivers/s390/char/sclp_sd.c
48
struct sccb_header hdr;
drivers/s390/char/sclp_sdias.c
116
sccb->hdr.length = sizeof(*sccb);
drivers/s390/char/sclp_sdias.c
117
sccb->evbuf.hdr.length = sizeof(struct sdias_evbuf);
drivers/s390/char/sclp_sdias.c
118
sccb->evbuf.hdr.type = EVTYP_SDIAS;
drivers/s390/char/sclp_sdias.c
134
if (sccb->hdr.response_code != 0x0020) {
drivers/s390/char/sclp_sdias.c
135
TRACE("send failed: %x\n", sccb->hdr.response_code);
drivers/s390/char/sclp_sdias.c
176
sccb->hdr.length = sizeof(*sccb);
drivers/s390/char/sclp_sdias.c
177
sccb->evbuf.hdr.length = sizeof(struct sdias_evbuf);
drivers/s390/char/sclp_sdias.c
178
sccb->evbuf.hdr.type = EVTYP_SDIAS;
drivers/s390/char/sclp_sdias.c
179
sccb->evbuf.hdr.flags = 0;
drivers/s390/char/sclp_sdias.c
201
if (sccb->hdr.response_code != 0x0020) {
drivers/s390/char/sclp_sdias.c
202
TRACE("copy failed: %x\n", sccb->hdr.response_code);
drivers/s390/char/sclp_sdias.c
81
if (!(sccb->evbuf.hdr.flags & 0x80)) {
drivers/s390/char/sclp_sdias.c
83
sccb->evbuf.hdr.flags);
drivers/s390/char/sclp_sdias.h
23
struct evbuf_header hdr;
drivers/s390/char/sclp_sdias.h
43
struct sccb_header hdr;
drivers/s390/char/zcore.c
237
if (rc || (__force u32)csum_partial(zcore_ipl_block, zcore_ipl_block->hdr.len, 0) !=
drivers/s390/cio/vfio_ccw_ops.c
541
struct vfio_irq_set hdr;
drivers/s390/cio/vfio_ccw_ops.c
547
if (copy_from_user(&hdr, (void __user *)arg, minsz))
drivers/s390/cio/vfio_ccw_ops.c
550
ret = vfio_set_irqs_validate_and_prepare(&hdr, 1,
drivers/s390/cio/vfio_ccw_ops.c
557
return vfio_ccw_mdev_set_irqs(private, hdr.flags, hdr.index,
drivers/s390/crypto/pkey_cca.c
100
} else if (hdr->version == TOKVER_CCA_VLSC) {
drivers/s390/crypto/pkey_cca.c
118
} else if (hdr->type == TOKTYPE_CCA_INTERNAL_PKA) {
drivers/s390/crypto/pkey_cca.c
139
__func__, hdr->type, hdr->version);
drivers/s390/crypto/pkey_cca.c
222
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_cca.c
229
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_cca.c
232
if (hdr->type == TOKTYPE_CCA_INTERNAL &&
drivers/s390/crypto/pkey_cca.c
233
hdr->version == TOKVER_CCA_AES) {
drivers/s390/crypto/pkey_cca.c
239
} else if (hdr->type == TOKTYPE_CCA_INTERNAL &&
drivers/s390/crypto/pkey_cca.c
240
hdr->version == TOKVER_CCA_VLSC) {
drivers/s390/crypto/pkey_cca.c
242
if (keylen < hdr->len)
drivers/s390/crypto/pkey_cca.c
247
} else if (hdr->type == TOKTYPE_CCA_INTERNAL_PKA) {
drivers/s390/crypto/pkey_cca.c
255
__func__, hdr->type, hdr->version);
drivers/s390/crypto/pkey_cca.c
271
if (hdr->type == TOKTYPE_CCA_INTERNAL &&
drivers/s390/crypto/pkey_cca.c
272
hdr->version == TOKVER_CCA_AES) {
drivers/s390/crypto/pkey_cca.c
276
} else if (hdr->type == TOKTYPE_CCA_INTERNAL &&
drivers/s390/crypto/pkey_cca.c
277
hdr->version == TOKVER_CCA_VLSC) {
drivers/s390/crypto/pkey_cca.c
281
} else if (hdr->type == TOKTYPE_CCA_INTERNAL_PKA) {
drivers/s390/crypto/pkey_cca.c
38
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_cca.c
40
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_cca.c
43
switch (hdr->type) {
drivers/s390/crypto/pkey_cca.c
45
switch (hdr->version) {
drivers/s390/crypto/pkey_cca.c
467
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_cca.c
474
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_cca.c
479
if (hdr->type == TOKTYPE_CCA_INTERNAL &&
drivers/s390/crypto/pkey_cca.c
480
hdr->version == TOKVER_CCA_AES) {
drivers/s390/crypto/pkey_cca.c
507
} else if (hdr->type == TOKTYPE_CCA_INTERNAL &&
drivers/s390/crypto/pkey_cca.c
508
hdr->version == TOKVER_CCA_VLSC) {
drivers/s390/crypto/pkey_cca.c
564
const struct keytoken_header *hdr = (const struct keytoken_header *)key;
drivers/s390/crypto/pkey_cca.c
570
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_cca.c
573
if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_cca.c
574
hdr->version == TOKVER_CLEAR_KEY)
drivers/s390/crypto/pkey_cca.c
74
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_cca.c
89
if (hdr->type == TOKTYPE_CCA_INTERNAL) {
drivers/s390/crypto/pkey_cca.c
93
if (hdr->version == TOKVER_CCA_AES) {
drivers/s390/crypto/pkey_ep11.c
108
} else if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
109
hdr->version == TOKVER_EP11_AES &&
drivers/s390/crypto/pkey_ep11.c
127
__func__, hdr->type, hdr->version);
drivers/s390/crypto/pkey_ep11.c
194
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_ep11.c
201
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_ep11.c
204
if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
205
hdr->version == TOKVER_EP11_AES_WITH_HEADER &&
drivers/s390/crypto/pkey_ep11.c
211
} else if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
212
hdr->version == TOKVER_EP11_ECC_WITH_HEADER &&
drivers/s390/crypto/pkey_ep11.c
218
} else if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
219
hdr->version == TOKVER_EP11_AES &&
drivers/s390/crypto/pkey_ep11.c
226
__func__, hdr->type, hdr->version);
drivers/s390/crypto/pkey_ep11.c
242
if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
243
hdr->version == TOKVER_EP11_AES_WITH_HEADER &&
drivers/s390/crypto/pkey_ep11.c
246
key, hdr->len, protkey,
drivers/s390/crypto/pkey_ep11.c
248
} else if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
249
hdr->version == TOKVER_EP11_ECC_WITH_HEADER &&
drivers/s390/crypto/pkey_ep11.c
252
key, hdr->len, protkey,
drivers/s390/crypto/pkey_ep11.c
254
} else if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
255
hdr->version == TOKVER_EP11_AES &&
drivers/s390/crypto/pkey_ep11.c
258
key, hdr->len, protkey,
drivers/s390/crypto/pkey_ep11.c
39
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_ep11.c
41
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_ep11.c
428
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_ep11.c
435
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_ep11.c
44
switch (hdr->type) {
drivers/s390/crypto/pkey_ep11.c
440
if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
441
hdr->version == TOKVER_EP11_AES) {
drivers/s390/crypto/pkey_ep11.c
46
switch (hdr->version) {
drivers/s390/crypto/pkey_ep11.c
463
} else if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
464
hdr->version == TOKVER_EP11_AES_WITH_HEADER) {
drivers/s390/crypto/pkey_ep11.c
510
const struct keytoken_header *hdr = (const struct keytoken_header *)key;
drivers/s390/crypto/pkey_ep11.c
516
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_ep11.c
519
if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
520
hdr->version == TOKVER_CLEAR_KEY)
drivers/s390/crypto/pkey_ep11.c
74
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_ep11.c
89
if (hdr->type == TOKTYPE_NON_CCA &&
drivers/s390/crypto/pkey_ep11.c
90
(hdr->version == TOKVER_EP11_AES_WITH_HEADER ||
drivers/s390/crypto/pkey_ep11.c
91
hdr->version == TOKVER_EP11_ECC_WITH_HEADER) &&
drivers/s390/crypto/pkey_pckmo.c
221
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_pckmo.c
224
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_pckmo.c
226
if (hdr->type != TOKTYPE_NON_CCA)
drivers/s390/crypto/pkey_pckmo.c
229
switch (hdr->version) {
drivers/s390/crypto/pkey_pckmo.c
29
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_pckmo.c
295
__func__, hdr->version);
drivers/s390/crypto/pkey_pckmo.c
32
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_pckmo.c
35
switch (hdr->type) {
drivers/s390/crypto/pkey_pckmo.c
363
struct keytoken_header *hdr = (struct keytoken_header *)key;
drivers/s390/crypto/pkey_pckmo.c
366
if (keylen < sizeof(*hdr))
drivers/s390/crypto/pkey_pckmo.c
368
if (hdr->type != TOKTYPE_NON_CCA)
drivers/s390/crypto/pkey_pckmo.c
37
switch (hdr->version) {
drivers/s390/crypto/pkey_pckmo.c
371
switch (hdr->version) {
drivers/s390/crypto/pkey_pckmo.c
398
__func__, hdr->version);
drivers/s390/crypto/zcrypt_ep11misc.c
106
struct ep11kblob_header *tmph, *hdr = NULL;
drivers/s390/crypto/zcrypt_ep11misc.c
1206
struct ep11kblob_header *hdr;
drivers/s390/crypto/zcrypt_ep11misc.c
121
&hdr, &hdrsize, &tmpp, &plsize))
drivers/s390/crypto/zcrypt_ep11misc.c
1212
&hdr, &hdr_size, &pl, &pl_size);
drivers/s390/crypto/zcrypt_ep11misc.c
1225
hdr = (struct ep11kblob_header *)keybuf;
drivers/s390/crypto/zcrypt_ep11misc.c
1226
hdr->type = TOKTYPE_NON_CCA;
drivers/s390/crypto/zcrypt_ep11misc.c
1227
hdr->len = *keybufsize;
drivers/s390/crypto/zcrypt_ep11misc.c
1228
hdr->version = keybufver;
drivers/s390/crypto/zcrypt_ep11misc.c
1229
hdr->bitlen = keybitsize;
drivers/s390/crypto/zcrypt_ep11misc.c
131
plsize = hdr->len - hdrsize;
drivers/s390/crypto/zcrypt_ep11misc.c
134
*kbhdr = hdr;
drivers/s390/crypto/zcrypt_ep11misc.c
1427
struct ep11kblob_header *hdr;
drivers/s390/crypto/zcrypt_ep11misc.c
1442
if (ep11_kb_decode((u8 *)keyblob, keybloblen, &hdr, NULL, &key, &keylen))
drivers/s390/crypto/zcrypt_ep11misc.c
1445
if (hdr->version == TOKVER_EP11_AES) {
drivers/s390/crypto/zcrypt_ep11misc.c
1447
memset(hdr, 0, sizeof(*hdr));
drivers/s390/crypto/zcrypt_ep11misc.c
167
struct ep11kblob_header *hdr = (struct ep11kblob_header *)key;
drivers/s390/crypto/zcrypt_ep11misc.c
168
struct ep11keyblob *kb = (struct ep11keyblob *)(key + sizeof(*hdr));
drivers/s390/crypto/zcrypt_ep11misc.c
172
if (keylen < sizeof(*hdr) + sizeof(*kb)) {
drivers/s390/crypto/zcrypt_ep11misc.c
174
__func__, keylen, sizeof(*hdr) + sizeof(*kb));
drivers/s390/crypto/zcrypt_ep11misc.c
178
if (hdr->type != TOKTYPE_NON_CCA) {
drivers/s390/crypto/zcrypt_ep11misc.c
181
__func__, (int)hdr->type, TOKTYPE_NON_CCA);
drivers/s390/crypto/zcrypt_ep11misc.c
184
if (hdr->hver != 0x00) {
drivers/s390/crypto/zcrypt_ep11misc.c
187
__func__, (int)hdr->hver);
drivers/s390/crypto/zcrypt_ep11misc.c
190
if (hdr->version != TOKVER_EP11_AES_WITH_HEADER) {
drivers/s390/crypto/zcrypt_ep11misc.c
193
__func__, (int)hdr->version, TOKVER_EP11_AES_WITH_HEADER);
drivers/s390/crypto/zcrypt_ep11misc.c
196
if (hdr->len > keylen) {
drivers/s390/crypto/zcrypt_ep11misc.c
199
__func__, (int)hdr->len, keylen);
drivers/s390/crypto/zcrypt_ep11misc.c
202
if (hdr->len < sizeof(*hdr) + sizeof(*kb)) {
drivers/s390/crypto/zcrypt_ep11misc.c
205
__func__, (int)hdr->len, sizeof(*hdr) + sizeof(*kb));
drivers/s390/crypto/zcrypt_ep11misc.c
234
struct ep11kblob_header *hdr = (struct ep11kblob_header *)key;
drivers/s390/crypto/zcrypt_ep11misc.c
235
struct ep11keyblob *kb = (struct ep11keyblob *)(key + sizeof(*hdr));
drivers/s390/crypto/zcrypt_ep11misc.c
239
if (keylen < sizeof(*hdr) + sizeof(*kb)) {
drivers/s390/crypto/zcrypt_ep11misc.c
241
__func__, keylen, sizeof(*hdr) + sizeof(*kb));
drivers/s390/crypto/zcrypt_ep11misc.c
245
if (hdr->type != TOKTYPE_NON_CCA) {
drivers/s390/crypto/zcrypt_ep11misc.c
248
__func__, (int)hdr->type, TOKTYPE_NON_CCA);
drivers/s390/crypto/zcrypt_ep11misc.c
251
if (hdr->hver != 0x00) {
drivers/s390/crypto/zcrypt_ep11misc.c
254
__func__, (int)hdr->hver);
drivers/s390/crypto/zcrypt_ep11misc.c
257
if (hdr->version != TOKVER_EP11_ECC_WITH_HEADER) {
drivers/s390/crypto/zcrypt_ep11misc.c
260
__func__, (int)hdr->version, TOKVER_EP11_ECC_WITH_HEADER);
drivers/s390/crypto/zcrypt_ep11misc.c
263
if (hdr->len > keylen) {
drivers/s390/crypto/zcrypt_ep11misc.c
266
__func__, (int)hdr->len, keylen);
drivers/s390/crypto/zcrypt_ep11misc.c
269
if (hdr->len < sizeof(*hdr) + sizeof(*kb)) {
drivers/s390/crypto/zcrypt_ep11misc.c
272
__func__, (int)hdr->len, sizeof(*hdr) + sizeof(*kb));
drivers/s390/crypto/zcrypt_ep11misc.c
62
struct ep11kblob_header *hdr = NULL;
drivers/s390/crypto/zcrypt_ep11misc.c
69
hdr = (struct ep11kblob_header *)kb;
drivers/s390/crypto/zcrypt_ep11misc.c
888
struct ep11kblob_header *hdr;
drivers/s390/crypto/zcrypt_ep11misc.c
89
*kbhdr = hdr;
drivers/s390/crypto/zcrypt_ep11misc.c
902
&hdr, &hdr_size, &pl, &pl_size);
drivers/s390/crypto/zcrypt_ep11misc.c
914
hdr->type = TOKTYPE_NON_CCA;
drivers/s390/crypto/zcrypt_ep11misc.c
915
hdr->len = *keybufsize;
drivers/s390/crypto/zcrypt_ep11misc.c
916
hdr->version = keybufver;
drivers/s390/crypto/zcrypt_ep11misc.c
917
hdr->bitlen = keybitsize;
drivers/s390/crypto/zcrypt_error.h
104
struct type86_hdr hdr;
drivers/s390/crypto/zcrypt_error.h
129
struct type86_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
1079
struct type6_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
1090
msg->hdr.fromcardlen1 = min(msg->hdr.fromcardlen1, max_payload_size);
drivers/s390/crypto/zcrypt_msgtype6.c
1091
msg->hdr.fromcardlen2 = min(msg->hdr.fromcardlen2, max_payload_size);
drivers/s390/crypto/zcrypt_msgtype6.c
1094
delta = msg->hdr.fromcardlen1 + msg->hdr.fromcardlen2
drivers/s390/crypto/zcrypt_msgtype6.c
1101
if (delta > msg->hdr.fromcardlen1) {
drivers/s390/crypto/zcrypt_msgtype6.c
1105
msg->hdr.fromcardlen1 -= delta;
drivers/s390/crypto/zcrypt_msgtype6.c
1172
struct type6_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
1221
msg->hdr.fromcardlen1 = zq->reply.bufsize -
drivers/s390/crypto/zcrypt_msgtype6.c
1286
struct type6_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
201
struct type6_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
229
msg->hdr = static_type6_hdrX;
drivers/s390/crypto/zcrypt_msgtype6.c
230
msg->hdr.tocardlen1 = size - sizeof(msg->hdr);
drivers/s390/crypto/zcrypt_msgtype6.c
231
msg->hdr.fromcardlen1 = CEXXC_MAX_ICA_RESPONSE_SIZE - sizeof(msg->hdr);
drivers/s390/crypto/zcrypt_msgtype6.c
235
msg->cprbx.rpl_msgbl = msg->hdr.fromcardlen1;
drivers/s390/crypto/zcrypt_msgtype6.c
239
msg->cprbx.req_parml = size - sizeof(msg->hdr) - sizeof(msg->cprbx);
drivers/s390/crypto/zcrypt_msgtype6.c
271
struct type6_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
299
msg->hdr = static_type6_hdrX;
drivers/s390/crypto/zcrypt_msgtype6.c
300
msg->hdr.tocardlen1 = size - sizeof(msg->hdr);
drivers/s390/crypto/zcrypt_msgtype6.c
301
msg->hdr.fromcardlen1 = CEXXC_MAX_ICA_RESPONSE_SIZE - sizeof(msg->hdr);
drivers/s390/crypto/zcrypt_msgtype6.c
306
size - sizeof(msg->hdr) - sizeof(msg->cprbx);
drivers/s390/crypto/zcrypt_msgtype6.c
324
struct type86_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
338
struct type6_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
392
msg->hdr = static_type6_hdrX;
drivers/s390/crypto/zcrypt_msgtype6.c
393
memcpy(msg->hdr.agent_id, &xcrb->agent_ID, sizeof(xcrb->agent_ID));
drivers/s390/crypto/zcrypt_msgtype6.c
394
msg->hdr.tocardlen1 = xcrb->request_control_blk_length;
drivers/s390/crypto/zcrypt_msgtype6.c
396
msg->hdr.offset2 = msg->hdr.offset1 + rcblen;
drivers/s390/crypto/zcrypt_msgtype6.c
397
msg->hdr.tocardlen2 = xcrb->request_data_length;
drivers/s390/crypto/zcrypt_msgtype6.c
399
msg->hdr.fromcardlen1 = xcrb->reply_control_blk_length;
drivers/s390/crypto/zcrypt_msgtype6.c
400
msg->hdr.fromcardlen2 = xcrb->reply_data_length;
drivers/s390/crypto/zcrypt_msgtype6.c
407
if (msg->cprbx.cprb_len + sizeof(msg->hdr.function_code) >
drivers/s390/crypto/zcrypt_msgtype6.c
411
memcpy(msg->hdr.function_code, function_code,
drivers/s390/crypto/zcrypt_msgtype6.c
412
sizeof(msg->hdr.function_code));
drivers/s390/crypto/zcrypt_msgtype6.c
414
*fcode = (msg->hdr.function_code[0] << 8) | msg->hdr.function_code[1];
drivers/s390/crypto/zcrypt_msgtype6.c
463
struct type6_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
495
msg->hdr = static_type6_ep11_hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
496
msg->hdr.tocardlen1 = xcrb->req_len;
drivers/s390/crypto/zcrypt_msgtype6.c
497
msg->hdr.fromcardlen1 = xcrb->resp_len;
drivers/s390/crypto/zcrypt_msgtype6.c
548
struct type86_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
557
struct type86_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
685
struct type86_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.c
704
switch (msg->hdr.type) {
drivers/s390/crypto/zcrypt_msgtype6.c
719
if (msg->hdr.reply_code)
drivers/s390/crypto/zcrypt_msgtype6.c
731
(int)msg->hdr.type);
drivers/s390/crypto/zcrypt_msgtype6.c
735
AP_QID_QUEUE(zq->queue->qid), (int)msg->hdr.type);
drivers/s390/crypto/zcrypt_msgtype6.c
747
switch (msg->hdr.type) {
drivers/s390/crypto/zcrypt_msgtype6.c
753
if (msg->hdr.reply_code) {
drivers/s390/crypto/zcrypt_msgtype6.c
766
(int)msg->hdr.type);
drivers/s390/crypto/zcrypt_msgtype6.c
770
AP_QID_QUEUE(zq->queue->qid), (int)msg->hdr.type);
drivers/s390/crypto/zcrypt_msgtype6.c
781
switch (msg->hdr.type) {
drivers/s390/crypto/zcrypt_msgtype6.c
786
if (msg->hdr.reply_code)
drivers/s390/crypto/zcrypt_msgtype6.c
796
(int)msg->hdr.type);
drivers/s390/crypto/zcrypt_msgtype6.c
800
AP_QID_QUEUE(zq->queue->qid), (int)msg->hdr.type);
drivers/s390/crypto/zcrypt_msgtype6.c
812
switch (msg->hdr.type) {
drivers/s390/crypto/zcrypt_msgtype6.c
817
if (msg->hdr.reply_code)
drivers/s390/crypto/zcrypt_msgtype6.c
827
(int)msg->hdr.type);
drivers/s390/crypto/zcrypt_msgtype6.c
831
AP_QID_QUEUE(zq->queue->qid), (int)msg->hdr.type);
drivers/s390/crypto/zcrypt_msgtype6.c
861
if (t86r->hdr.type == TYPE86_RSP_CODE &&
drivers/s390/crypto/zcrypt_msgtype6.c
925
if (t86r->hdr.type == TYPE86_RSP_CODE &&
drivers/s390/crypto/zcrypt_msgtype6.h
124
struct type6_hdr hdr;
drivers/s390/crypto/zcrypt_msgtype6.h
137
.tocardlen1 = sizeof(*msg) - sizeof(msg->hdr),
drivers/s390/crypto/zcrypt_msgtype6.h
138
.fromcardlen1 = sizeof(*msg) - sizeof(msg->hdr),
drivers/s390/crypto/zcrypt_msgtype6.h
144
.req_parml = sizeof(*msg) - sizeof(msg->hdr) -
drivers/s390/crypto/zcrypt_msgtype6.h
146
.rpl_msgbl = sizeof(*msg) - sizeof(msg->hdr),
drivers/s390/crypto/zcrypt_msgtype6.h
149
msg->hdr = static_type6_hdrX;
drivers/s390/crypto/zcrypt_msgtype6.h
150
msg->hdr.fromcardlen2 = random_number_length;
drivers/s390/crypto/zcrypt_msgtype6.h
153
memcpy(msg->function_code, msg->hdr.function_code, 0x02);
drivers/s390/net/ism.h
101
struct ism_resp_hdr hdr;
drivers/s390/net/ism.h
108
struct ism_req_hdr hdr;
drivers/s390/net/ism.h
111
struct ism_resp_hdr hdr;
drivers/s390/net/ism.h
130
struct ism_req_hdr hdr;
drivers/s390/net/ism.h
136
struct ism_resp_hdr hdr;
drivers/s390/net/ism.h
142
struct ism_req_hdr hdr;
drivers/s390/net/ism.h
151
struct ism_resp_hdr hdr;
drivers/s390/net/ism.h
158
struct ism_req_hdr hdr;
drivers/s390/net/ism.h
165
struct ism_resp_hdr hdr;
drivers/s390/net/ism.h
171
struct ism_req_hdr hdr;
drivers/s390/net/ism.h
175
struct ism_resp_hdr hdr;
drivers/s390/net/ism.h
181
struct ism_req_hdr hdr;
drivers/s390/net/ism.h
184
struct ism_resp_hdr hdr;
drivers/s390/net/ism.h
190
struct ism_req_hdr hdr;
drivers/s390/net/ism.h
194
struct ism_resp_hdr hdr;
drivers/s390/net/ism.h
68
struct ism_req_hdr hdr;
drivers/s390/net/ism.h
72
struct ism_resp_hdr hdr;
drivers/s390/net/ism.h
78
struct ism_req_hdr hdr;
drivers/s390/net/ism.h
83
struct ism_resp_hdr hdr;
drivers/s390/net/ism.h
98
struct ism_req_hdr hdr;
drivers/s390/net/ism_drv.c
123
cmd.request.hdr.cmd = ISM_REG_IEQ;
drivers/s390/net/ism_drv.c
124
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/ism_drv.c
187
cmd.request.hdr.cmd = ISM_READ_GID;
drivers/s390/net/ism_drv.c
188
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/ism_drv.c
207
cmd.request.hdr.cmd = ISM_QUERY_RGID;
drivers/s390/net/ism_drv.c
208
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/ism_drv.c
290
cmd.request.hdr.cmd = ISM_REG_DMB;
drivers/s390/net/ism_drv.c
291
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/ism_drv.c
321
cmd.request.hdr.cmd = ISM_UNREG_DMB;
drivers/s390/net/ism_drv.c
322
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/ism_drv.c
345
cmd.request.hdr.cmd = ISM_ADD_VLAN_ID;
drivers/s390/net/ism_drv.c
346
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/ism_drv.c
359
cmd.request.hdr.cmd = ISM_DEL_VLAN_ID;
drivers/s390/net/ism_drv.c
360
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/ism_drv.c
374
cmd.request.hdr.cmd = ISM_SIGNAL_IEQ;
drivers/s390/net/ism_drv.c
375
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/ism_drv.c
61
cmd.request.hdr.cmd = cmd_code;
drivers/s390/net/ism_drv.c
62
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/ism_drv.c
72
cmd.request.hdr.cmd = ISM_QUERY_INFO;
drivers/s390/net/ism_drv.c
73
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/ism_drv.c
96
cmd.request.hdr.cmd = ISM_REG_SBA;
drivers/s390/net/ism_drv.c
97
cmd.request.hdr.len = sizeof(cmd.request);
drivers/s390/net/qeth_core.h
1105
struct qeth_hdr *hdr, struct sk_buff *skb,
drivers/s390/net/qeth_core.h
266
} hdr;
drivers/s390/net/qeth_core.h
304
struct qeth_hdr hdr; /*hdr->hdr.l3.xxx*/
drivers/s390/net/qeth_core_main.c
3043
__ipa_cmd(iob)->hdr.seqno = card->seqno.ipa++;
drivers/s390/net/qeth_core_main.c
3071
return ipa_reply && (__ipa_cmd(iob)->hdr.seqno == ipa_reply->hdr.seqno);
drivers/s390/net/qeth_core_main.c
3080
struct qeth_ipacmd_hdr *hdr;
drivers/s390/net/qeth_core_main.c
3091
hdr = &__ipa_cmd(iob)->hdr;
drivers/s390/net/qeth_core_main.c
3092
hdr->command = cmd_code;
drivers/s390/net/qeth_core_main.c
3093
hdr->initiator = IPA_CMD_INITIATOR_HOST;
drivers/s390/net/qeth_core_main.c
3095
hdr->adapter_type = QETH_LINK_TYPE_FAST_ETH;
drivers/s390/net/qeth_core_main.c
3096
hdr->rel_adapter_no = (u8) card->dev->dev_port;
drivers/s390/net/qeth_core_main.c
3097
hdr->prim_version_no = IS_LAYER2(card) ? 2 : 1;
drivers/s390/net/qeth_core_main.c
3098
hdr->param_count = 1;
drivers/s390/net/qeth_core_main.c
3099
hdr->prot_version = prot;
drivers/s390/net/qeth_core_main.c
3109
return (cmd->hdr.return_code) ? -EIO : 0;
drivers/s390/net/qeth_core_main.c
3148
if (cmd->hdr.return_code == IPA_RC_LAN_OFFLINE)
drivers/s390/net/qeth_core_main.c
3151
return (cmd->hdr.return_code) ? -EIO : 0;
drivers/s390/net/qeth_core_main.c
3168
if (!cmd->hdr.return_code)
drivers/s390/net/qeth_core_main.c
3169
cmd->hdr.return_code =
drivers/s390/net/qeth_core_main.c
3170
cmd->data.setadapterparms.hdr.return_code;
drivers/s390/net/qeth_core_main.c
3171
return cmd->hdr.return_code;
drivers/s390/net/qeth_core_main.c
3201
struct qeth_ipacmd_setadpparms_hdr *hdr;
drivers/s390/net/qeth_core_main.c
3211
hdr = &__ipa_cmd(iob)->data.setadapterparms.hdr;
drivers/s390/net/qeth_core_main.c
3212
hdr->cmdlength = sizeof(*hdr) + data_length;
drivers/s390/net/qeth_core_main.c
3213
hdr->command_code = adp_cmd;
drivers/s390/net/qeth_core_main.c
3214
hdr->used_total = 1;
drivers/s390/net/qeth_core_main.c
3215
hdr->seq_no = 1;
drivers/s390/net/qeth_core_main.c
3242
switch (cmd->hdr.return_code) {
drivers/s390/net/qeth_core_main.c
3253
CARD_DEVID(card), cmd->hdr.return_code);
drivers/s390/net/qeth_core_main.c
3257
if (cmd->hdr.prot_version == QETH_PROT_IPV4)
drivers/s390/net/qeth_core_main.c
3258
card->options.ipa4 = cmd->hdr.assists;
drivers/s390/net/qeth_core_main.c
3259
else if (cmd->hdr.prot_version == QETH_PROT_IPV6)
drivers/s390/net/qeth_core_main.c
3260
card->options.ipa6 = cmd->hdr.assists;
drivers/s390/net/qeth_core_main.c
3341
u16 rc = cmd->hdr.return_code;
drivers/s390/net/qeth_core_main.c
3391
u16 rc = cmd->hdr.return_code;
drivers/s390/net/qeth_core_main.c
3951
struct sk_buff *skb, struct qeth_hdr **hdr,
drivers/s390/net/qeth_core_main.c
4008
*hdr = skb_push(skb, hdr_len);
drivers/s390/net/qeth_core_main.c
4015
*hdr = kmem_cache_alloc(qeth_core_header_cache, gfp);
drivers/s390/net/qeth_core_main.c
4016
if (!*hdr)
drivers/s390/net/qeth_core_main.c
4019
skb_copy_from_linear_data(skb, ((char *)*hdr) + hdr_len, proto_len);
drivers/s390/net/qeth_core_main.c
4034
if (curr_hdr->hdr.l2.id == QETH_HEADER_TYPE_LAYER2) {
drivers/s390/net/qeth_core_main.c
4039
qeth_l2_same_vlan(&prev_hdr->hdr.l2, &curr_hdr->hdr.l2);
drivers/s390/net/qeth_core_main.c
4042
return qeth_l3_same_next_hop(&prev_hdr->hdr.l3, &curr_hdr->hdr.l3) &&
drivers/s390/net/qeth_core_main.c
4043
qeth_l3_iqd_same_vlan(&prev_hdr->hdr.l3, &curr_hdr->hdr.l3);
drivers/s390/net/qeth_core_main.c
4056
struct sk_buff *skb, struct qeth_hdr *hdr,
drivers/s390/net/qeth_core_main.c
4072
buffer->element[element].addr = virt_to_dma64(hdr);
drivers/s390/net/qeth_core_main.c
4077
if ((void *)hdr != skb->data)
drivers/s390/net/qeth_core_main.c
4081
(data == (char *)hdr + hd_len))
drivers/s390/net/qeth_core_main.c
4142
struct qeth_hdr *hdr, unsigned int offset,
drivers/s390/net/qeth_core_main.c
4161
flush = !qeth_iqd_may_bulk(queue, skb, hdr);
drivers/s390/net/qeth_core_main.c
4194
next_element = qeth_fill_buffer(buffer, skb, hdr, offset, hd_len);
drivers/s390/net/qeth_core_main.c
4197
queue->prev_hdr = hdr;
drivers/s390/net/qeth_core_main.c
4220
struct sk_buff *skb, struct qeth_hdr *hdr,
drivers/s390/net/qeth_core_main.c
4278
next_element = qeth_fill_buffer(buffer, skb, hdr, offset, hd_len);
drivers/s390/net/qeth_core_main.c
4303
static void qeth_fill_tso_ext(struct qeth_hdr_tso *hdr,
drivers/s390/net/qeth_core_main.c
4307
struct qeth_hdr_ext_tso *ext = &hdr->ext;
drivers/s390/net/qeth_core_main.c
4322
struct qeth_hdr *hdr, struct sk_buff *skb,
drivers/s390/net/qeth_core_main.c
4329
struct qeth_hdr *hdr = NULL;
drivers/s390/net/qeth_core_main.c
4346
push_len = qeth_add_hw_header(queue, skb, &hdr, hw_hdr_len, proto_len,
drivers/s390/net/qeth_core_main.c
4355
memset(hdr, 0, hw_hdr_len);
drivers/s390/net/qeth_core_main.c
4356
fill_header(queue, hdr, skb, proto, frame_len);
drivers/s390/net/qeth_core_main.c
4358
qeth_fill_tso_ext((struct qeth_hdr_tso *) hdr,
drivers/s390/net/qeth_core_main.c
4362
rc = __qeth_xmit(card, queue, skb, elements, hdr, data_offset,
drivers/s390/net/qeth_core_main.c
4368
rc = qeth_do_send_packet(card, queue, skb, hdr, data_offset,
drivers/s390/net/qeth_core_main.c
4374
kmem_cache_free(qeth_core_header_cache, hdr);
drivers/s390/net/qeth_core_main.c
4390
QETH_CARD_TEXT_(card, 4, "prmrc%x", cmd->hdr.return_code);
drivers/s390/net/qeth_core_main.c
4394
return (cmd->hdr.return_code) ? -EIO : 0;
drivers/s390/net/qeth_core_main.c
4432
!(adp_cmd->hdr.flags & QETH_SETADP_FLAGS_VIRTUAL_MAC))
drivers/s390/net/qeth_core_main.c
4472
cmd->data.setadapterparms.hdr.return_code);
drivers/s390/net/qeth_core_main.c
4473
if (cmd->data.setadapterparms.hdr.return_code !=
drivers/s390/net/qeth_core_main.c
4477
cmd->data.setadapterparms.hdr.return_code);
drivers/s390/net/qeth_core_main.c
4648
if (cmd->hdr.return_code) {
drivers/s390/net/qeth_core_main.c
4649
QETH_CARD_TEXT_(card, 4, "scer1%x", cmd->hdr.return_code);
drivers/s390/net/qeth_core_main.c
4652
if (cmd->data.setadapterparms.hdr.return_code) {
drivers/s390/net/qeth_core_main.c
4653
cmd->hdr.return_code =
drivers/s390/net/qeth_core_main.c
4654
cmd->data.setadapterparms.hdr.return_code;
drivers/s390/net/qeth_core_main.c
4655
QETH_CARD_TEXT_(card, 4, "scer2%x", cmd->hdr.return_code);
drivers/s390/net/qeth_core_main.c
4660
data_len = adp_cmd->hdr.cmdlength - sizeof(adp_cmd->hdr);
drivers/s390/net/qeth_core_main.c
4661
if (adp_cmd->hdr.seq_no == 1) {
drivers/s390/net/qeth_core_main.c
4674
cmd->data.setadapterparms.hdr.used_total);
drivers/s390/net/qeth_core_main.c
4676
cmd->data.setadapterparms.hdr.seq_no);
drivers/s390/net/qeth_core_main.c
4681
if (cmd->data.setadapterparms.hdr.seq_no <
drivers/s390/net/qeth_core_main.c
4682
cmd->data.setadapterparms.hdr.used_total)
drivers/s390/net/qeth_core_main.c
4705
if (get_user(qinfo.udata_len, &ureq->hdr.data_len) ||
drivers/s390/net/qeth_core_main.c
4706
get_user(req_len, &ureq->hdr.req_len))
drivers/s390/net/qeth_core_main.c
4755
resdatalen = cmd->data.setadapterparms.hdr.cmdlength;
drivers/s390/net/qeth_core_main.c
4761
&cmd->data.setadapterparms.hdr, resdatalen);
drivers/s390/net/qeth_core_main.c
4764
if (cmd->data.setadapterparms.hdr.seq_no <
drivers/s390/net/qeth_core_main.c
4765
cmd->data.setadapterparms.hdr.used_total)
drivers/s390/net/qeth_core_main.c
4833
if (cmd->data.setadapterparms.hdr.used_total > 1)
drivers/s390/net/qeth_core_main.c
5468
struct qeth_hdr *hdr)
drivers/s390/net/qeth_core_main.c
5471
struct qeth_hdr_layer3 *l3_hdr = &hdr->hdr.l3;
drivers/s390/net/qeth_core_main.c
5582
struct qeth_hdr *hdr;
drivers/s390/net/qeth_core_main.c
5598
hdr = dma64_to_virt(element->addr) + offset;
drivers/s390/net/qeth_core_main.c
5599
offset += sizeof(*hdr);
drivers/s390/net/qeth_core_main.c
5602
switch (hdr->hdr.l2.id) {
drivers/s390/net/qeth_core_main.c
5604
skb_len = hdr->hdr.l2.pkt_length;
drivers/s390/net/qeth_core_main.c
5605
is_cso = hdr->hdr.l2.flags[1] & QETH_HDR_EXT_CSUM_TRANSP_REQ;
drivers/s390/net/qeth_core_main.c
5611
skb_len = hdr->hdr.l3.length;
drivers/s390/net/qeth_core_main.c
5612
is_cso = hdr->hdr.l3.ext_flags & QETH_HDR_EXT_CSUM_TRANSP_REQ;
drivers/s390/net/qeth_core_main.c
5619
if (hdr->hdr.l3.flags & QETH_HDR_PASSTHRU) {
drivers/s390/net/qeth_core_main.c
5625
if (hdr->hdr.l3.flags & QETH_HDR_IPV6)
drivers/s390/net/qeth_core_main.c
5632
if (hdr->hdr.l2.id & QETH_HEADER_MASK_INVAL)
drivers/s390/net/qeth_core_main.c
5741
if (hdr->hdr.l2.id == QETH_HEADER_TYPE_LAYER3)
drivers/s390/net/qeth_core_main.c
5742
qeth_l3_rebuild_skb(card, skb, hdr);
drivers/s390/net/qeth_core_main.c
6015
if (!cmd->hdr.return_code)
drivers/s390/net/qeth_core_main.c
6016
cmd->hdr.return_code = cmd->data.setassparms.hdr.return_code;
drivers/s390/net/qeth_core_main.c
6017
return cmd->hdr.return_code;
drivers/s390/net/qeth_core_main.c
6042
if (cmd->hdr.return_code)
drivers/s390/net/qeth_core_main.c
6045
cmd->hdr.return_code = cmd->data.setassparms.hdr.return_code;
drivers/s390/net/qeth_core_main.c
6046
if (cmd->hdr.prot_version == QETH_PROT_IPV4)
drivers/s390/net/qeth_core_main.c
6047
card->options.ipa4.enabled = cmd->hdr.assists.enabled;
drivers/s390/net/qeth_core_main.c
6048
if (cmd->hdr.prot_version == QETH_PROT_IPV6)
drivers/s390/net/qeth_core_main.c
6049
card->options.ipa6.enabled = cmd->hdr.assists.enabled;
drivers/s390/net/qeth_core_main.c
6061
struct qeth_ipacmd_setassparms_hdr *hdr;
drivers/s390/net/qeth_core_main.c
6075
hdr = &setassparms->hdr;
drivers/s390/net/qeth_core_main.c
6076
hdr->length = sizeof(*hdr) + data_length;
drivers/s390/net/qeth_core_main.c
6077
hdr->command_code = cmd_code;
drivers/s390/net/qeth_core_main.c
755
int com = cmd->hdr.command;
drivers/s390/net/qeth_core_main.c
817
if (cmd->hdr.command != IPA_CMD_SET_DIAG_ASS)
drivers/s390/net/qeth_core_main.c
818
qeth_issue_ipa_msg(cmd, cmd->hdr.return_code, card);
drivers/s390/net/qeth_core_main.c
823
switch (cmd->hdr.command) {
drivers/s390/net/qeth_core_main.c
825
if (cmd->hdr.return_code == IPA_RC_VEPA_TO_VEB_TRANSITION) {
drivers/s390/net/qeth_core_main.c
836
qeth_issue_ipa_msg(cmd, cmd->hdr.return_code, card);
drivers/s390/net/qeth_core_main.c
856
if (cmd->hdr.prot_version == QETH_PROT_IPV4)
drivers/s390/net/qeth_core_main.c
858
else if (cmd->hdr.prot_version == QETH_PROT_IPV6)
drivers/s390/net/qeth_core_main.c
864
if (cmd->hdr.prot_version == QETH_PROT_IPV4)
drivers/s390/net/qeth_core_main.c
866
else if (cmd->hdr.prot_version == QETH_PROT_IPV6)
drivers/s390/net/qeth_core_mpc.h
412
struct qeth_ipacmd_setassparms_hdr hdr;
drivers/s390/net/qeth_core_mpc.h
464
struct qeth_snmp_ureq_hdr hdr;
drivers/s390/net/qeth_core_mpc.h
559
struct qeth_ipacmd_setadpparms_hdr hdr;
drivers/s390/net/qeth_core_mpc.h
678
struct qeth_ipacmd_vnicc_hdr hdr;
drivers/s390/net/qeth_core_mpc.h
751
struct qeth_ipacmd_sbp_hdr hdr;
drivers/s390/net/qeth_core_mpc.h
824
struct qeth_ipacmd_hdr hdr;
drivers/s390/net/qeth_core_mpc.h
865
#define IS_IPA_REPLY(cmd) ((cmd)->hdr.initiator == IPA_CMD_INITIATOR_HOST)
drivers/s390/net/qeth_l2_main.c
1512
if (cmd->hdr.return_code != 0x0000) {
drivers/s390/net/qeth_l2_main.c
1513
if (cmd->hdr.return_code == 0x0010) {
drivers/s390/net/qeth_l2_main.c
1518
cmd->hdr.return_code);
drivers/s390/net/qeth_l2_main.c
1556
enum qeth_ipa_sbp_cmd setcmd = sbp->hdr.command_code;
drivers/s390/net/qeth_l2_main.c
1557
u16 ipa_rc = cmd->hdr.return_code;
drivers/s390/net/qeth_l2_main.c
1558
u16 sbp_rc = sbp->hdr.return_code;
drivers/s390/net/qeth_l2_main.c
160
struct qeth_hdr *hdr, struct sk_buff *skb,
drivers/s390/net/qeth_l2_main.c
1656
struct qeth_ipacmd_sbp_hdr *hdr;
drivers/s390/net/qeth_l2_main.c
166
hdr->hdr.l2.pkt_length = data_len;
drivers/s390/net/qeth_l2_main.c
1666
hdr = &__ipa_cmd(iob)->data.sbp.hdr;
drivers/s390/net/qeth_l2_main.c
1667
hdr->cmdlength = sizeof(*hdr) + data_length;
drivers/s390/net/qeth_l2_main.c
1668
hdr->command_code = sbp_cmd;
drivers/s390/net/qeth_l2_main.c
1669
hdr->used_total = 1;
drivers/s390/net/qeth_l2_main.c
1670
hdr->seq_no = 1;
drivers/s390/net/qeth_l2_main.c
169
hdr->hdr.l2.id = QETH_HEADER_TYPE_L2_TSO;
drivers/s390/net/qeth_l2_main.c
171
hdr->hdr.l2.id = QETH_HEADER_TYPE_LAYER2;
drivers/s390/net/qeth_l2_main.c
173
qeth_tx_csum(skb, &hdr->hdr.l2.flags[1], proto);
drivers/s390/net/qeth_l2_main.c
178
hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_MULTICAST;
drivers/s390/net/qeth_l2_main.c
180
hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_BROADCAST;
drivers/s390/net/qeth_l2_main.c
182
hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_UNICAST;
drivers/s390/net/qeth_l2_main.c
188
hdr->hdr.l2.flags[2] |= QETH_LAYER2_FLAG_VLAN;
drivers/s390/net/qeth_l2_main.c
189
hdr->hdr.l2.vlan_id = ntohs(veth->h_vlan_TCI);
drivers/s390/net/qeth_l2_main.c
1912
u32 sub_cmd = cmd->data.vnicc.hdr.sub_command;
drivers/s390/net/qeth_l2_main.c
1915
if (cmd->hdr.return_code)
drivers/s390/net/qeth_l2_main.c
1916
return qeth_l2_vnicc_makerc(card, cmd->hdr.return_code);
drivers/s390/net/qeth_l2_main.c
1933
struct qeth_ipacmd_vnicc_hdr *hdr;
drivers/s390/net/qeth_l2_main.c
1942
hdr = &__ipa_cmd(iob)->data.vnicc.hdr;
drivers/s390/net/qeth_l2_main.c
1943
hdr->data_length = sizeof(*hdr) + data_length;
drivers/s390/net/qeth_l2_main.c
1944
hdr->sub_command = vnicc_cmd;
drivers/s390/net/qeth_l2_main.c
221
if (cmd->hdr.return_code) {
drivers/s390/net/qeth_l2_main.c
224
CARD_DEVID(card), cmd->hdr.return_code);
drivers/s390/net/qeth_l2_main.c
225
QETH_CARD_TEXT_(card, 2, "L2VL%4x", cmd->hdr.command);
drivers/s390/net/qeth_l2_main.c
227
return qeth_l2_setdelvlan_makerc(card, cmd->hdr.return_code);
drivers/s390/net/qeth_l2_main.c
2429
switch (cmd->hdr.command) {
drivers/s390/net/qeth_l2_main.c
2432
if (cmd->data.sbp.hdr.command_code ==
drivers/s390/net/qeth_l2_main.c
72
return qeth_l2_setdelmac_makerc(card, cmd->hdr.return_code);
drivers/s390/net/qeth_l3_main.c
1219
return qeth_l3_arp_makerc(cmd->hdr.return_code);
drivers/s390/net/qeth_l3_main.c
1312
QETH_CARD_TEXT_(card, 4, "%i", cmd->hdr.prot_version);
drivers/s390/net/qeth_l3_main.c
1313
if (cmd->hdr.return_code) {
drivers/s390/net/qeth_l3_main.c
1315
QETH_CARD_TEXT_(card, 4, "%i", cmd->hdr.return_code);
drivers/s390/net/qeth_l3_main.c
1316
return qeth_l3_arp_makerc(cmd->hdr.return_code);
drivers/s390/net/qeth_l3_main.c
1318
if (cmd->data.setassparms.hdr.return_code) {
drivers/s390/net/qeth_l3_main.c
1319
cmd->hdr.return_code = cmd->data.setassparms.hdr.return_code;
drivers/s390/net/qeth_l3_main.c
1321
QETH_CARD_TEXT_(card, 4, "%i", cmd->hdr.return_code);
drivers/s390/net/qeth_l3_main.c
1322
return qeth_l3_arp_makerc(cmd->hdr.return_code);
drivers/s390/net/qeth_l3_main.c
1337
if (!arpentry_matches_prot(etype, cmd->hdr.prot_version)) {
drivers/s390/net/qeth_l3_main.c
1362
if (cmd->data.setassparms.hdr.seq_no <
drivers/s390/net/qeth_l3_main.c
1363
cmd->data.setassparms.hdr.number_of_replies)
drivers/s390/net/qeth_l3_main.c
1627
struct qeth_hdr *hdr, struct sk_buff *skb,
drivers/s390/net/qeth_l3_main.c
1630
struct qeth_hdr_layer3 *l3_hdr = &hdr->hdr.l3;
drivers/s390/net/qeth_l3_main.c
1636
hdr->hdr.l3.length = data_len;
drivers/s390/net/qeth_l3_main.c
1639
hdr->hdr.l3.id = QETH_HEADER_TYPE_L3_TSO;
drivers/s390/net/qeth_l3_main.c
1641
hdr->hdr.l3.id = QETH_HEADER_TYPE_LAYER3;
drivers/s390/net/qeth_l3_main.c
1644
qeth_tx_csum(skb, &hdr->hdr.l3.ext_flags, proto);
drivers/s390/net/qeth_l3_main.c
1647
hdr->hdr.l3.ext_flags |= QETH_HDR_EXT_CSUM_HDR_REQ;
drivers/s390/net/qeth_l3_main.c
1654
hdr->hdr.l3.ext_flags |= QETH_HDR_EXT_VLAN_FRAME;
drivers/s390/net/qeth_l3_main.c
1655
hdr->hdr.l3.vlan_id = skb_vlan_tag_get(skb);
drivers/s390/net/qeth_l3_main.c
1658
hdr->hdr.l3.ext_flags |= QETH_HDR_EXT_INCLUDE_VLAN_TAG;
drivers/s390/net/qeth_l3_main.c
1659
hdr->hdr.l3.vlan_id = ntohs(veth->h_vlan_TCI);
drivers/s390/net/qeth_l3_main.c
1679
hdr->hdr.l3.flags |= QETH_HDR_IPV6;
drivers/s390/net/qeth_l3_main.c
1681
hdr->hdr.l3.flags |= QETH_HDR_PASSTHRU;
drivers/s390/net/qeth_l3_main.c
301
switch (cmd->hdr.return_code) {
drivers/s390/net/qeth_l3_main.c
915
if (cmd->hdr.return_code)
drivers/s390/net/qeth_l3_main.c
947
if (cmd->hdr.return_code == 0) {
drivers/s390/net/qeth_l3_main.c
987
rc = cmd->hdr.return_code;
drivers/s390/scsi/zfcp_diag.c
100
memcpy(hdr->buffer, data, hdr->buffer_size);
drivers/s390/scsi/zfcp_diag.c
102
spin_unlock_irqrestore(&hdr->access_lock, flags);
drivers/s390/scsi/zfcp_diag.c
166
struct zfcp_diag_header *const hdr,
drivers/s390/scsi/zfcp_diag.c
169
__must_hold(hdr->access_lock)
drivers/s390/scsi/zfcp_diag.c
173
if (hdr->updating == 1) {
drivers/s390/scsi/zfcp_diag.c
175
hdr->updating == 0,
drivers/s390/scsi/zfcp_diag.c
176
hdr->access_lock);
drivers/s390/scsi/zfcp_diag.c
179
hdr->updating = 1;
drivers/s390/scsi/zfcp_diag.c
180
spin_unlock_irqrestore(&hdr->access_lock, *flags);
drivers/s390/scsi/zfcp_diag.c
185
spin_lock_irqsave(&hdr->access_lock, *flags);
drivers/s390/scsi/zfcp_diag.c
186
hdr->updating = 0;
drivers/s390/scsi/zfcp_diag.c
200
const struct zfcp_diag_header *const hdr)
drivers/s390/scsi/zfcp_diag.c
201
__must_hold(hdr->access_lock)
drivers/s390/scsi/zfcp_diag.c
209
if (!time_after_eq(now, hdr->timestamp))
drivers/s390/scsi/zfcp_diag.c
212
if (jiffies_to_msecs(now - hdr->timestamp) >= diag->max_age)
drivers/s390/scsi/zfcp_diag.c
243
struct zfcp_diag_header *const hdr,
drivers/s390/scsi/zfcp_diag.c
249
spin_lock_irqsave(&hdr->access_lock, flags);
drivers/s390/scsi/zfcp_diag.c
252
!__zfcp_diag_test_buffer_age_isfresh(adapter->diagnostics, hdr);
drivers/s390/scsi/zfcp_diag.c
254
rc = __zfcp_diag_update_buffer(adapter, hdr, buffer_update,
drivers/s390/scsi/zfcp_diag.c
260
spin_unlock_irqrestore(&hdr->access_lock, flags);
drivers/s390/scsi/zfcp_diag.c
37
struct zfcp_diag_header *hdr;
drivers/s390/scsi/zfcp_diag.c
46
hdr = &diag->port_data.header;
drivers/s390/scsi/zfcp_diag.c
48
spin_lock_init(&hdr->access_lock);
drivers/s390/scsi/zfcp_diag.c
49
hdr->buffer = &diag->port_data.data;
drivers/s390/scsi/zfcp_diag.c
50
hdr->buffer_size = sizeof(diag->port_data.data);
drivers/s390/scsi/zfcp_diag.c
52
hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age);
drivers/s390/scsi/zfcp_diag.c
55
hdr = &diag->config_data.header;
drivers/s390/scsi/zfcp_diag.c
57
spin_lock_init(&hdr->access_lock);
drivers/s390/scsi/zfcp_diag.c
58
hdr->buffer = &diag->config_data.data;
drivers/s390/scsi/zfcp_diag.c
59
hdr->buffer_size = sizeof(diag->config_data.data);
drivers/s390/scsi/zfcp_diag.c
61
hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age);
drivers/s390/scsi/zfcp_diag.c
86
void zfcp_diag_update_xdata(struct zfcp_diag_header *const hdr,
drivers/s390/scsi/zfcp_diag.c
92
spin_lock_irqsave(&hdr->access_lock, flags);
drivers/s390/scsi/zfcp_diag.c
95
if (!time_after_eq(capture_timestamp, hdr->timestamp))
drivers/s390/scsi/zfcp_diag.c
98
hdr->timestamp = capture_timestamp;
drivers/s390/scsi/zfcp_diag.c
99
hdr->incomplete = incomplete;
drivers/s390/scsi/zfcp_diag.h
68
void zfcp_diag_update_xdata(struct zfcp_diag_header *const hdr,
drivers/s390/scsi/zfcp_diag.h
80
struct zfcp_diag_header *const hdr,
drivers/s390/scsi/zfcp_fc.c
738
struct fc_ct_hdr *hdr = sg_virt(sg);
drivers/s390/scsi/zfcp_fc.c
749
if (hdr->ct_cmd != cpu_to_be16(FC_FS_ACC)) {
drivers/s390/scsi/zfcp_fc.c
750
if (hdr->ct_reason == FC_FS_RJT_UNABL)
drivers/s390/scsi/zfcp_fc.c
755
if (hdr->ct_mr_size) {
drivers/s390/scsi/zfcp_fc.c
758
hdr->ct_mr_size);
drivers/sbus/char/oradax.c
164
struct dax_header hdr; /* CCB Header */
drivers/sbus/char/oradax.c
449
if (ccbp->hdr.out_addr_type == DAX_ADDR_TYPE_VA) {
drivers/sbus/char/oradax.c
456
ccbp->hdr.out_addr_type = DAX_ADDR_TYPE_VA_ALT;
drivers/sbus/char/oradax.c
459
if (ccbp->hdr.pri_addr_type == DAX_ADDR_TYPE_VA) {
drivers/sbus/char/oradax.c
466
ccbp->hdr.pri_addr_type = DAX_ADDR_TYPE_VA_ALT;
drivers/sbus/char/oradax.c
469
if (ccbp->hdr.sec_addr_type == DAX_ADDR_TYPE_VA) {
drivers/sbus/char/oradax.c
476
ccbp->hdr.sec_addr_type = DAX_ADDR_TYPE_VA_ALT;
drivers/sbus/char/oradax.c
479
if (ccbp->hdr.table_addr_type == DAX_ADDR_TYPE_VA) {
drivers/sbus/char/oradax.c
486
ccbp->hdr.table_addr_type = DAX_ADDR_TYPE_VA_ALT;
drivers/sbus/char/oradax.c
490
if (ccbp->hdr.longccb)
drivers/sbus/char/oradax.c
565
struct dax_command hdr;
drivers/sbus/char/oradax.c
585
if (copy_from_user(&hdr, buf, sizeof(hdr)))
drivers/sbus/char/oradax.c
588
ca = ctx->ca_buf_ra + hdr.ca_offset;
drivers/sbus/char/oradax.c
590
switch (hdr.command) {
drivers/sbus/char/oradax.c
592
if (hdr.ca_offset >= DAX_MMAP_LEN) {
drivers/sbus/char/oradax.c
594
hdr.ca_offset, DAX_MMAP_LEN);
drivers/sbus/char/oradax.c
604
dax_info_dbg("killed (ca_offset %d)", hdr.ca_offset);
drivers/sbus/char/oradax.c
605
idx = hdr.ca_offset / sizeof(struct dax_cca);
drivers/sbus/char/oradax.c
612
if (hdr.ca_offset >= DAX_MMAP_LEN) {
drivers/sbus/char/oradax.c
614
hdr.ca_offset, DAX_MMAP_LEN);
drivers/sbus/char/oradax.c
624
dax_info_dbg("info succeeded on ca_offset %d", hdr.ca_offset);
drivers/sbus/char/oradax.c
764
dax_dbg(" %sccb[%d]", ccb[i].hdr.longccb ? "long " : "", i);
drivers/sbus/char/oradax.c
789
if (ccbp->hdr.ccb_version > max_ccb_version)
drivers/sbus/char/oradax.c
792
switch (ccbp->hdr.opcode) {
drivers/sbus/char/oradax.c
807
if (ccbp->hdr.out_addr_type != DAX_ADDR_TYPE_VA &&
drivers/sbus/char/oradax.c
808
ccbp->hdr.out_addr_type != DAX_ADDR_TYPE_NONE) {
drivers/sbus/char/oradax.c
813
if (ccbp->hdr.pri_addr_type != DAX_ADDR_TYPE_VA &&
drivers/sbus/char/oradax.c
814
ccbp->hdr.pri_addr_type != DAX_ADDR_TYPE_NONE) {
drivers/sbus/char/oradax.c
819
if (ccbp->hdr.sec_addr_type != DAX_ADDR_TYPE_VA &&
drivers/sbus/char/oradax.c
820
ccbp->hdr.sec_addr_type != DAX_ADDR_TYPE_NONE) {
drivers/sbus/char/oradax.c
825
if (ccbp->hdr.table_addr_type != DAX_ADDR_TYPE_VA &&
drivers/sbus/char/oradax.c
826
ccbp->hdr.table_addr_type != DAX_ADDR_TYPE_NONE) {
drivers/sbus/char/oradax.c
832
ccbp->hdr.cca_addr_type = DAX_ADDR_TYPE_RA;
drivers/sbus/char/oradax.c
841
if (ccbp->hdr.longccb)
drivers/scsi/be2iscsi/be_cmds.c
1092
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_cmds.c
1133
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
1156
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
1185
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_cmds.c
1243
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_cmds.c
1280
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
1341
be_cmd_hdr_prepare(&pfw_cfg->hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
1650
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
1756
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_cmds.c
1765
be_cmd_hdr_prepare(&req_v1->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_cmds.c
1768
req_v1->hdr.version = 1;
drivers/scsi/be2iscsi/be_cmds.c
324
struct be_cmd_req_hdr *hdr = embedded_payload(wrb);
drivers/scsi/be2iscsi/be_cmds.c
358
hdr->subsystem, hdr->opcode, compl_status, extd_status);
drivers/scsi/be2iscsi/be_cmds.c
749
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
792
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
810
req->hdr.version = MBX_CMD_VER2;
drivers/scsi/be2iscsi/be_cmds.c
870
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_COMMON,
drivers/scsi/be2iscsi/be_cmds.c
946
be_cmd_hdr_prepare(&req->hdr, subsys, opcode, sizeof(*req));
drivers/scsi/be2iscsi/be_cmds.c
992
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_cmds.h
1083
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
1088
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
1095
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
1111
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
1117
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
1131
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
1151
struct be_cmd_resp_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
1165
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
1187
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
1232
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
1249
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
314
struct be_cmd_req_hdr hdr; /* dw[4] */
drivers/scsi/be2iscsi/be_cmds.h
352
struct be_cmd_req_hdr hdr; /* dw[4] */
drivers/scsi/be2iscsi/be_cmds.h
357
struct be_cmd_resp_hdr hdr; /* dw[4] */
drivers/scsi/be2iscsi/be_cmds.h
431
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
436
struct be_cmd_resp_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
446
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
450
struct be_cmd_resp_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
461
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
471
struct be_cmd_resp_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
478
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
485
struct be_cmd_resp_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
499
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
505
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
526
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
532
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
540
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
546
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
552
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
557
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
563
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
613
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
622
struct be_cmd_resp_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
648
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
657
struct be_cmd_resp_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
674
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
684
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
703
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
715
struct be_cmd_resp_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
728
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
905
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
916
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
926
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
937
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
943
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_cmds.h
952
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_main.c
1189
struct iscsi_logout_rsp *hdr;
drivers/scsi/be2iscsi/be_main.c
1193
hdr = (struct iscsi_logout_rsp *)task->hdr;
drivers/scsi/be2iscsi/be_main.c
1194
hdr->opcode = ISCSI_OP_LOGOUT_RSP;
drivers/scsi/be2iscsi/be_main.c
1195
hdr->t2wait = 5;
drivers/scsi/be2iscsi/be_main.c
1196
hdr->t2retain = 0;
drivers/scsi/be2iscsi/be_main.c
1197
hdr->flags = csol_cqe->i_flags;
drivers/scsi/be2iscsi/be_main.c
1198
hdr->response = csol_cqe->i_resp;
drivers/scsi/be2iscsi/be_main.c
1199
hdr->exp_cmdsn = cpu_to_be32(csol_cqe->exp_cmdsn);
drivers/scsi/be2iscsi/be_main.c
1200
hdr->max_cmdsn = cpu_to_be32(csol_cqe->exp_cmdsn +
drivers/scsi/be2iscsi/be_main.c
1203
hdr->dlength[0] = 0;
drivers/scsi/be2iscsi/be_main.c
1204
hdr->dlength[1] = 0;
drivers/scsi/be2iscsi/be_main.c
1205
hdr->dlength[2] = 0;
drivers/scsi/be2iscsi/be_main.c
1206
hdr->hlength = 0;
drivers/scsi/be2iscsi/be_main.c
1207
hdr->itt = io_task->libiscsi_itt;
drivers/scsi/be2iscsi/be_main.c
1208
__iscsi_complete_pdu(conn, (struct iscsi_hdr *)hdr, NULL, 0);
drivers/scsi/be2iscsi/be_main.c
1216
struct iscsi_tm_rsp *hdr;
drivers/scsi/be2iscsi/be_main.c
1220
hdr = (struct iscsi_tm_rsp *)task->hdr;
drivers/scsi/be2iscsi/be_main.c
1221
hdr->opcode = ISCSI_OP_SCSI_TMFUNC_RSP;
drivers/scsi/be2iscsi/be_main.c
1222
hdr->flags = csol_cqe->i_flags;
drivers/scsi/be2iscsi/be_main.c
1223
hdr->response = csol_cqe->i_resp;
drivers/scsi/be2iscsi/be_main.c
1224
hdr->exp_cmdsn = cpu_to_be32(csol_cqe->exp_cmdsn);
drivers/scsi/be2iscsi/be_main.c
1225
hdr->max_cmdsn = cpu_to_be32(csol_cqe->exp_cmdsn +
drivers/scsi/be2iscsi/be_main.c
1228
hdr->itt = io_task->libiscsi_itt;
drivers/scsi/be2iscsi/be_main.c
1229
__iscsi_complete_pdu(conn, (struct iscsi_hdr *)hdr, NULL, 0);
drivers/scsi/be2iscsi/be_main.c
1272
struct iscsi_nopin *hdr;
drivers/scsi/be2iscsi/be_main.c
1276
hdr = (struct iscsi_nopin *)task->hdr;
drivers/scsi/be2iscsi/be_main.c
1277
hdr->flags = csol_cqe->i_flags;
drivers/scsi/be2iscsi/be_main.c
1278
hdr->exp_cmdsn = cpu_to_be32(csol_cqe->exp_cmdsn);
drivers/scsi/be2iscsi/be_main.c
1279
hdr->max_cmdsn = cpu_to_be32(csol_cqe->exp_cmdsn +
drivers/scsi/be2iscsi/be_main.c
1282
hdr->opcode = ISCSI_OP_NOOP_IN;
drivers/scsi/be2iscsi/be_main.c
1283
hdr->itt = io_task->libiscsi_itt;
drivers/scsi/be2iscsi/be_main.c
1284
__iscsi_complete_pdu(conn, (struct iscsi_hdr *)hdr, NULL, 0);
drivers/scsi/be2iscsi/be_main.c
1376
if ((task->hdr->opcode & ISCSI_OPCODE_MASK) ==
drivers/scsi/be2iscsi/be_main.c
1384
if ((task->hdr->opcode & ISCSI_OPCODE_MASK) == ISCSI_OP_LOGOUT)
drivers/scsi/be2iscsi/be_main.c
4252
task->hdr = NULL;
drivers/scsi/be2iscsi/be_main.c
4374
task->hdr = (struct iscsi_hdr *)&io_task->cmd_bhs->iscsi_hdr;
drivers/scsi/be2iscsi/be_main.c
4671
switch (task->hdr->opcode & ISCSI_OPCODE_MASK) {
drivers/scsi/be2iscsi/be_main.c
4678
if (task->hdr->ttt != ISCSI_RESERVED_TAG) {
drivers/scsi/be2iscsi/be_main.c
4713
task->hdr->opcode & ISCSI_OPCODE_MASK);
drivers/scsi/be2iscsi/be_main.c
4754
task->hdr->exp_statsn = 0;
drivers/scsi/be2iscsi/be_mgmt.c
1037
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI,
drivers/scsi/be2iscsi/be_mgmt.c
1070
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI,
drivers/scsi/be2iscsi/be_mgmt.c
1453
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI,
drivers/scsi/be2iscsi/be_mgmt.c
1489
be_cmd_hdr_prepare(&req->hdr, CMD_COMMON_TCP_UPLOAD,
drivers/scsi/be2iscsi/be_mgmt.c
1537
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_mgmt.c
160
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_mgmt.c
203
req->hdr.version = MBX_CMD_VER1;
drivers/scsi/be2iscsi/be_mgmt.c
374
req->hdr.version = 1;
drivers/scsi/be2iscsi/be_mgmt.c
407
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_mgmt.c
60
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_mgmt.c
67
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI,
drivers/scsi/be2iscsi/be_mgmt.c
941
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI,
drivers/scsi/be2iscsi/be_mgmt.c
980
be_cmd_hdr_prepare(&req->hdr, CMD_SUBSYSTEM_ISCSI_INI,
drivers/scsi/be2iscsi/be_mgmt.h
123
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_mgmt.h
128
struct be_cmd_resp_hdr hdr;
drivers/scsi/be2iscsi/be_mgmt.h
133
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_mgmt.h
46
struct be_cmd_req_hdr hdr;
drivers/scsi/be2iscsi/be_mgmt.h
55
struct be_cmd_resp_hdr hdr;
drivers/scsi/bfa/bfa_ioc.c
6067
if (dconf->dconf->hdr.signature != BFI_DCONF_SIGNATURE)
drivers/scsi/bfa/bfa_ioc.c
6068
dconf->dconf->hdr.signature = BFI_DCONF_SIGNATURE;
drivers/scsi/bfa/bfa_ioc.c
6069
if (dconf->dconf->hdr.version != BFI_DCONF_VERSION)
drivers/scsi/bfa/bfa_ioc.c
6070
dconf->dconf->hdr.version = BFI_DCONF_VERSION;
drivers/scsi/bfa/bfa_ioc.h
799
struct bfa_dconf_hdr_s hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
341
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
367
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
382
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
395
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
411
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
432
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
469
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
487
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
516
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
527
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
536
struct fcoe_kwqe_header hdr;
drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h
795
struct b577xx_doorbell_hdr hdr;
drivers/scsi/bnx2fc/bnx2fc_els.c
810
u64 *hdr;
drivers/scsi/bnx2fc/bnx2fc_els.c
838
hdr = (u64 *)fc_hdr;
drivers/scsi/bnx2fc/bnx2fc_els.c
841
hdr[0] = cpu_to_be64(temp_hdr[0]);
drivers/scsi/bnx2fc/bnx2fc_els.c
842
hdr[1] = cpu_to_be64(temp_hdr[1]);
drivers/scsi/bnx2fc/bnx2fc_els.c
843
hdr[2] = cpu_to_be64(temp_hdr[2]);
drivers/scsi/bnx2fc/bnx2fc_hwi.c
101
fcoe_init2.hdr.op_code = FCOE_KWQE_OPCODE_INIT2;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
102
fcoe_init2.hdr.flags = (FCOE_KWQE_LAYER_CODE <<
drivers/scsi/bnx2fc/bnx2fc_hwi.c
125
fcoe_init3.hdr.op_code = FCOE_KWQE_OPCODE_INIT3;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
126
fcoe_init3.hdr.flags = (FCOE_KWQE_LAYER_CODE <<
drivers/scsi/bnx2fc/bnx2fc_hwi.c
155
fcoe_destroy.hdr.op_code = FCOE_KWQE_OPCODE_DESTROY;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
156
fcoe_destroy.hdr.flags = (FCOE_KWQE_LAYER_CODE <<
drivers/scsi/bnx2fc/bnx2fc_hwi.c
1614
u64 *hdr;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
1685
hdr = (u64 *) &task->txwr_rxrd.union_ctx.tx_frame.fc_hdr;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
1687
hdr[0] = cpu_to_be64(temp_hdr[0]);
drivers/scsi/bnx2fc/bnx2fc_hwi.c
1688
hdr[1] = cpu_to_be64(temp_hdr[1]);
drivers/scsi/bnx2fc/bnx2fc_hwi.c
1689
hdr[2] = cpu_to_be64(temp_hdr[2]);
drivers/scsi/bnx2fc/bnx2fc_hwi.c
193
ofld_req1.hdr.op_code = FCOE_KWQE_OPCODE_OFFLOAD_CONN1;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
194
ofld_req1.hdr.flags =
drivers/scsi/bnx2fc/bnx2fc_hwi.c
217
ofld_req2.hdr.op_code = FCOE_KWQE_OPCODE_OFFLOAD_CONN2;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
218
ofld_req2.hdr.flags =
drivers/scsi/bnx2fc/bnx2fc_hwi.c
235
ofld_req3.hdr.op_code = FCOE_KWQE_OPCODE_OFFLOAD_CONN3;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
236
ofld_req3.hdr.flags =
drivers/scsi/bnx2fc/bnx2fc_hwi.c
310
ofld_req4.hdr.op_code = FCOE_KWQE_OPCODE_OFFLOAD_CONN4;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
311
ofld_req4.hdr.flags =
drivers/scsi/bnx2fc/bnx2fc_hwi.c
372
enbl_req.hdr.op_code = FCOE_KWQE_OPCODE_ENABLE_CONN;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
373
enbl_req.hdr.flags =
drivers/scsi/bnx2fc/bnx2fc_hwi.c
38
stat_req.hdr.op_code = FCOE_KWQE_OPCODE_STAT;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
39
stat_req.hdr.flags =
drivers/scsi/bnx2fc/bnx2fc_hwi.c
441
disable_req.hdr.op_code = FCOE_KWQE_OPCODE_DISABLE_CONN;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
442
disable_req.hdr.flags =
drivers/scsi/bnx2fc/bnx2fc_hwi.c
500
destroy_req.hdr.op_code = FCOE_KWQE_OPCODE_DESTROY_CONN;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
501
destroy_req.hdr.flags =
drivers/scsi/bnx2fc/bnx2fc_hwi.c
78
fcoe_init1.hdr.op_code = FCOE_KWQE_OPCODE_INIT1;
drivers/scsi/bnx2fc/bnx2fc_hwi.c
79
fcoe_init1.hdr.flags = (FCOE_KWQE_LAYER_CODE <<
drivers/scsi/bnx2fc/bnx2fc_io.c
1529
u64 *hdr;
drivers/scsi/bnx2fc/bnx2fc_io.c
1548
hdr = (u64 *)fc_hdr;
drivers/scsi/bnx2fc/bnx2fc_io.c
1551
hdr[0] = cpu_to_be64(temp_hdr[0]);
drivers/scsi/bnx2fc/bnx2fc_io.c
1552
hdr[1] = cpu_to_be64(temp_hdr[1]);
drivers/scsi/bnx2fc/bnx2fc_io.c
1553
hdr[2] = cpu_to_be64(temp_hdr[2]);
drivers/scsi/bnx2fc/bnx2fc_tgt.c
405
rx_db->hdr.header = ((0x1 << B577XX_DOORBELL_HDR_RX_SHIFT) |
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
553
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
559
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
627
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
631
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
642
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
646
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
668
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
672
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
687
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
691
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
703
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
707
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
757
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/57xx_iscsi_hsi.h
761
struct iscsi_kwqe_header hdr;
drivers/scsi/bnx2i/bnx2i.h
258
struct iscsi_hdr hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
1263
iscsi_init.hdr.op_code = ISCSI_KWQE_OPCODE_INIT1;
drivers/scsi/bnx2i/bnx2i_hwi.c
1264
iscsi_init.hdr.flags =
drivers/scsi/bnx2i/bnx2i_hwi.c
1289
iscsi_init2.hdr.op_code = ISCSI_KWQE_OPCODE_INIT2;
drivers/scsi/bnx2i/bnx2i_hwi.c
1290
iscsi_init2.hdr.flags =
drivers/scsi/bnx2i/bnx2i_hwi.c
1345
struct iscsi_scsi_rsp *hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
1382
hdr = (struct iscsi_scsi_rsp *)task->hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
1384
hdr->opcode = resp_cqe->op_code;
drivers/scsi/bnx2i/bnx2i_hwi.c
1385
hdr->max_cmdsn = cpu_to_be32(resp_cqe->max_cmd_sn);
drivers/scsi/bnx2i/bnx2i_hwi.c
1386
hdr->exp_cmdsn = cpu_to_be32(resp_cqe->exp_cmd_sn);
drivers/scsi/bnx2i/bnx2i_hwi.c
1387
hdr->response = resp_cqe->response;
drivers/scsi/bnx2i/bnx2i_hwi.c
1388
hdr->cmd_status = resp_cqe->status;
drivers/scsi/bnx2i/bnx2i_hwi.c
1389
hdr->flags = resp_cqe->response_flags;
drivers/scsi/bnx2i/bnx2i_hwi.c
1390
hdr->residual_count = cpu_to_be32(resp_cqe->residual_count);
drivers/scsi/bnx2i/bnx2i_hwi.c
1417
__iscsi_complete_pdu(conn, (struct iscsi_hdr *)hdr,
drivers/scsi/bnx2i/bnx2i_hwi.c
1462
resp_hdr->itt = task->hdr->itt;
drivers/scsi/bnx2i/bnx2i_hwi.c
1525
resp_hdr->itt = task->hdr->itt;
drivers/scsi/bnx2i/bnx2i_hwi.c
1527
resp_hdr->statsn = task->hdr->exp_statsn;
drivers/scsi/bnx2i/bnx2i_hwi.c
1583
resp_hdr->itt = task->hdr->itt;
drivers/scsi/bnx2i/bnx2i_hwi.c
1623
resp_hdr->itt = task->hdr->itt;
drivers/scsi/bnx2i/bnx2i_hwi.c
1624
resp_hdr->statsn = task->hdr->exp_statsn;
drivers/scsi/bnx2i/bnx2i_hwi.c
1695
struct iscsi_nopin *hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
1701
hdr = (struct iscsi_nopin *)&bnx2i_conn->gen_pdu.resp_hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
1702
memset(hdr, 0, sizeof(struct iscsi_hdr));
drivers/scsi/bnx2i/bnx2i_hwi.c
1703
hdr->opcode = nop_in->op_code;
drivers/scsi/bnx2i/bnx2i_hwi.c
1704
hdr->max_cmdsn = cpu_to_be32(nop_in->max_cmd_sn);
drivers/scsi/bnx2i/bnx2i_hwi.c
1705
hdr->exp_cmdsn = cpu_to_be32(nop_in->exp_cmd_sn);
drivers/scsi/bnx2i/bnx2i_hwi.c
1706
hdr->ttt = cpu_to_be32(nop_in->ttt);
drivers/scsi/bnx2i/bnx2i_hwi.c
1710
hdr->itt = RESERVED_ITT;
drivers/scsi/bnx2i/bnx2i_hwi.c
1719
hdr->flags = ISCSI_FLAG_CMD_FINAL;
drivers/scsi/bnx2i/bnx2i_hwi.c
1720
hdr->itt = task->hdr->itt;
drivers/scsi/bnx2i/bnx2i_hwi.c
1721
hdr->ttt = cpu_to_be32(nop_in->ttt);
drivers/scsi/bnx2i/bnx2i_hwi.c
1722
memcpy(&hdr->lun, nop_in->lun, 8);
drivers/scsi/bnx2i/bnx2i_hwi.c
1725
__iscsi_complete_pdu(conn, (struct iscsi_hdr *)hdr, NULL, 0);
drivers/scsi/bnx2i/bnx2i_hwi.c
1796
struct iscsi_reject *hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
1806
hdr = (struct iscsi_reject *) &bnx2i_conn->gen_pdu.resp_hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
1807
memset(hdr, 0, sizeof(struct iscsi_hdr));
drivers/scsi/bnx2i/bnx2i_hwi.c
1808
hdr->opcode = reject->op_code;
drivers/scsi/bnx2i/bnx2i_hwi.c
1809
hdr->reason = reject->reason;
drivers/scsi/bnx2i/bnx2i_hwi.c
1810
hton24(hdr->dlength, reject->data_length);
drivers/scsi/bnx2i/bnx2i_hwi.c
1811
hdr->max_cmdsn = cpu_to_be32(reject->max_cmd_sn);
drivers/scsi/bnx2i/bnx2i_hwi.c
1812
hdr->exp_cmdsn = cpu_to_be32(reject->exp_cmd_sn);
drivers/scsi/bnx2i/bnx2i_hwi.c
1813
hdr->ffffffff = cpu_to_be32(RESERVED_ITT);
drivers/scsi/bnx2i/bnx2i_hwi.c
1814
__iscsi_complete_pdu(conn, (struct iscsi_hdr *)hdr, conn->data,
drivers/scsi/bnx2i/bnx2i_hwi.c
336
login_hdr = (struct iscsi_login_req *)task->hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
393
tmfabort_hdr = (struct iscsi_tm *)mtask->hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
463
text_hdr = (struct iscsi_text *)mtask->hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
538
nopout_hdr = (struct iscsi_nopout *)task->hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
594
logout_hdr = (struct iscsi_logout *)task->hdr;
drivers/scsi/bnx2i/bnx2i_hwi.c
639
update_wqe->hdr.op_code = ISCSI_KWQE_OPCODE_UPDATE_CONN;
drivers/scsi/bnx2i/bnx2i_hwi.c
640
update_wqe->hdr.flags =
drivers/scsi/bnx2i/bnx2i_hwi.c
759
conn_cleanup.hdr.op_code = ISCSI_KWQE_OPCODE_DESTROY_CONN;
drivers/scsi/bnx2i/bnx2i_hwi.c
760
conn_cleanup.hdr.flags =
drivers/scsi/bnx2i/bnx2i_hwi.c
796
ofld_req1.hdr.op_code = ISCSI_KWQE_OPCODE_OFFLOAD_CONN1;
drivers/scsi/bnx2i/bnx2i_hwi.c
797
ofld_req1.hdr.flags =
drivers/scsi/bnx2i/bnx2i_hwi.c
810
ofld_req2.hdr.op_code = ISCSI_KWQE_OPCODE_OFFLOAD_CONN2;
drivers/scsi/bnx2i/bnx2i_hwi.c
811
ofld_req2.hdr.flags =
drivers/scsi/bnx2i/bnx2i_hwi.c
857
ofld_req1.hdr.op_code = ISCSI_KWQE_OPCODE_OFFLOAD_CONN1;
drivers/scsi/bnx2i/bnx2i_hwi.c
858
ofld_req1.hdr.flags =
drivers/scsi/bnx2i/bnx2i_hwi.c
871
ofld_req2.hdr.op_code = ISCSI_KWQE_OPCODE_OFFLOAD_CONN2;
drivers/scsi/bnx2i/bnx2i_hwi.c
872
ofld_req2.hdr.flags =
drivers/scsi/bnx2i/bnx2i_iscsi.c
1088
switch (task->hdr->opcode & ISCSI_OPCODE_MASK) {
drivers/scsi/bnx2i/bnx2i_iscsi.c
1114
task->hdr->opcode);
drivers/scsi/bnx2i/bnx2i_iscsi.c
1228
struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)task->hdr;
drivers/scsi/bnx2i/bnx2i_iscsi.c
1245
cmd->req.cmd_sn = be32_to_cpu(hdr->cmdsn);
drivers/scsi/bnx2i/bnx2i_iscsi.c
501
task->hdr = &cmd->hdr;
drivers/scsi/csiostor/csio_hw.c
676
struct fw_hdr *hdr = (struct fw_hdr *)fw_data;
drivers/scsi/csiostor/csio_hw.c
694
if (ntohs(hdr->len512) * 512 != size) {
drivers/scsi/csiostor/csio_hw.c
752
sizeof(hdr->fw_ver),
drivers/scsi/csiostor/csio_hw.c
753
(const uint8_t *)&hdr->fw_ver);
drivers/scsi/csiostor/csio_mb.c
1194
__be64 hdr;
drivers/scsi/csiostor/csio_mb.c
1312
hdr = cpu_to_be64(csio_rd_reg64(hw, data_reg));
drivers/scsi/csiostor/csio_mb.c
1313
fw_hdr = (struct fw_cmd_hdr *)&hdr;
drivers/scsi/csiostor/csio_mb.c
1482
__be64 hdr;
drivers/scsi/csiostor/csio_mb.c
1518
hdr = cpu_to_be64(csio_rd_reg64(hw, data_reg));
drivers/scsi/csiostor/csio_mb.c
1519
fw_hdr = (struct fw_cmd_hdr *)&hdr;
drivers/scsi/csiostor/csio_mb.c
1615
struct fw_cmd_hdr *hdr;
drivers/scsi/csiostor/csio_mb.c
1644
hdr = (struct fw_cmd_hdr *)(mbp->mb);
drivers/scsi/csiostor/csio_mb.c
1647
hw->pfn, FW_CMD_OP_G(ntohl(hdr->hi)));
drivers/scsi/csiostor/csio_mb.c
1650
hdr->lo = htonl(FW_CMD_RETVAL_V(FW_HOSTERROR));
drivers/scsi/csiostor/csio_mb.c
58
struct fw_cmd_hdr *hdr;
drivers/scsi/csiostor/csio_mb.c
60
hdr = (struct fw_cmd_hdr *)(mbp->mb);
drivers/scsi/csiostor/csio_mb.c
62
return FW_CMD_RETVAL_G(ntohl(hdr->lo));
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
851
struct cpl_wr_ack *hdr = cplhdr(skb);
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
855
csk, csk->state, csk->flags, csk->tid, ntohs(hdr->credits));
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
857
cxgbi_sock_rcv_wr_ack(csk, ntohs(hdr->credits), ntohl(hdr->snd_una), 1);
drivers/scsi/cxgbi/libcxgbi.c
1164
memcpy(ppod, &ttinfo->hdr, sizeof(struct cxgbi_pagepod_hdr));
drivers/scsi/cxgbi/libcxgbi.c
1327
xferlen, &ttinfo->hdr);
drivers/scsi/cxgbi/libcxgbi.c
1552
struct iscsi_hdr *hdr = (struct iscsi_hdr *)skb->data;
drivers/scsi/cxgbi/libcxgbi.c
1553
u8 opcode = hdr->opcode & ISCSI_OPCODE_MASK;
drivers/scsi/cxgbi/libcxgbi.c
1567
int opcode = tcp_conn->in.hdr->opcode & ISCSI_OPCODE_MASK;
drivers/scsi/cxgbi/libcxgbi.c
1594
skb, opcode, ntohl(tcp_conn->in.hdr->itt),
drivers/scsi/cxgbi/libcxgbi.c
1915
task->hdr = NULL;
drivers/scsi/cxgbi/libcxgbi.c
2028
task->hdr = (struct iscsi_hdr *)tdata->skb->data;
drivers/scsi/cxgbi/libcxgbi.c
2030
task->hdr = kzalloc(SKB_TX_ISCSI_PDU_HEADER_MAX, GFP_ATOMIC);
drivers/scsi/cxgbi/libcxgbi.c
2031
if (!task->hdr) {
drivers/scsi/cxgbi/libcxgbi.c
2045
task_reserve_itt(task, &task->hdr->itt);
drivers/scsi/cxgbi/libcxgbi.c
2050
conn->max_xmit_dlength, be32_to_cpu(task->hdr->itt));
drivers/scsi/cxgbi/libcxgbi.c
2080
if (task->hdr->opcode == ISCSI_OP_SCSI_CMD && session->imm_data_en) {
drivers/scsi/cxgbi/libcxgbi.c
2085
dlength = ntoh24(task->hdr->dlength);
drivers/scsi/cxgbi/libcxgbi.c
2087
hton24(task->hdr->dlength, dlength);
drivers/scsi/cxgbi/libcxgbi.c
2111
if (task->hdr->flags & ISCSI_FLAG_CMD_FINAL)
drivers/scsi/cxgbi/libcxgbi.c
2114
task->hdr->flags &= ~ISCSI_FLAG_CMD_FINAL;
drivers/scsi/cxgbi/libcxgbi.c
2116
iso_info->op = task->hdr->opcode;
drivers/scsi/cxgbi/libcxgbi.c
2117
iso_info->ahs = task->hdr->hlength;
drivers/scsi/cxgbi/libcxgbi.c
2169
be32_to_cpu(task->cmdsn), be32_to_cpu(task->hdr->itt), offset, count);
drivers/scsi/cxgbi/libcxgbi.c
2412
memcpy(skb->data, task->hdr, SKB_TX_ISCSI_PDU_HEADER_MAX);
drivers/scsi/cxgbi/libcxgbi.c
2489
kfree(task->hdr);
drivers/scsi/cxgbi/libcxgbi.c
2490
task->hdr = NULL;
drivers/scsi/device_handler/scsi_dh_rdac.c
83
struct rdac_mode_6_hdr hdr;
drivers/scsi/device_handler/scsi_dh_rdac.c
95
struct rdac_mode_10_hdr hdr;
drivers/scsi/elx/efct/efct_hw.c
1254
i, rq->hdr->id, rq->entry_count, hdr_size);
drivers/scsi/elx/efct/efct_hw.c
2969
efct_hw_send_frame(struct efct_hw *hw, struct fc_frame_header *hdr,
drivers/scsi/elx/efct/efct_hw.c
3001
sof, eof, (u32 *)hdr, payload, payload->len,
drivers/scsi/elx/efct/efct_hw.c
3084
if (status == 0 && le16_to_cpu(mbox_rsp->hdr.status))
drivers/scsi/elx/efct/efct_hw.c
3085
status = le16_to_cpu(mbox_rsp->hdr.status);
drivers/scsi/elx/efct/efct_hw.c
3169
if (status == 0 && le16_to_cpu(mbox_rsp->hdr.status))
drivers/scsi/elx/efct/efct_hw.c
3170
status = le16_to_cpu(mbox_rsp->hdr.status);
drivers/scsi/elx/efct/efct_hw.c
3279
mbox_status = le16_to_cpu(mbox_rsp->hdr.status);
drivers/scsi/elx/efct/efct_hw.c
758
rq_cfg[i].rq_id = cpu_to_le16(rq->hdr->id);
drivers/scsi/elx/efct/efct_hw.c
759
efct_logfcfi(hw, j, i, rq->hdr->id);
drivers/scsi/elx/efct/efct_hw.c
799
rq_filter[0].rq_id = cpu_to_le16(rq->hdr->id);
drivers/scsi/elx/efct/efct_hw.c
800
rq_filter[1].rq_id = cpu_to_le16(rq->hdr->id);
drivers/scsi/elx/efct/efct_hw.c
819
if ((rc) || (le16_to_cpu(rsp->hdr.status))) {
drivers/scsi/elx/efct/efct_hw.c
821
rsp->hdr.command, le16_to_cpu(rsp->hdr.status));
drivers/scsi/elx/efct/efct_hw.c
87
if (status || le16_to_cpu(read_topo->hdr.status)) {
drivers/scsi/elx/efct/efct_hw.c
89
le16_to_cpu(read_topo->hdr.status));
drivers/scsi/elx/efct/efct_hw.h
554
struct sli4_queue *hdr;
drivers/scsi/elx/efct/efct_hw.h
695
efct_hw_send_frame(struct efct_hw *hw, struct fc_frame_header *hdr,
drivers/scsi/elx/efct/efct_hw_queues.c
338
rq->hdr = &hw->rq[hw->rq_count];
drivers/scsi/elx/efct/efct_hw_queues.c
342
qs[q_count] = rq->hdr;
drivers/scsi/elx/efct/efct_hw_queues.c
87
rqs[j]->base_mrq_id = rqs[0]->hdr->id;
drivers/scsi/elx/efct/efct_scsi.c
919
efct_bls_send_rjt(struct efct_io *io, struct fc_frame_header *hdr)
drivers/scsi/elx/efct/efct_scsi.c
931
io->init_task_tag = be16_to_cpu(hdr->fh_ox_id);
drivers/scsi/elx/efct/efct_scsi.c
935
bls->ox_id = be16_to_cpu(hdr->fh_ox_id);
drivers/scsi/elx/efct/efct_scsi.c
936
bls->rx_id = be16_to_cpu(hdr->fh_rx_id);
drivers/scsi/elx/efct/efct_scsi.h
201
efct_bls_send_rjt(struct efct_io *io, struct fc_frame_header *hdr);
drivers/scsi/elx/efct/efct_unsol.c
10
#define frame_printf(efct, hdr, fmt, ...) \
drivers/scsi/elx/efct/efct_unsol.c
13
efc_node_fcid_display(ntoh24((hdr)->fh_s_id), \
drivers/scsi/elx/efct/efct_unsol.c
16
ntoh24((hdr)->fh_d_id), s_id_text, \
drivers/scsi/elx/efct/efct_unsol.c
17
(hdr)->fh_r_ctl, be16_to_cpu((hdr)->fh_ox_id), \
drivers/scsi/elx/efct/efct_unsol.c
18
be16_to_cpu((hdr)->fh_rx_id), ##__VA_ARGS__); \
drivers/scsi/elx/efct/efct_unsol.c
230
struct fc_frame_header hdr;
drivers/scsi/elx/efct/efct_unsol.c
239
memset(&hdr, 0, sizeof(hdr));
drivers/scsi/elx/efct/efct_unsol.c
240
hdr.fh_r_ctl = r_ctl;
drivers/scsi/elx/efct/efct_unsol.c
242
memcpy(hdr.fh_d_id, req_hdr->fh_s_id, sizeof(hdr.fh_d_id));
drivers/scsi/elx/efct/efct_unsol.c
243
memcpy(hdr.fh_s_id, req_hdr->fh_d_id, sizeof(hdr.fh_s_id));
drivers/scsi/elx/efct/efct_unsol.c
244
hdr.fh_type = type;
drivers/scsi/elx/efct/efct_unsol.c
245
hton24(hdr.fh_f_ctl, f_ctl);
drivers/scsi/elx/efct/efct_unsol.c
246
hdr.fh_ox_id = req_hdr->fh_ox_id;
drivers/scsi/elx/efct/efct_unsol.c
247
hdr.fh_rx_id = req_hdr->fh_rx_id;
drivers/scsi/elx/efct/efct_unsol.c
248
hdr.fh_cs_ctl = 0;
drivers/scsi/elx/efct/efct_unsol.c
249
hdr.fh_df_ctl = 0;
drivers/scsi/elx/efct/efct_unsol.c
250
hdr.fh_seq_cnt = 0;
drivers/scsi/elx/efct/efct_unsol.c
251
hdr.fh_parm_offset = 0;
drivers/scsi/elx/efct/efct_unsol.c
257
hdr.fh_seq_id = (u8)atomic_add_return(1, &hw->send_frame_seq_id);
drivers/scsi/elx/efct/efct_unsol.c
258
hdr.fh_seq_id--;
drivers/scsi/elx/efct/efct_unsol.c
290
rc = efct_hw_send_frame(&efct->hw, (void *)&hdr, FC_SOF_N3,
drivers/scsi/elx/efct/efct_unsol.c
402
efct_process_abts(struct efct_io *io, struct fc_frame_header *hdr)
drivers/scsi/elx/efct/efct_unsol.c
406
u16 ox_id = be16_to_cpu(hdr->fh_ox_id);
drivers/scsi/elx/efct/efct_unsol.c
407
u16 rx_id = be16_to_cpu(hdr->fh_rx_id);
drivers/scsi/elx/efct/efct_unsol.c
43
struct fc_frame_header *hdr;
drivers/scsi/elx/efct/efct_unsol.c
457
efct_bls_send_rjt(io, hdr);
drivers/scsi/elx/efct/efct_unsol.c
46
hdr = seq->header->dma.virt;
drivers/scsi/elx/efct/efct_unsol.c
466
struct fc_frame_header *hdr = seq->header->dma.virt;
drivers/scsi/elx/efct/efct_unsol.c
486
ntoh24(hdr->fh_s_id), ntoh24(hdr->fh_d_id),
drivers/scsi/elx/efct/efct_unsol.c
487
be16_to_cpu(hdr->fh_ox_id),
drivers/scsi/elx/efct/efct_unsol.c
488
be16_to_cpu(hdr->fh_rx_id));
drivers/scsi/elx/efct/efct_unsol.c
49
s_id = ntoh24(hdr->fh_s_id);
drivers/scsi/elx/efct/efct_unsol.c
50
d_id = ntoh24(hdr->fh_d_id);
drivers/scsi/elx/efct/efct_unsol.c
52
if (!(hdr->fh_type == FC_TYPE_FCP || hdr->fh_type == FC_TYPE_BLS))
drivers/scsi/elx/efct/efct_unsol.c
55
if (hdr->fh_type == FC_TYPE_FCP) {
drivers/scsi/elx/libefc/efc_cmds.c
320
struct sli4_mbox_command_header *hdr =
drivers/scsi/elx/libefc/efc_cmds.c
323
if (status || le16_to_cpu(hdr->status)) {
drivers/scsi/elx/libefc/efc_cmds.c
326
le16_to_cpu(hdr->status));
drivers/scsi/elx/libefc/efc_cmds.c
37
struct sli4_mbox_command_header *hdr =
drivers/scsi/elx/libefc/efc_cmds.c
40
if (status || le16_to_cpu(hdr->status)) {
drivers/scsi/elx/libefc/efc_cmds.c
42
nport->indicator, status, le16_to_cpu(hdr->status));
drivers/scsi/elx/libefc/efc_cmds.c
637
struct sli4_mbox_command_header *hdr =
drivers/scsi/elx/libefc/efc_cmds.c
641
if (status || le16_to_cpu(hdr->status)) {
drivers/scsi/elx/libefc/efc_cmds.c
643
le16_to_cpu(hdr->status));
drivers/scsi/elx/libefc/efc_cmds.c
723
struct sli4_mbox_command_header *hdr =
drivers/scsi/elx/libefc/efc_cmds.c
728
if (status || le16_to_cpu(hdr->status)) {
drivers/scsi/elx/libefc/efc_cmds.c
730
le16_to_cpu(hdr->status));
drivers/scsi/elx/libefc/efc_cmds.c
739
(le16_to_cpu(hdr->status) != SLI4_MBX_STATUS_RPI_NOT_REG))
drivers/scsi/elx/libefc/efc_device.c
1136
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
1145
efc_send_ls_rjt(node, be16_to_cpu(hdr->fh_ox_id),
drivers/scsi/elx/libefc/efc_device.c
1151
efc_d_send_prli_rsp(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_device.c
1242
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
1248
efc_send_logo_acc(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_device.c
1341
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
1350
efc_send_ls_rjt(node, be16_to_cpu(hdr->fh_ox_id),
drivers/scsi/elx/libefc/efc_device.c
1356
efc_send_prli_acc(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_device.c
1361
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
1363
efc_send_prlo_acc(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_device.c
1369
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
1374
efc_send_logo_acc(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_device.c
1380
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
1382
efc_send_adisc_acc(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_device.c
1531
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
1536
efc_send_logo_acc(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_device.c
1590
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
1595
efc_send_logo_acc(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_device.c
344
struct fc_frame_header *hdr,
drivers/scsi/elx/libefc/efc_device.c
347
u16 ox_id = be16_to_cpu(hdr->fh_ox_id);
drivers/scsi/elx/libefc/efc_device.c
354
node->ls_acc_did = ntoh24(hdr->fh_d_id);
drivers/scsi/elx/libefc/efc_device.c
539
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
549
efc_d_check_plogi_topology(node, ntoh24(hdr->fh_d_id));
drivers/scsi/elx/libefc/efc_device.c
568
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
569
u32 d_id = ntoh24(hdr->fh_d_id);
drivers/scsi/elx/libefc/efc_device.c
579
efc_send_flogi_p2p_acc(node, be16_to_cpu(hdr->fh_ox_id), d_id);
drivers/scsi/elx/libefc/efc_device.c
592
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
607
efc_send_logo_acc(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_device.c
617
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
635
efc_send_ls_rjt(node, be16_to_cpu(hdr->fh_ox_id),
drivers/scsi/elx/libefc/efc_device.c
745
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_device.c
750
efc_send_ls_rjt(node, be16_to_cpu(hdr->fh_ox_id),
drivers/scsi/elx/libefc/efc_device.h
22
struct fc_frame_header *hdr,
drivers/scsi/elx/libefc/efc_domain.c
1025
struct fc_frame_header *hdr = seq->header->dma.virt;
drivers/scsi/elx/libefc/efc_domain.c
1030
port_id = ntoh24(hdr->fh_s_id);
drivers/scsi/elx/libefc/efc_domain.c
1035
if ((!(ntoh24(hdr->fh_f_ctl) & FC_FC_END_SEQ)) ||
drivers/scsi/elx/libefc/efc_domain.c
1036
!(ntoh24(hdr->fh_f_ctl) & FC_FC_SEQ_INIT)) {
drivers/scsi/elx/libefc/efc_domain.c
1039
cpu_to_be32(((u32 *)hdr)[0]),
drivers/scsi/elx/libefc/efc_domain.c
1040
cpu_to_be32(((u32 *)hdr)[1]),
drivers/scsi/elx/libefc/efc_domain.c
1041
cpu_to_be32(((u32 *)hdr)[2]),
drivers/scsi/elx/libefc/efc_domain.c
1042
cpu_to_be32(((u32 *)hdr)[3]),
drivers/scsi/elx/libefc/efc_domain.c
1043
cpu_to_be32(((u32 *)hdr)[4]),
drivers/scsi/elx/libefc/efc_domain.c
1044
cpu_to_be32(((u32 *)hdr)[5]));
drivers/scsi/elx/libefc/efc_domain.c
1048
switch (hdr->fh_r_ctl) {
drivers/scsi/elx/libefc/efc_domain.c
1063
switch (hdr->fh_type) {
drivers/scsi/elx/libefc/efc_domain.c
1065
if ((hdr->fh_r_ctl & 0xf) == FC_RCTL_DD_UNSOL_CMD) {
drivers/scsi/elx/libefc/efc_domain.c
1071
} else if ((hdr->fh_r_ctl & 0xf) ==
drivers/scsi/elx/libefc/efc_domain.c
1086
efc_log_err(efc, "Unhandled frame rctl: %02x\n", hdr->fh_r_ctl);
drivers/scsi/elx/libefc/efc_domain.c
942
struct fc_frame_header *hdr;
drivers/scsi/elx/libefc/efc_domain.c
953
hdr = seq->header->dma.virt;
drivers/scsi/elx/libefc/efc_domain.c
956
s_id = ntoh24(hdr->fh_s_id);
drivers/scsi/elx/libefc/efc_domain.c
957
d_id = ntoh24(hdr->fh_d_id);
drivers/scsi/elx/libefc/efc_domain.c
963
if (hdr->fh_type == FC_TYPE_FCP) {
drivers/scsi/elx/libefc/efc_domain.c
987
if ((hdr->fh_r_ctl == FC_RCTL_DD_SOL_DATA) ||
drivers/scsi/elx/libefc/efc_domain.c
988
(hdr->fh_r_ctl == FC_RCTL_DD_SOL_CTL)) {
drivers/scsi/elx/libefc/efc_els.c
1074
efc_send_bls_acc(struct efc_node *node, struct fc_frame_header *hdr)
drivers/scsi/elx/libefc/efc_els.c
1081
bls.ox_id = be16_to_cpu(hdr->fh_ox_id);
drivers/scsi/elx/libefc/efc_els.c
1082
bls.rx_id = be16_to_cpu(hdr->fh_rx_id);
drivers/scsi/elx/libefc/efc_els.c
1083
bls.s_id = ntoh24(hdr->fh_d_id);
drivers/scsi/elx/libefc/efc_els.c
877
fcct_build_req_header(struct fc_ct_hdr *hdr, u16 cmd, u16 max_size)
drivers/scsi/elx/libefc/efc_els.c
879
hdr->ct_rev = FC_CT_REV;
drivers/scsi/elx/libefc/efc_els.c
880
hdr->ct_fs_type = FC_FST_DIR;
drivers/scsi/elx/libefc/efc_els.c
881
hdr->ct_fs_subtype = FC_NS_SUBTYPE;
drivers/scsi/elx/libefc/efc_els.c
882
hdr->ct_options = 0;
drivers/scsi/elx/libefc/efc_els.c
883
hdr->ct_cmd = cpu_to_be16(cmd);
drivers/scsi/elx/libefc/efc_els.c
885
hdr->ct_mr_size = cpu_to_be16(max_size / (sizeof(u32)));
drivers/scsi/elx/libefc/efc_els.c
886
hdr->ct_reason = 0;
drivers/scsi/elx/libefc/efc_els.c
887
hdr->ct_explan = 0;
drivers/scsi/elx/libefc/efc_els.c
888
hdr->ct_vendor = 0;
drivers/scsi/elx/libefc/efc_els.c
897
struct fc_ct_hdr hdr;
drivers/scsi/elx/libefc/efc_els.c
918
fcct_build_req_header(&ct->hdr, FC_NS_RFT_ID,
drivers/scsi/elx/libefc/efc_els.c
934
struct fc_ct_hdr hdr;
drivers/scsi/elx/libefc/efc_els.c
955
fcct_build_req_header(&ct->hdr, FC_NS_RFF_ID,
drivers/scsi/elx/libefc/efc_els.c
974
struct fc_ct_hdr hdr;
drivers/scsi/elx/libefc/efc_els.c
996
fcct_build_req_header(&ct->hdr, FC_NS_GID_PT,
drivers/scsi/elx/libefc/efc_els.h
105
efc_send_bls_acc(struct efc_node *node, struct fc_frame_header *hdr);
drivers/scsi/elx/libefc/efc_els.h
91
struct fc_frame_header *hdr);
drivers/scsi/elx/libefc/efc_els.h
93
efc_bls_send_rjt_hdr(struct efc_els_io_req *io, struct fc_frame_header *hdr);
drivers/scsi/elx/libefc/efc_fabric.c
1035
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_fabric.c
1042
efc_send_ls_acc(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_fabric.c
1355
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_fabric.c
1358
efc_send_plogi_acc(node, be16_to_cpu(hdr->fh_ox_id));
drivers/scsi/elx/libefc/efc_fabric.c
659
struct fc_ct_hdr hdr;
drivers/scsi/elx/libefc/efc_fabric.c
667
residual = be16_to_cpu(rsp->hdr.ct_mr_size);
drivers/scsi/elx/libefc/efc_fabric.c
672
if (be16_to_cpu(rsp->hdr.ct_cmd) == FC_FS_RJT) {
drivers/scsi/elx/libefc/efc_fabric.c
675
rsp->hdr.ct_reason, rsp->hdr.ct_explan);
drivers/scsi/elx/libefc/efc_node.c
708
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_node.c
719
efc_send_ls_rjt(node, be16_to_cpu(hdr->fh_ox_id),
drivers/scsi/elx/libefc/efc_node.c
734
struct fc_frame_header *hdr = cbdata->header->dma.virt;
drivers/scsi/elx/libefc/efc_node.c
741
efc_send_ls_rjt(node, be16_to_cpu(hdr->fh_ox_id),
drivers/scsi/elx/libefc/efc_node.c
970
struct fc_frame_header *hdr = seq->header->dma.virt;
drivers/scsi/elx/libefc/efc_node.c
976
efc_send_ct_rsp(efc, node, be16_to_cpu(hdr->fh_ox_id), iu,
drivers/scsi/elx/libefc_sli/sli4.c
131
sli_cmd_fill_hdr(&cqv2->hdr, SLI4_CMN_CREATE_CQ, SLI4_SUBSYSTEM_COMMON,
drivers/scsi/elx/libefc_sli/sli4.c
197
sli_cmd_fill_hdr(&eq->hdr, SLI4_CMN_CREATE_EQ, SLI4_SUBSYSTEM_COMMON,
drivers/scsi/elx/libefc_sli/sli4.c
2225
sli_send_frame_wqe(struct sli4 *sli, void *buf, u8 sof, u8 eof, u32 *hdr,
drivers/scsi/elx/libefc_sli/sli4.c
2240
sf->fc_header_0_1[0] = cpu_to_le32(hdr[0]);
drivers/scsi/elx/libefc_sli/sli4.c
2241
sf->fc_header_0_1[1] = cpu_to_le32(hdr[1]);
drivers/scsi/elx/libefc_sli/sli4.c
2242
sf->fc_header_2_5[0] = cpu_to_le32(hdr[2]);
drivers/scsi/elx/libefc_sli/sli4.c
2243
sf->fc_header_2_5[1] = cpu_to_le32(hdr[3]);
drivers/scsi/elx/libefc_sli/sli4.c
2244
sf->fc_header_2_5[2] = cpu_to_le32(hdr[4]);
drivers/scsi/elx/libefc_sli/sli4.c
2245
sf->fc_header_2_5[3] = cpu_to_le32(hdr[5]);
drivers/scsi/elx/libefc_sli/sli4.c
255
sli_cmd_fill_hdr(&mq->hdr, SLI4_CMN_CREATE_MQ_EXT,
drivers/scsi/elx/libefc_sli/sli4.c
284
mq->hdr.dw3_version = cpu_to_le32(CMD_V1);
drivers/scsi/elx/libefc_sli/sli4.c
2940
config_link->hdr.command = SLI4_MBX_CMD_CONFIG_LINK;
drivers/scsi/elx/libefc_sli/sli4.c
2950
struct sli4_mbox_command_header *hdr = buf;
drivers/scsi/elx/libefc_sli/sli4.c
2954
hdr->command = SLI4_MBX_CMD_DOWN_LINK;
drivers/scsi/elx/libefc_sli/sli4.c
2968
cmd->hdr.command = SLI4_MBX_CMD_DUMP;
drivers/scsi/elx/libefc_sli/sli4.c
2990
sli_cmd_fill_hdr(&req->hdr, SLI4_CMN_READ_TRANS_DATA,
drivers/scsi/elx/libefc_sli/sli4.c
3010
cmd->hdr.command = SLI4_MBX_CMD_READ_LNK_STAT;
drivers/scsi/elx/libefc_sli/sli4.c
3032
cmd->hdr.command = SLI4_MBX_CMD_READ_STATUS;
drivers/scsi/elx/libefc_sli/sli4.c
3050
init_link->hdr.command = SLI4_MBX_CMD_INIT_LINK;
drivers/scsi/elx/libefc_sli/sli4.c
3118
init_vfi->hdr.command = SLI4_MBX_CMD_INIT_VFI;
drivers/scsi/elx/libefc_sli/sli4.c
3142
init_vpi->hdr.command = SLI4_MBX_CMD_INIT_VPI;
drivers/scsi/elx/libefc_sli/sli4.c
315
sli_cmd_fill_hdr(&wq->hdr, SLI4_OPC_WQ_CREATE, SLI4_SUBSYSTEM_FC,
drivers/scsi/elx/libefc_sli/sli4.c
3157
post_xri->hdr.command = SLI4_MBX_CMD_POST_XRI;
drivers/scsi/elx/libefc_sli/sli4.c
3174
release_xri->hdr.command = SLI4_MBX_CMD_RELEASE_XRI;
drivers/scsi/elx/libefc_sli/sli4.c
3188
read_config->hdr.command = SLI4_MBX_CMD_READ_CONFIG;
drivers/scsi/elx/libefc_sli/sli4.c
3200
read_nvparms->hdr.command = SLI4_MBX_CMD_READ_NVPARMS;
drivers/scsi/elx/libefc_sli/sli4.c
3213
write_nvparms->hdr.command = SLI4_MBX_CMD_WRITE_NVPARMS;
drivers/scsi/elx/libefc_sli/sli4.c
3229
read_rev->hdr.command = SLI4_MBX_CMD_READ_REV;
drivers/scsi/elx/libefc_sli/sli4.c
3264
read_sparm64->hdr.command = SLI4_MBX_CMD_READ_SPARM64;
drivers/scsi/elx/libefc_sli/sli4.c
3294
read_topo->hdr.command = SLI4_MBX_CMD_READ_TOPOLOGY;
drivers/scsi/elx/libefc_sli/sli4.c
3318
reg_fcfi->hdr.command = SLI4_MBX_CMD_REG_FCFI;
drivers/scsi/elx/libefc_sli/sli4.c
3357
reg_fcfi_mrq->hdr.command = SLI4_MBX_CMD_REG_FCFI_MRQ;
drivers/scsi/elx/libefc_sli/sli4.c
3404
reg_rpi->hdr.command = SLI4_MBX_CMD_REG_RPI;
drivers/scsi/elx/libefc_sli/sli4.c
3444
reg_vfi->hdr.command = SLI4_MBX_CMD_REG_VFI;
drivers/scsi/elx/libefc_sli/sli4.c
3478
reg_vpi->hdr.command = SLI4_MBX_CMD_REG_VPI;
drivers/scsi/elx/libefc_sli/sli4.c
3502
req_features->hdr.command = SLI4_MBX_CMD_RQST_FEATURES;
drivers/scsi/elx/libefc_sli/sli4.c
3519
unreg_fcfi->hdr.command = SLI4_MBX_CMD_UNREG_FCFI;
drivers/scsi/elx/libefc_sli/sli4.c
3534
unreg_rpi->hdr.command = SLI4_MBX_CMD_UNREG_RPI;
drivers/scsi/elx/libefc_sli/sli4.c
3572
unreg_vfi->hdr.command = SLI4_MBX_CMD_UNREG_VFI;
drivers/scsi/elx/libefc_sli/sli4.c
3601
unreg_vpi->hdr.command = SLI4_MBX_CMD_UNREG_VPI;
drivers/scsi/elx/libefc_sli/sli4.c
3639
sli_cmd_fill_hdr(&req->hdr, SLI4_CMN_MODIFY_EQ_DELAY,
drivers/scsi/elx/libefc_sli/sli4.c
3665
sli_cmd_fill_hdr(&req->hdr, SLI4_OPC_LOWLEVEL_SET_WATCHDOG,
drivers/scsi/elx/libefc_sli/sli4.c
3675
struct sli4_rqst_hdr *hdr = NULL;
drivers/scsi/elx/libefc_sli/sli4.c
3677
hdr = sli_config_cmd_init(sli4, buf, SLI4_RQST_CMDSZ(hdr), dma);
drivers/scsi/elx/libefc_sli/sli4.c
3678
if (!hdr)
drivers/scsi/elx/libefc_sli/sli4.c
3681
hdr->opcode = SLI4_CMN_GET_CNTL_ATTRIBUTES;
drivers/scsi/elx/libefc_sli/sli4.c
3682
hdr->subsystem = SLI4_SUBSYSTEM_COMMON;
drivers/scsi/elx/libefc_sli/sli4.c
3683
hdr->request_length = cpu_to_le32(dma->size);
drivers/scsi/elx/libefc_sli/sli4.c
3692
struct sli4_rqst_hdr *hdr = NULL;
drivers/scsi/elx/libefc_sli/sli4.c
3694
hdr = sli_config_cmd_init(sli4, buf, SLI4_RQST_CMDSZ(hdr), dma);
drivers/scsi/elx/libefc_sli/sli4.c
3695
if (!hdr)
drivers/scsi/elx/libefc_sli/sli4.c
3698
hdr->opcode = SLI4_CMN_GET_CNTL_ADDL_ATTRS;
drivers/scsi/elx/libefc_sli/sli4.c
3699
hdr->subsystem = SLI4_SUBSYSTEM_COMMON;
drivers/scsi/elx/libefc_sli/sli4.c
3700
hdr->request_length = cpu_to_le32(dma->size);
drivers/scsi/elx/libefc_sli/sli4.c
3715
sli_cmd_fill_hdr(&nop->hdr, SLI4_CMN_NOP, SLI4_SUBSYSTEM_COMMON,
drivers/scsi/elx/libefc_sli/sli4.c
3733
sli_cmd_fill_hdr(&ext->hdr, SLI4_CMN_GET_RSC_EXTENT_INFO,
drivers/scsi/elx/libefc_sli/sli4.c
3745
struct sli4_rqst_hdr *hdr = NULL;
drivers/scsi/elx/libefc_sli/sli4.c
3747
hdr = sli_config_cmd_init(sli4, buf,
drivers/scsi/elx/libefc_sli/sli4.c
3749
if (!hdr)
drivers/scsi/elx/libefc_sli/sli4.c
3752
hdr->opcode = SLI4_CMN_GET_SLI4_PARAMS;
drivers/scsi/elx/libefc_sli/sli4.c
3753
hdr->subsystem = SLI4_SUBSYSTEM_COMMON;
drivers/scsi/elx/libefc_sli/sli4.c
3754
hdr->request_length = SLI4_RQST_PYLD_LEN(cmn_get_sli4_params);
drivers/scsi/elx/libefc_sli/sli4.c
3769
sli_cmd_fill_hdr(&pname->hdr, SLI4_CMN_GET_PORT_NAME,
drivers/scsi/elx/libefc_sli/sli4.c
3794
sli_cmd_fill_hdr(&wr_obj->hdr, SLI4_CMN_WRITE_OBJECT,
drivers/scsi/elx/libefc_sli/sli4.c
381
sli_cmd_fill_hdr(&rq->hdr, SLI4_OPC_RQ_CREATE, SLI4_SUBSYSTEM_FC,
drivers/scsi/elx/libefc_sli/sli4.c
3832
sli_cmd_fill_hdr(&req->hdr, SLI4_CMN_DELETE_OBJECT,
drivers/scsi/elx/libefc_sli/sli4.c
3852
sli_cmd_fill_hdr(&rd_obj->hdr, SLI4_CMN_READ_OBJECT,
drivers/scsi/elx/libefc_sli/sli4.c
3890
sli_cmd_fill_hdr(&clp_cmd->hdr, DMTF_EXEC_CLP_CMD, SLI4_SUBSYSTEM_DMTF,
drivers/scsi/elx/libefc_sli/sli4.c
3915
sli_cmd_fill_hdr(&set_dump_loc->hdr, SLI4_CMN_SET_DUMP_LOCATION,
drivers/scsi/elx/libefc_sli/sli4.c
3956
sli_cmd_fill_hdr(&cmd->hdr, SLI4_CMN_SET_FEATURES,
drivers/scsi/elx/libefc_sli/sli4.c
4104
if (le16_to_cpu(req_features->hdr.status)) {
drivers/scsi/elx/libefc_sli/sli4.c
4106
le16_to_cpu(req_features->hdr.status));
drivers/scsi/elx/libefc_sli/sli4.c
4157
if (le16_to_cpu(conf->hdr.status)) {
drivers/scsi/elx/libefc_sli/sli4.c
4159
le16_to_cpu(conf->hdr.status));
drivers/scsi/elx/libefc_sli/sli4.c
4270
if (parms->hdr.status) {
drivers/scsi/elx/libefc_sli/sli4.c
4272
parms->hdr.status);
drivers/scsi/elx/libefc_sli/sli4.c
4274
parms->hdr.additional_status);
drivers/scsi/elx/libefc_sli/sli4.c
4395
if (attr->hdr.status) {
drivers/scsi/elx/libefc_sli/sli4.c
4397
attr->hdr.status);
drivers/scsi/elx/libefc_sli/sli4.c
4399
attr->hdr.additional_status);
drivers/scsi/elx/libefc_sli/sli4.c
4435
if (add_attr->hdr.status) {
drivers/scsi/elx/libefc_sli/sli4.c
4437
add_attr->hdr.status);
drivers/scsi/elx/libefc_sli/sli4.c
4466
if (le16_to_cpu(read_rev->hdr.status)) {
drivers/scsi/elx/libefc_sli/sli4.c
4468
le16_to_cpu(read_rev->hdr.status));
drivers/scsi/elx/libefc_sli/sli4.c
4552
if (le16_to_cpu(read_nvparms->hdr.status)) {
drivers/scsi/elx/libefc_sli/sli4.c
4554
le16_to_cpu(read_nvparms->hdr.status));
drivers/scsi/elx/libefc_sli/sli4.c
459
sli_cmd_fill_hdr(&req->hdr, SLI4_OPC_RQ_CREATE, SLI4_SUBSYSTEM_FC,
drivers/scsi/elx/libefc_sli/sli4.c
5023
sli_cmd_fill_hdr(&post->hdr, SLI4_OPC_POST_SGL_PAGES, SLI4_SUBSYSTEM_FC,
drivers/scsi/elx/libefc_sli/sli4.c
5086
sli_cmd_fill_hdr(&req->hdr, SLI4_OPC_POST_HDR_TEMPLATES,
drivers/scsi/elx/libefc_sli/sli4.c
60
config->hdr.command = SLI4_MBX_CMD_SLI_CONFIG;
drivers/scsi/elx/libefc_sli/sli4.c
617
if (rsp->hdr.status) {
drivers/scsi/elx/libefc_sli/sli4.c
619
rsp->hdr.status, rsp->hdr.additional_status);
drivers/scsi/elx/libefc_sli/sli4.c
654
if (!buf || sli_config->hdr.command !=
drivers/scsi/elx/libefc_sli/sli4.c
657
buf ? sli_config->hdr.command : -1);
drivers/scsi/elx/libefc_sli/sli4.c
661
if (le16_to_cpu(sli_config->hdr.status))
drivers/scsi/elx/libefc_sli/sli4.c
662
return le16_to_cpu(sli_config->hdr.status);
drivers/scsi/elx/libefc_sli/sli4.c
689
if (res_q->hdr.status) {
drivers/scsi/elx/libefc_sli/sli4.c
691
SLI4_QNAME[q->type], res_q->hdr.status,
drivers/scsi/elx/libefc_sli/sli4.c
692
res_q->hdr.additional_status);
drivers/scsi/elx/libefc_sli/sli4.c
864
sli_cmd_fill_hdr(&req->hdr, SLI4_CMN_CREATE_CQ_SET, SLI4_SUBSYSTEM_FC,
drivers/scsi/elx/libefc_sli/sli4.c
944
if (res->hdr.status) {
drivers/scsi/elx/libefc_sli/sli4.c
946
res->hdr.status, res->hdr.additional_status);
drivers/scsi/elx/libefc_sli/sli4.c
987
sli_cmd_fill_hdr(&req->hdr, opc, subsystem,
drivers/scsi/elx/libefc_sli/sli4.h
2067
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2090
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2149
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2169
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2180
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2195
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2207
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2219
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2246
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2285
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2297
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2318
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2346
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2385
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2447
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2475
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2506
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2526
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2545
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2578
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2601
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2615
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2663
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2703
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2723
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2738
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2761
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2769
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2777
struct sli4_mbox_command_header hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2852
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2856
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2870
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2928
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2932
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2968
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2973
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2978
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
2991
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3076
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3080
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3124
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3130
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3135
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3150
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3156
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3166
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3177
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3189
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3200
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3206
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3215
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3231
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3238
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3279
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3317
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3327
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3378
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3382
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3397
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3401
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3417
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3422
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3426
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3432
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3458
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3470
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3474
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
3722
sli_cmd_fill_hdr(struct sli4_rqst_hdr *hdr, u8 opc, u8 sub, u32 ver, __le32 len)
drivers/scsi/elx/libefc_sli/sli4.h
3724
hdr->opcode = opc;
drivers/scsi/elx/libefc_sli/sli4.h
3725
hdr->subsystem = sub;
drivers/scsi/elx/libefc_sli/sli4.h
3726
hdr->dw3_version = cpu_to_le32(ver);
drivers/scsi/elx/libefc_sli/sli4.h
3727
hdr->request_length = len;
drivers/scsi/elx/libefc_sli/sli4.h
4068
u32 *hdr, struct efc_dma *payload, u32 req_len, u8 timeout,
drivers/scsi/elx/libefc_sli/sli4.h
602
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
629
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
657
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
667
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
674
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
680
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
691
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
697
struct sli4_rsp_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
715
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
758
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
798
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
831
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
857
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
878
struct sli4_rqst_hdr hdr;
drivers/scsi/elx/libefc_sli/sli4.h
917
struct sli4_rqst_hdr hdr;
drivers/scsi/esas2r/atvda.h
793
struct atto_vda_ae_hdr hdr;
drivers/scsi/esas2r/atvda.h
864
struct atto_vda_ae_hdr hdr;
drivers/scsi/esas2r/atvda.h
894
struct atto_vda_ae_hdr hdr;
drivers/scsi/esas2r/atvda.h
901
struct atto_vda_ae_hdr hdr;
drivers/scsi/esas2r/atvda.h
909
struct atto_vda_ae_hdr hdr;
drivers/scsi/esas2r/atvda.h
916
struct atto_vda_ae_hdr hdr;
drivers/scsi/esas2r/atvda.h
921
struct atto_vda_ae_hdr hdr;
drivers/scsi/esas2r/atvda.h
927
struct atto_vda_ae_hdr hdr;
drivers/scsi/esas2r/esas2r_disc.c
1107
if ((luevt->hdr.bylength >= offsetof(struct atto_vda_ae_lu, id)
drivers/scsi/esas2r/esas2r_int.c
778
esas2r_trace("ae->hdr: %p", &(ae->hdr));
drivers/scsi/esas2r/esas2r_int.c
780
length = ae->hdr.bylength;
drivers/scsi/esas2r/esas2r_int.c
800
switch (ae->hdr.bytype) {
drivers/scsi/esas2r/esas2r_main.c
1456
switch (ae->hdr.bytype) {
drivers/scsi/esas2r/esas2r_main.c
1468
if (l->hdr.bylength >= offsetof(struct atto_vda_ae_lu, id)
drivers/scsi/esas2r/esas2r_main.c
1712
switch (ae->vda_ae.hdr.bytype) {
drivers/scsi/esas2r/esas2r_main.c
1782
ae->vda_ae.hdr.bylength);
drivers/scsi/fnic/fcpio.h
162
fcpio_header_enc(struct fcpio_header *hdr,
drivers/scsi/fnic/fcpio.h
166
hdr->type = type;
drivers/scsi/fnic/fcpio.h
167
hdr->status = status;
drivers/scsi/fnic/fcpio.h
168
hdr->_resvd = 0;
drivers/scsi/fnic/fcpio.h
169
hdr->tag = tag;
drivers/scsi/fnic/fcpio.h
173
fcpio_header_dec(struct fcpio_header *hdr,
drivers/scsi/fnic/fcpio.h
177
*type = hdr->type;
drivers/scsi/fnic/fcpio.h
178
*status = hdr->status;
drivers/scsi/fnic/fcpio.h
179
*tag = hdr->tag;
drivers/scsi/fnic/fcpio.h
450
struct fcpio_header hdr;
drivers/scsi/fnic/fcpio.h
673
struct fcpio_header hdr;
drivers/scsi/fnic/fnic_res.h
120
desc->hdr.type = FCPIO_ITMF; /* enum fcpio_type */
drivers/scsi/fnic/fnic_res.h
121
desc->hdr.status = 0; /* header status entry */
drivers/scsi/fnic/fnic_res.h
122
desc->hdr._resvd = 0; /* reserved */
drivers/scsi/fnic/fnic_res.h
123
desc->hdr.tag.u.req_id = req_id; /* id for this request */
drivers/scsi/fnic/fnic_res.h
144
desc->hdr.type = FCPIO_FLOGI_REG; /* enum fcpio_type */
drivers/scsi/fnic/fnic_res.h
145
desc->hdr.status = 0; /* header status entry */
drivers/scsi/fnic/fnic_res.h
146
desc->hdr._resvd = 0; /* reserved */
drivers/scsi/fnic/fnic_res.h
147
desc->hdr.tag.u.req_id = req_id; /* id for this request */
drivers/scsi/fnic/fnic_res.h
164
desc->hdr.type = FCPIO_FLOGI_FIP_REG; /* enum fcpio_type */
drivers/scsi/fnic/fnic_res.h
165
desc->hdr.status = 0; /* header status entry */
drivers/scsi/fnic/fnic_res.h
166
desc->hdr._resvd = 0; /* reserved */
drivers/scsi/fnic/fnic_res.h
167
desc->hdr.tag.u.req_id = req_id; /* id for this request */
drivers/scsi/fnic/fnic_res.h
186
desc->hdr.type = FCPIO_RESET; /* enum fcpio_type */
drivers/scsi/fnic/fnic_res.h
187
desc->hdr.status = 0; /* header status entry */
drivers/scsi/fnic/fnic_res.h
188
desc->hdr._resvd = 0; /* reserved */
drivers/scsi/fnic/fnic_res.h
189
desc->hdr.tag.u.req_id = req_id; /* id for this request */
drivers/scsi/fnic/fnic_res.h
200
desc->hdr.type = FCPIO_LUNMAP_REQ; /* enum fcpio_type */
drivers/scsi/fnic/fnic_res.h
201
desc->hdr.status = 0; /* header status entry */
drivers/scsi/fnic/fnic_res.h
202
desc->hdr._resvd = 0; /* reserved */
drivers/scsi/fnic/fnic_res.h
203
desc->hdr.tag.u.req_id = req_id; /* id for this request */
drivers/scsi/fnic/fnic_res.h
81
desc->hdr.type = FCPIO_ICMND_16; /* enum fcpio_type */
drivers/scsi/fnic/fnic_res.h
82
desc->hdr.status = 0; /* header status entry */
drivers/scsi/fnic/fnic_res.h
83
desc->hdr._resvd = 0; /* reserved */
drivers/scsi/fnic/fnic_res.h
84
desc->hdr.tag.u.req_id = req_id; /* id for this request */
drivers/scsi/fnic/fnic_scsi.c
1198
fcpio_header_dec(&desc->hdr, &type, &hdr_status, &ftag);
drivers/scsi/fnic/fnic_scsi.c
1443
switch (desc->hdr.type) {
drivers/scsi/fnic/fnic_scsi.c
1457
switch (desc->hdr.type) {
drivers/scsi/fnic/fnic_scsi.c
1482
desc->hdr.type);
drivers/scsi/fnic/fnic_scsi.c
1657
fcpio_tag_id_dec(&desc->hdr.tag, &id);
drivers/scsi/fnic/fnic_scsi.c
733
fcpio_header_dec(&desc->hdr, &type, &hdr_status, &tag);
drivers/scsi/fnic/fnic_scsi.c
807
fcpio_header_dec(&desc->hdr, &type, &hdr_status, &tag);
drivers/scsi/fnic/fnic_scsi.c
930
fcpio_header_dec(&desc->hdr, &type, &hdr_status, &ftag);
drivers/scsi/hisi_sas/hisi_sas.h
372
struct hisi_sas_cmd_hdr *hdr;
drivers/scsi/hisi_sas/hisi_sas.h
613
struct ssp_frame_hdr hdr;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1009
hdr->transfer_tags = cpu_to_le32(slot->idx << CMD_HDR_IPTT_OFF);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1012
prep_prd_sge_v1_hw(hisi_hba, slot, hdr, task->scatter,
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1015
hdr->data_transfer_len = cpu_to_le32(task->total_xfer_len);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1016
hdr->cmd_table_addr = cpu_to_le64(hisi_sas_cmd_hdr_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1017
hdr->sts_buffer_addr = cpu_to_le64(hisi_sas_status_buf_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
1021
hdr->dw2 = cpu_to_le32(dw2);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
891
struct hisi_sas_cmd_hdr *hdr,
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
908
hdr->prd_table_addr = cpu_to_le64(hisi_sas_sge_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
910
hdr->sg_len = cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
917
struct hisi_sas_cmd_hdr *hdr = slot->cmd_hdr;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
932
hdr->dw0 = cpu_to_le32((port->id << CMD_HDR_PORT_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
938
hdr->dw1 = cpu_to_le32(sas_dev->device_id << CMD_HDR_DEVICE_ID_OFF);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
941
hdr->dw2 = cpu_to_le32((((req_len-4)/4) << CMD_HDR_CFL_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
945
hdr->transfer_tags = cpu_to_le32(slot->idx << CMD_HDR_IPTT_OFF);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
947
hdr->cmd_table_addr = cpu_to_le64(req_dma_addr);
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
948
hdr->sts_buffer_addr = cpu_to_le64(hisi_sas_status_buf_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
955
struct hisi_sas_cmd_hdr *hdr = slot->cmd_hdr;
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
967
hdr->dw0 = cpu_to_le32((1 << CMD_HDR_RESP_REPORT_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
995
hdr->dw1 = cpu_to_le32(dw1);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1673
struct hisi_sas_cmd_hdr *hdr,
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1690
hdr->prd_table_addr = cpu_to_le64(hisi_sas_sge_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1692
hdr->sg_len = cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1699
struct hisi_sas_cmd_hdr *hdr = slot->cmd_hdr;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1714
hdr->dw0 = cpu_to_le32((port->id << CMD_HDR_PORT_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1719
hdr->dw1 = cpu_to_le32((sas_dev->device_id << CMD_HDR_DEV_ID_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1724
hdr->dw2 = cpu_to_le32((((req_len - 4) / 4) << CMD_HDR_CFL_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1728
hdr->transfer_tags = cpu_to_le32(slot->idx << CMD_HDR_IPTT_OFF);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1730
hdr->cmd_table_addr = cpu_to_le64(req_dma_addr);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1731
hdr->sts_buffer_addr = cpu_to_le64(hisi_sas_status_buf_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1738
struct hisi_sas_cmd_hdr *hdr = slot->cmd_hdr;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1749
hdr->dw0 = cpu_to_le32((1 << CMD_HDR_RESP_REPORT_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1777
hdr->dw1 = cpu_to_le32(dw1);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1783
hdr->dw2 = cpu_to_le32(dw2);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1785
hdr->transfer_tags = cpu_to_le32(slot->idx);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1788
prep_prd_sge_v2_hw(hisi_hba, slot, hdr, task->scatter,
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1791
hdr->data_transfer_len = cpu_to_le32(task->total_xfer_len);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1792
hdr->cmd_table_addr = cpu_to_le64(hisi_sas_cmd_hdr_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
1793
hdr->sts_buffer_addr = cpu_to_le64(hisi_sas_status_buf_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2497
struct hisi_sas_cmd_hdr *hdr = slot->cmd_hdr;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2524
hdr->dw0 = cpu_to_le32(dw0);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2546
hdr->dw1 = cpu_to_le32(dw1);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2559
hdr->dw2 = cpu_to_le32(dw2);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2562
hdr->transfer_tags = cpu_to_le32(slot->idx);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2565
prep_prd_sge_v2_hw(hisi_hba, slot, hdr, task->scatter,
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2568
hdr->data_transfer_len = cpu_to_le32(task->total_xfer_len);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2569
hdr->cmd_table_addr = cpu_to_le64(hisi_sas_cmd_hdr_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2570
hdr->sts_buffer_addr = cpu_to_le64(hisi_sas_status_buf_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2621
struct hisi_sas_cmd_hdr *hdr = slot->cmd_hdr;
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2632
hdr->dw0 = cpu_to_le32((5 << CMD_HDR_CMD_OFF) | /*abort*/
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2639
hdr->dw1 = cpu_to_le32(sas_dev->device_id << CMD_HDR_DEV_ID_OFF);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2642
hdr->dw7 = cpu_to_le32(abort->tag << CMD_HDR_ABORT_IPTT_OFF);
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
2643
hdr->transfer_tags = cpu_to_le32(slot->idx);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1191
struct hisi_sas_cmd_hdr *hdr,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1208
hdr->prd_table_addr = cpu_to_le64(hisi_sas_sge_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1210
hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DATA_SGL_LEN_OFF);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1215
struct hisi_sas_cmd_hdr *hdr,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1235
hdr->dif_prd_table_addr =
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1238
hdr->sg_len |= cpu_to_le32(n_elem << CMD_HDR_DIF_SGL_LEN_OFF);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1312
struct hisi_sas_cmd_hdr *hdr = slot->cmd_hdr;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1324
hdr->dw0 = cpu_to_le32((1 << CMD_HDR_RESP_REPORT_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1358
hdr->dw2 = cpu_to_le32(dw2);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1359
hdr->transfer_tags = cpu_to_le32(slot->idx);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1362
prep_prd_sge_v3_hw(hisi_hba, slot, hdr, task->scatter,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1366
prep_prd_sge_dif_v3_hw(hisi_hba, slot, hdr,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1371
hdr->cmd_table_addr = cpu_to_le64(hisi_sas_cmd_hdr_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1372
hdr->sts_buffer_addr = cpu_to_le64(hisi_sas_status_buf_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1401
hdr->dw7 |= cpu_to_le32(1 << CMD_HDR_ADDR_MODE_SEL_OFF);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1427
hdr->dw1 = cpu_to_le32(dw1);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1429
hdr->data_transfer_len = cpu_to_le32(task->total_xfer_len + len);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1436
struct hisi_sas_cmd_hdr *hdr = slot->cmd_hdr;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1452
hdr->dw0 = cpu_to_le32((port->id << CMD_HDR_PORT_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1457
hdr->dw1 = cpu_to_le32((sas_dev->device_id << CMD_HDR_DEV_ID_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1463
hdr->dw2 = cpu_to_le32((cfl << CMD_HDR_CFL_OFF) |
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1467
hdr->transfer_tags = cpu_to_le32(slot->idx << CMD_HDR_IPTT_OFF);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1469
hdr->cmd_table_addr = cpu_to_le64(req_dma_addr);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1470
hdr->sts_buffer_addr = cpu_to_le64(hisi_sas_status_buf_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1479
struct hisi_sas_cmd_hdr *hdr = slot->cmd_hdr;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1487
hdr->dw0 = cpu_to_le32(port->id << CMD_HDR_PORT_OFF);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1489
hdr->dw0 |= cpu_to_le32(3 << CMD_HDR_CMD_OFF);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1492
hdr->dw0 |= cpu_to_le32((1U << phy_id)
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1494
hdr->dw0 |= CMD_HDR_FORCE_PHY_MSK;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1495
hdr->dw0 |= cpu_to_le32(4U << CMD_HDR_CMD_OFF);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1521
hdr->dw1 = cpu_to_le32(dw1);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1535
hdr->dw2 = cpu_to_le32(dw2);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1538
hdr->transfer_tags = cpu_to_le32(slot->idx);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1541
prep_prd_sge_v3_hw(hisi_hba, slot, hdr, task->scatter,
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1544
hdr->data_transfer_len = cpu_to_le32(task->total_xfer_len);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1545
hdr->cmd_table_addr = cpu_to_le64(hisi_sas_cmd_hdr_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1546
hdr->sts_buffer_addr = cpu_to_le64(hisi_sas_status_buf_addr_dma(slot));
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1562
struct hisi_sas_cmd_hdr *hdr = slot->cmd_hdr;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1568
hdr->dw0 = cpu_to_le32((5U << CMD_HDR_CMD_OFF) | /* abort */
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1574
hdr->dw1 = cpu_to_le32(sas_dev->device_id
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1578
hdr->dw7 = cpu_to_le32(abort->tag << CMD_HDR_ABORT_IPTT_OFF);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
1579
hdr->transfer_tags = cpu_to_le32(slot->idx);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3529
debugfs_cmd_hdr = hisi_hba->debugfs_dq[dump_index][i].hdr;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3786
void *cmd_queue = debugfs_dq->hdr;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
3799
if (!debugfs_dump_is_generated_v3_hw(debugfs_dq->hdr))
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4653
devm_kfree(dev, hisi_hba->debugfs_dq[dump_index][i].hdr);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4654
hisi_hba->debugfs_dq[dump_index][i].hdr = NULL;
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4725
dq->hdr = devm_kmalloc(dev, sz, GFP_KERNEL);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4726
if (!dq->hdr)
drivers/scsi/ipr.c
1413
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
2552
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
2893
(ioa_dump->hdr.len + bytes_copied) < max_dump_size) {
drivers/scsi/ipr.c
2944
static void ipr_init_dump_entry_hdr(struct ipr_dump_entry_header *hdr)
drivers/scsi/ipr.c
2946
hdr->eye_catcher = IPR_DUMP_EYE_CATCHER;
drivers/scsi/ipr.c
2947
hdr->num_elems = 1;
drivers/scsi/ipr.c
2948
hdr->offset = sizeof(*hdr);
drivers/scsi/ipr.c
2949
hdr->status = IPR_DUMP_STATUS_SUCCESS;
drivers/scsi/ipr.c
2965
ipr_init_dump_entry_hdr(&driver_dump->ioa_type_entry.hdr);
drivers/scsi/ipr.c
2966
driver_dump->ioa_type_entry.hdr.len =
drivers/scsi/ipr.c
2969
driver_dump->ioa_type_entry.hdr.data_type = IPR_DUMP_DATA_TYPE_BINARY;
drivers/scsi/ipr.c
2970
driver_dump->ioa_type_entry.hdr.id = IPR_DUMP_DRIVER_TYPE_ID;
drivers/scsi/ipr.c
2975
driver_dump->hdr.num_entries++;
drivers/scsi/ipr.c
2989
ipr_init_dump_entry_hdr(&driver_dump->version_entry.hdr);
drivers/scsi/ipr.c
2990
driver_dump->version_entry.hdr.len =
drivers/scsi/ipr.c
2993
driver_dump->version_entry.hdr.data_type = IPR_DUMP_DATA_TYPE_ASCII;
drivers/scsi/ipr.c
2994
driver_dump->version_entry.hdr.id = IPR_DUMP_DRIVER_VERSION_ID;
drivers/scsi/ipr.c
2996
driver_dump->hdr.num_entries++;
drivers/scsi/ipr.c
3010
ipr_init_dump_entry_hdr(&driver_dump->trace_entry.hdr);
drivers/scsi/ipr.c
3011
driver_dump->trace_entry.hdr.len =
drivers/scsi/ipr.c
3014
driver_dump->trace_entry.hdr.data_type = IPR_DUMP_DATA_TYPE_BINARY;
drivers/scsi/ipr.c
3015
driver_dump->trace_entry.hdr.id = IPR_DUMP_TRACE_ID;
drivers/scsi/ipr.c
3017
driver_dump->hdr.num_entries++;
drivers/scsi/ipr.c
3031
ipr_init_dump_entry_hdr(&driver_dump->location_entry.hdr);
drivers/scsi/ipr.c
3032
driver_dump->location_entry.hdr.len =
drivers/scsi/ipr.c
3035
driver_dump->location_entry.hdr.data_type = IPR_DUMP_DATA_TYPE_ASCII;
drivers/scsi/ipr.c
3036
driver_dump->location_entry.hdr.id = IPR_DUMP_LOCATION_ID;
drivers/scsi/ipr.c
3038
driver_dump->hdr.num_entries++;
drivers/scsi/ipr.c
3087
driver_dump->hdr.eye_catcher = IPR_DUMP_EYE_CATCHER;
drivers/scsi/ipr.c
3090
driver_dump->hdr.len = sizeof(struct ipr_driver_dump);
drivers/scsi/ipr.c
3091
driver_dump->hdr.num_entries = 1;
drivers/scsi/ipr.c
3092
driver_dump->hdr.first_entry_offset = sizeof(struct ipr_dump_header);
drivers/scsi/ipr.c
3093
driver_dump->hdr.status = IPR_DUMP_STATUS_SUCCESS;
drivers/scsi/ipr.c
3094
driver_dump->hdr.os = IPR_DUMP_OS_LINUX;
drivers/scsi/ipr.c
3095
driver_dump->hdr.driver_name = IPR_DUMP_DRIVER_NAME;
drivers/scsi/ipr.c
3103
driver_dump->hdr.len += sizeof(struct ipr_dump_entry_header);
drivers/scsi/ipr.c
3106
ipr_init_dump_entry_hdr(&ioa_dump->hdr);
drivers/scsi/ipr.c
3107
ioa_dump->hdr.len = 0;
drivers/scsi/ipr.c
3108
ioa_dump->hdr.data_type = IPR_DUMP_DATA_TYPE_BINARY;
drivers/scsi/ipr.c
3109
ioa_dump->hdr.id = IPR_DUMP_IOA_DUMP_ID;
drivers/scsi/ipr.c
3131
if (rc || ((be32_to_cpu(sdt->hdr.state) != IPR_FMT3_SDT_READY_TO_USE) &&
drivers/scsi/ipr.c
3132
(be32_to_cpu(sdt->hdr.state) != IPR_FMT2_SDT_READY_TO_USE))) {
drivers/scsi/ipr.c
3135
rc, be32_to_cpu(sdt->hdr.state));
drivers/scsi/ipr.c
3136
driver_dump->hdr.status = IPR_DUMP_STATUS_FAILED;
drivers/scsi/ipr.c
3142
num_entries = be32_to_cpu(sdt->hdr.num_entries_used);
drivers/scsi/ipr.c
3148
dump->driver_dump.hdr.len += sizeof(struct ipr_sdt_header);
drivers/scsi/ipr.c
3150
dump->driver_dump.hdr.len += num_entries * sizeof(struct ipr_sdt_entry);
drivers/scsi/ipr.c
3152
dump->driver_dump.hdr.len += max_num_entries * sizeof(struct ipr_sdt_entry);
drivers/scsi/ipr.c
3157
if (ioa_dump->hdr.len > max_dump_size) {
drivers/scsi/ipr.c
3158
driver_dump->hdr.status = IPR_DUMP_STATUS_QUAL_SUCCESS;
drivers/scsi/ipr.c
3185
ioa_dump->hdr.len += bytes_copied;
drivers/scsi/ipr.c
3188
driver_dump->hdr.status = IPR_DUMP_STATUS_QUAL_SUCCESS;
drivers/scsi/ipr.c
3198
driver_dump->hdr.len += ioa_dump->hdr.len;
drivers/scsi/ipr.c
4200
if (off > dump->driver_dump.hdr.len) {
drivers/scsi/ipr.c
4205
if (off + count > dump->driver_dump.hdr.len) {
drivers/scsi/ipr.c
4206
count = dump->driver_dump.hdr.len - off;
drivers/scsi/ipr.c
4226
(be32_to_cpu(dump->ioa_dump.sdt.hdr.num_entries_used) *
drivers/scsi/ipr.c
5034
ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
5251
ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
5445
ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
5736
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
5797
ioasa->hdr.ioasc = 0;
drivers/scsi/ipr.c
5798
ioasa->hdr.residual_data_len = 0;
drivers/scsi/ipr.c
5823
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
5924
ioasc = be32_to_cpu(ioasa->hdr.ioasc) & IPR_IOASC_IOASC_MASK;
drivers/scsi/ipr.c
5925
fd_ioasc = be32_to_cpu(ioasa->hdr.fd_ioasc) & IPR_IOASC_IOASC_MASK;
drivers/scsi/ipr.c
5940
if (ioasa->hdr.ilid != 0)
drivers/scsi/ipr.c
5952
data_len = be16_to_cpu(ioasa->hdr.ret_stat_len);
drivers/scsi/ipr.c
5982
u32 ioasc = be32_to_cpu(ioasa->hdr.ioasc);
drivers/scsi/ipr.c
6025
(be32_to_cpu(ioasa->hdr.ioasc_specific) & IPR_FIELD_POINTER_VALID)) {
drivers/scsi/ipr.c
6036
be32_to_cpu(ioasa->hdr.ioasc_specific)) >> 8) & 0xff;
drivers/scsi/ipr.c
6039
be32_to_cpu(ioasa->hdr.ioasc_specific)) & 0xff;
drivers/scsi/ipr.c
6074
if ((be32_to_cpu(ioasa->hdr.ioasc_specific) & IPR_AUTOSENSE_VALID) == 0)
drivers/scsi/ipr.c
6104
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
6210
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
6213
scsi_set_resid(scsi_cmd, be32_to_cpu(ipr_cmd->s.ioasa.hdr.residual_data_len));
drivers/scsi/ipr.c
651
ioasa->hdr.ioasc = 0;
drivers/scsi/ipr.c
652
ioasa->hdr.residual_data_len = 0;
drivers/scsi/ipr.c
6605
if (!mode_pages || (mode_pages->hdr.length == 0))
drivers/scsi/ipr.c
6608
length = (mode_pages->hdr.length + 1) - 4 - mode_pages->hdr.block_desc_len;
drivers/scsi/ipr.c
6610
(mode_pages->data + mode_pages->hdr.block_desc_len);
drivers/scsi/ipr.c
6782
length = mode_pages->hdr.length + 1;
drivers/scsi/ipr.c
6783
mode_pages->hdr.length = 0;
drivers/scsi/ipr.c
6836
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
6860
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
6924
length = mode_pages->hdr.length + 1;
drivers/scsi/ipr.c
6925
mode_pages->hdr.length = 0;
drivers/scsi/ipr.c
6950
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
7013
flag = ioa_cfg->u.cfg_table->hdr.flags;
drivers/scsi/ipr.c
7024
entries = ioa_cfg->u.cfg_table->hdr.num_entries;
drivers/scsi/ipr.c
7126
u32 ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
7751
((be32_to_cpu(sdt.hdr.state) != IPR_FMT3_SDT_READY_TO_USE) &&
drivers/scsi/ipr.c
7752
(be32_to_cpu(sdt.hdr.state) != IPR_FMT2_SDT_READY_TO_USE))) {
drivers/scsi/ipr.c
7758
if (be32_to_cpu(sdt.hdr.state) == IPR_FMT3_SDT_READY_TO_USE)
drivers/scsi/ipr.c
7889
ipr_cmd->s.ioasa.hdr.ioasc = cpu_to_be32(IPR_IOASC_PCI_ACCESS_ERROR);
drivers/scsi/ipr.c
7981
ipr_cmd->s.ioasa.hdr.ioasc = cpu_to_be32(IPR_IOASC_PCI_ACCESS_ERROR);
drivers/scsi/ipr.c
8428
ioasc = be32_to_cpu(ipr_cmd->s.ioasa.hdr.ioasc);
drivers/scsi/ipr.c
866
ipr_cmd->s.ioasa.hdr.ioasc =
drivers/scsi/ipr.c
868
ipr_cmd->s.ioasa.hdr.ilid =
drivers/scsi/ipr.h
1209
struct ipr_sdt_header hdr;
drivers/scsi/ipr.h
1214
struct ipr_sdt_header hdr;
drivers/scsi/ipr.h
1622
struct ipr_dump_entry_header hdr;
drivers/scsi/ipr.h
1627
struct ipr_dump_entry_header hdr;
drivers/scsi/ipr.h
1632
struct ipr_dump_entry_header hdr;
drivers/scsi/ipr.h
1637
struct ipr_dump_entry_header hdr;
drivers/scsi/ipr.h
1643
struct ipr_dump_header hdr;
drivers/scsi/ipr.h
1651
struct ipr_dump_entry_header hdr;
drivers/scsi/ipr.h
451
struct ipr_config_table_hdr hdr;
drivers/scsi/ipr.h
673
struct ipr_ioasa_hdr hdr;
drivers/scsi/ipr.h
685
struct ipr_ioasa_hdr hdr;
drivers/scsi/ipr.h
705
struct ipr_mode_parm_hdr hdr;
drivers/scsi/ipr.h
712
#define IPR_GET_MODE_PAGE_CODE(hdr) ((hdr)->ps_page_code & 0x3F)
drivers/scsi/ipr.h
740
struct ipr_mode_page_hdr hdr;
drivers/scsi/ipr.h
747
struct ipr_mode_page_hdr hdr;
drivers/scsi/ips.c
4098
mdata.hdr.BlockDescLength = 8;
drivers/scsi/ips.c
4104
mdata.hdr.DataLength =
drivers/scsi/ips.c
4105
3 + mdata.hdr.BlockDescLength + mdata.pdata.pg3.PageLength;
drivers/scsi/ips.c
4121
mdata.hdr.DataLength =
drivers/scsi/ips.c
4122
3 + mdata.hdr.BlockDescLength + mdata.pdata.pg4.PageLength;
drivers/scsi/ips.c
4141
mdata.hdr.DataLength =
drivers/scsi/ips.c
4142
3 + mdata.hdr.BlockDescLength + mdata.pdata.pg8.PageLength;
drivers/scsi/ips.h
913
IPS_SCSI_MODE_PAGE_HEADER hdr;
drivers/scsi/isci/init.c
511
if (id < 0 || id >= SCI_MAX_CONTROLLERS || id > orom->hdr.num_elements) {
drivers/scsi/isci/init.c
516
oem_version = orom->hdr.version;
drivers/scsi/isci/init.c
615
orom->hdr.version)) {
drivers/scsi/isci/init.c
642
(orom->hdr.version & 0xf0) >> 4,
drivers/scsi/isci/init.c
643
(orom->hdr.version & 0xf), source);
drivers/scsi/isci/phy.c
184
if (pci_info->orom->hdr.version < ISCI_ROM_VER_1_1)
drivers/scsi/isci/probe_roms.c
128
if (strncmp(ISCI_ROM_SIG, data->hdr.signature,
drivers/scsi/isci/probe_roms.c
222
if (memcmp(rom->hdr.signature,
drivers/scsi/isci/probe_roms.c
95
if (memcmp(rom->hdr.signature,
drivers/scsi/isci/probe_roms.h
326
struct sci_bios_oem_param_block_hdr hdr;
drivers/scsi/isci/remote_device.c
423
struct ssp_frame_hdr hdr;
drivers/scsi/isci/remote_device.c
433
word_cnt = sizeof(hdr) / sizeof(u32);
drivers/scsi/isci/remote_device.c
434
sci_swab32_cpy(&hdr, frame_header, word_cnt);
drivers/scsi/isci/remote_device.c
436
ireq = sci_request_by_tag(ihost, be16_to_cpu(hdr.tag));
drivers/scsi/isci/remote_device.c
449
struct dev_to_host_fis *hdr;
drivers/scsi/isci/remote_device.c
453
(void **)&hdr);
drivers/scsi/isci/remote_device.c
457
if (hdr->fis_type == FIS_SETDEVBITS &&
drivers/scsi/isci/remote_device.c
458
(hdr->status & ATA_ERR)) {
drivers/scsi/isci/remote_device.c
463
} else if (hdr->fis_type == FIS_REGD2H &&
drivers/scsi/isci/remote_device.c
464
(hdr->status & ATA_ERR)) {
drivers/scsi/iscsi_tcp.c
450
static void iscsi_sw_tcp_send_hdr_prep(struct iscsi_conn *conn, void *hdr,
drivers/scsi/iscsi_tcp.c
470
iscsi_tcp_dgst_header(hdr, hdrlen, hdr + hdrlen);
drivers/scsi/iscsi_tcp.c
477
tcp_sw_conn->out.hdr = hdr;
drivers/scsi/iscsi_tcp.c
479
iscsi_segment_init_linear(&tcp_sw_conn->out.segment, hdr, hdrlen,
drivers/scsi/iscsi_tcp.c
504
hdr_spec_len = ntoh24(tcp_sw_conn->out.hdr->dlength);
drivers/scsi/iscsi_tcp.c
528
hdr_spec_len = ntoh24(tcp_sw_conn->out.hdr->dlength);
drivers/scsi/iscsi_tcp.c
544
iscsi_sw_tcp_send_hdr_prep(conn, task->hdr, task->hdr_len);
drivers/scsi/iscsi_tcp.c
570
task->hdr = task->dd_data + sizeof(*tcp_task);
drivers/scsi/iscsi_tcp.h
24
struct iscsi_hdr *hdr;
drivers/scsi/libfc/fc_encode.h
27
struct fc_ct_hdr hdr;
drivers/scsi/libfc/fc_encode.h
75
ct->hdr.ct_rev = FC_CT_REV;
drivers/scsi/libfc/fc_encode.h
76
ct->hdr.ct_fs_type = fs_type;
drivers/scsi/libfc/fc_encode.h
77
ct->hdr.ct_fs_subtype = subtype;
drivers/scsi/libfc/fc_encode.h
78
ct->hdr.ct_cmd = htons((u16) op);
drivers/scsi/libiscsi.c
1001
conn->exp_statsn = be32_to_cpu(hdr->statsn) + 1;
drivers/scsi/libiscsi.c
1018
struct iscsi_nopout hdr;
drivers/scsi/libiscsi.c
1026
memset(&hdr, 0, sizeof(struct iscsi_nopout));
drivers/scsi/libiscsi.c
1027
hdr.opcode = ISCSI_OP_NOOP_OUT | ISCSI_OP_IMMEDIATE;
drivers/scsi/libiscsi.c
1028
hdr.flags = ISCSI_FLAG_CMD_FINAL;
drivers/scsi/libiscsi.c
1031
hdr.lun = rhdr->lun;
drivers/scsi/libiscsi.c
1032
hdr.ttt = rhdr->ttt;
drivers/scsi/libiscsi.c
1033
hdr.itt = RESERVED_ITT;
drivers/scsi/libiscsi.c
1035
hdr.ttt = RESERVED_ITT;
drivers/scsi/libiscsi.c
1037
task = iscsi_alloc_mgmt_task(conn, (struct iscsi_hdr *)&hdr, NULL, 0);
drivers/scsi/libiscsi.c
1089
static int iscsi_handle_reject(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
drivers/scsi/libiscsi.c
1092
struct iscsi_reject *reject = (struct iscsi_reject *)hdr;
drivers/scsi/libiscsi.c
1212
int __iscsi_complete_pdu(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
drivers/scsi/libiscsi.c
1216
int opcode = hdr->opcode & ISCSI_OPCODE_MASK, rc = 0;
drivers/scsi/libiscsi.c
1221
rc = iscsi_verify_itt(conn, hdr->itt);
drivers/scsi/libiscsi.c
1225
if (hdr->itt != RESERVED_ITT)
drivers/scsi/libiscsi.c
1226
itt = get_itt(hdr->itt);
drivers/scsi/libiscsi.c
1234
iscsi_update_cmdsn(session, (struct iscsi_nopin*)hdr);
drivers/scsi/libiscsi.c
1243
if (hdr->ttt == cpu_to_be32(ISCSI_RESERVED_TAG))
drivers/scsi/libiscsi.c
1249
iscsi_send_nopout(conn, (struct iscsi_nopin*)hdr);
drivers/scsi/libiscsi.c
1254
rc = iscsi_handle_reject(conn, hdr, data, datalen);
drivers/scsi/libiscsi.c
1257
conn->exp_statsn = be32_to_cpu(hdr->statsn) + 1;
drivers/scsi/libiscsi.c
1258
if (iscsi_recv_pdu(conn->cls_conn, hdr, data, datalen))
drivers/scsi/libiscsi.c
127
void iscsi_update_cmdsn(struct iscsi_session *session, struct iscsi_nopin *hdr)
drivers/scsi/libiscsi.c
1271
task = iscsi_itt_to_ctask(conn, hdr->itt);
drivers/scsi/libiscsi.c
1286
task = iscsi_itt_to_task(conn, hdr->itt);
drivers/scsi/libiscsi.c
129
__iscsi_update_cmdsn(session, be32_to_cpu(hdr->exp_cmdsn),
drivers/scsi/libiscsi.c
1296
iscsi_scsi_cmd_rsp(conn, hdr, task, data, datalen);
drivers/scsi/libiscsi.c
1299
iscsi_data_in_rsp(conn, hdr, task);
drivers/scsi/libiscsi.c
130
be32_to_cpu(hdr->max_cmdsn));
drivers/scsi/libiscsi.c
1302
iscsi_update_cmdsn(session, (struct iscsi_nopin*)hdr);
drivers/scsi/libiscsi.c
1307
conn->exp_statsn = be32_to_cpu(hdr->statsn) + 1;
drivers/scsi/libiscsi.c
1311
iscsi_update_cmdsn(session, (struct iscsi_nopin*)hdr);
drivers/scsi/libiscsi.c
1318
iscsi_update_cmdsn(session, (struct iscsi_nopin*)hdr);
drivers/scsi/libiscsi.c
1324
iscsi_tmf_rsp(conn, hdr);
drivers/scsi/libiscsi.c
1328
iscsi_update_cmdsn(session, (struct iscsi_nopin*)hdr);
drivers/scsi/libiscsi.c
1329
if (hdr->ttt != cpu_to_be32(ISCSI_RESERVED_TAG) || datalen) {
drivers/scsi/libiscsi.c
1333
conn->exp_statsn = be32_to_cpu(hdr->statsn) + 1;
drivers/scsi/libiscsi.c
1335
rc = iscsi_nop_out_rsp(task, (struct iscsi_nopin*)hdr,
drivers/scsi/libiscsi.c
1346
if (iscsi_recv_pdu(conn->cls_conn, hdr, data, datalen))
drivers/scsi/libiscsi.c
1353
int iscsi_complete_pdu(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
drivers/scsi/libiscsi.c
1359
rc = __iscsi_complete_pdu(conn, hdr, data, datalen);
drivers/scsi/libiscsi.c
147
struct iscsi_data *hdr)
drivers/scsi/libiscsi.c
154
memset(hdr, 0, sizeof(struct iscsi_data));
drivers/scsi/libiscsi.c
155
hdr->ttt = r2t->ttt;
drivers/scsi/libiscsi.c
156
hdr->datasn = cpu_to_be32(r2t->datasn);
drivers/scsi/libiscsi.c
158
hdr->opcode = ISCSI_OP_SCSI_DATA_OUT;
drivers/scsi/libiscsi.c
159
hdr->lun = task->lun;
drivers/scsi/libiscsi.c
160
hdr->itt = task->hdr_itt;
drivers/scsi/libiscsi.c
161
hdr->exp_statsn = r2t->exp_statsn;
drivers/scsi/libiscsi.c
162
hdr->offset = cpu_to_be32(r2t->data_offset + r2t->sent);
drivers/scsi/libiscsi.c
164
hton24(hdr->dlength, conn->max_xmit_dlength);
drivers/scsi/libiscsi.c
166
hdr->flags = 0;
drivers/scsi/libiscsi.c
168
hton24(hdr->dlength, left);
drivers/scsi/libiscsi.c
170
hdr->flags = ISCSI_FLAG_CMD_FINAL;
drivers/scsi/libiscsi.c
1916
struct iscsi_tm *hdr, int age,
drivers/scsi/libiscsi.c
1922
if (__iscsi_conn_send_pdu(conn, (struct iscsi_hdr *)hdr, NULL, 0)) {
drivers/scsi/libiscsi.c
2335
struct iscsi_tm *hdr)
drivers/scsi/libiscsi.c
2337
memset(hdr, 0, sizeof(*hdr));
drivers/scsi/libiscsi.c
2338
hdr->opcode = ISCSI_OP_SCSI_TMFUNC | ISCSI_OP_IMMEDIATE;
drivers/scsi/libiscsi.c
2339
hdr->flags = ISCSI_TM_FUNC_ABORT_TASK & ISCSI_FLAG_TM_FUNC_MASK;
drivers/scsi/libiscsi.c
2340
hdr->flags |= ISCSI_FLAG_CMD_FINAL;
drivers/scsi/libiscsi.c
2341
hdr->lun = task->lun;
drivers/scsi/libiscsi.c
2342
hdr->rtt = task->hdr_itt;
drivers/scsi/libiscsi.c
2343
hdr->refcmdsn = task->cmdsn;
drivers/scsi/libiscsi.c
2352
struct iscsi_tm *hdr;
drivers/scsi/libiscsi.c
2426
hdr = &session->tmhdr;
drivers/scsi/libiscsi.c
2427
iscsi_prep_abort_task_pdu(task, hdr);
drivers/scsi/libiscsi.c
2429
if (iscsi_exec_task_mgmt_fn(conn, hdr, age, session->abort_timeout))
drivers/scsi/libiscsi.c
2448
memset(hdr, 0, sizeof(*hdr));
drivers/scsi/libiscsi.c
2460
memset(hdr, 0, sizeof(*hdr));
drivers/scsi/libiscsi.c
2501
static void iscsi_prep_lun_reset_pdu(struct scsi_cmnd *sc, struct iscsi_tm *hdr)
drivers/scsi/libiscsi.c
2503
memset(hdr, 0, sizeof(*hdr));
drivers/scsi/libiscsi.c
2504
hdr->opcode = ISCSI_OP_SCSI_TMFUNC | ISCSI_OP_IMMEDIATE;
drivers/scsi/libiscsi.c
2505
hdr->flags = ISCSI_TM_FUNC_LOGICAL_UNIT_RESET & ISCSI_FLAG_TM_FUNC_MASK;
drivers/scsi/libiscsi.c
2506
hdr->flags |= ISCSI_FLAG_CMD_FINAL;
drivers/scsi/libiscsi.c
2507
int_to_scsilun(sc->device->lun, &hdr->lun);
drivers/scsi/libiscsi.c
2508
hdr->rtt = RESERVED_ITT;
drivers/scsi/libiscsi.c
2516
struct iscsi_tm *hdr;
drivers/scsi/libiscsi.c
2540
hdr = &session->tmhdr;
drivers/scsi/libiscsi.c
2541
iscsi_prep_lun_reset_pdu(sc, hdr);
drivers/scsi/libiscsi.c
2543
if (iscsi_exec_task_mgmt_fn(conn, hdr, session->age,
drivers/scsi/libiscsi.c
2567
memset(hdr, 0, sizeof(*hdr));
drivers/scsi/libiscsi.c
2658
static void iscsi_prep_tgt_reset_pdu(struct scsi_cmnd *sc, struct iscsi_tm *hdr)
drivers/scsi/libiscsi.c
2660
memset(hdr, 0, sizeof(*hdr));
drivers/scsi/libiscsi.c
2661
hdr->opcode = ISCSI_OP_SCSI_TMFUNC | ISCSI_OP_IMMEDIATE;
drivers/scsi/libiscsi.c
2662
hdr->flags = ISCSI_TM_FUNC_TARGET_WARM_RESET & ISCSI_FLAG_TM_FUNC_MASK;
drivers/scsi/libiscsi.c
2663
hdr->flags |= ISCSI_FLAG_CMD_FINAL;
drivers/scsi/libiscsi.c
2664
hdr->rtt = RESERVED_ITT;
drivers/scsi/libiscsi.c
2678
struct iscsi_tm *hdr;
drivers/scsi/libiscsi.c
2702
hdr = &session->tmhdr;
drivers/scsi/libiscsi.c
2703
iscsi_prep_tgt_reset_pdu(sc, hdr);
drivers/scsi/libiscsi.c
2705
if (iscsi_exec_task_mgmt_fn(conn, hdr, session->age,
drivers/scsi/libiscsi.c
2729
memset(hdr, 0, sizeof(*hdr));
drivers/scsi/libiscsi.c
319
struct iscsi_scsi_req *hdr;
drivers/scsi/libiscsi.c
333
hdr = (struct iscsi_scsi_req *)task->hdr;
drivers/scsi/libiscsi.c
334
itt = hdr->itt;
drivers/scsi/libiscsi.c
335
memset(hdr, 0, sizeof(*hdr));
drivers/scsi/libiscsi.c
338
hdr->itt = task->hdr_itt = itt;
drivers/scsi/libiscsi.c
340
hdr->itt = task->hdr_itt = build_itt(task->itt,
drivers/scsi/libiscsi.c
343
rc = iscsi_add_hdr(task, sizeof(*hdr));
drivers/scsi/libiscsi.c
346
hdr->opcode = ISCSI_OP_SCSI_CMD;
drivers/scsi/libiscsi.c
347
hdr->flags = ISCSI_ATTR_SIMPLE;
drivers/scsi/libiscsi.c
348
int_to_scsilun(sc->device->lun, &hdr->lun);
drivers/scsi/libiscsi.c
349
task->lun = hdr->lun;
drivers/scsi/libiscsi.c
350
hdr->exp_statsn = cpu_to_be32(conn->exp_statsn);
drivers/scsi/libiscsi.c
353
memset(&hdr->cdb[cmd_len], 0, ISCSI_CDB_SIZE - cmd_len);
drivers/scsi/libiscsi.c
360
memcpy(hdr->cdb, sc->cmnd, cmd_len);
drivers/scsi/libiscsi.c
367
hdr->data_length = cpu_to_be32(transfer_length);
drivers/scsi/libiscsi.c
371
hdr->flags |= ISCSI_FLAG_CMD_WRITE;
drivers/scsi/libiscsi.c
395
hton24(hdr->dlength, task->imm_count);
drivers/scsi/libiscsi.c
397
zero_data(hdr->dlength);
drivers/scsi/libiscsi.c
410
hdr->flags |= ISCSI_FLAG_CMD_FINAL;
drivers/scsi/libiscsi.c
412
hdr->flags |= ISCSI_FLAG_CMD_FINAL;
drivers/scsi/libiscsi.c
413
zero_data(hdr->dlength);
drivers/scsi/libiscsi.c
416
hdr->flags |= ISCSI_FLAG_CMD_READ;
drivers/scsi/libiscsi.c
420
hdrlength = task->hdr_len - sizeof(*hdr);
drivers/scsi/libiscsi.c
426
hdr->hlength = hdrlength & 0xFF;
drivers/scsi/libiscsi.c
427
hdr->cmdsn = task->cmdsn = cpu_to_be32(session->cmdsn);
drivers/scsi/libiscsi.c
656
struct iscsi_hdr *hdr = task->hdr;
drivers/scsi/libiscsi.c
657
struct iscsi_nopout *nop = (struct iscsi_nopout *)hdr;
drivers/scsi/libiscsi.c
658
uint8_t opcode = hdr->opcode & ISCSI_OPCODE_MASK;
drivers/scsi/libiscsi.c
669
if (hdr->itt != RESERVED_ITT) {
drivers/scsi/libiscsi.c
679
!(hdr->opcode & ISCSI_OP_IMMEDIATE)) {
drivers/scsi/libiscsi.c
688
if ((hdr->opcode & ISCSI_OPCODE_MASK) == ISCSI_OP_LOGOUT)
drivers/scsi/libiscsi.c
693
"datalen %d]\n", hdr->opcode & ISCSI_OPCODE_MASK,
drivers/scsi/libiscsi.c
694
hdr->itt, task->data_count);
drivers/scsi/libiscsi.c
706
iscsi_alloc_mgmt_task(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
drivers/scsi/libiscsi.c
710
uint8_t opcode = hdr->opcode & ISCSI_OPCODE_MASK;
drivers/scsi/libiscsi.c
771
if (conn->session->tt->alloc_pdu(task, hdr->opcode)) {
drivers/scsi/libiscsi.c
778
itt = task->hdr->itt;
drivers/scsi/libiscsi.c
780
memcpy(task->hdr, hdr, sizeof(struct iscsi_hdr));
drivers/scsi/libiscsi.c
782
if (hdr->itt != RESERVED_ITT) {
drivers/scsi/libiscsi.c
784
task->hdr->itt = itt;
drivers/scsi/libiscsi.c
786
task->hdr->itt = build_itt(task->itt,
drivers/scsi/libiscsi.c
827
static int __iscsi_conn_send_pdu(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
drivers/scsi/libiscsi.c
833
task = iscsi_alloc_mgmt_task(conn, hdr, data, data_size);
drivers/scsi/libiscsi.c
843
int iscsi_conn_send_pdu(struct iscsi_cls_conn *cls_conn, struct iscsi_hdr *hdr,
drivers/scsi/libiscsi.c
851
if (__iscsi_conn_send_pdu(conn, hdr, data, data_size))
drivers/scsi/libiscsi.c
869
static void iscsi_scsi_cmd_rsp(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
drivers/scsi/libiscsi.c
873
struct iscsi_scsi_rsp *rhdr = (struct iscsi_scsi_rsp *)hdr;
drivers/scsi/libiscsi.c
965
iscsi_data_in_rsp(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
drivers/scsi/libiscsi.c
968
struct iscsi_data_rsp *rhdr = (struct iscsi_data_rsp *)hdr;
drivers/scsi/libiscsi.c
974
iscsi_update_cmdsn(conn->session, (struct iscsi_nopin *)hdr);
drivers/scsi/libiscsi.c
996
static void iscsi_tmf_rsp(struct iscsi_conn *conn, struct iscsi_hdr *hdr)
drivers/scsi/libiscsi.c
998
struct iscsi_tm_rsp *tmf = (struct iscsi_tm_rsp *)hdr;
drivers/scsi/libiscsi_tcp.c
1073
if (task->hdr->itt == RESERVED_ITT)
drivers/scsi/libiscsi_tcp.c
1092
iscsi_prep_data_out_pdu(task, r2t, (struct iscsi_data *) task->hdr);
drivers/scsi/libiscsi_tcp.c
1095
r2t, r2t->datasn - 1, task->hdr->itt,
drivers/scsi/libiscsi_tcp.c
309
iscsi_tcp_dgst_header(const void *hdr, size_t hdrlen,
drivers/scsi/libiscsi_tcp.c
312
put_unaligned_le32(~crc32c(~0, hdr, hdrlen), digest);
drivers/scsi/libiscsi_tcp.c
413
rc = iscsi_complete_pdu(conn, tcp_conn->in.hdr,
drivers/scsi/libiscsi_tcp.c
479
struct iscsi_data_rsp *rhdr = (struct iscsi_data_rsp *)tcp_conn->in.hdr;
drivers/scsi/libiscsi_tcp.c
518
static int iscsi_tcp_r2t_rsp(struct iscsi_conn *conn, struct iscsi_hdr *hdr)
drivers/scsi/libiscsi_tcp.c
532
task = iscsi_itt_to_ctask(conn, hdr->itt);
drivers/scsi/libiscsi_tcp.c
557
rhdr = (struct iscsi_r2t_rsp *)tcp_conn->in.hdr;
drivers/scsi/libiscsi_tcp.c
650
struct iscsi_hdr *hdr = tcp_conn->in.hdr;
drivers/scsi/libiscsi_tcp.c
657
if (hdr->flags & ISCSI_FLAG_DATA_STATUS) {
drivers/scsi/libiscsi_tcp.c
658
rc = iscsi_complete_pdu(conn, tcp_conn->in.hdr, NULL, 0);
drivers/scsi/libiscsi_tcp.c
678
iscsi_tcp_hdr_dissect(struct iscsi_conn *conn, struct iscsi_hdr *hdr)
drivers/scsi/libiscsi_tcp.c
685
tcp_conn->in.datalen = ntoh24(hdr->dlength);
drivers/scsi/libiscsi_tcp.c
696
ahslen = hdr->hlength << 2;
drivers/scsi/libiscsi_tcp.c
698
opcode = hdr->opcode & ISCSI_OPCODE_MASK;
drivers/scsi/libiscsi_tcp.c
700
rc = iscsi_verify_itt(conn, hdr->itt);
drivers/scsi/libiscsi_tcp.c
710
task = iscsi_itt_to_ctask(conn, hdr->itt);
drivers/scsi/libiscsi_tcp.c
752
rc = __iscsi_complete_pdu(conn, hdr, NULL, 0);
drivers/scsi/libiscsi_tcp.c
760
rc = iscsi_complete_pdu(conn, hdr, NULL, 0);
drivers/scsi/libiscsi_tcp.c
767
rc = iscsi_tcp_r2t_rsp(conn, hdr);
drivers/scsi/libiscsi_tcp.c
800
rc = iscsi_complete_pdu(conn, hdr, NULL, 0);
drivers/scsi/libiscsi_tcp.c
832
struct iscsi_hdr *hdr;
drivers/scsi/libiscsi_tcp.c
838
hdr = (struct iscsi_hdr *) tcp_conn->in.hdr_buf;
drivers/scsi/libiscsi_tcp.c
839
if (segment->copied == sizeof(struct iscsi_hdr) && hdr->hlength) {
drivers/scsi/libiscsi_tcp.c
843
unsigned int ahslen = hdr->hlength << 2;
drivers/scsi/libiscsi_tcp.c
846
if (sizeof(*hdr) + ahslen > sizeof(tcp_conn->in.hdr_buf))
drivers/scsi/libiscsi_tcp.c
870
iscsi_tcp_dgst_header(hdr,
drivers/scsi/libiscsi_tcp.c
878
tcp_conn->in.hdr = hdr;
drivers/scsi/libiscsi_tcp.c
879
return iscsi_tcp_hdr_dissect(conn, hdr);
drivers/scsi/lpfc/lpfc_sli.c
19244
struct fc_frame_header *hdr;
drivers/scsi/lpfc/lpfc_sli.c
19250
hdr = (struct fc_frame_header *)dmabuf->hbuf.virt;
drivers/scsi/lpfc/lpfc_sli.c
19252
if (hdr->fh_seq_cnt != seq_count)
drivers/scsi/lpfc/lpfc_sli.c
19254
fctl = (hdr->fh_f_ctl[0] << 16 |
drivers/scsi/lpfc/lpfc_sli.c
19255
hdr->fh_f_ctl[1] << 8 |
drivers/scsi/lpfc/lpfc_sli.c
19256
hdr->fh_f_ctl[2]);
drivers/scsi/lpfc/lpfc_sli.c
19262
hdr = (struct fc_frame_header *)seq_dmabuf->hbuf.virt;
drivers/scsi/lpfc/lpfc_sli.c
19264
if (++seq_count != be16_to_cpu(hdr->fh_seq_cnt))
drivers/scsi/lpfc/lpfc_sli.c
19266
fctl = (hdr->fh_f_ctl[0] << 16 |
drivers/scsi/lpfc/lpfc_sli.c
19267
hdr->fh_f_ctl[1] << 8 |
drivers/scsi/lpfc/lpfc_sli.c
19268
hdr->fh_f_ctl[2]);
drivers/scsi/megaraid/megaraid_sas.h
2010
struct megasas_header hdr;
drivers/scsi/megaraid/megaraid_sas.h
2627
struct megasas_header hdr;
drivers/scsi/megaraid/megaraid_sas.h
2650
struct megasas_header hdr;
drivers/scsi/megaraid/megaraid_sas_base.c
1123
struct megasas_header *frame_hdr = &cmd->frame->hdr;
drivers/scsi/megaraid/megaraid_sas_base.c
2201
(cmd_mfi->frame->hdr.cmd != MFI_CMD_ABORT)) {
drivers/scsi/megaraid/megaraid_sas_base.c
2202
cmd_mfi->frame->hdr.cmd_status =
drivers/scsi/megaraid/megaraid_sas_base.c
2212
if (cmd_mfi->sync_cmd && cmd_mfi->frame->hdr.cmd !=
drivers/scsi/megaraid/megaraid_sas_base.c
3603
struct megasas_header *hdr = &cmd->frame->hdr;
drivers/scsi/megaraid/megaraid_sas_base.c
3614
switch (hdr->cmd) {
drivers/scsi/megaraid/megaraid_sas_base.c
3659
switch (hdr->cmd_status) {
drivers/scsi/megaraid/megaraid_sas_base.c
3667
if (hdr->scsi_status == 0xf0)
drivers/scsi/megaraid/megaraid_sas_base.c
3670
cmd->scmd->result = (DID_ERROR << 16) | hdr->scsi_status;
drivers/scsi/megaraid/megaraid_sas_base.c
3675
cmd->scmd->result = (DID_OK << 16) | hdr->scsi_status;
drivers/scsi/megaraid/megaraid_sas_base.c
3677
if (hdr->scsi_status == SAM_STAT_CHECK_CONDITION) {
drivers/scsi/megaraid/megaraid_sas_base.c
3681
hdr->sense_len);
drivers/scsi/megaraid/megaraid_sas_base.c
369
cmd->frame->hdr.cmd = MFI_CMD_INVALID;
drivers/scsi/megaraid/megaraid_sas_base.c
3693
hdr->cmd_status);
drivers/scsi/megaraid/megaraid_sas_base.c
3720
status = cmd->frame->hdr.cmd_status;
drivers/scsi/megaraid/megaraid_sas_base.c
3725
cmd->frame->hdr.cmd_status);
drivers/scsi/megaraid/megaraid_sas_base.c
3771
status = cmd->frame->hdr.cmd_status;
drivers/scsi/megaraid/megaraid_sas_base.c
3806
hdr->cmd);
drivers/scsi/megaraid/megaraid_sas_base.c
4409
cmd->frame->hdr.cmd = MFI_CMD_INVALID;
drivers/scsi/megaraid/megaraid_sas_base.c
8260
if ((ioc->frame.hdr.cmd >= MFI_CMD_OP_COUNT) ||
drivers/scsi/megaraid/megaraid_sas_base.c
8261
((ioc->frame.hdr.cmd == MFI_CMD_NVME) &&
drivers/scsi/megaraid/megaraid_sas_base.c
8263
((ioc->frame.hdr.cmd == MFI_CMD_TOOLBOX) &&
drivers/scsi/megaraid/megaraid_sas_base.c
8267
ioc->frame.hdr.cmd);
drivers/scsi/megaraid/megaraid_sas_base.c
8284
cmd->frame->hdr.context = cpu_to_le32(cmd->index);
drivers/scsi/megaraid/megaraid_sas_base.c
8285
cmd->frame->hdr.pad_0 = 0;
drivers/scsi/megaraid/megaraid_sas_base.c
8287
cmd->frame->hdr.flags &= (~MFI_FRAME_IEEE);
drivers/scsi/megaraid/megaraid_sas_base.c
8290
cmd->frame->hdr.flags |= cpu_to_le16((MFI_FRAME_SGL64 |
drivers/scsi/megaraid/megaraid_sas_base.c
8293
cmd->frame->hdr.flags &= cpu_to_le16(~(MFI_FRAME_SGL64 |
drivers/scsi/megaraid/megaraid_sas_base.c
8296
if (cmd->frame->hdr.cmd == MFI_CMD_DCMD)
drivers/scsi/megaraid/megaraid_sas_base.c
8403
__func__, __LINE__, cmd->frame->hdr.cmd, opcode,
drivers/scsi/megaraid/megaraid_sas_base.c
8454
if (copy_to_user(&user_ioc->frame.hdr.cmd_status,
drivers/scsi/megaraid/megaraid_sas_base.c
8455
&cmd->frame->hdr.cmd_status, sizeof(u8))) {
drivers/scsi/megaraid/megaraid_sas_fusion.c
1045
struct megasas_header *frame_hdr = &cmd->frame->hdr;
drivers/scsi/megaraid/megaraid_sas_fusion.c
1171
frame_hdr = &cmd->frame->hdr;
drivers/scsi/megaraid/megaraid_sas_fusion.c
1266
frame_hdr = &cmd->frame->hdr;
drivers/scsi/megaraid/megaraid_sas_fusion.c
3896
struct megasas_header *frame_hdr = &mfi_cmd->frame->hdr;
drivers/scsi/megaraid/megaraid_sas_fusion.c
4330
switch (cmd_mfi->frame->hdr.cmd) {
drivers/scsi/megaraid/megaraid_sas_fusion.c
4350
cmd_mfi->frame->hdr.cmd_status = MFI_STAT_INVALID_CMD;
drivers/scsi/megaraid/megaraid_sas_fusion.c
4357
cmd_mfi->frame->hdr.cmd_status = MFI_STAT_INVALID_CMD;
drivers/scsi/megaraid/megaraid_sas_fusion.c
4367
cmd_mfi->frame->hdr.cmd != MFI_CMD_ABORT) {
drivers/scsi/megaraid/megaraid_sas_fusion.c
4370
__func__, __LINE__, cmd_mfi->frame->hdr.cmd,
drivers/scsi/megaraid/megaraid_sas_fusion.c
4418
__func__, __LINE__, cmd_mfi->frame->hdr.cmd,
drivers/scsi/mpt3sas/mpt3sas_ctl.c
1365
number_bytes = karg.hdr.max_data_size -
drivers/scsi/mpt3sas/mpt3sas_ctl.c
2689
karg.hdr.ioc_number = karg32.hdr.ioc_number;
drivers/scsi/mpt3sas/mpt3sas_ctl.c
2690
karg.hdr.port_number = karg32.hdr.port_number;
drivers/scsi/mpt3sas/mpt3sas_ctl.c
2691
karg.hdr.max_data_size = karg32.hdr.max_data_size;
drivers/scsi/mpt3sas/mpt3sas_ctl.c
2783
if (karg.hdr.ioc_number != ioctl_header.ioc_number) {
drivers/scsi/mpt3sas/mpt3sas_ctl.h
129
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
186
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
216
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
228
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
251
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
273
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
289
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
319
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
355
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
374
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
395
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
416
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
434
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
452
struct mpt3_ioctl_header hdr;
drivers/scsi/mpt3sas/mpt3sas_ctl.h
463
struct mpt3_ioctl_header hdr;
drivers/scsi/mvsas/mv_sas.c
294
struct mvs_cmd_hdr *hdr = tei->hdr;
drivers/scsi/mvsas/mv_sas.c
339
hdr->cmd_tbl = cpu_to_le64(sg_dma_address(sg_req));
drivers/scsi/mvsas/mv_sas.c
343
hdr->open_frame = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
351
hdr->prd_tbl = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
353
hdr->prd_tbl = 0;
drivers/scsi/mvsas/mv_sas.c
361
hdr->status_buf = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
363
hdr->reserved[0] = 0;
drivers/scsi/mvsas/mv_sas.c
373
hdr->flags |= flags;
drivers/scsi/mvsas/mv_sas.c
374
hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | ((req_len - 4) / 4));
drivers/scsi/mvsas/mv_sas.c
375
hdr->tags = cpu_to_le32(tag);
drivers/scsi/mvsas/mv_sas.c
376
hdr->data_len = 0;
drivers/scsi/mvsas/mv_sas.c
423
struct mvs_cmd_hdr *hdr = tei->hdr;
drivers/scsi/mvsas/mv_sas.c
460
hdr->flags = cpu_to_le32(flags);
drivers/scsi/mvsas/mv_sas.c
467
hdr->tags = cpu_to_le32(hdr_tag);
drivers/scsi/mvsas/mv_sas.c
469
hdr->data_len = cpu_to_le32(task->total_xfer_len);
drivers/scsi/mvsas/mv_sas.c
479
hdr->cmd_tbl = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
487
hdr->open_frame = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
496
hdr->prd_tbl = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
498
hdr->prd_tbl = 0;
drivers/scsi/mvsas/mv_sas.c
506
hdr->status_buf = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
508
hdr->reserved[0] = 0;
drivers/scsi/mvsas/mv_sas.c
516
hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | (req_len / 4));
drivers/scsi/mvsas/mv_sas.c
548
struct mvs_cmd_hdr *hdr = tei->hdr;
drivers/scsi/mvsas/mv_sas.c
580
hdr->flags = cpu_to_le32(flags | (tei->n_elem << MCH_PRD_LEN_SHIFT));
drivers/scsi/mvsas/mv_sas.c
581
hdr->tags = cpu_to_le32(tag);
drivers/scsi/mvsas/mv_sas.c
582
hdr->data_len = cpu_to_le32(task->total_xfer_len);
drivers/scsi/mvsas/mv_sas.c
592
hdr->cmd_tbl = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
599
hdr->open_frame = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
607
hdr->prd_tbl = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
609
hdr->prd_tbl = 0;
drivers/scsi/mvsas/mv_sas.c
617
hdr->status_buf = cpu_to_le64(buf_tmp_dma);
drivers/scsi/mvsas/mv_sas.c
619
hdr->reserved[0] = 0;
drivers/scsi/mvsas/mv_sas.c
628
hdr->lens = cpu_to_le32(((resp_len / 4) << 16) | (req_len / 4));
drivers/scsi/mvsas/mv_sas.c
774
tei.hdr = &mvi->slot[tag];
drivers/scsi/mvsas/mv_sas.h
418
struct mvs_cmd_hdr *hdr;
drivers/scsi/pmcraid.c
3435
struct pmcraid_ioctl_header *hdr
drivers/scsi/pmcraid.c
3440
if (copy_from_user(hdr, arg, sizeof(struct pmcraid_ioctl_header))) {
drivers/scsi/pmcraid.c
3446
rc = memcmp(hdr->signature,
drivers/scsi/pmcraid.c
3448
sizeof(hdr->signature));
drivers/scsi/pmcraid.c
3467
struct pmcraid_ioctl_header *hdr = NULL;
drivers/scsi/pmcraid.c
3471
hdr = kmalloc_obj(struct pmcraid_ioctl_header);
drivers/scsi/pmcraid.c
3473
if (!hdr) {
drivers/scsi/pmcraid.c
3478
retval = pmcraid_check_ioctl_buffer(cmd, argp, hdr);
drivers/scsi/pmcraid.c
3482
kfree(hdr);
drivers/scsi/pmcraid.c
3490
kfree(hdr);
drivers/scsi/pmcraid.c
3499
hdr->buffer_length, argp);
drivers/scsi/pmcraid.c
3507
kfree(hdr);
drivers/scsi/qedf/qedf_hsi.h
65
struct fcoe_cmdqe_control hdr;
drivers/scsi/qedi/qedi_fw.c
1079
logout_hdr = (struct iscsi_logout *)task->hdr;
drivers/scsi/qedi/qedi_fw.c
1149
tmf_hdr = (struct iscsi_tm *)task->hdr;
drivers/scsi/qedi/qedi_fw.c
1327
tmf_hdr = (struct iscsi_tm *)mtask->hdr;
drivers/scsi/qedi/qedi_fw.c
1437
tmf_hdr = (struct iscsi_tm *)mtask->hdr;
drivers/scsi/qedi/qedi_fw.c
1507
struct iscsi_tm *tmf_hdr = (struct iscsi_tm *)mtask->hdr;
drivers/scsi/qedi/qedi_fw.c
1556
text_hdr = (struct iscsi_text *)task->hdr;
drivers/scsi/qedi/qedi_fw.c
1655
nopout_hdr = (struct iscsi_nopout *)task->hdr;
drivers/scsi/qedi/qedi_fw.c
1987
struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)task->hdr;
drivers/scsi/qedi/qedi_fw.c
2025
if (hdr->cdb[0] != TEST_UNIT_READY) {
drivers/scsi/qedi/qedi_fw.c
2042
cmd_pdu_header.expected_transfer_length = cpu_to_be32(hdr->data_length);
drivers/scsi/qedi/qedi_fw.c
2043
cmd_pdu_header.hdr_second_dword = ntoh24(hdr->dlength);
drivers/scsi/qedi/qedi_fw.c
2044
cmd_pdu_header.cmd_sn = be32_to_cpu(hdr->cmdsn);
drivers/scsi/qedi/qedi_fw.c
2045
cmd_pdu_header.hdr_first_byte = hdr->opcode;
drivers/scsi/qedi/qedi_fw.c
220
tmf_hdr = (struct iscsi_tm *)qedi_cmd->task->hdr;
drivers/scsi/qedi/qedi_fw.c
416
struct iscsi_nopin *hdr;
drivers/scsi/qedi/qedi_fw.c
431
hdr = (struct iscsi_nopin *)&qedi_conn->gen_pdu.resp_hdr;
drivers/scsi/qedi/qedi_fw.c
432
memset(hdr, 0, sizeof(struct iscsi_hdr));
drivers/scsi/qedi/qedi_fw.c
433
hdr->opcode = cqe_nop_in->opcode;
drivers/scsi/qedi/qedi_fw.c
434
hdr->max_cmdsn = cpu_to_be32(cqe_nop_in->max_cmd_sn);
drivers/scsi/qedi/qedi_fw.c
435
hdr->exp_cmdsn = cpu_to_be32(cqe_nop_in->exp_cmd_sn);
drivers/scsi/qedi/qedi_fw.c
436
hdr->statsn = cpu_to_be32(cqe_nop_in->stat_sn);
drivers/scsi/qedi/qedi_fw.c
437
hdr->ttt = cpu_to_be32(cqe_nop_in->ttt);
drivers/scsi/qedi/qedi_fw.c
443
hdr->itt = RESERVED_ITT;
drivers/scsi/qedi/qedi_fw.c
452
hdr->flags = ISCSI_FLAG_CMD_FINAL;
drivers/scsi/qedi/qedi_fw.c
453
hdr->itt = build_itt(cqe->cqe_solicited.itid,
drivers/scsi/qedi/qedi_fw.c
457
memcpy(&hdr->lun, lun, sizeof(struct scsi_lun));
drivers/scsi/qedi/qedi_fw.c
473
__iscsi_complete_pdu(conn, (struct iscsi_hdr *)hdr, bdq_data, pdu_len);
drivers/scsi/qedi/qedi_fw.c
542
struct iscsi_reject *hdr;
drivers/scsi/qedi/qedi_fw.c
558
hdr = (struct iscsi_reject *)&qedi_conn->gen_pdu.resp_hdr;
drivers/scsi/qedi/qedi_fw.c
559
memset(hdr, 0, sizeof(struct iscsi_hdr));
drivers/scsi/qedi/qedi_fw.c
560
hdr->opcode = cqe_reject->opcode;
drivers/scsi/qedi/qedi_fw.c
561
hdr->reason = cqe_reject->hdr_reason;
drivers/scsi/qedi/qedi_fw.c
562
hdr->flags = cqe_reject->hdr_flags;
drivers/scsi/qedi/qedi_fw.c
563
hton24(hdr->dlength, (cqe_reject->hdr_second_dword &
drivers/scsi/qedi/qedi_fw.c
565
hdr->max_cmdsn = cpu_to_be32(cqe_reject->max_cmd_sn);
drivers/scsi/qedi/qedi_fw.c
566
hdr->exp_cmdsn = cpu_to_be32(cqe_reject->exp_cmd_sn);
drivers/scsi/qedi/qedi_fw.c
567
hdr->statsn = cpu_to_be32(cqe_reject->stat_sn);
drivers/scsi/qedi/qedi_fw.c
568
hdr->ffffffff = cpu_to_be32(0xffffffff);
drivers/scsi/qedi/qedi_fw.c
570
__iscsi_complete_pdu(conn, (struct iscsi_hdr *)hdr,
drivers/scsi/qedi/qedi_fw.c
583
struct iscsi_scsi_rsp *hdr;
drivers/scsi/qedi/qedi_fw.c
621
hdr = (struct iscsi_scsi_rsp *)task->hdr;
drivers/scsi/qedi/qedi_fw.c
622
hdr->opcode = cqe_data_in->opcode;
drivers/scsi/qedi/qedi_fw.c
623
hdr->max_cmdsn = cpu_to_be32(cqe_data_in->max_cmd_sn);
drivers/scsi/qedi/qedi_fw.c
624
hdr->exp_cmdsn = cpu_to_be32(cqe_data_in->exp_cmd_sn);
drivers/scsi/qedi/qedi_fw.c
625
hdr->itt = build_itt(cqe->cqe_solicited.itid, conn->session->age);
drivers/scsi/qedi/qedi_fw.c
626
hdr->response = cqe_data_in->reserved1;
drivers/scsi/qedi/qedi_fw.c
627
hdr->cmd_status = cqe_data_in->status_rsvd;
drivers/scsi/qedi/qedi_fw.c
628
hdr->flags = cqe_data_in->flags;
drivers/scsi/qedi/qedi_fw.c
629
hdr->residual_count = cpu_to_be32(cqe_data_in->residual_count);
drivers/scsi/qedi/qedi_fw.c
631
if (hdr->cmd_status == SAM_STAT_CHECK_CONDITION) {
drivers/scsi/qedi/qedi_fw.c
644
hdr->itt, cqe_data_in->flags, cmd->task_id,
drivers/scsi/qedi/qedi_fw.c
645
qedi_conn->iscsi_conn_id, hdr->residual_count,
drivers/scsi/qedi/qedi_fw.c
647
hdr->residual_count = cpu_to_be32(scsi_bufflen(sc_cmd));
drivers/scsi/qedi/qedi_fw.c
648
hdr->flags |= ISCSI_FLAG_CMD_UNDERFLOW;
drivers/scsi/qedi/qedi_fw.c
649
hdr->flags &= (~ISCSI_FLAG_CMD_OVERFLOW);
drivers/scsi/qedi/qedi_fw.c
667
__iscsi_complete_pdu(conn, (struct iscsi_hdr *)hdr,
drivers/scsi/qedi/qedi_fw.c
767
tmf_hdr = (struct iscsi_tm *)mtask->hdr;
drivers/scsi/qedi/qedi_fw.c
879
nopout_hdr = (struct iscsi_nopout *)task->hdr;
drivers/scsi/qedi/qedi_fw.c
979
login_hdr = (struct iscsi_login_req *)task->hdr;
drivers/scsi/qedi/qedi_iscsi.c
217
task->hdr = &cmd->hdr;
drivers/scsi/qedi/qedi_iscsi.c
780
switch (task->hdr->opcode & ISCSI_OPCODE_MASK) {
drivers/scsi/qedi/qedi_iscsi.c
805
"unsupported op 0x%x\n", task->hdr->opcode);
drivers/scsi/qedi/qedi_iscsi.h
180
struct iscsi_hdr hdr;
drivers/scsi/qla2xxx/qla_def.h
3917
} hdr;
drivers/scsi/qla2xxx/qla_nx2.c
1489
int u16_count = vha->reset_tmplt.hdr->size / sizeof(uint16_t);
drivers/scsi/qla2xxx/qla_nx2.c
1545
vha->reset_tmplt.hdr =
drivers/scsi/qla2xxx/qla_nx2.c
1549
tmplt_hdr_size = vha->reset_tmplt.hdr->hdr_size/sizeof(uint32_t);
drivers/scsi/qla2xxx/qla_nx2.c
1551
(vha->reset_tmplt.hdr->signature != RESET_TMPLT_HDR_SIGNATURE)) {
drivers/scsi/qla2xxx/qla_nx2.c
1559
addr = QLA8044_RESET_TEMPLATE_ADDR + vha->reset_tmplt.hdr->hdr_size;
drivers/scsi/qla2xxx/qla_nx2.c
1560
p_buff = vha->reset_tmplt.buff + vha->reset_tmplt.hdr->hdr_size;
drivers/scsi/qla2xxx/qla_nx2.c
1561
tmplt_hdr_def_size = (vha->reset_tmplt.hdr->size -
drivers/scsi/qla2xxx/qla_nx2.c
1562
vha->reset_tmplt.hdr->hdr_size)/sizeof(uint32_t);
drivers/scsi/qla2xxx/qla_nx2.c
1566
__func__, vha->reset_tmplt.hdr->size);
drivers/scsi/qla2xxx/qla_nx2.c
1588
vha->reset_tmplt.hdr->init_seq_offset;
drivers/scsi/qla2xxx/qla_nx2.c
1591
vha->reset_tmplt.hdr->start_seq_offset;
drivers/scsi/qla2xxx/qla_nx2.c
1594
vha->reset_tmplt.hdr->hdr_size;
drivers/scsi/qla2xxx/qla_nx2.c
949
entries = vha->reset_tmplt.hdr->entries;
drivers/scsi/qla2xxx/qla_nx2.h
277
struct qla8044_reset_template_hdr *hdr;
drivers/scsi/qla2xxx/qla_os.c
6143
rsp_payload->hdr.cmd = cpu_to_be32(0x2 << 24); /* LS_ACC */
drivers/scsi/qla2xxx/qla_os.c
6144
rsp_payload->hdr.len = cpu_to_be32(le32_to_cpu(rsp_els->tx_byte_count) -
drivers/scsi/qla2xxx/qla_os.c
6145
sizeof(rsp_payload->hdr));
drivers/scsi/qla2xxx/qla_sup.c
1147
struct qla_npiv_header hdr;
drivers/scsi/qla2xxx/qla_sup.c
1161
ha->isp_ops->read_optrom(vha, &hdr, ha->flt_region_npiv_conf << 2,
drivers/scsi/qla2xxx/qla_sup.c
1163
if (hdr.version == cpu_to_le16(0xffff))
drivers/scsi/qla2xxx/qla_sup.c
1165
if (hdr.version != cpu_to_le16(1)) {
drivers/scsi/qla2xxx/qla_sup.c
1169
le16_to_cpu(hdr.version), le16_to_cpu(hdr.entries),
drivers/scsi/qla2xxx/qla_sup.c
1170
le16_to_cpu(hdr.checksum));
drivers/scsi/qla2xxx/qla_sup.c
1184
cnt = (sizeof(hdr) + le16_to_cpu(hdr.entries) * sizeof(*entry)) >> 1;
drivers/scsi/qla2xxx/qla_sup.c
1191
le16_to_cpu(hdr.version), le16_to_cpu(hdr.entries),
drivers/scsi/qla2xxx/qla_sup.c
1192
le16_to_cpu(hdr.checksum));
drivers/scsi/qla2xxx/qla_sup.c
1197
cnt = le16_to_cpu(hdr.entries);
drivers/scsi/qla2xxx/qla_tmpl.c
126
ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY;
drivers/scsi/qla2xxx/qla_tmpl.c
132
return (void *)ent + le32_to_cpu(ent->hdr.size);
drivers/scsi/qla2xxx/qla_tmpl.c
697
ulong size = le32_to_cpu(ent->hdr.size);
drivers/scsi/qla2xxx/qla_tmpl.c
783
ulong type = le32_to_cpu(ent->hdr.type);
drivers/scsi/qla2xxx/qla_tmpl.c
849
type = le32_to_cpu(ent->hdr.type);
drivers/scsi/qla2xxx/qla_tmpl.h
74
} hdr;
drivers/scsi/qla4xxx/ql4_83xx.c
1123
entries = ha->reset_tmplt.hdr->entries;
drivers/scsi/qla4xxx/ql4_83xx.c
748
int u16_count = ha->reset_tmplt.hdr->size / sizeof(uint16_t);
drivers/scsi/qla4xxx/ql4_83xx.c
806
ha->reset_tmplt.hdr =
drivers/scsi/qla4xxx/ql4_83xx.c
810
tmplt_hdr_size = ha->reset_tmplt.hdr->hdr_size/sizeof(uint32_t);
drivers/scsi/qla4xxx/ql4_83xx.c
812
(ha->reset_tmplt.hdr->signature != RESET_TMPLT_HDR_SIGNATURE)) {
drivers/scsi/qla4xxx/ql4_83xx.c
818
addr = QLA83XX_RESET_TEMPLATE_ADDR + ha->reset_tmplt.hdr->hdr_size;
drivers/scsi/qla4xxx/ql4_83xx.c
819
p_buff = ha->reset_tmplt.buff + ha->reset_tmplt.hdr->hdr_size;
drivers/scsi/qla4xxx/ql4_83xx.c
820
tmplt_hdr_def_size = (ha->reset_tmplt.hdr->size -
drivers/scsi/qla4xxx/ql4_83xx.c
821
ha->reset_tmplt.hdr->hdr_size) / sizeof(uint32_t);
drivers/scsi/qla4xxx/ql4_83xx.c
825
__func__, ha->reset_tmplt.hdr->size));
drivers/scsi/qla4xxx/ql4_83xx.c
848
ha->reset_tmplt.hdr->init_seq_offset;
drivers/scsi/qla4xxx/ql4_83xx.c
850
ha->reset_tmplt.hdr->start_seq_offset;
drivers/scsi/qla4xxx/ql4_83xx.c
852
ha->reset_tmplt.hdr->hdr_size;
drivers/scsi/qla4xxx/ql4_83xx.h
220
struct qla4_83xx_reset_template_hdr *hdr;
drivers/scsi/qla4xxx/ql4_fw.h
1105
struct qla4_header hdr; /* 00-03 */
drivers/scsi/qla4xxx/ql4_fw.h
1144
struct qla4_header hdr;
drivers/scsi/qla4xxx/ql4_fw.h
1159
struct qla4_header hdr; /* 00-03 */
drivers/scsi/qla4xxx/ql4_fw.h
1179
struct qla4_header hdr; /* 00-03 */
drivers/scsi/qla4xxx/ql4_fw.h
1220
struct qla4_header hdr; /* 00-03 */
drivers/scsi/qla4xxx/ql4_fw.h
1225
struct qla4_header hdr; /* 00-03 */
drivers/scsi/qla4xxx/ql4_fw.h
1248
struct qla4_header hdr; /* 00-03 */
drivers/scsi/qla4xxx/ql4_fw.h
1268
struct qla4_header hdr; /* 00-03 */
drivers/scsi/qla4xxx/ql4_fw.h
1275
struct qla4_header hdr; /* 00-03 */
drivers/scsi/qla4xxx/ql4_iocb.c
102
marker_entry->hdr.entryType = ET_MARKER;
drivers/scsi/qla4xxx/ql4_iocb.c
103
marker_entry->hdr.entryCount = 1;
drivers/scsi/qla4xxx/ql4_iocb.c
127
cont_entry->hdr.entryType = ET_CONTINUE;
drivers/scsi/qla4xxx/ql4_iocb.c
128
cont_entry->hdr.entryCount = 1;
drivers/scsi/qla4xxx/ql4_iocb.c
129
cont_entry->hdr.systemDefined = (uint8_t) cpu_to_le16(ha->request_in);
drivers/scsi/qla4xxx/ql4_iocb.c
323
cmd_entry->hdr.entryType = ET_COMMAND;
drivers/scsi/qla4xxx/ql4_iocb.c
331
cmd_entry->hdr.entryCount = req_cnt;
drivers/scsi/qla4xxx/ql4_iocb.c
403
passthru_iocb->hdr.entryType = ET_PASSTHRU0;
drivers/scsi/qla4xxx/ql4_iocb.c
404
passthru_iocb->hdr.systemDefined = SD_ISCSI_PDU;
drivers/scsi/qla4xxx/ql4_iocb.c
405
passthru_iocb->hdr.entryCount = task_data->iocb_req_cnt;
drivers/scsi/qla4xxx/ql4_iocb.c
493
mrb->mbox->hdr.entryType = ET_MBOX_CMD;
drivers/scsi/qla4xxx/ql4_iocb.c
494
mrb->mbox->hdr.entryCount = mrb->iocb_cnt;
drivers/scsi/qla4xxx/ql4_isr.c
492
switch (sts_entry->hdr.entryType) {
drivers/scsi/qla4xxx/ql4_isr.c
499
if (sts_entry->hdr.systemDefined == SD_ISCSI_PDU)
drivers/scsi/qla4xxx/ql4_isr.c
555
sts_entry->hdr.entryType));
drivers/scsi/qla4xxx/ql4_isr.c
571
ha->host_no, __func__, srb, sts_entry->hdr.entryType,
drivers/scsi/qla4xxx/ql4_os.c
3358
struct iscsi_hdr *hdr;
drivers/scsi/qla4xxx/ql4_os.c
3380
hdr = (struct iscsi_hdr *)task_data->resp_buffer;
drivers/scsi/qla4xxx/ql4_os.c
3383
hdr->itt = itt;
drivers/scsi/qla4xxx/ql4_os.c
3386
iscsi_complete_pdu(conn, hdr, data, data_len);
drivers/scsi/qla4xxx/ql4_os.c
3447
task->hdr = task_data->req_buffer;
drivers/scsi/qlogicpti.c
1183
if (sts->hdr.entry_type == ENTRY_STATUS)
drivers/scsi/qlogicpti.c
862
marker->hdr.entry_cnt = 1;
drivers/scsi/qlogicpti.c
863
marker->hdr.entry_type = ENTRY_MARKER;
drivers/scsi/qlogicpti.c
872
cmd->hdr.entry_cnt = 1;
drivers/scsi/qlogicpti.c
873
cmd->hdr.entry_type = ENTRY_COMMAND;
drivers/scsi/qlogicpti.c
930
++cmd->hdr.entry_cnt;
drivers/scsi/qlogicpti.c
936
cont->hdr.entry_type = ENTRY_CONTINUATION;
drivers/scsi/qlogicpti.c
937
cont->hdr.entry_cnt = 0;
drivers/scsi/qlogicpti.c
938
cont->hdr.sys_def_1 = 0;
drivers/scsi/qlogicpti.c
939
cont->hdr.flags = 0;
drivers/scsi/qlogicpti.h
127
struct Entry_header hdr;
drivers/scsi/qlogicpti.h
145
struct Entry_header hdr;
drivers/scsi/qlogicpti.h
151
struct Entry_header hdr;
drivers/scsi/qlogicpti.h
176
struct Entry_header hdr;
drivers/scsi/qlogicpti.h
99
struct Entry_header hdr;
drivers/scsi/scsi_bsg.c
12
static int scsi_bsg_sg_io_fn(struct request_queue *q, struct sg_io_v4 *hdr,
drivers/scsi/scsi_bsg.c
20
if (hdr->protocol != BSG_PROTOCOL_SCSI ||
drivers/scsi/scsi_bsg.c
21
hdr->subprotocol != BSG_SUB_PROTOCOL_SCSI_CMD)
drivers/scsi/scsi_bsg.c
23
if (hdr->dout_xfer_len && hdr->din_xfer_len) {
drivers/scsi/scsi_bsg.c
28
rq = scsi_alloc_request(q, hdr->dout_xfer_len ?
drivers/scsi/scsi_bsg.c
35
scmd->cmd_len = hdr->request_len;
drivers/scsi/scsi_bsg.c
42
if (copy_from_user(scmd->cmnd, uptr64(hdr->request), scmd->cmd_len))
drivers/scsi/scsi_bsg.c
49
if (hdr->dout_xfer_len) {
drivers/scsi/scsi_bsg.c
50
ret = blk_rq_map_user(rq->q, rq, NULL, uptr64(hdr->dout_xferp),
drivers/scsi/scsi_bsg.c
51
hdr->dout_xfer_len, GFP_KERNEL);
drivers/scsi/scsi_bsg.c
52
} else if (hdr->din_xfer_len) {
drivers/scsi/scsi_bsg.c
53
ret = blk_rq_map_user(rq->q, rq, NULL, uptr64(hdr->din_xferp),
drivers/scsi/scsi_bsg.c
54
hdr->din_xfer_len, GFP_KERNEL);
drivers/scsi/scsi_bsg.c
61
blk_execute_rq(rq, !(hdr->flags & BSG_FLAG_Q_AT_TAIL));
drivers/scsi/scsi_bsg.c
66
hdr->device_status = scmd->result & 0xff;
drivers/scsi/scsi_bsg.c
67
hdr->transport_status = host_byte(scmd->result);
drivers/scsi/scsi_bsg.c
68
hdr->driver_status = 0;
drivers/scsi/scsi_bsg.c
70
hdr->driver_status = DRIVER_SENSE;
drivers/scsi/scsi_bsg.c
71
hdr->info = 0;
drivers/scsi/scsi_bsg.c
72
if (hdr->device_status || hdr->transport_status || hdr->driver_status)
drivers/scsi/scsi_bsg.c
73
hdr->info |= SG_INFO_CHECK;
drivers/scsi/scsi_bsg.c
74
hdr->response_len = 0;
drivers/scsi/scsi_bsg.c
76
if (scmd->sense_len && hdr->response) {
drivers/scsi/scsi_bsg.c
77
int len = min_t(unsigned int, hdr->max_response_len,
drivers/scsi/scsi_bsg.c
80
if (copy_to_user(uptr64(hdr->response), scmd->sense_buffer,
drivers/scsi/scsi_bsg.c
84
hdr->response_len = len;
drivers/scsi/scsi_bsg.c
88
hdr->din_resid = scmd->resid_len;
drivers/scsi/scsi_bsg.c
90
hdr->dout_resid = scmd->resid_len;
drivers/scsi/scsi_ioctl.c
365
struct sg_io_hdr *hdr, bool open_for_write)
drivers/scsi/scsi_ioctl.c
369
if (hdr->cmd_len < 6)
drivers/scsi/scsi_ioctl.c
371
if (copy_from_user(scmd->cmnd, hdr->cmdp, hdr->cmd_len))
drivers/scsi/scsi_ioctl.c
375
scmd->cmd_len = hdr->cmd_len;
drivers/scsi/scsi_ioctl.c
377
rq->timeout = msecs_to_jiffies(hdr->timeout);
drivers/scsi/scsi_ioctl.c
388
static int scsi_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr,
drivers/scsi/scsi_ioctl.c
397
hdr->status = scmd->result & 0xff;
drivers/scsi/scsi_ioctl.c
398
hdr->masked_status = sg_status_byte(scmd->result);
drivers/scsi/scsi_ioctl.c
399
hdr->msg_status = COMMAND_COMPLETE;
drivers/scsi/scsi_ioctl.c
400
hdr->host_status = host_byte(scmd->result);
drivers/scsi/scsi_ioctl.c
401
hdr->driver_status = 0;
drivers/scsi/scsi_ioctl.c
402
if (scsi_status_is_check_condition(hdr->status))
drivers/scsi/scsi_ioctl.c
403
hdr->driver_status = DRIVER_SENSE;
drivers/scsi/scsi_ioctl.c
404
hdr->info = 0;
drivers/scsi/scsi_ioctl.c
405
if (hdr->masked_status || hdr->host_status || hdr->driver_status)
drivers/scsi/scsi_ioctl.c
406
hdr->info |= SG_INFO_CHECK;
drivers/scsi/scsi_ioctl.c
407
hdr->resid = scmd->resid_len;
drivers/scsi/scsi_ioctl.c
408
hdr->sb_len_wr = 0;
drivers/scsi/scsi_ioctl.c
410
if (scmd->sense_len && hdr->sbp) {
drivers/scsi/scsi_ioctl.c
411
int len = min((unsigned int) hdr->mx_sb_len, scmd->sense_len);
drivers/scsi/scsi_ioctl.c
413
if (!copy_to_user(hdr->sbp, scmd->sense_buffer, len))
drivers/scsi/scsi_ioctl.c
414
hdr->sb_len_wr = len;
drivers/scsi/scsi_ioctl.c
426
static int sg_io(struct scsi_device *sdev, struct sg_io_hdr *hdr,
drivers/scsi/scsi_ioctl.c
437
if (hdr->interface_id != 'S')
drivers/scsi/scsi_ioctl.c
440
if (hdr->dxfer_len > (queue_max_hw_sectors(sdev->request_queue) << 9))
drivers/scsi/scsi_ioctl.c
443
if (hdr->dxfer_len)
drivers/scsi/scsi_ioctl.c
444
switch (hdr->dxfer_direction) {
drivers/scsi/scsi_ioctl.c
454
if (hdr->flags & SG_FLAG_Q_AT_HEAD)
drivers/scsi/scsi_ioctl.c
463
if (hdr->cmd_len > sizeof(scmd->cmnd)) {
drivers/scsi/scsi_ioctl.c
468
ret = scsi_fill_sghdr_rq(sdev, rq, hdr, open_for_write);
drivers/scsi/scsi_ioctl.c
472
ret = blk_rq_map_user_io(rq, NULL, hdr->dxferp, hdr->dxfer_len,
drivers/scsi/scsi_ioctl.c
473
GFP_KERNEL, hdr->iovec_count && hdr->dxfer_len,
drivers/scsi/scsi_ioctl.c
474
hdr->iovec_count, 0, rq_data_dir(rq));
drivers/scsi/scsi_ioctl.c
485
hdr->duration = jiffies_to_msecs(jiffies - start_time);
drivers/scsi/scsi_ioctl.c
487
ret = scsi_complete_sghdr_rq(rq, hdr, bio);
drivers/scsi/scsi_ioctl.c
633
int put_sg_io_hdr(const struct sg_io_hdr *hdr, void __user *argp)
drivers/scsi/scsi_ioctl.c
638
.interface_id = hdr->interface_id,
drivers/scsi/scsi_ioctl.c
639
.dxfer_direction = hdr->dxfer_direction,
drivers/scsi/scsi_ioctl.c
640
.cmd_len = hdr->cmd_len,
drivers/scsi/scsi_ioctl.c
641
.mx_sb_len = hdr->mx_sb_len,
drivers/scsi/scsi_ioctl.c
642
.iovec_count = hdr->iovec_count,
drivers/scsi/scsi_ioctl.c
643
.dxfer_len = hdr->dxfer_len,
drivers/scsi/scsi_ioctl.c
644
.dxferp = (uintptr_t)hdr->dxferp,
drivers/scsi/scsi_ioctl.c
645
.cmdp = (uintptr_t)hdr->cmdp,
drivers/scsi/scsi_ioctl.c
646
.sbp = (uintptr_t)hdr->sbp,
drivers/scsi/scsi_ioctl.c
647
.timeout = hdr->timeout,
drivers/scsi/scsi_ioctl.c
648
.flags = hdr->flags,
drivers/scsi/scsi_ioctl.c
649
.pack_id = hdr->pack_id,
drivers/scsi/scsi_ioctl.c
650
.usr_ptr = (uintptr_t)hdr->usr_ptr,
drivers/scsi/scsi_ioctl.c
651
.status = hdr->status,
drivers/scsi/scsi_ioctl.c
652
.masked_status = hdr->masked_status,
drivers/scsi/scsi_ioctl.c
653
.msg_status = hdr->msg_status,
drivers/scsi/scsi_ioctl.c
654
.sb_len_wr = hdr->sb_len_wr,
drivers/scsi/scsi_ioctl.c
655
.host_status = hdr->host_status,
drivers/scsi/scsi_ioctl.c
656
.driver_status = hdr->driver_status,
drivers/scsi/scsi_ioctl.c
657
.resid = hdr->resid,
drivers/scsi/scsi_ioctl.c
658
.duration = hdr->duration,
drivers/scsi/scsi_ioctl.c
659
.info = hdr->info,
drivers/scsi/scsi_ioctl.c
669
if (copy_to_user(argp, hdr, sizeof(*hdr)))
drivers/scsi/scsi_ioctl.c
676
int get_sg_io_hdr(struct sg_io_hdr *hdr, const void __user *argp)
drivers/scsi/scsi_ioctl.c
685
*hdr = (struct sg_io_hdr) {
drivers/scsi/scsi_ioctl.c
714
if (copy_from_user(hdr, argp, sizeof(*hdr)))
drivers/scsi/scsi_ioctl.c
799
struct sg_io_hdr hdr;
drivers/scsi/scsi_ioctl.c
807
memset(&hdr, 0, sizeof(hdr));
drivers/scsi/scsi_ioctl.c
808
hdr.interface_id = 'S';
drivers/scsi/scsi_ioctl.c
809
hdr.cmd_len = sizeof(cgc.cmd);
drivers/scsi/scsi_ioctl.c
810
hdr.dxfer_len = cgc.buflen;
drivers/scsi/scsi_ioctl.c
813
hdr.dxfer_direction = SG_DXFER_UNKNOWN;
drivers/scsi/scsi_ioctl.c
816
hdr.dxfer_direction = SG_DXFER_TO_DEV;
drivers/scsi/scsi_ioctl.c
819
hdr.dxfer_direction = SG_DXFER_FROM_DEV;
drivers/scsi/scsi_ioctl.c
822
hdr.dxfer_direction = SG_DXFER_NONE;
drivers/scsi/scsi_ioctl.c
828
hdr.dxferp = cgc.buffer;
drivers/scsi/scsi_ioctl.c
829
hdr.sbp = cgc.sense;
drivers/scsi/scsi_ioctl.c
830
if (hdr.sbp)
drivers/scsi/scsi_ioctl.c
831
hdr.mx_sb_len = sizeof(struct request_sense);
drivers/scsi/scsi_ioctl.c
832
hdr.timeout = jiffies_to_msecs(cgc.timeout);
drivers/scsi/scsi_ioctl.c
833
hdr.cmdp = ((struct cdrom_generic_command __user *) arg)->cmd;
drivers/scsi/scsi_ioctl.c
834
hdr.cmd_len = sizeof(cgc.cmd);
drivers/scsi/scsi_ioctl.c
836
err = sg_io(sdev, &hdr, open_for_write);
drivers/scsi/scsi_ioctl.c
840
if (hdr.status)
drivers/scsi/scsi_ioctl.c
844
cgc.buflen = hdr.resid;
drivers/scsi/scsi_ioctl.c
854
struct sg_io_hdr hdr;
drivers/scsi/scsi_ioctl.c
857
error = get_sg_io_hdr(&hdr, argp);
drivers/scsi/scsi_ioctl.c
860
error = sg_io(sdev, &hdr, open_for_write);
drivers/scsi/scsi_ioctl.c
863
if (put_sg_io_hdr(&hdr, argp))
drivers/scsi/scsi_netlink.c
35
struct scsi_nl_hdr *hdr;
drivers/scsi/scsi_netlink.c
43
if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) ||
drivers/scsi/scsi_netlink.c
59
hdr = nlmsg_data(nlh);
drivers/scsi/scsi_netlink.c
60
if ((hdr->version != SCSI_NL_VERSION) ||
drivers/scsi/scsi_netlink.c
61
(hdr->magic != SCSI_NL_MAGIC)) {
drivers/scsi/scsi_netlink.c
71
if (nlh->nlmsg_len < (sizeof(*nlh) + hdr->msglen)) {
drivers/scsi/scsi_netlink.c
80
tport = hdr->transport;
drivers/scsi/scsi_netlink.c
82
switch (hdr->msgtype) {
drivers/scsi/scsi_netlink.c
93
__func__, hdr->msgtype, err);
drivers/scsi/scsi_transport_iscsi.c
2543
int iscsi_recv_pdu(struct iscsi_cls_conn *conn, struct iscsi_hdr *hdr,
drivers/scsi/scsi_transport_iscsi.c
2574
memcpy(pdu, hdr, sizeof(struct iscsi_hdr));
drivers/scsi/sg.c
1654
static struct ctl_table_header *hdr;
drivers/scsi/sg.c
1657
if (!hdr)
drivers/scsi/sg.c
1658
hdr = register_sysctl("kernel", sg_sysctls);
drivers/scsi/sg.c
1663
unregister_sysctl_table(hdr);
drivers/scsi/snic/snic_ctl.c
111
snic_io_hdr_enc(&req->hdr, SNIC_REQ_EXCH_VER, 0, SCSI_NO_TAG,
drivers/scsi/snic/snic_ctl.c
148
snic_io_hdr_dec(&fwreq->hdr, &typ, &hdr_stat, &cmnd_id, &hid, &ctx);
drivers/scsi/snic/snic_disc.c
394
snic_io_hdr_dec(&fwreq->hdr, &typ, &cmpl_stat, &cmnd_id, &hid, &ctx);
drivers/scsi/snic/snic_disc.c
51
snic_io_hdr_enc(&req->hdr, SNIC_REQ_REPORT_TGTS, 0, SCSI_NO_TAG, hid,
drivers/scsi/snic/snic_fwint.h
100
snic_io_hdr_enc(struct snic_io_hdr *hdr, u8 typ, u8 status, u32 id, u32 hid,
drivers/scsi/snic/snic_fwint.h
103
hdr->type = typ;
drivers/scsi/snic/snic_fwint.h
104
hdr->status = status;
drivers/scsi/snic/snic_fwint.h
105
hdr->protocol = 0;
drivers/scsi/snic/snic_fwint.h
106
hdr->hid = cpu_to_le32(hid);
drivers/scsi/snic/snic_fwint.h
107
hdr->cmnd_id = cpu_to_le32(id);
drivers/scsi/snic/snic_fwint.h
108
hdr->sg_cnt = cpu_to_le16(sg_cnt);
drivers/scsi/snic/snic_fwint.h
109
hdr->init_ctx = ctx;
drivers/scsi/snic/snic_fwint.h
110
hdr->flags = 0;
drivers/scsi/snic/snic_fwint.h
115
snic_io_hdr_dec(struct snic_io_hdr *hdr, u8 *typ, u8 *stat, u32 *cmnd_id,
drivers/scsi/snic/snic_fwint.h
118
*typ = hdr->type;
drivers/scsi/snic/snic_fwint.h
119
*stat = hdr->status;
drivers/scsi/snic/snic_fwint.h
120
*hid = le32_to_cpu(hdr->hid);
drivers/scsi/snic/snic_fwint.h
121
*cmnd_id = le32_to_cpu(hdr->cmnd_id);
drivers/scsi/snic/snic_fwint.h
122
*ctx = hdr->init_ctx;
drivers/scsi/snic/snic_fwint.h
413
struct snic_io_hdr hdr;
drivers/scsi/snic/snic_fwint.h
444
struct snic_io_hdr hdr;
drivers/scsi/snic/snic_io.c
174
desc_avail = snic_wqdesc_avail(snic, q_num, req->hdr.type);
drivers/scsi/snic/snic_io.c
261
rqi->req->hdr.init_ctx = (ulong) rqi;
drivers/scsi/snic/snic_io.c
294
req->hdr.init_ctx = (ulong) rqi;
drivers/scsi/snic/snic_io.c
321
req->hdr.init_ctx = (ulong) rqi;
drivers/scsi/snic/snic_io.c
451
if (req->hdr.type >= SNIC_RSP_REPORT_TGTS_CMPL)
drivers/scsi/snic/snic_io.c
452
rqi = (struct snic_req_info *) fwreq->hdr.init_ctx;
drivers/scsi/snic/snic_io.c
454
rqi = (struct snic_req_info *) req->hdr.init_ctx;
drivers/scsi/snic/snic_io.c
457
switch (req->hdr.type) {
drivers/scsi/snic/snic_io.c
531
fn, line, req->hdr.cmnd_id, req->hdr.sg_cnt, req->hdr.status,
drivers/scsi/snic/snic_io.c
532
req->hdr.init_ctx);
drivers/scsi/snic/snic_io.h
90
((struct snic_req_info *) (((struct snic_host_req *)req)->hdr.init_ctx))
drivers/scsi/snic/snic_res.h
19
snic_io_hdr_enc(&req->hdr, SNIC_REQ_ICMND, 0, cmnd_id, host_id, sg_cnt,
drivers/scsi/snic/snic_res.h
38
snic_io_hdr_enc(&req->hdr, SNIC_REQ_ITMF, 0, cmnd_id, host_id, 0, ctx);
drivers/scsi/snic/snic_scsi.c
1116
snic_io_hdr_dec(&fwreq->hdr, &typ, &hdr_stat, &cmnd_id, &hid, &ctx);
drivers/scsi/snic/snic_scsi.c
1188
if ((fwreq->hdr.type >= SNIC_RSP_REPORT_TGTS_CMPL) &&
drivers/scsi/snic/snic_scsi.c
1189
(fwreq->hdr.type <= SNIC_RSP_BOOT_LUNS_CMPL))
drivers/scsi/snic/snic_scsi.c
1192
SNIC_BUG_ON((fwreq->hdr.type > SNIC_RSP_BOOT_LUNS_CMPL) &&
drivers/scsi/snic/snic_scsi.c
1193
(fwreq->hdr.type < SNIC_MSG_ASYNC_EVNOTIFY));
drivers/scsi/snic/snic_scsi.c
1196
switch (fwreq->hdr.status) {
drivers/scsi/snic/snic_scsi.c
1208
switch (fwreq->hdr.type) {
drivers/scsi/snic/snic_scsi.c
1241
fwreq->hdr.type);
drivers/scsi/snic/snic_scsi.c
2235
snic_io_hdr_enc(&req->hdr, SNIC_REQ_HBA_RESET, 0, snic_cmd_tag(sc),
drivers/scsi/snic/snic_scsi.c
539
snic_io_hdr_dec(&fwreq->hdr, &typ, &hdr_stat, &cmnd_id, &hid, &ctx);
drivers/scsi/snic/snic_scsi.c
909
snic_io_hdr_dec(&fwreq->hdr, &typ, &hdr_stat, &cmnd_id, &hid, &ctx);
drivers/scsi/snic/snic_scsi.c
993
snic_io_hdr_dec(&fwreq->hdr, &typ, &hdr_stat, &cmnd_id, &hid, &ctx);
drivers/soc/fsl/dpaa2-console.c
131
cd->hdr = (struct log_header __iomem *)cd->map_addr;
drivers/soc/fsl/dpaa2-console.c
132
read_magic = readl(&cd->hdr->magic_word);
drivers/soc/fsl/dpaa2-console.c
133
last_byte = readl(&cd->hdr->last_byte);
drivers/soc/fsl/dpaa2-console.c
134
buf_start = readl(&cd->hdr->buf_start);
drivers/soc/fsl/dpaa2-console.c
135
buf_length = readl(&cd->hdr->buf_length);
drivers/soc/fsl/dpaa2-console.c
54
struct log_header __iomem *hdr;
drivers/soc/fsl/dpaa2-console.c
65
u32 last_byte = readl(&cd->hdr->last_byte);
drivers/soc/fsl/qe/qe.c
454
const struct qe_header *hdr;
drivers/soc/fsl/qe/qe.c
461
hdr = &firmware->header;
drivers/soc/fsl/qe/qe.c
462
length = be32_to_cpu(hdr->length);
drivers/soc/fsl/qe/qe.c
465
if ((hdr->magic[0] != 'Q') || (hdr->magic[1] != 'E') ||
drivers/soc/fsl/qe/qe.c
466
(hdr->magic[2] != 'F')) {
drivers/soc/fsl/qe/qe.c
472
if (hdr->version != 1) {
drivers/soc/qcom/apr.c
129
struct gpr_hdr *hdr;
drivers/soc/qcom/apr.c
133
hdr = &pkt->hdr;
drivers/soc/qcom/apr.c
136
ret = rpmsg_trysend(pr->ch, pkt, hdr->pkt_size);
drivers/soc/qcom/apr.c
139
return ret ? ret : hdr->pkt_size;
drivers/soc/qcom/apr.c
197
struct apr_hdr *hdr;
drivers/soc/qcom/apr.c
202
hdr = buf;
drivers/soc/qcom/apr.c
203
ver = APR_HDR_FIELD_VER(hdr->hdr_field);
drivers/soc/qcom/apr.c
207
hdr_size = APR_HDR_FIELD_SIZE_BYTES(hdr->hdr_field);
drivers/soc/qcom/apr.c
213
if (hdr->pkt_size < APR_HDR_SIZE || hdr->pkt_size != len) {
drivers/soc/qcom/apr.c
218
msg_type = APR_HDR_FIELD_MT(hdr->hdr_field);
drivers/soc/qcom/apr.c
224
if (hdr->src_domain >= APR_DOMAIN_MAX ||
drivers/soc/qcom/apr.c
225
hdr->dest_domain >= APR_DOMAIN_MAX ||
drivers/soc/qcom/apr.c
226
hdr->src_svc >= APR_SVC_MAX ||
drivers/soc/qcom/apr.c
227
hdr->dest_svc >= APR_SVC_MAX) {
drivers/soc/qcom/apr.c
232
svc_id = hdr->dest_svc;
drivers/soc/qcom/apr.c
247
resp.hdr = *hdr;
drivers/soc/qcom/apr.c
248
resp.payload_size = hdr->pkt_size - hdr_size;
drivers/soc/qcom/apr.c
267
struct gpr_hdr *hdr;
drivers/soc/qcom/apr.c
272
hdr = buf;
drivers/soc/qcom/apr.c
273
ver = hdr->version;
drivers/soc/qcom/apr.c
277
hdr_size = hdr->hdr_size;
drivers/soc/qcom/apr.c
283
if (hdr->pkt_size < GPR_PKT_HEADER_BYTE_SIZE || hdr->pkt_size != len) {
drivers/soc/qcom/apr.c
288
resp.hdr = *hdr;
drivers/soc/qcom/apr.c
289
resp.payload_size = hdr->pkt_size - (hdr_size * 4);
drivers/soc/qcom/apr.c
300
svc = idr_find(&gpr->svcs_idr, hdr->dest_port);
drivers/soc/qcom/apr.c
305
hdr->dest_port);
drivers/soc/qcom/apr.c
58
struct apr_hdr *hdr;
drivers/soc/qcom/apr.c
64
hdr = &pkt->hdr;
drivers/soc/qcom/apr.c
65
hdr->src_domain = APR_DOMAIN_APPS;
drivers/soc/qcom/apr.c
66
hdr->src_svc = adev->svc.id;
drivers/soc/qcom/apr.c
67
hdr->dest_domain = adev->domain_id;
drivers/soc/qcom/apr.c
68
hdr->dest_svc = adev->svc.id;
drivers/soc/qcom/apr.c
70
ret = rpmsg_trysend(apr->ch, pkt, hdr->pkt_size);
drivers/soc/qcom/apr.c
73
return ret ? ret : hdr->pkt_size;
drivers/soc/qcom/cmd-db.c
112
static inline const void *rsc_to_entry_header(const struct rsc_hdr *hdr)
drivers/soc/qcom/cmd-db.c
114
u16 offset = le16_to_cpu(hdr->header_offset);
drivers/soc/qcom/cmd-db.c
120
rsc_offset(const struct rsc_hdr *hdr, const struct entry_header *ent)
drivers/soc/qcom/cmd-db.c
122
u16 offset = le16_to_cpu(hdr->data_offset);
drivers/soc/qcom/pmic_glink.c
150
struct pmic_glink_hdr *hdr;
drivers/soc/qcom/pmic_glink.c
154
if (len < sizeof(*hdr)) {
drivers/soc/qcom/pmic_glink.c
159
hdr = data;
drivers/soc/qcom/pmic_glink.c
163
if (client->id == le32_to_cpu(hdr->owner))
drivers/soc/qcom/pmic_glink_altmode.c
155
req.hdr.owner = cpu_to_le32(altmode->owner_id);
drivers/soc/qcom/pmic_glink_altmode.c
156
req.hdr.type = cpu_to_le32(PMIC_GLINK_REQ_RESP);
drivers/soc/qcom/pmic_glink_altmode.c
157
req.hdr.opcode = cpu_to_le32(USBC_CMD_WRITE_REQ);
drivers/soc/qcom/pmic_glink_altmode.c
36
struct pmic_glink_hdr hdr;
drivers/soc/qcom/pmic_glink_altmode.c
510
const struct pmic_glink_hdr *hdr = data;
drivers/soc/qcom/pmic_glink_altmode.c
514
opcode = le32_to_cpu(hdr->opcode) & 0xff;
drivers/soc/qcom/pmic_glink_altmode.c
515
svid = le32_to_cpu(hdr->opcode) >> 16;
drivers/soc/qcom/pmic_glink_altmode.c
60
struct pmic_glink_hdr hdr;
drivers/soc/qcom/pmic_glink_altmode.c
80
struct pmic_glink_hdr hdr;
drivers/soc/qcom/pmic_pdcharger_ulog.c
105
struct pmic_pdcharger_ulog_hdr *hdr = data;
drivers/soc/qcom/pmic_pdcharger_ulog.c
108
opcode = le32_to_cpu(hdr->opcode);
drivers/soc/qcom/pmic_pdcharger_ulog.c
39
struct pmic_pdcharger_ulog_hdr hdr;
drivers/soc/qcom/pmic_pdcharger_ulog.c
44
struct pmic_pdcharger_ulog_hdr hdr;
drivers/soc/qcom/pmic_pdcharger_ulog.c
56
.hdr = {
drivers/soc/qcom/qcom-geni-se.c
1194
struct se_fw_hdr *hdr;
drivers/soc/qcom/qcom-geni-se.c
1196
hdr = geni_find_protocol_fw(se->dev, fw, protocol);
drivers/soc/qcom/qcom-geni-se.c
1197
if (!hdr)
drivers/soc/qcom/qcom-geni-se.c
1200
fw_data = (const u32 *)((u8 *)hdr + le16_to_cpu(hdr->fw_offset));
drivers/soc/qcom/qcom-geni-se.c
1201
cfg_idx_arr = (const u8 *)hdr + le16_to_cpu(hdr->cfg_idx_offset);
drivers/soc/qcom/qcom-geni-se.c
1202
cfg_val_arr = (const u32 *)((u8 *)hdr + le16_to_cpu(hdr->cfg_val_offset));
drivers/soc/qcom/qcom-geni-se.c
1248
writel(le16_to_cpu(hdr->cfg_version), se->base + SE_GENI_INIT_CFG_REVISION);
drivers/soc/qcom/qcom-geni-se.c
1249
writel(le16_to_cpu(hdr->cfg_version), se->base + SE_GENI_S_INIT_CFG_REVISION);
drivers/soc/qcom/qcom-geni-se.c
1252
for (i = 0; i < le16_to_cpu(hdr->cfg_size_in_items); i++)
drivers/soc/qcom/qcom-geni-se.c
1269
geni_write_fw_revision(se, le16_to_cpu(hdr->serial_protocol), le16_to_cpu(hdr->fw_version));
drivers/soc/qcom/qcom-geni-se.c
1273
le16_to_cpu(hdr->fw_size_in_items) * sizeof(u32));
drivers/soc/qcom/qmi_encdec.c
848
struct qmi_header *hdr;
drivers/soc/qcom/qmi_encdec.c
863
msg = kzalloc(sizeof(*hdr) + *len, GFP_KERNEL);
drivers/soc/qcom/qmi_encdec.c
869
msglen = qmi_encode(ei, msg + sizeof(*hdr), c_struct, *len, 1);
drivers/soc/qcom/qmi_encdec.c
876
hdr = msg;
drivers/soc/qcom/qmi_encdec.c
877
hdr->type = type;
drivers/soc/qcom/qmi_encdec.c
878
hdr->txn_id = cpu_to_le16(txn_id);
drivers/soc/qcom/qmi_encdec.c
879
hdr->msg_id = cpu_to_le16(msg_id);
drivers/soc/qcom/qmi_encdec.c
880
hdr->msg_len = cpu_to_le16(msglen);
drivers/soc/qcom/qmi_encdec.c
882
*len = sizeof(*hdr) + msglen;
drivers/soc/qcom/qmi_interface.c
394
const struct qmi_header *hdr = buf;
drivers/soc/qcom/qmi_interface.c
402
if (handler->type == hdr->type &&
drivers/soc/qcom/qmi_interface.c
403
handler->msg_id == le16_to_cpu(hdr->msg_id))
drivers/soc/qcom/qmi_interface.c
476
const struct qmi_header *hdr;
drivers/soc/qcom/qmi_interface.c
481
if (len < sizeof(*hdr)) {
drivers/soc/qcom/qmi_interface.c
486
hdr = buf;
drivers/soc/qcom/qmi_interface.c
489
if (hdr->type == QMI_RESPONSE) {
drivers/soc/qcom/qmi_interface.c
491
txn = idr_find(&qmi->txns, le16_to_cpu(hdr->txn_id));
drivers/soc/qcom/qmi_interface.c
517
tmp_txn.id = le16_to_cpu(hdr->txn_id);
drivers/soc/qcom/smd-rpm.c
104
struct qcom_rpm_header hdr;
drivers/soc/qcom/smd-rpm.c
120
pkt->hdr.service_type = cpu_to_le32(RPM_SERVICE_TYPE_REQUEST);
drivers/soc/qcom/smd-rpm.c
121
pkt->hdr.length = cpu_to_le32(sizeof(struct qcom_rpm_request) + count);
drivers/soc/qcom/smd-rpm.c
153
const struct qcom_rpm_header *hdr = data;
drivers/soc/qcom/smd-rpm.c
154
size_t hdr_length = le32_to_cpu(hdr->length);
drivers/soc/qcom/smd-rpm.c
163
if (le32_to_cpu(hdr->service_type) != RPM_SERVICE_TYPE_REQUEST ||
drivers/soc/qcom/smem.c
408
struct smem_private_entry *hdr, *end;
drivers/soc/qcom/smem.c
417
hdr = phdr_to_first_uncached_entry(phdr);
drivers/soc/qcom/smem.c
424
while (hdr < end) {
drivers/soc/qcom/smem.c
425
if (hdr->canary != SMEM_PRIVATE_CANARY)
drivers/soc/qcom/smem.c
427
if (le16_to_cpu(hdr->item) == item)
drivers/soc/qcom/smem.c
430
hdr = uncached_entry_next(hdr);
drivers/soc/qcom/smem.c
433
if (WARN_ON((void *)hdr > p_end))
drivers/soc/qcom/smem.c
437
alloc_size = sizeof(*hdr) + ALIGN(size, 8);
drivers/soc/qcom/smem.c
438
if ((void *)hdr + alloc_size > cached) {
drivers/soc/qcom/smem.c
443
hdr->canary = SMEM_PRIVATE_CANARY;
drivers/soc/qcom/smem.c
444
hdr->item = cpu_to_le16(item);
drivers/soc/qcom/smem.c
445
hdr->size = cpu_to_le32(ALIGN(size, 8));
drivers/soc/qcom/smem.c
446
hdr->padding_data = cpu_to_le16(le32_to_cpu(hdr->size) - size);
drivers/soc/qcom/smem.c
447
hdr->padding_hdr = 0;
drivers/soc/qcom/trace-rpmh.h
51
__field(u32, hdr)
drivers/soc/qcom/trace-rpmh.h
62
__entry->hdr = h;
drivers/soc/qcom/trace-rpmh.h
75
__entry->hdr,
drivers/soc/qcom/wcnss_ctrl.c
106
struct wcnss_msg_hdr hdr;
drivers/soc/qcom/wcnss_ctrl.c
129
const struct wcnss_msg_hdr *hdr = data;
drivers/soc/qcom/wcnss_ctrl.c
131
switch (hdr->type) {
drivers/soc/qcom/wcnss_ctrl.c
162
dev_info(wcnss->dev, "unknown message type %d\n", hdr->type);
drivers/soc/qcom/wcnss_ctrl.c
227
req->hdr.type = WCNSS_DOWNLOAD_NV_REQ;
drivers/soc/qcom/wcnss_ctrl.c
228
req->hdr.len = sizeof(*req) + NV_FRAGMENT_SIZE;
drivers/soc/qcom/wcnss_ctrl.c
238
req->hdr.len = sizeof(*req) + left;
drivers/soc/qcom/wcnss_ctrl.c
243
ret = rpmsg_send(wcnss->channel, req, req->hdr.len);
drivers/soc/qcom/wcnss_ctrl.c
77
struct wcnss_msg_hdr hdr;
drivers/soc/qcom/wcnss_ctrl.c
93
struct wcnss_msg_hdr hdr;
drivers/soc/tegra/cbb/tegra194-cbb.c
1852
struct tegra194_cbb_packet_header hdr;
drivers/soc/tegra/cbb/tegra194-cbb.c
1855
hdr.lock = cbb->errlog0 & 0x1;
drivers/soc/tegra/cbb/tegra194-cbb.c
1856
hdr.opc = FIELD_GET(CBB_ERR_OPC, cbb->errlog0);
drivers/soc/tegra/cbb/tegra194-cbb.c
1857
hdr.errcode = FIELD_GET(CBB_ERR_ERRCODE, cbb->errlog0);
drivers/soc/tegra/cbb/tegra194-cbb.c
1858
hdr.len1 = FIELD_GET(CBB_ERR_LEN1, cbb->errlog0);
drivers/soc/tegra/cbb/tegra194-cbb.c
1859
hdr.format = (cbb->errlog0 >> 31);
drivers/soc/tegra/cbb/tegra194-cbb.c
1862
tegra194_cbb_trantype[hdr.opc]);
drivers/soc/tegra/cbb/tegra194-cbb.c
1864
tegra194_cbb_errors[hdr.errcode].code);
drivers/soc/tegra/cbb/tegra194-cbb.c
1866
tegra194_cbb_errors[hdr.errcode].source);
drivers/soc/tegra/cbb/tegra194-cbb.c
1868
tegra194_cbb_errors[hdr.errcode].desc);
drivers/soc/tegra/cbb/tegra194-cbb.c
1874
if (!strcmp(tegra194_cbb_errors[hdr.errcode].code, "SEC") ||
drivers/soc/tegra/cbb/tegra194-cbb.c
1875
!strcmp(tegra194_cbb_errors[hdr.errcode].code, "DEC") ||
drivers/soc/tegra/cbb/tegra194-cbb.c
1876
!strcmp(tegra194_cbb_errors[hdr.errcode].code, "UNS") ||
drivers/soc/tegra/cbb/tegra194-cbb.c
1877
!strcmp(tegra194_cbb_errors[hdr.errcode].code, "DISC")) {
drivers/soc/tegra/cbb/tegra194-cbb.c
1879
} else if (!strcmp(tegra194_cbb_errors[hdr.errcode].code, "SLV") &&
drivers/soc/tegra/cbb/tegra194-cbb.c
1900
tegra_cbb_print_err(file, "\t Packet header Lock\t: %d\n", hdr.lock);
drivers/soc/tegra/cbb/tegra194-cbb.c
1901
tegra_cbb_print_err(file, "\t Packet header Len1\t: %d\n", hdr.len1);
drivers/soc/tegra/cbb/tegra194-cbb.c
1903
if (hdr.format)
drivers/soc/ti/wkup_m3_ipc.c
115
struct wkup_m3_scale_data_header hdr;
drivers/soc/ti/wkup_m3_ipc.c
124
memcpy(&hdr, fw->data, sizeof(hdr));
drivers/soc/ti/wkup_m3_ipc.c
126
if (hdr.magic != WKUP_M3_SD_FW_MAGIC) {
drivers/soc/ti/wkup_m3_ipc.c
131
aux_base = wkup_m3_copy_aux_data(m3_ipc, fw->data + sizeof(hdr),
drivers/soc/ti/wkup_m3_ipc.c
132
fw->size - sizeof(hdr));
drivers/soc/ti/wkup_m3_ipc.c
134
val = (aux_base + hdr.sleep_offset);
drivers/soc/ti/wkup_m3_ipc.c
135
val |= ((aux_base + hdr.wake_offset) << 16);
drivers/staging/greybus/audio_apbridgea.c
103
req.hdr.type = AUDIO_APBRIDGEA_TYPE_START_TX;
drivers/staging/greybus/audio_apbridgea.c
104
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
116
req.hdr.type = AUDIO_APBRIDGEA_TYPE_STOP_TX;
drivers/staging/greybus/audio_apbridgea.c
117
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
129
req.hdr.type = AUDIO_APBRIDGEA_TYPE_SHUTDOWN_TX;
drivers/staging/greybus/audio_apbridgea.c
130
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
142
req.hdr.type = AUDIO_APBRIDGEA_TYPE_SET_RX_DATA_SIZE;
drivers/staging/greybus/audio_apbridgea.c
143
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
156
req.hdr.type = AUDIO_APBRIDGEA_TYPE_PREPARE_RX;
drivers/staging/greybus/audio_apbridgea.c
157
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
169
req.hdr.type = AUDIO_APBRIDGEA_TYPE_START_RX;
drivers/staging/greybus/audio_apbridgea.c
170
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
18
req.hdr.type = AUDIO_APBRIDGEA_TYPE_SET_CONFIG;
drivers/staging/greybus/audio_apbridgea.c
181
req.hdr.type = AUDIO_APBRIDGEA_TYPE_STOP_RX;
drivers/staging/greybus/audio_apbridgea.c
182
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
19
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
194
req.hdr.type = AUDIO_APBRIDGEA_TYPE_SHUTDOWN_RX;
drivers/staging/greybus/audio_apbridgea.c
195
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
36
req.hdr.type = AUDIO_APBRIDGEA_TYPE_REGISTER_CPORT;
drivers/staging/greybus/audio_apbridgea.c
37
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
57
req.hdr.type = AUDIO_APBRIDGEA_TYPE_UNREGISTER_CPORT;
drivers/staging/greybus/audio_apbridgea.c
58
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
76
req.hdr.type = AUDIO_APBRIDGEA_TYPE_SET_TX_DATA_SIZE;
drivers/staging/greybus/audio_apbridgea.c
77
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.c
90
req.hdr.type = AUDIO_APBRIDGEA_TYPE_PREPARE_TX;
drivers/staging/greybus/audio_apbridgea.c
91
req.hdr.i2s_port = cpu_to_le16(i2s_port);
drivers/staging/greybus/audio_apbridgea.h
104
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
108
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
112
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
117
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
121
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
125
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
129
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
71
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
78
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
84
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
90
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
95
struct audio_apbridgea_hdr hdr;
drivers/staging/greybus/audio_apbridgea.h
99
struct audio_apbridgea_hdr hdr;
drivers/staging/media/ipu7/ipu7-cpd.c
166
if (metadata->attr.hdr.type != CPD_METADATA_ATTR) {
drivers/staging/media/ipu7/ipu7-cpd.c
168
metadata->attr.hdr.type);
drivers/staging/media/ipu7/ipu7-cpd.c
171
if (metadata->attr.hdr.len != sizeof(struct ipu7_cpd_metadata_attr)) {
drivers/staging/media/ipu7/ipu7-cpd.c
173
metadata->attr.hdr.len);
drivers/staging/media/ipu7/ipu7-cpd.c
176
if (metadata->ipl.hdr.type != CPD_METADATA_IPL) {
drivers/staging/media/ipu7/ipu7-cpd.c
178
metadata->ipl.hdr.type);
drivers/staging/media/ipu7/ipu7-cpd.c
181
if (metadata->ipl.hdr.len != sizeof(struct ipu7_cpd_metadata_ipl)) {
drivers/staging/media/ipu7/ipu7-cpd.c
183
metadata->ipl.hdr.len);
drivers/staging/media/ipu7/ipu7-cpd.c
64
struct ipu7_cpd_metadata_hdr hdr;
drivers/staging/media/ipu7/ipu7-cpd.c
75
struct ipu7_cpd_metadata_hdr hdr;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1365
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1366
uint pkt_len = precv_frame->u.hdr.len;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1451
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1524
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1580
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1620
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1704
struct adapter *adapter = recv_frame->u.hdr.adapter;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1706
u8 *frame = recv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1707
u16 seq_ctrl = ((recv_frame->u.hdr.attrib.seq_num&0xffff) << 4) |
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1708
(recv_frame->u.hdr.attrib.frag_num & 0xf);
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1731
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1748
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1760
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1761
uint frame_len = precv_frame->u.hdr.len;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1764
struct adapter *adapter = precv_frame->u.hdr.adapter;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1784
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1812
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1839
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
1865
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
3892
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
3893
u32 packet_len = precv_frame->u.hdr.len;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
3933
bssid->rssi = precv_frame->u.hdr.attrib.phy_info.RecvSignalPower; /* in dBM.raw data */
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
3934
bssid->phy_info.signal_quality = precv_frame->u.hdr.attrib.phy_info.SignalQuality;/* in percentage */
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
3935
bssid->phy_info.signal_strength = precv_frame->u.hdr.attrib.phy_info.SignalStrength;/* in percentage */
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
422
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
439
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
462
if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum) {
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
467
psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
507
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
508
uint len = precv_frame->u.hdr.len;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
565
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
566
uint len = precv_frame->u.hdr.len;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
572
p = rtw_get_ie(pframe + sizeof(struct ieee80211_hdr_3addr) + _BEACON_IE_OFFSET_, WLAN_EID_EXT_SUPP_RATES, &ielen, precv_frame->u.hdr.len - sizeof(struct ieee80211_hdr_3addr) - _BEACON_IE_OFFSET_);
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
682
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
683
uint len = precv_frame->u.hdr.len;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
695
struct rx_pkt_attrib *prxattrib = &(precv_frame->u.hdr.attrib);
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
859
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
860
uint pkt_len = precv_frame->u.hdr.len;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
947
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
948
uint pkt_len = precv_frame->u.hdr.len;
drivers/staging/rtl8723bs/core/rtw_recv.c
103
if (precvframe->u.hdr.pkt) {
drivers/staging/rtl8723bs/core/rtw_recv.c
105
dev_kfree_skb_any(precvframe->u.hdr.pkt);
drivers/staging/rtl8723bs/core/rtw_recv.c
106
precvframe->u.hdr.pkt = NULL;
drivers/staging/rtl8723bs/core/rtw_recv.c
1090
pfhdr = &prframe->u.hdr;
drivers/staging/rtl8723bs/core/rtw_recv.c
1110
pnfhdr = &pnextrframe->u.hdr;
drivers/staging/rtl8723bs/core/rtw_recv.c
1166
pfhdr = &precv_frame->u.hdr;
drivers/staging/rtl8723bs/core/rtw_recv.c
1240
if ((prtnframe) && (prtnframe->u.hdr.attrib.privacy)) {
drivers/staging/rtl8723bs/core/rtw_recv.c
1260
struct sta_info *psta = rtw_get_stainfo(&padapter->stapriv, GetAddr2Ptr(precv_frame->u.hdr.rx_data));
drivers/staging/rtl8723bs/core/rtw_recv.c
1264
if (GetFrameSubType(precv_frame->u.hdr.rx_data) == WIFI_BEACON)
drivers/staging/rtl8723bs/core/rtw_recv.c
1266
else if (GetFrameSubType(precv_frame->u.hdr.rx_data) == WIFI_PROBEREQ)
drivers/staging/rtl8723bs/core/rtw_recv.c
1268
else if (GetFrameSubType(precv_frame->u.hdr.rx_data) == WIFI_PROBERSP) {
drivers/staging/rtl8723bs/core/rtw_recv.c
1269
if (!memcmp(padapter->eeprompriv.mac_addr, GetAddr1Ptr(precv_frame->u.hdr.rx_data), ETH_ALEN))
drivers/staging/rtl8723bs/core/rtw_recv.c
1271
else if (is_broadcast_mac_addr(GetAddr1Ptr(precv_frame->u.hdr.rx_data)) ||
drivers/staging/rtl8723bs/core/rtw_recv.c
1272
is_multicast_mac_addr(GetAddr1Ptr(precv_frame->u.hdr.rx_data)))
drivers/staging/rtl8723bs/core/rtw_recv.c
1291
u8 *ptr = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
1292
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
133
list_del_init(&precvframe->u.hdr.list);
drivers/staging/rtl8723bs/core/rtw_recv.c
134
padapter = precvframe->u.hdr.adapter;
drivers/staging/rtl8723bs/core/rtw_recv.c
1356
precv_frame->u.hdr.psta = psta;
drivers/staging/rtl8723bs/core/rtw_recv.c
1380
precv_frame->u.hdr.preorder_ctrl = &psta->recvreorder_ctrl[pattrib->priority];
drivers/staging/rtl8723bs/core/rtw_recv.c
1404
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
1405
u8 *ptr = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
1488
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
1490
u8 *ptr = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
1566
struct adapter *adapter = precvframe->u.hdr.adapter;
drivers/staging/rtl8723bs/core/rtw_recv.c
1568
u8 *ptr = precvframe->u.hdr.rx_data; /* point to frame_ctrl field */
drivers/staging/rtl8723bs/core/rtw_recv.c
1569
struct rx_pkt_attrib *pattrib = &precvframe->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
159
struct adapter *padapter = precvframe->u.hdr.adapter;
drivers/staging/rtl8723bs/core/rtw_recv.c
1590
len = precvframe->u.hdr.len - rmv_len;
drivers/staging/rtl8723bs/core/rtw_recv.c
162
if (precvframe->u.hdr.pkt) {
drivers/staging/rtl8723bs/core/rtw_recv.c
163
dev_kfree_skb_any(precvframe->u.hdr.pkt);/* free skb by driver */
drivers/staging/rtl8723bs/core/rtw_recv.c
1631
pattrib = &prframe->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
164
precvframe->u.hdr.pkt = NULL;
drivers/staging/rtl8723bs/core/rtw_recv.c
169
list_del_init(&(precvframe->u.hdr.list));
drivers/staging/rtl8723bs/core/rtw_recv.c
171
precvframe->u.hdr.len = 0;
drivers/staging/rtl8723bs/core/rtw_recv.c
1724
recvframe_pull(prframe, prframe->u.hdr.attrib.hdrlen);
drivers/staging/rtl8723bs/core/rtw_recv.c
1726
if (prframe->u.hdr.attrib.iv_len > 0)
drivers/staging/rtl8723bs/core/rtw_recv.c
1727
recvframe_pull(prframe, prframe->u.hdr.attrib.iv_len);
drivers/staging/rtl8723bs/core/rtw_recv.c
1729
a_len = prframe->u.hdr.len;
drivers/staging/rtl8723bs/core/rtw_recv.c
173
list_add_tail(&(precvframe->u.hdr.list), get_list_head(pfree_recv_queue));
drivers/staging/rtl8723bs/core/rtw_recv.c
1731
pdata = prframe->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
1774
rtw_recv_indicate_pkt(padapter, sub_pkt, &prframe->u.hdr.attrib);
drivers/staging/rtl8723bs/core/rtw_recv.c
1777
prframe->u.hdr.len = 0;
drivers/staging/rtl8723bs/core/rtw_recv.c
1817
struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
1832
pnextattrib = &pnextrframe->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
1849
list_del_init(&(prframe->u.hdr.list));
drivers/staging/rtl8723bs/core/rtw_recv.c
1851
list_add_tail(&(prframe->u.hdr.list), plist);
drivers/staging/rtl8723bs/core/rtw_recv.c
1865
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
1870
skb = precv_frame->u.hdr.pkt;
drivers/staging/rtl8723bs/core/rtw_recv.c
1874
skb->data = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
1876
skb_set_tail_pointer(skb, precv_frame->u.hdr.len);
drivers/staging/rtl8723bs/core/rtw_recv.c
1878
skb->len = precv_frame->u.hdr.len;
drivers/staging/rtl8723bs/core/rtw_recv.c
1883
precv_frame->u.hdr.pkt = NULL;
drivers/staging/rtl8723bs/core/rtw_recv.c
189
struct adapter *padapter = precvframe->u.hdr.adapter;
drivers/staging/rtl8723bs/core/rtw_recv.c
1922
pattrib = &prframe->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
193
list_del_init(&(precvframe->u.hdr.list));
drivers/staging/rtl8723bs/core/rtw_recv.c
1933
pattrib = &prframe->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
1937
list_del_init(&(prframe->u.hdr.list));
drivers/staging/rtl8723bs/core/rtw_recv.c
196
list_add_tail(&(precvframe->u.hdr.list), get_list_head(queue));
drivers/staging/rtl8723bs/core/rtw_recv.c
1981
struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
1982
struct recv_reorder_ctrl *preorder_ctrl = prframe->u.hdr.preorder_ctrl;
drivers/staging/rtl8723bs/core/rtw_recv.c
2178
struct rx_pkt_attrib *prxattrib = &rframe->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
2227
padapter = precvframe->u.hdr.adapter;
drivers/staging/rtl8723bs/core/rtw_recv.c
366
struct rx_pkt_attrib *prxattrib = &precvframe->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
393
datalen = precvframe->u.hdr.len-prxattrib->hdrlen-prxattrib->iv_len-prxattrib->icv_len-8;/* icv_len included the mic code */
drivers/staging/rtl8723bs/core/rtw_recv.c
394
pframe = precvframe->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
441
struct rx_pkt_attrib *prxattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
447
u8 *iv = precv_frame->u.hdr.rx_data+prxattrib->hdrlen;
drivers/staging/rtl8723bs/core/rtw_recv.c
517
ptr = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
518
pfhdr = &precv_frame->u.hdr;
drivers/staging/rtl8723bs/core/rtw_recv.c
569
signed int tid = precv_frame->u.hdr.attrib.priority;
drivers/staging/rtl8723bs/core/rtw_recv.c
571
u16 seq_ctrl = ((precv_frame->u.hdr.attrib.seq_num&0xffff) << 4) |
drivers/staging/rtl8723bs/core/rtw_recv.c
572
(precv_frame->u.hdr.attrib.frag_num & 0xf);
drivers/staging/rtl8723bs/core/rtw_recv.c
591
u8 *ptr = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
592
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
623
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
677
struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
69
precvframe->u.hdr.pkt_newalloc = NULL;
drivers/staging/rtl8723bs/core/rtw_recv.c
691
psta = prframe->u.hdr.psta;
drivers/staging/rtl8723bs/core/rtw_recv.c
70
precvframe->u.hdr.pkt = NULL;
drivers/staging/rtl8723bs/core/rtw_recv.c
706
u8 *ptr = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
708
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
72
precvframe->u.hdr.len = 0;
drivers/staging/rtl8723bs/core/rtw_recv.c
74
precvframe->u.hdr.adapter = padapter;
drivers/staging/rtl8723bs/core/rtw_recv.c
794
u8 *ptr = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
795
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
899
u8 *ptr = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_recv.c
900
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
950
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_recv.c
952
u8 *pframe = precv_frame->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_security.c
101
struct rx_pkt_attrib *prxattrib = &(((union recv_frame *)precvframe)->u.hdr.attrib);
drivers/staging/rtl8723bs/core/rtw_security.c
105
pframe = (unsigned char *)((union recv_frame *)precvframe)->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_security.c
116
length = ((union recv_frame *)precvframe)->u.hdr.len - prxattrib->hdrlen - prxattrib->iv_len;
drivers/staging/rtl8723bs/core/rtw_security.c
1210
struct rx_pkt_attrib *prxattrib = &((union recv_frame *)precvframe)->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_security.c
1214
pframe = (unsigned char *)((union recv_frame *)precvframe)->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_security.c
1271
length = ((union recv_frame *)precvframe)->u.hdr.len - prxattrib->hdrlen - prxattrib->iv_len;
drivers/staging/rtl8723bs/core/rtw_security.c
1285
struct rx_pkt_attrib *pattrib = &((union recv_frame *)precvframe)->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_security.c
1302
pframe = (unsigned char *)((union recv_frame *)precvframe)->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_security.c
516
struct rx_pkt_attrib *prxattrib = &((union recv_frame *)precvframe)->u.hdr.attrib;
drivers/staging/rtl8723bs/core/rtw_security.c
521
pframe = (unsigned char *)((union recv_frame *)precvframe)->u.hdr.rx_data;
drivers/staging/rtl8723bs/core/rtw_security.c
576
length = ((union recv_frame *)precvframe)->u.hdr.len - prxattrib->hdrlen - prxattrib->iv_len;
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
372
list_del_init(&(prframe->u.hdr.list));
drivers/staging/rtl8723bs/core/rtw_xmit.c
886
s32 rtw_make_wlanhdr(struct adapter *padapter, u8 *hdr, struct pkt_attrib *pattrib)
drivers/staging/rtl8723bs/core/rtw_xmit.c
890
struct ieee80211_hdr *pwlanhdr = (struct ieee80211_hdr *)hdr;
drivers/staging/rtl8723bs/core/rtw_xmit.c
897
memset(hdr, 0, WLANHDR_OFFSET);
drivers/staging/rtl8723bs/core/rtw_xmit.c
945
qc = (unsigned short *)(hdr + pattrib->hdrlen - 2);
drivers/staging/rtl8723bs/core/rtw_xmit.c
976
SetSeqNum(hdr, pattrib->seqnum);
drivers/staging/rtl8723bs/hal/rtl8723b_rxdesc.c
12
struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib;
drivers/staging/rtl8723bs/hal/rtl8723b_rxdesc.c
38
pattrib = &prframe->u.hdr.attrib;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
135
precvframe->u.hdr.psta = NULL;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
141
precvframe->u.hdr.psta = psta;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
148
precvframe->u.hdr.psta = psta;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
251
pattrib = &precvframe->u.hdr.attrib;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
300
precvframe->u.hdr.pkt = pkt_copy;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
304
precvframe->u.hdr.rx_head = pkt_copy->head;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
305
precvframe->u.hdr.rx_data = precvframe->u.hdr.rx_tail = pkt_copy->data;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
306
precvframe->u.hdr.rx_end = skb_end_pointer(pkt_copy);
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
332
u8 *pbuf_c2h = precvframe->u.hdr.rx_data;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
34
pattrib = &precvframe->u.hdr.attrib;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
343
rtl8723bs_c2h_packet_handler(padapter, precvframe->u.hdr.rx_data, pattrib->pkt_len);
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
77
struct adapter *padapter = precvframe->u.hdr.adapter;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
78
struct rx_pkt_attrib *pattrib = &precvframe->u.hdr.attrib;
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
83
u8 *wlanhdr = precvframe->u.hdr.rx_data;
drivers/staging/rtl8723bs/include/rtw_recv.h
313
struct recv_frame_hdr hdr;
drivers/staging/rtl8723bs/include/rtw_recv.h
355
return precvframe->u.hdr.rx_head;
drivers/staging/rtl8723bs/include/rtw_recv.h
369
precvframe->u.hdr.rx_data += sz;
drivers/staging/rtl8723bs/include/rtw_recv.h
371
if (precvframe->u.hdr.rx_data > precvframe->u.hdr.rx_tail) {
drivers/staging/rtl8723bs/include/rtw_recv.h
372
precvframe->u.hdr.rx_data -= sz;
drivers/staging/rtl8723bs/include/rtw_recv.h
376
precvframe->u.hdr.len -= sz;
drivers/staging/rtl8723bs/include/rtw_recv.h
378
return precvframe->u.hdr.rx_data;
drivers/staging/rtl8723bs/include/rtw_recv.h
393
prev_rx_tail = precvframe->u.hdr.rx_tail;
drivers/staging/rtl8723bs/include/rtw_recv.h
395
precvframe->u.hdr.rx_tail += sz;
drivers/staging/rtl8723bs/include/rtw_recv.h
397
if (precvframe->u.hdr.rx_tail > precvframe->u.hdr.rx_end) {
drivers/staging/rtl8723bs/include/rtw_recv.h
398
precvframe->u.hdr.rx_tail = prev_rx_tail;
drivers/staging/rtl8723bs/include/rtw_recv.h
402
precvframe->u.hdr.len += sz;
drivers/staging/rtl8723bs/include/rtw_recv.h
404
return precvframe->u.hdr.rx_tail;
drivers/staging/rtl8723bs/include/rtw_recv.h
420
precvframe->u.hdr.rx_tail -= sz;
drivers/staging/rtl8723bs/include/rtw_recv.h
422
if (precvframe->u.hdr.rx_tail < precvframe->u.hdr.rx_data) {
drivers/staging/rtl8723bs/include/rtw_recv.h
423
precvframe->u.hdr.rx_tail += sz;
drivers/staging/rtl8723bs/include/rtw_recv.h
427
precvframe->u.hdr.len -= sz;
drivers/staging/rtl8723bs/include/rtw_recv.h
429
return precvframe->u.hdr.rx_tail;
drivers/staging/rtl8723bs/include/rtw_recv.h
435
return precvframe->u.hdr.len;
drivers/staging/rtl8723bs/include/rtw_xmit.h
432
extern s32 rtw_make_wlanhdr(struct adapter *padapter, u8 *hdr, struct pkt_attrib *pattrib);
drivers/target/iscsi/cxgbit/cxgbit_cm.c
1725
struct cpl_abort_req_rss *hdr = cplhdr(skb);
drivers/target/iscsi/cxgbit/cxgbit_cm.c
1726
unsigned int tid = GET_TID(hdr);
drivers/target/iscsi/cxgbit/cxgbit_cm.c
1735
if (cxgb_is_neg_adv(hdr->status)) {
drivers/target/iscsi/cxgbit/cxgbit_cm.c
1737
__func__, hdr->status, tid);
drivers/target/iscsi/cxgbit/cxgbit_ddp.c
19
memcpy(ppod, &ttinfo->hdr, sizeof(struct cxgbi_pagepod_hdr));
drivers/target/iscsi/cxgbit/cxgbit_ddp.c
213
xferlen, &ttinfo->hdr);
drivers/target/iscsi/cxgbit/cxgbit_lro.h
52
void *hdr;
drivers/target/iscsi/cxgbit/cxgbit_main.c
256
pdu_cb->hdr = gl->va + offset;
drivers/target/iscsi/cxgbit/cxgbit_main.c
282
pdu_cb->hdr = gl->va + offset;
drivers/target/iscsi/cxgbit/cxgbit_target.c
1003
struct iscsi_data *hdr = (struct iscsi_data *)pdu_cb->hdr;
drivers/target/iscsi/cxgbit/cxgbit_target.c
1004
u32 data_offset = be32_to_cpu(hdr->offset);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1005
u32 data_len = ntoh24(hdr->dlength);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1010
u32 offset = be32_to_cpu(hdr->offset);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1014
cmd = iscsit_find_cmd_from_itt_or_dump(conn, hdr->itt, 0);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1023
cmd->data_sn = be32_to_cpu(hdr->datasn);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1025
rc = __iscsit_check_dataout_hdr(conn, (unsigned char *)hdr,
drivers/target/iscsi/cxgbit/cxgbit_target.c
1032
rc = iscsit_check_dataout_hdr(conn, (unsigned char *)hdr, &cmd);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1042
hdr->itt, hdr->offset, data_len,
drivers/target/iscsi/cxgbit/cxgbit_target.c
1043
hdr->datasn);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1080
rc = iscsit_check_dataout_payload(cmd, hdr, dcrc_err);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1091
struct iscsi_nopout *hdr = (struct iscsi_nopout *)pdu_cb->hdr;
drivers/target/iscsi/cxgbit/cxgbit_target.c
1096
ret = iscsit_setup_nop_out(conn, cmd, hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1114
" DataCRC error.\n", hdr->cmdsn);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1123
if (payload_length && hdr->ttt == cpu_to_be32(0xFFFFFFFF)) {
drivers/target/iscsi/cxgbit/cxgbit_target.c
1147
return iscsit_process_nop_out(conn, cmd, hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1159
struct iscsi_text *hdr = (struct iscsi_text *)pdu_cb->hdr;
drivers/target/iscsi/cxgbit/cxgbit_target.c
1164
rc = iscsit_setup_text_cmd(conn, cmd, hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1181
" DataCRC error.\n", hdr->cmdsn);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1201
return iscsit_process_text_cmd(conn, cmd, hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1205
pdu_cb->hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1211
struct iscsi_hdr *hdr = (struct iscsi_hdr *)pdu_cb->hdr;
drivers/target/iscsi/cxgbit/cxgbit_target.c
1214
u8 opcode = (hdr->opcode & ISCSI_OPCODE_MASK);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1229
if (hdr->ttt == cpu_to_be32(0xFFFFFFFF)) {
drivers/target/iscsi/cxgbit/cxgbit_target.c
1243
(unsigned char *)hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1246
if (hdr->ttt != cpu_to_be32(0xFFFFFFFF)) {
drivers/target/iscsi/cxgbit/cxgbit_target.c
1247
cmd = iscsit_find_cmd_from_itt(conn, hdr->itt);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1263
ret = iscsit_handle_logout_cmd(conn, cmd, (unsigned char *)hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1270
ret = iscsit_handle_snack(conn, (unsigned char *)hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1282
(unsigned char *)hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1290
struct iscsi_hdr *hdr = pdu_cb->hdr;
drivers/target/iscsi/cxgbit/cxgbit_target.c
1301
opcode = hdr->opcode & ISCSI_OPCODE_MASK;
drivers/target/iscsi/cxgbit/cxgbit_target.c
1309
(unsigned char *)hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
1330
memcpy(login_req, pdu_cb->hdr, sizeof(*login_req));
drivers/target/iscsi/cxgbit/cxgbit_target.c
1438
hpdu_cb->hdr = pdu_cb->hdr;
drivers/target/iscsi/cxgbit/cxgbit_target.c
856
cxgbit_handle_immediate_data(struct iscsit_cmd *cmd, struct iscsi_scsi_req *hdr,
drivers/target/iscsi/cxgbit/cxgbit_target.c
870
(unsigned char *)hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
875
(unsigned char *)hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
913
cxgbit_get_immediate_data(struct iscsit_cmd *cmd, struct iscsi_scsi_req *hdr,
drivers/target/iscsi/cxgbit/cxgbit_target.c
924
immed_ret = cxgbit_handle_immediate_data(cmd, hdr,
drivers/target/iscsi/cxgbit/cxgbit_target.c
934
(unsigned char *)hdr,
drivers/target/iscsi/cxgbit/cxgbit_target.c
935
hdr->cmdsn);
drivers/target/iscsi/cxgbit/cxgbit_target.c
971
struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)pdu_cb->hdr;
drivers/target/iscsi/cxgbit/cxgbit_target.c
975
rc = iscsit_setup_scsi_cmd(conn, cmd, (unsigned char *)hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
983
rc = iscsit_process_scsi_cmd(conn, cmd, hdr);
drivers/target/iscsi/cxgbit/cxgbit_target.c
992
return cxgbit_get_immediate_data(cmd, hdr, dump_payload);
drivers/target/iscsi/iscsi_target.c
1004
hdr = (struct iscsi_scsi_req *) buf;
drivers/target/iscsi/iscsi_target.c
1005
payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target.c
1009
if (!(hdr->flags & ISCSI_FLAG_CMD_WRITE) &&
drivers/target/iscsi/iscsi_target.c
1010
!(hdr->flags & ISCSI_FLAG_CMD_FINAL)) {
drivers/target/iscsi/iscsi_target.c
1017
if (((hdr->flags & ISCSI_FLAG_CMD_READ) ||
drivers/target/iscsi/iscsi_target.c
1018
(hdr->flags & ISCSI_FLAG_CMD_WRITE)) && !hdr->data_length) {
drivers/target/iscsi/iscsi_target.c
1029
hdr->flags &= ~ISCSI_FLAG_CMD_READ;
drivers/target/iscsi/iscsi_target.c
1030
hdr->flags &= ~ISCSI_FLAG_CMD_WRITE;
drivers/target/iscsi/iscsi_target.c
1034
" CDB: 0x%02x, Fixing up flags\n", hdr->cdb[0]);
drivers/target/iscsi/iscsi_target.c
1037
if (!(hdr->flags & ISCSI_FLAG_CMD_READ) &&
drivers/target/iscsi/iscsi_target.c
1038
!(hdr->flags & ISCSI_FLAG_CMD_WRITE) && (hdr->data_length != 0)) {
drivers/target/iscsi/iscsi_target.c
1046
if ((hdr->flags & ISCSI_FLAG_CMD_READ) &&
drivers/target/iscsi/iscsi_target.c
1047
(hdr->flags & ISCSI_FLAG_CMD_WRITE)) {
drivers/target/iscsi/iscsi_target.c
1053
if (hdr->opcode & ISCSI_OP_IMMEDIATE) {
drivers/target/iscsi/iscsi_target.c
1067
if ((be32_to_cpu(hdr->data_length) == payload_length) &&
drivers/target/iscsi/iscsi_target.c
1068
(!(hdr->flags & ISCSI_FLAG_CMD_FINAL))) {
drivers/target/iscsi/iscsi_target.c
1076
if (payload_length > be32_to_cpu(hdr->data_length)) {
drivers/target/iscsi/iscsi_target.c
1079
hdr->data_length);
drivers/target/iscsi/iscsi_target.c
1100
cdb = hdr->cdb;
drivers/target/iscsi/iscsi_target.c
1102
if (hdr->hlength) {
drivers/target/iscsi/iscsi_target.c
1103
ecdb_ahdr = (struct iscsi_ecdb_ahdr *) (hdr + 1);
drivers/target/iscsi/iscsi_target.c
1116
memcpy(cdb, hdr->cdb, ISCSI_CDB_SIZE);
drivers/target/iscsi/iscsi_target.c
1121
data_direction = (hdr->flags & ISCSI_FLAG_CMD_WRITE) ? DMA_TO_DEVICE :
drivers/target/iscsi/iscsi_target.c
1122
(hdr->flags & ISCSI_FLAG_CMD_READ) ? DMA_FROM_DEVICE :
drivers/target/iscsi/iscsi_target.c
1126
iscsi_task_attr = hdr->flags & ISCSI_FLAG_CMD_ATTR_MASK;
drivers/target/iscsi/iscsi_target.c
1147
cmd->immediate_cmd = ((hdr->opcode & ISCSI_OP_IMMEDIATE) ? 1 : 0);
drivers/target/iscsi/iscsi_target.c
1149
cmd->unsolicited_data = ((!(hdr->flags & ISCSI_FLAG_CMD_FINAL) &&
drivers/target/iscsi/iscsi_target.c
1150
(hdr->flags & ISCSI_FLAG_CMD_WRITE)) ? 1 : 0);
drivers/target/iscsi/iscsi_target.c
1154
conn->sess->init_task_tag = cmd->init_task_tag = hdr->itt;
drivers/target/iscsi/iscsi_target.c
1155
if (hdr->flags & ISCSI_FLAG_CMD_READ)
drivers/target/iscsi/iscsi_target.c
1159
cmd->cmd_sn = be32_to_cpu(hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
1160
cmd->exp_stat_sn = be32_to_cpu(hdr->exp_statsn);
drivers/target/iscsi/iscsi_target.c
1169
if (cdb != hdr->cdb)
drivers/target/iscsi/iscsi_target.c
1182
conn->sess->se_sess, be32_to_cpu(hdr->data_length),
drivers/target/iscsi/iscsi_target.c
1184
cmd->sense_buffer + 2, scsilun_to_int(&hdr->lun),
drivers/target/iscsi/iscsi_target.c
1188
" ExpXferLen: %u, Length: %u, CID: %hu\n", hdr->itt,
drivers/target/iscsi/iscsi_target.c
1189
hdr->cmdsn, be32_to_cpu(hdr->data_length), payload_length,
drivers/target/iscsi/iscsi_target.c
1198
if (cdb != hdr->cdb)
drivers/target/iscsi/iscsi_target.c
1242
struct iscsi_scsi_req *hdr)
drivers/target/iscsi/iscsi_target.c
1257
(unsigned char *)hdr, hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
1266
iscsit_ack_from_expstatsn(conn, be32_to_cpu(hdr->exp_statsn));
drivers/target/iscsi/iscsi_target.c
1301
iscsit_get_immediate_data(struct iscsit_cmd *cmd, struct iscsi_scsi_req *hdr,
drivers/target/iscsi/iscsi_target.c
1322
immed_ret = iscsit_handle_immediate_data(cmd, hdr,
drivers/target/iscsi/iscsi_target.c
1333
(unsigned char *)hdr, hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
1368
struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)buf;
drivers/target/iscsi/iscsi_target.c
1385
rc = iscsit_process_scsi_cmd(conn, cmd, hdr);
drivers/target/iscsi/iscsi_target.c
1394
return iscsit_get_immediate_data(cmd, hdr, dump_payload);
drivers/target/iscsi/iscsi_target.c
1443
struct iscsi_data *hdr = buf;
drivers/target/iscsi/iscsi_target.c
1452
hdr->itt, hdr->ttt, hdr->datasn, ntohl(hdr->offset),
drivers/target/iscsi/iscsi_target.c
1470
if ((be32_to_cpu(hdr->offset) + payload_length) > cmd->se_cmd.data_length) {
drivers/target/iscsi/iscsi_target.c
1472
be32_to_cpu(hdr->offset), payload_length,
drivers/target/iscsi/iscsi_target.c
1504
if (hdr->flags & ISCSI_FLAG_CMD_FINAL)
drivers/target/iscsi/iscsi_target.c
1521
if (hdr->flags & ISCSI_FLAG_CMD_FINAL &&
drivers/target/iscsi/iscsi_target.c
1546
struct iscsi_data *hdr = buf;
drivers/target/iscsi/iscsi_target.c
1548
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target.c
1564
cmd = iscsit_find_cmd_from_itt_or_dump(conn, hdr->itt, payload_length);
drivers/target/iscsi/iscsi_target.c
1579
struct iscsi_data *hdr)
drivers/target/iscsi/iscsi_target.c
1587
ntoh24(hdr->dlength));
drivers/target/iscsi/iscsi_target.c
1592
be32_to_cpu(hdr->offset), payload_length);
drivers/target/iscsi/iscsi_target.c
1629
hdr->itt, hdr->offset, payload_length,
drivers/target/iscsi/iscsi_target.c
1630
hdr->datasn, checksum, data_crc);
drivers/target/iscsi/iscsi_target.c
1643
iscsit_check_dataout_payload(struct iscsit_cmd *cmd, struct iscsi_data *hdr,
drivers/target/iscsi/iscsi_target.c
1652
rc = iscsit_check_post_dataout(cmd, (unsigned char *)hdr, data_crc_failed);
drivers/target/iscsi/iscsi_target.c
1684
struct iscsi_data *hdr = (struct iscsi_data *)buf;
drivers/target/iscsi/iscsi_target.c
1694
rc = iscsit_get_dataout(conn, cmd, hdr);
drivers/target/iscsi/iscsi_target.c
1700
return iscsit_check_dataout_payload(cmd, hdr, data_crc_failed);
drivers/target/iscsi/iscsi_target.c
1704
struct iscsi_nopout *hdr)
drivers/target/iscsi/iscsi_target.c
1706
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target.c
1708
if (!(hdr->flags & ISCSI_FLAG_CMD_FINAL)) {
drivers/target/iscsi/iscsi_target.c
1712
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
1715
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
1718
if (hdr->itt == RESERVED_ITT && !(hdr->opcode & ISCSI_OP_IMMEDIATE)) {
drivers/target/iscsi/iscsi_target.c
1723
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
1726
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
1736
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
1739
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
1744
hdr->itt == RESERVED_ITT ? "Response" : "Request",
drivers/target/iscsi/iscsi_target.c
1745
hdr->itt, hdr->ttt, hdr->cmdsn, hdr->exp_statsn,
drivers/target/iscsi/iscsi_target.c
1754
if (hdr->ttt == cpu_to_be32(0xFFFFFFFF)) {
drivers/target/iscsi/iscsi_target.c
1757
cmd->immediate_cmd = ((hdr->opcode & ISCSI_OP_IMMEDIATE) ?
drivers/target/iscsi/iscsi_target.c
1759
conn->sess->init_task_tag = cmd->init_task_tag = hdr->itt;
drivers/target/iscsi/iscsi_target.c
1761
cmd->cmd_sn = be32_to_cpu(hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
1762
cmd->exp_stat_sn = be32_to_cpu(hdr->exp_statsn);
drivers/target/iscsi/iscsi_target.c
1771
struct iscsi_nopout *hdr)
drivers/target/iscsi/iscsi_target.c
1778
if (hdr->itt != RESERVED_ITT) {
drivers/target/iscsi/iscsi_target.c
1781
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
1787
iscsit_ack_from_expstatsn(conn, be32_to_cpu(hdr->exp_statsn));
drivers/target/iscsi/iscsi_target.c
1789
if (hdr->opcode & ISCSI_OP_IMMEDIATE) {
drivers/target/iscsi/iscsi_target.c
1796
(unsigned char *)hdr, hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
1807
if (hdr->ttt != cpu_to_be32(0xFFFFFFFF)) {
drivers/target/iscsi/iscsi_target.c
1808
cmd_p = iscsit_find_cmd_from_ttt(conn, be32_to_cpu(hdr->ttt));
drivers/target/iscsi/iscsi_target.c
1836
struct iscsi_nopout *hdr = (struct iscsi_nopout *)buf;
drivers/target/iscsi/iscsi_target.c
1838
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target.c
1841
ret = iscsit_setup_nop_out(conn, cmd, hdr);
drivers/target/iscsi/iscsi_target.c
1847
if (payload_length && hdr->ttt == cpu_to_be32(0xFFFFFFFF)) {
drivers/target/iscsi/iscsi_target.c
1902
" DataCRC error.\n", hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
1925
return iscsit_process_nop_out(conn, cmd, hdr);
drivers/target/iscsi/iscsi_target.c
1962
struct iscsi_tm *hdr;
drivers/target/iscsi/iscsi_target.c
1966
hdr = (struct iscsi_tm *) buf;
drivers/target/iscsi/iscsi_target.c
1967
hdr->flags &= ~ISCSI_FLAG_CMD_FINAL;
drivers/target/iscsi/iscsi_target.c
1968
function = hdr->flags;
drivers/target/iscsi/iscsi_target.c
1972
" 0x%08x, CID: %hu\n", hdr->itt, hdr->cmdsn, function,
drivers/target/iscsi/iscsi_target.c
1973
hdr->rtt, hdr->refcmdsn, conn->cid);
drivers/target/iscsi/iscsi_target.c
1977
hdr->rtt != RESERVED_ITT)) {
drivers/target/iscsi/iscsi_target.c
1979
hdr->rtt = RESERVED_ITT;
drivers/target/iscsi/iscsi_target.c
1983
!(hdr->opcode & ISCSI_OP_IMMEDIATE)) {
drivers/target/iscsi/iscsi_target.c
1991
be32_to_cpu(hdr->refcmdsn) != ISCSI_RESERVED_TAG)
drivers/target/iscsi/iscsi_target.c
1992
hdr->refcmdsn = cpu_to_be32(ISCSI_RESERVED_TAG);
drivers/target/iscsi/iscsi_target.c
2005
scsilun_to_int(&hdr->lun),
drivers/target/iscsi/iscsi_target.c
2033
cmd->immediate_cmd = ((hdr->opcode & ISCSI_OP_IMMEDIATE) ? 1 : 0);
drivers/target/iscsi/iscsi_target.c
2034
cmd->init_task_tag = hdr->itt;
drivers/target/iscsi/iscsi_target.c
2036
cmd->cmd_sn = be32_to_cpu(hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
2037
cmd->exp_stat_sn = be32_to_cpu(hdr->exp_statsn);
drivers/target/iscsi/iscsi_target.c
2102
if (!(hdr->opcode & ISCSI_OP_IMMEDIATE)) {
drivers/target/iscsi/iscsi_target.c
2103
int cmdsn_ret = iscsit_sequence_cmd(conn, cmd, buf, hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
2113
iscsit_ack_from_expstatsn(conn, be32_to_cpu(hdr->exp_statsn));
drivers/target/iscsi/iscsi_target.c
2115
if (out_of_order_cmdsn || !(hdr->opcode & ISCSI_OP_IMMEDIATE))
drivers/target/iscsi/iscsi_target.c
2140
struct iscsi_text *hdr)
drivers/target/iscsi/iscsi_target.c
2142
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target.c
2149
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
2152
if (!(hdr->flags & ISCSI_FLAG_CMD_FINAL) ||
drivers/target/iscsi/iscsi_target.c
2153
(hdr->flags & ISCSI_FLAG_TEXT_CONTINUE)) {
drivers/target/iscsi/iscsi_target.c
2156
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
2160
" ExpStatSN: 0x%08x, Length: %u\n", hdr->itt, hdr->cmdsn,
drivers/target/iscsi/iscsi_target.c
2161
hdr->exp_statsn, payload_length);
drivers/target/iscsi/iscsi_target.c
2165
cmd->immediate_cmd = ((hdr->opcode & ISCSI_OP_IMMEDIATE) ? 1 : 0);
drivers/target/iscsi/iscsi_target.c
2166
conn->sess->init_task_tag = cmd->init_task_tag = hdr->itt;
drivers/target/iscsi/iscsi_target.c
2168
cmd->cmd_sn = be32_to_cpu(hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
2169
cmd->exp_stat_sn = be32_to_cpu(hdr->exp_statsn);
drivers/target/iscsi/iscsi_target.c
2180
struct iscsi_text *hdr)
drivers/target/iscsi/iscsi_target.c
2186
cmd->targ_xfer_tag = be32_to_cpu(hdr->ttt);
drivers/target/iscsi/iscsi_target.c
2218
iscsit_ack_from_expstatsn(conn, be32_to_cpu(hdr->exp_statsn));
drivers/target/iscsi/iscsi_target.c
2220
if (!(hdr->opcode & ISCSI_OP_IMMEDIATE)) {
drivers/target/iscsi/iscsi_target.c
2222
(unsigned char *)hdr, hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
2233
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
2241
struct iscsi_text *hdr = (struct iscsi_text *)buf;
drivers/target/iscsi/iscsi_target.c
2243
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target.c
2246
rc = iscsit_setup_text_cmd(conn, cmd, hdr);
drivers/target/iscsi/iscsi_target.c
2301
" DataCRC error.\n", hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
2316
return iscsit_process_text_cmd(conn, cmd, hdr);
drivers/target/iscsi/iscsi_target.c
2437
struct iscsi_logout *hdr;
drivers/target/iscsi/iscsi_target.c
2440
hdr = (struct iscsi_logout *) buf;
drivers/target/iscsi/iscsi_target.c
2441
reason_code = (hdr->flags & 0x7f);
drivers/target/iscsi/iscsi_target.c
2454
hdr->itt, hdr->cmdsn, hdr->exp_statsn, reason_code,
drivers/target/iscsi/iscsi_target.c
2455
hdr->cid, conn->cid);
drivers/target/iscsi/iscsi_target.c
2466
cmd->immediate_cmd = ((hdr->opcode & ISCSI_OP_IMMEDIATE) ? 1 : 0);
drivers/target/iscsi/iscsi_target.c
2467
conn->sess->init_task_tag = cmd->init_task_tag = hdr->itt;
drivers/target/iscsi/iscsi_target.c
2469
cmd->cmd_sn = be32_to_cpu(hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
2470
cmd->exp_stat_sn = be32_to_cpu(hdr->exp_statsn);
drivers/target/iscsi/iscsi_target.c
2471
cmd->logout_cid = be16_to_cpu(hdr->cid);
drivers/target/iscsi/iscsi_target.c
2481
be16_to_cpu(hdr->cid) == conn->cid))
drivers/target/iscsi/iscsi_target.c
2489
iscsit_ack_from_expstatsn(conn, be32_to_cpu(hdr->exp_statsn));
drivers/target/iscsi/iscsi_target.c
2501
cmdsn_ret = iscsit_sequence_cmd(conn, cmd, buf, hdr->cmdsn);
drivers/target/iscsi/iscsi_target.c
2516
struct iscsi_snack *hdr;
drivers/target/iscsi/iscsi_target.c
2518
hdr = (struct iscsi_snack *) buf;
drivers/target/iscsi/iscsi_target.c
2519
hdr->flags &= ~ISCSI_FLAG_CMD_FINAL;
drivers/target/iscsi/iscsi_target.c
2523
" CID: %hu\n", hdr->itt, hdr->exp_statsn, hdr->flags,
drivers/target/iscsi/iscsi_target.c
2524
hdr->begrun, hdr->runlength, conn->cid);
drivers/target/iscsi/iscsi_target.c
2536
switch (hdr->flags & ISCSI_FLAG_SNACK_TYPE_MASK) {
drivers/target/iscsi/iscsi_target.c
2539
hdr->itt,
drivers/target/iscsi/iscsi_target.c
2540
be32_to_cpu(hdr->ttt),
drivers/target/iscsi/iscsi_target.c
2541
be32_to_cpu(hdr->begrun),
drivers/target/iscsi/iscsi_target.c
2542
be32_to_cpu(hdr->runlength));
drivers/target/iscsi/iscsi_target.c
2544
return iscsit_handle_status_snack(conn, hdr->itt,
drivers/target/iscsi/iscsi_target.c
2545
be32_to_cpu(hdr->ttt),
drivers/target/iscsi/iscsi_target.c
2546
be32_to_cpu(hdr->begrun), be32_to_cpu(hdr->runlength));
drivers/target/iscsi/iscsi_target.c
2548
return iscsit_handle_data_ack(conn, be32_to_cpu(hdr->ttt),
drivers/target/iscsi/iscsi_target.c
2549
be32_to_cpu(hdr->begrun),
drivers/target/iscsi/iscsi_target.c
2550
be32_to_cpu(hdr->runlength));
drivers/target/iscsi/iscsi_target.c
2558
" error.\n", hdr->flags & 0x0f);
drivers/target/iscsi/iscsi_target.c
2579
struct iscsi_scsi_req *hdr,
drivers/target/iscsi/iscsi_target.c
2654
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
2659
(unsigned char *)hdr);
drivers/target/iscsi/iscsi_target.c
2728
struct iscsi_async *hdr;
drivers/target/iscsi/iscsi_target.c
2732
hdr = (struct iscsi_async *) cmd->pdu;
drivers/target/iscsi/iscsi_target.c
2733
hdr->opcode = ISCSI_OP_ASYNC_EVENT;
drivers/target/iscsi/iscsi_target.c
2734
hdr->flags = ISCSI_FLAG_CMD_FINAL;
drivers/target/iscsi/iscsi_target.c
2737
put_unaligned_be64(0xFFFFFFFFFFFFFFFFULL, &hdr->rsvd4[0]);
drivers/target/iscsi/iscsi_target.c
2739
hdr->statsn = cpu_to_be32(cmd->stat_sn);
drivers/target/iscsi/iscsi_target.c
2740
hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn);
drivers/target/iscsi/iscsi_target.c
2741
hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn));
drivers/target/iscsi/iscsi_target.c
2742
hdr->async_event = ISCSI_ASYNC_MSG_DROPPING_CONNECTION;
drivers/target/iscsi/iscsi_target.c
2743
hdr->param1 = cpu_to_be16(cmd->logout_cid);
drivers/target/iscsi/iscsi_target.c
2744
hdr->param2 = cpu_to_be16(conn->sess->sess_ops->DefaultTime2Wait);
drivers/target/iscsi/iscsi_target.c
2745
hdr->param3 = cpu_to_be16(conn->sess->sess_ops->DefaultTime2Retain);
drivers/target/iscsi/iscsi_target.c
2766
struct iscsi_datain *datain, struct iscsi_data_rsp *hdr,
drivers/target/iscsi/iscsi_target.c
2769
hdr->opcode = ISCSI_OP_SCSI_DATA_IN;
drivers/target/iscsi/iscsi_target.c
2770
hdr->flags = datain->flags;
drivers/target/iscsi/iscsi_target.c
2771
if (hdr->flags & ISCSI_FLAG_DATA_STATUS) {
drivers/target/iscsi/iscsi_target.c
2773
hdr->flags |= ISCSI_FLAG_DATA_OVERFLOW;
drivers/target/iscsi/iscsi_target.c
2774
hdr->residual_count = cpu_to_be32(cmd->se_cmd.residual_count);
drivers/target/iscsi/iscsi_target.c
2776
hdr->flags |= ISCSI_FLAG_DATA_UNDERFLOW;
drivers/target/iscsi/iscsi_target.c
2777
hdr->residual_count = cpu_to_be32(cmd->se_cmd.residual_count);
drivers/target/iscsi/iscsi_target.c
2780
hton24(hdr->dlength, datain->length);
drivers/target/iscsi/iscsi_target.c
2781
if (hdr->flags & ISCSI_FLAG_DATA_ACK)
drivers/target/iscsi/iscsi_target.c
2783
(struct scsi_lun *)&hdr->lun);
drivers/target/iscsi/iscsi_target.c
2785
put_unaligned_le64(0xFFFFFFFFFFFFFFFFULL, &hdr->lun);
drivers/target/iscsi/iscsi_target.c
2787
hdr->itt = cmd->init_task_tag;
drivers/target/iscsi/iscsi_target.c
2789
if (hdr->flags & ISCSI_FLAG_DATA_ACK)
drivers/target/iscsi/iscsi_target.c
2790
hdr->ttt = cpu_to_be32(cmd->targ_xfer_tag);
drivers/target/iscsi/iscsi_target.c
2792
hdr->ttt = cpu_to_be32(0xFFFFFFFF);
drivers/target/iscsi/iscsi_target.c
2794
hdr->statsn = cpu_to_be32(cmd->stat_sn);
drivers/target/iscsi/iscsi_target.c
2796
hdr->statsn = cpu_to_be32(0xFFFFFFFF);
drivers/target/iscsi/iscsi_target.c
2798
hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn);
drivers/target/iscsi/iscsi_target.c
2799
hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn));
drivers/target/iscsi/iscsi_target.c
2800
hdr->datasn = cpu_to_be32(datain->data_sn);
drivers/target/iscsi/iscsi_target.c
2801
hdr->offset = cpu_to_be32(datain->offset);
drivers/target/iscsi/iscsi_target.c
2805
cmd->init_task_tag, ntohl(hdr->statsn), ntohl(hdr->datasn),
drivers/target/iscsi/iscsi_target.c
2806
ntohl(hdr->offset), datain->length, conn->cid);
drivers/target/iscsi/iscsi_target.c
2812
struct iscsi_data_rsp *hdr = (struct iscsi_data_rsp *)&cmd->pdu[0];
drivers/target/iscsi/iscsi_target.c
2855
iscsit_build_datain_pdu(cmd, conn, &datain, hdr, set_statsn);
drivers/target/iscsi/iscsi_target.c
2872
struct iscsi_logout_rsp *hdr)
drivers/target/iscsi/iscsi_target.c
2945
hdr->opcode = ISCSI_OP_LOGOUT_RSP;
drivers/target/iscsi/iscsi_target.c
2946
hdr->flags |= ISCSI_FLAG_CMD_FINAL;
drivers/target/iscsi/iscsi_target.c
2947
hdr->response = cmd->logout_response;
drivers/target/iscsi/iscsi_target.c
2948
hdr->itt = cmd->init_task_tag;
drivers/target/iscsi/iscsi_target.c
2950
hdr->statsn = cpu_to_be32(cmd->stat_sn);
drivers/target/iscsi/iscsi_target.c
2953
hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn);
drivers/target/iscsi/iscsi_target.c
2954
hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn));
drivers/target/iscsi/iscsi_target.c
2958
cmd->init_task_tag, cmd->stat_sn, hdr->response,
drivers/target/iscsi/iscsi_target.c
2980
struct iscsi_nopin *hdr, bool nopout_response)
drivers/target/iscsi/iscsi_target.c
2982
hdr->opcode = ISCSI_OP_NOOP_IN;
drivers/target/iscsi/iscsi_target.c
2983
hdr->flags |= ISCSI_FLAG_CMD_FINAL;
drivers/target/iscsi/iscsi_target.c
2984
hton24(hdr->dlength, cmd->buf_ptr_size);
drivers/target/iscsi/iscsi_target.c
2986
put_unaligned_le64(0xFFFFFFFFFFFFFFFFULL, &hdr->lun);
drivers/target/iscsi/iscsi_target.c
2987
hdr->itt = cmd->init_task_tag;
drivers/target/iscsi/iscsi_target.c
2988
hdr->ttt = cpu_to_be32(cmd->targ_xfer_tag);
drivers/target/iscsi/iscsi_target.c
2991
hdr->statsn = cpu_to_be32(cmd->stat_sn);
drivers/target/iscsi/iscsi_target.c
2996
hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn);
drivers/target/iscsi/iscsi_target.c
2997
hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn));
drivers/target/iscsi/iscsi_target.c
3014
struct iscsi_nopin *hdr = (struct iscsi_nopin *)&cmd->pdu[0];
drivers/target/iscsi/iscsi_target.c
3017
iscsit_build_nopin_rsp(cmd, conn, hdr, false);
drivers/target/iscsi/iscsi_target.c
3020
" 0x%08x CID: %hu\n", hdr->ttt, cmd->stat_sn, conn->cid);
drivers/target/iscsi/iscsi_target.c
3037
struct iscsi_nopin *hdr = (struct iscsi_nopin *)&cmd->pdu[0];
drivers/target/iscsi/iscsi_target.c
3039
iscsit_build_nopin_rsp(cmd, conn, hdr, true);
drivers/target/iscsi/iscsi_target.c
3057
struct iscsi_r2t_rsp *hdr;
drivers/target/iscsi/iscsi_target.c
3064
hdr = (struct iscsi_r2t_rsp *) cmd->pdu;
drivers/target/iscsi/iscsi_target.c
3065
memset(hdr, 0, ISCSI_HDR_LEN);
drivers/target/iscsi/iscsi_target.c
3066
hdr->opcode = ISCSI_OP_R2T;
drivers/target/iscsi/iscsi_target.c
3067
hdr->flags |= ISCSI_FLAG_CMD_FINAL;
drivers/target/iscsi/iscsi_target.c
3069
(struct scsi_lun *)&hdr->lun);
drivers/target/iscsi/iscsi_target.c
3070
hdr->itt = cmd->init_task_tag;
drivers/target/iscsi/iscsi_target.c
3075
hdr->ttt = cpu_to_be32(r2t->targ_xfer_tag);
drivers/target/iscsi/iscsi_target.c
3076
hdr->statsn = cpu_to_be32(conn->stat_sn);
drivers/target/iscsi/iscsi_target.c
3077
hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn);
drivers/target/iscsi/iscsi_target.c
3078
hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn));
drivers/target/iscsi/iscsi_target.c
3079
hdr->r2tsn = cpu_to_be32(r2t->r2t_sn);
drivers/target/iscsi/iscsi_target.c
3080
hdr->data_offset = cpu_to_be32(r2t->offset);
drivers/target/iscsi/iscsi_target.c
3081
hdr->data_length = cpu_to_be32(r2t->xfer_len);
drivers/target/iscsi/iscsi_target.c
3086
r2t->targ_xfer_tag, ntohl(hdr->statsn), r2t->r2t_sn,
drivers/target/iscsi/iscsi_target.c
3194
bool inc_stat_sn, struct iscsi_scsi_rsp *hdr)
drivers/target/iscsi/iscsi_target.c
3201
memset(hdr, 0, ISCSI_HDR_LEN);
drivers/target/iscsi/iscsi_target.c
3202
hdr->opcode = ISCSI_OP_SCSI_CMD_RSP;
drivers/target/iscsi/iscsi_target.c
3203
hdr->flags |= ISCSI_FLAG_CMD_FINAL;
drivers/target/iscsi/iscsi_target.c
3205
hdr->flags |= ISCSI_FLAG_CMD_OVERFLOW;
drivers/target/iscsi/iscsi_target.c
3206
hdr->residual_count = cpu_to_be32(cmd->se_cmd.residual_count);
drivers/target/iscsi/iscsi_target.c
3208
hdr->flags |= ISCSI_FLAG_CMD_UNDERFLOW;
drivers/target/iscsi/iscsi_target.c
3209
hdr->residual_count = cpu_to_be32(cmd->se_cmd.residual_count);
drivers/target/iscsi/iscsi_target.c
3211
hdr->response = cmd->iscsi_response;
drivers/target/iscsi/iscsi_target.c
3212
hdr->cmd_status = cmd->se_cmd.scsi_status;
drivers/target/iscsi/iscsi_target.c
3213
hdr->itt = cmd->init_task_tag;
drivers/target/iscsi/iscsi_target.c
3214
hdr->statsn = cpu_to_be32(cmd->stat_sn);
drivers/target/iscsi/iscsi_target.c
3217
hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn);
drivers/target/iscsi/iscsi_target.c
3218
hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn));
drivers/target/iscsi/iscsi_target.c
3229
struct iscsi_scsi_rsp *hdr = (struct iscsi_scsi_rsp *)&cmd->pdu[0];
drivers/target/iscsi/iscsi_target.c
3234
iscsit_build_rsp_pdu(cmd, conn, inc_stat_sn, hdr);
drivers/target/iscsi/iscsi_target.c
3246
hton24(hdr->dlength, (u32)cmd->se_cmd.scsi_sense_length);
drivers/target/iscsi/iscsi_target.c
3285
struct iscsi_tm_rsp *hdr)
drivers/target/iscsi/iscsi_target.c
3289
hdr->opcode = ISCSI_OP_SCSI_TMFUNC_RSP;
drivers/target/iscsi/iscsi_target.c
3290
hdr->flags = ISCSI_FLAG_CMD_FINAL;
drivers/target/iscsi/iscsi_target.c
3291
hdr->response = iscsit_convert_tcm_tmr_rsp(se_tmr);
drivers/target/iscsi/iscsi_target.c
3292
hdr->itt = cmd->init_task_tag;
drivers/target/iscsi/iscsi_target.c
3294
hdr->statsn = cpu_to_be32(cmd->stat_sn);
drivers/target/iscsi/iscsi_target.c
3297
hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn);
drivers/target/iscsi/iscsi_target.c
3298
hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn));
drivers/target/iscsi/iscsi_target.c
3302
cmd->init_task_tag, cmd->stat_sn, hdr->response, conn->cid);
drivers/target/iscsi/iscsi_target.c
3309
struct iscsi_tm_rsp *hdr = (struct iscsi_tm_rsp *)&cmd->pdu[0];
drivers/target/iscsi/iscsi_target.c
3311
iscsit_build_task_mgt_rsp(cmd, conn, hdr);
drivers/target/iscsi/iscsi_target.c
3470
struct iscsi_text_rsp *hdr,
drivers/target/iscsi/iscsi_target.c
3483
hdr->flags = ISCSI_FLAG_CMD_FINAL;
drivers/target/iscsi/iscsi_target.c
3485
hdr->flags = ISCSI_FLAG_TEXT_CONTINUE;
drivers/target/iscsi/iscsi_target.c
3490
hdr->opcode = ISCSI_OP_TEXT_RSP;
drivers/target/iscsi/iscsi_target.c
3492
hton24(hdr->dlength, text_length);
drivers/target/iscsi/iscsi_target.c
3493
hdr->itt = cmd->init_task_tag;
drivers/target/iscsi/iscsi_target.c
3494
hdr->ttt = cpu_to_be32(cmd->targ_xfer_tag);
drivers/target/iscsi/iscsi_target.c
3496
hdr->statsn = cpu_to_be32(cmd->stat_sn);
drivers/target/iscsi/iscsi_target.c
3505
hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn);
drivers/target/iscsi/iscsi_target.c
3506
hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn));
drivers/target/iscsi/iscsi_target.c
3511
!!(hdr->flags & ISCSI_FLAG_CMD_FINAL),
drivers/target/iscsi/iscsi_target.c
3512
!!(hdr->flags & ISCSI_FLAG_TEXT_CONTINUE));
drivers/target/iscsi/iscsi_target.c
3522
struct iscsi_text_rsp *hdr = (struct iscsi_text_rsp *)cmd->pdu;
drivers/target/iscsi/iscsi_target.c
3525
text_length = iscsit_build_text_rsp(cmd, conn, hdr,
drivers/target/iscsi/iscsi_target.c
3537
struct iscsi_reject *hdr)
drivers/target/iscsi/iscsi_target.c
3539
hdr->opcode = ISCSI_OP_REJECT;
drivers/target/iscsi/iscsi_target.c
3540
hdr->reason = cmd->reject_reason;
drivers/target/iscsi/iscsi_target.c
3541
hdr->flags |= ISCSI_FLAG_CMD_FINAL;
drivers/target/iscsi/iscsi_target.c
3542
hton24(hdr->dlength, ISCSI_HDR_LEN);
drivers/target/iscsi/iscsi_target.c
3543
hdr->ffffffff = cpu_to_be32(0xffffffff);
drivers/target/iscsi/iscsi_target.c
3545
hdr->statsn = cpu_to_be32(cmd->stat_sn);
drivers/target/iscsi/iscsi_target.c
3546
hdr->exp_cmdsn = cpu_to_be32(conn->sess->exp_cmd_sn);
drivers/target/iscsi/iscsi_target.c
3547
hdr->max_cmdsn = cpu_to_be32((u32) atomic_read(&conn->sess->max_cmd_sn));
drivers/target/iscsi/iscsi_target.c
3556
struct iscsi_reject *hdr = (struct iscsi_reject *)&cmd->pdu[0];
drivers/target/iscsi/iscsi_target.c
3558
iscsit_build_reject(cmd, conn, hdr);
drivers/target/iscsi/iscsi_target.c
3561
" CID: %hu\n", ntohl(hdr->statsn), hdr->reason, conn->cid);
drivers/target/iscsi/iscsi_target.c
3922
struct iscsi_hdr *hdr = (struct iscsi_hdr *)buf;
drivers/target/iscsi/iscsi_target.c
3926
switch (hdr->opcode & ISCSI_OPCODE_MASK) {
drivers/target/iscsi/iscsi_target.c
3939
if (hdr->ttt == cpu_to_be32(0xFFFFFFFF)) {
drivers/target/iscsi/iscsi_target.c
3954
if (hdr->ttt != cpu_to_be32(0xFFFFFFFF)) {
drivers/target/iscsi/iscsi_target.c
3955
cmd = iscsit_find_cmd_from_itt(conn, hdr->itt);
drivers/target/iscsi/iscsi_target.c
3980
pr_err("Got unknown iSCSI OpCode: 0x%02x\n", hdr->opcode);
drivers/target/iscsi/iscsi_target.c
4013
struct iscsi_hdr *hdr;
drivers/target/iscsi/iscsi_target.c
4038
hdr = (struct iscsi_hdr *) buffer;
drivers/target/iscsi/iscsi_target.c
4039
if (hdr->hlength) {
drivers/target/iscsi/iscsi_target.c
4040
iov.iov_len = hdr->hlength * 4;
drivers/target/iscsi/iscsi_target.c
501
struct iscsi_hdr *hdr = (struct iscsi_hdr *)cmd->pdu;
drivers/target/iscsi/iscsi_target.c
513
*header_digest = iscsit_crc_buf(hdr, ISCSI_HDR_LEN, 0, NULL);
drivers/target/iscsi/iscsi_target.c
519
hdr->opcode, *header_digest);
drivers/target/iscsi/iscsi_target.c
546
data_buf_len, hdr->opcode, cmd->data_crc);
drivers/target/iscsi/iscsi_target.c
997
struct iscsi_scsi_req *hdr;
drivers/target/iscsi/iscsi_target_erl0.c
106
(seq->offset != be32_to_cpu(hdr->offset) ||
drivers/target/iscsi/iscsi_target_erl0.c
107
seq->data_sn != be32_to_cpu(hdr->datasn)))
drivers/target/iscsi/iscsi_target_erl0.c
112
seq->data_sn != be32_to_cpu(hdr->datasn))
drivers/target/iscsi/iscsi_target_erl0.c
127
" 0x%08x\n", hdr->offset, payload_length, hdr->datasn);
drivers/target/iscsi/iscsi_target_erl0.c
137
struct iscsi_data *hdr = (struct iscsi_data *) buf;
drivers/target/iscsi/iscsi_target_erl0.c
138
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target_erl0.c
141
if ((be32_to_cpu(hdr->offset) < cmd->seq_start_offset) ||
drivers/target/iscsi/iscsi_target_erl0.c
142
((be32_to_cpu(hdr->offset) + payload_length) > cmd->seq_end_offset)) {
drivers/target/iscsi/iscsi_target_erl0.c
146
be32_to_cpu(hdr->offset), payload_length, cmd->seq_start_offset,
drivers/target/iscsi/iscsi_target_erl0.c
166
if (hdr->flags & ISCSI_FLAG_CMD_FINAL) {
drivers/target/iscsi/iscsi_target_erl0.c
213
struct iscsi_data *hdr = (struct iscsi_data *) buf;
drivers/target/iscsi/iscsi_target_erl0.c
214
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target_erl0.c
229
if ((be32_to_cpu(hdr->offset) < cmd->seq_start_offset) ||
drivers/target/iscsi/iscsi_target_erl0.c
230
((be32_to_cpu(hdr->offset) + payload_length) > cmd->seq_end_offset)) {
drivers/target/iscsi/iscsi_target_erl0.c
234
be32_to_cpu(hdr->offset), payload_length, cmd->seq_start_offset,
drivers/target/iscsi/iscsi_target_erl0.c
244
seq = iscsit_get_seq_holder(cmd, be32_to_cpu(hdr->offset),
drivers/target/iscsi/iscsi_target_erl0.c
275
if (hdr->flags & ISCSI_FLAG_CMD_FINAL) {
drivers/target/iscsi/iscsi_target_erl0.c
341
struct iscsi_data *hdr = (struct iscsi_data *) buf;
drivers/target/iscsi/iscsi_target_erl0.c
342
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target_erl0.c
359
if (be32_to_cpu(hdr->datasn) > data_sn) {
drivers/target/iscsi/iscsi_target_erl0.c
362
be32_to_cpu(hdr->datasn), data_sn);
drivers/target/iscsi/iscsi_target_erl0.c
364
} else if (be32_to_cpu(hdr->datasn) < data_sn) {
drivers/target/iscsi/iscsi_target_erl0.c
367
cmd->init_task_tag, be32_to_cpu(hdr->datasn), data_sn);
drivers/target/iscsi/iscsi_target_erl0.c
392
struct iscsi_data *hdr = (struct iscsi_data *) buf;
drivers/target/iscsi/iscsi_target_erl0.c
393
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target_erl0.c
405
if (be32_to_cpu(hdr->offset) != cmd->write_data_done) {
drivers/target/iscsi/iscsi_target_erl0.c
408
be32_to_cpu(hdr->offset), cmd->write_data_done);
drivers/target/iscsi/iscsi_target_erl0.c
415
if (be32_to_cpu(hdr->offset) > seq->offset) {
drivers/target/iscsi/iscsi_target_erl0.c
418
be32_to_cpu(hdr->offset), seq->offset);
drivers/target/iscsi/iscsi_target_erl0.c
421
} else if (be32_to_cpu(hdr->offset) < seq->offset) {
drivers/target/iscsi/iscsi_target_erl0.c
424
cmd->init_task_tag, be32_to_cpu(hdr->offset),
drivers/target/iscsi/iscsi_target_erl0.c
444
be32_to_cpu(hdr->offset), payload_length) :
drivers/target/iscsi/iscsi_target_erl0.c
453
struct iscsi_data *hdr = (struct iscsi_data *) buf;
drivers/target/iscsi/iscsi_target_erl0.c
454
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target_erl0.c
456
pdu = iscsit_get_pdu_holder(cmd, be32_to_cpu(hdr->offset),
drivers/target/iscsi/iscsi_target_erl0.c
471
be32_to_cpu(hdr->offset), payload_length);
drivers/target/iscsi/iscsi_target_erl0.c
539
struct iscsi_data *hdr = (struct iscsi_data *) buf;
drivers/target/iscsi/iscsi_target_erl0.c
540
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target_erl0.c
545
if (iscsit_dataout_update_r2t(cmd, be32_to_cpu(hdr->offset),
drivers/target/iscsi/iscsi_target_erl0.c
553
be32_to_cpu(hdr->datasn),
drivers/target/iscsi/iscsi_target_erl0.c
554
(hdr->flags & ISCSI_FLAG_CMD_FINAL));
drivers/target/iscsi/iscsi_target_erl0.c
580
be32_to_cpu(hdr->offset),
drivers/target/iscsi/iscsi_target_erl0.c
588
cmd, be32_to_cpu(hdr->datasn),
drivers/target/iscsi/iscsi_target_erl0.c
589
(hdr->flags & ISCSI_FLAG_CMD_FINAL));
drivers/target/iscsi/iscsi_target_erl0.c
605
be32_to_cpu(hdr->offset),
drivers/target/iscsi/iscsi_target_erl0.c
613
cmd, be32_to_cpu(hdr->datasn),
drivers/target/iscsi/iscsi_target_erl0.c
614
(hdr->flags & ISCSI_FLAG_CMD_FINAL));
drivers/target/iscsi/iscsi_target_erl0.c
649
struct iscsi_data *hdr = (struct iscsi_data *) buf;
drivers/target/iscsi/iscsi_target_erl0.c
650
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target_erl0.c
673
return iscsit_recover_dataout_sequence(cmd, be32_to_cpu(hdr->offset),
drivers/target/iscsi/iscsi_target_erl0.c
70
struct iscsi_data *hdr = (struct iscsi_data *) buf;
drivers/target/iscsi/iscsi_target_erl0.c
71
u32 payload_length = ntoh24(hdr->dlength);
drivers/target/iscsi/iscsi_target_erl0.c
87
cmd->write_data_done != be32_to_cpu(hdr->offset))
drivers/target/iscsi/iscsi_target_erl0.c
94
seq = iscsit_get_seq_holder(cmd, be32_to_cpu(hdr->offset),
drivers/target/iscsi/iscsi_target_tmr.c
114
struct iscsi_tm *hdr = (struct iscsi_tm *) buf;
drivers/target/iscsi/iscsi_target_tmr.c
120
hdr->itt, hdr->rtt, hdr->exp_datasn, conn->cid);
drivers/target/iscsi/iscsi_target_tmr.c
128
ret = iscsit_find_cmd_for_recovery(conn->sess, &ref_cmd, &cr, hdr->rtt);
drivers/target/iscsi/iscsi_target_tmr.c
135
" connection recovery command list.\n", hdr->rtt);
drivers/target/iscsi/iscsi_target_tmr.c
157
ref_lun = scsilun_to_int(&hdr->lun);
drivers/target/iscsi/iscsi_target_tmr.c
165
se_tmr->ref_task_tag = (__force u32)hdr->rtt;
drivers/target/iscsi/iscsi_target_tmr.c
167
tmr_req->exp_data_sn = be32_to_cpu(hdr->exp_datasn);
drivers/target/iscsi/iscsi_target_tmr.c
38
struct iscsi_tm *hdr = (struct iscsi_tm *) buf;
drivers/target/iscsi/iscsi_target_tmr.c
40
ref_cmd = iscsit_find_cmd_from_itt(conn, hdr->rtt);
drivers/target/iscsi/iscsi_target_tmr.c
43
" %hu.\n", hdr->rtt, conn->cid);
drivers/target/iscsi/iscsi_target_tmr.c
44
return (iscsi_sna_gte(be32_to_cpu(hdr->refcmdsn), conn->sess->exp_cmd_sn) &&
drivers/target/iscsi/iscsi_target_tmr.c
45
iscsi_sna_lte(be32_to_cpu(hdr->refcmdsn), (u32) atomic_read(&conn->sess->max_cmd_sn))) ?
drivers/target/iscsi/iscsi_target_tmr.c
48
if (ref_cmd->cmd_sn != be32_to_cpu(hdr->refcmdsn)) {
drivers/target/iscsi/iscsi_target_tmr.c
51
hdr->refcmdsn, ref_cmd->cmd_sn);
drivers/target/iscsi/iscsi_target_tmr.c
55
se_tmr->ref_task_tag = (__force u32)hdr->rtt;
drivers/target/iscsi/iscsi_target_tmr.c
57
tmr_req->exp_data_sn = be32_to_cpu(hdr->exp_datasn);
drivers/target/iscsi/iscsi_target_util.c
1201
struct iscsi_login_rsp *hdr;
drivers/target/iscsi/iscsi_target_util.c
1209
hdr = (struct iscsi_login_rsp *)&login->rsp[0];
drivers/target/iscsi/iscsi_target_util.c
1210
hdr->opcode = ISCSI_OP_LOGIN_RSP;
drivers/target/iscsi/iscsi_target_util.c
1211
hdr->status_class = status_class;
drivers/target/iscsi/iscsi_target_util.c
1212
hdr->status_detail = status_detail;
drivers/target/iscsi/iscsi_target_util.c
1213
hdr->itt = conn->login_itt;
drivers/target/target_core_user.c
1092
tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_CMD);
drivers/target/target_core_user.c
1115
entry->hdr.cmd_id = tcmu_cmd->cmd_id;
drivers/target/target_core_user.c
1117
tcmu_hdr_set_len(&entry->hdr.len_op, command_size);
drivers/target/target_core_user.c
1184
tcmu_hdr_set_op(&entry->hdr.len_op, TCMU_OP_TMR);
drivers/target/target_core_user.c
1185
tcmu_hdr_set_len(&entry->hdr.len_op, cmd_size);
drivers/target/target_core_user.c
1339
entry->hdr.cmd_id);
drivers/target/target_core_user.c
1349
if (entry->hdr.uflags & TCMU_UFLAG_UNKNOWN_OP) {
drivers/target/target_core_user.c
1358
(entry->hdr.uflags & TCMU_UFLAG_READ_LEN) && entry->rsp.read_len) {
drivers/target/target_core_user.c
1473
if (tcmu_hdr_get_op(entry->hdr.len_op) == TCMU_OP_PAD ||
drivers/target/target_core_user.c
1474
tcmu_hdr_get_op(entry->hdr.len_op) == TCMU_OP_TMR) {
drivers/target/target_core_user.c
1476
tcmu_hdr_get_len(entry->hdr.len_op),
drivers/target/target_core_user.c
1480
WARN_ON(tcmu_hdr_get_op(entry->hdr.len_op) != TCMU_OP_CMD);
drivers/target/target_core_user.c
1482
keep_buf = !!(entry->hdr.uflags & TCMU_UFLAG_KEEP_BUF);
drivers/target/target_core_user.c
1484
cmd = xa_load(&udev->commands, entry->hdr.cmd_id);
drivers/target/target_core_user.c
1486
cmd = xa_erase(&udev->commands, entry->hdr.cmd_id);
drivers/target/target_core_user.c
1489
entry->hdr.cmd_id);
drivers/target/target_core_user.c
1498
tcmu_hdr_get_len(entry->hdr.len_op),
drivers/target/target_core_user.c
2083
struct sk_buff **buf, void **hdr)
drivers/target/target_core_user.c
2110
*hdr = msg_header;
drivers/target/target_core_user.c
957
struct tcmu_cmd_entry_hdr *hdr;
drivers/target/target_core_user.c
965
hdr = udev->cmdr + cmd_head;
drivers/target/target_core_user.c
966
tcmu_hdr_set_op(&hdr->len_op, TCMU_OP_PAD);
drivers/target/target_core_user.c
967
tcmu_hdr_set_len(&hdr->len_op, pad_size);
drivers/target/target_core_user.c
968
hdr->cmd_id = 0; /* not used for PAD */
drivers/target/target_core_user.c
969
hdr->kflags = 0;
drivers/target/target_core_user.c
970
hdr->uflags = 0;
drivers/target/target_core_user.c
971
tcmu_flush_dcache_range(hdr, sizeof(*hdr));
drivers/tee/qcomtee/async.c
50
struct qcomtee_async_msg_hdr hdr;
drivers/thermal/imx_sc_thermal.c
37
struct imx_sc_rpc_msg hdr;
drivers/thermal/imx_sc_thermal.c
47
struct imx_sc_rpc_msg *hdr = &msg.hdr;
drivers/thermal/imx_sc_thermal.c
54
hdr->ver = IMX_SC_RPC_VERSION;
drivers/thermal/imx_sc_thermal.c
55
hdr->svc = IMX_SC_RPC_SVC_MISC;
drivers/thermal/imx_sc_thermal.c
56
hdr->func = IMX_SC_MISC_FUNC_GET_TEMP;
drivers/thermal/imx_sc_thermal.c
57
hdr->size = 2;
drivers/thermal/intel/intel_hfi.c
123
void *hdr;
drivers/thermal/intel/intel_hfi.c
347
hfi_instance->hdr = hfi_instance->local_table +
drivers/thermal/intel/intel_hfi.c
351
hfi_instance->data = hfi_instance->hdr + hfi_features.hdr_size;
drivers/thermal/intel/intel_hfi.c
447
if (hfi_instance->hdr)
drivers/thermal/intel/intel_hfi.c
523
if (!hfi_instance->hdr)
drivers/thermal/thermal_netlink.c
103
hdr = genlmsg_put(skb, 0, 0, &thermal_genl_family, 0,
drivers/thermal/thermal_netlink.c
105
if (!hdr)
drivers/thermal/thermal_netlink.c
114
genlmsg_end(skb, hdr);
drivers/thermal/thermal_netlink.c
120
genlmsg_cancel(skb, hdr);
drivers/thermal/thermal_netlink.c
319
void *hdr;
drivers/thermal/thermal_netlink.c
329
hdr = genlmsg_put(msg, 0, 0, &thermal_genl_family, 0, event);
drivers/thermal/thermal_netlink.c
330
if (!hdr)
drivers/thermal/thermal_netlink.c
337
genlmsg_end(msg, hdr);
drivers/thermal/thermal_netlink.c
344
genlmsg_cancel(msg, hdr);
drivers/thermal/thermal_netlink.c
781
void *hdr;
drivers/thermal/thermal_netlink.c
783
hdr = genlmsg_put(skb, 0, 0, &thermal_genl_family, 0, cmd);
drivers/thermal/thermal_netlink.c
784
if (!hdr)
drivers/thermal/thermal_netlink.c
791
genlmsg_end(skb, hdr);
drivers/thermal/thermal_netlink.c
796
genlmsg_cancel(skb, hdr);
drivers/thermal/thermal_netlink.c
806
void *hdr;
drivers/thermal/thermal_netlink.c
815
hdr = genlmsg_put_reply(msg, info, &thermal_genl_family, 0, cmd);
drivers/thermal/thermal_netlink.c
816
if (!hdr)
drivers/thermal/thermal_netlink.c
823
genlmsg_end(msg, hdr);
drivers/thermal/thermal_netlink.c
828
genlmsg_cancel(msg, hdr);
drivers/thermal/thermal_netlink.c
94
void *hdr;
drivers/thunderbolt/icm.c
1013
icm_fr_xdomain_disconnected(struct tb *tb, const struct icm_pkg_header *hdr)
drivers/thunderbolt/icm.c
1016
(const struct icm_fr_event_xdomain_disconnected *)hdr;
drivers/thunderbolt/icm.c
1042
.hdr.code = ICM_DRIVER_READY,
drivers/thunderbolt/icm.c
1061
*rpm = !!(reply.hdr.flags & ICM_TR_FLAGS_RTD3);
drivers/thunderbolt/icm.c
1074
request.hdr.code = ICM_APPROVE_DEVICE;
drivers/thunderbolt/icm.c
1085
if (reply.hdr.flags & ICM_FLAGS_ERROR) {
drivers/thunderbolt/icm.c
1101
request.hdr.code = ICM_ADD_DEVICE_KEY;
drivers/thunderbolt/icm.c
1113
if (reply.hdr.flags & ICM_FLAGS_ERROR) {
drivers/thunderbolt/icm.c
1130
request.hdr.code = ICM_CHALLENGE_DEVICE;
drivers/thunderbolt/icm.c
1142
if (reply.hdr.flags & ICM_FLAGS_ERROR)
drivers/thunderbolt/icm.c
1144
if (reply.hdr.flags & ICM_FLAGS_NO_KEY)
drivers/thunderbolt/icm.c
116
const struct icm_pkg_header *hdr);
drivers/thunderbolt/icm.c
1161
request.hdr.code = ICM_APPROVE_XDOMAIN;
drivers/thunderbolt/icm.c
1176
if (reply.hdr.flags & ICM_FLAGS_ERROR)
drivers/thunderbolt/icm.c
118
const struct icm_pkg_header *hdr);
drivers/thunderbolt/icm.c
1191
request.hdr.code = ICM_DISCONNECT_XDOMAIN;
drivers/thunderbolt/icm.c
120
const struct icm_pkg_header *hdr);
drivers/thunderbolt/icm.c
1203
if (reply.hdr.flags & ICM_FLAGS_ERROR)
drivers/thunderbolt/icm.c
122
const struct icm_pkg_header *hdr);
drivers/thunderbolt/icm.c
1229
__icm_tr_device_connected(struct tb *tb, const struct icm_pkg_header *hdr,
drivers/thunderbolt/icm.c
123
void (*rtd3_veto)(struct tb *tb, const struct icm_pkg_header *hdr);
drivers/thunderbolt/icm.c
1233
(const struct icm_tr_event_device_connected *)hdr;
drivers/thunderbolt/icm.c
1247
if (pkg->hdr.packet_id)
drivers/thunderbolt/icm.c
1252
security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >>
drivers/thunderbolt/icm.c
1255
dual_lane = pkg->hdr.flags & ICM_FLAGS_DUAL_LANE;
drivers/thunderbolt/icm.c
1256
speed_gen3 = pkg->hdr.flags & ICM_FLAGS_SPEED_GEN3;
drivers/thunderbolt/icm.c
1325
icm_tr_device_connected(struct tb *tb, const struct icm_pkg_header *hdr)
drivers/thunderbolt/icm.c
1327
__icm_tr_device_connected(tb, hdr, false);
drivers/thunderbolt/icm.c
1331
icm_tr_device_disconnected(struct tb *tb, const struct icm_pkg_header *hdr)
drivers/thunderbolt/icm.c
1334
(const struct icm_tr_event_device_disconnected *)hdr;
drivers/thunderbolt/icm.c
1356
icm_tr_xdomain_connected(struct tb *tb, const struct icm_pkg_header *hdr)
drivers/thunderbolt/icm.c
1359
(const struct icm_tr_event_xdomain_connected *)hdr;
drivers/thunderbolt/icm.c
1410
icm_tr_xdomain_disconnected(struct tb *tb, const struct icm_pkg_header *hdr)
drivers/thunderbolt/icm.c
1413
(const struct icm_tr_event_xdomain_disconnected *)hdr;
drivers/thunderbolt/icm.c
1524
.hdr.code = ICM_DRIVER_READY,
drivers/thunderbolt/icm.c
1540
*rpm = !!(reply.hdr.flags & ICM_AR_FLAGS_RTD3);
drivers/thunderbolt/icm.c
1549
.hdr = { .code = ICM_GET_ROUTE },
drivers/thunderbolt/icm.c
1560
if (reply.hdr.flags & ICM_FLAGS_ERROR)
drivers/thunderbolt/icm.c
1571
.hdr = { .code = ICM_PREBOOT_ACL },
drivers/thunderbolt/icm.c
1581
if (reply.hdr.flags & ICM_FLAGS_ERROR)
drivers/thunderbolt/icm.c
1609
.hdr = {
drivers/thunderbolt/icm.c
1642
if (reply.hdr.flags & ICM_FLAGS_ERROR)
drivers/thunderbolt/icm.c
1654
.hdr.code = ICM_DRIVER_READY,
drivers/thunderbolt/icm.c
1689
icm_icl_device_connected(struct tb *tb, const struct icm_pkg_header *hdr)
drivers/thunderbolt/icm.c
1691
__icm_tr_device_connected(tb, hdr, true);
drivers/thunderbolt/icm.c
1694
static void icm_icl_rtd3_veto(struct tb *tb, const struct icm_pkg_header *hdr)
drivers/thunderbolt/icm.c
1697
(const struct icm_icl_event_rtd3_veto *)hdr;
drivers/thunderbolt/icm.c
2233
auth->reply.hdr.flags, auth->reply.status);
drivers/thunderbolt/icm.c
2254
auth->request.hdr.code = ICM_USB4_SWITCH_OP;
drivers/thunderbolt/icm.c
2318
request.hdr.code = ICM_USB4_SWITCH_OP;
drivers/thunderbolt/icm.c
2339
if (reply.hdr.flags & ICM_FLAGS_ERROR)
drivers/thunderbolt/icm.c
2371
tb_route(sw), auth->reply.hdr.flags, auth->reply.status);
drivers/thunderbolt/icm.c
2372
if (auth->reply.hdr.flags & ICM_FLAGS_ERROR)
drivers/thunderbolt/icm.c
288
const struct icm_pkg_header *hdr = pkg->buffer;
drivers/thunderbolt/icm.c
290
if (hdr->packet_id < req->npackets) {
drivers/thunderbolt/icm.c
291
size_t offset = hdr->packet_id * req->response_size;
drivers/thunderbolt/icm.c
296
return hdr->packet_id == hdr->total_packets - 1;
drivers/thunderbolt/icm.c
424
.hdr = { .code = ICM_GET_TOPOLOGY },
drivers/thunderbolt/icm.c
482
.hdr.code = ICM_DRIVER_READY,
drivers/thunderbolt/icm.c
506
request.hdr.code = ICM_APPROVE_DEVICE;
drivers/thunderbolt/icm.c
517
if (reply.hdr.flags & ICM_FLAGS_ERROR) {
drivers/thunderbolt/icm.c
533
request.hdr.code = ICM_ADD_DEVICE_KEY;
drivers/thunderbolt/icm.c
544
if (reply.hdr.flags & ICM_FLAGS_ERROR) {
drivers/thunderbolt/icm.c
561
request.hdr.code = ICM_CHALLENGE_DEVICE;
drivers/thunderbolt/icm.c
572
if (reply.hdr.flags & ICM_FLAGS_ERROR)
drivers/thunderbolt/icm.c
574
if (reply.hdr.flags & ICM_FLAGS_NO_KEY)
drivers/thunderbolt/icm.c
591
request.hdr.code = ICM_APPROVE_XDOMAIN;
drivers/thunderbolt/icm.c
606
if (reply.hdr.flags & ICM_FLAGS_ERROR)
drivers/thunderbolt/icm.c
745
icm_fr_device_connected(struct tb *tb, const struct icm_pkg_header *hdr)
drivers/thunderbolt/icm.c
748
(const struct icm_fr_event_device_connected *)hdr;
drivers/thunderbolt/icm.c
765
security_level = (pkg->hdr.flags & ICM_FLAGS_SLEVEL_MASK) >>
drivers/thunderbolt/icm.c
768
dual_lane = pkg->hdr.flags & ICM_FLAGS_DUAL_LANE;
drivers/thunderbolt/icm.c
769
speed_gen3 = pkg->hdr.flags & ICM_FLAGS_SPEED_GEN3;
drivers/thunderbolt/icm.c
893
icm_fr_device_disconnected(struct tb *tb, const struct icm_pkg_header *hdr)
drivers/thunderbolt/icm.c
896
(const struct icm_fr_event_device_disconnected *)hdr;
drivers/thunderbolt/icm.c
927
icm_fr_xdomain_connected(struct tb *tb, const struct icm_pkg_header *hdr)
drivers/thunderbolt/icm.c
930
(const struct icm_fr_event_xdomain_connected *)hdr;
drivers/thunderbolt/tb_msgs.h
141
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
147
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
158
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
164
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
185
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
201
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
209
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
215
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
227
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
234
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
243
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
251
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
260
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
270
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
281
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
294
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
308
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
314
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
329
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
334
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
341
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
358
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
369
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
375
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
387
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
394
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
403
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
413
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
423
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
434
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
443
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
454
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
463
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
474
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
485
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
492
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
505
struct icm_pkg_header hdr;
drivers/thunderbolt/tb_msgs.h
548
struct tb_xdp_header hdr;
drivers/thunderbolt/tb_msgs.h
553
struct tb_xdp_header hdr;
drivers/thunderbolt/tb_msgs.h
560
struct tb_xdp_header hdr;
drivers/thunderbolt/tb_msgs.h
571
struct tb_xdp_header hdr;
drivers/thunderbolt/tb_msgs.h
581
struct tb_xdp_header hdr;
drivers/thunderbolt/tb_msgs.h
588
struct tb_xdp_header hdr;
drivers/thunderbolt/tb_msgs.h
595
struct tb_xdp_header hdr;
drivers/thunderbolt/tb_msgs.h
604
struct tb_xdp_header hdr;
drivers/thunderbolt/tb_msgs.h
615
struct tb_xdp_header hdr;
drivers/thunderbolt/tb_msgs.h
637
struct tb_xdp_header hdr;
drivers/thunderbolt/tb_msgs.h
644
struct tb_xdp_header hdr;
drivers/thunderbolt/xdomain.c
228
static inline void tb_xdp_fill_header(struct tb_xdp_header *hdr, u64 route,
drivers/thunderbolt/xdomain.c
233
length_sn = (size - sizeof(hdr->xd_hdr)) / 4;
drivers/thunderbolt/xdomain.c
236
hdr->xd_hdr.route_hi = upper_32_bits(route);
drivers/thunderbolt/xdomain.c
237
hdr->xd_hdr.route_lo = lower_32_bits(route);
drivers/thunderbolt/xdomain.c
238
hdr->xd_hdr.length_sn = length_sn;
drivers/thunderbolt/xdomain.c
239
hdr->type = type;
drivers/thunderbolt/xdomain.c
240
memcpy(&hdr->uuid, &tb_xdp_uuid, sizeof(tb_xdp_uuid));
drivers/thunderbolt/xdomain.c
2434
const struct tb_xdp_header *hdr = buf;
drivers/thunderbolt/xdomain.c
2439
length = hdr->xd_hdr.length_sn & TB_XDOMAIN_LENGTH_MASK;
drivers/thunderbolt/xdomain.c
2440
if (length != size / 4 - sizeof(hdr->xd_hdr) / 4)
drivers/thunderbolt/xdomain.c
2442
if (length < sizeof(*hdr) / 4 - sizeof(hdr->xd_hdr) / 4)
drivers/thunderbolt/xdomain.c
245
if (res->hdr.type != ERROR_RESPONSE)
drivers/thunderbolt/xdomain.c
2450
if (uuid_equal(&hdr->uuid, &tb_xdp_uuid)) {
drivers/thunderbolt/xdomain.c
2452
return tb_xdp_schedule_request(tb, hdr, size);
drivers/thunderbolt/xdomain.c
2458
if (!uuid_equal(&hdr->uuid, handler->uuid))
drivers/thunderbolt/xdomain.c
271
tb_xdp_fill_header(&req.hdr, route, retry % 4, UUID_REQUEST,
drivers/thunderbolt/xdomain.c
298
tb_xdp_fill_header(&res.hdr, route, sequence, UUID_RESPONSE,
drivers/thunderbolt/xdomain.c
315
tb_xdp_fill_header(&res.hdr, route, sequence, ERROR_RESPONSE,
drivers/thunderbolt/xdomain.c
340
tb_xdp_fill_header(&req.hdr, route, retry % 4, PROPERTIES_REQUEST,
drivers/thunderbolt/xdomain.c
364
len = res->hdr.xd_hdr.length_sn & TB_XDOMAIN_LENGTH_MASK;
drivers/thunderbolt/xdomain.c
370
len += sizeof(res->hdr.xd_hdr) / 4;
drivers/thunderbolt/xdomain.c
450
tb_xdp_fill_header(&res->hdr, xd->route, sequence, PROPERTIES_RESPONSE,
drivers/thunderbolt/xdomain.c
476
tb_xdp_fill_header(&req.hdr, route, retry % 4,
drivers/thunderbolt/xdomain.c
497
tb_xdp_fill_header(&res.hdr, route, sequence,
drivers/thunderbolt/xdomain.c
512
tb_xdp_fill_header(&req.hdr, route, sequence, LINK_STATE_STATUS_REQUEST,
drivers/thunderbolt/xdomain.c
546
tb_xdp_fill_header(&res.hdr, xd->route, sequence,
drivers/thunderbolt/xdomain.c
574
tb_xdp_fill_header(&req.hdr, route, sequence, LINK_STATE_CHANGE_REQUEST,
drivers/thunderbolt/xdomain.c
599
tb_xdp_fill_header(&res.hdr, route, sequence, LINK_STATE_CHANGE_RESPONSE,
drivers/thunderbolt/xdomain.c
856
tb_xdp_schedule_request(struct tb *tb, const struct tb_xdp_header *hdr,
drivers/thunderbolt/xdomain.c
866
xw->pkg = kmemdup(hdr, size, GFP_KERNEL);
drivers/tty/hvc/hvsi.c
285
packet.hdr.type = VS_QUERY_RESPONSE_PACKET_HEADER;
drivers/tty/hvc/hvsi.c
286
packet.hdr.len = sizeof(struct hvsi_query_response);
drivers/tty/hvc/hvsi.c
287
packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno));
drivers/tty/hvc/hvsi.c
292
pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len);
drivers/tty/hvc/hvsi.c
293
dbg_dump_hex((uint8_t*)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
295
wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
296
if (wrote != packet.hdr.len) {
drivers/tty/hvc/hvsi.c
311
hvsi_version_respond(hp, be16_to_cpu(query->hdr.seqno));
drivers/tty/hvc/hvsi.c
545
packet.hdr.type = VS_QUERY_PACKET_HEADER;
drivers/tty/hvc/hvsi.c
546
packet.hdr.len = sizeof(struct hvsi_query);
drivers/tty/hvc/hvsi.c
547
packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno));
drivers/tty/hvc/hvsi.c
550
pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len);
drivers/tty/hvc/hvsi.c
551
dbg_dump_hex((uint8_t*)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
553
wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
554
if (wrote != packet.hdr.len) {
drivers/tty/hvc/hvsi.c
588
packet.hdr.type = VS_CONTROL_PACKET_HEADER;
drivers/tty/hvc/hvsi.c
589
packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno));
drivers/tty/hvc/hvsi.c
590
packet.hdr.len = sizeof(struct hvsi_control);
drivers/tty/hvc/hvsi.c
597
pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len);
drivers/tty/hvc/hvsi.c
598
dbg_dump_hex((uint8_t*)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
600
wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
601
if (wrote != packet.hdr.len) {
drivers/tty/hvc/hvsi.c
671
packet.hdr.type = VS_DATA_PACKET_HEADER;
drivers/tty/hvc/hvsi.c
672
packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno));
drivers/tty/hvc/hvsi.c
673
packet.hdr.len = count + sizeof(struct hvsi_header);
drivers/tty/hvc/hvsi.c
676
ret = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
677
if (ret == packet.hdr.len) {
drivers/tty/hvc/hvsi.c
688
packet.hdr.type = VS_CONTROL_PACKET_HEADER;
drivers/tty/hvc/hvsi.c
689
packet.hdr.seqno = cpu_to_be16(atomic_inc_return(&hp->seqno));
drivers/tty/hvc/hvsi.c
690
packet.hdr.len = 6;
drivers/tty/hvc/hvsi.c
693
pr_debug("%s: sending %i bytes\n", __func__, packet.hdr.len);
drivers/tty/hvc/hvsi.c
694
dbg_dump_hex((uint8_t*)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi.c
696
hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len);
drivers/tty/hvc/hvsi_lib.c
101
r.query_seqno = pkt->hdr.seqno;
drivers/tty/hvc/hvsi_lib.c
102
hvsi_send_packet(pv, &r.hdr);
drivers/tty/hvc/hvsi_lib.c
241
dp.hdr.type = VS_DATA_PACKET_HEADER;
drivers/tty/hvc/hvsi_lib.c
242
dp.hdr.len = adjcount + sizeof(struct hvsi_header);
drivers/tty/hvc/hvsi_lib.c
244
rc = hvsi_send_packet(pv, &dp.hdr);
drivers/tty/hvc/hvsi_lib.c
268
q.hdr.type = VS_QUERY_PACKET_HEADER;
drivers/tty/hvc/hvsi_lib.c
269
q.hdr.len = sizeof(struct hvsi_query);
drivers/tty/hvc/hvsi_lib.c
271
rc = hvsi_send_packet(pv, &q.hdr);
drivers/tty/hvc/hvsi_lib.c
29
q.hdr.type = VS_QUERY_PACKET_HEADER;
drivers/tty/hvc/hvsi_lib.c
30
q.hdr.len = sizeof(struct hvsi_query);
drivers/tty/hvc/hvsi_lib.c
306
ctrl.hdr.type = VS_CONTROL_PACKET_HEADER;
drivers/tty/hvc/hvsi_lib.c
307
ctrl.hdr.len = sizeof(struct hvsi_control);
drivers/tty/hvc/hvsi_lib.c
311
return hvsi_send_packet(pv, &ctrl.hdr);
drivers/tty/hvc/hvsi_lib.c
32
hvsi_send_packet(pv, &q.hdr);
drivers/tty/hvc/hvsi_lib.c
41
ctrl.hdr.type = VS_CONTROL_PACKET_HEADER;
drivers/tty/hvc/hvsi_lib.c
42
ctrl.hdr.len = sizeof(struct hvsi_control);
drivers/tty/hvc/hvsi_lib.c
44
return hvsi_send_packet(pv, &ctrl.hdr);
drivers/tty/hvc/hvsi_lib.c
97
r.hdr.type = VS_QUERY_RESPONSE_PACKET_HEADER;
drivers/tty/hvc/hvsi_lib.c
98
r.hdr.len = sizeof(struct hvsi_query_response);
drivers/tty/ipwireless/hardware.c
158
struct nl_packet_header hdr;
drivers/tty/ipwireless/hardware.c
345
struct nl_packet_header *hdr = (struct nl_packet_header *) buf;
drivers/tty/ipwireless/hardware.c
350
if (hdr->packet_rank & NL_FIRST_PACKET) {
drivers/tty/ipwireless/hardware.c
351
switch (hdr->protocol) {
drivers/tty/ipwireless/hardware.c
815
unsigned int protocol = packet->hdr.protocol;
drivers/tty/ipwireless/hardware.c
816
unsigned int address = packet->hdr.address;
drivers/tty/ipwireless/hardware.c
820
int is_last = packet->hdr.packet_rank & NL_LAST_PACKET;
drivers/tty/ipwireless/hardware.c
822
if (packet->hdr.packet_rank & NL_FIRST_PACKET)
drivers/tty/moxa.c
875
} const *hdr = ptr;
drivers/tty/moxa.c
877
BUILD_BUG_ON(ARRAY_SIZE(hdr->len) != ARRAY_SIZE(lens));
drivers/tty/moxa.c
883
if (hdr->magic != cpu_to_le32(0x30343034)) {
drivers/tty/moxa.c
884
sprintf(rsn, "bad magic: %.8x", le32_to_cpu(hdr->magic));
drivers/tty/moxa.c
887
if (hdr->type != 3) {
drivers/tty/moxa.c
888
sprintf(rsn, "not for linux, type is %u", hdr->type);
drivers/tty/moxa.c
891
if (moxa_check_fw_model(brd, hdr->model)) {
drivers/tty/moxa.c
892
sprintf(rsn, "not for this card, model is %u", hdr->model);
drivers/tty/moxa.c
897
lencnt = hdr->model == 2 ? 5 : 3;
drivers/tty/moxa.c
899
lens[a] = le16_to_cpu(hdr->len[a]);
drivers/tty/moxa.c
930
if (hdr->model == 2) {
drivers/tty/n_gsm.c
711
static void gsm_print_packet(const char *hdr, int addr, int cr,
drivers/tty/n_gsm.c
721
pr_info("%s %d) %c: ", hdr, addr, "RC"[cr]);
drivers/ufs/core/ufs_trace.h
349
TP_PROTO(struct ufs_hba *hba, enum ufs_trace_str_t str_t, void *hdr,
drivers/ufs/core/ufs_trace.h
352
TP_ARGS(hba, str_t, hdr, tsf, tsf_t),
drivers/ufs/core/ufs_trace.h
357
__array(unsigned char, hdr, 12)
drivers/ufs/core/ufs_trace.h
365
memcpy(__entry->hdr, hdr, sizeof(__entry->hdr));
drivers/ufs/core/ufs_trace.h
373
__print_hex(__entry->hdr, sizeof(__entry->hdr)),
drivers/usb/class/cdc-wdm.c
1155
struct usb_cdc_parsed_header hdr;
drivers/usb/class/cdc-wdm.c
1163
cdc_parse_cdc_header(&hdr, intf, buffer, buflen);
drivers/usb/class/cdc-wdm.c
1165
if (hdr.usb_cdc_dmm_desc)
drivers/usb/class/cdc-wdm.c
1166
maxcom = le16_to_cpu(hdr.usb_cdc_dmm_desc->wMaxCommand);
drivers/usb/core/message.c
2380
int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
drivers/usb/core/message.c
2397
memset(hdr, 0x00, sizeof(struct usb_cdc_parsed_header));
drivers/usb/core/message.c
2398
hdr->phonet_magic_present = false;
drivers/usb/core/message.c
2428
hdr->usb_cdc_country_functional_desc =
drivers/usb/core/message.c
2441
hdr->usb_cdc_acm_descriptor =
drivers/usb/core/message.c
2454
hdr->usb_cdc_call_mgmt_descriptor =
drivers/usb/core/message.c
2460
hdr->usb_cdc_dmm_desc =
drivers/usb/core/message.c
2480
hdr->usb_cdc_ncm_desc = (struct usb_cdc_ncm_desc *)buffer;
drivers/usb/core/message.c
2486
hdr->usb_cdc_mbim_desc = (struct usb_cdc_mbim_desc *)buffer;
drivers/usb/core/message.c
2491
hdr->usb_cdc_mbim_extended_desc =
drivers/usb/core/message.c
2495
hdr->phonet_magic_present = true;
drivers/usb/core/message.c
2511
hdr->usb_cdc_union_desc = union_header;
drivers/usb/core/message.c
2512
hdr->usb_cdc_header_desc = header;
drivers/usb/core/message.c
2513
hdr->usb_cdc_mdlm_detail_desc = detail;
drivers/usb/core/message.c
2514
hdr->usb_cdc_mdlm_desc = desc;
drivers/usb/core/message.c
2515
hdr->usb_cdc_ether_desc = ether;
drivers/usb/gadget/function/f_uvc.c
528
struct usb_descriptor_header **hdr;
drivers/usb/gadget/function/f_uvc.c
621
hdr = mem;
drivers/usb/gadget/function/f_uvc.c
660
return hdr;
drivers/usb/mon/mon_bin.c
1078
ret = mon_bin_get_event(file, rp, getb.hdr,
drivers/usb/mon/mon_bin.c
137
struct mon_bin_hdr __user *hdr; /* Can be 48 bytes or 64. */
drivers/usb/mon/mon_bin.c
743
struct mon_bin_hdr __user *hdr, unsigned int hdrbytes,
drivers/usb/mon/mon_bin.c
761
if (copy_to_user(hdr, ep, hdrbytes)) {
drivers/usb/serial/omninet.c
140
const struct omninet_header *hdr = urb->transfer_buffer;
drivers/usb/serial/omninet.c
144
if (urb->actual_length <= OMNINET_HEADERLEN || !hdr->oh_len)
drivers/usb/serial/omninet.c
149
hdr->oh_len);
drivers/usb/serial/opticon.c
74
const unsigned char *hdr = urb->transfer_buffer;
drivers/usb/serial/opticon.c
75
const unsigned char *data = hdr + 2;
drivers/usb/serial/opticon.c
92
if ((hdr[0] == 0x00) && (hdr[1] == 0x00)) {
drivers/usb/serial/opticon.c
94
} else if ((hdr[0] == 0x00) && (hdr[1] == 0x01)) {
drivers/usb/serial/opticon.c
98
hdr[0], hdr[1]);
drivers/usb/typec/altmodes/displayport.c
373
const u32 hdr, const u32 *vdo, int count)
drivers/usb/typec/altmodes/displayport.c
376
int cmd_type = PD_VDO_CMDT(hdr);
drivers/usb/typec/altmodes/displayport.c
377
int cmd = PD_VDO_CMD(hdr);
drivers/usb/typec/altmodes/displayport.c
444
const u32 hdr, const u32 *vdo, int count)
drivers/usb/typec/altmodes/displayport.c
447
int cmd_type = PD_VDO_CMDT(hdr);
drivers/usb/typec/altmodes/displayport.c
448
int cmd = PD_VDO_CMD(hdr);
drivers/usb/typec/altmodes/thunderbolt.c
140
enum typec_plug_index sop, const u32 hdr,
drivers/usb/typec/altmodes/thunderbolt.c
144
int cmd_type = PD_VDO_CMDT(hdr);
drivers/usb/typec/altmodes/thunderbolt.c
145
int cmd = PD_VDO_CMD(hdr);
drivers/usb/typec/altmodes/thunderbolt.c
190
const u32 hdr, const u32 *vdo, int count)
drivers/usb/typec/altmodes/thunderbolt.c
194
int cmd_type = PD_VDO_CMDT(hdr);
drivers/usb/typec/altmodes/thunderbolt.c
195
int cmd = PD_VDO_CMD(hdr);
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_pdphy.c
69
#define PD_MSG_HDR_REV(hdr) (((hdr) >> 6) & 3)
drivers/usb/typec/ucsi/ucsi_glink.c
146
req.hdr.owner = PMIC_GLINK_OWNER_USBC;
drivers/usb/typec/ucsi/ucsi_glink.c
147
req.hdr.type = MSG_TYPE_REQ_RESP;
drivers/usb/typec/ucsi/ucsi_glink.c
148
req.hdr.opcode = UC_UCSI_WRITE_BUF_REQ;
drivers/usb/typec/ucsi/ucsi_glink.c
30
struct pmic_glink_hdr hdr;
drivers/usb/typec/ucsi/ucsi_glink.c
335
const struct pmic_glink_hdr *hdr = data;
drivers/usb/typec/ucsi/ucsi_glink.c
337
switch (le32_to_cpu(hdr->opcode)) {
drivers/usb/typec/ucsi/ucsi_glink.c
34
struct pmic_glink_hdr hdr;
drivers/usb/typec/ucsi/ucsi_glink.c
43
struct pmic_glink_hdr hdr;
drivers/usb/typec/ucsi/ucsi_glink.c
52
struct pmic_glink_hdr hdr;
drivers/usb/typec/ucsi/ucsi_glink.c
57
struct pmic_glink_hdr hdr;
drivers/usb/typec/ucsi/ucsi_glink.c
92
req.hdr.owner = PMIC_GLINK_OWNER_USBC;
drivers/usb/typec/ucsi/ucsi_glink.c
93
req.hdr.type = MSG_TYPE_REQ_RESP;
drivers/usb/typec/ucsi/ucsi_glink.c
94
req.hdr.opcode = UC_UCSI_READ_BUF_REQ;
drivers/vdpa/mlx5/net/mlx5_vnet.c
1415
cmd_hdr = MLX5_ADDR_OF(create_virtio_q_counters_in, in, hdr);
drivers/vdpa/mlx5/net/mlx5_vnet.c
1438
MLX5_SET(destroy_virtio_q_counters_in, in, hdr.opcode, MLX5_CMD_OP_DESTROY_GENERAL_OBJECT);
drivers/vdpa/mlx5/net/mlx5_vnet.c
1439
MLX5_SET(destroy_virtio_q_counters_in, in, hdr.obj_id, mvq->counter_set_id);
drivers/vdpa/mlx5/net/mlx5_vnet.c
1440
MLX5_SET(destroy_virtio_q_counters_in, in, hdr.uid, ndev->mvdev.res.uid);
drivers/vdpa/mlx5/net/mlx5_vnet.c
1441
MLX5_SET(destroy_virtio_q_counters_in, in, hdr.obj_type, MLX5_OBJ_TYPE_VIRTIO_Q_COUNTERS);
drivers/vdpa/mlx5/net/mlx5_vnet.c
3529
cmd_hdr = MLX5_ADDR_OF(query_virtio_q_counters_in, in, hdr);
drivers/vdpa/octeon_ep/octep_vdpa.h
62
struct virtio_pci_vndr_data hdr;
drivers/vdpa/octeon_ep/octep_vdpa_hw.c
45
struct octep_mbox_hdr hdr;
drivers/vdpa/octeon_ep/octep_vdpa_hw.c
496
if (vndr_data.hdr.vendor_id != PCI_VENDOR_ID_CAVIUM) {
drivers/vdpa/octeon_ep/octep_vdpa_hw.c
74
iowrite16(id, &mbox->hdr.id);
drivers/vdpa/octeon_ep/octep_vdpa_hw.c
75
iowrite16(sig, &mbox->hdr.sig);
drivers/vdpa/octeon_ep/octep_vdpa_hw.c
80
return ioread16(&mbox->hdr.sig);
drivers/vdpa/vdpa.c
1166
void *hdr;
drivers/vdpa/vdpa.c
1170
hdr = genlmsg_put(msg, portid, seq, &vdpa_nl_family, flags,
drivers/vdpa/vdpa.c
1172
if (!hdr) {
drivers/vdpa/vdpa.c
1214
genlmsg_end(msg, hdr);
drivers/vdpa/vdpa.c
1218
genlmsg_cancel(msg, hdr);
drivers/vdpa/vdpa.c
1280
void *hdr;
drivers/vdpa/vdpa.c
1286
hdr = genlmsg_put(msg, portid, seq, &vdpa_nl_family, flags,
drivers/vdpa/vdpa.c
1288
if (!hdr)
drivers/vdpa/vdpa.c
1316
genlmsg_end(msg, hdr);
drivers/vdpa/vdpa.c
1321
genlmsg_cancel(msg, hdr);
drivers/vdpa/vdpa.c
492
void *hdr;
drivers/vdpa/vdpa.c
495
hdr = genlmsg_put(msg, portid, seq, &vdpa_nl_family, flags, VDPA_CMD_MGMTDEV_NEW);
drivers/vdpa/vdpa.c
496
if (!hdr)
drivers/vdpa/vdpa.c
519
genlmsg_end(msg, hdr);
drivers/vdpa/vdpa.c
523
genlmsg_cancel(msg, hdr);
drivers/vdpa/vdpa.c
749
void *hdr;
drivers/vdpa/vdpa.c
752
hdr = genlmsg_put(msg, portid, seq, &vdpa_nl_family, flags, VDPA_CMD_DEV_NEW);
drivers/vdpa/vdpa.c
753
if (!hdr)
drivers/vdpa/vdpa.c
780
genlmsg_end(msg, hdr);
drivers/vdpa/vdpa.c
784
genlmsg_cancel(msg, hdr);
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
114
struct virtio_blk_outhdr hdr;
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
146
bytes = vringh_iov_pull_iotlb(&vq->vring, &vq->out_iov, &hdr,
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
147
sizeof(hdr));
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
148
if (bytes != sizeof(hdr)) {
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
155
type = vdpasim32_to_cpu(vdpasim, hdr.type);
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c
156
sector = vdpasim64_to_cpu(vdpasim, hdr.sector);
drivers/vfio/cdx/main.c
180
struct vfio_irq_set hdr;
drivers/vfio/cdx/main.c
185
if (copy_from_user(&hdr, arg, minsz))
drivers/vfio/cdx/main.c
188
ret = vfio_set_irqs_validate_and_prepare(&hdr, cdx_dev->num_msi,
drivers/vfio/cdx/main.c
199
ret = vfio_cdx_set_irqs_ioctl(vdev, hdr.flags, hdr.index,
drivers/vfio/cdx/main.c
200
hdr.start, hdr.count, data);
drivers/vfio/fsl-mc/vfio_fsl_mc.c
193
struct vfio_irq_set hdr;
drivers/vfio/fsl-mc/vfio_fsl_mc.c
200
if (copy_from_user(&hdr, (void __user *)arg, minsz))
drivers/vfio/fsl-mc/vfio_fsl_mc.c
203
ret = vfio_set_irqs_validate_and_prepare(&hdr, mc_dev->obj_desc.irq_count,
drivers/vfio/fsl-mc/vfio_fsl_mc.c
216
ret = vfio_fsl_mc_set_irqs_ioctl(vdev, hdr.flags,
drivers/vfio/fsl-mc/vfio_fsl_mc.c
217
hdr.index, hdr.start,
drivers/vfio/fsl-mc/vfio_fsl_mc.c
218
hdr.count, data);
drivers/vfio/pci/vfio_pci_core.c
1192
struct vfio_irq_set hdr;
drivers/vfio/pci/vfio_pci_core.c
1197
if (copy_from_user(&hdr, arg, minsz))
drivers/vfio/pci/vfio_pci_core.c
1200
max = vfio_pci_get_irq_count(vdev, hdr.index);
drivers/vfio/pci/vfio_pci_core.c
1202
ret = vfio_set_irqs_validate_and_prepare(&hdr, max, VFIO_PCI_NUM_IRQS,
drivers/vfio/pci/vfio_pci_core.c
1215
ret = vfio_pci_set_irqs_ioctl(vdev, hdr.flags, hdr.index, hdr.start,
drivers/vfio/pci/vfio_pci_core.c
1216
hdr.count, data);
drivers/vfio/pci/vfio_pci_core.c
1261
struct vfio_pci_hot_reset_info hdr;
drivers/vfio/pci/vfio_pci_core.c
1266
if (copy_from_user(&hdr, arg, minsz))
drivers/vfio/pci/vfio_pci_core.c
1269
if (hdr.argsz < minsz)
drivers/vfio/pci/vfio_pci_core.c
1272
hdr.flags = 0;
drivers/vfio/pci/vfio_pci_core.c
1288
if (count > (hdr.argsz - sizeof(hdr)) / sizeof(*devices)) {
drivers/vfio/pci/vfio_pci_core.c
1289
hdr.count = count;
drivers/vfio/pci/vfio_pci_core.c
1319
hdr.count = fill.count;
drivers/vfio/pci/vfio_pci_core.c
1320
hdr.flags = fill.flags;
drivers/vfio/pci/vfio_pci_core.c
1323
if (copy_to_user(arg, &hdr, minsz))
drivers/vfio/pci/vfio_pci_core.c
1413
struct vfio_pci_hot_reset hdr;
drivers/vfio/pci/vfio_pci_core.c
1416
if (copy_from_user(&hdr, arg, minsz))
drivers/vfio/pci/vfio_pci_core.c
1419
if (hdr.argsz < minsz || hdr.flags)
drivers/vfio/pci/vfio_pci_core.c
1423
if (!!hdr.count == vfio_device_cdev_opened(&vdev->vdev))
drivers/vfio/pci/vfio_pci_core.c
1432
if (hdr.count)
drivers/vfio/pci/vfio_pci_core.c
1433
return vfio_pci_ioctl_pci_hot_reset_groups(vdev, hdr.count, slot, arg);
drivers/vfio/platform/vfio_platform_common.c
342
struct vfio_irq_set hdr;
drivers/vfio/platform/vfio_platform_common.c
349
if (copy_from_user(&hdr, (void __user *)arg, minsz))
drivers/vfio/platform/vfio_platform_common.c
352
ret = vfio_set_irqs_validate_and_prepare(&hdr, vdev->num_irqs,
drivers/vfio/platform/vfio_platform_common.c
366
ret = vfio_platform_set_irqs_ioctl(vdev, hdr.flags, hdr.index,
drivers/vfio/platform/vfio_platform_common.c
367
hdr.start, hdr.count, data);
drivers/vfio/vfio_main.c
1598
int vfio_set_irqs_validate_and_prepare(struct vfio_irq_set *hdr, int num_irqs,
drivers/vfio/vfio_main.c
1606
if ((hdr->argsz < minsz) || (hdr->index >= max_irq_type) ||
drivers/vfio/vfio_main.c
1607
(hdr->count >= (U32_MAX - hdr->start)) ||
drivers/vfio/vfio_main.c
1608
(hdr->flags & ~(VFIO_IRQ_SET_DATA_TYPE_MASK |
drivers/vfio/vfio_main.c
1615
if (hdr->start >= num_irqs || hdr->start + hdr->count > num_irqs)
drivers/vfio/vfio_main.c
1618
switch (hdr->flags & VFIO_IRQ_SET_DATA_TYPE_MASK) {
drivers/vfio/vfio_main.c
1633
if (hdr->argsz - minsz < hdr->count * size)
drivers/vfio/vfio_main.c
1639
*data_size = hdr->count * size;
drivers/vhost/net.c
1146
struct virtio_net_hdr hdr = {
drivers/vhost/net.c
1245
if (copy_to_iter(&hdr, sizeof(hdr),
drivers/vhost/net.c
1246
&fixup) != sizeof(hdr)) {
drivers/vhost/net.c
1255
iov_iter_advance(&fixup, sizeof(hdr));
drivers/vhost/vsock.c
115
struct virtio_vsock_hdr *hdr;
drivers/vhost/vsock.c
158
if (iov_len < sizeof(*hdr)) {
drivers/vhost/vsock.c
167
hdr = virtio_vsock_hdr(skb);
drivers/vhost/vsock.c
172
if (payload_len > iov_len - sizeof(*hdr)) {
drivers/vhost/vsock.c
173
payload_len = iov_len - sizeof(*hdr);
drivers/vhost/vsock.c
186
if (le32_to_cpu(hdr->flags) & VIRTIO_VSOCK_SEQ_EOM) {
drivers/vhost/vsock.c
187
hdr->flags &= ~cpu_to_le32(VIRTIO_VSOCK_SEQ_EOM);
drivers/vhost/vsock.c
190
if (le32_to_cpu(hdr->flags) & VIRTIO_VSOCK_SEQ_EOR) {
drivers/vhost/vsock.c
191
hdr->flags &= ~cpu_to_le32(VIRTIO_VSOCK_SEQ_EOR);
drivers/vhost/vsock.c
198
hdr->len = cpu_to_le32(payload_len);
drivers/vhost/vsock.c
200
nbytes = copy_to_iter(hdr, sizeof(*hdr), &iov_iter);
drivers/vhost/vsock.c
201
if (nbytes != sizeof(*hdr)) {
drivers/vhost/vsock.c
221
vhost_add_used(vq, head, sizeof(*hdr) + payload_len);
drivers/vhost/vsock.c
231
hdr->flags |= cpu_to_le32(flags_to_restore);
drivers/vhost/vsock.c
279
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
drivers/vhost/vsock.c
286
vsock = vhost_vsock_get(le64_to_cpu(hdr->dst_cid), net);
drivers/vhost/vsock.c
339
struct virtio_vsock_hdr *hdr;
drivers/vhost/vsock.c
364
hdr = virtio_vsock_hdr(skb);
drivers/vhost/vsock.c
365
nbytes = copy_from_iter(hdr, sizeof(*hdr), &iov_iter);
drivers/vhost/vsock.c
366
if (nbytes != sizeof(*hdr)) {
drivers/vhost/vsock.c
368
sizeof(*hdr), nbytes);
drivers/vhost/vsock.c
373
payload_len = le32_to_cpu(hdr->len);
drivers/vhost/vsock.c
380
if (payload_len + sizeof(*hdr) > len) {
drivers/vhost/vsock.c
515
struct virtio_vsock_hdr *hdr;
drivers/vhost/vsock.c
544
total_len += sizeof(*hdr) + skb->len;
drivers/vhost/vsock.c
549
hdr = virtio_vsock_hdr(skb);
drivers/vhost/vsock.c
552
if (le64_to_cpu(hdr->src_cid) == vsock->guest_cid &&
drivers/vhost/vsock.c
553
le64_to_cpu(hdr->dst_cid) ==
drivers/virt/coco/sev-guest/sev-guest.c
486
struct snp_msg_report_resp_hdr hdr;
drivers/virt/coco/sev-guest/sev-guest.c
529
memcpy(&hdr, buf, sizeof(hdr));
drivers/virt/coco/sev-guest/sev-guest.c
530
if (hdr.status == SEV_RET_INVALID_PARAM)
drivers/virt/coco/sev-guest/sev-guest.c
532
if (hdr.status == SEV_RET_INVALID_KEY)
drivers/virt/coco/sev-guest/sev-guest.c
534
if (hdr.status)
drivers/virt/coco/sev-guest/sev-guest.c
536
if ((hdr.report_size + sizeof(hdr)) > report_size)
drivers/virt/coco/sev-guest/sev-guest.c
539
void *rbuf __free(kvfree) = kvzalloc(hdr.report_size, GFP_KERNEL);
drivers/virt/coco/sev-guest/sev-guest.c
543
memcpy(rbuf, buf + sizeof(hdr), hdr.report_size);
drivers/virt/coco/sev-guest/sev-guest.c
545
report->outblob_len = hdr.report_size;
drivers/virt/vboxguest/vboxguest_core.c
1118
static int vbg_ioctl_chk(struct vbg_ioctl_hdr *hdr, size_t in_size,
drivers/virt/vboxguest/vboxguest_core.c
1121
if (hdr->size_in != (sizeof(*hdr) + in_size) ||
drivers/virt/vboxguest/vboxguest_core.c
1122
hdr->size_out != (sizeof(*hdr) + out_size))
drivers/virt/vboxguest/vboxguest_core.c
1134
if (vbg_ioctl_chk(&info->hdr, sizeof(info->u.in), sizeof(info->u.out)))
drivers/virt/vboxguest/vboxguest_core.c
1149
info->hdr.rc = VERR_VERSION_MISMATCH;
drivers/virt/vboxguest/vboxguest_core.c
1220
if (vbg_ioctl_chk(&wait->hdr, sizeof(wait->u.in), sizeof(wait->u.out)))
drivers/virt/vboxguest/vboxguest_core.c
1259
struct vbg_ioctl_hdr *hdr)
drivers/virt/vboxguest/vboxguest_core.c
1263
if (hdr->size_in != sizeof(*hdr) || hdr->size_out != sizeof(*hdr))
drivers/virt/vboxguest/vboxguest_core.c
1378
struct vbg_ioctl_hdr *hdr = data;
drivers/virt/vboxguest/vboxguest_core.c
1381
if (hdr->size_in != hdr->size_out)
drivers/virt/vboxguest/vboxguest_core.c
1384
if (hdr->size_in > VMMDEV_MAX_VMMDEVREQ_SIZE)
drivers/virt/vboxguest/vboxguest_core.c
1387
if (hdr->type == VBG_IOCTL_HDR_TYPE_DEFAULT)
drivers/virt/vboxguest/vboxguest_core.c
1395
WARN_ON(hdr->rc == VINF_HGCM_ASYNC_EXECUTE);
drivers/virt/vboxguest/vboxguest_core.c
1407
if (vbg_ioctl_chk(&conn->hdr, sizeof(conn->u.in), sizeof(conn->u.out)))
drivers/virt/vboxguest/vboxguest_core.c
1424
&client_id, &conn->hdr.rc);
drivers/virt/vboxguest/vboxguest_core.c
1427
if (ret == 0 && conn->hdr.rc >= 0) {
drivers/virt/vboxguest/vboxguest_core.c
1446
if (vbg_ioctl_chk(&disconn->hdr, sizeof(disconn->u.in), 0))
drivers/virt/vboxguest/vboxguest_core.c
1466
&disconn->hdr.rc);
drivers/virt/vboxguest/vboxguest_core.c
1469
if (ret == 0 && disconn->hdr.rc >= 0)
drivers/virt/vboxguest/vboxguest_core.c
1500
if (call->hdr.size_in < sizeof(*call))
drivers/virt/vboxguest/vboxguest_core.c
1503
if (call->hdr.size_in != call->hdr.size_out)
drivers/virt/vboxguest/vboxguest_core.c
1520
if (call->hdr.size_in < actual_size) {
drivers/virt/vboxguest/vboxguest_core.c
1522
call->hdr.size_in, actual_size);
drivers/virt/vboxguest/vboxguest_core.c
1525
call->hdr.size_out = actual_size;
drivers/virt/vboxguest/vboxguest_core.c
1562
call->parm_count, &call->hdr.rc);
drivers/virt/vboxguest/vboxguest_core.c
1567
call->parm_count, &call->hdr.rc);
drivers/virt/vboxguest/vboxguest_core.c
1571
call->hdr.rc = VERR_OUT_OF_RANGE;
drivers/virt/vboxguest/vboxguest_core.c
1583
if (log->hdr.size_out != sizeof(log->hdr))
drivers/virt/vboxguest/vboxguest_core.c
1586
vbg_info("%.*s", (int)(log->hdr.size_in - sizeof(log->hdr)),
drivers/virt/vboxguest/vboxguest_core.c
1598
if (vbg_ioctl_chk(&filter->hdr, sizeof(filter->u.in), 0))
drivers/virt/vboxguest/vboxguest_core.c
1617
if (vbg_ioctl_chk(&caps->hdr, sizeof(caps->u.in), 0))
drivers/virt/vboxguest/vboxguest_core.c
1640
if (vbg_ioctl_chk(&caps->hdr, sizeof(caps->u.in), sizeof(caps->u.out)))
drivers/virt/vboxguest/vboxguest_core.c
1663
if (vbg_ioctl_chk(&balloon_info->hdr, 0, sizeof(balloon_info->u.out)))
drivers/virt/vboxguest/vboxguest_core.c
1682
if (vbg_ioctl_chk(&dump->hdr, sizeof(dump->u.in), 0))
drivers/virt/vboxguest/vboxguest_core.c
1691
dump->hdr.rc = vbg_req_perform(gdev, req);
drivers/virt/vboxguest/vboxguest_core.c
1709
struct vbg_ioctl_hdr *hdr = data;
drivers/virt/vboxguest/vboxguest_core.c
1712
hdr->rc = VINF_SUCCESS;
drivers/virt/vboxguest/vboxguest_core.c
1713
if (!hdr->size_out)
drivers/virt/vboxguest/vboxguest_core.c
1714
hdr->size_out = hdr->size_in;
drivers/virt/vboxguest/vboxguest_core.c
1727
if (hdr->type != VBG_IOCTL_HDR_TYPE_DEFAULT)
drivers/virt/vboxguest/vboxguest_linux.c
110
struct vbg_ioctl_hdr hdr;
drivers/virt/vboxguest/vboxguest_linux.c
115
if (copy_from_user(&hdr, (void *)arg, sizeof(hdr)))
drivers/virt/vboxguest/vboxguest_linux.c
118
if (hdr.version != VBG_IOCTL_HDR_VERSION)
drivers/virt/vboxguest/vboxguest_linux.c
121
if (hdr.size_in < sizeof(hdr) ||
drivers/virt/vboxguest/vboxguest_linux.c
122
(hdr.size_out && hdr.size_out < sizeof(hdr)))
drivers/virt/vboxguest/vboxguest_linux.c
125
size = max(hdr.size_in, hdr.size_out);
drivers/virt/vboxguest/vboxguest_linux.c
147
*((struct vbg_ioctl_hdr *)buf) = hdr;
drivers/virt/vboxguest/vboxguest_linux.c
148
if (copy_from_user(buf + sizeof(hdr), (void *)arg + sizeof(hdr),
drivers/virt/vboxguest/vboxguest_linux.c
149
hdr.size_in - sizeof(hdr))) {
drivers/virt/vboxguest/vboxguest_linux.c
153
if (hdr.size_in < size)
drivers/virt/vboxguest/vboxguest_linux.c
154
memset(buf + hdr.size_in, 0, size - hdr.size_in);
drivers/virtio/virtio_pci_modern.c
1007
obj_create_data->hdr.type = cpu_to_le16(obj_type);
drivers/virtio/virtio_pci_modern.c
1008
obj_create_data->hdr.id = cpu_to_le32(*obj_id);
drivers/virtio/virtio_pci_modern.c
1122
data->hdr.type = cpu_to_le16(obj_type);
drivers/virtio/virtio_pci_modern.c
1123
data->hdr.id = cpu_to_le32(id);
drivers/virtio/virtio_pci_modern.c
1180
data->hdr.type = cpu_to_le16(obj_type);
drivers/virtio/virtio_pci_modern.c
1181
data->hdr.id = cpu_to_le32(id);
drivers/virtio/virtio_pci_modern.c
129
struct scatterlist *sgs[VIRTIO_AVQ_SGS_MAX], hdr, stat;
drivers/virtio/virtio_pci_modern.c
155
sg_init_one(&hdr, va_hdr, sizeof(*va_hdr));
drivers/virtio/virtio_pci_modern.c
156
sgs[out_num] = &hdr;
drivers/watchdog/mei_wdt.c
131
struct mei_mc_hdr hdr;
drivers/watchdog/mei_wdt.c
144
struct mei_mc_hdr hdr;
drivers/watchdog/mei_wdt.c
155
struct mei_mc_hdr hdr;
drivers/watchdog/mei_wdt.c
173
req.hdr.command = MEI_MANAGEMENT_CONTROL;
drivers/watchdog/mei_wdt.c
174
req.hdr.bytecount = req_len - offsetof(struct mei_mc_hdr, subcommand);
drivers/watchdog/mei_wdt.c
175
req.hdr.subcommand = MEI_MC_START_WD_TIMER_REQ;
drivers/watchdog/mei_wdt.c
176
req.hdr.versionnumber = MEI_MC_VERSION_NUMBER;
drivers/watchdog/mei_wdt.c
201
req.hdr.command = MEI_MANAGEMENT_CONTROL;
drivers/watchdog/mei_wdt.c
202
req.hdr.bytecount = req_len - offsetof(struct mei_mc_hdr, subcommand);
drivers/watchdog/mei_wdt.c
203
req.hdr.subcommand = MEI_MC_STOP_WD_TIMER_REQ;
drivers/watchdog/mei_wdt.c
204
req.hdr.versionnumber = MEI_MC_VERSION_NUMBER;
drivers/watchdog/mei_wdt.c
432
if (res.hdr.command != MEI_MANAGEMENT_CONTROL ||
drivers/watchdog/mei_wdt.c
433
res.hdr.versionnumber != MEI_MC_VERSION_NUMBER) {
drivers/watchdog/mei_wdt.c
438
if (res.hdr.subcommand != MEI_MC_START_WD_TIMER_RES) {
drivers/watchdog/mei_wdt.c
440
res.hdr.subcommand,
drivers/xen/grant-table.c
396
gnttab_shared.v2[ref].hdr.domid = domid;
drivers/xen/grant-table.c
399
gnttab_shared.v2[ref].hdr.flags = GTF_permit_access | flags;
drivers/xen/grant-table.c
444
gnttab_shared.v2[ref].hdr.flags = 0;
drivers/xen/xenbus/xenbus_dev_frontend.c
271
struct xsd_sockmsg hdr;
drivers/xen/xenbus/xenbus_dev_frontend.c
285
hdr.type = XS_WATCH_EVENT;
drivers/xen/xenbus/xenbus_dev_frontend.c
286
hdr.len = body_len;
drivers/xen/xenbus/xenbus_dev_frontend.c
290
ret = queue_reply(&staging_q, &hdr, sizeof(hdr));
drivers/xen/xenbus/xenbus_dev_frontend.c
423
struct xsd_sockmsg hdr;
drivers/xen/xenbus/xenbus_dev_frontend.c
428
msg.hdr = u->u.msg;
drivers/xen/xenbus/xenbus_dev_frontend.c
429
msg.hdr.type = msg_type;
drivers/xen/xenbus/xenbus_dev_frontend.c
430
msg.hdr.len = strlen(reply) + 1;
drivers/xen/xenbus/xenbus_dev_frontend.c
431
if (msg.hdr.len > sizeof(msg.body))
drivers/xen/xenbus/xenbus_dev_frontend.c
433
memcpy(&msg.body, reply, msg.hdr.len);
drivers/xen/xenbus/xenbus_dev_frontend.c
436
rc = queue_reply(&u->read_buffers, &msg, sizeof(msg.hdr) + msg.hdr.len);
drivers/xen/xenbus/xenbus_dev_frontend.c
452
struct xsd_sockmsg hdr;
drivers/xen/xenbus/xenbus_dev_frontend.c
464
} else if (msg->hdr.tx_id != 0 &&
drivers/xen/xenbus/xenbus_dev_frontend.c
465
!xenbus_get_transaction(u, msg->hdr.tx_id))
drivers/xen/xenbus/xenbus_dev_frontend.c
468
!(msg->hdr.len == 2 &&
drivers/xen/xenbus/xenbus_dev_frontend.c
472
trans = xenbus_get_transaction(u, msg->hdr.tx_id);
drivers/xen/xenbus/xenbus_dev_frontend.c
486
rc = xenbus_dev_request_and_reply(&msg->hdr, u);
fs/afs/dir.c
150
if (block->hdr.magic != AFS_DIR_MAGIC) {
fs/afs/dir.c
153
progress, ntohs(block->hdr.magic));
fs/afs/dir.c
373
unsigned int blknum, base, hdr, pos, next, nr_slots;
fs/afs/dir.c
379
hdr = (blknum == 0 ? AFS_DIR_RESV_BLOCKS0 : AFS_DIR_RESV_BLOCKS);
fs/afs/dir.c
385
for (unsigned int slot = hdr; slot < AFS_DIR_SLOTS_PER_BLOCK; slot = next) {
fs/afs/dir.c
387
if (!(block->hdr.bitmap[slot / 8] &
fs/afs/dir.c
422
if (!(block->hdr.bitmap[xslot / 8] & (1 << (xslot % 8)))) {
fs/afs/dir_edit.c
100
block->hdr.bitmap[2] &= ~(u8)(mask >> 2 * 8);
fs/afs/dir_edit.c
101
block->hdr.bitmap[3] &= ~(u8)(mask >> 3 * 8);
fs/afs/dir_edit.c
102
block->hdr.bitmap[4] &= ~(u8)(mask >> 4 * 8);
fs/afs/dir_edit.c
103
block->hdr.bitmap[5] &= ~(u8)(mask >> 5 * 8);
fs/afs/dir_edit.c
104
block->hdr.bitmap[6] &= ~(u8)(mask >> 6 * 8);
fs/afs/dir_edit.c
105
block->hdr.bitmap[7] &= ~(u8)(mask >> 7 * 8);
fs/afs/dir_edit.c
174
bitmap = (u64)block->hdr.bitmap[0] << 0 * 8;
fs/afs/dir_edit.c
175
bitmap |= (u64)block->hdr.bitmap[1] << 1 * 8;
fs/afs/dir_edit.c
176
bitmap |= (u64)block->hdr.bitmap[2] << 2 * 8;
fs/afs/dir_edit.c
177
bitmap |= (u64)block->hdr.bitmap[3] << 3 * 8;
fs/afs/dir_edit.c
178
bitmap |= (u64)block->hdr.bitmap[4] << 4 * 8;
fs/afs/dir_edit.c
179
bitmap |= (u64)block->hdr.bitmap[5] << 5 * 8;
fs/afs/dir_edit.c
180
bitmap |= (u64)block->hdr.bitmap[6] << 6 * 8;
fs/afs/dir_edit.c
181
bitmap |= (u64)block->hdr.bitmap[7] << 7 * 8;
fs/afs/dir_edit.c
214
block->hdr.npages = htons(1);
fs/afs/dir_edit.c
215
block->hdr.magic = AFS_DIR_MAGIC;
fs/afs/dir_edit.c
216
block->hdr.bitmap[0] = 1;
fs/afs/dir_edit.c
219
block->hdr.bitmap[0] = 0xff;
fs/afs/dir_edit.c
220
block->hdr.bitmap[1] = 0x1f;
fs/afs/dir_edit.c
298
ntohs(block->hdr.npages),
fs/afs/dir_edit.c
299
ntohs(block->hdr.magic));
fs/afs/dir_edit.c
30
bitmap = (u64)block->hdr.bitmap[0] << 0 * 8;
fs/afs/dir_edit.c
31
bitmap |= (u64)block->hdr.bitmap[1] << 1 * 8;
fs/afs/dir_edit.c
32
bitmap |= (u64)block->hdr.bitmap[2] << 2 * 8;
fs/afs/dir_edit.c
33
bitmap |= (u64)block->hdr.bitmap[3] << 3 * 8;
fs/afs/dir_edit.c
34
bitmap |= (u64)block->hdr.bitmap[4] << 4 * 8;
fs/afs/dir_edit.c
35
bitmap |= (u64)block->hdr.bitmap[5] << 5 * 8;
fs/afs/dir_edit.c
36
bitmap |= (u64)block->hdr.bitmap[6] << 6 * 8;
fs/afs/dir_edit.c
37
bitmap |= (u64)block->hdr.bitmap[7] << 7 * 8;
fs/afs/dir_edit.c
77
block->hdr.bitmap[0] |= (u8)(mask >> 0 * 8);
fs/afs/dir_edit.c
78
block->hdr.bitmap[1] |= (u8)(mask >> 1 * 8);
fs/afs/dir_edit.c
79
block->hdr.bitmap[2] |= (u8)(mask >> 2 * 8);
fs/afs/dir_edit.c
80
block->hdr.bitmap[3] |= (u8)(mask >> 3 * 8);
fs/afs/dir_edit.c
81
block->hdr.bitmap[4] |= (u8)(mask >> 4 * 8);
fs/afs/dir_edit.c
82
block->hdr.bitmap[5] |= (u8)(mask >> 5 * 8);
fs/afs/dir_edit.c
83
block->hdr.bitmap[6] |= (u8)(mask >> 6 * 8);
fs/afs/dir_edit.c
84
block->hdr.bitmap[7] |= (u8)(mask >> 7 * 8);
fs/afs/dir_edit.c
98
block->hdr.bitmap[0] &= ~(u8)(mask >> 0 * 8);
fs/afs/dir_edit.c
99
block->hdr.bitmap[1] &= ~(u8)(mask >> 1 * 8);
fs/afs/vl_list.c
104
struct dns_server_list_v1_address hdr;
fs/afs/vl_list.c
107
hdr.address_type = *b++;
fs/afs/vl_list.c
109
switch (hdr.address_type) {
fs/afs/vl_list.c
136
hdr.address_type);
fs/afs/vl_list.c
162
const struct dns_server_list_v1_header *hdr = buffer;
fs/afs/vl_list.c
173
if (end - b < sizeof(*hdr) ||
fs/afs/vl_list.c
174
hdr->hdr.content != DNS_PAYLOAD_IS_SERVER_LIST ||
fs/afs/vl_list.c
175
hdr->hdr.version != 1) {
fs/afs/vl_list.c
177
hdr->hdr.content, hdr->hdr.version, end - b);
fs/afs/vl_list.c
182
nr_servers = hdr->nr_servers;
fs/afs/vl_list.c
188
vllist->source = (hdr->source < NR__dns_record_source) ?
fs/afs/vl_list.c
189
hdr->source : NR__dns_record_source;
fs/afs/vl_list.c
190
vllist->status = (hdr->status < NR__dns_lookup_status) ?
fs/afs/vl_list.c
191
hdr->status : NR__dns_lookup_status;
fs/afs/vl_list.c
199
b += sizeof(*hdr);
fs/afs/xdr_fs.h
87
struct afs_xdr_dir_hdr hdr;
fs/afs/xdr_fs.h
90
struct afs_xdr_dir_hdr hdr;
fs/autofs/expire.c
548
pkt.hdr.proto_version = sbi->version;
fs/autofs/expire.c
549
pkt.hdr.type = autofs_ptype_expire;
fs/autofs/waitq.c
84
struct autofs_packet_hdr hdr;
fs/autofs/waitq.c
98
pkt.hdr.proto_version = sbi->version;
fs/autofs/waitq.c
99
pkt.hdr.type = type;
fs/binfmt_elf_fdpic.c
1032
for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
fs/binfmt_elf_fdpic.c
104
static int is_elf(struct elfhdr *hdr, struct file *file)
fs/binfmt_elf_fdpic.c
106
if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0)
fs/binfmt_elf_fdpic.c
108
if (hdr->e_type != ET_EXEC && hdr->e_type != ET_DYN)
fs/binfmt_elf_fdpic.c
110
if (!elf_check_arch(hdr))
fs/binfmt_elf_fdpic.c
125
static int is_constdisp(struct elfhdr *hdr)
fs/binfmt_elf_fdpic.c
127
if (!elf_check_fdpic(hdr))
fs/binfmt_elf_fdpic.c
129
if (elf_check_const_displacement(hdr))
fs/binfmt_elf_fdpic.c
144
loff_t pos = params->hdr.e_phoff;
fs/binfmt_elf_fdpic.c
146
if (params->hdr.e_phentsize != sizeof(struct elf_phdr))
fs/binfmt_elf_fdpic.c
148
if (params->hdr.e_phnum > 65536U / sizeof(struct elf_phdr))
fs/binfmt_elf_fdpic.c
151
size = params->hdr.e_phnum * sizeof(struct elf_phdr);
fs/binfmt_elf_fdpic.c
162
for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
fs/binfmt_elf_fdpic.c
205
exec_params.hdr = *(struct elfhdr *) bprm->buf;
fs/binfmt_elf_fdpic.c
210
if (!is_elf(&exec_params.hdr, bprm->file))
fs/binfmt_elf_fdpic.c
212
if (!elf_check_fdpic(&exec_params.hdr)) {
fs/binfmt_elf_fdpic.c
218
if (exec_params.hdr.e_type != ET_DYN)
fs/binfmt_elf_fdpic.c
231
for (i = 0; i < exec_params.hdr.e_phnum; i++, phdr++) {
fs/binfmt_elf_fdpic.c
285
interp_params.hdr = *((struct elfhdr *) bprm->buf);
fs/binfmt_elf_fdpic.c
298
if (is_constdisp(&exec_params.hdr))
fs/binfmt_elf_fdpic.c
304
if (!is_elf(&interp_params.hdr, interpreter))
fs/binfmt_elf_fdpic.c
337
if (is_constdisp(&interp_params.hdr))
fs/binfmt_elf_fdpic.c
348
SET_PERSONALITY(exec_params.hdr);
fs/binfmt_elf_fdpic.c
349
if (elf_check_fdpic(&exec_params.hdr))
fs/binfmt_elf_fdpic.c
351
if (elf_read_implies_exec(&exec_params.hdr, executable_stack))
fs/binfmt_elf_fdpic.c
646
NEW_AUX_ENT(AT_PHNUM, exec_params->hdr.e_phnum);
fs/binfmt_elf_fdpic.c
763
for (loop = 0; loop < params->hdr.e_phnum; loop++)
fs/binfmt_elf_fdpic.c
797
if (params->hdr.e_entry) {
fs/binfmt_elf_fdpic.c
800
if (params->hdr.e_entry >= seg->p_vaddr &&
fs/binfmt_elf_fdpic.c
801
params->hdr.e_entry < seg->p_vaddr + seg->p_memsz) {
fs/binfmt_elf_fdpic.c
803
(params->hdr.e_entry - seg->p_vaddr) +
fs/binfmt_elf_fdpic.c
811
stop = params->hdr.e_phoff;
fs/binfmt_elf_fdpic.c
812
stop += params->hdr.e_phnum * sizeof (struct elf_phdr);
fs/binfmt_elf_fdpic.c
815
for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
fs/binfmt_elf_fdpic.c
819
if (phdr->p_offset > params->hdr.e_phoff ||
fs/binfmt_elf_fdpic.c
831
params->hdr.e_phoff - phdr->p_offset;
fs/binfmt_elf_fdpic.c
840
for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
fs/binfmt_elf_fdpic.c
946
for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
fs/binfmt_elf_fdpic.c
967
for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) {
fs/binfmt_flat.c
409
struct flat_hdr *hdr;
fs/binfmt_flat.c
421
hdr = ((struct flat_hdr *) bprm->buf); /* exec-header */
fs/binfmt_flat.c
423
text_len = ntohl(hdr->data_start);
fs/binfmt_flat.c
424
data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start);
fs/binfmt_flat.c
425
bss_len = ntohl(hdr->bss_end) - ntohl(hdr->data_end);
fs/binfmt_flat.c
426
stack_len = ntohl(hdr->stack_size);
fs/binfmt_flat.c
431
relocs = ntohl(hdr->reloc_count);
fs/binfmt_flat.c
432
flags = ntohl(hdr->flags);
fs/binfmt_flat.c
433
rev = ntohl(hdr->rev);
fs/binfmt_flat.c
436
if (strncmp(hdr->magic, "bFLT", 4)) {
fs/binfmt_flat.c
567
fpos = ntohl(hdr->data_start);
fs/binfmt_flat.c
587
(datapos + (ntohl(hdr->reloc_start) - text_len));
fs/binfmt_flat.c
607
realdatastart = textpos + ntohl(hdr->data_start);
fs/binfmt_flat.c
613
(datapos + (ntohl(hdr->reloc_start) - text_len));
fs/binfmt_flat.c
678
ntohl(hdr->data_start),
fs/binfmt_flat.c
714
textpos, 0x00ffffff&ntohl(hdr->entry), ntohl(hdr->data_start));
fs/binfmt_flat.c
727
libinfo->lib_list[0].entry = (0x00ffffff & ntohl(hdr->entry)) + textpos;
fs/binfmt_flat.c
728
libinfo->lib_list[0].build_date = ntohl(hdr->build_date);
fs/btrfs/send.c
5186
struct btrfs_tlv_header *hdr;
fs/btrfs/send.c
5188
if (unlikely(sctx->send_max_size - sctx->send_size < sizeof(*hdr) + len))
fs/btrfs/send.c
5190
hdr = (struct btrfs_tlv_header *)(sctx->send_buf + sctx->send_size);
fs/btrfs/send.c
5191
put_unaligned_le16(BTRFS_SEND_A_DATA, &hdr->tlv_type);
fs/btrfs/send.c
5192
put_unaligned_le16(len, &hdr->tlv_len);
fs/btrfs/send.c
5193
sctx->send_size += sizeof(*hdr);
fs/btrfs/send.c
5539
struct btrfs_cmd_header *hdr;
fs/btrfs/send.c
5606
hdr = (struct btrfs_cmd_header *)sctx->send_buf;
fs/btrfs/send.c
5607
hdr->len = cpu_to_le32(sctx->send_size + disk_num_bytes - sizeof(*hdr));
fs/btrfs/send.c
5608
hdr->crc = 0;
fs/btrfs/send.c
5611
hdr->crc = cpu_to_le32(crc);
fs/btrfs/send.c
662
struct btrfs_tlv_header *hdr;
fs/btrfs/send.c
663
int total_len = sizeof(*hdr) + len;
fs/btrfs/send.c
672
hdr = (struct btrfs_tlv_header *) (sctx->send_buf + sctx->send_size);
fs/btrfs/send.c
673
put_unaligned_le16(attr, &hdr->tlv_type);
fs/btrfs/send.c
674
put_unaligned_le16(len, &hdr->tlv_len);
fs/btrfs/send.c
675
memcpy(hdr + 1, data, len);
fs/btrfs/send.c
763
struct btrfs_stream_header hdr;
fs/btrfs/send.c
765
strscpy(hdr.magic, BTRFS_SEND_STREAM_MAGIC);
fs/btrfs/send.c
766
hdr.version = cpu_to_le32(sctx->proto);
fs/btrfs/send.c
767
return write_buf(sctx->send_filp, &hdr, sizeof(hdr),
fs/btrfs/send.c
776
struct btrfs_cmd_header *hdr;
fs/btrfs/send.c
788
sctx->send_size += sizeof(*hdr);
fs/btrfs/send.c
789
hdr = (struct btrfs_cmd_header *)sctx->send_buf;
fs/btrfs/send.c
790
put_unaligned_le16(cmd, &hdr->cmd);
fs/btrfs/send.c
798
struct btrfs_cmd_header *hdr;
fs/btrfs/send.c
801
hdr = (struct btrfs_cmd_header *)sctx->send_buf;
fs/btrfs/send.c
802
put_unaligned_le32(sctx->send_size - sizeof(*hdr), &hdr->len);
fs/btrfs/send.c
803
put_unaligned_le32(0, &hdr->crc);
fs/btrfs/send.c
806
put_unaligned_le32(crc, &hdr->crc);
fs/ceph/caps.c
1262
msg->hdr.version = cpu_to_le16(12);
fs/ceph/caps.c
1263
msg->hdr.tid = cpu_to_le64(arg->flush_tid);
fs/ceph/caps.c
1300
msg->hdr.middle_len = cpu_to_le32(arg->xattr_buf->vec.iov_len);
fs/ceph/caps.c
4340
int msg_version = le16_to_cpu(msg->hdr.version);
fs/ceph/caps.c
4480
handle_cap_flushsnap_ack(inode, le64_to_cpu(msg->hdr.tid),
fs/ceph/caps.c
4543
handle_cap_flush_ack(inode, le64_to_cpu(msg->hdr.tid),
fs/ceph/mds_client.c
1607
msg->hdr.version = cpu_to_le16(7);
fs/ceph/mds_client.c
1608
msg->hdr.compat_version = cpu_to_le16(1);
fs/ceph/mds_client.c
1653
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
fs/ceph/mds_client.c
2343
msg->hdr.version = cpu_to_le16(2);
fs/ceph/mds_client.c
2344
msg->hdr.compat_version = cpu_to_le16(1);
fs/ceph/mds_client.c
2370
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
fs/ceph/mds_client.c
2390
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
fs/ceph/mds_client.c
3127
msg->hdr.tid = cpu_to_le64(req->r_tid);
fs/ceph/mds_client.c
3161
msg->hdr.version = cpu_to_le16(3);
fs/ceph/mds_client.c
3166
msg->hdr.version = cpu_to_le16(4);
fs/ceph/mds_client.c
3172
msg->hdr.version = cpu_to_le16(6);
fs/ceph/mds_client.c
3181
msg->hdr.version = cpu_to_le16(6);
fs/ceph/mds_client.c
3262
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
fs/ceph/mds_client.c
3267
msg->hdr.data_len = cpu_to_le32(pagelist->length);
fs/ceph/mds_client.c
3269
msg->hdr.data_len = 0;
fs/ceph/mds_client.c
3272
msg->hdr.data_off = cpu_to_le16(0);
fs/ceph/mds_client.c
3382
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
fs/ceph/mds_client.c
3874
tid = le64_to_cpu(msg->hdr.tid);
fs/ceph/mds_client.c
4072
u64 tid = le64_to_cpu(msg->hdr.tid);
fs/ceph/mds_client.c
4172
int msg_version = le16_to_cpu(msg->hdr.version);
fs/ceph/mds_client.c
4578
reply->hdr.version = cpu_to_le16(5);
fs/ceph/mds_client.c
4579
reply->hdr.compat_version = cpu_to_le16(4);
fs/ceph/mds_client.c
4581
reply->hdr.data_len = cpu_to_le32(recon_state->pagelist->length);
fs/ceph/mds_client.c
5030
reply->hdr.version = cpu_to_le16(recon_state.msg_version);
fs/ceph/mds_client.c
5032
reply->hdr.compat_version = cpu_to_le16(4);
fs/ceph/mds_client.c
5034
reply->hdr.data_len = cpu_to_le32(recon_state.pagelist->length);
fs/ceph/mds_client.c
6298
int type = le16_to_cpu(msg->hdr.type);
fs/ceph/mds_client.c
6478
struct ceph_msg_header *hdr, int *skip)
fs/ceph/mds_client.c
6481
int type = (int) le16_to_cpu(hdr->type);
fs/ceph/mds_client.c
6482
int front_len = (int) le32_to_cpu(hdr->front_len);
fs/ceph/metric.c
177
msg->hdr.version = cpu_to_le16(1);
fs/ceph/metric.c
178
msg->hdr.compat_version = cpu_to_le16(1);
fs/ceph/metric.c
179
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
fs/ceph/super.c
787
int type = le16_to_cpu(msg->hdr.type);
fs/coda/psdev.c
107
if (copy_from_user(&hdr, buf, 2 * sizeof(u_int32_t)))
fs/coda/psdev.c
110
if (DOWNCALL(hdr.opcode)) {
fs/coda/psdev.c
116
hdr.opcode, hdr.unique);
fs/coda/psdev.c
122
hdr.opcode, hdr.unique);
fs/coda/psdev.c
133
error = coda_downcall(vcp, hdr.opcode, dcbuf, nbytes);
fs/coda/psdev.c
150
if (tmp->uc_unique == hdr.unique) {
fs/coda/psdev.c
160
__func__, hdr.opcode, hdr.unique);
fs/coda/psdev.c
169
hdr.opcode, hdr.unique);
fs/coda/psdev.c
98
struct coda_in_hdr hdr;
fs/ext4/ext4_extents.h
89
#define EXT4_EXTENT_TAIL_OFFSET(hdr) \
fs/ext4/ext4_extents.h
91
(sizeof(struct ext4_extent) * le16_to_cpu((hdr)->eh_max)))
fs/ext4/xattr.c
134
struct ext4_xattr_header *hdr)
fs/ext4/xattr.c
144
csum = ext4_chksum(csum, (__u8 *)hdr, offset);
fs/ext4/xattr.c
147
csum = ext4_chksum(csum, (__u8 *)hdr + offset,
fs/ext4/xattr.c
156
struct ext4_xattr_header *hdr = BHDR(bh);
fs/ext4/xattr.c
161
ret = (hdr->h_checksum == ext4_xattr_block_csum(inode,
fs/ext4/xattr.c
162
bh->b_blocknr, hdr));
fs/ext4/xattr.h
73
#define IFIRST(hdr) ((struct ext4_xattr_entry *)((hdr)+1))
fs/f2fs/acl.c
51
struct f2fs_acl_header *hdr = (struct f2fs_acl_header *)value;
fs/f2fs/acl.c
52
struct f2fs_acl_entry *entry = (struct f2fs_acl_entry *)(hdr + 1);
fs/f2fs/acl.c
58
if (hdr->a_version != cpu_to_le32(F2FS_ACL_VERSION))
fs/file_table.c
144
struct ctl_table_header *hdr;
fs/file_table.c
146
hdr = register_sysctl_mount_point("fs/binfmt_misc");
fs/file_table.c
147
kmemleak_not_leak(hdr);
fs/freevxfs/vxfs_bmap.c
195
u64 hdr = fs64_to_cpu(sbi, typ->vt_hdr);
fs/freevxfs/vxfs_bmap.c
196
int64_t off = (hdr & VXFS_TYPED_OFFSETMASK);
fs/freevxfs/vxfs_bmap.c
203
switch ((u32)(hdr >> VXFS_TYPED_TYPESHIFT)) {
fs/lockd/svc.c
791
void *hdr;
fs/lockd/svc.c
798
hdr = genlmsg_iput(skb, info);
fs/lockd/svc.c
799
if (!hdr) {
fs/lockd/svc.c
810
genlmsg_end(skb, hdr);
fs/nfs/blocklayout/blocklayout.c
212
struct nfs_pgio_header *hdr;
fs/nfs/blocklayout/blocklayout.c
215
hdr = container_of(task, struct nfs_pgio_header, task);
fs/nfs/blocklayout/blocklayout.c
216
pnfs_ld_read_done(hdr);
fs/nfs/blocklayout/blocklayout.c
222
struct nfs_pgio_header *hdr = data;
fs/nfs/blocklayout/blocklayout.c
224
hdr->task.tk_status = hdr->pnfs_error;
fs/nfs/blocklayout/blocklayout.c
225
INIT_WORK(&hdr->task.u.tk_work, bl_read_cleanup);
fs/nfs/blocklayout/blocklayout.c
226
schedule_work(&hdr->task.u.tk_work);
fs/nfs/blocklayout/blocklayout.c
344
struct nfs_pgio_header *hdr =
fs/nfs/blocklayout/blocklayout.c
349
if (likely(!hdr->pnfs_error)) {
fs/nfs/blocklayout/blocklayout.c
350
struct pnfs_block_layout *bl = BLK_LSEG2EXT(hdr->lseg);
fs/nfs/blocklayout/blocklayout.c
351
u64 start = hdr->args.offset & (loff_t)PAGE_MASK;
fs/nfs/blocklayout/blocklayout.c
352
u64 end = (hdr->args.offset + hdr->args.count +
fs/nfs/blocklayout/blocklayout.c
354
u64 lwb = hdr->args.offset + hdr->args.count;
fs/nfs/blocklayout/blocklayout.c
360
pnfs_ld_write_done(hdr);
fs/nfs/blocklayout/blocklayout.c
366
struct nfs_pgio_header *hdr = data;
fs/nfs/blocklayout/blocklayout.c
368
hdr->task.tk_status = hdr->pnfs_error;
fs/nfs/blocklayout/blocklayout.c
369
hdr->verf.committed = NFS_FILE_SYNC;
fs/nfs/blocklayout/blocklayout.c
370
INIT_WORK(&hdr->task.u.tk_work, bl_write_cleanup);
fs/nfs/blocklayout/blocklayout.c
371
schedule_work(&hdr->task.u.tk_work);
fs/nfs/callback_xdr.c
142
static __be32 decode_compound_hdr_arg(struct xdr_stream *xdr, struct cb_compound_hdr_arg *hdr)
fs/nfs/callback_xdr.c
147
status = decode_string(xdr, &hdr->taglen, &hdr->tag, CB_OP_TAGLEN_MAXSZ);
fs/nfs/callback_xdr.c
153
hdr->minorversion = ntohl(*p++);
fs/nfs/callback_xdr.c
155
if (hdr->minorversion <= NFS4_MAX_MINOR_VERSION) {
fs/nfs/callback_xdr.c
156
hdr->cb_ident = ntohl(*p++); /* ignored by v4.1 and v4.2 */
fs/nfs/callback_xdr.c
160
__func__, hdr->minorversion);
fs/nfs/callback_xdr.c
163
hdr->nops = ntohl(*p);
fs/nfs/callback_xdr.c
676
static __be32 encode_compound_hdr_res(struct xdr_stream *xdr, struct cb_compound_hdr_res *hdr)
fs/nfs/callback_xdr.c
680
hdr->status = xdr_reserve_space(xdr, 4);
fs/nfs/callback_xdr.c
681
if (unlikely(hdr->status == NULL))
fs/nfs/callback_xdr.c
683
status = encode_string(xdr, hdr->taglen, hdr->tag);
fs/nfs/callback_xdr.c
686
hdr->nops = xdr_reserve_space(xdr, 4);
fs/nfs/callback_xdr.c
687
if (unlikely(hdr->nops == NULL))
fs/nfs/direct.c
100
dreq->error = hdr->error;
fs/nfs/direct.c
105
const struct nfs_pgio_header *hdr)
fs/nfs/direct.c
107
loff_t hdr_end = hdr->io_start + hdr->good_bytes;
fs/nfs/direct.c
113
nfs_direct_handle_truncated(dreq, hdr, dreq_len);
fs/nfs/direct.c
276
static void nfs_direct_read_completion(struct nfs_pgio_header *hdr)
fs/nfs/direct.c
279
struct nfs_direct_req *dreq = hdr->dreq;
fs/nfs/direct.c
282
if (test_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/direct.c
287
nfs_direct_count_bytes(dreq, hdr);
fs/nfs/direct.c
292
while (!list_empty(&hdr->pages)) {
fs/nfs/direct.c
293
struct nfs_page *req = nfs_list_entry(hdr->pages.next);
fs/nfs/direct.c
296
if (!PageCompound(page) && bytes < hdr->good_bytes &&
fs/nfs/direct.c
306
hdr->release(hdr);
fs/nfs/direct.c
320
static void nfs_direct_pgio_init(struct nfs_pgio_header *hdr)
fs/nfs/direct.c
322
get_dreq(hdr->dreq);
fs/nfs/direct.c
323
set_bit(NFS_IOHDR_ODIRECT, &hdr->flags);
fs/nfs/direct.c
756
static void nfs_direct_write_completion(struct nfs_pgio_header *hdr)
fs/nfs/direct.c
758
struct nfs_direct_req *dreq = hdr->dreq;
fs/nfs/direct.c
768
if (test_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/direct.c
773
nfs_direct_count_bytes(dreq, hdr);
fs/nfs/direct.c
774
if (test_bit(NFS_IOHDR_UNSTABLE_WRITES, &hdr->flags) &&
fs/nfs/direct.c
775
!test_bit(NFS_IOHDR_ERROR, &hdr->flags)) {
fs/nfs/direct.c
787
while (!list_empty(&hdr->pages)) {
fs/nfs/direct.c
790
req = nfs_list_entry(hdr->pages.next);
fs/nfs/direct.c
794
memcpy(&req->wb_verf, &hdr->verf.verifier,
fs/nfs/direct.c
796
nfs_mark_request_commit(req, hdr->lseg, &cinfo,
fs/nfs/direct.c
797
hdr->ds_commit_idx);
fs/nfs/direct.c
808
hdr->release(hdr);
fs/nfs/direct.c
822
static void nfs_direct_write_reschedule_io(struct nfs_pgio_header *hdr)
fs/nfs/direct.c
824
struct nfs_direct_req *dreq = hdr->dreq;
fs/nfs/direct.c
834
set_bit(NFS_IOHDR_REDO, &hdr->flags);
fs/nfs/direct.c
836
while (!list_empty(&hdr->pages)) {
fs/nfs/direct.c
837
req = nfs_list_entry(hdr->pages.next);
fs/nfs/direct.c
87
const struct nfs_pgio_header *hdr,
fs/nfs/direct.c
90
if (!(test_bit(NFS_IOHDR_ERROR, &hdr->flags) ||
fs/nfs/direct.c
91
test_bit(NFS_IOHDR_EOF, &hdr->flags)))
fs/nfs/direct.c
99
if (test_bit(NFS_IOHDR_ERROR, &hdr->flags) && !dreq->error)
fs/nfs/filelayout/filelayout.c
100
(unsigned long long)hdr->args.offset);
fs/nfs/filelayout/filelayout.c
102
task->tk_status = pnfs_write_done_resend_to_mds(hdr);
fs/nfs/filelayout/filelayout.c
106
static void filelayout_reset_read(struct nfs_pgio_header *hdr)
fs/nfs/filelayout/filelayout.c
108
struct rpc_task *task = &hdr->task;
fs/nfs/filelayout/filelayout.c
110
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/filelayout/filelayout.c
113
hdr->task.tk_pid,
fs/nfs/filelayout/filelayout.c
114
hdr->inode->i_sb->s_id,
fs/nfs/filelayout/filelayout.c
115
(unsigned long long)NFS_FILEID(hdr->inode),
fs/nfs/filelayout/filelayout.c
116
hdr->args.count,
fs/nfs/filelayout/filelayout.c
117
(unsigned long long)hdr->args.offset);
fs/nfs/filelayout/filelayout.c
119
task->tk_status = pnfs_read_done_resend_to_mds(hdr);
fs/nfs/filelayout/filelayout.c
206
struct nfs_pgio_header *hdr)
fs/nfs/filelayout/filelayout.c
210
trace_nfs4_pnfs_read(hdr, task->tk_status);
fs/nfs/filelayout/filelayout.c
211
err = filelayout_async_handle_error(task, hdr->args.context->state,
fs/nfs/filelayout/filelayout.c
212
hdr->ds_clp, hdr->lseg);
fs/nfs/filelayout/filelayout.c
216
filelayout_reset_read(hdr);
fs/nfs/filelayout/filelayout.c
232
filelayout_set_layoutcommit(struct nfs_pgio_header *hdr)
fs/nfs/filelayout/filelayout.c
236
if (FILELAYOUT_LSEG(hdr->lseg)->commit_through_mds ||
fs/nfs/filelayout/filelayout.c
237
hdr->res.verf->committed == NFS_FILE_SYNC)
fs/nfs/filelayout/filelayout.c
239
if (hdr->res.verf->committed == NFS_DATA_SYNC)
fs/nfs/filelayout/filelayout.c
240
end_offs = hdr->mds_offset + (loff_t)hdr->res.count;
fs/nfs/filelayout/filelayout.c
243
pnfs_set_layoutcommit(hdr->inode, hdr->lseg, end_offs);
fs/nfs/filelayout/filelayout.c
244
dprintk("%s inode %lu pls_end_pos %lu\n", __func__, hdr->inode->i_ino,
fs/nfs/filelayout/filelayout.c
245
(unsigned long) NFS_I(hdr->inode)->layout->plh_lwb);
fs/nfs/filelayout/filelayout.c
270
struct nfs_pgio_header *hdr = data;
fs/nfs/filelayout/filelayout.c
272
if (unlikely(test_bit(NFS_CONTEXT_BAD, &hdr->args.context->flags))) {
fs/nfs/filelayout/filelayout.c
276
if (filelayout_reset_to_mds(hdr->lseg)) {
fs/nfs/filelayout/filelayout.c
278
filelayout_reset_read(hdr);
fs/nfs/filelayout/filelayout.c
282
hdr->pgio_done_cb = filelayout_read_done_cb;
fs/nfs/filelayout/filelayout.c
284
if (nfs4_setup_sequence(hdr->ds_clp,
fs/nfs/filelayout/filelayout.c
285
&hdr->args.seq_args,
fs/nfs/filelayout/filelayout.c
286
&hdr->res.seq_res,
fs/nfs/filelayout/filelayout.c
289
if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context,
fs/nfs/filelayout/filelayout.c
290
hdr->args.lock_context, FMODE_READ) == -EIO)
fs/nfs/filelayout/filelayout.c
296
struct nfs_pgio_header *hdr = data;
fs/nfs/filelayout/filelayout.c
298
if (test_bit(NFS_IOHDR_REDO, &hdr->flags) &&
fs/nfs/filelayout/filelayout.c
300
nfs41_sequence_done(task, &hdr->res.seq_res);
fs/nfs/filelayout/filelayout.c
305
hdr->mds_ops->rpc_call_done(task, data);
fs/nfs/filelayout/filelayout.c
310
struct nfs_pgio_header *hdr = data;
fs/nfs/filelayout/filelayout.c
312
rpc_count_iostats(task, NFS_SERVER(hdr->inode)->client->cl_metrics);
fs/nfs/filelayout/filelayout.c
316
struct nfs_pgio_header *hdr)
fs/nfs/filelayout/filelayout.c
320
trace_nfs4_pnfs_write(hdr, task->tk_status);
fs/nfs/filelayout/filelayout.c
321
err = filelayout_async_handle_error(task, hdr->args.context->state,
fs/nfs/filelayout/filelayout.c
322
hdr->ds_clp, hdr->lseg);
fs/nfs/filelayout/filelayout.c
326
filelayout_reset_write(hdr);
fs/nfs/filelayout/filelayout.c
333
filelayout_set_layoutcommit(hdr);
fs/nfs/filelayout/filelayout.c
336
hdr->fattr.valid = 0;
fs/nfs/filelayout/filelayout.c
338
nfs_writeback_update_inode(hdr);
fs/nfs/filelayout/filelayout.c
368
struct nfs_pgio_header *hdr = data;
fs/nfs/filelayout/filelayout.c
370
if (unlikely(test_bit(NFS_CONTEXT_BAD, &hdr->args.context->flags))) {
fs/nfs/filelayout/filelayout.c
374
if (filelayout_reset_to_mds(hdr->lseg)) {
fs/nfs/filelayout/filelayout.c
376
filelayout_reset_write(hdr);
fs/nfs/filelayout/filelayout.c
380
if (nfs4_setup_sequence(hdr->ds_clp,
fs/nfs/filelayout/filelayout.c
381
&hdr->args.seq_args,
fs/nfs/filelayout/filelayout.c
382
&hdr->res.seq_res,
fs/nfs/filelayout/filelayout.c
385
if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context,
fs/nfs/filelayout/filelayout.c
386
hdr->args.lock_context, FMODE_WRITE) == -EIO)
fs/nfs/filelayout/filelayout.c
392
struct nfs_pgio_header *hdr = data;
fs/nfs/filelayout/filelayout.c
394
if (test_bit(NFS_IOHDR_REDO, &hdr->flags) &&
fs/nfs/filelayout/filelayout.c
396
nfs41_sequence_done(task, &hdr->res.seq_res);
fs/nfs/filelayout/filelayout.c
401
hdr->mds_ops->rpc_call_done(task, data);
fs/nfs/filelayout/filelayout.c
406
struct nfs_pgio_header *hdr = data;
fs/nfs/filelayout/filelayout.c
408
rpc_count_iostats(task, NFS_SERVER(hdr->inode)->client->cl_metrics);
fs/nfs/filelayout/filelayout.c
450
filelayout_read_pagelist(struct nfs_pgio_header *hdr)
fs/nfs/filelayout/filelayout.c
452
struct pnfs_layout_segment *lseg = hdr->lseg;
fs/nfs/filelayout/filelayout.c
455
loff_t offset = hdr->args.offset;
fs/nfs/filelayout/filelayout.c
460
__func__, hdr->inode->i_ino,
fs/nfs/filelayout/filelayout.c
461
hdr->args.pgbase, (size_t)hdr->args.count, offset);
fs/nfs/filelayout/filelayout.c
470
ds_clnt = nfs4_find_or_create_ds_client(ds->ds_clp, hdr->inode);
fs/nfs/filelayout/filelayout.c
479
hdr->ds_clp = ds->ds_clp;
fs/nfs/filelayout/filelayout.c
480
hdr->ds_commit_idx = idx;
fs/nfs/filelayout/filelayout.c
483
hdr->args.fh = fh;
fs/nfs/filelayout/filelayout.c
485
hdr->args.offset = filelayout_get_dserver_offset(lseg, offset);
fs/nfs/filelayout/filelayout.c
486
hdr->mds_offset = offset;
fs/nfs/filelayout/filelayout.c
489
nfs_initiate_pgio(ds_clnt, hdr, hdr->cred,
fs/nfs/filelayout/filelayout.c
490
NFS_PROTO(hdr->inode), &filelayout_read_call_ops,
fs/nfs/filelayout/filelayout.c
497
filelayout_write_pagelist(struct nfs_pgio_header *hdr, int sync)
fs/nfs/filelayout/filelayout.c
499
struct pnfs_layout_segment *lseg = hdr->lseg;
fs/nfs/filelayout/filelayout.c
502
loff_t offset = hdr->args.offset;
fs/nfs/filelayout/filelayout.c
513
ds_clnt = nfs4_find_or_create_ds_client(ds->ds_clp, hdr->inode);
fs/nfs/filelayout/filelayout.c
518
__func__, hdr->inode->i_ino, sync, (size_t) hdr->args.count,
fs/nfs/filelayout/filelayout.c
521
hdr->pgio_done_cb = filelayout_write_done_cb;
fs/nfs/filelayout/filelayout.c
523
hdr->ds_clp = ds->ds_clp;
fs/nfs/filelayout/filelayout.c
524
hdr->ds_commit_idx = idx;
fs/nfs/filelayout/filelayout.c
527
hdr->args.fh = fh;
fs/nfs/filelayout/filelayout.c
528
hdr->args.offset = filelayout_get_dserver_offset(lseg, offset);
fs/nfs/filelayout/filelayout.c
531
nfs_initiate_pgio(ds_clnt, hdr, hdr->cred,
fs/nfs/filelayout/filelayout.c
532
NFS_PROTO(hdr->inode), &filelayout_write_call_ops,
fs/nfs/filelayout/filelayout.c
89
static void filelayout_reset_write(struct nfs_pgio_header *hdr)
fs/nfs/filelayout/filelayout.c
91
struct rpc_task *task = &hdr->task;
fs/nfs/filelayout/filelayout.c
93
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/filelayout/filelayout.c
96
hdr->task.tk_pid,
fs/nfs/filelayout/filelayout.c
97
hdr->inode->i_sb->s_id,
fs/nfs/filelayout/filelayout.c
98
(unsigned long long)NFS_FILEID(hdr->inode),
fs/nfs/filelayout/filelayout.c
99
hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1222
static void ff_layout_reset_write(struct nfs_pgio_header *hdr, bool retry_pnfs)
fs/nfs/flexfilelayout/flexfilelayout.c
1224
struct rpc_task *task = &hdr->task;
fs/nfs/flexfilelayout/flexfilelayout.c
1226
pnfs_layoutcommit_inode(hdr->inode, false);
fs/nfs/flexfilelayout/flexfilelayout.c
1231
hdr->task.tk_pid,
fs/nfs/flexfilelayout/flexfilelayout.c
1232
hdr->inode->i_sb->s_id,
fs/nfs/flexfilelayout/flexfilelayout.c
1233
(unsigned long long)NFS_FILEID(hdr->inode),
fs/nfs/flexfilelayout/flexfilelayout.c
1234
hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1235
(unsigned long long)hdr->args.offset);
fs/nfs/flexfilelayout/flexfilelayout.c
1237
hdr->completion_ops->reschedule_io(hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1241
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/flexfilelayout/flexfilelayout.c
1244
hdr->task.tk_pid,
fs/nfs/flexfilelayout/flexfilelayout.c
1245
hdr->inode->i_sb->s_id,
fs/nfs/flexfilelayout/flexfilelayout.c
1246
(unsigned long long)NFS_FILEID(hdr->inode),
fs/nfs/flexfilelayout/flexfilelayout.c
1247
hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1248
(unsigned long long)hdr->args.offset);
fs/nfs/flexfilelayout/flexfilelayout.c
1250
trace_pnfs_mds_fallback_write_done(hdr->inode,
fs/nfs/flexfilelayout/flexfilelayout.c
1251
hdr->args.offset, hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1252
IOMODE_RW, NFS_I(hdr->inode)->layout,
fs/nfs/flexfilelayout/flexfilelayout.c
1253
hdr->lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
1254
task->tk_status = pnfs_write_done_resend_to_mds(hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1258
static void ff_layout_resend_pnfs_read(struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
1260
u32 idx = hdr->pgio_mirror_idx + 1;
fs/nfs/flexfilelayout/flexfilelayout.c
1265
ds = ff_layout_choose_any_ds_for_read(hdr->lseg, idx, &new_idx,
fs/nfs/flexfilelayout/flexfilelayout.c
1266
hdr->args.offset, &dss_id);
fs/nfs/flexfilelayout/flexfilelayout.c
1268
pnfs_error_mark_layout_for_return(hdr->inode, hdr->lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
1270
ff_layout_send_layouterror(hdr->lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
1271
pnfs_read_resend_pnfs(hdr, new_idx);
fs/nfs/flexfilelayout/flexfilelayout.c
1274
static void ff_layout_reset_read(struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
1276
struct rpc_task *task = &hdr->task;
fs/nfs/flexfilelayout/flexfilelayout.c
1278
pnfs_layoutcommit_inode(hdr->inode, false);
fs/nfs/flexfilelayout/flexfilelayout.c
1279
pnfs_error_mark_layout_for_return(hdr->inode, hdr->lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
1281
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/flexfilelayout/flexfilelayout.c
1284
hdr->task.tk_pid,
fs/nfs/flexfilelayout/flexfilelayout.c
1285
hdr->inode->i_sb->s_id,
fs/nfs/flexfilelayout/flexfilelayout.c
1286
(unsigned long long)NFS_FILEID(hdr->inode),
fs/nfs/flexfilelayout/flexfilelayout.c
1287
hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1288
(unsigned long long)hdr->args.offset);
fs/nfs/flexfilelayout/flexfilelayout.c
1290
trace_pnfs_mds_fallback_read_done(hdr->inode,
fs/nfs/flexfilelayout/flexfilelayout.c
1291
hdr->args.offset, hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1292
IOMODE_READ, NFS_I(hdr->inode)->layout,
fs/nfs/flexfilelayout/flexfilelayout.c
1293
hdr->lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
1294
task->tk_status = pnfs_read_done_resend_to_mds(hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1563
struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
1565
struct nfs4_ff_layout_segment *flseg = FF_LAYOUT_LSEG(hdr->lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
1568
flseg->mirror_array[hdr->pgio_mirror_idx]->dss_count,
fs/nfs/flexfilelayout/flexfilelayout.c
1569
hdr->args.offset);
fs/nfs/flexfilelayout/flexfilelayout.c
1573
ff_layout_io_track_ds_error(hdr->lseg,
fs/nfs/flexfilelayout/flexfilelayout.c
1574
hdr->pgio_mirror_idx, dss_id,
fs/nfs/flexfilelayout/flexfilelayout.c
1575
hdr->args.offset, hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1576
&hdr->res.op_status, OP_READ,
fs/nfs/flexfilelayout/flexfilelayout.c
1578
trace_ff_layout_read_error(hdr, task->tk_status);
fs/nfs/flexfilelayout/flexfilelayout.c
1581
err = ff_layout_async_handle_error(task, hdr->res.op_status,
fs/nfs/flexfilelayout/flexfilelayout.c
1582
hdr->args.context->state,
fs/nfs/flexfilelayout/flexfilelayout.c
1583
hdr->ds_clp, hdr->lseg,
fs/nfs/flexfilelayout/flexfilelayout.c
1584
hdr->pgio_mirror_idx,
fs/nfs/flexfilelayout/flexfilelayout.c
1587
trace_nfs4_pnfs_read(hdr, err);
fs/nfs/flexfilelayout/flexfilelayout.c
1588
clear_bit(NFS_IOHDR_RESEND_PNFS, &hdr->flags);
fs/nfs/flexfilelayout/flexfilelayout.c
1589
clear_bit(NFS_IOHDR_RESEND_MDS, &hdr->flags);
fs/nfs/flexfilelayout/flexfilelayout.c
1592
set_bit(NFS_IOHDR_RESEND_PNFS, &hdr->flags);
fs/nfs/flexfilelayout/flexfilelayout.c
1595
set_bit(NFS_IOHDR_RESEND_MDS, &hdr->flags);
fs/nfs/flexfilelayout/flexfilelayout.c
1639
struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
1644
if (test_and_set_bit(NFS_IOHDR_STAT, &hdr->flags))
fs/nfs/flexfilelayout/flexfilelayout.c
1647
mirror = FF_LAYOUT_COMP(hdr->lseg, hdr->pgio_mirror_idx);
fs/nfs/flexfilelayout/flexfilelayout.c
1649
FF_LAYOUT_LSEG(hdr->lseg)->stripe_unit,
fs/nfs/flexfilelayout/flexfilelayout.c
1651
hdr->args.offset);
fs/nfs/flexfilelayout/flexfilelayout.c
1654
hdr->inode,
fs/nfs/flexfilelayout/flexfilelayout.c
1657
hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1662
struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
1667
if (!test_and_clear_bit(NFS_IOHDR_STAT, &hdr->flags))
fs/nfs/flexfilelayout/flexfilelayout.c
1670
mirror = FF_LAYOUT_COMP(hdr->lseg, hdr->pgio_mirror_idx);
fs/nfs/flexfilelayout/flexfilelayout.c
1672
FF_LAYOUT_LSEG(hdr->lseg)->stripe_unit,
fs/nfs/flexfilelayout/flexfilelayout.c
1674
hdr->args.offset);
fs/nfs/flexfilelayout/flexfilelayout.c
1680
hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1681
hdr->res.count);
fs/nfs/flexfilelayout/flexfilelayout.c
1682
set_bit(NFS_LSEG_LAYOUTRETURN, &hdr->lseg->pls_flags);
fs/nfs/flexfilelayout/flexfilelayout.c
1686
struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
1688
if (unlikely(test_bit(NFS_CONTEXT_BAD, &hdr->args.context->flags))) {
fs/nfs/flexfilelayout/flexfilelayout.c
1693
if (!pnfs_is_valid_lseg(hdr->lseg)) {
fs/nfs/flexfilelayout/flexfilelayout.c
1698
ff_layout_read_record_layoutstats_start(task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1709
struct nfs_pgio_header *hdr = data;
fs/nfs/flexfilelayout/flexfilelayout.c
1711
if (ff_layout_read_prepare_common(task, hdr))
fs/nfs/flexfilelayout/flexfilelayout.c
1719
struct nfs_pgio_header *hdr = data;
fs/nfs/flexfilelayout/flexfilelayout.c
1721
if (nfs4_setup_sequence(hdr->ds_clp,
fs/nfs/flexfilelayout/flexfilelayout.c
1722
&hdr->args.seq_args,
fs/nfs/flexfilelayout/flexfilelayout.c
1723
&hdr->res.seq_res,
fs/nfs/flexfilelayout/flexfilelayout.c
1727
ff_layout_read_prepare_common(task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1732
struct nfs_pgio_header *hdr = data;
fs/nfs/flexfilelayout/flexfilelayout.c
1734
if (test_bit(NFS_IOHDR_REDO, &hdr->flags) &&
fs/nfs/flexfilelayout/flexfilelayout.c
1736
nfs4_sequence_done(task, &hdr->res.seq_res);
fs/nfs/flexfilelayout/flexfilelayout.c
1741
hdr->mds_ops->rpc_call_done(task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1746
struct nfs_pgio_header *hdr = data;
fs/nfs/flexfilelayout/flexfilelayout.c
1748
ff_layout_read_record_layoutstats_done(task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1750
&NFS_CLIENT(hdr->inode)->cl_metrics[NFSPROC4_CLNT_READ]);
fs/nfs/flexfilelayout/flexfilelayout.c
1755
struct nfs_pgio_header *hdr = data;
fs/nfs/flexfilelayout/flexfilelayout.c
1757
ff_layout_read_record_layoutstats_done(&hdr->task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1758
if (test_bit(NFS_IOHDR_RESEND_PNFS, &hdr->flags))
fs/nfs/flexfilelayout/flexfilelayout.c
1759
ff_layout_resend_pnfs_read(hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1760
else if (test_bit(NFS_IOHDR_RESEND_MDS, &hdr->flags))
fs/nfs/flexfilelayout/flexfilelayout.c
1761
ff_layout_reset_read(hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1767
struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
1769
struct nfs4_ff_layout_segment *flseg = FF_LAYOUT_LSEG(hdr->lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
1772
flseg->mirror_array[hdr->pgio_mirror_idx]->dss_count,
fs/nfs/flexfilelayout/flexfilelayout.c
1773
hdr->args.offset);
fs/nfs/flexfilelayout/flexfilelayout.c
1778
ff_layout_io_track_ds_error(hdr->lseg,
fs/nfs/flexfilelayout/flexfilelayout.c
1779
hdr->pgio_mirror_idx, dss_id,
fs/nfs/flexfilelayout/flexfilelayout.c
1780
hdr->args.offset, hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1781
&hdr->res.op_status, OP_WRITE,
fs/nfs/flexfilelayout/flexfilelayout.c
1783
trace_ff_layout_write_error(hdr, task->tk_status);
fs/nfs/flexfilelayout/flexfilelayout.c
1786
err = ff_layout_async_handle_error(task, hdr->res.op_status,
fs/nfs/flexfilelayout/flexfilelayout.c
1787
hdr->args.context->state,
fs/nfs/flexfilelayout/flexfilelayout.c
1788
hdr->ds_clp, hdr->lseg,
fs/nfs/flexfilelayout/flexfilelayout.c
1789
hdr->pgio_mirror_idx,
fs/nfs/flexfilelayout/flexfilelayout.c
1792
trace_nfs4_pnfs_write(hdr, err);
fs/nfs/flexfilelayout/flexfilelayout.c
1793
clear_bit(NFS_IOHDR_RESEND_PNFS, &hdr->flags);
fs/nfs/flexfilelayout/flexfilelayout.c
1794
clear_bit(NFS_IOHDR_RESEND_MDS, &hdr->flags);
fs/nfs/flexfilelayout/flexfilelayout.c
1797
set_bit(NFS_IOHDR_RESEND_PNFS, &hdr->flags);
fs/nfs/flexfilelayout/flexfilelayout.c
1800
set_bit(NFS_IOHDR_RESEND_MDS, &hdr->flags);
fs/nfs/flexfilelayout/flexfilelayout.c
1809
if (hdr->res.verf->committed == NFS_FILE_SYNC ||
fs/nfs/flexfilelayout/flexfilelayout.c
1810
hdr->res.verf->committed == NFS_DATA_SYNC)
fs/nfs/flexfilelayout/flexfilelayout.c
1811
end_offs = hdr->mds_offset + (loff_t)hdr->res.count;
fs/nfs/flexfilelayout/flexfilelayout.c
1814
ff_layout_set_layoutcommit(hdr->inode, hdr->lseg, end_offs);
fs/nfs/flexfilelayout/flexfilelayout.c
1817
hdr->fattr.valid = 0;
fs/nfs/flexfilelayout/flexfilelayout.c
1819
nfs_writeback_update_inode(hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1864
struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
1869
if (test_and_set_bit(NFS_IOHDR_STAT, &hdr->flags))
fs/nfs/flexfilelayout/flexfilelayout.c
1872
mirror = FF_LAYOUT_COMP(hdr->lseg, hdr->pgio_mirror_idx);
fs/nfs/flexfilelayout/flexfilelayout.c
1874
FF_LAYOUT_LSEG(hdr->lseg)->stripe_unit,
fs/nfs/flexfilelayout/flexfilelayout.c
1876
hdr->args.offset);
fs/nfs/flexfilelayout/flexfilelayout.c
1879
hdr->inode,
fs/nfs/flexfilelayout/flexfilelayout.c
1882
hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1887
struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
1892
if (!test_and_clear_bit(NFS_IOHDR_STAT, &hdr->flags))
fs/nfs/flexfilelayout/flexfilelayout.c
1895
mirror = FF_LAYOUT_COMP(hdr->lseg, hdr->pgio_mirror_idx);
fs/nfs/flexfilelayout/flexfilelayout.c
1897
FF_LAYOUT_LSEG(hdr->lseg)->stripe_unit,
fs/nfs/flexfilelayout/flexfilelayout.c
1899
hdr->args.offset);
fs/nfs/flexfilelayout/flexfilelayout.c
1905
hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1906
hdr->res.count,
fs/nfs/flexfilelayout/flexfilelayout.c
1907
hdr->res.verf->committed);
fs/nfs/flexfilelayout/flexfilelayout.c
1908
set_bit(NFS_LSEG_LAYOUTRETURN, &hdr->lseg->pls_flags);
fs/nfs/flexfilelayout/flexfilelayout.c
1912
struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
1914
if (unlikely(test_bit(NFS_CONTEXT_BAD, &hdr->args.context->flags))) {
fs/nfs/flexfilelayout/flexfilelayout.c
1919
if (!pnfs_is_valid_lseg(hdr->lseg)) {
fs/nfs/flexfilelayout/flexfilelayout.c
1924
ff_layout_write_record_layoutstats_start(task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1930
struct nfs_pgio_header *hdr = data;
fs/nfs/flexfilelayout/flexfilelayout.c
1932
if (ff_layout_write_prepare_common(task, hdr))
fs/nfs/flexfilelayout/flexfilelayout.c
1940
struct nfs_pgio_header *hdr = data;
fs/nfs/flexfilelayout/flexfilelayout.c
1942
if (nfs4_setup_sequence(hdr->ds_clp,
fs/nfs/flexfilelayout/flexfilelayout.c
1943
&hdr->args.seq_args,
fs/nfs/flexfilelayout/flexfilelayout.c
1944
&hdr->res.seq_res,
fs/nfs/flexfilelayout/flexfilelayout.c
1948
ff_layout_write_prepare_common(task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1953
struct nfs_pgio_header *hdr = data;
fs/nfs/flexfilelayout/flexfilelayout.c
1955
if (test_bit(NFS_IOHDR_REDO, &hdr->flags) &&
fs/nfs/flexfilelayout/flexfilelayout.c
1957
nfs4_sequence_done(task, &hdr->res.seq_res);
fs/nfs/flexfilelayout/flexfilelayout.c
1962
hdr->mds_ops->rpc_call_done(task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1967
struct nfs_pgio_header *hdr = data;
fs/nfs/flexfilelayout/flexfilelayout.c
1969
ff_layout_write_record_layoutstats_done(task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1971
&NFS_CLIENT(hdr->inode)->cl_metrics[NFSPROC4_CLNT_WRITE]);
fs/nfs/flexfilelayout/flexfilelayout.c
1976
struct nfs_pgio_header *hdr = data;
fs/nfs/flexfilelayout/flexfilelayout.c
1978
ff_layout_write_record_layoutstats_done(&hdr->task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
1979
if (test_bit(NFS_IOHDR_RESEND_PNFS, &hdr->flags)) {
fs/nfs/flexfilelayout/flexfilelayout.c
1980
ff_layout_send_layouterror(hdr->lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
1981
ff_layout_reset_write(hdr, true);
fs/nfs/flexfilelayout/flexfilelayout.c
1982
} else if (test_bit(NFS_IOHDR_RESEND_MDS, &hdr->flags))
fs/nfs/flexfilelayout/flexfilelayout.c
1983
ff_layout_reset_write(hdr, false);
fs/nfs/flexfilelayout/flexfilelayout.c
2124
ff_layout_read_pagelist(struct nfs_pgio_header *hdr)
fs/nfs/flexfilelayout/flexfilelayout.c
2126
struct pnfs_layout_segment *lseg = hdr->lseg;
fs/nfs/flexfilelayout/flexfilelayout.c
2132
loff_t offset = hdr->args.offset;
fs/nfs/flexfilelayout/flexfilelayout.c
2133
u32 idx = hdr->pgio_mirror_idx;
fs/nfs/flexfilelayout/flexfilelayout.c
2140
__func__, hdr->inode->i_ino,
fs/nfs/flexfilelayout/flexfilelayout.c
2141
hdr->args.pgbase, (size_t)hdr->args.count, offset);
fs/nfs/flexfilelayout/flexfilelayout.c
2155
hdr->inode, dss_id);
fs/nfs/flexfilelayout/flexfilelayout.c
2159
ds_cred = ff_layout_get_ds_cred(mirror, &lseg->pls_range, hdr->cred, dss_id);
fs/nfs/flexfilelayout/flexfilelayout.c
2168
hdr->pgio_done_cb = ff_layout_read_done_cb;
fs/nfs/flexfilelayout/flexfilelayout.c
2170
hdr->ds_clp = ds->ds_clp;
fs/nfs/flexfilelayout/flexfilelayout.c
2173
hdr->args.fh = fh;
fs/nfs/flexfilelayout/flexfilelayout.c
2175
nfs4_ff_layout_select_ds_stateid(mirror, dss_id, &hdr->args.stateid);
fs/nfs/flexfilelayout/flexfilelayout.c
2181
hdr->args.offset = offset;
fs/nfs/flexfilelayout/flexfilelayout.c
2182
hdr->mds_offset = offset;
fs/nfs/flexfilelayout/flexfilelayout.c
2188
hdr->task.tk_start = ktime_get();
fs/nfs/flexfilelayout/flexfilelayout.c
2189
ff_layout_read_record_layoutstats_start(&hdr->task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
2193
nfs_initiate_pgio(ds_clnt, hdr, ds_cred, ds->ds_clp->rpc_ops,
fs/nfs/flexfilelayout/flexfilelayout.c
2203
trace_pnfs_mds_fallback_read_pagelist(hdr->inode,
fs/nfs/flexfilelayout/flexfilelayout.c
2204
hdr->args.offset, hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
2205
IOMODE_READ, NFS_I(hdr->inode)->layout, lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
2211
ff_layout_write_pagelist(struct nfs_pgio_header *hdr, int sync)
fs/nfs/flexfilelayout/flexfilelayout.c
2213
struct pnfs_layout_segment *lseg = hdr->lseg;
fs/nfs/flexfilelayout/flexfilelayout.c
2219
loff_t offset = hdr->args.offset;
fs/nfs/flexfilelayout/flexfilelayout.c
2222
u32 idx = hdr->pgio_mirror_idx;
fs/nfs/flexfilelayout/flexfilelayout.c
2238
hdr->inode, dss_id);
fs/nfs/flexfilelayout/flexfilelayout.c
2242
ds_cred = ff_layout_get_ds_cred(mirror, &lseg->pls_range, hdr->cred, dss_id);
fs/nfs/flexfilelayout/flexfilelayout.c
2249
__func__, hdr->inode->i_ino, sync, (size_t) hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
2253
hdr->pgio_done_cb = ff_layout_write_done_cb;
fs/nfs/flexfilelayout/flexfilelayout.c
2255
hdr->ds_clp = ds->ds_clp;
fs/nfs/flexfilelayout/flexfilelayout.c
2256
hdr->ds_commit_idx = calc_commit_idx(lseg, idx, dss_id);
fs/nfs/flexfilelayout/flexfilelayout.c
2259
hdr->args.fh = fh;
fs/nfs/flexfilelayout/flexfilelayout.c
2261
nfs4_ff_layout_select_ds_stateid(mirror, dss_id, &hdr->args.stateid);
fs/nfs/flexfilelayout/flexfilelayout.c
2267
hdr->args.offset = offset;
fs/nfs/flexfilelayout/flexfilelayout.c
2273
hdr->task.tk_start = ktime_get();
fs/nfs/flexfilelayout/flexfilelayout.c
2274
ff_layout_write_record_layoutstats_start(&hdr->task, hdr);
fs/nfs/flexfilelayout/flexfilelayout.c
2278
nfs_initiate_pgio(ds_clnt, hdr, ds_cred, ds->ds_clp->rpc_ops,
fs/nfs/flexfilelayout/flexfilelayout.c
2288
trace_pnfs_mds_fallback_write_pagelist(hdr->inode,
fs/nfs/flexfilelayout/flexfilelayout.c
2289
hdr->args.offset, hdr->args.count,
fs/nfs/flexfilelayout/flexfilelayout.c
2290
IOMODE_RW, NFS_I(hdr->inode)->layout, lseg);
fs/nfs/flexfilelayout/flexfilelayout.c
2379
const struct nfs_pgio_header *hdr,
fs/nfs/flexfilelayout/flexfilelayout.c
2382
return hdr->lseg == lseg;
fs/nfs/flexfilelayout/flexfilelayout.c
43
struct nfs_pgio_header *hdr);
fs/nfs/fscache.c
337
void nfs_netfs_initiate_read(struct nfs_pgio_header *hdr)
fs/nfs/fscache.c
339
struct nfs_netfs_io_data *netfs = hdr->netfs;
fs/nfs/fscache.c
360
void nfs_netfs_read_completion(struct nfs_pgio_header *hdr)
fs/nfs/fscache.c
362
struct nfs_netfs_io_data *netfs = hdr->netfs;
fs/nfs/fscache.c
369
if (test_bit(NFS_IOHDR_EOF, &hdr->flags) &&
fs/nfs/fscache.c
374
if (hdr->error)
fs/nfs/fscache.c
375
netfs->error = hdr->error;
fs/nfs/fscache.c
377
atomic64_add(hdr->res.count, &netfs->transferred);
fs/nfs/fscache.c
380
hdr->netfs = NULL;
fs/nfs/fscache.h
148
static inline void nfs_netfs_set_pgio_header(struct nfs_pgio_header *hdr,
fs/nfs/fscache.h
151
hdr->netfs = desc->pg_netfs;
fs/nfs/fscache.h
154
struct nfs_pgio_header *hdr)
fs/nfs/fscache.h
156
desc->pg_netfs = hdr->netfs;
fs/nfs/fscache.h
164
static inline void nfs_netfs_initiate_read(struct nfs_pgio_header *hdr) {}
fs/nfs/fscache.h
165
static inline void nfs_netfs_read_completion(struct nfs_pgio_header *hdr) {}
fs/nfs/fscache.h
196
static inline void nfs_netfs_set_pgio_header(struct nfs_pgio_header *hdr,
fs/nfs/fscache.h
199
struct nfs_pgio_header *hdr) {}
fs/nfs/fscache.h
85
extern void nfs_netfs_initiate_read(struct nfs_pgio_header *hdr);
fs/nfs/fscache.h
86
extern void nfs_netfs_read_completion(struct nfs_pgio_header *hdr);
fs/nfs/internal.h
300
struct nfs_pgio_header *hdr,
fs/nfs/internal.h
301
void (*release)(struct nfs_pgio_header *hdr));
fs/nfs/internal.h
302
void nfs_set_pgio_error(struct nfs_pgio_header *hdr, int error, loff_t pos);
fs/nfs/internal.h
309
int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr,
fs/nfs/internal.h
492
struct nfs_pgio_header *hdr,
fs/nfs/internal.h
570
extern bool nfs_read_alloc_scratch(struct nfs_pgio_header *hdr, size_t size);
fs/nfs/internal.h
613
void nfs_writeback_update_inode(struct nfs_pgio_header *hdr);
fs/nfs/localio.c
314
nfs_local_iocb_alloc(struct nfs_pgio_header *hdr,
fs/nfs/localio.c
323
iocb->bvec = kmalloc_objs(struct bio_vec, hdr->page_array.npages, flags);
fs/nfs/localio.c
332
iocb->hdr = hdr;
fs/nfs/localio.c
333
iocb->kiocb.ki_pos = hdr->args.offset;
fs/nfs/localio.c
347
struct nfs_pgio_header *hdr = iocb->hdr;
fs/nfs/localio.c
348
loff_t offset = hdr->args.offset;
fs/nfs/localio.c
377
trace_nfs_local_dio_read(hdr->inode, offset, len, local_dio);
fs/nfs/localio.c
379
trace_nfs_local_dio_write(hdr->inode, offset, len, local_dio);
fs/nfs/localio.c
38
struct nfs_pgio_header *hdr;
fs/nfs/localio.c
449
trace_nfs_local_dio_misaligned(iocb->hdr->inode,
fs/nfs/localio.c
472
struct nfs_pgio_header *hdr = iocb->hdr;
fs/nfs/localio.c
473
struct page **pagevec = hdr->page_array.pagevec;
fs/nfs/localio.c
479
total = hdr->args.count;
fs/nfs/localio.c
480
base = hdr->args.pgbase;
fs/nfs/localio.c
483
while (total && v < hdr->page_array.npages) {
fs/nfs/localio.c
491
len = hdr->args.count - total;
fs/nfs/localio.c
499
if (test_bit(NFS_IOHDR_ODIRECT, &hdr->flags)) {
fs/nfs/localio.c
516
nfs_local_hdr_release(struct nfs_pgio_header *hdr,
fs/nfs/localio.c
519
call_ops->rpc_call_done(&hdr->task, hdr);
fs/nfs/localio.c
520
call_ops->rpc_release(hdr);
fs/nfs/localio.c
524
nfs_local_pgio_init(struct nfs_pgio_header *hdr,
fs/nfs/localio.c
527
hdr->task.tk_ops = call_ops;
fs/nfs/localio.c
528
if (!hdr->task.tk_start)
fs/nfs/localio.c
529
hdr->task.tk_start = ktime_get();
fs/nfs/localio.c
534
struct nfs_pgio_header *hdr = iocb->hdr;
fs/nfs/localio.c
538
hdr->res.count += status;
fs/nfs/localio.c
540
if (hdr->task.tk_status == 0)
fs/nfs/localio.c
541
hdr->res.op_status = NFS4_OK;
fs/nfs/localio.c
543
hdr->res.op_status = nfs_localio_errno_to_nfs4_stat(status);
fs/nfs/localio.c
544
hdr->task.tk_status = status;
fs/nfs/localio.c
559
struct nfs_pgio_header *hdr)
fs/nfs/localio.c
563
iocb->kiocb.ki_pos = hdr->args.offset;
fs/nfs/localio.c
569
switch (hdr->rw_mode) {
fs/nfs/localio.c
572
nfs_local_do_read(iocb, hdr->task.tk_ops);
fs/nfs/localio.c
576
nfs_local_do_write(iocb, hdr->task.tk_ops);
fs/nfs/localio.c
584
hdr->task.tk_status = status;
fs/nfs/localio.c
585
nfs_local_hdr_release(hdr, hdr->task.tk_ops);
fs/nfs/localio.c
591
struct nfs_pgio_header *hdr = iocb->hdr;
fs/nfs/localio.c
592
struct rpc_task *task = &hdr->task;
fs/nfs/localio.c
595
task->tk_ops->rpc_call_done(task, hdr);
fs/nfs/localio.c
599
task->tk_ops->rpc_release(hdr);
fs/nfs/localio.c
601
nfs_local_pgio_restart(iocb, hdr);
fs/nfs/localio.c
618
struct nfs_pgio_header *hdr = iocb->hdr;
fs/nfs/localio.c
620
long status = hdr->task.tk_status;
fs/nfs/localio.c
631
hdr->res.replen = 0;
fs/nfs/localio.c
635
if (hdr->args.offset + hdr->res.count >= i_size_read(file_inode(filp)))
fs/nfs/localio.c
636
hdr->res.eof = true;
fs/nfs/localio.c
639
status > 0 ? status : 0, hdr->res.eof);
fs/nfs/localio.c
705
struct nfs_pgio_header *hdr = iocb->hdr;
fs/nfs/localio.c
708
__func__, hdr->args.count, hdr->args.offset);
fs/nfs/localio.c
710
nfs_local_pgio_init(hdr, call_ops);
fs/nfs/localio.c
711
hdr->res.eof = false;
fs/nfs/localio.c
783
struct nfs_pgio_header *hdr = iocb->hdr;
fs/nfs/localio.c
784
struct nfs_fattr *fattr = hdr->res.fattr;
fs/nfs/localio.c
785
int version = NFS_PROTO(hdr->inode)->version;
fs/nfs/localio.c
813
struct nfs_pgio_header *hdr = iocb->hdr;
fs/nfs/localio.c
814
long status = hdr->task.tk_status;
fs/nfs/localio.c
824
nfs_reset_boot_verifier(hdr->inode);
fs/nfs/localio.c
898
struct nfs_pgio_header *hdr = iocb->hdr;
fs/nfs/localio.c
901
__func__, hdr->args.count, hdr->args.offset,
fs/nfs/localio.c
902
(hdr->args.stable == NFS_UNSTABLE) ? "unstable" : "stable");
fs/nfs/localio.c
904
switch (hdr->args.stable) {
fs/nfs/localio.c
914
nfs_local_pgio_init(hdr, call_ops);
fs/nfs/localio.c
916
nfs_set_local_verifier(hdr->inode, hdr->res.verf, hdr->args.stable);
fs/nfs/localio.c
923
nfs_local_iocb_init(struct nfs_pgio_header *hdr, struct nfsd_file *localio)
fs/nfs/localio.c
930
if (hdr->rw_mode & FMODE_READ) {
fs/nfs/localio.c
942
iocb = nfs_local_iocb_alloc(hdr, file, gfp_mask);
fs/nfs/localio.c
945
iocb->hdr = hdr;
fs/nfs/localio.c
954
struct nfs_pgio_header *hdr,
fs/nfs/localio.c
960
if (!hdr->args.count)
fs/nfs/localio.c
963
iocb = nfs_local_iocb_init(hdr, localio);
fs/nfs/localio.c
967
switch (hdr->rw_mode) {
fs/nfs/localio.c
976
hdr->rw_mode);
fs/nfs/localio.c
982
hdr->task.tk_status = status;
fs/nfs/localio.c
983
nfs_local_hdr_release(hdr, call_ops);
fs/nfs/nfs3proc.c
890
static int nfs3_read_done(struct rpc_task *task, struct nfs_pgio_header *hdr)
fs/nfs/nfs3proc.c
892
struct inode *inode = hdr->inode;
fs/nfs/nfs3proc.c
895
if (hdr->pgio_done_cb != NULL)
fs/nfs/nfs3proc.c
896
return hdr->pgio_done_cb(task, hdr);
fs/nfs/nfs3proc.c
903
cmpxchg(&server->read_hdrsize, 0, hdr->res.replen);
fs/nfs/nfs3proc.c
908
nfs_refresh_inode(inode, &hdr->fattr);
fs/nfs/nfs3proc.c
912
static void nfs3_proc_read_setup(struct nfs_pgio_header *hdr,
fs/nfs/nfs3proc.c
916
hdr->args.replen = NFS_SERVER(hdr->inode)->read_hdrsize;
fs/nfs/nfs3proc.c
920
struct nfs_pgio_header *hdr)
fs/nfs/nfs3proc.c
926
static int nfs3_write_done(struct rpc_task *task, struct nfs_pgio_header *hdr)
fs/nfs/nfs3proc.c
928
struct inode *inode = hdr->inode;
fs/nfs/nfs3proc.c
930
if (hdr->pgio_done_cb != NULL)
fs/nfs/nfs3proc.c
931
return hdr->pgio_done_cb(task, hdr);
fs/nfs/nfs3proc.c
936
nfs_writeback_update_inode(hdr);
fs/nfs/nfs3proc.c
942
static void nfs3_proc_write_setup(struct nfs_pgio_header *hdr,
fs/nfs/nfs42xdr.c
1140
struct nfs_pgio_header *hdr =
fs/nfs/nfs42xdr.c
1142
struct nfs_pgio_args *args = &hdr->args;
fs/nfs/nfs42xdr.c
1385
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1388
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1413
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1416
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1448
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1451
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1474
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1477
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1500
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1503
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1526
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1529
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1554
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1557
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1585
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1590
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1614
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1617
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1639
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1642
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1670
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1673
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1705
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1708
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1730
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1733
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1757
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1760
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1781
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1786
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
1807
struct compound_hdr hdr;
fs/nfs/nfs42xdr.c
1810
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs42xdr.c
305
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
307
encode_op_hdr(xdr, OP_ALLOCATE, decode_allocate_maxsz, hdr);
fs/nfs/nfs42xdr.c
333
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
335
encode_op_hdr(xdr, OP_COPY, decode_copy_maxsz, hdr);
fs/nfs/nfs42xdr.c
355
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
359
encode_op_hdr(xdr, OP_COMMIT, decode_commit_maxsz, hdr);
fs/nfs/nfs42xdr.c
367
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
369
encode_op_hdr(xdr, OP_OFFLOAD_CANCEL, decode_offload_cancel_maxsz, hdr);
fs/nfs/nfs42xdr.c
375
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
377
encode_op_hdr(xdr, OP_OFFLOAD_STATUS, decode_offload_status_maxsz, hdr);
fs/nfs/nfs42xdr.c
383
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
385
encode_op_hdr(xdr, OP_COPY_NOTIFY, decode_copy_notify_maxsz, hdr);
fs/nfs/nfs42xdr.c
392
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
394
encode_op_hdr(xdr, OP_DEALLOCATE, decode_deallocate_maxsz, hdr);
fs/nfs/nfs42xdr.c
400
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
402
encode_op_hdr(xdr, OP_READ_PLUS, decode_read_plus_maxsz, hdr);
fs/nfs/nfs42xdr.c
410
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
412
encode_op_hdr(xdr, OP_SEEK, decode_seek_maxsz, hdr);
fs/nfs/nfs42xdr.c
421
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
425
encode_op_hdr(xdr, OP_LAYOUTSTATS, decode_layoutstats_maxsz, hdr);
fs/nfs/nfs42xdr.c
448
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
452
encode_op_hdr(xdr, OP_CLONE, decode_clone_maxsz, hdr);
fs/nfs/nfs42xdr.c
475
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
479
encode_op_hdr(xdr, OP_LAYOUTERROR, decode_layouterror_maxsz, hdr);
fs/nfs/nfs42xdr.c
491
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
498
encode_op_hdr(xdr, OP_SETXATTR, decode_setxattr_maxsz, hdr);
fs/nfs/nfs42xdr.c
509
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
511
encode_op_hdr(xdr, OP_GETXATTR, decode_getxattr_maxsz, hdr);
fs/nfs/nfs42xdr.c
516
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
518
encode_op_hdr(xdr, OP_REMOVEXATTR, decode_removexattr_maxsz, hdr);
fs/nfs/nfs42xdr.c
524
struct compound_hdr *hdr)
fs/nfs/nfs42xdr.c
528
encode_op_hdr(xdr, OP_LISTXATTRS, decode_listxattrs_maxsz, hdr);
fs/nfs/nfs42xdr.c
551
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
555
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
556
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
557
encode_putfh(xdr, args->falloc_fh, &hdr);
fs/nfs/nfs42xdr.c
558
encode_allocate(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
559
encode_getfattr(xdr, args->falloc_bitmask, &hdr);
fs/nfs/nfs42xdr.c
560
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
571
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
575
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
576
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
577
encode_putfh(xdr, args->src_fh, &hdr);
fs/nfs/nfs42xdr.c
578
encode_savefh(xdr, &hdr);
fs/nfs/nfs42xdr.c
579
encode_putfh(xdr, args->dst_fh, &hdr);
fs/nfs/nfs42xdr.c
580
encode_copy(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
582
encode_copy_commit(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
583
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
594
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
598
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
599
encode_sequence(xdr, &args->osa_seq_args, &hdr);
fs/nfs/nfs42xdr.c
600
encode_putfh(xdr, args->osa_src_fh, &hdr);
fs/nfs/nfs42xdr.c
601
encode_offload_cancel(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
602
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
613
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
617
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
618
encode_sequence(xdr, &args->osa_seq_args, &hdr);
fs/nfs/nfs42xdr.c
619
encode_putfh(xdr, args->osa_src_fh, &hdr);
fs/nfs/nfs42xdr.c
620
encode_offload_status(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
621
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
632
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
636
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
637
encode_sequence(xdr, &args->cna_seq_args, &hdr);
fs/nfs/nfs42xdr.c
638
encode_putfh(xdr, args->cna_src_fh, &hdr);
fs/nfs/nfs42xdr.c
639
encode_copy_notify(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
640
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
651
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
655
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
656
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
657
encode_putfh(xdr, args->falloc_fh, &hdr);
fs/nfs/nfs42xdr.c
658
encode_deallocate(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
659
encode_getfattr(xdr, args->falloc_bitmask, &hdr);
fs/nfs/nfs42xdr.c
660
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
671
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
675
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
676
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
677
encode_putfh(xdr, args->falloc_fh, &hdr);
fs/nfs/nfs42xdr.c
678
encode_deallocate(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
679
encode_allocate(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
680
encode_getfattr(xdr, args->falloc_bitmask, &hdr);
fs/nfs/nfs42xdr.c
681
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
692
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
696
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
697
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
698
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs42xdr.c
699
encode_read_plus(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
702
hdr.replen - READ_PLUS_SEGMENT_SIZE_DIFF);
fs/nfs/nfs42xdr.c
703
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
714
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
718
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
719
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
720
encode_putfh(xdr, args->sa_fh, &hdr);
fs/nfs/nfs42xdr.c
721
encode_seek(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
722
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
735
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
739
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
740
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
741
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs42xdr.c
744
encode_layoutstats(xdr, args, &args->devinfo[i], &hdr);
fs/nfs/nfs42xdr.c
745
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
756
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
760
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
761
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
762
encode_putfh(xdr, args->src_fh, &hdr);
fs/nfs/nfs42xdr.c
763
encode_savefh(xdr, &hdr);
fs/nfs/nfs42xdr.c
764
encode_putfh(xdr, args->dst_fh, &hdr);
fs/nfs/nfs42xdr.c
765
encode_clone(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
766
encode_getfattr(xdr, args->dst_bitmask, &hdr);
fs/nfs/nfs42xdr.c
767
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
778
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
783
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
784
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
785
encode_putfh(xdr, NFS_FH(args->inode), &hdr);
fs/nfs/nfs42xdr.c
787
encode_layouterror(xdr, &args->errors[i], &hdr);
fs/nfs/nfs42xdr.c
788
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
798
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
802
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
803
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
804
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs42xdr.c
805
encode_setxattr(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
806
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs42xdr.c
807
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
817
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
822
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
823
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
824
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs42xdr.c
825
replen = hdr.replen + op_decode_hdr_maxsz + 1;
fs/nfs/nfs42xdr.c
826
encode_getxattr(xdr, args->xattr_name, &hdr);
fs/nfs/nfs42xdr.c
831
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
841
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
846
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
847
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
848
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs42xdr.c
849
replen = hdr.replen + op_decode_hdr_maxsz + 2 + 1;
fs/nfs/nfs42xdr.c
850
encode_listxattrs(xdr, args, &hdr);
fs/nfs/nfs42xdr.c
854
encode_nops(&hdr);
fs/nfs/nfs42xdr.c
864
struct compound_hdr hdr = {
fs/nfs/nfs42xdr.c
868
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs42xdr.c
869
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs42xdr.c
870
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs42xdr.c
871
encode_removexattr(xdr, args->xattr_name, &hdr);
fs/nfs/nfs42xdr.c
872
encode_nops(&hdr);
fs/nfs/nfs4_fs.h
455
struct rpc_message *msg, struct nfs_pgio_header *hdr)
fs/nfs/nfs4_fs.h
459
hdr->args.stable = NFS_FILE_SYNC;
fs/nfs/nfs4proc.c
5592
static int nfs4_read_done_cb(struct rpc_task *task, struct nfs_pgio_header *hdr)
fs/nfs/nfs4proc.c
5594
struct nfs_server *server = NFS_SERVER(hdr->inode);
fs/nfs/nfs4proc.c
5596
trace_nfs4_read(hdr, task->tk_status);
fs/nfs/nfs4proc.c
5599
.inode = hdr->inode,
fs/nfs/nfs4proc.c
5600
.state = hdr->args.context->state,
fs/nfs/nfs4proc.c
5601
.stateid = &hdr->args.stateid,
fs/nfs/nfs4proc.c
5602
.retrans = hdr->retrans,
fs/nfs/nfs4proc.c
5606
hdr->retrans = exception.retrans;
fs/nfs/nfs4proc.c
5614
renew_lease(server, hdr->timestamp);
fs/nfs/nfs4proc.c
5633
struct nfs_pgio_header *hdr)
fs/nfs/nfs4proc.c
5635
struct nfs_server *server = NFS_SERVER(hdr->inode);
fs/nfs/nfs4proc.c
5648
static int nfs4_read_done(struct rpc_task *task, struct nfs_pgio_header *hdr)
fs/nfs/nfs4proc.c
5650
if (!nfs4_sequence_done(task, &hdr->res.seq_res))
fs/nfs/nfs4proc.c
5652
if (nfs4_read_stateid_changed(task, &hdr->args))
fs/nfs/nfs4proc.c
5654
if (nfs4_read_plus_not_supported(task, hdr))
fs/nfs/nfs4proc.c
5657
nfs_invalidate_atime(hdr->inode);
fs/nfs/nfs4proc.c
5658
return hdr->pgio_done_cb ? hdr->pgio_done_cb(task, hdr) :
fs/nfs/nfs4proc.c
5659
nfs4_read_done_cb(task, hdr);
fs/nfs/nfs4proc.c
5663
static bool nfs42_read_plus_support(struct nfs_pgio_header *hdr,
fs/nfs/nfs4proc.c
5667
if (nfs_server_capable(hdr->inode, NFS_CAP_READ_PLUS) && !hdr->ds_clp) {
fs/nfs/nfs4proc.c
5669
return nfs_read_alloc_scratch(hdr, READ_PLUS_SCRATCH_SIZE);
fs/nfs/nfs4proc.c
5674
static bool nfs42_read_plus_support(struct nfs_pgio_header *hdr,
fs/nfs/nfs4proc.c
5681
static void nfs4_proc_read_setup(struct nfs_pgio_header *hdr,
fs/nfs/nfs4proc.c
5684
hdr->timestamp = jiffies;
fs/nfs/nfs4proc.c
5685
if (!hdr->pgio_done_cb)
fs/nfs/nfs4proc.c
5686
hdr->pgio_done_cb = nfs4_read_done_cb;
fs/nfs/nfs4proc.c
5687
if (!nfs42_read_plus_support(hdr, msg))
fs/nfs/nfs4proc.c
5689
nfs4_init_sequence(NFS_SERVER(hdr->inode)->nfs_client,
fs/nfs/nfs4proc.c
5690
&hdr->args.seq_args, &hdr->res.seq_res, 0, 0);
fs/nfs/nfs4proc.c
5694
struct nfs_pgio_header *hdr)
fs/nfs/nfs4proc.c
5696
if (nfs4_setup_sequence(NFS_SERVER(hdr->inode)->nfs_client,
fs/nfs/nfs4proc.c
5697
&hdr->args.seq_args,
fs/nfs/nfs4proc.c
5698
&hdr->res.seq_res,
fs/nfs/nfs4proc.c
5701
if (nfs4_set_rw_stateid(&hdr->args.stateid, hdr->args.context,
fs/nfs/nfs4proc.c
5702
hdr->args.lock_context,
fs/nfs/nfs4proc.c
5703
hdr->rw_mode) == -EIO)
fs/nfs/nfs4proc.c
5705
if (unlikely(test_bit(NFS_CONTEXT_BAD, &hdr->args.context->flags)))
fs/nfs/nfs4proc.c
5711
struct nfs_pgio_header *hdr)
fs/nfs/nfs4proc.c
5713
struct inode *inode = hdr->inode;
fs/nfs/nfs4proc.c
5715
trace_nfs4_write(hdr, task->tk_status);
fs/nfs/nfs4proc.c
5718
.inode = hdr->inode,
fs/nfs/nfs4proc.c
5719
.state = hdr->args.context->state,
fs/nfs/nfs4proc.c
5720
.stateid = &hdr->args.stateid,
fs/nfs/nfs4proc.c
5721
.retrans = hdr->retrans,
fs/nfs/nfs4proc.c
5726
hdr->retrans = exception.retrans;
fs/nfs/nfs4proc.c
5733
renew_lease(NFS_SERVER(inode), hdr->timestamp);
fs/nfs/nfs4proc.c
5734
nfs_writeback_update_inode(hdr);
fs/nfs/nfs4proc.c
5753
static int nfs4_write_done(struct rpc_task *task, struct nfs_pgio_header *hdr)
fs/nfs/nfs4proc.c
5755
if (!nfs4_sequence_done(task, &hdr->res.seq_res))
fs/nfs/nfs4proc.c
5757
if (nfs4_write_stateid_changed(task, &hdr->args))
fs/nfs/nfs4proc.c
5759
return hdr->pgio_done_cb ? hdr->pgio_done_cb(task, hdr) :
fs/nfs/nfs4proc.c
5760
nfs4_write_done_cb(task, hdr);
fs/nfs/nfs4proc.c
5764
bool nfs4_write_need_cache_consistency_data(struct nfs_pgio_header *hdr)
fs/nfs/nfs4proc.c
5767
if (hdr->ds_clp != NULL || hdr->dreq != NULL)
fs/nfs/nfs4proc.c
5772
return nfs4_have_delegation(hdr->inode, FMODE_READ, 0) == 0;
fs/nfs/nfs4proc.c
5810
static void nfs4_proc_write_setup(struct nfs_pgio_header *hdr,
fs/nfs/nfs4proc.c
5814
struct nfs_server *server = NFS_SERVER(hdr->inode);
fs/nfs/nfs4proc.c
5816
if (!nfs4_write_need_cache_consistency_data(hdr)) {
fs/nfs/nfs4proc.c
5817
hdr->args.bitmask = NULL;
fs/nfs/nfs4proc.c
5818
hdr->res.fattr = NULL;
fs/nfs/nfs4proc.c
5820
nfs4_bitmask_set(hdr->args.bitmask_store,
fs/nfs/nfs4proc.c
5822
hdr->inode, NFS_INO_INVALID_BLOCKS);
fs/nfs/nfs4proc.c
5823
hdr->args.bitmask = hdr->args.bitmask_store;
fs/nfs/nfs4proc.c
5826
if (!hdr->pgio_done_cb)
fs/nfs/nfs4proc.c
5827
hdr->pgio_done_cb = nfs4_write_done_cb;
fs/nfs/nfs4proc.c
5828
hdr->res.server = server;
fs/nfs/nfs4proc.c
5829
hdr->timestamp = jiffies;
fs/nfs/nfs4proc.c
5832
nfs4_init_sequence(server->nfs_client, &hdr->args.seq_args,
fs/nfs/nfs4proc.c
5833
&hdr->res.seq_res, 0, 0);
fs/nfs/nfs4proc.c
5834
nfs4_state_protect_write(hdr->ds_clp ? hdr->ds_clp : server->nfs_client, clnt, msg, hdr);
fs/nfs/nfs4trace.h
1628
const struct nfs_pgio_header *hdr,
fs/nfs/nfs4trace.h
1632
TP_ARGS(hdr, error),
fs/nfs/nfs4trace.h
1649
const struct inode *inode = hdr->inode;
fs/nfs/nfs4trace.h
1651
const struct nfs_fh *fh = hdr->args.fh ?
fs/nfs/nfs4trace.h
1652
hdr->args.fh : &nfsi->fh;
fs/nfs/nfs4trace.h
1654
hdr->args.context->state;
fs/nfs/nfs4trace.h
1655
const struct pnfs_layout_segment *lseg = hdr->lseg;
fs/nfs/nfs4trace.h
1660
__entry->offset = hdr->args.offset;
fs/nfs/nfs4trace.h
1661
__entry->arg_count = hdr->args.count;
fs/nfs/nfs4trace.h
1662
__entry->res_count = hdr->res.count;
fs/nfs/nfs4trace.h
1691
const struct nfs_pgio_header *hdr, \
fs/nfs/nfs4trace.h
1694
TP_ARGS(hdr, error))
fs/nfs/nfs4trace.h
1700
const struct nfs_pgio_header *hdr,
fs/nfs/nfs4trace.h
1704
TP_ARGS(hdr, error),
fs/nfs/nfs4trace.h
1721
const struct inode *inode = hdr->inode;
fs/nfs/nfs4trace.h
1723
const struct nfs_fh *fh = hdr->args.fh ?
fs/nfs/nfs4trace.h
1724
hdr->args.fh : &nfsi->fh;
fs/nfs/nfs4trace.h
1726
hdr->args.context->state;
fs/nfs/nfs4trace.h
1727
const struct pnfs_layout_segment *lseg = hdr->lseg;
fs/nfs/nfs4trace.h
1732
__entry->offset = hdr->args.offset;
fs/nfs/nfs4trace.h
1733
__entry->arg_count = hdr->args.count;
fs/nfs/nfs4trace.h
1734
__entry->res_count = hdr->res.count;
fs/nfs/nfs4trace.h
1764
const struct nfs_pgio_header *hdr, \
fs/nfs/nfs4trace.h
1767
TP_ARGS(hdr, error))
fs/nfs/nfs4trace.h
2170
const struct nfs_pgio_header *hdr,
fs/nfs/nfs4trace.h
2174
TP_ARGS(hdr, error),
fs/nfs/nfs4trace.h
2186
__string(dstaddr, hdr->ds_clp ?
fs/nfs/nfs4trace.h
2187
rpc_peeraddr2str(hdr->ds_clp->cl_rpcclient,
fs/nfs/nfs4trace.h
2192
const struct inode *inode = hdr->inode;
fs/nfs/nfs4trace.h
2195
__entry->nfs_error = hdr->res.op_status;
fs/nfs/nfs4trace.h
2196
__entry->fhandle = nfs_fhandle_hash(hdr->args.fh);
fs/nfs/nfs4trace.h
2199
__entry->offset = hdr->args.offset;
fs/nfs/nfs4trace.h
2200
__entry->count = hdr->args.count;
fs/nfs/nfs4trace.h
2202
be32_to_cpu(hdr->args.stateid.seqid);
fs/nfs/nfs4trace.h
2204
nfs_stateid_hash(&hdr->args.stateid);
fs/nfs/nfs4trace.h
2227
const struct nfs_pgio_header *hdr, \
fs/nfs/nfs4trace.h
2230
TP_ARGS(hdr, error))
fs/nfs/nfs4xdr.c
1033
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1040
hdr->replen = 3 + hdr->taglen;
fs/nfs/nfs4xdr.c
1042
WARN_ON_ONCE(hdr->taglen > NFS4_MAXTAGLEN);
fs/nfs/nfs4xdr.c
1043
encode_string(xdr, hdr->taglen, hdr->tag);
fs/nfs/nfs4xdr.c
1045
*p++ = cpu_to_be32(hdr->minorversion);
fs/nfs/nfs4xdr.c
1046
hdr->nops_p = p;
fs/nfs/nfs4xdr.c
1047
*p = cpu_to_be32(hdr->nops);
fs/nfs/nfs4xdr.c
1052
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1055
hdr->nops++;
fs/nfs/nfs4xdr.c
1056
hdr->replen += replen;
fs/nfs/nfs4xdr.c
1059
static void encode_nops(struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1061
WARN_ON_ONCE(hdr->nops > NFS4_MAX_OPS);
fs/nfs/nfs4xdr.c
1062
*hdr->nops_p = htonl(hdr->nops);
fs/nfs/nfs4xdr.c
1203
static void encode_access(struct xdr_stream *xdr, u32 access, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1205
encode_op_hdr(xdr, OP_ACCESS, decode_access_maxsz, hdr);
fs/nfs/nfs4xdr.c
1209
static void encode_close(struct xdr_stream *xdr, const struct nfs_closeargs *arg, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1211
encode_op_hdr(xdr, OP_CLOSE, decode_close_maxsz, hdr);
fs/nfs/nfs4xdr.c
1216
static void encode_commit(struct xdr_stream *xdr, const struct nfs_commitargs *args, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1220
encode_op_hdr(xdr, OP_COMMIT, decode_commit_maxsz, hdr);
fs/nfs/nfs4xdr.c
1226
static void encode_create(struct xdr_stream *xdr, const struct nfs4_create_arg *create, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1230
encode_op_hdr(xdr, OP_CREATE, decode_create_maxsz, hdr);
fs/nfs/nfs4xdr.c
1259
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1263
encode_op_hdr(xdr, OP_GETATTR, decode_getattr_maxsz, hdr);
fs/nfs/nfs4xdr.c
1273
static void encode_getfattr(struct xdr_stream *xdr, const u32* bitmask, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1276
ARRAY_SIZE(nfs4_fattr_bitmap), hdr);
fs/nfs/nfs4xdr.c
1281
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1283
encode_getattr(xdr, open_bitmap, bitmask, 3, hdr);
fs/nfs/nfs4xdr.c
1286
static void encode_fsinfo(struct xdr_stream *xdr, const u32* bitmask, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1289
ARRAY_SIZE(nfs4_fsinfo_bitmap), hdr);
fs/nfs/nfs4xdr.c
1292
static void encode_fs_locations(struct xdr_stream *xdr, const u32* bitmask, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1295
ARRAY_SIZE(nfs4_fs_locations_bitmap), hdr);
fs/nfs/nfs4xdr.c
1298
static void encode_getfh(struct xdr_stream *xdr, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1300
encode_op_hdr(xdr, OP_GETFH, decode_getfh_maxsz, hdr);
fs/nfs/nfs4xdr.c
1303
static void encode_link(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1305
encode_op_hdr(xdr, OP_LINK, decode_link_maxsz, hdr);
fs/nfs/nfs4xdr.c
1339
static void encode_lock(struct xdr_stream *xdr, const struct nfs_lock_args *args, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1343
encode_op_hdr(xdr, OP_LOCK, decode_lock_maxsz, hdr);
fs/nfs/nfs4xdr.c
1362
static void encode_lockt(struct xdr_stream *xdr, const struct nfs_lockt_args *args, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1366
encode_op_hdr(xdr, OP_LOCKT, decode_lockt_maxsz, hdr);
fs/nfs/nfs4xdr.c
1374
static void encode_locku(struct xdr_stream *xdr, const struct nfs_locku_args *args, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1378
encode_op_hdr(xdr, OP_LOCKU, decode_locku_maxsz, hdr);
fs/nfs/nfs4xdr.c
1388
static void encode_release_lockowner(struct xdr_stream *xdr, const struct nfs_lowner *lowner, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1390
encode_op_hdr(xdr, OP_RELEASE_LOCKOWNER, decode_release_lockowner_maxsz, hdr);
fs/nfs/nfs4xdr.c
1395
static void encode_lookup(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1397
encode_op_hdr(xdr, OP_LOOKUP, decode_lookup_maxsz, hdr);
fs/nfs/nfs4xdr.c
1401
static void encode_lookupp(struct xdr_stream *xdr, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1403
encode_op_hdr(xdr, OP_LOOKUPP, decode_lookupp_maxsz, hdr);
fs/nfs/nfs4xdr.c
1539
static void encode_open(struct xdr_stream *xdr, const struct nfs_openargs *arg, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1541
encode_op_hdr(xdr, OP_OPEN, decode_open_maxsz, hdr);
fs/nfs/nfs4xdr.c
1565
static void encode_open_confirm(struct xdr_stream *xdr, const struct nfs_open_confirmargs *arg, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1567
encode_op_hdr(xdr, OP_OPEN_CONFIRM, decode_open_confirm_maxsz, hdr);
fs/nfs/nfs4xdr.c
1572
static void encode_open_downgrade(struct xdr_stream *xdr, const struct nfs_closeargs *arg, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1574
encode_op_hdr(xdr, OP_OPEN_DOWNGRADE, decode_open_downgrade_maxsz, hdr);
fs/nfs/nfs4xdr.c
1581
encode_putfh(struct xdr_stream *xdr, const struct nfs_fh *fh, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1583
encode_op_hdr(xdr, OP_PUTFH, decode_putfh_maxsz, hdr);
fs/nfs/nfs4xdr.c
1587
static void encode_putrootfh(struct xdr_stream *xdr, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1589
encode_op_hdr(xdr, OP_PUTROOTFH, decode_putrootfh_maxsz, hdr);
fs/nfs/nfs4xdr.c
1593
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1597
encode_op_hdr(xdr, OP_READ, decode_read_maxsz, hdr);
fs/nfs/nfs4xdr.c
1605
static void encode_readdir(struct xdr_stream *xdr, const struct nfs4_readdir_arg *readdir, struct rpc_rqst *req, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1645
encode_op_hdr(xdr, OP_READDIR, decode_readdir_maxsz, hdr);
fs/nfs/nfs4xdr.c
1665
static void encode_readlink(struct xdr_stream *xdr, const struct nfs4_readlink *readlink, struct rpc_rqst *req, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1667
encode_op_hdr(xdr, OP_READLINK, decode_readlink_maxsz, hdr);
fs/nfs/nfs4xdr.c
1670
static void encode_remove(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1672
encode_op_hdr(xdr, OP_REMOVE, decode_remove_maxsz, hdr);
fs/nfs/nfs4xdr.c
1676
static void encode_rename(struct xdr_stream *xdr, const struct qstr *oldname, const struct qstr *newname, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1678
encode_op_hdr(xdr, OP_RENAME, decode_rename_maxsz, hdr);
fs/nfs/nfs4xdr.c
1684
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1686
encode_op_hdr(xdr, OP_RENEW, decode_renew_maxsz, hdr);
fs/nfs/nfs4xdr.c
1691
encode_restorefh(struct xdr_stream *xdr, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1693
encode_op_hdr(xdr, OP_RESTOREFH, decode_restorefh_maxsz, hdr);
fs/nfs/nfs4xdr.c
1715
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1721
encode_op_hdr(xdr, OP_SETATTR, decode_setacl_maxsz, hdr);
fs/nfs/nfs4xdr.c
1729
encode_savefh(struct xdr_stream *xdr, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1731
encode_op_hdr(xdr, OP_SAVEFH, decode_savefh_maxsz, hdr);
fs/nfs/nfs4xdr.c
1734
static void encode_setattr(struct xdr_stream *xdr, const struct nfs_setattrargs *arg, const struct nfs_server *server, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1736
encode_op_hdr(xdr, OP_SETATTR, decode_setattr_maxsz, hdr);
fs/nfs/nfs4xdr.c
1745
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1751
encode_op_hdr(xdr, OP_SETATTR, encode_delegattr_maxsz, hdr);
fs/nfs/nfs4xdr.c
1769
static void encode_setclientid(struct xdr_stream *xdr, const struct nfs4_setclientid *setclientid, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1773
encode_op_hdr(xdr, OP_SETCLIENTID, decode_setclientid_maxsz, hdr);
fs/nfs/nfs4xdr.c
1786
static void encode_setclientid_confirm(struct xdr_stream *xdr, const struct nfs4_setclientid_res *arg, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1789
decode_setclientid_confirm_maxsz, hdr);
fs/nfs/nfs4xdr.c
1795
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1799
encode_op_hdr(xdr, OP_WRITE, decode_write_maxsz, hdr);
fs/nfs/nfs4xdr.c
1810
static void encode_delegreturn(struct xdr_stream *xdr, const nfs4_stateid *stateid, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1812
encode_op_hdr(xdr, OP_DELEGRETURN, decode_delegreturn_maxsz, hdr);
fs/nfs/nfs4xdr.c
1816
static void encode_secinfo(struct xdr_stream *xdr, const struct qstr *name, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1818
encode_op_hdr(xdr, OP_SECINFO, decode_secinfo_maxsz, hdr);
fs/nfs/nfs4xdr.c
1825
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1830
decode_bind_conn_to_session_maxsz, hdr);
fs/nfs/nfs4xdr.c
1847
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1853
encode_op_hdr(xdr, OP_EXCHANGE_ID, decode_exchange_id_maxsz, hdr);
fs/nfs/nfs4xdr.c
1899
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1914
encode_op_hdr(xdr, OP_CREATE_SESSION, decode_create_session_maxsz, hdr);
fs/nfs/nfs4xdr.c
1952
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1954
encode_op_hdr(xdr, OP_DESTROY_SESSION, decode_destroy_session_maxsz, hdr);
fs/nfs/nfs4xdr.c
1960
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1962
encode_op_hdr(xdr, OP_DESTROY_CLIENTID, decode_destroy_clientid_maxsz, hdr);
fs/nfs/nfs4xdr.c
1968
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1970
encode_op_hdr(xdr, OP_RECLAIM_COMPLETE, decode_reclaim_complete_maxsz, hdr);
fs/nfs/nfs4xdr.c
1976
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
1988
encode_op_hdr(xdr, OP_SEQUENCE, decode_sequence_maxsz, hdr);
fs/nfs/nfs4xdr.c
2011
encode_get_dir_delegation(struct xdr_stream *xdr, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
2018
encode_op_hdr(xdr, OP_GET_DIR_DELEGATION, decode_get_dir_deleg_maxsz, hdr);
fs/nfs/nfs4xdr.c
2040
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
2044
encode_op_hdr(xdr, OP_GETDEVICEINFO, decode_getdeviceinfo_maxsz, hdr);
fs/nfs/nfs4xdr.c
2059
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
2063
encode_op_hdr(xdr, OP_LAYOUTGET, decode_layoutget_maxsz, hdr);
fs/nfs/nfs4xdr.c
2087
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
2094
encode_op_hdr(xdr, OP_LAYOUTCOMMIT, decode_layoutcommit_maxsz, hdr);
fs/nfs/nfs4xdr.c
2123
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
2127
encode_op_hdr(xdr, OP_LAYOUTRETURN, decode_layoutreturn_maxsz, hdr);
fs/nfs/nfs4xdr.c
2148
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
2150
encode_op_hdr(xdr, OP_SECINFO_NO_NAME, decode_secinfo_no_name_maxsz, hdr);
fs/nfs/nfs4xdr.c
2157
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
2159
encode_op_hdr(xdr, OP_TEST_STATEID, decode_test_stateid_maxsz, hdr);
fs/nfs/nfs4xdr.c
2166
struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
2168
encode_op_hdr(xdr, OP_FREE_STATEID, decode_free_stateid_maxsz, hdr);
fs/nfs/nfs4xdr.c
2191
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2195
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2196
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2197
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2198
encode_access(xdr, args->access, &hdr);
fs/nfs/nfs4xdr.c
2200
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2201
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2211
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2215
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2216
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2217
encode_putfh(xdr, args->dir_fh, &hdr);
fs/nfs/nfs4xdr.c
2218
encode_lookup(xdr, args->name, &hdr);
fs/nfs/nfs4xdr.c
2219
encode_getfh(xdr, &hdr);
fs/nfs/nfs4xdr.c
2220
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2221
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2231
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2235
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2236
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2237
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2238
encode_lookupp(xdr, &hdr);
fs/nfs/nfs4xdr.c
2239
encode_getfh(xdr, &hdr);
fs/nfs/nfs4xdr.c
2240
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2241
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2252
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2256
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2257
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2258
encode_putrootfh(xdr, &hdr);
fs/nfs/nfs4xdr.c
2259
encode_getfh(xdr, &hdr);
fs/nfs/nfs4xdr.c
2260
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2261
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2271
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2275
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2276
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2277
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2278
encode_remove(xdr, &args->name, &hdr);
fs/nfs/nfs4xdr.c
2279
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2289
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2293
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2294
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2295
encode_putfh(xdr, args->old_dir, &hdr);
fs/nfs/nfs4xdr.c
2296
encode_savefh(xdr, &hdr);
fs/nfs/nfs4xdr.c
2297
encode_putfh(xdr, args->new_dir, &hdr);
fs/nfs/nfs4xdr.c
2298
encode_rename(xdr, args->old_name, args->new_name, &hdr);
fs/nfs/nfs4xdr.c
2299
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2309
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2313
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2314
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2315
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2316
encode_savefh(xdr, &hdr);
fs/nfs/nfs4xdr.c
2317
encode_putfh(xdr, args->dir_fh, &hdr);
fs/nfs/nfs4xdr.c
2318
encode_link(xdr, args->name, &hdr);
fs/nfs/nfs4xdr.c
2319
encode_restorefh(xdr, &hdr);
fs/nfs/nfs4xdr.c
2320
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2321
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2331
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2335
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2336
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2337
encode_putfh(xdr, args->dir_fh, &hdr);
fs/nfs/nfs4xdr.c
2338
encode_create(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2339
encode_getfh(xdr, &hdr);
fs/nfs/nfs4xdr.c
2340
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2341
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2362
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2366
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2367
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2368
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2370
encode_get_dir_delegation(xdr, &hdr);
fs/nfs/nfs4xdr.c
2371
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2372
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2382
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2386
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2387
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2388
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2390
encode_layoutreturn(xdr, args->lr_args, &hdr);
fs/nfs/nfs4xdr.c
2392
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2393
encode_close(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2394
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2404
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2408
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2409
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2410
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2411
encode_open(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2412
encode_getfh(xdr, &hdr);
fs/nfs/nfs4xdr.c
2414
encode_access(xdr, args->access, &hdr);
fs/nfs/nfs4xdr.c
2415
encode_getfattr_open(xdr, args->bitmask, args->open_bitmap, &hdr);
fs/nfs/nfs4xdr.c
2417
encode_layoutget(xdr, args->lg_args, &hdr);
fs/nfs/nfs4xdr.c
2420
hdr.replen - pagepad_maxsz);
fs/nfs/nfs4xdr.c
2422
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2433
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2437
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2438
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2439
encode_open_confirm(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2440
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2451
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2455
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2456
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2457
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2458
encode_open(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2460
encode_access(xdr, args->access, &hdr);
fs/nfs/nfs4xdr.c
2461
encode_getfattr_open(xdr, args->bitmask, args->open_bitmap, &hdr);
fs/nfs/nfs4xdr.c
2463
encode_layoutget(xdr, args->lg_args, &hdr);
fs/nfs/nfs4xdr.c
2466
hdr.replen - pagepad_maxsz);
fs/nfs/nfs4xdr.c
2468
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2479
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2483
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2484
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2485
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2487
encode_layoutreturn(xdr, args->lr_args, &hdr);
fs/nfs/nfs4xdr.c
2488
encode_open_downgrade(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2489
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2499
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2503
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2504
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2505
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2506
encode_lock(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2507
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2517
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2521
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2522
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2523
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2524
encode_lockt(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2525
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2535
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2539
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2540
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2541
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2542
encode_locku(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2543
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2552
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2556
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2557
encode_release_lockowner(xdr, &args->lock_owner, &hdr);
fs/nfs/nfs4xdr.c
2558
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2569
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2573
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2574
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2575
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2576
encode_readlink(xdr, args, req, &hdr);
fs/nfs/nfs4xdr.c
2579
args->pglen, hdr.replen - pagepad_maxsz);
fs/nfs/nfs4xdr.c
2580
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2590
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2594
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2595
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2596
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2597
encode_readdir(xdr, args, req, &hdr);
fs/nfs/nfs4xdr.c
2600
args->count, hdr.replen - pagepad_maxsz);
fs/nfs/nfs4xdr.c
2601
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2611
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2615
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2616
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2617
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2618
encode_read(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2621
args->count, hdr.replen - pagepad_maxsz);
fs/nfs/nfs4xdr.c
2623
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2633
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2637
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2638
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2639
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2640
encode_setattr(xdr, args, args->server, &hdr);
fs/nfs/nfs4xdr.c
2641
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2642
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2652
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2660
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2661
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2662
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2663
replen = hdr.replen + op_decode_hdr_maxsz;
fs/nfs/nfs4xdr.c
2665
ARRAY_SIZE(nfs4_acl_bitmap), &hdr);
fs/nfs/nfs4xdr.c
2669
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2679
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2683
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2684
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2685
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2686
encode_write(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2689
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2690
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2700
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2704
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2705
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2706
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2707
encode_commit(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2708
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2718
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2722
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2723
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2724
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2725
encode_fsinfo(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2726
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2736
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2740
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2741
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2742
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2744
ARRAY_SIZE(nfs4_pathconf_bitmap), &hdr);
fs/nfs/nfs4xdr.c
2745
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2755
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2759
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2760
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2761
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2763
ARRAY_SIZE(nfs4_statfs_bitmap), &hdr);
fs/nfs/nfs4xdr.c
2764
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2776
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2780
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2781
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2782
encode_putfh(xdr, args->fhandle, &hdr);
fs/nfs/nfs4xdr.c
2783
encode_getattr(xdr, bitmask, NULL, 3, &hdr);
fs/nfs/nfs4xdr.c
2784
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2796
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2800
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2801
encode_renew(xdr, clp->cl_clientid, &hdr);
fs/nfs/nfs4xdr.c
2802
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2814
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2818
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2819
encode_setclientid(xdr, sc, &hdr);
fs/nfs/nfs4xdr.c
2820
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2831
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2835
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2836
encode_setclientid_confirm(xdr, arg, &hdr);
fs/nfs/nfs4xdr.c
2837
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2848
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2852
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2853
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2854
encode_putfh(xdr, args->fhandle, &hdr);
fs/nfs/nfs4xdr.c
2856
encode_layoutreturn(xdr, args->lr_args, &hdr);
fs/nfs/nfs4xdr.c
2858
encode_delegattr(xdr, args->stateid, args->sattr_args, &hdr);
fs/nfs/nfs4xdr.c
2860
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2861
encode_delegreturn(xdr, args->stateid, &hdr);
fs/nfs/nfs4xdr.c
2862
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2873
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2878
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2879
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2881
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2882
replen = hdr.replen;
fs/nfs/nfs4xdr.c
2883
encode_fs_locations(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2885
encode_renew(xdr, args->clientid, &hdr);
fs/nfs/nfs4xdr.c
2887
encode_putfh(xdr, args->dir_fh, &hdr);
fs/nfs/nfs4xdr.c
2888
encode_lookup(xdr, args->name, &hdr);
fs/nfs/nfs4xdr.c
2889
replen = hdr.replen;
fs/nfs/nfs4xdr.c
2890
encode_fs_locations(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
2895
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2906
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2910
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2911
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2912
encode_putfh(xdr, args->dir_fh, &hdr);
fs/nfs/nfs4xdr.c
2913
encode_secinfo(xdr, args->name, &hdr);
fs/nfs/nfs4xdr.c
2914
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2925
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2929
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2930
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
2931
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
2932
encode_getfh(xdr, &hdr);
fs/nfs/nfs4xdr.c
2934
encode_renew(xdr, args->clientid, &hdr);
fs/nfs/nfs4xdr.c
2935
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2946
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2950
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2951
encode_bind_conn_to_session(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2952
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2963
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2967
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2968
encode_exchange_id(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2969
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2980
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
2984
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
2985
encode_create_session(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
2986
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
2997
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3001
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3002
encode_destroy_session(xdr, session, &hdr);
fs/nfs/nfs4xdr.c
3003
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3014
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3018
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3019
encode_destroy_clientid(xdr, clp->cl_clientid, &hdr);
fs/nfs/nfs4xdr.c
3020
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3030
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3034
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3035
encode_sequence(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
3036
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3047
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3052
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3053
encode_sequence(xdr, &args->la_seq_args, &hdr);
fs/nfs/nfs4xdr.c
3054
encode_putrootfh(xdr, &hdr);
fs/nfs/nfs4xdr.c
3055
encode_fsinfo(xdr, lease_bitmap, &hdr);
fs/nfs/nfs4xdr.c
3056
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3067
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3071
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3072
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
3073
encode_reclaim_complete(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
3074
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3085
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3090
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3091
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
3093
replen = hdr.replen + op_decode_hdr_maxsz + 2;
fs/nfs/nfs4xdr.c
3095
encode_getdeviceinfo(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
3101
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3112
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3116
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3117
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
3118
encode_putfh(xdr, NFS_FH(args->inode), &hdr);
fs/nfs/nfs4xdr.c
3119
encode_layoutget(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
3122
args->layout.pglen, hdr.replen - pagepad_maxsz);
fs/nfs/nfs4xdr.c
3123
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3136
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3140
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3141
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
3142
encode_putfh(xdr, NFS_FH(args->inode), &hdr);
fs/nfs/nfs4xdr.c
3143
encode_layoutcommit(xdr, data->args.inode, args, &hdr);
fs/nfs/nfs4xdr.c
3144
encode_getfattr(xdr, args->bitmask, &hdr);
fs/nfs/nfs4xdr.c
3145
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3156
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3160
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3161
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
3162
encode_putfh(xdr, NFS_FH(args->inode), &hdr);
fs/nfs/nfs4xdr.c
3163
encode_layoutreturn(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
3164
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3175
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3179
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3180
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
3181
encode_putrootfh(xdr, &hdr);
fs/nfs/nfs4xdr.c
3182
encode_secinfo_no_name(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
3183
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3194
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3198
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3199
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
3200
encode_test_stateid(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
3201
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3212
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
3216
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
3217
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
3218
encode_free_stateid(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
3219
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
3232
static int decode_compound_hdr(struct xdr_stream *xdr, struct compound_hdr *hdr)
fs/nfs/nfs4xdr.c
3240
hdr->status = tmp;
fs/nfs/nfs4xdr.c
3245
hdr->taglen = ret;
fs/nfs/nfs4xdr.c
3246
hdr->tag = ptr;
fs/nfs/nfs4xdr.c
3250
hdr->nops = tmp;
fs/nfs/nfs4xdr.c
3251
if (unlikely(hdr->nops < 1))
fs/nfs/nfs4xdr.c
3252
return nfs4_stat_to_errno(hdr->status);
fs/nfs/nfs4xdr.c
6271
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6274
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6301
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6304
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6329
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6332
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6359
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6362
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6390
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6393
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6416
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6419
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6440
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6443
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6470
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6473
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6510
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6513
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6549
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6552
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6578
struct compound_hdr hdr = {
fs/nfs/nfs4xdr.c
6582
encode_compound_hdr(xdr, req, &hdr);
fs/nfs/nfs4xdr.c
6583
encode_sequence(xdr, &args->seq_args, &hdr);
fs/nfs/nfs4xdr.c
6584
encode_putfh(xdr, args->fh, &hdr);
fs/nfs/nfs4xdr.c
6585
encode_setacl(xdr, args, &hdr);
fs/nfs/nfs4xdr.c
6586
encode_nops(&hdr);
fs/nfs/nfs4xdr.c
6597
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6600
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6622
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6627
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6649
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6652
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6684
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6687
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6719
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6722
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6741
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6744
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6773
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6776
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6800
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6803
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6824
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6827
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6848
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6851
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6869
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6872
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6887
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6890
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6911
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6914
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6935
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6938
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6939
res->op_status = hdr.status;
fs/nfs/nfs4xdr.c
6962
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6965
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6966
res->op_status = hdr.status;
fs/nfs/nfs4xdr.c
6993
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
6996
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
6997
res->op_status = hdr.status;
fs/nfs/nfs4xdr.c
70
struct compound_hdr *hdr);
fs/nfs/nfs4xdr.c
7018
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7021
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7038
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7041
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7058
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7061
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7079
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7082
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7103
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7106
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7121
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7124
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7137
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7140
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7154
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7157
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7196
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7199
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7240
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7243
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7265
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7268
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7293
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7296
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7309
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7312
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7325
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7328
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7341
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7344
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7357
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7360
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7373
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7376
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7390
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7393
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7411
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7414
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7430
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7433
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7452
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7455
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7477
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7480
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7502
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7505
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7530
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7533
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7555
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7558
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfs4xdr.c
7577
struct compound_hdr hdr;
fs/nfs/nfs4xdr.c
7580
status = decode_compound_hdr(xdr, &hdr);
fs/nfs/nfstrace.h
1220
const struct nfs_pgio_header *hdr
fs/nfs/nfstrace.h
1223
TP_ARGS(hdr),
fs/nfs/nfstrace.h
1234
const struct inode *inode = hdr->inode;
fs/nfs/nfstrace.h
1236
const struct nfs_fh *fh = hdr->args.fh ?
fs/nfs/nfstrace.h
1237
hdr->args.fh : &nfsi->fh;
fs/nfs/nfstrace.h
1239
__entry->offset = hdr->args.offset;
fs/nfs/nfstrace.h
1240
__entry->count = hdr->args.count;
fs/nfs/nfstrace.h
1259
const struct nfs_pgio_header *hdr
fs/nfs/nfstrace.h
1262
TP_ARGS(task, hdr),
fs/nfs/nfstrace.h
1276
const struct inode *inode = hdr->inode;
fs/nfs/nfstrace.h
1278
const struct nfs_fh *fh = hdr->args.fh ?
fs/nfs/nfstrace.h
1279
hdr->args.fh : &nfsi->fh;
fs/nfs/nfstrace.h
1282
__entry->offset = hdr->args.offset;
fs/nfs/nfstrace.h
1283
__entry->arg_count = hdr->args.count;
fs/nfs/nfstrace.h
1284
__entry->res_count = hdr->res.count;
fs/nfs/nfstrace.h
1285
__entry->eof = hdr->res.eof;
fs/nfs/nfstrace.h
1305
const struct nfs_pgio_header *hdr
fs/nfs/nfstrace.h
1308
TP_ARGS(task, hdr),
fs/nfs/nfstrace.h
1322
const struct inode *inode = hdr->inode;
fs/nfs/nfstrace.h
1324
const struct nfs_fh *fh = hdr->args.fh ?
fs/nfs/nfstrace.h
1325
hdr->args.fh : &nfsi->fh;
fs/nfs/nfstrace.h
1328
__entry->offset = hdr->args.offset;
fs/nfs/nfstrace.h
1329
__entry->arg_count = hdr->args.count;
fs/nfs/nfstrace.h
1330
__entry->res_count = hdr->res.count;
fs/nfs/nfstrace.h
1331
__entry->eof = hdr->res.eof;
fs/nfs/nfstrace.h
1351
const struct nfs_pgio_header *hdr,
fs/nfs/nfstrace.h
1356
TP_ARGS(hdr, error, pos),
fs/nfs/nfstrace.h
1370
const struct inode *inode = hdr->inode;
fs/nfs/nfstrace.h
1372
const struct nfs_fh *fh = hdr->args.fh ?
fs/nfs/nfstrace.h
1373
hdr->args.fh : &nfsi->fh;
fs/nfs/nfstrace.h
1376
__entry->offset = hdr->args.offset;
fs/nfs/nfstrace.h
1377
__entry->arg_count = hdr->args.count;
fs/nfs/nfstrace.h
1378
__entry->res_count = hdr->res.count;
fs/nfs/nfstrace.h
1395
const struct nfs_pgio_header *hdr
fs/nfs/nfstrace.h
1398
TP_ARGS(hdr),
fs/nfs/nfstrace.h
1410
const struct inode *inode = hdr->inode;
fs/nfs/nfstrace.h
1412
const struct nfs_fh *fh = hdr->args.fh ?
fs/nfs/nfstrace.h
1413
hdr->args.fh : &nfsi->fh;
fs/nfs/nfstrace.h
1415
__entry->offset = hdr->args.offset;
fs/nfs/nfstrace.h
1416
__entry->count = hdr->args.count;
fs/nfs/nfstrace.h
1417
__entry->stable = hdr->args.stable;
fs/nfs/nfstrace.h
1437
const struct nfs_pgio_header *hdr
fs/nfs/nfstrace.h
1440
TP_ARGS(task, hdr),
fs/nfs/nfstrace.h
1455
const struct inode *inode = hdr->inode;
fs/nfs/nfstrace.h
1457
const struct nfs_fh *fh = hdr->args.fh ?
fs/nfs/nfstrace.h
1458
hdr->args.fh : &nfsi->fh;
fs/nfs/nfstrace.h
1459
const struct nfs_writeverf *verf = hdr->res.verf;
fs/nfs/nfstrace.h
1462
__entry->offset = hdr->args.offset;
fs/nfs/nfstrace.h
1463
__entry->arg_count = hdr->args.count;
fs/nfs/nfstrace.h
1464
__entry->res_count = hdr->res.count;
fs/nfs/pagelist.c
102
hdr->req = nfs_list_entry(mirror->pg_list.next);
fs/nfs/pagelist.c
103
hdr->inode = desc->pg_inode;
fs/nfs/pagelist.c
104
hdr->cred = nfs_req_openctx(hdr->req)->cred;
fs/nfs/pagelist.c
105
hdr->io_start = req_offset(hdr->req);
fs/nfs/pagelist.c
106
hdr->good_bytes = mirror->pg_count;
fs/nfs/pagelist.c
107
hdr->io_completion = desc->pg_io_completion;
fs/nfs/pagelist.c
108
hdr->dreq = desc->pg_dreq;
fs/nfs/pagelist.c
109
nfs_netfs_set_pgio_header(hdr, desc);
fs/nfs/pagelist.c
110
hdr->release = release;
fs/nfs/pagelist.c
111
hdr->completion_ops = desc->pg_completion_ops;
fs/nfs/pagelist.c
112
if (hdr->completion_ops->init_hdr)
fs/nfs/pagelist.c
113
hdr->completion_ops->init_hdr(hdr);
fs/nfs/pagelist.c
115
hdr->pgio_mirror_idx = desc->pg_mirror_idx;
fs/nfs/pagelist.c
119
void nfs_set_pgio_error(struct nfs_pgio_header *hdr, int error, loff_t pos)
fs/nfs/pagelist.c
121
unsigned int new = pos - hdr->io_start;
fs/nfs/pagelist.c
123
trace_nfs_pgio_error(hdr, error, pos);
fs/nfs/pagelist.c
124
if (hdr->good_bytes > new) {
fs/nfs/pagelist.c
125
hdr->good_bytes = new;
fs/nfs/pagelist.c
126
clear_bit(NFS_IOHDR_EOF, &hdr->flags);
fs/nfs/pagelist.c
127
if (!test_and_set_bit(NFS_IOHDR_ERROR, &hdr->flags))
fs/nfs/pagelist.c
128
hdr->error = error;
fs/nfs/pagelist.c
1377
struct nfs_pgio_header *hdr)
fs/nfs/pagelist.c
1381
desc->pg_io_completion = hdr->io_completion;
fs/nfs/pagelist.c
1382
desc->pg_dreq = hdr->dreq;
fs/nfs/pagelist.c
1383
nfs_netfs_set_pageio_descriptor(desc, hdr);
fs/nfs/pagelist.c
1384
list_splice_init(&hdr->pages, &pages);
fs/nfs/pagelist.c
1394
hdr->completion_ops->error_cleanup(&pages, err);
fs/nfs/pagelist.c
1395
nfs_set_pgio_error(hdr, err, hdr->io_start);
fs/nfs/pagelist.c
637
struct nfs_pgio_header *hdr = ops->rw_alloc_header();
fs/nfs/pagelist.c
639
if (hdr) {
fs/nfs/pagelist.c
640
INIT_LIST_HEAD(&hdr->pages);
fs/nfs/pagelist.c
641
hdr->rw_ops = ops;
fs/nfs/pagelist.c
643
return hdr;
fs/nfs/pagelist.c
655
static void nfs_pgio_data_destroy(struct nfs_pgio_header *hdr)
fs/nfs/pagelist.c
657
if (hdr->args.context)
fs/nfs/pagelist.c
658
put_nfs_open_context(hdr->args.context);
fs/nfs/pagelist.c
659
if (hdr->page_array.pagevec != hdr->page_array.page_array)
fs/nfs/pagelist.c
660
kfree(hdr->page_array.pagevec);
fs/nfs/pagelist.c
667
void nfs_pgio_header_free(struct nfs_pgio_header *hdr)
fs/nfs/pagelist.c
669
nfs_pgio_data_destroy(hdr);
fs/nfs/pagelist.c
670
hdr->rw_ops->rw_free_header(hdr);
fs/nfs/pagelist.c
682
static void nfs_pgio_rpcsetup(struct nfs_pgio_header *hdr, unsigned int pgbase,
fs/nfs/pagelist.c
686
struct nfs_page *req = hdr->req;
fs/nfs/pagelist.c
691
hdr->args.fh = NFS_FH(hdr->inode);
fs/nfs/pagelist.c
692
hdr->args.offset = req_offset(req);
fs/nfs/pagelist.c
694
hdr->mds_offset = hdr->args.offset;
fs/nfs/pagelist.c
695
hdr->args.pgbase = pgbase;
fs/nfs/pagelist.c
696
hdr->args.pages = hdr->page_array.pagevec;
fs/nfs/pagelist.c
697
hdr->args.count = count;
fs/nfs/pagelist.c
698
hdr->args.context = get_nfs_open_context(nfs_req_openctx(req));
fs/nfs/pagelist.c
699
hdr->args.lock_context = req->wb_lock_context;
fs/nfs/pagelist.c
700
hdr->args.stable = NFS_UNSTABLE;
fs/nfs/pagelist.c
709
hdr->args.stable = NFS_FILE_SYNC;
fs/nfs/pagelist.c
712
hdr->res.fattr = &hdr->fattr;
fs/nfs/pagelist.c
713
hdr->res.count = 0;
fs/nfs/pagelist.c
714
hdr->res.eof = 0;
fs/nfs/pagelist.c
715
hdr->res.verf = &hdr->verf;
fs/nfs/pagelist.c
716
nfs_fattr_init(&hdr->fattr);
fs/nfs/pagelist.c
726
struct nfs_pgio_header *hdr = calldata;
fs/nfs/pagelist.c
728
err = NFS_PROTO(hdr->inode)->pgio_rpc_prepare(task, hdr);
fs/nfs/pagelist.c
733
int nfs_initiate_pgio(struct rpc_clnt *clnt, struct nfs_pgio_header *hdr,
fs/nfs/pagelist.c
740
.rpc_argp = &hdr->args,
fs/nfs/pagelist.c
741
.rpc_resp = &hdr->res,
fs/nfs/pagelist.c
746
.task = &hdr->task,
fs/nfs/pagelist.c
749
.callback_data = hdr,
fs/nfs/pagelist.c
754
if (nfs_server_capable(hdr->inode, NFS_CAP_MOVEABLE))
fs/nfs/pagelist.c
757
hdr->rw_ops->rw_initiate(hdr, &msg, rpc_ops, &task_setup_data, how);
fs/nfs/pagelist.c
761
hdr->inode->i_sb->s_id,
fs/nfs/pagelist.c
762
(unsigned long long)NFS_FILEID(hdr->inode),
fs/nfs/pagelist.c
763
hdr->args.count,
fs/nfs/pagelist.c
764
(unsigned long long)hdr->args.offset);
fs/nfs/pagelist.c
767
return nfs_local_doio(NFS_SERVER(hdr->inode)->nfs_client,
fs/nfs/pagelist.c
768
localio, hdr, call_ops);
fs/nfs/pagelist.c
782
static void nfs_pgio_error(struct nfs_pgio_header *hdr)
fs/nfs/pagelist.c
784
set_bit(NFS_IOHDR_REDO, &hdr->flags);
fs/nfs/pagelist.c
785
hdr->completion_ops->completion(hdr);
fs/nfs/pagelist.c
794
struct nfs_pgio_header *hdr = calldata;
fs/nfs/pagelist.c
795
hdr->completion_ops->completion(hdr);
fs/nfs/pagelist.c
856
struct nfs_pgio_header *hdr = calldata;
fs/nfs/pagelist.c
857
struct inode *inode = hdr->inode;
fs/nfs/pagelist.c
859
if (hdr->rw_ops->rw_done(task, hdr, inode) != 0)
fs/nfs/pagelist.c
862
nfs_set_pgio_error(hdr, task->tk_status, hdr->args.offset);
fs/nfs/pagelist.c
864
hdr->rw_ops->rw_result(task, hdr);
fs/nfs/pagelist.c
876
struct nfs_pgio_header *hdr)
fs/nfs/pagelist.c
885
struct nfs_page_array *pg_array = &hdr->page_array;
fs/nfs/pagelist.c
900
nfs_pgio_error(hdr);
fs/nfs/pagelist.c
907
pages = hdr->page_array.pagevec;
fs/nfs/pagelist.c
915
nfs_list_move_request(req, &hdr->pages);
fs/nfs/pagelist.c
932
nfs_pgio_error(hdr);
fs/nfs/pagelist.c
942
nfs_pgio_rpcsetup(hdr, pg_base, mirror->pg_count, desc->pg_ioflags,
fs/nfs/pagelist.c
951
struct nfs_pgio_header *hdr;
fs/nfs/pagelist.c
955
hdr = nfs_pgio_header_alloc(desc->pg_rw_ops);
fs/nfs/pagelist.c
956
if (!hdr) {
fs/nfs/pagelist.c
96
struct nfs_pgio_header *hdr,
fs/nfs/pagelist.c
960
nfs_pgheader_init(desc, hdr, nfs_pgio_header_free);
fs/nfs/pagelist.c
961
ret = nfs_generic_pgio(desc, hdr);
fs/nfs/pagelist.c
963
struct nfs_client *clp = NFS_SERVER(hdr->inode)->nfs_client;
fs/nfs/pagelist.c
966
nfs_local_open_fh(clp, hdr->cred, hdr->args.fh,
fs/nfs/pagelist.c
967
&hdr->args.context->nfl,
fs/nfs/pagelist.c
968
hdr->args.context->mode);
fs/nfs/pagelist.c
97
void (*release)(struct nfs_pgio_header *hdr))
fs/nfs/pagelist.c
970
if (NFS_SERVER(hdr->inode)->nfs_client->cl_minorversion)
fs/nfs/pagelist.c
972
ret = nfs_initiate_pgio(NFS_CLIENT(hdr->inode),
fs/nfs/pagelist.c
973
hdr,
fs/nfs/pagelist.c
974
hdr->cred,
fs/nfs/pagelist.c
975
NFS_PROTO(hdr->inode),
fs/nfs/pnfs.c
2992
int pnfs_write_done_resend_to_mds(struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
2997
nfs_pageio_init_write(&pgio, hdr->inode, FLUSH_STABLE, true,
fs/nfs/pnfs.c
2998
hdr->completion_ops);
fs/nfs/pnfs.c
2999
return nfs_pageio_resend(&pgio, hdr);
fs/nfs/pnfs.c
3003
static void pnfs_ld_handle_write_error(struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
3006
dprintk("pnfs write error = %d\n", hdr->pnfs_error);
fs/nfs/pnfs.c
3007
if (NFS_SERVER(hdr->inode)->pnfs_curr_ld->flags &
fs/nfs/pnfs.c
3009
pnfs_return_layout(hdr->inode);
fs/nfs/pnfs.c
3011
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags))
fs/nfs/pnfs.c
3012
hdr->task.tk_status = pnfs_write_done_resend_to_mds(hdr);
fs/nfs/pnfs.c
3018
void pnfs_ld_write_done(struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
3020
if (likely(!hdr->pnfs_error)) {
fs/nfs/pnfs.c
3021
pnfs_set_layoutcommit(hdr->inode, hdr->lseg,
fs/nfs/pnfs.c
3022
hdr->mds_offset + hdr->res.count);
fs/nfs/pnfs.c
3023
hdr->mds_ops->rpc_call_done(&hdr->task, hdr);
fs/nfs/pnfs.c
3025
trace_nfs4_pnfs_write(hdr, hdr->pnfs_error);
fs/nfs/pnfs.c
3026
if (unlikely(hdr->pnfs_error))
fs/nfs/pnfs.c
3027
pnfs_ld_handle_write_error(hdr);
fs/nfs/pnfs.c
3028
hdr->mds_ops->rpc_release(hdr);
fs/nfs/pnfs.c
3034
struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
3038
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/pnfs.c
3039
list_splice_tail_init(&hdr->pages, &mirror->pg_list);
fs/nfs/pnfs.c
3043
hdr->completion_ops->completion(hdr);
fs/nfs/pnfs.c
3047
pnfs_try_to_write_data(struct nfs_pgio_header *hdr,
fs/nfs/pnfs.c
3052
struct inode *inode = hdr->inode;
fs/nfs/pnfs.c
3056
hdr->mds_ops = call_ops;
fs/nfs/pnfs.c
3059
inode->i_ino, hdr->args.count, hdr->args.offset, how);
fs/nfs/pnfs.c
3060
trypnfs = nfss->pnfs_curr_ld->write_pagelist(hdr, how);
fs/nfs/pnfs.c
3069
struct nfs_pgio_header *hdr, int how)
fs/nfs/pnfs.c
3075
trypnfs = pnfs_try_to_write_data(hdr, call_ops, lseg, how);
fs/nfs/pnfs.c
3078
pnfs_write_through_mds(desc, hdr);
fs/nfs/pnfs.c
3084
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/pnfs.c
3086
list_splice_init(&hdr->pages, &mirror->pg_list);
fs/nfs/pnfs.c
3089
hdr->mds_ops->rpc_release(hdr);
fs/nfs/pnfs.c
3093
static void pnfs_writehdr_free(struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
3095
pnfs_put_lseg(hdr->lseg);
fs/nfs/pnfs.c
3096
nfs_pgio_header_free(hdr);
fs/nfs/pnfs.c
3102
struct nfs_pgio_header *hdr;
fs/nfs/pnfs.c
3105
hdr = nfs_pgio_header_alloc(desc->pg_rw_ops);
fs/nfs/pnfs.c
3106
if (!hdr) {
fs/nfs/pnfs.c
3110
nfs_pgheader_init(desc, hdr, pnfs_writehdr_free);
fs/nfs/pnfs.c
3112
hdr->lseg = pnfs_get_lseg(desc->pg_lseg);
fs/nfs/pnfs.c
3113
ret = nfs_generic_pgio(desc, hdr);
fs/nfs/pnfs.c
3115
pnfs_do_write(desc, hdr, desc->pg_ioflags);
fs/nfs/pnfs.c
3121
int pnfs_read_done_resend_to_mds(struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
3126
nfs_pageio_init_read(&pgio, hdr->inode, true, hdr->completion_ops);
fs/nfs/pnfs.c
3127
return nfs_pageio_resend(&pgio, hdr);
fs/nfs/pnfs.c
3131
static void pnfs_ld_handle_read_error(struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
3133
dprintk("pnfs read error = %d\n", hdr->pnfs_error);
fs/nfs/pnfs.c
3134
if (NFS_SERVER(hdr->inode)->pnfs_curr_ld->flags &
fs/nfs/pnfs.c
3136
pnfs_return_layout(hdr->inode);
fs/nfs/pnfs.c
3138
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags))
fs/nfs/pnfs.c
3139
hdr->task.tk_status = pnfs_read_done_resend_to_mds(hdr);
fs/nfs/pnfs.c
3145
void pnfs_ld_read_done(struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
3147
if (likely(!hdr->pnfs_error))
fs/nfs/pnfs.c
3148
hdr->mds_ops->rpc_call_done(&hdr->task, hdr);
fs/nfs/pnfs.c
3149
trace_nfs4_pnfs_read(hdr, hdr->pnfs_error);
fs/nfs/pnfs.c
3150
if (unlikely(hdr->pnfs_error))
fs/nfs/pnfs.c
3151
pnfs_ld_handle_read_error(hdr);
fs/nfs/pnfs.c
3152
hdr->mds_ops->rpc_release(hdr);
fs/nfs/pnfs.c
3158
struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
3162
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/pnfs.c
3163
list_splice_tail_init(&hdr->pages, &mirror->pg_list);
fs/nfs/pnfs.c
3167
hdr->completion_ops->completion(hdr);
fs/nfs/pnfs.c
3174
pnfs_try_to_read_data(struct nfs_pgio_header *hdr,
fs/nfs/pnfs.c
3178
struct inode *inode = hdr->inode;
fs/nfs/pnfs.c
3182
hdr->mds_ops = call_ops;
fs/nfs/pnfs.c
3185
__func__, inode->i_ino, hdr->args.count, hdr->args.offset);
fs/nfs/pnfs.c
3187
trypnfs = nfss->pnfs_curr_ld->read_pagelist(hdr);
fs/nfs/pnfs.c
3195
void pnfs_read_resend_pnfs(struct nfs_pgio_header *hdr,
fs/nfs/pnfs.c
3200
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/pnfs.c
3202
pnfs_put_lseg(hdr->lseg);
fs/nfs/pnfs.c
3203
hdr->lseg = NULL;
fs/nfs/pnfs.c
3205
nfs_pageio_init_read(&pgio, hdr->inode, false,
fs/nfs/pnfs.c
3206
hdr->completion_ops);
fs/nfs/pnfs.c
3208
hdr->task.tk_status = nfs_pageio_resend(&pgio, hdr);
fs/nfs/pnfs.c
3214
pnfs_do_read(struct nfs_pageio_descriptor *desc, struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
3220
trypnfs = pnfs_try_to_read_data(hdr, call_ops, lseg);
fs/nfs/pnfs.c
3223
pnfs_read_through_mds(desc, hdr);
fs/nfs/pnfs.c
3229
if (!test_and_set_bit(NFS_IOHDR_REDO, &hdr->flags)) {
fs/nfs/pnfs.c
3231
list_splice_init(&hdr->pages, &mirror->pg_list);
fs/nfs/pnfs.c
3234
hdr->mds_ops->rpc_release(hdr);
fs/nfs/pnfs.c
3238
static void pnfs_readhdr_free(struct nfs_pgio_header *hdr)
fs/nfs/pnfs.c
3240
pnfs_put_lseg(hdr->lseg);
fs/nfs/pnfs.c
3241
nfs_pgio_header_free(hdr);
fs/nfs/pnfs.c
3247
struct nfs_pgio_header *hdr;
fs/nfs/pnfs.c
3250
hdr = nfs_pgio_header_alloc(desc->pg_rw_ops);
fs/nfs/pnfs.c
3251
if (!hdr) {
fs/nfs/pnfs.c
3255
nfs_pgheader_init(desc, hdr, pnfs_readhdr_free);
fs/nfs/pnfs.c
3256
hdr->lseg = pnfs_get_lseg(desc->pg_lseg);
fs/nfs/pnfs.c
3257
ret = nfs_generic_pgio(desc, hdr);
fs/nfs/pnfs.c
3259
pnfs_do_read(desc, hdr);
fs/nfs/pnfs.c
3469
struct pnfs_layout_hdr *hdr;
fs/nfs/pnfs.c
3486
hdr = NFS_I(inode)->layout;
fs/nfs/pnfs.c
3487
pnfs_get_layout_hdr(hdr);
fs/nfs/pnfs.c
3511
pnfs_put_layout_hdr(hdr);
fs/nfs/pnfs_nfs.c
26
struct nfs_pgio_header *hdr = data;
fs/nfs/pnfs_nfs.c
28
nfs_put_client(hdr->ds_clp);
fs/nfs/pnfs_nfs.c
29
hdr->mds_ops->rpc_release(data);
fs/nfs/proc.c
603
static int nfs_read_done(struct rpc_task *task, struct nfs_pgio_header *hdr)
fs/nfs/proc.c
605
struct inode *inode = hdr->inode;
fs/nfs/proc.c
609
nfs_refresh_inode(inode, hdr->res.fattr);
fs/nfs/proc.c
613
if ((hdr->res.count == 0 && hdr->args.count > 0) ||
fs/nfs/proc.c
614
hdr->args.offset + hdr->res.count >= hdr->res.fattr->size)
fs/nfs/proc.c
615
hdr->res.eof = 1;
fs/nfs/proc.c
620
static void nfs_proc_read_setup(struct nfs_pgio_header *hdr,
fs/nfs/proc.c
627
struct nfs_pgio_header *hdr)
fs/nfs/proc.c
633
static int nfs_write_done(struct rpc_task *task, struct nfs_pgio_header *hdr)
fs/nfs/proc.c
636
hdr->res.count = hdr->args.count;
fs/nfs/proc.c
637
nfs_writeback_update_inode(hdr);
fs/nfs/proc.c
642
static void nfs_proc_write_setup(struct nfs_pgio_header *hdr,
fs/nfs/proc.c
647
hdr->args.stable = NFS_FILE_SYNC;
fs/nfs/read.c
114
bool nfs_read_alloc_scratch(struct nfs_pgio_header *hdr, size_t size)
fs/nfs/read.c
116
WARN_ON(hdr->res.scratch != NULL);
fs/nfs/read.c
117
hdr->res.scratch = kmalloc(size, GFP_KERNEL);
fs/nfs/read.c
118
return hdr->res.scratch != NULL;
fs/nfs/read.c
139
static void nfs_read_completion(struct nfs_pgio_header *hdr)
fs/nfs/read.c
144
if (test_bit(NFS_IOHDR_REDO, &hdr->flags))
fs/nfs/read.c
146
while (!list_empty(&hdr->pages)) {
fs/nfs/read.c
147
struct nfs_page *req = nfs_list_entry(hdr->pages.next);
fs/nfs/read.c
152
if (test_bit(NFS_IOHDR_EOF, &hdr->flags)) {
fs/nfs/read.c
156
if (bytes > hdr->good_bytes) {
fs/nfs/read.c
161
} else if (hdr->good_bytes - bytes < req->wb_bytes) {
fs/nfs/read.c
164
start += hdr->good_bytes - bytes;
fs/nfs/read.c
171
if (test_bit(NFS_IOHDR_ERROR, &hdr->flags)) {
fs/nfs/read.c
172
if (bytes <= hdr->good_bytes)
fs/nfs/read.c
175
error = hdr->error;
fs/nfs/read.c
183
nfs_netfs_read_completion(hdr);
fs/nfs/read.c
186
hdr->release(hdr);
fs/nfs/read.c
189
static void nfs_initiate_read(struct nfs_pgio_header *hdr,
fs/nfs/read.c
194
rpc_ops->read_setup(hdr, msg);
fs/nfs/read.c
195
nfs_netfs_initiate_read(hdr);
fs/nfs/read.c
196
trace_nfs_initiate_read(hdr);
fs/nfs/read.c
221
struct nfs_pgio_header *hdr,
fs/nfs/read.c
224
int status = NFS_PROTO(inode)->read_done(task, hdr);
fs/nfs/read.c
228
nfs_add_stats(inode, NFSIOS_SERVERREADBYTES, hdr->res.count);
fs/nfs/read.c
229
trace_nfs_readpage_done(task, hdr);
fs/nfs/read.c
239
struct nfs_pgio_header *hdr)
fs/nfs/read.c
241
struct nfs_pgio_args *argp = &hdr->args;
fs/nfs/read.c
242
struct nfs_pgio_res *resp = &hdr->res;
fs/nfs/read.c
245
nfs_inc_stats(hdr->inode, NFSIOS_SHORTREAD);
fs/nfs/read.c
246
trace_nfs_readpage_short(task, hdr);
fs/nfs/read.c
250
nfs_set_pgio_error(hdr, -EIO, argp->offset);
fs/nfs/read.c
256
hdr->pnfs_error = -EAGAIN;
fs/nfs/read.c
261
hdr->mds_offset += resp->count;
fs/nfs/read.c
271
struct nfs_pgio_header *hdr)
fs/nfs/read.c
273
if (hdr->res.eof) {
fs/nfs/read.c
274
loff_t pos = hdr->args.offset + hdr->res.count;
fs/nfs/read.c
275
unsigned int new = pos - hdr->io_start;
fs/nfs/read.c
277
if (hdr->good_bytes > new) {
fs/nfs/read.c
278
hdr->good_bytes = new;
fs/nfs/read.c
279
set_bit(NFS_IOHDR_EOF, &hdr->flags);
fs/nfs/read.c
280
clear_bit(NFS_IOHDR_ERROR, &hdr->flags);
fs/nfs/read.c
282
} else if (hdr->res.count < hdr->args.count)
fs/nfs/read.c
283
nfs_readpage_retry(task, hdr);
fs/nfs/write.c
109
static void nfs_writehdr_free(struct nfs_pgio_header *hdr)
fs/nfs/write.c
111
mempool_free(hdr, nfs_wdata_mempool);
fs/nfs/write.c
1342
static void nfs_initiate_write(struct nfs_pgio_header *hdr,
fs/nfs/write.c
1349
if (IS_SWAPFILE(hdr->inode))
fs/nfs/write.c
1352
rpc_ops->write_setup(hdr, msg, &task_setup_data->rpc_client);
fs/nfs/write.c
1353
trace_nfs_initiate_write(hdr);
fs/nfs/write.c
1386
static void nfs_async_write_reschedule_io(struct nfs_pgio_header *hdr)
fs/nfs/write.c
1388
nfs_async_write_error(&hdr->pages, 0);
fs/nfs/write.c
1438
static void nfs_writeback_check_extend(struct nfs_pgio_header *hdr,
fs/nfs/write.c
1441
struct nfs_pgio_args *argp = &hdr->args;
fs/nfs/write.c
1442
struct nfs_pgio_res *resp = &hdr->res;
fs/nfs/write.c
1447
if (nfs_size_to_loff_t(fattr->size) < i_size_read(hdr->inode)) {
fs/nfs/write.c
1459
void nfs_writeback_update_inode(struct nfs_pgio_header *hdr)
fs/nfs/write.c
1461
struct nfs_fattr *fattr = &hdr->fattr;
fs/nfs/write.c
1462
struct inode *inode = hdr->inode;
fs/nfs/write.c
1472
nfs_writeback_check_extend(hdr, fattr);
fs/nfs/write.c
1482
struct nfs_pgio_header *hdr,
fs/nfs/write.c
1494
status = NFS_PROTO(inode)->write_done(task, hdr);
fs/nfs/write.c
1498
nfs_add_stats(inode, NFSIOS_SERVERWRITTENBYTES, hdr->res.count);
fs/nfs/write.c
1499
trace_nfs_writeback_done(task, hdr);
fs/nfs/write.c
1502
enum nfs3_stable_how committed = hdr->res.verf->committed;
fs/nfs/write.c
1510
set_bit(NFS_IOHDR_UNSTABLE_WRITES, &hdr->flags);
fs/nfs/write.c
1513
if (committed < hdr->args.stable) {
fs/nfs/write.c
1529
committed, hdr->args.stable);
fs/nfs/write.c
1549
struct nfs_pgio_header *hdr)
fs/nfs/write.c
1551
struct nfs_pgio_args *argp = &hdr->args;
fs/nfs/write.c
1552
struct nfs_pgio_res *resp = &hdr->res;
fs/nfs/write.c
1558
nfs_inc_stats(hdr->inode, NFSIOS_SHORTWRITE);
fs/nfs/write.c
1568
nfs_set_pgio_error(hdr, -EIO, argp->offset);
fs/nfs/write.c
1575
hdr->pnfs_error = -EAGAIN;
fs/nfs/write.c
1582
hdr->mds_offset += resp->count;
fs/nfs/write.c
897
int nfs_write_need_commit(struct nfs_pgio_header *hdr)
fs/nfs/write.c
899
if (hdr->verf.committed == NFS_DATA_SYNC)
fs/nfs/write.c
900
return hdr->lseg == NULL;
fs/nfs/write.c
901
return hdr->verf.committed != NFS_FILE_SYNC;
fs/nfs/write.c
904
static void nfs_async_write_init(struct nfs_pgio_header *hdr)
fs/nfs/write.c
906
nfs_io_completion_get(hdr->io_completion);
fs/nfs/write.c
909
static void nfs_write_completion(struct nfs_pgio_header *hdr)
fs/nfs/write.c
914
if (test_bit(NFS_IOHDR_REDO, &hdr->flags))
fs/nfs/write.c
916
nfs_init_cinfo_from_inode(&cinfo, hdr->inode);
fs/nfs/write.c
917
while (!list_empty(&hdr->pages)) {
fs/nfs/write.c
918
struct nfs_page *req = nfs_list_entry(hdr->pages.next);
fs/nfs/write.c
922
if (test_bit(NFS_IOHDR_ERROR, &hdr->flags) &&
fs/nfs/write.c
923
(hdr->good_bytes < bytes)) {
fs/nfs/write.c
924
trace_nfs_comp_error(hdr->inode, req, hdr->error);
fs/nfs/write.c
926
hdr->error);
fs/nfs/write.c
929
if (nfs_write_need_commit(hdr)) {
fs/nfs/write.c
932
memcpy(&req->wb_verf, &hdr->verf.verifier, sizeof(req->wb_verf));
fs/nfs/write.c
933
nfs_mark_request_commit(req, hdr->lseg, &cinfo,
fs/nfs/write.c
934
hdr->ds_commit_idx);
fs/nfs/write.c
944
nfs_io_completion_put(hdr->io_completion);
fs/nfs/write.c
945
hdr->release(hdr);
fs/nfs_common/nfsacl.c
116
container_of(&aclbuf.acl, struct posix_acl, hdr);
fs/nfs_common/nfsacl.c
182
container_of(&aclbuf.acl, struct posix_acl, hdr);
fs/nfsd/nfs4callback.c
275
struct nfs4_cb_compound_hdr *hdr)
fs/nfsd/nfs4callback.c
281
*p++ = cpu_to_be32(hdr->minorversion);
fs/nfsd/nfs4callback.c
282
*p++ = cpu_to_be32(hdr->ident);
fs/nfsd/nfs4callback.c
284
hdr->nops_p = p;
fs/nfsd/nfs4callback.c
285
*p = cpu_to_be32(hdr->nops); /* argarray element count */
fs/nfsd/nfs4callback.c
291
static void encode_cb_nops(struct nfs4_cb_compound_hdr *hdr)
fs/nfsd/nfs4callback.c
293
BUG_ON(hdr->nops > NFS4_MAX_BACK_CHANNEL_OPS);
fs/nfsd/nfs4callback.c
294
*hdr->nops_p = cpu_to_be32(hdr->nops);
fs/nfsd/nfs4callback.c
307
struct nfs4_cb_compound_hdr *hdr)
fs/nfsd/nfs4callback.c
315
hdr->status = be32_to_cpup(p);
fs/nfsd/nfs4callback.c
321
if (xdr_stream_decode_u32(xdr, &hdr->nops) < 0)
fs/nfsd/nfs4callback.c
339
struct nfs4_cb_compound_hdr *hdr)
fs/nfsd/nfs4callback.c
351
hdr->nops++;
fs/nfsd/nfs4callback.c
364
struct nfs4_cb_compound_hdr *hdr, struct nfsd4_cb_recall_any *ra)
fs/nfsd/nfs4callback.c
369
hdr->nops++;
fs/nfsd/nfs4callback.c
383
encode_cb_getattr4args(struct xdr_stream *xdr, struct nfs4_cb_compound_hdr *hdr,
fs/nfsd/nfs4callback.c
404
hdr->nops++;
fs/nfsd/nfs4callback.c
457
struct nfs4_cb_compound_hdr *hdr)
fs/nfsd/nfs4callback.c
463
if (hdr->minorversion == 0)
fs/nfsd/nfs4callback.c
480
hdr->nops++;
fs/nfsd/nfs4callback.c
618
struct nfs4_cb_compound_hdr hdr = {
fs/nfsd/nfs4callback.c
623
encode_cb_compound4args(xdr, &hdr);
fs/nfsd/nfs4callback.c
624
encode_cb_sequence4args(xdr, cb, &hdr);
fs/nfsd/nfs4callback.c
625
encode_cb_getattr4args(xdr, &hdr, ncf);
fs/nfsd/nfs4callback.c
626
encode_cb_nops(&hdr);
fs/nfsd/nfs4callback.c
637
struct nfs4_cb_compound_hdr hdr = {
fs/nfsd/nfs4callback.c
642
encode_cb_compound4args(xdr, &hdr);
fs/nfsd/nfs4callback.c
643
encode_cb_sequence4args(xdr, cb, &hdr);
fs/nfsd/nfs4callback.c
644
encode_cb_recall4args(xdr, dp, &hdr);
fs/nfsd/nfs4callback.c
645
encode_cb_nops(&hdr);
fs/nfsd/nfs4callback.c
657
struct nfs4_cb_compound_hdr hdr = {
fs/nfsd/nfs4callback.c
663
encode_cb_compound4args(xdr, &hdr);
fs/nfsd/nfs4callback.c
664
encode_cb_sequence4args(xdr, cb, &hdr);
fs/nfsd/nfs4callback.c
665
encode_cb_recallany4args(xdr, &hdr, ra);
fs/nfsd/nfs4callback.c
666
encode_cb_nops(&hdr);
fs/nfsd/nfs4callback.c
692
struct nfs4_cb_compound_hdr hdr;
fs/nfsd/nfs4callback.c
699
status = decode_cb_compound4res(xdr, &hdr);
fs/nfsd/nfs4callback.c
732
struct nfs4_cb_compound_hdr hdr;
fs/nfsd/nfs4callback.c
735
status = decode_cb_compound4res(xdr, &hdr);
fs/nfsd/nfs4callback.c
755
struct nfs4_cb_compound_hdr hdr;
fs/nfsd/nfs4callback.c
758
status = decode_cb_compound4res(xdr, &hdr);
fs/nfsd/nfs4callback.c
797
struct nfs4_cb_compound_hdr *hdr)
fs/nfsd/nfs4callback.c
801
BUG_ON(hdr->minorversion == 0);
fs/nfsd/nfs4callback.c
818
hdr->nops++;
fs/nfsd/nfs4callback.c
828
struct nfs4_cb_compound_hdr hdr = {
fs/nfsd/nfs4callback.c
833
encode_cb_compound4args(xdr, &hdr);
fs/nfsd/nfs4callback.c
834
encode_cb_sequence4args(xdr, cb, &hdr);
fs/nfsd/nfs4callback.c
835
encode_cb_layout4args(xdr, ls, &hdr);
fs/nfsd/nfs4callback.c
836
encode_cb_nops(&hdr);
fs/nfsd/nfs4callback.c
844
struct nfs4_cb_compound_hdr hdr;
fs/nfsd/nfs4callback.c
847
status = decode_cb_compound4res(xdr, &hdr);
fs/nfsd/nfs4callback.c
876
struct nfs4_cb_compound_hdr hdr = {
fs/nfsd/nfs4callback.c
883
BUG_ON(hdr.minorversion == 0);
fs/nfsd/nfs4callback.c
885
encode_cb_compound4args(xdr, &hdr);
fs/nfsd/nfs4callback.c
886
encode_cb_sequence4args(xdr, cb, &hdr);
fs/nfsd/nfs4callback.c
892
hdr.nops++;
fs/nfsd/nfs4callback.c
894
encode_cb_nops(&hdr);
fs/nfsd/nfs4callback.c
902
struct nfs4_cb_compound_hdr hdr;
fs/nfsd/nfs4callback.c
905
status = decode_cb_compound4res(xdr, &hdr);
fs/nfsd/nfs4callback.c
960
struct nfs4_cb_compound_hdr *hdr)
fs/nfsd/nfs4callback.c
970
hdr->nops++;
fs/nfsd/nfs4callback.c
980
struct nfs4_cb_compound_hdr hdr = {
fs/nfsd/nfs4callback.c
985
encode_cb_compound4args(xdr, &hdr);
fs/nfsd/nfs4callback.c
986
encode_cb_sequence4args(xdr, cb, &hdr);
fs/nfsd/nfs4callback.c
987
encode_cb_offload4args(xdr, cbo, &hdr);
fs/nfsd/nfs4callback.c
988
encode_cb_nops(&hdr);
fs/nfsd/nfs4callback.c
996
struct nfs4_cb_compound_hdr hdr;
fs/nfsd/nfs4callback.c
999
status = decode_cb_compound4res(xdr, &hdr);
fs/nfsd/nfs4recover.c
770
struct cld_msg_hdr __user *hdr = (struct cld_msg_hdr __user *)src;
fs/nfsd/nfs4recover.c
785
if (copy_from_user(&xid, &hdr->cm_xid, sizeof(xid)) != 0) {
fs/nfsd/nfs4recover.c
795
if (get_user(status, &hdr->cm_status)) {
fs/nfsd/nfsctl.c
1419
void *hdr;
fs/nfsd/nfsctl.c
1422
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
fs/nfsd/nfsctl.c
1424
if (!hdr)
fs/nfsd/nfsctl.c
1477
genlmsg_end(skb, hdr);
fs/nfsd/nfsctl.c
1680
void *hdr;
fs/nfsd/nfsctl.c
1687
hdr = genlmsg_iput(skb, info);
fs/nfsd/nfsctl.c
1688
if (!hdr) {
fs/nfsd/nfsctl.c
1725
genlmsg_end(skb, hdr);
fs/nfsd/nfsctl.c
1816
void *hdr;
fs/nfsd/nfsctl.c
1822
hdr = genlmsg_iput(skb, info);
fs/nfsd/nfsctl.c
1823
if (!hdr) {
fs/nfsd/nfsctl.c
1873
genlmsg_end(skb, hdr);
fs/nfsd/nfsctl.c
2040
void *hdr;
fs/nfsd/nfsctl.c
2047
hdr = genlmsg_iput(skb, info);
fs/nfsd/nfsctl.c
2048
if (!hdr) {
fs/nfsd/nfsctl.c
2085
genlmsg_end(skb, hdr);
fs/nfsd/nfsctl.c
2127
void *hdr;
fs/nfsd/nfsctl.c
2138
hdr = genlmsg_iput(skb, info);
fs/nfsd/nfsctl.c
2139
if (!hdr)
fs/nfsd/nfsctl.c
2147
genlmsg_end(skb, hdr);
fs/notify/fanotify/fanotify.c
600
pevent->hdr.type = FAN_RESPONSE_INFO_NONE;
fs/notify/fanotify/fanotify.c
601
pevent->hdr.pad = 0;
fs/notify/fanotify/fanotify.c
602
pevent->hdr.len = 0;
fs/notify/fanotify/fanotify.h
448
struct fanotify_response_info_header hdr;
fs/notify/fanotify/fanotify_user.c
386
if (friar->hdr.type != FAN_RESPONSE_INFO_AUDIT_RULE)
fs/notify/fanotify/fanotify_user.c
388
if (friar->hdr.pad != 0)
fs/notify/fanotify/fanotify_user.c
390
if (friar->hdr.len != sizeof(*friar))
fs/notify/fanotify/fanotify_user.c
512
info.hdr.info_type = FAN_EVENT_INFO_TYPE_MNT;
fs/notify/fanotify/fanotify_user.c
513
info.hdr.len = FANOTIFY_MNT_INFO_LEN;
fs/notify/fanotify/fanotify_user.c
515
if (WARN_ON(count < info.hdr.len))
fs/notify/fanotify/fanotify_user.c
523
return info.hdr.len;
fs/notify/fanotify/fanotify_user.c
532
info.hdr.info_type = FAN_EVENT_INFO_TYPE_ERROR;
fs/notify/fanotify/fanotify_user.c
533
info.hdr.len = FANOTIFY_ERROR_INFO_LEN;
fs/notify/fanotify/fanotify_user.c
535
if (WARN_ON(count < info.hdr.len))
fs/notify/fanotify/fanotify_user.c
544
return info.hdr.len;
fs/notify/fanotify/fanotify_user.c
585
info.hdr.info_type = info_type;
fs/notify/fanotify/fanotify_user.c
586
info.hdr.len = len;
fs/notify/fanotify/fanotify_user.c
657
info.hdr.info_type = FAN_EVENT_INFO_TYPE_PIDFD;
fs/notify/fanotify/fanotify_user.c
658
info.hdr.len = info_len;
fs/notify/fanotify/fanotify_user.c
680
info.hdr.info_type = FAN_EVENT_INFO_TYPE_RANGE;
fs/notify/fanotify/fanotify_user.c
681
info.hdr.len = info_len;
fs/ntfs3/dir.c
355
const struct INDEX_HDR *hdr, u64 vbo, u64 pos,
fs/ntfs3/dir.c
360
u32 end = le32_to_cpu(hdr->used);
fs/ntfs3/dir.c
361
u32 off = le32_to_cpu(hdr->de_off);
fs/ntfs3/dir.c
367
e = Add2Ptr(hdr, off);
fs/ntfs3/dir.c
574
struct INDEX_HDR *hdr;
fs/ntfs3/dir.c
588
hdr = &root->ihdr;
fs/ntfs3/dir.c
591
end = le32_to_cpu(hdr->used);
fs/ntfs3/dir.c
592
off = le32_to_cpu(hdr->de_off);
fs/ntfs3/dir.c
595
e = Add2Ptr(hdr, off);
fs/ntfs3/dir.c
643
hdr = &node->index->ihdr;
fs/ntfs3/fslog.c
1112
struct RECORD_PAGE_HDR *hdr)
fs/ntfs3/fslog.c
1115
return le64_to_cpu(hdr->rhdr.lsn);
fs/ntfs3/fslog.c
1117
return le32_to_cpu(hdr->file_off);
fs/ntfs3/fslog.c
1121
const struct RECORD_PAGE_HDR *hdr, u64 lsn)
fs/ntfs3/fslog.c
1123
u64 h_lsn = le64_to_cpu(hdr->rhdr.lsn);
fs/ntfs3/fslog.c
1127
((((is_log_record_end(hdr) &&
fs/ntfs3/fslog.c
1128
h_lsn <= le64_to_cpu(hdr->record_hdr.last_end_lsn)) ?
fs/ntfs3/fslog.c
1129
le16_to_cpu(hdr->record_hdr.next_record_off) :
fs/ntfs3/fslog.c
2505
struct LFS_RECORD_HDR *hdr;
fs/ntfs3/fslog.c
2507
hdr = lcb->lrh;
fs/ntfs3/fslog.c
2517
err = next_log_lsn(log, hdr, ¤t_lsn);
fs/ntfs3/fslog.c
2524
if (hdr != lcb->lrh)
fs/ntfs3/fslog.c
2525
kfree(hdr);
fs/ntfs3/fslog.c
2527
hdr = NULL;
fs/ntfs3/fslog.c
2529
(struct RECORD_PAGE_HDR **)&hdr, NULL);
fs/ntfs3/fslog.c
2533
if (memcmp(&hdr->client, &lcb->client,
fs/ntfs3/fslog.c
2536
} else if (LfsClientRecord == hdr->record_type) {
fs/ntfs3/fslog.c
2538
lcb->lrh = hdr;
fs/ntfs3/fslog.c
2545
if (hdr != lcb->lrh)
fs/ntfs3/fslog.c
2546
kfree(hdr);
fs/ntfs3/fslog.c
2551
next_lsn = le64_to_cpu(hdr->client_undo_next_lsn);
fs/ntfs3/fslog.c
2553
next_lsn = le64_to_cpu(hdr->client_prev_lsn);
fs/ntfs3/fslog.c
2565
hdr = NULL;
fs/ntfs3/fslog.c
2567
(struct RECORD_PAGE_HDR **)&hdr, NULL);
fs/ntfs3/fslog.c
2571
lcb->lrh = hdr;
fs/ntfs3/fslog.c
2600
bool check_index_header(const struct INDEX_HDR *hdr, size_t bytes)
fs/ntfs3/fslog.c
2606
if (hdr_has_subnode(hdr)) {
fs/ntfs3/fslog.c
2614
de_off = le32_to_cpu(hdr->de_off);
fs/ntfs3/fslog.c
2615
used = le32_to_cpu(hdr->used);
fs/ntfs3/fslog.c
2616
total = le32_to_cpu(hdr->total);
fs/ntfs3/fslog.c
2623
e = Add2Ptr(hdr, de_off);
fs/ntfs3/fslog.c
2628
if (esize < min_de || PtrOffset(hdr, next) > used ||
fs/ntfs3/fslog.c
2815
static inline int check_lsn(const struct NTFS_RECORD_HEADER *hdr,
fs/ntfs3/fslog.c
282
static inline bool is_log_record_end(const struct RECORD_PAGE_HDR *hdr)
fs/ntfs3/fslog.c
2823
lsn = le64_to_cpu(hdr->lsn);
fs/ntfs3/fslog.c
2825
if (hdr->sign == NTFS_HOLE_SIGNATURE)
fs/ntfs3/fslog.c
284
return hdr->rflags & LOG_PAGE_LOG_RECORD_END;
fs/ntfs3/fslog.c
2883
const struct INDEX_HDR *hdr,
fs/ntfs3/fslog.c
2887
u32 de_off = le32_to_cpu(hdr->de_off);
fs/ntfs3/fslog.c
2888
u32 o = PtrOffset(attr, hdr) + de_off;
fs/ntfs3/fslog.c
2889
const struct NTFS_DE *e = Add2Ptr(hdr, de_off);
fs/ntfs3/fslog.c
2909
static inline bool check_if_alloc_index(const struct INDEX_HDR *hdr,
fs/ntfs3/fslog.c
2912
u32 de_off = le32_to_cpu(hdr->de_off);
fs/ntfs3/fslog.c
2914
const struct NTFS_DE *e = Add2Ptr(hdr, de_off);
fs/ntfs3/fslog.c
2915
u32 used = le32_to_cpu(hdr->used);
fs/ntfs3/fslog.c
3069
struct INDEX_HDR *hdr;
fs/ntfs3/fslog.c
3396
hdr = &root->ihdr;
fs/ntfs3/fslog.c
3397
used = le32_to_cpu(hdr->used);
fs/ntfs3/fslog.c
3400
!check_if_root_index(attr, hdr, lrh) ||
fs/ntfs3/fslog.c
3411
PtrOffset(e1, Add2Ptr(hdr, used)));
fs/ntfs3/fslog.c
3415
hdr->used = cpu_to_le32(used + esize);
fs/ntfs3/fslog.c
3416
le32_add_cpu(&hdr->total, esize);
fs/ntfs3/fslog.c
3423
hdr = &root->ihdr;
fs/ntfs3/fslog.c
3424
used = le32_to_cpu(hdr->used);
fs/ntfs3/fslog.c
3427
!check_if_root_index(attr, hdr, lrh)) {
fs/ntfs3/fslog.c
3433
if (PtrOffset(e1, Add2Ptr(hdr, used)) < esize)
fs/ntfs3/fslog.c
3438
memmove(e1, e2, PtrOffset(e2, Add2Ptr(hdr, used)));
fs/ntfs3/fslog.c
3441
hdr->used = cpu_to_le32(used - esize);
fs/ntfs3/fslog.c
3442
le32_sub_cpu(&hdr->total, esize);
fs/ntfs3/fslog.c
3451
hdr = &root->ihdr;
fs/ntfs3/fslog.c
3454
!check_if_root_index(attr, hdr, lrh)) {
fs/ntfs3/fslog.c
3466
hdr = &root->ihdr;
fs/ntfs3/fslog.c
3469
!check_if_root_index(attr, hdr, lrh)) {
fs/ntfs3/fslog.c
3481
hdr = &root->ihdr;
fs/ntfs3/fslog.c
3484
!check_if_root_index(attr, hdr, lrh)) {
fs/ntfs3/fslog.c
3516
hdr = &ib->ihdr;
fs/ntfs3/fslog.c
3526
used = le32_to_cpu(hdr->used);
fs/ntfs3/fslog.c
3529
!check_if_alloc_index(hdr, aoff) ||
fs/ntfs3/fslog.c
3531
used + esize > le32_to_cpu(hdr->total)) {
fs/ntfs3/fslog.c
3536
PtrOffset(e1, Add2Ptr(hdr, used)));
fs/ntfs3/fslog.c
3539
hdr->used = cpu_to_le32(used + esize);
fs/ntfs3/fslog.c
3548
hdr = &ib->ihdr;
fs/ntfs3/fslog.c
3558
!check_if_alloc_index(hdr, aoff)) {
fs/ntfs3/fslog.c
3564
used = le32_to_cpu(hdr->used);
fs/ntfs3/fslog.c
3566
memmove(e, e1, PtrOffset(e1, Add2Ptr(hdr, used)));
fs/ntfs3/fslog.c
3568
hdr->used = cpu_to_le32(used - nsize);
fs/ntfs3/fslog.c
3577
hdr = &ib->ihdr;
fs/ntfs3/fslog.c
3585
!check_if_alloc_index(hdr, aoff) ||
fs/ntfs3/fslog.c
3587
le32_to_cpu(hdr->total)) {
fs/ntfs3/fslog.c
3591
hdr->used = cpu_to_le32(dlen + PtrOffset(hdr, e));
fs/ntfs3/fslog.c
3600
hdr = &ib->ihdr;
fs/ntfs3/fslog.c
3609
!check_if_alloc_index(hdr, aoff)) {
fs/ntfs3/fslog.c
3621
hdr = &ib->ihdr;
fs/ntfs3/fslog.c
3630
!check_if_alloc_index(hdr, aoff)) {
fs/ntfs3/fslog.c
3669
hdr = &ib->ihdr;
fs/ntfs3/fslog.c
3678
!check_if_alloc_index(hdr, aoff)) {
fs/ntfs3/index.c
1594
struct INDEX_HDR *hdr;
fs/ntfs3/index.c
1615
hdr = &root->ihdr;
fs/ntfs3/index.c
1618
hdr_used = le32_to_cpu(hdr->used);
fs/ntfs3/index.c
1619
hdr_total = le32_to_cpu(hdr->total);
fs/ntfs3/index.c
1628
hdr->total = cpu_to_le32(hdr_total + ds_root);
fs/ntfs3/index.c
1629
e = hdr_insert_de(indx, hdr, new_de, root_de, ctx);
fs/ntfs3/index.c
1647
e0 = hdr_first_de(hdr);
fs/ntfs3/index.c
1650
for (e = e0;; e = hdr_next_de(hdr, e)) {
fs/ntfs3/index.c
1696
hdr->flags = NTFS_INDEX_HDR_HAS_SUBNODES;
fs/ntfs3/index.c
1697
hdr->used = hdr->total =
fs/ntfs3/index.c
1700
fnd->root_de = hdr_first_de(hdr);
fs/ntfs3/index.c
1739
hdr = &n->index->ihdr;
fs/ntfs3/index.c
1740
hdr_used = le32_to_cpu(hdr->used);
fs/ntfs3/index.c
1741
hdr_total = le32_to_cpu(hdr->total);
fs/ntfs3/index.c
1744
hdr_insert_head(hdr, re, to_move);
fs/ntfs3/index.c
1770
e = hdr_insert_de(indx, hdr, new_de, NULL, ctx);
fs/ntfs3/index.c
2021
const struct INDEX_HDR *hdr = n ? &n->index->ihdr : &root->ihdr;
fs/ntfs3/index.c
2024
for (e = hdr_first_de(hdr);; e = hdr_next_de(hdr, e)) {
fs/ntfs3/index.c
2036
e = Add2Ptr(hdr, le32_to_cpu(hdr->de_off));
fs/ntfs3/index.c
2129
struct INDEX_HDR *hdr;
fs/ntfs3/index.c
2137
hdr = &n->index->ihdr;
fs/ntfs3/index.c
2139
if (hdr_has_subnode(hdr)) {
fs/ntfs3/index.c
2140
for (e = hdr_first_de(hdr); e; e = hdr_next_de(hdr, e)) {
fs/ntfs3/index.c
2282
struct INDEX_HDR *hdr;
fs/ntfs3/index.c
2329
hdr = &ib->ihdr;
fs/ntfs3/index.c
2331
hdr = &root->ihdr;
fs/ntfs3/index.c
2341
hdr_delete_de(hdr, e);
fs/ntfs3/index.c
2344
hdr->total = hdr->used;
fs/ntfs3/index.c
2374
hdr_delete_de(hdr, e);
fs/ntfs3/index.c
2397
hdr_delete_de(hdr, e);
fs/ntfs3/index.c
2401
hdr->total = hdr->used;
fs/ntfs3/index.c
2425
hdr = level ? &fnd->nodes[level - 1]->index->ihdr : &root->ihdr;
fs/ntfs3/index.c
2428
for (e = hdr_first_de(hdr);; e = hdr_next_de(hdr, e)) {
fs/ntfs3/index.c
2466
hdr = NULL;
fs/ntfs3/index.c
2474
hdr = &ib->ihdr;
fs/ntfs3/index.c
2481
if (!hdr)
fs/ntfs3/index.c
2482
hdr = &root->ihdr;
fs/ntfs3/index.c
2484
e = hdr_first_de(hdr);
fs/ntfs3/index.c
2490
if (hdr != &root->ihdr || !de_is_last(e)) {
fs/ntfs3/index.c
2496
e = hdr_next_de(hdr, e);
fs/ntfs3/index.c
2530
le32_sub_cpu(&hdr->used, sizeof(u64));
fs/ntfs3/index.c
2552
hdr_delete_de(hdr, e);
fs/ntfs3/index.c
2554
if (hdr == &root->ihdr) {
fs/ntfs3/index.c
2556
hdr->total = hdr->used;
fs/ntfs3/index.c
2645
hdr = &root->ihdr;
fs/ntfs3/index.c
2646
hdr->flags = 0;
fs/ntfs3/index.c
2647
hdr->used = hdr->total = cpu_to_le32(
fs/ntfs3/index.c
557
static const struct NTFS_DE *hdr_find_split(const struct INDEX_HDR *hdr)
fs/ntfs3/index.c
560
const struct NTFS_DE *e = hdr_first_de(hdr);
fs/ntfs3/index.c
561
u32 used_2 = le32_to_cpu(hdr->used) >> 1;
fs/ntfs3/index.c
568
for (o = le32_to_cpu(hdr->de_off) + esize; o < used_2; o += esize) {
fs/ntfs3/index.c
571
e = Add2Ptr(hdr, o);
fs/ntfs3/index.c
588
static const struct NTFS_DE *hdr_insert_head(struct INDEX_HDR *hdr,
fs/ntfs3/index.c
592
struct NTFS_DE *e = hdr_first_de(hdr);
fs/ntfs3/index.c
593
u32 used = le32_to_cpu(hdr->used);
fs/ntfs3/index.c
599
to_move = used - le32_to_cpu(hdr->de_off);
fs/ntfs3/index.c
602
hdr->used = cpu_to_le32(used + ins_bytes);
fs/ntfs3/index.c
612
static bool index_hdr_check(const struct INDEX_HDR *hdr, u32 bytes)
fs/ntfs3/index.c
614
u32 end = le32_to_cpu(hdr->used);
fs/ntfs3/index.c
615
u32 tot = le32_to_cpu(hdr->total);
fs/ntfs3/index.c
616
u32 off = le32_to_cpu(hdr->de_off);
fs/ntfs3/index.c
716
const struct INDEX_HDR *hdr, const void *key,
fs/ntfs3/index.c
725
u32 end = le32_to_cpu(hdr->used);
fs/ntfs3/index.c
726
u32 off = le32_to_cpu(hdr->de_off);
fs/ntfs3/index.c
727
u32 total = le32_to_cpu(hdr->total);
fs/ntfs3/index.c
740
e = Add2Ptr(hdr, off);
fs/ntfs3/index.c
790
e = Add2Ptr(hdr, offs[mid_idx]);
fs/ntfs3/index.c
801
struct INDEX_HDR *hdr,
fs/ntfs3/index.c
806
size_t off = PtrOffset(hdr, before);
fs/ntfs3/index.c
807
u32 used = le32_to_cpu(hdr->used);
fs/ntfs3/index.c
808
u32 total = le32_to_cpu(hdr->total);
fs/ntfs3/index.c
818
if (off >= used || off < le32_to_cpu(hdr->de_off) ||
fs/ntfs3/index.c
825
before = hdr_find_e(indx, hdr, de + 1, le16_to_cpu(de->key_size), ctx,
fs/ntfs3/index.c
829
off = PtrOffset(hdr, before);
fs/ntfs3/index.c
835
hdr->used = cpu_to_le32(used + de_size);
fs/ntfs3/index.c
844
static inline struct NTFS_DE *hdr_delete_de(struct INDEX_HDR *hdr,
fs/ntfs3/index.c
847
u32 used = le32_to_cpu(hdr->used);
fs/ntfs3/index.c
849
u32 off = PtrOffset(hdr, re);
fs/ntfs3/index.c
853
if (!check_index_header(hdr, le32_to_cpu(hdr->total)))
fs/ntfs3/index.c
860
hdr->used = cpu_to_le32(used - esize);
fs/ntfs3/index.c
936
struct INDEX_HDR *hdr;
fs/ntfs3/index.c
967
hdr = &index->ihdr;
fs/ntfs3/index.c
969
hdr->de_off = cpu_to_le32(eo);
fs/ntfs3/index.c
971
e = Add2Ptr(hdr, eo);
fs/ntfs3/index.c
976
hdr->used =
fs/ntfs3/index.c
979
hdr->flags = NTFS_INDEX_HDR_HAS_SUBNODES;
fs/ntfs3/index.c
982
hdr->used = cpu_to_le32(eo + sizeof(struct NTFS_DE));
fs/ntfs3/index.c
986
hdr->total = cpu_to_le32(bytes - offsetof(struct INDEX_BUFFER, ihdr));
fs/ntfs3/ntfs.h
258
static inline int is_baad(const struct NTFS_RECORD_HEADER *hdr)
fs/ntfs3/ntfs.h
260
return hdr->sign == NTFS_BAAD_SIGNATURE;
fs/ntfs3/ntfs.h
716
static inline struct NTFS_DE *hdr_first_de(const struct INDEX_HDR *hdr)
fs/ntfs3/ntfs.h
718
u32 de_off = le32_to_cpu(hdr->de_off);
fs/ntfs3/ntfs.h
719
u32 used = le32_to_cpu(hdr->used);
fs/ntfs3/ntfs.h
726
e = Add2Ptr(hdr, de_off);
fs/ntfs3/ntfs.h
734
static inline struct NTFS_DE *hdr_next_de(const struct INDEX_HDR *hdr,
fs/ntfs3/ntfs.h
737
size_t off = PtrOffset(hdr, e);
fs/ntfs3/ntfs.h
738
u32 used = le32_to_cpu(hdr->used);
fs/ntfs3/ntfs.h
753
static inline bool hdr_has_subnode(const struct INDEX_HDR *hdr)
fs/ntfs3/ntfs.h
755
return hdr->flags & NTFS_INDEX_HDR_HAS_SUBNODES;
fs/ntfs3/ntfs_fs.h
626
bool check_index_header(const struct INDEX_HDR *hdr, size_t bytes);
fs/ocfs2/cluster/tcp.c
1146
static int o2net_send_status_magic(struct socket *sock, struct o2net_msg *hdr,
fs/ocfs2/cluster/tcp.c
1150
.iov_base = hdr,
fs/ocfs2/cluster/tcp.c
1158
hdr->sys_status = cpu_to_be32(syserr);
fs/ocfs2/cluster/tcp.c
1159
hdr->status = cpu_to_be32(err);
fs/ocfs2/cluster/tcp.c
1160
hdr->magic = cpu_to_be16(O2NET_MSG_STATUS_MAGIC); // twiddle the magic
fs/ocfs2/cluster/tcp.c
1161
hdr->data_len = 0;
fs/ocfs2/cluster/tcp.c
1163
msglog(hdr, "about to send status magic %d\n", err);
fs/ocfs2/cluster/tcp.c
1171
struct o2net_msg *hdr)
fs/ocfs2/cluster/tcp.c
1179
msglog(hdr, "processing message\n");
fs/ocfs2/cluster/tcp.c
1183
switch(be16_to_cpu(hdr->magic)) {
fs/ocfs2/cluster/tcp.c
1187
be32_to_cpu(hdr->msg_num),
fs/ocfs2/cluster/tcp.c
1188
be32_to_cpu(hdr->sys_status),
fs/ocfs2/cluster/tcp.c
1189
be32_to_cpu(hdr->status));
fs/ocfs2/cluster/tcp.c
1200
msglog(hdr, "bad magic\n");
fs/ocfs2/cluster/tcp.c
1207
nmh = o2net_handler_get(be16_to_cpu(hdr->msg_type),
fs/ocfs2/cluster/tcp.c
1208
be32_to_cpu(hdr->key));
fs/ocfs2/cluster/tcp.c
1211
be16_to_cpu(hdr->msg_type), be32_to_cpu(hdr->key));
fs/ocfs2/cluster/tcp.c
1218
if (be16_to_cpu(hdr->data_len) > nmh->nh_max_len)
fs/ocfs2/cluster/tcp.c
1225
sc->sc_msg_key = be32_to_cpu(hdr->key);
fs/ocfs2/cluster/tcp.c
1226
sc->sc_msg_type = be16_to_cpu(hdr->msg_type);
fs/ocfs2/cluster/tcp.c
1227
handler_status = (nmh->nh_func)(hdr, sizeof(struct o2net_msg) +
fs/ocfs2/cluster/tcp.c
1228
be16_to_cpu(hdr->data_len),
fs/ocfs2/cluster/tcp.c
1237
ret = o2net_send_status_magic(sc->sc_sock, hdr, syserr,
fs/ocfs2/cluster/tcp.c
1240
hdr = NULL;
fs/ocfs2/cluster/tcp.c
1337
struct o2net_msg *hdr;
fs/ocfs2/cluster/tcp.c
1373
hdr = page_address(sc->sc_page);
fs/ocfs2/cluster/tcp.c
1374
if (be16_to_cpu(hdr->data_len) >
fs/ocfs2/cluster/tcp.c
1389
hdr = page_address(sc->sc_page);
fs/ocfs2/cluster/tcp.c
1391
msglog(hdr, "at page_off %zu\n", sc->sc_page_off);
fs/ocfs2/cluster/tcp.c
1394
if (sc->sc_page_off - sizeof(struct o2net_msg) < be16_to_cpu(hdr->data_len)) {
fs/ocfs2/cluster/tcp.c
1397
datalen = (sizeof(struct o2net_msg) + be16_to_cpu(hdr->data_len)) -
fs/ocfs2/cluster/tcp.c
1406
if (sc->sc_page_off - sizeof(struct o2net_msg) == be16_to_cpu(hdr->data_len)) {
fs/ocfs2/cluster/tcp.c
1410
ret = o2net_process_message(sc, hdr);
fs/ocfs2/cluster/tcp.c
72
#define msglog(hdr, fmt, args...) do { \
fs/ocfs2/cluster/tcp.c
73
typeof(hdr) __hdr = (hdr); \
fs/ocfs2/super.c
731
struct ocfs1_vol_disk_hdr *hdr;
fs/ocfs2/super.c
756
hdr = (struct ocfs1_vol_disk_hdr *) (*bh)->b_data;
fs/ocfs2/super.c
757
if (hdr->major_version == OCFS1_MAJOR_VERSION) {
fs/ocfs2/super.c
759
hdr->major_version, hdr->minor_version);
fs/ocfs2/super.c
762
if (memcmp(hdr->signature, OCFS1_VOLUME_SIGNATURE,
fs/ocfs2/super.c
765
hdr->signature);
fs/proc/proc_sysctl.c
1465
struct ctl_table_header *hdr = register_sysctl_sz(path, table, table_size);
fs/proc/proc_sysctl.c
1467
if (unlikely(!hdr)) {
fs/proc/proc_sysctl.c
1471
kmemleak_not_leak(hdr);
fs/pstore/ram.c
299
char hdr[36]; /* "===="(4), %lld(20), "."(1), %06lu(6), "-%c\n"(3) */
fs/pstore/ram.c
302
len = scnprintf(hdr, sizeof(hdr),
fs/pstore/ram.c
307
persistent_ram_write(prz, hdr, len);
fs/pstore/zone.c
377
struct psz_kmsg_header *hdr;
fs/pstore/zone.c
384
char buffer_header[sizeof(*buf) + sizeof(*hdr)] = {0};
fs/pstore/zone.c
389
len = sizeof(*buf) + sizeof(*hdr);
fs/pstore/zone.c
418
hdr = (struct psz_kmsg_header *)buf->data;
fs/pstore/zone.c
419
if (hdr->magic != PSTORE_KMSG_HEADER_MAGIC) {
fs/pstore/zone.c
430
if (hdr->time.tv_sec >= time.tv_sec) {
fs/pstore/zone.c
431
time.tv_sec = hdr->time.tv_sec;
fs/pstore/zone.c
435
if (hdr->reason == KMSG_DUMP_OOPS)
fs/pstore/zone.c
437
max(cxt->oops_counter, hdr->counter);
fs/pstore/zone.c
438
else if (hdr->reason == KMSG_DUMP_PANIC)
fs/pstore/zone.c
440
max(cxt->panic_counter, hdr->counter);
fs/pstore/zone.c
661
struct psz_kmsg_header *hdr =
fs/pstore/zone.c
669
if (record->count != hdr->counter)
fs/pstore/zone.c
725
struct psz_kmsg_header *hdr =
fs/pstore/zone.c
728
hdr->magic = PSTORE_KMSG_HEADER_MAGIC;
fs/pstore/zone.c
729
hdr->compressed = record->compressed;
fs/pstore/zone.c
730
hdr->time.tv_sec = record->time.tv_sec;
fs/pstore/zone.c
731
hdr->time.tv_nsec = record->time.tv_nsec;
fs/pstore/zone.c
732
hdr->reason = record->reason;
fs/pstore/zone.c
733
if (hdr->reason == KMSG_DUMP_OOPS)
fs/pstore/zone.c
734
hdr->counter = ++cxt->oops_counter;
fs/pstore/zone.c
735
else if (hdr->reason == KMSG_DUMP_PANIC)
fs/pstore/zone.c
736
hdr->counter = ++cxt->panic_counter;
fs/pstore/zone.c
738
hdr->counter = 0;
fs/pstore/zone.c
946
struct psz_kmsg_header *hdr =
fs/pstore/zone.c
949
if (hdr->magic != PSTORE_KMSG_HEADER_MAGIC)
fs/pstore/zone.c
951
record->compressed = hdr->compressed;
fs/pstore/zone.c
952
record->time.tv_sec = hdr->time.tv_sec;
fs/pstore/zone.c
953
record->time.tv_nsec = hdr->time.tv_nsec;
fs/pstore/zone.c
954
record->reason = hdr->reason;
fs/pstore/zone.c
955
record->count = hdr->counter;
fs/resctrl/ctrlmondata.c
169
rdt_last_cmd_printf("Duplicate domain %d\n", d->hdr.id);
fs/resctrl/ctrlmondata.c
264
list_for_each_entry(d, &r->ctrl_domains, hdr.list) {
fs/resctrl/ctrlmondata.c
265
if (d->hdr.id == dom_id) {
fs/resctrl/ctrlmondata.c
400
list_for_each_entry(dom, &r->ctrl_domains, hdr.list) {
fs/resctrl/ctrlmondata.c
410
seq_printf(s, schema->fmt_str, dom->hdr.id, ctrl_val);
fs/resctrl/ctrlmondata.c
438
rdtgrp->plr->d->hdr.id,
fs/resctrl/ctrlmondata.c
555
struct rdt_domain_hdr *hdr, struct rdtgroup *rdtgrp,
fs/resctrl/ctrlmondata.c
569
rr->hdr = hdr;
fs/resctrl/ctrlmondata.c
680
struct rdt_domain_hdr *hdr;
fs/resctrl/ctrlmondata.c
720
list_for_each_entry(d, &r->mon_domains, hdr.list) {
fs/resctrl/ctrlmondata.c
722
cpu = cpumask_any(&d->hdr.cpu_mask);
fs/resctrl/ctrlmondata.c
739
hdr = resctrl_find_domain(&r->mon_domains, domid, NULL);
fs/resctrl/ctrlmondata.c
740
if (!hdr) {
fs/resctrl/ctrlmondata.c
744
mon_event_read(&rr, r, hdr, rdtgrp, &hdr->cpu_mask, evt, false);
fs/resctrl/ctrlmondata.c
820
list_for_each_entry(d, &s->res->ctrl_domains, hdr.list)
fs/resctrl/ctrlmondata.c
88
rdt_last_cmd_printf("Duplicate domain %d\n", d->hdr.id);
fs/resctrl/ctrlmondata.c
974
list_for_each_entry(d, &r->ctrl_domains, hdr.list) {
fs/resctrl/ctrlmondata.c
975
if (d->hdr.id == dom_id) {
fs/resctrl/internal.h
142
struct rdt_domain_hdr *hdr;
fs/resctrl/internal.h
389
struct rdt_domain_hdr *hdr, struct rdtgroup *rdtgrp,
fs/resctrl/monitor.c
1197
mevt->name, d->hdr.id);
fs/resctrl/monitor.c
1226
list_for_each_entry(d, &r->mon_domains, hdr.list) {
fs/resctrl/monitor.c
1296
list_for_each_entry(d, &r->mon_domains, hdr.list)
fs/resctrl/monitor.c
1368
list_for_each_entry(d, &r->mon_domains, hdr.list) {
fs/resctrl/monitor.c
1527
list_for_each_entry(d, &r->mon_domains, hdr.list) {
fs/resctrl/monitor.c
1550
list_for_each_entry(dom, &r->mon_domains, hdr.list) {
fs/resctrl/monitor.c
1554
seq_printf(s, "%d=%d", dom->hdr.id, r->mon.num_mbm_cntrs);
fs/resctrl/monitor.c
1584
list_for_each_entry(dom, &r->mon_domains, hdr.list) {
fs/resctrl/monitor.c
1594
seq_printf(s, "%d=%u", dom->hdr.id, cntrs);
fs/resctrl/monitor.c
1634
list_for_each_entry(d, &r->mon_domains, hdr.list) {
fs/resctrl/monitor.c
1639
seq_printf(s, "%d=_", d->hdr.id);
fs/resctrl/monitor.c
164
if (resctrl_arch_rmid_read(r, &d->hdr, entry->closid, entry->rmid,
fs/resctrl/monitor.c
1641
seq_printf(s, "%d=e", d->hdr.id);
fs/resctrl/monitor.c
1732
list_for_each_entry(d, &r->mon_domains, hdr.list) {
fs/resctrl/monitor.c
1733
if (d->hdr.id == dom_id) {
fs/resctrl/monitor.c
179
trace_mon_llc_occupancy_limbo(entry->closid, entry->rmid, d->hdr.id, val);
fs/resctrl/monitor.c
305
list_for_each_entry(d, &r->mon_domains, hdr.list) {
fs/resctrl/monitor.c
428
if (!domain_header_is_valid(rr->hdr, RESCTRL_MON_DOMAIN, RDT_RESOURCE_L3)) {
fs/resctrl/monitor.c
432
d = container_of(rr->hdr, struct rdt_l3_mon_domain, hdr);
fs/resctrl/monitor.c
454
if (!cpumask_test_cpu(cpu, &d->hdr.cpu_mask))
fs/resctrl/monitor.c
460
rr->err = resctrl_arch_rmid_read(rr->r, rr->hdr, closid, rmid,
fs/resctrl/monitor.c
503
list_for_each_entry(d, &rr->r->mon_domains, hdr.list) {
fs/resctrl/monitor.c
506
err = resctrl_arch_rmid_read(rr->r, &d->hdr, closid, rmid,
fs/resctrl/monitor.c
526
if (rr->hdr)
fs/resctrl/monitor.c
533
rr->err = resctrl_arch_rmid_read(rr->r, rr->hdr, rdtgrp->closid,
fs/resctrl/monitor.c
570
if (!domain_header_is_valid(rr->hdr, RESCTRL_MON_DOMAIN, RDT_RESOURCE_L3))
fs/resctrl/monitor.c
572
d = container_of(rr->hdr, struct rdt_l3_mon_domain, hdr);
fs/resctrl/monitor.c
631
list_for_each_entry(d, &r->ctrl_domains, hdr.list) {
fs/resctrl/monitor.c
633
if (cpumask_test_cpu(cpu, &d->hdr.cpu_mask))
fs/resctrl/monitor.c
746
rr.hdr = &d->hdr;
fs/resctrl/monitor.c
803
d->cqm_work_cpu = cpumask_any_housekeeping(&d->hdr.cpu_mask,
fs/resctrl/monitor.c
827
cpu = cpumask_any_housekeeping(&dom->hdr.cpu_mask, exclude_cpu);
fs/resctrl/monitor.c
870
d->mbm_work_cpu = cpumask_any_housekeeping(&d->hdr.cpu_mask,
fs/resctrl/monitor.c
899
cpu = cpumask_any_housekeeping(&dom->hdr.cpu_mask, exclude_cpu);
fs/resctrl/pseudo_lock.c
1030
if (!cpumask_subset(current->cpus_ptr, &plr->d->hdr.cpu_mask)) {
fs/resctrl/pseudo_lock.c
156
for_each_cpu(cpu, &plr->d->hdr.cpu_mask) {
fs/resctrl/pseudo_lock.c
235
plr->cpu = cpumask_first(&plr->d->hdr.cpu_mask);
fs/resctrl/pseudo_lock.c
659
list_for_each_entry(d_i, &r->ctrl_domains, hdr.list) {
fs/resctrl/pseudo_lock.c
662
&d_i->hdr.cpu_mask);
fs/resctrl/pseudo_lock.c
670
if (cpumask_intersects(&d->hdr.cpu_mask, cpu_with_psl))
fs/resctrl/pseudo_lock.c
710
cpu = cpumask_first(&plr->d->hdr.cpu_mask);
fs/resctrl/rdtgroup.c
1066
list_for_each_entry(dom, &r->ctrl_domains, hdr.list) {
fs/resctrl/rdtgroup.c
1072
seq_printf(seq, "%d=", dom->hdr.id);
fs/resctrl/rdtgroup.c
120
list_for_each_entry(dom, &r->ctrl_domains, hdr.list)
fs/resctrl/rdtgroup.c
1418
list_for_each_entry(d, &r->ctrl_domains, hdr.list) {
fs/resctrl/rdtgroup.c
1534
ci = get_cpu_cacheinfo_level(cpumask_any(&d->hdr.cpu_mask), r->ctrl_scope);
fs/resctrl/rdtgroup.c
1593
seq_printf(s, "%d=%u\n", rdtgrp->plr->d->hdr.id, size);
fs/resctrl/rdtgroup.c
1605
list_for_each_entry(d, &r->ctrl_domains, hdr.list) {
fs/resctrl/rdtgroup.c
1623
seq_printf(s, "%d=%u", d->hdr.id, size);
fs/resctrl/rdtgroup.c
1637
smp_call_function_any(&mon_info->d->hdr.cpu_mask,
fs/resctrl/rdtgroup.c
1650
list_for_each_entry(dom, &r->mon_domains, hdr.list) {
fs/resctrl/rdtgroup.c
1660
seq_printf(s, "%d=0x%02x", dom->hdr.id, mon_info.mon_config);
fs/resctrl/rdtgroup.c
1715
smp_call_function_any(&d->hdr.cpu_mask, resctrl_arch_mon_event_config_write,
fs/resctrl/rdtgroup.c
1764
list_for_each_entry(d, &r->mon_domains, hdr.list) {
fs/resctrl/rdtgroup.c
1765
if (d->hdr.id == dom_id) {
fs/resctrl/rdtgroup.c
2489
int cpu = cpumask_any(&d->hdr.cpu_mask);
fs/resctrl/rdtgroup.c
2545
list_for_each_entry(d, &r->ctrl_domains, hdr.list) {
fs/resctrl/rdtgroup.c
2870
list_for_each_entry(dom, &r->mon_domains, hdr.list)
fs/resctrl/rdtgroup.c
3241
struct rdt_domain_hdr *hdr)
fs/resctrl/rdtgroup.c
3248
if (!domain_header_is_valid(hdr, RESCTRL_MON_DOMAIN, RDT_RESOURCE_L3))
fs/resctrl/rdtgroup.c
3251
d = container_of(hdr, struct rdt_l3_mon_domain, hdr);
fs/resctrl/rdtgroup.c
3253
sprintf(subname, "mon_sub_%s_%02d", r->name, hdr->id);
fs/resctrl/rdtgroup.c
3268
struct rdt_domain_hdr *hdr)
fs/resctrl/rdtgroup.c
3274
rmdir_mondata_subdir_allrdtgrp_snc(r, hdr);
fs/resctrl/rdtgroup.c
3278
sprintf(name, "mon_%s_%02d", r->name, hdr->id);
fs/resctrl/rdtgroup.c
3292
struct rdt_domain_hdr *hdr,
fs/resctrl/rdtgroup.c
3313
priv = mon_get_kn_priv(r->rid, domid, mevt, !hdr);
fs/resctrl/rdtgroup.c
3323
if (hdr && resctrl_is_mbm_event(mevt->evtid))
fs/resctrl/rdtgroup.c
3324
mon_event_read(&rr, r, hdr, prgrp, &hdr->cpu_mask, mevt, true);
fs/resctrl/rdtgroup.c
3334
struct rdt_domain_hdr *hdr,
fs/resctrl/rdtgroup.c
3341
if (!domain_header_is_valid(hdr, RESCTRL_MON_DOMAIN, RDT_RESOURCE_L3))
fs/resctrl/rdtgroup.c
3344
d = container_of(hdr, struct rdt_l3_mon_domain, hdr);
fs/resctrl/rdtgroup.c
3359
sprintf(name, "mon_sub_%s_%02d", r->name, hdr->id);
fs/resctrl/rdtgroup.c
3360
ckn = _mkdir_mondata_subdir(kn, name, hdr, r, prgrp, hdr->id);
fs/resctrl/rdtgroup.c
3371
struct rdt_domain_hdr *hdr,
fs/resctrl/rdtgroup.c
3380
return mkdir_mondata_subdir_snc(parent_kn, hdr, r, prgrp);
fs/resctrl/rdtgroup.c
3382
sprintf(name, "mon_%s_%02d", r->name, hdr->id);
fs/resctrl/rdtgroup.c
3383
kn = _mkdir_mondata_subdir(parent_kn, name, hdr, r, prgrp, hdr->id);
fs/resctrl/rdtgroup.c
3396
struct rdt_domain_hdr *hdr)
fs/resctrl/rdtgroup.c
3404
mkdir_mondata_subdir(parent_kn, hdr, r, prgrp);
fs/resctrl/rdtgroup.c
3409
mkdir_mondata_subdir(parent_kn, hdr, r, crgrp);
fs/resctrl/rdtgroup.c
3418
struct rdt_domain_hdr *hdr;
fs/resctrl/rdtgroup.c
3424
list_for_each_entry(hdr, &r->mon_domains, list) {
fs/resctrl/rdtgroup.c
3425
ret = mkdir_mondata_subdir(parent_kn, hdr, r, prgrp);
fs/resctrl/rdtgroup.c
3584
rdt_last_cmd_printf("No space on %s:%d\n", s->name, d->hdr.id);
fs/resctrl/rdtgroup.c
3607
list_for_each_entry(d, &s->res->ctrl_domains, hdr.list) {
fs/resctrl/rdtgroup.c
3622
list_for_each_entry(d, &r->ctrl_domains, hdr.list) {
fs/resctrl/rdtgroup.c
366
mask = &rdtgrp->plr->d->hdr.cpu_mask;
fs/resctrl/rdtgroup.c
4309
void resctrl_offline_mon_domain(struct rdt_resource *r, struct rdt_domain_hdr *hdr)
fs/resctrl/rdtgroup.c
4320
rmdir_mondata_subdir_allrdtgrp(r, hdr);
fs/resctrl/rdtgroup.c
4325
if (!domain_header_is_valid(hdr, RESCTRL_MON_DOMAIN, RDT_RESOURCE_L3))
fs/resctrl/rdtgroup.c
4328
d = container_of(hdr, struct rdt_l3_mon_domain, hdr);
fs/resctrl/rdtgroup.c
4424
int resctrl_online_mon_domain(struct rdt_resource *r, struct rdt_domain_hdr *hdr)
fs/resctrl/rdtgroup.c
4434
if (!domain_header_is_valid(hdr, RESCTRL_MON_DOMAIN, RDT_RESOURCE_L3))
fs/resctrl/rdtgroup.c
4437
d = container_of(hdr, struct rdt_l3_mon_domain, hdr);
fs/resctrl/rdtgroup.c
4460
mkdir_mondata_subdir_allrdtgrp(r, hdr);
fs/resctrl/rdtgroup.c
4493
list_for_each_entry(d, &r->mon_domains, hdr.list) {
fs/resctrl/rdtgroup.c
4495
if (cpumask_test_cpu(cpu, &d->hdr.cpu_mask))
fs/smb/client/cached_dir.c
334
oparms.fid->mid = le64_to_cpu(o_rsp->hdr.MessageId);
fs/smb/client/cifs_swn.c
162
genlmsg_end(skb, hdr);
fs/smb/client/cifs_swn.c
171
genlmsg_cancel(skb, hdr);
fs/smb/client/cifs_swn.c
182
struct genlmsghdr *hdr;
fs/smb/client/cifs_swn.c
189
hdr = genlmsg_put(skb, 0, 0, &cifs_genl_family, 0, CIFS_GENL_CMD_SWN_UNREGISTER);
fs/smb/client/cifs_swn.c
190
if (hdr == NULL) {
fs/smb/client/cifs_swn.c
230
genlmsg_end(skb, hdr);
fs/smb/client/cifs_swn.c
239
genlmsg_cancel(skb, hdr);
fs/smb/client/cifs_swn.c
79
struct genlmsghdr *hdr;
fs/smb/client/cifs_swn.c
88
hdr = genlmsg_put(skb, 0, 0, &cifs_genl_family, 0, CIFS_GENL_CMD_SWN_REGISTER);
fs/smb/client/cifs_swn.c
89
if (hdr == NULL) {
fs/smb/client/cifssmb.c
1023
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
1073
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
1125
if (rc || get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP)) {
fs/smb/client/cifssmb.c
1127
get_bcc(&pSMBr->hdr), sizeof(OPEN_PSX_RSP));
fs/smb/client/cifssmb.c
1147
if (get_bcc(&pSMBr->hdr) < sizeof(OPEN_PSX_RSP)
fs/smb/client/cifssmb.c
1256
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
1368
if (req->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
1603
smb->hdr.Pid = cpu_to_le16((__u16)rdata->req->pid);
fs/smb/client/cifssmb.c
1604
smb->hdr.PidHigh = cpu_to_le16((__u16)(rdata->req->pid >> 16));
fs/smb/client/cifssmb.c
1679
pSMB->hdr.Pid = cpu_to_le16((__u16)pid);
fs/smb/client/cifssmb.c
1680
pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid >> 16));
fs/smb/client/cifssmb.c
1728
pReadData = (char *) (&pSMBr->hdr.Protocol) +
fs/smb/client/cifssmb.c
1794
pSMB->hdr.Pid = cpu_to_le16((__u16)pid);
fs/smb/client/cifssmb.c
1795
pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid >> 16));
fs/smb/client/cifssmb.c
1985
req->hdr.Pid = cpu_to_le16((__u16)wdata->req->pid);
fs/smb/client/cifssmb.c
1986
req->hdr.PidHigh = cpu_to_le16((__u16)(wdata->req->pid >> 16));
fs/smb/client/cifssmb.c
2015
put_bcc(wdata->subreq.len + 1, &req->hdr);
fs/smb/client/cifssmb.c
2021
put_bcc(wdata->subreq.len + 5, &reqw->hdr);
fs/smb/client/cifssmb.c
2075
pSMB->hdr.Pid = cpu_to_le16((__u16)pid);
fs/smb/client/cifssmb.c
2076
pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid >> 16));
fs/smb/client/cifssmb.c
2358
if (rc || get_bcc(&pSMBr->hdr) < sizeof(*parm_data)) {
fs/smb/client/cifssmb.c
2360
get_bcc(&pSMBr->hdr), sizeof(*parm_data));
fs/smb/client/cifssmb.c
2371
((char *)&pSMBr->hdr.Protocol + data_offset);
fs/smb/client/cifssmb.c
2489
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
2577
sprintf(dummy_string, "cifs%x", pSMB->hdr.Mid);
fs/smb/client/cifssmb.c
2636
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
2658
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
2724
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
2744
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
2817
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
2881
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
2925
if (rc || get_bcc(&pSMBr->hdr) < 2)
fs/smb/client/cifssmb.c
2927
get_bcc(&pSMBr->hdr), 2);
fs/smb/client/cifssmb.c
2932
data_start = ((char *) &pSMBr->hdr.Protocol) +
fs/smb/client/cifssmb.c
2935
if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE)
fs/smb/client/cifssmb.c
3027
if (get_bcc(&io_rsp->hdr) < 2 || data_offset > 512 ||
fs/smb/client/cifssmb.c
3030
get_bcc(&io_rsp->hdr), data_count);
fs/smb/client/cifssmb.c
3052
end = 2 + get_bcc(&io_rsp->hdr) + (__u8 *)&io_rsp->ByteCount;
fs/smb/client/cifssmb.c
3053
start = (__u8 *)&io_rsp->hdr.Protocol + data_offset;
fs/smb/client/cifssmb.c
340
if (pSMB->hdr.WordCount < 10)
fs/smb/client/cifssmb.c
3461
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
3510
if (rc || get_bcc(&pSMBr->hdr) < 2)
fs/smb/client/cifssmb.c
3512
get_bcc(&pSMBr->hdr), 2);
fs/smb/client/cifssmb.c
3517
(char *)&pSMBr->hdr.Protocol+data_offset,
fs/smb/client/cifssmb.c
3553
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
356
if (total_size > get_bcc(&pSMB->hdr) ||
fs/smb/client/cifssmb.c
3682
if (rc || get_bcc(&pSMBr->hdr) < 2)
fs/smb/client/cifssmb.c
3686
get_bcc(&pSMBr->hdr), 2);
fs/smb/client/cifssmb.c
3699
(data_offset + (char *) &pSMBr->hdr.Protocol);
fs/smb/client/cifssmb.c
375
count = get_bcc(&pSMBr->hdr);
fs/smb/client/cifssmb.c
3769
bcc = get_bcc(&pSMBr->hdr);
fs/smb/client/cifssmb.c
3778
*ppparm = (char *)&pSMBr->hdr.Protocol + parm_offset;
fs/smb/client/cifssmb.c
3779
*ppdata = (char *)&pSMBr->hdr.Protocol + data_offset;
fs/smb/client/cifssmb.c
3984
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
4087
get_bcc(&pSMBr->hdr), 40);
fs/smb/client/cifssmb.c
4088
else if (get_bcc(&pSMBr->hdr) < 40)
fs/smb/client/cifssmb.c
4090
get_bcc(&pSMBr->hdr), 40);
fs/smb/client/cifssmb.c
4094
(char *) &pSMBr->hdr.Protocol +
fs/smb/client/cifssmb.c
4129
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
4176
get_bcc(&pSMBr->hdr), 40);
fs/smb/client/cifssmb.c
4177
else if (!legacy && get_bcc(&pSMBr->hdr) < 40)
fs/smb/client/cifssmb.c
4179
get_bcc(&pSMBr->hdr), 40);
fs/smb/client/cifssmb.c
4180
else if (legacy && get_bcc(&pSMBr->hdr) < 24)
fs/smb/client/cifssmb.c
4183
get_bcc(&pSMBr->hdr), 24);
fs/smb/client/cifssmb.c
4198
memcpy((char *) data, (char *) &pSMBr->hdr.Protocol +
fs/smb/client/cifssmb.c
4261
if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) {
fs/smb/client/cifssmb.c
4264
get_bcc(&pSMBr->hdr), sizeof(FILE_UNIX_BASIC_INFO));
fs/smb/client/cifssmb.c
4268
(char *) &pSMBr->hdr.Protocol +
fs/smb/client/cifssmb.c
4304
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
4346
if (rc || get_bcc(&pSMBr->hdr) < sizeof(FILE_UNIX_BASIC_INFO)) {
fs/smb/client/cifssmb.c
4349
get_bcc(&pSMBr->hdr), sizeof(FILE_UNIX_BASIC_INFO));
fs/smb/client/cifssmb.c
4353
(char *) &pSMBr->hdr.Protocol +
fs/smb/client/cifssmb.c
4395
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
446
pSMB->hdr.Mid = get_next_mid(server);
fs/smb/client/cifssmb.c
447
pSMB->hdr.Flags2 |= SMBFLG2_ERR_STATUS;
fs/smb/client/cifssmb.c
4495
psrch_inf->unicode = !!(pSMBr->hdr.Flags2 & SMBFLG2_UNICODE);
fs/smb/client/cifssmb.c
4498
psrch_inf->srch_entries_start = (char *)&pSMBr->hdr.Protocol +
fs/smb/client/cifssmb.c
450
pSMB->hdr.Flags2 |= SMBFLG2_UNICODE;
fs/smb/client/cifssmb.c
4501
parms = (T2_FFIRST_RSP_PARMS *)((char *)&pSMBr->hdr.Protocol +
fs/smb/client/cifssmb.c
454
pSMB->hdr.Flags2 |= SMBFLG2_EXT_SEC;
fs/smb/client/cifssmb.c
4609
psrch_inf->unicode = !!(pSMBr->hdr.Flags2 & SMBFLG2_UNICODE);
fs/smb/client/cifssmb.c
4610
response_data = (char *)&pSMBr->hdr.Protocol +
fs/smb/client/cifssmb.c
4613
response_data = (char *)&pSMBr->hdr.Protocol +
fs/smb/client/cifssmb.c
4705
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
4749
if (rc || get_bcc(&pSMBr->hdr) < 2)
fs/smb/client/cifssmb.c
4753
get_bcc(&pSMBr->hdr), 2);
fs/smb/client/cifssmb.c
4766
(data_offset + (char *) &pSMBr->hdr.Protocol);
fs/smb/client/cifssmb.c
479
if ((pSMBr->hdr.WordCount <= 13) || (server->dialect == BAD_PROT)) {
fs/smb/client/cifssmb.c
4812
pSMB->hdr.Mid = get_next_mid(ses->server);
fs/smb/client/cifssmb.c
4813
pSMB->hdr.Tid = ses->tcon_ipc->tid;
fs/smb/client/cifssmb.c
4814
pSMB->hdr.Uid = ses->Suid;
fs/smb/client/cifssmb.c
4816
pSMB->hdr.Flags2 |= SMBFLG2_ERR_STATUS;
fs/smb/client/cifssmb.c
4818
pSMB->hdr.Flags2 |= SMBFLG2_DFS;
fs/smb/client/cifssmb.c
4821
pSMB->hdr.Flags2 |= SMBFLG2_UNICODE;
fs/smb/client/cifssmb.c
4833
pSMB->hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE;
fs/smb/client/cifssmb.c
4835
pSMB->hdr.Uid = ses->Suid;
fs/smb/client/cifssmb.c
485
} else if (pSMBr->hdr.WordCount != 17) {
fs/smb/client/cifssmb.c
4870
if (rc || get_bcc(&pSMBr->hdr) < 17) {
fs/smb/client/cifssmb.c
4872
get_bcc(&pSMBr->hdr), 17);
fs/smb/client/cifssmb.c
4877
get_bcc(&pSMBr->hdr), le16_to_cpu(pSMBr->t2.DataOffset));
fs/smb/client/cifssmb.c
4884
(pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0);
fs/smb/client/cifssmb.c
4947
if (rc || get_bcc(&pSMBr->hdr) < 18)
fs/smb/client/cifssmb.c
4949
get_bcc(&pSMBr->hdr), 18);
fs/smb/client/cifssmb.c
4953
get_bcc(&pSMBr->hdr), data_offset);
fs/smb/client/cifssmb.c
4956
(((char *) &pSMBr->hdr.Protocol) + data_offset);
fs/smb/client/cifssmb.c
5037
if (rc || get_bcc(&pSMBr->hdr) < 24)
fs/smb/client/cifssmb.c
5039
get_bcc(&pSMBr->hdr), 24);
fs/smb/client/cifssmb.c
5045
*) (((char *) &pSMBr->hdr.Protocol) +
fs/smb/client/cifssmb.c
5127
if (rc || get_bcc(&pSMBr->hdr) < 13) {
fs/smb/client/cifssmb.c
5130
get_bcc(&pSMBr->hdr), 13);
fs/smb/client/cifssmb.c
5135
*) (((char *) &pSMBr->hdr.Protocol) +
fs/smb/client/cifssmb.c
516
} else if (pSMBr->hdr.Flags2 & SMBFLG2_EXT_SEC ||
fs/smb/client/cifssmb.c
5201
if (rc || get_bcc(&pSMBr->hdr) <
fs/smb/client/cifssmb.c
5204
get_bcc(&pSMBr->hdr),
fs/smb/client/cifssmb.c
5210
(((char *) &pSMBr->hdr.Protocol) +
fs/smb/client/cifssmb.c
5275
if (rc || get_bcc(&pSMBr->hdr) < 13) {
fs/smb/client/cifssmb.c
5277
get_bcc(&pSMBr->hdr), 13);
fs/smb/client/cifssmb.c
5282
*) (((char *) &pSMBr->hdr.Protocol) +
fs/smb/client/cifssmb.c
5424
if (rc || get_bcc(&pSMBr->hdr) < 13) {
fs/smb/client/cifssmb.c
5426
get_bcc(&pSMBr->hdr), 13);
fs/smb/client/cifssmb.c
5431
*) (((char *) &pSMBr->hdr.Protocol) +
fs/smb/client/cifssmb.c
5499
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
5537
(struct file_end_of_file_info *) (((char *) &pSMB->hdr.Protocol) +
fs/smb/client/cifssmb.c
5583
pSMB->hdr.Pid = cpu_to_le16((__u16)cfile->pid);
fs/smb/client/cifssmb.c
5584
pSMB->hdr.PidHigh = cpu_to_le16((__u16)(cfile->pid >> 16));
fs/smb/client/cifssmb.c
5667
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
5725
pSMB->hdr.Pid = cpu_to_le16((__u16)pid_of_opener);
fs/smb/client/cifssmb.c
5726
pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid_of_opener >> 16));
fs/smb/client/cifssmb.c
5790
pSMB->hdr.Pid = cpu_to_le16((__u16)pid_of_opener);
fs/smb/client/cifssmb.c
5791
pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid_of_opener >> 16));
fs/smb/client/cifssmb.c
5888
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
5911
data_offset = (char *)pSMB + offsetof(typeof(*pSMB), hdr.Protocol) + offset;
fs/smb/client/cifssmb.c
6012
pSMB->hdr.Pid = cpu_to_le16((__u16)pid_of_opener);
fs/smb/client/cifssmb.c
6013
pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid_of_opener >> 16));
fs/smb/client/cifssmb.c
6084
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
6177
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
6225
if (rc || get_bcc(&pSMBr->hdr) < 4) {
fs/smb/client/cifssmb.c
6227
get_bcc(&pSMBr->hdr), 4);
fs/smb/client/cifssmb.c
6241
(((char *) &pSMBr->hdr.Protocol) + data_offset);
fs/smb/client/cifssmb.c
6254
end_of_smb = (char *)pByteArea(&pSMBr->hdr) + get_bcc(&pSMBr->hdr);
fs/smb/client/cifssmb.c
6362
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
758
smb->hdr.Flags2 |= SMBFLG2_UNICODE;
fs/smb/client/cifssmb.c
761
smb->hdr.Tid = 0xffff;
fs/smb/client/cifssmb.c
762
smb->hdr.WordCount = 1;
fs/smb/client/cifssmb.c
764
put_bcc(1, &smb->hdr);
fs/smb/client/cifssmb.c
814
pSMB->hdr.Mid = get_next_mid(ses->server);
fs/smb/client/cifssmb.c
817
pSMB->hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE;
fs/smb/client/cifssmb.c
819
pSMB->hdr.Uid = ses->Suid;
fs/smb/client/cifssmb.c
857
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
930
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/cifssmb.c
977
if (pSMB->hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/compress.c
345
struct smb2_compression_hdr hdr = { 0 };
fs/smb/client/compress.c
349
hdr.ProtocolId = SMB2_COMPRESSION_TRANSFORM_ID;
fs/smb/client/compress.c
350
hdr.OriginalCompressedSegmentSize = cpu_to_le32(slen);
fs/smb/client/compress.c
351
hdr.CompressionAlgorithm = SMB3_COMPRESS_LZ77;
fs/smb/client/compress.c
352
hdr.Flags = SMB2_COMPRESSION_FLAG_NONE;
fs/smb/client/compress.c
353
hdr.Offset = cpu_to_le32(rq->rq_iov[0].iov_len);
fs/smb/client/compress.c
355
iov[0].iov_base = &hdr;
fs/smb/client/compress.c
356
iov[0].iov_len = sizeof(hdr);
fs/smb/client/smb1misc.c
102
if (pSMBr->hdr.Status.CifsError) {
fs/smb/client/smb1misc.c
104
pSMBr->hdr.Status.CifsError);
fs/smb/client/smb1misc.c
109
if (pSMB->hdr.Command != SMB_COM_LOCKING_ANDX)
fs/smb/client/smb1misc.c
111
if (pSMB->hdr.Flags & SMBFLG_RESPONSE) {
fs/smb/client/smb1misc.c
117
le32_to_cpu(pSMB->hdr.Status.CifsError)) {
fs/smb/client/smb1misc.c
121
le16_to_cpu(pSMB->hdr.Status.DosError.Error)) {
fs/smb/client/smb1misc.c
127
if (pSMB->hdr.WordCount != 8)
fs/smb/client/smb1misc.c
77
if ((pSMB->hdr.Command == SMB_COM_NT_TRANSACT) &&
fs/smb/client/smb1misc.c
78
(pSMB->hdr.Flags & SMBFLG_RESPONSE)) {
fs/smb/client/smb1misc.c
95
((char *)&pSMBr->hdr.Protocol + data_offset);
fs/smb/client/smb1ops.c
1254
return (struct reparse_data_buffer *)((__u8 *)&io->hdr.Protocol +
fs/smb/client/smb1ops.c
207
pSMB->hdr.Mid = get_next_mid(ses->server);
fs/smb/client/smb1pdu.h
1013
struct smb_hdr hdr; /* wct = 3 */
fs/smb/client/smb1pdu.h
1025
struct smb_hdr hdr; /* wct = 1 */
fs/smb/client/smb1pdu.h
1037
struct smb_hdr hdr; /* wct = 4 */
fs/smb/client/smb1pdu.h
1049
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
1054
struct smb_hdr hdr; /* wct = 1 */
fs/smb/client/smb1pdu.h
1062
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
1067
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
1074
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
1079
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
1086
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
1091
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
1098
struct smb_hdr hdr; /* wct = 10 */
fs/smb/client/smb1pdu.h
1107
struct smb_hdr hdr; /* wct = 8 */
fs/smb/client/smb1pdu.h
1117
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
1129
struct smb_hdr hdr; /* wct >= 19 */
fs/smb/client/smb1pdu.h
1150
struct smb_hdr hdr; /* wct = 18 */
fs/smb/client/smb1pdu.h
1167
struct smb_hdr hdr; /* wct = 23 */
fs/smb/client/smb1pdu.h
1191
struct smb_hdr hdr; /* wct = 23 */
fs/smb/client/smb1pdu.h
1220
struct smb_hdr hdr; /* wct = 19 */
fs/smb/client/smb1pdu.h
1241
struct smb_hdr hdr; /* wct = 19 */
fs/smb/client/smb1pdu.h
1264
struct smb_hdr hdr; /* wct = 19 */
fs/smb/client/smb1pdu.h
1286
struct smb_hdr hdr; /* wct = 23 */
fs/smb/client/smb1pdu.h
1312
struct smb_hdr hdr; /* wct = 18 */
fs/smb/client/smb1pdu.h
1364
struct smb_hdr hdr;
fs/smb/client/smb1pdu.h
1388
struct smb_hdr hdr;
fs/smb/client/smb1pdu.h
1465
struct smb_hdr hdr; /* wct = 14+ */
fs/smb/client/smb1pdu.h
1490
struct smb_hdr hdr; /* wct = 10 + SetupCount */
fs/smb/client/smb1pdu.h
1497
struct smb_hdr hdr; /* wct = 15 */
fs/smb/client/smb1pdu.h
1523
struct smb_hdr hdr; /* wct = 10 + SetupCount */
fs/smb/client/smb1pdu.h
1537
struct smb_hdr hdr; /* wct = 15 */
fs/smb/client/smb1pdu.h
1564
struct smb_hdr hdr; /* wct = 10 + SetupCount */
fs/smb/client/smb1pdu.h
1571
struct smb_hdr hdr;
fs/smb/client/smb1pdu.h
1579
struct smb_hdr hdr; /* wct = 10 + SetupCount */
fs/smb/client/smb1pdu.h
1600
struct smb_hdr hdr; /* wct = 15 */
fs/smb/client/smb1pdu.h
1628
struct smb_hdr hdr; /* wct = 10 */
fs/smb/client/smb1pdu.h
1642
struct smb_hdr hdr; /* wct = 15 */
fs/smb/client/smb1pdu.h
1670
struct smb_hdr hdr; /* wct = 10 */
fs/smb/client/smb1pdu.h
1704
struct smb_hdr hdr; /* wct = 14+ */
fs/smb/client/smb1pdu.h
1727
struct smb_hdr hdr; /* wct = 10 + SetupCount */
fs/smb/client/smb1pdu.h
1753
struct smb_hdr hdr; /* wct = 15 */
fs/smb/client/smb1pdu.h
1781
struct smb_hdr hdr; /* wct = 15 */
fs/smb/client/smb1pdu.h
1807
struct smb_hdr hdr; /* wct = 10 */
fs/smb/client/smb1pdu.h
1813
struct smb_hdr hdr; /* wct = 15 */
fs/smb/client/smb1pdu.h
1869
struct smb_hdr hdr; /* wct = 10 */
fs/smb/client/smb1pdu.h
371
struct smb_hdr hdr; /* wct = 17 */
fs/smb/client/smb1pdu.h
428
struct smb_hdr hdr; /* wct = 12 */
fs/smb/client/smb1pdu.h
447
struct smb_hdr hdr; /* wct = 13 */
fs/smb/client/smb1pdu.h
470
struct smb_hdr hdr; /* wct = 4 */
fs/smb/client/smb1pdu.h
485
struct smb_hdr hdr; /* wct = 10 */
fs/smb/client/smb1pdu.h
504
struct smb_hdr hdr; /* wct = 3 */
fs/smb/client/smb1pdu.h
569
struct smb_hdr hdr; /* wct = 4 */
fs/smb/client/smb1pdu.h
582
struct smb_hdr hdr; /* wct = 3 , not extended response */
fs/smb/client/smb1pdu.h
593
struct smb_hdr hdr; /* wct = 7, extended response */
fs/smb/client/smb1pdu.h
635
struct smb_hdr hdr;
fs/smb/client/smb1pdu.h
642
struct smb_hdr hdr;
fs/smb/client/smb1pdu.h
649
struct smb_hdr hdr; /* wct = 2 */
fs/smb/client/smb1pdu.h
657
struct smb_hdr hdr; /* wct = 2 */
fs/smb/client/smb1pdu.h
668
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
672
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
678
struct smb_hdr hdr; /* wct = 3 */
fs/smb/client/smb1pdu.h
685
struct smb_hdr hdr; /* wct = 0 */
fs/smb/client/smb1pdu.h
690
struct smb_hdr hdr; /* wct = 1 */
fs/smb/client/smb1pdu.h
696
struct smb_hdr hdr; /* wct = 1 */
fs/smb/client/smb1pdu.h
728
struct smb_hdr hdr; /* wct = 24 */
fs/smb/client/smb1pdu.h
758
struct smb_hdr hdr; /* wct = 34 BB */
fs/smb/client/smb1pdu.h
781
struct smb_hdr hdr; /* wct = 42 but meaningless due to MS bug? */
fs/smb/client/smb1pdu.h
808
struct smb_hdr hdr; /* wct = 15 */
fs/smb/client/smb1pdu.h
826
struct smb_hdr hdr; /* wct = 15 */
fs/smb/client/smb1pdu.h
847
struct smb_hdr hdr; /* wct = 12 */
fs/smb/client/smb1pdu.h
866
struct smb_hdr hdr; /* wct = 14 */
fs/smb/client/smb1pdu.h
886
struct smb_hdr hdr; /* wct = 6 */
fs/smb/client/smb1pdu.h
899
struct smb_hdr hdr; /* wct = 10 */
fs/smb/client/smb1pdu.h
913
struct smb_hdr hdr; /* wct = 12 */
fs/smb/client/smb1pdu.h
928
struct smb_hdr hdr; /* wct = 12 */
fs/smb/client/smb1pdu.h
959
struct smb_hdr hdr; /* wct = 8 */
fs/smb/client/smb1pdu.h
987
struct smb_hdr hdr; /* wct = 2 */
fs/smb/client/smb1pdu.h
995
struct smb_hdr hdr; /* wct = 1 */
fs/smb/client/smb1proto.h
317
get_bcc(struct smb_hdr *hdr)
fs/smb/client/smb1proto.h
319
__le16 *bc_ptr = (__le16 *)BCC(hdr);
fs/smb/client/smb1proto.h
326
put_bcc(__u16 count, struct smb_hdr *hdr)
fs/smb/client/smb1proto.h
328
__le16 *bc_ptr = (__le16 *)BCC(hdr);
fs/smb/client/smb1session.c
582
pSMB->req.hdr.Flags2 |= SMBFLG2_EXT_SEC;
fs/smb/client/smb1session.c
589
if (pSMB->req.hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/smb1session.c
66
pSMB->req.hdr.Flags2 |= SMBFLG2_SECURITY_SIGNATURE;
fs/smb/client/smb1session.c
683
pSMB->req.hdr.Flags2 |= SMBFLG2_EXT_SEC;
fs/smb/client/smb1session.c
689
if (pSMB->req.hdr.Flags2 & SMBFLG2_UNICODE) {
fs/smb/client/smb1session.c
69
pSMB->req.hdr.Flags2 |= SMBFLG2_UNICODE;
fs/smb/client/smb1session.c
73
pSMB->req.hdr.Flags2 |= SMBFLG2_ERR_STATUS;
fs/smb/client/smb1session.c
77
pSMB->req.hdr.Flags2 |= SMBFLG2_DFS;
fs/smb/client/smb1transport.c
108
struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base;
fs/smb/client/smb1transport.c
113
hdr->Flags2 |= SMBFLG2_SECURITY_SIGNATURE;
fs/smb/client/smb1transport.c
115
mid = alloc_mid(hdr, server);
fs/smb/client/smb1transport.c
195
struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base;
fs/smb/client/smb1transport.c
198
rc = allocate_mid(ses, hdr, &mid);
fs/smb/client/smb1transport.c
361
data_area_of_tgt = (char *)&pSMBt->hdr.Protocol +
fs/smb/client/smb1transport.c
365
data_area_of_src = (char *)&pSMBs->hdr.Protocol +
fs/smb/client/smb2file.c
189
struct smb2_hdr *hdr = err_iov.iov_base;
fs/smb/client/smb2file.c
193
if (hdr->Status == STATUS_STOPPED_ON_SYMLINK) {
fs/smb/client/smb2inode.c
1014
hdr = out_iov[0].iov_base;
fs/smb/client/smb2inode.c
1019
if (!hdr || out_buftype[0] == CIFS_NO_BUFFER)
fs/smb/client/smb2inode.c
1056
hdr = out_iov[0].iov_base;
fs/smb/client/smb2inode.c
1057
if (!hdr || out_buftype[0] == CIFS_NO_BUFFER)
fs/smb/client/smb2inode.c
1109
if (hdr->Status != STATUS_OBJECT_NAME_INVALID)
fs/smb/client/smb2inode.c
898
switch (rsp->hdr.Status) {
fs/smb/client/smb2inode.c
930
struct smb2_hdr *hdr = out_iov[i].iov_base;
fs/smb/client/smb2inode.c
932
if (out_buftype[i] == CIFS_NO_BUFFER || !hdr ||
fs/smb/client/smb2inode.c
933
hdr->Status != STATUS_SUCCESS)
fs/smb/client/smb2inode.c
962
struct smb2_hdr *hdr;
fs/smb/client/smb2misc.c
416
struct smb2_hdr *shdr = &pdu->hdr;
fs/smb/client/smb2misc.c
613
le32_to_cpu(rsp->hdr.Id.SyncId.TreeId),
fs/smb/client/smb2misc.c
614
le64_to_cpu(rsp->hdr.SessionId),
fs/smb/client/smb2misc.c
666
le32_to_cpu(rsp->hdr.Id.SyncId.TreeId),
fs/smb/client/smb2misc.c
667
le64_to_cpu(rsp->hdr.SessionId),
fs/smb/client/smb2misc.c
686
if (rsp->hdr.Command != SMB2_OPLOCK_BREAK)
fs/smb/client/smb2misc.c
748
le32_to_cpu(rsp->hdr.Id.SyncId.TreeId),
fs/smb/client/smb2misc.c
749
le64_to_cpu(rsp->hdr.SessionId));
fs/smb/client/smb2misc.c
847
struct smb2_hdr *hdr = mid->resp_buf;
fs/smb/client/smb2misc.c
852
if ((mid->optype & CIFS_CP_CREATE_CLOSE_OP) || hdr->Command != SMB2_CREATE ||
fs/smb/client/smb2misc.c
853
hdr->Status != STATUS_SUCCESS)
fs/smb/client/smb2misc.c
856
tcon = smb2_find_smb_tcon(server, le64_to_cpu(hdr->SessionId),
fs/smb/client/smb2misc.c
857
le32_to_cpu(hdr->Id.SyncId.TreeId));
fs/smb/client/smb2misc.c
862
le16_to_cpu(hdr->Command),
fs/smb/client/smb2misc.c
863
le64_to_cpu(hdr->MessageId),
fs/smb/client/smb2misc.c
87
static __u32 get_neg_ctxt_len(struct smb2_hdr *hdr, __u32 len,
fs/smb/client/smb2misc.c
888
struct smb2_hdr *hdr;
fs/smb/client/smb2misc.c
891
hdr = (struct smb2_hdr *)iov[0].iov_base;
fs/smb/client/smb2misc.c
893
if (hdr->Command == SMB2_NEGOTIATE)
fs/smb/client/smb2misc.c
904
if (hdr->Command != SMB2_SESSION_SETUP)
fs/smb/client/smb2misc.c
908
if ((hdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR)
fs/smb/client/smb2misc.c
909
&& (hdr->Status == NT_STATUS_OK
fs/smb/client/smb2misc.c
910
|| (hdr->Status !=
fs/smb/client/smb2misc.c
92
struct smb2_negotiate_rsp *pneg_rsp = (struct smb2_negotiate_rsp *)hdr;
fs/smb/client/smb2ops.c
2524
if (op_rsp == NULL || op_rsp->hdr.Status != STATUS_SUCCESS) {
fs/smb/client/smb2ops.c
2543
if (qd_rsp->hdr.Status == STATUS_NO_MORE_FILES) {
fs/smb/client/smb2ops.c
5165
struct smb2_hdr *hdr = (struct smb2_hdr *)buf;
fs/smb/client/smb2ops.c
5168
if (hdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) {
fs/smb/client/smb2ops.c
5173
*noff = le32_to_cpu(hdr->NextCommand);
fs/smb/client/smb2ops.c
983
struct smb2_hdr *hdr = err_iov.iov_base;
fs/smb/client/smb2ops.c
985
if (unlikely(!hdr || err_buftype == CIFS_NO_BUFFER))
fs/smb/client/smb2ops.c
988
if (rc != -EREMOTE && hdr->Status == STATUS_OBJECT_NAME_INVALID) {
fs/smb/client/smb2pdu.c
1105
req->hdr.SessionId = 0;
fs/smb/client/smb2pdu.c
1544
req->hdr.SessionId = cpu_to_le64(ses->Suid);
fs/smb/client/smb2pdu.c
1545
req->hdr.Flags |= SMB2_FLAGS_SIGNED;
fs/smb/client/smb2pdu.c
1551
req->hdr.SessionId = 0;
fs/smb/client/smb2pdu.c
1564
req->hdr.CreditRequest = cpu_to_le16(0);
fs/smb/client/smb2pdu.c
1566
req->hdr.CreditRequest = cpu_to_le16(
fs/smb/client/smb2pdu.c
1739
ses->Suid = le64_to_cpu(rsp->hdr.SessionId);
fs/smb/client/smb2pdu.c
1817
rsp->hdr.Status == STATUS_MORE_PROCESSING_REQUIRED)
fs/smb/client/smb2pdu.c
1843
ses->Suid = le64_to_cpu(rsp->hdr.SessionId);
fs/smb/client/smb2pdu.c
1880
req->hdr.SessionId = cpu_to_le64(ses->Suid);
fs/smb/client/smb2pdu.c
1911
ses->Suid = le64_to_cpu(rsp->hdr.SessionId);
fs/smb/client/smb2pdu.c
2049
req->hdr.SessionId = cpu_to_le64(ses->Suid);
fs/smb/client/smb2pdu.c
2054
req->hdr.Flags |= SMB2_FLAGS_SIGNED;
fs/smb/client/smb2pdu.c
2158
req->hdr.Flags |= SMB2_FLAGS_SIGNED;
fs/smb/client/smb2pdu.c
2166
req->hdr.CreditRequest = cpu_to_le16(0);
fs/smb/client/smb2pdu.c
2168
req->hdr.CreditRequest = cpu_to_le16(
fs/smb/client/smb2pdu.c
2204
tcon->tid = le32_to_cpu(rsp->hdr.Id.SyncId.TreeId);
fs/smb/client/smb2pdu.c
2228
if (rsp && rsp->hdr.Status == STATUS_BAD_NETWORK_NAME)
fs/smb/client/smb2pdu.c
2959
req->hdr.Flags |= SMB2_FLAGS_DFS_OPERATIONS;
fs/smb/client/smb2pdu.c
3118
req->hdr.Flags |= SMB2_FLAGS_DFS_OPERATIONS;
fs/smb/client/smb2pdu.c
3333
oparms->fid->mid = le64_to_cpu(rsp->hdr.MessageId);
fs/smb/client/smb2pdu.c
3438
req->hdr.CreditCharge =
fs/smb/client/smb2pdu.c
3446
req->hdr.Flags |= SMB2_FLAGS_SIGNED;
fs/smb/client/smb2pdu.c
4168
credits.value = le16_to_cpu(rsp->hdr.CreditRequest);
fs/smb/client/smb2pdu.c
4353
req->hdr.CreditRequest = cpu_to_le16(1);
fs/smb/client/smb2pdu.c
4517
shdr = &req->hdr;
fs/smb/client/smb2pdu.c
4953
credits.value = le16_to_cpu(rsp->hdr.CreditRequest);
fs/smb/client/smb2pdu.c
4999
credits.value = le16_to_cpu(rsp->hdr.CreditRequest);
fs/smb/client/smb2pdu.c
5287
req->hdr.Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid);
fs/smb/client/smb2pdu.c
543
smb2_hdr_assemble(&spdu->hdr, smb2_command, tcon, server);
fs/smb/client/smb2pdu.c
5709
rsp->hdr.Status == STATUS_NO_MORE_FILES) {
fs/smb/client/smb2pdu.c
5762
req->hdr.Id.SyncId.ProcessId = cpu_to_le32(pid);
fs/smb/client/smb2pdu.c
5946
req->hdr.CreditRequest = cpu_to_le16(1);
fs/smb/client/smb2pdu.c
6254
req->hdr.Id.SyncId.ProcessId = cpu_to_le32(pid);
fs/smb/client/smb2pdu.c
6341
req->hdr.CreditRequest = cpu_to_le16(1);
fs/smb/common/smb1pdu.h
51
struct smb_hdr hdr; /* wct = 0 */
fs/smb/common/smb2pdu.h
1027
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1039
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1053
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1182
__struct_group(create_context_hdr, hdr, __packed,
fs/smb/common/smb2pdu.h
1196
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1216
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1395
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1452
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1771
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1787
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
186
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
194
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1958
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1970
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
1983
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
343
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
389
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
399
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
405
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
608
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
623
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
650
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
671
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
684
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
690
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
702
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
716
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
748
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
769
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
788
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
804
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
819
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
828
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
847
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
865
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
871
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
877
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
905
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
919
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
970
struct smb2_hdr hdr;
fs/smb/common/smb2pdu.h
984
struct smb2_hdr hdr;
fs/smb/server/smb2misc.c
100
*len = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferLength);
fs/smb/server/smb2misc.c
104
le16_to_cpu(((struct smb2_tree_connect_req *)hdr)->PathOffset),
fs/smb/server/smb2misc.c
106
*len = le16_to_cpu(((struct smb2_tree_connect_req *)hdr)->PathLength);
fs/smb/server/smb2misc.c
112
le16_to_cpu(((struct smb2_create_req *)hdr)->NameOffset),
fs/smb/server/smb2misc.c
115
le16_to_cpu(((struct smb2_create_req *)hdr)->NameLength);
fs/smb/server/smb2misc.c
117
if (((struct smb2_create_req *)hdr)->CreateContextsLength) {
fs/smb/server/smb2misc.c
119
hdr)->CreateContextsOffset);
fs/smb/server/smb2misc.c
121
hdr)->CreateContextsLength);
fs/smb/server/smb2misc.c
13
static int check_smb2_hdr(struct smb2_hdr *hdr)
fs/smb/server/smb2misc.c
135
le16_to_cpu(((struct smb2_query_info_req *)hdr)->InputBufferOffset),
fs/smb/server/smb2misc.c
137
*len = le32_to_cpu(((struct smb2_query_info_req *)hdr)->InputBufferLength);
fs/smb/server/smb2misc.c
141
le16_to_cpu(((struct smb2_set_info_req *)hdr)->BufferOffset),
fs/smb/server/smb2misc.c
143
*len = le32_to_cpu(((struct smb2_set_info_req *)hdr)->BufferLength);
fs/smb/server/smb2misc.c
146
*off = le16_to_cpu(((struct smb2_read_req *)hdr)->ReadChannelInfoOffset);
fs/smb/server/smb2misc.c
147
*len = le16_to_cpu(((struct smb2_read_req *)hdr)->ReadChannelInfoLength);
fs/smb/server/smb2misc.c
150
if (((struct smb2_write_req *)hdr)->DataOffset ||
fs/smb/server/smb2misc.c
151
((struct smb2_write_req *)hdr)->Length) {
fs/smb/server/smb2misc.c
153
le16_to_cpu(((struct smb2_write_req *)hdr)->DataOffset),
fs/smb/server/smb2misc.c
155
*len = le32_to_cpu(((struct smb2_write_req *)hdr)->Length);
fs/smb/server/smb2misc.c
159
*off = le16_to_cpu(((struct smb2_write_req *)hdr)->WriteChannelInfoOffset);
fs/smb/server/smb2misc.c
160
*len = le16_to_cpu(((struct smb2_write_req *)hdr)->WriteChannelInfoLength);
fs/smb/server/smb2misc.c
164
le16_to_cpu(((struct smb2_query_directory_req *)hdr)->FileNameOffset),
fs/smb/server/smb2misc.c
166
*len = le16_to_cpu(((struct smb2_query_directory_req *)hdr)->FileNameLength);
fs/smb/server/smb2misc.c
172
lock_count = le16_to_cpu(((struct smb2_lock_req *)hdr)->LockCount);
fs/smb/server/smb2misc.c
18
if (hdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR)
fs/smb/server/smb2misc.c
181
le32_to_cpu(((struct smb2_ioctl_req *)hdr)->InputOffset),
fs/smb/server/smb2misc.c
183
*len = le32_to_cpu(((struct smb2_ioctl_req *)hdr)->InputCount);
fs/smb/server/smb2misc.c
209
struct smb2_hdr *hdr = &pdu->hdr;
fs/smb/server/smb2misc.c
215
*len = le16_to_cpu(hdr->StructureSize);
fs/smb/server/smb2misc.c
228
if (hdr->Command == SMB2_LOCK)
fs/smb/server/smb2misc.c
231
if (has_smb2_data_area[le16_to_cpu(hdr->Command)] == false)
fs/smb/server/smb2misc.c
234
ret = smb2_get_data_area_len(&offset, &data_length, hdr);
fs/smb/server/smb2misc.c
301
struct smb2_hdr *hdr)
fs/smb/server/smb2misc.c
304
unsigned short credit_charge = le16_to_cpu(hdr->CreditCharge);
fs/smb/server/smb2misc.c
305
void *__hdr = hdr;
fs/smb/server/smb2misc.c
308
switch (hdr->Command) {
fs/smb/server/smb2misc.c
370
struct smb2_hdr *hdr = &pdu->hdr;
fs/smb/server/smb2misc.c
374
__u32 req_struct_size, next_cmd = le32_to_cpu(hdr->NextCommand);
fs/smb/server/smb2misc.c
387
if (check_smb2_hdr(hdr))
fs/smb/server/smb2misc.c
390
if (hdr->StructureSize != SMB2_HEADER_STRUCTURE_SIZE) {
fs/smb/server/smb2misc.c
392
le16_to_cpu(hdr->StructureSize));
fs/smb/server/smb2misc.c
396
command = le16_to_cpu(hdr->Command);
fs/smb/server/smb2misc.c
422
if (smb2_calc_size(hdr, &clc_len))
fs/smb/server/smb2misc.c
456
le64_to_cpu(hdr->MessageId));
fs/smb/server/smb2misc.c
463
smb2_validate_credit_charge(work->conn, hdr))
fs/smb/server/smb2misc.c
85
struct smb2_hdr *hdr)
fs/smb/server/smb2misc.c
97
switch (hdr->Command) {
fs/smb/server/smb2misc.c
99
*off = le16_to_cpu(((struct smb2_sess_setup_req *)hdr)->SecurityBufferOffset);
fs/smb/server/smb2pdu.c
1124
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
1131
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
1140
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
1146
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
1153
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
1160
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
1174
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
1183
rsp->hdr.Status = status;
fs/smb/server/smb2pdu.c
1192
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
1219
rsp->hdr.Status = STATUS_NOT_SUPPORTED;
fs/smb/server/smb2pdu.c
1251
ksmbd_copy_gss_neg_header((char *)(&rsp->hdr) +
fs/smb/server/smb2pdu.c
1273
rsp->hdr.Status = STATUS_INSUFFICIENT_RESOURCES;
fs/smb/server/smb2pdu.c
1416
return (struct authenticate_message *)((char *)&req->hdr.ProtocolId
fs/smb/server/smb2pdu.c
161
if (err_rsp->hdr.Status != STATUS_STOPPED_ON_SYMLINK) {
fs/smb/server/smb2pdu.c
1610
in_blob = (char *)&req->hdr.ProtocolId +
fs/smb/server/smb2pdu.c
1613
out_blob = (char *)&rsp->hdr.ProtocolId +
fs/smb/server/smb2pdu.c
1725
if (!req->hdr.SessionId) {
fs/smb/server/smb2pdu.c
1731
rsp->hdr.SessionId = cpu_to_le64(sess->id);
fs/smb/server/smb2pdu.c
1740
u64 sess_id = le64_to_cpu(req->hdr.SessionId);
fs/smb/server/smb2pdu.c
1753
if (!(req->hdr.Flags & SMB2_FLAGS_SIGNED)) {
fs/smb/server/smb2pdu.c
1800
le64_to_cpu(req->hdr.SessionId));
fs/smb/server/smb2pdu.c
1829
negblob = (struct negotiate_message *)((char *)&req->hdr.ProtocolId +
fs/smb/server/smb2pdu.c
185
struct smb2_hdr *hdr = smb_get_msg(work->request_buf);
fs/smb/server/smb2pdu.c
1866
rsp->hdr.Status =
fs/smb/server/smb2pdu.c
188
if (hdr->ProtocolId != SMB2_PROTO_NUMBER)
fs/smb/server/smb2pdu.c
1904
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
1906
rsp->hdr.Status = STATUS_USER_SESSION_DELETED;
fs/smb/server/smb2pdu.c
1908
rsp->hdr.Status = STATUS_REQUEST_NOT_ACCEPTED;
fs/smb/server/smb2pdu.c
1910
rsp->hdr.Status = STATUS_NETWORK_SESSION_EXPIRED;
fs/smb/server/smb2pdu.c
1912
rsp->hdr.Status = STATUS_INSUFFICIENT_RESOURCES;
fs/smb/server/smb2pdu.c
1914
rsp->hdr.Status = STATUS_NOT_SUPPORTED;
fs/smb/server/smb2pdu.c
1916
rsp->hdr.Status = STATUS_LOGON_FAILURE;
fs/smb/server/smb2pdu.c
192
if (hdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR)
fs/smb/server/smb2pdu.c
195
if (hdr->Command != SMB2_NEGOTIATE)
fs/smb/server/smb2pdu.c
1970
rsp->hdr.Status = STATUS_INSUFFICIENT_RESOURCES;
fs/smb/server/smb2pdu.c
2018
rsp->hdr.Id.SyncId.TreeId = cpu_to_le32(status.tree_conn->id);
fs/smb/server/smb2pdu.c
2076
rsp->hdr.Status = STATUS_SUCCESS;
fs/smb/server/smb2pdu.c
2082
rsp->hdr.Status = STATUS_BAD_NETWORK_NAME;
fs/smb/server/smb2pdu.c
2086
rsp->hdr.Status = STATUS_NO_MEMORY;
fs/smb/server/smb2pdu.c
209
struct smb2_hdr *hdr = smb_get_msg(work->response_buf);
fs/smb/server/smb2pdu.c
2091
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
2094
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
2097
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
212
if (hdr->ProtocolId != SMB2_PROTO_NUMBER)
fs/smb/server/smb2pdu.c
216
if (!(hdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR))
fs/smb/server/smb2pdu.c
2197
ksmbd_debug(SMB, "Invalid tid %d\n", req->hdr.Id.SyncId.TreeId);
fs/smb/server/smb2pdu.c
2199
rsp->hdr.Status = STATUS_NETWORK_NAME_DELETED;
fs/smb/server/smb2pdu.c
2209
rsp->hdr.Status = STATUS_NETWORK_NAME_DELETED;
fs/smb/server/smb2pdu.c
2219
rsp->hdr.Status = STATUS_NETWORK_NAME_DELETED;
fs/smb/server/smb2pdu.c
2227
rsp->hdr.Status = STATUS_INSUFFICIENT_RESOURCES;
fs/smb/server/smb2pdu.c
2261
rsp->hdr.Status = STATUS_NETWORK_NAME_DELETED;
fs/smb/server/smb2pdu.c
2265
sess_id = le64_to_cpu(req->hdr.SessionId);
fs/smb/server/smb2pdu.c
2273
ksmbd_debug(SMB, "Invalid tid %d\n", req->hdr.Id.SyncId.TreeId);
fs/smb/server/smb2pdu.c
2274
rsp->hdr.Status = STATUS_NETWORK_NAME_DELETED;
fs/smb/server/smb2pdu.c
2288
rsp->hdr.Status = STATUS_INSUFFICIENT_RESOURCES;
fs/smb/server/smb2pdu.c
2314
rsp->hdr.Status = STATUS_NO_MEMORY;
fs/smb/server/smb2pdu.c
2326
rsp->hdr.Status = STATUS_SUCCESS;
fs/smb/server/smb2pdu.c
2354
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
2358
rsp->hdr.Status = STATUS_NO_MEMORY;
fs/smb/server/smb2pdu.c
2834
if (!(req->hdr.Flags & SMB2_FLAGS_REPLAY_OPERATION)) {
fs/smb/server/smb2pdu.c
2927
if (req->hdr.NextCommand && !work->next_smb2_rcv_hdr_off &&
fs/smb/server/smb2pdu.c
2928
(req->hdr.Flags & SMB2_FLAGS_RELATED_OPERATIONS)) {
fs/smb/server/smb2pdu.c
2930
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
3052
rsp->hdr.Status = STATUS_BAD_IMPERSONATION_LEVEL;
fs/smb/server/smb2pdu.c
306
ksmbd_copy_gss_neg_header((char *)(&rsp->hdr) +
fs/smb/server/smb2pdu.c
3120
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
3194
rsp->hdr.Status = STATUS_NOT_A_DIRECTORY;
fs/smb/server/smb2pdu.c
3200
rsp->hdr.Status = STATUS_FILE_IS_A_DIRECTORY;
fs/smb/server/smb2pdu.c
3206
rsp->hdr.Status = STATUS_NOT_A_DIRECTORY;
fs/smb/server/smb2pdu.c
3219
rsp->hdr.Status = STATUS_FILE_IS_A_DIRECTORY;
fs/smb/server/smb2pdu.c
3227
rsp->hdr.Status = STATUS_NOT_A_DIRECTORY;
fs/smb/server/smb2pdu.c
328
struct smb2_hdr *hdr = ksmbd_resp_buf_next(work);
fs/smb/server/smb2pdu.c
3282
rsp->hdr.Status = STATUS_OBJECT_PATH_NOT_FOUND;
fs/smb/server/smb2pdu.c
336
hdr->CreditCharge = req_hdr->CreditCharge;
fs/smb/server/smb2pdu.c
339
hdr->CreditRequest = 0;
fs/smb/server/smb2pdu.c
3531
le32_to_cpu(req->hdr.Id.SyncId.TreeId),
fs/smb/server/smb2pdu.c
363
if (hdr->Command == SMB2_NEGOTIATE)
fs/smb/server/smb2pdu.c
374
hdr->CreditRequest = cpu_to_le16(work->credits_granted);
fs/smb/server/smb2pdu.c
3779
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
3781
rsp->hdr.Status = STATUS_NOT_SUPPORTED;
fs/smb/server/smb2pdu.c
3783
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
3785
rsp->hdr.Status = STATUS_OBJECT_NAME_INVALID;
fs/smb/server/smb2pdu.c
3787
rsp->hdr.Status = STATUS_SHARING_VIOLATION;
fs/smb/server/smb2pdu.c
3789
rsp->hdr.Status = STATUS_DELETE_PENDING;
fs/smb/server/smb2pdu.c
3791
rsp->hdr.Status = STATUS_OBJECT_NAME_NOT_FOUND;
fs/smb/server/smb2pdu.c
3793
rsp->hdr.Status = STATUS_DUPLICATE_OBJECTID;
fs/smb/server/smb2pdu.c
3795
rsp->hdr.Status = STATUS_NO_SUCH_DEVICE;
fs/smb/server/smb2pdu.c
3797
rsp->hdr.Status = STATUS_OBJECT_NAME_COLLISION;
fs/smb/server/smb2pdu.c
3799
rsp->hdr.Status = STATUS_INSUFFICIENT_RESOURCES;
fs/smb/server/smb2pdu.c
3800
if (!rsp->hdr.Status)
fs/smb/server/smb2pdu.c
3801
rsp->hdr.Status = STATUS_UNEXPECTED_IO_ERROR;
fs/smb/server/smb2pdu.c
3806
ksmbd_debug(SMB, "Error response: %x\n", rsp->hdr.Status);
fs/smb/server/smb2pdu.c
4406
rsp->hdr.Status = STATUS_NO_MEMORY;
fs/smb/server/smb2pdu.c
4522
rsp->hdr.Status = STATUS_NO_SUCH_FILE;
fs/smb/server/smb2pdu.c
4525
rsp->hdr.Status = STATUS_NO_MORE_FILES;
fs/smb/server/smb2pdu.c
4565
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
4567
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
4569
rsp->hdr.Status = STATUS_NO_SUCH_FILE;
fs/smb/server/smb2pdu.c
4571
rsp->hdr.Status = STATUS_FILE_CLOSED;
fs/smb/server/smb2pdu.c
4573
rsp->hdr.Status = STATUS_NO_MEMORY;
fs/smb/server/smb2pdu.c
4575
rsp->hdr.Status = STATUS_INVALID_INFO_CLASS;
fs/smb/server/smb2pdu.c
4577
rsp->hdr.Status = STATUS_FILE_CORRUPT_ERROR;
fs/smb/server/smb2pdu.c
4578
if (!rsp->hdr.Status)
fs/smb/server/smb2pdu.c
4579
rsp->hdr.Status = STATUS_UNEXPECTED_IO_ERROR;
fs/smb/server/smb2pdu.c
459
struct smb2_hdr *hdr = smb_get_msg(work->request_buf);
fs/smb/server/smb2pdu.c
4601
rsp->hdr.Status = STATUS_INFO_LENGTH_MISMATCH;
fs/smb/server/smb2pdu.c
462
if (hdr->ProtocolId != SMB2_PROTO_NUMBER)
fs/smb/server/smb2pdu.c
465
hdr = ksmbd_req_buf_next(work);
fs/smb/server/smb2pdu.c
466
next_cmd = le32_to_cpu(hdr->NextCommand);
fs/smb/server/smb2pdu.c
4736
rsp->hdr.Status = STATUS_INVALID_HANDLE;
fs/smb/server/smb2pdu.c
4788
rsp->hdr.Status = STATUS_INVALID_HANDLE;
fs/smb/server/smb2pdu.c
4840
rsp->hdr.Status = STATUS_NO_EAS_ON_FILE;
fs/smb/server/smb2pdu.c
540
struct smb2_hdr *hdr = smb_get_msg(work->request_buf);
fs/smb/server/smb2pdu.c
544
int cmd = le16_to_cpu(hdr->Command);
fs/smb/server/smb2pdu.c
565
if (le32_to_cpu(hdr->NextCommand) > 0)
fs/smb/server/smb2pdu.c
5888
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
5890
rsp->hdr.Status = STATUS_FILE_CLOSED;
fs/smb/server/smb2pdu.c
5892
rsp->hdr.Status = STATUS_UNEXPECTED_IO_ERROR;
fs/smb/server/smb2pdu.c
5894
rsp->hdr.Status = STATUS_INSUFFICIENT_RESOURCES;
fs/smb/server/smb2pdu.c
5895
else if (rc == -EINVAL && rsp->hdr.Status == 0)
fs/smb/server/smb2pdu.c
5896
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
5897
else if (rc == -EOPNOTSUPP || rsp->hdr.Status == 0)
fs/smb/server/smb2pdu.c
5898
rsp->hdr.Status = STATUS_INVALID_INFO_CLASS;
fs/smb/server/smb2pdu.c
5967
sess_id = le64_to_cpu(req->hdr.SessionId);
fs/smb/server/smb2pdu.c
5968
if (req->hdr.Flags & SMB2_FLAGS_RELATED_OPERATIONS)
fs/smb/server/smb2pdu.c
5975
rsp->hdr.Status = STATUS_USER_SESSION_DELETED;
fs/smb/server/smb2pdu.c
5976
if (req->hdr.Flags & SMB2_FLAGS_RELATED_OPERATIONS)
fs/smb/server/smb2pdu.c
5977
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
5987
rsp->hdr.Status = STATUS_FILE_CLOSED;
fs/smb/server/smb2pdu.c
6057
if (rsp->hdr.Status == 0)
fs/smb/server/smb2pdu.c
6058
rsp->hdr.Status = STATUS_FILE_CLOSED;
fs/smb/server/smb2pdu.c
6683
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
6685
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
6687
rsp->hdr.Status = STATUS_INFO_LENGTH_MISMATCH;
fs/smb/server/smb2pdu.c
6689
rsp->hdr.Status = STATUS_SHARING_VIOLATION;
fs/smb/server/smb2pdu.c
6691
rsp->hdr.Status = STATUS_OBJECT_NAME_INVALID;
fs/smb/server/smb2pdu.c
6693
rsp->hdr.Status = STATUS_DIRECTORY_NOT_EMPTY;
fs/smb/server/smb2pdu.c
6695
rsp->hdr.Status = STATUS_FILE_LOCK_CONFLICT;
fs/smb/server/smb2pdu.c
6697
rsp->hdr.Status = STATUS_INVALID_HANDLE;
fs/smb/server/smb2pdu.c
6699
rsp->hdr.Status = STATUS_OBJECT_NAME_COLLISION;
fs/smb/server/smb2pdu.c
6700
else if (rsp->hdr.Status == 0 || rc == -EOPNOTSUPP)
fs/smb/server/smb2pdu.c
6701
rsp->hdr.Status = STATUS_INVALID_INFO_CLASS;
fs/smb/server/smb2pdu.c
6769
rsp->hdr.Status = STATUS_UNEXPECTED_IO_ERROR;
fs/smb/server/smb2pdu.c
6940
rsp->hdr.Status = STATUS_END_OF_FILE;
fs/smb/server/smb2pdu.c
6982
rsp->hdr.Status = STATUS_INVALID_DEVICE_REQUEST;
fs/smb/server/smb2pdu.c
6984
rsp->hdr.Status = STATUS_FILE_LOCK_CONFLICT;
fs/smb/server/smb2pdu.c
6986
rsp->hdr.Status = STATUS_FILE_CLOSED;
fs/smb/server/smb2pdu.c
6988
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
6990
rsp->hdr.Status = STATUS_SHARING_VIOLATION;
fs/smb/server/smb2pdu.c
6992
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
6994
rsp->hdr.Status = STATUS_INVALID_HANDLE;
fs/smb/server/smb2pdu.c
7032
data_buf = (char *)(((char *)&req->hdr.ProtocolId) +
fs/smb/server/smb2pdu.c
7038
rsp->hdr.Status = STATUS_NOT_SUPPORTED;
fs/smb/server/smb2pdu.c
7044
rsp->hdr.Status = STATUS_INVALID_HANDLE;
fs/smb/server/smb2pdu.c
7062
rsp->hdr.Status = STATUS_INVALID_HANDLE;
fs/smb/server/smb2pdu.c
7196
data_buf = (char *)(((char *)&req->hdr.ProtocolId) +
fs/smb/server/smb2pdu.c
7231
rsp->hdr.Status = STATUS_FILE_LOCK_CONFLICT;
fs/smb/server/smb2pdu.c
7233
rsp->hdr.Status = STATUS_DISK_FULL;
fs/smb/server/smb2pdu.c
7235
rsp->hdr.Status = STATUS_FILE_CLOSED;
fs/smb/server/smb2pdu.c
7237
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
7239
rsp->hdr.Status = STATUS_SHARING_VIOLATION;
fs/smb/server/smb2pdu.c
7241
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
7243
rsp->hdr.Status = STATUS_INVALID_HANDLE;
fs/smb/server/smb2pdu.c
7275
rsp->hdr.Status = STATUS_INVALID_HANDLE;
fs/smb/server/smb2pdu.c
7289
struct smb2_hdr *hdr = smb_get_msg(work->request_buf);
fs/smb/server/smb2pdu.c
7295
hdr = ksmbd_resp_buf_next(work);
fs/smb/server/smb2pdu.c
7298
hdr->MessageId, hdr->Flags);
fs/smb/server/smb2pdu.c
7300
if (hdr->Flags & SMB2_FLAGS_ASYNC_COMMAND) {
fs/smb/server/smb2pdu.c
7309
le64_to_cpu(hdr->Id.AsyncId))
fs/smb/server/smb2pdu.c
7314
le64_to_cpu(hdr->Id.AsyncId),
fs/smb/server/smb2pdu.c
7329
if (chdr->MessageId != hdr->MessageId ||
fs/smb/server/smb2pdu.c
7335
le64_to_cpu(hdr->MessageId),
fs/smb/server/smb2pdu.c
7507
rsp->hdr.Status = STATUS_INVALID_LOCK_RANGE;
fs/smb/server/smb2pdu.c
7527
rsp->hdr.Status = STATUS_INVALID_LOCK_RANGE;
fs/smb/server/smb2pdu.c
7651
rsp->hdr.Status = STATUS_RANGE_NOT_LOCKED;
fs/smb/server/smb2pdu.c
7672
rsp->hdr.Status = STATUS_NOT_LOCKED;
fs/smb/server/smb2pdu.c
7716
rsp->hdr.Status =
fs/smb/server/smb2pdu.c
7725
rsp->hdr.Status =
fs/smb/server/smb2pdu.c
7757
rsp->hdr.Status = STATUS_SUCCESS;
fs/smb/server/smb2pdu.c
7804
if (!rsp->hdr.Status) {
fs/smb/server/smb2pdu.c
7806
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
7808
rsp->hdr.Status = STATUS_INSUFFICIENT_RESOURCES;
fs/smb/server/smb2pdu.c
7810
rsp->hdr.Status = STATUS_FILE_CLOSED;
fs/smb/server/smb2pdu.c
7812
rsp->hdr.Status = STATUS_LOCK_NOT_GRANTED;
fs/smb/server/smb2pdu.c
7855
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
7869
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
7879
rsp->hdr.Status = STATUS_OBJECT_NAME_NOT_FOUND;
fs/smb/server/smb2pdu.c
7884
rsp->hdr.Status = STATUS_FILE_CLOSED;
fs/smb/server/smb2pdu.c
7894
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
7905
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
7907
rsp->hdr.Status = STATUS_FILE_LOCK_CONFLICT;
fs/smb/server/smb2pdu.c
7909
rsp->hdr.Status = STATUS_INVALID_HANDLE;
fs/smb/server/smb2pdu.c
7911
rsp->hdr.Status = STATUS_DISK_FULL;
fs/smb/server/smb2pdu.c
7913
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
7915
rsp->hdr.Status = STATUS_FILE_IS_A_DIRECTORY;
fs/smb/server/smb2pdu.c
7917
rsp->hdr.Status = STATUS_INVALID_VIEW_SIZE;
fs/smb/server/smb2pdu.c
7919
rsp->hdr.Status = STATUS_UNEXPECTED_IO_ERROR;
fs/smb/server/smb2pdu.c
8151
rsp->hdr.Status = STATUS_SOME_NOT_MAPPED;
fs/smb/server/smb2pdu.c
8153
rsp->hdr.Status = STATUS_NOT_SUPPORTED;
fs/smb/server/smb2pdu.c
8156
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
8162
rsp->hdr.Status = STATUS_BUFFER_OVERFLOW;
fs/smb/server/smb2pdu.c
8167
rsp->hdr.Status =
fs/smb/server/smb2pdu.c
8285
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
8296
rsp->hdr.Status = STATUS_FS_DRIVER_REQUIRED;
fs/smb/server/smb2pdu.c
8464
rsp->hdr.Status = STATUS_BUFFER_OVERFLOW;
fs/smb/server/smb2pdu.c
8578
rsp->hdr.Status = STATUS_ACCESS_DENIED;
fs/smb/server/smb2pdu.c
8580
rsp->hdr.Status = STATUS_OBJECT_NAME_NOT_FOUND;
fs/smb/server/smb2pdu.c
8582
rsp->hdr.Status = STATUS_NOT_SUPPORTED;
fs/smb/server/smb2pdu.c
8584
rsp->hdr.Status = STATUS_BUFFER_TOO_SMALL;
fs/smb/server/smb2pdu.c
8585
else if (ret < 0 || rsp->hdr.Status == 0)
fs/smb/server/smb2pdu.c
8586
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
8621
rsp->hdr.Status = STATUS_FILE_CLOSED;
fs/smb/server/smb2pdu.c
8629
rsp->hdr.Status = STATUS_INVALID_OPLOCK_PROTOCOL;
fs/smb/server/smb2pdu.c
8636
rsp->hdr.Status = STATUS_INVALID_OPLOCK_PROTOCOL;
fs/smb/server/smb2pdu.c
8642
rsp->hdr.Status = STATUS_UNSUCCESSFUL;
fs/smb/server/smb2pdu.c
8696
rsp->hdr.Status = err;
fs/smb/server/smb2pdu.c
8759
rsp->hdr.Status = STATUS_UNSUCCESSFUL;
fs/smb/server/smb2pdu.c
8767
rsp->hdr.Status = STATUS_UNSUCCESSFUL;
fs/smb/server/smb2pdu.c
8772
rsp->hdr.Status = STATUS_REQUEST_NOT_ACCEPTED;
fs/smb/server/smb2pdu.c
8780
rsp->hdr.Status = STATUS_UNSUCCESSFUL;
fs/smb/server/smb2pdu.c
8840
rsp->hdr.Status = err;
fs/smb/server/smb2pdu.c
8890
rsp->hdr.Status = STATUS_INVALID_PARAMETER;
fs/smb/server/smb2pdu.c
8913
if (work->next_smb2_rcv_hdr_off && req->hdr.NextCommand) {
fs/smb/server/smb2pdu.c
8914
rsp->hdr.Status = STATUS_INTERNAL_ERROR;
fs/smb/server/smb2pdu.c
8920
rsp->hdr.Status = STATUS_NOT_IMPLEMENTED;
fs/smb/server/smb2pdu.c
8952
struct smb2_hdr *hdr;
fs/smb/server/smb2pdu.c
8958
hdr = smb_get_msg(work->request_buf);
fs/smb/server/smb2pdu.c
8960
hdr = ksmbd_req_buf_next(work);
fs/smb/server/smb2pdu.c
8962
if (!hdr->NextCommand && !work->next_smb2_rcv_hdr_off)
fs/smb/server/smb2pdu.c
8964
else if (hdr->NextCommand)
fs/smb/server/smb2pdu.c
8965
len = le32_to_cpu(hdr->NextCommand);
fs/smb/server/smb2pdu.c
8970
memcpy(signature_req, hdr->Signature, SMB2_SIGNATURE_SIZE);
fs/smb/server/smb2pdu.c
8971
memset(hdr->Signature, 0, SMB2_SIGNATURE_SIZE);
fs/smb/server/smb2pdu.c
8973
iov[0].iov_base = (char *)&hdr->ProtocolId;
fs/smb/server/smb2pdu.c
8994
struct smb2_hdr *hdr;
fs/smb/server/smb2pdu.c
8999
hdr = ksmbd_resp_buf_curr(work);
fs/smb/server/smb2pdu.c
9000
hdr->Flags |= SMB2_FLAGS_SIGNED;
fs/smb/server/smb2pdu.c
9001
memset(hdr->Signature, 0, SMB2_SIGNATURE_SIZE);
fs/smb/server/smb2pdu.c
9003
if (hdr->Command == SMB2_READ) {
fs/smb/server/smb2pdu.c
9012
memcpy(hdr->Signature, signature, SMB2_SIGNATURE_SIZE);
fs/smb/server/smb2pdu.c
9025
struct smb2_hdr *hdr;
fs/smb/server/smb2pdu.c
9032
hdr = smb_get_msg(work->request_buf);
fs/smb/server/smb2pdu.c
9034
hdr = ksmbd_req_buf_next(work);
fs/smb/server/smb2pdu.c
9036
if (!hdr->NextCommand && !work->next_smb2_rcv_hdr_off)
fs/smb/server/smb2pdu.c
9038
else if (hdr->NextCommand)
fs/smb/server/smb2pdu.c
9039
len = le32_to_cpu(hdr->NextCommand);
fs/smb/server/smb2pdu.c
9044
if (le16_to_cpu(hdr->Command) == SMB2_SESSION_SETUP_HE) {
fs/smb/server/smb2pdu.c
9059
memcpy(signature_req, hdr->Signature, SMB2_SIGNATURE_SIZE);
fs/smb/server/smb2pdu.c
9060
memset(hdr->Signature, 0, SMB2_SIGNATURE_SIZE);
fs/smb/server/smb2pdu.c
9061
iov[0].iov_base = (char *)&hdr->ProtocolId;
fs/smb/server/smb2pdu.c
9083
struct smb2_hdr *hdr;
fs/smb/server/smb2pdu.c
9090
hdr = ksmbd_resp_buf_curr(work);
fs/smb/server/smb2pdu.c
9093
le16_to_cpu(hdr->Command) == SMB2_SESSION_SETUP_HE) {
fs/smb/server/smb2pdu.c
9106
hdr->Flags |= SMB2_FLAGS_SIGNED;
fs/smb/server/smb2pdu.c
9107
memset(hdr->Signature, 0, SMB2_SIGNATURE_SIZE);
fs/smb/server/smb2pdu.c
9109
if (hdr->Command == SMB2_READ) {
fs/smb/server/smb2pdu.c
9118
memcpy(hdr->Signature, signature, SMB2_SIGNATURE_SIZE);
fs/smb/server/smb2pdu.c
9165
struct smb2_hdr *hdr = smb_get_msg(old_buf);
fs/smb/server/smb2pdu.c
9177
memcpy(&tr_hdr->SessionId, &hdr->SessionId, 8);
fs/smb/server/smb_common.c
162
struct smb_hdr *hdr;
fs/smb/server/smb_common.c
167
hdr = smb_get_msg(work->request_buf);
fs/smb/server/smb_common.c
168
if (*(__le32 *)hdr->Protocol == SMB1_PROTO_NUMBER &&
fs/smb/server/smb_common.c
169
hdr->Command == SMB_COM_NEGOTIATE) {
fs/smb/server/smb_common.c
607
neg_rsp->hdr.Status.CifsError = STATUS_SUCCESS;
fs/smb/server/smb_common.c
608
neg_rsp->hdr.WordCount = 1;
fs/smb/server/smb_common.h
88
struct smb_hdr hdr; /* wct = 17 */
fs/smb/server/transport_rdma.c
576
struct smb2_hdr *hdr = (struct smb2_hdr *)(recvmsg->packet
fs/smb/server/transport_rdma.c
583
hdr->ProtocolId, hdr->Command);
fs/xfs/libxfs/xfs_attr_leaf.c
155
if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) {
fs/xfs/libxfs/xfs_attr_leaf.c
1579
XFS_DA_LOGRANGE(leaf, &leaf->hdr,
fs/xfs/libxfs/xfs_attr_leaf.c
159
to->firstused = be16_to_cpu(from->hdr.firstused);
fs/xfs/libxfs/xfs_attr_leaf.c
201
to->hdr.firstused = cpu_to_be16(firstused);
fs/xfs/libxfs/xfs_attr_leaf.c
213
ASSERT(from->hdr.info.magic == cpu_to_be16(XFS_ATTR_LEAF_MAGIC) ||
fs/xfs/libxfs/xfs_attr_leaf.c
214
from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC));
fs/xfs/libxfs/xfs_attr_leaf.c
216
if (from->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC)) {
fs/xfs/libxfs/xfs_attr_leaf.c
219
to->forw = be32_to_cpu(hdr3->info.hdr.forw);
fs/xfs/libxfs/xfs_attr_leaf.c
220
to->back = be32_to_cpu(hdr3->info.hdr.back);
fs/xfs/libxfs/xfs_attr_leaf.c
221
to->magic = be16_to_cpu(hdr3->info.hdr.magic);
fs/xfs/libxfs/xfs_attr_leaf.c
233
to->forw = be32_to_cpu(from->hdr.info.forw);
fs/xfs/libxfs/xfs_attr_leaf.c
234
to->back = be32_to_cpu(from->hdr.info.back);
fs/xfs/libxfs/xfs_attr_leaf.c
235
to->magic = be16_to_cpu(from->hdr.info.magic);
fs/xfs/libxfs/xfs_attr_leaf.c
236
to->count = be16_to_cpu(from->hdr.count);
fs/xfs/libxfs/xfs_attr_leaf.c
237
to->usedbytes = be16_to_cpu(from->hdr.usedbytes);
fs/xfs/libxfs/xfs_attr_leaf.c
239
to->holes = from->hdr.holes;
fs/xfs/libxfs/xfs_attr_leaf.c
2403
XFS_DA_LOGRANGE(leaf, &leaf->hdr,
fs/xfs/libxfs/xfs_attr_leaf.c
242
to->freemap[i].base = be16_to_cpu(from->hdr.freemap[i].base);
fs/xfs/libxfs/xfs_attr_leaf.c
243
to->freemap[i].size = be16_to_cpu(from->hdr.freemap[i].size);
fs/xfs/libxfs/xfs_attr_leaf.c
261
hdr3->info.hdr.forw = cpu_to_be32(from->forw);
fs/xfs/libxfs/xfs_attr_leaf.c
262
hdr3->info.hdr.back = cpu_to_be32(from->back);
fs/xfs/libxfs/xfs_attr_leaf.c
263
hdr3->info.hdr.magic = cpu_to_be16(from->magic);
fs/xfs/libxfs/xfs_attr_leaf.c
278
to->hdr.info.forw = cpu_to_be32(from->forw);
fs/xfs/libxfs/xfs_attr_leaf.c
279
to->hdr.info.back = cpu_to_be32(from->back);
fs/xfs/libxfs/xfs_attr_leaf.c
280
to->hdr.info.magic = cpu_to_be16(from->magic);
fs/xfs/libxfs/xfs_attr_leaf.c
281
to->hdr.count = cpu_to_be16(from->count);
fs/xfs/libxfs/xfs_attr_leaf.c
282
to->hdr.usedbytes = cpu_to_be16(from->usedbytes);
fs/xfs/libxfs/xfs_attr_leaf.c
284
to->hdr.holes = from->holes;
fs/xfs/libxfs/xfs_attr_leaf.c
285
to->hdr.pad1 = 0;
fs/xfs/libxfs/xfs_attr_leaf.c
288
to->hdr.freemap[i].base = cpu_to_be16(from->freemap[i].base);
fs/xfs/libxfs/xfs_attr_leaf.c
289
to->hdr.freemap[i].size = cpu_to_be16(from->freemap[i].size);
fs/xfs/libxfs/xfs_attr_leaf.c
462
if (hdr3->hdr.info.hdr.magic !=
fs/xfs/libxfs/xfs_attr_leaf.c
466
if (be64_to_cpu(hdr3->hdr.info.owner) != owner)
fs/xfs/libxfs/xfs_attr_leaf.c
809
struct xfs_attr_sf_hdr *hdr;
fs/xfs/libxfs/xfs_attr_leaf.c
817
hdr = xfs_idata_realloc(dp, sizeof(*hdr), XFS_ATTR_FORK);
fs/xfs/libxfs/xfs_attr_leaf.c
818
memset(hdr, 0, sizeof(*hdr));
fs/xfs/libxfs/xfs_attr_leaf.c
819
hdr->totsize = cpu_to_be16(sizeof(*hdr));
fs/xfs/libxfs/xfs_attr_sf.h
39
xfs_attr_sf_firstentry(struct xfs_attr_sf_hdr *hdr)
fs/xfs/libxfs/xfs_attr_sf.h
41
return (struct xfs_attr_sf_entry *)(hdr + 1);
fs/xfs/libxfs/xfs_da_btree.c
1033
XFS_DA_LOGRANGE(node1, &node1->hdr,
fs/xfs/libxfs/xfs_da_btree.c
1038
XFS_DA_LOGRANGE(node2, &node2->hdr,
fs/xfs/libxfs/xfs_da_btree.c
1110
XFS_DA_LOGRANGE(node, &node->hdr,
fs/xfs/libxfs/xfs_da_btree.c
149
to->forw = be32_to_cpu(from3->hdr.info.hdr.forw);
fs/xfs/libxfs/xfs_da_btree.c
150
to->back = be32_to_cpu(from3->hdr.info.hdr.back);
fs/xfs/libxfs/xfs_da_btree.c
151
to->magic = be16_to_cpu(from3->hdr.info.hdr.magic);
fs/xfs/libxfs/xfs_da_btree.c
152
to->count = be16_to_cpu(from3->hdr.__count);
fs/xfs/libxfs/xfs_da_btree.c
153
to->level = be16_to_cpu(from3->hdr.__level);
fs/xfs/libxfs/xfs_da_btree.c
1548
XFS_DA_LOGRANGE(node, &node->hdr, geo->node_hdr_size));
fs/xfs/libxfs/xfs_da_btree.c
157
to->forw = be32_to_cpu(from->hdr.info.forw);
fs/xfs/libxfs/xfs_da_btree.c
158
to->back = be32_to_cpu(from->hdr.info.back);
fs/xfs/libxfs/xfs_da_btree.c
159
to->magic = be16_to_cpu(from->hdr.info.magic);
fs/xfs/libxfs/xfs_da_btree.c
160
to->count = be16_to_cpu(from->hdr.__count);
fs/xfs/libxfs/xfs_da_btree.c
161
to->level = be16_to_cpu(from->hdr.__level);
fs/xfs/libxfs/xfs_da_btree.c
1652
XFS_DA_LOGRANGE(save_node, &save_node->hdr,
fs/xfs/libxfs/xfs_da_btree.c
177
to3->hdr.info.hdr.forw = cpu_to_be32(from->forw);
fs/xfs/libxfs/xfs_da_btree.c
178
to3->hdr.info.hdr.back = cpu_to_be32(from->back);
fs/xfs/libxfs/xfs_da_btree.c
179
to3->hdr.info.hdr.magic = cpu_to_be16(from->magic);
fs/xfs/libxfs/xfs_da_btree.c
180
to3->hdr.__count = cpu_to_be16(from->count);
fs/xfs/libxfs/xfs_da_btree.c
181
to3->hdr.__level = cpu_to_be16(from->level);
fs/xfs/libxfs/xfs_da_btree.c
184
to->hdr.info.forw = cpu_to_be32(from->forw);
fs/xfs/libxfs/xfs_da_btree.c
185
to->hdr.info.back = cpu_to_be32(from->back);
fs/xfs/libxfs/xfs_da_btree.c
186
to->hdr.info.magic = cpu_to_be16(from->magic);
fs/xfs/libxfs/xfs_da_btree.c
187
to->hdr.__count = cpu_to_be16(from->count);
fs/xfs/libxfs/xfs_da_btree.c
188
to->hdr.__level = cpu_to_be16(from->level);
fs/xfs/libxfs/xfs_da_btree.c
203
struct xfs_da_blkinfo *hdr = &hdr3->hdr;
fs/xfs/libxfs/xfs_da_btree.c
205
if (!xfs_verify_magic16(bp, hdr->magic))
fs/xfs/libxfs/xfs_da_btree.c
225
struct xfs_da_intnode *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_da_btree.c
229
xfs_da3_node_hdr_from_disk(mp, &ichdr, hdr);
fs/xfs/libxfs/xfs_da_btree.c
265
if (hdr3->hdr.magic != cpu_to_be16(XFS_DA3_NODE_MAGIC))
fs/xfs/libxfs/xfs_da_btree.c
281
struct xfs_da_blkinfo *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_da_btree.c
286
switch (hdr->magic) {
fs/xfs/libxfs/xfs_da_btree.c
543
XFS_DA_LOGRANGE(node, &node->hdr, args->geo->node_hdr_size));
fs/xfs/libxfs/xfs_da_btree.c
684
if (node->hdr.info.forw) {
fs/xfs/libxfs/xfs_da_btree.c
685
if (be32_to_cpu(node->hdr.info.forw) != addblk->blkno) {
fs/xfs/libxfs/xfs_da_btree.c
692
node->hdr.info.back = cpu_to_be32(oldblk->blkno);
fs/xfs/libxfs/xfs_da_btree.c
694
XFS_DA_LOGRANGE(node, &node->hdr.info,
fs/xfs/libxfs/xfs_da_btree.c
695
sizeof(node->hdr.info)));
fs/xfs/libxfs/xfs_da_btree.c
698
if (node->hdr.info.back) {
fs/xfs/libxfs/xfs_da_btree.c
699
if (be32_to_cpu(node->hdr.info.back) != addblk->blkno) {
fs/xfs/libxfs/xfs_da_btree.c
706
node->hdr.info.forw = cpu_to_be32(oldblk->blkno);
fs/xfs/libxfs/xfs_da_btree.c
708
XFS_DA_LOGRANGE(node, &node->hdr.info,
fs/xfs/libxfs/xfs_da_btree.c
709
sizeof(node->hdr.info)));
fs/xfs/libxfs/xfs_da_btree.c
759
if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DA_NODE_MAGIC) ||
fs/xfs/libxfs/xfs_da_btree.c
760
oldroot->hdr.info.magic == cpu_to_be16(XFS_DA3_NODE_MAGIC)) {
fs/xfs/libxfs/xfs_da_btree.c
812
if (oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) ||
fs/xfs/libxfs/xfs_da_btree.c
813
oldroot->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) {
fs/xfs/libxfs/xfs_da_format.h
252
xfs_dir2_sf_firstentry(struct xfs_dir2_sf_hdr *hdr)
fs/xfs/libxfs/xfs_da_format.h
255
((char *)hdr + xfs_dir2_sf_hdr_size(hdr->i8count));
fs/xfs/libxfs/xfs_da_format.h
333
struct xfs_dir3_blk_hdr hdr;
fs/xfs/libxfs/xfs_da_format.h
338
#define XFS_DIR3_DATA_CRC_OFF offsetof(struct xfs_dir3_data_hdr, hdr.crc)
fs/xfs/libxfs/xfs_da_format.h
455
xfs_dir2_leaf_hdr_t hdr; /* leaf header */
fs/xfs/libxfs/xfs_da_format.h
460
struct xfs_dir3_leaf_hdr hdr; /* leaf header */
fs/xfs/libxfs/xfs_da_format.h
47
struct xfs_da_blkinfo hdr;
fs/xfs/libxfs/xfs_da_format.h
493
xfs_dir2_free_hdr_t hdr; /* block header */
fs/xfs/libxfs/xfs_da_format.h
499
struct xfs_dir3_blk_hdr hdr;
fs/xfs/libxfs/xfs_da_format.h
507
struct xfs_dir3_free_hdr hdr;
fs/xfs/libxfs/xfs_da_format.h
512
#define XFS_DIR3_FREE_CRC_OFF offsetof(struct xfs_dir3_free, hdr.hdr.crc)
fs/xfs/libxfs/xfs_da_format.h
660
xfs_attr_leaf_hdr_t hdr; /* constant-structure header block */
fs/xfs/libxfs/xfs_da_format.h
692
struct xfs_attr3_leaf_hdr hdr;
fs/xfs/libxfs/xfs_da_format.h
751
if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC))
fs/xfs/libxfs/xfs_da_format.h
759
if (leafp->hdr.info.magic == cpu_to_be16(XFS_ATTR3_LEAF_MAGIC))
fs/xfs/libxfs/xfs_da_format.h
87
struct xfs_da_node_hdr hdr;
fs/xfs/libxfs/xfs_da_format.h
92
struct xfs_da3_node_hdr hdr;
fs/xfs/libxfs/xfs_dir2.h
111
struct xfs_dir2_data_hdr *hdr, struct xfs_dir2_data_free *bf,
fs/xfs/libxfs/xfs_dir2.h
246
xfs_dir2_block_tail_p(struct xfs_da_geometry *geo, struct xfs_dir2_data_hdr *hdr)
fs/xfs/libxfs/xfs_dir2.h
249
((char *)hdr + geo->blksize)) - 1;
fs/xfs/libxfs/xfs_dir2.h
277
struct xfs_dir2_data_hdr *hdr);
fs/xfs/libxfs/xfs_dir2.h
95
struct xfs_dir2_data_hdr *hdr, int *loghead);
fs/xfs/libxfs/xfs_dir2_block.c
1006
tagp = (__be16 *)((char *)hdr + args->geo->blksize) - 1;
fs/xfs/libxfs/xfs_dir2_block.c
1007
dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp));
fs/xfs/libxfs/xfs_dir2_block.c
1032
btp = xfs_dir2_block_tail_p(args->geo, hdr);
fs/xfs/libxfs/xfs_dir2_block.c
1052
xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog);
fs/xfs/libxfs/xfs_dir2_block.c
1065
size = xfs_dir2_block_sfsize(dp, hdr, &sfh);
fs/xfs/libxfs/xfs_dir2_block.c
1085
xfs_dir2_data_hdr_t *hdr; /* block header */
fs/xfs/libxfs/xfs_dir2_block.c
1139
hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_block.c
1160
btp = xfs_dir2_block_tail_p(args->geo, hdr);
fs/xfs/libxfs/xfs_dir2_block.c
1164
endoffset = (uint)((char *)blp - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_block.c
1169
(xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_block.c
1234
xfs_dir2_data_freeinsert(hdr,
fs/xfs/libxfs/xfs_dir2_block.c
1235
xfs_dir2_data_bestfree_p(mp, hdr),
fs/xfs/libxfs/xfs_dir2_block.c
1257
offset = (int)((char *)(tagp + 1) - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_block.c
196
struct xfs_dir2_data_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_block.c
211
bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr);
fs/xfs/libxfs/xfs_dir2_block.c
222
((char *)hdr + be16_to_cpu(bf[0].offset));
fs/xfs/libxfs/xfs_dir2_block.c
234
dup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp));
fs/xfs/libxfs/xfs_dir2_block.c
258
enddup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp));
fs/xfs/libxfs/xfs_dir2_block.c
270
((char *)hdr + be16_to_cpu(bf[0].offset));
fs/xfs/libxfs/xfs_dir2_block.c
289
((char *)hdr + be16_to_cpu(bf[1].offset));
fs/xfs/libxfs/xfs_dir2_block.c
309
struct xfs_dir2_data_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_block.c
341
(xfs_dir2_data_aoff_t)((char *)blp - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_block.c
350
xfs_dir2_data_freescan(args->dp->i_mount, hdr, needlog);
fs/xfs/libxfs/xfs_dir2_block.c
360
xfs_dir2_data_hdr_t *hdr; /* block header */
fs/xfs/libxfs/xfs_dir2_block.c
399
hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_block.c
400
btp = xfs_dir2_block_tail_p(args->geo, hdr);
fs/xfs/libxfs/xfs_dir2_block.c
407
xfs_dir2_block_need_space(dp, hdr, btp, blp, &tagp, &dup,
fs/xfs/libxfs/xfs_dir2_block.c
443
xfs_dir2_block_compact(args, bp, hdr, btp, blp, &needlog,
fs/xfs/libxfs/xfs_dir2_block.c
480
aoff = (xfs_dir2_data_aoff_t)((char *)enddup - (char *)hdr +
fs/xfs/libxfs/xfs_dir2_block.c
497
xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog);
fs/xfs/libxfs/xfs_dir2_block.c
564
(char *)dep - (char *)hdr));
fs/xfs/libxfs/xfs_dir2_block.c
570
(xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_block.c
582
*tagp = cpu_to_be16((char *)dep - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_block.c
587
xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog);
fs/xfs/libxfs/xfs_dir2_block.c
606
xfs_dir2_data_hdr_t *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_block.c
610
btp = xfs_dir2_block_tail_p(tp->t_mountp->m_dir_geo, hdr);
fs/xfs/libxfs/xfs_dir2_block.c
612
xfs_trans_log_buf(tp, bp, (uint)((char *)&blp[first] - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_block.c
613
(uint)((char *)&blp[last + 1] - (char *)hdr - 1));
fs/xfs/libxfs/xfs_dir2_block.c
624
xfs_dir2_data_hdr_t *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_block.c
627
btp = xfs_dir2_block_tail_p(tp->t_mountp->m_dir_geo, hdr);
fs/xfs/libxfs/xfs_dir2_block.c
628
xfs_trans_log_buf(tp, bp, (uint)((char *)btp - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_block.c
629
(uint)((char *)(btp + 1) - (char *)hdr - 1));
fs/xfs/libxfs/xfs_dir2_block.c
640
xfs_dir2_data_hdr_t *hdr; /* block header */
fs/xfs/libxfs/xfs_dir2_block.c
658
hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_block.c
660
btp = xfs_dir2_block_tail_p(args->geo, hdr);
fs/xfs/libxfs/xfs_dir2_block.c
665
dep = (xfs_dir2_data_entry_t *)((char *)hdr +
fs/xfs/libxfs/xfs_dir2_block.c
688
xfs_dir2_data_hdr_t *hdr; /* block header */
fs/xfs/libxfs/xfs_dir2_block.c
709
hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_block.c
711
btp = xfs_dir2_block_tail_p(args->geo, hdr);
fs/xfs/libxfs/xfs_dir2_block.c
749
((char *)hdr + xfs_dir2_dataptr_to_off(args->geo, addr));
fs/xfs/libxfs/xfs_dir2_block.c
788
xfs_dir2_data_hdr_t *hdr; /* block header */
fs/xfs/libxfs/xfs_dir2_block.c
813
hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_block.c
814
btp = xfs_dir2_block_tail_p(args->geo, hdr);
fs/xfs/libxfs/xfs_dir2_block.c
819
dep = (xfs_dir2_data_entry_t *)((char *)hdr +
fs/xfs/libxfs/xfs_dir2_block.c
827
(xfs_dir2_data_aoff_t)((char *)dep - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_block.c
844
xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog);
fs/xfs/libxfs/xfs_dir2_block.c
851
size = xfs_dir2_block_sfsize(dp, hdr, &sfh);
fs/xfs/libxfs/xfs_dir2_block.c
869
xfs_dir2_data_hdr_t *hdr; /* block header */
fs/xfs/libxfs/xfs_dir2_block.c
888
hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_block.c
889
btp = xfs_dir2_block_tail_p(args->geo, hdr);
fs/xfs/libxfs/xfs_dir2_block.c
894
dep = (xfs_dir2_data_entry_t *)((char *)hdr +
fs/xfs/libxfs/xfs_dir2_block.c
935
xfs_dir2_data_hdr_t *hdr; /* block header */
fs/xfs/libxfs/xfs_dir2_block.c
994
hdr = dbp->b_addr;
fs/xfs/libxfs/xfs_dir2_block.c
995
ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_block.c
996
hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC));
fs/xfs/libxfs/xfs_dir2_data.c
1001
cpu_to_be16((char *)newdup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
1009
xfs_dir2_data_freeremove(hdr, bf, dfp, needlogp);
fs/xfs/libxfs/xfs_dir2_data.c
1010
xfs_dir2_data_freeinsert(hdr, bf, newdup, needlogp);
fs/xfs/libxfs/xfs_dir2_data.c
1024
newdup = (xfs_dir2_data_unused_t *)((char *)hdr + offset);
fs/xfs/libxfs/xfs_dir2_data.c
1028
cpu_to_be16((char *)newdup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
1030
xfs_dir2_data_freeinsert(hdr, bf, newdup, needlogp);
fs/xfs/libxfs/xfs_dir2_data.c
1038
struct xfs_dir2_data_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_data.c
1043
if (hdr->magic != cpu_to_be32(XFS_DIR2_DATA_MAGIC) &&
fs/xfs/libxfs/xfs_dir2_data.c
1044
hdr->magic != cpu_to_be32(XFS_DIR3_DATA_MAGIC) &&
fs/xfs/libxfs/xfs_dir2_data.c
1045
hdr->magic != cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) &&
fs/xfs/libxfs/xfs_dir2_data.c
1046
hdr->magic != cpu_to_be32(XFS_DIR3_BLOCK_MAGIC))
fs/xfs/libxfs/xfs_dir2_data.c
1050
if (offset < (char *)dup - (char *)hdr)
fs/xfs/libxfs/xfs_dir2_data.c
1052
if (offset + len > (char *)dup + be16_to_cpu(dup->length) - (char *)hdr)
fs/xfs/libxfs/xfs_dir2_data.c
1054
if ((char *)dup - (char *)hdr !=
fs/xfs/libxfs/xfs_dir2_data.c
1063
struct xfs_dir2_data_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_data.c
107
xfs_dir2_data_hdr_t *hdr; /* data block header */
fs/xfs/libxfs/xfs_dir2_data.c
1071
if (be16_to_cpu(dfp->offset) != (char *)newdup - (char *)hdr)
fs/xfs/libxfs/xfs_dir2_data.c
1089
xfs_dir2_data_hdr_t *hdr; /* data block header */
fs/xfs/libxfs/xfs_dir2_data.c
1100
hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_data.c
1101
fa = xfs_dir2_data_check_free(hdr, dup, offset, len);
fs/xfs/libxfs/xfs_dir2_data.c
1108
bf = xfs_dir2_data_bestfree_p(args->dp->i_mount, hdr);
fs/xfs/libxfs/xfs_dir2_data.c
1109
dfp = xfs_dir2_data_freefind(hdr, bf, dup);
fs/xfs/libxfs/xfs_dir2_data.c
1114
matchfront = (char *)dup - (char *)hdr == offset;
fs/xfs/libxfs/xfs_dir2_data.c
1115
matchback = (char *)dup + oldlen - (char *)hdr == offset + len;
fs/xfs/libxfs/xfs_dir2_data.c
1126
xfs_dir2_data_freeremove(hdr, bf, dfp,
fs/xfs/libxfs/xfs_dir2_data.c
1135
newdup = (xfs_dir2_data_unused_t *)((char *)hdr + offset + len);
fs/xfs/libxfs/xfs_dir2_data.c
1139
cpu_to_be16((char *)newdup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
1145
xfs_dir2_data_freeremove(hdr, bf, dfp, needlogp);
fs/xfs/libxfs/xfs_dir2_data.c
1146
dfp = xfs_dir2_data_freeinsert(hdr, bf, newdup,
fs/xfs/libxfs/xfs_dir2_data.c
1148
fa = xfs_dir2_data_check_new_free(hdr, dfp, newdup);
fs/xfs/libxfs/xfs_dir2_data.c
1165
newdup->length = cpu_to_be16(((char *)hdr + offset) - (char *)newdup);
fs/xfs/libxfs/xfs_dir2_data.c
1167
cpu_to_be16((char *)newdup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
1173
xfs_dir2_data_freeremove(hdr, bf, dfp, needlogp);
fs/xfs/libxfs/xfs_dir2_data.c
1174
dfp = xfs_dir2_data_freeinsert(hdr, bf, newdup,
fs/xfs/libxfs/xfs_dir2_data.c
1176
fa = xfs_dir2_data_check_new_free(hdr, dfp, newdup);
fs/xfs/libxfs/xfs_dir2_data.c
1193
newdup->length = cpu_to_be16(((char *)hdr + offset) - (char *)newdup);
fs/xfs/libxfs/xfs_dir2_data.c
1195
cpu_to_be16((char *)newdup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
1197
newdup2 = (xfs_dir2_data_unused_t *)((char *)hdr + offset + len);
fs/xfs/libxfs/xfs_dir2_data.c
1201
cpu_to_be16((char *)newdup2 - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
1214
xfs_dir2_data_freeremove(hdr, bf, dfp,
fs/xfs/libxfs/xfs_dir2_data.c
1216
xfs_dir2_data_freeinsert(hdr, bf, newdup,
fs/xfs/libxfs/xfs_dir2_data.c
1218
xfs_dir2_data_freeinsert(hdr, bf, newdup2,
fs/xfs/libxfs/xfs_dir2_data.c
1227
hdr, sizeof(*hdr), __FILE__, __LINE__, fa);
fs/xfs/libxfs/xfs_dir2_data.c
1236
struct xfs_dir2_data_hdr *hdr)
fs/xfs/libxfs/xfs_dir2_data.c
1240
switch (hdr->magic) {
fs/xfs/libxfs/xfs_dir2_data.c
1243
p = xfs_dir2_block_leaf_p(xfs_dir2_block_tail_p(geo, hdr));
fs/xfs/libxfs/xfs_dir2_data.c
1244
return p - (void *)hdr;
fs/xfs/libxfs/xfs_dir2_data.c
127
hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_data.c
130
switch (hdr->magic) {
fs/xfs/libxfs/xfs_dir2_data.c
133
btp = xfs_dir2_block_tail_p(geo, hdr);
fs/xfs/libxfs/xfs_dir2_data.c
146
end = xfs_dir3_data_end_offset(geo, hdr);
fs/xfs/libxfs/xfs_dir2_data.c
153
bf = xfs_dir2_data_bestfree_p(mp, hdr);
fs/xfs/libxfs/xfs_dir2_data.c
209
fa = xfs_dir2_data_freefind_verify(hdr, bf, dup, &dfp);
fs/xfs/libxfs/xfs_dir2_data.c
24
struct xfs_dir2_data_hdr *hdr, struct xfs_dir2_data_free *bf,
fs/xfs/libxfs/xfs_dir2_data.c
253
if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
254
hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) {
fs/xfs/libxfs/xfs_dir2_data.c
257
((char *)dep - (char *)hdr));
fs/xfs/libxfs/xfs_dir2_data.c
276
if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
277
hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC)) {
fs/xfs/libxfs/xfs_dir2_data.c
31
struct xfs_dir2_data_hdr *hdr)
fs/xfs/libxfs/xfs_dir2_data.c
34
return ((struct xfs_dir3_data_hdr *)hdr)->best_free;
fs/xfs/libxfs/xfs_dir2_data.c
342
struct xfs_dir2_data_hdr *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_data.c
344
switch (hdr->magic) {
fs/xfs/libxfs/xfs_dir2_data.c
35
return hdr->bestfree;
fs/xfs/libxfs/xfs_dir2_data.c
429
if (hdr3->hdr.magic != cpu_to_be32(XFS_DIR3_DATA_MAGIC))
fs/xfs/libxfs/xfs_dir2_data.c
432
if (be64_to_cpu(hdr3->hdr.owner) != owner)
fs/xfs/libxfs/xfs_dir2_data.c
486
struct xfs_dir2_data_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_data.c
497
off = (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
535
*bf_ent = xfs_dir2_data_freefind(hdr, bf, dup);
fs/xfs/libxfs/xfs_dir2_data.c
545
struct xfs_dir2_data_hdr *hdr, /* data block header */
fs/xfs/libxfs/xfs_dir2_data.c
552
off = (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
581
struct xfs_dir2_data_hdr *hdr, /* data block pointer */
fs/xfs/libxfs/xfs_dir2_data.c
588
ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
589
hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
590
hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
591
hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC));
fs/xfs/libxfs/xfs_dir2_data.c
594
new.offset = cpu_to_be16((char *)dup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
625
struct xfs_dir2_data_hdr *hdr, /* data block header */
fs/xfs/libxfs/xfs_dir2_data.c
631
ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
632
hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
633
hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
634
hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC));
fs/xfs/libxfs/xfs_dir2_data.c
667
struct xfs_dir2_data_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_data.c
671
struct xfs_dir2_data_free *bf = xfs_dir2_data_bestfree_p(mp, hdr);
fs/xfs/libxfs/xfs_dir2_data.c
672
void *addr = hdr;
fs/xfs/libxfs/xfs_dir2_data.c
676
ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
677
hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
678
hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
679
hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC));
fs/xfs/libxfs/xfs_dir2_data.c
698
xfs_dir2_data_freeinsert(hdr, bf, dup, loghead);
fs/xfs/libxfs/xfs_dir2_data.c
727
struct xfs_dir2_data_hdr *hdr;
fs/xfs/libxfs/xfs_dir2_data.c
746
hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_data.c
757
hdr->magic = cpu_to_be32(XFS_DIR2_DATA_MAGIC);
fs/xfs/libxfs/xfs_dir2_data.c
759
bf = xfs_dir2_data_bestfree_p(mp, hdr);
fs/xfs/libxfs/xfs_dir2_data.c
773
*xfs_dir2_data_unused_tag_p(dup) = cpu_to_be16((char *)dup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
794
struct xfs_dir2_data_hdr *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_data.c
796
ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
797
hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
798
hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
799
hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC));
fs/xfs/libxfs/xfs_dir2_data.c
801
xfs_trans_log_buf(args->trans, bp, (uint)((char *)dep - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_data.c
803
(char *)hdr - 1));
fs/xfs/libxfs/xfs_dir2_data.c
815
struct xfs_dir2_data_hdr *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_data.c
817
ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
818
hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
819
hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
820
hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC));
fs/xfs/libxfs/xfs_dir2_data.c
835
xfs_dir2_data_hdr_t *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_data.c
837
ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
838
hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
839
hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_data.c
840
hdr->magic == cpu_to_be32(XFS_DIR3_BLOCK_MAGIC));
fs/xfs/libxfs/xfs_dir2_data.c
845
xfs_trans_log_buf(args->trans, bp, (uint)((char *)dup - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_data.c
847
1 - (char *)hdr));
fs/xfs/libxfs/xfs_dir2_data.c
852
(uint)((char *)xfs_dir2_data_unused_tag_p(dup) - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_data.c
853
(uint)((char *)xfs_dir2_data_unused_tag_p(dup) - (char *)hdr +
fs/xfs/libxfs/xfs_dir2_data.c
870
xfs_dir2_data_hdr_t *hdr; /* data block pointer */
fs/xfs/libxfs/xfs_dir2_data.c
879
hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_data.c
884
end = xfs_dir3_data_end_offset(args->geo, hdr);
fs/xfs/libxfs/xfs_dir2_data.c
894
tagp = (__be16 *)((char *)hdr + offset) - 1;
fs/xfs/libxfs/xfs_dir2_data.c
895
prevdup = (xfs_dir2_data_unused_t *)((char *)hdr + be16_to_cpu(*tagp));
fs/xfs/libxfs/xfs_dir2_data.c
906
(xfs_dir2_data_unused_t *)((char *)hdr + offset + len);
fs/xfs/libxfs/xfs_dir2_data.c
917
bf = xfs_dir2_data_bestfree_p(args->dp->i_mount, hdr);
fs/xfs/libxfs/xfs_dir2_data.c
924
dfp = xfs_dir2_data_freefind(hdr, bf, prevdup);
fs/xfs/libxfs/xfs_dir2_data.c
925
dfp2 = xfs_dir2_data_freefind(hdr, bf, postdup);
fs/xfs/libxfs/xfs_dir2_data.c
938
cpu_to_be16((char *)prevdup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
953
xfs_dir2_data_freeremove(hdr, bf, dfp2, needlogp);
fs/xfs/libxfs/xfs_dir2_data.c
954
xfs_dir2_data_freeremove(hdr, bf, dfp, needlogp);
fs/xfs/libxfs/xfs_dir2_data.c
958
dfp = xfs_dir2_data_freeinsert(hdr, bf, prevdup,
fs/xfs/libxfs/xfs_dir2_data.c
970
dfp = xfs_dir2_data_freefind(hdr, bf, prevdup);
fs/xfs/libxfs/xfs_dir2_data.c
973
cpu_to_be16((char *)prevdup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_data.c
981
xfs_dir2_data_freeremove(hdr, bf, dfp, needlogp);
fs/xfs/libxfs/xfs_dir2_data.c
982
xfs_dir2_data_freeinsert(hdr, bf, prevdup, needlogp);
fs/xfs/libxfs/xfs_dir2_data.c
996
dfp = xfs_dir2_data_freefind(hdr, bf, postdup);
fs/xfs/libxfs/xfs_dir2_data.c
997
newdup = (xfs_dir2_data_unused_t *)((char *)hdr + offset);
fs/xfs/libxfs/xfs_dir2_leaf.c
1126
ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1127
leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC));
fs/xfs/libxfs/xfs_dir2_leaf.c
1143
struct xfs_dir3_icleaf_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_leaf.c
1152
ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1153
leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1154
leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1155
leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC));
fs/xfs/libxfs/xfs_dir2_leaf.c
1157
firstlep = &hdr->ents[first];
fs/xfs/libxfs/xfs_dir2_leaf.c
1158
lastlep = &hdr->ents[last];
fs/xfs/libxfs/xfs_dir2_leaf.c
1174
ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1175
leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1176
leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1177
leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC));
fs/xfs/libxfs/xfs_dir2_leaf.c
1180
(uint)((char *)&leaf->hdr - (char *)leaf),
fs/xfs/libxfs/xfs_dir2_leaf.c
1195
ASSERT(leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1196
leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1197
leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAFN_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1198
leaf->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC));
fs/xfs/libxfs/xfs_dir2_leaf.c
1403
xfs_dir2_data_hdr_t *hdr; /* data block header */
fs/xfs/libxfs/xfs_dir2_leaf.c
142
struct xfs_dir3_icleaf_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_leaf.c
1432
hdr = dbp->b_addr;
fs/xfs/libxfs/xfs_dir2_leaf.c
1434
bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr);
fs/xfs/libxfs/xfs_dir2_leaf.c
1441
dep = (xfs_dir2_data_entry_t *)((char *)hdr +
fs/xfs/libxfs/xfs_dir2_leaf.c
1457
(xfs_dir2_data_aoff_t)((char *)dep - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_leaf.c
1475
xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog);
fs/xfs/libxfs/xfs_dir2_leaf.c
150
bool isleaf1 = (hdr->magic == XFS_DIR2_LEAF1_MAGIC ||
fs/xfs/libxfs/xfs_dir2_leaf.c
151
hdr->magic == XFS_DIR3_LEAF1_MAGIC);
fs/xfs/libxfs/xfs_dir2_leaf.c
160
if (hdr->count > geo->leaf_max_ents)
fs/xfs/libxfs/xfs_dir2_leaf.c
165
(char *)&hdr->ents[hdr->count] > (char *)xfs_dir2_leaf_bests_p(ltp))
fs/xfs/libxfs/xfs_dir2_leaf.c
1679
struct xfs_dir2_data_hdr *hdr = dbp->b_addr;
fs/xfs/libxfs/xfs_dir2_leaf.c
1681
xfs_dir2_data_bestfree_p(dp->i_mount, hdr);
fs/xfs/libxfs/xfs_dir2_leaf.c
1683
ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_leaf.c
1684
hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC));
fs/xfs/libxfs/xfs_dir2_leaf.c
1712
struct xfs_dir3_icleaf_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_leaf.c
1718
entries = hdr->count - hdr->stale;
fs/xfs/libxfs/xfs_dir2_leaf.c
1719
if (hdr->magic == XFS_DIR2_LEAF1_MAGIC ||
fs/xfs/libxfs/xfs_dir2_leaf.c
172
for (i = stale = 0; i < hdr->count; i++) {
fs/xfs/libxfs/xfs_dir2_leaf.c
1720
hdr->magic == XFS_DIR2_LEAFN_MAGIC)
fs/xfs/libxfs/xfs_dir2_leaf.c
173
if (i + 1 < hdr->count) {
fs/xfs/libxfs/xfs_dir2_leaf.c
174
if (be32_to_cpu(hdr->ents[i].hashval) >
fs/xfs/libxfs/xfs_dir2_leaf.c
175
be32_to_cpu(hdr->ents[i + 1].hashval))
fs/xfs/libxfs/xfs_dir2_leaf.c
178
if (hdr->ents[i].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR))
fs/xfs/libxfs/xfs_dir2_leaf.c
181
be32_to_cpu(hdr->ents[i].address)) >=
fs/xfs/libxfs/xfs_dir2_leaf.c
185
if (hdr->stale != stale)
fs/xfs/libxfs/xfs_dir2_leaf.c
221
if (hdr3->hdr.info.hdr.magic !=
fs/xfs/libxfs/xfs_dir2_leaf.c
223
hdr3->hdr.info.hdr.magic !=
fs/xfs/libxfs/xfs_dir2_leaf.c
227
if (be64_to_cpu(hdr3->hdr.info.owner) != owner)
fs/xfs/libxfs/xfs_dir2_leaf.c
373
leaf3->info.hdr.magic = (type == XFS_DIR2_LEAF1_MAGIC)
fs/xfs/libxfs/xfs_dir2_leaf.c
381
leaf->hdr.info.magic = cpu_to_be16(type);
fs/xfs/libxfs/xfs_dir2_leaf.c
44
to->forw = be32_to_cpu(from3->hdr.info.hdr.forw);
fs/xfs/libxfs/xfs_dir2_leaf.c
440
xfs_dir2_data_hdr_t *hdr; /* block header */
fs/xfs/libxfs/xfs_dir2_leaf.c
45
to->back = be32_to_cpu(from3->hdr.info.hdr.back);
fs/xfs/libxfs/xfs_dir2_leaf.c
46
to->magic = be16_to_cpu(from3->hdr.info.hdr.magic);
fs/xfs/libxfs/xfs_dir2_leaf.c
47
to->count = be16_to_cpu(from3->hdr.count);
fs/xfs/libxfs/xfs_dir2_leaf.c
477
hdr = dbp->b_addr;
fs/xfs/libxfs/xfs_dir2_leaf.c
479
btp = xfs_dir2_block_tail_p(args->geo, hdr);
fs/xfs/libxfs/xfs_dir2_leaf.c
48
to->stale = be16_to_cpu(from3->hdr.stale);
fs/xfs/libxfs/xfs_dir2_leaf.c
481
bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr);
fs/xfs/libxfs/xfs_dir2_leaf.c
506
(xfs_dir2_data_aoff_t)((char *)blp - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_leaf.c
507
(xfs_dir2_data_aoff_t)((char *)hdr + args->geo->blksize -
fs/xfs/libxfs/xfs_dir2_leaf.c
515
if (hdr->magic == cpu_to_be32(XFS_DIR2_BLOCK_MAGIC))
fs/xfs/libxfs/xfs_dir2_leaf.c
516
hdr->magic = cpu_to_be32(XFS_DIR2_DATA_MAGIC);
fs/xfs/libxfs/xfs_dir2_leaf.c
518
hdr->magic = cpu_to_be32(XFS_DIR3_DATA_MAGIC);
fs/xfs/libxfs/xfs_dir2_leaf.c
521
xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog);
fs/xfs/libxfs/xfs_dir2_leaf.c
54
to->forw = be32_to_cpu(from->hdr.info.forw);
fs/xfs/libxfs/xfs_dir2_leaf.c
55
to->back = be32_to_cpu(from->hdr.info.back);
fs/xfs/libxfs/xfs_dir2_leaf.c
56
to->magic = be16_to_cpu(from->hdr.info.magic);
fs/xfs/libxfs/xfs_dir2_leaf.c
57
to->count = be16_to_cpu(from->hdr.count);
fs/xfs/libxfs/xfs_dir2_leaf.c
58
to->stale = be16_to_cpu(from->hdr.stale);
fs/xfs/libxfs/xfs_dir2_leaf.c
676
struct xfs_dir2_data_hdr *hdr; /* data block header */
fs/xfs/libxfs/xfs_dir2_leaf.c
78
to3->hdr.info.hdr.forw = cpu_to_be32(from->forw);
fs/xfs/libxfs/xfs_dir2_leaf.c
79
to3->hdr.info.hdr.back = cpu_to_be32(from->back);
fs/xfs/libxfs/xfs_dir2_leaf.c
80
to3->hdr.info.hdr.magic = cpu_to_be16(from->magic);
fs/xfs/libxfs/xfs_dir2_leaf.c
81
to3->hdr.count = cpu_to_be16(from->count);
fs/xfs/libxfs/xfs_dir2_leaf.c
82
to3->hdr.stale = cpu_to_be16(from->stale);
fs/xfs/libxfs/xfs_dir2_leaf.c
87
to->hdr.info.forw = cpu_to_be32(from->forw);
fs/xfs/libxfs/xfs_dir2_leaf.c
879
hdr = dbp->b_addr;
fs/xfs/libxfs/xfs_dir2_leaf.c
88
to->hdr.info.back = cpu_to_be32(from->back);
fs/xfs/libxfs/xfs_dir2_leaf.c
880
bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr);
fs/xfs/libxfs/xfs_dir2_leaf.c
89
to->hdr.info.magic = cpu_to_be16(from->magic);
fs/xfs/libxfs/xfs_dir2_leaf.c
895
hdr = dbp->b_addr;
fs/xfs/libxfs/xfs_dir2_leaf.c
896
bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr);
fs/xfs/libxfs/xfs_dir2_leaf.c
90
to->hdr.count = cpu_to_be16(from->count);
fs/xfs/libxfs/xfs_dir2_leaf.c
903
((char *)hdr + be16_to_cpu(bf[0].offset));
fs/xfs/libxfs/xfs_dir2_leaf.c
909
(xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr),
fs/xfs/libxfs/xfs_dir2_leaf.c
91
to->hdr.stale = cpu_to_be16(from->stale);
fs/xfs/libxfs/xfs_dir2_leaf.c
924
*tagp = cpu_to_be16((char *)dep - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_leaf.c
929
xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog);
fs/xfs/libxfs/xfs_dir2_node.c
104
struct xfs_dir2_free_hdr *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_node.c
106
if (!xfs_verify_magic(bp, hdr->magic))
fs/xfs/libxfs/xfs_dir2_node.c
1191
struct xfs_dir2_data_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_node.c
1203
if (hdr) {
fs/xfs/libxfs/xfs_dir2_node.c
1279
xfs_dir2_data_hdr_t *hdr; /* data block header */
fs/xfs/libxfs/xfs_dir2_node.c
1330
hdr = dbp->b_addr;
fs/xfs/libxfs/xfs_dir2_node.c
1331
dep = (xfs_dir2_data_entry_t *)((char *)hdr + off);
fs/xfs/libxfs/xfs_dir2_node.c
1332
bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr);
fs/xfs/libxfs/xfs_dir2_node.c
1343
xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog);
fs/xfs/libxfs/xfs_dir2_node.c
1393
hdr = NULL;
fs/xfs/libxfs/xfs_dir2_node.c
1407
error = xfs_dir3_data_block_free(args, hdr, free,
fs/xfs/libxfs/xfs_dir2_node.c
1694
struct xfs_dir3_icfree_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_node.c
1761
xfs_dir2_free_hdr_from_disk(mp, hdr, fbp->b_addr);
fs/xfs/libxfs/xfs_dir2_node.c
1764
hdr->firstdb = (fbno - xfs_dir2_byte_to_db(args->geo,
fs/xfs/libxfs/xfs_dir2_node.c
1768
xfs_dir2_free_hdr_from_disk(mp, hdr, fbp->b_addr);
fs/xfs/libxfs/xfs_dir2_node.c
1775
if (*findex >= hdr->nvalid) {
fs/xfs/libxfs/xfs_dir2_node.c
1777
hdr->nvalid = *findex + 1;
fs/xfs/libxfs/xfs_dir2_node.c
1778
hdr->bests[*findex] = cpu_to_be16(NULLDATAOFF);
fs/xfs/libxfs/xfs_dir2_node.c
1785
if (hdr->bests[*findex] == cpu_to_be16(NULLDATAOFF)) {
fs/xfs/libxfs/xfs_dir2_node.c
1786
hdr->nused++;
fs/xfs/libxfs/xfs_dir2_node.c
1787
xfs_dir2_free_hdr_to_disk(mp, fbp->b_addr, hdr);
fs/xfs/libxfs/xfs_dir2_node.c
1793
hdr->bests[*findex] = bf[0].length;
fs/xfs/libxfs/xfs_dir2_node.c
1806
struct xfs_dir3_icfree_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_node.c
1830
xfs_dir2_free_hdr_from_disk(dp->i_mount, hdr, fbp->b_addr);
fs/xfs/libxfs/xfs_dir2_node.c
1833
ASSERT(findex < hdr->nvalid);
fs/xfs/libxfs/xfs_dir2_node.c
1834
ASSERT(be16_to_cpu(hdr->bests[findex]) != NULLDATAOFF);
fs/xfs/libxfs/xfs_dir2_node.c
1835
ASSERT(be16_to_cpu(hdr->bests[findex]) >= length);
fs/xfs/libxfs/xfs_dir2_node.c
1836
dbno = hdr->firstdb + findex;
fs/xfs/libxfs/xfs_dir2_node.c
1878
xfs_dir2_free_hdr_from_disk(dp->i_mount, hdr, fbp->b_addr);
fs/xfs/libxfs/xfs_dir2_node.c
1881
for (findex = hdr->nvalid - 1; findex >= 0; findex--) {
fs/xfs/libxfs/xfs_dir2_node.c
1882
if (be16_to_cpu(hdr->bests[findex]) != NULLDATAOFF &&
fs/xfs/libxfs/xfs_dir2_node.c
1883
be16_to_cpu(hdr->bests[findex]) >= length) {
fs/xfs/libxfs/xfs_dir2_node.c
1884
dbno = hdr->firstdb + findex;
fs/xfs/libxfs/xfs_dir2_node.c
1912
struct xfs_dir2_data_hdr *hdr; /* data block header */
fs/xfs/libxfs/xfs_dir2_node.c
1963
hdr = dbp->b_addr;
fs/xfs/libxfs/xfs_dir2_node.c
1964
bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr);
fs/xfs/libxfs/xfs_dir2_node.c
1969
((char *)hdr + be16_to_cpu(bf[0].offset));
fs/xfs/libxfs/xfs_dir2_node.c
1972
aoff = (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_node.c
198
if (be64_to_cpu(hdr3->hdr.owner) != owner)
fs/xfs/libxfs/xfs_dir2_node.c
1987
*tagp = cpu_to_be16((char *)dep - (char *)hdr);
fs/xfs/libxfs/xfs_dir2_node.c
1992
xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog);
fs/xfs/libxfs/xfs_dir2_node.c
201
struct xfs_dir2_free_hdr *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_dir2_node.c
203
if (be32_to_cpu(hdr->firstdb) != firstdb)
fs/xfs/libxfs/xfs_dir2_node.c
205
if (be32_to_cpu(hdr->nvalid) > maxbests)
fs/xfs/libxfs/xfs_dir2_node.c
207
if (be32_to_cpu(hdr->nvalid) < be32_to_cpu(hdr->nused))
fs/xfs/libxfs/xfs_dir2_node.c
2201
xfs_dir2_data_hdr_t *hdr; /* data block header */
fs/xfs/libxfs/xfs_dir2_node.c
2250
hdr = state->extrablk.bp->b_addr;
fs/xfs/libxfs/xfs_dir2_node.c
2251
ASSERT(hdr->magic == cpu_to_be32(XFS_DIR2_DATA_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_node.c
2252
hdr->magic == cpu_to_be32(XFS_DIR3_DATA_MAGIC));
fs/xfs/libxfs/xfs_dir2_node.c
2254
((char *)hdr +
fs/xfs/libxfs/xfs_dir2_node.c
256
to->magic = be32_to_cpu(from3->hdr.hdr.magic);
fs/xfs/libxfs/xfs_dir2_node.c
257
to->firstdb = be32_to_cpu(from3->hdr.firstdb);
fs/xfs/libxfs/xfs_dir2_node.c
258
to->nvalid = be32_to_cpu(from3->hdr.nvalid);
fs/xfs/libxfs/xfs_dir2_node.c
259
to->nused = be32_to_cpu(from3->hdr.nused);
fs/xfs/libxfs/xfs_dir2_node.c
264
to->magic = be32_to_cpu(from->hdr.magic);
fs/xfs/libxfs/xfs_dir2_node.c
265
to->firstdb = be32_to_cpu(from->hdr.firstdb);
fs/xfs/libxfs/xfs_dir2_node.c
266
to->nvalid = be32_to_cpu(from->hdr.nvalid);
fs/xfs/libxfs/xfs_dir2_node.c
267
to->nused = be32_to_cpu(from->hdr.nused);
fs/xfs/libxfs/xfs_dir2_node.c
285
to3->hdr.hdr.magic = cpu_to_be32(from->magic);
fs/xfs/libxfs/xfs_dir2_node.c
286
to3->hdr.firstdb = cpu_to_be32(from->firstdb);
fs/xfs/libxfs/xfs_dir2_node.c
287
to3->hdr.nvalid = cpu_to_be32(from->nvalid);
fs/xfs/libxfs/xfs_dir2_node.c
288
to3->hdr.nused = cpu_to_be32(from->nused);
fs/xfs/libxfs/xfs_dir2_node.c
292
to->hdr.magic = cpu_to_be32(from->magic);
fs/xfs/libxfs/xfs_dir2_node.c
293
to->hdr.firstdb = cpu_to_be32(from->firstdb);
fs/xfs/libxfs/xfs_dir2_node.c
294
to->hdr.nvalid = cpu_to_be32(from->nvalid);
fs/xfs/libxfs/xfs_dir2_node.c
295
to->hdr.nused = cpu_to_be32(from->nused);
fs/xfs/libxfs/xfs_dir2_node.c
333
struct xfs_dir3_icfree_hdr hdr;
fs/xfs/libxfs/xfs_dir2_node.c
348
memset(&hdr, 0, sizeof(hdr));
fs/xfs/libxfs/xfs_dir2_node.c
353
hdr.magic = XFS_DIR3_FREE_MAGIC;
fs/xfs/libxfs/xfs_dir2_node.c
355
hdr3->hdr.blkno = cpu_to_be64(xfs_buf_daddr(bp));
fs/xfs/libxfs/xfs_dir2_node.c
356
hdr3->hdr.owner = cpu_to_be64(args->owner);
fs/xfs/libxfs/xfs_dir2_node.c
357
uuid_copy(&hdr3->hdr.uuid, &mp->m_sb.sb_meta_uuid);
fs/xfs/libxfs/xfs_dir2_node.c
359
hdr.magic = XFS_DIR2_FREE_MAGIC;
fs/xfs/libxfs/xfs_dir2_node.c
360
xfs_dir2_free_hdr_to_disk(mp, bp->b_addr, &hdr);
fs/xfs/libxfs/xfs_dir2_node.c
371
struct xfs_dir3_icfree_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_node.c
378
ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_node.c
379
free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC));
fs/xfs/libxfs/xfs_dir2_node.c
381
(char *)&hdr->bests[first] - (char *)free,
fs/xfs/libxfs/xfs_dir2_node.c
382
(char *)&hdr->bests[last] - (char *)free +
fs/xfs/libxfs/xfs_dir2_node.c
383
sizeof(hdr->bests[0]) - 1);
fs/xfs/libxfs/xfs_dir2_node.c
398
ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_node.c
399
free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC));
fs/xfs/libxfs/xfs_dir2_node.c
484
if (leaf->hdr.info.magic == cpu_to_be16(XFS_DIR2_LEAF1_MAGIC))
fs/xfs/libxfs/xfs_dir2_node.c
485
leaf->hdr.info.magic = cpu_to_be16(XFS_DIR2_LEAFN_MAGIC);
fs/xfs/libxfs/xfs_dir2_node.c
487
leaf->hdr.info.magic = cpu_to_be16(XFS_DIR3_LEAFN_MAGIC);
fs/xfs/libxfs/xfs_dir2_node.c
590
struct xfs_dir3_icfree_hdr hdr;
fs/xfs/libxfs/xfs_dir2_node.c
592
xfs_dir2_free_hdr_from_disk(dp->i_mount, &hdr, bp->b_addr);
fs/xfs/libxfs/xfs_dir2_node.c
594
ASSERT((hdr.firstdb % dp->i_mount->m_dir_geo->free_max_bests) == 0);
fs/xfs/libxfs/xfs_dir2_node.c
595
ASSERT(hdr.firstdb <= db);
fs/xfs/libxfs/xfs_dir2_node.c
596
ASSERT(db < hdr.firstdb + hdr.nvalid);
fs/xfs/libxfs/xfs_dir2_node.c
677
ASSERT(free->hdr.magic == cpu_to_be32(XFS_DIR2_FREE_MAGIC) ||
fs/xfs/libxfs/xfs_dir2_node.c
678
free->hdr.magic == cpu_to_be32(XFS_DIR3_FREE_MAGIC));
fs/xfs/libxfs/xfs_dir2_priv.h
113
struct xfs_dir3_icleaf_hdr *hdr, struct xfs_buf *bp, int first,
fs/xfs/libxfs/xfs_dir2_priv.h
131
struct xfs_dir3_icleaf_hdr *hdr, struct xfs_dir2_leaf *leaf,
fs/xfs/libxfs/xfs_dir2_priv.h
162
xfs_ino_t xfs_dir2_sf_get_ino(struct xfs_mount *mp, struct xfs_dir2_sf_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_priv.h
164
xfs_ino_t xfs_dir2_sf_get_parent_ino(struct xfs_dir2_sf_hdr *hdr);
fs/xfs/libxfs/xfs_dir2_priv.h
165
void xfs_dir2_sf_put_parent_ino(struct xfs_dir2_sf_hdr *hdr, xfs_ino_t ino);
fs/xfs/libxfs/xfs_dir2_priv.h
169
struct xfs_dir2_sf_hdr *hdr, struct xfs_dir2_sf_entry *sfep);
fs/xfs/libxfs/xfs_dir2_priv.h
182
struct xfs_dir2_sf_hdr *hdr, int len);
fs/xfs/libxfs/xfs_dir2_priv.h
183
void xfs_dir2_sf_put_ino(struct xfs_mount *mp, struct xfs_dir2_sf_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_priv.h
64
struct xfs_dir2_data_hdr *hdr);
fs/xfs/libxfs/xfs_dir2_priv.h
87
xfs_dir2_data_freeinsert(struct xfs_dir2_data_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_sf.c
101
if (hdr->i8count)
fs/xfs/libxfs/xfs_dir2_sf.c
109
struct xfs_dir2_sf_hdr *hdr)
fs/xfs/libxfs/xfs_dir2_sf.c
111
if (!hdr->i8count)
fs/xfs/libxfs/xfs_dir2_sf.c
112
return get_unaligned_be32(hdr->parent);
fs/xfs/libxfs/xfs_dir2_sf.c
113
return get_unaligned_be64(hdr->parent) & XFS_MAXINUMBER;
fs/xfs/libxfs/xfs_dir2_sf.c
118
struct xfs_dir2_sf_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_sf.c
123
if (hdr->i8count)
fs/xfs/libxfs/xfs_dir2_sf.c
124
put_unaligned_be64(ino, hdr->parent);
fs/xfs/libxfs/xfs_dir2_sf.c
126
put_unaligned_be32(ino, hdr->parent);
fs/xfs/libxfs/xfs_dir2_sf.c
169
xfs_dir2_data_hdr_t *hdr, /* block directory data */
fs/xfs/libxfs/xfs_dir2_sf.c
198
btp = xfs_dir2_block_tail_p(geo, hdr);
fs/xfs/libxfs/xfs_dir2_sf.c
210
dep = (xfs_dir2_data_entry_t *)((char *)hdr +
fs/xfs/libxfs/xfs_dir2_sf.c
43
struct xfs_dir2_sf_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_sf.c
49
count += hdr->i8count ? XFS_INO64_SIZE : XFS_INO32_SIZE; /* ino # */
fs/xfs/libxfs/xfs_dir2_sf.c
59
struct xfs_dir2_sf_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_sf.c
62
return (void *)sfep + xfs_dir2_sf_entsize(mp, hdr, sfep->namelen);
fs/xfs/libxfs/xfs_dir2_sf.c
74
struct xfs_dir2_sf_hdr *hdr,
fs/xfs/libxfs/xfs_dir2_sf.c
82
if (!hdr->i8count)
fs/xfs/libxfs/xfs_dir2_sf.c
90
struct xfs_dir2_sf_hdr *hdr,
fs/xfs/libxfs/xfs_fs.h
519
struct xfs_bulk_ireq hdr;
fs/xfs/libxfs/xfs_fs.h
526
struct xfs_bulk_ireq hdr;
fs/xfs/libxfs/xfs_ondisk.h
205
XFS_CHECK_OFFSET(struct xfs_dir3_leaf, hdr.info.hdr, 0);
fs/xfs/libxfs/xfs_ondisk.h
206
XFS_CHECK_OFFSET(struct xfs_da3_intnode, hdr.info.hdr, 0);
fs/xfs/libxfs/xfs_ondisk.h
207
XFS_CHECK_OFFSET(struct xfs_dir3_data_hdr, hdr.magic, 0);
fs/xfs/libxfs/xfs_ondisk.h
208
XFS_CHECK_OFFSET(struct xfs_dir3_free, hdr.hdr.magic, 0);
fs/xfs/libxfs/xfs_ondisk.h
209
XFS_CHECK_OFFSET(struct xfs_attr3_leafblock, hdr.info.hdr, 0);
fs/xfs/libxfs/xfs_rtbitmap.c
102
hdr->rt_lsn = cpu_to_be64(bip->bli_item.li_lsn);
fs/xfs/libxfs/xfs_rtbitmap.c
1406
struct xfs_rtbuf_blkinfo *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_rtbitmap.c
1409
hdr->rt_magic = cpu_to_be32(XFS_RTBITMAP_MAGIC);
fs/xfs/libxfs/xfs_rtbitmap.c
1411
hdr->rt_magic = cpu_to_be32(XFS_RTSUMMARY_MAGIC);
fs/xfs/libxfs/xfs_rtbitmap.c
1412
hdr->rt_owner = cpu_to_be64(ip->i_ino);
fs/xfs/libxfs/xfs_rtbitmap.c
1413
hdr->rt_blkno = cpu_to_be64(XFS_FSB_TO_DADDR(mp, fsbno));
fs/xfs/libxfs/xfs_rtbitmap.c
1414
hdr->rt_lsn = 0;
fs/xfs/libxfs/xfs_rtbitmap.c
1415
uuid_copy(&hdr->rt_uuid, &mp->m_sb.sb_meta_uuid);
fs/xfs/libxfs/xfs_rtbitmap.c
1417
bufdata += sizeof(*hdr);
fs/xfs/libxfs/xfs_rtbitmap.c
215
struct xfs_rtbuf_blkinfo *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_rtbitmap.c
217
if (hdr->rt_owner != cpu_to_be64(ip->i_ino)) {
fs/xfs/libxfs/xfs_rtbitmap.c
38
struct xfs_rtbuf_blkinfo *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_rtbitmap.c
40
if (!xfs_verify_magic(bp, hdr->rt_magic))
fs/xfs/libxfs/xfs_rtbitmap.c
46
if (!uuid_equal(&hdr->rt_uuid, &mp->m_sb.sb_meta_uuid))
fs/xfs/libxfs/xfs_rtbitmap.c
48
if (hdr->rt_blkno != cpu_to_be64(xfs_buf_daddr(bp)))
fs/xfs/libxfs/xfs_rtbitmap.c
58
struct xfs_rtbuf_blkinfo *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_rtbitmap.c
64
if (!xfs_log_check_lsn(mp, be64_to_cpu(hdr->rt_lsn))) {
fs/xfs/libxfs/xfs_rtbitmap.c
88
struct xfs_rtbuf_blkinfo *hdr = bp->b_addr;
fs/xfs/libxfs/xfs_rtbitmap.h
226
struct xfs_rtbuf_blkinfo *hdr = args->rbmbp->b_addr;
fs/xfs/libxfs/xfs_rtbitmap.h
229
words = (union xfs_rtword_raw *)(hdr + 1);
fs/xfs/libxfs/xfs_rtbitmap.h
316
struct xfs_rtbuf_blkinfo *hdr = args->sumbp->b_addr;
fs/xfs/libxfs/xfs_rtbitmap.h
319
info = (union xfs_suminfo_raw *)(hdr + 1);
fs/xfs/scrub/attr.c
389
if (leaf3->hdr.pad1 != 0 || leaf3->hdr.pad2 != 0 ||
fs/xfs/scrub/attr.c
390
leaf3->hdr.info.hdr.pad != 0)
fs/xfs/scrub/attr.c
393
if (leaf->hdr.pad1 != 0 || leaf->hdr.info.pad != 0)
fs/xfs/scrub/attr_repair.c
251
struct xfs_attr_sf_hdr *hdr,
fs/xfs/scrub/attr_repair.c
259
if (!xchk_xattr_set_map(sc, ab->usedmap, (char *)name - (char *)hdr,
fs/xfs/scrub/attr_repair.c
263
if (!xchk_xattr_set_map(sc, ab->usedmap, (char *)value - (char *)hdr,
fs/xfs/scrub/attr_repair.c
457
struct xfs_attr_sf_hdr *hdr;
fs/xfs/scrub/attr_repair.c
466
hdr = ifp->if_data;
fs/xfs/scrub/attr_repair.c
470
xchk_xattr_set_map(sc, ab->usedmap, 0, sizeof(*hdr));
fs/xfs/scrub/attr_repair.c
472
sfe = xfs_attr_sf_firstentry(hdr);
fs/xfs/scrub/attr_repair.c
476
for (i = 0; i < hdr->count; i++) {
fs/xfs/scrub/attr_repair.c
485
(char *)sfe - (char *)hdr,
fs/xfs/scrub/attr_repair.c
491
error = xrep_xattr_salvage_sf_attr(rx, hdr, sfe);
fs/xfs/scrub/attr_repair.c
806
struct xfs_attr_sf_hdr *hdr;
fs/xfs/scrub/attr_repair.c
840
xfs_idata_realloc(sc->tempip, sizeof(*hdr), XFS_ATTR_FORK);
fs/xfs/scrub/attr_repair.c
844
hdr = ifp->if_data;
fs/xfs/scrub/attr_repair.c
845
memset(hdr, 0, sizeof(*hdr));
fs/xfs/scrub/attr_repair.c
846
hdr->totsize = cpu_to_be16(sizeof(*hdr));
fs/xfs/scrub/attr_repair.c
956
struct xfs_attr_sf_hdr *hdr;
fs/xfs/scrub/attr_repair.c
968
hdr = xfs_idata_realloc(ip, (int)sizeof(*hdr) - ifp->if_bytes,
fs/xfs/scrub/attr_repair.c
970
hdr->count = 0;
fs/xfs/scrub/attr_repair.c
971
hdr->totsize = cpu_to_be16(sizeof(*hdr));
fs/xfs/scrub/dabtree.c
105
struct xfs_da3_icnode_hdr hdr;
fs/xfs/scrub/dabtree.c
109
xfs_da3_node_hdr_from_disk(ds->sc->mp, &hdr, blk->bp->b_addr);
fs/xfs/scrub/dabtree.c
110
return hdr.btree + blk->index;
fs/xfs/scrub/dabtree.c
298
struct xfs_da_blkinfo *hdr)
fs/xfs/scrub/dabtree.c
304
forw = be32_to_cpu(hdr->forw);
fs/xfs/scrub/dabtree.c
305
back = be32_to_cpu(hdr->back);
fs/xfs/scrub/dabtree.c
386
blk->magic = be16_to_cpu(hdr3->hdr.magic);
fs/xfs/scrub/dabtree.c
390
if (xfs_has_crc(ds->sc->mp) && hdr3->hdr.pad)
fs/xfs/scrub/dabtree.c
401
error = xchk_da_btree_block_check_siblings(ds, level, &hdr3->hdr);
fs/xfs/scrub/dir.c
337
struct xfs_dir3_icleaf_hdr hdr;
fs/xfs/scrub/dir.c
344
xfs_dir2_leaf_hdr_from_disk(mp, &hdr, blk->bp->b_addr);
fs/xfs/scrub/dir.c
345
ent = hdr.ents + blk->index;
fs/xfs/scrub/dir_repair.c
517
struct xfs_dir2_sf_hdr *hdr;
fs/xfs/scrub/dir_repair.c
526
hdr = ifp->if_data;
fs/xfs/scrub/dir_repair.c
529
ino = xfs_dir2_sf_get_parent_ino(hdr);
fs/xfs/scrub/dir_repair.c
532
sfep = xfs_dir2_sf_firstentry(hdr);
fs/xfs/scrub/dir_repair.c
537
next = xfs_dir2_sf_nextentry(rd->sc->mp, hdr, sfep);
fs/xfs/scrub/dir_repair.c
542
error = xrep_dir_salvage_sf_entry(rd, hdr, sfep);
fs/xfs/scrub/dir_repair.c
608
struct xfs_dir2_data_hdr *hdr;
fs/xfs/scrub/dir_repair.c
622
hdr = bp->b_addr;
fs/xfs/scrub/dir_repair.c
623
oldmagic = hdr->magic;
fs/xfs/scrub/dir_repair.c
626
be32_to_cpu(hdr->magic), be32_to_cpu(magic_guess));
fs/xfs/scrub/dir_repair.c
633
hdr->magic = magic_guess;
fs/xfs/scrub/dir_repair.c
642
switch (hdr->magic) {
fs/xfs/scrub/dir_repair.c
665
hdr->magic = oldmagic;
fs/xfs/scrub/listxattr.c
159
magic = be16_to_cpu(node->hdr.info.magic);
fs/xfs/scrub/listxattr.c
33
struct xfs_attr_sf_hdr *hdr = ip->i_af.if_data;
fs/xfs/scrub/listxattr.c
38
sfe = xfs_attr_sf_firstentry(hdr);
fs/xfs/scrub/listxattr.c
39
for (i = 0; i < hdr->count; i++) {
fs/xfs/scrub/rtbitmap_repair.c
382
struct xfs_rtbuf_blkinfo *hdr = bp->b_addr;
fs/xfs/scrub/rtbitmap_repair.c
384
hdr->rt_magic = cpu_to_be32(XFS_RTBITMAP_MAGIC);
fs/xfs/scrub/rtbitmap_repair.c
385
hdr->rt_owner = cpu_to_be64(sc->ip->i_ino);
fs/xfs/scrub/rtbitmap_repair.c
386
hdr->rt_blkno = cpu_to_be64(xfs_buf_daddr(bp));
fs/xfs/scrub/rtbitmap_repair.c
387
hdr->rt_lsn = 0;
fs/xfs/scrub/rtbitmap_repair.c
388
uuid_copy(&hdr->rt_uuid, &sc->mp->m_sb.sb_meta_uuid);
fs/xfs/scrub/rtsummary_repair.c
91
struct xfs_rtbuf_blkinfo *hdr = bp->b_addr;
fs/xfs/scrub/rtsummary_repair.c
93
hdr->rt_magic = cpu_to_be32(XFS_RTSUMMARY_MAGIC);
fs/xfs/scrub/rtsummary_repair.c
94
hdr->rt_owner = cpu_to_be64(sc->ip->i_ino);
fs/xfs/scrub/rtsummary_repair.c
95
hdr->rt_blkno = cpu_to_be64(xfs_buf_daddr(bp));
fs/xfs/scrub/rtsummary_repair.c
96
hdr->rt_lsn = 0;
fs/xfs/scrub/rtsummary_repair.c
97
uuid_copy(&hdr->rt_uuid, &sc->mp->m_sb.sb_meta_uuid);
fs/xfs/xfs_attr_list.c
240
magic = be16_to_cpu(node->hdr.info.magic);
fs/xfs/xfs_attr_list.c
347
switch (be16_to_cpu(node->hdr.info.magic)) {
fs/xfs/xfs_buf_item_recover.c
852
struct xfs_rtbuf_blkinfo *hdr = blk;
fs/xfs/xfs_buf_item_recover.c
854
lsn = be64_to_cpu(hdr->rt_lsn);
fs/xfs/xfs_buf_item_recover.c
855
uuid = &hdr->rt_uuid;
fs/xfs/xfs_ioctl.c
176
const struct xfs_bulk_ireq *hdr,
fs/xfs/xfs_ioctl.c
180
if (hdr->icount == 0 ||
fs/xfs/xfs_ioctl.c
181
(hdr->flags & ~XFS_BULK_IREQ_FLAGS_ALL) ||
fs/xfs/xfs_ioctl.c
182
memchr_inv(hdr->reserved, 0, sizeof(hdr->reserved)))
fs/xfs/xfs_ioctl.c
185
breq->startino = hdr->ino;
fs/xfs/xfs_ioctl.c
187
breq->icount = hdr->icount;
fs/xfs/xfs_ioctl.c
196
if (hdr->flags & XFS_BULK_IREQ_SPECIAL) {
fs/xfs/xfs_ioctl.c
197
if (hdr->flags & XFS_BULK_IREQ_AGNO)
fs/xfs/xfs_ioctl.c
200
switch (hdr->ino) {
fs/xfs/xfs_ioctl.c
215
if (hdr->flags & XFS_BULK_IREQ_AGNO) {
fs/xfs/xfs_ioctl.c
216
if (hdr->agno >= mp->m_sb.sb_agcount)
fs/xfs/xfs_ioctl.c
220
breq->startino = XFS_AGINO_TO_INO(mp, hdr->agno, 0);
fs/xfs/xfs_ioctl.c
221
else if (XFS_INO_TO_AGNO(mp, breq->startino) < hdr->agno)
fs/xfs/xfs_ioctl.c
227
if (XFS_INO_TO_AGNO(mp, breq->startino) > hdr->agno)
fs/xfs/xfs_ioctl.c
229
} else if (hdr->agno)
fs/xfs/xfs_ioctl.c
236
if (hdr->flags & XFS_BULK_IREQ_NREXT64)
fs/xfs/xfs_ioctl.c
240
if (hdr->flags & XFS_BULK_IREQ_METADIR)
fs/xfs/xfs_ioctl.c
252
struct xfs_bulk_ireq *hdr,
fs/xfs/xfs_ioctl.c
255
hdr->ino = breq->startino;
fs/xfs/xfs_ioctl.c
256
hdr->ocount = breq->ocount;
fs/xfs/xfs_ioctl.c
267
struct xfs_bulk_ireq hdr;
fs/xfs/xfs_ioctl.c
280
if (copy_from_user(&hdr, &arg->hdr, sizeof(hdr)))
fs/xfs/xfs_ioctl.c
283
error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->bulkstat);
fs/xfs/xfs_ioctl.c
294
xfs_bulk_ireq_teardown(&hdr, &breq);
fs/xfs/xfs_ioctl.c
295
if (copy_to_user(&arg->hdr, &hdr, sizeof(hdr)))
fs/xfs/xfs_ioctl.c
318
struct xfs_bulk_ireq hdr;
fs/xfs/xfs_ioctl.c
330
if (copy_from_user(&hdr, &arg->hdr, sizeof(hdr)))
fs/xfs/xfs_ioctl.c
333
if (hdr.flags & XFS_BULK_IREQ_METADIR)
fs/xfs/xfs_ioctl.c
336
error = xfs_bulk_ireq_setup(mp, &hdr, &breq, arg->inumbers);
fs/xfs/xfs_ioctl.c
347
xfs_bulk_ireq_teardown(&hdr, &breq);
fs/xfs/xfs_ioctl.c
348
if (copy_to_user(&arg->hdr, &hdr, sizeof(hdr)))
fs/xfs/xfs_log_cil.c
1234
struct xlog_cil_trans_hdr *hdr,
fs/xfs/xfs_log_cil.c
1241
memset(hdr, 0, sizeof(*hdr));
fs/xfs/xfs_log_cil.c
1244
hdr->oph[0].oh_tid = tid;
fs/xfs/xfs_log_cil.c
1245
hdr->oph[0].oh_clientid = XFS_TRANSACTION;
fs/xfs/xfs_log_cil.c
1246
hdr->oph[0].oh_flags = XLOG_START_TRANS;
fs/xfs/xfs_log_cil.c
1249
hdr->lhdr[0].i_addr = &hdr->oph[0];
fs/xfs/xfs_log_cil.c
1250
hdr->lhdr[0].i_len = sizeof(struct xlog_op_header);
fs/xfs/xfs_log_cil.c
1251
hdr->lhdr[0].i_type = XLOG_REG_TYPE_LRHEADER;
fs/xfs/xfs_log_cil.c
1254
hdr->oph[1].oh_tid = tid;
fs/xfs/xfs_log_cil.c
1255
hdr->oph[1].oh_clientid = XFS_TRANSACTION;
fs/xfs/xfs_log_cil.c
1256
hdr->oph[1].oh_len = cpu_to_be32(sizeof(struct xfs_trans_header));
fs/xfs/xfs_log_cil.c
1259
hdr->thdr.th_magic = XFS_TRANS_HEADER_MAGIC;
fs/xfs/xfs_log_cil.c
1260
hdr->thdr.th_type = XFS_TRANS_CHECKPOINT;
fs/xfs/xfs_log_cil.c
1261
hdr->thdr.th_tid = tic->t_tid;
fs/xfs/xfs_log_cil.c
1262
hdr->thdr.th_num_items = num_iovecs;
fs/xfs/xfs_log_cil.c
1265
hdr->lhdr[1].i_addr = &hdr->oph[1];
fs/xfs/xfs_log_cil.c
1266
hdr->lhdr[1].i_len = sizeof(struct xlog_op_header) +
fs/xfs/xfs_log_cil.c
1268
hdr->lhdr[1].i_type = XLOG_REG_TYPE_TRANSHDR;
fs/xfs/xfs_log_cil.c
1271
lvhdr->lv_iovecp = &hdr->lhdr[0];
fs/xfs/xfs_log_cil.c
1272
lvhdr->lv_bytes = hdr->lhdr[0].i_len + hdr->lhdr[1].i_len;
include/cxl/event.h
104
struct cxl_event_record_hdr hdr;
include/cxl/event.h
118
struct cxl_event_record_hdr hdr;
include/cxl/event.h
192
} __packed hdr;
include/cxl/event.h
28
struct cxl_event_record_hdr hdr;
include/cxl/event.h
44
struct cxl_event_record_hdr hdr;
include/drm/bridge/mhl.h
325
struct mhl3_burst_header hdr;
include/drm/bridge/mhl.h
334
struct mhl3_burst_header hdr;
include/drm/bridge/mhl.h
340
struct mhl3_burst_header hdr;
include/linux/avf/virtchnl.h
1207
#define VIRTCHNL_ADD_PROTO_HDR_FIELD(hdr, field) \
include/linux/avf/virtchnl.h
1208
((hdr)->field_selector |= BIT((field) & PROTO_HDR_FIELD_MASK))
include/linux/avf/virtchnl.h
1209
#define VIRTCHNL_DEL_PROTO_HDR_FIELD(hdr, field) \
include/linux/avf/virtchnl.h
1210
((hdr)->field_selector &= ~BIT((field) & PROTO_HDR_FIELD_MASK))
include/linux/avf/virtchnl.h
1211
#define VIRTCHNL_TEST_PROTO_HDR_FIELD(hdr, val) \
include/linux/avf/virtchnl.h
1212
((hdr)->field_selector & BIT((val) & PROTO_HDR_FIELD_MASK))
include/linux/avf/virtchnl.h
1213
#define VIRTCHNL_GET_PROTO_HDR_FIELD(hdr) ((hdr)->field_selector)
include/linux/avf/virtchnl.h
1215
#define VIRTCHNL_ADD_PROTO_HDR_FIELD_BIT(hdr, hdr_type, field) \
include/linux/avf/virtchnl.h
1216
(VIRTCHNL_ADD_PROTO_HDR_FIELD(hdr, \
include/linux/avf/virtchnl.h
1218
#define VIRTCHNL_DEL_PROTO_HDR_FIELD_BIT(hdr, hdr_type, field) \
include/linux/avf/virtchnl.h
1219
(VIRTCHNL_DEL_PROTO_HDR_FIELD(hdr, \
include/linux/avf/virtchnl.h
1222
#define VIRTCHNL_SET_PROTO_HDR_TYPE(hdr, hdr_type) \
include/linux/avf/virtchnl.h
1223
((hdr)->type = VIRTCHNL_PROTO_HDR_ ## hdr_type)
include/linux/avf/virtchnl.h
1224
#define VIRTCHNL_GET_PROTO_HDR_TYPE(hdr) \
include/linux/avf/virtchnl.h
1225
(((hdr)->type) >> PROTO_HDR_SHIFT)
include/linux/avf/virtchnl.h
1226
#define VIRTCHNL_TEST_PROTO_HDR_TYPE(hdr, val) \
include/linux/avf/virtchnl.h
1227
((hdr)->type == ((s32)((val) >> PROTO_HDR_SHIFT)))
include/linux/avf/virtchnl.h
1228
#define VIRTCHNL_TEST_PROTO_HDR(hdr, val) \
include/linux/avf/virtchnl.h
1229
(VIRTCHNL_TEST_PROTO_HDR_TYPE((hdr), (val)) && \
include/linux/avf/virtchnl.h
1230
VIRTCHNL_TEST_PROTO_HDR_FIELD((hdr), (val)))
include/linux/bpf-cgroup.h
187
return array != &bpf_empty_prog_array.hdr;
include/linux/bpf.h
2373
struct bpf_prog_array hdr;
include/linux/bsg.h
11
typedef int (bsg_sg_io_fn)(struct request_queue *, struct sg_io_v4 *hdr,
include/linux/cdrom.h
172
struct cdrom_mechstat_header hdr;
include/linux/cdx/mcdi.h
73
const struct cdx_dword *hdr, size_t hdr_len,
include/linux/ceph/messenger.h
267
struct ceph_msg_header hdr; /* header */
include/linux/ceph/messenger.h
51
struct ceph_msg_header *hdr,
include/linux/ceph/messenger.h
552
struct ceph_msg_header *hdr, int *skip);
include/linux/cfi.h
73
void module_cfi_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
include/linux/cfi.h
76
static inline void module_cfi_finalize(const Elf_Ehdr *hdr,
include/linux/dma/ti-cppi5.h
141
struct cppi5_desc_hdr_t hdr;
include/linux/dma/ti-cppi5.h
344
desc->hdr.pkt_info0 = (CPPI5_INFO0_DESC_TYPE_VAL_HOST <<
include/linux/dma/ti-cppi5.h
346
desc->hdr.pkt_info0 |= ((psdata_size >> 2) <<
include/linux/dma/ti-cppi5.h
362
desc->hdr.pkt_info0 &= ~(CPPI5_INFO0_HDESC_EPIB_PRESENT |
include/linux/dma/ti-cppi5.h
364
desc->hdr.pkt_info0 |= flags;
include/linux/dma/ti-cppi5.h
375
desc->hdr.pkt_info0 &= ~CPPI5_INFO0_HDESC_PSINFO_SIZE_MASK;
include/linux/dma/ti-cppi5.h
376
desc->hdr.pkt_info0 |= ((psdata_size >> 2) <<
include/linux/dma/ti-cppi5.h
389
if (!(desc->hdr.pkt_info0 & CPPI5_INFO0_HDESC_PSINFO_LOCATION))
include/linux/dma/ti-cppi5.h
390
psdata_size = (desc->hdr.pkt_info0 &
include/linux/dma/ti-cppi5.h
405
return (desc->hdr.pkt_info0 & CPPI5_INFO0_HDESC_PKTLEN_MASK);
include/linux/dma/ti-cppi5.h
415
desc->hdr.pkt_info0 &= ~CPPI5_INFO0_HDESC_PKTLEN_MASK;
include/linux/dma/ti-cppi5.h
416
desc->hdr.pkt_info0 |= (pkt_len & CPPI5_INFO0_HDESC_PKTLEN_MASK);
include/linux/dma/ti-cppi5.h
427
return (desc->hdr.pkt_info1 & CPPI5_INFO1_HDESC_PSFLGS_MASK) >>
include/linux/dma/ti-cppi5.h
438
desc->hdr.pkt_info1 &= ~CPPI5_INFO1_HDESC_PSFLGS_MASK;
include/linux/dma/ti-cppi5.h
439
desc->hdr.pkt_info1 |= (ps_flags <<
include/linux/dma/ti-cppi5.h
44
struct cppi5_desc_hdr_t hdr;
include/linux/dma/ti-cppi5.h
450
return (desc->hdr.pkt_info2 & CPPI5_INFO2_HDESC_PKTTYPE_MASK) >>
include/linux/dma/ti-cppi5.h
462
desc->hdr.pkt_info2 &= ~CPPI5_INFO2_HDESC_PKTTYPE_MASK;
include/linux/dma/ti-cppi5.h
463
desc->hdr.pkt_info2 |=
include/linux/dma/ti-cppi5.h
522
desc->hdr = (struct cppi5_desc_hdr_t) { 0 };
include/linux/dma/ti-cppi5.h
549
if (desc->hdr.pkt_info0 & CPPI5_INFO0_HDESC_PSINFO_LOCATION)
include/linux/dma/ti-cppi5.h
552
psdata_size = (desc->hdr.pkt_info0 &
include/linux/dma/ti-cppi5.h
561
if (cppi5_hdesc_epib_present(&desc->hdr))
include/linux/dma/ti-cppi5.h
579
if (!(desc->hdr.pkt_info0 & CPPI5_INFO0_HDESC_PSINFO_LOCATION))
include/linux/dma/ti-cppi5.h
580
psdata_size = (desc->hdr.pkt_info0 &
include/linux/dma/ti-cppi5.h
586
if (cppi5_hdesc_epib_present(&desc->hdr))
include/linux/dmar.h
124
static inline int dmar_res_noop(struct acpi_dmar_header *hdr, void *arg)
include/linux/dmar.h
143
extern int dmar_check_one_atsr(struct acpi_dmar_header *hdr, void *arg);
include/linux/dmar.h
144
extern int dmar_parse_one_satc(struct acpi_dmar_header *hdr, void *arg);
include/linux/dmar.h
145
extern int dmar_release_one_atsr(struct acpi_dmar_header *hdr, void *arg);
include/linux/dmar.h
40
struct acpi_dmar_header *hdr; /* ACPI header */
include/linux/dsa/ocelot.h
299
struct vlan_ethhdr *hdr;
include/linux/dsa/ocelot.h
308
hdr = (struct vlan_ethhdr *)skb_mac_header(skb);
include/linux/dsa/ocelot.h
311
if (ntohs(hdr->h_vlan_proto) == proto) {
include/linux/dsa/tag_qca.h
67
__be16 hdr; /* qca hdr */
include/linux/dsa/tag_qca.h
77
__be16 hdr; /* qca hdr */
include/linux/efi.h
190
struct win_cert hdr;
include/linux/efi.h
267
efi_table_hdr_t hdr;
include/linux/efi.h
320
efi_table_hdr_t hdr;
include/linux/efi.h
482
efi_table_hdr_t hdr;
include/linux/efi.h
500
efi_table_hdr_t hdr;
include/linux/efi.h
520
efi_table_hdr_t hdr;
include/linux/elf-fdpic.h
29
struct elfhdr hdr; /* ref copy of ELF header */
include/linux/filter.h
1089
bpf_jit_binary_lock_ro(struct bpf_binary_header *hdr)
include/linux/filter.h
1091
set_vm_flush_reset_perms(hdr);
include/linux/filter.h
1092
return set_memory_rox((unsigned long)hdr, hdr->size >> PAGE_SHIFT);
include/linux/filter.h
1276
void bpf_jit_binary_free(struct bpf_binary_header *hdr);
include/linux/firmware/cirrus/wmfw.h
147
} hdr;
include/linux/firmware/thead/thead,th1520-aon.h
82
struct th1520_aon_rpc_msg_hdr hdr;
include/linux/fsl/mc.h
261
struct mc_cmd_header *hdr = (struct mc_cmd_header *)&header;
include/linux/fsl/mc.h
263
hdr->cmd_id = cpu_to_le16(cmd_id);
include/linux/fsl/mc.h
264
hdr->token = cpu_to_le16(token);
include/linux/fsl/mc.h
265
hdr->status = MC_CMD_STATUS_READY;
include/linux/fsl/mc.h
267
hdr->flags_hw = MC_CMD_FLAG_PRI;
include/linux/fsl/mc.h
269
hdr->flags_sw = MC_CMD_FLAG_INTR_DIS;
include/linux/fsl/mc.h
276
struct mc_cmd_header *hdr = (struct mc_cmd_header *)&cmd->header;
include/linux/fsl/mc.h
277
u16 token = le16_to_cpu(hdr->token);
include/linux/habanalabs/cpucp_if.h
331
struct hl_hbm_sei_header hdr;
include/linux/habanalabs/cpucp_if.h
376
struct hl_eq_header hdr;
include/linux/hyperv.h
1113
void vmbus_onmessage(struct vmbus_channel_message_header *hdr);
include/linux/ieee80211.h
2304
static inline u8 *ieee80211_get_qos_ctl(struct ieee80211_hdr *hdr)
include/linux/ieee80211.h
2311
qos = (void *)hdr;
include/linux/ieee80211.h
2323
static inline u8 ieee80211_get_tid(struct ieee80211_hdr *hdr)
include/linux/ieee80211.h
2325
u8 *qc = ieee80211_get_qos_ctl(hdr);
include/linux/ieee80211.h
2341
static inline u8 *ieee80211_get_SA(struct ieee80211_hdr *hdr)
include/linux/ieee80211.h
2343
if (ieee80211_has_a4(hdr->frame_control))
include/linux/ieee80211.h
2344
return hdr->addr4;
include/linux/ieee80211.h
2345
if (ieee80211_has_fromds(hdr->frame_control))
include/linux/ieee80211.h
2346
return hdr->addr3;
include/linux/ieee80211.h
2347
return hdr->addr2;
include/linux/ieee80211.h
2361
static inline u8 *ieee80211_get_DA(struct ieee80211_hdr *hdr)
include/linux/ieee80211.h
2363
if (ieee80211_has_tods(hdr->frame_control))
include/linux/ieee80211.h
2364
return hdr->addr3;
include/linux/ieee80211.h
2366
return hdr->addr1;
include/linux/ieee80211.h
2413
static inline bool _ieee80211_is_robust_mgmt_frame(struct ieee80211_hdr *hdr)
include/linux/ieee80211.h
2415
if (ieee80211_is_disassoc(hdr->frame_control) ||
include/linux/ieee80211.h
2416
ieee80211_is_deauth(hdr->frame_control))
include/linux/ieee80211.h
2419
if (ieee80211_is_action(hdr->frame_control)) {
include/linux/ieee80211.h
2429
if (ieee80211_has_protected(hdr->frame_control))
include/linux/ieee80211.h
2431
category = ((u8 *) hdr) + 24;
include/linux/ieee80211.h
2463
static inline bool ieee80211_is_public_action(struct ieee80211_hdr *hdr,
include/linux/ieee80211.h
2466
struct ieee80211_mgmt *mgmt = (void *)hdr;
include/linux/ieee80211.h
2470
if (!ieee80211_is_action(hdr->frame_control))
include/linux/ieee80211.h
2511
static inline bool _ieee80211_is_group_privacy_action(struct ieee80211_hdr *hdr)
include/linux/ieee80211.h
2513
struct ieee80211_mgmt *mgmt = (void *)hdr;
include/linux/ieee80211.h
2515
if (!ieee80211_is_action(hdr->frame_control) ||
include/linux/ieee80211.h
2516
!is_multicast_ether_addr(hdr->addr1))
include/linux/ieee80211.h
794
static inline bool ieee80211_is_frag(struct ieee80211_hdr *hdr)
include/linux/ieee80211.h
796
return ieee80211_has_morefrags(hdr->frame_control) ||
include/linux/ieee80211.h
797
hdr->seq_ctrl & cpu_to_le16(IEEE80211_SCTL_FRAG);
include/linux/ieee80211.h
800
static inline u16 ieee80211_get_sn(struct ieee80211_hdr *hdr)
include/linux/ieee80211.h
802
return le16_get_bits(hdr->seq_ctrl, IEEE80211_SCTL_SEQ);
include/linux/kho/abi/kexec_handover.h
145
struct kho_vmalloc_hdr hdr;
include/linux/mlx5/mlx5_ifc.h
12574
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc.h
12579
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc.h
13098
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc.h
13575
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc.h
13580
struct mlx5_ifc_general_obj_out_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc.h
6914
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc.h
6942
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc_vdpa.h
200
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc_vdpa.h
205
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc_vdpa.h
210
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc_vdpa.h
214
struct mlx5_ifc_general_obj_out_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc_vdpa.h
218
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/mlx5/mlx5_ifc_vdpa.h
222
struct mlx5_ifc_general_obj_in_cmd_hdr_bits hdr;
include/linux/module.h
390
Elf_Ehdr hdr;
include/linux/module.h
905
static inline void module_bug_finalize(const Elf_Ehdr *hdr,
include/linux/moduleloader.h
107
int module_finalize(const Elf_Ehdr *hdr,
include/linux/moduleloader.h
17
bool module_elf_check_arch(Elf_Ehdr *hdr);
include/linux/moduleloader.h
20
int module_frob_arch_sections(Elf_Ehdr *hdr,
include/linux/nfs_xdr.h
1657
void (*release) (struct nfs_pgio_header *hdr);
include/linux/nfs_xdr.h
1734
void (*init_hdr)(struct nfs_pgio_header *hdr);
include/linux/nfs_xdr.h
1735
void (*completion)(struct nfs_pgio_header *hdr);
include/linux/nfs_xdr.h
1736
void (*reschedule_io)(struct nfs_pgio_header *hdr);
include/linux/nvme-fc.h
364
struct fcnvme_ls_acc_hdr hdr;
include/linux/nvme-fc.h
379
struct fcnvme_ls_acc_hdr hdr;
include/linux/nvme-fc.h
392
struct fcnvme_ls_acc_hdr hdr;
include/linux/nvme-fc.h
405
struct fcnvme_ls_acc_hdr hdr;
include/linux/nvme-tcp.h
108
struct nvme_tcp_hdr hdr;
include/linux/nvme-tcp.h
124
struct nvme_tcp_hdr hdr;
include/linux/nvme-tcp.h
138
struct nvme_tcp_hdr hdr;
include/linux/nvme-tcp.h
150
struct nvme_tcp_hdr hdr;
include/linux/nvme-tcp.h
164
struct nvme_tcp_hdr hdr;
include/linux/nvme-tcp.h
182
struct nvme_tcp_hdr hdr;
include/linux/nvme-tcp.h
90
struct nvme_tcp_hdr hdr;
include/linux/pci-epc.h
287
struct pci_epf_header *hdr);
include/linux/pci-epc.h
91
struct pci_epf_header *hdr);
include/linux/platform_data/cros_ec_commands.h
4546
struct ec_sb_fw_update_header hdr;
include/linux/posix_acl.h
31
struct_group_tagged(posix_acl_hdr, hdr,
include/linux/ptp_classify.h
121
static inline u8 ptp_get_msgtype(const struct ptp_header *hdr,
include/linux/ptp_classify.h
128
msgtype = hdr->control;
include/linux/ptp_classify.h
130
msgtype = hdr->tsmt & 0x0f;
include/linux/ptp_classify.h
168
struct ptp_header *hdr, s64 correction)
include/linux/ptp_classify.h
174
memcpy(&correction_old, &hdr->correction, sizeof(correction_old));
include/linux/ptp_classify.h
177
put_unaligned_be64((u64)correction, &hdr->correction);
include/linux/ptp_classify.h
183
uhdr = (struct udphdr *)((char *)hdr - sizeof(struct udphdr));
include/linux/ptp_classify.h
191
hdr->correction,
include/linux/ptp_classify.h
224
static inline u8 ptp_get_msgtype(const struct ptp_header *hdr,
include/linux/ptp_classify.h
239
struct ptp_header *hdr, s64 correction)
include/linux/resctrl.h
146
static inline bool domain_header_is_valid(struct rdt_domain_hdr *hdr,
include/linux/resctrl.h
150
return !WARN_ON_ONCE(hdr->type != type || hdr->rid != rid);
include/linux/resctrl.h
163
struct rdt_domain_hdr hdr;
include/linux/resctrl.h
197
struct rdt_domain_hdr hdr;
include/linux/resctrl.h
513
int resctrl_online_mon_domain(struct rdt_resource *r, struct rdt_domain_hdr *hdr);
include/linux/resctrl.h
515
void resctrl_offline_mon_domain(struct rdt_resource *r, struct rdt_domain_hdr *hdr);
include/linux/resctrl.h
553
int resctrl_arch_rmid_read(struct rdt_resource *r, struct rdt_domain_hdr *hdr,
include/linux/soc/qcom/apr.h
69
struct apr_hdr hdr;
include/linux/soc/qcom/apr.h
74
struct apr_hdr hdr;
include/linux/soc/qcom/apr.h
93
struct gpr_hdr hdr;
include/linux/soc/qcom/apr.h
98
struct gpr_hdr hdr;
include/linux/usb/cdc.h
43
int cdc_parse_cdc_header(struct usb_cdc_parsed_header *hdr,
include/linux/usb/typec_altmode.h
100
const u32 hdr, const u32 *vdo, int cnt);
include/linux/usb/typec_altmode.h
73
int (*vdm)(struct typec_altmode *altmode, const u32 hdr,
include/linux/vfio.h
367
int vfio_set_irqs_validate_and_prepare(struct vfio_irq_set *hdr,
include/linux/virtio_net.h
124
virtio_net_hdr_set_proto(skb, hdr);
include/linux/virtio_net.h
158
u16 gso_size = __virtio16_to_cpu(little_endian, hdr->gso_size);
include/linux/virtio_net.h
168
if (!(hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM))
include/linux/virtio_net.h
204
const struct virtio_net_hdr *hdr,
include/linux/virtio_net.h
207
return __virtio_net_hdr_to_skb(skb, hdr, little_endian, hdr->gso_type);
include/linux/virtio_net.h
212
struct virtio_net_hdr *hdr,
include/linux/virtio_net.h
219
if (hdr->gso_type == VIRTIO_NET_HDR_GSO_UDP_L4)
include/linux/virtio_net.h
224
hdr->hdr_len = __cpu_to_virtio16(little_endian, hdr_len);
include/linux/virtio_net.h
229
struct virtio_net_hdr *hdr)
include/linux/virtio_net.h
235
if (hdr->gso_type == VIRTIO_NET_HDR_GSO_UDP_L4)
include/linux/virtio_net.h
240
hdr->hdr_len = __cpu_to_virtio16(true, hdr_len);
include/linux/virtio_net.h
244
struct virtio_net_hdr *hdr,
include/linux/virtio_net.h
249
memset(hdr, 0, sizeof(*hdr)); /* no info leak */
include/linux/virtio_net.h
255
hdr->hdr_len = __cpu_to_virtio16(little_endian,
include/linux/virtio_net.h
257
hdr->gso_size = __cpu_to_virtio16(little_endian,
include/linux/virtio_net.h
260
hdr->gso_type = VIRTIO_NET_HDR_GSO_TCPV4;
include/linux/virtio_net.h
262
hdr->gso_type = VIRTIO_NET_HDR_GSO_TCPV6;
include/linux/virtio_net.h
264
hdr->gso_type = VIRTIO_NET_HDR_GSO_UDP_L4;
include/linux/virtio_net.h
268
hdr->gso_type |= VIRTIO_NET_HDR_GSO_ECN;
include/linux/virtio_net.h
270
hdr->gso_type = VIRTIO_NET_HDR_GSO_NONE;
include/linux/virtio_net.h
273
hdr->flags = VIRTIO_NET_HDR_F_NEEDS_CSUM;
include/linux/virtio_net.h
274
hdr->csum_start = __cpu_to_virtio16(little_endian,
include/linux/virtio_net.h
276
hdr->csum_offset = __cpu_to_virtio16(little_endian,
include/linux/virtio_net.h
280
hdr->flags = VIRTIO_NET_HDR_F_DATA_VALID;
include/linux/virtio_net.h
29
const struct virtio_net_hdr *hdr)
include/linux/virtio_net.h
298
const struct virtio_net_hdr *hdr = (const struct virtio_net_hdr *)vhdr;
include/linux/virtio_net.h
305
gso_tunnel_type = hdr->gso_type & VIRTIO_NET_HDR_GSO_UDP_TUNNEL;
include/linux/virtio_net.h
307
return virtio_net_hdr_to_skb(skb, hdr, little_endian);
include/linux/virtio_net.h
318
gso_inner_type = hdr->gso_type & ~(VIRTIO_NET_HDR_GSO_ECN |
include/linux/virtio_net.h
324
if (!(hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM))
include/linux/virtio_net.h
333
inner_th = __virtio16_to_cpu(little_endian, hdr->csum_start);
include/linux/virtio_net.h
34
switch (hdr->gso_type & ~VIRTIO_NET_HDR_GSO_ECN) {
include/linux/virtio_net.h
342
ret = __virtio_net_hdr_to_skb(skb, hdr, true,
include/linux/virtio_net.h
343
hdr->gso_type & ~gso_tunnel_type);
include/linux/virtio_net.h
363
if (hdr->flags & VIRTIO_NET_HDR_F_UDP_TUNNEL_CSUM) {
include/linux/virtio_net.h
382
struct virtio_net_hdr *hdr,
include/linux/virtio_net.h
385
if (!(hdr->gso_type & VIRTIO_NET_HDR_GSO_UDP_TUNNEL)) {
include/linux/virtio_net.h
386
if (!(hdr->flags & VIRTIO_NET_HDR_F_DATA_VALID))
include/linux/virtio_net.h
390
if (!(hdr->flags & VIRTIO_NET_HDR_F_UDP_TUNNEL_CSUM))
include/linux/virtio_net.h
405
if (hdr->flags & VIRTIO_NET_HDR_F_DATA_VALID)
include/linux/virtio_net.h
424
struct virtio_net_hdr *hdr = (struct virtio_net_hdr *)vhdr;
include/linux/virtio_net.h
432
ret = virtio_net_hdr_from_skb(skb, hdr, little_endian,
include/linux/virtio_net.h
437
if (feature_hdrlen && hdr->hdr_len)
include/linux/virtio_net.h
438
__virtio_net_set_hdrlen(skb, hdr, little_endian);
include/linux/virtio_net.h
454
ret = virtio_net_hdr_from_skb(skb, hdr, true, false, vlan_hlen);
include/linux/virtio_net.h
459
if (feature_hdrlen && hdr->hdr_len)
include/linux/virtio_net.h
460
__virtio_net_set_tnl_hdrlen(skb, hdr);
include/linux/virtio_net.h
463
hdr->gso_type |= VIRTIO_NET_HDR_GSO_UDP_TUNNEL_IPV6;
include/linux/virtio_net.h
465
hdr->gso_type |= VIRTIO_NET_HDR_GSO_UDP_TUNNEL_IPV4;
include/linux/virtio_net.h
468
hdr->flags |= VIRTIO_NET_HDR_F_UDP_TUNNEL_CSUM;
include/linux/virtio_net.h
51
const struct virtio_net_hdr *hdr,
include/linux/virtio_net.h
90
if (hdr->gso_size == 0)
include/linux/virtio_net.h
96
if (hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) {
include/linux/virtio_net.h
97
u32 start = __virtio16_to_cpu(little_endian, hdr->csum_start);
include/linux/virtio_net.h
98
u32 off = __virtio16_to_cpu(little_endian, hdr->csum_offset);
include/linux/vmw_vmci_defs.h
601
struct vmci_datagram hdr;
include/linux/vmw_vmci_defs.h
634
struct vmci_datagram hdr;
include/linux/vmw_vmci_defs.h
647
struct vmci_datagram hdr;
include/linux/vmw_vmci_defs.h
658
struct vmci_datagram hdr;
include/linux/vmw_vmci_defs.h
667
struct vmci_datagram hdr;
include/linux/vmw_vmci_defs.h
717
struct vmci_datagram hdr;
include/linux/vmw_vmci_defs.h
742
struct vmci_datagram hdr;
include/linux/vmw_vmci_defs.h
754
struct vmci_datagram hdr;
include/net/addrconf.h
284
struct icmp6hdr *hdr;
include/net/addrconf.h
290
hdr = (struct icmp6hdr *)(skb_network_header(skb) + offset);
include/net/addrconf.h
292
switch (hdr->icmp6_type) {
include/net/bluetooth/l2cap.h
467
__struct_group(l2cap_ecred_conn_req_hdr, hdr, __packed,
include/net/bluetooth/l2cap.h
478
struct_group_tagged(l2cap_ecred_conn_rsp_hdr, hdr,
include/net/bond_3ad.h
131
struct ethhdr hdr;
include/net/bond_3ad.h
152
struct ethhdr hdr;
include/net/cfg80211.h
7306
bool ieee80211_get_8023_tunnel_proto(const void *hdr, __be16 *proto);
include/net/devlink.h
333
void *hdr;
include/net/genetlink.h
316
struct genlmsghdr *hdr = (void *) &info->user_ptr[0];
include/net/genetlink.h
320
info->genlhdr = hdr;
include/net/genetlink.h
321
hdr->cmd = cmd;
include/net/genetlink.h
454
static inline void genlmsg_end(struct sk_buff *skb, void *hdr)
include/net/genetlink.h
456
nlmsg_end(skb, hdr - GENL_HDRLEN - NLMSG_HDRLEN);
include/net/genetlink.h
464
static inline void genlmsg_cancel(struct sk_buff *skb, void *hdr)
include/net/genetlink.h
466
if (hdr)
include/net/genetlink.h
467
nlmsg_cancel(skb, hdr - GENL_HDRLEN - NLMSG_HDRLEN);
include/net/ieee80211_radiotap.h
27
__struct_group(ieee80211_radiotap_header_fixed, hdr, __packed,
include/net/ieee80211_radiotap.h
612
const struct ieee80211_radiotap_header *hdr = (const void *)data;
include/net/ieee80211_radiotap.h
614
return get_unaligned_le16(&hdr->it_len);
include/net/ieee802154_netdev.h
231
int ieee802154_hdr_push(struct sk_buff *skb, struct ieee802154_hdr *hdr);
include/net/ieee802154_netdev.h
236
int ieee802154_hdr_pull(struct sk_buff *skb, struct ieee802154_hdr *hdr);
include/net/ieee802154_netdev.h
243
struct ieee802154_hdr *hdr);
include/net/ieee802154_netdev.h
249
int ieee802154_hdr_peek(const struct sk_buff *skb, struct ieee802154_hdr *hdr);
include/net/ieee802154_netdev.h
259
int ieee802154_max_payload(const struct ieee802154_hdr *hdr);
include/net/ieee802154_netdev.h
283
struct ieee802154_hdr hdr;
include/net/ieee802154_netdev.h
284
int len = ieee802154_hdr_pull(skb, &hdr);
include/net/ioam6.h
37
__be32 hdr;
include/net/ipv6.h
958
static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass,
include/net/ipv6.h
961
*(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel;
include/net/ipv6.h
964
static inline __be32 ip6_flowinfo(const struct ipv6hdr *hdr)
include/net/ipv6.h
966
return *(__be32 *)hdr & IPV6_FLOWINFO_MASK;
include/net/ipv6.h
969
static inline __be32 ip6_flowlabel(const struct ipv6hdr *hdr)
include/net/ipv6.h
971
return *(__be32 *)hdr & IPV6_FLOWLABEL_MASK;
include/net/lwtunnel.h
135
int bpf_lwt_push_ip_encap(struct sk_buff *skb, void *hdr, u32 len,
include/net/mac80211.h
6003
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
include/net/mac80211.h
6004
const u8 *data = (u8 *)hdr + ieee80211_hdrlen(hdr->frame_control);
include/net/mac80211.h
7819
struct ieee80211_hdr *hdr = (void *) skb->data;
include/net/mac80211.h
7822
ieee80211_is_data(hdr->frame_control);
include/net/mana/gdma.h
166
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
175
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
180
static inline void mana_gd_init_req_hdr(struct gdma_req_hdr *hdr, u32 code,
include/net/mana/gdma.h
183
hdr->req.hdr_type = GDMA_STANDARD_HEADER_TYPE;
include/net/mana/gdma.h
184
hdr->req.msg_type = code;
include/net/mana/gdma.h
185
hdr->req.msg_version = GDMA_MESSAGE_V1;
include/net/mana/gdma.h
186
hdr->req.msg_size = req_size;
include/net/mana/gdma.h
188
hdr->resp.hdr_type = GDMA_STANDARD_HEADER_TYPE;
include/net/mana/gdma.h
189
hdr->resp.msg_type = code;
include/net/mana/gdma.h
190
hdr->resp.msg_version = GDMA_MESSAGE_V1;
include/net/mana/gdma.h
191
hdr->resp.msg_size = resp_size;
include/net/mana/gdma.h
571
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
640
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
668
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
678
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
694
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
702
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
709
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
717
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
722
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
730
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
750
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
756
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
764
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
770
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
785
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
808
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
814
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
826
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
837
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
843
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
850
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
855
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
898
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
928
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
935
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
940
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
944
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
951
struct gdma_resp_hdr hdr;
include/net/mana/gdma.h
956
struct gdma_req_hdr hdr;
include/net/mana/gdma.h
961
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
635
struct gdma_req_hdr hdr;
include/net/mana/mana.h
640
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
650
struct gdma_req_hdr hdr;
include/net/mana/mana.h
657
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
664
struct gdma_req_hdr hdr;
include/net/mana/mana.h
680
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
700
struct gdma_req_hdr hdr;
include/net/mana/mana.h
705
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
717
struct gdma_req_hdr hdr;
include/net/mana/mana.h
724
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
732
struct gdma_req_hdr hdr;
include/net/mana/mana.h
745
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
753
struct gdma_req_hdr hdr;
include/net/mana/mana.h
760
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
765
struct gdma_req_hdr hdr;
include/net/mana/mana.h
770
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
775
struct gdma_req_hdr hdr;
include/net/mana/mana.h
780
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
818
struct gdma_req_hdr hdr;
include/net/mana/mana.h
823
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
886
struct gdma_req_hdr hdr;
include/net/mana/mana.h
904
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
909
struct gdma_req_hdr hdr;
include/net/mana/mana.h
920
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
926
struct gdma_req_hdr hdr;
include/net/mana/mana.h
931
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
936
struct gdma_req_hdr hdr;
include/net/mana/mana.h
950
struct gdma_resp_hdr hdr;
include/net/mana/mana.h
956
struct gdma_req_hdr hdr;
include/net/mana/mana.h
961
struct gdma_resp_hdr hdr;
include/net/netns/ipv6.h
17
struct ctl_table_header *hdr;
include/net/nfc/nci.h
170
#define nci_mt(hdr) (((hdr)[0]>>5)&0x07)
include/net/nfc/nci.h
171
#define nci_mt_set(hdr, mt) ((hdr)[0] |= (__u8)(((mt)&0x07)<<5))
include/net/nfc/nci.h
177
#define nci_pbf(hdr) (__u8)(((hdr)[0]>>4)&0x01)
include/net/nfc/nci.h
178
#define nci_pbf_set(hdr, pbf) ((hdr)[0] |= (__u8)(((pbf)&0x01)<<4))
include/net/nfc/nci.h
183
#define nci_opcode(hdr) nci_opcode_pack(hdr[0], hdr[1])
include/net/nfc/nci.h
188
#define nci_plen(hdr) (__u8)((hdr)[2])
include/net/nfc/nci.h
191
#define nci_conn_id(hdr) (__u8)(((hdr)[0])&0x0f)
include/net/pkt_cls.h
454
struct tcf_ematch_tree_hdr hdr;
include/net/pkt_cls.h
511
if (tree->hdr.nmatches)
include/net/seg6_hmac.h
43
struct ipv6_sr_hdr *hdr, struct in6_addr *saddr,
include/net/tipc.h
47
static inline __be32 tipc_hdr_rps_key(struct tipc_basic_hdr *hdr)
include/net/tipc.h
49
u32 w0 = ntohl(hdr->w[0]);
include/net/tipc.h
55
return hdr->w[3];
include/net/tso.h
26
void tso_build_hdr(const struct sk_buff *skb, char *hdr, struct tso_t *tso,
include/rdma/ib_hdrs.h
173
static inline u8 ib_get_lnh(struct ib_header *hdr)
include/rdma/ib_hdrs.h
175
return (be16_to_cpu(hdr->lrh[0]) & IB_LNH_MASK);
include/rdma/ib_hdrs.h
178
static inline u8 ib_get_sc(struct ib_header *hdr)
include/rdma/ib_hdrs.h
180
return ((be16_to_cpu(hdr->lrh[0]) >> IB_SC_SHIFT) & IB_SC_MASK);
include/rdma/ib_hdrs.h
188
static inline u8 ib_get_sl(struct ib_header *hdr)
include/rdma/ib_hdrs.h
190
return ((be16_to_cpu(hdr->lrh[0]) >> IB_SL_SHIFT) & IB_SL_MASK);
include/rdma/ib_hdrs.h
193
static inline u16 ib_get_dlid(struct ib_header *hdr)
include/rdma/ib_hdrs.h
195
return (be16_to_cpu(hdr->lrh[1]));
include/rdma/ib_hdrs.h
198
static inline u16 ib_get_slid(struct ib_header *hdr)
include/rdma/ib_hdrs.h
200
return (be16_to_cpu(hdr->lrh[3]));
include/rdma/ib_hdrs.h
203
static inline u8 ib_get_lver(struct ib_header *hdr)
include/rdma/ib_hdrs.h
205
return (u8)((be16_to_cpu(hdr->lrh[0]) >> IB_LVER_SHIFT) &
include/rdma/ib_mad.h
485
int ib_response_mad(const struct ib_mad_hdr *hdr);
include/rdma/ib_verbs.h
3701
int ib_get_gids_from_rdma_hdr(const union rdma_network_hdr *hdr,
include/rdma/ib_verbs.h
3709
int ib_get_rdma_header_version(const union rdma_network_hdr *hdr);
include/rdma/ibta_vol1_c12.h
34
struct ib_mad_hdr hdr; \
include/rdma/uverbs_ioctl.h
632
struct_group_tagged(uverbs_attr_bundle_hdr, hdr,
include/scsi/iscsi_proto.h
301
#define ISCSI_TM_FUNC_VALUE(hdr) ((hdr)->flags & ISCSI_FLAG_TM_FUNC_MASK)
include/scsi/libiscsi.h
105
struct iscsi_hdr *hdr;
include/scsi/libiscsi.h
145
return (void*)task->hdr + task->hdr_len;
include/scsi/libiscsi.h
472
struct iscsi_data *hdr);
include/scsi/libiscsi_tcp.h
109
extern void iscsi_tcp_dgst_header(const void *hdr, size_t hdrlen,
include/scsi/libiscsi_tcp.h
45
struct iscsi_hdr *hdr;
include/scsi/scsi_common.h
26
scsi_varlen_cdb_length(const void *hdr)
include/scsi/scsi_common.h
28
return ((struct scsi_varlen_cdb_hdr *)hdr)->additional_cdb_length + 8;
include/scsi/scsi_ioctl.h
50
int get_sg_io_hdr(struct sg_io_hdr *hdr, const void __user *argp);
include/scsi/scsi_ioctl.h
51
int put_sg_io_hdr(const struct sg_io_hdr *hdr, void __user *argp);
include/scsi/scsi_transport_iscsi.h
105
int (*send_pdu) (struct iscsi_cls_conn *conn, struct iscsi_hdr *hdr,
include/scsi/scsi_transport_iscsi.h
174
extern int iscsi_recv_pdu(struct iscsi_cls_conn *conn, struct iscsi_hdr *hdr,
include/sound/emux_synth.h
45
struct snd_util_memhdr *hdr,
include/sound/emux_synth.h
48
struct snd_util_memhdr *hdr);
include/sound/soc-topology.h
172
static inline const void *snd_soc_tplg_get_data(struct snd_soc_tplg_hdr *hdr)
include/sound/soc-topology.h
174
const void *ptr = hdr;
include/sound/soc-topology.h
176
return ptr + sizeof(*hdr);
include/sound/sof/channel_map.h
55
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/dai-amd.h
16
struct sof_ipc_hdr hdr;
include/sound/sof/dai-amd.h
31
struct sof_ipc_hdr hdr;
include/sound/sof/dai-imx.h
15
struct sof_ipc_hdr hdr;
include/sound/sof/dai-imx.h
36
struct sof_ipc_hdr hdr;
include/sound/sof/dai-intel.h
103
struct sof_ipc_hdr hdr;
include/sound/sof/dai-intel.h
132
struct sof_ipc_hdr hdr;
include/sound/sof/dai-intel.h
177
struct sof_ipc_hdr hdr;
include/sound/sof/dai-intel.h
63
struct sof_ipc_hdr hdr;
include/sound/sof/dai-intel.h
95
struct sof_ipc_hdr hdr;
include/sound/sof/dai-mediatek.h
14
struct sof_ipc_hdr hdr;
include/sound/sof/dai.h
97
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/ext_manifest.h
100
struct sof_ext_man_elem_header hdr;
include/sound/sof/ext_manifest.h
119
struct sof_ext_man_elem_header hdr;
include/sound/sof/ext_manifest.h
79
struct sof_ext_man_elem_header hdr;
include/sound/sof/ext_manifest.h
87
struct sof_ext_man_elem_header hdr;
include/sound/sof/ext_manifest.h
94
struct sof_ext_man_elem_header hdr;
include/sound/sof/header.h
164
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/header.h
178
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/info.h
45
struct sof_ipc_hdr hdr;
include/sound/sof/info.h
63
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/info.h
91
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/info.h
96
struct sof_ipc_hdr hdr;
include/sound/sof/pm.h
20
struct sof_ipc_hdr hdr;
include/sound/sof/pm.h
31
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/pm.h
44
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/pm.h
49
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/stream.h
114
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/stream.h
67
struct sof_ipc_hdr hdr;
include/sound/sof/stream.h
75
struct sof_ipc_hdr hdr;
include/sound/sof/stream.h
98
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/topology.h
106
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/topology.h
251
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/topology.h
273
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/topology.h
288
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/topology.h
293
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/topology.h
299
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/topology.h
55
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/trace.h
101
struct sof_ipc_hdr hdr;
include/sound/sof/trace.h
24
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/trace.h
31
struct sof_ipc_cmd_hdr hdr;
include/sound/sof/trace.h
67
struct sof_ipc_cmd_hdr hdr; /**< IPC command header */
include/sound/soundfont.h
60
struct snd_util_memhdr *hdr,
include/sound/soundfont.h
63
struct snd_util_memhdr *hdr);
include/sound/soundfont.h
98
struct snd_util_memhdr *hdr);
include/sound/util_mem.h
39
void snd_util_memhdr_free(struct snd_util_memhdr *hdr);
include/sound/util_mem.h
40
struct snd_util_memblk *snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size);
include/sound/util_mem.h
41
int snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk);
include/sound/util_mem.h
42
int snd_util_mem_avail(struct snd_util_memhdr *hdr);
include/sound/util_mem.h
45
struct snd_util_memblk *__snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size);
include/sound/util_mem.h
46
void __snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk);
include/sound/util_mem.h
47
struct snd_util_memblk *__snd_util_memblk_new(struct snd_util_memhdr *hdr,
include/sound/wavefront.h
496
wavefront_any hdr; /* kernel-space copy of hdr bytes */
include/trace/events/rpcrdma.h
1286
DEFINE_REPLY_EVENT(hdr);
include/trace/events/rxrpc.h
1145
__entry->serial = sp->hdr.serial;
include/trace/events/rxrpc.h
1146
__entry->user_status = sp->hdr.userStatus;
include/trace/events/rxrpc.h
1202
__entry->serial = rxrpc_skb(skb)->hdr.serial;
include/trace/events/rxrpc.h
1767
__field_struct(struct rxrpc_host_header, hdr)
include/trace/events/rxrpc.h
1771
memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
include/trace/events/rxrpc.h
1775
__entry->hdr.epoch, __entry->hdr.cid,
include/trace/events/rxrpc.h
1776
__entry->hdr.callNumber, __entry->hdr.serviceId,
include/trace/events/rxrpc.h
1777
__entry->hdr.serial, __entry->hdr.seq,
include/trace/events/rxrpc.h
1778
__entry->hdr.type, __entry->hdr.flags,
include/trace/events/rxrpc.h
1779
__entry->hdr.type <= 15 ?
include/trace/events/rxrpc.h
1780
__print_symbolic(__entry->hdr.type, rxrpc_pkts) : "?UNK")
include/trace/events/rxrpc.h
880
__field_struct(struct rxrpc_host_header, hdr)
include/trace/events/rxrpc.h
884
memcpy(&__entry->hdr, &sp->hdr, sizeof(__entry->hdr));
include/trace/events/rxrpc.h
888
__entry->hdr.epoch, __entry->hdr.cid,
include/trace/events/rxrpc.h
889
__entry->hdr.callNumber, __entry->hdr.serviceId,
include/trace/events/rxrpc.h
890
__entry->hdr.serial, __entry->hdr.seq,
include/trace/events/rxrpc.h
891
__entry->hdr.securityIndex, __entry->hdr.flags,
include/trace/events/rxrpc.h
892
__print_symbolic(__entry->hdr.type, rxrpc_pkts))
include/uapi/cxl/features.h
100
__struct_group(cxl_mbox_get_sup_feats_out_hdr, hdr, /* no attrs */,
include/uapi/cxl/features.h
154
__struct_group(cxl_mbox_set_feat_hdr, hdr, /* no attrs */,
include/uapi/drm/qaic_accel.h
101
struct qaic_manage_trans_hdr hdr;
include/uapi/drm/qaic_accel.h
116
struct qaic_manage_trans_hdr hdr;
include/uapi/drm/qaic_accel.h
129
struct qaic_manage_trans_hdr hdr;
include/uapi/drm/qaic_accel.h
139
struct qaic_manage_trans_hdr hdr;
include/uapi/drm/qaic_accel.h
151
struct qaic_manage_trans_hdr hdr;
include/uapi/drm/qaic_accel.h
261
struct qaic_attach_slice_hdr hdr;
include/uapi/drm/qaic_accel.h
305
struct qaic_execute_hdr hdr;
include/uapi/drm/qaic_accel.h
341
struct qaic_perf_stats_hdr hdr;
include/uapi/drm/qaic_accel.h
71
struct qaic_manage_trans_hdr hdr;
include/uapi/drm/qaic_accel.h
85
struct qaic_manage_trans_hdr hdr;
include/uapi/fwctl/cxl.h
25
__struct_group(fwctl_rpc_cxl_hdr, hdr, /* no attrs */,
include/uapi/fwctl/cxl.h
46
__struct_group(fwctl_rpc_cxl_out_hdr, hdr, /* no attrs */,
include/uapi/linux/android/binder.h
100
struct binder_object_header hdr;
include/uapi/linux/android/binder.h
130
struct binder_object_header hdr;
include/uapi/linux/android/binder.h
164
struct binder_object_header hdr;
include/uapi/linux/android/binder.h
78
struct binder_object_header hdr;
include/uapi/linux/atm_tcp.h
36
struct atmtcp_hdr hdr; /* must be first */
include/uapi/linux/auto_fs.h
177
struct autofs_packet_hdr hdr;
include/uapi/linux/auto_fs.h
184
struct autofs_packet_hdr hdr;
include/uapi/linux/auto_fs.h
192
struct autofs_packet_hdr hdr;
include/uapi/linux/auto_fs.h
210
struct autofs_packet_hdr hdr;
include/uapi/linux/auto_fs.h
51
struct autofs_packet_hdr hdr;
include/uapi/linux/auto_fs.h
59
struct autofs_packet_hdr hdr;
include/uapi/linux/bpf.h
105
struct bpf_lpm_trie_key_hdr hdr;
include/uapi/linux/dns_resolver.h
85
struct dns_payload_header hdr;
include/uapi/linux/fanotify.h
177
struct fanotify_event_info_header hdr;
include/uapi/linux/fanotify.h
191
struct fanotify_event_info_header hdr;
include/uapi/linux/fanotify.h
196
struct fanotify_event_info_header hdr;
include/uapi/linux/fanotify.h
202
struct fanotify_event_info_header hdr;
include/uapi/linux/fanotify.h
209
struct fanotify_event_info_header hdr;
include/uapi/linux/fanotify.h
239
struct fanotify_response_info_header hdr;
include/uapi/linux/hyperv.h
141
struct hv_fcopy_hdr hdr;
include/uapi/linux/hyperv.h
154
struct hv_fcopy_hdr hdr;
include/uapi/linux/if_fddi.h
118
} hdr;
include/uapi/linux/if_packet.h
249
union tpacket_bd_header_u hdr;
include/uapi/linux/pkt_cls.h
250
__struct_group(tc_u32_sel_hdr, hdr, /* no attrs */,
include/uapi/linux/target_core_user.h
112
struct tcmu_cmd_entry_hdr hdr;
include/uapi/linux/target_core_user.h
136
struct tcmu_cmd_entry_hdr hdr;
include/uapi/linux/tcp.h
68
struct tcphdr hdr;
include/uapi/linux/um_timetravel.h
286
char hdr[4096]; /* align to 4K page size */
include/uapi/linux/v4l2-controls.h
1921
#define V4L2_VP8_FRAME_IS_KEY_FRAME(hdr) \
include/uapi/linux/v4l2-controls.h
1922
(!!((hdr)->flags & V4L2_VP8_FRAME_FLAG_KEY_FRAME))
include/uapi/linux/vboxguest.h
111
struct vbg_ioctl_hdr hdr;
include/uapi/linux/vboxguest.h
129
struct vbg_ioctl_hdr hdr;
include/uapi/linux/vboxguest.h
145
struct vbg_ioctl_hdr hdr;
include/uapi/linux/vboxguest.h
188
struct vbg_ioctl_hdr hdr;
include/uapi/linux/vboxguest.h
207
struct vbg_ioctl_hdr hdr;
include/uapi/linux/vboxguest.h
243
struct vbg_ioctl_hdr hdr;
include/uapi/linux/vboxguest.h
263
struct vbg_ioctl_hdr hdr;
include/uapi/linux/vboxguest.h
287
struct vbg_ioctl_hdr hdr;
include/uapi/linux/vboxguest.h
312
struct vbg_ioctl_hdr hdr;
include/uapi/linux/vboxguest.h
342
struct vbg_ioctl_hdr hdr;
include/uapi/linux/vboxguest.h
66
struct vbg_ioctl_hdr hdr;
include/uapi/linux/virtio_gpu.h
157
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
176
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
183
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
192
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
200
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
208
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
223
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
230
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
238
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
255
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
267
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
285
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
293
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
298
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
305
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
319
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
326
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
335
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
342
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
348
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
355
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
386
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
393
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
399
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
421
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
435
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
448
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_gpu.h
455
struct virtio_gpu_ctrl_hdr hdr;
include/uapi/linux/virtio_net.h
195
struct virtio_net_hdr_v1 hdr;
include/uapi/linux/virtio_net.h
237
struct virtio_net_hdr hdr;
include/uapi/linux/virtio_net.h
509
struct virtio_net_stats_reply_hdr hdr;
include/uapi/linux/virtio_net.h
516
struct virtio_net_stats_reply_hdr hdr;
include/uapi/linux/virtio_net.h
530
struct virtio_net_stats_reply_hdr hdr;
include/uapi/linux/virtio_net.h
544
struct virtio_net_stats_reply_hdr hdr;
include/uapi/linux/virtio_net.h
553
struct virtio_net_stats_reply_hdr hdr;
include/uapi/linux/virtio_net.h
560
struct virtio_net_stats_reply_hdr hdr;
include/uapi/linux/virtio_net.h
569
struct virtio_net_stats_reply_hdr hdr;
include/uapi/linux/virtio_net.h
580
struct virtio_net_stats_reply_hdr hdr;
include/uapi/linux/virtio_net.h
590
struct virtio_net_stats_reply_hdr hdr;
include/uapi/linux/virtio_pci.h
347
struct virtio_admin_cmd_resource_obj_cmd_hdr hdr;
include/uapi/linux/virtio_pci.h
367
struct virtio_admin_cmd_resource_obj_cmd_hdr hdr;
include/uapi/linux/virtio_pci.h
392
struct virtio_dev_part_hdr hdr;
include/uapi/linux/virtio_pci.h
418
struct virtio_admin_cmd_resource_obj_cmd_hdr hdr;
include/uapi/linux/virtio_pci.h
425
struct virtio_admin_cmd_resource_obj_cmd_hdr hdr;
include/uapi/linux/virtio_snd.h
103
struct virtio_snd_hdr hdr;
include/uapi/linux/virtio_snd.h
111
struct virtio_snd_hdr hdr;
include/uapi/linux/virtio_snd.h
131
struct virtio_snd_hdr hdr;
include/uapi/linux/virtio_snd.h
143
struct virtio_snd_info hdr;
include/uapi/linux/virtio_snd.h
159
struct virtio_snd_jack_hdr hdr;
include/uapi/linux/virtio_snd.h
171
struct virtio_snd_hdr hdr;
include/uapi/linux/virtio_snd.h
236
struct virtio_snd_info hdr;
include/uapi/linux/virtio_snd.h
256
struct virtio_snd_pcm_hdr hdr;
include/uapi/linux/virtio_snd.h
296
struct virtio_snd_hdr hdr;
include/uapi/linux/virtio_snd.h
347
struct virtio_snd_info hdr;
include/uapi/linux/virtio_snd.h
361
struct virtio_snd_hdr hdr;
include/uapi/linux/virtio_snd.h
397
struct virtio_snd_info hdr;
include/uapi/linux/virtio_snd.h
481
struct virtio_snd_hdr hdr;
include/uapi/rdma/ib_user_mad.h
145
struct ib_user_mad_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
1012
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
1025
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
1038
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
1049
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
1062
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
1079
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
1097
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
1124
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
1147
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
949
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
971
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/rdma/ib_user_verbs.h
989
struct ib_uverbs_flow_spec_hdr hdr;
include/uapi/scsi/scsi_netlink.h
101
(hdr)->version = SCSI_NL_VERSION; \
include/uapi/scsi/scsi_netlink.h
102
(hdr)->transport = t; \
include/uapi/scsi/scsi_netlink.h
103
(hdr)->magic = SCSI_NL_MAGIC; \
include/uapi/scsi/scsi_netlink.h
104
(hdr)->msgtype = mtype; \
include/uapi/scsi/scsi_netlink.h
105
(hdr)->msglen = mlen; \
include/uapi/scsi/scsi_netlink.h
99
#define INIT_SCSI_NL_HDR(hdr, t, mtype, mlen) \
include/uapi/sound/asoc.h
393
struct snd_soc_tplg_ctl_hdr hdr;
include/uapi/sound/asoc.h
415
struct snd_soc_tplg_ctl_hdr hdr;
include/uapi/sound/asoc.h
438
struct snd_soc_tplg_ctl_hdr hdr;
include/xen/interface/grant_table.h
190
struct grant_entry_header hdr;
include/xen/interface/grant_table.h
202
struct grant_entry_header hdr;
include/xen/interface/grant_table.h
213
struct grant_entry_header hdr;
include/xen/interface/grant_table.h
229
struct grant_entry_header hdr;
init/main.c
274
u8 *hdr;
init/main.c
293
hdr = (u8 *)(data - 8);
init/main.c
294
size = get_unaligned_le32(hdr);
init/main.c
295
csum = get_unaligned_le32(hdr + 4);
init/main.c
297
data = ((void *)hdr) - size;
io_uring/net.c
1001
hdr.msg.namelen = kmsg->msg.msg_namelen;
io_uring/net.c
1006
if (copy_to_user(io->buf, &hdr, copy_len)) {
io_uring/net.c
168
struct io_async_msghdr *hdr = req->async_data;
io_uring/net.c
172
io_netmsg_iovec_free(hdr);
io_uring/net.c
177
io_alloc_cache_vec_kasan(&hdr->vec);
io_uring/net.c
178
if (hdr->vec.nr > IO_VEC_CACHE_SOFT_CAP)
io_uring/net.c
179
io_vec_free(&hdr->vec);
io_uring/net.c
181
if (io_alloc_cache_put(&req->ctx->netmsg_cache, hdr))
io_uring/net.c
188
struct io_async_msghdr *hdr;
io_uring/net.c
190
hdr = io_uring_alloc_async_data(&ctx->netmsg_cache, req);
io_uring/net.c
191
if (!hdr)
io_uring/net.c
195
if (hdr->vec.iovec)
io_uring/net.c
197
return hdr;
io_uring/net.c
716
int hdr;
io_uring/net.c
721
namelen, &hdr))
io_uring/net.c
723
if (check_add_overflow(hdr, controllen, &hdr))
io_uring/net.c
936
unsigned long hdr;
io_uring/net.c
938
hdr = sizeof(struct io_uring_recvmsg_out) + kmsg->namelen +
io_uring/net.c
940
if (*len < hdr)
io_uring/net.c
944
unsigned long control = ubuf + hdr - kmsg->controllen;
io_uring/net.c
951
*buf = (void __user *) (ubuf + hdr);
io_uring/net.c
952
kmsg->payloadlen = *len = *len - hdr;
io_uring/net.c
967
struct io_recvmsg_multishot_hdr hdr;
io_uring/net.c
970
kmsg->msg.msg_name = &hdr.addr;
io_uring/net.c
982
hdr.msg = (struct io_uring_recvmsg_out) {
io_uring/net.c
987
hdr.msg.payloadlen = err;
io_uring/query.c
101
if (copy_struct_to_user(udata, usize, data, hdr.size, NULL))
io_uring/query.c
103
if (copy_to_user(uhdr, &hdr, sizeof(hdr)))
io_uring/query.c
105
*next_entry = hdr.next_entry;
io_uring/query.c
59
struct io_uring_query_hdr hdr;
io_uring/query.c
64
if (copy_from_user(&hdr, uhdr, sizeof(hdr)))
io_uring/query.c
66
usize = hdr.size;
io_uring/query.c
67
hdr.size = min(hdr.size, IO_MAX_QUERY_SIZE);
io_uring/query.c
68
udata = u64_to_user_ptr(hdr.query_data);
io_uring/query.c
70
if (hdr.query_op >= __IO_URING_QUERY_MAX) {
io_uring/query.c
74
if (!mem_is_zero(hdr.__resv, sizeof(hdr.__resv)) || hdr.result || !hdr.size)
io_uring/query.c
76
if (copy_from_user(data, udata, hdr.size))
io_uring/query.c
79
switch (hdr.query_op) {
io_uring/query.c
98
hdr.result = ret;
io_uring/query.c
99
hdr.size = min_t(size_t, usize, res_size);
kernel/auditsc.c
2827
switch (friar->hdr.type) {
kernel/auditsc.c
2836
response, friar->hdr.type, friar->rule_number,
kernel/bpf/btf.c
1694
const struct btf_header *hdr;
kernel/bpf/btf.c
1701
hdr = &btf->hdr;
kernel/bpf/btf.c
1702
__btf_verifier_log(log, "magic: 0x%x\n", hdr->magic);
kernel/bpf/btf.c
1703
__btf_verifier_log(log, "version: %u\n", hdr->version);
kernel/bpf/btf.c
1704
__btf_verifier_log(log, "flags: 0x%x\n", hdr->flags);
kernel/bpf/btf.c
1705
__btf_verifier_log(log, "hdr_len: %u\n", hdr->hdr_len);
kernel/bpf/btf.c
1706
__btf_verifier_log(log, "type_off: %u\n", hdr->type_off);
kernel/bpf/btf.c
1707
__btf_verifier_log(log, "type_len: %u\n", hdr->type_len);
kernel/bpf/btf.c
1708
__btf_verifier_log(log, "str_off: %u\n", hdr->str_off);
kernel/bpf/btf.c
1709
__btf_verifier_log(log, "str_len: %u\n", hdr->str_len);
kernel/bpf/btf.c
1910
return &btf->hdr;
kernel/bpf/btf.c
1917
btf->start_str_off = base_btf->hdr.str_len;
kernel/bpf/btf.c
261
struct btf_header hdr;
kernel/bpf/btf.c
5364
struct btf_header *hdr;
kernel/bpf/btf.c
5367
hdr = &btf->hdr;
kernel/bpf/btf.c
5368
cur = btf->nohdr_data + hdr->type_off;
kernel/bpf/btf.c
5369
end = cur + hdr->type_len;
kernel/bpf/btf.c
5498
const struct btf_header *hdr = &env->btf->hdr;
kernel/bpf/btf.c
5502
if (hdr->type_off & (sizeof(u32) - 1)) {
kernel/bpf/btf.c
5507
if (!env->btf->base_btf && !hdr->type_len) {
kernel/bpf/btf.c
5521
const struct btf_header *hdr;
kernel/bpf/btf.c
5525
hdr = &btf->hdr;
kernel/bpf/btf.c
5526
start = btf->nohdr_data + hdr->str_off;
kernel/bpf/btf.c
5527
end = start + hdr->str_len;
kernel/bpf/btf.c
5536
if (btf->base_btf && !hdr->str_len)
kernel/bpf/btf.c
5538
if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_NAME_OFFSET || end[-1]) {
kernel/bpf/btf.c
5568
const struct btf_header *hdr;
kernel/bpf/btf.c
5572
hdr = &btf->hdr;
kernel/bpf/btf.c
5576
secs[i] = *(struct btf_sec_info *)((void *)hdr +
kernel/bpf/btf.c
5584
expected_total = btf_data_size - hdr->hdr_len;
kernel/bpf/btf.c
5619
const struct btf_header *hdr;
kernel/bpf/btf.c
5630
hdr = btf->data;
kernel/bpf/btf.c
5631
hdr_len = hdr->hdr_len;
kernel/bpf/btf.c
5638
if (hdr_len > sizeof(btf->hdr)) {
kernel/bpf/btf.c
5639
u8 *expected_zero = btf->data + sizeof(btf->hdr);
kernel/bpf/btf.c
5650
hdr_copy = min_t(u32, hdr_len, sizeof(btf->hdr));
kernel/bpf/btf.c
5651
memcpy(&btf->hdr, btf->data, hdr_copy);
kernel/bpf/btf.c
5653
hdr = &btf->hdr;
kernel/bpf/btf.c
5657
if (hdr->magic != BTF_MAGIC) {
kernel/bpf/btf.c
5662
if (hdr->version != BTF_VERSION) {
kernel/bpf/btf.c
5667
if (hdr->flags) {
kernel/bpf/btf.c
5672
if (!btf->base_btf && btf_data_size == hdr->hdr_len) {
kernel/bpf/btf.c
5935
btf->nohdr_data = btf->data + btf->hdr.hdr_len;
kernel/bpf/btf.c
6343
btf->nohdr_data = btf->data + btf->hdr.hdr_len;
kernel/bpf/btf.c
6453
btf->start_str_off = base_btf->hdr.str_len;
kernel/bpf/btf.c
6469
btf->nohdr_data = btf->data + btf->hdr.hdr_len;
kernel/bpf/btf.c
876
return offset < btf->hdr.str_len;
kernel/bpf/btf.c
895
if (offset < btf->hdr.str_len)
kernel/bpf/core.c
1079
struct bpf_binary_header *hdr;
kernel/bpf/core.c
1089
size = round_up(proglen + sizeof(*hdr) + 128, PAGE_SIZE);
kernel/bpf/core.c
1093
hdr = bpf_jit_alloc_exec(size);
kernel/bpf/core.c
1094
if (!hdr) {
kernel/bpf/core.c
1100
bpf_fill_ill_insns(hdr, size);
kernel/bpf/core.c
1102
hdr->size = size;
kernel/bpf/core.c
1103
hole = min_t(unsigned int, size - (proglen + sizeof(*hdr)),
kernel/bpf/core.c
1104
PAGE_SIZE - sizeof(*hdr));
kernel/bpf/core.c
1108
*image_ptr = &hdr->image[start];
kernel/bpf/core.c
1110
return hdr;
kernel/bpf/core.c
1113
void bpf_jit_binary_free(struct bpf_binary_header *hdr)
kernel/bpf/core.c
1115
u32 size = hdr->size;
kernel/bpf/core.c
1117
bpf_jit_free_exec(hdr);
kernel/bpf/core.c
1238
struct bpf_binary_header *hdr = bpf_jit_binary_hdr(fp);
kernel/bpf/core.c
1240
bpf_jit_binary_free(hdr);
kernel/bpf/core.c
2628
p = &bpf_empty_prog_array.hdr;
kernel/bpf/core.c
2635
if (!progs || progs == &bpf_empty_prog_array.hdr)
kernel/bpf/core.c
2656
if (!progs || progs == &bpf_empty_prog_array.hdr)
kernel/bpf/preload/iterators/iterators.bpf.c
37
struct btf_header hdr;
kernel/bpf/preload/iterators/iterators.bpf.c
71
if (name_off >= btf->hdr.str_len)
kernel/bpf/ringbuf.c
414
struct bpf_ringbuf_hdr *hdr)
kernel/bpf/ringbuf.c
416
return ((void *)hdr - (void *)rb) >> PAGE_SHIFT;
kernel/bpf/ringbuf.c
423
bpf_ringbuf_restore_from_rec(struct bpf_ringbuf_hdr *hdr)
kernel/bpf/ringbuf.c
425
unsigned long addr = (unsigned long)(void *)hdr;
kernel/bpf/ringbuf.c
426
unsigned long off = (unsigned long)hdr->pg_off << PAGE_SHIFT;
kernel/bpf/ringbuf.c
466
struct bpf_ringbuf_hdr *hdr;
kernel/bpf/ringbuf.c
486
hdr = (void *)rb->data + (pend_pos & rb->mask);
kernel/bpf/ringbuf.c
487
hdr_len = READ_ONCE(hdr->len);
kernel/bpf/ringbuf.c
507
hdr = (void *)rb->data + (over_pos & rb->mask);
kernel/bpf/ringbuf.c
508
hdr_len = READ_ONCE(hdr->len);
kernel/bpf/ringbuf.c
527
hdr = (void *)rb->data + (prod_pos & rb->mask);
kernel/bpf/ringbuf.c
528
pg_off = bpf_ringbuf_rec_pg_off(rb, hdr);
kernel/bpf/ringbuf.c
529
hdr->len = size | BPF_RINGBUF_BUSY_BIT;
kernel/bpf/ringbuf.c
530
hdr->pg_off = pg_off;
kernel/bpf/ringbuf.c
537
return (void *)hdr + BPF_RINGBUF_HDR_SZ;
kernel/bpf/ringbuf.c
562
struct bpf_ringbuf_hdr *hdr;
kernel/bpf/ringbuf.c
566
hdr = sample - BPF_RINGBUF_HDR_SZ;
kernel/bpf/ringbuf.c
567
rb = bpf_ringbuf_restore_from_rec(hdr);
kernel/bpf/ringbuf.c
568
new_len = hdr->len ^ BPF_RINGBUF_BUSY_BIT;
kernel/bpf/ringbuf.c
573
xchg(&hdr->len, new_len);
kernel/bpf/ringbuf.c
578
rec_pos = (void *)hdr - (void *)rb->data;
kernel/bpf/ringbuf.c
751
u32 hdr_len, sample_len, total_len, flags, *hdr;
kernel/bpf/ringbuf.c
764
hdr = (u32 *)((uintptr_t)rb->data + (uintptr_t)(cons_pos & rb->mask));
kernel/bpf/ringbuf.c
766
hdr_len = smp_load_acquire(hdr);
kernel/cfi.c
65
void module_cfi_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
kernel/cfi.c
74
secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
kernel/cfi.c
76
for (i = 1; i < hdr->e_shnum; i++) {
kernel/livepatch/core.c
1364
for (int i = 1; i < info->hdr.e_shnum; i++) {
kernel/livepatch/core.c
836
for (i = 1; i < info->hdr.e_shnum; i++) {
kernel/liveupdate/kexec_handover.c
1061
chunk = KHOSER_LOAD_PTR(chunk->hdr.next);
kernel/liveupdate/kexec_handover.c
1123
chunk = KHOSER_LOAD_PTR(chunk->hdr.next);
kernel/liveupdate/kexec_handover.c
354
struct khoser_mem_chunk_hdr hdr;
kernel/liveupdate/kexec_handover.c
372
chunk->hdr.order = order;
kernel/liveupdate/kexec_handover.c
374
KHOSER_STORE_PTR(cur_chunk->hdr.next, chunk);
kernel/liveupdate/kexec_handover.c
385
chunk = KHOSER_LOAD_PTR(chunk->hdr.next);
kernel/liveupdate/kexec_handover.c
435
if (chunk->hdr.num_elms == ARRAY_SIZE(chunk->bitmaps)) {
kernel/liveupdate/kexec_handover.c
443
elm = &chunk->bitmaps[chunk->hdr.num_elms];
kernel/liveupdate/kexec_handover.c
444
chunk->hdr.num_elms++;
kernel/liveupdate/kexec_handover.c
501
for (i = 0; i != chunk->hdr.num_elms; i++)
kernel/liveupdate/kexec_handover.c
502
deserialize_bitmap(chunk->hdr.order,
kernel/liveupdate/kexec_handover.c
504
chunk = KHOSER_LOAD_PTR(chunk->hdr.next);
kernel/liveupdate/kexec_handover.c
955
KHOSER_STORE_PTR(cur->hdr.next, chunk);
kernel/module/decompress.c
317
info->hdr = vmap(info->pages, info->used_pages, VM_MAP, PAGE_KERNEL);
kernel/module/decompress.c
318
if (!info->hdr) {
kernel/module/decompress.c
335
if (info->hdr)
kernel/module/decompress.c
336
vunmap(info->hdr);
kernel/module/internal.h
335
int module_enforce_rwx_sections(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
kernel/module/internal.h
338
void module_mark_ro_after_init(const Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
kernel/module/internal.h
68
Elf_Ehdr *hdr;
kernel/module/kallsyms.c
128
src = (void *)info->hdr + symsect->sh_offset;
kernel/module/kallsyms.c
134
is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum,
kernel/module/kallsyms.c
202
is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum,
kernel/module/kallsyms.c
230
for (i = 0; i < info->hdr->e_shnum; i++) {
kernel/module/livepatch.c
29
size = sizeof(mod->klp_info->hdr);
kernel/module/livepatch.c
30
memcpy(&mod->klp_info->hdr, info->hdr, size);
kernel/module/livepatch.c
33
size = sizeof(*info->sechdrs) * info->hdr->e_shnum;
kernel/module/livepatch.c
41
size = info->sechdrs[info->hdr->e_shstrndx].sh_size;
kernel/module/main.c
1121
char *modinfo = (char *)info->hdr + infosec->sh_offset;
kernel/module/main.c
1562
ignore_undef_symbol(info->hdr->e_machine, name)))
kernel/module/main.c
1571
if (sym[i].st_shndx >= info->hdr->e_shnum) {
kernel/module/main.c
1573
mod->name, name, sym[i].st_shndx, info->hdr->e_shnum - 1);
kernel/module/main.c
1597
for (i = 1; i < info->hdr->e_shnum; i++) {
kernel/module/main.c
1601
if (infosec >= info->hdr->e_shnum)
kernel/module/main.c
1696
for (i = 0; i < info->hdr->e_shnum; ++i) {
kernel/module/main.c
1739
for (i = 0; i < info->hdr->e_shnum; i++)
kernel/module/main.c
1847
if (info->len < sizeof(*(info->hdr))) {
kernel/module/main.c
1851
if (memcmp(info->hdr->e_ident, ELFMAG, SELFMAG) != 0) {
kernel/module/main.c
1855
if (info->hdr->e_type != ET_REL) {
kernel/module/main.c
1857
info->hdr->e_type, ET_REL);
kernel/module/main.c
1860
if (!elf_check_arch(info->hdr)) {
kernel/module/main.c
1862
info->hdr->e_machine);
kernel/module/main.c
1865
if (!module_elf_check_arch(info->hdr)) {
kernel/module/main.c
1867
info->hdr->e_machine);
kernel/module/main.c
1900
if (info->hdr->e_shentsize != sizeof(Elf_Shdr)) {
kernel/module/main.c
1910
if (info->hdr->e_shoff >= info->len
kernel/module/main.c
1911
|| (info->hdr->e_shnum * sizeof(Elf_Shdr) >
kernel/module/main.c
1912
info->len - info->hdr->e_shoff)) {
kernel/module/main.c
1917
sechdrs = (void *)info->hdr + info->hdr->e_shoff;
kernel/module/main.c
1932
for (i = 1; i < info->hdr->e_shnum; i++) {
kernel/module/main.c
1978
if (info->hdr->e_shstrndx == SHN_UNDEF
kernel/module/main.c
1979
|| info->hdr->e_shstrndx >= info->hdr->e_shnum) {
kernel/module/main.c
1981
info->hdr->e_shstrndx, info->hdr->e_shstrndx,
kernel/module/main.c
1982
info->hdr->e_shnum);
kernel/module/main.c
1986
strhdr = &info->sechdrs[info->hdr->e_shstrndx];
kernel/module/main.c
1993
secstrings = (void *)info->hdr + strhdr->sh_offset;
kernel/module/main.c
2003
for (i = 0; i < info->hdr->e_shnum; i++) {
kernel/module/main.c
2129
for (i = 1; i < info->hdr->e_shnum; i++) {
kernel/module/main.c
2162
if (str_idx == SHN_UNDEF || str_idx >= info->hdr->e_shnum) {
kernel/module/main.c
2164
str_idx, str_idx, info->hdr->e_shnum);
kernel/module/main.c
2227
name = (void *)info->hdr +
kernel/module/main.c
2315
char *strtab = (char *)info->hdr + str_shdr->sh_offset;
kernel/module/main.c
2316
Elf_Sym *syms = (void *)info->hdr + sym_shdr->sh_offset;
kernel/module/main.c
2385
info->mod = (void *)info->hdr + info->sechdrs[info->index.mod].sh_offset;
kernel/module/main.c
240
for (i = 1; i < info->hdr->e_shnum; i++) {
kernel/module/main.c
2444
if (info->len < sizeof(*(info->hdr)))
kernel/module/main.c
2452
info->hdr = __vmalloc(info->len, GFP_KERNEL | __GFP_NOWARN);
kernel/module/main.c
2453
if (!info->hdr)
kernel/module/main.c
2456
if (copy_chunked_from_user(info->hdr, umod, info->len) != 0) {
kernel/module/main.c
2461
err = security_kernel_post_load_data((char *)info->hdr, info->len,
kernel/module/main.c
2465
vfree(info->hdr);
kernel/module/main.c
2475
vfree(info->hdr);
kernel/module/main.c
2485
for (i = 1; i < info->hdr->e_shnum; i++) {
kernel/module/main.c
2492
shdr->sh_addr = (size_t)info->hdr + shdr->sh_offset;
kernel/module/main.c
266
for (i = 1; i < info->hdr->e_shnum; i++) {
kernel/module/main.c
2752
for (i = 0; i < info->hdr->e_shnum; i++) {
kernel/module/main.c
2849
bool __weak module_elf_check_arch(Elf_Ehdr *hdr)
kernel/module/main.c
2854
int __weak module_frob_arch_sections(Elf_Ehdr *hdr,
kernel/module/main.c
2889
err = module_frob_arch_sections(info->hdr, info->sechdrs,
kernel/module/main.c
2894
err = module_enforce_rwx_sections(info->hdr, info->sechdrs,
kernel/module/main.c
2907
module_mark_ro_after_init(info->hdr, info->sechdrs, info->secstrings);
kernel/module/main.c
2940
int __weak module_finalize(const Elf_Ehdr *hdr,
kernel/module/main.c
2960
return module_finalize(info->hdr, info->sechdrs, mod);
kernel/module/main.c
307
for (i = 1; i < info->hdr->e_shnum; i++) {
kernel/module/main.c
3255
module_bug_finalize(info->hdr, info->sechdrs, mod);
kernel/module/main.c
3256
module_cfi_finalize(info->hdr, info->sechdrs, mod);
kernel/module/main.c
3701
err = security_kernel_post_read_file(f, (char *)info.hdr, info.len,
kernel/module/main.c
3709
info.hdr = buf;
kernel/module/signing.c
75
const void *mod = info->hdr;
kernel/module/strict_rwx.c
100
for (i = 0; i < hdr->e_shnum; i++) {
kernel/module/strict_rwx.c
135
void module_mark_ro_after_init(const Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
kernel/module/strict_rwx.c
140
for (i = 1; i < hdr->e_shnum; i++) {
kernel/module/strict_rwx.c
90
int module_enforce_rwx_sections(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
kernel/module/sysfs.c
161
for (i = 0; i < info->hdr->e_shnum; i++)
kernel/module/sysfs.c
183
for (loaded = i = 0; i < info->hdr->e_shnum; ++i) {
kernel/module/sysfs.c
74
for (i = 0; i < info->hdr->e_shnum; i++)
kernel/module/sysfs.c
92
for (i = 0; i < info->hdr->e_shnum; i++) {
kernel/power/em_netlink.c
105
void *hdr;
kernel/power/em_netlink.c
120
hdr = genlmsg_put_reply(msg, info, &dev_energymodel_nl_family, 0, cmd);
kernel/power/em_netlink.c
121
if (!hdr)
kernel/power/em_netlink.c
127
genlmsg_end(msg, hdr);
kernel/power/em_netlink.c
132
genlmsg_cancel(msg, hdr);
kernel/power/em_netlink.c
255
void *hdr;
kernel/power/em_netlink.c
267
hdr = genlmsg_put_reply(msg, info, &dev_energymodel_nl_family, 0, cmd);
kernel/power/em_netlink.c
268
if (!hdr)
kernel/power/em_netlink.c
275
genlmsg_end(msg, hdr);
kernel/power/em_netlink.c
289
void *hdr;
kernel/power/em_netlink.c
300
hdr = genlmsg_put(msg, 0, 0, &dev_energymodel_nl_family, 0, ntf_type);
kernel/power/em_netlink.c
301
if (!hdr)
kernel/power/em_netlink.c
308
genlmsg_end(msg, hdr);
kernel/power/em_netlink.c
339
void *hdr;
kernel/power/em_netlink.c
352
hdr = genlmsg_put(msg, 0, 0, &dev_energymodel_nl_family, 0,
kernel/power/em_netlink.c
354
if (!hdr)
kernel/power/em_netlink.c
361
genlmsg_end(msg, hdr);
kernel/power/em_netlink.c
80
void *hdr;
kernel/power/em_netlink.c
87
hdr = genlmsg_iput(ctx->skb, info);
kernel/power/em_netlink.c
88
if (!hdr) {
kernel/power/em_netlink.c
89
genlmsg_cancel(ctx->skb, hdr);
kernel/power/em_netlink.c
94
genlmsg_end(ctx->skb, hdr);
lib/asn1_decoder.c
176
unsigned char tag = 0, csp = 0, jsp = 0, optag = 0, hdr = 0;
lib/asn1_decoder.c
224
hdr = 2;
lib/asn1_decoder.c
275
hdr += n;
lib/asn1_decoder.c
295
cons_hdrlen_stack[csp] = hdr;
lib/asn1_decoder.c
346
ret = actions[act](context, hdr, tag, data + dp, len);
lib/asn1_decoder.c
396
hdr = cons_hdrlen_stack[csp];
lib/asn1_decoder.c
439
ret = actions[act](context, hdr, 0, data + tdp, len);
lib/asn1_decoder.c
454
ret = actions[machine[pc + 1]](context, hdr, tag, data + tdp, len);
lib/bug.c
84
void module_bug_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs,
lib/bug.c
94
secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset;
lib/bug.c
95
for (i = 1; i < hdr->e_shnum; i++) {
lib/fw_table.c
115
union acpi_subtable_headers *hdr,
lib/fw_table.c
119
return proc->handler(hdr, end);
lib/fw_table.c
121
return proc->handler_arg(hdr, proc->arg, end);
lib/fw_table.c
171
entry.hdr = (union acpi_subtable_headers *)
lib/fw_table.c
175
while (((unsigned long)entry.hdr) + subtable_len < table_end) {
lib/fw_table.c
181
if (call_handler(&proc[i], entry.hdr, table_end))
lib/fw_table.c
199
entry.hdr = (union acpi_subtable_headers *)
lib/fw_table.c
200
((unsigned long)entry.hdr + entry_len);
lib/fw_table.c
26
union acpi_subtable_headers *hdr;
lib/fw_table.c
35
return entry->hdr->common.type;
lib/fw_table.c
37
return entry->hdr->hmat.type;
lib/fw_table.c
41
return entry->hdr->cedt.type;
lib/fw_table.c
43
return entry->hdr->cdat.type;
lib/fw_table.c
53
return entry->hdr->common.length;
lib/fw_table.c
55
return entry->hdr->hmat.length;
lib/fw_table.c
57
return entry->hdr->prmt.length;
lib/fw_table.c
59
return entry->hdr->cedt.length;
lib/fw_table.c
61
__le16 length = (__force __le16)entry->hdr->cdat.length;
lib/fw_table.c
74
return sizeof(entry->hdr->common);
lib/fw_table.c
76
return sizeof(entry->hdr->hmat);
lib/fw_table.c
78
return sizeof(entry->hdr->prmt);
lib/fw_table.c
80
return sizeof(entry->hdr->cedt);
lib/fw_table.c
82
return sizeof(entry->hdr->cdat);
net/6lowpan/iphc.c
1000
ecn = (hdr->flow_lbl[0] & 0x30);
net/6lowpan/iphc.c
1008
static inline bool lowpan_iphc_is_flow_lbl_zero(const struct ipv6hdr *hdr)
net/6lowpan/iphc.c
1010
return ((!(hdr->flow_lbl[0] & 0x0f)) &&
net/6lowpan/iphc.c
1011
!hdr->flow_lbl[1] && !hdr->flow_lbl[2]);
net/6lowpan/iphc.c
1017
static u8 lowpan_iphc_tf_compress(u8 **hc_ptr, const struct ipv6hdr *hdr)
net/6lowpan/iphc.c
1020
u8 tc = lowpan_iphc_get_tc(hdr), tf[4], val;
net/6lowpan/iphc.c
1025
if (lowpan_iphc_is_flow_lbl_zero(hdr)) {
net/6lowpan/iphc.c
1051
memcpy(&tf[0], &hdr->flow_lbl[0], 3);
net/6lowpan/iphc.c
1073
memcpy(&tf[1], &hdr->flow_lbl[0], 3);
net/6lowpan/iphc.c
1135
struct ipv6hdr *hdr;
net/6lowpan/iphc.c
1143
hdr = ipv6_hdr(skb);
net/6lowpan/iphc.c
1148
hdr->version, ntohs(hdr->payload_len), hdr->nexthdr,
net/6lowpan/iphc.c
1149
hdr->hop_limit, &hdr->daddr);
net/6lowpan/iphc.c
1165
ipv6_daddr_type = ipv6_addr_type(&hdr->daddr);
net/6lowpan/iphc.c
1168
dci = lowpan_iphc_ctx_get_by_mcast_addr(dev, &hdr->daddr);
net/6lowpan/iphc.c
1170
dci = lowpan_iphc_ctx_get_by_addr(dev, &hdr->daddr);
net/6lowpan/iphc.c
1178
sci = lowpan_iphc_ctx_get_by_addr(dev, &hdr->saddr);
net/6lowpan/iphc.c
1192
iphc0 |= lowpan_iphc_tf_compress(&hc_ptr, hdr);
net/6lowpan/iphc.c
1199
ret = lowpan_nhc_check_compression(skb, hdr, &hc_ptr);
net/6lowpan/iphc.c
1201
lowpan_push_hc_data(&hc_ptr, &hdr->nexthdr,
net/6lowpan/iphc.c
1202
sizeof(hdr->nexthdr));
net/6lowpan/iphc.c
1212
switch (hdr->hop_limit) {
net/6lowpan/iphc.c
1223
lowpan_push_hc_data(&hc_ptr, &hdr->hop_limit,
net/6lowpan/iphc.c
1224
sizeof(hdr->hop_limit));
net/6lowpan/iphc.c
1227
ipv6_saddr_type = ipv6_addr_type(&hdr->saddr);
net/6lowpan/iphc.c
1235
&hdr->saddr,
net/6lowpan/iphc.c
1241
lowpan_is_linklocal_zero_padded(hdr->saddr)) {
net/6lowpan/iphc.c
1243
&hdr->saddr,
net/6lowpan/iphc.c
1246
&hdr->saddr, iphc1);
net/6lowpan/iphc.c
1250
hdr->saddr.s6_addr, 16);
net/6lowpan/iphc.c
1262
&hdr->daddr);
net/6lowpan/iphc.c
1266
&hdr->daddr);
net/6lowpan/iphc.c
1271
&hdr->daddr,
net/6lowpan/iphc.c
1277
lowpan_is_linklocal_zero_padded(hdr->daddr)) {
net/6lowpan/iphc.c
1279
&hdr->daddr,
net/6lowpan/iphc.c
1282
&hdr->daddr, iphc1);
net/6lowpan/iphc.c
1285
&hdr->daddr);
net/6lowpan/iphc.c
1287
hdr->daddr.s6_addr, 16);
net/6lowpan/iphc.c
1294
ret = lowpan_nhc_do_compression(skb, hdr, &hc_ptr);
net/6lowpan/iphc.c
149
(!(hdr->saddr.s6_addr[1] & 0x3f) && \
net/6lowpan/iphc.c
150
!hdr->saddr.s6_addr16[1] && \
net/6lowpan/iphc.c
151
!hdr->saddr.s6_addr32[1])
net/6lowpan/iphc.c
504
static inline void lowpan_iphc_tf_set_ecn(struct ipv6hdr *hdr, const u8 *tf)
net/6lowpan/iphc.c
510
hdr->flow_lbl[0] |= (ecn >> 2);
net/6lowpan/iphc.c
514
static inline void lowpan_iphc_tf_set_dscp(struct ipv6hdr *hdr, const u8 *tf)
net/6lowpan/iphc.c
520
hdr->priority |= ((dscp & 0x3c) >> 2);
net/6lowpan/iphc.c
522
hdr->flow_lbl[0] |= ((dscp & 0x03) << 6);
net/6lowpan/iphc.c
526
static inline void lowpan_iphc_tf_set_lbl(struct ipv6hdr *hdr, const u8 *lbl)
net/6lowpan/iphc.c
537
hdr->flow_lbl[0] |= lbl[0] & 0x0f;
net/6lowpan/iphc.c
538
memcpy(&hdr->flow_lbl[1], &lbl[1], 2);
net/6lowpan/iphc.c
545
static int lowpan_iphc_tf_decompress(struct sk_buff *skb, struct ipv6hdr *hdr,
net/6lowpan/iphc.c
563
lowpan_iphc_tf_set_ecn(hdr, tf);
net/6lowpan/iphc.c
564
lowpan_iphc_tf_set_dscp(hdr, tf);
net/6lowpan/iphc.c
565
lowpan_iphc_tf_set_lbl(hdr, &tf[1]);
net/6lowpan/iphc.c
578
lowpan_iphc_tf_set_ecn(hdr, tf);
net/6lowpan/iphc.c
579
lowpan_iphc_tf_set_lbl(hdr, &tf[0]);
net/6lowpan/iphc.c
591
lowpan_iphc_tf_set_ecn(hdr, tf);
net/6lowpan/iphc.c
592
lowpan_iphc_tf_set_dscp(hdr, tf);
net/6lowpan/iphc.c
615
struct ipv6hdr hdr = {};
net/6lowpan/iphc.c
627
hdr.version = 6;
net/6lowpan/iphc.c
635
err = lowpan_iphc_tf_decompress(skb, &hdr,
net/6lowpan/iphc.c
643
if (lowpan_fetch_skb(skb, &hdr.nexthdr, sizeof(hdr.nexthdr)))
net/6lowpan/iphc.c
647
hdr.nexthdr);
net/6lowpan/iphc.c
652
hdr.hop_limit = lowpan_ttl_values[iphc0 & LOWPAN_IPHC_HLIM_MASK];
net/6lowpan/iphc.c
654
if (lowpan_fetch_skb(skb, &hdr.hop_limit,
net/6lowpan/iphc.c
655
sizeof(hdr.hop_limit)))
net/6lowpan/iphc.c
668
err = lowpan_iphc_uncompress_ctx_addr(skb, dev, ci, &hdr.saddr,
net/6lowpan/iphc.c
675
err = lowpan_iphc_uncompress_addr(skb, dev, &hdr.saddr,
net/6lowpan/iphc.c
698
&hdr.daddr,
net/6lowpan/iphc.c
706
err = lowpan_uncompress_multicast_daddr(skb, &hdr.daddr,
net/6lowpan/iphc.c
721
err = lowpan_iphc_uncompress_ctx_addr(skb, dev, ci, &hdr.daddr,
net/6lowpan/iphc.c
729
err = lowpan_iphc_uncompress_addr(skb, dev, &hdr.daddr,
net/6lowpan/iphc.c
733
iphc1 & LOWPAN_IPHC_DAM_MASK, &hdr.daddr);
net/6lowpan/iphc.c
742
err = lowpan_nhc_do_uncompression(skb, dev, &hdr);
net/6lowpan/iphc.c
746
err = skb_cow(skb, sizeof(hdr));
net/6lowpan/iphc.c
754
hdr.payload_len = htons(lowpan_802154_cb(skb)->d_size -
net/6lowpan/iphc.c
757
hdr.payload_len = htons(skb->len);
net/6lowpan/iphc.c
760
hdr.payload_len = htons(skb->len);
net/6lowpan/iphc.c
769
hdr.version, ntohs(hdr.payload_len), hdr.nexthdr,
net/6lowpan/iphc.c
770
hdr.hop_limit, &hdr.daddr);
net/6lowpan/iphc.c
772
skb_push(skb, sizeof(hdr));
net/6lowpan/iphc.c
775
skb_copy_to_linear_data(skb, &hdr, sizeof(hdr));
net/6lowpan/iphc.c
777
raw_dump_table(__func__, "raw header dump", (u8 *)&hdr, sizeof(hdr));
net/6lowpan/iphc.c
991
static inline u8 lowpan_iphc_get_tc(const struct ipv6hdr *hdr)
net/6lowpan/iphc.c
998
dscp = (hdr->priority << 2) | ((hdr->flow_lbl[0] & 0xc0) >> 6);
net/6lowpan/nhc.c
103
struct ipv6hdr *hdr)
net/6lowpan/nhc.c
131
hdr->nexthdr = nhc->nexthdr;
net/6lowpan/nhc.c
42
const struct ipv6hdr *hdr, u8 **hc_ptr)
net/6lowpan/nhc.c
49
nhc = lowpan_nexthdr_nhcs[hdr->nexthdr];
net/6lowpan/nhc.c
58
int lowpan_nhc_do_compression(struct sk_buff *skb, const struct ipv6hdr *hdr,
net/6lowpan/nhc.c
66
nhc = lowpan_nexthdr_nhcs[hdr->nexthdr];
net/6lowpan/nhc.h
112
struct ipv6hdr *hdr);
net/6lowpan/nhc.h
89
const struct ipv6hdr *hdr, u8 **hc_ptr);
net/6lowpan/nhc.h
99
int lowpan_nhc_do_compression(struct sk_buff *skb, const struct ipv6hdr *hdr,
net/802/fddi.c
106
if(fddi->hdr.llc_8022_1.dsap==0xe0)
net/802/fddi.c
114
type=fddi->hdr.llc_snap.ethertype;
net/802/fddi.c
61
fddi->hdr.llc_snap.dsap = FDDI_EXTENDED_SAP;
net/802/fddi.c
62
fddi->hdr.llc_snap.ssap = FDDI_EXTENDED_SAP;
net/802/fddi.c
63
fddi->hdr.llc_snap.ctrl = FDDI_UI_CMD;
net/802/fddi.c
64
fddi->hdr.llc_snap.oui[0] = 0x00;
net/802/fddi.c
65
fddi->hdr.llc_snap.oui[1] = 0x00;
net/802/fddi.c
66
fddi->hdr.llc_snap.oui[2] = 0x00;
net/802/fddi.c
67
fddi->hdr.llc_snap.ethertype = htons(type);
net/9p/protocol.c
108
return hdr + 4 + P9_STRLEN(name) + 4 + 1;
net/9p/protocol.c
115
return hdr + 4 + P9_STRLEN(name) + 4 + 1 + P9_STRLEN(ext);
net/9p/protocol.c
125
return hdr + 4 + P9_STRLEN(name) + 4 + 4 + 4;
net/9p/protocol.c
135
return max_t(size_t, hdr + 4 + count, err_size);
net/9p/protocol.c
144
return hdr + 4 + 8 + 4 + count;
net/9p/protocol.c
155
return hdr + 4 + P9_STRLEN(oldname) + 4 + P9_STRLEN(newname);
net/9p/protocol.c
164
return hdr + 4 + P9_STRLEN(name) + P9_STRLEN(symtgt) + 4;
net/9p/protocol.c
47
const int hdr = 4 + 1 + 2;
net/9p/protocol.c
49
const int rerror_size = hdr + P9_ERRMAX + 4;
net/9p/protocol.c
51
const int rlerror_size = hdr + 4;
net/9p/protocol.c
76
return hdr + 4 + 4 + P9_STRLEN(uname) + P9_STRLEN(aname) + 4;
net/9p/protocol.c
90
return hdr + 4 + 4 + 2 + wname_all;
net/9p/protocol.c
99
return max_t(size_t, hdr + 2 + nwname * 13, err_size);
net/atm/lec.c
2246
struct lecdatahdr_8023 *hdr = (struct lecdatahdr_8023 *)skb->data;
net/atm/lec.c
2247
unsigned char *src = hdr->h_source;
net/atm/mpc.c
500
struct llc_snap_hdr hdr;
net/batman-adv/bat_algo.c
163
void *hdr;
net/batman-adv/bat_algo.c
165
hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family,
net/batman-adv/bat_algo.c
167
if (!hdr)
net/batman-adv/bat_algo.c
173
genlmsg_end(msg, hdr);
net/batman-adv/bat_algo.c
177
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_iv_ogm.c
1819
void *hdr;
net/batman-adv/bat_iv_ogm.c
1832
hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family,
net/batman-adv/bat_iv_ogm.c
1834
if (!hdr)
net/batman-adv/bat_iv_ogm.c
1853
genlmsg_end(msg, hdr);
net/batman-adv/bat_iv_ogm.c
1857
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_iv_ogm.c
2057
void *hdr;
net/batman-adv/bat_iv_ogm.c
2062
hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family,
net/batman-adv/bat_iv_ogm.c
2064
if (!hdr)
net/batman-adv/bat_iv_ogm.c
2077
genlmsg_end(msg, hdr);
net/batman-adv/bat_iv_ogm.c
2081
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_iv_ogm.c
2405
void *hdr;
net/batman-adv/bat_iv_ogm.c
2417
hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
net/batman-adv/bat_iv_ogm.c
2420
if (!hdr) {
net/batman-adv/bat_iv_ogm.c
2425
genl_dump_check_consistent(cb, hdr);
net/batman-adv/bat_iv_ogm.c
2431
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_iv_ogm.c
2448
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_iv_ogm.c
2452
genlmsg_end(msg, hdr);
net/batman-adv/bat_v.c
131
void *hdr;
net/batman-adv/bat_v.c
139
hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, NLM_F_MULTI,
net/batman-adv/bat_v.c
141
if (!hdr)
net/batman-adv/bat_v.c
155
genlmsg_end(msg, hdr);
net/batman-adv/bat_v.c
159
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_v.c
274
void *hdr;
net/batman-adv/bat_v.c
290
hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, NLM_F_MULTI,
net/batman-adv/bat_v.c
292
if (!hdr)
net/batman-adv/bat_v.c
310
genlmsg_end(msg, hdr);
net/batman-adv/bat_v.c
314
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_v.c
662
void *hdr;
net/batman-adv/bat_v.c
674
hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
net/batman-adv/bat_v.c
677
if (!hdr) {
net/batman-adv/bat_v.c
682
genl_dump_check_consistent(cb, hdr);
net/batman-adv/bat_v.c
688
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_v.c
695
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_v.c
701
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_v.c
706
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_v.c
712
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_v.c
718
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_v.c
724
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_v.c
729
genlmsg_cancel(msg, hdr);
net/batman-adv/bat_v.c
733
genlmsg_end(msg, hdr);
net/batman-adv/bridge_loop_avoidance.c
2135
void *hdr;
net/batman-adv/bridge_loop_avoidance.c
2138
hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
net/batman-adv/bridge_loop_avoidance.c
2141
if (!hdr) {
net/batman-adv/bridge_loop_avoidance.c
2146
genl_dump_check_consistent(cb, hdr);
net/batman-adv/bridge_loop_avoidance.c
2157
genlmsg_cancel(msg, hdr);
net/batman-adv/bridge_loop_avoidance.c
2167
genlmsg_cancel(msg, hdr);
net/batman-adv/bridge_loop_avoidance.c
2171
genlmsg_end(msg, hdr);
net/batman-adv/bridge_loop_avoidance.c
2295
void *hdr;
net/batman-adv/bridge_loop_avoidance.c
2298
hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
net/batman-adv/bridge_loop_avoidance.c
2301
if (!hdr) {
net/batman-adv/bridge_loop_avoidance.c
2306
genl_dump_check_consistent(cb, hdr);
net/batman-adv/bridge_loop_avoidance.c
2318
genlmsg_cancel(msg, hdr);
net/batman-adv/bridge_loop_avoidance.c
2328
genlmsg_cancel(msg, hdr);
net/batman-adv/bridge_loop_avoidance.c
2332
genlmsg_end(msg, hdr);
net/batman-adv/distributed-arp-table.c
858
void *hdr;
net/batman-adv/distributed-arp-table.c
860
hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
net/batman-adv/distributed-arp-table.c
863
if (!hdr)
net/batman-adv/distributed-arp-table.c
866
genl_dump_check_consistent(cb, hdr);
net/batman-adv/distributed-arp-table.c
876
genlmsg_cancel(msg, hdr);
net/batman-adv/distributed-arp-table.c
880
genlmsg_end(msg, hdr);
net/batman-adv/multicast.c
1980
void *hdr;
net/batman-adv/multicast.c
1982
hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
net/batman-adv/multicast.c
1985
if (!hdr)
net/batman-adv/multicast.c
1988
genl_dump_check_consistent(cb, hdr);
net/batman-adv/multicast.c
1992
genlmsg_cancel(msg, hdr);
net/batman-adv/multicast.c
2000
genlmsg_cancel(msg, hdr);
net/batman-adv/multicast.c
2005
genlmsg_end(msg, hdr);
net/batman-adv/netlink.c
1005
void *hdr;
net/batman-adv/netlink.c
1007
hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, flags, cmd);
net/batman-adv/netlink.c
1008
if (!hdr)
net/batman-adv/netlink.c
1026
genlmsg_end(msg, hdr);
net/batman-adv/netlink.c
1030
genlmsg_cancel(msg, hdr);
net/batman-adv/netlink.c
230
void *hdr;
net/batman-adv/netlink.c
232
hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, flags, cmd);
net/batman-adv/netlink.c
233
if (!hdr)
net/batman-adv/netlink.c
352
genlmsg_end(msg, hdr);
net/batman-adv/netlink.c
358
genlmsg_cancel(msg, hdr);
net/batman-adv/netlink.c
632
void *hdr;
net/batman-adv/netlink.c
639
hdr = genlmsg_put(msg, 0, 0, &batadv_netlink_family, 0,
net/batman-adv/netlink.c
641
if (!hdr) {
net/batman-adv/netlink.c
662
genlmsg_end(msg, hdr);
net/batman-adv/netlink.c
671
genlmsg_cancel(msg, hdr);
net/batman-adv/netlink.c
781
void *hdr;
net/batman-adv/netlink.c
783
hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, flags, cmd);
net/batman-adv/netlink.c
784
if (!hdr)
net/batman-adv/netlink.c
788
genl_dump_check_consistent(cb, hdr);
net/batman-adv/netlink.c
825
genlmsg_end(msg, hdr);
net/batman-adv/netlink.c
829
genlmsg_cancel(msg, hdr);
net/batman-adv/translation-table.c
1039
void *hdr;
net/batman-adv/translation-table.c
1056
hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq,
net/batman-adv/translation-table.c
1059
if (!hdr)
net/batman-adv/translation-table.c
1062
genl_dump_check_consistent(cb, hdr);
net/batman-adv/translation-table.c
1074
genlmsg_end(msg, hdr);
net/batman-adv/translation-table.c
1078
genlmsg_cancel(msg, hdr);
net/batman-adv/translation-table.c
1764
void *hdr;
net/batman-adv/translation-table.c
1778
hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family,
net/batman-adv/translation-table.c
1781
if (!hdr)
net/batman-adv/translation-table.c
1799
genlmsg_end(msg, hdr);
net/batman-adv/translation-table.c
1803
genlmsg_cancel(msg, hdr);
net/bluetooth/6lowpan.c
380
struct ipv6hdr *hdr;
net/bluetooth/6lowpan.c
386
hdr = ipv6_hdr(skb);
net/bluetooth/6lowpan.c
390
memcpy(&ipv6_daddr, &hdr->daddr, sizeof(ipv6_daddr));
net/bluetooth/cmtp/core.c
134
__u8 hdr, hdrlen, id;
net/bluetooth/cmtp/core.c
140
hdr = skb->data[0];
net/bluetooth/cmtp/core.c
142
switch (hdr & 0xc0) {
net/bluetooth/cmtp/core.c
157
id = (hdr & 0x3c) >> 2;
net/bluetooth/cmtp/core.c
159
BT_DBG("hdr 0x%02x hdrlen %d len %d id %d", hdr, hdrlen, len, id);
net/bluetooth/cmtp/core.c
171
switch (hdr & 0x03) {
net/bluetooth/cmtp/core.c
212
unsigned char *hdr;
net/bluetooth/cmtp/core.c
244
hdr = skb_put(nskb, 2);
net/bluetooth/cmtp/core.c
245
hdr[0] = 0x40
net/bluetooth/cmtp/core.c
248
hdr[1] = size;
net/bluetooth/cmtp/core.c
250
hdr = skb_put(nskb, 3);
net/bluetooth/cmtp/core.c
251
hdr[0] = 0x80
net/bluetooth/cmtp/core.c
254
hdr[1] = size & 0xff;
net/bluetooth/cmtp/core.c
255
hdr[2] = size >> 8;
net/bluetooth/coredump.c
65
char hdr[80];
net/bluetooth/coredump.c
68
hdr_len = hci_devcd_update_hdr_state(hdr, sizeof(hdr),
net/bluetooth/coredump.c
70
skb_put_data(skb, hdr, hdr_len);
net/bluetooth/hci_core.c
3150
struct hci_command_hdr *hdr;
net/bluetooth/hci_core.c
3155
hdr = (void *)skb->data;
net/bluetooth/hci_core.c
3157
if (hdr->opcode != cpu_to_le16(opcode))
net/bluetooth/hci_core.c
3180
struct hci_event_hdr *hdr;
net/bluetooth/hci_core.c
3186
hdr = (void *)hdev->recv_event->data;
net/bluetooth/hci_core.c
3187
offset = sizeof(*hdr);
net/bluetooth/hci_core.c
3189
if (hdr->evt != event) {
net/bluetooth/hci_core.c
3191
if (hdr->evt == HCI_EV_LE_META) {
net/bluetooth/hci_core.c
3211
struct hci_acl_hdr *hdr;
net/bluetooth/hci_core.c
3216
hdr = (struct hci_acl_hdr *)skb_transport_header(skb);
net/bluetooth/hci_core.c
3217
hdr->handle = cpu_to_le16(hci_handle_pack(handle, flags));
net/bluetooth/hci_core.c
3218
hdr->dlen = cpu_to_le16(len);
net/bluetooth/hci_core.c
3290
struct hci_sco_hdr hdr;
net/bluetooth/hci_core.c
3294
hdr.handle = cpu_to_le16(conn->handle);
net/bluetooth/hci_core.c
3295
hdr.dlen = skb->len;
net/bluetooth/hci_core.c
3299
memcpy(skb_transport_header(skb), &hdr, HCI_SCO_HDR_SIZE);
net/bluetooth/hci_core.c
3314
struct hci_iso_hdr *hdr;
net/bluetooth/hci_core.c
3319
hdr = (struct hci_iso_hdr *)skb_transport_header(skb);
net/bluetooth/hci_core.c
3320
hdr->handle = cpu_to_le16(hci_handle_pack(handle, flags));
net/bluetooth/hci_core.c
3321
hdr->dlen = cpu_to_le16(len);
net/bluetooth/hci_core.c
3835
struct hci_acl_hdr *hdr;
net/bluetooth/hci_core.c
3839
hdr = skb_pull_data(skb, sizeof(*hdr));
net/bluetooth/hci_core.c
3840
if (!hdr) {
net/bluetooth/hci_core.c
3846
handle = __le16_to_cpu(hdr->handle);
net/bluetooth/hci_core.c
3867
struct hci_sco_hdr *hdr;
net/bluetooth/hci_core.c
3871
hdr = skb_pull_data(skb, sizeof(*hdr));
net/bluetooth/hci_core.c
3872
if (!hdr) {
net/bluetooth/hci_core.c
3878
handle = __le16_to_cpu(hdr->handle);
net/bluetooth/hci_core.c
3900
struct hci_iso_hdr *hdr;
net/bluetooth/hci_core.c
3904
hdr = skb_pull_data(skb, sizeof(*hdr));
net/bluetooth/hci_core.c
3905
if (!hdr) {
net/bluetooth/hci_core.c
3911
handle = __le16_to_cpu(hdr->handle);
net/bluetooth/hci_drv.c
16
struct hci_drv_ev_hdr *hdr;
net/bluetooth/hci_drv.c
20
skb = bt_skb_alloc(sizeof(*hdr) + sizeof(*ev), GFP_KERNEL);
net/bluetooth/hci_drv.c
24
hdr = skb_put(skb, sizeof(*hdr));
net/bluetooth/hci_drv.c
25
hdr->opcode = __cpu_to_le16(HCI_DRV_EV_CMD_STATUS);
net/bluetooth/hci_drv.c
26
hdr->len = __cpu_to_le16(sizeof(*ev));
net/bluetooth/hci_drv.c
41
struct hci_drv_ev_hdr *hdr;
net/bluetooth/hci_drv.c
45
skb = bt_skb_alloc(sizeof(*hdr) + sizeof(*ev) + rp_len, GFP_KERNEL);
net/bluetooth/hci_drv.c
49
hdr = skb_put(skb, sizeof(*hdr));
net/bluetooth/hci_drv.c
50
hdr->opcode = __cpu_to_le16(HCI_DRV_EV_CMD_COMPLETE);
net/bluetooth/hci_drv.c
51
hdr->len = __cpu_to_le16(sizeof(*ev) + rp_len);
net/bluetooth/hci_drv.c
67
struct hci_drv_cmd_hdr *hdr;
net/bluetooth/hci_drv.c
71
hdr = skb_pull_data(skb, sizeof(*hdr));
net/bluetooth/hci_drv.c
72
if (!hdr)
net/bluetooth/hci_drv.c
75
opcode = __le16_to_cpu(hdr->opcode);
net/bluetooth/hci_drv.c
76
len = __le16_to_cpu(hdr->len);
net/bluetooth/hci_event.c
7506
struct hci_event_hdr *hdr;
net/bluetooth/hci_event.c
7511
hdr = hci_ev_skb_pull(hdev, skb, event, sizeof(*hdr));
net/bluetooth/hci_event.c
7512
if (!hdr)
net/bluetooth/hci_event.c
7516
if (hdr->evt != event)
net/bluetooth/hci_event.c
7524
if (hdr->evt == HCI_EV_CMD_STATUS)
net/bluetooth/hci_event.c
7527
if (hdr->evt != HCI_EV_CMD_COMPLETE) {
net/bluetooth/hci_event.c
7529
hdr->evt);
net/bluetooth/hci_event.c
7771
struct hci_event_hdr *hdr = (void *) skb->data;
net/bluetooth/hci_event.c
7778
if (skb->len < sizeof(*hdr)) {
net/bluetooth/hci_event.c
7788
event = hdr->evt;
net/bluetooth/hci_sock.c
1623
struct mgmt_hdr *hdr;
net/bluetooth/hci_sock.c
1632
if (skb->len < sizeof(*hdr))
net/bluetooth/hci_sock.c
1635
hdr = (void *)skb->data;
net/bluetooth/hci_sock.c
1636
opcode = __le16_to_cpu(hdr->opcode);
net/bluetooth/hci_sock.c
1637
index = __le16_to_cpu(hdr->index);
net/bluetooth/hci_sock.c
1638
len = __le16_to_cpu(hdr->len);
net/bluetooth/hci_sock.c
1640
if (len != skb->len - sizeof(*hdr)) {
net/bluetooth/hci_sock.c
1650
skb->data + sizeof(*hdr));
net/bluetooth/hci_sock.c
1719
cp = skb->data + sizeof(*hdr);
net/bluetooth/hci_sock.c
1737
struct hci_mon_hdr *hdr;
net/bluetooth/hci_sock.c
1746
if (skb->len < sizeof(*hdr) + 3)
net/bluetooth/hci_sock.c
1749
hdr = (void *)skb->data;
net/bluetooth/hci_sock.c
1751
if (__le16_to_cpu(hdr->len) != skb->len - sizeof(*hdr))
net/bluetooth/hci_sock.c
1754
if (__le16_to_cpu(hdr->opcode) == 0x0000) {
net/bluetooth/hci_sock.c
1755
__u8 priority = skb->data[sizeof(*hdr)];
net/bluetooth/hci_sock.c
1756
__u8 ident_len = skb->data[sizeof(*hdr) + 1];
net/bluetooth/hci_sock.c
1772
ident_len > skb->len - sizeof(*hdr) - 3 ||
net/bluetooth/hci_sock.c
1773
skb->data[sizeof(*hdr) + ident_len + 1] != 0x00)
net/bluetooth/hci_sock.c
1779
index = __le16_to_cpu(hdr->index);
net/bluetooth/hci_sock.c
1789
hdr->opcode = cpu_to_le16(HCI_MON_USER_LOGGING);
net/bluetooth/hci_sock.c
362
struct hci_mon_hdr *hdr;
net/bluetooth/hci_sock.c
416
hdr = skb_push(skb_copy, HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
417
hdr->opcode = opcode;
net/bluetooth/hci_sock.c
418
hdr->index = cpu_to_le16(hdev->id);
net/bluetooth/hci_sock.c
419
hdr->len = cpu_to_le16(skb->len);
net/bluetooth/hci_sock.c
441
struct hci_mon_hdr *hdr;
net/bluetooth/hci_sock.c
467
hdr = skb_push(skb, HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
468
hdr->opcode = cpu_to_le16(HCI_MON_CTRL_EVENT);
net/bluetooth/hci_sock.c
469
hdr->index = index;
net/bluetooth/hci_sock.c
470
hdr->len = cpu_to_le16(skb->len - HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
482
struct hci_mon_hdr *hdr;
net/bluetooth/hci_sock.c
551
hdr = skb_push(skb, HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
552
hdr->opcode = opcode;
net/bluetooth/hci_sock.c
553
hdr->index = cpu_to_le16(hdev->id);
net/bluetooth/hci_sock.c
554
hdr->len = cpu_to_le16(skb->len - HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
561
struct hci_mon_hdr *hdr;
net/bluetooth/hci_sock.c
608
hdr = skb_push(skb, HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
609
hdr->opcode = cpu_to_le16(HCI_MON_CTRL_OPEN);
net/bluetooth/hci_sock.c
611
hdr->index = cpu_to_le16(hci_pi(sk)->hdev->id);
net/bluetooth/hci_sock.c
613
hdr->index = cpu_to_le16(HCI_DEV_NONE);
net/bluetooth/hci_sock.c
614
hdr->len = cpu_to_le16(skb->len - HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
621
struct hci_mon_hdr *hdr;
net/bluetooth/hci_sock.c
648
hdr = skb_push(skb, HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
649
hdr->opcode = cpu_to_le16(HCI_MON_CTRL_CLOSE);
net/bluetooth/hci_sock.c
651
hdr->index = cpu_to_le16(hci_pi(sk)->hdev->id);
net/bluetooth/hci_sock.c
653
hdr->index = cpu_to_le16(HCI_DEV_NONE);
net/bluetooth/hci_sock.c
654
hdr->len = cpu_to_le16(skb->len - HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
663
struct hci_mon_hdr *hdr;
net/bluetooth/hci_sock.c
680
hdr = skb_push(skb, HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
681
hdr->opcode = cpu_to_le16(HCI_MON_CTRL_COMMAND);
net/bluetooth/hci_sock.c
682
hdr->index = cpu_to_le16(index);
net/bluetooth/hci_sock.c
683
hdr->len = cpu_to_le16(skb->len - HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
692
struct hci_mon_hdr *hdr;
net/bluetooth/hci_sock.c
713
hdr = (void *)skb_push(skb, HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
714
hdr->opcode = cpu_to_le16(HCI_MON_SYSTEM_NOTE);
net/bluetooth/hci_sock.c
715
hdr->index = cpu_to_le16(HCI_DEV_NONE);
net/bluetooth/hci_sock.c
716
hdr->len = cpu_to_le16(skb->len - HCI_MON_HDR_SIZE);
net/bluetooth/hci_sock.c
787
struct hci_event_hdr *hdr;
net/bluetooth/hci_sock.c
795
hdr = skb_put(skb, HCI_EVENT_HDR_SIZE);
net/bluetooth/hci_sock.c
796
hdr->evt = HCI_EV_STACK_INTERNAL;
net/bluetooth/hci_sock.c
797
hdr->plen = sizeof(*ev) + dlen;
net/bluetooth/hci_sync.c
55
struct hci_command_hdr *hdr;
net/bluetooth/hci_sync.c
62
hdr = skb_put(skb, HCI_COMMAND_HDR_SIZE);
net/bluetooth/hci_sync.c
63
hdr->opcode = cpu_to_le16(opcode);
net/bluetooth/hci_sync.c
64
hdr->plen = plen;
net/bluetooth/hidp/core.c
117
skb_put_u8(skb, hdr);
net/bluetooth/hidp/core.c
132
unsigned char hdr, const unsigned char *data,
net/bluetooth/hidp/core.c
136
&session->ctrl_transmit, hdr, data, size);
net/bluetooth/hidp/core.c
140
unsigned char hdr, const unsigned char *data,
net/bluetooth/hidp/core.c
144
&session->intr_transmit, hdr, data, size);
net/bluetooth/hidp/core.c
152
unsigned char hdr, data[2];
net/bluetooth/hidp/core.c
171
hdr = HIDP_TRANS_DATA | HIDP_DATA_RTYPE_OUPUT;
net/bluetooth/hidp/core.c
175
return hidp_send_intr_message(session, hdr, data, 2);
net/bluetooth/hidp/core.c
553
unsigned char hdr, type, param;
net/bluetooth/hidp/core.c
558
hdr = skb->data[0];
net/bluetooth/hidp/core.c
561
type = hdr & HIDP_HEADER_TRANS_MASK;
net/bluetooth/hidp/core.c
562
param = hdr & HIDP_HEADER_PARAM_MASK;
net/bluetooth/hidp/core.c
590
unsigned char hdr;
net/bluetooth/hidp/core.c
594
hdr = skb->data[0];
net/bluetooth/hidp/core.c
597
if (hdr == (HIDP_TRANS_DATA | HIDP_DATA_RTYPE_INPUT)) {
net/bluetooth/hidp/core.c
609
BT_DBG("Unsupported protocol header 0x%02x", hdr);
net/bluetooth/hidp/core.c
99
struct sk_buff_head *transmit, unsigned char hdr,
net/bluetooth/iso.c
2493
struct hci_iso_ts_data_hdr *hdr;
net/bluetooth/iso.c
2495
hdr = skb_pull_data(skb, HCI_ISO_TS_DATA_HDR_SIZE);
net/bluetooth/iso.c
2496
if (!hdr) {
net/bluetooth/iso.c
2503
hwts->hwtstamp = us_to_ktime(le32_to_cpu(hdr->ts));
net/bluetooth/iso.c
2505
sn = __le16_to_cpu(hdr->sn);
net/bluetooth/iso.c
2506
len = __le16_to_cpu(hdr->slen);
net/bluetooth/iso.c
2508
struct hci_iso_data_hdr *hdr;
net/bluetooth/iso.c
2510
hdr = skb_pull_data(skb, HCI_ISO_DATA_HDR_SIZE);
net/bluetooth/iso.c
2511
if (!hdr) {
net/bluetooth/iso.c
2516
sn = __le16_to_cpu(hdr->sn);
net/bluetooth/iso.c
2517
len = __le16_to_cpu(hdr->slen);
net/bluetooth/iso.c
544
struct hci_iso_data_hdr *hdr;
net/bluetooth/iso.c
555
hdr = skb_push(skb, HCI_ISO_DATA_HDR_SIZE);
net/bluetooth/iso.c
556
hdr->sn = cpu_to_le16(conn->tx_sn++);
net/bluetooth/iso.c
557
hdr->slen = cpu_to_le16(hci_iso_data_len_pack(len,
net/bluetooth/l2cap_core.c
3847
container_of(&rsp->pdu.rsp, struct l2cap_ecred_conn_rsp, hdr);
net/bluetooth/mgmt_util.c
100
hdr->index = cpu_to_le16(hdev->id);
net/bluetooth/mgmt_util.c
102
hdr->index = cpu_to_le16(MGMT_INDEX_NONE);
net/bluetooth/mgmt_util.c
103
hdr->len = cpu_to_le16(len);
net/bluetooth/mgmt_util.c
129
struct mgmt_hdr *hdr;
net/bluetooth/mgmt_util.c
135
skb = alloc_skb(sizeof(*hdr) + sizeof(*ev), GFP_KERNEL);
net/bluetooth/mgmt_util.c
139
hdr = skb_put(skb, sizeof(*hdr));
net/bluetooth/mgmt_util.c
141
hdr->opcode = cpu_to_le16(MGMT_EV_CMD_STATUS);
net/bluetooth/mgmt_util.c
142
hdr->index = cpu_to_le16(index);
net/bluetooth/mgmt_util.c
143
hdr->len = cpu_to_le16(sizeof(*ev));
net/bluetooth/mgmt_util.c
149
mskb = create_monitor_ctrl_event(hdr->index, hci_sock_get_cookie(sk),
net/bluetooth/mgmt_util.c
173
struct mgmt_hdr *hdr;
net/bluetooth/mgmt_util.c
179
skb = alloc_skb(sizeof(*hdr) + sizeof(*ev) + rp_len, GFP_KERNEL);
net/bluetooth/mgmt_util.c
183
hdr = skb_put(skb, sizeof(*hdr));
net/bluetooth/mgmt_util.c
185
hdr->opcode = cpu_to_le16(MGMT_EV_CMD_COMPLETE);
net/bluetooth/mgmt_util.c
186
hdr->index = cpu_to_le16(index);
net/bluetooth/mgmt_util.c
187
hdr->len = cpu_to_le16(sizeof(*ev) + rp_len);
net/bluetooth/mgmt_util.c
196
mskb = create_monitor_ctrl_event(hdr->index, hci_sock_get_cookie(sk),
net/bluetooth/mgmt_util.c
36
struct hci_mon_hdr *hdr;
net/bluetooth/mgmt_util.c
51
hdr = skb_push(skb, HCI_MON_HDR_SIZE);
net/bluetooth/mgmt_util.c
52
hdr->opcode = cpu_to_le16(HCI_MON_CTRL_EVENT);
net/bluetooth/mgmt_util.c
53
hdr->index = index;
net/bluetooth/mgmt_util.c
54
hdr->len = cpu_to_le16(skb->len - HCI_MON_HDR_SIZE);
net/bluetooth/mgmt_util.c
79
struct mgmt_hdr *hdr;
net/bluetooth/mgmt_util.c
97
hdr = skb_push(skb, sizeof(*hdr));
net/bluetooth/mgmt_util.c
98
hdr->opcode = cpu_to_le16(bt_cb(skb)->mgmt.opcode);
net/bluetooth/rfcomm/core.c
1001
struct rfcomm_hdr *hdr;
net/bluetooth/rfcomm/core.c
1011
hdr = (void *) ptr; ptr += sizeof(*hdr);
net/bluetooth/rfcomm/core.c
1012
hdr->addr = __addr(s->initiator, 0);
net/bluetooth/rfcomm/core.c
1013
hdr->ctrl = __ctrl(RFCOMM_UIH, 0);
net/bluetooth/rfcomm/core.c
1014
hdr->len = __len8(sizeof(*mcc) + sizeof(*rpn));
net/bluetooth/rfcomm/core.c
1036
struct rfcomm_hdr *hdr;
net/bluetooth/rfcomm/core.c
1043
hdr = (void *) ptr; ptr += sizeof(*hdr);
net/bluetooth/rfcomm/core.c
1044
hdr->addr = __addr(s->initiator, 0);
net/bluetooth/rfcomm/core.c
1045
hdr->ctrl = __ctrl(RFCOMM_UIH, 0);
net/bluetooth/rfcomm/core.c
1046
hdr->len = __len8(sizeof(*mcc) + sizeof(*rls));
net/bluetooth/rfcomm/core.c
1063
struct rfcomm_hdr *hdr;
net/bluetooth/rfcomm/core.c
1070
hdr = (void *) ptr; ptr += sizeof(*hdr);
net/bluetooth/rfcomm/core.c
1071
hdr->addr = __addr(s->initiator, 0);
net/bluetooth/rfcomm/core.c
1072
hdr->ctrl = __ctrl(RFCOMM_UIH, 0);
net/bluetooth/rfcomm/core.c
1073
hdr->len = __len8(sizeof(*mcc) + sizeof(*msc));
net/bluetooth/rfcomm/core.c
1090
struct rfcomm_hdr *hdr;
net/bluetooth/rfcomm/core.c
1096
hdr = (void *) ptr; ptr += sizeof(*hdr);
net/bluetooth/rfcomm/core.c
1097
hdr->addr = __addr(s->initiator, 0);
net/bluetooth/rfcomm/core.c
1098
hdr->ctrl = __ctrl(RFCOMM_UIH, 0);
net/bluetooth/rfcomm/core.c
1099
hdr->len = __len8(sizeof(*mcc));
net/bluetooth/rfcomm/core.c
1112
struct rfcomm_hdr *hdr;
net/bluetooth/rfcomm/core.c
1118
hdr = (void *) ptr; ptr += sizeof(*hdr);
net/bluetooth/rfcomm/core.c
1119
hdr->addr = __addr(s->initiator, 0);
net/bluetooth/rfcomm/core.c
1120
hdr->ctrl = __ctrl(RFCOMM_UIH, 0);
net/bluetooth/rfcomm/core.c
1121
hdr->len = __len8(sizeof(*mcc));
net/bluetooth/rfcomm/core.c
1137
unsigned char hdr[5], crc[1];
net/bluetooth/rfcomm/core.c
1144
hdr[0] = __addr(s->initiator, 0);
net/bluetooth/rfcomm/core.c
1145
hdr[1] = __ctrl(RFCOMM_UIH, 0);
net/bluetooth/rfcomm/core.c
1146
hdr[2] = 0x01 | ((len + 2) << 1);
net/bluetooth/rfcomm/core.c
1147
hdr[3] = 0x01 | ((cr & 0x01) << 1) | (RFCOMM_TEST << 2);
net/bluetooth/rfcomm/core.c
1148
hdr[4] = 0x01 | (len << 1);
net/bluetooth/rfcomm/core.c
1150
crc[0] = __fcs(hdr);
net/bluetooth/rfcomm/core.c
1152
iv[0].iov_base = hdr;
net/bluetooth/rfcomm/core.c
1166
struct rfcomm_hdr *hdr;
net/bluetooth/rfcomm/core.c
1171
hdr = (void *) ptr; ptr += sizeof(*hdr);
net/bluetooth/rfcomm/core.c
1172
hdr->addr = addr;
net/bluetooth/rfcomm/core.c
1173
hdr->ctrl = __ctrl(RFCOMM_UIH, 1);
net/bluetooth/rfcomm/core.c
1174
hdr->len = __len8(0);
net/bluetooth/rfcomm/core.c
1185
struct rfcomm_hdr *hdr;
net/bluetooth/rfcomm/core.c
1190
hdr = skb_push(skb, 4);
net/bluetooth/rfcomm/core.c
1191
put_unaligned(cpu_to_le16(__len16(len)), (__le16 *) &hdr->len);
net/bluetooth/rfcomm/core.c
1193
hdr = skb_push(skb, 3);
net/bluetooth/rfcomm/core.c
1194
hdr->len = __len8(len);
net/bluetooth/rfcomm/core.c
1196
hdr->addr = addr;
net/bluetooth/rfcomm/core.c
1197
hdr->ctrl = __ctrl(RFCOMM_UIH, 0);
net/bluetooth/rfcomm/core.c
1200
*crc = __fcs((void *) hdr);
net/bluetooth/rfcomm/core.c
1741
struct rfcomm_hdr *hdr = (void *) skb->data;
net/bluetooth/rfcomm/core.c
1750
dlci = __get_dlci(hdr->addr);
net/bluetooth/rfcomm/core.c
1751
type = __get_type(hdr->ctrl);
net/bluetooth/rfcomm/core.c
1763
if (__test_ea(hdr->len))
net/bluetooth/rfcomm/core.c
1770
if (__test_pf(hdr->ctrl))
net/bluetooth/rfcomm/core.c
1775
if (__test_pf(hdr->ctrl))
net/bluetooth/rfcomm/core.c
1780
if (__test_pf(hdr->ctrl))
net/bluetooth/rfcomm/core.c
1790
rfcomm_recv_data(s, dlci, __test_pf(hdr->ctrl), skb);
net/bluetooth/rfcomm/core.c
931
struct rfcomm_hdr *hdr;
net/bluetooth/rfcomm/core.c
937
hdr = (void *) ptr; ptr += sizeof(*hdr);
net/bluetooth/rfcomm/core.c
938
hdr->addr = __addr(s->initiator, 0);
net/bluetooth/rfcomm/core.c
939
hdr->ctrl = __ctrl(RFCOMM_UIH, 0);
net/bluetooth/rfcomm/core.c
940
hdr->len = __len8(sizeof(*mcc) + 1);
net/bluetooth/rfcomm/core.c
956
struct rfcomm_hdr *hdr;
net/bluetooth/rfcomm/core.c
963
hdr = (void *) ptr; ptr += sizeof(*hdr);
net/bluetooth/rfcomm/core.c
964
hdr->addr = __addr(s->initiator, 0);
net/bluetooth/rfcomm/core.c
965
hdr->ctrl = __ctrl(RFCOMM_UIH, 0);
net/bluetooth/rfcomm/core.c
966
hdr->len = __len8(sizeof(*mcc) + sizeof(*pn));
net/bridge/br_cfm.c
373
const struct br_cfm_common_hdr *hdr;
net/bridge/br_cfm.c
388
hdr = skb_header_pointer(skb, 0, sizeof(_hdr), &_hdr);
net/bridge/br_cfm.c
389
if (!hdr)
net/bridge/br_cfm.c
398
mdlevel = hdr->mdlevel_version >> 5;
net/bridge/br_cfm.c
403
if ((hdr->mdlevel_version & 0x1F) != 0) {
net/bridge/br_cfm.c
415
if (hdr->opcode == BR_CFM_OPCODE_CCM) {
net/bridge/br_cfm.c
439
interval = hdr->flags & 0x07;
net/bridge/br_cfm.c
459
peer_mep->cc_status.rdi = (hdr->flags & 0x80) ? true : false;
net/bridge/br_mrp.c
1003
const struct br_mrp_tlv_hdr *hdr;
net/bridge/br_mrp.c
1009
hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr);
net/bridge/br_mrp.c
1010
if (!hdr)
net/bridge/br_mrp.c
1039
const struct br_mrp_tlv_hdr *hdr;
net/bridge/br_mrp.c
1045
hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr);
net/bridge/br_mrp.c
1046
if (!hdr)
net/bridge/br_mrp.c
1049
return hdr->type;
net/bridge/br_mrp.c
164
struct br_mrp_tlv_hdr *hdr;
net/bridge/br_mrp.c
166
hdr = skb_put(skb, sizeof(*hdr));
net/bridge/br_mrp.c
167
hdr->type = type;
net/bridge/br_mrp.c
168
hdr->length = length;
net/bridge/br_mrp.c
173
struct br_mrp_common_hdr *hdr;
net/bridge/br_mrp.c
175
br_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_COMMON, sizeof(*hdr));
net/bridge/br_mrp.c
177
hdr = skb_put(skb, sizeof(*hdr));
net/bridge/br_mrp.c
178
hdr->seq_id = cpu_to_be16(br_mrp_next_seq(mrp));
net/bridge/br_mrp.c
179
memset(hdr->domain, 0xff, MRP_DOMAIN_UUID_LENGTH);
net/bridge/br_mrp.c
186
struct br_mrp_ring_test_hdr *hdr = NULL;
net/bridge/br_mrp.c
196
br_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_RING_TEST, sizeof(*hdr));
net/bridge/br_mrp.c
197
hdr = skb_put(skb, sizeof(*hdr));
net/bridge/br_mrp.c
199
hdr->prio = cpu_to_be16(mrp->prio);
net/bridge/br_mrp.c
200
ether_addr_copy(hdr->sa, p->br->dev->dev_addr);
net/bridge/br_mrp.c
201
hdr->port_role = cpu_to_be16(port_role);
net/bridge/br_mrp.c
202
hdr->state = cpu_to_be16(mrp->ring_state);
net/bridge/br_mrp.c
203
hdr->transitions = cpu_to_be16(mrp->ring_transitions);
net/bridge/br_mrp.c
204
hdr->timestamp = cpu_to_be32(jiffies_to_msecs(jiffies));
net/bridge/br_mrp.c
243
struct br_mrp_in_test_hdr *hdr = NULL;
net/bridge/br_mrp.c
253
br_mrp_skb_tlv(skb, BR_MRP_TLV_HEADER_IN_TEST, sizeof(*hdr));
net/bridge/br_mrp.c
254
hdr = skb_put(skb, sizeof(*hdr));
net/bridge/br_mrp.c
256
hdr->id = cpu_to_be16(mrp->in_id);
net/bridge/br_mrp.c
257
ether_addr_copy(hdr->sa, p->br->dev->dev_addr);
net/bridge/br_mrp.c
258
hdr->port_role = cpu_to_be16(port_role);
net/bridge/br_mrp.c
259
hdr->state = cpu_to_be16(mrp->in_state);
net/bridge/br_mrp.c
260
hdr->transitions = cpu_to_be16(mrp->in_transitions);
net/bridge/br_mrp.c
261
hdr->timestamp = cpu_to_be32(jiffies_to_msecs(jiffies));
net/bridge/br_mrp.c
877
const struct br_mrp_tlv_hdr *hdr;
net/bridge/br_mrp.c
880
hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr);
net/bridge/br_mrp.c
881
if (!hdr)
net/bridge/br_mrp.c
884
if (hdr->type == BR_MRP_TLV_HEADER_RING_TEST ||
net/bridge/br_mrp.c
885
hdr->type == BR_MRP_TLV_HEADER_RING_TOPO ||
net/bridge/br_mrp.c
886
hdr->type == BR_MRP_TLV_HEADER_RING_LINK_DOWN ||
net/bridge/br_mrp.c
887
hdr->type == BR_MRP_TLV_HEADER_RING_LINK_UP ||
net/bridge/br_mrp.c
888
hdr->type == BR_MRP_TLV_HEADER_OPTION)
net/bridge/br_mrp.c
897
const struct br_mrp_tlv_hdr *hdr;
net/bridge/br_mrp.c
900
hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr);
net/bridge/br_mrp.c
901
if (!hdr)
net/bridge/br_mrp.c
904
if (hdr->type == BR_MRP_TLV_HEADER_IN_TEST ||
net/bridge/br_mrp.c
905
hdr->type == BR_MRP_TLV_HEADER_IN_TOPO ||
net/bridge/br_mrp.c
906
hdr->type == BR_MRP_TLV_HEADER_IN_LINK_DOWN ||
net/bridge/br_mrp.c
907
hdr->type == BR_MRP_TLV_HEADER_IN_LINK_UP ||
net/bridge/br_mrp.c
908
hdr->type == BR_MRP_TLV_HEADER_IN_LINK_STATUS)
net/bridge/br_mrp.c
921
const struct br_mrp_tlv_hdr *hdr;
net/bridge/br_mrp.c
927
hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr);
net/bridge/br_mrp.c
928
if (!hdr)
net/bridge/br_mrp.c
931
if (hdr->type != BR_MRP_TLV_HEADER_RING_TEST)
net/bridge/br_mrp.c
946
const struct br_mrp_ring_test_hdr *hdr)
net/bridge/br_mrp.c
948
u16 prio = be16_to_cpu(hdr->prio);
net/bridge/br_mrp.c
952
ether_addr_to_u64(hdr->sa) < ether_addr_to_u64(br->dev->dev_addr)))
net/bridge/br_mrp.c
968
const struct br_mrp_tlv_hdr *hdr;
net/bridge/br_mrp.c
974
hdr = skb_header_pointer(skb, sizeof(uint16_t), sizeof(_hdr), &_hdr);
net/bridge/br_mrp.c
975
if (!hdr)
net/bridge/br_mrp.c
978
if (hdr->type != BR_MRP_TLV_HEADER_RING_TEST)
net/bridge/br_netfilter_ipv6.c
45
const struct ipv6hdr *hdr;
net/bridge/br_netfilter_ipv6.c
56
hdr = ipv6_hdr(skb);
net/bridge/br_netfilter_ipv6.c
58
if (hdr->version != 6)
net/bridge/br_netfilter_ipv6.c
61
pkt_len = ipv6_payload_len(skb, hdr);
net/bridge/br_netfilter_ipv6.c
62
if (hdr->nexthdr == NEXTHDR_HOP && nf_ip6_check_hbh_len(skb, &pkt_len))
net/bridge/br_netlink.c
462
struct ifinfomsg *hdr;
net/bridge/br_netlink.c
473
nlh = nlmsg_put(skb, pid, seq, event, sizeof(*hdr), flags);
net/bridge/br_netlink.c
477
hdr = nlmsg_data(nlh);
net/bridge/br_netlink.c
478
hdr->ifi_family = AF_BRIDGE;
net/bridge/br_netlink.c
479
hdr->__ifi_pad = 0;
net/bridge/br_netlink.c
480
hdr->ifi_type = dev->type;
net/bridge/br_netlink.c
481
hdr->ifi_index = dev->ifindex;
net/bridge/br_netlink.c
482
hdr->ifi_flags = netif_get_flags(dev);
net/bridge/br_netlink.c
483
hdr->ifi_change = 0;
net/bridge/netfilter/ebt_802_3.c
26
const struct ebt_802_3_hdr *hdr = ebt_802_3_hdr(skb);
net/bridge/netfilter/ebt_802_3.c
27
__be16 type = hdr->llc.ui.ctrl & IS_UI ? hdr->llc.ui.type : hdr->llc.ni.type;
net/bridge/netfilter/ebt_802_3.c
30
if (NF_INVF(info, EBT_802_3_SAP, info->sap != hdr->llc.ui.ssap))
net/bridge/netfilter/ebt_802_3.c
32
if (NF_INVF(info, EBT_802_3_SAP, info->sap != hdr->llc.ui.dsap))
net/bridge/netfilter/ebt_802_3.c
37
if (!(hdr->llc.ui.dsap == CHECK_TYPE && hdr->llc.ui.ssap == CHECK_TYPE))
net/bridge/netfilter/nf_conntrack_bridge.c
224
const struct ipv6hdr *hdr;
net/bridge/netfilter/nf_conntrack_bridge.c
228
hdr = ipv6_hdr(skb);
net/bridge/netfilter/nf_conntrack_bridge.c
229
if (hdr->version != 6)
net/bridge/netfilter/nf_conntrack_bridge.c
232
len = ipv6_payload_len(skb, hdr) + sizeof(struct ipv6hdr) + nhoff;
net/ceph/auth_x.c
1047
sigblock->header_crc = msg->hdr.crc;
net/ceph/auth_x.c
1083
sigblock->header_crc = msg->hdr.crc;
net/ceph/auth_x.c
1085
sigblock->front_len = msg->hdr.front_len;
net/ceph/auth_x.c
1087
sigblock->middle_len = msg->hdr.middle_len;
net/ceph/auth_x.c
1089
sigblock->data_len = msg->hdr.data_len;
net/ceph/auth_x.c
109
struct ceph_x_encrypt_header *hdr;
net/ceph/auth_x.c
1090
sigblock->seq_lower_word = *(__le32 *)&msg->hdr.seq;
net/ceph/auth_x.c
118
hdr = p + ceph_crypt_data_offset(key);
net/ceph/auth_x.c
119
if (le64_to_cpu(hdr->magic) != CEPHX_ENC_MAGIC) {
net/ceph/auth_x.c
124
return plaintext_len - sizeof(*hdr);
net/ceph/auth_x.c
88
struct ceph_x_encrypt_header *hdr;
net/ceph/auth_x.c
92
hdr = buf + sizeof(u32) + ceph_crypt_data_offset(key);
net/ceph/auth_x.c
93
hdr->struct_v = 1;
net/ceph/auth_x.c
94
hdr->magic = cpu_to_le64(CEPHX_ENC_MAGIC);
net/ceph/auth_x.c
97
buf_len - sizeof(u32), plaintext_len + sizeof(*hdr),
net/ceph/debugfs.c
169
op = le16_to_cpu(req->request->hdr.type);
net/ceph/messenger.c
1411
con->peer_name = msg->hdr.src;
net/ceph/messenger.c
1417
msg, le64_to_cpu(msg->hdr.seq),
net/ceph/messenger.c
1418
ENTITY_NAME(msg->hdr.src),
net/ceph/messenger.c
1419
le16_to_cpu(msg->hdr.type),
net/ceph/messenger.c
1420
ceph_msg_type_name(le16_to_cpu(msg->hdr.type)),
net/ceph/messenger.c
1421
le32_to_cpu(msg->hdr.front_len),
net/ceph/messenger.c
1422
le32_to_cpu(msg->hdr.middle_len),
net/ceph/messenger.c
1423
le32_to_cpu(msg->hdr.data_len),
net/ceph/messenger.c
1735
msg->hdr.src = con->msgr->inst.name;
net/ceph/messenger.c
1736
BUG_ON(msg->front.iov_len != le32_to_cpu(msg->hdr.front_len));
net/ceph/messenger.c
1753
ENTITY_NAME(con->peer_name), le16_to_cpu(msg->hdr.type),
net/ceph/messenger.c
1754
ceph_msg_type_name(le16_to_cpu(msg->hdr.type)),
net/ceph/messenger.c
1755
le32_to_cpu(msg->hdr.front_len),
net/ceph/messenger.c
1756
le32_to_cpu(msg->hdr.middle_len),
net/ceph/messenger.c
1757
le32_to_cpu(msg->hdr.data_len));
net/ceph/messenger.c
1790
msg->hdr.seq = 0;
net/ceph/messenger.c
1975
m->hdr.type = cpu_to_le16(type);
net/ceph/messenger.c
1976
m->hdr.priority = cpu_to_le16(CEPH_MSG_PRIO_DEFAULT);
net/ceph/messenger.c
1977
m->hdr.front_len = cpu_to_le32(front_len);
net/ceph/messenger.c
2037
int type = le16_to_cpu(msg->hdr.type);
net/ceph/messenger.c
2038
int middle_len = le32_to_cpu(msg->hdr.middle_len);
net/ceph/messenger.c
2067
struct ceph_msg_header *hdr, int *skip)
net/ceph/messenger.c
2069
int middle_len = le32_to_cpu(hdr->middle_len);
net/ceph/messenger.c
2077
msg = con->ops->alloc_msg(con, hdr, skip);
net/ceph/messenger.c
2100
memcpy(&con->in_msg->hdr, hdr, sizeof(*hdr));
net/ceph/messenger.c
2134
msg->hdr.seq = cpu_to_le64(++con->out_seq);
net/ceph/messenger.c
2208
&msg->hdr, sizeof(msg->hdr), true);
net/ceph/messenger.c
682
seq = le64_to_cpu(msg->hdr.seq);
net/ceph/messenger.c
708
seq = le64_to_cpu(msg->hdr.seq);
net/ceph/messenger_v1.c
213
m, con->out_seq, le16_to_cpu(m->hdr.type),
net/ceph/messenger_v1.c
214
le32_to_cpu(m->hdr.front_len), le32_to_cpu(m->hdr.middle_len),
net/ceph/messenger_v1.c
216
WARN_ON(m->front.iov_len != le32_to_cpu(m->hdr.front_len));
net/ceph/messenger_v1.c
217
WARN_ON(m->data_length != le32_to_cpu(m->hdr.data_len));
net/ceph/messenger_v1.c
229
crc = crc32c(0, &m->hdr, offsetof(struct ceph_msg_header, crc));
net/ceph/messenger_v1.c
230
m->hdr.crc = cpu_to_le32(crc);
net/ceph/messenger_v1.c
231
memcpy(&con->v1.out_hdr, &m->hdr, sizeof(con->v1.out_hdr));
net/ceph/messenger_v2.c
1722
fill_header2(CTRL_BODY(con->v2.out_buf), &msg->hdr,
net/ceph/messenger_v2.c
2836
struct ceph_msg_header hdr;
net/ceph/messenger_v2.c
2861
fill_header(&hdr, hdr2, desc->fd_lens[1], desc->fd_lens[2],
net/ceph/messenger_v2.c
2863
ret = ceph_con_in_msg_alloc(con, &hdr, &skip);
net/ceph/messenger_v2.c
361
return le32_to_cpu(msg->hdr.front_len);
net/ceph/messenger_v2.c
366
return le32_to_cpu(msg->hdr.middle_len);
net/ceph/messenger_v2.c
371
return le32_to_cpu(msg->hdr.data_len);
net/ceph/messenger_v2.c
602
static void fill_header(struct ceph_msg_header *hdr,
net/ceph/messenger_v2.c
607
hdr->seq = hdr2->seq;
net/ceph/messenger_v2.c
608
hdr->tid = hdr2->tid;
net/ceph/messenger_v2.c
609
hdr->type = hdr2->type;
net/ceph/messenger_v2.c
610
hdr->priority = hdr2->priority;
net/ceph/messenger_v2.c
611
hdr->version = hdr2->version;
net/ceph/messenger_v2.c
612
hdr->front_len = cpu_to_le32(front_len);
net/ceph/messenger_v2.c
613
hdr->middle_len = cpu_to_le32(middle_len);
net/ceph/messenger_v2.c
614
hdr->data_len = cpu_to_le32(data_len);
net/ceph/messenger_v2.c
615
hdr->data_off = hdr2->data_off;
net/ceph/messenger_v2.c
616
hdr->src = *peer_name;
net/ceph/messenger_v2.c
617
hdr->compat_version = hdr2->compat_version;
net/ceph/messenger_v2.c
618
hdr->reserved = 0;
net/ceph/messenger_v2.c
619
hdr->crc = 0;
net/ceph/messenger_v2.c
623
const struct ceph_msg_header *hdr, u64 ack_seq)
net/ceph/messenger_v2.c
625
hdr2->seq = hdr->seq;
net/ceph/messenger_v2.c
626
hdr2->tid = hdr->tid;
net/ceph/messenger_v2.c
627
hdr2->type = hdr->type;
net/ceph/messenger_v2.c
628
hdr2->priority = hdr->priority;
net/ceph/messenger_v2.c
629
hdr2->version = hdr->version;
net/ceph/messenger_v2.c
631
hdr2->data_off = hdr->data_off;
net/ceph/messenger_v2.c
634
hdr2->compat_version = hdr->compat_version;
net/ceph/mon_client.c
1447
int type = le16_to_cpu(msg->hdr.type);
net/ceph/mon_client.c
1494
struct ceph_msg_header *hdr,
net/ceph/mon_client.c
1498
int type = le16_to_cpu(hdr->type);
net/ceph/mon_client.c
1499
int front_len = le32_to_cpu(hdr->front_len);
net/ceph/mon_client.c
1510
return get_generic_reply(con, hdr, skip);
net/ceph/mon_client.c
1515
if (le64_to_cpu(hdr->tid) != 0)
net/ceph/mon_client.c
1516
return get_generic_reply(con, hdr, skip);
net/ceph/mon_client.c
179
monc->m_auth->hdr.front_len = cpu_to_le32(len);
net/ceph/mon_client.c
347
msg->hdr.version = cpu_to_le16(2);
net/ceph/mon_client.c
377
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
net/ceph/mon_client.c
644
req->request->hdr.tid = cpu_to_le64(req->tid);
net/ceph/mon_client.c
707
struct ceph_msg_header *hdr,
net/ceph/mon_client.c
712
u64 tid = le64_to_cpu(hdr->tid);
net/ceph/mon_client.c
743
u64 tid = le64_to_cpu(msg->hdr.tid);
net/ceph/mon_client.c
794
req->request->hdr.version = cpu_to_le16(2);
net/ceph/mon_client.c
820
u64 tid = le64_to_cpu(msg->hdr.tid);
net/ceph/mon_client.c
945
u64 tid = le64_to_cpu(msg->hdr.tid);
net/ceph/msgpool.c
87
msg->hdr.front_len = cpu_to_le32(pool->front_len);
net/ceph/osd_client.c
2205
msg->hdr.version = cpu_to_le16(8); /* MOSDOp v8 */
net/ceph/osd_client.c
2208
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
net/ceph/osd_client.c
2209
msg->hdr.data_len = cpu_to_le32(data_len);
net/ceph/osd_client.c
2215
msg->hdr.data_off = cpu_to_le16(req->r_data_offset);
net/ceph/osd_client.c
2300
msg->hdr.version = cpu_to_le16(4); /* MOSDOp v4 */
net/ceph/osd_client.c
2305
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
net/ceph/osd_client.c
2308
le64_to_cpu(msg->hdr.tid), le32_to_cpu(msg->hdr.front_len),
net/ceph/osd_client.c
2309
le32_to_cpu(msg->hdr.middle_len), le32_to_cpu(msg->hdr.data_len),
net/ceph/osd_client.c
2310
le16_to_cpu(msg->hdr.version));
net/ceph/osd_client.c
2353
req->r_request->hdr.tid = cpu_to_le64(req->r_tid);
net/ceph/osd_client.c
3673
u16 version = le16_to_cpu(msg->hdr.version);
net/ceph/osd_client.c
3754
u64 tid = le64_to_cpu(msg->hdr.tid);
net/ceph/osd_client.c
3766
WARN_ON(osd->o_osd != le64_to_cpu(msg->hdr.src.num));
net/ceph/osd_client.c
3851
if (data_len != le32_to_cpu(msg->hdr.data_len)) {
net/ceph/osd_client.c
3853
le32_to_cpu(msg->hdr.data_len), req->r_tid);
net/ceph/osd_client.c
4392
msg->hdr.version = cpu_to_le16(1); /* MOSDBackoff v1 */
net/ceph/osd_client.c
4393
msg->hdr.front_len = cpu_to_le32(msg->front.iov_len);
net/ceph/osd_client.c
4527
WARN_ON(osd->o_osd != le64_to_cpu(msg->hdr.src.num));
net/ceph/osd_client.c
4586
if (le16_to_cpu(msg->hdr.version) >= 2)
net/ceph/osd_client.c
4589
if (le16_to_cpu(msg->hdr.version) >= 3)
net/ceph/osd_client.c
5363
int type = le16_to_cpu(msg->hdr.type);
net/ceph/osd_client.c
5411
struct ceph_msg_header *hdr,
net/ceph/osd_client.c
5418
int front_len = le32_to_cpu(hdr->front_len);
net/ceph/osd_client.c
5419
int data_len = le32_to_cpu(hdr->data_len);
net/ceph/osd_client.c
5420
u64 tid = le64_to_cpu(hdr->tid);
net/ceph/osd_client.c
5429
WARN_ON(osd->o_osd != le64_to_cpu(hdr->src.num));
net/ceph/osd_client.c
5476
static struct ceph_msg *alloc_msg_with_page_vector(struct ceph_msg_header *hdr)
net/ceph/osd_client.c
5479
int type = le16_to_cpu(hdr->type);
net/ceph/osd_client.c
5480
u32 front_len = le32_to_cpu(hdr->front_len);
net/ceph/osd_client.c
5481
u32 data_len = le32_to_cpu(hdr->data_len);
net/ceph/osd_client.c
5504
struct ceph_msg_header *hdr,
net/ceph/osd_client.c
5508
int type = le16_to_cpu(hdr->type);
net/ceph/osd_client.c
5515
return alloc_msg_with_page_vector(hdr);
net/ceph/osd_client.c
5517
return get_reply(con, hdr, skip);
net/ceph/osd_client.c
5677
int type = le16_to_cpu(msg->hdr.type);
net/ceph/osd_client.c
5725
req = lookup_request(&o->o_requests, le64_to_cpu(con->in_msg->hdr.tid));
net/core/drop_monitor.c
1395
void *hdr;
net/core/drop_monitor.c
1397
hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq,
net/core/drop_monitor.c
1399
if (!hdr)
net/core/drop_monitor.c
1411
genlmsg_end(msg, hdr);
net/core/drop_monitor.c
1416
genlmsg_cancel(msg, hdr);
net/core/drop_monitor.c
1530
void *hdr;
net/core/drop_monitor.c
1533
hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq,
net/core/drop_monitor.c
1535
if (!hdr)
net/core/drop_monitor.c
1546
genlmsg_end(msg, hdr);
net/core/drop_monitor.c
1551
genlmsg_cancel(msg, hdr);
net/core/drop_monitor.c
381
void *hdr;
net/core/drop_monitor.c
384
hdr = genlmsg_put(msg, 0, 0, &net_drop_monitor_family, 0,
net/core/drop_monitor.c
386
if (!hdr)
net/core/drop_monitor.c
399
genlmsg_end(msg, hdr);
net/core/drop_monitor.c
404
genlmsg_cancel(msg, hdr);
net/core/drop_monitor.c
619
void *hdr;
net/core/drop_monitor.c
622
hdr = genlmsg_put(msg, 0, 0, &net_drop_monitor_family, 0,
net/core/drop_monitor.c
624
if (!hdr)
net/core/drop_monitor.c
681
genlmsg_end(msg, hdr);
net/core/drop_monitor.c
686
genlmsg_cancel(msg, hdr);
net/core/drop_monitor.c
785
void *hdr;
net/core/drop_monitor.c
789
hdr = genlmsg_put(msg, 0, 0, &net_drop_monitor_family, 0,
net/core/drop_monitor.c
791
if (!hdr)
net/core/drop_monitor.c
841
genlmsg_end(msg, hdr);
net/core/drop_monitor.c
846
genlmsg_cancel(msg, hdr);
net/core/filter.c
6586
static int bpf_push_seg6_encap(struct sk_buff *skb, u32 type, void *hdr, u32 len)
net/core/filter.c
6589
struct ipv6_sr_hdr *srh = (struct ipv6_sr_hdr *)hdr;
net/core/filter.c
6621
static int bpf_push_ip_encap(struct sk_buff *skb, void *hdr, u32 len,
net/core/filter.c
6624
return bpf_lwt_push_ip_encap(skb, hdr, len, ingress);
net/core/filter.c
6628
BPF_CALL_4(bpf_lwt_in_push_encap, struct sk_buff *, skb, u32, type, void *, hdr,
net/core/filter.c
6635
return bpf_push_seg6_encap(skb, type, hdr, len);
net/core/filter.c
6639
return bpf_push_ip_encap(skb, hdr, len, true /* ingress */);
net/core/filter.c
6647
void *, hdr, u32, len)
net/core/filter.c
6652
return bpf_push_ip_encap(skb, hdr, len, false /* egress */);
net/core/filter.c
6819
struct ipv6hdr *hdr;
net/core/filter.c
6852
hdr = (struct ipv6hdr *)skb->data;
net/core/filter.c
6853
hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr));
net/core/flow_dissector.c
1033
static bool is_pppoe_ses_hdr_valid(const struct pppoe_hdr *hdr)
net/core/flow_dissector.c
1035
return hdr->ver == 1 && hdr->type == 1 && hdr->code == 0;
net/core/flow_dissector.c
1361
struct pppoe_hdr hdr;
net/core/flow_dissector.c
1363
} *hdr, _hdr;
net/core/flow_dissector.c
1366
hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data, hlen, &_hdr);
net/core/flow_dissector.c
1367
if (!hdr) {
net/core/flow_dissector.c
1372
if (!is_pppoe_ses_hdr_valid(&hdr->hdr)) {
net/core/flow_dissector.c
1380
ppp_proto = ntohs(hdr->proto);
net/core/flow_dissector.c
1414
key_pppoe->session_id = hdr->hdr.sid;
net/core/flow_dissector.c
1421
struct tipc_basic_hdr *hdr, _hdr;
net/core/flow_dissector.c
1423
hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr),
net/core/flow_dissector.c
1425
if (!hdr) {
net/core/flow_dissector.c
1435
key_addrs->tipckey.key = tipc_hdr_rps_key(hdr);
net/core/flow_dissector.c
1474
struct ptp_header *hdr, _hdr;
net/core/flow_dissector.c
1476
hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data,
net/core/flow_dissector.c
1478
if (!hdr) {
net/core/flow_dissector.c
1490
struct hsr_tag *hdr, _hdr;
net/core/flow_dissector.c
1492
hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data, hlen,
net/core/flow_dissector.c
1494
if (!hdr) {
net/core/flow_dissector.c
1499
proto = hdr->encap_proto;
net/core/flow_dissector.c
214
struct ip_auth_hdr _hdr, *hdr;
net/core/flow_dissector.c
219
hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data, hlen, &_hdr);
net/core/flow_dissector.c
220
if (!hdr)
net/core/flow_dissector.c
227
key_ah->spi = hdr->spi;
net/core/flow_dissector.c
236
struct ip_esp_hdr _hdr, *hdr;
net/core/flow_dissector.c
241
hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data, hlen, &_hdr);
net/core/flow_dissector.c
242
if (!hdr)
net/core/flow_dissector.c
249
key_esp->spi = hdr->spi;
net/core/flow_dissector.c
260
} *hdr, _hdr;
net/core/flow_dissector.c
265
hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data, hlen, &_hdr);
net/core/flow_dissector.c
266
if (!hdr)
net/core/flow_dissector.c
273
key_l2tpv3->session_id = hdr->session_id;
net/core/flow_dissector.c
520
struct mpls_label *hdr, _hdr;
net/core/flow_dissector.c
531
hdr = __skb_header_pointer(skb, nhoff, sizeof(_hdr), data,
net/core/flow_dissector.c
533
if (!hdr)
net/core/flow_dissector.c
536
entry = ntohl(hdr->entry);
net/core/flow_dissector.c
634
struct flow_dissector_key_cfm *key, *hdr, _hdr;
net/core/flow_dissector.c
639
hdr = __skb_header_pointer(skb, nhoff, sizeof(*key), data, hlen, &_hdr);
net/core/flow_dissector.c
640
if (!hdr)
net/core/flow_dissector.c
646
key->mdl_ver = hdr->mdl_ver;
net/core/flow_dissector.c
647
key->opcode = hdr->opcode;
net/core/flow_dissector.c
661
struct gre_base_hdr *hdr, _hdr;
net/core/flow_dissector.c
665
hdr = __skb_header_pointer(skb, *p_nhoff, sizeof(_hdr),
net/core/flow_dissector.c
667
if (!hdr)
net/core/flow_dissector.c
671
if (hdr->flags & GRE_ROUTING)
net/core/flow_dissector.c
675
gre_ver = ntohs(hdr->flags & GRE_VERSION);
net/core/flow_dissector.c
679
*p_proto = hdr->protocol;
net/core/flow_dissector.c
682
if (!(*p_proto == GRE_PROTO_PPP && (hdr->flags & GRE_KEY)))
net/core/flow_dissector.c
688
if (hdr->flags & GRE_CSUM)
net/core/flow_dissector.c
692
if (hdr->flags & GRE_KEY) {
net/core/flow_dissector.c
715
if (hdr->flags & GRE_SEQ)
net/core/flow_dissector.c
742
if (hdr->flags & GRE_ACK)
net/core/flow_dissector.c
802
} *hdr, _hdr;
net/core/flow_dissector.c
804
hdr = __skb_header_pointer(skb, *p_nhoff, sizeof(_hdr), data, hlen,
net/core/flow_dissector.c
806
if (!hdr)
net/core/flow_dissector.c
809
if (hdr->batadv_unicast.version != BATADV_COMPAT_VERSION)
net/core/flow_dissector.c
812
if (hdr->batadv_unicast.packet_type != BATADV_UNICAST)
net/core/flow_dissector.c
815
*p_proto = hdr->eth.h_proto;
net/core/flow_dissector.c
816
*p_nhoff += sizeof(*hdr);
net/core/lwt_bpf.c
596
int bpf_lwt_push_ip_encap(struct sk_buff *skb, void *hdr, u32 len, bool ingress)
net/core/lwt_bpf.c
606
iph = (struct iphdr *)hdr;
net/core/lwt_bpf.c
636
memcpy(skb_network_header(skb), hdr, len);
net/core/net_test.c
15
memcpy(skb_mac_header(skb), hdr, sizeof(hdr));
net/core/net_test.c
160
skb = build_skb(page_address(page), sizeof(hdr) + tcase->linear_len + shinfo_size);
net/core/net_test.c
162
__skb_put(skb, sizeof(hdr) + tcase->linear_len);
net/core/net_test.c
18
skb_pull(skb, sizeof(hdr));
net/core/net_test.c
242
KUNIT_ASSERT_EQ(test, cur->len, sizeof(hdr) + tcase->segs[i]);
net/core/net_test.c
246
KUNIT_ASSERT_PTR_EQ(test, skb_network_header(cur), cur->data + sizeof(hdr));
net/core/net_test.c
249
KUNIT_ASSERT_EQ(test, memcmp(skb_mac_header(cur), hdr, sizeof(hdr)), 0);
net/core/net_test.c
9
static const char hdr[] = "abcdefgh";
net/core/netdev-genl.c
1019
genlmsg_end(rsp, hdr);
net/core/netdev-genl.c
1055
void *hdr;
net/core/netdev-genl.c
1072
hdr = genlmsg_iput(rsp, info);
net/core/netdev-genl.c
1073
if (!hdr) {
net/core/netdev-genl.c
1107
genlmsg_end(rsp, hdr);
net/core/netdev-genl.c
168
void *hdr;
net/core/netdev-genl.c
174
hdr = genlmsg_iput(rsp, info);
net/core/netdev-genl.c
175
if (!hdr)
net/core/netdev-genl.c
212
genlmsg_end(rsp, hdr);
net/core/netdev-genl.c
217
genlmsg_cancel(rsp, hdr);
net/core/netdev-genl.c
39
void *hdr;
net/core/netdev-genl.c
396
void *hdr;
net/core/netdev-genl.c
398
hdr = genlmsg_iput(rsp, info);
net/core/netdev-genl.c
399
if (!hdr)
net/core/netdev-genl.c
43
hdr = genlmsg_iput(rsp, info);
net/core/netdev-genl.c
436
genlmsg_end(rsp, hdr);
net/core/netdev-genl.c
44
if (!hdr)
net/core/netdev-genl.c
441
genlmsg_cancel(rsp, hdr);
net/core/netdev-genl.c
646
void *hdr;
net/core/netdev-genl.c
648
hdr = genlmsg_iput(rsp, info);
net/core/netdev-genl.c
649
if (!hdr)
net/core/netdev-genl.c
675
genlmsg_end(rsp, hdr);
net/core/netdev-genl.c
679
genlmsg_cancel(rsp, hdr);
net/core/netdev-genl.c
682
genlmsg_cancel(rsp, hdr);
net/core/netdev-genl.c
769
void *hdr;
net/core/netdev-genl.c
77
genlmsg_end(rsp, hdr);
net/core/netdev-genl.c
785
hdr = genlmsg_iput(rsp, info);
net/core/netdev-genl.c
786
if (!hdr)
net/core/netdev-genl.c
798
genlmsg_end(rsp, hdr);
net/core/netdev-genl.c
802
genlmsg_cancel(rsp, hdr);
net/core/netdev-genl.c
82
genlmsg_cancel(rsp, hdr);
net/core/netdev-genl.c
945
void *hdr;
net/core/netdev-genl.c
963
hdr = genlmsg_iput(rsp, info);
net/core/netdev-genl.c
964
if (!hdr) {
net/core/page_pool_user.c
120
void *hdr;
net/core/page_pool_user.c
125
hdr = genlmsg_iput(rsp, info);
net/core/page_pool_user.c
126
if (!hdr)
net/core/page_pool_user.c
163
genlmsg_end(rsp, hdr);
net/core/page_pool_user.c
169
genlmsg_cancel(rsp, hdr);
net/core/page_pool_user.c
221
void *hdr;
net/core/page_pool_user.c
223
hdr = genlmsg_iput(rsp, info);
net/core/page_pool_user.c
224
if (!hdr)
net/core/page_pool_user.c
254
genlmsg_end(rsp, hdr);
net/core/page_pool_user.c
258
genlmsg_cancel(rsp, hdr);
net/core/ptp_classifier.c
142
struct ptp_header *hdr;
net/core/ptp_classifier.c
144
hdr = ptp_parse_header(skb, type);
net/core/ptp_classifier.c
145
if (!hdr)
net/core/ptp_classifier.c
148
return ptp_get_msgtype(hdr, type) == PTP_MSGTYPE_SYNC;
net/core/skbuff.c
6558
static void skb_mod_eth_type(struct sk_buff *skb, struct ethhdr *hdr,
net/core/skbuff.c
6562
__be16 diff[] = { ~hdr->h_proto, ethertype };
net/core/skbuff.c
6567
hdr->h_proto = ethertype;
net/core/skbuff.c
6659
struct ethhdr *hdr;
net/core/skbuff.c
6662
hdr = (struct ethhdr *)((void *)mpls_hdr(skb) - ETH_HLEN);
net/core/skbuff.c
6663
skb_mod_eth_type(skb, hdr, next_proto);
net/core/tso.c
14
memcpy(hdr, skb->data, hdr_len);
net/core/tso.c
16
struct iphdr *iph = (void *)(hdr + mac_hdr_len);
net/core/tso.c
22
struct ipv6hdr *iph = (void *)(hdr + mac_hdr_len);
net/core/tso.c
26
hdr += skb_transport_offset(skb);
net/core/tso.c
28
struct tcphdr *tcph = (struct tcphdr *)hdr;
net/core/tso.c
39
struct udphdr *uh = (struct udphdr *)hdr;
net/core/tso.c
8
void tso_build_hdr(const struct sk_buff *skb, char *hdr, struct tso_t *tso,
net/devlink/dev.c
1268
void *hdr;
net/devlink/dev.c
1272
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags,
net/devlink/dev.c
1274
if (!hdr)
net/devlink/dev.c
1295
genlmsg_end(msg, hdr);
net/devlink/dev.c
1299
genlmsg_cancel(msg, hdr);
net/devlink/dev.c
1378
void *hdr;
net/devlink/dev.c
1400
hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq,
net/devlink/dev.c
1402
if (!hdr)
net/devlink/dev.c
1433
genlmsg_end(msg, hdr);
net/devlink/dev.c
1439
genlmsg_cancel(msg, hdr);
net/devlink/dev.c
164
void *hdr;
net/devlink/dev.c
166
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/dev.c
167
if (!hdr)
net/devlink/dev.c
189
genlmsg_end(msg, hdr);
net/devlink/dev.c
195
genlmsg_cancel(msg, hdr);
net/devlink/dev.c
492
void *hdr;
net/devlink/dev.c
498
hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, &devlink_nl_family, 0, cmd);
net/devlink/dev.c
499
if (!hdr)
net/devlink/dev.c
508
genlmsg_end(msg, hdr);
net/devlink/dev.c
513
genlmsg_cancel(msg, hdr);
net/devlink/dev.c
635
void *hdr;
net/devlink/dev.c
639
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/dev.c
640
if (!hdr)
net/devlink/dev.c
675
genlmsg_end(msg, hdr);
net/devlink/dev.c
679
genlmsg_cancel(msg, hdr);
net/devlink/dev.c
877
void *hdr;
net/devlink/dev.c
880
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/dev.c
881
if (!hdr)
net/devlink/dev.c
899
genlmsg_end(msg, hdr);
net/devlink/dev.c
903
genlmsg_cancel(msg, hdr);
net/devlink/dev.c
953
void *hdr;
net/devlink/dev.c
955
hdr = genlmsg_put(msg, 0, 0, &devlink_nl_family, 0, cmd);
net/devlink/dev.c
956
if (!hdr)
net/devlink/dev.c
984
genlmsg_end(msg, hdr);
net/devlink/dev.c
988
genlmsg_cancel(msg, hdr);
net/devlink/dpipe.c
222
void *hdr;
net/devlink/dpipe.c
233
hdr = genlmsg_put(skb, info->snd_portid, info->snd_seq,
net/devlink/dpipe.c
235
if (!hdr) {
net/devlink/dpipe.c
268
genlmsg_end(skb, hdr);
net/devlink/dpipe.c
473
dump_ctx->hdr = genlmsg_put(dump_ctx->skb,
net/devlink/dpipe.c
478
if (!dump_ctx->hdr)
net/devlink/dpipe.c
506
genlmsg_end(dump_ctx->skb, dump_ctx->hdr);
net/devlink/dpipe.c
657
void *hdr;
net/devlink/dpipe.c
667
hdr = genlmsg_put(skb, info->snd_portid, info->snd_seq,
net/devlink/dpipe.c
669
if (!hdr) {
net/devlink/dpipe.c
691
genlmsg_end(skb, hdr);
net/devlink/health.c
1075
void *hdr;
net/devlink/health.c
1088
hdr = genlmsg_put(skb, info->snd_portid, info->snd_seq,
net/devlink/health.c
1090
if (!hdr) {
net/devlink/health.c
1101
genlmsg_end(skb, hdr);
net/devlink/health.c
1131
void *hdr;
net/devlink/health.c
1137
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/devlink/health.c
1139
if (!hdr) {
net/devlink/health.c
1149
genlmsg_end(skb, hdr);
net/devlink/health.c
1153
genlmsg_cancel(skb, hdr);
net/devlink/health.c
266
void *hdr;
net/devlink/health.c
268
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/health.c
269
if (!hdr)
net/devlink/health.c
321
genlmsg_end(msg, hdr);
net/devlink/health.c
327
genlmsg_cancel(msg, hdr);
net/devlink/linecard.c
121
genlmsg_end(msg, hdr);
net/devlink/linecard.c
125
genlmsg_cancel(msg, hdr);
net/devlink/linecard.c
82
void *hdr;
net/devlink/linecard.c
85
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/linecard.c
86
if (!hdr)
net/devlink/param.c
315
void *hdr;
net/devlink/param.c
354
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/param.c
355
if (!hdr)
net/devlink/param.c
395
genlmsg_end(msg, hdr);
net/devlink/param.c
403
genlmsg_cancel(msg, hdr);
net/devlink/port.c
492
void *hdr;
net/devlink/port.c
494
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/port.c
495
if (!hdr)
net/devlink/port.c
536
genlmsg_end(msg, hdr);
net/devlink/port.c
542
genlmsg_cancel(msg, hdr);
net/devlink/rate.c
111
void *hdr;
net/devlink/rate.c
113
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/rate.c
114
if (!hdr)
net/devlink/rate.c
157
genlmsg_end(msg, hdr);
net/devlink/rate.c
161
genlmsg_cancel(msg, hdr);
net/devlink/region.c
1022
genlmsg_end(skb, hdr);
net/devlink/region.c
1028
genlmsg_cancel(skb, hdr);
net/devlink/region.c
126
void *hdr;
net/devlink/region.c
129
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/region.c
130
if (!hdr)
net/devlink/region.c
161
genlmsg_end(msg, hdr);
net/devlink/region.c
165
genlmsg_cancel(msg, hdr);
net/devlink/region.c
176
void *hdr;
net/devlink/region.c
183
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, 0, cmd);
net/devlink/region.c
184
if (!hdr) {
net/devlink/region.c
216
genlmsg_end(msg, hdr);
net/devlink/region.c
221
genlmsg_cancel(msg, hdr);
net/devlink/region.c
878
void *hdr;
net/devlink/region.c
977
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/devlink/region.c
980
if (!hdr) {
net/devlink/resource.c
225
void *hdr;
net/devlink/resource.c
236
hdr = genlmsg_put(skb, info->snd_portid, info->snd_seq,
net/devlink/resource.c
238
if (!hdr) {
net/devlink/resource.c
264
genlmsg_end(skb, hdr);
net/devlink/sb.c
172
void *hdr;
net/devlink/sb.c
174
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/sb.c
175
if (!hdr)
net/devlink/sb.c
197
genlmsg_end(msg, hdr);
net/devlink/sb.c
201
genlmsg_cancel(msg, hdr);
net/devlink/sb.c
270
void *hdr;
net/devlink/sb.c
278
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/sb.c
279
if (!hdr)
net/devlink/sb.c
299
genlmsg_end(msg, hdr);
net/devlink/sb.c
303
genlmsg_cancel(msg, hdr);
net/devlink/sb.c
457
void *hdr;
net/devlink/sb.c
465
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/sb.c
466
if (!hdr)
net/devlink/sb.c
496
genlmsg_end(msg, hdr);
net/devlink/sb.c
502
genlmsg_cancel(msg, hdr);
net/devlink/sb.c
662
void *hdr;
net/devlink/sb.c
671
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/sb.c
672
if (!hdr)
net/devlink/sb.c
708
genlmsg_end(msg, hdr);
net/devlink/sb.c
712
genlmsg_cancel(msg, hdr);
net/devlink/trap.c
258
void *hdr;
net/devlink/trap.c
261
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/trap.c
262
if (!hdr)
net/devlink/trap.c
293
genlmsg_end(msg, hdr);
net/devlink/trap.c
298
genlmsg_cancel(msg, hdr);
net/devlink/trap.c
475
void *hdr;
net/devlink/trap.c
478
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/trap.c
479
if (!hdr)
net/devlink/trap.c
502
genlmsg_end(msg, hdr);
net/devlink/trap.c
507
genlmsg_cancel(msg, hdr);
net/devlink/trap.c
766
void *hdr;
net/devlink/trap.c
769
hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd);
net/devlink/trap.c
770
if (!hdr)
net/devlink/trap.c
793
genlmsg_end(msg, hdr);
net/devlink/trap.c
798
genlmsg_cancel(msg, hdr);
net/dns_resolver/dns_key.c
111
kenter("[%u,%u],%u", v1->hdr.content, v1->hdr.version, datalen);
net/dns_resolver/dns_key.c
112
if (v1->hdr.content != DNS_PAYLOAD_IS_SERVER_LIST) {
net/dns_resolver/dns_key.c
115
v1->hdr.content);
net/dns_resolver/dns_key.c
119
if (v1->hdr.version != 1) {
net/dns_resolver/dns_key.c
122
v1->hdr.version);
net/dsa/tag_8021q.c
544
struct vlan_ethhdr *hdr = vlan_eth_hdr(skb);
net/dsa/tag_8021q.c
546
vlan_proto = hdr->h_vlan_proto;
net/dsa/tag_ar9331.c
34
u16 hdr;
net/dsa/tag_ar9331.c
38
hdr = FIELD_PREP(AR9331_HDR_VERSION_MASK, AR9331_HDR_VERSION);
net/dsa/tag_ar9331.c
39
hdr |= AR9331_HDR_FROM_CPU | dp->index;
net/dsa/tag_ar9331.c
41
hdr |= AR9331_HDR_RESERVED_MASK;
net/dsa/tag_ar9331.c
43
phdr[0] = cpu_to_le16(hdr);
net/dsa/tag_ar9331.c
52
u16 hdr;
net/dsa/tag_ar9331.c
57
hdr = le16_to_cpu(*(__le16 *)skb_mac_header(skb));
net/dsa/tag_ar9331.c
59
ver = FIELD_GET(AR9331_HDR_VERSION_MASK, hdr);
net/dsa/tag_ar9331.c
62
__func__, __LINE__, hdr);
net/dsa/tag_ar9331.c
66
if (unlikely(hdr & AR9331_HDR_FROM_CPU)) {
net/dsa/tag_ar9331.c
68
__func__, __LINE__, hdr);
net/dsa/tag_ar9331.c
75
port = FIELD_GET(AR9331_HDR_PORT_NUM_MASK, hdr);
net/dsa/tag_ksz.c
123
struct ethhdr *hdr;
net/dsa/tag_ksz.c
131
hdr = skb_eth_hdr(skb);
net/dsa/tag_ksz.c
134
if (is_link_local_ether_addr(hdr->h_dest))
net/dsa/tag_ksz.c
283
struct ethhdr *hdr;
net/dsa/tag_ksz.c
294
hdr = skb_eth_hdr(skb);
net/dsa/tag_ksz.c
299
if (is_link_local_ether_addr(hdr->h_dest))
net/dsa/tag_ksz.c
352
struct ethhdr *hdr;
net/dsa/tag_ksz.c
362
hdr = skb_eth_hdr(skb);
net/dsa/tag_ksz.c
367
if (is_link_local_ether_addr(hdr->h_dest))
net/dsa/tag_ksz.c
417
const struct ethhdr *hdr = eth_hdr(skb);
net/dsa/tag_ksz.c
431
if (is_link_local_ether_addr(hdr->h_dest))
net/dsa/tag_mtk.c
71
u16 hdr;
net/dsa/tag_mtk.c
79
hdr = ntohs(*phdr);
net/dsa/tag_mtk.c
87
port = (hdr & MTK_HDR_RECV_SOURCE_PORT_MASK);
net/dsa/tag_ocelot_8021q.c
70
struct ethhdr *hdr = eth_hdr(skb);
net/dsa/tag_ocelot_8021q.c
72
if (ocelot_ptp_rew_op(skb) || is_link_local_ether_addr(hdr->h_dest))
net/dsa/tag_qca.c
18
u16 hdr;
net/dsa/tag_qca.c
26
hdr = FIELD_PREP(QCA_HDR_XMIT_VERSION, QCA_HDR_VERSION);
net/dsa/tag_qca.c
27
hdr |= QCA_HDR_XMIT_FROM_CPU;
net/dsa/tag_qca.c
28
hdr |= FIELD_PREP(QCA_HDR_XMIT_DP_BIT, dsa_xmit_port_mask(skb, dev));
net/dsa/tag_qca.c
30
*phdr = htons(hdr);
net/dsa/tag_qca.c
43
u16 hdr;
net/dsa/tag_qca.c
53
hdr = ntohs(*phdr);
net/dsa/tag_qca.c
56
ver = FIELD_GET(QCA_HDR_RECV_VERSION, hdr);
net/dsa/tag_qca.c
61
pk_type = FIELD_GET(QCA_HDR_RECV_TYPE, hdr);
net/dsa/tag_qca.c
78
port = FIELD_GET(QCA_HDR_RECV_SOURCE_PORT, hdr);
net/dsa/tag_sja1105.c
126
const struct ethhdr *hdr = eth_hdr(skb);
net/dsa/tag_sja1105.c
127
u64 smac = ether_addr_to_u64(hdr->h_source);
net/dsa/tag_sja1105.c
128
u64 dmac = ether_addr_to_u64(hdr->h_dest);
net/dsa/tag_sja1105.c
134
if (ntohs(hdr->h_proto) != ETH_P_SJA1105_META)
net/dsa/tag_sja1105.c
244
struct vlan_ethhdr *hdr;
net/dsa/tag_sja1105.c
256
hdr = skb_vlan_eth_hdr(skb);
net/dsa/tag_sja1105.c
259
if (hdr->h_vlan_proto == xmit_tpid)
net/dsa/tag_sja1105.c
349
struct ethhdr *hdr = eth_hdr(skb);
net/dsa/tag_sja1105.c
351
hdr->h_dest[3] = meta->dmac_byte_3;
net/dsa/tag_sja1105.c
352
hdr->h_dest[4] = meta->dmac_byte_4;
net/dsa/tag_sja1105.c
480
struct ethhdr *hdr;
net/dsa/tag_sja1105.c
484
hdr = eth_hdr(skb);
net/dsa/tag_sja1105.c
493
source_port = hdr->h_dest[3];
net/dsa/tag_sja1105.c
494
switch_id = hdr->h_dest[4];
net/dsa/tag_sja1105.c
80
const struct ethhdr *hdr = eth_hdr(skb);
net/dsa/tag_sja1105.c
81
u64 dmac = ether_addr_to_u64(hdr->h_dest);
net/dsa/tag_sja1105.c
83
if (ntohs(hdr->h_proto) == ETH_P_SJA1105_META)
net/ethtool/cmis.h
99
struct ethtool_cmis_cdb_rpl_hdr hdr;
net/ethtool/cmis_cdb.c
516
if ((args->rpl_exp_len > rpl->hdr.rpl_len + rpl_hdr_len) ||
net/ethtool/cmis_cdb.c
517
!rpl->hdr.rpl_chk_code) {
net/ethtool/cmis_cdb.c
522
args->req.lpl_len = rpl->hdr.rpl_len;
net/ethtool/module.c
484
void *hdr;
net/ethtool/module.c
494
hdr = ethnl_unicast_put(skb, ntf_params->portid, ++ntf_params->seq,
net/ethtool/module.c
496
if (!hdr)
net/ethtool/module.c
517
genlmsg_end(skb, hdr);
net/ethtool/rss.c
1003
void *hdr;
net/ethtool/rss.c
1086
hdr = ethnl_unicast_put(rsp, info->snd_portid, info->snd_seq,
net/ethtool/rss.c
1090
if (WARN_ON(!hdr || ntf_fail)) {
net/ethtool/rss.c
1095
genlmsg_end(rsp, hdr);
net/ethtool/rss.c
493
void *hdr;
net/ethtool/rss.c
502
hdr = ethnl_bcastmsg_put(ntf, ETHTOOL_MSG_RSS_DELETE_NTF);
net/ethtool/rss.c
503
if (!hdr)
net/ethtool/rss.c
510
genlmsg_end(ntf, hdr);
net/handshake/netlink.c
41
void *hdr;
net/handshake/netlink.c
55
hdr = genlmsg_put(msg, 0, 0, &handshake_nl_family, 0,
net/handshake/netlink.c
57
if (!hdr)
net/handshake/netlink.c
62
genlmsg_cancel(msg, hdr);
net/handshake/netlink.c
66
genlmsg_end(msg, hdr);
net/handshake/tlshd.c
200
struct nlmsghdr *hdr;
net/handshake/tlshd.c
212
hdr = handshake_genl_put(msg, info);
net/handshake/tlshd.c
213
if (!hdr)
net/handshake/tlshd.c
257
genlmsg_end(msg, hdr);
net/handshake/tlshd.c
261
genlmsg_cancel(msg, hdr);
net/ieee802154/6lowpan/reassembly.c
286
struct ieee802154_hdr hdr = {};
net/ieee802154/6lowpan/reassembly.c
289
if (ieee802154_hdr_peek_addrs(skb, &hdr) < 0)
net/ieee802154/6lowpan/reassembly.c
308
fq = fq_find(net, cb, &hdr.source, &hdr.dest);
net/ieee802154/6lowpan/reassembly.c
365
struct ctl_table_header *hdr;
net/ieee802154/6lowpan/reassembly.c
388
hdr = register_net_sysctl_sz(net, "net/ieee802154/6lowpan", table,
net/ieee802154/6lowpan/reassembly.c
390
if (hdr == NULL)
net/ieee802154/6lowpan/reassembly.c
393
ieee802154_lowpan->sysctl.frags_hdr = hdr;
net/ieee802154/6lowpan/rx.c
85
struct ieee802154_hdr hdr;
net/ieee802154/6lowpan/rx.c
87
if (ieee802154_hdr_peek_addrs(skb, &hdr) < 0)
net/ieee802154/6lowpan/rx.c
90
return lowpan_header_decompress(skb, skb->dev, &hdr.dest, &hdr.source);
net/ieee802154/6lowpan/tx.c
40
const struct ipv6hdr *hdr = ipv6_hdr(skb);
net/ieee802154/6lowpan/tx.c
62
n = neigh_lookup(&nd_tbl, &hdr->daddr, ldev);
net/ieee802154/header_ops.c
100
rc = ieee802154_hdr_push_addr(buf + pos, &hdr->source, fc->intra_pan);
net/ieee802154/header_ops.c
108
rc = ieee802154_hdr_push_sechdr(buf + pos, &hdr->sec);
net/ieee802154/header_ops.c
208
ieee802154_hdr_get_sechdr(const u8 *buf, struct ieee802154_sechdr *hdr)
net/ieee802154/header_ops.c
212
memcpy(hdr, buf, 1);
net/ieee802154/header_ops.c
213
memcpy(&hdr->frame_counter, buf + 1, 4);
net/ieee802154/header_ops.c
215
switch (hdr->key_id_mode) {
net/ieee802154/header_ops.c
223
memcpy(&hdr->short_src, buf + pos, 4);
net/ieee802154/header_ops.c
228
memcpy(&hdr->extended_src, buf + pos, IEEE802154_ADDR_LEN);
net/ieee802154/header_ops.c
233
hdr->key_id = buf[pos++];
net/ieee802154/header_ops.c
250
static int ieee802154_hdr_minlen(const struct ieee802154_hdr *hdr)
net/ieee802154/header_ops.c
254
dlen = ieee802154_hdr_addr_len(hdr->fc.dest_addr_mode, false);
net/ieee802154/header_ops.c
255
slen = ieee802154_hdr_addr_len(hdr->fc.source_addr_mode,
net/ieee802154/header_ops.c
256
hdr->fc.intra_pan);
net/ieee802154/header_ops.c
261
return 3 + dlen + slen + hdr->fc.security_enabled;
net/ieee802154/header_ops.c
265
ieee802154_hdr_get_addrs(const u8 *buf, struct ieee802154_hdr *hdr)
net/ieee802154/header_ops.c
269
pos += ieee802154_hdr_get_addr(buf + pos, hdr->fc.dest_addr_mode,
net/ieee802154/header_ops.c
270
false, &hdr->dest);
net/ieee802154/header_ops.c
271
pos += ieee802154_hdr_get_addr(buf + pos, hdr->fc.source_addr_mode,
net/ieee802154/header_ops.c
272
hdr->fc.intra_pan, &hdr->source);
net/ieee802154/header_ops.c
274
if (hdr->fc.intra_pan)
net/ieee802154/header_ops.c
275
hdr->source.pan_id = hdr->dest.pan_id;
net/ieee802154/header_ops.c
281
ieee802154_hdr_pull(struct sk_buff *skb, struct ieee802154_hdr *hdr)
net/ieee802154/header_ops.c
288
memcpy(hdr, skb->data, 3);
net/ieee802154/header_ops.c
290
rc = ieee802154_hdr_minlen(hdr);
net/ieee802154/header_ops.c
294
pos += ieee802154_hdr_get_addrs(skb->data + pos, hdr);
net/ieee802154/header_ops.c
296
if (hdr->fc.security_enabled) {
net/ieee802154/header_ops.c
302
pos += ieee802154_hdr_get_sechdr(skb->data + pos, &hdr->sec);
net/ieee802154/header_ops.c
324
ieee802154_hdr_peek_addrs(const struct sk_buff *skb, struct ieee802154_hdr *hdr)
net/ieee802154/header_ops.c
332
memcpy(hdr, buf, 3);
net/ieee802154/header_ops.c
334
rc = ieee802154_hdr_minlen(hdr);
net/ieee802154/header_ops.c
338
pos += ieee802154_hdr_get_addrs(buf + pos, hdr);
net/ieee802154/header_ops.c
344
ieee802154_hdr_peek(const struct sk_buff *skb, struct ieee802154_hdr *hdr)
net/ieee802154/header_ops.c
349
pos = ieee802154_hdr_peek_addrs(skb, hdr);
net/ieee802154/header_ops.c
353
if (hdr->fc.security_enabled) {
net/ieee802154/header_ops.c
360
pos += ieee802154_hdr_get_sechdr(buf + pos, &hdr->sec);
net/ieee802154/header_ops.c
367
int ieee802154_max_payload(const struct ieee802154_hdr *hdr)
net/ieee802154/header_ops.c
369
int hlen = ieee802154_hdr_minlen(hdr);
net/ieee802154/header_ops.c
371
if (hdr->fc.security_enabled) {
net/ieee802154/header_ops.c
372
hlen += ieee802154_sechdr_lengths[hdr->sec.key_id_mode] - 1;
net/ieee802154/header_ops.c
373
hlen += ieee802154_sechdr_authtag_len(&hdr->sec);
net/ieee802154/header_ops.c
47
ieee802154_hdr_push_sechdr(u8 *buf, const struct ieee802154_sechdr *hdr)
net/ieee802154/header_ops.c
51
memcpy(buf, hdr, 1);
net/ieee802154/header_ops.c
52
memcpy(buf + 1, &hdr->frame_counter, 4);
net/ieee802154/header_ops.c
54
switch (hdr->key_id_mode) {
net/ieee802154/header_ops.c
62
memcpy(buf + pos, &hdr->short_src, 4);
net/ieee802154/header_ops.c
67
memcpy(buf + pos, &hdr->extended_src, IEEE802154_ADDR_LEN);
net/ieee802154/header_ops.c
72
buf[pos++] = hdr->key_id;
net/ieee802154/header_ops.c
78
ieee802154_hdr_push(struct sk_buff *skb, struct ieee802154_hdr *hdr)
net/ieee802154/header_ops.c
83
struct ieee802154_hdr_fc *fc = &hdr->fc;
net/ieee802154/header_ops.c
85
buf[pos++] = hdr->seq;
net/ieee802154/header_ops.c
87
fc->dest_addr_mode = hdr->dest.mode;
net/ieee802154/header_ops.c
89
rc = ieee802154_hdr_push_addr(buf + pos, &hdr->dest, false);
net/ieee802154/header_ops.c
94
fc->source_addr_mode = hdr->source.mode;
net/ieee802154/header_ops.c
96
if (hdr->source.pan_id == hdr->dest.pan_id &&
net/ieee802154/header_ops.c
97
hdr->dest.mode != IEEE802154_ADDR_NONE)
net/ieee802154/netlink.c
26
void *hdr;
net/ieee802154/netlink.c
34
hdr = genlmsg_put(msg, 0, ieee802154_seq_num++,
net/ieee802154/netlink.c
37
if (!hdr) {
net/ieee802154/netlink.c
48
void *hdr = genlmsg_data(nlmsg_data(nlh));
net/ieee802154/netlink.c
50
genlmsg_end(msg, hdr);
net/ieee802154/netlink.c
58
void *hdr;
net/ieee802154/netlink.c
64
hdr = genlmsg_put_reply(msg, info,
net/ieee802154/netlink.c
66
if (!hdr) {
net/ieee802154/netlink.c
77
void *hdr = genlmsg_data(nlmsg_data(nlh));
net/ieee802154/netlink.c
79
genlmsg_end(msg, hdr);
net/ieee802154/nl-mac.c
1043
void *hdr;
net/ieee802154/nl-mac.c
1045
hdr = genlmsg_put(msg, 0, seq, &nl802154_family, NLM_F_MULTI,
net/ieee802154/nl-mac.c
1047
if (!hdr)
net/ieee802154/nl-mac.c
1064
genlmsg_end(msg, hdr);
net/ieee802154/nl-mac.c
1068
genlmsg_cancel(msg, hdr);
net/ieee802154/nl-mac.c
1151
void *hdr;
net/ieee802154/nl-mac.c
1153
hdr = genlmsg_put(msg, 0, seq, &nl802154_family, NLM_F_MULTI,
net/ieee802154/nl-mac.c
1155
if (!hdr)
net/ieee802154/nl-mac.c
1167
genlmsg_end(msg, hdr);
net/ieee802154/nl-mac.c
1171
genlmsg_cancel(msg, hdr);
net/ieee802154/nl-mac.c
1280
void *hdr;
net/ieee802154/nl-mac.c
1282
hdr = genlmsg_put(msg, 0, seq, &nl802154_family, NLM_F_MULTI,
net/ieee802154/nl-mac.c
1284
if (!hdr)
net/ieee802154/nl-mac.c
1300
genlmsg_end(msg, hdr);
net/ieee802154/nl-mac.c
1304
genlmsg_cancel(msg, hdr);
net/ieee802154/nl-mac.c
134
genlmsg_end(msg, hdr);
net/ieee802154/nl-mac.c
139
genlmsg_cancel(msg, hdr);
net/ieee802154/nl-mac.c
640
void *hdr;
net/ieee802154/nl-mac.c
659
hdr = genlmsg_put(msg, 0, info->snd_seq, &nl802154_family, 0,
net/ieee802154/nl-mac.c
661
if (!hdr)
net/ieee802154/nl-mac.c
77
void *hdr;
net/ieee802154/nl-mac.c
84
hdr = genlmsg_put(msg, 0, seq, &nl802154_family, flags,
net/ieee802154/nl-mac.c
86
if (!hdr)
net/ieee802154/nl-mac.c
906
void *hdr;
net/ieee802154/nl-mac.c
909
hdr = genlmsg_put(msg, 0, seq, &nl802154_family, NLM_F_MULTI,
net/ieee802154/nl-mac.c
911
if (!hdr)
net/ieee802154/nl-mac.c
933
genlmsg_end(msg, hdr);
net/ieee802154/nl-mac.c
937
genlmsg_cancel(msg, hdr);
net/ieee802154/nl-phy.c
31
void *hdr;
net/ieee802154/nl-phy.c
40
hdr = genlmsg_put(msg, 0, seq, &nl802154_family, flags,
net/ieee802154/nl-phy.c
42
if (!hdr)
net/ieee802154/nl-phy.c
60
genlmsg_end(msg, hdr);
net/ieee802154/nl-phy.c
65
genlmsg_cancel(msg, hdr);
net/ieee802154/nl802154.c
1305
void *hdr;
net/ieee802154/nl802154.c
1307
hdr = nl802154hdr_put(msg, portid, seq, flags, cmd);
net/ieee802154/nl802154.c
1308
if (!hdr)
net/ieee802154/nl802154.c
1362
genlmsg_end(msg, hdr);
net/ieee802154/nl802154.c
1367
genlmsg_cancel(msg, hdr);
net/ieee802154/nl802154.c
1473
void *hdr;
net/ieee802154/nl802154.c
1475
hdr = nl802154hdr_put(msg, portid, seq, flags, cmd);
net/ieee802154/nl802154.c
1476
if (!hdr)
net/ieee802154/nl802154.c
1494
genlmsg_end(msg, hdr);
net/ieee802154/nl802154.c
1499
genlmsg_cancel(msg, hdr);
net/ieee802154/nl802154.c
1728
void *hdr;
net/ieee802154/nl802154.c
1732
hdr = nl802154hdr_put(msg, NETLINK_CB(cb->skb).portid, seq, flags,
net/ieee802154/nl802154.c
1734
if (!hdr)
net/ieee802154/nl802154.c
1737
genl_dump_check_consistent(cb, hdr);
net/ieee802154/nl802154.c
1759
genlmsg_end(msg, hdr);
net/ieee802154/nl802154.c
1764
genlmsg_cancel(msg, hdr);
net/ieee802154/nl802154.c
1968
void *hdr;
net/ieee802154/nl802154.c
1972
hdr = nl802154hdr_put(msg, portid, seq, flags, cmd);
net/ieee802154/nl802154.c
1973
if (!hdr)
net/ieee802154/nl802154.c
2010
genlmsg_end(msg, hdr);
net/ieee802154/nl802154.c
2015
genlmsg_cancel(msg, hdr);
net/ieee802154/nl802154.c
2162
void *hdr;
net/ieee802154/nl802154.c
2165
hdr = nl802154hdr_put(msg, portid, seq, flags, cmd);
net/ieee802154/nl802154.c
2166
if (!hdr)
net/ieee802154/nl802154.c
2189
genlmsg_end(msg, hdr);
net/ieee802154/nl802154.c
2194
genlmsg_cancel(msg, hdr);
net/ieee802154/nl802154.c
2340
void *hdr;
net/ieee802154/nl802154.c
2343
hdr = nl802154hdr_put(msg, portid, seq, flags, cmd);
net/ieee802154/nl802154.c
2344
if (!hdr)
net/ieee802154/nl802154.c
2369
genlmsg_end(msg, hdr);
net/ieee802154/nl802154.c
2374
genlmsg_cancel(msg, hdr);
net/ieee802154/nl802154.c
2516
void *hdr;
net/ieee802154/nl802154.c
2519
hdr = nl802154hdr_put(msg, portid, seq, flags, cmd);
net/ieee802154/nl802154.c
2520
if (!hdr)
net/ieee802154/nl802154.c
2543
genlmsg_end(msg, hdr);
net/ieee802154/nl802154.c
2548
genlmsg_cancel(msg, hdr);
net/ieee802154/nl802154.c
456
void *hdr;
net/ieee802154/nl802154.c
459
hdr = nl802154hdr_put(msg, portid, seq, flags, cmd);
net/ieee802154/nl802154.c
460
if (!hdr)
net/ieee802154/nl802154.c
554
genlmsg_end(msg, hdr);
net/ieee802154/nl802154.c
558
genlmsg_cancel(msg, hdr);
net/ieee802154/nl802154.c
794
void *hdr;
net/ieee802154/nl802154.c
796
hdr = nl802154hdr_put(msg, portid, seq, flags,
net/ieee802154/nl802154.c
798
if (!hdr)
net/ieee802154/nl802154.c
851
genlmsg_end(msg, hdr);
net/ieee802154/nl802154.c
855
genlmsg_cancel(msg, hdr);
net/ipv4/fou_core.c
819
void *hdr;
net/ipv4/fou_core.c
821
hdr = genlmsg_put(skb, portid, seq, &fou_nl_family, flags, cmd);
net/ipv4/fou_core.c
822
if (!hdr)
net/ipv4/fou_core.c
828
genlmsg_end(skb, hdr);
net/ipv4/fou_core.c
832
genlmsg_cancel(skb, hdr);
net/ipv4/ip_fragment.c
594
struct ctl_table_header *hdr;
net/ipv4/ip_fragment.c
610
hdr = register_net_sysctl_sz(net, "net/ipv4", table,
net/ipv4/ip_fragment.c
612
if (!hdr)
net/ipv4/ip_fragment.c
615
net->ipv4.frags_hdr = hdr;
net/ipv4/ipmr.c
2997
struct ifinfomsg *hdr;
net/ipv4/ipmr.c
3004
sizeof(*hdr), NLM_F_MULTI);
net/ipv4/ipmr.c
3008
hdr = nlmsg_data(nlh);
net/ipv4/ipmr.c
3009
memset(hdr, 0, sizeof(*hdr));
net/ipv4/ipmr.c
3010
hdr->ifi_family = RTNL_FAMILY_IPMR;
net/ipv4/raw.c
140
const struct icmphdr *hdr;
net/ipv4/raw.c
142
hdr = skb_header_pointer(skb, skb_transport_offset(skb),
net/ipv4/raw.c
144
if (!hdr)
net/ipv4/raw.c
147
if (hdr->type < 32) {
net/ipv4/raw.c
150
return ((1U << hdr->type) & data) != 0;
net/ipv4/raw.c
441
err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen);
net/ipv4/raw.c
445
fl4->fl4_icmp_type = rfv->hdr.icmph.type;
net/ipv4/raw.c
446
fl4->fl4_icmp_code = rfv->hdr.icmph.code;
net/ipv4/raw.c
460
memcpy(to, rfv->hdr.c + offset, copy);
net/ipv4/raw.c
464
csum_partial_copy_nocheck(rfv->hdr.c + offset,
net/ipv4/raw.c
84
} hdr;
net/ipv4/sysctl_net_ipv4.c
1714
struct ctl_table_header *hdr;
net/ipv4/sysctl_net_ipv4.c
1716
hdr = register_net_sysctl(&init_net, "net/ipv4", ipv4_table);
net/ipv4/sysctl_net_ipv4.c
1717
if (!hdr)
net/ipv4/sysctl_net_ipv4.c
1723
unregister_net_sysctl_table(hdr);
net/ipv4/tcp_ao.c
532
u8 *hdr = hp->scratch;
net/ipv4/tcp_ao.c
538
memcpy(hdr, th, sizeof(*th));
net/ipv4/tcp_ao.c
539
memcpy(hdr + sizeof(*th),
net/ipv4/tcp_ao.c
542
memset(hdr + sizeof(*th) + sizeof(struct tcp_ao_hdr),
net/ipv4/tcp_ao.c
544
((struct tcphdr *)hdr)->check = 0;
net/ipv4/tcp_ao.c
547
memcpy(hdr, th, len);
net/ipv4/tcp_ao.c
549
((struct tcphdr *)hdr)->check = 0;
net/ipv4/tcp_ao.c
550
memset(hdr + hash_offset, 0, hash_len);
net/ipv4/tcp_ao.c
553
sg_init_one(&sg, hdr, len);
net/ipv4/tcp_metrics.c
748
void *hdr;
net/ipv4/tcp_metrics.c
750
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/ipv4/tcp_metrics.c
753
if (!hdr)
net/ipv4/tcp_metrics.c
759
genlmsg_end(skb, hdr);
net/ipv4/tcp_metrics.c
763
genlmsg_cancel(skb, hdr);
net/ipv4/xfrm4_output.c
41
struct iphdr *hdr;
net/ipv4/xfrm4_output.c
43
hdr = skb->encapsulation ? inner_ip_hdr(skb) : ip_hdr(skb);
net/ipv4/xfrm4_output.c
44
ip_local_error(skb->sk, EMSGSIZE, hdr->daddr,
net/ipv4/xfrm4_policy.c
157
struct ctl_table_header *hdr;
net/ipv4/xfrm4_policy.c
168
hdr = register_net_sysctl_sz(net, "net/ipv4", table,
net/ipv4/xfrm4_policy.c
170
if (!hdr)
net/ipv4/xfrm4_policy.c
173
net->ipv4.xfrm4_hdr = hdr;
net/ipv6/addrconf.c
6070
struct ifinfomsg *hdr;
net/ipv6/addrconf.c
6075
nlh = nlmsg_put(skb, portid, seq, event, sizeof(*hdr), flags);
net/ipv6/addrconf.c
6079
hdr = nlmsg_data(nlh);
net/ipv6/addrconf.c
6080
hdr->ifi_family = AF_INET6;
net/ipv6/addrconf.c
6081
hdr->__ifi_pad = 0;
net/ipv6/addrconf.c
6082
hdr->ifi_type = dev->type;
net/ipv6/addrconf.c
6084
hdr->ifi_index = ifindex;
net/ipv6/addrconf.c
6085
hdr->ifi_flags = netif_get_flags(dev);
net/ipv6/addrconf.c
6086
hdr->ifi_change = 0;
net/ipv6/datagram.c
768
struct ipv6_opt_hdr *hdr;
net/ipv6/datagram.c
872
hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg);
net/ipv6/datagram.c
873
len = ((hdr->hdrlen + 1) << 3);
net/ipv6/datagram.c
883
opt->hopopt = hdr;
net/ipv6/datagram.c
892
hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg);
net/ipv6/datagram.c
893
len = ((hdr->hdrlen + 1) << 3);
net/ipv6/datagram.c
907
opt->dst1opt = hdr;
net/ipv6/datagram.c
917
hdr = (struct ipv6_opt_hdr *)CMSG_DATA(cmsg);
net/ipv6/datagram.c
918
len = ((hdr->hdrlen + 1) << 3);
net/ipv6/datagram.c
931
opt->dst1opt = hdr;
net/ipv6/datagram.c
936
opt->dst0opt = hdr;
net/ipv6/exthdrs.c
343
struct ipv6_sr_hdr *hdr;
net/ipv6/exthdrs.c
351
hdr = (struct ipv6_sr_hdr *)skb_transport_header(skb);
net/ipv6/exthdrs.c
352
addr = hdr->segments + hdr->segments_left;
net/ipv6/exthdrs.c
354
hdr->segments_left++;
net/ipv6/exthdrs.c
355
from = *(__be32 *)hdr;
net/ipv6/exthdrs.c
357
hdr->segments_left--;
net/ipv6/exthdrs.c
358
to = *(__be32 *)hdr;
net/ipv6/exthdrs.c
374
struct ipv6_sr_hdr *hdr;
net/ipv6/exthdrs.c
379
hdr = (struct ipv6_sr_hdr *)skb_transport_header(skb);
net/ipv6/exthdrs.c
403
if (hdr->segments_left == 0) {
net/ipv6/exthdrs.c
404
if (hdr->nexthdr == NEXTHDR_IPV6 || hdr->nexthdr == NEXTHDR_IPV4) {
net/ipv6/exthdrs.c
405
int offset = (hdr->hdrlen + 1) << 3;
net/ipv6/exthdrs.c
416
if (hdr->nexthdr == NEXTHDR_IPV4)
net/ipv6/exthdrs.c
426
skb->transport_header += (hdr->hdrlen + 1) << 3;
net/ipv6/exthdrs.c
427
opt->nhoff = (&hdr->nexthdr) - skb_network_header(skb);
net/ipv6/exthdrs.c
432
if (hdr->segments_left >= (hdr->hdrlen >> 1)) {
net/ipv6/exthdrs.c
435
((&hdr->segments_left) -
net/ipv6/exthdrs.c
448
hdr = (struct ipv6_sr_hdr *)skb_transport_header(skb);
net/ipv6/exthdrs.c
451
hdr->segments_left--;
net/ipv6/exthdrs.c
452
addr = hdr->segments + hdr->segments_left;
net/ipv6/exthdrs.c
489
struct ipv6_rpl_sr_hdr *hdr, *ohdr, *chdr;
net/ipv6/exthdrs.c
510
hdr = (struct ipv6_rpl_sr_hdr *)skb_transport_header(skb);
net/ipv6/exthdrs.c
512
if (hdr->segments_left == 0) {
net/ipv6/exthdrs.c
513
if (hdr->nexthdr == NEXTHDR_IPV6) {
net/ipv6/exthdrs.c
514
int offset = (hdr->hdrlen + 1) << 3;
net/ipv6/exthdrs.c
534
skb->transport_header += (hdr->hdrlen + 1) << 3;
net/ipv6/exthdrs.c
535
opt->nhoff = (&hdr->nexthdr) - skb_network_header(skb);
net/ipv6/exthdrs.c
540
n = (hdr->hdrlen << 3) - hdr->pad - (16 - hdr->cmpre);
net/ipv6/exthdrs.c
541
r = do_div(n, (16 - hdr->cmpri));
net/ipv6/exthdrs.c
551
if (hdr->segments_left > n + 1) {
net/ipv6/exthdrs.c
554
((&hdr->segments_left) -
net/ipv6/exthdrs.c
559
hdr->segments_left--;
net/ipv6/exthdrs.c
560
i = n - hdr->segments_left;
net/ipv6/exthdrs.c
562
buf = kcalloc(struct_size(hdr, segments.addr, n + 2), 2, GFP_ATOMIC);
net/ipv6/exthdrs.c
569
ipv6_rpl_srh_decompress(ohdr, hdr, &ipv6_hdr(skb)->daddr, n);
net/ipv6/exthdrs.c
592
skb_pull(skb, ((hdr->hdrlen + 1) << 3));
net/ipv6/exthdrs.c
594
sizeof(struct ipv6hdr) + ((hdr->hdrlen + 1) << 3));
net/ipv6/exthdrs.c
595
if (unlikely(!hdr->segments_left)) {
net/ipv6/exthdrs.c
657
struct ipv6_rt_hdr *hdr;
net/ipv6/exthdrs.c
676
hdr = (struct ipv6_rt_hdr *)skb_transport_header(skb);
net/ipv6/exthdrs.c
685
switch (hdr->type) {
net/ipv6/exthdrs.c
697
if (hdr->segments_left == 0) {
net/ipv6/exthdrs.c
698
switch (hdr->type) {
net/ipv6/exthdrs.c
717
skb->transport_header += (hdr->hdrlen + 1) << 3;
net/ipv6/exthdrs.c
720
opt->nhoff = (&hdr->nexthdr) - skb_network_header(skb);
net/ipv6/exthdrs.c
724
switch (hdr->type) {
net/ipv6/exthdrs.c
730
if (hdr->hdrlen != 2 || hdr->segments_left != 1) {
net/ipv6/exthdrs.c
746
n = hdr->hdrlen >> 1;
net/ipv6/exthdrs.c
748
if (hdr->segments_left > n) {
net/ipv6/exthdrs.c
751
((&hdr->segments_left) -
net/ipv6/exthdrs.c
767
hdr = (struct ipv6_rt_hdr *)skb_transport_header(skb);
net/ipv6/exthdrs.c
773
i = n - --hdr->segments_left;
net/ipv6/exthdrs.c
775
rthdr = (struct rt0_hdr *) hdr;
net/ipv6/exthdrs.c
779
switch (hdr->type) {
net/ipv6/exthdrs.c
834
(&hdr->type) - skb_network_header(skb));
net/ipv6/exthdrs.c
912
struct ioam6_hdr *hdr;
net/ipv6/exthdrs.c
923
hdr = (struct ioam6_hdr *)(skb_network_header(skb) + optoff);
net/ipv6/exthdrs.c
924
if (hdr->opt_len < 2)
net/ipv6/exthdrs.c
927
switch (hdr->type) {
net/ipv6/exthdrs.c
930
if (hdr->opt_len < 2 + sizeof(*trace))
net/ipv6/exthdrs.c
934
trace = (struct ioam6_trace_hdr *)((u8 *)hdr + sizeof(*hdr));
net/ipv6/exthdrs.c
935
if (hdr->opt_len < 2 + sizeof(*trace) + trace->remlen * 4)
net/ipv6/exthdrs.c
952
if (skb_ensure_writable(skb, optoff + 2 + hdr->opt_len))
net/ipv6/exthdrs.c
957
+ optoff + sizeof(*hdr));
net/ipv6/exthdrs.c
962
GFP_ATOMIC, (void *)trace, hdr->opt_len - 2);
net/ipv6/exthdrs_core.c
120
struct ipv6_opt_hdr *hdr;
net/ipv6/exthdrs_core.c
125
hdr = (struct ipv6_opt_hdr *)(nh + offset);
net/ipv6/exthdrs_core.c
126
len = ((hdr->hdrlen + 1) << 3);
net/ipv6/icmp.c
1108
struct icmp6hdr *hdr;
net/ipv6/icmp.c
1121
if (!pskb_may_pull(skb, sizeof(*hdr) + sizeof(struct ipv6hdr)))
net/ipv6/icmp.c
1125
skb_set_network_header(skb, sizeof(*hdr));
net/ipv6/icmp.c
1147
if (!pskb_pull(skb, sizeof(*hdr)))
net/ipv6/icmp.c
1150
hdr = icmp6_hdr(skb);
net/ipv6/icmp.c
1152
type = hdr->icmp6_type;
net/ipv6/icmp.c
1180
hdr = icmp6_hdr(skb);
net/ipv6/icmp.c
1187
reason = icmpv6_notify(skb, type, hdr->icmp6_code,
net/ipv6/icmp.c
1188
hdr->icmp6_mtu);
net/ipv6/icmp.c
1230
reason = icmpv6_notify(skb, type, hdr->icmp6_code,
net/ipv6/icmp.c
1231
hdr->icmp6_mtu);
net/ipv6/icmp.c
641
struct ipv6hdr *hdr = ipv6_hdr(skb);
net/ipv6/icmp.c
659
if ((u8 *)hdr < skb->head ||
net/ipv6/icmp.c
660
(skb_network_header(skb) + sizeof(*hdr)) > skb_tail_pointer(skb))
net/ipv6/icmp.c
676
addr_type = ipv6_addr_type(&hdr->daddr);
net/ipv6/icmp.c
678
if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0) ||
net/ipv6/icmp.c
679
ipv6_chk_acast_addr_src(net, skb->dev, &hdr->daddr))
net/ipv6/icmp.c
680
saddr = &hdr->daddr;
net/ipv6/icmp.c
696
addr_type = ipv6_addr_type(&hdr->saddr);
net/ipv6/icmp.c
720
&hdr->saddr, &hdr->daddr);
net/ipv6/icmp.c
729
&hdr->saddr, &hdr->daddr);
net/ipv6/icmp.c
749
fl6.daddr = hdr->saddr;
net/ipv6/icmp.c
812
&hdr->saddr, &hdr->daddr);
net/ipv6/ila/ila_xlat.c
444
void *hdr;
net/ipv6/ila/ila_xlat.c
446
hdr = genlmsg_put(skb, portid, seq, &ila_nl_family, flags, cmd);
net/ipv6/ila/ila_xlat.c
447
if (!hdr)
net/ipv6/ila/ila_xlat.c
453
genlmsg_end(skb, hdr);
net/ipv6/ila/ila_xlat.c
457
genlmsg_cancel(skb, hdr);
net/ipv6/ioam6.c
207
void *hdr;
net/ipv6/ioam6.c
209
hdr = genlmsg_put(skb, portid, seq, &ioam6_genl_family, flags, cmd);
net/ipv6/ioam6.c
210
if (!hdr)
net/ipv6/ioam6.c
234
genlmsg_end(skb, hdr);
net/ipv6/ioam6.c
238
genlmsg_cancel(skb, hdr);
net/ipv6/ioam6.c
340
sc->hdr = cpu_to_be32(sc->id | ((u8)(sc->len / 4) << 24));
net/ipv6/ioam6.c
400
void *hdr;
net/ipv6/ioam6.c
402
hdr = genlmsg_put(skb, portid, seq, &ioam6_genl_family, flags, cmd);
net/ipv6/ioam6.c
403
if (!hdr)
net/ipv6/ioam6.c
420
genlmsg_end(skb, hdr);
net/ipv6/ioam6.c
424
genlmsg_cancel(skb, hdr);
net/ipv6/ioam6.c
927
*(__be32 *)data = sc->hdr;
net/ipv6/ioam6.c
955
sclen = sizeof_field(struct ioam6_schema, hdr) / 4;
net/ipv6/ioam6_iptunnel.c
260
struct ipv6hdr *oldhdr, *hdr;
net/ipv6/ioam6_iptunnel.c
277
hdr = ipv6_hdr(skb);
net/ipv6/ioam6_iptunnel.c
278
memmove(hdr, oldhdr, sizeof(*oldhdr));
net/ipv6/ioam6_iptunnel.c
279
tuninfo->eh.nexthdr = hdr->nexthdr;
net/ipv6/ioam6_iptunnel.c
281
skb_set_transport_header(skb, sizeof(*hdr));
net/ipv6/ioam6_iptunnel.c
282
skb_postpush_rcsum(skb, hdr, sizeof(*hdr) + hdrlen);
net/ipv6/ioam6_iptunnel.c
286
hdr->nexthdr = NEXTHDR_HOP;
net/ipv6/ioam6_iptunnel.c
287
hdr->payload_len = cpu_to_be16(skb->len - sizeof(*hdr));
net/ipv6/ioam6_iptunnel.c
300
struct ipv6hdr *hdr, *inner_hdr;
net/ipv6/ioam6_iptunnel.c
304
len = sizeof(*hdr) + hdrlen;
net/ipv6/ioam6_iptunnel.c
315
skb_set_transport_header(skb, sizeof(*hdr));
net/ipv6/ioam6_iptunnel.c
320
hdr = ipv6_hdr(skb);
net/ipv6/ioam6_iptunnel.c
321
memcpy(hdr, inner_hdr, sizeof(*hdr));
net/ipv6/ioam6_iptunnel.c
323
hdr->nexthdr = NEXTHDR_HOP;
net/ipv6/ioam6_iptunnel.c
324
hdr->payload_len = cpu_to_be16(skb->len - sizeof(*hdr));
net/ipv6/ioam6_iptunnel.c
325
hdr->daddr = *tundst;
net/ipv6/ioam6_iptunnel.c
328
memcpy(&hdr->saddr, tunsrc, sizeof(*tunsrc));
net/ipv6/ioam6_iptunnel.c
330
ipv6_dev_get_saddr(net, dst_dev(dst), &hdr->daddr,
net/ipv6/ioam6_iptunnel.c
331
IPV6_PREFER_SRC_PUBLIC, &hdr->saddr);
net/ipv6/ioam6_iptunnel.c
333
skb_postpush_rcsum(skb, hdr, len);
net/ipv6/ioam6_iptunnel.c
407
struct ipv6hdr *hdr = ipv6_hdr(skb);
net/ipv6/ioam6_iptunnel.c
411
fl6.daddr = hdr->daddr;
net/ipv6/ioam6_iptunnel.c
412
fl6.saddr = hdr->saddr;
net/ipv6/ioam6_iptunnel.c
413
fl6.flowlabel = ip6_flowinfo(hdr);
net/ipv6/ioam6_iptunnel.c
415
fl6.flowi6_proto = hdr->nexthdr;
net/ipv6/ip6_input.c
152
const struct ipv6hdr *hdr;
net/ipv6/ip6_input.c
194
if (unlikely(!pskb_may_pull(skb, sizeof(*hdr))))
net/ipv6/ip6_input.c
197
hdr = ipv6_hdr(skb);
net/ipv6/ip6_input.c
199
if (hdr->version != 6) {
net/ipv6/ip6_input.c
206
(ipv6_get_dsfield(hdr) & INET_ECN_MASK),
net/ipv6/ip6_input.c
215
if ((ipv6_addr_loopback(&hdr->saddr) ||
net/ipv6/ip6_input.c
216
ipv6_addr_loopback(&hdr->daddr)) &&
net/ipv6/ip6_input.c
229
ipv6_addr_is_multicast(&hdr->daddr) &&
net/ipv6/ip6_input.c
230
IPV6_ADDR_MC_SCOPE(&hdr->daddr) == 1)
net/ipv6/ip6_input.c
237
if (!ipv6_addr_is_multicast(&hdr->daddr) &&
net/ipv6/ip6_input.c
250
if (ipv6_addr_is_multicast(&hdr->daddr) &&
net/ipv6/ip6_input.c
251
IPV6_ADDR_MC_SCOPE(&hdr->daddr) == 0)
net/ipv6/ip6_input.c
259
if (ipv6_addr_is_multicast(&hdr->saddr))
net/ipv6/ip6_input.c
262
skb->transport_header = skb->network_header + sizeof(*hdr);
net/ipv6/ip6_input.c
265
pkt_len = ipv6_payload_len(skb, hdr);
net/ipv6/ip6_input.c
268
if (pkt_len || hdr->nexthdr != NEXTHDR_HOP) {
net/ipv6/ip6_input.c
277
hdr = ipv6_hdr(skb);
net/ipv6/ip6_input.c
280
if (hdr->nexthdr == NEXTHDR_HOP) {
net/ipv6/ip6_input.c
401
const struct ipv6hdr *hdr;
net/ipv6/ip6_input.c
411
hdr = ipv6_hdr(skb);
net/ipv6/ip6_input.c
422
if (ipv6_addr_is_multicast(&hdr->daddr) &&
net/ipv6/ip6_input.c
423
!ipv6_chk_mcast_addr(dev, &hdr->daddr,
net/ipv6/ip6_input.c
424
&hdr->saddr) &&
net/ipv6/ip6_input.c
513
const struct ipv6hdr *hdr;
net/ipv6/ip6_input.c
529
hdr = ipv6_hdr(skb);
net/ipv6/ip6_input.c
530
deliver = ipv6_chk_mcast_addr(dev, &hdr->daddr, NULL);
net/ipv6/ip6_input.c
537
!(ipv6_addr_type(&hdr->daddr) &
net/ipv6/ip6_input.c
550
u8 nexthdr = hdr->nexthdr;
net/ipv6/ip6_input.c
564
offset = ipv6_skip_exthdr(skb, sizeof(*hdr),
net/ipv6/ip6_output.c
1900
struct ipv6hdr *hdr;
net/ipv6/ip6_output.c
1940
hdr = ipv6_hdr(skb);
net/ipv6/ip6_output.c
1942
ip6_flow_hdr(hdr, cork->base6.tclass,
net/ipv6/ip6_output.c
1945
hdr->hop_limit = cork->base6.hop_limit;
net/ipv6/ip6_output.c
1946
hdr->nexthdr = proto;
net/ipv6/ip6_output.c
1947
hdr->saddr = fl6->saddr;
net/ipv6/ip6_output.c
1948
hdr->daddr = *final_dst;
net/ipv6/ip6_output.c
278
struct ipv6hdr *hdr;
net/ipv6/ip6_output.c
318
hdr = ipv6_hdr(skb);
net/ipv6/ip6_output.c
328
ip6_flow_hdr(hdr, tclass, ip6_make_flowlabel(net, skb, fl6->flowlabel,
net/ipv6/ip6_output.c
331
hdr->payload_len = htons(seg_len);
net/ipv6/ip6_output.c
332
hdr->nexthdr = proto;
net/ipv6/ip6_output.c
333
hdr->hop_limit = hlimit;
net/ipv6/ip6_output.c
335
hdr->saddr = fl6->saddr;
net/ipv6/ip6_output.c
336
hdr->daddr = *first_hop;
net/ipv6/ip6_output.c
415
struct ipv6hdr *hdr = ipv6_hdr(skb);
net/ipv6/ip6_output.c
416
u8 nexthdr = hdr->nexthdr;
net/ipv6/ip6_output.c
421
offset = ipv6_skip_exthdr(skb, sizeof(*hdr), &nexthdr, &frag_off);
net/ipv6/ip6_output.c
457
if (ipv6_addr_type(&hdr->daddr) & IPV6_ADDR_LINKLOCAL) {
net/ipv6/ip6_output.c
500
struct ipv6hdr *hdr = ipv6_hdr(skb);
net/ipv6/ip6_output.c
552
if (hdr->hop_limit <= 1) {
net/ipv6/ip6_output.c
562
pneigh_lookup(&nd_tbl, net, &hdr->daddr, skb->dev)) {
net/ipv6/ip6_output.c
612
target = &hdr->daddr;
net/ipv6/ip6_output.c
615
peer = inet_getpeer_v6(net->ipv6.peers, &hdr->daddr);
net/ipv6/ip6_output.c
624
int addrtype = ipv6_addr_type(&hdr->saddr);
net/ipv6/ip6_output.c
660
hdr = ipv6_hdr(skb);
net/ipv6/ip6_output.c
664
hdr->hop_limit--;
net/ipv6/ip6_output.c
67
struct ipv6hdr *hdr;
net/ipv6/ip6_output.c
81
hdr = ipv6_hdr(skb);
net/ipv6/ip6_output.c
82
daddr = &hdr->daddr;
net/ipv6/ip6_output.c
87
ipv6_chk_mcast_addr(dev, daddr, &hdr->saddr))) {
net/ipv6/ip6_output.c
98
if (hdr->hop_limit == 0) {
net/ipv6/ip6_tunnel.c
1027
ip6_tnl_addr_conflict(const struct ip6_tnl *t, const struct ipv6hdr *hdr)
net/ipv6/ip6_tunnel.c
1029
return ipv6_addr_equal(&t->parms.raddr, &hdr->saddr);
net/ipv6/ip6_tunnel.c
405
struct ipv6_opt_hdr *hdr;
net/ipv6/ip6_tunnel.c
408
if (!pskb_may_pull(skb, off + sizeof(*hdr)))
net/ipv6/ip6_tunnel.c
411
hdr = (struct ipv6_opt_hdr *)(skb->data + off);
net/ipv6/ip6_tunnel.c
415
optlen = ipv6_authlen(hdr);
net/ipv6/ip6_tunnel.c
417
optlen = ipv6_optlen(hdr);
net/ipv6/ip6_tunnel.c
423
hdr = (struct ipv6_opt_hdr *)(skb->data + off);
net/ipv6/ip6_tunnel.c
425
struct frag_hdr *frag_hdr = (struct frag_hdr *)hdr;
net/ipv6/ip6_tunnel.c
452
nexthdr = hdr->nexthdr;
net/ipv6/ip6_vti.c
406
vti6_addr_conflict(const struct ip6_tnl *t, const struct ipv6hdr *hdr)
net/ipv6/ip6_vti.c
408
return ipv6_addr_equal(&t->parms.raddr, &hdr->saddr);
net/ipv6/ipv6_sockglue.c
1000
hdr = (struct ipv6_opt_hdr *)opt->srcrt;
net/ipv6/ipv6_sockglue.c
1003
hdr = opt->dst1opt;
net/ipv6/ipv6_sockglue.c
1009
if (!hdr)
net/ipv6/ipv6_sockglue.c
1012
len = min_t(unsigned int, len, ipv6_optlen(hdr));
net/ipv6/ipv6_sockglue.c
1013
if (copy_to_sockptr(optval, hdr, len))
net/ipv6/ipv6_sockglue.c
987
struct ipv6_opt_hdr *hdr;
net/ipv6/ipv6_sockglue.c
994
hdr = opt->hopopt;
net/ipv6/ipv6_sockglue.c
997
hdr = opt->dst0opt;
net/ipv6/mcast.c
1737
struct ipv6hdr *hdr;
net/ipv6/mcast.c
1744
hdr = ipv6_hdr(skb);
net/ipv6/mcast.c
1746
ip6_flow_hdr(hdr, 0, 0);
net/ipv6/mcast.c
1748
hdr->payload_len = htons(len);
net/ipv6/mcast.c
1749
hdr->nexthdr = proto;
net/ipv6/mcast.c
1750
hdr->hop_limit = READ_ONCE(inet6_sk(sk)->hop_limit);
net/ipv6/mcast.c
1752
hdr->saddr = *saddr;
net/ipv6/mcast.c
1753
hdr->daddr = *daddr;
net/ipv6/mcast.c
2164
struct mld_msg *hdr;
net/ipv6/mcast.c
2215
hdr = skb_put_zero(skb, sizeof(struct mld_msg));
net/ipv6/mcast.c
2216
hdr->mld_type = type;
net/ipv6/mcast.c
2217
hdr->mld_mca = *addr;
net/ipv6/mcast.c
2219
hdr->mld_cksum = csum_ipv6_magic(saddr, snd_addr, len,
net/ipv6/mcast.c
2221
csum_partial(hdr, len, 0));
net/ipv6/ndisc.c
1608
u8 *hdr;
net/ipv6/ndisc.c
1633
hdr = (u8 *)ndopts.nd_opts_rh;
net/ipv6/ndisc.c
1634
hdr += 8;
net/ipv6/ndisc.c
1635
if (!pskb_pull(skb, hdr - skb_transport_header(skb)))
net/ipv6/ndisc.c
445
struct ipv6hdr *hdr;
net/ipv6/ndisc.c
454
skb_push(skb, sizeof(*hdr));
net/ipv6/ndisc.c
456
hdr = ipv6_hdr(skb);
net/ipv6/ndisc.c
458
ip6_flow_hdr(hdr, tclass, 0);
net/ipv6/ndisc.c
460
hdr->payload_len = htons(len);
net/ipv6/ndisc.c
461
hdr->nexthdr = IPPROTO_ICMPV6;
net/ipv6/ndisc.c
462
hdr->hop_limit = hop_limit;
net/ipv6/ndisc.c
464
hdr->saddr = *saddr;
net/ipv6/ndisc.c
465
hdr->daddr = *daddr;
net/ipv6/netfilter/nf_conntrack_reasm.c
146
const struct ipv6hdr *hdr, int iif)
net/ipv6/netfilter/nf_conntrack_reasm.c
151
.saddr = hdr->saddr,
net/ipv6/netfilter/nf_conntrack_reasm.c
152
.daddr = hdr->daddr,
net/ipv6/netfilter/nf_conntrack_reasm.c
158
if (!(ipv6_addr_type(&hdr->daddr) & (IPV6_ADDR_MULTICAST |
net/ipv6/netfilter/nf_conntrack_reasm.c
406
struct ipv6_opt_hdr hdr;
net/ipv6/netfilter/nf_conntrack_reasm.c
420
if (skb_copy_bits(skb, start, &hdr, sizeof(hdr)))
net/ipv6/netfilter/nf_conntrack_reasm.c
423
hdrlen = ipv6_authlen(&hdr);
net/ipv6/netfilter/nf_conntrack_reasm.c
425
hdrlen = ipv6_optlen(&hdr);
net/ipv6/netfilter/nf_conntrack_reasm.c
430
nexthdr = hdr.nexthdr;
net/ipv6/netfilter/nf_conntrack_reasm.c
452
struct ipv6hdr *hdr;
net/ipv6/netfilter/nf_conntrack_reasm.c
477
hdr = ipv6_hdr(skb);
net/ipv6/netfilter/nf_conntrack_reasm.c
481
fq = fq_find(net, fhdr->identification, user, hdr,
net/ipv6/netfilter/nf_conntrack_reasm.c
71
struct ctl_table_header *hdr;
net/ipv6/netfilter/nf_conntrack_reasm.c
89
hdr = register_net_sysctl_sz(net, "net/netfilter", table,
net/ipv6/netfilter/nf_conntrack_reasm.c
91
if (hdr == NULL)
net/ipv6/netfilter/nf_conntrack_reasm.c
94
nf_frag->nf_frag_frags_hdr = hdr;
net/ipv6/netfilter/nf_reject_ipv6.c
55
struct ipv6hdr *hdr;
net/ipv6/netfilter/nf_reject_ipv6.c
61
hdr = ipv6_hdr(skb);
net/ipv6/netfilter/nf_reject_ipv6.c
62
if (hdr->version != 6)
net/ipv6/netfilter/nf_reject_ipv6.c
65
pkt_len = ntohs(hdr->payload_len);
net/ipv6/raw.c
105
hdr = (struct icmp6hdr *)skb->data;
net/ipv6/raw.c
106
type = hdr->icmp6_type;
net/ipv6/raw.c
95
const struct icmp6hdr *hdr;
net/ipv6/reassembly.c
327
const struct ipv6hdr *hdr = ipv6_hdr(skb);
net/ipv6/reassembly.c
340
if (hdr->payload_len == 0)
net/ipv6/reassembly.c
347
hdr = ipv6_hdr(skb);
net/ipv6/reassembly.c
358
IP6CB(skb)->frag_max_size = ntohs(hdr->payload_len) +
net/ipv6/reassembly.c
369
nexthdr = hdr->nexthdr;
net/ipv6/reassembly.c
379
fq = fq_find(net, fhdr->identification, hdr, iif);
net/ipv6/reassembly.c
457
struct ctl_table_header *hdr;
net/ipv6/reassembly.c
472
hdr = register_net_sysctl_sz(net, "net/ipv6", table,
net/ipv6/reassembly.c
474
if (!hdr)
net/ipv6/reassembly.c
477
net->ipv6.sysctl.frags_hdr = hdr;
net/ipv6/reassembly.c
85
fq_find(struct net *net, __be32 id, const struct ipv6hdr *hdr, int iif)
net/ipv6/reassembly.c
89
.saddr = hdr->saddr,
net/ipv6/reassembly.c
90
.daddr = hdr->daddr,
net/ipv6/reassembly.c
96
if (!(ipv6_addr_type(&hdr->daddr) & (IPV6_ADDR_MULTICAST |
net/ipv6/rpl.c
27
static void *ipv6_rpl_segdata_pos(const struct ipv6_rpl_sr_hdr *hdr, int i)
net/ipv6/rpl.c
29
return (void *)&hdr->rpl_segdata[i * IPV6_PFXTAIL_LEN(hdr->cmpri)];
net/ipv6/rpl_iptunnel.c
133
struct ipv6hdr *hdr;
net/ipv6/rpl_iptunnel.c
171
hdr = ipv6_hdr(skb);
net/ipv6/rpl_iptunnel.c
172
memmove(hdr, &oldhdr, sizeof(*hdr));
net/ipv6/rpl_iptunnel.c
173
isrh = (void *)hdr + sizeof(*hdr);
net/ipv6/rpl_iptunnel.c
176
isrh->nexthdr = hdr->nexthdr;
net/ipv6/rpl_iptunnel.c
177
hdr->nexthdr = NEXTHDR_ROUTING;
net/ipv6/rpl_iptunnel.c
178
hdr->daddr = srh->rpl_segaddr[0];
net/ipv6/rpl_iptunnel.c
183
skb_postpush_rcsum(skb, hdr, sizeof(struct ipv6hdr) + hdrlen);
net/ipv6/rpl_iptunnel.c
222
struct ipv6hdr *hdr = ipv6_hdr(skb);
net/ipv6/rpl_iptunnel.c
226
fl6.daddr = hdr->daddr;
net/ipv6/rpl_iptunnel.c
227
fl6.saddr = hdr->saddr;
net/ipv6/rpl_iptunnel.c
228
fl6.flowlabel = ip6_flowinfo(hdr);
net/ipv6/rpl_iptunnel.c
230
fl6.flowi6_proto = hdr->nexthdr;
net/ipv6/seg6.c
268
void *hdr;
net/ipv6/seg6.c
274
hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq,
net/ipv6/seg6.c
276
if (!hdr)
net/ipv6/seg6.c
287
genlmsg_end(msg, hdr);
net/ipv6/seg6.c
315
void *hdr;
net/ipv6/seg6.c
317
hdr = genlmsg_put(skb, portid, seq, &seg6_genl_family, flags, cmd);
net/ipv6/seg6.c
318
if (!hdr)
net/ipv6/seg6.c
324
genlmsg_end(skb, hdr);
net/ipv6/seg6.c
328
genlmsg_cancel(skb, hdr);
net/ipv6/seg6_hmac.c
100
int seg6_hmac_compute(struct seg6_hmac_info *hinfo, struct ipv6_sr_hdr *hdr,
net/ipv6/seg6_hmac.c
108
plen = 16 + 1 + 1 + 4 + (hdr->first_segment + 1) * 16;
net/ipv6/seg6_hmac.c
134
*off++ = hdr->first_segment;
net/ipv6/seg6_hmac.c
137
*off++ = hdr->flags;
net/ipv6/seg6_hmac.c
144
for (i = 0; i < hdr->first_segment + 1; i++) {
net/ipv6/seg6_hmac.c
145
memcpy(off, hdr->segments + i, 16);
net/ipv6/seg6_iptunnel.c
133
struct ipv6hdr *hdr, *inner_hdr;
net/ipv6/seg6_iptunnel.c
139
tot_len = hdrlen + sizeof(*hdr);
net/ipv6/seg6_iptunnel.c
151
hdr = ipv6_hdr(skb);
net/ipv6/seg6_iptunnel.c
159
ip6_flow_hdr(hdr, ip6_tclass(ip6_flowinfo(inner_hdr)),
net/ipv6/seg6_iptunnel.c
161
hdr->hop_limit = inner_hdr->hop_limit;
net/ipv6/seg6_iptunnel.c
163
ip6_flow_hdr(hdr, 0, flowlabel);
net/ipv6/seg6_iptunnel.c
164
hdr->hop_limit = ip6_dst_hoplimit(skb_dst(skb));
net/ipv6/seg6_iptunnel.c
177
hdr->nexthdr = NEXTHDR_ROUTING;
net/ipv6/seg6_iptunnel.c
179
isrh = (void *)hdr + sizeof(*hdr);
net/ipv6/seg6_iptunnel.c
184
hdr->daddr = isrh->segments[isrh->first_segment];
net/ipv6/seg6_iptunnel.c
185
set_tun_src(net, dev, &hdr->daddr, &hdr->saddr);
net/ipv6/seg6_iptunnel.c
189
err = seg6_push_hmac(net, &hdr->saddr, isrh);
net/ipv6/seg6_iptunnel.c
195
hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr));
net/ipv6/seg6_iptunnel.c
197
skb_postpush_rcsum(skb, hdr, tot_len);
net/ipv6/seg6_iptunnel.c
218
struct ipv6hdr *hdr, *inner_hdr;
net/ipv6/seg6_iptunnel.c
252
hdr = ipv6_hdr(skb);
net/ipv6/seg6_iptunnel.c
256
ip6_flow_hdr(hdr, ip6_tclass(ip6_flowinfo(inner_hdr)),
net/ipv6/seg6_iptunnel.c
258
hdr->hop_limit = inner_hdr->hop_limit;
net/ipv6/seg6_iptunnel.c
260
ip6_flow_hdr(hdr, 0, flowlabel);
net/ipv6/seg6_iptunnel.c
261
hdr->hop_limit = ip6_dst_hoplimit(skb_dst(skb));
net/ipv6/seg6_iptunnel.c
270
hdr->daddr = osrh->segments[first_seg];
net/ipv6/seg6_iptunnel.c
273
hdr->nexthdr = proto;
net/ipv6/seg6_iptunnel.c
275
set_tun_src(net, dev, &hdr->daddr, &hdr->saddr);
net/ipv6/seg6_iptunnel.c
281
hdr->nexthdr = NEXTHDR_ROUTING;
net/ipv6/seg6_iptunnel.c
282
isrh = (void *)hdr + sizeof(struct ipv6hdr);
net/ipv6/seg6_iptunnel.c
311
set_tun_src(net, dev, &hdr->daddr, &hdr->saddr);
net/ipv6/seg6_iptunnel.c
315
err = seg6_push_hmac(net, &hdr->saddr, isrh);
net/ipv6/seg6_iptunnel.c
322
hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr));
net/ipv6/seg6_iptunnel.c
324
skb_postpush_rcsum(skb, hdr, tot_len);
net/ipv6/seg6_iptunnel.c
332
struct ipv6hdr *hdr, *oldhdr;
net/ipv6/seg6_iptunnel.c
352
hdr = ipv6_hdr(skb);
net/ipv6/seg6_iptunnel.c
354
memmove(hdr, oldhdr, sizeof(*hdr));
net/ipv6/seg6_iptunnel.c
356
isrh = (void *)hdr + sizeof(*hdr);
net/ipv6/seg6_iptunnel.c
359
isrh->nexthdr = hdr->nexthdr;
net/ipv6/seg6_iptunnel.c
360
hdr->nexthdr = NEXTHDR_ROUTING;
net/ipv6/seg6_iptunnel.c
362
isrh->segments[0] = hdr->daddr;
net/ipv6/seg6_iptunnel.c
363
hdr->daddr = isrh->segments[isrh->first_segment];
net/ipv6/seg6_iptunnel.c
369
err = seg6_push_hmac(net, &hdr->saddr, isrh);
net/ipv6/seg6_iptunnel.c
375
hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr));
net/ipv6/seg6_iptunnel.c
377
skb_postpush_rcsum(skb, hdr, sizeof(struct ipv6hdr) + hdrlen);
net/ipv6/seg6_iptunnel.c
575
struct ipv6hdr *hdr = ipv6_hdr(skb);
net/ipv6/seg6_iptunnel.c
579
fl6.daddr = hdr->daddr;
net/ipv6/seg6_iptunnel.c
580
fl6.saddr = hdr->saddr;
net/ipv6/seg6_iptunnel.c
581
fl6.flowlabel = ip6_flowinfo(hdr);
net/ipv6/seg6_iptunnel.c
583
fl6.flowi6_proto = hdr->nexthdr;
net/ipv6/seg6_local.c
276
struct ipv6hdr *hdr = ipv6_hdr(skb);
net/ipv6/seg6_local.c
286
fl6.daddr = nhaddr ? *nhaddr : hdr->daddr;
net/ipv6/seg6_local.c
287
fl6.saddr = hdr->saddr;
net/ipv6/seg6_local.c
288
fl6.flowlabel = ip6_flowinfo(hdr);
net/ipv6/seg6_local.c
290
fl6.flowi6_proto = hdr->nexthdr;
net/ipv6/sysctl_net_ipv6.c
277
net->ipv6.sysctl.hdr = register_net_sysctl_sz(net, "net/ipv6",
net/ipv6/sysctl_net_ipv6.c
279
if (!net->ipv6.sysctl.hdr)
net/ipv6/sysctl_net_ipv6.c
302
unregister_net_sysctl_table(net->ipv6.sysctl.hdr);
net/ipv6/sysctl_net_ipv6.c
318
ipv6_table = net->ipv6.sysctl.hdr->ctl_table_arg;
net/ipv6/sysctl_net_ipv6.c
324
unregister_net_sysctl_table(net->ipv6.sysctl.hdr);
net/ipv6/tcp_ipv6.c
1672
static void tcp_v6_fill_cb(struct sk_buff *skb, const struct ipv6hdr *hdr,
net/ipv6/tcp_ipv6.c
1689
TCP_SKB_CB(skb)->ip_dsfield = ipv6_get_dsfield(hdr);
net/ipv6/tcp_ipv6.c
1703
const struct ipv6hdr *hdr;
net/ipv6/tcp_ipv6.c
1734
hdr = ipv6_hdr(skb);
net/ipv6/tcp_ipv6.c
1756
&hdr->saddr, &hdr->daddr,
net/ipv6/tcp_ipv6.c
1784
hdr = ipv6_hdr(skb);
net/ipv6/tcp_ipv6.c
1785
tcp_v6_fill_cb(skb, hdr, th);
net/ipv6/tcp_ipv6.c
1824
if (unlikely(hdr->hop_limit < READ_ONCE(tcp_inet6_sk(sk)->min_hopcount))) {
net/ipv6/tcp_ipv6.c
1836
drop_reason = tcp_inbound_hash(sk, NULL, skb, &hdr->saddr, &hdr->daddr,
net/ipv6/tcp_ipv6.c
1847
hdr = ipv6_hdr(skb);
net/ipv6/tcp_ipv6.c
1848
tcp_v6_fill_cb(skb, hdr, th);
net/ipv6/tcp_ipv6.c
1879
tcp_v6_fill_cb(skb, hdr, th);
net/ipv6/tcp_ipv6.c
1910
tcp_v6_fill_cb(skb, hdr, th);
net/ipv6/tcp_ipv6.c
1963
const struct ipv6hdr *hdr;
net/ipv6/tcp_ipv6.c
1973
hdr = ipv6_hdr(skb);
net/ipv6/tcp_ipv6.c
1980
sk = __inet6_lookup_established(net, &hdr->saddr, th->source,
net/ipv6/tcp_ipv6.c
1981
&hdr->daddr, ntohs(th->dest),
net/ipv6/tcp_ipv6.c
381
const struct ipv6hdr *hdr = (const struct ipv6hdr *)skb->data;
net/ipv6/tcp_ipv6.c
392
sk = __inet6_lookup_established(net, &hdr->daddr, th->dest,
net/ipv6/tcp_ipv6.c
393
&hdr->saddr, ntohs(th->source),
net/ipv6/tcpv6_offload.c
21
const struct ipv6hdr *hdr;
net/ipv6/tcpv6_offload.c
34
hdr = skb_gro_network_header(skb);
net/ipv6/tcpv6_offload.c
36
sk = __inet6_lookup_established(net, &hdr->saddr, th->source,
net/ipv6/tcpv6_offload.c
37
&hdr->daddr, ntohs(th->dest),
net/ipv6/udp.c
649
const struct ipv6hdr *hdr, int offset,
net/ipv6/udp.c
680
sk = __udp6_lib_lookup(net, &hdr->daddr, uh->source,
net/ipv6/udp.c
681
&hdr->saddr, uh->dest,
net/ipv6/udp.c
708
const struct ipv6hdr *hdr = (const struct ipv6hdr *)skb->data;
net/ipv6/udp.c
709
const struct in6_addr *saddr = &hdr->saddr;
net/ipv6/udp.c
710
const struct in6_addr *daddr = seg6_get_daddr(skb, opt) ? : &hdr->daddr;
net/ipv6/udp.c
724
sk = __udp6_lib_err_encap(net, hdr, offset, uh,
net/ipv6/xfrm6_output.c
33
const struct ipv6hdr *hdr;
net/ipv6/xfrm6_output.c
36
hdr = skb->encapsulation ? inner_ipv6_hdr(skb) : ipv6_hdr(skb);
net/ipv6/xfrm6_output.c
38
fl6.daddr = hdr->daddr;
net/ipv6/xfrm6_policy.c
202
struct ctl_table_header *hdr;
net/ipv6/xfrm6_policy.c
213
hdr = register_net_sysctl_sz(net, "net/ipv6", table,
net/ipv6/xfrm6_policy.c
215
if (!hdr)
net/ipv6/xfrm6_policy.c
218
net->ipv6.sysctl.xfrm6_hdr = hdr;
net/key/af_key.c
1060
const struct sadb_msg *hdr,
net/key/af_key.c
1077
if (hdr->sadb_msg_satype == SADB_SATYPE_ESP &&
net/key/af_key.c
1080
if (hdr->sadb_msg_satype == SADB_SATYPE_AH &&
net/key/af_key.c
1087
proto = pfkey_satype2proto(hdr->sadb_msg_satype);
net/key/af_key.c
1107
(hdr->sadb_msg_satype == SADB_X_SATYPE_IPCOMP &&
net/key/af_key.c
1193
if (hdr->sadb_msg_satype == SADB_X_SATYPE_IPCOMP) {
net/key/af_key.c
1290
x->km.seq = hdr->sadb_msg_seq;
net/key/af_key.c
1299
static int pfkey_reserved(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1304
static int pfkey_getspi(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1325
proto = pfkey_satype2proto(hdr->sadb_msg_satype);
net/key/af_key.c
1356
if (hdr->sadb_msg_seq) {
net/key/af_key.c
1357
x = xfrm_find_acq_byseq(net, DUMMY_MARK, hdr->sadb_msg_seq, UINT_MAX);
net/key/af_key.c
1395
out_hdr->sadb_msg_version = hdr->sadb_msg_version;
net/key/af_key.c
1400
out_hdr->sadb_msg_seq = hdr->sadb_msg_seq;
net/key/af_key.c
1401
out_hdr->sadb_msg_pid = hdr->sadb_msg_pid;
net/key/af_key.c
1410
static int pfkey_acquire(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1415
if (hdr->sadb_msg_len != sizeof(struct sadb_msg)/8)
net/key/af_key.c
1418
if (hdr->sadb_msg_seq == 0 || hdr->sadb_msg_errno == 0)
net/key/af_key.c
1421
x = xfrm_find_acq_byseq(net, DUMMY_MARK, hdr->sadb_msg_seq, UINT_MAX);
net/key/af_key.c
1476
struct sadb_msg *hdr;
net/key/af_key.c
1483
hdr = (struct sadb_msg *) skb->data;
net/key/af_key.c
1484
hdr->sadb_msg_version = PF_KEY_V2;
net/key/af_key.c
1485
hdr->sadb_msg_type = event2keytype(c->event);
net/key/af_key.c
1486
hdr->sadb_msg_satype = pfkey_proto2satype(x->id.proto);
net/key/af_key.c
1487
hdr->sadb_msg_errno = 0;
net/key/af_key.c
1488
hdr->sadb_msg_reserved = 0;
net/key/af_key.c
1489
hdr->sadb_msg_seq = c->seq;
net/key/af_key.c
1490
hdr->sadb_msg_pid = c->portid;
net/key/af_key.c
1497
static int pfkey_add(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1504
x = pfkey_msg2xfrm_state(net, hdr, ext_hdrs);
net/key/af_key.c
1509
if (hdr->sadb_msg_type == SADB_ADD)
net/key/af_key.c
1522
if (hdr->sadb_msg_type == SADB_ADD)
net/key/af_key.c
1526
c.seq = hdr->sadb_msg_seq;
net/key/af_key.c
1527
c.portid = hdr->sadb_msg_pid;
net/key/af_key.c
1534
static int pfkey_delete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1546
x = pfkey_xfrm_state_lookup(net, hdr, ext_hdrs);
net/key/af_key.c
1563
c.seq = hdr->sadb_msg_seq;
net/key/af_key.c
1564
c.portid = hdr->sadb_msg_pid;
net/key/af_key.c
1574
static int pfkey_get(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1587
x = pfkey_xfrm_state_lookup(net, hdr, ext_hdrs);
net/key/af_key.c
1598
out_hdr->sadb_msg_version = hdr->sadb_msg_version;
net/key/af_key.c
1603
out_hdr->sadb_msg_seq = hdr->sadb_msg_seq;
net/key/af_key.c
1604
out_hdr->sadb_msg_pid = hdr->sadb_msg_pid;
net/key/af_key.c
1614
struct sadb_msg *hdr;
net/key/af_key.c
1635
hdr = skb_put(skb, sizeof(*hdr));
net/key/af_key.c
1636
pfkey_hdr_dup(hdr, orig);
net/key/af_key.c
1637
hdr->sadb_msg_errno = 0;
net/key/af_key.c
1638
hdr->sadb_msg_len = len / sizeof(uint64_t);
net/key/af_key.c
1686
static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1691
if (hdr->sadb_msg_satype > SADB_SATYPE_MAX)
net/key/af_key.c
1694
if (hdr->sadb_msg_satype != SADB_SATYPE_UNSPEC) {
net/key/af_key.c
1695
if (pfk->registered&(1<<hdr->sadb_msg_satype))
net/key/af_key.c
1697
pfk->registered |= (1<<hdr->sadb_msg_satype);
net/key/af_key.c
1703
supp_skb = compose_sadb_supported(hdr, GFP_KERNEL | __GFP_ZERO);
net/key/af_key.c
1707
if (hdr->sadb_msg_satype != SADB_SATYPE_UNSPEC)
net/key/af_key.c
1708
pfk->registered &= ~(1<<hdr->sadb_msg_satype);
net/key/af_key.c
1721
struct sadb_msg *hdr;
net/key/af_key.c
1727
hdr = skb_put_data(skb, ihdr, sizeof(struct sadb_msg));
net/key/af_key.c
1728
hdr->sadb_msg_errno = (uint8_t) 0;
net/key/af_key.c
1729
hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
net/key/af_key.c
1738
struct sadb_msg *hdr;
net/key/af_key.c
1743
hdr = skb_put(skb, sizeof(struct sadb_msg));
net/key/af_key.c
1744
hdr->sadb_msg_satype = pfkey_proto2satype(c->data.proto);
net/key/af_key.c
1745
hdr->sadb_msg_type = SADB_FLUSH;
net/key/af_key.c
1746
hdr->sadb_msg_seq = c->seq;
net/key/af_key.c
1747
hdr->sadb_msg_pid = c->portid;
net/key/af_key.c
1748
hdr->sadb_msg_version = PF_KEY_V2;
net/key/af_key.c
1749
hdr->sadb_msg_errno = (uint8_t) 0;
net/key/af_key.c
1750
hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
net/key/af_key.c
1751
hdr->sadb_msg_reserved = 0;
net/key/af_key.c
1758
static int pfkey_flush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1765
proto = pfkey_satype2proto(hdr->sadb_msg_satype);
net/key/af_key.c
1770
err2 = unicast_flush_resp(sk, hdr);
net/key/af_key.c
1778
c.seq = hdr->sadb_msg_seq;
net/key/af_key.c
1779
c.portid = hdr->sadb_msg_pid;
net/key/af_key.c
1830
static int pfkey_dump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1842
proto = pfkey_satype2proto(hdr->sadb_msg_satype);
net/key/af_key.c
1873
pfk->dump.msg_version = hdr->sadb_msg_version;
net/key/af_key.c
1874
pfk->dump.msg_portid = hdr->sadb_msg_pid;
net/key/af_key.c
1883
static int pfkey_promisc(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
1886
int satype = hdr->sadb_msg_satype;
net/key/af_key.c
1889
if (hdr->sadb_msg_len == (sizeof(*hdr) / sizeof(uint64_t))) {
net/key/af_key.c
2067
struct sadb_msg *hdr;
net/key/af_key.c
2081
hdr = skb_put(skb, sizeof(struct sadb_msg));
net/key/af_key.c
2082
memset(hdr, 0, size); /* XXX do we need this ? */
net/key/af_key.c
2209
hdr->sadb_msg_len = size / sizeof(uint64_t);
net/key/af_key.c
2210
hdr->sadb_msg_reserved = refcount_read(&xp->refcnt);
net/key/af_key.c
2246
static int pfkey_spdadd(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2336
hdr->sadb_msg_type != SADB_X_SPDUPDATE);
net/key/af_key.c
2343
if (hdr->sadb_msg_type == SADB_X_SPDUPDATE)
net/key/af_key.c
2348
c.seq = hdr->sadb_msg_seq;
net/key/af_key.c
2349
c.portid = hdr->sadb_msg_pid;
net/key/af_key.c
2361
static int pfkey_spddelete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2425
c.seq = hdr->sadb_msg_seq;
net/key/af_key.c
2426
c.portid = hdr->sadb_msg_pid;
net/key/af_key.c
2436
static int key_pol_get_resp(struct sock *sk, struct xfrm_policy *xp, const struct sadb_msg *hdr, int dir)
net/key/af_key.c
2455
out_hdr->sadb_msg_version = hdr->sadb_msg_version;
net/key/af_key.c
2456
out_hdr->sadb_msg_type = hdr->sadb_msg_type;
net/key/af_key.c
2459
out_hdr->sadb_msg_seq = hdr->sadb_msg_seq;
net/key/af_key.c
2460
out_hdr->sadb_msg_pid = hdr->sadb_msg_pid;
net/key/af_key.c
2548
const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2640
const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2647
static int pfkey_spdget(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2663
delete = (hdr->sadb_msg_type == SADB_X_SPDDELETE2);
net/key/af_key.c
2674
c.seq = hdr->sadb_msg_seq;
net/key/af_key.c
2675
c.portid = hdr->sadb_msg_pid;
net/key/af_key.c
2680
err = key_pol_get_resp(sk, xp, hdr, dir);
net/key/af_key.c
272
struct sadb_msg *hdr;
net/key/af_key.c
2737
static int pfkey_spddump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2747
pfk->dump.msg_version = hdr->sadb_msg_version;
net/key/af_key.c
2748
pfk->dump.msg_portid = hdr->sadb_msg_pid;
net/key/af_key.c
2760
struct sadb_msg *hdr;
net/key/af_key.c
2765
hdr = skb_put(skb_out, sizeof(struct sadb_msg));
net/key/af_key.c
2766
hdr->sadb_msg_type = SADB_X_SPDFLUSH;
net/key/af_key.c
2767
hdr->sadb_msg_seq = c->seq;
net/key/af_key.c
2768
hdr->sadb_msg_pid = c->portid;
net/key/af_key.c
2769
hdr->sadb_msg_version = PF_KEY_V2;
net/key/af_key.c
2770
hdr->sadb_msg_errno = (uint8_t) 0;
net/key/af_key.c
2771
hdr->sadb_msg_satype = SADB_SATYPE_UNSPEC;
net/key/af_key.c
2772
hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));
net/key/af_key.c
2773
hdr->sadb_msg_reserved = 0;
net/key/af_key.c
2779
static int pfkey_spdflush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
2786
err2 = unicast_flush_resp(sk, hdr);
net/key/af_key.c
2795
c.portid = hdr->sadb_msg_pid;
net/key/af_key.c
2796
c.seq = hdr->sadb_msg_seq;
net/key/af_key.c
2804
const struct sadb_msg *hdr, void * const *ext_hdrs);
net/key/af_key.c
2831
static int pfkey_process(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr)
net/key/af_key.c
2844
err = parse_exthdrs(skb, hdr, ext_hdrs);
net/key/af_key.c
2847
if (pfkey_funcs[hdr->sadb_msg_type])
net/key/af_key.c
2848
err = pfkey_funcs[hdr->sadb_msg_type](sk, skb, hdr, ext_hdrs);
net/key/af_key.c
2855
struct sadb_msg *hdr = NULL;
net/key/af_key.c
2857
if (skb->len < sizeof(*hdr)) {
net/key/af_key.c
2860
hdr = (struct sadb_msg *) skb->data;
net/key/af_key.c
2861
if (hdr->sadb_msg_version != PF_KEY_V2 ||
net/key/af_key.c
2862
hdr->sadb_msg_reserved != 0 ||
net/key/af_key.c
2863
(hdr->sadb_msg_type <= SADB_RESERVED ||
net/key/af_key.c
2864
hdr->sadb_msg_type > SADB_MAX)) {
net/key/af_key.c
2865
hdr = NULL;
net/key/af_key.c
2867
} else if (hdr->sadb_msg_len != (skb->len /
net/key/af_key.c
2869
hdr->sadb_msg_len < (sizeof(struct sadb_msg) /
net/key/af_key.c
2871
hdr = NULL;
net/key/af_key.c
2877
return hdr;
net/key/af_key.c
293
hdr = (struct sadb_msg *) pfk->dump.skb->data;
net/key/af_key.c
294
hdr->sadb_msg_seq = 0;
net/key/af_key.c
295
hdr->sadb_msg_errno = rc;
net/key/af_key.c
3157
struct sadb_msg *hdr;
net/key/af_key.c
317
struct sadb_msg *hdr;
net/key/af_key.c
3190
hdr = skb_put(skb, sizeof(struct sadb_msg));
net/key/af_key.c
3191
hdr->sadb_msg_version = PF_KEY_V2;
net/key/af_key.c
3192
hdr->sadb_msg_type = SADB_ACQUIRE;
net/key/af_key.c
3193
hdr->sadb_msg_satype = pfkey_proto2satype(x->id.proto);
net/key/af_key.c
3194
hdr->sadb_msg_len = size / sizeof(uint64_t);
net/key/af_key.c
3195
hdr->sadb_msg_errno = 0;
net/key/af_key.c
3196
hdr->sadb_msg_reserved = 0;
net/key/af_key.c
3197
hdr->sadb_msg_seq = x->km.seq = get_acqseq();
net/key/af_key.c
3198
hdr->sadb_msg_pid = 0;
net/key/af_key.c
3246
hdr->sadb_msg_len += alg_size / 8;
net/key/af_key.c
334
hdr = skb_put(skb, sizeof(struct sadb_msg));
net/key/af_key.c
335
pfkey_hdr_dup(hdr, orig);
net/key/af_key.c
3357
struct sadb_msg *hdr;
net/key/af_key.c
336
hdr->sadb_msg_errno = (uint8_t) err;
net/key/af_key.c
337
hdr->sadb_msg_len = (sizeof(struct sadb_msg) /
net/key/af_key.c
3394
hdr = skb_put(skb, sizeof(struct sadb_msg));
net/key/af_key.c
3395
hdr->sadb_msg_version = PF_KEY_V2;
net/key/af_key.c
3396
hdr->sadb_msg_type = SADB_X_NAT_T_NEW_MAPPING;
net/key/af_key.c
3397
hdr->sadb_msg_satype = satype;
net/key/af_key.c
3398
hdr->sadb_msg_len = size / sizeof(uint64_t);
net/key/af_key.c
3399
hdr->sadb_msg_errno = 0;
net/key/af_key.c
3400
hdr->sadb_msg_reserved = 0;
net/key/af_key.c
3401
hdr->sadb_msg_seq = x->km.seq;
net/key/af_key.c
3402
hdr->sadb_msg_pid = 0;
net/key/af_key.c
3559
struct sadb_msg *hdr;
net/key/af_key.c
3606
hdr = skb_put(skb, sizeof(struct sadb_msg));
net/key/af_key.c
3607
hdr->sadb_msg_version = PF_KEY_V2;
net/key/af_key.c
3608
hdr->sadb_msg_type = SADB_X_MIGRATE;
net/key/af_key.c
3609
hdr->sadb_msg_satype = pfkey_proto2satype(m->proto);
net/key/af_key.c
3610
hdr->sadb_msg_len = size / 8;
net/key/af_key.c
3611
hdr->sadb_msg_errno = 0;
net/key/af_key.c
3612
hdr->sadb_msg_reserved = 0;
net/key/af_key.c
3613
hdr->sadb_msg_seq = 0;
net/key/af_key.c
3614
hdr->sadb_msg_pid = 0;
net/key/af_key.c
3678
struct sadb_msg *hdr = NULL;
net/key/af_key.c
3699
hdr = pfkey_get_base_msg(skb, &err);
net/key/af_key.c
3700
if (!hdr)
net/key/af_key.c
3704
err = pfkey_process(sk, skb, hdr);
net/key/af_key.c
3708
if (err && hdr && pfkey_error(hdr, err, sk) == 0)
net/key/af_key.c
507
static int parse_exthdrs(struct sk_buff *skb, const struct sadb_msg *hdr, void **ext_hdrs)
net/key/af_key.c
509
const char *p = (char *) hdr;
net/key/af_key.c
512
len -= sizeof(*hdr);
net/key/af_key.c
513
p += sizeof(*hdr);
net/key/af_key.c
652
static struct xfrm_state *pfkey_xfrm_state_lookup(struct net *net, const struct sadb_msg *hdr, void * const *ext_hdrs)
net/key/af_key.c
664
proto = pfkey_satype2proto(hdr->sadb_msg_satype);
net/key/af_key.c
764
struct sadb_msg *hdr;
net/key/af_key.c
830
hdr = skb_put(skb, sizeof(struct sadb_msg));
net/key/af_key.c
831
memset(hdr, 0, size); /* XXX do we need this ? */
net/key/af_key.c
832
hdr->sadb_msg_len = size / sizeof(uint64_t);
net/l2tp/l2tp_netlink.c
388
void *hdr;
net/l2tp/l2tp_netlink.c
391
hdr = genlmsg_put(skb, portid, seq, &l2tp_nl_family, flags, cmd);
net/l2tp/l2tp_netlink.c
392
if (!hdr)
net/l2tp/l2tp_netlink.c
442
genlmsg_end(skb, hdr);
net/l2tp/l2tp_netlink.c
446
genlmsg_cancel(skb, hdr);
net/l2tp/l2tp_netlink.c
725
void *hdr;
net/l2tp/l2tp_netlink.c
729
hdr = genlmsg_put(skb, portid, seq, &l2tp_nl_family, flags, cmd);
net/l2tp/l2tp_netlink.c
730
if (!hdr)
net/l2tp/l2tp_netlink.c
76
void *hdr;
net/l2tp/l2tp_netlink.c
794
genlmsg_end(skb, hdr);
net/l2tp/l2tp_netlink.c
798
genlmsg_cancel(skb, hdr);
net/l2tp/l2tp_netlink.c
85
hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq,
net/l2tp/l2tp_netlink.c
87
if (!hdr) {
net/l2tp/l2tp_netlink.c
92
genlmsg_end(msg, hdr);
net/mac80211/debugfs_netdev.c
449
struct ieee80211_hdr *hdr;
net/mac80211/debugfs_netdev.c
463
hdr = skb_put_zero(skb, 24);
net/mac80211/debugfs_netdev.c
470
memcpy(hdr->addr1, addr, ETH_ALEN);
net/mac80211/debugfs_netdev.c
471
memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN);
net/mac80211/debugfs_netdev.c
472
memcpy(hdr->addr3, sdata->vif.addr, ETH_ALEN);
net/mac80211/debugfs_netdev.c
481
memcpy(hdr->addr1, sdata->deflink.u.mgd.bssid, ETH_ALEN);
net/mac80211/debugfs_netdev.c
482
memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN);
net/mac80211/debugfs_netdev.c
483
memcpy(hdr->addr3, addr, ETH_ALEN);
net/mac80211/debugfs_netdev.c
489
hdr->frame_control = fc;
net/mac80211/ieee80211_i.h
2501
struct ieee80211_hdr *hdr, bool ack, u16 tx_time);
net/mac80211/ieee80211_i.h
2826
u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len,
net/mac80211/iface.c
1714
struct ieee80211_hdr *hdr = (void *)mgmt;
net/mac80211/iface.c
1725
WARN_ON(hdr->frame_control &
net/mac80211/iface.c
1727
WARN_ON(!(hdr->seq_ctrl &
net/mac80211/iface.c
1736
u16 tid = ieee80211_get_tid(hdr);
net/mac80211/iface.c
914
struct ieee80211_hdr *hdr;
net/mac80211/iface.c
927
hdr = (struct ieee80211_hdr *)(skb->data + len_rthdr);
net/mac80211/iface.c
929
skb->len < len_rthdr + ieee80211_hdrlen(hdr->frame_control))
net/mac80211/iface.c
932
return ieee80211_select_queue_80211(sdata, skb, hdr);
net/mac80211/mesh.c
1406
struct ieee80211_mgmt *hdr;
net/mac80211/mesh.c
1451
hdr = (struct ieee80211_mgmt *) presp->data;
net/mac80211/mesh.c
1452
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT |
net/mac80211/mesh.c
1454
memcpy(hdr->da, mgmt->sa, ETH_ALEN);
net/mac80211/mesh.c
824
meshhdr = (struct ieee80211s_hdr *)entry->hdr;
net/mac80211/mesh.c
831
memcpy(skb_push(skb, entry->hdrlen - 2 * ETH_ALEN), entry->hdr,
net/mac80211/mesh.c
858
int ieee80211_fill_mesh_addresses(struct ieee80211_hdr *hdr, __le16 *fc,
net/mac80211/mesh.c
864
memcpy(hdr->addr1, meshda, ETH_ALEN);
net/mac80211/mesh.c
865
memcpy(hdr->addr2, meshsa, ETH_ALEN);
net/mac80211/mesh.c
866
memcpy(hdr->addr3, meshsa, ETH_ALEN);
net/mac80211/mesh.c
871
eth_zero_addr(hdr->addr1); /* RA is resolved later */
net/mac80211/mesh.c
872
memcpy(hdr->addr2, meshsa, ETH_ALEN);
net/mac80211/mesh.c
873
memcpy(hdr->addr3, meshda, ETH_ALEN);
net/mac80211/mesh.c
874
memcpy(hdr->addr4, meshsa, ETH_ALEN);
net/mac80211/mesh.h
183
u8 hdr[sizeof(struct ieee80211s_hdr) + sizeof(rfc1042_header)];
net/mac80211/mesh.h
236
int ieee80211_fill_mesh_addresses(struct ieee80211_hdr *hdr, __le16 *fc,
net/mac80211/mesh.h
293
struct ieee80211_hdr *hdr);
net/mac80211/mesh.h
296
struct ieee80211_hdr *hdr);
net/mac80211/mesh_hwmp.c
1163
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/mesh_hwmp.c
1167
u8 *target_addr = hdr->addr3;
net/mac80211/mesh_hwmp.c
1170
if (ieee80211_is_qos_nullfunc(hdr->frame_control))
net/mac80211/mesh_hwmp.c
1220
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/mesh_hwmp.c
1223
if (is_multicast_ether_addr(hdr->addr1))
net/mac80211/mesh_hwmp.c
1227
sta = sta_info_get(sdata, hdr->addr3);
net/mac80211/mesh_hwmp.c
1235
memcpy(hdr->addr1, hdr->addr3, ETH_ALEN);
net/mac80211/mesh_hwmp.c
1236
memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN);
net/mac80211/mesh_hwmp.c
1270
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/mesh_hwmp.c
1271
u8 *target_addr = hdr->addr3;
net/mac80211/mesh_hwmp.c
1281
mesh_path_refresh(sdata, mpath, hdr->addr4);
net/mac80211/mesh_hwmp.c
1285
memcpy(hdr->addr1, next_hop->sta.addr, ETH_ALEN);
net/mac80211/mesh_hwmp.c
1286
memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN);
net/mac80211/mesh_hwmp.c
1287
ieee80211_mps_set_frame_flags(sdata, next_hop, hdr);
net/mac80211/mesh_hwmp.c
204
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/mesh_hwmp.c
217
ieee80211_mps_set_frame_flags(sdata, NULL, hdr);
net/mac80211/mesh_pathtbl.c
118
struct ieee80211_hdr *hdr;
net/mac80211/mesh_pathtbl.c
125
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/mesh_pathtbl.c
126
memcpy(hdr->addr1, sta->sta.addr, ETH_ALEN);
net/mac80211/mesh_pathtbl.c
127
memcpy(hdr->addr2, mpath->sdata->vif.addr, ETH_ALEN);
net/mac80211/mesh_pathtbl.c
128
ieee80211_mps_set_frame_flags(sta->sdata, sta, hdr);
net/mac80211/mesh_pathtbl.c
137
struct ieee80211_hdr *hdr;
net/mac80211/mesh_pathtbl.c
142
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/mesh_pathtbl.c
143
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/mesh_pathtbl.c
152
memmove(skb->data, hdr, hdrlen + mesh_hdrlen);
net/mac80211/mesh_pathtbl.c
154
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/mesh_pathtbl.c
160
memcpy(mshdr->eaddr1, hdr->addr3, ETH_ALEN);
net/mac80211/mesh_pathtbl.c
161
memcpy(mshdr->eaddr2, hdr->addr4, ETH_ALEN);
net/mac80211/mesh_pathtbl.c
165
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/mesh_pathtbl.c
168
memcpy(hdr->addr1, next_hop, ETH_ALEN);
net/mac80211/mesh_pathtbl.c
170
memcpy(hdr->addr2, gate_mpath->sdata->vif.addr, ETH_ALEN);
net/mac80211/mesh_pathtbl.c
171
memcpy(hdr->addr3, dst_addr, ETH_ALEN);
net/mac80211/mesh_pathtbl.c
466
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/mesh_pathtbl.c
478
!ieee80211_is_data_qos(hdr->frame_control))
net/mac80211/mesh_pathtbl.c
481
build.fast_tx.hdr_len = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/mesh_pathtbl.c
502
} else if (ieee80211_has_a4(hdr->frame_control)) {
net/mac80211/mesh_pathtbl.c
508
if (!ether_addr_equal(hdr->addr4, sdata->vif.addr))
net/mac80211/mesh_pathtbl.c
563
memcpy(build.hdr, meshhdr, build.hdrlen);
net/mac80211/mesh_pathtbl.c
564
memcpy(build.hdr + build.hdrlen, rfc1042_header, sizeof(rfc1042_header));
net/mac80211/mesh_pathtbl.c
566
memcpy(build.fast_tx.hdr, hdr, build.fast_tx.hdr_len);
net/mac80211/mesh_pathtbl.c
568
hdr = (struct ieee80211_hdr *)build.fast_tx.hdr;
net/mac80211/mesh_pathtbl.c
570
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED);
net/mac80211/mesh_pathtbl.c
572
qc = ieee80211_get_qos_ctl(hdr);
net/mac80211/mesh_ps.c
193
struct ieee80211_hdr *hdr)
net/mac80211/mesh_ps.c
198
if (WARN_ON(is_unicast_ether_addr(hdr->addr1) &&
net/mac80211/mesh_ps.c
199
ieee80211_is_data_qos(hdr->frame_control) &&
net/mac80211/mesh_ps.c
203
if (is_unicast_ether_addr(hdr->addr1) &&
net/mac80211/mesh_ps.c
204
ieee80211_is_data_qos(hdr->frame_control) &&
net/mac80211/mesh_ps.c
211
hdr->frame_control &= cpu_to_le16(~IEEE80211_FCTL_PM);
net/mac80211/mesh_ps.c
213
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM);
net/mac80211/mesh_ps.c
215
if (!ieee80211_is_data_qos(hdr->frame_control))
net/mac80211/mesh_ps.c
218
qc = ieee80211_get_qos_ctl(hdr);
net/mac80211/mesh_ps.c
220
if ((is_unicast_ether_addr(hdr->addr1) &&
net/mac80211/mesh_ps.c
222
(is_multicast_ether_addr(hdr->addr1) &&
net/mac80211/mesh_ps.c
280
struct ieee80211_hdr *hdr)
net/mac80211/mesh_ps.c
283
u8 *qc = ieee80211_get_qos_ctl(hdr);
net/mac80211/mesh_ps.c
295
if (ieee80211_has_pm(hdr->frame_control)) {
net/mac80211/mesh_ps.c
316
struct ieee80211_hdr *hdr)
net/mac80211/mesh_ps.c
320
if (ieee80211_has_pm(hdr->frame_control))
net/mac80211/mesh_ps.c
343
struct ieee80211_hdr *hdr)
net/mac80211/mesh_ps.c
345
if (is_unicast_ether_addr(hdr->addr1) &&
net/mac80211/mesh_ps.c
346
ieee80211_is_data_qos(hdr->frame_control)) {
net/mac80211/mesh_ps.c
351
mps_set_sta_peer_pm(sta, hdr);
net/mac80211/mesh_ps.c
354
ieee80211_mpsp_trigger_process(ieee80211_get_qos_ctl(hdr),
net/mac80211/mesh_ps.c
361
mps_set_sta_nonpeer_pm(sta, hdr);
net/mac80211/mesh_ps.c
423
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/mesh_ps.c
426
if (ieee80211_is_data_qos(hdr->frame_control))
net/mac80211/mesh_ps.c
503
struct ieee80211_hdr *hdr = (void *) skb->data;
net/mac80211/mesh_ps.c
513
hdr->frame_control |=
net/mac80211/mesh_ps.c
516
hdr->frame_control &=
net/mac80211/mesh_ps.c
520
ieee80211_is_data_qos(hdr->frame_control)) {
net/mac80211/mesh_ps.c
521
u8 *qoshdr = ieee80211_get_qos_ctl(hdr);
net/mac80211/michael.c
28
struct ieee80211_hdr *hdr)
net/mac80211/michael.c
32
da = ieee80211_get_DA(hdr);
net/mac80211/michael.c
33
sa = ieee80211_get_SA(hdr);
net/mac80211/michael.c
34
if (ieee80211_is_data_qos(hdr->frame_control))
net/mac80211/michael.c
35
tid = ieee80211_get_tid(hdr);
net/mac80211/michael.c
53
void michael_mic(const u8 *key, struct ieee80211_hdr *hdr,
net/mac80211/michael.c
60
michael_mic_hdr(&mctx, key, hdr);
net/mac80211/michael.h
19
void michael_mic(const u8 *key, struct ieee80211_hdr *hdr,
net/mac80211/mlme.c
4403
struct ieee80211_hdr *hdr,
net/mac80211/mlme.c
4412
if (!ieee80211_is_data_qos(hdr->frame_control))
net/mac80211/mlme.c
4415
tid = ieee80211_get_tid(hdr);
net/mac80211/mlme.c
4447
struct ieee80211_hdr *hdr, bool ack, u16 tx_time)
net/mac80211/mlme.c
4449
ieee80211_sta_tx_wmm_ac_notify(sdata, hdr, tx_time);
net/mac80211/mlme.c
4451
if (!ieee80211_is_any_nullfunc(hdr->frame_control) ||
net/mac80211/mlme.c
7483
struct ieee80211_hdr *hdr, size_t len,
net/mac80211/mlme.c
7490
struct ieee80211_mgmt *mgmt = (void *) hdr;
net/mac80211/mlme.c
7516
bssid = ieee80211_get_bssid(hdr, len, sdata->vif.type);
net/mac80211/mlme.c
7560
!ieee80211_is_s1g_beacon(hdr->frame_control)) {
net/mac80211/mlme.c
7614
if (!ieee80211_is_s1g_beacon(hdr->frame_control))
net/mac80211/mlme.c
7697
!ieee80211_is_s1g_beacon(hdr->frame_control)) {
net/mac80211/mlme.c
7755
if (!ieee80211_is_s1g_beacon(hdr->frame_control))
net/mac80211/mlme.c
8247
struct ieee80211_hdr *hdr;
net/mac80211/mlme.c
8253
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/mlme.c
8254
fc = le16_to_cpu(hdr->frame_control);
net/mac80211/mlme.c
8258
ieee80211_rx_mgmt_beacon(link, hdr, skb->len, rx_status);
net/mac80211/rx.c
1014
if (ieee80211_is_mgmt(hdr->frame_control))
net/mac80211/rx.c
1063
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/rx.c
1065
if (is_multicast_ether_addr(hdr->addr1))
net/mac80211/rx.c
1074
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/rx.c
1076
if (!is_multicast_ether_addr(hdr->addr1))
net/mac80211/rx.c
1086
struct ieee80211_mgmt *hdr = (struct ieee80211_mgmt *) skb->data;
net/mac80211/rx.c
1090
if (skb->len < 24 + sizeof(*mmie) || !is_multicast_ether_addr(hdr->da))
net/mac80211/rx.c
1094
!ieee80211_is_beacon(hdr->frame_control))
net/mac80211/rx.c
110
if (ieee80211_is_ctl(hdr->frame_control) &&
net/mac80211/rx.c
111
!ieee80211_is_pspoll(hdr->frame_control) &&
net/mac80211/rx.c
1115
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/rx.c
1116
__le16 fc = hdr->frame_control;
net/mac80211/rx.c
112
!ieee80211_is_back_req(hdr->frame_control))
net/mac80211/rx.c
1133
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/rx.c
1136
if (ieee80211_is_data(hdr->frame_control)) {
net/mac80211/rx.c
1137
if (is_multicast_ether_addr(hdr->addr1)) {
net/mac80211/rx.c
1138
if (ieee80211_has_tods(hdr->frame_control) ||
net/mac80211/rx.c
1139
!ieee80211_has_fromds(hdr->frame_control))
net/mac80211/rx.c
1141
if (ether_addr_equal(hdr->addr3, dev_addr))
net/mac80211/rx.c
1144
if (!ieee80211_has_a4(hdr->frame_control))
net/mac80211/rx.c
1146
if (ether_addr_equal(hdr->addr4, dev_addr))
net/mac80211/rx.c
1158
if (!ieee80211_is_mgmt(hdr->frame_control))
net/mac80211/rx.c
1161
if (ieee80211_is_action(hdr->frame_control)) {
net/mac80211/rx.c
1168
mgmt = (struct ieee80211_mgmt *)hdr;
net/mac80211/rx.c
1176
if (ieee80211_is_probe_req(hdr->frame_control) ||
net/mac80211/rx.c
1177
ieee80211_is_probe_resp(hdr->frame_control) ||
net/mac80211/rx.c
1178
ieee80211_is_beacon(hdr->frame_control) ||
net/mac80211/rx.c
1179
ieee80211_is_auth(hdr->frame_control))
net/mac80211/rx.c
1351
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/rx.c
1353
u16 mpdu_seq_num = ieee80211_get_sn(hdr);
net/mac80211/rx.c
1449
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/rx.c
1455
if (!ieee80211_is_data_qos(hdr->frame_control) ||
net/mac80211/rx.c
1456
is_multicast_ether_addr(hdr->addr1))
net/mac80211/rx.c
1467
ack_policy = *ieee80211_get_qos_ctl(hdr) &
net/mac80211/rx.c
1469
tid = ieee80211_get_tid(hdr);
net/mac80211/rx.c
1483
if (unlikely(hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_NULLFUNC)))
net/mac80211/rx.c
1497
sc = le16_to_cpu(hdr->seq_ctrl);
net/mac80211/rx.c
1521
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/rx.c
1535
if (ieee80211_is_ctl(hdr->frame_control) ||
net/mac80211/rx.c
1536
ieee80211_is_any_nullfunc(hdr->frame_control))
net/mac80211/rx.c
1542
if (unlikely(is_multicast_ether_addr(hdr->addr1))) {
net/mac80211/rx.c
1544
u16 sn = ieee80211_get_sn(hdr);
net/mac80211/rx.c
1546
if (!ieee80211_is_data_present(hdr->frame_control))
net/mac80211/rx.c
1561
if (unlikely(ieee80211_has_retry(hdr->frame_control) &&
net/mac80211/rx.c
1562
rx->sta->last_seq_ctrl[rx->seqno_idx] == hdr->seq_ctrl)) {
net/mac80211/rx.c
1567
rx->sta->last_seq_ctrl[rx->seqno_idx] = hdr->seq_ctrl;
net/mac80211/rx.c
1576
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/rx.c
1590
if (unlikely((ieee80211_is_data(hdr->frame_control) ||
net/mac80211/rx.c
1591
ieee80211_is_pspoll(hdr->frame_control)) &&
net/mac80211/rx.c
1601
ieee80211_is_data_present(hdr->frame_control)) {
net/mac80211/rx.c
1605
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/rx.c
1616
cfg80211_rx_spurious_frame(rx->sdata->dev, hdr->addr2,
net/mac80211/rx.c
1631
struct ieee80211_hdr *hdr;
net/mac80211/rx.c
1636
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/rx.c
1641
if (!ieee80211_has_fromds(hdr->frame_control))
net/mac80211/rx.c
1645
if (!ieee80211_is_data(hdr->frame_control))
net/mac80211/rx.c
1648
if (!ieee80211_has_moredata(hdr->frame_control)) {
net/mac80211/rx.c
1788
struct ieee80211_hdr *hdr = (void *)rx->skb->data;
net/mac80211/rx.c
1814
if (unlikely(ieee80211_is_pspoll(hdr->frame_control))) {
net/mac80211/rx.c
1822
} else if (!ieee80211_has_morefrags(hdr->frame_control) &&
net/mac80211/rx.c
1824
ieee80211_has_pm(hdr->frame_control) &&
net/mac80211/rx.c
1825
(ieee80211_is_data_qos(hdr->frame_control) ||
net/mac80211/rx.c
1826
ieee80211_is_qos_nullfunc(hdr->frame_control))) {
net/mac80211/rx.c
1827
u8 tid = ieee80211_get_tid(hdr);
net/mac80211/rx.c
1842
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/rx.c
1857
u8 *bssid = ieee80211_get_bssid(hdr, rx->skb->len,
net/mac80211/rx.c
1862
if (ieee80211_is_data_present(hdr->frame_control) &&
net/mac80211/rx.c
1863
!is_multicast_ether_addr(hdr->addr1))
net/mac80211/rx.c
1869
} else if (!ieee80211_is_s1g_beacon(hdr->frame_control) &&
net/mac80211/rx.c
1870
!is_multicast_ether_addr(hdr->addr1)) {
net/mac80211/rx.c
1876
if (ieee80211_is_data_present(hdr->frame_control))
net/mac80211/rx.c
1906
if (ieee80211_is_s1g_beacon(hdr->frame_control))
net/mac80211/rx.c
1915
!ieee80211_has_morefrags(hdr->frame_control) &&
net/mac80211/rx.c
1916
!is_multicast_ether_addr(hdr->addr1) &&
net/mac80211/rx.c
1917
(ieee80211_is_mgmt(hdr->frame_control) ||
net/mac80211/rx.c
1918
ieee80211_is_data(hdr->frame_control)) &&
net/mac80211/rx.c
1923
if (!ieee80211_has_pm(hdr->frame_control))
net/mac80211/rx.c
1926
if (ieee80211_has_pm(hdr->frame_control))
net/mac80211/rx.c
1933
ieee80211_mps_rx_h_sta_process(sta, hdr);
net/mac80211/rx.c
1939
if (ieee80211_is_any_nullfunc(hdr->frame_control)) {
net/mac80211/rx.c
1948
if (ieee80211_has_a4(hdr->frame_control) &&
net/mac80211/rx.c
2009
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/rx.c
2017
if (ieee80211_is_ext(hdr->frame_control))
net/mac80211/rx.c
2050
fc = hdr->frame_control;
net/mac80211/rx.c
2070
if (!is_multicast_ether_addr(hdr->addr1) && sta_ptk) {
net/mac80211/rx.c
2128
is_multicast_ether_addr(hdr->addr1)) {
net/mac80211/rx.c
2169
if (is_multicast_ether_addr(hdr->addr1) && rx->link_sta)
net/mac80211/rx.c
2174
if (is_multicast_ether_addr(hdr->addr1))
net/mac80211/rx.c
2187
!is_multicast_ether_addr(hdr->addr1))
net/mac80211/rx.c
2294
int rx_queue, struct ieee80211_hdr *hdr)
net/mac80211/rx.c
2320
if (((hdr->frame_control ^ f_hdr->frame_control) &
net/mac80211/rx.c
2322
!ether_addr_equal(hdr->addr1, f_hdr->addr1) ||
net/mac80211/rx.c
2323
!ether_addr_equal(hdr->addr2, f_hdr->addr2))
net/mac80211/rx.c
2350
struct ieee80211_hdr *hdr;
net/mac80211/rx.c
2358
hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/rx.c
2359
fc = hdr->frame_control;
net/mac80211/rx.c
2364
sc = le16_to_cpu(hdr->seq_ctrl);
net/mac80211/rx.c
2373
if (is_multicast_ether_addr(hdr->addr1))
net/mac80211/rx.c
2386
hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/rx.c
2426
rx->seqno_idx, hdr);
net/mac80211/rx.c
2628
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/rx.c
2634
if (ieee80211_has_a4(hdr->frame_control) &&
net/mac80211/rx.c
2639
!!sdata->u.mgd.use_4addr != !!ieee80211_has_a4(hdr->frame_control)) {
net/mac80211/rx.c
2642
else if (!ether_addr_equal(hdr->addr1, sdata->vif.addr))
net/mac80211/rx.c
2646
if (is_multicast_ether_addr(hdr->addr1) &&
net/mac80211/rx.c
269
struct ieee80211_hdr_3addr hdr;
net/mac80211/rx.c
288
if (!ieee80211_is_action(action.hdr.frame_control))
net/mac80211/rx.c
2942
struct ieee80211_hdr hdr = {
net/mac80211/rx.c
297
if (!ether_addr_equal(action.hdr.addr1, sdata->u.mntr.mu_follow_addr))
net/mac80211/rx.c
3042
ieee80211_fill_mesh_addresses(&hdr, &hdr.frame_control,
net/mac80211/rx.c
3044
hdrlen = ieee80211_hdrlen(hdr.frame_control);
net/mac80211/rx.c
3065
memcpy(fwd_hdr, &hdr, hdrlen - 2);
net/mac80211/rx.c
3096
hdr.addr3, 0,
net/mac80211/rx.c
3123
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/rx.c
3124
__le16 fc = hdr->frame_control;
net/mac80211/rx.c
3129
if (unlikely(ieee80211_has_a4(hdr->frame_control))) {
net/mac80211/rx.c
3209
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/rx.c
3210
__le16 fc = hdr->frame_control;
net/mac80211/rx.c
3221
if (unlikely(ieee80211_has_a4(hdr->frame_control))) {
net/mac80211/rx.c
3238
if (is_multicast_ether_addr(hdr->addr1) || !rx->sta)
net/mac80211/rx.c
3267
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/rx.c
3268
__le16 fc = hdr->frame_control;
net/mac80211/rx.c
3272
if (unlikely(!ieee80211_is_data(hdr->frame_control)))
net/mac80211/rx.c
3275
if (unlikely(!ieee80211_is_data_present(hdr->frame_control)))
net/mac80211/rx.c
3279
if (ieee80211_has_a4(hdr->frame_control) &&
net/mac80211/rx.c
4107
struct ieee80211_hdr *hdr = (void *)rx->skb->data;
net/mac80211/rx.c
4109
if (!ieee80211_is_ext(hdr->frame_control))
net/mac80211/rx.c
4481
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/rx.c
4483
u8 *bssid = ieee80211_get_bssid(hdr, skb->len, sdata->vif.type);
net/mac80211/rx.c
4484
bool multicast = is_multicast_ether_addr(hdr->addr1) ||
net/mac80211/rx.c
4485
ieee80211_is_s1g_beacon(hdr->frame_control);
net/mac80211/rx.c
4491
if (ieee80211_is_first_frag(hdr->seq_ctrl) &&
net/mac80211/rx.c
4496
return ieee80211_is_our_addr(sdata, hdr->addr1, &rx->link_id);
net/mac80211/rx.c
4500
if (ether_addr_equal(sdata->vif.addr, hdr->addr2) ||
net/mac80211/rx.c
4501
ether_addr_equal(sdata->u.ibss.bssid, hdr->addr2) ||
net/mac80211/rx.c
4502
!is_valid_ether_addr(hdr->addr2))
net/mac80211/rx.c
4504
if (ieee80211_is_beacon(hdr->frame_control))
net/mac80211/rx.c
4509
!ether_addr_equal(sdata->vif.addr, hdr->addr1))
net/mac80211/rx.c
4517
ieee80211_ibss_rx_no_sta(sdata, bssid, hdr->addr2,
net/mac80211/rx.c
4524
if (!ieee80211_is_data_present(hdr->frame_control))
net/mac80211/rx.c
4529
!ether_addr_equal(sdata->dev->dev_addr, hdr->addr1))
net/mac80211/rx.c
4532
if (!is_valid_ether_addr(hdr->addr2) ||
net/mac80211/rx.c
4533
ether_addr_equal(sdata->dev->dev_addr, hdr->addr2))
net/mac80211/rx.c
4541
ieee80211_ocb_rx_no_sta(sdata, bssid, hdr->addr2,
net/mac80211/rx.c
4546
if (ether_addr_equal(sdata->vif.addr, hdr->addr2))
net/mac80211/rx.c
4550
return ether_addr_equal(sdata->vif.addr, hdr->addr1);
net/mac80211/rx.c
4554
return ieee80211_is_our_addr(sdata, hdr->addr1,
net/mac80211/rx.c
4566
!ieee80211_is_our_addr(sdata, hdr->addr1,
net/mac80211/rx.c
4569
if (ieee80211_is_public_action(hdr, skb->len))
net/mac80211/rx.c
4571
return ieee80211_is_beacon(hdr->frame_control);
net/mac80211/rx.c
4574
if (!ieee80211_has_tods(hdr->frame_control)) {
net/mac80211/rx.c
4576
if (ieee80211_is_data(hdr->frame_control))
net/mac80211/rx.c
4579
if (ieee80211_is_action(hdr->frame_control) &&
net/mac80211/rx.c
4581
!ether_addr_equal(bssid, hdr->addr1))
net/mac80211/rx.c
4602
if (ieee80211_is_data(hdr->frame_control) && multicast)
net/mac80211/rx.c
4607
return ieee80211_is_public_action(hdr, skb->len) ||
net/mac80211/rx.c
4608
ieee80211_is_probe_req(hdr->frame_control) ||
net/mac80211/rx.c
4609
ieee80211_is_probe_resp(hdr->frame_control) ||
net/mac80211/rx.c
4610
ieee80211_is_beacon(hdr->frame_control) ||
net/mac80211/rx.c
4611
(ieee80211_is_auth(hdr->frame_control) &&
net/mac80211/rx.c
4612
ether_addr_equal(sdata->vif.addr, hdr->addr1));
net/mac80211/rx.c
4620
hdr->addr3, ETH_ALEN) == 0 &&
net/mac80211/rx.c
4621
(ieee80211_is_public_action(hdr, skb->len) ||
net/mac80211/rx.c
4622
(ieee80211_is_auth(hdr->frame_control) &&
net/mac80211/rx.c
4623
ether_addr_equal(sdata->vif.addr, hdr->addr1)));
net/mac80211/rx.c
48
struct ieee80211_hdr *hdr;
net/mac80211/rx.c
4929
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/rx.c
4933
int hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/rx.c
4962
if (unlikely(!ieee80211_is_data_present(hdr->frame_control)))
net/mac80211/rx.c
4965
if (unlikely(ieee80211_is_frag(hdr)))
net/mac80211/rx.c
4977
if (!ether_addr_equal(fast_rx->vif_addr, hdr->addr1))
net/mac80211/rx.c
4980
if ((hdr->frame_control & cpu_to_le16(IEEE80211_FCTL_FROMDS |
net/mac80211/rx.c
5024
if (rx->key && !ieee80211_has_protected(hdr->frame_control))
net/mac80211/rx.c
5084
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/rx.c
5127
hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/rx.c
5131
is_unicast_ether_addr(hdr->addr1) &&
net/mac80211/rx.c
5132
!ieee80211_is_probe_resp(hdr->frame_control) &&
net/mac80211/rx.c
5133
!ieee80211_is_beacon(hdr->frame_control)) {
net/mac80211/rx.c
5135
if (ether_addr_equal(link->conf->addr, hdr->addr1))
net/mac80211/rx.c
5136
ether_addr_copy(hdr->addr1, rx->sdata->vif.addr);
net/mac80211/rx.c
5137
if (ether_addr_equal(link_sta->addr, hdr->addr2))
net/mac80211/rx.c
5138
ether_addr_copy(hdr->addr2, rx->sta->addr);
net/mac80211/rx.c
5140
if (!ieee80211_has_tods(hdr->frame_control) &&
net/mac80211/rx.c
5141
!ieee80211_has_fromds(hdr->frame_control)) {
net/mac80211/rx.c
5142
if (ether_addr_equal(link_sta->addr, hdr->addr3))
net/mac80211/rx.c
5143
ether_addr_copy(hdr->addr3, rx->sta->addr);
net/mac80211/rx.c
5144
else if (ether_addr_equal(link->conf->addr, hdr->addr3))
net/mac80211/rx.c
5145
ether_addr_copy(hdr->addr3, rx->sdata->vif.addr);
net/mac80211/rx.c
5210
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/rx.c
5220
link_sta = link_sta_info_get_bss(rx->sdata, hdr->addr2);
net/mac80211/rx.c
5227
sta = sta_info_get_bss(rx->sdata, hdr->addr2);
net/mac80211/rx.c
5266
struct ieee80211_hdr *hdr;
net/mac80211/rx.c
5298
hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/rx.c
5302
if (unlikely(ieee80211_is_probe_resp(hdr->frame_control) ||
net/mac80211/rx.c
5303
ieee80211_is_beacon(hdr->frame_control) ||
net/mac80211/rx.c
5304
ieee80211_is_s1g_beacon(hdr->frame_control)))
net/mac80211/rx.c
5331
hdr->addr2);
net/mac80211/rx.c
5345
for_each_sta_info(local, hdr->addr2, sta, tmp) {
net/mac80211/rx.c
5356
hdr->addr2);
net/mac80211/rx.c
5377
hdr->addr2);
net/mac80211/rx.c
5442
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/rx.c
5582
ieee80211_is_data_present(hdr->frame_control))
net/mac80211/rx.c
65
hdr = (void *)skb->data;
net/mac80211/rx.c
66
fc = hdr->frame_control;
net/mac80211/rx.c
79
hdr->frame_control &= ~cpu_to_le16(IEEE80211_FCTL_ORDER);
net/mac80211/rx.c
97
struct ieee80211_hdr *hdr;
net/mac80211/rx.c
986
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/rx.c
99
hdr = (void *)(skb->data + rtap_space);
net/mac80211/rx.c
991
if (ieee80211_is_data_qos(hdr->frame_control)) {
net/mac80211/rx.c
992
u8 *qc = ieee80211_get_qos_ctl(hdr);
net/mac80211/scan.c
675
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/scan.c
680
hdr->seq_ctrl =
net/mac80211/sta_info.c
2109
struct ieee80211_hdr *hdr = (void *) skb->data;
net/mac80211/sta_info.c
2127
hdr->frame_control |=
net/mac80211/sta_info.c
2130
hdr->frame_control &=
net/mac80211/sta_info.c
2133
if (ieee80211_is_data_qos(hdr->frame_control) ||
net/mac80211/sta_info.c
2134
ieee80211_is_qos_nullfunc(hdr->frame_control))
net/mac80211/sta_info.c
2135
qoshdr = ieee80211_get_qos_ctl(hdr);
net/mac80211/sta_info.c
2182
hdr->frame_control |=
net/mac80211/sta_info.h
325
u8 hdr[30 + 2 + IEEE80211_FAST_XMIT_MAX_IV +
net/mac80211/status.c
1000
ieee80211_get_qos_ctl(hdr), sta, true, acked);
net/mac80211/status.c
1003
(ieee80211_is_data(hdr->frame_control)) &&
net/mac80211/status.c
1013
qc = ieee80211_get_qos_ctl(hdr);
net/mac80211/status.c
1015
ssn = ((le16_to_cpu(hdr->seq_ctrl) + 0x10)
net/mac80211/status.c
1017
ieee80211_send_bar(&sta->sdata->vif, hdr->addr1,
net/mac80211/status.c
1020
u8 *qc = ieee80211_get_qos_ctl(hdr);
net/mac80211/status.c
1068
if (ieee80211_is_first_frag(hdr->seq_ctrl)) {
net/mac80211/status.c
1070
if (is_multicast_ether_addr(ieee80211_get_DA(hdr)))
net/mac80211/status.c
1082
if (!is_multicast_ether_addr(hdr->addr1) ||
net/mac80211/status.c
1087
if (ieee80211_is_first_frag(hdr->seq_ctrl))
net/mac80211/status.c
1119
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/status.c
1129
sta = sta_info_get_by_addrs(local, hdr->addr1, hdr->addr2);
net/mac80211/status.c
189
struct ieee80211_hdr *hdr = (void *) skb->data;
net/mac80211/status.c
190
u8 *qc = ieee80211_get_qos_ctl(hdr);
net/mac80211/status.c
193
ieee80211_check_pending_bar(sta, hdr->addr1, tid);
net/mac80211/status.c
263
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/status.c
318
!is_multicast_ether_addr(hdr->addr1))
net/mac80211/status.c
49
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/status.c
575
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/status.c
601
if (ether_addr_equal(sdata->vif.addr, hdr->addr2))
net/mac80211/status.c
627
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/status.c
655
else if (ieee80211_is_any_nullfunc(hdr->frame_control))
net/mac80211/status.c
656
cfg80211_probe_status(sdata->dev, hdr->addr1,
net/mac80211/status.c
661
else if (ieee80211_is_mgmt(hdr->frame_control))
net/mac80211/status.c
739
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/status.c
750
sta = sta_info_get_by_addrs(local, hdr->addr1, hdr->addr2);
net/mac80211/status.c
769
if (ieee80211_is_data(hdr->frame_control) &&
net/mac80211/status.c
788
hdr->frame_control,
net/mac80211/status.c
84
if (hdr->frame_control & cpu_to_le16(IEEE80211_FCTL_MOREDATA))
net/mac80211/status.c
85
hdr->frame_control &= ~cpu_to_le16(IEEE80211_FCTL_MOREDATA);
net/mac80211/status.c
87
if (ieee80211_is_data_qos(hdr->frame_control)) {
net/mac80211/status.c
88
u8 *p = ieee80211_get_qos_ctl(hdr);
net/mac80211/status.c
974
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/status.c
984
fc = hdr->frame_control;
net/mac80211/tests/mfp.c
220
struct ieee80211_hdr_3addr hdr = {
net/mac80211/tests/mfp.c
248
hdr.frame_control |=
net/mac80211/tests/mfp.c
253
hdr.addr1[0] = 0x02;
net/mac80211/tests/mfp.c
255
skb_put_data(rx.skb, &hdr, sizeof(hdr));
net/mac80211/tkip.c
203
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/tkip.c
204
const u8 *data = (u8 *)hdr + ieee80211_hdrlen(hdr->frame_control);
net/mac80211/tx.c
1005
hdr = (void *)skb->data;
net/mac80211/tx.c
1009
hdr->frame_control |= morefrags;
net/mac80211/tx.c
1020
hdr->frame_control &= ~morefrags;
net/mac80211/tx.c
1022
hdr->seq_ctrl |= cpu_to_le16(fragnum & IEEE80211_SCTL_FRAG);
net/mac80211/tx.c
1087
struct ieee80211_hdr *hdr;
net/mac80211/tx.c
1092
hdr = (void *) skb->data;
net/mac80211/tx.c
1093
if (unlikely(ieee80211_is_pspoll(hdr->frame_control)))
net/mac80211/tx.c
1100
group_addr = is_multicast_ether_addr(hdr->addr1);
net/mac80211/tx.c
1102
hdr->duration_id =
net/mac80211/tx.c
1216
struct ieee80211_hdr *hdr;
net/mac80211/tx.c
1234
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/tx.c
1245
tx->sta = sta_info_get_bss(sdata, hdr->addr1);
net/mac80211/tx.c
1247
if (!tx->sta && !is_multicast_ether_addr(hdr->addr1)) {
net/mac80211/tx.c
1248
tx->sta = sta_info_get(sdata, hdr->addr1);
net/mac80211/tx.c
1253
if (tx->sta && ieee80211_is_data_qos(hdr->frame_control) &&
net/mac80211/tx.c
1254
!ieee80211_is_qos_nullfunc(hdr->frame_control) &&
net/mac80211/tx.c
1259
tid = ieee80211_get_tid(hdr);
net/mac80211/tx.c
1277
if (is_multicast_ether_addr(hdr->addr1)) {
net/mac80211/tx.c
1307
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/tx.c
1316
unlikely(!ieee80211_is_data_present(hdr->frame_control))) {
net/mac80211/tx.c
1317
if ((!ieee80211_is_mgmt(hdr->frame_control) ||
net/mac80211/tx.c
168
if (ieee80211_is_data_qos(hdr->frame_control) &&
net/mac80211/tx.c
169
*(ieee80211_get_qos_ctl(hdr)) & IEEE80211_QOS_CTL_ACK_POLICY_NOACK)
net/mac80211/tx.c
2030
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/tx.c
2036
else if (ieee80211_is_mgmt(hdr->frame_control))
net/mac80211/tx.c
2053
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/tx.c
2057
if (ieee80211_is_data(hdr->frame_control) &&
net/mac80211/tx.c
2058
is_unicast_ether_addr(hdr->addr1)) {
net/mac80211/tx.c
2062
ieee80211_mps_set_frame_flags(sdata, NULL, hdr);
net/mac80211/tx.c
2312
struct ieee80211_hdr *hdr;
net/mac80211/tx.c
2350
hdr = (struct ieee80211_hdr *)(skb->data + len_rthdr);
net/mac80211/tx.c
2351
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/tx.c
2360
if (ieee80211_is_data(hdr->frame_control) &&
net/mac80211/tx.c
2362
u8 *payload = (u8 *)hdr + hdrlen;
net/mac80211/tx.c
2387
if (ether_addr_equal(tmp_sdata->vif.addr, hdr->addr2)) {
net/mac80211/tx.c
2444
ieee80211_select_queue_80211(sdata, skb, hdr);
net/mac80211/tx.c
2613
struct ieee80211_hdr hdr;
net/mac80211/tx.c
2649
memcpy(hdr.addr1, sta->sta.addr, ETH_ALEN);
net/mac80211/tx.c
2650
memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN);
net/mac80211/tx.c
2651
memcpy(hdr.addr3, skb->data, ETH_ALEN);
net/mac80211/tx.c
2652
memcpy(hdr.addr4, skb->data + ETH_ALEN, ETH_ALEN);
net/mac80211/tx.c
2673
memcpy(hdr.addr1, skb->data, ETH_ALEN);
net/mac80211/tx.c
2684
memcpy(hdr.addr2, link->conf->addr, ETH_ALEN);
net/mac80211/tx.c
2687
memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN);
net/mac80211/tx.c
2697
memcpy(hdr.addr2, conf->addr, ETH_ALEN);
net/mac80211/tx.c
2700
memcpy(hdr.addr3, skb->data + ETH_ALEN, ETH_ALEN);
net/mac80211/tx.c
273
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
net/mac80211/tx.c
2737
hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc,
net/mac80211/tx.c
2755
hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc,
net/mac80211/tx.c
2774
is_zero_ether_addr(hdr.addr1))
net/mac80211/tx.c
2775
memcpy(hdr.addr1, skb->data, ETH_ALEN);
net/mac80211/tx.c
2788
memcpy(hdr.addr1, skb->data, ETH_ALEN);
net/mac80211/tx.c
2789
memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN);
net/mac80211/tx.c
2795
memcpy(hdr.addr3, link->u.mgd.bssid, ETH_ALEN);
net/mac80211/tx.c
2802
memcpy(hdr.addr1, sdata->deflink.u.mgd.bssid, ETH_ALEN);
net/mac80211/tx.c
2803
memcpy(hdr.addr2, sdata->vif.addr, ETH_ALEN);
net/mac80211/tx.c
2804
memcpy(hdr.addr3, skb->data, ETH_ALEN);
net/mac80211/tx.c
2805
memcpy(hdr.addr4, skb->data + ETH_ALEN, ETH_ALEN);
net/mac80211/tx.c
2810
memcpy(hdr.addr1, sdata->vif.cfg.ap_addr, ETH_ALEN);
net/mac80211/tx.c
2811
memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN);
net/mac80211/tx.c
2812
memcpy(hdr.addr3, skb->data, ETH_ALEN);
net/mac80211/tx.c
2818
memcpy(hdr.addr1, skb->data, ETH_ALEN);
net/mac80211/tx.c
2819
memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN);
net/mac80211/tx.c
282
!ieee80211_is_probe_req(hdr->frame_control) &&
net/mac80211/tx.c
2820
eth_broadcast_addr(hdr.addr3);
net/mac80211/tx.c
2825
memcpy(hdr.addr1, skb->data, ETH_ALEN);
net/mac80211/tx.c
2826
memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN);
net/mac80211/tx.c
2827
memcpy(hdr.addr3, sdata->u.ibss.bssid, ETH_ALEN);
net/mac80211/tx.c
283
!ieee80211_is_any_nullfunc(hdr->frame_control))
net/mac80211/tx.c
2846
multicast = is_multicast_ether_addr(hdr.addr1);
net/mac80211/tx.c
2874
sdata->name, hdr.addr1);
net/mac80211/tx.c
2898
hdr.frame_control = fc;
net/mac80211/tx.c
2899
hdr.duration_id = 0;
net/mac80211/tx.c
2900
hdr.seq_ctrl = 0;
net/mac80211/tx.c
2954
memcpy(skb_push(skb, hdrlen - 2), &hdr, hdrlen - 2);
net/mac80211/tx.c
2961
memcpy(skb_push(skb, hdrlen), &hdr, hdrlen);
net/mac80211/tx.c
2994
sdata->name, hdr.addr1,
net/mac80211/tx.c
3036
struct ieee80211_hdr *hdr = (void *)build.hdr;
net/mac80211/tx.c
308
ieee80211_is_data(hdr->frame_control))) {
net/mac80211/tx.c
3103
memcpy(hdr->addr3, sdata->u.ibss.bssid, ETH_ALEN);
net/mac80211/tx.c
3118
memcpy(hdr->addr3, link->u.mgd.bssid, ETH_ALEN);
net/mac80211/tx.c
312
hdr->addr1);
net/mac80211/tx.c
3129
memcpy(hdr->addr1, sdata->deflink.u.mgd.bssid, ETH_ALEN);
net/mac80211/tx.c
3130
memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN);
net/mac80211/tx.c
3138
memcpy(hdr->addr1, sdata->vif.cfg.ap_addr, ETH_ALEN);
net/mac80211/tx.c
3148
memcpy(hdr->addr1, sta->sta.addr, ETH_ALEN);
net/mac80211/tx.c
3149
memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN);
net/mac80211/tx.c
3161
memcpy(hdr->addr2, sdata->vif.addr, ETH_ALEN);
net/mac80211/tx.c
317
} else if (unlikely(ieee80211_is_data(hdr->frame_control) &&
net/mac80211/tx.c
3172
memcpy(hdr->addr2, link->conf->addr, ETH_ALEN);
net/mac80211/tx.c
3260
hdr->frame_control = fc;
net/mac80211/tx.c
3262
memcpy(build.hdr + build.hdr_len,
net/mac80211/tx.c
3342
struct ieee80211_hdr *hdr;
net/mac80211/tx.c
3363
hdr = data;
net/mac80211/tx.c
3389
if (bssid && ieee80211_has_fromds(hdr->frame_control))
net/mac80211/tx.c
3392
if (bssid && ieee80211_has_tods(hdr->frame_control))
net/mac80211/tx.c
3395
qc = ieee80211_get_qos_ctl(hdr);
net/mac80211/tx.c
3561
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/tx.c
3573
if (hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) {
net/mac80211/tx.c
3575
hdr->seq_ctrl = ieee80211_tx_next_seq(sta, tid);
net/mac80211/tx.c
3578
hdr->seq_ctrl = cpu_to_le16(sdata->sequence_number);
net/mac80211/tx.c
3679
struct ieee80211_hdr *hdr = (void *)fast_tx->hdr;
net/mac80211/tx.c
3690
if ((hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) &&
net/mac80211/tx.c
3704
hdr = skb_push(skb, extra_head);
net/mac80211/tx.c
3705
memcpy(skb->data, fast_tx->hdr, fast_tx->hdr_len);
net/mac80211/tx.c
3724
if (hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) {
net/mac80211/tx.c
3727
*ieee80211_get_qos_ctl(hdr) = tid;
net/mac80211/tx.c
3768
struct ieee80211_hdr *hdr = (void *)fast_tx->hdr;
net/mac80211/tx.c
3786
if (hdr->frame_control & cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) {
net/mac80211/tx.c
3818
struct ieee80211_hdr *hdr;
net/mac80211/tx.c
384
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
net/mac80211/tx.c
3868
hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/tx.c
3884
ieee80211_is_data(hdr->frame_control) &&
net/mac80211/tx.c
3887
!is_multicast_ether_addr(hdr->addr1) &&
net/mac80211/tx.c
3891
!ieee80211_is_our_addr(tx.sdata, hdr->addr2,
net/mac80211/tx.c
3932
pn_offs = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/tx.c
410
if (ieee80211_has_order(hdr->frame_control))
net/mac80211/tx.c
413
if (ieee80211_is_probe_req(hdr->frame_control))
net/mac80211/tx.c
465
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
net/mac80211/tx.c
4748
struct ieee80211_hdr *hdr;
net/mac80211/tx.c
4768
hdr = (void *)skb->data;
net/mac80211/tx.c
4769
tx.sta = sta_info_get(sdata, hdr->addr1);
net/mac80211/tx.c
477
if (ieee80211_is_mgmt(hdr->frame_control) &&
net/mac80211/tx.c
4809
struct ieee80211_hdr *hdr;
net/mac80211/tx.c
4843
hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/tx.c
4844
sta = sta_info_get(sdata, hdr->addr1);
net/mac80211/tx.c
51
struct ieee80211_hdr *hdr;
net/mac80211/tx.c
5645
struct ieee80211_hdr *hdr;
net/mac80211/tx.c
5665
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/tx.c
5666
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT |
net/mac80211/tx.c
569
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
net/mac80211/tx.c
5815
struct ieee80211_hdr *hdr;
net/mac80211/tx.c
5832
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/tx.c
5833
memset(hdr->addr1, 0, sizeof(hdr->addr1));
net/mac80211/tx.c
585
else if (ieee80211_is_mgmt(hdr->frame_control) &&
net/mac80211/tx.c
586
is_multicast_ether_addr(hdr->addr1) &&
net/mac80211/tx.c
589
else if (is_multicast_ether_addr(hdr->addr1))
net/mac80211/tx.c
600
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
net/mac80211/tx.c
6009
struct ieee80211_hdr_3addr *hdr;
net/mac80211/tx.c
6016
skb = dev_alloc_skb(local->hw.extra_tx_headroom + sizeof(*hdr) +
net/mac80211/tx.c
6023
hdr = skb_put_zero(skb, sizeof(*hdr));
net/mac80211/tx.c
6024
hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT |
net/mac80211/tx.c
6026
eth_broadcast_addr(hdr->addr1);
net/mac80211/tx.c
6027
memcpy(hdr->addr2, src_addr, ETH_ALEN);
net/mac80211/tx.c
6028
eth_broadcast_addr(hdr->addr3);
net/mac80211/tx.c
6046
const struct ieee80211_hdr *hdr = frame;
net/mac80211/tx.c
6052
memcpy(rts->ra, hdr->addr1, sizeof(rts->ra));
net/mac80211/tx.c
6053
memcpy(rts->ta, hdr->addr2, sizeof(rts->ta));
net/mac80211/tx.c
6062
const struct ieee80211_hdr *hdr = frame;
net/mac80211/tx.c
6068
memcpy(cts->ra, hdr->addr1, sizeof(cts->ra));
net/mac80211/tx.c
6116
struct ieee80211_hdr *hdr =
net/mac80211/tx.c
612
else if (!is_multicast_ether_addr(hdr->addr1) &&
net/mac80211/tx.c
6121
hdr->frame_control |=
net/mac80211/tx.c
6241
const struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/tx.c
6259
} else if (memcmp(sdata->vif.addr, hdr->addr2, ETH_ALEN) == 0) {
net/mac80211/tx.c
6271
if (memcmp(link_conf->addr, hdr->addr2, ETH_ALEN) == 0)
net/mac80211/tx.c
633
if (!ieee80211_is_data_present(hdr->frame_control))
net/mac80211/tx.c
640
if (!ieee80211_is_data_present(hdr->frame_control) &&
net/mac80211/tx.c
641
!ieee80211_use_mfp(hdr->frame_control, tx->sta,
net/mac80211/tx.c
644
!ieee80211_require_encrypted_assoc(hdr->frame_control,
net/mac80211/tx.c
650
ieee80211_is_mgmt(hdr->frame_control);
net/mac80211/tx.c
656
if (!ieee80211_is_mgmt(hdr->frame_control))
net/mac80211/tx.c
662
!ieee80211_is_deauth(hdr->frame_control)) &&
net/mac80211/tx.c
669
} else if (ieee80211_is_data_present(hdr->frame_control) && tx->sta &&
net/mac80211/tx.c
681
struct ieee80211_hdr *hdr = (void *)tx->skb->data;
net/mac80211/tx.c
759
encap ? ((struct ethhdr *)hdr)->h_dest : hdr->addr1,
net/mac80211/tx.c
826
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)tx->skb->data;
net/mac80211/tx.c
837
if (unlikely(ieee80211_is_ctl(hdr->frame_control)))
net/mac80211/tx.c
840
if (ieee80211_hdrlen(hdr->frame_control) < 24)
net/mac80211/tx.c
843
if (ieee80211_is_qos_nullfunc(hdr->frame_control))
net/mac80211/tx.c
850
if (unlikely(is_multicast_ether_addr(hdr->addr1) &&
net/mac80211/tx.c
855
hdr->seq_ctrl = cpu_to_le16(tx->sdata->mld_mcast_seq);
net/mac80211/tx.c
865
if (!ieee80211_is_data_qos(hdr->frame_control) ||
net/mac80211/tx.c
866
is_multicast_ether_addr(hdr->addr1)) {
net/mac80211/tx.c
870
hdr->seq_ctrl = cpu_to_le16(tx->sdata->sequence_number);
net/mac80211/tx.c
886
tid = ieee80211_get_tid(hdr);
net/mac80211/tx.c
889
hdr->seq_ctrl = ieee80211_tx_next_seq(tx->sta, tid);
net/mac80211/tx.c
91
hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/tx.c
92
if (ieee80211_is_ctl(hdr->frame_control)) {
net/mac80211/tx.c
959
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/tx.c
982
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/util.c
108
struct ieee80211_hdr *hdr;
net/mac80211/util.c
111
hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/util.c
112
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED);
net/mac80211/util.c
54
u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len,
net/mac80211/util.c
57
__le16 fc = hdr->frame_control;
net/mac80211/util.c
66
return hdr->addr1;
net/mac80211/util.c
68
return hdr->addr2;
net/mac80211/util.c
70
return hdr->addr3;
net/mac80211/util.c
74
struct ieee80211_ext *ext = (void *) hdr;
net/mac80211/util.c
82
return hdr->addr3;
net/mac80211/util.c
87
return hdr->addr1;
net/mac80211/util.c
92
return hdr->addr2;
net/mac80211/util.c
95
return hdr->addr1;
net/mac80211/wep.c
100
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wep.c
199
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/wep.c
204
if (!ieee80211_has_protected(hdr->frame_control))
net/mac80211/wep.c
207
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wep.c
246
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/wep.c
247
__le16 fc = hdr->frame_control;
net/mac80211/wep.c
69
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/wep.c
74
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PROTECTED);
net/mac80211/wep.c
79
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wep.c
97
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/wme.c
119
struct ieee80211_hdr *hdr)
net/mac80211/wme.c
132
if (!ieee80211_is_data(hdr->frame_control)) {
net/mac80211/wme.c
136
if (!ieee80211_is_data_qos(hdr->frame_control)) {
net/mac80211/wme.c
141
p = ieee80211_get_qos_ctl(hdr);
net/mac80211/wme.c
196
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/wme.c
202
if (!ieee80211_is_data_qos(hdr->frame_control))
net/mac80211/wme.c
205
p = ieee80211_get_qos_ctl(hdr);
net/mac80211/wme.c
224
if (is_multicast_ether_addr(hdr->addr1) ||
net/mac80211/wme.c
241
if (!ieee80211_is_qos_nullfunc(hdr->frame_control))
net/mac80211/wme.h
15
struct ieee80211_hdr *hdr);
net/mac80211/wpa.c
1000
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/wpa.c
1002
if (!ieee80211_is_mgmt(hdr->frame_control))
net/mac80211/wpa.c
1027
memcpy(nonce, hdr->addr2, ETH_ALEN);
net/mac80211/wpa.c
103
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/wpa.c
109
if (!ieee80211_is_data_present(hdr->frame_control))
net/mac80211/wpa.c
151
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wpa.c
157
hdr = (void *)skb->data;
net/mac80211/wpa.c
162
michael_mic(key, hdr, data, data_len, mic);
net/mac80211/wpa.c
185
cfg80211_michael_mic_failure(rx->sdata->dev, hdr->addr2,
net/mac80211/wpa.c
186
is_multicast_ether_addr(hdr->addr1) ?
net/mac80211/wpa.c
196
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/wpa.c
211
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wpa.c
267
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) rx->skb->data;
net/mac80211/wpa.c
273
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wpa.c
275
if (!ieee80211_is_data(hdr->frame_control))
net/mac80211/wpa.c
284
hdr = (void *)skb->data;
net/mac80211/wpa.c
297
hdr->addr1, hwaccel, rx->security_idx,
net/mac80211/wpa.c
320
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/wpa.c
330
mgmt = ieee80211_is_mgmt(hdr->frame_control);
net/mac80211/wpa.c
331
mask_fc = hdr->frame_control;
net/mac80211/wpa.c
338
a4_included = ieee80211_has_a4(hdr->frame_control);
net/mac80211/wpa.c
342
if (ieee80211_is_data_qos(hdr->frame_control)) {
net/mac80211/wpa.c
343
qos_tid = *ieee80211_get_qos_ctl(hdr);
net/mac80211/wpa.c
35
struct ieee80211_hdr *hdr;
net/mac80211/wpa.c
361
memcpy(&aad[4], &hdr->addrs, 3 * ETH_ALEN);
net/mac80211/wpa.c
364
aad[22] = *((u8 *) &hdr->seq_ctrl) & 0x0f;
net/mac80211/wpa.c
368
memcpy(&aad[24], hdr->addr4, ETH_ALEN);
net/mac80211/wpa.c
382
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/wpa.c
397
b_0[1] = qos_tid | (ieee80211_is_mgmt(hdr->frame_control) << 4);
net/mac80211/wpa.c
398
memcpy(&b_0[2], hdr->addr2, ETH_ALEN);
net/mac80211/wpa.c
40
hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/wpa.c
402
static inline void ccmp_pn2hdr(u8 *hdr, u8 *pn, int key_id)
net/mac80211/wpa.c
404
hdr[0] = pn[5];
net/mac80211/wpa.c
405
hdr[1] = pn[4];
net/mac80211/wpa.c
406
hdr[2] = 0;
net/mac80211/wpa.c
407
hdr[3] = 0x20 | (key_id << 6);
net/mac80211/wpa.c
408
hdr[4] = pn[3];
net/mac80211/wpa.c
409
hdr[5] = pn[2];
net/mac80211/wpa.c
410
hdr[6] = pn[1];
net/mac80211/wpa.c
411
hdr[7] = pn[0];
net/mac80211/wpa.c
415
static inline void ccmp_hdr2pn(u8 *pn, u8 *hdr)
net/mac80211/wpa.c
417
pn[0] = hdr[7];
net/mac80211/wpa.c
418
pn[1] = hdr[6];
net/mac80211/wpa.c
419
pn[2] = hdr[5];
net/mac80211/wpa.c
42
skb->len < 24 || !ieee80211_is_data_present(hdr->frame_control))
net/mac80211/wpa.c
420
pn[3] = hdr[4];
net/mac80211/wpa.c
421
pn[4] = hdr[1];
net/mac80211/wpa.c
422
pn[5] = hdr[0];
net/mac80211/wpa.c
429
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/wpa.c
444
ieee80211_is_mgmt(hdr->frame_control))) {
net/mac80211/wpa.c
45
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wpa.c
452
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wpa.c
518
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/wpa.c
527
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wpa.c
529
if (!ieee80211_is_data(hdr->frame_control) &&
net/mac80211/wpa.c
531
!ieee80211_require_encrypted_assoc(hdr->frame_control, rx->sta))
net/mac80211/wpa.c
545
hdr = (void *)rx->skb->data;
net/mac80211/wpa.c
582
if (unlikely(ieee80211_is_frag(hdr)))
net/mac80211/wpa.c
598
struct ieee80211_hdr *hdr = (void *)skb->data;
net/mac80211/wpa.c
600
memcpy(j_0, hdr->addr2, ETH_ALEN);
net/mac80211/wpa.c
606
static inline void gcmp_pn2hdr(u8 *hdr, const u8 *pn, int key_id)
net/mac80211/wpa.c
608
hdr[0] = pn[5];
net/mac80211/wpa.c
609
hdr[1] = pn[4];
net/mac80211/wpa.c
610
hdr[2] = 0;
net/mac80211/wpa.c
611
hdr[3] = 0x20 | (key_id << 6);
net/mac80211/wpa.c
612
hdr[4] = pn[3];
net/mac80211/wpa.c
613
hdr[5] = pn[2];
net/mac80211/wpa.c
614
hdr[6] = pn[1];
net/mac80211/wpa.c
615
hdr[7] = pn[0];
net/mac80211/wpa.c
618
static inline void gcmp_hdr2pn(u8 *pn, const u8 *hdr)
net/mac80211/wpa.c
620
pn[0] = hdr[7];
net/mac80211/wpa.c
621
pn[1] = hdr[6];
net/mac80211/wpa.c
622
pn[2] = hdr[5];
net/mac80211/wpa.c
623
pn[3] = hdr[4];
net/mac80211/wpa.c
624
pn[4] = hdr[1];
net/mac80211/wpa.c
625
pn[5] = hdr[0];
net/mac80211/wpa.c
630
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/wpa.c
645
ieee80211_is_mgmt(hdr->frame_control))) {
net/mac80211/wpa.c
652
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wpa.c
716
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data;
net/mac80211/wpa.c
724
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/mac80211/wpa.c
726
if (!ieee80211_is_data(hdr->frame_control) &&
net/mac80211/wpa.c
728
!ieee80211_require_encrypted_assoc(hdr->frame_control, rx->sta))
net/mac80211/wpa.c
742
hdr = (void *)rx->skb->data;
net/mac80211/wpa.c
780
if (unlikely(ieee80211_is_frag(hdr)))
net/mac80211/wpa.c
796
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/wpa.c
802
mask_fc = hdr->frame_control;
net/mac80211/wpa.c
807
memcpy(aad + 2, &hdr->addrs, 3 * ETH_ALEN);
net/mac80211/wpa.c
86
michael_mic(key, hdr, data, data_len, mic);
net/mac80211/wpa.c
893
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/mac80211/wpa.c
895
if (!ieee80211_is_mgmt(hdr->frame_control))
net/mac80211/wpa.c
946
struct ieee80211_hdr *hdr;
net/mac80211/wpa.c
980
hdr = (struct ieee80211_hdr *)skb->data;
net/mac80211/wpa.c
981
memcpy(nonce, hdr->addr2, ETH_ALEN);
net/mac802154/iface.c
323
struct ieee802154_hdr *hdr,
net/mac802154/iface.c
342
hdr->fc.security_enabled = 1;
net/mac802154/iface.c
343
hdr->sec.level = level;
net/mac802154/iface.c
344
hdr->sec.key_id_mode = params.out_key.mode;
net/mac802154/iface.c
346
hdr->sec.short_src = params.out_key.short_source;
net/mac802154/iface.c
348
hdr->sec.extended_src = params.out_key.extended_source;
net/mac802154/iface.c
349
hdr->sec.key_id = params.out_key.id;
net/mac802154/iface.c
360
struct ieee802154_hdr hdr;
net/mac802154/iface.c
369
memset(&hdr.fc, 0, sizeof(hdr.fc));
net/mac802154/iface.c
370
hdr.fc.type = cb->type;
net/mac802154/iface.c
371
hdr.fc.security_enabled = cb->secen;
net/mac802154/iface.c
372
hdr.fc.ack_request = cb->ackreq;
net/mac802154/iface.c
373
hdr.seq = atomic_inc_return(&dev->ieee802154_ptr->dsn) & 0xFF;
net/mac802154/iface.c
375
if (mac802154_set_header_security(sdata, &hdr, cb) < 0)
net/mac802154/iface.c
382
hdr.source.mode = IEEE802154_ADDR_LONG;
net/mac802154/iface.c
383
hdr.source.extended_addr = wpan_dev->extended_addr;
net/mac802154/iface.c
385
hdr.source.mode = IEEE802154_ADDR_SHORT;
net/mac802154/iface.c
386
hdr.source.short_addr = wpan_dev->short_addr;
net/mac802154/iface.c
389
hdr.source.pan_id = wpan_dev->pan_id;
net/mac802154/iface.c
391
hdr.source = *(const struct ieee802154_addr *)saddr;
net/mac802154/iface.c
394
hdr.dest = *(const struct ieee802154_addr *)daddr;
net/mac802154/iface.c
396
hlen = ieee802154_hdr_push(skb, &hdr);
net/mac802154/iface.c
403
if (len > ieee802154_max_payload(&hdr))
net/mac802154/iface.c
426
struct ieee802154_hdr hdr;
net/mac802154/iface.c
435
memset(&hdr.fc, 0, sizeof(hdr.fc));
net/mac802154/iface.c
436
hdr.fc.type = IEEE802154_FC_TYPE_DATA;
net/mac802154/iface.c
437
hdr.fc.ack_request = wpan_dev->ackreq;
net/mac802154/iface.c
438
hdr.seq = atomic_inc_return(&dev->ieee802154_ptr->dsn) & 0xFF;
net/mac802154/iface.c
443
if (mac802154_set_header_security(sdata, &hdr, &cb) < 0)
net/mac802154/iface.c
446
hdr.dest.pan_id = wpan_dev->pan_id;
net/mac802154/iface.c
447
hdr.dest.mode = IEEE802154_ADDR_LONG;
net/mac802154/iface.c
448
ieee802154_be64_to_le64(&hdr.dest.extended_addr, daddr);
net/mac802154/iface.c
450
hdr.source.pan_id = hdr.dest.pan_id;
net/mac802154/iface.c
451
hdr.source.mode = IEEE802154_ADDR_LONG;
net/mac802154/iface.c
454
hdr.source.extended_addr = wpan_dev->extended_addr;
net/mac802154/iface.c
456
ieee802154_be64_to_le64(&hdr.source.extended_addr, saddr);
net/mac802154/iface.c
458
hlen = ieee802154_hdr_push(skb, &hdr);
net/mac802154/iface.c
465
if (len > ieee802154_max_payload(&hdr))
net/mac802154/iface.c
476
struct ieee802154_hdr hdr;
net/mac802154/iface.c
478
if (ieee802154_hdr_peek_addrs(skb, &hdr) < 0) {
net/mac802154/iface.c
483
if (hdr.source.mode == IEEE802154_ADDR_LONG) {
net/mac802154/iface.c
484
ieee802154_le64_to_be64(haddr, &hdr.source.extended_addr);
net/mac802154/llsec.c
1001
if (hdr.fc.version == 0)
net/mac802154/llsec.c
1013
key = llsec_lookup_key(sec, &hdr, &hdr.source, &key_id);
net/mac802154/llsec.c
1019
dev = llsec_lookup_dev(sec, &hdr.source);
net/mac802154/llsec.c
1025
if (llsec_lookup_seclevel(sec, hdr.fc.type, 0, &seclevel) < 0) {
net/mac802154/llsec.c
1030
if (!(seclevel.sec_levels & BIT(hdr.sec.level)) &&
net/mac802154/llsec.c
1031
(hdr.sec.level == 0 && seclevel.device_override &&
net/mac802154/llsec.c
1037
frame_ctr = le32_to_cpu(hdr.sec.frame_counter);
net/mac802154/llsec.c
1052
err = llsec_do_decrypt(skb, sec, &hdr, key, dev_addr);
net/mac802154/llsec.c
551
const struct ieee802154_hdr *hdr,
net/mac802154/llsec.c
556
u8 key_id_mode = hdr->sec.key_id_mode;
net/mac802154/llsec.c
562
if (hdr->fc.type == IEEE802154_FC_TYPE_BEACON) {
net/mac802154/llsec.c
573
if (!(key_entry->key->frame_types & BIT(hdr->fc.type)))
net/mac802154/llsec.c
583
if (id->id != hdr->sec.key_id)
net/mac802154/llsec.c
588
id->short_source == hdr->sec.short_src) ||
net/mac802154/llsec.c
590
id->extended_source == hdr->sec.extended_src))
net/mac802154/llsec.c
620
const struct ieee802154_hdr *hdr,
net/mac802154/llsec.c
629
llsec_geniv(iv, sec->params.hwaddr, &hdr->sec);
net/mac802154/llsec.c
657
const struct ieee802154_hdr *hdr,
net/mac802154/llsec.c
666
authlen = ieee802154_sechdr_authtag_len(&hdr->sec);
net/mac802154/llsec.c
667
llsec_geniv(iv, sec->params.hwaddr, &hdr->sec);
net/mac802154/llsec.c
682
if (!(hdr->sec.level & IEEE802154_SCF_SECLEVEL_ENC)) {
net/mac802154/llsec.c
700
const struct ieee802154_hdr *hdr,
net/mac802154/llsec.c
703
if (hdr->sec.level == IEEE802154_SCF_SECLEVEL_ENC)
net/mac802154/llsec.c
704
return llsec_do_encrypt_unauth(skb, sec, hdr, key);
net/mac802154/llsec.c
706
return llsec_do_encrypt_auth(skb, sec, hdr, key);
net/mac802154/llsec.c
711
struct ieee802154_hdr hdr;
net/mac802154/llsec.c
716
hlen = ieee802154_hdr_pull(skb, &hdr);
net/mac802154/llsec.c
720
(hdr.fc.type != IEEE802154_FC_TYPE_DATA &&
net/mac802154/llsec.c
721
hdr.fc.type != IEEE802154_FC_TYPE_BEACON))
net/mac802154/llsec.c
724
if (!hdr.fc.security_enabled ||
net/mac802154/llsec.c
725
(hdr.sec.level == IEEE802154_SCF_SECLEVEL_NONE)) {
net/mac802154/llsec.c
730
authlen = ieee802154_sechdr_authtag_len(&hdr.sec);
net/mac802154/llsec.c
744
key = llsec_lookup_key(sec, &hdr, &hdr.dest, NULL);
net/mac802154/llsec.c
755
hdr.sec.frame_counter = cpu_to_le32(frame_ctr);
net/mac802154/llsec.c
769
skb->mac_len = ieee802154_hdr_push(skb, &hdr);
net/mac802154/llsec.c
772
rc = llsec_do_encrypt(skb, sec, &hdr, key);
net/mac802154/llsec.c
839
const struct ieee802154_hdr *hdr,
net/mac802154/llsec.c
849
llsec_geniv(iv, dev_addr, &hdr->sec);
net/mac802154/llsec.c
866
const struct ieee802154_hdr *hdr,
net/mac802154/llsec.c
875
authlen = ieee802154_sechdr_authtag_len(&hdr->sec);
net/mac802154/llsec.c
876
llsec_geniv(iv, dev_addr, &hdr->sec);
net/mac802154/llsec.c
889
if (!(hdr->sec.level & IEEE802154_SCF_SECLEVEL_ENC)) {
net/mac802154/llsec.c
908
const struct ieee802154_hdr *hdr,
net/mac802154/llsec.c
911
if (hdr->sec.level == IEEE802154_SCF_SECLEVEL_ENC)
net/mac802154/llsec.c
912
return llsec_do_decrypt_unauth(skb, sec, hdr, key, dev_addr);
net/mac802154/llsec.c
914
return llsec_do_decrypt_auth(skb, sec, hdr, key, dev_addr);
net/mac802154/llsec.c
988
struct ieee802154_hdr hdr;
net/mac802154/llsec.c
997
if (ieee802154_hdr_peek(skb, &hdr) < 0)
net/mac802154/llsec.c
999
if (!hdr.fc.security_enabled)
net/mac802154/rx.c
133
struct sk_buff *skb, const struct ieee802154_hdr *hdr)
net/mac802154/rx.c
159
if (hdr->source.mode == IEEE802154_ADDR_NONE)
net/mac802154/rx.c
276
ieee802154_parse_frame_start(struct sk_buff *skb, struct ieee802154_hdr *hdr)
net/mac802154/rx.c
283
hlen = ieee802154_hdr_pull(skb, hdr);
net/mac802154/rx.c
289
pr_debug("fc: %04x dsn: %02x\n", le16_to_cpup((__le16 *)&hdr->fc),
net/mac802154/rx.c
290
hdr->seq);
net/mac802154/rx.c
292
cb->type = hdr->fc.type;
net/mac802154/rx.c
293
cb->ackreq = hdr->fc.ack_request;
net/mac802154/rx.c
294
cb->secen = hdr->fc.security_enabled;
net/mac802154/rx.c
296
ieee802154_print_addr("destination", &hdr->dest);
net/mac802154/rx.c
297
ieee802154_print_addr("source", &hdr->source);
net/mac802154/rx.c
299
cb->source = hdr->source;
net/mac802154/rx.c
300
cb->dest = hdr->dest;
net/mac802154/rx.c
302
if (hdr->fc.security_enabled) {
net/mac802154/rx.c
305
pr_debug("seclevel %i\n", hdr->sec.level);
net/mac802154/rx.c
307
switch (hdr->sec.key_id_mode) {
net/mac802154/rx.c
313
pr_debug("key %02x\n", hdr->sec.key_id);
net/mac802154/rx.c
318
le32_to_cpu(hdr->sec.short_src) >> 16,
net/mac802154/rx.c
319
le32_to_cpu(hdr->sec.short_src) & 0xffff,
net/mac802154/rx.c
320
hdr->sec.key_id);
net/mac802154/rx.c
324
key = swab64((__force u64)hdr->sec.extended_src);
net/mac802154/rx.c
326
hdr->sec.key_id);
net/mac802154/rx.c
340
struct ieee802154_hdr hdr;
net/mac802154/rx.c
343
ret = ieee802154_parse_frame_start(skb, &hdr);
net/mac802154/rx.c
366
ieee802154_subif_frame(sdata, skb2, &hdr);
net/mctp/af_mctp.c
324
struct mctp_hdr *hdr = mctp_hdr(skb);
net/mctp/af_mctp.c
330
addr->smctp_addr.s_addr = hdr->src;
net/mctp/af_mctp.c
332
addr->smctp_tag = hdr->flags_seq_tag &
net/mctp/device.c
119
struct ifaddrmsg *hdr;
net/mctp/device.c
124
hdr = nlmsg_payload(cb->nlh, sizeof(*hdr));
net/mctp/device.c
125
if (hdr) {
net/mctp/device.c
126
ifindex = hdr->ifa_index;
net/mctp/device.c
64
struct ifaddrmsg *hdr;
net/mctp/device.c
68
msg_type, sizeof(*hdr), flag);
net/mctp/device.c
72
hdr = nlmsg_data(nlh);
net/mctp/device.c
73
memset(hdr, 0, sizeof(*hdr));
net/mctp/device.c
74
hdr->ifa_family = AF_MCTP;
net/mctp/device.c
75
hdr->ifa_prefixlen = 0;
net/mctp/device.c
76
hdr->ifa_flags = 0;
net/mctp/device.c
77
hdr->ifa_scope = 0;
net/mctp/device.c
78
hdr->ifa_index = mdev->dev->ifindex;
net/mctp/neigh.c
214
struct ndmsg *hdr;
net/mctp/neigh.c
216
nlh = nlmsg_put(skb, portid, seq, event, sizeof(*hdr), flags);
net/mctp/neigh.c
220
hdr = nlmsg_data(nlh);
net/mctp/neigh.c
221
memset(hdr, 0, sizeof(*hdr));
net/mctp/neigh.c
222
hdr->ndm_family = AF_MCTP;
net/mctp/neigh.c
223
hdr->ndm_ifindex = dev->ifindex;
net/mctp/neigh.c
224
hdr->ndm_state = 0; // TODO other state bits?
net/mctp/neigh.c
226
hdr->ndm_state |= NUD_PERMANENT;
net/mctp/neigh.c
227
hdr->ndm_flags = 0;
net/mctp/neigh.c
228
hdr->ndm_type = RTN_UNICAST; // TODO: is loopback RTN_LOCAL?
net/mctp/route.c
1025
struct mctp_hdr *hdr, *hdr2;
net/mctp/route.c
1031
hdr = mctp_hdr(skb);
net/mctp/route.c
1073
hdr2->ver = hdr->ver;
net/mctp/route.c
1074
hdr2->dest = hdr->dest;
net/mctp/route.c
1075
hdr2->src = hdr->src;
net/mctp/route.c
1111
struct mctp_hdr *hdr;
net/mctp/route.c
1168
hdr = mctp_hdr(skb);
net/mctp/route.c
1169
hdr->ver = 1;
net/mctp/route.c
1170
hdr->dest = daddr;
net/mctp/route.c
1171
hdr->src = saddr;
net/mctp/route.c
1176
hdr->flags_seq_tag = MCTP_HDR_FLAG_SOM |
net/mctp/route.c
1641
struct rtmsg *hdr;
net/mctp/route.c
1644
nlh = nlmsg_put(skb, portid, seq, event, sizeof(*hdr), flags);
net/mctp/route.c
1648
hdr = nlmsg_data(nlh);
net/mctp/route.c
1649
memset(hdr, 0, sizeof(*hdr));
net/mctp/route.c
1650
hdr->rtm_family = AF_MCTP;
net/mctp/route.c
1655
hdr->rtm_dst_len = rt->max - rt->min;
net/mctp/route.c
1656
hdr->rtm_src_len = 0;
net/mctp/route.c
1657
hdr->rtm_tos = 0;
net/mctp/route.c
1658
hdr->rtm_table = RT_TABLE_DEFAULT;
net/mctp/route.c
1659
hdr->rtm_protocol = RTPROT_STATIC; /* everything is user-defined */
net/mctp/route.c
1660
hdr->rtm_type = rt->type;
net/mctp/route.c
1677
hdr->rtm_scope = RT_SCOPE_LINK;
net/mctp/route.c
1681
hdr->rtm_scope = RT_SCOPE_UNIVERSE;
net/mctp/route.c
387
struct mctp_hdr *hdr = mctp_hdr(skb);
net/mctp/route.c
390
this_seq = (hdr->flags_seq_tag >> MCTP_HDR_SEQ_SHIFT)
net/mctp/test/route-test.c
1116
struct mctp_hdr hdr;
net/mctp/test/route-test.c
1120
hdr.ver = 1;
net/mctp/test/route-test.c
1121
hdr.src = 10;
net/mctp/test/route-test.c
1122
hdr.dest = 8;
net/mctp/test/route-test.c
1123
hdr.flags_seq_tag = FL_S | FL_E | FL_TO;
net/mctp/test/route-test.c
1127
skb = mctp_test_create_skb(&hdr, len);
net/mctp/test/route-test.c
123
struct mctp_hdr hdr;
net/mctp/test/route-test.c
1295
struct mctp_test_llhdr *hdr;
net/mctp/test/route-test.c
1297
hdr = skb_push(skb, sizeof(*hdr));
net/mctp/test/route-test.c
1298
KUNIT_ASSERT_NOT_ERR_OR_NULL(test, hdr);
net/mctp/test/route-test.c
1301
hdr->magic = mctp_test_llhdr_magic;
net/mctp/test/route-test.c
1302
memcpy(&hdr->src, saddr, sizeof(hdr->src));
net/mctp/test/route-test.c
1303
memcpy(&hdr->dst, daddr, sizeof(hdr->dst));
net/mctp/test/route-test.c
1323
struct mctp_hdr hdr = { 0 };
net/mctp/test/route-test.c
1347
hdr.ver = 1;
net/mctp/test/route-test.c
1348
hdr.src = 8;
net/mctp/test/route-test.c
1349
hdr.dest = 10;
net/mctp/test/route-test.c
1350
hdr.flags_seq_tag = FL_S | FL_E | FL_TO;
net/mctp/test/route-test.c
1355
skb = alloc_skb(sizeof(*ll_hdr) + sizeof(hdr) + 4, GFP_KERNEL);
net/mctp/test/route-test.c
1361
memcpy(skb_put(skb, sizeof(hdr)), &hdr, sizeof(hdr));
net/mctp/test/route-test.c
1386
struct mctp_hdr hdr;
net/mctp/test/route-test.c
1405
{ .hdr = LK(20, 10), .ty = 1, .net = 1, .expect = "remote20" },
net/mctp/test/route-test.c
1407
{ .hdr = LK(20, 255), .ty = 1, .net = 1, .expect = "remote20" },
net/mctp/test/route-test.c
1408
{ .hdr = LK(20, 0), .ty = 1, .net = 1, .expect = "remote20" },
net/mctp/test/route-test.c
1409
{ .hdr = LK(0, 255), .ty = 1, .net = 1, .expect = "any" },
net/mctp/test/route-test.c
1410
{ .hdr = LK(0, 11), .ty = 1, .net = 1, .expect = "any" },
net/mctp/test/route-test.c
1411
{ .hdr = LK(0, 0), .ty = 1, .net = 1, .expect = "any" },
net/mctp/test/route-test.c
1412
{ .hdr = LK(0, 10), .ty = 1, .net = 1, .expect = "local10" },
net/mctp/test/route-test.c
1413
{ .hdr = LK(21, 10), .ty = 1, .net = 1, .expect = "local10" },
net/mctp/test/route-test.c
1414
{ .hdr = LK(21, 11), .ty = 1, .net = 1, .expect = "remote21local11" },
net/mctp/test/route-test.c
1419
{ .hdr = LK(99, 99), .ty = 1, .net = 1, .expect = "any" },
net/mctp/test/route-test.c
142
skb = mctp_test_create_skb(¶ms->hdr, 1);
net/mctp/test/route-test.c
1422
{ .hdr = LK(20, 10), .ty = 3, .net = 1, .expect = NULL },
net/mctp/test/route-test.c
1426
{ .hdr = LK(0, 0), .ty = 1, .net = 7, .expect = "any" },
net/mctp/test/route-test.c
1427
{ .hdr = LK(21, 10), .ty = 1, .net = 2, .expect = "any" },
net/mctp/test/route-test.c
1432
{ .hdr = LK(20, 10), .ty = 1, .net = 3, .expect = "any" },
net/mctp/test/route-test.c
1434
{ .hdr = LK(21, 10), .ty = 1, .net = 3, .expect = "remote21net3" },
net/mctp/test/route-test.c
1435
{ .hdr = LK(21, 10), .ty = 1, .net = 4, .expect = "remote21net4" },
net/mctp/test/route-test.c
1436
{ .hdr = LK(21, 10), .ty = 1, .net = 5, .expect = "remote21net5" },
net/mctp/test/route-test.c
1438
{ .hdr = LK(21, 10), .ty = 1, .net = 5, .expect = "remote21net5" },
net/mctp/test/route-test.c
1440
{ .hdr = LK(99, 10), .ty = 1, .net = 8, .expect = "local10net8" },
net/mctp/test/route-test.c
1442
{ .hdr = LK(99, 10), .ty = 1, .net = 9, .expect = "anynet9" },
net/mctp/test/route-test.c
1443
{ .hdr = LK(0, 0), .ty = 1, .net = 9, .expect = "anynet9" },
net/mctp/test/route-test.c
1444
{ .hdr = LK(99, 99), .ty = 1, .net = 9, .expect = "anynet9" },
net/mctp/test/route-test.c
1445
{ .hdr = LK(20, 10), .ty = 1, .net = 9, .expect = "anynet9" },
net/mctp/test/route-test.c
1494
t->hdr.src, t->hdr.dest, t->ty, t->net, t->expect);
net/mctp/test/route-test.c
1529
skb_pkt = mctp_test_create_skb_data(&rx->hdr, &rx->ty);
net/mctp/test/route-test.c
158
{ .hdr = RX_HDR(1, 10, 8, 0), .input = true },
net/mctp/test/route-test.c
159
{ .hdr = RX_HDR(1, 10, 9, 0), .input = false }, /* no input route */
net/mctp/test/route-test.c
160
{ .hdr = RX_HDR(2, 10, 8, 0), .input = false }, /* invalid version */
net/mctp/test/route-test.c
166
sprintf(desc, "{%x,%x,%x,%x}", t->hdr.ver, t->hdr.src, t->hdr.dest,
net/mctp/test/route-test.c
167
t->hdr.flags_seq_tag);
net/mctp/test/route-test.c
217
struct mctp_hdr hdr;
net/mctp/test/route-test.c
235
skb = mctp_test_create_skb_data(¶ms->hdr, ¶ms->type);
net/mctp/test/route-test.c
266
{ .hdr = RX_HDR(1, 10, 8, FL_S | FL_E | FL_TO), .type = 0, .deliver = true },
net/mctp/test/route-test.c
267
{ .hdr = RX_HDR(1, 10, 8, FL_S | FL_E | FL_TO), .type = 1, .deliver = false },
net/mctp/test/route-test.c
268
{ .hdr = RX_HDR(1, 10, 8, FL_S | FL_E), .type = 0, .deliver = false },
net/mctp/test/route-test.c
269
{ .hdr = RX_HDR(1, 10, 8, FL_E | FL_TO), .type = 0, .deliver = false },
net/mctp/test/route-test.c
27
struct mctp_hdr hdr;
net/mctp/test/route-test.c
270
{ .hdr = RX_HDR(1, 10, 8, FL_TO), .type = 0, .deliver = false },
net/mctp/test/route-test.c
271
{ .hdr = RX_HDR(1, 10, 8, 0), .type = 0, .deliver = false },
net/mctp/test/route-test.c
277
sprintf(desc, "{%x,%x,%x,%x} type %d", t->hdr.ver, t->hdr.src,
net/mctp/test/route-test.c
278
t->hdr.dest, t->hdr.flags_seq_tag, t->type);
net/mctp/test/route-test.c
34
hdr.ver = 1;
net/mctp/test/route-test.c
35
hdr.src = 8;
net/mctp/test/route-test.c
36
hdr.dest = 10;
net/mctp/test/route-test.c
37
hdr.flags_seq_tag = MCTP_HDR_FLAG_TO;
net/mctp/test/route-test.c
39
skb = mctp_test_create_skb(&hdr, msgsize);
net/mctp/test/route-test.c
420
struct mctp_hdr hdr;
net/mctp/test/route-test.c
467
skb = mctp_test_create_skb_data(¶ms->hdr, &c);
net/mctp/test/route-test.c
495
.hdr = RX_HDR(1, 9, 8, FL_S | FL_E | FL_T(1)),
net/mctp/test/route-test.c
503
.hdr = RX_HDR(1, 9, 8, FL_S | FL_E | FL_T(1)),
net/mctp/test/route-test.c
511
.hdr = RX_HDR(1, 10, 8, FL_S | FL_E | FL_T(1)),
net/mctp/test/route-test.c
519
.hdr = RX_HDR(1, 9, 8, FL_S | FL_E | FL_T(2)),
net/mctp/test/route-test.c
527
.hdr = RX_HDR(1, 9, 8, FL_S | FL_E | FL_T(1) | FL_TO),
net/mctp/test/route-test.c
535
.hdr = RX_HDR(1, 11, 8, FL_S | FL_E | FL_T(1)),
net/mctp/test/route-test.c
543
.hdr = RX_HDR(1, 12, 8, FL_S | FL_E | FL_T(1)),
net/mctp/test/route-test.c
575
struct mctp_hdr hdr = RX_HDR(1, 9, 8, FL_S | FL_E | FL_T(1) | FL_TO);
net/mctp/test/route-test.c
581
t->skb = mctp_test_create_skb_data(&hdr, &t->msg);
net/mctp/test/route-test.c
640
struct mctp_hdr hdr = RX_HDR(1, 9, 8, FL_S | FL_E | FL_T(1));
net/mctp/test/route-test.c
651
t->key = mctp_key_alloc(msk, t->netid, hdr.dest, hdr.src, 1, GFP_KERNEL);
net/mctp/test/route-test.c
660
t->skb = mctp_test_create_skb_data(&hdr, &t->msg);
net/mctp/test/route-test.c
70
KUNIT_EXPECT_EQ(test, hdr2->ver, hdr.ver);
net/mctp/test/route-test.c
71
KUNIT_EXPECT_EQ(test, hdr2->src, hdr.src);
net/mctp/test/route-test.c
72
KUNIT_EXPECT_EQ(test, hdr2->dest, hdr.dest);
net/mctp/test/route-test.c
722
const struct mctp_hdr hdr = RX_HDR(1, 10, 8, FL_S | FL_E | FL_TO);
net/mctp/test/route-test.c
738
skb = mctp_test_create_skb(&hdr, 10);
net/mctp/test/route-test.c
74
hdr.flags_seq_tag & tag_mask);
net/mctp/test/sock-test.c
157
struct mctp_hdr hdr;
net/mctp/test/sock-test.c
174
hdr.ver = 1;
net/mctp/test/sock-test.c
175
hdr.dest = 0;
net/mctp/test/sock-test.c
176
hdr.src = 9;
net/mctp/test/sock-test.c
177
hdr.flags_seq_tag = MCTP_HDR_FLAG_SOM | MCTP_HDR_FLAG_EOM |
net/mctp/test/sock-test.c
180
skb = mctp_test_create_skb_data(&hdr, &rcv_data);
net/mctp/test/sock-test.c
195
skb_pull(skb, sizeof(hdr));
net/mctp/test/utils.c
210
struct sk_buff *mctp_test_create_skb(const struct mctp_hdr *hdr,
net/mctp/test/utils.c
213
size_t hdr_len = sizeof(*hdr);
net/mctp/test/utils.c
223
memcpy(skb_put(skb, hdr_len), hdr, hdr_len);
net/mctp/test/utils.c
232
struct sk_buff *__mctp_test_create_skb_data(const struct mctp_hdr *hdr,
net/mctp/test/utils.c
235
size_t hdr_len = sizeof(*hdr);
net/mctp/test/utils.c
243
memcpy(skb_put(skb, hdr_len), hdr, hdr_len);
net/mctp/test/utils.h
62
struct sk_buff *mctp_test_create_skb(const struct mctp_hdr *hdr,
net/mctp/test/utils.h
64
struct sk_buff *__mctp_test_create_skb_data(const struct mctp_hdr *hdr,
net/mpls/af_mpls.c
185
struct mpls_shim_hdr *hdr;
net/mpls/af_mpls.c
192
mpls_hdr_len += sizeof(*hdr);
net/mpls/af_mpls.c
197
hdr = mpls_hdr(skb) + label_index;
net/mpls/af_mpls.c
198
dec = mpls_entry_decode(hdr);
net/mpls/af_mpls.c
225
v4hdr = (const struct iphdr *)(hdr + 1);
net/mpls/af_mpls.c
235
v6hdr = (const struct ipv6hdr *)(hdr + 1);
net/mpls/af_mpls.c
2421
struct mpls_shim_hdr *hdr;
net/mpls/af_mpls.c
2512
hdr = mpls_hdr(skb);
net/mpls/af_mpls.c
2515
hdr[i] = mpls_entry_encode(labels[i],
net/mpls/af_mpls.c
370
struct mpls_shim_hdr *hdr;
net/mpls/af_mpls.c
402
if (!pskb_may_pull(skb, sizeof(*hdr)))
net/mpls/af_mpls.c
408
hdr = mpls_hdr(skb);
net/mpls/af_mpls.c
409
dec = mpls_entry_decode(hdr);
net/mpls/af_mpls.c
422
skb_pull(skb, sizeof(*hdr));
net/mpls/af_mpls.c
469
hdr = mpls_hdr(skb);
net/mpls/af_mpls.c
472
hdr[i] = mpls_entry_encode(nh->nh_label[i],
net/mpls/internal.h
175
static inline struct mpls_entry_decoded mpls_entry_decode(struct mpls_shim_hdr *hdr)
net/mpls/internal.h
178
unsigned entry = be32_to_cpu(hdr->label_stack_entry);
net/mpls/mpls_iptunnel.c
123
hdr = mpls_hdr(skb);
net/mpls/mpls_iptunnel.c
126
hdr[i] = mpls_entry_encode(tun_encap_info->label[i],
net/mpls/mpls_iptunnel.c
39
struct mpls_shim_hdr *hdr;
net/mptcp/ctrl.c
369
struct ctl_table_header *hdr;
net/mptcp/ctrl.c
393
hdr = register_net_sysctl_sz(net, MPTCP_SYSCTL_PATH, table,
net/mptcp/ctrl.c
395
if (!hdr)
net/mptcp/ctrl.c
398
pernet->ctl_table_hdr = hdr;
net/mptcp/pm_netlink.c
229
void *hdr;
net/mptcp/pm_netlink.c
231
hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid,
net/mptcp/pm_netlink.c
234
if (!hdr)
net/mptcp/pm_netlink.c
238
genlmsg_cancel(msg, hdr);
net/mptcp/pm_netlink.c
242
genlmsg_end(msg, hdr);
net/ncsi/ncsi-netlink.c
160
void *hdr;
net/ncsi/ncsi-netlink.c
181
hdr = genlmsg_put(skb, info->snd_portid, info->snd_seq,
net/ncsi/ncsi-netlink.c
183
if (!hdr) {
net/ncsi/ncsi-netlink.c
204
genlmsg_end(skb, hdr);
net/ncsi/ncsi-netlink.c
220
void *hdr;
net/ncsi/ncsi-netlink.c
246
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/ncsi/ncsi-netlink.c
248
if (!hdr) {
net/ncsi/ncsi-netlink.c
265
genlmsg_end(skb, hdr);
net/ncsi/ncsi-netlink.c
271
genlmsg_cancel(skb, hdr);
net/ncsi/ncsi-netlink.c
398
struct ncsi_pkt_hdr *hdr;
net/ncsi/ncsi-netlink.c
455
hdr = (struct ncsi_pkt_hdr *)data;
net/ncsi/ncsi-netlink.c
460
nca.type = hdr->type;
net/ncsi/ncsi-netlink.c
463
nca.payload = ntohs(hdr->length);
net/ncsi/ncsi-netlink.c
464
nca.data = data + sizeof(*hdr);
net/ncsi/ncsi-netlink.c
488
void *hdr;
net/ncsi/ncsi-netlink.c
497
hdr = genlmsg_put(skb, nr->snd_portid, nr->snd_seq,
net/ncsi/ncsi-netlink.c
499
if (!hdr) {
net/ncsi/ncsi-netlink.c
516
genlmsg_end(skb, hdr);
net/ncsi/ncsi-netlink.c
530
void *hdr;
net/ncsi/ncsi-netlink.c
536
hdr = genlmsg_put(skb, nr->snd_portid, nr->snd_seq,
net/ncsi/ncsi-netlink.c
538
if (!hdr) {
net/ncsi/ncsi-netlink.c
559
genlmsg_end(skb, hdr);
net/ncsi/ncsi-rsp.c
1172
struct ncsi_pkt_hdr *hdr;
net/ncsi/ncsi-rsp.c
1185
hdr = (struct ncsi_pkt_hdr *)skb_network_header(skb);
net/ncsi/ncsi-rsp.c
1186
if (hdr->type == NCSI_PKT_AEN)
net/ncsi/ncsi-rsp.c
1191
if (ncsi_rsp_handlers[i].type == hdr->type) {
net/ncsi/ncsi-rsp.c
1203
hdr->type);
net/ncsi/ncsi-rsp.c
1210
nr = &ndp->requests[hdr->id];
net/ncsi/ncsi-rsp.c
1228
payload = ntohs(hdr->length);
net/ncsi/ncsi-rsp.c
1233
hdr->type);
net/ncsi/ncsi-rsp.c
1253
hdr->type, ret);
net/ncsi/ncsi-rsp.c
1261
hdr->type, ret);
net/netfilter/ipvs/ip_vs_ctl.c
3370
void *hdr;
net/netfilter/ipvs/ip_vs_ctl.c
3372
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/netfilter/ipvs/ip_vs_ctl.c
3375
if (!hdr)
net/netfilter/ipvs/ip_vs_ctl.c
3381
genlmsg_end(skb, hdr);
net/netfilter/ipvs/ip_vs_ctl.c
3385
genlmsg_cancel(skb, hdr);
net/netfilter/ipvs/ip_vs_ctl.c
3581
void *hdr;
net/netfilter/ipvs/ip_vs_ctl.c
3583
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/netfilter/ipvs/ip_vs_ctl.c
3586
if (!hdr)
net/netfilter/ipvs/ip_vs_ctl.c
3592
genlmsg_end(skb, hdr);
net/netfilter/ipvs/ip_vs_ctl.c
3596
genlmsg_cancel(skb, hdr);
net/netfilter/ipvs/ip_vs_ctl.c
3743
void *hdr;
net/netfilter/ipvs/ip_vs_ctl.c
3744
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/netfilter/ipvs/ip_vs_ctl.c
3747
if (!hdr)
net/netfilter/ipvs/ip_vs_ctl.c
3753
genlmsg_end(skb, hdr);
net/netfilter/ipvs/ip_vs_ctl.c
3757
genlmsg_cancel(skb, hdr);
net/netfilter/nf_conntrack_proto_udp.c
145
const struct udphdr *hdr;
net/netfilter/nf_conntrack_proto_udp.c
150
hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr);
net/netfilter/nf_conntrack_proto_udp.c
151
if (!hdr) {
net/netfilter/nf_conntrack_proto_udp.c
156
cscov = ntohs(hdr->len);
net/netfilter/nf_conntrack_proto_udp.c
159
} else if (cscov < sizeof(*hdr) || cscov > udplen) {
net/netfilter/nf_conntrack_proto_udp.c
165
if (!hdr->check) {
net/netfilter/nf_conntrack_proto_udp.c
49
const struct udphdr *hdr;
net/netfilter/nf_conntrack_proto_udp.c
53
hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr);
net/netfilter/nf_conntrack_proto_udp.c
54
if (!hdr) {
net/netfilter/nf_conntrack_proto_udp.c
60
if (ntohs(hdr->len) > udplen || ntohs(hdr->len) < sizeof(*hdr)) {
net/netfilter/nf_conntrack_proto_udp.c
66
if (!hdr->check)
net/netfilter/nf_conntrack_sip.c
372
const struct sip_header *hdr = &ct_sip_hdrs[type];
net/netfilter/nf_conntrack_sip.c
393
if (limit - dptr >= hdr->len &&
net/netfilter/nf_conntrack_sip.c
394
strncasecmp(dptr, hdr->name, hdr->len) == 0)
net/netfilter/nf_conntrack_sip.c
395
dptr += hdr->len;
net/netfilter/nf_conntrack_sip.c
396
else if (hdr->cname && limit - dptr >= hdr->clen + 1 &&
net/netfilter/nf_conntrack_sip.c
397
strncasecmp(dptr, hdr->cname, hdr->clen) == 0 &&
net/netfilter/nf_conntrack_sip.c
398
!isalpha(*(dptr + hdr->clen)))
net/netfilter/nf_conntrack_sip.c
399
dptr += hdr->clen;
net/netfilter/nf_conntrack_sip.c
416
if (hdr->search) {
net/netfilter/nf_conntrack_sip.c
417
dptr = ct_sip_header_search(dptr, limit, hdr->search,
net/netfilter/nf_conntrack_sip.c
418
hdr->slen);
net/netfilter/nf_conntrack_sip.c
421
dptr += hdr->slen;
net/netfilter/nf_conntrack_sip.c
424
*matchlen = hdr->match_len(ct, dptr, limit, &shift);
net/netfilter/nf_conntrack_sip.c
440
const struct sip_header *hdr = &ct_sip_hdrs[type];
net/netfilter/nf_conntrack_sip.c
450
dptr = ct_sip_header_search(dptr, limit, hdr->search, hdr->slen);
net/netfilter/nf_conntrack_sip.c
453
dptr += hdr->slen;
net/netfilter/nf_conntrack_sip.c
456
*matchlen = hdr->match_len(ct, dptr, limit, &shift);
net/netfilter/nf_conntrack_sip.c
733
const struct sip_header *hdrs, *hdr, *thdr;
net/netfilter/nf_conntrack_sip.c
738
hdr = &hdrs[type];
net/netfilter/nf_conntrack_sip.c
756
else if (limit - dptr >= hdr->len &&
net/netfilter/nf_conntrack_sip.c
757
strncasecmp(dptr, hdr->name, hdr->len) == 0)
net/netfilter/nf_conntrack_sip.c
758
dptr += hdr->len;
net/netfilter/nf_conntrack_sip.c
763
if (hdr->search) {
net/netfilter/nf_conntrack_sip.c
764
dptr = ct_sdp_header_search(dptr, limit, hdr->search,
net/netfilter/nf_conntrack_sip.c
765
hdr->slen);
net/netfilter/nf_conntrack_sip.c
768
dptr += hdr->slen;
net/netfilter/nf_conntrack_sip.c
771
*matchlen = hdr->match_len(ct, dptr, limit, &shift);
net/netfilter/nf_flow_table_core.c
644
struct flow_ports *hdr;
net/netfilter/nf_flow_table_core.c
647
hdr = (void *)(skb_network_header(skb) + thoff);
net/netfilter/nf_flow_table_core.c
651
port = hdr->source;
net/netfilter/nf_flow_table_core.c
653
hdr->source = new_port;
net/netfilter/nf_flow_table_core.c
656
port = hdr->dest;
net/netfilter/nf_flow_table_core.c
658
hdr->dest = new_port;
net/netfilter/nf_flow_table_core.c
670
struct flow_ports *hdr;
net/netfilter/nf_flow_table_core.c
673
hdr = (void *)(skb_network_header(skb) + thoff);
net/netfilter/nf_flow_table_core.c
677
port = hdr->dest;
net/netfilter/nf_flow_table_core.c
679
hdr->dest = new_port;
net/netfilter/nf_flow_table_core.c
682
port = hdr->source;
net/netfilter/nf_flow_table_core.c
684
hdr->source = new_port;
net/netfilter/nf_flow_table_ip.c
551
struct pppoe_hdr hdr;
net/netfilter/nf_flow_table_ip.c
574
ph->hdr.ver = 1;
net/netfilter/nf_flow_table_ip.c
575
ph->hdr.type = 1;
net/netfilter/nf_flow_table_ip.c
576
ph->hdr.code = 0;
net/netfilter/nf_flow_table_ip.c
577
ph->hdr.sid = htons(id);
net/netfilter/nf_flow_table_ip.c
578
ph->hdr.length = htons(data_len);
net/netfilter/nf_hooks_lwtunnel.c
69
struct ctl_table_header *hdr;
net/netfilter/nf_hooks_lwtunnel.c
81
hdr = register_net_sysctl_sz(net, "net/netfilter", table,
net/netfilter/nf_hooks_lwtunnel.c
83
if (!hdr)
net/netfilter/nf_hooks_lwtunnel.c
86
net->nf.nf_lwtnl_dir_header = hdr;
net/netfilter/nf_nat_proto.c
106
struct sctphdr *hdr;
net/netfilter/nf_nat_proto.c
113
if (skb->len >= hdroff + sizeof(*hdr))
net/netfilter/nf_nat_proto.c
114
hdrsize = sizeof(*hdr);
net/netfilter/nf_nat_proto.c
119
hdr = (struct sctphdr *)(skb->data + hdroff);
net/netfilter/nf_nat_proto.c
123
hdr->source = tuple->src.u.sctp.port;
net/netfilter/nf_nat_proto.c
126
hdr->dest = tuple->dst.u.sctp.port;
net/netfilter/nf_nat_proto.c
129
if (hdrsize < sizeof(*hdr))
net/netfilter/nf_nat_proto.c
133
hdr->checksum = sctp_compute_cksum(skb, hdroff);
net/netfilter/nf_nat_proto.c
147
struct tcphdr *hdr;
net/netfilter/nf_nat_proto.c
160
hdr = (struct tcphdr *)(skb->data + hdroff);
net/netfilter/nf_nat_proto.c
165
portptr = &hdr->source;
net/netfilter/nf_nat_proto.c
169
portptr = &hdr->dest;
net/netfilter/nf_nat_proto.c
175
if (hdrsize < sizeof(*hdr))
net/netfilter/nf_nat_proto.c
178
nf_csum_update(skb, iphdroff, &hdr->check, tuple, maniptype);
net/netfilter/nf_nat_proto.c
179
inet_proto_csum_replace2(&hdr->check, skb, oldport, newport, false);
net/netfilter/nf_nat_proto.c
189
struct icmphdr *hdr;
net/netfilter/nf_nat_proto.c
191
if (skb_ensure_writable(skb, hdroff + sizeof(*hdr)))
net/netfilter/nf_nat_proto.c
194
hdr = (struct icmphdr *)(skb->data + hdroff);
net/netfilter/nf_nat_proto.c
195
switch (hdr->type) {
net/netfilter/nf_nat_proto.c
208
inet_proto_csum_replace2(&hdr->checksum, skb,
net/netfilter/nf_nat_proto.c
209
hdr->un.echo.id, tuple->src.u.icmp.id, false);
net/netfilter/nf_nat_proto.c
210
hdr->un.echo.id = tuple->src.u.icmp.id;
net/netfilter/nf_nat_proto.c
220
struct icmp6hdr *hdr;
net/netfilter/nf_nat_proto.c
222
if (skb_ensure_writable(skb, hdroff + sizeof(*hdr)))
net/netfilter/nf_nat_proto.c
225
hdr = (struct icmp6hdr *)(skb->data + hdroff);
net/netfilter/nf_nat_proto.c
226
nf_csum_update(skb, iphdroff, &hdr->icmp6_cksum, tuple, maniptype);
net/netfilter/nf_nat_proto.c
227
if (hdr->icmp6_type == ICMPV6_ECHO_REQUEST ||
net/netfilter/nf_nat_proto.c
228
hdr->icmp6_type == ICMPV6_ECHO_REPLY) {
net/netfilter/nf_nat_proto.c
229
inet_proto_csum_replace2(&hdr->icmp6_cksum, skb,
net/netfilter/nf_nat_proto.c
230
hdr->icmp6_identifier,
net/netfilter/nf_nat_proto.c
232
hdr->icmp6_identifier = tuple->src.u.icmp.id;
net/netfilter/nf_nat_proto.c
41
unsigned int iphdroff, struct udphdr *hdr,
net/netfilter/nf_nat_proto.c
50
portptr = &hdr->source;
net/netfilter/nf_nat_proto.c
54
portptr = &hdr->dest;
net/netfilter/nf_nat_proto.c
57
nf_csum_update(skb, iphdroff, &hdr->check, tuple, maniptype);
net/netfilter/nf_nat_proto.c
58
inet_proto_csum_replace2(&hdr->check, skb, *portptr, newport,
net/netfilter/nf_nat_proto.c
60
if (!hdr->check)
net/netfilter/nf_nat_proto.c
61
hdr->check = CSUM_MANGLED_0;
net/netfilter/nf_nat_proto.c
71
struct udphdr *hdr;
net/netfilter/nf_nat_proto.c
73
if (skb_ensure_writable(skb, hdroff + sizeof(*hdr)))
net/netfilter/nf_nat_proto.c
76
hdr = (struct udphdr *)(skb->data + hdroff);
net/netfilter/nf_nat_proto.c
77
__udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, !!hdr->check);
net/netfilter/nf_nat_proto.c
88
struct udphdr *hdr;
net/netfilter/nf_nat_proto.c
90
if (skb_ensure_writable(skb, hdroff + sizeof(*hdr)))
net/netfilter/nf_nat_proto.c
93
hdr = (struct udphdr *)(skb->data + hdroff);
net/netfilter/nf_nat_proto.c
94
__udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, true);
net/netfilter/nf_nat_sip.c
154
enum sip_header_types hdr;
net/netfilter/nf_nat_sip.c
174
hdr = SIP_HDR_VIA_TCP;
net/netfilter/nf_nat_sip.c
176
hdr = SIP_HDR_VIA_UDP;
net/netfilter/nf_nat_sip.c
180
hdr, NULL, &matchoff, &matchlen,
net/netlink/genetlink.c
1126
struct nlmsghdr *nlh, struct genlmsghdr *hdr,
net/netlink/genetlink.c
1132
if (hdr->cmd < family->resv_start_op)
net/netlink/genetlink.c
1135
if (hdr->reserved) {
net/netlink/genetlink.c
1161
struct genlmsghdr *hdr = nlmsg_data(nlh);
net/netlink/genetlink.c
1174
if (genl_header_check(family, nlh, hdr, extack))
net/netlink/genetlink.c
1179
if (genl_get_cmd(hdr->cmd, flags, family, &op))
net/netlink/genetlink.c
1232
void *hdr;
net/netlink/genetlink.c
1234
hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd);
net/netlink/genetlink.c
1235
if (hdr == NULL)
net/netlink/genetlink.c
1303
genlmsg_end(skb, hdr);
net/netlink/genetlink.c
1307
genlmsg_cancel(skb, hdr);
net/netlink/genetlink.c
1316
void *hdr;
net/netlink/genetlink.c
1320
hdr = genlmsg_put(skb, portid, seq, &genl_ctrl, flags, cmd);
net/netlink/genetlink.c
1321
if (hdr == NULL)
net/netlink/genetlink.c
1344
genlmsg_end(skb, hdr);
net/netlink/genetlink.c
1348
genlmsg_cancel(skb, hdr);
net/netlink/genetlink.c
1634
void *hdr;
net/netlink/genetlink.c
1636
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid,
net/netlink/genetlink.c
1639
if (!hdr)
net/netlink/genetlink.c
1645
return hdr;
net/netlink/genetlink.c
1655
void *hdr;
net/netlink/genetlink.c
1662
hdr = ctrl_dumppolicy_prep(skb, cb);
net/netlink/genetlink.c
1663
if (!hdr)
net/netlink/genetlink.c
1693
genlmsg_end(skb, hdr);
net/netlink/genetlink.c
1697
genlmsg_cancel(skb, hdr);
net/netlink/genetlink.c
1704
void *hdr;
net/netlink/genetlink.c
1734
hdr = ctrl_dumppolicy_prep(skb, cb);
net/netlink/genetlink.c
1735
if (!hdr)
net/netlink/genetlink.c
1747
genlmsg_end(skb, hdr);
net/netlink/genetlink.c
1753
genlmsg_cancel(skb, hdr);
net/netlink/genetlink.c
897
struct genlmsghdr *hdr;
net/netlink/genetlink.c
904
hdr = nlmsg_data(nlh);
net/netlink/genetlink.c
905
hdr->cmd = cmd;
net/netlink/genetlink.c
906
hdr->version = family->version;
net/netlink/genetlink.c
907
hdr->reserved = 0;
net/netlink/genetlink.c
909
return (char *) hdr + GENL_HDRLEN;
net/nfc/nci/core.c
1392
struct nci_ctrl_hdr *hdr;
net/nfc/nci/core.c
1403
hdr = skb_put(skb, NCI_CTRL_HDR_SIZE);
net/nfc/nci/core.c
1404
hdr->gid = nci_opcode_gid(opcode);
net/nfc/nci/core.c
1405
hdr->oid = nci_opcode_oid(opcode);
net/nfc/nci/core.c
1406
hdr->plen = plen;
net/nfc/nci/core.c
1408
nci_mt_set((__u8 *)hdr, NCI_MT_CMD_PKT);
net/nfc/nci/core.c
1409
nci_pbf_set((__u8 *)hdr, NCI_PBF_LAST);
net/nfc/nci/data.c
73
struct nci_data_hdr *hdr;
net/nfc/nci/data.c
76
hdr = skb_push(skb, NCI_DATA_HDR_SIZE);
net/nfc/nci/data.c
77
hdr->conn_id = conn_id;
net/nfc/nci/data.c
78
hdr->rfu = 0;
net/nfc/nci/data.c
79
hdr->plen = plen;
net/nfc/nci/data.c
81
nci_mt_set((__u8 *)hdr, NCI_MT_DATA_PKT);
net/nfc/nci/data.c
82
nci_pbf_set((__u8 *)hdr, pbf);
net/nfc/nci/spi.c
149
unsigned char *hdr;
net/nfc/nci/spi.c
158
hdr = skb_push(skb, NCI_SPI_HDR_LEN);
net/nfc/nci/spi.c
159
hdr[0] = NCI_SPI_DIRECT_WRITE;
net/nfc/nci/spi.c
160
hdr[1] = NCI_SPI_CRC_ENABLED;
net/nfc/nci/spi.c
161
hdr[2] = acknowledge << NCI_SPI_ACK_SHIFT;
net/nfc/nci/spi.c
162
hdr[3] = 0;
net/nfc/nci/spi.c
62
unsigned char *hdr;
net/nfc/nci/spi.c
67
hdr = skb_push(skb, NCI_SPI_HDR_LEN);
net/nfc/nci/spi.c
68
hdr[0] = NCI_SPI_DIRECT_WRITE;
net/nfc/nci/spi.c
69
hdr[1] = nspi->acknowledge_mode;
net/nfc/nci/spi.c
70
hdr[2] = payload_len >> 8;
net/nfc/nci/spi.c
71
hdr[3] = payload_len & 0xFF;
net/nfc/netlink.c
1000
if (!hdr)
net/nfc/netlink.c
1009
genlmsg_end(msg, hdr);
net/nfc/netlink.c
1013
genlmsg_cancel(msg, hdr);
net/nfc/netlink.c
104
genlmsg_end(msg, hdr);
net/nfc/netlink.c
108
genlmsg_cancel(msg, hdr);
net/nfc/netlink.c
1258
void *hdr;
net/nfc/netlink.c
1264
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
1266
if (!hdr)
net/nfc/netlink.c
1274
genlmsg_end(msg, hdr);
net/nfc/netlink.c
1337
void *hdr;
net/nfc/netlink.c
1341
hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags,
net/nfc/netlink.c
1343
if (!hdr)
net/nfc/netlink.c
1347
genl_dump_check_consistent(cb, hdr);
net/nfc/netlink.c
1354
genlmsg_end(msg, hdr);
net/nfc/netlink.c
1360
genlmsg_cancel(msg, hdr);
net/nfc/netlink.c
1476
void *hdr;
net/nfc/netlink.c
1484
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
1486
if (!hdr)
net/nfc/netlink.c
1494
genlmsg_end(msg, hdr);
net/nfc/netlink.c
1634
void *hdr;
net/nfc/netlink.c
1640
hdr = nfc_hdr_put(skb, portid, seq, 0, NFC_CMD_VENDOR);
net/nfc/netlink.c
1641
if (!hdr) {
net/nfc/netlink.c
1654
((void **)skb->cb)[1] = hdr;
net/nfc/netlink.c
1681
void *hdr = ((void **)skb->cb)[1];
net/nfc/netlink.c
1691
genlmsg_end(skb, hdr);
net/nfc/netlink.c
178
void *hdr;
net/nfc/netlink.c
186
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
188
if (!hdr)
net/nfc/netlink.c
194
genlmsg_end(msg, hdr);
net/nfc/netlink.c
207
void *hdr;
net/nfc/netlink.c
213
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
215
if (!hdr)
net/nfc/netlink.c
222
genlmsg_end(msg, hdr);
net/nfc/netlink.c
237
void *hdr;
net/nfc/netlink.c
243
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
245
if (!hdr)
net/nfc/netlink.c
253
genlmsg_end(msg, hdr);
net/nfc/netlink.c
268
void *hdr;
net/nfc/netlink.c
274
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
276
if (!hdr)
net/nfc/netlink.c
282
genlmsg_end(msg, hdr);
net/nfc/netlink.c
308
void *hdr;
net/nfc/netlink.c
314
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
316
if (!hdr)
net/nfc/netlink.c
322
genlmsg_end(msg, hdr);
net/nfc/netlink.c
337
void *hdr;
net/nfc/netlink.c
343
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
345
if (!hdr)
net/nfc/netlink.c
351
genlmsg_end(msg, hdr);
net/nfc/netlink.c
369
void *hdr;
net/nfc/netlink.c
377
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
379
if (!hdr)
net/nfc/netlink.c
416
genlmsg_end(msg, hdr);
net/nfc/netlink.c
432
void *hdr;
net/nfc/netlink.c
438
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
440
if (!hdr)
net/nfc/netlink.c
448
genlmsg_end(msg, hdr);
net/nfc/netlink.c
463
void *hdr;
net/nfc/netlink.c
469
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
471
if (!hdr)
net/nfc/netlink.c
478
genlmsg_end(msg, hdr);
net/nfc/netlink.c
495
void *hdr;
net/nfc/netlink.c
501
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
503
if (!hdr)
net/nfc/netlink.c
522
genlmsg_end(msg, hdr);
net/nfc/netlink.c
540
void *hdr;
net/nfc/netlink.c
546
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
548
if (!hdr)
net/nfc/netlink.c
560
genlmsg_end(msg, hdr);
net/nfc/netlink.c
577
void *hdr;
net/nfc/netlink.c
579
hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags,
net/nfc/netlink.c
581
if (!hdr)
net/nfc/netlink.c
585
genl_dump_check_consistent(cb, hdr);
net/nfc/netlink.c
590
genlmsg_end(msg, hdr);
net/nfc/netlink.c
594
genlmsg_cancel(msg, hdr);
net/nfc/netlink.c
64
void *hdr;
net/nfc/netlink.c
656
void *hdr;
net/nfc/netlink.c
66
hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/nfc/netlink.c
664
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, NFC_CMD_DEP_LINK_UP);
net/nfc/netlink.c
665
if (!hdr)
net/nfc/netlink.c
677
genlmsg_end(msg, hdr);
net/nfc/netlink.c
68
if (!hdr)
net/nfc/netlink.c
694
void *hdr;
net/nfc/netlink.c
702
hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0,
net/nfc/netlink.c
704
if (!hdr)
net/nfc/netlink.c
71
genl_dump_check_consistent(cb, hdr);
net/nfc/netlink.c
710
genlmsg_end(msg, hdr);
net/nfc/netlink.c
996
void *hdr;
net/nfc/netlink.c
998
hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, 0,
net/packet/af_packet.c
183
#define BLOCK_STATUS(x) ((x)->hdr.bh1.block_status)
net/packet/af_packet.c
184
#define BLOCK_NUM_PKTS(x) ((x)->hdr.bh1.num_pkts)
net/packet/af_packet.c
185
#define BLOCK_O2FP(x) ((x)->hdr.bh1.offset_to_first_pkt)
net/packet/af_packet.c
186
#define BLOCK_LEN(x) ((x)->hdr.bh1.blk_len)
net/packet/af_packet.c
187
#define BLOCK_SNUM(x) ((x)->hdr.bh1.seq_num)
net/packet/af_packet.c
786
struct tpacket_hdr_v1 *h1 = &pbd1->hdr.bh1;
net/packet/af_packet.c
844
struct tpacket_hdr_v1 *h1 = &pbd1->hdr.bh1;
net/phonet/pep.c
255
struct pnpipehdr *hdr;
net/phonet/pep.c
258
if (!pskb_may_pull(skb, sizeof(*hdr) + 4))
net/phonet/pep.c
261
hdr = pnp_hdr(skb);
net/phonet/pep.c
262
if (hdr->pep_type != PN_PEP_TYPE_COMMON) {
net/phonet/pep.c
264
(unsigned int)hdr->pep_type);
net/phonet/pep.c
268
switch (hdr->data[0]) {
net/phonet/pep.c
272
switch (hdr->data[3]) {
net/phonet/pep.c
282
if (hdr->data[3] == PEP_IND_READY)
net/phonet/pep.c
291
atomic_add(wake = hdr->data[3], &pn->tx_credits);
net/phonet/pep.c
296
(unsigned int)hdr->data[0]);
net/phonet/pep.c
307
struct pnpipehdr *hdr = pnp_hdr(skb);
net/phonet/pep.c
308
u8 n_sb = hdr->data0;
net/phonet/pep.c
311
__skb_pull(skb, sizeof(*hdr));
net/phonet/pep.c
336
struct pnpipehdr *hdr = pnp_hdr(skb);
net/phonet/pep.c
342
switch (hdr->message_id) {
net/phonet/pep.c
360
switch (hdr->state_after_reset) {
net/phonet/pep.c
443
hdr->message_id);
net/phonet/pep.c
485
struct pnpipehdr *hdr;
net/phonet/pep.c
488
if (!pskb_pull(skb, sizeof(*hdr) + 4))
net/phonet/pep.c
491
hdr = pnp_hdr(skb);
net/phonet/pep.c
492
if (hdr->error_code != PN_PIPE_NO_ERROR)
net/phonet/pep.c
496
n_sb = hdr->data[3];
net/phonet/pep.c
526
struct pnpipehdr *hdr = pnp_hdr(skb);
net/phonet/pep.c
528
if (hdr->error_code != PN_PIPE_NO_ERROR)
net/phonet/pep.c
552
struct pnpipehdr *hdr = pnp_hdr(skb);
net/phonet/pep.c
555
switch (hdr->message_id) {
net/phonet/pep.c
658
struct pnpipehdr *hdr;
net/phonet/pep.c
662
if (!pskb_may_pull(skb, sizeof(*hdr)))
net/phonet/pep.c
665
hdr = pnp_hdr(skb);
net/phonet/pep.c
666
pipe_handle = hdr->pipe_handle;
net/phonet/pep.c
677
switch (hdr->message_id) {
net/phonet/pep.c
768
struct pnpipehdr *hdr;
net/phonet/pep.c
788
if (!pskb_may_pull(skb, sizeof(*hdr) + 4))
net/phonet/pep.c
791
hdr = pnp_hdr(skb);
net/phonet/pep.c
792
pipe_handle = hdr->pipe_handle;
net/phonet/pep.c
793
switch (hdr->state_after_connect) {
net/phonet/pep.c
805
peer_type = hdr->other_pep_type << 8;
net/phonet/pep.c
808
n_sb = hdr->data[3];
net/psample/psample.c
45
void *hdr;
net/psample/psample.c
48
hdr = genlmsg_put(msg, portid, seq, &psample_nl_family, flags, cmd);
net/psample/psample.c
49
if (!hdr)
net/psample/psample.c
64
genlmsg_end(msg, hdr);
net/psample/psample.c
68
genlmsg_cancel(msg, hdr);
net/psp/psp_nl.c
107
genlmsg_end(rsp, hdr);
net/psp/psp_nl.c
111
genlmsg_cancel(rsp, hdr);
net/psp/psp_nl.c
18
void *hdr;
net/psp/psp_nl.c
24
hdr = genlmsg_iput(rsp, info);
net/psp/psp_nl.c
25
if (!hdr) {
net/psp/psp_nl.c
515
void *hdr;
net/psp/psp_nl.c
525
hdr = genlmsg_iput(rsp, info);
net/psp/psp_nl.c
526
if (!hdr)
net/psp/psp_nl.c
543
genlmsg_end(rsp, hdr);
net/psp/psp_nl.c
547
genlmsg_cancel(rsp, hdr);
net/psp/psp_nl.c
95
void *hdr;
net/psp/psp_nl.c
97
hdr = genlmsg_iput(rsp, info);
net/psp/psp_nl.c
98
if (!hdr)
net/qrtr/af_qrtr.c
340
struct qrtr_hdr_v1 *hdr;
net/qrtr/af_qrtr.c
350
hdr = skb_push(skb, sizeof(*hdr));
net/qrtr/af_qrtr.c
351
hdr->version = cpu_to_le32(QRTR_PROTO_VER_1);
net/qrtr/af_qrtr.c
352
hdr->type = cpu_to_le32(type);
net/qrtr/af_qrtr.c
353
hdr->src_node_id = cpu_to_le32(from->sq_node);
net/qrtr/af_qrtr.c
354
hdr->src_port_id = cpu_to_le32(from->sq_port);
net/qrtr/af_qrtr.c
356
hdr->dst_node_id = cpu_to_le32(node->nid);
net/qrtr/af_qrtr.c
357
hdr->dst_port_id = cpu_to_le32(QRTR_PORT_CTRL);
net/qrtr/af_qrtr.c
359
hdr->dst_node_id = cpu_to_le32(to->sq_node);
net/qrtr/af_qrtr.c
360
hdr->dst_port_id = cpu_to_le32(to->sq_port);
net/qrtr/af_qrtr.c
363
hdr->size = cpu_to_le32(len);
net/qrtr/af_qrtr.c
364
hdr->confirm_rx = !!confirm_rx;
net/qrtr/af_qrtr.c
366
rc = skb_put_padto(skb, ALIGN(len, 4) + sizeof(*hdr));
net/rds/ib_cm.c
409
static void rds_dma_hdr_free(struct ib_device *dev, struct rds_header *hdr,
net/rds/ib_cm.c
412
ib_dma_unmap_single(dev, dma_addr, sizeof(*hdr), dir);
net/rds/ib_cm.c
413
kfree(hdr);
net/rds/ib_cm.c
419
struct rds_header *hdr;
net/rds/ib_cm.c
421
hdr = kzalloc_node(sizeof(*hdr), GFP_KERNEL, ibdev_to_node(dev));
net/rds/ib_cm.c
422
if (!hdr)
net/rds/ib_cm.c
425
*dma_addr = ib_dma_map_single(dev, hdr, sizeof(*hdr),
net/rds/ib_cm.c
428
kfree(hdr);
net/rds/ib_cm.c
432
return hdr;
net/rds/ib_recv.c
660
struct rds_header *hdr = ic->i_ack;
net/rds/ib_recv.c
669
sizeof(*hdr), DMA_TO_DEVICE);
net/rds/ib_recv.c
670
rds_message_populate_header(hdr, 0, 0, 0);
net/rds/ib_recv.c
671
hdr->h_ack = cpu_to_be64(seq);
net/rds/ib_recv.c
672
hdr->h_credit = adv_credits;
net/rds/ib_recv.c
673
rds_message_make_checksum(hdr);
net/rds/ib_recv.c
675
sizeof(*hdr), DMA_TO_DEVICE);
net/rds/ib_recv.c
855
struct rds_header *ihdr, *hdr;
net/rds/ib_recv.c
927
hdr = &ibinc->ii_inc.i_hdr;
net/rds/ib_recv.c
930
memcpy(hdr, ihdr, sizeof(*hdr));
net/rds/ib_recv.c
931
ic->i_recv_data_rem = be32_to_cpu(hdr->h_len);
net/rds/ib_recv.c
936
ic->i_recv_data_rem, hdr->h_flags);
net/rds/ib_recv.c
938
hdr = &ibinc->ii_inc.i_hdr;
net/rds/ib_recv.c
941
if (hdr->h_sequence != ihdr->h_sequence ||
net/rds/ib_recv.c
942
hdr->h_len != ihdr->h_len ||
net/rds/ib_recv.c
943
hdr->h_sport != ihdr->h_sport ||
net/rds/ib_recv.c
944
hdr->h_dport != ihdr->h_dport) {
net/rds/ib_recv.c
965
state->ack_next = be64_to_cpu(hdr->h_sequence);
net/rds/ib_recv.c
972
if (hdr->h_flags & RDS_FLAG_ACK_REQUIRED) {
net/rds/ib_send.c
712
struct rds_header *hdr = ic->i_send_hdrs[pos];
net/rds/ib_send.c
715
hdr->h_credit = adv_credits;
net/rds/ib_send.c
716
rds_message_make_checksum(hdr);
net/rds/message.c
189
void rds_message_populate_header(struct rds_header *hdr, __be16 sport,
net/rds/message.c
192
hdr->h_flags = 0;
net/rds/message.c
193
hdr->h_sport = sport;
net/rds/message.c
194
hdr->h_dport = dport;
net/rds/message.c
195
hdr->h_sequence = cpu_to_be64(seq);
net/rds/message.c
199
memset(hdr->h_exthdr, RDS_EXTHDR_NONE, RDS_HEADER_EXT_SPACE);
net/rds/message.c
214
static int rds_find_next_ext_space(struct rds_header *hdr, unsigned int len,
net/rds/message.c
222
if (hdr->h_exthdr[ind] == RDS_EXTHDR_NONE) {
net/rds/message.c
223
*ext_start = hdr->h_exthdr + ind;
net/rds/message.c
227
type = hdr->h_exthdr[ind];
net/rds/message.c
243
int rds_message_add_extension(struct rds_header *hdr,
net/rds/message.c
253
if (rds_find_next_ext_space(hdr, len, &dst))
net/rds/message.c
277
int rds_message_next_extension(struct rds_header *hdr,
net/rds/message.c
281
u8 *src = hdr->h_exthdr;
net/rds/message.c
309
int rds_message_add_rdma_dest_extension(struct rds_header *hdr, u32 r_key, u32 offset)
net/rds/message.c
315
return rds_message_add_extension(hdr, RDS_EXTHDR_RDMA_DEST, &ext_hdr);
net/rds/rds.h
892
void rds_message_populate_header(struct rds_header *hdr, __be16 sport,
net/rds/rds.h
894
int rds_message_add_extension(struct rds_header *hdr,
net/rds/rds.h
896
int rds_message_next_extension(struct rds_header *hdr,
net/rds/rds.h
898
int rds_message_add_rdma_dest_extension(struct rds_header *hdr, u32 r_key, u32 offset);
net/rds/rds.h
906
static inline void rds_message_make_checksum(struct rds_header *hdr)
net/rds/rds.h
908
hdr->h_csum = 0;
net/rds/rds.h
909
hdr->h_csum = ip_fast_csum((void *) hdr, sizeof(*hdr) >> 2);
net/rds/rds.h
912
static inline int rds_message_verify_checksum(const struct rds_header *hdr)
net/rds/rds.h
914
return !hdr->h_csum || ip_fast_csum((void *) hdr, sizeof(*hdr) >> 2) == 0;
net/rds/recv.c
168
struct rds_header *hdr = &inc->i_hdr;
net/rds/recv.c
178
type = rds_message_next_extension(hdr, &pos, &buffer, &len);
net/rds/recv.c
199
static void rds_recv_hs_exthdrs(struct rds_header *hdr,
net/rds/recv.c
218
type = rds_message_next_extension(hdr, &pos, &buffer, &len);
net/rxrpc/ar-internal.h
1292
struct rxrpc_host_header *hdr,
net/rxrpc/ar-internal.h
1430
rxrpc_abort_call(call, sp->hdr.seq, abort_code, -EPROTO, why);
net/rxrpc/ar-internal.h
240
struct rxrpc_host_header hdr; /* RxRPC packet header from this packet */
net/rxrpc/ar-internal.h
607
return sp->hdr.flags & RXRPC_CLIENT_INITIATED;
net/rxrpc/call_accept.c
349
if (sp->hdr.type != RXRPC_PACKET_TYPE_DATA)
net/rxrpc/call_accept.c
359
if (!rx || (sp->hdr.serviceId != rx->srx.srx_service &&
net/rxrpc/call_accept.c
360
sp->hdr.serviceId != rx->second_service)
net/rxrpc/call_accept.c
362
if (sp->hdr.type == RXRPC_PACKET_TYPE_DATA &&
net/rxrpc/call_accept.c
363
sp->hdr.seq == 1)
net/rxrpc/call_accept.c
390
sp->hdr.serial, sp->hdr.seq);
net/rxrpc/call_event.c
333
saw_ack |= sp->hdr.type == RXRPC_PACKET_TYPE_ACK;
net/rxrpc/call_object.c
449
call->call_id = sp->hdr.callNumber;
net/rxrpc/call_object.c
450
call->dest_srx.srx_service = sp->hdr.serviceId;
net/rxrpc/call_object.c
451
call->cid = sp->hdr.cid;
net/rxrpc/call_object.c
483
chan = sp->hdr.cid & RXRPC_CHANNELMASK;
net/rxrpc/conn_event.c
107
if (sp && sp->hdr.type == RXRPC_PACKET_TYPE_ACK) {
net/rxrpc/conn_event.c
121
if (skb && call_id != sp->hdr.callNumber)
net/rxrpc/conn_event.c
172
pkt.ack.serial = htonl(skb ? sp->hdr.serial : 0);
net/rxrpc/conn_event.c
255
_enter("{%d},{%u,%%%u},", conn->debug_id, sp->hdr.type, sp->hdr.serial);
net/rxrpc/conn_event.c
257
switch (sp->hdr.type) {
net/rxrpc/conn_event.c
468
switch (sp->hdr.type) {
net/rxrpc/conn_event.c
58
cid = sp->hdr.cid;
net/rxrpc/conn_event.c
59
call = sp->hdr.callNumber;
net/rxrpc/conn_event.c
60
seq = sp->hdr.seq;
net/rxrpc/conn_object.c
105
_enter(",%x", sp->hdr.cid & RXRPC_CIDMASK);
net/rxrpc/conn_object.c
110
conn = idr_find(&local->conn_ids, sp->hdr.cid >> RXRPC_CIDSHIFT);
net/rxrpc/conn_object.c
116
if (conn->proto.epoch != sp->hdr.epoch ||
net/rxrpc/conn_service.c
157
conn->proto.epoch = sp->hdr.epoch;
net/rxrpc/conn_service.c
158
conn->proto.cid = sp->hdr.cid & RXRPC_CIDMASK;
net/rxrpc/conn_service.c
159
conn->orig_service_id = sp->hdr.serviceId;
net/rxrpc/conn_service.c
160
conn->service_id = sp->hdr.serviceId;
net/rxrpc/conn_service.c
161
conn->security_ix = sp->hdr.securityIndex;
net/rxrpc/conn_service.c
173
if (sp->hdr.userStatus == RXRPC_USERSTATUS_SERVICE_UPGRADE &&
net/rxrpc/conn_service.c
30
k.epoch = sp->hdr.epoch;
net/rxrpc/conn_service.c
31
k.cid = sp->hdr.cid & RXRPC_CIDMASK;
net/rxrpc/input.c
1068
summary.ack_serial = sp->hdr.serial;
net/rxrpc/input.c
1198
else if (sp->hdr.flags & RXRPC_REQUEST_ACK)
net/rxrpc/input.c
1221
trace_rxrpc_rx_abort(call, sp->hdr.serial, skb->priority);
net/rxrpc/input.c
1237
if (sp->hdr.serviceId != call->dest_srx.srx_service)
net/rxrpc/input.c
1238
call->dest_srx.srx_service = sp->hdr.serviceId;
net/rxrpc/input.c
1239
if ((int)sp->hdr.serial - (int)call->rx_serial > 0)
net/rxrpc/input.c
1240
call->rx_serial = sp->hdr.serial;
net/rxrpc/input.c
1252
switch (sp->hdr.type) {
net/rxrpc/input.c
449
bool last = sp->hdr.flags & RXRPC_LAST_PACKET;
net/rxrpc/input.c
455
trace_rxrpc_receive(call, last ? why + 1 : why, sp->hdr.serial, sp->hdr.seq);
net/rxrpc/input.c
461
rxrpc_end_rx_phase(call, sp->hdr.serial);
net/rxrpc/input.c
474
rxrpc_serial_t serial = sp->hdr.serial;
net/rxrpc/input.c
479
rxrpc_seq_t seq = sp->hdr.seq;
net/rxrpc/input.c
480
bool last = sp->hdr.flags & RXRPC_LAST_PACKET;
net/rxrpc/input.c
484
if (sp->hdr.flags & RXRPC_REQUEST_ACK)
net/rxrpc/input.c
486
if (sp->hdr.flags & RXRPC_JUMBO_PACKET)
net/rxrpc/input.c
505
trace_rxrpc_rx_data(call->debug_id, seq, serial, sp->hdr.flags);
net/rxrpc/input.c
518
if (sp->hdr.flags & RXRPC_REQUEST_ACK)
net/rxrpc/input.c
542
if (after(osp->hdr.seq, window))
net/rxrpc/input.c
546
last = osp->hdr.flags & RXRPC_LAST_PACKET;
net/rxrpc/input.c
547
seq = osp->hdr.seq;
net/rxrpc/input.c
582
if (after(osp->hdr.seq, seq)) {
net/rxrpc/input.c
593
sp->hdr.serial, sp->hdr.seq);
net/rxrpc/input.c
623
while (sp->hdr.flags & RXRPC_JUMBO_PACKET) {
net/rxrpc/input.c
626
if (sp->hdr.flags & RXRPC_LAST_PACKET)
net/rxrpc/input.c
644
sp->hdr.flags = jhdr.flags;
net/rxrpc/input.c
645
sp->hdr._rsvd = ntohs(jhdr._rsvd);
net/rxrpc/input.c
646
sp->hdr.seq++;
net/rxrpc/input.c
647
sp->hdr.serial++;
net/rxrpc/input.c
665
rxrpc_propose_delay_ACK(call, sp->hdr.serial,
net/rxrpc/input.c
669
trace_rxrpc_notify_socket(call->debug_id, sp->hdr.serial);
net/rxrpc/input.c
685
rxrpc_serial_t serial = sp->hdr.serial;
net/rxrpc/input.c
686
rxrpc_seq_t seq0 = sp->hdr.seq;
net/rxrpc/input.c
722
rxrpc_proto_abort(call, sp->hdr.seq, rxrpc_badmsg_bad_jumbo);
net/rxrpc/input.c
803
trace_rxrpc_rx_rwind_change(call, sp->hdr.serial, rwind, wake);
net/rxrpc/input.c
811
trace_rxrpc_pmtud_reduce(peer, sp->hdr.serial, max_mtu,
net/rxrpc/io_thread.c
108
trace_rxrpc_abort(0, why, sp->hdr.cid, 0, sp->hdr.seq, abort_code, err);
net/rxrpc/io_thread.c
134
rxrpc_send_version_request(local, &sp->hdr, skb);
net/rxrpc/io_thread.c
154
sp->hdr.epoch = ntohl(whdr.epoch);
net/rxrpc/io_thread.c
155
sp->hdr.cid = ntohl(whdr.cid);
net/rxrpc/io_thread.c
156
sp->hdr.callNumber = ntohl(whdr.callNumber);
net/rxrpc/io_thread.c
157
sp->hdr.seq = ntohl(whdr.seq);
net/rxrpc/io_thread.c
158
sp->hdr.serial = ntohl(whdr.serial);
net/rxrpc/io_thread.c
159
sp->hdr.flags = whdr.flags;
net/rxrpc/io_thread.c
160
sp->hdr.type = whdr.type;
net/rxrpc/io_thread.c
161
sp->hdr.userStatus = whdr.userStatus;
net/rxrpc/io_thread.c
162
sp->hdr.securityIndex = whdr.securityIndex;
net/rxrpc/io_thread.c
163
sp->hdr._rsvd = ntohs(whdr._rsvd);
net/rxrpc/io_thread.c
164
sp->hdr.serviceId = ntohs(whdr.serviceId);
net/rxrpc/io_thread.c
166
if (sp->hdr.type == RXRPC_PACKET_TYPE_ACK) {
net/rxrpc/io_thread.c
222
switch (sp->hdr.type) {
net/rxrpc/io_thread.c
234
if (sp->hdr.callNumber == 0)
net/rxrpc/io_thread.c
243
if (sp->hdr.callNumber == 0)
net/rxrpc/io_thread.c
245
if (sp->hdr.seq == 0)
net/rxrpc/io_thread.c
251
if (sp->hdr.securityIndex != 0) {
net/rxrpc/io_thread.c
287
if (sp->hdr.serviceId == 0)
net/rxrpc/io_thread.c
356
if (sp->hdr.securityIndex != conn->security_ix)
net/rxrpc/io_thread.c
360
if (sp->hdr.serviceId != conn->service_id) {
net/rxrpc/io_thread.c
367
sp->hdr.serviceId);
net/rxrpc/io_thread.c
369
old_id != sp->hdr.serviceId)
net/rxrpc/io_thread.c
373
if (after(sp->hdr.serial, conn->hi_serial))
net/rxrpc/io_thread.c
374
conn->hi_serial = sp->hdr.serial;
net/rxrpc/io_thread.c
377
if (sp->hdr.callNumber == 0)
net/rxrpc/io_thread.c
381
if (sp->hdr.type == RXRPC_PACKET_TYPE_ACK &&
net/rxrpc/io_thread.c
387
channel = sp->hdr.cid & RXRPC_CHANNELMASK;
net/rxrpc/io_thread.c
391
if (sp->hdr.callNumber < chan->last_call)
net/rxrpc/io_thread.c
394
if (sp->hdr.callNumber == chan->last_call) {
net/rxrpc/io_thread.c
396
sp->hdr.type == RXRPC_PACKET_TYPE_ABORT)
net/rxrpc/io_thread.c
409
if (sp->hdr.type == RXRPC_PACKET_TYPE_DATA)
net/rxrpc/io_thread.c
411
sp->hdr.seq,
net/rxrpc/io_thread.c
412
sp->hdr.serial,
net/rxrpc/io_thread.c
413
sp->hdr.flags);
net/rxrpc/io_thread.c
420
if (sp->hdr.callNumber > chan->call_id) {
net/rxrpc/io_thread.c
93
trace_rxrpc_abort(0, why, sp->hdr.cid, sp->hdr.callNumber, sp->hdr.seq,
net/rxrpc/local_event.c
34
struct rxrpc_host_header *hdr,
net/rxrpc/local_event.c
56
whdr.epoch = htonl(sp->hdr.epoch);
net/rxrpc/local_event.c
57
whdr.cid = htonl(sp->hdr.cid);
net/rxrpc/local_event.c
58
whdr.callNumber = htonl(sp->hdr.callNumber);
net/rxrpc/local_event.c
62
whdr.flags = RXRPC_LAST_PACKET | (~hdr->flags & RXRPC_CLIENT_INITIATED);
net/rxrpc/local_event.c
66
whdr.serviceId = htons(sp->hdr.serviceId);
net/rxrpc/oob.c
351
*_service_id = sp->hdr.serviceId;
net/rxrpc/oob.c
352
*_security_index = sp->hdr.securityIndex;
net/rxrpc/oob.c
374
_enter("{%x},%d,%d,%u", sp->hdr.serial, abort_code, error, why);
net/rxrpc/oob.c
53
trace_rxrpc_notify_socket(call->debug_id, sp->hdr.serial);
net/rxrpc/output.c
817
if (sp->hdr.type == RXRPC_PACKET_TYPE_ABORT)
net/rxrpc/output.c
833
.epoch = htonl(sp->hdr.epoch),
net/rxrpc/output.c
834
.cid = htonl(sp->hdr.cid),
net/rxrpc/output.c
835
.callNumber = htonl(sp->hdr.callNumber),
net/rxrpc/output.c
836
.serviceId = htons(sp->hdr.serviceId),
net/rxrpc/output.c
837
.flags = ~sp->hdr.flags & RXRPC_CLIENT_INITIATED,
net/rxrpc/recvmsg.c
125
tseq = sp->hdr.seq;
net/rxrpc/recvmsg.c
126
serial = sp->hdr.serial;
net/rxrpc/recvmsg.c
127
last = sp->hdr.flags & RXRPC_LAST_PACKET;
net/rxrpc/recvmsg.c
277
seq = sp->hdr.seq;
net/rxrpc/recvmsg.c
281
sp->hdr.serial, seq);
net/rxrpc/recvmsg.c
329
if (sp->hdr.flags & RXRPC_LAST_PACKET)
net/rxrpc/rxgk.c
1214
trace_rxrpc_rx_response(conn, sp->hdr.serial, 0, sp->hdr.cksum, token_len);
net/rxrpc/rxgk.c
1255
gk = rxgk_generate_transport_key(conn, token->rxgk, sp->hdr.cksum, GFP_NOFS);
net/rxrpc/rxgk.c
1263
trace_rxrpc_rx_response(conn, sp->hdr.serial, krb5->etype, sp->hdr.cksum, token_len);
net/rxrpc/rxgk.c
347
struct rxgk_header *hdr;
net/rxrpc/rxgk.c
354
hdr = kzalloc_obj(*hdr, GFP_NOFS);
net/rxrpc/rxgk.c
355
if (!hdr)
net/rxrpc/rxgk.c
358
hdr->epoch = htonl(call->conn->proto.epoch);
net/rxrpc/rxgk.c
359
hdr->cid = htonl(call->cid);
net/rxrpc/rxgk.c
360
hdr->call_number = htonl(call->call_id);
net/rxrpc/rxgk.c
361
hdr->seq = htonl(txb->seq);
net/rxrpc/rxgk.c
362
hdr->sec_index = htonl(call->security_ix);
net/rxrpc/rxgk.c
363
hdr->data_len = htonl(txb->len);
net/rxrpc/rxgk.c
364
metadata.len = sizeof(*hdr);
net/rxrpc/rxgk.c
365
metadata.data = hdr;
net/rxrpc/rxgk.c
379
kfree(hdr);
net/rxrpc/rxgk.c
393
struct rxgk_header *hdr;
net/rxrpc/rxgk.c
400
hdr = txb->data + txb->crypto_header;
net/rxrpc/rxgk.c
401
hdr->epoch = htonl(call->conn->proto.epoch);
net/rxrpc/rxgk.c
402
hdr->cid = htonl(call->cid);
net/rxrpc/rxgk.c
403
hdr->call_number = htonl(call->call_id);
net/rxrpc/rxgk.c
404
hdr->seq = htonl(txb->seq);
net/rxrpc/rxgk.c
405
hdr->sec_index = htonl(call->security_ix);
net/rxrpc/rxgk.c
406
hdr->data_len = htonl(txb->len);
net/rxrpc/rxgk.c
474
struct rxgk_header *hdr;
net/rxrpc/rxgk.c
486
hdr = kzalloc_obj(*hdr, GFP_NOFS);
net/rxrpc/rxgk.c
487
if (!hdr)
net/rxrpc/rxgk.c
490
hdr->epoch = htonl(call->conn->proto.epoch);
net/rxrpc/rxgk.c
491
hdr->cid = htonl(call->cid);
net/rxrpc/rxgk.c
492
hdr->call_number = htonl(call->call_id);
net/rxrpc/rxgk.c
493
hdr->seq = htonl(sp->hdr.seq);
net/rxrpc/rxgk.c
494
hdr->sec_index = htonl(call->security_ix);
net/rxrpc/rxgk.c
495
hdr->data_len = htonl(data_len);
net/rxrpc/rxgk.c
497
metadata.len = sizeof(*hdr);
net/rxrpc/rxgk.c
498
metadata.data = hdr;
net/rxrpc/rxgk.c
501
kfree(hdr);
net/rxrpc/rxgk.c
525
struct rxgk_header hdr;
net/rxrpc/rxgk.c
539
if (len < sizeof(hdr)) {
net/rxrpc/rxgk.c
546
ret = skb_copy_bits(skb, offset, &hdr, sizeof(hdr));
net/rxrpc/rxgk.c
552
offset += sizeof(hdr);
net/rxrpc/rxgk.c
553
len -= sizeof(hdr);
net/rxrpc/rxgk.c
555
if (ntohl(hdr.epoch) != call->conn->proto.epoch ||
net/rxrpc/rxgk.c
556
ntohl(hdr.cid) != call->cid ||
net/rxrpc/rxgk.c
557
ntohl(hdr.call_number) != call->call_id ||
net/rxrpc/rxgk.c
558
ntohl(hdr.seq) != sp->hdr.seq ||
net/rxrpc/rxgk.c
559
ntohl(hdr.sec_index) != call->security_ix ||
net/rxrpc/rxgk.c
560
ntohl(hdr.data_len) > len) {
net/rxrpc/rxgk.c
567
sp->len = ntohl(hdr.data_len);
net/rxrpc/rxgk.c
583
u16 key_number = sp->hdr.cksum;
net/rxrpc/rxgk.c
586
call->debug_id, key_serial(call->conn->key), sp->hdr.seq);
net/rxrpc/rxgk.c
724
trace_rxrpc_rx_challenge(conn, sp->hdr.serial, 0, *(u32 *)nonce, 0);
net/rxrpc/rxgk.c
989
rsp->resp.challenge_serial = csp->hdr.serial;
net/rxrpc/rxkad.c
1157
trace_rxrpc_rx_response(conn, sp->hdr.serial, version, kvno, ticket_len);
net/rxrpc/rxkad.c
262
struct rxkad_level1_hdr *hdr = txb->data;
net/rxrpc/rxkad.c
271
hdr->data_size = htonl((u32)check << 16 | txb->len);
net/rxrpc/rxkad.c
285
sg_init_one(&sg, hdr, 8);
net/rxrpc/rxkad.c
577
rxrpc_seq_t seq = sp->hdr.seq;
net/rxrpc/rxkad.c
613
if (cksum != sp->hdr.cksum) {
net/rxrpc/rxkad.c
791
trace_rxrpc_rx_challenge(conn, sp->hdr.serial, version,
net/rxrpc/rxkad.c
909
rsp->resp.challenge_serial = csp->hdr.serial;
net/rxrpc/security.c
141
sec = rxrpc_security_lookup(sp->hdr.securityIndex);
net/rxrpc/security.c
148
if (sp->hdr.securityIndex != RXRPC_SECURITY_NONE &&
net/rxrpc/security.c
176
sp->hdr.serviceId, sp->hdr.securityIndex, kvno, enctype);
net/rxrpc/security.c
179
sp->hdr.serviceId, sp->hdr.securityIndex, kvno);
net/rxrpc/security.c
182
sp->hdr.serviceId, sp->hdr.securityIndex);
net/sched/cls_flow.c
674
if (f->ematches.hdr.nmatches &&
net/sched/em_meta.c
714
int shift = v->hdr.shift;
net/sched/em_meta.c
765
if (v->hdr.shift)
net/sched/em_meta.c
766
dst->value >>= v->hdr.shift;
net/sched/em_meta.c
79
struct tcf_meta_val hdr;
net/sched/em_meta.c
859
switch (meta->lvalue.hdr.op) {
net/sched/em_meta.c
91
return TCF_META_ID(v->hdr.kind);
net/sched/em_meta.c
911
struct tcf_meta_hdr *hdr;
net/sched/em_meta.c
922
hdr = nla_data(tb[TCA_EM_META_HDR]);
net/sched/em_meta.c
924
if (TCF_META_TYPE(hdr->left.kind) != TCF_META_TYPE(hdr->right.kind) ||
net/sched/em_meta.c
925
TCF_META_TYPE(hdr->left.kind) > TCF_META_TYPE_MAX ||
net/sched/em_meta.c
926
TCF_META_ID(hdr->left.kind) > TCF_META_ID_MAX ||
net/sched/em_meta.c
927
TCF_META_ID(hdr->right.kind) > TCF_META_ID_MAX)
net/sched/em_meta.c
936
memcpy(&meta->lvalue.hdr, &hdr->left, sizeof(hdr->left));
net/sched/em_meta.c
937
memcpy(&meta->rvalue.hdr, &hdr->right, sizeof(hdr->right));
net/sched/em_meta.c
96
return TCF_META_TYPE(v->hdr.kind);
net/sched/em_meta.c
968
struct tcf_meta_hdr hdr;
net/sched/em_meta.c
971
memset(&hdr, 0, sizeof(hdr));
net/sched/em_meta.c
972
memcpy(&hdr.left, &meta->lvalue.hdr, sizeof(hdr.left));
net/sched/em_meta.c
973
memcpy(&hdr.right, &meta->rvalue.hdr, sizeof(hdr.right));
net/sched/em_meta.c
975
if (nla_put(skb, TCA_EM_META_HDR, sizeof(hdr), &hdr))
net/sched/em_nbyte.c
18
struct tcf_em_nbyte hdr;
net/sched/em_nbyte.c
43
unsigned char *ptr = tcf_get_base_ptr(skb, nbyte->hdr.layer);
net/sched/em_nbyte.c
47
ptr += nbyte->hdr.off;
net/sched/em_nbyte.c
49
if (!tcf_valid_offset(skb, ptr, nbyte->hdr.len))
net/sched/em_nbyte.c
52
return !memcmp(ptr, nbyte->pattern, nbyte->hdr.len);
net/sched/ematch.c
331
memcpy(&tree->hdr, tree_hdr, sizeof(*tree_hdr));
net/sched/ematch.c
407
for (i = 0; i < tree->hdr.nmatches; i++) {
net/sched/ematch.c
419
tree->hdr.nmatches = 0;
net/sched/ematch.c
448
if (nla_put(skb, TCA_EMATCH_TREE_HDR, sizeof(tree->hdr), &tree->hdr))
net/sched/ematch.c
456
for (i = 0; i < tree->hdr.nmatches; i++) {
net/sched/ematch.c
508
while (match_idx < tree->hdr.nmatches) {
net/sctp/input.c
643
struct icmphdr *hdr;
net/sctp/input.c
654
hdr = (struct icmphdr *)(skb_network_header(skb) - sizeof(struct icmphdr));
net/sctp/input.c
655
if (hdr->type == ICMP_REDIRECT) {
net/sctp/input.c
660
if (hdr->type == ICMP_DEST_UNREACH && hdr->code == ICMP_FRAG_NEEDED)
net/sctp/input.c
661
info = ntohs(hdr->un.frag.mtu);
net/sctp/input.c
662
sctp_v4_err_handle(t, skb, hdr->type, hdr->code, info);
net/sctp/ipv6.c
195
struct icmp6hdr *hdr;
net/sctp/ipv6.c
206
hdr = (struct icmp6hdr *)(skb_network_header(skb) - sizeof(struct icmp6hdr));
net/sctp/ipv6.c
207
if (hdr->icmp6_type == NDISC_REDIRECT) {
net/sctp/ipv6.c
212
if (hdr->icmp6_type == ICMPV6_PKT_TOOBIG)
net/sctp/ipv6.c
213
info = ntohl(hdr->icmp6_mtu);
net/sctp/ipv6.c
214
sctp_v6_err_handle(t, skb, hdr->icmp6_type, hdr->icmp6_code, info);
net/sctp/sm_make_chunk.c
3242
struct sctp_addiphdr *hdr;
net/sctp/sm_make_chunk.c
3251
hdr = (struct sctp_addiphdr *)asconf->skb->data;
net/sctp/sm_make_chunk.c
3252
serial = ntohl(hdr->serial);
net/sctp/sm_make_chunk.c
3255
length = sizeof(*hdr);
net/sctp/sm_make_chunk.c
3845
struct sctp_reconf_chunk *hdr;
net/sctp/sm_make_chunk.c
3850
hdr = (struct sctp_reconf_chunk *)chunk->chunk_hdr;
net/sctp/sm_make_chunk.c
3851
sctp_walk_params(param, hdr) {
net/sctp/sm_statefuns.c
3882
struct sctp_addiphdr *hdr;
net/sctp/sm_statefuns.c
3906
hdr = (struct sctp_addiphdr *)chunk->skb->data;
net/sctp/sm_statefuns.c
3907
serial = ntohl(hdr->serial);
net/sctp/sm_statefuns.c
3950
asconf_ack = sctp_assoc_lookup_asconf_ack(asoc, hdr->serial);
net/sctp/sm_statefuns.c
4137
struct sctp_reconf_chunk *hdr;
net/sctp/sm_statefuns.c
4147
if (!sctp_chunk_length_valid(chunk, sizeof(*hdr)))
net/sctp/sm_statefuns.c
4155
hdr = (struct sctp_reconf_chunk *)chunk->chunk_hdr;
net/sctp/sm_statefuns.c
4156
sctp_walk_params(param, hdr) {
net/sctp/sm_statefuns.c
4539
struct sctp_chunkhdr *hdr;
net/sctp/sm_statefuns.c
4550
if (!sctp_chunk_length_valid(unk_chunk, sizeof(*hdr)))
net/sctp/sm_statefuns.c
4560
hdr = unk_chunk->chunk_hdr;
net/sctp/sm_statefuns.c
4562
SCTP_ERROR_UNKNOWN_CHUNK, hdr,
net/sctp/sm_statefuns.c
4563
SCTP_PAD4(ntohs(hdr->length)),
net/sctp/sm_statefuns.c
4578
hdr = unk_chunk->chunk_hdr;
net/sctp/sm_statefuns.c
4580
SCTP_ERROR_UNKNOWN_CHUNK, hdr,
net/sctp/sm_statefuns.c
4581
SCTP_PAD4(ntohs(hdr->length)),
net/sctp/stream.c
487
struct sctp_reconf_chunk *hdr;
net/sctp/stream.c
493
hdr = (struct sctp_reconf_chunk *)chunk->chunk_hdr;
net/sctp/stream.c
494
sctp_walk_params(param, hdr) {
net/sctp/stream_interleave.c
62
struct sctp_idatahdr *hdr;
net/sctp/stream_interleave.c
67
hdr = lchunk->subh.idata_hdr;
net/sctp/stream_interleave.c
70
hdr->ppid = lchunk->sinfo.sinfo_ppid;
net/sctp/stream_interleave.c
72
hdr->fsn = htonl(cfsn++);
net/sctp/stream_interleave.c
83
hdr->mid = htonl(mid);
net/shaper/shaper.c
1148
void *hdr;
net/shaper/shaper.c
1150
hdr = genlmsg_iput(msg, info);
net/shaper/shaper.c
1151
if (!hdr)
net/shaper/shaper.c
1158
genlmsg_end(msg, hdr);
net/shaper/shaper.c
1290
void *hdr;
net/shaper/shaper.c
1292
hdr = genlmsg_iput(msg, info);
net/shaper/shaper.c
1293
if (!hdr)
net/shaper/shaper.c
1306
genlmsg_end(msg, hdr);
net/shaper/shaper.c
1311
genlmsg_cancel(msg, hdr);
net/shaper/shaper.c
139
void *hdr;
net/shaper/shaper.c
141
hdr = genlmsg_iput(msg, info);
net/shaper/shaper.c
142
if (!hdr)
net/shaper/shaper.c
164
genlmsg_end(msg, hdr);
net/shaper/shaper.c
169
genlmsg_cancel(msg, hdr);
net/smc/af_smc.c
1238
if (!ini->first_contact_peer || aclc->hdr.version == SMC_V1)
net/smc/af_smc.c
1275
ini->first_contact_peer = aclc->hdr.typev2 & SMC_FIRST_CONTACT_MASK;
net/smc/af_smc.c
1306
(aclc->hdr.version > SMC_V1 ||
net/smc/af_smc.c
1355
if (aclc->hdr.version > SMC_V1) {
net/smc/af_smc.c
1363
aclc->hdr.version, eid, ini);
net/smc/af_smc.c
1421
ini->first_contact_peer = aclc->hdr.typev2 & SMC_FIRST_CONTACT_MASK;
net/smc/af_smc.c
1423
if (aclc->hdr.version == SMC_V2) {
net/smc/af_smc.c
1472
if (aclc->hdr.version > SMC_V1)
net/smc/af_smc.c
1476
aclc->hdr.version, eid, ini);
net/smc/af_smc.c
1499
if (aclc->hdr.version >= SMC_V2) {
net/smc/af_smc.c
1500
if ((aclc->hdr.typev1 == SMC_TYPE_R &&
net/smc/af_smc.c
1502
(aclc->hdr.typev1 == SMC_TYPE_D &&
net/smc/af_smc.c
1506
if ((aclc->hdr.typev1 == SMC_TYPE_R &&
net/smc/af_smc.c
1508
(aclc->hdr.typev1 == SMC_TYPE_D &&
net/smc/af_smc.c
1578
version = aclc->hdr.version == SMC_V1 ? SMC_V1 : SMC_V2;
net/smc/af_smc.c
1583
if (aclc->hdr.typev1 == SMC_TYPE_R) {
net/smc/af_smc.c
1586
} else if (aclc->hdr.typev1 == SMC_TYPE_D) {
net/smc/af_smc.c
2003
ini->smc_type_v1 = pclc->hdr.typev1;
net/smc/af_smc.c
2004
ini->smc_type_v2 = pclc->hdr.typev2;
net/smc/af_smc.c
2007
if (pclc->hdr.version > SMC_V1) {
net/smc/af_smc.c
2032
} else if (!pclc_v2_ext->hdr.eid_cnt &&
net/smc/af_smc.c
2033
!pclc_v2_ext->hdr.flag.seid) {
net/smc/af_smc.c
2039
if (!pclc_v2_ext->hdr.eid_cnt) {
net/smc/af_smc.c
2045
ini->release_nr = pclc_v2_ext->hdr.flag.release;
net/smc/af_smc.c
2046
if (pclc_v2_ext->hdr.flag.release > SMC_RELEASE)
net/smc/af_smc.c
2063
if (pclc->hdr.typev1 == SMC_TYPE_N)
net/smc/af_smc.c
2192
for (i = 0; i < smc_v2_ext->hdr.ism_gid_cnt; i++) {
net/smc/af_smc.c
2200
if ((i + 1) == smc_v2_ext->hdr.ism_gid_cnt ||
net/smc/af_smc.c
2402
if (!smcr_indicated(pclc->hdr.typev1) &&
net/smc/af_smc.c
2403
!smcr_indicated(pclc->hdr.typev2))
net/smc/af_smc.c
2496
if (pclc->hdr.version > SMC_V1)
net/smc/af_smc.c
704
if (clc->hdr.version == SMC_V1 ||
net/smc/af_smc.c
705
!(clc->hdr.typev2 & SMC_FIRST_CONTACT_MASK))
net/smc/af_smc.c
79
void *hdr;
net/smc/af_smc.c
84
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/smc/af_smc.c
87
if (!hdr)
net/smc/af_smc.c
94
genlmsg_end(skb, hdr);
net/smc/af_smc.c
99
genlmsg_cancel(skb, hdr);
net/smc/smc_clc.c
1019
(v2_ext->hdr.eid_cnt * SMC_MAX_EID_LEN);
net/smc/smc_clc.c
1025
vec[i++].iov_len = v2_ext->hdr.ism_gid_cnt *
net/smc/smc_clc.c
1037
} else if (len < ntohs(pclc_base->hdr.length)) {
net/smc/smc_clc.c
1061
memcpy(clc->hdr.eyecatcher, SMCD_EYECATCHER,
net/smc/smc_clc.c
1064
clc->hdr.typev1 = SMC_TYPE_D;
net/smc/smc_clc.c
1071
clc->hdr.length = htons(SMCD_CLC_ACCEPT_CONFIRM_LEN);
net/smc/smc_clc.c
1084
clc->hdr.length = htons(len);
net/smc/smc_clc.c
1104
memcpy(clc->hdr.eyecatcher, SMC_EYECATCHER,
net/smc/smc_clc.c
1106
clc->hdr.typev1 = SMC_TYPE_R;
net/smc/smc_clc.c
1117
switch (clc->hdr.type) {
net/smc/smc_clc.c
1132
clc->hdr.length = htons(SMCR_CLC_ACCEPT_CONFIRM_LEN);
net/smc/smc_clc.c
1142
if (clc->hdr.type == SMC_CLC_CONFIRM) {
net/smc/smc_clc.c
1149
clc->hdr.length = htons(len);
net/smc/smc_clc.c
1169
clc->hdr.version = version; /* SMC version */
net/smc/smc_clc.c
1171
clc->hdr.typev2 |= SMC_FIRST_CONTACT_MASK;
net/smc/smc_clc.c
1184
vec[i++].iov_len = (clc->hdr.typev1 == SMC_TYPE_D ?
net/smc/smc_clc.c
1189
vec[i++].iov_len = (clc->hdr.typev1 == SMC_TYPE_D ?
net/smc/smc_clc.c
1197
if (clc->hdr.type == SMC_CLC_CONFIRM) {
net/smc/smc_clc.c
1209
ntohs(clc->hdr.length));
net/smc/smc_clc.c
1222
cclc.hdr.type = SMC_CLC_CONFIRM;
net/smc/smc_clc.c
1225
if (len < ntohs(cclc.hdr.length)) {
net/smc/smc_clc.c
1245
aclc.hdr.type = SMC_CLC_ACCEPT;
net/smc/smc_clc.c
1248
if (len < ntohs(aclc.hdr.length))
net/smc/smc_clc.c
1321
if (cclc->hdr.version == SMC_V1 ||
net/smc/smc_clc.c
1322
!(cclc->hdr.typev2 & SMC_FIRST_CONTACT_MASK))
net/smc/smc_clc.c
190
void *hdr;
net/smc/smc_clc.c
192
hdr = genlmsg_put(skb, portid, seq, &smc_gen_nl_family,
net/smc/smc_clc.c
194
if (!hdr)
net/smc/smc_clc.c
199
genlmsg_cancel(skb, hdr);
net/smc/smc_clc.c
202
genlmsg_end(skb, hdr);
net/smc/smc_clc.c
243
void *hdr;
net/smc/smc_clc.c
249
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/smc/smc_clc.c
252
if (!hdr)
net/smc/smc_clc.c
268
genlmsg_end(skb, hdr);
net/smc/smc_clc.c
272
genlmsg_cancel(skb, hdr);
net/smc/smc_clc.c
327
smc_v2_ext->hdr.flag.seid &&
net/smc/smc_clc.c
334
for (i = 0; i < smc_v2_ext->hdr.eid_cnt; i++) {
net/smc/smc_clc.c
352
struct smc_clc_msg_hdr *hdr = &pclc->hdr;
net/smc/smc_clc.c
360
if (hdr->version == SMC_V1) {
net/smc/smc_clc.c
361
if (hdr->typev1 == SMC_TYPE_N)
net/smc/smc_clc.c
363
if (ntohs(hdr->length) !=
net/smc/smc_clc.c
372
if ((hdr->typev2 != SMC_TYPE_N &&
net/smc/smc_clc.c
373
(!v2_ext || v2_ext->hdr.eid_cnt > SMC_CLC_MAX_UEID)) ||
net/smc/smc_clc.c
374
(smcd_indicated(hdr->typev2) &&
net/smc/smc_clc.c
375
v2_ext->hdr.ism_gid_cnt > SMCD_CLC_MAX_V2_GID_ENTRIES))
net/smc/smc_clc.c
378
if (ntohs(hdr->length) !=
net/smc/smc_clc.c
381
(hdr->typev1 != SMC_TYPE_N ?
net/smc/smc_clc.c
385
(hdr->typev2 != SMC_TYPE_N ?
net/smc/smc_clc.c
387
v2_ext->hdr.eid_cnt * SMC_MAX_EID_LEN : 0) +
net/smc/smc_clc.c
388
(smcd_indicated(hdr->typev2) ?
net/smc/smc_clc.c
389
sizeof(*smcd_v2_ext) + v2_ext->hdr.ism_gid_cnt *
net/smc/smc_clc.c
402
struct smc_clc_msg_hdr *hdr = &clc->hdr;
net/smc/smc_clc.c
404
if (hdr->typev1 != SMC_TYPE_R && hdr->typev1 != SMC_TYPE_D)
net/smc/smc_clc.c
406
if (hdr->version == SMC_V1) {
net/smc/smc_clc.c
407
if ((hdr->typev1 == SMC_TYPE_R &&
net/smc/smc_clc.c
408
ntohs(hdr->length) != SMCR_CLC_ACCEPT_CONFIRM_LEN) ||
net/smc/smc_clc.c
409
(hdr->typev1 == SMC_TYPE_D &&
net/smc/smc_clc.c
410
ntohs(hdr->length) != SMCD_CLC_ACCEPT_CONFIRM_LEN))
net/smc/smc_clc.c
413
if (hdr->typev1 == SMC_TYPE_D &&
net/smc/smc_clc.c
414
ntohs(hdr->length) < SMCD_CLC_ACCEPT_CONFIRM_LEN_V2)
net/smc/smc_clc.c
416
if (hdr->typev1 == SMC_TYPE_R &&
net/smc/smc_clc.c
417
ntohs(hdr->length) < SMCR_CLC_ACCEPT_CONFIRM_LEN_V2)
net/smc/smc_clc.c
427
struct smc_clc_msg_hdr *hdr = &dclc->hdr;
net/smc/smc_clc.c
429
if (hdr->version == SMC_V1) {
net/smc/smc_clc.c
430
if (ntohs(hdr->length) != sizeof(struct smc_clc_msg_decline))
net/smc/smc_clc.c
433
if (ntohs(hdr->length) != sizeof(struct smc_clc_msg_decline_v2))
net/smc/smc_clc.c
485
((u8 *)pclc + ntohs(pclc->hdr.length) - sizeof(*trl));
net/smc/smc_clc.c
493
((u8 *)clc + ntohs(clc->hdr.length) - sizeof(*trl));
net/smc/smc_clc.c
791
if (((struct smc_clc_msg_decline *)buf)->hdr.typev2 &
net/smc/smc_clc.c
814
memcpy(dclc.hdr.eyecatcher, SMC_EYECATCHER, sizeof(SMC_EYECATCHER));
net/smc/smc_clc.c
815
dclc.hdr.type = SMC_CLC_DECLINE;
net/smc/smc_clc.c
816
dclc.hdr.version = version;
net/smc/smc_clc.c
818
dclc.hdr.typev2 = (peer_diag_info == SMC_CLC_DECL_SYNCERR) ?
net/smc/smc_clc.c
834
dclc.hdr.length = htons(send_len);
net/smc/smc_clc.c
879
pclc_base->hdr.version = SMC_V2;
net/smc/smc_clc.c
880
pclc_base->hdr.typev1 = ini->smc_type_v1;
net/smc/smc_clc.c
881
pclc_base->hdr.typev2 = ini->smc_type_v2;
net/smc/smc_clc.c
892
pclc_base->hdr.typev1 = SMC_TYPE_N;
net/smc/smc_clc.c
903
memcpy(pclc_base->hdr.eyecatcher, SMC_EYECATCHER,
net/smc/smc_clc.c
905
pclc_base->hdr.type = SMC_CLC_PROPOSAL;
net/smc/smc_clc.c
932
v2_ext->hdr.flag.release = SMC_RELEASE;
net/smc/smc_clc.c
944
v2_ext->hdr.eid_cnt = smc_clc_eid_table.ueid_cnt;
net/smc/smc_clc.c
958
v2_ext->hdr.flag.seid = smc_clc_eid_table.seid_enabled;
net/smc/smc_clc.c
959
v2_ext->hdr.smcd_v2_ext_offset = htons(sizeof(*v2_ext) -
net/smc/smc_clc.c
962
v2_ext->hdr.eid_cnt * SMC_MAX_EID_LEN);
net/smc/smc_clc.c
964
if (eid && v2_ext->hdr.flag.seid)
net/smc/smc_clc.c
989
v2_ext->hdr.ism_gid_cnt = entry;
net/smc/smc_clc.c
997
pclc_base->hdr.length = htons(plen);
net/smc/smc_clc.h
139
struct smc_clnt_opts_area_hdr hdr;
net/smc/smc_clc.h
178
struct smc_clc_msg_hdr hdr;
net/smc/smc_clc.h
282
struct smc_clc_msg_hdr hdr;
net/smc/smc_clc.h
303
struct smc_clc_msg_hdr hdr;
net/smc/smc_clc.h
320
struct smc_clc_msg_hdr hdr;
net/smc/smc_clc.h
372
if (smcd_indicated(prop->hdr.typev1) &&
net/smc/smc_clc.h
405
offsetof(struct smc_clc_v2_extension, hdr) -
net/smc/smc_clc.h
410
if (!ntohs(prop_v2ext->hdr.smcd_v2_ext_offset) ||
net/smc/smc_clc.h
411
ntohs(prop_v2ext->hdr.smcd_v2_ext_offset) > max_offset)
net/smc/smc_clc.h
416
offsetof(struct smc_clc_v2_extension, hdr) +
net/smc/smc_clc.h
418
sizeof(prop_v2ext->hdr.smcd_v2_ext_offset) +
net/smc/smc_clc.h
419
ntohs(prop_v2ext->hdr.smcd_v2_ext_offset));
net/smc/smc_clc.h
428
if (clc->hdr.version == SMC_V1 ||
net/smc/smc_clc.h
429
!(clc->hdr.typev2 & SMC_FIRST_CONTACT_MASK))
net/smc/smc_llc.c
1211
if (llc->raw.hdr.common.llc_type == SMC_LLC_ADD_LINK &&
net/smc/smc_llc.c
1378
qentry->msg.raw.hdr.common.llc_type != SMC_LLC_CONFIRM_LINK) {
net/smc/smc_llc.c
1399
qentry->msg.raw.hdr.flags |= SMC_LLC_FLAG_RESP;
net/smc/smc_llc.c
1400
smc_llc_init_msg_hdr(&qentry->msg.raw.hdr, qentry->link->lgr,
net/smc/smc_llc.c
1419
req_qentry->msg.raw.hdr.common.llc_type == SMC_LLC_REQ_ADD_LINK)
net/smc/smc_llc.c
1884
switch (llc->raw.hdr.common.llc_type) {
net/smc/smc_llc.c
192
struct smc_llc_hdr hdr;
net/smc/smc_llc.c
1974
(llc->raw.hdr.flags & SMC_LLC_FLAG_RESP)) {
net/smc/smc_llc.c
1986
smc_llc_protocol_violation(lgr, llc->raw.hdr.common.type);
net/smc/smc_llc.c
2028
u8 llc_type = qentry->msg.raw.hdr.common.llc_type;
net/smc/smc_llc.c
2055
qentry->msg.raw.hdr.common.type);
net/smc/smc_llc.c
2080
if ((llc->raw.hdr.flags & SMC_LLC_FLAG_RESP) &&
net/smc/smc_llc.c
2081
llc->raw.hdr.common.llc_type != SMC_LLC_REQ_ADD_LINK) {
net/smc/smc_llc.c
2101
if (!llc->raw.hdr.common.llc_version) {
net/smc/smc_llc.c
2102
if (llc->raw.hdr.length != sizeof(*llc))
net/smc/smc_llc.c
2105
if (llc->raw.hdr.length_v2 < sizeof(*llc))
net/smc/smc_llc.c
2232
if (!qentry || (qentry->msg.raw.hdr.flags & SMC_LLC_FLAG_RKEY_NEG))
net/smc/smc_llc.c
2259
if (!qentry || (qentry->msg.raw.hdr.flags & SMC_LLC_FLAG_RKEY_NEG))
net/smc/smc_llc.c
2290
if (!(qentry->msg.raw.hdr.flags & SMC_LLC_FLAG_NO_RMBE_EYEC))
net/smc/smc_llc.c
235
u8 msg_type = qentry->msg.raw.hdr.common.llc_type;
net/smc/smc_llc.c
248
qentry->msg.raw.hdr.common.type,
net/smc/smc_llc.c
266
switch (qentry->msg.raw.hdr.common.llc_type) {
net/smc/smc_llc.c
353
rcv_msg = flow->qentry->msg.raw.hdr.common.llc_type;
net/smc/smc_llc.c
367
flow->qentry->msg.raw.hdr.flags);
net/smc/smc_llc.c
434
static void smc_llc_init_msg_hdr(struct smc_llc_hdr *hdr,
net/smc/smc_llc.c
438
hdr->common.llc_version = SMC_V2;
net/smc/smc_llc.c
439
hdr->length_v2 = len;
net/smc/smc_llc.c
441
hdr->common.llc_version = 0;
net/smc/smc_llc.c
442
hdr->length = len;
net/smc/smc_llc.c
933
qentry->msg.raw.hdr.flags |= SMC_LLC_FLAG_RESP;
net/smc/smc_llc.c
934
qentry->msg.raw.hdr.flags |= SMC_LLC_FLAG_ADD_LNK_REJ;
net/smc/smc_llc.c
935
qentry->msg.raw.hdr.add_link_rej_rsn = SMC_LLC_REJ_RSN_NO_ALT_PATH;
net/smc/smc_llc.c
936
smc_llc_init_msg_hdr(&qentry->msg.raw.hdr, qentry->link->lgr,
net/smc/smc_llc.c
958
if (qentry->msg.raw.hdr.common.llc_type != SMC_LLC_CONFIRM_LINK) {
net/smc/smc_llc.c
960
qentry->msg.raw.hdr.flags |= SMC_LLC_FLAG_RESP;
net/smc/smc_pnet.c
587
void *hdr;
net/smc/smc_pnet.c
589
hdr = genlmsg_put(skb, portid, seq, &smc_pnet_nl_family,
net/smc/smc_pnet.c
591
if (!hdr)
net/smc/smc_pnet.c
594
genlmsg_cancel(skb, hdr);
net/smc/smc_pnet.c
597
genlmsg_end(skb, hdr);
net/smc/smc_pnet.c
650
void *hdr;
net/smc/smc_pnet.c
663
hdr = nlmsg_put(msg, info->snd_portid, info->snd_seq, NLMSG_DONE, 0,
net/smc/smc_pnet.c
665
if (!hdr) {
net/smc/smc_stats.h
243
bool is_v2 = (acl->hdr.version == SMC_V2); \
net/smc/smc_stats.h
244
bool is_smcd = (acl->hdr.typev1 == SMC_TYPE_D); \
net/sunrpc/svcsock.c
607
struct cmsghdr hdr;
net/sunrpc/svcsock.c
610
struct cmsghdr *cmh = &buffer.hdr;
net/sunrpc/svcsock.c
730
struct cmsghdr hdr;
net/sunrpc/svcsock.c
733
struct cmsghdr *cmh = &buffer.hdr;
net/tipc/bcast.c
321
struct tipc_msg *hdr, *_hdr;
net/tipc/bcast.c
331
hdr = buf_msg(skb);
net/tipc/bcast.c
332
if (msg_user(hdr) == MSG_FRAGMENTER)
net/tipc/bcast.c
333
hdr = msg_inner_hdr(hdr);
net/tipc/bcast.c
334
if (msg_type(hdr) != TIPC_MCAST_MSG)
net/tipc/bcast.c
343
msg_set_syn(hdr, 1);
net/tipc/bcast.c
346
skb_copy_to_linear_data(_skb, hdr, MCAST_H_SIZE);
net/tipc/bcast.c
352
msg_set_is_rcast(_hdr, !msg_is_rcast(hdr));
net/tipc/bcast.c
384
struct tipc_msg *hdr;
net/tipc/bcast.c
401
hdr = buf_msg(skb);
net/tipc/bcast.c
402
if (msg_user(hdr) == MSG_FRAGMENTER)
net/tipc/bcast.c
403
hdr = msg_inner_hdr(hdr);
net/tipc/bcast.c
404
msg_set_is_rcast(hdr, method->rcast);
net/tipc/bcast.c
438
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/bcast.c
445
if (msg_mc_netid(hdr) != tipc_netid(net) || !tipc_link_is_up(l)) {
net/tipc/bcast.c
451
if (msg_user(hdr) == BCAST_PROTOCOL)
net/tipc/bcast.c
471
struct tipc_msg *hdr)
net/tipc/bcast.c
474
u16 acked = msg_bcast_ack(hdr);
net/tipc/bcast.c
478
if (msg_bc_ack_invalid(hdr))
net/tipc/bcast.c
499
struct tipc_msg *hdr,
net/tipc/bcast.c
510
if (msg_type(hdr) != STATE_MSG) {
net/tipc/bcast.c
511
tipc_link_bc_init_rcv(l, hdr);
net/tipc/bcast.c
512
} else if (!msg_bc_ack_invalid(hdr)) {
net/tipc/bcast.c
513
tipc_get_gap_ack_blks(&ga, l, hdr, false);
net/tipc/bcast.c
516
rc = tipc_link_bc_ack_rcv(l, msg_bcast_ack(hdr),
net/tipc/bcast.c
517
msg_bc_gap(hdr), ga, &xmitq,
net/tipc/bcast.c
519
rc |= tipc_link_bc_sync_rcv(l, hdr, &xmitq);
net/tipc/bcast.c
788
struct tipc_msg *hdr, *_hdr;
net/tipc/bcast.c
796
hdr = buf_msg(skb);
net/tipc/bcast.c
798
if (likely(!msg_is_syn(hdr) && skb_queue_empty(defq)))
net/tipc/bcast.c
801
node = msg_orignode(hdr);
net/tipc/bcast.c
805
port = msg_origport(hdr);
net/tipc/bcast.c
819
if (!msg_is_syn(hdr))
net/tipc/bcast.c
827
if (!msg_is_syn(hdr)) {
net/tipc/bcast.c
828
if (msg_is_rcast(hdr) != msg_is_rcast(_hdr))
net/tipc/bcast.c
836
if (msg_is_rcast(hdr) == msg_is_rcast(_hdr)) {
net/tipc/bcast.c
844
if (msg_data_sz(hdr)) {
net/tipc/bcast.h
97
struct tipc_msg *hdr);
net/tipc/bcast.h
99
struct tipc_msg *hdr,
net/tipc/bearer.c
1188
void *hdr;
net/tipc/bearer.c
1192
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
net/tipc/bearer.c
1194
if (!hdr)
net/tipc/bearer.c
1219
genlmsg_end(msg->skb, hdr);
net/tipc/bearer.c
1228
genlmsg_cancel(msg->skb, hdr);
net/tipc/bearer.c
565
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/bearer.c
570
if (likely(b && (test_bit(0, &b->up) || msg_is_reset(hdr)))) {
net/tipc/bearer.c
624
struct tipc_msg *hdr;
net/tipc/bearer.c
631
hdr = buf_msg(skb);
net/tipc/bearer.c
632
msg_set_non_seq(hdr, 1);
net/tipc/bearer.c
633
msg_set_mc_netid(hdr, net_id);
net/tipc/bearer.c
826
void *hdr;
net/tipc/bearer.c
830
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
net/tipc/bearer.c
832
if (!hdr)
net/tipc/bearer.c
865
genlmsg_end(msg->skb, hdr);
net/tipc/bearer.c
874
genlmsg_cancel(msg->skb, hdr);
net/tipc/crypto.c
1043
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/crypto.c
1045
u32 user = msg_user(hdr);
net/tipc/crypto.c
1088
if (user == LINK_PROTOCOL && msg_type(hdr) == STATE_MSG) {
net/tipc/crypto.c
1090
ehdr->keepalive = msg_is_keepalive(hdr);
net/tipc/crypto.c
1092
ehdr->addr = hdr->hdr[3];
net/tipc/crypto.c
1394
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/crypto.c
1407
if (!ehdr->destined || msg_short(hdr) || msg_destnode(hdr) != self)
net/tipc/crypto.c
1696
struct tipc_msg *hdr = buf_msg(*skb);
net/tipc/crypto.c
1699
u32 user = msg_user(hdr);
net/tipc/crypto.c
1700
u32 type = msg_type(hdr);
net/tipc/crypto.c
2167
struct tipc_msg *hdr;
net/tipc/crypto.c
2172
hdr = buf_msg(skb);
net/tipc/crypto.c
2173
rx = tipc_node_crypto_rx_by_addr(net, msg_prevnode(hdr));
net/tipc/crypto.c
2177
switch (msg_type(hdr)) {
net/tipc/crypto.c
2179
if (tipc_crypto_key_rcv(rx, hdr))
net/tipc/crypto.c
2242
struct tipc_msg *hdr;
net/tipc/crypto.c
2253
hdr = buf_msg(skb);
net/tipc/crypto.c
2254
tipc_msg_init(tipc_own_addr(net), hdr, MSG_CRYPTO, KEY_DISTR_MSG,
net/tipc/crypto.c
2256
msg_set_size(hdr, INT_H_SIZE + size);
net/tipc/crypto.c
2257
msg_set_key_gen(hdr, gen);
net/tipc/crypto.c
2258
msg_set_key_mode(hdr, mode);
net/tipc/crypto.c
2260
data = msg_data(hdr);
net/tipc/crypto.c
2287
static bool tipc_crypto_key_rcv(struct tipc_crypto *rx, struct tipc_msg *hdr)
net/tipc/crypto.c
2291
u16 key_gen = msg_key_gen(hdr);
net/tipc/crypto.c
2292
u32 size = msg_data_sz(hdr);
net/tipc/crypto.c
2293
u8 *data = msg_data(hdr);
net/tipc/crypto.c
2332
rx->skey_mode = msg_key_mode(hdr);
net/tipc/crypto.c
305
static bool tipc_crypto_key_rcv(struct tipc_crypto *rx, struct tipc_msg *hdr);
net/tipc/discover.c
107
struct tipc_msg *hdr;
net/tipc/discover.c
113
hdr = buf_msg(skb);
net/tipc/discover.c
115
msg_set_sugg_node_addr(hdr, sugg_addr);
net/tipc/discover.c
116
msg_set_dest_domain(hdr, dst);
net/tipc/discover.c
197
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/discover.c
198
u32 pnet_hash = msg_peer_net_hash(hdr);
net/tipc/discover.c
199
u16 caps = msg_node_capabilities(hdr);
net/tipc/discover.c
201
u32 sugg = msg_sugg_node_addr(hdr);
net/tipc/discover.c
202
u32 signature = msg_node_sig(hdr);
net/tipc/discover.c
204
u32 dst = msg_dest_domain(hdr);
net/tipc/discover.c
205
u32 net_id = msg_bc_netid(hdr);
net/tipc/discover.c
207
u32 src = msg_prevnode(hdr);
net/tipc/discover.c
208
u32 mtyp = msg_type(hdr);
net/tipc/discover.c
218
hdr = buf_msg(skb);
net/tipc/discover.c
221
memcpy(peer_id, msg_node_id(hdr), NODE_ID_LEN);
net/tipc/discover.c
225
err = b->media->msg2addr(b, &maddr, msg_media_addr(hdr));
net/tipc/discover.c
86
struct tipc_msg *hdr;
net/tipc/discover.c
88
hdr = buf_msg(skb);
net/tipc/discover.c
89
tipc_msg_init(tn->trial_addr, hdr, LINK_CONFIG, mtyp,
net/tipc/discover.c
91
msg_set_size(hdr, MAX_H_SIZE + NODE_ID_LEN);
net/tipc/discover.c
92
msg_set_non_seq(hdr, 1);
net/tipc/discover.c
93
msg_set_node_sig(hdr, tn->random);
net/tipc/discover.c
94
msg_set_node_capabilities(hdr, TIPC_NODE_CAPABILITIES);
net/tipc/discover.c
95
msg_set_dest_domain(hdr, dest_domain);
net/tipc/discover.c
96
msg_set_bc_netid(hdr, tn->net_id);
net/tipc/discover.c
97
b->media->addr2msg(msg_media_addr(hdr), &b->addr);
net/tipc/discover.c
98
msg_set_peer_net_hash(hdr, tipc_net_hash_mixes(net, tn->random));
net/tipc/discover.c
99
msg_set_node_id(hdr, tipc_own_id(net));
net/tipc/group.c
474
struct tipc_msg *_hdr, *hdr = buf_msg(skb);
net/tipc/group.c
475
u16 bc_seqno = msg_grp_bc_seqno(hdr);
net/tipc/group.c
477
int mtyp = msg_type(hdr);
net/tipc/group.c
503
struct tipc_msg *hdr;
net/tipc/group.c
510
hdr = buf_msg(skb);
net/tipc/group.c
511
node = msg_orignode(hdr);
net/tipc/group.c
512
port = msg_origport(hdr);
net/tipc/group.c
514
if (!msg_in_group(hdr))
net/tipc/group.c
521
if (less(msg_grp_bc_seqno(hdr), m->bc_rcv_nxt))
net/tipc/group.c
529
hdr = buf_msg(skb);
net/tipc/group.c
530
mtyp = msg_type(hdr);
net/tipc/group.c
531
blks = msg_blocks(hdr);
net/tipc/group.c
536
if (more(msg_grp_bc_seqno(hdr), m->bc_rcv_nxt))
net/tipc/group.c
542
if (msg_nameinst(hdr) != grp->instance) {
net/tipc/group.c
549
ack = msg_grp_bc_ack_req(hdr);
net/tipc/group.c
675
struct tipc_msg *hdr;
net/tipc/group.c
693
hdr = buf_msg(skb);
net/tipc/group.c
694
msg_set_nametype(hdr, grp->type);
net/tipc/group.c
695
msg_set_grp_evt(hdr, event);
net/tipc/group.c
696
msg_set_dest_droppable(hdr, true);
net/tipc/group.c
697
msg_set_grp_bc_seqno(hdr, seqno);
net/tipc/group.c
698
memcpy(msg_data(hdr), &evt, sizeof(evt));
net/tipc/group.c
706
struct tipc_msg *hdr;
net/tipc/group.c
721
hdr = buf_msg(skb);
net/tipc/group.c
724
msg_set_grp_bc_syncpt(hdr, grp->bc_snd_nxt);
net/tipc/group.c
725
msg_set_adv_win(hdr, adv);
net/tipc/group.c
728
msg_set_grp_bc_syncpt(hdr, grp->bc_snd_nxt);
net/tipc/group.c
730
msg_set_adv_win(hdr, adv);
net/tipc/group.c
733
msg_set_grp_bc_acked(hdr, m->bc_rcv_nxt);
net/tipc/group.c
735
msg_set_grp_remitted(hdr, m->window);
net/tipc/group.c
737
msg_set_dest_droppable(hdr, true);
net/tipc/group.c
742
struct tipc_msg *hdr, struct sk_buff_head *inputq,
net/tipc/group.c
745
u32 node = msg_orignode(hdr);
net/tipc/group.c
746
u32 port = msg_origport(hdr);
net/tipc/group.c
758
switch (msg_type(hdr)) {
net/tipc/group.c
765
m->bc_syncpt = msg_grp_bc_syncpt(hdr);
net/tipc/group.c
767
m->window += msg_adv_win(hdr);
net/tipc/group.c
784
m->bc_syncpt = msg_grp_bc_syncpt(hdr);
net/tipc/group.c
795
m->window += msg_adv_win(hdr);
net/tipc/group.c
801
m->bc_acked = msg_grp_bc_acked(hdr);
net/tipc/group.c
820
remitted = msg_grp_remitted(hdr);
net/tipc/group.c
858
struct tipc_msg *hdr,
net/tipc/group.c
862
struct tipc_event *evt = (void *)msg_data(hdr);
net/tipc/group.h
61
int *sk_rcvbuf, struct tipc_msg *hdr,
net/tipc/group.h
65
struct tipc_msg *hdr,
net/tipc/link.c
1024
struct tipc_msg *hdr;
net/tipc/link.c
1032
hdr = buf_msg(skb_peek(list));
net/tipc/link.c
1033
if (unlikely(msg_size(hdr) > mtu)) {
net/tipc/link.c
1035
skb_queue_len(list), msg_user(hdr),
net/tipc/link.c
1036
msg_type(hdr), msg_size(hdr), mtu);
net/tipc/link.c
1041
imp = msg_importance(hdr);
net/tipc/link.c
1049
rc = link_schedule_user(l, hdr);
net/tipc/link.c
1060
hdr = buf_msg(skb);
net/tipc/link.c
1061
msg_set_seqno(hdr, seqno);
net/tipc/link.c
1062
msg_set_ack(hdr, ack);
net/tipc/link.c
1063
msg_set_bcast_ack(hdr, bc_ack);
net/tipc/link.c
1154
struct tipc_msg *hdr;
net/tipc/link.c
1166
hdr = buf_msg(skb);
net/tipc/link.c
1167
imp = msg_importance(hdr);
net/tipc/link.c
1176
msg_set_seqno(hdr, seqno);
net/tipc/link.c
1177
msg_set_ack(hdr, ack);
net/tipc/link.c
1178
msg_set_bcast_ack(hdr, bc_ack);
net/tipc/link.c
1199
struct tipc_msg *hdr;
net/tipc/link.c
1211
hdr = buf_msg(skb);
net/tipc/link.c
1212
if (link_is_bc_sndlink(l) && !less(r->acked, msg_seqno(hdr)))
net/tipc/link.c
1218
msg_user(hdr), msg_type(hdr), msg_size(hdr), msg_errcode(hdr));
net/tipc/link.c
1220
msg_seqno(hdr), msg_prevnode(hdr), msg_destnode(hdr));
net/tipc/link.c
1248
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/link.c
1250
switch (msg_user(hdr)) {
net/tipc/link.c
1255
if (unlikely(msg_in_group(hdr) || msg_mcast(hdr))) {
net/tipc/link.c
1299
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/link.c
1302
int usr = msg_user(hdr);
net/tipc/link.c
1308
l->stats.recv_bundled += msg_msgcnt(hdr);
net/tipc/link.c
1325
tipc_link_bc_init_rcv(l->bc_rcvlink, hdr);
net/tipc/link.c
1346
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/link.c
1352
if (msg_type(hdr) == SYNCH_MSG) {
net/tipc/link.c
1358
if (likely(!msg_nof_fragms(hdr))) {
net/tipc/link.c
1367
if (msg_fragm_no(hdr) == 1)
net/tipc/link.c
1368
msg_set_type(hdr, FIRST_FRAGMENT);
net/tipc/link.c
1369
else if (msg_fragm_no(hdr) < msg_nof_fragms(hdr))
net/tipc/link.c
1370
msg_set_type(hdr, FRAGMENT);
net/tipc/link.c
1372
msg_set_type(hdr, LAST_FRAGMENT);
net/tipc/link.c
1415
struct tipc_msg *hdr, bool uc)
net/tipc/link.c
1422
p = (struct tipc_gap_ack_blks *)msg_data(hdr);
net/tipc/link.c
1492
static u16 tipc_build_gap_ack_blks(struct tipc_link *l, struct tipc_msg *hdr)
net/tipc/link.c
1498
ga = (struct tipc_gap_ack_blks *)msg_data(hdr);
net/tipc/link.c
1502
msg_set_bcast_ack(hdr, bcl->rcv_nxt - 1);
net/tipc/link.c
1503
msg_set_bc_gap(hdr, link_bc_rcv_gap(bcl));
net/tipc/link.c
1508
ga->ugack_cnt = (msg_seq_gap(hdr)) ?
net/tipc/link.c
1541
struct tipc_msg *hdr;
net/tipc/link.c
1628
hdr = buf_msg(_skb);
net/tipc/link.c
1629
msg_set_ack(hdr, ack);
net/tipc/link.c
1630
msg_set_bcast_ack(hdr, bc_ack);
net/tipc/link.c
1766
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/link.c
1772
if (unlikely(msg_user(hdr) == LINK_PROTOCOL))
net/tipc/link.c
1779
hdr = buf_msg(skb);
net/tipc/link.c
1780
seqno = msg_seqno(hdr);
net/tipc/link.c
1797
released += tipc_link_advance_transmq(l, l, msg_ack(hdr), 0,
net/tipc/link.c
1812
if (unlikely(msg_user(hdr) == TUNNEL_PROTOCOL))
net/tipc/link.c
1840
struct tipc_msg *hdr;
net/tipc/link.c
1863
hdr = buf_msg(skb);
net/tipc/link.c
1864
data = msg_data(hdr);
net/tipc/link.c
1865
msg_set_session(hdr, l->session);
net/tipc/link.c
1866
msg_set_bearer_id(hdr, l->bearer_id);
net/tipc/link.c
1867
msg_set_net_plane(hdr, l->net_plane);
net/tipc/link.c
1868
msg_set_next_sent(hdr, l->snd_nxt);
net/tipc/link.c
1869
msg_set_ack(hdr, l->rcv_nxt - 1);
net/tipc/link.c
1870
msg_set_bcast_ack(hdr, bcl->rcv_nxt - 1);
net/tipc/link.c
1871
msg_set_bc_ack_invalid(hdr, !node_up);
net/tipc/link.c
1872
msg_set_last_bcast(hdr, l->bc_sndlink->snd_nxt - 1);
net/tipc/link.c
1873
msg_set_link_tolerance(hdr, tolerance);
net/tipc/link.c
1874
msg_set_linkprio(hdr, priority);
net/tipc/link.c
1875
msg_set_redundant_link(hdr, node_up);
net/tipc/link.c
1876
msg_set_seq_gap(hdr, 0);
net/tipc/link.c
1877
msg_set_seqno(hdr, l->snd_nxt + U16_MAX / 2);
net/tipc/link.c
1881
msg_set_seqno(hdr, l->snd_nxt_state++);
net/tipc/link.c
1882
msg_set_seq_gap(hdr, rcvgap);
net/tipc/link.c
1884
msg_set_bc_gap(hdr, bc_rcvgap);
net/tipc/link.c
1885
msg_set_probe(hdr, probe);
net/tipc/link.c
1886
msg_set_is_keepalive(hdr, probe || probe_reply);
net/tipc/link.c
1888
glen = tipc_build_gap_ack_blks(l, hdr);
net/tipc/link.c
1890
msg_set_size(hdr, INT_H_SIZE + glen + dlen);
net/tipc/link.c
1897
msg_set_dest_session_valid(hdr, 1);
net/tipc/link.c
1898
msg_set_dest_session(hdr, l->peer_session);
net/tipc/link.c
1900
msg_set_max_pkt(hdr, l->advertised_mtu);
net/tipc/link.c
1902
msg_set_size(hdr, INT_H_SIZE + TIPC_MAX_IF_NAME);
net/tipc/link.c
1920
struct tipc_msg *hdr, *ihdr;
net/tipc/link.c
1934
hdr = buf_msg(skb);
net/tipc/link.c
1935
msg_set_msgcnt(hdr, 1);
net/tipc/link.c
1936
msg_set_bearer_id(hdr, l->peer_bearer_id);
net/tipc/link.c
1938
ihdr = (struct tipc_msg *)msg_data(hdr);
net/tipc/link.c
1953
struct tipc_msg *hdr, tnlhdr;
net/tipc/link.c
1981
hdr = buf_msg(tnlskb);
net/tipc/link.c
1983
msg_set_syncpt(hdr, syncpt);
net/tipc/link.c
1984
msg_set_bearer_id(hdr, l->peer_bearer_id);
net/tipc/link.c
2017
hdr = buf_msg(skb);
net/tipc/link.c
2019
msg_set_seqno(hdr, seqno++);
net/tipc/link.c
2020
pktlen = msg_size(hdr);
net/tipc/link.c
2049
link_co_err, msg_user(hdr),
net/tipc/link.c
2050
msg_type(hdr), msg_size(hdr));
net/tipc/link.c
2061
skb_copy_to_linear_data_offset(tnlskb, INT_H_SIZE, hdr, pktlen);
net/tipc/link.c
2071
hdr = buf_msg(skb);
net/tipc/link.c
2072
msg_set_msgcnt(hdr, pktcnt);
net/tipc/link.c
2131
bool tipc_link_validate_msg(struct tipc_link *l, struct tipc_msg *hdr)
net/tipc/link.c
2134
u16 session = msg_session(hdr);
net/tipc/link.c
2135
int mtyp = msg_type(hdr);
net/tipc/link.c
2137
if (msg_user(hdr) != LINK_PROTOCOL)
net/tipc/link.c
2158
if (!tipc_link_is_up(l) && msg_ack(hdr))
net/tipc/link.c
2163
return !less(msg_seqno(hdr), l->rcv_nxt_state);
net/tipc/link.c
2177
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/link.c
2179
bool reply = msg_probe(hdr), retransmitted = false;
net/tipc/link.c
2180
u32 dlen = msg_data_sz(hdr), glen = 0, msg_max;
net/tipc/link.c
2181
u16 peers_snd_nxt = msg_next_sent(hdr);
net/tipc/link.c
2182
u16 peers_tol = msg_link_tolerance(hdr);
net/tipc/link.c
2183
u16 peers_prio = msg_linkprio(hdr);
net/tipc/link.c
2184
u16 gap = msg_seq_gap(hdr);
net/tipc/link.c
2185
u16 ack = msg_ack(hdr);
net/tipc/link.c
2188
int mtyp = msg_type(hdr);
net/tipc/link.c
2201
if (tipc_own_addr(l->net) > msg_prevnode(hdr))
net/tipc/link.c
2202
l->net_plane = msg_net_plane(hdr);
net/tipc/link.c
2207
hdr = buf_msg(skb);
net/tipc/link.c
2208
data = msg_data(hdr);
net/tipc/link.c
2210
if (!tipc_link_validate_msg(l, hdr)) {
net/tipc/link.c
2219
msg_max = msg_max_pkt(hdr);
net/tipc/link.c
2226
if (msg_data_sz(hdr) < TIPC_MAX_IF_NAME)
net/tipc/link.c
2240
if (msg_peer_stopping(hdr)) {
net/tipc/link.c
2248
if (mtyp == ACTIVATE_MSG && msg_dest_session_valid(hdr) &&
net/tipc/link.c
2249
l->session != msg_dest_session(hdr)) {
net/tipc/link.c
2250
if (less(l->session, msg_dest_session(hdr)))
net/tipc/link.c
2251
l->session = msg_dest_session(hdr) + 1;
net/tipc/link.c
2263
l->peer_session = msg_session(hdr);
net/tipc/link.c
2265
l->peer_bearer_id = msg_bearer_id(hdr);
net/tipc/link.c
2272
glen = tipc_get_gap_ack_blks(&ga, l, hdr, true);
net/tipc/link.c
2276
l->rcv_nxt_state = msg_seqno(hdr) + 1;
net/tipc/link.c
2292
if (msg_probe(hdr))
net/tipc/link.c
2305
if ((reply || msg_is_keepalive(hdr)) &&
net/tipc/link.c
2337
struct tipc_msg *hdr;
net/tipc/link.c
2346
hdr = buf_msg(skb);
net/tipc/link.c
2347
msg_set_last_bcast(hdr, l->bc_sndlink->snd_nxt - 1);
net/tipc/link.c
2348
msg_set_bcast_ack(hdr, ack);
net/tipc/link.c
2349
msg_set_bcgap_after(hdr, ack);
net/tipc/link.c
2352
msg_set_bcgap_to(hdr, gap_to);
net/tipc/link.c
2353
msg_set_non_seq(hdr, bcast);
net/tipc/link.c
2377
void tipc_link_bc_init_rcv(struct tipc_link *l, struct tipc_msg *hdr)
net/tipc/link.c
2379
int mtyp = msg_type(hdr);
net/tipc/link.c
2380
u16 peers_snd_nxt = msg_bc_snd_nxt(hdr);
net/tipc/link.c
2385
if (msg_user(hdr) == BCAST_PROTOCOL) {
net/tipc/link.c
2394
if (msg_peer_node_is_up(hdr))
net/tipc/link.c
2404
int tipc_link_bc_sync_rcv(struct tipc_link *l, struct tipc_msg *hdr,
net/tipc/link.c
2407
u16 peers_snd_nxt = msg_bc_snd_nxt(hdr);
net/tipc/link.c
2413
if (!msg_peer_node_is_up(hdr))
net/tipc/link.c
2417
if (msg_ack(hdr))
net/tipc/link.c
2498
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/link.c
2499
u32 dnode = msg_destnode(hdr);
net/tipc/link.c
2500
int mtyp = msg_type(hdr);
net/tipc/link.c
2501
u16 acked = msg_bcast_ack(hdr);
net/tipc/link.c
2503
u16 to = msg_bcgap_to(hdr);
net/tipc/link.c
257
static u16 tipc_build_gap_ack_blks(struct tipc_link *l, struct tipc_msg *hdr);
net/tipc/link.c
2675
void *hdr;
net/tipc/link.c
2678
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
net/tipc/link.c
2680
if (!hdr)
net/tipc/link.c
2724
genlmsg_end(msg->skb, hdr);
net/tipc/link.c
2733
genlmsg_cancel(msg->skb, hdr);
net/tipc/link.c
2793
void *hdr;
net/tipc/link.c
2804
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
net/tipc/link.c
2806
if (!hdr) {
net/tipc/link.c
2847
genlmsg_end(msg->skb, hdr);
net/tipc/link.c
2857
genlmsg_cancel(msg->skb, hdr);
net/tipc/link.c
881
static int link_schedule_user(struct tipc_link *l, struct tipc_msg *hdr)
net/tipc/link.c
884
u32 dport = msg_origport(hdr);
net/tipc/link.c
893
TIPC_SKB_CB(skb)->chain_imp = msg_importance(hdr);
net/tipc/link.h
120
bool tipc_link_validate_msg(struct tipc_link *l, struct tipc_msg *hdr);
net/tipc/link.h
146
struct tipc_msg *hdr, bool uc);
net/tipc/link.h
151
void tipc_link_bc_init_rcv(struct tipc_link *l, struct tipc_msg *hdr);
net/tipc/link.h
152
int tipc_link_bc_sync_rcv(struct tipc_link *l, struct tipc_msg *hdr,
net/tipc/monitor.c
749
void *hdr;
net/tipc/monitor.c
751
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
net/tipc/monitor.c
753
if (!hdr)
net/tipc/monitor.c
787
genlmsg_end(msg->skb, hdr);
net/tipc/monitor.c
793
genlmsg_cancel(msg->skb, hdr);
net/tipc/monitor.c
833
void *hdr;
net/tipc/monitor.c
840
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
net/tipc/monitor.c
842
if (!hdr)
net/tipc/monitor.c
864
genlmsg_end(msg->skb, hdr);
net/tipc/monitor.c
872
genlmsg_cancel(msg->skb, hdr);
net/tipc/msg.c
211
struct tipc_msg *hdr;
net/tipc/msg.c
224
hdr = buf_msg(skb);
net/tipc/msg.c
226
msg_set_hdr_sz(hdr, MIN_H_SIZE);
net/tipc/msg.c
227
msg_set_size(hdr, MIN_H_SIZE);
net/tipc/msg.c
231
hdr = buf_msg(skb);
net/tipc/msg.c
232
curr = msg_blocks(hdr);
net/tipc/msg.c
233
mlen = msg_size(hdr);
net/tipc/msg.c
237
msg_set_size(hdr, mlen + cpy);
net/tipc/msg.c
240
total += msg_blocks(hdr) - curr;
net/tipc/msg.c
259
struct tipc_msg *hdr;
net/tipc/msg.c
283
hdr = buf_msg(skb);
net/tipc/msg.c
284
if (unlikely(msg_version(hdr) != TIPC_VERSION))
net/tipc/msg.c
287
msz = msg_size(hdr);
net/tipc/msg.c
310
int tipc_msg_fragment(struct sk_buff *skb, const struct tipc_msg *hdr,
net/tipc/msg.c
341
skb_copy_to_linear_data(_skb, hdr, INT_H_SIZE);
net/tipc/msg.c
583
struct tipc_msg *hdr, *ihdr;
net/tipc/msg.c
590
hdr = buf_msg(skb);
net/tipc/msg.c
591
if (unlikely(*pos > (msg_data_sz(hdr) - MIN_H_SIZE)))
net/tipc/msg.c
594
ihdr = (struct tipc_msg *)(msg_data(hdr) + *pos);
net/tipc/msg.c
597
if ((*pos + imsz) > msg_data_sz(hdr))
net/tipc/msg.c
628
struct tipc_msg *_hdr, *hdr;
net/tipc/msg.c
658
hdr = buf_msg(*skb);
net/tipc/msg.c
659
msg_set_hdr_sz(hdr, hlen);
net/tipc/msg.c
660
msg_set_errcode(hdr, err);
net/tipc/msg.c
661
msg_set_non_seq(hdr, 0);
net/tipc/msg.c
662
msg_set_origport(hdr, msg_destport(_hdr));
net/tipc/msg.c
663
msg_set_destport(hdr, msg_origport(_hdr));
net/tipc/msg.c
664
msg_set_destnode(hdr, msg_prevnode(_hdr));
net/tipc/msg.c
665
msg_set_prevnode(hdr, own_node);
net/tipc/msg.c
666
msg_set_orignode(hdr, own_node);
net/tipc/msg.c
667
msg_set_size(hdr, hlen + dlen);
net/tipc/msg.h
1116
static inline bool msg_is_reset(struct tipc_msg *hdr)
net/tipc/msg.h
1118
return (msg_user(hdr) == LINK_PROTOCOL) && (msg_type(hdr) == RESET_MSG);
net/tipc/msg.h
1145
static inline void msg_set_node_id(struct tipc_msg *hdr, u8 *id)
net/tipc/msg.h
1147
memcpy(msg_data(hdr), id, 16);
net/tipc/msg.h
1150
static inline u8 *msg_node_id(struct tipc_msg *hdr)
net/tipc/msg.h
1152
return (u8 *)msg_data(hdr);
net/tipc/msg.h
1169
int tipc_msg_fragment(struct sk_buff *skb, const struct tipc_msg *hdr,
net/tipc/msg.h
1173
int tipc_msg_append(struct tipc_msg *hdr, struct msghdr *m, int dlen,
net/tipc/msg.h
149
__be32 hdr[15];
net/tipc/msg.h
207
return ntohl(m->hdr[pos]);
net/tipc/msg.h
212
m->hdr[w] = htonl(val);
net/tipc/msg.h
225
m->hdr[w] &= ~htonl(mask);
net/tipc/msg.h
226
m->hdr[w] |= htonl(val);
net/tipc/msg.h
364
m->hdr[0] = htonl((msg_word(m, 0) & ~0x1ffff) | sz);
net/tipc/msg.h
962
return (char *)&m->hdr[TIPC_MEDIA_INFO_OFFSET];
net/tipc/name_distr.c
159
struct tipc_msg *hdr;
net/tipc/name_distr.c
170
hdr = buf_msg(skb);
net/tipc/name_distr.c
171
msg_set_bc_ack_invalid(hdr, true);
net/tipc/name_distr.c
172
msg_set_bulk(hdr);
net/tipc/name_distr.c
173
msg_set_non_legacy(hdr);
net/tipc/name_distr.c
174
item = (struct distr_item *)msg_data(hdr);
net/tipc/name_distr.c
190
hdr = buf_msg(skb);
net/tipc/name_distr.c
191
msg_set_size(hdr, INT_H_SIZE + (msg_dsz - msg_rem));
net/tipc/name_distr.c
195
hdr = buf_msg(skb_peek_tail(list));
net/tipc/name_distr.c
196
msg_set_last_bulk(hdr);
net/tipc/name_distr.c
197
msg_set_named_seqno(hdr, seqno);
net/tipc/name_distr.c
317
struct tipc_msg *hdr;
net/tipc/name_distr.c
327
hdr = buf_msg(skb);
net/tipc/name_distr.c
328
seqno = msg_named_seqno(hdr);
net/tipc/name_distr.c
329
if (msg_is_last_bulk(hdr)) {
net/tipc/name_distr.c
334
if (msg_is_bulk(hdr) || msg_is_legacy(hdr)) {
net/tipc/name_distr.c
369
struct tipc_msg *hdr;
net/tipc/name_distr.c
375
hdr = buf_msg(skb);
net/tipc/name_distr.c
376
node = msg_orignode(hdr);
net/tipc/name_distr.c
377
item = (struct distr_item *)msg_data(hdr);
net/tipc/name_distr.c
378
count = msg_data_sz(hdr) / ITEM_SIZE;
net/tipc/name_distr.c
380
tipc_update_nametbl(net, item, node, msg_type(hdr));
net/tipc/name_table.c
1014
genlmsg_end(msg->skb, hdr);
net/tipc/name_table.c
1025
genlmsg_cancel(msg->skb, hdr);
net/tipc/name_table.c
966
void *hdr;
net/tipc/name_table.c
983
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq,
net/tipc/name_table.c
986
if (!hdr)
net/tipc/net.c
172
void *hdr;
net/tipc/net.c
174
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
net/tipc/net.c
176
if (!hdr)
net/tipc/net.c
190
genlmsg_end(msg->skb, hdr);
net/tipc/net.c
197
genlmsg_cancel(msg->skb, hdr);
net/tipc/net.c
297
void *hdr;
net/tipc/net.c
299
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
net/tipc/net.c
301
if (!hdr)
net/tipc/net.c
313
genlmsg_end(msg->skb, hdr);
net/tipc/net.c
320
genlmsg_cancel(msg->skb, hdr);
net/tipc/netlink_compat.c
1005
hdr = genlmsg_put(args, 0, 0, &tipc_genl_family, NLM_F_MULTI,
net/tipc/netlink_compat.c
1007
if (!hdr) {
net/tipc/netlink_compat.c
1024
genlmsg_end(args, hdr);
net/tipc/netlink_compat.c
996
void *hdr;
net/tipc/node.c
1596
void *hdr;
net/tipc/node.c
1599
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
net/tipc/node.c
1601
if (!hdr)
net/tipc/node.c
1615
genlmsg_end(msg->skb, hdr);
net/tipc/node.c
1622
genlmsg_cancel(msg->skb, hdr);
net/tipc/node.c
1629
struct tipc_msg *hdr = buf_msg(skb_peek(list));
net/tipc/node.c
1632
switch (msg_user(hdr)) {
net/tipc/node.c
1637
if (msg_connected(hdr) || msg_named(hdr) ||
net/tipc/node.c
1638
msg_direct(hdr)) {
net/tipc/node.c
1644
if (msg_mcast(hdr)) {
net/tipc/node.c
1833
static void tipc_node_bc_sync_rcv(struct tipc_node *n, struct tipc_msg *hdr,
net/tipc/node.c
1839
rc = tipc_bcast_sync_rcv(n->net, n->bc_entry.link, hdr, xmitq);
net/tipc/node.c
1850
if (msg_probe(hdr))
net/tipc/node.c
1875
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/node.c
1876
int usr = msg_user(hdr);
net/tipc/node.c
1877
u32 dnode = msg_destnode(hdr);
net/tipc/node.c
1886
n = tipc_node_find(net, msg_prevnode(hdr));
net/tipc/node.c
1933
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/node.c
1934
int usr = msg_user(hdr);
net/tipc/node.c
1935
int mtyp = msg_type(hdr);
net/tipc/node.c
1936
u16 oseqno = msg_seqno(hdr);
net/tipc/node.c
1937
u16 exp_pkts = msg_msgcnt(hdr);
net/tipc/node.c
1965
if (!tipc_link_validate_msg(l, hdr)) {
net/tipc/node.c
1975
if (!msg_peer_link_is_up(hdr))
net/tipc/node.c
1981
if (msg_peer_node_is_up(hdr))
net/tipc/node.c
2036
syncpt = msg_syncpt(hdr);
net/tipc/node.c
2038
syncpt = msg_seqno(msg_inner_hdr(hdr)) + exp_pkts - 1;
net/tipc/node.c
2087
struct tipc_msg *hdr;
net/tipc/node.c
2119
hdr = buf_msg(skb);
net/tipc/node.c
2120
usr = msg_user(hdr);
net/tipc/node.c
2121
bc_ack = msg_bcast_ack(hdr);
net/tipc/node.c
2124
if (unlikely(msg_non_seq(hdr))) {
net/tipc/node.c
2132
if (unlikely(!msg_short(hdr) && (msg_destnode(hdr) != self)))
net/tipc/node.c
2136
n = tipc_node_find(net, msg_prevnode(hdr));
net/tipc/node.c
2147
hdr = buf_msg(skb);
net/tipc/node.c
2148
tipc_node_bc_sync_rcv(n, hdr, bearer_id, &xmitq);
net/tipc/node.c
2150
tipc_bcast_ack_rcv(net, n->bc_entry.link, hdr);
net/tipc/node.c
2783
void *hdr;
net/tipc/node.c
2786
hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family,
net/tipc/node.c
2788
if (!hdr)
net/tipc/node.c
2801
genlmsg_end(msg->skb, hdr);
net/tipc/node.c
2808
genlmsg_cancel(msg->skb, hdr);
net/tipc/socket.c
1007
struct tipc_msg *hdr = &tsk->phdr;
net/tipc/socket.c
1017
ua->sa.type = msg_nametype(hdr);
net/tipc/socket.c
1018
ua->scope = msg_lookup_scope(hdr);
net/tipc/socket.c
1091
struct tipc_msg *hdr = &tsk->phdr;
net/tipc/socket.c
1109
msg_set_type(hdr, TIPC_GRP_MCAST_MSG);
net/tipc/socket.c
1110
msg_set_nameinst(hdr, ua->sa.instance);
net/tipc/socket.c
1112
msg_set_type(hdr, TIPC_GRP_BCAST_MSG);
net/tipc/socket.c
1113
msg_set_nameinst(hdr, 0);
net/tipc/socket.c
1115
msg_set_hdr_sz(hdr, GROUP_H_SIZE);
net/tipc/socket.c
1116
msg_set_destport(hdr, 0);
net/tipc/socket.c
1117
msg_set_destnode(hdr, 0);
net/tipc/socket.c
1118
msg_set_grp_bc_seqno(hdr, tipc_group_bc_snd_nxt(tsk->group));
net/tipc/socket.c
1121
msg_set_grp_bc_ack_req(hdr, ack);
net/tipc/socket.c
1125
rc = tipc_msg_build(hdr, m, 0, dlen, mtu, &pkts);
net/tipc/socket.c
1161
struct tipc_msg *hdr = &tsk->phdr;
net/tipc/socket.c
1166
ua->sa.type = msg_nametype(hdr);
net/tipc/socket.c
1167
ua->scope = msg_lookup_scope(hdr);
net/tipc/socket.c
1198
struct tipc_msg *hdr;
net/tipc/socket.c
1209
hdr = buf_msg(skb);
net/tipc/socket.c
1210
user = msg_user(hdr);
net/tipc/socket.c
1211
mtyp = msg_type(hdr);
net/tipc/socket.c
1212
hlen = skb_headroom(skb) + msg_hdr_sz(hdr);
net/tipc/socket.c
1213
onode = msg_orignode(hdr);
net/tipc/socket.c
1214
ua.sr.type = msg_nametype(hdr);
net/tipc/socket.c
1215
ua.sr.lower = msg_namelower(hdr);
net/tipc/socket.c
1216
ua.sr.upper = msg_nameupper(hdr);
net/tipc/socket.c
1234
if (msg_in_group(hdr)) {
net/tipc/socket.c
1237
ua.scope = msg_lookup_scope(hdr);
net/tipc/socket.c
1328
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/socket.c
1331
int mtyp = msg_type(hdr);
net/tipc/socket.c
1335
if (!tsk_peer_msg(tsk, hdr)) {
net/tipc/socket.c
1340
if (unlikely(msg_errcode(hdr))) {
net/tipc/socket.c
1349
msg_set_user(hdr, TIPC_CRITICAL_IMPORTANCE);
net/tipc/socket.c
1350
msg_set_type(hdr, TIPC_CONN_MSG);
net/tipc/socket.c
1351
msg_set_size(hdr, BASIC_H_SIZE);
net/tipc/socket.c
1352
msg_set_hdr_sz(hdr, BASIC_H_SIZE);
net/tipc/socket.c
1360
msg_set_type(hdr, CONN_PROBE_REPLY);
net/tipc/socket.c
1366
tipc_sk_push_backlog(tsk, msg_nagle_ack(hdr));
net/tipc/socket.c
1367
tsk->snt_unacked -= msg_conn_ack(hdr);
net/tipc/socket.c
1369
tsk->snd_win = msg_adv_win(hdr);
net/tipc/socket.c
1415
struct tipc_msg *hdr = &tsk->phdr;
net/tipc/socket.c
1458
msg_set_syn(hdr, 1);
net/tipc/socket.c
1484
msg_set_destnode(hdr, skaddr.node);
net/tipc/socket.c
1485
msg_set_destport(hdr, skaddr.ref);
net/tipc/socket.c
1487
msg_set_type(hdr, TIPC_NAMED_MSG);
net/tipc/socket.c
1488
msg_set_hdr_sz(hdr, NAMED_H_SIZE);
net/tipc/socket.c
1489
msg_set_nametype(hdr, ua->sa.type);
net/tipc/socket.c
1490
msg_set_nameinst(hdr, ua->sa.instance);
net/tipc/socket.c
1491
msg_set_lookup_scope(hdr, ua->scope);
net/tipc/socket.c
1493
msg_set_type(hdr, TIPC_DIRECT_MSG);
net/tipc/socket.c
1494
msg_set_lookup_scope(hdr, 0);
net/tipc/socket.c
1495
msg_set_hdr_sz(hdr, BASIC_H_SIZE);
net/tipc/socket.c
1501
rc = tipc_msg_build(hdr, m, 0, dlen, mtu, &pkts);
net/tipc/socket.c
1559
struct tipc_msg *hdr = &tsk->phdr;
net/tipc/socket.c
1576
tsk->snt_unacked = tsk_inc(tsk, dlen + msg_hdr_sz(hdr));
net/tipc/socket.c
1592
rc = tipc_msg_append(hdr, m, send, maxnagle, txq);
net/tipc/socket.c
1615
rc = tipc_msg_build(hdr, m, sent, send, maxpkt, txq);
net/tipc/socket.c
1696
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/socket.c
1704
srcaddr->sock.addr.id.ref = msg_origport(hdr);
net/tipc/socket.c
1705
srcaddr->sock.addr.id.node = msg_orignode(hdr);
net/tipc/socket.c
1709
if (!msg_in_group(hdr))
net/tipc/socket.c
1716
srcaddr->member.addr.name.name.type = msg_nametype(hdr);
net/tipc/socket.c
1735
struct tipc_msg *hdr;
net/tipc/socket.c
1743
hdr = buf_msg(skb);
net/tipc/socket.c
1744
dlen = msg_data_sz(hdr);
net/tipc/socket.c
1747
if (msg_errcode(hdr)) {
net/tipc/socket.c
1750
hdr = buf_msg(skb);
net/tipc/socket.c
1751
data[0] = msg_errcode(hdr);
net/tipc/socket.c
1756
rc = put_cmsg(m, SOL_TIPC, TIPC_RETDATA, dlen, msg_data(hdr));
net/tipc/socket.c
1762
switch (msg_type(hdr)) {
net/tipc/socket.c
1765
data[0] = msg_nametype(hdr);
net/tipc/socket.c
1766
data[1] = msg_namelower(hdr);
net/tipc/socket.c
1771
data[0] = msg_nametype(hdr);
net/tipc/socket.c
1772
data[1] = msg_namelower(hdr);
net/tipc/socket.c
1773
data[2] = msg_nameupper(hdr);
net/tipc/socket.c
1890
struct tipc_msg *hdr;
net/tipc/socket.c
1913
hdr = buf_msg(skb);
net/tipc/socket.c
1914
dlen = msg_data_sz(hdr);
net/tipc/socket.c
1915
hlen = msg_hdr_sz(hdr);
net/tipc/socket.c
1916
err = msg_errcode(hdr);
net/tipc/socket.c
1917
grp_evt = msg_is_grp_evt(hdr);
net/tipc/socket.c
1928
hdr = buf_msg(skb);
net/tipc/socket.c
1962
if (msg_grp_evt(hdr) == TIPC_WITHDRAWN)
net/tipc/socket.c
1973
if (tsk->group && msg_in_group(hdr) && !grp_evt) {
net/tipc/socket.c
1976
msg_orignode(hdr), msg_origport(hdr),
net/tipc/socket.c
2016
struct tipc_msg *hdr;
net/tipc/socket.c
2043
hdr = buf_msg(skb);
net/tipc/socket.c
2044
dlen = msg_data_sz(hdr);
net/tipc/socket.c
2045
hlen = msg_hdr_sz(hdr);
net/tipc/socket.c
2046
err = msg_errcode(hdr);
net/tipc/socket.c
2060
hdr = buf_msg(skb);
net/tipc/socket.c
2150
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/socket.c
2154
switch (msg_user(hdr)) {
net/tipc/socket.c
2159
tipc_dest_del(&tsk->cong_links, msg_orignode(hdr), 0);
net/tipc/socket.c
2167
tipc_group_proto_rcv(grp, &wakeup, hdr, inputq, xmitq);
net/tipc/socket.c
2171
hdr, inputq, xmitq);
net/tipc/socket.c
2195
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/socket.c
2196
bool con_msg = msg_connected(hdr);
net/tipc/socket.c
2199
u32 oport = msg_origport(hdr);
net/tipc/socket.c
2200
u32 onode = msg_orignode(hdr);
net/tipc/socket.c
2201
int err = msg_errcode(hdr);
net/tipc/socket.c
2204
if (unlikely(msg_mcast(hdr)))
net/tipc/socket.c
2215
msg_set_importance(&tsk->phdr, msg_importance(hdr));
net/tipc/socket.c
2217
if (msg_data_sz(hdr))
net/tipc/socket.c
2221
msg_set_dest_droppable(hdr, 1);
net/tipc/socket.c
2247
if (!msg_is_syn(hdr) &&
net/tipc/socket.c
2259
if (msg_ack_required(hdr)) {
net/tipc/socket.c
2270
if (!tsk_peer_msg(tsk, hdr))
net/tipc/socket.c
2309
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/socket.c
2311
if (unlikely(msg_in_group(hdr)))
net/tipc/socket.c
2314
if (unlikely(!msg_connected(hdr)))
net/tipc/socket.c
2315
return READ_ONCE(sk->sk_rcvbuf) << msg_importance(hdr);
net/tipc/socket.c
2340
struct tipc_msg *hdr = buf_msg(skb);
net/tipc/socket.c
2343
int mtyp = msg_type(hdr);
net/tipc/socket.c
2351
if (unlikely(!msg_isdata(hdr)))
net/tipc/socket.c
2362
hdr = buf_msg(skb);
net/tipc/socket.c
2365
(!sk_conn && msg_connected(hdr)) ||
net/tipc/socket.c
2366
(!grp && msg_in_group(hdr)))
net/tipc/socket.c
3071
struct tipc_msg *hdr = &tsk->phdr;
net/tipc/socket.c
3087
msg_set_lookup_scope(hdr, mreq->scope);
net/tipc/socket.c
3088
msg_set_nametype(hdr, mreq->type);
net/tipc/socket.c
3089
msg_set_dest_droppable(hdr, true);
net/tipc/socket.c
3524
void *hdr;
net/tipc/socket.c
3526
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/tipc/socket.c
3528
if (!hdr)
net/tipc/socket.c
3539
genlmsg_end(skb, hdr);
net/tipc/socket.c
3546
genlmsg_cancel(skb, hdr);
net/tipc/socket.c
3700
void *hdr;
net/tipc/socket.c
3703
hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq,
net/tipc/socket.c
3705
if (!hdr)
net/tipc/socket.c
3722
genlmsg_end(skb, hdr);
net/tipc/socket.c
3729
genlmsg_cancel(skb, hdr);
net/tipc/socket.c
846
struct tipc_msg *hdr = &tsk->phdr;
net/tipc/socket.c
868
msg_set_type(hdr, TIPC_MCAST_MSG);
net/tipc/socket.c
869
msg_set_hdr_sz(hdr, MCAST_H_SIZE);
net/tipc/socket.c
870
msg_set_lookup_scope(hdr, TIPC_CLUSTER_SCOPE);
net/tipc/socket.c
871
msg_set_destport(hdr, 0);
net/tipc/socket.c
872
msg_set_destnode(hdr, 0);
net/tipc/socket.c
873
msg_set_nametype(hdr, ua->sr.type);
net/tipc/socket.c
874
msg_set_namelower(hdr, ua->sr.lower);
net/tipc/socket.c
875
msg_set_nameupper(hdr, ua->sr.upper);
net/tipc/socket.c
879
rc = tipc_msg_build(hdr, msg, 0, dlen, mtu, &pkts);
net/tipc/socket.c
911
struct tipc_msg *hdr = &tsk->phdr;
net/tipc/socket.c
916
msg_set_type(hdr, TIPC_GRP_UCAST_MSG);
net/tipc/socket.c
917
msg_set_hdr_sz(hdr, GROUP_H_SIZE);
net/tipc/socket.c
918
msg_set_destport(hdr, dport);
net/tipc/socket.c
919
msg_set_destnode(hdr, dnode);
net/tipc/socket.c
920
msg_set_grp_bc_seqno(hdr, bc_snd_nxt);
net/tipc/socket.c
925
rc = tipc_msg_build(hdr, m, 0, dlen, mtu, &pkts);
net/tipc/trace.c
100
msg_nametype(hdr));
net/tipc/trace.c
102
msg_nameinst(hdr));
net/tipc/trace.c
106
msg_nametype(hdr));
net/tipc/trace.c
108
msg_namelower(hdr));
net/tipc/trace.c
110
msg_nameupper(hdr));
net/tipc/trace.c
116
msg_src_droppable(hdr));
net/tipc/trace.c
118
msg_dest_droppable(hdr));
net/tipc/trace.c
119
i += scnprintf(buf + i, sz - i, " %u", msg_errcode(hdr));
net/tipc/trace.c
120
i += scnprintf(buf + i, sz - i, " %u", msg_reroute_cnt(hdr));
net/tipc/trace.c
57
struct tipc_msg *hdr;
net/tipc/trace.c
65
hdr = buf_msg(skb);
net/tipc/trace.c
69
i += scnprintf(buf, sz, "msg: %u", msg_user(hdr));
net/tipc/trace.c
70
i += scnprintf(buf + i, sz - i, " %u", msg_type(hdr));
net/tipc/trace.c
71
i += scnprintf(buf + i, sz - i, " %u", msg_hdr_sz(hdr));
net/tipc/trace.c
72
i += scnprintf(buf + i, sz - i, " %u", msg_data_sz(hdr));
net/tipc/trace.c
73
i += scnprintf(buf + i, sz - i, " %x", msg_orignode(hdr));
net/tipc/trace.c
74
i += scnprintf(buf + i, sz - i, " %x", msg_destnode(hdr));
net/tipc/trace.c
75
i += scnprintf(buf + i, sz - i, " %u", msg_seqno(hdr));
net/tipc/trace.c
76
i += scnprintf(buf + i, sz - i, " %u", msg_ack(hdr));
net/tipc/trace.c
77
i += scnprintf(buf + i, sz - i, " %u", msg_bcast_ack(hdr));
net/tipc/trace.c
78
switch (msg_user(hdr)) {
net/tipc/trace.c
80
i += scnprintf(buf + i, sz - i, " %c", msg_net_plane(hdr));
net/tipc/trace.c
81
i += scnprintf(buf + i, sz - i, " %u", msg_probe(hdr));
net/tipc/trace.c
82
i += scnprintf(buf + i, sz - i, " %u", msg_peer_stopping(hdr));
net/tipc/trace.c
83
i += scnprintf(buf + i, sz - i, " %u", msg_session(hdr));
net/tipc/trace.c
84
i += scnprintf(buf + i, sz - i, " %u", msg_next_sent(hdr));
net/tipc/trace.c
85
i += scnprintf(buf + i, sz - i, " %u", msg_seq_gap(hdr));
net/tipc/trace.c
86
i += scnprintf(buf + i, sz - i, " %u", msg_bc_snd_nxt(hdr));
net/tipc/trace.c
87
i += scnprintf(buf + i, sz - i, " %u", msg_bc_gap(hdr));
net/tipc/trace.c
95
i += scnprintf(buf + i, sz - i, " | %u", msg_origport(hdr));
net/tipc/trace.c
96
i += scnprintf(buf + i, sz - i, " %u", msg_destport(hdr));
net/tipc/trace.c
97
switch (msg_type(hdr)) {
net/tipc/udp_media.c
376
struct tipc_msg *hdr;
net/tipc/udp_media.c
385
hdr = buf_msg(skb);
net/tipc/udp_media.c
397
if (unlikely(msg_user(hdr) == LINK_CONFIG)) {
net/tipc/udp_media.c
466
void *hdr;
net/tipc/udp_media.c
520
hdr = genlmsg_put(skb, portid, cb->nlh->nlmsg_seq,
net/tipc/udp_media.c
523
if (!hdr)
net/tipc/udp_media.c
529
genlmsg_cancel(skb, hdr);
net/tipc/udp_media.c
532
genlmsg_end(skb, hdr);
net/vmw_vsock/hyperv_transport.c
232
struct vmpipe_proto_header *hdr,
net/vmw_vsock/hyperv_transport.c
235
hdr->pkt_type = 1;
net/vmw_vsock/hyperv_transport.c
236
hdr->data_size = to_write;
net/vmw_vsock/hyperv_transport.c
237
return vmbus_sendpacket(chan, hdr, sizeof(*hdr) + to_write,
net/vmw_vsock/hyperv_transport.c
244
return __hvs_send_data(chan, &send_buf->hdr, to_write);
net/vmw_vsock/hyperv_transport.c
43
struct vmpipe_proto_header hdr;
net/vmw_vsock/hyperv_transport.c
476
struct vmpipe_proto_header hdr;
net/vmw_vsock/hyperv_transport.c
482
(void)__hvs_send_data(hvs->chan, &hdr, 0);
net/vmw_vsock/hyperv_transport.c
589
payload_len = recv_buf->hdr.data_size;
net/vmw_vsock/hyperv_transport.c
63
struct vmpipe_proto_header hdr;
net/vmw_vsock/virtio_transport.c
239
struct virtio_vsock_hdr *hdr;
net/vmw_vsock/virtio_transport.c
243
hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport.c
253
if (le64_to_cpu(hdr->dst_cid) == vsock->guest_cid) {
net/vmw_vsock/virtio_transport.c
641
struct virtio_vsock_hdr *hdr;
net/vmw_vsock/virtio_transport.c
659
if (unlikely(len < sizeof(*hdr) ||
net/vmw_vsock/virtio_transport.c
665
hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport.c
666
payload_len = le32_to_cpu(hdr->len);
net/vmw_vsock/virtio_transport.c
667
if (unlikely(payload_len > len - sizeof(*hdr))) {
net/vmw_vsock/virtio_transport_common.c
1178
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
1181
.type = le16_to_cpu(hdr->type),
net/vmw_vsock/virtio_transport_common.c
1199
if (le16_to_cpu(hdr->op) == VIRTIO_VSOCK_OP_RST)
net/vmw_vsock/virtio_transport_common.c
1206
le64_to_cpu(hdr->dst_cid),
net/vmw_vsock/virtio_transport_common.c
1207
le32_to_cpu(hdr->dst_port),
net/vmw_vsock/virtio_transport_common.c
1208
le64_to_cpu(hdr->src_cid),
net/vmw_vsock/virtio_transport_common.c
1209
le32_to_cpu(hdr->src_port));
net/vmw_vsock/virtio_transport_common.c
127
struct virtio_vsock_hdr *hdr;
net/vmw_vsock/virtio_transport_common.c
129
hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
130
hdr->type = cpu_to_le16(info->type);
net/vmw_vsock/virtio_transport_common.c
131
hdr->op = cpu_to_le16(info->op);
net/vmw_vsock/virtio_transport_common.c
132
hdr->src_cid = cpu_to_le64(src_cid);
net/vmw_vsock/virtio_transport_common.c
133
hdr->dst_cid = cpu_to_le64(dst_cid);
net/vmw_vsock/virtio_transport_common.c
1331
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
1336
switch (le16_to_cpu(hdr->op)) {
net/vmw_vsock/virtio_transport_common.c
134
hdr->src_port = cpu_to_le32(src_port);
net/vmw_vsock/virtio_transport_common.c
135
hdr->dst_port = cpu_to_le32(dst_port);
net/vmw_vsock/virtio_transport_common.c
136
hdr->flags = cpu_to_le32(info->flags);
net/vmw_vsock/virtio_transport_common.c
137
hdr->len = cpu_to_le32(payload_len);
net/vmw_vsock/virtio_transport_common.c
1370
struct virtio_vsock_hdr *hdr;
net/vmw_vsock/virtio_transport_common.c
1373
hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
1374
len = le32_to_cpu(hdr->len);
net/vmw_vsock/virtio_transport_common.c
138
hdr->buf_alloc = cpu_to_le32(0);
net/vmw_vsock/virtio_transport_common.c
1384
if (le32_to_cpu(hdr->flags) & VIRTIO_VSOCK_SEQ_EOM)
net/vmw_vsock/virtio_transport_common.c
139
hdr->fwd_cnt = cpu_to_le32(0);
net/vmw_vsock/virtio_transport_common.c
1410
last_hdr->flags |= hdr->flags;
net/vmw_vsock/virtio_transport_common.c
1428
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
1432
switch (le16_to_cpu(hdr->op)) {
net/vmw_vsock/virtio_transport_common.c
1444
if (le32_to_cpu(hdr->flags) & VIRTIO_VSOCK_SHUTDOWN_RCV)
net/vmw_vsock/virtio_transport_common.c
1446
if (le32_to_cpu(hdr->flags) & VIRTIO_VSOCK_SHUTDOWN_SEND)
net/vmw_vsock/virtio_transport_common.c
1479
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
1482
if (le16_to_cpu(hdr->op) == VIRTIO_VSOCK_OP_RST)
net/vmw_vsock/virtio_transport_common.c
1490
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
1493
.remote_cid = le64_to_cpu(hdr->src_cid),
net/vmw_vsock/virtio_transport_common.c
1494
.remote_port = le32_to_cpu(hdr->src_port),
net/vmw_vsock/virtio_transport_common.c
1506
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
1521
vvs->peer_buf_alloc = le32_to_cpu(hdr->buf_alloc);
net/vmw_vsock/virtio_transport_common.c
1522
vvs->peer_fwd_cnt = le32_to_cpu(hdr->fwd_cnt);
net/vmw_vsock/virtio_transport_common.c
1533
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
1539
if (le16_to_cpu(hdr->op) != VIRTIO_VSOCK_OP_REQUEST) {
net/vmw_vsock/virtio_transport_common.c
1570
vsock_addr_init(&vchild->local_addr, le64_to_cpu(hdr->dst_cid),
net/vmw_vsock/virtio_transport_common.c
1571
le32_to_cpu(hdr->dst_port));
net/vmw_vsock/virtio_transport_common.c
1572
vsock_addr_init(&vchild->remote_addr, le64_to_cpu(hdr->src_cid),
net/vmw_vsock/virtio_transport_common.c
1573
le32_to_cpu(hdr->src_port));
net/vmw_vsock/virtio_transport_common.c
1611
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
1617
vsock_addr_init(&src, le64_to_cpu(hdr->src_cid),
net/vmw_vsock/virtio_transport_common.c
1618
le32_to_cpu(hdr->src_port));
net/vmw_vsock/virtio_transport_common.c
1619
vsock_addr_init(&dst, le64_to_cpu(hdr->dst_cid),
net/vmw_vsock/virtio_transport_common.c
1620
le32_to_cpu(hdr->dst_port));
net/vmw_vsock/virtio_transport_common.c
1624
le32_to_cpu(hdr->len),
net/vmw_vsock/virtio_transport_common.c
1625
le16_to_cpu(hdr->type),
net/vmw_vsock/virtio_transport_common.c
1626
le16_to_cpu(hdr->op),
net/vmw_vsock/virtio_transport_common.c
1627
le32_to_cpu(hdr->flags),
net/vmw_vsock/virtio_transport_common.c
1628
le32_to_cpu(hdr->buf_alloc),
net/vmw_vsock/virtio_transport_common.c
1629
le32_to_cpu(hdr->fwd_cnt));
net/vmw_vsock/virtio_transport_common.c
1631
if (!virtio_transport_valid_type(le16_to_cpu(hdr->type))) {
net/vmw_vsock/virtio_transport_common.c
1648
if (virtio_transport_get_type(sk) != le16_to_cpu(hdr->type)) {
net/vmw_vsock/virtio_transport_common.c
168
struct af_vsockmon_hdr *hdr;
net/vmw_vsock/virtio_transport_common.c
1755
struct virtio_vsock_hdr *hdr;
net/vmw_vsock/virtio_transport_common.c
1771
hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
1772
if (le32_to_cpu(hdr->flags) & VIRTIO_VSOCK_SEQ_EOM)
net/vmw_vsock/virtio_transport_common.c
1775
pkt_len = le32_to_cpu(hdr->len);
net/vmw_vsock/virtio_transport_common.c
179
skb = alloc_skb(sizeof(*hdr) + sizeof(*pkt_hdr) + payload_len,
net/vmw_vsock/virtio_transport_common.c
184
hdr = skb_put(skb, sizeof(*hdr));
net/vmw_vsock/virtio_transport_common.c
187
hdr->src_cid = pkt_hdr->src_cid;
net/vmw_vsock/virtio_transport_common.c
188
hdr->src_port = pkt_hdr->src_port;
net/vmw_vsock/virtio_transport_common.c
189
hdr->dst_cid = pkt_hdr->dst_cid;
net/vmw_vsock/virtio_transport_common.c
190
hdr->dst_port = pkt_hdr->dst_port;
net/vmw_vsock/virtio_transport_common.c
192
hdr->transport = cpu_to_le16(AF_VSOCK_TRANSPORT_VIRTIO);
net/vmw_vsock/virtio_transport_common.c
193
hdr->len = cpu_to_le16(sizeof(*pkt_hdr));
net/vmw_vsock/virtio_transport_common.c
194
memset(hdr->reserved, 0, sizeof(hdr->reserved));
net/vmw_vsock/virtio_transport_common.c
199
hdr->op = cpu_to_le16(AF_VSOCK_OP_CONNECT);
net/vmw_vsock/virtio_transport_common.c
203
hdr->op = cpu_to_le16(AF_VSOCK_OP_DISCONNECT);
net/vmw_vsock/virtio_transport_common.c
206
hdr->op = cpu_to_le16(AF_VSOCK_OP_PAYLOAD);
net/vmw_vsock/virtio_transport_common.c
210
hdr->op = cpu_to_le16(AF_VSOCK_OP_CONTROL);
net/vmw_vsock/virtio_transport_common.c
213
hdr->op = cpu_to_le16(AF_VSOCK_OP_UNKNOWN);
net/vmw_vsock/virtio_transport_common.c
300
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
302
hdr->flags |= cpu_to_le32(VIRTIO_VSOCK_SEQ_EOM);
net/vmw_vsock/virtio_transport_common.c
305
hdr->flags |= cpu_to_le32(VIRTIO_VSOCK_SEQ_EOR);
net/vmw_vsock/virtio_transport_common.c
465
struct virtio_vsock_hdr *hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
469
hdr->fwd_cnt = cpu_to_le32(vvs->fwd_cnt);
net/vmw_vsock/virtio_transport_common.c
470
hdr->buf_alloc = cpu_to_le32(vvs->buf_alloc);
net/vmw_vsock/virtio_transport_common.c
684
struct virtio_vsock_hdr *hdr;
net/vmw_vsock/virtio_transport_common.c
708
hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
710
if (le32_to_cpu(hdr->flags) & VIRTIO_VSOCK_SEQ_EOM) {
net/vmw_vsock/virtio_transport_common.c
711
if (le32_to_cpu(hdr->flags) & VIRTIO_VSOCK_SEQ_EOR)
net/vmw_vsock/virtio_transport_common.c
741
struct virtio_vsock_hdr *hdr;
net/vmw_vsock/virtio_transport_common.c
747
hdr = virtio_vsock_hdr(skb);
net/vmw_vsock/virtio_transport_common.c
748
pkt_len = (size_t)le32_to_cpu(hdr->len);
net/vmw_vsock/virtio_transport_common.c
782
if (le32_to_cpu(hdr->flags) & VIRTIO_VSOCK_SEQ_EOM) {
net/vmw_vsock/virtio_transport_common.c
786
if (le32_to_cpu(hdr->flags) & VIRTIO_VSOCK_SEQ_EOR)
net/wireless/nl80211.c
10000
void *hdr = nl80211hdr_put(msg, NETLINK_CB(cb->skb).portid, seq, flags,
net/wireless/nl80211.c
10003
if (!hdr)
net/wireless/nl80211.c
10006
genl_dump_check_consistent(cb, hdr);
net/wireless/nl80211.c
10024
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
10028
genlmsg_cancel(msg, hdr);
net/wireless/nl80211.c
11622
void *hdr;
net/wireless/nl80211.c
11627
hdr = nl80211hdr_put(msg, NETLINK_CB(cb->skb).portid, seq, flags,
net/wireless/nl80211.c
11629
if (!hdr)
net/wireless/nl80211.c
11632
genl_dump_check_consistent(cb, hdr);
net/wireless/nl80211.c
11762
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
11768
genlmsg_cancel(msg, hdr);
net/wireless/nl80211.c
11838
void *hdr;
net/wireless/nl80211.c
11845
hdr = nl80211hdr_put(msg, portid, seq, flags,
net/wireless/nl80211.c
11847
if (!hdr)
net/wireless/nl80211.c
11904
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
11908
genlmsg_cancel(msg, hdr);
net/wireless/nl80211.c
12942
void *hdr;
net/wireless/nl80211.c
12949
hdr = nl80211hdr_put(skb, portid, seq, 0, cmd);
net/wireless/nl80211.c
12950
if (!hdr) {
net/wireless/nl80211.c
12982
((void **)skb->cb)[1] = hdr;
net/wireless/nl80211.c
13028
void *hdr = ((void **)skb->cb)[1];
net/wireless/nl80211.c
13037
genlmsg_end(skb, hdr);
net/wireless/nl80211.c
13148
void *hdr = nl80211hdr_put(skb, NETLINK_CB(cb->skb).portid,
net/wireless/nl80211.c
13153
if (!hdr)
net/wireless/nl80211.c
13157
genlmsg_cancel(skb, hdr);
net/wireless/nl80211.c
13163
genlmsg_cancel(skb, hdr);
net/wireless/nl80211.c
13170
genlmsg_cancel(skb, hdr);
net/wireless/nl80211.c
13173
genlmsg_cancel(skb, hdr);
net/wireless/nl80211.c
13177
genlmsg_end(skb, hdr);
net/wireless/nl80211.c
13759
void *hdr;
net/wireless/nl80211.c
13809
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
13811
if (!hdr) {
net/wireless/nl80211.c
13826
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
13934
void *hdr = NULL;
net/wireless/nl80211.c
14035
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
14037
if (!hdr) {
net/wireless/nl80211.c
14053
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
14138
void *hdr;
net/wireless/nl80211.c
14150
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
14152
if (!hdr) {
net/wireless/nl80211.c
14165
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
14716
void *hdr;
net/wireless/nl80211.c
14734
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
14736
if (!hdr)
net/wireless/nl80211.c
14778
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
15225
void *hdr;
net/wireless/nl80211.c
15234
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
15236
if (!hdr)
net/wireless/nl80211.c
15242
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
15483
void *hdr;
net/wireless/nl80211.c
15502
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
15504
if (!hdr) {
net/wireless/nl80211.c
15519
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
15937
void *hdr = NULL;
net/wireless/nl80211.c
16127
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
16130
if (WARN_ON(!hdr)) {
net/wireless/nl80211.c
16158
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
16221
void *hdr;
net/wireless/nl80211.c
16233
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_NAN_MATCH);
net/wireless/nl80211.c
16234
if (!hdr) {
net/wireless/nl80211.c
16281
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
16306
void *hdr;
net/wireless/nl80211.c
16318
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_DEL_NAN_FUNCTION);
net/wireless/nl80211.c
16319
if (!hdr) {
net/wireless/nl80211.c
16344
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
16363
void *hdr;
net/wireless/nl80211.c
16370
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
16372
if (!hdr)
net/wireless/nl80211.c
16379
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
16719
void *hdr = nl80211hdr_put(skb, NETLINK_CB(cb->skb).portid,
net/wireless/nl80211.c
16722
if (!hdr)
net/wireless/nl80211.c
16729
genlmsg_cancel(skb, hdr);
net/wireless/nl80211.c
16736
genlmsg_cancel(skb, hdr);
net/wireless/nl80211.c
16745
genlmsg_cancel(skb, hdr);
net/wireless/nl80211.c
16748
genlmsg_cancel(skb, hdr);
net/wireless/nl80211.c
16752
genlmsg_end(skb, hdr);
net/wireless/nl80211.c
16781
void *hdr = ((void **)skb->cb)[1];
net/wireless/nl80211.c
16793
genlmsg_end(skb, hdr);
net/wireless/nl80211.c
17206
void *hdr;
net/wireless/nl80211.c
17225
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
17227
if (!hdr)
net/wireless/nl80211.c
17262
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
19300
void *hdr;
net/wireless/nl80211.c
19302
hdr = nl80211hdr_put(msg, portid, seq, flags, cmd);
net/wireless/nl80211.c
19303
if (!hdr)
net/wireless/nl80211.c
19316
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
19320
genlmsg_cancel(msg, hdr);
net/wireless/nl80211.c
19328
void *hdr;
net/wireless/nl80211.c
19330
hdr = nl80211hdr_put(msg, 0, 0, 0, cmd);
net/wireless/nl80211.c
19331
if (!hdr)
net/wireless/nl80211.c
19341
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
19345
genlmsg_cancel(msg, hdr);
net/wireless/nl80211.c
19470
void *hdr;
net/wireless/nl80211.c
19476
hdr = nl80211hdr_put(msg, 0, 0, 0, cmd_id);
net/wireless/nl80211.c
19477
if (!hdr)
net/wireless/nl80211.c
19483
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
19510
void *hdr;
net/wireless/nl80211.c
19516
hdr = nl80211hdr_put(msg, 0, 0, 0, event->cmd);
net/wireless/nl80211.c
19517
if (!hdr) {
net/wireless/nl80211.c
19547
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
19657
void *hdr;
net/wireless/nl80211.c
19663
hdr = nl80211hdr_put(msg, 0, 0, 0, cmd);
net/wireless/nl80211.c
19664
if (!hdr) {
net/wireless/nl80211.c
19675
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
19707
void *hdr;
net/wireless/nl80211.c
19735
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_CONNECT);
net/wireless/nl80211.c
19736
if (!hdr) {
net/wireless/nl80211.c
19804
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
19819
void *hdr;
net/wireless/nl80211.c
19849
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_ROAM);
net/wireless/nl80211.c
19850
if (!hdr) {
net/wireless/nl80211.c
19908
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
19923
void *hdr;
net/wireless/nl80211.c
19929
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_PORT_AUTHORIZED);
net/wireless/nl80211.c
19930
if (!hdr) {
net/wireless/nl80211.c
19944
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
19959
void *hdr;
net/wireless/nl80211.c
19965
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_DISCONNECT);
net/wireless/nl80211.c
19966
if (!hdr) {
net/wireless/nl80211.c
19980
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
19997
void *hdr;
net/wireless/nl80211.c
20018
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_LINKS_REMOVED);
net/wireless/nl80211.c
20019
if (!hdr) {
net/wireless/nl80211.c
20049
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20082
void *hdr;
net/wireless/nl80211.c
20088
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_JOIN_IBSS);
net/wireless/nl80211.c
20089
if (!hdr) {
net/wireless/nl80211.c
20099
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20116
void *hdr;
net/wireless/nl80211.c
20127
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_NEW_PEER_CANDIDATE);
net/wireless/nl80211.c
20128
if (!hdr) {
net/wireless/nl80211.c
20142
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20159
void *hdr;
net/wireless/nl80211.c
20165
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_MICHAEL_MIC_FAILURE);
net/wireless/nl80211.c
20166
if (!hdr) {
net/wireless/nl80211.c
20180
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20195
void *hdr;
net/wireless/nl80211.c
20202
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_REG_BEACON_HINT);
net/wireless/nl80211.c
20203
if (!hdr) {
net/wireless/nl80211.c
20233
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20251
void *hdr;
net/wireless/nl80211.c
20257
hdr = nl80211hdr_put(msg, 0, 0, 0, cmd);
net/wireless/nl80211.c
20258
if (!hdr) {
net/wireless/nl80211.c
20279
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20296
void *hdr;
net/wireless/nl80211.c
20304
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_ASSOC_COMEBACK);
net/wireless/nl80211.c
20305
if (!hdr) {
net/wireless/nl80211.c
20316
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20428
void *hdr;
net/wireless/nl80211.c
20434
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_CONN_FAILED);
net/wireless/nl80211.c
20435
if (!hdr) {
net/wireless/nl80211.c
20445
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20462
void *hdr;
net/wireless/nl80211.c
20472
hdr = nl80211hdr_put(msg, 0, 0, 0, cmd);
net/wireless/nl80211.c
20473
if (!hdr) {
net/wireless/nl80211.c
20485
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20542
void *hdr;
net/wireless/nl80211.c
20548
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_FRAME);
net/wireless/nl80211.c
20549
if (!hdr) {
net/wireless/nl80211.c
20578
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20595
void *hdr;
net/wireless/nl80211.c
20608
hdr = nl80211hdr_put(msg, 0, 0, 0, command);
net/wireless/nl80211.c
20609
if (!hdr) {
net/wireless/nl80211.c
20631
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20676
void *hdr;
net/wireless/nl80211.c
20688
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_CONTROL_PORT_FRAME);
net/wireless/nl80211.c
20689
if (!hdr) {
net/wireless/nl80211.c
20711
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20923
void *hdr;
net/wireless/nl80211.c
20929
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_SET_REKEY_OFFLOAD);
net/wireless/nl80211.c
20930
if (!hdr) {
net/wireless/nl80211.c
20950
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
20979
void *hdr;
net/wireless/nl80211.c
20985
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_PMKSA_CANDIDATE);
net/wireless/nl80211.c
20986
if (!hdr) {
net/wireless/nl80211.c
21007
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21039
void *hdr;
net/wireless/nl80211.c
21045
hdr = nl80211hdr_put(msg, 0, 0, 0, notif);
net/wireless/nl80211.c
21046
if (!hdr) {
net/wireless/nl80211.c
21069
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21152
void *hdr;
net/wireless/nl80211.c
21162
hdr = nl80211hdr_put(msg, 0, 0, 0, cmd);
net/wireless/nl80211.c
21163
if (!hdr)
net/wireless/nl80211.c
21182
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21200
void *hdr;
net/wireless/nl80211.c
21206
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_RADAR_DETECT);
net/wireless/nl80211.c
21207
if (!hdr) {
net/wireless/nl80211.c
21231
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21248
void *hdr;
net/wireless/nl80211.c
21257
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_STA_OPMODE_CHANGED);
net/wireless/nl80211.c
21258
if (!hdr) {
net/wireless/nl80211.c
21284
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21303
void *hdr;
net/wireless/nl80211.c
21312
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_PROBE_CLIENT);
net/wireless/nl80211.c
21313
if (!hdr) {
net/wireless/nl80211.c
21328
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21344
void *hdr;
net/wireless/nl80211.c
21357
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_FRAME);
net/wireless/nl80211.c
21358
if (!hdr)
net/wireless/nl80211.c
21372
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21451
void *hdr;
net/wireless/nl80211.c
21463
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_SET_WOWLAN);
net/wireless/nl80211.c
21464
if (!hdr)
net/wireless/nl80211.c
21553
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21572
void *hdr;
net/wireless/nl80211.c
21581
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_TDLS_OPER);
net/wireless/nl80211.c
21582
if (!hdr) {
net/wireless/nl80211.c
21595
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21678
void *hdr;
net/wireless/nl80211.c
21690
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_FT_EVENT);
net/wireless/nl80211.c
21691
if (!hdr)
net/wireless/nl80211.c
21707
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21721
void *hdr;
net/wireless/nl80211.c
21735
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_CRIT_PROTOCOL_STOP);
net/wireless/nl80211.c
21736
if (!hdr)
net/wireless/nl80211.c
21744
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21759
void *hdr;
net/wireless/nl80211.c
21765
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_STOP_AP);
net/wireless/nl80211.c
21766
if (!hdr)
net/wireless/nl80211.c
21777
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21793
void *hdr;
net/wireless/nl80211.c
21802
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_EXTERNAL_AUTH);
net/wireless/nl80211.c
21803
if (!hdr)
net/wireless/nl80211.c
21835
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21853
void *hdr;
net/wireless/nl80211.c
21861
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_UPDATE_OWE_INFO);
net/wireless/nl80211.c
21862
if (!hdr)
net/wireless/nl80211.c
21885
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21892
genlmsg_cancel(msg, hdr);
net/wireless/nl80211.c
21917
void *hdr;
net/wireless/nl80211.c
21925
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_EPCS_CFG);
net/wireless/nl80211.c
21926
if (!hdr) {
net/wireless/nl80211.c
21934
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21950
void *hdr;
net/wireless/nl80211.c
21961
hdr = nl80211hdr_put(msg, 0, 0, 0,
net/wireless/nl80211.c
21963
if (!hdr)
net/wireless/nl80211.c
21972
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
21990
void *hdr;
net/wireless/nl80211.c
22000
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_NAN_CLUSTER_JOINED);
net/wireless/nl80211.c
22001
if (!hdr)
net/wireless/nl80211.c
22011
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
2706
void *hdr;
net/wireless/nl80211.c
2717
hdr = nl80211hdr_put(msg, portid, seq, flags, cmd);
net/wireless/nl80211.c
2718
if (!hdr)
net/wireless/nl80211.c
3357
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
3361
genlmsg_cancel(msg, hdr);
net/wireless/nl80211.c
4251
void *hdr;
net/wireless/nl80211.c
4259
hdr = nl80211hdr_put(msg, portid, seq, flags, cmd);
net/wireless/nl80211.c
4260
if (!hdr)
net/wireless/nl80211.c
4376
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
4380
genlmsg_cancel(msg, hdr);
net/wireless/nl80211.c
4960
void *hdr;
net/wireless/nl80211.c
5008
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
5010
if (!hdr)
net/wireless/nl80211.c
5036
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
6588
void *hdr;
net/wireless/nl80211.c
6594
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_START_AP);
net/wireless/nl80211.c
6595
if (!hdr)
net/wireless/nl80211.c
6609
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
7504
void *hdr;
net/wireless/nl80211.c
7510
hdr = nl80211hdr_put(msg, portid, seq, flags, cmd);
net/wireless/nl80211.c
7511
if (!hdr) {
net/wireless/nl80211.c
7758
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
7763
genlmsg_cancel(msg, hdr);
net/wireless/nl80211.c
8983
void *hdr;
net/wireless/nl80211.c
8986
hdr = nl80211hdr_put(msg, portid, seq, flags, NL80211_CMD_NEW_MPATH);
net/wireless/nl80211.c
8987
if (!hdr)
net/wireless/nl80211.c
9030
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
9034
genlmsg_cancel(msg, hdr);
net/wireless/nl80211.c
9455
void *hdr;
net/wireless/nl80211.c
9478
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
9480
if (!hdr)
net/wireless/nl80211.c
9550
genlmsg_end(msg, hdr);
net/wireless/nl80211.c
9927
void *hdr;
net/wireless/nl80211.c
9933
hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0,
net/wireless/nl80211.c
9935
if (!hdr)
net/wireless/nl80211.c
9983
genlmsg_end(msg, hdr);
net/wireless/pmsr.c
372
void *hdr;
net/wireless/pmsr.c
380
hdr = nl80211hdr_put(msg, 0, 0, 0,
net/wireless/pmsr.c
382
if (!hdr)
net/wireless/pmsr.c
394
genlmsg_end(msg, hdr);
net/wireless/pmsr.c
580
void *hdr;
net/wireless/pmsr.c
595
hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_PEER_MEASUREMENT_RESULT);
net/wireless/pmsr.c
596
if (!hdr)
net/wireless/pmsr.c
614
genlmsg_end(msg, hdr);
net/wireless/reg.c
816
const struct fwdb_header *hdr = (void *)data;
net/wireless/reg.c
819
if (size < sizeof(*hdr))
net/wireless/reg.c
822
if (hdr->magic != cpu_to_be32(FWDB_MAGIC))
net/wireless/reg.c
825
if (hdr->version != cpu_to_be32(FWDB_VERSION))
net/wireless/reg.c
831
country = &hdr->country[0];
net/wireless/reg.c
906
const struct fwdb_header *hdr = regdb;
net/wireless/reg.c
915
country = &hdr->country[0];
net/wireless/reg.c
984
const struct fwdb_header *hdr = regdb;
net/wireless/reg.c
992
country = &hdr->country[0];
net/wireless/util.c
478
const struct ieee80211_hdr *hdr =
net/wireless/util.c
484
hdrlen = ieee80211_hdrlen(hdr->frame_control);
net/wireless/util.c
512
bool ieee80211_get_8023_tunnel_proto(const void *hdr, __be16 *proto)
net/wireless/util.c
514
const __be16 *hdr_proto = hdr + ETH_ALEN;
net/wireless/util.c
516
if (!(ether_addr_equal(hdr, rfc1042_header) &&
net/wireless/util.c
519
!ether_addr_equal(hdr, bridge_tunnel_header))
net/wireless/util.c
576
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
net/wireless/util.c
578
u8 hdr[ETH_ALEN] __aligned(2);
net/wireless/util.c
584
if (unlikely(!ieee80211_is_data_present(hdr->frame_control)))
net/wireless/util.c
587
hdrlen = ieee80211_hdrlen(hdr->frame_control) + data_offset;
net/wireless/util.c
600
memcpy(tmp.h_dest, ieee80211_get_DA(hdr), ETH_ALEN);
net/wireless/util.c
601
memcpy(tmp.h_source, ieee80211_get_SA(hdr), ETH_ALEN);
net/wireless/util.c
603
switch (hdr->frame_control &
net/wireless/util.c
774
} hdr;
net/wireless/util.c
777
if (sizeof(hdr) > remaining)
net/wireless/util.c
780
if (skb_copy_bits(skb, offset + 2 * ETH_ALEN, &hdr, sizeof(hdr)) < 0)
net/wireless/util.c
783
len = ieee80211_amsdu_subframe_length(&hdr.len, hdr.mesh_flags,
net/wireless/util.c
854
} hdr;
net/wireless/util.c
858
int copy_len = sizeof(hdr.eth);
net/wireless/util.c
861
copy_len = sizeof(hdr);
net/wireless/util.c
872
skb_copy_bits(skb, offset, &hdr, copy_len);
net/wireless/util.c
874
mesh_len = __ieee80211_get_mesh_hdrlen(hdr.flags);
net/wireless/util.c
875
len = ieee80211_amsdu_subframe_length(&hdr.eth.h_proto, hdr.flags,
net/wireless/util.c
886
if (offset == 0 && is_amsdu_aggregation_attack(&hdr.eth, skb, iftype))
net/wireless/util.c
893
if ((check_da && !is_multicast_ether_addr(hdr.eth.h_dest) &&
net/wireless/util.c
894
!ether_addr_equal(check_da, hdr.eth.h_dest)) ||
net/wireless/util.c
895
(check_sa && !ether_addr_equal(check_sa, hdr.eth.h_source))) {
net/wireless/util.c
919
ieee80211_get_8023_tunnel_proto(frame->data, &hdr.eth.h_proto)))
net/wireless/util.c
922
memcpy(skb_push(frame, sizeof(hdr.eth)), &hdr.eth, sizeof(hdr.eth));
net/xdp/xsk_diag.c
181
static int xsk_diag_handler_dump(struct sk_buff *nlskb, struct nlmsghdr *hdr)
net/xdp/xsk_diag.c
187
if (nlmsg_len(hdr) < hdrlen)
net/xdp/xsk_diag.c
190
if (!(hdr->nlmsg_flags & NLM_F_DUMP))
net/xdp/xsk_diag.c
193
return netlink_dump_start(net->diag_nlsk, nlskb, hdr, &c);
samples/bpf/tcp_tos_reflect_kern.c
28
struct iphdr *hdr;
samples/bpf/tcp_tos_reflect_kern.c
54
hdr = (struct iphdr *) header;
samples/bpf/tcp_tos_reflect_kern.c
55
tos = hdr->tos;
samples/fanotify/fs-monitor.c
24
struct fanotify_event_info_header hdr;
samples/fanotify/fs-monitor.c
92
err->hdr.len);
samples/vfio-mdev/mtty.c
1847
struct vfio_irq_set hdr;
samples/vfio-mdev/mtty.c
1853
if (copy_from_user(&hdr, (void __user *)arg, minsz))
samples/vfio-mdev/mtty.c
1856
ret = vfio_set_irqs_validate_and_prepare(&hdr,
samples/vfio-mdev/mtty.c
1870
ret = mtty_set_irqs(mdev_state, hdr.flags, hdr.index, hdr.start,
samples/vfio-mdev/mtty.c
1871
hdr.count, data);
scripts/asn1_compiler.c
1292
static void render(FILE *out, FILE *hdr)
scripts/asn1_compiler.c
1299
fprintf(hdr, "/*\n");
scripts/asn1_compiler.c
1300
fprintf(hdr, " * Automatically generated by asn1_compiler. Do not edit\n");
scripts/asn1_compiler.c
1301
fprintf(hdr, " *\n");
scripts/asn1_compiler.c
1302
fprintf(hdr, " * ASN.1 parser for %s\n", grammar_name);
scripts/asn1_compiler.c
1303
fprintf(hdr, " */\n");
scripts/asn1_compiler.c
1304
fprintf(hdr, "#include <linux/asn1_decoder.h>\n");
scripts/asn1_compiler.c
1305
fprintf(hdr, "\n");
scripts/asn1_compiler.c
1306
fprintf(hdr, "extern const struct asn1_decoder %s_decoder;\n", grammar_name);
scripts/asn1_compiler.c
1307
if (ferror(hdr)) {
scripts/asn1_compiler.c
1326
fprintf(hdr, "\n");
scripts/asn1_compiler.c
1330
fprintf(hdr,
scripts/asn1_compiler.c
1335
fprintf(hdr, "\n");
scripts/asn1_compiler.c
555
static void render(FILE *out, FILE *hdr);
scripts/asn1_compiler.c
564
FILE *out, *hdr;
scripts/asn1_compiler.c
648
hdr = fopen(headername, "w");
scripts/asn1_compiler.c
649
if (!hdr) {
scripts/asn1_compiler.c
654
render(out, hdr);
scripts/asn1_compiler.c
661
if (fclose(hdr) < 0) {
scripts/insert-sys-cert.c
128
s->offset = get_offset_from_address(hdr, s->address);
scripts/insert-sys-cert.c
130
s->content = (void *)hdr + s->offset;
scripts/insert-sys-cert.c
133
static Elf_Sym *find_elf_symbol(Elf_Ehdr *hdr, Elf_Shdr *symtab, char *name)
scripts/insert-sys-cert.c
141
x = (void *)hdr + hdr->e_shoff;
scripts/insert-sys-cert.c
143
symtab_start = (void *)hdr + symtab->sh_offset;
scripts/insert-sys-cert.c
145
strtab = (void *)hdr + x[link].sh_offset;
scripts/insert-sys-cert.c
157
static void get_symbol_from_table(Elf_Ehdr *hdr, Elf_Shdr *symtab,
scripts/insert-sys-cert.c
165
x = (void *)hdr + hdr->e_shoff;
scripts/insert-sys-cert.c
169
elf_sym = find_elf_symbol(hdr, symtab, name);
scripts/insert-sys-cert.c
181
s->content = (void *)hdr + s->offset;
scripts/insert-sys-cert.c
184
static Elf_Shdr *get_symbol_table(Elf_Ehdr *hdr)
scripts/insert-sys-cert.c
189
x = (void *)hdr + hdr->e_shoff;
scripts/insert-sys-cert.c
190
if (hdr->e_shnum == SHN_UNDEF)
scripts/insert-sys-cert.c
193
num_sections = hdr->e_shnum;
scripts/insert-sys-cert.c
260
static void print_sym(Elf_Ehdr *hdr, struct sym *s)
scripts/insert-sys-cert.c
280
Elf_Ehdr *hdr;
scripts/insert-sys-cert.c
314
hdr = map_file(vmlinux_file, &vmlinux_size);
scripts/insert-sys-cert.c
315
if (!hdr)
scripts/insert-sys-cert.c
318
if (vmlinux_size < sizeof(*hdr)) {
scripts/insert-sys-cert.c
323
if ((hdr->e_ident[EI_MAG0] != ELFMAG0) ||
scripts/insert-sys-cert.c
324
(hdr->e_ident[EI_MAG1] != ELFMAG1) ||
scripts/insert-sys-cert.c
325
(hdr->e_ident[EI_MAG2] != ELFMAG2) ||
scripts/insert-sys-cert.c
326
(hdr->e_ident[EI_MAG3] != ELFMAG3)) {
scripts/insert-sys-cert.c
331
if (hdr->e_ident[EI_CLASS] != CURRENT_ELFCLASS) {
scripts/insert-sys-cert.c
336
if (hdr->e_ident[EI_DATA] != endianness()) {
scripts/insert-sys-cert.c
341
if (hdr->e_shoff > vmlinux_size) {
scripts/insert-sys-cert.c
346
symtab = get_symbol_table(hdr);
scripts/insert-sys-cert.c
360
get_symbol_from_map(hdr, system_map, CERT_SYM, &cert_sym);
scripts/insert-sys-cert.c
361
get_symbol_from_map(hdr, system_map, USED_SYM, &used_sym);
scripts/insert-sys-cert.c
362
get_symbol_from_map(hdr, system_map, LSIZE_SYM, &lsize_sym);
scripts/insert-sys-cert.c
368
get_symbol_from_table(hdr, symtab, CERT_SYM, &cert_sym);
scripts/insert-sys-cert.c
369
get_symbol_from_table(hdr, symtab, USED_SYM, &used_sym);
scripts/insert-sys-cert.c
370
get_symbol_from_table(hdr, symtab, LSIZE_SYM, &lsize_sym);
scripts/insert-sys-cert.c
376
print_sym(hdr, &cert_sym);
scripts/insert-sys-cert.c
377
print_sym(hdr, &used_sym);
scripts/insert-sys-cert.c
378
print_sym(hdr, &lsize_sym);
scripts/insert-sys-cert.c
68
static unsigned long get_offset_from_address(Elf_Ehdr *hdr, unsigned long addr)
scripts/insert-sys-cert.c
73
x = (void *)hdr + hdr->e_shoff;
scripts/insert-sys-cert.c
74
if (hdr->e_shnum == SHN_UNDEF)
scripts/insert-sys-cert.c
77
num_sections = hdr->e_shnum;
scripts/insert-sys-cert.c
93
static void get_symbol_from_map(Elf_Ehdr *hdr, FILE *f, char *name,
scripts/mod/modpost.c
1132
if (elf->hdr->e_ident[EI_CLASS] == ELFCLASS64 &&
scripts/mod/modpost.c
1133
elf->hdr->e_machine == EM_PARISC &&
scripts/mod/modpost.c
1321
bool is_64bit = (elf->hdr->e_ident[EI_CLASS] == ELFCLASS64);
scripts/mod/modpost.c
1323
if (elf->hdr->e_machine == EM_MIPS && is_64bit) {
scripts/mod/modpost.c
1357
switch (elf->hdr->e_machine) {
scripts/mod/modpost.c
1400
switch (elf->hdr->e_machine) {
scripts/mod/modpost.c
323
return (void *)info->hdr + sechdr->sh_offset + offset;
scripts/mod/modpost.c
408
Elf_Ehdr *hdr;
scripts/mod/modpost.c
414
hdr = grab_file(filename, &info->size);
scripts/mod/modpost.c
415
if (!hdr) {
scripts/mod/modpost.c
424
info->hdr = hdr;
scripts/mod/modpost.c
425
if (info->size < sizeof(*hdr)) {
scripts/mod/modpost.c
430
if ((hdr->e_ident[EI_MAG0] != ELFMAG0) ||
scripts/mod/modpost.c
431
(hdr->e_ident[EI_MAG1] != ELFMAG1) ||
scripts/mod/modpost.c
432
(hdr->e_ident[EI_MAG2] != ELFMAG2) ||
scripts/mod/modpost.c
433
(hdr->e_ident[EI_MAG3] != ELFMAG3)) {
scripts/mod/modpost.c
438
switch (hdr->e_ident[EI_DATA]) {
scripts/mod/modpost.c
450
hdr->e_type = TO_NATIVE(hdr->e_type);
scripts/mod/modpost.c
451
hdr->e_machine = TO_NATIVE(hdr->e_machine);
scripts/mod/modpost.c
452
hdr->e_version = TO_NATIVE(hdr->e_version);
scripts/mod/modpost.c
453
hdr->e_entry = TO_NATIVE(hdr->e_entry);
scripts/mod/modpost.c
454
hdr->e_phoff = TO_NATIVE(hdr->e_phoff);
scripts/mod/modpost.c
455
hdr->e_shoff = TO_NATIVE(hdr->e_shoff);
scripts/mod/modpost.c
456
hdr->e_flags = TO_NATIVE(hdr->e_flags);
scripts/mod/modpost.c
457
hdr->e_ehsize = TO_NATIVE(hdr->e_ehsize);
scripts/mod/modpost.c
458
hdr->e_phentsize = TO_NATIVE(hdr->e_phentsize);
scripts/mod/modpost.c
459
hdr->e_phnum = TO_NATIVE(hdr->e_phnum);
scripts/mod/modpost.c
460
hdr->e_shentsize = TO_NATIVE(hdr->e_shentsize);
scripts/mod/modpost.c
461
hdr->e_shnum = TO_NATIVE(hdr->e_shnum);
scripts/mod/modpost.c
462
hdr->e_shstrndx = TO_NATIVE(hdr->e_shstrndx);
scripts/mod/modpost.c
463
sechdrs = (void *)hdr + hdr->e_shoff;
scripts/mod/modpost.c
467
if (hdr->e_type != ET_REL)
scripts/mod/modpost.c
471
if (hdr->e_shoff > info->size)
scripts/mod/modpost.c
473
(unsigned long)hdr->e_shoff, filename, info->size);
scripts/mod/modpost.c
475
if (hdr->e_shnum == SHN_UNDEF) {
scripts/mod/modpost.c
483
info->num_sections = hdr->e_shnum;
scripts/mod/modpost.c
485
if (hdr->e_shstrndx == SHN_XINDEX) {
scripts/mod/modpost.c
489
info->secindex_strings = hdr->e_shstrndx;
scripts/mod/modpost.c
506
secstrings = (void *)hdr + sechdrs[info->secindex_strings].sh_offset;
scripts/mod/modpost.c
514
sizeof(*hdr));
scripts/mod/modpost.c
520
info->modinfo = (void *)hdr + sechdrs[i].sh_offset;
scripts/mod/modpost.c
525
info->no_trim_symbol = (void *)hdr + sechdrs[i].sh_offset;
scripts/mod/modpost.c
532
info->symtab_start = (void *)hdr +
scripts/mod/modpost.c
534
info->symtab_stop = (void *)hdr +
scripts/mod/modpost.c
537
info->strtab = (void *)hdr +
scripts/mod/modpost.c
544
info->symtab_shndx_start = (void *)hdr +
scripts/mod/modpost.c
546
info->symtab_shndx_stop = (void *)hdr +
scripts/mod/modpost.c
581
release_file(info->hdr, info->size);
scripts/mod/modpost.c
592
if (info->hdr->e_machine == EM_PPC)
scripts/mod/modpost.c
601
if (info->hdr->e_machine == EM_PPC64)
scripts/mod/modpost.c
639
if (info->hdr->e_machine == EM_SPARC ||
scripts/mod/modpost.c
640
info->hdr->e_machine == EM_SPARCV9) {
scripts/mod/modpost.h
142
Elf_Ehdr *hdr;
scripts/mod/symsearch.c
72
bool is_arm = (elf->hdr->e_machine == EM_ARM);
security/integrity/digsig_asymmetric.c
102
key = request_asymmetric_key(keyring, be32_to_cpu(hdr->keyid));
security/integrity/digsig_asymmetric.c
108
pks.hash_algo = hash_algo_name[hdr->hash_algo];
security/integrity/digsig_asymmetric.c
126
pks.s = hdr->sig;
security/integrity/digsig_asymmetric.c
86
struct signature_v2_hdr *hdr = (struct signature_v2_hdr *)sig;
security/integrity/digsig_asymmetric.c
91
if (siglen <= sizeof(*hdr))
security/integrity/digsig_asymmetric.c
94
siglen -= sizeof(*hdr);
security/integrity/digsig_asymmetric.c
96
if (siglen != be16_to_cpu(hdr->sig_size))
security/integrity/digsig_asymmetric.c
99
if (hdr->hash_algo >= HASH_ALGO__LAST)
security/integrity/evm/evm.h
65
struct ima_digest_data_hdr hdr;
security/integrity/evm/evm_crypto.c
242
desc = init_desc(type, data->hdr.algo);
security/integrity/evm/evm_crypto.c
246
data->hdr.length = crypto_shash_digestsize(desc->tfm);
security/integrity/evm/evm_crypto.c
385
data.hdr.algo = HASH_ALGO_SHA1;
security/integrity/evm/evm_crypto.c
389
data.hdr.xattr.sha1.type = EVM_XATTR_HMAC;
security/integrity/evm/evm_crypto.c
392
&data.hdr.xattr.data[1],
security/integrity/evm/evm_main.c
184
struct signature_v2_hdr *hdr;
security/integrity/evm/evm_main.c
232
digest.hdr.algo = HASH_ALGO_SHA1;
security/integrity/evm/evm_main.c
252
hdr = (struct signature_v2_hdr *)xattr_data;
security/integrity/evm/evm_main.c
253
digest.hdr.algo = hdr->hash_algo;
security/integrity/evm/evm_main.c
261
digest.digest, digest.hdr.length);
security/integrity/evm/evm_main.c
290
pr_debug("digest: (%d) [%*phN]\n", digest.hdr.length, digest.hdr.length,
security/integrity/ima/ima_api.c
228
hash->hdr.algo = alg;
security/integrity/ima/ima_api.c
229
hash->hdr.length = digest_len;
security/integrity/ima/ima_api.c
251
struct ima_digest_data *hash_hdr = container_of(&hash.hdr,
security/integrity/ima/ima_api.c
252
struct ima_digest_data, hdr);
security/integrity/ima/ima_api.c
281
hash.hdr.algo = algo;
security/integrity/ima/ima_api.c
282
hash.hdr.length = hash_digest_size[algo];
security/integrity/ima/ima_api.c
301
length = sizeof(hash.hdr) + hash.hdr.length;
security/integrity/ima/ima_appraise.c
383
container_of(&hash.hdr,
security/integrity/ima/ima_appraise.c
384
struct ima_digest_data, hdr));
security/integrity/ima/ima_appraise.c
394
hash.hdr.length);
security/integrity/ima/ima_init.c
51
struct ima_digest_data *hash_hdr = container_of(&hash.hdr,
security/integrity/ima/ima_init.c
52
struct ima_digest_data, hdr);
security/integrity/ima/ima_main.c
1060
struct ima_digest_data *hash_hdr = container_of(&hash.hdr,
security/integrity/ima/ima_main.c
1061
struct ima_digest_data, hdr);
security/integrity/ima/ima_modsig.c
45
struct modsig *hdr;
security/integrity/ima/ima_modsig.c
68
hdr = kzalloc_flex(*hdr, raw_pkcs7, sig_len);
security/integrity/ima/ima_modsig.c
69
if (!hdr)
security/integrity/ima/ima_modsig.c
72
hdr->raw_pkcs7_len = sig_len;
security/integrity/ima/ima_modsig.c
73
hdr->pkcs7_msg = pkcs7_parse_message(buf + buf_len, sig_len);
security/integrity/ima/ima_modsig.c
74
if (IS_ERR(hdr->pkcs7_msg)) {
security/integrity/ima/ima_modsig.c
75
rc = PTR_ERR(hdr->pkcs7_msg);
security/integrity/ima/ima_modsig.c
76
kfree(hdr);
security/integrity/ima/ima_modsig.c
80
memcpy(hdr->raw_pkcs7, buf + buf_len, sig_len);
security/integrity/ima/ima_modsig.c
83
hdr->hash_algo = HASH_ALGO__LAST;
security/integrity/ima/ima_modsig.c
85
*modsig = hdr;
security/integrity/ima/ima_template.c
421
struct ima_field_data hdr[HDR__LAST] = {
security/integrity/ima/ima_template.c
467
ret = ima_parse_buf(bufp, bufendp, &bufp, HDR__LAST, hdr, NULL,
security/integrity/ima/ima_template.c
472
if (hdr[HDR_TEMPLATE_NAME].len >= MAX_TEMPLATE_NAME_LEN) {
security/integrity/ima/ima_template.c
479
memcpy(template_name, hdr[HDR_TEMPLATE_NAME].data,
security/integrity/ima/ima_template.c
480
hdr[HDR_TEMPLATE_NAME].len);
security/integrity/ima/ima_template.c
481
template_name[hdr[HDR_TEMPLATE_NAME].len] = 0;
security/integrity/ima/ima_template.c
512
hdr[HDR_TEMPLATE_DATA].data,
security/integrity/ima/ima_template.c
513
hdr[HDR_TEMPLATE_DATA].len,
security/integrity/ima/ima_template.c
518
if (memcmp(hdr[HDR_DIGEST].data, zero, sizeof(zero))) {
security/integrity/ima/ima_template.c
529
entry->pcr = !ima_canonical_fmt ? *(u32 *)(hdr[HDR_PCR].data) :
security/integrity/ima/ima_template.c
530
le32_to_cpu(*(__le32 *)(hdr[HDR_PCR].data));
security/integrity/ima/ima_template_lib.c
348
struct ima_digest_data *hash_hdr = container_of(&hash.hdr,
security/integrity/ima/ima_template_lib.c
349
struct ima_digest_data, hdr);
security/integrity/ima/ima_template_lib.c
368
hash.hdr.algo = HASH_ALGO_SHA1;
security/integrity/ima/ima_template_lib.c
372
if (!result && hash.hdr.algo != HASH_ALGO_SHA1)
security/integrity/ima/ima_template_lib.c
388
hash.hdr.algo = ima_template_hash_algo_allowed(ima_hash_algo) ?
security/integrity/ima/ima_template_lib.c
398
cur_digestsize = hash.hdr.length;
security/integrity/integrity.h
35
__struct_group(evm_ima_xattr_data_hdr, hdr, __packed,
security/integrity/integrity.h
53
__struct_group(ima_digest_data_hdr, hdr, __packed,
security/integrity/integrity.h
78
struct ima_digest_data_hdr hdr;
security/smack/smack_lsm.c
4455
struct iphdr *hdr;
security/smack/smack_lsm.c
4515
hdr = ip_hdr(skb);
security/smack/smack_lsm.c
4516
addr.sin_addr.s_addr = hdr->saddr;
sound/hda/codecs/ca0132.c
2214
unsigned int hdr;
sound/hda/codecs/ca0132.c
2316
memcpy(&ret_msg->hdr, &spec->scp_resp_header, 4);
sound/hda/codecs/ca0132.c
2370
scp_send.hdr = make_scp_header(mod_id, src_id, (dir == SCP_GET), req,
sound/hda/codecs/ca0132.c
2389
extract_scp_header(scp_send.hdr, NULL, NULL, &send_get_flag,
sound/hda/codecs/ca0132.c
2391
extract_scp_header(scp_reply.hdr, NULL, NULL, NULL, NULL, NULL,
sound/hda/codecs/ca0132.c
2399
ret_size = (ret_bytes - sizeof(scp_reply.hdr))
sound/hda/codecs/side-codecs/cs35l41_hda.c
511
offset += le32_to_cpu(param->hdr.size);
sound/hda/codecs/side-codecs/cs35l41_hda.c
516
switch (le32_to_cpu(param->hdr.type)) {
sound/hda/codecs/side-codecs/cs35l41_hda.c
52
struct cs35l41_tuning_param_hdr hdr;
sound/isa/sb/emu8000_local.h
20
struct snd_util_memhdr *hdr,
sound/isa/sb/emu8000_local.h
23
struct snd_util_memhdr *hdr);
sound/isa/sb/emu8000_patch.c
137
struct snd_util_memhdr *hdr,
sound/isa/sb/emu8000_patch.c
158
sp->block = snd_util_mem_alloc(hdr, truesize * 2);
sound/isa/sb/emu8000_patch.c
261
struct snd_util_memhdr *hdr)
sound/isa/sb/emu8000_patch.c
264
snd_util_mem_free(hdr, sp->block);
sound/isa/wavefront/wavefront_synth.c
1003
WF_GET_CHANNEL (&header->hdr.s),
sound/isa/wavefront/wavefront_synth.c
1008
WF_SET_CHANNEL(&header->hdr.s, 0);
sound/isa/wavefront/wavefront_synth.c
1034
shptr = munge_int32 (*((u32 *) &header->hdr.s.sampleStartOffset),
sound/isa/wavefront/wavefront_synth.c
1036
shptr = munge_int32 (*((u32 *) &header->hdr.s.loopStartOffset),
sound/isa/wavefront/wavefront_synth.c
1038
shptr = munge_int32 (*((u32 *) &header->hdr.s.loopEndOffset),
sound/isa/wavefront/wavefront_synth.c
1040
shptr = munge_int32 (*((u32 *) &header->hdr.s.sampleEndOffset),
sound/isa/wavefront/wavefront_synth.c
1048
shptr = munge_int32 (header->hdr.s.FrequencyBias, shptr, 3);
sound/isa/wavefront/wavefront_synth.c
1055
shptr = munge_int32 (*(&header->hdr.s.FrequencyBias+1),
sound/isa/wavefront/wavefront_synth.c
1103
if (WF_SAMPLE_IS_8BIT(&header->hdr.s)) {
sound/isa/wavefront/wavefront_synth.c
1181
header->hdr.a.OriginalSample);
sound/isa/wavefront/wavefront_synth.c
1187
munge_int32 (header->hdr.a.OriginalSample, &alias_hdr[2], 2);
sound/isa/wavefront/wavefront_synth.c
1188
munge_int32 (*((unsigned int *)&header->hdr.a.sampleStartOffset),
sound/isa/wavefront/wavefront_synth.c
1190
munge_int32 (*((unsigned int *)&header->hdr.a.loopStartOffset),
sound/isa/wavefront/wavefront_synth.c
1192
munge_int32 (*((unsigned int *)&header->hdr.a.loopEndOffset),
sound/isa/wavefront/wavefront_synth.c
1194
munge_int32 (*((unsigned int *)&header->hdr.a.sampleEndOffset),
sound/isa/wavefront/wavefront_synth.c
1196
munge_int32 (header->hdr.a.FrequencyBias, &alias_hdr[20], 3);
sound/isa/wavefront/wavefront_synth.c
1197
munge_int32 (*(&header->hdr.a.FrequencyBias+1), &alias_hdr[23], 2);
sound/isa/wavefront/wavefront_synth.c
1230
num_samples = (1<<(header->hdr.ms.NumberOfSamples&7));
sound/isa/wavefront/wavefront_synth.c
1231
msample_hdr[2] = (unsigned char) header->hdr.ms.NumberOfSamples;
sound/isa/wavefront/wavefront_synth.c
1235
header->hdr.ms.NumberOfSamples,
sound/isa/wavefront/wavefront_synth.c
1240
i, header->hdr.ms.SampleNumber[i]);
sound/isa/wavefront/wavefront_synth.c
1241
munge_int32 (header->hdr.ms.SampleNumber[i],
sound/isa/wavefront/wavefront_synth.c
1283
header->hdr.ms.NumberOfSamples = log_ns[0];
sound/isa/wavefront/wavefront_synth.c
1309
header->hdr.ms.SampleNumber[i] =
sound/isa/wavefront/wavefront_synth.c
1313
i, header->hdr.ms.SampleNumber[i]);
sound/isa/wavefront/wavefront_synth.c
1325
wavefront_drum *drum = &header->hdr.d;
sound/isa/wavefront/wavefront_synth.c
1406
if (copy_from_user (&header->hdr.s, header->hdrptr,
sound/isa/wavefront/wavefront_synth.c
1417
if (copy_from_user (&header->hdr.s, header->hdrptr,
sound/isa/wavefront/wavefront_synth.c
1428
if (copy_from_user (&header->hdr.a, header->hdrptr,
sound/isa/wavefront/wavefront_synth.c
1438
if (copy_from_user (&header->hdr.d, header->hdrptr,
sound/isa/wavefront/wavefront_synth.c
1448
if (copy_from_user (&header->hdr.p, header->hdrptr,
sound/isa/wavefront/wavefront_synth.c
1458
if (copy_from_user (&header->hdr.pr, header->hdrptr,
sound/isa/wavefront/wavefront_synth.c
798
munge_buf ((unsigned char *)&header->hdr.p, bptr, WF_PATCH_BYTES);
sound/isa/wavefront/wavefront_synth.c
828
if (header->hdr.pr.layer[i].mute) {
sound/isa/wavefront/wavefront_synth.c
829
dev->patch_status[header->hdr.pr.layer[i].patch_number] |=
sound/isa/wavefront/wavefront_synth.c
839
munge_buf ((unsigned char *)&header->hdr.pr, &buf[1], WF_PROGRAM_BYTES);
sound/isa/wavefront/wavefront_synth.c
962
skip = WF_GET_CHANNEL(&header->hdr.s);
sound/isa/wavefront/wavefront_synth.c
964
if (skip > 0 && header->hdr.s.SampleResolution != LINEAR_16BIT) {
sound/pci/emu10k1/emu10k1_patch.c
156
struct snd_util_memhdr *hdr)
sound/pci/emu10k1/emu10k1_patch.c
161
if (snd_BUG_ON(!sp || !hdr))
sound/pci/emu10k1/emu10k1_patch.c
26
struct snd_util_memhdr *hdr,
sound/pci/emu10k1/emu10k1_patch.c
38
if (snd_BUG_ON(!sp || !hdr))
sound/pci/emu10k1/emu10k1_synth_local.h
17
struct snd_util_memhdr *hdr,
sound/pci/emu10k1/emu10k1_synth_local.h
21
struct snd_util_memhdr *hdr);
sound/pci/emu10k1/memory.c
302
struct snd_util_memhdr *hdr;
sound/pci/emu10k1/memory.c
311
hdr = emu->memhdr;
sound/pci/emu10k1/memory.c
312
if (snd_BUG_ON(!hdr))
sound/pci/emu10k1/memory.c
315
guard(mutex)(&hdr->block_mutex);
sound/pci/emu10k1/memory.c
343
__snd_util_mem_free(hdr, (struct snd_util_memblk *)blk);
sound/pci/emu10k1/memory.c
400
struct snd_util_memhdr *hdr = hw->memhdr;
sound/pci/emu10k1/memory.c
402
guard(mutex)(&hdr->block_mutex);
sound/pci/emu10k1/memory.c
403
blk = (struct snd_emu10k1_memblk *)__snd_util_mem_alloc(hdr, size);
sound/pci/emu10k1/memory.c
407
__snd_util_mem_free(hdr, (struct snd_util_memblk *)blk);
sound/pci/emu10k1/memory.c
422
struct snd_util_memhdr *hdr = emu->memhdr;
sound/pci/emu10k1/memory.c
425
guard(mutex)(&hdr->block_mutex);
sound/pci/emu10k1/memory.c
431
__snd_util_mem_free(hdr, memblk);
sound/pci/emu10k1/memory.c
438
static void get_single_page_range(struct snd_util_memhdr *hdr,
sound/pci/emu10k1/memory.c
447
if (p != &hdr->block) {
sound/pci/emu10k1/memory.c
454
if (p != &hdr->block) {
sound/pci/trident/trident_memory.c
108
search_empty(struct snd_util_memhdr *hdr, int size)
sound/pci/trident/trident_memory.c
116
list_for_each(p, &hdr->block) {
sound/pci/trident/trident_memory.c
127
blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev);
sound/pci/trident/trident_memory.c
160
struct snd_util_memhdr *hdr;
sound/pci/trident/trident_memory.c
169
hdr = trident->tlb.memhdr;
sound/pci/trident/trident_memory.c
170
if (snd_BUG_ON(!hdr))
sound/pci/trident/trident_memory.c
175
guard(mutex)(&hdr->block_mutex);
sound/pci/trident/trident_memory.c
176
blk = search_empty(hdr, runtime->dma_bytes);
sound/pci/trident/trident_memory.c
186
__snd_util_mem_free(hdr, blk);
sound/pci/trident/trident_memory.c
201
struct snd_util_memhdr *hdr;
sound/pci/trident/trident_memory.c
211
hdr = trident->tlb.memhdr;
sound/pci/trident/trident_memory.c
212
if (snd_BUG_ON(!hdr))
sound/pci/trident/trident_memory.c
215
guard(mutex)(&hdr->block_mutex);
sound/pci/trident/trident_memory.c
216
blk = search_empty(hdr, runtime->dma_bytes);
sound/pci/trident/trident_memory.c
225
__snd_util_mem_free(hdr, blk);
sound/pci/trident/trident_memory.c
255
struct snd_util_memhdr *hdr;
sound/pci/trident/trident_memory.c
261
hdr = trident->tlb.memhdr;
sound/pci/trident/trident_memory.c
262
guard(mutex)(&hdr->block_mutex);
sound/pci/trident/trident_memory.c
267
__snd_util_mem_free(hdr, blk);
sound/soc/codecs/fs-amp-lib.c
148
if (!amp_lib || !amp_lib->dev || !amp_lib->hdr)
sound/soc/codecs/fs-amp-lib.c
152
table = (struct fs_fwm_table *)amp_lib->hdr->params;
sound/soc/codecs/fs-amp-lib.c
173
const struct fs_fwm_header *hdr;
sound/soc/codecs/fs-amp-lib.c
176
if (!amp_lib || !amp_lib->dev || !amp_lib->hdr)
sound/soc/codecs/fs-amp-lib.c
179
hdr = amp_lib->hdr;
sound/soc/codecs/fs-amp-lib.c
182
crcsum = crc16(0x0000, (const char *)&hdr->crc_size, hdr->crc_size);
sound/soc/codecs/fs-amp-lib.c
183
if (crcsum != hdr->crc16) {
sound/soc/codecs/fs-amp-lib.c
185
crcsum, hdr->crc16);
sound/soc/codecs/fs-amp-lib.c
190
if (amp_lib->devid != LO_U16(hdr->chip_type)) {
sound/soc/codecs/fs-amp-lib.c
192
amp_lib->devid, hdr->chip_type);
sound/soc/codecs/fs-amp-lib.c
201
const struct fs_fwm_header *hdr;
sound/soc/codecs/fs-amp-lib.c
205
if (!amp_lib || !amp_lib->dev || !amp_lib->hdr)
sound/soc/codecs/fs-amp-lib.c
208
hdr = amp_lib->hdr;
sound/soc/codecs/fs-amp-lib.c
210
fs_get_fwm_string(amp_lib, hdr->project, &pro_name);
sound/soc/codecs/fs-amp-lib.c
211
fs_get_fwm_string(amp_lib, hdr->device, &dev_name);
sound/soc/codecs/fs-amp-lib.c
218
hdr->date.year, hdr->date.month, hdr->date.day,
sound/soc/codecs/fs-amp-lib.c
219
hdr->date.hour, hdr->date.minute);
sound/soc/codecs/fs-amp-lib.c
225
struct fs_fwm_header *hdr;
sound/soc/codecs/fs-amp-lib.c
239
hdr = devm_kmemdup(amp_lib->dev, cont->data, cont->size, GFP_KERNEL);
sound/soc/codecs/fs-amp-lib.c
241
if (!hdr)
sound/soc/codecs/fs-amp-lib.c
244
amp_lib->hdr = hdr;
sound/soc/codecs/fs-amp-lib.c
247
amp_lib->hdr = NULL;
sound/soc/codecs/fs-amp-lib.c
253
amp_lib->hdr = NULL;
sound/soc/codecs/fs-amp-lib.h
140
const struct fs_fwm_header *hdr;
sound/soc/codecs/tas2783-sdw.c
704
static s32 tas_fw_read_hdr(const u8 *data, struct tas_fw_hdr *hdr)
sound/soc/codecs/tas2783-sdw.c
706
hdr->size = get_unaligned_le32(data);
sound/soc/codecs/tas2783-sdw.c
707
hdr->version_offset = get_unaligned_le32(&data[4]);
sound/soc/codecs/tas2783-sdw.c
708
hdr->plt_id = get_unaligned_le32(&data[8]);
sound/soc/codecs/tas2783-sdw.c
709
hdr->ppc3_ver = get_unaligned_le32(&data[12]);
sound/soc/codecs/tas2783-sdw.c
710
memcpy(hdr->ddc_name, &data[16], 64);
sound/soc/codecs/tas2783-sdw.c
711
hdr->timestamp = get_unaligned_le32(&data[80]);
sound/soc/codecs/tas2783-sdw.c
736
struct tas_fw_hdr *hdr __free(kfree) = kzalloc_obj(*hdr);
sound/soc/codecs/tas2783-sdw.c
738
if (!file || !hdr) {
sound/soc/codecs/tas2783-sdw.c
754
offset += tas_fw_read_hdr(buf, hdr);
sound/soc/codecs/tas2783-sdw.c
755
if (hdr->size != img_sz) {
sound/soc/fsl/fsl_easrc.c
309
struct asrc_firmware_hdr *hdr = easrc_priv->firmware_hdr;
sound/soc/fsl/fsl_easrc.c
318
if (!hdr) {
sound/soc/fsl/fsl_easrc.c
323
for (i = 0; i < hdr->interp_scen; i++) {
sound/soc/fsl/fsl_easrc.c
481
struct asrc_firmware_hdr *hdr;
sound/soc/fsl/fsl_easrc.c
579
hdr = easrc_priv->firmware_hdr;
sound/soc/fsl/fsl_easrc.c
582
for (i = 0; i < hdr->prefil_scen; i++) {
sound/soc/intel/avs/messages.h
237
#define AVS_MSG(hdr) { .val = hdr }
sound/soc/intel/avs/messages.h
261
#define avs_msg_is_reply(hdr) \
sound/soc/intel/avs/messages.h
263
union avs_reply_msg __msg = AVS_MSG(hdr); \
sound/soc/intel/avs/topology.c
2156
struct snd_soc_tplg_ctl_hdr *hdr)
sound/soc/intel/avs/topology.c
2165
switch (le32_to_cpu(hdr->type)) {
sound/soc/intel/avs/topology.c
2173
tmc = container_of(hdr, typeof(*tmc), hdr);
sound/soc/intel/catpt/dsp.c
455
struct catpt_dump_section_hdr *hdr;
sound/soc/intel/catpt/dsp.c
469
dump_size += 4 * sizeof(*hdr) + CATPT_DUMP_HASH_SIZE;
sound/soc/intel/catpt/dsp.c
477
hdr = (struct catpt_dump_section_hdr *)pos;
sound/soc/intel/catpt/dsp.c
478
hdr->magic = CATPT_DUMP_MAGIC;
sound/soc/intel/catpt/dsp.c
479
hdr->core_id = cdev->spec->core_id;
sound/soc/intel/catpt/dsp.c
480
hdr->section_id = CATPT_DUMP_SECTION_ID_FILE;
sound/soc/intel/catpt/dsp.c
481
hdr->size = dump_size - sizeof(*hdr);
sound/soc/intel/catpt/dsp.c
482
pos += sizeof(*hdr);
sound/soc/intel/catpt/dsp.c
498
hdr = (struct catpt_dump_section_hdr *)pos;
sound/soc/intel/catpt/dsp.c
499
hdr->magic = CATPT_DUMP_MAGIC;
sound/soc/intel/catpt/dsp.c
500
hdr->core_id = cdev->spec->core_id;
sound/soc/intel/catpt/dsp.c
501
hdr->section_id = CATPT_DUMP_SECTION_ID_IRAM;
sound/soc/intel/catpt/dsp.c
502
hdr->size = resource_size(&cdev->iram);
sound/soc/intel/catpt/dsp.c
503
pos += sizeof(*hdr);
sound/soc/intel/catpt/dsp.c
505
memcpy_fromio(pos, cdev->lpe_ba + cdev->iram.start, hdr->size);
sound/soc/intel/catpt/dsp.c
506
pos += hdr->size;
sound/soc/intel/catpt/dsp.c
508
hdr = (struct catpt_dump_section_hdr *)pos;
sound/soc/intel/catpt/dsp.c
509
hdr->magic = CATPT_DUMP_MAGIC;
sound/soc/intel/catpt/dsp.c
510
hdr->core_id = cdev->spec->core_id;
sound/soc/intel/catpt/dsp.c
511
hdr->section_id = CATPT_DUMP_SECTION_ID_DRAM;
sound/soc/intel/catpt/dsp.c
512
hdr->size = resource_size(&cdev->dram);
sound/soc/intel/catpt/dsp.c
513
pos += sizeof(*hdr);
sound/soc/intel/catpt/dsp.c
515
memcpy_fromio(pos, cdev->lpe_ba + cdev->dram.start, hdr->size);
sound/soc/intel/catpt/dsp.c
516
pos += hdr->size;
sound/soc/intel/catpt/dsp.c
518
hdr = (struct catpt_dump_section_hdr *)pos;
sound/soc/intel/catpt/dsp.c
519
hdr->magic = CATPT_DUMP_MAGIC;
sound/soc/intel/catpt/dsp.c
520
hdr->core_id = cdev->spec->core_id;
sound/soc/intel/catpt/dsp.c
521
hdr->section_id = CATPT_DUMP_SECTION_ID_REGS;
sound/soc/intel/catpt/dsp.c
522
hdr->size = regs_size;
sound/soc/intel/catpt/dsp.c
523
pos += sizeof(*hdr);
sound/soc/intel/catpt/messages.h
367
u32 hdr:3; /* fw_ready, done, busy */
sound/soc/intel/catpt/messages.h
54
#define CATPT_MSG(hdr) { .val = hdr }
sound/soc/qcom/qdsp6/audioreach.c
245
pkt->hdr.version = GPR_PKT_VER;
sound/soc/qcom/qdsp6/audioreach.c
246
pkt->hdr.hdr_size = GPR_PKT_HEADER_WORD_SIZE;
sound/soc/qcom/qdsp6/audioreach.c
247
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/audioreach.c
248
pkt->hdr.dest_port = dest_port;
sound/soc/qcom/qdsp6/audioreach.c
249
pkt->hdr.src_port = src_port;
sound/soc/qcom/qdsp6/audioreach.c
251
pkt->hdr.dest_domain = GPR_DOMAIN_ID_ADSP;
sound/soc/qcom/qdsp6/audioreach.c
252
pkt->hdr.src_domain = GPR_DOMAIN_ID_APPS;
sound/soc/qcom/qdsp6/audioreach.c
253
pkt->hdr.token = token;
sound/soc/qcom/qdsp6/audioreach.c
254
pkt->hdr.opcode = opcode;
sound/soc/qcom/qdsp6/audioreach.c
585
struct gpr_hdr *hdr = &pkt->hdr;
sound/soc/qcom/qdsp6/audioreach.c
603
rc = wait_event_timeout(*cmd_wait, (result->opcode == hdr->opcode) ||
sound/soc/qcom/qdsp6/audioreach.c
606
rc = wait_event_timeout(*cmd_wait, (result->opcode == hdr->opcode), 5 * HZ);
sound/soc/qcom/qdsp6/audioreach.c
609
dev_err(dev, "CMD timeout for [%x] opcode\n", hdr->opcode);
sound/soc/qcom/qdsp6/audioreach.c
612
dev_err(dev, "DSP returned error[%x] %x\n", hdr->opcode, result->status);
sound/soc/qcom/qdsp6/q6adm.c
116
uint32_t opcode = pkt->hdr.opcode;
sound/soc/qcom/qdsp6/q6adm.c
159
close.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6adm.c
162
close.hdr.pkt_size = sizeof(close);
sound/soc/qcom/qdsp6/q6adm.c
163
close.hdr.src_port = port_id;
sound/soc/qcom/qdsp6/q6adm.c
164
close.hdr.dest_port = copp->id;
sound/soc/qcom/qdsp6/q6adm.c
165
close.hdr.token = port_id << 16 | copp_idx;
sound/soc/qcom/qdsp6/q6adm.c
166
close.hdr.opcode = ADM_CMD_DEVICE_CLOSE_V5;
sound/soc/qcom/qdsp6/q6adm.c
193
const struct apr_hdr *hdr = &data->hdr;
sound/soc/qcom/qdsp6/q6adm.c
200
copp_idx = (hdr->token) & 0XFF;
sound/soc/qcom/qdsp6/q6adm.c
201
port_idx = ((hdr->token) >> 16) & 0xFF;
sound/soc/qcom/qdsp6/q6adm.c
204
port_idx, hdr->token);
sound/soc/qcom/qdsp6/q6adm.c
209
copp_idx, hdr->token);
sound/soc/qcom/qdsp6/q6adm.c
213
switch (hdr->opcode) {
sound/soc/qcom/qdsp6/q6adm.c
261
copp->result.opcode = hdr->opcode;
sound/soc/qcom/qdsp6/q6adm.c
269
hdr->opcode);
sound/soc/qcom/qdsp6/q6adm.c
341
pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6adm.c
344
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6adm.c
345
pkt->hdr.src_port = afe_port;
sound/soc/qcom/qdsp6/q6adm.c
346
pkt->hdr.dest_port = afe_port;
sound/soc/qcom/qdsp6/q6adm.c
347
pkt->hdr.token = port_id << 16 | copp->copp_idx;
sound/soc/qcom/qdsp6/q6adm.c
348
pkt->hdr.opcode = ADM_CMD_DEVICE_OPEN_V5;
sound/soc/qcom/qdsp6/q6adm.c
480
pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6adm.c
483
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6adm.c
484
pkt->hdr.token = 0;
sound/soc/qcom/qdsp6/q6adm.c
485
pkt->hdr.opcode = ADM_CMD_MATRIX_MAP_ROUTINGS_V5;
sound/soc/qcom/qdsp6/q6adm.c
532
adm->result.opcode == pkt->hdr.opcode,
sound/soc/qcom/qdsp6/q6afe.c
1089
pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6afe.c
1092
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6afe.c
1093
pkt->hdr.src_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1094
pkt->hdr.dest_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1095
pkt->hdr.token = token;
sound/soc/qcom/qdsp6/q6afe.c
1096
pkt->hdr.opcode = AFE_SVC_CMD_SET_PARAM;
sound/soc/qcom/qdsp6/q6afe.c
1141
pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6afe.c
1144
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6afe.c
1145
pkt->hdr.src_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1146
pkt->hdr.dest_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1147
pkt->hdr.token = port->token;
sound/soc/qcom/qdsp6/q6afe.c
1148
pkt->hdr.opcode = AFE_PORT_CMD_SET_PARAM_V2;
sound/soc/qcom/qdsp6/q6afe.c
1295
pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6afe.c
1298
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6afe.c
1299
pkt->hdr.src_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1300
pkt->hdr.dest_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1301
pkt->hdr.token = index;
sound/soc/qcom/qdsp6/q6afe.c
1302
pkt->hdr.opcode = AFE_PORT_CMD_DEVICE_STOP;
sound/soc/qcom/qdsp6/q6afe.c
1698
pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6afe.c
1701
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6afe.c
1702
pkt->hdr.src_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1703
pkt->hdr.dest_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1704
pkt->hdr.token = port->token;
sound/soc/qcom/qdsp6/q6afe.c
1705
pkt->hdr.opcode = AFE_PORT_CMD_DEVICE_START;
sound/soc/qcom/qdsp6/q6afe.c
1843
pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6afe.c
1846
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6afe.c
1847
pkt->hdr.src_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1848
pkt->hdr.dest_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1849
pkt->hdr.token = hw_block_id;
sound/soc/qcom/qdsp6/q6afe.c
1850
pkt->hdr.opcode = AFE_CMD_REMOTE_LPASS_CORE_HW_DEVOTE_REQUEST;
sound/soc/qcom/qdsp6/q6afe.c
1878
pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6afe.c
1881
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6afe.c
1882
pkt->hdr.src_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1883
pkt->hdr.dest_port = 0;
sound/soc/qcom/qdsp6/q6afe.c
1884
pkt->hdr.token = hw_block_id;
sound/soc/qcom/qdsp6/q6afe.c
1885
pkt->hdr.opcode = AFE_CMD_REMOTE_LPASS_CORE_HW_VOTE_REQUEST;
sound/soc/qcom/qdsp6/q6afe.c
963
const struct apr_hdr *hdr = &data->hdr;
sound/soc/qcom/qdsp6/q6afe.c
970
switch (hdr->opcode) {
sound/soc/qcom/qdsp6/q6afe.c
981
port = q6afe_find_port(afe, hdr->token);
sound/soc/qcom/qdsp6/q6afe.c
986
} else if (hdr->token == AFE_CLK_TOKEN) {
sound/soc/qcom/qdsp6/q6afe.c
998
afe->result.opcode = hdr->opcode;
sound/soc/qcom/qdsp6/q6apm.c
500
const struct gpr_hdr *hdr = &data->hdr;
sound/soc/qcom/qdsp6/q6apm.c
508
switch (hdr->opcode) {
sound/soc/qcom/qdsp6/q6apm.c
514
token = hdr->token & APM_WRITE_TOKEN_MASK;
sound/soc/qcom/qdsp6/q6apm.c
523
graph->result.opcode = hdr->opcode;
sound/soc/qcom/qdsp6/q6apm.c
526
graph->cb(client_event, hdr->token, data->payload, graph->priv);
sound/soc/qcom/qdsp6/q6apm.c
534
graph->result.opcode = hdr->opcode;
sound/soc/qcom/qdsp6/q6apm.c
538
if (hdr->token == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/qdsp6/q6apm.c
551
phys = graph->tx_data.buf[hdr->token].phys;
sound/soc/qcom/qdsp6/q6apm.c
554
atomic_set(&graph->tx_data.hw_ptr, hdr->token + 1);
sound/soc/qcom/qdsp6/q6apm.c
558
graph->result.opcode = hdr->opcode;
sound/soc/qcom/qdsp6/q6apm.c
561
graph->cb(client_event, hdr->token, data->payload, graph->priv);
sound/soc/qcom/qdsp6/q6apm.c
570
graph->cb(client_event, hdr->token, data->payload, graph->priv);
sound/soc/qcom/qdsp6/q6apm.c
577
if (hdr->token == SNDRV_PCM_STREAM_PLAYBACK)
sound/soc/qcom/qdsp6/q6apm.c
774
const struct gpr_hdr *hdr = &data->hdr;
sound/soc/qcom/qdsp6/q6apm.c
778
switch (hdr->opcode) {
sound/soc/qcom/qdsp6/q6apm.c
780
apm->result.opcode = hdr->opcode;
sound/soc/qcom/qdsp6/q6asm.c
1017
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1019
pkt->hdr.opcode = ASM_SESSION_CMD_RUN_V2;
sound/soc/qcom/qdsp6/q6asm.c
1100
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1102
pkt->hdr.opcode = ASM_DATA_CMD_MEDIA_FMT_UPDATE_V2;
sound/soc/qcom/qdsp6/q6asm.c
1139
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1141
pkt->hdr.opcode = ASM_DATA_CMD_MEDIA_FMT_UPDATE_V2;
sound/soc/qcom/qdsp6/q6asm.c
1171
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1173
pkt->hdr.opcode = ASM_DATA_CMD_MEDIA_FMT_UPDATE_V2;
sound/soc/qcom/qdsp6/q6asm.c
1204
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1206
pkt->hdr.opcode = ASM_DATA_CMD_MEDIA_FMT_UPDATE_V2;
sound/soc/qcom/qdsp6/q6asm.c
1238
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1240
pkt->hdr.opcode = ASM_DATA_CMD_MEDIA_FMT_UPDATE_V2;
sound/soc/qcom/qdsp6/q6asm.c
1275
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1277
pkt->hdr.opcode = ASM_DATA_CMD_MEDIA_FMT_UPDATE_V2;
sound/soc/qcom/qdsp6/q6asm.c
1310
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1312
pkt->hdr.opcode = cmd;
sound/soc/qcom/qdsp6/q6asm.c
1368
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1370
pkt->hdr.opcode = ASM_STREAM_CMD_SET_ENCDEC_PARAM;
sound/soc/qcom/qdsp6/q6asm.c
1418
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, false, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1420
pkt->hdr.opcode = ASM_DATA_CMD_READ_V2;
sound/soc/qcom/qdsp6/q6asm.c
1427
pkt->hdr.token = port->dsp_buf;
sound/soc/qcom/qdsp6/q6asm.c
1439
pr_err("read op[0x%x]rc[%d]\n", pkt->hdr.opcode, rc);
sound/soc/qcom/qdsp6/q6asm.c
1459
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1460
pkt->hdr.opcode = ASM_STREAM_CMD_OPEN_READ_V3;
sound/soc/qcom/qdsp6/q6asm.c
1532
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, false, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1535
pkt->hdr.token = port->dsp_buf | (len << ASM_WRITE_TOKEN_LEN_SHIFT);
sound/soc/qcom/qdsp6/q6asm.c
1536
pkt->hdr.opcode = ASM_DATA_CMD_WRITE_V2;
sound/soc/qcom/qdsp6/q6asm.c
1579
q6asm_add_hdr(ac, &pkt.hdr, APR_HDR_SIZE, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
1583
pkt.hdr.opcode = ASM_SESSION_CMD_PAUSE;
sound/soc/qcom/qdsp6/q6asm.c
1586
pkt.hdr.opcode = ASM_SESSION_CMD_SUSPEND;
sound/soc/qcom/qdsp6/q6asm.c
1589
pkt.hdr.opcode = ASM_STREAM_CMD_FLUSH;
sound/soc/qcom/qdsp6/q6asm.c
1592
pkt.hdr.opcode = ASM_STREAM_CMD_FLUSH_READBUFS;
sound/soc/qcom/qdsp6/q6asm.c
1595
pkt.hdr.opcode = ASM_DATA_CMD_EOS;
sound/soc/qcom/qdsp6/q6asm.c
1598
pkt.hdr.opcode = ASM_STREAM_CMD_CLOSE;
sound/soc/qcom/qdsp6/q6asm.c
282
static inline void q6asm_add_hdr(struct audio_client *ac, struct apr_hdr *hdr,
sound/soc/qcom/qdsp6/q6asm.c
286
hdr->hdr_field = APR_SEQ_CMD_HDR_FIELD;
sound/soc/qcom/qdsp6/q6asm.c
287
hdr->src_port = ((ac->session << 8) & 0xFF00) | (stream_id);
sound/soc/qcom/qdsp6/q6asm.c
288
hdr->dest_port = ((ac->session << 8) & 0xFF00) | (stream_id);
sound/soc/qcom/qdsp6/q6asm.c
289
hdr->pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6asm.c
291
hdr->token = ac->session;
sound/soc/qcom/qdsp6/q6asm.c
297
struct apr_hdr *hdr = &pkt->hdr;
sound/soc/qcom/qdsp6/q6asm.c
309
(ac->result.opcode == hdr->opcode) ||
sound/soc/qcom/qdsp6/q6asm.c
314
(ac->result.opcode == hdr->opcode),
sound/soc/qcom/qdsp6/q6asm.c
318
dev_err(a->dev, "CMD %x timeout\n", hdr->opcode);
sound/soc/qcom/qdsp6/q6asm.c
352
pkt->hdr.hdr_field = APR_SEQ_CMD_HDR_FIELD;
sound/soc/qcom/qdsp6/q6asm.c
353
pkt->hdr.src_port = 0;
sound/soc/qcom/qdsp6/q6asm.c
354
pkt->hdr.dest_port = 0;
sound/soc/qcom/qdsp6/q6asm.c
355
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6asm.c
356
pkt->hdr.token = ((ac->session << 8) | dir);
sound/soc/qcom/qdsp6/q6asm.c
358
pkt->hdr.opcode = ASM_CMD_SHARED_MEM_UNMAP_REGIONS;
sound/soc/qcom/qdsp6/q6asm.c
456
pkt->hdr.hdr_field = APR_SEQ_CMD_HDR_FIELD;
sound/soc/qcom/qdsp6/q6asm.c
457
pkt->hdr.src_port = 0;
sound/soc/qcom/qdsp6/q6asm.c
458
pkt->hdr.dest_port = 0;
sound/soc/qcom/qdsp6/q6asm.c
459
pkt->hdr.pkt_size = pkt_size;
sound/soc/qcom/qdsp6/q6asm.c
460
pkt->hdr.token = ((ac->session << 8) | dir);
sound/soc/qcom/qdsp6/q6asm.c
461
pkt->hdr.opcode = ASM_CMD_SHARED_MEM_MAP_REGIONS;
sound/soc/qcom/qdsp6/q6asm.c
605
const struct apr_hdr *hdr = &data->hdr;
sound/soc/qcom/qdsp6/q6asm.c
617
switch (hdr->opcode) {
sound/soc/qcom/qdsp6/q6asm.c
670
ac->cb(client_event, hdr->token,
sound/soc/qcom/qdsp6/q6asm.c
680
int token = hdr->token & ASM_WRITE_TOKEN_MASK;
sound/soc/qcom/qdsp6/q6asm.c
716
phys = port->buf[hdr->token].phys;
sound/soc/qcom/qdsp6/q6asm.c
717
atomic_set(&port->hw_ptr, hdr->token + 1);
sound/soc/qcom/qdsp6/q6asm.c
722
&port->buf[hdr->token].phys,
sound/soc/qcom/qdsp6/q6asm.c
737
ac->cb(client_event, hdr->token, data->payload, ac->priv);
sound/soc/qcom/qdsp6/q6asm.c
751
const struct apr_hdr *hdr = &data->hdr;
sound/soc/qcom/qdsp6/q6asm.c
757
session_id = (hdr->dest_port >> 8) & 0xFF;
sound/soc/qcom/qdsp6/q6asm.c
761
sid = (hdr->token >> 8) & 0x0F;
sound/soc/qcom/qdsp6/q6asm.c
769
dir = (hdr->token & 0x0F);
sound/soc/qcom/qdsp6/q6asm.c
773
switch (hdr->opcode) {
sound/soc/qcom/qdsp6/q6asm.c
789
ac->result.opcode = hdr->opcode;
sound/soc/qcom/qdsp6/q6asm.c
794
ac->result.opcode = hdr->opcode;
sound/soc/qcom/qdsp6/q6asm.c
806
ac->cb(hdr->opcode, hdr->token, data->payload, ac->priv);
sound/soc/qcom/qdsp6/q6asm.c
880
struct apr_hdr *hdr = &pkt->hdr;
sound/soc/qcom/qdsp6/q6asm.c
892
(ac->result.opcode == hdr->opcode), 5 * HZ);
sound/soc/qcom/qdsp6/q6asm.c
894
dev_err(ac->dev, "CMD %x timeout\n", hdr->opcode);
sound/soc/qcom/qdsp6/q6asm.c
938
q6asm_add_hdr(ac, &pkt->hdr, pkt_size, true, stream_id);
sound/soc/qcom/qdsp6/q6asm.c
940
pkt->hdr.opcode = ASM_STREAM_CMD_OPEN_WRITE_V3;
sound/soc/qcom/qdsp6/q6core.c
141
hdr->opcode);
sound/soc/qcom/qdsp6/q6core.c
157
pkt.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6core.c
159
pkt.hdr.pkt_size = APR_HDR_SIZE;
sound/soc/qcom/qdsp6/q6core.c
160
pkt.hdr.opcode = AVCS_CMD_GET_FWK_VERSION;
sound/soc/qcom/qdsp6/q6core.c
187
pkt.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6core.c
189
pkt.hdr.pkt_size = APR_HDR_SIZE;
sound/soc/qcom/qdsp6/q6core.c
190
pkt.hdr.opcode = AVCS_GET_VERSIONS;
sound/soc/qcom/qdsp6/q6core.c
214
pkt.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD,
sound/soc/qcom/qdsp6/q6core.c
216
pkt.hdr.pkt_size = APR_HDR_SIZE;
sound/soc/qcom/qdsp6/q6core.c
217
pkt.hdr.opcode = AVCS_CMD_ADSP_EVENT_GET_STATE;
sound/soc/qcom/qdsp6/q6core.c
74
const struct apr_hdr *hdr = &data->hdr;
sound/soc/qcom/qdsp6/q6core.c
77
switch (hdr->opcode) {
sound/soc/qcom/qdsp6/q6prm.c
183
const struct gpr_hdr *hdr = &data->hdr;
sound/soc/qcom/qdsp6/q6prm.c
185
switch (hdr->opcode) {
sound/soc/qcom/qdsp6/q6prm.c
189
prm->result.opcode = hdr->opcode;
sound/soc/qcom/qdsp6/topology.c
1209
const struct snd_soc_tplg_ctl_hdr *hdr)
sound/soc/qcom/qdsp6/topology.c
1216
mc = container_of_const(hdr, struct snd_soc_tplg_mixer_control, hdr);
sound/soc/qcom/qdsp6/topology.c
1242
struct snd_soc_tplg_ctl_hdr *hdr)
sound/soc/qcom/qdsp6/topology.c
1255
switch (le32_to_cpu(hdr->ops.get)) {
sound/soc/qcom/qdsp6/topology.c
1259
ret = audioreach_control_load_mix(scomp, scontrol, kc, hdr);
sound/soc/qcom/qdsp6/topology.c
1267
hdr->ops.get, hdr->ops.put, hdr->ops.info);
sound/soc/soc-topology.c
1027
struct snd_soc_tplg_hdr *hdr)
sound/soc/soc-topology.c
1036
count = le32_to_cpu(hdr->count);
sound/soc/soc-topology.c
1040
count, le32_to_cpu(hdr->payload_size), "graph"))
sound/soc/soc-topology.c
1044
hdr->index);
sound/soc/soc-topology.c
1259
struct snd_soc_tplg_hdr *hdr)
sound/soc/soc-topology.c
1263
count = le32_to_cpu(hdr->count);
sound/soc/soc-topology.c
1561
struct snd_soc_tplg_hdr *hdr)
sound/soc/soc-topology.c
1569
count = le32_to_cpu(hdr->count);
sound/soc/soc-topology.c
1582
le32_to_cpu(hdr->payload_size),
sound/soc/soc-topology.c
1783
struct snd_soc_tplg_hdr *hdr)
sound/soc/soc-topology.c
1790
count = le32_to_cpu(hdr->count);
sound/soc/soc-topology.c
1802
le32_to_cpu(hdr->payload_size),
sound/soc/soc-topology.c
1897
struct snd_soc_tplg_hdr *hdr)
sound/soc/soc-topology.c
1902
count = le32_to_cpu(hdr->count);
sound/soc/soc-topology.c
1928
struct snd_soc_tplg_hdr *hdr)
sound/soc/soc-topology.c
1948
struct snd_soc_tplg_hdr *hdr)
sound/soc/soc-topology.c
1950
if (le32_to_cpu(hdr->size) != sizeof(*hdr)) {
sound/soc/soc-topology.c
1953
le32_to_cpu(hdr->type), soc_tplg_get_hdr_offset(tplg),
sound/soc/soc-topology.c
1958
if (soc_tplg_get_hdr_offset(tplg) + le32_to_cpu(hdr->payload_size) >= tplg->fw->size) {
sound/soc/soc-topology.c
1961
le32_to_cpu(hdr->type), soc_tplg_get_hdr_offset(tplg),
sound/soc/soc-topology.c
1962
hdr->payload_size);
sound/soc/soc-topology.c
1967
if (le32_to_cpu(hdr->magic) == SOC_TPLG_MAGIC_BIG_ENDIAN) {
sound/soc/soc-topology.c
1970
tplg->pass, hdr->magic,
sound/soc/soc-topology.c
1975
if (le32_to_cpu(hdr->magic) != SND_SOC_TPLG_MAGIC) {
sound/soc/soc-topology.c
1978
tplg->pass, hdr->magic,
sound/soc/soc-topology.c
1984
if (le32_to_cpu(hdr->abi) > SND_SOC_TPLG_ABI_VERSION ||
sound/soc/soc-topology.c
1985
le32_to_cpu(hdr->abi) < SND_SOC_TPLG_ABI_VERSION_MIN) {
sound/soc/soc-topology.c
1988
tplg->pass, hdr->abi,
sound/soc/soc-topology.c
1994
if (hdr->payload_size == 0) {
sound/soc/soc-topology.c
2005
struct snd_soc_tplg_hdr *hdr)
sound/soc/soc-topology.c
2008
struct snd_soc_tplg_hdr *hdr);
sound/soc/soc-topology.c
2013
tplg->index = le32_to_cpu(hdr->index);
sound/soc/soc-topology.c
2015
switch (le32_to_cpu(hdr->type)) {
sound/soc/soc-topology.c
2058
hdr->payload_size, hdr->type, hdr->version,
sound/soc/soc-topology.c
2059
hdr->vendor_type, tplg->pass);
sound/soc/soc-topology.c
2060
return elem_load(tplg, hdr);
sound/soc/soc-topology.c
2073
struct snd_soc_tplg_hdr *hdr;
sound/soc/soc-topology.c
2076
hdr = (struct snd_soc_tplg_hdr *)tplg->hdr_pos;
sound/soc/soc-topology.c
2081
ret = soc_tplg_valid_header(tplg, hdr);
sound/soc/soc-topology.c
2086
ret = soc_tplg_load_header(tplg, hdr);
sound/soc/soc-topology.c
2097
tplg->hdr_pos += le32_to_cpu(hdr->payload_size) +
sound/soc/soc-topology.c
2099
hdr = (struct snd_soc_tplg_hdr *)tplg->hdr_pos;
sound/soc/soc-topology.c
224
struct snd_soc_tplg_ctl_hdr *hdr, const char *name)
sound/soc/soc-topology.c
228
name, hdr->ops.get, hdr->ops.put, hdr->ops.info,
sound/soc/soc-topology.c
234
struct snd_soc_tplg_hdr *hdr)
sound/soc/soc-topology.c
239
ret = tplg->ops->vendor_load(tplg->comp, tplg->index, hdr);
sound/soc/soc-topology.c
242
hdr->vendor_type);
sound/soc/soc-topology.c
251
hdr->type, hdr->vendor_type);
sound/soc/soc-topology.c
459
static int soc_tplg_kcontrol_bind_io(struct snd_soc_tplg_ctl_hdr *hdr,
sound/soc/soc-topology.c
467
if (le32_to_cpu(hdr->ops.info) == SND_SOC_TPLG_CTL_BYTES
sound/soc/soc-topology.c
476
be = container_of(hdr, struct snd_soc_tplg_bytes_control, hdr);
sound/soc/soc-topology.c
518
if (k->put == NULL && ops[i].id == le32_to_cpu(hdr->ops.put))
sound/soc/soc-topology.c
520
if (k->get == NULL && ops[i].id == le32_to_cpu(hdr->ops.get))
sound/soc/soc-topology.c
522
if (k->info == NULL && ops[i].id == le32_to_cpu(hdr->ops.info))
sound/soc/soc-topology.c
535
if (k->put == NULL && ops[i].id == le32_to_cpu(hdr->ops.put))
sound/soc/soc-topology.c
537
if (k->get == NULL && ops[i].id == le32_to_cpu(hdr->ops.get))
sound/soc/soc-topology.c
539
if (k->info == NULL && ops[i].id == le32_to_cpu(hdr->ops.info))
sound/soc/soc-topology.c
576
struct snd_kcontrol_new *k, struct snd_soc_tplg_ctl_hdr *hdr)
sound/soc/soc-topology.c
581
ret = tplg->ops->control_load(tplg->comp, tplg->index, k, hdr);
sound/soc/soc-topology.c
584
dev_err(tplg->dev, "ASoC: failed to init %s\n", hdr->name);
sound/soc/soc-topology.c
646
if (strnlen(mc->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == SNDRV_CTL_ELEM_ID_NAME_MAXLEN)
sound/soc/soc-topology.c
656
mc->hdr.name, mc->hdr.access);
sound/soc/soc-topology.c
658
kc->name = devm_kstrdup(tplg->dev, mc->hdr.name, GFP_KERNEL);
sound/soc/soc-topology.c
663
kc->access = le32_to_cpu(mc->hdr.access);
sound/soc/soc-topology.c
678
err = soc_tplg_kcontrol_bind_io(&mc->hdr, kc, tplg);
sound/soc/soc-topology.c
680
soc_control_err(tplg, &mc->hdr, mc->hdr.name);
sound/soc/soc-topology.c
685
err = soc_tplg_create_tlv(tplg, kc, &mc->hdr);
sound/soc/soc-topology.c
687
dev_err(tplg->dev, "ASoC: failed to create TLV %s\n", mc->hdr.name);
sound/soc/soc-topology.c
692
return soc_tplg_control_load(tplg, kc, &mc->hdr);
sound/soc/soc-topology.c
770
if (strnlen(ec->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == SNDRV_CTL_ELEM_ID_NAME_MAXLEN)
sound/soc/soc-topology.c
779
dev_dbg(tplg->dev, "ASoC: adding enum kcontrol %s size %d\n", ec->hdr.name, ec->items);
sound/soc/soc-topology.c
781
kc->name = devm_kstrdup(tplg->dev, ec->hdr.name, GFP_KERNEL);
sound/soc/soc-topology.c
786
kc->access = le32_to_cpu(ec->hdr.access);
sound/soc/soc-topology.c
795
switch (le32_to_cpu(ec->hdr.ops.info)) {
sound/soc/soc-topology.c
800
dev_err(tplg->dev, "ASoC: could not create values for %s\n", ec->hdr.name);
sound/soc/soc-topology.c
809
dev_err(tplg->dev, "ASoC: could not create texts for %s\n", ec->hdr.name);
sound/soc/soc-topology.c
815
ec->hdr.ops.info, ec->hdr.name);
sound/soc/soc-topology.c
820
err = soc_tplg_kcontrol_bind_io(&ec->hdr, kc, tplg);
sound/soc/soc-topology.c
822
soc_control_err(tplg, &ec->hdr, ec->hdr.name);
sound/soc/soc-topology.c
827
return soc_tplg_control_load(tplg, kc, &ec->hdr);
sound/soc/soc-topology.c
839
if (strnlen(be->hdr.name, SNDRV_CTL_ELEM_ID_NAME_MAXLEN) == SNDRV_CTL_ELEM_ID_NAME_MAXLEN)
sound/soc/soc-topology.c
849
be->hdr.name, be->hdr.access);
sound/soc/soc-topology.c
851
kc->name = devm_kstrdup(tplg->dev, be->hdr.name, GFP_KERNEL);
sound/soc/soc-topology.c
856
kc->access = le32_to_cpu(be->hdr.access);
sound/soc/soc-topology.c
861
err = soc_tplg_kcontrol_bind_io(&be->hdr, kc, tplg);
sound/soc/soc-topology.c
863
soc_control_err(tplg, &be->hdr, be->hdr.name);
sound/soc/soc-topology.c
868
return soc_tplg_control_load(tplg, kc, &be->hdr);
sound/soc/soc-topology.c
974
struct snd_soc_tplg_hdr *hdr)
sound/soc/soc-topology.c
979
dev_dbg(tplg->dev, "ASoC: adding %d kcontrols at 0x%lx\n", hdr->count,
sound/soc/soc-topology.c
982
for (i = 0; i < le32_to_cpu(hdr->count); i++) {
sound/soc/soc-topology.c
992
ret = soc_tplg_dmixer_create(tplg, le32_to_cpu(hdr->payload_size));
sound/soc/soc-topology.c
995
ret = soc_tplg_denum_create(tplg, le32_to_cpu(hdr->payload_size));
sound/soc/soc-topology.c
998
ret = soc_tplg_dbytes_create(tplg, le32_to_cpu(hdr->payload_size));
sound/soc/sof/amd/acp-ipc.c
100
struct sof_ipc_cmd_hdr *hdr;
sound/soc/sof/amd/acp-ipc.c
113
hdr = msg->msg_data;
sound/soc/sof/amd/acp-ipc.c
114
if (hdr->cmd == (SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_CTX_SAVE) ||
sound/soc/sof/amd/acp-ipc.c
115
hdr->cmd == (SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_GATE)) {
sound/soc/sof/amd/acp-ipc.c
122
reply.hdr.cmd = SOF_IPC_GLB_REPLY;
sound/soc/sof/amd/acp-ipc.c
123
reply.hdr.size = sizeof(reply);
sound/soc/sof/amd/acp-ipc.c
141
if (reply.hdr.size != msg->reply_size &&
sound/soc/sof/amd/acp-ipc.c
142
!(reply.hdr.cmd & SOF_IPC_GLB_PROBE)) {
sound/soc/sof/amd/acp-ipc.c
144
msg->reply_size, reply.hdr.size);
sound/soc/sof/compress.c
145
stream.hdr.size = sizeof(stream);
sound/soc/sof/compress.c
146
stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_FREE;
sound/soc/sof/compress.c
221
pcm->hdr.size = sizeof(*pcm) + ext_data_size;
sound/soc/sof/compress.c
222
pcm->hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS;
sound/soc/sof/compress.c
225
pcm->params.hdr.size = sizeof(pcm->params) + ext_data_size;
sound/soc/sof/compress.c
288
stream.hdr.size = sizeof(stream);
sound/soc/sof/compress.c
289
stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG;
sound/soc/sof/compress.c
294
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_START;
sound/soc/sof/compress.c
297
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_STOP;
sound/soc/sof/compress.c
300
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_PAUSE;
sound/soc/sof/compress.c
303
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_RELEASE;
sound/soc/sof/debug.c
232
if (struct_size(reply, elems, reply->num_elems) != reply->rhdr.hdr.size) {
sound/soc/sof/debug.c
234
reply->rhdr.hdr.size);
sound/soc/sof/intel/cnl.c
244
if (pm_gate->hdr.cmd == (SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_GATE)) {
sound/soc/sof/intel/cnl.c
287
struct sof_ipc_cmd_hdr *hdr;
sound/soc/sof/intel/cnl.c
314
hdr = msg->msg_data;
sound/soc/sof/intel/cnl.c
324
if (hdr->cmd != (SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_CTX_SAVE))
sound/soc/sof/intel/ext_manifest.h
30
struct sof_ext_man_elem_header hdr;
sound/soc/sof/intel/hda-ipc.c
135
struct sof_ipc_cmd_hdr *hdr;
sound/soc/sof/intel/hda-ipc.c
147
hdr = msg->msg_data;
sound/soc/sof/intel/hda-ipc.c
148
if (hdr->cmd == (SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_CTX_SAVE) ||
sound/soc/sof/intel/hda-ipc.c
149
hdr->cmd == (SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_GATE)) {
sound/soc/sof/intel/hda-ipc.c
156
reply.hdr.cmd = SOF_IPC_GLB_REPLY;
sound/soc/sof/intel/hda-ipc.c
157
reply.hdr.size = sizeof(reply);
sound/soc/sof/intel/hda-loader.c
604
const struct sof_ext_man_elem_header *hdr)
sound/soc/sof/intel/hda-loader.c
607
container_of(hdr, struct sof_ext_man_cavs_config_data, hdr);
sound/soc/sof/intel/hda-loader.c
612
elem_num = (hdr->size - sizeof(struct sof_ext_man_elem_header))
sound/soc/sof/intel/hda.h
752
const struct sof_ext_man_elem_header *hdr);
sound/soc/sof/intel/telemetry.c
52
if (telemetry_data->hdr.id[0] != COREDUMP_HDR_ID0 ||
sound/soc/sof/intel/telemetry.c
53
telemetry_data->hdr.id[1] != COREDUMP_HDR_ID1 ||
sound/soc/sof/intel/telemetry.c
56
invalid_slot_msg, telemetry_data->hdr.id[0],
sound/soc/sof/intel/telemetry.c
57
telemetry_data->hdr.id[1],
sound/soc/sof/ipc3-control.c
115
ret = iops->set_get_data(sdev, cdata, cdata->rhdr.hdr.size, set);
sound/soc/sof/ipc3-control.c
644
if (cdata->rhdr.hdr.size != expected_size) {
sound/soc/sof/ipc3-control.c
67
cdata->rhdr.hdr.cmd = SOF_IPC_GLB_COMP_MSG | ipc_cmd;
sound/soc/sof/ipc3-control.c
95
cdata->rhdr.hdr.size = msg_bytes;
sound/soc/sof/ipc3-control.c
98
ret = iops->set_get_data(sdev, cdata, cdata->rhdr.hdr.size, set);
sound/soc/sof/ipc3-dtrace.c
164
msg->hdr.size = size;
sound/soc/sof/ipc3-dtrace.c
165
msg->hdr.cmd = SOF_IPC_GLB_TRACE_MSG | SOF_IPC_TRACE_FILTER_UPDATE;
sound/soc/sof/ipc3-dtrace.c
178
ret = sof_ipc_tx_message_no_reply(sdev->ipc, msg, msg->hdr.size);
sound/soc/sof/ipc3-dtrace.c
445
params.hdr.cmd = SOF_IPC_GLB_TRACE_MSG;
sound/soc/sof/ipc3-dtrace.c
448
params.hdr.size = sizeof(struct sof_ipc_dma_trace_params_ext);
sound/soc/sof/ipc3-dtrace.c
449
params.hdr.cmd |= SOF_IPC_TRACE_DMA_PARAMS_EXT;
sound/soc/sof/ipc3-dtrace.c
452
params.hdr.size = sizeof(struct sof_ipc_dma_trace_params);
sound/soc/sof/ipc3-dtrace.c
453
params.hdr.cmd |= SOF_IPC_TRACE_DMA_PARAMS;
sound/soc/sof/ipc3-dtrace.c
601
struct sof_ipc_cmd_hdr hdr;
sound/soc/sof/ipc3-dtrace.c
617
hdr.size = sizeof(hdr);
sound/soc/sof/ipc3-dtrace.c
618
hdr.cmd = SOF_IPC_GLB_TRACE_MSG | SOF_IPC_TRACE_DMA_FREE;
sound/soc/sof/ipc3-dtrace.c
620
ret = sof_ipc_tx_message_no_reply(sdev->ipc, &hdr, hdr.size);
sound/soc/sof/ipc3-loader.c
15
const struct sof_ext_man_elem_header *hdr)
sound/soc/sof/ipc3-loader.c
18
container_of(hdr, struct sof_ext_man_fw_version, hdr);
sound/soc/sof/ipc3-loader.c
28
const struct sof_ext_man_elem_header *hdr)
sound/soc/sof/ipc3-loader.c
32
w = container_of(hdr, struct sof_ext_man_window, hdr);
sound/soc/sof/ipc3-loader.c
321
int (*load_module)(struct snd_sof_dev *sof_dev, struct snd_sof_mod_hdr *hdr);
sound/soc/sof/ipc3-loader.c
38
const struct sof_ext_man_elem_header *hdr)
sound/soc/sof/ipc3-loader.c
42
cc = container_of(hdr, struct sof_ext_man_cc_version, hdr);
sound/soc/sof/ipc3-loader.c
48
const struct sof_ext_man_elem_header *hdr)
sound/soc/sof/ipc3-loader.c
51
container_of(hdr, struct ext_man_dbg_abi, hdr);
sound/soc/sof/ipc3-loader.c
64
const struct sof_ext_man_elem_header *hdr)
sound/soc/sof/ipc3-loader.c
67
container_of(hdr, struct sof_ext_man_config_data, hdr);
sound/soc/sof/ipc3-loader.c
75
elems_size = config->hdr.size - sizeof(struct sof_ext_man_elem_header);
sound/soc/sof/ipc3-pcm.c
155
stream.hdr.size = sizeof(stream);
sound/soc/sof/ipc3-pcm.c
156
stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG;
sound/soc/sof/ipc3-pcm.c
161
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_PAUSE;
sound/soc/sof/ipc3-pcm.c
164
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_RELEASE;
sound/soc/sof/ipc3-pcm.c
167
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_START;
sound/soc/sof/ipc3-pcm.c
172
stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_STOP;
sound/soc/sof/ipc3-pcm.c
31
stream.hdr.size = sizeof(stream);
sound/soc/sof/ipc3-pcm.c
32
stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_FREE;
sound/soc/sof/ipc3-pcm.c
63
pcm.hdr.size = sizeof(pcm);
sound/soc/sof/ipc3-pcm.c
64
pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS;
sound/soc/sof/ipc3-pcm.c
66
pcm.params.hdr.size = sizeof(pcm.params);
sound/soc/sof/ipc3-priv.h
32
void sof_ipc3_do_rx_work(struct snd_sof_dev *sdev, struct sof_ipc_cmd_hdr *hdr, void *msg_buf);
sound/soc/sof/ipc3-topology.c
1010
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1079
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1130
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1178
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1209
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1243
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1276
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1310
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1344
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1365
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1413
config[i].hdr.size = size;
sound/soc/sof/ipc3-topology.c
1488
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1546
config->hdr.size = size;
sound/soc/sof/ipc3-topology.c
1585
comp_dai->config.hdr.size = sizeof(comp_dai->config);
sound/soc/sof/ipc3-topology.c
1639
config[i].hdr.cmd = SOF_IPC_GLB_DAI_MSG | SOF_IPC_DAI_CONFIG;
sound/soc/sof/ipc3-topology.c
1740
connect.hdr.size = sizeof(connect);
sound/soc/sof/ipc3-topology.c
1741
connect.hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_COMP_CONNECT;
sound/soc/sof/ipc3-topology.c
1894
fcomp.hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_COMP_FREE;
sound/soc/sof/ipc3-topology.c
1895
fcomp.hdr.size = sizeof(fcomp);
sound/soc/sof/ipc3-topology.c
1923
pcm.hdr.size = sizeof(pcm);
sound/soc/sof/ipc3-topology.c
1924
pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS;
sound/soc/sof/ipc3-topology.c
1926
pcm.params.hdr.size = sizeof(pcm.params);
sound/soc/sof/ipc3-topology.c
1967
stream.hdr.size = sizeof(stream);
sound/soc/sof/ipc3-topology.c
1968
stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | cmd;
sound/soc/sof/ipc3-topology.c
2095
ready.hdr.size = sizeof(ready);
sound/soc/sof/ipc3-topology.c
2096
ready.hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_PIPE_COMPLETE;
sound/soc/sof/ipc3-topology.c
2109
.hdr = {
sound/soc/sof/ipc3-topology.c
2123
ipc_free.hdr.cmd |= SOF_IPC_TPLG_PIPE_FREE;
sound/soc/sof/ipc3-topology.c
2127
ipc_free.hdr.cmd |= SOF_IPC_TPLG_BUFFER_FREE;
sound/soc/sof/ipc3-topology.c
2130
ipc_free.hdr.cmd |= SOF_IPC_TPLG_COMP_FREE;
sound/soc/sof/ipc3-topology.c
2232
ret = sof_ipc_tx_message_no_reply(sdev->ipc, config, config->hdr.size);
sound/soc/sof/ipc3-topology.c
2258
ret = sof_ipc_tx_message_no_reply(sdev->ipc, dai_data->comp_dai, comp->hdr.size);
sound/soc/sof/ipc3-topology.c
2271
struct sof_ipc_cmd_hdr *hdr;
sound/soc/sof/ipc3-topology.c
2273
hdr = swidget->private;
sound/soc/sof/ipc3-topology.c
2274
ret = sof_ipc_tx_message_no_reply(sdev->ipc, swidget->private, hdr->size);
sound/soc/sof/ipc3-topology.c
378
comp->hdr.size = total_size;
sound/soc/sof/ipc3-topology.c
379
comp->hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_COMP_NEW;
sound/soc/sof/ipc3-topology.c
417
host->config.hdr.size = sizeof(host->config);
sound/soc/sof/ipc3-topology.c
467
tone->config.hdr.size = sizeof(tone->config);
sound/soc/sof/ipc3-topology.c
500
mixer->config.hdr.size = sizeof(mixer->config);
sound/soc/sof/ipc3-topology.c
532
pipeline->hdr.size = sizeof(*pipeline);
sound/soc/sof/ipc3-topology.c
533
pipeline->hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_PIPE_NEW;
sound/soc/sof/ipc3-topology.c
599
buffer->comp.hdr.size = sizeof(*buffer);
sound/soc/sof/ipc3-topology.c
600
buffer->comp.hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_BUFFER_NEW;
sound/soc/sof/ipc3-topology.c
636
src->config.hdr.size = sizeof(src->config);
sound/soc/sof/ipc3-topology.c
677
asrc->config.hdr.size = sizeof(asrc->config);
sound/soc/sof/ipc3-topology.c
723
mux->config.hdr.size = sizeof(mux->config);
sound/soc/sof/ipc3-topology.c
762
volume->config.hdr.size = sizeof(volume->config);
sound/soc/sof/ipc3-topology.c
924
process->config.hdr.size = sizeof(process->config);
sound/soc/sof/ipc3.c
1044
ipc3_log_header(sdev->dev, "ipc rx done", hdr->cmd);
sound/soc/sof/ipc3.c
1051
struct sof_ipc_cmd_hdr hdr;
sound/soc/sof/ipc3.c
1056
err = snd_sof_ipc_msg_data(sdev, NULL, &hdr, sizeof(hdr));
sound/soc/sof/ipc3.c
1062
if (hdr.size < sizeof(hdr) || hdr.size > SOF_IPC_MSG_MAX_SIZE) {
sound/soc/sof/ipc3.c
1068
msg_buf = kmalloc(hdr.size, GFP_KERNEL);
sound/soc/sof/ipc3.c
1072
err = snd_sof_ipc_msg_data(sdev, NULL, msg_buf, hdr.size);
sound/soc/sof/ipc3.c
1079
sof_ipc3_do_rx_work(sdev, &hdr, msg_buf);
sound/soc/sof/ipc3.c
1087
.hdr.size = sizeof(core_cfg),
sound/soc/sof/ipc3.c
1088
.hdr.cmd = SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_CORE_ENABLE,
sound/soc/sof/ipc3.c
1102
.hdr.size = sizeof(pm_ctx),
sound/soc/sof/ipc3.c
1103
.hdr.cmd = SOF_IPC_GLB_PM_MSG | cmd,
sound/soc/sof/ipc3.c
1127
pm_gate.hdr.size = sizeof(pm_gate);
sound/soc/sof/ipc3.c
1128
pm_gate.hdr.cmd = SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_GATE;
sound/soc/sof/ipc3.c
247
if (!reply->hdr.size) {
sound/soc/sof/ipc3.c
260
if (reply->hdr.size == msg->reply_size) {
sound/soc/sof/ipc3.c
262
} else if (reply->hdr.size < msg->reply_size) {
sound/soc/sof/ipc3.c
265
reply->hdr.size, msg->reply_size);
sound/soc/sof/ipc3.c
267
msg->reply_size = reply->hdr.size;
sound/soc/sof/ipc3.c
272
reply->hdr.size, msg->reply_size);
sound/soc/sof/ipc3.c
292
struct sof_ipc_cmd_hdr *hdr = msg->msg_data;
sound/soc/sof/ipc3.c
303
hdr->cmd, hdr->size, msg->reply_size);
sound/soc/sof/ipc3.c
311
hdr->cmd, hdr->size, msg->reply_size, ret);
sound/soc/sof/ipc3.c
314
ipc3_log_header(sdev->dev, "ipc tx succeeded", hdr->cmd);
sound/soc/sof/ipc3.c
336
struct sof_ipc_cmd_hdr *hdr = msg_data;
sound/soc/sof/ipc3.c
340
ipc3_log_header(sdev->dev, "ipc tx", hdr->cmd);
sound/soc/sof/ipc3.c
347
__func__, hdr->cmd, ret);
sound/soc/sof/ipc3.c
427
if ((cdata->rhdr.hdr.cmd & SOF_GLB_TYPE_MASK) != SOF_IPC_GLB_COMP_MSG) {
sound/soc/sof/ipc3.c
429
__func__, cdata->rhdr.hdr.cmd);
sound/soc/sof/ipc3.c
434
if (cdata->rhdr.hdr.size <= ipc->max_payload_size)
sound/soc/sof/ipc3.c
435
return sof_ipc3_tx_msg(sdev, cdata, cdata->rhdr.hdr.size,
sound/soc/sof/ipc3.c
436
cdata, cdata->rhdr.hdr.size, false);
sound/soc/sof/ipc3.c
470
msg_bytes = cdata->rhdr.hdr.size - hdr_bytes;
sound/soc/sof/ipc3.c
484
cdata_chunk->rhdr.hdr.size = hdr_bytes + send_bytes;
sound/soc/sof/ipc3.c
493
cdata_chunk, cdata_chunk->rhdr.hdr.size,
sound/soc/sof/ipc3.c
494
cdata_chunk, cdata_chunk->rhdr.hdr.size);
sound/soc/sof/ipc3.c
527
if (memcmp(sdev->info_window, w, ext_hdr->hdr.size)) {
sound/soc/sof/ipc3.c
535
sdev->info_window = devm_kmemdup(sdev->dev, w, ext_hdr->hdr.size, GFP_KERNEL);
sound/soc/sof/ipc3.c
551
if (memcmp(sdev->cc_version, cc, cc->ext_hdr.hdr.size)) {
sound/soc/sof/ipc3.c
566
sdev->cc_version = devm_kmemdup(sdev->dev, cc, cc->ext_hdr.hdr.size, GFP_KERNEL);
sound/soc/sof/ipc3.c
571
cc->ext_hdr.hdr.size,
sound/soc/sof/ipc3.c
600
while (ext_hdr->hdr.cmd == SOF_IPC_FW_READY) {
sound/soc/sof/ipc3.c
605
ext_hdr->hdr.size - sizeof(*ext_hdr));
sound/soc/sof/ipc3.c
608
ext_hdr->type, ext_hdr->hdr.size);
sound/soc/sof/ipc3.c
625
ext_hdr->type, ext_hdr->hdr.size);
sound/soc/sof/ipc3.c
637
offset += ext_hdr->hdr.size;
sound/soc/sof/ipc3.c
932
struct sof_ipc_cmd_hdr *hdr = msg_buf;
sound/soc/sof/ipc3.c
933
u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK;
sound/soc/sof/ipc3.c
934
u32 msg_id = SOF_IPC_MESSAGE_ID(hdr->cmd);
sound/soc/sof/ipc3.c
954
struct sof_ipc_cmd_hdr *hdr = msg_buf;
sound/soc/sof/ipc3.c
955
u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK;
sound/soc/sof/ipc3.c
972
struct sof_ipc_cmd_hdr *hdr = msg_buf;
sound/soc/sof/ipc3.c
973
u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK;
sound/soc/sof/ipc3.c
985
void sof_ipc3_do_rx_work(struct snd_sof_dev *sdev, struct sof_ipc_cmd_hdr *hdr, void *msg_buf)
sound/soc/sof/ipc3.c
991
ipc3_log_header(sdev->dev, "ipc rx", hdr->cmd);
sound/soc/sof/ipc3.c
993
if (hdr->size < sizeof(*hdr) || hdr->size > SOF_IPC_MSG_MAX_SIZE) {
sound/soc/sof/ipc3.c
995
hdr->size);
sound/soc/sof/ipc3.c
999
cmd = hdr->cmd & SOF_GLB_TYPE_MASK;
sound/soc/sof/ipc4-telemetry.h
67
struct sof_ipc4_coredump_hdr hdr;
sound/soc/sof/ipc4-topology.c
3040
struct sof_ipc4_module_init_ext_object *hdr;
sound/soc/sof/ipc4-topology.c
3067
hdr = (struct sof_ipc4_module_init_ext_object *)&payload[ext_pos];
sound/soc/sof/ipc4-topology.c
3068
hdr->header = SOF_IPC4_MOD_INIT_EXT_OBJ_LAST_MASK |
sound/soc/sof/ipc4-topology.c
3072
ext_pos += DIV_ROUND_UP(sizeof(*hdr), sizeof(u32));
sound/soc/sof/ops.h
184
const struct sof_ext_man_elem_header *hdr)
sound/soc/sof/ops.h
187
return sof_ops(sdev)->parse_platform_ext_manifest(sdev, hdr);
sound/soc/sof/sof-client-ipc-flood-test.c
66
struct sof_ipc_cmd_hdr hdr;
sound/soc/sof/sof-client-ipc-flood-test.c
76
hdr.cmd = SOF_IPC_GLB_TEST_MSG | SOF_IPC_TEST_IPC_FLOOD;
sound/soc/sof/sof-client-ipc-flood-test.c
77
hdr.size = sizeof(hdr);
sound/soc/sof/sof-client-ipc-flood-test.c
86
ret = sof_client_ipc_tx_message_no_reply(cdev, &hdr);
sound/soc/sof/sof-client-ipc-kernel-injector.c
45
struct sof_ipc_cmd_hdr *hdr = priv->kernel_buffer;
sound/soc/sof/sof-client-ipc-kernel-injector.c
68
sof_client_ipc_rx_message(cdev, hdr, priv->kernel_buffer);
sound/soc/sof/sof-client-ipc-msg-injector.c
59
if (!rhdr->hdr.size || !count || *ppos)
sound/soc/sof/sof-client-ipc-msg-injector.c
62
if (count > rhdr->hdr.size)
sound/soc/sof/sof-client-ipc-msg-injector.c
63
count = rhdr->hdr.size;
sound/soc/sof/sof-client-probes-ipc3.c
124
msg.rhdr.hdr.size = sizeof(msg);
sound/soc/sof/sof-client-probes-ipc3.c
125
msg.rhdr.hdr.cmd = SOF_IPC_GLB_PROBE | cmd;
sound/soc/sof/sof-client-probes-ipc3.c
197
msg->hdr.size = size;
sound/soc/sof/sof-client-probes-ipc3.c
199
msg->hdr.cmd = SOF_IPC_GLB_PROBE | SOF_IPC_PROBE_POINT_ADD;
sound/soc/sof/sof-client-probes-ipc3.c
227
msg->hdr.size = size;
sound/soc/sof/sof-client-probes-ipc3.c
229
msg->hdr.cmd = SOF_IPC_GLB_PROBE | SOF_IPC_PROBE_POINT_REMOVE;
sound/soc/sof/sof-client-probes-ipc3.c
23
struct sof_ipc_cmd_hdr hdr;
sound/soc/sof/sof-client-probes-ipc3.c
38
struct sof_ipc_cmd_hdr hdr;
sound/soc/sof/sof-client-probes-ipc3.c
44
struct sof_ipc_cmd_hdr hdr;
sound/soc/sof/sof-client-probes-ipc3.c
73
msg->hdr.size = size;
sound/soc/sof/sof-client-probes-ipc3.c
74
msg->hdr.cmd = SOF_IPC_GLB_PROBE | SOF_IPC_PROBE_INIT;
sound/soc/sof/sof-client.c
312
struct sof_ipc_cmd_hdr *hdr = ipc_msg;
sound/soc/sof/sof-client.c
314
return sof_ipc_tx_message(sdev->ipc, ipc_msg, hdr->size,
sound/soc/sof/sof-client.c
333
struct sof_ipc_cmd_hdr *hdr = ipc_msg;
sound/soc/sof/sof-client.c
335
if (hdr->size < sizeof(hdr)) {
sound/soc/sof/sof-client.c
354
struct sof_ipc_cmd_hdr *hdr = ipc_msg;
sound/soc/sof/sof-client.c
356
return sof_ipc_set_get_data(sdev->ipc, ipc_msg, hdr->size, set);
sound/soc/sof/sof-client.c
515
struct sof_ipc_cmd_hdr *hdr = msg_buf;
sound/soc/sof/sof-client.c
517
msg_type = hdr->cmd & SOF_GLB_TYPE_MASK;
sound/soc/sof/sof-priv.h
226
struct snd_sof_mod_hdr *hdr); /* optional */
sound/soc/sof/sof-priv.h
294
const struct sof_ext_man_elem_header *hdr);
sound/soc/sof/topology.c
1002
ret = sof_control_load_bytes(scomp, scontrol, kc, hdr);
sound/soc/sof/topology.c
1008
ret = sof_control_load_enum(scomp, scontrol, kc, hdr);
sound/soc/sof/topology.c
1019
hdr->ops.get, hdr->ops.put, hdr->ops.info);
sound/soc/sof/topology.c
833
struct snd_soc_tplg_ctl_hdr *hdr)
sound/soc/sof/topology.c
837
container_of(hdr, struct snd_soc_tplg_mixer_control, hdr);
sound/soc/sof/topology.c
913
struct snd_soc_tplg_ctl_hdr *hdr)
sound/soc/sof/topology.c
917
container_of(hdr, struct snd_soc_tplg_enum_control, hdr);
sound/soc/sof/topology.c
935
struct snd_soc_tplg_ctl_hdr *hdr)
sound/soc/sof/topology.c
939
container_of(hdr, struct snd_soc_tplg_bytes_control, hdr);
sound/soc/sof/topology.c
963
struct snd_soc_tplg_ctl_hdr *hdr)
sound/soc/sof/topology.c
974
hdr->type, hdr->name);
sound/soc/sof/topology.c
980
scontrol->name = kstrdup(hdr->name, GFP_KERNEL);
sound/soc/sof/topology.c
988
scontrol->info_type = le32_to_cpu(hdr->ops.info);
sound/soc/sof/topology.c
991
switch (le32_to_cpu(hdr->ops.info)) {
sound/soc/sof/topology.c
997
ret = sof_control_load_volume(scomp, scontrol, kc, hdr);
sound/synth/emux/emux.c
55
struct snd_util_memhdr *hdr,
sound/synth/emux/emux.c
59
return emu->ops.sample_new(emu, sp, hdr, buf, count);
sound/synth/emux/emux.c
64
struct snd_util_memhdr *hdr)
sound/synth/emux/emux.c
67
return emu->ops.sample_free(emu, sp, hdr);
sound/synth/emux/soundfont.c
1390
snd_sf_new(struct snd_sf_callback *callback, struct snd_util_memhdr *hdr)
sound/synth/emux/soundfont.c
1400
sflist->memhdr = hdr;
sound/synth/emux/soundfont.c
477
struct soundfont_voice_rec_hdr hdr;
sound/synth/emux/soundfont.c
488
if (count < (long)sizeof(hdr)) {
sound/synth/emux/soundfont.c
492
if (copy_from_user((char*)&hdr, data, sizeof(hdr)))
sound/synth/emux/soundfont.c
495
data += sizeof(hdr);
sound/synth/emux/soundfont.c
496
count -= sizeof(hdr);
sound/synth/emux/soundfont.c
498
if (hdr.nvoices <= 0 || hdr.nvoices >= 100) {
sound/synth/emux/soundfont.c
500
hdr.nvoices);
sound/synth/emux/soundfont.c
504
if (count < (long)sizeof(struct soundfont_voice_info) * hdr.nvoices) {
sound/synth/emux/soundfont.c
507
count, hdr.nvoices);
sound/synth/emux/soundfont.c
511
switch (hdr.write_mode) {
sound/synth/emux/soundfont.c
517
zone->bank == hdr.bank &&
sound/synth/emux/soundfont.c
518
zone->instr == hdr.instr)
sound/synth/emux/soundfont.c
524
remove_info(sflist, sf, hdr.bank, hdr.instr);
sound/synth/emux/soundfont.c
528
for (i = 0; i < hdr.nvoices; i++) {
sound/synth/emux/soundfont.c
539
tmpzone.bank = hdr.bank;
sound/synth/emux/soundfont.c
540
tmpzone.instr = hdr.instr;
sound/synth/util_mem.c
102
blk = kmalloc(sizeof(struct snd_util_memblk) + hdr->block_extra_size,
sound/synth/util_mem.c
107
if (prev == &hdr->block)
sound/synth/util_mem.c
115
hdr->nblocks++;
sound/synth/util_mem.c
116
hdr->used += units;
sound/synth/util_mem.c
125
snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size)
sound/synth/util_mem.c
127
guard(mutex)(&hdr->block_mutex);
sound/synth/util_mem.c
128
return __snd_util_mem_alloc(hdr, size);
sound/synth/util_mem.c
137
__snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk)
sound/synth/util_mem.c
140
hdr->nblocks--;
sound/synth/util_mem.c
141
hdr->used -= blk->size;
sound/synth/util_mem.c
148
int snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk)
sound/synth/util_mem.c
150
if (snd_BUG_ON(!hdr || !blk))
sound/synth/util_mem.c
153
guard(mutex)(&hdr->block_mutex);
sound/synth/util_mem.c
154
__snd_util_mem_free(hdr, blk);
sound/synth/util_mem.c
161
int snd_util_mem_avail(struct snd_util_memhdr *hdr)
sound/synth/util_mem.c
163
guard(mutex)(&hdr->block_mutex);
sound/synth/util_mem.c
164
return hdr->size - hdr->used;
sound/synth/util_mem.c
27
struct snd_util_memhdr *hdr;
sound/synth/util_mem.c
29
hdr = kzalloc_obj(*hdr);
sound/synth/util_mem.c
30
if (hdr == NULL)
sound/synth/util_mem.c
32
hdr->size = memsize;
sound/synth/util_mem.c
33
mutex_init(&hdr->block_mutex);
sound/synth/util_mem.c
34
INIT_LIST_HEAD(&hdr->block);
sound/synth/util_mem.c
36
return hdr;
sound/synth/util_mem.c
42
void snd_util_memhdr_free(struct snd_util_memhdr *hdr)
sound/synth/util_mem.c
46
if (!hdr)
sound/synth/util_mem.c
49
while ((p = hdr->block.next) != &hdr->block) {
sound/synth/util_mem.c
53
kfree(hdr);
sound/synth/util_mem.c
60
__snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size)
sound/synth/util_mem.c
66
if (snd_BUG_ON(!hdr || size <= 0))
sound/synth/util_mem.c
73
if (units > hdr->size)
sound/synth/util_mem.c
78
list_for_each(p, &hdr->block) {
sound/synth/util_mem.c
84
if (hdr->size - prev_offset < units)
sound/synth/util_mem.c
88
return __snd_util_memblk_new(hdr, units, p->prev);
sound/synth/util_mem.c
97
__snd_util_memblk_new(struct snd_util_memhdr *hdr, unsigned int units,
sound/usb/mixer.c
178
struct uac_feature_unit_descriptor *hdr = NULL;
sound/usb/mixer.c
180
while ((hdr = snd_usb_find_desc(state->buffer, state->buflen, hdr,
sound/usb/mixer.c
182
if (hdr->bLength >= 4 &&
sound/usb/mixer.c
183
hdr->bDescriptorSubtype >= UAC_INPUT_TERMINAL &&
sound/usb/mixer.c
184
hdr->bDescriptorSubtype <= UAC3_SAMPLE_RATE_CONVERTER &&
sound/usb/mixer.c
185
hdr->bUnitID == unit)
sound/usb/mixer.c
186
return hdr;
sound/usb/mixer.c
1943
struct uac_clock_source_descriptor *hdr = _ftr;
sound/usb/mixer.c
1955
if (!uac_v2v3_control_is_readable(hdr->bmControls,
sound/usb/mixer.c
1963
snd_usb_mixer_elem_init_std(&cval->head, state->mixer, hdr->bClockID);
sound/usb/mixer.c
1981
ret = snd_usb_copy_string_desc(state->chip, hdr->iClockSource,
sound/usb/mixer.c
1987
"Clock Source %d Validity", hdr->bClockID);
sound/usb/mixer.c
2004
struct uac_feature_unit_descriptor *hdr = _ftr;
sound/usb/mixer.c
2008
csize = hdr->bControlSize;
sound/usb/mixer.c
2009
channels = (hdr->bLength - 7) / csize - 1;
sound/usb/mixer.c
2010
bmaControls = hdr->bmaControls;
sound/usb/mixer.c
2014
channels = (hdr->bLength - 6) / 4 - 1;
sound/usb/mixer.c
2032
err = parse_audio_unit(state, hdr->bSourceID);
sound/usb/mixer.c
2037
err = check_input_term(state, hdr->bSourceID, &iterm);
sound/usb/mixer.c
2139
u8 *hdr = (u8 *)desc;
sound/usb/mixer.c
2157
return c + (num_ins * num_outs + 7) / 8 + rest > hdr + hdr[0];
sound/usb/mixer.c
953
unsigned char *hdr;
sound/usb/mixer.c
966
hdr = p1;
sound/usb/mixer.c
969
switch (PTYPE(protocol, hdr[2])) {
sound/usb/validate.c
118
m = hdr[len];
sound/usb/validate.c
133
m = hdr[len];
sound/usb/validate.c
149
m = hdr[len];
sound/usb/validate.c
320
static bool validate_desc(unsigned char *hdr, int protocol,
sound/usb/validate.c
323
if (hdr[1] != USB_DT_CS_INTERFACE)
sound/usb/validate.c
327
if (v->type == hdr[2] &&
sound/usb/validate.c
331
return v->func(hdr, v);
sound/usb/validate.c
333
return hdr[0] >= v->size;
sound/usb/validate.c
73
const unsigned char *hdr = p;
sound/usb/validate.c
88
m = hdr[len];
sound/virtio/virtio_card.c
58
switch (le32_to_cpu(event->hdr.code)) {
sound/virtio/virtio_chmap.c
175
vpcm = virtsnd_pcm_find(snd, le32_to_cpu(info->hdr.hda_fn_nid));
sound/virtio/virtio_chmap.c
84
u32 nid = le32_to_cpu(info->hdr.hda_fn_nid);
sound/virtio/virtio_ctl_msg.c
271
query->hdr.code = cpu_to_le32(command);
sound/virtio/virtio_jack.c
159
vjack->nid = le32_to_cpu(info[i].hdr.hda_fn_nid);
sound/virtio/virtio_jack.c
221
switch (le32_to_cpu(event->hdr.code)) {
sound/virtio/virtio_kctl.c
111
struct virtio_snd_ctl_hdr *hdr;
sound/virtio/virtio_kctl.c
113
size_t request_size = sizeof(*hdr);
sound/virtio/virtio_kctl.c
124
hdr = virtsnd_ctl_msg_request(msg);
sound/virtio/virtio_kctl.c
125
hdr->hdr.code = cpu_to_le32(VIRTIO_SND_R_CTL_READ);
sound/virtio/virtio_kctl.c
126
hdr->control_id = cpu_to_le32(kcontrol->private_value);
sound/virtio/virtio_kctl.c
184
struct virtio_snd_ctl_hdr *hdr;
sound/virtio/virtio_kctl.c
186
size_t request_size = sizeof(*hdr) + sizeof(*kvalue);
sound/virtio/virtio_kctl.c
194
hdr = virtsnd_ctl_msg_request(msg);
sound/virtio/virtio_kctl.c
195
hdr->hdr.code = cpu_to_le32(VIRTIO_SND_R_CTL_WRITE);
sound/virtio/virtio_kctl.c
196
hdr->control_id = cpu_to_le32(kcontrol->private_value);
sound/virtio/virtio_kctl.c
198
kvalue = (void *)((u8 *)hdr + sizeof(*hdr));
sound/virtio/virtio_kctl.c
244
struct virtio_snd_ctl_hdr *hdr;
sound/virtio/virtio_kctl.c
249
msg = virtsnd_ctl_msg_alloc(sizeof(*hdr), sizeof(struct virtio_snd_hdr),
sound/virtio/virtio_kctl.c
262
hdr = virtsnd_ctl_msg_request(msg);
sound/virtio/virtio_kctl.c
263
hdr->control_id = cpu_to_le32(kcontrol->private_value);
sound/virtio/virtio_kctl.c
267
hdr->hdr.code = cpu_to_le32(VIRTIO_SND_R_CTL_TLV_READ);
sound/virtio/virtio_kctl.c
279
hdr->hdr.code = cpu_to_le32(VIRTIO_SND_R_CTL_TLV_WRITE);
sound/virtio/virtio_kctl.c
281
hdr->hdr.code =
sound/virtio/virtio_kctl.c
324
struct virtio_snd_ctl_hdr *hdr;
sound/virtio/virtio_kctl.c
328
msg = virtsnd_ctl_msg_alloc(sizeof(*hdr),
sound/virtio/virtio_kctl.c
342
hdr = virtsnd_ctl_msg_request(msg);
sound/virtio/virtio_kctl.c
343
hdr->hdr.code = cpu_to_le32(VIRTIO_SND_R_CTL_ENUM_ITEMS);
sound/virtio/virtio_kctl.c
344
hdr->control_id = cpu_to_le32(cid);
sound/virtio/virtio_pcm.c
374
vss->nid = le32_to_cpu(info[i].hdr.hda_fn_nid);
sound/virtio/virtio_pcm.c
513
switch (le32_to_cpu(event->hdr.code)) {
sound/virtio/virtio_pcm_msg.c
408
struct virtio_snd_pcm_hdr *hdr = virtsnd_ctl_msg_request(msg);
sound/virtio/virtio_pcm_msg.c
410
hdr->hdr.code = cpu_to_le32(command);
sound/virtio/virtio_pcm_msg.c
411
hdr->stream_id = cpu_to_le32(vss->sid);
tools/arch/x86/include/uapi/asm/kvm.h
549
} hdr;
tools/bpf/bpf_dbg.c
1095
struct pcap_pkthdr *hdr;
tools/bpf/bpf_dbg.c
1110
hdr = pcap_curr_pkt();
tools/bpf/bpf_dbg.c
1112
(uint8_t *) hdr + sizeof(*hdr),
tools/bpf/bpf_dbg.c
1113
hdr->caplen, hdr->len, steps);
tools/bpf/bpf_dbg.c
1190
struct pcap_pkthdr *hdr = pcap_curr_pkt();
tools/bpf/bpf_dbg.c
1192
(uint8_t *) hdr + sizeof(*hdr),
tools/bpf/bpf_dbg.c
1193
hdr->caplen, hdr->len);
tools/bpf/bpf_dbg.c
923
struct pcap_pkthdr *hdr = pcap_curr_pkt();
tools/bpf/bpf_dbg.c
925
if (pcap_ptr_va_curr + sizeof(*hdr) -
tools/bpf/bpf_dbg.c
928
if (hdr->caplen == 0 || hdr->len == 0 || hdr->caplen > hdr->len)
tools/bpf/bpf_dbg.c
930
if (pcap_ptr_va_curr + sizeof(*hdr) + hdr->caplen -
tools/bpf/bpf_dbg.c
934
pcap_ptr_va_curr += (sizeof(*hdr) + hdr->caplen);
tools/bpf/bpf_dbg.c
945
struct pcap_filehdr *hdr;
tools/bpf/bpf_dbg.c
979
hdr = (void *) pcap_ptr_va_start;
tools/bpf/bpf_dbg.c
980
if (hdr->magic != TCPDUMP_MAGIC) {
tools/build/feature/test-jvmti-cmlr.c
8
jvmtiCompiledMethodLoadRecordHeader hdr __attribute__((unused));
tools/hv/vmbus_bufring.c
191
pkt.hdr.type = type;
tools/hv/vmbus_bufring.c
192
pkt.hdr.flags = flags;
tools/hv/vmbus_bufring.c
193
pkt.hdr.hlen = hlen >> VMBUS_CHANPKT_SIZE_SHIFT;
tools/hv/vmbus_bufring.c
194
pkt.hdr.tlen = pad_pktlen >> VMBUS_CHANPKT_SIZE_SHIFT;
tools/hv/vmbus_bufring.c
195
pkt.hdr.xactid = VMBUS_RQST_ERROR;
tools/hv/vmbus_bufring.h
105
struct vmbus_chanpkt_hdr hdr;
tools/include/uapi/linux/bpf.h
105
struct bpf_lpm_trie_key_hdr hdr;
tools/include/uapi/linux/fanotify.h
177
struct fanotify_event_info_header hdr;
tools/include/uapi/linux/fanotify.h
191
struct fanotify_event_info_header hdr;
tools/include/uapi/linux/fanotify.h
196
struct fanotify_event_info_header hdr;
tools/include/uapi/linux/fanotify.h
202
struct fanotify_event_info_header hdr;
tools/include/uapi/linux/fanotify.h
209
struct fanotify_event_info_header hdr;
tools/include/uapi/linux/fanotify.h
239
struct fanotify_response_info_header hdr;
tools/include/uapi/linux/tcp.h
66
struct tcphdr hdr;
tools/lib/bpf/btf.c
1015
return (void *)btf->hdr != btf->raw_data;
tools/lib/bpf/btf.c
1044
free(btf->hdr);
tools/lib/bpf/btf.c
1075
btf->start_str_off = base_btf->hdr->str_len + base_btf->start_str_off;
tools/lib/bpf/btf.c
1087
btf->hdr = btf->raw_data;
tools/lib/bpf/btf.c
1088
btf->hdr->hdr_len = sizeof(struct btf_header);
tools/lib/bpf/btf.c
1089
btf->hdr->magic = BTF_MAGIC;
tools/lib/bpf/btf.c
1090
btf->hdr->version = BTF_VERSION;
tools/lib/bpf/btf.c
1092
btf->types_data = btf->raw_data + btf->hdr->hdr_len;
tools/lib/bpf/btf.c
1093
btf->strs_data = btf->raw_data + btf->hdr->hdr_len;
tools/lib/bpf/btf.c
1094
btf->hdr->str_len = base_btf ? 0 : 1; /* empty string at offset 0 */
tools/lib/bpf/btf.c
1127
btf->start_str_off = base_btf->hdr->str_len + base_btf->start_str_off;
tools/lib/bpf/btf.c
1144
btf->hdr = btf->raw_data;
tools/lib/bpf/btf.c
1149
btf->strs_data = btf->raw_data + btf->hdr->hdr_len + btf->hdr->str_off;
tools/lib/bpf/btf.c
1150
btf->types_data = btf->raw_data + btf->hdr->hdr_len + btf->hdr->type_off;
tools/lib/bpf/btf.c
1604
struct btf_header *hdr = btf->hdr;
tools/lib/bpf/btf.c
1616
data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len;
tools/lib/bpf/btf.c
1622
memcpy(p, hdr, hdr->hdr_len);
tools/lib/bpf/btf.c
1625
p += hdr->hdr_len;
tools/lib/bpf/btf.c
1627
memcpy(p, btf->types_data, hdr->type_len);
tools/lib/bpf/btf.c
1640
p += hdr->type_len;
tools/lib/bpf/btf.c
1642
memcpy(p, btf_strs_data(btf), hdr->str_len);
tools/lib/bpf/btf.c
1643
p += hdr->str_len;
tools/lib/bpf/btf.c
1678
else if (offset - btf->start_str_off < btf->hdr->str_len)
tools/lib/bpf/btf.c
1791
void *hdr, *types;
tools/lib/bpf/btf.c
1802
hdr = malloc(btf->hdr->hdr_len);
tools/lib/bpf/btf.c
1803
types = malloc(btf->hdr->type_len);
tools/lib/bpf/btf.c
1804
if (!hdr || !types)
tools/lib/bpf/btf.c
1807
memcpy(hdr, btf->hdr, btf->hdr->hdr_len);
tools/lib/bpf/btf.c
1808
memcpy(types, btf->types_data, btf->hdr->type_len);
tools/lib/bpf/btf.c
1811
set = strset__new(BTF_MAX_STR_OFFSET, btf->strs_data, btf->hdr->str_len);
tools/lib/bpf/btf.c
1818
btf->hdr = hdr;
tools/lib/bpf/btf.c
1820
btf->types_data_cap = btf->hdr->type_len;
tools/lib/bpf/btf.c
1826
if (btf->hdr->str_len == 0)
tools/lib/bpf/btf.c
1828
if (!btf->base_btf && btf->hdr->str_len == 1)
tools/lib/bpf/btf.c
1838
free(hdr);
tools/lib/bpf/btf.c
1892
btf->hdr->str_len = strset__data_size(btf->strs_set);
tools/lib/bpf/btf.c
1900
btf->hdr->type_len, UINT_MAX, add_sz);
tools/lib/bpf/btf.c
1912
err = btf_add_type_idx_entry(btf, btf->hdr->type_len);
tools/lib/bpf/btf.c
1916
btf->hdr->type_len += data_sz;
tools/lib/bpf/btf.c
1917
btf->hdr->str_off += data_sz;
tools/lib/bpf/btf.c
2021
old_strs_len = btf->hdr->str_len;
tools/lib/bpf/btf.c
2023
data_sz = src_btf->hdr->type_len;
tools/lib/bpf/btf.c
2097
btf->hdr->type_len += data_sz;
tools/lib/bpf/btf.c
2098
btf->hdr->str_off += data_sz;
tools/lib/bpf/btf.c
2109
memset(btf->types_data + btf->hdr->type_len, 0, data_sz);
tools/lib/bpf/btf.c
2110
memset(btf->strs_data + old_strs_len, 0, btf->hdr->str_len - old_strs_len);
tools/lib/bpf/btf.c
2115
btf->hdr->str_len = old_strs_len;
tools/lib/bpf/btf.c
231
struct btf_header *hdr = btf->hdr;
tools/lib/bpf/btf.c
239
if (hdr->magic == bswap_16(BTF_MAGIC)) {
tools/lib/bpf/btf.c
241
if (bswap_32(hdr->hdr_len) != sizeof(struct btf_header)) {
tools/lib/bpf/btf.c
243
bswap_32(hdr->hdr_len));
tools/lib/bpf/btf.c
2433
btf->hdr->type_len += sz;
tools/lib/bpf/btf.c
2434
btf->hdr->str_off += sz;
tools/lib/bpf/btf.c
246
btf_bswap_hdr(hdr);
tools/lib/bpf/btf.c
247
} else if (hdr->magic != BTF_MAGIC) {
tools/lib/bpf/btf.c
248
pr_debug("Invalid BTF magic: %x\n", hdr->magic);
tools/lib/bpf/btf.c
252
if (btf->raw_size < hdr->hdr_len) {
tools/lib/bpf/btf.c
254
hdr->hdr_len, btf->raw_size);
tools/lib/bpf/btf.c
2543
btf->hdr->type_len += sz;
tools/lib/bpf/btf.c
2544
btf->hdr->str_off += sz;
tools/lib/bpf/btf.c
258
meta_left = btf->raw_size - hdr->hdr_len;
tools/lib/bpf/btf.c
259
if (meta_left < (long long)hdr->str_off + hdr->str_len) {
tools/lib/bpf/btf.c
2615
btf->hdr->type_len += sz;
tools/lib/bpf/btf.c
2616
btf->hdr->str_off += sz;
tools/lib/bpf/btf.c
264
if ((long long)hdr->type_off + hdr->type_len > hdr->str_off) {
tools/lib/bpf/btf.c
266
hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len);
tools/lib/bpf/btf.c
270
if (hdr->type_off % 4) {
tools/lib/bpf/btf.c
280
const struct btf_header *hdr = btf->hdr;
tools/lib/bpf/btf.c
282
const char *end = start + btf->hdr->str_len;
tools/lib/bpf/btf.c
284
if (btf->base_btf && hdr->str_len == 0)
tools/lib/bpf/btf.c
2854
btf->hdr->type_len += sz;
tools/lib/bpf/btf.c
2855
btf->hdr->str_off += sz;
tools/lib/bpf/btf.c
286
if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || end[-1]) {
tools/lib/bpf/btf.c
2991
btf->hdr->type_len += sz;
tools/lib/bpf/btf.c
2992
btf->hdr->str_off += sz;
tools/lib/bpf/btf.c
3095
info = btf_ext->data + btf_ext->hdr->hdr_len + ext_sec->off;
tools/lib/bpf/btf.c
3175
.off = btf_ext->hdr->func_info_off,
tools/lib/bpf/btf.c
3176
.len = btf_ext->hdr->func_info_len,
tools/lib/bpf/btf.c
3182
.off = btf_ext->hdr->line_info_off,
tools/lib/bpf/btf.c
3183
.len = btf_ext->hdr->line_info_len,
tools/lib/bpf/btf.c
3203
if (btf_ext->hdr->hdr_len < offsetofend(struct btf_ext_header, core_relo_len))
tools/lib/bpf/btf.c
3206
core_relo.off = btf_ext->hdr->core_relo_off;
tools/lib/bpf/btf.c
3207
core_relo.len = btf_ext->hdr->core_relo_len;
tools/lib/bpf/btf.c
3302
struct btf_ext_header *hdr = btf_ext->hdr;
tools/lib/bpf/btf.c
3311
hdr_len = hdr->hdr_len;
tools/lib/bpf/btf.c
3312
if (hdr->magic == bswap_16(BTF_MAGIC)) {
tools/lib/bpf/btf.c
3315
} else if (hdr->magic != BTF_MAGIC) {
tools/lib/bpf/btf.c
3316
pr_debug("Invalid BTF.ext magic:%x\n", hdr->magic);
tools/lib/bpf/btf.c
3321
if (hdr->version != 1) {
tools/lib/bpf/btf.c
3322
pr_debug("Unsupported BTF.ext version:%u\n", hdr->version);
tools/lib/bpf/btf.c
3326
if (hdr->flags) {
tools/lib/bpf/btf.c
3327
pr_debug("Unsupported BTF.ext flags:%x\n", hdr->flags);
tools/lib/bpf/btf.c
3347
btf_ext_bswap_hdr(btf_ext->hdr);
tools/lib/bpf/btf.c
3956
d->btf->hdr->str_len = strset__data_size(d->strs_set);
tools/lib/bpf/btf.c
424
struct btf_header *hdr = btf->hdr;
tools/lib/bpf/btf.c
426
void *end_type = next_type + hdr->type_len;
tools/lib/bpf/btf.c
5403
d->btf->hdr->type_len = p - d->btf->types_data;
tools/lib/bpf/btf.c
5409
d->btf->hdr->str_off = d->btf->hdr->type_len;
tools/lib/bpf/btf.c
5410
d->btf->raw_size = d->btf->hdr->hdr_len + d->btf->hdr->type_len + d->btf->hdr->str_len;
tools/lib/bpf/btf.c
5868
dist.split_start_str = old_base->hdr->str_len;
tools/lib/bpf/btf.c
5937
return btf->hdr;
tools/lib/bpf/btf.c
5944
btf->start_str_off = base_btf->hdr->str_len + base_btf->start_str_off;
tools/lib/bpf/btf.c
6011
new_types = calloc(btf->hdr->type_len, 1);
tools/lib/bpf/btf.c
78
struct btf_header *hdr;
tools/lib/bpf/libbpf.c
3798
static bool ignore_elf_section(Elf64_Shdr *hdr, const char *name)
tools/lib/bpf/libbpf.c
3801
if (hdr->sh_type == SHT_STRTAB)
tools/lib/bpf/libbpf.c
3805
if (hdr->sh_type == SHT_LLVM_ADDRSIG)
tools/lib/bpf/libbpf.c
3809
if (hdr->sh_type == SHT_PROGBITS && hdr->sh_size == 0 &&
tools/lib/bpf/libbpf_internal.h
500
struct btf_ext_header *hdr;
tools/lib/bpf/libbpf_probes.c
225
struct btf_header hdr = {
tools/lib/bpf/libbpf_probes.c
240
btf_len = hdr.hdr_len + hdr.type_len + hdr.str_len;
tools/lib/bpf/libbpf_probes.c
245
memcpy(raw_btf, &hdr, sizeof(hdr));
tools/lib/bpf/libbpf_probes.c
246
memcpy(raw_btf + hdr.hdr_len, raw_types, hdr.type_len);
tools/lib/bpf/libbpf_probes.c
247
memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len);
tools/lib/bpf/linker.c
2972
struct btf_ext_header *hdr;
tools/lib/bpf/linker.c
3039
hdr = cur;
tools/lib/bpf/linker.c
3040
hdr->magic = BTF_MAGIC;
tools/lib/bpf/linker.c
3041
hdr->version = BTF_VERSION;
tools/lib/bpf/linker.c
3042
hdr->flags = 0;
tools/lib/bpf/linker.c
3043
hdr->hdr_len = sizeof(struct btf_ext_header);
tools/lib/bpf/linker.c
3047
hdr->func_info_off = 0;
tools/lib/bpf/linker.c
3048
hdr->func_info_len = funcs_sz;
tools/lib/bpf/linker.c
3049
hdr->line_info_off = funcs_sz;
tools/lib/bpf/linker.c
3050
hdr->line_info_len = lines_sz;
tools/lib/bpf/linker.c
3051
hdr->core_relo_off = funcs_sz + lines_sz;
tools/lib/bpf/linker.c
3052
hdr->core_relo_len = core_relos_sz;
tools/lib/bpf/ringbuf.c
553
struct ringbuf_hdr *hdr;
tools/lib/bpf/ringbuf.c
557
hdr = rb->data + (hdr_offset & rb->mask);
tools/lib/bpf/ringbuf.c
559
new_len = hdr->len & ~BPF_RINGBUF_BUSY_BIT;
tools/lib/bpf/ringbuf.c
566
__atomic_exchange_n(&hdr->len, new_len, __ATOMIC_ACQ_REL);
tools/lib/bpf/ringbuf.c
584
struct ringbuf_hdr *hdr;
tools/lib/bpf/ringbuf.c
608
hdr = rb->data + (prod_pos & rb->mask);
tools/lib/bpf/ringbuf.c
609
hdr->len = size | BPF_RINGBUF_BUSY_BIT;
tools/lib/bpf/ringbuf.c
610
hdr->pad = 0;
tools/lib/thermal/commands.c
380
void *hdr;
tools/lib/thermal/commands.c
386
hdr = genlmsg_put(msg, NL_AUTO_PORT, NL_AUTO_SEQ, thermal_cmd_ops.o_id,
tools/lib/thermal/commands.c
388
if (!hdr)
tools/perf/arch/x86/tests/amd-ibs-period.c
201
struct perf_event_header hdr;
tools/perf/arch/x86/tests/amd-ibs-period.c
213
if (rb_read(rb, &hdr, sizeof(hdr)))
tools/perf/arch/x86/tests/amd-ibs-period.c
216
if (hdr.type == PERF_RECORD_SAMPLE) {
tools/perf/arch/x86/tests/amd-ibs-period.c
223
rb_skip(rb, hdr.size - sizeof(hdr));
tools/perf/builtin-inject.c
1647
struct perf_event_header *hdr;
tools/perf/builtin-inject.c
1648
size_t hdr_sz = sizeof(*hdr);
tools/perf/builtin-inject.c
1658
hdr = buf;
tools/perf/builtin-inject.c
1665
hdr->size = 0;
tools/perf/builtin-inject.c
1671
ret = readn(gs->tmp_fd, buf, hdr->size - hdr_sz);
tools/perf/builtin-inject.c
1678
if (hdr->type >= PERF_RECORD_USER_TYPE_START) {
tools/perf/jvmti/jvmti_agent.c
55
static int get_e_machine(struct jitheader *hdr)
tools/perf/jvmti/jvmti_agent.c
81
hdr->elf_mach = info.e_machine;
tools/perf/jvmti/libjvmti.c
105
for (hdr = compile_info; hdr != NULL; hdr = hdr->next) {
tools/perf/jvmti/libjvmti.c
106
if (hdr->kind == JVMTI_CMLR_INLINE_INFO) {
tools/perf/jvmti/libjvmti.c
107
rec = (jvmtiCompiledMethodLoadInlineRecord *)hdr;
tools/perf/jvmti/libjvmti.c
75
const jvmtiCompiledMethodLoadRecordHeader *hdr;
tools/perf/jvmti/libjvmti.c
88
for (hdr = compile_info; hdr != NULL; hdr = hdr->next) {
tools/perf/jvmti/libjvmti.c
89
if (hdr->kind == JVMTI_CMLR_INLINE_INFO) {
tools/perf/jvmti/libjvmti.c
90
rec = (jvmtiCompiledMethodLoadInlineRecord *)hdr;
tools/perf/ui/hist.c
404
const char *hdr = "";
tools/perf/ui/hist.c
407
hdr = fmt->name;
tools/perf/ui/hist.c
409
return scnprintf(hpp->buf, hpp->size, "%*s", len, hdr);
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
167
unsigned int hdr;
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
175
hdr = buf[0];
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
177
if (hdr == SPE_HEADER0_PAD)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
180
if (hdr == SPE_HEADER0_END) /* no timestamp at end of record */
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
183
if (hdr == SPE_HEADER0_TIMESTAMP)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
186
if ((hdr & SPE_HEADER0_MASK1) == SPE_HEADER0_EVENTS)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
189
if ((hdr & SPE_HEADER0_MASK1) == SPE_HEADER0_SOURCE)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
192
if ((hdr & SPE_HEADER0_MASK2) == SPE_HEADER0_CONTEXT)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
195
if ((hdr & SPE_HEADER0_MASK2) == SPE_HEADER0_OP_TYPE)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
198
if ((hdr & SPE_HEADER0_MASK2) == SPE_HEADER0_EXTENDED) {
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
204
hdr = buf[1];
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
205
if (hdr == SPE_HEADER1_ALIGNMENT)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
215
if ((hdr & SPE_HEADER0_MASK3) == SPE_HEADER0_ADDRESS)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
218
if ((hdr & SPE_HEADER0_MASK3) == SPE_HEADER0_COUNTER)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
42
static unsigned int arm_spe_payload_len(unsigned char hdr)
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
44
return 1U << ((hdr & GENMASK_ULL(5, 4)) >> 4);
tools/perf/util/bpf_off_cpu.c
328
.hdr = {
tools/perf/util/bpf_off_cpu.c
38
struct perf_event_header hdr;
tools/perf/util/bpf_off_cpu.c
415
data.hdr.size = size;
tools/perf/util/session.c
1877
void perf_event_header__bswap(struct perf_event_header *hdr)
tools/perf/util/session.c
1879
hdr->type = bswap_32(hdr->type);
tools/perf/util/session.c
1880
hdr->misc = bswap_16(hdr->misc);
tools/perf/util/session.c
1881
hdr->size = bswap_16(hdr->size);
tools/perf/util/session.c
281
struct perf_event_header *hdr = &event->header;
tools/perf/util/session.c
282
mem_bswap_64(hdr + 1, event->header.size - sizeof(*hdr));
tools/perf/util/session.h
121
void perf_event_header__bswap(struct perf_event_header *hdr);
tools/perf/util/sort.c
2732
const char *hdr = "";
tools/perf/util/sort.c
2735
hdr = fmt->name;
tools/perf/util/sort.c
2742
return scnprintf(hpp->buf, hpp->size, "%-*.*s", len, len, hdr);
tools/perf/util/unwind-libunwind-local.c
287
struct eh_frame_hdr hdr;
tools/perf/util/unwind-libunwind-local.c
288
u8 *enc = (u8 *) &hdr.enc;
tools/perf/util/unwind-libunwind-local.c
289
u8 *end = (u8 *) &hdr.data;
tools/perf/util/unwind-libunwind-local.c
293
(u8 *) &hdr, sizeof(hdr));
tools/perf/util/unwind-libunwind-local.c
294
if (r != sizeof(hdr))
tools/perf/util/unwind-libunwind-local.c
298
dw_read_encoded_value(enc, end, hdr.eh_frame_ptr_enc);
tools/perf/util/unwind-libunwind-local.c
300
*fde_count = dw_read_encoded_value(enc, end, hdr.fde_count_enc);
tools/perf/util/unwind-libunwind-local.c
301
*table_data_offset = enc - (u8 *) &hdr;
tools/testing/cxl/test/mem.c
1461
le32_to_cpu(input->hdr.flags));
tools/testing/cxl/test/mem.c
1473
if (input->hdr.offset) {
tools/testing/cxl/test/mem.c
1488
if (uuid_equal(&input->hdr.uuid, &CXL_VENDOR_FEATURE_TEST))
tools/testing/cxl/test/mem.c
287
pl->records[i].event.generic.hdr.handle =
tools/testing/cxl/test/mem.c
378
.hdr = {
tools/testing/cxl/test/mem.c
392
.hdr = {
tools/testing/cxl/test/mem.c
411
.hdr = {
tools/testing/cxl/test/mem.c
441
.hdr = {
tools/testing/cxl/test/mem.c
473
.hdr = {
tools/testing/nvdimm/test/ndtest.c
206
struct nd_cmd_get_config_data_hdr *hdr)
tools/testing/nvdimm/test/ndtest.c
210
if ((hdr->in_offset + hdr->in_length) > LABEL_SIZE)
tools/testing/nvdimm/test/ndtest.c
213
hdr->status = 0;
tools/testing/nvdimm/test/ndtest.c
214
len = min(hdr->in_length, LABEL_SIZE - hdr->in_offset);
tools/testing/nvdimm/test/ndtest.c
215
memcpy(hdr->out_buf, p->label_area + hdr->in_offset, len);
tools/testing/nvdimm/test/ndtest.c
221
struct nd_cmd_set_config_hdr *hdr)
tools/testing/nvdimm/test/ndtest.c
225
if ((hdr->in_offset + hdr->in_length) > LABEL_SIZE)
tools/testing/nvdimm/test/ndtest.c
228
len = min(hdr->in_length, LABEL_SIZE - hdr->in_offset);
tools/testing/nvdimm/test/ndtest.c
229
memcpy(p->label_area + hdr->in_offset, hdr->in_buf, len);
tools/testing/selftests/bpf/cap_helpers.c
13
struct __user_cap_header_struct hdr = {
tools/testing/selftests/bpf/cap_helpers.c
20
err = capget(&hdr, data);
tools/testing/selftests/bpf/cap_helpers.c
33
err = capset(&hdr, data);
tools/testing/selftests/bpf/cap_helpers.c
43
struct __user_cap_header_struct hdr = {
tools/testing/selftests/bpf/cap_helpers.c
50
err = capget(&hdr, data);
tools/testing/selftests/bpf/cap_helpers.c
62
err = capset(&hdr, data);
tools/testing/selftests/bpf/map_tests/lpm_trie_map_basic_ops.c
40
struct bpf_lpm_trie_key_hdr hdr;
tools/testing/selftests/bpf/map_tests/lpm_trie_map_basic_ops.c
48
struct bpf_lpm_trie_key_hdr hdr;
tools/testing/selftests/bpf/prog_tests/btf.c
4280
static void *btf_raw_create(const struct btf_header *hdr,
tools/testing/selftests/bpf/prog_tests/btf.c
4300
size_needed = sizeof(*hdr) + type_sec_size + str_sec_size;
tools/testing/selftests/bpf/prog_tests/btf.c
4306
memcpy(raw_btf, hdr, sizeof(*hdr));
tools/testing/selftests/bpf/prog_tests/btf.c
4307
offset = sizeof(*hdr);
tools/testing/selftests/bpf/prog_tests/btf.c
4403
struct btf_header *hdr;
tools/testing/selftests/bpf/prog_tests/btf.c
4418
hdr = raw_btf;
tools/testing/selftests/bpf/prog_tests/btf.c
4420
hdr->hdr_len = (int)hdr->hdr_len + test->hdr_len_delta;
tools/testing/selftests/bpf/prog_tests/btf.c
4421
hdr->type_off = (int)hdr->type_off + test->type_off_delta;
tools/testing/selftests/bpf/prog_tests/btf.c
4422
hdr->str_off = (int)hdr->str_off + test->str_off_delta;
tools/testing/selftests/bpf/prog_tests/btf.c
4423
hdr->str_len = (int)hdr->str_len + test->str_len_delta;
tools/testing/selftests/bpf/prog_tests/btf_endian.c
21
const struct btf_header *hdr;
tools/testing/selftests/bpf/prog_tests/btf_endian.c
55
hdr = swap_raw_data;
tools/testing/selftests/bpf/prog_tests/btf_endian.c
56
ASSERT_EQ(bswap_16(hdr->magic), BTF_MAGIC, "btf_magic_swapped");
tools/testing/selftests/bpf/prog_tests/btf_endian.c
66
hdr = swap_raw_data;
tools/testing/selftests/bpf/prog_tests/btf_endian.c
67
ASSERT_EQ(hdr->magic, BTF_MAGIC, "btf_magic_native");
tools/testing/selftests/bpf/prog_tests/core_reloc_raw.c
23
struct btf_header hdr;
tools/testing/selftests/bpf/prog_tests/core_reloc_raw.c
27
.hdr = {
tools/testing/selftests/bpf/prog_tests/sock_addr.c
294
struct msghdr hdr;
tools/testing/selftests/bpf/prog_tests/sock_addr.c
301
memset(&hdr, 0, sizeof(hdr));
tools/testing/selftests/bpf/prog_tests/sock_addr.c
302
hdr.msg_name = (void *)addr;
tools/testing/selftests/bpf/prog_tests/sock_addr.c
303
hdr.msg_namelen = addrlen;
tools/testing/selftests/bpf/prog_tests/sock_addr.c
304
hdr.msg_iov = &iov;
tools/testing/selftests/bpf/prog_tests/sock_addr.c
305
hdr.msg_iovlen = 1;
tools/testing/selftests/bpf/prog_tests/sock_addr.c
307
return sendmsg(fd, &hdr, 0);
tools/testing/selftests/bpf/progs/bpf_flow.c
105
hdr = data + thoff;
tools/testing/selftests/bpf/progs/bpf_flow.c
106
if (hdr + hdr_size <= data_end)
tools/testing/selftests/bpf/progs/bpf_flow.c
107
return hdr;
tools/testing/selftests/bpf/progs/bpf_flow.c
87
static inline __be32 ip6_flowlabel(const struct ipv6hdr *hdr)
tools/testing/selftests/bpf/progs/bpf_flow.c
89
return *(__be32 *)hdr & IPV6_FLOWLABEL_MASK;
tools/testing/selftests/bpf/progs/bpf_flow.c
99
__u8 *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1097
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1098
char buffer[sizeof(*hdr)] = {};
tools/testing/selftests/bpf/progs/dynptr_fail.c
1102
hdr = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer));
tools/testing/selftests/bpf/progs/dynptr_fail.c
1103
if (!hdr)
tools/testing/selftests/bpf/progs/dynptr_fail.c
1107
hdr->h_proto = 1;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1138
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1139
char buffer[sizeof(*hdr)] = {};
tools/testing/selftests/bpf/progs/dynptr_fail.c
1143
hdr = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer));
tools/testing/selftests/bpf/progs/dynptr_fail.c
1144
if (!hdr)
tools/testing/selftests/bpf/progs/dynptr_fail.c
1147
val = hdr->h_proto;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1153
val = hdr->h_proto;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1164
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1165
char buffer[sizeof(*hdr)] = {};
tools/testing/selftests/bpf/progs/dynptr_fail.c
1169
hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer));
tools/testing/selftests/bpf/progs/dynptr_fail.c
1170
if (!hdr)
tools/testing/selftests/bpf/progs/dynptr_fail.c
1173
hdr->h_proto = 123;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1179
hdr->h_proto = 1;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1191
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1192
char buffer[sizeof(*hdr)] = {};
tools/testing/selftests/bpf/progs/dynptr_fail.c
1196
hdr = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer));
tools/testing/selftests/bpf/progs/dynptr_fail.c
1197
if (!hdr)
tools/testing/selftests/bpf/progs/dynptr_fail.c
1200
val = hdr->h_proto;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1205
val = hdr->h_proto;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1217
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1218
char buffer[sizeof(*hdr)] = {};
tools/testing/selftests/bpf/progs/dynptr_fail.c
1221
hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer));
tools/testing/selftests/bpf/progs/dynptr_fail.c
1222
if (!hdr)
tools/testing/selftests/bpf/progs/dynptr_fail.c
1225
hdr->h_proto = 123;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1230
hdr->h_proto = 1;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1423
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1424
char buffer[sizeof(*hdr)] = {};
tools/testing/selftests/bpf/progs/dynptr_fail.c
1427
hdr = bpf_dynptr_slice(&ptr, 0, buffer, sizeof(buffer));
tools/testing/selftests/bpf/progs/dynptr_fail.c
1428
if (!hdr)
tools/testing/selftests/bpf/progs/dynptr_fail.c
1431
val = hdr->h_proto;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1433
if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(*hdr)))
tools/testing/selftests/bpf/progs/dynptr_fail.c
1437
val = hdr->h_proto;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1448
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1449
char buffer[sizeof(*hdr)] = {};
tools/testing/selftests/bpf/progs/dynptr_fail.c
1452
hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer));
tools/testing/selftests/bpf/progs/dynptr_fail.c
1453
if (!hdr)
tools/testing/selftests/bpf/progs/dynptr_fail.c
1456
hdr->h_proto = 9;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1458
if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(*hdr)))
tools/testing/selftests/bpf/progs/dynptr_fail.c
1462
hdr->h_proto = 1;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1554
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1555
char buffer[sizeof(*hdr)] = {};
tools/testing/selftests/bpf/progs/dynptr_fail.c
1560
hdr = bpf_dynptr_slice(&ptr, 0, buffer, hdr_size);
tools/testing/selftests/bpf/progs/dynptr_fail.c
1561
if (!hdr)
tools/testing/selftests/bpf/progs/dynptr_fail.c
1574
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1580
hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, hdr_size);
tools/testing/selftests/bpf/progs/dynptr_fail.c
1581
if (!hdr)
tools/testing/selftests/bpf/progs/dynptr_fail.c
1583
hdr->h_proto = 12;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1630
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1637
hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer));
tools/testing/selftests/bpf/progs/dynptr_fail.c
1638
__sink(hdr);
tools/testing/selftests/bpf/progs/dynptr_fail.c
1934
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
1944
if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(*hdr)))
tools/testing/selftests/bpf/progs/dynptr_fail.c
257
struct ethhdr *hdr;
tools/testing/selftests/bpf/progs/dynptr_fail.c
258
char buffer[sizeof(*hdr)] = {};
tools/testing/selftests/bpf/progs/dynptr_fail.c
262
hdr = bpf_dynptr_slice_rdwr(&ptr, 0, buffer, sizeof(buffer));
tools/testing/selftests/bpf/progs/dynptr_fail.c
263
if (!hdr)
tools/testing/selftests/bpf/progs/dynptr_fail.c
267
*(__u8*)(hdr + 1) = 1;
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
725
tuplen = fill_tuple(&tuple, info->hdr, info->len, tcp.source, tcp.dest);
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
726
return classify_tcp(skb, &tuple, tuplen, info->hdr, &tcp);
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
744
tuplen = fill_tuple(&tuple, info->hdr, info->len, udph.source, udph.dest);
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
753
.hdr = &ipv4,
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
795
.hdr = &ipv6,
tools/testing/selftests/bpf/progs/test_cls_redirect_dynptr.c
98
void *hdr;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
21
} hdr;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
24
memset(&hdr, 0, sizeof(struct encap_hdr));
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
26
hdr.iph.ihl = 5;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
27
hdr.iph.version = 4;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
28
hdr.iph.ttl = 0x40;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
29
hdr.iph.protocol = 47; /* IPPROTO_GRE */
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
31
hdr.iph.saddr = 0x640110ac; /* 172.16.1.100 */
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
32
hdr.iph.daddr = 0x641010ac; /* 172.16.16.100 */
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
34
hdr.iph.saddr = 0xac100164; /* 172.16.1.100 */
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
35
hdr.iph.daddr = 0xac101064; /* 172.16.16.100 */
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
39
hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr));
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
41
hdr.greh.protocol = skb->protocol;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
43
err = bpf_lwt_push_encap(skb, BPF_LWT_ENCAP_IP, &hdr,
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
57
} hdr;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
60
memset(&hdr, 0, sizeof(struct encap_hdr));
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
62
hdr.ip6hdr.version = 6;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
63
hdr.ip6hdr.payload_len = bpf_htons(skb->len + sizeof(struct grehdr));
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
64
hdr.ip6hdr.nexthdr = 47; /* IPPROTO_GRE */
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
65
hdr.ip6hdr.hop_limit = 0x40;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
67
hdr.ip6hdr.saddr.s6_addr[0] = 0xfb;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
68
hdr.ip6hdr.saddr.s6_addr[1] = 1;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
69
hdr.ip6hdr.saddr.s6_addr[15] = 1;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
71
hdr.ip6hdr.daddr.s6_addr[0] = 0xfb;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
72
hdr.ip6hdr.daddr.s6_addr[1] = 0x10;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
73
hdr.ip6hdr.daddr.s6_addr[15] = 1;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
75
hdr.greh.protocol = skb->protocol;
tools/testing/selftests/bpf/progs/test_lwt_ip_encap.c
77
err = bpf_lwt_push_encap(skb, BPF_LWT_ENCAP_IP, &hdr,
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
103
if (hdr.ip6.saddr.s6_addr16[7] != last_addr16_n ||
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
104
hdr.ip6.daddr.s6_addr16[7] != last_addr16_n)
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
107
ret = bpf_getsockopt(skops, SOL_TCP, TCP_BPF_SYN_IP, &hdr, sizeof(hdr));
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
111
pth = (struct tcphdr *)(&hdr.ip6 + 1);
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
115
ret = bpf_getsockopt(skops, SOL_TCP, TCP_BPF_SYN, &hdr, sizeof(hdr));
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
119
if (hdr.th.dest != passive_lport_n || hdr.th.source != active_lport_n)
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
41
} hdr = {};
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
46
hdr.reg_opt.kind = 0xB9;
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
49
ret = bpf_load_hdr_opt(skops, &hdr.reg_opt, 2, load_flags);
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
54
hdr.reg_opt.len = 4;
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
55
ret = bpf_load_hdr_opt(skops, &hdr.reg_opt, sizeof(hdr.reg_opt),
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
60
hdr.reg_opt.len = 0;
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
61
ret = bpf_load_hdr_opt(skops, &hdr.reg_opt, sizeof(hdr.reg_opt),
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
63
if (ret != 4 || hdr.reg_opt.len != 4 || hdr.reg_opt.kind != 0xB9 ||
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
64
hdr.reg_opt.data[0] != 0xfa || hdr.reg_opt.data[1] != 0xce)
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
68
hdr.exprm_opt.kind = TCPOPT_EXP;
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
69
hdr.exprm_opt.len = 5;
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
70
hdr.exprm_opt.magic = 0;
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
71
ret = bpf_load_hdr_opt(skops, &hdr.exprm_opt, sizeof(hdr.exprm_opt),
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
77
hdr.exprm_opt.len = 4;
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
78
ret = bpf_load_hdr_opt(skops, &hdr.exprm_opt, sizeof(hdr.exprm_opt),
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
83
hdr.exprm_opt.magic = __bpf_htons(0xeB9F);
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
84
ret = bpf_load_hdr_opt(skops, &hdr.exprm_opt, sizeof(hdr.exprm_opt),
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
86
if (ret != 4 || hdr.exprm_opt.len != 4 ||
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
87
hdr.exprm_opt.kind != TCPOPT_EXP ||
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
88
hdr.exprm_opt.magic != __bpf_htons(0xeB9F))
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
98
ret = bpf_getsockopt(skops, SOL_TCP, TCP_BPF_SYN_IP, &hdr.ip6,
tools/testing/selftests/bpf/progs/test_misc_tcp_hdr_options.c
99
sizeof(hdr.ip6));
tools/testing/selftests/bpf/progs/test_tc_change_tail.c
44
void *hdr = (void *)iph;
tools/testing/selftests/bpf/progs/test_tc_change_tail.c
48
udp = hdr + (iph->ihl * 4);
tools/testing/selftests/bpf/progs/test_tc_change_tail.c
49
hdr = (void *)udp;
tools/testing/selftests/bpf/progs/test_tc_change_tail.c
52
if ((void *)(hdr + sizeof(*udp)) > data_end)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
376
struct header_pointers *hdr)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
378
hdr->eth = data;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
379
if (hdr->eth + 1 > data_end)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
382
switch (bpf_ntohs(hdr->eth->h_proto)) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
384
hdr->ipv6 = NULL;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
386
hdr->ipv4 = (void *)hdr->eth + sizeof(*hdr->eth);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
387
if (hdr->ipv4 + 1 > data_end)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
389
if (hdr->ipv4->ihl * 4 < sizeof(*hdr->ipv4))
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
391
if (hdr->ipv4->version != 4)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
394
if (hdr->ipv4->protocol != IPPROTO_TCP)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
397
hdr->tcp = (void *)hdr->ipv4 + hdr->ipv4->ihl * 4;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
400
hdr->ipv4 = NULL;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
402
hdr->ipv6 = (void *)hdr->eth + sizeof(*hdr->eth);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
403
if (hdr->ipv6 + 1 > data_end)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
405
if (hdr->ipv6->version != 6)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
411
if (hdr->ipv6->nexthdr != NEXTHDR_TCP)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
414
hdr->tcp = (void *)hdr->ipv6 + sizeof(*hdr->ipv6);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
421
if (hdr->tcp + 1 > data_end)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
423
hdr->tcp_len = hdr->tcp->doff * 4;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
424
if (hdr->tcp_len < sizeof(*hdr->tcp))
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
430
static __always_inline int tcp_lookup(void *ctx, struct header_pointers *hdr, bool xdp)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
440
if (hdr->ipv4) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
444
if ((hdr->ipv4->frag_off & bpf_htons(IP_MF | IP_OFFSET)) != 0)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
447
tup.ipv4.saddr = hdr->ipv4->saddr;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
448
tup.ipv4.daddr = hdr->ipv4->daddr;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
449
tup.ipv4.sport = hdr->tcp->source;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
450
tup.ipv4.dport = hdr->tcp->dest;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
452
} else if (hdr->ipv6) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
453
__builtin_memcpy(tup.ipv6.saddr, &hdr->ipv6->saddr, sizeof(tup.ipv6.saddr));
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
454
__builtin_memcpy(tup.ipv6.daddr, &hdr->ipv6->daddr, sizeof(tup.ipv6.daddr));
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
455
tup.ipv6.sport = hdr->tcp->source;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
456
tup.ipv6.dport = hdr->tcp->dest;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
535
static __always_inline void tcpv4_gen_synack(struct header_pointers *hdr,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
544
swap_eth_addr(hdr->eth->h_source, hdr->eth->h_dest);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
546
swap(hdr->ipv4->saddr, hdr->ipv4->daddr);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
547
hdr->ipv4->check = 0; /* Calculate checksum later. */
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
548
hdr->ipv4->tos = 0;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
549
hdr->ipv4->id = 0;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
550
hdr->ipv4->ttl = ttl;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
552
tcp_gen_synack(hdr->tcp, cookie, tsopt, mss, wscale);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
554
hdr->tcp_len = hdr->tcp->doff * 4;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
555
hdr->ipv4->tot_len = bpf_htons(sizeof(*hdr->ipv4) + hdr->tcp_len);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
558
static __always_inline void tcpv6_gen_synack(struct header_pointers *hdr,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
567
swap_eth_addr(hdr->eth->h_source, hdr->eth->h_dest);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
569
swap(hdr->ipv6->saddr, hdr->ipv6->daddr);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
570
*(__be32 *)hdr->ipv6 = bpf_htonl(0x60000000);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
571
hdr->ipv6->hop_limit = ttl;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
573
tcp_gen_synack(hdr->tcp, cookie, tsopt, mss, wscale);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
575
hdr->tcp_len = hdr->tcp->doff * 4;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
576
hdr->ipv6->payload_len = bpf_htons(hdr->tcp_len);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
579
static __always_inline int syncookie_handle_syn(struct header_pointers *hdr,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
610
if (hdr->tcp->fin || hdr->tcp->rst)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
616
if (!check_port_allowed(bpf_ntohs(hdr->tcp->dest)))
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
619
if (hdr->ipv4) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
621
value = bpf_csum_diff(0, 0, (void *)hdr->ipv4, hdr->ipv4->ihl * 4, 0);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
627
value = bpf_csum_diff(0, 0, (void *)hdr->tcp, hdr->tcp_len, 0);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
630
if (csum_tcpudp_magic(hdr->ipv4->saddr, hdr->ipv4->daddr,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
631
hdr->tcp_len, IPPROTO_TCP, value) != 0)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
634
ip_len = sizeof(*hdr->ipv4);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
636
value = bpf_tcp_raw_gen_syncookie_ipv4(hdr->ipv4, hdr->tcp,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
637
hdr->tcp_len);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
638
} else if (hdr->ipv6) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
640
value = bpf_csum_diff(0, 0, (void *)hdr->tcp, hdr->tcp_len, 0);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
643
if (csum_ipv6_magic(&hdr->ipv6->saddr, &hdr->ipv6->daddr,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
644
hdr->tcp_len, IPPROTO_TCP, value) != 0)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
647
ip_len = sizeof(*hdr->ipv6);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
649
value = bpf_tcp_raw_gen_syncookie_ipv6(hdr->ipv6, hdr->tcp,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
650
hdr->tcp_len);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
659
if (tscookie_init((void *)hdr->tcp, hdr->tcp_len,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
667
if (data + sizeof(*hdr->eth) + ip_len + TCP_MAXLEN > data_end)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
670
if (hdr->ipv4) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
671
if (hdr->ipv4->ihl * 4 > sizeof(*hdr->ipv4)) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
674
new_tcp_header = data + sizeof(*hdr->eth) + sizeof(*hdr->ipv4);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
675
__builtin_memmove(new_tcp_header, hdr->tcp, sizeof(*hdr->tcp));
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
676
hdr->tcp = new_tcp_header;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
678
hdr->ipv4->ihl = sizeof(*hdr->ipv4) / 4;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
681
tcpv4_gen_synack(hdr, cookie, tsopt);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
682
} else if (hdr->ipv6) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
683
tcpv6_gen_synack(hdr, cookie, tsopt);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
689
hdr->tcp->check = 0;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
690
value = bpf_csum_diff(0, 0, (void *)hdr->tcp, hdr->tcp_len, 0);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
693
if (hdr->ipv4) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
694
hdr->tcp->check = csum_tcpudp_magic(hdr->ipv4->saddr,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
695
hdr->ipv4->daddr,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
696
hdr->tcp_len,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
700
hdr->ipv4->check = 0;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
701
value = bpf_csum_diff(0, 0, (void *)hdr->ipv4, sizeof(*hdr->ipv4), 0);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
704
hdr->ipv4->check = csum_fold(value);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
705
} else if (hdr->ipv6) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
706
hdr->tcp->check = csum_ipv6_magic(&hdr->ipv6->saddr,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
707
&hdr->ipv6->daddr,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
708
hdr->tcp_len,
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
717
new_pkt_size = sizeof(*hdr->eth) + ip_len + hdr->tcp->doff * 4;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
731
static __always_inline int syncookie_handle_ack(struct header_pointers *hdr)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
735
if (hdr->tcp->rst)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
738
if (hdr->ipv4)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
739
err = bpf_tcp_raw_check_syncookie_ipv4(hdr->ipv4, hdr->tcp);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
740
else if (hdr->ipv6)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
741
err = bpf_tcp_raw_check_syncookie_ipv6(hdr->ipv6, hdr->tcp);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
751
struct header_pointers *hdr, bool xdp)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
755
ret = tcp_dissect(data, data_end, hdr);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
759
ret = tcp_lookup(ctx, hdr, xdp);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
765
if ((hdr->tcp->syn ^ hdr->tcp->ack) != 1)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
772
if (bpf_xdp_adjust_tail(ctx, TCP_MAXLEN - hdr->tcp_len))
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
780
if (bpf_skb_change_tail(ctx, old_len + TCP_MAXLEN - hdr->tcp_len, 0))
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
788
struct header_pointers *hdr, bool xdp)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
790
if (hdr->ipv4) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
791
hdr->eth = data;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
792
hdr->ipv4 = (void *)hdr->eth + sizeof(*hdr->eth);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
796
if ((void *)hdr->ipv4 + IPV4_MAXLEN > data_end)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
798
hdr->tcp = (void *)hdr->ipv4 + hdr->ipv4->ihl * 4;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
799
} else if (hdr->ipv6) {
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
800
hdr->eth = data;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
801
hdr->ipv6 = (void *)hdr->eth + sizeof(*hdr->eth);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
802
hdr->tcp = (void *)hdr->ipv6 + sizeof(*hdr->ipv6);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
807
if ((void *)hdr->tcp + TCP_MAXLEN > data_end)
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
813
hdr->tcp_len = hdr->tcp->doff * 4;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
814
if (hdr->tcp_len < sizeof(*hdr->tcp))
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
817
return hdr->tcp->syn ? syncookie_handle_syn(hdr, ctx, data, data_end, xdp) :
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
818
syncookie_handle_ack(hdr);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
826
struct header_pointers hdr;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
829
ret = syncookie_part1(ctx, data, data_end, &hdr, true);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
836
return syncookie_part2(ctx, data, data_end, &hdr, true);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
844
struct header_pointers hdr;
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
847
ret = syncookie_part1(skb, data, data_end, &hdr, false);
tools/testing/selftests/bpf/progs/xdp_synproxy_kern.c
854
ret = syncookie_part2(skb, data, data_end, &hdr, false);
tools/testing/selftests/bpf/test_verifier.c
742
struct btf_header hdr = {
tools/testing/selftests/bpf/test_verifier.c
760
raw_btf = malloc(sizeof(hdr) + types_len + strings_len);
tools/testing/selftests/bpf/test_verifier.c
763
memcpy(ptr, &hdr, sizeof(hdr));
tools/testing/selftests/bpf/test_verifier.c
764
ptr += sizeof(hdr);
tools/testing/selftests/bpf/test_verifier.c
765
memcpy(ptr, types, hdr.type_len);
tools/testing/selftests/bpf/test_verifier.c
766
ptr += hdr.type_len;
tools/testing/selftests/bpf/test_verifier.c
767
memcpy(ptr, strings, hdr.str_len);
tools/testing/selftests/bpf/test_verifier.c
768
ptr += hdr.str_len;
tools/testing/selftests/bpf/xdp_hw_metadata.c
267
struct msghdr hdr;
tools/testing/selftests/bpf/xdp_hw_metadata.c
269
memset(&hdr, 0, sizeof(hdr));
tools/testing/selftests/bpf/xdp_hw_metadata.c
270
hdr.msg_iov = &packet_iov;
tools/testing/selftests/bpf/xdp_hw_metadata.c
271
hdr.msg_iovlen = 1;
tools/testing/selftests/bpf/xdp_hw_metadata.c
275
hdr.msg_control = cmsg_buf;
tools/testing/selftests/bpf/xdp_hw_metadata.c
276
hdr.msg_controllen = sizeof(cmsg_buf);
tools/testing/selftests/bpf/xdp_hw_metadata.c
278
if (recvmsg(fd, &hdr, 0) < 0)
tools/testing/selftests/bpf/xdp_hw_metadata.c
281
for (cmsg = CMSG_FIRSTHDR(&hdr); cmsg != NULL;
tools/testing/selftests/bpf/xdp_hw_metadata.c
282
cmsg = CMSG_NXTHDR(&hdr, cmsg)) {
tools/testing/selftests/clone3/clone3_cap_checkpoint_restore.c
91
struct __user_cap_header_struct hdr;
tools/testing/selftests/connector/proc_filter.c
136
struct nlmsghdr *hdr;
tools/testing/selftests/connector/proc_filter.c
138
hdr = (struct nlmsghdr *)buff;
tools/testing/selftests/connector/proc_filter.c
140
if (hdr->nlmsg_type == NLMSG_ERROR) {
tools/testing/selftests/connector/proc_filter.c
143
} else if (hdr->nlmsg_type == NLMSG_DONE) {
tools/testing/selftests/connector/proc_filter.c
145
((struct cn_msg *)NLMSG_DATA(hdr))->data;
tools/testing/selftests/connector/proc_filter.c
43
struct nlmsghdr *hdr;
tools/testing/selftests/connector/proc_filter.c
46
hdr = (struct nlmsghdr *)buff;
tools/testing/selftests/connector/proc_filter.c
48
hdr->nlmsg_len = NL_MESSAGE_SIZE;
tools/testing/selftests/connector/proc_filter.c
50
hdr->nlmsg_len = NL_MESSAGE_SIZE_NF;
tools/testing/selftests/connector/proc_filter.c
51
hdr->nlmsg_type = NLMSG_DONE;
tools/testing/selftests/connector/proc_filter.c
52
hdr->nlmsg_flags = 0;
tools/testing/selftests/connector/proc_filter.c
53
hdr->nlmsg_seq = 0;
tools/testing/selftests/connector/proc_filter.c
54
hdr->nlmsg_pid = getpid();
tools/testing/selftests/connector/proc_filter.c
56
msg = (struct cn_msg *)NLMSG_DATA(hdr);
tools/testing/selftests/connector/proc_filter.c
74
if (send(nl_sock, hdr, hdr->nlmsg_len, 0) == -1) {
tools/testing/selftests/drivers/net/hw/toeplitz.c
220
struct tpacket3_hdr *hdr = (void *)frame;
tools/testing/selftests/drivers/net/hw/toeplitz.c
222
if (hdr->hv1.tp_rxhash)
tools/testing/selftests/drivers/net/hw/toeplitz.c
223
verify_rxhash(frame + hdr->tp_net, hdr->hv1.tp_rxhash,
tools/testing/selftests/drivers/net/hw/toeplitz.c
228
return frame + hdr->tp_next_offset;
tools/testing/selftests/drivers/net/hw/toeplitz.c
239
if (!(block->hdr.bh1.block_status & TP_STATUS_USER))
tools/testing/selftests/drivers/net/hw/toeplitz.c
243
frame += block->hdr.bh1.offset_to_first_pkt;
tools/testing/selftests/drivers/net/hw/toeplitz.c
245
for (i = 0; i < block->hdr.bh1.num_pkts; i++) {
tools/testing/selftests/drivers/net/hw/toeplitz.c
250
block->hdr.bh1.block_status = TP_STATUS_KERNEL;
tools/testing/selftests/iommu/iommufd_utils.h
1118
struct iommufd_vevent_header *hdr;
tools/testing/selftests/iommu/iommufd_utils.h
1127
data = calloc(nvevents, sizeof(*hdr) + sizeof(*event));
tools/testing/selftests/iommu/iommufd_utils.h
1134
nvevents * (sizeof(*hdr) + sizeof(*event)));
tools/testing/selftests/iommu/iommufd_utils.h
1142
hdr = data + i * (sizeof(*hdr) + sizeof(*event));
tools/testing/selftests/iommu/iommufd_utils.h
1144
if (hdr->flags & IOMMU_VEVENTQ_FLAG_LOST_EVENTS ||
tools/testing/selftests/iommu/iommufd_utils.h
1145
hdr->sequence - *prev_seq > 1) {
tools/testing/selftests/iommu/iommufd_utils.h
1146
*prev_seq = hdr->sequence;
tools/testing/selftests/iommu/iommufd_utils.h
1151
*prev_seq = hdr->sequence;
tools/testing/selftests/iommu/iommufd_utils.h
1152
event = data + sizeof(*hdr);
tools/testing/selftests/kvm/lib/elf.c
117
Elf64_Ehdr hdr;
tools/testing/selftests/kvm/lib/elf.c
127
elfhdr_get(filename, &hdr);
tools/testing/selftests/kvm/lib/elf.c
137
for (unsigned int n1 = 0; n1 < hdr.e_phnum; n1++) {
tools/testing/selftests/kvm/lib/elf.c
139
offset = hdr.e_phoff + (n1 * hdr.e_phentsize);
tools/testing/selftests/kvm/lib/ucall_common.c
30
struct ucall_header *hdr;
tools/testing/selftests/kvm/lib/ucall_common.c
35
vaddr = vm_vaddr_alloc_shared(vm, sizeof(*hdr), KVM_UTIL_MIN_VADDR,
tools/testing/selftests/kvm/lib/ucall_common.c
37
hdr = (struct ucall_header *)addr_gva2hva(vm, vaddr);
tools/testing/selftests/kvm/lib/ucall_common.c
38
memset(hdr, 0, sizeof(*hdr));
tools/testing/selftests/kvm/lib/ucall_common.c
41
uc = &hdr->ucalls[i];
tools/testing/selftests/kvm/s390/ucontrol_test.c
36
struct __user_cap_header_struct hdr = {
tools/testing/selftests/kvm/s390/ucontrol_test.c
41
rc = capget(&hdr, data);
tools/testing/selftests/kvm/x86/nested_set_state_test.c
112
state->hdr.vmx.vmxon_pa = -1ull;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
115
state->hdr.vmx.vmcs12_pa = -1ull;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
132
state->hdr.vmx.vmxon_pa = -1ull;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
133
state->hdr.vmx.vmcs12_pa = -1ull;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
148
state->hdr.vmx.smm.flags = 1;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
153
state->hdr.vmx.flags = ~0;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
158
state->hdr.vmx.vmxon_pa = -1ull;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
164
state->hdr.vmx.vmxon_pa = 1;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
174
state->hdr.vmx.smm.flags = KVM_STATE_NESTED_SMM_GUEST_MODE;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
183
state->hdr.vmx.smm.flags = ~(KVM_STATE_NESTED_SMM_GUEST_MODE |
tools/testing/selftests/kvm/x86/nested_set_state_test.c
190
state->hdr.vmx.smm.flags = KVM_STATE_NESTED_SMM_GUEST_MODE;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
205
state->hdr.vmx.vmcs12_pa = -1;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
220
state->hdr.vmx.vmcs12_pa = -1;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
221
state->hdr.vmx.flags = ~0;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
226
state->hdr.vmx.vmxon_pa = 0;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
227
state->hdr.vmx.vmcs12_pa = 0;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
235
state->hdr.vmx.vmxon_pa = -1ull;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
236
state->hdr.vmx.vmcs12_pa = -1ull;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
244
TEST_ASSERT_EQ(state->hdr.vmx.vmxon_pa, -1ull);
tools/testing/selftests/kvm/x86/nested_set_state_test.c
245
TEST_ASSERT_EQ(state->hdr.vmx.vmcs12_pa, -1ull);
tools/testing/selftests/kvm/x86/nested_set_state_test.c
270
state->hdr.svm.vmcb_pa = 0x3000;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
313
state->hdr.svm.vmcb_pa = -1ull;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
335
state->hdr.svm.vmcb_pa = -1ull;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
343
TEST_ASSERT_EQ(state->hdr.svm.vmcb_pa, 0);
tools/testing/selftests/kvm/x86/nested_set_state_test.c
81
state->hdr.vmx.vmxon_pa = 0x1000;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
82
state->hdr.vmx.vmcs12_pa = 0x2000;
tools/testing/selftests/kvm/x86/nested_set_state_test.c
83
state->hdr.vmx.smm.flags = 0;
tools/testing/selftests/net/cmsg_sender.c
515
struct udphdr hdr = { 1, 2, htons(opt.size), 0 };
tools/testing/selftests/net/cmsg_sender.c
518
memcpy(buf, &hdr, sizeof(hdr));
tools/testing/selftests/net/ipsec.c
292
struct nlmsghdr hdr;
tools/testing/selftests/net/ipsec.c
300
} else if (answer.hdr.nlmsg_type != NLMSG_ERROR) {
tools/testing/selftests/net/ipsec.c
301
printk("expected NLMSG_ERROR, got %d", (int)answer.hdr.nlmsg_type);
tools/testing/selftests/net/psock_tpacket.c
173
static inline int __v1_rx_kernel_ready(struct tpacket_hdr *hdr)
tools/testing/selftests/net/psock_tpacket.c
175
return ((hdr->tp_status & TP_STATUS_USER) == TP_STATUS_USER);
tools/testing/selftests/net/psock_tpacket.c
178
static inline void __v1_rx_user_ready(struct tpacket_hdr *hdr)
tools/testing/selftests/net/psock_tpacket.c
180
hdr->tp_status = TP_STATUS_KERNEL;
tools/testing/selftests/net/psock_tpacket.c
184
static inline int __v2_rx_kernel_ready(struct tpacket2_hdr *hdr)
tools/testing/selftests/net/psock_tpacket.c
186
return ((hdr->tp_status & TP_STATUS_USER) == TP_STATUS_USER);
tools/testing/selftests/net/psock_tpacket.c
189
static inline void __v2_rx_user_ready(struct tpacket2_hdr *hdr)
tools/testing/selftests/net/psock_tpacket.c
191
hdr->tp_status = TP_STATUS_KERNEL;
tools/testing/selftests/net/psock_tpacket.c
279
static inline int __v1_tx_kernel_ready(struct tpacket_hdr *hdr)
tools/testing/selftests/net/psock_tpacket.c
281
return !(hdr->tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING));
tools/testing/selftests/net/psock_tpacket.c
284
static inline void __v1_tx_user_ready(struct tpacket_hdr *hdr)
tools/testing/selftests/net/psock_tpacket.c
286
hdr->tp_status = TP_STATUS_SEND_REQUEST;
tools/testing/selftests/net/psock_tpacket.c
290
static inline int __v2_tx_kernel_ready(struct tpacket2_hdr *hdr)
tools/testing/selftests/net/psock_tpacket.c
292
return !(hdr->tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING));
tools/testing/selftests/net/psock_tpacket.c
295
static inline void __v2_tx_user_ready(struct tpacket2_hdr *hdr)
tools/testing/selftests/net/psock_tpacket.c
297
hdr->tp_status = TP_STATUS_SEND_REQUEST;
tools/testing/selftests/net/psock_tpacket.c
301
static inline int __v3_tx_kernel_ready(struct tpacket3_hdr *hdr)
tools/testing/selftests/net/psock_tpacket.c
303
return !(hdr->tp_status & (TP_STATUS_SEND_REQUEST | TP_STATUS_SENDING));
tools/testing/selftests/net/psock_tpacket.c
306
static inline void __v3_tx_user_ready(struct tpacket3_hdr *hdr)
tools/testing/selftests/net/psock_tpacket.c
308
hdr->tp_status = TP_STATUS_SEND_REQUEST;
tools/testing/selftests/net/rxtimestamp.c
203
struct msghdr hdr;
tools/testing/selftests/net/rxtimestamp.c
207
memset(&hdr, 0, sizeof(hdr));
tools/testing/selftests/net/rxtimestamp.c
208
hdr.msg_iov = &recv_iov;
tools/testing/selftests/net/rxtimestamp.c
209
hdr.msg_iovlen = 1;
tools/testing/selftests/net/rxtimestamp.c
213
hdr.msg_control = cmsg_buf;
tools/testing/selftests/net/rxtimestamp.c
214
hdr.msg_controllen = sizeof(cmsg_buf);
tools/testing/selftests/net/rxtimestamp.c
216
r = recvmsg(rcv, &hdr, flags);
tools/testing/selftests/net/rxtimestamp.c
222
if (hdr.msg_flags & (MSG_TRUNC | MSG_CTRUNC))
tools/testing/selftests/net/rxtimestamp.c
225
for (cmsg = CMSG_FIRSTHDR(&hdr); cmsg != NULL;
tools/testing/selftests/net/rxtimestamp.c
226
cmsg = CMSG_NXTHDR(&hdr, cmsg)) {
tools/testing/selftests/net/tcp_ao/lib/netlink.c
37
struct nlmsghdr hdr;
tools/testing/selftests/net/tcp_ao/lib/netlink.c
45
} else if (answer.hdr.nlmsg_type != NLMSG_ERROR) {
tools/testing/selftests/net/tcp_ao/lib/netlink.c
47
(int)answer.hdr.nlmsg_type);
tools/testing/selftests/net/tls.c
1004
struct msghdr hdr;
tools/testing/selftests/net/tls.c
1012
hdr.msg_iovlen = 1;
tools/testing/selftests/net/tls.c
1013
hdr.msg_iov = &vec;
tools/testing/selftests/net/tls.c
1014
EXPECT_NE(recvmsg(self->cfd, &hdr, 0), -1);
tools/testing/selftests/net/tls.c
1026
struct msghdr hdr;
tools/testing/selftests/net/tls.c
1038
hdr.msg_iovlen = msg_iovlen;
tools/testing/selftests/net/tls.c
1039
hdr.msg_iov = vec;
tools/testing/selftests/net/tls.c
1040
EXPECT_NE(recvmsg(self->cfd, &hdr, 0), -1);
tools/testing/selftests/net/tls.c
1725
struct msghdr hdr = {};
tools/testing/selftests/net/tls.c
1741
hdr.msg_iovlen = 2;
tools/testing/selftests/net/tls.c
1742
hdr.msg_iov = iov;
tools/testing/selftests/net/tls.c
1747
ret = recvmsg(self->cfd, &hdr, 0);
tools/testing/selftests/net/tls.c
985
struct msghdr hdr;
tools/testing/selftests/net/tls.c
988
memset(&hdr, 0, sizeof(hdr));
tools/testing/selftests/net/tls.c
992
hdr.msg_iovlen = 1;
tools/testing/selftests/net/tls.c
993
hdr.msg_iov = &vec;
tools/testing/selftests/net/tls.c
994
EXPECT_NE(recvmsg(self->cfd, &hdr, 0), -1);
tools/testing/selftests/net/tun.c
954
struct virtio_net_hdr_v1 *vh = &vnet_hdr.hash_hdr.hdr;
tools/testing/selftests/net/tuntap_helpers.h
361
struct virtio_net_hdr_v1 *vh = &vh_tunnel->hash_hdr.hdr;
tools/testing/selftests/riscv/sigreturn/sigreturn.c
30
if (ext->hdr.magic != RISCV_V_MAGIC) {
tools/testing/selftests/riscv/sigreturn/sigreturn.c
31
fprintf(stderr, "bad vector magic: %x\n", ext->hdr.magic);
tools/testing/selftests/uevent/uevent_filtering.c
160
r = recvmsg(sk_fd, &hdr, 0);
tools/testing/selftests/uevent/uevent_filtering.c
87
struct msghdr hdr = {
tools/testing/selftests/vDSO/parse_vdso.c
105
ELF(Ehdr) *hdr = (ELF(Ehdr)*)base;
tools/testing/selftests/vDSO/parse_vdso.c
106
if (hdr->e_ident[EI_CLASS] !=
tools/testing/selftests/vDSO/parse_vdso.c
111
ELF(Phdr) *pt = (ELF(Phdr)*)(vdso_info.load_addr + hdr->e_phoff);
tools/testing/selftests/vDSO/parse_vdso.c
118
for (i = 0; i < hdr->e_phnum; i++)
tools/testing/selftests/vfio/lib/iommu.c
243
struct vfio_info_cap_header *hdr;
tools/testing/selftests/vfio/lib/iommu.c
249
VFIO_ASSERT_GE(bufsz - *cap_offset, sizeof(*hdr));
tools/testing/selftests/vfio/lib/iommu.c
251
hdr = (struct vfio_info_cap_header *)((u8 *)buf + *cap_offset);
tools/testing/selftests/vfio/lib/iommu.c
252
*cap_offset = hdr->next;
tools/testing/selftests/vfio/lib/iommu.c
254
return hdr;
tools/testing/selftests/vfio/lib/iommu.c
260
struct vfio_info_cap_header *hdr;
tools/testing/selftests/vfio/lib/iommu.c
271
max_depth = (info->argsz - sizeof(*info)) / sizeof(*hdr);
tools/testing/selftests/vfio/lib/iommu.c
273
while ((hdr = next_cap_hdr(info, info->argsz, &cap_offset))) {
tools/testing/selftests/vfio/lib/iommu.c
277
if (hdr->id == cap_id)
tools/testing/selftests/vfio/lib/iommu.c
278
return hdr;
tools/testing/selftests/vfio/lib/iommu.c
317
struct vfio_info_cap_header *hdr;
tools/testing/selftests/vfio/lib/iommu.c
321
hdr = vfio_iommu_info_cap_hdr(info, VFIO_IOMMU_TYPE1_INFO_CAP_IOVA_RANGE);
tools/testing/selftests/vfio/lib/iommu.c
322
VFIO_ASSERT_NOT_NULL(hdr);
tools/testing/selftests/vfio/lib/iommu.c
324
cap_range = container_of(hdr, struct vfio_iommu_type1_info_cap_iova_range, header);