Lines Matching refs:writeb
113 writeb(CMD_SCSI_RESET, ®s->command); /* assert RST */ in DEF_SCSI_QCMD()
115 writeb(CMD_RESET, ®s->command); in DEF_SCSI_QCMD()
118 writeb(CMD_NOP, ®s->command); in DEF_SCSI_QCMD()
129 writeb(state->host->this_id | CF1_PAR_ENABLE, ®s->config1); in mac53c94_init()
130 writeb(TIMO_VAL(250), ®s->sel_timeout); /* 250ms */ in mac53c94_init()
131 writeb(CLKF_VAL(state->clk_freq), ®s->clk_factor); in mac53c94_init()
132 writeb(CF2_FEATURE_EN, ®s->config2); in mac53c94_init()
133 writeb(0, ®s->config3); in mac53c94_init()
134 writeb(0, ®s->sync_period); in mac53c94_init()
135 writeb(0, ®s->sync_offset); in mac53c94_init()
158 writeb(0, ®s->count_lo); in mac53c94_start()
159 writeb(0, ®s->count_mid); in mac53c94_start()
160 writeb(0, ®s->count_hi); in mac53c94_start()
161 writeb(CMD_NOP + CMD_DMA_MODE, ®s->command); in mac53c94_start()
163 writeb(CMD_FLUSH, ®s->command); in mac53c94_start()
165 writeb(cmd->device->id, ®s->dest_id); in mac53c94_start()
166 writeb(0, ®s->sync_period); in mac53c94_start()
167 writeb(0, ®s->sync_offset); in mac53c94_start()
171 writeb(cmd->cmnd[i], ®s->fifo); in mac53c94_start()
174 writeb(CMD_SELECT, ®s->command); in mac53c94_start()
217 writeb(CMD_NOP, ®s->command); in mac53c94_interrupt()
235 writeb(CMD_NOP + CMD_DMA_MODE, ®s->command); in mac53c94_interrupt()
263 writeb(CMD_NOP, ®s->command); in mac53c94_interrupt()
271 writeb(nb, ®s->count_lo); in mac53c94_interrupt()
272 writeb(nb >> 8, ®s->count_mid); in mac53c94_interrupt()
273 writeb(CMD_DMA_MODE + CMD_NOP, ®s->command); in mac53c94_interrupt()
276 writeb(CMD_DMA_MODE + CMD_XFER_DATA, ®s->command); in mac53c94_interrupt()
281 writeb(CMD_I_COMPLETE, ®s->command); in mac53c94_interrupt()
304 writeb(nb, ®s->count_lo); in mac53c94_interrupt()
305 writeb(nb >> 8, ®s->count_mid); in mac53c94_interrupt()
306 writeb(CMD_DMA_MODE + CMD_NOP, ®s->command); in mac53c94_interrupt()
307 writeb(CMD_DMA_MODE + CMD_XFER_DATA, ®s->command); in mac53c94_interrupt()
316 writeb(CMD_I_COMPLETE, ®s->command); in mac53c94_interrupt()
327 writeb(CMD_ACCEPT_MSG, ®s->command); in mac53c94_interrupt()