Lines Matching refs:SCpnt
82 static inline void init_SCp(struct scsi_cmnd *SCpnt)
84 memset(&SCpnt->SCp, 0, sizeof(struct scsi_pointer));
86 if (scsi_bufflen(SCpnt)) {
89 SCpnt->SCp.buffer = scsi_sglist(SCpnt);
90 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1;
91 SCpnt->SCp.ptr = sg_virt(SCpnt->SCp.buffer);
92 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length;
93 SCpnt->SCp.phase = scsi_bufflen(SCpnt);
101 unsigned i, sg_count = scsi_sg_count(SCpnt);
103 scsi_for_each_sg(SCpnt, sg, sg_count, i)
106 if (scsi_bufflen(SCpnt) != len) {
110 SCpnt->device->host->host_no,
111 '0' + SCpnt->device->id,
112 scsi_bufflen(SCpnt), len);
117 SCpnt->SCp.phase =
119 scsi_bufflen(SCpnt));
124 SCpnt->SCp.ptr = NULL;
125 SCpnt->SCp.this_residual = 0;
126 SCpnt->SCp.phase = 0;