Lines Matching refs:sp
132 qla2x00_clean_dsd_pool(struct qla_hw_data *ha, srb_t *sp,
138 if (sp)
139 ctx = (struct crc_context *)GET_CMD_CTX_SP(sp);
178 qla2x00_hba_err_chk_enabled(srb_t *sp)
183 if (!sp->cmd->prot_chk)
187 switch (scsi_get_prot_op(GET_CMD_SP(sp))) {
221 srb_t *sp = NULL;
229 sp = mempool_alloc(ha->srb_mempool, flag);
230 if (!sp)
233 memset(sp, 0, sizeof(*sp));
234 sp->fcport = fcport;
235 sp->iocbs = 1;
237 if (!sp)
239 return sp;
243 qla2x00_rel_sp(scsi_qla_host_t *vha, srb_t *sp)
245 mempool_free(sp, vha->hw->srb_mempool);
250 qla2x00_init_timer(srb_t *sp, unsigned long tmo)
252 init_timer(&sp->u.iocb_cmd.timer);
253 sp->u.iocb_cmd.timer.expires = jiffies + tmo * HZ;
254 sp->u.iocb_cmd.timer.data = (unsigned long)sp;
255 sp->u.iocb_cmd.timer.function = qla2x00_sp_timeout;
256 add_timer(&sp->u.iocb_cmd.timer);
257 sp->free = qla2x00_sp_free;
258 if ((IS_QLAFX00(sp->fcport->vha->hw)) &&
259 (sp->type == SRB_FXIOCB_DCMD))
260 init_completion(&sp->u.iocb_cmd.u.fxiocb.fxiocb_comp);