Lines Matching refs:reg_data
377 static int cyapa_gen3_state_parse(struct cyapa *cyapa, u8 *reg_data, int len) in cyapa_gen3_state_parse() argument
382 if (reg_data[REG_BL_FILE] == BL_FILE && in cyapa_gen3_state_parse()
383 reg_data[REG_BL_ERROR] == BL_ERROR_NO_ERR_IDLE && in cyapa_gen3_state_parse()
384 (reg_data[REG_BL_STATUS] == in cyapa_gen3_state_parse()
386 reg_data[REG_BL_STATUS] == BL_STATUS_RUNNING)) { in cyapa_gen3_state_parse()
394 } else if (reg_data[REG_BL_FILE] == BL_FILE && in cyapa_gen3_state_parse()
395 (reg_data[REG_BL_STATUS] & BL_STATUS_RUNNING) == in cyapa_gen3_state_parse()
398 if (reg_data[REG_BL_STATUS] & BL_STATUS_BUSY) { in cyapa_gen3_state_parse()
401 if ((reg_data[REG_BL_ERROR] & BL_ERROR_BOOTLOADING) == in cyapa_gen3_state_parse()
407 } else if ((reg_data[REG_OP_STATUS] & OP_STATUS_SRC) && in cyapa_gen3_state_parse()
408 (reg_data[REG_OP_DATA1] & OP_DATA_VALID)) { in cyapa_gen3_state_parse()
414 if (GEN3_FINGER_NUM(reg_data[REG_OP_DATA1]) <= in cyapa_gen3_state_parse()
420 } else if (reg_data[REG_OP_STATUS] == 0x0C && in cyapa_gen3_state_parse()
421 reg_data[REG_OP_DATA1] == 0x08) { in cyapa_gen3_state_parse()
425 } else if (reg_data[REG_BL_STATUS] & in cyapa_gen3_state_parse()