Lines Matching refs:field

117 	char *field[4];  in dm_parse_table_entry()  local
120 field[0] = str; in dm_parse_table_entry()
122 for (i = 0; i < ARRAY_SIZE(field) - 1; i++) { in dm_parse_table_entry()
123 field[i + 1] = str_field_delimit(&field[i], ' '); in dm_parse_table_entry()
124 if (!field[i + 1]) in dm_parse_table_entry()
128 next = str_field_delimit(&field[i], ','); in dm_parse_table_entry()
136 if (kstrtoull(field[0], 0, &sp->sector_start)) in dm_parse_table_entry()
139 if (kstrtoull(field[1], 0, &sp->length)) in dm_parse_table_entry()
142 strscpy(sp->target_type, field[2], sizeof(sp->target_type)); in dm_parse_table_entry()
148 dev->target_args_array[n] = kstrndup(field[3], DM_MAX_STR_SIZE, in dm_parse_table_entry()
195 char *field[5]; in dm_parse_device_entry() local
199 field[0] = str; in dm_parse_device_entry()
201 for (i = 0; i < ARRAY_SIZE(field) - 1; i++) { in dm_parse_device_entry()
202 field[i+1] = str_field_delimit(&field[i], ','); in dm_parse_device_entry()
203 if (!field[i+1]) in dm_parse_device_entry()
207 next = str_field_delimit(&field[i], ';'); in dm_parse_device_entry()
210 strscpy(dev->dmi.name, field[0], sizeof(dev->dmi.name)); in dm_parse_device_entry()
212 strscpy(dev->dmi.uuid, field[1], sizeof(dev->dmi.uuid)); in dm_parse_device_entry()
214 if (strlen(field[2])) { in dm_parse_device_entry()
215 if (kstrtoull(field[2], 0, &dev->dmi.dev) || in dm_parse_device_entry()
222 if (!strcmp(field[3], "ro")) in dm_parse_device_entry()
224 else if (strcmp(field[3], "rw")) in dm_parse_device_entry()
227 if (dm_parse_table(dev, field[4])) in dm_parse_device_entry()