Lines Matching refs:device
167 if (!(devroot = config_find(root, "device"))) {
168 ALOGE("Could not find device section in config file '%s'", fn);
174 ALOGE("device path is requried");
177 dinfo->device = strdup(tmp);
232 if (dinfo->device)
233 free(dinfo->device);
283 if ((fd = open(dinfo->device, O_RDWR)) < 0) {
284 ALOGE("Cannot open device '%s' (errno=%d)", dinfo->device, errno);
289 ALOGE("Cannot stat file '%s', errno=%d.", dinfo->device, errno);
297 /* Verify that we can operate on the device that was requested.
314 ALOGE("Could not get block device size (errno=%d)", errno);
322 ALOGI("Requesting operation on a regular file, not block device.");
334 ALOGE("Device does not refer to a regular file or a block device!");
340 dinfo->device, disk_size, dinfo->num_lba, dinfo->sect_size);
465 printf("Device: %s\n", dinfo->device);