Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/md/
Ddm-integrity.c3837 const char *opt_string; in dm_integrity_ctr() local
3840 opt_string = dm_shift_arg(&as); in dm_integrity_ctr()
3841 if (!opt_string) { in dm_integrity_ctr()
3846 if (sscanf(opt_string, "journal_sectors:%u%c", &val, &dummy) == 1) in dm_integrity_ctr()
3848 else if (sscanf(opt_string, "interleave_sectors:%u%c", &val, &dummy) == 1) in dm_integrity_ctr()
3850 else if (sscanf(opt_string, "buffer_sectors:%u%c", &val, &dummy) == 1) in dm_integrity_ctr()
3852 else if (sscanf(opt_string, "journal_watermark:%u%c", &val, &dummy) == 1 && val <= 100) in dm_integrity_ctr()
3854 else if (sscanf(opt_string, "commit_time:%u%c", &val, &dummy) == 1) in dm_integrity_ctr()
3856 else if (!strncmp(opt_string, "meta_device:", strlen("meta_device:"))) { in dm_integrity_ctr()
3861 r = dm_get_device(ti, strchr(opt_string, ':') + 1, in dm_integrity_ctr()
[all …]
Ddm-crypt.c2913 const char *opt_string, *sval; in crypt_ctr_optional() local
2926 opt_string = dm_shift_arg(&as); in crypt_ctr_optional()
2927 if (!opt_string) { in crypt_ctr_optional()
2932 if (!strcasecmp(opt_string, "allow_discards")) in crypt_ctr_optional()
2935 else if (!strcasecmp(opt_string, "same_cpu_crypt")) in crypt_ctr_optional()
2938 else if (!strcasecmp(opt_string, "submit_from_crypt_cpus")) in crypt_ctr_optional()
2940 else if (!strcasecmp(opt_string, "no_read_workqueue")) in crypt_ctr_optional()
2942 else if (!strcasecmp(opt_string, "no_write_workqueue")) in crypt_ctr_optional()
2944 else if (sscanf(opt_string, "integrity:%u:", &val) == 1) { in crypt_ctr_optional()
2950 sval = strchr(opt_string + strlen("integrity:"), ':') + 1; in crypt_ctr_optional()
[all …]