Lines Matching defs:pd
200 kcf_provider_desc_t *pd;
202 if ((pd = kcf_get_mech_provider(rngmech_type, NULL, NULL, &rv,
204 KCF_PROV_REFRELE(pd);
226 kcf_provider_desc_t *pd = NULL;
228 if (kcf_get_sw_prov(rngmech_type, &pd, NULL, B_FALSE) ==
230 (void) KCF_PROV_SEED_RANDOM(pd, pd->pd_sid, buf, len,
232 KCF_PROV_REFRELE(pd);
256 kcf_provider_desc_t *pd;
260 while ((pd = kcf_get_mech_provider(rngmech_type, NULL, NULL, &rv,
266 pd->pd_sid, ptr, need, 0, 0);
267 rv = kcf_submit_request(pd, NULL, NULL, ¶ms, B_FALSE);
275 KCF_PROV_REFRELE(pd);
281 /* Add pd to the linked list of providers tried. */
282 if (kcf_insert_triedlist(&list, pd, KM_SLEEP) == NULL) {
283 KCF_PROV_REFRELE(pd);
331 kcf_provider_desc_t *pd;
342 while ((pd = kcf_get_mech_provider(rngmech_type, NULL, NULL, &rv,
346 switch (pd->pd_prov_type) {
356 KCF_PROV_REFRELE(pd);
364 pd->pd_sid, rndbuf, MINEXTRACTBYTES, 0, 0);
375 pd->pd_sid, ptr, len, 0, 0);
379 rv = kcf_submit_request(pd, NULL, &req, ¶ms, B_FALSE);
381 switch (pd->pd_prov_type) {
409 if (pd->pd_prov_type == CRYPTO_HW_PROVIDER &&
416 KCF_PROV_REFRELE(pd);
421 /* Add pd to the linked list of providers tried. */
422 if (kcf_insert_triedlist(&list, pd, KM_NOSLEEP) ==
424 KCF_PROV_REFRELE(pd);