Lines Matching refs:cpu_to_scr

3537 		*dst++ = cpu_to_scr(opcode);  in ncr_script_copy_and_bind()
3586 dst[-1] = cpu_to_scr(opcode & ~SCR_NO_FLUSH); in ncr_script_copy_and_bind()
3661 *dst++ = cpu_to_scr(new); in ncr_script_copy_and_bind()
3664 *dst++ = cpu_to_scr(*src++); in ncr_script_copy_and_bind()
4306 cp->phys.header.wgoalp = cpu_to_scr(goalp); in ncr_queue_command()
4307 cp->phys.header.wlastp = cpu_to_scr(lastp); in ncr_queue_command()
4328 cp->phys.header.lastp = cpu_to_scr(lastp); in ncr_queue_command()
4329 cp->phys.header.goalp = cpu_to_scr(goalp); in ncr_queue_command()
4333 cpu_to_scr(NCB_SCRIPTH_PHYS (np, data_io)); in ncr_queue_command()
4335 cp->phys.header.savep= cpu_to_scr(lastp); in ncr_queue_command()
4357 cp->start.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, select)); in ncr_queue_command()
4358 cp->restart.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, resel_dsa)); in ncr_queue_command()
4368 cp->phys.smsg.addr = cpu_to_scr(CCB_PHYS (cp, scsi_smsg)); in ncr_queue_command()
4369 cp->phys.smsg.size = cpu_to_scr(msglen); in ncr_queue_command()
4375 cp->phys.cmd.addr = cpu_to_scr(CCB_PHYS (cp, cdb_buf[0])); in ncr_queue_command()
4376 cp->phys.cmd.size = cpu_to_scr(cmd->cmd_len); in ncr_queue_command()
4444 cpu_to_scr(CCB_PHYS (cp, restart)); in ncr_start_next_ccb()
4460 np->scripth->tryloop [qidx] = cpu_to_scr(NCB_SCRIPT_PHYS (np, idle)); in ncr_put_start_queue()
4462 np->scripth->tryloop [np->squeueput] = cpu_to_scr(CCB_PHYS (cp, start)); in ncr_put_start_queue()
4679 cpu_to_scr(NCB_SCRIPTH_PHYS (np, cancel));
4684 cpu_to_scr(NCB_SCRIPTH_PHYS (np, abort));
5100 cpu_to_scr(NCB_SCRIPT_PHYS (np, select)); in ncr_ccb_skipped()
5134 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_plug)); in ncr_wakeup_done()
5137 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_end)); in ncr_wakeup_done()
5234 cpu_to_scr(NCB_SCRIPT_PHYS (np, idle)); in ncr_init()
5240 np->script0->startpos[0] = cpu_to_scr(NCB_SCRIPTH_PHYS (np, tryloop)); in ncr_init()
5249 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_end)); in ncr_init()
5256 np->script0->done_pos[0] = cpu_to_scr(NCB_SCRIPTH_PHYS (np,done_queue)); in ncr_init()
5259 cpu_to_scr(NCB_SCRIPT_PHYS (np, done_plug)); in ncr_init()
5703 cpu_to_scr(NCB_SCRIPT_PHYS(np, resel_tag)) : in ncr_setup_tags()
5704 cpu_to_scr(NCB_SCRIPT_PHYS(np, resel_notag)); in ncr_setup_tags()
6452 newcmd[0] = cpu_to_scr(((cmd & 0x0f) << 24) | rest); in ncr_int_ma()
6453 newcmd[1] = cpu_to_scr(oadr + olen - rest); in ncr_int_ma()
6454 newcmd[2] = cpu_to_scr(SCR_JUMP); in ncr_int_ma()
6455 newcmd[3] = cpu_to_scr(nxtdsp); in ncr_int_ma()
6514 np->scripth->nxtdsp_go_on[0] = cpu_to_scr(dsp + 8); in ncr_int_ma()
6568 cpu_to_scr(NCB_SCRIPTH_PHYS (np, skip)); in ncr_sir_to_redo()
6623 cp->phys.smsg.addr = cpu_to_scr(CCB_PHYS (cp, scsi_smsg2)); in ncr_sir_to_redo()
6624 cp->phys.smsg.size = cpu_to_scr(1); in ncr_sir_to_redo()
6629 cp->phys.cmd.addr = cpu_to_scr(CCB_PHYS (cp, sensecmd)); in ncr_sir_to_redo()
6630 cp->phys.cmd.size = cpu_to_scr(6); in ncr_sir_to_redo()
6643 cp->phys.sense.addr = cpu_to_scr(CCB_PHYS(cp,sense_buf[0])); in ncr_sir_to_redo()
6644 cp->phys.sense.size = cpu_to_scr(sizeof(cp->sense_buf)); in ncr_sir_to_redo()
6649 startp = cpu_to_scr(NCB_SCRIPTH_PHYS (np, sdata_in)); in ncr_sir_to_redo()
6662 cpu_to_scr(NCB_SCRIPT_PHYS (np, select)); in ncr_sir_to_redo()
6669 cpu_to_scr(NCB_SCRIPTH_PHYS (np, select_no_atn)); in ncr_sir_to_redo()
7276 cpu_to_scr(NCB_SCRIPTH_PHYS(np, bad_i_t_l_q)); in ncr_free_ccb()
7279 cpu_to_scr(NCB_SCRIPTH_PHYS(np, bad_i_t_l)); in ncr_free_ccb()
7337 cp->start.setup_dsa[0] = cpu_to_scr(copy_4); in ncr_init_ccb()
7338 cp->start.setup_dsa[1] = cpu_to_scr(CCB_PHYS(cp, start.p_phys)); in ncr_init_ccb()
7339 cp->start.setup_dsa[2] = cpu_to_scr(ncr_reg_bus_addr(nc_dsa)); in ncr_init_ccb()
7340 cp->start.schedule.l_cmd = cpu_to_scr(SCR_JUMP); in ncr_init_ccb()
7341 cp->start.p_phys = cpu_to_scr(CCB_PHYS(cp, phys)); in ncr_init_ccb()
7345 cp->start.schedule.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, idle)); in ncr_init_ccb()
7346 cp->restart.schedule.l_paddr = cpu_to_scr(NCB_SCRIPTH_PHYS (np, abort)); in ncr_init_ccb()
7416 cpu_to_scr((SCR_JUMP ^ IFFALSE (DATA (0x80 + tn)))); in ncr_init_tcb()
7423 tp->getscr[0] = cpu_to_scr(copy_1); in ncr_init_tcb()
7424 tp->getscr[1] = cpu_to_scr(vtobus (&tp->sval)); in ncr_init_tcb()
7426 tp->getscr[2] = cpu_to_scr(ncr_reg_bus_addr(nc_sxfer) ^ 3); in ncr_init_tcb()
7428 tp->getscr[2] = cpu_to_scr(ncr_reg_bus_addr(nc_sxfer)); in ncr_init_tcb()
7435 tp->getscr[3] = cpu_to_scr(copy_1); in ncr_init_tcb()
7436 tp->getscr[4] = cpu_to_scr(vtobus (&tp->wval)); in ncr_init_tcb()
7438 tp->getscr[5] = cpu_to_scr(ncr_reg_bus_addr(nc_scntl3) ^ 3); in ncr_init_tcb()
7440 tp->getscr[5] = cpu_to_scr(ncr_reg_bus_addr(nc_scntl3)); in ncr_init_tcb()
7447 tp->call_lun.l_cmd = cpu_to_scr(SCR_CALL); in ncr_init_tcb()
7448 tp->call_lun.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, resel_lun)); in ncr_init_tcb()
7457 cpu_to_scr((SCR_JUMP ^ IFTRUE (MASK (i, 3)))); in ncr_init_tcb()
7459 cpu_to_scr(NCB_SCRIPTH_PHYS (np, bad_identify)); in ncr_init_tcb()
7465 np->jump_tcb[th].l_paddr = cpu_to_scr(vtobus (&tp->jump_tcb)); in ncr_init_tcb()
7533 lp->p_jump_ccb = cpu_to_scr(vtobus(lp->jump_ccb)); in ncr_alloc_lcb()
7547 cpu_to_scr((SCR_JUMP ^ IFFALSE (MASK (0x80+ln, 0xff)))); in ncr_alloc_lcb()
7550 lp->load_jump_ccb[0] = cpu_to_scr(copy_4); in ncr_alloc_lcb()
7551 lp->load_jump_ccb[1] = cpu_to_scr(vtobus (&lp->p_jump_ccb)); in ncr_alloc_lcb()
7552 lp->load_jump_ccb[2] = cpu_to_scr(ncr_reg_bus_addr(nc_temp)); in ncr_alloc_lcb()
7554 lp->jump_tag.l_cmd = cpu_to_scr(SCR_JUMP); in ncr_alloc_lcb()
7555 lp->jump_tag.l_paddr = cpu_to_scr(NCB_SCRIPT_PHYS (np, resel_notag)); in ncr_alloc_lcb()
7560 tp->jump_lcb[lh].l_paddr = cpu_to_scr(vtobus (&lp->jump_lcb)); in ncr_alloc_lcb()
7602 lp->p_jump_ccb = cpu_to_scr(vtobus(lp->jump_ccb)); in ncr_setup_lcb()
7605 cpu_to_scr(NCB_SCRIPTH_PHYS (np, bad_i_t_l_q)); in ncr_setup_lcb()
7730 np->ncr_cache = cpu_to_scr(host_wr);
8434 cpu_to_scr(SCR_REG_REG(gpreg, SCR_OR, 0x01));
8436 cpu_to_scr(SCR_REG_REG(gpreg, SCR_AND, 0xfe));
8438 cpu_to_scr(SCR_REG_REG(gpreg, SCR_AND, 0xfe));
8448 cpu_to_scr((SCR_JUMP ^ IFTRUE (MASK (i, 3))));
8450 cpu_to_scr(NCB_SCRIPTH_PHYS (np, bad_target));