Home
last modified time | relevance | path

Searched refs:sec (Results 1 - 25 of 850) sorted by relevance

12345678910>>...34

/kernel/linux/linux-5.10/tools/objtool/
H A Delf.c132 struct section *sec; in find_section_by_name() local
134 elf_hash_for_each_possible(elf->section_name_hash, sec, name_hash, str_hash(name)) in find_section_by_name()
135 if (!strcmp(sec->name, name)) in find_section_by_name()
136 return sec; in find_section_by_name()
144 struct section *sec; in find_section_by_index() local
146 elf_hash_for_each_possible(elf->section_hash, sec, hash, idx) in find_section_by_index()
147 if (sec->idx == idx) in find_section_by_index()
148 return sec; in find_section_by_index()
164 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset) in find_symbol_by_offset() argument
168 rb_for_each(&sec in find_symbol_by_offset()
178 find_func_by_offset(struct section *sec, unsigned long offset) find_func_by_offset() argument
192 find_symbol_containing(const struct section *sec, unsigned long offset) find_symbol_containing() argument
206 find_func_containing(struct section *sec, unsigned long offset) find_func_containing() argument
231 find_reloc_by_dest_range(const struct elf *elf, struct section *sec, unsigned long offset, unsigned int len) find_reloc_by_dest_range() argument
260 find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) find_reloc_by_dest() argument
268 struct section *sec; read_sections() local
377 struct section *symtab, *symtab_shndx, *sec; read_symbols() local
512 elf_add_reloc(struct elf *elf, struct section *sec, unsigned long offset, unsigned int type, struct symbol *sym, s64 addend) elf_add_reloc() argument
548 struct section *sec; elf_dirty_reloc_sym() local
692 elf_create_section_symbol(struct elf *elf, struct section *sec) elf_create_section_symbol() argument
760 elf_add_reloc_to_insn(struct elf *elf, struct section *sec, unsigned long offset, unsigned int type, struct section *insn_sec, unsigned long insn_off) elf_add_reloc_to_insn() argument
784 read_rel_reloc(struct section *sec, int i, struct reloc *reloc, unsigned int *symndx) read_rel_reloc() argument
797 read_rela_reloc(struct section *sec, int i, struct reloc *reloc, unsigned int *symndx) read_rela_reloc() argument
812 struct section *sec; read_relocs() local
981 struct section *sec, *shstrtab; elf_create_section() local
1064 struct section *sec; elf_create_rel_reloc_section() local
1094 struct section *sec; elf_create_rela_reloc_section() local
1132 elf_rebuild_rel_reloc_section(struct section *sec, int nr) elf_rebuild_rel_reloc_section() argument
1161 elf_rebuild_rela_reloc_section(struct section *sec, int nr) elf_rebuild_rela_reloc_section() argument
1191 elf_rebuild_reloc_section(struct elf *elf, struct section *sec) elf_rebuild_reloc_section() argument
1207 elf_write_insn(struct elf *elf, struct section *sec, unsigned long offset, unsigned int len, const char *insn) elf_write_insn() argument
1228 struct section *sec = reloc->sec; elf_write_reloc() local
1256 struct section *sec; elf_write() local
1299 struct section *sec, *tmpsec; elf_close() local
[all...]
H A Dspecial.c20 const char *sec; member
29 .sec = ".altinstructions",
39 .sec = "__jump_table",
46 .sec = "__ex_table",
58 static void reloc_to_sec_off(struct reloc *reloc, struct section **sec, in reloc_to_sec_off() argument
61 *sec = reloc->sym->sec; in reloc_to_sec_off()
66 struct section *sec, int idx, in get_alt_entry()
78 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
80 alt->new_len = *(unsigned char *)(sec in get_alt_entry()
65 get_alt_entry(struct elf *elf, struct special_entry *entry, struct section *sec, int idx, struct special_alt *alt) get_alt_entry() argument
126 struct section *sec; special_get_alts() local
[all...]
H A Dcheck.c37 struct section *sec, unsigned long offset) in find_insn()
41 hash_for_each_possible(file->insn_hash, insn, hash, sec_offset_hash(sec, offset)) { in find_insn()
42 if (insn->sec == sec && insn->offset == offset) in find_insn()
54 if (!next || &next->list == &file->insn_list || next->sec != insn->sec) in next_insn_same_sec()
77 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func()
92 for (insn = find_insn(file, func->sec, func->offset); \
97 for (insn = find_insn(file, sym->sec, sym->offset); \
99 insn->sec
36 find_insn(struct objtool_file *file, struct section *sec, unsigned long offset) find_insn() argument
262 init_insn_state(struct insn_state *state, struct section *sec) init_insn_state() argument
354 struct section *sec; decode_instructions() local
426 find_last_insn(struct objtool_file *file, struct section *sec) find_last_insn() argument
444 struct section *sec; add_dead_ends() local
527 struct section *sec; create_static_call_sections() local
618 struct section *sec; create_retpoline_sites_sections() local
664 struct section *sec; create_return_sites_sections() local
713 struct section *sec; add_ignores() local
923 struct section *sec; add_ignore_alternatives() local
1240 find_call_destination(struct section *sec, unsigned long offset) find_call_destination() argument
1715 struct section *sec; add_jump_table_alts() local
1748 struct section *sec, *relocsec; read_unwind_hints() local
1838 struct section *sec; read_retpoline_hints() local
1875 struct section *sec; read_instr_hints() local
1923 struct section *sec; read_intra_function_calls() local
1973 struct section *sec; classify_symbols() local
2007 struct section *sec; mark_rodata() local
2866 struct section *sec; validate_branch() local
3110 validate_unwind_hints(struct objtool_file *file, struct section *sec) validate_unwind_hints() argument
3404 validate_symbol(struct objtool_file *file, struct section *sec, struct symbol *sym, struct insn_state *state) validate_symbol() argument
3430 validate_section(struct objtool_file *file, struct section *sec) validate_section() argument
3451 struct section *sec; validate_vmlinux_functions() local
3471 struct section *sec; validate_functions() local
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dtcrypt.c62 static unsigned int sec; variable
733 pr_cont("%6u opers/sec, %9lu bytes/sec\n", in test_ahash_jiffies_digest()
765 pr_cont("%6u opers/sec, %9lu bytes/sec\n", in test_ahash_jiffies()
1859 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, in do_test()
1861 test_cipher_speed("ecb(aes)", DECRYPT, sec, NULL, 0, in do_test()
1863 test_cipher_speed("cbc(aes)", ENCRYPT, sec, NULL, 0, in do_test()
1865 test_cipher_speed("cbc(aes)", DECRYPT, sec, NULL, 0, in do_test()
1867 test_cipher_speed("lrw(aes)", ENCRYPT, sec, NUL in do_test()
[all...]
/kernel/linux/linux-6.6/drivers/fpga/
H A Dintel-m10-bmc-sec-update.c20 int (*rsu_status)(struct m10bmc_sec *sec);
41 static int m10bmc_sec_write(struct m10bmc_sec *sec, const u8 *buf, u32 offset, u32 size) in m10bmc_sec_write() argument
43 struct intel_m10bmc *m10bmc = sec->m10bmc; in m10bmc_sec_write()
51 if (sec->m10bmc->flash_bulk_ops) in m10bmc_sec_write()
52 return sec->m10bmc->flash_bulk_ops->write(m10bmc, buf, offset, size); in m10bmc_sec_write()
74 static int m10bmc_sec_read(struct m10bmc_sec *sec, u8 *buf, u32 addr, u32 size) in m10bmc_sec_read() argument
76 struct intel_m10bmc *m10bmc = sec->m10bmc; in m10bmc_sec_read()
84 if (sec->m10bmc->flash_bulk_ops) in m10bmc_sec_read()
85 return sec->m10bmc->flash_bulk_ops->read(m10bmc, buf, addr, size); in m10bmc_sec_read()
110 struct m10bmc_sec *sec in show_root_entry_hash() local
169 struct m10bmc_sec *sec = dev_get_drvdata(dev); show_canceled_csk() local
214 struct m10bmc_sec *sec = dev_get_drvdata(dev); flash_count_show() local
262 log_error_regs(struct m10bmc_sec *sec, u32 doorbell) log_error_regs() argument
273 m10bmc_sec_n3000_rsu_status(struct m10bmc_sec *sec) m10bmc_sec_n3000_rsu_status() argument
286 m10bmc_sec_n6000_rsu_status(struct m10bmc_sec *sec) m10bmc_sec_n6000_rsu_status() argument
321 m10bmc_sec_progress_status(struct m10bmc_sec *sec, u32 *doorbell_reg, u32 *progress, u32 *status) m10bmc_sec_progress_status() argument
341 rsu_check_idle(struct m10bmc_sec *sec) rsu_check_idle() argument
373 rsu_update_init(struct m10bmc_sec *sec) rsu_update_init() argument
412 rsu_prog_ready(struct m10bmc_sec *sec) rsu_prog_ready() argument
446 rsu_send_data(struct m10bmc_sec *sec) rsu_send_data() argument
486 rsu_check_complete(struct m10bmc_sec *sec, u32 *doorbell_reg) rsu_check_complete() argument
505 rsu_cancel(struct m10bmc_sec *sec) rsu_cancel() argument
531 struct m10bmc_sec *sec = fwl->dd_handle; m10bmc_sec_prepare() local
580 struct m10bmc_sec *sec = fwl->dd_handle; m10bmc_sec_fw_write() local
609 struct m10bmc_sec *sec = fwl->dd_handle; m10bmc_sec_poll_complete() local
651 struct m10bmc_sec *sec = fwl->dd_handle; m10bmc_sec_cancel() local
658 struct m10bmc_sec *sec = fwl->dd_handle; m10bmc_sec_cleanup() local
688 struct m10bmc_sec *sec; m10bmc_sec_probe() local
735 struct m10bmc_sec *sec = dev_get_drvdata(&pdev->dev); m10bmc_sec_remove() local
[all...]
/kernel/linux/linux-5.10/crypto/
H A Dtcrypt.c59 static unsigned int sec; variable
922 printk("%6u opers/sec, %9lu bytes/sec\n", in test_ahash_jiffies_digest()
954 pr_cont("%6u opers/sec, %9lu bytes/sec\n", in test_ahash_jiffies()
2045 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, in do_test()
2047 test_cipher_speed("ecb(aes)", DECRYPT, sec, NULL, 0, in do_test()
2049 test_cipher_speed("cbc(aes)", ENCRYPT, sec, NULL, 0, in do_test()
2051 test_cipher_speed("cbc(aes)", DECRYPT, sec, NULL, 0, in do_test()
2053 test_cipher_speed("lrw(aes)", ENCRYPT, sec, NUL in do_test()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dexport.h26 #define __CRC_SYMBOL(sym, sec) \
27 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \
32 #define __CRC_SYMBOL(sym, sec) \
33 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \
39 #define __CRC_SYMBOL(sym, sec)
50 #define __KSYMTAB_ENTRY(sym, sec) \
52 asm(" .section \"___ksymtab" sec "+" #sym "\", \"a\" \n" \
66 #define __KSYMTAB_ENTRY(sym, sec) \
68 __attribute__((section("___ksymtab" sec "+" #sym), used)) \
81 #define ___EXPORT_SYMBOL(sym, sec, n
[all...]
/kernel/linux/linux-5.10/drivers/firmware/google/
H A Dvpd.c100 struct vpd_section *sec = arg; in vpd_section_attrib_add() local
131 ret = sysfs_create_bin_file(sec->kobj, &info->bin_attr); in vpd_section_attrib_add()
135 list_add_tail(&info->list, &sec->attribs); in vpd_section_attrib_add()
146 static void vpd_section_attrib_destroy(struct vpd_section *sec) in vpd_section_attrib_destroy() argument
151 list_for_each_entry_safe(info, temp, &sec->attribs, list) { in vpd_section_attrib_destroy()
152 sysfs_remove_bin_file(sec->kobj, &info->bin_attr); in vpd_section_attrib_destroy()
162 struct vpd_section *sec = bin_attr->private; in vpd_section_read() local
164 return memory_read_from_buffer(buf, count, &pos, sec->baseaddr, in vpd_section_read()
165 sec->bin_attr.size); in vpd_section_read()
168 static int vpd_section_create_attribs(struct vpd_section *sec) in vpd_section_create_attribs() argument
182 vpd_section_init(const char *name, struct vpd_section *sec, phys_addr_t physaddr, size_t size) vpd_section_init() argument
233 vpd_section_destroy(struct vpd_section *sec) vpd_section_destroy() argument
[all...]
/kernel/linux/linux-6.6/drivers/firmware/google/
H A Dvpd.c100 struct vpd_section *sec = arg; in vpd_section_attrib_add() local
131 ret = sysfs_create_bin_file(sec->kobj, &info->bin_attr); in vpd_section_attrib_add()
135 list_add_tail(&info->list, &sec->attribs); in vpd_section_attrib_add()
146 static void vpd_section_attrib_destroy(struct vpd_section *sec) in vpd_section_attrib_destroy() argument
151 list_for_each_entry_safe(info, temp, &sec->attribs, list) { in vpd_section_attrib_destroy()
152 sysfs_remove_bin_file(sec->kobj, &info->bin_attr); in vpd_section_attrib_destroy()
162 struct vpd_section *sec = bin_attr->private; in vpd_section_read() local
164 return memory_read_from_buffer(buf, count, &pos, sec->baseaddr, in vpd_section_read()
165 sec->bin_attr.size); in vpd_section_read()
168 static int vpd_section_create_attribs(struct vpd_section *sec) in vpd_section_create_attribs() argument
182 vpd_section_init(const char *name, struct vpd_section *sec, phys_addr_t physaddr, size_t size) vpd_section_init() argument
233 vpd_section_destroy(struct vpd_section *sec) vpd_section_destroy() argument
[all...]
/kernel/linux/linux-6.6/tools/objtool/
H A Delf.c134 struct section *sec; in find_section_by_name() local
136 elf_hash_for_each_possible(section_name, sec, name_hash, str_hash(name)) { in find_section_by_name()
137 if (!strcmp(sec->name, name)) in find_section_by_name()
138 return sec; in find_section_by_name()
147 struct section *sec; in find_section_by_index() local
149 elf_hash_for_each_possible(section, sec, hash, idx) { in find_section_by_index()
150 if (sec->idx == idx) in find_section_by_index()
151 return sec; in find_section_by_index()
169 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset) in find_symbol_by_offset() argument
171 struct rb_root_cached *tree = (struct rb_root_cached *)&sec in find_symbol_by_offset()
182 find_func_by_offset(struct section *sec, unsigned long offset) find_func_by_offset() argument
195 find_symbol_containing(const struct section *sec, unsigned long offset) find_symbol_containing() argument
211 find_symbol_hole_containing(const struct section *sec, unsigned long offset) find_symbol_hole_containing() argument
243 find_func_containing(struct section *sec, unsigned long offset) find_func_containing() argument
268 find_reloc_by_dest_range(const struct elf *elf, struct section *sec, unsigned long offset, unsigned int len) find_reloc_by_dest_range() argument
298 find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset) find_reloc_by_dest() argument
303 is_dwarf_section(struct section *sec) is_dwarf_section() argument
311 struct section *sec; read_sections() local
437 struct section *symtab, *symtab_shndx, *sec; read_symbols() local
794 elf_create_section_symbol(struct elf *elf, struct section *sec) elf_create_section_symbol() argument
886 elf_init_reloc_text_sym(struct elf *elf, struct section *sec, unsigned long offset, unsigned int reloc_idx, struct section *insn_sec, unsigned long insn_off) elf_init_reloc_text_sym() argument
919 elf_init_reloc_data_sym(struct elf *elf, struct section *sec, unsigned long offset, unsigned int reloc_idx, struct symbol *sym, s64 addend) elf_init_reloc_data_sym() argument
1093 struct section *sec, *shstrtab; elf_create_section() local
1170 elf_create_rela_section(struct elf *elf, struct section *sec, unsigned int reloc_nr) elf_create_rela_section() argument
1213 struct section *sec; elf_create_section_pair() local
1225 elf_write_insn(struct elf *elf, struct section *sec, unsigned long offset, unsigned int len, const char *insn) elf_write_insn() argument
1252 elf_truncate_section(struct elf *elf, struct section *sec) elf_truncate_section() argument
1299 struct section *sec; elf_write() local
[all...]
H A Dspecial.c21 const char *sec; member
31 .sec = ".altinstructions",
41 .sec = "__jump_table",
49 .sec = "__ex_table",
61 static void reloc_to_sec_off(struct reloc *reloc, struct section **sec, in reloc_to_sec_off() argument
64 *sec = reloc->sym->sec; in reloc_to_sec_off()
69 struct section *sec, int idx, in get_alt_entry()
81 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
83 alt->new_len = *(unsigned char *)(sec in get_alt_entry()
68 get_alt_entry(struct elf *elf, const struct special_entry *entry, struct section *sec, int idx, struct special_alt *alt) get_alt_entry() argument
143 struct section *sec; special_get_alts() local
[all...]
/kernel/linux/linux-5.10/arch/loongarch/boot/tools/
H A Drelocs.c191 struct section *sec = &secs[i]; in read_shdrs() local
193 sec->shdr_offset = ftell(fp); in read_shdrs()
194 if (fread(&sec->shdr, sizeof(Elf_Shdr), 1, fp) != 1) in read_shdrs()
198 if (sec->shdr.sh_link < ehdr.e_shnum) in read_shdrs()
199 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs()
208 struct section *sec = &secs[i]; in read_strtabs() local
210 if (sec->shdr.sh_type != SHT_STRTAB) in read_strtabs()
213 sec->strtab = malloc(sec in read_strtabs()
233 struct section *sec = &secs[i]; read_symtabs() local
258 struct section *sec = sec_lookup(".text"); read_relocs() local
267 struct section *sec = &secs[i]; read_relocs() local
300 struct section *sec = &secs[i]; remove_relocs() local
354 walk_relocs(int (*process)(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname)) walk_relocs() argument
365 struct section *sec = &secs[i]; walk_relocs() local
387 do_reloc(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname) do_reloc() argument
523 do_reloc_info(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym, const char *symname) do_reloc_info() argument
[all...]
/kernel/linux/linux-6.6/fs/reiserfs/
H A Dxattr_security.c46 struct reiserfs_security_handle *sec = fs_info; in reiserfs_initxattrs() local
48 sec->value = kmemdup(xattr_array->value, xattr_array->value_len, in reiserfs_initxattrs()
50 if (!sec->value) in reiserfs_initxattrs()
53 sec->name = xattr_array->name; in reiserfs_initxattrs()
54 sec->length = xattr_array->value_len; in reiserfs_initxattrs()
63 struct reiserfs_security_handle *sec) in reiserfs_security_init()
68 sec->name = NULL; in reiserfs_security_init()
69 sec->value = NULL; in reiserfs_security_init()
70 sec->length = 0; in reiserfs_security_init()
77 &reiserfs_initxattrs, sec); in reiserfs_security_init()
61 reiserfs_security_init(struct inode *dir, struct inode *inode, const struct qstr *qstr, struct reiserfs_security_handle *sec) reiserfs_security_init() argument
95 reiserfs_security_write(struct reiserfs_transaction_handle *th, struct inode *inode, struct reiserfs_security_handle *sec) reiserfs_security_write() argument
115 reiserfs_security_free(struct reiserfs_security_handle *sec) reiserfs_security_free() argument
[all...]
/kernel/linux/linux-5.10/arch/mips/boot/tools/
H A Drelocs.c273 struct section *sec = &secs[i]; in read_shdrs() local
275 sec->shdr_offset = ftell(fp); in read_shdrs()
279 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs()
280 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
281 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs()
282 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); in read_shdrs()
283 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs()
284 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs()
285 sec->shdr.sh_link = elf_word_to_cpu(shdr.sh_link); in read_shdrs()
286 sec in read_shdrs()
299 struct section *sec = &secs[i]; read_strtabs() local
324 struct section *sec = &secs[i]; read_symtabs() local
358 struct section *sec = sec_lookup(".text"); read_relocs() local
367 struct section *sec = &secs[i]; read_relocs() local
413 struct section *sec = &secs[i]; remove_relocs() local
467 walk_relocs(int (*process)(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname)) walk_relocs() argument
478 struct section *sec = &secs[i]; walk_relocs() local
500 do_reloc(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname) do_reloc() argument
636 do_reloc_info(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym, const char *symname) do_reloc_info() argument
[all...]
/kernel/linux/linux-6.6/arch/mips/boot/tools/
H A Drelocs.c273 struct section *sec = &secs[i]; in read_shdrs() local
275 sec->shdr_offset = ftell(fp); in read_shdrs()
279 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs()
280 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
281 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs()
282 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); in read_shdrs()
283 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs()
284 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs()
285 sec->shdr.sh_link = elf_word_to_cpu(shdr.sh_link); in read_shdrs()
286 sec in read_shdrs()
299 struct section *sec = &secs[i]; read_strtabs() local
324 struct section *sec = &secs[i]; read_symtabs() local
358 struct section *sec = sec_lookup(".text"); read_relocs() local
367 struct section *sec = &secs[i]; read_relocs() local
413 struct section *sec = &secs[i]; remove_relocs() local
467 walk_relocs(int (*process)(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname)) walk_relocs() argument
478 struct section *sec = &secs[i]; walk_relocs() local
500 do_reloc(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname) do_reloc() argument
636 do_reloc_info(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym, const char *symname) do_reloc_info() argument
[all...]
/kernel/linux/linux-5.10/net/mac802154/
H A Dllsec.c27 void mac802154_llsec_init(struct mac802154_llsec *sec) in mac802154_llsec_init() argument
29 memset(sec, 0, sizeof(*sec)); in mac802154_llsec_init()
31 memset(&sec->params.default_key_source, 0xFF, IEEE802154_ADDR_LEN); in mac802154_llsec_init()
33 INIT_LIST_HEAD(&sec->table.security_levels); in mac802154_llsec_init()
34 INIT_LIST_HEAD(&sec->table.devices); in mac802154_llsec_init()
35 INIT_LIST_HEAD(&sec->table.keys); in mac802154_llsec_init()
36 hash_init(sec->devices_short); in mac802154_llsec_init()
37 hash_init(sec->devices_hw); in mac802154_llsec_init()
38 rwlock_init(&sec in mac802154_llsec_init()
41 mac802154_llsec_destroy(struct mac802154_llsec *sec) mac802154_llsec_destroy() argument
73 mac802154_llsec_get_params(struct mac802154_llsec *sec, struct ieee802154_llsec_params *params) mac802154_llsec_get_params() argument
83 mac802154_llsec_set_params(struct mac802154_llsec *sec, const struct ieee802154_llsec_params *params, int changed) mac802154_llsec_set_params() argument
212 mac802154_llsec_key_add(struct mac802154_llsec *sec, const struct ieee802154_llsec_key_id *id, const struct ieee802154_llsec_key *key) mac802154_llsec_key_add() argument
268 mac802154_llsec_key_del(struct mac802154_llsec *sec, const struct ieee802154_llsec_key_id *key) mac802154_llsec_key_del() argument
305 llsec_dev_find_short(struct mac802154_llsec *sec, __le16 short_addr, __le16 pan_id) llsec_dev_find_short() argument
321 llsec_dev_find_long(struct mac802154_llsec *sec, __le64 hwaddr) llsec_dev_find_long() argument
350 mac802154_llsec_dev_add(struct mac802154_llsec *sec, const struct ieee802154_llsec_device *dev) mac802154_llsec_dev_add() argument
388 mac802154_llsec_dev_del(struct mac802154_llsec *sec, __le64 device_addr) mac802154_llsec_dev_del() argument
421 mac802154_llsec_devkey_add(struct mac802154_llsec *sec, __le64 dev_addr, const struct ieee802154_llsec_device_key *key) mac802154_llsec_devkey_add() argument
445 mac802154_llsec_devkey_del(struct mac802154_llsec *sec, __le64 dev_addr, const struct ieee802154_llsec_device_key *key) mac802154_llsec_devkey_del() argument
467 llsec_find_seclevel(const struct mac802154_llsec *sec, const struct ieee802154_llsec_seclevel *sl) llsec_find_seclevel() argument
487 mac802154_llsec_seclevel_add(struct mac802154_llsec *sec, const struct ieee802154_llsec_seclevel *sl) mac802154_llsec_seclevel_add() argument
506 mac802154_llsec_seclevel_del(struct mac802154_llsec *sec, const struct ieee802154_llsec_seclevel *sl) mac802154_llsec_seclevel_del() argument
521 llsec_recover_addr(struct mac802154_llsec *sec, struct ieee802154_addr *addr) llsec_recover_addr() argument
542 llsec_lookup_key(struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, const struct ieee802154_addr *addr, struct ieee802154_llsec_key_id *key_id) llsec_lookup_key() argument
596 llsec_geniv(u8 iv[16], __le64 addr, const struct ieee802154_sechdr *sec) llsec_geniv() argument
611 llsec_do_encrypt_unauth(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key) llsec_do_encrypt_unauth() argument
648 llsec_do_encrypt_auth(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key) llsec_do_encrypt_auth() argument
690 llsec_do_encrypt(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key) llsec_do_encrypt() argument
701 mac802154_llsec_encrypt(struct mac802154_llsec *sec, struct sk_buff *skb) mac802154_llsec_encrypt() argument
774 llsec_lookup_dev(struct mac802154_llsec *sec, const struct ieee802154_addr *addr) llsec_lookup_dev() argument
808 llsec_lookup_seclevel(const struct mac802154_llsec *sec, u8 frame_type, u8 cmd_frame_id, struct ieee802154_llsec_seclevel *rlevel) llsec_lookup_seclevel() argument
827 llsec_do_decrypt_unauth(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key, __le64 dev_addr) llsec_do_decrypt_unauth() argument
854 llsec_do_decrypt_auth(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key, __le64 dev_addr) llsec_do_decrypt_auth() argument
896 llsec_do_decrypt(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key, __le64 dev_addr) llsec_do_decrypt() argument
975 mac802154_llsec_decrypt(struct mac802154_llsec *sec, struct sk_buff *skb) mac802154_llsec_decrypt() argument
[all...]
/kernel/linux/linux-6.6/net/mac802154/
H A Dllsec.c27 void mac802154_llsec_init(struct mac802154_llsec *sec) in mac802154_llsec_init() argument
29 memset(sec, 0, sizeof(*sec)); in mac802154_llsec_init()
31 memset(&sec->params.default_key_source, 0xFF, IEEE802154_ADDR_LEN); in mac802154_llsec_init()
33 INIT_LIST_HEAD(&sec->table.security_levels); in mac802154_llsec_init()
34 INIT_LIST_HEAD(&sec->table.devices); in mac802154_llsec_init()
35 INIT_LIST_HEAD(&sec->table.keys); in mac802154_llsec_init()
36 hash_init(sec->devices_short); in mac802154_llsec_init()
37 hash_init(sec->devices_hw); in mac802154_llsec_init()
38 rwlock_init(&sec in mac802154_llsec_init()
41 mac802154_llsec_destroy(struct mac802154_llsec *sec) mac802154_llsec_destroy() argument
73 mac802154_llsec_get_params(struct mac802154_llsec *sec, struct ieee802154_llsec_params *params) mac802154_llsec_get_params() argument
83 mac802154_llsec_set_params(struct mac802154_llsec *sec, const struct ieee802154_llsec_params *params, int changed) mac802154_llsec_set_params() argument
212 mac802154_llsec_key_add(struct mac802154_llsec *sec, const struct ieee802154_llsec_key_id *id, const struct ieee802154_llsec_key *key) mac802154_llsec_key_add() argument
280 mac802154_llsec_key_del(struct mac802154_llsec *sec, const struct ieee802154_llsec_key_id *key) mac802154_llsec_key_del() argument
313 llsec_dev_find_short(struct mac802154_llsec *sec, __le16 short_addr, __le16 pan_id) llsec_dev_find_short() argument
329 llsec_dev_find_long(struct mac802154_llsec *sec, __le64 hwaddr) llsec_dev_find_long() argument
358 mac802154_llsec_dev_add(struct mac802154_llsec *sec, const struct ieee802154_llsec_device *dev) mac802154_llsec_dev_add() argument
396 mac802154_llsec_dev_del(struct mac802154_llsec *sec, __le64 device_addr) mac802154_llsec_dev_del() argument
429 mac802154_llsec_devkey_add(struct mac802154_llsec *sec, __le64 dev_addr, const struct ieee802154_llsec_device_key *key) mac802154_llsec_devkey_add() argument
453 mac802154_llsec_devkey_del(struct mac802154_llsec *sec, __le64 dev_addr, const struct ieee802154_llsec_device_key *key) mac802154_llsec_devkey_del() argument
475 llsec_find_seclevel(const struct mac802154_llsec *sec, const struct ieee802154_llsec_seclevel *sl) llsec_find_seclevel() argument
495 mac802154_llsec_seclevel_add(struct mac802154_llsec *sec, const struct ieee802154_llsec_seclevel *sl) mac802154_llsec_seclevel_add() argument
514 mac802154_llsec_seclevel_del(struct mac802154_llsec *sec, const struct ieee802154_llsec_seclevel *sl) mac802154_llsec_seclevel_del() argument
529 llsec_recover_addr(struct mac802154_llsec *sec, struct ieee802154_addr *addr) llsec_recover_addr() argument
550 llsec_lookup_key(struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, const struct ieee802154_addr *addr, struct ieee802154_llsec_key_id *key_id) llsec_lookup_key() argument
604 llsec_geniv(u8 iv[16], __le64 addr, const struct ieee802154_sechdr *sec) llsec_geniv() argument
619 llsec_do_encrypt_unauth(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key) llsec_do_encrypt_unauth() argument
656 llsec_do_encrypt_auth(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key) llsec_do_encrypt_auth() argument
698 llsec_do_encrypt(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key) llsec_do_encrypt() argument
709 mac802154_llsec_encrypt(struct mac802154_llsec *sec, struct sk_buff *skb) mac802154_llsec_encrypt() argument
785 llsec_lookup_dev(struct mac802154_llsec *sec, const struct ieee802154_addr *addr) llsec_lookup_dev() argument
819 llsec_lookup_seclevel(const struct mac802154_llsec *sec, u8 frame_type, u8 cmd_frame_id, struct ieee802154_llsec_seclevel *rlevel) llsec_lookup_seclevel() argument
838 llsec_do_decrypt_unauth(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key, __le64 dev_addr) llsec_do_decrypt_unauth() argument
865 llsec_do_decrypt_auth(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key, __le64 dev_addr) llsec_do_decrypt_auth() argument
907 llsec_do_decrypt(struct sk_buff *skb, const struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, struct mac802154_llsec_key *key, __le64 dev_addr) llsec_do_decrypt() argument
986 mac802154_llsec_decrypt(struct mac802154_llsec *sec, struct sk_buff *skb) mac802154_llsec_decrypt() argument
[all...]
/kernel/linux/linux-6.6/arch/x86/tools/
H A Drelocs.c288 struct section *sec = &secs[i]; in sym_lookup() local
294 if (sec->shdr.sh_type != SHT_SYMTAB) in sym_lookup()
297 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup()
298 symtab = sec->symtab; in sym_lookup()
299 strtab = sec->link->strtab; in sym_lookup()
451 struct section *sec = &secs[i]; in read_shdrs() local
455 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs()
456 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
457 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs()
458 sec in read_shdrs()
475 struct section *sec = &secs[i]; read_strtabs() local
501 struct section *sec = &secs[i]; read_symtabs() local
562 struct section *sec = &secs[i]; read_relocs() local
605 struct section *sec = &secs[i]; print_absolute_symbols() local
643 struct section *sec = &secs[i]; print_absolute_relocs() local
729 walk_relocs(int (*process)(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname)) walk_relocs() argument
739 struct section *sec = &secs[i]; walk_relocs() local
836 do_reloc64(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym, const char *symname) do_reloc64() argument
926 do_reloc32(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname) do_reloc32() argument
971 do_reloc_real(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname) do_reloc_real() argument
1155 do_reloc_info(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym, const char *symname) do_reloc_info() argument
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Dsecurity.c50 struct ib_device *dev = pp->sec->dev; in get_pkey_idx_qp_list()
68 struct ib_device *dev = pp->sec->dev; in get_pkey_and_subnet_prefix()
112 struct ib_qp_security *sec) in check_qp_port_pkey_settings()
130 sec); in check_qp_port_pkey_settings()
144 sec); in check_qp_port_pkey_settings()
153 static void qp_to_error(struct ib_qp_security *sec) in qp_to_error() argument
167 if (sec->destroying) in qp_to_error()
170 ib_modify_qp(sec->qp, in qp_to_error()
174 if (sec->qp->event_handler && sec in qp_to_error()
111 check_qp_port_pkey_settings(struct ib_ports_pkeys *pps, struct ib_qp_security *sec) check_qp_port_pkey_settings() argument
321 destroy_qp_security(struct ib_qp_security *sec) destroy_qp_security() argument
404 ib_close_shared_qp_security(struct ib_qp_security *sec) ib_close_shared_qp_security() argument
451 ib_destroy_qp_security_begin(struct ib_qp_security *sec) ib_destroy_qp_security_begin() argument
481 ib_destroy_qp_security_abort(struct ib_qp_security *sec) ib_destroy_qp_security_abort() argument
521 ib_destroy_qp_security_end(struct ib_qp_security *sec) ib_destroy_qp_security_end() argument
651 ib_security_pkey_access(struct ib_device *dev, u8 port_num, u16 pkey_index, void *sec) ib_security_pkey_access() argument
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/core/
H A Dsecurity.c50 struct ib_device *dev = pp->sec->dev; in get_pkey_idx_qp_list()
68 struct ib_device *dev = pp->sec->dev; in get_pkey_and_subnet_prefix()
112 struct ib_qp_security *sec) in check_qp_port_pkey_settings()
130 sec); in check_qp_port_pkey_settings()
144 sec); in check_qp_port_pkey_settings()
153 static void qp_to_error(struct ib_qp_security *sec) in qp_to_error() argument
167 if (sec->destroying) in qp_to_error()
170 ib_modify_qp(sec->qp, in qp_to_error()
174 if (sec->qp->event_handler && sec in qp_to_error()
111 check_qp_port_pkey_settings(struct ib_ports_pkeys *pps, struct ib_qp_security *sec) check_qp_port_pkey_settings() argument
321 destroy_qp_security(struct ib_qp_security *sec) destroy_qp_security() argument
404 ib_close_shared_qp_security(struct ib_qp_security *sec) ib_close_shared_qp_security() argument
451 ib_destroy_qp_security_begin(struct ib_qp_security *sec) ib_destroy_qp_security_begin() argument
481 ib_destroy_qp_security_abort(struct ib_qp_security *sec) ib_destroy_qp_security_abort() argument
521 ib_destroy_qp_security_end(struct ib_qp_security *sec) ib_destroy_qp_security_end() argument
651 ib_security_pkey_access(struct ib_device *dev, u32 port_num, u16 pkey_index, void *sec) ib_security_pkey_access() argument
[all...]
/kernel/linux/linux-5.10/arch/x86/tools/
H A Drelocs.c277 struct section *sec = &secs[i]; in sym_lookup() local
283 if (sec->shdr.sh_type != SHT_SYMTAB) in sym_lookup()
286 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup()
287 symtab = sec->symtab; in sym_lookup()
288 strtab = sec->link->strtab; in sym_lookup()
423 struct section *sec = &secs[i]; in read_shdrs() local
427 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs()
428 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
429 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs()
430 sec in read_shdrs()
447 struct section *sec = &secs[i]; read_strtabs() local
472 struct section *sec = &secs[i]; read_symtabs() local
505 struct section *sec = &secs[i]; read_relocs() local
548 struct section *sec = &secs[i]; print_absolute_symbols() local
586 struct section *sec = &secs[i]; print_absolute_relocs() local
664 walk_relocs(int (*process)(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname)) walk_relocs() argument
674 struct section *sec = &secs[i]; walk_relocs() local
769 do_reloc64(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym, const char *symname) do_reloc64() argument
859 do_reloc32(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname) do_reloc32() argument
904 do_reloc_real(struct section *sec, Elf_Rel *rel, Elf_Sym *sym, const char *symname) do_reloc_real() argument
1088 do_reloc_info(struct section *sec, Elf_Rel *rel, ElfW(Sym) *sym, const char *symname) do_reloc_info() argument
[all...]
/kernel/linux/linux-6.6/tools/objtool/include/objtool/
H A Delf.h55 struct section *sec; member
76 struct section *sec; member
117 struct reloc *elf_init_reloc_text_sym(struct elf *elf, struct section *sec,
123 struct reloc *elf_init_reloc_data_sym(struct elf *elf, struct section *sec,
129 int elf_write_insn(struct elf *elf, struct section *sec,
136 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset);
137 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset);
139 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset);
140 int find_symbol_hole_containing(const struct section *sec, unsigned long offset);
141 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigne
176 is_reloc_sec(struct section *sec) is_reloc_sec() argument
181 sec_changed(struct section *sec) sec_changed() argument
186 mark_sec_changed(struct elf *elf, struct section *sec, bool changed) mark_sec_changed() argument
193 sec_num_entries(struct section *sec) sec_num_entries() argument
331 sec_offset_hash(struct section *sec, unsigned long offset) sec_offset_hash() argument
[all...]
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dlinker.c164 static int linker_sanity_check_elf_symtab(struct src_obj *obj, struct src_sec *sec);
165 static int linker_sanity_check_elf_relos(struct src_obj *obj, struct src_sec *sec);
201 struct dst_sec *sec = &linker->secs[i]; in bpf_linker__free() local
203 free(sec->sec_name); in bpf_linker__free()
204 free(sec->raw_data); in bpf_linker__free()
205 free(sec->sec_vars); in bpf_linker__free()
207 free(sec->func_info.recs); in bpf_linker__free()
208 free(sec->line_info.recs); in bpf_linker__free()
209 free(sec->core_relo_info.recs); in bpf_linker__free()
249 struct dst_sec *secs = linker->secs, *sec; in add_dst_sec() local
299 struct dst_sec *sec; init_output_elf() local
479 is_ignored_sec(struct src_sec *sec) is_ignored_sec() argument
518 struct src_sec *secs = obj->secs, *sec; add_src_sec() local
554 struct src_sec *sec; linker_load_obj_file() local
702 struct src_sec *sec; linker_sanity_check_elf() local
763 linker_sanity_check_elf_symtab(struct src_obj *obj, struct src_sec *sec) linker_sanity_check_elf_symtab() argument
837 linker_sanity_check_elf_relos(struct src_obj *obj, struct src_sec *sec) linker_sanity_check_elf_relos() argument
1036 struct dst_sec *sec; find_dst_sec_by_name() local
1152 is_data_sec(struct src_sec *sec) is_data_sec() argument
1162 is_relo_sec(struct src_sec *sec) is_relo_sec() argument
1729 struct src_sec *sec; find_src_sec_by_name() local
2072 struct src_sec *sec = &obj->secs[src_sym->st_shndx]; linker_append_elf_relos() local
2133 struct src_sec *sec; linker_fixup_btf() local
2556 struct dst_sec *sec; bpf_linker__finalize() local
2670 struct dst_sec *sec = &linker->secs[i]; finalize_btf() local
2770 struct dst_sec *sec = &linker->secs[i]; finalize_btf_ext() local
2848 struct dst_sec *sec = &linker->secs[i]; finalize_btf_ext() local
2865 struct dst_sec *sec = &linker->secs[i]; finalize_btf_ext() local
2882 struct dst_sec *sec = &linker->secs[i]; finalize_btf_ext() local
[all...]
/kernel/linux/linux-5.10/fs/reiserfs/
H A Dxattr_security.c46 struct reiserfs_security_handle *sec) in reiserfs_security_init()
51 sec->name = NULL; in reiserfs_security_init()
52 sec->value = NULL; in reiserfs_security_init()
58 error = security_old_inode_init_security(inode, dir, qstr, &sec->name, in reiserfs_security_init()
59 &sec->value, &sec->length); in reiserfs_security_init()
64 sec->name = NULL; in reiserfs_security_init()
65 sec->value = NULL; in reiserfs_security_init()
66 sec->length = 0; in reiserfs_security_init()
70 if (sec in reiserfs_security_init()
44 reiserfs_security_init(struct inode *dir, struct inode *inode, const struct qstr *qstr, struct reiserfs_security_handle *sec) reiserfs_security_init() argument
80 reiserfs_security_write(struct reiserfs_transaction_handle *th, struct inode *inode, struct reiserfs_security_handle *sec) reiserfs_security_write() argument
100 reiserfs_security_free(struct reiserfs_security_handle *sec) reiserfs_security_free() argument
[all...]
/kernel/linux/linux-5.10/drivers/nvdimm/
H A Dsecurity.c145 if (!nvdimm->sec.ops->change_key) in nvdimm_key_revalidate()
154 rc = nvdimm->sec.ops->change_key(nvdimm, data, data, NVDIMM_USER); in nvdimm_key_revalidate()
161 nvdimm->sec.flags = nvdimm_security_flags(nvdimm, NVDIMM_USER); in nvdimm_key_revalidate()
176 if (!nvdimm->sec.ops || !nvdimm->sec.ops->unlock in __nvdimm_security_unlock()
177 || !nvdimm->sec.flags) in __nvdimm_security_unlock()
181 if (test_bit(NVDIMM_SECURITY_DISABLED, &nvdimm->sec.flags)) in __nvdimm_security_unlock()
196 if (test_bit(NVDIMM_SECURITY_UNLOCKED, &nvdimm->sec.flags)) { in __nvdimm_security_unlock()
204 rc = nvdimm->sec.ops->unlock(nvdimm, data); in __nvdimm_security_unlock()
209 nvdimm->sec in __nvdimm_security_unlock()
[all...]

Completed in 21 milliseconds

12345678910>>...34