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()
618 out_8(&ms->mesh->sequence, SEQ_ENBRESEL); in mesh_done()
651 out_8(&mr->sync_params, ASYNC_PARAMS); in set_sdtr()
674 out_8(&mr->sync_params, tp->sync_params); in set_sdtr()
689 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in start_phase()
696 out_8(&mr->count_hi, 0); in start_phase()
697 out_8(&mr->count_lo, 1); in start_phase()
698 out_8(&mr->sequence, SEQ_MSGIN + seq); in start_phase()
724 out_8(&mr->count_hi, 0); in start_phase()
725 out_8(&mr->sequence, SEQ_FLUSHFIFO); in start_phase()
734 out_8(&mr->bus_status0, BS0_ATN); /* explicit ATN */ in start_phase()
737 out_8(&mr->count_lo, 1); in start_phase()
738 out_8(&mr->sequence, SEQ_MSGOUT + seq); in start_phase()
739 out_8(&mr->bus_status0, 0); /* release explicit ATN */ in start_phase()
751 out_8(&mr->count_lo, ms->n_msgout - 1); in start_phase()
752 out_8(&mr->sequence, SEQ_MSGOUT + seq); in start_phase()
754 out_8(&mr->fifo, ms->msgout[i]); in start_phase()
765 out_8(&mr->dest_id, ms->conn_tgt); in start_phase()
766 out_8(&mr->sequence, SEQ_SELECT + SEQ_ATN); in start_phase()
769 out_8(&mr->sync_params, tp->sync_params); in start_phase()
770 out_8(&mr->count_hi, 0); in start_phase()
772 out_8(&mr->count_lo, cmd->cmd_len); in start_phase()
773 out_8(&mr->sequence, SEQ_COMMAND + seq); in start_phase()
775 out_8(&mr->fifo, cmd->cmnd[i]); in start_phase()
777 out_8(&mr->count_lo, 6); in start_phase()
778 out_8(&mr->sequence, SEQ_COMMAND + seq); in start_phase()
780 out_8(&mr->fifo, 0); in start_phase()
796 out_8(&mr->count_lo, nb); in start_phase()
797 out_8(&mr->count_hi, nb >> 8); in start_phase()
798 out_8(&mr->sequence, (tp->data_goes_out? in start_phase()
802 out_8(&mr->count_hi, 0); in start_phase()
803 out_8(&mr->count_lo, 1); in start_phase()
804 out_8(&mr->sequence, SEQ_STATUS + seq); in start_phase()
808 out_8(&mr->sequence, SEQ_ENBRESEL); in start_phase()
814 out_8(&mr->sequence, SEQ_BUSFREE); in start_phase()
907 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in reselected()
910 out_8(&mr->sequence, SEQ_ENBRESEL); in reselected()
916 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in reselected()
919 out_8(&mr->sequence, SEQ_ENBRESEL); in reselected()
922 out_8(&mr->sync_params, ASYNC_PARAMS); in reselected()
952 out_8(&mr->sync_params, tp->sync_params); in reselected()
1011 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in handle_reset()
1012 out_8(&mr->sequence, SEQ_FLUSHFIFO); in handle_reset()
1015 out_8(&mr->sync_params, ASYNC_PARAMS); in handle_reset()
1016 out_8(&mr->sequence, SEQ_ENBRESEL); in handle_reset()
1038 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in handle_error()
1064 out_8(&mr->interrupt, INT_CMDDONE); in handle_error()
1089 out_8(&mr->sequence, mr->sequence); in handle_error()
1131 out_8(&mr->interrupt, INT_EXCEPTION | INT_CMDDONE); in handle_exception()
1374 out_8(&mr->count_lo, 1); in phase_mismatch()
1375 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg); in phase_mismatch()
1378 out_8(&mr->fifo, ms->msgout[ms->n_msgout-1]); in phase_mismatch()
1392 out_8(&mr->sequence, SEQ_FLUSHFIFO); in phase_mismatch()
1464 out_8(&mr->count_lo, n - ms->n_msgin); in cmd_complete()
1465 out_8(&mr->sequence, SEQ_MSGIN + seq); in cmd_complete()
1474 out_8(&mr->sequence, SEQ_FLUSHFIFO); in cmd_complete()
1477 out_8(&mr->count_lo, 1); in cmd_complete()
1478 out_8(&mr->sequence, SEQ_MSGIN + SEQ_ATN + use_active_neg); in cmd_complete()
1493 out_8(&mr->count_lo, 1); in cmd_complete()
1494 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg + SEQ_ATN); in cmd_complete()
1521 out_8(&mr->sequence, SEQ_MSGOUT + use_active_neg); in cmd_complete()
1524 out_8(&mr->fifo, ms->msgout[ms->n_msgout-1]); in cmd_complete()
1527 out_8(&mr->sequence, SEQ_MSGIN + use_active_neg + SEQ_ATN); in cmd_complete()
1593 out_8(&mr->sequence, 0); in cmd_complete()
1594 out_8(&mr->interrupt, in cmd_complete()
1677 out_8(&mr->interrupt, INT_CMDDONE); in DEF_SCSI_QCMD()
1717 out_8(&mr->exception, 0xff); /* clear all exception bits */ in mesh_host_reset()
1718 out_8(&mr->error, 0xff); /* clear all error bits */ in mesh_host_reset()
1719 out_8(&mr->sequence, SEQ_RESETMESH); in mesh_host_reset()
1722 out_8(&mr->intr_mask, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_host_reset()
1723 out_8(&mr->source_id, ms->host->this_id); in mesh_host_reset()
1724 out_8(&mr->sel_timeout, 25); /* 250ms */ in mesh_host_reset()
1725 out_8(&mr->sync_params, ASYNC_PARAMS); in mesh_host_reset()
1728 out_8(&mr->bus_status1, BS1_RST); /* assert RST */ in mesh_host_reset()
1731 out_8(&mr->bus_status1, 0); /* negate RST */ in mesh_host_reset()
1821 out_8(&mr->intr_mask, 0); in mesh_shutdown()
1822 out_8(&mr->interrupt, INT_ERROR | INT_EXCEPTION | INT_CMDDONE); in mesh_shutdown()
1823 out_8(&mr->bus_status1, BS1_RST); in mesh_shutdown()
1826 out_8(&mr->bus_status1, 0); in mesh_shutdown()