Lines Matching refs:lc
32 struct linear_c *lc; in linear_ctr() local
42 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in linear_ctr()
43 if (lc == NULL) { in linear_ctr()
53 lc->start = tmp; in linear_ctr()
55 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev); in linear_ctr()
65 ti->private = lc; in linear_ctr()
69 kfree(lc); in linear_ctr()
75 struct linear_c *lc = ti->private; in linear_dtr() local
77 dm_put_device(ti, lc->dev); in linear_dtr()
78 kfree(lc); in linear_dtr()
83 struct linear_c *lc = ti->private; in linear_map_sector() local
85 return lc->start + dm_target_offset(ti, bi_sector); in linear_map_sector()
90 struct linear_c *lc = ti->private; in linear_map() local
92 bio_set_dev(bio, lc->dev->bdev); in linear_map()
101 struct linear_c *lc = ti->private; in linear_status() local
110 DMEMIT("%s %llu", lc->dev->name, (unsigned long long)lc->start); in linear_status()
115 DMEMIT(",device_name=%s,start=%llu;", lc->dev->name, in linear_status()
116 (unsigned long long)lc->start); in linear_status()
123 struct linear_c *lc = ti->private; in linear_prepare_ioctl() local
124 struct dm_dev *dev = lc->dev; in linear_prepare_ioctl()
131 if (lc->start || ti->len != bdev_nr_sectors(dev->bdev)) in linear_prepare_ioctl()
140 struct linear_c *lc = ti->private; in linear_report_zones() local
142 return dm_report_zones(lc->dev->bdev, lc->start, in linear_report_zones()
153 struct linear_c *lc = ti->private; in linear_iterate_devices() local
155 return fn(ti, lc->dev, lc->start, ti->len, data); in linear_iterate_devices()
161 struct linear_c *lc = ti->private; in linear_dax_pgoff() local
164 *pgoff = (get_start_sect(lc->dev->bdev) + sector) >> PAGE_SECTORS_SHIFT; in linear_dax_pgoff()
165 return lc->dev->dax_dev; in linear_dax_pgoff()