Lines Matching refs:SCpnt
79 static inline void init_SCp(struct scsi_cmnd *SCpnt)
81 memset(&SCpnt->SCp, 0, sizeof(struct scsi_pointer));
83 if (scsi_bufflen(SCpnt)) {
86 SCpnt->SCp.buffer = scsi_sglist(SCpnt);
87 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1;
88 SCpnt->SCp.ptr = sg_virt(SCpnt->SCp.buffer);
89 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length;
90 SCpnt->SCp.phase = scsi_bufflen(SCpnt);
98 unsigned i, sg_count = scsi_sg_count(SCpnt);
100 scsi_for_each_sg(SCpnt, sg, sg_count, i)
103 if (scsi_bufflen(SCpnt) != len) {
107 SCpnt->device->host->host_no,
108 '0' + SCpnt->device->id,
109 scsi_bufflen(SCpnt), len);
114 SCpnt->SCp.phase =
116 scsi_bufflen(SCpnt));
121 SCpnt->SCp.ptr = NULL;
122 SCpnt->SCp.this_residual = 0;
123 SCpnt->SCp.phase = 0;