lport              13 arch/um/drivers/umcast.h 	unsigned short lport;
lport              21 arch/um/drivers/umcast_kern.c 	int lport;
lport              36 arch/um/drivers/umcast_kern.c 	dpri->lport = init->lport;
lport              44 arch/um/drivers/umcast_kern.c 		       "%u\n", dpri->addr, dpri->rport, dpri->lport);
lport              47 arch/um/drivers/umcast_kern.c 		       "TTL:%u\n", dpri->addr, dpri->lport, dpri->ttl);
lport              78 arch/um/drivers/umcast_kern.c 		  .lport	= 1102,
lport              90 arch/um/drivers/umcast_kern.c 		init->lport = simple_strtoul(port_str, &last, 10);
lport             108 arch/um/drivers/umcast_kern.c 	init->rport = init->lport;
lport             111 arch/um/drivers/umcast_kern.c 	       init->lport, init->ttl);
lport             124 arch/um/drivers/umcast_kern.c 		  .lport	= 1102,
lport             136 arch/um/drivers/umcast_kern.c 		init->lport = simple_strtoul(lport_str, &last, 10);
lport             156 arch/um/drivers/umcast_kern.c 	       init->lport, init->addr, init->rport);
lport              47 arch/um/drivers/umcast_user.c 		pri->listen_addr = new_addr(NULL, pri->lport);
lport            1975 drivers/infiniband/hw/cxgb4/cm.c 	req->le.lport = sin->sin_port;
lport            3993 drivers/infiniband/hw/cxgb4/cm.c 				  __be32 laddr, __be16 lport,
lport            4011 drivers/infiniband/hw/cxgb4/cm.c 	req->le.lport = lport;
lport             580 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h 	u8     lport;                 /* associated offload logical port */
lport            1167 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h 	uint16_t lport;         /* local port */
lport             625 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c 				     pi->lport,
lport             653 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 	fwr->lp = htons(f->fs.val.lport);
lport             654 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 	fwr->lpm = htons(f->fs.mask.lport);
lport             823 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 	if (fs->val.lport && !fs->mask.lport)
lport             824 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 		fs->mask.lport = ~0;
lport             904 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 	if (!fs->val.lport || fs->mask.lport != 0xffff)
lport            1020 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 	req->local_port = cpu_to_be16(f->fs.val.lport);
lport            1061 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c 	req->local_port = cpu_to_be16(f->fs.val.lport);
lport            2507 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	f->fs.val.lport = cpu_to_be16(sport);
lport            2508 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 	f->fs.mask.lport  = ~0;
lport            5607 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		pi->lport = port;
lport            6058 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c 		adapter->port[i]->dev_port = pi->lport;
lport             159 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c 		fs->val.lport = cpu_to_be16(match.key->dst);
lport             160 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c 		fs->mask.lport = cpu_to_be16(match.mask->dst);
lport             223 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h 	f->val.lport  = ntohl(val)  & 0x0000FFFF;
lport             224 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h 	f->mask.lport = ntohl(mask) & 0x0000FFFF;
lport             155 drivers/net/ethernet/chelsio/cxgb4/l2t.c 	req->params = htons(L2T_W_PORT_V(e->lport) | L2T_W_NOREPLY_V(!sync));
lport             311 drivers/net/ethernet/chelsio/cxgb4/l2t.c 				    (e->vlan == vlan) && (e->lport == port))
lport             423 drivers/net/ethernet/chelsio/cxgb4/l2t.c 	u8 lport;
lport             432 drivers/net/ethernet/chelsio/cxgb4/l2t.c 		lport = netdev2pinfo(physdev)->tx_chan + 4;
lport             434 drivers/net/ethernet/chelsio/cxgb4/l2t.c 		lport = netdev2pinfo(physdev)->lport;
lport             446 drivers/net/ethernet/chelsio/cxgb4/l2t.c 		    e->vlan == vlan && e->lport == lport) {
lport             463 drivers/net/ethernet/chelsio/cxgb4/l2t.c 		e->lport = lport;
lport             492 drivers/net/ethernet/chelsio/cxgb4/l2t.c 		ntuple |= (u64)l2t->lport << tp->port_shift;
lport             599 drivers/net/ethernet/chelsio/cxgb4/l2t.c 			e->lport = port;
lport             724 drivers/net/ethernet/chelsio/cxgb4/l2t.c 			   e->vlan & VLAN_VID_MASK, vlan_prio(e), e->lport,
lport              87 drivers/net/ethernet/chelsio/cxgb4/l2t.h 	u8 lport;                   /* associated offload logical interface */
lport            8727 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		ret = t4_link_l1cfg_ns(adapter, adapter->mbox, pi->lport, lc);
lport            9665 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	pi->lport = port;
lport             547 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h 		__be16 lport;
lport             289 drivers/net/ethernet/intel/ice/ice_common.c 	resp->lport_num = pi->lport;
lport            2186 drivers/net/ethernet/intel/ice/ice_common.c ice_aq_set_phy_cfg(struct ice_hw *hw, u8 lport,
lport            2204 drivers/net/ethernet/intel/ice/ice_common.c 	desc.params.set_phy.lport_num = lport;
lport            2332 drivers/net/ethernet/intel/ice/ice_common.c 		status = ice_aq_set_phy_cfg(hw, pi->lport, &cfg, NULL);
lport            2479 drivers/net/ethernet/intel/ice/ice_common.c 	cmd->lport_num = pi->lport;
lport              95 drivers/net/ethernet/intel/ice/ice_common.h ice_aq_set_phy_cfg(struct ice_hw *hw, u8 lport,
lport             549 drivers/net/ethernet/intel/ice/ice_dcb_lib.c 	port = hw->port_info->lport;
lport            1002 drivers/net/ethernet/intel/ice/ice_ethtool.c 		status = ice_aq_set_phy_cfg(pi->hw, pi->lport, &config, NULL);
lport            2351 drivers/net/ethernet/intel/ice/ice_ethtool.c 	u8 autoneg, timeout = TEST_SET_BITS_TIMEOUT, lport = 0;
lport            2516 drivers/net/ethernet/intel/ice/ice_ethtool.c 	status = ice_aq_set_phy_cfg(&pf->hw, lport, &config, NULL);
lport             123 drivers/net/ethernet/intel/ice/ice_lib.c 	tlan_ctx->port_num = vsi->port_info->lport;
lport             837 drivers/net/ethernet/intel/ice/ice_main.c 			pi->lport);
lport             912 drivers/net/ethernet/intel/ice/ice_main.c 	if (ice_aq_set_event_mask(pi->hw, pi->lport, mask, NULL)) {
lport             915 drivers/net/ethernet/intel/ice/ice_main.c 			pi->lport);
lport             922 drivers/net/ethernet/intel/ice/ice_main.c 			pi->lport);
lport            1433 drivers/net/ethernet/intel/ice/ice_main.c 	retcode = ice_aq_set_phy_cfg(&vsi->back->hw, pi->lport, cfg, NULL);
lport            3707 drivers/net/ethernet/intel/ice/ice_main.c 	port = hw->port_info->lport;
lport             374 drivers/net/ethernet/intel/ice/ice_sched.c ice_aq_get_dflt_topo(struct ice_hw *hw, u8 lport,
lport             384 drivers/net/ethernet/intel/ice/ice_sched.c 	cmd->port_num = lport;
lport             953 drivers/net/ethernet/intel/ice/ice_sched.c 	status = ice_aq_get_dflt_topo(hw, pi->lport, buf, ICE_AQ_MAX_BUF_LEN,
lport             571 drivers/net/ethernet/intel/ice/ice_switch.c 		pi->lport = (u8)(vsi_port_num & ICE_LPORT_MASK);
lport            1408 drivers/net/ethernet/intel/ice/ice_switch.c 		new_fltr->src = hw->port_info->lport;
lport            2092 drivers/net/ethernet/intel/ice/ice_switch.c 		f_info.src = hw->port_info->lport;
lport            2572 drivers/net/ethernet/intel/ice/ice_switch.c 			new_fltr.src = hw->port_info->lport;
lport             355 drivers/net/ethernet/intel/ice/ice_type.h 	u8 lport;
lport             205 drivers/net/ethernet/sfc/falcon/filter.h 			 __be32 lhost, __be16 lport,
lport             215 drivers/net/ethernet/sfc/falcon/filter.h 	spec->loc_port = lport;
lport             231 drivers/net/ethernet/sfc/filter.h 			 __be32 lhost, __be16 lport,
lport             241 drivers/net/ethernet/sfc/filter.h 	spec->loc_port = lport;
lport            1404 drivers/ntb/test/ntb_perf.c 	int pidx, lport, ret;
lport            1406 drivers/ntb/test/ntb_perf.c 	lport = ntb_port_number(perf->ntb);
lport            1413 drivers/ntb/test/ntb_perf.c 		if (lport < ntb_peer_port_number(perf->ntb, pidx)) {
lport             296 drivers/ntb/test/ntb_pingpong.c 	int pidx, lport, pcnt;
lport             299 drivers/ntb/test/ntb_pingpong.c 	lport = ntb_port_number(pp->ntb);
lport             302 drivers/ntb/test/ntb_pingpong.c 		if (lport < ntb_peer_port_number(pp->ntb, pidx))
lport             122 drivers/nvme/host/fc.c 	struct nvme_fc_lport		*lport;
lport             137 drivers/nvme/host/fc.c 	struct nvme_fc_lport	*lport;
lport             225 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport =
lport             229 drivers/nvme/host/fc.c 	WARN_ON(lport->localport.port_state != FC_OBJSTATE_DELETED);
lport             230 drivers/nvme/host/fc.c 	WARN_ON(!list_empty(&lport->endp_list));
lport             234 drivers/nvme/host/fc.c 	list_del(&lport->port_list);
lport             239 drivers/nvme/host/fc.c 	ida_simple_remove(&nvme_fc_local_port_cnt, lport->localport.port_num);
lport             240 drivers/nvme/host/fc.c 	ida_destroy(&lport->endp_cnt);
lport             242 drivers/nvme/host/fc.c 	put_device(lport->dev);
lport             244 drivers/nvme/host/fc.c 	kfree(lport);
lport             248 drivers/nvme/host/fc.c nvme_fc_lport_put(struct nvme_fc_lport *lport)
lport             250 drivers/nvme/host/fc.c 	kref_put(&lport->ref, nvme_fc_free_lport);
lport             254 drivers/nvme/host/fc.c nvme_fc_lport_get(struct nvme_fc_lport *lport)
lport             256 drivers/nvme/host/fc.c 	return kref_get_unless_zero(&lport->ref);
lport             265 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport;
lport             270 drivers/nvme/host/fc.c 	list_for_each_entry(lport, &nvme_fc_lport_list, port_list) {
lport             271 drivers/nvme/host/fc.c 		if (lport->localport.node_name != pinfo->node_name ||
lport             272 drivers/nvme/host/fc.c 		    lport->localport.port_name != pinfo->port_name)
lport             275 drivers/nvme/host/fc.c 		if (lport->dev != dev) {
lport             276 drivers/nvme/host/fc.c 			lport = ERR_PTR(-EXDEV);
lport             280 drivers/nvme/host/fc.c 		if (lport->localport.port_state != FC_OBJSTATE_DELETED) {
lport             281 drivers/nvme/host/fc.c 			lport = ERR_PTR(-EEXIST);
lport             285 drivers/nvme/host/fc.c 		if (!nvme_fc_lport_get(lport)) {
lport             290 drivers/nvme/host/fc.c 			lport = NULL;
lport             296 drivers/nvme/host/fc.c 		lport->ops = ops;
lport             297 drivers/nvme/host/fc.c 		lport->localport.port_role = pinfo->port_role;
lport             298 drivers/nvme/host/fc.c 		lport->localport.port_id = pinfo->port_id;
lport             299 drivers/nvme/host/fc.c 		lport->localport.port_state = FC_OBJSTATE_ONLINE;
lport             303 drivers/nvme/host/fc.c 		return lport;
lport             306 drivers/nvme/host/fc.c 	lport = NULL;
lport             311 drivers/nvme/host/fc.c 	return lport;
lport             439 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport = localport_to_lport(portptr);
lport             455 drivers/nvme/host/fc.c 	if (atomic_read(&lport->act_rport_cnt) == 0)
lport             456 drivers/nvme/host/fc.c 		lport->ops->localport_delete(&lport->localport);
lport             458 drivers/nvme/host/fc.c 	nvme_fc_lport_put(lport);
lport             475 drivers/nvme/host/fc.c nvme_fc_signal_discovery_scan(struct nvme_fc_lport *lport,
lport             487 drivers/nvme/host/fc.c 		lport->localport.node_name, lport->localport.port_name);
lport             499 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport =
lport             512 drivers/nvme/host/fc.c 	ida_simple_remove(&lport->endp_cnt, rport->remoteport.port_num);
lport             516 drivers/nvme/host/fc.c 	nvme_fc_lport_put(lport);
lport             563 drivers/nvme/host/fc.c nvme_fc_attach_to_suspended_rport(struct nvme_fc_lport *lport,
lport             572 drivers/nvme/host/fc.c 	list_for_each_entry(rport, &lport->endp_list, endp_list) {
lport             650 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport = localport_to_lport(localport);
lport             655 drivers/nvme/host/fc.c 	if (!nvme_fc_lport_get(lport)) {
lport             665 drivers/nvme/host/fc.c 	newrec = nvme_fc_attach_to_suspended_rport(lport, pinfo);
lport             674 drivers/nvme/host/fc.c 		nvme_fc_lport_put(lport);
lport             676 drivers/nvme/host/fc.c 		nvme_fc_signal_discovery_scan(lport, newrec);
lport             683 drivers/nvme/host/fc.c 	newrec = kmalloc((sizeof(*newrec) + lport->ops->remote_priv_sz),
lport             690 drivers/nvme/host/fc.c 	idx = ida_simple_get(&lport->endp_cnt, 0, 0, GFP_KERNEL);
lport             703 drivers/nvme/host/fc.c 	newrec->remoteport.localport = &lport->localport;
lport             704 drivers/nvme/host/fc.c 	newrec->dev = lport->dev;
lport             705 drivers/nvme/host/fc.c 	newrec->lport = lport;
lport             716 drivers/nvme/host/fc.c 	list_add_tail(&newrec->endp_list, &lport->endp_list);
lport             719 drivers/nvme/host/fc.c 	nvme_fc_signal_discovery_scan(lport, newrec);
lport             727 drivers/nvme/host/fc.c 	nvme_fc_lport_put(lport);
lport             747 drivers/nvme/host/fc.c 			rport->lport->ops->ls_abort(&rport->lport->localport,
lport             856 drivers/nvme/host/fc.c 		rport->lport->ops->remoteport_delete(portptr);
lport             882 drivers/nvme/host/fc.c 	nvme_fc_signal_discovery_scan(rport->lport, rport);
lport            1069 drivers/nvme/host/fc.c 	ret = rport->lport->ops->ls_req(&rport->lport->localport,
lport            1189 drivers/nvme/host/fc.c 			 ctrl->lport->ops->lsrqst_priv_sz +
lport            1199 drivers/nvme/host/fc.c 			(lsreq->private + ctrl->lport->ops->lsrqst_priv_sz);
lport            1298 drivers/nvme/host/fc.c 			 ctrl->lport->ops->lsrqst_priv_sz +
lport            1308 drivers/nvme/host/fc.c 			(lsreq->private + ctrl->lport->ops->lsrqst_priv_sz);
lport            1423 drivers/nvme/host/fc.c 			 ctrl->lport->ops->lsrqst_priv_sz +
lport            1434 drivers/nvme/host/fc.c 			(lsreq->private + ctrl->lport->ops->lsrqst_priv_sz);
lport            1481 drivers/nvme/host/fc.c 	fc_dma_unmap_single(ctrl->lport->dev, op->fcp_req.rspdma,
lport            1483 drivers/nvme/host/fc.c 	fc_dma_unmap_single(ctrl->lport->dev, op->fcp_req.cmddma,
lport            1515 drivers/nvme/host/fc.c 	ctrl->lport->ops->fcp_abort(&ctrl->lport->localport,
lport            1607 drivers/nvme/host/fc.c 	fc_dma_sync_single_for_cpu(ctrl->lport->dev, op->fcp_req.rspdma,
lport            1738 drivers/nvme/host/fc.c 	op->fcp_req.cmddma = fc_dma_map_single(ctrl->lport->dev,
lport            1740 drivers/nvme/host/fc.c 	if (fc_dma_mapping_error(ctrl->lport->dev, op->fcp_req.cmddma)) {
lport            1747 drivers/nvme/host/fc.c 	op->fcp_req.rspdma = fc_dma_map_single(ctrl->lport->dev,
lport            1750 drivers/nvme/host/fc.c 	if (fc_dma_mapping_error(ctrl->lport->dev, op->fcp_req.rspdma)) {
lport            1791 drivers/nvme/host/fc.c 		private = kzalloc(ctrl->lport->ops->fcprqst_priv_sz,
lport            1925 drivers/nvme/host/fc.c 	if (ctrl->lport->ops->delete_queue)
lport            1926 drivers/nvme/host/fc.c 		ctrl->lport->ops->delete_queue(&ctrl->lport->localport, qidx,
lport            1947 drivers/nvme/host/fc.c 	if (ctrl->lport->ops->create_queue)
lport            1948 drivers/nvme/host/fc.c 		ret = ctrl->lport->ops->create_queue(&ctrl->lport->localport,
lport            2150 drivers/nvme/host/fc.c 	freq->sg_cnt = fc_dma_map_sg(ctrl->lport->dev, freq->sg_table.sgl,
lport            2173 drivers/nvme/host/fc.c 	fc_dma_unmap_sg(ctrl->lport->dev, freq->sg_table.sgl, op->nents,
lport            2276 drivers/nvme/host/fc.c 	fc_dma_sync_single_for_device(ctrl->lport->dev, op->fcp_req.cmddma,
lport            2285 drivers/nvme/host/fc.c 	ret = ctrl->lport->ops->fcp_io(&ctrl->lport->localport,
lport            2446 drivers/nvme/host/fc.c 				ctrl->lport->ops->max_hw_queues);
lport            2468 drivers/nvme/host/fc.c 			    ctrl->lport->ops->fcprqst_priv_sz);
lport            2520 drivers/nvme/host/fc.c 				ctrl->lport->ops->max_hw_queues);
lport            2566 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport = rport->lport;
lport            2568 drivers/nvme/host/fc.c 	atomic_inc(&lport->act_rport_cnt);
lport            2574 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport = rport->lport;
lport            2577 drivers/nvme/host/fc.c 	cnt = atomic_dec_return(&lport->act_rport_cnt);
lport            2578 drivers/nvme/host/fc.c 	if (cnt == 0 && lport->localport.port_state == FC_OBJSTATE_DELETED)
lport            2579 drivers/nvme/host/fc.c 		lport->ops->localport_delete(&lport->localport);
lport            2603 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport = rport->lport;
lport            2611 drivers/nvme/host/fc.c 			lport->ops->remoteport_delete(&rport->remoteport);
lport            2640 drivers/nvme/host/fc.c 		ctrl->cnum, ctrl->lport->localport.port_name,
lport            2675 drivers/nvme/host/fc.c 		(ctrl->lport->ops->max_sgl_segments - 1) << (PAGE_SHIFT - 9);
lport            3047 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport, struct nvme_fc_rport *rport)
lport            3079 drivers/nvme/host/fc.c 	if (lport->dev)
lport            3080 drivers/nvme/host/fc.c 		ctrl->ctrl.numa_node = dev_to_node(lport->dev);
lport            3084 drivers/nvme/host/fc.c 	ctrl->lport = lport;
lport            3086 drivers/nvme/host/fc.c 	ctrl->dev = lport->dev;
lport            3104 drivers/nvme/host/fc.c 				lport->ops->max_hw_queues);
lport            3126 drivers/nvme/host/fc.c 			    ctrl->lport->ops->fcprqst_priv_sz);
lport            3303 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport;
lport            3321 drivers/nvme/host/fc.c 	list_for_each_entry(lport, &nvme_fc_lport_list, port_list) {
lport            3322 drivers/nvme/host/fc.c 		if (lport->localport.node_name != laddr.nn ||
lport            3323 drivers/nvme/host/fc.c 		    lport->localport.port_name != laddr.pn)
lport            3326 drivers/nvme/host/fc.c 		list_for_each_entry(rport, &lport->endp_list, endp_list) {
lport            3337 drivers/nvme/host/fc.c 			ctrl = nvme_fc_init_ctrl(dev, opts, lport, rport);
lport            3367 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport;
lport            3373 drivers/nvme/host/fc.c 	list_for_each_entry(lport, &nvme_fc_lport_list, port_list) {
lport            3374 drivers/nvme/host/fc.c 		list_for_each_entry(rport, &lport->endp_list, endp_list) {
lport            3375 drivers/nvme/host/fc.c 			if (!nvme_fc_lport_get(lport))
lport            3387 drivers/nvme/host/fc.c 				nvme_fc_lport_put(lport);
lport            3409 drivers/nvme/host/fc.c 		lport = rport->lport;
lport            3411 drivers/nvme/host/fc.c 		nvme_fc_signal_discovery_scan(lport, rport);
lport            3413 drivers/nvme/host/fc.c 		nvme_fc_lport_put(lport);
lport            3516 drivers/nvme/host/fc.c 	struct nvme_fc_lport *lport;
lport            3519 drivers/nvme/host/fc.c 	list_for_each_entry(lport, &nvme_fc_lport_list, port_list) {
lport            3520 drivers/nvme/host/fc.c 		list_for_each_entry(rport, &lport->endp_list, endp_list) {
lport             197 drivers/nvme/target/fcloop.c 	struct fcloop_lport *lport;
lport             204 drivers/nvme/target/fcloop.c 	struct fcloop_lport *lport;
lport             211 drivers/nvme/target/fcloop.c 	struct fcloop_lport *lport;
lport             217 drivers/nvme/target/fcloop.c 	struct fcloop_lport *lport;
lport             826 drivers/nvme/target/fcloop.c 	struct fcloop_lport *lport = lport_priv->lport;
lport             829 drivers/nvme/target/fcloop.c 	complete(&lport->unreg_done);
lport             896 drivers/nvme/target/fcloop.c 	struct fcloop_lport *lport;
lport             901 drivers/nvme/target/fcloop.c 	lport = kzalloc(sizeof(*lport), GFP_KERNEL);
lport             902 drivers/nvme/target/fcloop.c 	if (!lport)
lport             929 drivers/nvme/target/fcloop.c 		lport_priv->lport = lport;
lport             931 drivers/nvme/target/fcloop.c 		lport->localport = localport;
lport             932 drivers/nvme/target/fcloop.c 		INIT_LIST_HEAD(&lport->lport_list);
lport             935 drivers/nvme/target/fcloop.c 		list_add_tail(&lport->lport_list, &fcloop_lports);
lport             944 drivers/nvme/target/fcloop.c 		kfree(lport);
lport             951 drivers/nvme/target/fcloop.c __unlink_local_port(struct fcloop_lport *lport)
lport             953 drivers/nvme/target/fcloop.c 	list_del(&lport->lport_list);
lport             957 drivers/nvme/target/fcloop.c __wait_localport_unreg(struct fcloop_lport *lport)
lport             961 drivers/nvme/target/fcloop.c 	init_completion(&lport->unreg_done);
lport             963 drivers/nvme/target/fcloop.c 	ret = nvme_fc_unregister_localport(lport->localport);
lport             965 drivers/nvme/target/fcloop.c 	wait_for_completion(&lport->unreg_done);
lport             967 drivers/nvme/target/fcloop.c 	kfree(lport);
lport             977 drivers/nvme/target/fcloop.c 	struct fcloop_lport *tlport, *lport = NULL;
lport             991 drivers/nvme/target/fcloop.c 			lport = tlport;
lport             992 drivers/nvme/target/fcloop.c 			__unlink_local_port(lport);
lport             998 drivers/nvme/target/fcloop.c 	if (!lport)
lport            1001 drivers/nvme/target/fcloop.c 	ret = __wait_localport_unreg(lport);
lport            1010 drivers/nvme/target/fcloop.c 	struct fcloop_lport *tmplport, *lport = NULL;
lport            1052 drivers/nvme/target/fcloop.c 			lport = tmplport;
lport            1056 drivers/nvme/target/fcloop.c 		if (!lport)
lport            1058 drivers/nvme/target/fcloop.c 		newnport->lport = lport;
lport            1075 drivers/nvme/target/fcloop.c 				nport->lport = lport;
lport            1120 drivers/nvme/target/fcloop.c 	ret = nvme_fc_register_remoteport(nport->lport->localport,
lport            1133 drivers/nvme/target/fcloop.c 		nport->tport->lport = nport->lport;
lport            1136 drivers/nvme/target/fcloop.c 	rport->lport = nport->lport;
lport            1231 drivers/nvme/target/fcloop.c 	tport->lport = nport->lport;
lport            1356 drivers/nvme/target/fcloop.c 	struct fcloop_lport *lport;
lport            1388 drivers/nvme/target/fcloop.c 		lport = list_first_entry_or_null(&fcloop_lports,
lport            1389 drivers/nvme/target/fcloop.c 						typeof(*lport), lport_list);
lport            1390 drivers/nvme/target/fcloop.c 		if (!lport)
lport            1393 drivers/nvme/target/fcloop.c 		__unlink_local_port(lport);
lport            1397 drivers/nvme/target/fcloop.c 		ret = __wait_localport_unreg(lport);
lport            1436 drivers/scsi/bfa/bfa_defs_svc.h 	struct bfa_lport_aen_data_s	lport;
lport            1157 drivers/scsi/bfa/bfa_fcs.c 		if (bfa_fcs_lport_get_pwwn(&vport->lport) == pwwn)
lport            1247 drivers/scsi/bfa/bfa_fcs.c 		if (vport->lport.pid == pid) {
lport            1248 drivers/scsi/bfa/bfa_fcs.c 			bfa_fcs_lport_uf_recv(&vport->lport, fchs, len);
lport            1478 drivers/scsi/bfa/bfa_fcs.c 		lpwwn[i++] = vport->lport.port_cfg.pwwn;
lport             313 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_lport_uf_recv(struct bfa_fcs_lport_s *lport, struct fchs_s *fchs,
lport             315 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_lport_attach(struct bfa_fcs_lport_s *lport, struct bfa_fcs_s *fcs,
lport             317 drivers/scsi/bfa/bfa_fcs.h void bfa_fcs_lport_init(struct bfa_fcs_lport_s *lport,
lport             353 drivers/scsi/bfa/bfa_fcs.h 	bfa_fcs_lport_t		lport;		/*  logical port	*/
lport             363 drivers/scsi/bfa/bfa_fcs_lport.c 	aen_entry->aen_data.lport.vf_id = port->fabric->vf_id;
lport             364 drivers/scsi/bfa/bfa_fcs_lport.c 	aen_entry->aen_data.lport.roles = port->port_cfg.roles;
lport             365 drivers/scsi/bfa/bfa_fcs_lport.c 	aen_entry->aen_data.lport.ppwwn = bfa_fcs_lport_get_pwwn(
lport             367 drivers/scsi/bfa/bfa_fcs_lport.c 	aen_entry->aen_data.lport.lpwwn = bfa_fcs_lport_get_pwwn(port);
lport             769 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_lport_uf_recv(struct bfa_fcs_lport_s *lport,
lport             776 drivers/scsi/bfa/bfa_fcs_lport.c 	bfa_stats(lport, uf_recvs);
lport             777 drivers/scsi/bfa/bfa_fcs_lport.c 	bfa_trc(lport->fcs, fchs->type);
lport             779 drivers/scsi/bfa/bfa_fcs_lport.c 	if (!bfa_fcs_lport_is_online(lport)) {
lport             787 drivers/scsi/bfa/bfa_fcs_lport.c 			bfa_fcs_lport_send_ls_rjt(lport, fchs,
lport             790 drivers/scsi/bfa/bfa_fcs_lport.c 			bfa_stats(lport, plogi_rcvd);
lport             792 drivers/scsi/bfa/bfa_fcs_lport.c 			bfa_stats(lport, uf_recv_drops);
lport             805 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_plogi(lport, fchs, (struct fc_logi_s *) els_cmd);
lport             813 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_echo(lport, fchs,
lport             822 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_rnid(lport, fchs,
lport             830 drivers/scsi/bfa/bfa_fcs_lport.c 			bfa_fcs_lport_abts_acc(lport, fchs);
lport             838 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_send_fcgs_rjt(lport, fchs, CT_RSN_NOT_SUPP,
lport             846 drivers/scsi/bfa/bfa_fcs_lport.c 	rport = bfa_fcs_lport_get_rport_by_pid(lport, pid);
lport             860 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_trc(lport->fcs, fchs->s_id);
lport             861 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_trc(lport->fcs, fchs->d_id);
lport             864 drivers/scsi/bfa/bfa_fcs_lport.c 			bfa_sm_fault(lport->fcs, fchs->type);
lport             868 drivers/scsi/bfa/bfa_fcs_lport.c 	bfa_trc(lport->fcs, els_cmd->els_code);
lport             870 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_scn_process_rscn(lport, fchs, len);
lport             891 drivers/scsi/bfa/bfa_fcs_lport.c 	bfa_fcs_lport_send_ls_rjt(lport, fchs, FC_LS_RJT_RSN_CMD_NOT_SUPP,
lport            1074 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_lport_attach(struct bfa_fcs_lport_s *lport, struct bfa_fcs_s *fcs,
lport            1077 drivers/scsi/bfa/bfa_fcs_lport.c 	lport->fcs = fcs;
lport            1078 drivers/scsi/bfa/bfa_fcs_lport.c 	lport->fabric = bfa_fcs_vf_lookup(fcs, vf_id);
lport            1079 drivers/scsi/bfa/bfa_fcs_lport.c 	lport->vport = vport;
lport            1080 drivers/scsi/bfa/bfa_fcs_lport.c 	lport->lp_tag = (vport) ? vport->lps->bfa_tag :
lport            1081 drivers/scsi/bfa/bfa_fcs_lport.c 				  lport->fabric->lps->bfa_tag;
lport            1083 drivers/scsi/bfa/bfa_fcs_lport.c 	INIT_LIST_HEAD(&lport->rport_q);
lport            1084 drivers/scsi/bfa/bfa_fcs_lport.c 	lport->num_rports = 0;
lport            1093 drivers/scsi/bfa/bfa_fcs_lport.c bfa_fcs_lport_init(struct bfa_fcs_lport_s *lport,
lport            1096 drivers/scsi/bfa/bfa_fcs_lport.c 	struct bfa_fcs_vport_s *vport = lport->vport;
lport            1097 drivers/scsi/bfa/bfa_fcs_lport.c 	struct bfad_s *bfad = (struct bfad_s *)lport->fcs->bfad;
lport            1100 drivers/scsi/bfa/bfa_fcs_lport.c 	lport->port_cfg = *port_cfg;
lport            1102 drivers/scsi/bfa/bfa_fcs_lport.c 	lport->bfad_port = bfa_fcb_lport_new(lport->fcs->bfad, lport,
lport            1103 drivers/scsi/bfa/bfa_fcs_lport.c 					lport->port_cfg.roles,
lport            1104 drivers/scsi/bfa/bfa_fcs_lport.c 					lport->fabric->vf_drv,
lport            1107 drivers/scsi/bfa/bfa_fcs_lport.c 	wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(lport));
lport            1111 drivers/scsi/bfa/bfa_fcs_lport.c 	bfa_fcs_lport_aen_post(lport, BFA_LPORT_AEN_NEW);
lport            1113 drivers/scsi/bfa/bfa_fcs_lport.c 	bfa_sm_set_state(lport, bfa_fcs_lport_sm_uninit);
lport            1114 drivers/scsi/bfa/bfa_fcs_lport.c 	bfa_sm_send_event(lport, BFA_FCS_PORT_SM_CREATE);
lport            5055 drivers/scsi/bfa/bfa_fcs_lport.c 			if (vport->lport.pid == gidft_entry->pid)
lport            5557 drivers/scsi/bfa/bfa_fcs_lport.c 		if (vport->lport.pid == rpid)
lport            5884 drivers/scsi/bfa/bfa_fcs_lport.c 		return &vport->lport;
lport            5963 drivers/scsi/bfa/bfa_fcs_lport.c #define __vport_fcs(__vp)       ((__vp)->lport.fcs)
lport            5964 drivers/scsi/bfa/bfa_fcs_lport.c #define __vport_pwwn(__vp)      ((__vp)->lport.port_cfg.pwwn)
lport            5965 drivers/scsi/bfa/bfa_fcs_lport.c #define __vport_nwwn(__vp)      ((__vp)->lport.port_cfg.nwwn)
lport            5966 drivers/scsi/bfa/bfa_fcs_lport.c #define __vport_bfa(__vp)       ((__vp)->lport.fcs->bfa)
lport            5967 drivers/scsi/bfa/bfa_fcs_lport.c #define __vport_fcid(__vp)      ((__vp)->lport.pid)
lport            5968 drivers/scsi/bfa/bfa_fcs_lport.c #define __vport_fabric(__vp)    ((__vp)->lport.fabric)
lport            5969 drivers/scsi/bfa/bfa_fcs_lport.c #define __vport_vfid(__vp)      ((__vp)->lport.fabric->vf_id)
lport            6096 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_delete(&vport->lport);
lport            6125 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_delete(&vport->lport);
lport            6136 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_sm_send_event(&vport->lport, BFA_FCS_PORT_SM_STOP);
lport            6177 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_online(&vport->lport);
lport            6215 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_delete(&vport->lport);
lport            6250 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_delete(&vport->lport);
lport            6263 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_delete(&vport->lport);
lport            6284 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_delete(&vport->lport);
lport            6289 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_sm_send_event(&vport->lport, BFA_FCS_PORT_SM_STOP);
lport            6295 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_offline(&vport->lport);
lport            6374 drivers/scsi/bfa/bfa_fcs_lport.c 		bfa_fcs_lport_delete(&vport->lport);
lport            6486 drivers/scsi/bfa/bfa_fcs_lport.c 	aen_entry->aen_data.lport.vf_id = port->fabric->vf_id;
lport            6487 drivers/scsi/bfa/bfa_fcs_lport.c 	aen_entry->aen_data.lport.roles = port->port_cfg.roles;
lport            6488 drivers/scsi/bfa/bfa_fcs_lport.c 	aen_entry->aen_data.lport.ppwwn = bfa_fcs_lport_get_pwwn(
lport            6490 drivers/scsi/bfa/bfa_fcs_lport.c 	aen_entry->aen_data.lport.lpwwn = bfa_fcs_lport_get_pwwn(port);
lport            6525 drivers/scsi/bfa/bfa_fcs_lport.c 			bfa_fcs_vport_aen_post(&vport->lport,
lport            6539 drivers/scsi/bfa/bfa_fcs_lport.c 			bfa_fcs_vport_aen_post(&vport->lport,
lport            6547 drivers/scsi/bfa/bfa_fcs_lport.c 			bfa_fcs_vport_aen_post(&vport->lport,
lport            6732 drivers/scsi/bfa/bfa_fcs_lport.c 	bfa_fcs_lport_attach(&vport->lport, fcs, vf_id, vport);
lport            6733 drivers/scsi/bfa/bfa_fcs_lport.c 	bfa_fcs_lport_init(&vport->lport, vport_cfg);
lport            6764 drivers/scsi/bfa/bfa_fcs_lport.c 	vport->lport.port_cfg.preboot_vp = BFA_TRUE;
lport            6780 drivers/scsi/bfa/bfa_fcs_lport.c 	if (vport && (vport->lport.port_cfg.preboot_vp == BFA_TRUE))
lport            6833 drivers/scsi/bfa/bfa_fcs_lport.c 	if (vport->lport.port_cfg.preboot_vp)
lport            6858 drivers/scsi/bfa/bfa_fcs_lport.c 	bfa_fcs_lport_get_attr(&vport->lport, &attr->port_attr);
lport            1034 drivers/scsi/bfa/bfad.c 				(&((vport->fcs_vport).lport.port_cfg.nwwn)));
lport            1036 drivers/scsi/bfa/bfad.c 				(&((vport->fcs_vport).lport.port_cfg.pwwn)));
lport             374 drivers/scsi/bfa/bfad_attr.c 				vp->fcs_vport.lport.port_cfg.pwwn) {
lport             376 drivers/scsi/bfa/bfad_attr.c 				vp->fcs_vport.lport.port_cfg.preboot_vp;
lport             589 drivers/scsi/bfa/bfad_attr.c 		bfa_fcs_lport_set_symname(&fcs_vport->lport, sym_name);
lport             835 drivers/scsi/bfa/bfad_bsg.c 	       (void *)&fcs_vport->lport.stats,
lport             861 drivers/scsi/bfa/bfad_bsg.c 	memset(&fcs_vport->lport.stats, 0, sizeof(struct bfa_lport_stats_s));
lport             278 drivers/scsi/bnx2fc/bnx2fc.h 	struct fc_lport *lport;
lport             488 drivers/scsi/bnx2fc/bnx2fc.h 	struct fc_lport *lport;
lport             548 drivers/scsi/bnx2fc/bnx2fc.h void bnx2fc_rport_event_handler(struct fc_lport *lport,
lport             572 drivers/scsi/bnx2fc/bnx2fc.h struct fc_seq *bnx2fc_elsct_send(struct fc_lport *lport, u32 did,
lport              30 drivers/scsi/bnx2fc/bnx2fc_debug.c 	if (io_req && io_req->port && io_req->port->lport &&
lport              31 drivers/scsi/bnx2fc/bnx2fc_debug.c 	    io_req->port->lport->host)
lport              32 drivers/scsi/bnx2fc/bnx2fc_debug.c 		shost_printk(KERN_INFO, io_req->port->lport->host,
lport              54 drivers/scsi/bnx2fc/bnx2fc_debug.c 	if (tgt && tgt->port && tgt->port->lport && tgt->port->lport->host &&
lport              56 drivers/scsi/bnx2fc/bnx2fc_debug.c 		shost_printk(KERN_INFO, tgt->port->lport->host,
lport              65 drivers/scsi/bnx2fc/bnx2fc_debug.c void BNX2FC_HBA_DBG(const struct fc_lport *lport, const char *fmt, ...)
lport              78 drivers/scsi/bnx2fc/bnx2fc_debug.c 	if (lport && lport->host)
lport              79 drivers/scsi/bnx2fc/bnx2fc_debug.c 		shost_printk(KERN_INFO, lport->host, PFX "%pV", &vaf);
lport              45 drivers/scsi/bnx2fc/bnx2fc_debug.h void BNX2FC_HBA_DBG(const struct fc_lport *lport, const char *fmt, ...);
lport              65 drivers/scsi/bnx2fc/bnx2fc_els.c 	struct fc_lport *lport = NULL;
lport              75 drivers/scsi/bnx2fc/bnx2fc_els.c 	lport = tgt->rdata->local_port;
lport              77 drivers/scsi/bnx2fc/bnx2fc_els.c 	r_a_tov = lport->r_a_tov;
lport             187 drivers/scsi/bnx2fc/bnx2fc_els.c 	struct fc_lport *lport = tgt->rdata->local_port;
lport             188 drivers/scsi/bnx2fc/bnx2fc_els.c 	u32 r_a_tov = lport->r_a_tov;
lport             215 drivers/scsi/bnx2fc/bnx2fc_els.c 	struct fc_lport *lport = tgt->rdata->local_port;
lport             216 drivers/scsi/bnx2fc/bnx2fc_els.c 	u32 r_a_tov = lport->r_a_tov;
lport             243 drivers/scsi/bnx2fc/bnx2fc_els.c 	struct fc_lport *lport = tgt->rdata->local_port;
lport             244 drivers/scsi/bnx2fc/bnx2fc_els.c 	u32 r_a_tov = lport->r_a_tov;
lport             586 drivers/scsi/bnx2fc/bnx2fc_els.c 	struct fc_lport *lport = tgt->rdata->local_port;
lport             589 drivers/scsi/bnx2fc/bnx2fc_els.c 	u32 r_a_tov = lport->r_a_tov;
lport             628 drivers/scsi/bnx2fc/bnx2fc_els.c 	struct fc_lport *lport = tgt->rdata->local_port;
lport             630 drivers/scsi/bnx2fc/bnx2fc_els.c 	u32 r_a_tov = lport->r_a_tov;
lport             678 drivers/scsi/bnx2fc/bnx2fc_els.c 	struct fc_lport *lport = port->lport;
lport             695 drivers/scsi/bnx2fc/bnx2fc_els.c 	if (lport->state != LPORT_ST_READY || !(lport->link_up)) {
lport             865 drivers/scsi/bnx2fc/bnx2fc_els.c 	struct fc_lport *lport = exch->lp;
lport             906 drivers/scsi/bnx2fc/bnx2fc_els.c 	BNX2FC_HBA_DBG(lport, "fcoe_mac=%pM method=%d\n", fcoe_mac, method);
lport             907 drivers/scsi/bnx2fc/bnx2fc_els.c 	fip->update_mac(lport, fcoe_mac);
lport             909 drivers/scsi/bnx2fc/bnx2fc_els.c 	fc_lport_flogi_resp(seq, fp, lport);
lport             917 drivers/scsi/bnx2fc/bnx2fc_els.c 	struct fc_lport *lport = exch->lp;
lport             921 drivers/scsi/bnx2fc/bnx2fc_els.c 		fip->update_mac(lport, zero_mac);
lport             922 drivers/scsi/bnx2fc/bnx2fc_els.c 	fc_lport_logo_resp(seq, fp, lport);
lport             925 drivers/scsi/bnx2fc/bnx2fc_els.c struct fc_seq *bnx2fc_elsct_send(struct fc_lport *lport, u32 did,
lport             932 drivers/scsi/bnx2fc/bnx2fc_els.c 	struct fcoe_port *port = lport_priv(lport);
lport             940 drivers/scsi/bnx2fc/bnx2fc_els.c 		return fc_elsct_send(lport, did, fp, op, bnx2fc_flogi_resp,
lport             946 drivers/scsi/bnx2fc/bnx2fc_els.c 		return fc_elsct_send(lport, did, fp, op, bnx2fc_logo_resp,
lport             949 drivers/scsi/bnx2fc/bnx2fc_els.c 	return fc_elsct_send(lport, did, fp, op, resp, arg, timeout);
lport              74 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_shost_config(struct fc_lport *lport, struct device *dev);
lport              75 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_lport_config(struct fc_lport *lport);
lport              76 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_em_config(struct fc_lport *lport, struct bnx2fc_hba *hba);
lport              94 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_port_shutdown(struct fc_lport *lport);
lport             131 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static inline struct net_device *bnx2fc_netdev(const struct fc_lport *lport)
lport             134 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		((struct fcoe_port *)lport_priv(lport))->priv)->netdev;
lport             177 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_abort_io(struct fc_lport *lport)
lport             187 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_cleanup(struct fc_lport *lport)
lport             189 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport             262 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_xmit(struct fc_lport *lport, struct fc_frame *fp)
lport             280 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	port = (struct fcoe_port *)lport_priv(lport);
lport             288 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (!lport->link_up) {
lport             289 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "bnx2fc_xmit link down\n");
lport             296 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 			BNX2FC_HBA_DBG(lport, "FCF not selected yet!\n");
lport             300 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		if (fcoe_ctlr_els_send(ctlr, lport, skb))
lport             321 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "xmit: Frame is for offloaded session "
lport             391 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (lport->seq_offload && fr_max_payload(fp)) {
lport             400 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	stats = per_cpu_ptr(lport->stats, get_cpu());
lport             406 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fr_dev(fp) = lport;
lport             408 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fcoe_check_wait_queue(lport, skb);
lport             410 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fcoe_check_wait_queue(lport, skb);
lport             428 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport;
lport             438 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport = ctlr->lp;
lport             440 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (unlikely(lport == NULL)) {
lport             467 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fr->fr_dev = lport;
lport             510 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport;
lport             525 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport = fr->fr_dev;
lport             526 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (unlikely(lport == NULL)) {
lport             545 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fr_dev(fp) = lport;
lport             558 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	phys_port = lport_priv(lport);
lport             565 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "FC frame d_id mismatch with MAC %pM.\n",
lport             571 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id));
lport             575 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 			BNX2FC_HBA_DBG(lport, "fpma mismatch\n");
lport             582 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 			BNX2FC_HBA_DBG(lport, "Wrong source address: mac:%pM dest_addr:%pM.\n",
lport             618 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (lport->port_id != ntoh24(fh->fh_d_id) && !vn_port) {
lport             619 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "Dropping frame due to destination mismatch: lport->port_id=%x fh->d_id=%x.\n",
lport             620 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		    lport->port_id, ntoh24(fh->fh_d_id));
lport             625 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	stats = per_cpu_ptr(lport->stats, smp_processor_id());
lport             638 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_exch_recv(lport, fp);
lport             680 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport = shost_priv(shost);
lport             681 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport             700 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "FW stat req timed out\n");
lport             729 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_shost_config(struct fc_lport *lport, struct device *dev)
lport             731 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport             734 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct Scsi_Host *shost = lport->host;
lport             741 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (lport->vport)
lport             747 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	rc = scsi_add_host(lport->host, dev);
lport             752 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (!lport->vport)
lport             753 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fc_host_max_npiv_vports(lport->host) = USHRT_MAX;
lport             754 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	snprintf(fc_host_symbolic_name(lport->host), 256,
lport             762 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_link_ok(struct fc_lport *lport)
lport             764 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport             794 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_net_config(struct fc_lport *lport, struct net_device *netdev)
lport             802 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	port = lport_priv(lport);
lport             812 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (fc_set_mfs(lport, BNX2FC_MFS))
lport             819 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fcoe_link_speed_update(lport);
lport             821 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (!lport->vport) {
lport             825 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "WWNN = 0x%llx\n", wwnn);
lport             826 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fc_set_wwnn(lport, wwnn);
lport             832 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "WWPN = 0x%llx\n", wwpn);
lport             833 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fc_set_wwpn(lport, wwpn);
lport             864 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport;
lport             921 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		lport = ctlr->lp;
lport             922 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "netevent handler - event=%s %ld\n",
lport             925 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fcoe_link_speed_update(lport);
lport             929 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		if (link_possible && !bnx2fc_link_ok(lport)) {
lport             937 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 				fc_set_mfs(lport, BNX2FC_MFS);
lport             953 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 				mutex_lock(&lport->lp_mutex);
lport             954 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 				list_for_each_entry(vport, &lport->vports, list)
lport             957 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 				mutex_unlock(&lport->lp_mutex);
lport             958 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 				fc_host_port_type(lport->host) =
lport             960 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 				per_cpu_ptr(lport->stats,
lport             963 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 				fcoe_clean_pending_queue(lport);
lport             988 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_libfc_config(struct fc_lport *lport)
lport             992 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	memcpy(&lport->tt, &bnx2fc_libfc_fcn_templ,
lport             994 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_elsct_init(lport);
lport             995 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_exch_init(lport);
lport             996 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_disc_init(lport);
lport             997 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_disc_config(lport, lport);
lport            1001 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_em_config(struct fc_lport *lport, struct bnx2fc_hba *hba)
lport            1010 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (!fc_exch_mgr_alloc(lport, FC_CLASS_3, fcoe_min_xid,
lport            1019 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static int bnx2fc_lport_config(struct fc_lport *lport)
lport            1021 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport->link_up = 0;
lport            1022 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport->qfull = 0;
lport            1023 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport->max_retry_count = BNX2FC_MAX_RETRY_CNT;
lport            1024 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport->max_rport_retry_count = BNX2FC_MAX_RPORT_RETRY_CNT;
lport            1025 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport->e_d_tov = 2 * 1000;
lport            1026 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport->r_a_tov = 10 * 1000;
lport            1028 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport->service_params = (FCP_SPPF_INIT_FCN | FCP_SPPF_RD_XRDY_DIS |
lport            1030 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport->does_npiv = 1;
lport            1032 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	memset(&lport->rnid_gen, 0, sizeof(struct fc_els_rnid_gen));
lport            1033 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport->rnid_gen.rnid_atype = BNX2FC_RNID_HBA;
lport            1036 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (fc_lport_init_stats(lport))
lport            1040 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_lport_config(lport);
lport            1078 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_update_src_mac(struct fc_lport *lport, u8 *addr)
lport            1080 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport            1090 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static u8 *bnx2fc_get_src_mac(struct fc_lport *lport)
lport            1094 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	port = (struct fcoe_port *)lport_priv(lport);
lport            1175 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_free_vport(struct bnx2fc_hba *hba, struct fc_lport *lport)
lport            1181 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		if (blport->lport == lport) {
lport            1212 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	bnx2fc_free_vport(interface->hba, port->lport);
lport            1213 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	bnx2fc_port_shutdown(port->lport);
lport            1221 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport = vport->dd_data;
lport            1225 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fc_fabric_logoff(lport);
lport            1227 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		lport->boot_time = jiffies;
lport            1228 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fc_fabric_login(lport);
lport            1229 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fc_vport_setlink(lport);
lport            1494 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport		*lport, *n_port;
lport            1511 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		lport = libfc_host_alloc(&bnx2fc_shost_template, sizeof(*port));
lport            1513 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		lport = libfc_vport_create(vport, sizeof(*port));
lport            1515 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (!lport) {
lport            1519 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	shost = lport->host;
lport            1520 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	port = lport_priv(lport);
lport            1521 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	port->lport = lport;
lport            1527 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	rc = bnx2fc_lport_config(lport);
lport            1534 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fc_set_wwnn(lport, vport->node_name);
lport            1535 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fc_set_wwpn(lport, vport->port_name);
lport            1538 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	rc = bnx2fc_net_config(lport, interface->netdev);
lport            1544 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	rc = bnx2fc_shost_config(lport, parent);
lport            1552 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	rc = bnx2fc_libfc_config(lport);
lport            1557 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_host_port_type(lport->host) = FC_PORTTYPE_UNKNOWN;
lport            1564 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		rc = bnx2fc_em_config(lport, hba);
lport            1568 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		rc = fc_exch_mgr_list_clone(n_port, lport);
lport            1579 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	blport->lport = lport;
lport            1583 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	return lport;
lport            1588 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	scsi_host_put(lport->host);
lport            1605 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport = ctlr->lp;
lport            1606 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport            1613 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fcoe_clean_pending_queue(lport);
lport            1617 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	bnx2fc_free_vport(hba, lport);
lport            1620 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_if_destroy(struct fc_lport *lport)
lport            1624 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	bnx2fc_clean_rx_queue(lport);
lport            1627 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_remove_host(lport->host);
lport            1628 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	scsi_remove_host(lport->host);
lport            1634 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_exch_mgr_free(lport);
lport            1637 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_lport_free_stats(lport);
lport            1640 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	scsi_host_put(lport->host);
lport            1646 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport = ctlr->lp;
lport            1647 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport            1697 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport;
lport            1700 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport = port->lport;
lport            1702 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	BNX2FC_HBA_DBG(lport, "Entered bnx2fc_destroy_work\n");
lport            1704 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	bnx2fc_if_destroy(lport);
lport            1839 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport;
lport            1851 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 			lport = ctlr->lp;
lport            1854 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 			lport->tt.frame_send = bnx2fc_xmit;
lport            1862 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static void bnx2fc_port_shutdown(struct fc_lport *lport)
lport            1865 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_fabric_logoff(lport);
lport            1866 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_lport_destroy(lport);
lport            1872 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport;
lport            1878 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport = ctlr->lp;
lport            1879 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	bnx2fc_port_shutdown(lport);
lport            1881 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	mutex_lock(&lport->lp_mutex);
lport            1882 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	list_for_each_entry(vport, &lport->vports, list)
lport            1885 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	mutex_unlock(&lport->lp_mutex);
lport            1886 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_host_port_type(lport->host) = FC_PORTTYPE_UNKNOWN;
lport            1888 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fcoe_clean_pending_queue(lport);
lport            1999 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport;
lport            2009 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport = ctlr->lp;
lport            2010 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	BNX2FC_HBA_DBG(lport, "calling fc_fabric_login\n");
lport            2012 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (!bnx2fc_link_ok(lport) && interface->enabled) {
lport            2013 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "ctlr_link_up\n");
lport            2015 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fc_host_port_type(lport->host) = FC_PORTTYPE_NPORT;
lport            2028 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (fc_set_mfs(lport, BNX2FC_MFS))
lport            2031 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_lport_init(lport);
lport            2032 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_fabric_login(lport);
lport            2127 drivers/scsi/bnx2fc/bnx2fc_fcoe.c static uint bnx2fc_npiv_create_vports(struct fc_lport *lport,
lport            2137 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "Exceeded count max of npiv table\n");
lport            2144 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "First NPIV table entries invalid.\n");
lport            2159 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 			wwnn = lport->wwnn;
lport            2168 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		BNX2FC_HBA_DBG(lport, "Creating vport %s:%s.\n", wwnn_str,
lport            2170 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		if (fc_vport_create(lport->host, 0, &vpid))
lport            2173 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 			BNX2FC_HBA_DBG(lport, "Failed to create vport\n");
lport            2184 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport;
lport            2198 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport = ctlr->lp;
lport            2206 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (!lport)
lport            2209 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (!lport->host)
lport            2222 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	bnx2fc_npiv_create_vports(lport, npiv_tbl);
lport            2309 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport;
lport            2386 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport = bnx2fc_if_create(interface, &cdev->dev, 0);
lport            2387 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	if (!lport) {
lport            2397 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	lport->boot_time = jiffies;
lport            2400 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	ctlr->lp = lport;
lport            2408 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	    !bnx2fc_link_ok(lport)) {
lport            2410 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 		fc_host_port_type(lport->host) = FC_PORTTYPE_NPORT;
lport            2414 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	BNX2FC_HBA_DBG(lport, "create: START DISC\n");
lport            2580 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport = shost_priv(shost);
lport            2581 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	fc_lport_reset(lport);
lport            2919 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport = shost_priv(shost);
lport            2920 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport            2932 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_lport *lport = shost_priv(shost);
lport            2933 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport             174 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	struct fc_lport *lport = port->lport;
lport             243 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	port_id = fc_host_port_id(lport->host);
lport             245 drivers/scsi/bnx2fc/bnx2fc_hwi.c 		BNX2FC_HBA_DBG(lport, "ofld_req: port_id = 0, link down?\n");
lport             267 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	ofld_req3.rx_max_fc_pay_len  = lport->mfs;
lport             314 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	ofld_req4.e_d_tov_timer_val = lport->e_d_tov / 20;
lport             364 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	struct fc_lport *lport = port->lport;
lport             392 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	port_id = fc_host_port_id(lport->host);
lport             515 drivers/scsi/bnx2fc/bnx2fc_hwi.c static bool is_valid_lport(struct bnx2fc_hba *hba, struct fc_lport *lport)
lport             521 drivers/scsi/bnx2fc/bnx2fc_hwi.c 		if (blport->lport == lport) {
lport             535 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	struct fc_lport *lport;
lport             540 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	lport = unsol_els->lport;
lport             543 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	if (is_valid_lport(hba, lport))
lport             544 drivers/scsi/bnx2fc/bnx2fc_hwi.c 		fc_exch_recv(lport, fp);
lport             553 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	struct fc_lport *lport = port->lport;
lport             575 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	fp = fc_frame_alloc(lport, payload_len);
lport             610 drivers/scsi/bnx2fc/bnx2fc_hwi.c 		fr_dev(fp) = lport;
lport             614 drivers/scsi/bnx2fc/bnx2fc_hwi.c 		unsol_els->lport = lport;
lport             620 drivers/scsi/bnx2fc/bnx2fc_hwi.c 		BNX2FC_HBA_DBG(lport, "fh_r_ctl = 0x%x\n", fh->fh_r_ctl);
lport             663 drivers/scsi/bnx2fc/bnx2fc_io.c 	struct fc_lport *lport;
lport             682 drivers/scsi/bnx2fc/bnx2fc_io.c 	lport = shost_priv(host);
lport             684 drivers/scsi/bnx2fc/bnx2fc_io.c 	port = lport_priv(lport);
lport             698 drivers/scsi/bnx2fc/bnx2fc_io.c 	if (lport->state != LPORT_ST_READY || !(lport->link_up)) {
lport             823 drivers/scsi/bnx2fc/bnx2fc_io.c 	struct fc_lport *lport;
lport             845 drivers/scsi/bnx2fc/bnx2fc_io.c 	lport = port->lport;
lport             859 drivers/scsi/bnx2fc/bnx2fc_io.c 	if (lport->state != LPORT_ST_READY || !(lport->link_up)) {
lport            1129 drivers/scsi/bnx2fc/bnx2fc_io.c 	struct fc_lport *lport;
lport            1138 drivers/scsi/bnx2fc/bnx2fc_io.c 	lport = shost_priv(sc_cmd->device->host);
lport            1139 drivers/scsi/bnx2fc/bnx2fc_io.c 	if ((lport->state != LPORT_ST_READY) || !(lport->link_up)) {
lport            1857 drivers/scsi/bnx2fc/bnx2fc_io.c 	struct fc_lport *lport = shost_priv(host);
lport            1872 drivers/scsi/bnx2fc/bnx2fc_io.c 	if ((lport->state != LPORT_ST_READY) || !(lport->link_up)) {
lport            2041 drivers/scsi/bnx2fc/bnx2fc_io.c 	struct fc_lport *lport = port->lport;
lport            2055 drivers/scsi/bnx2fc/bnx2fc_io.c 	stats = per_cpu_ptr(lport->stats, get_cpu());
lport             439 drivers/scsi/bnx2fc/bnx2fc_tgt.c void bnx2fc_rport_event_handler(struct fc_lport *lport,
lport             443 drivers/scsi/bnx2fc/bnx2fc_tgt.c 	struct fcoe_port *port = lport_priv(lport);
lport             451 drivers/scsi/bnx2fc/bnx2fc_tgt.c 	BNX2FC_HBA_DBG(lport, "rport_event_hdlr: event = %d, port_id = 0x%x\n",
lport             474 drivers/scsi/bnx2fc/bnx2fc_tgt.c 			BNX2FC_HBA_DBG(lport, "not FCP type target."
lport             479 drivers/scsi/bnx2fc/bnx2fc_tgt.c 			BNX2FC_HBA_DBG(lport, "not FCP_TARGET"
lport             553 drivers/scsi/fcoe/fcoe.c 		fcoe_check_wait_queue(port->lport, skb);
lport             555 drivers/scsi/fcoe/fcoe.c 		fcoe_check_wait_queue(port->lport, skb);
lport             592 drivers/scsi/fcoe/fcoe.c static void fcoe_update_src_mac(struct fc_lport *lport, u8 *addr)
lport             594 drivers/scsi/fcoe/fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport             608 drivers/scsi/fcoe/fcoe.c static u8 *fcoe_get_src_mac(struct fc_lport *lport)
lport             610 drivers/scsi/fcoe/fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport             621 drivers/scsi/fcoe/fcoe.c static int fcoe_lport_config(struct fc_lport *lport)
lport             623 drivers/scsi/fcoe/fcoe.c 	lport->link_up = 0;
lport             624 drivers/scsi/fcoe/fcoe.c 	lport->qfull = 0;
lport             625 drivers/scsi/fcoe/fcoe.c 	lport->max_retry_count = 3;
lport             626 drivers/scsi/fcoe/fcoe.c 	lport->max_rport_retry_count = 3;
lport             627 drivers/scsi/fcoe/fcoe.c 	lport->e_d_tov = fcoe_e_d_tov;
lport             628 drivers/scsi/fcoe/fcoe.c 	lport->r_a_tov = fcoe_r_a_tov;
lport             629 drivers/scsi/fcoe/fcoe.c 	lport->service_params = (FCP_SPPF_INIT_FCN | FCP_SPPF_RD_XRDY_DIS |
lport             631 drivers/scsi/fcoe/fcoe.c 	lport->does_npiv = 1;
lport             633 drivers/scsi/fcoe/fcoe.c 	fc_lport_init_stats(lport);
lport             636 drivers/scsi/fcoe/fcoe.c 	fc_lport_config(lport);
lport             639 drivers/scsi/fcoe/fcoe.c 	lport->crc_offload = 0;
lport             640 drivers/scsi/fcoe/fcoe.c 	lport->seq_offload = 0;
lport             641 drivers/scsi/fcoe/fcoe.c 	lport->lro_enabled = 0;
lport             642 drivers/scsi/fcoe/fcoe.c 	lport->lro_xid = 0;
lport             643 drivers/scsi/fcoe/fcoe.c 	lport->lso_max = 0;
lport             652 drivers/scsi/fcoe/fcoe.c static void fcoe_netdev_features_change(struct fc_lport *lport,
lport             655 drivers/scsi/fcoe/fcoe.c 	mutex_lock(&lport->lp_mutex);
lport             658 drivers/scsi/fcoe/fcoe.c 		lport->sg_supp = 1;
lport             660 drivers/scsi/fcoe/fcoe.c 		lport->sg_supp = 0;
lport             663 drivers/scsi/fcoe/fcoe.c 		lport->crc_offload = 1;
lport             666 drivers/scsi/fcoe/fcoe.c 		lport->crc_offload = 0;
lport             670 drivers/scsi/fcoe/fcoe.c 		lport->seq_offload = 1;
lport             671 drivers/scsi/fcoe/fcoe.c 		lport->lso_max = netdev->gso_max_size;
lport             673 drivers/scsi/fcoe/fcoe.c 				lport->lso_max);
lport             675 drivers/scsi/fcoe/fcoe.c 		lport->seq_offload = 0;
lport             676 drivers/scsi/fcoe/fcoe.c 		lport->lso_max = 0;
lport             680 drivers/scsi/fcoe/fcoe.c 		lport->lro_enabled = 1;
lport             681 drivers/scsi/fcoe/fcoe.c 		lport->lro_xid = netdev->fcoe_ddp_xid;
lport             683 drivers/scsi/fcoe/fcoe.c 				lport->lro_xid);
lport             685 drivers/scsi/fcoe/fcoe.c 		lport->lro_enabled = 0;
lport             686 drivers/scsi/fcoe/fcoe.c 		lport->lro_xid = 0;
lport             689 drivers/scsi/fcoe/fcoe.c 	mutex_unlock(&lport->lp_mutex);
lport             701 drivers/scsi/fcoe/fcoe.c static int fcoe_netdev_config(struct fc_lport *lport, struct net_device *netdev)
lport             710 drivers/scsi/fcoe/fcoe.c 	port = lport_priv(lport);
lport             716 drivers/scsi/fcoe/fcoe.c 		lport->vlan = vlan_dev_vlan_id(netdev);
lport             718 drivers/scsi/fcoe/fcoe.c 		lport->vlan = 0;
lport             731 drivers/scsi/fcoe/fcoe.c 	if (fc_set_mfs(lport, mfs))
lport             735 drivers/scsi/fcoe/fcoe.c 	fcoe_netdev_features_change(lport, netdev);
lport             741 drivers/scsi/fcoe/fcoe.c 	fcoe_link_speed_update(lport);
lport             743 drivers/scsi/fcoe/fcoe.c 	if (!lport->vport) {
lport             746 drivers/scsi/fcoe/fcoe.c 		fc_set_wwnn(lport, wwnn);
lport             750 drivers/scsi/fcoe/fcoe.c 		fc_set_wwpn(lport, wwpn);
lport             765 drivers/scsi/fcoe/fcoe.c static int fcoe_shost_config(struct fc_lport *lport, struct device *dev)
lport             770 drivers/scsi/fcoe/fcoe.c 	lport->host->max_lun = FCOE_MAX_LUN;
lport             771 drivers/scsi/fcoe/fcoe.c 	lport->host->max_id = FCOE_MAX_FCP_TARGET;
lport             772 drivers/scsi/fcoe/fcoe.c 	lport->host->max_channel = 0;
lport             773 drivers/scsi/fcoe/fcoe.c 	lport->host->max_cmd_len = FCOE_MAX_CMD_LEN;
lport             775 drivers/scsi/fcoe/fcoe.c 	if (lport->vport)
lport             776 drivers/scsi/fcoe/fcoe.c 		lport->host->transportt = fcoe_vport_scsi_transport;
lport             778 drivers/scsi/fcoe/fcoe.c 		lport->host->transportt = fcoe_nport_scsi_transport;
lport             781 drivers/scsi/fcoe/fcoe.c 	rc = scsi_add_host(lport->host, dev);
lport             783 drivers/scsi/fcoe/fcoe.c 		FCOE_NETDEV_DBG(fcoe_netdev(lport), "fcoe_shost_config: "
lport             788 drivers/scsi/fcoe/fcoe.c 	if (!lport->vport)
lport             789 drivers/scsi/fcoe/fcoe.c 		fc_host_max_npiv_vports(lport->host) = USHRT_MAX;
lport             791 drivers/scsi/fcoe/fcoe.c 	snprintf(fc_host_symbolic_name(lport->host), FC_SYMBOLIC_NAME_SIZE,
lport             793 drivers/scsi/fcoe/fcoe.c 		 fcoe_netdev(lport)->name);
lport             807 drivers/scsi/fcoe/fcoe.c static void fcoe_fdmi_info(struct fc_lport *lport, struct net_device *netdev)
lport             814 drivers/scsi/fcoe/fcoe.c 	port = lport_priv(lport);
lport             819 drivers/scsi/fcoe/fcoe.c 	if (lport->vport)
lport             836 drivers/scsi/fcoe/fcoe.c 		snprintf(fc_host_serial_number(lport->host),
lport             840 drivers/scsi/fcoe/fcoe.c 		snprintf(fc_host_manufacturer(lport->host),
lport             844 drivers/scsi/fcoe/fcoe.c 		snprintf(fc_host_model(lport->host),
lport             848 drivers/scsi/fcoe/fcoe.c 		snprintf(fc_host_model_description(lport->host),
lport             852 drivers/scsi/fcoe/fcoe.c 		snprintf(fc_host_hardware_version(lport->host),
lport             856 drivers/scsi/fcoe/fcoe.c 		snprintf(fc_host_driver_version(lport->host),
lport             860 drivers/scsi/fcoe/fcoe.c 		snprintf(fc_host_optionrom_version(lport->host),
lport             864 drivers/scsi/fcoe/fcoe.c 		snprintf(fc_host_firmware_version(lport->host),
lport             870 drivers/scsi/fcoe/fcoe.c 		lport->fdmi_enabled = 1;
lport             873 drivers/scsi/fcoe/fcoe.c 		lport->fdmi_enabled = 0;
lport             921 drivers/scsi/fcoe/fcoe.c static inline int fcoe_em_config(struct fc_lport *lport)
lport             923 drivers/scsi/fcoe/fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport             934 drivers/scsi/fcoe/fcoe.c 	if (!lport->lro_enabled || !lport->lro_xid ||
lport             935 drivers/scsi/fcoe/fcoe.c 	    (lport->lro_xid >= max_xid)) {
lport             936 drivers/scsi/fcoe/fcoe.c 		lport->lro_xid = 0;
lport             962 drivers/scsi/fcoe/fcoe.c 		if (!fc_exch_mgr_add(lport, fcoe->oem, fcoe_oem_match)) {
lport             969 drivers/scsi/fcoe/fcoe.c 		fcoe->oem = fc_exch_mgr_alloc(lport, FC_CLASS_3,
lport             970 drivers/scsi/fcoe/fcoe.c 					      FCOE_MIN_XID, lport->lro_xid,
lport             983 drivers/scsi/fcoe/fcoe.c 	min_xid += lport->lro_xid + 1;
lport             986 drivers/scsi/fcoe/fcoe.c 	if (!fc_exch_mgr_alloc(lport, FC_CLASS_3, min_xid, max_xid, NULL)) {
lport            1002 drivers/scsi/fcoe/fcoe.c static void fcoe_if_destroy(struct fc_lport *lport)
lport            1004 drivers/scsi/fcoe/fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport            1011 drivers/scsi/fcoe/fcoe.c 	fc_fabric_logoff(lport);
lport            1014 drivers/scsi/fcoe/fcoe.c 	fc_lport_destroy(lport);
lport            1020 drivers/scsi/fcoe/fcoe.c 	fcoe_clean_pending_queue(lport);
lport            1024 drivers/scsi/fcoe/fcoe.c 	if (lport->vport)
lport            1030 drivers/scsi/fcoe/fcoe.c 	fcoe_percpu_clean(lport);
lport            1033 drivers/scsi/fcoe/fcoe.c 	fc_remove_host(lport->host);
lport            1034 drivers/scsi/fcoe/fcoe.c 	scsi_remove_host(lport->host);
lport            1037 drivers/scsi/fcoe/fcoe.c 	fc_fcp_destroy(lport);
lport            1040 drivers/scsi/fcoe/fcoe.c 	fc_exch_mgr_free(lport);
lport            1043 drivers/scsi/fcoe/fcoe.c 	fc_lport_free_stats(lport);
lport            1049 drivers/scsi/fcoe/fcoe.c 	if (lport->vport)
lport            1050 drivers/scsi/fcoe/fcoe.c 		scsi_host_put(lport->host);
lport            1062 drivers/scsi/fcoe/fcoe.c static int fcoe_ddp_setup(struct fc_lport *lport, u16 xid,
lport            1065 drivers/scsi/fcoe/fcoe.c 	struct net_device *netdev = fcoe_netdev(lport);
lport            1084 drivers/scsi/fcoe/fcoe.c static int fcoe_ddp_target(struct fc_lport *lport, u16 xid,
lport            1087 drivers/scsi/fcoe/fcoe.c 	struct net_device *netdev = fcoe_netdev(lport);
lport            1104 drivers/scsi/fcoe/fcoe.c static int fcoe_ddp_done(struct fc_lport *lport, u16 xid)
lport            1106 drivers/scsi/fcoe/fcoe.c 	struct net_device *netdev = fcoe_netdev(lport);
lport            1128 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport, *n_port;
lport            1141 drivers/scsi/fcoe/fcoe.c 		lport = libfc_host_alloc(&fcoe_shost_template, sizeof(*port));
lport            1143 drivers/scsi/fcoe/fcoe.c 		lport = libfc_vport_create(vport, sizeof(*port));
lport            1145 drivers/scsi/fcoe/fcoe.c 	if (!lport) {
lport            1150 drivers/scsi/fcoe/fcoe.c 	port = lport_priv(lport);
lport            1151 drivers/scsi/fcoe/fcoe.c 	port->lport = lport;
lport            1162 drivers/scsi/fcoe/fcoe.c 	fcoe_hostlist_add(lport);
lport            1165 drivers/scsi/fcoe/fcoe.c 	rc = fcoe_lport_config(lport);
lport            1176 drivers/scsi/fcoe/fcoe.c 		fc_set_wwnn(lport, vport->node_name);
lport            1177 drivers/scsi/fcoe/fcoe.c 		fc_set_wwpn(lport, vport->port_name);
lport            1181 drivers/scsi/fcoe/fcoe.c 	rc = fcoe_netdev_config(lport, netdev);
lport            1189 drivers/scsi/fcoe/fcoe.c 	rc = fcoe_shost_config(lport, parent);
lport            1197 drivers/scsi/fcoe/fcoe.c 	rc = fcoe_libfc_config(lport, ctlr, &fcoe_libfc_fcn_templ, 1);
lport            1205 drivers/scsi/fcoe/fcoe.c 	fcoe_fdmi_info(lport, netdev);
lport            1218 drivers/scsi/fcoe/fcoe.c 		rc = fcoe_em_config(lport);
lport            1222 drivers/scsi/fcoe/fcoe.c 		rc = fc_exch_mgr_list_clone(n_port, lport);
lport            1230 drivers/scsi/fcoe/fcoe.c 	return lport;
lport            1233 drivers/scsi/fcoe/fcoe.c 	fc_exch_mgr_free(lport);
lport            1235 drivers/scsi/fcoe/fcoe.c 	fcoe_hostlist_del(lport);
lport            1236 drivers/scsi/fcoe/fcoe.c 	scsi_host_put(lport->host);
lport            1338 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport;
lport            1349 drivers/scsi/fcoe/fcoe.c 	lport = ctlr->lp;
lport            1350 drivers/scsi/fcoe/fcoe.c 	if (unlikely(!lport)) {
lport            1354 drivers/scsi/fcoe/fcoe.c 	if (!lport->link_up)
lport            1396 drivers/scsi/fcoe/fcoe.c 	fr->fr_dev = lport;
lport            1438 drivers/scsi/fcoe/fcoe.c 	per_cpu_ptr(lport->stats, get_cpu())->ErrorFrames++;
lport            1471 drivers/scsi/fcoe/fcoe.c static int fcoe_xmit(struct fc_lport *lport, struct fc_frame *fp)
lport            1483 drivers/scsi/fcoe/fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport            1495 drivers/scsi/fcoe/fcoe.c 	if (!lport->link_up) {
lport            1501 drivers/scsi/fcoe/fcoe.c 	    fcoe_ctlr_els_send(ctlr, lport, skb))
lport            1513 drivers/scsi/fcoe/fcoe.c 	if (likely(lport->crc_offload)) {
lport            1581 drivers/scsi/fcoe/fcoe.c 	if (lport->seq_offload && fr_max_payload(fp)) {
lport            1589 drivers/scsi/fcoe/fcoe.c 	stats = per_cpu_ptr(lport->stats, get_cpu());
lport            1595 drivers/scsi/fcoe/fcoe.c 	fr_dev(fp) = lport;
lport            1607 drivers/scsi/fcoe/fcoe.c static inline int fcoe_filter_frames(struct fc_lport *lport,
lport            1621 drivers/scsi/fcoe/fcoe.c 	if (lport->crc_offload && skb->ip_summed == CHECKSUM_UNNECESSARY)
lport            1630 drivers/scsi/fcoe/fcoe.c 	fcoe = ((struct fcoe_port *)lport_priv(lport))->priv;
lport            1644 drivers/scsi/fcoe/fcoe.c 	stats = per_cpu_ptr(lport->stats, get_cpu());
lport            1659 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport;
lport            1667 drivers/scsi/fcoe/fcoe.c 	lport = fr->fr_dev;
lport            1668 drivers/scsi/fcoe/fcoe.c 	if (unlikely(!lport)) {
lport            1689 drivers/scsi/fcoe/fcoe.c 	stats = per_cpu_ptr(lport->stats, get_cpu());
lport            1709 drivers/scsi/fcoe/fcoe.c 	fr_dev(fp) = lport;
lport            1720 drivers/scsi/fcoe/fcoe.c 	if (!fcoe_filter_frames(lport, fp)) {
lport            1722 drivers/scsi/fcoe/fcoe.c 		fc_exch_recv(lport, fp);
lport            1847 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport = NULL;
lport            1859 drivers/scsi/fcoe/fcoe.c 			lport = ctlr->lp;
lport            1863 drivers/scsi/fcoe/fcoe.c 	if (!lport) {
lport            1882 drivers/scsi/fcoe/fcoe.c 			fc_set_mfs(lport, mfs);
lport            1888 drivers/scsi/fcoe/fcoe.c 		fcoe_vport_remove(lport);
lport            1890 drivers/scsi/fcoe/fcoe.c 		fcoe_if_destroy(lport);
lport            1899 drivers/scsi/fcoe/fcoe.c 		fcoe_netdev_features_change(lport, netdev);
lport            1906 drivers/scsi/fcoe/fcoe.c 	fcoe_link_speed_update(lport);
lport            1910 drivers/scsi/fcoe/fcoe.c 	if (link_possible && !fcoe_link_ok(lport)) {
lport            1926 drivers/scsi/fcoe/fcoe.c 			stats = per_cpu_ptr(lport->stats, get_cpu());
lport            1929 drivers/scsi/fcoe/fcoe.c 			fcoe_clean_pending_queue(lport);
lport            2016 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport = ctlr->lp;
lport            2017 drivers/scsi/fcoe/fcoe.c 	struct net_device *netdev = fcoe_netdev(lport);
lport            2068 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport;
lport            2080 drivers/scsi/fcoe/fcoe.c 	lport = ctlr->lp;
lport            2081 drivers/scsi/fcoe/fcoe.c 	port = lport_priv(lport);
lport            2103 drivers/scsi/fcoe/fcoe.c 	fcoe_vport_remove(port->lport);
lport            2112 drivers/scsi/fcoe/fcoe.c 	fcoe_if_destroy(port->lport);
lport            2206 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport;
lport            2225 drivers/scsi/fcoe/fcoe.c 	lport = fcoe_if_create(fcoe, &ctlr_dev->dev, 0);
lport            2226 drivers/scsi/fcoe/fcoe.c 	if (IS_ERR(lport)) {
lport            2240 drivers/scsi/fcoe/fcoe.c 	ctlr->lp = lport;
lport            2246 drivers/scsi/fcoe/fcoe.c 	lport->boot_time = jiffies;
lport            2247 drivers/scsi/fcoe/fcoe.c 	fc_fabric_login(lport);
lport            2267 drivers/scsi/fcoe/fcoe.c 	    !fcoe_link_ok(lport)) {
lport            2319 drivers/scsi/fcoe/fcoe.c static int fcoe_link_ok(struct fc_lport *lport)
lport            2321 drivers/scsi/fcoe/fcoe.c 	struct net_device *netdev = fcoe_netdev(lport);
lport            2338 drivers/scsi/fcoe/fcoe.c static void fcoe_percpu_clean(struct fc_lport *lport)
lport            2358 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport = shost_priv(shost);
lport            2359 drivers/scsi/fcoe/fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport            2421 drivers/scsi/fcoe/fcoe.c static int fcoe_hostlist_add(const struct fc_lport *lport)
lport            2426 drivers/scsi/fcoe/fcoe.c 	fcoe = fcoe_hostlist_lookup_port(fcoe_netdev(lport));
lport            2428 drivers/scsi/fcoe/fcoe.c 		port = lport_priv(lport);
lport            2443 drivers/scsi/fcoe/fcoe.c static void fcoe_hostlist_del(const struct fc_lport *lport)
lport            2448 drivers/scsi/fcoe/fcoe.c 	port = lport_priv(lport);
lport            2536 drivers/scsi/fcoe/fcoe.c 		fcoe_hostlist_del(port->lport);
lport            2577 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport = exch->lp;
lport            2586 drivers/scsi/fcoe/fcoe.c 		fcoe_ctlr_recv_flogi(fip, lport, fp);
lport            2588 drivers/scsi/fcoe/fcoe.c 		fcoe_update_src_mac(lport, mac);
lport            2590 drivers/scsi/fcoe/fcoe.c 	fc_lport_flogi_resp(seq, fp, lport);
lport            2604 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport = arg;
lport            2608 drivers/scsi/fcoe/fcoe.c 		fcoe_update_src_mac(lport, zero_mac);
lport            2609 drivers/scsi/fcoe/fcoe.c 	fc_lport_logo_resp(seq, fp, lport);
lport            2621 drivers/scsi/fcoe/fcoe.c static struct fc_seq *fcoe_elsct_send(struct fc_lport *lport, u32 did,
lport            2628 drivers/scsi/fcoe/fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport            2636 drivers/scsi/fcoe/fcoe.c 		if (lport->point_to_multipoint)
lport            2638 drivers/scsi/fcoe/fcoe.c 		return fc_elsct_send(lport, did, fp, op, fcoe_flogi_resp,
lport            2644 drivers/scsi/fcoe/fcoe.c 		return fc_elsct_send(lport, did, fp, op, fcoe_logo_resp,
lport            2645 drivers/scsi/fcoe/fcoe.c 				     lport, timeout);
lport            2647 drivers/scsi/fcoe/fcoe.c 	return fc_elsct_send(lport, did, fp, op, resp, arg, timeout);
lport            2728 drivers/scsi/fcoe/fcoe.c static void fcoe_vport_remove(struct fc_lport *lport)
lport            2736 drivers/scsi/fcoe/fcoe.c 	shost = lport->host;
lport            2762 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport = vport->dd_data;
lport            2766 drivers/scsi/fcoe/fcoe.c 		fc_fabric_logoff(lport);
lport            2768 drivers/scsi/fcoe/fcoe.c 		lport->boot_time = jiffies;
lport            2769 drivers/scsi/fcoe/fcoe.c 		fc_fabric_login(lport);
lport            2770 drivers/scsi/fcoe/fcoe.c 		fc_vport_setlink(lport);
lport            2786 drivers/scsi/fcoe/fcoe.c 	struct fc_lport *lport = vport->dd_data;
lport            2790 drivers/scsi/fcoe/fcoe.c 	snprintf(fc_host_symbolic_name(lport->host), FC_SYMBOLIC_NAME_SIZE,
lport            2792 drivers/scsi/fcoe/fcoe.c 		 fcoe_netdev(lport)->name, vport->symbolic_name);
lport            2794 drivers/scsi/fcoe/fcoe.c 	if (lport->state != LPORT_ST_READY)
lport            2797 drivers/scsi/fcoe/fcoe.c 	len = strnlen(fc_host_symbolic_name(lport->host), 255);
lport            2798 drivers/scsi/fcoe/fcoe.c 	fp = fc_frame_alloc(lport,
lport            2803 drivers/scsi/fcoe/fcoe.c 	lport->tt.elsct_send(lport, FC_FID_DIR_SERV, fp, FC_NS_RSPN_ID,
lport            2804 drivers/scsi/fcoe/fcoe.c 			     NULL, NULL, 3 * lport->r_a_tov);
lport            2829 drivers/scsi/fcoe/fcoe.c static void fcoe_set_port_id(struct fc_lport *lport,
lport            2832 drivers/scsi/fcoe/fcoe.c 	struct fcoe_port *port = lport_priv(lport);
lport            2837 drivers/scsi/fcoe/fcoe.c 		fcoe_ctlr_recv_flogi(ctlr, lport, fp);
lport              87 drivers/scsi/fcoe/fcoe.h static inline struct net_device *fcoe_netdev(const struct fc_lport *lport)
lport              90 drivers/scsi/fcoe/fcoe.h 			((struct fcoe_port *)lport_priv(lport))->priv)->netdev;
lport             529 drivers/scsi/fcoe/fcoe_ctlr.c 				      struct fc_lport *lport,
lport             575 drivers/scsi/fcoe/fcoe_ctlr.c 		memcpy(vn->fd_mac, fip->get_src_addr(lport), ETH_ALEN);
lport             576 drivers/scsi/fcoe/fcoe_ctlr.c 		hton24(vn->fd_fc_id, lport->port_id);
lport             577 drivers/scsi/fcoe/fcoe_ctlr.c 		put_unaligned_be64(lport->wwpn, &vn->fd_wwpn);
lport             602 drivers/scsi/fcoe/fcoe_ctlr.c static int fcoe_ctlr_encaps(struct fcoe_ctlr *fip, struct fc_lport *lport,
lport             623 drivers/scsi/fcoe/fcoe_ctlr.c 	if (lport->point_to_multipoint) {
lport             658 drivers/scsi/fcoe/fcoe_ctlr.c 			memcpy(mac->fd_mac, fip->get_src_addr(lport), ETH_ALEN);
lport             695 drivers/scsi/fcoe/fcoe_ctlr.c int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct fc_lport *lport,
lport             772 drivers/scsi/fcoe/fcoe_ctlr.c 			fip->update_mac(lport, mac);
lport             788 drivers/scsi/fcoe/fcoe_ctlr.c 	if (fcoe_ctlr_encaps(fip, lport, op, skb, ntoh24(fh->fh_d_id)))
lport            1136 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_lport *lport = fip->lp;
lport            1284 drivers/scsi/fcoe/fcoe_ctlr.c 	fr_dev(fp) = lport;
lport            1287 drivers/scsi/fcoe/fcoe_ctlr.c 	stats = per_cpu_ptr(lport->stats, get_cpu());
lport            1292 drivers/scsi/fcoe/fcoe_ctlr.c 	fc_exch_recv(lport, fp);
lport            1320 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_lport *lport = fip->lp;
lport            1359 drivers/scsi/fcoe/fcoe_ctlr.c 	if (!lport->port_id) {
lport            1424 drivers/scsi/fcoe/fcoe_ctlr.c 			vn_port = fc_vport_id_lookup(lport,
lport            1426 drivers/scsi/fcoe/fcoe_ctlr.c 			if (vn_port && (vn_port == lport)) {
lport            1428 drivers/scsi/fcoe/fcoe_ctlr.c 				per_cpu_ptr(lport->stats,
lport            1458 drivers/scsi/fcoe/fcoe_ctlr.c 		per_cpu_ptr(lport->stats, get_cpu())->VLinkFailureCount++;
lport            1463 drivers/scsi/fcoe/fcoe_ctlr.c 		mutex_lock(&lport->lp_mutex);
lport            1464 drivers/scsi/fcoe/fcoe_ctlr.c 		list_for_each_entry(vn_port, &lport->vports, list)
lport            1466 drivers/scsi/fcoe/fcoe_ctlr.c 		mutex_unlock(&lport->lp_mutex);
lport            1476 drivers/scsi/fcoe/fcoe_ctlr.c 			vn_port = fc_vport_id_lookup(lport,
lport            1491 drivers/scsi/fcoe/fcoe_ctlr.c 			if (vn_port == lport)
lport            1902 drivers/scsi/fcoe/fcoe_ctlr.c int fcoe_ctlr_recv_flogi(struct fcoe_ctlr *fip, struct fc_lport *lport,
lport            2123 drivers/scsi/fcoe/fcoe_ctlr.c static void fcoe_ctlr_vn_rport_callback(struct fc_lport *lport,
lport            2127 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fcoe_ctlr *fip = lport->disc.priv;
lport            2165 drivers/scsi/fcoe/fcoe_ctlr.c static void fcoe_ctlr_disc_stop_locked(struct fc_lport *lport)
lport            2169 drivers/scsi/fcoe/fcoe_ctlr.c 	mutex_lock(&lport->disc.disc_mutex);
lport            2170 drivers/scsi/fcoe/fcoe_ctlr.c 	list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) {
lport            2176 drivers/scsi/fcoe/fcoe_ctlr.c 	lport->disc.disc_callback = NULL;
lport            2177 drivers/scsi/fcoe/fcoe_ctlr.c 	mutex_unlock(&lport->disc.disc_mutex);
lport            2187 drivers/scsi/fcoe/fcoe_ctlr.c static void fcoe_ctlr_disc_stop(struct fc_lport *lport)
lport            2189 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fcoe_ctlr *fip = lport->disc.priv;
lport            2192 drivers/scsi/fcoe/fcoe_ctlr.c 	fcoe_ctlr_disc_stop_locked(lport);
lport            2203 drivers/scsi/fcoe/fcoe_ctlr.c static void fcoe_ctlr_disc_stop_final(struct fc_lport *lport)
lport            2205 drivers/scsi/fcoe/fcoe_ctlr.c 	fcoe_ctlr_disc_stop(lport);
lport            2491 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_lport *lport = fip->lp;
lport            2501 drivers/scsi/fcoe/fcoe_ctlr.c 	mutex_lock(&lport->disc.disc_mutex);
lport            2502 drivers/scsi/fcoe/fcoe_ctlr.c 	rdata = fc_rport_create(lport, port_id);
lport            2504 drivers/scsi/fcoe/fcoe_ctlr.c 		mutex_unlock(&lport->disc.disc_mutex);
lport            2508 drivers/scsi/fcoe/fcoe_ctlr.c 	mutex_unlock(&lport->disc.disc_mutex);
lport            2511 drivers/scsi/fcoe/fcoe_ctlr.c 	rdata->disc_id = lport->disc.disc_id;
lport            2549 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_lport *lport = fip->lp;
lport            2554 drivers/scsi/fcoe/fcoe_ctlr.c 	rdata = fc_rport_lookup(lport, port_id);
lport            2645 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_lport *lport = fip->lp;
lport            2654 drivers/scsi/fcoe/fcoe_ctlr.c 	rdata = fc_rport_lookup(lport, new->rdata.ids.port_id);
lport            2698 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_lport *lport = fip->lp;
lport            2705 drivers/scsi/fcoe/fcoe_ctlr.c 	mutex_lock(&lport->disc.disc_mutex);
lport            2706 drivers/scsi/fcoe/fcoe_ctlr.c 	list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) {
lport            2726 drivers/scsi/fcoe/fcoe_ctlr.c 	mutex_unlock(&lport->disc.disc_mutex);
lport            3008 drivers/scsi/fcoe/fcoe_ctlr.c static void fcoe_ctlr_disc_recv(struct fc_lport *lport, struct fc_frame *fp)
lport            3032 drivers/scsi/fcoe/fcoe_ctlr.c 				 struct fc_lport *lport)
lport            3034 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_disc *disc = &lport->disc;
lport            3055 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_lport *lport = fip->lp;
lport            3056 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_disc *disc = &lport->disc;
lport            3074 drivers/scsi/fcoe/fcoe_ctlr.c 		callback(lport, DISC_EV_SUCCESS);
lport            3168 drivers/scsi/fcoe/fcoe_ctlr.c static void fcoe_ctlr_mode_set(struct fc_lport *lport, struct fcoe_ctlr *fip,
lport            3173 drivers/scsi/fcoe/fcoe_ctlr.c 	WARN_ON(lport->state != LPORT_ST_RESET &&
lport            3174 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->state != LPORT_ST_DISABLED);
lport            3177 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->rport_priv_size = sizeof(struct fcoe_rport);
lport            3178 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->point_to_multipoint = 1;
lport            3179 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->tt.disc_recv_req = fcoe_ctlr_disc_recv;
lport            3180 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->tt.disc_start = fcoe_ctlr_disc_start;
lport            3181 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->tt.disc_stop = fcoe_ctlr_disc_stop;
lport            3182 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->tt.disc_stop_final = fcoe_ctlr_disc_stop_final;
lport            3185 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->rport_priv_size = 0;
lport            3186 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->point_to_multipoint = 0;
lport            3187 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->tt.disc_recv_req = NULL;
lport            3188 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->tt.disc_start = NULL;
lport            3189 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->tt.disc_stop = NULL;
lport            3190 drivers/scsi/fcoe/fcoe_ctlr.c 		lport->tt.disc_stop_final = NULL;
lport            3191 drivers/scsi/fcoe/fcoe_ctlr.c 		priv = lport;
lport            3194 drivers/scsi/fcoe/fcoe_ctlr.c 	fc_disc_config(lport, priv);
lport            3206 drivers/scsi/fcoe/fcoe_ctlr.c int fcoe_libfc_config(struct fc_lport *lport, struct fcoe_ctlr *fip,
lport            3210 drivers/scsi/fcoe/fcoe_ctlr.c 	memcpy(&lport->tt, tt, sizeof(*tt));
lport            3211 drivers/scsi/fcoe/fcoe_ctlr.c 	if (init_fcp && fc_fcp_init(lport))
lport            3213 drivers/scsi/fcoe/fcoe_ctlr.c 	fc_exch_init(lport);
lport            3214 drivers/scsi/fcoe/fcoe_ctlr.c 	fc_elsct_init(lport);
lport            3215 drivers/scsi/fcoe/fcoe_ctlr.c 	fc_lport_init(lport);
lport            3216 drivers/scsi/fcoe/fcoe_ctlr.c 	fc_disc_init(lport);
lport            3217 drivers/scsi/fcoe/fcoe_ctlr.c 	fcoe_ctlr_mode_set(lport, fip, fip->mode);
lport            3245 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_lport *lport = ctlr->lp;
lport            3260 drivers/scsi/fcoe/fcoe_ctlr.c 	fcoe_ctlr_mode_set(lport, ctlr, ctlr->mode);
lport             116 drivers/scsi/fcoe/fcoe_transport.c int fcoe_link_speed_update(struct fc_lport *lport)
lport             118 drivers/scsi/fcoe/fcoe_transport.c 	struct net_device *netdev = fcoe_get_netdev(lport);
lport             122 drivers/scsi/fcoe/fcoe_transport.c 		lport->link_supported_speeds &= ~(FC_PORTSPEED_1GBIT  |
lport             131 drivers/scsi/fcoe/fcoe_transport.c 			lport->link_supported_speeds |= FC_PORTSPEED_1GBIT;
lport             138 drivers/scsi/fcoe/fcoe_transport.c 			lport->link_supported_speeds |= FC_PORTSPEED_10GBIT;
lport             143 drivers/scsi/fcoe/fcoe_transport.c 			lport->link_supported_speeds |= FC_PORTSPEED_20GBIT;
lport             150 drivers/scsi/fcoe/fcoe_transport.c 			lport->link_supported_speeds |= FC_PORTSPEED_40GBIT;
lport             152 drivers/scsi/fcoe/fcoe_transport.c 		lport->link_speed = eth2fc_speed(ecmd.base.speed);
lport             168 drivers/scsi/fcoe/fcoe_transport.c void __fcoe_get_lesb(struct fc_lport *lport,
lport             184 drivers/scsi/fcoe/fcoe_transport.c 		stats = per_cpu_ptr(lport->stats, cpu);
lport             202 drivers/scsi/fcoe/fcoe_transport.c void fcoe_get_lesb(struct fc_lport *lport,
lport             205 drivers/scsi/fcoe/fcoe_transport.c 	struct net_device *netdev = fcoe_get_netdev(lport);
lport             207 drivers/scsi/fcoe/fcoe_transport.c 	__fcoe_get_lesb(lport, fc_lesb, netdev);
lport             367 drivers/scsi/fcoe/fcoe_transport.c void fcoe_clean_pending_queue(struct fc_lport *lport)
lport             369 drivers/scsi/fcoe/fcoe_transport.c 	struct fcoe_port  *port = lport_priv(lport);
lport             395 drivers/scsi/fcoe/fcoe_transport.c void fcoe_check_wait_queue(struct fc_lport *lport, struct sk_buff *skb)
lport             397 drivers/scsi/fcoe/fcoe_transport.c 	struct fcoe_port *port = lport_priv(lport);
lport             429 drivers/scsi/fcoe/fcoe_transport.c 		lport->qfull = 0;
lport             435 drivers/scsi/fcoe/fcoe_transport.c 		lport->qfull = 1;
lport             450 drivers/scsi/fcoe/fcoe_transport.c 	fcoe_check_wait_queue(port->lport, NULL);
lport             218 drivers/scsi/fnic/fnic.h 	struct fc_lport *lport;
lport             699 drivers/scsi/fnic/fnic_debugfs.c 	snprintf(name, sizeof(name), "host%d", fnic->lport->host->host_no);
lport              76 drivers/scsi/fnic/fnic_fcs.c 		shost_printk(KERN_INFO, fnic->lport->host,
lport              82 drivers/scsi/fnic/fnic_fcs.c 		fc_host_speed(fnic->lport->host)   = FC_PORTSPEED_10GBIT;
lport              83 drivers/scsi/fnic/fnic_fcs.c 		fnic->lport->link_supported_speeds = FC_PORTSPEED_10GBIT;
lport              86 drivers/scsi/fnic/fnic_fcs.c 		fc_host_speed(fnic->lport->host)   = FC_PORTSPEED_20GBIT;
lport              87 drivers/scsi/fnic/fnic_fcs.c 		fnic->lport->link_supported_speeds = FC_PORTSPEED_20GBIT;
lport              90 drivers/scsi/fnic/fnic_fcs.c 		fc_host_speed(fnic->lport->host)   = FC_PORTSPEED_25GBIT;
lport              91 drivers/scsi/fnic/fnic_fcs.c 		fnic->lport->link_supported_speeds = FC_PORTSPEED_25GBIT;
lport              95 drivers/scsi/fnic/fnic_fcs.c 		fc_host_speed(fnic->lport->host)   = FC_PORTSPEED_40GBIT;
lport              96 drivers/scsi/fnic/fnic_fcs.c 		fnic->lport->link_supported_speeds = FC_PORTSPEED_40GBIT;
lport              99 drivers/scsi/fnic/fnic_fcs.c 		fc_host_speed(fnic->lport->host)   = FC_PORTSPEED_100GBIT;
lport             100 drivers/scsi/fnic/fnic_fcs.c 		fnic->lport->link_supported_speeds = FC_PORTSPEED_100GBIT;
lport             103 drivers/scsi/fnic/fnic_fcs.c 		fc_host_speed(fnic->lport->host)   = FC_PORTSPEED_UNKNOWN;
lport             104 drivers/scsi/fnic/fnic_fcs.c 		fnic->lport->link_supported_speeds = FC_PORTSPEED_UNKNOWN;
lport             112 drivers/scsi/fnic/fnic_fcs.c 			fnic_fc_trace_set_data(fnic->lport->host->host_no,
lport             118 drivers/scsi/fnic/fnic_fcs.c 				fnic->lport->host_stats.link_failure_count++;
lport             121 drivers/scsi/fnic/fnic_fcs.c 					fnic->lport->host->host_no,
lport             126 drivers/scsi/fnic/fnic_fcs.c 				FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport             132 drivers/scsi/fnic/fnic_fcs.c 						fnic->lport->host->host_no,
lport             141 drivers/scsi/fnic/fnic_fcs.c 				FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport             148 drivers/scsi/fnic/fnic_fcs.c 					fnic->lport->host->host_no, FNIC_FC_LE,
lport             159 drivers/scsi/fnic/fnic_fcs.c 				fnic->lport->host->host_no,
lport             165 drivers/scsi/fnic/fnic_fcs.c 		FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, "link up\n");
lport             166 drivers/scsi/fnic/fnic_fcs.c 		fnic_fc_trace_set_data(fnic->lport->host->host_no, FNIC_FC_LE,
lport             171 drivers/scsi/fnic/fnic_fcs.c 		fnic->lport->host_stats.link_failure_count++;
lport             173 drivers/scsi/fnic/fnic_fcs.c 		FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, "link down\n");
lport             175 drivers/scsi/fnic/fnic_fcs.c 			fnic->lport->host->host_no, FNIC_FC_LE,
lport             179 drivers/scsi/fnic/fnic_fcs.c 			FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport             194 drivers/scsi/fnic/fnic_fcs.c 	struct fc_lport *lp = fnic->lport;
lport             282 drivers/scsi/fnic/fnic_fcs.c 			FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport             287 drivers/scsi/fnic/fnic_fcs.c 			FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport             307 drivers/scsi/fnic/fnic_fcs.c 	struct fc_lport *lport = fip->lp;
lport             363 drivers/scsi/fnic/fnic_fcs.c 			shost_printk(KERN_INFO, lport->host,
lport             367 drivers/scsi/fnic/fnic_fcs.c 		shost_printk(KERN_INFO, lport->host,
lport             387 drivers/scsi/fnic/fnic_fcs.c 		FNIC_FCS_DBG(KERN_INFO, fnic->lport->host,
lport             441 drivers/scsi/fnic/fnic_fcs.c 	FNIC_FCS_DBG(KERN_INFO, fnic->lport->host,
lport             446 drivers/scsi/fnic/fnic_fcs.c 	FNIC_FCS_DBG(KERN_INFO, fnic->lport->host,
lport             459 drivers/scsi/fnic/fnic_fcs.c 			shost_printk(KERN_INFO, fnic->lport->host,
lport             481 drivers/scsi/fnic/fnic_fcs.c 		FNIC_FCS_DBG(KERN_INFO, fnic->lport->host,
lport             649 drivers/scsi/fnic/fnic_fcs.c 				shost_printk(KERN_INFO, fnic->lport->host,
lport             691 drivers/scsi/fnic/fnic_fcs.c 		if ((fnic_fc_trace_set_data(fnic->lport->host->host_no,
lport             739 drivers/scsi/fnic/fnic_fcs.c 	FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host, "update_mac %pM\n", new);
lport             752 drivers/scsi/fnic/fnic_fcs.c void fnic_update_mac(struct fc_lport *lport, u8 *new)
lport             754 drivers/scsi/fnic/fnic_fcs.c 	struct fnic *fnic = lport_priv(lport);
lport             775 drivers/scsi/fnic/fnic_fcs.c void fnic_set_port_id(struct fc_lport *lport, u32 port_id, struct fc_frame *fp)
lport             777 drivers/scsi/fnic/fnic_fcs.c 	struct fnic *fnic = lport_priv(lport);
lport             781 drivers/scsi/fnic/fnic_fcs.c 	FNIC_FCS_DBG(KERN_DEBUG, lport->host, "set port_id %x fp %p\n",
lport             789 drivers/scsi/fnic/fnic_fcs.c 		fnic_update_mac(lport, fnic->ctlr.ctl_src_addr);
lport             798 drivers/scsi/fnic/fnic_fcs.c 			fcoe_ctlr_recv_flogi(&fnic->ctlr, lport, fp);
lport             800 drivers/scsi/fnic/fnic_fcs.c 		fnic_update_mac(lport, mac);
lport             808 drivers/scsi/fnic/fnic_fcs.c 		FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport             891 drivers/scsi/fnic/fnic_fcs.c 			FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport             900 drivers/scsi/fnic/fnic_fcs.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             907 drivers/scsi/fnic/fnic_fcs.c 		FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport             921 drivers/scsi/fnic/fnic_fcs.c 	fr_dev(fp) = fnic->lport;
lport             923 drivers/scsi/fnic/fnic_fcs.c 	if ((fnic_fc_trace_set_data(fnic->lport->host->host_no, FNIC_FC_RECV,
lport             962 drivers/scsi/fnic/fnic_fcs.c 				shost_printk(KERN_ERR, fnic->lport->host,
lport             988 drivers/scsi/fnic/fnic_fcs.c 		FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport            1044 drivers/scsi/fnic/fnic_fcs.c 		if ((fnic_fc_trace_set_data(fnic->lport->host->host_no,
lport            1049 drivers/scsi/fnic/fnic_fcs.c 		if ((fnic_fc_trace_set_data(fnic->lport->host->host_no,
lport            1099 drivers/scsi/fnic/fnic_fcs.c 	    fcoe_ctlr_els_send(&fnic->ctlr, fnic->lport, skb))
lport            1138 drivers/scsi/fnic/fnic_fcs.c 	if ((fnic_fc_trace_set_data(fnic->lport->host->host_no, FNIC_FC_SEND,
lport            1354 drivers/scsi/fnic/fnic_fcs.c 			FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport            1361 drivers/scsi/fnic/fnic_fcs.c 	shost_printk(KERN_DEBUG, fnic->lport->host,
lport            1366 drivers/scsi/fnic/fnic_fcs.c 		FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport            1374 drivers/scsi/fnic/fnic_fcs.c 			FNIC_FCS_DBG(KERN_DEBUG, fnic->lport->host,
lport            1384 drivers/scsi/fnic/fnic_fcs.c 			shost_printk(KERN_INFO, fnic->lport->host,
lport            1394 drivers/scsi/fnic/fnic_fcs.c 				shost_printk(KERN_INFO, fnic->lport->host,
lport             218 drivers/scsi/fnic/fnic_isr.c 				shost_printk(KERN_ERR, fnic->lport->host,
lport             266 drivers/scsi/fnic/fnic_isr.c 			FNIC_ISR_DBG(KERN_DEBUG, fnic->lport->host,
lport             292 drivers/scsi/fnic/fnic_isr.c 		FNIC_ISR_DBG(KERN_DEBUG, fnic->lport->host,
lport             318 drivers/scsi/fnic/fnic_isr.c 		FNIC_ISR_DBG(KERN_DEBUG, fnic->lport->host,
lport             223 drivers/scsi/fnic/fnic_main.c 		FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host,
lport             335 drivers/scsi/fnic/fnic_main.c 		FNIC_MAIN_DBG(KERN_DEBUG, fnic->lport->host,
lport             354 drivers/scsi/fnic/fnic_main.c 			shost_printk(KERN_ERR, fnic->lport->host,
lport             362 drivers/scsi/fnic/fnic_main.c 			shost_printk(KERN_ERR, fnic->lport->host,
lport             370 drivers/scsi/fnic/fnic_main.c 			shost_printk(KERN_ERR, fnic->lport->host,
lport             406 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             546 drivers/scsi/fnic/fnic_main.c static u8 *fnic_get_mac(struct fc_lport *lport)
lport             548 drivers/scsi/fnic/fnic_main.c 	struct fnic *fnic = lport_priv(lport);
lport             581 drivers/scsi/fnic/fnic_main.c 	fnic->lport = lp;
lport             598 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             605 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             620 drivers/scsi/fnic/fnic_main.c 			shost_printk(KERN_ERR, fnic->lport->host,
lport             629 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             640 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             649 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             658 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             667 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             674 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             681 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             691 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             713 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             721 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             767 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_INFO, fnic->lport->host,
lport             783 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_INFO, fnic->lport->host,
lport             799 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             813 drivers/scsi/fnic/fnic_main.c 			shost_printk(KERN_ERR, fnic->lport->host,
lport             826 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             892 drivers/scsi/fnic/fnic_main.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             946 drivers/scsi/fnic/fnic_main.c 	struct fc_lport *lp = fnic->lport;
lport             982 drivers/scsi/fnic/fnic_main.c 	fc_fabric_logoff(fnic->lport);
lport            1006 drivers/scsi/fnic/fnic_main.c 	fc_remove_host(fnic->lport->host);
lport            1007 drivers/scsi/fnic/fnic_main.c 	scsi_remove_host(fnic->lport->host);
lport            1008 drivers/scsi/fnic/fnic_main.c 	fc_exch_mgr_free(fnic->lport);
lport              45 drivers/scsi/fnic/fnic_res.c 			shost_printk(KERN_ERR, fnic->lport->host, \
lport             146 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host,
lport             152 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host,
lport             155 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host,
lport             158 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host,
lport             161 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host,
lport             164 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host,
lport             167 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host,
lport             170 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host,
lport             173 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host,
lport             243 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host, "vNIC interrupt mode: %s\n",
lport             249 drivers/scsi/fnic/fnic_res.c 	shost_printk(KERN_INFO, fnic->lport->host, "vNIC resources avail: "
lport             325 drivers/scsi/fnic/fnic_res.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             429 drivers/scsi/fnic/fnic_res.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             187 drivers/scsi/fnic/fnic_scsi.c 	spin_lock_irqsave(fnic->lport->host->host_lock, host_lock_flags);
lport             194 drivers/scsi/fnic/fnic_scsi.c 	spin_unlock_irqrestore(fnic->lport->host->host_lock, host_lock_flags);
lport             242 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             246 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             262 drivers/scsi/fnic/fnic_scsi.c 	struct fc_lport *lp = fnic->lport;
lport             290 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             296 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             375 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host,
lport             447 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             456 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             466 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             477 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             652 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             658 drivers/scsi/fnic/fnic_scsi.c 				      fnic->lport->host,
lport             674 drivers/scsi/fnic/fnic_scsi.c 			      fnic->lport->host,
lport             727 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             732 drivers/scsi/fnic/fnic_scsi.c 				      fnic->lport->host,
lport             739 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport             811 drivers/scsi/fnic/fnic_scsi.c 		  fnic->lport->host->host_no, 0, 0, ox_id_tag[2], ox_id_tag[3],
lport             843 drivers/scsi/fnic/fnic_scsi.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             849 drivers/scsi/fnic/fnic_scsi.c 	sc = scsi_host_find_tag(fnic->lport->host, id);
lport             853 drivers/scsi/fnic/fnic_scsi.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             858 drivers/scsi/fnic/fnic_scsi.c 			  fnic->lport->host->host_no, id,
lport             876 drivers/scsi/fnic/fnic_scsi.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport             903 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host,
lport             992 drivers/scsi/fnic/fnic_scsi.c 		shost_printk(KERN_ERR, fnic->lport->host, "hdr status = %s\n",
lport            1015 drivers/scsi/fnic/fnic_scsi.c 		fnic->lport->host_stats.fcp_input_requests++;
lport            1018 drivers/scsi/fnic/fnic_scsi.c 		fnic->lport->host_stats.fcp_output_requests++;
lport            1021 drivers/scsi/fnic/fnic_scsi.c 		fnic->lport->host_stats.fcp_control_requests++;
lport            1080 drivers/scsi/fnic/fnic_scsi.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport            1086 drivers/scsi/fnic/fnic_scsi.c 	sc = scsi_host_find_tag(fnic->lport->host, id & FNIC_TAG_MASK);
lport            1090 drivers/scsi/fnic/fnic_scsi.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport            1103 drivers/scsi/fnic/fnic_scsi.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport            1114 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1136 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host,
lport            1171 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1185 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1227 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1242 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1251 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1260 drivers/scsi/fnic/fnic_scsi.c 		shost_printk(KERN_ERR, fnic->lport->host,
lport            1313 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1377 drivers/scsi/fnic/fnic_scsi.c 		sc = scsi_host_find_tag(fnic->lport->host, i);
lport            1420 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1433 drivers/scsi/fnic/fnic_scsi.c 				shost_printk(KERN_ERR, fnic->lport->host,
lport            1469 drivers/scsi/fnic/fnic_scsi.c 	sc = scsi_host_find_tag(fnic->lport->host, id);
lport            1496 drivers/scsi/fnic/fnic_scsi.c 	FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, "wq_copy_cleanup_handler:"
lport            1517 drivers/scsi/fnic/fnic_scsi.c 	struct Scsi_Host *host = fnic->lport->host;
lport            1538 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1574 drivers/scsi/fnic/fnic_scsi.c 		      fnic->lport->host,
lport            1585 drivers/scsi/fnic/fnic_scsi.c 		sc = scsi_host_find_tag(fnic->lport->host, tag);
lport            1600 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1616 drivers/scsi/fnic/fnic_scsi.c 			shost_printk(KERN_ERR, fnic->lport->host,
lport            1623 drivers/scsi/fnic/fnic_scsi.c 			shost_printk(KERN_ERR, fnic->lport->host,
lport            1635 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1642 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1690 drivers/scsi/fnic/fnic_scsi.c 	struct fc_lport *lport;
lport            1707 drivers/scsi/fnic/fnic_scsi.c 	lport = rdata->local_port;
lport            1709 drivers/scsi/fnic/fnic_scsi.c 	if (!lport) {
lport            1713 drivers/scsi/fnic/fnic_scsi.c 	fnic = lport_priv(lport);
lport            1715 drivers/scsi/fnic/fnic_scsi.c 		      fnic->lport->host, "fnic_terminate_rport_io called"
lport            1730 drivers/scsi/fnic/fnic_scsi.c 		sc = scsi_host_find_tag(fnic->lport->host, tag);
lport            1751 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1766 drivers/scsi/fnic/fnic_scsi.c 			shost_printk(KERN_ERR, fnic->lport->host,
lport            1772 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host,
lport            1784 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            1791 drivers/scsi/fnic/fnic_scsi.c 			      fnic->lport->host,
lport            1867 drivers/scsi/fnic/fnic_scsi.c 		fnic->lport->host,
lport            1921 drivers/scsi/fnic/fnic_scsi.c 	FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host,
lport            2011 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2059 drivers/scsi/fnic/fnic_scsi.c 	FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2071 drivers/scsi/fnic/fnic_scsi.c 	struct Scsi_Host *host = fnic->lport->host;
lport            2092 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2145 drivers/scsi/fnic/fnic_scsi.c 		sc = scsi_host_find_tag(fnic->lport->host, tag);
lport            2166 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2176 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host,
lport            2184 drivers/scsi/fnic/fnic_scsi.c 			shost_printk(KERN_ERR, fnic->lport->host,
lport            2202 drivers/scsi/fnic/fnic_scsi.c 			FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host,
lport            2358 drivers/scsi/fnic/fnic_scsi.c 	FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2409 drivers/scsi/fnic/fnic_scsi.c 	FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host, "TAG %x\n", tag);
lport            2437 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2451 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2479 drivers/scsi/fnic/fnic_scsi.c 				FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2506 drivers/scsi/fnic/fnic_scsi.c 			      fnic->lport->host,
lport            2522 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2560 drivers/scsi/fnic/fnic_scsi.c 	FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2583 drivers/scsi/fnic/fnic_scsi.c 	FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2594 drivers/scsi/fnic/fnic_scsi.c 	FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2630 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2704 drivers/scsi/fnic/fnic_scsi.c 	FNIC_SCSI_DBG(KERN_DEBUG, fnic->lport->host,
lport            2798 drivers/scsi/fnic/fnic_scsi.c 		sc = scsi_host_find_tag(fnic->lport->host, tag);
lport            2820 drivers/scsi/fnic/fnic_scsi.c 		FNIC_SCSI_DBG(KERN_INFO, fnic->lport->host,
lport              72 drivers/scsi/libfc/fc_disc.c 	struct fc_lport *lport;
lport              85 drivers/scsi/libfc/fc_disc.c 	lport = fc_disc_lport(disc);
lport             127 drivers/scsi/libfc/fc_disc.c 			dp->lp = lport;
lport             151 drivers/scsi/libfc/fc_disc.c 			redisc = fc_disc_single(lport, dp);
lport             160 drivers/scsi/libfc/fc_disc.c 			    redisc, lport->state, disc->pending);
lport             181 drivers/scsi/libfc/fc_disc.c static void fc_disc_recv_req(struct fc_lport *lport, struct fc_frame *fp)
lport             184 drivers/scsi/libfc/fc_disc.c 	struct fc_disc *disc = &lport->disc;
lport             235 drivers/scsi/libfc/fc_disc.c 			  struct fc_lport *lport)
lport             237 drivers/scsi/libfc/fc_disc.c 	struct fc_disc *disc = &lport->disc;
lport             257 drivers/scsi/libfc/fc_disc.c 	struct fc_lport *lport = fc_disc_lport(disc);
lport             290 drivers/scsi/libfc/fc_disc.c 	disc->disc_callback(lport, event);
lport             301 drivers/scsi/libfc/fc_disc.c 	struct fc_lport *lport = fc_disc_lport(disc);
lport             318 drivers/scsi/libfc/fc_disc.c 				delay = msecs_to_jiffies(lport->e_d_tov);
lport             345 drivers/scsi/libfc/fc_disc.c 	struct fc_lport *lport = fc_disc_lport(disc);
lport             349 drivers/scsi/libfc/fc_disc.c 	WARN_ON(!fc_lport_test_ready(lport));
lport             356 drivers/scsi/libfc/fc_disc.c 	fp = fc_frame_alloc(lport,
lport             362 drivers/scsi/libfc/fc_disc.c 	if (lport->tt.elsct_send(lport, 0, fp,
lport             365 drivers/scsi/libfc/fc_disc.c 				 disc, 3 * lport->r_a_tov))
lport             381 drivers/scsi/libfc/fc_disc.c 	struct fc_lport *lport;
lport             390 drivers/scsi/libfc/fc_disc.c 	lport = fc_disc_lport(disc);
lport             434 drivers/scsi/libfc/fc_disc.c 		if (ids.port_id != lport->port_id &&
lport             435 drivers/scsi/libfc/fc_disc.c 		    ids.port_name != lport->wwpn) {
lport             436 drivers/scsi/libfc/fc_disc.c 			rdata = fc_rport_create(lport, ids.port_id);
lport             573 drivers/scsi/libfc/fc_disc.c 	struct fc_lport *lport;
lport             579 drivers/scsi/libfc/fc_disc.c 	lport = rdata->local_port;
lport             580 drivers/scsi/libfc/fc_disc.c 	disc = &lport->disc;
lport             605 drivers/scsi/libfc/fc_disc.c 			mutex_lock(&lport->disc.disc_mutex);
lport             606 drivers/scsi/libfc/fc_disc.c 			new_rdata = fc_rport_create(lport, rdata->ids.port_id);
lport             607 drivers/scsi/libfc/fc_disc.c 			mutex_unlock(&lport->disc.disc_mutex);
lport             642 drivers/scsi/libfc/fc_disc.c static int fc_disc_gpn_id_req(struct fc_lport *lport,
lport             647 drivers/scsi/libfc/fc_disc.c 	lockdep_assert_held(&lport->disc.disc_mutex);
lport             648 drivers/scsi/libfc/fc_disc.c 	fp = fc_frame_alloc(lport, sizeof(struct fc_ct_hdr) +
lport             652 drivers/scsi/libfc/fc_disc.c 	if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, FC_NS_GPN_ID,
lport             654 drivers/scsi/libfc/fc_disc.c 				  3 * lport->r_a_tov))
lport             665 drivers/scsi/libfc/fc_disc.c static int fc_disc_single(struct fc_lport *lport, struct fc_disc_port *dp)
lport             669 drivers/scsi/libfc/fc_disc.c 	lockdep_assert_held(&lport->disc.disc_mutex);
lport             671 drivers/scsi/libfc/fc_disc.c 	rdata = fc_rport_create(lport, dp->port_id);
lport             675 drivers/scsi/libfc/fc_disc.c 	return fc_disc_gpn_id_req(lport, rdata);
lport             682 drivers/scsi/libfc/fc_disc.c static void fc_disc_stop(struct fc_lport *lport)
lport             684 drivers/scsi/libfc/fc_disc.c 	struct fc_disc *disc = &lport->disc;
lport             700 drivers/scsi/libfc/fc_disc.c static void fc_disc_stop_final(struct fc_lport *lport)
lport             702 drivers/scsi/libfc/fc_disc.c 	fc_disc_stop(lport);
lport             711 drivers/scsi/libfc/fc_disc.c void fc_disc_config(struct fc_lport *lport, void *priv)
lport             715 drivers/scsi/libfc/fc_disc.c 	if (!lport->tt.disc_start)
lport             716 drivers/scsi/libfc/fc_disc.c 		lport->tt.disc_start = fc_disc_start;
lport             718 drivers/scsi/libfc/fc_disc.c 	if (!lport->tt.disc_stop)
lport             719 drivers/scsi/libfc/fc_disc.c 		lport->tt.disc_stop = fc_disc_stop;
lport             721 drivers/scsi/libfc/fc_disc.c 	if (!lport->tt.disc_stop_final)
lport             722 drivers/scsi/libfc/fc_disc.c 		lport->tt.disc_stop_final = fc_disc_stop_final;
lport             724 drivers/scsi/libfc/fc_disc.c 	if (!lport->tt.disc_recv_req)
lport             725 drivers/scsi/libfc/fc_disc.c 		lport->tt.disc_recv_req = fc_disc_recv_req;
lport             727 drivers/scsi/libfc/fc_disc.c 	disc = &lport->disc;
lport             737 drivers/scsi/libfc/fc_disc.c void fc_disc_init(struct fc_lport *lport)
lport             739 drivers/scsi/libfc/fc_disc.c 	struct fc_disc *disc = &lport->disc;
lport              31 drivers/scsi/libfc/fc_elsct.c struct fc_seq *fc_elsct_send(struct fc_lport *lport, u32 did,
lport              44 drivers/scsi/libfc/fc_elsct.c 		rc = fc_els_fill(lport, did, fp, op, &r_ctl, &fh_type);
lport              47 drivers/scsi/libfc/fc_elsct.c 		rc = fc_ct_fill(lport, did, fp, op, &r_ctl, &fh_type, &did);
lport              55 drivers/scsi/libfc/fc_elsct.c 	fc_fill_fc_hdr(fp, r_ctl, did, lport->port_id, fh_type,
lport              58 drivers/scsi/libfc/fc_elsct.c 	return fc_exch_seq_send(lport, fp, resp, NULL, arg, timer_msec);
lport              66 drivers/scsi/libfc/fc_elsct.c int fc_elsct_init(struct fc_lport *lport)
lport              68 drivers/scsi/libfc/fc_elsct.c 	if (!lport->tt.elsct_send)
lport              69 drivers/scsi/libfc/fc_elsct.c 		lport->tt.elsct_send = fc_elsct_send;
lport              85 drivers/scsi/libfc/fc_exch.c 	struct fc_lport	*lport;
lport             462 drivers/scsi/libfc/fc_exch.c static int fc_seq_send_locked(struct fc_lport *lport, struct fc_seq *sp,
lport             498 drivers/scsi/libfc/fc_exch.c 	error = lport->tt.frame_send(lport, fp);
lport             524 drivers/scsi/libfc/fc_exch.c int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp)
lport             530 drivers/scsi/libfc/fc_exch.c 	error = fc_seq_send_locked(lport, sp, fp);
lport             808 drivers/scsi/libfc/fc_exch.c static struct fc_exch *fc_exch_em_alloc(struct fc_lport *lport,
lport             875 drivers/scsi/libfc/fc_exch.c 	ep->lp = lport;
lport             902 drivers/scsi/libfc/fc_exch.c static struct fc_exch *fc_exch_alloc(struct fc_lport *lport,
lport             908 drivers/scsi/libfc/fc_exch.c 	list_for_each_entry(ema, &lport->ema_list, ema_list) {
lport             910 drivers/scsi/libfc/fc_exch.c 			ep = fc_exch_em_alloc(lport, ema->mp);
lport             925 drivers/scsi/libfc/fc_exch.c 	struct fc_lport *lport = mp->lport;
lport             935 drivers/scsi/libfc/fc_exch.c 		       lport->host->host_no, lport->port_id, xid, cpu);
lport             944 drivers/scsi/libfc/fc_exch.c 			FC_LPORT_DBG(lport, "xid %x quarantined\n", xid);
lport             987 drivers/scsi/libfc/fc_exch.c static struct fc_exch *fc_exch_resp(struct fc_lport *lport,
lport             994 drivers/scsi/libfc/fc_exch.c 	ep = fc_exch_alloc(lport, fp);
lport            1035 drivers/scsi/libfc/fc_exch.c static enum fc_pf_rjt_reason fc_seq_lookup_recip(struct fc_lport *lport,
lport            1090 drivers/scsi/libfc/fc_exch.c 			ep = fc_exch_resp(lport, mp, fp);
lport            1278 drivers/scsi/libfc/fc_exch.c 	struct fc_lport *lport = ep->lp;
lport            1285 drivers/scsi/libfc/fc_exch.c 		fp = fc_frame_alloc(lport, 0);
lport            1322 drivers/scsi/libfc/fc_exch.c 		lport->tt.frame_send(lport, fp);
lport            1343 drivers/scsi/libfc/fc_exch.c 	struct fc_lport *lport;
lport            1346 drivers/scsi/libfc/fc_exch.c 	lport = fr_dev(rx_fp);
lport            1348 drivers/scsi/libfc/fc_exch.c 	fp = fc_frame_alloc(lport, sizeof(*rp));
lport            1396 drivers/scsi/libfc/fc_exch.c 	lport->tt.frame_send(lport, fp);
lport            1471 drivers/scsi/libfc/fc_exch.c struct fc_seq *fc_seq_assign(struct fc_lport *lport, struct fc_frame *fp)
lport            1475 drivers/scsi/libfc/fc_exch.c 	WARN_ON(lport != fr_dev(fp));
lport            1479 drivers/scsi/libfc/fc_exch.c 	list_for_each_entry(ema, &lport->ema_list, ema_list)
lport            1481 drivers/scsi/libfc/fc_exch.c 		    fc_seq_lookup_recip(lport, ema->mp, fp) == FC_RJT_NONE)
lport            1506 drivers/scsi/libfc/fc_exch.c static void fc_exch_recv_req(struct fc_lport *lport, struct fc_exch_mgr *mp,
lport            1517 drivers/scsi/libfc/fc_exch.c 	lport = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id));
lport            1518 drivers/scsi/libfc/fc_exch.c 	if (!lport) {
lport            1522 drivers/scsi/libfc/fc_exch.c 	fr_dev(fp) = lport;
lport            1531 drivers/scsi/libfc/fc_exch.c 		return fc_lport_recv(lport, fp);
lport            1533 drivers/scsi/libfc/fc_exch.c 	reject = fc_seq_lookup_recip(lport, mp, fp);
lport            1552 drivers/scsi/libfc/fc_exch.c 			fc_lport_recv(lport, fp);
lport            1555 drivers/scsi/libfc/fc_exch.c 		FC_LPORT_DBG(lport, "exch/seq lookup failed: reject %x\n",
lport            1821 drivers/scsi/libfc/fc_exch.c 	struct fc_lport *lport;
lport            1826 drivers/scsi/libfc/fc_exch.c 	lport = fr_dev(rx_fp);
lport            1828 drivers/scsi/libfc/fc_exch.c 	fp = fc_frame_alloc(lport, sizeof(*acc));
lport            1838 drivers/scsi/libfc/fc_exch.c 	lport->tt.frame_send(lport, fp);
lport            1853 drivers/scsi/libfc/fc_exch.c 	struct fc_lport *lport;
lport            1858 drivers/scsi/libfc/fc_exch.c 	lport = fr_dev(rx_fp);
lport            1860 drivers/scsi/libfc/fc_exch.c 	fp = fc_frame_alloc(lport, sizeof(*rjt));
lport            1872 drivers/scsi/libfc/fc_exch.c 	lport->tt.frame_send(lport, fp);
lport            1918 drivers/scsi/libfc/fc_exch.c static void fc_exch_pool_reset(struct fc_lport *lport,
lport            1928 drivers/scsi/libfc/fc_exch.c 		if ((lport == ep->lp) &&
lport            1963 drivers/scsi/libfc/fc_exch.c void fc_exch_mgr_reset(struct fc_lport *lport, u32 sid, u32 did)
lport            1968 drivers/scsi/libfc/fc_exch.c 	list_for_each_entry(ema, &lport->ema_list, ema_list) {
lport            1970 drivers/scsi/libfc/fc_exch.c 			fc_exch_pool_reset(lport,
lport            1984 drivers/scsi/libfc/fc_exch.c static struct fc_exch *fc_exch_lookup(struct fc_lport *lport, u32 xid)
lport            1988 drivers/scsi/libfc/fc_exch.c 	list_for_each_entry(ema, &lport->ema_list, ema_list)
lport            2002 drivers/scsi/libfc/fc_exch.c 	struct fc_lport *lport;
lport            2012 drivers/scsi/libfc/fc_exch.c 	lport = fr_dev(rfp);
lport            2022 drivers/scsi/libfc/fc_exch.c 	if (sid == fc_host_port_id(lport->host))
lport            2027 drivers/scsi/libfc/fc_exch.c 		FC_LPORT_DBG(lport,
lport            2032 drivers/scsi/libfc/fc_exch.c 	ep = fc_exch_lookup(lport, xid);
lport            2034 drivers/scsi/libfc/fc_exch.c 		FC_LPORT_DBG(lport,
lport            2045 drivers/scsi/libfc/fc_exch.c 	fp = fc_frame_alloc(lport, sizeof(*acc));
lport            2066 drivers/scsi/libfc/fc_exch.c 	lport->tt.frame_send(lport, fp);
lport            2159 drivers/scsi/libfc/fc_exch.c struct fc_seq *fc_exch_seq_send(struct fc_lport *lport,
lport            2173 drivers/scsi/libfc/fc_exch.c 	ep = fc_exch_alloc(lport, fp);
lport            2184 drivers/scsi/libfc/fc_exch.c 	ep->r_a_tov = lport->r_a_tov;
lport            2185 drivers/scsi/libfc/fc_exch.c 	ep->lp = lport;
lport            2193 drivers/scsi/libfc/fc_exch.c 	if (ep->xid <= lport->lro_xid && fh->fh_r_ctl == FC_RCTL_DD_UNSOL_CMD) {
lport            2198 drivers/scsi/libfc/fc_exch.c 	if (unlikely(lport->tt.frame_send(lport, fp)))
lport            2229 drivers/scsi/libfc/fc_exch.c 	struct fc_lport *lport;
lport            2234 drivers/scsi/libfc/fc_exch.c 	lport = ep->lp;
lport            2236 drivers/scsi/libfc/fc_exch.c 	fp = fc_frame_alloc(lport, sizeof(*rrq));
lport            2252 drivers/scsi/libfc/fc_exch.c 		       lport->port_id, FC_TYPE_ELS,
lport            2255 drivers/scsi/libfc/fc_exch.c 	if (fc_exch_seq_send(lport, fp, fc_exch_rrq_resp, NULL, ep,
lport            2256 drivers/scsi/libfc/fc_exch.c 			     lport->e_d_tov))
lport            2279 drivers/scsi/libfc/fc_exch.c 	struct fc_lport *lport;
lport            2286 drivers/scsi/libfc/fc_exch.c 	lport = fr_dev(fp);
lport            2296 drivers/scsi/libfc/fc_exch.c 	xid = fc_host_port_id(lport->host) == sid ?
lport            2298 drivers/scsi/libfc/fc_exch.c 	ep = fc_exch_lookup(lport, xid);
lport            2345 drivers/scsi/libfc/fc_exch.c void fc_exch_update_stats(struct fc_lport *lport)
lport            2351 drivers/scsi/libfc/fc_exch.c 	st = &lport->host_stats;
lport            2353 drivers/scsi/libfc/fc_exch.c 	list_for_each_entry(ema, &lport->ema_list, ema_list) {
lport            2372 drivers/scsi/libfc/fc_exch.c struct fc_exch_mgr_anchor *fc_exch_mgr_add(struct fc_lport *lport,
lport            2385 drivers/scsi/libfc/fc_exch.c 	list_add_tail(&ema->ema_list, &lport->ema_list);
lport            2446 drivers/scsi/libfc/fc_exch.c struct fc_exch_mgr *fc_exch_mgr_alloc(struct fc_lport *lport,
lport            2459 drivers/scsi/libfc/fc_exch.c 		FC_LPORT_DBG(lport, "Invalid min_xid 0x:%x and max_xid 0x:%x\n",
lport            2472 drivers/scsi/libfc/fc_exch.c 	mp->lport = lport;
lport            2516 drivers/scsi/libfc/fc_exch.c 	if (!fc_exch_mgr_add(lport, mp, match)) {
lport            2541 drivers/scsi/libfc/fc_exch.c void fc_exch_mgr_free(struct fc_lport *lport)
lport            2546 drivers/scsi/libfc/fc_exch.c 	list_for_each_entry_safe(ema, next, &lport->ema_list, ema_list)
lport            2559 drivers/scsi/libfc/fc_exch.c 					      struct fc_lport *lport,
lport            2570 drivers/scsi/libfc/fc_exch.c 			return list_entry(lport->ema_list.prev,
lport            2574 drivers/scsi/libfc/fc_exch.c 	list_for_each_entry(ema, &lport->ema_list, ema_list) {
lport            2586 drivers/scsi/libfc/fc_exch.c void fc_exch_recv(struct fc_lport *lport, struct fc_frame *fp)
lport            2593 drivers/scsi/libfc/fc_exch.c 	if (!lport || lport->state == LPORT_ST_DISABLED) {
lport            2601 drivers/scsi/libfc/fc_exch.c 	ema = fc_find_ema(f_ctl, lport, fh);
lport            2603 drivers/scsi/libfc/fc_exch.c 		FC_LPORT_DBG(lport, "Unable to find Exchange Manager Anchor,"
lport            2630 drivers/scsi/libfc/fc_exch.c 			fc_exch_recv_req(lport, ema->mp, fp);
lport            2633 drivers/scsi/libfc/fc_exch.c 		FC_LPORT_DBG(lport, "dropping invalid frame (eof %x)",
lport            2644 drivers/scsi/libfc/fc_exch.c int fc_exch_init(struct fc_lport *lport)
lport            2646 drivers/scsi/libfc/fc_exch.c 	if (!lport->tt.exch_mgr_reset)
lport            2647 drivers/scsi/libfc/fc_exch.c 		lport->tt.exch_mgr_reset = fc_exch_mgr_reset;
lport             135 drivers/scsi/libfc/fc_fcp.c static struct fc_fcp_pkt *fc_fcp_pkt_alloc(struct fc_lport *lport, gfp_t gfp)
lport             137 drivers/scsi/libfc/fc_fcp.c 	struct fc_fcp_internal *si = fc_get_scsi_internal(lport);
lport             143 drivers/scsi/libfc/fc_fcp.c 		fsp->lp = lport;
lport             150 drivers/scsi/libfc/fc_fcp.c 		per_cpu_ptr(lport->stats, get_cpu())->FcpPktAllocFails++;
lport             318 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport;
lport             320 drivers/scsi/libfc/fc_fcp.c 	lport = fsp->lp;
lport             322 drivers/scsi/libfc/fc_fcp.c 	    (lport->lro_enabled) && (lport->tt.ddp_setup)) {
lport             323 drivers/scsi/libfc/fc_fcp.c 		if (lport->tt.ddp_setup(lport, xid, scsi_sglist(fsp->cmd),
lport             336 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport;
lport             344 drivers/scsi/libfc/fc_fcp.c 	lport = fsp->lp;
lport             345 drivers/scsi/libfc/fc_fcp.c 	if (lport->tt.ddp_done) {
lport             346 drivers/scsi/libfc/fc_fcp.c 		fsp->xfer_len = lport->tt.ddp_done(lport, fsp->xfer_ddp);
lport             355 drivers/scsi/libfc/fc_fcp.c static void fc_fcp_can_queue_ramp_up(struct fc_lport *lport)
lport             357 drivers/scsi/libfc/fc_fcp.c 	struct fc_fcp_internal *si = fc_get_scsi_internal(lport);
lport             361 drivers/scsi/libfc/fc_fcp.c 	spin_lock_irqsave(lport->host->host_lock, flags);
lport             374 drivers/scsi/libfc/fc_fcp.c 	can_queue = lport->host->can_queue << 1;
lport             379 drivers/scsi/libfc/fc_fcp.c 	lport->host->can_queue = can_queue;
lport             380 drivers/scsi/libfc/fc_fcp.c 	shost_printk(KERN_ERR, lport->host, "libfc: increased "
lport             384 drivers/scsi/libfc/fc_fcp.c 	spin_unlock_irqrestore(lport->host->host_lock, flags);
lport             397 drivers/scsi/libfc/fc_fcp.c static bool fc_fcp_can_queue_ramp_down(struct fc_lport *lport)
lport             399 drivers/scsi/libfc/fc_fcp.c 	struct fc_fcp_internal *si = fc_get_scsi_internal(lport);
lport             404 drivers/scsi/libfc/fc_fcp.c 	spin_lock_irqsave(lport->host->host_lock, flags);
lport             413 drivers/scsi/libfc/fc_fcp.c 	can_queue = lport->host->can_queue;
lport             417 drivers/scsi/libfc/fc_fcp.c 	lport->host->can_queue = can_queue;
lport             421 drivers/scsi/libfc/fc_fcp.c 	spin_unlock_irqrestore(lport->host->host_lock, flags);
lport             433 drivers/scsi/libfc/fc_fcp.c static inline struct fc_frame *fc_fcp_frame_alloc(struct fc_lport *lport,
lport             438 drivers/scsi/libfc/fc_fcp.c 	fp = fc_frame_alloc(lport, len);
lport             442 drivers/scsi/libfc/fc_fcp.c 	per_cpu_ptr(lport->stats, get_cpu())->FcpFrameAllocFails++;
lport             445 drivers/scsi/libfc/fc_fcp.c 	fc_fcp_can_queue_ramp_down(lport);
lport             446 drivers/scsi/libfc/fc_fcp.c 	shost_printk(KERN_ERR, lport->host,
lport             448 drivers/scsi/libfc/fc_fcp.c 		     "reducing can_queue to %d.\n", lport->host->can_queue);
lport             476 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport = fsp->lp;
lport             539 drivers/scsi/libfc/fc_fcp.c 			stats = per_cpu_ptr(lport->stats, get_cpu());
lport             545 drivers/scsi/libfc/fc_fcp.c 				       lport->port_id);
lport             600 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport = fsp->lp;
lport             611 drivers/scsi/libfc/fc_fcp.c 	int using_sg = lport->sg_supp;
lport             633 drivers/scsi/libfc/fc_fcp.c 	if (lport->seq_offload) {
lport             634 drivers/scsi/libfc/fc_fcp.c 		t_blen = min(seq_blen, (size_t)lport->lso_max);
lport             636 drivers/scsi/libfc/fc_fcp.c 			   fsp, seq_blen, lport->lso_max, t_blen);
lport             668 drivers/scsi/libfc/fc_fcp.c 			fp = fc_frame_alloc(lport, using_sg ? 0 : tlen);
lport             724 drivers/scsi/libfc/fc_fcp.c 		error = fc_seq_send(lport, seq, fp);
lport             780 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport = fsp->lp;
lport             794 drivers/scsi/libfc/fc_fcp.c 	if (lport->state != LPORT_ST_READY) {
lport             796 drivers/scsi/libfc/fc_fcp.c 			   lport->state, r_ctl);
lport             984 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport = fsp->lp;
lport            1026 drivers/scsi/libfc/fc_fcp.c 				fc_seq_send(lport, csp, conf_frame);
lport            1063 drivers/scsi/libfc/fc_fcp.c static void fc_fcp_cleanup_each_cmd(struct fc_lport *lport, unsigned int id,
lport            1066 drivers/scsi/libfc/fc_fcp.c 	struct fc_fcp_internal *si = fc_get_scsi_internal(lport);
lport            1120 drivers/scsi/libfc/fc_fcp.c static void fc_fcp_abort_io(struct fc_lport *lport)
lport            1122 drivers/scsi/libfc/fc_fcp.c 	fc_fcp_cleanup_each_cmd(lport, -1, -1, FC_HRD_ERROR);
lport            1133 drivers/scsi/libfc/fc_fcp.c static int fc_fcp_pkt_send(struct fc_lport *lport, struct fc_fcp_pkt *fsp)
lport            1135 drivers/scsi/libfc/fc_fcp.c 	struct fc_fcp_internal *si = fc_get_scsi_internal(lport);
lport            1149 drivers/scsi/libfc/fc_fcp.c 	rc = lport->tt.fcp_cmd_send(lport, fsp, fc_fcp_recv);
lport            1166 drivers/scsi/libfc/fc_fcp.c static int fc_fcp_cmd_send(struct fc_lport *lport, struct fc_fcp_pkt *fsp,
lport            1181 drivers/scsi/libfc/fc_fcp.c 	fp = fc_fcp_frame_alloc(lport, sizeof(fsp->cdb_cmd));
lport            1197 drivers/scsi/libfc/fc_fcp.c 	seq = fc_exch_seq_send(lport, fp, resp, fc_fcp_pkt_destroy, fsp, 0);
lport            1291 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport = fsp->lp;
lport            1293 drivers/scsi/libfc/fc_fcp.c 	if (lport->tt.fcp_cmd_send(lport, fsp, fc_tm_done)) {
lport            1312 drivers/scsi/libfc/fc_fcp.c static int fc_lun_reset(struct fc_lport *lport, struct fc_fcp_pkt *fsp,
lport            1347 drivers/scsi/libfc/fc_fcp.c 		FC_SCSI_DBG(lport, "lun reset failed\n");
lport            1355 drivers/scsi/libfc/fc_fcp.c 	FC_SCSI_DBG(lport, "lun reset to lun %u completed\n", lun);
lport            1356 drivers/scsi/libfc/fc_fcp.c 	fc_fcp_cleanup_each_cmd(lport, id, lun, FC_CMD_ABORTED);
lport            1405 drivers/scsi/libfc/fc_fcp.c static void fc_fcp_cleanup(struct fc_lport *lport)
lport            1407 drivers/scsi/libfc/fc_fcp.c 	fc_fcp_cleanup_each_cmd(lport, -1, -1, FC_ERROR);
lport            1461 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport;
lport            1466 drivers/scsi/libfc/fc_fcp.c 	lport = fsp->lp;
lport            1476 drivers/scsi/libfc/fc_fcp.c 	fp = fc_fcp_frame_alloc(lport, sizeof(struct fc_els_rec));
lport            1484 drivers/scsi/libfc/fc_fcp.c 	if (lport->tt.elsct_send(lport, rport->port_id, fp, ELS_REC,
lport            1486 drivers/scsi/libfc/fc_fcp.c 				 2 * lport->r_a_tov)) {
lport            1717 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport = fsp->lp;
lport            1731 drivers/scsi/libfc/fc_fcp.c 	fp = fc_fcp_frame_alloc(lport, sizeof(*srr));
lport            1747 drivers/scsi/libfc/fc_fcp.c 	seq = fc_exch_seq_send(lport, fp, fc_fcp_srr_resp,
lport            1844 drivers/scsi/libfc/fc_fcp.c static inline int fc_fcp_lport_queue_ready(struct fc_lport *lport)
lport            1847 drivers/scsi/libfc/fc_fcp.c 	return (lport->state == LPORT_ST_READY) &&
lport            1848 drivers/scsi/libfc/fc_fcp.c 		lport->link_up && !lport->qfull;
lport            1860 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport = shost_priv(shost);
lport            1884 drivers/scsi/libfc/fc_fcp.c 	if (!fc_fcp_lport_queue_ready(lport)) {
lport            1885 drivers/scsi/libfc/fc_fcp.c 		if (lport->qfull) {
lport            1886 drivers/scsi/libfc/fc_fcp.c 			if (fc_fcp_can_queue_ramp_down(lport))
lport            1887 drivers/scsi/libfc/fc_fcp.c 				shost_printk(KERN_ERR, lport->host,
lport            1890 drivers/scsi/libfc/fc_fcp.c 					     lport->host->can_queue);
lport            1896 drivers/scsi/libfc/fc_fcp.c 	fsp = fc_fcp_pkt_alloc(lport, GFP_ATOMIC);
lport            1917 drivers/scsi/libfc/fc_fcp.c 	stats = per_cpu_ptr(lport->stats, get_cpu());
lport            1937 drivers/scsi/libfc/fc_fcp.c 	rval = fc_fcp_pkt_send(lport, fsp);
lport            1959 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport;
lport            1972 drivers/scsi/libfc/fc_fcp.c 	lport = fsp->lp;
lport            1973 drivers/scsi/libfc/fc_fcp.c 	si = fc_get_scsi_internal(lport);
lport            1980 drivers/scsi/libfc/fc_fcp.c 		fc_fcp_can_queue_ramp_up(lport);
lport            2080 drivers/scsi/libfc/fc_fcp.c 	if (lport->state != LPORT_ST_READY && fsp->status_code != FC_COMPLETE)
lport            2103 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport;
lport            2113 drivers/scsi/libfc/fc_fcp.c 	lport = shost_priv(sc_cmd->device->host);
lport            2114 drivers/scsi/libfc/fc_fcp.c 	if (lport->state != LPORT_ST_READY)
lport            2116 drivers/scsi/libfc/fc_fcp.c 	else if (!lport->link_up)
lport            2119 drivers/scsi/libfc/fc_fcp.c 	si = fc_get_scsi_internal(lport);
lport            2155 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport;
lport            2165 drivers/scsi/libfc/fc_fcp.c 	lport = shost_priv(sc_cmd->device->host);
lport            2167 drivers/scsi/libfc/fc_fcp.c 	if (lport->state != LPORT_ST_READY)
lport            2170 drivers/scsi/libfc/fc_fcp.c 	FC_SCSI_DBG(lport, "Resetting rport (%6.6x)\n", rport->port_id);
lport            2172 drivers/scsi/libfc/fc_fcp.c 	fsp = fc_fcp_pkt_alloc(lport, GFP_NOIO);
lport            2188 drivers/scsi/libfc/fc_fcp.c 	rc = fc_lun_reset(lport, fsp, scmd_id(sc_cmd), sc_cmd->device->lun);
lport            2204 drivers/scsi/libfc/fc_fcp.c 	struct fc_lport *lport = shost_priv(shost);
lport            2207 drivers/scsi/libfc/fc_fcp.c 	FC_SCSI_DBG(lport, "Resetting host\n");
lport            2209 drivers/scsi/libfc/fc_fcp.c 	fc_lport_reset(lport);
lport            2211 drivers/scsi/libfc/fc_fcp.c 	while (!fc_fcp_lport_queue_ready(lport) && time_before(jiffies,
lport            2215 drivers/scsi/libfc/fc_fcp.c 	if (fc_fcp_lport_queue_ready(lport)) {
lport            2217 drivers/scsi/libfc/fc_fcp.c 			     "on port (%6.6x)\n", lport->port_id);
lport            2222 drivers/scsi/libfc/fc_fcp.c 			     lport->port_id);
lport            2251 drivers/scsi/libfc/fc_fcp.c void fc_fcp_destroy(struct fc_lport *lport)
lport            2253 drivers/scsi/libfc/fc_fcp.c 	struct fc_fcp_internal *si = fc_get_scsi_internal(lport);
lport            2257 drivers/scsi/libfc/fc_fcp.c 		       "port (%6.6x)\n", lport->port_id);
lport            2261 drivers/scsi/libfc/fc_fcp.c 	lport->scsi_priv = NULL;
lport            2290 drivers/scsi/libfc/fc_fcp.c int fc_fcp_init(struct fc_lport *lport)
lport            2295 drivers/scsi/libfc/fc_fcp.c 	if (!lport->tt.fcp_cmd_send)
lport            2296 drivers/scsi/libfc/fc_fcp.c 		lport->tt.fcp_cmd_send = fc_fcp_cmd_send;
lport            2298 drivers/scsi/libfc/fc_fcp.c 	if (!lport->tt.fcp_cleanup)
lport            2299 drivers/scsi/libfc/fc_fcp.c 		lport->tt.fcp_cleanup = fc_fcp_cleanup;
lport            2301 drivers/scsi/libfc/fc_fcp.c 	if (!lport->tt.fcp_abort_io)
lport            2302 drivers/scsi/libfc/fc_fcp.c 		lport->tt.fcp_abort_io = fc_fcp_abort_io;
lport            2307 drivers/scsi/libfc/fc_fcp.c 	lport->scsi_priv = si;
lport            2308 drivers/scsi/libfc/fc_fcp.c 	si->max_can_queue = lport->host->can_queue;
lport             229 drivers/scsi/libfc/fc_libfc.c void fc_fc4_conf_lport_params(struct fc_lport *lport, enum fc_fh_type type)
lport             233 drivers/scsi/libfc/fc_libfc.c 	BUG_ON(!lport);
lport             237 drivers/scsi/libfc/fc_libfc.c 			lport->service_params |= FCP_SPPF_TARG_FCN;
lport             243 drivers/scsi/libfc/fc_libfc.c 	struct fc_lport *lport;
lport             246 drivers/scsi/libfc/fc_libfc.c 	list_for_each_entry(lport, &fc_local_ports, lport_list)
lport             247 drivers/scsi/libfc/fc_libfc.c 		notify(lport, arg);
lport             299 drivers/scsi/libfc/fc_libfc.c void fc_fc4_add_lport(struct fc_lport *lport)
lport             302 drivers/scsi/libfc/fc_libfc.c 	list_add_tail(&lport->lport_list, &fc_local_ports);
lport             304 drivers/scsi/libfc/fc_libfc.c 				     FC_LPORT_EV_ADD, lport);
lport             312 drivers/scsi/libfc/fc_libfc.c void fc_fc4_del_lport(struct fc_lport *lport)
lport             315 drivers/scsi/libfc/fc_libfc.c 	list_del(&lport->lport_list);
lport             317 drivers/scsi/libfc/fc_libfc.c 				     FC_LPORT_EV_DEL, lport);
lport              34 drivers/scsi/libfc/fc_libfc.h #define FC_LPORT_DBG(lport, fmt, args...)				\
lport              37 drivers/scsi/libfc/fc_libfc.h 				 (lport)->host->host_no,		\
lport              38 drivers/scsi/libfc/fc_libfc.h 				 (lport)->port_id, ##args))
lport              46 drivers/scsi/libfc/fc_libfc.h #define FC_RPORT_ID_DBG(lport, port_id, fmt, args...)			\
lport              49 drivers/scsi/libfc/fc_libfc.h 				 (lport)->host->host_no,		\
lport              79 drivers/scsi/libfc/fc_libfc.h #define FC_SCSI_DBG(lport, fmt, args...)				\
lport              82 drivers/scsi/libfc/fc_libfc.h 				 (lport)->host->host_no, ##args))
lport             107 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_fdmi(struct fc_lport *lport);
lport             141 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport;
lport             153 drivers/scsi/libfc/fc_lport.c static int fc_frame_drop(struct fc_lport *lport, struct fc_frame *fp)
lport             168 drivers/scsi/libfc/fc_lport.c static void fc_lport_rport_callback(struct fc_lport *lport,
lport             172 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Received a %d event for port (%6.6x)\n", event,
lport             175 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             178 drivers/scsi/libfc/fc_lport.c 		if (lport->state == LPORT_ST_DNS) {
lport             179 drivers/scsi/libfc/fc_lport.c 			lport->dns_rdata = rdata;
lport             180 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_ns(lport, LPORT_ST_RNN_ID);
lport             181 drivers/scsi/libfc/fc_lport.c 		} else if (lport->state == LPORT_ST_FDMI) {
lport             182 drivers/scsi/libfc/fc_lport.c 			lport->ms_rdata = rdata;
lport             183 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_ms(lport, LPORT_ST_DHBA);
lport             185 drivers/scsi/libfc/fc_lport.c 			FC_LPORT_DBG(lport, "Received an READY event "
lport             190 drivers/scsi/libfc/fc_lport.c 				     lport->state);
lport             198 drivers/scsi/libfc/fc_lport.c 			lport->dns_rdata = NULL;
lport             200 drivers/scsi/libfc/fc_lport.c 			lport->ms_rdata = NULL;
lport             205 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             212 drivers/scsi/libfc/fc_lport.c static const char *fc_lport_state(struct fc_lport *lport)
lport             216 drivers/scsi/libfc/fc_lport.c 	cp = fc_lport_state_names[lport->state];
lport             229 drivers/scsi/libfc/fc_lport.c static void fc_lport_ptp_setup(struct fc_lport *lport,
lport             233 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             235 drivers/scsi/libfc/fc_lport.c 	if (lport->ptp_rdata) {
lport             236 drivers/scsi/libfc/fc_lport.c 		fc_rport_logoff(lport->ptp_rdata);
lport             237 drivers/scsi/libfc/fc_lport.c 		kref_put(&lport->ptp_rdata->kref, fc_rport_destroy);
lport             239 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->disc.disc_mutex);
lport             240 drivers/scsi/libfc/fc_lport.c 	lport->ptp_rdata = fc_rport_create(lport, remote_fid);
lport             241 drivers/scsi/libfc/fc_lport.c 	kref_get(&lport->ptp_rdata->kref);
lport             242 drivers/scsi/libfc/fc_lport.c 	lport->ptp_rdata->ids.port_name = remote_wwpn;
lport             243 drivers/scsi/libfc/fc_lport.c 	lport->ptp_rdata->ids.node_name = remote_wwnn;
lport             244 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->disc.disc_mutex);
lport             246 drivers/scsi/libfc/fc_lport.c 	fc_rport_login(lport->ptp_rdata);
lport             248 drivers/scsi/libfc/fc_lport.c 	fc_lport_enter_ready(lport);
lport             257 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport = shost_priv(shost);
lport             259 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             260 drivers/scsi/libfc/fc_lport.c 	if (!lport->link_up)
lport             263 drivers/scsi/libfc/fc_lport.c 		switch (lport->state) {
lport             270 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             280 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport = shost_priv(shost);
lport             282 drivers/scsi/libfc/fc_lport.c 	fc_host_speed(shost) = lport->link_speed;
lport             293 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport = shost_priv(shost);
lport             298 drivers/scsi/libfc/fc_lport.c 	fc_stats = &lport->host_stats;
lport             301 drivers/scsi/libfc/fc_lport.c 	fc_stats->seconds_since_last_reset = (jiffies - lport->boot_time) / HZ;
lport             306 drivers/scsi/libfc/fc_lport.c 		stats = per_cpu_ptr(lport->stats, cpu);
lport             334 drivers/scsi/libfc/fc_lport.c 	fc_exch_update_stats(lport);
lport             346 drivers/scsi/libfc/fc_lport.c static void fc_lport_flogi_fill(struct fc_lport *lport,
lport             355 drivers/scsi/libfc/fc_lport.c 	put_unaligned_be64(lport->wwpn, &flogi->fl_wwpn);
lport             356 drivers/scsi/libfc/fc_lport.c 	put_unaligned_be64(lport->wwnn, &flogi->fl_wwnn);
lport             361 drivers/scsi/libfc/fc_lport.c 	sp->sp_bb_data = htons((u16) lport->mfs);
lport             368 drivers/scsi/libfc/fc_lport.c 		sp->sp_e_d_tov = htonl(lport->e_d_tov);
lport             370 drivers/scsi/libfc/fc_lport.c 		cp->cp_rdfs = htons((u16) lport->mfs);
lport             381 drivers/scsi/libfc/fc_lport.c static void fc_lport_add_fc4_type(struct fc_lport *lport, enum fc_fh_type type)
lport             385 drivers/scsi/libfc/fc_lport.c 	mp = &lport->fcts.ff_type_map[type / FC_NS_BPW];
lport             394 drivers/scsi/libfc/fc_lport.c static void fc_lport_recv_rlir_req(struct fc_lport *lport, struct fc_frame *fp)
lport             396 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             398 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Received RLIR request while in state %s\n",
lport             399 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport             410 drivers/scsi/libfc/fc_lport.c static void fc_lport_recv_echo_req(struct fc_lport *lport,
lport             418 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             420 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Received ECHO request while in state %s\n",
lport             421 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport             429 drivers/scsi/libfc/fc_lport.c 	fp = fc_frame_alloc(lport, len);
lport             435 drivers/scsi/libfc/fc_lport.c 		lport->tt.frame_send(lport, fp);
lport             445 drivers/scsi/libfc/fc_lport.c static void fc_lport_recv_rnid_req(struct fc_lport *lport,
lport             459 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             461 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Received RNID request while in state %s\n",
lport             462 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport             473 drivers/scsi/libfc/fc_lport.c 		    ntohl(lport->rnid_gen.rnid_atype) == 0) {
lport             477 drivers/scsi/libfc/fc_lport.c 		fp = fc_frame_alloc(lport, len);
lport             484 drivers/scsi/libfc/fc_lport.c 			rp->cid.rnid_wwpn = htonll(lport->wwpn);
lport             485 drivers/scsi/libfc/fc_lport.c 			rp->cid.rnid_wwnn = htonll(lport->wwnn);
lport             488 drivers/scsi/libfc/fc_lport.c 				memcpy(&rp->gen, &lport->rnid_gen,
lport             492 drivers/scsi/libfc/fc_lport.c 			lport->tt.frame_send(lport, fp);
lport             503 drivers/scsi/libfc/fc_lport.c static void fc_lport_recv_logo_req(struct fc_lport *lport, struct fc_frame *fp)
lport             505 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             508 drivers/scsi/libfc/fc_lport.c 	fc_lport_enter_reset(lport);
lport             519 drivers/scsi/libfc/fc_lport.c int fc_fabric_login(struct fc_lport *lport)
lport             523 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             524 drivers/scsi/libfc/fc_lport.c 	if (lport->state == LPORT_ST_DISABLED ||
lport             525 drivers/scsi/libfc/fc_lport.c 	    lport->state == LPORT_ST_LOGO) {
lport             526 drivers/scsi/libfc/fc_lport.c 		fc_lport_state_enter(lport, LPORT_ST_RESET);
lport             527 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_reset(lport);
lport             530 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             540 drivers/scsi/libfc/fc_lport.c void __fc_linkup(struct fc_lport *lport)
lport             542 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             544 drivers/scsi/libfc/fc_lport.c 	if (!lport->link_up) {
lport             545 drivers/scsi/libfc/fc_lport.c 		lport->link_up = 1;
lport             547 drivers/scsi/libfc/fc_lport.c 		if (lport->state == LPORT_ST_RESET)
lport             548 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_flogi(lport);
lport             556 drivers/scsi/libfc/fc_lport.c void fc_linkup(struct fc_lport *lport)
lport             559 drivers/scsi/libfc/fc_lport.c 	       lport->host->host_no, lport->port_id);
lport             561 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             562 drivers/scsi/libfc/fc_lport.c 	__fc_linkup(lport);
lport             563 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             571 drivers/scsi/libfc/fc_lport.c void __fc_linkdown(struct fc_lport *lport)
lport             573 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             575 drivers/scsi/libfc/fc_lport.c 	if (lport->link_up) {
lport             576 drivers/scsi/libfc/fc_lport.c 		lport->link_up = 0;
lport             577 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_reset(lport);
lport             578 drivers/scsi/libfc/fc_lport.c 		lport->tt.fcp_cleanup(lport);
lport             586 drivers/scsi/libfc/fc_lport.c void fc_linkdown(struct fc_lport *lport)
lport             589 drivers/scsi/libfc/fc_lport.c 	       lport->host->host_no, lport->port_id);
lport             591 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             592 drivers/scsi/libfc/fc_lport.c 	__fc_linkdown(lport);
lport             593 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             604 drivers/scsi/libfc/fc_lport.c int fc_fabric_logoff(struct fc_lport *lport)
lport             606 drivers/scsi/libfc/fc_lport.c 	lport->tt.disc_stop_final(lport);
lport             607 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             608 drivers/scsi/libfc/fc_lport.c 	if (lport->dns_rdata)
lport             609 drivers/scsi/libfc/fc_lport.c 		fc_rport_logoff(lport->dns_rdata);
lport             610 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             612 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             613 drivers/scsi/libfc/fc_lport.c 	fc_lport_enter_logo(lport);
lport             614 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             615 drivers/scsi/libfc/fc_lport.c 	cancel_delayed_work_sync(&lport->retry_work);
lport             630 drivers/scsi/libfc/fc_lport.c int fc_lport_destroy(struct fc_lport *lport)
lport             632 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             633 drivers/scsi/libfc/fc_lport.c 	lport->state = LPORT_ST_DISABLED;
lport             634 drivers/scsi/libfc/fc_lport.c 	lport->link_up = 0;
lport             635 drivers/scsi/libfc/fc_lport.c 	lport->tt.frame_send = fc_frame_drop;
lport             636 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             638 drivers/scsi/libfc/fc_lport.c 	lport->tt.fcp_abort_io(lport);
lport             639 drivers/scsi/libfc/fc_lport.c 	lport->tt.disc_stop_final(lport);
lport             640 drivers/scsi/libfc/fc_lport.c 	lport->tt.exch_mgr_reset(lport, 0, 0);
lport             641 drivers/scsi/libfc/fc_lport.c 	cancel_delayed_work_sync(&lport->retry_work);
lport             642 drivers/scsi/libfc/fc_lport.c 	fc_fc4_del_lport(lport);
lport             652 drivers/scsi/libfc/fc_lport.c int fc_set_mfs(struct fc_lport *lport, u32 mfs)
lport             657 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             659 drivers/scsi/libfc/fc_lport.c 	old_mfs = lport->mfs;
lport             666 drivers/scsi/libfc/fc_lport.c 		lport->mfs = mfs;
lport             671 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_reset(lport);
lport             673 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             684 drivers/scsi/libfc/fc_lport.c static void fc_lport_disc_callback(struct fc_lport *lport,
lport             689 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "Discovery succeeded\n");
lport             694 drivers/scsi/libfc/fc_lport.c 		       lport->host->host_no, lport->port_id);
lport             695 drivers/scsi/libfc/fc_lport.c 		mutex_lock(&lport->lp_mutex);
lport             696 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_reset(lport);
lport             697 drivers/scsi/libfc/fc_lport.c 		mutex_unlock(&lport->lp_mutex);
lport             709 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_ready(struct fc_lport *lport)
lport             711 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             713 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Entered READY from state %s\n",
lport             714 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport             716 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, LPORT_ST_READY);
lport             717 drivers/scsi/libfc/fc_lport.c 	if (lport->vport)
lport             718 drivers/scsi/libfc/fc_lport.c 		fc_vport_set_state(lport->vport, FC_VPORT_ACTIVE);
lport             719 drivers/scsi/libfc/fc_lport.c 	fc_vports_linkchange(lport);
lport             721 drivers/scsi/libfc/fc_lport.c 	if (!lport->ptp_rdata)
lport             722 drivers/scsi/libfc/fc_lport.c 		lport->tt.disc_start(fc_lport_disc_callback, lport);
lport             731 drivers/scsi/libfc/fc_lport.c static void fc_lport_set_port_id(struct fc_lport *lport, u32 port_id,
lport             734 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             738 drivers/scsi/libfc/fc_lport.c 		       lport->host->host_no, port_id);
lport             740 drivers/scsi/libfc/fc_lport.c 	lport->port_id = port_id;
lport             743 drivers/scsi/libfc/fc_lport.c 	fc_host_port_id(lport->host) = port_id;
lport             745 drivers/scsi/libfc/fc_lport.c 	if (lport->tt.lport_set_port_id)
lport             746 drivers/scsi/libfc/fc_lport.c 		lport->tt.lport_set_port_id(lport, port_id, fp);
lport             758 drivers/scsi/libfc/fc_lport.c void fc_lport_set_local_id(struct fc_lport *lport, u32 port_id)
lport             760 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             762 drivers/scsi/libfc/fc_lport.c 	fc_lport_set_port_id(lport, port_id, NULL);
lport             764 drivers/scsi/libfc/fc_lport.c 	switch (lport->state) {
lport             768 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_ready(lport);
lport             773 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             786 drivers/scsi/libfc/fc_lport.c static void fc_lport_recv_flogi_req(struct fc_lport *lport,
lport             797 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             799 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Received FLOGI request while in state %s\n",
lport             800 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport             807 drivers/scsi/libfc/fc_lport.c 	if (remote_wwpn == lport->wwpn) {
lport             810 drivers/scsi/libfc/fc_lport.c 		       lport->host->host_no, remote_wwpn);
lport             813 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "FLOGI from port WWPN %16.16llx\n", remote_wwpn);
lport             821 drivers/scsi/libfc/fc_lport.c 	if (remote_wwpn < lport->wwpn) {
lport             829 drivers/scsi/libfc/fc_lport.c 	fc_lport_set_port_id(lport, local_fid, rx_fp);
lport             831 drivers/scsi/libfc/fc_lport.c 	fp = fc_frame_alloc(lport, sizeof(*flp));
lport             834 drivers/scsi/libfc/fc_lport.c 		fc_lport_flogi_fill(lport, new_flp, ELS_FLOGI);
lport             845 drivers/scsi/libfc/fc_lport.c 		lport->tt.frame_send(lport, fp);
lport             848 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport             850 drivers/scsi/libfc/fc_lport.c 	fc_lport_ptp_setup(lport, remote_fid, remote_wwpn,
lport             867 drivers/scsi/libfc/fc_lport.c static void fc_lport_recv_els_req(struct fc_lport *lport,
lport             870 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             877 drivers/scsi/libfc/fc_lport.c 	if (!lport->link_up)
lport             885 drivers/scsi/libfc/fc_lport.c 			if (!lport->point_to_multipoint)
lport             886 drivers/scsi/libfc/fc_lport.c 				fc_lport_recv_flogi_req(lport, fp);
lport             888 drivers/scsi/libfc/fc_lport.c 				fc_rport_recv_req(lport, fp);
lport             892 drivers/scsi/libfc/fc_lport.c 				fc_lport_recv_logo_req(lport, fp);
lport             894 drivers/scsi/libfc/fc_lport.c 				fc_rport_recv_req(lport, fp);
lport             897 drivers/scsi/libfc/fc_lport.c 			lport->tt.disc_recv_req(lport, fp);
lport             900 drivers/scsi/libfc/fc_lport.c 			fc_lport_recv_echo_req(lport, fp);
lport             903 drivers/scsi/libfc/fc_lport.c 			fc_lport_recv_rlir_req(lport, fp);
lport             906 drivers/scsi/libfc/fc_lport.c 			fc_lport_recv_rnid_req(lport, fp);
lport             909 drivers/scsi/libfc/fc_lport.c 			fc_rport_recv_req(lport, fp);
lport             913 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             936 drivers/scsi/libfc/fc_lport.c void fc_lport_recv(struct fc_lport *lport, struct fc_frame *fp)
lport             957 drivers/scsi/libfc/fc_lport.c 	prov->recv(lport, fp);
lport             962 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "dropping unexpected frame type %x\n", fh->fh_type);
lport             976 drivers/scsi/libfc/fc_lport.c int fc_lport_reset(struct fc_lport *lport)
lport             978 drivers/scsi/libfc/fc_lport.c 	cancel_delayed_work_sync(&lport->retry_work);
lport             979 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport             980 drivers/scsi/libfc/fc_lport.c 	fc_lport_enter_reset(lport);
lport             981 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport             990 drivers/scsi/libfc/fc_lport.c static void fc_lport_reset_locked(struct fc_lport *lport)
lport             992 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport             994 drivers/scsi/libfc/fc_lport.c 	if (lport->dns_rdata) {
lport             995 drivers/scsi/libfc/fc_lport.c 		fc_rport_logoff(lport->dns_rdata);
lport             996 drivers/scsi/libfc/fc_lport.c 		lport->dns_rdata = NULL;
lport             999 drivers/scsi/libfc/fc_lport.c 	if (lport->ptp_rdata) {
lport            1000 drivers/scsi/libfc/fc_lport.c 		fc_rport_logoff(lport->ptp_rdata);
lport            1001 drivers/scsi/libfc/fc_lport.c 		kref_put(&lport->ptp_rdata->kref, fc_rport_destroy);
lport            1002 drivers/scsi/libfc/fc_lport.c 		lport->ptp_rdata = NULL;
lport            1005 drivers/scsi/libfc/fc_lport.c 	lport->tt.disc_stop(lport);
lport            1007 drivers/scsi/libfc/fc_lport.c 	lport->tt.exch_mgr_reset(lport, 0, 0);
lport            1008 drivers/scsi/libfc/fc_lport.c 	fc_host_fabric_name(lport->host) = 0;
lport            1010 drivers/scsi/libfc/fc_lport.c 	if (lport->port_id && (!lport->point_to_multipoint || !lport->link_up))
lport            1011 drivers/scsi/libfc/fc_lport.c 		fc_lport_set_port_id(lport, 0, NULL);
lport            1018 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_reset(struct fc_lport *lport)
lport            1020 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1022 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Entered RESET state from %s state\n",
lport            1023 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport            1025 drivers/scsi/libfc/fc_lport.c 	if (lport->state == LPORT_ST_DISABLED || lport->state == LPORT_ST_LOGO)
lport            1028 drivers/scsi/libfc/fc_lport.c 	if (lport->vport) {
lport            1029 drivers/scsi/libfc/fc_lport.c 		if (lport->link_up)
lport            1030 drivers/scsi/libfc/fc_lport.c 			fc_vport_set_state(lport->vport, FC_VPORT_INITIALIZING);
lport            1032 drivers/scsi/libfc/fc_lport.c 			fc_vport_set_state(lport->vport, FC_VPORT_LINKDOWN);
lport            1034 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, LPORT_ST_RESET);
lport            1035 drivers/scsi/libfc/fc_lport.c 	fc_host_post_event(lport->host, fc_get_event_number(),
lport            1037 drivers/scsi/libfc/fc_lport.c 	fc_vports_linkchange(lport);
lport            1038 drivers/scsi/libfc/fc_lport.c 	fc_lport_reset_locked(lport);
lport            1039 drivers/scsi/libfc/fc_lport.c 	if (lport->link_up)
lport            1040 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_flogi(lport);
lport            1047 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_disabled(struct fc_lport *lport)
lport            1049 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1051 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Entered disabled state from %s state\n",
lport            1052 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport            1054 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, LPORT_ST_DISABLED);
lport            1055 drivers/scsi/libfc/fc_lport.c 	fc_vports_linkchange(lport);
lport            1056 drivers/scsi/libfc/fc_lport.c 	fc_lport_reset_locked(lport);
lport            1068 drivers/scsi/libfc/fc_lport.c static void fc_lport_error(struct fc_lport *lport, struct fc_frame *fp)
lport            1071 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Error %ld in state %s, retries %d\n",
lport            1072 drivers/scsi/libfc/fc_lport.c 		     IS_ERR(fp) ? -PTR_ERR(fp) : 0, fc_lport_state(lport),
lport            1073 drivers/scsi/libfc/fc_lport.c 		     lport->retry_count);
lport            1083 drivers/scsi/libfc/fc_lport.c 	if (lport->retry_count < lport->max_retry_count) {
lport            1084 drivers/scsi/libfc/fc_lport.c 		lport->retry_count++;
lport            1088 drivers/scsi/libfc/fc_lport.c 			delay =	msecs_to_jiffies(lport->e_d_tov);
lport            1090 drivers/scsi/libfc/fc_lport.c 		schedule_delayed_work(&lport->retry_work, delay);
lport            1092 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_reset(lport);
lport            1109 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport = lp_arg;
lport            1113 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Received a ns %s\n", fc_els_resp_type(fp));
lport            1118 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport            1120 drivers/scsi/libfc/fc_lport.c 	if (lport->state < LPORT_ST_RNN_ID || lport->state > LPORT_ST_RFF_ID) {
lport            1121 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "Received a name server response, "
lport            1122 drivers/scsi/libfc/fc_lport.c 			     "but in state %s\n", fc_lport_state(lport));
lport            1129 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1140 drivers/scsi/libfc/fc_lport.c 		switch (lport->state) {
lport            1142 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_ns(lport, LPORT_ST_RSNN_NN);
lport            1145 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_ns(lport, LPORT_ST_RSPN_ID);
lport            1148 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_ns(lport, LPORT_ST_RFT_ID);
lport            1151 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_ns(lport, LPORT_ST_RFF_ID);
lport            1154 drivers/scsi/libfc/fc_lport.c 			if (lport->fdmi_enabled)
lport            1155 drivers/scsi/libfc/fc_lport.c 				fc_lport_enter_fdmi(lport);
lport            1157 drivers/scsi/libfc/fc_lport.c 				fc_lport_enter_scr(lport);
lport            1164 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1168 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport            1185 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport = lp_arg;
lport            1189 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Received a ms %s\n", fc_els_resp_type(fp));
lport            1194 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport            1196 drivers/scsi/libfc/fc_lport.c 	if (lport->state < LPORT_ST_RHBA || lport->state > LPORT_ST_DPRT) {
lport            1197 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "Received a management server response, "
lport            1198 drivers/scsi/libfc/fc_lport.c 			     "but in state %s\n", fc_lport_state(lport));
lport            1205 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1215 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "Received a management server response, "
lport            1220 drivers/scsi/libfc/fc_lport.c 		switch (lport->state) {
lport            1223 drivers/scsi/libfc/fc_lport.c 				fc_lport_enter_ms(lport, LPORT_ST_RPA);
lport            1225 drivers/scsi/libfc/fc_lport.c 				fc_lport_enter_scr(lport);
lport            1228 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_scr(lport);
lport            1231 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_ms(lport, LPORT_ST_RHBA);
lport            1234 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_ms(lport, LPORT_ST_DPRT);
lport            1242 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1247 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport            1263 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport = lp_arg;
lport            1266 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Received a SCR %s\n", fc_els_resp_type(fp));
lport            1271 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport            1273 drivers/scsi/libfc/fc_lport.c 	if (lport->state != LPORT_ST_SCR) {
lport            1274 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "Received a SCR response, but in state "
lport            1275 drivers/scsi/libfc/fc_lport.c 			     "%s\n", fc_lport_state(lport));
lport            1282 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1288 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_ready(lport);
lport            1290 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1295 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport            1302 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_scr(struct fc_lport *lport)
lport            1306 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1308 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Entered SCR state from %s state\n",
lport            1309 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport            1311 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, LPORT_ST_SCR);
lport            1313 drivers/scsi/libfc/fc_lport.c 	fp = fc_frame_alloc(lport, sizeof(struct fc_els_scr));
lport            1315 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1319 drivers/scsi/libfc/fc_lport.c 	if (!lport->tt.elsct_send(lport, FC_FID_FCTRL, fp, ELS_SCR,
lport            1320 drivers/scsi/libfc/fc_lport.c 				  fc_lport_scr_resp, lport,
lport            1321 drivers/scsi/libfc/fc_lport.c 				  2 * lport->r_a_tov))
lport            1322 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, NULL);
lport            1329 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_ns(struct fc_lport *lport, enum fc_lport_state state)
lport            1336 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1338 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Entered %s state from %s state\n",
lport            1340 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport            1342 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, state);
lport            1350 drivers/scsi/libfc/fc_lport.c 		len = strnlen(fc_host_symbolic_name(lport->host), 255);
lport            1353 drivers/scsi/libfc/fc_lport.c 			return fc_lport_enter_ns(lport, LPORT_ST_RFT_ID);
lport            1358 drivers/scsi/libfc/fc_lport.c 		len = strnlen(fc_host_symbolic_name(lport->host), 255);
lport            1361 drivers/scsi/libfc/fc_lport.c 			return fc_lport_enter_ns(lport, LPORT_ST_RFT_ID);
lport            1374 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, NULL);
lport            1378 drivers/scsi/libfc/fc_lport.c 	fp = fc_frame_alloc(lport, size);
lport            1380 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1384 drivers/scsi/libfc/fc_lport.c 	if (!lport->tt.elsct_send(lport, FC_FID_DIR_SERV, fp, cmd,
lport            1386 drivers/scsi/libfc/fc_lport.c 				  lport, 3 * lport->r_a_tov))
lport            1387 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1398 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_dns(struct fc_lport *lport)
lport            1402 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1404 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Entered DNS state from %s state\n",
lport            1405 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport            1407 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, LPORT_ST_DNS);
lport            1409 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->disc.disc_mutex);
lport            1410 drivers/scsi/libfc/fc_lport.c 	rdata = fc_rport_create(lport, FC_FID_DIR_SERV);
lport            1411 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->disc.disc_mutex);
lport            1420 drivers/scsi/libfc/fc_lport.c 	fc_lport_error(lport, NULL);
lport            1427 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_ms(struct fc_lport *lport, enum fc_lport_state state)
lport            1435 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1437 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Entered %s state from %s state\n",
lport            1439 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport            1441 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, state);
lport            1491 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, NULL);
lport            1495 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Cmd=0x%x Len %d size %d\n",
lport            1497 drivers/scsi/libfc/fc_lport.c 	fp = fc_frame_alloc(lport, size);
lport            1499 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1503 drivers/scsi/libfc/fc_lport.c 	if (!lport->tt.elsct_send(lport, FC_FID_MGMT_SERV, fp, cmd,
lport            1505 drivers/scsi/libfc/fc_lport.c 				  lport, 3 * lport->r_a_tov))
lport            1506 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1513 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_fdmi(struct fc_lport *lport)
lport            1517 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1519 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Entered FDMI state from %s state\n",
lport            1520 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport            1522 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, LPORT_ST_FDMI);
lport            1524 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->disc.disc_mutex);
lport            1525 drivers/scsi/libfc/fc_lport.c 	rdata = fc_rport_create(lport, FC_FID_MGMT_SERV);
lport            1526 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->disc.disc_mutex);
lport            1535 drivers/scsi/libfc/fc_lport.c 	fc_lport_error(lport, NULL);
lport            1544 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport =
lport            1548 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport            1550 drivers/scsi/libfc/fc_lport.c 	switch (lport->state) {
lport            1558 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_flogi(lport);
lport            1561 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_dns(lport);
lport            1568 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_ns(lport, lport->state);
lport            1571 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_fdmi(lport);
lport            1577 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "Skipping lport state %s to SCR\n",
lport            1578 drivers/scsi/libfc/fc_lport.c 			     fc_lport_state(lport));
lport            1581 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_scr(lport);
lport            1584 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_logo(lport);
lport            1588 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport            1604 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport = lp_arg;
lport            1607 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Received a LOGO %s\n", fc_els_resp_type(fp));
lport            1612 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport            1614 drivers/scsi/libfc/fc_lport.c 	if (lport->state != LPORT_ST_LOGO) {
lport            1615 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "Received a LOGO response, but in state "
lport            1616 drivers/scsi/libfc/fc_lport.c 			     "%s\n", fc_lport_state(lport));
lport            1623 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1629 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_disabled(lport);
lport            1631 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1636 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport            1644 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_logo(struct fc_lport *lport)
lport            1649 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1651 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Entered LOGO state from %s state\n",
lport            1652 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport            1654 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, LPORT_ST_LOGO);
lport            1655 drivers/scsi/libfc/fc_lport.c 	fc_vports_linkchange(lport);
lport            1657 drivers/scsi/libfc/fc_lport.c 	fp = fc_frame_alloc(lport, sizeof(*logo));
lport            1659 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1663 drivers/scsi/libfc/fc_lport.c 	if (!lport->tt.elsct_send(lport, FC_FID_FLOGI, fp, ELS_LOGO,
lport            1664 drivers/scsi/libfc/fc_lport.c 				  fc_lport_logo_resp, lport,
lport            1665 drivers/scsi/libfc/fc_lport.c 				  2 * lport->r_a_tov))
lport            1666 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, NULL);
lport            1682 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport = lp_arg;
lport            1691 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Received a FLOGI %s\n", fc_els_resp_type(fp));
lport            1696 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport            1698 drivers/scsi/libfc/fc_lport.c 	if (lport->state != LPORT_ST_FLOGI) {
lport            1699 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "Received a FLOGI response, but in state "
lport            1700 drivers/scsi/libfc/fc_lport.c 			     "%s\n", fc_lport_state(lport));
lport            1707 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1715 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "FLOGI not accepted or bad response\n");
lport            1716 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1722 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "FLOGI bad response\n");
lport            1723 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1731 drivers/scsi/libfc/fc_lport.c 		FC_LPORT_DBG(lport, "FLOGI bad mfs:%hu response, "
lport            1732 drivers/scsi/libfc/fc_lport.c 			     "lport->mfs:%hu\n", mfs, lport->mfs);
lport            1733 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, fp);
lport            1737 drivers/scsi/libfc/fc_lport.c 	if (mfs <= lport->mfs) {
lport            1738 drivers/scsi/libfc/fc_lport.c 		lport->mfs = mfs;
lport            1739 drivers/scsi/libfc/fc_lport.c 		fc_host_maxframe_size(lport->host) = mfs;
lport            1748 drivers/scsi/libfc/fc_lport.c 	lport->npiv_enabled = !!(csp_flags & FC_SP_FT_NPIV_ACC);
lport            1751 drivers/scsi/libfc/fc_lport.c 		if (e_d_tov > lport->e_d_tov)
lport            1752 drivers/scsi/libfc/fc_lport.c 			lport->e_d_tov = e_d_tov;
lport            1753 drivers/scsi/libfc/fc_lport.c 		lport->r_a_tov = 2 * lport->e_d_tov;
lport            1754 drivers/scsi/libfc/fc_lport.c 		fc_lport_set_port_id(lport, did, fp);
lport            1758 drivers/scsi/libfc/fc_lport.c 		       lport->host->host_no, did);
lport            1759 drivers/scsi/libfc/fc_lport.c 		fc_lport_ptp_setup(lport, fc_frame_sid(fp),
lport            1765 drivers/scsi/libfc/fc_lport.c 		if (e_d_tov > lport->e_d_tov)
lport            1766 drivers/scsi/libfc/fc_lport.c 			lport->e_d_tov = e_d_tov;
lport            1767 drivers/scsi/libfc/fc_lport.c 		if (r_a_tov > lport->r_a_tov)
lport            1768 drivers/scsi/libfc/fc_lport.c 			lport->r_a_tov = r_a_tov;
lport            1769 drivers/scsi/libfc/fc_lport.c 		fc_host_fabric_name(lport->host) =
lport            1771 drivers/scsi/libfc/fc_lport.c 		fc_lport_set_port_id(lport, did, fp);
lport            1772 drivers/scsi/libfc/fc_lport.c 		fc_lport_enter_dns(lport);
lport            1778 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport            1786 drivers/scsi/libfc/fc_lport.c static void fc_lport_enter_flogi(struct fc_lport *lport)
lport            1790 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1792 drivers/scsi/libfc/fc_lport.c 	FC_LPORT_DBG(lport, "Entered FLOGI state from %s state\n",
lport            1793 drivers/scsi/libfc/fc_lport.c 		     fc_lport_state(lport));
lport            1795 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, LPORT_ST_FLOGI);
lport            1797 drivers/scsi/libfc/fc_lport.c 	if (lport->point_to_multipoint) {
lport            1798 drivers/scsi/libfc/fc_lport.c 		if (lport->port_id)
lport            1799 drivers/scsi/libfc/fc_lport.c 			fc_lport_enter_ready(lport);
lport            1803 drivers/scsi/libfc/fc_lport.c 	fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
lport            1805 drivers/scsi/libfc/fc_lport.c 		return fc_lport_error(lport, fp);
lport            1807 drivers/scsi/libfc/fc_lport.c 	if (!lport->tt.elsct_send(lport, FC_FID_FLOGI, fp,
lport            1808 drivers/scsi/libfc/fc_lport.c 				  lport->vport ? ELS_FDISC : ELS_FLOGI,
lport            1809 drivers/scsi/libfc/fc_lport.c 				  fc_lport_flogi_resp, lport,
lport            1810 drivers/scsi/libfc/fc_lport.c 				  lport->vport ? 2 * lport->r_a_tov :
lport            1811 drivers/scsi/libfc/fc_lport.c 				  lport->e_d_tov))
lport            1812 drivers/scsi/libfc/fc_lport.c 		fc_lport_error(lport, NULL);
lport            1819 drivers/scsi/libfc/fc_lport.c int fc_lport_config(struct fc_lport *lport)
lport            1821 drivers/scsi/libfc/fc_lport.c 	INIT_DELAYED_WORK(&lport->retry_work, fc_lport_timeout);
lport            1822 drivers/scsi/libfc/fc_lport.c 	mutex_init(&lport->lp_mutex);
lport            1824 drivers/scsi/libfc/fc_lport.c 	fc_lport_state_enter(lport, LPORT_ST_DISABLED);
lport            1826 drivers/scsi/libfc/fc_lport.c 	fc_lport_add_fc4_type(lport, FC_TYPE_FCP);
lport            1827 drivers/scsi/libfc/fc_lport.c 	fc_lport_add_fc4_type(lport, FC_TYPE_CT);
lport            1828 drivers/scsi/libfc/fc_lport.c 	fc_fc4_conf_lport_params(lport, FC_TYPE_FCP);
lport            1838 drivers/scsi/libfc/fc_lport.c int fc_lport_init(struct fc_lport *lport)
lport            1840 drivers/scsi/libfc/fc_lport.c 	fc_host_port_type(lport->host) = FC_PORTTYPE_NPORT;
lport            1841 drivers/scsi/libfc/fc_lport.c 	fc_host_node_name(lport->host) = lport->wwnn;
lport            1842 drivers/scsi/libfc/fc_lport.c 	fc_host_port_name(lport->host) = lport->wwpn;
lport            1843 drivers/scsi/libfc/fc_lport.c 	fc_host_supported_classes(lport->host) = FC_COS_CLASS3;
lport            1844 drivers/scsi/libfc/fc_lport.c 	memset(fc_host_supported_fc4s(lport->host), 0,
lport            1845 drivers/scsi/libfc/fc_lport.c 	       sizeof(fc_host_supported_fc4s(lport->host)));
lport            1846 drivers/scsi/libfc/fc_lport.c 	fc_host_supported_fc4s(lport->host)[2] = 1;
lport            1847 drivers/scsi/libfc/fc_lport.c 	fc_host_supported_fc4s(lport->host)[7] = 1;
lport            1850 drivers/scsi/libfc/fc_lport.c 	memset(fc_host_active_fc4s(lport->host), 0,
lport            1851 drivers/scsi/libfc/fc_lport.c 	       sizeof(fc_host_active_fc4s(lport->host)));
lport            1852 drivers/scsi/libfc/fc_lport.c 	fc_host_active_fc4s(lport->host)[2] = 1;
lport            1853 drivers/scsi/libfc/fc_lport.c 	fc_host_active_fc4s(lport->host)[7] = 1;
lport            1854 drivers/scsi/libfc/fc_lport.c 	fc_host_maxframe_size(lport->host) = lport->mfs;
lport            1855 drivers/scsi/libfc/fc_lport.c 	fc_host_supported_speeds(lport->host) = 0;
lport            1856 drivers/scsi/libfc/fc_lport.c 	if (lport->link_supported_speeds & FC_PORTSPEED_1GBIT)
lport            1857 drivers/scsi/libfc/fc_lport.c 		fc_host_supported_speeds(lport->host) |= FC_PORTSPEED_1GBIT;
lport            1858 drivers/scsi/libfc/fc_lport.c 	if (lport->link_supported_speeds & FC_PORTSPEED_10GBIT)
lport            1859 drivers/scsi/libfc/fc_lport.c 		fc_host_supported_speeds(lport->host) |= FC_PORTSPEED_10GBIT;
lport            1860 drivers/scsi/libfc/fc_lport.c 	fc_fc4_add_lport(lport);
lport            1878 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport = info->lport;
lport            1893 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport            1927 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport            1937 drivers/scsi/libfc/fc_lport.c 				struct fc_lport *lport,
lport            1946 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1948 drivers/scsi/libfc/fc_lport.c 	fp = fc_frame_alloc(lport, job->request_payload.payload_len);
lport            1962 drivers/scsi/libfc/fc_lport.c 	hton24(fh->fh_s_id, lport->port_id);
lport            1976 drivers/scsi/libfc/fc_lport.c 	info->lport = lport;
lport            1981 drivers/scsi/libfc/fc_lport.c 	if (!fc_exch_seq_send(lport, fp, fc_lport_bsg_resp,
lport            1997 drivers/scsi/libfc/fc_lport.c 			       struct fc_lport *lport, u32 did, u32 tov)
lport            2005 drivers/scsi/libfc/fc_lport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            2007 drivers/scsi/libfc/fc_lport.c 	fp = fc_frame_alloc(lport, sizeof(struct fc_ct_hdr) +
lport            2022 drivers/scsi/libfc/fc_lport.c 	hton24(fh->fh_s_id, lport->port_id);
lport            2036 drivers/scsi/libfc/fc_lport.c 	info->lport = lport;
lport            2041 drivers/scsi/libfc/fc_lport.c 	if (!fc_exch_seq_send(lport, fp, fc_lport_bsg_resp,
lport            2059 drivers/scsi/libfc/fc_lport.c 	struct fc_lport *lport = shost_priv(shost);
lport            2067 drivers/scsi/libfc/fc_lport.c 	mutex_lock(&lport->lp_mutex);
lport            2076 drivers/scsi/libfc/fc_lport.c 		rc = fc_lport_els_request(job, lport, rport->port_id,
lport            2086 drivers/scsi/libfc/fc_lport.c 		rc = fc_lport_ct_request(job, lport, rport->port_id,
lport            2093 drivers/scsi/libfc/fc_lport.c 			rdata = lport->dns_rdata;
lport            2098 drivers/scsi/libfc/fc_lport.c 			rdata = fc_rport_lookup(lport, did);
lport            2105 drivers/scsi/libfc/fc_lport.c 		rc = fc_lport_ct_request(job, lport, did, tov);
lport            2110 drivers/scsi/libfc/fc_lport.c 		rc = fc_lport_els_request(job, lport, did, lport->e_d_tov);
lport            2114 drivers/scsi/libfc/fc_lport.c 	mutex_unlock(&lport->lp_mutex);
lport              51 drivers/scsi/libfc/fc_npiv.c 	struct fc_lport *lport = NULL;
lport              63 drivers/scsi/libfc/fc_npiv.c 			lport = vn_port;
lport              69 drivers/scsi/libfc/fc_npiv.c 	return lport;
lport             104 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *fc_rport_lookup(const struct fc_lport *lport,
lport             110 drivers/scsi/libfc/fc_rport.c 	list_for_each_entry_rcu(tmp_rdata, &lport->disc.rports, peers)
lport             128 drivers/scsi/libfc/fc_rport.c struct fc_rport_priv *fc_rport_create(struct fc_lport *lport, u32 port_id)
lport             133 drivers/scsi/libfc/fc_rport.c 	lockdep_assert_held(&lport->disc.disc_mutex);
lport             135 drivers/scsi/libfc/fc_rport.c 	rdata = fc_rport_lookup(lport, port_id);
lport             139 drivers/scsi/libfc/fc_rport.c 	if (lport->rport_priv_size > 0)
lport             140 drivers/scsi/libfc/fc_rport.c 		rport_priv_size = lport->rport_priv_size;
lport             152 drivers/scsi/libfc/fc_rport.c 	rdata->local_port = lport;
lport             156 drivers/scsi/libfc/fc_rport.c 	rdata->e_d_tov = lport->e_d_tov;
lport             157 drivers/scsi/libfc/fc_rport.c 	rdata->r_a_tov = lport->r_a_tov;
lport             162 drivers/scsi/libfc/fc_rport.c 		rdata->lld_event_callback = lport->tt.rport_event_callback;
lport             163 drivers/scsi/libfc/fc_rport.c 		list_add_rcu(&rdata->peers, &lport->disc.rports);
lport             263 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport             287 drivers/scsi/libfc/fc_rport.c 			rport = fc_remote_port_add(lport->host, 0, &ids);
lport             303 drivers/scsi/libfc/fc_rport.c 		rpriv->local_port = lport;
lport             312 drivers/scsi/libfc/fc_rport.c 			rport_ops->event_callback(lport, rdata, event);
lport             316 drivers/scsi/libfc/fc_rport.c 			rdata->lld_event_callback(lport, rdata, event);
lport             338 drivers/scsi/libfc/fc_rport.c 			rport_ops->event_callback(lport, rdata, event);
lport             342 drivers/scsi/libfc/fc_rport.c 			rdata->lld_event_callback(lport, rdata, event);
lport             350 drivers/scsi/libfc/fc_rport.c 		lport->tt.exch_mgr_reset(lport, 0, port_id);
lport             351 drivers/scsi/libfc/fc_rport.c 		lport->tt.exch_mgr_reset(lport, port_id, 0);
lport             370 drivers/scsi/libfc/fc_rport.c 				   lport->max_rport_retry_count) {
lport             379 drivers/scsi/libfc/fc_rport.c 				mutex_lock(&lport->disc.disc_mutex);
lport             381 drivers/scsi/libfc/fc_rport.c 				mutex_unlock(&lport->disc.disc_mutex);
lport             502 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport             520 drivers/scsi/libfc/fc_rport.c 	lport->tt.exch_mgr_reset(lport, 0, port_id);
lport             521 drivers/scsi/libfc/fc_rport.c 	lport->tt.exch_mgr_reset(lport, port_id, 0);
lport             612 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport             625 drivers/scsi/libfc/fc_rport.c 		if (lport->point_to_multipoint) {
lport             696 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport             723 drivers/scsi/libfc/fc_rport.c 	rdata->maxframe_size = fc_plogi_get_maxframe(flogi, lport->mfs);
lport             737 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport             792 drivers/scsi/libfc/fc_rport.c 	if (rdata->ids.port_name < lport->wwpn)
lport             817 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport             822 drivers/scsi/libfc/fc_rport.c 	if (!lport->point_to_multipoint)
lport             830 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
lport             835 drivers/scsi/libfc/fc_rport.c 	if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_FLOGI,
lport             837 drivers/scsi/libfc/fc_rport.c 				  2 * lport->r_a_tov)) {
lport             850 drivers/scsi/libfc/fc_rport.c static void fc_rport_recv_flogi_req(struct fc_lport *lport,
lport             861 drivers/scsi/libfc/fc_rport.c 	FC_RPORT_ID_DBG(lport, sid, "Received FLOGI request\n");
lport             863 drivers/scsi/libfc/fc_rport.c 	if (!lport->point_to_multipoint) {
lport             876 drivers/scsi/libfc/fc_rport.c 	rdata = fc_rport_lookup(lport, sid);
lport             932 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(*flp));
lport             936 drivers/scsi/libfc/fc_rport.c 	fc_flogi_fill(lport, fp);
lport             941 drivers/scsi/libfc/fc_rport.c 	lport->tt.frame_send(lport, fp);
lport             949 drivers/scsi/libfc/fc_rport.c 		if (rdata->ids.port_name < lport->wwpn)
lport             981 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1016 drivers/scsi/libfc/fc_rport.c 		if (lport->point_to_multipoint)
lport            1023 drivers/scsi/libfc/fc_rport.c 		rdata->maxframe_size = fc_plogi_get_maxframe(plp, lport->mfs);
lport            1045 drivers/scsi/libfc/fc_rport.c fc_rport_compatible_roles(struct fc_lport *lport, struct fc_rport_priv *rdata)
lport            1050 drivers/scsi/libfc/fc_rport.c 	    (lport->service_params & FCP_SPPF_INIT_FCN))
lport            1053 drivers/scsi/libfc/fc_rport.c 	    (lport->service_params & FCP_SPPF_TARG_FCN))
lport            1066 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1071 drivers/scsi/libfc/fc_rport.c 	if (!fc_rport_compatible_roles(lport, rdata)) {
lport            1083 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
lport            1089 drivers/scsi/libfc/fc_rport.c 	rdata->e_d_tov = lport->e_d_tov;
lport            1092 drivers/scsi/libfc/fc_rport.c 	if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_PLOGI,
lport            1094 drivers/scsi/libfc/fc_rport.c 				  2 * lport->r_a_tov)) {
lport            1239 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1262 drivers/scsi/libfc/fc_rport.c 	if (!(lport->service_params & FCP_SPPF_INIT_FCN)) {
lport            1272 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(*pp));
lport            1278 drivers/scsi/libfc/fc_rport.c 	fc_prli_fill(lport, fp);
lport            1287 drivers/scsi/libfc/fc_rport.c 		       fc_host_port_id(lport->host), FC_TYPE_ELS,
lport            1291 drivers/scsi/libfc/fc_rport.c 	if (!fc_exch_seq_send(lport, fp, fc_rport_prli_resp,
lport            1292 drivers/scsi/libfc/fc_rport.c 			      NULL, rdata, 2 * lport->r_a_tov)) {
lport            1379 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1388 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(struct fc_els_rtv));
lport            1395 drivers/scsi/libfc/fc_rport.c 	if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_RTV,
lport            1397 drivers/scsi/libfc/fc_rport.c 				  2 * lport->r_a_tov)) {
lport            1411 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1417 drivers/scsi/libfc/fc_rport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1421 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(*rtv));
lport            1430 drivers/scsi/libfc/fc_rport.c 	rtv->rtv_r_a_tov = htonl(lport->r_a_tov);
lport            1431 drivers/scsi/libfc/fc_rport.c 	rtv->rtv_e_d_tov = htonl(lport->e_d_tov);
lport            1434 drivers/scsi/libfc/fc_rport.c 	lport->tt.frame_send(lport, fp);
lport            1449 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1451 drivers/scsi/libfc/fc_rport.c 	FC_RPORT_ID_DBG(lport, fc_seq_exch(sp)->did,
lport            1466 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1474 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(struct fc_els_logo));
lport            1478 drivers/scsi/libfc/fc_rport.c 	if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_LOGO,
lport            1553 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1563 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(struct fc_els_adisc));
lport            1569 drivers/scsi/libfc/fc_rport.c 	if (!lport->tt.elsct_send(lport, rdata->ids.port_id, fp, ELS_ADISC,
lport            1571 drivers/scsi/libfc/fc_rport.c 				  2 * lport->r_a_tov)) {
lport            1585 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1591 drivers/scsi/libfc/fc_rport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1603 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(*adisc));
lport            1606 drivers/scsi/libfc/fc_rport.c 	fc_adisc_fill(lport, fp);
lport            1610 drivers/scsi/libfc/fc_rport.c 	lport->tt.frame_send(lport, fp);
lport            1624 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1644 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(*rsp));
lport            1655 drivers/scsi/libfc/fc_rport.c 	if (lport->tt.get_lesb) {
lport            1657 drivers/scsi/libfc/fc_rport.c 		lport->tt.get_lesb(lport, lesb);
lport            1659 drivers/scsi/libfc/fc_rport.c 		fc_get_host_stats(lport->host);
lport            1660 drivers/scsi/libfc/fc_rport.c 		hst = &lport->host_stats;
lport            1670 drivers/scsi/libfc/fc_rport.c 	lport->tt.frame_send(lport, fp);
lport            1689 drivers/scsi/libfc/fc_rport.c static void fc_rport_recv_els_req(struct fc_lport *lport, struct fc_frame *fp)
lport            1694 drivers/scsi/libfc/fc_rport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1696 drivers/scsi/libfc/fc_rport.c 	rdata = fc_rport_lookup(lport, fc_frame_sid(fp));
lport            1698 drivers/scsi/libfc/fc_rport.c 		FC_RPORT_ID_DBG(lport, fc_frame_sid(fp),
lport            1786 drivers/scsi/libfc/fc_rport.c void fc_rport_recv_req(struct fc_lport *lport, struct fc_frame *fp)
lport            1790 drivers/scsi/libfc/fc_rport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1800 drivers/scsi/libfc/fc_rport.c 		fc_rport_recv_flogi_req(lport, fp);
lport            1803 drivers/scsi/libfc/fc_rport.c 		fc_rport_recv_plogi_req(lport, fp);
lport            1806 drivers/scsi/libfc/fc_rport.c 		fc_rport_recv_logo_req(lport, fp);
lport            1815 drivers/scsi/libfc/fc_rport.c 		fc_rport_recv_els_req(lport, fp);
lport            1834 drivers/scsi/libfc/fc_rport.c static void fc_rport_recv_plogi_req(struct fc_lport *lport,
lport            1844 drivers/scsi/libfc/fc_rport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            1848 drivers/scsi/libfc/fc_rport.c 	FC_RPORT_ID_DBG(lport, sid, "Received PLOGI request\n");
lport            1852 drivers/scsi/libfc/fc_rport.c 		FC_RPORT_ID_DBG(lport, sid, "Received PLOGI too short\n");
lport            1858 drivers/scsi/libfc/fc_rport.c 	disc = &lport->disc;
lport            1860 drivers/scsi/libfc/fc_rport.c 	rdata = fc_rport_create(lport, sid);
lport            1894 drivers/scsi/libfc/fc_rport.c 		if (rdata->ids.port_name < lport->wwpn) {
lport            1918 drivers/scsi/libfc/fc_rport.c 	if (!fc_rport_compatible_roles(lport, rdata)) {
lport            1929 drivers/scsi/libfc/fc_rport.c 	rdata->maxframe_size = fc_plogi_get_maxframe(pl, lport->mfs);
lport            1934 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, sizeof(*pl));
lport            1938 drivers/scsi/libfc/fc_rport.c 	fc_plogi_fill(lport, fp, ELS_LS_ACC);
lport            1940 drivers/scsi/libfc/fc_rport.c 	lport->tt.frame_send(lport, fp);
lport            1960 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            1994 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, len);
lport            2055 drivers/scsi/libfc/fc_rport.c 	lport->tt.frame_send(lport, fp);
lport            2076 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            2105 drivers/scsi/libfc/fc_rport.c 	fp = fc_frame_alloc(lport, len);
lport            2126 drivers/scsi/libfc/fc_rport.c 	lport->tt.frame_send(lport, fp);
lport            2145 drivers/scsi/libfc/fc_rport.c static void fc_rport_recv_logo_req(struct fc_lport *lport, struct fc_frame *fp)
lport            2150 drivers/scsi/libfc/fc_rport.c 	lockdep_assert_held(&lport->lp_mutex);
lport            2156 drivers/scsi/libfc/fc_rport.c 	rdata = fc_rport_lookup(lport, sid);
lport            2166 drivers/scsi/libfc/fc_rport.c 		FC_RPORT_ID_DBG(lport, sid,
lport            2194 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rdata->local_port;
lport            2207 drivers/scsi/libfc/fc_rport.c 	if (!(lport->service_params & FCP_SPPF_INIT_FCN))
lport            2216 drivers/scsi/libfc/fc_rport.c 	spp->spp_params = htonl(fcp_parm | lport->service_params);
lport            2279 drivers/scsi/libfc/fc_rport.c 	struct fc_lport *lport = rpriv->local_port;
lport            2281 drivers/scsi/libfc/fc_rport.c 	lport->tt.exch_mgr_reset(lport, 0, rport->port_id);
lport            2282 drivers/scsi/libfc/fc_rport.c 	lport->tt.exch_mgr_reset(lport, rport->port_id, 0);
lport             168 drivers/scsi/lpfc/lpfc_attr.c 	struct lpfc_nvme_lport *lport;
lport             346 drivers/scsi/lpfc/lpfc_attr.c 	lport = (struct lpfc_nvme_lport *)localport->private;
lport             450 drivers/scsi/lpfc/lpfc_attr.c 	if (!lport)
lport             458 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->fc4NvmeLsRequests),
lport             459 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->fc4NvmeLsCmpls),
lport             460 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->xmt_ls_abort));
lport             466 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->xmt_ls_err),
lport             467 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->cmpl_ls_xb),
lport             468 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->cmpl_ls_err));
lport             493 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->xmt_fcp_abort),
lport             494 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->xmt_fcp_noxri),
lport             495 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->xmt_fcp_bad_ndlp),
lport             496 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->xmt_fcp_qdepth),
lport             497 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->xmt_fcp_err),
lport             498 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->xmt_fcp_wqerr));
lport             504 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->cmpl_fcp_xb),
lport             505 drivers/scsi/lpfc/lpfc_attr.c 		  atomic_read(&lport->cmpl_fcp_err));
lport            1040 drivers/scsi/lpfc/lpfc_debugfs.c 	struct lpfc_nvme_lport *lport;
lport            1173 drivers/scsi/lpfc/lpfc_debugfs.c 		lport = (struct lpfc_nvme_lport *)localport->private;
lport            1174 drivers/scsi/lpfc/lpfc_debugfs.c 		if (!lport)
lport            1182 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->fc4NvmeLsRequests),
lport            1183 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->fc4NvmeLsCmpls));
lport            1216 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->xmt_ls_abort),
lport            1217 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->xmt_ls_err),
lport            1218 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->cmpl_ls_xb),
lport            1219 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->cmpl_ls_err));
lport            1224 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->xmt_fcp_noxri),
lport            1225 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->xmt_fcp_bad_ndlp),
lport            1226 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->xmt_fcp_qdepth),
lport            1227 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->xmt_fcp_wqerr),
lport            1228 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->xmt_fcp_err),
lport            1229 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->xmt_fcp_abort));
lport            1233 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->cmpl_fcp_xb),
lport            1234 drivers/scsi/lpfc/lpfc_debugfs.c 				atomic_read(&lport->cmpl_fcp_err));
lport             218 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport             226 drivers/scsi/lpfc/lpfc_nvme.c 	lport = (struct lpfc_nvme_lport *)pnvme_lport->private;
lport             227 drivers/scsi/lpfc/lpfc_nvme.c 	vport = lport->vport;
lport             275 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport             281 drivers/scsi/lpfc/lpfc_nvme.c 	lport = (struct lpfc_nvme_lport *)pnvme_lport->private;
lport             282 drivers/scsi/lpfc/lpfc_nvme.c 	vport = lport->vport;
lport             286 drivers/scsi/lpfc/lpfc_nvme.c 			lport, qidx, handle);
lport             293 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport = localport->private;
lport             295 drivers/scsi/lpfc/lpfc_nvme.c 	lpfc_printf_vlog(lport->vport, KERN_INFO, LOG_NVME,
lport             297 drivers/scsi/lpfc/lpfc_nvme.c 			 lport);
lport             300 drivers/scsi/lpfc/lpfc_nvme.c 	if (lport->vport->localport)
lport             301 drivers/scsi/lpfc/lpfc_nvme.c 		complete(lport->lport_unreg_cmp);
lport             364 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport             374 drivers/scsi/lpfc/lpfc_nvme.c 		lport = (struct lpfc_nvme_lport *)vport->localport->private;
lport             375 drivers/scsi/lpfc/lpfc_nvme.c 		if (lport) {
lport             376 drivers/scsi/lpfc/lpfc_nvme.c 			atomic_inc(&lport->fc4NvmeLsCmpls);
lport             379 drivers/scsi/lpfc/lpfc_nvme.c 					atomic_inc(&lport->cmpl_ls_xb);
lport             380 drivers/scsi/lpfc/lpfc_nvme.c 				atomic_inc(&lport->cmpl_ls_err);
lport             568 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport             587 drivers/scsi/lpfc/lpfc_nvme.c 	lport = (struct lpfc_nvme_lport *)pnvme_lport->private;
lport             589 drivers/scsi/lpfc/lpfc_nvme.c 	if (unlikely(!lport) || unlikely(!rport))
lport             592 drivers/scsi/lpfc/lpfc_nvme.c 	vport = lport->vport;
lport             661 drivers/scsi/lpfc/lpfc_nvme.c 	atomic_inc(&lport->fc4NvmeLsRequests);
lport             670 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_inc(&lport->xmt_ls_err);
lport             703 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport             711 drivers/scsi/lpfc/lpfc_nvme.c 	lport = (struct lpfc_nvme_lport *)pnvme_lport->private;
lport             712 drivers/scsi/lpfc/lpfc_nvme.c 	if (unlikely(!lport))
lport             714 drivers/scsi/lpfc/lpfc_nvme.c 	vport = lport->vport;
lport             757 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_inc(&lport->xmt_ls_abort);
lport             971 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport            1006 drivers/scsi/lpfc/lpfc_nvme.c 		lport = (struct lpfc_nvme_lport *)vport->localport->private;
lport            1007 drivers/scsi/lpfc/lpfc_nvme.c 		if (lport) {
lport            1009 drivers/scsi/lpfc/lpfc_nvme.c 				atomic_inc(&lport->cmpl_fcp_xb);
lport            1010 drivers/scsi/lpfc/lpfc_nvme.c 			atomic_inc(&lport->cmpl_fcp_err);
lport            1502 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport            1519 drivers/scsi/lpfc/lpfc_nvme.c 	lport = (struct lpfc_nvme_lport *)pnvme_lport->private;
lport            1520 drivers/scsi/lpfc/lpfc_nvme.c 	if (unlikely(!lport)) {
lport            1525 drivers/scsi/lpfc/lpfc_nvme.c 	vport = lport->vport;
lport            1530 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_inc(&lport->xmt_fcp_err);
lport            1545 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_inc(&lport->xmt_fcp_err);
lport            1554 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_inc(&lport->xmt_fcp_err);
lport            1576 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_inc(&lport->xmt_fcp_err);
lport            1590 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_inc(&lport->xmt_fcp_bad_ndlp);
lport            1619 drivers/scsi/lpfc/lpfc_nvme.c 			atomic_inc(&lport->xmt_fcp_qdepth);
lport            1635 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_inc(&lport->xmt_fcp_noxri);
lport            1681 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_inc(&lport->xmt_fcp_err);
lport            1692 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_inc(&lport->xmt_fcp_wqerr);
lport            1789 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport            1803 drivers/scsi/lpfc/lpfc_nvme.c 	lport = (struct lpfc_nvme_lport *)pnvme_lport->private;
lport            1804 drivers/scsi/lpfc/lpfc_nvme.c 	if (unlikely(!lport))
lport            1807 drivers/scsi/lpfc/lpfc_nvme.c 	vport = lport->vport;
lport            1889 drivers/scsi/lpfc/lpfc_nvme.c 	atomic_inc(&lport->xmt_fcp_abort);
lport            2128 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport            2170 drivers/scsi/lpfc/lpfc_nvme.c 		lport = (struct lpfc_nvme_lport *)localport->private;
lport            2172 drivers/scsi/lpfc/lpfc_nvme.c 		lport->vport = vport;
lport            2175 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->xmt_fcp_noxri, 0);
lport            2176 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->xmt_fcp_bad_ndlp, 0);
lport            2177 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->xmt_fcp_qdepth, 0);
lport            2178 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->xmt_fcp_err, 0);
lport            2179 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->xmt_fcp_wqerr, 0);
lport            2180 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->xmt_fcp_abort, 0);
lport            2181 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->xmt_ls_abort, 0);
lport            2182 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->xmt_ls_err, 0);
lport            2183 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->cmpl_fcp_xb, 0);
lport            2184 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->cmpl_fcp_err, 0);
lport            2185 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->cmpl_ls_xb, 0);
lport            2186 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->cmpl_ls_err, 0);
lport            2187 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->fc4NvmeLsRequests, 0);
lport            2188 drivers/scsi/lpfc/lpfc_nvme.c 		atomic_set(&lport->fc4NvmeLsCmpls, 0);
lport            2207 drivers/scsi/lpfc/lpfc_nvme.c 			   struct lpfc_nvme_lport *lport,
lport            2234 drivers/scsi/lpfc/lpfc_nvme.c 					 lport, vport->localport, pending);
lport            2241 drivers/scsi/lpfc/lpfc_nvme.c 			 lport, vport->localport);
lport            2260 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport            2268 drivers/scsi/lpfc/lpfc_nvme.c 	lport = (struct lpfc_nvme_lport *)localport->private;
lport            2277 drivers/scsi/lpfc/lpfc_nvme.c 	lport->lport_unreg_cmp = &lport_unreg_cmp;
lport            2283 drivers/scsi/lpfc/lpfc_nvme.c 	lpfc_nvme_lport_unreg_wait(vport, lport, &lport_unreg_cmp);
lport            2310 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport            2318 drivers/scsi/lpfc/lpfc_nvme.c 	lport = (struct lpfc_nvme_lport *)localport->private;
lport            2319 drivers/scsi/lpfc/lpfc_nvme.c 	if (!lport) {
lport            2337 drivers/scsi/lpfc/lpfc_nvme.c 			 lport, localport->port_id);
lport            2347 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport            2362 drivers/scsi/lpfc/lpfc_nvme.c 	lport = (struct lpfc_nvme_lport *)localport->private;
lport            2464 drivers/scsi/lpfc/lpfc_nvme.c 		rport->lport = lport;
lport            2475 drivers/scsi/lpfc/lpfc_nvme.c 				 lport, remote_port, rport,
lport            2558 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_nvme_lport *lport;
lport            2570 drivers/scsi/lpfc/lpfc_nvme.c 	lport = (struct lpfc_nvme_lport *)localport->private;
lport            2571 drivers/scsi/lpfc/lpfc_nvme.c 	if (!lport)
lport              68 drivers/scsi/lpfc/lpfc_nvme.h 	struct lpfc_nvme_lport *lport;
lport             312 drivers/scsi/qedf/qedf.h 	struct fc_lport *lport;
lport             480 drivers/scsi/qedf/qedf.h extern u8 *qedf_get_src_mac(struct fc_lport *lport);
lport             539 drivers/scsi/qedf/qedf.h void qedf_ctx_soft_reset(struct fc_lport *lport);
lport              10 drivers/scsi/qedf/qedf_attr.c 	return qedf->lport->vport != NULL;
lport              16 drivers/scsi/qedf/qedf_attr.c 	struct fc_lport *lport;
lport              22 drivers/scsi/qedf/qedf_attr.c 	lport = qedf->lport;
lport              23 drivers/scsi/qedf/qedf_attr.c 	base_lport = shost_priv(vport_to_shost(lport->vport));
lport              31 drivers/scsi/qedf/qedf_attr.c 	struct fc_lport *lport = shost_priv(class_to_shost(dev));
lport              36 drivers/scsi/qedf/qedf_attr.c 	port_id = fc_host_port_id(lport->host);
lport              49 drivers/scsi/qedf/qedf_attr.c 	struct fc_lport *lport = shost_priv(class_to_shost(dev));
lport              50 drivers/scsi/qedf/qedf_attr.c 	struct qedf_ctx *qedf = lport_priv(lport);
lport              94 drivers/scsi/qedf/qedf_attr.c 	qedf_uevent_emit(base_qedf->lport->host, QEDF_UEVENT_CODE_GRCDUMP,
lport             104 drivers/scsi/qedf/qedf_attr.c 	struct fc_lport *lport = shost_priv(dev_to_shost(container_of(kobj,
lport             106 drivers/scsi/qedf/qedf_attr.c 	struct qedf_ctx *qedf = lport_priv(lport);
lport             123 drivers/scsi/qedf/qedf_attr.c 	struct fc_lport *lport = NULL;
lport             133 drivers/scsi/qedf/qedf_attr.c 	lport = shost_priv(dev_to_shost(container_of(kobj,
lport             135 drivers/scsi/qedf/qedf_attr.c 	qedf = lport_priv(lport);
lport             175 drivers/scsi/qedf/qedf_attr.c 	qedf_create_sysfs_attr(qedf->lport->host, bin_file_entries);
lport             180 drivers/scsi/qedf/qedf_attr.c 	qedf_remove_sysfs_attr(qedf->lport->host, bin_file_entries);
lport             329 drivers/scsi/qedf/qedf_debugfs.c 	seq_printf(s, "Host NPortID: %06x\n", qedf->lport->port_id);
lport             332 drivers/scsi/qedf/qedf_debugfs.c 	seq_printf(s, "Logical Link State: %s\n", qedf->lport->link_up ?
lport              15 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport;
lport              34 drivers/scsi/qedf/qedf_els.c 	lport = qedf->lport;
lport              44 drivers/scsi/qedf/qedf_els.c 	if (lport->state != LPORT_ST_READY || !(lport->link_up)) {
lport             223 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport;
lport             272 drivers/scsi/qedf/qedf_els.c 	lport = qedf->lport;
lport             274 drivers/scsi/qedf/qedf_els.c 	r_a_tov = lport->r_a_tov;
lport             314 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport = fcport->qedf->lport;
lport             329 drivers/scsi/qedf/qedf_els.c 	hton24(fh->fh_d_id, lport->port_id);
lport             336 drivers/scsi/qedf/qedf_els.c 	fr_dev(fp) = lport;
lport             342 drivers/scsi/qedf/qedf_els.c 	fc_exch_recv(lport, fp);
lport             351 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport;
lport             382 drivers/scsi/qedf/qedf_els.c 		lport = fcport->qedf->lport;
lport             388 drivers/scsi/qedf/qedf_els.c 		mutex_lock(&lport->disc.disc_mutex);
lport             390 drivers/scsi/qedf/qedf_els.c 		rdata = fc_rport_create(lport, port_id);
lport             392 drivers/scsi/qedf/qedf_els.c 			mutex_unlock(&lport->disc.disc_mutex);
lport             396 drivers/scsi/qedf/qedf_els.c 			mutex_unlock(&lport->disc.disc_mutex);
lport             462 drivers/scsi/qedf/qedf_els.c 	fp = fc_frame_alloc(fcport->qedf->lport, resp_len);
lport             489 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport = fcport->qedf->lport;
lport             492 drivers/scsi/qedf/qedf_els.c 	uint32_t r_a_tov = lport->r_a_tov;
lport             532 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport;
lport             539 drivers/scsi/qedf/qedf_els.c 	lport = qedf->lport;
lport             572 drivers/scsi/qedf/qedf_els.c 	fp = fc_frame_alloc(lport, resp_len);
lport             613 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport;
lport             640 drivers/scsi/qedf/qedf_els.c 	lport = qedf->lport;
lport             641 drivers/scsi/qedf/qedf_els.c 	r_a_tov = lport->r_a_tov;
lport             827 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport;
lport             840 drivers/scsi/qedf/qedf_els.c 	lport = qedf->lport;
lport             872 drivers/scsi/qedf/qedf_els.c 	fp = fc_frame_alloc(lport, resp_len);
lport             981 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport;
lport            1010 drivers/scsi/qedf/qedf_els.c 	lport = qedf->lport;
lport            1012 drivers/scsi/qedf/qedf_els.c 	r_a_tov = lport->r_a_tov;
lport              51 drivers/scsi/qedf/qedf_fip.c 	put_unaligned_be64(qedf->lport->wwnn, &vlan->desc.wwnn.fd_wwn);
lport             269 drivers/scsi/qedf/qedf_fip.c 					qedf->lport->port_id) ||
lport             287 drivers/scsi/qedf/qedf_fip.c 			qedf_ctx_soft_reset(qedf->lport);
lport             296 drivers/scsi/qedf/qedf_fip.c u8 *qedf_get_src_mac(struct fc_lport *lport)
lport             298 drivers/scsi/qedf/qedf_fip.c 	struct qedf_ctx *qedf = lport_priv(lport);
lport             482 drivers/scsi/qedf/qedf_io.c 	struct fc_lport *lport = shost_priv(host);
lport             483 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = lport_priv(lport);
lport             594 drivers/scsi/qedf/qedf_io.c static void  qedf_init_task(struct qedf_rport *fcport, struct fc_lport *lport,
lport             859 drivers/scsi/qedf/qedf_io.c 	struct fc_lport *lport = shost_priv(host);
lport             860 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = lport_priv(lport);
lport             927 drivers/scsi/qedf/qedf_io.c 	qedf_init_task(fcport, lport, io_req, task_ctx, sqe);
lport             944 drivers/scsi/qedf/qedf_io.c 	struct fc_lport *lport = shost_priv(host);
lport             945 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = lport_priv(lport);
lport            1001 drivers/scsi/qedf/qedf_io.c 	if (lport->state != LPORT_ST_READY ||
lport            1249 drivers/scsi/qedf/qedf_io.c 			    qedf->lport->host->host_no, sc_cmd->device->id,
lport            1398 drivers/scsi/qedf/qedf_io.c 	    qedf->lport->host->host_no, sc_cmd->device->id,
lport            1833 drivers/scsi/qedf/qedf_io.c 	struct fc_lport *lport;
lport            1862 drivers/scsi/qedf/qedf_io.c 	lport = qedf->lport;
lport            1864 drivers/scsi/qedf/qedf_io.c 	if (lport->state != LPORT_ST_READY || !(lport->link_up)) {
lport            1994 drivers/scsi/qedf/qedf_io.c 		    msecs_to_jiffies(qedf->lport->r_a_tov));
lport            2274 drivers/scsi/qedf/qedf_io.c 	struct fc_lport *lport = qedf->lport;
lport            2340 drivers/scsi/qedf/qedf_io.c 	qedf_init_task(fcport, lport, io_req, task, sqe);
lport            2397 drivers/scsi/qedf/qedf_io.c 	struct fc_lport *lport = shost_priv(sc_cmd->device->host);
lport            2463 drivers/scsi/qedf/qedf_io.c 	if (lport->state != LPORT_ST_READY || !(lport->link_up)) {
lport            2548 drivers/scsi/qedf/qedf_io.c 	fp = fc_frame_alloc(qedf->lport, payload_len);
lport            2566 drivers/scsi/qedf/qedf_io.c 	fr_dev(fp) = qedf->lport;
lport             261 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport = exch->lp;
lport             262 drivers/scsi/qedf/qedf_main.c 	struct qedf_ctx *qedf = lport_priv(lport);
lport             292 drivers/scsi/qedf/qedf_main.c 	fc_lport_flogi_resp(seq, fp, lport);
lport             295 drivers/scsi/qedf/qedf_main.c static struct fc_seq *qedf_elsct_send(struct fc_lport *lport, u32 did,
lport             302 drivers/scsi/qedf/qedf_main.c 	struct qedf_ctx *qedf = lport_priv(lport);
lport             310 drivers/scsi/qedf/qedf_main.c 		return fc_elsct_send(lport, did, fp, op, qedf_flogi_resp,
lport             314 drivers/scsi/qedf/qedf_main.c 	return fc_elsct_send(lport, did, fp, op, resp, arg, timeout);
lport             319 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport;
lport             322 drivers/scsi/qedf/qedf_main.c 	lport = qedf->lport;
lport             324 drivers/scsi/qedf/qedf_main.c 	if (!lport->tt.elsct_send) {
lport             329 drivers/scsi/qedf/qedf_main.c 	fp = fc_frame_alloc(lport, sizeof(struct fc_els_flogi));
lport             337 drivers/scsi/qedf/qedf_main.c 	lport->tt.elsct_send(lport, FC_FID_FLOGI, fp,
lport             338 drivers/scsi/qedf/qedf_main.c 	    ELS_FLOGI, qedf_flogi_resp, lport, lport->r_a_tov);
lport             354 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport = qedf->lport;
lport             412 drivers/scsi/qedf/qedf_main.c 	    qedf->lport->r_a_tov);
lport             422 drivers/scsi/qedf/qedf_main.c 	mutex_lock(&lport->disc.disc_mutex);
lport             423 drivers/scsi/qedf/qedf_main.c 	list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) {
lport             429 drivers/scsi/qedf/qedf_main.c 	mutex_unlock(&lport->disc.disc_mutex);
lport             435 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport = qedf->lport;
lport             437 drivers/scsi/qedf/qedf_main.c 	lport->link_speed = FC_PORTSPEED_UNKNOWN;
lport             438 drivers/scsi/qedf/qedf_main.c 	lport->link_supported_speeds = FC_PORTSPEED_UNKNOWN;
lport             443 drivers/scsi/qedf/qedf_main.c 		lport->link_speed = FC_PORTSPEED_10GBIT;
lport             446 drivers/scsi/qedf/qedf_main.c 		lport->link_speed = FC_PORTSPEED_25GBIT;
lport             449 drivers/scsi/qedf/qedf_main.c 		lport->link_speed = FC_PORTSPEED_40GBIT;
lport             452 drivers/scsi/qedf/qedf_main.c 		lport->link_speed = FC_PORTSPEED_50GBIT;
lport             455 drivers/scsi/qedf/qedf_main.c 		lport->link_speed = FC_PORTSPEED_100GBIT;
lport             458 drivers/scsi/qedf/qedf_main.c 		lport->link_speed = FC_PORTSPEED_20GBIT;
lport             461 drivers/scsi/qedf/qedf_main.c 		lport->link_speed = FC_PORTSPEED_UNKNOWN;
lport             477 drivers/scsi/qedf/qedf_main.c 		lport->link_supported_speeds |= FC_PORTSPEED_10GBIT;
lport             482 drivers/scsi/qedf/qedf_main.c 		lport->link_supported_speeds |= FC_PORTSPEED_25GBIT;
lport             488 drivers/scsi/qedf/qedf_main.c 		lport->link_supported_speeds |= FC_PORTSPEED_40GBIT;
lport             493 drivers/scsi/qedf/qedf_main.c 		lport->link_supported_speeds |= FC_PORTSPEED_50GBIT;
lport             499 drivers/scsi/qedf/qedf_main.c 		lport->link_supported_speeds |= FC_PORTSPEED_100GBIT;
lport             502 drivers/scsi/qedf/qedf_main.c 		lport->link_supported_speeds |= FC_PORTSPEED_20GBIT;
lport             503 drivers/scsi/qedf/qedf_main.c 	fc_host_supported_speeds(lport->host) = lport->link_supported_speeds;
lport             651 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport;
lport             663 drivers/scsi/qedf/qedf_main.c 	lport = shost_priv(sc_cmd->device->host);
lport             664 drivers/scsi/qedf/qedf_main.c 	qedf = (struct qedf_ctx *)lport_priv(lport);
lport             731 drivers/scsi/qedf/qedf_main.c 	if (lport->state != LPORT_ST_READY || !(lport->link_up)) {
lport             841 drivers/scsi/qedf/qedf_main.c void qedf_ctx_soft_reset(struct fc_lport *lport)
lport             846 drivers/scsi/qedf/qedf_main.c 	if (lport->vport) {
lport             851 drivers/scsi/qedf/qedf_main.c 	qedf = lport_priv(lport);
lport             888 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport;
lport             891 drivers/scsi/qedf/qedf_main.c 	lport = shost_priv(sc_cmd->device->host);
lport             892 drivers/scsi/qedf/qedf_main.c 	qedf = lport_priv(lport);
lport             900 drivers/scsi/qedf/qedf_main.c 	qedf_ctx_soft_reset(lport);
lport             989 drivers/scsi/qedf/qedf_main.c static int qedf_xmit(struct fc_lport *lport, struct fc_frame *fp)
lport            1009 drivers/scsi/qedf/qedf_main.c 	qedf = (struct qedf_ctx *)lport_priv(lport);
lport            1015 drivers/scsi/qedf/qedf_main.c 	if (lport->vport)
lport            1016 drivers/scsi/qedf/qedf_main.c 		base_lport = shost_priv(vport_to_shost(lport->vport));
lport            1018 drivers/scsi/qedf/qedf_main.c 		base_lport = lport;
lport            1040 drivers/scsi/qedf/qedf_main.c 		rdata = fc_rport_lookup(lport, ntoh24(fh->fh_d_id));
lport            1042 drivers/scsi/qedf/qedf_main.c 			rdata->retries = lport->max_rport_retry_count;
lport            1067 drivers/scsi/qedf/qedf_main.c 		if (fcoe_ctlr_els_send(&qedf->ctlr, lport, skb))
lport            1150 drivers/scsi/qedf/qedf_main.c 	stats = per_cpu_ptr(lport->stats, get_cpu());
lport            1159 drivers/scsi/qedf/qedf_main.c 	fr_dev(fp) = lport;
lport            1278 drivers/scsi/qedf/qedf_main.c 	conn_info.e_d_tov_timer_val = qedf->lport->e_d_tov / 20;
lport            1291 drivers/scsi/qedf/qedf_main.c 	port_id = fc_host_port_id(qedf->lport->host);
lport            1386 drivers/scsi/qedf/qedf_main.c static void qedf_rport_event_handler(struct fc_lport *lport,
lport            1390 drivers/scsi/qedf/qedf_main.c 	struct qedf_ctx *qedf = lport_priv(lport);
lport            1545 drivers/scsi/qedf/qedf_main.c static void qedf_abort_io(struct fc_lport *lport)
lport            1550 drivers/scsi/qedf/qedf_main.c static void qedf_fcp_cleanup(struct fc_lport *lport)
lport            1578 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport = qedf->lport;
lport            1579 drivers/scsi/qedf/qedf_main.c 	struct fc_host_attrs *fc_host = shost_to_fc_host(lport->host);
lport            1586 drivers/scsi/qedf/qedf_main.c 	lport->fdmi_enabled = 1;
lport            1631 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport = qedf->lport;
lport            1633 drivers/scsi/qedf/qedf_main.c 	lport->link_up = 0;
lport            1634 drivers/scsi/qedf/qedf_main.c 	lport->max_retry_count = QEDF_FLOGI_RETRY_CNT;
lport            1635 drivers/scsi/qedf/qedf_main.c 	lport->max_rport_retry_count = QEDF_RPORT_RETRY_CNT;
lport            1636 drivers/scsi/qedf/qedf_main.c 	lport->service_params = (FCP_SPPF_INIT_FCN | FCP_SPPF_RD_XRDY_DIS |
lport            1638 drivers/scsi/qedf/qedf_main.c 	lport->boot_time = jiffies;
lport            1639 drivers/scsi/qedf/qedf_main.c 	lport->e_d_tov = 2 * 1000;
lport            1640 drivers/scsi/qedf/qedf_main.c 	lport->r_a_tov = 10 * 1000;
lport            1643 drivers/scsi/qedf/qedf_main.c 	lport->does_npiv = 1;
lport            1644 drivers/scsi/qedf/qedf_main.c 	fc_host_max_npiv_vports(lport->host) = QEDF_MAX_NPIV;
lport            1646 drivers/scsi/qedf/qedf_main.c 	fc_set_wwnn(lport, qedf->wwnn);
lport            1647 drivers/scsi/qedf/qedf_main.c 	fc_set_wwpn(lport, qedf->wwpn);
lport            1649 drivers/scsi/qedf/qedf_main.c 	if (fcoe_libfc_config(lport, &qedf->ctlr, &qedf_lport_template, 0)) {
lport            1656 drivers/scsi/qedf/qedf_main.c 	fc_exch_mgr_alloc(lport, FC_CLASS_3, FCOE_PARAMS_NUM_TASKS,
lport            1659 drivers/scsi/qedf/qedf_main.c 	if (fc_lport_init_stats(lport))
lport            1663 drivers/scsi/qedf/qedf_main.c 	fc_lport_config(lport);
lport            1666 drivers/scsi/qedf/qedf_main.c 	fc_set_mfs(lport, QEDF_MFS);
lport            1667 drivers/scsi/qedf/qedf_main.c 	fc_host_maxframe_size(lport->host) = lport->mfs;
lport            1670 drivers/scsi/qedf/qedf_main.c 	fc_host_dev_loss_tmo(lport->host) = qedf_dev_loss_tmo;
lport            1673 drivers/scsi/qedf/qedf_main.c 	snprintf(fc_host_symbolic_name(lport->host), 256,
lport            1686 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport)
lport            1688 drivers/scsi/qedf/qedf_main.c 	lport->link_up = 0;
lport            1689 drivers/scsi/qedf/qedf_main.c 	lport->qfull = 0;
lport            1690 drivers/scsi/qedf/qedf_main.c 	lport->max_retry_count = QEDF_FLOGI_RETRY_CNT;
lport            1691 drivers/scsi/qedf/qedf_main.c 	lport->max_rport_retry_count = QEDF_RPORT_RETRY_CNT;
lport            1692 drivers/scsi/qedf/qedf_main.c 	lport->service_params = (FCP_SPPF_INIT_FCN | FCP_SPPF_RD_XRDY_DIS |
lport            1694 drivers/scsi/qedf/qedf_main.c 	lport->boot_time = jiffies;
lport            1695 drivers/scsi/qedf/qedf_main.c 	lport->e_d_tov = 2 * 1000;
lport            1696 drivers/scsi/qedf/qedf_main.c 	lport->r_a_tov = 10 * 1000;
lport            1697 drivers/scsi/qedf/qedf_main.c 	lport->does_npiv = 1; /* Temporary until we add NPIV support */
lport            1700 drivers/scsi/qedf/qedf_main.c 	if (fc_lport_init_stats(lport))
lport            1704 drivers/scsi/qedf/qedf_main.c 	fc_lport_config(lport);
lport            1707 drivers/scsi/qedf/qedf_main.c 	lport->crc_offload = 0;
lport            1708 drivers/scsi/qedf/qedf_main.c 	lport->seq_offload = 0;
lport            1709 drivers/scsi/qedf/qedf_main.c 	lport->lro_enabled = 0;
lport            1710 drivers/scsi/qedf/qedf_main.c 	lport->lro_xid = 0;
lport            1711 drivers/scsi/qedf/qedf_main.c 	lport->lso_max = 0;
lport            1759 drivers/scsi/qedf/qedf_main.c 	vport_qedf->lport = vn_port;
lport            1882 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport = vport->dd_data;
lport            1886 drivers/scsi/qedf/qedf_main.c 		fc_fabric_logoff(lport);
lport            1888 drivers/scsi/qedf/qedf_main.c 		lport->boot_time = jiffies;
lport            1889 drivers/scsi/qedf/qedf_main.c 		fc_fabric_login(lport);
lport            1890 drivers/scsi/qedf/qedf_main.c 		fc_vport_setlink(lport);
lport            1903 drivers/scsi/qedf/qedf_main.c 	struct fc_host_attrs *fc_host = shost_to_fc_host(qedf->lport->host);
lport            1923 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport = shost_priv(shost);
lport            1925 drivers/scsi/qedf/qedf_main.c 	qedf_ctx_soft_reset(lport);
lport            1933 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport = shost_priv(shost);
lport            1934 drivers/scsi/qedf/qedf_main.c 	struct qedf_ctx *qedf = lport_priv(lport);
lport            1940 drivers/scsi/qedf/qedf_main.c 	if (lport->vport)
lport            2333 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport;
lport            2344 drivers/scsi/qedf/qedf_main.c 	lport = qedf->lport;
lport            2345 drivers/scsi/qedf/qedf_main.c 	if (lport == NULL || lport->state == LPORT_ST_DISABLED) {
lport            2364 drivers/scsi/qedf/qedf_main.c 	fr_dev(fp) = lport;
lport            2427 drivers/scsi/qedf/qedf_main.c 	vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id));
lport            2434 drivers/scsi/qedf/qedf_main.c 	if (lport->port_id != ntoh24(fh->fh_d_id) && !vn_port) {
lport            2437 drivers/scsi/qedf/qedf_main.c 			  lport->port_id, ntoh24(fh->fh_d_id));
lport            2476 drivers/scsi/qedf/qedf_main.c 	fc_exch_recv(lport, fp);
lport            2573 drivers/scsi/qedf/qedf_main.c 		fc_exch_recv(io_work->qedf->lport, io_work->fp);
lport            3155 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport;
lport            3173 drivers/scsi/qedf/qedf_main.c 		lport = libfc_host_alloc(&qedf_host_template,
lport            3176 drivers/scsi/qedf/qedf_main.c 		if (!lport) {
lport            3182 drivers/scsi/qedf/qedf_main.c 		fc_disc_init(lport);
lport            3185 drivers/scsi/qedf/qedf_main.c 		qedf = lport_priv(lport);
lport            3186 drivers/scsi/qedf/qedf_main.c 		qedf->lport = lport;
lport            3187 drivers/scsi/qedf/qedf_main.c 		qedf->ctlr.lp = lport;
lport            3190 drivers/scsi/qedf/qedf_main.c 		qedf->dbg_ctx.host_no = lport->host->host_no;
lport            3209 drivers/scsi/qedf/qedf_main.c 		lport = qedf->lport;
lport            3212 drivers/scsi/qedf/qedf_main.c 	host = lport->host;
lport            3225 drivers/scsi/qedf/qedf_main.c 	    qedf->lport->host->host_no);
lport            3453 drivers/scsi/qedf/qedf_main.c 	sprintf(host_buf, "qedf_%u_timer", qedf->lport->host->host_no);
lport            3466 drivers/scsi/qedf/qedf_main.c 		    qedf->lport->host->host_no);
lport            3514 drivers/scsi/qedf/qedf_main.c 		fc_fabric_login(lport);
lport            3522 drivers/scsi/qedf/qedf_main.c 	fc_remove_host(qedf->lport->host);
lport            3523 drivers/scsi/qedf/qedf_main.c 	scsi_remove_host(qedf->lport->host);
lport            3539 drivers/scsi/qedf/qedf_main.c 	scsi_host_put(lport->host);
lport            3577 drivers/scsi/qedf/qedf_main.c 		fc_fabric_logoff(qedf->lport);
lport            3614 drivers/scsi/qedf/qedf_main.c 		fc_lport_destroy(qedf->lport);
lport            3615 drivers/scsi/qedf/qedf_main.c 		fc_remove_host(qedf->lport->host);
lport            3616 drivers/scsi/qedf/qedf_main.c 		scsi_remove_host(qedf->lport->host);
lport            3622 drivers/scsi/qedf/qedf_main.c 		fc_exch_mgr_free(qedf->lport);
lport            3623 drivers/scsi/qedf/qedf_main.c 		fc_lport_free_stats(qedf->lport);
lport            3662 drivers/scsi/qedf/qedf_main.c 		scsi_host_put(qedf->lport->host);
lport            3690 drivers/scsi/qedf/qedf_main.c 	struct fc_lport *lport = qedf->lport;
lport            3691 drivers/scsi/qedf/qedf_main.c 	struct Scsi_Host *host = lport->host;
lport            3702 drivers/scsi/qedf/qedf_main.c 	fcoe->ra_tov = lport->r_a_tov;
lport            3705 drivers/scsi/qedf/qedf_main.c 	fcoe->ed_tov = lport->e_d_tov;
lport            3721 drivers/scsi/qedf/qedf_main.c 	if (lport->link_up)
lport              80 drivers/scsi/qla2xxx/qla_nvme.c static int qla_nvme_alloc_queue(struct nvme_fc_local_port *lport,
lport              90 drivers/scsi/qla2xxx/qla_nvme.c 	vha = (struct scsi_qla_host *)lport->private;
lport             245 drivers/scsi/qla2xxx/qla_nvme.c static void qla_nvme_ls_abort(struct nvme_fc_local_port *lport,
lport             267 drivers/scsi/qla2xxx/qla_nvme.c static int qla_nvme_ls_req(struct nvme_fc_local_port *lport,
lport             330 drivers/scsi/qla2xxx/qla_nvme.c static void qla_nvme_fcp_abort(struct nvme_fc_local_port *lport,
lport             525 drivers/scsi/qla2xxx/qla_nvme.c static int qla_nvme_post_cmd(struct nvme_fc_local_port *lport,
lport             587 drivers/scsi/qla2xxx/qla_nvme.c static void qla_nvme_localport_delete(struct nvme_fc_local_port *lport)
lport             589 drivers/scsi/qla2xxx/qla_nvme.c 	struct scsi_qla_host *vha = lport->private;
lport             166 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = tpg->lport;
lport             168 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	return lport->lport_naa_name;
lport             764 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = container_of(se_wwn,
lport             772 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	node = btree_remove32(&lport->lport_fcport_map, nacl->nport_id);
lport             780 drivers/scsi/qla2xxx/tcm_qla2xxx.c 		btree_insert32(&lport->lport_fcport_map, nacl->nport_id,
lport             795 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	tcm_qla2xxx_clear_sess_lookup(lport, nacl, sess);
lport             900 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = container_of(se_wwn,
lport             902 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct scsi_qla_host *vha = lport->qla_vha;
lport             986 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = container_of(wwn,
lport            1007 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	tpg->lport = lport;
lport            1025 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport->tpg_1 = tpg;
lport            1034 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = tpg->lport;
lport            1035 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct scsi_qla_host *vha = lport->qla_vha;
lport            1047 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport->tpg_1 = NULL;
lport            1062 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = container_of(se_wwn,
lport            1064 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct scsi_qla_host *vha = lport->qla_vha;
lport            1106 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = container_of(wwn,
lport            1122 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	tpg->lport = lport;
lport            1139 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport->tpg_1 = tpg;
lport            1149 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport;
lport            1154 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport = vha->vha_tgt.target_lport_ptr;
lport            1155 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	if (!lport) {
lport            1164 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	se_nacl = btree_lookup32(&lport->lport_fcport_map, key);
lport            1185 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport,
lport            1199 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	slot = btree_lookup32(&lport->lport_fcport_map, key);
lport            1204 drivers/scsi/qla2xxx/tcm_qla2xxx.c 			rc = btree_insert32(&lport->lport_fcport_map, key,
lport            1221 drivers/scsi/qla2xxx/tcm_qla2xxx.c 			btree_remove32(&lport->lport_fcport_map, key);
lport            1226 drivers/scsi/qla2xxx/tcm_qla2xxx.c 		btree_update32(&lport->lport_fcport_map, key, new_se_nacl);
lport            1234 drivers/scsi/qla2xxx/tcm_qla2xxx.c 		btree_remove32(&lport->lport_fcport_map, key);
lport            1239 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	btree_update32(&lport->lport_fcport_map, key, new_se_nacl);
lport            1254 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport;
lport            1259 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport = vha->vha_tgt.target_lport_ptr;
lport            1260 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	if (!lport) {
lport            1268 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	fc_loopid = lport->lport_loopid_map + loop_id;
lport            1290 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport,
lport            1303 drivers/scsi/qla2xxx/tcm_qla2xxx.c 			lport->lport_loopid_map)[loop_id];
lport            1353 drivers/scsi/qla2xxx/tcm_qla2xxx.c static void tcm_qla2xxx_clear_sess_lookup(struct tcm_qla2xxx_lport *lport,
lport            1358 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	tcm_qla2xxx_set_sess_by_s_id(lport, NULL, nacl, se_sess,
lport            1360 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	tcm_qla2xxx_set_sess_by_loop_id(lport, NULL, nacl, se_sess,
lport            1370 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport;
lport            1381 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport = vha->vha_tgt.target_lport_ptr;
lport            1382 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	if (!lport) {
lport            1397 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = tpg->lport;
lport            1398 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct qla_hw_data *ha = lport->qla_vha->hw;
lport            1411 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	tcm_qla2xxx_set_sess_by_s_id(lport, se_nacl, nacl, se_sess, qlat_sess,
lport            1413 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	tcm_qla2xxx_set_sess_by_loop_id(lport, se_nacl, nacl,
lport            1430 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport;
lport            1437 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport = vha->vha_tgt.target_lport_ptr;
lport            1438 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	if (!lport) {
lport            1446 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	tpg = lport->tpg_1;
lport            1477 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = vha->vha_tgt.target_lport_ptr;
lport            1500 drivers/scsi/qla2xxx/tcm_qla2xxx.c 		if (lport->lport_loopid_map[sess->loop_id].se_nacl == se_nacl)
lport            1501 drivers/scsi/qla2xxx/tcm_qla2xxx.c 			lport->lport_loopid_map[sess->loop_id].se_nacl = NULL;
lport            1503 drivers/scsi/qla2xxx/tcm_qla2xxx.c 		lport->lport_loopid_map[loop_id].se_nacl = se_nacl;
lport            1513 drivers/scsi/qla2xxx/tcm_qla2xxx.c 		if (btree_lookup32(&lport->lport_fcport_map, key))
lport            1514 drivers/scsi/qla2xxx/tcm_qla2xxx.c 			WARN(btree_remove32(&lport->lport_fcport_map, key) !=
lport            1527 drivers/scsi/qla2xxx/tcm_qla2xxx.c 		if (btree_lookup32(&lport->lport_fcport_map, key)) {
lport            1530 drivers/scsi/qla2xxx/tcm_qla2xxx.c 			btree_update32(&lport->lport_fcport_map, key, se_nacl);
lport            1532 drivers/scsi/qla2xxx/tcm_qla2xxx.c 			btree_insert32(&lport->lport_fcport_map, key, se_nacl,
lport            1566 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_init_lport(struct tcm_qla2xxx_lport *lport)
lport            1570 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	rc = btree_init32(&lport->lport_fcport_map);
lport            1576 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport->lport_loopid_map =
lport            1579 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	if (!lport->lport_loopid_map) {
lport            1582 drivers/scsi/qla2xxx/tcm_qla2xxx.c 		btree_destroy32(&lport->lport_fcport_map);
lport            1595 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport =
lport            1602 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport->qla_vha = vha;
lport            1612 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport;
lport            1619 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport = kzalloc(sizeof(struct tcm_qla2xxx_lport), GFP_KERNEL);
lport            1620 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	if (!lport) {
lport            1624 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport->lport_wwpn = wwpn;
lport            1625 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	tcm_qla2xxx_format_wwn(&lport->lport_name[0], TCM_QLA2XXX_NAMELEN,
lport            1627 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	sprintf(lport->lport_naa_name, "naa.%016llx", (unsigned long long) wwpn);
lport            1629 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	ret = tcm_qla2xxx_init_lport(lport);
lport            1633 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	ret = qlt_lport_register(lport, wwpn, 0, 0,
lport            1638 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	return &lport->lport_wwn;
lport            1640 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	vfree(lport->lport_loopid_map);
lport            1641 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	btree_destroy32(&lport->lport_fcport_map);
lport            1643 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	kfree(lport);
lport            1649 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = container_of(wwn,
lport            1651 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct scsi_qla_host *vha = lport->qla_vha;
lport            1665 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	vfree(lport->lport_loopid_map);
lport            1666 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	btree_for_each_safe32(&lport->lport_fcport_map, key, node)
lport            1667 drivers/scsi/qla2xxx/tcm_qla2xxx.c 		btree_remove32(&lport->lport_fcport_map, key);
lport            1668 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	btree_destroy32(&lport->lport_fcport_map);
lport            1669 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	kfree(lport);
lport            1679 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport =
lport            1713 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport->qla_vha = npiv_vha;
lport            1724 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport;
lport            1745 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport = kzalloc(sizeof(struct tcm_qla2xxx_lport), GFP_KERNEL);
lport            1746 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	if (!lport) {
lport            1750 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport->lport_npiv_wwpn = npiv_wwpn;
lport            1751 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	lport->lport_npiv_wwnn = npiv_wwnn;
lport            1752 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	sprintf(lport->lport_naa_name, "naa.%016llx", (unsigned long long) npiv_wwpn);
lport            1754 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	ret = tcm_qla2xxx_init_lport(lport);
lport            1758 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	ret = qlt_lport_register(lport, phys_wwpn, npiv_wwpn, npiv_wwnn,
lport            1763 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	return &lport->lport_wwn;
lport            1765 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	vfree(lport->lport_loopid_map);
lport            1766 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	btree_destroy32(&lport->lport_fcport_map);
lport            1768 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	kfree(lport);
lport            1774 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct tcm_qla2xxx_lport *lport = container_of(wwn,
lport            1776 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	struct scsi_qla_host *npiv_vha = lport->qla_vha;
lport            1786 drivers/scsi/qla2xxx/tcm_qla2xxx.c 	kfree(lport);
lport              46 drivers/scsi/qla2xxx/tcm_qla2xxx.h 	struct tcm_qla2xxx_lport *lport;
lport              55 drivers/target/tcm_fc/tcm_fc.h 	struct fc_lport *lport;
lport             106 drivers/target/tcm_fc/tfc_cmd.c 	struct fc_lport *lport;
lport             115 drivers/target/tcm_fc/tfc_cmd.c 	lport = ep->lp;
lport             117 drivers/target/tcm_fc/tfc_cmd.c 	fp = fc_frame_alloc(lport, len);
lport             153 drivers/target/tcm_fc/tfc_cmd.c 	rc = fc_seq_send(lport, cmd->seq, fp);
lport             183 drivers/target/tcm_fc/tfc_cmd.c 	struct fc_lport *lport;
lport             193 drivers/target/tcm_fc/tfc_cmd.c 	lport = ep->lp;
lport             194 drivers/target/tcm_fc/tfc_cmd.c 	fp = fc_frame_alloc(lport, sizeof(*txrdy));
lport             214 drivers/target/tcm_fc/tfc_cmd.c 		if ((ep->xid <= lport->lro_xid) &&
lport             217 drivers/target/tcm_fc/tfc_cmd.c 			    lport->tt.ddp_target(lport, ep->xid,
lport             223 drivers/target/tcm_fc/tfc_cmd.c 	fc_seq_send(lport, cmd->seq, fp);
lport             271 drivers/target/tcm_fc/tfc_cmd.c static void ft_send_resp_status(struct fc_lport *lport,
lport             288 drivers/target/tcm_fc/tfc_cmd.c 	fp = fc_frame_alloc(lport, len);
lport             304 drivers/target/tcm_fc/tfc_cmd.c 		fc_seq_send(lport, sp, fp);
lport             307 drivers/target/tcm_fc/tfc_cmd.c 		lport->tt.frame_send(lport, fp);
lport             317 drivers/target/tcm_fc/tfc_cmd.c 	ft_send_resp_status(cmd->sess->tport->lport,
lport             429 drivers/target/tcm_fc/tfc_cmd.c 	struct fc_lport *lport = sess->tport->lport;
lport             443 drivers/target/tcm_fc/tfc_cmd.c 	cmd->seq = fc_seq_assign(lport, fp);
lport             456 drivers/target/tcm_fc/tfc_cmd.c 	ft_send_resp_status(lport, fp, SAM_STAT_BUSY, 0);
lport             305 drivers/target/tcm_fc/tfc_conf.c struct ft_tpg *ft_lport_find_tpg(struct fc_lport *lport)
lport             310 drivers/target/tcm_fc/tfc_conf.c 		if (ft_wwn->wwpn == lport->wwpn)
lport              47 drivers/target/tcm_fc/tfc_io.c 	struct fc_lport *lport;
lport              72 drivers/target/tcm_fc/tfc_io.c 	lport = ep->lp;
lport             111 drivers/target/tcm_fc/tfc_io.c 			frame_len = (lport->seq_offload) ? lport->lso_max :
lport             114 drivers/target/tcm_fc/tfc_io.c 			fp = fc_frame_alloc(lport, use_sg ? 0 : frame_len);
lport             164 drivers/target/tcm_fc/tfc_io.c 		error = fc_seq_send(lport, seq, fp);
lport             170 drivers/target/tcm_fc/tfc_io.c 						remaining, lport->lso_max);
lport             201 drivers/target/tcm_fc/tfc_io.c 	struct fc_lport *lport;
lport             222 drivers/target/tcm_fc/tfc_io.c 	lport = ep->lp;
lport             225 drivers/target/tcm_fc/tfc_io.c 		BUG_ON(!lport);
lport             333 drivers/target/tcm_fc/tfc_io.c 	struct fc_lport *lport = NULL;
lport             342 drivers/target/tcm_fc/tfc_io.c 			lport = ep->lp;
lport             343 drivers/target/tcm_fc/tfc_io.c 			if (lport && (ep->xid <= lport->lro_xid)) {
lport             348 drivers/target/tcm_fc/tfc_io.c 				cmd->write_data_len = lport->tt.ddp_done(lport,
lport              30 drivers/target/tcm_fc/tfc_sess.c #define TFC_SESS_DBG(lport, fmt, args...) \
lport              32 drivers/target/tcm_fc/tfc_sess.c 		 (lport)->host->host_no,	   \
lport              33 drivers/target/tcm_fc/tfc_sess.c 		 (lport)->port_id, ##args )
lport              41 drivers/target/tcm_fc/tfc_sess.c static struct ft_tport *ft_tport_get(struct fc_lport *lport)
lport              47 drivers/target/tcm_fc/tfc_sess.c 	tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP],
lport              52 drivers/target/tcm_fc/tfc_sess.c 	tpg = ft_lport_find_tpg(lport);
lport              66 drivers/target/tcm_fc/tfc_sess.c 	tport->lport = lport;
lport              72 drivers/target/tcm_fc/tfc_sess.c 	rcu_assign_pointer(lport->prov[FC_TYPE_FCP], tport);
lport              82 drivers/target/tcm_fc/tfc_sess.c 	struct fc_lport *lport;
lport              86 drivers/target/tcm_fc/tfc_sess.c 	lport = tport->lport;
lport              87 drivers/target/tcm_fc/tfc_sess.c 	lport->service_params &= ~FCP_SPPF_TARG_FCN;
lport              88 drivers/target/tcm_fc/tfc_sess.c 	BUG_ON(tport != lport->prov[FC_TYPE_FCP]);
lport              89 drivers/target/tcm_fc/tfc_sess.c 	RCU_INIT_POINTER(lport->prov[FC_TYPE_FCP], NULL);
lport             103 drivers/target/tcm_fc/tfc_sess.c void ft_lport_add(struct fc_lport *lport, void *arg)
lport             106 drivers/target/tcm_fc/tfc_sess.c 	ft_tport_get(lport);
lport             107 drivers/target/tcm_fc/tfc_sess.c 	lport->service_params |= FCP_SPPF_TARG_FCN;
lport             115 drivers/target/tcm_fc/tfc_sess.c void ft_lport_del(struct fc_lport *lport, void *arg)
lport             120 drivers/target/tcm_fc/tfc_sess.c 	tport = lport->prov[FC_TYPE_FCP];
lport             132 drivers/target/tcm_fc/tfc_sess.c 	struct fc_lport *lport = arg;
lport             136 drivers/target/tcm_fc/tfc_sess.c 		ft_lport_add(lport, NULL);
lport             139 drivers/target/tcm_fc/tfc_sess.c 		ft_lport_del(lport, NULL);
lport             158 drivers/target/tcm_fc/tfc_sess.c static struct ft_sess *ft_sess_get(struct fc_lport *lport, u32 port_id)
lport             166 drivers/target/tcm_fc/tfc_sess.c 	tport = rcu_dereference(lport->prov[FC_TYPE_FCP]);
lport             177 drivers/target/tcm_fc/tfc_sess.c 			TFC_SESS_DBG(lport, "port_id %x found %p\n",
lport             184 drivers/target/tcm_fc/tfc_sess.c 	TFC_SESS_DBG(lport, "port_id %x not found, %s\n",
lport             196 drivers/target/tcm_fc/tfc_sess.c 	TFC_SESS_DBG(tport->lport, "port_id %x sess %p\n", sess->port_id, sess);
lport             320 drivers/target/tcm_fc/tfc_sess.c 	TFC_SESS_DBG(sess->tport->lport, "port_id %x close session\n", port_id);
lport             478 drivers/target/tcm_fc/tfc_sess.c static void ft_recv(struct fc_lport *lport, struct fc_frame *fp)
lport             483 drivers/target/tcm_fc/tfc_sess.c 	TFC_SESS_DBG(lport, "recv sid %x\n", sid);
lport             485 drivers/target/tcm_fc/tfc_sess.c 	sess = ft_sess_get(lport, sid);
lport             487 drivers/target/tcm_fc/tfc_sess.c 		TFC_SESS_DBG(lport, "sid %x sess lookup failed\n", sid);
lport             677 include/linux/ntb.h 	int lport = ntb_port_number(ntb);
lport             680 include/linux/ntb.h 	if (lport < 0)
lport             681 include/linux/ntb.h 		return lport;
lport             684 include/linux/ntb.h 		if (lport <= ntb_peer_port_number(ntb, pidx))
lport              28 include/net/inet6_hashtables.h 				    const u16 lport,
lport              33 include/net/inet6_hashtables.h 	const u32 ports = (((u32)lport) << 16) | (__force u32)fport;
lport             218 include/net/inet_hashtables.h static inline u32 inet_bhashfn(const struct net *net, const __u16 lport,
lport             221 include/net/inet_hashtables.h 	return (lport + net_hash_mix(net)) & (bhash_size - 1);
lport             402 include/net/inet_hashtables.h 		  const struct in6_addr *laddr, const u16 lport,
lport             334 include/net/inet_sock.h 					  const __u16 lport,
lport             341 include/net/inet_sock.h 			    ((__u32) lport) << 16 | (__force __u32)fport,
lport              49 include/net/netfilter/nf_tproxy.h 			    __be32 laddr, __be16 lport, struct sock *sk);
lport             110 include/net/netfilter/nf_tproxy.h 			    const __be16 lport,
lport             498 include/net/sctp/sctp.h static inline int sctp_phashfn(struct net *net, __u16 lport)
lport             500 include/net/sctp/sctp.h 	return (net_hash_mix(net) + lport) & (sctp_port_hashsize - 1);
lport             504 include/net/sctp/sctp.h static inline int sctp_ep_hashfn(struct net *net, __u16 lport)
lport             506 include/net/sctp/sctp.h 	return (net_hash_mix(net) + lport) & (sctp_ep_hashsize - 1);
lport              76 include/scsi/fc_encode.h static inline void fc_adisc_fill(struct fc_lport *lport, struct fc_frame *fp)
lport              83 include/scsi/fc_encode.h 	put_unaligned_be64(lport->wwpn, &adisc->adisc_wwpn);
lport              84 include/scsi/fc_encode.h 	put_unaligned_be64(lport->wwnn, &adisc->adisc_wwnn);
lport              85 include/scsi/fc_encode.h 	hton24(adisc->adisc_port_id, lport->port_id);
lport             119 include/scsi/fc_encode.h static inline int fc_ct_ns_fill(struct fc_lport *lport,
lport             144 include/scsi/fc_encode.h 		hton24(ct->payload.rft.fid.fp_fid, lport->port_id);
lport             145 include/scsi/fc_encode.h 		ct->payload.rft.fts = lport->fcts;
lport             151 include/scsi/fc_encode.h 		hton24(ct->payload.rff.fr_fid.fp_fid, lport->port_id);
lport             153 include/scsi/fc_encode.h 		if (lport->service_params & FCP_SPPF_INIT_FCN)
lport             155 include/scsi/fc_encode.h 		if (lport->service_params & FCP_SPPF_TARG_FCN)
lport             162 include/scsi/fc_encode.h 		hton24(ct->payload.rn.fr_fid.fp_fid, lport->port_id);
lport             163 include/scsi/fc_encode.h 		put_unaligned_be64(lport->wwnn, &ct->payload.rn.fr_wwn);
lport             167 include/scsi/fc_encode.h 		len = strnlen(fc_host_symbolic_name(lport->host), 255);
lport             170 include/scsi/fc_encode.h 		hton24(ct->payload.spn.fr_fid.fp_fid, lport->port_id);
lport             172 include/scsi/fc_encode.h 			fc_host_symbolic_name(lport->host), len);
lport             177 include/scsi/fc_encode.h 		len = strnlen(fc_host_symbolic_name(lport->host), 255);
lport             180 include/scsi/fc_encode.h 		put_unaligned_be64(lport->wwnn, &ct->payload.snn.fr_wwn);
lport             182 include/scsi/fc_encode.h 			fc_host_symbolic_name(lport->host), len);
lport             203 include/scsi/fc_encode.h static inline int fc_ct_ms_fill(struct fc_lport *lport,
lport             234 include/scsi/fc_encode.h 		put_unaligned_be64(lport->wwpn, &ct->payload.rhba.hbaid.id);
lport             238 include/scsi/fc_encode.h 		put_unaligned_be64(lport->wwpn,
lport             252 include/scsi/fc_encode.h 		put_unaligned_be64(lport->wwnn,
lport             264 include/scsi/fc_encode.h 			fc_host_manufacturer(lport->host),
lport             276 include/scsi/fc_encode.h 			fc_host_serial_number(lport->host),
lport             288 include/scsi/fc_encode.h 			fc_host_model(lport->host),
lport             300 include/scsi/fc_encode.h 			fc_host_model_description(lport->host),
lport             312 include/scsi/fc_encode.h 			fc_host_hardware_version(lport->host),
lport             324 include/scsi/fc_encode.h 			fc_host_driver_version(lport->host),
lport             336 include/scsi/fc_encode.h 			fc_host_optionrom_version(lport->host),
lport             348 include/scsi/fc_encode.h 			fc_host_firmware_version(lport->host),
lport             380 include/scsi/fc_encode.h 		put_unaligned_be64(lport->wwpn,
lport             396 include/scsi/fc_encode.h 		memcpy(&entry->value, fc_host_supported_fc4s(lport->host),
lport             408 include/scsi/fc_encode.h 		put_unaligned_be32(fc_host_supported_speeds(lport->host),
lport             419 include/scsi/fc_encode.h 		put_unaligned_be32(lport->link_speed,
lport             430 include/scsi/fc_encode.h 		put_unaligned_be32(fc_host_maxframe_size(lport->host),
lport             443 include/scsi/fc_encode.h 			dev_name(&lport->host->shost_gendev),
lport             444 include/scsi/fc_encode.h 			strnlen(dev_name(&lport->host->shost_gendev),
lport             455 include/scsi/fc_encode.h 		if (strlen(fc_host_system_hostname(lport->host)))
lport             457 include/scsi/fc_encode.h 				fc_host_system_hostname(lport->host),
lport             458 include/scsi/fc_encode.h 				strnlen(fc_host_system_hostname(lport->host),
lport             470 include/scsi/fc_encode.h 		put_unaligned_be64(lport->wwpn,
lport             478 include/scsi/fc_encode.h 		put_unaligned_be64(lport->wwpn, &ct->payload.dhba.hbaid.id);
lport             497 include/scsi/fc_encode.h static inline int fc_ct_fill(struct fc_lport *lport,
lport             506 include/scsi/fc_encode.h 		rc = fc_ct_ms_fill(lport, fc_id, fp, op, r_ctl, fh_type);
lport             511 include/scsi/fc_encode.h 		rc = fc_ct_ns_fill(lport, fc_id, fp, op, r_ctl, fh_type);
lport             521 include/scsi/fc_encode.h static inline void fc_plogi_fill(struct fc_lport *lport, struct fc_frame *fp,
lport             531 include/scsi/fc_encode.h 	put_unaligned_be64(lport->wwpn, &plogi->fl_wwpn);
lport             532 include/scsi/fc_encode.h 	put_unaligned_be64(lport->wwnn, &plogi->fl_wwnn);
lport             538 include/scsi/fc_encode.h 	csp->sp_bb_data = htons((u16) lport->mfs);
lport             544 include/scsi/fc_encode.h 	csp->sp_e_d_tov = htonl(lport->e_d_tov);
lport             546 include/scsi/fc_encode.h 	cp->cp_rdfs = htons((u16) lport->mfs);
lport             554 include/scsi/fc_encode.h static inline void fc_flogi_fill(struct fc_lport *lport, struct fc_frame *fp)
lport             563 include/scsi/fc_encode.h 	put_unaligned_be64(lport->wwpn, &flogi->fl_wwpn);
lport             564 include/scsi/fc_encode.h 	put_unaligned_be64(lport->wwnn, &flogi->fl_wwnn);
lport             569 include/scsi/fc_encode.h 	sp->sp_bb_data = htons((u16) lport->mfs);
lport             572 include/scsi/fc_encode.h 	if (lport->does_npiv)
lport             579 include/scsi/fc_encode.h static inline void fc_fdisc_fill(struct fc_lport *lport, struct fc_frame *fp)
lport             588 include/scsi/fc_encode.h 	put_unaligned_be64(lport->wwpn, &fdisc->fl_wwpn);
lport             589 include/scsi/fc_encode.h 	put_unaligned_be64(lport->wwnn, &fdisc->fl_wwnn);
lport             594 include/scsi/fc_encode.h 	sp->sp_bb_data = htons((u16) lport->mfs);
lport             602 include/scsi/fc_encode.h static inline void fc_logo_fill(struct fc_lport *lport, struct fc_frame *fp)
lport             609 include/scsi/fc_encode.h 	hton24(logo->fl_n_port_id, lport->port_id);
lport             610 include/scsi/fc_encode.h 	logo->fl_n_port_wwn = htonll(lport->wwpn);
lport             616 include/scsi/fc_encode.h static inline void fc_rtv_fill(struct fc_lport *lport, struct fc_frame *fp)
lport             628 include/scsi/fc_encode.h static inline void fc_rec_fill(struct fc_lport *lport, struct fc_frame *fp)
lport             636 include/scsi/fc_encode.h 	hton24(rec->rec_s_id, lport->port_id);
lport             644 include/scsi/fc_encode.h static inline void fc_prli_fill(struct fc_lport *lport, struct fc_frame *fp)
lport             658 include/scsi/fc_encode.h 	pp->spp.spp_params = htonl(lport->service_params);
lport             664 include/scsi/fc_encode.h static inline void fc_scr_fill(struct fc_lport *lport, struct fc_frame *fp)
lport             677 include/scsi/fc_encode.h static inline int fc_els_fill(struct fc_lport *lport,
lport             684 include/scsi/fc_encode.h 		fc_adisc_fill(lport, fp);
lport             688 include/scsi/fc_encode.h 		fc_plogi_fill(lport, fp, ELS_PLOGI);
lport             692 include/scsi/fc_encode.h 		fc_flogi_fill(lport, fp);
lport             696 include/scsi/fc_encode.h 		fc_fdisc_fill(lport, fp);
lport             700 include/scsi/fc_encode.h 		fc_logo_fill(lport, fp);
lport             704 include/scsi/fc_encode.h 		fc_rtv_fill(lport, fp);
lport             708 include/scsi/fc_encode.h 		fc_rec_fill(lport, fp);
lport             712 include/scsi/fc_encode.h 		fc_prli_fill(lport, fp);
lport             716 include/scsi/fc_encode.h 		fc_scr_fill(lport, fp);
lport             783 include/scsi/libfc.h static inline int fc_lport_test_ready(struct fc_lport *lport)
lport             785 include/scsi/libfc.h 	return lport->state == LPORT_ST_READY;
lport             793 include/scsi/libfc.h static inline void fc_set_wwnn(struct fc_lport *lport, u64 wwnn)
lport             795 include/scsi/libfc.h 	lport->wwnn = wwnn;
lport             803 include/scsi/libfc.h static inline void fc_set_wwpn(struct fc_lport *lport, u64 wwpn)
lport             805 include/scsi/libfc.h 	lport->wwpn = wwpn;
lport             813 include/scsi/libfc.h static inline void fc_lport_state_enter(struct fc_lport *lport,
lport             816 include/scsi/libfc.h 	if (state != lport->state)
lport             817 include/scsi/libfc.h 		lport->retry_count = 0;
lport             818 include/scsi/libfc.h 	lport->state = state;
lport             825 include/scsi/libfc.h static inline int fc_lport_init_stats(struct fc_lport *lport)
lport             827 include/scsi/libfc.h 	lport->stats = alloc_percpu(struct fc_stats);
lport             828 include/scsi/libfc.h 	if (!lport->stats)
lport             837 include/scsi/libfc.h static inline void fc_lport_free_stats(struct fc_lport *lport)
lport             839 include/scsi/libfc.h 	free_percpu(lport->stats);
lport             846 include/scsi/libfc.h static inline void *lport_priv(const struct fc_lport *lport)
lport             848 include/scsi/libfc.h 	return (void *)(lport + 1);
lport             862 include/scsi/libfc.h 	struct fc_lport *lport;
lport             865 include/scsi/libfc.h 	shost = scsi_host_alloc(sht, sizeof(*lport) + priv_size);
lport             868 include/scsi/libfc.h 	lport = shost_priv(shost);
lport             869 include/scsi/libfc.h 	lport->host = shost;
lport             870 include/scsi/libfc.h 	INIT_LIST_HEAD(&lport->ema_list);
lport             871 include/scsi/libfc.h 	INIT_LIST_HEAD(&lport->vports);
lport             872 include/scsi/libfc.h 	return lport;
lport             900 include/scsi/libfc.h void fc_lport_recv(struct fc_lport *lport, struct fc_frame *fp);
lport             912 include/scsi/libfc.h struct fc_rport_priv *fc_rport_lookup(const struct fc_lport *lport,
lport             918 include/scsi/libfc.h void fc_rport_recv_req(struct fc_lport *lport, struct fc_frame *fp);
lport             970 include/scsi/libfc.h void fc_exch_update_stats(struct fc_lport *lport);
lport             971 include/scsi/libfc.h struct fc_seq *fc_exch_seq_send(struct fc_lport *lport,
lport             984 include/scsi/libfc.h struct fc_seq *fc_seq_assign(struct fc_lport *lport, struct fc_frame *fp);
lport             997 include/scsi/libfc.h int fc_seq_send(struct fc_lport *lport, struct fc_seq *sp, struct fc_frame *fp);
lport             258 include/scsi/libfcoe.h void __fcoe_get_lesb(struct fc_lport *lport, struct fc_els_lesb *fc_lesb,
lport             350 include/scsi/libfcoe.h 	struct fc_lport	      *lport;
lport             358 include/scsi/libfcoe.h 	struct net_device * (*get_netdev)(const struct fc_lport *lport);
lport             365 include/scsi/libfcoe.h static inline struct net_device *fcoe_get_netdev(const struct fc_lport *lport)
lport             367 include/scsi/libfcoe.h 	struct fcoe_port *port = ((struct fcoe_port *)lport_priv(lport));
lport             369 include/scsi/libfcoe.h 	return (port->get_netdev) ? port->get_netdev(lport) : NULL;
lport             373 include/scsi/libfcoe.h void fcoe_check_wait_queue(struct fc_lport *lport, struct sk_buff *skb);
lport              19 include/trace/events/udp.h 		__field(__u16, lport)
lport              24 include/trace/events/udp.h 		__entry->lport = inet_sk(sk)->inet_num;
lport              27 include/trace/events/udp.h 	TP_printk("rc=%d port=%hu", __entry->rc, __entry->lport)
lport              15 include/uapi/linux/netfilter/xt_TPROXY.h 	__be16 lport;
lport              22 include/uapi/linux/netfilter/xt_TPROXY.h 	__be16 lport;
lport             178 include/uapi/linux/rds.h 	__be16		lport;
lport             189 include/uapi/linux/rds.h 	__be16		lport;
lport             282 net/bridge/br_forward.c 		struct net_bridge_port *port, *lport, *rport;
lport             284 net/bridge/br_forward.c 		lport = p ? p->port : NULL;
lport             287 net/bridge/br_forward.c 		if ((unsigned long)lport > (unsigned long)rport) {
lport             288 net/bridge/br_forward.c 			port = lport;
lport             291 net/bridge/br_forward.c 				maybe_deliver_addr(lport, skb, p->eth_addr,
lport             303 net/bridge/br_forward.c 		if ((unsigned long)lport >= (unsigned long)port)
lport              29 net/ipv4/inet_hashtables.c 			const __u16 lport, const __be32 faddr,
lport              36 net/ipv4/inet_hashtables.c 	return __inet_ehashfn(laddr, lport, faddr, fport,
lport             396 net/ipv4/inet_hashtables.c 				    struct sock *sk, __u16 lport,
lport             407 net/ipv4/inet_hashtables.c 	const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport);
lport             408 net/ipv4/inet_hashtables.c 	unsigned int hash = inet_ehashfn(net, daddr, lport,
lport             436 net/ipv4/inet_hashtables.c 	inet->inet_num = lport;
lport             437 net/ipv4/inet_hashtables.c 	inet->inet_sport = htons(lport);
lport              22 net/ipv4/netfilter/nf_socket_ipv4.c 		     __be16 *rport, __be16 *lport)
lport              66 net/ipv4/netfilter/nf_socket_ipv4.c 	*lport = ports[0];
lport              20 net/ipv4/netfilter/nf_tproxy_ipv4.c 			 __be32 laddr, __be16 lport, struct sock *sk)
lport              38 net/ipv4/netfilter/nf_tproxy_ipv4.c 					    hp->source, lport ? lport : hp->dest,
lport             397 net/ipv4/udp.c 		       const __u16 lport, const __be32 faddr,
lport             404 net/ipv4/udp.c 	return __inet_ehashfn(laddr, lport, faddr, fport,
lport              25 net/ipv6/inet6_hashtables.c 		  const struct in6_addr *laddr, const u16 lport,
lport              39 net/ipv6/inet6_hashtables.c 	return __inet6_ehashfn(lhash, lport, fhash, fport,
lport             201 net/ipv6/inet6_hashtables.c 				     struct sock *sk, const __u16 lport,
lport             211 net/ipv6/inet6_hashtables.c 	const __portpair ports = INET_COMBINED_PORTS(inet->inet_dport, lport);
lport             212 net/ipv6/inet6_hashtables.c 	const unsigned int hash = inet6_ehashfn(net, daddr, lport, saddr,
lport             240 net/ipv6/inet6_hashtables.c 	inet->inet_num = lport;
lport             241 net/ipv6/inet6_hashtables.c 	inet->inet_sport = htons(lport);
lport              27 net/ipv6/netfilter/nf_socket_ipv6.c 		     __be16 *lport,
lport              70 net/ipv6/netfilter/nf_socket_ipv6.c 	*lport = ports[0];
lport              42 net/ipv6/netfilter/nf_tproxy_ipv6.c 			 const __be16 lport,
lport              63 net/ipv6/netfilter/nf_tproxy_ipv6.c 					    lport ? lport : hp->dest,
lport              59 net/ipv6/udp.c 			const u16 lport,
lport              76 net/ipv6/udp.c 	return __inet6_ehashfn(lhash, lport, fhash, fport,
lport              36 net/netfilter/xt_TPROXY.c tproxy_tg4(struct net *net, struct sk_buff *skb, __be32 laddr, __be16 lport,
lport              57 net/netfilter/xt_TPROXY.c 	if (!lport)
lport              58 net/netfilter/xt_TPROXY.c 		lport = hp->dest;
lport              63 net/netfilter/xt_TPROXY.c 		sk = nf_tproxy_handle_time_wait4(net, skb, laddr, lport, sk);
lport              69 net/netfilter/xt_TPROXY.c 					   hp->source, lport,
lport              80 net/netfilter/xt_TPROXY.c 			 &laddr, ntohs(lport), skb->mark);
lport              97 net/netfilter/xt_TPROXY.c 	return tproxy_tg4(xt_net(par), skb, tgi->laddr, tgi->lport,
lport             106 net/netfilter/xt_TPROXY.c 	return tproxy_tg4(xt_net(par), skb, tgi->laddr.ip, tgi->lport,
lport             120 net/netfilter/xt_TPROXY.c 	__be16 lport;
lport             146 net/netfilter/xt_TPROXY.c 	lport = tgi->lport ? tgi->lport : hp->dest;
lport             155 net/netfilter/xt_TPROXY.c 					      tgi->lport,
lport             163 net/netfilter/xt_TPROXY.c 					   hp->source, lport,
lport             174 net/netfilter/xt_TPROXY.c 			 laddr, ntohs(lport), skb->mark);
lport             792 net/rds/recv.c 		minfo.lport = inc->i_hdr.h_dport;
lport             797 net/rds/recv.c 		minfo.lport = inc->i_hdr.h_sport;
lport             821 net/rds/recv.c 		minfo6.lport = inc->i_hdr.h_dport;
lport             826 net/rds/recv.c 		minfo6.lport = inc->i_hdr.h_sport;
lport             812 net/sctp/input.c static inline __u32 sctp_hashfn(const struct net *net, __be16 lport,
lport             823 net/sctp/input.c 			     (__force __u32)lport, net_hash_mix(net), seed);
lport             836 net/sctp/input.c 	__be16 lport;
lport             839 net/sctp/input.c 	lport = laddr->v4.sin_port;
lport             840 net/sctp/input.c 	hash = sctp_ep_hashfn(net, ntohs(lport));
lport             854 net/sctp/input.c 		__u32 phash = sctp_hashfn(net, lport, paddr, 0);
lport             870 net/sctp/input.c 	__be16			lport;
lport             887 net/sctp/input.c 	if (x->lport != htons(t->asoc->base.bind_addr.port))
lport             909 net/sctp/input.c 	return sctp_hashfn(x->net, x->lport, x->paddr, seed);
lport             942 net/sctp/input.c 	arg.lport = htons(t->asoc->base.bind_addr.port);
lport             983 net/sctp/input.c 		.lport = laddr->v4.sin_port,
lport            1013 net/sctp/input.c 		.lport = htons(ep->base.bind_addr.port),
lport              12 tools/testing/selftests/bpf/progs/sockmap_parse_prog.c 	__u32 lport = skb->local_port;
lport              40 tools/testing/selftests/bpf/progs/sockmap_verdict_prog.c 	__u32 lport = skb->local_port;
lport              96 tools/testing/selftests/bpf/test_sockmap_kern.h 	__u32 lport = skb->local_port;
lport             101 tools/testing/selftests/bpf/test_sockmap_kern.h 	if (lport == 10000)
lport             126 tools/testing/selftests/bpf/test_sockmap_kern.h 	__u32 lport, rport;
lport             134 tools/testing/selftests/bpf/test_sockmap_kern.h 		lport = skops->local_port;
lport             137 tools/testing/selftests/bpf/test_sockmap_kern.h 		if (lport == 10000) {
lport             147 tools/testing/selftests/bpf/test_sockmap_kern.h 				   lport, bpf_ntohl(rport), err);
lport             151 tools/testing/selftests/bpf/test_sockmap_kern.h 		lport = skops->local_port;
lport             164 tools/testing/selftests/bpf/test_sockmap_kern.h 				   lport, bpf_ntohl(rport), err);