Lines Matching defs:lc
31 struct linear_c *lc;
41 lc = kmalloc(sizeof(*lc), GFP_KERNEL);
42 if (lc == NULL) {
52 lc->start = tmp;
54 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev);
65 ti->private = lc;
69 kfree(lc);
75 struct linear_c *lc = (struct linear_c *) ti->private;
77 dm_put_device(ti, lc->dev);
78 kfree(lc);
83 struct linear_c *lc = ti->private;
85 return lc->start + dm_target_offset(ti, bi_sector);
90 struct linear_c *lc = ti->private;
92 bio_set_dev(bio, lc->dev->bdev);
108 struct linear_c *lc = (struct linear_c *) ti->private;
116 snprintf(result, maxlen, "%s %llu", lc->dev->name,
117 (unsigned long long)lc->start);
124 struct linear_c *lc = (struct linear_c *) ti->private;
125 struct dm_dev *dev = lc->dev;
132 if (lc->start ||
142 struct linear_c *lc = ti->private;
145 args->start = lc->start;
146 return blkdev_report_zones(lc->dev->bdev, sector, nr_zones,
154 struct linear_c *lc = ti->private;
156 return fn(ti, lc->dev, lc->start, ti->len, data);
164 struct linear_c *lc = ti->private;
165 struct block_device *bdev = lc->dev->bdev;
166 struct dax_device *dax_dev = lc->dev->dax_dev;
179 struct linear_c *lc = ti->private;
180 struct block_device *bdev = lc->dev->bdev;
181 struct dax_device *dax_dev = lc->dev->dax_dev;
193 struct linear_c *lc = ti->private;
194 struct block_device *bdev = lc->dev->bdev;
195 struct dax_device *dax_dev = lc->dev->dax_dev;
208 struct linear_c *lc = ti->private;
209 struct block_device *bdev = lc->dev->bdev;
210 struct dax_device *dax_dev = lc->dev->dax_dev;