Lines Matching refs:out_8

359 	out_8(&mr->exception, 0xff);	/* clear all exception bits */  in mesh_init()
360 out_8(&mr->error, 0xff); /* clear all error bits */ in mesh_init()
361 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_init()
364 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_init()
365 out_8(&mr->source_id, ms->host->this_id); in mesh_init()
366 out_8(&mr->sel_timeout, 25); /* 250ms */ in mesh_init()
367 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_init()
373 out_8(&mr->bus_status1, BS1_RST); /* assert RST */ in mesh_init()
376 out_8(&mr->bus_status1, 0); /* negate RST */ in mesh_init()
384 out_8(&mr->interrupt, 0xff); /* clear all interrupt bits */ in mesh_init()
385 out_8(&mr->sequence, SEQ_FLUSHFIFO); in mesh_init()
388 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_init()
389 out_8(&mr->sequence, SEQ_ENBRESEL); in mesh_init()
438 out_8(&mr->interrupt, INT_CMDDONE); in mesh_start_cmd()
439 out_8(&mr->sequence, SEQ_ENBRESEL); in mesh_start_cmd()
477 out_8(&mr->dest_id, mr->source_id); in mesh_start_cmd()
491 out_8(&mr->sequence, SEQ_DISRESEL); in mesh_start_cmd()
504 out_8(&mr->sequence, SEQ_ARBITRATE); in mesh_start_cmd()
518 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_start_cmd()
521 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_start_cmd()
522 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_start_cmd()
523 out_8(&mr->sequence, SEQ_ENBRESEL); in mesh_start_cmd()
612 out_8(&ms->mesh->sequence, SEQ_ENBRESEL); in mesh_done()
645 out_8(&mr->sync_params, ASYNC_PARAMS); in set_sdtr()
668 out_8(&mr->sync_params, tp->sync_params); in set_sdtr()
683 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in start_phase()
690 out_8(&mr->count_hi, 0); in start_phase()
691 out_8(&mr->count_lo, 1); in start_phase()
692 out_8(&mr->sequence, SEQ_MSGIN + seq); in start_phase()
718 out_8(&mr->count_hi, 0); in start_phase()
719 out_8(&mr->sequence, SEQ_FLUSHFIFO); in start_phase()
728 out_8(&mr->bus_status0, BS0_ATN); /* explicit ATN */ in start_phase()
731 out_8(&mr->count_lo, 1); in start_phase()
732 out_8(&mr->sequence, SEQ_MSGOUT + seq); in start_phase()
733 out_8(&mr->bus_status0, 0); /* release explicit ATN */ in start_phase()
745 out_8(&mr->count_lo, ms->n_msgout - 1); in start_phase()
746 out_8(&mr->sequence, SEQ_MSGOUT + seq); in start_phase()
748 out_8(&mr->fifo, ms->msgout[i]); in start_phase()
759 out_8(&mr->dest_id, ms->conn_tgt); in start_phase()
760 out_8(&mr->sequence, SEQ_SELECT + SEQ_ATN); in start_phase()
763 out_8(&mr->sync_params, tp->sync_params); in start_phase()
764 out_8(&mr->count_hi, 0); in start_phase()
766 out_8(&mr->count_lo, cmd->cmd_len); in start_phase()
767 out_8(&mr->sequence, SEQ_COMMAND + seq); in start_phase()
769 out_8(&mr->fifo, cmd->cmnd[i]); in start_phase()
771 out_8(&mr->count_lo, 6); in start_phase()
772 out_8(&mr->sequence, SEQ_COMMAND + seq); in start_phase()
774 out_8(&mr->fifo, 0); in start_phase()
790 out_8(&mr->count_lo, nb); in start_phase()
791 out_8(&mr->count_hi, nb >> 8); in start_phase()
792 out_8(&mr->sequence, (tp->data_goes_out? in start_phase()
796 out_8(&mr->count_hi, 0); in start_phase()
797 out_8(&mr->count_lo, 1); in start_phase()
798 out_8(&mr->sequence, SEQ_STATUS + seq); in start_phase()
802 out_8(&mr->sequence, SEQ_ENBRESEL); in start_phase()
808 out_8(&mr->sequence, SEQ_BUSFREE); in start_phase()
901 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in reselected()
904 out_8(&mr->sequence, SEQ_ENBRESEL); in reselected()
910 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in reselected()
913 out_8(&mr->sequence, SEQ_ENBRESEL); in reselected()
916 out_8(&mr->sync_params, ASYNC_PARAMS); in reselected()
946 out_8(&mr->sync_params, tp->sync_params); in reselected()
1005 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in handle_reset()
1006 out_8(&mr->sequence, SEQ_FLUSHFIFO); in handle_reset()
1009 out_8(&mr->sync_params, ASYNC_PARAMS); in handle_reset()
1010 out_8(&mr->sequence, SEQ_ENBRESEL); in handle_reset()
1032 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in handle_error()
1060 out_8(&mr->interrupt, INT_CMDDONE); in handle_error()
1085 out_8(&mr->sequence, mr->sequence); in handle_error()
1127 out_8(&mr->interrupt, INT_EXCEPTION | INT_CMDDONE); in handle_exception()
1371 out_8(&mr->count_lo, 1); in phase_mismatch()
1372 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg); in phase_mismatch()
1375 out_8(&mr->fifo, ms->msgout[ms->n_msgout-1]); in phase_mismatch()
1389 out_8(&mr->sequence, SEQ_FLUSHFIFO); in phase_mismatch()
1461 out_8(&mr->count_lo, n - ms->n_msgin); in cmd_complete()
1462 out_8(&mr->sequence, SEQ_MSGIN + seq); in cmd_complete()
1471 out_8(&mr->sequence, SEQ_FLUSHFIFO); in cmd_complete()
1474 out_8(&mr->count_lo, 1); in cmd_complete()
1475 out_8(&mr->sequence, SEQ_MSGIN + SEQ_ATN + use_active_neg); in cmd_complete()
1490 out_8(&mr->count_lo, 1); in cmd_complete()
1491 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg + SEQ_ATN); in cmd_complete()
1518 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg); in cmd_complete()
1521 out_8(&mr->fifo, ms->msgout[ms->n_msgout-1]); in cmd_complete()
1524 out_8(&mr->sequence, SEQ_MSGIN + use_active_neg + SEQ_ATN); in cmd_complete()
1590 out_8(&mr->sequence, 0); in cmd_complete()
1591 out_8(&mr->interrupt, in cmd_complete()
1675 out_8(&mr->interrupt, INT_CMDDONE); in DEF_SCSI_QCMD()
1718 out_8(&mr->exception, 0xff); /* clear all exception bits */ in mesh_host_reset()
1719 out_8(&mr->error, 0xff); /* clear all error bits */ in mesh_host_reset()
1720 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_host_reset()
1723 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_host_reset()
1724 out_8(&mr->source_id, ms->host->this_id); in mesh_host_reset()
1725 out_8(&mr->sel_timeout, 25); /* 250ms */ in mesh_host_reset()
1726 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_host_reset()
1729 out_8(&mr->bus_status1, BS1_RST); /* assert RST */ in mesh_host_reset()
1732 out_8(&mr->bus_status1, 0); /* negate RST */ in mesh_host_reset()
1822 out_8(&mr->intr_mask, 0); in mesh_shutdown()
1823 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_shutdown()
1824 out_8(&mr->bus_status1, BS1_RST); in mesh_shutdown()
1827 out_8(&mr->bus_status1, 0); in mesh_shutdown()