Lines Matching refs:ret

46 	int ret;
67 ret = i2c_transfer(priv->i2c, msg, 1);
68 if (ret == 1) {
69 ret = 0;
72 "len=%d\n", KBUILD_MODNAME, ret, reg, len);
73 ret = -EREMOTEIO;
75 return ret;
81 int ret;
104 ret = i2c_transfer(priv->i2c, msg, 2);
105 if (ret == 2) {
107 ret = 0;
110 "len=%d\n", KBUILD_MODNAME, ret, reg, len);
111 ret = -EREMOTEIO;
114 return ret;
144 int ret = 0, i;
181 ret = fc2580_wr_reg(priv, 0x02, tmp_val);
182 if (ret < 0)
200 ret = fc2580_wr_reg(priv, 0x18, r18_val | ((k_val_reg >> 16) & 0xff));
201 if (ret < 0)
204 ret = fc2580_wr_reg(priv, 0x1a, (k_val_reg >> 8) & 0xff);
205 if (ret < 0)
208 ret = fc2580_wr_reg(priv, 0x1b, (k_val_reg >> 0) & 0xff);
209 if (ret < 0)
212 ret = fc2580_wr_reg(priv, 0x1c, n_val);
213 if (ret < 0)
217 ret = fc2580_wr_reg(priv, 0x4b, 0x22);
218 if (ret < 0)
228 ret = fc2580_wr_reg(priv, 0x2d, tmp_val);
229 if (ret < 0)
242 ret = fc2580_wr_reg_ff(priv, 0x25, fc2580_freq_regs_lut[i].r25_val);
243 if (ret < 0)
246 ret = fc2580_wr_reg_ff(priv, 0x27, fc2580_freq_regs_lut[i].r27_val);
247 if (ret < 0)
250 ret = fc2580_wr_reg_ff(priv, 0x28, fc2580_freq_regs_lut[i].r28_val);
251 if (ret < 0)
254 ret = fc2580_wr_reg_ff(priv, 0x29, fc2580_freq_regs_lut[i].r29_val);
255 if (ret < 0)
258 ret = fc2580_wr_reg_ff(priv, 0x2b, fc2580_freq_regs_lut[i].r2b_val);
259 if (ret < 0)
262 ret = fc2580_wr_reg_ff(priv, 0x2c, fc2580_freq_regs_lut[i].r2c_val);
263 if (ret < 0)
266 ret = fc2580_wr_reg_ff(priv, 0x2d, fc2580_freq_regs_lut[i].r2d_val);
267 if (ret < 0)
270 ret = fc2580_wr_reg_ff(priv, 0x30, fc2580_freq_regs_lut[i].r30_val);
271 if (ret < 0)
274 ret = fc2580_wr_reg_ff(priv, 0x44, fc2580_freq_regs_lut[i].r44_val);
275 if (ret < 0)
278 ret = fc2580_wr_reg_ff(priv, 0x50, fc2580_freq_regs_lut[i].r50_val);
279 if (ret < 0)
282 ret = fc2580_wr_reg_ff(priv, 0x53, fc2580_freq_regs_lut[i].r53_val);
283 if (ret < 0)
286 ret = fc2580_wr_reg_ff(priv, 0x5f, fc2580_freq_regs_lut[i].r5f_val);
287 if (ret < 0)
290 ret = fc2580_wr_reg_ff(priv, 0x61, fc2580_freq_regs_lut[i].r61_val);
291 if (ret < 0)
294 ret = fc2580_wr_reg_ff(priv, 0x62, fc2580_freq_regs_lut[i].r62_val);
295 if (ret < 0)
298 ret = fc2580_wr_reg_ff(priv, 0x63, fc2580_freq_regs_lut[i].r63_val);
299 if (ret < 0)
302 ret = fc2580_wr_reg_ff(priv, 0x67, fc2580_freq_regs_lut[i].r67_val);
303 if (ret < 0)
306 ret = fc2580_wr_reg_ff(priv, 0x68, fc2580_freq_regs_lut[i].r68_val);
307 if (ret < 0)
310 ret = fc2580_wr_reg_ff(priv, 0x69, fc2580_freq_regs_lut[i].r69_val);
311 if (ret < 0)
314 ret = fc2580_wr_reg_ff(priv, 0x6a, fc2580_freq_regs_lut[i].r6a_val);
315 if (ret < 0)
318 ret = fc2580_wr_reg_ff(priv, 0x6b, fc2580_freq_regs_lut[i].r6b_val);
319 if (ret < 0)
322 ret = fc2580_wr_reg_ff(priv, 0x6c, fc2580_freq_regs_lut[i].r6c_val);
323 if (ret < 0)
326 ret = fc2580_wr_reg_ff(priv, 0x6d, fc2580_freq_regs_lut[i].r6d_val);
327 if (ret < 0)
330 ret = fc2580_wr_reg_ff(priv, 0x6e, fc2580_freq_regs_lut[i].r6e_val);
331 if (ret < 0)
334 ret = fc2580_wr_reg_ff(priv, 0x6f, fc2580_freq_regs_lut[i].r6f_val);
335 if (ret < 0)
347 ret = fc2580_wr_reg(priv, 0x36, fc2580_if_filter_lut[i].r36_val);
348 if (ret < 0)
351 ret = fc2580_wr_reg(priv, 0x37, div_u64(1ULL * priv->cfg->clock *
353 if (ret < 0)
356 ret = fc2580_wr_reg(priv, 0x39, fc2580_if_filter_lut[i].r39_val);
357 if (ret < 0)
361 ret = fc2580_wr_reg(priv, 0x2e, 0x09);
362 if (ret < 0)
366 ret = fc2580_rd_reg(priv, 0x2f, &tmp_val);
367 if (ret < 0)
374 ret = fc2580_wr_reg(priv, 0x2e, 0x01);
375 if (ret < 0)
378 ret = fc2580_wr_reg(priv, 0x2e, 0x09);
379 if (ret < 0)
387 ret = fc2580_wr_reg(priv, 0x2e, 0x01);
388 if (ret < 0)
399 dev_dbg(&priv->i2c->dev, "%s: failed=%d\n", __func__, ret);
400 return ret;
406 int ret, i;
414 ret = fc2580_wr_reg(priv, fc2580_init_reg_vals[i].reg,
416 if (ret < 0)
428 dev_dbg(&priv->i2c->dev, "%s: failed=%d\n", __func__, ret);
429 return ret;
435 int ret;
442 ret = fc2580_wr_reg(priv, 0x02, 0x0a);
443 if (ret < 0)
454 dev_dbg(&priv->i2c->dev, "%s: failed=%d\n", __func__, ret);
455 return ret;
500 int ret;
508 ret = -ENOMEM;
517 ret = fc2580_rd_reg(priv, 0x01, &chip_id);
518 if (ret < 0)
547 dev_dbg(&i2c->dev, "%s: failed=%d\n", __func__, ret);