Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/misc/eeprom/
Dee1004.c175 int err, cnr = 0; in ee1004_probe() local
197 for (cnr = 0; cnr < 2; cnr++) { in ee1004_probe()
198 ee1004_set_page[cnr] = i2c_new_dummy_device(client->adapter, in ee1004_probe()
199 EE1004_ADDR_SET_PAGE + cnr); in ee1004_probe()
200 if (IS_ERR(ee1004_set_page[cnr])) { in ee1004_probe()
203 EE1004_ADDR_SET_PAGE + cnr); in ee1004_probe()
204 err = PTR_ERR(ee1004_set_page[cnr]); in ee1004_probe()
244 for (cnr--; cnr >= 0; cnr--) { in ee1004_probe()
245 i2c_unregister_device(ee1004_set_page[cnr]); in ee1004_probe()
246 ee1004_set_page[cnr] = NULL; in ee1004_probe()
/Linux-v5.4/drivers/staging/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 …]
/Linux-v5.4/drivers/media/dvb-frontends/
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()
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()
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()
Dmn88443x.c291 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_s_read_status()
294 u32 cnr = 0, x, y, d; in mn88443x_s_read_status() local
320 cnr = div_u64(tmp * 10000, 1 << 24); in mn88443x_s_read_status()
323 if (cnr) { in mn88443x_s_read_status()
324 c->cnr.len = 1; in mn88443x_s_read_status()
325 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88443x_s_read_status()
326 c->cnr.stat[0].uvalue = cnr; in mn88443x_s_read_status()
495 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in mn88443x_t_read_status()
498 u32 cnr; in mn88443x_t_read_status() local
508 cnr = div_u64(tmp * 10000, 1 << 24); in mn88443x_t_read_status()
[all …]
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()
Dmb86a20s.c746 memset(&c->cnr, 0, sizeof(c->cnr)); in mb86a20s_reset_counters()
1387 u32 cnr_linear, cnr; in mb86a20s_get_main_CNR() local
1412 cnr = interpolate_value(cnr_linear, in mb86a20s_get_main_CNR()
1415 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mb86a20s_get_main_CNR()
1416 c->cnr.stat[0].svalue = cnr; in mb86a20s_get_main_CNR()
1419 __func__, cnr / 1000, cnr % 1000, cnr_linear); in mb86a20s_get_main_CNR()
1434 u32 mer, cnr; in mb86a20s_get_blk_error_layer_CNR() local
1459 c->cnr.stat[1 + layer].scale = FE_SCALE_NOT_AVAILABLE; in mb86a20s_get_blk_error_layer_CNR()
1501 cnr = interpolate_value(mer, segs, segs_len); in mb86a20s_get_blk_error_layer_CNR()
1503 c->cnr.stat[1 + layer].scale = FE_SCALE_DECIBEL; in mb86a20s_get_blk_error_layer_CNR()
[all …]
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()
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()
667 c->cnr.len = 1; in mn88472_probe()
Dm88ds3103.c132 unsigned int cnr, noise, signal, noise_tot, signal_tot; in m88ds3103_read_status() local
134 cnr = 0; in m88ds3103_read_status()
154 cnr = div_u64((u64) 10000 * intlog2(itmp), intlog2(10)); in m88ds3103_read_status()
181 cnr = div_u64((u64) 10000 * intlog10(itmp), (1 << 24)); in m88ds3103_read_status()
190 if (cnr) { in m88ds3103_read_status()
191 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in m88ds3103_read_status()
192 c->cnr.stat[0].svalue = cnr; in m88ds3103_read_status()
194 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in m88ds3103_read_status()
197 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in m88ds3103_read_status()
712 c->cnr.len = 1; in m88ds3103_init()
[all …]
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()
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()
532 c->cnr.len = 1; in si2168_init()
533 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2168_init()
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()
609 int ret, cnr, msecs; in cx24120_get_stats() local
645 cnr = cx24120_readreg(state, CX24120_REG_QUALITY_H) << 8; in cx24120_get_stats()
646 cnr |= cx24120_readreg(state, CX24120_REG_QUALITY_L); in cx24120_get_stats()
647 dev_dbg(&state->i2c->dev, "read SNR index = %d\n", cnr); in cx24120_get_stats()
650 cnr = cnr * 100; in cx24120_get_stats()
652 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in cx24120_get_stats()
653 c->cnr.stat[0].svalue = cnr; in cx24120_get_stats()
655 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in cx24120_get_stats()
[all …]
Daf9033.c286 c->cnr.len = 1; in af9033_init()
287 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init()
764 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in af9033_read_status()
765 c->cnr.stat[0].svalue = utmp1; in af9033_read_status()
767 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_read_status()
829 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) { in af9033_read_snr()
833 *snr = div_s64(c->cnr.stat[0].svalue, 100); in af9033_read_snr()
836 *snr = div_s64(c->cnr.stat[0].svalue, 1000); in af9033_read_snr()
Drtl2832.c355 c->cnr.len = 1; in rtl2832_init()
356 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_init()
721 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in rtl2832_read_status()
722 c->cnr.stat[0].svalue = tmp; in rtl2832_read_status()
724 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in rtl2832_read_status()
759 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in rtl2832_read_snr()
760 *snr = div_s64(c->cnr.stat[0].svalue, 100); in rtl2832_read_snr()
Dsi2165.c640 c->cnr.len = 1; in si2165_init()
641 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2165_init()
737 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in si2165_read_status()
738 c->cnr.stat[0].svalue = u32tmp; in si2165_read_status()
740 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in si2165_read_status()
803 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in si2165_read_snr()
804 *snr = div_s64(c->cnr.stat[0].svalue, 100); in si2165_read_snr()
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()
504 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in tda10071_read_snr()
505 *snr = div_s64(c->cnr.stat[0].svalue, 100); in tda10071_read_snr()
1022 c->cnr.len = 1; in tda10071_init()
1023 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in tda10071_init()
/Linux-v5.4/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()
/Linux-v5.4/drivers/media/common/siano/
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()
243 c->cnr.stat[0].svalue = p->snr * 1000; in smsdvb_update_per_slices()
295 c->cnr.stat[0].svalue = p->SNR * 1000; in smsdvb_update_dvb_stats()
341 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_update_isdbt_stats()
362 c->cnr.stat[0].svalue = p->SNR * 1000; in smsdvb_update_isdbt_stats()
446 c->cnr.stat[0].svalue = p->SNR * 1000; in smsdvb_update_isdbt_stats_ex()
811 *snr = ((u32)c->cnr.stat[0].svalue) / 100; in smsdvb_read_snr()
991 c->cnr.stat[0].uvalue = 0; in smsdvb_set_frontend()
/Linux-v5.4/drivers/media/dvb-frontends/cxd2880/
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-v5.4/drivers/media/usb/dvb-usb-v2/
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()
918 if (c->cnr.stat[0].scale == FE_SCALE_RELATIVE) in dm04_read_snr()
919 *snr = (u16)c->cnr.stat[0].uvalue; in dm04_read_snr()
/Linux-v5.4/include/linux/isdn/
Dcapilli.h68 int cnr; /* controller number */ member
/Linux-v5.4/drivers/media/pci/ddbridge/
Dddbridge-sx8.c86 p->cnr.len = 1; in get_snr()
87 p->cnr.stat[0].scale = FE_SCALE_DECIBEL; in get_snr()
88 p->cnr.stat[0].svalue = in get_snr()

12