Lines Matching refs:cpu_to_scr
3505 *dst++ = cpu_to_scr(opcode);
3554 dst[-1] = cpu_to_scr(opcode & ~SCR_NO_FLUSH);
3629 *dst++ = cpu_to_scr(new);
3632 *dst++ = cpu_to_scr(*src++);
4274 cp->phys.header.wgoalp = cpu_to_scr(goalp);
4275 cp->phys.header.wlastp = cpu_to_scr(lastp);
4296 cp->phys.header.lastp = cpu_to_scr(lastp);
4297 cp->phys.header.goalp = cpu_to_scr(goalp);
4301 cpu_to_scr(NCB_SCRIPTH_PHYS (np, data_io));
4303 cp->phys.header.savep= cpu_to_scr(lastp);
4325 cp->start.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, select));
4326 cp->restart.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, resel_dsa));
4336 cp->phys.smsg.addr = cpu_to_scr(CCB_PHYS (cp, scsi_smsg));
4337 cp->phys.smsg.size = cpu_to_scr(msglen);
4343 cp->phys.cmd.addr = cpu_to_scr(CCB_PHYS (cp, cdb_buf[0]));
4344 cp->phys.cmd.size = cpu_to_scr(cmd->cmd_len);
4408 cpu_to_scr(CCB_PHYS (cp, restart));
4424 np->scripth->tryloop [qidx] = cpu_to_scr(NCB_SCRIPT_PHYS (np, idle));
4426 np->scripth->tryloop [np->squeueput] = cpu_to_scr(CCB_PHYS (cp, start));
4982 cpu_to_scr(NCB_SCRIPT_PHYS (np, select));
5016 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_plug));
5019 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_end));
5116 cpu_to_scr(NCB_SCRIPT_PHYS (np, idle));
5122 np->script0->startpos[0] = cpu_to_scr(NCB_SCRIPTH_PHYS (np, tryloop));
5131 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_end));
5138 np->script0->done_pos[0] = cpu_to_scr(NCB_SCRIPTH_PHYS (np,done_queue));
5141 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_plug));
5561 cpu_to_scr(NCB_SCRIPT_PHYS(np, resel_tag)) :
5562 cpu_to_scr(NCB_SCRIPT_PHYS(np, resel_notag));
6310 newcmd[0] = cpu_to_scr(((cmd & 0x0f) << 24) | rest);
6311 newcmd[1] = cpu_to_scr(oadr + olen - rest);
6312 newcmd[2] = cpu_to_scr(SCR_JUMP);
6313 newcmd[3] = cpu_to_scr(nxtdsp);
6367 np->scripth->nxtdsp_go_on[0] = cpu_to_scr(dsp + 8);
6416 cpu_to_scr(NCB_SCRIPTH_PHYS (np, skip));
6471 cp->phys.smsg.addr = cpu_to_scr(CCB_PHYS (cp, scsi_smsg2));
6472 cp->phys.smsg.size = cpu_to_scr(1);
6477 cp->phys.cmd.addr = cpu_to_scr(CCB_PHYS (cp, sensecmd));
6478 cp->phys.cmd.size = cpu_to_scr(6);
6491 cp->phys.sense.addr = cpu_to_scr(CCB_PHYS(cp,sense_buf[0]));
6492 cp->phys.sense.size = cpu_to_scr(sizeof(cp->sense_buf));
6497 startp = cpu_to_scr(NCB_SCRIPTH_PHYS (np, sdata_in));
6510 cpu_to_scr(NCB_SCRIPT_PHYS (np, select));
6517 cpu_to_scr(NCB_SCRIPTH_PHYS (np, select_no_atn));
7100 cpu_to_scr(NCB_SCRIPTH_PHYS(np, bad_i_t_l_q));
7103 cpu_to_scr(NCB_SCRIPTH_PHYS(np, bad_i_t_l));
7157 cp->start.setup_dsa[0] = cpu_to_scr(copy_4);
7158 cp->start.setup_dsa[1] = cpu_to_scr(CCB_PHYS(cp, start.p_phys));
7159 cp->start.setup_dsa[2] = cpu_to_scr(ncr_reg_bus_addr(nc_dsa));
7160 cp->start.schedule.l_cmd = cpu_to_scr(SCR_JUMP);
7161 cp->start.p_phys = cpu_to_scr(CCB_PHYS(cp, phys));
7165 cp->start.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, idle));
7166 cp->restart.schedule.l_paddr = cpu_to_scr(NCB_SCRIPTH_PHYS (np, abort));
7236 cpu_to_scr((SCR_JUMP ^ IFFALSE (DATA (0x80 + tn))));
7243 tp->getscr[0] = cpu_to_scr(copy_1);
7244 tp->getscr[1] = cpu_to_scr(vtobus (&tp->sval));
7246 tp->getscr[2] = cpu_to_scr(ncr_reg_bus_addr(nc_sxfer) ^ 3);
7248 tp->getscr[2] = cpu_to_scr(ncr_reg_bus_addr(nc_sxfer));
7255 tp->getscr[3] = cpu_to_scr(copy_1);
7256 tp->getscr[4] = cpu_to_scr(vtobus (&tp->wval));
7258 tp->getscr[5] = cpu_to_scr(ncr_reg_bus_addr(nc_scntl3) ^ 3);
7260 tp->getscr[5] = cpu_to_scr(ncr_reg_bus_addr(nc_scntl3));
7267 tp->call_lun.l_cmd = cpu_to_scr(SCR_CALL);
7268 tp->call_lun.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, resel_lun));
7277 cpu_to_scr((SCR_JUMP ^ IFTRUE (MASK (i, 3))));
7279 cpu_to_scr(NCB_SCRIPTH_PHYS (np, bad_identify));
7285 np->jump_tcb[th].l_paddr = cpu_to_scr(vtobus (&tp->jump_tcb));
7353 lp->p_jump_ccb = cpu_to_scr(vtobus(lp->jump_ccb));
7367 cpu_to_scr((SCR_JUMP ^ IFFALSE (MASK (0x80+ln, 0xff))));
7370 lp->load_jump_ccb[0] = cpu_to_scr(copy_4);
7371 lp->load_jump_ccb[1] = cpu_to_scr(vtobus (&lp->p_jump_ccb));
7372 lp->load_jump_ccb[2] = cpu_to_scr(ncr_reg_bus_addr(nc_temp));
7374 lp->jump_tag.l_cmd = cpu_to_scr(SCR_JUMP);
7375 lp->jump_tag.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, resel_notag));
7380 tp->jump_lcb[lh].l_paddr = cpu_to_scr(vtobus (&lp->jump_lcb));
7422 lp->p_jump_ccb = cpu_to_scr(vtobus(lp->jump_ccb));
7425 cpu_to_scr(NCB_SCRIPTH_PHYS (np, bad_i_t_l_q));
7546 np->ncr_cache = cpu_to_scr(host_wr);
8216 cpu_to_scr(SCR_REG_REG(gpreg, SCR_OR, 0x01));
8218 cpu_to_scr(SCR_REG_REG(gpreg, SCR_AND, 0xfe));
8220 cpu_to_scr(SCR_REG_REG(gpreg, SCR_AND, 0xfe));
8230 cpu_to_scr((SCR_JUMP ^ IFTRUE (MASK (i, 3))));
8232 cpu_to_scr(NCB_SCRIPTH_PHYS (np, bad_target));