Lines Matching refs:input
99 rp_tree_t *rpnode, inputArg_t *input, int gident,
104 inputArg_t *input, int lident, int gident);
106 sas_print_rpnode(inputArg_t *input,
112 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input);
114 static int processHBA(inputArg_t *input,
117 static int isPortWWNInArgv(inputArg_t *input, PHBA_WWN pWWN);
118 static int isStringInArgv(inputArg_t *input, const char *adapterName);
124 static int handleHBA(SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input,
128 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input);
137 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input);
142 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input);
147 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input);
195 inputArg_t input; in sas_util_list_hba() local
217 (void *) memset(&input, 0, sizeof (input)); in sas_util_list_hba()
219 input.wwnCount = hbaCount; in sas_util_list_hba()
220 input.wwn_argv = hba_argv; in sas_util_list_hba()
221 input.pflag = processHBA_flags; in sas_util_list_hba()
227 err_cnt += processHBA(&input, NULL); in sas_util_list_hba()
254 inputArg_t input; in sas_util_list_hbaport() local
287 (void *) memset(&input, 0, sizeof (input)); in sas_util_list_hbaport()
288 input.wwnCount = wwnCount; in sas_util_list_hbaport()
289 input.wwn_argv = wwn_argv; in sas_util_list_hbaport()
290 input.hbaName = hbaName; in sas_util_list_hbaport()
291 input.pflag = processHBA_flags; in sas_util_list_hbaport()
297 err_cnt += processHBA(&input, handleHBAPort); in sas_util_list_hbaport()
326 inputArg_t input; in sas_util_list_expander() local
355 (void *) memset(&input, 0, sizeof (input)); in sas_util_list_expander()
356 input.wwnCount = wwnCount; in sas_util_list_expander()
357 input.wwn_argv = wwn_argv; in sas_util_list_expander()
358 input.pflag = processHBA_flags; in sas_util_list_expander()
359 input.hbaName = hbaPort; in sas_util_list_expander()
365 err_cnt += processHBA(&input, handleExpander); in sas_util_list_expander()
394 inputArg_t input; in sas_util_list_targetport() local
421 (void *) memset(&input, 0, sizeof (input)); in sas_util_list_targetport()
422 input.wwnCount = tpCount; in sas_util_list_targetport()
423 input.wwn_argv = tpArgv; in sas_util_list_targetport()
424 input.pflag = processHBA_flags; in sas_util_list_targetport()
430 err_cnt += processHBA(&input, handleTargetPort); in sas_util_list_targetport()
436 err_cnt += printTargetPortInfo(tpListWalk, input.pflag); in sas_util_list_targetport()
506 processHBA(inputArg_t *input, processPortFunc processPort) in processHBA() argument
538 if (input->wwnCount && (processPort != handleTargetPort) && in processHBA()
540 input->wwn_flag = calloc(input->wwnCount, sizeof (int)); in processHBA()
541 if (input->wwn_flag == NULL) { in processHBA()
552 if (input->wwn_flag) { in processHBA()
553 free(input->wwn_flag); in processHBA()
554 input->wwn_flag = NULL; in processHBA()
640 matchedHBAs += handleHBA(&attrs, input, in processHBA()
645 if (input->hbaName[0] != '\0') { in processHBA()
646 if (strcmp(input->hbaName, in processHBA()
748 if (input->wwnCount > 0) { in processHBA()
749 if (isStringInArgv(input, in processHBA()
778 if (input->hbaName[0] != '\0') { in processHBA()
779 if (strcmp(input->hbaName, in processHBA()
810 &attrs, input); in processHBA()
837 if (input->wwn_flag) { in processHBA()
838 free(input->wwn_flag); in processHBA()
839 input->wwn_flag = NULL; in processHBA()
848 for (i = 0; i < input->wwnCount; i++) { in processHBA()
849 if (input->wwn_flag[i] == 0) { in processHBA()
852 input->wwn_argv[i], in processHBA()
862 if (input->wwn_flag) { in processHBA()
863 free(input->wwn_flag); in processHBA()
864 input->wwn_flag = NULL; in processHBA()
870 if (input->wwn_flag) { in processHBA()
871 free(input->wwn_flag); in processHBA()
872 input->wwn_flag = NULL; in processHBA()
881 for (i = 0; i < input->wwnCount; i++) { in processHBA()
882 if (input->wwn_flag[i] == 0) { in processHBA()
885 input->wwn_argv[i], in processHBA()
898 if (input->wwnCount > 0) { in processHBA()
900 for (i = 0; i < input->wwnCount; i++) { in processHBA()
901 sum += input->wwn_flag[i]; in processHBA()
911 free(input->wwn_flag); in processHBA()
912 input->wwn_flag = NULL; in processHBA()
921 for (i = 0; i < input->wwnCount; i++) { in processHBA()
922 if (input->wwn_flag[i] == 0) { in processHBA()
925 input->wwn_argv[i], in processHBA()
933 if (input->wwn_flag) { in processHBA()
934 free(input->wwn_flag); in processHBA()
935 input->wwn_flag = NULL; in processHBA()
1051 isPortWWNInArgv(inputArg_t *input, PHBA_WWN pWWN) in isPortWWNInArgv() argument
1059 port_wwn_counter < input->wwnCount; in isPortWWNInArgv()
1061 hbaWWN = strtoull(input->wwn_argv[port_wwn_counter], NULL, in isPortWWNInArgv()
1066 if (input->wwn_flag) { in isPortWWNInArgv()
1067 input->wwn_flag[port_wwn_counter]++; in isPortWWNInArgv()
1089 isStringInArgv(inputArg_t *input, const char *stringName) in isStringInArgv() argument
1096 counter < input->wwnCount; in isStringInArgv()
1098 if (strcmp(input->wwn_argv[counter], in isStringInArgv()
1100 if (input->wwn_flag) in isStringInArgv()
1101 input->wwn_flag[counter]++; in isStringInArgv()
1119 static int handleHBA(SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input, in handleHBA() argument
1124 if (input->wwnCount == 0) { in handleHBA()
1125 printHBAInfo(attrs, input->pflag, numberOfPorts, adapterName); in handleHBA()
1127 if (isStringInArgv(input, adapterName)) { in handleHBA()
1129 input->pflag, numberOfPorts, adapterName); in handleHBA()
1155 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input) in handleHBAPort() argument
1158 printHBAPortInfo(port, attrs, input->pflag); in handleHBAPort()
1159 ret = processHBAPortPhyInfo(handle, portIndex, port, input->pflag); in handleHBAPort()
1180 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input) in handleExpander() argument
1362 port, rproot, input, 2 * TABLEN, &printPort); in handleExpander()
1365 port, rproot, input, 2 * TABLEN, &printPort); in handleExpander()
1390 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input) in handleTargetPort() argument
1411 &targetattr, &sasattr, input->pflag); in handleTargetPort()
1508 inputArg_t input; in sas_util_list_logicalunit() local
1527 (void *) memset(&input, 0, sizeof (input)); in sas_util_list_logicalunit()
1528 input.pflag = processHBA_flags; in sas_util_list_logicalunit()
1529 input.wwnCount = luCount; in sas_util_list_logicalunit()
1530 input.wwn_argv = luArgv; in sas_util_list_logicalunit()
1532 err_cnt += processHBA(&input, handleLogicalUnit); in sas_util_list_logicalunit()
1533 verbose = (input.pflag & PRINT_VERBOSE) ? B_TRUE : B_FALSE; in sas_util_list_logicalunit()
1602 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input) in handleLogicalUnit() argument
1673 portName, input->pflag); in handleLogicalUnit()
2499 rp_tree_t *rpnode, inputArg_t *input, in sas_rp_tree_print() argument
2512 if (input->wwnCount > 0) { in sas_rp_tree_print()
2520 !isPortWWNInArgv(input, in sas_rp_tree_print()
2526 portIndex, port, rpnode->child, input, in sas_rp_tree_print()
2532 portIndex, port, rpnode->sibling, input, in sas_rp_tree_print()
2539 (input->pflag & PRINT_TARGET_PORT)) { in sas_rp_tree_print()
2559 ret += sas_print_rpnode(input, rpnode, lident, gident); in sas_rp_tree_print()
2566 if (input->pflag & PRINT_TARGET_PORT) { in sas_rp_tree_print()
2568 if (input->wwnCount > 0) { in sas_rp_tree_print()
2573 input, in sas_rp_tree_print()
2585 portIndex, port, rpnode->child, input, in sas_rp_tree_print()
2588 portIndex, port, rpnode->sibling, input, in sas_rp_tree_print()
2643 inputArg_t *input, int lident, int gident) in sas_rp_tree_print_desc() argument
2654 ret += sas_print_rpnode(input, rp_node, lident, gident); in sas_rp_tree_print_desc()
2669 sas_print_rpnode(inputArg_t *input, in sas_print_rpnode() argument
2686 if (input->pflag & PRINT_VERBOSE) { in sas_print_rpnode()