mod                27 arch/arc/kernel/module.c 			      char *secstr, struct module *mod)
mod                30 arch/arc/kernel/module.c 	mod->arch.unw_sec_idx = 0;
mod                31 arch/arc/kernel/module.c 	mod->arch.unw_info = NULL;
mod                33 arch/arc/kernel/module.c 	mod->arch.secstr = secstr;
mod                37 arch/arc/kernel/module.c void module_arch_cleanup(struct module *mod)
mod                40 arch/arc/kernel/module.c 	if (mod->arch.unw_info)
mod                41 arch/arc/kernel/module.c 		unwind_remove_table(mod->arch.unw_info, 0);
mod               133 arch/arc/kernel/module.c 		    struct module *mod)
mod               137 arch/arc/kernel/module.c 	int unwsec = mod->arch.unw_sec_idx;
mod               140 arch/arc/kernel/module.c 		unw = unwind_add_table(mod, (void *)sechdrs[unwsec].sh_addr,
mod               142 arch/arc/kernel/module.c 		mod->arch.unw_info = unw;
mod                38 arch/arm/include/asm/module.h u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val);
mod               160 arch/arm/kernel/ftrace.c int ftrace_make_nop(struct module *mod,
mod                31 arch/arm/kernel/module-plts.c static bool in_init(const struct module *mod, unsigned long loc)
mod                33 arch/arm/kernel/module-plts.c 	return loc - (u32)mod->init_layout.base < mod->init_layout.size;
mod                36 arch/arm/kernel/module-plts.c u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val)
mod                38 arch/arm/kernel/module-plts.c 	struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core :
mod                39 arch/arm/kernel/module-plts.c 							  &mod->arch.init;
mod               189 arch/arm/kernel/module-plts.c 			      char *secstrings, struct module *mod)
mod               202 arch/arm/kernel/module-plts.c 			mod->arch.core.plt = s;
mod               204 arch/arm/kernel/module-plts.c 			mod->arch.init.plt = s;
mod               209 arch/arm/kernel/module-plts.c 	if (!mod->arch.core.plt || !mod->arch.init.plt) {
mod               210 arch/arm/kernel/module-plts.c 		pr_err("%s: module PLT section(s) missing\n", mod->name);
mod               214 arch/arm/kernel/module-plts.c 		pr_err("%s: module symtab section missing\n", mod->name);
mod               241 arch/arm/kernel/module-plts.c 	mod->arch.core.plt->sh_type = SHT_NOBITS;
mod               242 arch/arm/kernel/module-plts.c 	mod->arch.core.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
mod               243 arch/arm/kernel/module-plts.c 	mod->arch.core.plt->sh_addralign = L1_CACHE_BYTES;
mod               244 arch/arm/kernel/module-plts.c 	mod->arch.core.plt->sh_size = round_up(core_plts * PLT_ENT_SIZE,
mod               246 arch/arm/kernel/module-plts.c 	mod->arch.core.plt_count = 0;
mod               248 arch/arm/kernel/module-plts.c 	mod->arch.init.plt->sh_type = SHT_NOBITS;
mod               249 arch/arm/kernel/module-plts.c 	mod->arch.init.plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
mod               250 arch/arm/kernel/module-plts.c 	mod->arch.init.plt->sh_addralign = L1_CACHE_BYTES;
mod               251 arch/arm/kernel/module-plts.c 	mod->arch.init.plt->sh_size = round_up(init_plts * PLT_ENT_SIZE,
mod               253 arch/arm/kernel/module-plts.c 	mod->arch.init.plt_count = 0;
mod               256 arch/arm/kernel/module-plts.c 		 mod->arch.core.plt->sh_size, mod->arch.init.plt->sh_size);
mod               344 arch/arm/kernel/module.c 		    struct module *mod)
mod               385 arch/arm/kernel/module.c 			mod->arch.unwind[i] =
mod               407 arch/arm/kernel/module.c module_arch_cleanup(struct module *mod)
mod               413 arch/arm/kernel/module.c 		if (mod->arch.unwind[i])
mod               414 arch/arm/kernel/module.c 			unwind_table_del(mod->arch.unwind[i]);
mod                16 arch/arm/mach-imx/hardware.h #define addr_in_module(addr, mod) \
mod                17 arch/arm/mach-imx/hardware.h 	((unsigned long)(addr) - mod ## _BASE_ADDR < mod ## _SIZE)
mod                28 arch/arm64/include/asm/module.h u64 module_emit_plt_entry(struct module *mod, Elf64_Shdr *sechdrs,
mod                32 arch/arm64/include/asm/module.h u64 module_emit_veneer_for_adrp(struct module *mod, Elf64_Shdr *sechdrs,
mod                77 arch/arm64/kernel/ftrace.c 		struct module *mod;
mod                90 arch/arm64/kernel/ftrace.c 		mod = __module_text_address(pc);
mod                93 arch/arm64/kernel/ftrace.c 		if (WARN_ON(!mod))
mod               109 arch/arm64/kernel/ftrace.c 		dst = mod->arch.ftrace_trampoline;
mod               118 arch/arm64/kernel/ftrace.c 			module_disable_ro(mod);
mod               120 arch/arm64/kernel/ftrace.c 			module_enable_ro(mod, true);
mod               150 arch/arm64/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec,
mod               167 arch/arm64/kernel/ftrace.c 		if (!mod) {
mod               169 arch/arm64/kernel/ftrace.c 			mod = __module_text_address(pc);
mod               172 arch/arm64/kernel/ftrace.c 			if (WARN_ON(!mod))
mod               188 arch/arm64/kernel/ftrace.c 				   mod))
mod                66 arch/arm64/kernel/module-plts.c static bool in_init(const struct module *mod, void *loc)
mod                68 arch/arm64/kernel/module-plts.c 	return (u64)loc - (u64)mod->init_layout.base < mod->init_layout.size;
mod                71 arch/arm64/kernel/module-plts.c u64 module_emit_plt_entry(struct module *mod, Elf64_Shdr *sechdrs,
mod                75 arch/arm64/kernel/module-plts.c 	struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core :
mod                76 arch/arm64/kernel/module-plts.c 							  &mod->arch.init;
mod               103 arch/arm64/kernel/module-plts.c u64 module_emit_veneer_for_adrp(struct module *mod, Elf64_Shdr *sechdrs,
mod               106 arch/arm64/kernel/module-plts.c 	struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core :
mod               107 arch/arm64/kernel/module-plts.c 							  &mod->arch.init;
mod               256 arch/arm64/kernel/module-plts.c 			      char *secstrings, struct module *mod)
mod               270 arch/arm64/kernel/module-plts.c 			mod->arch.core.plt_shndx = i;
mod               272 arch/arm64/kernel/module-plts.c 			mod->arch.init.plt_shndx = i;
mod               281 arch/arm64/kernel/module-plts.c 	if (!mod->arch.core.plt_shndx || !mod->arch.init.plt_shndx) {
mod               282 arch/arm64/kernel/module-plts.c 		pr_err("%s: module PLT section(s) missing\n", mod->name);
mod               286 arch/arm64/kernel/module-plts.c 		pr_err("%s: module symtab section missing\n", mod->name);
mod               313 arch/arm64/kernel/module-plts.c 	pltsec = sechdrs + mod->arch.core.plt_shndx;
mod               318 arch/arm64/kernel/module-plts.c 	mod->arch.core.plt_num_entries = 0;
mod               319 arch/arm64/kernel/module-plts.c 	mod->arch.core.plt_max_entries = core_plts;
mod               321 arch/arm64/kernel/module-plts.c 	pltsec = sechdrs + mod->arch.init.plt_shndx;
mod               326 arch/arm64/kernel/module-plts.c 	mod->arch.init.plt_num_entries = 0;
mod               327 arch/arm64/kernel/module-plts.c 	mod->arch.init.plt_max_entries = init_plts;
mod               228 arch/arm64/kernel/module.c static int reloc_insn_adrp(struct module *mod, Elf64_Shdr *sechdrs,
mod               244 arch/arm64/kernel/module.c 		val = module_emit_veneer_for_adrp(mod, sechdrs, place, val & ~0xfff);
mod               119 arch/csky/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec,
mod                29 arch/hexagon/kernel/module.c 				struct module *mod)
mod                50 arch/hexagon/kernel/module.c 			mod->name);
mod               159 arch/ia64/kernel/ftrace.c int ftrace_make_nop(struct module *mod,
mod               156 arch/ia64/kernel/module.c apply_imm64 (struct module *mod, struct insn *insn, uint64_t val)
mod               160 arch/ia64/kernel/module.c 		       mod->name, slot(insn));
mod               168 arch/ia64/kernel/module.c apply_imm60 (struct module *mod, struct insn *insn, uint64_t val)
mod               172 arch/ia64/kernel/module.c 		       mod->name, slot(insn));
mod               177 arch/ia64/kernel/module.c 			mod->name, (long) val);
mod               185 arch/ia64/kernel/module.c apply_imm22 (struct module *mod, struct insn *insn, uint64_t val)
mod               189 arch/ia64/kernel/module.c 			mod->name, (long)val);
mod               200 arch/ia64/kernel/module.c apply_imm21b (struct module *mod, struct insn *insn, uint64_t val)
mod               204 arch/ia64/kernel/module.c 			mod->name, (long)val);
mod               235 arch/ia64/kernel/module.c patch_plt (struct module *mod, struct plt_entry *plt, long target_ip, unsigned long target_gp)
mod               237 arch/ia64/kernel/module.c 	if (apply_imm64(mod, (struct insn *) (plt->bundle[0] + 2), target_gp)
mod               238 arch/ia64/kernel/module.c 	    && apply_imm60(mod, (struct insn *) (plt->bundle[1] + 2),
mod               285 arch/ia64/kernel/module.c patch_plt (struct module *mod, struct plt_entry *plt, long target_ip, unsigned long target_gp)
mod               287 arch/ia64/kernel/module.c 	if (apply_imm64(mod, (struct insn *) (plt->bundle[0] + 2), target_ip)
mod               288 arch/ia64/kernel/module.c 	    && apply_imm64(mod, (struct insn *) (plt->bundle[1] + 2), target_gp))
mod               310 arch/ia64/kernel/module.c module_arch_freeing_init (struct module *mod)
mod               312 arch/ia64/kernel/module.c 	if (mod->arch.init_unw_table) {
mod               313 arch/ia64/kernel/module.c 		unw_remove_unwind_table(mod->arch.init_unw_table);
mod               314 arch/ia64/kernel/module.c 		mod->arch.init_unw_table = NULL;
mod               424 arch/ia64/kernel/module.c 			   struct module *mod)
mod               435 arch/ia64/kernel/module.c 			mod->arch.core_plt = s;
mod               437 arch/ia64/kernel/module.c 			mod->arch.init_plt = s;
mod               439 arch/ia64/kernel/module.c 			mod->arch.got = s;
mod               441 arch/ia64/kernel/module.c 			mod->arch.opd = s;
mod               443 arch/ia64/kernel/module.c 			mod->arch.unwind = s;
mod               445 arch/ia64/kernel/module.c 	if (!mod->arch.core_plt || !mod->arch.init_plt || !mod->arch.got || !mod->arch.opd) {
mod               446 arch/ia64/kernel/module.c 		printk(KERN_ERR "%s: sections missing\n", mod->name);
mod               466 arch/ia64/kernel/module.c 	mod->arch.core_plt->sh_type = SHT_NOBITS;
mod               467 arch/ia64/kernel/module.c 	mod->arch.core_plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
mod               468 arch/ia64/kernel/module.c 	mod->arch.core_plt->sh_addralign = 16;
mod               469 arch/ia64/kernel/module.c 	mod->arch.core_plt->sh_size = core_plts * sizeof(struct plt_entry);
mod               470 arch/ia64/kernel/module.c 	mod->arch.init_plt->sh_type = SHT_NOBITS;
mod               471 arch/ia64/kernel/module.c 	mod->arch.init_plt->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
mod               472 arch/ia64/kernel/module.c 	mod->arch.init_plt->sh_addralign = 16;
mod               473 arch/ia64/kernel/module.c 	mod->arch.init_plt->sh_size = init_plts * sizeof(struct plt_entry);
mod               474 arch/ia64/kernel/module.c 	mod->arch.got->sh_type = SHT_NOBITS;
mod               475 arch/ia64/kernel/module.c 	mod->arch.got->sh_flags = ARCH_SHF_SMALL | SHF_ALLOC;
mod               476 arch/ia64/kernel/module.c 	mod->arch.got->sh_addralign = 8;
mod               477 arch/ia64/kernel/module.c 	mod->arch.got->sh_size = gots * sizeof(struct got_entry);
mod               478 arch/ia64/kernel/module.c 	mod->arch.opd->sh_type = SHT_NOBITS;
mod               479 arch/ia64/kernel/module.c 	mod->arch.opd->sh_flags = SHF_ALLOC;
mod               480 arch/ia64/kernel/module.c 	mod->arch.opd->sh_addralign = 8;
mod               481 arch/ia64/kernel/module.c 	mod->arch.opd->sh_size = fdescs * sizeof(struct fdesc);
mod               483 arch/ia64/kernel/module.c 	       __func__, mod->arch.core_plt->sh_size, mod->arch.init_plt->sh_size,
mod               484 arch/ia64/kernel/module.c 	       mod->arch.got->sh_size, mod->arch.opd->sh_size);
mod               489 arch/ia64/kernel/module.c in_init (const struct module *mod, uint64_t addr)
mod               491 arch/ia64/kernel/module.c 	return addr - (uint64_t) mod->init_layout.base < mod->init_layout.size;
mod               495 arch/ia64/kernel/module.c in_core (const struct module *mod, uint64_t addr)
mod               497 arch/ia64/kernel/module.c 	return addr - (uint64_t) mod->core_layout.base < mod->core_layout.size;
mod               501 arch/ia64/kernel/module.c is_internal (const struct module *mod, uint64_t value)
mod               503 arch/ia64/kernel/module.c 	return in_init(mod, value) || in_core(mod, value);
mod               510 arch/ia64/kernel/module.c get_ltoff (struct module *mod, uint64_t value, int *okp)
mod               517 arch/ia64/kernel/module.c 	got = (void *) mod->arch.got->sh_addr;
mod               518 arch/ia64/kernel/module.c 	for (e = got; e < got + mod->arch.next_got_entry; ++e)
mod               523 arch/ia64/kernel/module.c 	BUG_ON(e >= (struct got_entry *) (mod->arch.got->sh_addr + mod->arch.got->sh_size));
mod               526 arch/ia64/kernel/module.c 	++mod->arch.next_got_entry;
mod               528 arch/ia64/kernel/module.c 	return (uint64_t) e - mod->arch.gp;
mod               532 arch/ia64/kernel/module.c gp_addressable (struct module *mod, uint64_t value)
mod               534 arch/ia64/kernel/module.c 	return value - mod->arch.gp + MAX_LTOFF/2 < MAX_LTOFF;
mod               539 arch/ia64/kernel/module.c get_plt (struct module *mod, const struct insn *insn, uint64_t value, int *okp)
mod               547 arch/ia64/kernel/module.c 	if (in_init(mod, (uint64_t) insn)) {
mod               548 arch/ia64/kernel/module.c 		plt = (void *) mod->arch.init_plt->sh_addr;
mod               549 arch/ia64/kernel/module.c 		plt_end = (void *) plt + mod->arch.init_plt->sh_size;
mod               551 arch/ia64/kernel/module.c 		plt = (void *) mod->arch.core_plt->sh_addr;
mod               552 arch/ia64/kernel/module.c 		plt_end = (void *) plt + mod->arch.core_plt->sh_size;
mod               567 arch/ia64/kernel/module.c 	if (!patch_plt(mod, plt, target_ip, target_gp)) {
mod               585 arch/ia64/kernel/module.c get_fdesc (struct module *mod, uint64_t value, int *okp)
mod               587 arch/ia64/kernel/module.c 	struct fdesc *fdesc = (void *) mod->arch.opd->sh_addr;
mod               593 arch/ia64/kernel/module.c 		printk(KERN_ERR "%s: fdesc for zero requested!\n", mod->name);
mod               597 arch/ia64/kernel/module.c 	if (!is_internal(mod, value))
mod               608 arch/ia64/kernel/module.c 		if ((uint64_t) ++fdesc >= mod->arch.opd->sh_addr + mod->arch.opd->sh_size)
mod               614 arch/ia64/kernel/module.c 	fdesc->gp = mod->arch.gp;
mod               619 arch/ia64/kernel/module.c do_reloc (struct module *mod, uint8_t r_type, Elf64_Sym *sym, uint64_t addend,
mod               634 arch/ia64/kernel/module.c 	      case RV_GPREL:	  val -= mod->arch.gp; break;
mod               635 arch/ia64/kernel/module.c 	      case RV_LTREL:	  val = get_ltoff(mod, val, &ok); break;
mod               636 arch/ia64/kernel/module.c 	      case RV_PLTREL:	  val = get_plt(mod, location, val, &ok); break;
mod               637 arch/ia64/kernel/module.c 	      case RV_FPTR:	  val = get_fdesc(mod, val, &ok); break;
mod               639 arch/ia64/kernel/module.c 	      case RV_LTREL_FPTR: val = get_ltoff(mod, get_fdesc(mod, val, &ok), &ok); break;
mod               644 arch/ia64/kernel/module.c 			if ((in_init(mod, val) && in_core(mod, (uint64_t)location)) ||
mod               645 arch/ia64/kernel/module.c 			    (in_core(mod, val) && in_init(mod, (uint64_t)location))) {
mod               652 arch/ia64/kernel/module.c 					val = get_fdesc(mod, val, &ok);
mod               653 arch/ia64/kernel/module.c 					val = get_plt(mod, location, val, &ok);
mod               655 arch/ia64/kernel/module.c 			} else if (!is_internal(mod, val))
mod               656 arch/ia64/kernel/module.c 				val = get_plt(mod, location, val, &ok);
mod               680 arch/ia64/kernel/module.c 		val -= (uint64_t) (in_init(mod, val) ? mod->init_layout.base : mod->core_layout.base);
mod               690 arch/ia64/kernel/module.c 			if (!is_internal(mod, val)) {
mod               705 arch/ia64/kernel/module.c 			val = get_fdesc(mod, get_plt(mod, location, val, &ok), &ok);
mod               717 arch/ia64/kernel/module.c 			if (gp_addressable(mod, val))
mod               718 arch/ia64/kernel/module.c 				val -= mod->arch.gp;
mod               720 arch/ia64/kernel/module.c 				val = get_ltoff(mod, val, &ok);
mod               725 arch/ia64/kernel/module.c 			if (gp_addressable(mod, val)) {
mod               735 arch/ia64/kernel/module.c 				       mod->name, reloc_name[r_type]);
mod               738 arch/ia64/kernel/module.c 				       mod->name, r_type);
mod               750 arch/ia64/kernel/module.c 		       mod->name, reloc_name[r_type] ? reloc_name[r_type] : "?");
mod               754 arch/ia64/kernel/module.c 		printk(KERN_ERR "%s: unknown reloc %x\n", mod->name, r_type);
mod               765 arch/ia64/kernel/module.c 	      case RF_INSN21B:	ok = apply_imm21b(mod, location, (int64_t) val / 16); break;
mod               766 arch/ia64/kernel/module.c 	      case RF_INSN22:	ok = apply_imm22(mod, location, val); break;
mod               767 arch/ia64/kernel/module.c 	      case RF_INSN64:	ok = apply_imm64(mod, location, val); break;
mod               768 arch/ia64/kernel/module.c 	      case RF_INSN60:	ok = apply_imm60(mod, location, (int64_t) val / 16); break;
mod               777 arch/ia64/kernel/module.c 		       mod->name, format, reloc_name[r_type] ? reloc_name[r_type] : "?");
mod               782 arch/ia64/kernel/module.c 		       mod->name, reloc_name[r_type] ? reloc_name[r_type] : "?", format);
mod               790 arch/ia64/kernel/module.c 		    unsigned int relsec, struct module *mod)
mod               809 arch/ia64/kernel/module.c 	if (!mod->arch.gp) {
mod               815 arch/ia64/kernel/module.c 		if (mod->core_layout.size > MAX_LTOFF)
mod               820 arch/ia64/kernel/module.c 			gp = mod->core_layout.size - MAX_LTOFF / 2;
mod               822 arch/ia64/kernel/module.c 			gp = mod->core_layout.size / 2;
mod               823 arch/ia64/kernel/module.c 		gp = (uint64_t) mod->core_layout.base + ((gp + 7) & -8);
mod               824 arch/ia64/kernel/module.c 		mod->arch.gp = gp;
mod               829 arch/ia64/kernel/module.c 		ret = do_reloc(mod, ELF64_R_TYPE(rela[i].r_info),
mod               847 arch/ia64/kernel/module.c register_unwind_table (struct module *mod)
mod               849 arch/ia64/kernel/module.c 	struct unw_table_entry *start = (void *) mod->arch.unwind->sh_addr;
mod               850 arch/ia64/kernel/module.c 	struct unw_table_entry *end = start + mod->arch.unwind->sh_size / sizeof (*start);
mod               856 arch/ia64/kernel/module.c 		if (in_init(mod, e1->start_offset))
mod               877 arch/ia64/kernel/module.c 	if (in_init(mod, start->start_offset)) {
mod               886 arch/ia64/kernel/module.c 	       mod->name, mod->arch.gp, num_init, num_core);
mod               892 arch/ia64/kernel/module.c 		mod->arch.core_unw_table = unw_add_unwind_table(mod->name, 0, mod->arch.gp,
mod               895 arch/ia64/kernel/module.c 		       mod->arch.core_unw_table, core, core + num_core);
mod               898 arch/ia64/kernel/module.c 		mod->arch.init_unw_table = unw_add_unwind_table(mod->name, 0, mod->arch.gp,
mod               901 arch/ia64/kernel/module.c 		       mod->arch.init_unw_table, init, init + num_init);
mod               906 arch/ia64/kernel/module.c module_finalize (const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *mod)
mod               908 arch/ia64/kernel/module.c 	DEBUGP("%s: init: entry=%p\n", __func__, mod->init);
mod               909 arch/ia64/kernel/module.c 	if (mod->arch.unwind)
mod               910 arch/ia64/kernel/module.c 		register_unwind_table(mod);
mod               915 arch/ia64/kernel/module.c module_arch_cleanup (struct module *mod)
mod               917 arch/ia64/kernel/module.c 	if (mod->arch.init_unw_table) {
mod               918 arch/ia64/kernel/module.c 		unw_remove_unwind_table(mod->arch.init_unw_table);
mod               919 arch/ia64/kernel/module.c 		mod->arch.init_unw_table = NULL;
mod               921 arch/ia64/kernel/module.c 	if (mod->arch.core_unw_table) {
mod               922 arch/ia64/kernel/module.c 		unw_remove_unwind_table(mod->arch.core_unw_table);
mod               923 arch/ia64/kernel/module.c 		mod->arch.core_unw_table = NULL;
mod               927 arch/ia64/kernel/module.c void *dereference_module_function_descriptor(struct module *mod, void *ptr)
mod               929 arch/ia64/kernel/module.c 	Elf64_Shdr *opd = mod->arch.opd;
mod                39 arch/m68k/include/asm/module.h extern void module_fixup(struct module *mod, struct m68k_fixup_info *start,
mod               104 arch/m68k/kernel/module.c 		    struct module *mod)
mod               106 arch/m68k/kernel/module.c 	module_fixup(mod, mod->arch.fixup_start, mod->arch.fixup_end);
mod               112 arch/m68k/kernel/module.c void module_fixup(struct module *mod, struct m68k_fixup_info *start,
mod               112 arch/microblaze/kernel/ftrace.c int ftrace_make_nop(struct module *mod,
mod               229 arch/mips/include/asm/octeon/cvmx-pko-defs.h 		uint64_t mod:3;
mod               231 arch/mips/include/asm/octeon/cvmx-pko-defs.h 		uint64_t mod:3;
mod               115 arch/mips/include/asm/octeon/cvmx-srxx-defs.h 		uint64_t mod:4;
mod               121 arch/mips/include/asm/octeon/cvmx-srxx-defs.h 		uint64_t mod:4;
mod                28 arch/mips/kernel/cpu-bugs64.c void align_mod(const int align, const int mod)
mod                39 arch/mips/kernel/cpu-bugs64.c 		: "n"(align), "n"(mod));
mod                44 arch/mips/kernel/cpu-bugs64.c 		       const int align, const int mod)
mod                73 arch/mips/kernel/cpu-bugs64.c 	align_mod(align, mod);
mod               104 arch/mips/kernel/cpu-bugs64.c 	align_mod(align, mod);
mod               178 arch/mips/kernel/ftrace.c int ftrace_make_nop(struct module *mod,
mod               453 arch/mips/kernel/module.c void module_arch_cleanup(struct module *mod)
mod               456 arch/mips/kernel/module.c 	list_del(&mod->arch.dbe_list);
mod               182 arch/mips/kernel/vpe.c static void layout_sections(struct module *mod, const Elf_Ehdr *hdr,
mod               208 arch/mips/kernel/vpe.c 				get_offset((unsigned long *)&mod->core_layout.size, s);
mod               212 arch/mips/kernel/vpe.c 			mod->core_layout.text_size = mod->core_layout.size;
mod               481 arch/mips/kernel/vpe.c 			    unsigned int nsecs, struct module *mod)
mod               537 arch/mips/kernel/vpe.c 			    const char *strtab, struct module *mod)
mod               552 arch/mips/kernel/vpe.c 				      struct module *mod)
mod               583 arch/mips/kernel/vpe.c 	struct module mod; /* so we can re-use the relocations code */
mod               585 arch/mips/kernel/vpe.c 	memset(&mod, 0, sizeof(struct module));
mod               586 arch/mips/kernel/vpe.c 	strcpy(mod.name, "VPE loader");
mod               641 arch/mips/kernel/vpe.c 		layout_sections(&mod, hdr, sechdrs, secstrings);
mod               644 arch/mips/kernel/vpe.c 	v->load_addr = alloc_progmem(mod.core_layout.size);
mod               672 arch/mips/kernel/vpe.c 				 hdr->e_shnum, &mod);
mod               689 arch/mips/kernel/vpe.c 							symindex, i, &mod);
mod               692 arch/mips/kernel/vpe.c 							 symindex, i, &mod);
mod               734 arch/mips/kernel/vpe.c 	if ((find_vpe_symbols(v, sechdrs, symindex, strtab, &mod)) < 0) {
mod               195 arch/nds32/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec,
mod                24 arch/nds32/kernel/module.c 			      char *secstrings, struct module *mod)
mod               276 arch/nds32/kernel/module.c void module_arch_cleanup(struct module *mod)
mod                46 arch/nios2/kernel/module.c 			struct module *mod)
mod                82 arch/nios2/kernel/module.c 					mod->name);
mod                92 arch/nios2/kernel/module.c 					mod->name);
mod                97 arch/nios2/kernel/module.c 					mod->name);
mod               125 arch/nios2/kernel/module.c 				mod->name, ELF32_R_TYPE(rela[i].r_info));
mod               354 arch/parisc/include/asm/pdcpat.h 	unsigned long mod[508];		/* PAT cell module components */
mod               366 arch/parisc/include/asm/pdcpat.h 		unsigned long mod, unsigned long view_type, void *mem_addr);
mod               374 arch/parisc/include/uapi/asm/pdc.h 	unsigned char mod;
mod               616 arch/parisc/include/uapi/asm/pdc.h 	char  mod;	/* fixed field of specified module */
mod               317 arch/parisc/kernel/drivers.c 		path->mod = PCI_FUNC(devfn);
mod               341 arch/parisc/kernel/drivers.c 	output += sprintf(output, "%u", (unsigned char) path->mod);
mod               359 arch/parisc/kernel/drivers.c 	path.mod = dev->hw_path;
mod               490 arch/parisc/kernel/drivers.c 	return alloc_tree_node(parent, modpath->mod);
mod               666 arch/parisc/kernel/drivers.c 					(modpath->mod == PCI_FUNC(devfn)));
mod               689 arch/parisc/kernel/drivers.c 	char id = (index == 6) ? modpath->mod : modpath->bc[index];
mod               784 arch/parisc/kernel/drivers.c 		path->mod = padev->hw_path;
mod               858 arch/parisc/kernel/drivers.c 				path.mod = i;
mod              1039 arch/parisc/kernel/drivers.c 	pr_cont(".mod = 0x%x ", mod_path.path.mod);
mod              1341 arch/parisc/kernel/firmware.c int pdc_pat_cell_module(unsigned long *actcnt, unsigned long ploc, unsigned long mod,
mod              1350 arch/parisc/kernel/firmware.c 			      ploc, mod, view_type, __pa(&result));
mod               188 arch/parisc/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec,
mod               230 arch/parisc/kernel/inventory.c 	dev->mod0 = pa_pdc_cell->mod[0];
mod               242 arch/parisc/kernel/inventory.c 			pa_pdc_cell->mod[0]);
mod               248 arch/parisc/kernel/inventory.c 			pa_pdc_cell->mod[0], pa_pdc_cell->mod[1],
mod               249 arch/parisc/kernel/inventory.c 			pa_pdc_cell->mod[2]);
mod               269 arch/parisc/kernel/inventory.c 		printk(KERN_DEBUG "ranges %ld\n", pa_pdc_cell->mod[1]);
mod               270 arch/parisc/kernel/inventory.c 		for (i = 0; i < pa_pdc_cell->mod[1]; i++) {
mod               273 arch/parisc/kernel/inventory.c 				i, pa_pdc_cell->mod[2 + i * 3],	/* type */
mod               274 arch/parisc/kernel/inventory.c 				pa_pdc_cell->mod[3 + i * 3],	/* start */
mod               275 arch/parisc/kernel/inventory.c 				pa_pdc_cell->mod[4 + i * 3]);	/* finish (ie end) */
mod               278 arch/parisc/kernel/inventory.c 				i, io_pdc_cell.mod[2 + i * 3],	/* type */
mod               279 arch/parisc/kernel/inventory.c 				io_pdc_cell.mod[3 + i * 3],	/* start */
mod               280 arch/parisc/kernel/inventory.c 				io_pdc_cell.mod[4 + i * 3]);	/* finish (ie end) */
mod               478 arch/parisc/kernel/inventory.c 	int mod;
mod               479 arch/parisc/kernel/inventory.c 	for (mod = 0; mod < 16; mod++) {
mod               486 arch/parisc/kernel/inventory.c 		module_path.path.mod = mod;
mod               492 arch/parisc/kernel/inventory.c 		module_path.path.bc[4] = mod;
mod               496 arch/parisc/kernel/inventory.c 			module_path.path.mod = func;
mod               281 arch/parisc/kernel/module.c void module_arch_freeing_init(struct module *mod)
mod               283 arch/parisc/kernel/module.c 	kfree(mod->arch.section);
mod               284 arch/parisc/kernel/module.c 	mod->arch.section = NULL;
mod               288 arch/parisc/kernel/module.c unsigned int arch_mod_section_prepend(struct module *mod,
mod               293 arch/parisc/kernel/module.c 	return (mod->arch.section[section].stub_entries + 1)
mod               969 arch/parisc/kernel/module.c void module_arch_cleanup(struct module *mod)
mod               971 arch/parisc/kernel/module.c 	deregister_unwind_table(mod);
mod               975 arch/parisc/kernel/module.c void *dereference_module_function_descriptor(struct module *mod, void *ptr)
mod               977 arch/parisc/kernel/module.c 	unsigned long start_opd = (Elf64_Addr)mod->core_layout.base +
mod               978 arch/parisc/kernel/module.c 				   mod->arch.fdesc_offset;
mod               980 arch/parisc/kernel/module.c 				mod->arch.fdesc_count * sizeof(Elf64_Fdesc);
mod               124 arch/parisc/kernel/processor.c 		txn_addr = pa_pdc_cell->mod[0];   /* id_eid for IO sapic */
mod                60 arch/powerpc/include/asm/ftrace.h 	struct module *mod;
mod                95 arch/powerpc/include/asm/module.h int module_trampoline_target(struct module *mod, unsigned long trampoline,
mod                99 arch/powerpc/include/asm/module.h int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs);
mod               101 arch/powerpc/include/asm/module.h static inline int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs)
mod               175 arch/powerpc/kernel/module_32.c 			    struct module *mod)
mod               181 arch/powerpc/kernel/module_32.c 	if (location >= mod->core_layout.base
mod               182 arch/powerpc/kernel/module_32.c 	    && location < mod->core_layout.base + mod->core_layout.size)
mod               183 arch/powerpc/kernel/module_32.c 		entry = (void *)sechdrs[mod->arch.core_plt_section].sh_addr;
mod               185 arch/powerpc/kernel/module_32.c 		entry = (void *)sechdrs[mod->arch.init_plt_section].sh_addr;
mod                85 arch/powerpc/kernel/module_64.c void *dereference_module_function_descriptor(struct module *mod, void *ptr)
mod                87 arch/powerpc/kernel/module_64.c 	if (ptr < (void *)mod->arch.start_opd ||
mod                88 arch/powerpc/kernel/module_64.c 			ptr >= (void *)mod->arch.end_opd)
mod               148 arch/powerpc/kernel/module_64.c int module_trampoline_target(struct module *mod, unsigned long addr,
mod               155 arch/powerpc/kernel/module_64.c 	if (!within_module_core(addr, mod)) {
mod               156 arch/powerpc/kernel/module_64.c 		pr_err("%s: stub %lx not in module %s\n", __func__, addr, mod->name);
mod               163 arch/powerpc/kernel/module_64.c 		pr_err("%s: fault reading magic for stub %lx for %s\n", __func__, addr, mod->name);
mod               168 arch/powerpc/kernel/module_64.c 		pr_err("%s: bad magic for stub %lx for %s\n", __func__, addr, mod->name);
mod               173 arch/powerpc/kernel/module_64.c 		pr_err("%s: fault reading funcdata for stub %lx for %s\n", __func__, addr, mod->name);
mod               824 arch/powerpc/kernel/module_64.c int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs)
mod               826 arch/powerpc/kernel/module_64.c 	mod->arch.tramp = create_ftrace_stub(sechdrs, mod,
mod               829 arch/powerpc/kernel/module_64.c 	mod->arch.tramp_regs = create_ftrace_stub(sechdrs, mod,
mod               831 arch/powerpc/kernel/module_64.c 	if (!mod->arch.tramp_regs)
mod               835 arch/powerpc/kernel/module_64.c 	if (!mod->arch.tramp)
mod               123 arch/powerpc/kernel/trace/ftrace.c __ftrace_make_nop(struct module *mod,
mod               147 arch/powerpc/kernel/trace/ftrace.c 	if (module_trampoline_target(mod, tramp, &ptr)) {
mod               217 arch/powerpc/kernel/trace/ftrace.c __ftrace_make_nop(struct module *mod,
mod               427 arch/powerpc/kernel/trace/ftrace.c int ftrace_make_nop(struct module *mod,
mod               452 arch/powerpc/kernel/trace/ftrace.c 	if (!rec->arch.mod) {
mod               453 arch/powerpc/kernel/trace/ftrace.c 		if (!mod) {
mod               457 arch/powerpc/kernel/trace/ftrace.c 		rec->arch.mod = mod;
mod               458 arch/powerpc/kernel/trace/ftrace.c 	} else if (mod) {
mod               459 arch/powerpc/kernel/trace/ftrace.c 		if (mod != rec->arch.mod) {
mod               461 arch/powerpc/kernel/trace/ftrace.c 			       rec->arch.mod, mod);
mod               466 arch/powerpc/kernel/trace/ftrace.c 		mod = rec->arch.mod;
mod               468 arch/powerpc/kernel/trace/ftrace.c 	return __ftrace_make_nop(mod, rec, addr);
mod               516 arch/powerpc/kernel/trace/ftrace.c 	struct module *mod = rec->arch.mod;
mod               530 arch/powerpc/kernel/trace/ftrace.c 	if (!mod->arch.tramp || !mod->arch.tramp_regs) {
mod               532 arch/powerpc/kernel/trace/ftrace.c 	if (!mod->arch.tramp) {
mod               540 arch/powerpc/kernel/trace/ftrace.c 		tramp = mod->arch.tramp_regs;
mod               543 arch/powerpc/kernel/trace/ftrace.c 		tramp = mod->arch.tramp;
mod               545 arch/powerpc/kernel/trace/ftrace.c 	if (module_trampoline_target(mod, tramp, &ptr)) {
mod               591 arch/powerpc/kernel/trace/ftrace.c 	if (!rec->arch.mod->arch.tramp) {
mod               598 arch/powerpc/kernel/trace/ftrace.c 			   rec->arch.mod->arch.tramp, BRANCH_SET_LINK);
mod               685 arch/powerpc/kernel/trace/ftrace.c 	if (!rec->arch.mod) {
mod               706 arch/powerpc/kernel/trace/ftrace.c 	struct module *mod = rec->arch.mod;
mod               709 arch/powerpc/kernel/trace/ftrace.c 	if (!mod->arch.tramp || !mod->arch.tramp_regs) {
mod               734 arch/powerpc/kernel/trace/ftrace.c 		if (module_trampoline_target(mod, tramp, &ptr)) {
mod               760 arch/powerpc/kernel/trace/ftrace.c 		tramp = mod->arch.tramp_regs;
mod               762 arch/powerpc/kernel/trace/ftrace.c 		tramp = mod->arch.tramp;
mod               764 arch/powerpc/kernel/trace/ftrace.c 	if (module_trampoline_target(mod, tramp, &ptr)) {
mod               821 arch/powerpc/kernel/trace/ftrace.c 	if (!rec->arch.mod) {
mod                37 arch/riscv/include/asm/bitops.h #define __test_and_op_bit_ord(op, mod, nr, addr, ord)		\
mod                44 arch/riscv/include/asm/bitops.h 		: "r" (mod(__mask))				\
mod                49 arch/riscv/include/asm/bitops.h #define __op_bit_ord(op, mod, nr, addr, ord)			\
mod                53 arch/riscv/include/asm/bitops.h 		: "r" (mod(BIT_MASK(nr)))			\
mod                56 arch/riscv/include/asm/bitops.h #define __test_and_op_bit(op, mod, nr, addr) 			\
mod                57 arch/riscv/include/asm/bitops.h 	__test_and_op_bit_ord(op, mod, nr, addr, .aqrl)
mod                58 arch/riscv/include/asm/bitops.h #define __op_bit(op, mod, nr, addr)				\
mod                59 arch/riscv/include/asm/bitops.h 	__op_bit_ord(op, mod, nr, addr, )
mod                12 arch/riscv/include/asm/module.h unsigned long module_emit_got_entry(struct module *mod, unsigned long val);
mod                13 arch/riscv/include/asm/module.h unsigned long module_emit_plt_entry(struct module *mod, unsigned long val);
mod                76 arch/riscv/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec,
mod                13 arch/riscv/kernel/module-sections.c unsigned long module_emit_got_entry(struct module *mod, unsigned long val)
mod                15 arch/riscv/kernel/module-sections.c 	struct mod_section *got_sec = &mod->arch.got;
mod                32 arch/riscv/kernel/module-sections.c unsigned long module_emit_plt_entry(struct module *mod, unsigned long val)
mod                34 arch/riscv/kernel/module-sections.c 	struct mod_section *got_plt_sec = &mod->arch.got_plt;
mod                36 arch/riscv/kernel/module-sections.c 	struct mod_section *plt_sec = &mod->arch.plt;
mod                91 arch/riscv/kernel/module-sections.c 			      char *secstrings, struct module *mod)
mod               102 arch/riscv/kernel/module-sections.c 			mod->arch.plt.shdr = sechdrs + i;
mod               104 arch/riscv/kernel/module-sections.c 			mod->arch.got.shdr = sechdrs + i;
mod               106 arch/riscv/kernel/module-sections.c 			mod->arch.got_plt.shdr = sechdrs + i;
mod               109 arch/riscv/kernel/module-sections.c 	if (!mod->arch.plt.shdr) {
mod               110 arch/riscv/kernel/module-sections.c 		pr_err("%s: module PLT section(s) missing\n", mod->name);
mod               113 arch/riscv/kernel/module-sections.c 	if (!mod->arch.got.shdr) {
mod               114 arch/riscv/kernel/module-sections.c 		pr_err("%s: module GOT section(s) missing\n", mod->name);
mod               117 arch/riscv/kernel/module-sections.c 	if (!mod->arch.got_plt.shdr) {
mod               118 arch/riscv/kernel/module-sections.c 		pr_err("%s: module GOT.PLT section(s) missing\n", mod->name);
mod               138 arch/riscv/kernel/module-sections.c 	mod->arch.plt.shdr->sh_type = SHT_NOBITS;
mod               139 arch/riscv/kernel/module-sections.c 	mod->arch.plt.shdr->sh_flags = SHF_EXECINSTR | SHF_ALLOC;
mod               140 arch/riscv/kernel/module-sections.c 	mod->arch.plt.shdr->sh_addralign = L1_CACHE_BYTES;
mod               141 arch/riscv/kernel/module-sections.c 	mod->arch.plt.shdr->sh_size = (num_plts + 1) * sizeof(struct plt_entry);
mod               142 arch/riscv/kernel/module-sections.c 	mod->arch.plt.num_entries = 0;
mod               143 arch/riscv/kernel/module-sections.c 	mod->arch.plt.max_entries = num_plts;
mod               145 arch/riscv/kernel/module-sections.c 	mod->arch.got.shdr->sh_type = SHT_NOBITS;
mod               146 arch/riscv/kernel/module-sections.c 	mod->arch.got.shdr->sh_flags = SHF_ALLOC;
mod               147 arch/riscv/kernel/module-sections.c 	mod->arch.got.shdr->sh_addralign = L1_CACHE_BYTES;
mod               148 arch/riscv/kernel/module-sections.c 	mod->arch.got.shdr->sh_size = (num_gots + 1) * sizeof(struct got_entry);
mod               149 arch/riscv/kernel/module-sections.c 	mod->arch.got.num_entries = 0;
mod               150 arch/riscv/kernel/module-sections.c 	mod->arch.got.max_entries = num_gots;
mod               152 arch/riscv/kernel/module-sections.c 	mod->arch.got_plt.shdr->sh_type = SHT_NOBITS;
mod               153 arch/riscv/kernel/module-sections.c 	mod->arch.got_plt.shdr->sh_flags = SHF_ALLOC;
mod               154 arch/riscv/kernel/module-sections.c 	mod->arch.got_plt.shdr->sh_addralign = L1_CACHE_BYTES;
mod               155 arch/riscv/kernel/module-sections.c 	mod->arch.got_plt.shdr->sh_size = (num_plts + 1) * sizeof(struct got_entry);
mod               156 arch/riscv/kernel/module-sections.c 	mod->arch.got_plt.num_entries = 0;
mod               157 arch/riscv/kernel/module-sections.c 	mod->arch.got_plt.max_entries = num_plts;
mod                79 arch/s390/include/asm/unwind.h static inline void unwind_module_init(struct module *mod, void *orc_ip,
mod               106 arch/s390/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec,
mod                50 arch/s390/kernel/module.c void module_arch_freeing_init(struct module *mod)
mod                52 arch/s390/kernel/module.c 	if (is_livepatch_module(mod) &&
mod                53 arch/s390/kernel/module.c 	    mod->state == MODULE_STATE_LIVE)
mod                56 arch/s390/kernel/module.c 	vfree(mod->arch.syminfo);
mod                57 arch/s390/kernel/module.c 	mod->arch.syminfo = NULL;
mod               411 arch/sh/include/asm/dwarf.h #define module_dwarf_cleanup(mod)		do { } while (0)
mod                74 arch/sh/include/uapi/asm/ptrace_32.h 	unsigned long	mod;
mod               736 arch/sh/kernel/dwarf.c 			   unsigned char *end, struct module *mod)
mod               856 arch/sh/kernel/dwarf.c 	if (mod != NULL)
mod               857 arch/sh/kernel/dwarf.c 		list_add_tail(&cie->link, &mod->arch.cie_list);
mod               867 arch/sh/kernel/dwarf.c 			   unsigned char *end, struct module *mod)
mod               948 arch/sh/kernel/dwarf.c 	if (mod != NULL)
mod               949 arch/sh/kernel/dwarf.c 		list_add_tail(&fde->link, &mod->arch.fde_list);
mod              1025 arch/sh/kernel/dwarf.c 			       struct module *mod)
mod              1062 arch/sh/kernel/dwarf.c 			err = dwarf_parse_cie(entry, p, len, end, mod);
mod              1069 arch/sh/kernel/dwarf.c 					      end, mod);
mod              1130 arch/sh/kernel/dwarf.c void module_dwarf_cleanup(struct module *mod)
mod              1138 arch/sh/kernel/dwarf.c 	list_for_each_entry_safe(cie, ctmp, &mod->arch.cie_list, link) {
mod              1148 arch/sh/kernel/dwarf.c 	list_for_each_entry_safe(fde, ftmp, &mod->arch.fde_list, link) {
mod               233 arch/sh/kernel/ftrace.c int ftrace_make_nop(struct module *mod,
mod               110 arch/sh/kernel/module.c void module_arch_cleanup(struct module *mod)
mod               112 arch/sh/kernel/module.c 	module_dwarf_cleanup(mod);
mod                56 arch/sparc/kernel/ftrace.c int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, unsigned long addr)
mod                58 arch/sparc/kernel/module.c 			      struct module *mod)
mod                67 arch/sparc/kernel/module.c 			printk("%s: no symtab found.\n", mod->name);
mod                 5 arch/um/include/asm/unwind.h unwind_module_init(struct module *mod, void *orc_ip, size_t orc_ip_size,
mod                79 arch/x86/include/asm/alternative.h extern void alternatives_smp_module_add(struct module *mod, char *name,
mod                82 arch/x86/include/asm/alternative.h extern void alternatives_smp_module_del(struct module *mod);
mod                87 arch/x86/include/asm/alternative.h static inline void alternatives_smp_module_add(struct module *mod, char *name,
mod                90 arch/x86/include/asm/alternative.h static inline void alternatives_smp_module_del(struct module *mod) {}
mod               203 arch/x86/include/asm/inst.h 	.macro MODRM mod opd1 opd2
mod                93 arch/x86/include/asm/unwind.h void unwind_module_init(struct module *mod, void *orc_ip, size_t orc_ip_size,
mod                98 arch/x86/include/asm/unwind.h void unwind_module_init(struct module *mod, void *orc_ip, size_t orc_ip_size,
mod               474 arch/x86/kernel/alternative.c 	struct module	*mod;
mod               490 arch/x86/kernel/alternative.c void __init_or_module alternatives_smp_module_add(struct module *mod,
mod               510 arch/x86/kernel/alternative.c 	smp->mod	= mod;
mod               527 arch/x86/kernel/alternative.c void __init_or_module alternatives_smp_module_del(struct module *mod)
mod               533 arch/x86/kernel/alternative.c 		if (mod != item->mod)
mod               544 arch/x86/kernel/alternative.c 	struct smp_alt_module *mod;
mod               556 arch/x86/kernel/alternative.c 		list_for_each_entry(mod, &smp_alt_modules, next)
mod               557 arch/x86/kernel/alternative.c 			alternatives_smp_lock(mod->locks, mod->locks_end,
mod               558 arch/x86/kernel/alternative.c 					      mod->text, mod->text_end);
mod               570 arch/x86/kernel/alternative.c 	struct smp_alt_module *mod;
mod               577 arch/x86/kernel/alternative.c 	list_for_each_entry(mod, &smp_alt_modules, next) {
mod               578 arch/x86/kernel/alternative.c 		if (mod->text > text_end || mod->text_end < text_start)
mod               580 arch/x86/kernel/alternative.c 		for (poff = mod->locks; poff < mod->locks_end; poff++) {
mod               152 arch/x86/kernel/ftrace.c int ftrace_make_nop(struct module *mod,
mod                23 arch/x86/kernel/livepatch.c 	info = patch->mod->klp_info;
mod               271 arch/x86/kernel/module.c void module_arch_cleanup(struct module *mod)
mod               273 arch/x86/kernel/module.c 	alternatives_smp_module_del(mod);
mod                62 arch/x86/kernel/unwind_orc.c 	struct module *mod;
mod                64 arch/x86/kernel/unwind_orc.c 	mod = __module_address(ip);
mod                65 arch/x86/kernel/unwind_orc.c 	if (!mod || !mod->arch.orc_unwind || !mod->arch.orc_unwind_ip)
mod                67 arch/x86/kernel/unwind_orc.c 	return __orc_find(mod->arch.orc_unwind_ip, mod->arch.orc_unwind,
mod                68 arch/x86/kernel/unwind_orc.c 			  mod->arch.num_orcs, ip);
mod               230 arch/x86/kernel/unwind_orc.c void unwind_module_init(struct module *mod, void *_orc_ip, size_t orc_ip_size,
mod               252 arch/x86/kernel/unwind_orc.c 	mod->arch.orc_unwind_ip = orc_ip;
mod               253 arch/x86/kernel/unwind_orc.c 	mod->arch.orc_unwind = orc;
mod               254 arch/x86/kernel/unwind_orc.c 	mod->arch.num_orcs = num_entries;
mod               831 arch/x86/kvm/lapic.c 	u32 mod;
mod               834 arch/x86/kvm/lapic.c 	mod = vector % dest_vcpus;
mod               836 arch/x86/kvm/lapic.c 	for (i = 0; i <= mod; i++) {
mod               256 arch/x86/lib/insn.c 	insn_byte_t pfx_id, mod;
mod               263 arch/x86/lib/insn.c 		mod = get_next(insn_byte_t, insn);
mod               264 arch/x86/lib/insn.c 		modrm->value = mod;
mod               268 arch/x86/lib/insn.c 			insn->attr = inat_get_group_attribute(mod, pfx_id,
mod               346 arch/x86/lib/insn.c 	insn_byte_t mod, rm, base;
mod               370 arch/x86/lib/insn.c 		mod = X86_MODRM_MOD(insn->modrm.value);
mod               373 arch/x86/lib/insn.c 		if (mod == 3)
mod               375 arch/x86/lib/insn.c 		if (mod == 1) {
mod               379 arch/x86/lib/insn.c 			if ((mod == 0 && rm == 6) || mod == 2) {
mod               385 arch/x86/lib/insn.c 			if ((mod == 0 && rm == 5) || mod == 2 ||
mod               386 arch/x86/lib/insn.c 			    (mod == 0 && base == 5)) {
mod                72 arch/x86/math-emu/get_address.c static int sib(int mod, unsigned long *fpu_eip)
mod                86 arch/x86/math-emu/get_address.c 	if ((mod == 0) && (base == 5))
mod               100 arch/x86/math-emu/get_address.c 	if (mod == 1) {
mod               109 arch/x86/math-emu/get_address.c 	} else if (mod == 2 || base == 5) {	/* The second condition also has mod==0 */
mod               213 arch/x86/math-emu/get_address.c 	u_char mod;
mod               227 arch/x86/math-emu/get_address.c 	mod = (FPU_modrm >> 6) & 3;
mod               229 arch/x86/math-emu/get_address.c 	if (rm == 4 && mod != 3) {
mod               230 arch/x86/math-emu/get_address.c 		address = sib(mod, fpu_eip);
mod               233 arch/x86/math-emu/get_address.c 		switch (mod) {
mod               298 arch/x86/math-emu/get_address.c 	u_char mod;
mod               311 arch/x86/math-emu/get_address.c 	mod = (FPU_modrm >> 6) & 3;
mod               313 arch/x86/math-emu/get_address.c 	switch (mod) {
mod               452 arch/x86/mm/pf_in.c 	unsigned char mod;
mod               470 arch/x86/mm/pf_in.c 	mod = mod_rm >> 6;
mod               472 arch/x86/mm/pf_in.c 	switch (mod) {
mod                51 arch/xtensa/kernel/module.c 		       struct module *mod)
mod                90 arch/xtensa/kernel/module.c 					       mod->name, relsec, i,
mod               114 arch/xtensa/kernel/module.c 					       mod->name, relsec, i,
mod               157 arch/xtensa/kernel/module.c 			       mod->name,
mod               177 arch/xtensa/kernel/module.c 			       mod->name,
mod               183 arch/xtensa/kernel/module.c 			       mod->name,
mod                24 crypto/algapi.c static inline void crypto_check_module_sig(struct module *mod)
mod                26 crypto/algapi.c 	if (fips_enabled && mod && !module_sig_ok(mod))
mod                28 crypto/algapi.c 		      module_name(mod));
mod               478 crypto/ecc.c   			const u64 *mod, unsigned int ndigits)
mod               487 crypto/ecc.c   	if (carry || vli_cmp(result, mod, ndigits) >= 0)
mod               488 crypto/ecc.c   		vli_sub(result, result, mod, ndigits);
mod               495 crypto/ecc.c   			const u64 *mod, unsigned int ndigits)
mod               504 crypto/ecc.c   		vli_add(result, result, mod, ndigits);
mod               517 crypto/ecc.c   			      const u64 *mod, unsigned int ndigits)
mod               519 crypto/ecc.c   	u64 c = -mod[0];
mod               529 crypto/ecc.c   	vli_set(t, mod, ndigits);
mod               551 crypto/ecc.c   			       const u64 *mod, unsigned int ndigits)
mod               553 crypto/ecc.c   	u64 c2 = mod[0] * 2;
mod               560 crypto/ecc.c   	vli_set(m, mod, ndigits);
mod               575 crypto/ecc.c   			vli_uadd(qc, qc, mod[0], ndigits * 2);
mod               599 crypto/ecc.c   static void vli_mmod_slow(u64 *result, u64 *product, const u64 *mod,
mod               608 crypto/ecc.c   	int shift = (ndigits * 2 * 64) - vli_num_bits(mod, ndigits);
mod               615 crypto/ecc.c   			mod_m[word_shift + i] = (mod[i] << bit_shift) | carry;
mod               616 crypto/ecc.c   			carry = mod[i] >> (64 - bit_shift);
mod               619 crypto/ecc.c   		vli_set(mod_m + word_shift, mod, ndigits);
mod               649 crypto/ecc.c   static void vli_mmod_barrett(u64 *result, u64 *product, const u64 *mod,
mod               654 crypto/ecc.c   	const u64 *mu = mod + ndigits;
mod               659 crypto/ecc.c   	vli_mult(r, mod, q + ndigits, ndigits);
mod               662 crypto/ecc.c   	       vli_cmp(r, mod, ndigits) != -1) {
mod               665 crypto/ecc.c   		carry = vli_sub(r, r, mod, ndigits);
mod               824 crypto/ecc.c   		       const u64 *mod, unsigned int ndigits)
mod               829 crypto/ecc.c   	vli_mmod_slow(result, product, mod, ndigits);
mod               858 crypto/ecc.c   void vli_mod_inv(u64 *result, const u64 *input, const u64 *mod,
mod               872 crypto/ecc.c   	vli_set(b, mod, ndigits);
mod               884 crypto/ecc.c   				carry = vli_add(u, u, mod, ndigits);
mod               893 crypto/ecc.c   				carry = vli_add(v, v, mod, ndigits);
mod               903 crypto/ecc.c   				vli_add(u, u, mod, ndigits);
mod               907 crypto/ecc.c   				carry = vli_add(u, u, mod, ndigits);
mod               917 crypto/ecc.c   				vli_add(v, v, mod, ndigits);
mod               921 crypto/ecc.c   				carry = vli_add(v, v, mod, ndigits);
mod               211 crypto/ecc.h   void vli_mod_inv(u64 *result, const u64 *input, const u64 *mod,
mod               226 crypto/ecc.h   		       const u64 *mod, unsigned int ndigits);
mod               151 drivers/base/base.h extern void module_add_driver(struct module *mod, struct device_driver *drv);
mod               154 drivers/base/base.h static inline void module_add_driver(struct module *mod,
mod                33 drivers/base/module.c void module_add_driver(struct module *mod, struct device_driver *drv)
mod                42 drivers/base/module.c 	if (mod)
mod                43 drivers/base/module.c 		mk = &mod->mkobj;
mod               138 drivers/base/power/trace.c static unsigned int hash_string(unsigned int seed, const char *data, unsigned int mod)
mod               144 drivers/base/power/trace.c 	return seed % mod;
mod               382 drivers/clk/renesas/renesas-cpg-mssr.c static void __init cpg_mssr_register_mod_clk(const struct mssr_mod_clk *mod,
mod               388 drivers/clk/renesas/renesas-cpg-mssr.c 	unsigned int id = mod->id;
mod               396 drivers/clk/renesas/renesas-cpg-mssr.c 	WARN_DEBUG(mod->parent >= priv->num_core_clks + priv->num_mod_clks);
mod               399 drivers/clk/renesas/renesas-cpg-mssr.c 	if (!mod->name) {
mod               404 drivers/clk/renesas/renesas-cpg-mssr.c 	parent = priv->clks[mod->parent];
mod               416 drivers/clk/renesas/renesas-cpg-mssr.c 	init.name = mod->name;
mod               422 drivers/clk/renesas/renesas-cpg-mssr.c 				mod->name);
mod               446 drivers/clk/renesas/renesas-cpg-mssr.c 		mod->name, PTR_ERR(clk));
mod              1002 drivers/crypto/axis/artpec6_crypto.c 	unsigned int mod, target, diff, pad_bytes, size_bytes;
mod              1011 drivers/crypto/axis/artpec6_crypto.c 		mod = 512 / 8;
mod              1016 drivers/crypto/axis/artpec6_crypto.c 		mod = 1024 / 8;
mod              1022 drivers/crypto/axis/artpec6_crypto.c 	diff = dgstlen & (mod - 1);
mod              1023 drivers/crypto/axis/artpec6_crypto.c 	pad_bytes = diff > target ? target + mod - diff : target - diff;
mod                83 drivers/crypto/ccp/ccp-crypto-rsa.c 	rctx->cmd.u.rsa.mod = &ctx->u.rsa.n_sg;
mod              1827 drivers/crypto/ccp/ccp-ops.c 	if (!rsa->exp || !rsa->mod || !rsa->src || !rsa->dst)
mod              1899 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_reverse_set_dm_area(&src, 0, rsa->mod, 0, rsa->mod_len);
mod              2184 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_reverse_set_dm_area(&src, 0, ecc->mod, 0, ecc->mod_len);
mod              2307 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_reverse_set_dm_area(&src, 0, ecc->mod, 0, ecc->mod_len);
mod              2427 drivers/crypto/ccp/ccp-ops.c 	if (!ecc->mod ||
mod                59 drivers/gpio/gpio-janz-ttl.c 	struct ttl_module *mod = dev_get_drvdata(gpio->parent);
mod                64 drivers/gpio/gpio-janz-ttl.c 		shadow = &mod->porta_shadow;
mod                66 drivers/gpio/gpio-janz-ttl.c 		shadow = &mod->portb_shadow;
mod                69 drivers/gpio/gpio-janz-ttl.c 		shadow = &mod->portc_shadow;
mod                73 drivers/gpio/gpio-janz-ttl.c 	spin_lock(&mod->lock);
mod                75 drivers/gpio/gpio-janz-ttl.c 	spin_unlock(&mod->lock);
mod                81 drivers/gpio/gpio-janz-ttl.c 	struct ttl_module *mod = dev_get_drvdata(gpio->parent);
mod                86 drivers/gpio/gpio-janz-ttl.c 		port = &mod->regs->porta;
mod                87 drivers/gpio/gpio-janz-ttl.c 		shadow = &mod->porta_shadow;
mod                89 drivers/gpio/gpio-janz-ttl.c 		port = &mod->regs->portb;
mod                90 drivers/gpio/gpio-janz-ttl.c 		shadow = &mod->portb_shadow;
mod                93 drivers/gpio/gpio-janz-ttl.c 		port = &mod->regs->portc;
mod                94 drivers/gpio/gpio-janz-ttl.c 		shadow = &mod->portc_shadow;
mod                98 drivers/gpio/gpio-janz-ttl.c 	spin_lock(&mod->lock);
mod               105 drivers/gpio/gpio-janz-ttl.c 	spin_unlock(&mod->lock);
mod               108 drivers/gpio/gpio-janz-ttl.c static void ttl_write_reg(struct ttl_module *mod, u8 reg, u16 val)
mod               110 drivers/gpio/gpio-janz-ttl.c 	iowrite16be(reg, &mod->regs->control);
mod               111 drivers/gpio/gpio-janz-ttl.c 	iowrite16be(val, &mod->regs->control);
mod               114 drivers/gpio/gpio-janz-ttl.c static void ttl_setup_device(struct ttl_module *mod)
mod               117 drivers/gpio/gpio-janz-ttl.c 	iowrite16be(0x0000, &mod->regs->control);
mod               118 drivers/gpio/gpio-janz-ttl.c 	iowrite16be(0x0001, &mod->regs->control);
mod               119 drivers/gpio/gpio-janz-ttl.c 	iowrite16be(0x0000, &mod->regs->control);
mod               122 drivers/gpio/gpio-janz-ttl.c 	ttl_write_reg(mod, PORTA_IOCTL, 0x00ff);
mod               123 drivers/gpio/gpio-janz-ttl.c 	ttl_write_reg(mod, PORTB_IOCTL, 0x00ff);
mod               124 drivers/gpio/gpio-janz-ttl.c 	ttl_write_reg(mod, PORTC_IOCTL, 0x000f);
mod               127 drivers/gpio/gpio-janz-ttl.c 	ttl_write_reg(mod, PORTA_DIRECTION, 0x0000);
mod               128 drivers/gpio/gpio-janz-ttl.c 	ttl_write_reg(mod, PORTB_DIRECTION, 0x0000);
mod               129 drivers/gpio/gpio-janz-ttl.c 	ttl_write_reg(mod, PORTC_DIRECTION, 0x0000);
mod               132 drivers/gpio/gpio-janz-ttl.c 	iowrite16be(0x0000, &mod->regs->porta);
mod               133 drivers/gpio/gpio-janz-ttl.c 	iowrite16be(0x0000, &mod->regs->portb);
mod               134 drivers/gpio/gpio-janz-ttl.c 	iowrite16be(0x0000, &mod->regs->portc);
mod               137 drivers/gpio/gpio-janz-ttl.c 	ttl_write_reg(mod, MASTER_CONF_CTL, CONF_PAE | CONF_PBE | CONF_PCE);
mod               143 drivers/gpio/gpio-janz-ttl.c 	struct ttl_module *mod;
mod               153 drivers/gpio/gpio-janz-ttl.c 	mod = devm_kzalloc(&pdev->dev, sizeof(*mod), GFP_KERNEL);
mod               154 drivers/gpio/gpio-janz-ttl.c 	if (!mod)
mod               157 drivers/gpio/gpio-janz-ttl.c 	platform_set_drvdata(pdev, mod);
mod               158 drivers/gpio/gpio-janz-ttl.c 	spin_lock_init(&mod->lock);
mod               161 drivers/gpio/gpio-janz-ttl.c 	mod->regs = devm_platform_ioremap_resource(pdev, 0);
mod               162 drivers/gpio/gpio-janz-ttl.c 	if (IS_ERR(mod->regs))
mod               163 drivers/gpio/gpio-janz-ttl.c 		return PTR_ERR(mod->regs);
mod               165 drivers/gpio/gpio-janz-ttl.c 	ttl_setup_device(mod);
mod               168 drivers/gpio/gpio-janz-ttl.c 	gpio = &mod->gpio;
mod                29 drivers/gpu/drm/armada/armada_fb.c #define FMT(drm, fmt, mod)		\
mod                32 drivers/gpu/drm/armada/armada_fb.c 		config = mod;		\
mod                65 drivers/gpu/drm/armada/armada_fb.c 	dfb->mod = config;
mod                11 drivers/gpu/drm/armada/armada_fb.h 	uint8_t			mod;
mod               132 drivers/gpu/drm/armada/armada_overlay.c 		      CFG_DMA_MOD(drm_fb_to_armada_fb(state->fb)->mod) |
mod               211 drivers/gpu/drm/armada/armada_plane.c 		      CFG_GRA_MOD(drm_fb_to_armada_fb(state->fb)->mod);
mod                90 drivers/gpu/drm/drm_plane.c 	struct drm_format_modifier *mod;
mod               131 drivers/gpu/drm/drm_plane.c 	mod = modifiers_ptr(blob_data);
mod               138 drivers/gpu/drm/drm_plane.c 				mod->formats |= 1ULL << j;
mod               142 drivers/gpu/drm/drm_plane.c 		mod->modifier = plane->modifiers[i];
mod               143 drivers/gpu/drm/drm_plane.c 		mod->offset = 0;
mod               144 drivers/gpu/drm/drm_plane.c 		mod->pad = 0;
mod               145 drivers/gpu/drm/drm_plane.c 		mod++;
mod               168 drivers/gpu/drm/etnaviv/etnaviv_gpu.c #define etnaviv_is_model_rev(gpu, mod, rev) \
mod               169 drivers/gpu/drm/etnaviv/etnaviv_gpu.c 	((gpu)->identity.model == chipModel_##mod && \
mod               190 drivers/gpu/drm/exynos/exynos_drm_ipp.c 				uint64_t mod, unsigned int type)
mod               197 drivers/gpu/drm/exynos/exynos_drm_ipp.c 		    ipp->formats[i].modifier == mod)
mod                79 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h _cp_bra(struct nvkm_grctx *ctx, u32 mod, int flag, int state, int name)
mod                83 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h 	if (mod != 2) {
mod                89 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h 	cp_out(ctx, CP_BRA | (mod << 18) | ip | flag |
mod               124 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c 				u8   mod = bits % 8;
mod               126 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c 				info->data[i] = info->data[i] >> mod;
mod                45 drivers/gpu/drm/omapdrm/dss/dsi.c #define DSI_REG(mod, idx)		((const struct dsi_reg) { mod, idx })
mod              1100 drivers/gpu/drm/radeon/radeon_display.c 	uint64_t mod;
mod              1104 drivers/gpu/drm/radeon/radeon_display.c 	mod = do_div(n, d);
mod                63 drivers/gpu/drm/rcar-du/rcar_lvds.c 		struct clk *mod;		/* CPG module clock */
mod               376 drivers/gpu/drm/rcar-du/rcar_lvds.c 	ret = clk_prepare_enable(lvds->clocks.mod);
mod               397 drivers/gpu/drm/rcar-du/rcar_lvds.c 	clk_disable_unprepare(lvds->clocks.mod);
mod               413 drivers/gpu/drm/rcar-du/rcar_lvds.c 	ret = clk_prepare_enable(lvds->clocks.mod);
mod               540 drivers/gpu/drm/rcar-du/rcar_lvds.c 	clk_disable_unprepare(lvds->clocks.mod);
mod               813 drivers/gpu/drm/rcar-du/rcar_lvds.c 	lvds->clocks.mod = rcar_lvds_get_clock(lvds, NULL, false);
mod               814 drivers/gpu/drm/rcar-du/rcar_lvds.c 	if (IS_ERR(lvds->clocks.mod))
mod               815 drivers/gpu/drm/rcar-du/rcar_lvds.c 		return PTR_ERR(lvds->clocks.mod);
mod                51 drivers/gpu/drm/tilcdc/tilcdc_drv.c void tilcdc_module_init(struct tilcdc_module *mod, const char *name,
mod                54 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	mod->name = name;
mod                55 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	mod->funcs = funcs;
mod                56 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	INIT_LIST_HEAD(&mod->list);
mod                57 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	list_add(&mod->list, &module_list);
mod                60 drivers/gpu/drm/tilcdc/tilcdc_drv.c void tilcdc_module_cleanup(struct tilcdc_module *mod)
mod                62 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	list_del(&mod->list);
mod               151 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	struct tilcdc_module *mod;
mod               153 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	list_for_each_entry(mod, &module_list, list) {
mod               154 drivers/gpu/drm/tilcdc/tilcdc_drv.c 		DBG("loading module: %s", mod->name);
mod               155 drivers/gpu/drm/tilcdc/tilcdc_drv.c 		mod->funcs->modeset_init(mod, dev);
mod               491 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	struct tilcdc_module *mod;
mod               498 drivers/gpu/drm/tilcdc/tilcdc_drv.c 	list_for_each_entry(mod, &module_list, list)
mod               499 drivers/gpu/drm/tilcdc/tilcdc_drv.c 		if (mod->funcs->debugfs_init)
mod               500 drivers/gpu/drm/tilcdc/tilcdc_drv.c 			mod->funcs->debugfs_init(mod, minor);
mod                95 drivers/gpu/drm/tilcdc/tilcdc_drv.h 	int (*modeset_init)(struct tilcdc_module *mod, struct drm_device *dev);
mod                98 drivers/gpu/drm/tilcdc/tilcdc_drv.h 	int (*debugfs_init)(struct tilcdc_module *mod, struct drm_minor *minor);
mod               108 drivers/gpu/drm/tilcdc/tilcdc_drv.h void tilcdc_module_init(struct tilcdc_module *mod, const char *name,
mod               110 drivers/gpu/drm/tilcdc/tilcdc_drv.h void tilcdc_module_cleanup(struct tilcdc_module *mod);
mod                39 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	struct panel_module *mod;
mod                46 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	struct backlight_device *backlight = panel_encoder->mod->backlight;
mod                47 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	struct gpio_desc *gpio = panel_encoder->mod->enable_gpio;
mod                89 drivers/gpu/drm/tilcdc/tilcdc_panel.c 		struct panel_module *mod)
mod               100 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	panel_encoder->mod = mod;
mod               127 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	struct panel_module *mod;
mod               142 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	struct display_timings *timings = panel_connector->mod->timings;
mod               187 drivers/gpu/drm/tilcdc/tilcdc_panel.c 		struct panel_module *mod, struct drm_encoder *encoder)
mod               199 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	panel_connector->mod = mod;
mod               225 drivers/gpu/drm/tilcdc/tilcdc_panel.c static int panel_modeset_init(struct tilcdc_module *mod, struct drm_device *dev)
mod               227 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	struct panel_module *panel_mod = to_panel_module(mod);
mod               244 drivers/gpu/drm/tilcdc/tilcdc_panel.c 				   to_panel_encoder(encoder)->mod->info);
mod               308 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	struct tilcdc_module *mod;
mod               344 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	mod = &panel_mod->base;
mod               345 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	pdev->dev.platform_data = mod;
mod               347 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	tilcdc_module_init(mod, "panel", &panel_module_ops);
mod               373 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	tilcdc_module_cleanup(mod);
mod               383 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	struct tilcdc_module *mod = dev_get_platdata(&pdev->dev);
mod               384 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	struct panel_module *panel_mod = to_panel_module(mod);
mod               392 drivers/gpu/drm/tilcdc/tilcdc_panel.c 	tilcdc_module_cleanup(mod);
mod                47 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	struct tfp410_module *mod;
mod                61 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 		gpio_direction_output(tfp410_encoder->mod->gpio, 1);
mod                64 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 		gpio_direction_output(tfp410_encoder->mod->gpio, 0);
mod                99 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 		struct tfp410_module *mod)
mod               111 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	tfp410_encoder->mod = mod;
mod               138 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	struct tfp410_module *mod;
mod               155 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	if (drm_probe_ddc(tfp410_connector->mod->i2c))
mod               167 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	edid = drm_get_edid(connector, tfp410_connector->mod->i2c);
mod               201 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 		struct tfp410_module *mod, struct drm_encoder *encoder)
mod               213 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	tfp410_connector->mod = mod;
mod               242 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c static int tfp410_modeset_init(struct tilcdc_module *mod, struct drm_device *dev)
mod               244 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	struct tfp410_module *tfp410_mod = to_tfp410_module(mod);
mod               277 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	struct tilcdc_module *mod;
mod               292 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	mod = &tfp410_mod->base;
mod               293 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	pdev->dev.platform_data = mod;
mod               295 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	tilcdc_module_init(mod, "tfp410", &tfp410_module_ops);
mod               339 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	tilcdc_module_cleanup(mod);
mod               345 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	struct tilcdc_module *mod = dev_get_platdata(&pdev->dev);
mod               346 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	struct tfp410_module *tfp410_mod = to_tfp410_module(mod);
mod               351 drivers/gpu/drm/tilcdc/tilcdc_tfp410.c 	tilcdc_module_cleanup(mod);
mod                88 drivers/hid/hid-roccat-kone.h 	uint8_t mod;   /* 1 = on, 2 = off */
mod                51 drivers/i2c/busses/i2c-rk3x.c #define REG_CON_MOD(mod)  ((mod) << 1)
mod               105 drivers/iio/accel/mma9553.c 	enum iio_modifier mod;
mod               110 drivers/iio/accel/mma9553.c 		.mod = IIO_NO_MOD,
mod               115 drivers/iio/accel/mma9553.c 		.mod = IIO_MOD_STILL,
mod               120 drivers/iio/accel/mma9553.c 		.mod = IIO_MOD_STILL,
mod               125 drivers/iio/accel/mma9553.c 		.mod = IIO_MOD_WALKING,
mod               130 drivers/iio/accel/mma9553.c 		.mod = IIO_MOD_WALKING,
mod               135 drivers/iio/accel/mma9553.c 		.mod = IIO_MOD_JOGGING,
mod               140 drivers/iio/accel/mma9553.c 		.mod = IIO_MOD_JOGGING,
mod               145 drivers/iio/accel/mma9553.c 		.mod = IIO_MOD_RUNNING,
mod               150 drivers/iio/accel/mma9553.c 		.mod = IIO_MOD_RUNNING,
mod               234 drivers/iio/accel/mma9553.c 					       enum iio_modifier mod,
mod               241 drivers/iio/accel/mma9553.c 		    data->events[i].info->mod == mod &&
mod              1045 drivers/iio/accel/mma9553.c 						    ev_prev_activity->info->mod,
mod              1054 drivers/iio/accel/mma9553.c 						      ev_activity->info->mod,
mod               483 drivers/iio/accel/sca3000.c #define SCA3000_CHAN(index, mod)				\
mod               487 drivers/iio/accel/sca3000.c 		.channel2 = mod,				\
mod               297 drivers/iio/adc/at91-sama5d2_adc.c #define AT91_SAMA5D2_CHAN_TOUCH(num, name, mod)				\
mod               302 drivers/iio/adc/at91-sama5d2_adc.c 		.channel2 = mod,					\
mod               714 drivers/iio/imu/adis16400.c #define ADIS16400_GYRO_CHAN(mod, addr, bits) { \
mod               717 drivers/iio/imu/adis16400.c 	.channel2 = IIO_MOD_ ## mod, \
mod               724 drivers/iio/imu/adis16400.c 	.scan_index = ADIS16400_SCAN_GYRO_ ## mod, \
mod               734 drivers/iio/imu/adis16400.c #define ADIS16400_ACCEL_CHAN(mod, addr, bits) { \
mod               737 drivers/iio/imu/adis16400.c 	.channel2 = IIO_MOD_ ## mod, \
mod               744 drivers/iio/imu/adis16400.c 	.scan_index = ADIS16400_SCAN_ACC_ ## mod, \
mod               754 drivers/iio/imu/adis16400.c #define ADIS16400_MAGN_CHAN(mod, addr, bits) { \
mod               757 drivers/iio/imu/adis16400.c 	.channel2 = IIO_MOD_ ## mod, \
mod               763 drivers/iio/imu/adis16400.c 	.scan_index = ADIS16400_SCAN_MAGN_ ## mod, \
mod               777 drivers/iio/imu/adis16400.c #define ADIS16400_MOD_TEMP_CHAN(mod, addr, bits) { \
mod               781 drivers/iio/imu/adis16400.c 	.extend_name = ADIS16400_MOD_TEMP_NAME_ ## mod, \
mod               789 drivers/iio/imu/adis16400.c 	.scan_index = ADIS16350_SCAN_TEMP_ ## mod, \
mod               818 drivers/iio/imu/adis16400.c #define ADIS16400_INCLI_CHAN(mod, addr, bits) { \
mod               821 drivers/iio/imu/adis16400.c 	.channel2 = IIO_MOD_ ## mod, \
mod               826 drivers/iio/imu/adis16400.c 	.scan_index = ADIS16300_SCAN_INCLI_ ## mod, \
mod                57 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h #define ST_LSM6DSX_CHANNEL(chan_type, addr, mod, scan_idx)		\
mod                62 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h 	.channel2 = mod,						\
mod               264 drivers/iio/proximity/srf08.c 	unsigned int mod;
mod               268 drivers/iio/proximity/srf08.c 	mod = val % 43;
mod               270 drivers/iio/proximity/srf08.c 	if (mod || (ret < 0) || (ret > 255))
mod                45 drivers/irqchip/irq-tb10x.c 	uint32_t im, mod, pol;
mod                51 drivers/irqchip/irq-tb10x.c 	mod = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_MODE) | im;
mod                59 drivers/irqchip/irq-tb10x.c 		mod ^= im;
mod                64 drivers/irqchip/irq-tb10x.c 		mod ^= im;
mod                79 drivers/irqchip/irq-tb10x.c 	ab_irqctl_writereg(gc, AB_IRQCTL_SRC_MODE, mod);
mod                24 drivers/isdn/hardware/mISDN/isar.h 	u8			mod;
mod               929 drivers/isdn/hardware/mISDN/mISDNisar.c 				int delay = (ch->mod == 3) ? 1000 : 200;
mod               969 drivers/isdn/hardware/mISDN/mISDNisar.c 				ch->mod = ch->newmod;
mod              1001 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->mod = ch->newmod;
mod              1021 drivers/isdn/hardware/mISDN/mISDNisar.c 					  ch->cmd, 1, &ch->mod);
mod              1356 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->mod = para;
mod              1361 drivers/isdn/hardware/mISDN/mISDNisar.c 			   (ch->cmd == PCTRL_CMD_FTM) && (ch->mod == para))
mod              1378 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->mod = para;
mod              1383 drivers/isdn/hardware/mISDN/mISDNisar.c 			   (ch->cmd == PCTRL_CMD_FTH) && (ch->mod == para))
mod              1400 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->mod = para;
mod              1405 drivers/isdn/hardware/mISDN/mISDNisar.c 			   (ch->cmd == PCTRL_CMD_FRM) && (ch->mod == para))
mod              1422 drivers/isdn/hardware/mISDN/mISDNisar.c 			ch->mod = para;
mod              1427 drivers/isdn/hardware/mISDN/mISDNisar.c 			   (ch->cmd == PCTRL_CMD_FRH) && (ch->mod == para))
mod               273 drivers/lightnvm/pblk-init.c 	int mod;
mod               277 drivers/lightnvm/pblk-init.c 		div_u64_rem(geo->clba, pblk->min_write_pgs, &mod);
mod               278 drivers/lightnvm/pblk-init.c 		if (mod) {
mod               267 drivers/macintosh/windfarm_core.c 	struct module *mod = ct->ops->owner;
mod               269 drivers/macintosh/windfarm_core.c 	module_put(mod);
mod               362 drivers/macintosh/windfarm_core.c 	struct module *mod = sr->ops->owner;
mod               364 drivers/macintosh/windfarm_core.c 	module_put(mod);
mod                35 drivers/md/dm-verity-fec.c 	u32 mod;
mod                37 drivers/md/dm-verity-fec.c 	mod = do_div(offset, v->fec->rsn);
mod                38 drivers/md/dm-verity-fec.c 	return offset + mod * (v->fec->rounds << v->data_dev_block_bits);
mod               422 drivers/media/dvb-frontends/cx24116.c 			   enum fe_modulation mod,
mod               427 drivers/media/dvb-frontends/cx24116.c 	dprintk("%s(0x%02x,0x%02x)\n", __func__, mod, fec);
mod               429 drivers/media/dvb-frontends/cx24116.c 	ret = cx24116_lookup_fecmod(state, delsys, mod, fec);
mod               400 drivers/media/dvb-frontends/cx24117.c 			   enum fe_modulation mod,
mod               407 drivers/media/dvb-frontends/cx24117.c 		__func__, mod, fec, state->demod);
mod               409 drivers/media/dvb-frontends/cx24117.c 	ret = cx24117_lookup_fecmod(state, delsys, mod, fec);
mod               761 drivers/media/dvb-frontends/cx24120.c 	enum fe_modulation mod;
mod               822 drivers/media/dvb-frontends/cx24120.c 	c->modulation = modfec_lookup_table[idx].mod;
mod               868 drivers/media/dvb-frontends/cx24120.c 	enum fe_modulation mod;
mod               929 drivers/media/dvb-frontends/cx24120.c 		if (clock_ratios_table[idx].mod != c->modulation)
mod              1009 drivers/media/dvb-frontends/cx24120.c 	enum fe_modulation mod;
mod              1041 drivers/media/dvb-frontends/cx24120.c static int cx24120_set_fec(struct cx24120_state *state, enum fe_modulation mod,
mod              1046 drivers/media/dvb-frontends/cx24120.c 	dev_dbg(&state->i2c->dev, "(0x%02x,0x%02x)\n", mod, fec);
mod              1054 drivers/media/dvb-frontends/cx24120.c 		if (modfec_table[idx].mod != mod)
mod               301 drivers/media/dvb-frontends/cxd2880/cxd2880_dvbt2.h 	enum cxd2880_dvbt2_l1post_constell mod;
mod               261 drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdmd_dvbt2_mon.c 	l1_pre->mod =
mod               549 drivers/media/dvb-frontends/mb86a20s.c 	int mod, fec, guard;
mod               560 drivers/media/dvb-frontends/mb86a20s.c 		mod = 0;
mod               563 drivers/media/dvb-frontends/mb86a20s.c 		mod = 1;
mod               566 drivers/media/dvb-frontends/mb86a20s.c 		mod = 2;
mod               607 drivers/media/dvb-frontends/mb86a20s.c 	rate = isdbt_rate[mod][fec][guard] * segment * BER_SAMPLING_RATE;
mod               618 drivers/media/dvb-frontends/mb86a20s.c 		segment * isdbt_rate[mod][fec][guard]/1000,
mod               108 drivers/media/platform/vivid/vivid-radio-common.c 	int mod = 16000;
mod               110 drivers/media/platform/vivid/vivid-radio-common.c 	int sig_qual, sig_qual_tx = mod;
mod               117 drivers/media/platform/vivid/vivid-radio-common.c 		mod /= 10;
mod               120 drivers/media/platform/vivid/vivid-radio-common.c 	sig_qual = (dev->radio_rx_freq + delta) % mod - delta;
mod               411 drivers/media/radio/wl128x/fmdrv_v4l2.c 		struct v4l2_modulator *mod)
mod               415 drivers/media/radio/wl128x/fmdrv_v4l2.c 	if (mod->index != 0)
mod               421 drivers/media/radio/wl128x/fmdrv_v4l2.c 	mod->txsubchans = ((fmdev->tx_data.aud_mode == FM_STEREO_MODE) ?
mod               426 drivers/media/radio/wl128x/fmdrv_v4l2.c 	mod->capability = V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_RDS |
mod               434 drivers/media/radio/wl128x/fmdrv_v4l2.c 		const struct v4l2_modulator *mod)
mod               441 drivers/media/radio/wl128x/fmdrv_v4l2.c 	if (mod->index != 0)
mod               452 drivers/media/radio/wl128x/fmdrv_v4l2.c 	aud_mode = (mod->txsubchans & V4L2_TUNER_SUB_STEREO) ?
mod               454 drivers/media/radio/wl128x/fmdrv_v4l2.c 	rds_mode = (mod->txsubchans & V4L2_TUNER_SUB_RDS) ?
mod               231 drivers/misc/cxl/flash.c 	size_t mod, s_copy, len_chunk = 0;
mod               258 drivers/misc/cxl/flash.c 	mod = len_chunk % CXL_AI_BUFFER_SIZE;
mod               259 drivers/misc/cxl/flash.c 	if (mod)
mod               290 drivers/misc/cxl/flash.c 		if ((i == (entries - 1)) && mod)
mod               291 drivers/misc/cxl/flash.c 			s_copy = mod;
mod               300 drivers/misc/cxl/flash.c 		if ((i == (entries - 1)) && mod)
mod               301 drivers/misc/cxl/flash.c 			le[i].len = cpu_to_be64(mod);
mod                67 drivers/misc/cxl/guest.c 	unsigned int entries, mod;
mod                78 drivers/misc/cxl/guest.c 	mod = len % SG_BUFFER_SIZE;
mod                79 drivers/misc/cxl/guest.c 	if (mod)
mod                85 drivers/misc/cxl/guest.c 		mod = 0;
mod               106 drivers/misc/cxl/guest.c 		if ((i == (entries - 1)) && mod)
mod               107 drivers/misc/cxl/guest.c 			le[i].len = cpu_to_be64(mod);
mod               125 drivers/mtd/mtdoops.c 	int i = 0, j, ret, mod;
mod               131 drivers/mtd/mtdoops.c 	mod = (cxt->nextpage * record_size) % mtd->erasesize;
mod               132 drivers/mtd/mtdoops.c 	if (mod != 0) {
mod               133 drivers/mtd/mtdoops.c 		cxt->nextpage = cxt->nextpage + ((mtd->erasesize - mod) / record_size);
mod               597 drivers/mtd/nand/raw/sunxi_nand.c 	int mod = mtd_div_by_ws(mtd->erasesize, mtd);
mod               599 drivers/mtd/nand/raw/sunxi_nand.c 	if (mod > ARRAY_SIZE(sunxi_nfc_randomizer_page_seeds))
mod               600 drivers/mtd/nand/raw/sunxi_nand.c 		mod = ARRAY_SIZE(sunxi_nfc_randomizer_page_seeds);
mod               609 drivers/mtd/nand/raw/sunxi_nand.c 	return seeds[page % mod];
mod               211 drivers/net/bonding/bond_main.c 				  int mod);
mod              2635 drivers/net/bonding/bond_main.c 				  int mod)
mod              2641 drivers/net/bonding/bond_main.c 			     last_act + mod * delta_in_ticks + delta_in_ticks/2);
mod               291 drivers/net/can/janz-ican3.c static inline void ican3_set_page(struct ican3_dev *mod, unsigned int page)
mod               294 drivers/net/can/janz-ican3.c 	iowrite8(page, &mod->dpmctrl->window_address);
mod               308 drivers/net/can/janz-ican3.c static int ican3_old_recv_msg(struct ican3_dev *mod, struct ican3_msg *msg)
mod               314 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_OLD_CONTROL);
mod               315 drivers/net/can/janz-ican3.c 	peer = ioread8(mod->dpm + MSYNC_PEER);
mod               316 drivers/net/can/janz-ican3.c 	locl = ioread8(mod->dpm + MSYNC_LOCL);
mod               320 drivers/net/can/janz-ican3.c 		netdev_dbg(mod->ndev, "no mbox for reading\n");
mod               332 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, mbox_page);
mod               333 drivers/net/can/janz-ican3.c 	memcpy_fromio(msg, mod->dpm, sizeof(*msg));
mod               341 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_OLD_CONTROL);
mod               342 drivers/net/can/janz-ican3.c 	iowrite8(locl, mod->dpm + MSYNC_LOCL);
mod               353 drivers/net/can/janz-ican3.c static int ican3_old_send_msg(struct ican3_dev *mod, struct ican3_msg *msg)
mod               359 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_OLD_CONTROL);
mod               360 drivers/net/can/janz-ican3.c 	peer = ioread8(mod->dpm + MSYNC_PEER);
mod               361 drivers/net/can/janz-ican3.c 	locl = ioread8(mod->dpm + MSYNC_LOCL);
mod               365 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "no mbox for writing\n");
mod               374 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, mbox_page);
mod               375 drivers/net/can/janz-ican3.c 	memcpy_toio(mod->dpm, msg, sizeof(*msg));
mod               381 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_OLD_CONTROL);
mod               382 drivers/net/can/janz-ican3.c 	iowrite8(locl, mod->dpm + MSYNC_LOCL);
mod               390 drivers/net/can/janz-ican3.c static void ican3_init_new_host_interface(struct ican3_dev *mod)
mod               397 drivers/net/can/janz-ican3.c 	spin_lock_irqsave(&mod->lock, flags);
mod               400 drivers/net/can/janz-ican3.c 	mod->rx_num = 0;
mod               401 drivers/net/can/janz-ican3.c 	mod->rx_int = 0;
mod               404 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_TOHOST);
mod               405 drivers/net/can/janz-ican3.c 	dst = mod->dpm;
mod               410 drivers/net/can/janz-ican3.c 		desc.pointer = mod->free_page;
mod               418 drivers/net/can/janz-ican3.c 		mod->free_page++;
mod               422 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_FROMHOST_MID);
mod               423 drivers/net/can/janz-ican3.c 	dst = mod->dpm;
mod               426 drivers/net/can/janz-ican3.c 	mod->tx_num = 0;
mod               431 drivers/net/can/janz-ican3.c 		desc.pointer = mod->free_page;
mod               439 drivers/net/can/janz-ican3.c 		mod->free_page++;
mod               443 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_FROMHOST_HIGH);
mod               444 drivers/net/can/janz-ican3.c 	dst = mod->dpm;
mod               448 drivers/net/can/janz-ican3.c 	desc.pointer = mod->free_page;
mod               450 drivers/net/can/janz-ican3.c 	mod->free_page++;
mod               453 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_FROMHOST_LOW);
mod               454 drivers/net/can/janz-ican3.c 	dst = mod->dpm;
mod               458 drivers/net/can/janz-ican3.c 	desc.pointer = mod->free_page;
mod               460 drivers/net/can/janz-ican3.c 	mod->free_page++;
mod               462 drivers/net/can/janz-ican3.c 	spin_unlock_irqrestore(&mod->lock, flags);
mod               469 drivers/net/can/janz-ican3.c static void ican3_init_fast_host_interface(struct ican3_dev *mod)
mod               477 drivers/net/can/janz-ican3.c 	spin_lock_irqsave(&mod->lock, flags);
mod               480 drivers/net/can/janz-ican3.c 	mod->fastrx_start = mod->free_page;
mod               481 drivers/net/can/janz-ican3.c 	mod->fastrx_num = 0;
mod               497 drivers/net/can/janz-ican3.c 		ican3_set_page(mod, mod->free_page);
mod               500 drivers/net/can/janz-ican3.c 		dst = mod->dpm + addr;
mod               507 drivers/net/can/janz-ican3.c 			mod->free_page++;
mod               513 drivers/net/can/janz-ican3.c 		mod->free_page++;
mod               516 drivers/net/can/janz-ican3.c 	mod->fasttx_start = mod->free_page;
mod               517 drivers/net/can/janz-ican3.c 	mod->fasttx_num = 0;
mod               533 drivers/net/can/janz-ican3.c 		ican3_set_page(mod, mod->free_page);
mod               536 drivers/net/can/janz-ican3.c 		dst = mod->dpm + addr;
mod               543 drivers/net/can/janz-ican3.c 			mod->free_page++;
mod               547 drivers/net/can/janz-ican3.c 	spin_unlock_irqrestore(&mod->lock, flags);
mod               557 drivers/net/can/janz-ican3.c static int ican3_new_send_msg(struct ican3_dev *mod, struct ican3_msg *msg)
mod               560 drivers/net/can/janz-ican3.c 	void __iomem *desc_addr = mod->dpm + (mod->tx_num * sizeof(desc));
mod               563 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_FROMHOST_MID);
mod               567 drivers/net/can/janz-ican3.c 		netdev_dbg(mod->ndev, "%s: no free buffers\n", __func__);
mod               572 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, desc.pointer);
mod               573 drivers/net/can/janz-ican3.c 	memcpy_toio(mod->dpm, msg, sizeof(*msg));
mod               576 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_FROMHOST_MID);
mod               581 drivers/net/can/janz-ican3.c 	mod->tx_num = (desc.control & DESC_WRAP) ? 0 : (mod->tx_num + 1);
mod               588 drivers/net/can/janz-ican3.c static int ican3_new_recv_msg(struct ican3_dev *mod, struct ican3_msg *msg)
mod               591 drivers/net/can/janz-ican3.c 	void __iomem *desc_addr = mod->dpm + (mod->rx_num * sizeof(desc));
mod               594 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_TOHOST);
mod               598 drivers/net/can/janz-ican3.c 		netdev_dbg(mod->ndev, "%s: no buffers to recv\n", __func__);
mod               603 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, desc.pointer);
mod               604 drivers/net/can/janz-ican3.c 	memcpy_fromio(msg, mod->dpm, sizeof(*msg));
mod               607 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_TOHOST);
mod               612 drivers/net/can/janz-ican3.c 	mod->rx_num = (desc.control & DESC_WRAP) ? 0 : (mod->rx_num + 1);
mod               620 drivers/net/can/janz-ican3.c static int ican3_send_msg(struct ican3_dev *mod, struct ican3_msg *msg)
mod               625 drivers/net/can/janz-ican3.c 	spin_lock_irqsave(&mod->lock, flags);
mod               627 drivers/net/can/janz-ican3.c 	if (mod->iftype == 0)
mod               628 drivers/net/can/janz-ican3.c 		ret = ican3_old_send_msg(mod, msg);
mod               630 drivers/net/can/janz-ican3.c 		ret = ican3_new_send_msg(mod, msg);
mod               632 drivers/net/can/janz-ican3.c 	spin_unlock_irqrestore(&mod->lock, flags);
mod               636 drivers/net/can/janz-ican3.c static int ican3_recv_msg(struct ican3_dev *mod, struct ican3_msg *msg)
mod               641 drivers/net/can/janz-ican3.c 	spin_lock_irqsave(&mod->lock, flags);
mod               643 drivers/net/can/janz-ican3.c 	if (mod->iftype == 0)
mod               644 drivers/net/can/janz-ican3.c 		ret = ican3_old_recv_msg(mod, msg);
mod               646 drivers/net/can/janz-ican3.c 		ret = ican3_new_recv_msg(mod, msg);
mod               648 drivers/net/can/janz-ican3.c 	spin_unlock_irqrestore(&mod->lock, flags);
mod               656 drivers/net/can/janz-ican3.c static int ican3_msg_connect(struct ican3_dev *mod)
mod               664 drivers/net/can/janz-ican3.c 	return ican3_send_msg(mod, &msg);
mod               667 drivers/net/can/janz-ican3.c static int ican3_msg_disconnect(struct ican3_dev *mod)
mod               675 drivers/net/can/janz-ican3.c 	return ican3_send_msg(mod, &msg);
mod               678 drivers/net/can/janz-ican3.c static int ican3_msg_newhostif(struct ican3_dev *mod)
mod               688 drivers/net/can/janz-ican3.c 	WARN_ON(mod->iftype != 0);
mod               690 drivers/net/can/janz-ican3.c 	ret = ican3_send_msg(mod, &msg);
mod               695 drivers/net/can/janz-ican3.c 	mod->iftype = 1;
mod               699 drivers/net/can/janz-ican3.c static int ican3_msg_fasthostif(struct ican3_dev *mod)
mod               709 drivers/net/can/janz-ican3.c 	addr = DPM_PAGE_ADDR(mod->fastrx_start);
mod               716 drivers/net/can/janz-ican3.c 	addr = DPM_PAGE_ADDR(mod->fasttx_start);
mod               723 drivers/net/can/janz-ican3.c 	WARN_ON(mod->iftype != 1);
mod               725 drivers/net/can/janz-ican3.c 	return ican3_send_msg(mod, &msg);
mod               732 drivers/net/can/janz-ican3.c static int ican3_set_id_filter(struct ican3_dev *mod, bool accept)
mod               749 drivers/net/can/janz-ican3.c 	ret = ican3_send_msg(mod, &msg);
mod               770 drivers/net/can/janz-ican3.c 	return ican3_send_msg(mod, &msg);
mod               776 drivers/net/can/janz-ican3.c static int ican3_set_bus_state(struct ican3_dev *mod, bool on)
mod               778 drivers/net/can/janz-ican3.c 	struct can_bittiming *bt = &mod->can.bittiming;
mod               789 drivers/net/can/janz-ican3.c 	if (mod->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)
mod               792 drivers/net/can/janz-ican3.c 	if (mod->fwtype == ICAN3_FWTYPE_ICANOS) {
mod               803 drivers/net/can/janz-ican3.c 			res = ican3_send_msg(mod, &msg);
mod               813 drivers/net/can/janz-ican3.c 		return ican3_send_msg(mod, &msg);
mod               815 drivers/net/can/janz-ican3.c 	} else if (mod->fwtype == ICAN3_FWTYPE_CAL_CANOPEN) {
mod               830 drivers/net/can/janz-ican3.c 		res = ican3_send_msg(mod, &msg);
mod               848 drivers/net/can/janz-ican3.c 			return ican3_send_msg(mod, &msg);
mod               855 drivers/net/can/janz-ican3.c static int ican3_set_termination(struct ican3_dev *mod, bool on)
mod               865 drivers/net/can/janz-ican3.c 	return ican3_send_msg(mod, &msg);
mod               868 drivers/net/can/janz-ican3.c static int ican3_send_inquiry(struct ican3_dev *mod, u8 subspec)
mod               878 drivers/net/can/janz-ican3.c 	return ican3_send_msg(mod, &msg);
mod               881 drivers/net/can/janz-ican3.c static int ican3_set_buserror(struct ican3_dev *mod, u8 quota)
mod               885 drivers/net/can/janz-ican3.c 	if (mod->fwtype == ICAN3_FWTYPE_ICANOS) {
mod               891 drivers/net/can/janz-ican3.c 	} else if (mod->fwtype == ICAN3_FWTYPE_CAL_CANOPEN) {
mod               902 drivers/net/can/janz-ican3.c 	return ican3_send_msg(mod, &msg);
mod               909 drivers/net/can/janz-ican3.c static void ican3_to_can_frame(struct ican3_dev *mod,
mod               941 drivers/net/can/janz-ican3.c static void can_frame_to_ican3(struct ican3_dev *mod,
mod               954 drivers/net/can/janz-ican3.c 	if (mod->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT)
mod               985 drivers/net/can/janz-ican3.c static void ican3_handle_idvers(struct ican3_dev *mod, struct ican3_msg *msg)
mod               987 drivers/net/can/janz-ican3.c 	netdev_dbg(mod->ndev, "IDVERS response: %s\n", msg->data);
mod               990 drivers/net/can/janz-ican3.c static void ican3_handle_msglost(struct ican3_dev *mod, struct ican3_msg *msg)
mod               992 drivers/net/can/janz-ican3.c 	struct net_device *dev = mod->ndev;
mod              1003 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "lost %d control messages\n", msg->data[0]);
mod              1032 drivers/net/can/janz-ican3.c static int ican3_handle_cevtind(struct ican3_dev *mod, struct ican3_msg *msg)
mod              1034 drivers/net/can/janz-ican3.c 	struct net_device *dev = mod->ndev;
mod              1036 drivers/net/can/janz-ican3.c 	enum can_state state = mod->can.state;
mod              1043 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to handle errors on non-SJA1000\n");
mod              1049 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "error message too short\n");
mod              1071 drivers/net/can/janz-ican3.c 		netdev_dbg(mod->ndev, "bus error interrupt\n");
mod              1075 drivers/net/can/janz-ican3.c 			kfree_skb(skb_dequeue(&mod->echoq));
mod              1085 drivers/net/can/janz-ican3.c 		ret = ican3_set_buserror(mod, 1);
mod              1087 drivers/net/can/janz-ican3.c 			netdev_err(mod->ndev, "unable to re-enable bus-error\n");
mod              1092 drivers/net/can/janz-ican3.c 		if (!(mod->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING))
mod              1102 drivers/net/can/janz-ican3.c 		netdev_dbg(mod->ndev, "data overrun interrupt\n");
mod              1111 drivers/net/can/janz-ican3.c 		netdev_dbg(mod->ndev, "error warning + passive interrupt\n");
mod              1115 drivers/net/can/janz-ican3.c 			mod->can.can_stats.bus_off++;
mod              1129 drivers/net/can/janz-ican3.c 		mod->can.can_stats.bus_error++;
mod              1154 drivers/net/can/janz-ican3.c 	if (state != mod->can.state && (state == CAN_STATE_ERROR_WARNING ||
mod              1158 drivers/net/can/janz-ican3.c 			mod->can.can_stats.error_warning++;
mod              1163 drivers/net/can/janz-ican3.c 			mod->can.can_stats.error_passive++;
mod              1173 drivers/net/can/janz-ican3.c 	mod->can.state = state;
mod              1178 drivers/net/can/janz-ican3.c static void ican3_handle_inquiry(struct ican3_dev *mod, struct ican3_msg *msg)
mod              1183 drivers/net/can/janz-ican3.c 		mod->bec.rxerr = msg->data[5];
mod              1184 drivers/net/can/janz-ican3.c 		mod->bec.txerr = msg->data[6];
mod              1185 drivers/net/can/janz-ican3.c 		complete(&mod->buserror_comp);
mod              1188 drivers/net/can/janz-ican3.c 		mod->termination_enabled = msg->data[6] & HWCONF_TERMINATE_ON;
mod              1189 drivers/net/can/janz-ican3.c 		complete(&mod->termination_comp);
mod              1192 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "received an unknown inquiry response\n");
mod              1198 drivers/net/can/janz-ican3.c static void ican3_handle_nmtsind(struct ican3_dev *mod, struct ican3_msg *msg)
mod              1212 drivers/net/can/janz-ican3.c 			ican3_handle_cevtind(mod, msg);
mod              1219 drivers/net/can/janz-ican3.c 			netdev_warn(mod->ndev, "unknown NMTS event indication %x\n",
mod              1226 drivers/net/can/janz-ican3.c 		netdev_warn(mod->ndev, "unhandled NMTS indication %x\n",
mod              1232 drivers/net/can/janz-ican3.c static void ican3_handle_unknown_message(struct ican3_dev *mod,
mod              1235 drivers/net/can/janz-ican3.c 	netdev_warn(mod->ndev, "received unknown message: spec 0x%.2x length %d\n",
mod              1242 drivers/net/can/janz-ican3.c static void ican3_handle_message(struct ican3_dev *mod, struct ican3_msg *msg)
mod              1244 drivers/net/can/janz-ican3.c 	netdev_dbg(mod->ndev, "%s: modno %d spec 0x%.2x len %d bytes\n", __func__,
mod              1245 drivers/net/can/janz-ican3.c 			   mod->num, msg->spec, le16_to_cpu(msg->len));
mod              1249 drivers/net/can/janz-ican3.c 		ican3_handle_idvers(mod, msg);
mod              1253 drivers/net/can/janz-ican3.c 		ican3_handle_msglost(mod, msg);
mod              1256 drivers/net/can/janz-ican3.c 		ican3_handle_cevtind(mod, msg);
mod              1259 drivers/net/can/janz-ican3.c 		ican3_handle_inquiry(mod, msg);
mod              1262 drivers/net/can/janz-ican3.c 		ican3_handle_nmtsind(mod, msg);
mod              1265 drivers/net/can/janz-ican3.c 		ican3_handle_unknown_message(mod, msg);
mod              1274 drivers/net/can/janz-ican3.c static void ican3_put_echo_skb(struct ican3_dev *mod, struct sk_buff *skb)
mod              1281 drivers/net/can/janz-ican3.c 	skb_queue_tail(&mod->echoq, skb);
mod              1284 drivers/net/can/janz-ican3.c static unsigned int ican3_get_echo_skb(struct ican3_dev *mod)
mod              1286 drivers/net/can/janz-ican3.c 	struct sk_buff *skb = skb_dequeue(&mod->echoq);
mod              1292 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "BUG: echo skb not occupied\n");
mod              1308 drivers/net/can/janz-ican3.c 	skb->dev = mod->ndev;
mod              1322 drivers/net/can/janz-ican3.c static bool ican3_echo_skb_matches(struct ican3_dev *mod, struct sk_buff *skb)
mod              1325 drivers/net/can/janz-ican3.c 	struct sk_buff *echo_skb = skb_peek(&mod->echoq);
mod              1346 drivers/net/can/janz-ican3.c static bool ican3_txok(struct ican3_dev *mod)
mod              1352 drivers/net/can/janz-ican3.c 	if (skb_queue_len(&mod->echoq) >= ICAN3_TX_BUFFERS)
mod              1356 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, mod->fasttx_start + (mod->fasttx_num / 16));
mod              1357 drivers/net/can/janz-ican3.c 	desc = mod->dpm + ((mod->fasttx_num % 16) * sizeof(*desc));
mod              1372 drivers/net/can/janz-ican3.c static int ican3_recv_skb(struct ican3_dev *mod)
mod              1374 drivers/net/can/janz-ican3.c 	struct net_device *ndev = mod->ndev;
mod              1382 drivers/net/can/janz-ican3.c 	spin_lock_irqsave(&mod->lock, flags);
mod              1385 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, mod->fastrx_start + (mod->fastrx_num / 16));
mod              1386 drivers/net/can/janz-ican3.c 	desc_addr = mod->dpm + ((mod->fastrx_num % 16) * sizeof(desc));
mod              1389 drivers/net/can/janz-ican3.c 	spin_unlock_irqrestore(&mod->lock, flags);
mod              1403 drivers/net/can/janz-ican3.c 	ican3_to_can_frame(mod, &desc, cf);
mod              1415 drivers/net/can/janz-ican3.c 	if (ican3_echo_skb_matches(mod, skb)) {
mod              1417 drivers/net/can/janz-ican3.c 		stats->tx_bytes += ican3_get_echo_skb(mod);
mod              1431 drivers/net/can/janz-ican3.c 	spin_lock_irqsave(&mod->lock, flags);
mod              1433 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, mod->fastrx_start + (mod->fastrx_num / 16));
mod              1437 drivers/net/can/janz-ican3.c 	mod->fastrx_num = (desc.control & DESC_WRAP) ? 0
mod              1438 drivers/net/can/janz-ican3.c 						     : (mod->fastrx_num + 1);
mod              1441 drivers/net/can/janz-ican3.c 	spin_unlock_irqrestore(&mod->lock, flags);
mod              1447 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = container_of(napi, struct ican3_dev, napi);
mod              1455 drivers/net/can/janz-ican3.c 		ret = ican3_recv_msg(mod, &msg);
mod              1459 drivers/net/can/janz-ican3.c 		ican3_handle_message(mod, &msg);
mod              1464 drivers/net/can/janz-ican3.c 		ret = ican3_recv_skb(mod);
mod              1476 drivers/net/can/janz-ican3.c 	spin_lock_irqsave(&mod->lock, flags);
mod              1479 drivers/net/can/janz-ican3.c 	if (netif_queue_stopped(mod->ndev) && ican3_txok(mod))
mod              1480 drivers/net/can/janz-ican3.c 		netif_wake_queue(mod->ndev);
mod              1482 drivers/net/can/janz-ican3.c 	spin_unlock_irqrestore(&mod->lock, flags);
mod              1485 drivers/net/can/janz-ican3.c 	iowrite8(1 << mod->num, &mod->ctrl->int_enable);
mod              1491 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = dev_id;
mod              1498 drivers/net/can/janz-ican3.c 	stat = ioread8(&mod->ctrl->int_disable) & (1 << mod->num);
mod              1499 drivers/net/can/janz-ican3.c 	if (stat == (1 << mod->num))
mod              1503 drivers/net/can/janz-ican3.c 	ioread8(&mod->dpmctrl->interrupt);
mod              1506 drivers/net/can/janz-ican3.c 	iowrite8(1 << mod->num, &mod->ctrl->int_disable);
mod              1507 drivers/net/can/janz-ican3.c 	napi_schedule(&mod->napi);
mod              1520 drivers/net/can/janz-ican3.c static int ican3_reset_module(struct ican3_dev *mod)
mod              1526 drivers/net/can/janz-ican3.c 	iowrite8(1 << mod->num, &mod->ctrl->int_disable);
mod              1529 drivers/net/can/janz-ican3.c 	mod->free_page = DPM_FREE_START;
mod              1531 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, QUEUE_OLD_CONTROL);
mod              1532 drivers/net/can/janz-ican3.c 	runold = ioread8(mod->dpm + TARGET_RUNNING);
mod              1535 drivers/net/can/janz-ican3.c 	iowrite8(0x00, &mod->dpmctrl->hwreset);
mod              1540 drivers/net/can/janz-ican3.c 		ican3_set_page(mod, QUEUE_OLD_CONTROL);
mod              1541 drivers/net/can/janz-ican3.c 		runnew = ioread8(mod->dpm + TARGET_RUNNING);
mod              1548 drivers/net/can/janz-ican3.c 	netdev_err(mod->ndev, "failed to reset CAN module\n");
mod              1552 drivers/net/can/janz-ican3.c static void ican3_shutdown_module(struct ican3_dev *mod)
mod              1554 drivers/net/can/janz-ican3.c 	ican3_msg_disconnect(mod);
mod              1555 drivers/net/can/janz-ican3.c 	ican3_reset_module(mod);
mod              1561 drivers/net/can/janz-ican3.c static int ican3_startup_module(struct ican3_dev *mod)
mod              1565 drivers/net/can/janz-ican3.c 	ret = ican3_reset_module(mod);
mod              1567 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to reset module\n");
mod              1572 drivers/net/can/janz-ican3.c 	memcpy_fromio(mod->fwinfo, mod->dpm + FIRMWARE_STAMP, sizeof(mod->fwinfo) - 1);
mod              1573 drivers/net/can/janz-ican3.c 	if (strncmp(mod->fwinfo, "JANZ-ICAN3", 10)) {
mod              1574 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "ICAN3 not detected (found %s)\n", mod->fwinfo);
mod              1577 drivers/net/can/janz-ican3.c 	if (strstr(mod->fwinfo, "CAL/CANopen"))
mod              1578 drivers/net/can/janz-ican3.c 		mod->fwtype = ICAN3_FWTYPE_CAL_CANOPEN;
mod              1580 drivers/net/can/janz-ican3.c 		mod->fwtype = ICAN3_FWTYPE_ICANOS;
mod              1583 drivers/net/can/janz-ican3.c 	iowrite8(1 << mod->num, &mod->ctrl->int_enable);
mod              1585 drivers/net/can/janz-ican3.c 	ret = ican3_msg_connect(mod);
mod              1587 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to connect to module\n");
mod              1591 drivers/net/can/janz-ican3.c 	ican3_init_new_host_interface(mod);
mod              1592 drivers/net/can/janz-ican3.c 	ret = ican3_msg_newhostif(mod);
mod              1594 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to switch to new-style interface\n");
mod              1599 drivers/net/can/janz-ican3.c 	ret = ican3_set_termination(mod, true);
mod              1601 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to enable termination\n");
mod              1606 drivers/net/can/janz-ican3.c 	ret = ican3_set_buserror(mod, 1);
mod              1608 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to set bus-error\n");
mod              1612 drivers/net/can/janz-ican3.c 	ican3_init_fast_host_interface(mod);
mod              1613 drivers/net/can/janz-ican3.c 	ret = ican3_msg_fasthostif(mod);
mod              1615 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to switch to fast host interface\n");
mod              1619 drivers/net/can/janz-ican3.c 	ret = ican3_set_id_filter(mod, true);
mod              1621 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to set acceptance filter\n");
mod              1634 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = netdev_priv(ndev);
mod              1640 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to start CAN layer\n");
mod              1645 drivers/net/can/janz-ican3.c 	ret = ican3_set_bus_state(mod, true);
mod              1647 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to set bus-on\n");
mod              1653 drivers/net/can/janz-ican3.c 	mod->can.state = CAN_STATE_ERROR_ACTIVE;
mod              1661 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = netdev_priv(ndev);
mod              1666 drivers/net/can/janz-ican3.c 	mod->can.state = CAN_STATE_STOPPED;
mod              1669 drivers/net/can/janz-ican3.c 	ret = ican3_set_bus_state(mod, false);
mod              1671 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "unable to set bus-off\n");
mod              1676 drivers/net/can/janz-ican3.c 	skb_queue_purge(&mod->echoq);
mod              1685 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = netdev_priv(ndev);
mod              1694 drivers/net/can/janz-ican3.c 	spin_lock_irqsave(&mod->lock, flags);
mod              1697 drivers/net/can/janz-ican3.c 	if (!ican3_txok(mod)) {
mod              1698 drivers/net/can/janz-ican3.c 		netdev_err(mod->ndev, "BUG: no free descriptors\n");
mod              1699 drivers/net/can/janz-ican3.c 		spin_unlock_irqrestore(&mod->lock, flags);
mod              1704 drivers/net/can/janz-ican3.c 	ican3_set_page(mod, mod->fasttx_start + (mod->fasttx_num / 16));
mod              1705 drivers/net/can/janz-ican3.c 	desc_addr = mod->dpm + ((mod->fasttx_num % 16) * sizeof(desc));
mod              1710 drivers/net/can/janz-ican3.c 	can_frame_to_ican3(mod, cf, &desc);
mod              1718 drivers/net/can/janz-ican3.c 	ican3_put_echo_skb(mod, skb);
mod              1729 drivers/net/can/janz-ican3.c 	iowrite8(0x01, &mod->dpmctrl->interrupt);
mod              1735 drivers/net/can/janz-ican3.c 	mod->fasttx_num = (desc.control & DESC_WRAP) ? 0
mod              1736 drivers/net/can/janz-ican3.c 						     : (mod->fasttx_num + 1);
mod              1739 drivers/net/can/janz-ican3.c 	if (!ican3_txok(mod))
mod              1742 drivers/net/can/janz-ican3.c 	spin_unlock_irqrestore(&mod->lock, flags);
mod              1772 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = netdev_priv(ndev);
mod              1779 drivers/net/can/janz-ican3.c 	ret = ican3_set_bus_state(mod, true);
mod              1786 drivers/net/can/janz-ican3.c 	mod->can.state = CAN_STATE_ERROR_ACTIVE;
mod              1797 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = netdev_priv(ndev);
mod              1800 drivers/net/can/janz-ican3.c 	ret = ican3_send_inquiry(mod, INQUIRY_STATUS);
mod              1804 drivers/net/can/janz-ican3.c 	if (!wait_for_completion_timeout(&mod->buserror_comp, HZ)) {
mod              1805 drivers/net/can/janz-ican3.c 		netdev_info(mod->ndev, "%s timed out\n", __func__);
mod              1809 drivers/net/can/janz-ican3.c 	bec->rxerr = mod->bec.rxerr;
mod              1810 drivers/net/can/janz-ican3.c 	bec->txerr = mod->bec.txerr;
mod              1822 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = netdev_priv(to_net_dev(dev));
mod              1825 drivers/net/can/janz-ican3.c 	ret = ican3_send_inquiry(mod, INQUIRY_TERMINATION);
mod              1829 drivers/net/can/janz-ican3.c 	if (!wait_for_completion_timeout(&mod->termination_comp, HZ)) {
mod              1830 drivers/net/can/janz-ican3.c 		netdev_info(mod->ndev, "%s timed out\n", __func__);
mod              1834 drivers/net/can/janz-ican3.c 	return snprintf(buf, PAGE_SIZE, "%u\n", mod->termination_enabled);
mod              1841 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = netdev_priv(to_net_dev(dev));
mod              1848 drivers/net/can/janz-ican3.c 	ret = ican3_set_termination(mod, enable);
mod              1859 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = netdev_priv(to_net_dev(dev));
mod              1861 drivers/net/can/janz-ican3.c 	return scnprintf(buf, PAGE_SIZE, "%s\n", mod->fwinfo);
mod              1886 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod;
mod              1901 drivers/net/can/janz-ican3.c 	ndev = alloc_candev(sizeof(*mod), 0);
mod              1909 drivers/net/can/janz-ican3.c 	mod = netdev_priv(ndev);
mod              1910 drivers/net/can/janz-ican3.c 	mod->ndev = ndev;
mod              1911 drivers/net/can/janz-ican3.c 	mod->num = pdata->modno;
mod              1912 drivers/net/can/janz-ican3.c 	netif_napi_add(ndev, &mod->napi, ican3_napi, ICAN3_RX_BUFFERS);
mod              1913 drivers/net/can/janz-ican3.c 	skb_queue_head_init(&mod->echoq);
mod              1914 drivers/net/can/janz-ican3.c 	spin_lock_init(&mod->lock);
mod              1915 drivers/net/can/janz-ican3.c 	init_completion(&mod->termination_comp);
mod              1916 drivers/net/can/janz-ican3.c 	init_completion(&mod->buserror_comp);
mod              1922 drivers/net/can/janz-ican3.c 	mod->free_page = DPM_FREE_START;
mod              1928 drivers/net/can/janz-ican3.c 	mod->can.clock.freq = ICAN3_CAN_CLOCK;
mod              1929 drivers/net/can/janz-ican3.c 	mod->can.bittiming_const = &ican3_bittiming_const;
mod              1930 drivers/net/can/janz-ican3.c 	mod->can.do_set_mode = ican3_set_mode;
mod              1931 drivers/net/can/janz-ican3.c 	mod->can.do_get_berr_counter = ican3_get_berr_counter;
mod              1932 drivers/net/can/janz-ican3.c 	mod->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES
mod              1937 drivers/net/can/janz-ican3.c 	mod->irq = platform_get_irq(pdev, 0);
mod              1938 drivers/net/can/janz-ican3.c 	if (mod->irq < 0) {
mod              1943 drivers/net/can/janz-ican3.c 	ndev->irq = mod->irq;
mod              1953 drivers/net/can/janz-ican3.c 	mod->dpm = ioremap(res->start, resource_size(res));
mod              1954 drivers/net/can/janz-ican3.c 	if (!mod->dpm) {
mod              1960 drivers/net/can/janz-ican3.c 	mod->dpmctrl = mod->dpm + DPM_PAGE_SIZE;
mod              1970 drivers/net/can/janz-ican3.c 	mod->ctrl = ioremap(res->start, resource_size(res));
mod              1971 drivers/net/can/janz-ican3.c 	if (!mod->ctrl) {
mod              1978 drivers/net/can/janz-ican3.c 	iowrite8(1 << mod->num, &mod->ctrl->int_disable);
mod              1979 drivers/net/can/janz-ican3.c 	ret = request_irq(mod->irq, ican3_irq, IRQF_SHARED, DRV_NAME, mod);
mod              1986 drivers/net/can/janz-ican3.c 	napi_enable(&mod->napi);
mod              1987 drivers/net/can/janz-ican3.c 	ret = ican3_startup_module(mod);
mod              2000 drivers/net/can/janz-ican3.c 	netdev_info(mod->ndev, "module %d: registered CAN device\n", pdata->modno);
mod              2004 drivers/net/can/janz-ican3.c 	napi_disable(&mod->napi);
mod              2005 drivers/net/can/janz-ican3.c 	iowrite8(1 << mod->num, &mod->ctrl->int_disable);
mod              2006 drivers/net/can/janz-ican3.c 	free_irq(mod->irq, mod);
mod              2008 drivers/net/can/janz-ican3.c 	iounmap(mod->ctrl);
mod              2010 drivers/net/can/janz-ican3.c 	iounmap(mod->dpm);
mod              2020 drivers/net/can/janz-ican3.c 	struct ican3_dev *mod = netdev_priv(ndev);
mod              2024 drivers/net/can/janz-ican3.c 	napi_disable(&mod->napi);
mod              2025 drivers/net/can/janz-ican3.c 	iowrite8(1 << mod->num, &mod->ctrl->int_disable);
mod              2026 drivers/net/can/janz-ican3.c 	free_irq(mod->irq, mod);
mod              2029 drivers/net/can/janz-ican3.c 	ican3_shutdown_module(mod);
mod              2032 drivers/net/can/janz-ican3.c 	iounmap(mod->ctrl);
mod              2033 drivers/net/can/janz-ican3.c 	iounmap(mod->dpm);
mod              2118 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	struct bfa_ioc_mbox_mod *mod = &ioc->mbox_mod;
mod              2121 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	INIT_LIST_HEAD(&mod->cmd_q);
mod              2123 drivers/net/ethernet/brocade/bna/bfa_ioc.c 		mod->mbhdlr[mc].cbfn = NULL;
mod              2124 drivers/net/ethernet/brocade/bna/bfa_ioc.c 		mod->mbhdlr[mc].cbarg = ioc->bfa;
mod              2132 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	struct bfa_ioc_mbox_mod *mod = &ioc->mbox_mod;
mod              2141 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	if (list_empty(&mod->cmd_q))
mod              2154 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	cmd = list_first_entry(&mod->cmd_q, struct bfa_mbox_cmd, qe);
mod              2173 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	struct bfa_ioc_mbox_mod *mod = &ioc->mbox_mod;
mod              2176 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	while (!list_empty(&mod->cmd_q)) {
mod              2177 drivers/net/ethernet/brocade/bna/bfa_ioc.c 		cmd = list_first_entry(&mod->cmd_q, struct bfa_mbox_cmd, qe);
mod              2630 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	struct bfa_ioc_mbox_mod *mod = &ioc->mbox_mod;
mod              2632 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	mod->mbhdlr[mc].cbfn	= cbfn;
mod              2633 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	mod->mbhdlr[mc].cbarg = cbarg;
mod              2648 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	struct bfa_ioc_mbox_mod *mod = &ioc->mbox_mod;
mod              2657 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	if (!list_empty(&mod->cmd_q)) {
mod              2658 drivers/net/ethernet/brocade/bna/bfa_ioc.c 		list_add_tail(&cmd->qe, &mod->cmd_q);
mod              2667 drivers/net/ethernet/brocade/bna/bfa_ioc.c 		list_add_tail(&cmd->qe, &mod->cmd_q);
mod              2683 drivers/net/ethernet/brocade/bna/bfa_ioc.c 	struct bfa_ioc_mbox_mod *mod = &ioc->mbox_mod;
mod              2697 drivers/net/ethernet/brocade/bna/bfa_ioc.c 		if ((mc >= BFI_MC_MAX) || (mod->mbhdlr[mc].cbfn == NULL))
mod              2700 drivers/net/ethernet/brocade/bna/bfa_ioc.c 		mod->mbhdlr[mc].cbfn(mod->mbhdlr[mc].cbarg, &m);
mod               271 drivers/net/ethernet/brocade/bna/bna.h struct bna_mcam_handle *bna_mcam_mod_handle_get(struct bna_mcam_mod *mod);
mod               376 drivers/net/ethernet/freescale/fman/fman.h void fman_register_intr(struct fman *fman, enum fman_event_modules mod,
mod               380 drivers/net/ethernet/freescale/fman/fman.h void fman_unregister_intr(struct fman *fman, enum fman_event_modules mod,
mod               920 drivers/net/ethernet/freescale/gianfar.c 	unsigned int mod = (svr >> 16) & 0xfff6; /* w/o E suffix */
mod               924 drivers/net/ethernet/freescale/gianfar.c 	if ((pvr == 0x80850010 && mod == 0x80b0 && rev >= 0x0020) ||
mod               925 drivers/net/ethernet/freescale/gianfar.c 	    (pvr == 0x80861010 && (mod & 0xfff9) == 0x80c0))
mod               929 drivers/net/ethernet/freescale/gianfar.c 	if ((pvr == 0x80850010 && mod == 0x80b0) ||
mod               930 drivers/net/ethernet/freescale/gianfar.c 	    (pvr == 0x80861010 && (mod & 0xfff9) == 0x80c0))
mod               934 drivers/net/ethernet/freescale/gianfar.c 	if (pvr == 0x80850010 && mod == 0x80b0 && rev < 0x0020)
mod               184 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 				  enum hinic_mod_type mod, u8 cmd, u16 prod_idx,
mod               211 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 			  HINIC_CMDQ_CTRL_SET(mod, MOD)                 |
mod               226 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	if ((cmd == CMDQ_SET_ARM_CMD) && (mod == HINIC_MOD_COMM))
mod               253 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 			      enum hinic_mod_type mod, u8 cmd, u16 prod_idx)
mod               269 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	cmdq_prepare_wqe_ctrl(wqe, wrapped, ack_type, mod, cmd,
mod               281 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 				enum hinic_mod_type mod, u8 cmd, u16 prod_idx)
mod               300 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 	cmdq_prepare_wqe_ctrl(wqe, wrapped, ack_type, mod, cmd, prod_idx,
mod               341 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 				     enum hinic_mod_type mod, u8 cmd,
mod               379 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 			  wrapped, HINIC_CMD_ACK_TYPE_CMDQ, mod, cmd,
mod               486 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 			   enum hinic_mod_type mod, u8 cmd,
mod               500 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.c 					 mod, cmd, buf_in, resp);
mod               167 drivers/net/ethernet/huawei/hinic/hinic_hw_cmdq.h 			   enum hinic_mod_type mod, u8 cmd,
mod                76 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 				enum hinic_mod_type mod,
mod                83 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 	struct hinic_mgmt_cb *mgmt_cb = &pf_to_mgmt->mgmt_cb[mod];
mod                96 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 				  enum hinic_mod_type mod)
mod                98 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 	struct hinic_mgmt_cb *mgmt_cb = &pf_to_mgmt->mgmt_cb[mod];
mod               121 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 			  u16 msg_len, enum hinic_mod_type mod,
mod               129 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 	       HINIC_MSG_HEADER_SET(mod, MODULE)                |
mod               195 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 			    enum hinic_mod_type mod, u8 cmd,
mod               208 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 		header = prepare_header(pf_to_mgmt, data_len, mod, ack_type,
mod               212 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 		header = prepare_header(pf_to_mgmt, data_len, mod, ack_type,
mod               239 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 			    enum hinic_mod_type mod, u8 cmd,
mod               266 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 	err = send_msg_to_mgmt(pf_to_mgmt, mod, cmd, buf_in, in_size,
mod               312 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 			     enum hinic_mod_type mod, u8 cmd,
mod               322 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 	err = send_msg_to_mgmt(pf_to_mgmt, mod, cmd, buf_in, in_size,
mod               343 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 		      enum hinic_mod_type mod, u8 cmd,
mod               364 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 	return msg_to_mgmt_sync(pf_to_mgmt, mod, cmd, buf_in, in_size,
mod               384 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 	if (recv_msg->mod >= HINIC_MOD_MAX) {
mod               386 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 			recv_msg->mod);
mod               390 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 	mgmt_cb = &pf_to_mgmt->mgmt_cb[recv_msg->mod];
mod               402 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 			recv_msg->mod);
mod               408 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 		msg_to_mgmt_async(pf_to_mgmt, recv_msg->mod, recv_msg->cmd,
mod               455 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c 	recv_msg->mod = HINIC_MSG_HEADER_GET(*header, MODULE);
mod                92 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.h 	enum hinic_mod_type     mod;
mod               124 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.h 				enum hinic_mod_type mod,
mod               132 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.h 				  enum hinic_mod_type mod);
mod               135 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.h 		      enum hinic_mod_type mod, u8 cmd,
mod              1215 drivers/net/ethernet/netronome/nfp/flower/offload.c 	bool mod = false;
mod              1224 drivers/net/ethernet/netronome/nfp/flower/offload.c 		mod = true;
mod              1232 drivers/net/ethernet/netronome/nfp/flower/offload.c 	if (!mod) {
mod               565 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c 					   struct net_device *netdev, bool mod)
mod               575 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c 		if (mod)
mod               588 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c 			  int port, bool mod)
mod               600 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c 								   netdev, mod);
mod               656 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c 	nfp_tunnel_offloaded_macs_inc_ref_and_link(entry, netdev, mod);
mod               674 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c 			  u8 *mac, bool mod)
mod               688 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c 	if (nfp_netdev_is_nfp_repr(netdev) && !mod) {
mod               320 drivers/net/ethernet/netronome/nfp/nfp_asm.h #define __reg_lm(x, mod, off)	__enc_swreg_lm((x), (mod), (off))
mod               699 drivers/net/wireless/ath/ath6kl/wmi.c 		struct wmi_p2p_hmodel *mod;
mod               700 drivers/net/wireless/ath/ath6kl/wmi.c 		if (dlen < sizeof(*mod))
mod               702 drivers/net/wireless/ath/ath6kl/wmi.c 		mod = (struct wmi_p2p_hmodel *) ev->data;
mod               704 drivers/net/wireless/ath/ath6kl/wmi.c 			   mod->p2p_model,
mod               705 drivers/net/wireless/ath/ath6kl/wmi.c 			   mod->p2p_model ? "host" : "firmware");
mod              1223 drivers/net/wireless/cisco/airo.c 	mic_module		mod[2];
mod              1341 drivers/net/wireless/cisco/airo.c 		ai->mod[0].uCtx.valid = 0;
mod              1342 drivers/net/wireless/cisco/airo.c 		ai->mod[0].mCtx.valid = 0;
mod              1347 drivers/net/wireless/cisco/airo.c 		age_mic_context(&ai->mod[0].mCtx, &ai->mod[1].mCtx,
mod              1353 drivers/net/wireless/cisco/airo.c 		age_mic_context(&ai->mod[0].uCtx, &ai->mod[1].uCtx,
mod              1374 drivers/net/wireless/cisco/airo.c 		memset(&ai->mod[i].mCtx,0,sizeof(miccntx));
mod              1375 drivers/net/wireless/cisco/airo.c 		memset(&ai->mod[i].uCtx,0,sizeof(miccntx));
mod              1406 drivers/net/wireless/cisco/airo.c 		context = &ai->mod[0].mCtx;
mod              1408 drivers/net/wireless/cisco/airo.c 		context = &ai->mod[0].uCtx;
mod              1496 drivers/net/wireless/cisco/airo.c 		context = mcast ? &ai->mod[i].mCtx : &ai->mod[i].uCtx;
mod              1452 drivers/nfc/pn533/pn533.c 					struct pn533_poll_modulations *mod)
mod              1456 drivers/nfc/pn533/pn533.c 	skb = pn533_alloc_skb(dev, mod->len);
mod              1460 drivers/nfc/pn533/pn533.c 	skb_put_data(skb, &mod->data, mod->len);
mod              1467 drivers/nfc/pn533/pn533.c 	struct pn533_poll_modulations *mod;
mod              1472 drivers/nfc/pn533/pn533.c 	mod = dev->poll_mod_active[dev->poll_mod_curr];
mod              1475 drivers/nfc/pn533/pn533.c 		__func__, mod->len);
mod              1482 drivers/nfc/pn533/pn533.c 	if (mod->len == 0) {  /* Listen mode */
mod              1487 drivers/nfc/pn533/pn533.c 		skb = pn533_alloc_poll_in_frame(dev, mod);
mod                78 drivers/ntb/core.c int __ntb_register_client(struct ntb_client *client, struct module *mod,
mod                89 drivers/ntb/core.c 	client->drv.owner = mod;
mod              1041 drivers/parisc/lba_pci.c 	pa_count = pa_pdc_cell->mod[1];
mod              1045 drivers/parisc/lba_pci.c 	io_count = io_pdc_cell->mod[1];
mod              1067 drivers/parisc/lba_pci.c 		p = (void *) &(pa_pdc_cell->mod[2+i*3]);
mod              1068 drivers/parisc/lba_pci.c 		io = (void *) &(io_pdc_cell->mod[2+i*3]);
mod               243 drivers/parisc/pdc_stable.c 	out += sprintf(out, "%u\n", (unsigned char)devpath->mod);
mod               287 drivers/parisc/pdc_stable.c 	hwpath.mod = simple_strtoul(temp+1, NULL, 10);
mod               289 drivers/parisc/pdc_stable.c 	DPRINTK("%s: mod: %d\n", __func__, hwpath.mod);
mod              1102 drivers/parisc/sba_iommu.c PAT_MOD(mod)->mod_info.mod_pages   = PAT_GET_MOD_PAGES(temp);
mod              1104 drivers/parisc/sba_iommu.c PAT_MOD(mod)->mod_info.dvi         = PAT_GET_DVI(temp);
mod              1106 drivers/parisc/sba_iommu.c PAT_MOD(mod)->mod_info.ioc         = PAT_GET_IOC(temp);
mod                73 drivers/pwm/pwm-imx-tpm.c 	u32 mod;
mod               111 drivers/pwm/pwm-imx-tpm.c 	p->mod = period_count;
mod               128 drivers/pwm/pwm-imx-tpm.c 	tmp = (u64)p->mod * real_state->duty_cycle;
mod               213 drivers/pwm/pwm-imx-tpm.c 		writel(p->mod, tpm->base + PWM_IMX_TPM_MOD);
mod               241 drivers/pwm/pwm-imx-tpm.c 		while (readl(tpm->base + PWM_IMX_TPM_MOD) != p->mod
mod                23 drivers/s390/cio/orb.h 	u32 mod:1;	/* modification control */
mod               587 drivers/s390/crypto/zcrypt_api.c 				     struct module *mod,
mod               595 drivers/s390/crypto/zcrypt_api.c 	module_put(mod);
mod               639 drivers/s390/crypto/zcrypt_api.c 	struct module *mod;
mod               694 drivers/s390/crypto/zcrypt_api.c 	pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, weight);
mod               706 drivers/s390/crypto/zcrypt_api.c 	zcrypt_drop_queue(pref_zc, pref_zq, mod, weight);
mod               723 drivers/s390/crypto/zcrypt_api.c 	struct module *mod;
mod               778 drivers/s390/crypto/zcrypt_api.c 	pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, weight);
mod               790 drivers/s390/crypto/zcrypt_api.c 	zcrypt_drop_queue(pref_zc, pref_zq, mod, weight);
mod               809 drivers/s390/crypto/zcrypt_api.c 	struct module *mod;
mod               867 drivers/s390/crypto/zcrypt_api.c 	pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, weight);
mod               883 drivers/s390/crypto/zcrypt_api.c 	zcrypt_drop_queue(pref_zc, pref_zq, mod, weight);
mod               934 drivers/s390/crypto/zcrypt_api.c 	struct module *mod;
mod              1005 drivers/s390/crypto/zcrypt_api.c 	pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, weight);
mod              1017 drivers/s390/crypto/zcrypt_api.c 	zcrypt_drop_queue(pref_zc, pref_zq, mod, weight);
mod              1038 drivers/s390/crypto/zcrypt_api.c 	struct module *mod;
mod              1070 drivers/s390/crypto/zcrypt_api.c 	pref_zq = zcrypt_pick_queue(pref_zc, pref_zq, &mod, weight);
mod              1082 drivers/s390/crypto/zcrypt_api.c 	zcrypt_drop_queue(pref_zc, pref_zq, mod, weight);
mod               204 drivers/s390/crypto/zcrypt_msgtype50.c 	unsigned char *mod, *exp, *inp;
mod               217 drivers/s390/crypto/zcrypt_msgtype50.c 		mod = meb1->modulus + sizeof(meb1->modulus) - mod_len;
mod               228 drivers/s390/crypto/zcrypt_msgtype50.c 		mod = meb2->modulus + sizeof(meb2->modulus) - mod_len;
mod               239 drivers/s390/crypto/zcrypt_msgtype50.c 		mod = meb3->modulus + sizeof(meb3->modulus) - mod_len;
mod               245 drivers/s390/crypto/zcrypt_msgtype50.c 	if (copy_from_user(mod, mex->n_modulus, mod_len) ||
mod              3741 drivers/scsi/bfa/bfa_fcpim.c 	struct bfa_fcp_mod_s	*mod = BFA_FCP_MOD(bfa);
mod              3746 drivers/scsi/bfa/bfa_fcpim.c 	if (!mod->throttle_update_required)
mod              3749 drivers/scsi/bfa/bfa_fcpim.c 	for (i = 0; i < (mod->num_ioim_reqs - num_ioim_fw); i++) {
mod              3750 drivers/scsi/bfa/bfa_fcpim.c 		bfa_q_deq_tail(&mod->iotag_ioim_free_q, &qe);
mod              3751 drivers/scsi/bfa/bfa_fcpim.c 		list_add_tail(qe, &mod->iotag_unused_q);
mod              3754 drivers/scsi/bfa/bfa_fcpim.c 	if (mod->num_ioim_reqs != num_ioim_fw) {
mod              3755 drivers/scsi/bfa/bfa_fcpim.c 		bfa_trc(bfa, mod->num_ioim_reqs);
mod              3759 drivers/scsi/bfa/bfa_fcpim.c 	mod->max_ioim_reqs = max_ioim_fw;
mod              3760 drivers/scsi/bfa/bfa_fcpim.c 	mod->num_ioim_reqs = num_ioim_fw;
mod              3761 drivers/scsi/bfa/bfa_fcpim.c 	mod->throttle_update_required = 0;
mod              1983 drivers/scsi/bfa/bfa_ioc.c 	struct bfa_ioc_mbox_mod_s	*mod = &ioc->mbox_mod;
mod              1986 drivers/scsi/bfa/bfa_ioc.c 	INIT_LIST_HEAD(&mod->cmd_q);
mod              1988 drivers/scsi/bfa/bfa_ioc.c 		mod->mbhdlr[mc].cbfn = NULL;
mod              1989 drivers/scsi/bfa/bfa_ioc.c 		mod->mbhdlr[mc].cbarg = ioc->bfa;
mod              1999 drivers/scsi/bfa/bfa_ioc.c 	struct bfa_ioc_mbox_mod_s	*mod = &ioc->mbox_mod;
mod              2006 drivers/scsi/bfa/bfa_ioc.c 	if (list_empty(&mod->cmd_q))
mod              2019 drivers/scsi/bfa/bfa_ioc.c 	bfa_q_deq(&mod->cmd_q, &cmd);
mod              2029 drivers/scsi/bfa/bfa_ioc.c 	struct bfa_ioc_mbox_mod_s	*mod = &ioc->mbox_mod;
mod              2032 drivers/scsi/bfa/bfa_ioc.c 	while (!list_empty(&mod->cmd_q))
mod              2033 drivers/scsi/bfa/bfa_ioc.c 		bfa_q_deq(&mod->cmd_q, &cmd);
mod              2537 drivers/scsi/bfa/bfa_ioc.c 	struct bfa_ioc_mbox_mod_s	*mod = &ioc->mbox_mod;
mod              2541 drivers/scsi/bfa/bfa_ioc.c 		mod->mbhdlr[mc].cbfn = mcfuncs[mc];
mod              2551 drivers/scsi/bfa/bfa_ioc.c 	struct bfa_ioc_mbox_mod_s	*mod = &ioc->mbox_mod;
mod              2553 drivers/scsi/bfa/bfa_ioc.c 	mod->mbhdlr[mc].cbfn	= cbfn;
mod              2554 drivers/scsi/bfa/bfa_ioc.c 	mod->mbhdlr[mc].cbarg	= cbarg;
mod              2567 drivers/scsi/bfa/bfa_ioc.c 	struct bfa_ioc_mbox_mod_s	*mod = &ioc->mbox_mod;
mod              2573 drivers/scsi/bfa/bfa_ioc.c 	if (!list_empty(&mod->cmd_q)) {
mod              2574 drivers/scsi/bfa/bfa_ioc.c 		list_add_tail(&cmd->qe, &mod->cmd_q);
mod              2583 drivers/scsi/bfa/bfa_ioc.c 		list_add_tail(&cmd->qe, &mod->cmd_q);
mod              2599 drivers/scsi/bfa/bfa_ioc.c 	struct bfa_ioc_mbox_mod_s	*mod = &ioc->mbox_mod;
mod              2613 drivers/scsi/bfa/bfa_ioc.c 		if ((mc >= BFI_MC_MAX) || (mod->mbhdlr[mc].cbfn == NULL))
mod              2616 drivers/scsi/bfa/bfa_ioc.c 		mod->mbhdlr[mc].cbfn(mod->mbhdlr[mc].cbarg, &m);
mod              3192 drivers/scsi/bfa/bfa_ioc.c bfa_timer_beat(struct bfa_timer_mod_s *mod)
mod              3194 drivers/scsi/bfa/bfa_ioc.c 	struct list_head *qh = &mod->timer_q;
mod              3231 drivers/scsi/bfa/bfa_ioc.c bfa_timer_begin(struct bfa_timer_mod_s *mod, struct bfa_timer_s *timer,
mod              3236 drivers/scsi/bfa/bfa_ioc.c 	WARN_ON(bfa_q_is_on_q(&mod->timer_q, timer));
mod              3242 drivers/scsi/bfa/bfa_ioc.c 	list_add_tail(&timer->qe, &mod->timer_q);
mod                47 drivers/scsi/bfa/bfa_ioc.h void bfa_timer_beat(struct bfa_timer_mod_s *mod);
mod                48 drivers/scsi/bfa/bfa_ioc.h void bfa_timer_begin(struct bfa_timer_mod_s *mod, struct bfa_timer_s *timer,
mod               414 drivers/scsi/bfa/bfa_svc.c claim_fcxps_mem(struct bfa_fcxp_mod_s *mod)
mod               419 drivers/scsi/bfa/bfa_svc.c 	fcxp = (struct bfa_fcxp_s *) bfa_mem_kva_curp(mod);
mod               420 drivers/scsi/bfa/bfa_svc.c 	memset(fcxp, 0, sizeof(struct bfa_fcxp_s) * mod->num_fcxps);
mod               422 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->fcxp_req_free_q);
mod               423 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->fcxp_rsp_free_q);
mod               424 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->fcxp_active_q);
mod               425 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->fcxp_req_unused_q);
mod               426 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->fcxp_rsp_unused_q);
mod               428 drivers/scsi/bfa/bfa_svc.c 	mod->fcxp_list = fcxp;
mod               430 drivers/scsi/bfa/bfa_svc.c 	for (i = 0; i < mod->num_fcxps; i++) {
mod               431 drivers/scsi/bfa/bfa_svc.c 		fcxp->fcxp_mod = mod;
mod               434 drivers/scsi/bfa/bfa_svc.c 		if (i < (mod->num_fcxps / 2)) {
mod               435 drivers/scsi/bfa/bfa_svc.c 			list_add_tail(&fcxp->qe, &mod->fcxp_req_free_q);
mod               438 drivers/scsi/bfa/bfa_svc.c 			list_add_tail(&fcxp->qe, &mod->fcxp_rsp_free_q);
mod               448 drivers/scsi/bfa/bfa_svc.c 	bfa_mem_kva_curp(mod) = (void *)fcxp;
mod               493 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa);
mod               495 drivers/scsi/bfa/bfa_svc.c 	mod->bfa = bfa;
mod               496 drivers/scsi/bfa/bfa_svc.c 	mod->num_fcxps = cfg->fwcfg.num_fcxp_reqs;
mod               501 drivers/scsi/bfa/bfa_svc.c 	mod->req_pld_sz = mod->rsp_pld_sz = BFA_FCXP_MAX_IBUF_SZ;
mod               503 drivers/scsi/bfa/bfa_svc.c 		mod->rsp_pld_sz = BFA_FCXP_MAX_LBUF_SZ;
mod               505 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->req_wait_q);
mod               506 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->rsp_wait_q);
mod               508 drivers/scsi/bfa/bfa_svc.c 	claim_fcxps_mem(mod);
mod               514 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa);
mod               519 drivers/scsi/bfa/bfa_svc.c 	list_splice_tail_init(&mod->fcxp_req_unused_q, &mod->fcxp_req_free_q);
mod               520 drivers/scsi/bfa/bfa_svc.c 	list_splice_tail_init(&mod->fcxp_rsp_unused_q, &mod->fcxp_rsp_free_q);
mod               522 drivers/scsi/bfa/bfa_svc.c 	list_for_each_safe(qe, qen, &mod->fcxp_active_q) {
mod               620 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s *mod = fcxp->fcxp_mod;
mod               624 drivers/scsi/bfa/bfa_svc.c 		bfa_q_deq(&mod->req_wait_q, &wqe);
mod               626 drivers/scsi/bfa/bfa_svc.c 		bfa_q_deq(&mod->rsp_wait_q, &wqe);
mod               629 drivers/scsi/bfa/bfa_svc.c 		bfa_trc(mod->bfa, fcxp->fcxp_tag);
mod               640 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(!bfa_q_is_on_q(&mod->fcxp_active_q, fcxp));
mod               644 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&fcxp->qe, &mod->fcxp_req_free_q);
mod               646 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&fcxp->qe, &mod->fcxp_rsp_free_q);
mod               674 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s	*mod = BFA_FCXP_MOD(bfa);
mod               691 drivers/scsi/bfa/bfa_svc.c 	fcxp = BFA_FCXP_FROM_TAG(mod, fcxp_tag);
mod               695 drivers/scsi/bfa/bfa_svc.c 	hal_fcxp_rx_plog(mod->bfa, fcxp, fcxp_rsp);
mod               698 drivers/scsi/bfa/bfa_svc.c 		bfa_trc(mod->bfa, (NULL == fcxp->caller));
mod               927 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s *mod = fcxp->fcxp_mod;
mod               931 drivers/scsi/bfa/bfa_svc.c 	reqbuf = bfa_mem_get_dmabuf_kva(mod, fcxp->fcxp_tag,
mod               932 drivers/scsi/bfa/bfa_svc.c 				mod->req_pld_sz + mod->rsp_pld_sz);
mod               939 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s *mod = fcxp->fcxp_mod;
mod               941 drivers/scsi/bfa/bfa_svc.c 	return mod->req_pld_sz;
mod               954 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s *mod = fcxp->fcxp_mod;
mod               959 drivers/scsi/bfa/bfa_svc.c 	fcxp_buf = bfa_mem_get_dmabuf_kva(mod, fcxp->fcxp_tag,
mod               960 drivers/scsi/bfa/bfa_svc.c 				mod->req_pld_sz + mod->rsp_pld_sz);
mod               963 drivers/scsi/bfa/bfa_svc.c 	return ((u8 *) fcxp_buf) + mod->req_pld_sz;
mod               976 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s *mod = fcxp->fcxp_mod;
mod               979 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(mod->bfa, fcxp->fcxp_tag);
mod              1070 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa);
mod              1073 drivers/scsi/bfa/bfa_svc.c 		WARN_ON(!list_empty(&mod->fcxp_req_free_q));
mod              1075 drivers/scsi/bfa/bfa_svc.c 		WARN_ON(!list_empty(&mod->fcxp_rsp_free_q));
mod              1089 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&wqe->qe, &mod->req_wait_q);
mod              1091 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&wqe->qe, &mod->rsp_wait_q);
mod              1097 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa);
mod              1099 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(!bfa_q_is_on_q(&mod->req_wait_q, wqe) ||
mod              1100 drivers/scsi/bfa/bfa_svc.c 		!bfa_q_is_on_q(&mod->rsp_wait_q, wqe));
mod              1138 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s *mod = BFA_FCXP_MOD(bfa);
mod              1140 drivers/scsi/bfa/bfa_svc.c 	return mod->rsp_pld_sz;
mod              1146 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcxp_mod_s	*mod = BFA_FCXP_MOD(bfa);
mod              1150 drivers/scsi/bfa/bfa_svc.c 	for (i = 0; i < (mod->num_fcxps - num_fcxp_fw); i++) {
mod              1151 drivers/scsi/bfa/bfa_svc.c 		if (i < ((mod->num_fcxps - num_fcxp_fw) / 2)) {
mod              1152 drivers/scsi/bfa/bfa_svc.c 			bfa_q_deq_tail(&mod->fcxp_req_free_q, &qe);
mod              1153 drivers/scsi/bfa/bfa_svc.c 			list_add_tail(qe, &mod->fcxp_req_unused_q);
mod              1155 drivers/scsi/bfa/bfa_svc.c 			bfa_q_deq_tail(&mod->fcxp_rsp_free_q, &qe);
mod              1156 drivers/scsi/bfa/bfa_svc.c 			list_add_tail(qe, &mod->fcxp_rsp_unused_q);
mod              1483 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(bfa);
mod              1487 drivers/scsi/bfa/bfa_svc.c 	mod->num_lps = BFA_LPS_MAX_LPORTS;
mod              1489 drivers/scsi/bfa/bfa_svc.c 		mod->num_lps = BFA_LPS_MIN_LPORTS;
mod              1491 drivers/scsi/bfa/bfa_svc.c 		mod->num_lps = BFA_LPS_MAX_LPORTS;
mod              1492 drivers/scsi/bfa/bfa_svc.c 	mod->lps_arr = lps = (struct bfa_lps_s *) bfa_mem_kva_curp(mod);
mod              1494 drivers/scsi/bfa/bfa_svc.c 	bfa_mem_kva_curp(mod) += mod->num_lps * sizeof(struct bfa_lps_s);
mod              1496 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->lps_free_q);
mod              1497 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->lps_active_q);
mod              1498 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->lps_login_q);
mod              1500 drivers/scsi/bfa/bfa_svc.c 	for (i = 0; i < mod->num_lps; i++, lps++) {
mod              1505 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&lps->qe, &mod->lps_free_q);
mod              1515 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(bfa);
mod              1519 drivers/scsi/bfa/bfa_svc.c 	list_for_each_safe(qe, qen, &mod->lps_active_q) {
mod              1523 drivers/scsi/bfa/bfa_svc.c 	list_for_each_safe(qe, qen, &mod->lps_login_q) {
mod              1527 drivers/scsi/bfa/bfa_svc.c 	list_splice_tail_init(&mod->lps_login_q, &mod->lps_active_q);
mod              1536 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(bfa);
mod              1539 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(rsp->bfa_tag >= mod->num_lps);
mod              1540 drivers/scsi/bfa/bfa_svc.c 	lps = BFA_LPS_FROM_TAG(mod, rsp->bfa_tag);
mod              1582 drivers/scsi/bfa/bfa_svc.c 	list_add_tail(&lps->qe, &mod->lps_active_q);
mod              1590 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(bfa);
mod              1604 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&lps->qe, &mod->lps_active_q);
mod              1617 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(bfa);
mod              1620 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(rsp->bfa_tag >= mod->num_lps);
mod              1621 drivers/scsi/bfa/bfa_svc.c 	lps = BFA_LPS_FROM_TAG(mod, rsp->bfa_tag);
mod              1632 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(bfa);
mod              1635 drivers/scsi/bfa/bfa_svc.c 	lps = BFA_LPS_FROM_TAG(mod, cvl->bfa_tag);
mod              1657 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(lps->bfa);
mod              1661 drivers/scsi/bfa/bfa_svc.c 	list_add_tail(&lps->qe, &mod->lps_free_q);
mod              1670 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(lps->bfa);
mod              1689 drivers/scsi/bfa/bfa_svc.c 	list_add_tail(&lps->qe, &mod->lps_login_q);
mod              1852 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(bfa);
mod              1855 drivers/scsi/bfa/bfa_svc.c 	bfa_q_deq(&mod->lps_free_q, &lps);
mod              1860 drivers/scsi/bfa/bfa_svc.c 	list_add_tail(&lps->qe, &mod->lps_active_q);
mod              1923 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s    *mod = BFA_LPS_MOD(bfa);
mod              1925 drivers/scsi/bfa/bfa_svc.c 	return BFA_LPS_FROM_TAG(mod, lp_tag)->fw_tag;
mod              1934 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(bfa);
mod              1938 drivers/scsi/bfa/bfa_svc.c 	for (i = 0, lps = mod->lps_arr; i < mod->num_lps; i++, lps++) {
mod              1954 drivers/scsi/bfa/bfa_svc.c 	struct bfa_lps_mod_s	*mod = BFA_LPS_MOD(bfa);
mod              1956 drivers/scsi/bfa/bfa_svc.c 	return BFA_LPS_FROM_TAG(mod, 0)->lp_pid;
mod              4816 drivers/scsi/bfa/bfa_svc.c 	struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(bfa);
mod              4820 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->rp_free_q);
mod              4821 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->rp_active_q);
mod              4822 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->rp_unused_q);
mod              4824 drivers/scsi/bfa/bfa_svc.c 	rp = (struct bfa_rport_s *) bfa_mem_kva_curp(mod);
mod              4825 drivers/scsi/bfa/bfa_svc.c 	mod->rps_list = rp;
mod              4826 drivers/scsi/bfa/bfa_svc.c 	mod->num_rports = cfg->fwcfg.num_rports;
mod              4828 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(!mod->num_rports ||
mod              4829 drivers/scsi/bfa/bfa_svc.c 		   (mod->num_rports & (mod->num_rports - 1)));
mod              4831 drivers/scsi/bfa/bfa_svc.c 	for (i = 0; i < mod->num_rports; i++, rp++) {
mod              4841 drivers/scsi/bfa/bfa_svc.c 			list_add_tail(&rp->qe, &mod->rp_free_q);
mod              4849 drivers/scsi/bfa/bfa_svc.c 	bfa_mem_kva_curp(mod) = (u8 *) rp;
mod              4855 drivers/scsi/bfa/bfa_svc.c 	struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(bfa);
mod              4860 drivers/scsi/bfa/bfa_svc.c 	list_splice_tail_init(&mod->rp_unused_q, &mod->rp_free_q);
mod              4862 drivers/scsi/bfa/bfa_svc.c 	list_for_each_safe(qe, qen, &mod->rp_active_q) {
mod              4869 drivers/scsi/bfa/bfa_svc.c bfa_rport_alloc(struct bfa_rport_mod_s *mod)
mod              4873 drivers/scsi/bfa/bfa_svc.c 	bfa_q_deq(&mod->rp_free_q, &rport);
mod              4875 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&rport->qe, &mod->rp_active_q);
mod              4883 drivers/scsi/bfa/bfa_svc.c 	struct bfa_rport_mod_s *mod = BFA_RPORT_MOD(rport->bfa);
mod              4885 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(!bfa_q_is_on_q(&mod->rp_active_q, rport));
mod              4887 drivers/scsi/bfa/bfa_svc.c 	list_add_tail(&rport->qe, &mod->rp_free_q);
mod              5040 drivers/scsi/bfa/bfa_svc.c 	struct bfa_rport_mod_s	*mod = BFA_RPORT_MOD(bfa);
mod              5044 drivers/scsi/bfa/bfa_svc.c 	for (i = 0; i < (mod->num_rports - num_rport_fw); i++) {
mod              5045 drivers/scsi/bfa/bfa_svc.c 		bfa_q_deq_tail(&mod->rp_free_q, &qe);
mod              5046 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(qe, &mod->rp_unused_q);
mod              5182 drivers/scsi/bfa/bfa_svc.c 	struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa);
mod              5195 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->sgpg_q);
mod              5196 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&mod->sgpg_wait_q);
mod              5200 drivers/scsi/bfa/bfa_svc.c 	mod->free_sgpgs = mod->num_sgpgs = cfg->drvcfg.num_sgpgs;
mod              5206 drivers/scsi/bfa/bfa_svc.c 	hsgpg = (struct bfa_sgpg_s *) bfa_mem_kva_curp(mod);
mod              5208 drivers/scsi/bfa/bfa_svc.c 	bfa_mem_dma_seg_iter(mod, seg_ptr, nsegs, idx) {
mod              5230 drivers/scsi/bfa/bfa_svc.c 			list_add_tail(&hsgpg->qe, &mod->sgpg_q);
mod              5238 drivers/scsi/bfa/bfa_svc.c 	bfa_mem_kva_curp(mod) = (u8 *) hsgpg;
mod              5244 drivers/scsi/bfa/bfa_svc.c 	struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa);
mod              5248 drivers/scsi/bfa/bfa_svc.c 	if (mod->free_sgpgs < nsgpgs)
mod              5252 drivers/scsi/bfa/bfa_svc.c 		bfa_q_deq(&mod->sgpg_q, &hsgpg);
mod              5257 drivers/scsi/bfa/bfa_svc.c 	mod->free_sgpgs -= nsgpgs;
mod              5264 drivers/scsi/bfa/bfa_svc.c 	struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa);
mod              5267 drivers/scsi/bfa/bfa_svc.c 	mod->free_sgpgs += nsgpg;
mod              5268 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(mod->free_sgpgs > mod->num_sgpgs);
mod              5270 drivers/scsi/bfa/bfa_svc.c 	list_splice_tail_init(sgpg_q, &mod->sgpg_q);
mod              5272 drivers/scsi/bfa/bfa_svc.c 	if (list_empty(&mod->sgpg_wait_q))
mod              5279 drivers/scsi/bfa/bfa_svc.c 		wqe = bfa_q_first(&mod->sgpg_wait_q);
mod              5280 drivers/scsi/bfa/bfa_svc.c 		if (mod->free_sgpgs < wqe->nsgpg)
mod              5281 drivers/scsi/bfa/bfa_svc.c 			nsgpg = mod->free_sgpgs;
mod              5290 drivers/scsi/bfa/bfa_svc.c 	} while (mod->free_sgpgs && !list_empty(&mod->sgpg_wait_q));
mod              5296 drivers/scsi/bfa/bfa_svc.c 	struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa);
mod              5299 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(nsgpg <= mod->free_sgpgs);
mod              5306 drivers/scsi/bfa/bfa_svc.c 	if (mod->free_sgpgs) {
mod              5310 drivers/scsi/bfa/bfa_svc.c 		WARN_ON(!list_empty(&mod->sgpg_wait_q));
mod              5311 drivers/scsi/bfa/bfa_svc.c 		list_splice_tail_init(&mod->sgpg_q, &wqe->sgpg_q);
mod              5312 drivers/scsi/bfa/bfa_svc.c 		wqe->nsgpg -= mod->free_sgpgs;
mod              5313 drivers/scsi/bfa/bfa_svc.c 		mod->free_sgpgs = 0;
mod              5316 drivers/scsi/bfa/bfa_svc.c 	list_add_tail(&wqe->qe, &mod->sgpg_wait_q);
mod              5322 drivers/scsi/bfa/bfa_svc.c 	struct bfa_sgpg_mod_s *mod = BFA_SGPG_MOD(bfa);
mod              5324 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(!bfa_q_is_on_q(&mod->sgpg_wait_q, wqe));
mod              5631 drivers/scsi/bfa/bfa_svc.c 	struct bfa_uf_mod_s	*mod = BFA_UF_MOD(bfa);
mod              5635 drivers/scsi/bfa/bfa_svc.c 	for (i = 0; i < (mod->num_ufs - num_uf_fw); i++) {
mod              5636 drivers/scsi/bfa/bfa_svc.c 		bfa_q_deq_tail(&mod->uf_free_q, &qe);
mod              5637 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(qe, &mod->uf_unused_q);
mod              1112 drivers/scsi/scsi_scan.c 				unsigned char mod[17];
mod              1118 drivers/scsi/scsi_scan.c 					scsi_inq_str(mod, result, 16, 32));
mod               169 drivers/soc/fsl/qe/qe.c 	unsigned int mod;
mod               185 drivers/soc/fsl/qe/qe.c 	mod = brg_clk % CLK_GRAN;
mod               186 drivers/soc/fsl/qe/qe.c 	if (mod) {
mod               187 drivers/soc/fsl/qe/qe.c 		if (mod < CLK_GRAN_LIMIT)
mod               188 drivers/soc/fsl/qe/qe.c 			brg_clk -= mod;
mod               189 drivers/soc/fsl/qe/qe.c 		else if (mod > (CLK_GRAN - CLK_GRAN_LIMIT))
mod               190 drivers/soc/fsl/qe/qe.c 			brg_clk += CLK_GRAN - mod;
mod               299 drivers/soc/xilinx/xlnx_vcu.c 	u32 cfg_val, mod, ctrl;
mod               351 drivers/soc/xilinx/xlnx_vcu.c 			mod = pll_clk % coreclk;
mod               352 drivers/soc/xilinx/xlnx_vcu.c 			if (mod < LIMIT) {
mod               354 drivers/soc/xilinx/xlnx_vcu.c 			} else if (coreclk - mod < LIMIT) {
mod               364 drivers/soc/xilinx/xlnx_vcu.c 				mod = pll_clk % mcuclk;
mod               365 drivers/soc/xilinx/xlnx_vcu.c 				if (mcuclk - mod < LIMIT)
mod              1189 drivers/staging/most/core.c 	if (!try_module_get(iface->mod)) {
mod              1233 drivers/staging/most/core.c 	module_put(iface->mod);
mod              1266 drivers/staging/most/core.c 	if (iface->mod)
mod              1267 drivers/staging/most/core.c 		module_put(iface->mod);
mod               234 drivers/staging/most/core.h 	struct module *mod;
mod              1062 drivers/staging/most/usb/usb.c 	mdev->iface.mod = hdm_usb_fops.owner;
mod              1020 drivers/staging/rts5208/rtsx_card.c 		u8 mod;
mod              1023 drivers/staging/rts5208/rtsx_card.c 			mod = SD_MOD_SEL;
mod              1025 drivers/staging/rts5208/rtsx_card.c 			mod = MS_MOD_SEL;
mod              1027 drivers/staging/rts5208/rtsx_card.c 			mod = XD_MOD_SEL;
mod              1029 drivers/staging/rts5208/rtsx_card.c 			mod = SPI_MOD_SEL;
mod              1033 drivers/staging/rts5208/rtsx_card.c 		retval = rtsx_write_register(chip, CARD_SELECT, 0x07, mod);
mod               104 drivers/staging/uwb/include/umc.h 				       struct module *mod,
mod                24 drivers/usb/gadget/functions.c 		if (!try_module_get(fd->mod)) {
mod                30 drivers/usb/gadget/functions.c 			module_put(fd->mod);
mod                71 drivers/usb/gadget/functions.c 	struct module *mod;
mod                76 drivers/usb/gadget/functions.c 	mod = fi->fd->mod;
mod                78 drivers/usb/gadget/functions.c 	module_put(mod);
mod              1489 drivers/usb/host/ehci-sched.c 	unsigned		mod = ehci->periodic_size << 3;
mod              1561 drivers/usb/host/ehci-sched.c 	now = ehci_read_frame_index(ehci) & (mod - 1);
mod              1578 drivers/usb/host/ehci-sched.c 	next = (next - base) & (mod - 1);
mod              1579 drivers/usb/host/ehci-sched.c 	start = (stream->next_uframe - base) & (mod - 1);
mod              1590 drivers/usb/host/ehci-sched.c 	now2 = (now - base) & (mod - 1);
mod              1595 drivers/usb/host/ehci-sched.c 				urb, stream->next_uframe, base, period, mod);
mod              1616 drivers/usb/host/ehci-sched.c 		wrap = mod;
mod              1617 drivers/usb/host/ehci-sched.c 		now2 += mod;
mod              1649 drivers/usb/host/ehci-sched.c 	if (unlikely(start + span - period >= mod + wrap)) {
mod              1651 drivers/usb/host/ehci-sched.c 				urb, start, span - period, mod + wrap);
mod              1657 drivers/usb/host/ehci-sched.c 	stream->next_uframe = (start + skip) & (mod - 1);
mod              1660 drivers/usb/host/ehci-sched.c 	urb->start_frame = start & (mod - 1);
mod              1753 drivers/usb/host/ehci-sched.c 	unsigned		mod,
mod              1762 drivers/usb/host/ehci-sched.c 	next_uframe = stream->next_uframe & (mod - 1);
mod              1798 drivers/usb/host/ehci-sched.c 		next_uframe &= mod - 1;
mod              2154 drivers/usb/host/ehci-sched.c 	unsigned		mod,
mod              2199 drivers/usb/host/ehci-sched.c 	stream->next_uframe = next_uframe & (mod - 1);
mod              4137 drivers/usb/host/fotg210-hcd.c static inline int itd_slot_ok(struct fotg210_hcd *fotg210, u32 mod, u32 uframe,
mod              4149 drivers/usb/host/fotg210-hcd.c 	} while (uframe < mod);
mod              4170 drivers/usb/host/fotg210-hcd.c 	unsigned mod = fotg210->periodic_size << 3;
mod              4176 drivers/usb/host/fotg210-hcd.c 	if (span > mod - SCHEDULE_SLOP) {
mod              4182 drivers/usb/host/fotg210-hcd.c 	now = fotg210_read_frame_index(fotg210) & (mod - 1);
mod              4206 drivers/usb/host/fotg210-hcd.c 		excess = (stream->next_uframe - period - next) & (mod - 1);
mod              4207 drivers/usb/host/fotg210-hcd.c 		if (excess >= mod - 2 * SCHEDULE_SLOP)
mod              4208 drivers/usb/host/fotg210-hcd.c 			start = next + excess - mod + period *
mod              4209 drivers/usb/host/fotg210-hcd.c 					DIV_ROUND_UP(mod - excess, period);
mod              4212 drivers/usb/host/fotg210-hcd.c 		if (start - now >= mod) {
mod              4215 drivers/usb/host/fotg210-hcd.c 					mod);
mod              4244 drivers/usb/host/fotg210-hcd.c 			if (itd_slot_ok(fotg210, mod, start,
mod              4252 drivers/usb/host/fotg210-hcd.c 					urb, now, now + mod);
mod              4260 drivers/usb/host/fotg210-hcd.c 			mod - 2 * SCHEDULE_SLOP)) {
mod              4263 drivers/usb/host/fotg210-hcd.c 				mod - 2 * SCHEDULE_SLOP);
mod              4268 drivers/usb/host/fotg210-hcd.c 	stream->next_uframe = start & (mod - 1);
mod              4356 drivers/usb/host/fotg210-hcd.c 		unsigned mod, struct fotg210_iso_stream *stream)
mod              4363 drivers/usb/host/fotg210-hcd.c 	next_uframe = stream->next_uframe & (mod - 1);
mod              4397 drivers/usb/host/fotg210-hcd.c 		next_uframe &= mod - 1;
mod              2675 drivers/usb/host/oxu210hp-hcd.c 	unsigned frame, clock, now_uframe, mod;
mod              2678 drivers/usb/host/oxu210hp-hcd.c 	mod = oxu->periodic_size << 3;
mod              2689 drivers/usb/host/oxu210hp-hcd.c 		clock = now_uframe + mod - 1;
mod              2690 drivers/usb/host/oxu210hp-hcd.c 	clock %= mod;
mod              2753 drivers/usb/host/oxu210hp-hcd.c 			now = readl(&oxu->regs->frame_index) % mod;
mod              2761 drivers/usb/host/oxu210hp-hcd.c 			now_uframe %= mod;
mod               443 drivers/usb/renesas_usbhs/common.c 	struct usbhs_mod *mod = usbhs_mod_get_current(priv);
mod               459 drivers/usb/renesas_usbhs/common.c 	if (enable && !mod) {
mod               487 drivers/usb/renesas_usbhs/common.c 	} else if (!enable && mod) {
mod               799 drivers/usb/renesas_usbhs/common.c 	struct usbhs_mod *mod = usbhs_mod_get_current(priv);
mod               801 drivers/usb/renesas_usbhs/common.c 	if (mod) {
mod               806 drivers/usb/renesas_usbhs/common.c 	if (mod || !usbhs_get_dparam(priv, runtime_pwctrl))
mod               211 drivers/usb/renesas_usbhs/fifo.c 		struct usbhs_mod *mod = usbhs_mod_get_current(priv);	\
mod               213 drivers/usb/renesas_usbhs/fifo.c 		if (!mod)						\
mod               216 drivers/usb/renesas_usbhs/fifo.c 			mod->status |= status;				\
mod               218 drivers/usb/renesas_usbhs/fifo.c 			mod->status &= ~status;				\
mod               219 drivers/usb/renesas_usbhs/fifo.c 		usbhs_irq_callback_update(priv, mod);			\
mod              1402 drivers/usb/renesas_usbhs/fifo.c 	struct usbhs_mod *mod = usbhs_mod_get_current(priv);
mod              1407 drivers/usb/renesas_usbhs/fifo.c 	mod->irq_empty		= usbhsf_irq_empty;
mod              1408 drivers/usb/renesas_usbhs/fifo.c 	mod->irq_ready		= usbhsf_irq_ready;
mod              1409 drivers/usb/renesas_usbhs/fifo.c 	mod->irq_bempsts	= 0;
mod              1410 drivers/usb/renesas_usbhs/fifo.c 	mod->irq_brdysts	= 0;
mod              1419 drivers/usb/renesas_usbhs/fifo.c 	struct usbhs_mod *mod = usbhs_mod_get_current(priv);
mod              1421 drivers/usb/renesas_usbhs/fifo.c 	mod->irq_empty		= NULL;
mod              1422 drivers/usb/renesas_usbhs/fifo.c 	mod->irq_ready		= NULL;
mod              1423 drivers/usb/renesas_usbhs/fifo.c 	mod->irq_bempsts	= 0;
mod              1424 drivers/usb/renesas_usbhs/fifo.c 	mod->irq_brdysts	= 0;
mod                65 drivers/usb/renesas_usbhs/mod.c void usbhs_mod_register(struct usbhs_priv *priv, struct usbhs_mod *mod, int id)
mod                69 drivers/usb/renesas_usbhs/mod.c 	info->mod[id]	= mod;
mod                70 drivers/usb/renesas_usbhs/mod.c 	mod->priv	= priv;
mod                81 drivers/usb/renesas_usbhs/mod.c 		ret = info->mod[id];
mod                90 drivers/usb/renesas_usbhs/mod.c 	struct usbhs_mod *mod = usbhs_mod_get_current(priv);
mod                93 drivers/usb/renesas_usbhs/mod.c 	if (!mod)
mod                96 drivers/usb/renesas_usbhs/mod.c 	return info->mod[USBHS_HOST] == mod;
mod               109 drivers/usb/renesas_usbhs/mod.c 	struct usbhs_mod *mod = NULL;
mod               116 drivers/usb/renesas_usbhs/mod.c 		mod = info->mod[id];
mod               121 drivers/usb/renesas_usbhs/mod.c 	info->curt = mod;
mod               204 drivers/usb/renesas_usbhs/mod.c 	struct usbhs_mod *mod = usbhs_mod_get_current(priv);
mod               221 drivers/usb/renesas_usbhs/mod.c 	if (mod) {
mod               226 drivers/usb/renesas_usbhs/mod.c 		state->bempsts &= mod->irq_bempsts;
mod               227 drivers/usb/renesas_usbhs/mod.c 		state->brdysts &= mod->irq_brdysts;
mod               325 drivers/usb/renesas_usbhs/mod.c void usbhs_irq_callback_update(struct usbhs_priv *priv, struct usbhs_mod *mod)
mod               358 drivers/usb/renesas_usbhs/mod.c 	if (mod) {
mod               362 drivers/usb/renesas_usbhs/mod.c 		if (mod->irq_ctrl_stage)
mod               365 drivers/usb/renesas_usbhs/mod.c 		if (mod->irq_empty && mod->irq_bempsts) {
mod               366 drivers/usb/renesas_usbhs/mod.c 			usbhs_write(priv, BEMPENB, mod->irq_bempsts);
mod               370 drivers/usb/renesas_usbhs/mod.c 		if (mod->irq_ready && mod->irq_brdysts) {
mod               371 drivers/usb/renesas_usbhs/mod.c 			usbhs_write(priv, BRDYENB, mod->irq_brdysts);
mod               379 drivers/usb/renesas_usbhs/mod.c 			if (mod->irq_attch)
mod               382 drivers/usb/renesas_usbhs/mod.c 			if (mod->irq_dtch)
mod               385 drivers/usb/renesas_usbhs/mod.c 			if (mod->irq_sign)
mod               388 drivers/usb/renesas_usbhs/mod.c 			if (mod->irq_sack)
mod                82 drivers/usb/renesas_usbhs/mod.h 	struct usbhs_mod *mod[USBHS_MAX];
mod               127 drivers/usb/renesas_usbhs/mod.h void usbhs_irq_callback_update(struct usbhs_priv *priv, struct usbhs_mod *mod);
mod               132 drivers/usb/renesas_usbhs/mod.h 		struct usbhs_mod *mod;			\
mod               133 drivers/usb/renesas_usbhs/mod.h 		mod = usbhs_mod_get_current(priv);	\
mod               134 drivers/usb/renesas_usbhs/mod.h 		!mod		? -ENODEV :		\
mod               135 drivers/usb/renesas_usbhs/mod.h 		!mod->func	? 0 :			\
mod               136 drivers/usb/renesas_usbhs/mod.h 		 mod->func(param);			\
mod                41 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_mod	 mod;
mod                74 drivers/usb/renesas_usbhs/mod_gadget.c 		struct usbhsg_gpriv, mod)
mod                94 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_gpriv_to_dev(gp)		usbhs_priv_to_dev((gp)->mod.priv)
mod                95 drivers/usb/renesas_usbhs/mod_gadget.c #define usbhsg_gpriv_to_priv(gp)	((gp)->mod.priv)
mod               818 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_mod *mod = usbhs_mod_get_current(priv);
mod               866 drivers/usb/renesas_usbhs/mod_gadget.c 	mod->irq_dev_state	= usbhsg_irq_dev_state;
mod               867 drivers/usb/renesas_usbhs/mod_gadget.c 	mod->irq_ctrl_stage	= usbhsg_irq_ctrl_stage;
mod               868 drivers/usb/renesas_usbhs/mod_gadget.c 	usbhs_irq_callback_update(priv, mod);
mod               876 drivers/usb/renesas_usbhs/mod_gadget.c 	struct usbhs_mod *mod = usbhs_mod_get_current(priv);
mod               902 drivers/usb/renesas_usbhs/mod_gadget.c 	mod->irq_dev_state	= NULL;
mod               903 drivers/usb/renesas_usbhs/mod_gadget.c 	mod->irq_ctrl_stage	= NULL;
mod               904 drivers/usb/renesas_usbhs/mod_gadget.c 	usbhs_irq_callback_update(priv, mod);
mod              1112 drivers/usb/renesas_usbhs/mod_gadget.c 	usbhs_mod_register(priv, &gpriv->mod, USBHS_GADGET);
mod              1115 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->mod.name		= "gadget";
mod              1116 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->mod.start	= usbhsg_start;
mod              1117 drivers/usb/renesas_usbhs/mod_gadget.c 	gpriv->mod.stop		= usbhsg_stop;
mod                85 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_mod	mod;
mod               102 drivers/usb/renesas_usbhs/mod_host.c 	container_of(usbhs_mod_get(priv, USBHS_HOST), struct usbhsh_hpriv, mod)
mod               118 drivers/usb/renesas_usbhs/mod_host.c #define usbhsh_hpriv_to_priv(h)	((h)->mod.priv)
mod               193 drivers/usb/renesas_usbhs/mod_host.c 	return (hpriv->mod.irq_attch == NULL);
mod              1332 drivers/usb/renesas_usbhs/mod_host.c 	hpriv->mod.irq_attch = NULL;
mod              1333 drivers/usb/renesas_usbhs/mod_host.c 	usbhs_irq_callback_update(priv, &hpriv->mod);
mod              1358 drivers/usb/renesas_usbhs/mod_host.c 	hpriv->mod.irq_attch = usbhsh_irq_attch;
mod              1359 drivers/usb/renesas_usbhs/mod_host.c 	usbhs_irq_callback_update(priv, &hpriv->mod);
mod              1452 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_mod *mod = usbhs_mod_get_current(priv);
mod              1481 drivers/usb/renesas_usbhs/mod_host.c 	mod->irq_attch		= usbhsh_irq_attch;
mod              1482 drivers/usb/renesas_usbhs/mod_host.c 	mod->irq_dtch		= usbhsh_irq_dtch;
mod              1483 drivers/usb/renesas_usbhs/mod_host.c 	mod->irq_sack		= usbhsh_irq_setup_ack;
mod              1484 drivers/usb/renesas_usbhs/mod_host.c 	mod->irq_sign		= usbhsh_irq_setup_err;
mod              1485 drivers/usb/renesas_usbhs/mod_host.c 	usbhs_irq_callback_update(priv, mod);
mod              1496 drivers/usb/renesas_usbhs/mod_host.c 	struct usbhs_mod *mod = usbhs_mod_get_current(priv);
mod              1502 drivers/usb/renesas_usbhs/mod_host.c 	mod->irq_attch	= NULL;
mod              1503 drivers/usb/renesas_usbhs/mod_host.c 	mod->irq_dtch	= NULL;
mod              1504 drivers/usb/renesas_usbhs/mod_host.c 	mod->irq_sack	= NULL;
mod              1505 drivers/usb/renesas_usbhs/mod_host.c 	mod->irq_sign	= NULL;
mod              1506 drivers/usb/renesas_usbhs/mod_host.c 	usbhs_irq_callback_update(priv, mod);
mod              1547 drivers/usb/renesas_usbhs/mod_host.c 	usbhs_mod_register(priv, &hpriv->mod, USBHS_HOST);
mod              1550 drivers/usb/renesas_usbhs/mod_host.c 	hpriv->mod.name		= "host";
mod              1551 drivers/usb/renesas_usbhs/mod_host.c 	hpriv->mod.start	= usbhsh_start;
mod              1552 drivers/usb/renesas_usbhs/mod_host.c 	hpriv->mod.stop		= usbhsh_stop;
mod              1596 drivers/video/fbdev/amifb.c 	short clk_shift, vshift, fstrt, fsize, fstop, fconst,  shift, move, mod;
mod              1614 drivers/video/fbdev/amifb.c 		mod = fstrt = downx(fconst, fstrt) - fconst;
mod              1622 drivers/video/fbdev/amifb.c 		move = move - div8((mod - fstrt)>>clk_shift);
mod              1624 drivers/video/fbdev/amifb.c 	mod = par->next_line - div8(fsize>>clk_shift);
mod              1628 drivers/video/fbdev/amifb.c 	par->bpl2mod = mod;
mod               110 drivers/video/fbdev/cg14.c 	u8 mod;	/* Monitor Operation Data Reg */
mod               116 drivers/video/fbdev/core/bitblit.c 	u32 shift_low = 0, mod = vc->vc_font.width % 8;
mod               132 drivers/video/fbdev/core/bitblit.c 					shift_low, mod);
mod               133 drivers/video/fbdev/core/bitblit.c 		shift_low += mod;
mod               153 drivers/video/fbdev/core/bitblit.c 	u32 mod = vc->vc_font.width % 8, cnt, pitch, size;
mod               184 drivers/video/fbdev/core/bitblit.c 		if (!mod)
mod                30 drivers/video/fbdev/core/fbcon_ccw.c 	int mod = vc->vc_font.height % 8;
mod                33 drivers/video/fbdev/core/fbcon_ccw.c 	if (mod)
mod                34 drivers/video/fbdev/core/fbcon_ccw.c 		msk <<= (8 - mod);
mod                36 drivers/video/fbdev/core/fbcon_ccw.c 	if (offset > mod)
mod               125 drivers/video/fbdev/core/fbcon_ud.c 	u32 shift_low = 0, mod = vc->vc_font.width % 8;
mod               140 drivers/video/fbdev/core/fbcon_ud.c 					shift_low, mod);
mod               141 drivers/video/fbdev/core/fbcon_ud.c 		shift_low += mod;
mod               162 drivers/video/fbdev/core/fbcon_ud.c 	u32 mod = vc->vc_font.width % 8, cnt, pitch, size;
mod               200 drivers/video/fbdev/core/fbcon_ud.c 		if (!mod)
mod               120 drivers/video/fbdev/core/fbmem.c 				u32 shift_high, u32 shift_low, u32 mod)
mod               139 drivers/video/fbdev/core/fbmem.c 		if (shift_high < mod) {
mod               709 drivers/video/fbdev/i810/i810_main.c 	u32 m_target, n_target, p_target, n_best, m_best, mod;
mod               732 drivers/video/fbdev/i810/i810_main.c 		mod = (p_divisor * n_reg * 1000000) % (4 * 24 * m_reg);
mod               749 drivers/video/fbdev/i810/i810_main.c 		if (!diff && mod_min > mod) {
mod               750 drivers/video/fbdev/i810/i810_main.c 			mod_min = mod;
mod               802 drivers/video/fbdev/i810/i810_main.c 	int mod = width % 8, t_mask, d_mask;
mod               804 drivers/video/fbdev/i810/i810_main.c 	t_mask = 0xff >> mod;
mod               805 drivers/video/fbdev/i810/i810_main.c 	d_mask = ~(0xff >> mod); 
mod               811 drivers/video/fbdev/i810/i810_main.c 		if (mod) {
mod              1960 drivers/video/fbdev/intelfb/intelfbhw.c 	int mod = width % 8, t_mask, d_mask;
mod              1969 drivers/video/fbdev/intelfb/intelfbhw.c 	t_mask = 0xff >> mod;
mod              1970 drivers/video/fbdev/intelfb/intelfbhw.c 	d_mask = ~(0xff >> mod);
mod              1976 drivers/video/fbdev/intelfb/intelfbhw.c 		if (mod) {
mod                44 drivers/video/fbdev/omap2/omapfb/dss/dsi.c #define DSI_REG(mod, idx)		((const struct dsi_reg) { mod, idx })
mod               261 fs/btrfs/btrfs_inode.h 						 int mod)
mod               264 fs/btrfs/btrfs_inode.h 	inode->outstanding_extents += mod;
mod               268 fs/btrfs/btrfs_inode.h 						  mod);
mod              2716 fs/btrfs/ctree.h 					     int mod);
mod              2722 fs/btrfs/ctree.h 			    int mod);
mod              2740 fs/btrfs/ctree.h 					  int mod);
mod              2767 fs/btrfs/ctree.h 		       struct btrfs_key *location, int mod);
mod              2800 fs/btrfs/ctree.h 			     u64 bytenr, int mod);
mod               171 fs/btrfs/delayed-inode.c 				     int mod)
mod               177 fs/btrfs/delayed-inode.c 		else if (mod)
mod               253 fs/btrfs/delayed-inode.c 				int mod)
mod               264 fs/btrfs/delayed-inode.c 		btrfs_queue_delayed_node(delayed_root, delayed_node, mod);
mod              1022 fs/btrfs/delayed-inode.c 	int mod;
mod              1030 fs/btrfs/delayed-inode.c 		mod = -1;
mod              1032 fs/btrfs/delayed-inode.c 		mod = 1;
mod              1035 fs/btrfs/delayed-inode.c 	ret = btrfs_lookup_inode(trans, root, path, &key, mod);
mod               441 fs/btrfs/delayed-ref.c 		int mod;
mod               451 fs/btrfs/delayed-ref.c 			mod = next->ref_mod;
mod               457 fs/btrfs/delayed-ref.c 			mod = -next->ref_mod;
mod               461 fs/btrfs/delayed-ref.c 		ref->ref_mod += mod;
mod               601 fs/btrfs/delayed-ref.c 	int mod;
mod               612 fs/btrfs/delayed-ref.c 		mod = ref->ref_mod;
mod               617 fs/btrfs/delayed-ref.c 			mod = -exist->ref_mod;
mod               629 fs/btrfs/delayed-ref.c 			mod = -ref->ref_mod;
mod               631 fs/btrfs/delayed-ref.c 	exist->ref_mod += mod;
mod               183 fs/btrfs/dir-item.c 					     int mod)
mod               187 fs/btrfs/dir-item.c 	int ins_len = mod < 0 ? -1 : 0;
mod               188 fs/btrfs/dir-item.c 	int cow = mod != 0;
mod               276 fs/btrfs/dir-item.c 			    int mod)
mod               280 fs/btrfs/dir-item.c 	int ins_len = mod < 0 ? -1 : 0;
mod               281 fs/btrfs/dir-item.c 	int cow = mod != 0;
mod               347 fs/btrfs/dir-item.c 					  int mod)
mod               351 fs/btrfs/dir-item.c 	int ins_len = mod < 0 ? -1 : 0;
mod               352 fs/btrfs/dir-item.c 	int cow = mod != 0;
mod               137 fs/btrfs/file-item.c 			     u64 offset, int mod)
mod               141 fs/btrfs/file-item.c 	int ins_len = mod < 0 ? -1 : 0;
mod               142 fs/btrfs/file-item.c 	int cow = mod != 0;
mod               405 fs/btrfs/inode-item.c 		       struct btrfs_key *location, int mod)
mod               407 fs/btrfs/inode-item.c 	int ins_len = mod < 0 ? -1 : 0;
mod               408 fs/btrfs/inode-item.c 	int cow = mod != 0;
mod              1612 fs/btrfs/ioctl.c 	int mod = 0;
mod              1670 fs/btrfs/ioctl.c 			mod = -1;
mod              1673 fs/btrfs/ioctl.c 			mod = 1;
mod              1690 fs/btrfs/ioctl.c 	if (mod < 0) {
mod              1696 fs/btrfs/ioctl.c 	} else if (mod > 0) {
mod               115 fs/btrfs/qgroup.c 					   int mod)
mod               119 fs/btrfs/qgroup.c 	qg->old_refcnt += mod;
mod               123 fs/btrfs/qgroup.c 					   int mod)
mod               127 fs/btrfs/qgroup.c 	qg->new_refcnt += mod;
mod               872 fs/coredump.c  	unsigned mod = cprm->pos & (align - 1);
mod               875 fs/coredump.c  	return mod ? dump_skip(cprm, align - mod) : 1;
mod                78 fs/hfsplus/btree.c 	u32 mod = max(node_size, block_size);
mod               119 fs/hfsplus/btree.c 	clump_size /= mod;
mod               120 fs/hfsplus/btree.c 	clump_size *= mod;
mod               127 fs/hfsplus/btree.c 		clump_size = mod;
mod               930 fs/hugetlbfs/inode.c 	char mod;
mod               944 fs/hugetlbfs/inode.c 	mod = 'K';
mod               947 fs/hugetlbfs/inode.c 		mod = 'M';
mod               949 fs/hugetlbfs/inode.c 	seq_printf(m, ",pagesize=%lu%c", hpage_size, mod);
mod                12 fs/omfs/dir.c  static int omfs_hash(const char *name, int namelen, int mod)
mod                17 fs/omfs/dir.c  	return hash % mod;
mod               378 fs/xfs/libxfs/xfs_alloc.c 	ASSERT(args->mod < args->prod);
mod               382 fs/xfs/libxfs/xfs_alloc.c 	if (args->prod <= 1 || rlen < args->mod || rlen == args->maxlen ||
mod               383 fs/xfs/libxfs/xfs_alloc.c 	    (args->mod == 0 && rlen < args->prod))
mod               386 fs/xfs/libxfs/xfs_alloc.c 	if (k == args->mod)
mod               388 fs/xfs/libxfs/xfs_alloc.c 	if (k > args->mod)
mod               389 fs/xfs/libxfs/xfs_alloc.c 		rlen = rlen - (k - args->mod);
mod               391 fs/xfs/libxfs/xfs_alloc.c 		rlen = rlen - args->prod + (args->mod - k);
mod               396 fs/xfs/libxfs/xfs_alloc.c 	ASSERT(rlen % args->prod == args->mod);
mod               816 fs/xfs/libxfs/xfs_alloc.c 	ASSERT(args->mod < args->prod);
mod              2807 fs/xfs/libxfs/xfs_alloc.c 	ASSERT(args->mod < args->prod);
mod              2811 fs/xfs/libxfs/xfs_alloc.c 	    args->mod >= args->prod) {
mod                63 fs/xfs/libxfs/xfs_alloc.h 	xfs_extlen_t	mod;		/* mod value for extent size */
mod              3490 fs/xfs/libxfs/xfs_bmap.c 		div_u64_rem(ap->offset, args.prod, &args.mod);
mod              3491 fs/xfs/libxfs/xfs_bmap.c 		if (args.mod)
mod              3492 fs/xfs/libxfs/xfs_bmap.c 			args.mod = args.prod - args.mod;
mod              3495 fs/xfs/libxfs/xfs_bmap.c 		args.mod = 0;
mod              3498 fs/xfs/libxfs/xfs_bmap.c 		div_u64_rem(ap->offset, args.prod, &args.mod);
mod              3499 fs/xfs/libxfs/xfs_bmap.c 		if (args.mod)
mod              3500 fs/xfs/libxfs/xfs_bmap.c 			args.mod = args.prod - args.mod;
mod              4990 fs/xfs/libxfs/xfs_bmap.c 		xfs_extlen_t	mod;
mod              4993 fs/xfs/libxfs/xfs_bmap.c 				  &mod);
mod              4994 fs/xfs/libxfs/xfs_bmap.c 		ASSERT(mod == 0);
mod              4996 fs/xfs/libxfs/xfs_bmap.c 				  &mod);
mod              4997 fs/xfs/libxfs/xfs_bmap.c 		ASSERT(mod == 0);
mod              5194 fs/xfs/libxfs/xfs_bmap.c 	xfs_extlen_t		mod;		/* rt extent offset */
mod              5330 fs/xfs/libxfs/xfs_bmap.c 		div_u64_rem(sum, mp->m_sb.sb_rextsize, &mod);
mod              5331 fs/xfs/libxfs/xfs_bmap.c 		if (mod) {
mod              5344 fs/xfs/libxfs/xfs_bmap.c 				ASSERT(end >= mod);
mod              5345 fs/xfs/libxfs/xfs_bmap.c 				end -= mod > del.br_blockcount ?
mod              5346 fs/xfs/libxfs/xfs_bmap.c 					del.br_blockcount : mod;
mod              5364 fs/xfs/libxfs/xfs_bmap.c 			if (del.br_blockcount > mod) {
mod              5365 fs/xfs/libxfs/xfs_bmap.c 				del.br_startoff += del.br_blockcount - mod;
mod              5366 fs/xfs/libxfs/xfs_bmap.c 				del.br_startblock += del.br_blockcount - mod;
mod              5367 fs/xfs/libxfs/xfs_bmap.c 				del.br_blockcount = mod;
mod              5377 fs/xfs/libxfs/xfs_bmap.c 		div_u64_rem(del.br_startblock, mp->m_sb.sb_rextsize, &mod);
mod              5378 fs/xfs/libxfs/xfs_bmap.c 		if (mod) {
mod              5384 fs/xfs/libxfs/xfs_bmap.c 			mod = mp->m_sb.sb_rextsize - mod;
mod              5385 fs/xfs/libxfs/xfs_bmap.c 			if (del.br_blockcount > mod) {
mod              5386 fs/xfs/libxfs/xfs_bmap.c 				del.br_blockcount -= mod;
mod              5387 fs/xfs/libxfs/xfs_bmap.c 				del.br_startoff += mod;
mod              5388 fs/xfs/libxfs/xfs_bmap.c 				del.br_startblock += mod;
mod              5420 fs/xfs/libxfs/xfs_bmap.c 					mod = start - prev.br_startoff;
mod              5421 fs/xfs/libxfs/xfs_bmap.c 					prev.br_blockcount -= mod;
mod              5422 fs/xfs/libxfs/xfs_bmap.c 					prev.br_startblock += mod;
mod               421 fs/xfs/libxfs/xfs_ialloc.c 	xfs_agblock_t			mod;
mod               425 fs/xfs/libxfs/xfs_ialloc.c 	mod = agbno % mp->m_sb.sb_inoalignmt;
mod               426 fs/xfs/libxfs/xfs_ialloc.c 	if (!mod)
mod               430 fs/xfs/libxfs/xfs_ialloc.c 	offset = XFS_AGB_TO_AGINO(mp, mod);
mod                78 fs/xfs/xfs_bmap_util.c 	xfs_extlen_t	mod = 0;	/* product factor for allocators */
mod                98 fs/xfs/xfs_bmap_util.c 	div_u64_rem(ap->offset, align, &mod);
mod                99 fs/xfs/xfs_bmap_util.c 	if (mod || ap->length % align)
mod              1173 fs/xfs/xfs_log_recover.c 	int			mod;
mod              1175 fs/xfs/xfs_log_recover.c 	div_s64_rem(bno, log->l_logBBsize, &mod);
mod              1176 fs/xfs/xfs_log_recover.c 	return mod;
mod              1575 fs/xfs/xfs_trace.h 		__field(xfs_extlen_t, mod)
mod              1596 fs/xfs/xfs_trace.h 		__entry->mod = args->mod;
mod              1620 fs/xfs/xfs_trace.h 		  __entry->mod,
mod               377 include/linux/ccp.h 	struct scatterlist *mod;
mod               578 include/linux/ccp.h 	struct scatterlist *mod;
mod               186 include/linux/dynamic_debug.h static inline int ddebug_remove_module(const char *mod)
mod               618 include/linux/fb.h 				u32 height, u32 shift_high, u32 shift_low, u32 mod);
mod               174 include/linux/ftrace.h void ftrace_free_mem(struct module *mod, void *start, void *end);
mod               177 include/linux/ftrace.h static inline void ftrace_free_mem(struct module *mod, void *start, void *end) { }
mod               239 include/linux/ftrace.h static inline void ftrace_free_mem(struct module *mod, void *start, void *end) { }
mod               520 include/linux/ftrace.h extern int ftrace_make_nop(struct module *mod,
mod               582 include/linux/ftrace.h extern void ftrace_module_init(struct module *mod);
mod               583 include/linux/ftrace.h extern void ftrace_module_enable(struct module *mod);
mod               584 include/linux/ftrace.h extern void ftrace_release_mod(struct module *mod);
mod               593 include/linux/ftrace.h static inline void ftrace_module_init(struct module *mod) { }
mod               594 include/linux/ftrace.h static inline void ftrace_module_enable(struct module *mod) { }
mod               595 include/linux/ftrace.h static inline void ftrace_release_mod(struct module *mod) { }
mod                49 include/linux/iio/common/st_sensors.h #define ST_SENSORS_LSM_CHANNELS(device_type, mask, index, mod, \
mod                53 include/linux/iio/common/st_sensors.h 	.modified = mod, \
mod               206 include/linux/iio/imu/adis.h #define ADIS_MOD_CHAN(_type, mod, addr, si, info_sep, info_all, bits) { \
mod               209 include/linux/iio/imu/adis.h 	.channel2 = IIO_MOD_ ## mod, \
mod               224 include/linux/iio/imu/adis.h #define ADIS_ACCEL_CHAN(mod, addr, si, info_sep, info_all, bits) \
mod               225 include/linux/iio/imu/adis.h 	ADIS_MOD_CHAN(IIO_ACCEL, mod, addr, si, info_sep, info_all, bits)
mod               227 include/linux/iio/imu/adis.h #define ADIS_GYRO_CHAN(mod, addr, si, info_sep, info_all, bits)		\
mod               228 include/linux/iio/imu/adis.h 	ADIS_MOD_CHAN(IIO_ANGL_VEL, mod, addr, si, info_sep, info_all, bits)
mod               230 include/linux/iio/imu/adis.h #define ADIS_INCLI_CHAN(mod, addr, si, info_sep, info_all, bits) \
mod               231 include/linux/iio/imu/adis.h 	ADIS_MOD_CHAN(IIO_INCLI, mod, addr, si, info_sep, info_all, bits)
mod               233 include/linux/iio/imu/adis.h #define ADIS_ROT_CHAN(mod, addr, si, info_sep, info_all, bits) \
mod               234 include/linux/iio/imu/adis.h 	ADIS_MOD_CHAN(IIO_ROT, mod, addr, si, info_sep, info_all, bits)
mod               226 include/linux/jump_label.h extern void jump_label_apply_nops(struct module *mod);
mod               299 include/linux/jump_label.h static inline int jump_label_apply_nops(struct module *mod)
mod                57 include/linux/kallsyms.h 	struct module *mod;
mod                64 include/linux/kallsyms.h 	mod = __module_address((unsigned long)ptr);
mod                67 include/linux/kallsyms.h 	if (mod)
mod                68 include/linux/kallsyms.h 		ptr = dereference_module_function_descriptor(mod, ptr);
mod                25 include/linux/kmod.h #define request_module(mod...) __request_module(true, mod)
mod                26 include/linux/kmod.h #define request_module_nowait(mod...) __request_module(false, mod)
mod                27 include/linux/kmod.h #define try_then_request_module(x, mod...) \
mod                28 include/linux/kmod.h 	((x) ?: (__request_module(true, mod), (x)))
mod                32 include/linux/kmod.h #define try_then_request_module(x, mod...) (x)
mod               128 include/linux/livepatch.h 	struct module *mod;
mod               148 include/linux/livepatch.h 	struct module *mod;
mod               188 include/linux/livepatch.h int klp_module_coming(struct module *mod);
mod               189 include/linux/livepatch.h void klp_module_going(struct module *mod);
mod               222 include/linux/livepatch.h static inline int klp_module_coming(struct module *mod) { return 0; }
mod               223 include/linux/livepatch.h static inline void klp_module_going(struct module *mod) {}
mod                44 include/linux/module.h 	struct module *mod;
mod               303 include/linux/module.h 	struct module *mod;
mod               527 include/linux/module.h static inline bool module_is_live(struct module *mod)
mod               529 include/linux/module.h 	return mod->state != MODULE_STATE_GOING;
mod               540 include/linux/module.h 				      const struct module *mod)
mod               542 include/linux/module.h 	return (unsigned long)mod->core_layout.base <= addr &&
mod               543 include/linux/module.h 	       addr < (unsigned long)mod->core_layout.base + mod->core_layout.size;
mod               547 include/linux/module.h 				      const struct module *mod)
mod               549 include/linux/module.h 	return (unsigned long)mod->init_layout.base <= addr &&
mod               550 include/linux/module.h 	       addr < (unsigned long)mod->init_layout.base + mod->init_layout.size;
mod               553 include/linux/module.h static inline bool within_module(unsigned long addr, const struct module *mod)
mod               555 include/linux/module.h 	return within_module_init(addr, mod) || within_module_core(addr, mod);
mod               604 include/linux/module.h extern void __noreturn __module_put_and_exit(struct module *mod,
mod               609 include/linux/module.h int module_refcount(struct module *mod);
mod               642 include/linux/module.h #define module_name(mod)			\
mod               644 include/linux/module.h 	struct module *__mod = (mod);		\
mod               649 include/linux/module.h void *dereference_module_function_descriptor(struct module *mod, void *ptr);
mod               673 include/linux/module.h static inline bool is_livepatch_module(struct module *mod)
mod               675 include/linux/module.h 	return mod->klp;
mod               678 include/linux/module.h static inline bool is_livepatch_module(struct module *mod)
mod               720 include/linux/module.h 				      const struct module *mod)
mod               726 include/linux/module.h 				      const struct module *mod)
mod               731 include/linux/module.h static inline bool within_module(unsigned long addr, const struct module *mod)
mod               754 include/linux/module.h #define module_name(mod) "kernel"
mod               829 include/linux/module.h void *dereference_module_function_descriptor(struct module *mod, void *ptr)
mod               851 include/linux/module.h extern void module_enable_ro(const struct module *mod, bool after_init);
mod               852 include/linux/module.h extern void module_disable_ro(const struct module *mod);
mod               856 include/linux/module.h static inline void module_enable_ro(const struct module *mod, bool after_init) { }
mod               857 include/linux/module.h static inline void module_disable_ro(const struct module *mod) { }
mod               869 include/linux/module.h 					struct module *mod)
mod               872 include/linux/module.h static inline void module_bug_cleanup(struct module *mod) {}
mod                20 include/linux/moduleloader.h 			      struct module *mod);
mod                23 include/linux/moduleloader.h unsigned int arch_mod_section_prepend(struct module *mod, unsigned int section);
mod                46 include/linux/moduleloader.h 		   struct module *mod);
mod                69 include/linux/moduleloader.h 		       struct module *mod);
mod                86 include/linux/moduleloader.h 		    struct module *mod);
mod                89 include/linux/moduleloader.h void module_arch_cleanup(struct module *mod);
mod                92 include/linux/moduleloader.h void module_arch_freeing_init(struct module *mod);
mod                71 include/linux/moduleparam.h 	struct module *mod;
mod               236 include/linux/moduleparam.h extern void kernel_param_lock(struct module *mod);
mod               237 include/linux/moduleparam.h extern void kernel_param_unlock(struct module *mod);
mod               239 include/linux/moduleparam.h static inline void kernel_param_lock(struct module *mod)
mod               242 include/linux/moduleparam.h static inline void kernel_param_unlock(struct module *mod)
mod               519 include/linux/moduleparam.h extern int module_param_sysfs_setup(struct module *mod,
mod               523 include/linux/moduleparam.h extern void module_param_sysfs_remove(struct module *mod);
mod               525 include/linux/moduleparam.h static inline int module_param_sysfs_setup(struct module *mod,
mod               532 include/linux/moduleparam.h static inline void module_param_sysfs_remove(struct module *mod)
mod                60 include/linux/mpi.h int mpi_powm(MPI res, MPI base, MPI exp, MPI mod);
mod               491 include/linux/mtd/mtd.h 	u32 mod;
mod               496 include/linux/mtd/mtd.h 	mod = mtd_mod_by_eb(req->addr, mtd);
mod               497 include/linux/mtd/mtd.h 	if (mod) {
mod               498 include/linux/mtd/mtd.h 		req->addr -= mod;
mod               499 include/linux/mtd/mtd.h 		req->len += mod;
mod               502 include/linux/mtd/mtd.h 	mod = mtd_mod_by_eb(req->addr + req->len, mtd);
mod               503 include/linux/mtd/mtd.h 	if (mod)
mod               504 include/linux/mtd/mtd.h 		req->len += mtd->erasesize - mod;
mod               124 include/linux/notifier.h #define _SRCU_NOTIFIER_HEAD(name, mod)				\
mod               126 include/linux/notifier.h 	mod struct srcu_notifier_head name =			\
mod               130 include/linux/notifier.h #define _SRCU_NOTIFIER_HEAD(name, mod)				\
mod               131 include/linux/notifier.h 	mod struct srcu_notifier_head name =			\
mod               451 include/linux/ntb.h int __ntb_register_client(struct ntb_client *client, struct module *mod,
mod                51 include/linux/tracepoint.h 	struct module *mod;
mod                54 include/linux/tracepoint.h bool trace_module_has_bad_taint(struct module *mod);
mod                58 include/linux/tracepoint.h static inline bool trace_module_has_bad_taint(struct module *mod)
mod               216 include/linux/usb/composite.h 	struct module		*mod;
mod               580 include/linux/usb/composite.h 	struct module *mod;
mod               611 include/linux/usb/composite.h 		.mod  = THIS_MODULE,					\
mod               206 include/net/ipv6.h #define _DEVINC(net, statname, mod, idev, field)			\
mod               210 include/net/ipv6.h 		mod##SNMP_INC_STATS64((_idev)->stats.statname, (field));\
mod               211 include/net/ipv6.h 	mod##SNMP_INC_STATS64((net)->mib.statname##_statistics, (field));\
mod               215 include/net/ipv6.h #define _DEVINCATOMIC(net, statname, mod, idev, field)			\
mod               220 include/net/ipv6.h 	mod##SNMP_INC_STATS((net)->mib.statname##_statistics, (field));\
mod               232 include/net/ipv6.h #define _DEVADD(net, statname, mod, idev, field, val)			\
mod               236 include/net/ipv6.h 		mod##SNMP_ADD_STATS((_idev)->stats.statname, (field), (val)); \
mod               237 include/net/ipv6.h 	mod##SNMP_ADD_STATS((net)->mib.statname##_statistics, (field), (val));\
mod               240 include/net/ipv6.h #define _DEVUPD(net, statname, mod, idev, field, val)			\
mod               244 include/net/ipv6.h 		mod##SNMP_UPD_PO_STATS((_idev)->stats.statname, field, (val)); \
mod               245 include/net/ipv6.h 	mod##SNMP_UPD_PO_STATS((net)->mib.statname##_statistics, field, (val));\
mod                68 include/sound/seq_device.h 					   struct module *mod);
mod              1828 include/trace/events/btrfs.h 	TP_PROTO(struct btrfs_root *root, u64 ino, int mod),
mod              1830 include/trace/events/btrfs.h 	TP_ARGS(root, ino, mod),
mod              1835 include/trace/events/btrfs.h 		__field(	int, mod		)
mod              1841 include/trace/events/btrfs.h 		__entry->mod		= mod;
mod              1846 include/trace/events/btrfs.h 			__entry->ino, __entry->mod)
mod                33 include/trace/events/module.h 	TP_PROTO(struct module *mod),
mod                35 include/trace/events/module.h 	TP_ARGS(mod),
mod                39 include/trace/events/module.h 		__string(	name,		mod->name	)
mod                43 include/trace/events/module.h 		__entry->taints = mod->taints;
mod                44 include/trace/events/module.h 		__assign_str(name, mod->name);
mod                52 include/trace/events/module.h 	TP_PROTO(struct module *mod),
mod                54 include/trace/events/module.h 	TP_ARGS(mod),
mod                57 include/trace/events/module.h 		__string(	name,		mod->name	)
mod                61 include/trace/events/module.h 		__assign_str(name, mod->name);
mod                72 include/trace/events/module.h 	TP_PROTO(struct module *mod, unsigned long ip),
mod                74 include/trace/events/module.h 	TP_ARGS(mod, ip),
mod                79 include/trace/events/module.h 		__string(	name,		mod->name	)
mod                84 include/trace/events/module.h 		__entry->refcnt	= atomic_read(&mod->refcnt);
mod                85 include/trace/events/module.h 		__assign_str(name, mod->name);
mod                94 include/trace/events/module.h 	TP_PROTO(struct module *mod, unsigned long ip),
mod                96 include/trace/events/module.h 	TP_ARGS(mod, ip)
mod               101 include/trace/events/module.h 	TP_PROTO(struct module *mod, unsigned long ip),
mod               103 include/trace/events/module.h 	TP_ARGS(mod, ip)
mod              2026 kernel/debug/kdb/kdb_main.c 	struct module *mod;
mod              2032 kernel/debug/kdb/kdb_main.c 	list_for_each_entry(mod, kdb_modules, list) {
mod              2033 kernel/debug/kdb/kdb_main.c 		if (mod->state == MODULE_STATE_UNFORMED)
mod              2036 kernel/debug/kdb/kdb_main.c 		kdb_printf("%-20s%8u  0x%px ", mod->name,
mod              2037 kernel/debug/kdb/kdb_main.c 			   mod->core_layout.size, (void *)mod);
mod              2039 kernel/debug/kdb/kdb_main.c 		kdb_printf("%4d ", module_refcount(mod));
mod              2041 kernel/debug/kdb/kdb_main.c 		if (mod->state == MODULE_STATE_GOING)
mod              2043 kernel/debug/kdb/kdb_main.c 		else if (mod->state == MODULE_STATE_COMING)
mod              2047 kernel/debug/kdb/kdb_main.c 		kdb_printf(" 0x%px", mod->core_layout.base);
mod              2053 kernel/debug/kdb/kdb_main.c 			list_for_each_entry(use, &mod->source_list,
mod                57 kernel/gcov/base.c 	struct module *mod = data;
mod                67 kernel/gcov/base.c 		if (gcov_info_within_module(info, mod)) {
mod               219 kernel/gcov/clang.c bool gcov_info_within_module(struct gcov_info *info, struct module *mod)
mod               221 kernel/gcov/clang.c 	return within_module((unsigned long)info->filename, mod);
mod               147 kernel/gcov/gcc_3_4.c bool gcov_info_within_module(struct gcov_info *info, struct module *mod)
mod               149 kernel/gcov/gcc_3_4.c 	return within_module((unsigned long)info, mod);
mod               160 kernel/gcov/gcc_4_7.c bool gcov_info_within_module(struct gcov_info *info, struct module *mod)
mod               162 kernel/gcov/gcc_4_7.c 	return within_module((unsigned long)info, mod);
mod                50 kernel/gcov/gcov.h bool gcov_info_within_module(struct gcov_info *info, struct module *mod);
mod               513 kernel/jump_label.c 	struct module *mod;
mod               529 kernel/jump_label.c 			       struct static_key_mod *mod)
mod               533 kernel/jump_label.c 	WARN_ON_ONCE((unsigned long)mod & JUMP_TYPE_MASK);
mod               535 kernel/jump_label.c 	key->next = mod;
mod               541 kernel/jump_label.c 	struct module *mod;
mod               544 kernel/jump_label.c 	mod = __module_text_address((unsigned long)start);
mod               545 kernel/jump_label.c 	WARN_ON_ONCE(__module_text_address((unsigned long)end) != mod);
mod               548 kernel/jump_label.c 	if (!mod)
mod               552 kernel/jump_label.c 	return __jump_label_text_reserved(mod->jump_entries,
mod               553 kernel/jump_label.c 				mod->jump_entries + mod->num_jump_entries,
mod               559 kernel/jump_label.c 	struct static_key_mod *mod;
mod               561 kernel/jump_label.c 	for (mod = static_key_mod(key); mod; mod = mod->next) {
mod               569 kernel/jump_label.c 		if (!mod->entries)
mod               572 kernel/jump_label.c 		m = mod->mod;
mod               577 kernel/jump_label.c 		__jump_label_update(key, mod->entries, stop,
mod               590 kernel/jump_label.c void jump_label_apply_nops(struct module *mod)
mod               592 kernel/jump_label.c 	struct jump_entry *iter_start = mod->jump_entries;
mod               593 kernel/jump_label.c 	struct jump_entry *iter_stop = iter_start + mod->num_jump_entries;
mod               607 kernel/jump_label.c static int jump_label_add_module(struct module *mod)
mod               609 kernel/jump_label.c 	struct jump_entry *iter_start = mod->jump_entries;
mod               610 kernel/jump_label.c 	struct jump_entry *iter_stop = iter_start + mod->num_jump_entries;
mod               624 kernel/jump_label.c 		if (within_module_init(jump_entry_code(iter), mod))
mod               632 kernel/jump_label.c 		if (within_module((unsigned long)key, mod)) {
mod               647 kernel/jump_label.c 			jlm2->mod = __module_address((unsigned long)key);
mod               654 kernel/jump_label.c 		jlm->mod = mod;
mod               668 kernel/jump_label.c static void jump_label_del_module(struct module *mod)
mod               670 kernel/jump_label.c 	struct jump_entry *iter_start = mod->jump_entries;
mod               671 kernel/jump_label.c 	struct jump_entry *iter_stop = iter_start + mod->num_jump_entries;
mod               682 kernel/jump_label.c 		if (within_module((unsigned long)key, mod))
mod               692 kernel/jump_label.c 		while (jlm && jlm->mod != mod) {
mod               722 kernel/jump_label.c 	struct module *mod = data;
mod               730 kernel/jump_label.c 		ret = jump_label_add_module(mod);
mod               733 kernel/jump_label.c 			jump_label_del_module(mod);
mod               737 kernel/jump_label.c 		jump_label_del_module(mod);
mod               792 kernel/jump_label.c 	struct module *mod;
mod               800 kernel/jump_label.c 	mod = __module_address((unsigned long)key);
mod               801 kernel/jump_label.c 	if (mod)
mod               802 kernel/jump_label.c 		stop = mod->jump_entries + mod->num_jump_entries;
mod              2222 kernel/kprobes.c 	struct module *mod = data;
mod              2241 kernel/kprobes.c 			if (within_module_init((unsigned long)p->addr, mod) ||
mod              2243 kernel/kprobes.c 			     within_module_core((unsigned long)p->addr, mod))) {
mod                54 kernel/livepatch/core.c 	struct module *mod;
mod                65 kernel/livepatch/core.c 	mod = find_module(obj->name);
mod                73 kernel/livepatch/core.c 	if (mod && mod->klp_alive)
mod                74 kernel/livepatch/core.c 		obj->mod = mod;
mod               127 kernel/livepatch/core.c 			     struct module *mod, unsigned long addr)
mod               131 kernel/livepatch/core.c 	if ((mod && !args->objname) || (!mod && args->objname))
mod               137 kernel/livepatch/core.c 	if (args->objname && strcmp(args->objname, mod->name))
mod               593 kernel/livepatch/core.c 	obj->mod = NULL;
mod               664 kernel/livepatch/core.c 		module_put(patch->mod);
mod               724 kernel/livepatch/core.c 	module_disable_ro(patch->mod);
mod               725 kernel/livepatch/core.c 	ret = klp_write_object_relocations(patch->mod, obj);
mod               727 kernel/livepatch/core.c 		module_enable_ro(patch->mod, true);
mod               733 kernel/livepatch/core.c 	module_enable_ro(patch->mod, true);
mod               777 kernel/livepatch/core.c 	obj->mod = NULL;
mod               840 kernel/livepatch/core.c 	if (!try_module_get(patch->mod))
mod               851 kernel/livepatch/core.c 	ret = kobject_add(&patch->kobj, klp_root_kobj, "%s", patch->mod->name);
mod               915 kernel/livepatch/core.c 	pr_notice("enabling patch '%s'\n", patch->mod->name);
mod               953 kernel/livepatch/core.c 	pr_warn("failed to enable patch '%s'\n", patch->mod->name);
mod               976 kernel/livepatch/core.c 	if (!patch || !patch->mod)
mod               979 kernel/livepatch/core.c 	if (!is_livepatch_module(patch->mod)) {
mod               981 kernel/livepatch/core.c 		       patch->mod->name);
mod              1080 kernel/livepatch/core.c static void klp_cleanup_module_patches_limited(struct module *mod,
mod              1091 kernel/livepatch/core.c 			if (!klp_is_module(obj) || strcmp(obj->name, mod->name))
mod              1098 kernel/livepatch/core.c 				  patch->mod->name, obj->mod->name);
mod              1109 kernel/livepatch/core.c int klp_module_coming(struct module *mod)
mod              1115 kernel/livepatch/core.c 	if (WARN_ON(mod->state != MODULE_STATE_COMING))
mod              1124 kernel/livepatch/core.c 	mod->klp_alive = true;
mod              1128 kernel/livepatch/core.c 			if (!klp_is_module(obj) || strcmp(obj->name, mod->name))
mod              1131 kernel/livepatch/core.c 			obj->mod = mod;
mod              1136 kernel/livepatch/core.c 					patch->mod->name, obj->mod->name, ret);
mod              1141 kernel/livepatch/core.c 				  patch->mod->name, obj->mod->name);
mod              1153 kernel/livepatch/core.c 					patch->mod->name, obj->mod->name, ret);
mod              1176 kernel/livepatch/core.c 		patch->mod->name, obj->mod->name, obj->mod->name);
mod              1177 kernel/livepatch/core.c 	mod->klp_alive = false;
mod              1178 kernel/livepatch/core.c 	obj->mod = NULL;
mod              1179 kernel/livepatch/core.c 	klp_cleanup_module_patches_limited(mod, patch);
mod              1185 kernel/livepatch/core.c void klp_module_going(struct module *mod)
mod              1187 kernel/livepatch/core.c 	if (WARN_ON(mod->state != MODULE_STATE_GOING &&
mod              1188 kernel/livepatch/core.c 		    mod->state != MODULE_STATE_COMING))
mod              1197 kernel/livepatch/core.c 	mod->klp_alive = false;
mod              1199 kernel/livepatch/core.c 	klp_cleanup_module_patches_limited(mod, NULL);
mod                22 kernel/livepatch/core.h 	return !obj->name || obj->mod;
mod                77 kernel/livepatch/transition.c 		 klp_transition_patch->mod->name,
mod               131 kernel/livepatch/transition.c 	pr_notice("'%s': %s complete\n", klp_transition_patch->mod->name,
mod               150 kernel/livepatch/transition.c 		 klp_transition_patch->mod->name);
mod               471 kernel/livepatch/transition.c 		  klp_transition_patch->mod->name,
mod               522 kernel/livepatch/transition.c 	pr_debug("'%s': initializing %s transition\n", patch->mod->name,
mod               584 kernel/livepatch/transition.c 		 klp_transition_patch->mod->name,
mod                14 kernel/module-internal.h 	struct module *mod;
mod                27 kernel/module-internal.h 		unsigned int sym, str, mod, vers, info, pcpu;
mod                31 kernel/module-internal.h extern int mod_verify_sig(const void *mod, struct load_info *info);
mod               172 kernel/module.c static void mod_tree_insert(struct module *mod)
mod               174 kernel/module.c 	mod->core_layout.mtn.mod = mod;
mod               175 kernel/module.c 	mod->init_layout.mtn.mod = mod;
mod               177 kernel/module.c 	__mod_tree_insert(&mod->core_layout.mtn);
mod               178 kernel/module.c 	if (mod->init_layout.size)
mod               179 kernel/module.c 		__mod_tree_insert(&mod->init_layout.mtn);
mod               182 kernel/module.c static void mod_tree_remove_init(struct module *mod)
mod               184 kernel/module.c 	if (mod->init_layout.size)
mod               185 kernel/module.c 		__mod_tree_remove(&mod->init_layout.mtn);
mod               188 kernel/module.c static void mod_tree_remove(struct module *mod)
mod               190 kernel/module.c 	__mod_tree_remove(&mod->core_layout.mtn);
mod               191 kernel/module.c 	mod_tree_remove_init(mod);
mod               202 kernel/module.c 	return container_of(ltn, struct mod_tree_node, node)->mod;
mod               209 kernel/module.c static void mod_tree_insert(struct module *mod) { }
mod               210 kernel/module.c static void mod_tree_remove_init(struct module *mod) { }
mod               211 kernel/module.c static void mod_tree_remove(struct module *mod) { }
mod               215 kernel/module.c 	struct module *mod;
mod               217 kernel/module.c 	list_for_each_entry_rcu(mod, &modules, list,
mod               219 kernel/module.c 		if (within_module(addr, mod))
mod               220 kernel/module.c 			return mod;
mod               243 kernel/module.c static void mod_update_bounds(struct module *mod)
mod               245 kernel/module.c 	__mod_update_bounds(mod->core_layout.base, mod->core_layout.size);
mod               246 kernel/module.c 	if (mod->init_layout.size)
mod               247 kernel/module.c 		__mod_update_bounds(mod->init_layout.base, mod->init_layout.size);
mod               314 kernel/module.c static inline int strong_try_module_get(struct module *mod)
mod               316 kernel/module.c 	BUG_ON(mod && mod->state == MODULE_STATE_UNFORMED);
mod               317 kernel/module.c 	if (mod && mod->state == MODULE_STATE_COMING)
mod               319 kernel/module.c 	if (try_module_get(mod))
mod               325 kernel/module.c static inline void add_taint_module(struct module *mod, unsigned flag,
mod               329 kernel/module.c 	set_bit(flag, &mod->taints);
mod               336 kernel/module.c void __noreturn __module_put_and_exit(struct module *mod, long code)
mod               338 kernel/module.c 	module_put(mod);
mod               427 kernel/module.c 	struct module *mod;
mod               452 kernel/module.c 	list_for_each_entry_rcu(mod, &modules, list,
mod               455 kernel/module.c 			{ mod->syms, mod->syms + mod->num_syms, mod->crcs,
mod               457 kernel/module.c 			{ mod->gpl_syms, mod->gpl_syms + mod->num_gpl_syms,
mod               458 kernel/module.c 			  mod->gpl_crcs,
mod               460 kernel/module.c 			{ mod->gpl_future_syms,
mod               461 kernel/module.c 			  mod->gpl_future_syms + mod->num_gpl_future_syms,
mod               462 kernel/module.c 			  mod->gpl_future_crcs,
mod               465 kernel/module.c 			{ mod->unused_syms,
mod               466 kernel/module.c 			  mod->unused_syms + mod->num_unused_syms,
mod               467 kernel/module.c 			  mod->unused_crcs,
mod               469 kernel/module.c 			{ mod->unused_gpl_syms,
mod               470 kernel/module.c 			  mod->unused_gpl_syms + mod->num_unused_gpl_syms,
mod               471 kernel/module.c 			  mod->unused_gpl_crcs,
mod               476 kernel/module.c 		if (mod->state == MODULE_STATE_UNFORMED)
mod               479 kernel/module.c 		if (each_symbol_in_section(arr, ARRAY_SIZE(arr), mod, fn, data))
mod               617 kernel/module.c 	struct module *mod;
mod               621 kernel/module.c 	list_for_each_entry_rcu(mod, &modules, list,
mod               623 kernel/module.c 		if (!even_unformed && mod->state == MODULE_STATE_UNFORMED)
mod               625 kernel/module.c 		if (strlen(mod->name) == len && !memcmp(mod->name, name, len))
mod               626 kernel/module.c 			return mod;
mod               640 kernel/module.c static inline void __percpu *mod_percpu(struct module *mod)
mod               642 kernel/module.c 	return mod->percpu;
mod               645 kernel/module.c static int percpu_modalloc(struct module *mod, struct load_info *info)
mod               655 kernel/module.c 			mod->name, align, PAGE_SIZE);
mod               659 kernel/module.c 	mod->percpu = __alloc_reserved_percpu(pcpusec->sh_size, align);
mod               660 kernel/module.c 	if (!mod->percpu) {
mod               662 kernel/module.c 			mod->name, (unsigned long)pcpusec->sh_size);
mod               665 kernel/module.c 	mod->percpu_size = pcpusec->sh_size;
mod               669 kernel/module.c static void percpu_modfree(struct module *mod)
mod               671 kernel/module.c 	free_percpu(mod->percpu);
mod               679 kernel/module.c static void percpu_modcopy(struct module *mod,
mod               685 kernel/module.c 		memcpy(per_cpu_ptr(mod->percpu, cpu), from, size);
mod               690 kernel/module.c 	struct module *mod;
mod               695 kernel/module.c 	list_for_each_entry_rcu(mod, &modules, list) {
mod               696 kernel/module.c 		if (mod->state == MODULE_STATE_UNFORMED)
mod               698 kernel/module.c 		if (!mod->percpu_size)
mod               701 kernel/module.c 			void *start = per_cpu_ptr(mod->percpu, cpu);
mod               704 kernel/module.c 			if (va >= start && va < start + mod->percpu_size) {
mod               708 kernel/module.c 						per_cpu_ptr(mod->percpu,
mod               737 kernel/module.c static inline void __percpu *mod_percpu(struct module *mod)
mod               741 kernel/module.c static int percpu_modalloc(struct module *mod, struct load_info *info)
mod               748 kernel/module.c static inline void percpu_modfree(struct module *mod)
mod               755 kernel/module.c static inline void percpu_modcopy(struct module *mod,
mod               774 kernel/module.c static void setup_modinfo_##field(struct module *mod, const char *s)  \
mod               776 kernel/module.c 	mod->field = kstrdup(s, GFP_KERNEL);                          \
mod               781 kernel/module.c 	return scnprintf(buffer, PAGE_SIZE, "%s\n", mk->mod->field);  \
mod               783 kernel/module.c static int modinfo_##field##_exists(struct module *mod)               \
mod               785 kernel/module.c 	return mod->field != NULL;                                    \
mod               787 kernel/module.c static void free_modinfo_##field(struct module *mod)                  \
mod               789 kernel/module.c 	kfree(mod->field);                                            \
mod               790 kernel/module.c 	mod->field = NULL;                                            \
mod               813 kernel/module.c static int module_unload_init(struct module *mod)
mod               819 kernel/module.c 	atomic_set(&mod->refcnt, MODULE_REF_BASE);
mod               821 kernel/module.c 	INIT_LIST_HEAD(&mod->source_list);
mod               822 kernel/module.c 	INIT_LIST_HEAD(&mod->target_list);
mod               825 kernel/module.c 	atomic_inc(&mod->refcnt);
mod               891 kernel/module.c static void module_unload_free(struct module *mod)
mod               896 kernel/module.c 	list_for_each_entry_safe(use, tmp, &mod->target_list, target_list) {
mod               898 kernel/module.c 		pr_debug("%s unusing %s\n", mod->name, i->name);
mod               923 kernel/module.c static int try_release_module_ref(struct module *mod)
mod               928 kernel/module.c 	ret = atomic_sub_return(MODULE_REF_BASE, &mod->refcnt);
mod               932 kernel/module.c 		ret = atomic_add_unless(&mod->refcnt, MODULE_REF_BASE, 0);
mod               937 kernel/module.c static int try_stop_module(struct module *mod, int flags, int *forced)
mod               940 kernel/module.c 	if (try_release_module_ref(mod) != 0) {
mod               947 kernel/module.c 	mod->state = MODULE_STATE_GOING;
mod               961 kernel/module.c int module_refcount(struct module *mod)
mod               963 kernel/module.c 	return atomic_read(&mod->refcnt) - MODULE_REF_BASE;
mod               968 kernel/module.c static void free_module(struct module *mod);
mod               973 kernel/module.c 	struct module *mod;
mod               989 kernel/module.c 	mod = find_module(name);
mod               990 kernel/module.c 	if (!mod) {
mod               995 kernel/module.c 	if (!list_empty(&mod->source_list)) {
mod              1002 kernel/module.c 	if (mod->state != MODULE_STATE_LIVE) {
mod              1004 kernel/module.c 		pr_debug("%s already dying\n", mod->name);
mod              1010 kernel/module.c 	if (mod->init && !mod->exit) {
mod              1020 kernel/module.c 	ret = try_stop_module(mod, flags, &forced);
mod              1026 kernel/module.c 	if (mod->exit != NULL)
mod              1027 kernel/module.c 		mod->exit();
mod              1029 kernel/module.c 				     MODULE_STATE_GOING, mod);
mod              1030 kernel/module.c 	klp_module_going(mod);
mod              1031 kernel/module.c 	ftrace_release_mod(mod);
mod              1036 kernel/module.c 	strlcpy(last_unloaded_module, mod->name, sizeof(last_unloaded_module));
mod              1038 kernel/module.c 	free_module(mod);
mod              1047 kernel/module.c static inline void print_unload_info(struct seq_file *m, struct module *mod)
mod              1052 kernel/module.c 	seq_printf(m, " %i ", module_refcount(mod));
mod              1058 kernel/module.c 	list_for_each_entry(use, &mod->source_list, source_list) {
mod              1063 kernel/module.c 	if (mod->init != NULL && mod->exit == NULL) {
mod              1108 kernel/module.c 	return sprintf(buffer, "%i\n", module_refcount(mk->mod));
mod              1159 kernel/module.c static inline void print_unload_info(struct seq_file *m, struct module *mod)
mod              1165 kernel/module.c static inline void module_unload_free(struct module *mod)
mod              1175 kernel/module.c static inline int module_unload_init(struct module *mod)
mod              1181 kernel/module.c static size_t module_flags_taint(struct module *mod, char *buf)
mod              1187 kernel/module.c 		if (taint_flags[i].module && test_bit(i, &mod->taints))
mod              1199 kernel/module.c 	switch (mk->mod->state) {
mod              1234 kernel/module.c 	return sprintf(buffer, "%u\n", mk->mod->core_layout.size);
mod              1243 kernel/module.c 	return sprintf(buffer, "%u\n", mk->mod->init_layout.size);
mod              1254 kernel/module.c 	l = module_flags_taint(mk->mod, buffer);
mod              1278 kernel/module.c static int try_to_force_load(struct module *mod, const char *reason)
mod              1282 kernel/module.c 		pr_warn("%s: %s: kernel tainted.\n", mod->name, reason);
mod              1283 kernel/module.c 	add_taint_module(mod, TAINT_FORCED_MODULE, LOCKDEP_NOW_UNRELIABLE);
mod              1299 kernel/module.c 			 struct module *mod,
mod              1313 kernel/module.c 		return try_to_force_load(mod, symname) == 0;
mod              1347 kernel/module.c 					  struct module *mod)
mod              1361 kernel/module.c 	return check_version(info, "module_layout", mod, crc);
mod              1377 kernel/module.c 				struct module *mod,
mod              1384 kernel/module.c 					  struct module *mod)
mod              1402 kernel/module.c 					struct module *mod)
mod              1422 kernel/module.c 			mod->name, kernel_symbol_name(sym), namespace);
mod              1432 kernel/module.c static const struct kernel_symbol *resolve_symbol(struct module *mod,
mod              1450 kernel/module.c 			  !(mod->taints & (1 << TAINT_PROPRIETARY_MODULE)), true);
mod              1454 kernel/module.c 	if (!check_version(info, name, mod, crc)) {
mod              1459 kernel/module.c 	err = verify_namespace_is_imported(info, sym, mod);
mod              1465 kernel/module.c 	err = ref_module(mod, owner);
mod              1480 kernel/module.c resolve_symbol_wait(struct module *mod,
mod              1488 kernel/module.c 			!IS_ERR(ksym = resolve_symbol(mod, info, name, owner))
mod              1492 kernel/module.c 			mod->name, owner);
mod              1539 kernel/module.c static void add_sect_attrs(struct module *mod, const struct load_info *info)
mod              1583 kernel/module.c 	if (sysfs_create_group(&mod->mkobj.kobj, &sect_attrs->grp))
mod              1586 kernel/module.c 	mod->sect_attrs = sect_attrs;
mod              1592 kernel/module.c static void remove_sect_attrs(struct module *mod)
mod              1594 kernel/module.c 	if (mod->sect_attrs) {
mod              1595 kernel/module.c 		sysfs_remove_group(&mod->mkobj.kobj,
mod              1596 kernel/module.c 				   &mod->sect_attrs->grp);
mod              1599 kernel/module.c 		free_sect_attrs(mod->sect_attrs);
mod              1600 kernel/module.c 		mod->sect_attrs = NULL;
mod              1637 kernel/module.c static void add_notes_attrs(struct module *mod, const struct load_info *info)
mod              1644 kernel/module.c 	if (!mod->sect_attrs)
mod              1669 kernel/module.c 			nattr->attr.name = mod->sect_attrs->attrs[loaded].name;
mod              1679 kernel/module.c 	notes_attrs->dir = kobject_create_and_add("notes", &mod->mkobj.kobj);
mod              1688 kernel/module.c 	mod->notes_attrs = notes_attrs;
mod              1695 kernel/module.c static void remove_notes_attrs(struct module *mod)
mod              1697 kernel/module.c 	if (mod->notes_attrs)
mod              1698 kernel/module.c 		free_notes_attrs(mod->notes_attrs, mod->notes_attrs->notes);
mod              1703 kernel/module.c static inline void add_sect_attrs(struct module *mod,
mod              1708 kernel/module.c static inline void remove_sect_attrs(struct module *mod)
mod              1712 kernel/module.c static inline void add_notes_attrs(struct module *mod,
mod              1717 kernel/module.c static inline void remove_notes_attrs(struct module *mod)
mod              1722 kernel/module.c static void del_usage_links(struct module *mod)
mod              1728 kernel/module.c 	list_for_each_entry(use, &mod->target_list, target_list)
mod              1729 kernel/module.c 		sysfs_remove_link(use->target->holders_dir, mod->name);
mod              1734 kernel/module.c static int add_usage_links(struct module *mod)
mod              1741 kernel/module.c 	list_for_each_entry(use, &mod->target_list, target_list) {
mod              1743 kernel/module.c 					&mod->mkobj.kobj, mod->name);
mod              1749 kernel/module.c 		del_usage_links(mod);
mod              1754 kernel/module.c static void module_remove_modinfo_attrs(struct module *mod, int end);
mod              1756 kernel/module.c static int module_add_modinfo_attrs(struct module *mod)
mod              1763 kernel/module.c 	mod->modinfo_attrs = kzalloc((sizeof(struct module_attribute) *
mod              1766 kernel/module.c 	if (!mod->modinfo_attrs)
mod              1769 kernel/module.c 	temp_attr = mod->modinfo_attrs;
mod              1771 kernel/module.c 		if (!attr->test || attr->test(mod)) {
mod              1774 kernel/module.c 			error = sysfs_create_file(&mod->mkobj.kobj,
mod              1786 kernel/module.c 		module_remove_modinfo_attrs(mod, --i);
mod              1788 kernel/module.c 		kfree(mod->modinfo_attrs);
mod              1792 kernel/module.c static void module_remove_modinfo_attrs(struct module *mod, int end)
mod              1797 kernel/module.c 	for (i = 0; (attr = &mod->modinfo_attrs[i]); i++) {
mod              1803 kernel/module.c 		sysfs_remove_file(&mod->mkobj.kobj, &attr->attr);
mod              1805 kernel/module.c 			attr->free(mod);
mod              1807 kernel/module.c 	kfree(mod->modinfo_attrs);
mod              1810 kernel/module.c static void mod_kobject_put(struct module *mod)
mod              1813 kernel/module.c 	mod->mkobj.kobj_completion = &c;
mod              1814 kernel/module.c 	kobject_put(&mod->mkobj.kobj);
mod              1818 kernel/module.c static int mod_sysfs_init(struct module *mod)
mod              1824 kernel/module.c 		pr_err("%s: module sysfs not initialized\n", mod->name);
mod              1829 kernel/module.c 	kobj = kset_find_obj(module_kset, mod->name);
mod              1831 kernel/module.c 		pr_err("%s: module is already loaded\n", mod->name);
mod              1837 kernel/module.c 	mod->mkobj.mod = mod;
mod              1839 kernel/module.c 	memset(&mod->mkobj.kobj, 0, sizeof(mod->mkobj.kobj));
mod              1840 kernel/module.c 	mod->mkobj.kobj.kset = module_kset;
mod              1841 kernel/module.c 	err = kobject_init_and_add(&mod->mkobj.kobj, &module_ktype, NULL,
mod              1842 kernel/module.c 				   "%s", mod->name);
mod              1844 kernel/module.c 		mod_kobject_put(mod);
mod              1851 kernel/module.c static int mod_sysfs_setup(struct module *mod,
mod              1858 kernel/module.c 	err = mod_sysfs_init(mod);
mod              1862 kernel/module.c 	mod->holders_dir = kobject_create_and_add("holders", &mod->mkobj.kobj);
mod              1863 kernel/module.c 	if (!mod->holders_dir) {
mod              1868 kernel/module.c 	err = module_param_sysfs_setup(mod, kparam, num_params);
mod              1872 kernel/module.c 	err = module_add_modinfo_attrs(mod);
mod              1876 kernel/module.c 	err = add_usage_links(mod);
mod              1880 kernel/module.c 	add_sect_attrs(mod, info);
mod              1881 kernel/module.c 	add_notes_attrs(mod, info);
mod              1883 kernel/module.c 	kobject_uevent(&mod->mkobj.kobj, KOBJ_ADD);
mod              1887 kernel/module.c 	module_remove_modinfo_attrs(mod, -1);
mod              1889 kernel/module.c 	module_param_sysfs_remove(mod);
mod              1891 kernel/module.c 	kobject_put(mod->holders_dir);
mod              1893 kernel/module.c 	mod_kobject_put(mod);
mod              1898 kernel/module.c static void mod_sysfs_fini(struct module *mod)
mod              1900 kernel/module.c 	remove_notes_attrs(mod);
mod              1901 kernel/module.c 	remove_sect_attrs(mod);
mod              1902 kernel/module.c 	mod_kobject_put(mod);
mod              1905 kernel/module.c static void init_param_lock(struct module *mod)
mod              1907 kernel/module.c 	mutex_init(&mod->param_lock);
mod              1911 kernel/module.c static int mod_sysfs_setup(struct module *mod,
mod              1919 kernel/module.c static void mod_sysfs_fini(struct module *mod)
mod              1923 kernel/module.c static void module_remove_modinfo_attrs(struct module *mod, int end)
mod              1927 kernel/module.c static void del_usage_links(struct module *mod)
mod              1931 kernel/module.c static void init_param_lock(struct module *mod)
mod              1936 kernel/module.c static void mod_sysfs_teardown(struct module *mod)
mod              1938 kernel/module.c 	del_usage_links(mod);
mod              1939 kernel/module.c 	module_remove_modinfo_attrs(mod, -1);
mod              1940 kernel/module.c 	module_param_sysfs_remove(mod);
mod              1941 kernel/module.c 	kobject_put(mod->mkobj.drivers_dir);
mod              1942 kernel/module.c 	kobject_put(mod->holders_dir);
mod              1943 kernel/module.c 	mod_sysfs_fini(mod);
mod              2001 kernel/module.c void module_disable_ro(const struct module *mod)
mod              2006 kernel/module.c 	frob_text(&mod->core_layout, set_memory_rw);
mod              2007 kernel/module.c 	frob_rodata(&mod->core_layout, set_memory_rw);
mod              2008 kernel/module.c 	frob_ro_after_init(&mod->core_layout, set_memory_rw);
mod              2009 kernel/module.c 	frob_text(&mod->init_layout, set_memory_rw);
mod              2010 kernel/module.c 	frob_rodata(&mod->init_layout, set_memory_rw);
mod              2013 kernel/module.c void module_enable_ro(const struct module *mod, bool after_init)
mod              2018 kernel/module.c 	set_vm_flush_reset_perms(mod->core_layout.base);
mod              2019 kernel/module.c 	set_vm_flush_reset_perms(mod->init_layout.base);
mod              2020 kernel/module.c 	frob_text(&mod->core_layout, set_memory_ro);
mod              2022 kernel/module.c 	frob_rodata(&mod->core_layout, set_memory_ro);
mod              2023 kernel/module.c 	frob_text(&mod->init_layout, set_memory_ro);
mod              2024 kernel/module.c 	frob_rodata(&mod->init_layout, set_memory_ro);
mod              2027 kernel/module.c 		frob_ro_after_init(&mod->core_layout, set_memory_ro);
mod              2030 kernel/module.c static void module_enable_nx(const struct module *mod)
mod              2032 kernel/module.c 	frob_rodata(&mod->core_layout, set_memory_nx);
mod              2033 kernel/module.c 	frob_ro_after_init(&mod->core_layout, set_memory_nx);
mod              2034 kernel/module.c 	frob_writable_data(&mod->core_layout, set_memory_nx);
mod              2035 kernel/module.c 	frob_rodata(&mod->init_layout, set_memory_nx);
mod              2036 kernel/module.c 	frob_writable_data(&mod->init_layout, set_memory_nx);
mod              2042 kernel/module.c 	struct module *mod;
mod              2048 kernel/module.c 	list_for_each_entry_rcu(mod, &modules, list) {
mod              2049 kernel/module.c 		if (mod->state == MODULE_STATE_UNFORMED)
mod              2052 kernel/module.c 		frob_text(&mod->core_layout, set_memory_rw);
mod              2053 kernel/module.c 		frob_text(&mod->init_layout, set_memory_rw);
mod              2061 kernel/module.c 	struct module *mod;
mod              2067 kernel/module.c 	list_for_each_entry_rcu(mod, &modules, list) {
mod              2073 kernel/module.c 		if (mod->state == MODULE_STATE_UNFORMED ||
mod              2074 kernel/module.c 			mod->state == MODULE_STATE_GOING)
mod              2077 kernel/module.c 		frob_text(&mod->core_layout, set_memory_ro);
mod              2078 kernel/module.c 		frob_text(&mod->init_layout, set_memory_ro);
mod              2083 kernel/module.c static void module_enable_nx(const struct module *mod) { }
mod              2085 kernel/module.c static void module_enable_x(const struct module *mod)
mod              2087 kernel/module.c 	frob_text(&mod->core_layout, set_memory_x);
mod              2088 kernel/module.c 	frob_text(&mod->init_layout, set_memory_x);
mod              2091 kernel/module.c static void module_enable_nx(const struct module *mod) { }
mod              2092 kernel/module.c static void module_enable_x(const struct module *mod) { }
mod              2102 kernel/module.c static int copy_module_elf(struct module *mod, struct load_info *info)
mod              2107 kernel/module.c 	size = sizeof(*mod->klp_info);
mod              2108 kernel/module.c 	mod->klp_info = kmalloc(size, GFP_KERNEL);
mod              2109 kernel/module.c 	if (mod->klp_info == NULL)
mod              2113 kernel/module.c 	size = sizeof(mod->klp_info->hdr);
mod              2114 kernel/module.c 	memcpy(&mod->klp_info->hdr, info->hdr, size);
mod              2118 kernel/module.c 	mod->klp_info->sechdrs = kmemdup(info->sechdrs, size, GFP_KERNEL);
mod              2119 kernel/module.c 	if (mod->klp_info->sechdrs == NULL) {
mod              2126 kernel/module.c 	mod->klp_info->secstrings = kmemdup(info->secstrings, size, GFP_KERNEL);
mod              2127 kernel/module.c 	if (mod->klp_info->secstrings == NULL) {
mod              2134 kernel/module.c 	mod->klp_info->symndx = symndx;
mod              2142 kernel/module.c 	mod->klp_info->sechdrs[symndx].sh_addr = \
mod              2143 kernel/module.c 		(unsigned long) mod->core_kallsyms.symtab;
mod              2148 kernel/module.c 	kfree(mod->klp_info->sechdrs);
mod              2150 kernel/module.c 	kfree(mod->klp_info);
mod              2154 kernel/module.c static void free_module_elf(struct module *mod)
mod              2156 kernel/module.c 	kfree(mod->klp_info->sechdrs);
mod              2157 kernel/module.c 	kfree(mod->klp_info->secstrings);
mod              2158 kernel/module.c 	kfree(mod->klp_info);
mod              2161 kernel/module.c static int copy_module_elf(struct module *mod, struct load_info *info)
mod              2166 kernel/module.c static void free_module_elf(struct module *mod)
mod              2181 kernel/module.c void __weak module_arch_cleanup(struct module *mod)
mod              2185 kernel/module.c void __weak module_arch_freeing_init(struct module *mod)
mod              2190 kernel/module.c static void free_module(struct module *mod)
mod              2192 kernel/module.c 	trace_module_free(mod);
mod              2194 kernel/module.c 	mod_sysfs_teardown(mod);
mod              2199 kernel/module.c 	mod->state = MODULE_STATE_UNFORMED;
mod              2203 kernel/module.c 	ddebug_remove_module(mod->name);
mod              2206 kernel/module.c 	module_arch_cleanup(mod);
mod              2209 kernel/module.c 	module_unload_free(mod);
mod              2212 kernel/module.c 	destroy_params(mod->kp, mod->num_kp);
mod              2214 kernel/module.c 	if (is_livepatch_module(mod))
mod              2215 kernel/module.c 		free_module_elf(mod);
mod              2220 kernel/module.c 	list_del_rcu(&mod->list);
mod              2221 kernel/module.c 	mod_tree_remove(mod);
mod              2223 kernel/module.c 	module_bug_cleanup(mod);
mod              2229 kernel/module.c 	module_arch_freeing_init(mod);
mod              2230 kernel/module.c 	module_memfree(mod->init_layout.base);
mod              2231 kernel/module.c 	kfree(mod->args);
mod              2232 kernel/module.c 	percpu_modfree(mod);
mod              2235 kernel/module.c 	lockdep_free_key_range(mod->core_layout.base, mod->core_layout.size);
mod              2238 kernel/module.c 	module_memfree(mod->core_layout.base);
mod              2262 kernel/module.c static int verify_exported_symbols(struct module *mod)
mod              2271 kernel/module.c 		{ mod->syms, mod->num_syms },
mod              2272 kernel/module.c 		{ mod->gpl_syms, mod->num_gpl_syms },
mod              2273 kernel/module.c 		{ mod->gpl_future_syms, mod->num_gpl_future_syms },
mod              2275 kernel/module.c 		{ mod->unused_syms, mod->num_unused_syms },
mod              2276 kernel/module.c 		{ mod->unused_gpl_syms, mod->num_unused_gpl_syms },
mod              2286 kernel/module.c 				       mod->name, kernel_symbol_name(s),
mod              2296 kernel/module.c static int simplify_symbols(struct module *mod, const struct load_info *info)
mod              2318 kernel/module.c 			       mod->name);
mod              2333 kernel/module.c 			ksym = resolve_symbol_wait(mod, info, name);
mod              2346 kernel/module.c 				mod->name, name, ret);
mod              2352 kernel/module.c 				secbase = (unsigned long)mod_percpu(mod);
mod              2363 kernel/module.c static int apply_relocations(struct module *mod, const struct load_info *info)
mod              2386 kernel/module.c 					     info->index.sym, i, mod);
mod              2389 kernel/module.c 						 info->index.sym, i, mod);
mod              2397 kernel/module.c unsigned int __weak arch_mod_section_prepend(struct module *mod,
mod              2405 kernel/module.c static long get_offset(struct module *mod, unsigned int *size,
mod              2410 kernel/module.c 	*size += arch_mod_section_prepend(mod, section);
mod              2420 kernel/module.c static void layout_sections(struct module *mod, struct load_info *info)
mod              2448 kernel/module.c 			s->sh_entsize = get_offset(mod, &mod->core_layout.size, s, i);
mod              2453 kernel/module.c 			mod->core_layout.size = debug_align(mod->core_layout.size);
mod              2454 kernel/module.c 			mod->core_layout.text_size = mod->core_layout.size;
mod              2457 kernel/module.c 			mod->core_layout.size = debug_align(mod->core_layout.size);
mod              2458 kernel/module.c 			mod->core_layout.ro_size = mod->core_layout.size;
mod              2461 kernel/module.c 			mod->core_layout.size = debug_align(mod->core_layout.size);
mod              2462 kernel/module.c 			mod->core_layout.ro_after_init_size = mod->core_layout.size;
mod              2465 kernel/module.c 			mod->core_layout.size = debug_align(mod->core_layout.size);
mod              2481 kernel/module.c 			s->sh_entsize = (get_offset(mod, &mod->init_layout.size, s, i)
mod              2487 kernel/module.c 			mod->init_layout.size = debug_align(mod->init_layout.size);
mod              2488 kernel/module.c 			mod->init_layout.text_size = mod->init_layout.size;
mod              2491 kernel/module.c 			mod->init_layout.size = debug_align(mod->init_layout.size);
mod              2492 kernel/module.c 			mod->init_layout.ro_size = mod->init_layout.size;
mod              2499 kernel/module.c 			mod->init_layout.ro_after_init_size = mod->init_layout.ro_size;
mod              2502 kernel/module.c 			mod->init_layout.size = debug_align(mod->init_layout.size);
mod              2508 kernel/module.c static void set_license(struct module *mod, const char *license)
mod              2516 kernel/module.c 				mod->name, license);
mod              2517 kernel/module.c 		add_taint_module(mod, TAINT_PROPRIETARY_MODULE,
mod              2572 kernel/module.c static void setup_modinfo(struct module *mod, struct load_info *info)
mod              2579 kernel/module.c 			attr->setup(mod, get_modinfo(info, attr->attr.name));
mod              2583 kernel/module.c static void free_modinfo(struct module *mod)
mod              2590 kernel/module.c 			attr->free(mod);
mod              2606 kernel/module.c 		       const struct module *mod)
mod              2609 kernel/module.c 	if (!mod)
mod              2612 kernel/module.c 		ks = lookup_exported_symbol(name, mod->syms, mod->syms + mod->num_syms);
mod              2691 kernel/module.c static void layout_symtab(struct module *mod, struct load_info *info)
mod              2700 kernel/module.c 	symsect->sh_entsize = get_offset(mod, &mod->init_layout.size, symsect,
mod              2709 kernel/module.c 		if (i == 0 || is_livepatch_module(mod) ||
mod              2718 kernel/module.c 	info->symoffs = ALIGN(mod->core_layout.size, symsect->sh_addralign ?: 1);
mod              2719 kernel/module.c 	info->stroffs = mod->core_layout.size = info->symoffs + ndst * sizeof(Elf_Sym);
mod              2720 kernel/module.c 	mod->core_layout.size += strtab_size;
mod              2721 kernel/module.c 	info->core_typeoffs = mod->core_layout.size;
mod              2722 kernel/module.c 	mod->core_layout.size += ndst * sizeof(char);
mod              2723 kernel/module.c 	mod->core_layout.size = debug_align(mod->core_layout.size);
mod              2727 kernel/module.c 	strsect->sh_entsize = get_offset(mod, &mod->init_layout.size, strsect,
mod              2732 kernel/module.c 	mod->init_layout.size = ALIGN(mod->init_layout.size,
mod              2734 kernel/module.c 	info->mod_kallsyms_init_off = mod->init_layout.size;
mod              2735 kernel/module.c 	mod->init_layout.size += sizeof(struct mod_kallsyms);
mod              2736 kernel/module.c 	info->init_typeoffs = mod->init_layout.size;
mod              2737 kernel/module.c 	mod->init_layout.size += nsrc * sizeof(char);
mod              2738 kernel/module.c 	mod->init_layout.size = debug_align(mod->init_layout.size);
mod              2746 kernel/module.c static void add_kallsyms(struct module *mod, const struct load_info *info)
mod              2755 kernel/module.c 	mod->kallsyms = mod->init_layout.base + info->mod_kallsyms_init_off;
mod              2757 kernel/module.c 	mod->kallsyms->symtab = (void *)symsec->sh_addr;
mod              2758 kernel/module.c 	mod->kallsyms->num_symtab = symsec->sh_size / sizeof(Elf_Sym);
mod              2760 kernel/module.c 	mod->kallsyms->strtab = (void *)info->sechdrs[info->index.str].sh_addr;
mod              2761 kernel/module.c 	mod->kallsyms->typetab = mod->init_layout.base + info->init_typeoffs;
mod              2767 kernel/module.c 	mod->core_kallsyms.symtab = dst = mod->core_layout.base + info->symoffs;
mod              2768 kernel/module.c 	mod->core_kallsyms.strtab = s = mod->core_layout.base + info->stroffs;
mod              2769 kernel/module.c 	mod->core_kallsyms.typetab = mod->core_layout.base + info->core_typeoffs;
mod              2770 kernel/module.c 	src = mod->kallsyms->symtab;
mod              2771 kernel/module.c 	for (ndst = i = 0; i < mod->kallsyms->num_symtab; i++) {
mod              2772 kernel/module.c 		mod->kallsyms->typetab[i] = elf_type(src + i, info);
mod              2773 kernel/module.c 		if (i == 0 || is_livepatch_module(mod) ||
mod              2776 kernel/module.c 			mod->core_kallsyms.typetab[ndst] =
mod              2777 kernel/module.c 			    mod->kallsyms->typetab[i];
mod              2779 kernel/module.c 			dst[ndst++].st_name = s - mod->core_kallsyms.strtab;
mod              2780 kernel/module.c 			s += strlcpy(s, &mod->kallsyms->strtab[src[i].st_name],
mod              2784 kernel/module.c 	mod->core_kallsyms.num_symtab = ndst;
mod              2787 kernel/module.c static inline void layout_symtab(struct module *mod, struct load_info *info)
mod              2791 kernel/module.c static void add_kallsyms(struct module *mod, const struct load_info *info)
mod              2796 kernel/module.c static void dynamic_debug_setup(struct module *mod, struct _ddebug *debug, unsigned int num)
mod              2800 kernel/module.c 	ddebug_add_module(debug, num, mod->name);
mod              2803 kernel/module.c static void dynamic_debug_remove(struct module *mod, struct _ddebug *debug)
mod              2806 kernel/module.c 		ddebug_remove_module(mod->name);
mod              2820 kernel/module.c static void kmemleak_load_module(const struct module *mod,
mod              2826 kernel/module.c 	kmemleak_scan_area(mod, sizeof(struct module), GFP_KERNEL);
mod              2840 kernel/module.c static inline void kmemleak_load_module(const struct module *mod,
mod              2852 kernel/module.c 	const void *mod = info->hdr;
mod              2860 kernel/module.c 	    memcmp(mod + info->len - markerlen, MODULE_SIG_STRING, markerlen) == 0) {
mod              2863 kernel/module.c 		err = mod_verify_sig(mod, info);
mod              2944 kernel/module.c static int check_modinfo_livepatch(struct module *mod, struct load_info *info)
mod              2947 kernel/module.c 		mod->klp = true;
mod              2948 kernel/module.c 		add_taint_module(mod, TAINT_LIVEPATCH, LOCKDEP_STILL_OK);
mod              2950 kernel/module.c 			       mod->name);
mod              2956 kernel/module.c static int check_modinfo_livepatch(struct module *mod, struct load_info *info)
mod              2960 kernel/module.c 		       mod->name);
mod              2968 kernel/module.c static void check_modinfo_retpoline(struct module *mod, struct load_info *info)
mod              2974 kernel/module.c 		mod->name);
mod              3082 kernel/module.c 	info->index.mod = find_sec(info, ".gnu.linkonce.this_module");
mod              3083 kernel/module.c 	if (!info->index.mod) {
mod              3089 kernel/module.c 	info->mod = (void *)info->hdr + info->sechdrs[info->index.mod].sh_offset;
mod              3096 kernel/module.c 		info->name = info->mod->name;
mod              3108 kernel/module.c static int check_modinfo(struct module *mod, struct load_info *info, int flags)
mod              3118 kernel/module.c 		err = try_to_force_load(mod, "bad vermagic");
mod              3130 kernel/module.c 				mod->name);
mod              3131 kernel/module.c 		add_taint_module(mod, TAINT_OOT_MODULE, LOCKDEP_STILL_OK);
mod              3134 kernel/module.c 	check_modinfo_retpoline(mod, info);
mod              3137 kernel/module.c 		add_taint_module(mod, TAINT_CRAP, LOCKDEP_STILL_OK);
mod              3139 kernel/module.c 			"is unknown, you have been warned.\n", mod->name);
mod              3142 kernel/module.c 	err = check_modinfo_livepatch(mod, info);
mod              3147 kernel/module.c 	set_license(mod, get_modinfo(info, "license"));
mod              3152 kernel/module.c static int find_module_sections(struct module *mod, struct load_info *info)
mod              3154 kernel/module.c 	mod->kp = section_objs(info, "__param",
mod              3155 kernel/module.c 			       sizeof(*mod->kp), &mod->num_kp);
mod              3156 kernel/module.c 	mod->syms = section_objs(info, "__ksymtab",
mod              3157 kernel/module.c 				 sizeof(*mod->syms), &mod->num_syms);
mod              3158 kernel/module.c 	mod->crcs = section_addr(info, "__kcrctab");
mod              3159 kernel/module.c 	mod->gpl_syms = section_objs(info, "__ksymtab_gpl",
mod              3160 kernel/module.c 				     sizeof(*mod->gpl_syms),
mod              3161 kernel/module.c 				     &mod->num_gpl_syms);
mod              3162 kernel/module.c 	mod->gpl_crcs = section_addr(info, "__kcrctab_gpl");
mod              3163 kernel/module.c 	mod->gpl_future_syms = section_objs(info,
mod              3165 kernel/module.c 					    sizeof(*mod->gpl_future_syms),
mod              3166 kernel/module.c 					    &mod->num_gpl_future_syms);
mod              3167 kernel/module.c 	mod->gpl_future_crcs = section_addr(info, "__kcrctab_gpl_future");
mod              3170 kernel/module.c 	mod->unused_syms = section_objs(info, "__ksymtab_unused",
mod              3171 kernel/module.c 					sizeof(*mod->unused_syms),
mod              3172 kernel/module.c 					&mod->num_unused_syms);
mod              3173 kernel/module.c 	mod->unused_crcs = section_addr(info, "__kcrctab_unused");
mod              3174 kernel/module.c 	mod->unused_gpl_syms = section_objs(info, "__ksymtab_unused_gpl",
mod              3175 kernel/module.c 					    sizeof(*mod->unused_gpl_syms),
mod              3176 kernel/module.c 					    &mod->num_unused_gpl_syms);
mod              3177 kernel/module.c 	mod->unused_gpl_crcs = section_addr(info, "__kcrctab_unused_gpl");
mod              3180 kernel/module.c 	mod->ctors = section_objs(info, ".ctors",
mod              3181 kernel/module.c 				  sizeof(*mod->ctors), &mod->num_ctors);
mod              3182 kernel/module.c 	if (!mod->ctors)
mod              3183 kernel/module.c 		mod->ctors = section_objs(info, ".init_array",
mod              3184 kernel/module.c 				sizeof(*mod->ctors), &mod->num_ctors);
mod              3191 kernel/module.c 		       mod->name);
mod              3197 kernel/module.c 	mod->tracepoints_ptrs = section_objs(info, "__tracepoints_ptrs",
mod              3198 kernel/module.c 					     sizeof(*mod->tracepoints_ptrs),
mod              3199 kernel/module.c 					     &mod->num_tracepoints);
mod              3202 kernel/module.c 	mod->srcu_struct_ptrs = section_objs(info, "___srcu_struct_ptrs",
mod              3203 kernel/module.c 					     sizeof(*mod->srcu_struct_ptrs),
mod              3204 kernel/module.c 					     &mod->num_srcu_structs);
mod              3207 kernel/module.c 	mod->bpf_raw_events = section_objs(info, "__bpf_raw_tp_map",
mod              3208 kernel/module.c 					   sizeof(*mod->bpf_raw_events),
mod              3209 kernel/module.c 					   &mod->num_bpf_raw_events);
mod              3212 kernel/module.c 	mod->jump_entries = section_objs(info, "__jump_table",
mod              3213 kernel/module.c 					sizeof(*mod->jump_entries),
mod              3214 kernel/module.c 					&mod->num_jump_entries);
mod              3217 kernel/module.c 	mod->trace_events = section_objs(info, "_ftrace_events",
mod              3218 kernel/module.c 					 sizeof(*mod->trace_events),
mod              3219 kernel/module.c 					 &mod->num_trace_events);
mod              3220 kernel/module.c 	mod->trace_evals = section_objs(info, "_ftrace_eval_map",
mod              3221 kernel/module.c 					sizeof(*mod->trace_evals),
mod              3222 kernel/module.c 					&mod->num_trace_evals);
mod              3225 kernel/module.c 	mod->trace_bprintk_fmt_start = section_objs(info, "__trace_printk_fmt",
mod              3226 kernel/module.c 					 sizeof(*mod->trace_bprintk_fmt_start),
mod              3227 kernel/module.c 					 &mod->num_trace_bprintk_fmt);
mod              3231 kernel/module.c 	mod->ftrace_callsites = section_objs(info, "__mcount_loc",
mod              3232 kernel/module.c 					     sizeof(*mod->ftrace_callsites),
mod              3233 kernel/module.c 					     &mod->num_ftrace_callsites);
mod              3236 kernel/module.c 	mod->ei_funcs = section_objs(info, "_error_injection_whitelist",
mod              3237 kernel/module.c 					    sizeof(*mod->ei_funcs),
mod              3238 kernel/module.c 					    &mod->num_ei_funcs);
mod              3240 kernel/module.c 	mod->extable = section_objs(info, "__ex_table",
mod              3241 kernel/module.c 				    sizeof(*mod->extable), &mod->num_exentries);
mod              3244 kernel/module.c 		pr_warn("%s: Ignoring obsolete parameters\n", mod->name);
mod              3252 kernel/module.c static int move_module(struct module *mod, struct load_info *info)
mod              3258 kernel/module.c 	ptr = module_alloc(mod->core_layout.size);
mod              3268 kernel/module.c 	memset(ptr, 0, mod->core_layout.size);
mod              3269 kernel/module.c 	mod->core_layout.base = ptr;
mod              3271 kernel/module.c 	if (mod->init_layout.size) {
mod              3272 kernel/module.c 		ptr = module_alloc(mod->init_layout.size);
mod              3281 kernel/module.c 			module_memfree(mod->core_layout.base);
mod              3284 kernel/module.c 		memset(ptr, 0, mod->init_layout.size);
mod              3285 kernel/module.c 		mod->init_layout.base = ptr;
mod              3287 kernel/module.c 		mod->init_layout.base = NULL;
mod              3299 kernel/module.c 			dest = mod->init_layout.base
mod              3302 kernel/module.c 			dest = mod->core_layout.base + shdr->sh_entsize;
mod              3315 kernel/module.c static int check_module_license_and_versions(struct module *mod)
mod              3324 kernel/module.c 	if (strcmp(mod->name, "ndiswrapper") == 0)
mod              3328 kernel/module.c 	if (strcmp(mod->name, "driverloader") == 0)
mod              3329 kernel/module.c 		add_taint_module(mod, TAINT_PROPRIETARY_MODULE,
mod              3333 kernel/module.c 	if (strcmp(mod->name, "lve") == 0)
mod              3334 kernel/module.c 		add_taint_module(mod, TAINT_PROPRIETARY_MODULE,
mod              3338 kernel/module.c 		pr_warn("%s: module license taints kernel.\n", mod->name);
mod              3341 kernel/module.c 	if ((mod->num_syms && !mod->crcs)
mod              3342 kernel/module.c 	    || (mod->num_gpl_syms && !mod->gpl_crcs)
mod              3343 kernel/module.c 	    || (mod->num_gpl_future_syms && !mod->gpl_future_crcs)
mod              3345 kernel/module.c 	    || (mod->num_unused_syms && !mod->unused_crcs)
mod              3346 kernel/module.c 	    || (mod->num_unused_gpl_syms && !mod->unused_gpl_crcs)
mod              3349 kernel/module.c 		return try_to_force_load(mod,
mod              3356 kernel/module.c static void flush_module_icache(const struct module *mod)
mod              3369 kernel/module.c 	if (mod->init_layout.base)
mod              3370 kernel/module.c 		flush_icache_range((unsigned long)mod->init_layout.base,
mod              3371 kernel/module.c 				   (unsigned long)mod->init_layout.base
mod              3372 kernel/module.c 				   + mod->init_layout.size);
mod              3373 kernel/module.c 	flush_icache_range((unsigned long)mod->core_layout.base,
mod              3374 kernel/module.c 			   (unsigned long)mod->core_layout.base + mod->core_layout.size);
mod              3382 kernel/module.c 				     struct module *mod)
mod              3410 kernel/module.c 	struct module *mod;
mod              3414 kernel/module.c 	err = check_modinfo(info->mod, info, flags);
mod              3420 kernel/module.c 					info->secstrings, info->mod);
mod              3448 kernel/module.c 	layout_sections(info->mod, info);
mod              3449 kernel/module.c 	layout_symtab(info->mod, info);
mod              3452 kernel/module.c 	err = move_module(info->mod, info);
mod              3457 kernel/module.c 	mod = (void *)info->sechdrs[info->index.mod].sh_addr;
mod              3458 kernel/module.c 	kmemleak_load_module(mod, info);
mod              3459 kernel/module.c 	return mod;
mod              3463 kernel/module.c static void module_deallocate(struct module *mod, struct load_info *info)
mod              3465 kernel/module.c 	percpu_modfree(mod);
mod              3466 kernel/module.c 	module_arch_freeing_init(mod);
mod              3467 kernel/module.c 	module_memfree(mod->init_layout.base);
mod              3468 kernel/module.c 	module_memfree(mod->core_layout.base);
mod              3478 kernel/module.c static int post_relocation(struct module *mod, const struct load_info *info)
mod              3481 kernel/module.c 	sort_extable(mod->extable, mod->extable + mod->num_exentries);
mod              3484 kernel/module.c 	percpu_modcopy(mod, (void *)info->sechdrs[info->index.pcpu].sh_addr,
mod              3488 kernel/module.c 	add_kallsyms(mod, info);
mod              3491 kernel/module.c 	return module_finalize(info->hdr, info->sechdrs, mod);
mod              3497 kernel/module.c 	struct module *mod;
mod              3507 kernel/module.c 	mod = find_module_all(name, strlen(name), true);
mod              3508 kernel/module.c 	ret = !mod || mod->state == MODULE_STATE_LIVE;
mod              3515 kernel/module.c static void do_mod_ctors(struct module *mod)
mod              3520 kernel/module.c 	for (i = 0; i < mod->num_ctors; i++)
mod              3521 kernel/module.c 		mod->ctors[i]();
mod              3561 kernel/module.c static noinline int do_init_module(struct module *mod)
mod              3571 kernel/module.c 	freeinit->module_init = mod->init_layout.base;
mod              3579 kernel/module.c 	do_mod_ctors(mod);
mod              3581 kernel/module.c 	if (mod->init != NULL)
mod              3582 kernel/module.c 		ret = do_one_initcall(mod->init);
mod              3590 kernel/module.c 			__func__, mod->name, ret, __func__);
mod              3595 kernel/module.c 	mod->state = MODULE_STATE_LIVE;
mod              3597 kernel/module.c 				     MODULE_STATE_LIVE, mod);
mod              3616 kernel/module.c 	if (!mod->async_probe_requested && (current->flags & PF_USED_ASYNC))
mod              3619 kernel/module.c 	ftrace_free_mem(mod, mod->init_layout.base, mod->init_layout.base +
mod              3620 kernel/module.c 			mod->init_layout.size);
mod              3623 kernel/module.c 	module_put(mod);
mod              3624 kernel/module.c 	trim_init_extable(mod);
mod              3627 kernel/module.c 	rcu_assign_pointer(mod->kallsyms, &mod->core_kallsyms);
mod              3629 kernel/module.c 	module_enable_ro(mod, true);
mod              3630 kernel/module.c 	mod_tree_remove_init(mod);
mod              3631 kernel/module.c 	module_arch_freeing_init(mod);
mod              3632 kernel/module.c 	mod->init_layout.base = NULL;
mod              3633 kernel/module.c 	mod->init_layout.size = 0;
mod              3634 kernel/module.c 	mod->init_layout.ro_size = 0;
mod              3635 kernel/module.c 	mod->init_layout.ro_after_init_size = 0;
mod              3636 kernel/module.c 	mod->init_layout.text_size = 0;
mod              3662 kernel/module.c 	mod->state = MODULE_STATE_GOING;
mod              3664 kernel/module.c 	module_put(mod);
mod              3666 kernel/module.c 				     MODULE_STATE_GOING, mod);
mod              3667 kernel/module.c 	klp_module_going(mod);
mod              3668 kernel/module.c 	ftrace_release_mod(mod);
mod              3669 kernel/module.c 	free_module(mod);
mod              3687 kernel/module.c static int add_unformed_module(struct module *mod)
mod              3692 kernel/module.c 	mod->state = MODULE_STATE_UNFORMED;
mod              3696 kernel/module.c 	old = find_module_all(mod->name, strlen(mod->name), true);
mod              3702 kernel/module.c 					       finished_loading(mod->name));
mod              3710 kernel/module.c 	mod_update_bounds(mod);
mod              3711 kernel/module.c 	list_add_rcu(&mod->list, &modules);
mod              3712 kernel/module.c 	mod_tree_insert(mod);
mod              3721 kernel/module.c static int complete_formation(struct module *mod, struct load_info *info)
mod              3728 kernel/module.c 	err = verify_exported_symbols(mod);
mod              3733 kernel/module.c 	module_bug_finalize(info->hdr, info->sechdrs, mod);
mod              3735 kernel/module.c 	module_enable_ro(mod, false);
mod              3736 kernel/module.c 	module_enable_nx(mod);
mod              3737 kernel/module.c 	module_enable_x(mod);
mod              3741 kernel/module.c 	mod->state = MODULE_STATE_COMING;
mod              3751 kernel/module.c static int prepare_coming_module(struct module *mod)
mod              3755 kernel/module.c 	ftrace_module_enable(mod);
mod              3756 kernel/module.c 	err = klp_module_coming(mod);
mod              3761 kernel/module.c 				     MODULE_STATE_COMING, mod);
mod              3768 kernel/module.c 	struct module *mod = arg;
mod              3772 kernel/module.c 		mod->async_probe_requested = true;
mod              3788 kernel/module.c 	struct module *mod;
mod              3814 kernel/module.c 	if (!check_modstruct_version(info, info->mod)) {
mod              3820 kernel/module.c 	mod = layout_and_allocate(info, flags);
mod              3821 kernel/module.c 	if (IS_ERR(mod)) {
mod              3822 kernel/module.c 		err = PTR_ERR(mod);
mod              3826 kernel/module.c 	audit_log_kern_module(mod->name);
mod              3829 kernel/module.c 	err = add_unformed_module(mod);
mod              3834 kernel/module.c 	mod->sig_ok = info->sig_ok;
mod              3835 kernel/module.c 	if (!mod->sig_ok) {
mod              3838 kernel/module.c 			       "kernel\n", mod->name);
mod              3839 kernel/module.c 		add_taint_module(mod, TAINT_UNSIGNED_MODULE, LOCKDEP_STILL_OK);
mod              3844 kernel/module.c 	err = percpu_modalloc(mod, info);
mod              3849 kernel/module.c 	err = module_unload_init(mod);
mod              3853 kernel/module.c 	init_param_lock(mod);
mod              3857 kernel/module.c 	err = find_module_sections(mod, info);
mod              3861 kernel/module.c 	err = check_module_license_and_versions(mod);
mod              3866 kernel/module.c 	setup_modinfo(mod, info);
mod              3869 kernel/module.c 	err = simplify_symbols(mod, info);
mod              3873 kernel/module.c 	err = apply_relocations(mod, info);
mod              3877 kernel/module.c 	err = post_relocation(mod, info);
mod              3881 kernel/module.c 	flush_module_icache(mod);
mod              3884 kernel/module.c 	mod->args = strndup_user(uargs, ~0UL >> 1);
mod              3885 kernel/module.c 	if (IS_ERR(mod->args)) {
mod              3886 kernel/module.c 		err = PTR_ERR(mod->args);
mod              3890 kernel/module.c 	dynamic_debug_setup(mod, info->debug, info->num_debug);
mod              3893 kernel/module.c 	ftrace_module_init(mod);
mod              3896 kernel/module.c 	err = complete_formation(mod, info);
mod              3900 kernel/module.c 	err = prepare_coming_module(mod);
mod              3905 kernel/module.c 	after_dashes = parse_args(mod->name, mod->args, mod->kp, mod->num_kp,
mod              3906 kernel/module.c 				  -32768, 32767, mod,
mod              3913 kernel/module.c 		       mod->name, after_dashes);
mod              3917 kernel/module.c 	err = mod_sysfs_setup(mod, info, mod->kp, mod->num_kp);
mod              3921 kernel/module.c 	if (is_livepatch_module(mod)) {
mod              3922 kernel/module.c 		err = copy_module_elf(mod, info);
mod              3931 kernel/module.c 	trace_module_load(mod);
mod              3933 kernel/module.c 	return do_init_module(mod);
mod              3936 kernel/module.c 	mod_sysfs_teardown(mod);
mod              3938 kernel/module.c 	mod->state = MODULE_STATE_GOING;
mod              3939 kernel/module.c 	destroy_params(mod->kp, mod->num_kp);
mod              3941 kernel/module.c 				     MODULE_STATE_GOING, mod);
mod              3942 kernel/module.c 	klp_module_going(mod);
mod              3946 kernel/module.c 	module_bug_cleanup(mod);
mod              3950 kernel/module.c 	ftrace_release_mod(mod);
mod              3951 kernel/module.c 	dynamic_debug_remove(mod, info->debug);
mod              3953 kernel/module.c 	kfree(mod->args);
mod              3955 kernel/module.c 	module_arch_cleanup(mod);
mod              3957 kernel/module.c 	free_modinfo(mod);
mod              3959 kernel/module.c 	module_unload_free(mod);
mod              3963 kernel/module.c 	list_del_rcu(&mod->list);
mod              3964 kernel/module.c 	mod_tree_remove(mod);
mod              3971 kernel/module.c 	lockdep_free_key_range(mod->core_layout.base, mod->core_layout.size);
mod              3973 kernel/module.c 	module_deallocate(mod, info);
mod              4053 kernel/module.c static const char *find_kallsyms_symbol(struct module *mod,
mod              4060 kernel/module.c 	struct mod_kallsyms *kallsyms = rcu_dereference_sched(mod->kallsyms);
mod              4063 kernel/module.c 	if (within_module_init(addr, mod))
mod              4064 kernel/module.c 		nextval = (unsigned long)mod->init_layout.base+mod->init_layout.text_size;
mod              4066 kernel/module.c 		nextval = (unsigned long)mod->core_layout.base+mod->core_layout.text_size;
mod              4104 kernel/module.c void * __weak dereference_module_function_descriptor(struct module *mod,
mod              4119 kernel/module.c 	struct module *mod;
mod              4122 kernel/module.c 	mod = __module_address(addr);
mod              4123 kernel/module.c 	if (mod) {
mod              4125 kernel/module.c 			*modname = mod->name;
mod              4127 kernel/module.c 		ret = find_kallsyms_symbol(mod, addr, size, offset);
mod              4141 kernel/module.c 	struct module *mod;
mod              4144 kernel/module.c 	list_for_each_entry_rcu(mod, &modules, list) {
mod              4145 kernel/module.c 		if (mod->state == MODULE_STATE_UNFORMED)
mod              4147 kernel/module.c 		if (within_module(addr, mod)) {
mod              4150 kernel/module.c 			sym = find_kallsyms_symbol(mod, addr, NULL, NULL);
mod              4167 kernel/module.c 	struct module *mod;
mod              4170 kernel/module.c 	list_for_each_entry_rcu(mod, &modules, list) {
mod              4171 kernel/module.c 		if (mod->state == MODULE_STATE_UNFORMED)
mod              4173 kernel/module.c 		if (within_module(addr, mod)) {
mod              4176 kernel/module.c 			sym = find_kallsyms_symbol(mod, addr, size, offset);
mod              4180 kernel/module.c 				strlcpy(modname, mod->name, MODULE_NAME_LEN);
mod              4195 kernel/module.c 	struct module *mod;
mod              4198 kernel/module.c 	list_for_each_entry_rcu(mod, &modules, list) {
mod              4201 kernel/module.c 		if (mod->state == MODULE_STATE_UNFORMED)
mod              4203 kernel/module.c 		kallsyms = rcu_dereference_sched(mod->kallsyms);
mod              4210 kernel/module.c 			strlcpy(module_name, mod->name, MODULE_NAME_LEN);
mod              4211 kernel/module.c 			*exported = is_exported(name, *value, mod);
mod              4222 kernel/module.c static unsigned long find_kallsyms_symbol_value(struct module *mod, const char *name)
mod              4225 kernel/module.c 	struct mod_kallsyms *kallsyms = rcu_dereference_sched(mod->kallsyms);
mod              4240 kernel/module.c 	struct module *mod;
mod              4247 kernel/module.c 		if ((mod = find_module_all(name, colon - name, false)) != NULL)
mod              4248 kernel/module.c 			ret = find_kallsyms_symbol_value(mod, colon+1);
mod              4250 kernel/module.c 		list_for_each_entry_rcu(mod, &modules, list) {
mod              4251 kernel/module.c 			if (mod->state == MODULE_STATE_UNFORMED)
mod              4253 kernel/module.c 			if ((ret = find_kallsyms_symbol_value(mod, name)) != 0)
mod              4265 kernel/module.c 	struct module *mod;
mod              4271 kernel/module.c 	list_for_each_entry(mod, &modules, list) {
mod              4273 kernel/module.c 		struct mod_kallsyms *kallsyms = mod->kallsyms;
mod              4275 kernel/module.c 		if (mod->state == MODULE_STATE_UNFORMED)
mod              4284 kernel/module.c 				 mod, kallsyms_symbol_value(sym));
mod              4297 kernel/module.c static char *module_flags(struct module *mod, char *buf)
mod              4301 kernel/module.c 	BUG_ON(mod->state == MODULE_STATE_UNFORMED);
mod              4302 kernel/module.c 	if (mod->taints ||
mod              4303 kernel/module.c 	    mod->state == MODULE_STATE_GOING ||
mod              4304 kernel/module.c 	    mod->state == MODULE_STATE_COMING) {
mod              4306 kernel/module.c 		bx += module_flags_taint(mod, buf + bx);
mod              4308 kernel/module.c 		if (mod->state == MODULE_STATE_GOING)
mod              4311 kernel/module.c 		if (mod->state == MODULE_STATE_COMING)
mod              4340 kernel/module.c 	struct module *mod = list_entry(p, struct module, list);
mod              4345 kernel/module.c 	if (mod->state == MODULE_STATE_UNFORMED)
mod              4349 kernel/module.c 		   mod->name, mod->init_layout.size + mod->core_layout.size);
mod              4350 kernel/module.c 	print_unload_info(m, mod);
mod              4354 kernel/module.c 		   mod->state == MODULE_STATE_GOING ? "Unloading" :
mod              4355 kernel/module.c 		   mod->state == MODULE_STATE_COMING ? "Loading" :
mod              4358 kernel/module.c 	value = m->private ? NULL : mod->core_layout.base;
mod              4362 kernel/module.c 	if (mod->taints)
mod              4363 kernel/module.c 		seq_printf(m, " %s", module_flags(mod, buf));
mod              4419 kernel/module.c 	struct module *mod;
mod              4422 kernel/module.c 	mod = __module_address(addr);
mod              4423 kernel/module.c 	if (!mod)
mod              4426 kernel/module.c 	if (!mod->num_exentries)
mod              4429 kernel/module.c 	e = search_extable(mod->extable,
mod              4430 kernel/module.c 			   mod->num_exentries,
mod              4469 kernel/module.c 	struct module *mod;
mod              4476 kernel/module.c 	mod = mod_find(addr);
mod              4477 kernel/module.c 	if (mod) {
mod              4478 kernel/module.c 		BUG_ON(!within_module(addr, mod));
mod              4479 kernel/module.c 		if (mod->state == MODULE_STATE_UNFORMED)
mod              4480 kernel/module.c 			mod = NULL;
mod              4482 kernel/module.c 	return mod;
mod              4514 kernel/module.c 	struct module *mod = __module_address(addr);
mod              4515 kernel/module.c 	if (mod) {
mod              4517 kernel/module.c 		if (!within(addr, mod->init_layout.base, mod->init_layout.text_size)
mod              4518 kernel/module.c 		    && !within(addr, mod->core_layout.base, mod->core_layout.text_size))
mod              4519 kernel/module.c 			mod = NULL;
mod              4521 kernel/module.c 	return mod;
mod              4528 kernel/module.c 	struct module *mod;
mod              4534 kernel/module.c 	list_for_each_entry_rcu(mod, &modules, list) {
mod              4535 kernel/module.c 		if (mod->state == MODULE_STATE_UNFORMED)
mod              4537 kernel/module.c 		pr_cont(" %s%s", mod->name, module_flags(mod, buf));
mod              4548 kernel/module.c void module_layout(struct module *mod,
mod                20 kernel/module_signing.c int mod_verify_sig(const void *mod, struct load_info *info)
mod                31 kernel/module_signing.c 	memcpy(&ms, mod + (modlen - sizeof(ms)), sizeof(ms));
mod                41 kernel/module_signing.c 	return verify_pkcs7_signature(mod, modlen, mod + modlen, sig_len,
mod                23 kernel/params.c #define KPARAM_MUTEX(mod)	((mod) ? &(mod)->param_lock : &param_lock)
mod                25 kernel/params.c #define KPARAM_MUTEX(mod)	(&param_lock)
mod                28 kernel/params.c static inline void check_kparam_locked(struct module *mod)
mod                30 kernel/params.c 	BUG_ON(!mutex_is_locked(KPARAM_MUTEX(mod)));
mod                33 kernel/params.c static inline void check_kparam_locked(struct module *mod)
mod               141 kernel/params.c 			kernel_param_lock(params[i].mod);
mod               146 kernel/params.c 			kernel_param_unlock(params[i].mod);
mod               394 kernel/params.c static int param_array(struct module *mod,
mod               426 kernel/params.c 		check_kparam_locked(mod);
mod               448 kernel/params.c 	return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem,
mod               464 kernel/params.c 		check_kparam_locked(p.mod);
mod               547 kernel/params.c 	kernel_param_lock(mk->mod);
mod               549 kernel/params.c 	kernel_param_unlock(mk->mod);
mod               564 kernel/params.c 	kernel_param_lock(mk->mod);
mod               569 kernel/params.c 	kernel_param_unlock(mk->mod);
mod               583 kernel/params.c void kernel_param_lock(struct module *mod)
mod               585 kernel/params.c 	mutex_lock(KPARAM_MUTEX(mod));
mod               588 kernel/params.c void kernel_param_unlock(struct module *mod)
mod               590 kernel/params.c 	mutex_unlock(KPARAM_MUTEX(mod));
mod               687 kernel/params.c int module_param_sysfs_setup(struct module *mod,
mod               697 kernel/params.c 		err = add_sysfs_param(&mod->mkobj, &kparam[i], kparam[i].name);
mod               699 kernel/params.c 			free_module_param_attrs(&mod->mkobj);
mod               709 kernel/params.c 	err = sysfs_create_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp);
mod               711 kernel/params.c 		free_module_param_attrs(&mod->mkobj);
mod               722 kernel/params.c void module_param_sysfs_remove(struct module *mod)
mod               724 kernel/params.c 	if (mod->mkobj.mp) {
mod               725 kernel/params.c 		sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp);
mod               728 kernel/params.c 		free_module_param_attrs(&mod->mkobj);
mod               755 kernel/params.c 		mk->mod = THIS_MODULE;
mod              1319 kernel/rcu/srcutree.c static int srcu_module_coming(struct module *mod)
mod              1322 kernel/rcu/srcutree.c 	struct srcu_struct **sspp = mod->srcu_struct_ptrs;
mod              1325 kernel/rcu/srcutree.c 	for (i = 0; i < mod->num_srcu_structs; i++) {
mod              1334 kernel/rcu/srcutree.c static void srcu_module_going(struct module *mod)
mod              1337 kernel/rcu/srcutree.c 	struct srcu_struct **sspp = mod->srcu_struct_ptrs;
mod              1339 kernel/rcu/srcutree.c 	for (i = 0; i < mod->num_srcu_structs; i++)
mod              1347 kernel/rcu/srcutree.c 	struct module *mod = data;
mod              1352 kernel/rcu/srcutree.c 		ret = srcu_module_coming(mod);
mod              1355 kernel/rcu/srcutree.c 		srcu_module_going(mod);
mod               218 kernel/trace/bpf_trace.c 	int mod[3] = {};
mod               246 kernel/trace/bpf_trace.c 			mod[fmt_cnt]++;
mod               249 kernel/trace/bpf_trace.c 			mod[fmt_cnt]++;
mod               285 kernel/trace/bpf_trace.c 			mod[fmt_cnt]++;
mod               304 kernel/trace/bpf_trace.c 	((mod[0] == 2 || (mod[0] == 1 && __BITS_PER_LONG == 64))	\
mod               306 kernel/trace/bpf_trace.c 	  : ((mod[0] == 1 || (mod[0] == 0 && __BITS_PER_LONG == 32))	\
mod               311 kernel/trace/bpf_trace.c 	((mod[1] == 2 || (mod[1] == 1 && __BITS_PER_LONG == 64))	\
mod               313 kernel/trace/bpf_trace.c 	  : ((mod[1] == 1 || (mod[1] == 0 && __BITS_PER_LONG == 32))	\
mod               318 kernel/trace/bpf_trace.c 	((mod[2] == 2 || (mod[2] == 1 && __BITS_PER_LONG == 64))	\
mod               320 kernel/trace/bpf_trace.c 	  : ((mod[2] == 1 || (mod[2] == 0 && __BITS_PER_LONG == 32))	\
mod              1323 kernel/trace/bpf_trace.c 	struct module *mod = __module_address((unsigned long)btp);
mod              1325 kernel/trace/bpf_trace.c 	if (mod)
mod              1326 kernel/trace/bpf_trace.c 		module_put(mod);
mod              1477 kernel/trace/bpf_trace.c 	struct module *mod = module;
mod              1479 kernel/trace/bpf_trace.c 	if (mod->num_bpf_raw_events == 0 ||
mod              2497 kernel/trace/ftrace.c ftrace_code_disable(struct module *mod, struct dyn_ftrace *rec)
mod              2504 kernel/trace/ftrace.c 	ret = ftrace_make_nop(mod, rec, MCOUNT_ADDR);
mod              2905 kernel/trace/ftrace.c static int ftrace_update_code(struct module *mod, struct ftrace_page *new_pgs)
mod              2927 kernel/trace/ftrace.c 	if (mod)
mod              2946 kernel/trace/ftrace.c 			    !ftrace_code_disable(mod, p))
mod              3798 kernel/trace/ftrace.c match_records(struct ftrace_hash *hash, char *func, int len, char *mod)
mod              3804 kernel/trace/ftrace.c 	struct ftrace_glob *mod_match = (mod) ? &mod_g : NULL;
mod              3816 kernel/trace/ftrace.c 	if (mod) {
mod              3817 kernel/trace/ftrace.c 		mod_g.type = filter_parse_regex(mod, strlen(mod),
mod              3976 kernel/trace/ftrace.c 			     char *mod, bool enable)
mod              4000 kernel/trace/ftrace.c 		if (strcmp(ftrace_mod->module, mod) != 0)
mod              4026 kernel/trace/ftrace.c 		match_records(new_hash, func, strlen(func), mod);
mod              4048 kernel/trace/ftrace.c 	char *mod;
mod              4050 kernel/trace/ftrace.c 	mod = kstrdup(mod_name, GFP_KERNEL);
mod              4051 kernel/trace/ftrace.c 	if (!mod)
mod              4057 kernel/trace/ftrace.c 			process_mod_list(&tr->mod_trace, tr->ops, mod, true);
mod              4059 kernel/trace/ftrace.c 			process_mod_list(&tr->mod_notrace, tr->ops, mod, false);
mod              4063 kernel/trace/ftrace.c 	kfree(mod);
mod              5574 kernel/trace/ftrace.c static int ftrace_process_locs(struct module *mod,
mod              5606 kernel/trace/ftrace.c 	if (!mod) {
mod              5661 kernel/trace/ftrace.c 	if (!mod)
mod              5663 kernel/trace/ftrace.c 	ftrace_update_code(mod, start_pg);
mod              5664 kernel/trace/ftrace.c 	if (!mod)
mod              5683 kernel/trace/ftrace.c 	struct module		*mod;
mod              5765 kernel/trace/ftrace.c void ftrace_release_mod(struct module *mod)
mod              5781 kernel/trace/ftrace.c 		if (mod_map->mod == mod) {
mod              5795 kernel/trace/ftrace.c 		if (within_module_core(rec->ip, mod) ||
mod              5796 kernel/trace/ftrace.c 		    within_module_init(rec->ip, mod)) {
mod              5831 kernel/trace/ftrace.c void ftrace_module_enable(struct module *mod)
mod              5865 kernel/trace/ftrace.c 		if (!within_module_core(rec->ip, mod) &&
mod              5866 kernel/trace/ftrace.c 		    !within_module_init(rec->ip, mod))
mod              5900 kernel/trace/ftrace.c 	process_cached_mods(mod->name);
mod              5903 kernel/trace/ftrace.c void ftrace_module_init(struct module *mod)
mod              5905 kernel/trace/ftrace.c 	if (ftrace_disabled || !mod->num_ftrace_callsites)
mod              5908 kernel/trace/ftrace.c 	ftrace_process_locs(mod, mod->ftrace_callsites,
mod              5909 kernel/trace/ftrace.c 			    mod->ftrace_callsites + mod->num_ftrace_callsites);
mod              5945 kernel/trace/ftrace.c allocate_ftrace_mod_map(struct module *mod,
mod              5954 kernel/trace/ftrace.c 	mod_map->mod = mod;
mod              6009 kernel/trace/ftrace.c 				*modname = mod_map->mod->name;
mod              6042 kernel/trace/ftrace.c 			strlcpy(module_name, mod_map->mod->name, MODULE_NAME_LEN);
mod              6058 kernel/trace/ftrace.c allocate_ftrace_mod_map(struct module *mod,
mod              6118 kernel/trace/ftrace.c void ftrace_free_mem(struct module *mod, void *start_ptr, void *end_ptr)
mod              6143 kernel/trace/ftrace.c 	if (mod && ftrace_ops_list != &ftrace_list_end)
mod              6144 kernel/trace/ftrace.c 		mod_map = allocate_ftrace_mod_map(mod, start, end);
mod               129 kernel/trace/trace.c 	struct module			*mod;
mod              5357 kernel/trace/trace.c trace_insert_eval_map_file(struct module *mod, struct trace_eval_map **start,
mod              5393 kernel/trace/trace.c 	map_array->head.mod = mod;
mod              5414 kernel/trace/trace.c static inline void trace_insert_eval_map_file(struct module *mod,
mod              5418 kernel/trace/trace.c static void trace_insert_eval_map(struct module *mod,
mod              5430 kernel/trace/trace.c 	trace_insert_eval_map_file(mod, start, len);
mod              8709 kernel/trace/trace.c static void trace_module_add_evals(struct module *mod)
mod              8711 kernel/trace/trace.c 	if (!mod->num_trace_evals)
mod              8718 kernel/trace/trace.c 	if (trace_module_has_bad_taint(mod))
mod              8721 kernel/trace/trace.c 	trace_insert_eval_map(mod, mod->trace_evals, mod->num_trace_evals);
mod              8725 kernel/trace/trace.c static void trace_module_remove_evals(struct module *mod)
mod              8730 kernel/trace/trace.c 	if (!mod->num_trace_evals)
mod              8738 kernel/trace/trace.c 		if (map->head.mod == mod)
mod              8753 kernel/trace/trace.c static inline void trace_module_remove_evals(struct module *mod) { }
mod              8759 kernel/trace/trace.c 	struct module *mod = data;
mod              8763 kernel/trace/trace.c 		trace_module_add_evals(mod);
mod              8766 kernel/trace/trace.c 		trace_module_remove_evals(mod);
mod               175 kernel/trace/trace_event_perf.c 	module_put(tp_event->mod);
mod               222 kernel/trace/trace_event_perf.c 		    try_module_get(tp_event->mod)) {
mod               225 kernel/trace/trace_event_perf.c 				module_put(tp_event->mod);
mod              2090 kernel/trace/trace_events.c __register_event(struct trace_event_call *call, struct module *mod)
mod              2099 kernel/trace/trace_events.c 	call->mod = mod;
mod              2381 kernel/trace/trace_events.c static void trace_module_add_events(struct module *mod)
mod              2385 kernel/trace/trace_events.c 	if (!mod->num_trace_events)
mod              2389 kernel/trace/trace_events.c 	if (trace_module_has_bad_taint(mod)) {
mod              2391 kernel/trace/trace_events.c 		       mod->name);
mod              2395 kernel/trace/trace_events.c 	start = mod->trace_events;
mod              2396 kernel/trace/trace_events.c 	end = mod->trace_events + mod->num_trace_events;
mod              2399 kernel/trace/trace_events.c 		__register_event(*call, mod);
mod              2404 kernel/trace/trace_events.c static void trace_module_remove_events(struct module *mod)
mod              2410 kernel/trace/trace_events.c 		if (call->mod == mod)
mod              2429 kernel/trace/trace_events.c 	struct module *mod = data;
mod              2435 kernel/trace/trace_events.c 		trace_module_add_events(mod);
mod              2438 kernel/trace/trace_events.c 		trace_module_remove_events(mod);
mod              2633 kernel/trace/trace_events.c 		module_put(edata->file->event_call->mod);
mod              2766 kernel/trace/trace_events.c 	ret = try_module_get(file->event_call->mod);
mod              2796 kernel/trace/trace_events.c 	module_put(file->event_call->mod);
mod              2864 kernel/trace/trace_events.c 		if (WARN_ON_ONCE(call->mod))
mod              1313 kernel/trace/trace_events_trigger.c 		module_put(enable_data->file->event_call->mod);
mod              1455 kernel/trace/trace_events_trigger.c 	ret = try_module_get(event_enable_file->event_call->mod);
mod              1484 kernel/trace/trace_events_trigger.c 	module_put(event_enable_file->event_call->mod);
mod               108 kernel/trace/trace_kprobe.c 						 struct module *mod)
mod               110 kernel/trace/trace_kprobe.c 	int len = strlen(mod->name);
mod               112 kernel/trace/trace_kprobe.c 	return strncmp(mod->name, name, len) == 0 && name[len] == ':';
mod               674 kernel/trace/trace_kprobe.c 	struct module *mod = data;
mod               685 kernel/trace/trace_kprobe.c 		if (trace_kprobe_within_module(tk, mod)) {
mod               692 kernel/trace/trace_kprobe.c 					mod->name, ret);
mod                91 kernel/trace/trace_printk.c 	struct module *mod = data;
mod                92 kernel/trace/trace_printk.c 	if (mod->num_trace_bprintk_fmt) {
mod                93 kernel/trace/trace_printk.c 		const char **start = mod->trace_bprintk_fmt_start;
mod                94 kernel/trace/trace_printk.c 		const char **end = start + mod->num_trace_bprintk_fmt;
mod               375 kernel/tracepoint.c bool trace_module_has_bad_taint(struct module *mod)
mod               377 kernel/tracepoint.c 	return mod->taints & ~((1 << TAINT_OOT_MODULE) | (1 << TAINT_CRAP) |
mod               443 kernel/tracepoint.c static int tracepoint_module_coming(struct module *mod)
mod               448 kernel/tracepoint.c 	if (!mod->num_tracepoints)
mod               456 kernel/tracepoint.c 	if (trace_module_has_bad_taint(mod))
mod               464 kernel/tracepoint.c 	tp_mod->mod = mod;
mod               473 kernel/tracepoint.c static void tracepoint_module_going(struct module *mod)
mod               477 kernel/tracepoint.c 	if (!mod->num_tracepoints)
mod               482 kernel/tracepoint.c 		if (tp_mod->mod == mod) {
mod               491 kernel/tracepoint.c 			for_each_tracepoint_range(mod->tracepoints_ptrs,
mod               492 kernel/tracepoint.c 				mod->tracepoints_ptrs + mod->num_tracepoints,
mod               509 kernel/tracepoint.c 	struct module *mod = data;
mod               514 kernel/tracepoint.c 		ret = tracepoint_module_coming(mod);
mod               519 kernel/tracepoint.c 		tracepoint_module_going(mod);
mod                68 lib/bug.c      	struct module *mod;
mod                72 lib/bug.c      	list_for_each_entry_rcu(mod, &module_bug_list, bug_list) {
mod                75 lib/bug.c      		bug = mod->bug_table;
mod                76 lib/bug.c      		for (i = 0; i < mod->num_bugs; ++i, ++bug)
mod                88 lib/bug.c      			 struct module *mod)
mod                95 lib/bug.c      	mod->bug_table = NULL;
mod                96 lib/bug.c      	mod->num_bugs = 0;
mod               103 lib/bug.c      		mod->bug_table = (void *) sechdrs[i].sh_addr;
mod               104 lib/bug.c      		mod->num_bugs = sechdrs[i].sh_size / sizeof(struct bug_entry);
mod               115 lib/bug.c      	list_add_rcu(&mod->bug_list, &module_bug_list);
mod               118 lib/bug.c      void module_bug_cleanup(struct module *mod)
mod               121 lib/bug.c      	list_del_rcu(&mod->bug_list);
mod               220 lib/bug.c      	struct module *mod;
mod               223 lib/bug.c      	list_for_each_entry_rcu(mod, &module_bug_list, bug_list)
mod               224 lib/bug.c      		clear_once_table(mod->bug_table,
mod               225 lib/bug.c      				 mod->bug_table + mod->num_bugs);
mod               101 lib/error-inject.c static void module_load_ei_list(struct module *mod)
mod               103 lib/error-inject.c 	if (!mod->num_ei_funcs)
mod               106 lib/error-inject.c 	populate_error_injection_list(mod->ei_funcs,
mod               107 lib/error-inject.c 				      mod->ei_funcs + mod->num_ei_funcs, mod);
mod               110 lib/error-inject.c static void module_unload_ei_list(struct module *mod)
mod               114 lib/error-inject.c 	if (!mod->num_ei_funcs)
mod               119 lib/error-inject.c 		if (ent->priv == mod) {
mod               131 lib/error-inject.c 	struct module *mod = data;
mod               134 lib/error-inject.c 		module_load_ei_list(mod);
mod               136 lib/error-inject.c 		module_unload_ei_list(mod);
mod                37 lib/livepatch/test_klp_atomic_replace.c 	.mod = THIS_MODULE,
mod                23 lib/livepatch/test_klp_callbacks_demo.c 	if (obj->mod)
mod                24 lib/livepatch/test_klp_callbacks_demo.c 		pr_info("%s: %s -> %s\n", callback, obj->mod->name,
mod                25 lib/livepatch/test_klp_callbacks_demo.c 			module_state[obj->mod->state]);
mod               103 lib/livepatch/test_klp_callbacks_demo.c 	.mod = THIS_MODULE,
mod                23 lib/livepatch/test_klp_callbacks_demo2.c 	if (obj->mod)
mod                24 lib/livepatch/test_klp_callbacks_demo2.c 		pr_info("%s: %s -> %s\n", callback, obj->mod->name,
mod                25 lib/livepatch/test_klp_callbacks_demo2.c 			module_state[obj->mod->state]);
mod                73 lib/livepatch/test_klp_callbacks_demo2.c 	.mod = THIS_MODULE,
mod                33 lib/livepatch/test_klp_livepatch.c 	.mod = THIS_MODULE,
mod                24 lib/mpi/mpi-pow.c int mpi_powm(MPI res, MPI base, MPI exp, MPI mod)
mod                42 lib/mpi/mpi-pow.c 	msize = mod->nlimbs;
mod                44 lib/mpi/mpi-pow.c 	msign = mod->sign;
mod                55 lib/mpi/mpi-pow.c 		res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1;
mod                73 lib/mpi/mpi-pow.c 	mod_shift_cnt = count_leading_zeros(mod->d[msize - 1]);
mod                75 lib/mpi/mpi-pow.c 		mpihelp_lshift(mp, mod->d, msize, mod_shift_cnt);
mod                77 lib/mpi/mpi-pow.c 		MPN_COPY(mp, mod->d, msize);
mod               100 net/can/gw.c   					  struct cf_mod *mod);
mod               134 net/can/gw.c   	struct cf_mod mod;
mod               155 net/can/gw.c   					   struct cf_mod *mod) { op ; }
mod               157 net/can/gw.c   MODFUNC(mod_and_id, cf->can_id &= mod->modframe.and.can_id)
mod               158 net/can/gw.c   MODFUNC(mod_and_len, cf->len &= mod->modframe.and.len)
mod               159 net/can/gw.c   MODFUNC(mod_and_flags, cf->flags &= mod->modframe.and.flags)
mod               160 net/can/gw.c   MODFUNC(mod_and_data, *(u64 *)cf->data &= *(u64 *)mod->modframe.and.data)
mod               161 net/can/gw.c   MODFUNC(mod_or_id, cf->can_id |= mod->modframe.or.can_id)
mod               162 net/can/gw.c   MODFUNC(mod_or_len, cf->len |= mod->modframe.or.len)
mod               163 net/can/gw.c   MODFUNC(mod_or_flags, cf->flags |= mod->modframe.or.flags)
mod               164 net/can/gw.c   MODFUNC(mod_or_data, *(u64 *)cf->data |= *(u64 *)mod->modframe.or.data)
mod               165 net/can/gw.c   MODFUNC(mod_xor_id, cf->can_id ^= mod->modframe.xor.can_id)
mod               166 net/can/gw.c   MODFUNC(mod_xor_len, cf->len ^= mod->modframe.xor.len)
mod               167 net/can/gw.c   MODFUNC(mod_xor_flags, cf->flags ^= mod->modframe.xor.flags)
mod               168 net/can/gw.c   MODFUNC(mod_xor_data, *(u64 *)cf->data ^= *(u64 *)mod->modframe.xor.data)
mod               169 net/can/gw.c   MODFUNC(mod_set_id, cf->can_id = mod->modframe.set.can_id)
mod               170 net/can/gw.c   MODFUNC(mod_set_len, cf->len = mod->modframe.set.len)
mod               171 net/can/gw.c   MODFUNC(mod_set_flags, cf->flags = mod->modframe.set.flags)
mod               172 net/can/gw.c   MODFUNC(mod_set_data, *(u64 *)cf->data = *(u64 *)mod->modframe.set.data)
mod               174 net/can/gw.c   static void mod_and_fddata(struct canfd_frame *cf, struct cf_mod *mod)
mod               179 net/can/gw.c   		*(u64 *)(cf->data + i) &= *(u64 *)(mod->modframe.and.data + i);
mod               182 net/can/gw.c   static void mod_or_fddata(struct canfd_frame *cf, struct cf_mod *mod)
mod               187 net/can/gw.c   		*(u64 *)(cf->data + i) |= *(u64 *)(mod->modframe.or.data + i);
mod               190 net/can/gw.c   static void mod_xor_fddata(struct canfd_frame *cf, struct cf_mod *mod)
mod               195 net/can/gw.c   		*(u64 *)(cf->data + i) ^= *(u64 *)(mod->modframe.xor.data + i);
mod               198 net/can/gw.c   static void mod_set_fddata(struct canfd_frame *cf, struct cf_mod *mod)
mod               200 net/can/gw.c   	memcpy(cf->data, mod->modframe.set.data, CANFD_MAX_DLEN);
mod               448 net/can/gw.c   	if (gwj->mod.modfunc[0])
mod               471 net/can/gw.c   	while (modidx < MAX_MODFUNCTIONS && gwj->mod.modfunc[modidx])
mod               472 net/can/gw.c   		(*gwj->mod.modfunc[modidx++])(cf, &gwj->mod);
mod               488 net/can/gw.c   		if (gwj->mod.csumfunc.crc8)
mod               489 net/can/gw.c   			(*gwj->mod.csumfunc.crc8)(cf, &gwj->mod.csum.crc8);
mod               491 net/can/gw.c   		if (gwj->mod.csumfunc.xor)
mod               492 net/can/gw.c   			(*gwj->mod.csumfunc.xor)(cf, &gwj->mod.csum.xor);
mod               588 net/can/gw.c   		if (gwj->mod.modtype.and) {
mod               589 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf));
mod               590 net/can/gw.c   			mb.modtype = gwj->mod.modtype.and;
mod               595 net/can/gw.c   		if (gwj->mod.modtype.or) {
mod               596 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf));
mod               597 net/can/gw.c   			mb.modtype = gwj->mod.modtype.or;
mod               602 net/can/gw.c   		if (gwj->mod.modtype.xor) {
mod               603 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf));
mod               604 net/can/gw.c   			mb.modtype = gwj->mod.modtype.xor;
mod               609 net/can/gw.c   		if (gwj->mod.modtype.set) {
mod               610 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf));
mod               611 net/can/gw.c   			mb.modtype = gwj->mod.modtype.set;
mod               618 net/can/gw.c   		if (gwj->mod.modtype.and) {
mod               619 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf));
mod               620 net/can/gw.c   			mb.modtype = gwj->mod.modtype.and;
mod               625 net/can/gw.c   		if (gwj->mod.modtype.or) {
mod               626 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf));
mod               627 net/can/gw.c   			mb.modtype = gwj->mod.modtype.or;
mod               632 net/can/gw.c   		if (gwj->mod.modtype.xor) {
mod               633 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf));
mod               634 net/can/gw.c   			mb.modtype = gwj->mod.modtype.xor;
mod               639 net/can/gw.c   		if (gwj->mod.modtype.set) {
mod               640 net/can/gw.c   			memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf));
mod               641 net/can/gw.c   			mb.modtype = gwj->mod.modtype.set;
mod               647 net/can/gw.c   	if (gwj->mod.uid) {
mod               648 net/can/gw.c   		if (nla_put_u32(skb, CGW_MOD_UID, gwj->mod.uid) < 0)
mod               652 net/can/gw.c   	if (gwj->mod.csumfunc.crc8) {
mod               654 net/can/gw.c   			    &gwj->mod.csum.crc8) < 0)
mod               658 net/can/gw.c   	if (gwj->mod.csumfunc.xor) {
mod               660 net/can/gw.c   			    &gwj->mod.csum.xor) < 0)
mod               732 net/can/gw.c   static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod,
mod               741 net/can/gw.c   	memset(mod, 0, sizeof(*mod));
mod               762 net/can/gw.c   			canfdframecpy(&mod->modframe.and, &mb.cf);
mod               763 net/can/gw.c   			mod->modtype.and = mb.modtype;
mod               766 net/can/gw.c   				mod->modfunc[modidx++] = mod_and_id;
mod               769 net/can/gw.c   				mod->modfunc[modidx++] = mod_and_len;
mod               772 net/can/gw.c   				mod->modfunc[modidx++] = mod_and_flags;
mod               775 net/can/gw.c   				mod->modfunc[modidx++] = mod_and_fddata;
mod               781 net/can/gw.c   			canfdframecpy(&mod->modframe.or, &mb.cf);
mod               782 net/can/gw.c   			mod->modtype.or = mb.modtype;
mod               785 net/can/gw.c   				mod->modfunc[modidx++] = mod_or_id;
mod               788 net/can/gw.c   				mod->modfunc[modidx++] = mod_or_len;
mod               791 net/can/gw.c   				mod->modfunc[modidx++] = mod_or_flags;
mod               794 net/can/gw.c   				mod->modfunc[modidx++] = mod_or_fddata;
mod               800 net/can/gw.c   			canfdframecpy(&mod->modframe.xor, &mb.cf);
mod               801 net/can/gw.c   			mod->modtype.xor = mb.modtype;
mod               804 net/can/gw.c   				mod->modfunc[modidx++] = mod_xor_id;
mod               807 net/can/gw.c   				mod->modfunc[modidx++] = mod_xor_len;
mod               810 net/can/gw.c   				mod->modfunc[modidx++] = mod_xor_flags;
mod               813 net/can/gw.c   				mod->modfunc[modidx++] = mod_xor_fddata;
mod               819 net/can/gw.c   			canfdframecpy(&mod->modframe.set, &mb.cf);
mod               820 net/can/gw.c   			mod->modtype.set = mb.modtype;
mod               823 net/can/gw.c   				mod->modfunc[modidx++] = mod_set_id;
mod               826 net/can/gw.c   				mod->modfunc[modidx++] = mod_set_len;
mod               829 net/can/gw.c   				mod->modfunc[modidx++] = mod_set_flags;
mod               832 net/can/gw.c   				mod->modfunc[modidx++] = mod_set_fddata;
mod               840 net/can/gw.c   			canframecpy(&mod->modframe.and, &mb.cf);
mod               841 net/can/gw.c   			mod->modtype.and = mb.modtype;
mod               844 net/can/gw.c   				mod->modfunc[modidx++] = mod_and_id;
mod               847 net/can/gw.c   				mod->modfunc[modidx++] = mod_and_len;
mod               850 net/can/gw.c   				mod->modfunc[modidx++] = mod_and_data;
mod               856 net/can/gw.c   			canframecpy(&mod->modframe.or, &mb.cf);
mod               857 net/can/gw.c   			mod->modtype.or = mb.modtype;
mod               860 net/can/gw.c   				mod->modfunc[modidx++] = mod_or_id;
mod               863 net/can/gw.c   				mod->modfunc[modidx++] = mod_or_len;
mod               866 net/can/gw.c   				mod->modfunc[modidx++] = mod_or_data;
mod               872 net/can/gw.c   			canframecpy(&mod->modframe.xor, &mb.cf);
mod               873 net/can/gw.c   			mod->modtype.xor = mb.modtype;
mod               876 net/can/gw.c   				mod->modfunc[modidx++] = mod_xor_id;
mod               879 net/can/gw.c   				mod->modfunc[modidx++] = mod_xor_len;
mod               882 net/can/gw.c   				mod->modfunc[modidx++] = mod_xor_data;
mod               888 net/can/gw.c   			canframecpy(&mod->modframe.set, &mb.cf);
mod               889 net/can/gw.c   			mod->modtype.set = mb.modtype;
mod               892 net/can/gw.c   				mod->modfunc[modidx++] = mod_set_id;
mod               895 net/can/gw.c   				mod->modfunc[modidx++] = mod_set_len;
mod               898 net/can/gw.c   				mod->modfunc[modidx++] = mod_set_data;
mod               912 net/can/gw.c   			nla_memcpy(&mod->csum.crc8, tb[CGW_CS_CRC8],
mod               920 net/can/gw.c   				mod->csumfunc.crc8 = cgw_csum_crc8_rel;
mod               922 net/can/gw.c   				mod->csumfunc.crc8 = cgw_csum_crc8_pos;
mod               924 net/can/gw.c   				mod->csumfunc.crc8 = cgw_csum_crc8_neg;
mod               935 net/can/gw.c   			nla_memcpy(&mod->csum.xor, tb[CGW_CS_XOR],
mod               943 net/can/gw.c   				mod->csumfunc.xor = cgw_csum_xor_rel;
mod               945 net/can/gw.c   				mod->csumfunc.xor = cgw_csum_xor_pos;
mod               947 net/can/gw.c   				mod->csumfunc.xor = cgw_csum_xor_neg;
mod               951 net/can/gw.c   			nla_memcpy(&mod->uid, tb[CGW_MOD_UID], sizeof(u32));
mod               994 net/can/gw.c   	struct cf_mod mod;
mod              1013 net/can/gw.c   	err = cgw_parse_attr(nlh, &mod, CGW_TYPE_CAN_CAN, &ccgw, &limhops);
mod              1017 net/can/gw.c   	if (mod.uid) {
mod              1022 net/can/gw.c   			if (gwj->mod.uid != mod.uid)
mod              1031 net/can/gw.c   			memcpy(&gwj->mod, &mod, sizeof(mod));
mod              1053 net/can/gw.c   	memcpy(&gwj->mod, &mod, sizeof(mod));
mod              1107 net/can/gw.c   	struct cf_mod mod;
mod              1126 net/can/gw.c   	err = cgw_parse_attr(nlh, &mod, CGW_TYPE_CAN_CAN, &ccgw, &limhops);
mod              1149 net/can/gw.c   		if (gwj->mod.uid || mod.uid) {
mod              1150 net/can/gw.c   			if (gwj->mod.uid != mod.uid)
mod              1154 net/can/gw.c   			if (memcmp(&gwj->mod, &mod, sizeof(mod)))
mod               176 net/tipc/core.h 	return mod(right - left) < 32768u;
mod               186 net/tipc/core.h 	return less_eq(left, right) && (mod(right) != mod(left));
mod               100 samples/livepatch/livepatch-callbacks-demo.c 	if (obj->mod)
mod               101 samples/livepatch/livepatch-callbacks-demo.c 		pr_info("%s: %s -> %s\n", callback, obj->mod->name,
mod               102 samples/livepatch/livepatch-callbacks-demo.c 			module_state[obj->mod->state]);
mod               180 samples/livepatch/livepatch-callbacks-demo.c 	.mod = THIS_MODULE,
mod                54 samples/livepatch/livepatch-sample.c 	.mod = THIS_MODULE,
mod               142 samples/livepatch/livepatch-shadow-fix1.c 	.mod = THIS_MODULE,
mod               114 samples/livepatch/livepatch-shadow-fix2.c 	.mod = THIS_MODULE,
mod               177 scripts/kconfig/conf.c 		case mod:
mod               186 scripts/kconfig/conf.c 		if (oldval != mod && sym_tristate_within_range(sym, mod))
mod               204 scripts/kconfig/conf.c 			newval = mod;
mod               243 scripts/kconfig/conf.c 		case mod:
mod               252 scripts/kconfig/conf.c 		case mod:
mod               386 scripts/kconfig/conf.c 		if (sym->curr.tri != mod)
mod               241 scripts/kconfig/confdata.c 			sym->def[def].tri = mod;
mod               493 scripts/kconfig/confdata.c 			case mod:
mod              1300 scripts/kconfig/confdata.c 				sym->def[S_DEF_USER].tri = mod;
mod              1315 scripts/kconfig/confdata.c 						sym->def[S_DEF_USER].tri = mod;
mod               816 scripts/kconfig/gconf.c 		newval = mod;
mod              1126 scripts/kconfig/gconf.c 		case mod:
mod              1141 scripts/kconfig/gconf.c 		if (val != mod && sym_tristate_within_range(sym, mod))
mod               547 scripts/kconfig/mconf.c 				case mod: ch = 'M'; break;
mod               600 scripts/kconfig/mconf.c 				case mod: ch = 'M'; break;
mod               604 scripts/kconfig/mconf.c 					if (sym->rev_dep.tri == mod)
mod               724 scripts/kconfig/mconf.c 				if (sym_set_tristate_value(sym, mod))
mod               734 scripts/kconfig/mconf.c 				sym_set_tristate_value(sym, mod);
mod               826 scripts/kconfig/menu.c 		expr_gstr_print_revdep(sym->rev_dep.expr, r, mod, "  Selected by [m]:\n");
mod               833 scripts/kconfig/menu.c 		expr_gstr_print_revdep(sym->implied.expr, r, mod, "  Implied by [m]:\n");
mod               817 scripts/kconfig/nconf.c 				case mod:
mod               872 scripts/kconfig/nconf.c 				case mod:
mod               880 scripts/kconfig/nconf.c 					if (sym->rev_dep.tri == mod)
mod              1197 scripts/kconfig/nconf.c 				if (sym_set_tristate_value(sym, mod))
mod              1207 scripts/kconfig/nconf.c 				sym_set_tristate_value(sym, mod);
mod               172 scripts/kconfig/qconf.cc 		case mod:
mod               188 scripts/kconfig/qconf.cc 		if (expr != mod)
mod               189 scripts/kconfig/qconf.cc 			setText(modColIdx, sym_tristate_within_range(sym, mod) ? "_" : 0);
mod               749 scripts/kconfig/qconf.cc 		setValue(item, mod);
mod               807 scripts/kconfig/qconf.cc 		setValue(item, mod);
mod              1064 scripts/kconfig/qconf.cc 	str += sym->visible == yes ? "y" : sym->visible == mod ? "m" : "n";
mod                20 scripts/kconfig/symbol.c 	.curr = { "m", mod },
mod               191 scripts/kconfig/symbol.c 		    prop->visible.tri == mod && choice_sym->curr.tri == yes)
mod               196 scripts/kconfig/symbol.c 	if (tri == mod && (sym->type != S_TRISTATE || modules_val == no))
mod               208 scripts/kconfig/symbol.c 	if (tri == mod && sym_get_type(sym) == S_BOOLEAN)
mod               217 scripts/kconfig/symbol.c 	if (tri == mod && sym_get_type(sym) == S_BOOLEAN)
mod               226 scripts/kconfig/symbol.c 	if (tri == mod && sym_get_type(sym) == S_BOOLEAN)
mod               307 scripts/kconfig/symbol.c 		   sym->dir_dep.tri == mod ? 'm' : 'n');
mod               313 scripts/kconfig/symbol.c 	expr_gstr_print_revdep(sym->rev_dep.expr, &gs, mod,
mod               404 scripts/kconfig/symbol.c 		if (newval.tri == mod &&
mod               483 scripts/kconfig/symbol.c 	if (type == S_BOOLEAN && val == mod)
mod               487 scripts/kconfig/symbol.c 	if (sym->implied.tri == yes && val == mod)
mod               538 scripts/kconfig/symbol.c 			newval = mod;
mod               540 scripts/kconfig/symbol.c 		case mod:
mod               628 scripts/kconfig/symbol.c 			return sym_tristate_within_range(sym, mod);
mod               651 scripts/kconfig/symbol.c 			return sym_set_tristate_value(sym, mod);
mod               733 scripts/kconfig/symbol.c 	if (val == mod)
mod               738 scripts/kconfig/symbol.c 	if (sym->type == S_BOOLEAN && val == mod)
mod               750 scripts/kconfig/symbol.c 		case mod: return "m";
mod               775 scripts/kconfig/symbol.c 		case mod:
mod               160 scripts/mod/file2alias.c 			 unsigned char max, struct module *mod)
mod               221 scripts/mod/file2alias.c 	buf_printf(&mod->dev_table_buf,
mod               264 scripts/mod/file2alias.c static void do_usb_entry_multi(void *symval, struct module *mod)
mod               311 scripts/mod/file2alias.c 			do_usb_entry(symval, devlo, ndigits, clo, chi, max, mod);
mod               319 scripts/mod/file2alias.c 				     ndigits, clo, max, max, mod);
mod               325 scripts/mod/file2alias.c 				     ndigits, 0x0, chi, max, mod);
mod               330 scripts/mod/file2alias.c 			 struct module *mod)
mod               335 scripts/mod/file2alias.c 	device_id_check(mod->name, "usb", size, id_size, symval);
mod               341 scripts/mod/file2alias.c 		do_usb_entry_multi(symval + i, mod);
mod               344 scripts/mod/file2alias.c static void do_of_entry_multi(void *symval, struct module *mod)
mod               366 scripts/mod/file2alias.c 	buf_printf(&mod->dev_table_buf, "MODULE_ALIAS(\"%s\");\n", alias);
mod               369 scripts/mod/file2alias.c 	buf_printf(&mod->dev_table_buf, "MODULE_ALIAS(\"%s\");\n", alias);
mod               373 scripts/mod/file2alias.c 			struct module *mod)
mod               378 scripts/mod/file2alias.c 	device_id_check(mod->name, "of", size, id_size, symval);
mod               384 scripts/mod/file2alias.c 		do_of_entry_multi(symval + i, mod);
mod               573 scripts/mod/file2alias.c 				struct module *mod)
mod               579 scripts/mod/file2alias.c 	device_id_check(mod->name, "pnp", size, id_size, symval);
mod               586 scripts/mod/file2alias.c 		buf_printf(&mod->dev_table_buf,
mod               592 scripts/mod/file2alias.c 		buf_printf(&mod->dev_table_buf,
mod               599 scripts/mod/file2alias.c 				struct module *mod)
mod               605 scripts/mod/file2alias.c 	device_id_check(mod->name, "pnp", size, id_size, symval);
mod               644 scripts/mod/file2alias.c 				buf_printf(&mod->dev_table_buf,
mod               650 scripts/mod/file2alias.c 				buf_printf(&mod->dev_table_buf,
mod              1351 scripts/mod/file2alias.c 		     struct module *mod)
mod              1356 scripts/mod/file2alias.c 	device_id_check(mod->name, device_id, size, id_size, symval);
mod              1361 scripts/mod/file2alias.c 		if (do_entry(mod->name, symval+i, alias)) {
mod              1362 scripts/mod/file2alias.c 			buf_printf(&mod->dev_table_buf,
mod              1415 scripts/mod/file2alias.c void handle_moddevtable(struct module *mod, struct elf_info *info,
mod              1457 scripts/mod/file2alias.c 		do_usb_table(symval, sym->st_size, mod);
mod              1459 scripts/mod/file2alias.c 		do_of_table(symval, sym->st_size, mod);
mod              1461 scripts/mod/file2alias.c 		do_pnp_device_entry(symval, sym->st_size, mod);
mod              1463 scripts/mod/file2alias.c 		do_pnp_card_entries(symval, sym->st_size, mod);
mod              1472 scripts/mod/file2alias.c 					 p->device_id, p->do_entry, mod);
mod              1481 scripts/mod/file2alias.c void add_moddevtable(struct buffer *buf, struct module *mod)
mod              1484 scripts/mod/file2alias.c 	buf_write(buf, mod->dev_table_buf.p, mod->dev_table_buf.pos);
mod              1485 scripts/mod/file2alias.c 	free(mod->dev_table_buf.p);
mod               127 scripts/mod/modpost.c 	struct module *mod;
mod               129 scripts/mod/modpost.c 	for (mod = modules; mod; mod = mod->next)
mod               130 scripts/mod/modpost.c 		if (strcmp(mod->name, modname) == 0)
mod               132 scripts/mod/modpost.c 	return mod;
mod               137 scripts/mod/modpost.c 	struct module *mod;
mod               140 scripts/mod/modpost.c 	mod = NOFAIL(malloc(sizeof(*mod)));
mod               141 scripts/mod/modpost.c 	memset(mod, 0, sizeof(*mod));
mod               147 scripts/mod/modpost.c 		mod->is_dot_o = 1;
mod               151 scripts/mod/modpost.c 	mod->name = p;
mod               152 scripts/mod/modpost.c 	mod->gpl_compatible = -1;
mod               153 scripts/mod/modpost.c 	mod->next = modules;
mod               154 scripts/mod/modpost.c 	modules = mod;
mod               156 scripts/mod/modpost.c 	return mod;
mod               381 scripts/mod/modpost.c static struct symbol *sym_add_exported(const char *name, struct module *mod,
mod               387 scripts/mod/modpost.c 		s = new_symbol(name, mod, export);
mod               391 scripts/mod/modpost.c 			     mod->name, name, s->module->name,
mod               395 scripts/mod/modpost.c 			s->module = mod;
mod               399 scripts/mod/modpost.c 	s->vmlinux   = is_vmlinux(mod->name);
mod               405 scripts/mod/modpost.c static void sym_update_crc(const char *name, struct module *mod,
mod               411 scripts/mod/modpost.c 		s = new_symbol(name, mod, export);
mod               682 scripts/mod/modpost.c static void handle_modversions(struct module *mod, struct elf_info *info,
mod               690 scripts/mod/modpost.c 	if ((!is_vmlinux(mod->name) || mod->is_dot_o) &&
mod               710 scripts/mod/modpost.c 		sym_update_crc(symname + strlen("__crc_"), mod, crc,
mod               719 scripts/mod/modpost.c 			warn("\"%s\" [%s] is COMMON symbol\n", symname, mod->name);
mod               749 scripts/mod/modpost.c 			const char *e = is_vmlinux(mod->name) ?"":".ko";
mod               751 scripts/mod/modpost.c 			     symname + strlen("__crc_"), mod->name, e);
mod               753 scripts/mod/modpost.c 		mod->unres = alloc_symbol(symname,
mod               755 scripts/mod/modpost.c 					  mod->unres);
mod               761 scripts/mod/modpost.c 			sym_add_exported(name, mod, export);
mod               764 scripts/mod/modpost.c 			mod->has_init = 1;
mod               766 scripts/mod/modpost.c 			mod->has_cleanup = 1;
mod              1978 scripts/mod/modpost.c static void check_sec_ref(struct module *mod, const char *modname,
mod              2013 scripts/mod/modpost.c 	struct module *mod;
mod              2020 scripts/mod/modpost.c 	mod = new_module(modname);
mod              2026 scripts/mod/modpost.c 		mod->skip = 1;
mod              2036 scripts/mod/modpost.c 			mod->gpl_compatible = 1;
mod              2038 scripts/mod/modpost.c 			mod->gpl_compatible = 0;
mod              2046 scripts/mod/modpost.c 		add_namespace(&mod->imported_namespaces, namespace);
mod              2053 scripts/mod/modpost.c 		handle_modversions(mod, &info, sym, symname);
mod              2054 scripts/mod/modpost.c 		handle_moddevtable(mod, &info, sym, symname);
mod              2082 scripts/mod/modpost.c 		check_sec_ref(mod, modname, &info);
mod              2089 scripts/mod/modpost.c 		get_src_version(modname, mod->srcversion,
mod              2090 scripts/mod/modpost.c 				sizeof(mod->srcversion)-1);
mod              2099 scripts/mod/modpost.c 		mod->unres = alloc_symbol("module_layout", 0, mod->unres);
mod              2193 scripts/mod/modpost.c static int check_exports(struct module *mod)
mod              2198 scripts/mod/modpost.c 	for (s = mod->unres; s; s = s->next) {
mod              2201 scripts/mod/modpost.c 		if (!exp || exp->module == mod) {
mod              2205 scripts/mod/modpost.c 					     s->name, mod->name);
mod              2208 scripts/mod/modpost.c 					       s->name, mod->name);
mod              2214 scripts/mod/modpost.c 		basename = strrchr(mod->name, '/');
mod              2218 scripts/mod/modpost.c 			basename = mod->name;
mod              2221 scripts/mod/modpost.c 			add_namespace(&mod->required_namespaces,
mod              2225 scripts/mod/modpost.c 			    !module_imports_namespace(mod, exp->namespace)) {
mod              2231 scripts/mod/modpost.c 		if (!mod->gpl_compatible)
mod              2239 scripts/mod/modpost.c static int check_modname_len(struct module *mod)
mod              2243 scripts/mod/modpost.c 	mod_name = strrchr(mod->name, '/');
mod              2245 scripts/mod/modpost.c 		mod_name = mod->name;
mod              2249 scripts/mod/modpost.c 		merror("module name is too long [%s.ko]\n", mod->name);
mod              2259 scripts/mod/modpost.c static void add_header(struct buffer *b, struct module *mod)
mod              2274 scripts/mod/modpost.c 	if (mod->has_init)
mod              2276 scripts/mod/modpost.c 	if (mod->has_cleanup)
mod              2307 scripts/mod/modpost.c static int add_versions(struct buffer *b, struct module *mod)
mod              2312 scripts/mod/modpost.c 	for (s = mod->unres; s; s = s->next) {
mod              2314 scripts/mod/modpost.c 		if (!exp || exp->module == mod)
mod              2328 scripts/mod/modpost.c 	for (s = mod->unres; s; s = s->next) {
mod              2333 scripts/mod/modpost.c 				s->name, mod->name);
mod              2338 scripts/mod/modpost.c 			       s->name, mod->name);
mod              2351 scripts/mod/modpost.c static void add_depends(struct buffer *b, struct module *mod)
mod              2357 scripts/mod/modpost.c 	for (s = mod->unres; s; s = s->next)
mod              2363 scripts/mod/modpost.c 	for (s = mod->unres; s; s = s->next) {
mod              2383 scripts/mod/modpost.c static void add_srcversion(struct buffer *b, struct module *mod)
mod              2385 scripts/mod/modpost.c 	if (mod->srcversion[0]) {
mod              2388 scripts/mod/modpost.c 			   mod->srcversion);
mod              2452 scripts/mod/modpost.c 		struct module *mod;
mod              2471 scripts/mod/modpost.c 		mod = find_module(modname);
mod              2472 scripts/mod/modpost.c 		if (!mod) {
mod              2475 scripts/mod/modpost.c 			mod = new_module(modname);
mod              2476 scripts/mod/modpost.c 			mod->skip = 1;
mod              2478 scripts/mod/modpost.c 		s = sym_add_exported(symname, mod, export_no(export));
mod              2482 scripts/mod/modpost.c 		sym_update_crc(symname, mod, crc, export_no(export));
mod              2532 scripts/mod/modpost.c 	struct module *mod;
mod              2536 scripts/mod/modpost.c 	for (mod = modules; mod; mod = mod->next) {
mod              2539 scripts/mod/modpost.c 		if (mod->skip)
mod              2544 scripts/mod/modpost.c 		for (ns = mod->required_namespaces; ns; ns = ns->next)
mod              2550 scripts/mod/modpost.c 		sprintf(fname, "%s.ns_deps", mod->name);
mod              2562 scripts/mod/modpost.c 	struct module *mod;
mod              2640 scripts/mod/modpost.c 	for (mod = modules; mod; mod = mod->next) {
mod              2643 scripts/mod/modpost.c 		if (mod->skip)
mod              2648 scripts/mod/modpost.c 		err |= check_modname_len(mod);
mod              2649 scripts/mod/modpost.c 		err |= check_exports(mod);
mod              2653 scripts/mod/modpost.c 		add_header(&buf, mod);
mod              2656 scripts/mod/modpost.c 		add_staging_flag(&buf, mod->name);
mod              2657 scripts/mod/modpost.c 		err |= add_versions(&buf, mod);
mod              2658 scripts/mod/modpost.c 		add_depends(&buf, mod);
mod              2659 scripts/mod/modpost.c 		add_moddevtable(&buf, mod);
mod              2660 scripts/mod/modpost.c 		add_srcversion(&buf, mod);
mod              2662 scripts/mod/modpost.c 		sprintf(fname, "%s.mod.c", mod->name);
mod               186 scripts/mod/modpost.h void handle_moddevtable(struct module *mod, struct elf_info *info,
mod               188 scripts/mod/modpost.h void add_moddevtable(struct buffer *buf, struct module *mod);
mod                16 sound/aoa/core/alsa.c int aoa_alsa_init(char *name, struct module *mod, struct device *dev)
mod                25 sound/aoa/core/alsa.c 	err = snd_card_new(dev, index, name, mod, sizeof(struct aoa_card),
mod                12 sound/aoa/core/alsa.h extern int aoa_alsa_init(char *name, struct module *mod, struct device *dev);
mod               150 sound/core/hwdep.c 	struct module *mod = hw->card->module;
mod               161 sound/core/hwdep.c 	module_put(mod);
mod               434 sound/core/info.c static struct snd_info_entry *create_subdir(struct module *mod,
mod               439 sound/core/info.c 	entry = snd_info_create_module_entry(mod, name, NULL);
mod               241 sound/core/seq_device.c int __snd_seq_driver_register(struct snd_seq_driver *drv, struct module *mod)
mod               246 sound/core/seq_device.c 	drv->driver.owner = mod;
mod                68 sound/mips/hal2.c 	unsigned short mod;		/* MOD value */
mod               316 sound/mips/hal2.c 	unsigned short mod;
mod               319 sound/mips/hal2.c 		mod = 4 * 44100 / rate;
mod               322 sound/mips/hal2.c 		mod = 4 * 48000 / rate;
mod               327 sound/mips/hal2.c 	codec->mod = mod;
mod               328 sound/mips/hal2.c 	rate = 4 * codec->master / mod;
mod               337 sound/mips/hal2.c 	int mod = hal2->dac.mod;
mod               341 sound/mips/hal2.c 		       ((0xffff & (inc - mod - 1)) << 16) | inc);
mod               348 sound/mips/hal2.c 	int mod = hal2->adc.mod;
mod               352 sound/mips/hal2.c 		       ((0xffff & (inc - mod - 1)) << 16) | inc);
mod               203 sound/pci/hda/hda_bind.c 	const char *mod = NULL;
mod               208 sound/pci/hda/hda_bind.c 		mod = "snd-hda-codec-hdmi";
mod               213 sound/pci/hda/hda_bind.c 		mod = "snd-hda-codec-generic";
mod               218 sound/pci/hda/hda_bind.c 		mod = modalias;
mod               222 sound/pci/hda/hda_bind.c 	if (mod)
mod               223 sound/pci/hda/hda_bind.c 		request_module(mod);
mod               689 sound/soc/codecs/cx2072x.c 	unsigned int mod;
mod               843 sound/soc/codecs/cx2072x.c 		mod = do_div(div, bclk_rate);
mod               844 sound/soc/codecs/cx2072x.c 		if (mod) {
mod                61 sound/soc/intel/baytrail/sst-baytrail-dsp.c 	struct sst_module *mod;
mod                69 sound/soc/intel/baytrail/sst-baytrail-dsp.c 	mod = sst_module_new(fw, &template, NULL);
mod                70 sound/soc/intel/baytrail/sst-baytrail-dsp.c 	if (mod == NULL)
mod                84 sound/soc/intel/baytrail/sst-baytrail-dsp.c 			mod->offset = block->ram_offset +
mod                86 sound/soc/intel/baytrail/sst-baytrail-dsp.c 			mod->type = SST_MEM_IRAM;
mod                89 sound/soc/intel/baytrail/sst-baytrail-dsp.c 			mod->offset = block->ram_offset +
mod                91 sound/soc/intel/baytrail/sst-baytrail-dsp.c 			mod->type = SST_MEM_DRAM;
mod                94 sound/soc/intel/baytrail/sst-baytrail-dsp.c 			mod->offset = block->ram_offset +
mod                96 sound/soc/intel/baytrail/sst-baytrail-dsp.c 			mod->type = SST_MEM_CACHE;
mod               104 sound/soc/intel/baytrail/sst-baytrail-dsp.c 		mod->size = block->size;
mod               105 sound/soc/intel/baytrail/sst-baytrail-dsp.c 		mod->data = (void *)block + sizeof(*block);
mod               107 sound/soc/intel/baytrail/sst-baytrail-dsp.c 		sst_module_alloc_blocks(mod);
mod                83 sound/soc/intel/haswell/sst-haswell-dsp.c 	struct sst_module *mod;
mod               113 sound/soc/intel/haswell/sst-haswell-dsp.c 	mod = sst_module_new(fw, &template, NULL);
mod               114 sound/soc/intel/haswell/sst-haswell-dsp.c 	if (mod == NULL)
mod               124 sound/soc/intel/haswell/sst-haswell-dsp.c 			sst_module_free(mod);
mod               131 sound/soc/intel/haswell/sst-haswell-dsp.c 			mod->offset = le32_to_cpu(block->ram_offset) +
mod               133 sound/soc/intel/haswell/sst-haswell-dsp.c 			mod->type = SST_MEM_IRAM;
mod               138 sound/soc/intel/haswell/sst-haswell-dsp.c 			mod->offset = le32_to_cpu(block->ram_offset);
mod               139 sound/soc/intel/haswell/sst-haswell-dsp.c 			mod->type = SST_MEM_DRAM;
mod               144 sound/soc/intel/haswell/sst-haswell-dsp.c 			sst_module_free(mod);
mod               148 sound/soc/intel/haswell/sst-haswell-dsp.c 		mod->size = le32_to_cpu(block->size);
mod               149 sound/soc/intel/haswell/sst-haswell-dsp.c 		mod->data = (void *)block + sizeof(*block);
mod               150 sound/soc/intel/haswell/sst-haswell-dsp.c 		mod->data_offset = mod->data - fw->dma_buf;
mod               154 sound/soc/intel/haswell/sst-haswell-dsp.c 			count, mod->type, block->size, ram,
mod               157 sound/soc/intel/haswell/sst-haswell-dsp.c 		ret = sst_module_alloc_blocks(mod);
mod               161 sound/soc/intel/haswell/sst-haswell-dsp.c 			sst_module_free(mod);
mod               168 sound/soc/intel/haswell/sst-haswell-dsp.c 	mod->state = SST_MODULE_STATE_LOADED;
mod              3129 sound/soc/intel/skylake/skl-topology.c 		struct skl_module *mod)
mod              3132 sound/soc/intel/skylake/skl-topology.c 	if (!mod)
mod              3137 sound/soc/intel/skylake/skl-topology.c 		mod->input_pin_type = tkn_elem->value;
mod              3141 sound/soc/intel/skylake/skl-topology.c 		mod->output_pin_type = tkn_elem->value;
mod              3145 sound/soc/intel/skylake/skl-topology.c 		mod->max_input_pins = tkn_elem->value;
mod              3149 sound/soc/intel/skylake/skl-topology.c 		mod->max_output_pins = tkn_elem->value;
mod              3153 sound/soc/intel/skylake/skl-topology.c 		mod->nr_resources = tkn_elem->value;
mod              3157 sound/soc/intel/skylake/skl-topology.c 		mod->nr_interfaces = tkn_elem->value;
mod              3177 sound/soc/intel/skylake/skl-topology.c 	struct skl_module *mod = NULL;
mod              3184 sound/soc/intel/skylake/skl-topology.c 		mod = skl->modules[mod_idx];
mod              3185 sound/soc/intel/skylake/skl-topology.c 		res = &mod->resources[res_val_idx];
mod              3186 sound/soc/intel/skylake/skl-topology.c 		fmt = &mod->formats[intf_val_idx];
mod              3259 sound/soc/intel/skylake/skl-topology.c 		ret = skl_tplg_fill_mod_info(dev, tkn_elem, mod);
mod               680 sound/soc/intel/skylake/skl.c 	const char *mod = NULL;
mod               683 sound/soc/intel/skylake/skl.c 	mod = modalias;
mod               684 sound/soc/intel/skylake/skl.c 	dev_dbg(&codec->core.dev, "loading %s codec module\n", mod);
mod               685 sound/soc/intel/skylake/skl.c 	request_module(mod);
mod               267 sound/soc/samsung/i2s.c 	u32 mod = readl(priv->addr + I2SMOD);
mod               270 sound/soc/samsung/i2s.c 	mod &= ~(priv->variant_regs->rfs_mask << rfs_shift);
mod               274 sound/soc/samsung/i2s.c 		mod |= (EXYNOS7_MOD_RCLK_192FS << rfs_shift);
mod               277 sound/soc/samsung/i2s.c 		mod |= (EXYNOS7_MOD_RCLK_96FS << rfs_shift);
mod               280 sound/soc/samsung/i2s.c 		mod |= (EXYNOS7_MOD_RCLK_128FS << rfs_shift);
mod               283 sound/soc/samsung/i2s.c 		mod |= (EXYNOS7_MOD_RCLK_64FS << rfs_shift);
mod               286 sound/soc/samsung/i2s.c 		mod |= (MOD_RCLK_768FS << rfs_shift);
mod               289 sound/soc/samsung/i2s.c 		mod |= (MOD_RCLK_512FS << rfs_shift);
mod               292 sound/soc/samsung/i2s.c 		mod |= (MOD_RCLK_384FS << rfs_shift);
mod               295 sound/soc/samsung/i2s.c 		mod |= (MOD_RCLK_256FS << rfs_shift);
mod               299 sound/soc/samsung/i2s.c 	writel(mod, priv->addr + I2SMOD);
mod               328 sound/soc/samsung/i2s.c 	u32 mod = readl(priv->addr + I2SMOD);
mod               338 sound/soc/samsung/i2s.c 	mod &= ~(priv->variant_regs->bfs_mask << bfs_shift);
mod               342 sound/soc/samsung/i2s.c 		mod |= (MOD_BCLK_48FS << bfs_shift);
mod               345 sound/soc/samsung/i2s.c 		mod |= (MOD_BCLK_32FS << bfs_shift);
mod               348 sound/soc/samsung/i2s.c 		mod |= (MOD_BCLK_24FS << bfs_shift);
mod               351 sound/soc/samsung/i2s.c 		mod |= (MOD_BCLK_16FS << bfs_shift);
mod               354 sound/soc/samsung/i2s.c 		mod |= (EXYNOS5420_MOD_BCLK_64FS << bfs_shift);
mod               357 sound/soc/samsung/i2s.c 		mod |= (EXYNOS5420_MOD_BCLK_96FS << bfs_shift);
mod               360 sound/soc/samsung/i2s.c 		mod |= (EXYNOS5420_MOD_BCLK_128FS << bfs_shift);
mod               363 sound/soc/samsung/i2s.c 		mod |= (EXYNOS5420_MOD_BCLK_192FS << bfs_shift);
mod               366 sound/soc/samsung/i2s.c 		mod |= (EXYNOS5420_MOD_BCLK_256FS << bfs_shift);
mod               373 sound/soc/samsung/i2s.c 	writel(mod, priv->addr + I2SMOD);
mod               397 sound/soc/samsung/i2s.c 	u32 mod = readl(addr + I2SMOD) & ~(3 << txr_off);
mod               412 sound/soc/samsung/i2s.c 			mod |= 2 << txr_off;
mod               414 sound/soc/samsung/i2s.c 			mod |= 0 << txr_off;
mod               432 sound/soc/samsung/i2s.c 			mod |= 1 << txr_off;
mod               437 sound/soc/samsung/i2s.c 	writel(mod, addr + I2SMOD);
mod               448 sound/soc/samsung/i2s.c 	u32 mod = readl(addr + I2SMOD) & ~(3 << txr_off);
mod               455 sound/soc/samsung/i2s.c 			mod |= 2 << txr_off;
mod               457 sound/soc/samsung/i2s.c 			mod |= 1 << txr_off;
mod               463 sound/soc/samsung/i2s.c 			mod |= 0 << txr_off;
mod               468 sound/soc/samsung/i2s.c 	writel(mod, addr + I2SMOD);
mod               506 sound/soc/samsung/i2s.c 	u32 mod, mask, val = 0;
mod               513 sound/soc/samsung/i2s.c 	mod = readl(priv->addr + I2SMOD);
mod               530 sound/soc/samsung/i2s.c 					&& !(mod & cdcon_mask)) ||
mod               532 sound/soc/samsung/i2s.c 					&& (mod & cdcon_mask))))) {
mod               557 sound/soc/samsung/i2s.c 				if ((clk_id && !(mod & rsrc_mask)) ||
mod               558 sound/soc/samsung/i2s.c 					(!clk_id && (mod & rsrc_mask))) {
mod               589 sound/soc/samsung/i2s.c 		} else if ((!clk_id && (mod & rsrc_mask))
mod               590 sound/soc/samsung/i2s.c 				|| (clk_id && !(mod & rsrc_mask))) {
mod               610 sound/soc/samsung/i2s.c 	mod = readl(priv->addr + I2SMOD);
mod               611 sound/soc/samsung/i2s.c 	mod = (mod & ~mask) | val;
mod               612 sound/soc/samsung/i2s.c 	writel(mod, priv->addr + I2SMOD);
mod               628 sound/soc/samsung/i2s.c 	u32 mod, tmp = 0;
mod               695 sound/soc/samsung/i2s.c 	mod = readl(priv->addr + I2SMOD);
mod               701 sound/soc/samsung/i2s.c 		((mod & (sdf_mask | lrp_rlow | mod_slave)) != tmp)) {
mod               709 sound/soc/samsung/i2s.c 	mod &= ~(sdf_mask | lrp_rlow | mod_slave);
mod               710 sound/soc/samsung/i2s.c 	mod |= tmp;
mod               711 sound/soc/samsung/i2s.c 	writel(mod, priv->addr + I2SMOD);
mod               712 sound/soc/samsung/i2s.c 	priv->slave_mode = (mod & mod_slave);
mod               724 sound/soc/samsung/i2s.c 	u32 mod, mask = 0, val = 0;
mod               799 sound/soc/samsung/i2s.c 	mod = readl(priv->addr + I2SMOD);
mod               800 sound/soc/samsung/i2s.c 	mod = (mod & ~mask) | val;
mod               801 sound/soc/samsung/i2s.c 	writel(mod, priv->addr + I2SMOD);
mod               145 sound/soc/samsung/idma.c 	u32 mod = readl(idma.regs + I2SMOD);
mod               149 sound/soc/samsung/idma.c 	mod |= MOD_TXS_IDMA;
mod               151 sound/soc/samsung/idma.c 	writel(mod, idma.regs + I2SMOD);
mod                75 sound/soc/samsung/s3c-i2s-v2.c 	u32 fic, con, mod;
mod                81 sound/soc/samsung/s3c-i2s-v2.c 	mod = readl(regs + S3C2412_IISMOD);
mod                83 sound/soc/samsung/s3c-i2s-v2.c 	pr_debug("%s: IIS: CON=%x MOD=%x FIC=%x\n", __func__, con, mod, fic);
mod                90 sound/soc/samsung/s3c-i2s-v2.c 		switch (mod & S3C2412_IISMOD_MODE_MASK) {
mod                97 sound/soc/samsung/s3c-i2s-v2.c 			mod &= ~S3C2412_IISMOD_MODE_MASK;
mod                98 sound/soc/samsung/s3c-i2s-v2.c 			mod |= S3C2412_IISMOD_MODE_TXRX;
mod               103 sound/soc/samsung/s3c-i2s-v2.c 				mod & S3C2412_IISMOD_MODE_MASK);
mod               108 sound/soc/samsung/s3c-i2s-v2.c 		writel(mod, regs + S3C2412_IISMOD);
mod               119 sound/soc/samsung/s3c-i2s-v2.c 		switch (mod & S3C2412_IISMOD_MODE_MASK) {
mod               121 sound/soc/samsung/s3c-i2s-v2.c 			mod &= ~S3C2412_IISMOD_MODE_MASK;
mod               122 sound/soc/samsung/s3c-i2s-v2.c 			mod |= S3C2412_IISMOD_MODE_RXONLY;
mod               126 sound/soc/samsung/s3c-i2s-v2.c 			mod &= ~S3C2412_IISMOD_MODE_MASK;
mod               132 sound/soc/samsung/s3c-i2s-v2.c 				mod & S3C2412_IISMOD_MODE_MASK);
mod               136 sound/soc/samsung/s3c-i2s-v2.c 		writel(mod, regs + S3C2412_IISMOD);
mod               142 sound/soc/samsung/s3c-i2s-v2.c 	pr_debug("%s: IIS: CON=%x MOD=%x FIC=%x\n", __func__, con, mod, fic);
mod               148 sound/soc/samsung/s3c-i2s-v2.c 	u32 fic, con, mod;
mod               154 sound/soc/samsung/s3c-i2s-v2.c 	mod = readl(regs + S3C2412_IISMOD);
mod               156 sound/soc/samsung/s3c-i2s-v2.c 	pr_debug("%s: IIS: CON=%x MOD=%x FIC=%x\n", __func__, con, mod, fic);
mod               163 sound/soc/samsung/s3c-i2s-v2.c 		switch (mod & S3C2412_IISMOD_MODE_MASK) {
mod               170 sound/soc/samsung/s3c-i2s-v2.c 			mod &= ~S3C2412_IISMOD_MODE_MASK;
mod               171 sound/soc/samsung/s3c-i2s-v2.c 			mod |= S3C2412_IISMOD_MODE_TXRX;
mod               176 sound/soc/samsung/s3c-i2s-v2.c 				mod & S3C2412_IISMOD_MODE_MASK);
mod               179 sound/soc/samsung/s3c-i2s-v2.c 		writel(mod, regs + S3C2412_IISMOD);
mod               188 sound/soc/samsung/s3c-i2s-v2.c 		switch (mod & S3C2412_IISMOD_MODE_MASK) {
mod               191 sound/soc/samsung/s3c-i2s-v2.c 			mod &= ~S3C2412_IISMOD_MODE_MASK;
mod               195 sound/soc/samsung/s3c-i2s-v2.c 			mod &= ~S3C2412_IISMOD_MODE_MASK;
mod               196 sound/soc/samsung/s3c-i2s-v2.c 			mod |= S3C2412_IISMOD_MODE_TXONLY;
mod               201 sound/soc/samsung/s3c-i2s-v2.c 				mod & S3C2412_IISMOD_MODE_MASK);
mod               205 sound/soc/samsung/s3c-i2s-v2.c 		writel(mod, regs + S3C2412_IISMOD);
mod               209 sound/soc/samsung/s3c-i2s-v2.c 	pr_debug("%s: IIS: CON=%x MOD=%x FIC=%x\n", __func__, con, mod, fic);
mod                32 sound/soc/sh/rcar/adg.c 	struct rsnd_mod mod;
mod               595 sound/soc/sh/rcar/adg.c 	ret = rsnd_mod_init(priv, &adg->mod, &adg_ops,
mod                11 sound/soc/sh/rcar/cmd.c 	struct rsnd_mod mod;
mod                23 sound/soc/sh/rcar/cmd.c static int rsnd_cmd_init(struct rsnd_mod *mod,
mod                41 sound/soc/sh/rcar/cmd.c 	if (ARRAY_SIZE(path) < rsnd_mod_id(mod) + 1)
mod                91 sound/soc/sh/rcar/cmd.c 	rsnd_mod_write(mod, CMD_ROUTE_SLCT, data);
mod                92 sound/soc/sh/rcar/cmd.c 	rsnd_mod_write(mod, CMD_BUSIF_MODE, rsnd_get_busif_shift(io, mod) | 1);
mod                93 sound/soc/sh/rcar/cmd.c 	rsnd_mod_write(mod, CMD_BUSIF_DALIGN, rsnd_get_dalign(mod, io));
mod                95 sound/soc/sh/rcar/cmd.c 	rsnd_adg_set_cmd_timsel_gen2(mod, io);
mod               100 sound/soc/sh/rcar/cmd.c static int rsnd_cmd_start(struct rsnd_mod *mod,
mod               104 sound/soc/sh/rcar/cmd.c 	rsnd_mod_write(mod, CMD_CTRL, 0x10);
mod               109 sound/soc/sh/rcar/cmd.c static int rsnd_cmd_stop(struct rsnd_mod *mod,
mod               113 sound/soc/sh/rcar/cmd.c 	rsnd_mod_write(mod, CMD_CTRL, 0);
mod               136 sound/soc/sh/rcar/cmd.c 	struct rsnd_mod *mod = rsnd_cmd_mod_get(priv, id);
mod               138 sound/soc/sh/rcar/cmd.c 	return rsnd_dai_connect(mod, io, mod->type);
mod               122 sound/soc/sh/rcar/core.c void rsnd_mod_make_sure(struct rsnd_mod *mod, enum rsnd_mod_type type)
mod               124 sound/soc/sh/rcar/core.c 	if (mod->type != type) {
mod               125 sound/soc/sh/rcar/core.c 		struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               129 sound/soc/sh/rcar/core.c 			 rsnd_mod_name(mod));
mod               134 sound/soc/sh/rcar/core.c 				  struct rsnd_mod *mod)
mod               136 sound/soc/sh/rcar/core.c 	if (!mod || !mod->ops || !mod->ops->dma_req)
mod               139 sound/soc/sh/rcar/core.c 	return mod->ops->dma_req(io, mod);
mod               144 sound/soc/sh/rcar/core.c char *rsnd_mod_name(struct rsnd_mod *mod)
mod               159 sound/soc/sh/rcar/core.c 	if ((mod)->ops->id_sub) {
mod               161 sound/soc/sh/rcar/core.c 			 mod->ops->name,
mod               162 sound/soc/sh/rcar/core.c 			 rsnd_mod_id(mod),
mod               163 sound/soc/sh/rcar/core.c 			 rsnd_mod_id_sub(mod));
mod               166 sound/soc/sh/rcar/core.c 			 mod->ops->name,
mod               167 sound/soc/sh/rcar/core.c 			 rsnd_mod_id(mod));
mod               173 sound/soc/sh/rcar/core.c u32 *rsnd_mod_get_status(struct rsnd_mod *mod,
mod               177 sound/soc/sh/rcar/core.c 	return &mod->status;
mod               180 sound/soc/sh/rcar/core.c int rsnd_mod_id_raw(struct rsnd_mod *mod)
mod               182 sound/soc/sh/rcar/core.c 	return mod->id;
mod               185 sound/soc/sh/rcar/core.c int rsnd_mod_id(struct rsnd_mod *mod)
mod               187 sound/soc/sh/rcar/core.c 	if ((mod)->ops->id)
mod               188 sound/soc/sh/rcar/core.c 		return (mod)->ops->id(mod);
mod               190 sound/soc/sh/rcar/core.c 	return rsnd_mod_id_raw(mod);
mod               193 sound/soc/sh/rcar/core.c int rsnd_mod_id_sub(struct rsnd_mod *mod)
mod               195 sound/soc/sh/rcar/core.c 	if ((mod)->ops->id_sub)
mod               196 sound/soc/sh/rcar/core.c 		return (mod)->ops->id_sub(mod);
mod               202 sound/soc/sh/rcar/core.c 		  struct rsnd_mod *mod,
mod               213 sound/soc/sh/rcar/core.c 	mod->id		= id;
mod               214 sound/soc/sh/rcar/core.c 	mod->ops	= ops;
mod               215 sound/soc/sh/rcar/core.c 	mod->type	= type;
mod               216 sound/soc/sh/rcar/core.c 	mod->clk	= clk;
mod               217 sound/soc/sh/rcar/core.c 	mod->priv	= priv;
mod               222 sound/soc/sh/rcar/core.c void rsnd_mod_quit(struct rsnd_mod *mod)
mod               224 sound/soc/sh/rcar/core.c 	clk_unprepare(mod->clk);
mod               225 sound/soc/sh/rcar/core.c 	mod->clk = NULL;
mod               228 sound/soc/sh/rcar/core.c void rsnd_mod_interrupt(struct rsnd_mod *mod,
mod               229 sound/soc/sh/rcar/core.c 			void (*callback)(struct rsnd_mod *mod,
mod               232 sound/soc/sh/rcar/core.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               239 sound/soc/sh/rcar/core.c 		if (mod == io->mod[mod->type])
mod               240 sound/soc/sh/rcar/core.c 			callback(mod, io);
mod               243 sound/soc/sh/rcar/core.c 		if (mod == io->mod[mod->type])
mod               244 sound/soc/sh/rcar/core.c 			callback(mod, io);
mod               354 sound/soc/sh/rcar/core.c u32 rsnd_get_adinr_bit(struct rsnd_mod *mod, struct rsnd_dai_stream *io)
mod               356 sound/soc/sh/rcar/core.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               377 sound/soc/sh/rcar/core.c u32 rsnd_get_dalign(struct rsnd_mod *mod, struct rsnd_dai_stream *io)
mod               425 sound/soc/sh/rcar/core.c 	if (mod == ssiu)
mod               426 sound/soc/sh/rcar/core.c 		id = rsnd_mod_id_sub(mod);
mod               430 sound/soc/sh/rcar/core.c 	    (mod != target))
mod               439 sound/soc/sh/rcar/core.c u32 rsnd_get_busif_shift(struct rsnd_dai_stream *io, struct rsnd_mod *mod)
mod               475 sound/soc/sh/rcar/core.c 	if (tmod != mod)
mod               494 sound/soc/sh/rcar/core.c 	struct rsnd_mod *mod;
mod               500 sound/soc/sh/rcar/core.c 		mod = rsnd_io_to_mod(io, type);
mod               501 sound/soc/sh/rcar/core.c 		if (mod)
mod               502 sound/soc/sh/rcar/core.c 			return mod;
mod               561 sound/soc/sh/rcar/core.c 	struct rsnd_mod *mod;						\
mod               565 sound/soc/sh/rcar/core.c 	for_each_rsnd_mod_arrays(i, mod, io, types, RSND_MOD_MAX) {	\
mod               567 sound/soc/sh/rcar/core.c 		u32 *status = mod->ops->get_status(mod, io, types[i]);	\
mod               573 sound/soc/sh/rcar/core.c 			rsnd_mod_name(mod), *status,	\
mod               574 sound/soc/sh/rcar/core.c 			(func_call && (mod)->ops->fn) ? #fn : "");	\
mod               575 sound/soc/sh/rcar/core.c 		if (func_call && (mod)->ops->fn)			\
mod               576 sound/soc/sh/rcar/core.c 			tmp = (mod)->ops->fn(mod, io, param);		\
mod               579 sound/soc/sh/rcar/core.c 				rsnd_mod_name(mod), #fn, tmp);		\
mod               585 sound/soc/sh/rcar/core.c int rsnd_dai_connect(struct rsnd_mod *mod,
mod               592 sound/soc/sh/rcar/core.c 	if (!mod)
mod               595 sound/soc/sh/rcar/core.c 	if (io->mod[type] == mod)
mod               598 sound/soc/sh/rcar/core.c 	if (io->mod[type])
mod               601 sound/soc/sh/rcar/core.c 	priv = rsnd_mod_to_priv(mod);
mod               604 sound/soc/sh/rcar/core.c 	io->mod[type] = mod;
mod               607 sound/soc/sh/rcar/core.c 		rsnd_mod_name(mod),
mod               613 sound/soc/sh/rcar/core.c static void rsnd_dai_disconnect(struct rsnd_mod *mod,
mod               617 sound/soc/sh/rcar/core.c 	io->mod[type] = NULL;
mod              1141 sound/soc/sh/rcar/core.c 	struct rsnd_mod *mod;
mod              1149 sound/soc/sh/rcar/core.c 		mod = mod_get(priv, i);
mod              1151 sound/soc/sh/rcar/core.c 			rsnd_dai_connect(mod, &rdai->playback, mod->type);
mod              1153 sound/soc/sh/rcar/core.c 			rsnd_dai_connect(mod, &rdai->capture, mod->type);
mod              1538 sound/soc/sh/rcar/core.c 		cfg->update(cfg->io, cfg->mod);
mod              1603 sound/soc/sh/rcar/core.c int rsnd_kctrl_new(struct rsnd_mod *mod,
mod              1609 sound/soc/sh/rcar/core.c 				  struct rsnd_mod *mod),
mod              1658 sound/soc/sh/rcar/core.c 	cfg->mod	= mod;
mod              1679 sound/soc/sh/rcar/core.c 		struct rsnd_mod *mod;
mod              1699 sound/soc/sh/rcar/core.c 		for_each_rsnd_mod(i, mod, io)
mod              1700 sound/soc/sh/rcar/core.c 			rsnd_dai_disconnect(mod, io, i);
mod                73 sound/soc/sh/rcar/ctu.c 	struct rsnd_mod mod;
mod                91 sound/soc/sh/rcar/ctu.c 	container_of((_mod), struct rsnd_ctu, mod)
mod                95 sound/soc/sh/rcar/ctu.c static void rsnd_ctu_activation(struct rsnd_mod *mod)
mod                97 sound/soc/sh/rcar/ctu.c 	rsnd_mod_write(mod, CTU_SWRSR, 0);
mod                98 sound/soc/sh/rcar/ctu.c 	rsnd_mod_write(mod, CTU_SWRSR, 1);
mod               101 sound/soc/sh/rcar/ctu.c static void rsnd_ctu_halt(struct rsnd_mod *mod)
mod               103 sound/soc/sh/rcar/ctu.c 	rsnd_mod_write(mod, CTU_CTUIR, 1);
mod               104 sound/soc/sh/rcar/ctu.c 	rsnd_mod_write(mod, CTU_SWRSR, 0);
mod               107 sound/soc/sh/rcar/ctu.c static int rsnd_ctu_probe_(struct rsnd_mod *mod,
mod               111 sound/soc/sh/rcar/ctu.c 	return rsnd_cmd_attach(io, rsnd_mod_id(mod));
mod               115 sound/soc/sh/rcar/ctu.c 			       struct rsnd_mod *mod)
mod               117 sound/soc/sh/rcar/ctu.c 	struct rsnd_ctu *ctu = rsnd_mod_to_ctu(mod);
mod               131 sound/soc/sh/rcar/ctu.c 	rsnd_mod_write(mod, CTU_CTUIR, 1);
mod               133 sound/soc/sh/rcar/ctu.c 	rsnd_mod_write(mod, CTU_ADINR, rsnd_runtime_channel_original(io));
mod               135 sound/soc/sh/rcar/ctu.c 	rsnd_mod_write(mod, CTU_CPMDR, cpmdr);
mod               137 sound/soc/sh/rcar/ctu.c 	rsnd_mod_write(mod, CTU_SCMDR, scmdr);
mod               145 sound/soc/sh/rcar/ctu.c 			rsnd_mod_write(mod, CTU_SVxxR(i, j), rsnd_kctrl_valm(ctu->sv[i], j));
mod               148 sound/soc/sh/rcar/ctu.c 	rsnd_mod_write(mod, CTU_CTUIR, 0);
mod               152 sound/soc/sh/rcar/ctu.c 				 struct rsnd_mod *mod)
mod               154 sound/soc/sh/rcar/ctu.c 	struct rsnd_ctu *ctu = rsnd_mod_to_ctu(mod);
mod               170 sound/soc/sh/rcar/ctu.c static int rsnd_ctu_init(struct rsnd_mod *mod,
mod               174 sound/soc/sh/rcar/ctu.c 	rsnd_mod_power_on(mod);
mod               176 sound/soc/sh/rcar/ctu.c 	rsnd_ctu_activation(mod);
mod               178 sound/soc/sh/rcar/ctu.c 	rsnd_ctu_value_init(io, mod);
mod               183 sound/soc/sh/rcar/ctu.c static int rsnd_ctu_quit(struct rsnd_mod *mod,
mod               187 sound/soc/sh/rcar/ctu.c 	rsnd_ctu_halt(mod);
mod               189 sound/soc/sh/rcar/ctu.c 	rsnd_mod_power_off(mod);
mod               194 sound/soc/sh/rcar/ctu.c static int rsnd_ctu_pcm_new(struct rsnd_mod *mod,
mod               198 sound/soc/sh/rcar/ctu.c 	struct rsnd_ctu *ctu = rsnd_mod_to_ctu(mod);
mod               205 sound/soc/sh/rcar/ctu.c 	ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU Pass",
mod               212 sound/soc/sh/rcar/ctu.c 	ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV0",
mod               221 sound/soc/sh/rcar/ctu.c 	ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV1",
mod               230 sound/soc/sh/rcar/ctu.c 	ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV2",
mod               239 sound/soc/sh/rcar/ctu.c 	ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV3",
mod               248 sound/soc/sh/rcar/ctu.c 	ret = rsnd_kctrl_new_s(mod, io, rtd, "CTU Reset",
mod               258 sound/soc/sh/rcar/ctu.c static int rsnd_ctu_id(struct rsnd_mod *mod)
mod               264 sound/soc/sh/rcar/ctu.c 	return mod->id / 4;
mod               267 sound/soc/sh/rcar/ctu.c static int rsnd_ctu_id_sub(struct rsnd_mod *mod)
mod               273 sound/soc/sh/rcar/ctu.c 	return mod->id % 4;
mod                35 sound/soc/sh/rcar/dma.c 	struct rsnd_mod		mod;
mod                53 sound/soc/sh/rcar/dma.c #define rsnd_mod_to_dma(_mod) container_of((_mod), struct rsnd_dma, mod)
mod                68 sound/soc/sh/rcar/dma.c static void __rsnd_dmaen_complete(struct rsnd_mod *mod,
mod                77 sound/soc/sh/rcar/dma.c 	struct rsnd_mod *mod = data;
mod                79 sound/soc/sh/rcar/dma.c 	rsnd_mod_interrupt(mod, __rsnd_dmaen_complete);
mod                96 sound/soc/sh/rcar/dma.c static int rsnd_dmaen_stop(struct rsnd_mod *mod,
mod               100 sound/soc/sh/rcar/dma.c 	struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
mod               109 sound/soc/sh/rcar/dma.c static int rsnd_dmaen_cleanup(struct rsnd_mod *mod,
mod               113 sound/soc/sh/rcar/dma.c 	struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
mod               129 sound/soc/sh/rcar/dma.c static int rsnd_dmaen_prepare(struct rsnd_mod *mod,
mod               133 sound/soc/sh/rcar/dma.c 	struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
mod               158 sound/soc/sh/rcar/dma.c static int rsnd_dmaen_start(struct rsnd_mod *mod,
mod               162 sound/soc/sh/rcar/dma.c 	struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
mod               178 sound/soc/sh/rcar/dma.c 		rsnd_mod_name(mod),
mod               214 sound/soc/sh/rcar/dma.c 					  struct rsnd_mod *mod, char *name)
mod               221 sound/soc/sh/rcar/dma.c 		if (i == rsnd_mod_id_raw(mod) && (!chan))
mod               270 sound/soc/sh/rcar/dma.c static int rsnd_dmaen_pointer(struct rsnd_mod *mod,
mod               275 sound/soc/sh/rcar/dma.c 	struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
mod               344 sound/soc/sh/rcar/dma.c 			     struct rsnd_mod *mod)
mod               354 sound/soc/sh/rcar/dma.c 	if ((mod == ssi) ||
mod               355 sound/soc/sh/rcar/dma.c 	    (mod == ssiu)) {
mod               360 sound/soc/sh/rcar/dma.c 		id = (rsnd_mod_id(mod) * 8) + busif;
mod               361 sound/soc/sh/rcar/dma.c 	} else if (mod == src) {
mod               364 sound/soc/sh/rcar/dma.c 		id = rsnd_mod_id(mod);
mod               365 sound/soc/sh/rcar/dma.c 	} else if (mod == dvc) {
mod               368 sound/soc/sh/rcar/dma.c 		id = rsnd_mod_id(mod);
mod               374 sound/soc/sh/rcar/dma.c 		dev_err(dev, "unknown connection (%s)\n", rsnd_mod_name(mod));
mod               396 sound/soc/sh/rcar/dma.c 	struct rsnd_mod *mod = rsnd_mod_get(dma);
mod               397 sound/soc/sh/rcar/dma.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               408 sound/soc/sh/rcar/dma.c 	struct rsnd_mod *mod = rsnd_mod_get(dma);
mod               409 sound/soc/sh/rcar/dma.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               417 sound/soc/sh/rcar/dma.c 	struct rsnd_mod *mod = rsnd_mod_get(dma);
mod               418 sound/soc/sh/rcar/dma.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               429 sound/soc/sh/rcar/dma.c static int rsnd_dmapp_stop(struct rsnd_mod *mod,
mod               433 sound/soc/sh/rcar/dma.c 	struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
mod               447 sound/soc/sh/rcar/dma.c static int rsnd_dmapp_start(struct rsnd_mod *mod,
mod               451 sound/soc/sh/rcar/dma.c 	struct rsnd_dma *dma = rsnd_mod_to_dma(mod);
mod               528 sound/soc/sh/rcar/dma.c 		   struct rsnd_mod *mod,
mod               535 sound/soc/sh/rcar/dma.c 	int is_ssi = !!(rsnd_io_to_mod_ssi(io) == mod) ||
mod               536 sound/soc/sh/rcar/dma.c 		     !!(rsnd_io_to_mod_ssiu(io) == mod);
mod               541 sound/soc/sh/rcar/dma.c 	int id = rsnd_mod_id(mod);
mod               602 sound/soc/sh/rcar/dma.c 				struct rsnd_mod *mod,
mod               613 sound/soc/sh/rcar/dma.c 	if (!mod)
mod               616 sound/soc/sh/rcar/dma.c 	return rsnd_gen2_dma_addr(io, mod, is_play, is_from);
mod               631 sound/soc/sh/rcar/dma.c 	struct rsnd_mod *mod[MOD_MAX];
mod               664 sound/soc/sh/rcar/dma.c 		mod[i] = NULL;
mod               687 sound/soc/sh/rcar/dma.c 	mod[idx++] = mod_start;
mod               690 sound/soc/sh/rcar/dma.c 			mod[idx++] = src;
mod               693 sound/soc/sh/rcar/dma.c 			mod[idx++] = ctu;
mod               696 sound/soc/sh/rcar/dma.c 			mod[idx++] = mix;
mod               699 sound/soc/sh/rcar/dma.c 			mod[idx++] = dvc;
mod               703 sound/soc/sh/rcar/dma.c 	mod[idx] = mod_end;
mod               712 sound/soc/sh/rcar/dma.c 		*mod_from	= mod[idx - 1];
mod               713 sound/soc/sh/rcar/dma.c 		*mod_to		= mod[idx];
mod               715 sound/soc/sh/rcar/dma.c 		*mod_from	= mod[0];
mod               716 sound/soc/sh/rcar/dma.c 		*mod_to		= mod[1];
mod               722 sound/soc/sh/rcar/dma.c 			rsnd_mod_name(mod[i] ? mod[i] : &mem),
mod               723 sound/soc/sh/rcar/dma.c 			(mod[i] == *mod_from) ? " from" :
mod               724 sound/soc/sh/rcar/dma.c 			(mod[i] == *mod_to)   ? " to" : "");
mod               728 sound/soc/sh/rcar/dma.c static int rsnd_dma_alloc(struct rsnd_dai_stream *io, struct rsnd_mod *mod,
mod               753 sound/soc/sh/rcar/dma.c 	rsnd_dma_of_path(mod, io, is_play, &mod_from, &mod_to);
mod               804 sound/soc/sh/rcar/dma.c int rsnd_dma_attach(struct rsnd_dai_stream *io, struct rsnd_mod *mod,
mod               808 sound/soc/sh/rcar/dma.c 		int ret = rsnd_dma_alloc(io, mod, dma_mod);
mod                37 sound/soc/sh/rcar/dvc.c 	struct rsnd_mod mod;
mod                49 sound/soc/sh/rcar/dvc.c 	container_of((_mod), struct rsnd_dvc, mod)
mod                57 sound/soc/sh/rcar/dvc.c static void rsnd_dvc_activation(struct rsnd_mod *mod)
mod                59 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_SWRSR, 0);
mod                60 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_SWRSR, 1);
mod                63 sound/soc/sh/rcar/dvc.c static void rsnd_dvc_halt(struct rsnd_mod *mod)
mod                65 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_DVUIR, 1);
mod                66 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_SWRSR, 0);
mod                74 sound/soc/sh/rcar/dvc.c 					      struct rsnd_mod *mod)
mod                76 sound/soc/sh/rcar/dvc.c 	struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod);
mod                90 sound/soc/sh/rcar/dvc.c 		rsnd_mod_write(mod, DVC_VOLxR(i), val[i]);
mod                94 sound/soc/sh/rcar/dvc.c 				 struct rsnd_mod *mod)
mod                96 sound/soc/sh/rcar/dvc.c 	struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod);
mod               103 sound/soc/sh/rcar/dvc.c 	adinr = rsnd_get_adinr_bit(mod, io) |
mod               125 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_DVUIR, 1);
mod               128 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_ADINR, adinr);
mod               129 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_DVUCR, dvucr);
mod               132 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_VRCTR, vrctr);
mod               133 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_VRPDR, vrpdr);
mod               134 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_VRDBR, vrdbr);
mod               137 sound/soc/sh/rcar/dvc.c 	rsnd_dvc_volume_parameter(io, mod);
mod               140 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_DVUIR, 0);
mod               144 sound/soc/sh/rcar/dvc.c 				   struct rsnd_mod *mod)
mod               146 sound/soc/sh/rcar/dvc.c 	struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod);
mod               161 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_DVUER, 0);
mod               164 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_ZCMCR, zcmcr);
mod               167 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_VRPDR, vrpdr);
mod               168 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_VRDBR, vrdbr);
mod               172 sound/soc/sh/rcar/dvc.c 	rsnd_dvc_volume_parameter(io, mod);
mod               175 sound/soc/sh/rcar/dvc.c 	rsnd_mod_write(mod, DVC_DVUER, 1);
mod               178 sound/soc/sh/rcar/dvc.c static int rsnd_dvc_probe_(struct rsnd_mod *mod,
mod               182 sound/soc/sh/rcar/dvc.c 	return rsnd_cmd_attach(io, rsnd_mod_id(mod));
mod               185 sound/soc/sh/rcar/dvc.c static int rsnd_dvc_init(struct rsnd_mod *mod,
mod               189 sound/soc/sh/rcar/dvc.c 	rsnd_mod_power_on(mod);
mod               191 sound/soc/sh/rcar/dvc.c 	rsnd_dvc_activation(mod);
mod               193 sound/soc/sh/rcar/dvc.c 	rsnd_dvc_volume_init(io, mod);
mod               195 sound/soc/sh/rcar/dvc.c 	rsnd_dvc_volume_update(io, mod);
mod               200 sound/soc/sh/rcar/dvc.c static int rsnd_dvc_quit(struct rsnd_mod *mod,
mod               204 sound/soc/sh/rcar/dvc.c 	rsnd_dvc_halt(mod);
mod               206 sound/soc/sh/rcar/dvc.c 	rsnd_mod_power_off(mod);
mod               211 sound/soc/sh/rcar/dvc.c static int rsnd_dvc_pcm_new(struct rsnd_mod *mod,
mod               215 sound/soc/sh/rcar/dvc.c 	struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod);
mod               222 sound/soc/sh/rcar/dvc.c 	ret = rsnd_kctrl_new_m(mod, io, rtd,
mod               233 sound/soc/sh/rcar/dvc.c 	ret = rsnd_kctrl_new_m(mod, io, rtd,
mod               244 sound/soc/sh/rcar/dvc.c 	ret = rsnd_kctrl_new_s(mod, io, rtd,
mod               253 sound/soc/sh/rcar/dvc.c 	ret = rsnd_kctrl_new_e(mod, io, rtd,
mod               264 sound/soc/sh/rcar/dvc.c 	ret = rsnd_kctrl_new_e(mod, io, rtd,
mod               280 sound/soc/sh/rcar/dvc.c 					 struct rsnd_mod *mod)
mod               282 sound/soc/sh/rcar/dvc.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               285 sound/soc/sh/rcar/dvc.c 					mod, "tx");
mod                74 sound/soc/sh/rcar/gen.c static int rsnd_mod_id_cmd(struct rsnd_mod *mod)
mod                76 sound/soc/sh/rcar/gen.c 	if (mod->ops->id_cmd)
mod                77 sound/soc/sh/rcar/gen.c 		return mod->ops->id_cmd(mod);
mod                79 sound/soc/sh/rcar/gen.c 	return rsnd_mod_id(mod);
mod                82 sound/soc/sh/rcar/gen.c u32 rsnd_mod_read(struct rsnd_mod *mod, enum rsnd_reg reg)
mod                84 sound/soc/sh/rcar/gen.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod                92 sound/soc/sh/rcar/gen.c 	regmap_fields_read(gen->regs[reg], rsnd_mod_id_cmd(mod), &val);
mod                95 sound/soc/sh/rcar/gen.c 		rsnd_mod_name(mod),
mod               101 sound/soc/sh/rcar/gen.c void rsnd_mod_write(struct rsnd_mod *mod,
mod               104 sound/soc/sh/rcar/gen.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               111 sound/soc/sh/rcar/gen.c 	regmap_fields_force_write(gen->regs[reg], rsnd_mod_id_cmd(mod), data);
mod               114 sound/soc/sh/rcar/gen.c 		rsnd_mod_name(mod),
mod               118 sound/soc/sh/rcar/gen.c void rsnd_mod_bset(struct rsnd_mod *mod,
mod               121 sound/soc/sh/rcar/gen.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               129 sound/soc/sh/rcar/gen.c 					rsnd_mod_id_cmd(mod), mask, data);
mod               132 sound/soc/sh/rcar/gen.c 		rsnd_mod_name(mod),
mod                39 sound/soc/sh/rcar/mix.c 	struct rsnd_mod mod;
mod                59 sound/soc/sh/rcar/mix.c 	container_of((_mod), struct rsnd_mix, mod)
mod                69 sound/soc/sh/rcar/mix.c static void rsnd_mix_activation(struct rsnd_mod *mod)
mod                71 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_SWRSR, 0);
mod                72 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_SWRSR, 1);
mod                75 sound/soc/sh/rcar/mix.c static void rsnd_mix_halt(struct rsnd_mod *mod)
mod                77 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MIXIR, 1);
mod                78 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_SWRSR, 0);
mod                85 sound/soc/sh/rcar/mix.c 				      struct rsnd_mod *mod)
mod                87 sound/soc/sh/rcar/mix.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod                89 sound/soc/sh/rcar/mix.c 	struct rsnd_mix *mix = rsnd_mod_to_mix(mod);
mod                98 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MDBAR, volA);
mod                99 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MDBBR, volB);
mod               100 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MDBCR, volC);
mod               101 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MDBDR, volD);
mod               105 sound/soc/sh/rcar/mix.c 				 struct rsnd_mod *mod)
mod               107 sound/soc/sh/rcar/mix.c 	struct rsnd_mix *mix = rsnd_mod_to_mix(mod);
mod               109 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MIXIR, 1);
mod               112 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_ADINR, rsnd_runtime_channel_after_ctu(io));
mod               115 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MIXMR, rsnd_kctrl_vals(mix->ren));
mod               116 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MVPDR, rsnd_kctrl_vals(mix->rup) << 8 |
mod               120 sound/soc/sh/rcar/mix.c 	rsnd_mix_volume_parameter(io, mod);
mod               122 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MIXIR, 0);
mod               126 sound/soc/sh/rcar/mix.c 				  struct rsnd_mod *mod)
mod               129 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MDBER, 0);
mod               132 sound/soc/sh/rcar/mix.c 	rsnd_mix_volume_parameter(io, mod);
mod               135 sound/soc/sh/rcar/mix.c 	rsnd_mod_write(mod, MIX_MDBER, 1);
mod               138 sound/soc/sh/rcar/mix.c static int rsnd_mix_probe_(struct rsnd_mod *mod,
mod               142 sound/soc/sh/rcar/mix.c 	return rsnd_cmd_attach(io, rsnd_mod_id(mod));
mod               145 sound/soc/sh/rcar/mix.c static int rsnd_mix_init(struct rsnd_mod *mod,
mod               149 sound/soc/sh/rcar/mix.c 	rsnd_mod_power_on(mod);
mod               151 sound/soc/sh/rcar/mix.c 	rsnd_mix_activation(mod);
mod               153 sound/soc/sh/rcar/mix.c 	rsnd_mix_volume_init(io, mod);
mod               155 sound/soc/sh/rcar/mix.c 	rsnd_mix_volume_update(io, mod);
mod               160 sound/soc/sh/rcar/mix.c static int rsnd_mix_quit(struct rsnd_mod *mod,
mod               164 sound/soc/sh/rcar/mix.c 	rsnd_mix_halt(mod);
mod               166 sound/soc/sh/rcar/mix.c 	rsnd_mod_power_off(mod);
mod               171 sound/soc/sh/rcar/mix.c static int rsnd_mix_pcm_new(struct rsnd_mod *mod,
mod               175 sound/soc/sh/rcar/mix.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               177 sound/soc/sh/rcar/mix.c 	struct rsnd_mix *mix = rsnd_mod_to_mix(mod);
mod               209 sound/soc/sh/rcar/mix.c 	ret = rsnd_kctrl_new_s(mod, io, rtd,
mod               222 sound/soc/sh/rcar/mix.c 	ret = rsnd_kctrl_new_s(mod, io, rtd,
mod               230 sound/soc/sh/rcar/mix.c 	ret = rsnd_kctrl_new_e(mod, io, rtd,
mod               240 sound/soc/sh/rcar/mix.c 	ret = rsnd_kctrl_new_e(mod, io, rtd,
mod               250 sound/soc/sh/rcar/rsnd.h u32 rsnd_mod_read(struct rsnd_mod *mod, enum rsnd_reg reg);
mod               251 sound/soc/sh/rcar/rsnd.h void rsnd_mod_write(struct rsnd_mod *mod, enum rsnd_reg reg, u32 data);
mod               252 sound/soc/sh/rcar/rsnd.h void rsnd_mod_bset(struct rsnd_mod *mod, enum rsnd_reg reg, u32 mask, u32 data);
mod               253 sound/soc/sh/rcar/rsnd.h u32 rsnd_get_adinr_bit(struct rsnd_mod *mod, struct rsnd_dai_stream *io);
mod               254 sound/soc/sh/rcar/rsnd.h u32 rsnd_get_dalign(struct rsnd_mod *mod, struct rsnd_dai_stream *io);
mod               255 sound/soc/sh/rcar/rsnd.h u32 rsnd_get_busif_shift(struct rsnd_dai_stream *io, struct rsnd_mod *mod);
mod               261 sound/soc/sh/rcar/rsnd.h 		    struct rsnd_mod *mod, struct rsnd_mod **dma_mod);
mod               264 sound/soc/sh/rcar/rsnd.h 					  struct rsnd_mod *mod, char *name);
mod               289 sound/soc/sh/rcar/rsnd.h 				    struct rsnd_mod *mod);
mod               290 sound/soc/sh/rcar/rsnd.h 	int (*probe)(struct rsnd_mod *mod,
mod               293 sound/soc/sh/rcar/rsnd.h 	int (*remove)(struct rsnd_mod *mod,
mod               296 sound/soc/sh/rcar/rsnd.h 	int (*init)(struct rsnd_mod *mod,
mod               299 sound/soc/sh/rcar/rsnd.h 	int (*quit)(struct rsnd_mod *mod,
mod               302 sound/soc/sh/rcar/rsnd.h 	int (*start)(struct rsnd_mod *mod,
mod               305 sound/soc/sh/rcar/rsnd.h 	int (*stop)(struct rsnd_mod *mod,
mod               308 sound/soc/sh/rcar/rsnd.h 	int (*irq)(struct rsnd_mod *mod,
mod               311 sound/soc/sh/rcar/rsnd.h 	int (*pcm_new)(struct rsnd_mod *mod,
mod               314 sound/soc/sh/rcar/rsnd.h 	int (*hw_params)(struct rsnd_mod *mod,
mod               318 sound/soc/sh/rcar/rsnd.h 	int (*pointer)(struct rsnd_mod *mod,
mod               321 sound/soc/sh/rcar/rsnd.h 	int (*fallback)(struct rsnd_mod *mod,
mod               324 sound/soc/sh/rcar/rsnd.h 	int (*prepare)(struct rsnd_mod *mod,
mod               327 sound/soc/sh/rcar/rsnd.h 	int (*cleanup)(struct rsnd_mod *mod,
mod               330 sound/soc/sh/rcar/rsnd.h 	int (*hw_free)(struct rsnd_mod *mod,
mod               333 sound/soc/sh/rcar/rsnd.h 	u32 *(*get_status)(struct rsnd_mod *mod,
mod               336 sound/soc/sh/rcar/rsnd.h 	int (*id)(struct rsnd_mod *mod);
mod               337 sound/soc/sh/rcar/rsnd.h 	int (*id_sub)(struct rsnd_mod *mod);
mod               338 sound/soc/sh/rcar/rsnd.h 	int (*id_cmd)(struct rsnd_mod *mod);
mod               412 sound/soc/sh/rcar/rsnd.h #define rsnd_mod_to_priv(mod)	((mod)->priv)
mod               413 sound/soc/sh/rcar/rsnd.h #define rsnd_mod_power_on(mod)	clk_enable((mod)->clk)
mod               414 sound/soc/sh/rcar/rsnd.h #define rsnd_mod_power_off(mod)	clk_disable((mod)->clk)
mod               415 sound/soc/sh/rcar/rsnd.h #define rsnd_mod_get(ip)	(&(ip)->mod)
mod               418 sound/soc/sh/rcar/rsnd.h 		  struct rsnd_mod *mod,
mod               423 sound/soc/sh/rcar/rsnd.h void rsnd_mod_quit(struct rsnd_mod *mod);
mod               425 sound/soc/sh/rcar/rsnd.h 				  struct rsnd_mod *mod);
mod               426 sound/soc/sh/rcar/rsnd.h void rsnd_mod_interrupt(struct rsnd_mod *mod,
mod               427 sound/soc/sh/rcar/rsnd.h 			void (*callback)(struct rsnd_mod *mod,
mod               429 sound/soc/sh/rcar/rsnd.h u32 *rsnd_mod_get_status(struct rsnd_mod *mod,
mod               432 sound/soc/sh/rcar/rsnd.h int rsnd_mod_id(struct rsnd_mod *mod);
mod               433 sound/soc/sh/rcar/rsnd.h int rsnd_mod_id_raw(struct rsnd_mod *mod);
mod               434 sound/soc/sh/rcar/rsnd.h int rsnd_mod_id_sub(struct rsnd_mod *mod);
mod               435 sound/soc/sh/rcar/rsnd.h char *rsnd_mod_name(struct rsnd_mod *mod);
mod               492 sound/soc/sh/rcar/rsnd.h 	struct rsnd_mod *mod[RSND_MOD_MAX];
mod               507 sound/soc/sh/rcar/rsnd.h #define rsnd_io_to_mod(io, i)	((i) < RSND_MOD_MAX ? (io)->mod[(i)] : NULL)
mod               574 sound/soc/sh/rcar/rsnd.h int rsnd_dai_connect(struct rsnd_mod *mod,
mod               583 sound/soc/sh/rcar/rsnd.h 			       struct rsnd_mod *mod,
mod               591 sound/soc/sh/rcar/rsnd.h int rsnd_adg_ssi_clk_stop(struct rsnd_mod *mod);
mod               592 sound/soc/sh/rcar/rsnd.h int rsnd_adg_ssi_clk_try_start(struct rsnd_mod *mod, unsigned int rate);
mod               599 sound/soc/sh/rcar/rsnd.h int rsnd_adg_set_cmd_timsel_gen2(struct rsnd_mod *mod,
mod               708 sound/soc/sh/rcar/rsnd.h 	void (*update)(struct rsnd_dai_stream *io, struct rsnd_mod *mod);
mod               712 sound/soc/sh/rcar/rsnd.h 	struct rsnd_mod *mod;
mod               734 sound/soc/sh/rcar/rsnd.h int rsnd_kctrl_new(struct rsnd_mod *mod,
mod               740 sound/soc/sh/rcar/rsnd.h 				  struct rsnd_mod *mod),
mod               746 sound/soc/sh/rcar/rsnd.h #define rsnd_kctrl_new_m(mod, io, rtd, name, accept, update, cfg, size, max) \
mod               747 sound/soc/sh/rcar/rsnd.h 	rsnd_kctrl_new(mod, io, rtd, name, accept, update, rsnd_kctrl_init_m(cfg), \
mod               750 sound/soc/sh/rcar/rsnd.h #define rsnd_kctrl_new_s(mod, io, rtd, name, accept, update, cfg, max)	\
mod               751 sound/soc/sh/rcar/rsnd.h 	rsnd_kctrl_new(mod, io, rtd, name, accept, update, rsnd_kctrl_init_s(cfg), \
mod               754 sound/soc/sh/rcar/rsnd.h #define rsnd_kctrl_new_e(mod, io, rtd, name, accept, update, cfg, texts, size) \
mod               755 sound/soc/sh/rcar/rsnd.h 	rsnd_kctrl_new(mod, io, rtd, name, accept, update, rsnd_kctrl_init_s(cfg), \
mod               773 sound/soc/sh/rcar/rsnd.h int __rsnd_ssi_is_pin_sharing(struct rsnd_mod *mod);
mod               786 sound/soc/sh/rcar/rsnd.h 		     struct rsnd_mod *mod);
mod               856 sound/soc/sh/rcar/rsnd.h void rsnd_mod_make_sure(struct rsnd_mod *mod, enum rsnd_mod_type type);
mod                24 sound/soc/sh/rcar/src.c 	struct rsnd_mod mod;
mod                35 sound/soc/sh/rcar/src.c #define rsnd_src_sync_is_enabled(mod) (rsnd_mod_to_src(mod)->sen.val)
mod                38 sound/soc/sh/rcar/src.c 	container_of((_mod), struct rsnd_src, mod)
mod                57 sound/soc/sh/rcar/src.c static void rsnd_src_activation(struct rsnd_mod *mod)
mod                59 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_SWRSR, 0);
mod                60 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_SWRSR, 1);
mod                63 sound/soc/sh/rcar/src.c static void rsnd_src_halt(struct rsnd_mod *mod)
mod                65 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_SRCIR, 1);
mod                66 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_SWRSR, 0);
mod                70 sound/soc/sh/rcar/src.c 					 struct rsnd_mod *mod)
mod                72 sound/soc/sh/rcar/src.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod                76 sound/soc/sh/rcar/src.c 					mod,
mod                81 sound/soc/sh/rcar/src.c 				 struct rsnd_mod *mod)
mod                84 sound/soc/sh/rcar/src.c 	struct rsnd_src *src = rsnd_mod_to_src(mod);
mod                90 sound/soc/sh/rcar/src.c 	if (!rsnd_src_sync_is_enabled(mod))
mod               192 sound/soc/sh/rcar/src.c 				      struct rsnd_mod *mod)
mod               194 sound/soc/sh/rcar/src.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               230 sound/soc/sh/rcar/src.c 	use_src = (fin != fout) | rsnd_src_sync_is_enabled(mod);
mod               235 sound/soc/sh/rcar/src.c 	adinr = rsnd_get_adinr_bit(mod, io) | chan;
mod               259 sound/soc/sh/rcar/src.c 		if (rsnd_src_sync_is_enabled(mod)) {
mod               273 sound/soc/sh/rcar/src.c 	switch (rsnd_mod_id(mod)) {
mod               304 sound/soc/sh/rcar/src.c 		switch (rsnd_mod_id(mod)) {
mod               319 sound/soc/sh/rcar/src.c 	tmp = rsnd_get_busif_shift(io, mod);
mod               323 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_ROUTE_MODE0, route);
mod               325 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_SRCIR, 1);	/* initialize */
mod               326 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_ADINR, adinr);
mod               327 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_IFSCR, ifscr);
mod               328 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_IFSVR, fsrate);
mod               329 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_SRCCR, cr);
mod               330 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_BSDSR, bsdsr_table[idx]);
mod               331 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_BSISR, bsisr_table[idx]);
mod               332 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_SRCIR, 0);	/* cancel initialize */
mod               334 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_I_BUSIF_MODE, i_busif);
mod               335 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_O_BUSIF_MODE, o_busif);
mod               337 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_BUSIF_DALIGN, rsnd_get_dalign(mod, io));
mod               339 sound/soc/sh/rcar/src.c 	rsnd_adg_set_src_timesel_gen2(mod, io, fin, fout);
mod               347 sound/soc/sh/rcar/src.c static int rsnd_src_irq(struct rsnd_mod *mod,
mod               352 sound/soc/sh/rcar/src.c 	struct rsnd_src *src = rsnd_mod_to_src(mod);
mod               355 sound/soc/sh/rcar/src.c 	int id = rsnd_mod_id(mod);
mod               376 sound/soc/sh/rcar/src.c 	if (rsnd_src_sync_is_enabled(mod))
mod               379 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_INT_ENABLE0, int_val);
mod               380 sound/soc/sh/rcar/src.c 	rsnd_mod_bset(mod, SCU_SYS_INT_EN0, sys_int_mask, sys_int_val);
mod               381 sound/soc/sh/rcar/src.c 	rsnd_mod_bset(mod, SCU_SYS_INT_EN1, sys_int_mask, sys_int_val);
mod               386 sound/soc/sh/rcar/src.c static void rsnd_src_status_clear(struct rsnd_mod *mod)
mod               388 sound/soc/sh/rcar/src.c 	u32 val = OUF_SRC(rsnd_mod_id(mod));
mod               390 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SCU_SYS_STATUS0, val);
mod               391 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SCU_SYS_STATUS1, val);
mod               394 sound/soc/sh/rcar/src.c static bool rsnd_src_error_occurred(struct rsnd_mod *mod)
mod               396 sound/soc/sh/rcar/src.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               402 sound/soc/sh/rcar/src.c 	val0 = val1 = OUF_SRC(rsnd_mod_id(mod));
mod               409 sound/soc/sh/rcar/src.c 	if (rsnd_src_sync_is_enabled(mod))
mod               412 sound/soc/sh/rcar/src.c 	status0 = rsnd_mod_read(mod, SCU_SYS_STATUS0);
mod               413 sound/soc/sh/rcar/src.c 	status1 = rsnd_mod_read(mod, SCU_SYS_STATUS1);
mod               416 sound/soc/sh/rcar/src.c 			rsnd_mod_name(mod), status0, status1);
mod               424 sound/soc/sh/rcar/src.c static int rsnd_src_start(struct rsnd_mod *mod,
mod               435 sound/soc/sh/rcar/src.c 	val = (rsnd_io_to_mod_dvc(io) && !rsnd_src_sync_is_enabled(mod)) ?
mod               438 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_CTRL, val);
mod               443 sound/soc/sh/rcar/src.c static int rsnd_src_stop(struct rsnd_mod *mod,
mod               447 sound/soc/sh/rcar/src.c 	rsnd_mod_write(mod, SRC_CTRL, 0);
mod               452 sound/soc/sh/rcar/src.c static int rsnd_src_init(struct rsnd_mod *mod,
mod               456 sound/soc/sh/rcar/src.c 	struct rsnd_src *src = rsnd_mod_to_src(mod);
mod               461 sound/soc/sh/rcar/src.c 	rsnd_mod_power_on(mod);
mod               463 sound/soc/sh/rcar/src.c 	rsnd_src_activation(mod);
mod               465 sound/soc/sh/rcar/src.c 	rsnd_src_set_convert_rate(io, mod);
mod               467 sound/soc/sh/rcar/src.c 	rsnd_src_status_clear(mod);
mod               472 sound/soc/sh/rcar/src.c static int rsnd_src_quit(struct rsnd_mod *mod,
mod               476 sound/soc/sh/rcar/src.c 	struct rsnd_src *src = rsnd_mod_to_src(mod);
mod               478 sound/soc/sh/rcar/src.c 	rsnd_src_halt(mod);
mod               480 sound/soc/sh/rcar/src.c 	rsnd_mod_power_off(mod);
mod               488 sound/soc/sh/rcar/src.c static void __rsnd_src_interrupt(struct rsnd_mod *mod,
mod               491 sound/soc/sh/rcar/src.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               500 sound/soc/sh/rcar/src.c 	if (rsnd_src_error_occurred(mod))
mod               503 sound/soc/sh/rcar/src.c 	rsnd_src_status_clear(mod);
mod               514 sound/soc/sh/rcar/src.c 	struct rsnd_mod *mod = data;
mod               516 sound/soc/sh/rcar/src.c 	rsnd_mod_interrupt(mod, __rsnd_src_interrupt);
mod               521 sound/soc/sh/rcar/src.c static int rsnd_src_probe_(struct rsnd_mod *mod,
mod               525 sound/soc/sh/rcar/src.c 	struct rsnd_src *src = rsnd_mod_to_src(mod);
mod               539 sound/soc/sh/rcar/src.c 				       dev_name(dev), mod);
mod               544 sound/soc/sh/rcar/src.c 	ret = rsnd_dma_attach(io, mod, &src->dma);
mod               549 sound/soc/sh/rcar/src.c static int rsnd_src_pcm_new(struct rsnd_mod *mod,
mod               553 sound/soc/sh/rcar/src.c 	struct rsnd_src *src = rsnd_mod_to_src(mod);
mod               570 sound/soc/sh/rcar/src.c 	ret = rsnd_kctrl_new_s(mod, io, rtd,
mod               580 sound/soc/sh/rcar/src.c 	ret = rsnd_kctrl_new_s(mod, io, rtd,
mod                80 sound/soc/sh/rcar/ssi.c 	struct rsnd_mod mod;
mod               112 sound/soc/sh/rcar/ssi.c #define rsnd_mod_to_ssi(_mod) container_of((_mod), struct rsnd_ssi, mod)
mod               114 sound/soc/sh/rcar/ssi.c #define rsnd_ssi_is_multi_slave(mod, io) \
mod               115 sound/soc/sh/rcar/ssi.c 	(rsnd_ssi_multi_slaves(io) & (1 << rsnd_mod_id(mod)))
mod               116 sound/soc/sh/rcar/ssi.c #define rsnd_ssi_is_run_mods(mod, io) \
mod               117 sound/soc/sh/rcar/ssi.c 	(rsnd_ssi_run_mods(io) & (1 << rsnd_mod_id(mod)))
mod               118 sound/soc/sh/rcar/ssi.c #define rsnd_ssi_can_output_clk(mod) (!__rsnd_ssi_is_pin_sharing(mod))
mod               120 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_is_dma_mode(struct rsnd_mod *mod);
mod               124 sound/soc/sh/rcar/ssi.c 	struct rsnd_mod *mod = rsnd_io_to_mod_ssi(io);
mod               125 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               128 sound/soc/sh/rcar/ssi.c 	if (!rsnd_ssi_is_dma_mode(mod))
mod               139 sound/soc/sh/rcar/ssi.c static void rsnd_ssi_status_clear(struct rsnd_mod *mod)
mod               141 sound/soc/sh/rcar/ssi.c 	rsnd_mod_write(mod, SSISR, 0);
mod               144 sound/soc/sh/rcar/ssi.c static u32 rsnd_ssi_status_get(struct rsnd_mod *mod)
mod               146 sound/soc/sh/rcar/ssi.c 	return rsnd_mod_read(mod, SSISR);
mod               149 sound/soc/sh/rcar/ssi.c static void rsnd_ssi_status_check(struct rsnd_mod *mod,
mod               152 sound/soc/sh/rcar/ssi.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               158 sound/soc/sh/rcar/ssi.c 		status = rsnd_ssi_status_get(mod);
mod               165 sound/soc/sh/rcar/ssi.c 	dev_warn(dev, "%s status check failed\n", rsnd_mod_name(mod));
mod               170 sound/soc/sh/rcar/ssi.c 	struct rsnd_mod *mod;
mod               180 sound/soc/sh/rcar/ssi.c 		mod = rsnd_io_to_mod(io, types[i]);
mod               181 sound/soc/sh/rcar/ssi.c 		if (!mod)
mod               184 sound/soc/sh/rcar/ssi.c 		mask |= 1 << rsnd_mod_id(mod);
mod               266 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_master_clk_start(struct rsnd_mod *mod,
mod               272 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               283 sound/soc/sh/rcar/ssi.c 	if (!rsnd_ssi_can_output_clk(mod))
mod               286 sound/soc/sh/rcar/ssi.c 	if (rsnd_ssi_is_multi_slave(mod, io))
mod               314 sound/soc/sh/rcar/ssi.c 	ret = rsnd_adg_ssi_clk_try_start(mod, main_rate);
mod               335 sound/soc/sh/rcar/ssi.c 		rsnd_mod_name(mod), chan, rate);
mod               340 sound/soc/sh/rcar/ssi.c static void rsnd_ssi_master_clk_stop(struct rsnd_mod *mod,
mod               344 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               349 sound/soc/sh/rcar/ssi.c 	if (!rsnd_ssi_can_output_clk(mod))
mod               359 sound/soc/sh/rcar/ssi.c 	rsnd_adg_ssi_clk_stop(mod);
mod               362 sound/soc/sh/rcar/ssi.c static void rsnd_ssi_config_init(struct rsnd_mod *mod,
mod               369 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               410 sound/soc/sh/rcar/ssi.c 	if (rsnd_ssi_is_parent(mod, io))
mod               443 sound/soc/sh/rcar/ssi.c 	if (rsnd_ssi_is_dma_mode(mod)) {
mod               456 sound/soc/sh/rcar/ssi.c static void rsnd_ssi_register_setup(struct rsnd_mod *mod)
mod               458 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               460 sound/soc/sh/rcar/ssi.c 	rsnd_mod_write(mod, SSIWSR,	ssi->wsr);
mod               461 sound/soc/sh/rcar/ssi.c 	rsnd_mod_write(mod, SSICR,	ssi->cr_own	|
mod               470 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_init(struct rsnd_mod *mod,
mod               474 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               476 sound/soc/sh/rcar/ssi.c 	if (!rsnd_ssi_is_run_mods(mod, io))
mod               481 sound/soc/sh/rcar/ssi.c 	rsnd_mod_power_on(mod);
mod               483 sound/soc/sh/rcar/ssi.c 	rsnd_ssi_config_init(mod, io);
mod               485 sound/soc/sh/rcar/ssi.c 	rsnd_ssi_register_setup(mod);
mod               488 sound/soc/sh/rcar/ssi.c 	rsnd_ssi_status_clear(mod);
mod               493 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_quit(struct rsnd_mod *mod,
mod               497 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               500 sound/soc/sh/rcar/ssi.c 	if (!rsnd_ssi_is_run_mods(mod, io))
mod               504 sound/soc/sh/rcar/ssi.c 		dev_err(dev, "%s usrcnt error\n", rsnd_mod_name(mod));
mod               508 sound/soc/sh/rcar/ssi.c 	rsnd_ssi_master_clk_stop(mod, io);
mod               510 sound/soc/sh/rcar/ssi.c 	rsnd_mod_power_off(mod);
mod               523 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_hw_params(struct rsnd_mod *mod,
mod               542 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_start(struct rsnd_mod *mod,
mod               546 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               548 sound/soc/sh/rcar/ssi.c 	if (!rsnd_ssi_is_run_mods(mod, io))
mod               562 sound/soc/sh/rcar/ssi.c 	if (rsnd_ssi_is_parent(mod, io))
mod               567 sound/soc/sh/rcar/ssi.c 	rsnd_mod_write(mod, SSICR,	ssi->cr_own	|
mod               575 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_stop(struct rsnd_mod *mod,
mod               579 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               582 sound/soc/sh/rcar/ssi.c 	if (!rsnd_ssi_is_run_mods(mod, io))
mod               585 sound/soc/sh/rcar/ssi.c 	if (rsnd_ssi_is_parent(mod, io))
mod               597 sound/soc/sh/rcar/ssi.c 		rsnd_mod_write(mod, SSICR, cr | ssi->cr_en);
mod               598 sound/soc/sh/rcar/ssi.c 		rsnd_ssi_status_check(mod, DIRQ);
mod               611 sound/soc/sh/rcar/ssi.c 	rsnd_mod_write(mod, SSICR, cr);	/* disabled all */
mod               612 sound/soc/sh/rcar/ssi.c 	rsnd_ssi_status_check(mod, IIRQ);
mod               619 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_irq(struct rsnd_mod *mod,
mod               629 sound/soc/sh/rcar/ssi.c 	if (rsnd_ssi_is_parent(mod, io))
mod               632 sound/soc/sh/rcar/ssi.c 	if (!rsnd_ssi_is_run_mods(mod, io))
mod               636 sound/soc/sh/rcar/ssi.c 		val = rsnd_ssi_is_dma_mode(mod) ? 0x0e000000 : 0x0f000000;
mod               638 sound/soc/sh/rcar/ssi.c 	rsnd_mod_write(mod, SSI_INT_ENABLE, val);
mod               643 sound/soc/sh/rcar/ssi.c static bool rsnd_ssi_pio_interrupt(struct rsnd_mod *mod,
mod               645 sound/soc/sh/rcar/ssi.c static void __rsnd_ssi_interrupt(struct rsnd_mod *mod,
mod               648 sound/soc/sh/rcar/ssi.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               650 sound/soc/sh/rcar/ssi.c 	int is_dma = rsnd_ssi_is_dma_mode(mod);
mod               661 sound/soc/sh/rcar/ssi.c 	status = rsnd_ssi_status_get(mod);
mod               665 sound/soc/sh/rcar/ssi.c 		elapsed = rsnd_ssi_pio_interrupt(mod, io);
mod               670 sound/soc/sh/rcar/ssi.c 			rsnd_mod_name(mod), status);
mod               675 sound/soc/sh/rcar/ssi.c 	rsnd_ssi_status_clear(mod);
mod               689 sound/soc/sh/rcar/ssi.c 	struct rsnd_mod *mod = data;
mod               691 sound/soc/sh/rcar/ssi.c 	rsnd_mod_interrupt(mod, __rsnd_ssi_interrupt);
mod               696 sound/soc/sh/rcar/ssi.c static u32 *rsnd_ssi_get_status(struct rsnd_mod *mod,
mod               728 sound/soc/sh/rcar/ssi.c 	return rsnd_mod_get_status(mod, io, type);
mod               734 sound/soc/sh/rcar/ssi.c static void rsnd_ssi_parent_attach(struct rsnd_mod *mod,
mod               738 sound/soc/sh/rcar/ssi.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               740 sound/soc/sh/rcar/ssi.c 	if (!__rsnd_ssi_is_pin_sharing(mod))
mod               746 sound/soc/sh/rcar/ssi.c 	if (rsnd_ssi_is_multi_slave(mod, io))
mod               749 sound/soc/sh/rcar/ssi.c 	switch (rsnd_mod_id(mod)) {
mod               764 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_pcm_new(struct rsnd_mod *mod,
mod               773 sound/soc/sh/rcar/ssi.c 	rsnd_ssi_parent_attach(mod, io);
mod               778 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_common_probe(struct rsnd_mod *mod,
mod               783 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               790 sound/soc/sh/rcar/ssi.c 	if (rsnd_ssi_is_multi_slave(mod, io))
mod               813 sound/soc/sh/rcar/ssi.c 				  dev_name(dev), mod);
mod               821 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_common_remove(struct rsnd_mod *mod,
mod               825 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               829 sound/soc/sh/rcar/ssi.c 	if (pure_ssi_mod != mod)
mod               834 sound/soc/sh/rcar/ssi.c 		free_irq(ssi->irq, mod);
mod               845 sound/soc/sh/rcar/ssi.c static bool rsnd_ssi_pio_interrupt(struct rsnd_mod *mod,
mod               849 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               864 sound/soc/sh/rcar/ssi.c 		rsnd_mod_write(mod, SSITDR, (*buf) << shift);
mod               866 sound/soc/sh/rcar/ssi.c 		*buf = (rsnd_mod_read(mod, SSIRDR) >> shift);
mod               888 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_pio_init(struct rsnd_mod *mod,
mod               893 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               895 sound/soc/sh/rcar/ssi.c 	if (!rsnd_ssi_is_parent(mod, io)) {
mod               903 sound/soc/sh/rcar/ssi.c 	return rsnd_ssi_init(mod, io, priv);
mod               906 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_pio_pointer(struct rsnd_mod *mod,
mod               910 sound/soc/sh/rcar/ssi.c 	struct rsnd_ssi *ssi = rsnd_mod_to_ssi(mod);
mod               918 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_prepare(struct rsnd_mod *mod,
mod               922 sound/soc/sh/rcar/ssi.c 	return rsnd_ssi_master_clk_start(mod, io);
mod               941 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_dma_probe(struct rsnd_mod *mod,
mod               951 sound/soc/sh/rcar/ssi.c 	if (rsnd_ssi_is_multi_slave(mod, io))
mod               954 sound/soc/sh/rcar/ssi.c 	ret = rsnd_ssi_common_probe(mod, io, priv);
mod               959 sound/soc/sh/rcar/ssi.c 	ret = rsnd_dma_attach(io, mod, &io->dma);
mod               964 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_fallback(struct rsnd_mod *mod,
mod               977 sound/soc/sh/rcar/ssi.c 	mod->ops = &rsnd_ssi_pio_ops;
mod               979 sound/soc/sh/rcar/ssi.c 	dev_info(dev, "%s fallback to PIO mode\n", rsnd_mod_name(mod));
mod               985 sound/soc/sh/rcar/ssi.c 					 struct rsnd_mod *mod)
mod               987 sound/soc/sh/rcar/ssi.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod              1008 sound/soc/sh/rcar/ssi.c 					mod, name);
mod              1028 sound/soc/sh/rcar/ssi.c static int rsnd_ssi_is_dma_mode(struct rsnd_mod *mod)
mod              1030 sound/soc/sh/rcar/ssi.c 	return mod->ops == &rsnd_ssi_dma_ops;
mod              1036 sound/soc/sh/rcar/ssi.c static void rsnd_ssi_connect(struct rsnd_mod *mod,
mod              1053 sound/soc/sh/rcar/ssi.c 			rsnd_dai_connect(mod, io, type);
mod              1068 sound/soc/sh/rcar/ssi.c 	struct rsnd_mod *mod;
mod              1077 sound/soc/sh/rcar/ssi.c 		mod = rsnd_ssi_mod_get(priv, i);
mod              1079 sound/soc/sh/rcar/ssi.c 			rsnd_ssi_connect(mod, &rdai->playback);
mod              1081 sound/soc/sh/rcar/ssi.c 			rsnd_ssi_connect(mod, &rdai->capture);
mod              1096 sound/soc/sh/rcar/ssi.c int __rsnd_ssi_is_pin_sharing(struct rsnd_mod *mod)
mod              1098 sound/soc/sh/rcar/ssi.c 	if (!mod)
mod              1101 sound/soc/sh/rcar/ssi.c 	return !!(rsnd_flags_has(rsnd_mod_to_ssi(mod), RSND_SSI_CLK_PIN_SHARE));
mod                12 sound/soc/sh/rcar/ssiu.c 	struct rsnd_mod mod;
mod                24 sound/soc/sh/rcar/ssiu.c #define rsnd_mod_to_ssiu(_mod) container_of((_mod), struct rsnd_ssiu, mod)
mod                48 sound/soc/sh/rcar/ssiu.c static u32 *rsnd_ssiu_get_status(struct rsnd_mod *mod,
mod                52 sound/soc/sh/rcar/ssiu.c 	struct rsnd_ssiu *ssiu = rsnd_mod_to_ssiu(mod);
mod                53 sound/soc/sh/rcar/ssiu.c 	int busif = rsnd_mod_id_sub(mod);
mod                58 sound/soc/sh/rcar/ssiu.c static int rsnd_ssiu_init(struct rsnd_mod *mod,
mod                65 sound/soc/sh/rcar/ssiu.c 	int id = rsnd_mod_id(mod);
mod                78 sound/soc/sh/rcar/ssiu.c 			rsnd_mod_write(mod, SSI_SYS_STATUS(i * 2), 0xf << (id * 4));
mod                82 sound/soc/sh/rcar/ssiu.c 			rsnd_mod_write(mod, SSI_SYS_STATUS((i * 2) + 1), 0xf << 4);
mod                89 sound/soc/sh/rcar/ssiu.c 	rsnd_mod_bset(mod, SSI_MODE0, (1 << id), !use_busif << id);
mod                97 sound/soc/sh/rcar/ssiu.c 	val1 = rsnd_mod_read(mod, SSI_MODE1);
mod                98 sound/soc/sh/rcar/ssiu.c 	val2 = rsnd_mod_read(mod, SSI_MODE2);
mod               137 sound/soc/sh/rcar/ssiu.c 	rsnd_mod_bset(mod, SSI_MODE1, 0x0013001f, val1);
mod               138 sound/soc/sh/rcar/ssiu.c 	rsnd_mod_bset(mod, SSI_MODE2, 0x00000017, val2);
mod               149 sound/soc/sh/rcar/ssiu.c static int rsnd_ssiu_init_gen2(struct rsnd_mod *mod,
mod               153 sound/soc/sh/rcar/ssiu.c 	struct rsnd_ssiu *ssiu = rsnd_mod_to_ssiu(mod);
mod               159 sound/soc/sh/rcar/ssiu.c 	ret = rsnd_ssiu_init(mod, io, priv);
mod               175 sound/soc/sh/rcar/ssiu.c 	rsnd_mod_write(mod, SSI_MODE, mode);
mod               178 sound/soc/sh/rcar/ssiu.c 		int id = rsnd_mod_id(mod);
mod               179 sound/soc/sh/rcar/ssiu.c 		int busif = rsnd_mod_id_sub(mod);
mod               192 sound/soc/sh/rcar/ssiu.c 		rsnd_mod_write(mod, adinr_reg,
mod               193 sound/soc/sh/rcar/ssiu.c 			       rsnd_get_adinr_bit(mod, io) |
mod               197 sound/soc/sh/rcar/ssiu.c 		rsnd_mod_write(mod, mode_reg,
mod               198 sound/soc/sh/rcar/ssiu.c 			       rsnd_get_busif_shift(io, mod) | 1);
mod               199 sound/soc/sh/rcar/ssiu.c 		rsnd_mod_write(mod, dalign_reg,
mod               200 sound/soc/sh/rcar/ssiu.c 			       rsnd_get_dalign(mod, io));
mod               230 sound/soc/sh/rcar/ssiu.c 			rsnd_mod_write(mod, HDMI0_SEL, val);
mod               232 sound/soc/sh/rcar/ssiu.c 			rsnd_mod_write(mod, HDMI1_SEL, val);
mod               238 sound/soc/sh/rcar/ssiu.c static int rsnd_ssiu_start_gen2(struct rsnd_mod *mod,
mod               242 sound/soc/sh/rcar/ssiu.c 	int busif = rsnd_mod_id_sub(mod);
mod               247 sound/soc/sh/rcar/ssiu.c 	rsnd_mod_bset(mod, SSI_CTRL, 1 << (busif * 4), 1 << (busif * 4));
mod               250 sound/soc/sh/rcar/ssiu.c 		rsnd_mod_write(mod, SSI_CONTROL, 0x1);
mod               255 sound/soc/sh/rcar/ssiu.c static int rsnd_ssiu_stop_gen2(struct rsnd_mod *mod,
mod               259 sound/soc/sh/rcar/ssiu.c 	struct rsnd_ssiu *ssiu = rsnd_mod_to_ssiu(mod);
mod               260 sound/soc/sh/rcar/ssiu.c 	int busif = rsnd_mod_id_sub(mod);
mod               265 sound/soc/sh/rcar/ssiu.c 	rsnd_mod_bset(mod, SSI_CTRL, 1 << (busif * 4), 0);
mod               271 sound/soc/sh/rcar/ssiu.c 		rsnd_mod_write(mod, SSI_CONTROL, 0);
mod               276 sound/soc/sh/rcar/ssiu.c static int rsnd_ssiu_id(struct rsnd_mod *mod)
mod               278 sound/soc/sh/rcar/ssiu.c 	struct rsnd_ssiu *ssiu = rsnd_mod_to_ssiu(mod);
mod               284 sound/soc/sh/rcar/ssiu.c static int rsnd_ssiu_id_sub(struct rsnd_mod *mod)
mod               286 sound/soc/sh/rcar/ssiu.c 	struct rsnd_ssiu *ssiu = rsnd_mod_to_ssiu(mod);
mod               293 sound/soc/sh/rcar/ssiu.c 					  struct rsnd_mod *mod)
mod               295 sound/soc/sh/rcar/ssiu.c 	struct rsnd_priv *priv = rsnd_mod_to_priv(mod);
mod               313 sound/soc/sh/rcar/ssiu.c 					mod, name);
mod               337 sound/soc/sh/rcar/ssiu.c 	struct rsnd_mod *mod;
mod               346 sound/soc/sh/rcar/ssiu.c 		mod = rsnd_mod_get(ssiu);
mod               348 sound/soc/sh/rcar/ssiu.c 		if ((rsnd_mod_id(ssi_mod) == rsnd_mod_id(mod)) &&
mod               349 sound/soc/sh/rcar/ssiu.c 		    (rsnd_mod_id_sub(mod) == 0)) {
mod               350 sound/soc/sh/rcar/ssiu.c 			rsnd_dai_connect(mod, io, mod->type);
mod               363 sound/soc/sh/rcar/ssiu.c 	struct rsnd_mod *mod;
mod               372 sound/soc/sh/rcar/ssiu.c 			mod = rsnd_ssiu_mod_get(priv, i);
mod               374 sound/soc/sh/rcar/ssiu.c 				rsnd_dai_connect(mod, io_p, mod->type);
mod               376 sound/soc/sh/rcar/ssiu.c 				rsnd_dai_connect(mod, io_c, mod->type);
mod               256 tools/arch/x86/lib/insn.c 	insn_byte_t pfx_id, mod;
mod               263 tools/arch/x86/lib/insn.c 		mod = get_next(insn_byte_t, insn);
mod               264 tools/arch/x86/lib/insn.c 		modrm->value = mod;
mod               268 tools/arch/x86/lib/insn.c 			insn->attr = inat_get_group_attribute(mod, pfx_id,
mod               346 tools/arch/x86/lib/insn.c 	insn_byte_t mod, rm, base;
mod               370 tools/arch/x86/lib/insn.c 		mod = X86_MODRM_MOD(insn->modrm.value);
mod               373 tools/arch/x86/lib/insn.c 		if (mod == 3)
mod               375 tools/arch/x86/lib/insn.c 		if (mod == 1) {
mod               379 tools/arch/x86/lib/insn.c 			if ((mod == 0 && rm == 6) || mod == 2) {
mod               385 tools/arch/x86/lib/insn.c 			if ((mod == 0 && rm == 5) || mod == 2 ||
mod               386 tools/arch/x86/lib/insn.c 			    (mod == 0 && base == 5)) {
mod               106 tools/bpf/bpf_exp.y 	| mod
mod               383 tools/bpf/bpf_exp.y mod
mod               127 tools/iio/iio_event_monitor.c 	enum iio_modifier mod = IIO_EVENT_CODE_EXTRACT_MODIFIER(event->id);
mod               169 tools/iio/iio_event_monitor.c 	switch (mod) {
mod               247 tools/iio/iio_event_monitor.c 	enum iio_modifier mod = IIO_EVENT_CODE_EXTRACT_MODIFIER(event->id);
mod               264 tools/iio/iio_event_monitor.c 	if (mod != IIO_NO_MOD)
mod               265 tools/iio/iio_event_monitor.c 		printf("(%s)", iio_modifier_names[mod]);
mod               399 tools/lib/traceevent/event-parse.c 	char				*mod;
mod               406 tools/lib/traceevent/event-parse.c 	char			*mod;
mod               460 tools/lib/traceevent/event-parse.c 		func_map[i].mod = funclist->mod;
mod               474 tools/lib/traceevent/event-parse.c 	func_map[tep->func_count].mod = NULL;
mod               553 tools/lib/traceevent/event-parse.c 	map->mod  = NULL;
mod               556 tools/lib/traceevent/event-parse.c 					     &map->addr, &map->mod);
mod               615 tools/lib/traceevent/event-parse.c 			  unsigned long long addr, char *mod)
mod               627 tools/lib/traceevent/event-parse.c 	if (mod) {
mod               628 tools/lib/traceevent/event-parse.c 		item->mod = strdup(mod);
mod               629 tools/lib/traceevent/event-parse.c 		if (!item->mod)
mod               632 tools/lib/traceevent/event-parse.c 		item->mod = NULL;
mod               666 tools/lib/traceevent/event-parse.c 		if (tep->func_map[i].mod)
mod               667 tools/lib/traceevent/event-parse.c 			printf(" [%s]\n", tep->func_map[i].mod);
mod              7021 tools/lib/traceevent/event-parse.c 			free(tep->func_map[i].mod);
mod              7029 tools/lib/traceevent/event-parse.c 		free(funclist->mod);
mod               439 tools/lib/traceevent/event-parse.h 			  unsigned long long addr, char *mod);
mod                97 tools/perf/arch/powerpc/util/skip-callchain-idx.c static Dwarf_Frame *get_eh_frame(Dwfl_Module *mod, Dwarf_Addr pc)
mod               104 tools/perf/arch/powerpc/util/skip-callchain-idx.c 	cfi = dwfl_module_eh_cfi(mod, &bias);
mod               122 tools/perf/arch/powerpc/util/skip-callchain-idx.c static Dwarf_Frame *get_dwarf_frame(Dwfl_Module *mod, Dwarf_Addr pc)
mod               129 tools/perf/arch/powerpc/util/skip-callchain-idx.c 	cfi = dwfl_module_dwarf_cfi(mod, &bias);
mod               156 tools/perf/arch/powerpc/util/skip-callchain-idx.c 	Dwfl_Module	*mod;
mod               173 tools/perf/arch/powerpc/util/skip-callchain-idx.c 		mod = dwfl_report_elf(dwfl, exec_file, exec_file, -1,
mod               175 tools/perf/arch/powerpc/util/skip-callchain-idx.c 		if (!mod) {
mod               189 tools/perf/arch/powerpc/util/skip-callchain-idx.c 	mod = dwfl_addrmodule(dwfl, pc);
mod               190 tools/perf/arch/powerpc/util/skip-callchain-idx.c 	if (!mod) {
mod               199 tools/perf/arch/powerpc/util/skip-callchain-idx.c 	frame = get_eh_frame(mod, pc);
mod               201 tools/perf/arch/powerpc/util/skip-callchain-idx.c 		frame = get_dwarf_frame(mod, pc);
mod               402 tools/perf/util/evsel.c #define MOD_PRINT(context, mod)	do {					\
mod               405 tools/perf/util/evsel.c 			r += scnprintf(bf + r, size - r, "%c", mod);	\
mod              1607 tools/perf/util/parse-events.c static int get_event_modifier(struct event_modifier *mod, char *str,
mod              1625 tools/perf/util/parse-events.c 	memset(mod, 0, sizeof(*mod));
mod              1682 tools/perf/util/parse-events.c 	mod->eu = eu;
mod              1683 tools/perf/util/parse-events.c 	mod->ek = ek;
mod              1684 tools/perf/util/parse-events.c 	mod->eh = eh;
mod              1685 tools/perf/util/parse-events.c 	mod->eH = eH;
mod              1686 tools/perf/util/parse-events.c 	mod->eG = eG;
mod              1687 tools/perf/util/parse-events.c 	mod->eI = eI;
mod              1688 tools/perf/util/parse-events.c 	mod->precise = precise;
mod              1689 tools/perf/util/parse-events.c 	mod->precise_max = precise_max;
mod              1690 tools/perf/util/parse-events.c 	mod->exclude_GH = exclude_GH;
mod              1691 tools/perf/util/parse-events.c 	mod->sample_read = sample_read;
mod              1692 tools/perf/util/parse-events.c 	mod->pinned = pinned;
mod              1693 tools/perf/util/parse-events.c 	mod->weak = weak;
mod              1722 tools/perf/util/parse-events.c 	struct event_modifier mod;
mod              1730 tools/perf/util/parse-events.c 	if (!add && get_event_modifier(&mod, str, NULL))
mod              1734 tools/perf/util/parse-events.c 		if (add && get_event_modifier(&mod, str, evsel))
mod              1737 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_user   = mod.eu;
mod              1738 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_kernel = mod.ek;
mod              1739 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_hv     = mod.eh;
mod              1740 tools/perf/util/parse-events.c 		evsel->core.attr.precise_ip     = mod.precise;
mod              1741 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_host   = mod.eH;
mod              1742 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_guest  = mod.eG;
mod              1743 tools/perf/util/parse-events.c 		evsel->core.attr.exclude_idle   = mod.eI;
mod              1744 tools/perf/util/parse-events.c 		evsel->exclude_GH          = mod.exclude_GH;
mod              1745 tools/perf/util/parse-events.c 		evsel->sample_read         = mod.sample_read;
mod              1746 tools/perf/util/parse-events.c 		evsel->precise_max         = mod.precise_max;
mod              1747 tools/perf/util/parse-events.c 		evsel->weak_group	   = mod.weak;
mod              1750 tools/perf/util/parse-events.c 			evsel->core.attr.pinned = mod.pinned;
mod                65 tools/perf/util/probe-finder.c 	dbg->mod = dwfl_report_offline(dbg->dwfl, "", "", fd);
mod                66 tools/perf/util/probe-finder.c 	if (!dbg->mod)
mod                69 tools/perf/util/probe-finder.c 	dbg->dbg = dwfl_module_getdwarf(dbg->mod, &dbg->bias);
mod               602 tools/perf/util/probe-finder.c static int convert_to_trace_point(Dwarf_Die *sp_die, Dwfl_Module *mod,
mod               623 tools/perf/util/probe-finder.c 		symbol = dwfl_module_addrsym(mod, paddr, &sym, NULL);
mod              1294 tools/perf/util/probe-finder.c 	ret = convert_to_trace_point(&pf->sp_die, tf->mod, pf->addr,
mod              1352 tools/perf/util/probe-finder.c 			.max_tevs = probe_conf.max_probes, .mod = dbg->mod};
mod              1474 tools/perf/util/probe-finder.c 	ret = convert_to_trace_point(&pf->sp_die, af->mod, pf->addr,
mod              1516 tools/perf/util/probe-finder.c 			.mod = dbg->mod,
mod              1553 tools/perf/util/probe-finder.c 	elf = dwfl_module_getelf(dbg->mod, &dbg->bias);
mod              1558 tools/perf/util/probe-finder.c 	n = dwfl_module_relocations(dbg->mod);
mod              1563 tools/perf/util/probe-finder.c 		p = dwfl_module_relocation_info(dbg->mod, i, &shndx);
mod                32 tools/perf/util/probe-finder.h 	Dwfl_Module	*mod;
mod                94 tools/perf/util/probe-finder.h 	Dwfl_Module		*mod;		/* For solving symbols */
mod               102 tools/perf/util/probe-finder.h 	Dwfl_Module		*mod;		/* For solving symbols */
mod                32 tools/perf/util/unwind-libdw.c 	Dwfl_Module *mod;
mod                46 tools/perf/util/unwind-libdw.c 	mod = dwfl_addrmodule(ui->dwfl, ip);
mod                47 tools/perf/util/unwind-libdw.c 	if (mod) {
mod                50 tools/perf/util/unwind-libdw.c 		dwfl_module_info(mod, NULL, &s, NULL, NULL, NULL, NULL, NULL);
mod                52 tools/perf/util/unwind-libdw.c 			mod = 0;
mod                55 tools/perf/util/unwind-libdw.c 	if (!mod)
mod                56 tools/perf/util/unwind-libdw.c 		mod = dwfl_report_elf(ui->dwfl, dso->short_name,
mod                60 tools/perf/util/unwind-libdw.c 	return mod && dwfl_addrmodule(ui->dwfl, ip) == mod ? 0 : -1;
mod                94 tools/testing/selftests/net/reuseport_bpf.c static void attach_ebpf(int fd, uint16_t mod)
mod               106 tools/testing/selftests/net/reuseport_bpf.c 		{ BPF_ALU64 | BPF_MOD | BPF_K, BPF_REG_0, 0, 0, mod },
mod               133 tools/testing/selftests/net/reuseport_bpf.c static void attach_cbpf(int fd, uint16_t mod)
mod               139 tools/testing/selftests/net/reuseport_bpf.c 		{ BPF_ALU | BPF_MOD, 0, 0, mod },
mod               152 tools/testing/selftests/net/reuseport_bpf.c static void build_recv_group(const struct test_params p, int fd[], uint16_t mod,
mod               170 tools/testing/selftests/net/reuseport_bpf.c 			attach_bpf(fd[i], mod);
mod               213 tools/testing/selftests/net/reuseport_bpf.c static void test_recv_order(const struct test_params p, int fd[], int mod)
mod               267 tools/testing/selftests/net/reuseport_bpf.c 		expected = (sport % mod);