| /kernel/linux/linux-6.6/drivers/fpga/ |
| D | intel-m10-bmc-sec-update.c | 20 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 = dev_get_drvdata(dev); in show_root_entry_hash() local [all …]
|
| /kernel/linux/linux-5.10/tools/objtool/ |
| D | elf.c | 132 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->symbol_tree, node, &offset, symbol_by_offset) { in find_symbol_by_offset() [all …]
|
| /kernel/linux/linux-6.6/net/mac802154/ |
| D | llsec.c | 27 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->lock); in mac802154_llsec_init() 41 void mac802154_llsec_destroy(struct mac802154_llsec *sec) in mac802154_llsec_destroy() argument [all …]
|
| /kernel/linux/linux-5.10/net/mac802154/ |
| D | llsec.c | 27 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->lock); in mac802154_llsec_init() 41 void mac802154_llsec_destroy(struct mac802154_llsec *sec) in mac802154_llsec_destroy() argument [all …]
|
| /kernel/linux/linux-6.6/crypto/ |
| D | tcrypt.c | 62 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, NULL, 0, in do_test() 1869 test_cipher_speed("lrw(aes)", DECRYPT, sec, NULL, 0, in do_test() 1871 test_cipher_speed("xts(aes)", ENCRYPT, sec, NULL, 0, in do_test() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/crypto/ |
| D | fsl-sec2.txt | 1 Freescale SoC SEC Security Engines versions 1.x-2.x-3.x 6 SEC versions, high to low, e.g., "fsl,sec2.1", "fsl,sec2.0" (SEC2/3) 10 - interrupts : the SEC's interrupt number 17 should be encoded following the SEC's Descriptor Header Dword 21 bit 1 = set if SEC has the ARC4 EU (AFEU) 22 bit 2 = set if SEC has the DES/3DES EU (DEU) 23 bit 3 = set if SEC has the message digest EU (MDEU/MDEU-A) 24 bit 4 = set if SEC has the random number generator EU (RNG) 25 bit 5 = set if SEC has the public key EU (PKEU) 26 bit 6 = set if SEC has the AES EU (AESU) [all …]
|
| D | fsl-sec6.txt | 1 SEC 6 is as Freescale's Cryptographic Accelerator and Assurance Module (CAAM). 2 Currently Freescale powerpc chip C29X is embedded with SEC 6. 3 SEC 6 device tree binding include: 4 -SEC 6 Node 9 SEC 6 Node 13 Node defines the base address of the SEC 6 block. 15 configuration registers for the SEC 6 block. 16 For example, In C293, we could see three SEC 6 node. 23 Definition: Must include "fsl,sec-v6.0". 25 - fsl,sec-era [all …]
|
| D | fsl,sec-v4.0.yaml | 5 $id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0.yaml# 8 title: Freescale SEC 4 16 NOTE: the SEC 4 is also known as Freescale's Cryptographic Accelerator 19 SEC 4 h/w can process requests from 2 types of sources. 20 1. DPAA Queue Interface (HW interface between Queue Manager & SEC 4). 21 2. Job Rings (HW interface between cores & SEC 4 registers). 25 HW interface between QM & SEC 4 and also BM & SEC 4, on DPAA-enabled parts 28 SEC version. E.g., the SEC 4.0 in the P4080 has 5 DECOs and can thus 41 - const: fsl,sec-v5.4 42 - const: fsl,sec-v5.0 [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/crypto/ |
| D | fsl-sec2.txt | 1 Freescale SoC SEC Security Engines versions 1.x-2.x-3.x 6 SEC versions, high to low, e.g., "fsl,sec2.1", "fsl,sec2.0" (SEC2/3) 10 - interrupts : the SEC's interrupt number 17 should be encoded following the SEC's Descriptor Header Dword 21 bit 1 = set if SEC has the ARC4 EU (AFEU) 22 bit 2 = set if SEC has the DES/3DES EU (DEU) 23 bit 3 = set if SEC has the message digest EU (MDEU/MDEU-A) 24 bit 4 = set if SEC has the random number generator EU (RNG) 25 bit 5 = set if SEC has the public key EU (PKEU) 26 bit 6 = set if SEC has the AES EU (AESU) [all …]
|
| D | fsl-sec6.txt | 1 SEC 6 is as Freescale's Cryptographic Accelerator and Assurance Module (CAAM). 2 Currently Freescale powerpc chip C29X is embedded with SEC 6. 3 SEC 6 device tree binding include: 4 -SEC 6 Node 9 SEC 6 Node 13 Node defines the base address of the SEC 6 block. 15 configuration registers for the SEC 6 block. 16 For example, In C293, we could see three SEC 6 node. 23 Definition: Must include "fsl,sec-v6.0". 25 - fsl,sec-era [all …]
|
| /kernel/linux/linux-6.6/arch/powerpc/boot/dts/fsl/ |
| D | qoriq-sec5.3-0.dtsi | 2 * QorIQ Sec/Crypto 5.3 device tree stub [ controller @ offset 0x300000 ] 36 compatible = "fsl,sec-v5.3", "fsl,sec-v5.0", "fsl,sec-v4.0"; 37 fsl,sec-era = <4>; 45 compatible = "fsl,sec-v5.3-job-ring", 46 "fsl,sec-v5.0-job-ring", 47 "fsl,sec-v4.0-job-ring"; 53 compatible = "fsl,sec-v5.3-job-ring", 54 "fsl,sec-v5.0-job-ring", 55 "fsl,sec-v4.0-job-ring"; 61 compatible = "fsl,sec-v5.3-job-ring", [all …]
|
| D | qoriq-sec5.2-0.dtsi | 2 * QorIQ Sec/Crypto 5.2 device tree stub [ controller @ offset 0x300000 ] 36 compatible = "fsl,sec-v5.2", "fsl,sec-v5.0", "fsl,sec-v4.0"; 37 fsl,sec-era = <5>; 45 compatible = "fsl,sec-v5.2-job-ring", 46 "fsl,sec-v5.0-job-ring", 47 "fsl,sec-v4.0-job-ring"; 53 compatible = "fsl,sec-v5.2-job-ring", 54 "fsl,sec-v5.0-job-ring", 55 "fsl,sec-v4.0-job-ring"; 61 compatible = "fsl,sec-v5.2-job-ring", [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/boot/dts/fsl/ |
| D | qoriq-sec5.3-0.dtsi | 2 * QorIQ Sec/Crypto 5.3 device tree stub [ controller @ offset 0x300000 ] 36 compatible = "fsl,sec-v5.3", "fsl,sec-v5.0", "fsl,sec-v4.0"; 37 fsl,sec-era = <4>; 45 compatible = "fsl,sec-v5.3-job-ring", 46 "fsl,sec-v5.0-job-ring", 47 "fsl,sec-v4.0-job-ring"; 53 compatible = "fsl,sec-v5.3-job-ring", 54 "fsl,sec-v5.0-job-ring", 55 "fsl,sec-v4.0-job-ring"; 61 compatible = "fsl,sec-v5.3-job-ring", [all …]
|
| D | qoriq-sec5.2-0.dtsi | 2 * QorIQ Sec/Crypto 5.2 device tree stub [ controller @ offset 0x300000 ] 36 compatible = "fsl,sec-v5.2", "fsl,sec-v5.0", "fsl,sec-v4.0"; 37 fsl,sec-era = <5>; 45 compatible = "fsl,sec-v5.2-job-ring", 46 "fsl,sec-v5.0-job-ring", 47 "fsl,sec-v4.0-job-ring"; 53 compatible = "fsl,sec-v5.2-job-ring", 54 "fsl,sec-v5.0-job-ring", 55 "fsl,sec-v4.0-job-ring"; 61 compatible = "fsl,sec-v5.2-job-ring", [all …]
|
| /kernel/linux/linux-5.10/drivers/firmware/google/ |
| D | vpd.c | 100 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 [all …]
|
| /kernel/linux/linux-6.6/drivers/firmware/google/ |
| D | vpd.c | 100 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 [all …]
|
| /kernel/linux/linux-5.10/crypto/ |
| D | tcrypt.c | 59 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, NULL, 0, in do_test() 2055 test_cipher_speed("lrw(aes)", DECRYPT, sec, NULL, 0, in do_test() 2057 test_cipher_speed("xts(aes)", ENCRYPT, sec, NULL, 0, in do_test() [all …]
|
| /kernel/linux/linux-6.6/tools/objtool/ |
| D | elf.c | 134 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->symbol_tree; in find_symbol_by_offset() [all …]
|
| /kernel/linux/linux-5.10/samples/bpf/ |
| D | spintest_kern.c | 20 } my_map SEC(".maps"); 26 } my_map2 SEC(".maps"); 33 } stackmap SEC(".maps"); 49 SEC("kprobe/spin_unlock")PROG(p1) 50 SEC("kprobe/spin_lock")PROG(p2) 51 SEC("kprobe/mutex_spin_on_owner")PROG(p3) 52 SEC("kprobe/rwsem_spin_on_owner")PROG(p4) 53 SEC("kprobe/spin_unlock_irqrestore")PROG(p5) 54 SEC("kprobe/_raw_spin_unlock_irqrestore")PROG(p6) 55 SEC("kprobe/_raw_spin_unlock_bh")PROG(p7) [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | export.h | 26 #define __CRC_SYMBOL(sym, sec) \ argument 27 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \ 32 #define __CRC_SYMBOL(sym, sec) \ argument 33 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \ 39 #define __CRC_SYMBOL(sym, sec) argument 50 #define __KSYMTAB_ENTRY(sym, sec) \ argument 52 asm(" .section \"___ksymtab" sec "+" #sym "\", \"a\" \n" \ 66 #define __KSYMTAB_ENTRY(sym, sec) \ argument 68 __attribute__((section("___ksymtab" sec "+" #sym), used)) \ 81 #define ___EXPORT_SYMBOL(sym, sec, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument [all …]
|
| /kernel/linux/linux-6.6/fs/reiserfs/ |
| D | xattr_security.c | 46 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() argument 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() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
| D | verifier_sdiv.c | 10 SEC("socket") 22 SEC("socket") 34 SEC("socket") 46 SEC("socket") 58 SEC("socket") 70 SEC("socket") 82 SEC("socket") 94 SEC("socket") 106 SEC("socket") 119 SEC("socket") [all …]
|
| /kernel/linux/linux-5.10/arch/loongarch/boot/tools/ |
| D | relocs.c | 191 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->shdr.sh_size); in read_strtabs() 214 if (!sec->strtab) in read_strtabs() 216 sec->shdr.sh_size); in read_strtabs() [all …]
|
| /kernel/linux/linux-5.10/arch/mips/boot/tools/ |
| D | relocs.c | 273 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->shdr.sh_info = elf_word_to_cpu(shdr.sh_info); in read_shdrs() [all …]
|
| /kernel/linux/linux-6.6/arch/mips/boot/tools/ |
| D | relocs.c | 273 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->shdr.sh_info = elf_word_to_cpu(shdr.sh_info); in read_shdrs() [all …]
|