Lines Matching refs:field
112 char *field[4]; in dm_parse_table_entry() local
115 field[0] = str; in dm_parse_table_entry()
117 for (i = 0; i < ARRAY_SIZE(field) - 1; i++) { in dm_parse_table_entry()
118 field[i + 1] = str_field_delimit(&field[i], ' '); in dm_parse_table_entry()
119 if (!field[i + 1]) in dm_parse_table_entry()
123 next = str_field_delimit(&field[i], ','); in dm_parse_table_entry()
131 if (kstrtoull(field[0], 0, &sp->sector_start)) in dm_parse_table_entry()
134 if (kstrtoull(field[1], 0, &sp->length)) in dm_parse_table_entry()
137 strscpy(sp->target_type, field[2], sizeof(sp->target_type)); in dm_parse_table_entry()
143 dev->target_args_array[n] = kstrndup(field[3], DM_MAX_STR_SIZE, in dm_parse_table_entry()
190 char *field[5]; in dm_parse_device_entry() local
194 field[0] = str; in dm_parse_device_entry()
196 for (i = 0; i < ARRAY_SIZE(field) - 1; i++) { in dm_parse_device_entry()
197 field[i+1] = str_field_delimit(&field[i], ','); in dm_parse_device_entry()
198 if (!field[i+1]) in dm_parse_device_entry()
202 next = str_field_delimit(&field[i], ';'); in dm_parse_device_entry()
205 strscpy(dev->dmi.name, field[0], sizeof(dev->dmi.name)); in dm_parse_device_entry()
207 strscpy(dev->dmi.uuid, field[1], sizeof(dev->dmi.uuid)); in dm_parse_device_entry()
209 if (strlen(field[2])) { in dm_parse_device_entry()
210 if (kstrtoull(field[2], 0, &dev->dmi.dev)) in dm_parse_device_entry()
215 if (!strcmp(field[3], "ro")) in dm_parse_device_entry()
217 else if (strcmp(field[3], "rw")) in dm_parse_device_entry()
220 if (dm_parse_table(dev, field[4])) in dm_parse_device_entry()