Lines Matching defs:str

3444 static int __init parse_amd_iommu_dump(char *str)
3451 static int __init parse_amd_iommu_intr(char *str)
3453 for (; *str; ++str) {
3454 if (strncmp(str, "legacy", 6) == 0) {
3458 if (strncmp(str, "vapic", 5) == 0) {
3466 static int __init parse_amd_iommu_options(char *str)
3468 if (!str)
3471 while (*str) {
3472 if (strncmp(str, "fullflush", 9) == 0) {
3475 } else if (strncmp(str, "force_enable", 12) == 0) {
3477 } else if (strncmp(str, "off", 3) == 0) {
3479 } else if (strncmp(str, "force_isolation", 15) == 0) {
3481 } else if (strncmp(str, "pgtbl_v1", 8) == 0) {
3483 } else if (strncmp(str, "pgtbl_v2", 8) == 0) {
3485 } else if (strncmp(str, "irtcachedis", 11) == 0) {
3488 pr_notice("Unknown option - '%s'\n", str);
3491 str += strcspn(str, ",");
3492 while (*str == ',')
3493 str++;
3499 static int __init parse_ivrs_ioapic(char *str)
3505 if (sscanf(str, "=%d@%x:%x.%x", &id, &bus, &dev, &fn) == 4 ||
3506 sscanf(str, "=%d@%x:%x:%x.%x", &id, &seg, &bus, &dev, &fn) == 5)
3509 if (sscanf(str, "[%d]=%x:%x.%x", &id, &bus, &dev, &fn) == 4 ||
3510 sscanf(str, "[%d]=%x:%x:%x.%x", &id, &seg, &bus, &dev, &fn) == 5) {
3512 str, id, seg, bus, dev, fn);
3516 pr_err("Invalid command line: ivrs_ioapic%s\n", str);
3522 str);
3537 static int __init parse_ivrs_hpet(char *str)
3543 if (sscanf(str, "=%d@%x:%x.%x", &id, &bus, &dev, &fn) == 4 ||
3544 sscanf(str, "=%d@%x:%x:%x.%x", &id, &seg, &bus, &dev, &fn) == 5)
3547 if (sscanf(str, "[%d]=%x:%x.%x", &id, &bus, &dev, &fn) == 4 ||
3548 sscanf(str, "[%d]=%x:%x:%x.%x", &id, &seg, &bus, &dev, &fn) == 5) {
3550 str, id, seg, bus, dev, fn);
3554 pr_err("Invalid command line: ivrs_hpet%s\n", str);
3560 str);
3577 static int __init parse_ivrs_acpihid(char *str)
3584 addr = strchr(str, '@');
3586 addr = strchr(str, '=');
3595 if (sscanf(str, "[%x:%x.%x]=%s", &bus, &dev, &fn, acpiid) == 4 ||
3596 sscanf(str, "[%x:%x:%x.%x]=%s", &seg, &bus, &dev, &fn, acpiid) == 5) {
3598 str, acpiid, seg, bus, dev, fn);
3607 if (strlen(str) > ACPIID_LEN + 1)
3610 if (sscanf(str, "=%s", acpiid) != 1)
3618 pr_err("Invalid command line: ivrs_acpihid%s\n", str);