/linux-6.6.21/drivers/net/can/ |
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() 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() 342 ican3_set_page(mod, QUEUE_OLD_CONTROL); in ican3_old_recv_msg() [all …]
|
/linux-6.6.21/kernel/module/ |
D | main.c | 116 static void mod_update_bounds(struct module *mod) in mod_update_bounds() argument 119 struct module_memory *mod_mem = &mod->mem[type]; in mod_update_bounds() 152 static inline int strong_try_module_get(struct module *mod) in strong_try_module_get() argument 154 BUG_ON(mod && mod->state == MODULE_STATE_UNFORMED); in strong_try_module_get() 155 if (mod && mod->state == MODULE_STATE_COMING) in strong_try_module_get() 157 if (try_module_get(mod)) in strong_try_module_get() 163 static inline void add_taint_module(struct module *mod, unsigned flag, in add_taint_module() argument 167 set_bit(flag, &mod->taints); in add_taint_module() 174 void __noreturn __module_put_and_kthread_exit(struct module *mod, long code) in __module_put_and_kthread_exit() argument 176 module_put(mod); in __module_put_and_kthread_exit() [all …]
|
D | sysfs.c | 72 static void add_sect_attrs(struct module *mod, const struct load_info *info) in add_sect_attrs() argument 116 if (sysfs_create_group(&mod->mkobj.kobj, §_attrs->grp)) in add_sect_attrs() 119 mod->sect_attrs = sect_attrs; in add_sect_attrs() 125 static void remove_sect_attrs(struct module *mod) in remove_sect_attrs() argument 127 if (mod->sect_attrs) { in remove_sect_attrs() 128 sysfs_remove_group(&mod->mkobj.kobj, in remove_sect_attrs() 129 &mod->sect_attrs->grp); in remove_sect_attrs() 134 free_sect_attrs(mod->sect_attrs); in remove_sect_attrs() 135 mod->sect_attrs = NULL; in remove_sect_attrs() 172 static void add_notes_attrs(struct module *mod, const struct load_info *info) in add_notes_attrs() argument [all …]
|
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() 151 strsect->sh_entsize = module_get_offset_and_type(mod, MOD_INIT_DATA, in layout_symtab() 170 void add_kallsyms(struct module *mod, const struct load_info *info) in add_kallsyms() argument [all …]
|
D | internal.h | 64 struct module *mod; member 83 unsigned int sym, str, mod, vers, info, pcpu; member 105 int mod_verify_sig(const void *mod, struct load_info *info); 106 int try_to_force_load(struct module *mod, const char *reason); 110 long module_get_offset_and_type(struct module *mod, enum mod_mem_type type, 112 char *module_flags(struct module *mod, char *buf, bool show_state); 141 int copy_module_elf(struct module *mod, struct load_info *info); 142 void free_module_elf(struct module *mod); 144 static inline int copy_module_elf(struct module *mod, struct load_info *info) in copy_module_elf() argument 149 static inline void free_module_elf(struct module *mod) { } in free_module_elf() argument [all …]
|
D | livepatch.c | 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() 43 if (!mod->klp_info->secstrings) { in copy_module_elf() [all …]
|
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 …]
|
D | procfs.c | 16 static inline void print_unload_info(struct seq_file *m, struct module *mod) in print_unload_info() argument 21 seq_printf(m, " %i ", module_refcount(mod)); in print_unload_info() 27 list_for_each_entry(use, &mod->source_list, source_list) { in print_unload_info() 32 if (mod->init && !mod->exit) { in print_unload_info() 41 static inline void print_unload_info(struct seq_file *m, struct module *mod) in print_unload_info() argument 65 static unsigned int module_total_size(struct module *mod) in module_total_size() argument 70 size += mod->mem[type].size; in module_total_size() 76 struct module *mod = list_entry(p, struct module, list); in m_show() local 82 if (mod->state == MODULE_STATE_UNFORMED) in m_show() 85 size = module_total_size(mod); in m_show() [all …]
|
/linux-6.6.21/tools/testing/selftests/livepatch/ |
D | functions.sh | 131 local mod="$1" 133 modprobe --dry-run "$mod" &>/dev/null 137 local mod="$1" 139 if [[ $(modinfo "$mod" | awk '/^livepatch:/{print $NF}') == "Y" ]]; then 147 local mod="$1"; shift 149 local msg="% modprobe $mod $*" 151 ret=$(modprobe "$mod" "$@" 2>&1) 158 die "failed to load module $mod" 166 local mod="$1"; shift 168 assert_mod "$mod" || [all …]
|
/linux-6.6.21/drivers/gpio/ |
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-6.6.21/sound/soc/sh/rcar/ |
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 47 container_of((_mod), struct rsnd_src, mod) 66 static void rsnd_src_activation(struct rsnd_mod *mod) in rsnd_src_activation() argument 68 rsnd_mod_write(mod, SRC_SWRSR, 0); in rsnd_src_activation() 69 rsnd_mod_write(mod, SRC_SWRSR, 1); in rsnd_src_activation() 72 static void rsnd_src_halt(struct rsnd_mod *mod) in rsnd_src_halt() argument 74 rsnd_mod_write(mod, SRC_SRCIR, 1); in rsnd_src_halt() 75 rsnd_mod_write(mod, SRC_SWRSR, 0); in rsnd_src_halt() 79 struct rsnd_mod *mod) in rsnd_src_dma_req() argument [all …]
|
D | ssi.c | 80 struct rsnd_mod mod; member 112 #define rsnd_mod_to_ssi(_mod) container_of((_mod), struct rsnd_ssi, mod) 114 #define rsnd_ssi_is_multi_secondary(mod, io) \ argument 115 (rsnd_ssi_multi_secondaries(io) & (1 << rsnd_mod_id(mod))) 116 #define rsnd_ssi_is_run_mods(mod, io) \ argument 117 (rsnd_ssi_run_mods(io) & (1 << rsnd_mod_id(mod))) 118 #define rsnd_ssi_can_output_clk(mod) (!__rsnd_ssi_is_pin_sharing(mod)) argument 122 struct rsnd_mod *mod = rsnd_io_to_mod_ssi(io); in rsnd_ssi_use_busif() local 123 struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod); in rsnd_ssi_use_busif() 126 if (!rsnd_ssi_is_dma_mode(mod)) in rsnd_ssi_use_busif() [all …]
|
D | ssiu.c | 12 struct rsnd_mod mod; member 24 #define rsnd_mod_to_ssiu(_mod) container_of((_mod), struct rsnd_ssiu, mod) 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 52 static void rsnd_ssiu_busif_err_irq_ctrl(struct rsnd_mod *mod, int enable) in rsnd_ssiu_busif_err_irq_ctrl() argument 54 int id = rsnd_mod_id(mod); in rsnd_ssiu_busif_err_irq_ctrl() 78 u32 sys_int_enable = rsnd_mod_read(mod, reg); in rsnd_ssiu_busif_err_irq_ctrl() 84 rsnd_mod_write(mod, reg, sys_int_enable); in rsnd_ssiu_busif_err_irq_ctrl() 88 bool rsnd_ssiu_busif_err_status_clear(struct rsnd_mod *mod) in rsnd_ssiu_busif_err_status_clear() argument 91 int id = rsnd_mod_id(mod); in rsnd_ssiu_busif_err_status_clear() [all …]
|
D | dvc.c | 37 struct rsnd_mod mod; member 49 container_of((_mod), struct rsnd_dvc, mod) 57 static void rsnd_dvc_activation(struct rsnd_mod *mod) in rsnd_dvc_activation() argument 59 rsnd_mod_write(mod, DVC_SWRSR, 0); in rsnd_dvc_activation() 60 rsnd_mod_write(mod, DVC_SWRSR, 1); in rsnd_dvc_activation() 63 static void rsnd_dvc_halt(struct rsnd_mod *mod) in rsnd_dvc_halt() argument 65 rsnd_mod_write(mod, DVC_DVUIR, 1); in rsnd_dvc_halt() 66 rsnd_mod_write(mod, DVC_SWRSR, 0); in rsnd_dvc_halt() 74 struct rsnd_mod *mod) in rsnd_dvc_volume_parameter() argument 76 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_volume_parameter() [all …]
|
D | mix.c | 39 struct rsnd_mod mod; member 59 container_of((_mod), struct rsnd_mix, mod) 69 static void rsnd_mix_activation(struct rsnd_mod *mod) in rsnd_mix_activation() argument 71 rsnd_mod_write(mod, MIX_SWRSR, 0); in rsnd_mix_activation() 72 rsnd_mod_write(mod, MIX_SWRSR, 1); in rsnd_mix_activation() 75 static void rsnd_mix_halt(struct rsnd_mod *mod) in rsnd_mix_halt() argument 77 rsnd_mod_write(mod, MIX_MIXIR, 1); in rsnd_mix_halt() 78 rsnd_mod_write(mod, MIX_SWRSR, 0); in rsnd_mix_halt() 85 struct rsnd_mod *mod) in rsnd_mix_volume_parameter() argument 87 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); in rsnd_mix_volume_parameter() [all …]
|
D | ctu.c | 73 struct rsnd_mod mod; member 91 container_of((_mod), struct rsnd_ctu, mod) 95 static void rsnd_ctu_activation(struct rsnd_mod *mod) in rsnd_ctu_activation() argument 97 rsnd_mod_write(mod, CTU_SWRSR, 0); in rsnd_ctu_activation() 98 rsnd_mod_write(mod, CTU_SWRSR, 1); in rsnd_ctu_activation() 101 static void rsnd_ctu_halt(struct rsnd_mod *mod) in rsnd_ctu_halt() argument 103 rsnd_mod_write(mod, CTU_CTUIR, 1); in rsnd_ctu_halt() 104 rsnd_mod_write(mod, CTU_SWRSR, 0); in rsnd_ctu_halt() 107 static int rsnd_ctu_probe_(struct rsnd_mod *mod, in rsnd_ctu_probe_() argument 111 return rsnd_cmd_attach(io, rsnd_mod_id(mod)); in rsnd_ctu_probe_() [all …]
|
/linux-6.6.21/arch/ia64/kernel/ |
D | module.c | 156 apply_imm64 (struct module *mod, struct insn *insn, uint64_t val) in apply_imm64() argument 160 mod->name, slot(insn)); in apply_imm64() 168 apply_imm60 (struct module *mod, struct insn *insn, uint64_t val) in apply_imm60() argument 172 mod->name, slot(insn)); in apply_imm60() 177 mod->name, (long) val); in apply_imm60() 185 apply_imm22 (struct module *mod, struct insn *insn, uint64_t val) in apply_imm22() argument 189 mod->name, (long)val); in apply_imm22() 200 apply_imm21b (struct module *mod, struct insn *insn, uint64_t val) in apply_imm21b() argument 204 mod->name, (long)val); in apply_imm21b() 235 patch_plt (struct module *mod, struct plt_entry *plt, long target_ip, unsigned long target_gp) in patch_plt() argument [all …]
|
/linux-6.6.21/net/can/ |
D | gw.c | 99 struct cf_mod *mod); 133 struct cf_mod mod; member 154 struct cf_mod *mod) { op ; } 156 MODFUNC(mod_and_id, cf->can_id &= mod->modframe.and.can_id) 157 MODFUNC(mod_and_len, cf->len &= mod->modframe.and.len) 158 MODFUNC(mod_and_flags, cf->flags &= mod->modframe.and.flags) 159 MODFUNC(mod_and_data, *(u64 *)cf->data &= *(u64 *)mod->modframe.and.data) 160 MODFUNC(mod_or_id, cf->can_id |= mod->modframe.or.can_id) 161 MODFUNC(mod_or_len, cf->len |= mod->modframe.or.len) 162 MODFUNC(mod_or_flags, cf->flags |= mod->modframe.or.flags) [all …]
|
/linux-6.6.21/arch/riscv/kernel/ |
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() 91 char *secstrings, struct module *mod) in module_frob_arch_sections() argument 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() [all …]
|
/linux-6.6.21/include/trace/events/ |
D | module.h | 33 TP_PROTO(struct module *mod), 35 TP_ARGS(mod), 39 __string( name, mod->name ) 43 __entry->taints = mod->taints; 44 __assign_str(name, mod->name); 52 TP_PROTO(struct module *mod), 54 TP_ARGS(mod), 57 __string( name, mod->name ) 61 __assign_str(name, mod->name); 72 TP_PROTO(struct module *mod, unsigned long ip), [all …]
|
/linux-6.6.21/kernel/ |
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() 237 (!mod && init_section_contains(site_addr, 1))) in __static_call_init() 252 if (!mod) { in __static_call_init() [all …]
|
/linux-6.6.21/drivers/usb/renesas_usbhs/ |
D | mod.c | 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() 121 info->curt = mod; in usbhs_mod_change() [all …]
|
/linux-6.6.21/sound/soc/intel/avs/ |
D | path.c | 32 struct avs_path_module *mod; in avs_path_find_module() local 34 list_for_each_entry(mod, &ppl->mod_list, node) in avs_path_find_module() 35 if (mod->template->id == template_id) in avs_path_find_module() 36 return mod; in avs_path_find_module() 144 static int avs_copier_create(struct avs_dev *adev, struct avs_path_module *mod) in avs_copier_create() argument 147 struct avs_tplg_module *t = mod->template; in avs_copier_create() 221 node_id.vindex = mod->owner->owner->dma_id; in avs_copier_create() 227 mod->owner->owner->dma_id; in avs_copier_create() 259 mod->gtw_attrs = cfg->gtw_cfg.config.attrs; in avs_copier_create() 261 ret = avs_dsp_init_module(adev, mod->module_id, mod->owner->instance_id, in avs_copier_create() [all …]
|
/linux-6.6.21/scripts/mod/ |
D | modpost.c | 174 struct module *mod; in find_module() local 176 list_for_each_entry(mod, &modules, list) { in find_module() 177 if (strcmp(mod->name, modname) == 0) in find_module() 178 return mod; in find_module() 185 struct module *mod; in new_module() local 187 mod = NOFAIL(malloc(sizeof(*mod) + namelen + 1)); in new_module() 188 memset(mod, 0, sizeof(*mod)); in new_module() 190 INIT_LIST_HEAD(&mod->exported_symbols); in new_module() 191 INIT_LIST_HEAD(&mod->unresolved_symbols); in new_module() 192 INIT_LIST_HEAD(&mod->missing_namespaces); in new_module() [all …]
|
/linux-6.6.21/arch/arm/kernel/ |
D | module-plts.c | 46 u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val) in get_module_plt() argument 48 struct mod_plt_sec *pltsec = !within_module_init(loc, mod) ? in get_module_plt() 49 &mod->arch.core : &mod->arch.init; in get_module_plt() 210 char *secstrings, struct module *mod) in module_frob_arch_sections() argument 223 mod->arch.core.plt = s; in module_frob_arch_sections() 225 mod->arch.init.plt = s; in module_frob_arch_sections() 230 if (!mod->arch.core.plt || !mod->arch.init.plt) { in module_frob_arch_sections() 231 pr_err("%s: module PLT section(s) missing\n", mod->name); in module_frob_arch_sections() 235 pr_err("%s: module symtab section missing\n", mod->name); in module_frob_arch_sections() 262 mod->arch.core.plt->sh_type = SHT_NOBITS; in module_frob_arch_sections() [all …]
|