Home
last modified time | relevance | path

Searched refs:opt_string (Results 1 – 3 of 3) sorted by relevance

/drivers/md/
Ddm-default-key.c88 const char *opt_string; in default_key_ctr_optional() local
101 opt_string = dm_shift_arg(&as); in default_key_ctr_optional()
102 if (!opt_string) { in default_key_ctr_optional()
106 if (!strcmp(opt_string, "allow_discards")) { in default_key_ctr_optional()
108 } else if (sscanf(opt_string, "sector_size:%u%c", in default_key_ctr_optional()
116 } else if (!strcmp(opt_string, "iv_large_sectors")) { in default_key_ctr_optional()
Ddm-integrity.c3664 const char *opt_string; in dm_integrity_ctr() local
3667 opt_string = dm_shift_arg(&as); in dm_integrity_ctr()
3668 if (!opt_string) { in dm_integrity_ctr()
3673 if (sscanf(opt_string, "journal_sectors:%u%c", &val, &dummy) == 1) in dm_integrity_ctr()
3675 else if (sscanf(opt_string, "interleave_sectors:%u%c", &val, &dummy) == 1) in dm_integrity_ctr()
3677 else if (sscanf(opt_string, "buffer_sectors:%u%c", &val, &dummy) == 1) in dm_integrity_ctr()
3679 else if (sscanf(opt_string, "journal_watermark:%u%c", &val, &dummy) == 1 && val <= 100) in dm_integrity_ctr()
3681 else if (sscanf(opt_string, "commit_time:%u%c", &val, &dummy) == 1) in dm_integrity_ctr()
3683 else if (!strncmp(opt_string, "meta_device:", strlen("meta_device:"))) { in dm_integrity_ctr()
3688 r = dm_get_device(ti, strchr(opt_string, ':') + 1, in dm_integrity_ctr()
[all …]
Ddm-crypt.c2483 const char *opt_string, *sval; in crypt_ctr_optional() local
2496 opt_string = dm_shift_arg(&as); in crypt_ctr_optional()
2497 if (!opt_string) { in crypt_ctr_optional()
2502 if (!strcasecmp(opt_string, "allow_discards")) in crypt_ctr_optional()
2505 else if (!strcasecmp(opt_string, "same_cpu_crypt")) in crypt_ctr_optional()
2508 else if (!strcasecmp(opt_string, "submit_from_crypt_cpus")) in crypt_ctr_optional()
2510 else if (sscanf(opt_string, "integrity:%u:", &val) == 1) { in crypt_ctr_optional()
2516 sval = strchr(opt_string + strlen("integrity:"), ':') + 1; in crypt_ctr_optional()
2527 } else if (sscanf(opt_string, "sector_size:%hu%c", &cc->sector_size, &dummy) == 1) { in crypt_ctr_optional()
2539 } else if (!strcasecmp(opt_string, "iv_large_sectors")) in crypt_ctr_optional()