/linux/arch/powerpc/lib/ |
H A D | crct10dif-vpmsum_asm.S | 21 /* x^261184 mod p(x), x^261120 mod p(x) */ 24 /* x^260160 mod p(x), x^260096 mod p(x) */ 27 /* x^259136 mod p(x), x^259072 mod p(x) */ 30 /* x^258112 mod p(x), x^258048 mod p(x) */ 33 /* x^257088 mod p(x), x^257024 mod p(x) */ 36 /* x^256064 mod p(x), x^256000 mod p(x) */ 39 /* x^255040 mod p(x), x^254976 mod p(x) */ 42 /* x^254016 mod p(x), x^253952 mod p(x) */ 45 /* x^252992 mod p(x), x^252928 mod p(x) */ 48 /* x^251968 mod p(x), x^251904 mod p(x) */ [all …]
|
H A D | crc32c-vpmsum_asm.S | 17 /* x^261120 mod p(x)` << 1, x^261184 mod p(x)` << 1 */ 20 /* x^260096 mod p(x)` << 1, x^260160 mod p(x)` << 1 */ 23 /* x^259072 mod p(x)` << 1, x^259136 mod p(x)` << 1 */ 26 /* x^258048 mod p(x)` << 1, x^258112 mod p(x)` << 1 */ 29 /* x^257024 mod p(x)` << 1, x^257088 mod p(x)` << 1 */ 32 /* x^256000 mod p(x)` << 1, x^256064 mod p(x)` << 1 */ 35 /* x^254976 mod p(x)` << 1, x^255040 mod p(x)` << 1 */ 38 /* x^253952 mod p(x)` << 1, x^254016 mod p(x)` << 1 */ 41 /* x^252928 mod p(x)` << 1, x^252992 mod p(x)` << 1 */ 44 /* x^251904 mod p(x)` << 1, x^251968 mod p(x)` << 1 */ [all …]
|
/linux/drivers/net/can/ |
H A D | janz-ican3.c | 292 static inline void ican3_set_page(struct ican3_dev *mod, unsigned int page) in ican3_set_page() argument 295 iowrite8(page, &mod->dpmctrl->window_address); in ican3_set_page() 305 * LOCKING: must hold mod->lock 309 static int ican3_old_recv_msg(struct ican3_dev *mod, struct ican3_msg *msg) in ican3_old_recv_msg() argument 315 ican3_set_page(mod, QUEUE_OLD_CONTROL); in ican3_old_recv_msg() 316 peer = ioread8(mod->dpm + MSYNC_PEER); in ican3_old_recv_msg() 317 locl = ioread8(mod->dpm + MSYNC_LOCL); in ican3_old_recv_msg() 321 netdev_dbg(mod->ndev, "no mbox for reading\n"); in ican3_old_recv_msg() 333 ican3_set_page(mod, mbox_page); in ican3_old_recv_msg() 334 memcpy_fromio(msg, mod->dpm, sizeof(*msg)); in ican3_old_recv_msg() [all …]
|
/linux/kernel/module/ |
H A D | main.c | 118 static void mod_update_bounds(struct module *mod) in mod_update_bounds() argument 121 struct module_memory *mod_mem = &mod->mem[type]; in mod_update_bounds() 154 static inline int strong_try_module_get(struct module *mod) in strong_try_module_get() argument 156 BUG_ON(mod && mod->state == MODULE_STATE_UNFORMED); in strong_try_module_get() 157 if (mod && mod->state == MODULE_STATE_COMING) in strong_try_module_get() 159 if (try_module_get(mod)) in strong_try_module_get() 165 static inline void add_taint_module(struct module *mod, unsigned flag, in add_taint_module() argument 169 set_bit(flag, &mod in add_taint_module() 176 __module_put_and_kthread_exit(struct module * mod,long code) __module_put_and_kthread_exit() argument 345 struct module *mod; find_symbol() local 383 struct module *mod; find_module_all() local 404 mod_percpu(struct module * mod) mod_percpu() argument 409 percpu_modalloc(struct module * mod,struct load_info * info) percpu_modalloc() argument 433 percpu_modfree(struct module * mod) percpu_modfree() argument 443 percpu_modcopy(struct module * mod,const void * from,unsigned long size) percpu_modcopy() argument 454 struct module *mod; __is_module_percpu_address() local 500 mod_percpu(struct module * mod) mod_percpu() argument 504 percpu_modalloc(struct module * mod,struct load_info * info) percpu_modalloc() argument 511 percpu_modfree(struct module * mod) percpu_modfree() argument 518 percpu_modcopy(struct module * mod,const void * from,unsigned long size) percpu_modcopy() argument 579 module_unload_init(struct module * mod) module_unload_init() argument 654 module_unload_free(struct module * mod) module_unload_free() argument 686 try_release_module_ref(struct module * mod) try_release_module_ref() argument 700 try_stop_module(struct module * mod,int flags,int * forced) try_stop_module() argument 723 module_refcount(struct module * mod) module_refcount() argument 735 struct module *mod; SYSCALL_DEFINE2() local 892 module_unload_free(struct module * mod) module_unload_free() argument 901 module_unload_init(struct module * mod) module_unload_init() argument 1034 try_to_force_load(struct module * mod,const char * reason) try_to_force_load() argument 1098 verify_namespace_is_imported(const struct load_info * info,const struct kernel_symbol * sym,struct module * mod) verify_namespace_is_imported() argument 1123 inherit_taint(struct module * mod,struct module * owner,const char * name) inherit_taint() argument 1143 resolve_symbol(struct module * mod,const struct load_info * info,const char * name,char ownername[]) resolve_symbol() argument 1199 resolve_symbol_wait(struct module * mod,const struct load_info * info,const char * name) resolve_symbol_wait() argument 1216 module_arch_cleanup(struct module * mod) module_arch_cleanup() argument 1220 module_arch_freeing_init(struct module * mod) module_arch_freeing_init() argument 1224 module_memory_alloc(struct module * mod,enum mod_mem_type type) module_memory_alloc() argument 1272 module_memory_restore_rox(struct module * mod) module_memory_restore_rox() argument 1282 module_memory_free(struct module * mod,enum mod_mem_type type) module_memory_free() argument 1289 free_mod_mem(struct module * mod) free_mod_mem() argument 1309 free_module(struct module * mod) free_module() argument 1391 verify_exported_symbols(struct module * mod) verify_exported_symbols() argument 1437 simplify_symbols(struct module * mod,const struct load_info * info) simplify_symbols() argument 1508 apply_relocations(struct module * mod,const struct load_info * info) apply_relocations() argument 1544 arch_mod_section_prepend(struct module * mod,unsigned int section) arch_mod_section_prepend() argument 1551 module_get_offset_and_type(struct module * mod,enum mod_mem_type type,Elf_Shdr * sechdr,unsigned int section) module_get_offset_and_type() argument 1574 __layout_sections(struct module * mod,struct load_info * info,bool is_init) __layout_sections() argument 1647 layout_sections(struct module * mod,struct load_info * info) layout_sections() argument 1661 module_license_taint_check(struct module * mod,const char * license) module_license_taint_check() argument 1675 setup_modinfo(struct module * mod,struct load_info * info) setup_modinfo() argument 1686 free_modinfo(struct module * mod) free_modinfo() argument 2311 check_modinfo_livepatch(struct module * mod,struct load_info * info) check_modinfo_livepatch() argument 2325 check_modinfo_retpoline(struct module * mod,struct load_info * info) check_modinfo_retpoline() argument 2414 module_augment_kernel_taints(struct module * mod,struct load_info * info) module_augment_kernel_taints() argument 2477 check_modinfo(struct module * mod,struct load_info * info,int flags) check_modinfo() argument 2503 find_module_sections(struct module * mod,struct load_info * info) find_module_sections() argument 2628 move_module(struct module * mod,struct load_info * info) move_module() argument 2718 check_export_symbol_versions(struct module * mod) check_export_symbol_versions() argument 2730 flush_module_icache(const struct module * mod) flush_module_icache() argument 2755 module_frob_arch_sections(Elf_Ehdr * hdr,Elf_Shdr * sechdrs,char * secstrings,struct module * mod) module_frob_arch_sections() argument 2783 struct module *mod; layout_and_allocate() local 2841 module_deallocate(struct module * mod,struct load_info * info) module_deallocate() argument 2856 post_relocation(struct module * mod,const struct load_info * info) post_relocation() argument 2873 do_mod_ctors(struct module * mod) do_mod_ctors() argument 2926 do_init_module(struct module * mod) do_init_module() argument 3068 struct module *mod; finished_loading() local 3131 add_unformed_module(struct module * mod) add_unformed_module() argument 3152 complete_formation(struct module * mod,struct load_info * info) complete_formation() argument 3193 prepare_coming_module(struct module * mod) prepare_coming_module() argument 3214 struct module *mod = arg; unknown_module_param_cb() local 3270 struct module *mod; load_module() local 3654 module_flags(struct module * mod,char * buf,bool show_state) module_flags() argument 3684 struct module *mod; search_module_extables() local 3734 struct module *mod; __module_address() local 3786 struct module *mod = __module_address(addr); __module_text_address() local 3799 struct module *mod; print_modules() local [all...] |
H A D | kallsyms.c | 25 const struct module *mod) in is_exported() argument 29 if (!mod) in is_exported() 32 ks = lookup_exported_symbol(name, mod->syms, mod->syms + mod->num_syms); in is_exported() 113 void layout_symtab(struct module *mod, struct load_info *info) in layout_symtab() argument 119 struct module_memory *mod_mem_data = &mod->mem[MOD_DATA]; in layout_symtab() 120 struct module_memory *mod_mem_init_data = &mod->mem[MOD_INIT_DATA]; in layout_symtab() 124 symsect->sh_entsize = module_get_offset_and_type(mod, MOD_INIT_DATA, in layout_symtab() 133 if (i == 0 || is_livepatch_module(mod) || in layout_symtab() 170 add_kallsyms(struct module * mod,const struct load_info * info) add_kallsyms() argument 228 init_build_id(struct module * mod,const struct load_info * info) init_build_id() argument 242 init_build_id(struct module * mod,const struct load_info * info) init_build_id() argument 256 find_kallsyms_symbol(struct module * mod,unsigned long addr,unsigned long * size,unsigned long * offset) find_kallsyms_symbol() argument 314 dereference_module_function_descriptor(struct module * mod,void * ptr) dereference_module_function_descriptor() argument 332 struct module *mod; module_address_lookup() local 361 struct module *mod; lookup_module_symbol_name() local 387 struct module *mod; module_get_kallsym() local 414 __find_kallsyms_symbol_value(struct module * mod,const char * name) __find_kallsyms_symbol_value() argument 431 struct module *mod; __module_kallsyms_lookup_name() local 466 find_kallsyms_symbol_value(struct module * mod,const char * name) find_kallsyms_symbol_value() argument 480 struct module *mod; module_kallsyms_on_each_symbol() local [all...] |
H A D | internal.h | 64 struct module *mod; member 85 unsigned int mod; member 112 int mod_verify_sig(const void *mod, struct load_info *info); 113 int try_to_force_load(struct module *mod, const char *reason); 117 long module_get_offset_and_type(struct module *mod, enum mod_mem_type type, 119 char *module_flags(struct module *mod, char *buf, bool show_state); 137 int copy_module_elf(struct module *mod, struct load_info *info); 138 void free_module_elf(struct module *mod); in kernel_symbol_value() 140 static inline int copy_module_elf(struct module *mod, struct load_info *info) in kernel_symbol_value() 145 static inline void free_module_elf(struct module *mod) { } in kernel_symbol_value() 151 copy_module_elf(struct module * mod,struct load_info * info) copy_module_elf() argument 156 free_module_elf(struct module * mod) free_module_elf() argument 159 set_livepatch_module(struct module * mod) set_livepatch_module() argument 269 try_add_tainted_module(struct module * mod) try_add_tainted_module() argument 315 mod_tree_insert(struct module * mod) mod_tree_insert() argument 316 mod_tree_remove_init(struct module * mod) mod_tree_remove_init() argument 317 mod_tree_remove(struct module * mod) mod_tree_remove() argument 320 struct module *mod; mod_find() local 351 kmemleak_load_module(const struct module * mod,const struct load_info * info) kmemleak_load_module() argument 365 init_build_id(struct module * mod,const struct load_info * info) init_build_id() argument 366 layout_symtab(struct module * mod,struct load_info * info) layout_symtab() argument 367 add_kallsyms(struct module * mod,const struct load_info * info) add_kallsyms() argument 376 mod_sysfs_setup(struct module * mod,const struct load_info * info,struct kernel_param * kparam,unsigned int num_params) mod_sysfs_setup() argument 384 mod_sysfs_teardown(struct module * mod) mod_sysfs_teardown() argument 385 init_param_lock(struct module * mod) init_param_lock() argument 407 check_version(const struct load_info * info,const char * symname,struct module * mod,const u32 * crc) check_version() argument 414 check_modstruct_version(const struct load_info * info,struct module * mod) check_modstruct_version() argument [all...] |
H A D | livepatch.c | 16 * index from info to mod->klp_info. 18 int copy_module_elf(struct module *mod, struct load_info *info) in copy_module_elf() argument 23 size = sizeof(*mod->klp_info); in copy_module_elf() 24 mod->klp_info = kmalloc(size, GFP_KERNEL); in copy_module_elf() 25 if (!mod->klp_info) in copy_module_elf() 29 size = sizeof(mod->klp_info->hdr); in copy_module_elf() 30 memcpy(&mod->klp_info->hdr, info->hdr, size); in copy_module_elf() 34 mod->klp_info->sechdrs = kmemdup(info->sechdrs, size, GFP_KERNEL); in copy_module_elf() 35 if (!mod->klp_info->sechdrs) { in copy_module_elf() 42 mod->klp_info->secstrings = kmemdup(info->secstrings, size, GFP_KERNEL); in copy_module_elf() [all …]
|
H A D | kdb.c | 19 struct module *mod; in kdb_lsmod() local 25 list_for_each_entry(mod, &modules, list) { in kdb_lsmod() 26 if (mod->state == MODULE_STATE_UNFORMED) in kdb_lsmod() 29 kdb_printf("%-20s%8u", mod->name, mod->mem[MOD_TEXT].size); in kdb_lsmod() 30 kdb_printf("/%8u", mod->mem[MOD_RODATA].size); in kdb_lsmod() 31 kdb_printf("/%8u", mod->mem[MOD_RO_AFTER_INIT].size); in kdb_lsmod() 32 kdb_printf("/%8u", mod->mem[MOD_DATA].size); in kdb_lsmod() 34 kdb_printf(" 0x%px ", (void *)mod); in kdb_lsmod() 36 kdb_printf("%4d ", module_refcount(mod)); in kdb_lsmod() 38 if (mod->state == MODULE_STATE_GOING) in kdb_lsmod() [all …]
|
/linux/sound/soc/renesas/rcar/ |
H A D | src.c | 34 struct rsnd_mod mod; member 46 #define rsnd_src_sync_is_enabled(mod) (rsnd_mod_to_src(mod)->sen.val) argument 49 container_of((_mod), struct rsnd_src, mod) 68 static void rsnd_src_activation(struct rsnd_mod *mod) in rsnd_src_activation() argument 70 rsnd_mod_write(mod, SRC_SWRSR, 0); in rsnd_src_activation() 71 rsnd_mod_write(mod, SRC_SWRSR, 1); in rsnd_src_activation() 74 static void rsnd_src_halt(struct rsnd_mod *mod) in rsnd_src_halt() argument 76 rsnd_mod_write(mod, SRC_SRCIR, 1); in rsnd_src_halt() 77 rsnd_mod_write(mod, SRC_SWRSR, 0); in rsnd_src_halt() 81 struct rsnd_mod *mod) in rsnd_src_dma_req() argument [all …]
|
H A D | ssi.c | 82 struct rsnd_mod mod; member 114 #define rsnd_mod_to_ssi(_mod) container_of((_mod), struct rsnd_ssi, mod) 116 #define rsnd_ssi_is_multi_secondary(mod, io) \ argument 117 (rsnd_ssi_multi_secondaries(io) & (1 << rsnd_mod_id(mod))) 118 #define rsnd_ssi_is_run_mods(mod, io) \ argument 119 (rsnd_ssi_run_mods(io) & (1 << rsnd_mod_id(mod))) 120 #define rsnd_ssi_can_output_clk(mod) (!__rsnd_ssi_is_pin_sharing(mod)) argument 124 struct rsnd_mod *mod = rsnd_io_to_mod_ssi(io); in rsnd_ssi_use_busif() local 125 struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod); in rsnd_ssi_use_busif() 128 if (!rsnd_ssi_is_dma_mode(mod)) in rsnd_ssi_use_busif() [all …]
|
H A D | rsnd.h | 253 u32 rsnd_mod_read(struct rsnd_mod *mod, enum rsnd_reg reg); 254 void rsnd_mod_write(struct rsnd_mod *mod, enum rsnd_reg reg, u32 data); 255 void rsnd_mod_bset(struct rsnd_mod *mod, enum rsnd_reg reg, u32 mask, u32 data); 256 u32 rsnd_get_adinr_bit(struct rsnd_mod *mod, struct rsnd_dai_stream *io); 257 u32 rsnd_get_dalign(struct rsnd_mod *mod, struct rsnd_dai_stream *io); 258 u32 rsnd_get_busif_shift(struct rsnd_dai_stream *io, struct rsnd_mod *mod); 264 struct rsnd_mod *mod, struct rsnd_mod **dma_mod); 267 struct rsnd_mod *mod, char *x); 270 * R-Car sound mod 292 struct rsnd_mod *mod); [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-janz-ttl.c | 59 struct ttl_module *mod = dev_get_drvdata(gpio->parent); in ttl_get_value() local 64 shadow = &mod->porta_shadow; in ttl_get_value() 66 shadow = &mod->portb_shadow; in ttl_get_value() 69 shadow = &mod->portc_shadow; in ttl_get_value() 73 spin_lock(&mod->lock); in ttl_get_value() 75 spin_unlock(&mod->lock); in ttl_get_value() 81 struct ttl_module *mod = dev_get_drvdata(gpio->parent); in ttl_set_value() local 86 port = &mod->regs->porta; in ttl_set_value() 87 shadow = &mod->porta_shadow; in ttl_set_value() 89 port = &mod->regs->portb; in ttl_set_value() [all …]
|
/linux/rust/kernel/ |
H A D | lib.rs | 40 pub mod alloc; 42 pub mod block; 44 pub mod build_assert; 45 pub mod cred; 46 pub mod device; 47 pub mod device_id; 48 pub mod devres; 49 pub mod dma; 50 pub mod driver; 51 pub mod error; [all …]
|
/linux/arch/riscv/kernel/ |
H A D | module-sections.c | 13 unsigned long module_emit_got_entry(struct module *mod, unsigned long val) in module_emit_got_entry() argument 15 struct mod_section *got_sec = &mod->arch.got; in module_emit_got_entry() 32 unsigned long module_emit_plt_entry(struct module *mod, unsigned long val) in module_emit_plt_entry() argument 34 struct mod_section *got_plt_sec = &mod->arch.got_plt; in module_emit_plt_entry() 36 struct mod_section *plt_sec = &mod->arch.plt; in module_emit_plt_entry() 92 char *secstrings, struct module *mod) in module_frob_arch_sections() argument 103 mod->arch.plt.shdr = sechdrs + i; in module_frob_arch_sections() 105 mod->arch.got.shdr = sechdrs + i; in module_frob_arch_sections() 107 mod->arch.got_plt.shdr = sechdrs + i; in module_frob_arch_sections() 110 if (!mod->arch.plt.shdr) { in module_frob_arch_sections() [all …]
|
/linux/sound/soc/intel/avs/ |
H A D | path.c | 33 struct avs_path_module *mod; in avs_path_find_module() local 35 list_for_each_entry(mod, &ppl->mod_list, node) in avs_path_find_module() 36 if (mod->template->id == template_id) in avs_path_find_module() 37 return mod; in avs_path_find_module() 306 static int avs_copier_create(struct avs_dev *adev, struct avs_path_module *mod) in avs_copier_create() argument 308 struct avs_tplg_module *t = mod->template; in avs_copier_create() 317 dma_id = mod->owner->owner->dma_id; in avs_copier_create() 333 mod->gtw_attrs = cfg->gtw_cfg.config.attrs; in avs_copier_create() 335 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, t->core_id, in avs_copier_create() 336 t->domain, cfg, cfg_size, &mod->instance_id); in avs_copier_create() [all …]
|
/linux/tools/testing/selftests/livepatch/ |
H A D | functions.sh | 154 local mod="$1" 156 if [[ ! -f "test_modules/$mod.ko" ]]; then 157 die "Can't find \"test_modules/$mod.ko\", try \"make\"" 160 if [[ $(modinfo "test_modules/$mod.ko" | awk '/^livepatch:/{print $NF}') == "Y" ]]; then 168 local mod="$1"; shift 170 local msg="% insmod test_modules/$mod.ko $*" 172 ret=$(insmod "test_modules/$mod.ko" "$@" 2>&1) 178 loop_until '[[ -e "/sys/module/$mod" ]]' || 179 die "failed to load module $mod" 187 local mod="$1"; shift [all …]
|
/linux/tools/testing/selftests/ftrace/test.d/preemptirq/ |
H A D | irqsoff_tracer.tc | 6 MOD=preemptirq_delay_test 10 rmmod $MOD || true 16 rmmod $MOD || true 23 rmmod $MOD || true 28 modprobe $MOD || unres "$MOD module not available" 29 rmmod $MOD 36 modprobe $MOD test_mode=preempt delay=500000 || fail 37 rmmod $MOD || fail 38 modprobe $MOD test_mode=preempt delay=500000 || fail 39 rmmod $MOD || fail [all …]
|
/linux/kernel/ |
H A D | static_call_inline.c | 158 .mod = NULL, in __static_call_update() 164 struct module *mod = site_mod->mod; in __static_call_update() local 179 if (mod) { in __static_call_update() 181 stop = mod->static_call_sites + in __static_call_update() 182 mod->num_static_call_sites; in __static_call_update() 183 init = mod->state == MODULE_STATE_COMING; in __static_call_update() 220 static int __static_call_init(struct module *mod, in __static_call_init() argument 236 if ((mod && within_module_init((unsigned long)site_addr, mod)) || in __static_call_init() 325 struct module *mod; __static_call_mod_text_reserved() local 364 static_call_add_module(struct module * mod) static_call_add_module() argument 403 static_call_del_module(struct module * mod) static_call_del_module() argument 446 struct module *mod = data; static_call_module_notify() local [all...] |
/linux/drivers/usb/renesas_usbhs/ |
H A D | mod.c | 12 #include "mod.h" 65 void usbhs_mod_register(struct usbhs_priv *priv, struct usbhs_mod *mod, int id) in usbhs_mod_register() argument 69 info->mod[id] = mod; in usbhs_mod_register() 70 mod->priv = priv; in usbhs_mod_register() 81 ret = info->mod[id]; in usbhs_mod_get() 90 struct usbhs_mod *mod = usbhs_mod_get_current(priv); in usbhs_mod_is_host() local 93 if (!mod) in usbhs_mod_is_host() 96 return info->mod[USBHS_HOST] == mod; in usbhs_mod_is_host() 109 struct usbhs_mod *mod = NULL; in usbhs_mod_change() local 116 mod = info->mod[id]; in usbhs_mod_change() [all …]
|
/linux/scripts/mod/ |
H A D | file2alias.c | 43 * @mod: module 48 module_alias_printf(struct module *mod, bool append_wildcard, in module_alias_printf() argument 90 list_for_each_entry(als, &mod->aliases, node) { in module_alias_printf() 97 list_add_tail(&new->node, &mod->aliases); in module_alias_printf() 128 void (*do_entry)(struct module *mod, void *symval); 185 unsigned char max, struct module *mod) in do_usb_entry() argument 245 module_alias_printf(mod, true, "%s", alias); in do_usb_entry() 287 static void do_usb_entry_multi(struct module *mod, void *symval) in do_usb_entry_multi() argument 334 do_usb_entry(symval, devlo, ndigits, clo, chi, max, mod); in do_usb_entry_multi() 342 ndigits, clo, max, max, mod); in do_usb_entry_multi() [all …]
|
H A D | modpost.c | 176 struct module *mod; in find_module() local 178 list_for_each_entry(mod, &modules, list) { in find_module() 179 if (!strcmp(mod->dump_file, filename) && in find_module() 180 !strcmp(mod->name, modname)) in find_module() 181 return mod; in find_module() 188 struct module *mod; in new_module() local 190 mod = xmalloc(sizeof(*mod) + namelen + 1); in new_module() 191 memset(mod, 0, sizeof(*mod)); in new_module() 193 INIT_LIST_HEAD(&mod->exported_symbols); in new_module() 194 INIT_LIST_HEAD(&mod->unresolved_symbols); in new_module() [all …]
|
/linux/lib/ |
H A D | codetag.c | 24 struct module *mod; member 128 static void *get_symbol(struct module *mod, const char *prefix, const char *name) in get_symbol() argument 140 ret = mod ? in get_symbol() 141 (void *)find_kallsyms_symbol_value(mod, buf) : in get_symbol() 148 static struct codetag_range get_section_range(struct module *mod, in get_section_range() argument 152 get_symbol(mod, CODETAG_SECTION_START_PREFIX, section), in get_section_range() 153 get_symbol(mod, CODETAG_SECTION_STOP_PREFIX, section), in get_section_range() 157 static const char *get_mod_name(__maybe_unused struct module *mod) in get_mod_name() argument 160 if (mod) in get_mod_name() 161 return mod->name; in get_mod_name() [all …]
|
/linux/arch/loongarch/kernel/ |
H A D | module-sections.c | 12 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_got_entry() argument 14 struct mod_section *got_sec = &mod->arch.got; in module_emit_got_entry() 31 pr_err("%s: module contains bad GOT relocation\n", mod->name); in module_emit_got_entry() 38 Elf_Addr module_emit_plt_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_plt_entry() argument 41 struct mod_section *plt_sec = &mod->arch.plt; in module_emit_plt_entry() 42 struct mod_section *plt_idx_sec = &mod->arch.plt_idx; in module_emit_plt_entry() 105 char *secstrings, struct module *mod) in module_frob_arch_sections() argument 115 mod->arch.got.shndx = i; in module_frob_arch_sections() 117 mod->arch.plt.shndx = i; in module_frob_arch_sections() 119 mod->arch.plt_idx.shndx = i; in module_frob_arch_sections() [all …]
|
H A D | module.c | 47 static int apply_r_larch_none(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_none() argument 60 static int apply_r_larch_32(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_32() argument 67 static int apply_r_larch_64(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_64() argument 74 static int apply_r_larch_sop_push_pcrel(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_pcrel() argument 80 static int apply_r_larch_sop_push_absolute(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_absolute() argument 86 static int apply_r_larch_sop_push_dup(struct module *mod, u32 *location, Elf_Addr v, in apply_r_larch_sop_push_dup() argument 105 static int apply_r_larch_sop_push_plt_pcrel(struct module *mod, in apply_r_larch_sop_push_plt_pcrel() argument 112 v = module_emit_plt_entry(mod, sechdrs, v); in apply_r_larch_sop_push_plt_pcrel() 115 v = module_emit_plt_entry(mod, sechdrs, v); in apply_r_larch_sop_push_plt_pcrel() 117 return apply_r_larch_sop_push_pcrel(mod, location, v, rela_stack, rela_stack_top, type); in apply_r_larch_sop_push_plt_pcrel() [all …]
|
/linux/include/trace/events/ |
H A D | module.h | 33 TP_PROTO(struct module *mod), 35 TP_ARGS(mod), 39 __string( name, mod->name ) 43 __entry->taints = mod->taints; 52 TP_PROTO(struct module *mod), 54 TP_ARGS(mod), 57 __string( name, mod->name ) 72 TP_PROTO(struct module *mod, unsigned long ip), 74 TP_ARGS(mod, ip), 79 __string( name, mod [all...] |