Lines Matching defs:slotcount
128 CK_ULONG slotcount;
147 rv = C_GetSlotList(0, NULL, &slotcount);
152 if (slotcount == 0) {
158 slot_list = malloc(slotcount * sizeof (CK_SLOT_ID));
163 if ((rv = C_GetSlotList(0, slot_list, &slotcount)) != CKR_OK) {
169 for (i = 0; i < slotcount; i++) {
176 if (i == slotcount) {
209 CK_ULONG slotcount;
229 rv = C_GetSlotList(0, NULL, &slotcount);
234 if (slotcount == 0) {
240 slot_list = malloc(slotcount * sizeof (CK_SLOT_ID));
245 if ((rv = C_GetSlotList(0, slot_list, &slotcount)) != CKR_OK) {
251 for (i = 0; i < slotcount; i++) {
259 if (i == slotcount) {