Symbol: section
arch/arc/include/asm/linkage.h
38
.section .data.arcfp
arch/arc/include/asm/linkage.h
40
.section .data
arch/arc/include/asm/linkage.h
48
.section .text.arcfp, "ax",@progbits
arch/arc/include/asm/linkage.h
50
.section .text, "ax",@progbits
arch/arm/include/asm/vmlinux.lds.h
44
#define ARM_LMA(sym, section) \
arch/arm/include/asm/vmlinux.lds.h
45
sym##_start = LOADADDR(section); \
arch/arm/include/asm/vmlinux.lds.h
46
sym##_end = LOADADDR(section) + SIZEOF(section)
arch/arm/mach-pxa/spitz.c
843
static int akita_ooblayout_ecc(struct mtd_info *mtd, int section,
arch/arm/mach-pxa/spitz.c
846
if (section > 12)
arch/arm/mach-pxa/spitz.c
849
switch (section % 3) {
arch/arm/mach-pxa/spitz.c
866
oobregion->offset += (section / 3) * 0x10;
arch/arm/mach-pxa/spitz.c
871
static int akita_ooblayout_free(struct mtd_info *mtd, int section,
arch/arm/mach-pxa/spitz.c
874
if (section)
arch/m68k/include/asm/math-emu.h
200
.section .fixup,"ax"
arch/m68k/include/asm/math-emu.h
206
.section __ex_table,"a"
arch/m68k/include/asm/math-emu.h
217
.section .fixup,"ax"
arch/m68k/include/asm/math-emu.h
223
.section __ex_table,"a"
arch/mips/boot/tools/relocs.c
109
static struct section *sec_lookup(const char *secname)
arch/mips/boot/tools/relocs.c
26
struct section *link;
arch/mips/boot/tools/relocs.c
266
secs = calloc(ehdr.e_shnum, sizeof(struct section));
arch/mips/boot/tools/relocs.c
274
struct section *sec = &secs[i];
arch/mips/boot/tools/relocs.c
300
struct section *sec = &secs[i];
arch/mips/boot/tools/relocs.c
32
static struct section *secs;
arch/mips/boot/tools/relocs.c
325
struct section *sec = &secs[i];
arch/mips/boot/tools/relocs.c
359
struct section *sec = sec_lookup(".text");
arch/mips/boot/tools/relocs.c
368
struct section *sec = &secs[i];
arch/mips/boot/tools/relocs.c
414
struct section *sec = &secs[i];
arch/mips/boot/tools/relocs.c
468
static void walk_relocs(int (*process)(struct section *sec, Elf_Rel *rel,
arch/mips/boot/tools/relocs.c
472
struct section *extab_sec = sec_lookup("__ex_table");
arch/mips/boot/tools/relocs.c
479
struct section *sec_applies, *sec_symtab;
arch/mips/boot/tools/relocs.c
481
struct section *sec = &secs[i];
arch/mips/boot/tools/relocs.c
506
static int do_reloc(struct section *sec, Elf_Rel *rel, Elf_Sym *sym,
arch/mips/boot/tools/relocs.c
585
struct section *sec_reloc;
arch/mips/boot/tools/relocs.c
643
static int do_reloc_info(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym,
arch/parisc/include/asm/alternative.h
48
.section .altinstructions, "a" ! \
arch/parisc/include/asm/alternative.h
57
.section .altinstructions, "a" ! \
arch/parisc/include/asm/assembly.h
578
.section __ex_table,"aw" ! \
arch/parisc/include/asm/module.h
20
} *section;
arch/parisc/kernel/module.c
252
kfree(mod->arch.section);
arch/parisc/kernel/module.c
253
mod->arch.section = NULL;
arch/parisc/kernel/module.c
258
unsigned int section)
arch/parisc/kernel/module.c
262
return (mod->arch.section[section].stub_entries + 1)
arch/parisc/kernel/module.c
276
len = hdr->e_shnum * sizeof(me->arch.section[0]);
arch/parisc/kernel/module.c
277
me->arch.section = kzalloc(len, GFP_KERNEL);
arch/parisc/kernel/module.c
278
if (!me->arch.section)
arch/parisc/kernel/module.c
313
WARN_ON(me->arch.section[s].stub_entries);
arch/parisc/kernel/module.c
316
me->arch.section[s].stub_entries += count;
arch/parisc/kernel/module.c
399
if (!me->arch.section[targetsec].stub_offset) {
arch/parisc/kernel/module.c
400
loc0 -= (me->arch.section[targetsec].stub_entries + 1) *
arch/parisc/kernel/module.c
404
me->arch.section[targetsec].stub_offset = loc0;
arch/parisc/kernel/module.c
408
stub = (void *) me->arch.section[targetsec].stub_offset;
arch/parisc/kernel/module.c
409
me->arch.section[targetsec].stub_offset += sizeof(struct stub_entry);
arch/parisc/kernel/module.c
412
BUG_ON(0 == me->arch.section[targetsec].stub_entries--);
arch/parisc/kernel/module.c
882
kfree(me->arch.section);
arch/parisc/kernel/module.c
883
me->arch.section = NULL;
arch/powerpc/include/asm/bug.h
14
.section __bug_table,"aw"
arch/powerpc/include/asm/bug.h
20
.section .rodata,"a"
arch/powerpc/include/asm/bug.h
26
.section __bug_table,"aw"
arch/powerpc/include/asm/extable.h
38
stringify_in_c(.section __ex_table,"a";)\
arch/powerpc/include/asm/head-64.h
13
.section ".head.text.\name\()","ax",@progbits
arch/powerpc/include/asm/head-64.h
16
.section ".head.data.\name\()","a",@progbits
arch/powerpc/include/asm/head-64.h
19
.section ".head.text.\name\()","ax",@progbits
arch/powerpc/include/asm/head-64.h
77
.section ".linker_stub_catch","ax",@progbits; \
arch/powerpc/include/asm/head-64.h
81
.section ".text","ax",@progbits; \
arch/powerpc/include/asm/head-64.h
87
.section ".text","ax",@progbits; \
arch/powerpc/include/asm/ppc_asm.h
874
stringify_in_c(.section __soft_mask_table,"a";)\
arch/powerpc/include/asm/ppc_asm.h
881
stringify_in_c(.section __restart_table,"a";)\
arch/riscv/include/asm/kexec.h
63
Elf_Shdr *section,
arch/riscv/kernel/machine_kexec_file.c
146
Elf_Shdr *section,
arch/riscv/kernel/machine_kexec_file.c
178
loc += section->sh_offset;
arch/riscv/kernel/machine_kexec_file.c
194
addr = section->sh_addr + relas[i].r_offset;
arch/s390/include/asm/asm-extable.h
30
stringify_in_c(.section _section,"a";) \
arch/s390/include/asm/ftrace.h
129
.section __mcount_loc, "a", @progbits; \
arch/s390/include/asm/kexec.h
105
Elf_Shdr *section,
arch/s390/include/asm/skey.h
13
stringify_in_c(.section .skey_region,"a";) \
arch/s390/kernel/machine_kexec_file.c
312
Elf_Shdr *section,
arch/s390/kernel/machine_kexec_file.c
361
loc += section->sh_offset;
arch/s390/kernel/machine_kexec_file.c
369
addr = section->sh_addr + relas[i].r_offset;
arch/s390/tools/relocs.c
187
secs = calloc(shnum, sizeof(struct section));
arch/s390/tools/relocs.c
195
struct section *sec = &secs[i];
arch/s390/tools/relocs.c
224
struct section *sec = &secs[i];
arch/s390/tools/relocs.c
266
static int do_reloc(struct section *sec, Elf_Rel *rel)
arch/s390/tools/relocs.c
299
struct section *sec_applies;
arch/s390/tools/relocs.c
301
struct section *sec = &secs[i];
arch/s390/tools/relocs.c
56
struct section *link;
arch/s390/tools/relocs.c
60
static struct section *secs;
arch/sparc/include/asm/asmmacro.h
41
.section .leon_1insn_patch, "ax"; \
arch/sparc/include/asm/backoff.h
60
.section .pause_3insn_patch,"ax";\
arch/sparc/include/asm/trap_block.h
126
.section .cpuid_patch, "ax"; \
arch/sparc/include/asm/tsb.h
101
.section .tsb_phys_patch, "ax"; \
arch/sparc/include/asm/tsb.h
108
.section .tsb_phys_patch, "ax"; \
arch/sparc/include/asm/tsb.h
115
.section .tsb_phys_patch, "ax"; \
arch/sparc/include/asm/tsb.h
211
.section .pud_huge_patch, "ax"; \
arch/sparc/include/asm/tsb.h
343
.section .swapper_tsb_phys_patch, "ax"; \
arch/sparc/include/asm/tsb.h
366
.section .swapper_4m_tsb_phys_patch, "ax"; \
arch/sparc/include/asm/tsb.h
79
.section .tsb_ldquad_phys_patch, "ax"; \
arch/sparc/include/asm/tsb.h
87
.section .tsb_phys_patch, "ax"; \
arch/sparc/include/asm/tsb.h
94
.section .tsb_phys_patch, "ax"; \
arch/sparc/include/asm/winmacro.h
111
.section .cpuid_patch, "ax"; \
arch/x86/include/asm/kexec.h
212
Elf_Shdr *section,
arch/x86/include/asm/paravirt_types.h
509
#define __PV_CALLEE_SAVE_REGS_THUNK(func, section) \
arch/x86/include/asm/paravirt_types.h
512
asm(".pushsection " section ", \"ax\";" \
arch/x86/kernel/cpu/sgx/main.c
609
struct sgx_epc_section *section = &sgx_epc_sections[page->section];
arch/x86/kernel/cpu/sgx/main.c
610
struct sgx_numa_node *node = section->node;
arch/x86/kernel/cpu/sgx/main.c
627
struct sgx_epc_section *section)
arch/x86/kernel/cpu/sgx/main.c
632
section->virt_addr = memremap(phys_addr, size, MEMREMAP_WB);
arch/x86/kernel/cpu/sgx/main.c
633
if (!section->virt_addr)
arch/x86/kernel/cpu/sgx/main.c
636
section->pages = vmalloc_array(nr_pages, sizeof(struct sgx_epc_page));
arch/x86/kernel/cpu/sgx/main.c
637
if (!section->pages) {
arch/x86/kernel/cpu/sgx/main.c
638
memunmap(section->virt_addr);
arch/x86/kernel/cpu/sgx/main.c
642
section->phys_addr = phys_addr;
arch/x86/kernel/cpu/sgx/main.c
643
xa_store_range(&sgx_epc_address_space, section->phys_addr,
arch/x86/kernel/cpu/sgx/main.c
644
phys_addr + size - 1, section, GFP_KERNEL);
arch/x86/kernel/cpu/sgx/main.c
647
section->pages[i].section = index;
arch/x86/kernel/cpu/sgx/main.c
648
section->pages[i].flags = 0;
arch/x86/kernel/cpu/sgx/main.c
649
section->pages[i].owner = NULL;
arch/x86/kernel/cpu/sgx/main.c
650
section->pages[i].poison = 0;
arch/x86/kernel/cpu/sgx/main.c
651
list_add_tail(&section->pages[i].list, &sgx_dirty_page_list);
arch/x86/kernel/cpu/sgx/main.c
665
struct sgx_epc_section *section;
arch/x86/kernel/cpu/sgx/main.c
667
section = xa_load(&sgx_epc_address_space, paddr);
arch/x86/kernel/cpu/sgx/main.c
668
if (!section)
arch/x86/kernel/cpu/sgx/main.c
671
return &section->pages[PFN_DOWN(paddr - section->phys_addr)];
arch/x86/kernel/cpu/sgx/main.c
684
struct sgx_epc_section *section;
arch/x86/kernel/cpu/sgx/main.c
705
section = &sgx_epc_sections[page->section];
arch/x86/kernel/cpu/sgx/main.c
706
node = section->node;
arch/x86/kernel/cpu/sgx/main.c
82
struct sgx_epc_section *section = &sgx_epc_sections[page->section];
arch/x86/kernel/cpu/sgx/main.c
83
struct sgx_numa_node *node = section->node;
arch/x86/kernel/cpu/sgx/sgx.h
33
unsigned int section;
arch/x86/kernel/cpu/sgx/sgx.h
68
struct sgx_epc_section *section = &sgx_epc_sections[page->section];
arch/x86/kernel/cpu/sgx/sgx.h
71
index = ((unsigned long)page - (unsigned long)section->pages) / sizeof(*page);
arch/x86/kernel/cpu/sgx/sgx.h
73
return section->phys_addr + index * PAGE_SIZE;
arch/x86/kernel/cpu/sgx/sgx.h
78
struct sgx_epc_section *section = &sgx_epc_sections[page->section];
arch/x86/kernel/cpu/sgx/sgx.h
81
index = ((unsigned long)page - (unsigned long)section->pages) / sizeof(*page);
arch/x86/kernel/cpu/sgx/sgx.h
83
return section->virt_addr + index * PAGE_SIZE;
arch/x86/kernel/machine_kexec_64.c
501
Elf_Shdr *section, const Elf_Shdr *relsec,
arch/x86/kernel/machine_kexec_64.c
535
location += section->sh_offset;
arch/x86/kernel/machine_kexec_64.c
539
address = section->sh_addr + rel[i].r_offset;
arch/x86/tools/relocs.c
1028
static int do_reloc_info(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym,
arch/x86/tools/relocs.c
416
secs = calloc(shnum, sizeof(struct section));
arch/x86/tools/relocs.c
424
struct section *sec = &secs[i];
arch/x86/tools/relocs.c
45
struct section *link;
arch/x86/tools/relocs.c
450
struct section *sec = &secs[i];
arch/x86/tools/relocs.c
472
struct section *sec = &secs[i];
arch/x86/tools/relocs.c
51
static struct section *secs;
arch/x86/tools/relocs.c
526
struct section *sec = &secs[i];
arch/x86/tools/relocs.c
568
struct section *sec = &secs[i];
arch/x86/tools/relocs.c
609
struct section *sec = &secs[i];
arch/x86/tools/relocs.c
610
struct section *sec_applies, *sec_symtab;
arch/x86/tools/relocs.c
696
static void walk_relocs(int (*process)(struct section *sec, Elf_Rel *rel,
arch/x86/tools/relocs.c
705
struct section *sec_applies, *sec_symtab;
arch/x86/tools/relocs.c
707
struct section *sec = &secs[i];
arch/x86/tools/relocs.c
740
static int do_reloc64(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym,
arch/x86/tools/relocs.c
811
static int do_reloc32(struct section *sec, Elf_Rel *rel, Elf_Sym *sym,
arch/x86/tools/relocs.c
854
static int do_reloc_real(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname)
arch/x86/tools/relocs.c
957
int (*do_reloc)(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname);
arch/xtensa/include/asm/asmmacro.h
157
.section __ex_table, "a"; \
arch/xtensa/include/asm/asmmacro.h
338
#define __XTENSA_HANDLER .section ".exception.text", "ax"
drivers/bluetooth/btrtl.c
549
struct rtl_section *section;
drivers/bluetooth/btrtl.c
572
section = rtl_iov_pull_data(&iov, sizeof(*section));
drivers/bluetooth/btrtl.c
573
if (!section)
drivers/bluetooth/btrtl.c
575
section_len = le32_to_cpu(section->len);
drivers/bluetooth/btrtl.c
576
opcode = le32_to_cpu(section->opcode);
drivers/bluetooth/btrtl.c
578
rtl_dev_dbg(hdev, "opcode 0x%04x", section->opcode);
drivers/crypto/intel/qat/qat_common/adf_cfg.c
285
struct adf_cfg_section *section = adf_cfg_sec_find(accel_dev,
drivers/crypto/intel/qat/qat_common/adf_cfg.c
289
if (!section)
drivers/crypto/intel/qat/qat_common/adf_cfg.c
325
adf_cfg_keyval_remove(key, section);
drivers/crypto/intel/qat/qat_common/adf_cfg.c
332
adf_cfg_keyval_add(key_val, section);
drivers/crypto/intel/qat/qat_common/adf_cfg.c
373
const char *section, const char *name,
drivers/crypto/intel/qat/qat_common/adf_cfg.c
380
ret = adf_cfg_key_val_get(accel_dev, section, name, value);
drivers/crypto/intel/qat/qat_common/adf_cfg.h
45
const char *section, const char *name, char *value);
drivers/crypto/intel/qat/qat_common/adf_ctl_drv.c
103
const char *section,
drivers/crypto/intel/qat/qat_common/adf_ctl_drv.c
110
if (adf_cfg_add_key_value_param(accel_dev, section,
drivers/crypto/intel/qat/qat_common/adf_ctl_drv.c
118
if (adf_cfg_add_key_value_param(accel_dev, section,
drivers/crypto/intel/qat/qat_common/adf_ctl_drv.c
134
struct adf_user_cfg_section section, *section_head;
drivers/crypto/intel/qat/qat_common/adf_ctl_drv.c
140
if (copy_from_user(&section, (void __user *)section_head,
drivers/crypto/intel/qat/qat_common/adf_ctl_drv.c
147
if (adf_cfg_section_add(accel_dev, section.name)) {
drivers/crypto/intel/qat/qat_common/adf_ctl_drv.c
153
params_head = section.params;
drivers/crypto/intel/qat/qat_common/adf_ctl_drv.c
162
if (adf_add_key_value_data(accel_dev, section.name,
drivers/crypto/intel/qat/qat_common/adf_ctl_drv.c
168
section_head = section.next;
drivers/crypto/intel/qat/qat_common/adf_transport.c
217
int adf_create_ring(struct adf_accel_dev *accel_dev, const char *section,
drivers/crypto/intel/qat/qat_common/adf_transport.c
246
if (adf_cfg_get_param_value(accel_dev, section, ring_name, val)) {
drivers/crypto/intel/qat/qat_common/adf_transport.c
248
section, ring_name);
drivers/crypto/intel/qat/qat_common/adf_transport.c
354
const char *section, const char *format,
drivers/crypto/intel/qat/qat_common/adf_transport.c
362
if (adf_cfg_get_param_value(accel_dev, section, key_buf, val_buf))
drivers/crypto/intel/qat/qat_common/adf_transport.c
371
const char *section,
drivers/crypto/intel/qat/qat_common/adf_transport.c
374
if (adf_get_cfg_int(bank->accel_dev, section,
drivers/crypto/intel/qat/qat_common/adf_transport.h
12
int adf_create_ring(struct adf_accel_dev *accel_dev, const char *section,
drivers/edac/amd64_edac.c
605
return sprintf(buf, "0x%x\n", pvt->injection.section);
drivers/edac/amd64_edac.c
632
pvt->injection.section = (u32) value;
drivers/edac/amd64_edac.c
719
u32 section, word_bits;
drivers/edac/amd64_edac.c
727
section = F10_NB_ARRAY_DRAM | SET_NB_ARRAY_ADDR(pvt->injection.section);
drivers/edac/amd64_edac.c
729
amd64_write_pci_cfg(pvt->F3, F10_NB_ARRAY_ADDR, section);
drivers/edac/amd64_edac.c
736
edac_dbg(0, "section=0x%x word_bits=0x%x\n", section, word_bits);
drivers/edac/amd64_edac.c
751
u32 section, word_bits, tmp;
drivers/edac/amd64_edac.c
760
section = F10_NB_ARRAY_DRAM | SET_NB_ARRAY_ADDR(pvt->injection.section);
drivers/edac/amd64_edac.c
762
amd64_write_pci_cfg(pvt->F3, F10_NB_ARRAY_ADDR, section);
drivers/edac/amd64_edac.c
785
edac_dbg(0, "section=0x%x word_bits=0x%x\n", section, word_bits);
drivers/edac/amd64_edac.h
227
#define SET_NB_ARRAY_ADDR(section) (((section) & 0x3) << 1)
drivers/edac/amd64_edac.h
275
u32 section;
drivers/edac/i7core_edac.c
213
u32 section;
drivers/edac/i7core_edac.c
697
pvt->inject.section = (u32) value;
drivers/edac/i7core_edac.c
707
return sprintf(data, "0x%08x\n", pvt->inject.section);
drivers/edac/i7core_edac.c
980
(pvt->inject.section & 0x3) << 1 |
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
147
struct cper_sec_crashdump_fatal *section;
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
157
section->body.reg_ctx_type = CPER_CTX_TYPE_CRASH;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
158
section->body.reg_arr_size = sizeof(reg_data);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
159
section->body.data = reg_data;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
174
struct cper_sec_nonstd_err *section;
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
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
191
section->info.error_type = RUNTIME;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
192
section->info.ms_chk_bits.err_type_valid = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
193
section->ctx.reg_ctx_type = CPER_CTX_TYPE_CRASH;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
194
section->ctx.reg_arr_size = sizeof(section->ctx.reg_dump);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
196
memcpy(section->ctx.reg_dump, reg_dump, reg_count * sizeof(uint32_t));
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
208
struct cper_sec_nonstd_err *section;
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
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
222
section->info.error_type = RUNTIME;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
223
section->info.valid_bits.ms_chk = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
224
section->info.ms_chk_bits.err_type_valid = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
225
section->info.ms_chk_bits.err_type = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
226
section->info.ms_chk_bits.pcc = 1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
227
section->ctx.reg_ctx_type = CPER_CTX_TYPE_CRASH;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
228
section->ctx.reg_arr_size = sizeof(section->ctx.reg_dump);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
234
section->ctx.reg_dump[CPER_ACA_REG_CTL_LO] = 0x1;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
235
section->ctx.reg_dump[CPER_ACA_REG_CTL_HI] = 0x0;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
236
section->ctx.reg_dump[CPER_ACA_REG_STATUS_LO] = 0x137;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
237
section->ctx.reg_dump[CPER_ACA_REG_STATUS_HI] = 0xB0000000;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
238
section->ctx.reg_dump[CPER_ACA_REG_ADDR_LO] = 0x0;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
239
section->ctx.reg_dump[CPER_ACA_REG_ADDR_HI] = 0x0;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
240
section->ctx.reg_dump[CPER_ACA_REG_MISC0_LO] = 0x0;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
241
section->ctx.reg_dump[CPER_ACA_REG_MISC0_HI] = 0x0;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
242
section->ctx.reg_dump[CPER_ACA_REG_CONFIG_LO] = 0x2;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
243
section->ctx.reg_dump[CPER_ACA_REG_CONFIG_HI] = 0x1ff;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
244
section->ctx.reg_dump[CPER_ACA_REG_IPID_LO] = (socket_id / 4) & 0x01;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
245
section->ctx.reg_dump[CPER_ACA_REG_IPID_HI] = 0x096 | (((socket_id % 4) & 0x3) << 12);
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
246
section->ctx.reg_dump[CPER_ACA_REG_SYND_LO] = 0x0;
drivers/gpu/drm/amd/amdgpu/amdgpu_cper.c
247
section->ctx.reg_dump[CPER_ACA_REG_SYND_HI] = 0x0;
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
2428
for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
2429
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/clearstate_defs.h
40
const struct cs_extent_def *section;
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
4306
for (sect = gfx10_cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
4307
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
6393
for (sect = gfx10_cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
6394
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
3644
for (sect = gfx11_cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
3645
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
839
for (sect = gfx11_cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
840
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
677
for (sect = gfx12_cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
679
for (ext = sect->section; ext->extent != NULL; ++ext)
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
701
for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
703
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
468
for (sect = gfx12_cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
470
for (ext = sect->section; ext->extent != NULL; ++ext)
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
492
for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
494
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
2041
for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
2042
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
2840
for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c
2841
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
2486
for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
2487
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
3860
for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
3861
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
4112
for (sect = vi_cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
4113
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
4158
for (sect = vi_cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
4159
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
1635
for (sect = gfx9_cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
1636
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
3356
for (sect = gfx9_cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
3357
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
475
static void execute_pwr_dfy_table(struct pp_hwmgr *hwmgr, const PWR_DFY_Section *section)
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
479
cgs_write_register(hwmgr->device, mmCP_DFY_CNTL, section->dfy_cntl);
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
480
cgs_write_register(hwmgr->device, mmCP_DFY_ADDR_HI, section->dfy_addr_hi);
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
481
cgs_write_register(hwmgr->device, mmCP_DFY_ADDR_LO, section->dfy_addr_lo);
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
482
for (i = 0; i < section->dfy_size; i++)
drivers/gpu/drm/amd/pm/powerplay/smumgr/smu7_smumgr.c
483
cgs_write_register(hwmgr->device, mmCP_DFY_DATA_0, section->dfy_data[i]);
drivers/gpu/drm/drm_displayid.c
119
if (!iter->section)
drivers/gpu/drm/drm_displayid.c
122
block = (const struct displayid_block *)&iter->section[iter->idx];
drivers/gpu/drm/drm_displayid.c
139
if (iter->section) {
drivers/gpu/drm/drm_displayid.c
143
iter->section = NULL;
drivers/gpu/drm/drm_displayid.c
158
bool base_section = !iter->section;
drivers/gpu/drm/drm_displayid.c
160
iter->section = find_next_displayid_extension(iter);
drivers/gpu/drm/drm_displayid.c
161
if (!iter->section) {
drivers/gpu/drm/drm_displayid.c
170
base = displayid_get_header(iter->section, iter->length,
drivers/gpu/drm/drm_displayid_internal.h
163
const u8 *section;
drivers/gpu/drm/kmb/kmb_dsi.c
386
u8 frame_id, u8 section,
drivers/gpu/drm/kmb/kmb_dsi.c
414
ctrl_no, frame_id, section, cfg, ph_cfg->dma_packed);
drivers/gpu/drm/kmb/kmb_dsi.c
416
(MIPI_TXm_HS_FGn_SECTo_PH(ctrl_no, frame_id, section)),
drivers/gpu/drm/kmb/kmb_dsi.c
429
frame_id) + (section / 2) * 4;
drivers/gpu/drm/kmb/kmb_dsi.c
430
kmb_write_bits_mipi(kmb_dsi, reg_adr, (section % 2) * 16, 16,
drivers/gpu/drm/kmb/kmb_dsi.c
437
reg_adr = MIPI_TXm_HS_FGn_SECTo_LINE_CFG(ctrl_no, frame_id, section);
drivers/gpu/drm/kmb/kmb_dsi.c
443
u8 frame_id, u8 section,
drivers/gpu/drm/kmb/kmb_dsi.c
476
mipi_tx_fg_section_cfg_regs(kmb_dsi, frame_id, section,
drivers/gpu/drm/panthor/panthor_fw.c
1255
struct panthor_fw_section *section;
drivers/gpu/drm/panthor/panthor_fw.c
1267
list_for_each_entry(section, &ptdev->fw->sections, node)
drivers/gpu/drm/panthor/panthor_fw.c
1268
panthor_kernel_bo_destroy(section->mem);
drivers/gpu/drm/panthor/panthor_fw.c
445
struct panthor_fw_section *section)
drivers/gpu/drm/panthor/panthor_fw.c
447
bool was_mapped = !!section->mem->kmap;
drivers/gpu/drm/panthor/panthor_fw.c
450
if (!section->data.size &&
drivers/gpu/drm/panthor/panthor_fw.c
451
!(section->flags & CSF_FW_BINARY_IFACE_ENTRY_ZERO))
drivers/gpu/drm/panthor/panthor_fw.c
454
ret = panthor_kernel_bo_vmap(section->mem);
drivers/gpu/drm/panthor/panthor_fw.c
458
memcpy(section->mem->kmap, section->data.buf, section->data.size);
drivers/gpu/drm/panthor/panthor_fw.c
459
if (section->flags & CSF_FW_BINARY_IFACE_ENTRY_ZERO) {
drivers/gpu/drm/panthor/panthor_fw.c
460
memset(section->mem->kmap + section->data.size, 0,
drivers/gpu/drm/panthor/panthor_fw.c
461
panthor_kernel_bo_size(section->mem) - section->data.size);
drivers/gpu/drm/panthor/panthor_fw.c
465
panthor_kernel_bo_vunmap(section->mem);
drivers/gpu/drm/panthor/panthor_fw.c
542
struct panthor_fw_section *section;
drivers/gpu/drm/panthor/panthor_fw.c
596
section = drmm_kzalloc(&ptdev->base, sizeof(*section), GFP_KERNEL);
drivers/gpu/drm/panthor/panthor_fw.c
597
if (!section)
drivers/gpu/drm/panthor/panthor_fw.c
600
list_add_tail(&section->node, &ptdev->fw->sections);
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
604
if (section->data.size > 0) {
drivers/gpu/drm/panthor/panthor_fw.c
605
void *data = drmm_kmalloc(&ptdev->base, section->data.size, GFP_KERNEL);
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
611
section->data.buf = data;
drivers/gpu/drm/panthor/panthor_fw.c
622
section->name = name;
drivers/gpu/drm/panthor/panthor_fw.c
649
section->mem = panthor_kernel_bo_create(ptdev, panthor_fw_vm(ptdev),
drivers/gpu/drm/panthor/panthor_fw.c
653
if (IS_ERR(section->mem))
drivers/gpu/drm/panthor/panthor_fw.c
654
return PTR_ERR(section->mem);
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
659
if (section->flags & CSF_FW_BINARY_IFACE_ENTRY_SHARED) {
drivers/gpu/drm/panthor/panthor_fw.c
660
ret = panthor_kernel_bo_vmap(section->mem);
drivers/gpu/drm/panthor/panthor_fw.c
665
panthor_fw_init_section_mem(ptdev, section);
drivers/gpu/drm/panthor/panthor_fw.c
667
bo = to_panthor_bo(section->mem->obj);
drivers/gpu/drm/panthor/panthor_fw.c
676
ptdev->fw->shared_section = section;
drivers/gpu/drm/panthor/panthor_fw.c
723
struct panthor_fw_section *section;
drivers/gpu/drm/panthor/panthor_fw.c
725
list_for_each_entry(section, &ptdev->fw->sections, node) {
drivers/gpu/drm/panthor/panthor_fw.c
728
if (!full_reload && !(section->flags & CSF_FW_BINARY_IFACE_ENTRY_WR))
drivers/gpu/drm/panthor/panthor_fw.c
731
panthor_fw_init_section_mem(ptdev, section);
drivers/gpu/drm/panthor/panthor_fw.c
732
sgt = drm_gem_shmem_get_pages_sgt(&to_panthor_bo(section->mem->obj)->base);
drivers/gpu/drm/radeon/cik.c
6681
for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/radeon/cik.c
6682
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/radeon/cik.c
6717
for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/radeon/cik.c
6718
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/radeon/clearstate_defs.h
40
const struct cs_extent_def *section;
drivers/gpu/drm/radeon/evergreen.c
4245
for (i = 0; cs_data[i].section != NULL; i++) {
drivers/gpu/drm/radeon/evergreen.c
4246
for (j = 0; cs_data[i].section[j].extent != NULL; j++) {
drivers/gpu/drm/radeon/evergreen.c
4248
dws += cs_data[i].section[j].reg_count;
drivers/gpu/drm/radeon/evergreen.c
4302
for (i = 0; cs_data[i].section != NULL; i++) {
drivers/gpu/drm/radeon/evergreen.c
4303
for (j = 0; cs_data[i].section[j].extent != NULL; j++) {
drivers/gpu/drm/radeon/evergreen.c
4304
reg_num = cs_data[i].section[j].reg_count;
drivers/gpu/drm/radeon/evergreen.c
4309
data = (cs_data[i].section[j].reg_index * 4) & 0xffffffff;
drivers/gpu/drm/radeon/evergreen.c
4318
data = cs_data[i].section[j].extent[k];
drivers/gpu/drm/radeon/si.c
5677
for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/radeon/si.c
5678
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/gpu/drm/radeon/si.c
5713
for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) {
drivers/gpu/drm/radeon/si.c
5714
for (ext = sect->section; ext->extent != NULL; ++ext) {
drivers/infiniband/hw/hfi1/mad.c
2198
u8 section = (am & 0x00ff0000) >> 16;
drivers/infiniband/hw/hfi1/mad.c
2207
switch (section) {
drivers/infiniband/hw/hfi1/mad.c
2240
u8 section = (am & 0x00ff0000) >> 16;
drivers/infiniband/hw/hfi1/mad.c
2249
switch (section) {
drivers/md/dm-integrity.c
1007
rw_section_mac(ic, section, true);
drivers/md/dm-integrity.c
1009
req = ic->sk_requests[section];
drivers/md/dm-integrity.c
1015
req->src = source_sg[section];
drivers/md/dm-integrity.c
1016
req->dst = target_sg[section];
drivers/md/dm-integrity.c
1021
section++;
drivers/md/dm-integrity.c
1029
static void encrypt_journal(struct dm_integrity_c *ic, bool encrypt, unsigned int section,
drivers/md/dm-integrity.c
1033
return xor_journal(ic, encrypt, section, n_sections, comp);
drivers/md/dm-integrity.c
1035
return crypt_journal(ic, encrypt, section, n_sections, comp);
drivers/md/dm-integrity.c
1095
unsigned int section, unsigned int n_sections,
drivers/md/dm-integrity.c
1100
sector = section * ic->journal_section_sectors;
drivers/md/dm-integrity.c
1169
static void copy_from_journal(struct dm_integrity_c *ic, unsigned int section, unsigned int offset,
drivers/md/dm-integrity.c
1184
sector = section * ic->journal_section_sectors + JOURNAL_BLOCK_SECTORS + offset;
drivers/md/dm-integrity.c
713
static void access_journal_check(struct dm_integrity_c *ic, unsigned int section, unsigned int offset,
drivers/md/dm-integrity.c
719
if (unlikely(section >= ic->journal_sections) ||
drivers/md/dm-integrity.c
722
function, section, offset, ic->journal_sections, limit);
drivers/md/dm-integrity.c
728
static void page_list_location(struct dm_integrity_c *ic, unsigned int section, unsigned int offset,
drivers/md/dm-integrity.c
733
access_journal_check(ic, section, offset, false, "page_list_location");
drivers/md/dm-integrity.c
735
sector = section * ic->journal_section_sectors + offset;
drivers/md/dm-integrity.c
742
unsigned int section, unsigned int offset, unsigned int *n_sectors)
drivers/md/dm-integrity.c
747
page_list_location(ic, section, offset, &pl_index, &pl_offset);
drivers/md/dm-integrity.c
757
static struct journal_sector *access_journal(struct dm_integrity_c *ic, unsigned int section, unsigned int offset)
drivers/md/dm-integrity.c
759
return access_page_list(ic, ic->journal, section, offset, NULL);
drivers/md/dm-integrity.c
762
static struct journal_entry *access_journal_entry(struct dm_integrity_c *ic, unsigned int section, unsigned int n)
drivers/md/dm-integrity.c
767
access_journal_check(ic, section, n, true, "access_journal_entry");
drivers/md/dm-integrity.c
772
js = access_journal(ic, section, rel_sector);
drivers/md/dm-integrity.c
776
static struct journal_sector *access_journal_data(struct dm_integrity_c *ic, unsigned int section, unsigned int n)
drivers/md/dm-integrity.c
782
access_journal_check(ic, section, n, false, "access_journal_data");
drivers/md/dm-integrity.c
784
return access_journal(ic, section, n);
drivers/md/dm-integrity.c
787
static void section_mac(struct dm_integrity_c *ic, unsigned int section, __u8 result[JOURNAL_MAC_SIZE])
drivers/md/dm-integrity.c
810
section_le = cpu_to_le64(section);
drivers/md/dm-integrity.c
819
struct journal_entry *je = access_journal_entry(ic, section, j);
drivers/md/dm-integrity.c
857
static void rw_section_mac(struct dm_integrity_c *ic, unsigned int section, bool wr)
drivers/md/dm-integrity.c
865
section_mac(ic, section, result);
drivers/md/dm-integrity.c
868
struct journal_sector *js = access_journal(ic, section, j);
drivers/md/dm-integrity.c
890
static void xor_journal(struct dm_integrity_c *ic, bool encrypt, unsigned int section,
drivers/md/dm-integrity.c
906
page_list_location(ic, section, 0, &pl_index, &pl_offset);
drivers/md/dm-integrity.c
923
rw_section_mac(ic, section, true);
drivers/md/dm-integrity.c
924
section++;
drivers/md/dm-integrity.c
928
page_list_location(ic, section, 0, &section_index, &dummy);
drivers/md/dm-integrity.c
985
static void crypt_journal(struct dm_integrity_c *ic, bool encrypt, unsigned int section,
drivers/media/test-drivers/vidtv/vidtv_psi.c
1125
u16 vidtv_psi_pmt_get_pid(struct vidtv_psi_table_pmt *section,
drivers/media/test-drivers/vidtv/vidtv_psi.c
1136
if (program->service_id == section->header.id)
drivers/media/test-drivers/vidtv/vidtv_psi.h
493
u16 vidtv_psi_pmt_get_pid(struct vidtv_psi_table_pmt *section,
drivers/mtd/devices/docg3.c
56
static int docg3_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/devices/docg3.c
59
if (section)
drivers/mtd/devices/docg3.c
69
static int docg3_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/devices/docg3.c
72
if (section > 1)
drivers/mtd/devices/docg3.c
76
if (!section) {
drivers/mtd/mtdchar.c
447
int i, section = 0, ret;
drivers/mtd/mtdchar.c
458
ret = mtd_ooblayout_ecc(mtd, section++, &oobregion);
drivers/mtd/mtdchar.c
494
int i, section = 0, ret;
drivers/mtd/mtdchar.c
505
ret = mtd_ooblayout_ecc(mtd, section++, &oobregion);
drivers/mtd/mtdcore.c
1842
int mtd_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/mtdcore.c
1849
if (!master || section < 0)
drivers/mtd/mtdcore.c
1855
return master->ooblayout->ecc(master, section, oobecc);
drivers/mtd/mtdcore.c
1876
int mtd_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/mtdcore.c
1883
if (!master || section < 0)
drivers/mtd/mtdcore.c
1889
return master->ooblayout->free(master, section, oobfree);
drivers/mtd/mtdcore.c
1913
int section,
drivers/mtd/mtdcore.c
1916
int pos = 0, ret, section = 0;
drivers/mtd/mtdcore.c
1921
ret = iter(mtd, section, oobregion);
drivers/mtd/mtdcore.c
1929
section++;
drivers/mtd/mtdcore.c
1938
*sectionp = section;
drivers/mtd/mtdcore.c
1957
int *section,
drivers/mtd/mtdcore.c
1960
return mtd_ooblayout_find_region(mtd, eccbyte, section, oobregion,
drivers/mtd/mtdcore.c
1982
int section,
drivers/mtd/mtdcore.c
1986
int section, ret;
drivers/mtd/mtdcore.c
1988
ret = mtd_ooblayout_find_region(mtd, start, &section,
drivers/mtd/mtdcore.c
2002
ret = iter(mtd, ++section, &oobregion);
drivers/mtd/mtdcore.c
2025
int section,
drivers/mtd/mtdcore.c
2029
int section, ret;
drivers/mtd/mtdcore.c
2031
ret = mtd_ooblayout_find_region(mtd, start, &section,
drivers/mtd/mtdcore.c
2045
ret = iter(mtd, ++section, &oobregion);
drivers/mtd/mtdcore.c
2062
int section,
drivers/mtd/mtdcore.c
2066
int section = 0, ret, nbytes = 0;
drivers/mtd/mtdcore.c
2069
ret = iter(mtd, section++, &oobregion);
drivers/mtd/mtdcore.c
388
int (*iter)(struct mtd_info *, int section,
drivers/mtd/mtdcore.c
392
int section;
drivers/mtd/mtdcore.c
394
for (section = 0;; section++) {
drivers/mtd/mtdcore.c
398
err = iter(mtd, section, &region);
drivers/mtd/mtdcore.c
406
seq_printf(s, "%-3d %4u %4u\n", section, region.offset,
drivers/mtd/nand/ecc-mxic.c
134
static int mxic_ecc_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/ecc-mxic.c
140
if (section < 0 || section >= ctx->steps)
drivers/mtd/nand/ecc-mxic.c
143
oobregion->offset = (section * ctx->oob_step_sz) + ctx->meta_sz;
drivers/mtd/nand/ecc-mxic.c
149
static int mxic_ecc_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/ecc-mxic.c
155
if (section < 0 || section >= ctx->steps)
drivers/mtd/nand/ecc-mxic.c
158
if (!section) {
drivers/mtd/nand/ecc-mxic.c
162
oobregion->offset = section * ctx->oob_step_sz;
drivers/mtd/nand/ecc-realtek.c
111
static int rtl_ecc_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/ecc-realtek.c
117
if (section < 0 || section >= ctx->steps)
drivers/mtd/nand/ecc-realtek.c
120
oobregion->offset = ctx->steps * RTL_ECC_FREE_SIZE + section * ctx->parity_size;
drivers/mtd/nand/ecc-realtek.c
126
static int rtl_ecc_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/ecc-realtek.c
133
if (section < 0 || section >= ctx->steps)
drivers/mtd/nand/ecc-realtek.c
137
bbm = section ? 0 : 2;
drivers/mtd/nand/ecc-realtek.c
138
oobregion->offset = section * RTL_ECC_FREE_SIZE + bbm;
drivers/mtd/nand/ecc.c
163
static int nand_ooblayout_ecc_sp(struct mtd_info *mtd, int section,
drivers/mtd/nand/ecc.c
169
if (section > 1)
drivers/mtd/nand/ecc.c
172
if (!section) {
drivers/mtd/nand/ecc.c
189
static int nand_ooblayout_free_sp(struct mtd_info *mtd, int section,
drivers/mtd/nand/ecc.c
192
if (section > 1)
drivers/mtd/nand/ecc.c
196
if (section)
drivers/mtd/nand/ecc.c
203
if (!section)
drivers/mtd/nand/ecc.c
223
static int nand_ooblayout_ecc_lp(struct mtd_info *mtd, int section,
drivers/mtd/nand/ecc.c
229
if (section || !total_ecc_bytes)
drivers/mtd/nand/ecc.c
238
static int nand_ooblayout_free_lp(struct mtd_info *mtd, int section,
drivers/mtd/nand/ecc.c
244
if (section)
drivers/mtd/nand/ecc.c
268
static int nand_ooblayout_ecc_lp_hamming(struct mtd_info *mtd, int section,
drivers/mtd/nand/ecc.c
274
if (section)
drivers/mtd/nand/ecc.c
295
static int nand_ooblayout_free_lp_hamming(struct mtd_info *mtd, int section,
drivers/mtd/nand/ecc.c
302
if (section < 0 || section > 1)
drivers/mtd/nand/ecc.c
316
if (section == 0) {
drivers/mtd/nand/onenand/onenand_base.c
102
static int onenand_ooblayout_128_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/onenand/onenand_base.c
105
if (section > 7)
drivers/mtd/nand/onenand/onenand_base.c
108
oobregion->offset = (section * 16) + 7;
drivers/mtd/nand/onenand/onenand_base.c
114
static int onenand_ooblayout_128_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/onenand/onenand_base.c
117
if (section >= 8)
drivers/mtd/nand/onenand/onenand_base.c
124
oobregion->offset = (section * 16) + 2;
drivers/mtd/nand/onenand/onenand_base.c
138
static int onenand_ooblayout_32_64_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/onenand/onenand_base.c
141
if (section > 3)
drivers/mtd/nand/onenand/onenand_base.c
144
oobregion->offset = (section * 16) + 8;
drivers/mtd/nand/onenand/onenand_base.c
150
static int onenand_ooblayout_32_64_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/onenand/onenand_base.c
155
if (section >= sections)
drivers/mtd/nand/onenand/onenand_base.c
158
if (section & 1) {
drivers/mtd/nand/onenand/onenand_base.c
159
oobregion->offset = ((section - 1) * 16) + 14;
drivers/mtd/nand/onenand/onenand_base.c
162
oobregion->offset = (section * 16) + 2;
drivers/mtd/nand/onenand/onenand_base.c
66
static int flexonenand_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/onenand/onenand_base.c
69
if (section > 7)
drivers/mtd/nand/onenand/onenand_base.c
72
oobregion->offset = (section * 16) + 6;
drivers/mtd/nand/onenand/onenand_base.c
78
static int flexonenand_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/onenand/onenand_base.c
81
if (section > 7)
drivers/mtd/nand/onenand/onenand_base.c
84
oobregion->offset = (section * 16) + 2;
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1287
static int brcmnand_hamming_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1296
if (section >= sectors)
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1299
oobregion->offset = (section * sas) + 6;
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1305
static int brcmnand_hamming_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1315
if (section > sectors)
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1318
next = (section * sas);
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1319
if (section < sectors)
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1322
if (section) {
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1323
oobregion->offset = ((section - 1) * sas) + 9;
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1345
static int brcmnand_bch_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1354
if (section >= sectors)
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1357
oobregion->offset = ((section + 1) * sas) - chip->ecc.bytes;
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1363
static int brcmnand_bch_ooblayout_free_lp(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1372
if (section >= sectors)
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1378
oobregion->offset = section * sas;
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1381
if (!section) {
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1389
static int brcmnand_bch_ooblayout_free_sp(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1397
if (section > 1 || sas - chip->ecc.bytes < 6 ||
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1398
(section && sas - chip->ecc.bytes == 6))
drivers/mtd/nand/raw/brcmnand/brcmnand.c
1401
if (!section) {
drivers/mtd/nand/raw/cadence-nand-controller.c
2331
static int cadence_nand_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/cadence-nand-controller.c
2337
if (section)
drivers/mtd/nand/raw/cadence-nand-controller.c
2347
static int cadence_nand_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/cadence-nand-controller.c
2353
if (section)
drivers/mtd/nand/raw/cafe_nand.c
450
static int cafe_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/cafe_nand.c
455
if (section)
drivers/mtd/nand/raw/cafe_nand.c
464
static int cafe_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/cafe_nand.c
469
if (section)
drivers/mtd/nand/raw/davinci_nand.c
449
static int hwecc4_ooblayout_small_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/davinci_nand.c
452
if (section > 2)
drivers/mtd/nand/raw/davinci_nand.c
455
if (!section) {
drivers/mtd/nand/raw/davinci_nand.c
458
} else if (section == 1) {
drivers/mtd/nand/raw/davinci_nand.c
469
static int hwecc4_ooblayout_small_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/davinci_nand.c
472
if (section > 1)
drivers/mtd/nand/raw/davinci_nand.c
475
if (!section) {
drivers/mtd/nand/raw/davinci_nand.c
491
static int hwecc4_ooblayout_large_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/davinci_nand.c
498
if (section >= nregions)
drivers/mtd/nand/raw/davinci_nand.c
501
oobregion->offset = (section * 16) + 6;
drivers/mtd/nand/raw/davinci_nand.c
507
static int hwecc4_ooblayout_large_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/davinci_nand.c
515
if (section >= (nregions - 1))
drivers/mtd/nand/raw/davinci_nand.c
518
oobregion->offset = ((section + 1) * 16);
drivers/mtd/nand/raw/denali.c
922
static int denali_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/denali.c
928
if (section > 0)
drivers/mtd/nand/raw/denali.c
937
static int denali_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/denali.c
943
if (section > 0)
drivers/mtd/nand/raw/diskonchip.c
810
static int doc200x_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/diskonchip.c
813
if (section)
drivers/mtd/nand/raw/diskonchip.c
822
static int doc200x_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/diskonchip.c
825
if (section > 1)
drivers/mtd/nand/raw/diskonchip.c
840
if (!section) {
drivers/mtd/nand/raw/fsl_elbc_nand.c
101
oobregion->offset = (16 * section) -
drivers/mtd/nand/raw/fsl_elbc_nand.c
103
if (section < chip->ecc.steps)
drivers/mtd/nand/raw/fsl_elbc_nand.c
68
static int fsl_elbc_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/fsl_elbc_nand.c
74
if (section >= chip->ecc.steps)
drivers/mtd/nand/raw/fsl_elbc_nand.c
77
oobregion->offset = (16 * section) + 6;
drivers/mtd/nand/raw/fsl_elbc_nand.c
86
static int fsl_elbc_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/fsl_elbc_nand.c
92
if (section > chip->ecc.steps)
drivers/mtd/nand/raw/fsl_elbc_nand.c
95
if (!section) {
drivers/mtd/nand/raw/fsl_ifc_nand.c
103
if (section > 1)
drivers/mtd/nand/raw/fsl_ifc_nand.c
108
if (!section) {
drivers/mtd/nand/raw/fsl_ifc_nand.c
119
if (!section) {
drivers/mtd/nand/raw/fsl_ifc_nand.c
84
static int fsl_ifc_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/fsl_ifc_nand.c
89
if (section)
drivers/mtd/nand/raw/fsl_ifc_nand.c
98
static int fsl_ifc_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/fsmc_nand.c
167
static int fsmc_ecc1_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/fsmc_nand.c
172
if (section >= chip->ecc.steps)
drivers/mtd/nand/raw/fsmc_nand.c
175
oobregion->offset = (section * 16) + 2;
drivers/mtd/nand/raw/fsmc_nand.c
181
static int fsmc_ecc1_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/fsmc_nand.c
186
if (section >= chip->ecc.steps)
drivers/mtd/nand/raw/fsmc_nand.c
189
oobregion->offset = (section * 16) + 8;
drivers/mtd/nand/raw/fsmc_nand.c
191
if (section < chip->ecc.steps - 1)
drivers/mtd/nand/raw/fsmc_nand.c
210
static int fsmc_ecc4_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/fsmc_nand.c
215
if (section >= chip->ecc.steps)
drivers/mtd/nand/raw/fsmc_nand.c
220
if (!section && mtd->writesize <= 512)
drivers/mtd/nand/raw/fsmc_nand.c
223
oobregion->offset = (section * 16) + 2;
drivers/mtd/nand/raw/fsmc_nand.c
228
static int fsmc_ecc4_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/fsmc_nand.c
233
if (section >= chip->ecc.steps)
drivers/mtd/nand/raw/fsmc_nand.c
236
oobregion->offset = (section * 16) + 15;
drivers/mtd/nand/raw/fsmc_nand.c
238
if (section < chip->ecc.steps - 1)
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
1091
static int gpmi_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
1098
if (section)
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
1107
static int gpmi_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
1114
if (section)
drivers/mtd/nand/raw/hisi504_nand.c
612
static int hisi_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/hisi504_nand.c
619
static int hisi_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/hisi504_nand.c
622
if (section)
drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c
106
static int jz4725b_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c
112
if (section || !ecc->total)
drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c
121
static int jz4725b_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c
127
if (section)
drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c
71
static int qi_lb60_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c
77
if (section || !ecc->total)
drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c
86
static int qi_lb60_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c
92
if (section)
drivers/mtd/nand/raw/intel-nand-controller.c
236
static int ebu_nand_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/intel-nand-controller.c
241
if (section)
drivers/mtd/nand/raw/intel-nand-controller.c
250
static int ebu_nand_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/intel-nand-controller.c
255
if (section)
drivers/mtd/nand/raw/lpc32xx_mlc.c
129
static int lpc32xx_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/lpc32xx_mlc.c
134
if (section >= nand_chip->ecc.steps)
drivers/mtd/nand/raw/lpc32xx_mlc.c
137
oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes;
drivers/mtd/nand/raw/lpc32xx_mlc.c
143
static int lpc32xx_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/lpc32xx_mlc.c
148
if (section >= nand_chip->ecc.steps)
drivers/mtd/nand/raw/lpc32xx_mlc.c
151
oobregion->offset = 16 * section;
drivers/mtd/nand/raw/lpc32xx_slc.c
137
static int lpc32xx_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/lpc32xx_slc.c
140
if (section)
drivers/mtd/nand/raw/lpc32xx_slc.c
149
static int lpc32xx_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/lpc32xx_slc.c
152
if (section > 1)
drivers/mtd/nand/raw/lpc32xx_slc.c
155
if (!section) {
drivers/mtd/nand/raw/marvell_nand.c
2202
static int marvell_nand_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/marvell_nand.c
2208
if (section)
drivers/mtd/nand/raw/marvell_nand.c
2218
static int marvell_nand_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/marvell_nand.c
2224
if (section)
drivers/mtd/nand/raw/meson_nand.c
1096
static int meson_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/meson_nand.c
1101
if (section >= nand->ecc.steps)
drivers/mtd/nand/raw/meson_nand.c
1104
oobregion->offset = 2 + (section * (2 + nand->ecc.bytes));
drivers/mtd/nand/raw/meson_nand.c
1110
static int meson_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/meson_nand.c
1115
if (section >= nand->ecc.steps)
drivers/mtd/nand/raw/meson_nand.c
1118
oobregion->offset = section * (2 + nand->ecc.bytes);
drivers/mtd/nand/raw/mtk_nand.c
1121
static int mtk_nfc_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/mtk_nand.c
1131
if (section >= eccsteps)
drivers/mtd/nand/raw/mtk_nand.c
1135
oob_region->offset = section * fdm->reg_size + fdm->ecc_size;
drivers/mtd/nand/raw/mtk_nand.c
1140
static int mtk_nfc_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/mtk_nand.c
1147
if (section)
drivers/mtd/nand/raw/mxc_nand.c
888
static int mxc_v1_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/mxc_nand.c
893
if (section >= nand_chip->ecc.steps)
drivers/mtd/nand/raw/mxc_nand.c
896
oobregion->offset = (section * 16) + 6;
drivers/mtd/nand/raw/mxc_nand.c
902
static int mxc_v1_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/mxc_nand.c
907
if (section > nand_chip->ecc.steps)
drivers/mtd/nand/raw/mxc_nand.c
910
if (!section) {
drivers/mtd/nand/raw/mxc_nand.c
919
oobregion->offset = ((section - 1) * 16) + MXC_V1_ECCBYTES + 6;
drivers/mtd/nand/raw/mxc_nand.c
920
if (section < nand_chip->ecc.steps)
drivers/mtd/nand/raw/mxc_nand.c
921
oobregion->length = (section * 16) + 6 -
drivers/mtd/nand/raw/mxc_nand.c
935
static int mxc_v2_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/mxc_nand.c
941
if (section >= nand_chip->ecc.steps)
drivers/mtd/nand/raw/mxc_nand.c
944
oobregion->offset = (section * stepsize) + 7;
drivers/mtd/nand/raw/mxc_nand.c
950
static int mxc_v2_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/mxc_nand.c
956
if (section >= nand_chip->ecc.steps)
drivers/mtd/nand/raw/mxc_nand.c
959
if (!section) {
drivers/mtd/nand/raw/mxc_nand.c
968
oobregion->offset = section * stepsize;
drivers/mtd/nand/raw/nand_base.c
2999
int index, section = 0;
drivers/mtd/nand/raw/nand_base.c
3028
ret = mtd_ooblayout_find_eccregion(mtd, index, &section, &oobregion);
drivers/mtd/nand/raw/nand_micron.c
101
int section,
drivers/mtd/nand/raw/nand_micron.c
104
if (section >= 4)
drivers/mtd/nand/raw/nand_micron.c
107
oobregion->offset = (section * 16) + 8;
drivers/mtd/nand/raw/nand_micron.c
114
int section,
drivers/mtd/nand/raw/nand_micron.c
117
if (section >= 4)
drivers/mtd/nand/raw/nand_micron.c
120
oobregion->offset = (section * 16) + 2;
drivers/mtd/nand/raw/nand_micron.c
132
int section,
drivers/mtd/nand/raw/nand_micron.c
137
if (section)
drivers/mtd/nand/raw/nand_micron.c
147
int section,
drivers/mtd/nand/raw/nand_micron.c
152
if (section)
drivers/mtd/nand/raw/nuvoton-ma35d1-nand-controller.c
113
static int ma35_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/nuvoton-ma35d1-nand-controller.c
118
if (section)
drivers/mtd/nand/raw/nuvoton-ma35d1-nand-controller.c
127
static int ma35_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/nuvoton-ma35d1-nand-controller.c
132
if (section)
drivers/mtd/nand/raw/omap2.c
1740
static int omap_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/omap2.c
1751
if (section)
drivers/mtd/nand/raw/omap2.c
1760
static int omap_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/omap2.c
1771
if (section)
drivers/mtd/nand/raw/omap2.c
1789
static int omap_sw_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/omap2.c
1797
if (section >= nsteps)
drivers/mtd/nand/raw/omap2.c
1804
oobregion->offset = off + (section * (ecc_bytes + 1));
drivers/mtd/nand/raw/omap2.c
1810
static int omap_sw_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/omap2.c
1818
if (section)
drivers/mtd/nand/raw/pl35x-nand-controller.c
157
static int pl35x_ecc_ooblayout16_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/pl35x-nand-controller.c
162
if (section >= chip->ecc.steps)
drivers/mtd/nand/raw/pl35x-nand-controller.c
165
oobregion->offset = (section * chip->ecc.bytes);
drivers/mtd/nand/raw/pl35x-nand-controller.c
171
static int pl35x_ecc_ooblayout16_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/pl35x-nand-controller.c
176
if (section >= chip->ecc.steps)
drivers/mtd/nand/raw/pl35x-nand-controller.c
179
oobregion->offset = (section * chip->ecc.bytes) + 8;
drivers/mtd/nand/raw/qcom_nandc.c
1322
static int qcom_nand_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/qcom_nandc.c
1329
if (section > 1)
drivers/mtd/nand/raw/qcom_nandc.c
1332
if (!section) {
drivers/mtd/nand/raw/qcom_nandc.c
1344
static int qcom_nand_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/qcom_nandc.c
1351
if (section)
drivers/mtd/nand/raw/renesas-nand-controller.c
978
static int rnandc_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/renesas-nand-controller.c
984
if (section)
drivers/mtd/nand/raw/renesas-nand-controller.c
993
static int rnandc_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/renesas-nand-controller.c
999
if (section)
drivers/mtd/nand/raw/rockchip-nand-controller.c
950
static int rk_nfc_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/rockchip-nand-controller.c
956
if (section)
drivers/mtd/nand/raw/rockchip-nand-controller.c
965
static int rk_nfc_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/rockchip-nand-controller.c
971
if (section)
drivers/mtd/nand/raw/sh_flctl.c
31
static int flctl_4secc_ooblayout_sp_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/sh_flctl.c
36
if (section)
drivers/mtd/nand/raw/sh_flctl.c
45
static int flctl_4secc_ooblayout_sp_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/sh_flctl.c
48
if (section)
drivers/mtd/nand/raw/sh_flctl.c
62
static int flctl_4secc_ooblayout_lp_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/sh_flctl.c
67
if (section >= chip->ecc.steps)
drivers/mtd/nand/raw/sh_flctl.c
70
oobregion->offset = (section * 16) + 6;
drivers/mtd/nand/raw/sh_flctl.c
76
static int flctl_4secc_ooblayout_lp_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/sh_flctl.c
81
if (section >= chip->ecc.steps)
drivers/mtd/nand/raw/sh_flctl.c
84
oobregion->offset = section * 16;
drivers/mtd/nand/raw/sh_flctl.c
87
if (!section) {
drivers/mtd/nand/raw/sm_common.c
12
static int oob_sm_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/sm_common.c
15
if (section > 1)
drivers/mtd/nand/raw/sm_common.c
19
oobregion->offset = ((section + 1) * 8) - 3;
drivers/mtd/nand/raw/sm_common.c
24
static int oob_sm_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/sm_common.c
27
switch (section) {
drivers/mtd/nand/raw/sm_common.c
61
static int oob_sm_small_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/sm_common.c
64
if (section)
drivers/mtd/nand/raw/sm_common.c
73
static int oob_sm_small_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/sm_common.c
76
switch (section) {
drivers/mtd/nand/raw/stm32_fmc2_nand.c
1678
static int stm32_fmc2_nfc_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/stm32_fmc2_nand.c
1684
if (section)
drivers/mtd/nand/raw/stm32_fmc2_nand.c
1693
static int stm32_fmc2_nfc_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/stm32_fmc2_nand.c
1699
if (section)
drivers/mtd/nand/raw/sunxi_nand.c
1732
static int sunxi_nand_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/sunxi_nand.c
1738
if (section >= ecc->steps)
drivers/mtd/nand/raw/sunxi_nand.c
1741
oobregion->offset = section * (ecc->bytes + USER_DATA_SZ) + 4;
drivers/mtd/nand/raw/sunxi_nand.c
1747
static int sunxi_nand_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/sunxi_nand.c
1753
if (section > ecc->steps)
drivers/mtd/nand/raw/sunxi_nand.c
1761
if (!section && ecc->engine_type == NAND_ECC_ENGINE_TYPE_ON_HOST) {
drivers/mtd/nand/raw/sunxi_nand.c
1772
if (section == ecc->steps && ecc->engine_type == NAND_ECC_ENGINE_TYPE_ON_HOST)
drivers/mtd/nand/raw/sunxi_nand.c
1775
oobregion->offset = section * (ecc->bytes + USER_DATA_SZ);
drivers/mtd/nand/raw/sunxi_nand.c
1777
if (section < ecc->steps)
drivers/mtd/nand/raw/tegra_nand.c
203
static int tegra_nand_ooblayout_rs_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/tegra_nand.c
210
if (section > 0)
drivers/mtd/nand/raw/tegra_nand.c
219
static int tegra_nand_ooblayout_no_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/tegra_nand.c
230
static int tegra_nand_ooblayout_bch_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/raw/tegra_nand.c
237
if (section > 0)
drivers/mtd/nand/spi/alliancememory.c
47
static int am_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/alliancememory.c
62
static int am_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/alliancememory.c
67
if (section)
drivers/mtd/nand/spi/ato.c
30
static int ato25d1ga_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/ato.c
33
if (section > 3)
drivers/mtd/nand/spi/ato.c
36
region->offset = (16 * section) + 8;
drivers/mtd/nand/spi/ato.c
41
static int ato25d1ga_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/ato.c
44
if (section > 3)
drivers/mtd/nand/spi/ato.c
47
if (section) {
drivers/mtd/nand/spi/ato.c
48
region->offset = (16 * section);
drivers/mtd/nand/spi/core.c
319
static int spinand_noecc_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/core.c
325
static int spinand_noecc_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/core.c
328
if (section)
drivers/mtd/nand/spi/dosilicon.c
26
static int ds35xx_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/dosilicon.c
29
if (section > 3)
drivers/mtd/nand/spi/dosilicon.c
32
region->offset = 8 + (section * 16);
drivers/mtd/nand/spi/dosilicon.c
38
static int ds35xx_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/dosilicon.c
41
if (section > 3)
drivers/mtd/nand/spi/dosilicon.c
44
if (section == 0) {
drivers/mtd/nand/spi/dosilicon.c
49
region->offset = section * 16;
drivers/mtd/nand/spi/esmt.c
71
static int f50l1g41lb_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/esmt.c
76
if (section >= ESMT_OOB_SECTION_COUNT)
drivers/mtd/nand/spi/esmt.c
79
region->offset = section * ESMT_OOB_SECTION_SIZE(nand) +
drivers/mtd/nand/spi/esmt.c
86
static int f50l1g41lb_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/esmt.c
91
if (section >= ESMT_OOB_SECTION_COUNT)
drivers/mtd/nand/spi/esmt.c
98
region->offset = section * ESMT_OOB_SECTION_SIZE(nand) + 2;
drivers/mtd/nand/spi/fmsh.c
37
static int fm25s01a_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/fmsh.c
43
static int fm25s01a_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/fmsh.c
46
if (section)
drivers/mtd/nand/spi/fmsh.c
81
static int fm25s01bi3_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/fmsh.c
84
if (section)
drivers/mtd/nand/spi/fmsh.c
93
static int fm25s01bi3_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/fmsh.c
96
if (section > 3)
drivers/mtd/nand/spi/fmsh.c
99
region->offset = (16 * section) + 4;
drivers/mtd/nand/spi/foresee.c
33
static int f35sqa002g_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/foresee.c
39
static int f35sqa002g_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/foresee.c
42
if (section)
drivers/mtd/nand/spi/gigadevice.c
147
static int gd5fxgq4xa_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/gigadevice.c
150
if (section > 3)
drivers/mtd/nand/spi/gigadevice.c
153
region->offset = (16 * section) + 8;
drivers/mtd/nand/spi/gigadevice.c
159
static int gd5fxgq4xa_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/gigadevice.c
162
if (section > 3)
drivers/mtd/nand/spi/gigadevice.c
165
if (section) {
drivers/mtd/nand/spi/gigadevice.c
166
region->offset = 16 * section;
drivers/mtd/nand/spi/gigadevice.c
205
static int gd5fxgqx_variant2_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/gigadevice.c
208
if (section)
drivers/mtd/nand/spi/gigadevice.c
217
static int gd5fxgqx_variant2_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/gigadevice.c
220
if (section)
drivers/mtd/nand/spi/gigadevice.c
236
static int gd5fxgq4xc_ooblayout_256_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/gigadevice.c
239
if (section)
drivers/mtd/nand/spi/gigadevice.c
248
static int gd5fxgq4xc_ooblayout_256_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/gigadevice.c
251
if (section)
drivers/mtd/nand/spi/macronix.c
61
static int mx35lfxge4ab_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/macronix.c
67
static int mx35lfxge4ab_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/macronix.c
70
if (section)
drivers/mtd/nand/spi/micron.c
101
if (section >= spinand->base.memorg.pagesize /
drivers/mtd/nand/spi/micron.c
105
region->offset = (section * 16) + 8;
drivers/mtd/nand/spi/micron.c
111
static int micron_4_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/micron.c
116
if (section >= spinand->base.memorg.pagesize /
drivers/mtd/nand/spi/micron.c
120
if (section) {
drivers/mtd/nand/spi/micron.c
121
region->offset = 16 * section;
drivers/mtd/nand/spi/micron.c
66
static int micron_8_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/micron.c
69
if (section)
drivers/mtd/nand/spi/micron.c
78
static int micron_8_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/micron.c
81
if (section)
drivers/mtd/nand/spi/micron.c
96
static int micron_4_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/paragon.c
41
static int pn26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/paragon.c
44
if (section > 3)
drivers/mtd/nand/spi/paragon.c
47
region->offset = 6 + (15 * section); /* 4 BBM + 2 user bytes */
drivers/mtd/nand/spi/paragon.c
53
static int pn26g0xa_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/paragon.c
56
if (section > 4)
drivers/mtd/nand/spi/paragon.c
59
if (section == 4) {
drivers/mtd/nand/spi/paragon.c
63
region->offset = 4 + (15 * section);
drivers/mtd/nand/spi/skyhigh.c
35
static int skyhigh_spinand_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/skyhigh.c
42
static int skyhigh_spinand_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/skyhigh.c
45
if (section)
drivers/mtd/nand/spi/toshiba.c
41
static int tx58cxgxsxraix_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/toshiba.c
44
if (section > 0)
drivers/mtd/nand/spi/toshiba.c
53
static int tx58cxgxsxraix_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/toshiba.c
56
if (section > 0)
drivers/mtd/nand/spi/winbond.c
135
static int w25m02gv_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/winbond.c
138
if (section > 3)
drivers/mtd/nand/spi/winbond.c
141
region->offset = (16 * section) + 8;
drivers/mtd/nand/spi/winbond.c
147
static int w25m02gv_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/winbond.c
150
if (section > 3)
drivers/mtd/nand/spi/winbond.c
153
region->offset = (16 * section) + 2;
drivers/mtd/nand/spi/winbond.c
174
static int w25n01kv_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/winbond.c
177
if (section > 3)
drivers/mtd/nand/spi/winbond.c
180
region->offset = 64 + (8 * section);
drivers/mtd/nand/spi/winbond.c
186
static int w25n02kv_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/winbond.c
189
if (section > 3)
drivers/mtd/nand/spi/winbond.c
192
region->offset = 64 + (16 * section);
drivers/mtd/nand/spi/winbond.c
198
static int w25n02kv_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/winbond.c
201
if (section > 3)
drivers/mtd/nand/spi/winbond.c
204
region->offset = (16 * section) + 2;
drivers/mtd/nand/spi/winbond.c
220
static int w25n01jw_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/winbond.c
223
if (section > 3)
drivers/mtd/nand/spi/winbond.c
226
region->offset = (16 * section) + 12;
drivers/mtd/nand/spi/winbond.c
232
static int w25n01jw_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/winbond.c
235
if (section > 3)
drivers/mtd/nand/spi/winbond.c
238
region->offset = (16 * section);
drivers/mtd/nand/spi/winbond.c
242
if (!section) {
drivers/mtd/nand/spi/winbond.c
250
static int w35n01jw_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/winbond.c
253
if (section > 7)
drivers/mtd/nand/spi/winbond.c
256
region->offset = (16 * section) + 12;
drivers/mtd/nand/spi/winbond.c
262
static int w35n01jw_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/winbond.c
265
if (section > 7)
drivers/mtd/nand/spi/winbond.c
268
region->offset = 16 * section;
drivers/mtd/nand/spi/winbond.c
272
if (!section) {
drivers/mtd/nand/spi/xtx.c
106
static int xt26xxxd_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/xtx.c
109
if (section)
drivers/mtd/nand/spi/xtx.c
41
static int xt26g0xa_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/xtx.c
44
if (section)
drivers/mtd/nand/spi/xtx.c
53
static int xt26g0xa_ooblayout_free(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/xtx.c
56
if (section)
drivers/mtd/nand/spi/xtx.c
94
static int xt26xxxd_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/mtd/nand/spi/xtx.c
97
if (section)
drivers/mtd/parsers/sharpslpart.c
73
int section = 0;
drivers/mtd/parsers/sharpslpart.c
79
ret = mtd_ooblayout_free(mtd, section++, &oobfree);
drivers/net/ethernet/broadcom/bnx2.c
3660
const struct bnx2_fw_file_section *section,
drivers/net/ethernet/broadcom/bnx2.c
3663
u32 offset = be32_to_cpu(section->offset);
drivers/net/ethernet/broadcom/bnx2.c
3664
u32 len = be32_to_cpu(section->len);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
6047
u64 section;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
6061
section = ((u64)mapping) + offsetof(struct host_sp_status_block,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
6094
REG_WR(bp, reg_offset, U64_LO(section));
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
6095
REG_WR(bp, reg_offset + 4, U64_HI(section));
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
6097
REG_WR(bp, IGU_REG_ATTN_MSG_ADDR_L, U64_LO(section));
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
6098
REG_WR(bp, IGU_REG_ATTN_MSG_ADDR_H, U64_HI(section));
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
6101
section = ((u64)mapping) + offsetof(struct host_sp_status_block,
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
6108
sp_sb_data.host_sb_addr.lo = U64_LO(section);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
6109
sp_sb_data.host_sb_addr.hi = U64_HI(section);
drivers/net/ethernet/intel/i40e/i40e_common.c
4938
if (sec->section.type == SECTION_TYPE_MMIO ||
drivers/net/ethernet/intel/i40e/i40e_common.c
4939
sec->section.type == SECTION_TYPE_AQ ||
drivers/net/ethernet/intel/i40e/i40e_common.c
4940
sec->section.type == SECTION_TYPE_RB_AQ) {
drivers/net/ethernet/intel/i40e/i40e_common.c
4946
if (sec->section.type == SECTION_TYPE_RB_AQ ||
drivers/net/ethernet/intel/i40e/i40e_common.c
4947
sec->section.type == SECTION_TYPE_RB_MMIO) {
drivers/net/ethernet/intel/i40e/i40e_common.c
4989
if (sec->section.type == SECTION_TYPE_AQ) {
drivers/net/ethernet/intel/i40e/i40e_common.c
4998
sec->section.type = SECTION_TYPE_RB_AQ;
drivers/net/ethernet/intel/i40e/i40e_common.c
5002
if (sec->section.type != SECTION_TYPE_MMIO)
drivers/net/ethernet/intel/i40e/i40e_common.c
5005
section_size = sec->section.size +
drivers/net/ethernet/intel/i40e/i40e_common.c
5053
if (sec->section.type != SECTION_TYPE_RB_MMIO)
drivers/net/ethernet/intel/i40e/i40e_common.c
5056
section_size = sec->section.size +
drivers/net/ethernet/intel/i40e/i40e_ddp.c
151
sec->section.type = SECTION_TYPE_INFO;
drivers/net/ethernet/intel/i40e/i40e_ddp.c
152
sec->section.offset = sizeof(struct i40e_profile_section_header);
drivers/net/ethernet/intel/i40e/i40e_ddp.c
153
sec->section.size = sizeof(struct i40e_profile_info);
drivers/net/ethernet/intel/i40e/i40e_ddp.c
155
sec->section.offset);
drivers/net/ethernet/intel/i40e/i40e_ddp.c
191
sec->section.type = SECTION_TYPE_INFO;
drivers/net/ethernet/intel/i40e/i40e_ddp.c
192
sec->section.offset = sizeof(struct i40e_profile_section_header);
drivers/net/ethernet/intel/i40e/i40e_ddp.c
193
sec->section.size = sizeof(struct i40e_profile_info);
drivers/net/ethernet/intel/i40e/i40e_ddp.c
195
sec->section.offset);
drivers/net/ethernet/intel/i40e/i40e_type.h
1363
} section;
drivers/net/ethernet/intel/ice/ice_ddp.c
1044
void **section)
drivers/net/ethernet/intel/ice/ice_ddp.c
1048
if (!section)
drivers/net/ethernet/intel/ice/ice_ddp.c
1058
*section = ice_pkg_buf_alloc_section(buf, type, size);
drivers/net/ethernet/intel/ice/ice_ddp.c
1059
if (!*section)
drivers/net/ethernet/intel/ice/ice_ddp.c
2392
const struct ice_buf_hdr *section;
drivers/net/ethernet/intel/ice/ice_ddp.c
2473
section = ice_pkg_val_buf(seg->buf_table.buf_array);
drivers/net/ethernet/intel/ice/ice_ddp.c
2474
if (!section || le32_to_cpu(section->section_entry[0].type) !=
drivers/net/ethernet/intel/ice/ice_ddp.c
2480
size = le16_to_cpu(section->section_entry[0].size);
drivers/net/ethernet/intel/ice/ice_ddp.c
2481
offset = le16_to_cpu(section->section_entry[0].offset);
drivers/net/ethernet/intel/ice/ice_ddp.c
2496
memcpy(new_topo, (u8 *)section + offset, size);
drivers/net/ethernet/intel/ice/ice_ddp.c
295
void *(*handler)(u32 sect_type, void *section,
drivers/net/ethernet/intel/ice/ice_ddp.c
343
static void *ice_sw_fv_handler(u32 sect_type, void *section, u32 index,
drivers/net/ethernet/intel/ice/ice_ddp.c
346
struct ice_sw_fv_section *fv_section = section;
drivers/net/ethernet/intel/ice/ice_ddp.c
348
if (!section || sect_type != ICE_SID_FLD_VEC_SW)
drivers/net/ethernet/intel/ice/ice_ddp.c
465
static void *ice_marker_ptype_tcam_handler(u32 sect_type, void *section,
drivers/net/ethernet/intel/ice/ice_ddp.c
479
marker_ptype = section;
drivers/net/ethernet/intel/ice/ice_ddp.c
546
void *section, u32 index, u32 *offset)
drivers/net/ethernet/intel/ice/ice_ddp.c
550
if (!section)
drivers/net/ethernet/intel/ice/ice_ddp.c
559
labels = section;
drivers/net/ethernet/intel/ice/ice_ddp.c
606
static void *ice_boost_tcam_handler(u32 sect_type, void *section, u32 index,
drivers/net/ethernet/intel/ice/ice_ddp.c
611
if (!section)
drivers/net/ethernet/intel/ice/ice_ddp.c
623
boost = section;
drivers/net/ethernet/intel/ice/ice_ddp.h
450
void *(*handler)(u32 sect_type, void *section, u32 index, u32 *offset);
drivers/net/ethernet/intel/ice/ice_ddp.h
468
void *(*handler)(u32 sect_type, void *section,
drivers/net/ethernet/intel/ice/ice_flex_pipe.h
67
void **section);
drivers/net/ethernet/intel/ice/ice_parser.c
20
static void *ice_parser_sect_item_get(u32 sect_type, void *section,
drivers/net/ethernet/intel/ice/ice_parser.c
27
if (!section)
drivers/net/ethernet/intel/ice/ice_parser.c
72
hdr = section;
drivers/net/ethernet/intel/ice/ice_parser.c
76
return section + data_off + index * size;
drivers/net/ethernet/meta/fbnic/fbnic_csr.c
6
#define FBNIC_BOUNDS(section) { \
drivers/net/ethernet/meta/fbnic/fbnic_csr.c
7
.start = FBNIC_CSR_START_##section, \
drivers/net/ethernet/meta/fbnic/fbnic_csr.c
8
.end = FBNIC_CSR_END_##section + 1, \
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
564
static struct uni_table_desc *nx_get_table_desc(const u8 *unirom, int section)
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
576
if (tab_type == section)
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
762
u32 section, u32 idx_offset)
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
770
tab_desc = nx_get_table_desc(unirom, section);
drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c
744
struct uni_table_desc *qlcnic_get_table_desc(const u8 *unirom, int section)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c
756
if (tab_type == section)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c
938
u32 section, u32 idx_offset)
drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c
948
tab_desc = qlcnic_get_table_desc(unirom, section);
drivers/net/wireless/ath/wil6210/wil6210.h
1235
struct fw_map *wil_find_fw_mapping(const char *section);
drivers/net/wireless/ath/wil6210/wmi.c
250
struct fw_map *wil_find_fw_mapping(const char *section)
drivers/net/wireless/ath/wil6210/wmi.c
256
!strcmp(section, fw_mapping[i].name))
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c
105
const struct iwl_pnvm_section *section = (const void *)data;
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c
106
u32 data_len = tlv_len - sizeof(*section);
drivers/net/wireless/intel/iwlwifi/fw/pnvm.c
127
pnvm_data->chunks[pnvm_data->n_chunks].data = section->data;
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
1793
void iwl_nvm_fixups(u32 hw_id, unsigned int section, u8 *data,
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
1799
if (section == NVM_SECTION_TYPE_PHY_SKU &&
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h
162
void iwl_nvm_fixups(u32 hw_id, unsigned int section, u8 *data,
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
145
static int iwl_nvm_write_section(struct iwl_mvm *mvm, u16 section,
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
158
ret = iwl_nvm_write_chunk(mvm, section, offset,
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
179
static int iwl_nvm_read_section(struct iwl_mvm *mvm, u16 section,
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
199
ret = iwl_nvm_read_chunk(mvm, section, offset, length, data);
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
203
section, offset, length);
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
209
iwl_nvm_fixups(mvm->trans->info.hw_id, section, data, offset);
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
212
"NVM section %d read completed\n", section);
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
308
int ret, section;
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
323
for (section = 0; section < NVM_MAX_NUM_SECTIONS; section++) {
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
325
ret = iwl_nvm_read_section(mvm, section, nvm_buffer,
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
33
static int iwl_nvm_write_chunk(struct iwl_mvm *mvm, u16 section,
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
340
iwl_nvm_fixups(mvm->trans->info.hw_id, section, temp, ret);
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
342
mvm->nvm_sections[section].data = temp;
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
343
mvm->nvm_sections[section].length = ret;
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
346
switch (section) {
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
369
if (section == mvm->trans->mac_cfg->base->nvm_hw_section_num) {
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
39
.type = cpu_to_le16(section),
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
64
section, le16_to_cpu(nvm_resp->status));
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
72
static int iwl_nvm_read_chunk(struct iwl_mvm *mvm, u16 section,
drivers/net/wireless/intel/iwlwifi/mvm/nvm.c
78
.type = cpu_to_le16(section),
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c
659
const struct fw_desc *section)
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c
663
u32 offset, chunk_sz = min_t(u32, FH_MEM_TB_MAX_LENGTH, section->len);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c
680
for (offset = 0; offset < section->len; offset += chunk_sz) {
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c
684
copy_size = min_t(u32, chunk_sz, section->len - offset);
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c
685
dst_addr = section->offset + offset;
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c
695
memcpy(v_addr, (const u8 *)section->data + offset, copy_size);
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
1531
enum rate_section section)
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
1537
if (section == CCK) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
1544
} else if (section == OFDM) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
1552
} else if (section == HT_MCS0_MCS7) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
1560
} else if (section == HT_MCS8_MCS15) {
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
1570
"Invalid RateSection %d\n", section);
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
831
u8 section = _rtl92ee_get_rate_section_index(regaddr);
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
848
rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][section] = data;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
244
u8 band, path, txnum, section;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
249
for (section = 0;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
250
section < TX_PWR_BY_RATE_NUM_SECTION;
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
251
++section)
drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c
253
[band][path][txnum][section] = 0;
drivers/net/wireless/realtek/rtw89/fw.c
148
const struct rtw89_fw_hdr_section *section;
drivers/net/wireless/realtek/rtw89/fw.c
1613
struct rtw89_fw_hdr_section *section;
drivers/net/wireless/realtek/rtw89/fw.c
1624
section = &fw_hdr->sections[i];
drivers/net/wireless/realtek/rtw89/fw.c
1625
le32p_replace_bits(&section->w1, section_info->len_override,
drivers/net/wireless/realtek/rtw89/fw.c
1637
struct rtw89_fw_hdr_section_v1 *section;
drivers/net/wireless/realtek/rtw89/fw.c
1645
section = &fw_hdr->sections[sec_idx];
drivers/net/wireless/realtek/rtw89/fw.c
1651
fw_hdr->sections[dst_sec_idx] = *section;
drivers/net/wireless/realtek/rtw89/fw.c
1658
return (info->section_num - dst_sec_idx) * sizeof(*section);
drivers/net/wireless/realtek/rtw89/fw.c
1747
const u8 *section = info->addr;
drivers/net/wireless/realtek/rtw89/fw.c
1782
skb_put_data(skb, section, pkt_len);
drivers/net/wireless/realtek/rtw89/fw.c
1794
section += pkt_len;
drivers/net/wireless/realtek/rtw89/fw.c
187
section = &fw_hdr->sections[i];
drivers/net/wireless/realtek/rtw89/fw.c
189
le32_get_bits(section->w1, FWSECTION_HDR_W1_SECTIONTYPE);
drivers/net/wireless/realtek/rtw89/fw.c
190
section_info->len = le32_get_bits(section->w1, FWSECTION_HDR_W1_SEC_SIZE);
drivers/net/wireless/realtek/rtw89/fw.c
192
if (le32_get_bits(section->w1, FWSECTION_HDR_W1_CHECKSUM))
drivers/net/wireless/realtek/rtw89/fw.c
194
section_info->redl = le32_get_bits(section->w1, FWSECTION_HDR_W1_REDL);
drivers/net/wireless/realtek/rtw89/fw.c
196
le32_get_bits(section->w0, FWSECTION_HDR_W0_DL_ADDR) & 0x1fffffff;
drivers/net/wireless/realtek/rtw89/fw.c
201
le32_get_bits(section->w2, FWSECTION_HDR_W2_MSSC);
drivers/net/wireless/realtek/rtw89/fw.c
450
const struct rtw89_fw_hdr_section_v1 *section;
drivers/net/wireless/realtek/rtw89/fw.c
487
section = &fw_hdr->sections[i];
drivers/net/wireless/realtek/rtw89/fw.c
490
le32_get_bits(section->w1, FWSECTION_HDR_V1_W1_SECTIONTYPE);
drivers/net/wireless/realtek/rtw89/fw.c
492
le32_get_bits(section->w1, FWSECTION_HDR_V1_W1_SEC_SIZE);
drivers/net/wireless/realtek/rtw89/fw.c
493
if (le32_get_bits(section->w1, FWSECTION_HDR_V1_W1_CHECKSUM))
drivers/net/wireless/realtek/rtw89/fw.c
495
section_info->redl = le32_get_bits(section->w1, FWSECTION_HDR_V1_W1_REDL);
drivers/net/wireless/realtek/rtw89/fw.c
497
le32_get_bits(section->w0, FWSECTION_HDR_V1_W0_DL_ADDR);
drivers/net/wireless/realtek/rtw89/fw.c
502
le32_get_bits(section->w2, FWSECTION_HDR_V1_W2_MSSC);
drivers/scsi/mpi3mr/mpi/mpi30_cnfg.h
1678
u8 section;
drivers/scsi/qla2xxx/qla_nx.c
1506
qla82xx_get_table_desc(const u8 *unirom, int section)
drivers/scsi/qla2xxx/qla_nx.c
1520
if (tab_type == section)
drivers/scsi/qla2xxx/qla_nx.c
1529
u32 section, u32 idx_offset)
drivers/scsi/qla2xxx/qla_nx.c
1537
tab_desc = qla82xx_get_table_desc(unirom, section);
drivers/scsi/smartpqi/smartpqi_init.c
7816
void *section;
drivers/scsi/smartpqi/smartpqi_init.c
8108
firmware_features = section_info->section;
drivers/scsi/smartpqi/smartpqi_init.c
8207
struct pqi_config_table_section_header *section;
drivers/scsi/smartpqi/smartpqi_init.c
8234
section = (void *)config_table + section_offset;
drivers/scsi/smartpqi/smartpqi_init.c
8236
section_info.section = section;
drivers/scsi/smartpqi/smartpqi_init.c
8240
switch (get_unaligned_le16(&section->section_id)) {
drivers/scsi/smartpqi/smartpqi_init.c
8265
section_offset = get_unaligned_le16(&section->next_section_offset);
drivers/spi/spi-amlogic-spifc-a4.c
854
static int aml_sfc_layout_ecc(struct mtd_info *mtd, int section,
drivers/spi/spi-amlogic-spifc-a4.c
859
if (section >= nand->ecc.ctx.nsteps)
drivers/spi/spi-amlogic-spifc-a4.c
862
oobregion->offset = ECC_BCH8_USER_BYTES + (section * ECC_BCH8_INFO_BYTES);
drivers/spi/spi-amlogic-spifc-a4.c
868
static int aml_sfc_ooblayout_free(struct mtd_info *mtd, int section,
drivers/spi/spi-amlogic-spifc-a4.c
873
if (section >= nand->ecc.ctx.nsteps)
drivers/spi/spi-amlogic-spifc-a4.c
876
oobregion->offset = section * ECC_BCH8_INFO_BYTES;
drivers/spi/spi-mtk-snfi.c
634
static int mtk_snand_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/spi/spi-mtk-snfi.c
641
static int mtk_snand_ooblayout_free(struct mtd_info *mtd, int section,
drivers/spi/spi-mtk-snfi.c
647
if (section >= ms->nfi_cfg.nsectors)
drivers/spi/spi-mtk-snfi.c
651
oobfree->offset = section * ms->caps->fdm_size + 1;
drivers/spi/spi-qpic-snand.c
203
static int qcom_spi_ooblayout_ecc(struct mtd_info *mtd, int section,
drivers/spi/spi-qpic-snand.c
210
switch (section) {
drivers/spi/spi-qpic-snand.c
227
static int qcom_spi_ooblayout_free(struct mtd_info *mtd, int section,
drivers/spi/spi-qpic-snand.c
234
if (section)
fs/isofs/inode.c
1028
int section, rv, error;
fs/isofs/inode.c
1044
section = 0;
fs/isofs/inode.c
1080
if (++section > 100) {
fs/nfs/nfs4state.c
2520
const char *section = "", *section_sep = "";
fs/nfs/nfs4state.c
2534
section = "purge state";
fs/nfs/nfs4state.c
2542
section = "lease expired";
fs/nfs/nfs4state.c
2552
section = "reset session";
fs/nfs/nfs4state.c
2563
section = "bind conn to session";
fs/nfs/nfs4state.c
2571
section = "check lease";
fs/nfs/nfs4state.c
2579
section = "migration";
fs/nfs/nfs4state.c
2586
section = "lease moved";
fs/nfs/nfs4state.c
2594
section = "reclaim reboot";
fs/nfs/nfs4state.c
2609
section = "detect expired delegations";
fs/nfs/nfs4state.c
2619
section = "reclaim nograce";
fs/nfs/nfs4state.c
2655
if (strlen(section))
fs/nfs/nfs4state.c
2657
trace_nfs4_state_mgr_failed(clp, section, status);
fs/nfs/nfs4state.c
2659
" with error %d\n", section_sep, section,
fs/nfs/nfs4trace.h
406
const char *section,
fs/nfs/nfs4trace.h
410
TP_ARGS(clp, section, status),
fs/nfs/nfs4trace.h
416
__string(section, section)
fs/nfs/nfs4trace.h
423
__assign_str(section);
fs/nfs/nfs4trace.h
430
show_nfs4_status(__entry->error), __get_str(section)
include/acpi/ghes.h
121
#define apei_estatus_for_each_section(estatus, section) \
include/acpi/ghes.h
122
for (section = (struct acpi_hest_generic_data *)(estatus + 1); \
include/acpi/ghes.h
123
(void *)section - (void *)(estatus + 1) < estatus->data_length; \
include/acpi/ghes.h
124
section = acpi_hest_get_next(section))
include/linux/annotate.h
10
.pushsection section, "M", @progbits, 8; \
include/linux/annotate.h
9
#define __ASM_ANNOTATE(section, label, type) \
include/linux/codetag.h
40
const char *section;
include/linux/compiler_attributes.h
321
#define __section(section) __attribute__((__section__(section)))
include/linux/compiler_types.h
443
#define __noinstr_section(section) \
include/linux/compiler_types.h
444
noinline notrace __attribute((__section__(section))) \
include/linux/elfnote.h
79
__attribute__((section(".note." name), \
include/linux/export.h
34
.section ".export_symbol","a" ASM_NL \
include/linux/init.h
101
#define __REF .section ".ref.text", "ax"
include/linux/init.h
102
#define __REFDATA .section ".ref.data", "aw"
include/linux/init.h
103
#define __REFCONST .section ".ref.rodata", "a"
include/linux/init.h
92
#define __HEAD .section ".head.text","ax"
include/linux/init.h
93
#define __INIT .section ".init.text","ax"
include/linux/init.h
96
#define __INITDATA .section ".init.data","aw",%progbits
include/linux/init.h
97
#define __INITRODATA .section ".init.rodata","a",%progbits
include/linux/kexec.h
288
arch_kexec_apply_relocations_add(struct purgatory_info *pi, Elf_Shdr *section,
include/linux/kexec.h
307
arch_kexec_apply_relocations(struct purgatory_info *pi, Elf_Shdr *section,
include/linux/linkage.h
48
#define __PAGE_ALIGNED_DATA .section ".data..page_aligned", "aw"
include/linux/linkage.h
49
#define __PAGE_ALIGNED_BSS .section ".bss..page_aligned", "aw"
include/linux/mm.h
2231
static inline void set_page_section(struct page *page, unsigned long section)
include/linux/mm.h
2234
page->flags.f |= (section & SECTIONS_MASK) << SECTIONS_PGSHIFT;
include/linux/mm_inline.h
641
unsigned long section = memdesc_section(cur_page->flags);
include/linux/mm_inline.h
651
if (memdesc_section(cur_page->flags) != section)
include/linux/mmzone.h
2027
static inline struct page *__section_mem_map_addr(struct mem_section *section)
include/linux/mmzone.h
2029
unsigned long map = section->section_mem_map;
include/linux/mmzone.h
2034
static inline int present_section(const struct mem_section *section)
include/linux/mmzone.h
2036
return (section && (section->section_mem_map & SECTION_MARKED_PRESENT));
include/linux/mmzone.h
2044
static inline int valid_section(const struct mem_section *section)
include/linux/mmzone.h
2046
return (section && (section->section_mem_map & SECTION_HAS_MEM_MAP));
include/linux/mmzone.h
2049
static inline int early_section(const struct mem_section *section)
include/linux/mmzone.h
2051
return (section && (section->section_mem_map & SECTION_IS_EARLY));
include/linux/mmzone.h
2059
static inline int online_section(const struct mem_section *section)
include/linux/mmzone.h
2061
return (section && (section->section_mem_map & SECTION_IS_ONLINE));
include/linux/mmzone.h
2065
static inline int online_device_section(const struct mem_section *section)
include/linux/mmzone.h
2069
return section && ((section->section_mem_map & flags) == flags);
include/linux/mmzone.h
2072
static inline int online_device_section(const struct mem_section *section)
include/linux/mmzone.h
2079
static inline int preinited_vmemmap_section(const struct mem_section *section)
include/linux/mmzone.h
2081
return (section &&
include/linux/mmzone.h
2082
(section->section_mem_map & SECTION_IS_VMEMMAP_PREINIT));
include/linux/mmzone.h
2089
static inline int preinited_vmemmap_section(const struct mem_section *section)
include/linux/moduleloader.h
26
unsigned int arch_mod_section_prepend(struct module *mod, unsigned int section);
include/linux/mtd/mtd.h
107
int (*ecc)(struct mtd_info *mtd, int section,
include/linux/mtd/mtd.h
109
int (*free)(struct mtd_info *mtd, int section,
include/linux/mtd/mtd.h
431
int mtd_ooblayout_ecc(struct mtd_info *mtd, int section,
include/linux/mtd/mtd.h
434
int *section,
include/linux/mtd/mtd.h
440
int mtd_ooblayout_free(struct mtd_info *mtd, int section,
include/linux/pci.h
2391
#define DECLARE_PCI_FIXUP_SECTION(section, name, vendor, device, class, \
include/linux/pci.h
2394
__attribute__((__section__(#section), aligned((sizeof(void *))))) \
include/linux/percpu-defs.h
48
__percpu __attribute__((section(PER_CPU_BASE_SECTION sec))) \
kernel/kexec_file.c
1111
Elf_Shdr *section;
kernel/kexec_file.c
1129
section = pi->sechdrs + relsec->sh_info;
kernel/kexec_file.c
1132
if (!(section->sh_flags & SHF_ALLOC))
kernel/kexec_file.c
1148
ret = arch_kexec_apply_relocations_add(pi, section,
kernel/kexec_file.c
1151
ret = arch_kexec_apply_relocations(pi, section,
kernel/module/internal.h
128
Elf_Shdr *sechdr, unsigned int section);
kernel/module/main.c
1634
unsigned int section)
kernel/module/main.c
1641
Elf_Shdr *sechdr, unsigned int section)
kernel/module/main.c
1646
mod->mem[type].size += arch_mod_section_prepend(mod, section);
lib/842/842_decompress.c
177
u64 section = round_down(total, fsize);
lib/842/842_decompress.c
179
u64 pos = total - section;
lib/842/842_decompress.c
185
section -= fsize;
lib/842/842_decompress.c
187
offset += section;
lib/alloc_tag.c
821
.section = ALLOC_TAG_SECTION_NAME,
lib/codetag.c
159
const char *section)
lib/codetag.c
162
get_symbol(mod, CODETAG_SECTION_START_PREFIX, section),
lib/codetag.c
163
get_symbol(mod, CODETAG_SECTION_STOP_PREFIX, section),
lib/codetag.c
183
range = get_section_range(mod, cttype->desc.section);
lib/codetag.c
186
cttype->desc.section, get_mod_name(mod));
lib/codetag.c
247
if (strcmp(type_name, cttype->desc.section) == 0) {
lib/codetag.c
272
if (strcmp(type_name, cttype->desc.section) == 0) {
lib/tests/printf_kunit.c
602
page_flags_test(struct kunit *kunittest, int section, int node, int zone,
lib/tests/printf_kunit.c
606
unsigned long values[] = {section, node, zone, last_cpupid, kasan_tag};
mm/page_ext.c
255
struct mem_section *section = __pfn_to_section(pfn);
mm/page_ext.c
256
struct page_ext *page_ext = READ_ONCE(section->page_ext);
mm/page_ext.c
289
struct mem_section *section;
mm/page_ext.c
293
section = __pfn_to_section(pfn);
mm/page_ext.c
295
if (section->page_ext)
mm/page_ext.c
318
section->page_ext = (void *)base - page_ext_size * pfn;
mm/sparse.c
101
mem_section[root] = section;
mm/sparse.c
123
static inline int sparse_early_nid(struct mem_section *section)
mm/sparse.c
125
return (section->section_mem_map >> SECTION_NID_SHIFT);
mm/sparse.c
65
struct mem_section *section = NULL;
mm/sparse.c
70
section = kzalloc_node(array_size, GFP_KERNEL, nid);
mm/sparse.c
72
section = memblock_alloc_node(array_size, SMP_CACHE_BYTES,
mm/sparse.c
74
if (!section)
mm/sparse.c
79
return section;
mm/sparse.c
85
struct mem_section *section;
mm/sparse.c
97
section = sparse_index_alloc(nid);
mm/sparse.c
98
if (!section)
net/ceph/messenger_v1.c
961
struct kvec *section,
net/ceph/messenger_v1.c
966
BUG_ON(!section);
net/ceph/messenger_v1.c
968
while (section->iov_len < sec_len) {
net/ceph/messenger_v1.c
969
BUG_ON(section->iov_base == NULL);
net/ceph/messenger_v1.c
970
left = sec_len - section->iov_len;
net/ceph/messenger_v1.c
971
ret = ceph_tcp_recvmsg(con->sock, (char *)section->iov_base +
net/ceph/messenger_v1.c
972
section->iov_len, left);
net/ceph/messenger_v1.c
975
section->iov_len += ret;
net/ceph/messenger_v1.c
977
if (section->iov_len == sec_len)
net/ceph/messenger_v1.c
978
*crc = crc32c(*crc, section->iov_base, section->iov_len);
net/ceph/messenger_v1.c
984
struct kvec *section,
net/ceph/messenger_v1.c
988
return read_partial_message_chunk(con, section, sec_len, crc);
samples/bpf/tracex5_user.c
41
const char *section;
samples/bpf/tracex5_user.c
78
section = bpf_program__section_name(prog);
samples/bpf/tracex5_user.c
80
if (sscanf(section, "kprobe/%d", &key) != 1)
scripts/gcc-plugins/stackleak_plugin.c
451
tree section;
scripts/gcc-plugins/stackleak_plugin.c
453
section = lookup_attribute("section",
scripts/gcc-plugins/stackleak_plugin.c
455
if (section && TREE_VALUE(section)) {
scripts/gcc-plugins/stackleak_plugin.c
456
section = TREE_VALUE(TREE_VALUE(section));
scripts/gcc-plugins/stackleak_plugin.c
458
if (STRING_EQUAL(section, ".init.text"))
scripts/gcc-plugins/stackleak_plugin.c
460
if (STRING_EQUAL(section, ".devinit.text"))
scripts/gcc-plugins/stackleak_plugin.c
462
if (STRING_EQUAL(section, ".cpuinit.text"))
scripts/gcc-plugins/stackleak_plugin.c
464
if (STRING_EQUAL(section, ".meminit.text"))
scripts/gcc-plugins/stackleak_plugin.c
466
if (STRING_EQUAL(section, ".noinstr.text"))
scripts/gcc-plugins/stackleak_plugin.c
468
if (STRING_EQUAL(section, ".entry.text"))
scripts/gcc-plugins/stackleak_plugin.c
470
if (STRING_EQUAL(section, ".head.text"))
scripts/gendwarfksyms/examples/kabi.h
29
#define __section(section) __attribute__((__section__(section)))
scripts/gendwarfksyms/examples/symbolptr.c
17
#define __section(section) __attribute__((__section__(section)))
scripts/gendwarfksyms/gendwarfksyms.h
108
uint32_t section;
scripts/gendwarfksyms/symbols.c
152
sym->addr.section = SHN_UNDEF;
scripts/gendwarfksyms/symbols.c
18
return hash_32(addr->section ^ addr_hash(addr->address));
scripts/gendwarfksyms/symbols.c
291
if (sym->addr.section == SHN_UNDEF) {
scripts/gendwarfksyms/symbols.c
296
debug("%s -> { %u, %" PRIx64 " }", sym->name, sym->addr.section,
scripts/gendwarfksyms/symbols.c
298
} else if (sym->addr.section != addr->section ||
scripts/gendwarfksyms/symbols.c
307
struct symbol_addr addr = { .section = xndx, .address = sym->st_value };
scripts/gendwarfksyms/symbols.c
310
if (addr.section != SHN_UNDEF)
scripts/gendwarfksyms/symbols.c
33
if (match->addr.section == sym->addr.section &&
scripts/gendwarfksyms/symbols.c
77
if (match->addr.section != SHN_UNDEF)
tools/include/linux/init.h
15
#define __section(section) __attribute__((__section__(section)))
tools/include/nolibc/getopt.h
18
__attribute__((weak,unused,section(".data.nolibc_getopt")))
tools/include/nolibc/getopt.h
21
__attribute__((weak,unused,section(".data.nolibc_getopt")))
tools/include/nolibc/signal.h
20
__attribute__((weak,unused,section(".text.nolibc_raise")))
tools/include/nolibc/stackprotector.h
23
__attribute__((weak,used,noreturn,section(".text.nolibc_stack_chk")))
tools/include/nolibc/stackprotector.h
34
__attribute__((weak,noreturn,section(".text.nolibc_stack_chk")))
tools/include/nolibc/stackprotector.h
40
__attribute__((weak,used,section(".data.nolibc_stack_chk")))
tools/include/nolibc/stdlib.h
55
__attribute__((weak,unused,noreturn,section(".text.nolibc_abort")))
tools/include/nolibc/string.h
149
__attribute__((weak,unused,section(".text.nolibc_strlen")))
tools/include/nolibc/string.h
39
__attribute__((weak,unused,section(".text.nolibc_memmove")))
tools/include/nolibc/string.h
64
__attribute__((weak,unused,section(".text.nolibc_memcpy")))
tools/include/nolibc/string.h
82
__attribute__((weak,unused,section(".text.nolibc_memset")))
tools/lib/bpf/bpf_helpers.h
191
#define __kconfig __attribute__((section(".kconfig")))
tools/lib/bpf/bpf_helpers.h
192
#define __ksym __attribute__((section(".ksyms")))
tools/lib/bpf/bpf_helpers.h
41
#define SEC(name) __attribute__((section(name), used))
tools/lib/bpf/bpf_helpers.h
48
__attribute__((section(name), used)) \
tools/objtool/arch/loongarch/decode.c
312
int arch_decode_instruction(struct objtool_file *file, const struct section *sec,
tools/objtool/arch/loongarch/orc.c
100
int write_orc_entry(struct elf *elf, struct section *orc_sec,
tools/objtool/arch/loongarch/orc.c
101
struct section *ip_sec, unsigned int idx,
tools/objtool/arch/loongarch/orc.c
102
struct section *insn_sec, unsigned long insn_off,
tools/objtool/arch/loongarch/special.c
116
struct section *rsec;
tools/objtool/arch/loongarch/special.c
142
static struct reloc *find_reloc_of_rodata_c_jump_table(struct section *sec,
tools/objtool/arch/loongarch/special.c
146
struct section *rsec;
tools/objtool/arch/loongarch/special.c
172
struct section *table_sec;
tools/objtool/arch/loongarch/special.c
23
struct section *rsec;
tools/objtool/arch/powerpc/decode.c
54
int arch_decode_instruction(struct objtool_file *file, const struct section *sec,
tools/objtool/arch/x86/decode.c
100
static void scan_for_insn(struct section *sec, unsigned long offset,
tools/objtool/arch/x86/decode.c
217
int arch_decode_instruction(struct objtool_file *file, const struct section *sec,
tools/objtool/arch/x86/orc.c
100
struct section *ip_sec, unsigned int idx,
tools/objtool/arch/x86/orc.c
101
struct section *insn_sec, unsigned long insn_off,
tools/objtool/arch/x86/orc.c
99
int write_orc_entry(struct elf *elf, struct section *orc_sec,
tools/objtool/arch/x86/special.c
90
struct section *table_sec;
tools/objtool/check.c
1029
struct section *sec;
tools/objtool/check.c
1084
struct section *rsec;
tools/objtool/check.c
111
for (struct section *__sec, *__fake = (struct section *)1; \
tools/objtool/check.c
1563
struct section *dest_sec;
tools/objtool/check.c
1682
static struct symbol *find_call_destination(struct section *sec, unsigned long offset)
tools/objtool/check.c
2258
struct section *sec;
tools/objtool/check.c
2353
struct section *sec;
tools/objtool/check.c
2568
struct section *sec;
tools/objtool/check.c
326
struct section *sec)
tools/objtool/check.c
4108
static int validate_unwind_hints(struct objtool_file *file, struct section *sec)
tools/objtool/check.c
413
struct section *sec;
tools/objtool/check.c
42
struct section *sec, unsigned long offset)
tools/objtool/check.c
4501
struct section *sec;
tools/objtool/check.c
4517
static int validate_symbol(struct objtool_file *file, struct section *sec,
tools/objtool/check.c
4562
static int validate_section(struct objtool_file *file, struct section *sec)
tools/objtool/check.c
4583
struct section *sec;
tools/objtool/check.c
4609
struct section *sec;
tools/objtool/check.c
4783
struct section *sec;
tools/objtool/check.c
4910
struct section *sec;
tools/objtool/check.c
653
struct section *sec;
tools/objtool/check.c
668
struct section *sec;
tools/objtool/check.c
760
struct section *sec;
tools/objtool/check.c
798
struct section *sec;
tools/objtool/check.c
836
struct section *sec;
tools/objtool/check.c
892
struct section *sec;
tools/objtool/check.c
941
struct section *sec;
tools/objtool/check.c
991
struct section *sec;
tools/objtool/disas.c
1229
struct section *sec;
tools/objtool/disas.c
167
static void disas_print_addr_sym(struct section *sec, struct symbol *sym,
tools/objtool/disas.c
433
static int disas_vprint(FILE *stream, struct section *sec, unsigned long offset,
tools/objtool/disas.c
467
static int disas_print(FILE *stream, struct section *sec, unsigned long offset,
tools/objtool/disas.c
489
struct section *sec;
tools/objtool/elf.c
1014
struct reloc *elf_init_reloc_text_sym(struct elf *elf, struct section *sec,
tools/objtool/elf.c
1017
struct section *insn_sec,
tools/objtool/elf.c
1044
struct reloc *elf_init_reloc_data_sym(struct elf *elf, struct section *sec,
tools/objtool/elf.c
1062
struct section *rsec;
tools/objtool/elf.c
1190
struct section *null, *symtab, *strtab, *shstrtab;
tools/objtool/elf.c
1247
if (!elf_alloc_hash(section, 1000) ||
tools/objtool/elf.c
1305
unsigned int elf_add_string(struct elf *elf, struct section *strtab, const char *str)
tools/objtool/elf.c
1329
void *elf_add_data(struct elf *elf, struct section *sec, const void *data, size_t size)
tools/objtool/elf.c
133
struct section *find_section_by_name(const struct elf *elf, const char *name)
tools/objtool/elf.c
135
struct section *sec;
tools/objtool/elf.c
1371
struct section *elf_create_section(struct elf *elf, const char *name,
tools/objtool/elf.c
1376
struct section *sec, *shstrtab;
tools/objtool/elf.c
145
static struct section *find_section_by_index(struct elf *elf,
tools/objtool/elf.c
1457
elf_hash_add(section, &sec->hash, sec->idx);
tools/objtool/elf.c
1464
static int elf_alloc_reloc(struct elf *elf, struct section *rsec)
tools/objtool/elf.c
148
struct section *sec;
tools/objtool/elf.c
150
elf_hash_for_each_possible(section, sec, hash, idx) {
tools/objtool/elf.c
1572
struct section *elf_create_rela_section(struct elf *elf, struct section *sec,
tools/objtool/elf.c
1575
struct section *rsec;
tools/objtool/elf.c
1613
struct reloc *elf_create_reloc(struct elf *elf, struct section *sec,
tools/objtool/elf.c
1618
struct section *rsec = sec->rsec;
tools/objtool/elf.c
1640
struct section *elf_create_section_pair(struct elf *elf, const char *name,
tools/objtool/elf.c
1644
struct section *sec;
tools/objtool/elf.c
1657
int elf_write_insn(struct elf *elf, struct section *sec,
tools/objtool/elf.c
1684
static int elf_truncate_section(struct elf *elf, struct section *sec)
tools/objtool/elf.c
170
struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset)
tools/objtool/elf.c
1730
struct section *sec;
tools/objtool/elf.c
183
struct symbol *find_func_by_offset(struct section *sec, unsigned long offset)
tools/objtool/elf.c
196
struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset)
tools/objtool/elf.c
227
int find_symbol_hole_containing(const struct section *sec, unsigned long offset)
tools/objtool/elf.c
264
struct symbol *find_func_containing(struct section *sec, unsigned long offset)
tools/objtool/elf.c
318
struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec,
tools/objtool/elf.c
322
struct section *rsec;
tools/objtool/elf.c
348
struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset)
tools/objtool/elf.c
353
static bool is_dwarf_section(struct section *sec)
tools/objtool/elf.c
361
struct section *sec;
tools/objtool/elf.c
375
if (!elf_alloc_hash(section, sections_nr) ||
tools/objtool/elf.c
422
elf_hash_add(section, &sec->hash, sec->idx);
tools/objtool/elf.c
541
struct section *symtab, *symtab_shndx, *sec;
tools/objtool/elf.c
684
struct section *symtab, *sec;
tools/objtool/elf.c
731
static int elf_update_symbol(struct elf *elf, struct section *symtab,
tools/objtool/elf.c
732
struct section *symtab_shndx, struct symbol *sym)
tools/objtool/elf.c
861
struct section *sec, unsigned int bind,
tools/objtool/elf.c
865
struct section *symtab, *symtab_shndx;
tools/objtool/elf.c
966
struct symbol *elf_create_section_symbol(struct elf *elf, struct section *sec)
tools/objtool/elf.c
979
struct reloc *elf_init_reloc(struct elf *elf, struct section *rsec,
tools/objtool/include/objtool/arch.h
78
int arch_decode_instruction(struct objtool_file *file, const struct section *sec,
tools/objtool/include/objtool/check.h
144
struct section *sec, unsigned long offset);
tools/objtool/include/objtool/check.h
61
struct section *sec;
tools/objtool/include/objtool/elf.h
101
struct section *sec;
tools/objtool/include/objtool/elf.h
129
struct section *section_data;
tools/objtool/include/objtool/elf.h
136
struct section *elf_create_section(struct elf *elf, const char *name,
tools/objtool/include/objtool/elf.h
140
struct section *elf_create_section_pair(struct elf *elf, const char *name,
tools/objtool/include/objtool/elf.h
144
struct section *elf_create_rela_section(struct elf *elf, struct section *sec,
tools/objtool/include/objtool/elf.h
148
struct section *sec, unsigned int bind,
tools/objtool/include/objtool/elf.h
151
struct symbol *elf_create_section_symbol(struct elf *elf, struct section *sec);
tools/objtool/include/objtool/elf.h
153
void *elf_add_data(struct elf *elf, struct section *sec, const void *data,
tools/objtool/include/objtool/elf.h
156
unsigned int elf_add_string(struct elf *elf, struct section *strtab, const char *str);
tools/objtool/include/objtool/elf.h
158
struct reloc *elf_create_reloc(struct elf *elf, struct section *sec,
tools/objtool/include/objtool/elf.h
162
struct reloc *elf_init_reloc(struct elf *elf, struct section *rsec,
tools/objtool/include/objtool/elf.h
166
struct reloc *elf_init_reloc_text_sym(struct elf *elf, struct section *sec,
tools/objtool/include/objtool/elf.h
169
struct section *insn_sec,
tools/objtool/include/objtool/elf.h
172
struct reloc *elf_init_reloc_data_sym(struct elf *elf, struct section *sec,
tools/objtool/include/objtool/elf.h
178
int elf_write_insn(struct elf *elf, struct section *sec, unsigned long offset,
tools/objtool/include/objtool/elf.h
184
struct section *find_section_by_name(const struct elf *elf, const char *name);
tools/objtool/include/objtool/elf.h
185
struct symbol *find_func_by_offset(struct section *sec, unsigned long offset);
tools/objtool/include/objtool/elf.h
186
struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset);
tools/objtool/include/objtool/elf.h
189
struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset);
tools/objtool/include/objtool/elf.h
190
int find_symbol_hole_containing(const struct section *sec, unsigned long offset);
tools/objtool/include/objtool/elf.h
191
struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset);
tools/objtool/include/objtool/elf.h
192
struct reloc *find_reloc_by_dest_range(const struct elf *elf, struct section *sec,
tools/objtool/include/objtool/elf.h
194
struct symbol *find_func_containing(struct section *sec, unsigned long offset);
tools/objtool/include/objtool/elf.h
281
static inline bool is_reloc_sec(struct section *sec)
tools/objtool/include/objtool/elf.h
286
static inline bool is_string_sec(struct section *sec)
tools/objtool/include/objtool/elf.h
291
static inline bool is_text_sec(struct section *sec)
tools/objtool/include/objtool/elf.h
296
static inline bool sec_changed(struct section *sec)
tools/objtool/include/objtool/elf.h
301
static inline void mark_sec_changed(struct elf *elf, struct section *sec,
tools/objtool/include/objtool/elf.h
308
static inline unsigned int sec_num_entries(struct section *sec)
tools/objtool/include/objtool/elf.h
320
struct section *rsec = reloc->sec;
tools/objtool/include/objtool/elf.h
336
static inline unsigned long sec_size(struct section *sec)
tools/objtool/include/objtool/elf.h
418
static inline unsigned int annotype(struct elf *elf, struct section *sec,
tools/objtool/include/objtool/elf.h
49
struct section *base, *rsec;
tools/objtool/include/objtool/elf.h
511
static inline u32 sec_offset_hash(struct section *sec, unsigned long offset)
tools/objtool/include/objtool/elf.h
57
struct section *twin;
tools/objtool/include/objtool/elf.h
67
struct section *sec;
tools/objtool/include/objtool/elf.h
94
struct section *group_sec;
tools/objtool/include/objtool/orc.h
10
struct section *ip_sec, unsigned int idx,
tools/objtool/include/objtool/orc.h
11
struct section *insn_sec, unsigned long insn_off,
tools/objtool/include/objtool/orc.h
9
int write_orc_entry(struct elf *elf, struct section *orc_sec,
tools/objtool/include/objtool/special.h
22
struct section *orig_sec;
tools/objtool/include/objtool/special.h
25
struct section *new_sec;
tools/objtool/include/objtool/warn.h
20
static inline char *offstr(struct section *sec, unsigned long offset)
tools/objtool/klp-diff.c
1058
struct section *sec, unsigned long offset)
tools/objtool/klp-diff.c
1125
struct section *patched_rsec = patched_sym->sec->rsec;
tools/objtool/klp-diff.c
1184
static int create_fake_symbol(struct elf *elf, struct section *sec,
tools/objtool/klp-diff.c
1241
struct section *sec;
tools/objtool/klp-diff.c
1436
static int clone_special_section(struct elfs *e, struct section *patched_sec)
tools/objtool/klp-diff.c
1469
struct section *patched_sec;
tools/objtool/klp-diff.c
1490
struct section *obj_sec, *funcs_sec, *str_sec;
tools/objtool/klp-diff.c
1672
struct section *patched_sec, *out_sec = NULL;
tools/objtool/klp-diff.c
170
struct section *sec;
tools/objtool/klp-diff.c
281
static bool is_special_section(struct section *sec)
tools/objtool/klp-diff.c
326
static bool is_special_section_aux(struct section *sec)
tools/objtool/klp-diff.c
537
struct section *out_sec = NULL;
tools/objtool/klp-diff.c
542
struct section *patched_sec = patched_sym->sec;
tools/objtool/klp-diff.c
731
static bool section_reference_needed(struct section *sec)
tools/objtool/klp-diff.c
774
struct section *sec;
tools/objtool/klp-diff.c
871
struct section *sec = sym->sec;
tools/objtool/klp-diff.c
885
struct section *sec = sym->sec;
tools/objtool/klp-diff.c
928
struct section *sec, unsigned long offset,
tools/objtool/klp-diff.c
934
static struct section *klp_relocs;
tools/objtool/klp-post-link.c
24
struct section *symtab, *klp_relocs;
tools/objtool/klp-post-link.c
39
struct section *sec, *tmp, *klp_rsec;
tools/objtool/orc_gen.c
19
struct section *insn_sec;
tools/objtool/orc_gen.c
24
struct section *sec, unsigned long offset)
tools/objtool/orc_gen.c
50
struct section *sec, *orc_sec;
tools/objtool/special.c
134
struct section *sec;
tools/objtool/special.c
60
static void reloc_to_sec_off(struct reloc *reloc, struct section **sec,
tools/objtool/special.c
68
struct section *sec, int idx,
tools/perf/builtin-config.c
105
struct perf_config_section *section;
tools/perf/builtin-config.c
111
perf_config_set__for_each_entry(set, section, item) {
tools/perf/builtin-config.c
115
printf("%s.%s=%s\n", section->name,
tools/perf/builtin-config.c
40
struct perf_config_section *section = NULL;
tools/perf/builtin-config.c
55
perf_config_items__for_each_entry(&set->sections, section) {
tools/perf/builtin-config.c
56
if (!use_system_config && section->from_system_config)
tools/perf/builtin-config.c
58
fprintf(fp, "[%s]\n", section->name);
tools/perf/builtin-config.c
60
perf_config_items__for_each_entry(&section->items, item) {
tools/perf/builtin-config.c
75
struct perf_config_section *section;
tools/perf/builtin-config.c
81
perf_config_items__for_each_entry(&set->sections, section) {
tools/perf/builtin-config.c
82
if (!strstarts(var, section->name))
tools/perf/builtin-config.c
85
perf_config_items__for_each_entry(&section->items, item) {
tools/perf/builtin-config.c
86
const char *name = var + strlen(section->name) + 1;
tools/perf/builtin-inject.c
2093
static int save_section_info_cb(struct perf_file_section *section,
tools/perf/builtin-inject.c
2099
inject->secs[feat] = *section;
tools/perf/builtin-timechart.c
1512
static int process_header(struct perf_file_section *section __maybe_unused,
tools/perf/util/config.c
629
struct perf_config_section *section;
tools/perf/util/config.c
631
list_for_each_entry(section, sections, node)
tools/perf/util/config.c
632
if (!strcmp(section->name, section_name))
tools/perf/util/config.c
633
return section;
tools/perf/util/config.c
639
struct perf_config_section *section)
tools/perf/util/config.c
643
list_for_each_entry(item, &section->items, node)
tools/perf/util/config.c
653
struct perf_config_section *section = zalloc(sizeof(*section));
tools/perf/util/config.c
655
if (!section)
tools/perf/util/config.c
658
INIT_LIST_HEAD(&section->items);
tools/perf/util/config.c
659
section->name = strdup(section_name);
tools/perf/util/config.c
660
if (!section->name) {
tools/perf/util/config.c
662
free(section);
tools/perf/util/config.c
666
list_add_tail(&section->node, sections);
tools/perf/util/config.c
667
return section;
tools/perf/util/config.c
670
static struct perf_config_item *add_config_item(struct perf_config_section *section,
tools/perf/util/config.c
685
list_add_tail(&item->node, &section->items);
tools/perf/util/config.c
707
struct perf_config_section *section = NULL;
tools/perf/util/config.c
727
section = find_section(sections, section_name);
tools/perf/util/config.c
728
if (!section) {
tools/perf/util/config.c
729
section = add_section(sections, section_name);
tools/perf/util/config.c
730
if (!section)
tools/perf/util/config.c
734
item = find_config_item(name, section);
tools/perf/util/config.c
736
item = add_config_item(section, name);
tools/perf/util/config.c
747
section->from_system_config = true;
tools/perf/util/config.c
750
section->from_system_config = false;
tools/perf/util/config.c
825
struct perf_config_section *section;
tools/perf/util/config.c
828
perf_config_set__for_each_entry(set, section, item) {
tools/perf/util/config.c
833
section->name, item->name);
tools/perf/util/config.c
871
static void perf_config_section__purge(struct perf_config_section *section)
tools/perf/util/config.c
875
list_for_each_entry_safe(item, tmp, &section->items, node) {
tools/perf/util/config.c
881
static void perf_config_section__delete(struct perf_config_section *section)
tools/perf/util/config.c
883
perf_config_section__purge(section);
tools/perf/util/config.c
884
zfree(&section->name);
tools/perf/util/config.c
885
free(section);
tools/perf/util/config.c
890
struct perf_config_section *section, *tmp;
tools/perf/util/config.c
892
list_for_each_entry_safe(section, tmp, &set->sections, node) {
tools/perf/util/config.c
893
list_del_init(&section->node);
tools/perf/util/config.c
894
perf_config_section__delete(section);
tools/perf/util/config.h
59
#define perf_config_sections__for_each_entry(list, section) \
tools/perf/util/config.h
60
list_for_each_entry(section, list, node)
tools/perf/util/config.h
76
#define perf_config_set__for_each_entry(set, section, item) \
tools/perf/util/config.h
77
perf_config_sections__for_each_entry(&set->sections, section) \
tools/perf/util/config.h
78
perf_config_items__for_each_entry(&section->items, item)
tools/perf/util/header.c
3773
static int perf_file_section__fprintf_info(struct perf_file_section *section,
tools/perf/util/header.c
3780
if (lseek(fd, section->offset, SEEK_SET) == (off_t)-1) {
tools/perf/util/header.c
3782
"%d, continuing...\n", section->offset, feat);
tools/perf/util/header.c
4141
int (*process)(struct perf_file_section *section,
tools/perf/util/header.c
4385
static int perf_file_section__process(struct perf_file_section *section,
tools/perf/util/header.c
4392
.size = section->size,
tools/perf/util/header.c
4393
.offset = section->offset,
tools/perf/util/header.c
4396
if (lseek(fd, section->offset, SEEK_SET) == (off_t)-1) {
tools/perf/util/header.c
4398
"%d, continuing...\n", section->offset, feat);
tools/perf/util/header.h
167
int (*process)(struct perf_file_section *section,
tools/perf/util/libbfd.c
122
static void find_address_in_section(bfd *abfd, asection *section, void *data)
tools/perf/util/libbfd.c
133
flags = bfd_get_section_flags(abfd, section);
tools/perf/util/libbfd.c
135
flags = bfd_section_flags(section);
tools/perf/util/libbfd.c
142
vma = bfd_get_section_vma(abfd, section);
tools/perf/util/libbfd.c
144
vma = bfd_section_vma(section);
tools/perf/util/libbfd.c
147
size = bfd_get_section_size(section);
tools/perf/util/libbfd.c
149
size = bfd_section_size(section);
tools/perf/util/libbfd.c
155
a2l->found = bfd_find_nearest_line(abfd, section, a2l->syms, pc - vma,
tools/perf/util/libbfd.c
319
asection *section;
tools/perf/util/libbfd.c
356
section = bfd_get_section_by_name(abfd, ".text");
tools/perf/util/libbfd.c
357
if (section) {
tools/perf/util/libbfd.c
365
u64 text_offset = (section->vma - (u32)section->vma)
tools/perf/util/libbfd.c
368
dso__set_text_end(dso, (section->vma - text_offset) + section->size);
tools/perf/util/libbfd.c
370
dso__set_text_offset(dso, section->vma - section->filepos);
tools/perf/util/libbfd.c
371
dso__set_text_end(dso, section->filepos + section->size);
tools/perf/util/libbfd.c
382
section = bfd_asymbol_section(sym);
tools/perf/util/libbfd.c
387
bfd_asymbol_section(symbols[i + 1]) == section &&
tools/perf/util/libbfd.c
392
bfd_asymbol_section(symbols[i + 1]) == section)
tools/perf/util/libbfd.c
395
len = section->size - sym->value;
tools/perf/util/libbfd.c
464
asection *section;
tools/perf/util/libbfd.c
477
section = bfd_get_section_by_name(abfd, ".gnu_debuglink");
tools/perf/util/libbfd.c
478
if (!section)
tools/perf/util/libbfd.c
481
if (section->size > size)
tools/perf/util/libbfd.c
484
if (!bfd_get_section_contents(abfd, section, debuglink, 0,
tools/perf/util/libbfd.c
485
section->size))
tools/testing/selftests/bpf/prog_tests/attach_probe.c
9
volatile unsigned short uprobe_ref_ctr __attribute__((unused)) __attribute((section(".probes")));
tools/testing/selftests/bpf/prog_tests/fill_link_info.c
399
#define SEC(name) __attribute__((section(name), used))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
873
void *__ ## func __used __attribute__((section("consumers"))) = (void *) func;
tools/testing/selftests/bpf/prog_tests/uretprobe_stack.c
125
__attribute__((section("uretprobe_stack_sec")))
tools/testing/selftests/bpf/prog_tests/uretprobe_stack.c
17
__attribute__((section("uprobe__target_4")))
tools/testing/selftests/bpf/prog_tests/uretprobe_stack.c
27
__attribute__((section("uprobe__target_3")))
tools/testing/selftests/bpf/prog_tests/uretprobe_stack.c
36
__attribute__((section("uprobe__target_2")))
tools/testing/selftests/bpf/prog_tests/uretprobe_stack.c
45
__attribute__((section("uprobe__target_1")))
tools/testing/selftests/bpf/prog_tests/usdt.c
22
#define SEC(name) __attribute__((section(name), used))
tools/testing/selftests/bpf/progs/cgroup_getset_retval_hooks.c
6
#define BPF_RETVAL_HOOK(name, section, ctx, expected_err) \
tools/testing/selftests/bpf/progs/cgroup_getset_retval_hooks.c
7
__attribute__((__section__("?" section))) \
tools/testing/selftests/bpf/urandom_read.c
17
#define SEC(name) __attribute__((section(name), used))
tools/testing/selftests/bpf/urandom_read_lib1.c
9
#define SEC(name) __attribute__((section(name), used))
tools/testing/selftests/bpf/usdt.h
326
#define __usdt_sema_sec __attribute__((section(".probes")))
tools/testing/selftests/net/sample_ret0.bpf.c
3
#define SEC(name) __attribute__((section(name), used))
tools/testing/selftests/powerpc/copyloops/asm/ppc_asm.h
35
.section __ex_table,"a"; \
tools/testing/selftests/powerpc/primitives/asm/extable.h
38
stringify_in_c(.section __ex_table,"a";)\
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
874
stringify_in_c(.section __soft_mask_table,"a";)\
tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h
881
stringify_in_c(.section __restart_table,"a";)\
tools/testing/selftests/sgx/main.c
332
int section = 0;
tools/testing/selftests/sgx/main.c
335
__cpuid_count(SGX_CPUID, section + SGX_CPUID_EPC, eax, ebx, ecx, edx);
tools/testing/selftests/sgx/main.c
346
section++;
tools/testing/selftests/tc-testing/action.c
12
__attribute__((section("action-ok"),used)) int action_ok(struct __sk_buff *s)
tools/testing/selftests/tc-testing/action.c
17
__attribute__((section("action-ko"),used)) int action_ko(struct __sk_buff *s)
tools/testing/selftests/tc-testing/action.c
23
char _license[] __attribute__((section("license"),used)) = "GPL";