Lines Matching refs:r
176 struct tea5764_regs *r = &radio->regs; in tea5764_i2c_write() local
184 wr.intreg = r->intreg & 0xff; in tea5764_i2c_write()
185 wr.frqset = __cpu_to_be16(r->frqset); in tea5764_i2c_write()
186 wr.tnctrl = __cpu_to_be16(r->tnctrl); in tea5764_i2c_write()
187 wr.testreg = __cpu_to_be16(r->testreg); in tea5764_i2c_write()
188 wr.rdsctrl = __cpu_to_be16(r->rdsctrl); in tea5764_i2c_write()
189 wr.rdsbbl = __cpu_to_be16(r->rdsbbl); in tea5764_i2c_write()
197 struct tea5764_regs *r = &radio->regs; in tea5764_power_up() local
199 if (!(r->tnctrl & TEA5764_TNCTRL_PUPD0)) { in tea5764_power_up()
200 r->tnctrl &= ~(TEA5764_TNCTRL_AFM | TEA5764_TNCTRL_MU | in tea5764_power_up()
203 r->testreg |= TEA5764_TESTREG_TRIGFR; in tea5764_power_up()
205 r->testreg &= ~TEA5764_TESTREG_TRIGFR; in tea5764_power_up()
207 r->tnctrl |= TEA5764_TNCTRL_PUPD0; in tea5764_power_up()
214 struct tea5764_regs *r = &radio->regs; in tea5764_power_down() local
216 if (r->tnctrl & TEA5764_TNCTRL_PUPD0) { in tea5764_power_down()
217 r->tnctrl &= ~TEA5764_TNCTRL_PUPD0; in tea5764_power_down()
224 struct tea5764_regs *r = &radio->regs; in tea5764_set_freq() local
227 if (r->tnctrl & TEA5764_TNCTRL_HLSI) in tea5764_set_freq()
228 r->frqset = (freq + 225000) / 8192; in tea5764_set_freq()
230 r->frqset = (freq - 225000) / 8192; in tea5764_set_freq()
235 struct tea5764_regs *r = &radio->regs; in tea5764_get_freq() local
237 if (r->tnctrl & TEA5764_TNCTRL_HLSI) in tea5764_get_freq()
238 return (r->frqchk * 8192) - 225000; in tea5764_get_freq()
240 return (r->frqchk * 8192) + 225000; in tea5764_get_freq()
253 struct tea5764_regs *r = &radio->regs; in tea5764_set_audout_mode() local
254 int tnctrl = r->tnctrl; in tea5764_set_audout_mode()
257 r->tnctrl |= TEA5764_TNCTRL_MST; in tea5764_set_audout_mode()
259 r->tnctrl &= ~TEA5764_TNCTRL_MST; in tea5764_set_audout_mode()
260 if (tnctrl != r->tnctrl) in tea5764_set_audout_mode()
266 struct tea5764_regs *r = &radio->regs; in tea5764_get_audout_mode() local
268 if (r->tnctrl & TEA5764_TNCTRL_MST) in tea5764_get_audout_mode()
276 struct tea5764_regs *r = &radio->regs; in tea5764_mute() local
277 int tnctrl = r->tnctrl; in tea5764_mute()
280 r->tnctrl |= TEA5764_TNCTRL_MU; in tea5764_mute()
282 r->tnctrl &= ~TEA5764_TNCTRL_MU; in tea5764_mute()
283 if (tnctrl != r->tnctrl) in tea5764_mute()
307 struct tea5764_regs *r = &radio->regs; in vidioc_g_tuner() local
318 if (r->tunchk & TEA5764_TUNCHK_STEREO) in vidioc_g_tuner()
323 v->signal = TEA5764_TUNCHK_LEVEL(r->tunchk) * 0xffff / 0xf; in vidioc_g_tuner()
324 v->afc = TEA5764_TUNCHK_IFCNT(r->tunchk); in vidioc_g_tuner()
369 struct tea5764_regs *r = &radio->regs; in vidioc_g_frequency() local
375 if (r->tnctrl & TEA5764_TNCTRL_PUPD0) in vidioc_g_frequency()
435 struct tea5764_regs *r; in tea5764_i2c_probe() local
466 r = &radio->regs; in tea5764_i2c_probe()
467 PDEBUG("chipid = %04X, manid = %04X", r->chipid, r->manid); in tea5764_i2c_probe()
468 if (r->chipid != TEA5764_CHIPID || in tea5764_i2c_probe()
469 (r->manid & 0x0fff) != TEA5764_MANID) { in tea5764_i2c_probe()