Lines Matching defs:arg
406 char *arg;
408 arg = strsep(cmd, " ");
409 if (!arg)
412 if (sysfs_streq(arg, "memory")) {
414 } else if (sysfs_streq(arg, "cpu")) {
426 char *arg;
428 arg = strsep(cmd, " ");
429 if (!arg)
432 if (sysfs_streq(arg, "add")) {
434 } else if (sysfs_streq(arg, "remove")) {
446 char *arg;
449 arg = strsep(cmd, " ");
450 if (!arg)
453 if (sysfs_streq(arg, "indexed-count")) {
455 arg = strsep(cmd, " ");
456 if (!arg) {
461 if (kstrtou32(arg, 0, &count)) {
466 arg = strsep(cmd, " ");
467 if (!arg) {
472 if (kstrtou32(arg, 0, &index)) {
479 } else if (sysfs_streq(arg, "index")) {
481 arg = strsep(cmd, " ");
482 if (!arg) {
487 if (kstrtou32(arg, 0, &index)) {
493 } else if (sysfs_streq(arg, "count")) {
495 arg = strsep(cmd, " ");
496 if (!arg) {
501 if (kstrtou32(arg, 0, &count)) {