Lines Matching refs:pr_res_idx

833 	msg->lun.pr_res_idx = lun->pr_res_idx;  in ctl_isc_announce_lun()
1165 lun->pr_res_idx = msg->lun.pr_res_idx; in ctl_isc_lun_sync()
5309 (lun->pr_res_idx != residx && lun->pr_res_type < 4)) { in ctl_start_stop()
7802 if (lun->pr_res_idx != CTL_PR_ALL_REGISTRANTS) { in ctl_persistent_reserve_in()
7803 scsi_u64to8b(ctl_get_prkey(lun, lun->pr_res_idx), in ctl_persistent_reserve_in()
7861 (lun->pr_res_idx == i || in ctl_persistent_reserve_in()
7862 lun->pr_res_idx == CTL_PR_ALL_REGISTRANTS)) { in ctl_persistent_reserve_in()
7909 if (lun->pr_res_idx == CTL_PR_ALL_REGISTRANTS) { in ctl_pro_preempt()
7951 lun->pr_res_idx = residx; in ctl_pro_preempt()
7959 persis_io.pr.pr_info.residx = lun->pr_res_idx; in ctl_pro_preempt()
7979 } else if (lun->pr_res_idx == CTL_PR_ALL_REGISTRANTS in ctl_pro_preempt()
8029 persis_io.pr.pr_info.residx = lun->pr_res_idx; in ctl_pro_preempt()
8039 if (sa_res_key == ctl_get_prkey(lun, lun->pr_res_idx)) { in ctl_pro_preempt()
8097 lun->pr_res_idx = residx; in ctl_pro_preempt()
8099 lun->pr_res_idx = CTL_PR_ALL_REGISTRANTS; in ctl_pro_preempt()
8106 persis_io.pr.pr_info.residx = lun->pr_res_idx; in ctl_pro_preempt()
8143 persis_io.pr.pr_info.residx = lun->pr_res_idx; in ctl_pro_preempt()
8163 if (lun->pr_res_idx == CTL_PR_ALL_REGISTRANTS in ctl_pro_preempt_other()
8164 || lun->pr_res_idx == CTL_PR_NO_RESERVATION in ctl_pro_preempt_other()
8165 || sa_res_key != ctl_get_prkey(lun, lun->pr_res_idx)) { in ctl_pro_preempt_other()
8184 lun->pr_res_idx = msg->pr.pr_info.residx; in ctl_pro_preempt_other()
8214 lun->pr_res_idx = msg->pr.pr_info.residx; in ctl_pro_preempt_other()
8216 lun->pr_res_idx = CTL_PR_ALL_REGISTRANTS; in ctl_pro_preempt_other()
8398 if (residx == lun->pr_res_idx) { in ctl_persistent_reserve_out()
8400 lun->pr_res_idx = CTL_PR_NO_RESERVATION; in ctl_persistent_reserve_out()
8421 } else if (lun->pr_res_idx == CTL_PR_ALL_REGISTRANTS) { in ctl_persistent_reserve_out()
8425 lun->pr_res_idx = CTL_PR_NO_RESERVATION; in ctl_persistent_reserve_out()
8470 if ((lun->pr_res_idx != residx in ctl_persistent_reserve_out()
8471 && lun->pr_res_idx != CTL_PR_ALL_REGISTRANTS) in ctl_persistent_reserve_out()
8487 lun->pr_res_idx = residx; /* Res holder */ in ctl_persistent_reserve_out()
8489 lun->pr_res_idx = CTL_PR_ALL_REGISTRANTS; in ctl_persistent_reserve_out()
8500 persis_io.pr.pr_info.residx = lun->pr_res_idx; in ctl_persistent_reserve_out()
8517 if (lun->pr_res_idx != residx in ctl_persistent_reserve_out()
8518 && lun->pr_res_idx != CTL_PR_ALL_REGISTRANTS) { in ctl_persistent_reserve_out()
8537 lun->pr_res_idx = CTL_PR_NO_RESERVATION; in ctl_persistent_reserve_out()
8569 lun->pr_res_idx = CTL_PR_NO_RESERVATION; in ctl_persistent_reserve_out()
8654 if (msg->pr.pr_info.residx == lun->pr_res_idx) { in ctl_hndl_per_res_out_on_other_sc()
8656 lun->pr_res_idx = CTL_PR_NO_RESERVATION; in ctl_hndl_per_res_out_on_other_sc()
8677 } else if (lun->pr_res_idx == CTL_PR_ALL_REGISTRANTS) { in ctl_hndl_per_res_out_on_other_sc()
8681 lun->pr_res_idx = CTL_PR_NO_RESERVATION; in ctl_hndl_per_res_out_on_other_sc()
8690 lun->pr_res_idx = msg->pr.pr_info.residx; in ctl_hndl_per_res_out_on_other_sc()
8710 lun->pr_res_idx = CTL_PR_NO_RESERVATION; in ctl_hndl_per_res_out_on_other_sc()
8721 lun->pr_res_idx = CTL_PR_NO_RESERVATION; in ctl_hndl_per_res_out_on_other_sc()
12137 (residx != lun->pr_res_idx && lun->pr_res_type < 4)) { in ctl_scsiio_lun_check()