Home
last modified time | relevance | path

Searched refs:self (Results 2576 - 2600 of 5598) sorted by relevance

1...<<101102103104105106107108109110>>...224

/third_party/musl/src/thread/
H A Dpthread_mutex_trylock.c7 pthread_t self = __pthread_self(); in __pthread_mutex_trylock_owner() local
8 int tid = self->tid; in __pthread_mutex_trylock_owner()
40 if (!self->robust_list.off) { in __pthread_mutex_trylock_owner()
41 self->robust_list.off = (char*)&m->_m_lock-(char *)&m->_m_next; in __pthread_mutex_trylock_owner()
43 __syscall(SYS_set_robust_list, &self->robust_list, 3*sizeof(long)); in __pthread_mutex_trylock_owner()
47 self->robust_list.pending = &m->_m_next; in __pthread_mutex_trylock_owner()
52 self->robust_list.pending = 0; in __pthread_mutex_trylock_owner()
64 self->robust_list.pending = 0; in __pthread_mutex_trylock_owner()
69 volatile void *next = self->robust_list.head; in __pthread_mutex_trylock_owner()
71 m->_m_prev = &self in __pthread_mutex_trylock_owner()
[all...]
/third_party/python/Tools/demo/
H A Dmarkov.py8 def __init__(self, histsize, choice):
9 self.histsize = histsize
10 self.choice = choice
11 self.trans = {}
13 def add(self, state, next):
14 self.trans.setdefault(state, []).append(next)
16 def put(self, seq):
17 n = self.histsize
18 add = self.add
24 def get(self)
[all...]
/third_party/python/Lib/distutils/tests/
H A Dtest_msvc9compiler.py106 def test_no_compiler(self):
118 self.assertRaises(DistutilsPlatformError, query_vcvarsall,
123 def test_reg_class(self):
125 self.assertRaises(KeyError, Reg.get_value, 'xxx', 'xxx')
131 self.assertIn(v, ('0', '1', '2'))
136 self.assertEqual(keys, None)
139 self.assertIn('Desktop', keys)
141 def test_remove_visual_c_ref(self):
143 tempdir = self.mkdtemp()
163 self
[all...]
/third_party/python/Lib/test/
H A Dtest_ioctl.py30 def test_ioctl(self):
37 self.assertIn(rpgrp, ids)
39 def _check_ioctl_mutate_len(self, nbytes=None):
48 self.assertEqual(len(buf) * intsize, nbytes) # sanity check
54 self.assertEqual(r, 0)
55 self.assertIn(rpgrp, ids)
57 def test_ioctl_mutate(self):
58 self._check_ioctl_mutate_len()
60 def test_ioctl_mutate_1024(self):
63 self
[all...]
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_c62x/
H A Dadf_c62x_hw_data.c26 static u32 get_accel_mask(struct adf_hw_device_data *self) in get_accel_mask() argument
28 u32 straps = self->straps; in get_accel_mask()
29 u32 fuses = self->fuses; in get_accel_mask()
38 static u32 get_ae_mask(struct adf_hw_device_data *self) in get_ae_mask() argument
40 u32 straps = self->straps; in get_ae_mask()
41 u32 fuses = self->fuses; in get_ae_mask()
47 disabled = ~get_accel_mask(self) & ADF_C62X_ACCELERATORS_MASK; in get_ae_mask()
55 static u32 get_ts_clock(struct adf_hw_device_data *self) in get_ts_clock() argument
60 return self->clock_frequency / 16; in get_ts_clock()
77 static u32 get_misc_bar_id(struct adf_hw_device_data *self) in get_misc_bar_id() argument
82 get_etr_bar_id(struct adf_hw_device_data *self) get_etr_bar_id() argument
87 get_sram_bar_id(struct adf_hw_device_data *self) get_sram_bar_id() argument
92 get_sku(struct adf_hw_device_data *self) get_sku() argument
[all...]
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_c3xxx/
H A Dadf_c3xxx_hw_data.c26 static u32 get_accel_mask(struct adf_hw_device_data *self) in get_accel_mask() argument
28 u32 straps = self->straps; in get_accel_mask()
29 u32 fuses = self->fuses; in get_accel_mask()
38 static u32 get_ae_mask(struct adf_hw_device_data *self) in get_ae_mask() argument
40 u32 straps = self->straps; in get_ae_mask()
41 u32 fuses = self->fuses; in get_ae_mask()
47 disabled = ~get_accel_mask(self) & ADF_C3XXX_ACCELERATORS_MASK; in get_ae_mask()
55 static u32 get_ts_clock(struct adf_hw_device_data *self) in get_ts_clock() argument
60 return self->clock_frequency / 16; in get_ts_clock()
77 static u32 get_misc_bar_id(struct adf_hw_device_data *self) in get_misc_bar_id() argument
82 get_etr_bar_id(struct adf_hw_device_data *self) get_etr_bar_id() argument
87 get_sram_bar_id(struct adf_hw_device_data *self) get_sram_bar_id() argument
92 get_sku(struct adf_hw_device_data *self) get_sku() argument
[all...]
/third_party/node/deps/openssl/openssl/util/perl/OpenSSL/
H A DTemplate.pm49 my $self = $class->SUPER::new(DELIMITERS => [ '{-', '-}'],
53 $self->{_output_off} = 0; # Default to output hunks
55 return bless $self, $class;
59 my $self = shift;
64 $self->SUPER::fill_in(HASH => { quotify1 => \&quotify1,
66 output_on => sub { $self->output_on() },
67 output_off => sub { $self->output_off() },
80 my $self = shift;
82 if ($self->{_output_off} == 0) {
83 $self
[all...]
/third_party/python/Tools/freeze/
H A Dcheckextensions_win32.py34 def __init__(self, name, sourceFiles):
35 self.name = name
37 self.sourceFiles = sourceFiles
40 self.compilerOptions = []
42 self.linkerLibs = []
44 def GetSourceFiles(self):
45 return self.sourceFiles
47 def AddCompilerOption(self, option):
48 self.compilerOptions.append(option)
49 def GetCompilerOptions(self)
[all...]
/third_party/openssl/util/perl/OpenSSL/
H A DTemplate.pm49 my $self = $class->SUPER::new(DELIMITERS => [ '{-', '-}'],
53 $self->{_output_off} = 0; # Default to output hunks
55 return bless $self, $class;
59 my $self = shift;
64 $self->SUPER::fill_in(HASH => { quotify1 => \&quotify1,
66 output_on => sub { $self->output_on() },
67 output_off => sub { $self->output_off() },
80 my $self = shift;
82 if ($self->{_output_off} == 0) {
83 $self
[all...]
/base/security/crypto_framework/common/inc/
H A Dhcf_string.h32 * @param self: self pointer.
36 bool StringAppendPointer(HcString *self, const char *str);
41 * @param self: self pointer.
45 bool StringSetPointer(HcString *self, const char *str);
50 * @param self: self pointer.
55 bool StringSetPointerWithLength(HcString* self, const char *str, uint32_t len);
59 * @param self
[all...]
/third_party/musl/porting/linux/user/src/process/
H A Dvfork.c20 pthread_t self = __pthread_self(); in vfork() local
21 pid_t parent_pid = self->pid; in vfork()
22 self->pid = 0; in vfork()
23 int parent_by_vfork = self->by_vfork; in vfork()
24 self->by_vfork = 1; in vfork()
27 self->pid = parent_pid; in vfork()
28 self->by_vfork = parent_by_vfork; in vfork()
30 self->proc_tid = -1; in vfork()
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_rpc.py10 def test_pickle_unpickle(self):
13 self.assertIs(func, rpc.unpickle_code)
14 self.assertIn(b'test_rpc.py', cbytes)
16 self.assertEqual(code.co_names, ('a', 'b', 'c'))
18 def test_code_pickler(self):
19 self.assertIn(type((lambda:None).__code__),
22 def test_dumps(self):
25 self.assertIn(b'test_rpc.py', rpc.dumps(f.__code__))
H A Dtest_mainmenu.py11 def test_menudefs(self):
15 self.assertEqual(actual, expect)
17 def test_default_keydefs(self):
18 self.assertGreaterEqual(len(mainmenu.default_keydefs), 50)
20 def test_tcl_indexes(self):
29 with self.subTest(menu=menu, pattern=pattern):
34 self.assertTrue(0, f"{menu} not in menudefs")
35 self.assertTrue(any(re.search(pattern, menuitem[0])
/third_party/python/Lib/lib2to3/tests/
H A Dtest_all_fixers.py21 def setUp(self):
22 self.refactor = support.get_refactorer()
24 def refactor_file(self, filepath):
32 self.refactor.refactor_file(filepath)
34 self.refactor.refactor_file(filepath)
36 def test_all_project_files(self):
38 with self.subTest(filepath=filepath):
39 self.refactor_file(filepath)
/third_party/skia/tools/android/
H A Dupload_to_android.py115 def modify(self):
117 def get_user_msg(self):
122 def __init__(self, change_num, debug):
123 self.change_num = change_num
124 self.debug = debug
126 def modify(self):
128 change_details = get_change_details(self.change_num)
130 mod = int(self.change_num) % 100
132 str(mod).zfill(2), self.change_num, latest_patchset)
138 if self
[all...]
/third_party/python/Objects/clinic/
H A Dmemoryobject.c.h37 "release($self, /)\n"
46 memoryview_release_impl(PyMemoryViewObject *self);
49 memoryview_release(PyMemoryViewObject *self, PyObject *Py_UNUSED(ignored)) in memoryview_release() argument
51 return memoryview_release_impl(self); in memoryview_release()
55 "cast($self, /, format, shape=<unrepresentable>)\n"
64 memoryview_cast_impl(PyMemoryViewObject *self, PyObject *format,
68 memoryview_cast(PyMemoryViewObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in memoryview_cast() argument
95 return_value = memoryview_cast_impl(self, format, shape); in memoryview_cast()
102 "toreadonly($self, /)\n"
111 memoryview_toreadonly_impl(PyMemoryViewObject *self);
114 memoryview_toreadonly(PyMemoryViewObject *self, PyObject *Py_UNUSED(ignored)) memoryview_toreadonly() argument
132 memoryview_tolist(PyMemoryViewObject *self, PyObject *Py_UNUSED(ignored)) memoryview_tolist() argument
156 memoryview_tobytes(PyMemoryViewObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) memoryview_tobytes() argument
228 memoryview_hex(PyMemoryViewObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) memoryview_hex() argument
[all...]
/third_party/python/Modules/clinic/
H A D_queuemodule.c.h36 "put($self, /, item, block=True, timeout=None)\n"
48 _queue_SimpleQueue_put_impl(simplequeueobject *self, PyObject *item,
52 _queue_SimpleQueue_put(simplequeueobject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _queue_SimpleQueue_put() argument
82 return_value = _queue_SimpleQueue_put_impl(self, item, block, timeout); in _queue_SimpleQueue_put()
89 "put_nowait($self, /, item)\n"
101 _queue_SimpleQueue_put_nowait_impl(simplequeueobject *self, PyObject *item);
104 _queue_SimpleQueue_put_nowait(simplequeueobject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _queue_SimpleQueue_put_nowait() argument
117 return_value = _queue_SimpleQueue_put_nowait_impl(self, item); in _queue_SimpleQueue_put_nowait()
124 "get($self, /, block=True, timeout=None)\n"
141 _queue_SimpleQueue_get_impl(simplequeueobject *self, PyTypeObjec
145 _queue_SimpleQueue_get(simplequeueobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _queue_SimpleQueue_get() argument
196 _queue_SimpleQueue_get_nowait(simplequeueobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _queue_SimpleQueue_get_nowait() argument
218 _queue_SimpleQueue_empty(simplequeueobject *self, PyObject *Py_UNUSED(ignored)) _queue_SimpleQueue_empty() argument
246 _queue_SimpleQueue_qsize(simplequeueobject *self, PyObject *Py_UNUSED(ignored)) _queue_SimpleQueue_qsize() argument
[all...]
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/
H A Dsym_key_openssl.c38 static HcfResult GetEncoded(HcfKey *self, HcfBlob *key) in GetEncoded() argument
40 if ((self == NULL) || (key == NULL)) { in GetEncoded()
44 if (!HcfIsClassMatch((const HcfObjectBase *)self, OPENSSL_SYM_KEY_CLASS)) { in GetEncoded()
48 SymKeyImpl *impl = (SymKeyImpl *)self; in GetEncoded()
63 static void ClearMem(HcfSymKey *self) in ClearMem() argument
65 if (self == NULL) { in ClearMem()
69 if (!HcfIsClassMatch((const HcfObjectBase *)self, OPENSSL_SYM_KEY_CLASS)) { in ClearMem()
73 SymKeyImpl *impl = (SymKeyImpl *)self; in ClearMem()
79 static const char *GetFormat(HcfKey *self) in GetFormat() argument
81 if (self in GetFormat()
103 GetAlgorithm(HcfKey *self) GetAlgorithm() argument
254 GenerateSymmKey(HcfSymKeyGeneratorSpi *self, HcfSymKey **symmKey) GenerateSymmKey() argument
303 ConvertSymmKey(HcfSymKeyGeneratorSpi *self, const HcfBlob *key, HcfSymKey **symmKey) ConvertSymmKey() argument
[all...]
/foundation/ability/idl_tool/test/sa_test/
H A Dcmd_log_tag_domainid.py23 def get_file_name(self):
26 def run_cmd(self):
27 self.set_command_attr(f"-log-tag new_tag -log-domainid new_id -d {self.output_dir} --gen-cpp")
28 self.set_cmd_test_env()
29 return self.run_choose(True)
31 def run(self):
32 return self.run_cmd()
H A Dcmd_hitrace_tag.py23 def get_file_name(self):
26 def run_cmd(self):
27 self.set_command_attr(f"--dump-metadata -d {self.output_dir} --gen-cpp")
28 self.set_cmd_test_env()
29 return self.run_choose(True)
31 def run(self):
32 return self.run_cmd()
/third_party/mesa3d/src/mapi/glapi/gen/
H A Dgl_marshal.py71 def __init__(self):
72 super(PrintCode, self).__init__()
74 self.name = 'gl_marshal.py'
75 self.license = license.bsd_license_template % (
78 def printRealHeader(self):
81 def printRealFooter(self):
84 def print_sync_call(self, func, unmarshal = 0):
95 def print_sync_body(self, func):
105 self.print_sync_call(func)
110 def print_async_dispatch(self, fun
[all...]
/third_party/node/deps/npm/node_modules/yallist/
H A Dyallist.js8 var self = this
9 if (!(self instanceof Yallist)) {
10 self = new Yallist()
13 self.tail = null
14 self.head = null
15 self.length = 0
19 self.push(item)
23 self.push(arguments[i])
27 return self
367 function insert (self, nod
[all...]
/third_party/vk-gl-cts/external/openglcts/scripts/
H A Dmustpass.py45 def __init__ (self, name, path, incpath, devicepath, copyright = None):
46 self.name = name
47 self.path = path
48 self.incpath = incpath
49 self.devicepath = devicepath
50 self.copyright = copyright
53 def __init__ (self, name, filters, glconfig = None, rotation = "unspecified", surfacetype = None, surfacewidth = None, surfaceheight = None, baseseed = None, fboconfig = None, required = False, runtime = None, os = "any", skip = "none"):
54 self.name = name
55 self.glconfig = glconfig
56 self
[all...]
/kernel/linux/linux-5.10/net/tipc/
H A Dmonitor.c49 * @ack_gen: most recent generation of self's domain acked by peer
90 struct tipc_peer *self; member
169 return mon->self; in get_self()
193 /* Do nothing if self or peer already see member as down */ in mon_identify_lost_members()
242 struct tipc_peer *self = mon->self; in mon_update_local_domain() local
244 struct tipc_mon_domain *dom = self->domain; in mon_update_local_domain()
245 struct tipc_peer *peer = self; in mon_update_local_domain()
252 self->applied = member_cnt; in mon_update_local_domain()
273 mon_apply_domain(mon, self); in mon_update_local_domain()
297 struct tipc_peer *self = mon->self; mon_assign_roles() local
325 struct tipc_peer *self; tipc_mon_remove_peer() local
363 struct tipc_peer *self = mon->self; tipc_mon_add_peer() local
395 struct tipc_peer *self = get_self(net, bearer_id); tipc_mon_peer_up() local
414 struct tipc_peer *self; tipc_mon_peer_down() local
603 struct tipc_peer *self; mon_timeout() local
620 struct tipc_peer *self; tipc_mon_create() local
655 struct tipc_peer *self; tipc_mon_delete() local
[all...]
/kernel/linux/linux-6.6/net/tipc/
H A Dmonitor.c49 * @ack_gen: most recent generation of self's domain acked by peer
90 struct tipc_peer *self; member
199 return mon->self; in get_self()
223 /* Do nothing if self or peer already see member as down */ in mon_identify_lost_members()
272 struct tipc_peer *self = mon->self; in mon_update_local_domain() local
274 struct tipc_mon_domain *dom = self->domain; in mon_update_local_domain()
275 struct tipc_peer *peer = self; in mon_update_local_domain()
282 self->applied = member_cnt; in mon_update_local_domain()
303 mon_apply_domain(mon, self); in mon_update_local_domain()
327 struct tipc_peer *self = mon->self; mon_assign_roles() local
355 struct tipc_peer *self; tipc_mon_remove_peer() local
393 struct tipc_peer *self = mon->self; tipc_mon_add_peer() local
425 struct tipc_peer *self = get_self(net, bearer_id); tipc_mon_peer_up() local
444 struct tipc_peer *self; tipc_mon_peer_down() local
634 struct tipc_peer *self; mon_timeout() local
651 struct tipc_peer *self; tipc_mon_create() local
686 struct tipc_peer *self; tipc_mon_delete() local
[all...]

Completed in 11 milliseconds

1...<<101102103104105106107108109110>>...224