Lines Matching refs:current_arg

124 static int current_arg =0;  variable
193 static int get_nic_selection_mode(int current_arg, char **argv);
240 static int ipmi_delloem_vFlash_process(struct ipmi_intf *intf, int current_arg,
270 current_arg = 0; in ipmi_delloem_main()
275 if (0 ==strncmp(argv[current_arg], "lcd\0", 4)) { in ipmi_delloem_main()
277 } else if (strncmp(argv[current_arg], "mac\0", 4) == 0) { in ipmi_delloem_main()
280 } else if (strncmp(argv[current_arg], "lan\0", 4) == 0) { in ipmi_delloem_main()
283 } else if (strncmp(argv[current_arg], "setled\0", 7) == 0) { in ipmi_delloem_main()
286 } else if (strncmp(argv[current_arg], "powermonitor\0", 13) == 0) { in ipmi_delloem_main()
289 } else if (strncmp(argv[current_arg], "vFlash\0", 7) == 0) { in ipmi_delloem_main()
355 current_arg++; in ipmi_delloem_lcd_main()
356 if (argc < current_arg) { in ipmi_delloem_lcd_main()
361 if (argc == 1 || strcmp(argv[current_arg], "help") == 0) { in ipmi_delloem_lcd_main()
370 } else if (strncmp(argv[current_arg], "info\0", 5) == 0) { in ipmi_delloem_lcd_main()
376 } else if (strncmp(argv[current_arg], "status\0", 7) == 0) { in ipmi_delloem_lcd_main()
378 } else if (strncmp(argv[current_arg], "set\0", 4) == 0) { in ipmi_delloem_lcd_main()
381 current_arg++; in ipmi_delloem_lcd_main()
382 if (argc <= current_arg) { in ipmi_delloem_lcd_main()
386 if (strncmp(argv[current_arg], "line\0", 5) == 0) { in ipmi_delloem_lcd_main()
387 current_arg++; in ipmi_delloem_lcd_main()
388 if (argc <= current_arg) { in ipmi_delloem_lcd_main()
392 if (str2uchar(argv[current_arg], &line_number) != 0) { in ipmi_delloem_lcd_main()
395 argv[current_arg]); in ipmi_delloem_lcd_main()
398 current_arg++; in ipmi_delloem_lcd_main()
399 if (argc <= current_arg) { in ipmi_delloem_lcd_main()
404 if ((strncmp(argv[current_arg], "mode\0", 5) == 0) in ipmi_delloem_lcd_main()
406 current_arg++; in ipmi_delloem_lcd_main()
407 if (argc <= current_arg) { in ipmi_delloem_lcd_main()
411 if (argv[current_arg] == NULL) { in ipmi_delloem_lcd_main()
415 if (strncmp(argv[current_arg], "none\0", 5) == 0) { in ipmi_delloem_lcd_main()
418 } else if (strncmp(argv[current_arg], "modelname\0", 10) == 0) { in ipmi_delloem_lcd_main()
421 } else if (strncmp(argv[current_arg], "userdefined\0", 12) == 0) { in ipmi_delloem_lcd_main()
422 current_arg++; in ipmi_delloem_lcd_main()
423 if (argc <= current_arg) { in ipmi_delloem_lcd_main()
428 0xFF, 0XFF, line_number, argv[current_arg]); in ipmi_delloem_lcd_main()
429 } else if (strncmp(argv[current_arg], "ipv4address\0", 12) == 0) { in ipmi_delloem_lcd_main()
432 } else if (strncmp(argv[current_arg], "macaddress\0", 11) == 0) { in ipmi_delloem_lcd_main()
435 } else if (strncmp(argv[current_arg], "systemname\0", 11) == 0) { in ipmi_delloem_lcd_main()
438 } else if (strncmp(argv[current_arg], "servicetag\0", 11) == 0) { in ipmi_delloem_lcd_main()
441 } else if (strncmp(argv[current_arg], "ipv6address\0", 12) == 0) { in ipmi_delloem_lcd_main()
444 } else if (strncmp(argv[current_arg], "ambienttemp\0", 12) == 0) { in ipmi_delloem_lcd_main()
447 } else if (strncmp(argv[current_arg], "systemwatt\0", 11) == 0) { in ipmi_delloem_lcd_main()
450 } else if (strncmp(argv[current_arg], "assettag\0", 9) == 0) { in ipmi_delloem_lcd_main()
453 } else if (strncmp(argv[current_arg], "help\0", 5) == 0) { in ipmi_delloem_lcd_main()
457 argv[current_arg]); in ipmi_delloem_lcd_main()
460 } else if ((strncmp(argv[current_arg], "lcdqualifier\0", 13) == 0) in ipmi_delloem_lcd_main()
462 current_arg++; in ipmi_delloem_lcd_main()
463 if (argc <= current_arg) { in ipmi_delloem_lcd_main()
467 if (argv[current_arg] == NULL) { in ipmi_delloem_lcd_main()
471 if (strncmp(argv[current_arg], "watt\0", 5) == 0) { in ipmi_delloem_lcd_main()
473 } else if (strncmp(argv[current_arg], "btuphr\0",7) == 0) { in ipmi_delloem_lcd_main()
475 } else if (strncmp(argv[current_arg], "celsius\0", 8) == 0) { in ipmi_delloem_lcd_main()
477 } else if (strncmp(argv[current_arg], "fahrenheit", 11) == 0) { in ipmi_delloem_lcd_main()
479 } else if (strncmp(argv[current_arg], "help\0", 5) == 0) { in ipmi_delloem_lcd_main()
483 argv[current_arg]); in ipmi_delloem_lcd_main()
486 } else if ((strncmp(argv[current_arg], "errordisplay\0", 13) == 0) in ipmi_delloem_lcd_main()
488 current_arg++; in ipmi_delloem_lcd_main()
489 if (argc <= current_arg) { in ipmi_delloem_lcd_main()
493 if (argv[current_arg] == NULL) { in ipmi_delloem_lcd_main()
497 if (strncmp(argv[current_arg], "sel\0", 4) == 0) { in ipmi_delloem_lcd_main()
500 } else if (strncmp(argv[current_arg], "simple\0", 7) == 0) { in ipmi_delloem_lcd_main()
503 } else if (strncmp(argv[current_arg], "help\0", 5) == 0) { in ipmi_delloem_lcd_main()
507 argv[current_arg]); in ipmi_delloem_lcd_main()
510 } else if ((strncmp(argv[current_arg], "none\0", 5) == 0) in ipmi_delloem_lcd_main()
513 } else if ((strncmp(argv[current_arg], "default\0", 8) == 0) in ipmi_delloem_lcd_main()
516 } else if ((strncmp(argv[current_arg], "custom\0", 7) == 0) in ipmi_delloem_lcd_main()
518 current_arg++; in ipmi_delloem_lcd_main()
519 if (argc <= current_arg) { in ipmi_delloem_lcd_main()
524 line_number, argv[current_arg]); in ipmi_delloem_lcd_main()
525 } else if (strncmp(argv[current_arg], "vkvm\0", 5) == 0) { in ipmi_delloem_lcd_main()
526 current_arg++; in ipmi_delloem_lcd_main()
527 if (argc <= current_arg) { in ipmi_delloem_lcd_main()
531 if (strncmp(argv[current_arg], "active\0", 7) == 0) { in ipmi_delloem_lcd_main()
533 } else if (strncmp(argv[current_arg], "inactive\0", 9) == 0) { in ipmi_delloem_lcd_main()
535 } else if (strncmp(argv[current_arg], "help\0", 5) == 0) { in ipmi_delloem_lcd_main()
539 argv[current_arg]); in ipmi_delloem_lcd_main()
542 } else if (strncmp(argv[current_arg], "frontpanelaccess\0", 17) == 0) { in ipmi_delloem_lcd_main()
543 current_arg++; in ipmi_delloem_lcd_main()
544 if (argc <= current_arg) { in ipmi_delloem_lcd_main()
548 if (strncmp(argv[current_arg], "viewandmodify\0", 14) == 0) { in ipmi_delloem_lcd_main()
550 } else if (strncmp(argv[current_arg], "viewonly\0", 9)==0) { in ipmi_delloem_lcd_main()
552 } else if (strncmp(argv[current_arg], "disabled\0", 9)==0) { in ipmi_delloem_lcd_main()
554 } else if (strncmp(argv[current_arg], "help\0", 5) == 0) { in ipmi_delloem_lcd_main()
558 argv[current_arg]); in ipmi_delloem_lcd_main()
561 } else if( (strncmp(argv[current_arg], "help\0", 5) == 0) in ipmi_delloem_lcd_main()
566 argv[current_arg]); in ipmi_delloem_lcd_main()
572 argv[current_arg]); in ipmi_delloem_lcd_main()
1514 current_arg++; in ipmi_delloem_mac_main()
1515 if (argc > 1 && strcmp(argv[current_arg], "help") == 0) { in ipmi_delloem_mac_main()
1522 } else if (strncmp(argv[current_arg], "list\0", 5) == 0) { in ipmi_delloem_mac_main()
1524 } else if (strncmp(argv[current_arg], "get\0", 4) == 0) { in ipmi_delloem_mac_main()
1525 current_arg++; in ipmi_delloem_mac_main()
1526 if (argv[current_arg] == NULL) { in ipmi_delloem_mac_main()
1530 if (str2int(argv[current_arg],&currIdInt) != 0) { in ipmi_delloem_mac_main()
1982 current_arg++; in ipmi_delloem_lan_main()
1983 if (argv[current_arg] == NULL || strcmp(argv[current_arg], "help") == 0) { in ipmi_delloem_lan_main()
1991 } else if (strncmp(argv[current_arg], "set\0", 4) == 0) { in ipmi_delloem_lan_main()
1992 current_arg++; in ipmi_delloem_lan_main()
1993 if (argv[current_arg] == NULL) { in ipmi_delloem_lan_main()
1998 nic_selection = get_nic_selection_mode_12g(intf, current_arg, argv, in ipmi_delloem_lan_main()
2015 nic_selection = get_nic_selection_mode(current_arg, argv); in ipmi_delloem_lan_main()
2027 } else if (strncmp(argv[current_arg], "get\0", 4) == 0) { in ipmi_delloem_lan_main()
2028 current_arg++; in ipmi_delloem_lan_main()
2029 if (argv[current_arg] == NULL) { in ipmi_delloem_lan_main()
2032 } else if (strncmp(argv[current_arg], "active\0", 7) == 0) { in ipmi_delloem_lan_main()
2055 get_nic_selection_mode_12g(struct ipmi_intf* intf,int current_arg, in get_nic_selection_mode_12g() argument
2082 if (argv[current_arg] != NULL in get_nic_selection_mode_12g()
2083 && strncmp(argv[current_arg], "dedicated\0", 10) == 0) { in get_nic_selection_mode_12g()
2088 if (argv[current_arg] != NULL in get_nic_selection_mode_12g()
2089 && strncmp(argv[current_arg], "shared\0", 7) == 0) { in get_nic_selection_mode_12g()
2095 current_arg++; in get_nic_selection_mode_12g()
2096 if (argv[current_arg] != NULL in get_nic_selection_mode_12g()
2097 && strncmp(argv[current_arg], "with\0", 5) == 0) { in get_nic_selection_mode_12g()
2103 current_arg++; in get_nic_selection_mode_12g()
2104 if (argv[current_arg] != NULL in get_nic_selection_mode_12g()
2105 && strncmp(argv[current_arg], "failover\0", 9) == 0) { in get_nic_selection_mode_12g()
2109 current_arg++; in get_nic_selection_mode_12g()
2111 if (argv[current_arg] != NULL in get_nic_selection_mode_12g()
2112 && strncmp(argv[current_arg], "lom1\0", 5) == 0) { in get_nic_selection_mode_12g()
2130 } else if (argv[current_arg] != NULL in get_nic_selection_mode_12g()
2131 && strncmp(argv[current_arg], "lom2\0", 5) == 0) { in get_nic_selection_mode_12g()
2149 } else if (argv[current_arg] != NULL in get_nic_selection_mode_12g()
2150 && strncmp(argv[current_arg], "lom3\0", 5) == 0) { in get_nic_selection_mode_12g()
2168 } else if (argv[current_arg] != NULL in get_nic_selection_mode_12g()
2169 && strncmp(argv[current_arg], "lom4\0", 5) == 0) { in get_nic_selection_mode_12g()
2187 } else if (failover && argv[current_arg] != NULL in get_nic_selection_mode_12g()
2188 && strncmp(argv[current_arg], "none\0", 5) == 0) { in get_nic_selection_mode_12g()
2199 } else if (failover && argv[current_arg] != NULL in get_nic_selection_mode_12g()
2200 && strncmp(argv[current_arg], "all\0", 4) == 0) { in get_nic_selection_mode_12g()
2206 current_arg++; in get_nic_selection_mode_12g()
2207 if (failover && argv[current_arg] != NULL in get_nic_selection_mode_12g()
2208 && strncmp(argv[current_arg], "loms\0", 5) == 0) { in get_nic_selection_mode_12g()
2222 get_nic_selection_mode(int current_arg, char ** argv) in get_nic_selection_mode() argument
2224 if (argv[current_arg] != NULL in get_nic_selection_mode()
2225 && strncmp(argv[current_arg], "dedicated\0", 10) == 0) { in get_nic_selection_mode()
2228 if (argv[current_arg] != NULL in get_nic_selection_mode()
2229 && strncmp(argv[current_arg], "shared\0", 7) == 0) { in get_nic_selection_mode()
2230 if (argv[current_arg+1] == NULL) { in get_nic_selection_mode()
2235 current_arg++; in get_nic_selection_mode()
2236 if (argv[current_arg] != NULL in get_nic_selection_mode()
2237 && strncmp(argv[current_arg], "with\0", 5) == 0) { in get_nic_selection_mode()
2243 current_arg++; in get_nic_selection_mode()
2244 if (argv[current_arg] != NULL in get_nic_selection_mode()
2245 && strncmp(argv[current_arg], "failover\0", 9) == 0) { in get_nic_selection_mode()
2251 current_arg++; in get_nic_selection_mode()
2252 if (argv[current_arg] != NULL in get_nic_selection_mode()
2253 && strncmp(argv[current_arg], "lom2\0", 5) == 0) { in get_nic_selection_mode()
2255 } else if (argv[current_arg] != NULL in get_nic_selection_mode()
2256 && strncmp(argv[current_arg], "all\0", 4) == 0) { in get_nic_selection_mode()
2262 current_arg++; in get_nic_selection_mode()
2263 if (argv[current_arg] != NULL in get_nic_selection_mode()
2264 && strncmp(argv[current_arg], "loms\0", 5) == 0) { in get_nic_selection_mode()
2523 current_arg++; in ipmi_delloem_powermonitor_main()
2524 if (argc > 1 && strcmp(argv[current_arg], "help") == 0) { in ipmi_delloem_powermonitor_main()
2531 } else if (strncmp(argv[current_arg], "status\0", 7) == 0) { in ipmi_delloem_powermonitor_main()
2533 } else if (strncmp(argv[current_arg], "clear\0", 6) == 0) { in ipmi_delloem_powermonitor_main()
2534 current_arg++; in ipmi_delloem_powermonitor_main()
2535 if (argv[current_arg] == NULL) { in ipmi_delloem_powermonitor_main()
2538 } else if (strncmp(argv[current_arg], "peakpower\0", 10) == 0) { in ipmi_delloem_powermonitor_main()
2540 } else if (strncmp(argv[current_arg], "cumulativepower\0", 16) == 0) { in ipmi_delloem_powermonitor_main()
2546 } else if (strncmp(argv[current_arg], "powerconsumption\0", 17) == 0) { in ipmi_delloem_powermonitor_main()
2547 current_arg++; in ipmi_delloem_powermonitor_main()
2548 if (argv[current_arg] == NULL) { in ipmi_delloem_powermonitor_main()
2550 } else if (strncmp(argv[current_arg], "watt\0", 5) == 0) { in ipmi_delloem_powermonitor_main()
2552 } else if (strncmp(argv[current_arg], "btuphr\0", 7) == 0) { in ipmi_delloem_powermonitor_main()
2558 } else if (strncmp(argv[current_arg], "powerconsumptionhistory\0", 23) == 0) { in ipmi_delloem_powermonitor_main()
2559 current_arg++; in ipmi_delloem_powermonitor_main()
2560 if (argv[current_arg] == NULL) { in ipmi_delloem_powermonitor_main()
2562 } else if (strncmp(argv[current_arg], "watt\0", 5) == 0) { in ipmi_delloem_powermonitor_main()
2564 } else if (strncmp(argv[current_arg], "btuphr\0", 7) == 0) { in ipmi_delloem_powermonitor_main()
2570 } else if (strncmp(argv[current_arg], "getpowerbudget\0", 15) == 0) { in ipmi_delloem_powermonitor_main()
2571 current_arg++; in ipmi_delloem_powermonitor_main()
2572 if (argv[current_arg] == NULL) { in ipmi_delloem_powermonitor_main()
2574 } else if (strncmp(argv[current_arg], "watt\0", 5) == 0) { in ipmi_delloem_powermonitor_main()
2576 } else if (strncmp(argv[current_arg], "btuphr\0", 7) == 0) { in ipmi_delloem_powermonitor_main()
2582 } else if (strncmp(argv[current_arg], "setpowerbudget\0", 15) == 0) { in ipmi_delloem_powermonitor_main()
2584 current_arg++; in ipmi_delloem_powermonitor_main()
2585 if (argv[current_arg] == NULL) { in ipmi_delloem_powermonitor_main()
2589 if (strchr(argv[current_arg], '.')) { in ipmi_delloem_powermonitor_main()
2594 if (str2int(argv[current_arg], &val) != 0) { in ipmi_delloem_powermonitor_main()
2596 argv[current_arg]); in ipmi_delloem_powermonitor_main()
2599 current_arg++; in ipmi_delloem_powermonitor_main()
2600 if (argv[current_arg] == NULL) { in ipmi_delloem_powermonitor_main()
2602 } else if (strncmp(argv[current_arg], "watt\0", 5) == 0) { in ipmi_delloem_powermonitor_main()
2604 } else if (strncmp(argv[current_arg], "btuphr\0", 7) == 0) { in ipmi_delloem_powermonitor_main()
2606 } else if (strncmp(argv[current_arg], "percent\0", 8) == 0) { in ipmi_delloem_powermonitor_main()
2612 } else if (strncmp(argv[current_arg], "enablepowercap\0", 15) == 0) { in ipmi_delloem_powermonitor_main()
2614 } else if (strncmp(argv[current_arg], "disablepowercap\0", 16) == 0) { in ipmi_delloem_powermonitor_main()
3846 current_arg++; in ipmi_delloem_vFlash_main()
3847 rc = ipmi_delloem_vFlash_process(intf, current_arg, argv); in ipmi_delloem_vFlash_main()
3959 ipmi_delloem_vFlash_process(struct ipmi_intf * intf, int current_arg, char ** argv) in ipmi_delloem_vFlash_process() argument
3969 if (argv[current_arg] == NULL || strcmp(argv[current_arg], "help") == 0) { in ipmi_delloem_vFlash_process()
3974 if (!strncmp(argv[current_arg], "info\0", 5)) { in ipmi_delloem_vFlash_process()
3975 current_arg++; in ipmi_delloem_vFlash_process()
3976 if (argv[current_arg] == NULL) { in ipmi_delloem_vFlash_process()
3979 } else if (strncmp(argv[current_arg], "Card\0", 5) == 0) { in ipmi_delloem_vFlash_process()
3980 current_arg++; in ipmi_delloem_vFlash_process()
3981 if (argv[current_arg] != NULL) { in ipmi_delloem_vFlash_process()
4196 while (current_arg < argc) { in ipmi_getsesmask()
4197 if (!strcmp(argv[current_arg], "present")) in ipmi_getsesmask()
4199 if (!strcmp(argv[current_arg], "online")) in ipmi_getsesmask()
4201 if (!strcmp(argv[current_arg], "hotspare")) in ipmi_getsesmask()
4203 if (!strcmp(argv[current_arg], "identify")) in ipmi_getsesmask()
4205 if (!strcmp(argv[current_arg], "rebuilding")) in ipmi_getsesmask()
4207 if (!strcmp(argv[current_arg], "fault")) in ipmi_getsesmask()
4209 if (!strcmp(argv[current_arg], "predict")) in ipmi_getsesmask()
4211 if (!strcmp(argv[current_arg], "critical")) in ipmi_getsesmask()
4213 if (!strcmp(argv[current_arg], "failed")) in ipmi_getsesmask()
4215 current_arg++; in ipmi_getsesmask()
4238 current_arg++; in ipmi_delloem_setled_main()
4239 if (argc < current_arg) { in ipmi_delloem_setled_main()
4244 if (argc == 1 || strcmp(argv[current_arg], "help") == 0) { in ipmi_delloem_setled_main()
4252 } else if (sscanf(argv[current_arg], "%*x:%x:%x.%x", &b,&d,&f) == 3) { in ipmi_delloem_setled_main()
4254 current_arg++; in ipmi_delloem_setled_main()
4256 } else if (sscanf(argv[current_arg], "%x:%x.%x", &b,&d,&f) == 3) { in ipmi_delloem_setled_main()
4258 current_arg++; in ipmi_delloem_setled_main()