tag | line | file | source code |
scp | 150 | drivers/net/apricot.c | struct i596_scp scp; |
scp | 260 | drivers/net/apricot.c | outw(((((int)&lp->scp) & 0xffff) | 2), ioaddr); |
scp | 261 | drivers/net/apricot.c | outw((((int)&lp->scp)>>16) & 0xffff, ioaddr); |
scp | 265 | drivers/net/apricot.c | lp->scp.sysbus = 0x00440000; |
scp | 266 | drivers/net/apricot.c | lp->scp.iscp = &(lp->iscp); |
scp | 496 | drivers/net/eql.c | static int eql_g_slave_cfg(struct device *dev, slave_config_t *scp) |
scp | 504 | drivers/net/eql.c | err = verify_area(VERIFY_READ, (void *)scp, sizeof (slave_config_t)); |
scp | 508 | drivers/net/eql.c | memcpy_fromfs (&sc, scp, sizeof (slave_config_t)); |
scp | 522 | drivers/net/eql.c | err = verify_area(VERIFY_WRITE, (void *)scp, sizeof (slave_config_t)); |
scp | 525 | drivers/net/eql.c | memcpy_tofs (scp, &sc, sizeof (slave_config_t)); |
scp | 533 | drivers/net/eql.c | static int eql_s_slave_cfg(struct device *dev, slave_config_t *scp) |
scp | 541 | drivers/net/eql.c | err = verify_area(VERIFY_READ, (void *)scp, sizeof (slave_config_t)); |
scp | 550 | drivers/net/eql.c | memcpy_fromfs (&sc, scp, sizeof (slave_config_t)); |
scp | 218 | drivers/net/ni52.c | volatile struct scp_struct *scp; /* volatile is important */ |
scp | 290 | drivers/net/ni52.c | p->scp = (struct scp_struct *)(p->base + SCP_DEFAULT_ADDRESS); |
scp | 291 | drivers/net/ni52.c | memset((char *)p->scp,0, sizeof(struct scp_struct)); |
scp | 293 | drivers/net/ni52.c | if(((char *)p->scp)[i]) |
scp | 295 | drivers/net/ni52.c | p->scp->sysbus = SYSBUSVAL; /* 1 = 8Bit-Bus, 0 = 16 Bit */ |
scp | 296 | drivers/net/ni52.c | if(p->scp->sysbus != SYSBUSVAL) |
scp | 300 | drivers/net/ni52.c | iscp_addrs[1]= (char *) p->scp - sizeof(struct iscp_struct); |
scp | 307 | drivers/net/ni52.c | p->scp->iscp = make24(p->iscp); |
scp | 330 | drivers/net/ni52.c | p->scp = (struct scp_struct *) (p->base + SCP_DEFAULT_ADDRESS); |
scp | 332 | drivers/net/ni52.c | p->iscp = (struct iscp_struct *) ((char *)p->scp - sizeof(struct iscp_struct)); |
scp | 335 | drivers/net/ni52.c | memset((char *) p->scp ,0,sizeof(struct scp_struct)); |
scp | 337 | drivers/net/ni52.c | p->scp->iscp = make24(p->iscp); |
scp | 338 | drivers/net/ni52.c | p->scp->sysbus = SYSBUSVAL; |
scp | 539 | drivers/net/wavelan.c | scp_t scp; |
scp | 578 | drivers/net/wavelan.c | memset(&scp, 0x00, sizeof(scp)); |
scp | 579 | drivers/net/wavelan.c | scp.scp_sysbus = SCP_SY_16BBUS; |
scp | 580 | drivers/net/wavelan.c | scp.scp_iscpl = OFFSET_ISCP; |
scp | 581 | drivers/net/wavelan.c | obram_write(ioaddr, OFFSET_SCP, (unsigned char *)&scp, sizeof(scp)); |
scp | 3224 | drivers/scsi/advansys.c | advansys_command(Scsi_Cmnd *scp) |
scp | 3226 | drivers/scsi/advansys.c | ASC_DBG1(1, "advansys_command: scp %x\n", (unsigned) scp); |
scp | 3228 | drivers/scsi/advansys.c | scp->SCp.Status = 0; /* Set to a known state */ |
scp | 3229 | drivers/scsi/advansys.c | advansys_queuecommand(scp, advansys_command_done); |
scp | 3230 | drivers/scsi/advansys.c | while (scp->SCp.Status == 0) { |
scp | 3233 | drivers/scsi/advansys.c | ASC_DBG1(1, "advansys_command: result %x\n", scp->result); |
scp | 3234 | drivers/scsi/advansys.c | return scp->result; |
scp | 3244 | drivers/scsi/advansys.c | advansys_queuecommand(Scsi_Cmnd *scp, void (*done)(Scsi_Cmnd *)) |
scp | 3251 | drivers/scsi/advansys.c | shp = scp->host; |
scp | 3292 | drivers/scsi/advansys.c | scp->scsi_done = done; |
scp | 3293 | drivers/scsi/advansys.c | if (asc_execute_scsi_cmnd(scp) == ASC_BUSY) { |
scp | 3299 | drivers/scsi/advansys.c | asc_enqueue(shp, scp, scp->target, ASC_BACK); |
scp | 3316 | drivers/scsi/advansys.c | advansys_abort(Scsi_Cmnd *scp) |
scp | 3322 | drivers/scsi/advansys.c | ASC_DBG1(1, "advansys_abort: scp %x\n", (unsigned) scp); |
scp | 3326 | drivers/scsi/advansys.c | if (scp->host == NULL) { |
scp | 3327 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_ERROR); |
scp | 3329 | drivers/scsi/advansys.c | } else if (asc_rmqueue(scp->host, scp, scp->target) == ASC_TRUE) { |
scp | 3330 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_ABORT); |
scp | 3332 | drivers/scsi/advansys.c | (void) AscResetDevice(&ASC_BOARD(scp->host)->board, scp->target); |
scp | 3336 | drivers/scsi/advansys.c | boardp = &ASC_BOARD(scp->host)->board; |
scp | 3337 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_ABORT); |
scp | 3338 | drivers/scsi/advansys.c | switch (AscAbortSRB(boardp, (ulong) scp)) { |
scp | 3355 | drivers/scsi/advansys.c | (void) AscResetDevice(boardp, scp->target); |
scp | 3369 | drivers/scsi/advansys.c | advansys_reset(Scsi_Cmnd *scp) |
scp | 3377 | drivers/scsi/advansys.c | ASC_DBG1(1, "advansys_reset: %x\n", (unsigned) scp); |
scp | 3381 | drivers/scsi/advansys.c | if (scp->host == NULL) { |
scp | 3382 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_ERROR); |
scp | 3387 | drivers/scsi/advansys.c | while ((tscp = asc_dequeue(scp->host, i)) != NULL) { |
scp | 3396 | drivers/scsi/advansys.c | scp->timeout += 2000; /* Add 5 seconds to the request timeout. */ |
scp | 3400 | drivers/scsi/advansys.c | boardp = &ASC_BOARD(scp->host)->board; |
scp | 3401 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_RESET); |
scp | 3584 | drivers/scsi/advansys.c | Scsi_Cmnd *scp; |
scp | 3610 | drivers/scsi/advansys.c | if ((scp = asc_scsi_done) != NULL) { |
scp | 3617 | drivers/scsi/advansys.c | while (scp) { |
scp | 3618 | drivers/scsi/advansys.c | tscp = (Scsi_Cmnd *) scp->host_scribble; |
scp | 3619 | drivers/scsi/advansys.c | scp->scsi_done(scp); |
scp | 3620 | drivers/scsi/advansys.c | scp = tscp; |
scp | 3631 | drivers/scsi/advansys.c | advansys_command_done(Scsi_Cmnd *scp) |
scp | 3633 | drivers/scsi/advansys.c | ASC_DBG1(1, "advansys_command_done: scp %x\n", (unsigned) scp); |
scp | 3634 | drivers/scsi/advansys.c | scp->SCp.Status = 1; |
scp | 3677 | drivers/scsi/advansys.c | asc_execute_scsi_cmnd(Scsi_Cmnd *scp) |
scp | 3685 | drivers/scsi/advansys.c | (unsigned) scp, (unsigned) scp->scsi_done); |
scp | 3687 | drivers/scsi/advansys.c | boardp = &ASC_BOARD(scp->host)->board; |
scp | 3693 | drivers/scsi/advansys.c | if ((ASC_BOARD(scp->host)->init_tidmask & |
scp | 3694 | drivers/scsi/advansys.c | ASC_TIX_TO_TARGET_ID(scp->target)) == 0) { |
scp | 3695 | drivers/scsi/advansys.c | if (asc_init_dev(boardp, scp) == ASC_FALSE) { |
scp | 3696 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_BAD_TARGET); |
scp | 3697 | drivers/scsi/advansys.c | scp->scsi_done(scp); |
scp | 3700 | drivers/scsi/advansys.c | ASC_BOARD(scp->host)->init_tidmask |= ASC_TIX_TO_TARGET_ID(scp->target); |
scp | 3708 | drivers/scsi/advansys.c | scsiq.q2.srb_ptr = (ulong) scp; |
scp | 3713 | drivers/scsi/advansys.c | scsiq.cdbptr = &scp->cmnd[0]; |
scp | 3714 | drivers/scsi/advansys.c | scsiq.q2.cdb_len = scp->cmd_len; |
scp | 3715 | drivers/scsi/advansys.c | scsiq.q1.target_id = ASC_TID_TO_TARGET_ID(scp->target); |
scp | 3716 | drivers/scsi/advansys.c | scsiq.q1.target_lun = scp->lun; |
scp | 3717 | drivers/scsi/advansys.c | scsiq.q2.target_ix = ASC_TIDLUN_TO_IX(scp->target, scp->lun); |
scp | 3718 | drivers/scsi/advansys.c | scsiq.q1.sense_addr = (ulong) &scp->sense_buffer[0]; |
scp | 3719 | drivers/scsi/advansys.c | scsiq.q1.sense_len = sizeof(scp->sense_buffer); |
scp | 3726 | drivers/scsi/advansys.c | if (scp->use_sg == 0) { |
scp | 3732 | drivers/scsi/advansys.c | scsiq.q1.data_addr = (ulong) scp->request_buffer; |
scp | 3733 | drivers/scsi/advansys.c | scsiq.q1.data_cnt = scp->request_bufflen; |
scp | 3734 | drivers/scsi/advansys.c | ASC_STATS_ADD(cont_xfer, (scp->request_bufflen + 511) >> 9); |
scp | 3744 | drivers/scsi/advansys.c | if (scp->use_sg > ASC_MAX_SG_LIST) { |
scp | 3746 | drivers/scsi/advansys.c | scp->use_sg, ASC_MAX_SG_LIST); |
scp | 3747 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_ERROR); |
scp | 3748 | drivers/scsi/advansys.c | scp->scsi_done(scp); |
scp | 3764 | drivers/scsi/advansys.c | sghead.entry_cnt = scsiq.q1.sg_queue_cnt = scp->use_sg; |
scp | 3770 | drivers/scsi/advansys.c | slp = (struct scatterlist *) scp->request_buffer; |
scp | 3771 | drivers/scsi/advansys.c | for (sgcnt = 0; sgcnt < scp->use_sg; sgcnt++, slp++) { |
scp | 3779 | drivers/scsi/advansys.c | ASC_DBG_PRT_CDB(1, scp->cmnd, scp->cmd_len); |
scp | 3793 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_ERROR); |
scp | 3794 | drivers/scsi/advansys.c | scp->scsi_done(scp); |
scp | 3808 | drivers/scsi/advansys.c | Scsi_Cmnd *scp; |
scp | 3823 | drivers/scsi/advansys.c | scp = (Scsi_Cmnd *) qdonep->d2.srb_ptr; |
scp | 3824 | drivers/scsi/advansys.c | ASC_DBG1(1, "asc_isr_callback: scp %x\n", (unsigned) scp); |
scp | 3825 | drivers/scsi/advansys.c | ASC_DBG_PRT_CDB(2, scp->cmnd, scp->cmd_len); |
scp | 3827 | drivers/scsi/advansys.c | shp = scp->host; |
scp | 3839 | drivers/scsi/advansys.c | scp->result = 0; |
scp | 3843 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_ERROR); |
scp | 3854 | drivers/scsi/advansys.c | ASC_DBG_PRT_SENSE(2, scp->sense_buffer, |
scp | 3855 | drivers/scsi/advansys.c | sizeof(scp->sense_buffer)); |
scp | 3864 | drivers/scsi/advansys.c | scp->result = DRIVER_BYTE(DRIVER_SENSE) | |
scp | 3867 | drivers/scsi/advansys.c | scp->result = STATUS_BYTE(qdonep->d3.scsi_stat); |
scp | 3875 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_ERROR) | MSG_BYTE(qdonep->d3.scsi_msg) | |
scp | 3883 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_ABORT) | MSG_BYTE(qdonep->d3.scsi_msg) | |
scp | 3889 | drivers/scsi/advansys.c | scp->result = HOST_BYTE(DID_ERROR) | MSG_BYTE(qdonep->d3.scsi_msg) | |
scp | 3922 | drivers/scsi/advansys.c | *scpp = scp; |
scp | 3923 | drivers/scsi/advansys.c | scp->host_scribble = NULL; |
scp | 3935 | drivers/scsi/advansys.c | Scsi_Cmnd *scp; |
scp | 3947 | drivers/scsi/advansys.c | if ((scp = asc_dequeue(shp, i)) == NULL) { |
scp | 3949 | drivers/scsi/advansys.c | } else if (asc_execute_scsi_cmnd(scp) == ASC_BUSY) { |
scp | 3952 | drivers/scsi/advansys.c | asc_enqueue(shp, scp, i, ASC_FRONT); |
scp | 3966 | drivers/scsi/advansys.c | asc_init_dev(ASC_DVC_VAR *boardp, Scsi_Cmnd *scp) |
scp | 3979 | drivers/scsi/advansys.c | ASC_DBG1(1, "asc_init_dev: target %d\n", (unsigned) scp->target); |
scp | 3982 | drivers/scsi/advansys.c | if (boardp->cfg->chip_scsi_id == scp->target) { |
scp | 3992 | drivers/scsi/advansys.c | scp->timeout += 2000; /* Add 5 seconds to the request timeout. */ |
scp | 3995 | drivers/scsi/advansys.c | scsireqq = &ASC_BOARD(scp->host)->scsireqq; |
scp | 3997 | drivers/scsi/advansys.c | cap_info = &ASC_BOARD(scp->host)->cap_info; |
scp | 3999 | drivers/scsi/advansys.c | inquiry = &ASC_BOARD(scp->host)->inquiry; |
scp | 4019 | drivers/scsi/advansys.c | scsireqq->r1.target_id = ASC_TID_TO_TARGET_ID(scp->target); |
scp | 4021 | drivers/scsi/advansys.c | scsireqq->r2.target_ix = ASC_TIDLUN_TO_IX(scp->target, 0); |
scp | 4029 | drivers/scsi/advansys.c | tidmask = ASC_TIX_TO_TARGET_ID(scp->target); |
scp | 4036 | drivers/scsi/advansys.c | boardp->max_dvc_qng[scp->target]); |
scp | 4077 | drivers/scsi/advansys.c | if (boardp->max_dvc_qng[i] < scp->host->cmd_per_lun) { |
scp | 4078 | drivers/scsi/advansys.c | scp->host->cmd_per_lun = boardp->max_dvc_qng[i]; |
scp | 4389 | drivers/scsi/advansys.c | asc_enqueue(struct Scsi_Host *shp, Scsi_Cmnd *scp, int tid, int flag) |
scp | 4397 | drivers/scsi/advansys.c | scp->host_scribble = (unsigned char *) ASC_BOARD(shp)->pending[tid]; |
scp | 4398 | drivers/scsi/advansys.c | ASC_BOARD(shp)->pending[tid] = (Scsi_Cmnd *) scp; |
scp | 4404 | drivers/scsi/advansys.c | *scpp = scp; |
scp | 4405 | drivers/scsi/advansys.c | scp->host_scribble = NULL; |
scp | 4420 | drivers/scsi/advansys.c | Scsi_Cmnd *scp; |
scp | 4424 | drivers/scsi/advansys.c | if ((scp = ASC_BOARD(shp)->pending[tid]) != NULL) { |
scp | 4425 | drivers/scsi/advansys.c | ASC_BOARD(shp)->pending[tid] = (Scsi_Cmnd *) scp->host_scribble; |
scp | 4430 | drivers/scsi/advansys.c | return scp; |
scp | 4444 | drivers/scsi/advansys.c | asc_rmqueue(struct Scsi_Host *shp, Scsi_Cmnd *scp, int tid) |
scp | 4453 | drivers/scsi/advansys.c | if (*scpp == scp) { |
scp | 4454 | drivers/scsi/advansys.c | *scpp = (Scsi_Cmnd *) scp->host_scribble; |
scp | 4455 | drivers/scsi/advansys.c | scp->host_scribble = NULL; |