• Home
  • Raw
  • Download

Lines Matching refs:status

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