Lines Matching refs:ret

42 	int ret;  in zd1301_demod_set_frontend()  local
52 ret = fe->ops.tuner_ops.set_params(fe); in zd1301_demod_set_frontend()
53 if (ret) in zd1301_demod_set_frontend()
55 ret = fe->ops.tuner_ops.get_if_frequency(fe, &if_frequency); in zd1301_demod_set_frontend()
56 if (ret) in zd1301_demod_set_frontend()
59 ret = -EINVAL; in zd1301_demod_set_frontend()
65 ret = -EINVAL; in zd1301_demod_set_frontend()
80 ret = -EINVAL; in zd1301_demod_set_frontend()
84 ret = zd1301_demod_wreg(dev, 0x6a60, 0x11); in zd1301_demod_set_frontend()
85 if (ret) in zd1301_demod_set_frontend()
87 ret = zd1301_demod_wreg(dev, 0x6a47, 0x46); in zd1301_demod_set_frontend()
88 if (ret) in zd1301_demod_set_frontend()
90 ret = zd1301_demod_wreg(dev, 0x6a48, 0x46); in zd1301_demod_set_frontend()
91 if (ret) in zd1301_demod_set_frontend()
93 ret = zd1301_demod_wreg(dev, 0x6a4a, 0x15); in zd1301_demod_set_frontend()
94 if (ret) in zd1301_demod_set_frontend()
96 ret = zd1301_demod_wreg(dev, 0x6a4b, 0x63); in zd1301_demod_set_frontend()
97 if (ret) in zd1301_demod_set_frontend()
99 ret = zd1301_demod_wreg(dev, 0x6a5b, 0x99); in zd1301_demod_set_frontend()
100 if (ret) in zd1301_demod_set_frontend()
102 ret = zd1301_demod_wreg(dev, 0x6a3b, 0x10); in zd1301_demod_set_frontend()
103 if (ret) in zd1301_demod_set_frontend()
105 ret = zd1301_demod_wreg(dev, 0x6806, 0x01); in zd1301_demod_set_frontend()
106 if (ret) in zd1301_demod_set_frontend()
108 ret = zd1301_demod_wreg(dev, 0x6a41, 0x08); in zd1301_demod_set_frontend()
109 if (ret) in zd1301_demod_set_frontend()
111 ret = zd1301_demod_wreg(dev, 0x6a42, 0x46); in zd1301_demod_set_frontend()
112 if (ret) in zd1301_demod_set_frontend()
114 ret = zd1301_demod_wreg(dev, 0x6a44, 0x14); in zd1301_demod_set_frontend()
115 if (ret) in zd1301_demod_set_frontend()
117 ret = zd1301_demod_wreg(dev, 0x6a45, 0x67); in zd1301_demod_set_frontend()
118 if (ret) in zd1301_demod_set_frontend()
120 ret = zd1301_demod_wreg(dev, 0x6a38, 0x00); in zd1301_demod_set_frontend()
121 if (ret) in zd1301_demod_set_frontend()
123 ret = zd1301_demod_wreg(dev, 0x6a4c, 0x52); in zd1301_demod_set_frontend()
124 if (ret) in zd1301_demod_set_frontend()
126 ret = zd1301_demod_wreg(dev, 0x6a49, 0x2a); in zd1301_demod_set_frontend()
127 if (ret) in zd1301_demod_set_frontend()
129 ret = zd1301_demod_wreg(dev, 0x6840, 0x2e); in zd1301_demod_set_frontend()
130 if (ret) in zd1301_demod_set_frontend()
132 ret = zd1301_demod_wreg(dev, 0x6a50, r6a50_val); in zd1301_demod_set_frontend()
133 if (ret) in zd1301_demod_set_frontend()
135 ret = zd1301_demod_wreg(dev, 0x6a38, 0x07); in zd1301_demod_set_frontend()
136 if (ret) in zd1301_demod_set_frontend()
141 dev_dbg(&pdev->dev, "failed=%d\n", ret); in zd1301_demod_set_frontend()
142 return ret; in zd1301_demod_set_frontend()
149 int ret; in zd1301_demod_sleep() local
153 ret = zd1301_demod_wreg(dev, 0x6a43, 0x70); in zd1301_demod_sleep()
154 if (ret) in zd1301_demod_sleep()
156 ret = zd1301_demod_wreg(dev, 0x684e, 0x00); in zd1301_demod_sleep()
157 if (ret) in zd1301_demod_sleep()
159 ret = zd1301_demod_wreg(dev, 0x6849, 0x00); in zd1301_demod_sleep()
160 if (ret) in zd1301_demod_sleep()
162 ret = zd1301_demod_wreg(dev, 0x68e2, 0xd7); in zd1301_demod_sleep()
163 if (ret) in zd1301_demod_sleep()
165 ret = zd1301_demod_wreg(dev, 0x68e0, 0x39); in zd1301_demod_sleep()
166 if (ret) in zd1301_demod_sleep()
168 ret = zd1301_demod_wreg(dev, 0x6840, 0x21); in zd1301_demod_sleep()
169 if (ret) in zd1301_demod_sleep()
174 dev_dbg(&pdev->dev, "failed=%d\n", ret); in zd1301_demod_sleep()
175 return ret; in zd1301_demod_sleep()
182 int ret; in zd1301_demod_init() local
186 ret = zd1301_demod_wreg(dev, 0x6840, 0x26); in zd1301_demod_init()
187 if (ret) in zd1301_demod_init()
189 ret = zd1301_demod_wreg(dev, 0x68e0, 0xff); in zd1301_demod_init()
190 if (ret) in zd1301_demod_init()
192 ret = zd1301_demod_wreg(dev, 0x68e2, 0xd8); in zd1301_demod_init()
193 if (ret) in zd1301_demod_init()
195 ret = zd1301_demod_wreg(dev, 0x6849, 0x4e); in zd1301_demod_init()
196 if (ret) in zd1301_demod_init()
198 ret = zd1301_demod_wreg(dev, 0x684e, 0x01); in zd1301_demod_init()
199 if (ret) in zd1301_demod_init()
201 ret = zd1301_demod_wreg(dev, 0x6a43, zd1301_demod_gain); in zd1301_demod_init()
202 if (ret) in zd1301_demod_init()
207 dev_dbg(&pdev->dev, "failed=%d\n", ret); in zd1301_demod_init()
208 return ret; in zd1301_demod_init()
230 int ret; in zd1301_demod_read_status() local
233 ret = zd1301_demod_rreg(dev, 0x6a24, &u8tmp); in zd1301_demod_read_status()
234 if (ret) in zd1301_demod_read_status()
261 ret = zd1301_demod_wreg(dev, 0x6a43, dev->gain); in zd1301_demod_read_status()
262 if (ret) in zd1301_demod_read_status()
268 dev_dbg(&pdev->dev, "failed=%d\n", ret); in zd1301_demod_read_status()
269 return ret; in zd1301_demod_read_status()
314 int ret, i; in zd1301_demod_i2c_master_xfer() local
329 ret = -EOPNOTSUPP; in zd1301_demod_i2c_master_xfer()
333 ret = zd1301_demod_wreg(dev, 0x6811, 0x80); in zd1301_demod_i2c_master_xfer()
334 if (ret) in zd1301_demod_i2c_master_xfer()
336 ret = zd1301_demod_wreg(dev, 0x6812, 0x05); in zd1301_demod_i2c_master_xfer()
337 if (ret) in zd1301_demod_i2c_master_xfer()
339 ret = zd1301_demod_wreg(dev, 0x6813, msg[1].addr << 1); in zd1301_demod_i2c_master_xfer()
340 if (ret) in zd1301_demod_i2c_master_xfer()
342 ret = zd1301_demod_wreg(dev, 0x6801, msg[0].buf[0]); in zd1301_demod_i2c_master_xfer()
343 if (ret) in zd1301_demod_i2c_master_xfer()
345 ret = zd1301_demod_wreg(dev, 0x6802, 0x00); in zd1301_demod_i2c_master_xfer()
346 if (ret) in zd1301_demod_i2c_master_xfer()
348 ret = zd1301_demod_wreg(dev, 0x6803, 0x06); in zd1301_demod_i2c_master_xfer()
349 if (ret) in zd1301_demod_i2c_master_xfer()
351 ret = zd1301_demod_wreg(dev, 0x6805, 0x00); in zd1301_demod_i2c_master_xfer()
352 if (ret) in zd1301_demod_i2c_master_xfer()
354 ret = zd1301_demod_wreg(dev, 0x6804, msg[1].len); in zd1301_demod_i2c_master_xfer()
355 if (ret) in zd1301_demod_i2c_master_xfer()
363 ret = zd1301_demod_rreg(dev, 0x6804, &u8tmp); in zd1301_demod_i2c_master_xfer()
364 if (ret) in zd1301_demod_i2c_master_xfer()
369 ret = zd1301_demod_rreg(dev, 0x0600 + i, &msg[1].buf[i]); in zd1301_demod_i2c_master_xfer()
370 if (ret) in zd1301_demod_i2c_master_xfer()
376 ret = -EOPNOTSUPP; in zd1301_demod_i2c_master_xfer()
380 ret = zd1301_demod_wreg(dev, 0x6811, 0x80); in zd1301_demod_i2c_master_xfer()
381 if (ret) in zd1301_demod_i2c_master_xfer()
383 ret = zd1301_demod_wreg(dev, 0x6812, 0x01); in zd1301_demod_i2c_master_xfer()
384 if (ret) in zd1301_demod_i2c_master_xfer()
386 ret = zd1301_demod_wreg(dev, 0x6813, msg[0].addr << 1); in zd1301_demod_i2c_master_xfer()
387 if (ret) in zd1301_demod_i2c_master_xfer()
389 ret = zd1301_demod_wreg(dev, 0x6800, msg[0].buf[0]); in zd1301_demod_i2c_master_xfer()
390 if (ret) in zd1301_demod_i2c_master_xfer()
392 ret = zd1301_demod_wreg(dev, 0x6802, 0x00); in zd1301_demod_i2c_master_xfer()
393 if (ret) in zd1301_demod_i2c_master_xfer()
395 ret = zd1301_demod_wreg(dev, 0x6803, 0x06); in zd1301_demod_i2c_master_xfer()
396 if (ret) in zd1301_demod_i2c_master_xfer()
400 ret = zd1301_demod_wreg(dev, 0x0600 + i, msg[0].buf[1 + i]); in zd1301_demod_i2c_master_xfer()
401 if (ret) in zd1301_demod_i2c_master_xfer()
405 ret = zd1301_demod_wreg(dev, 0x6805, 0x80); in zd1301_demod_i2c_master_xfer()
406 if (ret) in zd1301_demod_i2c_master_xfer()
408 ret = zd1301_demod_wreg(dev, 0x6804, msg[0].len - 1); in zd1301_demod_i2c_master_xfer()
409 if (ret) in zd1301_demod_i2c_master_xfer()
417 ret = zd1301_demod_rreg(dev, 0x6804, &u8tmp); in zd1301_demod_i2c_master_xfer()
418 if (ret) in zd1301_demod_i2c_master_xfer()
423 ret = -EOPNOTSUPP; in zd1301_demod_i2c_master_xfer()
429 dev_dbg(&pdev->dev, "failed=%d\n", ret); in zd1301_demod_i2c_master_xfer()
430 return ret; in zd1301_demod_i2c_master_xfer()
458 int ret; in zd1301_demod_probe() local
463 ret = -EINVAL; in zd1301_demod_probe()
468 ret = -EINVAL; in zd1301_demod_probe()
475 ret = -ENOMEM; in zd1301_demod_probe()
484 ret = zd1301_demod_wreg(dev, 0x6840, 0x21); in zd1301_demod_probe()
485 if (ret) in zd1301_demod_probe()
487 ret = zd1301_demod_wreg(dev, 0x6a38, 0x07); in zd1301_demod_probe()
488 if (ret) in zd1301_demod_probe()
498 ret = i2c_add_adapter(&dev->adapter); in zd1301_demod_probe()
499 if (ret) { in zd1301_demod_probe()
500 dev_err(&pdev->dev, "I2C adapter add failed %d\n", ret); in zd1301_demod_probe()
514 dev_dbg(&pdev->dev, "failed=%d\n", ret); in zd1301_demod_probe()
515 return ret; in zd1301_demod_probe()