Lines Matching refs:SCpnt
495 * @SCpnt: scsi command pointer
507 static int i2o_scsi_queuecommand_lck(struct scsi_cmnd *SCpnt,
528 i2o_dev = SCpnt->device->hostdata;
530 SCpnt->scsi_done = done;
534 SCpnt->result = DID_NO_CONNECT << 16;
535 done(SCpnt);
547 switch (SCpnt->sc_data_direction) {
567 SCpnt->result = DID_NO_CONNECT << 16;
568 done(SCpnt);
590 if (SCpnt->sc_request && SCpnt->sc_request->upper_private_data) {
592 ((Sg_request *) (SCpnt->sc_request->
629 msg->u.s.tcntxt = cpu_to_le32(i2o_cntxt_list_add(c, SCpnt));
644 if(SCpnt->device->tagged_supported) {
645 if(SCpnt->tag == HEAD_OF_QUEUE_TAG)
647 else if(SCpnt->tag == ORDERED_QUEUE_TAG)
652 *mptr++ = cpu_to_le32(scsi_flags | SCpnt->cmd_len);
655 memcpy(mptr, SCpnt->cmnd, 16);
660 *mptr++ = cpu_to_le32(scsi_bufflen(SCpnt));
664 if (scsi_sg_count(SCpnt)) {
665 if (!i2o_dma_map_sg(c, scsi_sglist(SCpnt),
666 scsi_sg_count(SCpnt),
667 SCpnt->sc_data_direction, &mptr))
679 osm_debug("Issued %0x%p\n", SCpnt);
695 * @SCpnt: command to abort
704 static int i2o_scsi_abort(struct scsi_cmnd *SCpnt)
714 i2o_dev = SCpnt->device->hostdata;
725 msg->body[0] = cpu_to_le32(i2o_cntxt_list_get_ptr(c, SCpnt));