Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 25 of 513) sorted by relevance

12345678910>>...21

/Linux-v4.19/tools/objtool/
Delf.c36 struct section *sec; in find_section_by_name() local
38 list_for_each_entry(sec, &elf->sections, list) in find_section_by_name()
39 if (!strcmp(sec->name, name)) in find_section_by_name()
40 return sec; in find_section_by_name()
48 struct section *sec; in find_section_by_index() local
50 list_for_each_entry(sec, &elf->sections, list) in find_section_by_index()
51 if (sec->idx == idx) in find_section_by_index()
52 return sec; in find_section_by_index()
59 struct section *sec; in find_symbol_by_index() local
62 list_for_each_entry(sec, &elf->sections, list) in find_symbol_by_index()
[all …]
Dspecial.c47 const char *sec; member
56 .sec = ".altinstructions",
66 .sec = "__jump_table",
73 .sec = "__ex_table",
82 struct section *sec, int idx, in get_alt_entry() argument
94 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
96 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry()
103 feature = *(unsigned short *)(sec->data->d_buf + offset + in get_alt_entry()
115 orig_rela = find_rela_by_dest(sec, offset + entry->orig); in get_alt_entry()
117 WARN_FUNC("can't find orig rela", sec, offset + entry->orig); in get_alt_entry()
[all …]
Dcheck.c40 struct section *sec, unsigned long offset) in find_insn() argument
45 if (insn->sec == sec && insn->offset == offset) in find_insn()
56 if (!next || &next->list == &file->insn_list || next->sec != insn->sec) in next_insn_same_sec()
79 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func()
83 for (insn = find_insn(file, func->sec, func->offset); \
88 for (insn = find_insn(file, func->sec, func->offset); \
90 insn->sec == func->sec && \
97 insn->sec == func->sec && insn->offset >= func->offset; \
120 rela->sym->sec == func->sec && in ignore_func()
181 insn = find_insn(file, func->sec, func->offset); in __dead_end_function()
[all …]
Dorc_gen.c68 insn->sec, insn->offset, cfa->base); in create_orc()
84 insn->sec, insn->offset, bp->base); in create_orc()
134 struct section *sec, *u_sec, *ip_relasec; in create_orc_sections() local
143 sec = find_section_by_name(file->elf, ".orc_unwind"); in create_orc_sections()
144 if (sec) { in create_orc_sections()
151 for_each_sec(file, sec) { in create_orc_sections()
152 if (!sec->text) in create_orc_sections()
156 sec_for_each_insn(file, sec, insn) { in create_orc_sections()
174 sec = elf_create_section(file->elf, ".orc_unwind_ip", sizeof(int), idx); in create_orc_sections()
175 if (!sec) in create_orc_sections()
[all …]
Delf.h58 struct section *sec; member
89 struct symbol *find_symbol_by_offset(struct section *sec, unsigned long offset);
91 struct symbol *find_symbol_containing(struct section *sec, unsigned long offset);
92 struct rela *find_rela_by_dest(struct section *sec, unsigned long offset);
93 struct rela *find_rela_by_dest_range(struct section *sec, unsigned long offset,
95 struct symbol *find_containing_func(struct section *sec, unsigned long offset);
99 int elf_rebuild_rela_section(struct section *sec);
103 #define for_each_sec(file, sec) \ argument
104 list_for_each_entry(sec, &file->elf->sections, list)
/Linux-v4.19/crypto/
Dtcrypt.c64 static unsigned int sec; variable
2038 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, in do_test()
2040 test_cipher_speed("ecb(aes)", DECRYPT, sec, NULL, 0, in do_test()
2042 test_cipher_speed("cbc(aes)", ENCRYPT, sec, NULL, 0, in do_test()
2044 test_cipher_speed("cbc(aes)", DECRYPT, sec, NULL, 0, in do_test()
2046 test_cipher_speed("lrw(aes)", ENCRYPT, sec, NULL, 0, in do_test()
2048 test_cipher_speed("lrw(aes)", DECRYPT, sec, NULL, 0, in do_test()
2050 test_cipher_speed("xts(aes)", ENCRYPT, sec, NULL, 0, in do_test()
2052 test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0, in do_test()
2054 test_cipher_speed("cts(cbc(aes))", ENCRYPT, sec, NULL, 0, in do_test()
[all …]
/Linux-v4.19/drivers/firmware/google/
Dvpd.c108 struct vpd_section *sec = arg; in vpd_section_attrib_add() local
139 ret = sysfs_create_bin_file(sec->kobj, &info->bin_attr); in vpd_section_attrib_add()
143 list_add_tail(&info->list, &sec->attribs); in vpd_section_attrib_add()
154 static void vpd_section_attrib_destroy(struct vpd_section *sec) in vpd_section_attrib_destroy() argument
159 list_for_each_entry_safe(info, temp, &sec->attribs, list) { in vpd_section_attrib_destroy()
160 sysfs_remove_bin_file(sec->kobj, &info->bin_attr); in vpd_section_attrib_destroy()
170 struct vpd_section *sec = bin_attr->private; in vpd_section_read() local
172 return memory_read_from_buffer(buf, count, &pos, sec->baseaddr, in vpd_section_read()
173 sec->bin_attr.size); in vpd_section_read()
176 static int vpd_section_create_attribs(struct vpd_section *sec) in vpd_section_create_attribs() argument
[all …]
/Linux-v4.19/net/mac802154/
Dllsec.c35 void mac802154_llsec_init(struct mac802154_llsec *sec) in mac802154_llsec_init() argument
37 memset(sec, 0, sizeof(*sec)); in mac802154_llsec_init()
39 memset(&sec->params.default_key_source, 0xFF, IEEE802154_ADDR_LEN); in mac802154_llsec_init()
41 INIT_LIST_HEAD(&sec->table.security_levels); in mac802154_llsec_init()
42 INIT_LIST_HEAD(&sec->table.devices); in mac802154_llsec_init()
43 INIT_LIST_HEAD(&sec->table.keys); in mac802154_llsec_init()
44 hash_init(sec->devices_short); in mac802154_llsec_init()
45 hash_init(sec->devices_hw); in mac802154_llsec_init()
46 rwlock_init(&sec->lock); in mac802154_llsec_init()
49 void mac802154_llsec_destroy(struct mac802154_llsec *sec) in mac802154_llsec_destroy() argument
[all …]
Dllsec.h72 void mac802154_llsec_init(struct mac802154_llsec *sec);
73 void mac802154_llsec_destroy(struct mac802154_llsec *sec);
75 int mac802154_llsec_get_params(struct mac802154_llsec *sec,
77 int mac802154_llsec_set_params(struct mac802154_llsec *sec,
81 int mac802154_llsec_key_add(struct mac802154_llsec *sec,
84 int mac802154_llsec_key_del(struct mac802154_llsec *sec,
87 int mac802154_llsec_dev_add(struct mac802154_llsec *sec,
89 int mac802154_llsec_dev_del(struct mac802154_llsec *sec,
92 int mac802154_llsec_devkey_add(struct mac802154_llsec *sec,
95 int mac802154_llsec_devkey_del(struct mac802154_llsec *sec,
[all …]
/Linux-v4.19/include/linux/
Dexport.h28 #define __CRC_SYMBOL(sym, sec) \ argument
29 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \
34 #define __CRC_SYMBOL(sym, sec) \ argument
35 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \
41 #define __CRC_SYMBOL(sym, sec) argument
52 #define __KSYMTAB_ENTRY(sym, sec) \ argument
54 asm(" .section \"___ksymtab" sec "+" #sym "\", \"a\" \n" \
66 #define __KSYMTAB_ENTRY(sym, sec) \ argument
68 __attribute__((section("___ksymtab" sec "+" #sym), used)) \
78 #define ___EXPORT_SYMBOL(sym, sec) \ argument
[all …]
/Linux-v4.19/fs/reiserfs/
Dxattr_security.c46 struct reiserfs_security_handle *sec) in reiserfs_security_init() argument
51 sec->name = NULL; in reiserfs_security_init()
57 error = security_old_inode_init_security(inode, dir, qstr, &sec->name, in reiserfs_security_init()
58 &sec->value, &sec->length); in reiserfs_security_init()
63 sec->name = NULL; in reiserfs_security_init()
64 sec->value = NULL; in reiserfs_security_init()
65 sec->length = 0; in reiserfs_security_init()
69 if (sec->length && reiserfs_xattrs_initialized(inode->i_sb)) { in reiserfs_security_init()
71 reiserfs_xattr_nblocks(inode, sec->length); in reiserfs_security_init()
81 struct reiserfs_security_handle *sec) in reiserfs_security_write() argument
[all …]
/Linux-v4.19/arch/mips/boot/tools/
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->shdr.sh_info = elf_word_to_cpu(shdr.sh_info); in read_shdrs()
[all …]
/Linux-v4.19/drivers/infiniband/core/
Dsecurity.c46 struct ib_device *dev = pp->sec->dev; in get_pkey_idx_qp_list()
65 struct ib_device *dev = pp->sec->dev; in get_pkey_and_subnet_prefix()
109 struct ib_qp_security *sec) in check_qp_port_pkey_settings() argument
127 sec); in check_qp_port_pkey_settings()
141 sec); in check_qp_port_pkey_settings()
150 static void qp_to_error(struct ib_qp_security *sec) in qp_to_error() argument
164 if (sec->destroying) in qp_to_error()
167 ib_modify_qp(sec->qp, in qp_to_error()
171 if (sec->qp->event_handler && sec->qp->qp_context) { in qp_to_error()
172 event.element.qp = sec->qp; in qp_to_error()
[all …]
/Linux-v4.19/arch/powerpc/boot/dts/fsl/
Dqoriq-sec5.3-0.dtsi36 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 …]
Dqoriq-sec5.2-0.dtsi36 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 …]
Dqoriq-sec4.2-0.dtsi36 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 …]
Dqoriq-sec5.0-0.dtsi36 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 …]
Dqoriq-sec6.0-0.dtsi35 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-v4.19/arch/x86/tools/
Drelocs.c274 struct section *sec = &secs[i]; in sym_lookup() local
280 if (sec->shdr.sh_type != SHT_SYMTAB) in sym_lookup()
283 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup()
284 symtab = sec->symtab; in sym_lookup()
285 strtab = sec->link->strtab; in sym_lookup()
406 struct section *sec = &secs[i]; in read_shdrs() local
410 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs()
411 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs()
412 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs()
413 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); in read_shdrs()
[all …]
/Linux-v4.19/fs/hpfs/
Dalloc.c12 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-v4.19/include/asm-generic/
Dexport.h34 .macro ___EXPORT_SYMBOL name,val,sec
37 .section ___ksymtab\sec+\name,"a"
47 .section ___kcrctab\sec+\name,"a"
64 #define __EXPORT_SYMBOL(sym, val, sec) === __KSYM_##sym === argument
71 #define __EXPORT_SYMBOL(sym, val, sec) \
72 __cond_export_sym(sym, val, sec, __is_defined(__KSYM_##sym))
73 #define __cond_export_sym(sym, val, sec, conf) \
74 ___cond_export_sym(sym, val, sec, conf)
75 #define ___cond_export_sym(sym, val, sec, enabled) \
76 __cond_export_sym_##enabled(sym, val, sec)
[all …]
/Linux-v4.19/drivers/net/wireless/intel/ipw2x00/
Dlibipw_wx.c316 struct libipw_security sec = { in libipw_wx_set_encode() local
361 sec.enabled = 0; in libipw_wx_set_encode()
362 sec.encrypt = 0; in libipw_wx_set_encode()
363 sec.level = SEC_LEVEL_0; in libipw_wx_set_encode()
364 sec.flags |= SEC_ENABLED | SEC_LEVEL | SEC_ENCRYPT; in libipw_wx_set_encode()
370 sec.enabled = 1; in libipw_wx_set_encode()
371 sec.encrypt = 1; in libipw_wx_set_encode()
372 sec.flags |= SEC_ENABLED | SEC_ENCRYPT; in libipw_wx_set_encode()
412 memcpy(sec.keys[key], keybuf, erq->length); in libipw_wx_set_encode()
414 memset(sec.keys[key] + erq->length, 0, in libipw_wx_set_encode()
[all …]
/Linux-v4.19/drivers/media/dvb-core/
Ddvb_demux.c100 return (f->feed.sec.crc_val = crc32_be(f->feed.sec.crc_val, src, len)); in dvb_dmx_crc32()
151 u8 xor = f->filter.filter_value[i] ^ feed->feed.sec.secbuf[i]; in dvb_dmx_swfilter_sectionfilter()
162 return feed->cb.sec(feed->feed.sec.secbuf, feed->feed.sec.seclen, in dvb_dmx_swfilter_sectionfilter()
170 struct dmx_section_feed *sec = &feed->feed.sec; in dvb_dmx_swfilter_section_feed() local
173 if (!sec->is_filtering) in dvb_dmx_swfilter_section_feed()
179 if (sec->check_crc) { in dvb_dmx_swfilter_section_feed()
180 section_syntax_indicator = ((sec->secbuf[1] & 0x80) != 0); in dvb_dmx_swfilter_section_feed()
182 demux->check_crc32(feed, sec->secbuf, sec->seclen)) { in dvb_dmx_swfilter_section_feed()
191 } while ((f = f->next) && sec->is_filtering); in dvb_dmx_swfilter_section_feed()
193 sec->seclen = 0; in dvb_dmx_swfilter_section_feed()
[all …]
/Linux-v4.19/drivers/staging/rtl8192e/
Drtllib_wx.c306 struct rtllib_security sec = { in rtllib_wx_set_encode() local
349 sec.enabled = 0; in rtllib_wx_set_encode()
350 sec.level = SEC_LEVEL_0; in rtllib_wx_set_encode()
351 sec.flags |= SEC_ENABLED | SEC_LEVEL; in rtllib_wx_set_encode()
359 sec.enabled = 1; in rtllib_wx_set_encode()
360 sec.flags |= SEC_ENABLED; in rtllib_wx_set_encode()
401 memcpy(sec.keys[key], keybuf, erq->length); in rtllib_wx_set_encode()
403 memset(sec.keys[key] + erq->length, 0, in rtllib_wx_set_encode()
406 key, escape_essid(sec.keys[key], len), erq->length, in rtllib_wx_set_encode()
408 sec.key_sizes[key] = len; in rtllib_wx_set_encode()
[all …]
/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/
Dieee80211_wx.c296 struct ieee80211_security sec = { in ieee80211_wx_set_encode() local
339 sec.enabled = 0; in ieee80211_wx_set_encode()
340 sec.level = SEC_LEVEL_0; in ieee80211_wx_set_encode()
341 sec.flags |= SEC_ENABLED | SEC_LEVEL; in ieee80211_wx_set_encode()
349 sec.enabled = 1; in ieee80211_wx_set_encode()
350 sec.flags |= SEC_ENABLED; in ieee80211_wx_set_encode()
387 memcpy(sec.keys[key], keybuf, erq->length); in ieee80211_wx_set_encode()
389 memset(sec.keys[key] + erq->length, 0, in ieee80211_wx_set_encode()
392 key, escape_essid(sec.keys[key], len), in ieee80211_wx_set_encode()
394 sec.key_sizes[key] = len; in ieee80211_wx_set_encode()
[all …]

12345678910>>...21