Lines Matching refs:sqcp
3446 struct sdebug_queued_cmd *sqcp; in sdebug_q_cmd_complete() local
3457 sqcp = &queued_arr[qa_indx]; in sdebug_q_cmd_complete()
3458 scp = sqcp->a_cmnd; in sdebug_q_cmd_complete()
3472 sqcp->a_cmnd = NULL; in sdebug_q_cmd_complete()
3506 struct sdebug_queued_cmd *sqcp; in sdebug_q_cmd_hrt_complete() local
3517 sqcp = &queued_arr[qa_indx]; in sdebug_q_cmd_hrt_complete()
3518 scp = sqcp->a_cmnd; in sdebug_q_cmd_hrt_complete()
3532 sqcp->a_cmnd = NULL; in sdebug_q_cmd_hrt_complete()
3663 struct sdebug_queued_cmd *sqcp; in stop_queued_cmnd() local
3673 sqcp = &queued_arr[k]; in stop_queued_cmnd()
3674 if (cmnd == sqcp->a_cmnd) { in stop_queued_cmnd()
3679 sqcp->a_cmnd = NULL; in stop_queued_cmnd()
3683 if (sqcp->sd_hrtp) in stop_queued_cmnd()
3685 &sqcp->sd_hrtp->hrt); in stop_queued_cmnd()
3687 if (sqcp->cmnd_timerp) in stop_queued_cmnd()
3689 sqcp->cmnd_timerp); in stop_queued_cmnd()
3691 if (sqcp->tletp) in stop_queued_cmnd()
3692 tasklet_kill(sqcp->tletp); in stop_queued_cmnd()
3708 struct sdebug_queued_cmd *sqcp; in stop_all_queued() local
3714 sqcp = &queued_arr[k]; in stop_all_queued()
3715 if (sqcp->a_cmnd) { in stop_all_queued()
3717 sqcp->a_cmnd->device->hostdata; in stop_all_queued()
3720 sqcp->a_cmnd = NULL; in stop_all_queued()
3724 if (sqcp->sd_hrtp) in stop_all_queued()
3726 &sqcp->sd_hrtp->hrt); in stop_all_queued()
3728 if (sqcp->cmnd_timerp) in stop_all_queued()
3730 sqcp->cmnd_timerp); in stop_all_queued()
3732 if (sqcp->tletp) in stop_all_queued()
3733 tasklet_kill(sqcp->tletp); in stop_all_queued()
3748 struct sdebug_queued_cmd *sqcp; in free_all_queued() local
3752 sqcp = &queued_arr[k]; in free_all_queued()
3753 kfree(sqcp->cmnd_timerp); in free_all_queued()
3754 sqcp->cmnd_timerp = NULL; in free_all_queued()
3755 kfree(sqcp->tletp); in free_all_queued()
3756 sqcp->tletp = NULL; in free_all_queued()
3757 kfree(sqcp->sd_hrtp); in free_all_queued()
3758 sqcp->sd_hrtp = NULL; in free_all_queued()
3943 struct sdebug_queued_cmd *sqcp = NULL; in schedule_resp() local
4007 sqcp = &queued_arr[k]; in schedule_resp()
4008 sqcp->a_cmnd = cmnd; in schedule_resp()
4012 if (NULL == sqcp->cmnd_timerp) { in schedule_resp()
4013 sqcp->cmnd_timerp = kmalloc(sizeof(struct timer_list), in schedule_resp()
4015 if (NULL == sqcp->cmnd_timerp) in schedule_resp()
4017 init_timer(sqcp->cmnd_timerp); in schedule_resp()
4019 sqcp->cmnd_timerp->function = sdebug_q_cmd_complete; in schedule_resp()
4020 sqcp->cmnd_timerp->data = k; in schedule_resp()
4021 sqcp->cmnd_timerp->expires = get_jiffies_64() + delta_jiff; in schedule_resp()
4022 add_timer(sqcp->cmnd_timerp); in schedule_resp()
4025 struct sdebug_hrtimer *sd_hp = sqcp->sd_hrtp; in schedule_resp()
4031 sqcp->sd_hrtp = sd_hp; in schedule_resp()
4039 if (NULL == sqcp->tletp) { in schedule_resp()
4040 sqcp->tletp = kmalloc(sizeof(*sqcp->tletp), in schedule_resp()
4042 if (NULL == sqcp->tletp) in schedule_resp()
4044 tasklet_init(sqcp->tletp, in schedule_resp()
4048 tasklet_hi_schedule(sqcp->tletp); in schedule_resp()
4050 tasklet_schedule(sqcp->tletp); in schedule_resp()