Lines Matching refs:controllers
228 (void ***)&bp->controllers) != 0) { in add_bus()
292 bp->controllers = (controller_t **)calloc(1, sizeof (controller_t *)); in add_bus()
293 if (bp->controllers == NULL) { in add_bus()
298 bp->controllers[0] = NULL; in add_bus()
301 if (add_ptr2array(cp, (void ***)&bp->controllers) != 0) { in add_bus()
664 for (i = 0; diskp->controllers[i]; i++) { in add_disk2controller()
665 if (cp == diskp->controllers[i]) { in add_disk2controller()
678 if (add_ptr2array(cp, (void ***)&diskp->controllers) != 0) { in add_disk2controller()
873 for (j = 0; dp->controllers[j]; j++) { in remove_controller()
876 if (libdiskmgt_str_eq(dp->controllers[j]->name, in remove_controller()
885 for (k = j; dp->controllers[k]; k++) { in remove_controller()
886 dp->controllers[k] = in remove_controller()
887 dp->controllers[k + 1]; in remove_controller()
953 diskp->controllers = (controller_t **) in create_disk()
955 if (diskp->controllers == NULL) { in create_disk()
959 diskp->controllers[0] = NULL; in create_disk()
1704 for (i = 0; bp->controllers[i]; i++) { in remove_invalid_controller()
1705 if (libdiskmgt_str_eq(bp->controllers[i]->name, name)) { in remove_invalid_controller()
1711 for (j = i; bp->controllers[j]; j++) { in remove_invalid_controller()
1712 bp->controllers[j] = in remove_invalid_controller()
1713 bp->controllers[j + 1]; in remove_invalid_controller()