Home
last modified time | relevance | path

Searched refs:nslots (Results 1 – 9 of 9) sorted by relevance

/external/strace/
Dnumber_set.c43 unsigned int nslots; member
62 if (new_nslots <= set->nslots) in reallocate_number_set()
65 memset(set->vec + set->nslots, 0, in reallocate_number_set()
66 sizeof(*set->vec) * (new_nslots - set->nslots)); in reallocate_number_set()
67 set->nslots = new_nslots; in reallocate_number_set()
74 return !(set && (set[idx].nslots || set[idx].not)); in number_set_array_is_empty()
80 return set && ((number / BITS_PER_SLOT < set->nslots) in is_number_in_set()
88 return set && ((number / BITS_PER_SLOT < set[idx].nslots) in is_number_in_set_array()
112 if (set[i].nslots) in clear_number_set_array()
114 sizeof(*set[i].vec) * set[i].nslots); in clear_number_set_array()
/external/elfutils/lib/
Dfixedsizehash.h82 size_t nslots; in CONCAT() local
122 result->nslots = nelems; in CONCAT()
141 size_t idx = 1 + hval % htab->nslots; in CONCAT()
153 hash = 1 + hval % (htab->nslots - 2); in CONCAT()
158 idx = htab->nslots + idx - hash; in CONCAT()
/external/openssh/
Dssh-pkcs11.c56 CK_ULONG nslots; member
101 for (i = 0; i < p->nslots; i++) { in pkcs11_provider_finalize()
625 if ((rv = f->C_GetSlotList(CK_TRUE, NULL, &p->nslots)) != CKR_OK) { in pkcs11_add_provider()
629 if (p->nslots == 0) { in pkcs11_add_provider()
634 p->slotlist = xcalloc(p->nslots, sizeof(CK_SLOT_ID)); in pkcs11_add_provider()
635 if ((rv = f->C_GetSlotList(CK_TRUE, p->slotlist, &p->nslots)) in pkcs11_add_provider()
641 p->slotinfo = xcalloc(p->nslots, sizeof(struct pkcs11_slotinfo)); in pkcs11_add_provider()
644 for (i = 0; i < p->nslots; i++) { in pkcs11_add_provider()
/external/selinux/libsepol/cil/src/
Dcil_symtab.c161 symtab->nslots = size; in cil_complex_symtab_init()
273 for (i = 0; i < symtab->nslots; i++) { in cil_complex_symtab_destroy()
285 symtab->nslots = 0; in cil_complex_symtab_destroy()
Dcil_symtab.h69 uint32_t nslots; member
/external/python/cpython2/Objects/
Dtypeobject.c2025 _unicode_to_string(PyObject *slots, Py_ssize_t nslots) in _unicode_to_string() argument
2031 for (i = 0; i < nslots; i++) { in _unicode_to_string()
2102 Py_ssize_t i, nbases, nslots, slotoffset; in type_new() local
2187 nslots = 0; in type_new()
2215 nslots = PyTuple_GET_SIZE(slots); in type_new()
2216 if (nslots > 0 && base->tp_itemsize != 0) { in type_new()
2228 tmp = _unicode_to_string(slots, nslots); in type_new()
2237 for (i = 0; i < nslots; i++) { in type_new()
2269 newslots = PyList_New(nslots - add_dict - add_weak); in type_new()
2272 for (i = j = 0; i < nslots; i++) { in type_new()
[all …]
/external/python/cpython3/Objects/
Dtypeobject.c2356 Py_ssize_t i, nbases, nslots, slotoffset, name_size; in type_new() local
2449 nslots = 0; in type_new()
2475 nslots = PyTuple_GET_SIZE(slots); in type_new()
2476 if (nslots > 0 && base->tp_itemsize != 0) { in type_new()
2485 for (i = 0; i < nslots; i++) { in type_new()
2515 newslots = PyList_New(nslots - add_dict - add_weak); in type_new()
2518 for (i = j = 0; i < nslots; i++) { in type_new()
2546 assert(j == nslots - add_dict - add_weak); in type_new()
2547 nslots = j; in type_new()
2585 type = (PyTypeObject *)metatype->tp_alloc(metatype, nslots); in type_new()
[all …]
/external/e2fsprogs/contrib/
Dfsstress.c128 int nslots; member
573 flist[i].nslots = 0; in main()
590 if (ftp->nfiles == ftp->nslots) { in add_to_flist()
591 ftp->nslots += FLIST_SLOT_INCR; in add_to_flist()
592 ftp->fents = realloc(ftp->fents, ftp->nslots * sizeof(fent_t)); in add_to_flist()
/external/ltp/testcases/kernel/fs/fsstress/
Dfsstress.c101 int nslots; member
546 flist[i].nslots = 0; in main()
563 if (ftp->nfiles == ftp->nslots) { in add_to_flist()
564 ftp->nslots += FLIST_SLOT_INCR; in add_to_flist()
565 ftp->fents = realloc(ftp->fents, ftp->nslots * sizeof(fent_t)); in add_to_flist()