Lines Matching refs:rc
53 int rc = 0;
55 rc = gpio_request(dev->sensor_reset, "mt9d112");
57 if (!rc) {
58 rc = gpio_direction_output(dev->sensor_reset, 0);
60 rc = gpio_direction_output(dev->sensor_reset, 1);
64 return rc;
90 int32_t rc = -EIO;
101 rc = mt9d112_i2c_txdata(saddr, buf, 4);
108 rc = mt9d112_i2c_txdata(saddr, buf, 2);
116 if (rc < 0)
121 return rc;
129 int32_t rc = -EIO;
132 rc = mt9d112_i2c_write(mt9d112_client->addr,
135 if (rc < 0)
142 return rc;
174 int32_t rc = 0;
187 rc = mt9d112_i2c_rxdata(saddr, buf, 2);
188 if (rc < 0)
189 return rc;
199 if (rc < 0)
202 return rc;
207 int32_t rc = 0;
208 rc = mt9d112_i2c_write_table(&mt9d112_regs.rftbl[0],
210 return rc;
217 long rc;
220 rc = mt9d112_i2c_write_table(&mt9d112_regs.plltbl[0],
223 if (rc < 0)
224 return rc;
231 rc = mt9d112_i2c_write(mt9d112_client->addr,
236 if (rc < 0)
237 return rc;
244 rc = mt9d112_i2c_write(mt9d112_client->addr,
249 if (rc < 0)
250 return rc;
254 rc =
259 if (rc < 0)
260 return rc;
262 rc = mt9d112_i2c_write_table(&mt9d112_regs.stbl[0],
264 if (rc < 0)
265 return rc;
267 rc = mt9d112_set_lens_roll_off();
268 if (rc < 0)
269 return rc;
277 long rc = 0;
281 rc =
284 if (rc < 0)
285 return rc;
287 rc =
290 if (rc < 0)
291 return rc;
293 rc =
296 if (rc < 0)
297 return rc;
299 rc =
302 if (rc < 0)
303 return rc;
305 rc =
308 if (rc < 0)
309 return rc;
311 rc =
314 if (rc < 0)
315 return rc;
319 rc =
322 if (rc < 0)
323 return rc;
325 rc =
328 if (rc < 0)
329 return rc;
331 rc =
334 if (rc < 0)
335 return rc;
342 rc =
345 if (rc < 0)
346 return rc;
348 rc =
351 if (rc < 0)
352 return rc;
354 rc =
357 if (rc < 0)
358 return rc;
362 rc =
365 if (rc < 0)
366 return rc;
368 rc =
371 if (rc < 0)
372 return rc;
386 long rc = 0;
408 rc = mt9d112_i2c_write(mt9d112_client->addr,
410 if (rc < 0)
411 return rc;
413 rc = mt9d112_i2c_write(mt9d112_client->addr,
415 if (rc < 0)
416 return rc;
422 rc = mt9d112_i2c_write(mt9d112_client->addr,
424 if (rc < 0)
425 return rc;
427 rc = mt9d112_i2c_write(mt9d112_client->addr,
429 if (rc < 0)
430 return rc;
436 rc = mt9d112_i2c_write(mt9d112_client->addr,
438 if (rc < 0)
439 return rc;
441 rc = mt9d112_i2c_write(mt9d112_client->addr,
443 if (rc < 0)
444 return rc;
450 rc = mt9d112_i2c_write(mt9d112_client->addr,
452 if (rc < 0)
453 return rc;
455 rc = mt9d112_i2c_write(mt9d112_client->addr,
457 if (rc < 0)
458 return rc;
464 rc = mt9d112_i2c_write(mt9d112_client->addr,
466 if (rc < 0)
467 return rc;
469 rc = mt9d112_i2c_write(mt9d112_client->addr,
471 if (rc < 0)
472 return rc;
483 rc = mt9d112_i2c_write(mt9d112_client->addr,
485 if (rc < 0)
486 return rc;
488 rc = mt9d112_i2c_write(mt9d112_client->addr,
490 if (rc < 0)
491 return rc;
498 rc = mt9d112_i2c_write(mt9d112_client->addr,
500 if (rc < 0)
501 return rc;
503 rc = mt9d112_i2c_write(mt9d112_client->addr,
506 return rc;
512 int rc = 0;
515 rc = mt9d112_reset(data);
516 if (rc < 0) {
525 rc = mt9d112_i2c_write(mt9d112_client->addr,
527 if (rc < 0)
531 rc = mt9d112_i2c_write(mt9d112_client->addr,
533 if (rc < 0)
539 rc = mt9d112_i2c_write(mt9d112_client->addr,
541 if (rc < 0)
544 rc = mt9d112_i2c_write(mt9d112_client->addr,
546 if (rc < 0)
550 rc = mt9d112_i2c_write(mt9d112_client->addr,
552 if (rc < 0)
559 rc = mt9d112_i2c_read(mt9d112_client->addr,
561 if (rc < 0)
568 rc = -EINVAL;
572 rc = mt9d112_reg_init();
573 if (rc < 0)
576 return rc;
579 return rc;
584 int rc = 0;
589 rc = -ENOMEM;
602 rc = mt9d112_sensor_init_probe(data);
603 if (rc < 0) {
609 return rc;
613 return rc;
626 long rc = 0;
640 rc = mt9d112_set_sensor_mode(
645 rc = mt9d112_set_effect(cfg_data.mode,
651 rc = -EINVAL;
657 return rc;
662 int rc = 0;
669 return rc;
675 int rc = 0;
677 rc = -ENOTSUPP;
685 rc = -ENOMEM;
701 return rc;
721 int rc = i2c_add_driver(&mt9d112_i2c_driver);
722 if (rc < 0 || mt9d112_client == NULL) {
723 rc = -ENOTSUPP;
731 rc = mt9d112_sensor_init_probe(info);
732 if (rc < 0)
741 return rc;