Lines Matching refs:status_reg_value

240 static int tw_check_bits(u32 status_reg_value)  in tw_check_bits()  argument
242 if ((status_reg_value & TW_STATUS_EXPECTED_BITS) != TW_STATUS_EXPECTED_BITS) { in tw_check_bits()
243 dprintk(KERN_WARNING "3w-xxxx: tw_check_bits(): No expected bits (0x%x).\n", status_reg_value); in tw_check_bits()
246 if ((status_reg_value & TW_STATUS_UNEXPECTED_BITS) != 0) { in tw_check_bits()
247 …printk(KERN_WARNING "3w-xxxx: tw_check_bits(): Found unexpected bits (0x%x).\n", status_reg_value); in tw_check_bits()
255 static int tw_decode_bits(TW_Device_Extension *tw_dev, u32 status_reg_value, int print_host) in tw_decode_bits() argument
266 if (status_reg_value & TW_STATUS_PCI_PARITY_ERROR) { in tw_decode_bits()
271 if (status_reg_value & TW_STATUS_PCI_ABORT) { in tw_decode_bits()
277 if (status_reg_value & TW_STATUS_QUEUE_ERROR) { in tw_decode_bits()
282 if (status_reg_value & TW_STATUS_SBUF_WRITE_ERROR) { in tw_decode_bits()
287 if (status_reg_value & TW_STATUS_MICROCONTROLLER_ERROR) { in tw_decode_bits()
301 u32 status_reg_value; in tw_poll_status() local
305 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in tw_poll_status()
308 if (tw_check_bits(status_reg_value)) in tw_poll_status()
309 tw_decode_bits(tw_dev, status_reg_value, 0); in tw_poll_status()
311 while ((status_reg_value & flag) != flag) { in tw_poll_status()
312 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in tw_poll_status()
314 if (tw_check_bits(status_reg_value)) in tw_poll_status()
315 tw_decode_bits(tw_dev, status_reg_value, 0); in tw_poll_status()
330 u32 status_reg_value; in tw_poll_status_gone() local
334 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in tw_poll_status_gone()
337 if (tw_check_bits(status_reg_value)) in tw_poll_status_gone()
338 tw_decode_bits(tw_dev, status_reg_value, 0); in tw_poll_status_gone()
340 while ((status_reg_value & flag) != 0) { in tw_poll_status_gone()
341 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in tw_poll_status_gone()
343 if (tw_check_bits(status_reg_value)) in tw_poll_status_gone()
344 tw_decode_bits(tw_dev, status_reg_value, 0); in tw_poll_status_gone()
359 u32 status_reg_value; in tw_post_command_packet() local
364 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in tw_post_command_packet()
366 if (tw_check_bits(status_reg_value)) { in tw_post_command_packet()
368 tw_decode_bits(tw_dev, status_reg_value, 1); in tw_post_command_packet()
371 if ((status_reg_value & TW_STATUS_COMMAND_QUEUE_FULL) == 0) { in tw_post_command_packet()
448 u32 status_reg_value; in tw_check_errors() local
450 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in tw_check_errors()
452 if (TW_STATUS_ERRORS(status_reg_value) || tw_check_bits(status_reg_value)) { in tw_check_errors()
453 tw_decode_bits(tw_dev, status_reg_value, 0); in tw_check_errors()
463 u32 status_reg_value; in tw_empty_response_que() local
465 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in tw_empty_response_que()
467 while ((status_reg_value & TW_STATUS_RESPONSE_QUEUE_EMPTY) == 0) { in tw_empty_response_que()
469 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in tw_empty_response_que()
548 u32 status_reg_value; in tw_aen_read_queue() local
553 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in tw_aen_read_queue()
554 if (tw_check_bits(status_reg_value)) { in tw_aen_read_queue()
556 tw_decode_bits(tw_dev, status_reg_value, 1); in tw_aen_read_queue()
595 if ((status_reg_value & TW_STATUS_COMMAND_QUEUE_FULL) == 0) { in tw_aen_read_queue()
2000 u32 status_reg_value; in DEF_SCSI_QCMD() local
2011 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in DEF_SCSI_QCMD()
2014 if (!(status_reg_value & TW_STATUS_VALID_INTERRUPT)) in DEF_SCSI_QCMD()
2024 if (tw_check_bits(status_reg_value)) { in DEF_SCSI_QCMD()
2026 if (tw_decode_bits(tw_dev, status_reg_value, 1)) { in DEF_SCSI_QCMD()
2033 if (status_reg_value & TW_STATUS_HOST_INTERRUPT) { in DEF_SCSI_QCMD()
2039 if (status_reg_value & TW_STATUS_ATTENTION_INTERRUPT) { in DEF_SCSI_QCMD()
2052 if (status_reg_value & TW_STATUS_COMMAND_INTERRUPT) { in DEF_SCSI_QCMD()
2078 if (status_reg_value & TW_STATUS_RESPONSE_INTERRUPT) { in DEF_SCSI_QCMD()
2080 while ((status_reg_value & TW_STATUS_RESPONSE_QUEUE_EMPTY) == 0) { in DEF_SCSI_QCMD()
2176 status_reg_value = inl(TW_STATUS_REG_ADDR(tw_dev)); in DEF_SCSI_QCMD()
2177 if (tw_check_bits(status_reg_value)) { in DEF_SCSI_QCMD()
2179 if (tw_decode_bits(tw_dev, status_reg_value, 1)) { in DEF_SCSI_QCMD()