Lines Matching defs:rc
370 int rc;
397 rc = sg16(fd, SG_READ, is_dma(tf.command), &tf, data, data_bytes, timeout_secs);
398 if (rc == -1) {
403 if (rc == 0 || errno == EIO) {
408 return rc;
421 int rc;
481 rc = sg16(fd, rw, is_dma(tf.command), &tf, data, data_bytes, timeout_secs);
482 if (rc == -1) {
487 if (rc == 0 || errno == EIO) {
501 return rc;
511 rc = ioctl(fd, HDIO_DRIVE_TASKFILE, r);
514 fprintf(stderr, "rc=%d, errno=%d, returned ATA registers: ", rc, err);
530 if (rc == -1 && errno == EINVAL) {
534 return rc;