/drivers/isdn/hysdn/ |
D | hycapi.c | 97 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/ |
D | cxd2820r_c.c | 211 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()
|
D | cxd2820r_t.c | 316 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()
|
D | cxd2820r_t2.c | 341 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()
|
D | mb86a20s.c | 754 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 …]
|
D | mn88473.c | 357 c->cnr.stat[0].svalue = stmp; in mn88473_read_status() 358 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status() 391 c->cnr.stat[0].svalue = stmp; in mn88473_read_status() 392 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status() 413 c->cnr.stat[0].svalue = stmp; in mn88473_read_status() 414 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status() 416 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status() 542 c->cnr.len = 1; in mn88473_init() 543 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_init()
|
D | mn88472.c | 118 c->cnr.stat[0].svalue = stmp; in mn88472_read_status() 119 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88472_read_status() 153 c->cnr.stat[0].svalue = stmp; in mn88472_read_status() 154 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88472_read_status() 176 c->cnr.stat[0].svalue = stmp; in mn88472_read_status() 177 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88472_read_status() 179 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88472_read_status() 678 c->cnr.len = 1; in mn88472_probe()
|
D | m88ds3103.c | 141 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() 721 c->cnr.len = 1; in m88ds3103_init() [all …]
|
D | cx24120.c | 334 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 …]
|
D | rtl2830.c | 132 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()
|
D | si2168.c | 139 c->cnr.len = 1; in si2168_read_status() 140 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in si2168_read_status() 141 c->cnr.stat[0].svalue = cmd.args[3] * 1000 / 4; in si2168_read_status() 143 c->cnr.len = 1; in si2168_read_status() 144 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2168_read_status() 557 c->cnr.len = 1; in si2168_init() 558 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2168_init()
|
D | af9033.c | 295 c->cnr.len = 1; in af9033_init() 296 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init() 773 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in af9033_read_status() 774 c->cnr.stat[0].svalue = utmp1; in af9033_read_status() 776 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_read_status() 838 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) { in af9033_read_snr() 842 *snr = div_s64(c->cnr.stat[0].svalue, 100); in af9033_read_snr() 845 *snr = div_s64(c->cnr.stat[0].svalue, 1000); in af9033_read_snr()
|
D | rtl2832.c | 368 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()
|
D | tda10071.c | 434 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()
|
/drivers/isdn/capi/ |
D | kcapi.c | 355 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 …]
|
D | kcapi_proc.c | 72 ctr->cnr, ctr->driver_name, in controller_show() 88 ctr->cnr, in contrstats_show()
|
/drivers/media/common/siano/ |
D | smsdvb-main.c | 146 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/staging/media/atomisp/pci/atomisp2/css2400/css_2400_system/hive_isp_css_2400_system_generated/ |
D | ia_css_isp_states.c | 50 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state() 52 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.cnr.offset; in ia_css_initialize_cnr_state()
|
D | ia_css_isp_states.h | 50 struct ia_css_isp_parameter cnr; member
|
/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_system/hive_isp_css_2401_system_generated/ |
D | ia_css_isp_states.c | 50 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state() 52 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.cnr.offset; in ia_css_initialize_cnr_state()
|
D | ia_css_isp_states.h | 50 struct ia_css_isp_parameter cnr; member
|
/drivers/staging/media/atomisp/pci/atomisp2/css2400/css_2401_csi2p_system/hive_isp_css_2401_system_csi2p_generated/ |
D | ia_css_isp_states.c | 50 unsigned size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state() 52 unsigned offset = binary->info->mem_offsets.offsets.state->vmem.cnr.offset; in ia_css_initialize_cnr_state()
|
D | ia_css_isp_states.h | 50 struct ia_css_isp_parameter cnr; member
|
/drivers/staging/media/atomisp/pci/atomisp2/css2400/isp/kernels/cnr/cnr_2/ |
D | ia_css_cnr2.host.h | 31 const struct sh_css_isp_cnr_params *cnr,
|
/drivers/media/usb/dvb-usb-v2/ |
D | lmedm04.c | 277 c->cnr.len = 1; in lme2510_update_stats() 278 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lme2510_update_stats() 301 c->cnr.len = 1; in lme2510_update_stats() 302 c->cnr.stat[0].scale = FE_SCALE_RELATIVE; in lme2510_update_stats() 303 c->cnr.stat[0].uvalue = (u64)c_tmp; in lme2510_update_stats() 965 if (c->cnr.stat[0].scale == FE_SCALE_RELATIVE) in dm04_read_snr() 966 *snr = (u16)c->cnr.stat[0].uvalue; in dm04_read_snr()
|