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], dm_table_get_mode(ti->table), &lc->dev)) {
57 ti->private = lc;
61 kfree(lc);
67 struct linear_c *lc = (struct linear_c *) ti->private;
69 dm_put_device(ti, lc->dev);
70 kfree(lc);
75 struct linear_c *lc = ti->private;
77 return lc->start + dm_target_offset(ti, bi_sector);
82 struct linear_c *lc = ti->private;
84 bio->bi_bdev = lc->dev->bdev;
100 struct linear_c *lc = (struct linear_c *) ti->private;
108 snprintf(result, maxlen, "%s %llu", lc->dev->name,
109 (unsigned long long)lc->start);
118 struct linear_c *lc = (struct linear_c *) ti->private;
119 return __blkdev_driver_ioctl(lc->dev->bdev, lc->dev->mode, cmd, arg);
125 struct linear_c *lc = ti->private;
126 struct request_queue *q = bdev_get_queue(lc->dev->bdev);
131 bvm->bi_bdev = lc->dev->bdev;
140 struct linear_c *lc = ti->private;
142 return fn(ti, lc->dev, lc->start, ti->len, data);