Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 650) sorted by relevance

12345678910>>...26

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/
DTuples.py18 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 …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/include/
Dxf-msg.h112 static inline int xf_msg_enqueue(xf_msg_queue_t *queue, xf_message_t *m) in xf_msg_enqueue() argument
117 m->next = NULL; in xf_msg_enqueue()
120 queue->head = m; in xf_msg_enqueue()
122 queue->tail->next = m; in xf_msg_enqueue()
125 queue->tail = m; in xf_msg_enqueue()
131 #define xf_msg_enqueue(queue, m) \ argument
133 BUG((m)->next != NULL, _x("message is active: %p"), (m)); \
134 (xf_msg_enqueue)((queue), (m)); \
140 xf_message_t *m = queue->head; in xf_msg_dequeue() local
143 if (m != NULL) in xf_msg_dequeue()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_memoryview.py30 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 …]
Dtest_mmap.py33 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 …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/
Dxf-shmem.c72 static inline void xf_msg_proxy_put(xf_message_t *m) in xf_msg_proxy_put() argument
74 u32 dst = XF_MSG_DST_CORE(m->id); in xf_msg_proxy_put()
75 u32 src = XF_MSG_SRC_CORE(m->id); in xf_msg_proxy_put()
89 first = xf_msg_enqueue(&rw->remote, m); in xf_msg_proxy_put()
92 XF_PROXY_FLUSH(rw, sizeof(*rw)), XF_PROXY_FLUSH(m, sizeof(*m)); in xf_msg_proxy_put()
97 first = xf_msg_enqueue(&rw->remote, m); in xf_msg_proxy_put()
114 xf_message_t *m; in xf_msg_proxy_get() local
126 m = xf_msg_dequeue(&rw->remote); in xf_msg_proxy_get()
132 (m ? XF_PROXY_INVALIDATE(m, sizeof(*m)) : 0); in xf_msg_proxy_get()
137 m = xf_msg_dequeue(&rw->remote); in xf_msg_proxy_get()
[all …]
Dxf-core.c94 static int xf_proxy_register(u32 core, xf_message_t *m) in xf_proxy_register() argument
97 u32 src = XF_MSG_SRC(m->id); in xf_proxy_register()
105 if ((component = xf_component_factory(core, m->buffer, m->length)) == NULL) in xf_proxy_register()
123 m->id = __XF_MSG_ID(src, component->id); in xf_proxy_register()
126 xf_ipc_component_addref(m->id); in xf_proxy_register()
128 TRACE(REG, _b("registered client: %u:%u (%s)"), core, client, (xf_id_t)m->buffer); in xf_proxy_register()
131 xf_response_ok(m); in xf_proxy_register()
137 static int xf_proxy_alloc(u32 core, xf_message_t *m) in xf_proxy_alloc() argument
143 xf_shmem_alloc(core, m); in xf_proxy_alloc()
146 xf_response(m); in xf_proxy_alloc()
[all …]
Dxf-io.c84 int xf_input_port_put(xf_input_port_t *port, xf_message_t *m) in xf_input_port_put() argument
93 xf_response_ok(m); in xf_input_port_put()
98 else if (m->length == 0) in xf_input_port_put()
111 TRACE(INPUT, _b("input-port[%p]: buffer received - %u bytes"), port, m->length); in xf_input_port_put()
115 if (xf_msg_enqueue(&port->queue, m)) in xf_input_port_put()
118 port->access = m->buffer, port->remaining = m->length; in xf_input_port_put()
137 xf_message_t *m = xf_msg_dequeue(&port->queue); in xf_input_port_complete() local
140 BUG(m == NULL, _x("invalid port state")); in xf_input_port_complete()
143 xf_response(m); in xf_input_port_complete()
146 if ((m = xf_msg_queue_head(&port->queue)) != NULL) in xf_input_port_complete()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/
DFvImage.py54 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/
Dsymtablemodule.c53 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 …]
Dsocketmodule.c4477 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 …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dsymtablemodule.c53 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 …]
Dsocketmodule.c4579 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/
Dmoduleobject.c20 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/
Dmoduleobject.c20 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/
Dframebuffer_device.cpp68 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_set_swap_interval() local
69 m->swapInterval = interval; in fb_set_swap_interval()
91 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_post() local
93 if (m->currentBuffer) in fb_post()
95 mali_gralloc_unlock(m, m->currentBuffer); in fb_post()
96 m->currentBuffer = 0; in fb_post()
101 mali_gralloc_lock(m, buffer, private_module_t::PRIV_USAGE_LOCKED_FOR_POST, -1, -1, -1, -1, NULL); in fb_post()
104 m->info.activate = FB_ACTIVATE_VBL; in fb_post()
105 m->info.yoffset = hnd->offset / m->finfo.line_length; in fb_post()
109 if (ioctl(m->framebuffer->fd, FBIOPAN_DISPLAY, &m->info) == -1) in fb_post()
[all …]
/device/amlogic/yukawa/gralloc/
Dframebuffer_device.cpp68 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_set_swap_interval() local
69 m->swapInterval = interval; in fb_set_swap_interval()
91 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_post() local
93 if (m->currentBuffer) in fb_post()
95 mali_gralloc_unlock(m, m->currentBuffer); in fb_post()
96 m->currentBuffer = 0; in fb_post()
101 mali_gralloc_lock(m, buffer, private_module_t::PRIV_USAGE_LOCKED_FOR_POST, -1, -1, -1, -1, NULL); in fb_post()
104 m->info.activate = FB_ACTIVATE_VBL; in fb_post()
105 m->info.yoffset = hnd->offset / m->finfo.line_length; in fb_post()
109 if (ioctl(m->framebuffer->fd, FBIOPAN_DISPLAY, &m->info) == -1) in fb_post()
[all …]
/device/linaro/hikey/gralloc/
Dframebuffer_device.cpp76 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_post() local
78 if (m->currentBuffer) in fb_post()
80 m->base.unlock(&m->base, m->currentBuffer); in fb_post()
81 m->currentBuffer = 0; in fb_post()
86 m->base.lock(&m->base, buffer, private_module_t::PRIV_USAGE_LOCKED_FOR_POST, in fb_post()
87 0, 0, m->info.xres, m->info.yres, NULL); in fb_post()
90 m->info.activate = FB_ACTIVATE_VBL; in fb_post()
91 m->info.yoffset = hnd->offset / m->finfo.line_length; in fb_post()
97 if (ioctl(m->framebuffer->fd, FBIOPAN_DISPLAY, &m->info) == -1) in fb_post()
99 AERR("FBIOPAN_DISPLAY failed for fd: %d", m->framebuffer->fd); in fb_post()
[all …]
Dalloc_device.cpp101 static int fb_get_framebuffer_dmabuf(private_module_t *m, private_handle_t *hnd) in fb_get_framebuffer_dmabuf() argument
105 res = ioctl(m->framebuffer->fd, FBIOGET_DMABUF, &fb_dma_buf); in fb_get_framebuffer_dmabuf()
126 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in gralloc_alloc_buffer() local
149 if (m->gralloc_legacy_ion) in gralloc_alloc_buffer()
152 ret = ion_alloc(m->ion_client, size, 0, ION_HEAP_TYPE_DMA_MASK, 0, &(ion_hnd)); in gralloc_alloc_buffer()
154 ret = ion_alloc(m->ion_client, size, 0, ION_HEAP_SYSTEM_MASK, 0, &(ion_hnd)); in gralloc_alloc_buffer()
158 AERR("Failed to ion_alloc from ion_client:%d", m->ion_client); in gralloc_alloc_buffer()
162 ret = ion_share(m->ion_client, ion_hnd, &shared_fd); in gralloc_alloc_buffer()
166 AERR("ion_share( %d ) failed", m->ion_client); in gralloc_alloc_buffer()
168 if (0 != ion_free(m->ion_client, ion_hnd)) in gralloc_alloc_buffer()
[all …]
/device/linaro/hikey/hifi/xaf/hifi-dpf/audio/
Dxa-class-base.c166 XA_ERRORCODE xa_base_set_param(XACodecBase *base, xf_message_t *m) in xa_base_set_param() argument
168 xf_set_param_msg_t *cmd = m->buffer; in xa_base_set_param()
173 n = m->length / sizeof(*param); in xa_base_set_param()
176 XF_CHK_ERR(m->length == XF_SET_PARAM_CMD_LEN(n), XA_API_FATAL_INVALID_CMD_TYPE); in xa_base_set_param()
197 XA_CHK(xa_base_postinit(base, XF_MSG_DST_CORE(m->id))); in xa_base_set_param()
204 xf_response_ok(m); in xa_base_set_param()
210 XA_ERRORCODE xa_base_get_param(XACodecBase *base, xf_message_t *m) in xa_base_get_param() argument
212 xf_get_param_msg_t *cmd = m->buffer; in xa_base_get_param()
218 n = m->length / sizeof(*id); in xa_base_get_param()
221 XF_CHK_ERR(XF_GET_PARAM_CMD_LEN(n) == m->length, XA_API_FATAL_INVALID_CMD_TYPE); in xa_base_get_param()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_loader.py87 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/arm-trusted-firmware/plat/hisilicon/hikey960/drivers/ipc/
Dhisi_ipc.c18 #define IPC_MBX_SOURCE_REG(m) (IPC_BASE + ((m) << 6)) argument
19 #define IPC_MBX_DSET_REG(m) (IPC_BASE + ((m) << 6) + 0x04) argument
20 #define IPC_MBX_DCLEAR_REG(m) (IPC_BASE + ((m) << 6) + 0x08) argument
21 #define IPC_MBX_DSTATUS_REG(m) (IPC_BASE + ((m) << 6) + 0x0C) argument
22 #define IPC_MBX_MODE_REG(m) (IPC_BASE + ((m) << 6) + 0x10) argument
23 #define IPC_MBX_IMASK_REG(m) (IPC_BASE + ((m) << 6) + 0x14) argument
24 #define IPC_MBX_ICLR_REG(m) (IPC_BASE + ((m) << 6) + 0x18) argument
25 #define IPC_MBX_SEND_REG(m) (IPC_BASE + ((m) << 6) + 0x1C) argument
26 #define IPC_MBX_DATA_REG(m, d) (IPC_BASE + ((m) << 6) + 0x20 + \ argument
28 #define IPC_CPU_IMST_REG(m) (IPC_BASE + ((m) << 3)) argument
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/dlg/
Doutput.c190 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/
Dreentrant.h148 #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/
Drexec.py44 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 …]
/device/linaro/bootloader/edk2/StdLib/Include/sys/
Dstat.h133 #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

12345678910>>...26