Lines Matching refs:out_8

367 	out_8(&mr->exception, 0xff);	/* clear all exception bits */  in mesh_init()
368 out_8(&mr->error, 0xff); /* clear all error bits */ in mesh_init()
369 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_init()
372 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_init()
373 out_8(&mr->source_id, ms->host->this_id); in mesh_init()
374 out_8(&mr->sel_timeout, 25); /* 250ms */ in mesh_init()
375 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_init()
381 out_8(&mr->bus_status1, BS1_RST); /* assert RST */ in mesh_init()
384 out_8(&mr->bus_status1, 0); /* negate RST */ in mesh_init()
392 out_8(&mr->interrupt, 0xff); /* clear all interrupt bits */ in mesh_init()
393 out_8(&mr->sequence, SEQ_FLUSHFIFO); in mesh_init()
396 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_init()
397 out_8(&mr->sequence, SEQ_ENBRESEL); in mesh_init()
446 out_8(&mr->interrupt, INT_CMDDONE); in mesh_start_cmd()
447 out_8(&mr->sequence, SEQ_ENBRESEL); in mesh_start_cmd()
485 out_8(&mr->dest_id, mr->source_id); in mesh_start_cmd()
499 out_8(&mr->sequence, SEQ_DISRESEL); in mesh_start_cmd()
512 out_8(&mr->sequence, SEQ_ARBITRATE); in mesh_start_cmd()
526 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_start_cmd()
529 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_start_cmd()
530 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_start_cmd()
531 out_8(&mr->sequence, SEQ_ENBRESEL); in mesh_start_cmd()
617 out_8(&ms->mesh->sequence, SEQ_ENBRESEL); in mesh_done()
650 out_8(&mr->sync_params, ASYNC_PARAMS); in set_sdtr()
673 out_8(&mr->sync_params, tp->sync_params); in set_sdtr()
688 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in start_phase()
695 out_8(&mr->count_hi, 0); in start_phase()
696 out_8(&mr->count_lo, 1); in start_phase()
697 out_8(&mr->sequence, SEQ_MSGIN + seq); in start_phase()
723 out_8(&mr->count_hi, 0); in start_phase()
724 out_8(&mr->sequence, SEQ_FLUSHFIFO); in start_phase()
733 out_8(&mr->bus_status0, BS0_ATN); /* explicit ATN */ in start_phase()
736 out_8(&mr->count_lo, 1); in start_phase()
737 out_8(&mr->sequence, SEQ_MSGOUT + seq); in start_phase()
738 out_8(&mr->bus_status0, 0); /* release explicit ATN */ in start_phase()
750 out_8(&mr->count_lo, ms->n_msgout - 1); in start_phase()
751 out_8(&mr->sequence, SEQ_MSGOUT + seq); in start_phase()
753 out_8(&mr->fifo, ms->msgout[i]); in start_phase()
764 out_8(&mr->dest_id, ms->conn_tgt); in start_phase()
765 out_8(&mr->sequence, SEQ_SELECT + SEQ_ATN); in start_phase()
768 out_8(&mr->sync_params, tp->sync_params); in start_phase()
769 out_8(&mr->count_hi, 0); in start_phase()
771 out_8(&mr->count_lo, cmd->cmd_len); in start_phase()
772 out_8(&mr->sequence, SEQ_COMMAND + seq); in start_phase()
774 out_8(&mr->fifo, cmd->cmnd[i]); in start_phase()
776 out_8(&mr->count_lo, 6); in start_phase()
777 out_8(&mr->sequence, SEQ_COMMAND + seq); in start_phase()
779 out_8(&mr->fifo, 0); in start_phase()
795 out_8(&mr->count_lo, nb); in start_phase()
796 out_8(&mr->count_hi, nb >> 8); in start_phase()
797 out_8(&mr->sequence, (tp->data_goes_out? in start_phase()
801 out_8(&mr->count_hi, 0); in start_phase()
802 out_8(&mr->count_lo, 1); in start_phase()
803 out_8(&mr->sequence, SEQ_STATUS + seq); in start_phase()
807 out_8(&mr->sequence, SEQ_ENBRESEL); in start_phase()
813 out_8(&mr->sequence, SEQ_BUSFREE); in start_phase()
906 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in reselected()
909 out_8(&mr->sequence, SEQ_ENBRESEL); in reselected()
915 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in reselected()
918 out_8(&mr->sequence, SEQ_ENBRESEL); in reselected()
921 out_8(&mr->sync_params, ASYNC_PARAMS); in reselected()
951 out_8(&mr->sync_params, tp->sync_params); in reselected()
1010 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in handle_reset()
1011 out_8(&mr->sequence, SEQ_FLUSHFIFO); in handle_reset()
1014 out_8(&mr->sync_params, ASYNC_PARAMS); in handle_reset()
1015 out_8(&mr->sequence, SEQ_ENBRESEL); in handle_reset()
1037 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in handle_error()
1063 out_8(&mr->interrupt, INT_CMDDONE); in handle_error()
1088 out_8(&mr->sequence, mr->sequence); in handle_error()
1130 out_8(&mr->interrupt, INT_EXCEPTION | INT_CMDDONE); in handle_exception()
1373 out_8(&mr->count_lo, 1); in phase_mismatch()
1374 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg); in phase_mismatch()
1377 out_8(&mr->fifo, ms->msgout[ms->n_msgout-1]); in phase_mismatch()
1391 out_8(&mr->sequence, SEQ_FLUSHFIFO); in phase_mismatch()
1463 out_8(&mr->count_lo, n - ms->n_msgin); in cmd_complete()
1464 out_8(&mr->sequence, SEQ_MSGIN + seq); in cmd_complete()
1473 out_8(&mr->sequence, SEQ_FLUSHFIFO); in cmd_complete()
1476 out_8(&mr->count_lo, 1); in cmd_complete()
1477 out_8(&mr->sequence, SEQ_MSGIN + SEQ_ATN + use_active_neg); in cmd_complete()
1492 out_8(&mr->count_lo, 1); in cmd_complete()
1493 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg + SEQ_ATN); in cmd_complete()
1520 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg); in cmd_complete()
1523 out_8(&mr->fifo, ms->msgout[ms->n_msgout-1]); in cmd_complete()
1526 out_8(&mr->sequence, SEQ_MSGIN + use_active_neg + SEQ_ATN); in cmd_complete()
1592 out_8(&mr->sequence, 0); in cmd_complete()
1593 out_8(&mr->interrupt, in cmd_complete()
1676 out_8(&mr->interrupt, INT_CMDDONE); in DEF_SCSI_QCMD()
1716 out_8(&mr->exception, 0xff); /* clear all exception bits */ in mesh_host_reset()
1717 out_8(&mr->error, 0xff); /* clear all error bits */ in mesh_host_reset()
1718 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_host_reset()
1721 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_host_reset()
1722 out_8(&mr->source_id, ms->host->this_id); in mesh_host_reset()
1723 out_8(&mr->sel_timeout, 25); /* 250ms */ in mesh_host_reset()
1724 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_host_reset()
1727 out_8(&mr->bus_status1, BS1_RST); /* assert RST */ in mesh_host_reset()
1730 out_8(&mr->bus_status1, 0); /* negate RST */ in mesh_host_reset()
1820 out_8(&mr->intr_mask, 0); in mesh_shutdown()
1821 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_shutdown()
1822 out_8(&mr->bus_status1, BS1_RST); in mesh_shutdown()
1825 out_8(&mr->bus_status1, 0); in mesh_shutdown()