Lines Matching refs:spec
1266 struct dm_target_spec *spec;
1293 spec = (struct dm_target_spec *) outptr;
1295 spec->status = 0;
1296 spec->sector_start = ti->begin;
1297 spec->length = ti->len;
1298 strncpy(spec->target_type, ti->type->name,
1299 sizeof(spec->target_type) - 1);
1326 spec->next = outptr - outbuf;
1399 struct dm_target_spec **spec, char **target_params)
1412 * There must be room for both the next target spec and the
1416 DMERR("Target spec extends beyond end of parameters");
1426 *spec = (struct dm_target_spec *) ((unsigned char *) last + next);
1427 *target_params = (char *) (*spec + 1);
1437 struct dm_target_spec *spec = (struct dm_target_spec *) param;
1452 DMERR("%s: next target spec (offset %u) overlaps %s",
1457 r = next_target(spec, next, end, &spec, &target_params);
1470 min_size = (size_t)(nul_terminator - (const char *)spec) + 1;
1472 r = dm_table_add_target(table, spec->target_type,
1473 (sector_t) spec->sector_start,
1474 (sector_t) spec->length,
1481 next = spec->next;