Home
last modified time | relevance | path

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

12

/linux/drivers/isdn/capi/
H A Dkcapi.c313 ctr->cnr, cdb->buf); in capi_ctr_handle_message()
317 ctr->cnr); in capi_ctr_handle_message()
336 ctr->cnr, CAPIMSG_APPID(skb->data), in capi_ctr_handle_message()
343 ctr->cnr, cdb->buf); in capi_ctr_handle_message()
347 ctr->cnr, CAPIMSG_APPID(skb->data), in capi_ctr_handle_message()
391 ctr->cnr, ctr->name); in capi_ctr_ready()
393 notify_push(CAPICTR_UP, ctr->cnr); in capi_ctr_ready()
408 printk(KERN_NOTICE "kcapi: controller [%03d] down.\n", ctr->cnr); in capi_ctr_down()
410 notify_push(CAPICTR_DOWN, ctr->cnr); in capi_ctr_down()
446 ctr->cnr = i + 1; in attach_capi_ctr()
[all …]
H A Dkcapi_proc.c72 ctr->cnr, ctr->driver_name, in controller_show()
88 ctr->cnr, in contrstats_show()
/linux/drivers/media/dvb-frontends/
H A Dcxd2820r_c.c198 unsigned int cnr, const_a, const_b; in cxd2820r_read_status_c() local
218 cnr = div_u64((u64)(intlog2(const_b) - intlog2(utmp)) in cxd2820r_read_status_c()
221 cnr = 0; in cxd2820r_read_status_c()
223 c->cnr.len = 1; in cxd2820r_read_status_c()
224 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_c()
225 c->cnr.stat[0].svalue = cnr; in cxd2820r_read_status_c()
227 c->cnr.len = 1; in cxd2820r_read_status_c()
228 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_c()
H A Dcxd2820r_t2.c328 unsigned int cnr; in cxd2820r_read_status_t2() local
338 cnr = div_u64((u64)(intlog10(utmp) in cxd2820r_read_status_t2()
342 cnr = 0; in cxd2820r_read_status_t2()
344 c->cnr.len = 1; in cxd2820r_read_status_t2()
345 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_t2()
346 c->cnr.stat[0].svalue = cnr; in cxd2820r_read_status_t2()
348 c->cnr.len = 1; in cxd2820r_read_status_t2()
349 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t2()
H A Dcxd2820r_t.c303 unsigned int cnr; in cxd2820r_read_status_t() local
311 cnr = div_u64((u64)(intlog10(utmp) in cxd2820r_read_status_t()
315 cnr = 0; in cxd2820r_read_status_t()
317 c->cnr.len = 1; in cxd2820r_read_status_t()
318 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2820r_read_status_t()
319 c->cnr.stat[0].svalue = cnr; in cxd2820r_read_status_t()
321 c->cnr.len = 1; in cxd2820r_read_status_t()
322 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2820r_read_status_t()
H A Dmn88443x.c300 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
303 u32 cnr = 0, x, y, d; in mn88443x_s_read_status() local
329 cnr = div_u64(tmp * 10000, 1 << 24); in mn88443x_s_read_status()
332 if (cnr) { in mn88443x_s_read_status()
333 c->cnr.len = 1; in mn88443x_s_read_status()
334 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88443x_s_read_status()
335 c->cnr.stat[0].uvalue = cnr; in mn88443x_s_read_status()
504 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_t_read_status()
507 u32 cnr; in mn88443x_t_read_status() local
517 cnr = div_u64(tmp * 10000, 1 << 24); in mn88443x_t_read_status()
[all …]
H A Dlgdt330x.c289 p->cnr.len = 1; in lgdt330x_init()
290 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt330x_init()
680 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
694 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in lgdt3302_read_status()
695 p->cnr.stat[0].svalue = (((u64)state->snr) * 1000) >> 24; in lgdt3302_read_status()
697 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3302_read_status()
786 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3303_read_status()
800 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in lgdt3303_read_status()
801 p->cnr.stat[0].svalue = (((u64)state->snr) * 1000) >> 24; in lgdt3303_read_status()
803 p->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lgdt3303_read_status()
H A Dmb86a20s.c738 memset(&c->cnr, 0, sizeof(c->cnr)); in mb86a20s_reset_counters()
1379 u32 cnr_linear, cnr; in mb86a20s_get_main_CNR() local
1404 cnr = interpolate_value(cnr_linear, in mb86a20s_get_main_CNR()
1407 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR()
1408 c->cnr.stat[0].svalue = cnr; in mb86a20s_get_main_CNR()
1411 __func__, cnr / 1000, cnr % 1000, cnr_linear); in mb86a20s_get_main_CNR()
1426 u32 mer, cnr; in mb86a20s_get_blk_error_layer_CNR() local
1451 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR()
1493 cnr = interpolate_value(mer, segs, segs_len); in mb86a20s_get_blk_error_layer_CNR()
1495 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR()
[all …]
H A Dmn88473.c348 c->cnr.stat[0].svalue = stmp; in mn88473_read_status()
349 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
382 c->cnr.stat[0].svalue = stmp; in mn88473_read_status()
383 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
404 c->cnr.stat[0].svalue = stmp; in mn88473_read_status()
405 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88473_read_status()
407 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_read_status()
533 c->cnr.len = 1; in mn88473_init()
534 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88473_init()
H A Dmn88472.c109 c->cnr.stat[0].svalue = stmp; in mn88472_read_status()
110 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88472_read_status()
144 c->cnr.stat[0].svalue = stmp; in mn88472_read_status()
145 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88472_read_status()
167 c->cnr.stat[0].svalue = stmp; in mn88472_read_status()
168 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88472_read_status()
170 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88472_read_status()
666 c->cnr.len = 1; in mn88472_probe()
H A Dcx24120.c326 if (c->cnr.stat[0].scale != FE_SCALE_DECIBEL) in cx24120_read_snr()
329 *snr = div_s64(c->cnr.stat[0].svalue, 100); in cx24120_read_snr()
610 int ret, cnr, msecs; in cx24120_get_stats() local
646 cnr = cx24120_readreg(state, CX24120_REG_QUALITY_H) << 8; in cx24120_get_stats()
647 cnr |= cx24120_readreg(state, CX24120_REG_QUALITY_L); in cx24120_get_stats()
648 dev_dbg(&state->i2c->dev, "read SNR index = %d\n", cnr); in cx24120_get_stats()
651 cnr = cnr * 100; in cx24120_get_stats()
653 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cx24120_get_stats()
654 c->cnr.stat[0].svalue = cnr; in cx24120_get_stats()
656 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cx24120_get_stats()
[all …]
H A Drtl2830.c122 c->cnr.len = 1; in rtl2830_init()
123 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_init()
465 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2830_read_status()
466 c->cnr.stat[0].svalue = stmp; in rtl2830_read_status()
468 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2830_read_status()
503 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in rtl2830_read_snr()
504 *snr = div_s64(c->cnr.stat[0].svalue, 100); in rtl2830_read_snr()
H A Dsi2168.c162 c->cnr.len = 1; in si2168_read_status()
163 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in si2168_read_status()
164 c->cnr.stat[0].svalue = cmd.args[3] * 1000 / 4; in si2168_read_status()
166 c->cnr.len = 1; in si2168_read_status()
167 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2168_read_status()
520 c->cnr.len = 1; in si2168_init()
521 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2168_init()
H A Dmxl692.c917 c->cnr.len = 1; in mxl692_init()
918 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl692_init()
1138 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mxl692_read_snr()
1139 c->cnr.stat[0].svalue = *snr; in mxl692_read_snr()
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()
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()
1276 c->cnr.len = 1; in mxl692_read_status()
1277 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mxl692_read_status()
H A Daf9033.c287 c->cnr.len = 1; in af9033_init()
288 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
765 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in af9033_read_status()
766 c->cnr.stat[0].svalue = utmp1; in af9033_read_status()
768 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_read_status()
830 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) { in af9033_read_snr()
834 *snr = div_s64(c->cnr.stat[0].svalue, 100); in af9033_read_snr()
837 *snr = div_s64(c->cnr.stat[0].svalue, 1000); in af9033_read_snr()
H A Drtl2832.c355 c->cnr.len = 1; in rtl2832_init()
356 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init()
722 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2832_read_status()
723 c->cnr.stat[0].svalue = tmp; in rtl2832_read_status()
725 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_read_status()
760 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in rtl2832_read_snr()
761 *snr = div_s64(c->cnr.stat[0].svalue, 100); in rtl2832_read_snr()
H A Dsi2165.c638 c->cnr.len = 1; in si2165_init()
639 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2165_init()
735 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in si2165_read_status()
736 c->cnr.stat[0].svalue = u32tmp; in si2165_read_status()
738 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2165_read_status()
801 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in si2165_read_snr()
802 *snr = div_s64(c->cnr.stat[0].svalue, 100); in si2165_read_snr()
H A Dtda10071.c421 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in tda10071_read_status()
422 c->cnr.stat[0].svalue = (buf[0] << 8 | buf[1] << 0) * 100; in tda10071_read_status()
424 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_read_status()
505 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in tda10071_read_snr()
506 *snr = div_s64(c->cnr.stat[0].svalue, 100); in tda10071_read_snr()
1023 c->cnr.len = 1; in tda10071_init()
1024 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_init()
/linux/drivers/misc/eeprom/
H A Dee1004.c239 int err, cnr = 0; in ee1004_init_bus_data() local
250 for (cnr = 0; cnr < EE1004_NUM_PAGES; cnr++) { in ee1004_init_bus_data()
253 cl = i2c_new_dummy_device(client->adapter, EE1004_ADDR_SET_PAGE + cnr); in ee1004_init_bus_data()
259 bd->set_page[cnr] = cl; in ee1004_init_bus_data()
274 ee1004_cleanup(cnr, bd); in ee1004_init_bus_data()
/linux/drivers/media/test-drivers/vidtv/
H A Dvidtv_demod.c137 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in vidtv_clean_stats()
138 c->cnr.stat[0].svalue = 0; in vidtv_clean_stats()
139 c->cnr.len = 1; in vidtv_clean_stats()
170 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in vidtv_demod_update_stats()
173 c->cnr.stat[0].scale = scale; in vidtv_demod_update_stats()
194 c->cnr.stat[0].svalue = state->tuner_cnr; in vidtv_demod_update_stats()
195 c->cnr.stat[0].svalue -= get_random_u32_below(state->tuner_cnr / 50); in vidtv_demod_update_stats()
/linux/drivers/media/common/siano/
H A Dsmsdvb-main.c135 c->cnr.len = 1; in smsdvb_stats_not_ready()
137 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
271 c->cnr.stat[0].svalue = p->snr * 1000; in smsdvb_update_per_slices()
323 c->cnr.stat[0].svalue = p->SNR * 1000; in smsdvb_update_dvb_stats()
369 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_update_isdbt_stats()
390 c->cnr.stat[0].svalue = p->SNR * 1000; in smsdvb_update_isdbt_stats()
478 c->cnr.stat[0].svalue = p->SNR * 1000; in smsdvb_update_isdbt_stats_ex()
847 *snr = ((u32)c->cnr.stat[0].svalue) / 100; in smsdvb_read_snr()
1027 c->cnr.stat[0].uvalue = 0; in smsdvb_set_frontend()
/linux/drivers/media/dvb-frontends/cxd2880/
H A Dcxd2880_top.c1596 c->cnr.len = 1; in cxd2880_get_frontend_t()
1597 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2880_get_frontend_t()
1598 c->cnr.stat[0].svalue = snr; in cxd2880_get_frontend_t()
1600 c->cnr.len = 1; in cxd2880_get_frontend_t()
1601 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_get_frontend_t()
1790 c->cnr.len = 1; in cxd2880_get_frontend_t2()
1791 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cxd2880_get_frontend_t2()
1792 c->cnr.stat[0].svalue = snr; in cxd2880_get_frontend_t2()
1794 c->cnr.len = 1; in cxd2880_get_frontend_t2()
1795 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cxd2880_get_frontend_t2()
/linux/drivers/media/usb/dvb-usb-v2/
H A Dlmedm04.c238 c->cnr.len = 1; in lme2510_update_stats()
239 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in lme2510_update_stats()
262 c->cnr.len = 1; in lme2510_update_stats()
263 c->cnr.stat[0].scale = FE_SCALE_RELATIVE; in lme2510_update_stats()
264 c->cnr.stat[0].uvalue = (u64)c_tmp; in lme2510_update_stats()
905 if (c->cnr.stat[0].scale == FE_SCALE_RELATIVE) in dm04_read_snr()
906 *snr = (u16)c->cnr.stat[0].uvalue; in dm04_read_snr()
/linux/include/linux/isdn/
H A Dcapilli.h68 int cnr; /* controller number */ member
/linux/drivers/staging/media/atomisp/
H A DMakefile59 pci/isp/kernels/cnr/cnr_1.0/ia_css_cnr.host.o \
60 pci/isp/kernels/cnr/cnr_2/ia_css_cnr2.host.o \
186 -I$(atomisp)/pci/isp/kernels/cnr/ \
187 -I$(atomisp)/pci/isp/kernels/cnr/cnr_1.0/ \
188 -I$(atomisp)/pci/isp/kernels/cnr/cnr_2/ \

12