Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/isdn/capi/
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 …]
Dkcapi_proc.c72 ctr->cnr, ctr->driver_name, in controller_show()
88 ctr->cnr, in contrstats_show()
/kernel/linux/linux-5.10/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_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()
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()
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 …]
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.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 …]
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()
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 …]
Dm88ds3103.c218 unsigned int cnr, noise, signal, noise_tot, signal_tot; in m88ds3103_read_status() local
220 cnr = 0; in m88ds3103_read_status()
240 cnr = div_u64((u64) 10000 * intlog2(itmp), intlog2(10)); in m88ds3103_read_status()
267 cnr = div_u64((u64) 10000 * intlog10(itmp), (1 << 24)); in m88ds3103_read_status()
276 if (cnr) { in m88ds3103_read_status()
277 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in m88ds3103_read_status()
278 c->cnr.stat[0].svalue = cnr; in m88ds3103_read_status()
280 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in m88ds3103_read_status()
283 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in m88ds3103_read_status()
1127 c->cnr.len = 1; in m88ds3103_init()
[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()
/kernel/linux/linux-5.10/drivers/media/test-drivers/vidtv/
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 -= prandom_u32_max(state->tuner_cnr / 50); in vidtv_demod_update_stats()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/cnr/cnr_2/
Dia_css_cnr2.host.h32 const struct sh_css_isp_cnr_params *cnr,
Dia_css_cnr2.host.c52 const struct sh_css_isp_cnr_params *cnr,
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/css_2401_system/hive/
Dia_css_isp_states.c54 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state()
56 unsigned int offset = binary->info->mem_offsets.offsets.state->vmem.cnr.offset; in ia_css_initialize_cnr_state()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/css_2400_system/hive/
Dia_css_isp_states.c54 unsigned int size = binary->info->mem_offsets.offsets.state->vmem.cnr.size; in ia_css_initialize_cnr_state()
56 unsigned int offset = binary->info->mem_offsets.offsets.state->vmem.cnr.offset; in ia_css_initialize_cnr_state()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Dia_css_isp_states.h51 struct ia_css_isp_parameter cnr; member
/kernel/linux/linux-5.10/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()

123