ln 32 arch/mips/include/asm/mach-pic32/pic32.h void pic32_syskey_unlock_debug(const char *fn, const ulong ln); ln 659 drivers/base/core.c struct device_link *link, *ln; ln 661 drivers/base/core.c list_for_each_entry_safe_reverse(link, ln, &dev->links.suppliers, c_node) { ln 724 drivers/base/core.c struct device_link *link, *ln; ln 728 drivers/base/core.c list_for_each_entry_safe(link, ln, &dev->links.consumers, s_node) { ln 850 drivers/base/core.c struct device_link *link, *ln; ln 858 drivers/base/core.c list_for_each_entry_safe_reverse(link, ln, &dev->links.suppliers, c_node) { ln 863 drivers/base/core.c list_for_each_entry_safe_reverse(link, ln, &dev->links.consumers, s_node) { ln 2334 drivers/gpu/drm/i915/display/intel_ddi.c int n_entries, ln; ln 2367 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln < 4; ln++) { ln 2368 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(CNL_PORT_TX_DW4_LN(ln, port)); ln 2374 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(CNL_PORT_TX_DW4_LN(ln, port), val); ln 2397 drivers/gpu/drm/i915/display/intel_ddi.c int width, rate, ln; ln 2429 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln <= 3; ln++) { ln 2430 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(CNL_PORT_TX_DW4_LN(ln, port)); ln 2433 drivers/gpu/drm/i915/display/intel_ddi.c if ((rate <= 600000 && width == 4 && ln >= 1) || ln 2434 drivers/gpu/drm/i915/display/intel_ddi.c (rate <= 600000 && width < 4 && (ln == 1 || ln == 2))) { ln 2437 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(CNL_PORT_TX_DW4_LN(ln, port), val); ln 2465 drivers/gpu/drm/i915/display/intel_ddi.c int ln; ln 2498 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln <= 3; ln++) { ln 2499 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(ICL_PORT_TX_DW4_LN(ln, phy)); ln 2505 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(ICL_PORT_TX_DW4_LN(ln, phy), val); ln 2524 drivers/gpu/drm/i915/display/intel_ddi.c int ln = 0; ln 2555 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln <= 3; ln++) { ln 2556 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(ICL_PORT_TX_DW4_LN(ln, phy)); ln 2559 drivers/gpu/drm/i915/display/intel_ddi.c if ((rate <= 600000 && width == 4 && ln >= 1) || ln 2560 drivers/gpu/drm/i915/display/intel_ddi.c (rate <= 600000 && width < 4 && (ln == 1 || ln == 2))) { ln 2563 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(ICL_PORT_TX_DW4_LN(ln, phy), val); ln 2593 drivers/gpu/drm/i915/display/intel_ddi.c int ln; ln 2605 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln < 2; ln++) { ln 2606 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_TX1_LINK_PARAMS(ln, port)); ln 2608 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_TX1_LINK_PARAMS(ln, port), val); ln 2610 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_TX2_LINK_PARAMS(ln, port)); ln 2612 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_TX2_LINK_PARAMS(ln, port), val); ln 2616 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln < 2; ln++) { ln 2617 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_TX1_SWINGCTRL(ln, port)); ln 2621 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_TX1_SWINGCTRL(ln, port), val); ln 2623 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_TX2_SWINGCTRL(ln, port)); ln 2627 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_TX2_SWINGCTRL(ln, port), val); ln 2631 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln < 2; ln++) { ln 2632 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_TX1_DRVCTRL(ln, port)); ln 2640 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_TX1_DRVCTRL(ln, port), val); ln 2642 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_TX2_DRVCTRL(ln, port)); ln 2650 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_TX2_DRVCTRL(ln, port), val); ln 2660 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln < 2; ln++) { ln 2661 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_CLKHUB(ln, port)); ln 2666 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_CLKHUB(ln, port), val); ln 2670 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln < 2; ln++) { ln 2671 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_TX1_DCC(ln, port)); ln 2679 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_TX1_DCC(ln, port), val); ln 2681 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_TX2_DCC(ln, port)); ln 2689 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_TX2_DCC(ln, port), val); ln 2693 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln < 2; ln++) { ln 2694 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_TX1_PISO_READLOAD(ln, port)); ln 2696 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_TX1_PISO_READLOAD(ln, port), val); ln 2698 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_TX2_PISO_READLOAD(ln, port)); ln 2700 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_TX2_PISO_READLOAD(ln, port), val); ln 3002 drivers/gpu/drm/i915/display/intel_ddi.c int ln; ln 3007 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln < 2; ln++) { ln 3008 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_DP_MODE(ln, port)); ln 3014 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_DP_MODE(ln, port), val); ln 3034 drivers/gpu/drm/i915/display/intel_ddi.c int ln; ln 3039 drivers/gpu/drm/i915/display/intel_ddi.c for (ln = 0; ln < 2; ln++) { ln 3040 drivers/gpu/drm/i915/display/intel_ddi.c val = I915_READ(MG_DP_MODE(ln, port)); ln 3046 drivers/gpu/drm/i915/display/intel_ddi.c I915_WRITE(MG_DP_MODE(ln, port), val); ln 96 drivers/gpu/drm/i915/gem/i915_gem_object.c struct i915_lut_handle *lut, *ln; ln 100 drivers/gpu/drm/i915/gem/i915_gem_object.c list_for_each_entry_safe(lut, ln, &obj->lut_list, obj_link) { ln 111 drivers/gpu/drm/i915/gem/i915_gem_object.c list_for_each_entry_safe(lut, ln, &close, obj_link) { ln 1853 drivers/gpu/drm/i915/i915_reg.h #define _ICL_PORT_PCS_LN(ln) (0x800 + (ln) * 0x100) ln 1858 drivers/gpu/drm/i915/i915_reg.h #define _ICL_PORT_PCS_DW_LN(dw, ln, phy) (_ICL_COMBOPHY(phy) + \ ln 1859 drivers/gpu/drm/i915/i915_reg.h _ICL_PORT_PCS_LN(ln) + 4 * (dw)) ln 1897 drivers/gpu/drm/i915/i915_reg.h #define _ICL_PORT_TX_LN(ln) (0x880 + (ln) * 0x100) ln 1903 drivers/gpu/drm/i915/i915_reg.h #define _ICL_PORT_TX_DW_LN(dw, ln, phy) (_ICL_COMBOPHY(phy) + \ ln 1904 drivers/gpu/drm/i915/i915_reg.h _ICL_PORT_TX_LN(ln) + 4 * (dw)) ln 1924 drivers/gpu/drm/i915/i915_reg.h #define CNL_PORT_TX_DW4_LN(ln, port) _MMIO(_CNL_PORT_TX_DW_LN0(4, (port)) + \ ln 1925 drivers/gpu/drm/i915/i915_reg.h ((ln) * (_CNL_PORT_TX_DW4_LN1_AE - \ ln 1930 drivers/gpu/drm/i915/i915_reg.h #define ICL_PORT_TX_DW4_LN(ln, phy) _MMIO(_ICL_PORT_TX_DW_LN(4, ln, phy)) ln 1957 drivers/gpu/drm/i915/i915_reg.h #define ICL_PORT_TX_DW7_LN(ln, phy) _MMIO(_ICL_PORT_TX_DW_LN(7, ln, phy)) ln 1965 drivers/gpu/drm/i915/i915_reg.h #define MG_PHY_PORT_LN(ln, port, ln0p1, ln0p2, ln1p1) \ ln 1966 drivers/gpu/drm/i915/i915_reg.h _MMIO(_PORT((port) - PORT_C, ln0p1, ln0p2) + (ln) * ((ln1p1) - (ln0p1))) ln 1976 drivers/gpu/drm/i915/i915_reg.h #define MG_TX1_LINK_PARAMS(ln, port) \ ln 1977 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_TX_LINK_PARAMS_TX1LN0_PORT1, \ ln 1989 drivers/gpu/drm/i915/i915_reg.h #define MG_TX2_LINK_PARAMS(ln, port) \ ln 1990 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_TX_LINK_PARAMS_TX2LN0_PORT1, \ ln 2003 drivers/gpu/drm/i915/i915_reg.h #define MG_TX1_PISO_READLOAD(ln, port) \ ln 2004 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_TX_PISO_READLOAD_TX1LN0_PORT1, \ ln 2016 drivers/gpu/drm/i915/i915_reg.h #define MG_TX2_PISO_READLOAD(ln, port) \ ln 2017 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_TX_PISO_READLOAD_TX2LN0_PORT1, \ ln 2030 drivers/gpu/drm/i915/i915_reg.h #define MG_TX1_SWINGCTRL(ln, port) \ ln 2031 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_TX_SWINGCTRL_TX1LN0_PORT1, \ ln 2043 drivers/gpu/drm/i915/i915_reg.h #define MG_TX2_SWINGCTRL(ln, port) \ ln 2044 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_TX_SWINGCTRL_TX2LN0_PORT1, \ ln 2058 drivers/gpu/drm/i915/i915_reg.h #define MG_TX1_DRVCTRL(ln, port) \ ln 2059 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_TX_DRVCTRL_TX1LN0_TXPORT1, \ ln 2071 drivers/gpu/drm/i915/i915_reg.h #define MG_TX2_DRVCTRL(ln, port) \ ln 2072 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_TX_DRVCTRL_TX2LN0_PORT1, \ ln 2091 drivers/gpu/drm/i915/i915_reg.h #define MG_CLKHUB(ln, port) \ ln 2092 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_CLKHUB_LN0_PORT1, \ ln 2105 drivers/gpu/drm/i915/i915_reg.h #define MG_TX1_DCC(ln, port) \ ln 2106 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_TX_DCC_TX1LN0_PORT1, \ ln 2117 drivers/gpu/drm/i915/i915_reg.h #define MG_TX2_DCC(ln, port) \ ln 2118 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_TX_DCC_TX2LN0_PORT1, \ ln 2133 drivers/gpu/drm/i915/i915_reg.h #define MG_DP_MODE(ln, port) \ ln 2134 drivers/gpu/drm/i915/i915_reg.h MG_PHY_PORT_LN(ln, port, MG_DP_MODE_LN0_ACU_PORT1, \ ln 77 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h void (*drive)(struct nvkm_ior *, int ln, int pc, ln 58 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c g94_sor_dp_drive(struct nvkm_ior *sor, int ln, int pc, int dc, int pe, int pu) ln 62 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c const u32 shift = sor->func->dp.lanes[ln] * 8; ln 68 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c if ((data[2] & 0x0000ff00) < (pu << 8) || ln == 0) ln 71 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c gf119_sor_dp_drive(struct nvkm_ior *sor, int ln, int pc, int dc, int pe, int pu) ln 75 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c const u32 shift = sor->func->dp.lanes[ln] * 8; ln 81 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c if ((data[2] & 0x0000ff00) < (pu << 8) || ln == 0) ln 27 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c gm200_sor_dp_drive(struct nvkm_ior *sor, int ln, int pc, int dc, int pe, int pu) ln 31 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c const u32 shift = sor->func->dp.lanes[ln] * 8; ln 39 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c if ((data[2] & 0x00000f00) < (pu << 8) || ln == 0) ln 539 drivers/md/persistent-data/dm-btree.c struct btree_node *ln, *rn, *pn; ln 548 drivers/md/persistent-data/dm-btree.c ln = dm_block_data(left); ln 551 drivers/md/persistent-data/dm-btree.c nr_left = le32_to_cpu(ln->header.nr_entries) / 2; ln 552 drivers/md/persistent-data/dm-btree.c nr_right = le32_to_cpu(ln->header.nr_entries) - nr_left; ln 554 drivers/md/persistent-data/dm-btree.c ln->header.nr_entries = cpu_to_le32(nr_left); ln 556 drivers/md/persistent-data/dm-btree.c rn->header.flags = ln->header.flags; ln 558 drivers/md/persistent-data/dm-btree.c rn->header.max_entries = ln->header.max_entries; ln 559 drivers/md/persistent-data/dm-btree.c rn->header.value_size = ln->header.value_size; ln 560 drivers/md/persistent-data/dm-btree.c memcpy(rn->keys, ln->keys + nr_left, nr_right * sizeof(rn->keys[0])); ln 562 drivers/md/persistent-data/dm-btree.c size = le32_to_cpu(ln->header.flags) & INTERNAL_NODE ? ln 564 drivers/md/persistent-data/dm-btree.c memcpy(value_ptr(rn, 0), value_ptr(ln, nr_left), ln 626 drivers/md/persistent-data/dm-btree.c struct btree_node *pn, *ln, *rn; ln 640 drivers/md/persistent-data/dm-btree.c ln = dm_block_data(left); ln 643 drivers/md/persistent-data/dm-btree.c ln->header.flags = pn->header.flags; ln 644 drivers/md/persistent-data/dm-btree.c ln->header.nr_entries = cpu_to_le32(nr_left); ln 645 drivers/md/persistent-data/dm-btree.c ln->header.max_entries = pn->header.max_entries; ln 646 drivers/md/persistent-data/dm-btree.c ln->header.value_size = pn->header.value_size; ln 647 drivers/md/persistent-data/dm-btree.c memcpy(ln->keys, pn->keys, nr_left * sizeof(pn->keys[0])); ln 648 drivers/md/persistent-data/dm-btree.c memcpy(value_ptr(ln, 0), value_ptr(pn, 0), nr_left * size); ln 679 drivers/md/persistent-data/dm-btree.c pn->keys[0] = ln->keys[0]; ln 242 drivers/net/wireless/ath/ath9k/hif_usb.c int ln = skb->len; ln 248 drivers/net/wireless/ath/ath9k/hif_usb.c TX_STAT_ADD(skb_success_bytes, ln); ln 148 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_queue_cb(struct bfa_fcport_ln_s *ln, ln 189 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_ln_sm_dn(struct bfa_fcport_ln_s *ln, ln 191 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_ln_sm_dn_nf(struct bfa_fcport_ln_s *ln, ln 193 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_ln_sm_dn_up_nf(struct bfa_fcport_ln_s *ln, ln 195 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_ln_sm_up(struct bfa_fcport_ln_s *ln, ln 197 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_ln_sm_up_nf(struct bfa_fcport_ln_s *ln, ln 199 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_ln_sm_up_dn_nf(struct bfa_fcport_ln_s *ln, ln 201 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_ln_sm_up_dn_up_nf(struct bfa_fcport_ln_s *ln, ln 2786 drivers/scsi/bfa/bfa_svc.c bfa_fcport_ln_sm_dn(struct bfa_fcport_ln_s *ln, ln 2789 drivers/scsi/bfa/bfa_svc.c bfa_trc(ln->fcport->bfa, event); ln 2793 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_up_nf); ln 2794 drivers/scsi/bfa/bfa_svc.c bfa_fcport_queue_cb(ln, BFA_PORT_LINKUP); ln 2798 drivers/scsi/bfa/bfa_svc.c bfa_sm_fault(ln->fcport->bfa, event); ln 2806 drivers/scsi/bfa/bfa_svc.c bfa_fcport_ln_sm_dn_nf(struct bfa_fcport_ln_s *ln, ln 2809 drivers/scsi/bfa/bfa_svc.c bfa_trc(ln->fcport->bfa, event); ln 2813 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn_up_nf); ln 2817 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn); ln 2821 drivers/scsi/bfa/bfa_svc.c bfa_sm_fault(ln->fcport->bfa, event); ln 2829 drivers/scsi/bfa/bfa_svc.c bfa_fcport_ln_sm_dn_up_nf(struct bfa_fcport_ln_s *ln, ln 2832 drivers/scsi/bfa/bfa_svc.c bfa_trc(ln->fcport->bfa, event); ln 2836 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn_nf); ln 2840 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_up_nf); ln 2841 drivers/scsi/bfa/bfa_svc.c bfa_fcport_queue_cb(ln, BFA_PORT_LINKUP); ln 2845 drivers/scsi/bfa/bfa_svc.c bfa_sm_fault(ln->fcport->bfa, event); ln 2853 drivers/scsi/bfa/bfa_svc.c bfa_fcport_ln_sm_up(struct bfa_fcport_ln_s *ln, ln 2856 drivers/scsi/bfa/bfa_svc.c bfa_trc(ln->fcport->bfa, event); ln 2860 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn_nf); ln 2861 drivers/scsi/bfa/bfa_svc.c bfa_fcport_queue_cb(ln, BFA_PORT_LINKDOWN); ln 2865 drivers/scsi/bfa/bfa_svc.c bfa_sm_fault(ln->fcport->bfa, event); ln 2873 drivers/scsi/bfa/bfa_svc.c bfa_fcport_ln_sm_up_nf(struct bfa_fcport_ln_s *ln, ln 2876 drivers/scsi/bfa/bfa_svc.c bfa_trc(ln->fcport->bfa, event); ln 2880 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_up_dn_nf); ln 2884 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_up); ln 2888 drivers/scsi/bfa/bfa_svc.c bfa_sm_fault(ln->fcport->bfa, event); ln 2896 drivers/scsi/bfa/bfa_svc.c bfa_fcport_ln_sm_up_dn_nf(struct bfa_fcport_ln_s *ln, ln 2899 drivers/scsi/bfa/bfa_svc.c bfa_trc(ln->fcport->bfa, event); ln 2903 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_up_dn_up_nf); ln 2907 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn_nf); ln 2908 drivers/scsi/bfa/bfa_svc.c bfa_fcport_queue_cb(ln, BFA_PORT_LINKDOWN); ln 2912 drivers/scsi/bfa/bfa_svc.c bfa_sm_fault(ln->fcport->bfa, event); ln 2920 drivers/scsi/bfa/bfa_svc.c bfa_fcport_ln_sm_up_dn_up_nf(struct bfa_fcport_ln_s *ln, ln 2923 drivers/scsi/bfa/bfa_svc.c bfa_trc(ln->fcport->bfa, event); ln 2927 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_up_dn_nf); ln 2931 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn_up_nf); ln 2932 drivers/scsi/bfa/bfa_svc.c bfa_fcport_queue_cb(ln, BFA_PORT_LINKDOWN); ln 2936 drivers/scsi/bfa/bfa_svc.c bfa_sm_fault(ln->fcport->bfa, event); ln 2943 drivers/scsi/bfa/bfa_svc.c struct bfa_fcport_ln_s *ln = cbarg; ln 2946 drivers/scsi/bfa/bfa_svc.c ln->fcport->event_cbfn(ln->fcport->event_cbarg, ln->ln_event); ln 2948 drivers/scsi/bfa/bfa_svc.c bfa_sm_send_event(ln, BFA_FCPORT_LN_SM_NOTIFICATION); ln 2964 drivers/scsi/bfa/bfa_svc.c bfa_sm_send_event(&fcport->ln, BFA_FCPORT_LN_SM_LINKUP); ln 2967 drivers/scsi/bfa/bfa_svc.c bfa_sm_send_event(&fcport->ln, BFA_FCPORT_LN_SM_LINKDOWN); ln 2975 drivers/scsi/bfa/bfa_svc.c bfa_fcport_queue_cb(struct bfa_fcport_ln_s *ln, enum bfa_port_linkstate event) ln 2977 drivers/scsi/bfa/bfa_svc.c struct bfa_fcport_s *fcport = ln->fcport; ln 2981 drivers/scsi/bfa/bfa_svc.c bfa_sm_send_event(ln, BFA_FCPORT_LN_SM_NOTIFICATION); ln 2983 drivers/scsi/bfa/bfa_svc.c ln->ln_event = event; ln 2984 drivers/scsi/bfa/bfa_svc.c bfa_cb_queue(fcport->bfa, &ln->ln_qe, ln 2985 drivers/scsi/bfa/bfa_svc.c __bfa_cb_fcport_event, ln); ln 3029 drivers/scsi/bfa/bfa_svc.c struct bfa_fcport_ln_s *ln = &fcport->ln; ln 3032 drivers/scsi/bfa/bfa_svc.c ln->fcport = fcport; ln 3037 drivers/scsi/bfa/bfa_svc.c bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn); ln 489 drivers/scsi/bfa/bfa_svc.h struct bfa_fcport_ln_s ln; /* Link Notification */ ln 48 drivers/scsi/csiostor/csio_attr.c csio_vport_set_state(struct csio_lnode *ln); ln 61 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); ln 62 drivers/scsi/csiostor/csio_attr.c struct Scsi_Host *shost = csio_ln_to_shost(ln); ln 80 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, "Failed to register rport = 0x%x.\n", ln 85 drivers/scsi/csiostor/csio_attr.c ln->num_reg_rnodes++; ln 108 drivers/scsi/csiostor/csio_attr.c csio_ln_dbg(ln, "Remote port x%x role 0x%x registered\n", ln 123 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); ln 128 drivers/scsi/csiostor/csio_attr.c ln->num_reg_rnodes--; ln 130 drivers/scsi/csiostor/csio_attr.c csio_ln_dbg(ln, "Remote port x%x un-registered\n", rn->nport_id); ln 141 drivers/scsi/csiostor/csio_attr.c csio_lnode_async_event(struct csio_lnode *ln, enum csio_ln_fc_evt fc_evt) ln 157 drivers/scsi/csiostor/csio_attr.c if (csio_is_npiv_ln(ln)) ln 158 drivers/scsi/csiostor/csio_attr.c csio_vport_set_state(ln); ln 164 drivers/scsi/csiostor/csio_attr.c if (csio_is_npiv_ln(ln)) ln 165 drivers/scsi/csiostor/csio_attr.c csio_vport_set_state(ln); ln 169 drivers/scsi/csiostor/csio_attr.c csio_fchost_attr_init(ln); ln 182 drivers/scsi/csiostor/csio_attr.c csio_fchost_attr_init(struct csio_lnode *ln) ln 184 drivers/scsi/csiostor/csio_attr.c struct Scsi_Host *shost = csio_ln_to_shost(ln); ln 186 drivers/scsi/csiostor/csio_attr.c fc_host_node_name(shost) = wwn_to_u64(csio_ln_wwnn(ln)); ln 187 drivers/scsi/csiostor/csio_attr.c fc_host_port_name(shost) = wwn_to_u64(csio_ln_wwpn(ln)); ln 191 drivers/scsi/csiostor/csio_attr.c (csio_lnode_to_hw(ln))->fres_info.max_vnps; ln 195 drivers/scsi/csiostor/csio_attr.c fc_host_maxframe_size(shost) = ntohs(ln->ln_sparm.csp.sp_bb_data); ln 212 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); ln 213 drivers/scsi/csiostor/csio_attr.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 216 drivers/scsi/csiostor/csio_attr.c fc_host_port_id(shost) = ln->nport_id; ln 228 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); ln 229 drivers/scsi/csiostor/csio_attr.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 232 drivers/scsi/csiostor/csio_attr.c if (csio_is_npiv_ln(ln)) ln 247 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); ln 248 drivers/scsi/csiostor/csio_attr.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 253 drivers/scsi/csiostor/csio_attr.c csio_lnode_state_to_str(ln, state); ln 272 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); ln 273 drivers/scsi/csiostor/csio_attr.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 276 drivers/scsi/csiostor/csio_attr.c switch (hw->pport[ln->portid].link_speed) { ln 310 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); ln 312 drivers/scsi/csiostor/csio_attr.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 315 drivers/scsi/csiostor/csio_attr.c rn = csio_rnode_lookup_portid(ln, FC_FID_FLOGI); ln 331 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = shost_priv(shost); ln 332 drivers/scsi/csiostor/csio_attr.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 333 drivers/scsi/csiostor/csio_attr.c struct fc_host_statistics *fhs = &ln->fch_stats; ln 338 drivers/scsi/csiostor/csio_attr.c csio_get_phy_port_stats(hw, ln->portid, &fcoe_port_stats); ln 357 drivers/scsi/csiostor/csio_attr.c fhs->fcp_input_requests += ln->stats.n_input_requests; ln 358 drivers/scsi/csiostor/csio_attr.c fhs->fcp_output_requests += ln->stats.n_output_requests; ln 359 drivers/scsi/csiostor/csio_attr.c fhs->fcp_control_requests += ln->stats.n_control_requests; ln 360 drivers/scsi/csiostor/csio_attr.c fhs->fcp_input_megabytes += ln->stats.n_input_bytes >> 20; ln 361 drivers/scsi/csiostor/csio_attr.c fhs->fcp_output_megabytes += ln->stats.n_output_bytes >> 20; ln 362 drivers/scsi/csiostor/csio_attr.c fhs->link_failure_count = ln->stats.n_link_down; ln 389 drivers/scsi/csiostor/csio_attr.c csio_vport_set_state(struct csio_lnode *ln) ln 391 drivers/scsi/csiostor/csio_attr.c struct fc_vport *fc_vport = ln->fc_vport; ln 392 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *pln = ln->pln; ln 408 drivers/scsi/csiostor/csio_attr.c csio_lnode_state_to_str(ln, state); ln 417 drivers/scsi/csiostor/csio_attr.c csio_fcoe_alloc_vnp(struct csio_hw *hw, struct csio_lnode *ln) ln 435 drivers/scsi/csiostor/csio_attr.c pln = ln->pln; ln 436 drivers/scsi/csiostor/csio_attr.c ln->fcf_flowid = pln->fcf_flowid; ln 437 drivers/scsi/csiostor/csio_attr.c ln->portid = pln->portid; ln 439 drivers/scsi/csiostor/csio_attr.c csio_fcoe_vnp_alloc_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, ln 441 drivers/scsi/csiostor/csio_attr.c csio_ln_wwnn(ln), csio_ln_wwpn(ln), NULL); ln 460 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, "Failed to issue mbox FCoE VNP command\n"); ln 467 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, "FCOE VNP ALLOC cmd returned 0x%x!\n", ln 473 drivers/scsi/csiostor/csio_attr.c ln->vnp_flowid = FW_FCOE_VNP_CMD_VNPI_GET( ln 475 drivers/scsi/csiostor/csio_attr.c memcpy(csio_ln_wwnn(ln), rsp->vnport_wwnn, 8); ln 476 drivers/scsi/csiostor/csio_attr.c memcpy(csio_ln_wwpn(ln), rsp->vnport_wwpn, 8); ln 478 drivers/scsi/csiostor/csio_attr.c csio_ln_dbg(ln, "FCOE VNPI: 0x%x\n", ln->vnp_flowid); ln 479 drivers/scsi/csiostor/csio_attr.c csio_ln_dbg(ln, "\tWWNN: %x%x%x%x%x%x%x%x\n", ln 480 drivers/scsi/csiostor/csio_attr.c ln->ln_sparm.wwnn[0], ln->ln_sparm.wwnn[1], ln 481 drivers/scsi/csiostor/csio_attr.c ln->ln_sparm.wwnn[2], ln->ln_sparm.wwnn[3], ln 482 drivers/scsi/csiostor/csio_attr.c ln->ln_sparm.wwnn[4], ln->ln_sparm.wwnn[5], ln 483 drivers/scsi/csiostor/csio_attr.c ln->ln_sparm.wwnn[6], ln->ln_sparm.wwnn[7]); ln 484 drivers/scsi/csiostor/csio_attr.c csio_ln_dbg(ln, "\tWWPN: %x%x%x%x%x%x%x%x\n", ln 485 drivers/scsi/csiostor/csio_attr.c ln->ln_sparm.wwpn[0], ln->ln_sparm.wwpn[1], ln 486 drivers/scsi/csiostor/csio_attr.c ln->ln_sparm.wwpn[2], ln->ln_sparm.wwpn[3], ln 487 drivers/scsi/csiostor/csio_attr.c ln->ln_sparm.wwpn[4], ln->ln_sparm.wwpn[5], ln 488 drivers/scsi/csiostor/csio_attr.c ln->ln_sparm.wwpn[6], ln->ln_sparm.wwpn[7]); ln 498 drivers/scsi/csiostor/csio_attr.c csio_fcoe_free_vnp(struct csio_hw *hw, struct csio_lnode *ln) ln 516 drivers/scsi/csiostor/csio_attr.c csio_fcoe_vnp_free_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, ln 517 drivers/scsi/csiostor/csio_attr.c ln->fcf_flowid, ln->vnp_flowid, ln 532 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, "Failed to issue mbox FCoE VNP command\n"); ln 539 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, "FCOE VNP FREE cmd returned 0x%x!\n", ln 556 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = NULL; ln 561 drivers/scsi/csiostor/csio_attr.c ln = csio_shost_init(hw, &fc_vport->dev, false, pln); ln 562 drivers/scsi/csiostor/csio_attr.c if (!ln) ln 569 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, ln 573 drivers/scsi/csiostor/csio_attr.c memcpy(csio_ln_wwnn(ln), wwn, 8); ln 580 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, ln 586 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, ln 590 drivers/scsi/csiostor/csio_attr.c memcpy(csio_ln_wwpn(ln), wwn, 8); ln 594 drivers/scsi/csiostor/csio_attr.c ln->fc_vport = fc_vport; ln 596 drivers/scsi/csiostor/csio_attr.c if (csio_fcoe_alloc_vnp(hw, ln)) ln 599 drivers/scsi/csiostor/csio_attr.c *(struct csio_lnode **)fc_vport->dd_data = ln; ln 601 drivers/scsi/csiostor/csio_attr.c fc_vport->node_name = wwn_to_u64(csio_ln_wwnn(ln)); ln 603 drivers/scsi/csiostor/csio_attr.c fc_vport->port_name = wwn_to_u64(csio_ln_wwpn(ln)); ln 604 drivers/scsi/csiostor/csio_attr.c csio_fchost_attr_init(ln); ln 607 drivers/scsi/csiostor/csio_attr.c if (ln) ln 608 drivers/scsi/csiostor/csio_attr.c csio_shost_exit(ln); ln 616 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = *(struct csio_lnode **)fc_vport->dd_data; ln 617 drivers/scsi/csiostor/csio_attr.c struct Scsi_Host *shost = csio_ln_to_shost(ln); ln 618 drivers/scsi/csiostor/csio_attr.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 626 drivers/scsi/csiostor/csio_attr.c csio_shost_exit(ln); ln 633 drivers/scsi/csiostor/csio_attr.c csio_scsim_cleanup_io_lnode(csio_hw_to_scsim(hw), ln); ln 634 drivers/scsi/csiostor/csio_attr.c csio_lnode_close(ln); ln 640 drivers/scsi/csiostor/csio_attr.c csio_fcoe_free_vnp(hw, ln); ln 642 drivers/scsi/csiostor/csio_attr.c csio_shost_exit(ln); ln 649 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln = *(struct csio_lnode **)fc_vport->dd_data; ln 650 drivers/scsi/csiostor/csio_attr.c struct Scsi_Host *shost = csio_ln_to_shost(ln); ln 651 drivers/scsi/csiostor/csio_attr.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 658 drivers/scsi/csiostor/csio_attr.c csio_scsim_cleanup_io_lnode(csio_hw_to_scsim(hw), ln); ln 659 drivers/scsi/csiostor/csio_attr.c csio_lnode_stop(ln); ln 664 drivers/scsi/csiostor/csio_attr.c csio_fcoe_free_vnp(hw, ln); ln 666 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, "vport disabled\n"); ln 671 drivers/scsi/csiostor/csio_attr.c if (csio_fcoe_alloc_vnp(hw, ln)) { ln 672 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, "vport enabled failed.\n"); ln 675 drivers/scsi/csiostor/csio_attr.c csio_ln_err(ln, "vport enabled\n"); ln 685 drivers/scsi/csiostor/csio_attr.c struct csio_lnode *ln; ln 688 drivers/scsi/csiostor/csio_attr.c ln = csio_rnode_to_lnode(rn); ln 689 drivers/scsi/csiostor/csio_attr.c hw = csio_lnode_to_hw(ln); ln 697 drivers/scsi/csiostor/csio_attr.c csio_ln_dbg(ln, "devloss timeout on rnode:%p portid:x%x flowid:x%x\n", ln 700 drivers/scsi/csiostor/csio_attr.c CSIO_INC_STATS(ln, n_dev_loss_tmo); ln 600 drivers/scsi/csiostor/csio_init.c struct csio_lnode *ln; ln 621 drivers/scsi/csiostor/csio_init.c ln = shost_priv(shost); ln 622 drivers/scsi/csiostor/csio_init.c memset(ln, 0, sizeof(struct csio_lnode)); ln 625 drivers/scsi/csiostor/csio_init.c ln->dev_num = (shost->host_no << 16); ln 641 drivers/scsi/csiostor/csio_init.c hw->rln = ln; ln 644 drivers/scsi/csiostor/csio_init.c if (csio_lnode_init(ln, hw, pln)) ln 650 drivers/scsi/csiostor/csio_init.c return ln; ln 653 drivers/scsi/csiostor/csio_init.c csio_lnode_exit(ln); ln 666 drivers/scsi/csiostor/csio_init.c csio_shost_exit(struct csio_lnode *ln) ln 668 drivers/scsi/csiostor/csio_init.c struct Scsi_Host *shost = csio_ln_to_shost(ln); ln 669 drivers/scsi/csiostor/csio_init.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 684 drivers/scsi/csiostor/csio_init.c csio_lnode_exit(ln); ln 699 drivers/scsi/csiostor/csio_init.c struct csio_lnode *ln; ln 725 drivers/scsi/csiostor/csio_init.c ln = lnode_list[ii]; ln 726 drivers/scsi/csiostor/csio_init.c shost = csio_ln_to_shost(ln); ln 736 drivers/scsi/csiostor/csio_init.c struct csio_lnode *ln; ln 764 drivers/scsi/csiostor/csio_init.c ln = lnode_list[ii]; ln 765 drivers/scsi/csiostor/csio_init.c shost = csio_ln_to_shost(ln); ln 774 drivers/scsi/csiostor/csio_init.c struct csio_lnode *ln; ln 805 drivers/scsi/csiostor/csio_init.c ln = lnode_list[ii]; ln 806 drivers/scsi/csiostor/csio_init.c shost = csio_ln_to_shost(ln); ln 815 drivers/scsi/csiostor/csio_init.c struct csio_lnode *ln; ln 845 drivers/scsi/csiostor/csio_init.c ln = lnode_list[ii]; ln 846 drivers/scsi/csiostor/csio_init.c shost = csio_ln_to_shost(ln); ln 856 drivers/scsi/csiostor/csio_init.c struct csio_lnode *ln; ln 882 drivers/scsi/csiostor/csio_init.c ln = lnode_list[ii]; ln 883 drivers/scsi/csiostor/csio_init.c fc_vport_terminate(ln->fc_vport); ln 916 drivers/scsi/csiostor/csio_init.c csio_lnode_init_post(struct csio_lnode *ln) ln 918 drivers/scsi/csiostor/csio_init.c struct Scsi_Host *shost = csio_ln_to_shost(ln); ln 920 drivers/scsi/csiostor/csio_init.c csio_fchost_attr_init(ln); ln 949 drivers/scsi/csiostor/csio_init.c struct csio_lnode *ln; ln 988 drivers/scsi/csiostor/csio_init.c ln = csio_shost_init(hw, &pdev->dev, true, NULL); ln 989 drivers/scsi/csiostor/csio_init.c if (!ln) { ln 994 drivers/scsi/csiostor/csio_init.c ln->portid = hw->pport[i].portid; ln 997 drivers/scsi/csiostor/csio_init.c if (csio_lnode_start(ln) != 0) ln 1004 drivers/scsi/csiostor/csio_init.c csio_lnode_init_post(ln); ln 1126 drivers/scsi/csiostor/csio_init.c struct csio_lnode *ln; ln 1133 drivers/scsi/csiostor/csio_init.c ln = csio_shost_init(hw, &pdev->dev, true, NULL); ln 1134 drivers/scsi/csiostor/csio_init.c if (!ln) { ln 1139 drivers/scsi/csiostor/csio_init.c ln->portid = hw->pport[i].portid; ln 1142 drivers/scsi/csiostor/csio_init.c if (csio_lnode_start(ln) != 0) ln 1149 drivers/scsi/csiostor/csio_init.c csio_lnode_init_post(ln); ln 82 drivers/scsi/csiostor/csio_init.h csio_ln_to_shost(struct csio_lnode *ln) ln 84 drivers/scsi/csiostor/csio_init.h return container_of((void *)ln, struct Scsi_Host, hostdata[0]); ln 117 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln; ln 122 drivers/scsi/csiostor/csio_lnode.c ln = (struct csio_lnode *) tmp; ln 123 drivers/scsi/csiostor/csio_lnode.c if (ln->portid == portid) ln 124 drivers/scsi/csiostor/csio_lnode.c return ln; ln 270 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln = fdmi_req->lnode; ln 273 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "WR error:%x in processing fdmi rpa cmd\n", ln 275 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 280 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "fdmi rpa cmd rejected reason %x expl %x\n", ln 299 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln = fdmi_req->lnode; ln 307 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "WR error:%x in processing fdmi rhba cmd\n", ln 309 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 314 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "fdmi rhba cmd rejected reason %x expl %x\n", ln 319 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 330 drivers/scsi/csiostor/csio_lnode.c memcpy(&port_name->portname, csio_ln_wwpn(ln), 8); ln 352 drivers/scsi/csiostor/csio_lnode.c if (hw->pport[ln->portid].link_speed == FW_PORT_CAP_SPEED_1G) ln 354 drivers/scsi/csiostor/csio_lnode.c else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP_SPEED_10G) ln 356 drivers/scsi/csiostor/csio_lnode.c else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP32_SPEED_25G) ln 358 drivers/scsi/csiostor/csio_lnode.c else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP32_SPEED_40G) ln 360 drivers/scsi/csiostor/csio_lnode.c else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP32_SPEED_50G) ln 362 drivers/scsi/csiostor/csio_lnode.c else if (hw->pport[ln->portid].link_speed == FW_PORT_CAP32_SPEED_100G) ln 370 drivers/scsi/csiostor/csio_lnode.c mfs = ln->ln_sparm.csp.sp_bb_data; ln 392 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 393 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "Failed to issue fdmi rpa req\n"); ln 412 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln = fdmi_req->lnode; ln 419 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "WR error:%x in processing fdmi dprt cmd\n", ln 421 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 425 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 430 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "fdmi dprt cmd rejected reason %x expl %x\n", ln 442 drivers/scsi/csiostor/csio_lnode.c memcpy(&hbaid->id, csio_ln_wwpn(ln), 8); /* HBA identifer */ ln 448 drivers/scsi/csiostor/csio_lnode.c memcpy(®_pl->port[0].portname, csio_ln_wwpn(ln), 8); ln 457 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_NODENAME, csio_ln_wwnn(ln), ln 499 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 500 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "Failed to issue fdmi rhba req\n"); ln 513 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln = fdmi_req->lnode; ln 520 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "WR error:%x in processing fdmi dhba cmd\n", ln 522 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 526 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 531 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "fdmi dhba cmd rejected reason %x expl %x\n", ln 544 drivers/scsi/csiostor/csio_lnode.c memcpy(&port_name->portname, csio_ln_wwpn(ln), 8); ln 551 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 552 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "Failed to issue fdmi dprt req\n"); ln 565 drivers/scsi/csiostor/csio_lnode.c csio_ln_fdmi_start(struct csio_lnode *ln, void *context) ln 573 drivers/scsi/csiostor/csio_lnode.c if (!(ln->flags & CSIO_LNF_FDMI_ENABLE)) ln 577 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 583 drivers/scsi/csiostor/csio_lnode.c fdmi_req = ln->mgmt_req; ln 584 drivers/scsi/csiostor/csio_lnode.c fdmi_req->lnode = ln; ln 594 drivers/scsi/csiostor/csio_lnode.c memcpy(&hbaid->id, csio_ln_wwpn(ln), 8); ln 600 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_fdmi_err); ln 601 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "Failed to issue fdmi dhba req\n"); ln 617 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln = ((struct csio_lnode *)mbp->priv); ln 633 drivers/scsi/csiostor/csio_lnode.c memcpy(ln->mac, rsp->vnport_mac, sizeof(ln->mac)); ln 635 drivers/scsi/csiostor/csio_lnode.c ln->nport_id = ntohl(nport_id); ln 636 drivers/scsi/csiostor/csio_lnode.c ln->nport_id = ln->nport_id >> 8; ln 644 drivers/scsi/csiostor/csio_lnode.c memcpy(csio_ln_wwnn(ln), rsp->vnport_wwnn, 8); ln 645 drivers/scsi/csiostor/csio_lnode.c memcpy(csio_ln_wwpn(ln), rsp->vnport_wwpn, 8); ln 649 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.csp.sp_hi_ver = csp->sp_hi_ver; ln 650 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.csp.sp_lo_ver = csp->sp_lo_ver; ln 651 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.csp.sp_bb_cred = csp->sp_bb_cred; ln 652 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.csp.sp_features = csp->sp_features; ln 653 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.csp.sp_bb_data = csp->sp_bb_data; ln 654 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.csp.sp_r_a_tov = csp->sp_r_a_tov; ln 655 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.csp.sp_e_d_tov = csp->sp_e_d_tov; ln 659 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.clsp[2].cp_class = clsp->cp_class; ln 660 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.clsp[2].cp_init = clsp->cp_init; ln 661 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.clsp[2].cp_recip = clsp->cp_recip; ln 662 drivers/scsi/csiostor/csio_lnode.c ln->ln_sparm.clsp[2].cp_rdfs = clsp->cp_rdfs; ln 669 drivers/scsi/csiostor/csio_lnode.c csio_lnode_async_event(ln, CSIO_LN_FC_ATTRIB_UPDATE); ln 680 drivers/scsi/csiostor/csio_lnode.c csio_ln_vnp_read(struct csio_lnode *ln, ln 683 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = ln->hwp; ln 694 drivers/scsi/csiostor/csio_lnode.c csio_fcoe_vnp_read_init_mb(ln, mbp, ln 696 drivers/scsi/csiostor/csio_lnode.c ln->fcf_flowid, ln 697 drivers/scsi/csiostor/csio_lnode.c ln->vnp_flowid, ln 718 drivers/scsi/csiostor/csio_lnode.c csio_fcoe_enable_link(struct csio_lnode *ln, bool enable) ln 720 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = ln->hwp; ln 734 drivers/scsi/csiostor/csio_lnode.c portid = ln->portid; ln 740 drivers/scsi/csiostor/csio_lnode.c csio_write_fcoe_link_cond_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, ln 764 drivers/scsi/csiostor/csio_lnode.c memcpy(csio_ln_wwnn(ln), lcmd->vnport_wwnn, 8); ln 765 drivers/scsi/csiostor/csio_lnode.c memcpy(csio_ln_wwpn(ln), lcmd->vnport_wwpn, 8); ln 785 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln = (struct csio_lnode *)mbp->priv; ln 793 drivers/scsi/csiostor/csio_lnode.c csio_ln_err(ln, "FCOE FCF cmd failed with ret x%x\n", ln 800 drivers/scsi/csiostor/csio_lnode.c fcf_info = ln->fcfinfo; ln 831 drivers/scsi/csiostor/csio_lnode.c csio_ln_read_fcf_entry(struct csio_lnode *ln, ln 834 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = ln->hwp; ln 844 drivers/scsi/csiostor/csio_lnode.c csio_fcoe_read_fcf_init_mb(ln, mbp, CSIO_MB_DEFAULT_TMO, ln 845 drivers/scsi/csiostor/csio_lnode.c ln->portid, ln->fcf_flowid, cbfn); ln 876 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln = NULL; ln 879 drivers/scsi/csiostor/csio_lnode.c ln = csio_ln_lookup_by_vnpi(hw, vnpi); ln 880 drivers/scsi/csiostor/csio_lnode.c if (!ln) { ln 882 drivers/scsi/csiostor/csio_lnode.c ln = csio_ln_lookup_by_portid(hw, portid); ln 883 drivers/scsi/csiostor/csio_lnode.c if (!ln) { ln 891 drivers/scsi/csiostor/csio_lnode.c if (ln->vnp_flowid != CSIO_INVALID_IDX) { ln 896 drivers/scsi/csiostor/csio_lnode.c if (!ln) { ln 904 drivers/scsi/csiostor/csio_lnode.c ln->portid = portid; ln 906 drivers/scsi/csiostor/csio_lnode.c ln->vnp_flowid = vnpi; ln 907 drivers/scsi/csiostor/csio_lnode.c ln->dev_num &= ~0xFFFF; ln 908 drivers/scsi/csiostor/csio_lnode.c ln->dev_num |= vnpi; ln 912 drivers/scsi/csiostor/csio_lnode.c ln->fcf_flowid = fcfi; ln 916 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_link_up); ln 919 drivers/scsi/csiostor/csio_lnode.c csio_post_event(&ln->sm, CSIO_LNE_LINKUP); ln 935 drivers/scsi/csiostor/csio_lnode.c csio_post_event_rns(struct csio_lnode *ln, enum csio_rn_ev evt) ln 937 drivers/scsi/csiostor/csio_lnode.c struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; ln 957 drivers/scsi/csiostor/csio_lnode.c csio_cleanup_rns(struct csio_lnode *ln) ln 959 drivers/scsi/csiostor/csio_lnode.c struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; ln 965 drivers/scsi/csiostor/csio_lnode.c csio_put_rnode(ln, rn); ln 983 drivers/scsi/csiostor/csio_lnode.c csio_post_event_lns(struct csio_lnode *ln, enum csio_ln_ev evt) ln 989 drivers/scsi/csiostor/csio_lnode.c if (csio_is_npiv_ln(ln)) { ln 990 drivers/scsi/csiostor/csio_lnode.c csio_post_event(&ln->sm, evt); ln 994 drivers/scsi/csiostor/csio_lnode.c sln = ln; ln 1002 drivers/scsi/csiostor/csio_lnode.c csio_post_event(&ln->sm, evt); ln 1015 drivers/scsi/csiostor/csio_lnode.c csio_ln_down(struct csio_lnode *ln) ln 1017 drivers/scsi/csiostor/csio_lnode.c csio_post_event_lns(ln, CSIO_LNE_LINK_DOWN); ln 1039 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln; ln 1042 drivers/scsi/csiostor/csio_lnode.c ln = csio_ln_lookup_by_vnpi(hw, vnpi); ln 1043 drivers/scsi/csiostor/csio_lnode.c if (ln) { ln 1044 drivers/scsi/csiostor/csio_lnode.c fp = ln->fcfinfo; ln 1045 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_link_down); ln 1048 drivers/scsi/csiostor/csio_lnode.c if (!csio_is_lnode_ready(ln)) { ln 1049 drivers/scsi/csiostor/csio_lnode.c csio_ln_warn(ln, ln 1053 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_drop); ln 1059 drivers/scsi/csiostor/csio_lnode.c csio_ln_warn(ln, ln 1062 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_drop); ln 1067 drivers/scsi/csiostor/csio_lnode.c if (ln->fcf_flowid != fcfi) { ln 1068 drivers/scsi/csiostor/csio_lnode.c csio_ln_warn(ln, ln 1071 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_drop); ln 1078 drivers/scsi/csiostor/csio_lnode.c csio_ln_down(ln); ln 1096 drivers/scsi/csiostor/csio_lnode.c csio_is_lnode_ready(struct csio_lnode *ln) ln 1098 drivers/scsi/csiostor/csio_lnode.c return (csio_get_state(ln) == ((csio_sm_state_t)csio_lns_ready)); ln 1114 drivers/scsi/csiostor/csio_lnode.c csio_lns_uninit(struct csio_lnode *ln, enum csio_ln_ev evt) ln 1116 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1120 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_sm[evt]); ln 1123 drivers/scsi/csiostor/csio_lnode.c csio_set_state(&ln->sm, csio_lns_online); ln 1125 drivers/scsi/csiostor/csio_lnode.c if (csio_is_phys_ln(ln)) { ln 1126 drivers/scsi/csiostor/csio_lnode.c rv = csio_ln_read_fcf_entry(ln, ln 1130 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_err); ln 1135 drivers/scsi/csiostor/csio_lnode.c list_add_tail(&ln->fcfinfo->list, &rln->fcf_lsthead); ln 1138 drivers/scsi/csiostor/csio_lnode.c rv = csio_ln_vnp_read(ln, csio_ln_vnp_read_cbfn); ln 1141 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_err); ln 1149 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, ln 1151 drivers/scsi/csiostor/csio_lnode.c "ln state[uninit].\n", evt, ln->nport_id); ln 1152 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_unexp); ln 1167 drivers/scsi/csiostor/csio_lnode.c csio_lns_online(struct csio_lnode *ln, enum csio_ln_ev evt) ln 1169 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1171 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_sm[evt]); ln 1174 drivers/scsi/csiostor/csio_lnode.c csio_ln_warn(ln, ln 1176 drivers/scsi/csiostor/csio_lnode.c "Ignoring linkup on port:%d\n", ln->portid); ln 1177 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_drop); ln 1181 drivers/scsi/csiostor/csio_lnode.c csio_set_state(&ln->sm, csio_lns_ready); ln 1184 drivers/scsi/csiostor/csio_lnode.c csio_lnode_async_event(ln, CSIO_LN_FC_LINKUP); ln 1192 drivers/scsi/csiostor/csio_lnode.c csio_set_state(&ln->sm, csio_lns_uninit); ln 1193 drivers/scsi/csiostor/csio_lnode.c if (csio_is_phys_ln(ln)) { ln 1195 drivers/scsi/csiostor/csio_lnode.c list_del_init(&ln->fcfinfo->list); ln 1200 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, ln 1202 drivers/scsi/csiostor/csio_lnode.c "ln state[uninit].\n", evt, ln->nport_id); ln 1203 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_unexp); ln 1219 drivers/scsi/csiostor/csio_lnode.c csio_lns_ready(struct csio_lnode *ln, enum csio_ln_ev evt) ln 1221 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1223 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_sm[evt]); ln 1226 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, ln 1228 drivers/scsi/csiostor/csio_lnode.c "in ln state[ready].\n", evt, ln->nport_id); ln 1229 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_drop); ln 1233 drivers/scsi/csiostor/csio_lnode.c csio_set_state(&ln->sm, csio_lns_offline); ln 1234 drivers/scsi/csiostor/csio_lnode.c csio_post_event_rns(ln, CSIO_RNFE_DOWN); ln 1237 drivers/scsi/csiostor/csio_lnode.c csio_lnode_async_event(ln, CSIO_LN_FC_LINKDOWN); ln 1240 drivers/scsi/csiostor/csio_lnode.c if (csio_is_phys_ln(ln)) { ln 1242 drivers/scsi/csiostor/csio_lnode.c list_del_init(&ln->fcfinfo->list); ln 1247 drivers/scsi/csiostor/csio_lnode.c csio_set_state(&ln->sm, csio_lns_offline); ln 1248 drivers/scsi/csiostor/csio_lnode.c csio_post_event_rns(ln, CSIO_RNFE_DOWN); ln 1254 drivers/scsi/csiostor/csio_lnode.c csio_lnode_async_event(ln, CSIO_LN_FC_LINKDOWN); ln 1257 drivers/scsi/csiostor/csio_lnode.c if (csio_is_phys_ln(ln)) { ln 1259 drivers/scsi/csiostor/csio_lnode.c list_del_init(&ln->fcfinfo->list); ln 1264 drivers/scsi/csiostor/csio_lnode.c csio_set_state(&ln->sm, csio_lns_uninit); ln 1265 drivers/scsi/csiostor/csio_lnode.c csio_post_event_rns(ln, CSIO_RNFE_CLOSE); ln 1269 drivers/scsi/csiostor/csio_lnode.c csio_set_state(&ln->sm, csio_lns_offline); ln 1270 drivers/scsi/csiostor/csio_lnode.c csio_post_event_rns(ln, CSIO_RNFE_DOWN); ln 1274 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, ln 1276 drivers/scsi/csiostor/csio_lnode.c "ln state[uninit].\n", evt, ln->nport_id); ln 1277 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_unexp); ln 1293 drivers/scsi/csiostor/csio_lnode.c csio_lns_offline(struct csio_lnode *ln, enum csio_ln_ev evt) ln 1295 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1299 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_sm[evt]); ln 1302 drivers/scsi/csiostor/csio_lnode.c csio_set_state(&ln->sm, csio_lns_online); ln 1304 drivers/scsi/csiostor/csio_lnode.c if (csio_is_phys_ln(ln)) { ln 1305 drivers/scsi/csiostor/csio_lnode.c rv = csio_ln_read_fcf_entry(ln, ln 1309 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_err); ln 1314 drivers/scsi/csiostor/csio_lnode.c list_add_tail(&ln->fcfinfo->list, &rln->fcf_lsthead); ln 1317 drivers/scsi/csiostor/csio_lnode.c rv = csio_ln_vnp_read(ln, csio_ln_vnp_read_cbfn); ln 1320 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_err); ln 1327 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, ln 1329 drivers/scsi/csiostor/csio_lnode.c "in ln state[offline].\n", evt, ln->nport_id); ln 1330 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_drop); ln 1334 drivers/scsi/csiostor/csio_lnode.c csio_set_state(&ln->sm, csio_lns_uninit); ln 1335 drivers/scsi/csiostor/csio_lnode.c csio_post_event_rns(ln, CSIO_RNFE_CLOSE); ln 1339 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, ln 1341 drivers/scsi/csiostor/csio_lnode.c "ln state[offline]\n", evt, ln->nport_id); ln 1342 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_unexp); ln 1368 drivers/scsi/csiostor/csio_lnode.c csio_lnode_state_to_str(struct csio_lnode *ln, int8_t *str) ln 1370 drivers/scsi/csiostor/csio_lnode.c if (csio_get_state(ln) == ((csio_sm_state_t)csio_lns_uninit)) { ln 1374 drivers/scsi/csiostor/csio_lnode.c if (csio_get_state(ln) == ((csio_sm_state_t)csio_lns_ready)) { ln 1378 drivers/scsi/csiostor/csio_lnode.c if (csio_get_state(ln) == ((csio_sm_state_t)csio_lns_offline)) { ln 1486 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln; ln 1554 drivers/scsi/csiostor/csio_lnode.c ln = csio_ln_lookup_by_vnpi(hw, vnpi); ln 1555 drivers/scsi/csiostor/csio_lnode.c if (!ln) { ln 1563 drivers/scsi/csiostor/csio_lnode.c rn = csio_confirm_rnode(ln, rdev_flowid, ln 1566 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, ln 1574 drivers/scsi/csiostor/csio_lnode.c ln->prev_evt = ln->cur_evt; ln 1575 drivers/scsi/csiostor/csio_lnode.c ln->cur_evt = rdev_wr->event_cause; ln 1576 drivers/scsi/csiostor/csio_lnode.c CSIO_INC_STATS(ln, n_evt_fw[rdev_wr->event_cause]); ln 1581 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, ln 1585 drivers/scsi/csiostor/csio_lnode.c csio_post_event(&ln->sm, evt); ln 1621 drivers/scsi/csiostor/csio_lnode.c csio_lnode_start(struct csio_lnode *ln) ln 1624 drivers/scsi/csiostor/csio_lnode.c if (csio_is_phys_ln(ln) && !(ln->flags & CSIO_LNF_LINK_ENABLE)) { ln 1625 drivers/scsi/csiostor/csio_lnode.c rv = csio_fcoe_enable_link(ln, 1); ln 1626 drivers/scsi/csiostor/csio_lnode.c ln->flags |= CSIO_LNF_LINK_ENABLE; ln 1640 drivers/scsi/csiostor/csio_lnode.c csio_lnode_stop(struct csio_lnode *ln) ln 1642 drivers/scsi/csiostor/csio_lnode.c csio_post_event_lns(ln, CSIO_LNE_DOWN_LINK); ln 1643 drivers/scsi/csiostor/csio_lnode.c if (csio_is_phys_ln(ln) && (ln->flags & CSIO_LNF_LINK_ENABLE)) { ln 1644 drivers/scsi/csiostor/csio_lnode.c csio_fcoe_enable_link(ln, 0); ln 1645 drivers/scsi/csiostor/csio_lnode.c ln->flags &= ~CSIO_LNF_LINK_ENABLE; ln 1647 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "stopping ln :%p\n", ln); ln 1659 drivers/scsi/csiostor/csio_lnode.c csio_lnode_close(struct csio_lnode *ln) ln 1661 drivers/scsi/csiostor/csio_lnode.c csio_post_event_lns(ln, CSIO_LNE_CLOSE); ln 1662 drivers/scsi/csiostor/csio_lnode.c if (csio_is_phys_ln(ln)) ln 1663 drivers/scsi/csiostor/csio_lnode.c ln->vnp_flowid = CSIO_INVALID_IDX; ln 1665 drivers/scsi/csiostor/csio_lnode.c csio_ln_dbg(ln, "closed ln :%p\n", ln); ln 1730 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln = io_req->lnode; ln 1764 drivers/scsi/csiostor/csio_lnode.c ln->nport_id, rn->nport_id, ln 1835 drivers/scsi/csiostor/csio_lnode.c csio_ln_fdmi_init(struct csio_lnode *ln) ln 1837 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1841 drivers/scsi/csiostor/csio_lnode.c ln->mgmt_req = kzalloc(sizeof(struct csio_ioreq), GFP_KERNEL); ln 1842 drivers/scsi/csiostor/csio_lnode.c if (!ln->mgmt_req) { ln 1843 drivers/scsi/csiostor/csio_lnode.c csio_ln_err(ln, "Failed to alloc ioreq for FDMI\n"); ln 1849 drivers/scsi/csiostor/csio_lnode.c dma_buf = &ln->mgmt_req->dma_buf; ln 1855 drivers/scsi/csiostor/csio_lnode.c kfree(ln->mgmt_req); ln 1856 drivers/scsi/csiostor/csio_lnode.c ln->mgmt_req = NULL; ln 1860 drivers/scsi/csiostor/csio_lnode.c ln->flags |= CSIO_LNF_FDMI_ENABLE; ln 1869 drivers/scsi/csiostor/csio_lnode.c csio_ln_fdmi_exit(struct csio_lnode *ln) ln 1872 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1874 drivers/scsi/csiostor/csio_lnode.c if (!ln->mgmt_req) ln 1877 drivers/scsi/csiostor/csio_lnode.c dma_buf = &ln->mgmt_req->dma_buf; ln 1882 drivers/scsi/csiostor/csio_lnode.c kfree(ln->mgmt_req); ln 1887 drivers/scsi/csiostor/csio_lnode.c csio_scan_done(struct csio_lnode *ln, unsigned long ticks, ln 1896 drivers/scsi/csiostor/csio_lnode.c if (!ln->tgt_scan_tick) ln 1897 drivers/scsi/csiostor/csio_lnode.c ln->tgt_scan_tick = ticks; ln 1899 drivers/scsi/csiostor/csio_lnode.c if (((ticks - ln->tgt_scan_tick) >= delta_scan_ticks)) { ln 1900 drivers/scsi/csiostor/csio_lnode.c if (!ln->last_scan_ntgts) ln 1901 drivers/scsi/csiostor/csio_lnode.c ln->last_scan_ntgts = ln->n_scsi_tgts; ln 1903 drivers/scsi/csiostor/csio_lnode.c if (ln->last_scan_ntgts == ln->n_scsi_tgts) ln 1906 drivers/scsi/csiostor/csio_lnode.c ln->last_scan_ntgts = ln->n_scsi_tgts; ln 1908 drivers/scsi/csiostor/csio_lnode.c ln->tgt_scan_tick = ticks; ln 1927 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln; ln 1933 drivers/scsi/csiostor/csio_lnode.c ln = (struct csio_lnode *) tmp; ln 1937 drivers/scsi/csiostor/csio_lnode.c csio_lnode_start(ln); ln 1942 drivers/scsi/csiostor/csio_lnode.c csio_lnode_close(ln); ln 1946 drivers/scsi/csiostor/csio_lnode.c csio_lnode_stop(ln); ln 1969 drivers/scsi/csiostor/csio_lnode.c struct csio_lnode *ln; ln 1975 drivers/scsi/csiostor/csio_lnode.c ln = (struct csio_lnode *) tmp; ln 1976 drivers/scsi/csiostor/csio_lnode.c if (ln->portid != portid) ln 1980 drivers/scsi/csiostor/csio_lnode.c csio_lnode_stop(ln); ln 1982 drivers/scsi/csiostor/csio_lnode.c csio_lnode_start(ln); ln 1992 drivers/scsi/csiostor/csio_lnode.c csio_ln_init(struct csio_lnode *ln) ln 1996 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1998 drivers/scsi/csiostor/csio_lnode.c csio_init_state(&ln->sm, csio_lns_uninit); ln 1999 drivers/scsi/csiostor/csio_lnode.c ln->vnp_flowid = CSIO_INVALID_IDX; ln 2000 drivers/scsi/csiostor/csio_lnode.c ln->fcf_flowid = CSIO_INVALID_IDX; ln 2002 drivers/scsi/csiostor/csio_lnode.c if (csio_is_root_ln(ln)) { ln 2006 drivers/scsi/csiostor/csio_lnode.c ln->fcfinfo = kzalloc(sizeof(struct csio_fcf_info), GFP_KERNEL); ln 2007 drivers/scsi/csiostor/csio_lnode.c if (!ln->fcfinfo) { ln 2008 drivers/scsi/csiostor/csio_lnode.c csio_ln_err(ln, "Failed to alloc FCF record\n"); ln 2013 drivers/scsi/csiostor/csio_lnode.c INIT_LIST_HEAD(&ln->fcf_lsthead); ln 2014 drivers/scsi/csiostor/csio_lnode.c kref_init(&ln->fcfinfo->kref); ln 2016 drivers/scsi/csiostor/csio_lnode.c if (csio_fdmi_enable && csio_ln_fdmi_init(ln)) ln 2025 drivers/scsi/csiostor/csio_lnode.c rln = csio_root_lnode(ln); ln 2027 drivers/scsi/csiostor/csio_lnode.c if (csio_is_npiv_ln(ln)) { ln 2029 drivers/scsi/csiostor/csio_lnode.c pln = csio_parent_lnode(ln); ln 2031 drivers/scsi/csiostor/csio_lnode.c ln->fcfinfo = pln->fcfinfo; ln 2034 drivers/scsi/csiostor/csio_lnode.c ln->fcfinfo = kzalloc(sizeof(struct csio_fcf_info), ln 2036 drivers/scsi/csiostor/csio_lnode.c if (!ln->fcfinfo) { ln 2037 drivers/scsi/csiostor/csio_lnode.c csio_ln_err(ln, "Failed to alloc FCF info\n"); ln 2042 drivers/scsi/csiostor/csio_lnode.c kref_init(&ln->fcfinfo->kref); ln 2044 drivers/scsi/csiostor/csio_lnode.c if (csio_fdmi_enable && csio_ln_fdmi_init(ln)) ln 2056 drivers/scsi/csiostor/csio_lnode.c csio_ln_exit(struct csio_lnode *ln) ln 2060 drivers/scsi/csiostor/csio_lnode.c csio_cleanup_rns(ln); ln 2061 drivers/scsi/csiostor/csio_lnode.c if (csio_is_npiv_ln(ln)) { ln 2062 drivers/scsi/csiostor/csio_lnode.c pln = csio_parent_lnode(ln); ln 2065 drivers/scsi/csiostor/csio_lnode.c kref_put(&ln->fcfinfo->kref, csio_free_fcfinfo); ln 2067 drivers/scsi/csiostor/csio_lnode.c csio_ln_fdmi_exit(ln); ln 2069 drivers/scsi/csiostor/csio_lnode.c ln->fcfinfo = NULL; ln 2078 drivers/scsi/csiostor/csio_lnode.c csio_lnode_init(struct csio_lnode *ln, struct csio_hw *hw, ln 2084 drivers/scsi/csiostor/csio_lnode.c csio_lnode_to_hw(ln) = hw; ln 2088 drivers/scsi/csiostor/csio_lnode.c ln->pln = pln; ln 2090 drivers/scsi/csiostor/csio_lnode.c ln->pln = NULL; ln 2093 drivers/scsi/csiostor/csio_lnode.c ln->n_scsi_tgts = 0; ln 2094 drivers/scsi/csiostor/csio_lnode.c ln->last_scan_ntgts = 0; ln 2095 drivers/scsi/csiostor/csio_lnode.c ln->tgt_scan_tick = 0; ln 2098 drivers/scsi/csiostor/csio_lnode.c INIT_LIST_HEAD(&ln->rnhead); ln 2099 drivers/scsi/csiostor/csio_lnode.c INIT_LIST_HEAD(&ln->cln_head); ln 2102 drivers/scsi/csiostor/csio_lnode.c ln->params.log_level = hw->params.log_level; ln 2104 drivers/scsi/csiostor/csio_lnode.c if (csio_ln_init(ln)) ln 2109 drivers/scsi/csiostor/csio_lnode.c list_add_tail(&ln->sm.sm_list, pln ? &pln->cln_head : &hw->sln_head); ln 2118 drivers/scsi/csiostor/csio_lnode.c csio_lnode_to_hw(ln) = NULL; ln 2128 drivers/scsi/csiostor/csio_lnode.c csio_lnode_exit(struct csio_lnode *ln) ln 2130 drivers/scsi/csiostor/csio_lnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 2132 drivers/scsi/csiostor/csio_lnode.c csio_ln_exit(ln); ln 2137 drivers/scsi/csiostor/csio_lnode.c list_del_init(&ln->sm.sm_list); ln 2142 drivers/scsi/csiostor/csio_lnode.c if (ln->pln) ln 2143 drivers/scsi/csiostor/csio_lnode.c ln->pln->num_vports--; ln 2153 drivers/scsi/csiostor/csio_lnode.c csio_lnode_to_hw(ln) = NULL; ln 204 drivers/scsi/csiostor/csio_lnode.h #define csio_lnode_to_hw(ln) ((ln)->hwp) ln 205 drivers/scsi/csiostor/csio_lnode.h #define csio_root_lnode(ln) (csio_lnode_to_hw((ln))->rln) ln 206 drivers/scsi/csiostor/csio_lnode.h #define csio_parent_lnode(ln) ((ln)->pln) ln 207 drivers/scsi/csiostor/csio_lnode.h #define csio_ln_flowid(ln) ((ln)->vnp_flowid) ln 208 drivers/scsi/csiostor/csio_lnode.h #define csio_ln_wwpn(ln) ((ln)->ln_sparm.wwpn) ln 209 drivers/scsi/csiostor/csio_lnode.h #define csio_ln_wwnn(ln) ((ln)->ln_sparm.wwnn) ln 211 drivers/scsi/csiostor/csio_lnode.h #define csio_is_root_ln(ln) (((ln) == csio_root_lnode((ln))) ? 1 : 0) ln 212 drivers/scsi/csiostor/csio_lnode.h #define csio_is_phys_ln(ln) (((ln)->pln == NULL) ? 1 : 0) ln 213 drivers/scsi/csiostor/csio_lnode.h #define csio_is_npiv_ln(ln) (((ln)->pln != NULL) ? 1 : 0) ln 238 drivers/scsi/csiostor/csio_lnode.h void csio_lnode_state_to_str(struct csio_lnode *ln, int8_t *str); ln 838 drivers/scsi/csiostor/csio_mb.c csio_write_fcoe_link_cond_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, ln 846 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); ln 907 drivers/scsi/csiostor/csio_mb.c csio_fcoe_vnp_alloc_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, ln 915 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); ln 949 drivers/scsi/csiostor/csio_mb.c csio_fcoe_vnp_read_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, ln 956 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); ln 978 drivers/scsi/csiostor/csio_mb.c csio_fcoe_vnp_free_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, ln 985 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); ln 1009 drivers/scsi/csiostor/csio_mb.c csio_fcoe_read_fcf_init_mb(struct csio_lnode *ln, struct csio_mb *mbp, ln 1016 drivers/scsi/csiostor/csio_mb.c CSIO_INIT_MBP(mbp, cmdp, mb_tmo, ln, cbfn, 1); ln 121 drivers/scsi/csiostor/csio_rnode.c csio_rn_lookup(struct csio_lnode *ln, uint32_t flowid) ln 123 drivers/scsi/csiostor/csio_rnode.c struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; ln 145 drivers/scsi/csiostor/csio_rnode.c csio_rn_lookup_wwpn(struct csio_lnode *ln, uint8_t *wwpn) ln 147 drivers/scsi/csiostor/csio_rnode.c struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; ln 169 drivers/scsi/csiostor/csio_rnode.c csio_rnode_lookup_portid(struct csio_lnode *ln, uint32_t portid) ln 171 drivers/scsi/csiostor/csio_rnode.c struct csio_rnode *rnhead = (struct csio_rnode *) &ln->rnhead; ln 185 drivers/scsi/csiostor/csio_rnode.c csio_rn_dup_flowid(struct csio_lnode *ln, uint32_t rdev_flowid, ln 192 drivers/scsi/csiostor/csio_rnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 196 drivers/scsi/csiostor/csio_rnode.c if (ln_tmp == ln) ln 216 drivers/scsi/csiostor/csio_rnode.c csio_alloc_rnode(struct csio_lnode *ln) ln 218 drivers/scsi/csiostor/csio_rnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 225 drivers/scsi/csiostor/csio_rnode.c if (csio_rnode_init(rn, ln)) ln 228 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(ln, n_rnode_alloc); ln 235 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(ln, n_rnode_nomem); ln 258 drivers/scsi/csiostor/csio_rnode.c csio_get_rnode(struct csio_lnode *ln, uint32_t flowid) ln 262 drivers/scsi/csiostor/csio_rnode.c rn = csio_rn_lookup(ln, flowid); ln 264 drivers/scsi/csiostor/csio_rnode.c rn = csio_alloc_rnode(ln); ln 283 drivers/scsi/csiostor/csio_rnode.c csio_put_rnode(struct csio_lnode *ln, struct csio_rnode *rn) ln 300 drivers/scsi/csiostor/csio_rnode.c csio_confirm_rnode(struct csio_lnode *ln, uint32_t rdev_flowid, ln 314 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 321 drivers/scsi/csiostor/csio_rnode.c rn = csio_rn_lookup(ln, rdev_flowid); ln 325 drivers/scsi/csiostor/csio_rnode.c if (csio_rn_dup_flowid(ln, rdev_flowid, &vnp_flowid)) { ln 326 drivers/scsi/csiostor/csio_rnode.c csio_ln_warn(ln, ln 333 drivers/scsi/csiostor/csio_rnode.c rn = csio_rn_lookup_wwpn(ln, rdevp->wwpn); ln 340 drivers/scsi/csiostor/csio_rnode.c match_rn = csio_rnode_lookup_portid(ln, ln 355 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 362 drivers/scsi/csiostor/csio_rnode.c csio_ln_warn(ln, ln 383 drivers/scsi/csiostor/csio_rnode.c match_rn = csio_rn_lookup_wwpn(ln, rdevp->wwpn); ln 385 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 393 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 399 drivers/scsi/csiostor/csio_rnode.c csio_ln_warn(ln, ln 412 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, "found rnode:%p ssni:x%x name(wwpn):%llx\n", ln 420 drivers/scsi/csiostor/csio_rnode.c CSIO_INC_STATS(ln, n_rnode_match); ln 424 drivers/scsi/csiostor/csio_rnode.c rn = csio_get_rnode(ln, rdev_flowid); ln 428 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, "alloc rnode:%p ssni:x%x name(wwpn):%llx\n", ln 444 drivers/scsi/csiostor/csio_rnode.c csio_rn_verify_rparams(struct csio_lnode *ln, struct csio_rnode *rn, ln 459 drivers/scsi/csiostor/csio_rnode.c csio_ln_err(ln, "ssni:x%x invalid fabric portid\n", ln 465 drivers/scsi/csiostor/csio_rnode.c ln->flags |= CSIO_LNF_NPIVSUPP; ln 472 drivers/scsi/csiostor/csio_rnode.c csio_ln_err(ln, "ssni:x%x invalid fabric portid\n", ln 508 drivers/scsi/csiostor/csio_rnode.c csio_ln_err(ln, "ssni:x%x invalid rport type recv x%x\n", ln 517 drivers/scsi/csiostor/csio_rnode.c csio_ln_err(ln, ln 526 drivers/scsi/csiostor/csio_rnode.c csio_ln_err(ln, ln 550 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); ln 551 drivers/scsi/csiostor/csio_rnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 558 drivers/scsi/csiostor/csio_rnode.c ln->n_scsi_tgts++; ln 561 drivers/scsi/csiostor/csio_rnode.c csio_ln_fdmi_start(ln, (void *) rn); ln 567 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); ln 568 drivers/scsi/csiostor/csio_rnode.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 579 drivers/scsi/csiostor/csio_rnode.c ln->n_scsi_tgts--; ln 580 drivers/scsi/csiostor/csio_rnode.c ln->last_scan_ntgts--; ln 606 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); ln 614 drivers/scsi/csiostor/csio_rnode.c ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); ln 623 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 629 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 646 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); ln 654 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 663 drivers/scsi/csiostor/csio_rnode.c ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); ln 713 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 731 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); ln 739 drivers/scsi/csiostor/csio_rnode.c ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); ln 750 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 772 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 790 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); ln 798 drivers/scsi/csiostor/csio_rnode.c ret = csio_rn_verify_rparams(ln, rn, rn->rdev_entry); ln 820 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 827 drivers/scsi/csiostor/csio_rnode.c csio_ln_dbg(ln, ln 849 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); ln 859 drivers/scsi/csiostor/csio_rnode.c csio_put_rnode(ln, rn); ln 870 drivers/scsi/csiostor/csio_rnode.c struct csio_lnode *ln = csio_rnode_to_lnode(rn); ln 875 drivers/scsi/csiostor/csio_rnode.c csio_ln_err(ln, "ssni:x%x Unhandled FW Rdev event: %d\n", ln 891 drivers/scsi/csiostor/csio_rnode.c csio_put_rnode(ln, rn); ln 903 drivers/scsi/csiostor/csio_rnode.c csio_rnode_init(struct csio_rnode *rn, struct csio_lnode *ln) ln 905 drivers/scsi/csiostor/csio_rnode.c csio_rnode_to_lnode(rn) = ln; ln 911 drivers/scsi/csiostor/csio_rnode.c list_add_tail(&rn->sm.sm_list, &ln->rnhead); ln 134 drivers/scsi/csiostor/csio_rnode.h void csio_put_rnode(struct csio_lnode *ln, struct csio_rnode *rn); ln 1194 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = ioreq->lnode; ln 1195 drivers/scsi/csiostor/csio_scsi.c struct csio_hw *hw = ln->hwp; ln 1205 drivers/scsi/csiostor/csio_scsi.c ready = csio_is_lnode_ready(ln); ln 1318 drivers/scsi/csiostor/csio_scsi.c csio_scsim_cleanup_io_lnode(struct csio_scsim *scm, struct csio_lnode *ln) ln 1325 drivers/scsi/csiostor/csio_scsi.c csio_dbg(hw, "Gathering all SCSI I/Os on lnode %p\n", ln); ln 1328 drivers/scsi/csiostor/csio_scsi.c sld.lnode = ln; ln 1329 drivers/scsi/csiostor/csio_scsi.c INIT_LIST_HEAD(&ln->cmpl_q); ln 1330 drivers/scsi/csiostor/csio_scsi.c csio_scsi_gather_active_ios(scm, &sld, &ln->cmpl_q); ln 1333 drivers/scsi/csiostor/csio_scsi.c if (list_empty(&ln->cmpl_q)) ln 1337 drivers/scsi/csiostor/csio_scsi.c while (!list_empty(&ln->cmpl_q) && count--) { ln 1344 drivers/scsi/csiostor/csio_scsi.c if (list_empty(&ln->cmpl_q)) ln 1347 drivers/scsi/csiostor/csio_scsi.c csio_dbg(hw, "Some I/Os pending on ln:%p, aborting them..\n", ln); ln 1350 drivers/scsi/csiostor/csio_scsi.c rv = csio_scsi_abort_io_q(scm, &ln->cmpl_q, 30000); ln 1353 drivers/scsi/csiostor/csio_scsi.c csio_scsi_cleanup_io_q(scm, &ln->cmpl_q); ln 1356 drivers/scsi/csiostor/csio_scsi.c CSIO_DB_ASSERT(list_empty(&ln->cmpl_q)); ln 1365 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(class_to_shost(dev)); ln 1366 drivers/scsi/csiostor/csio_scsi.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1379 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(class_to_shost(dev)); ln 1380 drivers/scsi/csiostor/csio_scsi.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1405 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(class_to_shost(dev)); ln 1406 drivers/scsi/csiostor/csio_scsi.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1415 drivers/scsi/csiostor/csio_scsi.c csio_lnodes_block_by_port(hw, ln->portid); ln 1418 drivers/scsi/csiostor/csio_scsi.c csio_disable_lnodes(hw, ln->portid, disable); ln 1422 drivers/scsi/csiostor/csio_scsi.c csio_lnodes_unblock_by_port(hw, ln->portid); ln 1431 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(class_to_shost(dev)); ln 1433 drivers/scsi/csiostor/csio_scsi.c return snprintf(buf, PAGE_SIZE, "%x\n", ln->params.log_level); ln 1441 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(class_to_shost(dev)); ln 1442 drivers/scsi/csiostor/csio_scsi.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1451 drivers/scsi/csiostor/csio_scsi.c ln->params.log_level = dbg_level; ln 1475 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(class_to_shost(dev)); ln 1477 drivers/scsi/csiostor/csio_scsi.c return snprintf(buf, PAGE_SIZE, "%d\n", ln->num_reg_rnodes); ln 1777 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(host); ln 1778 drivers/scsi/csiostor/csio_scsi.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1789 drivers/scsi/csiostor/csio_scsi.c sqset = &hw->sqset[ln->portid][blk_mq_rq_cpu(cmnd->request)]; ln 1830 drivers/scsi/csiostor/csio_scsi.c ioreq->lnode = ln; ln 1841 drivers/scsi/csiostor/csio_scsi.c CSIO_INC_STATS(ln, n_output_requests); ln 1842 drivers/scsi/csiostor/csio_scsi.c ln->stats.n_output_bytes += scsi_bufflen(cmnd); ln 1844 drivers/scsi/csiostor/csio_scsi.c CSIO_INC_STATS(ln, n_input_requests); ln 1845 drivers/scsi/csiostor/csio_scsi.c ln->stats.n_input_bytes += scsi_bufflen(cmnd); ln 1847 drivers/scsi/csiostor/csio_scsi.c CSIO_INC_STATS(ln, n_control_requests); ln 1888 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = ioreq->lnode; ln 1889 drivers/scsi/csiostor/csio_scsi.c struct csio_scsi_qset *sqset = &hw->sqset[ln->portid][cpu]; ln 1912 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(cmnd->device->host); ln 1913 drivers/scsi/csiostor/csio_scsi.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 1942 drivers/scsi/csiostor/csio_scsi.c ready = csio_is_lnode_ready(ln); ln 2060 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(cmnd->device->host); ln 2061 drivers/scsi/csiostor/csio_scsi.c struct csio_hw *hw = csio_lnode_to_hw(ln); ln 2078 drivers/scsi/csiostor/csio_scsi.c if (!csio_is_lnode_ready(ln)) { ln 2082 drivers/scsi/csiostor/csio_scsi.c ln->vnp_flowid, cmnd->device->lun); ln 2115 drivers/scsi/csiostor/csio_scsi.c sqset = &hw->sqset[ln->portid][smp_processor_id()]; ln 2117 drivers/scsi/csiostor/csio_scsi.c ioreq->lnode = ln; ln 2250 drivers/scsi/csiostor/csio_scsi.c struct csio_lnode *ln = shost_priv(shost); ln 2254 drivers/scsi/csiostor/csio_scsi.c if (!ln->hwp || csio_list_deleted(&ln->sm.sm_list)) ln 2257 drivers/scsi/csiostor/csio_scsi.c rv = csio_scan_done(ln, jiffies, time, csio_max_scan_tmo * HZ, ln 2383 drivers/scsi/dc395x.c int ln = srb->total_xfer_length; ln 2417 drivers/scsi/dc395x.c if (ln % 2) { ln 1907 drivers/scsi/ncr53c8xx.c static void ncr_alloc_ccb (struct ncb *np, u_char tn, u_char ln); ln 1913 drivers/scsi/ncr53c8xx.c static struct lcb * ncr_alloc_lcb (struct ncb *np, u_char tn, u_char ln); ln 5625 drivers/scsi/ncr53c8xx.c unsigned char tn = sdev->id, ln = sdev->lun; ln 5627 drivers/scsi/ncr53c8xx.c struct lcb *lp = tp->lp[ln]; ln 7138 drivers/scsi/ncr53c8xx.c u_char ln = cmd->device->lun; ln 7140 drivers/scsi/ncr53c8xx.c struct lcb *lp = tp->lp[ln]; ln 7159 drivers/scsi/ncr53c8xx.c ncr_alloc_ccb(np, tn, ln); ln 7228 drivers/scsi/ncr53c8xx.c cp->lun = ln; ln 7347 drivers/scsi/ncr53c8xx.c static void ncr_alloc_ccb(struct ncb *np, u_char tn, u_char ln) ln 7350 drivers/scsi/ncr53c8xx.c struct lcb *lp = tp->lp[ln]; ln 7483 drivers/scsi/ncr53c8xx.c static struct lcb *ncr_alloc_lcb (struct ncb *np, u_char tn, u_char ln) ln 7486 drivers/scsi/ncr53c8xx.c struct lcb *lp = tp->lp[ln]; ln 7488 drivers/scsi/ncr53c8xx.c int lh = ln & 3; ln 7503 drivers/scsi/ncr53c8xx.c tp->lp[ln] = lp; ln 7539 drivers/scsi/ncr53c8xx.c cpu_to_scr((SCR_JUMP ^ IFFALSE (MASK (0x80+ln, 0xff)))); ln 7575 drivers/scsi/ncr53c8xx.c unsigned char tn = sdev->id, ln = sdev->lun; ln 7577 drivers/scsi/ncr53c8xx.c struct lcb *lp = tp->lp[ln]; ln 7580 drivers/scsi/ncr53c8xx.c if (!lp && !(lp = ncr_alloc_lcb(np, tn, ln))) ln 45 drivers/scsi/sym53c8xx_2/sym_hipd.c static void sym_alloc_lcb_tags (struct sym_hcb *np, u_char tn, u_char ln); ln 1886 drivers/scsi/sym53c8xx_2/sym_hipd.c int ln; ln 1888 drivers/scsi/sym53c8xx_2/sym_hipd.c for (ln = 1; ln < SYM_CONF_MAX_LUN; ln++) ln 1889 drivers/scsi/sym53c8xx_2/sym_hipd.c if (tp->lunmp[ln]) ln 1890 drivers/scsi/sym53c8xx_2/sym_hipd.c tp->lunmp[ln]->to_clear = 0; ln 4648 drivers/scsi/sym53c8xx_2/sym_hipd.c u_char ln = cmd->device->lun; ln 4650 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_lcb *lp = sym_lp(tp, ln); ln 4681 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_alloc_lcb_tags(np, tn, ln); ln 4756 drivers/scsi/sym53c8xx_2/sym_hipd.c cp->lun = ln; ln 4968 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_lcb *sym_alloc_lcb (struct sym_hcb *np, u_char tn, u_char ln) ln 4982 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ln && !tp->luntbl) { ln 4993 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ln && !tp->lunmp) { ln 5007 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ln) { ln 5008 drivers/scsi/sym53c8xx_2/sym_hipd.c tp->lunmp[ln] = lp; ln 5009 drivers/scsi/sym53c8xx_2/sym_hipd.c tp->luntbl[ln] = cpu_to_scr(vtobus(lp)); ln 5049 drivers/scsi/sym53c8xx_2/sym_hipd.c static void sym_alloc_lcb_tags (struct sym_hcb *np, u_char tn, u_char ln) ln 5052 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_lcb *lp = sym_lp(tp, ln); ln 5095 drivers/scsi/sym53c8xx_2/sym_hipd.c int sym_free_lcb(struct sym_hcb *np, u_char tn, u_char ln) ln 5098 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_lcb *lp = sym_lp(tp, ln); ln 5102 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ln) { ln 5110 drivers/scsi/sym53c8xx_2/sym_hipd.c tp->luntbl[ln] = cpu_to_scr(vtobus(&np->badlun_sa)); ln 5111 drivers/scsi/sym53c8xx_2/sym_hipd.c tp->lunmp[ln] = NULL; ln 1055 drivers/scsi/sym53c8xx_2/sym_hipd.h struct sym_lcb *sym_alloc_lcb(struct sym_hcb *np, u_char tn, u_char ln); ln 1056 drivers/scsi/sym53c8xx_2/sym_hipd.h int sym_free_lcb(struct sym_hcb *np, u_char tn, u_char ln); ln 392 drivers/tty/vt/vt.c char32_t *ln = uniscr->lines[vc->vc_y]; ln 395 drivers/tty/vt/vt.c memmove(&ln[x + nr], &ln[x], (cols - x - nr) * sizeof(*ln)); ln 396 drivers/tty/vt/vt.c memset32(&ln[x], ' ', nr); ln 405 drivers/tty/vt/vt.c char32_t *ln = uniscr->lines[vc->vc_y]; ln 408 drivers/tty/vt/vt.c memcpy(&ln[x], &ln[x + nr], (cols - x - nr) * sizeof(*ln)); ln 409 drivers/tty/vt/vt.c memset32(&ln[cols - nr], ' ', nr); ln 419 drivers/tty/vt/vt.c char32_t *ln = uniscr->lines[vc->vc_y]; ln 421 drivers/tty/vt/vt.c memset32(&ln[x], ' ', nr); ln 1909 drivers/usb/atm/ueagle-atm.c int ret, size, u, ln; ln 1931 drivers/usb/atm/ueagle-atm.c for (u = 0; u < size; u += ln) { ln 1932 drivers/usb/atm/ueagle-atm.c ln = min(size - u, 64); ln 1933 drivers/usb/atm/ueagle-atm.c ret = uea_request(sc, 0xe, 0, ln, pfw + u); ln 259 drivers/video/fbdev/matrox/matroxfb_maven.c unsigned int ln; ln 267 drivers/video/fbdev/matrox/matroxfb_maven.c ln = fxtal * n; ln 270 drivers/video/fbdev/matrox/matroxfb_maven.c if (ln % dvd) ln 272 drivers/video/fbdev/matrox/matroxfb_maven.c ln = ln / dvd; ln 274 drivers/video/fbdev/matrox/matroxfb_maven.c if (ln < scrlen + 2) ln 276 drivers/video/fbdev/matrox/matroxfb_maven.c ln = ln - scrlen; ln 277 drivers/video/fbdev/matrox/matroxfb_maven.c if (ln > htotal) ln 279 drivers/video/fbdev/matrox/matroxfb_maven.c dprintk(KERN_DEBUG "Match: %u / %u / %u / %u\n", n, m, p, ln); ln 280 drivers/video/fbdev/matrox/matroxfb_maven.c if (ln > besth2) { ln 282 drivers/video/fbdev/matrox/matroxfb_maven.c *h2 = besth2 = ln; ln 824 fs/gfs2/dir.c u64 ln; ln 840 fs/gfs2/dir.c ln = be64_to_cpu(leaf->lf_next); ln 842 fs/gfs2/dir.c if (!ln) ln 845 fs/gfs2/dir.c error = get_leaf(ip, ln, &bh); ln 181 fs/lockd/host.c struct lockd_net *ln = net_generic(host->net, lockd_net_id); ln 196 fs/lockd/host.c ln->nrhosts--; ln 240 fs/lockd/host.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 275 fs/lockd/host.c ln->nrhosts++; ln 348 fs/lockd/host.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 356 fs/lockd/host.c if (time_after_eq(jiffies, ln->next_gc)) ln 394 fs/lockd/host.c ln->nrhosts++; ln 586 fs/lockd/host.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 588 fs/lockd/host.c if (ln->nrhosts == 0) ln 592 fs/lockd/host.c dprintk("lockd: %lu hosts left in net %x:\n", ln->nrhosts, ln 687 fs/lockd/host.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 689 fs/lockd/host.c ln->next_gc = jiffies + NLM_HOST_COLLECT; ln 320 fs/lockd/mon.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 335 fs/lockd/mon.c cached = nsm_lookup_hostname(&ln->nsm_handles, ln 338 fs/lockd/mon.c cached = nsm_lookup_addr(&ln->nsm_handles, sap); ln 352 fs/lockd/mon.c list_add(&new->sm_link, &ln->nsm_handles); ln 380 fs/lockd/mon.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 384 fs/lockd/mon.c cached = nsm_lookup_priv(&ln->nsm_handles, &info->priv); ln 25 fs/lockd/procfs.c struct lockd_net *ln = net_generic(current->nsproxy->net_ns, ln 39 fs/lockd/procfs.c locks_end_grace(&ln->lockd_manager); ln 52 fs/lockd/procfs.c struct lockd_net *ln = net_generic(current->nsproxy->net_ns, ln 56 fs/lockd/procfs.c resp[0] = list_empty(&ln->lockd_manager.list) ? 'Y' : 'N'; ln 102 fs/lockd/svc.c struct lockd_net *ln = container_of(dwork, struct lockd_net, ln 105 fs/lockd/svc.c locks_end_grace(&ln->lockd_manager); ln 111 fs/lockd/svc.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 113 fs/lockd/svc.c locks_start_grace(net, &ln->lockd_manager); ln 114 fs/lockd/svc.c cancel_delayed_work_sync(&ln->grace_period_end); ln 115 fs/lockd/svc.c schedule_delayed_work(&ln->grace_period_end, grace_period); ln 122 fs/lockd/svc.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 124 fs/lockd/svc.c cancel_delayed_work_sync(&ln->grace_period_end); ln 125 fs/lockd/svc.c locks_end_grace(&ln->lockd_manager); ln 140 fs/lockd/svc.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 185 fs/lockd/svc.c cancel_delayed_work_sync(&ln->grace_period_end); ln 186 fs/lockd/svc.c locks_end_grace(&ln->lockd_manager); ln 257 fs/lockd/svc.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 260 fs/lockd/svc.c if (ln->nlmsvc_users++) ln 275 fs/lockd/svc.c ln->nlmsvc_users--; ln 281 fs/lockd/svc.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 283 fs/lockd/svc.c if (ln->nlmsvc_users) { ln 284 fs/lockd/svc.c if (--ln->nlmsvc_users == 0) { ln 286 fs/lockd/svc.c cancel_delayed_work_sync(&ln->grace_period_end); ln 287 fs/lockd/svc.c locks_end_grace(&ln->lockd_manager); ln 689 fs/lockd/svc.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 691 fs/lockd/svc.c INIT_DELAYED_WORK(&ln->grace_period_end, grace_ender); ln 692 fs/lockd/svc.c INIT_LIST_HEAD(&ln->lockd_manager.list); ln 693 fs/lockd/svc.c ln->lockd_manager.block_opens = false; ln 694 fs/lockd/svc.c INIT_LIST_HEAD(&ln->nsm_handles); ln 700 fs/lockd/svc.c struct lockd_net *ln = net_generic(net, lockd_net_id); ln 702 fs/lockd/svc.c WARN_ONCE(!list_empty(&ln->lockd_manager.list), ln 705 fs/lockd/svc.c WARN_ONCE(!list_empty(&ln->nsm_handles), ln 708 fs/lockd/svc.c WARN_ONCE(delayed_work_pending(&ln->grace_period_end), ln 1210 include/linux/of.h #define of_for_each_phandle(it, err, np, ln, cn, cc) \ ln 1211 include/linux/of.h for (of_phandle_iterator_init((it), (np), (ln), (cn), (cc)), \ ln 109 kernel/irq/affinity.c const struct node_vectors *ln = l; ln 112 kernel/irq/affinity.c return ln->ncpus - rn->ncpus; ln 372 kernel/locking/locktorture.c } locks[3], *ll, *ln; ln 393 kernel/locking/locktorture.c ln = ll; ln 394 kernel/locking/locktorture.c list_for_each_entry_continue_reverse(ln, &list, link) ln 395 kernel/locking/locktorture.c ww_mutex_unlock(ln->lock); ln 442 kernel/locking/test-ww_mutex.c struct reorder_lock *ll, *ln; ln 469 kernel/locking/test-ww_mutex.c ln = ll; ln 470 kernel/locking/test-ww_mutex.c list_for_each_entry_continue_reverse(ln, &locks, link) ln 471 kernel/locking/test-ww_mutex.c ww_mutex_unlock(ln->lock); ln 491 kernel/locking/test-ww_mutex.c list_for_each_entry_safe(ll, ln, &locks, link) ln 333 net/ceph/crush/mapper.c __s64 ln, draw, high_draw = 0; ln 353 net/ceph/crush/mapper.c ln = crush_ln(u) - 0x1000000000000ll; ln 361 net/ceph/crush/mapper.c draw = div64_s64(ln, weights[i]); ln 693 net/ipv6/ip6_fib.c struct fib6_node *fn, *in, *ln; ln 783 net/ipv6/ip6_fib.c ln = node_alloc(net); ln 785 net/ipv6/ip6_fib.c if (!ln) ln 787 net/ipv6/ip6_fib.c ln->fn_bit = plen; ln 788 net/ipv6/ip6_fib.c RCU_INIT_POINTER(ln->parent, pn); ln 791 net/ipv6/ip6_fib.c rcu_assign_pointer(pn->right, ln); ln 793 net/ipv6/ip6_fib.c rcu_assign_pointer(pn->left, ln); ln 795 net/ipv6/ip6_fib.c return ln; ln 825 net/ipv6/ip6_fib.c ln = node_alloc(net); ln 827 net/ipv6/ip6_fib.c if (!in || !ln) { ln 830 net/ipv6/ip6_fib.c if (ln) ln 831 net/ipv6/ip6_fib.c node_free_immediate(net, ln); ln 856 net/ipv6/ip6_fib.c ln->fn_bit = plen; ln 858 net/ipv6/ip6_fib.c RCU_INIT_POINTER(ln->parent, in); ln 862 net/ipv6/ip6_fib.c rcu_assign_pointer(in->right, ln); ln 865 net/ipv6/ip6_fib.c rcu_assign_pointer(in->left, ln); ln 876 net/ipv6/ip6_fib.c ln = node_alloc(net); ln 878 net/ipv6/ip6_fib.c if (!ln) ln 881 net/ipv6/ip6_fib.c ln->fn_bit = plen; ln 883 net/ipv6/ip6_fib.c RCU_INIT_POINTER(ln->parent, pn); ln 886 net/ipv6/ip6_fib.c RCU_INIT_POINTER(ln->right, fn); ln 888 net/ipv6/ip6_fib.c RCU_INIT_POINTER(ln->left, fn); ln 890 net/ipv6/ip6_fib.c rcu_assign_pointer(fn->parent, ln); ln 893 net/ipv6/ip6_fib.c rcu_assign_pointer(pn->right, ln); ln 895 net/ipv6/ip6_fib.c rcu_assign_pointer(pn->left, ln); ln 897 net/ipv6/ip6_fib.c return ln; ln 317 net/mac80211/debugfs.c int ln; ln 329 net/mac80211/debugfs.c ln = skb_queue_len(&local->pending[i]); ln 331 net/mac80211/debugfs.c i, ln); ln 91 sound/firewire/digi00x/amdtp-dot.c const u8 ln = idx & 0xf; ln 95 sound/firewire/digi00x/amdtp-dot.c if (len[ln] < off) ln 98 sound/firewire/digi00x/amdtp-dot.c return ((nib[14 + off - len[ln]]) | (hr << 4)); ln 940 tools/perf/util/probe-event.c struct int_node *ln; ln 1001 tools/perf/util/probe-event.c intlist__for_each_entry(ln, lr->line_list) { ln 1002 tools/perf/util/probe-event.c for (; ln->i > l; l++) {