Lines Matching refs:lunm_list
2052 struct bfa_lun_mask_s *lunm_list; in bfa_ioim_lm_init() local
2058 lunm_list = bfa_get_lun_mask_list(bfa); in bfa_ioim_lm_init()
2060 lunm_list[i].ua = BFA_IOIM_LM_UA_RESET; in bfa_ioim_lm_init()
2061 lunm_list[i].lp_tag = BFA_LP_TAG_INVALID; in bfa_ioim_lm_init()
2062 lunm_list[i].rp_tag = BFA_RPORT_TAG_INVALID; in bfa_ioim_lm_init()
2151 struct bfa_lun_mask_s *lunm_list; in bfa_ioim_lm_set_ua() local
2154 lunm_list = bfa_get_lun_mask_list(bfa); in bfa_ioim_lm_set_ua()
2156 if (lunm_list[i].state != BFA_IOIM_LUN_MASK_ACTIVE) in bfa_ioim_lm_set_ua()
2158 lunm_list[i].ua = BFA_IOIM_LM_UA_SET; in bfa_ioim_lm_set_ua()
2187 struct bfa_lun_mask_s *lunm_list; in bfa_fcpim_lunmask_clear() local
2193 lunm_list = bfa_get_lun_mask_list(bfa); in bfa_fcpim_lunmask_clear()
2195 if (lunm_list[i].state == BFA_IOIM_LUN_MASK_ACTIVE) { in bfa_fcpim_lunmask_clear()
2196 if (lunm_list[i].rp_tag != BFA_RPORT_TAG_INVALID) in bfa_fcpim_lunmask_clear()
2198 BFA_RPORT_FROM_TAG(bfa, lunm_list[i].rp_tag)); in bfa_fcpim_lunmask_clear()
2202 memset(lunm_list, 0, sizeof(struct bfa_lun_mask_s) * MAX_LUN_MASK_CFG); in bfa_fcpim_lunmask_clear()
2224 struct bfa_lun_mask_s *lunm_list; in bfa_fcpim_lunmask_add() local
2243 lunm_list = bfa_get_lun_mask_list(bfa); in bfa_fcpim_lunmask_add()
2246 if (lunm_list[i].state != BFA_IOIM_LUN_MASK_ACTIVE) in bfa_fcpim_lunmask_add()
2248 if ((lunm_list[i].lp_wwn == *pwwn) && in bfa_fcpim_lunmask_add()
2249 (lunm_list[i].rp_wwn == rpwwn) && in bfa_fcpim_lunmask_add()
2250 (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == in bfa_fcpim_lunmask_add()
2259 lunm_list[free_index].lp_tag = bfa_lps_get_tag_from_pid(bfa, in bfa_fcpim_lunmask_add()
2261 lunm_list[free_index].rp_tag = rp->rport_tag; in bfa_fcpim_lunmask_add()
2263 lunm_list[free_index].lp_tag = BFA_LP_TAG_INVALID; in bfa_fcpim_lunmask_add()
2264 lunm_list[free_index].rp_tag = BFA_RPORT_TAG_INVALID; in bfa_fcpim_lunmask_add()
2267 lunm_list[free_index].lp_wwn = *pwwn; in bfa_fcpim_lunmask_add()
2268 lunm_list[free_index].rp_wwn = rpwwn; in bfa_fcpim_lunmask_add()
2269 lunm_list[free_index].lun = lun; in bfa_fcpim_lunmask_add()
2270 lunm_list[free_index].state = BFA_IOIM_LUN_MASK_ACTIVE; in bfa_fcpim_lunmask_add()
2274 if ((lunm_list[i].lp_wwn == *pwwn) && in bfa_fcpim_lunmask_add()
2275 (lunm_list[i].rp_wwn == rpwwn)) in bfa_fcpim_lunmask_add()
2276 lunm_list[i].ua = BFA_IOIM_LM_UA_SET; in bfa_fcpim_lunmask_add()
2286 struct bfa_lun_mask_s *lunm_list; in bfa_fcpim_lunmask_delete() local
2307 lunm_list = bfa_get_lun_mask_list(bfa); in bfa_fcpim_lunmask_delete()
2309 if ((lunm_list[i].lp_wwn == *pwwn) && in bfa_fcpim_lunmask_delete()
2310 (lunm_list[i].rp_wwn == rpwwn) && in bfa_fcpim_lunmask_delete()
2311 (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == in bfa_fcpim_lunmask_delete()
2313 lunm_list[i].lp_wwn = 0; in bfa_fcpim_lunmask_delete()
2314 lunm_list[i].rp_wwn = 0; in bfa_fcpim_lunmask_delete()
2315 int_to_scsilun(0, &lunm_list[i].lun); in bfa_fcpim_lunmask_delete()
2316 lunm_list[i].state = BFA_IOIM_LUN_MASK_INACTIVE; in bfa_fcpim_lunmask_delete()
2317 if (lunm_list[i].rp_tag != BFA_RPORT_TAG_INVALID) { in bfa_fcpim_lunmask_delete()
2318 lunm_list[i].rp_tag = BFA_RPORT_TAG_INVALID; in bfa_fcpim_lunmask_delete()
2319 lunm_list[i].lp_tag = BFA_LP_TAG_INVALID; in bfa_fcpim_lunmask_delete()
2327 if ((lunm_list[i].lp_wwn == *pwwn) && in bfa_fcpim_lunmask_delete()
2328 (lunm_list[i].rp_wwn == rpwwn)) in bfa_fcpim_lunmask_delete()
2329 lunm_list[i].ua = BFA_IOIM_LM_UA_SET; in bfa_fcpim_lunmask_delete()