Lines Matching refs:retval
520 int retval = -1;
547 retval = spdk_read_sysfs_attribute(&str, "%s", sysfs_path);
549 if (retval < 0) {
550 SPDK_ERRLOG("Unable to open file %s. errno: %d\n", sysfs_path, retval);
570 retval = spdk_read_sysfs_attribute_uint32(&val, "/sys/block/%s/queue/max_open_zones", base);
571 if (retval < 0) {
572 SPDK_ERRLOG("Failed to get max open zones %d (%s)\n", retval, strerror(-retval));
577 retval = spdk_read_sysfs_attribute_uint32(&val, "/sys/block/%s/queue/max_active_zones", base);
578 if (retval < 0) {
579 SPDK_ERRLOG("Failed to get max active zones %d (%s)\n", retval, strerror(-retval));
583 retval = 0;
585 retval = 0; /* queue/zoned=none */
590 return retval;