Home
last modified time | relevance | path

Searched refs:mod (Results 1 – 25 of 463) sorted by relevance

12345678910>>...19

/linux/drivers/net/can/
H A Djanz-ican3.c292 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 in ican3_old_recv_msg()
354 ican3_old_send_msg(struct ican3_dev * mod,struct ican3_msg * msg) ican3_old_send_msg() argument
391 ican3_init_new_host_interface(struct ican3_dev * mod) ican3_init_new_host_interface() argument
470 ican3_init_fast_host_interface(struct ican3_dev * mod) ican3_init_fast_host_interface() argument
558 ican3_new_send_msg(struct ican3_dev * mod,struct ican3_msg * msg) ican3_new_send_msg() argument
589 ican3_new_recv_msg(struct ican3_dev * mod,struct ican3_msg * msg) ican3_new_recv_msg() argument
621 ican3_send_msg(struct ican3_dev * mod,struct ican3_msg * msg) ican3_send_msg() argument
637 ican3_recv_msg(struct ican3_dev * mod,struct ican3_msg * msg) ican3_recv_msg() argument
657 ican3_msg_connect(struct ican3_dev * mod) ican3_msg_connect() argument
668 ican3_msg_disconnect(struct ican3_dev * mod) ican3_msg_disconnect() argument
679 ican3_msg_newhostif(struct ican3_dev * mod) ican3_msg_newhostif() argument
700 ican3_msg_fasthostif(struct ican3_dev * mod) ican3_msg_fasthostif() argument
733 ican3_set_id_filter(struct ican3_dev * mod,bool accept) ican3_set_id_filter() argument
777 ican3_set_bus_state(struct ican3_dev * mod,bool on) ican3_set_bus_state() argument
856 ican3_set_termination(struct ican3_dev * mod,bool on) ican3_set_termination() argument
869 ican3_send_inquiry(struct ican3_dev * mod,u8 subspec) ican3_send_inquiry() argument
882 ican3_set_buserror(struct ican3_dev * mod,u8 quota) ican3_set_buserror() argument
910 ican3_to_can_frame(struct ican3_dev * mod,struct ican3_fast_desc * desc,struct can_frame * cf) ican3_to_can_frame() argument
942 can_frame_to_ican3(struct ican3_dev * mod,struct can_frame * cf,struct ican3_fast_desc * desc) can_frame_to_ican3() argument
986 ican3_handle_idvers(struct ican3_dev * mod,struct ican3_msg * msg) ican3_handle_idvers() argument
991 ican3_handle_msglost(struct ican3_dev * mod,struct ican3_msg * msg) ican3_handle_msglost() argument
1033 ican3_handle_cevtind(struct ican3_dev * mod,struct ican3_msg * msg) ican3_handle_cevtind() argument
1179 ican3_handle_inquiry(struct ican3_dev * mod,struct ican3_msg * msg) ican3_handle_inquiry() argument
1199 ican3_handle_nmtsind(struct ican3_dev * mod,struct ican3_msg * msg) ican3_handle_nmtsind() argument
1233 ican3_handle_unknown_message(struct ican3_dev * mod,struct ican3_msg * msg) ican3_handle_unknown_message() argument
1243 ican3_handle_message(struct ican3_dev * mod,struct ican3_msg * msg) ican3_handle_message() argument
1275 ican3_put_echo_skb(struct ican3_dev * mod,struct sk_buff * skb) ican3_put_echo_skb() argument
1287 ican3_get_echo_skb(struct ican3_dev * mod) ican3_get_echo_skb() argument
1326 ican3_echo_skb_matches(struct ican3_dev * mod,struct sk_buff * skb) ican3_echo_skb_matches() argument
1350 ican3_txok(struct ican3_dev * mod) ican3_txok() argument
1376 ican3_recv_skb(struct ican3_dev * mod) ican3_recv_skb() argument
1452 struct ican3_dev *mod = container_of(napi, struct ican3_dev, napi); ican3_napi() local
1496 struct ican3_dev *mod = dev_id; ican3_irq() local
1525 ican3_reset_module(struct ican3_dev * mod) ican3_reset_module() argument
1557 ican3_shutdown_module(struct ican3_dev * mod) ican3_shutdown_module() argument
1566 ican3_startup_module(struct ican3_dev * mod) ican3_startup_module() argument
1639 struct ican3_dev *mod = netdev_priv(ndev); ican3_open() local
1666 struct ican3_dev *mod = netdev_priv(ndev); ican3_stop() local
1690 struct ican3_dev *mod = netdev_priv(ndev); ican3_xmit() local
1781 struct ican3_dev *mod = netdev_priv(ndev); ican3_set_mode() local
1806 struct ican3_dev *mod = netdev_priv(ndev); ican3_get_berr_counter() local
1831 struct ican3_dev *mod = netdev_priv(to_net_dev(dev)); termination_show() local
1850 struct ican3_dev *mod = netdev_priv(to_net_dev(dev)); termination_store() local
1868 struct ican3_dev *mod = netdev_priv(to_net_dev(dev)); fwinfo_show() local
1894 struct ican3_dev *mod; ican3_probe() local
2029 struct ican3_dev *mod = netdev_priv(ndev); ican3_remove() local
[all...]
/linux/kernel/module/
H A Dmain.c118 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()
182 static inline int strong_try_module_get(struct module *mod) in strong_try_module_get() argument
184 BUG_ON(mod && mod->state == MODULE_STATE_UNFORMED); in strong_try_module_get()
185 if (mod && mod->state == MODULE_STATE_COMING) in strong_try_module_get()
187 if (try_module_get(mod)) in strong_try_module_get()
193 static inline void add_taint_module(struct module *mod, unsigned flag, in add_taint_module() argument
197 set_bit(flag, &mod->taints); in add_taint_module()
228 void __noreturn __module_put_and_kthread_exit(struct module *mod, long code) in __module_put_and_kthread_exit() argument
230 module_put(mod); in __module_put_and_kthread_exit()
[all …]
H A Dsysfs.c65 static int add_sect_attrs(struct module *mod, const struct load_info *info) in add_sect_attrs() argument
111 ret = sysfs_create_group(&mod->mkobj.kobj, &sect_attrs->grp); in add_sect_attrs()
115 mod->sect_attrs = sect_attrs; in add_sect_attrs()
122 static void remove_sect_attrs(struct module *mod) in remove_sect_attrs() argument
124 if (mod->sect_attrs) { in remove_sect_attrs()
125 sysfs_remove_group(&mod->mkobj.kobj, in remove_sect_attrs()
126 &mod->sect_attrs->grp); in remove_sect_attrs()
131 free_sect_attrs(mod->sect_attrs); in remove_sect_attrs()
132 mod->sect_attrs = NULL; in remove_sect_attrs()
151 static int add_notes_attrs(struct module *mod, const struct load_info *info) in add_notes_attrs() argument
[all …]
H A Dkallsyms.c25 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 Dinternal.h67 struct module *mod; member
88 unsigned int mod; member
122 int mod_verify_sig(const void *mod, struct load_info *info);
123 int try_to_force_load(struct module *mod, const char *reason);
127 long module_get_offset_and_type(struct module *mod, enum mod_mem_type type,
129 char *module_flags(struct module *mod, char *buf, bool show_state);
147 int copy_module_elf(struct module *mod, struct load_info *info);
148 void free_module_elf(struct module *mod);
150 static inline int copy_module_elf(struct module *mod, struct load_info *info) in copy_module_elf() argument
155 static inline void free_module_elf(struct module *mod) { } in free_module_elf() argument
[all …]
H A Dlivepatch.c18 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 …]
H A Dkdb.c19 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 …]
H A Dprocfs.c16 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/drivers/gpio/
H A Dgpio-janz-ttl.c59 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/sound/soc/renesas/rcar/
H A Dssiu.c12 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 …]
H A Ddvc.c37 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 …]
H A Dmix.c39 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 …]
H A Dctu.c73 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 …]
H A Ddma.c34 struct rsnd_mod mod; member
53 #define rsnd_mod_to_dma(_mod) container_of((_mod), struct rsnd_dma, mod)
82 static int rsnd_dmaen_stop(struct rsnd_mod *mod, in rsnd_dmaen_stop() argument
89 static int rsnd_dmaen_cleanup(struct rsnd_mod *mod, in rsnd_dmaen_cleanup() argument
93 struct rsnd_dma *dma = rsnd_mod_to_dma(mod); in rsnd_dmaen_cleanup()
109 static int rsnd_dmaen_prepare(struct rsnd_mod *mod, in rsnd_dmaen_prepare() argument
113 struct rsnd_dma *dma = rsnd_mod_to_dma(mod); in rsnd_dmaen_prepare()
138 static int rsnd_dmaen_start(struct rsnd_mod *mod, in rsnd_dmaen_start() argument
142 struct rsnd_dma *dma = rsnd_mod_to_dma(mod); in rsnd_dmaen_start()
181 rsnd_mod_name(mod), in rsnd_dmaen_start()
[all …]
H A Drsnd.h253 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);
292 struct rsnd_mod *mod);
293 int (*probe)(struct rsnd_mod *mod,
[all …]
/linux/tools/testing/selftests/livepatch/
H A Dfunctions.sh158 local mod="$1"
160 if [[ ! -f "test_modules/$mod.ko" ]]; then
161 die "Can't find \"test_modules/$mod.ko\", try \"make\""
164 if [[ $(modinfo "test_modules/$mod.ko" | awk '/^livepatch:/{print $NF}') == "Y" ]]; then
172 local mod="$1"; shift
174 local msg="% insmod test_modules/$mod.ko $*"
176 ret=$(insmod "test_modules/$mod.ko" "$@" 2>&1)
183 die "failed to load module $mod"
191 local mod="$1"; shift
193 is_livepatch_mod "$mod" &&
[all …]
/linux/net/can/
H A Dgw.c99 struct cf_mod *mod);
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)
163 MODFUNC(mod_or_data, *(u64 *)cf->data |= *(u64 *)mod->modframe.or.data)
[all …]
/linux/arch/riscv/kernel/
H A Dmodule-sections.c14 unsigned long module_emit_got_entry(struct module *mod, unsigned long val) in module_emit_got_entry() argument
16 struct mod_section *got_sec = &mod->arch.got; in module_emit_got_entry()
33 unsigned long module_emit_plt_entry(struct module *mod, unsigned long val) in module_emit_plt_entry() argument
35 struct mod_section *got_plt_sec = &mod->arch.got_plt; in module_emit_plt_entry()
37 struct mod_section *plt_sec = &mod->arch.plt; in module_emit_plt_entry()
116 char *secstrings, struct module *mod) in module_frob_arch_sections() argument
131 mod->arch.plt.shdr = sechdrs + i; in module_frob_arch_sections()
133 mod->arch.got.shdr = sechdrs + i; in module_frob_arch_sections()
135 mod->arch.got_plt.shdr = sechdrs + i; in module_frob_arch_sections()
138 if (!mod->arch.plt.shdr) { in module_frob_arch_sections()
[all …]
/linux/include/trace/events/
H A Dmodule.h33 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...]
/linux/include/linux/
H A Dcodetag.h42 int (*module_load)(struct module *mod,
44 void (*module_unload)(struct module *mod,
47 void (*module_replaced)(struct module *mod, struct module *new_mod);
48 bool (*needs_section_mem)(struct module *mod, unsigned long size);
49 void *(*alloc_section_mem)(struct module *mod, unsigned long size,
51 void (*free_section_mem)(struct module *mod, bool used);
89 bool codetag_needs_module_section(struct module *mod, const char *name,
91 void *codetag_alloc_module_section(struct module *mod, const char *name,
94 void codetag_free_module_sections(struct module *mod);
95 void codetag_module_replaced(struct module *mod, struct module *new_mod);
[all …]
/linux/kernel/
H A Dstatic_call_inline.c158 .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 Dmod.c65 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/lib/
H A Dcodetag.c30 struct module *mod; member
138 static void *get_symbol(struct module *mod, const char *prefix, const char *name) in get_symbol() argument
150 ret = mod ? in get_symbol()
151 (void *)find_kallsyms_symbol_value(mod, buf) : in get_symbol()
158 static struct codetag_range get_section_range(struct module *mod, in get_section_range() argument
162 get_symbol(mod, CODETAG_SECTION_START_PREFIX, section), in get_section_range()
163 get_symbol(mod, CODETAG_SECTION_STOP_PREFIX, section), in get_section_range()
167 static const char *get_mod_name(__maybe_unused struct module *mod) in get_mod_name() argument
170 if (mod) in get_mod_name()
171 return mod->name; in get_mod_name()
[all …]
/linux/scripts/
H A Dgenerate_builtin_ranges.awk15 function get_module_info(fn, mod, obj, s) {
23 mod = "";
27 mod = substr(s, RSTART + 16, RLENGTH - 16);
28 gsub(/['"]/, "", mod);
30 mod = substr(s, RSTART + 13, RLENGTH - 13);
38 if (mod !~ / /) {
39 if (!(mod in mods))
40 mod = "";
43 gsub(/([^/ ]*\/)+/, "", mod);
44 gsub(/-/, "_", mod);
[all...]
/linux/arch/loongarch/kernel/
H A Dmodule-sections.c13 Elf_Addr module_emit_got_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_got_entry() argument
15 struct mod_section *got_sec = &mod->arch.got; in module_emit_got_entry()
32 pr_err("%s: module contains bad GOT relocation\n", mod->name); in module_emit_got_entry()
39 Elf_Addr module_emit_plt_entry(struct module *mod, Elf_Shdr *sechdrs, Elf_Addr val) in module_emit_plt_entry() argument
42 struct mod_section *plt_sec = &mod->arch.plt; in module_emit_plt_entry()
43 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 …]

12345678910>>...19