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