Lines Matching refs:lc
30 struct linear_c *lc; in linear_ctr() local
40 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in linear_ctr()
41 if (lc == NULL) { in linear_ctr()
51 lc->start = tmp; in linear_ctr()
53 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev); in linear_ctr()
62 ti->private = lc; in linear_ctr()
66 kfree(lc); in linear_ctr()
72 struct linear_c *lc = (struct linear_c *) ti->private; in linear_dtr() local
74 dm_put_device(ti, lc->dev); in linear_dtr()
75 kfree(lc); in linear_dtr()
80 struct linear_c *lc = ti->private; in linear_map_sector() local
82 return lc->start + dm_target_offset(ti, bi_sector); in linear_map_sector()
87 struct linear_c *lc = ti->private; in linear_map_bio() local
89 bio->bi_bdev = lc->dev->bdev; in linear_map_bio()
105 struct linear_c *lc = (struct linear_c *) ti->private; in linear_status() local
113 snprintf(result, maxlen, "%s %llu", lc->dev->name, in linear_status()
114 (unsigned long long)lc->start); in linear_status()
122 struct linear_c *lc = (struct linear_c *) ti->private; in linear_prepare_ioctl() local
123 struct dm_dev *dev = lc->dev; in linear_prepare_ioctl()
130 if (lc->start || in linear_prepare_ioctl()
139 struct linear_c *lc = ti->private; in linear_iterate_devices() local
141 return fn(ti, lc->dev, lc->start, ti->len, data); in linear_iterate_devices()