/linux-6.1.9/drivers/media/dvb-frontends/ |
D | ec100.c | 16 u16 ber; member 199 static int ec100_read_ber(struct dvb_frontend *fe, u32 *ber) in ec100_read_ber() argument 206 *ber = 0; in ec100_read_ber() 218 if (ber2 < state->ber) in ec100_read_ber() 219 *ber = ber2; in ec100_read_ber() 221 *ber = ber2 - state->ber; in ec100_read_ber() 223 state->ber = ber2; in ec100_read_ber()
|
D | as102_fe.c | 23 uint32_t ber; member 313 state->ber = tstate.BER; in as102_fe_read_status() 363 static int as102_fe_read_ber(struct dvb_frontend *fe, u32 *ber) in as102_fe_read_ber() argument 367 *ber = state->ber; in as102_fe_read_ber()
|
D | ves1x93.c | 331 static int ves1x93_read_ber(struct dvb_frontend* fe, u32* ber) in ves1x93_read_ber() argument 335 *ber = ves1x93_readreg (state, 0x15); in ves1x93_read_ber() 336 *ber |= (ves1x93_readreg (state, 0x16) << 8); in ves1x93_read_ber() 337 *ber |= ((ves1x93_readreg (state, 0x17) & 0x0F) << 16); in ves1x93_read_ber() 338 *ber *= 10; in ves1x93_read_ber()
|
D | stv0900_core.c | 771 u32 ber = 10000000, i; in stv0900_get_ber() local 780 ber = 10000000; in stv0900_get_ber() 783 ber = 0; in stv0900_get_ber() 786 ber += stv0900_get_err_count(intp, 0, demod); in stv0900_get_ber() 789 ber /= 5; in stv0900_get_ber() 791 ber *= 9766; in stv0900_get_ber() 792 ber = ber >> 13; in stv0900_get_ber() 797 ber = 0; in stv0900_get_ber() 800 ber += stv0900_get_err_count(intp, 0, demod); in stv0900_get_ber() 803 ber /= 5; in stv0900_get_ber() [all …]
|
D | dvb_dummy_fe.c | 34 static int dvb_dummy_fe_read_ber(struct dvb_frontend *fe, u32 *ber) in dvb_dummy_fe_read_ber() argument 36 *ber = 0; in dvb_dummy_fe_read_ber()
|
D | sp887x.c | 451 static int sp887x_read_ber(struct dvb_frontend* fe, u32* ber) in sp887x_read_ber() argument 455 *ber = (sp887x_readreg(state, 0xc08) & 0x3f) | in sp887x_read_ber() 459 if (*ber >= 0x3fff0) in sp887x_read_ber() 460 *ber = ~0; in sp887x_read_ber()
|
D | tda10086.c | 615 static int tda10086_read_ber(struct dvb_frontend* fe, u32* ber) in tda10086_read_ber() argument 622 *ber = 0; in tda10086_read_ber() 623 *ber |= tda10086_read_byte(state, 0x15); in tda10086_read_ber() 624 *ber |= tda10086_read_byte(state, 0x16) << 8; in tda10086_read_ber() 625 *ber |= (tda10086_read_byte(state, 0x17) & 0xf) << 16; in tda10086_read_ber()
|
D | ds3000.c | 459 static int ds3000_read_ber(struct dvb_frontend *fe, u32* ber) in ds3000_read_ber() argument 480 *ber = (ds3000_readreg(state, 0xf7) << 8) | in ds3000_read_ber() 491 *ber = 0xffffffff; in ds3000_read_ber() 510 *ber = ber_reading; in ds3000_read_ber() 514 *ber = 0xffffffff; in ds3000_read_ber()
|
D | cx24120.c | 334 static int cx24120_read_ber(struct dvb_frontend *fe, u32 *ber) in cx24120_read_ber() argument 340 *ber = 0; in cx24120_read_ber() 344 *ber = c->post_bit_error.stat[0].uvalue - state->ber_prev; in cx24120_read_ber() 612 u32 ber; in cx24120_get_stats() local 673 ber = cx24120_readreg(state, CX24120_REG_BER_HH) << 24; in cx24120_get_stats() 674 ber |= cx24120_readreg(state, CX24120_REG_BER_HL) << 16; in cx24120_get_stats() 675 ber |= cx24120_readreg(state, CX24120_REG_BER_LH) << 8; in cx24120_get_stats() 676 ber |= cx24120_readreg(state, CX24120_REG_BER_LL); in cx24120_get_stats() 677 dev_dbg(&state->i2c->dev, "read BER index = %d\n", ber); in cx24120_get_stats() 680 c->post_bit_error.stat[0].uvalue += ber; in cx24120_get_stats()
|
D | stb0899_drv.c | 1120 static int stb0899_read_ber(struct dvb_frontend *fe, u32 *ber) in stb0899_read_ber() argument 1127 *ber = 0; in stb0899_read_ber() 1135 *ber = MAKEWORD16(msb, lsb); in stb0899_read_ber() 1139 *ber *= 9766; in stb0899_read_ber() 1141 *ber /= (-1 + (1 << (2 * STB0899_GETFIELD(NOE, internal->err_ctrl)))); in stb0899_read_ber() 1142 *ber /= 8; in stb0899_read_ber() 1150 *ber = MAKEWORD16(msb, lsb); in stb0899_read_ber() 1152 *ber *= 10000000; in stb0899_read_ber() 1153 *ber /= (-1 + (1 << (4 + 2 * STB0899_GETFIELD(NOE, internal->err_ctrl)))); in stb0899_read_ber()
|
D | stv0288.c | 376 static int stv0288_read_ber(struct dvb_frontend *fe, u32 *ber) in stv0288_read_ber() argument 382 *ber = (stv0288_readreg(state, 0x26) << 8) | in stv0288_read_ber() 384 dprintk("stv0288_read_ber %d\n", *ber); in stv0288_read_ber()
|
D | cx22702.c | 472 static int cx22702_read_ber(struct dvb_frontend *fe, u32 *ber) in cx22702_read_ber() argument 478 *ber = (cx22702_readreg(state, 0xDE) & 0x7F) << 7 in cx22702_read_ber() 482 *ber = (cx22702_readreg(state, 0xDE) & 0x7F) << 7 in cx22702_read_ber()
|
D | mb86a16.c | 1633 static int mb86a16_read_ber(struct dvb_frontend *fe, u32 *ber) in mb86a16_read_ber() argument 1640 *ber = 0; in mb86a16_read_ber() 1654 *ber = ber_tab & 0x1f; in mb86a16_read_ber() 1655 dprintk(verbose, MB86A16_DEBUG, 1, "BER coarse=[0x%02x]", *ber); in mb86a16_read_ber() 1664 *ber = (((ber_msb << 8) | ber_mid) << 8) | ber_lsb; in mb86a16_read_ber() 1674 *ber /= timer; in mb86a16_read_ber() 1675 dprintk(verbose, MB86A16_DEBUG, 1, "BER fine=[0x%02x]", *ber); in mb86a16_read_ber() 1684 *ber = (((ber_msb << 8) | ber_mid) << 8) | ber_lsb; in mb86a16_read_ber() 1690 *ber /= 2 ^ timer; in mb86a16_read_ber() 1691 dprintk(verbose, MB86A16_DEBUG, 1, "BER fine=[0x%02x]", *ber); in mb86a16_read_ber()
|
D | atbm8830.c | 348 static int atbm8830_read_ber(struct dvb_frontend *fe, u32 *ber) in atbm8830_read_ber() argument 366 *ber = frame_err * 100 / 32767; in atbm8830_read_ber() 368 dprintk("%s: ber=0x%x\n", __func__, *ber); in atbm8830_read_ber()
|
/linux-6.1.9/Documentation/userspace-api/media/dvb/ |
D | fe-read-ber.rst | 22 ``int ioctl(int fd, FE_READ_BER, uint32_t *ber)`` 30 ``ber`` 31 The bit error rate is stored into \*ber.
|
D | frontend_legacy_api.rst | 31 fe-read-ber
|
/linux-6.1.9/drivers/media/pci/ddbridge/ |
D | ddbridge-dummy-fe.c | 32 static int ddbridge_dummy_fe_read_ber(struct dvb_frontend *fe, u32 *ber) in ddbridge_dummy_fe_read_ber() argument 34 *ber = 0; in ddbridge_dummy_fe_read_ber()
|
/linux-6.1.9/drivers/media/firewire/ |
D | firedtv-fe.c | 98 static int fdtv_read_ber(struct dvb_frontend *fe, u32 *ber) in fdtv_read_ber() argument 106 *ber = stat.ber; in fdtv_read_ber()
|
/linux-6.1.9/drivers/net/fddi/skfp/ |
D | pcmplc.c | 1068 int ber ; in lem_evaluate() local 1094 if (!errors) ber = 15 ; in lem_evaluate() 1095 else if (errors <= 9) ber = 9 ; in lem_evaluate() 1096 else if (errors <= 99) ber = 8 ; in lem_evaluate() 1097 else if (errors <= 999) ber = 7 ; in lem_evaluate() 1098 else if (errors <= 9999) ber = 6 ; in lem_evaluate() 1099 else if (errors <= 99999) ber = 5 ; in lem_evaluate() 1100 else if (errors <= 999999) ber = 4 ; in lem_evaluate() 1101 else if (errors <= 9999999) ber = 3 ; in lem_evaluate() 1102 else if (errors <= 99999999) ber = 2 ; in lem_evaluate() [all …]
|
/linux-6.1.9/drivers/media/usb/dvb-usb/ |
D | vp7045-fe.c | 52 static int vp7045_fe_read_ber(struct dvb_frontend* fe, u32 *ber) in vp7045_fe_read_ber() argument 55 *ber = (vp7045_read_reg(state->d, 0x0D) << 16) | in vp7045_fe_read_ber()
|
D | cinergyT2-fe.c | 173 static int cinergyt2_fe_read_ber(struct dvb_frontend *fe, u32 *ber) in cinergyt2_fe_read_ber() argument 177 *ber = le32_to_cpu(state->status.viterbi_error_rate); in cinergyt2_fe_read_ber()
|
D | af9005-fe.c | 37 u32 ber; member 395 state->ber = do_div(numerator, denominator); in af9005_get_statistic() 397 state->ber = 0xffffffff; in af9005_get_statistic() 477 static int af9005_fe_read_ber(struct dvb_frontend *fe, u32 * ber) in af9005_fe_read_ber() argument 483 *ber = state->ber; in af9005_fe_read_ber() 1206 state->ber = 0; in af9005_fe_set_frontend()
|
D | dtt200u-fe.c | 56 static int dtt200u_fe_read_ber(struct dvb_frontend* fe, u32 *ber) in dtt200u_fe_read_ber() argument 66 *ber = (state->data[0] << 16) | (state->data[1] << 8) | state->data[2]; in dtt200u_fe_read_ber()
|
/linux-6.1.9/drivers/staging/media/deprecated/saa7146/av7110/ |
D | sp8870.c | 369 static int sp8870_read_ber (struct dvb_frontend* fe, u32 * ber) in sp8870_read_ber() argument 375 *ber = 0; in sp8870_read_ber() 391 *ber = tmp; in sp8870_read_ber()
|
/linux-6.1.9/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf-demod.c | 374 static int mxl111sf_demod_read_ber(struct dvb_frontend *fe, u32 *ber) in mxl111sf_demod_read_ber() argument 380 *ber = 0; in mxl111sf_demod_read_ber() 392 *ber = CALCULATE_BER((val1 | (val2 << 8)), val3); in mxl111sf_demod_read_ber()
|