• Home
  • Raw
  • Download

Lines Matching refs:stat

159 	int stat;  in read_register_unlocked()  local
166 stat = i2cwrite(state, data, in read_register_unlocked()
168 if (stat) in read_register_unlocked()
170 if (!stat) in read_register_unlocked()
171 stat = i2cread(state, (u8 *) val, in read_register_unlocked()
174 if (stat) in read_register_unlocked()
176 return stat; in read_register_unlocked()
184 int stat; in send_command() local
205 stat = i2cwrite(state, buf, size); in send_command()
207 return stat; in send_command()
212 int stat; in write_register() local
219 stat = i2cwrite(state, data, sizeof(data)); in write_register()
221 if (stat) in write_register()
223 return stat; in write_register()
229 int stat; in write_firmware_block() local
240 stat = i2cwrite(state, buf, in write_firmware_block()
244 if (stat) in write_firmware_block()
246 return stat; in write_firmware_block()
251 int stat; in read_register() local
259 stat = i2cwrite(state, data, in read_register()
261 if (stat) in read_register()
263 if (!stat) in read_register()
264 stat = i2cread(state, (u8 *) val, in read_register()
268 if (stat) in read_register()
270 return stat; in read_register()
275 int stat; in read_register_block() local
286 stat = i2cwrite(state, buf, in read_register_block()
288 if (!stat) { in read_register_block()
289 stat = i2cread(state, data, size); in read_register_block()
293 return stat; in read_register_block()
300 int stat; in read_by_mnemonic() local
302 stat = read_register(state, reg, &data); in read_by_mnemonic()
303 if (stat) in read_by_mnemonic()
304 return stat; in read_by_mnemonic()
317 int stat; in update_by_mnemonic() local
319 stat = read_register(state, reg, &data); in update_by_mnemonic()
320 if (stat) in update_by_mnemonic()
321 return stat; in update_by_mnemonic()
324 stat = write_register(state, reg, data); in update_by_mnemonic()
325 return stat; in update_by_mnemonic()
348 p->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in init()
350 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in init()
352 p->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in init()
354 p->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in init()
356 p->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in init()
358 p->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in init()
443 int stat; in set_parameters() local
493 stat = send_command(state, cmd_size + MXL_HYDRA_CMD_HEADER_SIZE, in set_parameters()
496 return stat; in set_parameters()
524 int stat; in read_snr() local
530 stat = read_register(state, (HYDRA_DMD_SNR_ADDR_OFFSET + in read_snr()
536 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in read_snr()
537 p->cnr.stat[0].svalue = (s16)reg_data * 10; in read_snr()
539 return stat; in read_snr()
560 p->pre_bit_error.stat[0].scale = FE_SCALE_COUNTER; in read_ber()
561 p->pre_bit_error.stat[0].uvalue = reg[2]; in read_ber()
562 p->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; in read_ber()
563 p->pre_bit_count.stat[0].uvalue = reg[3]; in read_ber()
578 p->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in read_ber()
579 p->post_bit_error.stat[0].uvalue = reg[5]; in read_ber()
580 p->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in read_ber()
581 p->post_bit_count.stat[0].uvalue = reg[6]; in read_ber()
584 p->post_bit_error.stat[0].scale = FE_SCALE_COUNTER; in read_ber()
585 p->post_bit_error.stat[0].uvalue = reg[1]; in read_ber()
586 p->post_bit_count.stat[0].scale = FE_SCALE_COUNTER; in read_ber()
587 p->post_bit_count.stat[0].uvalue = reg[2]; in read_ber()
602 int stat; in read_signal_strength() local
607 stat = read_register(state, (HYDRA_DMD_STATUS_INPUT_POWER_ADDR + in read_signal_strength()
613 p->strength.stat[0].scale = FE_SCALE_DECIBEL; in read_signal_strength()
614 p->strength.stat[0].svalue = (s16) reg_data * 10; /* fix scale */ in read_signal_strength()
616 return stat; in read_signal_strength()
643 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in read_status()
648 p->pre_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in read_status()
649 p->pre_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in read_status()
650 p->post_bit_error.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in read_status()
651 p->post_bit_count.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in read_status()
1326 int stat = 0; in set_drive_strength() local
1334 stat |= update_by_mnemonic(state, 0x90000194, 0, 3, ts_drive_strength); in set_drive_strength()
1335 stat |= update_by_mnemonic(state, 0x90000194, 20, 3, ts_drive_strength); in set_drive_strength()
1336 stat |= update_by_mnemonic(state, 0x90000194, 24, 3, ts_drive_strength); in set_drive_strength()
1337 stat |= update_by_mnemonic(state, 0x90000198, 12, 3, ts_drive_strength); in set_drive_strength()
1338 stat |= update_by_mnemonic(state, 0x90000198, 16, 3, ts_drive_strength); in set_drive_strength()
1339 stat |= update_by_mnemonic(state, 0x90000198, 20, 3, ts_drive_strength); in set_drive_strength()
1340 stat |= update_by_mnemonic(state, 0x90000198, 24, 3, ts_drive_strength); in set_drive_strength()
1341 stat |= update_by_mnemonic(state, 0x9000019C, 0, 3, ts_drive_strength); in set_drive_strength()
1342 stat |= update_by_mnemonic(state, 0x9000019C, 4, 3, ts_drive_strength); in set_drive_strength()
1343 stat |= update_by_mnemonic(state, 0x9000019C, 8, 3, ts_drive_strength); in set_drive_strength()
1344 stat |= update_by_mnemonic(state, 0x9000019C, 24, 3, ts_drive_strength); in set_drive_strength()
1345 stat |= update_by_mnemonic(state, 0x9000019C, 28, 3, ts_drive_strength); in set_drive_strength()
1346 stat |= update_by_mnemonic(state, 0x900001A0, 0, 3, ts_drive_strength); in set_drive_strength()
1347 stat |= update_by_mnemonic(state, 0x900001A0, 4, 3, ts_drive_strength); in set_drive_strength()
1348 stat |= update_by_mnemonic(state, 0x900001A0, 20, 3, ts_drive_strength); in set_drive_strength()
1349 stat |= update_by_mnemonic(state, 0x900001A0, 24, 3, ts_drive_strength); in set_drive_strength()
1350 stat |= update_by_mnemonic(state, 0x900001A0, 28, 3, ts_drive_strength); in set_drive_strength()
1352 return stat; in set_drive_strength()
1357 int stat = 0; in enable_tuner() local
1367 stat = send_command(state, cmd_size + MXL_HYDRA_CMD_HEADER_SIZE, in enable_tuner()
1369 if (stat) in enable_tuner()
1370 return stat; in enable_tuner()
1594 int stat = 0; in load_fw() local
1608 stat = firmware_download(state, buf, 0x40000); in load_fw()
1611 return stat; in load_fw()