/linux/drivers/fpga/ |
H A 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 …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | verifier_sock_addr.c | 9 SEC("cgroup/recvmsg4") 16 SEC("cgroup/recvmsg4") 23 SEC("cgroup/recvmsg6") 30 SEC("cgroup/recvmsg6") 37 SEC("cgroup/recvmsg_unix") 44 SEC("cgroup/recvmsg_unix") 51 SEC("cgroup/sendmsg4") 58 SEC("cgroup/sendmsg4") 65 SEC("cgroup/sendmsg4") 72 SEC("cgroup/sendmsg6") [all …]
|
H A D | string_kfuncs_failure1.c | 32 SEC("syscall") __retval(USER_PTR_ERR) int test_strcmp_null1(void *ctx) { return bpf_strcmp(NULL, "hello"); } in __retval() 33 SEC("syscall") __retval(USER_PTR_ERR)int test_strcmp_null2(void *ctx) { return bpf_strcmp("hello", NULL); } in __retval() 34 SEC("syscall") __retval(USER_PTR_ERR) int test_strcasecmp_null1(void *ctx) { return bpf_strcasecmp(NULL, "HELLO"); } in __retval() 35 SEC("syscall") __retval(USER_PTR_ERR)int test_strcasecmp_null2(void *ctx) { return bpf_strcasecmp("HELLO", NULL); } in __retval() 36 SEC("syscall") __retval(USER_PTR_ERR)int test_strchr_null(void *ctx) { return bpf_strchr(NULL, 'a'); } in __retval() 37 SEC("syscall") __retval(USER_PTR_ERR)int test_strchrnul_null(void *ctx) { return bpf_strchrnul(NULL, 'a'); } in __retval() 38 SEC("syscall") __retval(USER_PTR_ERR)int test_strnchr_null(void *ctx) { return bpf_strnchr(NULL, 1, 'a'); } in __retval() 39 SEC("syscall") __retval(USER_PTR_ERR)int test_strrchr_null(void *ctx) { return bpf_strrchr(NULL, 'a'); } in __retval() 40 SEC("syscall") __retval(USER_PTR_ERR)int test_strlen_null(void *ctx) { return bpf_strlen(NULL); } in __retval() 41 SEC("syscal in __retval() [all...] |
H A D | verifier_sdiv.c | 14 SEC("socket") 26 SEC("socket") 38 SEC("socket") 50 SEC("socket") 62 SEC("socket") 74 SEC("socket") 86 SEC("socket") 98 SEC("socket") 110 SEC("socket") 123 SEC("socket") [all …]
|
H A D | string_kfuncs_failure2.c | 9 SEC("syscall") int test_strcmp_too_long(void *ctx) { return bpf_strcmp(long_str, long_str); } in test_strcmp_too_long() 10 SEC("syscall") int test_strcasecmp_too_long(void *ctx) { return bpf_strcasecmp(long_str, long_str); } in test_strchr_too_long() 11 SEC("syscall") int test_strchr_too_long(void *ctx) { return bpf_strchr(long_str, 'b'); } in test_strchrnul_too_long() 12 SEC("syscall") int test_strchrnul_too_long(void *ctx) { return bpf_strchrnul(long_str, 'b'); } in test_strnchr_too_long() 13 SEC("syscall") int test_strnchr_too_long(void *ctx) { return bpf_strnchr(long_str, sizeof(long_str), 'b'); } in test_strrchr_too_long() 14 SEC("syscall") int test_strrchr_too_long(void *ctx) { return bpf_strrchr(long_str, 'b'); } in test_strlen_too_long() 15 SEC("syscall") int test_strlen_too_long(void *ctx) { return bpf_strlen(long_str); } in test_strnlen_too_long() 16 SEC("syscall") int test_strnlen_too_long(void *ctx) { return bpf_strnlen(long_str, sizeof(long_str)); } in test_strspn_str_too_long() 17 SEC("syscall") int test_strspn_str_too_long(void *ctx) { return bpf_strspn(long_str, "a"); } in test_strspn_accept_too_long() 18 SEC("syscal in test_strspn_accept_too_long() [all...] |
H A D | exceptions_fail.c | 12 #define private(name) SEC(".bss." #name) __hidden __attribute__((aligned(8))) 27 } hmap SEC(".maps"); 52 SEC("?tc") 61 SEC("?tc") 70 SEC("?tc") 79 SEC("?tc") 95 SEC("?tc") 117 SEC("?tc") 126 SEC("?tc") 133 SEC("?tc") [all …]
|
H A D | trigger_bench.c | 9 char _license[] SEC("license") = "GPL"; 28 SEC("?uprobe") 35 SEC("?uprobe.multi") 44 SEC("?raw_tp") 55 SEC("?raw_tp") 68 SEC("?raw_tp") 79 SEC("?kprobe/bpf_get_numa_node_id") 86 SEC("?kretprobe/bpf_get_numa_node_id") 93 SEC("?kprobe.multi/bpf_get_numa_node_id") 100 SEC(" [all...] |
/linux/net/mac802154/ |
H A 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 …]
|
/linux/drivers/firmware/google/ |
H A 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 …]
|
/linux/arch/powerpc/boot/dts/fsl/ |
H A 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 …]
|
H A 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 …]
|
H A D | qoriq-sec5.0-0.dtsi | 2 * QorIQ Sec/Crypto 5.0 device tree stub [ controller @ offset 0x300000 ] 36 compatible = "fsl,sec-v5.0", "fsl,sec-v4.0"; 37 fsl,sec-era = <5>; 45 compatible = "fsl,sec-v5.0-job-ring", 46 "fsl,sec-v4.0-job-ring"; 52 compatible = "fsl,sec-v5.0-job-ring", 53 "fsl,sec-v4.0-job-ring"; 59 compatible = "fsl,sec-v5.0-job-ring", 60 "fsl,sec-v4.0-job-ring"; 66 compatible = "fsl,sec-v5.0-job-ring", [all …]
|
H A D | qoriq-sec4.2-0.dtsi | 2 * QorIQ Sec/Crypto 4.2 device tree stub [ controller @ offset 0x300000 ] 36 compatible = "fsl,sec-v4.2", "fsl,sec-v4.0"; 37 fsl,sec-era = <3>; 45 compatible = "fsl,sec-v4.2-job-ring", 46 "fsl,sec-v4.0-job-ring"; 52 compatible = "fsl,sec-v4.2-job-ring", 53 "fsl,sec-v4.0-job-ring"; 59 compatible = "fsl,sec-v4.2-job-ring", 60 "fsl,sec-v4.0-job-ring"; 66 compatible = "fsl,sec-v4.2-job-ring", [all …]
|
H A D | qoriq-sec6.0-0.dtsi | 2 * QorIQ Sec/Crypto 6.0 device tree stub 35 compatible = "fsl,sec-v6.0", "fsl,sec-v5.0", 36 "fsl,sec-v4.0"; 37 fsl,sec-era = <6>; 42 compatible = "fsl,sec-v6.0-job-ring", 43 "fsl,sec-v5.2-job-ring", 44 "fsl,sec-v5.0-job-ring", 45 "fsl,sec-v4.4-job-ring", 46 "fsl,sec-v4.0-job-ring"; 51 compatible = "fsl,sec-v6.0-job-ring", [all …]
|
/linux/arch/mips/boot/tools/ |
H A 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 …]
|
/linux/drivers/infiniband/core/ |
H A D | security.c | 50 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() argument 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->qp->qp_context) { in qp_to_error() 175 event.element.qp = sec->qp; in qp_to_error() [all …]
|
/linux/arch/x86/tools/ |
H A D | relocs.c | 424 struct section *sec = &secs[i]; in read_shdrs() local 429 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs() 430 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs() 431 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 432 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); in read_shdrs() 433 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs() 434 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs() 435 sec->shdr.sh_link = elf_word_to_cpu(shdr.sh_link); in read_shdrs() 436 sec->shdr.sh_info = elf_word_to_cpu(shdr.sh_info); in read_shdrs() 437 sec->shdr.sh_addralign = elf_xword_to_cpu(shdr.sh_addralign); in read_shdrs() [all …]
|
/linux/tools/objtool/include/objtool/ |
H A D | elf.h | 55 struct section *sec; member 81 struct section *sec; member 122 struct reloc *elf_init_reloc_text_sym(struct elf *elf, struct section *sec, 128 struct reloc *elf_init_reloc_data_sym(struct elf *elf, struct section *sec, 134 int elf_write_insn(struct elf *elf, struct section *sec, 141 struct symbol *find_func_by_offset(struct section *sec, unsigned long offset); 142 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset); 144 struct symbol *find_symbol_containing(const struct section *sec, unsigned long offset); 145 int find_symbol_hole_containing(const struct section *sec, unsigned long offset); 146 struct reloc *find_reloc_by_dest(const struct elf *elf, struct section *sec, unsigned long offset); [all …]
|
/linux/tools/lib/bpf/ |
H A D | linker.c | 174 static int linker_sanity_check_elf_symtab(struct src_obj *obj, struct src_sec *sec); 175 static int linker_sanity_check_elf_relos(struct src_obj *obj, struct src_sec *sec); 211 struct dst_sec *sec = &linker->secs[i]; in bpf_linker__free() 213 free(sec->sec_name); in bpf_linker__free() 214 free(sec->raw_data); in bpf_linker__free() 215 free(sec->sec_vars); in bpf_linker__free() 217 free(sec->func_info.recs); in bpf_linker__free() 218 free(sec->line_info.recs); in bpf_linker__free() 219 free(sec->core_relo_info.recs); in bpf_linker__free() 313 struct dst_sec *secs = linker->secs, *sec; in add_dst_sec() 212 struct dst_sec *sec = &linker->secs[i]; bpf_linker__free() local 314 struct dst_sec *secs = linker->secs, *sec; add_dst_sec() local 364 struct dst_sec *sec; init_output_elf() local 606 is_ignored_sec(struct src_sec * sec) is_ignored_sec() argument 645 struct src_sec *secs = obj->secs, *sec; add_src_sec() local 673 struct src_sec *sec; linker_load_obj_file() local 832 struct src_sec *sec; linker_sanity_check_elf() local 912 linker_sanity_check_elf_symtab(struct src_obj * obj,struct src_sec * sec) linker_sanity_check_elf_symtab() argument 986 linker_sanity_check_elf_relos(struct src_obj * obj,struct src_sec * sec) linker_sanity_check_elf_relos() argument 1199 struct dst_sec *sec; find_dst_sec_by_name() local 1242 is_exec_sec(struct dst_sec * sec) is_exec_sec() argument 1337 is_data_sec(struct src_sec * sec) is_data_sec() argument 1347 is_relo_sec(struct src_sec * sec) is_relo_sec() argument 1914 struct src_sec *sec; find_src_sec_by_name() local 2257 struct src_sec *sec = &obj->secs[src_sym->st_shndx]; linker_append_elf_relos() local 2318 struct src_sec *sec; linker_fixup_btf() local 2752 struct dst_sec *sec; bpf_linker__finalize() local 2872 struct dst_sec *sec = &linker->secs[i]; finalize_btf() local 2979 struct dst_sec *sec = &linker->secs[i]; finalize_btf_ext() local 3057 struct dst_sec *sec = &linker->secs[i]; finalize_btf_ext() local 3074 struct dst_sec *sec = &linker->secs[i]; finalize_btf_ext() local 3091 struct dst_sec *sec = &linker->secs[i]; finalize_btf_ext() local [all...] |
/linux/drivers/net/wireless/intel/ipw2x00/ |
H A D | libipw_wx.c | 299 struct libipw_security sec = { in libipw_wx_set_encode() local 344 sec.enabled = 0; in libipw_wx_set_encode() 345 sec.encrypt = 0; in libipw_wx_set_encode() 346 sec.level = SEC_LEVEL_0; in libipw_wx_set_encode() 347 sec.flags |= SEC_ENABLED | SEC_LEVEL | SEC_ENCRYPT; in libipw_wx_set_encode() 353 sec.enabled = 1; in libipw_wx_set_encode() 354 sec.encrypt = 1; in libipw_wx_set_encode() 355 sec.flags |= SEC_ENABLED | SEC_ENCRYPT; in libipw_wx_set_encode() 395 memcpy(sec.keys[key], keybuf, erq->length); in libipw_wx_set_encode() 397 memset(sec.keys[key] + erq->length, 0, in libipw_wx_set_encode() [all …]
|
/linux/fs/hpfs/ |
H A D | alloc.c | 12 static void hpfs_claim_alloc(struct super_block *s, secno sec) in hpfs_claim_alloc() argument 17 hpfs_error(s, "free count underflow, allocating sector %08x", sec); in hpfs_claim_alloc() 25 static void hpfs_claim_free(struct super_block *s, secno sec) in hpfs_claim_free() argument 30 hpfs_error(s, "free count overflow, freeing sector %08x", sec); in hpfs_claim_free() 38 static void hpfs_claim_dirband_alloc(struct super_block *s, secno sec) in hpfs_claim_dirband_alloc() argument 43 hpfs_error(s, "dirband free count underflow, allocating sector %08x", sec); in hpfs_claim_dirband_alloc() 51 static void hpfs_claim_dirband_free(struct super_block *s, secno sec) in hpfs_claim_dirband_free() argument 56 hpfs_error(s, "dirband free count overflow, freeing sector %08x", sec); in hpfs_claim_dirband_free() 69 static int chk_if_allocated(struct super_block *s, secno sec, char *msg) in chk_if_allocated() argument 73 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated() [all …]
|
/linux/drivers/nvdimm/ |
H A D | security.c | 145 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() 182 nvdimm->sec.flags = nvdimm_security_flags(nvdimm, NVDIMM_USER); in __nvdimm_security_unlock() 185 if (test_bit(NVDIMM_SECURITY_DISABLED, &nvdimm->sec.flags)) in __nvdimm_security_unlock() 200 if (test_bit(NVDIMM_SECURITY_UNLOCKED, &nvdimm->sec.flags)) { in __nvdimm_security_unlock() 208 rc = nvdimm->sec.ops->unlock(nvdimm, data); in __nvdimm_security_unlock() 215 nvdimm->sec.flags = nvdimm_security_flags(nvdimm, NVDIMM_USER); in __nvdimm_security_unlock() [all …]
|
/linux/drivers/misc/mei/ |
H A D | hw-txe-regs.h | 25 /* SeC FW Status Register 39 #define IPC_BASE_ADDR 0x80400 /* SeC IPC Base Address */ 46 * the most recent command has been completed by the SEC 79 /* SeC Address Translation Table Entry 2 - Ctrl 81 * This register resides also in SeC's PCI-E Memory space. 100 * interrupts from SeC to host, aggregating both interrupts that 112 * This is the top hierarchy for masking interrupts from SeC to host. 121 /* Host Interrupt Cause Register 0 - SeC IPC Readiness 124 * and it is also exposed in the SeC memory space. 125 * This register is used by SeC's IPC driver in order [all …]
|
/linux/arch/s390/tools/ |
H A D | relocs.c | 195 struct section *sec = &secs[i]; in read_shdrs() local 202 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs() 203 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs() 204 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 205 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); in read_shdrs() 206 sec->shdr.sh_offset = elf_off_to_cpu(shdr.sh_offset); in read_shdrs() 207 sec->shdr.sh_size = elf_xword_to_cpu(shdr.sh_size); in read_shdrs() 208 sec->shdr.sh_link = elf_word_to_cpu(shdr.sh_link); in read_shdrs() 209 sec->shdr.sh_info = elf_word_to_cpu(shdr.sh_info); in read_shdrs() 210 sec->shdr.sh_addralign = elf_xword_to_cpu(shdr.sh_addralign); in read_shdrs() [all …]
|
/linux/drivers/crypto/caam/ |
H A D | dpseci.h | 10 * Data Path SEC Interface API 44 * @num_tx_queues: num of queues towards the SEC 45 * @num_rx_queues: num of queues back from the SEC 46 * @priorities: Priorities for the SEC hardware processing; 48 * towards the SEC; 70 * @num_tx_queues: number of queues towards the SEC 71 * @num_rx_queues: number of queues back from the SEC 179 * @fqid: Virtual FQID to be used for sending frames to SEC hardware 180 * @priority: SEC hardware processing priority for the queue 191 * struct dpseci_sec_attr - Structure representing attributes of the SEC [all …]
|