Lines Matching refs:SCp
33 static inline int copy_SCp_to_sg(struct scatterlist *sg, struct scsi_pointer *SCp, int max) in copy_SCp_to_sg() argument
35 int bufs = SCp->buffers_residual; in copy_SCp_to_sg()
42 sg_set_buf(sg, SCp->ptr, SCp->this_residual); in copy_SCp_to_sg()
48 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) in copy_SCp_to_sg()
56 static inline int next_SCp(struct scsi_pointer *SCp) in next_SCp() argument
58 int ret = SCp->buffers_residual; in next_SCp()
60 SCp->buffer = sg_next(SCp->buffer); in next_SCp()
61 SCp->buffers_residual--; in next_SCp()
62 SCp->ptr = sg_virt(SCp->buffer); in next_SCp()
63 SCp->this_residual = SCp->buffer->length; in next_SCp()
65 SCp->ptr = NULL; in next_SCp()
66 SCp->this_residual = 0; in next_SCp()
71 static inline unsigned char get_next_SCp_byte(struct scsi_pointer *SCp) in get_next_SCp_byte() argument
73 char c = *SCp->ptr; in get_next_SCp_byte()
75 SCp->ptr += 1; in get_next_SCp_byte()
76 SCp->this_residual -= 1; in get_next_SCp_byte()
81 static inline void put_next_SCp_byte(struct scsi_pointer *SCp, unsigned char c) in put_next_SCp_byte() argument
83 *SCp->ptr = c; in put_next_SCp_byte()
84 SCp->ptr += 1; in put_next_SCp_byte()
85 SCp->this_residual -= 1; in put_next_SCp_byte()