Lines Matching refs:sqcp
584 static void sdebug_free_queued_cmd(struct sdebug_queued_cmd *sqcp);
5641 struct sdebug_queued_cmd *sqcp = container_of(sd_dp, struct sdebug_queued_cmd, sd_dp); in sdebug_q_cmd_complete() local
5643 struct scsi_cmnd *scp = sqcp->scmd; in sdebug_q_cmd_complete()
5675 sdebug_free_queued_cmd(sqcp); in sdebug_q_cmd_complete()
5991 struct sdebug_queued_cmd *sqcp = TO_QUEUED_CMD(cmnd); in scsi_debug_stop_cmnd() local
5995 if (!sqcp) in scsi_debug_stop_cmnd()
5997 sd_dp = &sqcp->sd_dp; in scsi_debug_stop_cmnd()
6002 sdebug_free_queued_cmd(sqcp); in scsi_debug_stop_cmnd()
6369 void sdebug_free_queued_cmd(struct sdebug_queued_cmd *sqcp) in sdebug_free_queued_cmd() argument
6371 if (sqcp) in sdebug_free_queued_cmd()
6372 kmem_cache_free(queued_cmd_cache, sqcp); in sdebug_free_queued_cmd()
6377 struct sdebug_queued_cmd *sqcp; in sdebug_alloc_queued_cmd() local
6380 sqcp = kmem_cache_zalloc(queued_cmd_cache, GFP_ATOMIC); in sdebug_alloc_queued_cmd()
6381 if (!sqcp) in sdebug_alloc_queued_cmd()
6384 sd_dp = &sqcp->sd_dp; in sdebug_alloc_queued_cmd()
6390 sqcp->scmd = scmd; in sdebug_alloc_queued_cmd()
6392 return sqcp; in sdebug_alloc_queued_cmd()
6411 struct sdebug_queued_cmd *sqcp; in schedule_resp() local
6443 sqcp = sdebug_alloc_queued_cmd(cmnd); in schedule_resp()
6444 if (!sqcp) { in schedule_resp()
6448 sd_dp = &sqcp->sd_dp; in schedule_resp()
6496 sdebug_free_queued_cmd(sqcp); in schedule_resp()
6509 ASSIGN_QUEUED_CMD(cmnd, sqcp); in schedule_resp()
6515 ASSIGN_QUEUED_CMD(cmnd, sqcp); in schedule_resp()
6539 ASSIGN_QUEUED_CMD(cmnd, sqcp); in schedule_resp()
6545 ASSIGN_QUEUED_CMD(cmnd, sqcp); in schedule_resp()
8345 struct sdebug_queued_cmd *sqcp; in sdebug_blk_mq_poll_iter() local
8361 sqcp = TO_QUEUED_CMD(cmd); in sdebug_blk_mq_poll_iter()
8362 if (!sqcp) { in sdebug_blk_mq_poll_iter()
8367 sd_dp = &sqcp->sd_dp; in sdebug_blk_mq_poll_iter()
8387 sdebug_free_queued_cmd(sqcp); in sdebug_blk_mq_poll_iter()