Lines Matching defs:lc
32 struct linear_c *lc;
42 lc = kmalloc(sizeof(*lc), GFP_KERNEL);
43 if (lc == NULL) {
53 lc->start = tmp;
55 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 = 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);
101 struct linear_c *lc = ti->private;
110 DMEMIT("%s %llu", lc->dev->name, (unsigned long long)lc->start);
115 DMEMIT(",device_name=%s,start=%llu;", lc->dev->name,
116 (unsigned long long)lc->start);
123 struct linear_c *lc = ti->private;
124 struct dm_dev *dev = lc->dev;
131 if (lc->start || ti->len != bdev_nr_sectors(dev->bdev))
140 struct linear_c *lc = ti->private;
142 return dm_report_zones(lc->dev->bdev, lc->start,
153 struct linear_c *lc = ti->private;
155 return fn(ti, lc->dev, lc->start, ti->len, data);
161 struct linear_c *lc = ti->private;
164 *pgoff = (get_start_sect(lc->dev->bdev) + sector) >> PAGE_SECTORS_SHIFT;
165 return lc->dev->dax_dev;