Lines Matching refs:sqcp
3449 struct sdebug_queued_cmd *sqcp; in sdebug_q_cmd_complete() local
3460 sqcp = &queued_arr[qa_indx]; in sdebug_q_cmd_complete()
3461 scp = sqcp->a_cmnd; in sdebug_q_cmd_complete()
3475 sqcp->a_cmnd = NULL; in sdebug_q_cmd_complete()
3509 struct sdebug_queued_cmd *sqcp; in sdebug_q_cmd_hrt_complete() local
3520 sqcp = &queued_arr[qa_indx]; in sdebug_q_cmd_hrt_complete()
3521 scp = sqcp->a_cmnd; in sdebug_q_cmd_hrt_complete()
3535 sqcp->a_cmnd = NULL; in sdebug_q_cmd_hrt_complete()
3667 struct sdebug_queued_cmd *sqcp; in stop_queued_cmnd() local
3677 sqcp = &queued_arr[k]; in stop_queued_cmnd()
3678 if (cmnd == sqcp->a_cmnd) { in stop_queued_cmnd()
3683 sqcp->a_cmnd = NULL; in stop_queued_cmnd()
3687 if (sqcp->sd_hrtp) in stop_queued_cmnd()
3689 &sqcp->sd_hrtp->hrt); in stop_queued_cmnd()
3691 if (sqcp->cmnd_timerp) in stop_queued_cmnd()
3693 sqcp->cmnd_timerp); in stop_queued_cmnd()
3695 if (sqcp->tletp) in stop_queued_cmnd()
3696 tasklet_kill(sqcp->tletp); in stop_queued_cmnd()
3712 struct sdebug_queued_cmd *sqcp; in stop_all_queued() local
3718 sqcp = &queued_arr[k]; in stop_all_queued()
3719 if (sqcp->a_cmnd) { in stop_all_queued()
3721 sqcp->a_cmnd->device->hostdata; in stop_all_queued()
3724 sqcp->a_cmnd = NULL; in stop_all_queued()
3728 if (sqcp->sd_hrtp) in stop_all_queued()
3730 &sqcp->sd_hrtp->hrt); in stop_all_queued()
3732 if (sqcp->cmnd_timerp) in stop_all_queued()
3734 sqcp->cmnd_timerp); in stop_all_queued()
3736 if (sqcp->tletp) in stop_all_queued()
3737 tasklet_kill(sqcp->tletp); in stop_all_queued()
3752 struct sdebug_queued_cmd *sqcp; in free_all_queued() local
3756 sqcp = &queued_arr[k]; in free_all_queued()
3757 kfree(sqcp->cmnd_timerp); in free_all_queued()
3758 sqcp->cmnd_timerp = NULL; in free_all_queued()
3759 kfree(sqcp->tletp); in free_all_queued()
3760 sqcp->tletp = NULL; in free_all_queued()
3761 kfree(sqcp->sd_hrtp); in free_all_queued()
3762 sqcp->sd_hrtp = NULL; in free_all_queued()
3948 struct sdebug_queued_cmd *sqcp = NULL; in schedule_resp() local
4006 sqcp = &queued_arr[k]; in schedule_resp()
4007 sqcp->a_cmnd = cmnd; in schedule_resp()
4011 if (NULL == sqcp->cmnd_timerp) { in schedule_resp()
4012 sqcp->cmnd_timerp = kmalloc(sizeof(struct timer_list), in schedule_resp()
4014 if (NULL == sqcp->cmnd_timerp) in schedule_resp()
4016 init_timer(sqcp->cmnd_timerp); in schedule_resp()
4018 sqcp->cmnd_timerp->function = sdebug_q_cmd_complete; in schedule_resp()
4019 sqcp->cmnd_timerp->data = k; in schedule_resp()
4020 sqcp->cmnd_timerp->expires = get_jiffies_64() + delta_jiff; in schedule_resp()
4021 add_timer(sqcp->cmnd_timerp); in schedule_resp()
4024 struct sdebug_hrtimer *sd_hp = sqcp->sd_hrtp; in schedule_resp()
4030 sqcp->sd_hrtp = sd_hp; in schedule_resp()
4038 if (NULL == sqcp->tletp) { in schedule_resp()
4039 sqcp->tletp = kmalloc(sizeof(*sqcp->tletp), in schedule_resp()
4041 if (NULL == sqcp->tletp) in schedule_resp()
4043 tasklet_init(sqcp->tletp, in schedule_resp()
4047 tasklet_hi_schedule(sqcp->tletp); in schedule_resp()
4049 tasklet_schedule(sqcp->tletp); in schedule_resp()