Lines Matching full:status

64 	int status = 0;  in read_block()  local
67 status = regmap_write(ci->regmap, 0, adr); in read_block()
68 if (!status) { in read_block()
76 status = regmap_raw_read(ci->regmap, 1, data, len); in read_block()
77 if (status) in read_block()
78 return status; in read_block()
83 return status; in read_block()
93 int status; in read_pccard() local
96 status = regmap_raw_write(ci->regmap, 2, addr, 2); in read_pccard()
97 if (!status) in read_pccard()
98 status = regmap_raw_read(ci->regmap, 3, data, n); in read_pccard()
99 return status; in read_pccard()
104 int status; in write_pccard() local
107 status = regmap_raw_write(ci->regmap, 2, addr, 2); in write_pccard()
108 if (!status) { in write_pccard()
112 status = regmap_raw_write(ci->regmap, 3, buf, n); in write_pccard()
114 return status; in write_pccard()
119 int status; in read_io() local
122 status = regmap_raw_write(ci->regmap, 2, addr, 2); in read_io()
123 if (!status) in read_io()
124 status = regmap_read(ci->regmap, 3, val); in read_io()
125 return status; in read_io()
130 int status; in write_io() local
133 status = regmap_raw_write(ci->regmap, 2, addr, 2); in write_io()
134 if (!status) in write_io()
135 status = regmap_write(ci->regmap, 3, val); in write_io()
136 return status; in write_io()
141 int status = 0; in write_regm() local
145 status = regmap_write(ci->regmap, 0, reg); in write_regm()
146 if (!status && reg >= 6 && reg <= 8 && mask != 0xff) { in write_regm()
147 status = regmap_read(ci->regmap, 1, &regval); in write_regm()
152 if (!status) in write_regm()
153 status = regmap_write(ci->regmap, 1, ci->regs[reg]); in write_regm()
156 return status; in write_regm()
166 int status = 0; in write_block() local
170 status = regmap_write(ci->regmap, 0, adr); in write_block()
171 if (status) in write_block()
172 return status; in write_block()
181 status = regmap_raw_write(ci->regmap, 1, buf, len); in write_block()
182 if (status) in write_block()
183 return status; in write_block()
187 return status; in write_block()
238 int status; in init() local
243 status = write_reg(ci, 0x00, 0x00); in init()
244 if (status < 0) in init()
246 status = write_reg(ci, 0x01, 0x00); in init()
247 if (status < 0) in init()
249 status = write_reg(ci, 0x02, 0x10); in init()
250 if (status < 0) in init()
252 status = write_reg(ci, 0x03, 0x00); in init()
253 if (status < 0) in init()
255 status = write_reg(ci, 0x05, 0xFF); in init()
256 if (status < 0) in init()
258 status = write_reg(ci, 0x06, 0x1F); in init()
259 if (status < 0) in init()
261 status = write_reg(ci, 0x07, 0x1F); in init()
262 if (status < 0) in init()
264 status = write_reg(ci, 0x08, 0x28); in init()
265 if (status < 0) in init()
267 status = write_reg(ci, 0x14, 0x20); in init()
268 if (status < 0) in init()
274 status = write_reg(ci, 0x0A, 0xA7); in init()
275 if (status < 0) in init()
278 status = write_reg(ci, 0x0B, 0x33); in init()
279 if (status < 0) in init()
281 status = write_reg(ci, 0x0C, 0x33); in init()
282 if (status < 0) in init()
285 status = write_regm(ci, 0x14, 0x00, 0x0F); in init()
286 if (status < 0) in init()
288 status = write_reg(ci, 0x15, ci->clk_reg_b); in init()
289 if (status < 0) in init()
291 status = write_regm(ci, 0x16, 0x00, 0x0F); in init()
292 if (status < 0) in init()
294 status = write_reg(ci, 0x17, ci->clk_reg_f); in init()
295 if (status < 0) in init()
303 status = write_reg(ci, 0x09, 0x6f); in init()
304 if (status < 0) in init()
307 status = write_reg(ci, 0x09, 0x6d); in init()
308 if (status < 0) in init()
311 status = write_reg(ci, 0x20, 0x08); in init()
312 if (status < 0) in init()
314 status = write_reg(ci, 0x21, (reg >> 8) & 0xff); in init()
315 if (status < 0) in init()
317 status = write_reg(ci, 0x22, reg & 0xff); in init()
318 if (status < 0) in init()
322 status = write_reg(ci, 0x09, 0x6f); /* D */ in init()
323 if (status < 0) in init()
326 status = write_reg(ci, 0x09, 0x6d); in init()
327 if (status < 0) in init()
330 status = write_reg(ci, 0x20, 0x68); in init()
331 if (status < 0) in init()
333 status = write_reg(ci, 0x21, 0x00); in init()
334 if (status < 0) in init()
336 status = write_reg(ci, 0x22, 0x02); in init()
337 if (status < 0) in init()
341 status = write_reg(ci, 0x09, 0x4f); /* C */ in init()
342 if (status < 0) in init()
345 status = write_reg(ci, 0x09, 0x4d); in init()
346 if (status < 0) in init()
349 status = write_reg(ci, 0x20, 0x28); in init()
350 if (status < 0) in init()
352 status = write_reg(ci, 0x21, 0x00); in init()
353 if (status < 0) in init()
355 status = write_reg(ci, 0x22, 0x07); in init()
356 if (status < 0) in init()
360 status = write_regm(ci, 0x20, 0x80, 0x80); in init()
361 if (status < 0) in init()
363 status = write_regm(ci, 0x03, 0x02, 0x02); in init()
364 if (status < 0) in init()
366 status = write_reg(ci, 0x01, 0x04); in init()
367 if (status < 0) in init()
369 status = write_reg(ci, 0x00, 0x31); in init()
370 if (status < 0) in init()
374 status = write_regm(ci, 0x09, 0x08, 0x08); in init()
375 if (status < 0) in init()