Lines Matching refs:sd_dp

292 	struct sdebug_defer *sd_dp;  member
3795 static void sdebug_q_cmd_complete(struct sdebug_defer *sd_dp) in sdebug_q_cmd_complete() argument
3797 bool aborted = sd_dp->aborted; in sdebug_q_cmd_complete()
3806 sd_dp->defer_t = SDEB_DEFER_NONE; in sdebug_q_cmd_complete()
3808 sd_dp->aborted = false; in sdebug_q_cmd_complete()
3809 qc_idx = sd_dp->qc_idx; in sdebug_q_cmd_complete()
3810 sqp = sdebug_q_arr + sd_dp->sqa_idx; in sdebug_q_cmd_complete()
3813 if (raw_smp_processor_id() != sd_dp->issuing_cpu) in sdebug_q_cmd_complete()
3826 sd_dp->sqa_idx, qc_idx); in sdebug_q_cmd_complete()
3871 struct sdebug_defer *sd_dp = container_of(timer, struct sdebug_defer, in sdebug_q_cmd_hrt_complete() local
3873 sdebug_q_cmd_complete(sd_dp); in sdebug_q_cmd_hrt_complete()
3880 struct sdebug_defer *sd_dp = container_of(work, struct sdebug_defer, in sdebug_q_cmd_wq_complete() local
3882 sdebug_q_cmd_complete(sd_dp); in sdebug_q_cmd_wq_complete()
3998 static void stop_qc_helper(struct sdebug_defer *sd_dp, in stop_qc_helper() argument
4001 if (!sd_dp) in stop_qc_helper()
4004 hrtimer_cancel(&sd_dp->hrt); in stop_qc_helper()
4006 cancel_work_sync(&sd_dp->ew.work); in stop_qc_helper()
4019 struct sdebug_defer *sd_dp; in stop_queued_cmnd() local
4038 sd_dp = sqcp->sd_dp; in stop_queued_cmnd()
4039 if (sd_dp) { in stop_queued_cmnd()
4040 l_defer_t = sd_dp->defer_t; in stop_queued_cmnd()
4041 sd_dp->defer_t = SDEB_DEFER_NONE; in stop_queued_cmnd()
4045 stop_qc_helper(sd_dp, l_defer_t); in stop_queued_cmnd()
4064 struct sdebug_defer *sd_dp; in stop_all_queued() local
4078 sd_dp = sqcp->sd_dp; in stop_all_queued()
4079 if (sd_dp) { in stop_all_queued()
4080 l_defer_t = sd_dp->defer_t; in stop_all_queued()
4081 sd_dp->defer_t = SDEB_DEFER_NONE; in stop_all_queued()
4085 stop_qc_helper(sd_dp, l_defer_t); in stop_all_queued()
4104 kfree(sqcp->sd_dp); in free_all_queued()
4105 sqcp->sd_dp = NULL; in free_all_queued()
4354 struct sdebug_defer *sd_dp; in schedule_resp() local
4417 sd_dp = sqcp->sd_dp; in schedule_resp()
4421 if (sd_dp == NULL) { in schedule_resp()
4422 sd_dp = kzalloc(sizeof(*sd_dp), GFP_ATOMIC); in schedule_resp()
4423 if (sd_dp == NULL) in schedule_resp()
4449 if (!sd_dp->init_hrt) { in schedule_resp()
4450 sd_dp->init_hrt = true; in schedule_resp()
4451 sqcp->sd_dp = sd_dp; in schedule_resp()
4452 hrtimer_init(&sd_dp->hrt, CLOCK_MONOTONIC, in schedule_resp()
4454 sd_dp->hrt.function = sdebug_q_cmd_hrt_complete; in schedule_resp()
4455 sd_dp->sqa_idx = sqp - sdebug_q_arr; in schedule_resp()
4456 sd_dp->qc_idx = k; in schedule_resp()
4459 sd_dp->issuing_cpu = raw_smp_processor_id(); in schedule_resp()
4460 sd_dp->defer_t = SDEB_DEFER_HRT; in schedule_resp()
4461 hrtimer_start(&sd_dp->hrt, kt, HRTIMER_MODE_REL_PINNED); in schedule_resp()
4463 if (!sd_dp->init_wq) { in schedule_resp()
4464 sd_dp->init_wq = true; in schedule_resp()
4465 sqcp->sd_dp = sd_dp; in schedule_resp()
4466 sd_dp->sqa_idx = sqp - sdebug_q_arr; in schedule_resp()
4467 sd_dp->qc_idx = k; in schedule_resp()
4468 INIT_WORK(&sd_dp->ew.work, sdebug_q_cmd_wq_complete); in schedule_resp()
4471 sd_dp->issuing_cpu = raw_smp_processor_id(); in schedule_resp()
4472 sd_dp->defer_t = SDEB_DEFER_WQ; in schedule_resp()
4474 sd_dp->aborted = true; in schedule_resp()
4475 schedule_work(&sd_dp->ew.work); in schedule_resp()