Lines Matching refs:argc
2432 ipmi_nm_getcapabilities(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_getcapabilities() argument
2439 while (--argc > 0) { in ipmi_nm_getcapabilities()
2468 argc--; in ipmi_nm_getcapabilities()
2511 ipmi_nm_get_policy(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_get_policy() argument
2520 while (--argc) { in ipmi_nm_get_policy()
2545 argc--; in ipmi_nm_get_policy()
2599 ipmi_nm_policy(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_policy() argument
2612 argc--; in ipmi_nm_policy()
2619 return (ipmi_nm_get_policy(intf, argc, argv)); in ipmi_nm_policy()
2626 while (--argc > 0) { in ipmi_nm_policy()
2712 argc--; in ipmi_nm_policy()
2734 ipmi_nm_control(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_control() argument
2742 argc--; in ipmi_nm_control()
2751 while (--argc) { in ipmi_nm_control()
2773 argc--; in ipmi_nm_control()
2786 ipmi_nm_get_statistics(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_get_statistics() argument
2806 while (--argc) { in ipmi_nm_get_statistics()
2829 argc--; in ipmi_nm_get_statistics()
2904 ipmi_nm_reset_statistics(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_reset_statistics() argument
2917 while (--argc) { in ipmi_nm_reset_statistics()
2940 argc--; in ipmi_nm_reset_statistics()
2953 ipmi_nm_set_range(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_set_range() argument
2960 while (--argc) { in ipmi_nm_set_range()
2989 argc--; in ipmi_nm_set_range()
3032 ipmi_nm_alert(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_alert() argument
3042 argc--; in ipmi_nm_alert()
3052 while (--argc) { in ipmi_nm_alert()
3082 argc--; in ipmi_nm_alert()
3121 ipmi_nm_thresh(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_thresh() argument
3131 argc--; in ipmi_nm_thresh()
3133 if ((argv[0] == NULL) || (argc < 3) || in ipmi_nm_thresh()
3139 while (--argc) { in ipmi_nm_thresh()
3149 argc--; in ipmi_nm_thresh()
3157 argc--; in ipmi_nm_thresh()
3236 ipmi_nm_suspend(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_suspend() argument
3247 argc--; in ipmi_nm_suspend()
3249 if ((argv[0] == NULL) || (argc < 3) || in ipmi_nm_suspend()
3255 while (--argc > 0) { in ipmi_nm_suspend()
3265 argc--; in ipmi_nm_suspend()
3273 argc--; in ipmi_nm_suspend()
3278 if (argc < 3) { in ipmi_nm_suspend()
3294 argc -= 3; in ipmi_nm_suspend()
3295 if (argc <= 0) in ipmi_nm_suspend()
3298 if (argc <= 0) in ipmi_nm_suspend()
3317 ipmi_dcmi_set_limit(struct ipmi_intf * intf, int argc, char **argv) in ipmi_dcmi_set_limit() argument
3321 if ( argc == 10) { in ipmi_dcmi_set_limit()
3420 ipmi_dcmi_parse_power(struct ipmi_intf * intf, int argc, char **argv) in ipmi_dcmi_parse_power() argument
3449 if (argc < 4) { in ipmi_dcmi_parse_power()
3455 if (ipmi_dcmi_set_limit(intf, argc, argv) < 0) in ipmi_dcmi_parse_power()
3478 ipmi_dcmi_thermalpolicy(struct ipmi_intf * intf, int argc, char **argv) in ipmi_dcmi_thermalpolicy() argument
3494 if (argc < 4) { in ipmi_dcmi_thermalpolicy()
3513 if (argc < 4) { in ipmi_dcmi_thermalpolicy()
3516 } else if (argc < 9) { in ipmi_dcmi_thermalpolicy()
3582 ipmi_dcmi_main(struct ipmi_intf * intf, int argc, char **argv) in ipmi_dcmi_main() argument
3588 if ((argc == 0) || (strncmp(argv[0], "help", 4) == 0)) { in ipmi_dcmi_main()
3614 rc = ipmi_dcmi_parse_power(intf, argc, argv); in ipmi_dcmi_main()
3641 if (argc == 1 ) { in ipmi_dcmi_main()
3666 if (argc == 1 ) { in ipmi_dcmi_main()
3682 rc = ipmi_dcmi_thermalpolicy(intf, argc, argv); in ipmi_dcmi_main()
3700 switch (argc) { in ipmi_dcmi_main()
3710 if (argc != 3 || strncmp(argv[1], "help", 4) == 0) { in ipmi_dcmi_main()
3769 ipmi_nm_main(struct ipmi_intf * intf, int argc, char **argv) in ipmi_nm_main() argument
3773 if ((argc == 0) || (strncmp(argv[0], "help", 4) == 0)) { in ipmi_nm_main()
3791 if (ipmi_nm_getcapabilities(intf, argc, argv)) in ipmi_nm_main()
3796 if (ipmi_nm_control(intf, argc, argv)) in ipmi_nm_main()
3801 if (ipmi_nm_policy(intf, argc, argv)) in ipmi_nm_main()
3806 if (ipmi_nm_get_statistics(intf, argc, argv)) in ipmi_nm_main()
3811 if (ipmi_nm_set_range(intf, argc, argv)) in ipmi_nm_main()
3816 if (ipmi_nm_suspend(intf, argc, argv)) in ipmi_nm_main()
3821 if (ipmi_nm_reset_statistics(intf, argc, argv)) in ipmi_nm_main()
3826 if (ipmi_nm_alert(intf, argc, argv)) in ipmi_nm_main()
3831 if (ipmi_nm_thresh(intf, argc, argv)) in ipmi_nm_main()