Lines Matching +full:0 +full:x80000100
36 int ret = 0; in mxl692_i2c_write()
39 .flags = 0, in mxl692_i2c_write()
53 int ret = 0; in mxl692_i2c_read()
72 for (i = 0; i < (size & ~3); i += 4) { in convert_endian()
73 d[i + 0] ^= d[i + 3]; in convert_endian()
74 d[i + 3] ^= d[i + 0]; in convert_endian()
75 d[i + 0] ^= d[i + 3]; in convert_endian()
83 case 0: in convert_endian()
88 d[i + 0] ^= d[i + 1]; in convert_endian()
89 d[i + 1] ^= d[i + 0]; in convert_endian()
90 d[i + 0] ^= d[i + 1]; in convert_endian()
94 d[i + 0] ^= d[i + 2]; in convert_endian()
95 d[i + 2] ^= d[i + 0]; in convert_endian()
96 d[i + 0] ^= d[i + 2]; in convert_endian()
104 int i, count = 0; in convert_endian_n()
106 for (i = 0; i < n; i += size) in convert_endian_n()
197 u32 cur_cksum = 0; in mxl692_checksum()
203 for (ix = 0; ix < div_size; ix++) in mxl692_checksum()
206 cur_cksum ^= 0xDEADBEEF; in mxl692_checksum()
214 int status = 0; in mxl692_validate_fw_header()
217 u8 temp_cksum = 0; in mxl692_validate_fw_header()
219 0x4D, 0x31, 0x10, 0x02, 0x40, 0x00, 0x00, 0x80 in mxl692_validate_fw_header()
222 if (memcmp(buffer, fw_hdr, 8) != 0) { in mxl692_validate_fw_header()
250 int status = 0; in mxl692_write_fw_block()
251 u32 ix = 0, total_len = 0, addr = 0, chunk_len = 0, prevchunk_len = 0; in mxl692_write_fw_block()
257 if (buffer[ix] == 0x53) { in mxl692_write_fw_block()
264 while ((total_len > 0) && (status == 0)) { in mxl692_write_fw_block()
268 *plocal_buf++ = 0xFC; in mxl692_write_fw_block()
280 (chunk_len + MXL_EAGLE_I2C_MHEADER_SIZE)) < 0) { in mxl692_write_fw_block()
303 int status = 0, total_len = 0; in mxl692_memwrite()
314 *plocal_buf++ = 0xFC; in mxl692_memwrite()
325 (total_len + MXL_EAGLE_I2C_MHEADER_SIZE)) < 0) { in mxl692_memwrite()
339 int status = 0; in mxl692_memread()
344 *plocal_buf++ = 0xFB; in mxl692_memread()
352 if (mxl692_i2c_write(dev, local_buf, MXL_EAGLE_I2C_MHEADER_SIZE) > 0) { in mxl692_memread()
354 status = mxl692_i2c_read(dev, buffer, (u16)size) < 0 ? -EREMOTEIO : 0; in mxl692_memread()
356 if (status == 0) in mxl692_memread()
382 int status = 0, total_len = 0; in mxl692_opwrite()
394 *plocal_buf++ = 0xFE; in mxl692_opwrite()
401 (total_len + MXL_EAGLE_I2C_PHEADER_SIZE)) < 0) { in mxl692_opwrite()
415 int status = 0; in mxl692_opread()
416 u32 ix = 0; in mxl692_opread()
419 local_buf[0] = 0xFD; in mxl692_opread()
420 local_buf[1] = 0; in mxl692_opread()
422 if (mxl692_i2c_write(dev, local_buf, MXL_EAGLE_I2C_PHEADER_SIZE) > 0) { in mxl692_opread()
426 for (ix = 0; ix < size; ix += 4) { in mxl692_opread()
427 if (mxl692_i2c_read(dev, buffer + ix, 4) < 0) { in mxl692_opread()
450 int status = 0, timeout = 40; in mxl692_i2c_writeread()
453 u32 resp_checksum = 0, resp_checksum_tmp = 0; in mxl692_i2c_writeread()
469 tx_header->checksum = 0; in mxl692_i2c_writeread()
471 if (dev->seqnum == 0) in mxl692_i2c_writeread()
474 if (tx_payload && tx_payload_size > 0) in mxl692_i2c_writeread()
479 tx_header->checksum = 0; in mxl692_i2c_writeread()
501 } while ((timeout > 0) && (status == 0) && in mxl692_i2c_writeread()
502 (rx_header->seqnum == 0) && in mxl692_i2c_writeread()
503 (rx_header->checksum == 0)); in mxl692_i2c_writeread()
505 if (timeout == 0 || status) { in mxl692_i2c_writeread()
522 rx_header->seqnum != tx_header->seqnum ? "X" : "0", in mxl692_i2c_writeread()
523 rx_header->opcode != tx_header->opcode ? "X" : "0", in mxl692_i2c_writeread()
524 rx_header->payload_size != rx_payload_expected ? "X" : "0"); in mxl692_i2c_writeread()
534 rx_header->checksum = 0; in mxl692_i2c_writeread()
549 if (rx_header->payload_size > 0) { in mxl692_i2c_writeread()
569 int status = 0; in mxl692_fwdownload()
570 u32 ix, reg_val = 0x1; in mxl692_fwdownload()
596 status = mxl692_memwrite(dev, 0x70000018, (u8 *)®_val, sizeof(u32)); in mxl692_fwdownload()
602 if (status == 0) { in mxl692_fwdownload()
609 0, in mxl692_fwdownload()
624 int status = 0; in mxl692_get_versions()
630 0, in mxl692_get_versions()
641 dev_ver.firmware_ver[0], in mxl692_get_versions()
652 int status = 0; in mxl692_reset()
653 u32 dev_type = MXL_EAGLE_DEVICE_MAX, reg_val = 0x2; in mxl692_reset()
658 status = mxl692_memwrite(dev, 0x80000100, (u8 *)®_val, sizeof(u32)); in mxl692_reset()
663 status = mxl692_memread(dev, 0x70000188, (u8 *)&dev_type, sizeof(u32)); in mxl692_reset()
679 int status = 0; in mxl692_config_regulators()
685 status = mxl692_memread(dev, 0x90000000, (u8 *)®_val, sizeof(u32)); in mxl692_config_regulators()
689 reg_val &= 0x00FFFFFF; in mxl692_config_regulators()
691 0x14000000 : 0x10000000; in mxl692_config_regulators()
693 status = mxl692_memwrite(dev, 0x90000000, (u8 *)®_val, sizeof(u32)); in mxl692_config_regulators()
698 status = mxl692_memread(dev, 0x90000018, (u8 *)®_val, sizeof(u32)); in mxl692_config_regulators()
702 reg_val |= 0x800; in mxl692_config_regulators()
704 status = mxl692_memwrite(dev, 0x90000018, (u8 *)®_val, sizeof(u32)); in mxl692_config_regulators()
715 int status = 0; in mxl692_config_xtal()
720 status = mxl692_memread(dev, 0x90000000, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
725 reg_val &= 0xFFFFFFE0; in mxl692_config_xtal()
729 reg_val = dev_xtal->clk_out_enable ? (reg_val | 0x0100) : (reg_val & 0xFFFFFEFF); in mxl692_config_xtal()
731 status = mxl692_memwrite(dev, 0x90000000, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
736 reg_val = dev_xtal->clk_out_div_enable ? (reg_val | 0x0200) : (reg_val & 0xFFFFFDFF); in mxl692_config_xtal()
738 status = mxl692_memwrite(dev, 0x90000000, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
743 reg_val = dev_xtal->xtal_sharing_enable ? (reg_val | 0x010400) : (reg_val & 0xFFFEFBFF); in mxl692_config_xtal()
745 status = mxl692_memwrite(dev, 0x90000000, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
750 status = mxl692_memread(dev, 0x90000030, (u8 *)®_val1, sizeof(u32)); in mxl692_config_xtal()
756 reg_val1 &= 0xFFFFFFFD; in mxl692_config_xtal()
757 reg_val1 |= 0x30; in mxl692_config_xtal()
759 status = mxl692_memwrite(dev, 0x90000030, (u8 *)®_val1, sizeof(u32)); in mxl692_config_xtal()
764 reg_val1 |= 0x2; in mxl692_config_xtal()
766 status = mxl692_memwrite(dev, 0x90000030, (u8 *)®_val1, sizeof(u32)); in mxl692_config_xtal()
771 status = mxl692_memread(dev, 0x9000002c, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
775 reg_val &= 0xC0FFFFFF; in mxl692_config_xtal()
776 reg_val |= 0xA000000; in mxl692_config_xtal()
778 status = mxl692_memwrite(dev, 0x9000002c, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
784 status = mxl692_memread(dev, 0x70000010, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
788 reg_val |= 0x8; in mxl692_config_xtal()
790 status = mxl692_memwrite(dev, 0x70000010, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
794 status = mxl692_memread(dev, 0x70000018, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
798 reg_val |= 0x10; in mxl692_config_xtal()
800 status = mxl692_memwrite(dev, 0x70000018, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
804 status = mxl692_memread(dev, 0x9001014c, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
808 reg_val &= 0xFFFFEFFF; in mxl692_config_xtal()
810 status = mxl692_memwrite(dev, 0x9001014c, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
814 reg_val |= 0x1000; in mxl692_config_xtal()
816 status = mxl692_memwrite(dev, 0x9001014c, (u8 *)®_val, sizeof(u32)); in mxl692_config_xtal()
831 int status = 0; in mxl692_powermode()
842 0); in mxl692_powermode()
858 int status = 0; in mxl692_init()
880 xtal_config.clk_out_div_enable = 0; in mxl692_init()
881 xtal_config.clk_out_enable = 0; in mxl692_init()
882 xtal_config.xtal_calibration_enable = 0; in mxl692_init()
918 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl692_init()
920 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl692_init()
922 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl692_init()
924 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl692_init()
927 return 0; in mxl692_init()
942 return 0; in mxl692_sleep()
950 int status = 0; in mxl692_set_frontend()
956 u8 op_param = 0; in mxl692_set_frontend()
976 return 0; in mxl692_set_frontend()
988 0); in mxl692_set_frontend()
991 "DEVICE_DEMODULATOR_TYPE_SET...FAIL err 0x%x\n", status); in mxl692_set_frontend()
997 mpeg_params.mpeg_parallel = 0; in mxl692_set_frontend()
1003 mpeg_params.mpeg3wire_mode_enable = 0; in mxl692_set_frontend()
1013 0); in mxl692_set_frontend()
1025 0); in mxl692_set_frontend()
1043 NULL, 0); in mxl692_set_frontend()
1066 0); in mxl692_set_frontend()
1076 NULL, 0, NULL, 0); in mxl692_set_frontend()
1083 NULL, 0, NULL, 0); in mxl692_set_frontend()
1094 return 0; in mxl692_set_frontend()
1108 return 0; in mxl692_get_frontend()
1119 int mxl_status = 0; in mxl692_read_snr()
1121 *snr = 0; in mxl692_read_snr()
1133 0, in mxl692_read_snr()
1138 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mxl692_read_snr()
1139 c->cnr.stat[0].svalue = *snr; in mxl692_read_snr()
1146 0, in mxl692_read_snr()
1169 int mxl_status = 0; in mxl692_read_ber_ucb()
1181 0, in mxl692_read_ber_ucb()
1185 if (atsc_errors->error_packets == 0) in mxl692_read_ber_ucb()
1186 utmp = 0; in mxl692_read_ber_ucb()
1191 c->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in mxl692_read_ber_ucb()
1192 c->post_bit_error.stat[0].uvalue += atsc_errors->error_bytes; in mxl692_read_ber_ucb()
1193 c->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in mxl692_read_ber_ucb()
1194 c->post_bit_count.stat[0].uvalue += utmp; in mxl692_read_ber_ucb()
1196 c->block_error.stat[0].scale = FE_SCALE_COUNTER; in mxl692_read_ber_ucb()
1197 c->block_error.stat[0].uvalue += atsc_errors->error_packets; in mxl692_read_ber_ucb()
1200 c->post_bit_count.stat[0].uvalue, c->block_error.stat[0].uvalue); in mxl692_read_ber_ucb()
1224 int mxl_status = 0; in mxl692_read_status()
1225 *status = 0; in mxl692_read_status()
1237 0, in mxl692_read_status()
1247 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mxl692_read_status()
1248 c->cnr.stat[0].svalue = atsc_status->snr_db_tenths / 10; in mxl692_read_status()
1255 0, in mxl692_read_status()
1265 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mxl692_read_status()
1266 c->cnr.stat[0].svalue = qam_status->snr_db_tenths / 10; in mxl692_read_status()
1274 if ((*status & FE_HAS_LOCK) == 0) { in mxl692_read_status()
1277 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl692_read_status()
1278 c->block_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl692_read_status()
1279 c->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl692_read_status()
1280 c->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl692_read_status()
1281 return 0; in mxl692_read_status()
1315 int ret = 0; in mxl692_probe()
1333 return 0; in mxl692_probe()