Lines Matching refs:DEVNAME
79 #define DEVNAME(i) envdevices[(i)].devname macro
245 char *devname = (char *)DEVNAME(dev_id); in ubi_check_dev()
250 if (!is_ubi_devname(DEVNAME(dev_id))) in ubi_check_dev()
273 DEVNAME(dev_id) = volume_devname; in ubi_check_dev()
951 DEVNAME(dev), strerror(errno)); in flash_read_buf()
957 DEVNAME(dev), readlen, rc); in flash_read_buf()
963 DEVNAME(dev)); in flash_read_buf()
1116 DEVNAME(dev), strerror(errno)); in flash_write_buf()
1124 DEVNAME(dev), strerror(errno)); in flash_write_buf()
1134 DEVNAME(dev), strerror(errno)); in flash_write_buf()
1171 DEVNAME(dev)); in flash_flag_obsolete()
1206 DEVOFFSET(dev_target), DEVNAME(dev_target)); in flash_write()
1227 DEVOFFSET(dev_current), DEVNAME(dev_current)); in flash_write()
1255 char *dup_name = strdup(DEVNAME(dev_current)); in flash_open_tempfile()
1300 fd_target = open(DEVNAME(dev_target), O_RDWR); in flash_io_write()
1304 DEVNAME(dev_target), strerror(errno)); in flash_io_write()
1327 DEVNAME(dev_current), strerror(errno)); in flash_io_write()
1335 DEVNAME(dev_current), strerror(errno)); in flash_io_write()
1341 DEVNAME(dev_target), strerror(errno)); in flash_io_write()
1354 if (rename(target_temp, DEVNAME(dev_target))) { in flash_io_write()
1357 target_temp, DEVNAME(dev_target), in flash_io_write()
1382 fd_current = open(DEVNAME(dev_current), mode); in flash_io()
1386 DEVNAME(dev_current), strerror(errno)); in flash_io()
1399 DEVNAME(dev_current), strerror(errno)); in flash_io()
1596 fprintf(stderr, "Selected env in %s\n", DEVNAME(dev_current)); in fw_env_open()
1633 fd = open(DEVNAME(dev), O_RDONLY); in check_device_config()
1636 "Cannot open %s: %s\n", DEVNAME(dev), strerror(errno)); in check_device_config()
1642 fprintf(stderr, "Cannot stat the file %s\n", DEVNAME(dev)); in check_device_config()
1650 DEVNAME(dev)); in check_device_config()
1658 DEVNAME(dev)); in check_device_config()
1666 mtdinfo.type, DEVNAME(dev)); in check_device_config()
1692 DEVNAME(dev)); in check_device_config()
1700 DEVOFFSET(dev), DEVNAME(dev)); in check_device_config()
1743 DEVNAME(0) = DEVICE1_NAME; in parse_config()
1758 DEVNAME(1) = DEVICE2_NAME; in parse_config()
1824 DEVNAME(i) = devname; in get_config()