Lines Matching refs:field
118 char *field[4]; in dm_parse_table_entry() local
121 field[0] = str; in dm_parse_table_entry()
123 for (i = 0; i < ARRAY_SIZE(field) - 1; i++) { in dm_parse_table_entry()
124 field[i + 1] = str_field_delimit(&field[i], ' '); in dm_parse_table_entry()
125 if (!field[i + 1]) in dm_parse_table_entry()
129 next = str_field_delimit(&field[i], ','); in dm_parse_table_entry()
137 if (kstrtoull(field[0], 0, &sp->sector_start)) in dm_parse_table_entry()
140 if (kstrtoull(field[1], 0, &sp->length)) in dm_parse_table_entry()
143 strscpy(sp->target_type, field[2], sizeof(sp->target_type)); in dm_parse_table_entry()
149 dev->target_args_array[n] = kstrndup(field[3], DM_MAX_STR_SIZE, in dm_parse_table_entry()
196 char *field[5]; in dm_parse_device_entry() local
200 field[0] = str; in dm_parse_device_entry()
202 for (i = 0; i < ARRAY_SIZE(field) - 1; i++) { in dm_parse_device_entry()
203 field[i+1] = str_field_delimit(&field[i], ','); in dm_parse_device_entry()
204 if (!field[i+1]) in dm_parse_device_entry()
208 next = str_field_delimit(&field[i], ';'); in dm_parse_device_entry()
211 strscpy(dev->dmi.name, field[0], sizeof(dev->dmi.name)); in dm_parse_device_entry()
213 strscpy(dev->dmi.uuid, field[1], sizeof(dev->dmi.uuid)); in dm_parse_device_entry()
215 if (strlen(field[2])) { in dm_parse_device_entry()
216 if (kstrtoull(field[2], 0, &dev->dmi.dev)) in dm_parse_device_entry()
221 if (!strcmp(field[3], "ro")) in dm_parse_device_entry()
223 else if (strcmp(field[3], "rw")) in dm_parse_device_entry()
226 if (dm_parse_table(dev, field[4])) in dm_parse_device_entry()