/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/ |
D | Tuples.py | 18 m = t[50:] 19 m = t[:25] 20 m = t[50:55] 21 m = t[:-1] 22 m = t[1:] 23 m = t[-10:] 24 m = t[:10] 26 m = t[50:] 27 m = t[:25] 28 m = t[50:55] [all …]
|
D | Lists.py | 150 m = l[50:] 151 m = l[:25] 152 m = l[50:55] 154 m = l[:-1] 155 m = l[1:] 195 m = l[:-1] 196 m = l[1:] 218 m = l[:-1] 219 m = l[1:] 241 m = l[:-1] [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_memoryview.py | 30 m = self._view(b) 31 self.assertEqual(m[0], item(b"a")) 32 self.assertIsInstance(m[0], bytes) 33 self.assertEqual(m[5], item(b"f")) 34 self.assertEqual(m[-1], item(b"f")) 35 self.assertEqual(m[-6], item(b"a")) 37 self.assertRaises(IndexError, lambda: m[6]) 38 self.assertRaises(IndexError, lambda: m[-7]) 39 self.assertRaises(IndexError, lambda: m[sys.maxsize]) 40 self.assertRaises(IndexError, lambda: m[-sys.maxsize]) [all …]
|
D | test_mmap.py | 33 m = mmap.mmap(f.fileno(), 2 * PAGESIZE) 38 tp = str(type(m)) # SF bug 128713: segfaulted on Linux 39 self.assertEqual(m.find('foo'), PAGESIZE) 41 self.assertEqual(len(m), 2*PAGESIZE) 43 self.assertEqual(m[0], '\0') 44 self.assertEqual(m[0:3], '\0\0\0') 47 self.assertRaises(IndexError, m.__getitem__, len(m)) 48 self.assertRaises(IndexError, m.__setitem__, len(m), '\0') 51 m[0] = '3' 52 m[PAGESIZE +3: PAGESIZE +3+3] = 'bar' [all …]
|
D | test_mutex.py | 12 self.assertTrue(m.test(), "mutex not held") 14 m.lock(called_by_mutex2, "eggs") 18 self.assertTrue(m.test(), "mutex not held") 22 m = mutex.mutex() 24 m.lock(called_by_mutex, "spam") 27 m.unlock() 28 m.unlock() 29 self.assertFalse(m.test(), "mutex still held")
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/ |
D | FvImage.py | 54 def __init__(m, ID=None): argument 56 m._ID_ = str(uuid.uuid1()).upper() 58 m._ID_ = ID 59 m._BUF_ = None 60 m._LEN_ = None 61 m._OFF_ = None 63 m._SubImages = sdict() # {offset: Image()} 65 array.__init__(m, 'B') 67 def __repr__(m): argument 68 return m._ID_ [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | symtablemodule.c | 53 PyObject *m; in init_symtable() local 55 m = Py_InitModule("_symtable", symtable_methods); in init_symtable() 56 if (m == NULL) in init_symtable() 58 PyModule_AddIntConstant(m, "USE", USE); in init_symtable() 59 PyModule_AddIntConstant(m, "DEF_GLOBAL", DEF_GLOBAL); in init_symtable() 60 PyModule_AddIntConstant(m, "DEF_LOCAL", DEF_LOCAL); in init_symtable() 61 PyModule_AddIntConstant(m, "DEF_PARAM", DEF_PARAM); in init_symtable() 62 PyModule_AddIntConstant(m, "DEF_FREE", DEF_FREE); in init_symtable() 63 PyModule_AddIntConstant(m, "DEF_FREE_CLASS", DEF_FREE_CLASS); in init_symtable() 64 PyModule_AddIntConstant(m, "DEF_IMPORT", DEF_IMPORT); in init_symtable() [all …]
|
D | socketmodule.c | 4477 PyObject *m, *has_ipv6; local 4483 m = Py_InitModule3(PySocket_MODULE_NAME, 4486 if (m == NULL) 4495 PyModule_AddObject(m, "error", socket_error); 4501 PyModule_AddObject(m, "herror", socket_herror); 4507 PyModule_AddObject(m, "gaierror", socket_gaierror); 4513 PyModule_AddObject(m, "timeout", socket_timeout); 4515 if (PyModule_AddObject(m, "SocketType", 4519 if (PyModule_AddObject(m, "socket", 4529 PyModule_AddObject(m, "has_ipv6", has_ipv6); [all …]
|
D | resource.c | 231 PyObject *m, *v; in initresource() local 234 m = Py_InitModule("resource", resource_methods); in initresource() 235 if (m == NULL) in initresource() 244 PyModule_AddObject(m, "error", ResourceError); in initresource() 249 PyModule_AddObject(m, "struct_rusage", in initresource() 254 PyModule_AddIntConstant(m, "RLIMIT_CPU", RLIMIT_CPU); in initresource() 258 PyModule_AddIntConstant(m, "RLIMIT_FSIZE", RLIMIT_FSIZE); in initresource() 262 PyModule_AddIntConstant(m, "RLIMIT_DATA", RLIMIT_DATA); in initresource() 266 PyModule_AddIntConstant(m, "RLIMIT_STACK", RLIMIT_STACK); in initresource() 270 PyModule_AddIntConstant(m, "RLIMIT_CORE", RLIMIT_CORE); in initresource() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
D | symtablemodule.c | 53 PyObject *m; in init_symtable() local 58 m = Py_InitModule("_symtable", symtable_methods); in init_symtable() 59 if (m == NULL) in init_symtable() 61 PyModule_AddIntConstant(m, "USE", USE); in init_symtable() 62 PyModule_AddIntConstant(m, "DEF_GLOBAL", DEF_GLOBAL); in init_symtable() 63 PyModule_AddIntConstant(m, "DEF_LOCAL", DEF_LOCAL); in init_symtable() 64 PyModule_AddIntConstant(m, "DEF_PARAM", DEF_PARAM); in init_symtable() 65 PyModule_AddIntConstant(m, "DEF_FREE", DEF_FREE); in init_symtable() 66 PyModule_AddIntConstant(m, "DEF_FREE_CLASS", DEF_FREE_CLASS); in init_symtable() 67 PyModule_AddIntConstant(m, "DEF_IMPORT", DEF_IMPORT); in init_symtable() [all …]
|
D | socketmodule.c | 4579 PyObject *m, *has_ipv6; local 4585 m = Py_InitModule3(PySocket_MODULE_NAME, 4588 if (m == NULL) 4597 PyModule_AddObject(m, "error", socket_error); 4603 PyModule_AddObject(m, "herror", socket_herror); 4609 PyModule_AddObject(m, "gaierror", socket_gaierror); 4615 PyModule_AddObject(m, "timeout", socket_timeout); 4617 if (PyModule_AddObject(m, "SocketType", 4621 if (PyModule_AddObject(m, "socket", 4631 PyModule_AddObject(m, "has_ipv6", has_ipv6); [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
D | moduleobject.c | 20 PyModuleObject *m; in PyModule_New() local 22 m = PyObject_GC_New(PyModuleObject, &PyModule_Type); in PyModule_New() 23 if (m == NULL) in PyModule_New() 26 m->md_dict = PyDict_New(); in PyModule_New() 27 if (m->md_dict == NULL || nameobj == NULL) in PyModule_New() 29 if (PyDict_SetItemString(m->md_dict, "__name__", nameobj) != 0) in PyModule_New() 31 if (PyDict_SetItemString(m->md_dict, "__doc__", Py_None) != 0) in PyModule_New() 33 if (PyDict_SetItemString(m->md_dict, "__package__", Py_None) != 0) in PyModule_New() 36 PyObject_GC_Track(m); in PyModule_New() 37 return (PyObject *)m; in PyModule_New() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
D | moduleobject.c | 20 PyModuleObject *m; in PyModule_New() local 22 m = PyObject_GC_New(PyModuleObject, &PyModule_Type); in PyModule_New() 23 if (m == NULL) in PyModule_New() 26 m->md_dict = PyDict_New(); in PyModule_New() 27 if (m->md_dict == NULL || nameobj == NULL) in PyModule_New() 29 if (PyDict_SetItemString(m->md_dict, "__name__", nameobj) != 0) in PyModule_New() 31 if (PyDict_SetItemString(m->md_dict, "__doc__", Py_None) != 0) in PyModule_New() 33 if (PyDict_SetItemString(m->md_dict, "__package__", Py_None) != 0) in PyModule_New() 36 PyObject_GC_Track(m); in PyModule_New() 37 return (PyObject *)m; in PyModule_New() [all …]
|
/device/linaro/hikey/gralloc960/ |
D | framebuffer_device.cpp | 60 private_module_t* m = reinterpret_cast<private_module_t*>(dev->common.module); in fb_set_swap_interval() local 61 m->swapInterval = interval; in fb_set_swap_interval() 77 private_module_t* m = reinterpret_cast<private_module_t*>(dev->common.module); in fb_post() local 79 if (m->currentBuffer) in fb_post() 81 m->base.unlock(&m->base, m->currentBuffer); in fb_post() 82 m->currentBuffer = 0; in fb_post() 87 m->base.lock(&m->base, buffer, private_module_t::PRIV_USAGE_LOCKED_FOR_POST, in fb_post() 88 0, 0, m->info.xres, m->info.yres, NULL); in fb_post() 90 const size_t offset = (uintptr_t)hnd->base - (uintptr_t)m->framebuffer->base; in fb_post() 92 m->info.activate = FB_ACTIVATE_VBL; in fb_post() [all …]
|
/device/linaro/hikey/gralloc/ |
D | framebuffer_device.cpp | 75 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_post() local 77 if (m->currentBuffer) in fb_post() 79 m->base.unlock(&m->base, m->currentBuffer); in fb_post() 80 m->currentBuffer = 0; in fb_post() 85 m->base.lock(&m->base, buffer, private_module_t::PRIV_USAGE_LOCKED_FOR_POST, in fb_post() 86 0, 0, m->info.xres, m->info.yres, NULL); in fb_post() 88 const size_t offset = (uintptr_t)hnd->base - (uintptr_t)m->framebuffer->base; in fb_post() 90 m->info.activate = FB_ACTIVATE_VBL; in fb_post() 91 m->info.yoffset = offset / m->finfo.line_length; in fb_post() 97 int fbdev_fd = m->framebuffer->shallow_fbdev_fd; in fb_post() [all …]
|
D | alloc_device.cpp | 103 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in gralloc_alloc_buffer() local 109 ret = ion_alloc(m->ion_client, size, 0, ION_HEAP_SYSTEM_MASK, 0, &(ion_hnd)); in gralloc_alloc_buffer() 113 AERR("Failed to ion_alloc from ion_client:%d", m->ion_client); in gralloc_alloc_buffer() 117 ret = ion_share(m->ion_client, ion_hnd, &shared_fd); in gralloc_alloc_buffer() 121 AERR("ion_share( %d ) failed", m->ion_client); in gralloc_alloc_buffer() 123 if (0 != ion_free(m->ion_client, ion_hnd)) in gralloc_alloc_buffer() 125 AERR("ion_free( %d ) failed", m->ion_client); in gralloc_alloc_buffer() 132 if (0 != ion_free(m->ion_client, ion_hnd)) in gralloc_alloc_buffer() 134 AWAR("ion_free( %d ) failed", m->ion_client); in gralloc_alloc_buffer() 142 AERR("ion_map( %d ) failed", m->ion_client); in gralloc_alloc_buffer() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/ |
D | test_loader.py | 87 m = types.ModuleType('m') 91 m.testcase_1 = MyTestCase 94 suite = loader.loadTestsFromModule(m) 104 m = types.ModuleType('m') 107 suite = loader.loadTestsFromModule(m) 115 m = types.ModuleType('m') 118 m.testcase_1 = MyTestCase 121 suite = loader.loadTestsFromModule(m) 154 m = types.ModuleType('m') 158 m.testcase_1 = MyTestCase [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/ |
D | output.c | 190 int i, m; in p_class_def2() local 214 for(m=0; m<(mode_counter-1); ++m){ in p_class_def2() 215 for(i=dfa_basep[m]; i<dfa_basep[m+1]; ++i) in p_class_def2() 216 fprintf(class_stream, "\tstatic DfaState st%d[%d];\n", i-1, dfa_class_nop[m]+1); in p_class_def2() 218 for(i=dfa_basep[m]; i<=dfa_allocated; ++i) in p_class_def2() 219 fprintf(class_stream, "\tstatic DfaState st%d[%d];\n", i-1, dfa_class_nop[m]+1); in p_class_def2() 229 for(m=0; m<mode_counter; ++m) { in p_class_def2() 231 m, CHAR_RANGE); in p_class_def2() 390 register int m = 0; in p_node_table() local 392 for(m=0; m<(mode_counter-1); ++m){ in p_node_table() [all …]
|
/device/linaro/bootloader/edk2/StdLibPrivateInternalFiles/Include/ |
D | reentrant.h | 148 #define mutex_init(m, a) __libc_mutex_init((m), (a)) argument 149 #define mutex_lock(m) __libc_mutex_lock((m)) argument 150 #define mutex_trylock(m) __libc_mutex_trylock((m)) argument 151 #define mutex_unlock(m) __libc_mutex_unlock((m)) argument 152 #define mutex_destroy(m) __libc_mutex_destroy((m)) argument 170 #define cond_wait(c, m) __libc_cond_wait((c), (m)) argument 171 #define cond_timedwait(c, m, t) __libc_cond_timedwait((c), (m), (t)) argument 234 #define mutex_init(m, a) 235 #define mutex_lock(m) 236 #define mutex_trylock(m) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | rexec.py | 44 for m in self.ok_file_methods: 45 if not hasattr(self, m) and hasattr(f, m): 46 setattr(self, m, getattr(f, m)) 63 for m in FileBase.ok_file_methods + ('close',): 64 exec TEMPLATE % (m, m) 97 m = __import__(name) 98 return self.rexec.copy_except(m, ()) 241 m = self.copy_except(__builtin__, self.nok_builtin_names) 242 m.__import__ = self.r_import 243 m.reload = self.r_reload [all …]
|
D | modulefinder.py | 127 m = self.load_tail(q, tail) 130 if m.__path__: 131 self.ensure_fromlist(m, fromlist) 198 m = q 203 mname = "%s.%s" % (m.__name__, head) 204 m = self.import_module(head, mname, m) 205 if not m: 208 self.msgout(4, "load_tail ->", m) 209 return m 211 def ensure_fromlist(self, m, fromlist, recursive=0): argument [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | modulefinder.py | 127 m = self.load_tail(q, tail) 130 if m.__path__: 131 self.ensure_fromlist(m, fromlist) 198 m = q 203 mname = "%s.%s" % (m.__name__, head) 204 m = self.import_module(head, mname, m) 205 if not m: 208 self.msgout(4, "load_tail ->", m) 209 return m 211 def ensure_fromlist(self, m, fromlist, recursive=0): argument [all …]
|
/device/linaro/bootloader/edk2/StdLib/Include/sys/ |
D | stat.h | 133 #define S_ISFIFO(m) ((m & _S_IFMT) == _S_IFIFO) ///< fifo argument 134 #define S_ISCHR(m) ((m & _S_IFMT) == _S_IFCHR) ///< char special argument 135 #define S_ISDIR(m) ((m & _S_IFMT) == _S_IFDIR) ///< directory argument 136 #define S_ISBLK(m) ((m & _S_IFMT) == _S_IFBLK) ///< block special argument 137 #define S_ISREG(m) ((m & _S_IFMT) == _S_IFREG) ///< regular file argument 138 #define S_ISSOCK(m) ((m & _S_IFMT) == _S_IFSOCK) ///< socket argument
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | importdl.c | 24 PyObject *m; in _PyImport_LoadDynamicModule() local 28 if ((m = _PyImport_FindExtension(name, pathname)) != NULL) { in _PyImport_LoadDynamicModule() 29 Py_INCREF(m); in _PyImport_LoadDynamicModule() 30 return m; in _PyImport_LoadDynamicModule() 58 m = PyDict_GetItemString(PyImport_GetModuleDict(), name); in _PyImport_LoadDynamicModule() 59 if (m == NULL) { in _PyImport_LoadDynamicModule() 65 if (PyModule_AddStringConstant(m, "__file__", pathname) < 0) in _PyImport_LoadDynamicModule() 74 Py_INCREF(m); in _PyImport_LoadDynamicModule() 75 return m; in _PyImport_LoadDynamicModule()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
D | importdl.c | 24 PyObject *m; in _PyImport_LoadDynamicModule() local 28 if ((m = _PyImport_FindExtension(name, pathname)) != NULL) { in _PyImport_LoadDynamicModule() 29 Py_INCREF(m); in _PyImport_LoadDynamicModule() 30 return m; in _PyImport_LoadDynamicModule() 58 m = PyDict_GetItemString(PyImport_GetModuleDict(), name); in _PyImport_LoadDynamicModule() 59 if (m == NULL) { in _PyImport_LoadDynamicModule() 65 if (PyModule_AddStringConstant(m, "__file__", pathname) < 0) in _PyImport_LoadDynamicModule() 74 Py_INCREF(m); in _PyImport_LoadDynamicModule() 75 return m; in _PyImport_LoadDynamicModule()
|