Lines Matching full:status
55 int status = 0; in read_block() local
58 status = regmap_write(ci->regmap, 0, adr); in read_block()
59 if (!status) { in read_block()
67 status = regmap_raw_read(ci->regmap, 1, data, len); in read_block()
68 if (status) in read_block()
69 return status; in read_block()
74 return status; in read_block()
84 int status; in read_pccard() local
87 status = regmap_raw_write(ci->regmap, 2, addr, 2); in read_pccard()
88 if (!status) in read_pccard()
89 status = regmap_raw_read(ci->regmap, 3, data, n); in read_pccard()
90 return status; in read_pccard()
95 int status; in write_pccard() local
98 status = regmap_raw_write(ci->regmap, 2, addr, 2); in write_pccard()
99 if (!status) { in write_pccard()
103 status = regmap_raw_write(ci->regmap, 3, buf, n); in write_pccard()
105 return status; in write_pccard()
110 int status; in read_io() local
113 status = regmap_raw_write(ci->regmap, 2, addr, 2); in read_io()
114 if (!status) in read_io()
115 status = regmap_read(ci->regmap, 3, val); in read_io()
116 return status; in read_io()
121 int status; in write_io() local
124 status = regmap_raw_write(ci->regmap, 2, addr, 2); in write_io()
125 if (!status) in write_io()
126 status = regmap_write(ci->regmap, 3, val); in write_io()
127 return status; in write_io()
132 int status = 0; in write_regm() local
136 status = regmap_write(ci->regmap, 0, reg); in write_regm()
137 if (!status && reg >= 6 && reg <= 8 && mask != 0xff) { in write_regm()
138 status = regmap_read(ci->regmap, 1, ®val); in write_regm()
143 if (!status) in write_regm()
144 status = regmap_write(ci->regmap, 1, ci->regs[reg]); in write_regm()
147 return status; in write_regm()
157 int status = 0; in write_block() local
161 status = regmap_write(ci->regmap, 0, adr); in write_block()
162 if (status) in write_block()
163 return status; in write_block()
172 status = regmap_raw_write(ci->regmap, 1, buf, len); in write_block()
173 if (status) in write_block()
174 return status; in write_block()
178 return status; in write_block()
229 int status; in init() local
234 status = write_reg(ci, 0x00, 0x00); in init()
235 if (status < 0) in init()
237 status = write_reg(ci, 0x01, 0x00); in init()
238 if (status < 0) in init()
240 status = write_reg(ci, 0x02, 0x10); in init()
241 if (status < 0) in init()
243 status = write_reg(ci, 0x03, 0x00); in init()
244 if (status < 0) in init()
246 status = write_reg(ci, 0x05, 0xFF); in init()
247 if (status < 0) in init()
249 status = write_reg(ci, 0x06, 0x1F); in init()
250 if (status < 0) in init()
252 status = write_reg(ci, 0x07, 0x1F); in init()
253 if (status < 0) in init()
255 status = write_reg(ci, 0x08, 0x28); in init()
256 if (status < 0) in init()
258 status = write_reg(ci, 0x14, 0x20); in init()
259 if (status < 0) in init()
265 status = write_reg(ci, 0x0A, 0xA7); in init()
266 if (status < 0) in init()
269 status = write_reg(ci, 0x0B, 0x33); in init()
270 if (status < 0) in init()
272 status = write_reg(ci, 0x0C, 0x33); in init()
273 if (status < 0) in init()
276 status = write_regm(ci, 0x14, 0x00, 0x0F); in init()
277 if (status < 0) in init()
279 status = write_reg(ci, 0x15, ci->clk_reg_b); in init()
280 if (status < 0) in init()
282 status = write_regm(ci, 0x16, 0x00, 0x0F); in init()
283 if (status < 0) in init()
285 status = write_reg(ci, 0x17, ci->clk_reg_f); in init()
286 if (status < 0) in init()
294 status = write_reg(ci, 0x09, 0x6f); in init()
295 if (status < 0) in init()
298 status = write_reg(ci, 0x09, 0x6d); in init()
299 if (status < 0) in init()
302 status = write_reg(ci, 0x20, 0x08); in init()
303 if (status < 0) in init()
305 status = write_reg(ci, 0x21, (reg >> 8) & 0xff); in init()
306 if (status < 0) in init()
308 status = write_reg(ci, 0x22, reg & 0xff); in init()
309 if (status < 0) in init()
313 status = write_reg(ci, 0x09, 0x6f); /* D */ in init()
314 if (status < 0) in init()
317 status = write_reg(ci, 0x09, 0x6d); in init()
318 if (status < 0) in init()
321 status = write_reg(ci, 0x20, 0x68); in init()
322 if (status < 0) in init()
324 status = write_reg(ci, 0x21, 0x00); in init()
325 if (status < 0) in init()
327 status = write_reg(ci, 0x22, 0x02); in init()
328 if (status < 0) in init()
332 status = write_reg(ci, 0x09, 0x4f); /* C */ in init()
333 if (status < 0) in init()
336 status = write_reg(ci, 0x09, 0x4d); in init()
337 if (status < 0) in init()
340 status = write_reg(ci, 0x20, 0x28); in init()
341 if (status < 0) in init()
343 status = write_reg(ci, 0x21, 0x00); in init()
344 if (status < 0) in init()
346 status = write_reg(ci, 0x22, 0x07); in init()
347 if (status < 0) in init()
351 status = write_regm(ci, 0x20, 0x80, 0x80); in init()
352 if (status < 0) in init()
354 status = write_regm(ci, 0x03, 0x02, 0x02); in init()
355 if (status < 0) in init()
357 status = write_reg(ci, 0x01, 0x04); in init()
358 if (status < 0) in init()
360 status = write_reg(ci, 0x00, 0x31); in init()
361 if (status < 0) in init()
365 status = write_regm(ci, 0x09, 0x08, 0x08); in init()
366 if (status < 0) in init()