Lines Matching refs:gsl

101 	struct g_slice *gsl, *gsl2;  in g_slice_access()  local
108 gsl = &gsp->slices[pp->index]; in g_slice_access()
115 if (gsl->offset + gsl->length <= gsl2->offset) in g_slice_access()
117 if (gsl2->offset + gsl2->length <= gsl->offset) in g_slice_access()
160 struct g_slice *gsl; in g_slice_finish_hot() local
172 gsl = &gsp->slices[idx]; in g_slice_finish_hot()
179 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_finish_hot()
180 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_finish_hot()
182 bp2->bio_offset += gsl->offset; in g_slice_finish_hot()
217 struct g_slice *gsl; in g_slice_start() local
228 gsl = &gsp->slices[idx]; in g_slice_start()
233 if (bp->bio_offset > gsl->length) { in g_slice_start()
241 t = bp->bio_offset + gsl->offset; in g_slice_start()
279 if (bp2->bio_offset + bp2->bio_length > gsl->length) in g_slice_start()
280 bp2->bio_length = gsl->length - bp2->bio_offset; in g_slice_start()
282 bp2->bio_offset += gsl->offset; in g_slice_start()
355 struct g_slice *gsl; in g_slice_config() local
366 gsl = &gsp->slices[idx]; in g_slice_config()
367 pp = gsl->provider; in g_slice_config()
373 if (length < gsl->length) in g_slice_config()
375 if (offset != gsl->offset) in g_slice_config()
381 gsl->length = length; in g_slice_config()
382 gsl->offset = offset; in g_slice_config()
383 gsl->sectorsize = sectorsize; in g_slice_config()
390 gsl->provider = NULL; in g_slice_config()
399 g_resize_provider(pp, gsl->length); in g_slice_config()
422 pp->mediasize = gsl->length; in g_slice_config()
423 pp->sectorsize = gsl->sectorsize; in g_slice_config()
424 gsl->provider = pp; in g_slice_config()
448 struct g_slice_hot *gsl, *gsl2; in g_slice_conf_hot() local
464 gsl = gsp->hotspot; in g_slice_conf_hot()
471 g_free(gsl); in g_slice_conf_hot()
472 gsl = gsl2; in g_slice_conf_hot()
475 gsl[idx].offset = offset; in g_slice_conf_hot()
476 gsl[idx].length = length; in g_slice_conf_hot()
480 gsl[idx].ract = ract; in g_slice_conf_hot()
481 gsl[idx].dact = dact; in g_slice_conf_hot()
482 gsl[idx].wact = wact; in g_slice_conf_hot()