Home
last modified time | relevance | path

Searched refs:nattrs (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Modules/
D_operator.c1144 Py_ssize_t nattrs; member
1156 Py_ssize_t nattrs, idx, char_idx; in attrgetter_new() local
1161 nattrs = PyTuple_GET_SIZE(args); in attrgetter_new()
1162 if (nattrs <= 1) { in attrgetter_new()
1167 attr = PyTuple_New(nattrs); in attrgetter_new()
1172 for (idx = 0; idx < nattrs; ++idx) { in attrgetter_new()
1257 ag->nattrs = nattrs; in attrgetter_new()
1315 Py_ssize_t i, nattrs=ag->nattrs; in attrgetter_call() local
1322 if (ag->nattrs == 1) /* ag->attr is always a tuple */ in attrgetter_call()
1326 assert(PyTuple_GET_SIZE(ag->attr) == nattrs); in attrgetter_call()
[all …]
/external/python/cpython2/Modules/
Doperator.c596 Py_ssize_t nattrs; member
607 Py_ssize_t nattrs; in attrgetter_new() local
612 nattrs = PyTuple_GET_SIZE(args); in attrgetter_new()
613 if (nattrs <= 1) { in attrgetter_new()
626 ag->nattrs = nattrs; in attrgetter_new()
694 Py_ssize_t i, nattrs=ag->nattrs; in attrgetter_call() local
700 if (ag->nattrs == 1) in attrgetter_call()
704 assert(PyTuple_GET_SIZE(ag->attr) == nattrs); in attrgetter_call()
706 result = PyTuple_New(nattrs); in attrgetter_call()
710 for (i=0 ; i < nattrs ; i++) { in attrgetter_call()
/external/openssh/
Dssh-pkcs11.c1753 CK_ULONG nattrs; in pkcs11_destroy_keypair() local
1786 nattrs = 0; in pkcs11_destroy_keypair()
1788 FILL_ATTR(attrs, nattrs, CKA_CLASS, &key_class, sizeof(key_class)); in pkcs11_destroy_keypair()
1789 FILL_ATTR(attrs, nattrs, CKA_ID, &keyid, sizeof(keyid)); in pkcs11_destroy_keypair()
1791 if (pkcs11_find(p, slotidx, attrs, nattrs, &obj) == 0 && in pkcs11_destroy_keypair()
1802 nattrs = 0; in pkcs11_destroy_keypair()
1804 FILL_ATTR(attrs, nattrs, CKA_CLASS, &key_class, sizeof(key_class)); in pkcs11_destroy_keypair()
1805 FILL_ATTR(attrs, nattrs, CKA_ID, &keyid, sizeof(keyid)); in pkcs11_destroy_keypair()
1807 if (pkcs11_find(p, slotidx, attrs, nattrs, &obj) == 0 && in pkcs11_destroy_keypair()
1811 nattrs = 0; in pkcs11_destroy_keypair()
[all …]
/external/libnl/python/examples/
Dwiphy.py79 nattrs = nl.nla_get_nested(attr[nl80211.NL80211_ATTR_WIPHY_BANDS])
80 for nattr in nattrs: