Lines Matching defs:ppd

122 void stmf_delete_ppd(stmf_pp_data_t *ppd);
2292 stmf_pp_data_t *ppd;
2304 for (ppd = stmf_state.stmf_ppdlist; ppd != NULL; ppd = ppd->ppd_next) {
2305 if (strcmp(ppd->ppd_name, lp->lp_name) == 0) {
2309 if ((ppd == NULL) || (ppd->ppd_nv == NULL)) {
2312 ilp->ilp_ppd = ppd;
2313 ppd->ppd_provider = ilp;
2321 lp->lp_cb(lp, STMF_PROVIDER_DATA_UPDATED, ppd->ppd_nv, cb_flags);
2364 stmf_pp_data_t *ppd;
2375 for (ppd = stmf_state.stmf_ppdlist; ppd != NULL; ppd = ppd->ppd_next) {
2376 if (strcmp(ppd->ppd_name, pp->pp_name) == 0) {
2380 if ((ppd == NULL) || (ppd->ppd_nv == NULL)) {
2383 ipp->ipp_ppd = ppd;
2384 ppd->ppd_provider = ipp;
2392 pp->pp_cb(pp, STMF_PROVIDER_DATA_UPDATED, ppd->ppd_nv, cb_flags);
2437 stmf_pp_data_t *ppd;
2449 for (ppd = stmf_state.stmf_ppdlist; ppd != NULL; ppd = ppd->ppd_next) {
2451 if (!ppd->ppd_lu_provider)
2454 if (!ppd->ppd_port_provider)
2457 if (strncmp(ppi->ppi_name, ppd->ppd_name, 254) == 0)
2461 if (ppd == NULL) {
2470 ppd = kmem_zalloc(s, KM_NOSLEEP);
2471 if (ppd == NULL) {
2475 ppd->ppd_alloc_size = s;
2476 (void) strcpy(ppd->ppd_name, ppi->ppi_name);
2480 ppd->ppd_lu_provider = 1;
2485 ppd->ppd_provider = ilp;
2486 ilp->ilp_ppd = ppd;
2491 ppd->ppd_port_provider = 1;
2496 ppd->ppd_provider = ipp;
2497 ipp->ipp_ppd = ppd;
2503 /* Link this ppd in */
2504 ppd->ppd_next = stmf_state.stmf_ppdlist;
2505 stmf_state.stmf_ppdlist = ppd;
2514 if (ppi->ppi_token != ppd->ppd_token) {
2527 /* Free any existing lists and add this one to the ppd */
2528 nvlist_free(ppd->ppd_nv);
2529 ppd->ppd_nv = nv;
2532 ppd->ppd_token++;
2535 *ppi_token = ppd->ppd_token;
2539 if (ppd->ppd_provider) {
2545 ilp = (stmf_i_lu_provider_t *)ppd->ppd_provider;
2551 STMF_PROVIDER_DATA_UPDATED, ppd->ppd_nv, cb_flags);
2555 ipp = (stmf_i_port_provider_t *)ppd->ppd_provider;
2561 STMF_PROVIDER_DATA_UPDATED, ppd->ppd_nv, cb_flags);
2574 stmf_delete_ppd(stmf_pp_data_t *ppd)
2579 if (ppd->ppd_provider) {
2580 if (ppd->ppd_lu_provider) {
2582 ppd->ppd_provider)->ilp_ppd = NULL;
2585 ppd->ppd_provider)->ipp_ppd = NULL;
2587 ppd->ppd_provider = NULL;
2592 if (*pppd == ppd)
2599 *pppd = ppd->ppd_next;
2600 nvlist_free(ppd->ppd_nv);
2602 kmem_free(ppd, ppd->ppd_alloc_size);
2608 stmf_pp_data_t *ppd;
2617 for (ppd = stmf_state.stmf_ppdlist; ppd != NULL; ppd = ppd->ppd_next) {
2619 if (!ppd->ppd_lu_provider)
2622 if (!ppd->ppd_port_provider)
2625 if (strncmp(ppi->ppi_name, ppd->ppd_name, 254) == 0)
2629 if (ppd) {
2631 stmf_delete_ppd(ppd);
2642 stmf_pp_data_t *ppd;
2653 for (ppd = stmf_state.stmf_ppdlist; ppd != NULL; ppd = ppd->ppd_next) {
2655 if (!ppd->ppd_lu_provider)
2658 if (!ppd->ppd_port_provider)
2661 if (strncmp(ppi->ppi_name, ppd->ppd_name, 254) == 0)
2665 if (ppd && ppd->ppd_nv) {
2666 ppi_out->ppi_token = ppd->ppd_token;
2667 if ((ret = nvlist_size(ppd->ppd_nv, &req_size,
2678 if ((ret = nvlist_pack(ppd->ppd_nv, &bufp, &req_size,
2694 stmf_pp_data_t *ppd, *nppd;
2697 for (ppd = stmf_state.stmf_ppdlist; ppd != NULL; ppd = nppd) {
2698 nppd = ppd->ppd_next;
2699 stmf_delete_ppd(ppd);