Lines Matching refs:scsi_cmnd
59 struct scsi_cmnd { struct
121 void (*scsi_done) (struct scsi_cmnd *); argument
147 static inline void *scsi_cmd_priv(struct scsi_cmnd *cmd) in scsi_cmd_priv() argument
153 static inline struct scsi_driver *scsi_cmd_to_driver(struct scsi_cmnd *cmd) in scsi_cmd_to_driver()
158 extern struct scsi_cmnd *scsi_get_command(struct scsi_device *, gfp_t);
159 extern void scsi_put_command(struct scsi_cmnd *);
160 extern void scsi_finish_command(struct scsi_cmnd *cmd);
166 extern int scsi_init_io(struct scsi_cmnd *cmd);
168 extern int scsi_dma_map(struct scsi_cmnd *cmd);
169 extern void scsi_dma_unmap(struct scsi_cmnd *cmd);
171 static inline unsigned scsi_sg_count(struct scsi_cmnd *cmd) in scsi_sg_count()
176 static inline struct scatterlist *scsi_sglist(struct scsi_cmnd *cmd) in scsi_sglist()
181 static inline unsigned scsi_bufflen(struct scsi_cmnd *cmd) in scsi_bufflen()
186 static inline void scsi_set_resid(struct scsi_cmnd *cmd, int resid) in scsi_set_resid()
191 static inline int scsi_get_resid(struct scsi_cmnd *cmd) in scsi_get_resid()
199 static inline int scsi_bidi_cmnd(struct scsi_cmnd *cmd) in scsi_bidi_cmnd()
205 static inline struct scsi_data_buffer *scsi_in(struct scsi_cmnd *cmd) in scsi_in()
211 static inline struct scsi_data_buffer *scsi_out(struct scsi_cmnd *cmd) in scsi_out()
216 static inline int scsi_sg_copy_from_buffer(struct scsi_cmnd *cmd, in scsi_sg_copy_from_buffer()
223 static inline int scsi_sg_copy_to_buffer(struct scsi_cmnd *cmd, in scsi_sg_copy_to_buffer()
251 static inline void scsi_set_prot_op(struct scsi_cmnd *scmd, unsigned char op) in scsi_set_prot_op()
256 static inline unsigned char scsi_get_prot_op(struct scsi_cmnd *scmd) in scsi_get_prot_op()
282 static inline void scsi_set_prot_type(struct scsi_cmnd *scmd, unsigned char type) in scsi_set_prot_type()
287 static inline unsigned char scsi_get_prot_type(struct scsi_cmnd *scmd) in scsi_get_prot_type()
292 static inline sector_t scsi_get_lba(struct scsi_cmnd *scmd) in scsi_get_lba()
297 static inline unsigned int scsi_prot_interval(struct scsi_cmnd *scmd) in scsi_prot_interval()
302 static inline u32 scsi_prot_ref_tag(struct scsi_cmnd *scmd) in scsi_prot_ref_tag()
308 static inline unsigned scsi_prot_sg_count(struct scsi_cmnd *cmd) in scsi_prot_sg_count()
313 static inline struct scatterlist *scsi_prot_sglist(struct scsi_cmnd *cmd) in scsi_prot_sglist()
318 static inline struct scsi_data_buffer *scsi_prot(struct scsi_cmnd *cmd) in scsi_prot()
326 static inline void set_msg_byte(struct scsi_cmnd *cmd, char status) in set_msg_byte()
331 static inline void set_host_byte(struct scsi_cmnd *cmd, char status) in set_host_byte()
336 static inline void set_driver_byte(struct scsi_cmnd *cmd, char status) in set_driver_byte()
341 static inline unsigned scsi_transfer_length(struct scsi_cmnd *scmd) in scsi_transfer_length()