Lines Matching refs:status_reg_value
558 static int twa_check_bits(u32 status_reg_value) in twa_check_bits() argument
562 if ((status_reg_value & TW_STATUS_EXPECTED_BITS) != TW_STATUS_EXPECTED_BITS) in twa_check_bits()
564 if ((status_reg_value & TW_STATUS_UNEXPECTED_BITS) != 0) in twa_check_bits()
908 static int twa_decode_bits(TW_Device_Extension *tw_dev, u32 status_reg_value) in twa_decode_bits() argument
913 if (status_reg_value & TW_STATUS_PCI_PARITY_ERROR) { in twa_decode_bits()
918 if (status_reg_value & TW_STATUS_PCI_ABORT) { in twa_decode_bits()
924 if (status_reg_value & TW_STATUS_QUEUE_ERROR) { in twa_decode_bits()
932 if (status_reg_value & TW_STATUS_MICROCONTROLLER_ERROR) { in twa_decode_bits()
947 u32 status_reg_value; in twa_empty_response_queue() local
950 status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); in twa_empty_response_queue()
952 …while (((status_reg_value & TW_STATUS_RESPONSE_QUEUE_EMPTY) == 0) && (count < TW_MAX_RESPONSE_DRAI… in twa_empty_response_queue()
954 status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); in twa_empty_response_queue()
1219 u32 status_reg_value; in twa_interrupt() local
1229 status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); in twa_interrupt()
1232 if (!(status_reg_value & TW_STATUS_VALID_INTERRUPT)) in twa_interrupt()
1242 if (twa_check_bits(status_reg_value)) { in twa_interrupt()
1243 if (twa_decode_bits(tw_dev, status_reg_value)) { in twa_interrupt()
1250 if (status_reg_value & TW_STATUS_HOST_INTERRUPT) in twa_interrupt()
1254 if (status_reg_value & TW_STATUS_ATTENTION_INTERRUPT) { in twa_interrupt()
1269 if (status_reg_value & TW_STATUS_COMMAND_INTERRUPT) { in twa_interrupt()
1290 if (status_reg_value & TW_STATUS_RESPONSE_INTERRUPT) { in twa_interrupt()
1293 while ((status_reg_value & TW_STATUS_RESPONSE_QUEUE_EMPTY) == 0) { in twa_interrupt()
1364 status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); in twa_interrupt()
1365 if (twa_check_bits(status_reg_value)) { in twa_interrupt()
1366 if (twa_decode_bits(tw_dev, status_reg_value)) { in twa_interrupt()
1458 u32 status_reg_value; in twa_poll_status() local
1462 status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); in twa_poll_status()
1465 if (twa_check_bits(status_reg_value)) in twa_poll_status()
1466 twa_decode_bits(tw_dev, status_reg_value); in twa_poll_status()
1468 while ((status_reg_value & flag) != flag) { in twa_poll_status()
1469 status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); in twa_poll_status()
1471 if (twa_check_bits(status_reg_value)) in twa_poll_status()
1472 twa_decode_bits(tw_dev, status_reg_value); in twa_poll_status()
1487 u32 status_reg_value; in twa_poll_status_gone() local
1491 status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); in twa_poll_status_gone()
1494 if (twa_check_bits(status_reg_value)) in twa_poll_status_gone()
1495 twa_decode_bits(tw_dev, status_reg_value); in twa_poll_status_gone()
1497 while ((status_reg_value & flag) != 0) { in twa_poll_status_gone()
1498 status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); in twa_poll_status_gone()
1499 if (twa_check_bits(status_reg_value)) in twa_poll_status_gone()
1500 twa_decode_bits(tw_dev, status_reg_value); in twa_poll_status_gone()
1515 u32 status_reg_value; in twa_post_command_packet() local
1528 status_reg_value = readl(TW_STATUS_REG_ADDR(tw_dev)); in twa_post_command_packet()
1530 if (twa_check_bits(status_reg_value)) in twa_post_command_packet()
1531 twa_decode_bits(tw_dev, status_reg_value); in twa_post_command_packet()
1533 …uest_count > 0) && (tw_dev->state[request_id] != TW_S_PENDING)) || (status_reg_value & TW_STATUS_C… in twa_post_command_packet()