/Linux-v5.4/tools/objtool/ |
D | elf.c | 26 struct section *sec; in find_section_by_name() local 28 list_for_each_entry(sec, &elf->sections, list) in find_section_by_name() 29 if (!strcmp(sec->name, name)) in find_section_by_name() 30 return sec; in find_section_by_name() 38 struct section *sec; in find_section_by_index() local 40 list_for_each_entry(sec, &elf->sections, list) in find_section_by_index() 41 if (sec->idx == idx) in find_section_by_index() 42 return sec; in find_section_by_index() 49 struct section *sec; in find_symbol_by_index() local 52 list_for_each_entry(sec, &elf->sections, list) in find_symbol_by_index() [all …]
|
D | special.c | 37 const char *sec; member 46 .sec = ".altinstructions", 56 .sec = "__jump_table", 63 .sec = "__ex_table", 72 struct section *sec, int idx, in get_alt_entry() argument 84 alt->orig_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry() 86 alt->new_len = *(unsigned char *)(sec->data->d_buf + offset + in get_alt_entry() 93 feature = *(unsigned short *)(sec->data->d_buf + offset + in get_alt_entry() 121 orig_rela = find_rela_by_dest(sec, offset + entry->orig); in get_alt_entry() 123 WARN_FUNC("can't find orig rela", sec, offset + entry->orig); in get_alt_entry() [all …]
|
D | check.c | 33 struct section *sec, unsigned long offset) in find_insn() argument 38 if (insn->sec == sec && insn->offset == offset) in find_insn() 49 if (!next || &next->list == &file->insn_list || next->sec != insn->sec) in next_insn_same_sec() 72 return find_insn(file, func->cfunc->sec, func->cfunc->offset); in next_insn_same_func() 76 for (insn = find_insn(file, func->sec, func->offset); \ 81 for (insn = find_insn(file, func->sec, func->offset); \ 83 insn->sec == func->sec && \ 90 insn->sec == func->sec && insn->offset >= func->offset; \ 163 insn = find_insn(file, func->sec, func->offset); in __dead_end_function() 232 struct section *sec; in decode_instructions() local [all …]
|
D | orc_gen.c | 56 insn->sec, insn->offset, cfa->base); in create_orc() 72 insn->sec, insn->offset, bp->base); in create_orc() 122 struct section *sec, *u_sec, *ip_relasec; in create_orc_sections() local 131 sec = find_section_by_name(file->elf, ".orc_unwind"); in create_orc_sections() 132 if (sec) { in create_orc_sections() 139 for_each_sec(file, sec) { in create_orc_sections() 140 if (!sec->text) in create_orc_sections() 144 sec_for_each_insn(file, sec, insn) { in create_orc_sections() 162 sec = elf_create_section(file->elf, ".orc_unwind_ip", sizeof(int), idx); in create_orc_sections() 163 if (!sec) in create_orc_sections() [all …]
|
/Linux-v5.4/include/linux/ |
D | export.h | 25 #define __CRC_SYMBOL(sym, sec) \ argument 26 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \ 31 #define __CRC_SYMBOL(sym, sec) \ argument 32 asm(" .section \"___kcrctab" sec "+" #sym "\", \"a\" \n" \ 38 #define __CRC_SYMBOL(sym, sec) argument 49 #define __KSYMTAB_ENTRY_NS(sym, sec) \ argument 51 asm(" .section \"___ksymtab" sec "+" #sym "\", \"a\" \n" \ 59 #define __KSYMTAB_ENTRY(sym, sec) \ argument 61 asm(" .section \"___ksymtab" sec "+" #sym "\", \"a\" \n" \ 75 #define __KSYMTAB_ENTRY_NS(sym, sec) \ argument [all …]
|
/Linux-v5.4/crypto/ |
D | tcrypt.c | 59 static unsigned int sec; variable 2053 test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, in do_test() 2055 test_cipher_speed("ecb(aes)", DECRYPT, sec, NULL, 0, in do_test() 2057 test_cipher_speed("cbc(aes)", ENCRYPT, sec, NULL, 0, in do_test() 2059 test_cipher_speed("cbc(aes)", DECRYPT, sec, NULL, 0, in do_test() 2061 test_cipher_speed("lrw(aes)", ENCRYPT, sec, NULL, 0, in do_test() 2063 test_cipher_speed("lrw(aes)", DECRYPT, sec, NULL, 0, in do_test() 2065 test_cipher_speed("xts(aes)", ENCRYPT, sec, NULL, 0, in do_test() 2067 test_cipher_speed("xts(aes)", DECRYPT, sec, NULL, 0, in do_test() 2069 test_cipher_speed("cts(cbc(aes))", ENCRYPT, sec, NULL, 0, in do_test() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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 …]
|
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-v5.4/fs/reiserfs/ |
D | xattr_security.c | 46 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-v5.4/drivers/staging/exfat/ |
D | exfat_cache.c | 18 static struct buf_cache_t *FAT_cache_find(struct super_block *sb, sector_t sec) in FAT_cache_find() argument 24 off = (sec + in FAT_cache_find() 25 (sec >> p_fs->sectors_per_clu_bits)) & (FAT_CACHE_HASH_SIZE - 1); in FAT_cache_find() 29 if ((bp->drv == p_fs->drv) && (bp->sec == sec)) { in FAT_cache_find() 70 static struct buf_cache_t *FAT_cache_get(struct super_block *sb, sector_t sec) in FAT_cache_get() argument 89 off = (bp->sec + in FAT_cache_insert_hash() 90 (bp->sec >> p_fs->sectors_per_clu_bits)) & in FAT_cache_insert_hash() 114 off = (bp->sec + in buf_cache_insert_hash() 115 (bp->sec >> p_fs->sectors_per_clu_bits)) & in buf_cache_insert_hash() 143 p_fs->FAT_cache_array[i].sec = ~0; in buf_init() [all …]
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/drivers/infiniband/core/ |
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-v5.4/arch/powerpc/boot/dts/fsl/ |
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 …]
|
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 …]
|
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 …]
|
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 …]
|
/Linux-v5.4/arch/x86/tools/ |
D | relocs.c | 277 struct section *sec = &secs[i]; in sym_lookup() local 283 if (sec->shdr.sh_type != SHT_SYMTAB) in sym_lookup() 286 nsyms = sec->shdr.sh_size/sizeof(Elf_Sym); in sym_lookup() 287 symtab = sec->symtab; in sym_lookup() 288 strtab = sec->link->strtab; in sym_lookup() 423 struct section *sec = &secs[i]; in read_shdrs() local 427 sec->shdr.sh_name = elf_word_to_cpu(shdr.sh_name); in read_shdrs() 428 sec->shdr.sh_type = elf_word_to_cpu(shdr.sh_type); in read_shdrs() 429 sec->shdr.sh_flags = elf_xword_to_cpu(shdr.sh_flags); in read_shdrs() 430 sec->shdr.sh_addr = elf_addr_to_cpu(shdr.sh_addr); in read_shdrs() [all …]
|
/Linux-v5.4/fs/hpfs/ |
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-v5.4/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_wx.c | 302 struct libipw_security sec = { in libipw_wx_set_encode() local 347 sec.enabled = 0; in libipw_wx_set_encode() 348 sec.encrypt = 0; in libipw_wx_set_encode() 349 sec.level = SEC_LEVEL_0; in libipw_wx_set_encode() 350 sec.flags |= SEC_ENABLED | SEC_LEVEL | SEC_ENCRYPT; in libipw_wx_set_encode() 356 sec.enabled = 1; in libipw_wx_set_encode() 357 sec.encrypt = 1; in libipw_wx_set_encode() 358 sec.flags |= SEC_ENABLED | SEC_ENCRYPT; in libipw_wx_set_encode() 398 memcpy(sec.keys[key], keybuf, erq->length); in libipw_wx_set_encode() 400 memset(sec.keys[key] + erq->length, 0, in libipw_wx_set_encode() [all …]
|
/Linux-v5.4/drivers/nvdimm/ |
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() 181 if (test_bit(NVDIMM_SECURITY_DISABLED, &nvdimm->sec.flags)) in __nvdimm_security_unlock() 196 if (test_bit(NVDIMM_SECURITY_UNLOCKED, &nvdimm->sec.flags)) { in __nvdimm_security_unlock() 204 rc = nvdimm->sec.ops->unlock(nvdimm, data); in __nvdimm_security_unlock() 209 nvdimm->sec.flags = nvdimm_security_flags(nvdimm, NVDIMM_USER); in __nvdimm_security_unlock() 228 if (test_bit(NVDIMM_SECURITY_FROZEN, &nvdimm->sec.flags)) { in check_security_state() [all …]
|
/Linux-v5.4/include/asm-generic/ |
D | export.h | 32 .macro ___EXPORT_SYMBOL name,val,sec 35 .section ___ksymtab\sec+\name,"a" 45 .section ___kcrctab\sec+\name,"a" 70 #define __EXPORT_SYMBOL(sym, val, sec) \ argument 72 __cond_export_sym(sym, val, sec, __is_defined(__KSYM_##sym)) 73 #define __cond_export_sym(sym, val, sec, conf) \ argument 74 ___cond_export_sym(sym, val, sec, conf) 75 #define ___cond_export_sym(sym, val, sec, enabled) \ argument 76 __cond_export_sym_##enabled(sym, val, sec) 77 #define __cond_export_sym_1(sym, val, sec) ___EXPORT_SYMBOL sym, val, sec argument [all …]
|
/Linux-v5.4/drivers/net/wireless/realtek/rtw88/ |
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() 79 struct rtw_sec_desc *sec, in rtw_sec_clear_cam() argument 82 struct rtw_cam_entry *cam = &sec->cam_table[hw_key_idx]; in rtw_sec_clear_cam() 87 clear_bit(hw_key_idx, sec->cam_map); in rtw_sec_clear_cam() [all …]
|
/Linux-v5.4/kernel/time/ |
D | vsyscall.c | 20 u64 nsec, sec; in update_vdso_data() local 33 vdso_ts->sec = tk->xtime_sec; in update_vdso_data() 38 vdso_ts->sec = tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vdso_data() 44 vdso_ts->sec++; in update_vdso_data() 49 sec = vdso_ts->sec; in update_vdso_data() 51 sec += tk->monotonic_to_boot.tv_sec; in update_vdso_data() 56 vdso_ts->sec = sec; in update_vdso_data() 60 vdso_ts->sec++; in update_vdso_data() 66 vdso_ts->sec = tk->raw_sec; in update_vdso_data() 71 vdso_ts->sec = tk->xtime_sec + (s64)tk->tai_offset; in update_vdso_data() [all …]
|
/Linux-v5.4/drivers/media/dvb-core/ |
D | dvb_demux.c | 100 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 …]
|