Lines Matching defs:ctl_handle

169 static int snapshot_ctl(raid_obj_handle_t ctl_handle, uint8_t recursive,
175 static int print_ctl_table(raid_obj_handle_t ctl_handle);
176 static int print_array_table(raid_obj_handle_t ctl_handle,
178 static int print_disk_table(raid_obj_handle_t ctl_handle,
183 static int print_disk_attr(raid_obj_handle_t ctl_handle,
570 raid_obj_handle_t ctl_handle = INIT_HANDLE_VALUE;
595 ctl_handle = raidcfg_get_controller(ctl_tag);
596 if (ctl_handle <= 0) {
597 (void) fprintf(stderr, "%s\n", raidcfg_errstr(ctl_handle));
601 if ((ret = raidcfg_get_attr(ctl_handle, &ctl_attr)) < 0) {
660 if ((ret = raidcfg_open_controller(ctl_handle, NULL)) < 0) {
668 (void) raidcfg_close_controller(ctl_handle, NULL);
679 (void) raidcfg_close_controller(ctl_handle, NULL);
692 (void) raidcfg_close_controller(ctl_handle, NULL);
700 (void) raidcfg_close_controller(ctl_handle, NULL);
709 (void) print_array_table(ctl_handle, array_handle);
712 (void) raidcfg_close_controller(ctl_handle, NULL);
732 raid_obj_handle_t ctl_handle = INIT_HANDLE_VALUE;
804 ctl_handle = raidcfg_get_controller(ctl_tag);
806 if (ctl_handle <= 0) {
807 (void) fprintf(stderr, "%s\n", raidcfg_errstr(ctl_handle));
808 (void) raidcfg_close_controller(ctl_handle, NULL);
814 if ((ret = raidcfg_get_attr(ctl_handle, &ctl_attr)) < 0) {
816 (void) raidcfg_close_controller(ctl_handle, NULL);
825 (void) raidcfg_close_controller(ctl_handle, NULL);
838 (void) raidcfg_close_controller(ctl_handle, NULL);
854 (void) raidcfg_close_controller(ctl_handle, NULL);
862 (void) raidcfg_close_controller(ctl_handle, NULL);
867 (void) raidcfg_close_controller(ctl_handle, NULL);
887 raid_obj_handle_t ctl_handle = INIT_HANDLE_VALUE;
909 ctl_handle =
911 if (ctl_handle <= 0) {
913 raidcfg_errstr(ctl_handle));
919 raidcfg_open_controller(ctl_handle,
930 print_ctl_table(ctl_handle);
933 snapshot_ctl(ctl_handle,
937 ctl_handle, NULL);
945 ctl_handle = raidcfg_get_controller(ctl_tag);
946 if (ctl_handle <= 0) {
948 raidcfg_errstr(ctl_handle));
952 ret = raidcfg_open_controller(ctl_handle, NULL);
959 array_handle = raidcfg_get_array(ctl_handle,
965 ctl_handle, NULL);
969 ret = print_array_table(ctl_handle,
976 ctl_handle, NULL);
988 ctl_handle = raidcfg_get_controller(ctl_tag);
989 if (ctl_handle <= 0) {
991 raidcfg_errstr(ctl_handle));
999 ret = raidcfg_open_controller(ctl_handle, NULL);
1006 disk_handle = raidcfg_get_disk(ctl_handle, disk_tag);
1010 (void) raidcfg_close_controller(ctl_handle, NULL);
1015 ret = print_disk_table(ctl_handle, disk_handle);
1020 (void) raidcfg_close_controller(ctl_handle, NULL);
1036 raid_obj_handle_t ctl_handle;
1049 ctl_handle = raidcfg_get_controller(ctl_tag);
1050 if (ctl_handle <= 0) {
1051 (void) fprintf(stderr, "%s\n", raidcfg_errstr(ctl_handle));
1055 ret = raidcfg_open_controller(ctl_handle, NULL);
1061 array_handle = raidcfg_get_array(ctl_handle, array_tag.idl.target_id,
1065 (void) raidcfg_close_controller(ctl_handle, NULL);
1076 (void) raidcfg_close_controller(ctl_handle, NULL);
1084 (void) raidcfg_close_controller(ctl_handle, NULL);
1090 (void) raidcfg_close_controller(ctl_handle, NULL);
1106 raid_obj_handle_t ctl_handle = INIT_HANDLE_VALUE;
1131 if ((ctl_handle = raidcfg_get_controller(ctl_tag)) < 0) {
1133 raidcfg_errstr(ctl_handle));
1137 ret = raidcfg_open_controller(ctl_handle, NULL);
1146 if ((ret = raidcfg_update_fw(ctl_handle, filep, NULL)) < 0) {
1148 (void) raidcfg_close_controller(ctl_handle, NULL);
1155 (void) raidcfg_close_controller(ctl_handle, NULL);
1172 raid_obj_handle_t ctl_handle = INIT_HANDLE_VALUE;
1213 ctl_handle = raidcfg_get_controller(ctl_tag);
1214 if (ctl_handle <= 0) {
1216 raidcfg_errstr(ctl_handle));
1220 ret = raidcfg_open_controller(ctl_handle, NULL);
1226 disk_handle = raidcfg_get_disk(ctl_handle, disk_tag);
1230 (void) raidcfg_close_controller(ctl_handle, NULL);
1242 ctl_handle = raidcfg_get_controller(ctl_tag);
1243 if (ctl_handle <= 0) {
1245 raidcfg_errstr(ctl_handle));
1249 ret = raidcfg_open_controller(ctl_handle, NULL);
1256 if ((ret = raidcfg_get_attr(ctl_handle, &ctl_attr)) < 0) {
1258 (void) raidcfg_close_controller(ctl_handle, NULL);
1263 (void) raidcfg_close_controller(ctl_handle, NULL);
1268 disk_handle = raidcfg_get_disk(ctl_handle, disk_tag);
1272 (void) raidcfg_close_controller(ctl_handle, NULL);
1277 array_handle = raidcfg_get_array(ctl_handle,
1282 (void) raidcfg_close_controller(ctl_handle, NULL);
1300 (void) raidcfg_close_controller(ctl_handle, NULL);
1316 (void) raidcfg_close_controller(ctl_handle, NULL);
1330 (void) raidcfg_close_controller(ctl_handle, NULL);
1347 raid_obj_handle_t ctl_handle = INIT_HANDLE_VALUE;
1389 ctl_handle = raidcfg_get_controller(ctl_tag);
1390 if (ctl_handle <= 0) {
1391 (void) fprintf(stderr, "%s\n", raidcfg_errstr(ctl_handle));
1395 ret = raidcfg_open_controller(ctl_handle, NULL);
1401 array_handle = raidcfg_get_array(ctl_handle, array_tag.idl.target_id,
1416 (void) raidcfg_close_controller(ctl_handle, NULL);
1423 (void) raidcfg_close_controller(ctl_handle, NULL);
1429 (void) raidcfg_close_controller(ctl_handle, NULL);
1442 raid_obj_handle_t ctl_handle = INIT_HANDLE_VALUE;
1445 ctl_handle = raidcfg_list_head(OBJ_SYSTEM, OBJ_TYPE_CONTROLLER);
1446 while (ctl_handle > 0) {
1447 ret = raidcfg_open_controller(ctl_handle, NULL);
1449 if (snapshot_ctl(ctl_handle, recursive, indent,
1451 (void) raidcfg_close_controller(ctl_handle,
1455 ctl_handle = raidcfg_list_next(ctl_handle);
1461 * snapshot_ctl(ctl_handle, recursive, indent, is_snapshot)
1466 snapshot_ctl(raid_obj_handle_t ctl_handle, uint8_t recursive, uint8_t indent,
1476 if ((ret = raidcfg_get_attr(ctl_handle, &ctl_attr)) < 0) {
1494 array_handle = raidcfg_list_head(ctl_handle, OBJ_TYPE_ARRAY);
1504 disk_handle = raidcfg_list_head(ctl_handle, OBJ_TYPE_DISK);
1527 raid_obj_handle_t ctl_handle;
1545 ctl_handle = raidcfg_get_container(array_handle);
1546 ret = raidcfg_get_attr(ctl_handle, &ctl_attr);
1731 raid_obj_handle_t ctl_handle = INIT_HANDLE_VALUE;
1741 ctl_handle = raidcfg_get_controller(ctl_tag);
1742 ret = raidcfg_get_attr(ctl_handle, &ctl_attr);
1804 print_ctl_table(raid_obj_handle_t ctl_handle)
1810 if ((ret = raidcfg_get_attr(ctl_handle, &ctl_attr)) < 0) {
1832 print_array_table(raid_obj_handle_t ctl_handle, raid_obj_handle_t array_handle)
1850 if ((ret = raidcfg_get_attr(ctl_handle, &ctl_attr)) < 0) {
1997 print_disk_table(raid_obj_handle_t ctl_handle, raid_obj_handle_t disk_handle)
2006 if ((ret = raidcfg_get_attr(ctl_handle, &ctl_attr)) < 0) {
2032 (void) print_disk_attr(ctl_handle, disk_handle, &disk_attr);
2236 * print_disk_attr(ctl_handle, disk_handle, attrp)
2241 print_disk_attr(raid_obj_handle_t ctl_handle, raid_obj_handle_t disk_handle,
2291 if ((ret = raidcfg_get_attr(ctl_handle, &ctl_attr)) < 0) {
2463 raid_obj_handle_t ctl_handle;
2482 ctl_handle = raidcfg_get_controller(*ctl_tagp);
2483 if (ctl_handle <= 0) {
2485 raidcfg_errstr(ctl_handle));
2488 ret = raidcfg_open_controller(ctl_handle, NULL);
2497 raidcfg_get_disk(ctl_handle, disk_tag)) < 0) {
2500 (void) raidcfg_close_controller(ctl_handle, NULL);