Home
last modified time | relevance | path

Searched refs:cnr (Results 1 – 25 of 35) sorted by relevance

12

/drivers/isdn/hysdn/
Dhycapi.c97 if (hycapi_applications[i].listen_req[ctrl->cnr - 1]) { in hycapi_remove_ctr()
98 kfree_skb(hycapi_applications[i].listen_req[ctrl->cnr - 1]); in hycapi_remove_ctr()
99 hycapi_applications[i].listen_req[ctrl->cnr - 1] = NULL; in hycapi_remove_ctr()
184 hycapi_applications[appl - 1].ctrl_mask |= (1 << (ctrl->cnr - 1)); in hycapi_register_internal()
204 if (_hycapi_appCheck(i + 1, ctrl->cnr) == 1) { in hycapi_restart_internal()
207 if (hycapi_applications[i].listen_req[ctrl->cnr - 1]) { in hycapi_restart_internal()
208 skb = skb_copy(hycapi_applications[i].listen_req[ctrl->cnr - 1], GFP_ATOMIC); in hycapi_restart_internal()
229 int chk = _hycapi_appCheck(appl, ctrl->cnr); in hycapi_register_appl()
288 hycapi_applications[appl - 1].ctrl_mask &= ~(1 << (ctrl->cnr - 1)); in hycapi_release_internal()
303 chk = _hycapi_appCheck(appl, ctrl->cnr); in hycapi_release_appl()
[all …]
/drivers/media/dvb-frontends/
Dcxd2820r_c.c211 unsigned int cnr, const_a, const_b; in cxd2820r_read_status_c() local
231 cnr = div_u64((u64)(intlog2(const_b) - intlog2(utmp)) in cxd2820r_read_status_c()
234 cnr = 0; in cxd2820r_read_status_c()
236 c->cnr.len = 1; in cxd2820r_read_status_c()
237 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_c()
238 c->cnr.stat[0].svalue = cnr; in cxd2820r_read_status_c()
240 c->cnr.len = 1; in cxd2820r_read_status_c()
241 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_c()
Dcxd2820r_t.c316 unsigned int cnr; in cxd2820r_read_status_t() local
324 cnr = div_u64((u64)(intlog10(utmp) in cxd2820r_read_status_t()
328 cnr = 0; in cxd2820r_read_status_t()
330 c->cnr.len = 1; in cxd2820r_read_status_t()
331 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_t()
332 c->cnr.stat[0].svalue = cnr; in cxd2820r_read_status_t()
334 c->cnr.len = 1; in cxd2820r_read_status_t()
335 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t()
Dcxd2820r_t2.c341 unsigned int cnr; in cxd2820r_read_status_t2() local
351 cnr = div_u64((u64)(intlog10(utmp) in cxd2820r_read_status_t2()
355 cnr = 0; in cxd2820r_read_status_t2()
357 c->cnr.len = 1; in cxd2820r_read_status_t2()
358 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_t2()
359 c->cnr.stat[0].svalue = cnr; in cxd2820r_read_status_t2()
361 c->cnr.len = 1; in cxd2820r_read_status_t2()
362 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t2()
Dmb86a20s.c754 memset(&c->cnr, 0, sizeof(c->cnr)); in mb86a20s_reset_counters()
1395 u32 cnr_linear, cnr; in mb86a20s_get_main_CNR() local
1420 cnr = interpolate_value(cnr_linear, in mb86a20s_get_main_CNR()
1423 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR()
1424 c->cnr.stat[0].svalue = cnr; in mb86a20s_get_main_CNR()
1427 __func__, cnr / 1000, cnr % 1000, cnr_linear); in mb86a20s_get_main_CNR()
1442 u32 mer, cnr; in mb86a20s_get_blk_error_layer_CNR() local
1467 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR()
1509 cnr = interpolate_value(mer, segs, segs_len); in mb86a20s_get_blk_error_layer_CNR()
1511 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR()
[all …]
Dm88ds3103.c141 unsigned int cnr, noise, signal, noise_tot, signal_tot; in m88ds3103_read_status() local
143 cnr = 0; in m88ds3103_read_status()
163 cnr = div_u64((u64) 10000 * intlog2(itmp), intlog2(10)); in m88ds3103_read_status()
190 cnr = div_u64((u64) 10000 * intlog10(itmp), (1 << 24)); in m88ds3103_read_status()
199 if (cnr) { in m88ds3103_read_status()
200 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in m88ds3103_read_status()
201 c->cnr.stat[0].svalue = cnr; in m88ds3103_read_status()
203 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in m88ds3103_read_status()
206 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in m88ds3103_read_status()
722 c->cnr.len = 1; in m88ds3103_init()
[all …]
Dcx24120.c334 if (c->cnr.stat[0].scale != FE_SCALE_DECIBEL) in cx24120_read_snr()
337 *snr = div_s64(c->cnr.stat[0].svalue, 100); in cx24120_read_snr()
617 int ret, cnr, msecs; in cx24120_get_stats() local
653 cnr = cx24120_readreg(state, CX24120_REG_QUALITY_H) << 8; in cx24120_get_stats()
654 cnr |= cx24120_readreg(state, CX24120_REG_QUALITY_L); in cx24120_get_stats()
655 dev_dbg(&state->i2c->dev, "read SNR index = %d\n", cnr); in cx24120_get_stats()
658 cnr = cnr * 100; in cx24120_get_stats()
660 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cx24120_get_stats()
661 c->cnr.stat[0].svalue = cnr; in cx24120_get_stats()
663 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cx24120_get_stats()
[all …]
Drtl2830.c132 c->cnr.len = 1; in rtl2830_init()
133 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
475 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2830_read_status()
476 c->cnr.stat[0].svalue = stmp; in rtl2830_read_status()
478 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_read_status()
513 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in rtl2830_read_snr()
514 *snr = div_s64(c->cnr.stat[0].svalue, 100); in rtl2830_read_snr()
Daf9033.c460 c->cnr.len = 1; in af9033_init()
461 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
950 c->cnr.len = 1; in af9033_read_status()
951 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in af9033_read_status()
952 c->cnr.stat[0].svalue = tmp; in af9033_read_status()
954 c->cnr.len = 1; in af9033_read_status()
955 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_read_status()
1016 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) { in af9033_read_snr()
1020 *snr = div_s64(c->cnr.stat[0].svalue, 100); in af9033_read_snr()
1023 *snr = div_s64(c->cnr.stat[0].svalue, 1000); in af9033_read_snr()
Drtl2832.c368 c->cnr.len = 1; in rtl2832_init()
369 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init()
734 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2832_read_status()
735 c->cnr.stat[0].svalue = tmp; in rtl2832_read_status()
737 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_read_status()
772 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in rtl2832_read_snr()
773 *snr = div_s64(c->cnr.stat[0].svalue, 100); in rtl2832_read_snr()
Dsi2168.c138 c->cnr.len = 1; in si2168_read_status()
139 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in si2168_read_status()
140 c->cnr.stat[0].svalue = cmd.args[3] * 1000 / 4; in si2168_read_status()
142 c->cnr.len = 1; in si2168_read_status()
143 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2168_read_status()
Dtda10071.c434 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in tda10071_read_status()
435 c->cnr.stat[0].svalue = (buf[0] << 8 | buf[1] << 0) * 100; in tda10071_read_status()
437 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_read_status()
517 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in tda10071_read_snr()
518 *snr = div_s64(c->cnr.stat[0].svalue, 100); in tda10071_read_snr()
1035 c->cnr.len = 1; in tda10071_init()
1036 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_init()
Ddib7000p.c1658 memset(&c->cnr, 0, sizeof(c->cnr)); in dib7000p_reset_stats()
1664 c->cnr.len = 1; in dib7000p_reset_stats()
1673 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_reset_stats()
1900 c->cnr.len = 1; in dib7000p_get_stats()
1905 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in dib7000p_get_stats()
1923 c->cnr.stat[0].svalue = snr; in dib7000p_get_stats()
1924 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in dib7000p_get_stats()
Dcxd2820r_core.c254 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in cxd2820r_read_snr()
255 *snr = div_s64(c->cnr.stat[0].svalue, 100); in cxd2820r_read_snr()
Dcxd2841er.c2032 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2841er_read_snr()
2040 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2841er_read_snr()
2041 p->cnr.stat[0].svalue = tmp; in cxd2841er_read_snr()
2043 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2841er_read_snr()
3221 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2841er_get_frontend()
3286 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2841er_set_frontend_s()
3664 p->cnr.len = 1; in cxd2841er_init_stats()
3665 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2841er_init_stats()
Dtc90522.c259 stats = &c->cnr; in tc90522s_get_frontend()
417 stats = &c->cnr; in tc90522t_get_frontend()
/drivers/isdn/capi/
Dkcapi.c355 ctr->cnr, cdb->buf); in capi_ctr_handle_message()
359 ctr->cnr); in capi_ctr_handle_message()
378 ctr->cnr, CAPIMSG_APPID(skb->data), in capi_ctr_handle_message()
385 ctr->cnr, cdb->buf); in capi_ctr_handle_message()
389 ctr->cnr, CAPIMSG_APPID(skb->data), in capi_ctr_handle_message()
433 ctr->cnr, ctr->name); in capi_ctr_ready()
435 notify_push(CAPICTR_UP, ctr->cnr); in capi_ctr_ready()
450 printk(KERN_NOTICE "kcapi: controller [%03d] down.\n", ctr->cnr); in capi_ctr_down()
452 notify_push(CAPICTR_DOWN, ctr->cnr); in capi_ctr_down()
471 ctr->cnr); in capi_ctr_suspend_output()
[all …]
Dkcapi_proc.c72 ctr->cnr, ctr->driver_name, in controller_show()
88 ctr->cnr, in contrstats_show()
/drivers/media/common/siano/
Dsmsdvb-main.c146 c->cnr.len = 1; in smsdvb_stats_not_ready()
148 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
254 c->cnr.stat[0].svalue = p->snr * 1000; in smsdvb_update_per_slices()
306 c->cnr.stat[0].svalue = p->SNR * 1000; in smsdvb_update_dvb_stats()
352 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_update_isdbt_stats()
373 c->cnr.stat[0].svalue = p->SNR * 1000; in smsdvb_update_isdbt_stats()
457 c->cnr.stat[0].svalue = p->SNR * 1000; in smsdvb_update_isdbt_stats_ex()
822 *snr = ((u32)c->cnr.stat[0].svalue) / 100; in smsdvb_read_snr()
1002 c->cnr.stat[0].uvalue = 0; in smsdvb_set_frontend()
/drivers/media/usb/dvb-usb-v2/
Dlmedm04.c287 c->cnr.len = 1; in lme2510_update_stats()
288 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lme2510_update_stats()
311 c->cnr.len = 1; in lme2510_update_stats()
312 c->cnr.stat[0].scale = FE_SCALE_RELATIVE; in lme2510_update_stats()
313 c->cnr.stat[0].uvalue = (u64)c_tmp; in lme2510_update_stats()
975 if (c->cnr.stat[0].scale == FE_SCALE_RELATIVE) in dm04_read_snr()
976 *snr = (u16)c->cnr.stat[0].uvalue; in dm04_read_snr()
/drivers/isdn/hardware/avm/
Db1.c316 b1_put_word(port, ctrl->cnr - 1); in b1_load_firmware()
460 card->name, ctrl->cnr, cinfo->cardname); in b1_parse_version()
466 ctrl->cnr, in b1_parse_version()
480 ctrl->cnr, in b1_parse_version()
Db1pcmcia.c129 return cinfo->capi_ctrl.cnr; in b1pcmcia_add_card()
Dt1pci.c131 card->cardnr = cinfo->capi_ctrl.cnr; in t1pci_add_card()
/drivers/isdn/gigaset/
Dcapi.c345 CAPIMSG_SETCONTROLLER(msg, ctr->cnr); in send_data_b3_conf()
449 CAPIMSG_SETCONTROLLER(skb->data, iif->ctr.cnr); in gigaset_skb_rcvd()
518 iif->ctr.cnr | ((bcs->channel + 1) << 8)); in gigaset_isdn_icall()
695 iif->ctr.cnr | ((bcs->channel + 1) << 8)); in send_disconnect_ind()
731 iif->ctr.cnr | ((bcs->channel + 1) << 8) | (1 << 16)); in send_disconnect_b3_ind()
791 iif->ctr.cnr | ((bcs->channel + 1) << 8)); in gigaset_isdn_connD()
905 iif->ctr.cnr | ((bcs->channel + 1) << 8) | (1 << 16)); in gigaset_isdn_connB()
/drivers/media/dvb-core/
Ddvb_frontend.h619 struct dtv_fe_stats cnr; member

12