Home
last modified time | relevance | path

Searched refs:inst (Results 1 – 25 of 76) sorted by relevance

1234

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/metaclasses/
DTrace.py47 inst = TracingInstance()
48 inst.__meta_init__(self)
50 init = inst.__getattr__('__init__')
54 return inst
83 def __init__(self, name, func, inst): argument
86 self.inst = inst
88 return apply(self.func, (self.inst,) + args, kw)
92 self.inst.__trace_call__(self.inst.__trace_output__,
94 self.__name__, self.inst, args, kw)
96 rv = apply(self.func, (self.inst,) + args, kw)
[all …]
DMeta.py11 def __init__(self, func, inst): argument
13 self.inst = inst
17 return apply(self.func, (self.inst,) + args, kw)
83 inst = self.__helper__()
84 inst.__helperinit__(self)
86 init = inst.__getattr__('__init__')
90 return inst
DEiffel.py68 def __init__(self, func, inst): argument
69 MetaMethodWrapper.__init__(self, func, inst)
75 self.pre = getattr(inst, self.__name__ + "_pre")
79 self.post = getattr(inst, self.__name__ + "_post")
86 Result = apply(self.func, (self.inst,) + args, kw)
DSynch.py151 return apply(self.func, (self.inst,) + args, kw)
152 self.inst.__lock__.acquire()
154 return apply(self.func, (self.inst,) + args, kw)
156 self.inst.__lock__.release()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dclassobject.c518 PyInstanceObject *inst; in PyInstance_NewRaw() local
536 inst = PyObject_GC_New(PyInstanceObject, &PyInstance_Type); in PyInstance_NewRaw()
537 if (inst == NULL) { in PyInstance_NewRaw()
541 inst->in_weakreflist = NULL; in PyInstance_NewRaw()
543 inst->in_class = (PyClassObject *)klass; in PyInstance_NewRaw()
544 inst->in_dict = dict; in PyInstance_NewRaw()
545 _PyObject_GC_TRACK(inst); in PyInstance_NewRaw()
546 return (PyObject *)inst; in PyInstance_NewRaw()
552 register PyInstanceObject *inst; in PyInstance_New() local
561 inst = (PyInstanceObject *) PyInstance_NewRaw(klass, NULL); in PyInstance_New()
[all …]
Dabstract.c2868 recursive_isinstance(PyObject *inst, PyObject *cls) argument
2880 if (PyClass_Check(cls) && PyInstance_Check(inst)) {
2882 (PyObject*)((PyInstanceObject*)inst)->in_class;
2886 retval = PyObject_TypeCheck(inst, (PyTypeObject *)cls);
2888 PyObject *c = PyObject_GetAttr(inst, __class__);
2893 if (c != (PyObject *)(inst->ob_type) &&
2907 icls = PyObject_GetAttr(inst, __class__);
2922 PyObject_IsInstance(PyObject *inst, PyObject *cls) argument
2927 if (Py_TYPE(inst) == (PyTypeObject *)cls)
2940 r = PyObject_IsInstance(inst, item);
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dclassobject.c508 PyInstanceObject *inst; in PyInstance_NewRaw() local
526 inst = PyObject_GC_New(PyInstanceObject, &PyInstance_Type); in PyInstance_NewRaw()
527 if (inst == NULL) { in PyInstance_NewRaw()
531 inst->in_weakreflist = NULL; in PyInstance_NewRaw()
533 inst->in_class = (PyClassObject *)klass; in PyInstance_NewRaw()
534 inst->in_dict = dict; in PyInstance_NewRaw()
535 _PyObject_GC_TRACK(inst); in PyInstance_NewRaw()
536 return (PyObject *)inst; in PyInstance_NewRaw()
542 register PyInstanceObject *inst; in PyInstance_New() local
551 inst = (PyInstanceObject *) PyInstance_NewRaw(klass, NULL); in PyInstance_New()
[all …]
Dabstract.c2872 recursive_isinstance(PyObject *inst, PyObject *cls) argument
2884 if (PyClass_Check(cls) && PyInstance_Check(inst)) {
2886 (PyObject*)((PyInstanceObject*)inst)->in_class;
2890 retval = PyObject_TypeCheck(inst, (PyTypeObject *)cls);
2892 PyObject *c = PyObject_GetAttr(inst, __class__);
2897 if (c != (PyObject *)(inst->ob_type) &&
2911 icls = PyObject_GetAttr(inst, __class__);
2926 PyObject_IsInstance(PyObject *inst, PyObject *cls) argument
2931 if (Py_TYPE(inst) == (PyTypeObject *)cls)
2944 r = PyObject_IsInstance(inst, item);
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dpopen2.py25 for inst in _active[:]:
26 if inst.poll(_deadstate=sys.maxint) >= 0:
28 _active.remove(inst)
178 inst = Popen3(cmd, False, bufsize)
179 return inst.fromchild, inst.tochild
188 inst = Popen3(cmd, True, bufsize)
189 return inst.fromchild, inst.tochild, inst.childerr
198 inst = Popen4(cmd, bufsize)
199 return inst.fromchild, inst.tochild
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dpydocfodder.py196 def __call__(self, inst): argument
197 print 'Get called', self, inst
198 return inst.desc[self.attr]
202 def __call__(self, inst, val): argument
203 print 'Set called', self, inst, val
204 inst.desc[self.attr] = val
208 def __call__(self, inst): argument
209 print 'Del called', self, inst
210 del inst.desc[self.attr]
Dtest_typechecks.py9 def __instancecheck__(cls, inst): argument
12 for c in set([type(inst), inst.__class__]))
77 def __instancecheck__(self, inst): argument
Dtest_popen2.py50 for inst in popen2._active:
51 inst.wait()
56 for inst in subprocess._active:
57 inst.wait()
Dtest_scope.py540 inst = f(3)()
541 self.assertEqual(inst.a, inst.m())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
Dpyassem.py69 def emit(self, *inst): argument
71 print "\t", inst
72 if len(inst) == 2 and isinstance(inst[1], Block):
73 self.current.addOutEdge(inst[1])
74 self.current.emit(inst)
188 def emit(self, inst): argument
189 op = inst[0]
190 self.insts.append(inst)
226 for inst in self.insts:
227 if inst[0] in PyFlowGraph.hasjrel:
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/newmetaclasses/
DEiffel.py54 def __init__(self, inst, descr): argument
55 self._inst = inst
74 def callmethod(self, inst, args, kwargs): argument
76 self._pre(inst, *args, **kwargs)
77 x = self._func(inst, *args, **kwargs)
79 self._post(inst, x, *args, **kwargs)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
DVec.py32 inst = cls()
33 inst.v = v
34 return inst
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/tests/
Dtest_install_data.py19 cmd.install_dir = inst = os.path.join(pkg_dir, 'inst')
42 self.assertTrue(os.path.exists(os.path.join(inst, rone)))
53 self.assertTrue(os.path.exists(os.path.join(inst, rone)))
71 self.assertTrue(os.path.exists(os.path.join(inst, rone)))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Danalyze_dxp.py67 for inst in range(len(_cumulative_profile)):
68 _cumulative_profile[inst] += new_profile[inst]
/device/linaro/bootloader/edk2/StdLib/Include/Ipf/machine/
Ddb_machdep.h89 #define BKPT_SET(inst, addr) db_bkpt_set(inst, addr) argument
90 db_expr_t db_bkpt_set(db_expr_t inst, db_addr_t addr);
/device/google/contexthub/util/nanotool/
Dcalibrationfile.cpp30 auto inst = std::shared_ptr<CalibrationFile>(new CalibrationFile()); in Instance() local
31 if (inst->Initialize()) { in Instance()
32 CalibrationFile::instance_ = inst; in Instance()
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlvm.c426 Instruction inst = *(ci->u.l.savedpc - 1); /* interrupted instruction */ in luaV_finishOp() local
427 OpCode op = GET_OPCODE(inst); in luaV_finishOp()
432 setobjs2s(L, base + GETARG_A(inst), --L->top); in luaV_finishOp()
439 lua_assert(!ISK(GETARG_B(inst))); in luaV_finishOp()
441 ttisnil(luaT_gettmbyobj(L, base + GETARG_B(inst), TM_LE))) in luaV_finishOp()
444 if (res != GETARG_A(inst)) /* condition failed? */ in luaV_finishOp()
450 int b = GETARG_B(inst); /* first element to concatenate */ in luaV_finishOp()
458 setobj2s(L, ci->u.l.base + GETARG_A(inst), L->top - 1); in luaV_finishOp()
468 if (GETARG_C(inst) - 1 >= 0) /* nresults >= 0? */ in luaV_finishOp()
/device/generic/goldfish/fvpbase/
DREADME.md102 ./configure --prefix=$PWD/inst --target=aarch64-linux-gnu
105 for i in $PWD/inst/bin/*; do
/device/google/coral-kernel/sm8150/kernel-headers/linux/mfd/adnc/
Diaxxx-sysid-defs.h290inst) (((IAXXX_SYSID_RESOURCE_TYPE_DEVICE << IAXXX_SYSID_POS_RESOURCE_TYPE) & IAXXX_SYSID_MASK_RES… argument
/device/google/coral-kernel/sm8150/original-kernel-headers/linux/mfd/adnc/
Diaxxx-sysid-defs.h1028 #define IAXXX_SYSID_GEN_DEVICE_SYSID(deviceId, inst) \ argument
1033 (((inst) << IAXXX_SYSID_POS_DEVICE_INST) \
/device/google/coral/
Dinit.msm.usb.configfs.rc135 …symlink /config/usb_gadget/g1/functions/${vendor.usb.rmnet.func.name}.${vendor.usb.rmnet.inst.name…
155 …symlink /config/usb_gadget/g1/functions/${vendor.usb.rmnet.func.name}.${vendor.usb.rmnet.inst.name…
426 …symlink /config/usb_gadget/g1/functions/${vendor.usb.rmnet.func.name}.${vendor.usb.rmnet.inst.name…
450 …symlink /config/usb_gadget/g1/functions/${vendor.usb.rmnet.func.name}.${vendor.usb.rmnet.inst.name…
591 …symlink /config/usb_gadget/g1/functions/${vendor.usb.rmnet.func.name}.${vendor.usb.rmnet.inst.name…
592 …symlink /config/usb_gadget/g1/functions/${vendor.usb.rmnet.func.name}.${vendor.usb.dpl.inst.name} …
614 …symlink /config/usb_gadget/g1/functions/${vendor.usb.rmnet.func.name}.${vendor.usb.rmnet.inst.name…
615 …symlink /config/usb_gadget/g1/functions/${vendor.usb.rmnet.func.name}.${vendor.usb.dpl.inst.name} …
635 …symlink /config/usb_gadget/g1/functions/${vendor.usb.rmnet.func.name}.${vendor.usb.dpl.inst.name} …
657 …symlink /config/usb_gadget/g1/functions/${vendor.usb.rmnet.func.name}.${vendor.usb.dpl.inst.name} …
[all …]

1234