Lines Matching refs:cpu_to_scr

3497 		*dst++ = cpu_to_scr(opcode);  in ncr_script_copy_and_bind()
3546 dst[-1] = cpu_to_scr(opcode & ~SCR_NO_FLUSH); in ncr_script_copy_and_bind()
3621 *dst++ = cpu_to_scr(new); in ncr_script_copy_and_bind()
3624 *dst++ = cpu_to_scr(*src++); in ncr_script_copy_and_bind()
4269 cp->phys.header.wgoalp = cpu_to_scr(goalp); in ncr_queue_command()
4270 cp->phys.header.wlastp = cpu_to_scr(lastp); in ncr_queue_command()
4291 cp->phys.header.lastp = cpu_to_scr(lastp); in ncr_queue_command()
4292 cp->phys.header.goalp = cpu_to_scr(goalp); in ncr_queue_command()
4296 cpu_to_scr(NCB_SCRIPTH_PHYS (np, data_io)); in ncr_queue_command()
4298 cp->phys.header.savep= cpu_to_scr(lastp); in ncr_queue_command()
4320 cp->start.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, select)); in ncr_queue_command()
4321 cp->restart.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, resel_dsa)); in ncr_queue_command()
4331 cp->phys.smsg.addr = cpu_to_scr(CCB_PHYS (cp, scsi_smsg)); in ncr_queue_command()
4332 cp->phys.smsg.size = cpu_to_scr(msglen); in ncr_queue_command()
4338 cp->phys.cmd.addr = cpu_to_scr(CCB_PHYS (cp, cdb_buf[0])); in ncr_queue_command()
4339 cp->phys.cmd.size = cpu_to_scr(cmd->cmd_len); in ncr_queue_command()
4403 cpu_to_scr(CCB_PHYS (cp, restart)); in ncr_start_next_ccb()
4419 np->scripth->tryloop [qidx] = cpu_to_scr(NCB_SCRIPT_PHYS (np, idle)); in ncr_put_start_queue()
4421 np->scripth->tryloop [np->squeueput] = cpu_to_scr(CCB_PHYS (cp, start)); in ncr_put_start_queue()
4950 cpu_to_scr(NCB_SCRIPT_PHYS (np, select)); in ncr_ccb_skipped()
4984 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_plug)); in ncr_wakeup_done()
4987 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_end)); in ncr_wakeup_done()
5084 cpu_to_scr(NCB_SCRIPT_PHYS (np, idle)); in ncr_init()
5090 np->script0->startpos[0] = cpu_to_scr(NCB_SCRIPTH_PHYS (np, tryloop)); in ncr_init()
5099 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_end)); in ncr_init()
5106 np->script0->done_pos[0] = cpu_to_scr(NCB_SCRIPTH_PHYS (np,done_queue)); in ncr_init()
5109 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_plug)); in ncr_init()
5528 cpu_to_scr(NCB_SCRIPT_PHYS(np, resel_tag)) : in ncr_setup_tags()
5529 cpu_to_scr(NCB_SCRIPT_PHYS(np, resel_notag)); in ncr_setup_tags()
6277 newcmd[0] = cpu_to_scr(((cmd & 0x0f) << 24) | rest); in ncr_int_ma()
6278 newcmd[1] = cpu_to_scr(oadr + olen - rest); in ncr_int_ma()
6279 newcmd[2] = cpu_to_scr(SCR_JUMP); in ncr_int_ma()
6280 newcmd[3] = cpu_to_scr(nxtdsp); in ncr_int_ma()
6339 np->scripth->nxtdsp_go_on[0] = cpu_to_scr(dsp + 8); in ncr_int_ma()
6393 cpu_to_scr(NCB_SCRIPTH_PHYS (np, skip)); in ncr_sir_to_redo()
6448 cp->phys.smsg.addr = cpu_to_scr(CCB_PHYS (cp, scsi_smsg2)); in ncr_sir_to_redo()
6449 cp->phys.smsg.size = cpu_to_scr(1); in ncr_sir_to_redo()
6454 cp->phys.cmd.addr = cpu_to_scr(CCB_PHYS (cp, sensecmd)); in ncr_sir_to_redo()
6455 cp->phys.cmd.size = cpu_to_scr(6); in ncr_sir_to_redo()
6468 cp->phys.sense.addr = cpu_to_scr(CCB_PHYS(cp,sense_buf[0])); in ncr_sir_to_redo()
6469 cp->phys.sense.size = cpu_to_scr(sizeof(cp->sense_buf)); in ncr_sir_to_redo()
6474 startp = cpu_to_scr(NCB_SCRIPTH_PHYS (np, sdata_in)); in ncr_sir_to_redo()
6487 cpu_to_scr(NCB_SCRIPT_PHYS (np, select)); in ncr_sir_to_redo()
6494 cpu_to_scr(NCB_SCRIPTH_PHYS (np, select_no_atn)); in ncr_sir_to_redo()
7102 cpu_to_scr(NCB_SCRIPTH_PHYS(np, bad_i_t_l_q)); in ncr_free_ccb()
7105 cpu_to_scr(NCB_SCRIPTH_PHYS(np, bad_i_t_l)); in ncr_free_ccb()
7163 cp->start.setup_dsa[0] = cpu_to_scr(copy_4); in ncr_init_ccb()
7164 cp->start.setup_dsa[1] = cpu_to_scr(CCB_PHYS(cp, start.p_phys)); in ncr_init_ccb()
7165 cp->start.setup_dsa[2] = cpu_to_scr(ncr_reg_bus_addr(nc_dsa)); in ncr_init_ccb()
7166 cp->start.schedule.l_cmd = cpu_to_scr(SCR_JUMP); in ncr_init_ccb()
7167 cp->start.p_phys = cpu_to_scr(CCB_PHYS(cp, phys)); in ncr_init_ccb()
7171 cp->start.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, idle)); in ncr_init_ccb()
7172 cp->restart.schedule.l_paddr = cpu_to_scr(NCB_SCRIPTH_PHYS (np, abort)); in ncr_init_ccb()
7242 cpu_to_scr((SCR_JUMP ^ IFFALSE (DATA (0x80 + tn)))); in ncr_init_tcb()
7249 tp->getscr[0] = cpu_to_scr(copy_1); in ncr_init_tcb()
7250 tp->getscr[1] = cpu_to_scr(vtobus (&tp->sval)); in ncr_init_tcb()
7252 tp->getscr[2] = cpu_to_scr(ncr_reg_bus_addr(nc_sxfer) ^ 3); in ncr_init_tcb()
7254 tp->getscr[2] = cpu_to_scr(ncr_reg_bus_addr(nc_sxfer)); in ncr_init_tcb()
7261 tp->getscr[3] = cpu_to_scr(copy_1); in ncr_init_tcb()
7262 tp->getscr[4] = cpu_to_scr(vtobus (&tp->wval)); in ncr_init_tcb()
7264 tp->getscr[5] = cpu_to_scr(ncr_reg_bus_addr(nc_scntl3) ^ 3); in ncr_init_tcb()
7266 tp->getscr[5] = cpu_to_scr(ncr_reg_bus_addr(nc_scntl3)); in ncr_init_tcb()
7273 tp->call_lun.l_cmd = cpu_to_scr(SCR_CALL); in ncr_init_tcb()
7274 tp->call_lun.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, resel_lun)); in ncr_init_tcb()
7283 cpu_to_scr((SCR_JUMP ^ IFTRUE (MASK (i, 3)))); in ncr_init_tcb()
7285 cpu_to_scr(NCB_SCRIPTH_PHYS (np, bad_identify)); in ncr_init_tcb()
7291 np->jump_tcb[th].l_paddr = cpu_to_scr(vtobus (&tp->jump_tcb)); in ncr_init_tcb()
7359 lp->p_jump_ccb = cpu_to_scr(vtobus(lp->jump_ccb)); in ncr_alloc_lcb()
7373 cpu_to_scr((SCR_JUMP ^ IFFALSE (MASK (0x80+ln, 0xff)))); in ncr_alloc_lcb()
7376 lp->load_jump_ccb[0] = cpu_to_scr(copy_4); in ncr_alloc_lcb()
7377 lp->load_jump_ccb[1] = cpu_to_scr(vtobus (&lp->p_jump_ccb)); in ncr_alloc_lcb()
7378 lp->load_jump_ccb[2] = cpu_to_scr(ncr_reg_bus_addr(nc_temp)); in ncr_alloc_lcb()
7380 lp->jump_tag.l_cmd = cpu_to_scr(SCR_JUMP); in ncr_alloc_lcb()
7381 lp->jump_tag.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, resel_notag)); in ncr_alloc_lcb()
7386 tp->jump_lcb[lh].l_paddr = cpu_to_scr(vtobus (&lp->jump_lcb)); in ncr_alloc_lcb()
7428 lp->p_jump_ccb = cpu_to_scr(vtobus(lp->jump_ccb)); in ncr_setup_lcb()
7431 cpu_to_scr(NCB_SCRIPTH_PHYS (np, bad_i_t_l_q)); in ncr_setup_lcb()
7556 np->ncr_cache = cpu_to_scr(host_wr);
8215 cpu_to_scr(SCR_REG_REG(gpreg, SCR_OR, 0x01));
8217 cpu_to_scr(SCR_REG_REG(gpreg, SCR_AND, 0xfe));
8219 cpu_to_scr(SCR_REG_REG(gpreg, SCR_AND, 0xfe));
8229 cpu_to_scr((SCR_JUMP ^ IFTRUE (MASK (i, 3))));
8231 cpu_to_scr(NCB_SCRIPTH_PHYS (np, bad_target));