/linux-6.3-rc2/kernel/module/ |
A D | main.c | 317 { mod->syms, mod->syms + mod->num_syms, mod->crcs, in find_symbol() 319 { mod->gpl_syms, mod->gpl_syms + mod->num_gpl_syms, in find_symbol() 735 if (mod->init && !mod->exit) { in SYSCALL_DEFINE2() 1171 destroy_params(mod->kp, mod->num_kp); in free_module() 1238 { mod->syms, mod->num_syms }, in verify_exported_symbols() 1239 { mod->gpl_syms, mod->num_gpl_syms }, in verify_exported_symbols() 2229 if ((mod->num_syms && !mod->crcs) || in check_module_license_and_versions() 2370 sort_extable(mod->extable, mod->extable + mod->num_exentries); in post_relocation() 2495 ftrace_free_mem(mod, mod->init_layout.base, mod->init_layout.base + in do_init_module() 2845 after_dashes = parse_args(mod->name, mod->args, mod->kp, mod->num_kp, in load_module() [all …]
|
A D | sysfs.c | 127 if (mod->sect_attrs) { in remove_sect_attrs() 179 if (!mod->sect_attrs) in add_notes_attrs() 232 if (mod->notes_attrs) in remove_notes_attrs() 233 free_notes_attrs(mod->notes_attrs, mod->notes_attrs->notes); in remove_notes_attrs() 264 &mod->mkobj.kobj, mod->name); in add_usage_links() 288 attr->free(mod); in module_remove_modinfo_attrs() 357 mod->mkobj.mod = mod; in mod_sysfs_init() 359 memset(&mod->mkobj.kobj, 0, sizeof(mod->mkobj.kobj)); in mod_sysfs_init() 381 mod->holders_dir = kobject_create_and_add("holders", &mod->mkobj.kobj); in mod_sysfs_setup() 411 mod_kobject_put(mod); in mod_sysfs_setup() [all …]
|
A D | kallsyms.c | 28 if (!mod) in is_exported() 31 ks = lookup_exported_symbol(name, mod->syms, mod->syms + mod->num_syms); in is_exported() 143 mod->data_layout.size = strict_align(mod->data_layout.size); in layout_symtab() 152 mod->init_layout.size = ALIGN(mod->init_layout.size, in layout_symtab() 158 mod->init_layout.size = strict_align(mod->init_layout.size); in layout_symtab() 176 mod->kallsyms = (void __rcu *)mod->init_layout.base + in add_kallsyms() 193 mod->core_kallsyms.strtab = s = mod->data_layout.base + info->stroffs; in add_kallsyms() 335 struct module *mod; in module_address_lookup() local 339 if (mod) { in module_address_lookup() 364 struct module *mod; in lookup_module_symbol_name() local [all …]
|
A D | internal.h | 60 struct module *mod; member 131 void free_module_elf(struct module *mod); 144 mod->klp = true; in set_livepatch_module() 199 void mod_tree_insert(struct module *mod); 201 void mod_tree_remove(struct module *mod); 210 struct module *mod; in mod_find() local 214 if (within_module(addr, mod)) in mod_find() 215 return mod; in mod_find() 265 void init_param_lock(struct module *mod); 289 struct module *mod, in check_version() argument [all …]
|
A D | strict_rwx.c | 82 void module_enable_x(const struct module *mod) in module_enable_x() argument 84 if (!PAGE_ALIGNED(mod->core_layout.base) || in module_enable_x() 85 !PAGE_ALIGNED(mod->init_layout.base)) in module_enable_x() 88 frob_text(&mod->core_layout, set_memory_x); in module_enable_x() 89 frob_text(&mod->init_layout, set_memory_x); in module_enable_x() 103 frob_text(&mod->core_layout, set_memory_ro); in module_enable_ro() 105 frob_rodata(&mod->data_layout, set_memory_ro); in module_enable_ro() 106 frob_text(&mod->init_layout, set_memory_ro); in module_enable_ro() 107 frob_rodata(&mod->init_layout, set_memory_ro); in module_enable_ro() 113 void module_enable_nx(const struct module *mod) in module_enable_nx() argument [all …]
|
A D | livepatch.c | 23 size = sizeof(*mod->klp_info); in copy_module_elf() 25 if (!mod->klp_info) in copy_module_elf() 29 size = sizeof(mod->klp_info->hdr); in copy_module_elf() 35 if (!mod->klp_info->sechdrs) { in copy_module_elf() 43 if (!mod->klp_info->secstrings) { in copy_module_elf() 50 mod->klp_info->symndx = symndx; in copy_module_elf() 58 mod->klp_info->sechdrs[symndx].sh_addr = (unsigned long)mod->core_kallsyms.symtab; in copy_module_elf() 63 kfree(mod->klp_info->sechdrs); in copy_module_elf() 65 kfree(mod->klp_info); in copy_module_elf() 71 kfree(mod->klp_info->sechdrs); in free_module_elf() [all …]
|
A D | tree_lookup.c | 78 void mod_tree_insert(struct module *mod) in mod_tree_insert() argument 80 mod->core_layout.mtn.mod = mod; in mod_tree_insert() 81 mod->init_layout.mtn.mod = mod; in mod_tree_insert() 83 __mod_tree_insert(&mod->core_layout.mtn, &mod_tree); in mod_tree_insert() 84 if (mod->init_layout.size) in mod_tree_insert() 88 mod->data_layout.mtn.mod = mod; in mod_tree_insert() 93 void mod_tree_remove_init(struct module *mod) in mod_tree_remove_init() argument 95 if (mod->init_layout.size) in mod_tree_remove_init() 99 void mod_tree_remove(struct module *mod) in mod_tree_remove() argument 101 __mod_tree_remove(&mod->core_layout.mtn, &mod_tree); in mod_tree_remove() [all …]
|
A D | procfs.c | 21 seq_printf(m, " %i ", module_refcount(mod)); in print_unload_info() 32 if (mod->init && !mod->exit) { in print_unload_info() 73 if (mod->state == MODULE_STATE_UNFORMED) in m_show() 76 size = mod->init_layout.size + mod->core_layout.size; in m_show() 78 size += mod->data_layout.size; in m_show() 80 seq_printf(m, "%s %u", mod->name, size); in m_show() 81 print_unload_info(m, mod); in m_show() 85 mod->state == MODULE_STATE_GOING ? "Unloading" : in m_show() 86 mod->state == MODULE_STATE_COMING ? "Loading" : in m_show() 89 value = m->private ? NULL : mod->core_layout.base; in m_show() [all …]
|
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->core_layout.size); in kdb_lsmod() 31 kdb_printf("/%8u", mod->data_layout.size); in kdb_lsmod() 33 kdb_printf(" 0x%px ", (void *)mod); in kdb_lsmod() 35 kdb_printf("%4d ", module_refcount(mod)); in kdb_lsmod() 37 if (mod->state == MODULE_STATE_GOING) in kdb_lsmod() 39 else if (mod->state == MODULE_STATE_COMING) in kdb_lsmod() 43 kdb_printf(" 0x%px", mod->core_layout.base); in kdb_lsmod() [all …]
|
/linux-6.3-rc2/drivers/net/can/ |
A D | janz-ican3.c | 481 mod->fastrx_start = mod->free_page; in ican3_init_fast_host_interface() 498 ican3_set_page(mod, mod->free_page); in ican3_init_fast_host_interface() 517 mod->fasttx_start = mod->free_page; in ican3_init_fast_host_interface() 534 ican3_set_page(mod, mod->free_page); in ican3_init_fast_host_interface() 1360 ican3_set_page(mod, mod->fasttx_start + (mod->fasttx_num / 16)); in ican3_txok() 1389 ican3_set_page(mod, mod->fastrx_start + (mod->fastrx_num / 16)); in ican3_recv_skb() 1438 ican3_set_page(mod, mod->fastrx_start + (mod->fastrx_num / 16)); in ican3_recv_skb() 1709 ican3_set_page(mod, mod->fasttx_start + (mod->fasttx_num / 16)); in ican3_xmit() 1969 mod->dpmctrl = mod->dpm + DPM_PAGE_SIZE; in ican3_probe() 2015 free_irq(mod->irq, mod); in ican3_probe() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/livepatch/ |
A D | functions.sh | 131 local mod="$1" 137 local mod="$1" 147 local mod="$1"; shift 166 local mod="$1"; shift 168 assert_mod "$mod" || 182 local mod="$1"; shift 184 assert_mod "$mod" || 201 local mod="$1"; shift 228 local mod="$1" 234 log "% rmmod $mod" [all …]
|
/linux-6.3-rc2/arch/ia64/kernel/ |
A D | module.c | 445 if (!mod->arch.core_plt || !mod->arch.init_plt || !mod->arch.got || !mod->arch.opd) { in module_frob_arch_sections() 484 mod->arch.got->sh_size, mod->arch.opd->sh_size); in module_frob_arch_sections() 503 return in_init(mod, value) || in_core(mod, value); in is_internal() 644 if ((in_init(mod, val) && in_core(mod, (uint64_t)location)) || in do_reloc() 645 (in_core(mod, val) && in_init(mod, (uint64_t)location))) { in do_reloc() 680 val -= (uint64_t) (in_init(mod, val) ? mod->init_layout.base : mod->core_layout.base); in do_reloc() 705 val = get_fdesc(mod, get_plt(mod, location, val, &ok), &ok); in do_reloc() 824 mod->arch.gp = gp; in apply_relocate_add() 884 mod->name, mod->arch.gp, num_init, num_core); in register_unwind_table() 890 mod->arch.core_unw_table = unw_add_unwind_table(mod->name, 0, mod->arch.gp, in register_unwind_table() [all …]
|
/linux-6.3-rc2/drivers/gpio/ |
A D | gpio-janz-ttl.c | 73 spin_lock(&mod->lock); in ttl_get_value() 75 spin_unlock(&mod->lock); in ttl_get_value() 86 port = &mod->regs->porta; in ttl_set_value() 98 spin_lock(&mod->lock); in ttl_set_value() 105 spin_unlock(&mod->lock); in ttl_set_value() 143 struct ttl_module *mod; in ttl_probe() local 153 mod = devm_kzalloc(&pdev->dev, sizeof(*mod), GFP_KERNEL); in ttl_probe() 154 if (!mod) in ttl_probe() 162 if (IS_ERR(mod->regs)) in ttl_probe() 165 ttl_setup_device(mod); in ttl_probe() [all …]
|
/linux-6.3-rc2/sound/soc/sh/rcar/ |
A D | src.c | 33 struct rsnd_mod mod; member 44 #define rsnd_src_sync_is_enabled(mod) (rsnd_mod_to_src(mod)->sen.val) argument 79 struct rsnd_mod *mod) in rsnd_src_dma_req() argument 85 SRC_NAME, mod, in rsnd_src_dma_req() 90 struct rsnd_mod *mod) in rsnd_src_convert_rate() argument 346 rsnd_mod_write(mod, SRC_BUSIF_DALIGN, rsnd_get_dalign(mod, io)); in rsnd_src_set_convert_rate() 364 int id = rsnd_mod_id(mod); in rsnd_src_irq() 475 rsnd_src_activation(mod); in rsnd_src_init() 490 rsnd_src_halt(mod); in rsnd_src_quit() 492 rsnd_mod_power_off(mod); in rsnd_src_quit() [all …]
|
A D | ssi.c | 80 struct rsnd_mod mod; member 118 #define rsnd_ssi_can_output_clk(mod) (!__rsnd_ssi_is_pin_sharing(mod)) argument 179 if (!mod) in rsnd_ssi_multi_secondaries() 517 rsnd_mod_power_off(mod); in rsnd_ssi_quit() 840 dev_name(dev), mod); in rsnd_ssi_common_probe() 856 if (pure_ssi_mod != mod) in rsnd_ssi_common_remove() 861 free_irq(ssi->irq, mod); in rsnd_ssi_common_remove() 1027 SSI_NAME, mod, name); in rsnd_ssi_dma_req() 1033 struct rsnd_mod *mod) in rsnd_ssi_debug_info() argument 1124 struct rsnd_mod *mod; in rsnd_parse_connect_ssi() local [all …]
|
A D | ssiu.c | 12 struct rsnd_mod mod; member 50 #define rsnd_ssiu_busif_err_irq_enable(mod) rsnd_ssiu_busif_err_irq_ctrl(mod, 1) argument 51 #define rsnd_ssiu_busif_err_irq_disable(mod) rsnd_ssiu_busif_err_irq_ctrl(mod, 0) argument 54 int id = rsnd_mod_id(mod); in rsnd_ssiu_busif_err_irq_ctrl() 91 int id = rsnd_mod_id(mod); in rsnd_ssiu_busif_err_status_clear() 149 int id = rsnd_mod_id(mod); in rsnd_ssiu_init() 414 struct rsnd_mod *mod) in rsnd_ssiu_debug_info() argument 463 rsnd_dai_connect(mod, io, mod->type); in rsnd_parse_connect_ssiu_compatible() 485 struct rsnd_mod *mod; in rsnd_parse_connect_ssiu() local 496 rsnd_dai_connect(mod, io_p, mod->type); in rsnd_parse_connect_ssiu() [all …]
|
A D | dvc.c | 37 struct rsnd_mod mod; member 74 struct rsnd_mod *mod) in rsnd_dvc_volume_parameter() argument 94 struct rsnd_mod *mod) in rsnd_dvc_volume_init() argument 144 struct rsnd_mod *mod) in rsnd_dvc_volume_update() argument 191 ret = rsnd_mod_power_on(mod); in rsnd_dvc_init() 195 rsnd_dvc_activation(mod); in rsnd_dvc_init() 208 rsnd_dvc_halt(mod); in rsnd_dvc_quit() 210 rsnd_mod_power_off(mod); in rsnd_dvc_quit() 284 struct rsnd_mod *mod) in rsnd_dvc_dma_req() argument 289 DVC_NAME, mod, "tx"); in rsnd_dvc_dma_req() [all …]
|
A D | mix.c | 39 struct rsnd_mod mod; member 85 struct rsnd_mod *mod) in rsnd_mix_volume_parameter() argument 105 struct rsnd_mod *mod) in rsnd_mix_volume_init() argument 126 struct rsnd_mod *mod) in rsnd_mix_volume_update() argument 151 ret = rsnd_mod_power_on(mod); in rsnd_mix_init() 155 rsnd_mix_activation(mod); in rsnd_mix_init() 157 rsnd_mix_volume_init(io, mod); in rsnd_mix_init() 159 rsnd_mix_volume_update(io, mod); in rsnd_mix_init() 168 rsnd_mix_halt(mod); in rsnd_mix_quit() 170 rsnd_mod_power_off(mod); in rsnd_mix_quit() [all …]
|
A D | ctu.c | 73 struct rsnd_mod mod; member 115 struct rsnd_mod *mod) in rsnd_ctu_value_init() argument 152 struct rsnd_mod *mod) in rsnd_ctu_value_reset() argument 176 ret = rsnd_mod_power_on(mod); in rsnd_ctu_init() 180 rsnd_ctu_activation(mod); in rsnd_ctu_init() 182 rsnd_ctu_value_init(io, mod); in rsnd_ctu_init() 191 rsnd_ctu_halt(mod); in rsnd_ctu_quit() 193 rsnd_mod_power_off(mod); in rsnd_ctu_quit() 270 return mod->id / 4; in rsnd_ctu_id() 279 return mod->id % 4; in rsnd_ctu_id_sub() [all …]
|
/linux-6.3-rc2/net/can/ |
A D | gw.c | 533 (*gwj->mod.modfunc[modidx++])(cf, &gwj->mod); in can_can_gw_rcv() 550 (*gwj->mod.csumfunc.crc8)(cf, &gwj->mod.csum.crc8); in can_can_gw_rcv() 553 (*gwj->mod.csumfunc.xor)(cf, &gwj->mod.csum.xor); in can_can_gw_rcv() 809 memset(mod, 0, sizeof(*mod)); in cgw_parse_attr() 1085 if (mod.uid) { in cgw_create_job() 1090 if (gwj->mod.uid != mod.uid) in cgw_create_job() 1099 memcpy(&gwj->mod, &mod, sizeof(mod)); in cgw_create_job() 1121 memcpy(&gwj->mod, &mod, sizeof(mod)); in cgw_create_job() 1224 if (gwj->mod.uid || mod.uid) { in cgw_remove_job() 1225 if (gwj->mod.uid != mod.uid) in cgw_remove_job() [all …]
|
/linux-6.3-rc2/arch/riscv/kernel/ |
A D | module-sections.c | 102 mod->arch.plt.shdr = sechdrs + i; in module_frob_arch_sections() 104 mod->arch.got.shdr = sechdrs + i; in module_frob_arch_sections() 106 mod->arch.got_plt.shdr = sechdrs + i; in module_frob_arch_sections() 109 if (!mod->arch.plt.shdr) { in module_frob_arch_sections() 113 if (!mod->arch.got.shdr) { in module_frob_arch_sections() 117 if (!mod->arch.got_plt.shdr) { in module_frob_arch_sections() 142 mod->arch.plt.num_entries = 0; in module_frob_arch_sections() 143 mod->arch.plt.max_entries = num_plts; in module_frob_arch_sections() 149 mod->arch.got.num_entries = 0; in module_frob_arch_sections() 150 mod->arch.got.max_entries = num_gots; in module_frob_arch_sections() [all …]
|
/linux-6.3-rc2/arch/arm/kernel/ |
A D | module-plts.c | 33 return loc - (u32)mod->init_layout.base < mod->init_layout.size; in in_init() 53 struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core : in get_module_plt() 54 &mod->arch.init; in get_module_plt() 228 mod->arch.core.plt = s; in module_frob_arch_sections() 230 mod->arch.init.plt = s; in module_frob_arch_sections() 235 if (!mod->arch.core.plt || !mod->arch.init.plt) { in module_frob_arch_sections() 272 mod->arch.core.plt_count = 0; in module_frob_arch_sections() 284 mod->arch.core.plt->sh_size, mod->arch.init.plt->sh_size); in module_frob_arch_sections() 290 struct module *mod; in in_module_plt() local 295 ret = mod && (loc - (u32)mod->arch.core.plt_ent < mod->arch.core.plt_count * PLT_ENT_SIZE || in in_module_plt() [all …]
|
/linux-6.3-rc2/include/trace/events/ |
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 ) 74 TP_ARGS(mod, ip), 79 __string( name, mod->name ) 96 TP_ARGS(mod, ip) [all …]
|
/linux-6.3-rc2/kernel/ |
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() 236 if ((mod && within_module_init((unsigned long)site_addr, mod)) || in __static_call_init() 252 if (!mod) { in __static_call_init() 279 site_mod->mod = mod; in __static_call_init() 332 mod = NULL; in __static_call_mod_text_reserved() 335 if (!mod) in __static_call_mod_text_reserved() 339 mod->static_call_sites + mod->num_static_call_sites, in __static_call_mod_text_reserved() 342 module_put(mod); in __static_call_mod_text_reserved() [all …]
|
/linux-6.3-rc2/drivers/usb/renesas_usbhs/ |
A D | mod.c | 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() 93 if (!mod) in usbhs_mod_is_host() 96 return info->mod[USBHS_HOST] == mod; in usbhs_mod_is_host() 116 mod = info->mod[id]; in usbhs_mod_change() 121 info->curt = mod; in usbhs_mod_change() 211 if (mod) { in usbhs_status_get_each_irq() 332 if (mod) { in usbhs_irq_callback_update() 342 if (mod->irq_empty && mod->irq_bempsts) { in usbhs_irq_callback_update() [all …]
|