Lines Matching refs:str
502 static void apm_error(char *str, int err) in apm_error() argument
510 pr_notice("%s: %s\n", str, error_table[i].msg); in apm_error()
512 pr_notice("%s: linux error code %i\n", str, err); in apm_error()
515 str, err); in apm_error()
1866 static int __init apm_setup(char *str) in apm_setup() argument
1870 while ((str != NULL) && (*str != '\0')) { in apm_setup()
1871 if (strncmp(str, "off", 3) == 0) in apm_setup()
1873 if (strncmp(str, "on", 2) == 0) in apm_setup()
1875 if ((strncmp(str, "bounce-interval=", 16) == 0) || in apm_setup()
1876 (strncmp(str, "bounce_interval=", 16) == 0)) in apm_setup()
1877 bounce_interval = simple_strtol(str + 16, NULL, 0); in apm_setup()
1878 if ((strncmp(str, "idle-threshold=", 15) == 0) || in apm_setup()
1879 (strncmp(str, "idle_threshold=", 15) == 0)) in apm_setup()
1880 idle_threshold = simple_strtol(str + 15, NULL, 0); in apm_setup()
1881 if ((strncmp(str, "idle-period=", 12) == 0) || in apm_setup()
1882 (strncmp(str, "idle_period=", 12) == 0)) in apm_setup()
1883 idle_period = simple_strtol(str + 12, NULL, 0); in apm_setup()
1884 invert = (strncmp(str, "no-", 3) == 0) || in apm_setup()
1885 (strncmp(str, "no_", 3) == 0); in apm_setup()
1887 str += 3; in apm_setup()
1888 if (strncmp(str, "debug", 5) == 0) in apm_setup()
1890 if ((strncmp(str, "power-off", 9) == 0) || in apm_setup()
1891 (strncmp(str, "power_off", 9) == 0)) in apm_setup()
1893 if (strncmp(str, "smp", 3) == 0) { in apm_setup()
1897 if ((strncmp(str, "allow-ints", 10) == 0) || in apm_setup()
1898 (strncmp(str, "allow_ints", 10) == 0)) in apm_setup()
1900 if ((strncmp(str, "broken-psr", 10) == 0) || in apm_setup()
1901 (strncmp(str, "broken_psr", 10) == 0)) in apm_setup()
1903 if ((strncmp(str, "realmode-power-off", 18) == 0) || in apm_setup()
1904 (strncmp(str, "realmode_power_off", 18) == 0)) in apm_setup()
1906 str = strchr(str, ','); in apm_setup()
1907 if (str != NULL) in apm_setup()
1908 str += strspn(str, ", \t"); in apm_setup()