sd_dp             288 drivers/scsi/scsi_debug.c 	struct sdebug_defer *sd_dp;
sd_dp            3708 drivers/scsi/scsi_debug.c static void sdebug_q_cmd_complete(struct sdebug_defer *sd_dp)
sd_dp            3710 drivers/scsi/scsi_debug.c 	bool aborted = sd_dp->aborted;
sd_dp            3719 drivers/scsi/scsi_debug.c 	sd_dp->defer_t = SDEB_DEFER_NONE;
sd_dp            3721 drivers/scsi/scsi_debug.c 		sd_dp->aborted = false;
sd_dp            3722 drivers/scsi/scsi_debug.c 	qc_idx = sd_dp->qc_idx;
sd_dp            3723 drivers/scsi/scsi_debug.c 	sqp = sdebug_q_arr + sd_dp->sqa_idx;
sd_dp            3726 drivers/scsi/scsi_debug.c 		if (raw_smp_processor_id() != sd_dp->issuing_cpu)
sd_dp            3739 drivers/scsi/scsi_debug.c 		       sd_dp->sqa_idx, qc_idx);
sd_dp            3784 drivers/scsi/scsi_debug.c 	struct sdebug_defer *sd_dp = container_of(timer, struct sdebug_defer,
sd_dp            3786 drivers/scsi/scsi_debug.c 	sdebug_q_cmd_complete(sd_dp);
sd_dp            3793 drivers/scsi/scsi_debug.c 	struct sdebug_defer *sd_dp = container_of(work, struct sdebug_defer,
sd_dp            3795 drivers/scsi/scsi_debug.c 	sdebug_q_cmd_complete(sd_dp);
sd_dp            3909 drivers/scsi/scsi_debug.c static void stop_qc_helper(struct sdebug_defer *sd_dp,
sd_dp            3912 drivers/scsi/scsi_debug.c 	if (!sd_dp)
sd_dp            3915 drivers/scsi/scsi_debug.c 		hrtimer_cancel(&sd_dp->hrt);
sd_dp            3917 drivers/scsi/scsi_debug.c 		cancel_work_sync(&sd_dp->ew.work);
sd_dp            3930 drivers/scsi/scsi_debug.c 	struct sdebug_defer *sd_dp;
sd_dp            3949 drivers/scsi/scsi_debug.c 				sd_dp = sqcp->sd_dp;
sd_dp            3950 drivers/scsi/scsi_debug.c 				if (sd_dp) {
sd_dp            3951 drivers/scsi/scsi_debug.c 					l_defer_t = sd_dp->defer_t;
sd_dp            3952 drivers/scsi/scsi_debug.c 					sd_dp->defer_t = SDEB_DEFER_NONE;
sd_dp            3956 drivers/scsi/scsi_debug.c 				stop_qc_helper(sd_dp, l_defer_t);
sd_dp            3975 drivers/scsi/scsi_debug.c 	struct sdebug_defer *sd_dp;
sd_dp            3989 drivers/scsi/scsi_debug.c 				sd_dp = sqcp->sd_dp;
sd_dp            3990 drivers/scsi/scsi_debug.c 				if (sd_dp) {
sd_dp            3991 drivers/scsi/scsi_debug.c 					l_defer_t = sd_dp->defer_t;
sd_dp            3992 drivers/scsi/scsi_debug.c 					sd_dp->defer_t = SDEB_DEFER_NONE;
sd_dp            3996 drivers/scsi/scsi_debug.c 				stop_qc_helper(sd_dp, l_defer_t);
sd_dp            4015 drivers/scsi/scsi_debug.c 			kfree(sqcp->sd_dp);
sd_dp            4016 drivers/scsi/scsi_debug.c 			sqcp->sd_dp = NULL;
sd_dp            4265 drivers/scsi/scsi_debug.c 	struct sdebug_defer *sd_dp;
sd_dp            4328 drivers/scsi/scsi_debug.c 	sd_dp = sqcp->sd_dp;
sd_dp            4332 drivers/scsi/scsi_debug.c 	if (sd_dp == NULL) {
sd_dp            4333 drivers/scsi/scsi_debug.c 		sd_dp = kzalloc(sizeof(*sd_dp), GFP_ATOMIC);
sd_dp            4334 drivers/scsi/scsi_debug.c 		if (sd_dp == NULL)
sd_dp            4360 drivers/scsi/scsi_debug.c 		if (!sd_dp->init_hrt) {
sd_dp            4361 drivers/scsi/scsi_debug.c 			sd_dp->init_hrt = true;
sd_dp            4362 drivers/scsi/scsi_debug.c 			sqcp->sd_dp = sd_dp;
sd_dp            4363 drivers/scsi/scsi_debug.c 			hrtimer_init(&sd_dp->hrt, CLOCK_MONOTONIC,
sd_dp            4365 drivers/scsi/scsi_debug.c 			sd_dp->hrt.function = sdebug_q_cmd_hrt_complete;
sd_dp            4366 drivers/scsi/scsi_debug.c 			sd_dp->sqa_idx = sqp - sdebug_q_arr;
sd_dp            4367 drivers/scsi/scsi_debug.c 			sd_dp->qc_idx = k;
sd_dp            4370 drivers/scsi/scsi_debug.c 			sd_dp->issuing_cpu = raw_smp_processor_id();
sd_dp            4371 drivers/scsi/scsi_debug.c 		sd_dp->defer_t = SDEB_DEFER_HRT;
sd_dp            4372 drivers/scsi/scsi_debug.c 		hrtimer_start(&sd_dp->hrt, kt, HRTIMER_MODE_REL_PINNED);
sd_dp            4374 drivers/scsi/scsi_debug.c 		if (!sd_dp->init_wq) {
sd_dp            4375 drivers/scsi/scsi_debug.c 			sd_dp->init_wq = true;
sd_dp            4376 drivers/scsi/scsi_debug.c 			sqcp->sd_dp = sd_dp;
sd_dp            4377 drivers/scsi/scsi_debug.c 			sd_dp->sqa_idx = sqp - sdebug_q_arr;
sd_dp            4378 drivers/scsi/scsi_debug.c 			sd_dp->qc_idx = k;
sd_dp            4379 drivers/scsi/scsi_debug.c 			INIT_WORK(&sd_dp->ew.work, sdebug_q_cmd_wq_complete);
sd_dp            4382 drivers/scsi/scsi_debug.c 			sd_dp->issuing_cpu = raw_smp_processor_id();
sd_dp            4383 drivers/scsi/scsi_debug.c 		sd_dp->defer_t = SDEB_DEFER_WQ;
sd_dp            4385 drivers/scsi/scsi_debug.c 			sd_dp->aborted = true;
sd_dp            4386 drivers/scsi/scsi_debug.c 		schedule_work(&sd_dp->ew.work);