Lines Matching refs:ln
121 csio_rn_lookup(struct csio_lnode *ln, uint32_t flowid) in csio_rn_lookup() argument
123 struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; in csio_rn_lookup()
145 csio_rn_lookup_wwpn(struct csio_lnode *ln, uint8_t *wwpn) in csio_rn_lookup_wwpn() argument
147 struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; in csio_rn_lookup_wwpn()
169 csio_rnode_lookup_portid(struct csio_lnode *ln, uint32_t portid) in csio_rnode_lookup_portid() argument
171 struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; in csio_rnode_lookup_portid()
185 csio_rn_dup_flowid(struct csio_lnode *ln, uint32_t rdev_flowid, in csio_rn_dup_flowid() argument
192 struct csio_hw *hw = csio_lnode_to_hw(ln); in csio_rn_dup_flowid()
196 if (ln_tmp == ln) in csio_rn_dup_flowid()
216 csio_alloc_rnode(struct csio_lnode *ln) in csio_alloc_rnode() argument
218 struct csio_hw *hw = csio_lnode_to_hw(ln); in csio_alloc_rnode()
225 if (csio_rnode_init(rn, ln)) in csio_alloc_rnode()
228 CSIO_INC_STATS(ln, n_rnode_alloc); in csio_alloc_rnode()
235 CSIO_INC_STATS(ln, n_rnode_nomem); in csio_alloc_rnode()
258 csio_get_rnode(struct csio_lnode *ln, uint32_t flowid) in csio_get_rnode() argument
262 rn = csio_rn_lookup(ln, flowid); in csio_get_rnode()
264 rn = csio_alloc_rnode(ln); in csio_get_rnode()
283 csio_put_rnode(struct csio_lnode *ln, struct csio_rnode *rn) in csio_put_rnode() argument
300 csio_confirm_rnode(struct csio_lnode *ln, uint32_t rdev_flowid, in csio_confirm_rnode() argument
314 csio_ln_dbg(ln, in csio_confirm_rnode()
321 rn = csio_rn_lookup(ln, rdev_flowid); in csio_confirm_rnode()
325 if (csio_rn_dup_flowid(ln, rdev_flowid, &vnp_flowid)) { in csio_confirm_rnode()
326 csio_ln_warn(ln, in csio_confirm_rnode()
333 rn = csio_rn_lookup_wwpn(ln, rdevp->wwpn); in csio_confirm_rnode()
340 match_rn = csio_rnode_lookup_portid(ln, in csio_confirm_rnode()
355 csio_ln_dbg(ln, in csio_confirm_rnode()
362 csio_ln_warn(ln, in csio_confirm_rnode()
383 match_rn = csio_rn_lookup_wwpn(ln, rdevp->wwpn); in csio_confirm_rnode()
385 csio_ln_dbg(ln, in csio_confirm_rnode()
393 csio_ln_dbg(ln, in csio_confirm_rnode()
399 csio_ln_warn(ln, in csio_confirm_rnode()
412 csio_ln_dbg(ln, "found rnode:%p ssni:x%x name(wwpn):%llx\n", in csio_confirm_rnode()
420 CSIO_INC_STATS(ln, n_rnode_match); in csio_confirm_rnode()
424 rn = csio_get_rnode(ln, rdev_flowid); in csio_confirm_rnode()
428 csio_ln_dbg(ln, "alloc rnode:%p ssni:x%x name(wwpn):%llx\n", in csio_confirm_rnode()
444 csio_rn_verify_rparams(struct csio_lnode *ln, struct csio_rnode *rn, in csio_rn_verify_rparams() argument
459 csio_ln_err(ln, "ssni:x%x invalid fabric portid\n", in csio_rn_verify_rparams()
465 ln->flags |= CSIO_LNF_NPIVSUPP; in csio_rn_verify_rparams()
472 csio_ln_err(ln, "ssni:x%x invalid fabric portid\n", in csio_rn_verify_rparams()
508 csio_ln_err(ln, "ssni:x%x invalid rport type recv x%x\n", in csio_rn_verify_rparams()
517 csio_ln_err(ln, in csio_rn_verify_rparams()
526 csio_ln_err(ln, in csio_rn_verify_rparams()
550 struct csio_lnode *ln = csio_rnode_to_lnode(rn); in __csio_reg_rnode() local
551 struct csio_hw *hw = csio_lnode_to_hw(ln); in __csio_reg_rnode()
558 ln->n_scsi_tgts++; in __csio_reg_rnode()
561 csio_ln_fdmi_start(ln, (void *) rn); in __csio_reg_rnode()
567 struct csio_lnode *ln = csio_rnode_to_lnode(rn); in __csio_unreg_rnode() local
568 struct csio_hw *hw = csio_lnode_to_hw(ln); in __csio_unreg_rnode()
579 ln->n_scsi_tgts--; in __csio_unreg_rnode()
580 ln->last_scan_ntgts--; in __csio_unreg_rnode()
606 struct csio_lnode *ln = csio_rnode_to_lnode(rn); in csio_rns_uninit() local
614 ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); in csio_rns_uninit()
623 csio_ln_dbg(ln, in csio_rns_uninit()
629 csio_ln_dbg(ln, in csio_rns_uninit()
646 struct csio_lnode *ln = csio_rnode_to_lnode(rn); in csio_rns_ready() local
654 csio_ln_dbg(ln, in csio_rns_ready()
663 ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); in csio_rns_ready()
713 csio_ln_dbg(ln, in csio_rns_ready()
731 struct csio_lnode *ln = csio_rnode_to_lnode(rn); in csio_rns_offline() local
739 ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); in csio_rns_offline()
750 csio_ln_dbg(ln, in csio_rns_offline()
772 csio_ln_dbg(ln, in csio_rns_offline()
790 struct csio_lnode *ln = csio_rnode_to_lnode(rn); in csio_rns_disappeared() local
798 ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); in csio_rns_disappeared()
820 csio_ln_dbg(ln, in csio_rns_disappeared()
827 csio_ln_dbg(ln, in csio_rns_disappeared()
849 struct csio_lnode *ln = csio_rnode_to_lnode(rn); in csio_rnode_devloss_handler() local
859 csio_put_rnode(ln, rn); in csio_rnode_devloss_handler()
870 struct csio_lnode *ln = csio_rnode_to_lnode(rn); in csio_rnode_fwevt_handler() local
875 csio_ln_err(ln, "ssni:x%x Unhandled FW Rdev event: %d\n", in csio_rnode_fwevt_handler()
891 csio_put_rnode(ln, rn); in csio_rnode_fwevt_handler()
903 csio_rnode_init(struct csio_rnode *rn, struct csio_lnode *ln) in csio_rnode_init() argument
905 csio_rnode_to_lnode(rn) = ln; in csio_rnode_init()
911 list_add_tail(&rn->sm.sm_list, &ln->rnhead); in csio_rnode_init()