/external/python/cpython2/Tools/freeze/ |
H A D | makefreeze.py | 38 for mod in mods: 39 m = dict[mod] 40 mangled = "__".join(mod.split(".")) 46 print "freezing", mod, "..." 52 done.append((mod, mangled, size)) 58 for mod, mangled, size in done: 61 for mod, mangled, size in done: 62 outfp.write('\t{"%s", M_%s, %d},\n' % (mod, mangled, size)) 68 for mod in fail_import: 69 outfp.write('\t{"%s", NULL, 0},\n' % (mod,)) [all...] |
H A D | makeconfig.py | 17 for mod in modules: 18 if mod in never: 21 outfp.write("#ifndef init%s\n"%mod) 22 outfp.write('extern void init%s(void);\n' % mod) 27 for mod in modules: 28 if mod in never: 31 (mod, mod))
|
/external/kmod/libkmod/ |
H A D | libkmod-module.c | 126 static inline bool module_is_inkernel(struct kmod_module *mod) argument 128 int state = kmod_module_get_initstate(mod); 137 int kmod_module_parse_depline(struct kmod_module *mod, char *line) argument 139 struct kmod_ctx *ctx = mod->ctx; 147 if (mod->init.dep) 148 return mod->n_dep; 149 assert(mod->dep == NULL); 150 mod->init.dep = true; 157 dirname = kmod_get_dirname(mod->ctx); 167 if (mod 214 kmod_module_set_visited(struct kmod_module *mod, bool visited) argument 219 kmod_module_set_builtin(struct kmod_module *mod, bool builtin) argument 225 kmod_module_set_required(struct kmod_module *mod, bool required) argument 230 kmod_module_is_builtin(struct kmod_module *mod) argument 262 kmod_module_new(struct kmod_ctx *ctx, const char *key, const char *name, size_t namelen, const char *alias, size_t aliaslen, struct kmod_module **mod) argument 329 kmod_module_new_from_name(struct kmod_ctx *ctx, const char *name, struct kmod_module **mod) argument 344 kmod_module_new_from_alias(struct kmod_ctx *ctx, const char *alias, const char *name, struct kmod_module **mod) argument 387 kmod_module_new_from_path(struct kmod_ctx *ctx, const char *path, struct kmod_module **mod) argument 460 kmod_module_unref(struct kmod_module *mod) argument 491 kmod_module_ref(struct kmod_module *mod) argument 631 module_get_dependencies_noref(const struct kmod_module *mod) argument 661 kmod_module_get_dependencies(const struct kmod_module *mod) argument 718 kmod_module_get_name(const struct kmod_module *mod) argument 737 kmod_module_get_path(const struct kmod_module *mod) argument 778 kmod_module_remove_module(struct kmod_module *mod, unsigned int flags) argument 816 kmod_module_insert_module(struct kmod_module *mod, unsigned int flags, const char *options) argument 891 module_is_blacklisted(struct kmod_module *mod) argument 938 struct kmod_module *mod = li->data; local 965 command_do(struct kmod_module *mod, const char *type, const char *cmd) argument 992 module_do_install_commands(struct kmod_module *mod, const char *options, struct probe_insert_cb *cb) argument 1074 __kmod_module_fill_softdep(struct kmod_module *mod, struct kmod_list **list) argument 1118 __kmod_module_get_probe_list(struct kmod_module *mod, bool required, bool ignorecmd, struct kmod_list **list) argument 1171 kmod_module_get_probe_list(struct kmod_module *mod, bool ignorecmd, struct kmod_list **list) argument 1237 kmod_module_probe_insert_module(struct kmod_module *mod, unsigned int flags, const char *extra_options, int (*run_install)(struct kmod_module *m, const char *cmd, void *data), const void *data, void (*print_action)(struct kmod_module *m, bool install, const char *options)) argument 1372 kmod_module_get_options(const struct kmod_module *mod) argument 1447 kmod_module_get_install_commands(const struct kmod_module *mod) argument 1481 kmod_module_set_install_commands(struct kmod_module *mod, const char *cmd) argument 1524 kmod_module_get_softdeps(const struct kmod_module *mod, struct kmod_list **pre, struct kmod_list **post) argument 1576 kmod_module_get_remove_commands(const struct kmod_module *mod) argument 1610 kmod_module_set_remove_commands(struct kmod_module *mod, const char *cmd) argument 1731 kmod_module_get_initstate(const struct kmod_module *mod) argument 1794 kmod_module_get_size(const struct kmod_module *mod) argument 1878 kmod_module_get_refcnt(const struct kmod_module *mod) argument 1916 kmod_module_get_holders(const struct kmod_module *mod) argument 1996 kmod_module_get_sections(const struct kmod_module *mod) argument 2134 kmod_module_get_elf(const struct kmod_module *mod) argument 2214 kmod_module_get_info(const struct kmod_module *mod, struct kmod_list **list) argument 2412 kmod_module_get_versions(const struct kmod_module *mod, struct kmod_list **list) argument 2553 kmod_module_get_symbols(const struct kmod_module *mod, struct kmod_list **list) argument 2697 kmod_module_get_dependency_symbols(const struct kmod_module *mod, struct kmod_list **list) argument [all...] |
/external/swiftshader/third_party/LLVM/examples/BrainF/ |
H A D | BrainFDriver.cpp | 58 void addMainFunction(Module *mod) { argument 60 Function *main_func = cast<Function>(mod-> 61 getOrInsertFunction("main", IntegerType::getInt32Ty(mod->getContext()), 62 IntegerType::getInt32Ty(mod->getContext()), 64 IntegerType::getInt8Ty(mod->getContext()))), NULL)); 74 BasicBlock *bb = BasicBlock::Create(mod->getContext(), "main.0", main_func); 78 CallInst *brainf_call = CallInst::Create(mod->getFunction("brainf"), 84 ReturnInst::Create(mod->getContext(), 85 ConstantInt::get(mod->getContext(), APInt(32, 0)), bb); 128 Module *mod local [all...] |
/external/tensorflow/tensorflow/contrib/py2tf/pyct/ |
H A D | parser_test.py | 34 mod, _ = parser.parse_entity(f) 35 self.assertEqual('f', mod.body[0].name) 38 mod = parser.parse_str( 43 self.assertEqual('f', mod.body[0].name)
|
/external/elfutils/libdwfl/ |
H A D | find-debuginfo.c | 86 validate (Dwfl_Module *mod, int fd, bool check, GElf_Word debuglink_crc) argument 89 if (mod->dw != NULL) 94 ssize_t build_id_len = INTUSE(dwelf_dwarf_gnu_debugaltlink) (mod->dw, 102 Dwfl_Error error = __libdw_open_file (&fd, &mod->alt_elf, 109 ssize_t alt_len = INTUSE(dwelf_elf_gnu_build_id) (mod->alt_elf, 117 elf_end (mod->alt_elf); 118 mod->alt_elf = NULL; 128 if (mod->build_id_len > 0) 134 mod->debug.valid = false; 135 Dwfl_Error error = __libdw_open_file (&fd, &mod 158 find_debuginfo_in_path(Dwfl_Module *mod, const char *file_name, const char *debuglink_file, GElf_Word debuglink_crc, char **debuginfo_file_name) argument 332 dwfl_standard_find_debuginfo(Dwfl_Module *mod, void **userdata __attribute__ ((unused)), const char *modname __attribute__ ((unused)), GElf_Addr base __attribute__ ((unused)), const char *file_name, const char *debuglink_file, GElf_Word debuglink_crc, char **debuginfo_file_name) argument [all...] |
H A D | offline.c | 39 dwfl_offline_section_address (Dwfl_Module *mod, argument 48 assert (mod->e_type == ET_REL); 53 if (mod->debug.elf == NULL) 61 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx); 64 while ((scn = elf_nextscn (mod->debug.elf, scn)) != ourscn) 76 while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL) 130 Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name, fd, elf, local 133 if (mod != NULL) 141 if ((dwfl->offline_next_address >= mod->low_addr 142 || mod 160 process_archive_member(Dwfl *dwfl, const char *name, const char *file_name, int (*predicate) (const char *module, const char *file), int fd, Elf *member, Dwfl_Module **mod) argument 243 Dwfl_Module *mod = NULL; local 280 Dwfl_Module *mod = process_file (dwfl, name, file_name, fd, elf, predicate); local [all...] |
H A D | dwfl_build_id_find_elf.c | 37 __libdwfl_open_by_build_id (Dwfl_Module *mod, bool debug, char **file_name, argument 68 const Dwfl_Callbacks *const cb = mod->dwfl->callbacks; 121 __libdwfl_open_mod_by_build_id (Dwfl_Module *mod, bool debug, char **file_name) argument 126 if (mod->build_id_len <= 0) 129 const size_t id_len = mod->build_id_len; 130 const uint8_t *id = mod->build_id_bits; 132 return __libdwfl_open_by_build_id (mod, debug, file_name, id_len, id); 136 dwfl_build_id_find_elf (Dwfl_Module *mod, argument 143 if (mod->is_executable 144 && mod [all...] |
/external/mesa3d/src/gallium/state_trackers/clover/llvm/codegen/ |
H A D | bitcode.cpp | 54 get_symbol_offsets(const ::llvm::Module &mod) { argument 59 get_kernels(mod))) 66 emit_code(const ::llvm::Module &mod) { argument 69 WriteBitcodeToFile(&mod, os); 75 clover::llvm::build_module_bitcode(const ::llvm::Module &mod, argument 77 return build_module_common(mod, emit_code(mod), get_symbol_offsets(mod), c); 81 clover::llvm::print_module_bitcode(const ::llvm::Module &mod) { argument 84 mod 89 build_module_library(const ::llvm::Module &mod, enum module::section::type section_type) argument 100 auto mod = ::llvm::parseBitcodeFile(::llvm::MemoryBufferRef( local [all...] |
/external/python/cpython2/Lib/encodings/ |
H A D | __init__.py | 99 mod = __import__('encodings.' + modname, fromlist=_import_tail, 106 mod = None 109 getregentry = mod.getregentry 112 mod = None 114 if mod is None: 125 (mod.__name__, mod.__file__) 134 (mod.__name__, mod.__file__) 136 entry += (None,)*(6-len(entry)) + (mod [all...] |
/external/javassist/src/main/javassist/ |
H A D | CtNewNestedClass.java | 34 public void setModifiers(int mod) { argument 35 mod = mod & ~Modifier.STATIC; 36 super.setModifiers(mod); 37 updateInnerEntry(mod, getName(), this, true); 40 private static void updateInnerEntry(int mod, String name, CtClass clazz, boolean outer) { argument 51 ica.setAccessFlags(i, mod | acc); 56 updateInnerEntry(mod, name, parent, false);
|
/external/python/cpython3/Tools/freeze/ |
H A D | makeconfig.py | 16 for mod in modules: 17 if mod in never: 20 outfp.write("#ifndef PyInit_%s\n"%mod) 21 outfp.write('extern PyObject* PyInit_%s(void);\n' % mod) 26 for mod in modules: 27 if mod in never: 30 (mod, mod))
|
/external/devlib/devlib/module/ |
H A D | __init__.py | 93 def get_module(mod): 97 if isinstance(mod, basestring): 99 return __module_cache[mod] 101 raise ValueError('Module "{}" does not exist'.format(mod)) 102 elif issubclass(mod, Module): 103 return mod 105 raise ValueError('Not a valid module: {}'.format(mod)) 108 def register_module(mod): 109 if not issubclass(mod, Module): 111 if mod [all...] |
/external/kmod/tools/ |
H A D | rmmod.c | 64 static int check_module_inuse(struct kmod_module *mod) { argument 68 state = kmod_module_get_initstate(mod); 71 ERR("Module %s is builtin.\n", kmod_module_get_name(mod)); 75 kmod_module_get_name(mod)); 79 holders = kmod_module_get_holders(mod); 83 ERR("Module %s is in use by:", kmod_module_get_name(mod)); 96 if (kmod_module_get_refcnt(mod) != 0) { 97 ERR("Module %s is in use\n", kmod_module_get_name(mod)); 159 struct kmod_module *mod; local 163 err = kmod_module_new_from_path(ctx, arg, &mod); [all...] |
/external/swiftshader/third_party/LLVM/tools/lto/ |
H A D | lto.cpp | 130 void lto_module_dispose(lto_module_t mod) argument 132 delete mod; 139 const char* lto_module_get_target_triple(lto_module_t mod) argument 141 return mod->getTargetTriple(); 147 void lto_module_set_target_triple(lto_module_t mod, const char *triple) argument 149 return mod->setTargetTriple(triple); 156 unsigned int lto_module_get_num_symbols(lto_module_t mod) argument 158 return mod->getSymbolCount(); 164 const char* lto_module_get_symbol_name(lto_module_t mod, unsigned int index) argument 166 return mod 173 lto_module_get_symbol_attribute(lto_module_t mod, unsigned int index) argument 209 lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod) argument [all...] |
/external/libvterm/src/ |
H A D | input.c | 7 void vterm_input_push_char(VTerm *vt, VTermModifier mod, uint32_t c) argument 13 mod &= ~VTERM_MOD_SHIFT; 15 if(mod == 0) { 39 if(needs_CSIu && (mod & ~VTERM_MOD_ALT)) { 40 vterm_push_output_sprintf_ctrl(vt, C1_CSI, "%d;%du", c, mod+1); 44 if(mod & VTERM_MOD_CTRL) 47 vterm_push_output_sprintf(vt, "%s%c", mod & VTERM_MOD_ALT ? "\e" : "", c); 124 void vterm_input_push_key(VTerm *vt, VTermModifier mod, VTermKey key) argument 152 if(mod == VTERM_MOD_SHIFT) 154 else if(mod [all...] |
/external/kmod/testsuite/ |
H A D | test-initstate.c | 39 struct kmod_module *mod; local 58 mod = kmod_module_get_module(list); 60 r = kmod_module_get_initstate(mod); 67 kmod_module_unref(mod); 84 struct kmod_module *mod = NULL; local 92 err = kmod_module_new_from_name(ctx, "fake-builtin", &mod); 98 if (!mod) { 103 r = kmod_module_get_initstate(mod); 110 kmod_module_unref(mod);
|
H A D | test-blacklist.c | 42 struct kmod_module *mod; local 54 err = kmod_module_new_from_name(ctx, *name, &mod); 57 list = kmod_list_append(list, mod); 73 mod = kmod_module_get_module(l); 74 modname = kmod_module_get_name(mod); 78 kmod_module_unref(mod);
|
H A D | test-loaded.c | 51 struct kmod_module *mod = kmod_module_get_module(itr); local 52 const char *name = kmod_module_get_name(mod); 53 int use_count = kmod_module_get_refcnt(mod); 54 long size = kmod_module_get_size(mod); 59 holders = kmod_module_get_holders(mod); 73 kmod_module_unref(mod);
|
/external/python/cpython2/Lib/ |
H A D | anydbm.py | 77 mod = _defaultmod 84 mod = __import__(result) 85 return mod.open(file, flag, mode)
|
/external/valgrind/coregrind/m_gdbserver/ |
H A D | regcache.h | 65 /* *mod set to True if *buf provides a new value. */ 66 void supply_register (int n, const void *buf, Bool *mod); 70 *mod set to True if *buf provides a new value. */ 71 void supply_register_from_string (int n, const char *buf, Bool *mod); 73 /* *mod set to True if *buf provides a new value. */ 74 void supply_register_by_name (const char *name, const void *buf, Bool *mod);
|
/external/python/cpython2/Lib/test/ |
H A D | test_copy_reg.py | 46 mod, func, code = 'junk1 ', ' junk2', 0xabcd 51 mod, func, code) 52 copy_reg.add_extension(mod, func, code) 54 self.assertTrue(copy_reg._extension_registry[mod, func] == code) 55 self.assertTrue(copy_reg._inverted_registry[code] == (mod, func)) 59 copy_reg.add_extension(mod, func, code) # shouldn't blow up 62 mod, func, code + 1) 64 mod, func, code + 1) 67 mod[1:], func, code ) 69 mod[ [all...] |
/external/python/cpython3/Lib/test/ |
H A D | test_copyreg.py | 45 mod, func, code = 'junk1 ', ' junk2', 0xabcd 50 mod, func, code) 51 copyreg.add_extension(mod, func, code) 53 self.assertTrue(copyreg._extension_registry[mod, func] == code) 54 self.assertTrue(copyreg._inverted_registry[code] == (mod, func)) 58 copyreg.add_extension(mod, func, code) # shouldn't blow up 61 mod, func, code + 1) 63 mod, func, code + 1) 66 mod[1:], func, code ) 68 mod[ [all...] |
/external/python/cpython3/Lib/encodings/ |
H A D | __init__.py | 99 mod = __import__('encodings.' + modname, fromlist=_import_tail, 108 mod = None 111 getregentry = mod.getregentry 114 mod = None 116 if mod is None: 126 % (mod.__name__, mod.__file__)) 133 % (mod.__name__, mod.__file__)) 135 entry += (None,)*(6-len(entry)) + (mod [all...] |
/external/elfutils/tests/ |
H A D | dwfl-bug-addr-overflow.c | 63 Dwfl_Module *mod = dwfl_addrmodule (dwfl, UINT64_C (0xffffffff00010123)); local 64 assert (mod == high); 65 mod = dwfl_addrmodule (dwfl, UINT64_C (0x00010123)); 66 assert (mod == low); 67 mod = dwfl_addrmodule (dwfl, UINT64_C (0xffff00010123)); 68 assert (mod == middle);
|