Lines Matching refs:status
188 #define GET_STATUS_STATE(status) (((status) >> 6) & 0x03) argument
193 #define GET_STATUS_ATN(status) ((status) & 0x04) argument
194 #define GET_STATUS_IBF(status) ((status) & 0x02) argument
195 #define GET_STATUS_OBF(status) ((status) & 0x01) argument
232 static inline int check_ibf(struct si_sm_data *kcs, unsigned char status, in check_ibf() argument
235 if (GET_STATUS_IBF(status)) { in check_ibf()
248 static inline int check_obf(struct si_sm_data *kcs, unsigned char status, in check_obf() argument
251 if (!GET_STATUS_OBF(status)) { in check_obf()
264 static void clear_obf(struct si_sm_data *kcs, unsigned char status) in clear_obf() argument
266 if (GET_STATUS_OBF(status)) in clear_obf()
348 unsigned char status; in kcs_event() local
351 status = read_status(kcs); in kcs_event()
354 printk(KERN_DEBUG "KCS: State = %d, %x\n", kcs->state, status); in kcs_event()
357 if (!check_ibf(kcs, status, time)) in kcs_event()
361 state = GET_STATUS_STATE(status); in kcs_event()
366 clear_obf(kcs, status); in kcs_event()
368 if (GET_STATUS_ATN(status)) in kcs_event()
380 clear_obf(kcs, status); in kcs_event()
408 clear_obf(kcs, status); in kcs_event()
424 clear_obf(kcs, status); in kcs_event()
438 if (!check_obf(kcs, status, time)) in kcs_event()
451 clear_obf(kcs, status); in kcs_event()
459 clear_obf(kcs, status); in kcs_event()
460 status = read_status(kcs); in kcs_event()
461 if (GET_STATUS_OBF(status)) in kcs_event()
470 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()
496 if (!check_obf(kcs, status, time)) in kcs_event()
499 clear_obf(kcs, status); in kcs_event()