Lines Matching refs:delay_info
2764 struct ctl_io_delay_info *delay_info; in ctl_ioctl() local
2766 delay_info = (struct ctl_io_delay_info *)addr; in ctl_ioctl()
2770 if (delay_info->lun_id >= ctl_max_luns || in ctl_ioctl()
2771 (lun = softc->ctl_luns[delay_info->lun_id]) == NULL) { in ctl_ioctl()
2773 delay_info->status = CTL_DELAY_STATUS_INVALID_LUN; in ctl_ioctl()
2778 delay_info->status = CTL_DELAY_STATUS_OK; in ctl_ioctl()
2779 switch (delay_info->delay_type) { in ctl_ioctl()
2784 delay_info->status = CTL_DELAY_STATUS_INVALID_TYPE; in ctl_ioctl()
2787 switch (delay_info->delay_loc) { in ctl_ioctl()
2789 lun->delay_info.datamove_type = delay_info->delay_type; in ctl_ioctl()
2790 lun->delay_info.datamove_delay = delay_info->delay_secs; in ctl_ioctl()
2793 lun->delay_info.done_type = delay_info->delay_type; in ctl_ioctl()
2794 lun->delay_info.done_delay = delay_info->delay_secs; in ctl_ioctl()
2797 delay_info->status = CTL_DELAY_STATUS_INVALID_LOC; in ctl_ioctl()
2802 delay_info->status = CTL_DELAY_STATUS_NOT_IMPLEMENTED; in ctl_ioctl()
12579 && (lun->delay_info.datamove_delay > 0)) {
12583 lun->delay_info.datamove_delay * hz,
12585 if (lun->delay_info.datamove_type ==
12587 lun->delay_info.datamove_delay = 0;
13404 && (lun->delay_info.done_delay > 0)) {
13408 lun->delay_info.done_delay * hz,
13410 if (lun->delay_info.done_type == CTL_DELAY_TYPE_ONESHOT)
13411 lun->delay_info.done_delay = 0;