Lines Matching refs:lunm_list
2103 struct bfa_lun_mask_s *lunm_list; in bfa_ioim_lm_init() local
2109 lunm_list = bfa_get_lun_mask_list(bfa); in bfa_ioim_lm_init()
2111 lunm_list[i].ua = BFA_IOIM_LM_UA_RESET; in bfa_ioim_lm_init()
2112 lunm_list[i].lp_tag = BFA_LP_TAG_INVALID; in bfa_ioim_lm_init()
2113 lunm_list[i].rp_tag = BFA_RPORT_TAG_INVALID; in bfa_ioim_lm_init()
2202 struct bfa_lun_mask_s *lunm_list; in bfa_ioim_lm_set_ua() local
2205 lunm_list = bfa_get_lun_mask_list(bfa); in bfa_ioim_lm_set_ua()
2207 if (lunm_list[i].state != BFA_IOIM_LUN_MASK_ACTIVE) in bfa_ioim_lm_set_ua()
2209 lunm_list[i].ua = BFA_IOIM_LM_UA_SET; in bfa_ioim_lm_set_ua()
2238 struct bfa_lun_mask_s *lunm_list; in bfa_fcpim_lunmask_clear() local
2244 lunm_list = bfa_get_lun_mask_list(bfa); in bfa_fcpim_lunmask_clear()
2246 if (lunm_list[i].state == BFA_IOIM_LUN_MASK_ACTIVE) { in bfa_fcpim_lunmask_clear()
2247 if (lunm_list[i].rp_tag != BFA_RPORT_TAG_INVALID) in bfa_fcpim_lunmask_clear()
2249 BFA_RPORT_FROM_TAG(bfa, lunm_list[i].rp_tag)); in bfa_fcpim_lunmask_clear()
2253 memset(lunm_list, 0, sizeof(struct bfa_lun_mask_s) * MAX_LUN_MASK_CFG); in bfa_fcpim_lunmask_clear()
2275 struct bfa_lun_mask_s *lunm_list; in bfa_fcpim_lunmask_add() local
2294 lunm_list = bfa_get_lun_mask_list(bfa); in bfa_fcpim_lunmask_add()
2297 if (lunm_list[i].state != BFA_IOIM_LUN_MASK_ACTIVE) in bfa_fcpim_lunmask_add()
2299 if ((lunm_list[i].lp_wwn == *pwwn) && in bfa_fcpim_lunmask_add()
2300 (lunm_list[i].rp_wwn == rpwwn) && in bfa_fcpim_lunmask_add()
2301 (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == in bfa_fcpim_lunmask_add()
2310 lunm_list[free_index].lp_tag = bfa_lps_get_tag_from_pid(bfa, in bfa_fcpim_lunmask_add()
2312 lunm_list[free_index].rp_tag = rp->rport_tag; in bfa_fcpim_lunmask_add()
2314 lunm_list[free_index].lp_tag = BFA_LP_TAG_INVALID; in bfa_fcpim_lunmask_add()
2315 lunm_list[free_index].rp_tag = BFA_RPORT_TAG_INVALID; in bfa_fcpim_lunmask_add()
2318 lunm_list[free_index].lp_wwn = *pwwn; in bfa_fcpim_lunmask_add()
2319 lunm_list[free_index].rp_wwn = rpwwn; in bfa_fcpim_lunmask_add()
2320 lunm_list[free_index].lun = lun; in bfa_fcpim_lunmask_add()
2321 lunm_list[free_index].state = BFA_IOIM_LUN_MASK_ACTIVE; in bfa_fcpim_lunmask_add()
2325 if ((lunm_list[i].lp_wwn == *pwwn) && in bfa_fcpim_lunmask_add()
2326 (lunm_list[i].rp_wwn == rpwwn)) in bfa_fcpim_lunmask_add()
2327 lunm_list[i].ua = BFA_IOIM_LM_UA_SET; in bfa_fcpim_lunmask_add()
2337 struct bfa_lun_mask_s *lunm_list; in bfa_fcpim_lunmask_delete() local
2358 lunm_list = bfa_get_lun_mask_list(bfa); in bfa_fcpim_lunmask_delete()
2360 if ((lunm_list[i].lp_wwn == *pwwn) && in bfa_fcpim_lunmask_delete()
2361 (lunm_list[i].rp_wwn == rpwwn) && in bfa_fcpim_lunmask_delete()
2362 (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == in bfa_fcpim_lunmask_delete()
2364 lunm_list[i].lp_wwn = 0; in bfa_fcpim_lunmask_delete()
2365 lunm_list[i].rp_wwn = 0; in bfa_fcpim_lunmask_delete()
2366 int_to_scsilun(0, &lunm_list[i].lun); in bfa_fcpim_lunmask_delete()
2367 lunm_list[i].state = BFA_IOIM_LUN_MASK_INACTIVE; in bfa_fcpim_lunmask_delete()
2368 if (lunm_list[i].rp_tag != BFA_RPORT_TAG_INVALID) { in bfa_fcpim_lunmask_delete()
2369 lunm_list[i].rp_tag = BFA_RPORT_TAG_INVALID; in bfa_fcpim_lunmask_delete()
2370 lunm_list[i].lp_tag = BFA_LP_TAG_INVALID; in bfa_fcpim_lunmask_delete()
2378 if ((lunm_list[i].lp_wwn == *pwwn) && in bfa_fcpim_lunmask_delete()
2379 (lunm_list[i].rp_wwn == rpwwn)) in bfa_fcpim_lunmask_delete()
2380 lunm_list[i].ua = BFA_IOIM_LM_UA_SET; in bfa_fcpim_lunmask_delete()