Lines Matching refs:devname
58 const char *devname; /* Device name */ member
77 #define DEVNAME(i) envdevices[(i)].devname
132 static int is_ubi_devname(const char *devname) in is_ubi_devname() argument
134 return !strncmp(devname, UBI_DEV_START, sizeof(UBI_DEV_START) - 1); in is_ubi_devname()
204 static int ubi_get_devnum_by_devname(const char *devname) in ubi_get_devnum_by_devname() argument
209 ret = sscanf(devname + sizeof(UBI_DEV_START) - 1, "%d", &devnum); in ubi_get_devnum_by_devname()
216 static const char *ubi_get_volume_devname(const char *devname, in ubi_get_volume_devname() argument
224 devnum = ubi_get_devnum_by_devname(devname); in ubi_get_volume_devname()
232 ret = asprintf(&volume_devname, "%s_%d", devname, volnum); in ubi_get_volume_devname()
238 devname, volname, volume_devname); in ubi_get_volume_devname()
246 char *devname = (char *)DEVNAME(dev_id); in ubi_check_dev() local
256 for (pname = devname; *pname != '\0'; pname++) { in ubi_check_dev()
266 volume_devname = ubi_get_volume_devname(devname, volname); in ubi_check_dev()
273 free(devname); in ubi_check_dev()
1765 char *devname; in get_config() local
1777 &devname, in get_config()
1784 DEVNAME(i) = devname; in get_config()