Lines Matching refs:ret
55 int ret;
59 ret = mo->write(adap, ELMR_MDIO_ADDR, 0, ELMR_ADDR, start);
60 for ( ; !ret && n; n--, vals++) {
61 ret = mo->write(adap, ELMR_MDIO_ADDR, 0, ELMR_DATA_LO,
63 if (!ret)
64 ret = mo->write(adap, ELMR_MDIO_ADDR, 0, ELMR_DATA_HI,
68 return ret;
78 int i, ret;
84 ret = mo->write(adap, ELMR_MDIO_ADDR, 0, ELMR_ADDR, start);
85 if (ret)
89 ret = mo->read(adap, ELMR_MDIO_ADDR, 0, ELMR_STAT, &v);
90 if (ret)
97 ret = -ETIMEDOUT;
101 for ( ; !ret && n; n--, vals++) {
102 ret = mo->read(adap, ELMR_MDIO_ADDR, 0, ELMR_DATA_LO, vals);
103 if (!ret) {
104 ret = mo->read(adap, ELMR_MDIO_ADDR, 0, ELMR_DATA_HI,
110 return ret;
139 int i, ret, ing_step, egr_step, ing_bot, egr_bot;
142 if ((ret = t3_elmr_blk_write(adap, sys_avp[i].reg_addr,
144 return ret;
155 (ret = elmr_write(adap, VSC_REG(2, 0, 0x10 + i),
157 (ret = elmr_write(adap, VSC_REG(2, 0, 0x40 + i),
159 (ret = elmr_write(adap, VSC_REG(2, 0, 0x50 + i), 1)) ||
160 (ret = elmr_write(adap, VSC_REG(2, 1, 0x10 + i),
162 (ret = elmr_write(adap, VSC_REG(2, 1, 0x40 + i),
164 (ret = elmr_write(adap, VSC_REG(2, 1, 0x50 + i), 0)))
165 return ret;
171 if ((ret = t3_elmr_blk_write(adap, fifo_avp[i].reg_addr,
173 return ret;
176 if ((ret = t3_elmr_blk_write(adap, xg_avp[i].reg_addr,
178 return ret;
181 if ((ret = elmr_write(adap, VSC_REG(1, i, 0), 0xa59c)) ||
182 (ret = elmr_write(adap, VSC_REG(1, i, 5),
184 (ret = elmr_write(adap, VSC_REG(1, i, 0xb), 0x96)) ||
185 (ret = elmr_write(adap, VSC_REG(1, i, 0x15), 0x21)) ||
186 (ret = elmr_write(adap, ELMR_THRES0 + i, 768)))
187 return ret;
189 if ((ret = elmr_write(adap, ELMR_BW, 7)))
190 return ret;
192 return ret;
233 int ret;
235 ret = elmr_write(adap, VSC_REG(1, port, 3),
237 if (!ret)
238 ret = elmr_write(adap, VSC_REG(1, port, 4),
240 return ret;
245 int ret;
248 ret = t3_elmr_blk_read(adap, VSC_REG(1, port, 0), &v, 1);
249 if (!ret) {
256 ret = elmr_write(adap, VSC_REG(1, port, 0), v);
258 return ret;
263 int ret;
266 ret = t3_elmr_blk_read(adap, VSC_REG(1, port, 0), &v, 1);
267 if (!ret) {
274 ret = elmr_write(adap, VSC_REG(1, port, 0), v);
276 return ret;
288 int ret;
292 ret = t3_elmr_blk_read(mac->adapter,
295 if (!ret)
296 ret = t3_elmr_blk_read(mac->adapter,
299 if (ret)