Lines Matching defs:rc
142 int i, rc;
155 rc = wait_event_interruptible_timeout(dev->write_wait,
160 if (rc > 0)
162 else if (rc == 0)
164 else if (rc < 0)
167 return rc;
174 int rc;
176 rc = wait_for_bulk_out_ready(dev);
177 if (rc <= 0)
178 return rc;
181 rc = wait_for_bulk_out_ready(dev);
182 if (rc <= 0)
183 return rc;
190 int i, rc;
203 rc = wait_event_interruptible_timeout(dev->read_wait,
207 if (rc > 0)
209 else if (rc == 0)
211 else if (rc < 0)
214 return rc;
225 int rc;
246 rc = wait_for_bulk_in_ready(dev);
247 if (rc <= 0) {
248 DEBUGP(5, dev, "wait_for_bulk_in_ready rc=%.2x\n", rc);
250 if (rc == -ERESTARTSYS)
251 return rc;
273 rc = wait_for_bulk_in_ready(dev);
274 if (rc <= 0) {
275 DEBUGP(5, dev, "wait_for_bulk_in_ready rc=%.2x\n", rc);
277 if (rc == -ERESTARTSYS)
278 return rc;
294 rc = wait_for_bulk_in_ready(dev);
295 if (rc <= 0) {
296 DEBUGP(5, dev, "wait_for_bulk_in_ready rc=%.2x\n", rc);
298 if (rc == -ERESTARTSYS)
299 return rc;
303 rc = write_sync_reg(SCR_READER_TO_HOST_DONE, dev);
304 if (rc <= 0) {
305 DEBUGP(5, dev, "write_sync_reg c=%.2x\n", rc);
307 if (rc == -ERESTARTSYS)
308 return rc;
324 ssize_t rc;
377 rc = write_sync_reg(SCR_HOST_TO_READER_START, dev);
378 if (rc <= 0) {
379 DEBUGP(5, dev, "write_sync_reg c=%.2Zx\n", rc);
381 if (rc == -ERESTARTSYS)
382 return rc;
390 rc = wait_for_bulk_out_ready(dev);
391 if (rc <= 0) {
392 DEBUGP(5, dev, "wait_for_bulk_out_ready rc=%.2Zx\n",
393 rc);
395 if (rc == -ERESTARTSYS)
396 return rc;
405 rc = write_sync_reg(SCR_HOST_TO_READER_DONE, dev);
407 if (rc <= 0) {
408 DEBUGP(5, dev, "write_sync_reg c=%.2Zx\n", rc);
410 if (rc == -ERESTARTSYS)
411 return rc;
525 int rc;
534 rc = pcmcia_request_io(p_dev);
537 "pcmcia_request_io returned 0x%x\n", rc);
538 return rc;
675 int rc;
690 rc = pcmcia_register_driver(&reader_driver);
691 if (rc < 0) {
694 return rc;