Lines Matching refs:lc
30 struct linear_c *lc;
38 lc = kmalloc(sizeof(*lc), GFP_KERNEL);
39 if (lc == NULL) {
48 lc->start = tmp;
50 if (dm_get_device(ti, argv[0], lc->start, ti->len,
51 dm_table_get_mode(ti->table), &lc->dev)) {
56 ti->private = lc;
60 kfree(lc);
66 struct linear_c *lc = (struct linear_c *) ti->private;
68 dm_put_device(ti, lc->dev);
69 kfree(lc);
75 struct linear_c *lc = (struct linear_c *) ti->private;
77 bio->bi_bdev = lc->dev->bdev;
78 bio->bi_sector = lc->start + (bio->bi_sector - ti->begin);
86 struct linear_c *lc = (struct linear_c *) ti->private;
94 snprintf(result, maxlen, "%s %llu", lc->dev->name,
95 (unsigned long long)lc->start);
105 struct linear_c *lc = (struct linear_c *) ti->private;
106 struct block_device *bdev = lc->dev->bdev;
110 fake_file.f_mode = lc->dev->mode;