Lines Matching refs:status
170 #define GET_STATUS_STATE(status) (((status) >> 6) & 0x03) argument
175 #define GET_STATUS_ATN(status) ((status) & 0x04) argument
176 #define GET_STATUS_IBF(status) ((status) & 0x02) argument
177 #define GET_STATUS_OBF(status) ((status) & 0x01) argument
214 static inline int check_ibf(struct si_sm_data *kcs, unsigned char status, in check_ibf() argument
217 if (GET_STATUS_IBF(status)) { in check_ibf()
230 static inline int check_obf(struct si_sm_data *kcs, unsigned char status, in check_obf() argument
233 if (!GET_STATUS_OBF(status)) { in check_obf()
246 static void clear_obf(struct si_sm_data *kcs, unsigned char status) in clear_obf() argument
248 if (GET_STATUS_OBF(status)) in clear_obf()
332 unsigned char status; in kcs_event() local
335 status = read_status(kcs); in kcs_event()
339 "KCS: State = %d, %x\n", kcs->state, status); in kcs_event()
342 if (!check_ibf(kcs, status, time)) in kcs_event()
346 state = GET_STATUS_STATE(status); in kcs_event()
351 clear_obf(kcs, status); in kcs_event()
353 if (GET_STATUS_ATN(status)) in kcs_event()
365 clear_obf(kcs, status); in kcs_event()
393 clear_obf(kcs, status); in kcs_event()
409 clear_obf(kcs, status); in kcs_event()
423 if (!check_obf(kcs, status, time)) in kcs_event()
436 clear_obf(kcs, status); in kcs_event()
444 clear_obf(kcs, status); in kcs_event()
445 status = read_status(kcs); in kcs_event()
446 if (GET_STATUS_OBF(status)) in kcs_event()
455 clear_obf(kcs, status); in kcs_event()
466 if (!check_obf(kcs, status, time)) in kcs_event()
469 clear_obf(kcs, status); in kcs_event()
481 if (!check_obf(kcs, status, time)) in kcs_event()
484 clear_obf(kcs, status); in kcs_event()