Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 4 of 4) sorted by relevance

/init/
Ddo_mounts_dm.c132 struct dm_device *dev = devices; in dm_setup_cleanup() local
134 while (dev) { in dm_setup_cleanup()
135 struct dm_device *old_dev = dev; in dm_setup_cleanup()
136 struct dm_setup_target *target = dev->target; in dm_setup_cleanup()
143 dev->target_count--; in dm_setup_cleanup()
145 BUG_ON(dev->target_count); in dm_setup_cleanup()
146 dev = dev->next; in dm_setup_cleanup()
152 static char * __init dm_parse_device(struct dm_device *dev, char *str) in dm_parse_device() argument
163 len = min(opt.len + 1, sizeof(dev->name)); in dm_parse_device()
164 strlcpy(dev->name, opt.start, len); /* includes nul */ in dm_parse_device()
[all …]
Ddo_mounts_md.c129 dev_t dev; in md_setup_drive() local
145 dev = MKDEV(mdp_major, minor << MdpMinorShift); in md_setup_drive()
147 dev = MKDEV(MD_MAJOR, minor); in md_setup_drive()
148 create_dev(name, dev); in md_setup_drive()
158 dev = name_to_dev_t(devname); in md_setup_drive()
164 dev = new_decode_dev(rdev); in md_setup_drive()
165 if (!dev) { in md_setup_drive()
170 devices[i] = dev; in md_setup_drive()
214 dev = devices[i]; in md_setup_drive()
215 if (!dev) in md_setup_drive()
[all …]
Ddo_mounts.c86 static int match_dev_by_uuid(struct device *dev, const void *data) in match_dev_by_uuid() argument
89 struct hd_struct *part = dev_to_part(dev); in match_dev_by_uuid()
120 struct device *dev = NULL; in devt_from_partuuid() local
149 dev = class_find_device(&block_class, NULL, &cmp, in devt_from_partuuid()
151 if (!dev) in devt_from_partuuid()
154 res = dev->devt; in devt_from_partuuid()
161 disk = part_to_disk(dev_to_part(dev)); in devt_from_partuuid()
162 part = disk_get_part(disk, dev_to_part(dev)->partno + offset); in devt_from_partuuid()
169 put_device(dev); in devt_from_partuuid()
Ddo_mounts.h16 static inline int create_dev(char *name, dev_t dev) in create_dev() argument
19 return sys_mknod(name, S_IFBLK|0600, new_encode_dev(dev)); in create_dev()