| /linux-6.15/drivers/fpga/ |
| H A D | intel-m10-bmc-sec-update.c | 331 ret = sec->ops->rsu_status(sec); in m10bmc_sec_progress_status() 473 ret = sec->ops->rsu_status(sec); in rsu_send_data() 541 if (sec->m10bmc->flash_bulk_ops->lock_write(sec->m10bmc)) in m10bmc_sec_prepare() 572 sec->m10bmc->flash_bulk_ops->unlock_write(sec->m10bmc); in m10bmc_sec_prepare() 666 sec->m10bmc->flash_bulk_ops->unlock_write(sec->m10bmc); in m10bmc_sec_cleanup() 694 sec = devm_kzalloc(&pdev->dev, sizeof(*sec), GFP_KERNEL); in m10bmc_sec_probe() 695 if (!sec) in m10bmc_sec_probe() 703 ret = xa_alloc(&fw_upload_xa, &sec->fw_name_id, sec, in m10bmc_sec_probe() 709 sec->fw_name_id); in m10bmc_sec_probe() 716 fwl = firmware_upload_register(THIS_MODULE, sec->dev, sec->fw_name, in m10bmc_sec_probe() [all …]
|
| /linux-6.15/crypto/ |
| H A D | tcrypt.c | 62 static unsigned int sec; variable 2239 test_aead_speed("gcm(aes)", ENCRYPT, sec, in do_test() 2243 test_aead_speed("gcm(aes)", DECRYPT, sec, in do_test() 2329 ENCRYPT, sec, NULL, 0, in do_test() 2332 DECRYPT, sec, NULL, 0, in do_test() 2337 test_aead_speed("aegis128", ENCRYPT, sec, in do_test() 2497 test_hash_speed("streebog256", sec, in do_test() 2502 test_hash_speed("streebog512", sec, in do_test() 2608 test_mb_ahash_speed("streebog256", sec, in do_test() 2613 test_mb_ahash_speed("streebog512", sec, in do_test() [all …]
|
| /linux-6.15/drivers/firmware/google/ |
| H A D | vpd.c | 175 ret = vpd_decode_string(sec->bin_attr.size, sec->baseaddr, in vpd_section_create_attribs() 188 if (!sec->baseaddr) in vpd_section_init() 191 sec->name = name; in vpd_section_init() 195 if (!sec->raw_name) { in vpd_section_init() 201 sec->bin_attr.attr.name = sec->raw_name; in vpd_section_init() 205 sec->bin_attr.private = sec; in vpd_section_init() 212 if (!sec->kobj) { in vpd_section_init() 220 sec->enabled = true; in vpd_section_init() 227 kfree(sec->raw_name); in vpd_section_init() 235 if (sec->enabled) { in vpd_section_destroy() [all …]
|
| /linux-6.15/net/mac802154/ |
| H A D | llsec.c | 29 memset(sec, 0, sizeof(*sec)); 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->lock); in mac802154_llsec_init() 76 read_lock_bh(&sec->lock); in mac802154_llsec_get_params() 77 *params = sec->params; in mac802154_llsec_get_params() 78 read_unlock_bh(&sec->lock); in mac802154_llsec_get_params() 87 write_lock_bh(&sec->lock); in mac802154_llsec_set_params() 613 iv[13] = sec->level; in llsec_geniv() 629 llsec_geniv(iv, sec->params.hwaddr, &hdr->sec); in llsec_do_encrypt_unauth() [all …]
|
| H A D | llsec.h | 64 void mac802154_llsec_init(struct mac802154_llsec *sec); 65 void mac802154_llsec_destroy(struct mac802154_llsec *sec); 67 int mac802154_llsec_get_params(struct mac802154_llsec *sec, 69 int mac802154_llsec_set_params(struct mac802154_llsec *sec, 73 int mac802154_llsec_key_add(struct mac802154_llsec *sec, 76 int mac802154_llsec_key_del(struct mac802154_llsec *sec, 79 int mac802154_llsec_dev_add(struct mac802154_llsec *sec, 81 int mac802154_llsec_dev_del(struct mac802154_llsec *sec, 84 int mac802154_llsec_devkey_add(struct mac802154_llsec *sec, 87 int mac802154_llsec_devkey_del(struct mac802154_llsec *sec, [all …]
|
| /linux-6.15/tools/objtool/ |
| H A D | elf.c | 136 return sec; in find_section_by_name() 361 if (sec->sh.sh_size != 0 && !is_dwarf_section(sec)) { in read_sections() 368 sec->data->d_size != sec->sh.sh_size) { in read_sections() 375 elf_hash_add(section, &sec->hash, sec->idx); in read_sections() 560 if (sym->sec == pfunc->sec && in read_symbols() 803 sym->sec = sec; in elf_create_section_symbol() 835 sym->sec = orig->sec; in elf_create_prefix_symbol() 1092 sec = malloc(sizeof(*sec)); in elf_create_section() 1097 memset(sec, 0, sizeof(*sec)); in elf_create_section() 1157 elf_hash_add(section, &sec->hash, sec->idx); in elf_create_section() [all …]
|
| H A D | special.c | 21 const char *sec; member 31 .sec = ".altinstructions", 41 .sec = "__jump_table", 49 .sec = "__ex_table", 64 *sec = reloc->sym->sec; in reloc_to_sec_off() 69 struct section *sec, int idx, in get_alt_entry() argument 133 struct section *sec; in special_get_alts() local 140 for (entry = entries; entry->sec; entry++) { in special_get_alts() 141 sec = find_section_by_name(elf, entry->sec); in special_get_alts() 142 if (!sec) in special_get_alts() [all …]
|
| H A D | orc_gen.c | 25 struct section *sec, unsigned long offset) in orc_list_add() argument 35 entry->insn_sec = sec; in orc_list_add() 51 struct section *sec, *orc_sec; in orc_create() local 60 for_each_sec(file, sec) { in orc_create() 65 if (!sec->text) in orc_create() 68 sec_for_each_insn(file, sec, insn) { in orc_create() 77 if (orc_list_add(&orc_list, &orc, sec, in orc_create() 102 if (orc_list_add(&orc_list, &orc, insn->sec, in orc_create() 116 orc_list_add(&orc_list, &null, sec, sec->sh.sh_size); in orc_create() 125 if (sec) { in orc_create() [all …]
|
| H A D | check.c | 43 if (insn->sec == sec && insn->offset == offset) in find_insn() 476 insn->sec = sec; in decode_instructions() 655 if (!sec) in create_static_call_sections() 737 if (!sec) in create_retpoline_sites_sections() 775 if (!sec) in create_return_sites_sections() 819 if (!sec) in create_ibt_endbr_seal_sections() 875 if (!sec) in create_cfi_sections() 920 if (!sec) in create_mcount_loc_sections() 965 if (!sec) in create_direct_call_sections() 2022 if (reloc->sym->sec == pfunc->sec && in add_jump_table() [all …]
|
| /linux-6.15/arch/mips/boot/tools/ |
| H A D | relocs.c | 290 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs() 304 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs() 305 if (!sec->strtab) in read_strtabs() 313 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) != in read_strtabs() 328 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs() 329 if (!sec->symtab) in read_symtabs() 337 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) != in read_symtabs() 360 if (!sec) in read_relocs() 372 sec->reltab = malloc(sec->shdr.sh_size); in read_relocs() 373 if (!sec->reltab) in read_relocs() [all …]
|
| /linux-6.15/drivers/infiniband/core/ |
| H A D | security.c | 130 sec); in check_qp_port_pkey_settings() 144 sec); in check_qp_port_pkey_settings() 174 if (sec->qp->event_handler && sec->qp->qp_context) { in qp_to_error() 254 dev = pp->sec->dev; in port_pkey_list_insert() 325 kfree(sec); in destroy_qp_security() 454 if (!sec) in ib_destroy_qp_security_begin() 476 sec->error_comps_pending = atomic_read(&sec->error_list_count); in ib_destroy_qp_security_begin() 487 if (!sec) in ib_destroy_qp_security_abort() 514 ret = check_qp_port_pkey_settings(sec->ports_pkeys, sec); in ib_destroy_qp_security_abort() 526 if (!sec) in ib_destroy_qp_security_end() [all …]
|
| /linux-6.15/arch/x86/tools/ |
| H A D | relocs.c | 440 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs() 455 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs() 456 if (!sec->strtab) in read_strtabs() 462 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) != sec->shdr.sh_size) in read_strtabs() 477 sec->xsymtab = malloc(sec->shdr.sh_size); in read_symtabs() 484 if (fread(sec->xsymtab, 1, sec->shdr.sh_size, fp) != sec->shdr.sh_size) in read_symtabs() 493 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs() 500 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) != sec->shdr.sh_size) in read_symtabs() 531 sec->reltab = malloc(sec->shdr.sh_size); in read_relocs() 532 if (!sec->reltab) in read_relocs() [all …]
|
| /linux-6.15/arch/powerpc/boot/dts/fsl/ |
| H A D | qoriq-sec5.3-0.dtsi | 36 compatible = "fsl,sec-v5.3", "fsl,sec-v5.0", "fsl,sec-v4.0"; 37 fsl,sec-era = <4>; 46 "fsl,sec-v5.0-job-ring", 47 "fsl,sec-v4.0-job-ring"; 54 "fsl,sec-v5.0-job-ring", 55 "fsl,sec-v4.0-job-ring"; 62 "fsl,sec-v5.0-job-ring", 63 "fsl,sec-v4.0-job-ring"; 78 "fsl,sec-v5.0-rtic", 79 "fsl,sec-v4.0-rtic"; [all …]
|
| H A D | qoriq-sec5.2-0.dtsi | 36 compatible = "fsl,sec-v5.2", "fsl,sec-v5.0", "fsl,sec-v4.0"; 37 fsl,sec-era = <5>; 46 "fsl,sec-v5.0-job-ring", 47 "fsl,sec-v4.0-job-ring"; 54 "fsl,sec-v5.0-job-ring", 55 "fsl,sec-v4.0-job-ring"; 62 "fsl,sec-v5.0-job-ring", 63 "fsl,sec-v4.0-job-ring"; 78 "fsl,sec-v5.0-rtic", 79 "fsl,sec-v4.0-rtic"; [all …]
|
| H A D | qoriq-sec5.0-0.dtsi | 36 compatible = "fsl,sec-v5.0", "fsl,sec-v4.0"; 37 fsl,sec-era = <5>; 46 "fsl,sec-v4.0-job-ring"; 53 "fsl,sec-v4.0-job-ring"; 60 "fsl,sec-v4.0-job-ring"; 67 "fsl,sec-v4.0-job-ring"; 73 compatible = "fsl,sec-v5.0-rtic", 74 "fsl,sec-v4.0-rtic"; 82 "fsl,sec-v4.0-rtic-memory"; 88 "fsl,sec-v4.0-rtic-memory"; [all …]
|
| H A D | qoriq-sec4.2-0.dtsi | 36 compatible = "fsl,sec-v4.2", "fsl,sec-v4.0"; 37 fsl,sec-era = <3>; 46 "fsl,sec-v4.0-job-ring"; 53 "fsl,sec-v4.0-job-ring"; 60 "fsl,sec-v4.0-job-ring"; 67 "fsl,sec-v4.0-job-ring"; 73 compatible = "fsl,sec-v4.2-rtic", 74 "fsl,sec-v4.0-rtic"; 82 "fsl,sec-v4.0-rtic-memory"; 88 "fsl,sec-v4.0-rtic-memory"; [all …]
|
| /linux-6.15/tools/lib/bpf/ |
| H A D | linker.c | 400 sec->shdr = elf64_getshdr(sec->scn); in init_output_elf() 404 sec->data = elf_newdata(sec->scn); in init_output_elf() 414 sec->sec_idx = elf_ndxscn(sec->scn); in init_output_elf() 425 sec->shdr->sh_size = sec->sec_sz = 0; in init_output_elf() 439 sec->shdr = elf64_getshdr(sec->scn); in init_output_elf() 443 sec->data = elf_newdata(sec->scn); in init_output_elf() 455 sec->sec_idx = elf_ndxscn(sec->scn); in init_output_elf() 1244 if (!sec || sec->ephemeral) in is_exec_sec() 1339 if (!sec || sec->skipped) in is_data_sec() 1349 if (!sec || sec->skipped || sec->ephemeral) in is_relo_sec() [all …]
|
| /linux-6.15/tools/objtool/include/objtool/ |
| H A D | elf.h | 55 struct section *sec; member 79 struct section *sec; member 181 return sec->sh.sh_type == SHT_RELA || sec->sh.sh_type == SHT_REL; in is_reloc_sec() 186 return sec->_changed; in sec_changed() 192 sec->_changed = changed; in mark_sec_changed() 198 return sec->sh.sh_size / sec->sh.sh_entsize; in sec_num_entries() 203 return reloc - reloc->sec->relocs; in reloc_idx() 208 struct section *rsec = reloc->sec; in reloc_rel() 221 return reloc->sec->sh.sh_entsize < 16; in is_32bit_reloc() 326 #define for_each_sec(file, sec) \ argument [all …]
|
| H A D | warn.h | 22 bool is_text = (sec->sh.sh_flags & SHF_EXECINSTR); in offstr() 28 sym = find_func_containing(sec, offset); in offstr() 30 sym = find_symbol_containing(sec, offset); in offstr() 36 sprintf(str+len, " (%s+0x%lx)", sec->name, offset); in offstr() 38 str = malloc(strlen(sec->name) + 20); in offstr() 39 sprintf(str, "%s+0x%lx", sec->name, offset); in offstr() 67 char *_str = offstr(sec, offset); \ 75 #define WARN_FUNC(sec, offset, format, ...) __WARN_FUNC(WARN_STR, sec, offset, format, ##__VA_ARGS_… argument 81 WARN_FUNC(_insn->sec, _insn->offset, format, \ 91 char *_str = offstr(_insn->sec, _insn->offset); \ [all …]
|
| /linux-6.15/fs/hpfs/ |
| H A D | alloc.c | 74 if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f)) & 1) { in chk_if_allocated() 205 secno sec; in hpfs_alloc_sector() local 257 sec = 0; in hpfs_alloc_sector() 259 if (sec) { in hpfs_alloc_sector() 265 if (sec && f_p) { in hpfs_alloc_sector() 269 sec = 0; in hpfs_alloc_sector() 274 return sec; in hpfs_alloc_sector() 280 secno sec; in alloc_in_dirband() local 302 bmp[(sec & 0x3fff) >> 5] &= cpu_to_le32(~(1 << (sec & 0x1f))); in hpfs_alloc_if_possible() 322 if (sec < 0x12) { in hpfs_free_sectors() [all …]
|
| /linux-6.15/net/rxrpc/ |
| H A D | server_key.c | 69 const struct rxrpc_security *sec; in rxrpc_preparse_s() local 81 sec = rxrpc_security_lookup(sec_class); in rxrpc_preparse_s() 82 if (!sec) in rxrpc_preparse_s() 87 if (!sec->preparse_server_key) in rxrpc_preparse_s() 90 return sec->preparse_server_key(prep); in rxrpc_preparse_s() 97 if (sec && sec->free_preparse_server_key) in rxrpc_free_preparse_s() 98 sec->free_preparse_server_key(prep); in rxrpc_free_preparse_s() 105 if (sec && sec->destroy_server_key) in rxrpc_destroy_s() 106 sec->destroy_server_key(key); in rxrpc_destroy_s() 114 if (sec && sec->describe_server_key) in rxrpc_describe_s() [all …]
|
| /linux-6.15/drivers/nvdimm/ |
| H A D | security.c | 176 if (!nvdimm->sec.ops || !nvdimm->sec.ops->unlock in __nvdimm_security_unlock() 177 || !nvdimm->sec.flags) in __nvdimm_security_unlock() 236 nvdimm->sec.flags); in check_security_state() 260 if (!nvdimm->sec.ops || !nvdimm->sec.flags) in security_disable() 309 if (!nvdimm->sec.ops || !nvdimm->sec.ops->change_key in security_update() 310 || !nvdimm->sec.flags) in security_update() 358 if (!nvdimm->sec.ops || !nvdimm->sec.ops->erase in security_erase() 359 || !nvdimm->sec.flags) in security_erase() 401 if (!nvdimm->sec.ops || !nvdimm->sec.ops->overwrite in security_overwrite() 402 || !nvdimm->sec.flags) in security_overwrite() [all …]
|
| /linux-6.15/drivers/net/wireless/intel/ipw2x00/ |
| H A D | libipw_wx.c | 344 sec.enabled = 0; in libipw_wx_set_encode() 345 sec.encrypt = 0; in libipw_wx_set_encode() 353 sec.enabled = 1; in libipw_wx_set_encode() 354 sec.encrypt = 1; in libipw_wx_set_encode() 465 struct libipw_security *sec = &ieee->sec; in libipw_wx_get_encode() local 479 if (!sec->enabled) { in libipw_wx_get_encode() 548 sec.enabled = 0; in libipw_wx_set_encodeext() 549 sec.encrypt = 0; in libipw_wx_set_encodeext() 556 sec.enabled = 1; in libipw_wx_set_encodeext() 557 sec.encrypt = 1; in libipw_wx_set_encodeext() [all …]
|
| /linux-6.15/drivers/net/wireless/realtek/rtw88/ |
| H A D | sec.c | 9 int rtw_sec_get_free_cam(struct rtw_sec_desc *sec) in rtw_sec_get_free_cam() argument 15 if (sec->default_key_search) in rtw_sec_get_free_cam() 23 struct rtw_sec_desc *sec, in rtw_sec_write_cam() argument 28 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_write_cam() 35 set_bit(hw_key_idx, sec->cam_map); in rtw_sec_write_cam() 83 struct rtw_sec_desc *sec, in rtw_sec_clear_cam() argument 91 clear_bit(hw_key_idx, sec->cam_map); in rtw_sec_clear_cam() 105 struct rtw_sec_desc *sec = &rtwdev->sec; in rtw_sec_cam_pg_backup() local 126 struct rtw_sec_desc *sec = &rtwdev->sec; in rtw_sec_enable_sec_engine() local 131 sec->default_key_search = true; in rtw_sec_enable_sec_engine() [all …]
|
| /linux-6.15/arch/s390/tools/ |
| H A D | relocs.c | 195 struct section *sec = &secs[i]; in read_shdrs() local 213 if (sec->shdr.sh_link < shnum) in read_shdrs() 214 sec->link = &secs[sec->shdr.sh_link]; in read_shdrs() 224 struct section *sec = &secs[i]; in read_relocs() local 229 sec->reltab = malloc(sec->shdr.sh_size); in read_relocs() 230 if (!sec->reltab) in read_relocs() 236 if (fread(sec->reltab, 1, sec->shdr.sh_size, fp) != sec->shdr.sh_size) in read_relocs() 240 Elf_Rel *rel = &sec->reltab[j]; in read_relocs() 301 struct section *sec = &secs[i]; in walk_relocs() local 311 Elf_Rel *rel = &sec->reltab[j]; in walk_relocs() [all …]
|