Lines Matching defs:tsc
111 dm_target_stripe_fini(dm_target_stripe_config_t *tsc)
115 if (tsc == NULL)
118 while ((tlc = TAILQ_FIRST(&tsc->stripe_devs)) != NULL) {
119 TAILQ_REMOVE(&tsc->stripe_devs, tlc, entries);
124 kmem_free(tsc, sizeof(*tsc));
139 dm_target_stripe_config_t *tsc;
151 tsc = kmem_alloc(sizeof(*tsc), KM_SLEEP);
154 TAILQ_INIT(&tsc->stripe_devs);
157 tsc->stripe_chunksize = atoi64(argv[1]);
158 tsc->stripe_num = (uint8_t) atoi64(argv[0]);
160 strpc = DM_STRIPE_DEV_OFFSET + (tsc->stripe_num * 2);
168 dm_target_stripe_fini(tsc);
175 TAILQ_INSERT_TAIL(&tsc->stripe_devs, tlc, entries);
178 table_en->target_config = tsc;
188 dm_target_stripe_config_t *tsc;
193 tsc = target_config;
199 ret = snprintf(ptr, len, "%d ", tsc->stripe_num);
204 TAILQ_FOREACH(tlc, &tsc->stripe_devs, entries) {
227 dm_target_stripe_config_t *tsc;
230 tsc = target_config;
236 tsc->stripe_num, tsc->stripe_chunksize);
238 TAILQ_FOREACH(tlc, &tsc->stripe_devs, entries) {
254 dm_target_stripe_config_t *tsc;
261 tsc = table_en->target_config;
262 if (tsc == NULL)
273 stripe = blkno / tsc->stripe_chunksize;
274 stripe_off = blkno % tsc->stripe_chunksize;
277 stripe_devnr = stripe % tsc->stripe_num;
278 stripe_blknr = stripe / tsc->stripe_num;
281 stripe_rest = tsc->stripe_chunksize - stripe_off;
288 nestbuf->b_blkno = stripe_blknr * tsc->stripe_chunksize + stripe_off;
290 tlc = TAILQ_FIRST(&tsc->stripe_devs);
317 dm_target_stripe_config_t *tsc;
320 tsc = table_en->target_config;
325 TAILQ_FOREACH(tlc, &tsc->stripe_devs, entries) {
368 dm_target_stripe_config_t *tsc;
373 tsc = table_en->target_config;
374 if (tsc != NULL) {
375 TAILQ_FOREACH(tlc, &tsc->stripe_devs, entries) {