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;
217 (void *) memset(&input, 0, sizeof (input));
219 input.wwnCount = hbaCount;
220 input.wwn_argv = hba_argv;
221 input.pflag = processHBA_flags;
227 err_cnt += processHBA(&input, NULL);
254 inputArg_t input;
287 (void *) memset(&input, 0, sizeof (input));
288 input.wwnCount = wwnCount;
289 input.wwn_argv = wwn_argv;
290 input.hbaName = hbaName;
291 input.pflag = processHBA_flags;
297 err_cnt += processHBA(&input, handleHBAPort);
326 inputArg_t input;
355 (void *) memset(&input, 0, sizeof (input));
356 input.wwnCount = wwnCount;
357 input.wwn_argv = wwn_argv;
358 input.pflag = processHBA_flags;
359 input.hbaName = hbaPort;
365 err_cnt += processHBA(&input, handleExpander);
394 inputArg_t input;
421 (void *) memset(&input, 0, sizeof (input));
422 input.wwnCount = tpCount;
423 input.wwn_argv = tpArgv;
424 input.pflag = processHBA_flags;
430 err_cnt += processHBA(&input, handleTargetPort);
436 err_cnt += printTargetPortInfo(tpListWalk, input.pflag);
498 * input - contains all the input parameters.
506 processHBA(inputArg_t *input, processPortFunc processPort)
538 if (input->wwnCount && (processPort != handleTargetPort) &&
540 input->wwn_flag = calloc(input->wwnCount, sizeof (int));
541 if (input->wwn_flag == NULL) {
552 if (input->wwn_flag) {
553 free(input->wwn_flag);
554 input->wwn_flag = NULL;
640 matchedHBAs += handleHBA(&attrs, input,
645 if (input->hbaName[0] != '\0') {
646 if (strcmp(input->hbaName,
748 if (input->wwnCount > 0) {
749 if (isStringInArgv(input,
774 * For expander device, input->hbaName is
778 if (input->hbaName[0] != '\0') {
779 if (strcmp(input->hbaName,
810 &attrs, input);
837 if (input->wwn_flag) {
838 free(input->wwn_flag);
839 input->wwn_flag = NULL;
848 for (i = 0; i < input->wwnCount; i++) {
849 if (input->wwn_flag[i] == 0) {
852 input->wwn_argv[i],
862 if (input->wwn_flag) {
863 free(input->wwn_flag);
864 input->wwn_flag = NULL;
870 if (input->wwn_flag) {
871 free(input->wwn_flag);
872 input->wwn_flag = NULL;
881 for (i = 0; i < input->wwnCount; i++) {
882 if (input->wwn_flag[i] == 0) {
885 input->wwn_argv[i],
898 if (input->wwnCount > 0) {
900 for (i = 0; i < input->wwnCount; i++) {
901 sum += input->wwn_flag[i];
911 free(input->wwn_flag);
912 input->wwn_flag = NULL;
921 for (i = 0; i < input->wwnCount; i++) {
922 if (input->wwn_flag[i] == 0) {
925 input->wwn_argv[i],
933 if (input->wwn_flag) {
934 free(input->wwn_flag);
935 input->wwn_flag = NULL;
1043 * input - contains all the input parameters.
1051 isPortWWNInArgv(inputArg_t *input, PHBA_WWN pWWN)
1059 port_wwn_counter < input->wwnCount;
1061 hbaWWN = strtoull(input->wwn_argv[port_wwn_counter], NULL,
1066 if (input->wwn_flag) {
1067 input->wwn_flag[port_wwn_counter]++;
1076 * Check whether the string value exists in the input list,
1080 * input - contains all the input parameters.
1089 isStringInArgv(inputArg_t *input, const char *stringName)
1096 counter < input->wwnCount;
1098 if (strcmp(input->wwn_argv[counter],
1100 if (input->wwn_flag)
1101 input->wwn_flag[counter]++;
1113 * input - contains all the input parameters.
1119 static int handleHBA(SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input,
1124 if (input->wwnCount == 0) {
1125 printHBAInfo(attrs, input->pflag, numberOfPorts, adapterName);
1127 if (isStringInArgv(input, adapterName)) {
1129 input->pflag, numberOfPorts, adapterName);
1146 * input - contains all the input parameters.
1155 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input)
1158 printHBAPortInfo(port, attrs, input->pflag);
1159 ret = processHBAPortPhyInfo(handle, portIndex, port, input->pflag);
1171 * input - contains all the input parameters.
1180 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input)
1362 port, rproot, input, 2 * TABLEN, &printPort);
1365 port, rproot, input, 2 * TABLEN, &printPort);
1381 * input - contains all the input parameters.
1390 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input)
1411 &targetattr, &sasattr, input->pflag);
1453 /* user input didn't match, try to match the core of args. */
1508 inputArg_t input;
1527 (void *) memset(&input, 0, sizeof (input));
1528 input.pflag = processHBA_flags;
1529 input.wwnCount = luCount;
1530 input.wwn_argv = luArgv;
1532 err_cnt += processHBA(&input, handleLogicalUnit);
1533 verbose = (input.pflag & PRINT_VERBOSE) ? B_TRUE : B_FALSE;
1593 * input - contains all the input parameters.
1602 SMHBA_ADAPTERATTRIBUTES *attrs, inputArg_t *input)
1673 portName, input->pflag);
2499 rp_tree_t *rpnode, inputArg_t *input,
2512 if (input->wwnCount > 0) {
2520 !isPortWWNInArgv(input,
2526 portIndex, port, rpnode->child, input,
2532 portIndex, port, rpnode->sibling, input,
2539 (input->pflag & PRINT_TARGET_PORT)) {
2559 ret += sas_print_rpnode(input, rpnode, lident, gident);
2566 if (input->pflag & PRINT_TARGET_PORT) {
2568 if (input->wwnCount > 0) {
2573 input,
2585 portIndex, port, rpnode->child, input,
2588 portIndex, port, rpnode->sibling, input,
2635 * input - input argument.
2643 inputArg_t *input, int lident, int gident)
2654 ret += sas_print_rpnode(input, rp_node, lident, gident);
2669 sas_print_rpnode(inputArg_t *input,
2686 if (input->pflag & PRINT_VERBOSE) {