Lines Matching refs:out_8
368 out_8(&mr->exception, 0xff); /* clear all exception bits */ in mesh_init()
369 out_8(&mr->error, 0xff); /* clear all error bits */ in mesh_init()
370 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_init()
373 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_init()
374 out_8(&mr->source_id, ms->host->this_id); in mesh_init()
375 out_8(&mr->sel_timeout, 25); /* 250ms */ in mesh_init()
376 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_init()
382 out_8(&mr->bus_status1, BS1_RST); /* assert RST */ in mesh_init()
385 out_8(&mr->bus_status1, 0); /* negate RST */ in mesh_init()
393 out_8(&mr->interrupt, 0xff); /* clear all interrupt bits */ in mesh_init()
394 out_8(&mr->sequence, SEQ_FLUSHFIFO); in mesh_init()
397 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_init()
398 out_8(&mr->sequence, SEQ_ENBRESEL); in mesh_init()
447 out_8(&mr->interrupt, INT_CMDDONE); in mesh_start_cmd()
448 out_8(&mr->sequence, SEQ_ENBRESEL); in mesh_start_cmd()
486 out_8(&mr->dest_id, mr->source_id); in mesh_start_cmd()
500 out_8(&mr->sequence, SEQ_DISRESEL); in mesh_start_cmd()
513 out_8(&mr->sequence, SEQ_ARBITRATE); in mesh_start_cmd()
527 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_start_cmd()
530 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_start_cmd()
531 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_start_cmd()
532 out_8(&mr->sequence, SEQ_ENBRESEL); in mesh_start_cmd()
619 out_8(&ms->mesh->sequence, SEQ_ENBRESEL); in mesh_done()
652 out_8(&mr->sync_params, ASYNC_PARAMS); in set_sdtr()
675 out_8(&mr->sync_params, tp->sync_params); in set_sdtr()
690 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in start_phase()
697 out_8(&mr->count_hi, 0); in start_phase()
698 out_8(&mr->count_lo, 1); in start_phase()
699 out_8(&mr->sequence, SEQ_MSGIN + seq); in start_phase()
725 out_8(&mr->count_hi, 0); in start_phase()
726 out_8(&mr->sequence, SEQ_FLUSHFIFO); in start_phase()
735 out_8(&mr->bus_status0, BS0_ATN); /* explicit ATN */ in start_phase()
738 out_8(&mr->count_lo, 1); in start_phase()
739 out_8(&mr->sequence, SEQ_MSGOUT + seq); in start_phase()
740 out_8(&mr->bus_status0, 0); /* release explicit ATN */ in start_phase()
752 out_8(&mr->count_lo, ms->n_msgout - 1); in start_phase()
753 out_8(&mr->sequence, SEQ_MSGOUT + seq); in start_phase()
755 out_8(&mr->fifo, ms->msgout[i]); in start_phase()
766 out_8(&mr->dest_id, ms->conn_tgt); in start_phase()
767 out_8(&mr->sequence, SEQ_SELECT + SEQ_ATN); in start_phase()
770 out_8(&mr->sync_params, tp->sync_params); in start_phase()
771 out_8(&mr->count_hi, 0); in start_phase()
773 out_8(&mr->count_lo, cmd->cmd_len); in start_phase()
774 out_8(&mr->sequence, SEQ_COMMAND + seq); in start_phase()
776 out_8(&mr->fifo, cmd->cmnd[i]); in start_phase()
778 out_8(&mr->count_lo, 6); in start_phase()
779 out_8(&mr->sequence, SEQ_COMMAND + seq); in start_phase()
781 out_8(&mr->fifo, 0); in start_phase()
797 out_8(&mr->count_lo, nb); in start_phase()
798 out_8(&mr->count_hi, nb >> 8); in start_phase()
799 out_8(&mr->sequence, (tp->data_goes_out? in start_phase()
803 out_8(&mr->count_hi, 0); in start_phase()
804 out_8(&mr->count_lo, 1); in start_phase()
805 out_8(&mr->sequence, SEQ_STATUS + seq); in start_phase()
809 out_8(&mr->sequence, SEQ_ENBRESEL); in start_phase()
815 out_8(&mr->sequence, SEQ_BUSFREE); in start_phase()
908 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in reselected()
911 out_8(&mr->sequence, SEQ_ENBRESEL); in reselected()
917 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in reselected()
920 out_8(&mr->sequence, SEQ_ENBRESEL); in reselected()
923 out_8(&mr->sync_params, ASYNC_PARAMS); in reselected()
953 out_8(&mr->sync_params, tp->sync_params); in reselected()
1012 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in handle_reset()
1013 out_8(&mr->sequence, SEQ_FLUSHFIFO); in handle_reset()
1016 out_8(&mr->sync_params, ASYNC_PARAMS); in handle_reset()
1017 out_8(&mr->sequence, SEQ_ENBRESEL); in handle_reset()
1039 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in handle_error()
1067 out_8(&mr->interrupt, INT_CMDDONE); in handle_error()
1092 out_8(&mr->sequence, mr->sequence); in handle_error()
1134 out_8(&mr->interrupt, INT_EXCEPTION | INT_CMDDONE); in handle_exception()
1378 out_8(&mr->count_lo, 1); in phase_mismatch()
1379 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg); in phase_mismatch()
1382 out_8(&mr->fifo, ms->msgout[ms->n_msgout-1]); in phase_mismatch()
1396 out_8(&mr->sequence, SEQ_FLUSHFIFO); in phase_mismatch()
1468 out_8(&mr->count_lo, n - ms->n_msgin); in cmd_complete()
1469 out_8(&mr->sequence, SEQ_MSGIN + seq); in cmd_complete()
1478 out_8(&mr->sequence, SEQ_FLUSHFIFO); in cmd_complete()
1481 out_8(&mr->count_lo, 1); in cmd_complete()
1482 out_8(&mr->sequence, SEQ_MSGIN + SEQ_ATN + use_active_neg); in cmd_complete()
1497 out_8(&mr->count_lo, 1); in cmd_complete()
1498 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg + SEQ_ATN); in cmd_complete()
1525 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg); in cmd_complete()
1528 out_8(&mr->fifo, ms->msgout[ms->n_msgout-1]); in cmd_complete()
1531 out_8(&mr->sequence, SEQ_MSGIN + use_active_neg + SEQ_ATN); in cmd_complete()
1597 out_8(&mr->sequence, 0); in cmd_complete()
1598 out_8(&mr->interrupt, in cmd_complete()
1681 out_8(&mr->interrupt, INT_CMDDONE); in DEF_SCSI_QCMD()
1724 out_8(&mr->exception, 0xff); /* clear all exception bits */ in mesh_host_reset()
1725 out_8(&mr->error, 0xff); /* clear all error bits */ in mesh_host_reset()
1726 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_host_reset()
1729 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_host_reset()
1730 out_8(&mr->source_id, ms->host->this_id); in mesh_host_reset()
1731 out_8(&mr->sel_timeout, 25); /* 250ms */ in mesh_host_reset()
1732 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_host_reset()
1735 out_8(&mr->bus_status1, BS1_RST); /* assert RST */ in mesh_host_reset()
1738 out_8(&mr->bus_status1, 0); /* negate RST */ in mesh_host_reset()
1828 out_8(&mr->intr_mask, 0); in mesh_shutdown()
1829 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_shutdown()
1830 out_8(&mr->bus_status1, BS1_RST); in mesh_shutdown()
1833 out_8(&mr->bus_status1, 0); in mesh_shutdown()