| /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/crypto/ |
| H A D | tcrypt.c | 62 static unsigned int sec; variable 1842 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, in do_test() 1844 test_cipher_speed("ecb(aes)", DECRYPT, sec, NULL, 0, in do_test() 1846 test_cipher_speed("cbc(aes)", ENCRYPT, sec, NULL, 0, in do_test() 1848 test_cipher_speed("cbc(aes)", DECRYPT, sec, NULL, 0, in do_test() 1850 test_cipher_speed("lrw(aes)", ENCRYPT, sec, NULL, 0, in do_test() 1852 test_cipher_speed("lrw(aes)", DECRYPT, sec, NULL, 0, in do_test() 1854 test_cipher_speed("xts(aes)", ENCRYPT, sec, NULL, 0, in do_test() 1856 test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0, in do_test() 1858 test_cipher_speed("cts(cbc(aes))", ENCRYPT, sec, NULL, 0, in do_test() [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/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 …]
|
| 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/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/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>; 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", 62 "fsl,sec-v5.0-job-ring", [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>; 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", 62 "fsl,sec-v5.0-job-ring", [all …]
|
| H A D | qoriq-sec5.0-0.dtsi | 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", 67 "fsl,sec-v4.0-job-ring"; [all …]
|
| H A D | qoriq-sec4.2-0.dtsi | 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", 67 "fsl,sec-v4.0-job-ring"; [all …]
|
| H A D | qoriq-sec6.0-0.dtsi | 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", 52 "fsl,sec-v5.2-job-ring", [all …]
|
| /linux/tools/objtool/include/objtool/ |
| H A D | elf.h | 67 struct section *sec; 101 struct section *sec; 144 struct section *elf_create_rela_section(struct elf *elf, struct section *sec, 148 struct section *sec, unsigned int bind, 151 struct symbol *elf_create_section_symbol(struct elf *elf, struct section *sec); 153 void *elf_add_data(struct elf *elf, struct section *sec, const void *data, 158 struct reloc *elf_create_reloc(struct elf *elf, struct section *sec, in has_multiple_files() 166 struct reloc *elf_init_reloc_text_sym(struct elf *elf, struct section *sec, in elf_rela_size() 172 struct reloc *elf_init_reloc_data_sym(struct elf *elf, struct section *sec, in elf_data_rela_type() 178 int elf_write_insn(struct elf *elf, struct section *sec, unsigne in elf_text_rela_type() 55 struct section *sec; global() member 81 struct section *sec; global() member 181 is_reloc_sec(struct section * sec) is_reloc_sec() argument 186 sec_changed(struct section * sec) sec_changed() argument 191 mark_sec_changed(struct elf * elf,struct section * sec,bool changed) mark_sec_changed() argument 198 sec_num_entries(struct section * sec) sec_num_entries() argument 328 for_each_sec(file,sec) global() argument 331 sec_for_each_sym(sec,sym) global() argument 361 sec_offset_hash(struct section * sec,unsigned long offset) sec_offset_hash() argument [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/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/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/net/rxrpc/ |
| H A D | server_key.c | 33 * rxrpc server keys take "<serviceId>:<securityIndex>[:<sec-specific>]" as the 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() 85 prep->payload.data[1] = (struct rxrpc_security *)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() 95 const struct rxrpc_security *sec = prep->payload.data[1]; in rxrpc_free_preparse_s() local 97 if (sec && sec in rxrpc_free_preparse_s() 103 const struct rxrpc_security *sec = key->payload.data[1]; rxrpc_destroy_s() local 111 const struct rxrpc_security *sec = key->payload.data[1]; rxrpc_describe_s() local [all...] |
| /linux/tools/objtool/ |
| H A D | check.c | 42 struct section *sec, unsigned long offset) in find_insn() argument 46 hash_for_each_possible(file->insn_hash, insn, hash, sec_offset_hash(sec, offset)) { in find_insn() 47 if (insn->sec == sec && insn->offset == offset) in find_insn() 58 return find_insn(file, insn->sec, insn->offset + insn->len); in next_insn_same_sec() 84 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func() 92 return find_insn(file, insn->sec, insn->offset - insn->prev_len); in prev_insn_same_sec() 117 for (insn = find_insn(file, func->sec, func->offset); \ 122 for (insn = find_insn(file, sym->sec, sym->offset); \ 261 insn = find_insn(file, func->sec, func->offset); in __dead_end_function() 324 struct section *sec) in init_insn_state() argument [all …]
|
| H A D | orc_gen.c | 24 struct section *sec, unsigned long offset) in orc_list_add() 34 entry->insn_sec = sec; in orc_list_add() 50 struct section *sec, *orc_sec; in orc_create() 59 for_each_sec(file->elf, sec) { in orc_create() 64 if (!sec->text) in orc_create() 67 sec_for_each_insn(file, sec, insn) { in orc_create() 76 if (orc_list_add(&orc_list, &orc, sec, in orc_create() 101 if (orc_list_add(&orc_list, &orc, insn->sec, in orc_create() 115 orc_list_add(&orc_list, &null, sec, sec in orc_create() 25 orc_list_add(struct list_head * orc_list,struct orc_entry * orc,struct section * sec,unsigned long offset) orc_list_add() argument 51 struct section *sec, *orc_sec; orc_create() local [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/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() 16 return find_next_zero_bit(sec->cam_map, RTW_MAX_SEC_CAM_NUM, in rtw_sec_get_free_cam() 19 return find_first_zero_bit(sec->cam_map, RTW_MAX_SEC_CAM_NUM); 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 86 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_clear_cam() 91 clear_bit(hw_key_idx, sec->cam_map); in rtw_sec_clear_cam() [all …]
|
| /linux/kernel/time/ |
| H A D | vsyscall.c | 33 u64 nsec, sec; in update_vdso_time_data() local 40 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vdso_time_data() 46 vdso_ts->sec++; in update_vdso_time_data() 51 sec = vdso_ts->sec; in update_vdso_time_data() 53 sec += tk->monotonic_to_boot.tv_sec; in update_vdso_time_data() 58 vdso_ts->sec = sec; in update_vdso_time_data() 62 vdso_ts->sec++; in update_vdso_time_data() 68 vdso_ts->sec = tk->raw_sec; in update_vdso_time_data() 73 vdso_ts->sec = tk->xtime_sec + (s64)tk->tai_offset; in update_vdso_time_data() 94 vdso_ts->sec = tk->xtime_sec; in update_vsyscall() [all …]
|
| /linux/lib/vdso/ |
| H A D | gettimeofday.c | 85 static __always_inline void vdso_set_timespec(struct __kernel_timespec *ts, u64 sec, u64 ns) in vdso_set_timespec() argument 87 ts->tv_sec = sec + __iter_div_u64_rem(ns, NSEC_PER_SEC, &ns); in vdso_set_timespec() 93 unsigned int clkidx, u64 *sec, u64 *ns) in vdso_get_timestamp() argument 106 *sec = vdso_ts->sec; in vdso_get_timestamp() 125 s64 sec; in do_hres_timens() local 136 if (!vdso_get_timestamp(vd, vc, clk, &sec, &ns)) in do_hres_timens() 141 sec += offs->sec; in do_hres_timens() 144 vdso_set_timespec(ts, sec, ns); in do_hres_timens() 153 u64 sec, ns; in do_hres() local 180 if (!vdso_get_timestamp(vd, vc, clk, &sec, &ns)) in do_hres() [all …]
|
| /linux/include/linux/ |
| H A D | export-internal.h | 40 #define __KSYMTAB(name, sym, sec, ns) \ argument 47 " .section \"___ksymtab" sec "+" #name "\", \"a\"" "\n" \ 62 #define KSYMTAB_FUNC(name, sec, ns) __KSYMTAB(name, KSYM_FUNC(name), sec, ns) argument 63 #define KSYMTAB_DATA(name, sec, ns) __KSYMTAB(name, name, sec, ns) argument 65 #define SYMBOL_CRC(sym, crc, sec) \ argument 66 asm(".section \"___kcrctab" sec "+" #sym "\",\"a\"" "\n" \
|