Lines Matching refs:rc

27 #define rc(args...)  do {						\  macro
205 int rc; in s921_i2c_writereg() local
207 rc = i2c_transfer(state->i2c, &msg, 1); in s921_i2c_writereg()
208 if (rc != 1) { in s921_i2c_writereg()
210 __func__, rc, reg, data); in s921_i2c_writereg()
211 return rc; in s921_i2c_writereg()
220 int i, rc; in s921_i2c_writeregdata() local
223 rc = s921_i2c_writereg(state, i2c_addr, rd[i].reg, rd[i].data); in s921_i2c_writeregdata()
224 if (rc < 0) in s921_i2c_writeregdata()
225 return rc; in s921_i2c_writeregdata()
233 int rc; in s921_i2c_readreg() local
239 rc = i2c_transfer(state->i2c, msg, 2); in s921_i2c_readreg()
241 if (rc != 2) { in s921_i2c_readreg()
242 rc("%s: reg=0x%x (rcor=%d)\n", __func__, reg, rc); in s921_i2c_readreg()
243 return rc; in s921_i2c_readreg()
261 int band, rc, i; in s921_pll_tune() local
274 rc("%s: frequency out of range\n", __func__); in s921_pll_tune()
284 rc = s921_writeregdata(state, s921_prefreq); in s921_pll_tune()
285 if (rc < 0) in s921_pll_tune()
286 return rc; in s921_pll_tune()
288 rc = s921_writereg(state, 0xf2, (f_offset >> 8) & 0xff); in s921_pll_tune()
289 if (rc < 0) in s921_pll_tune()
290 return rc; in s921_pll_tune()
292 rc = s921_writereg(state, 0xf3, f_offset & 0xff); in s921_pll_tune()
293 if (rc < 0) in s921_pll_tune()
294 return rc; in s921_pll_tune()
296 rc = s921_writereg(state, 0xf4, f_switch); in s921_pll_tune()
297 if (rc < 0) in s921_pll_tune()
298 return rc; in s921_pll_tune()
300 rc = s921_writeregdata(state, s921_postfreq); in s921_pll_tune()
301 if (rc < 0) in s921_pll_tune()
302 return rc; in s921_pll_tune()
305 rc = s921_readreg(state, 0x80); in s921_pll_tune()
306 dprintk("status 0x80: %02x\n", rc); in s921_pll_tune()
308 rc = s921_writereg(state, 0x01, 0x40); in s921_pll_tune()
309 if (rc < 0) in s921_pll_tune()
310 return rc; in s921_pll_tune()
312 rc = s921_readreg(state, 0x01); in s921_pll_tune()
313 dprintk("status 0x01: %02x\n", rc); in s921_pll_tune()
315 rc = s921_readreg(state, 0x80); in s921_pll_tune()
316 dprintk("status 0x80: %02x\n", rc); in s921_pll_tune()
318 rc = s921_readreg(state, 0x80); in s921_pll_tune()
319 dprintk("status 0x80: %02x\n", rc); in s921_pll_tune()
321 rc = s921_readreg(state, 0x32); in s921_pll_tune()
322 dprintk("status 0x32: %02x\n", rc); in s921_pll_tune()
332 int rc; in s921_initfe() local
336 rc = s921_writeregdata(state, s921_init); in s921_initfe()
337 if (rc < 0) in s921_initfe()
338 return rc; in s921_initfe()
346 int regstatus, rc; in s921_read_status() local
350 rc = s921_readreg(state, 0x81); in s921_read_status()
351 if (rc < 0) in s921_read_status()
352 return rc; in s921_read_status()
354 regstatus = rc << 8; in s921_read_status()
356 rc = s921_readreg(state, 0x82); in s921_read_status()
357 if (rc < 0) in s921_read_status()
358 return rc; in s921_read_status()
360 regstatus |= rc; in s921_read_status()
386 int rc; in s921_read_signal_strength() local
389 rc = s921_read_status(fe, &status); in s921_read_signal_strength()
390 if (rc < 0) in s921_read_signal_strength()
391 return rc; in s921_read_signal_strength()
397 rc = s921_readreg(state, 0x01); in s921_read_signal_strength()
398 dprintk("status 0x01: %02x\n", rc); in s921_read_signal_strength()
400 rc = s921_readreg(state, 0x80); in s921_read_signal_strength()
401 dprintk("status 0x80: %02x\n", rc); in s921_read_signal_strength()
403 rc = s921_readreg(state, 0x32); in s921_read_signal_strength()
404 dprintk("status 0x32: %02x\n", rc); in s921_read_signal_strength()
413 int rc; in s921_set_frontend() local
419 rc = s921_pll_tune(fe); in s921_set_frontend()
420 if (rc < 0) in s921_set_frontend()
421 return rc; in s921_set_frontend()
446 int rc = 0; in s921_tune() local
451 rc = s921_set_frontend(fe); in s921_tune()
456 return rc; in s921_tune()
483 rc("Unable to kzalloc\n"); in s921_attach()