Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/misc/eeprom/
A Dee1004.c172 int err, cnr = 0; in ee1004_probe() local
184 for (cnr = 0; cnr < EE1004_NUM_PAGES; cnr++) { in ee1004_probe()
187 cl = i2c_new_dummy_device(client->adapter, EE1004_ADDR_SET_PAGE + cnr); in ee1004_probe()
192 ee1004_set_page[cnr] = cl; in ee1004_probe()
216 ee1004_cleanup(cnr); in ee1004_probe()
/linux-6.3-rc2/drivers/isdn/capi/
A Dkcapi.c313 ctr->cnr, cdb->buf); in capi_ctr_handle_message()
317 ctr->cnr); in capi_ctr_handle_message()
343 ctr->cnr, cdb->buf); 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()
410 notify_push(CAPICTR_DOWN, ctr->cnr); in capi_ctr_down()
446 ctr->cnr = i + 1; in attach_capi_ctr()
460 ctr->cnr, ctr->name); in attach_capi_ctr()
483 if (ctr->cnr < 1 || ctr->cnr - 1 >= CAPI_MAXCONTR) { in detach_capi_ctr()
499 ctr->cnr, ctr->name); in detach_capi_ctr()
[all …]
A Dkcapi_proc.c72 ctr->cnr, ctr->driver_name, in controller_show()
88 ctr->cnr, in contrstats_show()
/linux-6.3-rc2/drivers/media/dvb-frontends/
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()
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()
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()
A Dmn88443x.c303 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()
335 c->cnr.stat[0].uvalue = cnr; in mn88443x_s_read_status()
507 u32 cnr; in mn88443x_t_read_status() local
517 cnr = div_u64(tmp * 10000, 1 << 24); in mn88443x_t_read_status()
519 cnr = 0; in mn88443x_t_read_status()
522 c->cnr.len = 1; in mn88443x_t_read_status()
523 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in mn88443x_t_read_status()
[all …]
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()
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
1493 cnr = interpolate_value(mer, segs, segs_len); in mb86a20s_get_blk_error_layer_CNR()
1496 c->cnr.stat[1 + layer].svalue = cnr; in mb86a20s_get_blk_error_layer_CNR()
1500 __func__, 'A' + layer, cnr / 1000, cnr % 1000, mer); in mb86a20s_get_blk_error_layer_CNR()
[all …]
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()
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()
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()
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
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()
1451 c->cnr.len = 1; in cx24120_init()
[all …]
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()
A Dm88ds3103.c218 unsigned int cnr, noise, signal, noise_tot, signal_tot; in m88ds3103_read_status() local
220 cnr = 0; 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()
1123 c->cnr.len = 1; in m88ds3103_init()
1124 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in m88ds3103_init()
1349 if (c->cnr.stat[0].scale == FE_SCALE_DECIBEL) in m88ds3103_read_snr()
[all …]
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()
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()
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()
A 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()
/linux-6.3-rc2/drivers/media/test-drivers/vidtv/
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-6.3-rc2/drivers/staging/media/atomisp/pci/isp/kernels/cnr/cnr_2/
A Dia_css_cnr2.host.h32 const struct sh_css_isp_cnr_params *cnr,
A Dia_css_cnr2.host.c52 const struct sh_css_isp_cnr_params *cnr,
/linux-6.3-rc2/drivers/staging/media/atomisp/pci/
A 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()
A Dia_css_isp_states.h51 struct ia_css_isp_parameter cnr; member
/linux-6.3-rc2/drivers/media/common/siano/
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()

Completed in 64 milliseconds

123