Lines Matching refs:dev
77 static int match_dev_by_uuid(struct device *dev, const void *data) in match_dev_by_uuid() argument
79 struct block_device *bdev = dev_to_bdev(dev); in match_dev_by_uuid()
104 struct device *dev = NULL; in devt_from_partuuid() local
127 dev = class_find_device(&block_class, NULL, &cmp, &match_dev_by_uuid); in devt_from_partuuid()
128 if (!dev) in devt_from_partuuid()
136 devt = part_devt(dev_to_disk(dev), in devt_from_partuuid()
137 dev_to_bdev(dev)->bd_partno + offset); in devt_from_partuuid()
139 devt = dev->devt; in devt_from_partuuid()
142 put_device(dev); in devt_from_partuuid()
161 static int match_dev_by_label(struct device *dev, const void *data) in match_dev_by_label() argument
163 struct block_device *bdev = dev_to_bdev(dev); in match_dev_by_label()
173 struct device *dev; in devt_from_partlabel() local
176 dev = class_find_device(&block_class, NULL, label, &match_dev_by_label); in devt_from_partlabel()
177 if (dev) { in devt_from_partlabel()
178 devt = dev->devt; in devt_from_partlabel()
179 put_device(dev); in devt_from_partlabel()
493 extern int cifs_root_data(char **dev, char **opts);