• Home
  • Raw
  • Download

Lines Matching refs:status

223 	int status = 0;  in mxl692_validate_fw_header()  local
232 status = -EINVAL; in mxl692_validate_fw_header()
240 status = -EINVAL; in mxl692_validate_fw_header()
248 status = -EINVAL; in mxl692_validate_fw_header()
251 if (status) in mxl692_validate_fw_header()
253 return status; in mxl692_validate_fw_header()
259 int status = 0; in mxl692_write_fw_block() local
273 while ((total_len > 0) && (status == 0)) { in mxl692_write_fw_block()
290 status = -EREMOTEIO; in mxl692_write_fw_block()
300 status = -EINVAL; in mxl692_write_fw_block()
303 if (status) in mxl692_write_fw_block()
304 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_write_fw_block()
306 return status; in mxl692_write_fw_block()
312 int status = 0, total_len = 0; in mxl692_memwrite() local
335 status = -EREMOTEIO; in mxl692_memwrite()
339 return status; in mxl692_memwrite()
341 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_memwrite()
342 return status; in mxl692_memwrite()
348 int status = 0; in mxl692_memread() local
363 status = mxl692_i2c_read(dev, buffer, (u16)size) < 0 ? -EREMOTEIO : 0; in mxl692_memread()
365 if (status == 0) in mxl692_memread()
369 status = -EREMOTEIO; in mxl692_memread()
374 if (status) in mxl692_memread()
375 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_memread()
377 return status; in mxl692_memread()
391 int status = 0, total_len = 0; in mxl692_opwrite() local
411 status = -EREMOTEIO; in mxl692_opwrite()
415 if (status) in mxl692_opwrite()
417 mxl692_opcode_string(tx_hdr->opcode), status); in mxl692_opwrite()
418 return status; in mxl692_opwrite()
424 int status = 0; in mxl692_opread() local
438 status = -EREMOTEIO; in mxl692_opread()
444 status = -EREMOTEIO; in mxl692_opread()
447 if (status) in mxl692_opread()
448 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_opread()
449 return status; in mxl692_opread()
459 int status = 0, timeout = 40; in mxl692_i2c_writeread() local
470 status = -EINVAL; in mxl692_i2c_writeread()
495 status = mxl692_opwrite(dev, tx_buf, in mxl692_i2c_writeread()
497 if (status) { in mxl692_i2c_writeread()
498 status = -EREMOTEIO; in mxl692_i2c_writeread()
506 status = mxl692_opread(dev, rx_buf, in mxl692_i2c_writeread()
510 } while ((timeout > 0) && (status == 0) && in mxl692_i2c_writeread()
514 if (timeout == 0 || status) { in mxl692_i2c_writeread()
516 timeout, status); in mxl692_i2c_writeread()
517 status = -ETIMEDOUT; in mxl692_i2c_writeread()
521 if (rx_header->status) { in mxl692_i2c_writeread()
522 dev_dbg(&dev->i2c_client->dev, "rx header status code: %d\n", rx_header->status); in mxl692_i2c_writeread()
523 status = -EREMOTEIO; in mxl692_i2c_writeread()
538 status = -EREMOTEIO; in mxl692_i2c_writeread()
552 status = -EREMOTEIO; in mxl692_i2c_writeread()
561 status = -EREMOTEIO; in mxl692_i2c_writeread()
568 if (status) in mxl692_i2c_writeread()
569 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_i2c_writeread()
572 return status; in mxl692_i2c_writeread()
578 int status = 0; in mxl692_fwdownload() local
591 status = mxl692_validate_fw_header(dev, firmware_buf, buf_len); in mxl692_fwdownload()
592 if (status) in mxl692_fwdownload()
596 status = mxl692_write_fw_block(dev, firmware_buf, buf_len, &ix); /* DRAM */ in mxl692_fwdownload()
597 if (status) in mxl692_fwdownload()
600 status = mxl692_write_fw_block(dev, firmware_buf, buf_len, &ix); /* IRAM */ in mxl692_fwdownload()
601 if (status) in mxl692_fwdownload()
605 status = mxl692_memwrite(dev, 0x70000018, (u8 *)&reg_val, sizeof(u32)); in mxl692_fwdownload()
606 if (status) in mxl692_fwdownload()
611 if (status == 0) { in mxl692_fwdownload()
615 status = mxl692_i2c_writeread(dev, in mxl692_fwdownload()
623 return status; in mxl692_fwdownload()
626 if (status) in mxl692_fwdownload()
627 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_fwdownload()
628 return status; in mxl692_fwdownload()
633 int status = 0; in mxl692_get_versions() local
637 status = mxl692_i2c_writeread(dev, MXL_EAGLE_OPCODE_DEVICE_VERSION_GET, in mxl692_get_versions()
642 if (status) in mxl692_get_versions()
643 return status; in mxl692_get_versions()
656 return status; in mxl692_get_versions()
661 int status = 0; in mxl692_reset() local
667 status = mxl692_memwrite(dev, 0x80000100, (u8 *)&reg_val, sizeof(u32)); in mxl692_reset()
668 if (status) in mxl692_reset()
672 status = mxl692_memread(dev, 0x70000188, (u8 *)&dev_type, sizeof(u32)); in mxl692_reset()
673 if (status) in mxl692_reset()
680 if (status) in mxl692_reset()
681 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_reset()
682 return status; in mxl692_reset()
688 int status = 0; in mxl692_config_regulators() local
694 status = mxl692_memread(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_regulators()
695 if (status) in mxl692_config_regulators()
702 status = mxl692_memwrite(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_regulators()
703 if (status) in mxl692_config_regulators()
707 status = mxl692_memread(dev, 0x90000018, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_regulators()
708 if (status) in mxl692_config_regulators()
713 status = mxl692_memwrite(dev, 0x90000018, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_regulators()
716 if (status) in mxl692_config_regulators()
717 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_config_regulators()
718 return status; in mxl692_config_regulators()
724 int status = 0; in mxl692_config_xtal() local
729 status = mxl692_memread(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
730 if (status) in mxl692_config_xtal()
740 status = mxl692_memwrite(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
741 if (status) in mxl692_config_xtal()
747 status = mxl692_memwrite(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
748 if (status) in mxl692_config_xtal()
754 status = mxl692_memwrite(dev, 0x90000000, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
755 if (status) in mxl692_config_xtal()
759 status = mxl692_memread(dev, 0x90000030, (u8 *)&reg_val1, sizeof(u32)); in mxl692_config_xtal()
760 if (status) in mxl692_config_xtal()
768 status = mxl692_memwrite(dev, 0x90000030, (u8 *)&reg_val1, sizeof(u32)); in mxl692_config_xtal()
769 if (status) in mxl692_config_xtal()
775 status = mxl692_memwrite(dev, 0x90000030, (u8 *)&reg_val1, sizeof(u32)); in mxl692_config_xtal()
776 if (status) in mxl692_config_xtal()
780 status = mxl692_memread(dev, 0x9000002c, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
781 if (status) in mxl692_config_xtal()
787 status = mxl692_memwrite(dev, 0x9000002c, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
788 if (status) in mxl692_config_xtal()
793 status = mxl692_memread(dev, 0x70000010, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
794 if (status) in mxl692_config_xtal()
799 status = mxl692_memwrite(dev, 0x70000010, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
800 if (status) in mxl692_config_xtal()
803 status = mxl692_memread(dev, 0x70000018, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
804 if (status) in mxl692_config_xtal()
809 status = mxl692_memwrite(dev, 0x70000018, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
810 if (status) in mxl692_config_xtal()
813 status = mxl692_memread(dev, 0x9001014c, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
814 if (status) in mxl692_config_xtal()
819 status = mxl692_memwrite(dev, 0x9001014c, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
820 if (status) in mxl692_config_xtal()
825 status = mxl692_memwrite(dev, 0x9001014c, (u8 *)&reg_val, sizeof(u32)); in mxl692_config_xtal()
826 if (status) in mxl692_config_xtal()
832 if (status) in mxl692_config_xtal()
833 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_config_xtal()
834 return status; in mxl692_config_xtal()
840 int status = 0; in mxl692_powermode() local
846 status = mxl692_i2c_writeread(dev, in mxl692_powermode()
852 if (status) { in mxl692_powermode()
853 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_powermode()
854 return status; in mxl692_powermode()
859 return status; in mxl692_powermode()
867 int status = 0; in mxl692_init() local
878 status = mxl692_reset(dev); in mxl692_init()
879 if (status) in mxl692_init()
884 status = mxl692_config_regulators(dev, MXL_EAGLE_POWER_SUPPLY_SOURCE_DUAL); in mxl692_init()
885 if (status) in mxl692_init()
893 status = mxl692_config_xtal(dev, &xtal_config); in mxl692_init()
894 if (status) in mxl692_init()
897 status = request_firmware(&firmware, MXL692_FIRMWARE, &client->dev); in mxl692_init()
898 if (status) { in mxl692_init()
904 status = mxl692_fwdownload(dev, firmware->data, firmware->size); in mxl692_init()
905 if (status) in mxl692_init()
910 status = mxl692_get_versions(dev); in mxl692_init()
911 if (status) in mxl692_init()
918 status = mxl692_powermode(dev, MXL_EAGLE_POWER_MODE_ACTIVE); in mxl692_init()
919 if (status) in mxl692_init()
940 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_init()
941 return status; in mxl692_init()
959 int status = 0; in mxl692_set_frontend() local
992 status = mxl692_i2c_writeread(dev, in mxl692_set_frontend()
998 if (status) { in mxl692_set_frontend()
1000 "DEVICE_DEMODULATOR_TYPE_SET...FAIL err 0x%x\n", status); in mxl692_set_frontend()
1017 status = mxl692_i2c_writeread(dev, in mxl692_set_frontend()
1023 if (status) in mxl692_set_frontend()
1029 status = mxl692_i2c_writeread(dev, in mxl692_set_frontend()
1035 if (status) in mxl692_set_frontend()
1048 status = mxl692_i2c_writeread(dev, in mxl692_set_frontend()
1053 if (status) in mxl692_set_frontend()
1070 status = mxl692_i2c_writeread(dev, in mxl692_set_frontend()
1076 if (status) in mxl692_set_frontend()
1083 status = mxl692_i2c_writeread(dev, in mxl692_set_frontend()
1086 if (status) in mxl692_set_frontend()
1090 status = mxl692_i2c_writeread(dev, in mxl692_set_frontend()
1093 if (status) in mxl692_set_frontend()
1105 dev_dbg(&dev->i2c_client->dev, "err %d\n", status); in mxl692_set_frontend()
1106 return status; in mxl692_set_frontend()
1225 enum fe_status *status) in mxl692_read_status() argument
1234 *status = 0; in mxl692_read_status()
1250 *status |= FE_HAS_SIGNAL; in mxl692_read_status()
1251 *status |= FE_HAS_CARRIER; in mxl692_read_status()
1252 *status |= FE_HAS_VITERBI; in mxl692_read_status()
1253 *status |= FE_HAS_SYNC; in mxl692_read_status()
1254 *status |= FE_HAS_LOCK; in mxl692_read_status()
1268 *status |= FE_HAS_SIGNAL; in mxl692_read_status()
1269 *status |= FE_HAS_CARRIER; in mxl692_read_status()
1270 *status |= FE_HAS_VITERBI; in mxl692_read_status()
1271 *status |= FE_HAS_SYNC; in mxl692_read_status()
1272 *status |= FE_HAS_LOCK; in mxl692_read_status()
1283 if ((*status & FE_HAS_LOCK) == 0) { in mxl692_read_status()