Lines Matching full:status

47 #define AMD_EC_SC	0x04	/* status of controller */
103 int status; in amd_ec_read() local
105 status = amd_ec_wait_write(smbus); in amd_ec_read()
106 if (status) in amd_ec_read()
107 return status; in amd_ec_read()
110 status = amd_ec_wait_write(smbus); in amd_ec_read()
111 if (status) in amd_ec_read()
112 return status; in amd_ec_read()
115 status = amd_ec_wait_read(smbus); in amd_ec_read()
116 if (status) in amd_ec_read()
117 return status; in amd_ec_read()
126 int status; in amd_ec_write() local
128 status = amd_ec_wait_write(smbus); in amd_ec_write()
129 if (status) in amd_ec_write()
130 return status; in amd_ec_write()
133 status = amd_ec_wait_write(smbus); in amd_ec_write()
134 if (status) in amd_ec_write()
135 return status; in amd_ec_write()
138 status = amd_ec_wait_write(smbus); in amd_ec_write()
139 if (status) in amd_ec_write()
140 return status; in amd_ec_write()
151 #define AMD_SMB_STS 0x01 /* status */
195 int i, status; in amd8111_access() local
209 status = amd_ec_write(smbus, AMD_SMB_CMD, in amd8111_access()
211 if (status) in amd8111_access()
212 return status; in amd8111_access()
218 status = amd_ec_write(smbus, AMD_SMB_CMD, command); in amd8111_access()
219 if (status) in amd8111_access()
220 return status; in amd8111_access()
222 status = amd_ec_write(smbus, AMD_SMB_DATA, in amd8111_access()
224 if (status) in amd8111_access()
225 return status; in amd8111_access()
231 status = amd_ec_write(smbus, AMD_SMB_CMD, command); in amd8111_access()
232 if (status) in amd8111_access()
233 return status; in amd8111_access()
235 status = amd_ec_write(smbus, AMD_SMB_DATA, in amd8111_access()
237 if (status) in amd8111_access()
238 return status; in amd8111_access()
239 status = amd_ec_write(smbus, AMD_SMB_DATA + 1, in amd8111_access()
241 if (status) in amd8111_access()
242 return status; in amd8111_access()
248 status = amd_ec_write(smbus, AMD_SMB_CMD, command); in amd8111_access()
249 if (status) in amd8111_access()
250 return status; in amd8111_access()
254 status = amd_ec_write(smbus, AMD_SMB_BCNT, len); in amd8111_access()
255 if (status) in amd8111_access()
256 return status; in amd8111_access()
258 status = in amd8111_access()
261 if (status) in amd8111_access()
262 return status; in amd8111_access()
271 status = amd_ec_write(smbus, AMD_SMB_CMD, command); in amd8111_access()
272 if (status) in amd8111_access()
273 return status; in amd8111_access()
274 status = amd_ec_write(smbus, AMD_SMB_BCNT, len); in amd8111_access()
275 if (status) in amd8111_access()
276 return status; in amd8111_access()
279 status = in amd8111_access()
282 if (status) in amd8111_access()
283 return status; in amd8111_access()
289 status = amd_ec_write(smbus, AMD_SMB_CMD, command); in amd8111_access()
290 if (status) in amd8111_access()
291 return status; in amd8111_access()
292 status = amd_ec_write(smbus, AMD_SMB_DATA, in amd8111_access()
294 if (status) in amd8111_access()
295 return status; in amd8111_access()
296 status = amd_ec_write(smbus, AMD_SMB_DATA + 1, in amd8111_access()
298 if (status) in amd8111_access()
299 return status; in amd8111_access()
307 status = amd_ec_write(smbus, AMD_SMB_CMD, command); in amd8111_access()
308 if (status) in amd8111_access()
309 return status; in amd8111_access()
310 status = amd_ec_write(smbus, AMD_SMB_BCNT, len); in amd8111_access()
311 if (status) in amd8111_access()
312 return status; in amd8111_access()
314 status = amd_ec_write(smbus, AMD_SMB_DATA + i, in amd8111_access()
316 if (status) in amd8111_access()
317 return status; in amd8111_access()
328 status = amd_ec_write(smbus, AMD_SMB_ADDR, addr << 1); in amd8111_access()
329 if (status) in amd8111_access()
330 return status; in amd8111_access()
331 status = amd_ec_write(smbus, AMD_SMB_PRTCL, protocol); in amd8111_access()
332 if (status) in amd8111_access()
333 return status; in amd8111_access()
335 status = amd_ec_read(smbus, AMD_SMB_STS, temp + 0); in amd8111_access()
336 if (status) in amd8111_access()
337 return status; in amd8111_access()
341 status = amd_ec_read(smbus, AMD_SMB_STS, temp + 0); in amd8111_access()
342 if (status) in amd8111_access()
343 return status; in amd8111_access()
348 status = amd_ec_read(smbus, AMD_SMB_STS, temp + 0); in amd8111_access()
349 if (status) in amd8111_access()
350 return status; in amd8111_access()
362 status = amd_ec_read(smbus, AMD_SMB_DATA, &data->byte); in amd8111_access()
363 if (status) in amd8111_access()
364 return status; in amd8111_access()
369 status = amd_ec_read(smbus, AMD_SMB_DATA, temp + 0); in amd8111_access()
370 if (status) in amd8111_access()
371 return status; in amd8111_access()
372 status = amd_ec_read(smbus, AMD_SMB_DATA + 1, temp + 1); in amd8111_access()
373 if (status) in amd8111_access()
374 return status; in amd8111_access()
380 status = amd_ec_read(smbus, AMD_SMB_BCNT, &len); in amd8111_access()
381 if (status) in amd8111_access()
382 return status; in amd8111_access()
387 status = amd_ec_read(smbus, AMD_SMB_DATA + i, in amd8111_access()
389 if (status) in amd8111_access()
390 return status; in amd8111_access()