shdr               25 arch/mips/boot/tools/relocs.c 	Elf_Shdr       shdr;
shdr               98 arch/mips/boot/tools/relocs.c 		name = sec_strtab + secs[shndx].shdr.sh_name;
shdr              263 arch/mips/boot/tools/relocs.c 	Elf_Shdr shdr;
shdr              276 arch/mips/boot/tools/relocs.c 		if (fread(&shdr, sizeof(shdr), 1, fp) != 1)
shdr              279 arch/mips/boot/tools/relocs.c 		sec->shdr.sh_name      = elf_word_to_cpu(shdr.sh_name);
shdr              280 arch/mips/boot/tools/relocs.c 		sec->shdr.sh_type      = elf_word_to_cpu(shdr.sh_type);
shdr              281 arch/mips/boot/tools/relocs.c 		sec->shdr.sh_flags     = elf_xword_to_cpu(shdr.sh_flags);
shdr              282 arch/mips/boot/tools/relocs.c 		sec->shdr.sh_addr      = elf_addr_to_cpu(shdr.sh_addr);
shdr              283 arch/mips/boot/tools/relocs.c 		sec->shdr.sh_offset    = elf_off_to_cpu(shdr.sh_offset);
shdr              284 arch/mips/boot/tools/relocs.c 		sec->shdr.sh_size      = elf_xword_to_cpu(shdr.sh_size);
shdr              285 arch/mips/boot/tools/relocs.c 		sec->shdr.sh_link      = elf_word_to_cpu(shdr.sh_link);
shdr              286 arch/mips/boot/tools/relocs.c 		sec->shdr.sh_info      = elf_word_to_cpu(shdr.sh_info);
shdr              287 arch/mips/boot/tools/relocs.c 		sec->shdr.sh_addralign = elf_xword_to_cpu(shdr.sh_addralign);
shdr              288 arch/mips/boot/tools/relocs.c 		sec->shdr.sh_entsize   = elf_xword_to_cpu(shdr.sh_entsize);
shdr              289 arch/mips/boot/tools/relocs.c 		if (sec->shdr.sh_link < ehdr.e_shnum)
shdr              290 arch/mips/boot/tools/relocs.c 			sec->link = &secs[sec->shdr.sh_link];
shdr              301 arch/mips/boot/tools/relocs.c 		if (sec->shdr.sh_type != SHT_STRTAB)
shdr              304 arch/mips/boot/tools/relocs.c 		sec->strtab = malloc(sec->shdr.sh_size);
shdr              307 arch/mips/boot/tools/relocs.c 			    sec->shdr.sh_size);
shdr              309 arch/mips/boot/tools/relocs.c 		if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0)
shdr              311 arch/mips/boot/tools/relocs.c 			    sec->shdr.sh_offset, strerror(errno));
shdr              313 arch/mips/boot/tools/relocs.c 		if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) !=
shdr              314 arch/mips/boot/tools/relocs.c 		    sec->shdr.sh_size)
shdr              325 arch/mips/boot/tools/relocs.c 		if (sec->shdr.sh_type != SHT_SYMTAB)
shdr              328 arch/mips/boot/tools/relocs.c 		sec->symtab = malloc(sec->shdr.sh_size);
shdr              331 arch/mips/boot/tools/relocs.c 			    sec->shdr.sh_size);
shdr              333 arch/mips/boot/tools/relocs.c 		if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0)
shdr              335 arch/mips/boot/tools/relocs.c 			    sec->shdr.sh_offset, strerror(errno));
shdr              337 arch/mips/boot/tools/relocs.c 		if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) !=
shdr              338 arch/mips/boot/tools/relocs.c 		    sec->shdr.sh_size)
shdr              341 arch/mips/boot/tools/relocs.c 		for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) {
shdr              363 arch/mips/boot/tools/relocs.c 		base = sec->shdr.sh_addr;
shdr              369 arch/mips/boot/tools/relocs.c 		if (sec->shdr.sh_type != SHT_REL_TYPE)
shdr              372 arch/mips/boot/tools/relocs.c 		sec->reltab = malloc(sec->shdr.sh_size);
shdr              375 arch/mips/boot/tools/relocs.c 			    sec->shdr.sh_size);
shdr              377 arch/mips/boot/tools/relocs.c 		if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0)
shdr              379 arch/mips/boot/tools/relocs.c 			    sec->shdr.sh_offset, strerror(errno));
shdr              381 arch/mips/boot/tools/relocs.c 		if (fread(sec->reltab, 1, sec->shdr.sh_size, fp) !=
shdr              382 arch/mips/boot/tools/relocs.c 		    sec->shdr.sh_size)
shdr              385 arch/mips/boot/tools/relocs.c 		for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) {
shdr              410 arch/mips/boot/tools/relocs.c 	Elf_Shdr shdr;
shdr              415 arch/mips/boot/tools/relocs.c 		if (sec->shdr.sh_type != SHT_REL_TYPE)
shdr              422 arch/mips/boot/tools/relocs.c 		if (fread(&shdr, sizeof(shdr), 1, fp) != 1)
shdr              430 arch/mips/boot/tools/relocs.c 		shdr.sh_size = 0;
shdr              436 arch/mips/boot/tools/relocs.c 		if (fwrite(&shdr, sizeof(shdr), 1, fp) != 1)
shdr              480 arch/mips/boot/tools/relocs.c 		if (sec->shdr.sh_type != SHT_REL_TYPE)
shdr              484 arch/mips/boot/tools/relocs.c 		sec_applies = &secs[sec->shdr.sh_info];
shdr              485 arch/mips/boot/tools/relocs.c 		if (!(sec_applies->shdr.sh_flags & SHF_ALLOC))
shdr              490 arch/mips/boot/tools/relocs.c 		for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) {
shdr              584 arch/mips/boot/tools/relocs.c 	size_reserved = sec_reloc->shdr.sh_size;
shdr              607 arch/mips/boot/tools/relocs.c 		if (fseek(outf, sec_reloc->shdr.sh_offset, SEEK_SET) < 0) {
shdr              609 arch/mips/boot/tools/relocs.c 				sec_reloc->shdr.sh_offset, strerror(errno));
shdr              640 arch/mips/boot/tools/relocs.c 		sec_name(sec->shdr.sh_info),
shdr               11 arch/mips/vdso/genvdso.h 	ELF(Shdr) *shdr;
shdr               19 arch/mips/vdso/genvdso.h 	shdr = shdrs + (sh_entsize * swap_uint16(ehdr->e_shstrndx));
shdr               20 arch/mips/vdso/genvdso.h 	shstrtab = vdso + FUNC(swap_uint)(shdr->sh_offset);
shdr               23 arch/mips/vdso/genvdso.h 		shdr = shdrs + (i * sh_entsize);
shdr               24 arch/mips/vdso/genvdso.h 		name = shstrtab + swap_uint32(shdr->sh_name);
shdr               31 arch/mips/vdso/genvdso.h 		switch (swap_uint32(shdr->sh_type)) {
shdr               50 arch/mips/vdso/genvdso.h 			shdr->sh_type = swap_uint32(SHT_MIPS_ABIFLAGS);
shdr               51 arch/mips/vdso/genvdso.h 			shdr->sh_entsize = shdr->sh_size;
shdr               62 arch/mips/vdso/genvdso.h 	ELF(Shdr) *shdr;
shdr               74 arch/mips/vdso/genvdso.h 		shdr = shdrs + (i * sh_entsize);
shdr               76 arch/mips/vdso/genvdso.h 		if (swap_uint32(shdr->sh_type) == SHT_SYMTAB)
shdr               96 arch/mips/vdso/genvdso.h 	symtab = vdso + FUNC(swap_uint)(shdr->sh_offset);
shdr               97 arch/mips/vdso/genvdso.h 	st_entsize = FUNC(swap_uint)(shdr->sh_entsize);
shdr               98 arch/mips/vdso/genvdso.h 	st_count = FUNC(swap_uint)(shdr->sh_size) / st_entsize;
shdr              101 arch/mips/vdso/genvdso.h 	shdr = shdrs + (swap_uint32(shdr->sh_link) * sh_entsize);
shdr              102 arch/mips/vdso/genvdso.h 	strtab = vdso + FUNC(swap_uint)(shdr->sh_offset);
shdr               35 arch/powerpc/boot/hack-coff.c     struct external_scnhdr shdr;
shdr               57 arch/powerpc/boot/hack-coff.c 	if (read(fd, &shdr, sizeof(shdr)) != sizeof(shdr))
shdr               59 arch/powerpc/boot/hack-coff.c 	if (strcmp(shdr.s_name, ".text") == 0) {
shdr               62 arch/powerpc/boot/hack-coff.c 	} else if (strcmp(shdr.s_name, ".data") == 0) {
shdr               64 arch/powerpc/boot/hack-coff.c 	} else if (strcmp(shdr.s_name, ".bss") == 0) {
shdr              114 arch/powerpc/oprofile/cell/vma_map.c 	Elf32_Shdr shdr, shdr_str;
shdr              171 arch/powerpc/oprofile/cell/vma_map.c 		if (copy_from_user(&shdr, shdr_start + i, sizeof(shdr)))
shdr              174 arch/powerpc/oprofile/cell/vma_map.c 		if (shdr.sh_type != SHT_SYMTAB)
shdr              176 arch/powerpc/oprofile/cell/vma_map.c 		if (shdr.sh_entsize != sizeof (sym))
shdr              180 arch/powerpc/oprofile/cell/vma_map.c 				   shdr_start + shdr.sh_link,
shdr              181 arch/powerpc/oprofile/cell/vma_map.c 				   sizeof(shdr)))
shdr              187 arch/powerpc/oprofile/cell/vma_map.c 		for (j = 0; j < shdr.sh_size / sizeof (sym); j++) {
shdr              189 arch/powerpc/oprofile/cell/vma_map.c 						 shdr.sh_offset +
shdr               17 arch/riscv/include/asm/module.h 	Elf_Shdr *shdr;
shdr               40 arch/riscv/include/asm/module.h 	struct got_entry *got = (struct got_entry *)(sec->shdr->sh_addr);
shdr               93 arch/riscv/include/asm/module.h 	struct got_entry *got_plt = (struct got_entry *)sec->shdr->sh_addr;
shdr              106 arch/riscv/include/asm/module.h 	struct plt_entry *plt = (struct plt_entry *)sec_plt->shdr->sh_addr;
shdr               23 arch/riscv/kernel/module-sections.c 	got = (struct got_entry *)got_sec->shdr->sh_addr;
shdr               44 arch/riscv/kernel/module-sections.c 	got_plt = (struct got_entry *)got_plt_sec->shdr->sh_addr;
shdr               46 arch/riscv/kernel/module-sections.c 	plt = (struct plt_entry *)plt_sec->shdr->sh_addr;
shdr              102 arch/riscv/kernel/module-sections.c 			mod->arch.plt.shdr = sechdrs + i;
shdr              104 arch/riscv/kernel/module-sections.c 			mod->arch.got.shdr = sechdrs + i;
shdr              106 arch/riscv/kernel/module-sections.c 			mod->arch.got_plt.shdr = sechdrs + i;
shdr              109 arch/riscv/kernel/module-sections.c 	if (!mod->arch.plt.shdr) {
shdr              113 arch/riscv/kernel/module-sections.c 	if (!mod->arch.got.shdr) {
shdr              117 arch/riscv/kernel/module-sections.c 	if (!mod->arch.got_plt.shdr) {
shdr              138 arch/riscv/kernel/module-sections.c 	mod->arch.plt.shdr->sh_type = SHT_NOBITS;
shdr              139 arch/riscv/kernel/module-sections.c 	mod->arch.plt.shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
shdr              140 arch/riscv/kernel/module-sections.c 	mod->arch.plt.shdr->sh_addralign = L1_CACHE_BYTES;
shdr              141 arch/riscv/kernel/module-sections.c 	mod->arch.plt.shdr->sh_size = (num_plts + 1) * sizeof(struct plt_entry);
shdr              145 arch/riscv/kernel/module-sections.c 	mod->arch.got.shdr->sh_type = SHT_NOBITS;
shdr              146 arch/riscv/kernel/module-sections.c 	mod->arch.got.shdr->sh_flags = SHF_ALLOC;
shdr              147 arch/riscv/kernel/module-sections.c 	mod->arch.got.shdr->sh_addralign = L1_CACHE_BYTES;
shdr              148 arch/riscv/kernel/module-sections.c 	mod->arch.got.shdr->sh_size = (num_gots + 1) * sizeof(struct got_entry);
shdr              152 arch/riscv/kernel/module-sections.c 	mod->arch.got_plt.shdr->sh_type = SHT_NOBITS;
shdr              153 arch/riscv/kernel/module-sections.c 	mod->arch.got_plt.shdr->sh_flags = SHF_ALLOC;
shdr              154 arch/riscv/kernel/module-sections.c 	mod->arch.got_plt.shdr->sh_addralign = L1_CACHE_BYTES;
shdr              155 arch/riscv/kernel/module-sections.c 	mod->arch.got_plt.shdr->sh_size = (num_plts + 1) * sizeof(struct got_entry);
shdr               32 arch/x86/tools/relocs.c 	Elf_Shdr       shdr;
shdr              249 arch/x86/tools/relocs.c 		name = sec_strtab + secs[shndx].shdr.sh_name;
shdr              283 arch/x86/tools/relocs.c 		if (sec->shdr.sh_type != SHT_SYMTAB)
shdr              286 arch/x86/tools/relocs.c 		nsyms = sec->shdr.sh_size/sizeof(Elf_Sym);
shdr              389 arch/x86/tools/relocs.c 		Elf_Shdr shdr;
shdr              394 arch/x86/tools/relocs.c 		if (fread(&shdr, sizeof(shdr), 1, fp) != 1)
shdr              398 arch/x86/tools/relocs.c 			shnum = elf_xword_to_cpu(shdr.sh_size);
shdr              401 arch/x86/tools/relocs.c 			shstrndx = elf_word_to_cpu(shdr.sh_link);
shdr              411 arch/x86/tools/relocs.c 	Elf_Shdr shdr;
shdr              424 arch/x86/tools/relocs.c 		if (fread(&shdr, sizeof(shdr), 1, fp) != 1)
shdr              427 arch/x86/tools/relocs.c 		sec->shdr.sh_name      = elf_word_to_cpu(shdr.sh_name);
shdr              428 arch/x86/tools/relocs.c 		sec->shdr.sh_type      = elf_word_to_cpu(shdr.sh_type);
shdr              429 arch/x86/tools/relocs.c 		sec->shdr.sh_flags     = elf_xword_to_cpu(shdr.sh_flags);
shdr              430 arch/x86/tools/relocs.c 		sec->shdr.sh_addr      = elf_addr_to_cpu(shdr.sh_addr);
shdr              431 arch/x86/tools/relocs.c 		sec->shdr.sh_offset    = elf_off_to_cpu(shdr.sh_offset);
shdr              432 arch/x86/tools/relocs.c 		sec->shdr.sh_size      = elf_xword_to_cpu(shdr.sh_size);
shdr              433 arch/x86/tools/relocs.c 		sec->shdr.sh_link      = elf_word_to_cpu(shdr.sh_link);
shdr              434 arch/x86/tools/relocs.c 		sec->shdr.sh_info      = elf_word_to_cpu(shdr.sh_info);
shdr              435 arch/x86/tools/relocs.c 		sec->shdr.sh_addralign = elf_xword_to_cpu(shdr.sh_addralign);
shdr              436 arch/x86/tools/relocs.c 		sec->shdr.sh_entsize   = elf_xword_to_cpu(shdr.sh_entsize);
shdr              437 arch/x86/tools/relocs.c 		if (sec->shdr.sh_link < shnum)
shdr              438 arch/x86/tools/relocs.c 			sec->link = &secs[sec->shdr.sh_link];
shdr              448 arch/x86/tools/relocs.c 		if (sec->shdr.sh_type != SHT_STRTAB) {
shdr              451 arch/x86/tools/relocs.c 		sec->strtab = malloc(sec->shdr.sh_size);
shdr              454 arch/x86/tools/relocs.c 				sec->shdr.sh_size);
shdr              456 arch/x86/tools/relocs.c 		if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) {
shdr              458 arch/x86/tools/relocs.c 				sec->shdr.sh_offset, strerror(errno));
shdr              460 arch/x86/tools/relocs.c 		if (fread(sec->strtab, 1, sec->shdr.sh_size, fp)
shdr              461 arch/x86/tools/relocs.c 		    != sec->shdr.sh_size) {
shdr              473 arch/x86/tools/relocs.c 		if (sec->shdr.sh_type != SHT_SYMTAB) {
shdr              476 arch/x86/tools/relocs.c 		sec->symtab = malloc(sec->shdr.sh_size);
shdr              479 arch/x86/tools/relocs.c 				sec->shdr.sh_size);
shdr              481 arch/x86/tools/relocs.c 		if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) {
shdr              483 arch/x86/tools/relocs.c 				sec->shdr.sh_offset, strerror(errno));
shdr              485 arch/x86/tools/relocs.c 		if (fread(sec->symtab, 1, sec->shdr.sh_size, fp)
shdr              486 arch/x86/tools/relocs.c 		    != sec->shdr.sh_size) {
shdr              490 arch/x86/tools/relocs.c 		for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) {
shdr              506 arch/x86/tools/relocs.c 		if (sec->shdr.sh_type != SHT_REL_TYPE) {
shdr              509 arch/x86/tools/relocs.c 		sec->reltab = malloc(sec->shdr.sh_size);
shdr              512 arch/x86/tools/relocs.c 				sec->shdr.sh_size);
shdr              514 arch/x86/tools/relocs.c 		if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) {
shdr              516 arch/x86/tools/relocs.c 				sec->shdr.sh_offset, strerror(errno));
shdr              518 arch/x86/tools/relocs.c 		if (fread(sec->reltab, 1, sec->shdr.sh_size, fp)
shdr              519 arch/x86/tools/relocs.c 		    != sec->shdr.sh_size) {
shdr              523 arch/x86/tools/relocs.c 		for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) {
shdr              552 arch/x86/tools/relocs.c 		if (sec->shdr.sh_type != SHT_SYMTAB) {
shdr              556 arch/x86/tools/relocs.c 		for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Sym); j++) {
shdr              591 arch/x86/tools/relocs.c 		if (sec->shdr.sh_type != SHT_REL_TYPE) {
shdr              595 arch/x86/tools/relocs.c 		sec_applies = &secs[sec->shdr.sh_info];
shdr              596 arch/x86/tools/relocs.c 		if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) {
shdr              601 arch/x86/tools/relocs.c 		for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) {
shdr              676 arch/x86/tools/relocs.c 		if (sec->shdr.sh_type != SHT_REL_TYPE) {
shdr              680 arch/x86/tools/relocs.c 		sec_applies = &secs[sec->shdr.sh_info];
shdr              681 arch/x86/tools/relocs.c 		if (!(sec_applies->shdr.sh_flags & SHF_ALLOC)) {
shdr              686 arch/x86/tools/relocs.c 		for (j = 0; j < sec->shdr.sh_size/sizeof(Elf_Rel); j++) {
shdr              730 arch/x86/tools/relocs.c 		if (secs[i].shdr.sh_addr != 0)	/* non SMP kernel */
shdr              782 arch/x86/tools/relocs.c 	if (sec->shdr.sh_info == per_cpu_shndx)
shdr             1088 arch/x86/tools/relocs.c 		sec_name(sec->shdr.sh_info),
shdr              429 drivers/bluetooth/btmtkuart.c 	struct mtk_stp_hdr *shdr;
shdr              445 drivers/bluetooth/btmtkuart.c 		shdr = (struct mtk_stp_hdr *)&bdev->stp_pad[2];
shdr              446 drivers/bluetooth/btmtkuart.c 		bdev->stp_dlen = be16_to_cpu(shdr->dlen) & 0x0fff;
shdr              449 drivers/bluetooth/btmtkuart.c 		if (shdr->prefix != 0x80 || bdev->stp_dlen > 2048) {
shdr              451 drivers/bluetooth/btmtkuart.c 				   shdr->prefix, bdev->stp_dlen);
shdr              867 drivers/bluetooth/btmtkuart.c 	struct mtk_stp_hdr *shdr;
shdr              874 drivers/bluetooth/btmtkuart.c 	if (unlikely(skb_headroom(skb) < sizeof(*shdr)) ||
shdr              876 drivers/bluetooth/btmtkuart.c 		err = pskb_expand_head(skb, sizeof(*shdr), MTK_STP_TLR_SIZE,
shdr              884 drivers/bluetooth/btmtkuart.c 	shdr = skb_push(skb, sizeof(*shdr));
shdr              885 drivers/bluetooth/btmtkuart.c 	shdr->prefix = 0x80;
shdr              886 drivers/bluetooth/btmtkuart.c 	shdr->dlen = cpu_to_be16((dlen & 0x0fff) | (type << 12));
shdr              887 drivers/bluetooth/btmtkuart.c 	shdr->cs = 0;		/* MT7622 doesn't care about checksum value */
shdr              384 drivers/cpufreq/pmac64-cpufreq.c 		const struct smu_sdbp_header *shdr;
shdr              387 drivers/cpufreq/pmac64-cpufreq.c 		shdr = smu_get_sdb_partition(SMU_SDB_FVT_ID, NULL);
shdr              388 drivers/cpufreq/pmac64-cpufreq.c 		if (!shdr)
shdr              390 drivers/cpufreq/pmac64-cpufreq.c 		g5_fvt_table = (struct smu_sdbp_fvt *)&shdr[1];
shdr              391 drivers/cpufreq/pmac64-cpufreq.c 		ssize = (shdr->len * sizeof(u32)) - sizeof(*shdr);
shdr               52 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 		u8  idx = 0, sver, shdr;
shdr               59 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 			shdr = hdr;
shdr               60 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 			subd = nvbios_boostSp(bios, idx++, data, &sver, &shdr,
shdr              438 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 		u8  sver = ver, shdr = hdr;
shdr              440 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c 					  &sver, &shdr, cnt, len, &perfS);
shdr              158 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr              159 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SYS_SESSION_INIT;
shdr              160 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              169 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr              170 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = pkt_type;
shdr              171 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              182 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_BUFFERS;
shdr              183 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              193 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size = sizeof(*pkt) - sizeof(u32) +
shdr              202 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size = sizeof(*pkt) +
shdr              221 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_RELEASE_BUFFERS;
shdr              222 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              235 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size =
shdr              243 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size =
shdr              260 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr              261 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER;
shdr              262 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              284 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr              285 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_EMPTY_BUFFER;
shdr              286 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              309 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr              310 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_FILL_BUFFER;
shdr              311 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              336 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr              337 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_PARSE_SEQUENCE_HEADER;
shdr              338 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              351 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr              352 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_GET_SEQUENCE_HEADER;
shdr              353 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              372 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr              373 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_FLUSH;
shdr              374 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              391 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr              392 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_GET_PROPERTY;
shdr              393 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              411 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr              412 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY;
shdr              413 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr              423 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*frate);
shdr              432 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hfi);
shdr              441 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*fsize);
shdr              448 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) * 2;
shdr              456 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count);
shdr              464 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*sz);
shdr              473 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count);
shdr              481 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*fmt);
shdr              497 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) * 2;
shdr              504 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              511 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              519 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              529 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*multi);
shdr              538 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count);
shdr              555 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) * 2;
shdr              562 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              569 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              576 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              583 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              587 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32);
shdr              598 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*brate);
shdr              606 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hfi);
shdr              622 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*pl);
shdr              631 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hfi);
shdr              650 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) * 2;
shdr              657 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*res);
shdr              664 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ext);
shdr              683 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*db);
shdr              693 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*quant);
shdr              719 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*range);
shdr              732 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*perf);
shdr              740 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*bframes);
shdr              748 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*intra);
shdr              755 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*idr);
shdr              763 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*color);
shdr              792 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ops);
shdr              814 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*intra);
shdr              833 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*multi);
shdr              840 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              849 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*vui);
shdr              856 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              863 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              871 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*mode);
shdr              878 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              885 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              892 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              900 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*thres);
shdr              919 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*mvc);
shdr              938 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ltr);
shdr              947 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ltr_use);
shdr              954 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*ltr_mark);
shdr              961 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) * 2;
shdr              968 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) * 2;
shdr              975 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr              985 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*quant);
shdr              996 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*csc);
shdr             1003 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr             1010 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr             1017 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) * 2;
shdr             1024 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) * 2;
shdr             1031 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*en);
shdr             1038 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*hierp);
shdr             1078 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(struct hfi_session_get_property_pkt);
shdr             1079 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_GET_PROPERTY;
shdr             1080 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr             1107 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr             1108 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY;
shdr             1109 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr             1125 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*multi);
shdr             1146 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*intra);
shdr             1171 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.size = sizeof(*pkt);
shdr             1172 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.hdr.pkt_type = HFI_CMD_SESSION_SET_PROPERTY;
shdr             1173 drivers/media/platform/qcom/venus/hfi_cmds.c 	pkt->shdr.session_id = hash32_ptr(cookie);
shdr             1190 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*count);
shdr             1197 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*wm);
shdr             1204 drivers/media/platform/qcom/venus/hfi_cmds.c 		pkt->shdr.hdr.size += sizeof(u32) + sizeof(*cu);
shdr               94 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              100 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              104 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              108 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              114 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              124 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              130 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              134 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              138 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              142 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              158 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              193 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              205 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              210 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              214 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              218 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              224 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              234 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr              238 drivers/media/platform/qcom/venus/hfi_cmds.h 	struct hfi_session_hdr_pkt shdr;
shdr             1108 drivers/media/platform/qcom/venus/hfi_helper.h 	struct hfi_session_hdr_pkt shdr;
shdr              143 drivers/media/platform/qcom/venus/hfi_msgs.c 			pkt->shdr.session_id, pkt->event_data1,
shdr              156 drivers/media/platform/qcom/venus/hfi_msgs.c 		pkt->event_data1, pkt->shdr.session_id);
shdr              172 drivers/media/platform/qcom/venus/hfi_msgs.c 			pkt->shdr.session_id);
shdr              318 drivers/media/platform/qcom/venus/hfi_msgs.c 	req_bytes = pkt->shdr.hdr.size - sizeof(*pkt);
shdr              339 drivers/media/platform/qcom/venus/hfi_msgs.c 	req_bytes = pkt->shdr.hdr.size - sizeof(*pkt);
shdr              414 drivers/media/platform/qcom/venus/hfi_msgs.c 	rem_bytes = pkt->shdr.hdr.size - sizeof(*pkt) + sizeof(u32);
shdr              749 drivers/media/platform/qcom/venus/hfi_msgs.c 		inst = to_instance(core, pkt->shdr.session_id);
shdr              753 drivers/media/platform/qcom/venus/hfi_msgs.c 				 pkt->shdr.session_id,
shdr              762 drivers/media/platform/qcom/venus/hfi_msgs.c 				pkt->shdr.session_id);
shdr               49 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr               81 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr               88 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr               93 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              100 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              120 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              125 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              130 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              135 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              140 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              145 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              151 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              162 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              182 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              227 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              234 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              240 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr              245 drivers/media/platform/qcom/venus/hfi_msgs.h 	struct hfi_session_hdr_pkt shdr;
shdr               63 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	struct stmmachdr *shdr;
shdr              155 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 		uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size);
shdr              169 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	iplen = sizeof(*ihdr) + sizeof(*shdr) + attr->size;
shdr              186 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	shdr = skb_put(skb, sizeof(*shdr));
shdr              187 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	shdr->version = 0;
shdr              188 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	shdr->magic = cpu_to_be64(STMMAC_TEST_PKT_MAGIC);
shdr              190 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	shdr->id = stmmac_test_next_id++;
shdr              249 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	struct stmmachdr *shdr;
shdr              289 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 		shdr = (struct stmmachdr *)((u8 *)thdr + sizeof(*thdr));
shdr              298 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 		shdr = (struct stmmachdr *)((u8 *)uhdr + sizeof(*uhdr));
shdr              301 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	if (shdr->magic != cpu_to_be64(STMMAC_TEST_PKT_MAGIC))
shdr              305 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	if (tpriv->packet->id != shdr->id)
shdr              837 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	struct stmmachdr *shdr;
shdr              878 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	shdr = (struct stmmachdr *)((u8 *)uhdr + sizeof(*uhdr));
shdr              879 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	if (shdr->magic != cpu_to_be64(STMMAC_TEST_PKT_MAGIC))
shdr              206 drivers/remoteproc/remoteproc_elf_loader.c 	struct elf32_shdr *shdr;
shdr              213 drivers/remoteproc/remoteproc_elf_loader.c 	shdr = (struct elf32_shdr *)(elf_data + ehdr->e_shoff);
shdr              214 drivers/remoteproc/remoteproc_elf_loader.c 	name_table = elf_data + shdr[ehdr->e_shstrndx].sh_offset;
shdr              216 drivers/remoteproc/remoteproc_elf_loader.c 	for (i = 0; i < ehdr->e_shnum; i++, shdr++) {
shdr              217 drivers/remoteproc/remoteproc_elf_loader.c 		u32 size = shdr->sh_size;
shdr              218 drivers/remoteproc/remoteproc_elf_loader.c 		u32 offset = shdr->sh_offset;
shdr              220 drivers/remoteproc/remoteproc_elf_loader.c 		if (strcmp(name_table + shdr->sh_name, ".resource_table"))
shdr              255 drivers/remoteproc/remoteproc_elf_loader.c 		return shdr;
shdr              274 drivers/remoteproc/remoteproc_elf_loader.c 	struct elf32_shdr *shdr;
shdr              282 drivers/remoteproc/remoteproc_elf_loader.c 	shdr = find_table(dev, ehdr, fw->size);
shdr              283 drivers/remoteproc/remoteproc_elf_loader.c 	if (!shdr)
shdr              286 drivers/remoteproc/remoteproc_elf_loader.c 	table = (struct resource_table *)(elf_data + shdr->sh_offset);
shdr              287 drivers/remoteproc/remoteproc_elf_loader.c 	tablesz = shdr->sh_size;
shdr              321 drivers/remoteproc/remoteproc_elf_loader.c 	struct elf32_shdr *shdr;
shdr              323 drivers/remoteproc/remoteproc_elf_loader.c 	shdr = find_table(&rproc->dev, ehdr, fw->size);
shdr              324 drivers/remoteproc/remoteproc_elf_loader.c 	if (!shdr)
shdr              327 drivers/remoteproc/remoteproc_elf_loader.c 	return rproc_da_to_va(rproc, shdr->sh_addr, shdr->sh_size);
shdr             2404 drivers/scsi/lpfc/lpfc_bsg.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             2487 drivers/scsi/lpfc/lpfc_bsg.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             2489 drivers/scsi/lpfc/lpfc_bsg.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             2490 drivers/scsi/lpfc/lpfc_bsg.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             5969 drivers/scsi/lpfc/lpfc_els.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             5981 drivers/scsi/lpfc/lpfc_els.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             5983 drivers/scsi/lpfc/lpfc_els.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             5984 drivers/scsi/lpfc/lpfc_els.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             1841 drivers/scsi/lpfc/lpfc_hbadisc.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             1856 drivers/scsi/lpfc/lpfc_hbadisc.c 	shdr = (union lpfc_sli4_cfg_shdr *)virt_addr;
shdr             1857 drivers/scsi/lpfc/lpfc_hbadisc.c 	lpfc_sli_pcimem_bcopy(shdr, shdr,
shdr             1859 drivers/scsi/lpfc/lpfc_hbadisc.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             1861 drivers/scsi/lpfc/lpfc_hbadisc.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             8265 drivers/scsi/lpfc/lpfc_init.c 	union  lpfc_sli4_cfg_shdr *shdr;
shdr             8497 drivers/scsi/lpfc/lpfc_init.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             8499 drivers/scsi/lpfc/lpfc_init.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             8500 drivers/scsi/lpfc/lpfc_init.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             9356 drivers/scsi/lpfc/lpfc_init.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             9380 drivers/scsi/lpfc/lpfc_init.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             9382 drivers/scsi/lpfc/lpfc_init.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             9383 drivers/scsi/lpfc/lpfc_init.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             9976 drivers/scsi/lpfc/lpfc_init.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             9998 drivers/scsi/lpfc/lpfc_init.c 		shdr = (union lpfc_sli4_cfg_shdr *)
shdr             10000 drivers/scsi/lpfc/lpfc_init.c 		shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             10002 drivers/scsi/lpfc/lpfc_init.c 					 &shdr->response);
shdr             5370 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             5394 drivers/scsi/lpfc/lpfc_sli.c 	shdr = &mbx_cntl_attr->cfg_shdr;
shdr             5395 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             5396 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             5452 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             5481 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)&get_port_name->header.cfg_shdr;
shdr             5482 drivers/scsi/lpfc/lpfc_sli.c 	bf_set(lpfc_mbox_hdr_version, &shdr->request, LPFC_OPCODE_VERSION_1);
shdr             5486 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             5487 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             6317 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             6323 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             6325 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             6326 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             6771 drivers/scsi/lpfc/lpfc_sli.c 	union  lpfc_sli4_cfg_shdr *shdr;
shdr             6867 drivers/scsi/lpfc/lpfc_sli.c 		shdr = &rsrc_ext->header.cfg_shdr;
shdr             6872 drivers/scsi/lpfc/lpfc_sli.c 		shdr = &n_rsrc->cfg_shdr;
shdr             6876 drivers/scsi/lpfc/lpfc_sli.c 	if (bf_get(lpfc_mbox_hdr_status, &shdr->response)) {
shdr             6881 drivers/scsi/lpfc/lpfc_sli.c 			bf_get(lpfc_mbox_hdr_status, &shdr->response),
shdr             6882 drivers/scsi/lpfc/lpfc_sli.c 			bf_get(lpfc_mbox_hdr_add_status, &shdr->response));
shdr             14646 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             14715 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) &eq_delay->header.cfg_shdr;
shdr             14716 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             14717 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             14756 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             14775 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) &eq_create->header.cfg_shdr;
shdr             14784 drivers/scsi/lpfc/lpfc_sli.c 		bf_set(lpfc_mbox_hdr_version, &shdr->request,
shdr             14837 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             14838 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             14889 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             14904 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) &cq_create->header.cfg_shdr;
shdr             14909 drivers/scsi/lpfc/lpfc_sli.c 	bf_set(lpfc_mbox_hdr_version, &shdr->request,
shdr             14969 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             14970 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             15038 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             15065 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)&cq_set->cfg_shdr;
shdr             15066 drivers/scsi/lpfc/lpfc_sli.c 	bf_set(lpfc_mbox_hdr_version, &shdr->request, 0);
shdr             15226 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             15227 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             15344 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             15363 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) &mq_create_ext->header.cfg_shdr;
shdr             15377 drivers/scsi/lpfc/lpfc_sli.c 	bf_set(lpfc_mbox_hdr_version, &shdr->request,
shdr             15434 drivers/scsi/lpfc/lpfc_sli.c 		shdr = (union lpfc_sli4_cfg_shdr *) &mq_create->header.cfg_shdr;
shdr             15440 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             15441 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             15498 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             15524 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) &wq_create->header.cfg_shdr;
shdr             15531 drivers/scsi/lpfc/lpfc_sli.c 	bf_set(lpfc_mbox_hdr_version, &shdr->request,
shdr             15550 drivers/scsi/lpfc/lpfc_sli.c 		bf_set(lpfc_mbox_hdr_version, &shdr->request,
shdr             15589 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             15590 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             15765 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             15788 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) &rq_create->header.cfg_shdr;
shdr             15789 drivers/scsi/lpfc/lpfc_sli.c 	bf_set(lpfc_mbox_hdr_version, &shdr->request,
shdr             15853 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             15854 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             15924 drivers/scsi/lpfc/lpfc_sli.c 	bf_set(lpfc_mbox_hdr_version, &shdr->request,
shdr             15994 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) &rq_create->header.cfg_shdr;
shdr             15995 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             15996 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             16057 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             16090 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)&rq_create->cfg_shdr;
shdr             16092 drivers/scsi/lpfc/lpfc_sli.c 	bf_set(lpfc_mbox_hdr_version, &shdr->request, LPFC_Q_CREATE_VERSION_2);
shdr             16186 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             16187 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             16233 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             16254 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             16256 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             16257 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             16290 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             16309 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             16311 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             16312 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             16344 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             16363 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             16365 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             16366 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             16398 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             16416 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             16418 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             16419 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             16454 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             16473 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             16475 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             16476 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             16489 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)
shdr             16491 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             16492 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             16539 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             16577 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) &post_sgl_pages->header.cfg_shdr;
shdr             16578 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             16579 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             16709 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             16772 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) &sgl->cfg_shdr;
shdr             16773 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             16774 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             16813 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             16885 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *)&sgl->cfg_shdr;
shdr             16886 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             16887 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             18194 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             18229 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) &hdr_tmpl->header.cfg_shdr;
shdr             18230 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             18231 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr             18485 drivers/scsi/lpfc/lpfc_sli.c 	union lpfc_sli4_cfg_shdr *shdr;
shdr             18490 drivers/scsi/lpfc/lpfc_sli.c 	shdr = (union lpfc_sli4_cfg_shdr *) virt_addr;
shdr             18491 drivers/scsi/lpfc/lpfc_sli.c 	shdr_status = bf_get(lpfc_mbox_hdr_status, &shdr->response);
shdr             18492 drivers/scsi/lpfc/lpfc_sli.c 	shdr_add_status = bf_get(lpfc_mbox_hdr_add_status, &shdr->response);
shdr              854 fs/cifs/cifsglob.h 			    const struct smb2_sync_hdr *shdr)
shdr              856 fs/cifs/cifsglob.h 	unsigned int num = le16_to_cpu(shdr->CreditCharge);
shdr              937 fs/cifs/connect.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buffer;
shdr              945 fs/cifs/connect.c 	return le16_to_cpu(shdr->CreditRequest);
shdr             1137 fs/cifs/connect.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buffer;
shdr             1145 fs/cifs/connect.c 	if (shdr->CreditRequest) {
shdr             1147 fs/cifs/connect.c 		server->credits += le16_to_cpu(shdr->CreditRequest);
shdr             2455 fs/cifs/smb2maperror.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
shdr             2458 fs/cifs/smb2maperror.c 	__le32 smb2err = shdr->Status;
shdr             2461 fs/cifs/smb2maperror.c 		trace_smb3_cmd_done(shdr->TreeId, shdr->SessionId,
shdr             2462 fs/cifs/smb2maperror.c 			le16_to_cpu(shdr->Command), le64_to_cpu(shdr->MessageId));
shdr             2486 fs/cifs/smb2maperror.c 	trace_smb3_cmd_err(shdr->TreeId, shdr->SessionId,
shdr             2487 fs/cifs/smb2maperror.c 			le16_to_cpu(shdr->Command),
shdr             2488 fs/cifs/smb2maperror.c 			le64_to_cpu(shdr->MessageId), le32_to_cpu(smb2err), rc);
shdr               34 fs/cifs/smb2misc.c check_smb2_hdr(struct smb2_sync_hdr *shdr, __u64 mid)
shdr               36 fs/cifs/smb2misc.c 	__u64 wire_mid = le64_to_cpu(shdr->MessageId);
shdr               42 fs/cifs/smb2misc.c 	if ((shdr->ProtocolId == SMB2_PROTO_NUMBER) &&
shdr               44 fs/cifs/smb2misc.c 		if (shdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR)
shdr               48 fs/cifs/smb2misc.c 			if (shdr->Command == SMB2_OPLOCK_BREAK)
shdr               54 fs/cifs/smb2misc.c 		if (shdr->ProtocolId != SMB2_PROTO_NUMBER)
shdr               56 fs/cifs/smb2misc.c 				 le32_to_cpu(shdr->ProtocolId));
shdr              133 fs/cifs/smb2misc.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
shdr              134 fs/cifs/smb2misc.c 	struct smb2_sync_pdu *pdu = (struct smb2_sync_pdu *)shdr;
shdr              145 fs/cifs/smb2misc.c 	if (shdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) {
shdr              167 fs/cifs/smb2misc.c 	mid = le64_to_cpu(shdr->MessageId);
shdr              170 fs/cifs/smb2misc.c 		    && (shdr->Status != 0)) {
shdr              188 fs/cifs/smb2misc.c 	if (check_smb2_hdr(shdr, mid))
shdr              191 fs/cifs/smb2misc.c 	if (shdr->StructureSize != SMB2_HEADER_STRUCTURE_SIZE) {
shdr              193 fs/cifs/smb2misc.c 			 le16_to_cpu(shdr->StructureSize));
shdr              197 fs/cifs/smb2misc.c 	command = le16_to_cpu(shdr->Command);
shdr              204 fs/cifs/smb2misc.c 		if (command != SMB2_OPLOCK_BREAK_HE && (shdr->Status == 0 ||
shdr              211 fs/cifs/smb2misc.c 			   && (shdr->Status == 0)
shdr              223 fs/cifs/smb2misc.c 	if (shdr->Command == SMB2_NEGOTIATE)
shdr              224 fs/cifs/smb2misc.c 		clc_len += get_neg_ctxt_len(shdr, len, clc_len);
shdr              231 fs/cifs/smb2misc.c 		    shdr->Status == STATUS_STOPPED_ON_SYMLINK)
shdr              303 fs/cifs/smb2misc.c smb2_get_data_area_len(int *off, int *len, struct smb2_sync_hdr *shdr)
shdr              309 fs/cifs/smb2misc.c 	if (shdr->Status && shdr->Status != STATUS_MORE_PROCESSING_REQUIRED &&
shdr              310 fs/cifs/smb2misc.c 	    (((struct smb2_err_rsp *)shdr)->StructureSize) ==
shdr              319 fs/cifs/smb2misc.c 	switch (shdr->Command) {
shdr              322 fs/cifs/smb2misc.c 		  ((struct smb2_negotiate_rsp *)shdr)->SecurityBufferOffset);
shdr              324 fs/cifs/smb2misc.c 		  ((struct smb2_negotiate_rsp *)shdr)->SecurityBufferLength);
shdr              328 fs/cifs/smb2misc.c 		  ((struct smb2_sess_setup_rsp *)shdr)->SecurityBufferOffset);
shdr              330 fs/cifs/smb2misc.c 		  ((struct smb2_sess_setup_rsp *)shdr)->SecurityBufferLength);
shdr              334 fs/cifs/smb2misc.c 		    ((struct smb2_create_rsp *)shdr)->CreateContextsOffset);
shdr              336 fs/cifs/smb2misc.c 		    ((struct smb2_create_rsp *)shdr)->CreateContextsLength);
shdr              340 fs/cifs/smb2misc.c 		    ((struct smb2_query_info_rsp *)shdr)->OutputBufferOffset);
shdr              342 fs/cifs/smb2misc.c 		    ((struct smb2_query_info_rsp *)shdr)->OutputBufferLength);
shdr              346 fs/cifs/smb2misc.c 		*off = ((struct smb2_read_rsp *)shdr)->DataOffset;
shdr              347 fs/cifs/smb2misc.c 		*len = le32_to_cpu(((struct smb2_read_rsp *)shdr)->DataLength);
shdr              351 fs/cifs/smb2misc.c 		  ((struct smb2_query_directory_rsp *)shdr)->OutputBufferOffset);
shdr              353 fs/cifs/smb2misc.c 		  ((struct smb2_query_directory_rsp *)shdr)->OutputBufferLength);
shdr              357 fs/cifs/smb2misc.c 		  ((struct smb2_ioctl_rsp *)shdr)->OutputOffset);
shdr              359 fs/cifs/smb2misc.c 		  ((struct smb2_ioctl_rsp *)shdr)->OutputCount);
shdr              392 fs/cifs/smb2misc.c 		return (char *)shdr + *off;
shdr              405 fs/cifs/smb2misc.c 	struct smb2_sync_hdr *shdr = &pdu->sync_hdr;
shdr              409 fs/cifs/smb2misc.c 	int len = le16_to_cpu(shdr->StructureSize);
shdr              417 fs/cifs/smb2misc.c 	if (has_smb2_data_area[le16_to_cpu(shdr->Command)] == false)
shdr              420 fs/cifs/smb2misc.c 	smb2_get_data_area_len(&offset, &data_length, shdr);
shdr              265 fs/cifs/smb2ops.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
shdr              266 fs/cifs/smb2ops.c 	__u64 wire_mid = le64_to_cpu(shdr->MessageId);
shdr              268 fs/cifs/smb2ops.c 	if (shdr->ProtocolId == SMB2_TRANSFORM_PROTO_NUM) {
shdr              277 fs/cifs/smb2ops.c 		    (mid->command == shdr->Command)) {
shdr              291 fs/cifs/smb2ops.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
shdr              294 fs/cifs/smb2ops.c 		 shdr->Command, shdr->Status, shdr->Flags, shdr->MessageId,
shdr              295 fs/cifs/smb2ops.c 		 shdr->ProcessId);
shdr             2094 fs/cifs/smb2ops.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
shdr             2096 fs/cifs/smb2ops.c 	if (shdr->Status != STATUS_PENDING)
shdr             2099 fs/cifs/smb2ops.c 	if (shdr->CreditRequest) {
shdr             2101 fs/cifs/smb2ops.c 		server->credits += le16_to_cpu(shdr->CreditRequest);
shdr             2112 fs/cifs/smb2ops.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
shdr             2114 fs/cifs/smb2ops.c 	if (shdr->Status != STATUS_NETWORK_SESSION_EXPIRED &&
shdr             2115 fs/cifs/smb2ops.c 	    shdr->Status != STATUS_USER_SESSION_DELETED)
shdr             2118 fs/cifs/smb2ops.c 	trace_smb3_ses_expired(shdr->TreeId, shdr->SessionId,
shdr             2119 fs/cifs/smb2ops.c 			       le16_to_cpu(shdr->Command),
shdr             2120 fs/cifs/smb2ops.c 			       le64_to_cpu(shdr->MessageId));
shdr             2142 fs/cifs/smb2ops.c 	struct smb2_sync_hdr *shdr;
shdr             2144 fs/cifs/smb2ops.c 	shdr = (struct smb2_sync_hdr *)(rqst->rq_iov[0].iov_base);
shdr             2145 fs/cifs/smb2ops.c 	if (shdr == NULL) {
shdr             2149 fs/cifs/smb2ops.c 	shdr->Flags |= SMB2_FLAGS_RELATED_OPERATIONS;
shdr             2157 fs/cifs/smb2ops.c 	struct smb2_sync_hdr *shdr;
shdr             2163 fs/cifs/smb2ops.c 	shdr = (struct smb2_sync_hdr *)(rqst->rq_iov[0].iov_base);
shdr             2164 fs/cifs/smb2ops.c 	if (shdr == NULL) {
shdr             2208 fs/cifs/smb2ops.c 	shdr->NextCommand = cpu_to_le32(len);
shdr             3553 fs/cifs/smb2ops.c 	struct smb2_sync_hdr *shdr =
shdr             3564 fs/cifs/smb2ops.c 	memcpy(&tr_hdr->SessionId, &shdr->SessionId, 8);
shdr             3959 fs/cifs/smb2ops.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)buf;
shdr             3966 fs/cifs/smb2ops.c 	if (shdr->Command != SMB2_READ) {
shdr             4238 fs/cifs/smb2ops.c 	struct smb2_sync_hdr *shdr;
shdr             4268 fs/cifs/smb2ops.c 	shdr = (struct smb2_sync_hdr *)buf;
shdr             4269 fs/cifs/smb2ops.c 	if (shdr->NextCommand) {
shdr             4275 fs/cifs/smb2ops.c 		       buf + le32_to_cpu(shdr->NextCommand),
shdr             4276 fs/cifs/smb2ops.c 		       pdu_length - le32_to_cpu(shdr->NextCommand));
shdr             4300 fs/cifs/smb2ops.c 	if (ret == 0 && shdr->NextCommand) {
shdr             4301 fs/cifs/smb2ops.c 		pdu_length -= le32_to_cpu(shdr->NextCommand);
shdr              100 fs/cifs/smb2pdu.c smb2_hdr_assemble(struct smb2_sync_hdr *shdr, __le16 smb2_cmd,
shdr              103 fs/cifs/smb2pdu.c 	shdr->ProtocolId = SMB2_PROTO_NUMBER;
shdr              104 fs/cifs/smb2pdu.c 	shdr->StructureSize = cpu_to_le16(64);
shdr              105 fs/cifs/smb2pdu.c 	shdr->Command = smb2_cmd;
shdr              112 fs/cifs/smb2pdu.c 			shdr->CreditRequest = cpu_to_le16(0);
shdr              114 fs/cifs/smb2pdu.c 			shdr->CreditRequest = cpu_to_le16(
shdr              119 fs/cifs/smb2pdu.c 		shdr->CreditRequest = cpu_to_le16(2);
shdr              121 fs/cifs/smb2pdu.c 	shdr->ProcessId = cpu_to_le32((__u16)current->tgid);
shdr              130 fs/cifs/smb2pdu.c 		shdr->CreditCharge = cpu_to_le16(1);
shdr              133 fs/cifs/smb2pdu.c 	shdr->TreeId = tcon->tid;
shdr              136 fs/cifs/smb2pdu.c 		shdr->SessionId = tcon->ses->Suid;
shdr              153 fs/cifs/smb2pdu.c 		shdr->Flags |= SMB2_FLAGS_SIGNED;
shdr             3536 fs/cifs/smb2pdu.c 	struct smb2_sync_hdr *shdr;
shdr             3548 fs/cifs/smb2pdu.c 	shdr = &req->sync_hdr;
shdr             3549 fs/cifs/smb2pdu.c 	shdr->ProcessId = cpu_to_le32(io_parms->pid);
shdr             3602 fs/cifs/smb2pdu.c 			shdr->NextCommand = cpu_to_le32(*total_len);
shdr             3604 fs/cifs/smb2pdu.c 			shdr->NextCommand = 0;
shdr             3606 fs/cifs/smb2pdu.c 			shdr->Flags |= SMB2_FLAGS_RELATED_OPERATIONS;
shdr             3611 fs/cifs/smb2pdu.c 			shdr->SessionId = 0xFFFFFFFF;
shdr             3612 fs/cifs/smb2pdu.c 			shdr->TreeId = 0xFFFFFFFF;
shdr             3632 fs/cifs/smb2pdu.c 	struct smb2_sync_hdr *shdr =
shdr             3649 fs/cifs/smb2pdu.c 		credits.value = le16_to_cpu(shdr->CreditRequest);
shdr             3675 fs/cifs/smb2pdu.c 		credits.value = le16_to_cpu(shdr->CreditRequest);
shdr             3715 fs/cifs/smb2pdu.c 	struct smb2_sync_hdr *shdr;
shdr             3745 fs/cifs/smb2pdu.c 	shdr = (struct smb2_sync_hdr *)buf;
shdr             3748 fs/cifs/smb2pdu.c 		shdr->CreditCharge = cpu_to_le16(DIV_ROUND_UP(rdata->bytes,
shdr             3750 fs/cifs/smb2pdu.c 		shdr->CreditRequest =
shdr             3751 fs/cifs/smb2pdu.c 			cpu_to_le16(le16_to_cpu(shdr->CreditCharge) + 1);
shdr             3944 fs/cifs/smb2pdu.c 	struct smb2_sync_hdr *shdr;
shdr             3958 fs/cifs/smb2pdu.c 	shdr = (struct smb2_sync_hdr *)req;
shdr             3959 fs/cifs/smb2pdu.c 	shdr->ProcessId = cpu_to_le32(wdata->cfile->pid);
shdr             4043 fs/cifs/smb2pdu.c 		shdr->CreditCharge = cpu_to_le16(DIV_ROUND_UP(wdata->bytes,
shdr             4045 fs/cifs/smb2pdu.c 		shdr->CreditRequest =
shdr             4046 fs/cifs/smb2pdu.c 			cpu_to_le16(le16_to_cpu(shdr->CreditCharge) + 1);
shdr               41 fs/cifs/smb2proto.h 				    struct smb2_sync_hdr *shdr);
shdr              172 fs/cifs/smb2transport.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base;
shdr              177 fs/cifs/smb2transport.c 	ses = smb2_find_smb_ses(server, shdr->SessionId);
shdr              184 fs/cifs/smb2transport.c 	memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE);
shdr              228 fs/cifs/smb2transport.c 		memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE);
shdr              433 fs/cifs/smb2transport.c 	struct smb2_sync_hdr *shdr = (struct smb2_sync_hdr *)iov[0].iov_base;
shdr              438 fs/cifs/smb2transport.c 	ses = smb2_find_smb_ses(server, shdr->SessionId);
shdr              445 fs/cifs/smb2transport.c 	memset(shdr->Signature, 0x0, SMB2_SIGNATURE_SIZE);
shdr              487 fs/cifs/smb2transport.c 		memcpy(shdr->Signature, sigptr, SMB2_SIGNATURE_SIZE);
shdr              497 fs/cifs/smb2transport.c 	struct smb2_sync_hdr *shdr =
shdr              500 fs/cifs/smb2transport.c 	if (!(shdr->Flags & SMB2_FLAGS_SIGNED) ||
shdr              505 fs/cifs/smb2transport.c 		strncpy(shdr->Signature, "BSRSPYL", 8);
shdr              519 fs/cifs/smb2transport.c 	struct smb2_sync_hdr *shdr =
shdr              522 fs/cifs/smb2transport.c 	if ((shdr->Command == SMB2_NEGOTIATE) ||
shdr              523 fs/cifs/smb2transport.c 	    (shdr->Command == SMB2_SESSION_SETUP) ||
shdr              524 fs/cifs/smb2transport.c 	    (shdr->Command == SMB2_OPLOCK_BREAK) ||
shdr              535 fs/cifs/smb2transport.c 	if (memcmp(shdr->Signature, "BSRSPYL ", 8) == 0)
shdr              537 fs/cifs/smb2transport.c 			 shdr->Command);
shdr              543 fs/cifs/smb2transport.c 	memcpy(server_response_sig, shdr->Signature, SMB2_SIGNATURE_SIZE);
shdr              545 fs/cifs/smb2transport.c 	memset(shdr->Signature, 0, SMB2_SIGNATURE_SIZE);
shdr              554 fs/cifs/smb2transport.c 	if (memcmp(server_response_sig, shdr->Signature, SMB2_SIGNATURE_SIZE))
shdr              566 fs/cifs/smb2transport.c 		      struct smb2_sync_hdr *shdr)
shdr              568 fs/cifs/smb2transport.c 	unsigned int i, num = le16_to_cpu(shdr->CreditCharge);
shdr              570 fs/cifs/smb2transport.c 	shdr->MessageId = get_next_mid64(server);
shdr              577 fs/cifs/smb2transport.c smb2_mid_entry_alloc(const struct smb2_sync_hdr *shdr,
shdr              581 fs/cifs/smb2transport.c 	unsigned int credits = le16_to_cpu(shdr->CreditCharge);
shdr              591 fs/cifs/smb2transport.c 	temp->mid = le64_to_cpu(shdr->MessageId);
shdr              594 fs/cifs/smb2transport.c 	temp->command = shdr->Command; /* Always LE */
shdr              609 fs/cifs/smb2transport.c 	trace_smb3_cmd_enter(shdr->TreeId, shdr->SessionId,
shdr              610 fs/cifs/smb2transport.c 		le16_to_cpu(shdr->Command), temp->mid);
shdr              615 fs/cifs/smb2transport.c smb2_get_mid_entry(struct cifs_ses *ses, struct smb2_sync_hdr *shdr,
shdr              627 fs/cifs/smb2transport.c 	   shdr->Command != SMB2_NEGOTIATE)
shdr              631 fs/cifs/smb2transport.c 		if ((shdr->Command != SMB2_SESSION_SETUP) &&
shdr              632 fs/cifs/smb2transport.c 		    (shdr->Command != SMB2_NEGOTIATE))
shdr              638 fs/cifs/smb2transport.c 		if (shdr->Command != SMB2_LOGOFF)
shdr              643 fs/cifs/smb2transport.c 	*mid = smb2_mid_entry_alloc(shdr, ses->server);
shdr              683 fs/cifs/smb2transport.c 	struct smb2_sync_hdr *shdr =
shdr              687 fs/cifs/smb2transport.c 	smb2_seq_num_into_buf(ses->server, shdr);
shdr              689 fs/cifs/smb2transport.c 	rc = smb2_get_mid_entry(ses, shdr, &mid);
shdr              691 fs/cifs/smb2transport.c 		revert_current_mid_from_hdr(ses->server, shdr);
shdr              697 fs/cifs/smb2transport.c 		revert_current_mid_from_hdr(ses->server, shdr);
shdr              709 fs/cifs/smb2transport.c 	struct smb2_sync_hdr *shdr =
shdr              714 fs/cifs/smb2transport.c 	   shdr->Command != SMB2_NEGOTIATE)
shdr              717 fs/cifs/smb2transport.c 	smb2_seq_num_into_buf(server, shdr);
shdr              719 fs/cifs/smb2transport.c 	mid = smb2_mid_entry_alloc(shdr, server);
shdr              721 fs/cifs/smb2transport.c 		revert_current_mid_from_hdr(server, shdr);
shdr              727 fs/cifs/smb2transport.c 		revert_current_mid_from_hdr(server, shdr);
shdr              887 fs/xfs/libxfs/xfs_dir2_node.c 	struct xfs_dir3_icleaf_hdr	*shdr,
shdr              921 fs/xfs/libxfs/xfs_dir2_node.c 	if (shdr->stale) {
shdr              942 fs/xfs/libxfs/xfs_dir2_node.c 	if (start_s + count < shdr->count) {
shdr              951 fs/xfs/libxfs/xfs_dir2_node.c 	shdr->count -= count;
shdr              952 fs/xfs/libxfs/xfs_dir2_node.c 	shdr->stale -= stale;
shdr              349 kernel/module.c 		Elf_Shdr *shdr = &info->sechdrs[i];
shdr              351 kernel/module.c 		if ((shdr->sh_flags & SHF_ALLOC)
shdr              352 kernel/module.c 		    && strcmp(info->secstrings + shdr->sh_name, name) == 0)
shdr             3018 kernel/module.c 		Elf_Shdr *shdr = &info->sechdrs[i];
shdr             3019 kernel/module.c 		if (shdr->sh_type != SHT_NOBITS
shdr             3020 kernel/module.c 		    && info->len < shdr->sh_offset + shdr->sh_size) {
shdr             3027 kernel/module.c 		shdr->sh_addr = (size_t)info->hdr + shdr->sh_offset;
shdr             3031 kernel/module.c 		if (module_exit_section(info->secstrings+shdr->sh_name))
shdr             3032 kernel/module.c 			shdr->sh_flags &= ~(unsigned long)SHF_ALLOC;
shdr             3293 kernel/module.c 		Elf_Shdr *shdr = &info->sechdrs[i];
shdr             3295 kernel/module.c 		if (!(shdr->sh_flags & SHF_ALLOC))
shdr             3298 kernel/module.c 		if (shdr->sh_entsize & INIT_OFFSET_MASK)
shdr             3300 kernel/module.c 				+ (shdr->sh_entsize & ~INIT_OFFSET_MASK);
shdr             3302 kernel/module.c 			dest = mod->core_layout.base + shdr->sh_entsize;
shdr             3304 kernel/module.c 		if (shdr->sh_type != SHT_NOBITS)
shdr             3305 kernel/module.c 			memcpy(dest, (void *)shdr->sh_addr, shdr->sh_size);
shdr             3307 kernel/module.c 		shdr->sh_addr = (unsigned long)dest;
shdr             3309 kernel/module.c 			 (long)shdr->sh_addr, info->secstrings + shdr->sh_name);
shdr              317 samples/bpf/bpf_load.c 		   GElf_Shdr *shdr, Elf_Data **data)
shdr              325 samples/bpf/bpf_load.c 	if (gelf_getshdr(scn, shdr) != shdr)
shdr              328 samples/bpf/bpf_load.c 	*shname = elf_strptr(elf, ehdr->e_shstrndx, shdr->sh_name);
shdr              329 samples/bpf/bpf_load.c 	if (!*shname || !shdr->sh_size)
shdr              340 samples/bpf/bpf_load.c 				GElf_Shdr *shdr, struct bpf_insn *insn,
shdr              345 samples/bpf/bpf_load.c 	nrels = shdr->sh_size / shdr->sh_entsize;
shdr              513 samples/bpf/bpf_load.c 	GElf_Shdr shdr, shdr_prog;
shdr              544 samples/bpf/bpf_load.c 		if (get_sec(elf, i, &ehdr, &shname, &shdr, &data))
shdr              550 samples/bpf/bpf_load.c 			       shdr.sh_link, (int) shdr.sh_flags);
shdr              570 samples/bpf/bpf_load.c 		} else if (shdr.sh_type == SHT_SYMTAB) {
shdr              571 samples/bpf/bpf_load.c 			strtabidx = shdr.sh_link;
shdr              603 samples/bpf/bpf_load.c 		if (get_sec(elf, i, &ehdr, &shname, &shdr, &data))
shdr              606 samples/bpf/bpf_load.c 		if (shdr.sh_type == SHT_REL) {
shdr              610 samples/bpf/bpf_load.c 			if (get_sec(elf, shdr.sh_info, &ehdr, &shname_prog,
shdr              621 samples/bpf/bpf_load.c 			if (parse_relo_and_apply(data, symbols, &shdr, insns,
shdr              633 samples/bpf/bpf_load.c 		if (get_sec(elf, i, &ehdr, &shname, &shdr, &data))
shdr              376 scripts/recordmcount.h 	Elf_Shdr const *const shdr = &shdr0[w(relhdr->sh_info)];
shdr              393 scripts/recordmcount.h 				ret = make_nop((void *)ehdr, _w(shdr->sh_offset) + _w(relp->r_offset));
shdr               93 scripts/sortextable.h 	Elf_Shdr *shdr;
shdr              115 scripts/sortextable.h 	shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff));
shdr              119 scripts/sortextable.h 		num_sections = _r(&shdr[0].sh_size);
shdr              123 scripts/sortextable.h 		secindex_strings = r(&shdr[0].sh_link);
shdr              125 scripts/sortextable.h 	shstrtab_sec = shdr + secindex_strings;
shdr              128 scripts/sortextable.h 		idx = r(&shdr[i].sh_name);
shdr              130 scripts/sortextable.h 			extab_sec = shdr + i;
shdr              133 scripts/sortextable.h 		if ((r(&shdr[i].sh_type) == SHT_REL ||
shdr              134 scripts/sortextable.h 		     r(&shdr[i].sh_type) == SHT_RELA) &&
shdr              135 scripts/sortextable.h 		    r(&shdr[i].sh_info) == extab_index) {
shdr              136 scripts/sortextable.h 			relocs = (void *)ehdr + _r(&shdr[i].sh_offset);
shdr              137 scripts/sortextable.h 			relocs_size = _r(&shdr[i].sh_size);
shdr              140 scripts/sortextable.h 			symtab_sec = shdr + i;
shdr              142 scripts/sortextable.h 			strtab_sec = shdr + i;
shdr              143 scripts/sortextable.h 		if (r(&shdr[i].sh_type) == SHT_SYMTAB_SHNDX)
shdr              145 scripts/sortextable.h 				(const char *)ehdr + _r(&shdr[i].sh_offset));
shdr              195 scripts/sortextable.h 	sort_needed_sec = &shdr[get_secindex(r2(&sym->st_shndx),
shdr              268 tools/lib/bpf/libbpf.c 			GElf_Shdr shdr;
shdr             1638 tools/lib/bpf/libbpf.c 			obj->efile.reloc[nr_reloc].shdr = sh;
shdr             1726 tools/lib/bpf/libbpf.c bpf_program__collect_reloc(struct bpf_program *prog, GElf_Shdr *shdr,
shdr             1735 tools/lib/bpf/libbpf.c 	nrels = shdr->sh_size / shdr->sh_entsize;
shdr             3340 tools/lib/bpf/libbpf.c 		GElf_Shdr *shdr = &obj->efile.reloc[i].shdr;
shdr             3342 tools/lib/bpf/libbpf.c 		int idx = shdr->sh_info;
shdr             3345 tools/lib/bpf/libbpf.c 		if (shdr->sh_type != SHT_REL) {
shdr             3356 tools/lib/bpf/libbpf.c 		err = bpf_program__collect_reloc(prog, shdr, data, obj);
shdr              164 tools/perf/util/genelf.c 	Elf_Shdr *shdr;
shdr              189 tools/perf/util/genelf.c 	shdr = elf_getshdr(scn);
shdr              190 tools/perf/util/genelf.c 	if (!shdr) {
shdr              195 tools/perf/util/genelf.c 	shdr->sh_name = 104;
shdr              196 tools/perf/util/genelf.c 	shdr->sh_type = SHT_PROGBITS;
shdr              197 tools/perf/util/genelf.c 	shdr->sh_addr = base_offset;
shdr              198 tools/perf/util/genelf.c 	shdr->sh_flags = SHF_ALLOC;
shdr              199 tools/perf/util/genelf.c 	shdr->sh_entsize = 0;
shdr              223 tools/perf/util/genelf.c 	shdr = elf_getshdr(scn);
shdr              224 tools/perf/util/genelf.c 	if (!shdr) {
shdr              229 tools/perf/util/genelf.c 	shdr->sh_name = 90;
shdr              230 tools/perf/util/genelf.c 	shdr->sh_type = SHT_PROGBITS;
shdr              231 tools/perf/util/genelf.c 	shdr->sh_addr = base_offset + unwinding_table_size;
shdr              232 tools/perf/util/genelf.c 	shdr->sh_flags = SHF_ALLOC;
shdr              233 tools/perf/util/genelf.c 	shdr->sh_entsize = 0;
shdr              255 tools/perf/util/genelf.c 	Elf_Shdr *shdr;
shdr              311 tools/perf/util/genelf.c 	shdr = elf_getshdr(scn);
shdr              312 tools/perf/util/genelf.c 	if (!shdr) {
shdr              317 tools/perf/util/genelf.c 	shdr->sh_name = 1;
shdr              318 tools/perf/util/genelf.c 	shdr->sh_type = SHT_PROGBITS;
shdr              319 tools/perf/util/genelf.c 	shdr->sh_addr = GEN_ELF_TEXT_OFFSET;
shdr              320 tools/perf/util/genelf.c 	shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
shdr              321 tools/perf/util/genelf.c 	shdr->sh_entsize = 0;
shdr              357 tools/perf/util/genelf.c 	shdr = elf_getshdr(scn);
shdr              358 tools/perf/util/genelf.c 	if (!shdr) {
shdr              363 tools/perf/util/genelf.c 	shdr->sh_name = 7; /* offset of '.shstrtab' in shd_string_table */
shdr              364 tools/perf/util/genelf.c 	shdr->sh_type = SHT_STRTAB;
shdr              365 tools/perf/util/genelf.c 	shdr->sh_flags = 0;
shdr              366 tools/perf/util/genelf.c 	shdr->sh_entsize = 0;
shdr              393 tools/perf/util/genelf.c 	shdr = elf_getshdr(scn);
shdr              394 tools/perf/util/genelf.c 	if (!shdr) {
shdr              399 tools/perf/util/genelf.c 	shdr->sh_name = 17; /* offset of '.symtab' in shd_string_table */
shdr              400 tools/perf/util/genelf.c 	shdr->sh_type = SHT_SYMTAB;
shdr              401 tools/perf/util/genelf.c 	shdr->sh_flags = 0;
shdr              402 tools/perf/util/genelf.c 	shdr->sh_entsize = sizeof(Elf_Sym);
shdr              403 tools/perf/util/genelf.c 	shdr->sh_link = unwinding ? 6 : 4; /* index of .strtab section */
shdr              436 tools/perf/util/genelf.c 	shdr = elf_getshdr(scn);
shdr              437 tools/perf/util/genelf.c 	if (!shdr) {
shdr              442 tools/perf/util/genelf.c 	shdr->sh_name = 25; /* offset in shd_string_table */
shdr              443 tools/perf/util/genelf.c 	shdr->sh_type = SHT_STRTAB;
shdr              444 tools/perf/util/genelf.c 	shdr->sh_flags = 0;
shdr              445 tools/perf/util/genelf.c 	shdr->sh_entsize = 0;
shdr              478 tools/perf/util/genelf.c 	shdr = elf_getshdr(scn);
shdr              479 tools/perf/util/genelf.c 	if (!shdr) {
shdr              484 tools/perf/util/genelf.c 	shdr->sh_name = 33; /* offset in shd_string_table */
shdr              485 tools/perf/util/genelf.c 	shdr->sh_type = SHT_NOTE;
shdr              486 tools/perf/util/genelf.c 	shdr->sh_addr = 0x0;
shdr              487 tools/perf/util/genelf.c 	shdr->sh_flags = SHF_ALLOC;
shdr              488 tools/perf/util/genelf.c 	shdr->sh_size = sizeof(bnote);
shdr              489 tools/perf/util/genelf.c 	shdr->sh_entsize = 0;
shdr              488 tools/perf/util/genelf_debug.c 	Elf_Shdr *shdr;
shdr              521 tools/perf/util/genelf_debug.c 	shdr = elf_getshdr(scn);
shdr              522 tools/perf/util/genelf_debug.c 	if (!shdr) {
shdr              527 tools/perf/util/genelf_debug.c 	shdr->sh_name = 52; /* .debug_line */
shdr              528 tools/perf/util/genelf_debug.c 	shdr->sh_type = SHT_PROGBITS;
shdr              529 tools/perf/util/genelf_debug.c 	shdr->sh_addr = 0; /* must be zero or == sh_offset -> dynamic object */
shdr              530 tools/perf/util/genelf_debug.c 	shdr->sh_flags = 0;
shdr              531 tools/perf/util/genelf_debug.c 	shdr->sh_entsize = 0;
shdr              555 tools/perf/util/genelf_debug.c 	shdr = elf_getshdr(scn);
shdr              556 tools/perf/util/genelf_debug.c 	if (!shdr) {
shdr              561 tools/perf/util/genelf_debug.c 	shdr->sh_name = 64; /* .debug_info */
shdr              562 tools/perf/util/genelf_debug.c 	shdr->sh_type = SHT_PROGBITS;
shdr              563 tools/perf/util/genelf_debug.c 	shdr->sh_addr = 0; /* must be zero or == sh_offset -> dynamic object */
shdr              564 tools/perf/util/genelf_debug.c 	shdr->sh_flags = 0;
shdr              565 tools/perf/util/genelf_debug.c 	shdr->sh_entsize = 0;
shdr              589 tools/perf/util/genelf_debug.c 	shdr = elf_getshdr(scn);
shdr              590 tools/perf/util/genelf_debug.c 	if (!shdr) {
shdr              595 tools/perf/util/genelf_debug.c 	shdr->sh_name = 76; /* .debug_info */
shdr              596 tools/perf/util/genelf_debug.c 	shdr->sh_type = SHT_PROGBITS;
shdr              597 tools/perf/util/genelf_debug.c 	shdr->sh_addr = 0; /* must be zero or == sh_offset -> dynamic object */
shdr              598 tools/perf/util/genelf_debug.c 	shdr->sh_flags = 0;
shdr              599 tools/perf/util/genelf_debug.c 	shdr->sh_entsize = 0;
shdr              262 tools/perf/util/probe-event.c 	GElf_Shdr shdr;
shdr              279 tools/perf/util/probe-event.c 	sec = elf_section_by_name(elf, &ehdr, &shdr,
shdr              533 tools/perf/util/probe-event.c 	GElf_Shdr shdr;
shdr              552 tools/perf/util/probe-event.c 	if (!elf_section_by_name(elf, &ehdr, &shdr, ".text", NULL))
shdr              555 tools/perf/util/probe-event.c 	*address = shdr.sh_addr - shdr.sh_offset;
shdr             1172 tools/perf/util/probe-finder.c 		GElf_Shdr shdr;
shdr             1174 tools/perf/util/probe-finder.c 		if (elf_section_by_name(elf, &ehdr, &shdr, ".eh_frame", NULL) &&
shdr             1175 tools/perf/util/probe-finder.c 		    shdr.sh_type == SHT_PROGBITS)
shdr             1550 tools/perf/util/probe-finder.c 	GElf_Shdr mem, *shdr;
shdr             1569 tools/perf/util/probe-finder.c 			shdr = gelf_getshdr(scn, &mem);
shdr             1570 tools/perf/util/probe-finder.c 			if (!shdr)
shdr             1572 tools/perf/util/probe-finder.c 			*offs = shdr->sh_addr;
shdr             1574 tools/perf/util/probe-finder.c 				*offs -= shdr->sh_offset;
shdr              164 tools/perf/util/symbol-elf.c static inline const char *elf_sec__name(const GElf_Shdr *shdr,
shdr              167 tools/perf/util/symbol-elf.c 	return secstrs->d_buf + shdr->sh_name;
shdr              170 tools/perf/util/symbol-elf.c static inline int elf_sec__is_text(const GElf_Shdr *shdr,
shdr              173 tools/perf/util/symbol-elf.c 	return strstr(elf_sec__name(shdr, secstrs), "text") != NULL;
shdr              176 tools/perf/util/symbol-elf.c static inline bool elf_sec__is_data(const GElf_Shdr *shdr,
shdr              179 tools/perf/util/symbol-elf.c 	return strstr(elf_sec__name(shdr, secstrs), "data") != NULL;
shdr              182 tools/perf/util/symbol-elf.c static bool elf_sec__filter(GElf_Shdr *shdr, Elf_Data *secstrs)
shdr              184 tools/perf/util/symbol-elf.c 	return elf_sec__is_text(shdr, secstrs) || 
shdr              185 tools/perf/util/symbol-elf.c 	       elf_sec__is_data(shdr, secstrs);
shdr              191 tools/perf/util/symbol-elf.c 	GElf_Shdr shdr;
shdr              195 tools/perf/util/symbol-elf.c 		gelf_getshdr(sec, &shdr);
shdr              197 tools/perf/util/symbol-elf.c 		if ((addr >= shdr.sh_addr) &&
shdr              198 tools/perf/util/symbol-elf.c 		    (addr < (shdr.sh_addr + shdr.sh_size)))
shdr              458 tools/perf/util/symbol-elf.c 	GElf_Shdr shdr;
shdr              483 tools/perf/util/symbol-elf.c 		sec = elf_section_by_name(elf, &ehdr, &shdr,
shdr              488 tools/perf/util/symbol-elf.c 		sec = elf_section_by_name(elf, &ehdr, &shdr,
shdr              493 tools/perf/util/symbol-elf.c 		sec = elf_section_by_name(elf, &ehdr, &shdr,
shdr              617 tools/perf/util/symbol-elf.c 	GElf_Shdr shdr;
shdr              641 tools/perf/util/symbol-elf.c 	sec = elf_section_by_name(elf, &ehdr, &shdr,
shdr              846 tools/perf/util/symbol-elf.c 				      GElf_Sym *sym, GElf_Shdr *shdr,
shdr              858 tools/perf/util/symbol-elf.c 		sym->st_value -= shdr->sh_addr - shdr->sh_offset;
shdr              871 tools/perf/util/symbol-elf.c 			map->start = shdr->sh_addr + ref_reloc(kmap);
shdr              872 tools/perf/util/symbol-elf.c 			map->end = map->start + shdr->sh_size;
shdr              873 tools/perf/util/symbol-elf.c 			map->pgoff = shdr->sh_offset;
shdr              892 tools/perf/util/symbol-elf.c 			map->pgoff = shdr->sh_offset;
shdr              910 tools/perf/util/symbol-elf.c 			start += map->start + shdr->sh_offset;
shdr              924 tools/perf/util/symbol-elf.c 			curr_map->start  = shdr->sh_addr + ref_reloc(kmap);
shdr              925 tools/perf/util/symbol-elf.c 			curr_map->end	 = curr_map->start + shdr->sh_size;
shdr              926 tools/perf/util/symbol-elf.c 			curr_map->pgoff	 = shdr->sh_offset;
shdr              961 tools/perf/util/symbol-elf.c 	GElf_Shdr shdr;
shdr             1000 tools/perf/util/symbol-elf.c 	shdr = syms_ss->symshdr;
shdr             1013 tools/perf/util/symbol-elf.c 	sec = elf_getscn(elf, shdr.sh_link);
shdr             1029 tools/perf/util/symbol-elf.c 	nr_syms = shdr.sh_size / shdr.sh_entsize;
shdr             1110 tools/perf/util/symbol-elf.c 		gelf_getshdr(sec, &shdr);
shdr             1112 tools/perf/util/symbol-elf.c 		if (is_label && !elf_sec__filter(&shdr, secstrs))
shdr             1115 tools/perf/util/symbol-elf.c 		section_name = elf_sec__name(&shdr, secstrs);
shdr             1125 tools/perf/util/symbol-elf.c 			if (dso__process_kernel_symbol(dso, map, &sym, &shdr, kmaps, kmap, &curr_dso, &curr_map,
shdr             1132 tools/perf/util/symbol-elf.c 				  (u64)sym.st_value, (u64)shdr.sh_addr,
shdr             1133 tools/perf/util/symbol-elf.c 				  (u64)shdr.sh_offset);
shdr             1134 tools/perf/util/symbol-elf.c 			sym.st_value -= shdr.sh_addr - shdr.sh_offset;
shdr             2040 tools/perf/util/symbol-elf.c 	GElf_Shdr shdr;
shdr             2135 tools/perf/util/symbol-elf.c 	if (elf_section_by_name(*elf, &ehdr, &shdr, SDT_BASE_SCN, NULL))
shdr             2136 tools/perf/util/symbol-elf.c 		sdt_adjust_loc(tmp, shdr.sh_offset);
shdr             2139 tools/perf/util/symbol-elf.c 	if (elf_section_by_name(*elf, &ehdr, &shdr, SDT_PROBES_SCN, NULL))
shdr             2140 tools/perf/util/symbol-elf.c 		sdt_adjust_refctr(tmp, shdr.sh_addr, shdr.sh_offset);
shdr             2171 tools/perf/util/symbol-elf.c 	GElf_Shdr shdr;
shdr             2187 tools/perf/util/symbol-elf.c 	scn = elf_section_by_name(elf, &ehdr, &shdr, SDT_NOTE_SCN, NULL);
shdr             2193 tools/perf/util/symbol-elf.c 	if ((shdr.sh_type != SHT_NOTE) || (shdr.sh_flags & SHF_ALLOC)) {
shdr              175 tools/perf/util/unwind-libunwind-local.c 	GElf_Shdr shdr;
shdr              186 tools/perf/util/unwind-libunwind-local.c 		if (!elf_section_by_name(elf, &ehdr, &shdr, name, NULL))
shdr              189 tools/perf/util/unwind-libunwind-local.c 		offset = shdr.sh_offset;