Lines Matching refs:NULL

110  *		If the input hsprequest is NULL, use the default HSP scheme:
114 * If the hsprequest is not NULL:
127 devconfig_t *hsp = NULL;
133 if (hsprequest == NULL) {
142 } else if (hsp != NULL) {
144 if (devconfig_get_components(hsp) == NULL) {
147 hsp = NULL;
149 dlist_t *item = NULL;
150 if ((item = dlist_new_item(hsp)) == NULL) {
187 char *hspname = NULL;
189 devconfig_t *default_hsp = NULL;
201 if (hspname != NULL) {
216 if (default_hsp == NULL) {
227 if (default_hsp != NULL) {
238 devconfig_set_components(default_hsp, NULL);
245 *hsp = NULL;
259 *hsp = NULL;
301 char *hspname = NULL;
302 dlist_t *rspares = NULL;
309 if (hspname != NULL) {
312 if (*hsp != NULL) {
328 *hsp = NULL;
338 if (rspares != NULL) {
341 dlist_t *list = NULL;
342 dlist_t *iter = NULL;
345 (iter != NULL) && (error == 0);
348 dlist_t *item = NULL;
349 if ((dlist_new_item(iter->obj)) == NULL) {
409 dlist_t *usable_hbas = NULL;
410 dlist_t *sel_hbas = NULL;
411 dlist_t *disks = NULL;
412 dlist_t *iter = NULL;
414 dlist_t *avail = NULL; /* available slices */
415 dlist_t *slices = NULL; /* avail slices of sufficient size */
416 dlist_t *unique = NULL; /* volume slices that need spares */
417 dlist_t *curspares = NULL; /* current spares in the HSP */
418 dlist_t *newspares = NULL; /* slices to add to HSP */
419 dlist_t *allspares = NULL; /* current and new spares */
427 dlist_free_items(sel_hbas, NULL);
428 dlist_free_items(disks, NULL);
429 dlist_free_items(avail, NULL);
433 if (disks == NULL || dlist_length(disks) == 0) {
437 dlist_free_items(sel_hbas, NULL);
438 dlist_free_items(avail, NULL);
442 if (avail == NULL || dlist_length(avail) == 0) {
446 dlist_free_items(sel_hbas, NULL);
447 dlist_free_items(disks, NULL);
451 dlist_free_items(sel_hbas, NULL);
452 dlist_free_items(disks, NULL);
461 dlist_free_items(avail, NULL);
462 dlist_free_items(unique, NULL);
463 dlist_free_items(slices, NULL);
472 (iter != NULL) && (error == 0);
475 if (item == NULL) {
483 dlist_free_items(avail, NULL);
484 dlist_free_items(unique, NULL);
485 dlist_free_items(slices, NULL);
486 dlist_free_items(allspares, NULL);
496 (iter != NULL) && (error == 0);
501 dlist_t *hbas = NULL;
502 dlist_t *disks = NULL;
506 for (iter1 = components; (iter1 != NULL) && (error == 0);
521 dlist_free_items(disks, NULL);
522 dlist_free_items(hbas, NULL);
528 curspares = NULL;
533 newspares = NULL;
536 dlist_free_items(avail, NULL);
537 dlist_free_items(slices, NULL);
538 dlist_free_items(unique, NULL);
539 dlist_free_items(allspares, NULL);
565 char *hspname = NULL;
574 (iter != NULL) && (error == 0);
578 devconfig_t *hspcomp = NULL;
579 dlist_t *item = NULL;
580 char *devname = NULL;
590 } else if ((item = dlist_new_item(hspcomp)) == NULL) {
631 dlist_t *iter = NULL;
634 (iter != NULL) && (error == 0);
639 (iter1 != NULL) && (error == 0);
646 dlist_t *item = NULL;
647 if ((item = dlist_new_item(comp)) == NULL) {
685 dlist_t *filtered = NULL;
686 dlist_t *iter = NULL;
690 (iter != NULL) && (error == 0);
695 dlist_t *iter2 = NULL;
700 (iter2 != NULL) && (error == 0);
710 dlist_t *item = NULL;
712 NULL) {
724 dlist_free_items(*avail, NULL);
727 dlist_free_items(filtered, NULL);
773 dlist_t *iter = NULL;
782 (iter != NULL) && (*found == B_FALSE) && (error == 0);
786 char *spname = NULL;
796 dm_descriptor_t disk = NULL;
809 char *cname = NULL;
862 devconfig_t *spare = NULL;
869 char *cname = NULL;
894 if ((error == 0) && (spare == NULL)) {
913 if ((error == 0) && (spare != NULL)) {
915 dlist_t *rmvd = NULL;
916 dlist_t *item = NULL;
917 char *spname = NULL;
919 if ((item = dlist_new_item(spare)) == NULL) {
926 if ((item = dlist_new_item(spare)) == NULL) {
940 if (rmvd != NULL) {