• Home
  • Raw
  • Download

Lines Matching refs:regs

57 	unsigned char *regs = priv->tda18271_regs;  in tda18271_dump_regs()  local
60 tda_reg("ID_BYTE = 0x%02x\n", 0xff & regs[R_ID]); in tda18271_dump_regs()
61 tda_reg("THERMO_BYTE = 0x%02x\n", 0xff & regs[R_TM]); in tda18271_dump_regs()
62 tda_reg("POWER_LEVEL_BYTE = 0x%02x\n", 0xff & regs[R_PL]); in tda18271_dump_regs()
63 tda_reg("EASY_PROG_BYTE_1 = 0x%02x\n", 0xff & regs[R_EP1]); in tda18271_dump_regs()
64 tda_reg("EASY_PROG_BYTE_2 = 0x%02x\n", 0xff & regs[R_EP2]); in tda18271_dump_regs()
65 tda_reg("EASY_PROG_BYTE_3 = 0x%02x\n", 0xff & regs[R_EP3]); in tda18271_dump_regs()
66 tda_reg("EASY_PROG_BYTE_4 = 0x%02x\n", 0xff & regs[R_EP4]); in tda18271_dump_regs()
67 tda_reg("EASY_PROG_BYTE_5 = 0x%02x\n", 0xff & regs[R_EP5]); in tda18271_dump_regs()
68 tda_reg("CAL_POST_DIV_BYTE = 0x%02x\n", 0xff & regs[R_CPD]); in tda18271_dump_regs()
69 tda_reg("CAL_DIV_BYTE_1 = 0x%02x\n", 0xff & regs[R_CD1]); in tda18271_dump_regs()
70 tda_reg("CAL_DIV_BYTE_2 = 0x%02x\n", 0xff & regs[R_CD2]); in tda18271_dump_regs()
71 tda_reg("CAL_DIV_BYTE_3 = 0x%02x\n", 0xff & regs[R_CD3]); in tda18271_dump_regs()
72 tda_reg("MAIN_POST_DIV_BYTE = 0x%02x\n", 0xff & regs[R_MPD]); in tda18271_dump_regs()
73 tda_reg("MAIN_DIV_BYTE_1 = 0x%02x\n", 0xff & regs[R_MD1]); in tda18271_dump_regs()
74 tda_reg("MAIN_DIV_BYTE_2 = 0x%02x\n", 0xff & regs[R_MD2]); in tda18271_dump_regs()
75 tda_reg("MAIN_DIV_BYTE_3 = 0x%02x\n", 0xff & regs[R_MD3]); in tda18271_dump_regs()
84 tda_reg("EXTENDED_BYTE_1 = 0x%02x\n", 0xff & regs[R_EB1]); in tda18271_dump_regs()
85 tda_reg("EXTENDED_BYTE_2 = 0x%02x\n", 0xff & regs[R_EB2]); in tda18271_dump_regs()
86 tda_reg("EXTENDED_BYTE_3 = 0x%02x\n", 0xff & regs[R_EB3]); in tda18271_dump_regs()
87 tda_reg("EXTENDED_BYTE_4 = 0x%02x\n", 0xff & regs[R_EB4]); in tda18271_dump_regs()
88 tda_reg("EXTENDED_BYTE_5 = 0x%02x\n", 0xff & regs[R_EB5]); in tda18271_dump_regs()
89 tda_reg("EXTENDED_BYTE_6 = 0x%02x\n", 0xff & regs[R_EB6]); in tda18271_dump_regs()
90 tda_reg("EXTENDED_BYTE_7 = 0x%02x\n", 0xff & regs[R_EB7]); in tda18271_dump_regs()
91 tda_reg("EXTENDED_BYTE_8 = 0x%02x\n", 0xff & regs[R_EB8]); in tda18271_dump_regs()
92 tda_reg("EXTENDED_BYTE_9 W = 0x%02x\n", 0xff & regs[R_EB9]); in tda18271_dump_regs()
93 tda_reg("EXTENDED_BYTE_10 = 0x%02x\n", 0xff & regs[R_EB10]); in tda18271_dump_regs()
94 tda_reg("EXTENDED_BYTE_11 = 0x%02x\n", 0xff & regs[R_EB11]); in tda18271_dump_regs()
95 tda_reg("EXTENDED_BYTE_12 = 0x%02x\n", 0xff & regs[R_EB12]); in tda18271_dump_regs()
96 tda_reg("EXTENDED_BYTE_13 = 0x%02x\n", 0xff & regs[R_EB13]); in tda18271_dump_regs()
97 tda_reg("EXTENDED_BYTE_14 = 0x%02x\n", 0xff & regs[R_EB14]); in tda18271_dump_regs()
98 tda_reg("EXTENDED_BYTE_15 = 0x%02x\n", 0xff & regs[R_EB15]); in tda18271_dump_regs()
99 tda_reg("EXTENDED_BYTE_16 W = 0x%02x\n", 0xff & regs[R_EB16]); in tda18271_dump_regs()
100 tda_reg("EXTENDED_BYTE_17 W = 0x%02x\n", 0xff & regs[R_EB17]); in tda18271_dump_regs()
101 tda_reg("EXTENDED_BYTE_18 = 0x%02x\n", 0xff & regs[R_EB18]); in tda18271_dump_regs()
102 tda_reg("EXTENDED_BYTE_19 W = 0x%02x\n", 0xff & regs[R_EB19]); in tda18271_dump_regs()
103 tda_reg("EXTENDED_BYTE_20 W = 0x%02x\n", 0xff & regs[R_EB20]); in tda18271_dump_regs()
104 tda_reg("EXTENDED_BYTE_21 = 0x%02x\n", 0xff & regs[R_EB21]); in tda18271_dump_regs()
105 tda_reg("EXTENDED_BYTE_22 = 0x%02x\n", 0xff & regs[R_EB22]); in tda18271_dump_regs()
106 tda_reg("EXTENDED_BYTE_23 = 0x%02x\n", 0xff & regs[R_EB23]); in tda18271_dump_regs()
112 unsigned char *regs = priv->tda18271_regs; in tda18271_read_regs() local
119 .buf = regs, .len = 16 } in tda18271_read_regs()
141 unsigned char *regs = priv->tda18271_regs; in tda18271_read_extended() local
169 regs[i] = regdump[i]; in tda18271_read_extended()
182 unsigned char *regs = priv->tda18271_regs; in __tda18271_write_regs() local
224 buf[i] = regs[idx - 1 + i]; in __tda18271_write_regs()
260 unsigned char *regs = priv->tda18271_regs; in __tda18271_charge_pump_source() local
264 regs[r_cp] &= ~0x20; in __tda18271_charge_pump_source()
265 regs[r_cp] |= ((force & 1) << 5); in __tda18271_charge_pump_source()
280 unsigned char *regs = priv->tda18271_regs; in tda18271_init_regs() local
296 regs[R_ID] = 0x83; in tda18271_init_regs()
299 regs[R_ID] = 0x84; in tda18271_init_regs()
303 regs[R_TM] = 0x08; in tda18271_init_regs()
304 regs[R_PL] = 0x80; in tda18271_init_regs()
305 regs[R_EP1] = 0xc6; in tda18271_init_regs()
306 regs[R_EP2] = 0xdf; in tda18271_init_regs()
307 regs[R_EP3] = 0x16; in tda18271_init_regs()
308 regs[R_EP4] = 0x60; in tda18271_init_regs()
309 regs[R_EP5] = 0x80; in tda18271_init_regs()
310 regs[R_CPD] = 0x80; in tda18271_init_regs()
311 regs[R_CD1] = 0x00; in tda18271_init_regs()
312 regs[R_CD2] = 0x00; in tda18271_init_regs()
313 regs[R_CD3] = 0x00; in tda18271_init_regs()
314 regs[R_MPD] = 0x00; in tda18271_init_regs()
315 regs[R_MD1] = 0x00; in tda18271_init_regs()
316 regs[R_MD2] = 0x00; in tda18271_init_regs()
317 regs[R_MD3] = 0x00; in tda18271_init_regs()
321 regs[R_EB1] = 0xff; in tda18271_init_regs()
324 regs[R_EB1] = 0xfc; in tda18271_init_regs()
328 regs[R_EB2] = 0x01; in tda18271_init_regs()
329 regs[R_EB3] = 0x84; in tda18271_init_regs()
330 regs[R_EB4] = 0x41; in tda18271_init_regs()
331 regs[R_EB5] = 0x01; in tda18271_init_regs()
332 regs[R_EB6] = 0x84; in tda18271_init_regs()
333 regs[R_EB7] = 0x40; in tda18271_init_regs()
334 regs[R_EB8] = 0x07; in tda18271_init_regs()
335 regs[R_EB9] = 0x00; in tda18271_init_regs()
336 regs[R_EB10] = 0x00; in tda18271_init_regs()
337 regs[R_EB11] = 0x96; in tda18271_init_regs()
341 regs[R_EB12] = 0x0f; in tda18271_init_regs()
344 regs[R_EB12] = 0x33; in tda18271_init_regs()
348 regs[R_EB13] = 0xc1; in tda18271_init_regs()
349 regs[R_EB14] = 0x00; in tda18271_init_regs()
350 regs[R_EB15] = 0x8f; in tda18271_init_regs()
351 regs[R_EB16] = 0x00; in tda18271_init_regs()
352 regs[R_EB17] = 0x00; in tda18271_init_regs()
356 regs[R_EB18] = 0x00; in tda18271_init_regs()
359 regs[R_EB18] = 0x8c; in tda18271_init_regs()
363 regs[R_EB19] = 0x00; in tda18271_init_regs()
364 regs[R_EB20] = 0x20; in tda18271_init_regs()
368 regs[R_EB21] = 0x33; in tda18271_init_regs()
371 regs[R_EB21] = 0xb3; in tda18271_init_regs()
375 regs[R_EB22] = 0x48; in tda18271_init_regs()
376 regs[R_EB23] = 0xb0; in tda18271_init_regs()
381 regs[R_EB17] = 0x00; in tda18271_init_regs()
383 regs[R_EB17] = 0x03; in tda18271_init_regs()
385 regs[R_EB17] = 0x43; in tda18271_init_regs()
387 regs[R_EB17] = 0x4c; in tda18271_init_regs()
392 regs[R_EB20] = 0xa0; in tda18271_init_regs()
394 regs[R_EB20] = 0xa7; in tda18271_init_regs()
396 regs[R_EB20] = 0xe7; in tda18271_init_regs()
398 regs[R_EB20] = 0xec; in tda18271_init_regs()
405 regs[R_EP3] = 0x1f; in tda18271_init_regs()
406 regs[R_EP4] = 0x66; in tda18271_init_regs()
407 regs[R_EP5] = 0x81; in tda18271_init_regs()
408 regs[R_CPD] = 0xcc; in tda18271_init_regs()
409 regs[R_CD1] = 0x6c; in tda18271_init_regs()
410 regs[R_CD2] = 0x00; in tda18271_init_regs()
411 regs[R_CD3] = 0x00; in tda18271_init_regs()
412 regs[R_MPD] = 0xcd; in tda18271_init_regs()
413 regs[R_MD1] = 0x77; in tda18271_init_regs()
414 regs[R_MD2] = 0x08; in tda18271_init_regs()
415 regs[R_MD3] = 0x00; in tda18271_init_regs()
434 regs[R_EP5] = 0x85; in tda18271_init_regs()
435 regs[R_CPD] = 0xcb; in tda18271_init_regs()
436 regs[R_CD1] = 0x66; in tda18271_init_regs()
437 regs[R_CD2] = 0x70; in tda18271_init_regs()
447 regs[R_EP5] = 0x82; in tda18271_init_regs()
448 regs[R_CPD] = 0xa8; in tda18271_init_regs()
449 regs[R_CD2] = 0x00; in tda18271_init_regs()
450 regs[R_MPD] = 0xa9; in tda18271_init_regs()
451 regs[R_MD1] = 0x73; in tda18271_init_regs()
452 regs[R_MD2] = 0x1a; in tda18271_init_regs()
461 regs[R_EP5] = 0x86; in tda18271_init_regs()
462 regs[R_CPD] = 0xa8; in tda18271_init_regs()
463 regs[R_CD1] = 0x66; in tda18271_init_regs()
464 regs[R_CD2] = 0xa0; in tda18271_init_regs()
474 regs[R_EP5] = 0x83; in tda18271_init_regs()
475 regs[R_CPD] = 0x98; in tda18271_init_regs()
476 regs[R_CD1] = 0x65; in tda18271_init_regs()
477 regs[R_CD2] = 0x00; in tda18271_init_regs()
478 regs[R_MPD] = 0x99; in tda18271_init_regs()
479 regs[R_MD1] = 0x71; in tda18271_init_regs()
480 regs[R_MD2] = 0xcd; in tda18271_init_regs()
489 regs[R_EP5] = 0x87; in tda18271_init_regs()
490 regs[R_CD1] = 0x65; in tda18271_init_regs()
491 regs[R_CD2] = 0x50; in tda18271_init_regs()
501 regs[R_EP4] = 0x64; in tda18271_init_regs()
535 unsigned char *regs = priv->tda18271_regs; in tda18271_set_standby_mode() local
540 regs[R_EP3] &= ~0xe0; /* clear sm, sm_lt, sm_xt */ in tda18271_set_standby_mode()
541 regs[R_EP3] |= (sm ? (1 << 7) : 0) | in tda18271_set_standby_mode()
554 unsigned char *regs = priv->tda18271_regs; in tda18271_calc_main_pll() local
562 regs[R_MPD] = (0x7f & pd); in tda18271_calc_main_pll()
566 regs[R_MD1] = 0x7f & (div >> 16); in tda18271_calc_main_pll()
567 regs[R_MD2] = 0xff & (div >> 8); in tda18271_calc_main_pll()
568 regs[R_MD3] = 0xff & div; in tda18271_calc_main_pll()
577 unsigned char *regs = priv->tda18271_regs; in tda18271_calc_cal_pll() local
585 regs[R_CPD] = pd; in tda18271_calc_cal_pll()
589 regs[R_CD1] = 0x7f & (div >> 16); in tda18271_calc_cal_pll()
590 regs[R_CD2] = 0xff & (div >> 8); in tda18271_calc_cal_pll()
591 regs[R_CD3] = 0xff & div; in tda18271_calc_cal_pll()
602 unsigned char *regs = priv->tda18271_regs; in tda18271_calc_bp_filter() local
609 regs[R_EP1] &= ~0x07; /* clear bp filter bits */ in tda18271_calc_bp_filter()
610 regs[R_EP1] |= (0x07 & val); in tda18271_calc_bp_filter()
619 unsigned char *regs = priv->tda18271_regs; in tda18271_calc_km() local
626 regs[R_EB13] &= ~0x7c; /* clear k & m bits */ in tda18271_calc_km()
627 regs[R_EB13] |= (0x7c & val); in tda18271_calc_km()
636 unsigned char *regs = priv->tda18271_regs; in tda18271_calc_rf_band() local
643 regs[R_EP2] &= ~0xe0; /* clear rf band bits */ in tda18271_calc_rf_band()
644 regs[R_EP2] |= (0xe0 & (val << 5)); in tda18271_calc_rf_band()
653 unsigned char *regs = priv->tda18271_regs; in tda18271_calc_gain_taper() local
660 regs[R_EP2] &= ~0x1f; /* clear gain taper bits */ in tda18271_calc_gain_taper()
661 regs[R_EP2] |= (0x1f & val); in tda18271_calc_gain_taper()
670 unsigned char *regs = priv->tda18271_regs; in tda18271_calc_ir_measure() local
677 regs[R_EP5] &= ~0x07; in tda18271_calc_ir_measure()
678 regs[R_EP5] |= (0x07 & val); in tda18271_calc_ir_measure()
687 unsigned char *regs = priv->tda18271_regs; in tda18271_calc_rf_cal() local
700 regs[R_EB14] = val; in tda18271_calc_rf_cal()