Lines Matching defs:rc
296 int rc, retries;
299 rc = usbvision_write_reg(usbvision, USBVISION_SER_ADRS, addr);
300 if (rc < 0)
301 return rc;
306 rc = usbvision_write_reg(usbvision, USBVISION_SER_CONT,
308 if (rc < 0)
309 return rc;
314 rc = usbvision_read_reg(usbvision, USBVISION_SER_CONT);
315 } while (rc > 0 && ((rc & 0x10) != 0)); /* Retry while busy */
316 if (rc < 0)
317 return rc;
320 if ((rc & 0x20) == 0) /* Ack? */
324 rc = usbvision_write_reg(usbvision, USBVISION_SER_CONT, 0x00);
325 if (rc < 0)
326 return rc;
361 int rc, retries;
374 rc = usb_control_msg(usbvision->dev,
382 if (rc < 0)
383 return rc;
385 rc = usbvision_write_reg(usbvision, USBVISION_SER_CONT,
387 if (rc < 0)
388 return rc;
392 rc = usbvision_read_reg(usbvision, USBVISION_SER_CONT);
393 } while (rc > 0 && ((rc & 0x10) != 0)); /* Retry while busy */
394 if (rc < 0)
395 return rc;
397 if ((rc & 0x20) == 0) /* Ack? */