Lines Matching refs:status

214 	int status = 0;
223 status = -EINVAL;
231 status = -EINVAL;
239 status = -EINVAL;
242 if (status)
244 return status;
250 int status = 0;
264 while ((total_len > 0) && (status == 0)) {
281 status = -EREMOTEIO;
291 status = -EINVAL;
294 if (status)
295 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
297 return status;
303 int status = 0, total_len = 0;
326 status = -EREMOTEIO;
330 return status;
332 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
333 return status;
339 int status = 0;
354 status = mxl692_i2c_read(dev, buffer, (u16)size) < 0 ? -EREMOTEIO : 0;
356 if (status == 0)
360 status = -EREMOTEIO;
365 if (status)
366 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
368 return status;
382 int status = 0, total_len = 0;
402 status = -EREMOTEIO;
406 if (status)
408 mxl692_opcode_string(tx_hdr->opcode), status);
409 return status;
415 int status = 0;
429 status = -EREMOTEIO;
435 status = -EREMOTEIO;
438 if (status)
439 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
440 return status;
450 int status = 0, timeout = 40;
461 status = -EINVAL;
486 status = mxl692_opwrite(dev, tx_buf,
488 if (status) {
489 status = -EREMOTEIO;
497 status = mxl692_opread(dev, rx_buf,
501 } while ((timeout > 0) && (status == 0) &&
505 if (timeout == 0 || status) {
506 dev_dbg(&dev->i2c_client->dev, "timeout=%d status=%d\n",
507 timeout, status);
508 status = -ETIMEDOUT;
512 if (rx_header->status) {
513 dev_dbg(&dev->i2c_client->dev, "rx header status code: %d\n", rx_header->status);
514 status = -EREMOTEIO;
529 status = -EREMOTEIO;
543 status = -EREMOTEIO;
552 status = -EREMOTEIO;
559 if (status)
560 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
563 return status;
569 int status = 0;
582 status = mxl692_validate_fw_header(dev, firmware_buf, buf_len);
583 if (status)
587 status = mxl692_write_fw_block(dev, firmware_buf, buf_len, &ix); /* DRAM */
588 if (status)
591 status = mxl692_write_fw_block(dev, firmware_buf, buf_len, &ix); /* IRAM */
592 if (status)
596 status = mxl692_memwrite(dev, 0x70000018, (u8 *)&reg_val, sizeof(u32));
597 if (status)
602 if (status == 0) {
606 status = mxl692_i2c_writeread(dev,
614 return status;
617 if (status)
618 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
619 return status;
624 int status = 0;
628 status = mxl692_i2c_writeread(dev, MXL_EAGLE_OPCODE_DEVICE_VERSION_GET,
633 if (status)
634 return status;
647 return status;
652 int status = 0;
658 status = mxl692_memwrite(dev, 0x80000100, (u8 *)&reg_val, sizeof(u32));
659 if (status)
663 status = mxl692_memread(dev, 0x70000188, (u8 *)&dev_type, sizeof(u32));
664 if (status)
671 if (status)
672 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
673 return status;
679 int status = 0;
685 status = mxl692_memread(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32));
686 if (status)
693 status = mxl692_memwrite(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32));
694 if (status)
698 status = mxl692_memread(dev, 0x90000018, (u8 *)&reg_val, sizeof(u32));
699 if (status)
704 status = mxl692_memwrite(dev, 0x90000018, (u8 *)&reg_val, sizeof(u32));
707 if (status)
708 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
709 return status;
715 int status = 0;
720 status = mxl692_memread(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32));
721 if (status)
731 status = mxl692_memwrite(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32));
732 if (status)
738 status = mxl692_memwrite(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32));
739 if (status)
745 status = mxl692_memwrite(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32));
746 if (status)
750 status = mxl692_memread(dev, 0x90000030, (u8 *)&reg_val1, sizeof(u32));
751 if (status)
759 status = mxl692_memwrite(dev, 0x90000030, (u8 *)&reg_val1, sizeof(u32));
760 if (status)
766 status = mxl692_memwrite(dev, 0x90000030, (u8 *)&reg_val1, sizeof(u32));
767 if (status)
771 status = mxl692_memread(dev, 0x9000002c, (u8 *)&reg_val, sizeof(u32));
772 if (status)
778 status = mxl692_memwrite(dev, 0x9000002c, (u8 *)&reg_val, sizeof(u32));
779 if (status)
784 status = mxl692_memread(dev, 0x70000010, (u8 *)&reg_val, sizeof(u32));
785 if (status)
790 status = mxl692_memwrite(dev, 0x70000010, (u8 *)&reg_val, sizeof(u32));
791 if (status)
794 status = mxl692_memread(dev, 0x70000018, (u8 *)&reg_val, sizeof(u32));
795 if (status)
800 status = mxl692_memwrite(dev, 0x70000018, (u8 *)&reg_val, sizeof(u32));
801 if (status)
804 status = mxl692_memread(dev, 0x9001014c, (u8 *)&reg_val, sizeof(u32));
805 if (status)
810 status = mxl692_memwrite(dev, 0x9001014c, (u8 *)&reg_val, sizeof(u32));
811 if (status)
816 status = mxl692_memwrite(dev, 0x9001014c, (u8 *)&reg_val, sizeof(u32));
817 if (status)
823 if (status)
824 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
825 return status;
831 int status = 0;
837 status = mxl692_i2c_writeread(dev,
843 if (status) {
844 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
845 return status;
850 return status;
858 int status = 0;
869 status = mxl692_reset(dev);
870 if (status)
875 status = mxl692_config_regulators(dev, MXL_EAGLE_POWER_SUPPLY_SOURCE_DUAL);
876 if (status)
884 status = mxl692_config_xtal(dev, &xtal_config);
885 if (status)
888 status = request_firmware(&firmware, MXL692_FIRMWARE, &client->dev);
889 if (status) {
895 status = mxl692_fwdownload(dev, firmware->data, firmware->size);
896 if (status)
901 status = mxl692_get_versions(dev);
902 if (status)
909 status = mxl692_powermode(dev, MXL_EAGLE_POWER_MODE_ACTIVE);
910 if (status)
931 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
932 return status;
950 int status = 0;
983 status = mxl692_i2c_writeread(dev,
989 if (status) {
991 "DEVICE_DEMODULATOR_TYPE_SET...FAIL err 0x%x\n", status);
1008 status = mxl692_i2c_writeread(dev,
1014 if (status)
1020 status = mxl692_i2c_writeread(dev,
1026 if (status)
1039 status = mxl692_i2c_writeread(dev,
1044 if (status)
1061 status = mxl692_i2c_writeread(dev,
1067 if (status)
1074 status = mxl692_i2c_writeread(dev,
1077 if (status)
1081 status = mxl692_i2c_writeread(dev,
1084 if (status)
1096 dev_dbg(&dev->i2c_client->dev, "err %d\n", status);
1097 return status;
1216 enum fe_status *status)
1225 *status = 0;
1241 *status |= FE_HAS_SIGNAL;
1242 *status |= FE_HAS_CARRIER;
1243 *status |= FE_HAS_VITERBI;
1244 *status |= FE_HAS_SYNC;
1245 *status |= FE_HAS_LOCK;
1259 *status |= FE_HAS_SIGNAL;
1260 *status |= FE_HAS_CARRIER;
1261 *status |= FE_HAS_VITERBI;
1262 *status |= FE_HAS_SYNC;
1263 *status |= FE_HAS_LOCK;
1274 if ((*status & FE_HAS_LOCK) == 0) {