fcport           1291 drivers/scsi/bfa/bfa_fcs_lport.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(port->fcs->bfa);
fcport           1293 drivers/scsi/bfa/bfa_fcs_lport.c 	port->port_topo.ploop.alpabm_valid = fcport->alpabm_valid;
fcport           1294 drivers/scsi/bfa/bfa_fcs_lport.c 	port->pid = fcport->myalpa;
fcport           1299 drivers/scsi/bfa/bfa_fcs_lport.c 			bfa_trc(port->fcs->bfa, fcport->alpabm.alpa_bm[i]);
fcport           1300 drivers/scsi/bfa/bfa_fcs_lport.c 			bit = (fcport->alpabm.alpa_bm[i] & (1 << (7 - j)));
fcport             26 drivers/scsi/bfa/bfa_modules.h 	struct bfa_fcport_s	fcport;		/*  fc port module	      */
fcport            140 drivers/scsi/bfa/bfa_svc.c static bfa_boolean_t bfa_fcport_send_enable(struct bfa_fcport_s *fcport);
fcport            141 drivers/scsi/bfa/bfa_svc.c static bfa_boolean_t bfa_fcport_send_disable(struct bfa_fcport_s *fcport);
fcport            142 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_update_linkinfo(struct bfa_fcport_s *fcport);
fcport            143 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_reset_linkinfo(struct bfa_fcport_s *fcport);
fcport            144 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_set_wwns(struct bfa_fcport_s *fcport);
fcport            146 drivers/scsi/bfa/bfa_svc.c static void bfa_fcport_scn(struct bfa_fcport_s *fcport,
fcport            158 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_uninit(struct bfa_fcport_s *fcport,
fcport            160 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_enabling_qwait(struct bfa_fcport_s *fcport,
fcport            162 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_enabling(struct bfa_fcport_s *fcport,
fcport            164 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_linkdown(struct bfa_fcport_s *fcport,
fcport            166 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_linkup(struct bfa_fcport_s *fcport,
fcport            168 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_disabling(struct bfa_fcport_s *fcport,
fcport            170 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_disabling_qwait(struct bfa_fcport_s *fcport,
fcport            172 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_toggling_qwait(struct bfa_fcport_s *fcport,
fcport            174 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_disabled(struct bfa_fcport_s *fcport,
fcport            176 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_stopped(struct bfa_fcport_s *fcport,
fcport            178 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_iocdown(struct bfa_fcport_s *fcport,
fcport            180 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_iocfail(struct bfa_fcport_s *fcport,
fcport            182 drivers/scsi/bfa/bfa_svc.c static void	bfa_fcport_sm_dport(struct bfa_fcport_s *fcport,
fcport            184 drivers/scsi/bfa/bfa_svc.c static void     bfa_fcport_sm_ddport(struct bfa_fcport_s *fcport,
fcport            186 drivers/scsi/bfa/bfa_svc.c static void	bfa_fcport_sm_faa_misconfig(struct bfa_fcport_s *fcport,
fcport           2003 drivers/scsi/bfa/bfa_svc.c bfa_fcport_aen_post(struct bfa_fcport_s *fcport, enum bfa_port_aen_event event)
fcport           2005 drivers/scsi/bfa/bfa_svc.c 	struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad;
fcport           2012 drivers/scsi/bfa/bfa_svc.c 	aen_entry->aen_data.port.ioc_type = bfa_get_type(fcport->bfa);
fcport           2013 drivers/scsi/bfa/bfa_svc.c 	aen_entry->aen_data.port.pwwn = fcport->pwwn;
fcport           2016 drivers/scsi/bfa/bfa_svc.c 	bfad_im_post_vendor_event(aen_entry, bfad, ++fcport->bfa->bfa_aen_seq,
fcport           2024 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_uninit(struct bfa_fcport_s *fcport,
fcport           2027 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2034 drivers/scsi/bfa/bfa_svc.c 		fcport->use_flash_cfg = BFA_TRUE;
fcport           2036 drivers/scsi/bfa/bfa_svc.c 		if (bfa_fcport_send_enable(fcport)) {
fcport           2037 drivers/scsi/bfa/bfa_svc.c 			bfa_trc(fcport->bfa, BFA_TRUE);
fcport           2038 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_enabling);
fcport           2040 drivers/scsi/bfa/bfa_svc.c 			bfa_trc(fcport->bfa, BFA_FALSE);
fcport           2041 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport,
fcport           2059 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_disabled);
fcport           2063 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocdown);
fcport           2067 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2072 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_enabling_qwait(struct bfa_fcport_s *fcport,
fcport           2076 drivers/scsi/bfa/bfa_svc.c 	struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad;
fcport           2077 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2081 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_enabling);
fcport           2082 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_send_enable(fcport);
fcport           2086 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wcancel(&fcport->reqq_wait);
fcport           2087 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2101 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_disabled);
fcport           2102 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wcancel(&fcport->reqq_wait);
fcport           2103 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2105 drivers/scsi/bfa/bfa_svc.c 		wwn2str(pwwn_buf, fcport->pwwn);
fcport           2108 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISABLE);
fcport           2120 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wcancel(&fcport->reqq_wait);
fcport           2121 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocdown);
fcport           2125 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2126 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISCONNECT);
fcport           2127 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_faa_misconfig);
fcport           2131 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2136 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_enabling(struct bfa_fcport_s *fcport,
fcport           2140 drivers/scsi/bfa/bfa_svc.c 	struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad;
fcport           2141 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2146 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_linkdown);
fcport           2150 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_update_linkinfo(fcport);
fcport           2151 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_linkup);
fcport           2153 drivers/scsi/bfa/bfa_svc.c 		WARN_ON(!fcport->event_cbfn);
fcport           2154 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_scn(fcport, BFA_PORT_LINKUP, BFA_FALSE);
fcport           2164 drivers/scsi/bfa/bfa_svc.c 		if (bfa_fcport_send_disable(fcport))
fcport           2165 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_disabling);
fcport           2167 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport,
fcport           2170 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2172 drivers/scsi/bfa/bfa_svc.c 		wwn2str(pwwn_buf, fcport->pwwn);
fcport           2175 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISABLE);
fcport           2179 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2183 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocdown);
fcport           2187 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2188 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISCONNECT);
fcport           2189 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_faa_misconfig);
fcport           2193 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2198 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_linkdown(struct bfa_fcport_s *fcport,
fcport           2201 drivers/scsi/bfa/bfa_svc.c 	struct bfi_fcport_event_s *pevent = fcport->event_arg.i2hmsg.event;
fcport           2203 drivers/scsi/bfa/bfa_svc.c 	struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad;
fcport           2205 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2209 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_update_linkinfo(fcport);
fcport           2210 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_linkup);
fcport           2211 drivers/scsi/bfa/bfa_svc.c 		WARN_ON(!fcport->event_cbfn);
fcport           2212 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2214 drivers/scsi/bfa/bfa_svc.c 		if (!bfa_ioc_get_fcmode(&fcport->bfa->ioc)) {
fcport           2216 drivers/scsi/bfa/bfa_svc.c 			bfa_trc(fcport->bfa,
fcport           2218 drivers/scsi/bfa/bfa_svc.c 			bfa_trc(fcport->bfa,
fcport           2222 drivers/scsi/bfa/bfa_svc.c 				bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2226 drivers/scsi/bfa/bfa_svc.c 				bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2231 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_scn(fcport, BFA_PORT_LINKUP, BFA_FALSE);
fcport           2232 drivers/scsi/bfa/bfa_svc.c 		wwn2str(pwwn_buf, fcport->pwwn);
fcport           2235 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_ONLINE);
fcport           2238 drivers/scsi/bfa/bfa_svc.c 		if (fcport->cfg.qos_enabled &&
fcport           2239 drivers/scsi/bfa/bfa_svc.c 		    fcport->qos_attr.state != BFA_QOS_ONLINE)
fcport           2240 drivers/scsi/bfa/bfa_svc.c 			bfa_fcport_aen_post(fcport, BFA_PORT_AEN_QOS_NEG);
fcport           2256 drivers/scsi/bfa/bfa_svc.c 		if (bfa_fcport_send_disable(fcport))
fcport           2257 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_disabling);
fcport           2259 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport,
fcport           2262 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2264 drivers/scsi/bfa/bfa_svc.c 		wwn2str(pwwn_buf, fcport->pwwn);
fcport           2267 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISABLE);
fcport           2271 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2275 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocdown);
fcport           2279 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2280 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISCONNECT);
fcport           2281 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_faa_misconfig);
fcport           2285 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2290 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_linkup(struct bfa_fcport_s *fcport,
fcport           2294 drivers/scsi/bfa/bfa_svc.c 	struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad;
fcport           2296 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2306 drivers/scsi/bfa/bfa_svc.c 		if (bfa_fcport_send_disable(fcport))
fcport           2307 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_disabling);
fcport           2309 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport,
fcport           2312 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2313 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_scn(fcport, BFA_PORT_LINKDOWN, BFA_FALSE);
fcport           2314 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2316 drivers/scsi/bfa/bfa_svc.c 		wwn2str(pwwn_buf, fcport->pwwn);
fcport           2319 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_OFFLINE);
fcport           2322 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISABLE);
fcport           2326 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_linkdown);
fcport           2327 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2328 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_scn(fcport, BFA_PORT_LINKDOWN, BFA_FALSE);
fcport           2329 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2331 drivers/scsi/bfa/bfa_svc.c 		wwn2str(pwwn_buf, fcport->pwwn);
fcport           2332 drivers/scsi/bfa/bfa_svc.c 		if (BFA_PORT_IS_DISABLED(fcport->bfa)) {
fcport           2335 drivers/scsi/bfa/bfa_svc.c 			bfa_fcport_aen_post(fcport, BFA_PORT_AEN_OFFLINE);
fcport           2340 drivers/scsi/bfa/bfa_svc.c 			bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISCONNECT);
fcport           2345 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2346 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2347 drivers/scsi/bfa/bfa_svc.c 		wwn2str(pwwn_buf, fcport->pwwn);
fcport           2348 drivers/scsi/bfa/bfa_svc.c 		if (BFA_PORT_IS_DISABLED(fcport->bfa)) {
fcport           2351 drivers/scsi/bfa/bfa_svc.c 			bfa_fcport_aen_post(fcport, BFA_PORT_AEN_OFFLINE);
fcport           2356 drivers/scsi/bfa/bfa_svc.c 			bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISCONNECT);
fcport           2361 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocdown);
fcport           2362 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2363 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_scn(fcport, BFA_PORT_LINKDOWN, BFA_FALSE);
fcport           2364 drivers/scsi/bfa/bfa_svc.c 		wwn2str(pwwn_buf, fcport->pwwn);
fcport           2365 drivers/scsi/bfa/bfa_svc.c 		if (BFA_PORT_IS_DISABLED(fcport->bfa)) {
fcport           2368 drivers/scsi/bfa/bfa_svc.c 			bfa_fcport_aen_post(fcport, BFA_PORT_AEN_OFFLINE);
fcport           2373 drivers/scsi/bfa/bfa_svc.c 			bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISCONNECT);
fcport           2378 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2379 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISCONNECT);
fcport           2380 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_faa_misconfig);
fcport           2384 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2389 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_disabling_qwait(struct bfa_fcport_s *fcport,
fcport           2392 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2396 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_disabling);
fcport           2397 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_send_disable(fcport);
fcport           2401 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2402 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wcancel(&fcport->reqq_wait);
fcport           2406 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_toggling_qwait);
fcport           2424 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocfail);
fcport           2425 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wcancel(&fcport->reqq_wait);
fcport           2429 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2430 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISCONNECT);
fcport           2431 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_faa_misconfig);
fcport           2435 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2440 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_toggling_qwait(struct bfa_fcport_s *fcport,
fcport           2443 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2447 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_disabling);
fcport           2448 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_send_disable(fcport);
fcport           2449 drivers/scsi/bfa/bfa_svc.c 		if (bfa_fcport_send_enable(fcport))
fcport           2450 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_enabling);
fcport           2452 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport,
fcport           2457 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2458 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wcancel(&fcport->reqq_wait);
fcport           2465 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_disabling_qwait);
fcport           2477 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocfail);
fcport           2478 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wcancel(&fcport->reqq_wait);
fcport           2482 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2487 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_disabling(struct bfa_fcport_s *fcport,
fcport           2491 drivers/scsi/bfa/bfa_svc.c 	struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad;
fcport           2492 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2496 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_disabled);
fcport           2506 drivers/scsi/bfa/bfa_svc.c 		if (bfa_fcport_send_enable(fcport))
fcport           2507 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_enabling);
fcport           2509 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport,
fcport           2512 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2514 drivers/scsi/bfa/bfa_svc.c 		wwn2str(pwwn_buf, fcport->pwwn);
fcport           2517 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_ENABLE);
fcport           2521 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2533 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocfail);
fcport           2537 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2542 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_disabled(struct bfa_fcport_s *fcport,
fcport           2546 drivers/scsi/bfa/bfa_svc.c 	struct bfad_s *bfad = (struct bfad_s *)fcport->bfa->bfad;
fcport           2547 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2557 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2561 drivers/scsi/bfa/bfa_svc.c 		if (bfa_fcport_send_enable(fcport))
fcport           2562 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_enabling);
fcport           2564 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport,
fcport           2567 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2569 drivers/scsi/bfa/bfa_svc.c 		wwn2str(pwwn_buf, fcport->pwwn);
fcport           2572 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_ENABLE);
fcport           2582 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocfail);
fcport           2586 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_dport);
fcport           2590 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_ddport);
fcport           2594 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2599 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_stopped(struct bfa_fcport_s *fcport,
fcport           2602 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2606 drivers/scsi/bfa/bfa_svc.c 		if (bfa_fcport_send_enable(fcport))
fcport           2607 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_enabling);
fcport           2609 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport,
fcport           2625 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_iocdown(struct bfa_fcport_s *fcport,
fcport           2628 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2632 drivers/scsi/bfa/bfa_svc.c 		if (bfa_fcport_send_enable(fcport))
fcport           2633 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_enabling);
fcport           2635 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport,
fcport           2651 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_iocfail(struct bfa_fcport_s *fcport,
fcport           2654 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2658 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_disabled);
fcport           2662 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocdown);
fcport           2674 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_dport(struct bfa_fcport_s *fcport, enum bfa_fcport_sm_event event)
fcport           2676 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2689 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2693 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocfail);
fcport           2697 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_disabled);
fcport           2701 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2706 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_ddport(struct bfa_fcport_s *fcport,
fcport           2709 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2714 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_disabled);
fcport           2727 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2731 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocfail);
fcport           2735 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2740 drivers/scsi/bfa/bfa_svc.c bfa_fcport_sm_faa_misconfig(struct bfa_fcport_s *fcport,
fcport           2743 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, event);
fcport           2755 drivers/scsi/bfa/bfa_svc.c 		if (bfa_fcport_send_disable(fcport))
fcport           2756 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_disabling);
fcport           2758 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_set_state(fcport, bfa_fcport_sm_disabling_qwait);
fcport           2760 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2761 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_scn(fcport, BFA_PORT_LINKDOWN, BFA_FALSE);
fcport           2762 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           2764 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_aen_post(fcport, BFA_PORT_AEN_DISABLE);
fcport           2768 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_stopped);
fcport           2772 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_reset_linkinfo(fcport);
fcport           2773 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_scn(fcport, BFA_PORT_LINKDOWN, BFA_FALSE);
fcport           2774 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_set_state(fcport, bfa_fcport_sm_iocdown);
fcport           2778 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(fcport->bfa, event);
fcport           2789 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(ln->fcport->bfa, event);
fcport           2798 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(ln->fcport->bfa, event);
fcport           2809 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(ln->fcport->bfa, event);
fcport           2821 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(ln->fcport->bfa, event);
fcport           2832 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(ln->fcport->bfa, event);
fcport           2845 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(ln->fcport->bfa, event);
fcport           2856 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(ln->fcport->bfa, event);
fcport           2865 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(ln->fcport->bfa, event);
fcport           2876 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(ln->fcport->bfa, event);
fcport           2888 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(ln->fcport->bfa, event);
fcport           2899 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(ln->fcport->bfa, event);
fcport           2912 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(ln->fcport->bfa, event);
fcport           2923 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(ln->fcport->bfa, event);
fcport           2936 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_fault(ln->fcport->bfa, event);
fcport           2946 drivers/scsi/bfa/bfa_svc.c 		ln->fcport->event_cbfn(ln->fcport->event_cbarg, ln->ln_event);
fcport           2956 drivers/scsi/bfa/bfa_svc.c bfa_fcport_scn(struct bfa_fcport_s *fcport, enum bfa_port_linkstate event,
fcport           2959 drivers/scsi/bfa/bfa_svc.c 	if (fcport->cfg.trunked && !trunk)
fcport           2964 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_send_event(&fcport->ln, BFA_FCPORT_LN_SM_LINKUP);
fcport           2967 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_send_event(&fcport->ln, BFA_FCPORT_LN_SM_LINKDOWN);
fcport           2977 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = ln->fcport;
fcport           2979 drivers/scsi/bfa/bfa_svc.c 	if (fcport->bfa->fcs) {
fcport           2980 drivers/scsi/bfa/bfa_svc.c 		fcport->event_cbfn(fcport->event_cbarg, event);
fcport           2984 drivers/scsi/bfa/bfa_svc.c 		bfa_cb_queue(fcport->bfa, &ln->ln_qe,
fcport           3004 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = cbarg;
fcport           3006 drivers/scsi/bfa/bfa_svc.c 	bfa_sm_send_event(fcport, BFA_FCPORT_SM_QRESUME);
fcport           3010 drivers/scsi/bfa/bfa_svc.c bfa_fcport_mem_claim(struct bfa_fcport_s *fcport)
fcport           3012 drivers/scsi/bfa/bfa_svc.c 	struct bfa_mem_dma_s *fcport_dma = &fcport->fcport_dma;
fcport           3014 drivers/scsi/bfa/bfa_svc.c 	fcport->stats_kva = bfa_mem_dma_virt(fcport_dma);
fcport           3015 drivers/scsi/bfa/bfa_svc.c 	fcport->stats_pa  = bfa_mem_dma_phys(fcport_dma);
fcport           3016 drivers/scsi/bfa/bfa_svc.c 	fcport->stats = (union bfa_fcport_stats_u *)
fcport           3027 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3028 drivers/scsi/bfa/bfa_svc.c 	struct bfa_port_cfg_s *port_cfg = &fcport->cfg;
fcport           3029 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_ln_s *ln = &fcport->ln;
fcport           3031 drivers/scsi/bfa/bfa_svc.c 	fcport->bfa = bfa;
fcport           3032 drivers/scsi/bfa/bfa_svc.c 	ln->fcport = fcport;
fcport           3034 drivers/scsi/bfa/bfa_svc.c 	bfa_fcport_mem_claim(fcport);
fcport           3036 drivers/scsi/bfa/bfa_svc.c 	bfa_sm_set_state(fcport, bfa_fcport_sm_uninit);
fcport           3042 drivers/scsi/bfa/bfa_svc.c 	fcport->stats_reset_time = ktime_get_seconds();
fcport           3043 drivers/scsi/bfa/bfa_svc.c 	fcport->stats_dma_ready = BFA_FALSE;
fcport           3058 drivers/scsi/bfa/bfa_svc.c 	fcport->fec_state = BFA_FEC_OFFLINE;
fcport           3060 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&fcport->stats_pending_q);
fcport           3061 drivers/scsi/bfa/bfa_svc.c 	INIT_LIST_HEAD(&fcport->statsclr_pending_q);
fcport           3063 drivers/scsi/bfa/bfa_svc.c 	bfa_reqq_winit(&fcport->reqq_wait, bfa_fcport_qresume, fcport);
fcport           3078 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3080 drivers/scsi/bfa/bfa_svc.c 	bfa_sm_send_event(fcport, BFA_FCPORT_SM_HWFAIL);
fcport           3088 drivers/scsi/bfa/bfa_svc.c bfa_fcport_update_loop_info(struct bfa_fcport_s *fcport,
fcport           3091 drivers/scsi/bfa/bfa_svc.c 	fcport->myalpa = loop_info->myalpa;
fcport           3092 drivers/scsi/bfa/bfa_svc.c 	fcport->alpabm_valid =
fcport           3094 drivers/scsi/bfa/bfa_svc.c 	memcpy(fcport->alpabm.alpa_bm,
fcport           3100 drivers/scsi/bfa/bfa_svc.c bfa_fcport_update_linkinfo(struct bfa_fcport_s *fcport)
fcport           3102 drivers/scsi/bfa/bfa_svc.c 	struct bfi_fcport_event_s *pevent = fcport->event_arg.i2hmsg.event;
fcport           3103 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_trunk_s *trunk = &fcport->trunk;
fcport           3105 drivers/scsi/bfa/bfa_svc.c 	fcport->speed = pevent->link_state.speed;
fcport           3106 drivers/scsi/bfa/bfa_svc.c 	fcport->topology = pevent->link_state.topology;
fcport           3108 drivers/scsi/bfa/bfa_svc.c 	if (fcport->topology == BFA_PORT_TOPOLOGY_LOOP) {
fcport           3109 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_update_loop_info(fcport,
fcport           3115 drivers/scsi/bfa/bfa_svc.c 	fcport->qos_attr = pevent->link_state.qos_attr;
fcport           3116 drivers/scsi/bfa/bfa_svc.c 	fcport->qos_vc_attr = pevent->link_state.attr.vc_fcf.qos_vc_attr;
fcport           3118 drivers/scsi/bfa/bfa_svc.c 	if (fcport->cfg.bb_cr_enabled)
fcport           3119 drivers/scsi/bfa/bfa_svc.c 		fcport->bbcr_attr = pevent->link_state.attr.bbcr_attr;
fcport           3121 drivers/scsi/bfa/bfa_svc.c 	fcport->fec_state = pevent->link_state.fec_state;
fcport           3126 drivers/scsi/bfa/bfa_svc.c 	if (!fcport->cfg.trunked)
fcport           3130 drivers/scsi/bfa/bfa_svc.c 	fcport->fcoe_vlan =
fcport           3133 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, fcport->speed);
fcport           3134 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, fcport->topology);
fcport           3138 drivers/scsi/bfa/bfa_svc.c bfa_fcport_reset_linkinfo(struct bfa_fcport_s *fcport)
fcport           3140 drivers/scsi/bfa/bfa_svc.c 	fcport->speed = BFA_PORT_SPEED_UNKNOWN;
fcport           3141 drivers/scsi/bfa/bfa_svc.c 	fcport->topology = BFA_PORT_TOPOLOGY_NONE;
fcport           3142 drivers/scsi/bfa/bfa_svc.c 	fcport->fec_state = BFA_FEC_OFFLINE;
fcport           3149 drivers/scsi/bfa/bfa_svc.c bfa_fcport_send_enable(struct bfa_fcport_s *fcport)
fcport           3157 drivers/scsi/bfa/bfa_svc.c 	fcport->msgtag++;
fcport           3162 drivers/scsi/bfa/bfa_svc.c 	m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT);
fcport           3164 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT,
fcport           3165 drivers/scsi/bfa/bfa_svc.c 							&fcport->reqq_wait);
fcport           3170 drivers/scsi/bfa/bfa_svc.c 			bfa_fn_lpu(fcport->bfa));
fcport           3171 drivers/scsi/bfa/bfa_svc.c 	m->nwwn = fcport->nwwn;
fcport           3172 drivers/scsi/bfa/bfa_svc.c 	m->pwwn = fcport->pwwn;
fcport           3173 drivers/scsi/bfa/bfa_svc.c 	m->port_cfg = fcport->cfg;
fcport           3174 drivers/scsi/bfa/bfa_svc.c 	m->msgtag = fcport->msgtag;
fcport           3175 drivers/scsi/bfa/bfa_svc.c 	m->port_cfg.maxfrsize = cpu_to_be16(fcport->cfg.maxfrsize);
fcport           3176 drivers/scsi/bfa/bfa_svc.c 	 m->use_flash_cfg = fcport->use_flash_cfg;
fcport           3177 drivers/scsi/bfa/bfa_svc.c 	bfa_dma_be_addr_set(m->stats_dma_addr, fcport->stats_pa);
fcport           3178 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, m->stats_dma_addr.a32.addr_lo);
fcport           3179 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, m->stats_dma_addr.a32.addr_hi);
fcport           3184 drivers/scsi/bfa/bfa_svc.c 	bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, m->mh);
fcport           3192 drivers/scsi/bfa/bfa_svc.c bfa_fcport_send_disable(struct bfa_fcport_s *fcport)
fcport           3200 drivers/scsi/bfa/bfa_svc.c 	fcport->msgtag++;
fcport           3205 drivers/scsi/bfa/bfa_svc.c 	m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT);
fcport           3207 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT,
fcport           3208 drivers/scsi/bfa/bfa_svc.c 							&fcport->reqq_wait);
fcport           3213 drivers/scsi/bfa/bfa_svc.c 			bfa_fn_lpu(fcport->bfa));
fcport           3214 drivers/scsi/bfa/bfa_svc.c 	m->msgtag = fcport->msgtag;
fcport           3219 drivers/scsi/bfa/bfa_svc.c 	bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, m->mh);
fcport           3225 drivers/scsi/bfa/bfa_svc.c bfa_fcport_set_wwns(struct bfa_fcport_s *fcport)
fcport           3227 drivers/scsi/bfa/bfa_svc.c 	fcport->pwwn = fcport->bfa->ioc.attr->pwwn;
fcport           3228 drivers/scsi/bfa/bfa_svc.c 	fcport->nwwn = fcport->bfa->ioc.attr->nwwn;
fcport           3230 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, fcport->pwwn);
fcport           3231 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, fcport->nwwn);
fcport           3270 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = (struct bfa_fcport_s *)cbarg;
fcport           3278 drivers/scsi/bfa/bfa_svc.c 		list_for_each_safe(qe, qen, &fcport->stats_pending_q) {
fcport           3279 drivers/scsi/bfa/bfa_svc.c 			bfa_q_deq(&fcport->stats_pending_q, &qe);
fcport           3281 drivers/scsi/bfa/bfa_svc.c 			if (fcport->stats_status == BFA_STATUS_OK) {
fcport           3284 drivers/scsi/bfa/bfa_svc.c 				if (bfa_ioc_get_fcmode(&fcport->bfa->ioc))
fcport           3286 drivers/scsi/bfa/bfa_svc.c 							&fcport->stats->fcqos);
fcport           3289 drivers/scsi/bfa/bfa_svc.c 							&fcport->stats->fcoe);
fcport           3291 drivers/scsi/bfa/bfa_svc.c 						time - fcport->stats_reset_time;
fcport           3294 drivers/scsi/bfa/bfa_svc.c 			bfa_cb_queue_status(fcport->bfa, &cb->hcb_qe,
fcport           3295 drivers/scsi/bfa/bfa_svc.c 					fcport->stats_status);
fcport           3297 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_status = BFA_STATUS_OK;
fcport           3299 drivers/scsi/bfa/bfa_svc.c 		INIT_LIST_HEAD(&fcport->stats_pending_q);
fcport           3300 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_status = BFA_STATUS_OK;
fcport           3307 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = (struct bfa_fcport_s *) cbarg;
fcport           3309 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, fcport->stats_qfull);
fcport           3311 drivers/scsi/bfa/bfa_svc.c 	if (fcport->stats_qfull) {
fcport           3312 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wcancel(&fcport->stats_reqq_wait);
fcport           3313 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_qfull = BFA_FALSE;
fcport           3316 drivers/scsi/bfa/bfa_svc.c 	fcport->stats_status = BFA_STATUS_ETIMER;
fcport           3317 drivers/scsi/bfa/bfa_svc.c 	__bfa_cb_fcport_stats_get(fcport, BFA_TRUE);
fcport           3323 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = (struct bfa_fcport_s *) cbarg;
fcport           3326 drivers/scsi/bfa/bfa_svc.c 	msg = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT);
fcport           3329 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_qfull = BFA_TRUE;
fcport           3330 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_winit(&fcport->stats_reqq_wait,
fcport           3331 drivers/scsi/bfa/bfa_svc.c 				bfa_fcport_send_stats_get, fcport);
fcport           3332 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT,
fcport           3333 drivers/scsi/bfa/bfa_svc.c 				&fcport->stats_reqq_wait);
fcport           3336 drivers/scsi/bfa/bfa_svc.c 	fcport->stats_qfull = BFA_FALSE;
fcport           3340 drivers/scsi/bfa/bfa_svc.c 			bfa_fn_lpu(fcport->bfa));
fcport           3341 drivers/scsi/bfa/bfa_svc.c 	bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, msg->mh);
fcport           3347 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = (struct bfa_fcport_s *) cbarg;
fcport           3355 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_reset_time = ktime_get_seconds();
fcport           3356 drivers/scsi/bfa/bfa_svc.c 		list_for_each_safe(qe, qen, &fcport->statsclr_pending_q) {
fcport           3357 drivers/scsi/bfa/bfa_svc.c 			bfa_q_deq(&fcport->statsclr_pending_q, &qe);
fcport           3359 drivers/scsi/bfa/bfa_svc.c 			bfa_cb_queue_status(fcport->bfa, &cb->hcb_qe,
fcport           3360 drivers/scsi/bfa/bfa_svc.c 						fcport->stats_status);
fcport           3362 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_status = BFA_STATUS_OK;
fcport           3364 drivers/scsi/bfa/bfa_svc.c 		INIT_LIST_HEAD(&fcport->statsclr_pending_q);
fcport           3365 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_status = BFA_STATUS_OK;
fcport           3372 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = (struct bfa_fcport_s *) cbarg;
fcport           3374 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, fcport->stats_qfull);
fcport           3376 drivers/scsi/bfa/bfa_svc.c 	if (fcport->stats_qfull) {
fcport           3377 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wcancel(&fcport->stats_reqq_wait);
fcport           3378 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_qfull = BFA_FALSE;
fcport           3381 drivers/scsi/bfa/bfa_svc.c 	fcport->stats_status = BFA_STATUS_ETIMER;
fcport           3382 drivers/scsi/bfa/bfa_svc.c 	__bfa_cb_fcport_stats_clr(fcport, BFA_TRUE);
fcport           3388 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = (struct bfa_fcport_s *) cbarg;
fcport           3391 drivers/scsi/bfa/bfa_svc.c 	msg = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT);
fcport           3394 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_qfull = BFA_TRUE;
fcport           3395 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_winit(&fcport->stats_reqq_wait,
fcport           3396 drivers/scsi/bfa/bfa_svc.c 				bfa_fcport_send_stats_clear, fcport);
fcport           3397 drivers/scsi/bfa/bfa_svc.c 		bfa_reqq_wait(fcport->bfa, BFA_REQQ_PORT,
fcport           3398 drivers/scsi/bfa/bfa_svc.c 						&fcport->stats_reqq_wait);
fcport           3401 drivers/scsi/bfa/bfa_svc.c 	fcport->stats_qfull = BFA_FALSE;
fcport           3405 drivers/scsi/bfa/bfa_svc.c 			bfa_fn_lpu(fcport->bfa));
fcport           3406 drivers/scsi/bfa/bfa_svc.c 	bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, msg->mh);
fcport           3413 drivers/scsi/bfa/bfa_svc.c bfa_trunk_scn(struct bfa_fcport_s *fcport, struct bfi_fcport_trunk_scn_s *scn)
fcport           3415 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_trunk_s *trunk = &fcport->trunk;
fcport           3422 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, fcport->cfg.trunked);
fcport           3426 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, trunk->attr.state);
fcport           3427 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, scn->trunk_state);
fcport           3428 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(fcport->bfa, scn->trunk_speed);
fcport           3434 drivers/scsi/bfa/bfa_svc.c 	if (fcport->cfg.trunked && (trunk->attr.state != BFA_TRUNK_DISABLED))
fcport           3448 drivers/scsi/bfa/bfa_svc.c 			fcport->speed	 = tlink->speed;
fcport           3449 drivers/scsi/bfa/bfa_svc.c 			fcport->topology = BFA_PORT_TOPOLOGY_P2P;
fcport           3453 drivers/scsi/bfa/bfa_svc.c 		bfa_trc(fcport->bfa, lattr->link_state);
fcport           3454 drivers/scsi/bfa/bfa_svc.c 		bfa_trc(fcport->bfa, lattr->trunk_wwn);
fcport           3455 drivers/scsi/bfa/bfa_svc.c 		bfa_trc(fcport->bfa, lattr->fctl);
fcport           3456 drivers/scsi/bfa/bfa_svc.c 		bfa_trc(fcport->bfa, lattr->speed);
fcport           3457 drivers/scsi/bfa/bfa_svc.c 		bfa_trc(fcport->bfa, lattr->deskew);
fcport           3462 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           3466 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           3470 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           3474 drivers/scsi/bfa/bfa_svc.c 		bfa_plog_str(fcport->bfa->plog, BFA_PL_MID_HAL,
fcport           3483 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_scn(fcport, (scn->trunk_state == BFA_TRUNK_ONLINE) ?
fcport           3491 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3497 drivers/scsi/bfa/bfa_svc.c 	if (fcport->cfg.trunked) {
fcport           3498 drivers/scsi/bfa/bfa_svc.c 		if (fcport->trunk.attr.state == BFA_TRUNK_ONLINE)
fcport           3499 drivers/scsi/bfa/bfa_svc.c 			bfa_fcport_scn(fcport, BFA_PORT_LINKDOWN, BFA_TRUE);
fcport           3501 drivers/scsi/bfa/bfa_svc.c 		fcport->trunk.attr.state = BFA_TRUNK_OFFLINE;
fcport           3502 drivers/scsi/bfa/bfa_svc.c 		fcport->trunk.attr.speed = BFA_PORT_SPEED_UNKNOWN;
fcport           3504 drivers/scsi/bfa/bfa_svc.c 			fcport->trunk.attr.link_attr[i].trunk_wwn = 0;
fcport           3505 drivers/scsi/bfa/bfa_svc.c 			fcport->trunk.attr.link_attr[i].fctl =
fcport           3507 drivers/scsi/bfa/bfa_svc.c 			fcport->trunk.attr.link_attr[i].link_state =
fcport           3509 drivers/scsi/bfa/bfa_svc.c 			fcport->trunk.attr.link_attr[i].speed =
fcport           3511 drivers/scsi/bfa/bfa_svc.c 			fcport->trunk.attr.link_attr[i].deskew = 0;
fcport           3522 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3527 drivers/scsi/bfa/bfa_svc.c 	bfa_fcport_set_wwns(fcport);
fcport           3528 drivers/scsi/bfa/bfa_svc.c 	if (fcport->cfg.maxfrsize == 0)
fcport           3529 drivers/scsi/bfa/bfa_svc.c 		fcport->cfg.maxfrsize = bfa_ioc_maxfrsize(&bfa->ioc);
fcport           3530 drivers/scsi/bfa/bfa_svc.c 	fcport->cfg.rx_bbcredit = bfa_ioc_rx_bbcredit(&bfa->ioc);
fcport           3531 drivers/scsi/bfa/bfa_svc.c 	fcport->speed_sup = bfa_ioc_speed_sup(&bfa->ioc);
fcport           3536 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(!fcport->cfg.maxfrsize);
fcport           3537 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(!fcport->cfg.rx_bbcredit);
fcport           3538 drivers/scsi/bfa/bfa_svc.c 	WARN_ON(!fcport->speed_sup);
fcport           3547 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3551 drivers/scsi/bfa/bfa_svc.c 	fcport->event_arg.i2hmsg = i2hmsg;
fcport           3554 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(bfa, bfa_sm_to_state(hal_port_sm_table, fcport->sm));
fcport           3558 drivers/scsi/bfa/bfa_svc.c 		if (fcport->msgtag == i2hmsg.penable_rsp->msgtag) {
fcport           3560 drivers/scsi/bfa/bfa_svc.c 			fcport->stats_dma_ready = BFA_TRUE;
fcport           3561 drivers/scsi/bfa/bfa_svc.c 			if (fcport->use_flash_cfg) {
fcport           3562 drivers/scsi/bfa/bfa_svc.c 				fcport->cfg = i2hmsg.penable_rsp->port_cfg;
fcport           3563 drivers/scsi/bfa/bfa_svc.c 				fcport->cfg.maxfrsize =
fcport           3564 drivers/scsi/bfa/bfa_svc.c 					cpu_to_be16(fcport->cfg.maxfrsize);
fcport           3565 drivers/scsi/bfa/bfa_svc.c 				fcport->cfg.path_tov =
fcport           3566 drivers/scsi/bfa/bfa_svc.c 					cpu_to_be16(fcport->cfg.path_tov);
fcport           3567 drivers/scsi/bfa/bfa_svc.c 				fcport->cfg.q_depth =
fcport           3568 drivers/scsi/bfa/bfa_svc.c 					cpu_to_be16(fcport->cfg.q_depth);
fcport           3570 drivers/scsi/bfa/bfa_svc.c 				if (fcport->cfg.trunked)
fcport           3571 drivers/scsi/bfa/bfa_svc.c 					fcport->trunk.attr.state =
fcport           3574 drivers/scsi/bfa/bfa_svc.c 					fcport->trunk.attr.state =
fcport           3576 drivers/scsi/bfa/bfa_svc.c 				fcport->qos_attr.qos_bw =
fcport           3578 drivers/scsi/bfa/bfa_svc.c 				fcport->use_flash_cfg = BFA_FALSE;
fcport           3581 drivers/scsi/bfa/bfa_svc.c 			if (fcport->cfg.qos_enabled)
fcport           3582 drivers/scsi/bfa/bfa_svc.c 				fcport->qos_attr.state = BFA_QOS_OFFLINE;
fcport           3584 drivers/scsi/bfa/bfa_svc.c 				fcport->qos_attr.state = BFA_QOS_DISABLED;
fcport           3586 drivers/scsi/bfa/bfa_svc.c 			fcport->qos_attr.qos_bw_op =
fcport           3589 drivers/scsi/bfa/bfa_svc.c 			if (fcport->cfg.bb_cr_enabled)
fcport           3590 drivers/scsi/bfa/bfa_svc.c 				fcport->bbcr_attr.state = BFA_BBCR_OFFLINE;
fcport           3592 drivers/scsi/bfa/bfa_svc.c 				fcport->bbcr_attr.state = BFA_BBCR_DISABLED;
fcport           3594 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_send_event(fcport, BFA_FCPORT_SM_FWRSP);
fcport           3599 drivers/scsi/bfa/bfa_svc.c 		if (fcport->msgtag == i2hmsg.penable_rsp->msgtag)
fcport           3600 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_send_event(fcport, BFA_FCPORT_SM_FWRSP);
fcport           3604 drivers/scsi/bfa/bfa_svc.c 		if (fcport->cfg.bb_cr_enabled)
fcport           3605 drivers/scsi/bfa/bfa_svc.c 			fcport->bbcr_attr.state = BFA_BBCR_OFFLINE;
fcport           3607 drivers/scsi/bfa/bfa_svc.c 			fcport->bbcr_attr.state = BFA_BBCR_DISABLED;
fcport           3610 drivers/scsi/bfa/bfa_svc.c 			bfa_sm_send_event(fcport, BFA_FCPORT_SM_LINKUP);
fcport           3614 drivers/scsi/bfa/bfa_svc.c 				bfa_sm_send_event(fcport,
fcport           3617 drivers/scsi/bfa/bfa_svc.c 				bfa_sm_send_event(fcport,
fcport           3620 drivers/scsi/bfa/bfa_svc.c 		fcport->qos_attr.qos_bw_op =
fcport           3625 drivers/scsi/bfa/bfa_svc.c 		bfa_trunk_scn(fcport, i2hmsg.trunk_scn);
fcport           3632 drivers/scsi/bfa/bfa_svc.c 		if (list_empty(&fcport->stats_pending_q) ||
fcport           3633 drivers/scsi/bfa/bfa_svc.c 		    (fcport->stats_status == BFA_STATUS_ETIMER))
fcport           3636 drivers/scsi/bfa/bfa_svc.c 		bfa_timer_stop(&fcport->timer);
fcport           3637 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_status = i2hmsg.pstatsget_rsp->status;
fcport           3638 drivers/scsi/bfa/bfa_svc.c 		__bfa_cb_fcport_stats_get(fcport, BFA_TRUE);
fcport           3645 drivers/scsi/bfa/bfa_svc.c 		if (list_empty(&fcport->statsclr_pending_q) ||
fcport           3646 drivers/scsi/bfa/bfa_svc.c 		    (fcport->stats_status == BFA_STATUS_ETIMER))
fcport           3649 drivers/scsi/bfa/bfa_svc.c 		bfa_timer_stop(&fcport->timer);
fcport           3650 drivers/scsi/bfa/bfa_svc.c 		fcport->stats_status = BFA_STATUS_OK;
fcport           3651 drivers/scsi/bfa/bfa_svc.c 		__bfa_cb_fcport_stats_clr(fcport, BFA_TRUE);
fcport           3655 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_send_event(fcport, BFA_FCPORT_SM_ENABLE);
fcport           3659 drivers/scsi/bfa/bfa_svc.c 		bfa_sm_send_event(fcport, BFA_FCPORT_SM_DISABLE);
fcport           3677 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3679 drivers/scsi/bfa/bfa_svc.c 	fcport->event_cbfn = cbfn;
fcport           3680 drivers/scsi/bfa/bfa_svc.c 	fcport->event_cbarg = cbarg;
fcport           3686 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3694 drivers/scsi/bfa/bfa_svc.c 	if (fcport->diag_busy)
fcport           3718 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3723 drivers/scsi/bfa/bfa_svc.c 		bfa_trc(bfa, fcport->pwwn);
fcport           3735 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3739 drivers/scsi/bfa/bfa_svc.c 	if (fcport->cfg.trunked == BFA_TRUE)
fcport           3741 drivers/scsi/bfa/bfa_svc.c 	if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) &&
fcport           3744 drivers/scsi/bfa/bfa_svc.c 	if ((speed != BFA_PORT_SPEED_AUTO) && (speed > fcport->speed_sup)) {
fcport           3745 drivers/scsi/bfa/bfa_svc.c 		bfa_trc(bfa, fcport->speed_sup);
fcport           3750 drivers/scsi/bfa/bfa_svc.c 	if (bfa_ioc_get_type(&fcport->bfa->ioc) == BFA_IOC_TYPE_FC) {
fcport           3769 drivers/scsi/bfa/bfa_svc.c 	fcport->cfg.speed = speed;
fcport           3780 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3782 drivers/scsi/bfa/bfa_svc.c 	return fcport->speed;
fcport           3791 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3794 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(bfa, fcport->cfg.topology);
fcport           3802 drivers/scsi/bfa/bfa_svc.c 			(fcport->qos_attr.state != BFA_QOS_DISABLED))
fcport           3804 drivers/scsi/bfa/bfa_svc.c 		if (fcport->cfg.ratelimit != BFA_FALSE)
fcport           3807 drivers/scsi/bfa/bfa_svc.c 			(fcport->trunk.attr.state != BFA_TRUNK_DISABLED))
fcport           3810 drivers/scsi/bfa/bfa_svc.c 			(fcport->cfg.speed == BFA_PORT_SPEED_16GBPS))
fcport           3827 drivers/scsi/bfa/bfa_svc.c 	fcport->cfg.topology = topology;
fcport           3837 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3839 drivers/scsi/bfa/bfa_svc.c 	return fcport->topology;
fcport           3848 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3850 drivers/scsi/bfa/bfa_svc.c 	return fcport->cfg.topology;
fcport           3856 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3859 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(bfa, fcport->cfg.cfg_hardalpa);
fcport           3860 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(bfa, fcport->cfg.hardalpa);
fcport           3862 drivers/scsi/bfa/bfa_svc.c 	fcport->cfg.cfg_hardalpa = BFA_TRUE;
fcport           3863 drivers/scsi/bfa/bfa_svc.c 	fcport->cfg.hardalpa = alpa;
fcport           3871 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3873 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(bfa, fcport->cfg.cfg_hardalpa);
fcport           3874 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(bfa, fcport->cfg.hardalpa);
fcport           3876 drivers/scsi/bfa/bfa_svc.c 	fcport->cfg.cfg_hardalpa = BFA_FALSE;
fcport           3883 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3885 drivers/scsi/bfa/bfa_svc.c 	*alpa = fcport->cfg.hardalpa;
fcport           3886 drivers/scsi/bfa/bfa_svc.c 	return fcport->cfg.cfg_hardalpa;
fcport           3892 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3894 drivers/scsi/bfa/bfa_svc.c 	return fcport->myalpa;
fcport           3900 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3903 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(bfa, fcport->cfg.maxfrsize);
fcport           3913 drivers/scsi/bfa/bfa_svc.c 	fcport->cfg.maxfrsize = maxfrsize;
fcport           3920 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3922 drivers/scsi/bfa/bfa_svc.c 	return fcport->cfg.maxfrsize;
fcport           3938 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3940 drivers/scsi/bfa/bfa_svc.c 	fcport->cfg.tx_bbcredit = (u8)tx_bbcredit;
fcport           3950 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3952 drivers/scsi/bfa/bfa_svc.c 		return fcport->nwwn;
fcport           3954 drivers/scsi/bfa/bfa_svc.c 		return fcport->pwwn;
fcport           3960 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           3964 drivers/scsi/bfa/bfa_svc.c 	attr->nwwn = fcport->nwwn;
fcport           3965 drivers/scsi/bfa/bfa_svc.c 	attr->pwwn = fcport->pwwn;
fcport           3970 drivers/scsi/bfa/bfa_svc.c 	memcpy(&attr->pport_cfg, &fcport->cfg,
fcport           3973 drivers/scsi/bfa/bfa_svc.c 	attr->pport_cfg.speed = fcport->cfg.speed;
fcport           3974 drivers/scsi/bfa/bfa_svc.c 	attr->speed_supported = fcport->speed_sup;
fcport           3975 drivers/scsi/bfa/bfa_svc.c 	attr->speed = fcport->speed;
fcport           3979 drivers/scsi/bfa/bfa_svc.c 	attr->pport_cfg.topology = fcport->cfg.topology;
fcport           3980 drivers/scsi/bfa/bfa_svc.c 	attr->topology = fcport->topology;
fcport           3981 drivers/scsi/bfa/bfa_svc.c 	attr->pport_cfg.trunked = fcport->cfg.trunked;
fcport           3984 drivers/scsi/bfa/bfa_svc.c 	attr->beacon = fcport->beacon;
fcport           3985 drivers/scsi/bfa/bfa_svc.c 	attr->link_e2e_beacon = fcport->link_e2e_beacon;
fcport           3989 drivers/scsi/bfa/bfa_svc.c 	attr->port_state = bfa_sm_to_state(hal_port_sm_table, fcport->sm);
fcport           3991 drivers/scsi/bfa/bfa_svc.c 	attr->fec_state = fcport->fec_state;
fcport           3997 drivers/scsi/bfa/bfa_svc.c 		if (bfa_ioc_is_disabled(&fcport->bfa->ioc))
fcport           3999 drivers/scsi/bfa/bfa_svc.c 		else if (bfa_ioc_fw_mismatch(&fcport->bfa->ioc))
fcport           4004 drivers/scsi/bfa/bfa_svc.c 	attr->fcoe_vlan = fcport->fcoe_vlan;
fcport           4015 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4018 drivers/scsi/bfa/bfa_svc.c 	    !fcport->stats_dma_ready)
fcport           4021 drivers/scsi/bfa/bfa_svc.c 	if (!list_empty(&fcport->statsclr_pending_q))
fcport           4024 drivers/scsi/bfa/bfa_svc.c 	if (list_empty(&fcport->stats_pending_q)) {
fcport           4025 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&cb->hcb_qe.qe, &fcport->stats_pending_q);
fcport           4026 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_send_stats_get(fcport);
fcport           4027 drivers/scsi/bfa/bfa_svc.c 		bfa_timer_start(bfa, &fcport->timer,
fcport           4029 drivers/scsi/bfa/bfa_svc.c 				fcport, BFA_FCPORT_STATS_TOV);
fcport           4031 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&cb->hcb_qe.qe, &fcport->stats_pending_q);
fcport           4042 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4045 drivers/scsi/bfa/bfa_svc.c 	    !fcport->stats_dma_ready)
fcport           4048 drivers/scsi/bfa/bfa_svc.c 	if (!list_empty(&fcport->stats_pending_q))
fcport           4051 drivers/scsi/bfa/bfa_svc.c 	if (list_empty(&fcport->statsclr_pending_q)) {
fcport           4052 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&cb->hcb_qe.qe, &fcport->statsclr_pending_q);
fcport           4053 drivers/scsi/bfa/bfa_svc.c 		bfa_fcport_send_stats_clear(fcport);
fcport           4054 drivers/scsi/bfa/bfa_svc.c 		bfa_timer_start(bfa, &fcport->timer,
fcport           4056 drivers/scsi/bfa/bfa_svc.c 				fcport, BFA_FCPORT_STATS_TOV);
fcport           4058 drivers/scsi/bfa/bfa_svc.c 		list_add_tail(&cb->hcb_qe.qe, &fcport->statsclr_pending_q);
fcport           4069 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4071 drivers/scsi/bfa/bfa_svc.c 	return bfa_sm_to_state(hal_port_sm_table, fcport->sm) ==
fcport           4079 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4081 drivers/scsi/bfa/bfa_svc.c 	return (bfa_sm_to_state(hal_port_sm_table, fcport->sm) ==
fcport           4088 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4090 drivers/scsi/bfa/bfa_svc.c 	return (bfa_sm_to_state(hal_port_sm_table, fcport->sm) ==
fcport           4097 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4113 drivers/scsi/bfa/bfa_svc.c 	    (fcport->cfg.topology != BFA_PORT_TOPOLOGY_LOOP))
fcport           4114 drivers/scsi/bfa/bfa_svc.c 		fcport->cfg.qos_bw = *qos_bw;
fcport           4122 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4124 drivers/scsi/bfa/bfa_svc.c 	return fcport->cfg.ratelimit ? BFA_TRUE : BFA_FALSE;
fcport           4134 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4137 drivers/scsi/bfa/bfa_svc.c 	fcport->cfg.faa_state = state;
fcport           4146 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4148 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(bfa, fcport->cfg.trl_def_speed);
fcport           4149 drivers/scsi/bfa/bfa_svc.c 	return fcport->cfg.trl_def_speed;
fcport           4158 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4162 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(bfa, fcport->beacon);
fcport           4163 drivers/scsi/bfa/bfa_svc.c 	bfa_trc(bfa, fcport->link_e2e_beacon);
fcport           4165 drivers/scsi/bfa/bfa_svc.c 	fcport->beacon = beacon;
fcport           4166 drivers/scsi/bfa/bfa_svc.c 	fcport->link_e2e_beacon = link_e2e_beacon;
fcport           4172 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4174 drivers/scsi/bfa/bfa_svc.c 	return	(!fcport->cfg.trunked &&
fcport           4175 drivers/scsi/bfa/bfa_svc.c 		 bfa_sm_cmp_state(fcport, bfa_fcport_sm_linkup)) ||
fcport           4176 drivers/scsi/bfa/bfa_svc.c 		(fcport->cfg.trunked &&
fcport           4177 drivers/scsi/bfa/bfa_svc.c 		 fcport->trunk.attr.state == BFA_TRUNK_ONLINE);
fcport           4183 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4185 drivers/scsi/bfa/bfa_svc.c 	return fcport->cfg.qos_enabled;
fcport           4191 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4193 drivers/scsi/bfa/bfa_svc.c 	return fcport->cfg.trunked;
fcport           4199 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4203 drivers/scsi/bfa/bfa_svc.c 	if (bfa_ioc_get_type(&fcport->bfa->ioc) != BFA_IOC_TYPE_FC)
fcport           4211 drivers/scsi/bfa/bfa_svc.c 		if (fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP)
fcport           4214 drivers/scsi/bfa/bfa_svc.c 		if (fcport->cfg.qos_enabled)
fcport           4217 drivers/scsi/bfa/bfa_svc.c 		if (fcport->cfg.trunked)
fcport           4220 drivers/scsi/bfa/bfa_svc.c 		if ((fcport->cfg.speed != BFA_PORT_SPEED_AUTO) &&
fcport           4221 drivers/scsi/bfa/bfa_svc.c 			(fcport->cfg.speed < bfa_ioc_speed_sup(&bfa->ioc)))
fcport           4227 drivers/scsi/bfa/bfa_svc.c 		if (fcport->cfg.bb_cr_enabled) {
fcport           4228 drivers/scsi/bfa/bfa_svc.c 			if (bb_scn != fcport->cfg.bb_scn)
fcport           4237 drivers/scsi/bfa/bfa_svc.c 		fcport->cfg.bb_cr_enabled = on_off;
fcport           4238 drivers/scsi/bfa/bfa_svc.c 		fcport->cfg.bb_scn = bb_scn;
fcport           4240 drivers/scsi/bfa/bfa_svc.c 		if (!fcport->cfg.bb_cr_enabled)
fcport           4243 drivers/scsi/bfa/bfa_svc.c 		fcport->cfg.bb_cr_enabled = on_off;
fcport           4244 drivers/scsi/bfa/bfa_svc.c 		fcport->cfg.bb_scn = 0;
fcport           4254 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa);
fcport           4256 drivers/scsi/bfa/bfa_svc.c 	if (bfa_ioc_get_type(&fcport->bfa->ioc) != BFA_IOC_TYPE_FC)
fcport           4259 drivers/scsi/bfa/bfa_svc.c 	if (fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP)
fcport           4262 drivers/scsi/bfa/bfa_svc.c 	*bbcr_attr = fcport->bbcr_attr;
fcport           5704 drivers/scsi/bfa/bfa_svc.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(fcdiag->bfa);
fcport           5707 drivers/scsi/bfa/bfa_svc.c 		fcport->diag_busy = BFA_TRUE;
fcport           5709 drivers/scsi/bfa/bfa_svc.c 		fcport->diag_busy = BFA_FALSE;
fcport            446 drivers/scsi/bfa/bfa_svc.h 	struct bfa_fcport_s	*fcport;
fcport            512 drivers/scsi/bfa/bfa_svc.h #define BFA_FCPORT_MOD(__bfa)	(&(__bfa)->modules.fcport)
fcport            927 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa);
fcport            932 drivers/scsi/bfa/bfad_bsg.c 	if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) &&
fcport            933 drivers/scsi/bfa/bfad_bsg.c 		(fcport->topology == BFA_PORT_TOPOLOGY_LOOP))
fcport            937 drivers/scsi/bfa/bfad_bsg.c 			fcport->cfg.ratelimit = BFA_TRUE;
fcport            939 drivers/scsi/bfa/bfad_bsg.c 			fcport->cfg.ratelimit = BFA_FALSE;
fcport            941 drivers/scsi/bfa/bfad_bsg.c 		if (fcport->cfg.trl_def_speed == BFA_PORT_SPEED_UNKNOWN)
fcport            942 drivers/scsi/bfa/bfad_bsg.c 			fcport->cfg.trl_def_speed = BFA_PORT_SPEED_1GBPS;
fcport            956 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa);
fcport            963 drivers/scsi/bfa/bfad_bsg.c 	    (iocmd->speed > fcport->speed_sup)) {
fcport            969 drivers/scsi/bfa/bfad_bsg.c 	if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) &&
fcport            970 drivers/scsi/bfa/bfad_bsg.c 		(fcport->topology == BFA_PORT_TOPOLOGY_LOOP))
fcport            973 drivers/scsi/bfa/bfad_bsg.c 		fcport->cfg.trl_def_speed = iocmd->speed;
fcport           2290 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa);
fcport           2291 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_trunk_s *trunk = &fcport->trunk;
fcport           2301 drivers/scsi/bfa/bfad_bsg.c 	if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) ||
fcport           2302 drivers/scsi/bfa/bfad_bsg.c 		(fcport->topology == BFA_PORT_TOPOLOGY_LOOP))
fcport           2308 drivers/scsi/bfa/bfad_bsg.c 			fcport->cfg.trunked = BFA_TRUE;
fcport           2312 drivers/scsi/bfa/bfad_bsg.c 			fcport->cfg.trunked = BFA_FALSE;
fcport           2330 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa);
fcport           2331 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_trunk_s *trunk = &fcport->trunk;
fcport           2335 drivers/scsi/bfa/bfad_bsg.c 	if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) ||
fcport           2336 drivers/scsi/bfa/bfad_bsg.c 		(fcport->topology == BFA_PORT_TOPOLOGY_LOOP))
fcport           2353 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa);
fcport           2358 drivers/scsi/bfa/bfad_bsg.c 		if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) &&
fcport           2359 drivers/scsi/bfa/bfad_bsg.c 		(fcport->topology == BFA_PORT_TOPOLOGY_LOOP))
fcport           2363 drivers/scsi/bfa/bfad_bsg.c 				fcport->cfg.qos_enabled = BFA_TRUE;
fcport           2365 drivers/scsi/bfa/bfad_bsg.c 				fcport->cfg.qos_enabled = BFA_FALSE;
fcport           2366 drivers/scsi/bfa/bfad_bsg.c 				fcport->cfg.qos_bw.high = BFA_QOS_BW_HIGH;
fcport           2367 drivers/scsi/bfa/bfad_bsg.c 				fcport->cfg.qos_bw.med = BFA_QOS_BW_MED;
fcport           2368 drivers/scsi/bfa/bfad_bsg.c 				fcport->cfg.qos_bw.low = BFA_QOS_BW_LOW;
fcport           2381 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa);
fcport           2385 drivers/scsi/bfa/bfad_bsg.c 	if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) &&
fcport           2386 drivers/scsi/bfa/bfad_bsg.c 		(fcport->topology == BFA_PORT_TOPOLOGY_LOOP))
fcport           2389 drivers/scsi/bfa/bfad_bsg.c 		iocmd->attr.state = fcport->qos_attr.state;
fcport           2391 drivers/scsi/bfa/bfad_bsg.c 			be32_to_cpu(fcport->qos_attr.total_bb_cr);
fcport           2392 drivers/scsi/bfa/bfad_bsg.c 		iocmd->attr.qos_bw.high = fcport->cfg.qos_bw.high;
fcport           2393 drivers/scsi/bfa/bfad_bsg.c 		iocmd->attr.qos_bw.med = fcport->cfg.qos_bw.med;
fcport           2394 drivers/scsi/bfa/bfad_bsg.c 		iocmd->attr.qos_bw.low = fcport->cfg.qos_bw.low;
fcport           2395 drivers/scsi/bfa/bfad_bsg.c 		iocmd->attr.qos_bw_op = fcport->qos_attr.qos_bw_op;
fcport           2408 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa);
fcport           2409 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_qos_vc_attr_s *bfa_vc_attr = &fcport->qos_vc_attr;
fcport           2443 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa);
fcport           2451 drivers/scsi/bfa/bfad_bsg.c 	if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) &&
fcport           2452 drivers/scsi/bfa/bfad_bsg.c 		(fcport->topology == BFA_PORT_TOPOLOGY_LOOP))
fcport           2474 drivers/scsi/bfa/bfad_bsg.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa);
fcport           2482 drivers/scsi/bfa/bfad_bsg.c 	if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) &&
fcport           2483 drivers/scsi/bfa/bfad_bsg.c 		(fcport->topology == BFA_PORT_TOPOLOGY_LOOP))
fcport           1031 drivers/scsi/bfa/bfad_im.c 	struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(&bfad->bfa);
fcport           1054 drivers/scsi/bfa/bfad_im.c 	fc_host_maxframe_size(host) = fcport->cfg.maxfrsize;
fcport            119 drivers/scsi/qedf/qedf.h 	struct qedf_rport *fcport;
fcport            489 drivers/scsi/qedf/qedf.h extern void qedf_flush_active_ios(struct qedf_rport *fcport, int lun);
fcport            495 drivers/scsi/qedf/qedf.h extern struct qedf_ioreq *qedf_alloc_cmd(struct qedf_rport *fcport,
fcport            504 drivers/scsi/qedf/qedf.h extern u16 qedf_get_sqe_idx(struct qedf_rport *fcport);
fcport            505 drivers/scsi/qedf/qedf.h extern void qedf_ring_doorbell(struct qedf_rport *fcport);
fcport            509 drivers/scsi/qedf/qedf.h extern int qedf_send_adisc(struct qedf_rport *fcport, struct fc_frame *fp);
fcport            527 drivers/scsi/qedf/qedf.h extern void qedf_restart_rport(struct qedf_rport *fcport);
fcport            529 drivers/scsi/qedf/qedf.h extern int qedf_post_io_req(struct qedf_rport *fcport,
fcport            324 drivers/scsi/qedf/qedf_debugfs.c 	struct qedf_rport *fcport;
fcport            354 drivers/scsi/qedf/qedf_debugfs.c 	list_for_each_entry_rcu(fcport, &qedf->fcports, peers) {
fcport            355 drivers/scsi/qedf/qedf_debugfs.c 		rdata = fcport->rdata;
fcport            362 drivers/scsi/qedf/qedf_debugfs.c 			   atomic_read(&fcport->free_sqes),
fcport            363 drivers/scsi/qedf/qedf_debugfs.c 			   atomic_read(&fcport->num_active_ios));
fcport              9 drivers/scsi/qedf/qedf_els.c static int qedf_initiate_els(struct qedf_rport *fcport, unsigned int op,
fcport             27 drivers/scsi/qedf/qedf_els.c 	if (!fcport) {
fcport             33 drivers/scsi/qedf/qedf_els.c 	qedf = fcport->qedf;
fcport             38 drivers/scsi/qedf/qedf_els.c 	rc = fc_remote_port_chkready(fcport->rport);
fcport             51 drivers/scsi/qedf/qedf_els.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport             57 drivers/scsi/qedf/qedf_els.c 	els_req = qedf_alloc_cmd(fcport, QEDF_ELS);
fcport             70 drivers/scsi/qedf/qedf_els.c 	els_req->fcport = fcport;
fcport            107 drivers/scsi/qedf/qedf_els.c 	did = fcport->rdata->ids.port_id;
fcport            108 drivers/scsi/qedf/qedf_els.c 	sid = fcport->sid;
fcport            117 drivers/scsi/qedf/qedf_els.c 	spin_lock_irqsave(&fcport->rport_lock, flags);
fcport            119 drivers/scsi/qedf/qedf_els.c 	sqe_idx = qedf_get_sqe_idx(fcport);
fcport            120 drivers/scsi/qedf/qedf_els.c 	sqe = &fcport->sq[sqe_idx];
fcport            134 drivers/scsi/qedf/qedf_els.c 	qedf_ring_doorbell(fcport);
fcport            137 drivers/scsi/qedf/qedf_els.c 	spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport            176 drivers/scsi/qedf/qedf_els.c 	qedf = rrq_req->fcport->qedf;
fcport            222 drivers/scsi/qedf/qedf_els.c 	struct qedf_rport *fcport;
fcport            236 drivers/scsi/qedf/qedf_els.c 	fcport = aborted_io_req->fcport;
fcport            238 drivers/scsi/qedf/qedf_els.c 	if (!fcport) {
fcport            248 drivers/scsi/qedf/qedf_els.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport            253 drivers/scsi/qedf/qedf_els.c 	if (!fcport->qedf) {
fcport            258 drivers/scsi/qedf/qedf_els.c 	qedf = fcport->qedf;
fcport            273 drivers/scsi/qedf/qedf_els.c 	sid = fcport->sid;
fcport            297 drivers/scsi/qedf/qedf_els.c 	rc = qedf_initiate_els(fcport, ELS_RRQ, &rrq, sizeof(rrq),
fcport            310 drivers/scsi/qedf/qedf_els.c static void qedf_process_l2_frame_compl(struct qedf_rport *fcport,
fcport            314 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport = fcport->qedf->lport;
fcport            330 drivers/scsi/qedf/qedf_els.c 	hton24(fh->fh_s_id, fcport->rdata->ids.port_id);
fcport            349 drivers/scsi/qedf/qedf_els.c void qedf_restart_rport(struct qedf_rport *fcport)
fcport            356 drivers/scsi/qedf/qedf_els.c 	if (!fcport) {
fcport            361 drivers/scsi/qedf/qedf_els.c 	spin_lock_irqsave(&fcport->rport_lock, flags);
fcport            362 drivers/scsi/qedf/qedf_els.c 	if (test_bit(QEDF_RPORT_IN_RESET, &fcport->flags) ||
fcport            363 drivers/scsi/qedf/qedf_els.c 	    !test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags) ||
fcport            364 drivers/scsi/qedf/qedf_els.c 	    test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags)) {
fcport            365 drivers/scsi/qedf/qedf_els.c 		QEDF_ERR(&(fcport->qedf->dbg_ctx), "fcport %p already in reset or not offloaded.\n",
fcport            366 drivers/scsi/qedf/qedf_els.c 		    fcport);
fcport            367 drivers/scsi/qedf/qedf_els.c 		spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport            372 drivers/scsi/qedf/qedf_els.c 	set_bit(QEDF_RPORT_IN_RESET, &fcport->flags);
fcport            373 drivers/scsi/qedf/qedf_els.c 	spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport            375 drivers/scsi/qedf/qedf_els.c 	rdata = fcport->rdata;
fcport            377 drivers/scsi/qedf/qedf_els.c 		fcport->rdata = NULL;
fcport            382 drivers/scsi/qedf/qedf_els.c 		lport = fcport->qedf->lport;
fcport            384 drivers/scsi/qedf/qedf_els.c 		QEDF_ERR(&(fcport->qedf->dbg_ctx),
fcport            394 drivers/scsi/qedf/qedf_els.c 			fcport->rdata = rdata;
fcport            397 drivers/scsi/qedf/qedf_els.c 			fcport->rdata = NULL;
fcport            400 drivers/scsi/qedf/qedf_els.c 	clear_bit(QEDF_RPORT_IN_RESET, &fcport->flags);
fcport            406 drivers/scsi/qedf/qedf_els.c 	struct qedf_rport *fcport;
fcport            432 drivers/scsi/qedf/qedf_els.c 	fcport = els_req->fcport;
fcport            452 drivers/scsi/qedf/qedf_els.c 			qedf_restart_rport(fcport);
fcport            457 drivers/scsi/qedf/qedf_els.c 		QEDF_ERR(&(fcport->qedf->dbg_ctx), "resp_len is "
fcport            462 drivers/scsi/qedf/qedf_els.c 	fp = fc_frame_alloc(fcport->qedf->lport, resp_len);
fcport            464 drivers/scsi/qedf/qedf_els.c 		QEDF_ERR(&(fcport->qedf->dbg_ctx),
fcport            477 drivers/scsi/qedf/qedf_els.c 	QEDF_INFO(&(fcport->qedf->dbg_ctx), QEDF_LOG_ELS,
fcport            479 drivers/scsi/qedf/qedf_els.c 	qedf_process_l2_frame_compl(fcport, fp, l2_oxid);
fcport            485 drivers/scsi/qedf/qedf_els.c int qedf_send_adisc(struct qedf_rport *fcport, struct fc_frame *fp)
fcport            489 drivers/scsi/qedf/qedf_els.c 	struct fc_lport *lport = fcport->qedf->lport;
fcport            495 drivers/scsi/qedf/qedf_els.c 	qedf = fcport->qedf;
fcport            512 drivers/scsi/qedf/qedf_els.c 	rc = qedf_initiate_els(fcport, ELS_ADISC, adisc, sizeof(*adisc),
fcport            538 drivers/scsi/qedf/qedf_els.c 	qedf = srr_req->fcport->qedf;
fcport            612 drivers/scsi/qedf/qedf_els.c 	struct qedf_rport *fcport;
fcport            623 drivers/scsi/qedf/qedf_els.c 	fcport = orig_io_req->fcport;
fcport            626 drivers/scsi/qedf/qedf_els.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport            631 drivers/scsi/qedf/qedf_els.c 	if (!fcport->qedf) {
fcport            639 drivers/scsi/qedf/qedf_els.c 	qedf = fcport->qedf;
fcport            663 drivers/scsi/qedf/qedf_els.c 	rc = qedf_initiate_els(fcport, ELS_SRR, &srr, sizeof(srr),
fcport            684 drivers/scsi/qedf/qedf_els.c 	struct qedf_rport *fcport;
fcport            690 drivers/scsi/qedf/qedf_els.c 	fcport = orig_io_req->fcport;
fcport            692 drivers/scsi/qedf/qedf_els.c 	QEDF_INFO(&(fcport->qedf->dbg_ctx), QEDF_LOG_ELS,
fcport            698 drivers/scsi/qedf/qedf_els.c 		QEDF_ERR(&(fcport->qedf->dbg_ctx), "Unable to allocate cb_arg "
fcport            711 drivers/scsi/qedf/qedf_els.c 	qedf_cmd_timer_set(fcport->qedf, orig_io_req,
fcport            714 drivers/scsi/qedf/qedf_els.c 	spin_lock_irqsave(&fcport->rport_lock, flags);
fcport            716 drivers/scsi/qedf/qedf_els.c 	sqe_idx = qedf_get_sqe_idx(fcport);
fcport            717 drivers/scsi/qedf/qedf_els.c 	sqe = &fcport->sq[sqe_idx];
fcport            723 drivers/scsi/qedf/qedf_els.c 	qedf_ring_doorbell(fcport);
fcport            725 drivers/scsi/qedf/qedf_els.c 	spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport            757 drivers/scsi/qedf/qedf_els.c 	struct qedf_rport *fcport;
fcport            762 drivers/scsi/qedf/qedf_els.c 	fcport = orig_io_req->fcport;
fcport            763 drivers/scsi/qedf/qedf_els.c 	if (!fcport) {
fcport            769 drivers/scsi/qedf/qedf_els.c 		QEDF_ERR(&(fcport->qedf->dbg_ctx), "sc_cmd is NULL for "
fcport            774 drivers/scsi/qedf/qedf_els.c 	new_io_req = qedf_alloc_cmd(fcport, QEDF_SCSI_CMD);
fcport            776 drivers/scsi/qedf/qedf_els.c 		QEDF_ERR(&(fcport->qedf->dbg_ctx), "Could not allocate new "
fcport            792 drivers/scsi/qedf/qedf_els.c 	spin_lock_irqsave(&fcport->rport_lock, flags);
fcport            795 drivers/scsi/qedf/qedf_els.c 	if (qedf_post_io_req(fcport, new_io_req)) {
fcport            796 drivers/scsi/qedf/qedf_els.c 		QEDF_ERR(&(fcport->qedf->dbg_ctx), "Unable to post io_req\n");
fcport            798 drivers/scsi/qedf/qedf_els.c 		atomic_inc(&fcport->free_sqes);
fcport            800 drivers/scsi/qedf/qedf_els.c 		QEDF_INFO(&(fcport->qedf->dbg_ctx), QEDF_LOG_ELS,
fcport            807 drivers/scsi/qedf/qedf_els.c 		spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport            812 drivers/scsi/qedf/qedf_els.c 	spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport            839 drivers/scsi/qedf/qedf_els.c 	qedf = rec_req->fcport->qedf;
fcport            980 drivers/scsi/qedf/qedf_els.c 	struct qedf_rport *fcport;
fcport            993 drivers/scsi/qedf/qedf_els.c 	fcport = orig_io_req->fcport;
fcport            996 drivers/scsi/qedf/qedf_els.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport           1001 drivers/scsi/qedf/qedf_els.c 	if (!fcport->qedf) {
fcport           1009 drivers/scsi/qedf/qedf_els.c 	qedf = fcport->qedf;
fcport           1011 drivers/scsi/qedf/qedf_els.c 	sid = fcport->sid;
fcport           1035 drivers/scsi/qedf/qedf_els.c 	rc = qedf_initiate_els(fcport, ELS_REC, &rec, sizeof(rec),
fcport             24 drivers/scsi/qedf/qedf_io.c 	struct qedf_rport *fcport;
fcport             32 drivers/scsi/qedf/qedf_io.c 	fcport = io_req->fcport;
fcport             33 drivers/scsi/qedf/qedf_io.c 	if (io_req->fcport == NULL) {
fcport             38 drivers/scsi/qedf/qedf_io.c 	qedf = fcport->qedf;
fcport             69 drivers/scsi/qedf/qedf_io.c 		qedf_restart_rport(fcport);
fcport            305 drivers/scsi/qedf/qedf_io.c struct qedf_ioreq *qedf_alloc_cmd(struct qedf_rport *fcport, u8 cmd_type)
fcport            307 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = fcport->qedf;
fcport            316 drivers/scsi/qedf/qedf_io.c 	free_sqes = atomic_read(&fcport->free_sqes);
fcport            326 drivers/scsi/qedf/qedf_io.c 	if ((atomic_read(&fcport->num_active_ios) >=
fcport            330 drivers/scsi/qedf/qedf_io.c 		    atomic_read(&fcport->num_active_ios));
fcport            369 drivers/scsi/qedf/qedf_io.c 	atomic_inc(&fcport->num_active_ios);
fcport            370 drivers/scsi/qedf/qedf_io.c 	atomic_dec(&fcport->free_sqes);
fcport            375 drivers/scsi/qedf/qedf_io.c 	io_req->fcport = fcport;
fcport            413 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = io_req->fcport->qedf;
fcport            444 drivers/scsi/qedf/qedf_io.c 	struct qedf_rport *fcport = io_req->fcport;
fcport            448 drivers/scsi/qedf/qedf_io.c 		QEDF_WARN(&fcport->qedf->dbg_ctx,
fcport            459 drivers/scsi/qedf/qedf_io.c 	atomic_dec(&fcport->num_active_ios);
fcport            461 drivers/scsi/qedf/qedf_io.c 	if (atomic_read(&fcport->num_active_ios) < 0) {
fcport            462 drivers/scsi/qedf/qedf_io.c 		QEDF_WARN(&(fcport->qedf->dbg_ctx), "active_ios < 0.\n");
fcport            468 drivers/scsi/qedf/qedf_io.c 	io_req->fcport = NULL;
fcport            473 drivers/scsi/qedf/qedf_io.c 	io_req->fcport = NULL;
fcport            594 drivers/scsi/qedf/qedf_io.c static void  qedf_init_task(struct qedf_rport *fcport, struct fc_lport *lport,
fcport            604 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = fcport->qedf;
fcport            636 drivers/scsi/qedf/qedf_io.c 	io_req->task_params->conn_cid = fcport->fw_cid;
fcport            639 drivers/scsi/qedf/qedf_io.c 	io_req->task_params->is_tape_device = fcport->dev_type;
fcport            688 drivers/scsi/qedf/qedf_io.c 	struct qedf_rport *fcport = io_req->fcport;
fcport            689 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = io_req->fcport->qedf;
fcport            716 drivers/scsi/qedf/qedf_io.c 	io_req->task_params->conn_cid = fcport->fw_cid;
fcport            720 drivers/scsi/qedf/qedf_io.c 	io_req->task_params->is_tape_device = fcport->dev_type;
fcport            766 drivers/scsi/qedf/qedf_io.c u16 qedf_get_sqe_idx(struct qedf_rport *fcport)
fcport            768 drivers/scsi/qedf/qedf_io.c 	uint16_t total_sqe = (fcport->sq_mem_size)/(sizeof(struct fcoe_wqe));
fcport            771 drivers/scsi/qedf/qedf_io.c 	rval = fcport->sq_prod_idx;
fcport            774 drivers/scsi/qedf/qedf_io.c 	fcport->sq_prod_idx++;
fcport            775 drivers/scsi/qedf/qedf_io.c 	fcport->fw_sq_prod_idx++;
fcport            776 drivers/scsi/qedf/qedf_io.c 	if (fcport->sq_prod_idx == total_sqe)
fcport            777 drivers/scsi/qedf/qedf_io.c 		fcport->sq_prod_idx = 0;
fcport            782 drivers/scsi/qedf/qedf_io.c void qedf_ring_doorbell(struct qedf_rport *fcport)
fcport            793 drivers/scsi/qedf/qedf_io.c 	dbell.sq_prod = fcport->fw_sq_prod_idx;
fcport            799 drivers/scsi/qedf/qedf_io.c 	writel(*(u32 *)&dbell, fcport->p_doorbell);
fcport            808 drivers/scsi/qedf/qedf_io.c static void qedf_trace_io(struct qedf_rport *fcport, struct qedf_ioreq *io_req,
fcport            811 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = fcport->qedf;
fcport            822 drivers/scsi/qedf/qedf_io.c 	io_log->port_id = fcport->rdata->ids.port_id;
fcport            855 drivers/scsi/qedf/qedf_io.c int qedf_post_io_req(struct qedf_rport *fcport, struct qedf_ioreq *io_req)
fcport            899 drivers/scsi/qedf/qedf_io.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags) ||
fcport            900 drivers/scsi/qedf/qedf_io.c 	    test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags)) {
fcport            912 drivers/scsi/qedf/qedf_io.c 	sqe_idx = qedf_get_sqe_idx(fcport);
fcport            913 drivers/scsi/qedf/qedf_io.c 	sqe = &fcport->sq[sqe_idx];
fcport            927 drivers/scsi/qedf/qedf_io.c 	qedf_init_task(fcport, lport, io_req, task_ctx, sqe);
fcport            930 drivers/scsi/qedf/qedf_io.c 	qedf_ring_doorbell(fcport);
fcport            936 drivers/scsi/qedf/qedf_io.c 		qedf_trace_io(fcport, io_req, QEDF_IO_TRACE_REQ);
fcport            948 drivers/scsi/qedf/qedf_io.c 	struct qedf_rport *fcport;
fcport           1009 drivers/scsi/qedf/qedf_io.c 	fcport = (struct qedf_rport *)&rp[1];
fcport           1011 drivers/scsi/qedf/qedf_io.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags) ||
fcport           1012 drivers/scsi/qedf/qedf_io.c 	    test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags)) {
fcport           1021 drivers/scsi/qedf/qedf_io.c 	atomic_inc(&fcport->ios_to_queue);
fcport           1023 drivers/scsi/qedf/qedf_io.c 	if (fcport->retry_delay_timestamp) {
fcport           1024 drivers/scsi/qedf/qedf_io.c 		if (time_after(jiffies, fcport->retry_delay_timestamp)) {
fcport           1025 drivers/scsi/qedf/qedf_io.c 			fcport->retry_delay_timestamp = 0;
fcport           1029 drivers/scsi/qedf/qedf_io.c 			atomic_dec(&fcport->ios_to_queue);
fcport           1034 drivers/scsi/qedf/qedf_io.c 	io_req = qedf_alloc_cmd(fcport, QEDF_SCSI_CMD);
fcport           1037 drivers/scsi/qedf/qedf_io.c 		atomic_dec(&fcport->ios_to_queue);
fcport           1044 drivers/scsi/qedf/qedf_io.c 	spin_lock_irqsave(&fcport->rport_lock, flags);
fcport           1045 drivers/scsi/qedf/qedf_io.c 	if (qedf_post_io_req(fcport, io_req)) {
fcport           1048 drivers/scsi/qedf/qedf_io.c 		atomic_inc(&fcport->free_sqes);
fcport           1051 drivers/scsi/qedf/qedf_io.c 	spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport           1052 drivers/scsi/qedf/qedf_io.c 	atomic_dec(&fcport->ios_to_queue);
fcport           1062 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = io_req->fcport->qedf;
fcport           1133 drivers/scsi/qedf/qedf_io.c 	struct qedf_rport *fcport;
fcport           1186 drivers/scsi/qedf/qedf_io.c 	fcport = io_req->fcport;
fcport           1192 drivers/scsi/qedf/qedf_io.c 	if (test_bit(QEDF_RPORT_IN_TARGET_RESET, &fcport->flags) ||
fcport           1193 drivers/scsi/qedf/qedf_io.c 	    (test_bit(QEDF_RPORT_IN_LUN_RESET, &fcport->flags) &&
fcport           1194 drivers/scsi/qedf/qedf_io.c 	     sc_cmd->device->lun == (u64)fcport->lun_reset_lun)) {
fcport           1277 drivers/scsi/qedf/qedf_io.c 					fcport->retry_delay_timestamp =
fcport           1299 drivers/scsi/qedf/qedf_io.c 		qedf_trace_io(fcport, io_req, QEDF_IO_TRACE_RSP);
fcport           1411 drivers/scsi/qedf/qedf_io.c 		qedf_trace_io(io_req->fcport, io_req, QEDF_IO_TRACE_RSP);
fcport           1436 drivers/scsi/qedf/qedf_io.c 	struct qedf_rport *fcport = io_req->fcport;
fcport           1447 drivers/scsi/qedf/qedf_io.c 	QEDF_ERR(&(io_req->fcport->qedf->dbg_ctx), "Warning CQE, "
fcport           1449 drivers/scsi/qedf/qedf_io.c 	QEDF_ERR(&(io_req->fcport->qedf->dbg_ctx),
fcport           1453 drivers/scsi/qedf/qedf_io.c 	QEDF_ERR(&(io_req->fcport->qedf->dbg_ctx), "tx_buff_off=%08x, "
fcport           1471 drivers/scsi/qedf/qedf_io.c 	if (fcport->dev_type == QEDF_RPORT_TYPE_TAPE) {
fcport           1513 drivers/scsi/qedf/qedf_io.c 	QEDF_ERR(&(io_req->fcport->qedf->dbg_ctx), "Error detection CQE, "
fcport           1515 drivers/scsi/qedf/qedf_io.c 	QEDF_ERR(&(io_req->fcport->qedf->dbg_ctx),
fcport           1519 drivers/scsi/qedf/qedf_io.c 	QEDF_ERR(&(io_req->fcport->qedf->dbg_ctx), "tx_buff_off=%08x, "
fcport           1565 drivers/scsi/qedf/qedf_io.c void qedf_flush_active_ios(struct qedf_rport *fcport, int lun)
fcport           1576 drivers/scsi/qedf/qedf_io.c 	if (!fcport) {
fcport           1582 drivers/scsi/qedf/qedf_io.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport           1587 drivers/scsi/qedf/qedf_io.c 	qedf = fcport->qedf;
fcport           1595 drivers/scsi/qedf/qedf_io.c 	if (test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags) &&
fcport           1597 drivers/scsi/qedf/qedf_io.c 		while (atomic_read(&fcport->ios_to_queue)) {
fcport           1600 drivers/scsi/qedf/qedf_io.c 				  atomic_read(&fcport->ios_to_queue));
fcport           1604 drivers/scsi/qedf/qedf_io.c 					 atomic_read(&fcport->ios_to_queue));
fcport           1615 drivers/scsi/qedf/qedf_io.c 		  atomic_read(&fcport->num_active_ios), fcport,
fcport           1616 drivers/scsi/qedf/qedf_io.c 		  fcport->rdata->ids.port_id, fcport->rport->scsi_target_id);
fcport           1621 drivers/scsi/qedf/qedf_io.c 		set_bit(QEDF_RPORT_IN_TARGET_RESET, &fcport->flags);
fcport           1623 drivers/scsi/qedf/qedf_io.c 		set_bit(QEDF_RPORT_IN_LUN_RESET, &fcport->flags);
fcport           1624 drivers/scsi/qedf/qedf_io.c 		fcport->lun_reset_lun = lun;
fcport           1632 drivers/scsi/qedf/qedf_io.c 		if (!io_req->fcport)
fcport           1650 drivers/scsi/qedf/qedf_io.c 		if (io_req->fcport != fcport)
fcport           1781 drivers/scsi/qedf/qedf_io.c 		  flush_cnt, atomic_read(&fcport->num_active_ios));
fcport           1783 drivers/scsi/qedf/qedf_io.c 	if (test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags) &&
fcport           1785 drivers/scsi/qedf/qedf_io.c 		while (atomic_read(&fcport->num_active_ios)) {
fcport           1789 drivers/scsi/qedf/qedf_io.c 				  atomic_read(&fcport->num_active_ios),
fcport           1795 drivers/scsi/qedf/qedf_io.c 					 atomic_read(&fcport->num_active_ios));
fcport           1798 drivers/scsi/qedf/qedf_io.c 					if (io_req->fcport &&
fcport           1799 drivers/scsi/qedf/qedf_io.c 					    io_req->fcport == fcport) {
fcport           1821 drivers/scsi/qedf/qedf_io.c 	clear_bit(QEDF_RPORT_IN_LUN_RESET, &fcport->flags);
fcport           1822 drivers/scsi/qedf/qedf_io.c 	clear_bit(QEDF_RPORT_IN_TARGET_RESET, &fcport->flags);
fcport           1834 drivers/scsi/qedf/qedf_io.c 	struct qedf_rport *fcport = io_req->fcport;
fcport           1846 drivers/scsi/qedf/qedf_io.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport           1852 drivers/scsi/qedf/qedf_io.c 	qedf = fcport->qedf;
fcport           1853 drivers/scsi/qedf/qedf_io.c 	rdata = fcport->rdata;
fcport           1877 drivers/scsi/qedf/qedf_io.c 	if (!atomic_read(&fcport->free_sqes)) {
fcport           1883 drivers/scsi/qedf/qedf_io.c 	if (test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags)) {
fcport           1917 drivers/scsi/qedf/qedf_io.c 	spin_lock_irqsave(&fcport->rport_lock, flags);
fcport           1919 drivers/scsi/qedf/qedf_io.c 	sqe_idx = qedf_get_sqe_idx(fcport);
fcport           1920 drivers/scsi/qedf/qedf_io.c 	sqe = &fcport->sq[sqe_idx];
fcport           1925 drivers/scsi/qedf/qedf_io.c 	qedf_ring_doorbell(fcport);
fcport           1927 drivers/scsi/qedf/qedf_io.c 	spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport           1941 drivers/scsi/qedf/qedf_io.c 	struct qedf_rport *fcport = io_req->fcport;
fcport           1953 drivers/scsi/qedf/qedf_io.c 	if (!fcport) {
fcport           1964 drivers/scsi/qedf/qedf_io.c 	if (test_bit(QEDF_RPORT_IN_TARGET_RESET, &fcport->flags) ||
fcport           1965 drivers/scsi/qedf/qedf_io.c 	    test_bit(QEDF_RPORT_IN_LUN_RESET, &fcport->flags)) {
fcport           2030 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = io_req->fcport->qedf;
fcport           2132 drivers/scsi/qedf/qedf_io.c 	struct qedf_rport *fcport;
fcport           2143 drivers/scsi/qedf/qedf_io.c 	fcport = io_req->fcport;
fcport           2144 drivers/scsi/qedf/qedf_io.c 	if (!fcport) {
fcport           2150 drivers/scsi/qedf/qedf_io.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport           2156 drivers/scsi/qedf/qedf_io.c 	qedf = fcport->qedf;
fcport           2172 drivers/scsi/qedf/qedf_io.c 	if (!atomic_read(&fcport->free_sqes)) {
fcport           2192 drivers/scsi/qedf/qedf_io.c 		  refcount, fcport, fcport->rdata->ids.port_id);
fcport           2203 drivers/scsi/qedf/qedf_io.c 	spin_lock_irqsave(&fcport->rport_lock, flags);
fcport           2205 drivers/scsi/qedf/qedf_io.c 	sqe_idx = qedf_get_sqe_idx(fcport);
fcport           2206 drivers/scsi/qedf/qedf_io.c 	sqe = &fcport->sq[sqe_idx];
fcport           2211 drivers/scsi/qedf/qedf_io.c 	qedf_ring_doorbell(fcport);
fcport           2213 drivers/scsi/qedf/qedf_io.c 	spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport           2268 drivers/scsi/qedf/qedf_io.c static int qedf_execute_tmf(struct qedf_rport *fcport, struct scsi_cmnd *sc_cmd,
fcport           2273 drivers/scsi/qedf/qedf_io.c 	struct qedf_ctx *qedf = fcport->qedf;
fcport           2289 drivers/scsi/qedf/qedf_io.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport           2295 drivers/scsi/qedf/qedf_io.c 	io_req = qedf_alloc_cmd(fcport, QEDF_TASK_MGMT_CMD);
fcport           2309 drivers/scsi/qedf/qedf_io.c 	io_req->fcport = fcport;
fcport           2334 drivers/scsi/qedf/qedf_io.c 	spin_lock_irqsave(&fcport->rport_lock, flags);
fcport           2336 drivers/scsi/qedf/qedf_io.c 	sqe_idx = qedf_get_sqe_idx(fcport);
fcport           2337 drivers/scsi/qedf/qedf_io.c 	sqe = &fcport->sq[sqe_idx];
fcport           2340 drivers/scsi/qedf/qedf_io.c 	qedf_init_task(fcport, lport, io_req, task, sqe);
fcport           2341 drivers/scsi/qedf/qedf_io.c 	qedf_ring_doorbell(fcport);
fcport           2343 drivers/scsi/qedf/qedf_io.c 	spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport           2366 drivers/scsi/qedf/qedf_io.c 	if (test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags)) {
fcport           2376 drivers/scsi/qedf/qedf_io.c 		qedf_flush_active_ios(fcport, lun);
fcport           2378 drivers/scsi/qedf/qedf_io.c 		qedf_flush_active_ios(fcport, -1);
fcport           2395 drivers/scsi/qedf/qedf_io.c 	struct qedf_rport *fcport = (struct qedf_rport *)&rp[1];
fcport           2402 drivers/scsi/qedf/qedf_io.c 	struct fc_rport_priv *rdata = fcport->rdata;
fcport           2437 drivers/scsi/qedf/qedf_io.c 	if (!fcport) {
fcport           2443 drivers/scsi/qedf/qedf_io.c 	qedf = fcport->qedf;
fcport           2451 drivers/scsi/qedf/qedf_io.c 	if (test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags)) {
fcport           2469 drivers/scsi/qedf/qedf_io.c 	if (test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags)) {
fcport           2470 drivers/scsi/qedf/qedf_io.c 		if (!fcport->rdata)
fcport           2472 drivers/scsi/qedf/qedf_io.c 				 fcport);
fcport           2476 drivers/scsi/qedf/qedf_io.c 				 fcport, fcport->rdata->ids.port_id);
fcport           2481 drivers/scsi/qedf/qedf_io.c 	rc = qedf_execute_tmf(fcport, sc_cmd, tm_flags);
fcport            656 drivers/scsi/qedf/qedf_main.c 	struct qedf_rport *fcport = NULL;
fcport            667 drivers/scsi/qedf/qedf_main.c 	fcport = (struct qedf_rport *)&rp[1];
fcport            668 drivers/scsi/qedf/qedf_main.c 	rdata = fcport->rdata;
fcport            713 drivers/scsi/qedf/qedf_main.c 	if (test_bit(QEDF_RPORT_UPLOADING_CONNECTION, &fcport->flags)) {
fcport            809 drivers/scsi/qedf/qedf_main.c 	struct qedf_rport *fcport = NULL;
fcport            823 drivers/scsi/qedf/qedf_main.c 	list_for_each_entry_rcu(fcport, &qedf->fcports, peers) {
fcport            824 drivers/scsi/qedf/qedf_main.c 		if (fcport && test_bit(QEDF_RPORT_SESSION_READY,
fcport            825 drivers/scsi/qedf/qedf_main.c 				       &fcport->flags)) {
fcport            826 drivers/scsi/qedf/qedf_main.c 			if (fcport->rdata)
fcport            829 drivers/scsi/qedf/qedf_main.c 					 fcport, fcport->rdata->ids.port_id);
fcport            832 drivers/scsi/qedf/qedf_main.c 					 "Waiting for fcport %p.\n", fcport);
fcport            946 drivers/scsi/qedf/qedf_main.c 	struct qedf_rport *fcport;
fcport            950 drivers/scsi/qedf/qedf_main.c 	list_for_each_entry_rcu(fcport, &qedf->fcports, peers) {
fcport            951 drivers/scsi/qedf/qedf_main.c 		rdata = fcport->rdata;
fcport            956 drivers/scsi/qedf/qedf_main.c 			return fcport;
fcport            966 drivers/scsi/qedf/qedf_main.c static int qedf_xmit_l2_frame(struct qedf_rport *fcport, struct fc_frame *fp)
fcport            976 drivers/scsi/qedf/qedf_main.c 			qedf_send_adisc(fcport, fp);
fcport           1005 drivers/scsi/qedf/qedf_main.c 	struct qedf_rport *fcport;
fcport           1072 drivers/scsi/qedf/qedf_main.c 	fcport = qedf_fcport_lookup(qedf, ntoh24(fh->fh_d_id));
fcport           1074 drivers/scsi/qedf/qedf_main.c 	if (fcport && test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport           1075 drivers/scsi/qedf/qedf_main.c 		rc = qedf_xmit_l2_frame(fcport, fp);
fcport           1177 drivers/scsi/qedf/qedf_main.c static int qedf_alloc_sq(struct qedf_ctx *qedf, struct qedf_rport *fcport)
fcport           1185 drivers/scsi/qedf/qedf_main.c 	fcport->sq_mem_size = SQ_NUM_ENTRIES * sizeof(struct fcoe_wqe);
fcport           1186 drivers/scsi/qedf/qedf_main.c 	fcport->sq_mem_size = ALIGN(fcport->sq_mem_size, QEDF_PAGE_SIZE);
fcport           1187 drivers/scsi/qedf/qedf_main.c 	fcport->sq_pbl_size = (fcport->sq_mem_size / QEDF_PAGE_SIZE) *
fcport           1189 drivers/scsi/qedf/qedf_main.c 	fcport->sq_pbl_size = fcport->sq_pbl_size + QEDF_PAGE_SIZE;
fcport           1191 drivers/scsi/qedf/qedf_main.c 	fcport->sq = dma_alloc_coherent(&qedf->pdev->dev, fcport->sq_mem_size,
fcport           1192 drivers/scsi/qedf/qedf_main.c 					&fcport->sq_dma, GFP_KERNEL);
fcport           1193 drivers/scsi/qedf/qedf_main.c 	if (!fcport->sq) {
fcport           1199 drivers/scsi/qedf/qedf_main.c 	fcport->sq_pbl = dma_alloc_coherent(&qedf->pdev->dev,
fcport           1200 drivers/scsi/qedf/qedf_main.c 					    fcport->sq_pbl_size,
fcport           1201 drivers/scsi/qedf/qedf_main.c 					    &fcport->sq_pbl_dma, GFP_KERNEL);
fcport           1202 drivers/scsi/qedf/qedf_main.c 	if (!fcport->sq_pbl) {
fcport           1209 drivers/scsi/qedf/qedf_main.c 	num_pages = fcport->sq_mem_size / QEDF_PAGE_SIZE;
fcport           1210 drivers/scsi/qedf/qedf_main.c 	page = fcport->sq_dma;
fcport           1211 drivers/scsi/qedf/qedf_main.c 	pbl = (u32 *)fcport->sq_pbl;
fcport           1224 drivers/scsi/qedf/qedf_main.c 	dma_free_coherent(&qedf->pdev->dev, fcport->sq_mem_size, fcport->sq,
fcport           1225 drivers/scsi/qedf/qedf_main.c 	    fcport->sq_dma);
fcport           1230 drivers/scsi/qedf/qedf_main.c static void qedf_free_sq(struct qedf_ctx *qedf, struct qedf_rport *fcport)
fcport           1232 drivers/scsi/qedf/qedf_main.c 	if (fcport->sq_pbl)
fcport           1233 drivers/scsi/qedf/qedf_main.c 		dma_free_coherent(&qedf->pdev->dev, fcport->sq_pbl_size,
fcport           1234 drivers/scsi/qedf/qedf_main.c 		    fcport->sq_pbl, fcport->sq_pbl_dma);
fcport           1235 drivers/scsi/qedf/qedf_main.c 	if (fcport->sq)
fcport           1236 drivers/scsi/qedf/qedf_main.c 		dma_free_coherent(&qedf->pdev->dev, fcport->sq_mem_size,
fcport           1237 drivers/scsi/qedf/qedf_main.c 		    fcport->sq, fcport->sq_dma);
fcport           1241 drivers/scsi/qedf/qedf_main.c 	struct qedf_rport *fcport)
fcport           1246 drivers/scsi/qedf/qedf_main.c 	uint16_t total_sqe = (fcport->sq_mem_size / sizeof(struct fcoe_wqe));
fcport           1249 drivers/scsi/qedf/qedf_main.c 		   "portid=%06x.\n", fcport->rdata->ids.port_id);
fcport           1250 drivers/scsi/qedf/qedf_main.c 	rval = qed_ops->acquire_conn(qedf->cdev, &fcport->handle,
fcport           1251 drivers/scsi/qedf/qedf_main.c 	    &fcport->fw_cid, &fcport->p_doorbell);
fcport           1254 drivers/scsi/qedf/qedf_main.c 			   "for portid=%06x.\n", fcport->rdata->ids.port_id);
fcport           1260 drivers/scsi/qedf/qedf_main.c 		   "fw_cid=%08x handle=%d.\n", fcport->rdata->ids.port_id,
fcport           1261 drivers/scsi/qedf/qedf_main.c 		   fcport->fw_cid, fcport->handle);
fcport           1266 drivers/scsi/qedf/qedf_main.c 	conn_info.sq_pbl_addr = fcport->sq_pbl_dma;
fcport           1268 drivers/scsi/qedf/qedf_main.c 	conn_info.sq_curr_page_addr = (dma_addr_t)(*(u64 *)fcport->sq_pbl);
fcport           1270 drivers/scsi/qedf/qedf_main.c 	    (dma_addr_t)(*(u64 *)(fcport->sq_pbl + 8));
fcport           1277 drivers/scsi/qedf/qedf_main.c 	conn_info.tx_max_fc_pay_len = fcport->rdata->maxframe_size;
fcport           1280 drivers/scsi/qedf/qedf_main.c 	conn_info.rx_max_fc_pay_len = fcport->rdata->maxframe_size;
fcport           1292 drivers/scsi/qedf/qedf_main.c 	fcport->sid = port_id;
fcport           1297 drivers/scsi/qedf/qedf_main.c 	conn_info.max_conc_seqs_c3 = fcport->rdata->max_seq;
fcport           1300 drivers/scsi/qedf/qedf_main.c 	port_id = fcport->rdata->rport->port_id;
fcport           1308 drivers/scsi/qedf/qedf_main.c 	if (fcport->dev_type == QEDF_RPORT_TYPE_TAPE) {
fcport           1311 drivers/scsi/qedf/qedf_main.c 		    fcport->rdata->ids.port_id);
fcport           1315 drivers/scsi/qedf/qedf_main.c 		    ((fcport->rdata->sp_features & FC_SP_FT_SEQC) ? 1 : 0) <<
fcport           1319 drivers/scsi/qedf/qedf_main.c 	rval = qed_ops->offload_conn(qedf->cdev, fcport->handle, &conn_info);
fcport           1322 drivers/scsi/qedf/qedf_main.c 			   "for portid=%06x.\n", fcport->rdata->ids.port_id);
fcport           1327 drivers/scsi/qedf/qedf_main.c 			   fcport->rdata->ids.port_id, total_sqe);
fcport           1329 drivers/scsi/qedf/qedf_main.c 	spin_lock_init(&fcport->rport_lock);
fcport           1330 drivers/scsi/qedf/qedf_main.c 	atomic_set(&fcport->free_sqes, total_sqe);
fcport           1333 drivers/scsi/qedf/qedf_main.c 	qed_ops->release_conn(qedf->cdev, fcport->handle);
fcport           1340 drivers/scsi/qedf/qedf_main.c 	struct qedf_rport *fcport)
fcport           1353 drivers/scsi/qedf/qedf_main.c 		   "port_id=%06x.\n", fcport->rdata->ids.port_id);
fcport           1355 drivers/scsi/qedf/qedf_main.c 	qed_ops->destroy_conn(qedf->cdev, fcport->handle, term_params_dma);
fcport           1356 drivers/scsi/qedf/qedf_main.c 	qed_ops->release_conn(qedf->cdev, fcport->handle);
fcport           1363 drivers/scsi/qedf/qedf_main.c 	struct qedf_rport *fcport)
fcport           1365 drivers/scsi/qedf/qedf_main.c 	struct fc_rport_priv *rdata = fcport->rdata;
fcport           1368 drivers/scsi/qedf/qedf_main.c 	    fcport->rdata->ids.port_id);
fcport           1371 drivers/scsi/qedf/qedf_main.c 	qedf_flush_active_ios(fcport, -1);
fcport           1373 drivers/scsi/qedf/qedf_main.c 	if (test_and_clear_bit(QEDF_RPORT_SESSION_READY, &fcport->flags))
fcport           1374 drivers/scsi/qedf/qedf_main.c 		qedf_upload_connection(qedf, fcport);
fcport           1375 drivers/scsi/qedf/qedf_main.c 	qedf_free_sq(qedf, fcport);
fcport           1376 drivers/scsi/qedf/qedf_main.c 	fcport->rdata = NULL;
fcport           1377 drivers/scsi/qedf/qedf_main.c 	fcport->qedf = NULL;
fcport           1393 drivers/scsi/qedf/qedf_main.c 	struct qedf_rport *fcport;
fcport           1409 drivers/scsi/qedf/qedf_main.c 		fcport = (struct qedf_rport *)&rp[1];
fcport           1410 drivers/scsi/qedf/qedf_main.c 		fcport->qedf = qedf;
fcport           1423 drivers/scsi/qedf/qedf_main.c 		if (test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport           1456 drivers/scsi/qedf/qedf_main.c 		fcport->rdata = rdata;
fcport           1457 drivers/scsi/qedf/qedf_main.c 		fcport->rport = rport;
fcport           1459 drivers/scsi/qedf/qedf_main.c 		rval = qedf_alloc_sq(qedf, fcport);
fcport           1461 drivers/scsi/qedf/qedf_main.c 			qedf_cleanup_fcport(qedf, fcport);
fcport           1469 drivers/scsi/qedf/qedf_main.c 			fcport->dev_type = QEDF_RPORT_TYPE_TAPE;
fcport           1474 drivers/scsi/qedf/qedf_main.c 			fcport->dev_type = QEDF_RPORT_TYPE_DISK;
fcport           1477 drivers/scsi/qedf/qedf_main.c 		rval = qedf_offload_connection(qedf, fcport);
fcport           1479 drivers/scsi/qedf/qedf_main.c 			qedf_cleanup_fcport(qedf, fcport);
fcport           1485 drivers/scsi/qedf/qedf_main.c 		list_add_rcu(&fcport->peers, &qedf->fcports);
fcport           1492 drivers/scsi/qedf/qedf_main.c 		set_bit(QEDF_RPORT_SESSION_READY, &fcport->flags);
fcport           1513 drivers/scsi/qedf/qedf_main.c 		fcport = (struct qedf_rport *)&rp[1];
fcport           1515 drivers/scsi/qedf/qedf_main.c 		spin_lock_irqsave(&fcport->rport_lock, flags);
fcport           1517 drivers/scsi/qedf/qedf_main.c 		if (test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags) &&
fcport           1519 drivers/scsi/qedf/qedf_main.c 		    &fcport->flags)) {
fcport           1521 drivers/scsi/qedf/qedf_main.c 				&fcport->flags);
fcport           1522 drivers/scsi/qedf/qedf_main.c 			spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport           1523 drivers/scsi/qedf/qedf_main.c 			qedf_cleanup_fcport(qedf, fcport);
fcport           1529 drivers/scsi/qedf/qedf_main.c 			list_del_rcu(&fcport->peers);
fcport           1533 drivers/scsi/qedf/qedf_main.c 			    &fcport->flags);
fcport           1536 drivers/scsi/qedf/qedf_main.c 			spin_unlock_irqrestore(&fcport->rport_lock, flags);
fcport           2340 drivers/scsi/qedf/qedf_main.c 	struct qedf_rport *fcport;
fcport           2459 drivers/scsi/qedf/qedf_main.c 	fcport = qedf_fcport_lookup(qedf, ntoh24(fh->fh_d_id));
fcport           2461 drivers/scsi/qedf/qedf_main.c 	if (fcport && test_bit(QEDF_RPORT_UPLOADING_CONNECTION,
fcport           2462 drivers/scsi/qedf/qedf_main.c 	    &fcport->flags)) {
fcport           2677 drivers/scsi/qedf/qedf_main.c 	struct qedf_rport *fcport;
fcport           2693 drivers/scsi/qedf/qedf_main.c 	fcport = io_req->fcport;
fcport           2695 drivers/scsi/qedf/qedf_main.c 	if (fcport == NULL) {
fcport           2706 drivers/scsi/qedf/qedf_main.c 	if (!test_bit(QEDF_RPORT_SESSION_READY, &fcport->flags)) {
fcport           2708 drivers/scsi/qedf/qedf_main.c 			 "Session not offloaded yet, fcport = %p.\n", fcport);
fcport           2715 drivers/scsi/qedf/qedf_main.c 		atomic_inc(&fcport->free_sqes);
fcport           2732 drivers/scsi/qedf/qedf_main.c 		atomic_inc(&fcport->free_sqes);
fcport           2738 drivers/scsi/qedf/qedf_main.c 		atomic_inc(&fcport->free_sqes);
fcport           2744 drivers/scsi/qedf/qedf_main.c 		atomic_inc(&fcport->free_sqes);
fcport           2750 drivers/scsi/qedf/qedf_main.c 		atomic_inc(&fcport->free_sqes);
fcport           2755 drivers/scsi/qedf/qedf_main.c 		atomic_inc(&fcport->free_sqes);
fcport           2760 drivers/scsi/qedf/qedf_main.c 		atomic_inc(&fcport->free_sqes);
fcport           2766 drivers/scsi/qedf/qedf_main.c 		atomic_inc(&fcport->free_sqes);
fcport           2465 drivers/scsi/qla2xxx/qla_attr.c 	fc_port_t *fcport;
fcport           2468 drivers/scsi/qla2xxx/qla_attr.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           2469 drivers/scsi/qla2xxx/qla_attr.c 		if (fcport->rport &&
fcport           2470 drivers/scsi/qla2xxx/qla_attr.c 		    starget->id == fcport->rport->scsi_target_id) {
fcport           2471 drivers/scsi/qla2xxx/qla_attr.c 			node_name = wwn_to_u64(fcport->node_name);
fcport           2484 drivers/scsi/qla2xxx/qla_attr.c 	fc_port_t *fcport;
fcport           2487 drivers/scsi/qla2xxx/qla_attr.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           2488 drivers/scsi/qla2xxx/qla_attr.c 		if (fcport->rport &&
fcport           2489 drivers/scsi/qla2xxx/qla_attr.c 		    starget->id == fcport->rport->scsi_target_id) {
fcport           2490 drivers/scsi/qla2xxx/qla_attr.c 			port_name = wwn_to_u64(fcport->port_name);
fcport           2503 drivers/scsi/qla2xxx/qla_attr.c 	fc_port_t *fcport;
fcport           2506 drivers/scsi/qla2xxx/qla_attr.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           2507 drivers/scsi/qla2xxx/qla_attr.c 		if (fcport->rport &&
fcport           2508 drivers/scsi/qla2xxx/qla_attr.c 		    starget->id == fcport->rport->scsi_target_id) {
fcport           2509 drivers/scsi/qla2xxx/qla_attr.c 			port_id = fcport->d_id.b.domain << 16 |
fcport           2510 drivers/scsi/qla2xxx/qla_attr.c 			    fcport->d_id.b.area << 8 | fcport->d_id.b.al_pa;
fcport           2528 drivers/scsi/qla2xxx/qla_attr.c 	fc_port_t *fcport = *(fc_port_t **)rport->dd_data;
fcport           2531 drivers/scsi/qla2xxx/qla_attr.c 	if (!fcport)
fcport           2536 drivers/scsi/qla2xxx/qla_attr.c 	qla2x00_set_fcport_state(fcport, FCS_DEVICE_DEAD);
fcport           2543 drivers/scsi/qla2xxx/qla_attr.c 	fcport->rport = fcport->drport = NULL;
fcport           2547 drivers/scsi/qla2xxx/qla_attr.c 	if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags))
fcport           2550 drivers/scsi/qla2xxx/qla_attr.c 	if (unlikely(pci_channel_offline(fcport->vha->hw->pdev))) {
fcport           2551 drivers/scsi/qla2xxx/qla_attr.c 		qla2x00_abort_all_cmds(fcport->vha, DID_NO_CONNECT << 16);
fcport           2559 drivers/scsi/qla2xxx/qla_attr.c 	fc_port_t *fcport = *(fc_port_t **)rport->dd_data;
fcport           2561 drivers/scsi/qla2xxx/qla_attr.c 	if (!fcport)
fcport           2564 drivers/scsi/qla2xxx/qla_attr.c 	if (test_bit(UNLOADING, &fcport->vha->dpc_flags))
fcport           2567 drivers/scsi/qla2xxx/qla_attr.c 	if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags))
fcport           2570 drivers/scsi/qla2xxx/qla_attr.c 	if (unlikely(pci_channel_offline(fcport->vha->hw->pdev))) {
fcport           2571 drivers/scsi/qla2xxx/qla_attr.c 		qla2x00_abort_all_cmds(fcport->vha, DID_NO_CONNECT << 16);
fcport           2578 drivers/scsi/qla2xxx/qla_attr.c 	if (fcport->loop_id != FC_NO_LOOP_ID) {
fcport           2579 drivers/scsi/qla2xxx/qla_attr.c 		if (IS_FWI2_CAPABLE(fcport->vha->hw))
fcport           2580 drivers/scsi/qla2xxx/qla_attr.c 			fcport->vha->hw->isp_ops->fabric_logout(fcport->vha,
fcport           2581 drivers/scsi/qla2xxx/qla_attr.c 			    fcport->loop_id, fcport->d_id.b.domain,
fcport           2582 drivers/scsi/qla2xxx/qla_attr.c 			    fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           2584 drivers/scsi/qla2xxx/qla_attr.c 			qla2x00_port_logout(fcport->vha, fcport);
fcport             57 drivers/scsi/qla2xxx/qla_bsg.c 		kfree(sp->fcport);
fcport            249 drivers/scsi/qla2xxx/qla_bsg.c 	fc_port_t *fcport = NULL;
fcport            261 drivers/scsi/qla2xxx/qla_bsg.c 		fcport = *(fc_port_t **) rport->dd_data;
fcport            304 drivers/scsi/qla2xxx/qla_bsg.c 		if (qla2x00_fabric_login(vha, fcport, &nextlid)) {
fcport            307 drivers/scsi/qla2xxx/qla_bsg.c 			    fcport->d_id.b24);
fcport            317 drivers/scsi/qla2xxx/qla_bsg.c 		fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
fcport            318 drivers/scsi/qla2xxx/qla_bsg.c 		if (!fcport) {
fcport            324 drivers/scsi/qla2xxx/qla_bsg.c 		fcport->vha = vha;
fcport            325 drivers/scsi/qla2xxx/qla_bsg.c 		fcport->d_id.b.al_pa =
fcport            327 drivers/scsi/qla2xxx/qla_bsg.c 		fcport->d_id.b.area =
fcport            329 drivers/scsi/qla2xxx/qla_bsg.c 		fcport->d_id.b.domain =
fcport            331 drivers/scsi/qla2xxx/qla_bsg.c 		fcport->loop_id =
fcport            332 drivers/scsi/qla2xxx/qla_bsg.c 			(fcport->d_id.b.al_pa == 0xFD) ?
fcport            367 drivers/scsi/qla2xxx/qla_bsg.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport            386 drivers/scsi/qla2xxx/qla_bsg.c 	    bsg_request->rqst_data.h_els.command_code, fcport->loop_id,
fcport            387 drivers/scsi/qla2xxx/qla_bsg.c 	    fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport            408 drivers/scsi/qla2xxx/qla_bsg.c 		kfree(fcport);
fcport            438 drivers/scsi/qla2xxx/qla_bsg.c 	struct fc_port *fcport;
fcport            499 drivers/scsi/qla2xxx/qla_bsg.c 	fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
fcport            500 drivers/scsi/qla2xxx/qla_bsg.c 	if (!fcport) {
fcport            508 drivers/scsi/qla2xxx/qla_bsg.c 	fcport->vha = vha;
fcport            509 drivers/scsi/qla2xxx/qla_bsg.c 	fcport->d_id.b.al_pa = bsg_request->rqst_data.h_ct.port_id[0];
fcport            510 drivers/scsi/qla2xxx/qla_bsg.c 	fcport->d_id.b.area = bsg_request->rqst_data.h_ct.port_id[1];
fcport            511 drivers/scsi/qla2xxx/qla_bsg.c 	fcport->d_id.b.domain = bsg_request->rqst_data.h_ct.port_id[2];
fcport            512 drivers/scsi/qla2xxx/qla_bsg.c 	fcport->loop_id = loop_id;
fcport            515 drivers/scsi/qla2xxx/qla_bsg.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport            534 drivers/scsi/qla2xxx/qla_bsg.c 	    fcport->loop_id, fcport->d_id.b.domain, fcport->d_id.b.area,
fcport            535 drivers/scsi/qla2xxx/qla_bsg.c 	    fcport->d_id.b.al_pa);
fcport            548 drivers/scsi/qla2xxx/qla_bsg.c 	kfree(fcport);
fcport           1298 drivers/scsi/qla2xxx/qla_bsg.c 	fc_port_t *fcport = NULL;
fcport           1315 drivers/scsi/qla2xxx/qla_bsg.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           1316 drivers/scsi/qla2xxx/qla_bsg.c 		if (fcport->port_type != FCT_TARGET)
fcport           1320 drivers/scsi/qla2xxx/qla_bsg.c 			fcport->port_name, sizeof(fcport->port_name)))
fcport           1333 drivers/scsi/qla2xxx/qla_bsg.c 	if (atomic_read(&fcport->state) != FCS_ONLINE) {
fcport           1339 drivers/scsi/qla2xxx/qla_bsg.c 	if (fcport->flags & FCF_LOGIN_NEEDED) {
fcport           1341 drivers/scsi/qla2xxx/qla_bsg.c 		    "Remote port not logged in flags = 0x%x.\n", fcport->flags);
fcport           1346 drivers/scsi/qla2xxx/qla_bsg.c 		rval = qla2x00_set_idma_speed(vha, fcport->loop_id,
fcport           1349 drivers/scsi/qla2xxx/qla_bsg.c 		rval = qla2x00_get_idma_speed(vha, fcport->loop_id,
fcport           1355 drivers/scsi/qla2xxx/qla_bsg.c 		    "%04x %x %04x %04x.\n", fcport->port_name,
fcport           1356 drivers/scsi/qla2xxx/qla_bsg.c 		    rval, fcport->fp_speed, mb[0], mb[1]);
fcport           1957 drivers/scsi/qla2xxx/qla_bsg.c 	struct fc_port *fcport;
fcport           2009 drivers/scsi/qla2xxx/qla_bsg.c 	fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
fcport           2010 drivers/scsi/qla2xxx/qla_bsg.c 	if (!fcport) {
fcport           2018 drivers/scsi/qla2xxx/qla_bsg.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport           2027 drivers/scsi/qla2xxx/qla_bsg.c 	fcport->vha = vha;
fcport           2028 drivers/scsi/qla2xxx/qla_bsg.c 	fcport->loop_id = piocb_rqst->dataword;
fcport           2039 drivers/scsi/qla2xxx/qla_bsg.c 	    type, piocb_rqst->func_type, fcport->loop_id);
fcport           2052 drivers/scsi/qla2xxx/qla_bsg.c 	kfree(fcport);
fcport            597 drivers/scsi/qla2xxx/qla_def.h 	struct fc_port *fcport;
fcport           2338 drivers/scsi/qla2xxx/qla_def.h 	void		*fcport;
fcport           2490 drivers/scsi/qla2xxx/qla_def.h 	fc_port_t		*fcport;
fcport           3305 drivers/scsi/qla2xxx/qla_def.h 			struct fc_port *fcport;
fcport           3332 drivers/scsi/qla2xxx/qla_def.h 			fc_port_t *fcport;
fcport           3334 drivers/scsi/qla2xxx/qla_def.h 		} fcport;
fcport           3336 drivers/scsi/qla2xxx/qla_def.h 			fc_port_t *fcport;
fcport             41 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2x00_clear_loop_id(fc_port_t *fcport);
fcport             84 drivers/scsi/qla2xxx/qla_gbl.h extern void qla2x00_set_fcport_state(fc_port_t *fcport, int state);
fcport            127 drivers/scsi/qla2xxx/qla_gbl.h int qla_post_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport);
fcport            128 drivers/scsi/qla2xxx/qla_gbl.h void qla_do_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport);
fcport            130 drivers/scsi/qla2xxx/qla_gbl.h void qla_rscn_replay(fc_port_t *fcport);
fcport            676 drivers/scsi/qla2xxx/qla_gbl.h int qla24xx_async_gffid(scsi_qla_host_t *vha, fc_port_t *fcport);
fcport            919 drivers/scsi/qla2xxx/qla_gbl.h void qla_nvme_unregister_remote_port(struct fc_port *fcport);
fcport            199 drivers/scsi/qla2xxx/qla_gs.c qla2x00_ga_nxt(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport            210 drivers/scsi/qla2xxx/qla_gs.c 		return qla2x00_sns_ga_nxt(vha, fcport);
fcport            229 drivers/scsi/qla2xxx/qla_gs.c 	ct_req->req.port_id.port_id = port_id_to_be_id(fcport->d_id);
fcport            243 drivers/scsi/qla2xxx/qla_gs.c 		fcport->d_id = be_to_port_id(ct_rsp->rsp.ga_nxt.port_id);
fcport            245 drivers/scsi/qla2xxx/qla_gs.c 		memcpy(fcport->node_name, ct_rsp->rsp.ga_nxt.node_name,
fcport            247 drivers/scsi/qla2xxx/qla_gs.c 		memcpy(fcport->port_name, ct_rsp->rsp.ga_nxt.port_name,
fcport            250 drivers/scsi/qla2xxx/qla_gs.c 		fcport->fc4_type = (ct_rsp->rsp.ga_nxt.fc4_types[2] & BIT_0) ?
fcport            255 drivers/scsi/qla2xxx/qla_gs.c 			fcport->d_id.b.domain = 0xf0;
fcport            260 drivers/scsi/qla2xxx/qla_gs.c 		    fcport->node_name, fcport->port_name,
fcport            261 drivers/scsi/qla2xxx/qla_gs.c 		    fcport->d_id.b.domain, fcport->d_id.b.area,
fcport            262 drivers/scsi/qla2xxx/qla_gs.c 		    fcport->d_id.b.al_pa);
fcport           1003 drivers/scsi/qla2xxx/qla_gs.c qla2x00_sns_ga_nxt(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           1015 drivers/scsi/qla2xxx/qla_gs.c 	sns_cmd->p.cmd.param[0] = fcport->d_id.b.al_pa;
fcport           1016 drivers/scsi/qla2xxx/qla_gs.c 	sns_cmd->p.cmd.param[1] = fcport->d_id.b.area;
fcport           1017 drivers/scsi/qla2xxx/qla_gs.c 	sns_cmd->p.cmd.param[2] = fcport->d_id.b.domain;
fcport           1035 drivers/scsi/qla2xxx/qla_gs.c 		fcport->d_id.b.domain = sns_cmd->p.gan_data[17];
fcport           1036 drivers/scsi/qla2xxx/qla_gs.c 		fcport->d_id.b.area = sns_cmd->p.gan_data[18];
fcport           1037 drivers/scsi/qla2xxx/qla_gs.c 		fcport->d_id.b.al_pa = sns_cmd->p.gan_data[19];
fcport           1039 drivers/scsi/qla2xxx/qla_gs.c 		memcpy(fcport->node_name, &sns_cmd->p.gan_data[284], WWN_SIZE);
fcport           1040 drivers/scsi/qla2xxx/qla_gs.c 		memcpy(fcport->port_name, &sns_cmd->p.gan_data[20], WWN_SIZE);
fcport           1044 drivers/scsi/qla2xxx/qla_gs.c 			fcport->d_id.b.domain = 0xf0;
fcport           1049 drivers/scsi/qla2xxx/qla_gs.c 		    fcport->node_name, fcport->port_name,
fcport           1050 drivers/scsi/qla2xxx/qla_gs.c 		    fcport->d_id.b.domain, fcport->d_id.b.area,
fcport           1051 drivers/scsi/qla2xxx/qla_gs.c 		    fcport->d_id.b.al_pa);
fcport           2952 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_post_gpsc_work(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           2960 drivers/scsi/qla2xxx/qla_gs.c 	e->u.fcport.fcport = fcport;
fcport           2961 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags |= FCF_ASYNC_ACTIVE;
fcport           2967 drivers/scsi/qla2xxx/qla_gs.c 	struct fc_port *fcport = ea->fcport;
fcport           2971 drivers/scsi/qla2xxx/qla_gs.c 	    __func__, fcport->port_name, fcport->disc_state,
fcport           2972 drivers/scsi/qla2xxx/qla_gs.c 	    fcport->fw_login_state, ea->rc, ea->sp->gen2, fcport->login_gen,
fcport           2973 drivers/scsi/qla2xxx/qla_gs.c 	    ea->sp->gen2, fcport->rscn_gen|ea->sp->gen1, fcport->loop_id);
fcport           2975 drivers/scsi/qla2xxx/qla_gs.c 	if (fcport->disc_state == DSC_DELETE_PEND)
fcport           2978 drivers/scsi/qla2xxx/qla_gs.c 	if (ea->sp->gen2 != fcport->login_gen) {
fcport           2982 drivers/scsi/qla2xxx/qla_gs.c 		    __func__, fcport->port_name);
fcport           2984 drivers/scsi/qla2xxx/qla_gs.c 	} else if (ea->sp->gen1 != fcport->rscn_gen) {
fcport           2988 drivers/scsi/qla2xxx/qla_gs.c 	qla_post_iidma_work(vha, fcport);
fcport           2995 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport = sp->fcport;
fcport           2999 drivers/scsi/qla2xxx/qla_gs.c 	ct_rsp = &fcport->ct_desc.ct_sns->p.rsp;
fcport           3003 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, fcport->port_name);
fcport           3005 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
fcport           3024 drivers/scsi/qla2xxx/qla_gs.c 		fcport->fp_speed = qla2x00_port_speed_capability(
fcport           3029 drivers/scsi/qla2xxx/qla_gs.c 		    sp->name, fcport->fabric_port_name,
fcport           3035 drivers/scsi/qla2xxx/qla_gs.c 	ea.fcport = fcport;
fcport           3043 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gpsc(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           3049 drivers/scsi/qla2xxx/qla_gs.c 	if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT))
fcport           3052 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport           3058 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = fcport->rscn_gen;
fcport           3059 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen2 = fcport->login_gen;
fcport           3064 drivers/scsi/qla2xxx/qla_gs.c 	ct_req = qla24xx_prep_ct_fm_req(fcport->ct_desc.ct_sns, GPSC_CMD,
fcport           3068 drivers/scsi/qla2xxx/qla_gs.c 	memcpy(ct_req->req.gpsc.port_name, fcport->fabric_port_name,
fcport           3071 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = fcport->ct_desc.ct_sns;
fcport           3072 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_dma = fcport->ct_desc.ct_sns_dma;
fcport           3073 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = fcport->ct_desc.ct_sns;
fcport           3074 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_dma = fcport->ct_desc.ct_sns_dma;
fcport           3084 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, fcport->port_name, sp->handle,
fcport           3085 drivers/scsi/qla2xxx/qla_gs.c 	    fcport->loop_id, fcport->d_id.b.domain,
fcport           3086 drivers/scsi/qla2xxx/qla_gs.c 	    fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           3095 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           3097 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags &= ~FCF_ASYNC_ACTIVE;
fcport           3150 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport, *conflict, *t;
fcport           3159 drivers/scsi/qla2xxx/qla_gs.c 		list_for_each_entry_safe(fcport, t, &vha->vp_fcports, list) {
fcport           3160 drivers/scsi/qla2xxx/qla_gs.c 			if (fcport->d_id.b24 == ea->id.b24)
fcport           3161 drivers/scsi/qla2xxx/qla_gs.c 				fcport->scan_state = QLA_FCPORT_SCAN;
fcport           3163 drivers/scsi/qla2xxx/qla_gs.c 			qlt_schedule_sess_for_deletion(fcport);
fcport           3167 drivers/scsi/qla2xxx/qla_gs.c 		fcport = qla2x00_find_fcport_by_wwpn(vha, ea->port_name, 1);
fcport           3168 drivers/scsi/qla2xxx/qla_gs.c 		if (fcport) {
fcport           3172 drivers/scsi/qla2xxx/qla_gs.c 				    (fcport != conflict))
fcport           3184 drivers/scsi/qla2xxx/qla_gs.c 			fcport->scan_needed = 0;
fcport           3185 drivers/scsi/qla2xxx/qla_gs.c 			fcport->rscn_gen++;
fcport           3186 drivers/scsi/qla2xxx/qla_gs.c 			fcport->scan_state = QLA_FCPORT_FOUND;
fcport           3187 drivers/scsi/qla2xxx/qla_gs.c 			fcport->flags |= FCF_FABRIC_DEVICE;
fcport           3188 drivers/scsi/qla2xxx/qla_gs.c 			if (fcport->login_retry == 0) {
fcport           3189 drivers/scsi/qla2xxx/qla_gs.c 				fcport->login_retry =
fcport           3193 drivers/scsi/qla2xxx/qla_gs.c 				    fcport->port_name, fcport->loop_id,
fcport           3194 drivers/scsi/qla2xxx/qla_gs.c 				    fcport->login_retry);
fcport           3196 drivers/scsi/qla2xxx/qla_gs.c 			switch (fcport->disc_state) {
fcport           3201 drivers/scsi/qla2xxx/qla_gs.c 				    __func__, __LINE__, fcport->port_name);
fcport           3203 drivers/scsi/qla2xxx/qla_gs.c 				qla2x00_post_async_adisc_work(vha, fcport,
fcport           3209 drivers/scsi/qla2xxx/qla_gs.c 				    fcport->port_name);
fcport           3210 drivers/scsi/qla2xxx/qla_gs.c 				fcport->d_id = ea->id;
fcport           3211 drivers/scsi/qla2xxx/qla_gs.c 				qla24xx_fcport_handle_login(vha, fcport);
fcport           3214 drivers/scsi/qla2xxx/qla_gs.c 				fcport->d_id = ea->id;
fcport           3217 drivers/scsi/qla2xxx/qla_gs.c 				fcport->d_id = ea->id;
fcport           3427 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport = ea->fcport;
fcport           3429 drivers/scsi/qla2xxx/qla_gs.c 	qla24xx_post_gnl_work(vha, fcport);
fcport           3435 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport = sp->fcport;
fcport           3441 drivers/scsi/qla2xxx/qla_gs.c 	       sp->name, res, fcport->d_id.b24, fcport->port_name);
fcport           3443 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           3444 drivers/scsi/qla2xxx/qla_gs.c 	ct_rsp = &fcport->ct_desc.ct_sns->p.rsp;
fcport           3453 drivers/scsi/qla2xxx/qla_gs.c 			fcport->fc4_type =
fcport           3455 drivers/scsi/qla2xxx/qla_gs.c 			fcport->fc4_type &= 0xf;
fcport           3460 drivers/scsi/qla2xxx/qla_gs.c 			fcport->fc4f_nvme =
fcport           3462 drivers/scsi/qla2xxx/qla_gs.c 			fcport->fc4f_nvme &= 0xf;
fcport           3468 drivers/scsi/qla2xxx/qla_gs.c 	ea.fcport = sp->fcport;
fcport           3476 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gffid(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           3482 drivers/scsi/qla2xxx/qla_gs.c 	if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT))
fcport           3485 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport           3489 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags |= FCF_ASYNC_SENT;
fcport           3492 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = fcport->rscn_gen;
fcport           3493 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen2 = fcport->login_gen;
fcport           3499 drivers/scsi/qla2xxx/qla_gs.c 	ct_req = qla2x00_prep_ct_req(fcport->ct_desc.ct_sns, GFF_ID_CMD,
fcport           3502 drivers/scsi/qla2xxx/qla_gs.c 	ct_req->req.gff_id.port_id[0] = fcport->d_id.b.domain;
fcport           3503 drivers/scsi/qla2xxx/qla_gs.c 	ct_req->req.gff_id.port_id[1] = fcport->d_id.b.area;
fcport           3504 drivers/scsi/qla2xxx/qla_gs.c 	ct_req->req.gff_id.port_id[2] = fcport->d_id.b.al_pa;
fcport           3506 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = fcport->ct_desc.ct_sns;
fcport           3507 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_dma = fcport->ct_desc.ct_sns_dma;
fcport           3508 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = fcport->ct_desc.ct_sns;
fcport           3509 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_dma = fcport->ct_desc.ct_sns_dma;
fcport           3518 drivers/scsi/qla2xxx/qla_gs.c 	    sp->handle, fcport->port_name);
fcport           3527 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           3558 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport;
fcport           3590 drivers/scsi/qla2xxx/qla_gs.c 	list_for_each_entry(fcport, &vha->vp_fcports, list)
fcport           3591 drivers/scsi/qla2xxx/qla_gs.c 		fcport->scan_state = QLA_FCPORT_SCAN;
fcport           3629 drivers/scsi/qla2xxx/qla_gs.c 		list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           3630 drivers/scsi/qla2xxx/qla_gs.c 			if (memcmp(rp->port_name, fcport->port_name, WWN_SIZE))
fcport           3632 drivers/scsi/qla2xxx/qla_gs.c 			fcport->scan_state = QLA_FCPORT_FOUND;
fcport           3637 drivers/scsi/qla2xxx/qla_gs.c 			if ((fcport->flags & FCF_FABRIC_DEVICE) == 0) {
fcport           3638 drivers/scsi/qla2xxx/qla_gs.c 				qla2x00_clear_loop_id(fcport);
fcport           3639 drivers/scsi/qla2xxx/qla_gs.c 				fcport->flags |= FCF_FABRIC_DEVICE;
fcport           3640 drivers/scsi/qla2xxx/qla_gs.c 			} else if (fcport->d_id.b24 != rp->id.b24 ||
fcport           3641 drivers/scsi/qla2xxx/qla_gs.c 				fcport->scan_needed) {
fcport           3642 drivers/scsi/qla2xxx/qla_gs.c 				qlt_schedule_sess_for_deletion(fcport);
fcport           3644 drivers/scsi/qla2xxx/qla_gs.c 			fcport->d_id.b24 = rp->id.b24;
fcport           3645 drivers/scsi/qla2xxx/qla_gs.c 			fcport->scan_needed = 0;
fcport           3667 drivers/scsi/qla2xxx/qla_gs.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           3668 drivers/scsi/qla2xxx/qla_gs.c 		if ((fcport->flags & FCF_FABRIC_DEVICE) == 0) {
fcport           3669 drivers/scsi/qla2xxx/qla_gs.c 			fcport->scan_needed = 0;
fcport           3673 drivers/scsi/qla2xxx/qla_gs.c 		if (fcport->scan_state != QLA_FCPORT_FOUND) {
fcport           3674 drivers/scsi/qla2xxx/qla_gs.c 			fcport->scan_needed = 0;
fcport           3677 drivers/scsi/qla2xxx/qla_gs.c 			    atomic_read(&fcport->state) == FCS_ONLINE) {
fcport           3678 drivers/scsi/qla2xxx/qla_gs.c 				if (fcport->loop_id != FC_NO_LOOP_ID) {
fcport           3679 drivers/scsi/qla2xxx/qla_gs.c 					if (fcport->flags & FCF_FCP2_DEVICE)
fcport           3680 drivers/scsi/qla2xxx/qla_gs.c 						fcport->logout_on_delete = 0;
fcport           3685 drivers/scsi/qla2xxx/qla_gs.c 					    fcport->port_name);
fcport           3687 drivers/scsi/qla2xxx/qla_gs.c 					qlt_schedule_sess_for_deletion(fcport);
fcport           3692 drivers/scsi/qla2xxx/qla_gs.c 			if (fcport->scan_needed ||
fcport           3693 drivers/scsi/qla2xxx/qla_gs.c 			    fcport->disc_state != DSC_LOGIN_COMPLETE) {
fcport           3694 drivers/scsi/qla2xxx/qla_gs.c 				if (fcport->login_retry == 0) {
fcport           3695 drivers/scsi/qla2xxx/qla_gs.c 					fcport->login_retry =
fcport           3699 drivers/scsi/qla2xxx/qla_gs.c 					    fcport->port_name, fcport->loop_id,
fcport           3700 drivers/scsi/qla2xxx/qla_gs.c 					    fcport->login_retry);
fcport           3702 drivers/scsi/qla2xxx/qla_gs.c 				fcport->scan_needed = 0;
fcport           3703 drivers/scsi/qla2xxx/qla_gs.c 				qla24xx_fcport_handle_login(vha, fcport);
fcport           3716 drivers/scsi/qla2xxx/qla_gs.c 		list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           3717 drivers/scsi/qla2xxx/qla_gs.c 			if (fcport->scan_needed) {
fcport           4232 drivers/scsi/qla2xxx/qla_gs.c 	qla24xx_post_gnl_work(vha, ea->fcport);
fcport           4238 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport = sp->fcport;
fcport           4239 drivers/scsi/qla2xxx/qla_gs.c 	u8 *node_name = fcport->ct_desc.ct_sns->p.rsp.rsp.gnn_id.node_name;
fcport           4243 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           4246 drivers/scsi/qla2xxx/qla_gs.c 		memcpy(fcport->node_name, node_name, WWN_SIZE);
fcport           4249 drivers/scsi/qla2xxx/qla_gs.c 	ea.fcport = fcport;
fcport           4255 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, fcport->port_name, fcport->node_name);
fcport           4262 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gnnid(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           4268 drivers/scsi/qla2xxx/qla_gs.c 	if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT))
fcport           4271 drivers/scsi/qla2xxx/qla_gs.c 	fcport->disc_state = DSC_GNN_ID;
fcport           4272 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
fcport           4276 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags |= FCF_ASYNC_SENT;
fcport           4279 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = fcport->rscn_gen;
fcport           4280 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen2 = fcport->login_gen;
fcport           4286 drivers/scsi/qla2xxx/qla_gs.c 	ct_req = qla2x00_prep_ct_req(fcport->ct_desc.ct_sns, GNN_ID_CMD,
fcport           4290 drivers/scsi/qla2xxx/qla_gs.c 	ct_req->req.port_id.port_id = port_id_to_be_id(fcport->d_id);
fcport           4294 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = fcport->ct_desc.ct_sns;
fcport           4295 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_dma = fcport->ct_desc.ct_sns_dma;
fcport           4296 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = fcport->ct_desc.ct_sns;
fcport           4297 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_dma = fcport->ct_desc.ct_sns_dma;
fcport           4306 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, fcport->port_name,
fcport           4307 drivers/scsi/qla2xxx/qla_gs.c 	    sp->handle, fcport->loop_id, fcport->d_id.b24);
fcport           4316 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           4321 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_post_gnnid_work(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           4335 drivers/scsi/qla2xxx/qla_gs.c 	e->u.fcport.fcport = fcport;
fcport           4342 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport = ea->fcport;
fcport           4346 drivers/scsi/qla2xxx/qla_gs.c 	    __func__, fcport->port_name, fcport->disc_state,
fcport           4347 drivers/scsi/qla2xxx/qla_gs.c 	    fcport->fw_login_state, ea->rc, fcport->login_gen, ea->sp->gen2,
fcport           4348 drivers/scsi/qla2xxx/qla_gs.c 	    fcport->rscn_gen, ea->sp->gen1, vha->fcport_count);
fcport           4350 drivers/scsi/qla2xxx/qla_gs.c 	if (fcport->disc_state == DSC_DELETE_PEND)
fcport           4353 drivers/scsi/qla2xxx/qla_gs.c 	if (ea->sp->gen2 != fcport->login_gen) {
fcport           4357 drivers/scsi/qla2xxx/qla_gs.c 		    __func__, fcport->port_name);
fcport           4359 drivers/scsi/qla2xxx/qla_gs.c 	} else if (ea->sp->gen1 != fcport->rscn_gen) {
fcport           4363 drivers/scsi/qla2xxx/qla_gs.c 	qla24xx_post_gpsc_work(vha, fcport);
fcport           4369 drivers/scsi/qla2xxx/qla_gs.c 	fc_port_t *fcport = sp->fcport;
fcport           4370 drivers/scsi/qla2xxx/qla_gs.c 	u8 *fpn = fcport->ct_desc.ct_sns->p.rsp.rsp.gfpn_id.port_name;
fcport           4376 drivers/scsi/qla2xxx/qla_gs.c 		memcpy(fcport->fabric_port_name, fpn, WWN_SIZE);
fcport           4379 drivers/scsi/qla2xxx/qla_gs.c 	ea.fcport = fcport;
fcport           4385 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, res, fcport->port_name, fcport->fabric_port_name);
fcport           4392 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_async_gfpnid(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           4398 drivers/scsi/qla2xxx/qla_gs.c 	if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT))
fcport           4401 drivers/scsi/qla2xxx/qla_gs.c 	sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
fcport           4407 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen1 = fcport->rscn_gen;
fcport           4408 drivers/scsi/qla2xxx/qla_gs.c 	sp->gen2 = fcport->login_gen;
fcport           4414 drivers/scsi/qla2xxx/qla_gs.c 	ct_req = qla2x00_prep_ct_req(fcport->ct_desc.ct_sns, GFPN_ID_CMD,
fcport           4418 drivers/scsi/qla2xxx/qla_gs.c 	ct_req->req.port_id.port_id = port_id_to_be_id(fcport->d_id);
fcport           4422 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req = fcport->ct_desc.ct_sns;
fcport           4423 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.req_dma = fcport->ct_desc.ct_sns_dma;
fcport           4424 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp = fcport->ct_desc.ct_sns;
fcport           4425 drivers/scsi/qla2xxx/qla_gs.c 	sp->u.iocb_cmd.u.ctarg.rsp_dma = fcport->ct_desc.ct_sns_dma;
fcport           4434 drivers/scsi/qla2xxx/qla_gs.c 	    sp->name, fcport->port_name,
fcport           4435 drivers/scsi/qla2xxx/qla_gs.c 	    sp->handle, fcport->loop_id, fcport->d_id.b24);
fcport           4445 drivers/scsi/qla2xxx/qla_gs.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           4450 drivers/scsi/qla2xxx/qla_gs.c int qla24xx_post_gfpnid_work(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           4464 drivers/scsi/qla2xxx/qla_gs.c 	e->u.fcport.fcport = fcport;
fcport            153 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2xxx_get_qpair_sp(cmd_sp->vha, cmd_sp->qpair, cmd_sp->fcport,
fcport            200 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport = sp->fcport;
fcport            205 drivers/scsi/qla2xxx/qla_init.c 	if (fcport) {
fcport            206 drivers/scsi/qla2xxx/qla_init.c 		ql_dbg(ql_dbg_disc, fcport->vha, 0x2071,
fcport            208 drivers/scsi/qla2xxx/qla_init.c 		    sp->name, sp->handle, fcport->d_id.b24, fcport->port_name);
fcport            210 drivers/scsi/qla2xxx/qla_init.c 		fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
fcport            276 drivers/scsi/qla2xxx/qla_init.c 	    "%s %8phC res %d \n", __func__, sp->fcport->port_name, res);
fcport            278 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
fcport            282 drivers/scsi/qla2xxx/qla_init.c 		ea.fcport = sp->fcport;
fcport            295 drivers/scsi/qla2xxx/qla_init.c fcport_is_smaller(fc_port_t *fcport)
fcport            297 drivers/scsi/qla2xxx/qla_init.c 	if (wwn_to_u64(fcport->port_name) <
fcport            298 drivers/scsi/qla2xxx/qla_init.c 	    wwn_to_u64(fcport->vha->port_name))
fcport            305 drivers/scsi/qla2xxx/qla_init.c fcport_is_bigger(fc_port_t *fcport)
fcport            307 drivers/scsi/qla2xxx/qla_init.c 	return !fcport_is_smaller(fcport);
fcport            311 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_login(struct scsi_qla_host *vha, fc_port_t *fcport,
fcport            318 drivers/scsi/qla2xxx/qla_init.c 	if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT) ||
fcport            319 drivers/scsi/qla2xxx/qla_init.c 	    fcport->loop_id == FC_NO_LOOP_ID) {
fcport            322 drivers/scsi/qla2xxx/qla_init.c 		    __func__, fcport->port_name);
fcport            326 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport            330 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags |= FCF_ASYNC_SENT;
fcport            331 drivers/scsi/qla2xxx/qla_init.c 	fcport->logout_completed = 0;
fcport            333 drivers/scsi/qla2xxx/qla_init.c 	fcport->disc_state = DSC_LOGIN_PEND;
fcport            336 drivers/scsi/qla2xxx/qla_init.c 	sp->gen1 = fcport->rscn_gen;
fcport            337 drivers/scsi/qla2xxx/qla_init.c 	sp->gen2 = fcport->login_gen;
fcport            344 drivers/scsi/qla2xxx/qla_init.c 	if (N2N_TOPO(fcport->vha->hw) && fcport_is_bigger(fcport))
fcport            349 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->fc4f_nvme)
fcport            354 drivers/scsi/qla2xxx/qla_init.c 		"retries=%d.\n", fcport->port_name, sp->handle, fcport->loop_id,
fcport            355 drivers/scsi/qla2xxx/qla_init.c 	    fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa,
fcport            356 drivers/scsi/qla2xxx/qla_init.c 	    fcport->login_retry);
fcport            360 drivers/scsi/qla2xxx/qla_init.c 		fcport->flags |= FCF_LOGIN_NEEDED;
fcport            369 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport            371 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~FCF_ASYNC_ACTIVE;
fcport            377 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
fcport            378 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->login_gen++;
fcport            379 drivers/scsi/qla2xxx/qla_init.c 	qlt_logo_completion_handler(sp->fcport, res);
fcport            384 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_logout(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport            390 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags |= FCF_ASYNC_SENT;
fcport            391 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport            406 drivers/scsi/qla2xxx/qla_init.c 	    sp->handle, fcport->loop_id, fcport->d_id.b.domain,
fcport            407 drivers/scsi/qla2xxx/qla_init.c 		fcport->d_id.b.area, fcport->d_id.b.al_pa,
fcport            408 drivers/scsi/qla2xxx/qla_init.c 		fcport->port_name);
fcport            418 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
fcport            423 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_prlo_done(struct scsi_qla_host *vha, fc_port_t *fcport,
fcport            426 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~FCF_ASYNC_ACTIVE;
fcport            428 drivers/scsi/qla2xxx/qla_init.c 	if (!fcport->tgt_session)
fcport            429 drivers/scsi/qla2xxx/qla_init.c 		qla2x00_mark_device_lost(vha, fcport, 1, 0);
fcport            430 drivers/scsi/qla2xxx/qla_init.c 	qlt_logo_completion_handler(fcport, data[0]);
fcport            438 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~FCF_ASYNC_ACTIVE;
fcport            440 drivers/scsi/qla2xxx/qla_init.c 		qla2x00_post_async_prlo_done_work(sp->fcport->vha, sp->fcport,
fcport            446 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_prlo(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport            453 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport            468 drivers/scsi/qla2xxx/qla_init.c 	    sp->handle, fcport->loop_id, fcport->d_id.b.domain,
fcport            469 drivers/scsi/qla2xxx/qla_init.c 	    fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport            480 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~FCF_ASYNC_ACTIVE;
fcport            487 drivers/scsi/qla2xxx/qla_init.c 	struct fc_port *fcport = ea->fcport;
fcport            491 drivers/scsi/qla2xxx/qla_init.c 	    __func__, fcport->port_name, fcport->disc_state,
fcport            492 drivers/scsi/qla2xxx/qla_init.c 	    fcport->fw_login_state, ea->rc, fcport->login_gen, ea->sp->gen2,
fcport            493 drivers/scsi/qla2xxx/qla_init.c 	    fcport->rscn_gen, ea->sp->gen1, fcport->loop_id);
fcport            501 drivers/scsi/qla2xxx/qla_init.c 		    __func__, ea->fcport->port_name);
fcport            503 drivers/scsi/qla2xxx/qla_init.c 		fcport->deleted = 0;
fcport            504 drivers/scsi/qla2xxx/qla_init.c 		fcport->logout_on_delete = 1;
fcport            505 drivers/scsi/qla2xxx/qla_init.c 		qlt_schedule_sess_for_deletion(ea->fcport);
fcport            509 drivers/scsi/qla2xxx/qla_init.c 	if (ea->fcport->disc_state == DSC_DELETE_PEND)
fcport            512 drivers/scsi/qla2xxx/qla_init.c 	if (ea->sp->gen2 != ea->fcport->login_gen) {
fcport            516 drivers/scsi/qla2xxx/qla_init.c 		    __func__, ea->fcport->port_name);
fcport            518 drivers/scsi/qla2xxx/qla_init.c 	} else if (ea->sp->gen1 != ea->fcport->rscn_gen) {
fcport            519 drivers/scsi/qla2xxx/qla_init.c 		qla_rscn_replay(fcport);
fcport            520 drivers/scsi/qla2xxx/qla_init.c 		qlt_schedule_sess_for_deletion(fcport);
fcport            527 drivers/scsi/qla2xxx/qla_init.c static int qla_post_els_plogi_work(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport            535 drivers/scsi/qla2xxx/qla_init.c 	e->u.fcport.fcport = fcport;
fcport            536 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags |= FCF_ASYNC_ACTIVE;
fcport            537 drivers/scsi/qla2xxx/qla_init.c 	fcport->disc_state = DSC_LOGIN_PEND;
fcport            549 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, res, sp->fcport->port_name);
fcport            551 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
fcport            559 drivers/scsi/qla2xxx/qla_init.c 	ea.fcport = sp->fcport;
fcport            568 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_adisc(struct scsi_qla_host *vha, fc_port_t *fcport,
fcport            575 drivers/scsi/qla2xxx/qla_init.c 	if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT))
fcport            578 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags |= FCF_ASYNC_SENT;
fcport            579 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport            588 drivers/scsi/qla2xxx/qla_init.c 	sp->gen1 = fcport->rscn_gen;
fcport            589 drivers/scsi/qla2xxx/qla_init.c 	sp->gen2 = fcport->login_gen;
fcport            598 drivers/scsi/qla2xxx/qla_init.c 	    sp->handle, fcport->loop_id, fcport->d_id.b24, fcport->port_name);
fcport            609 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
fcport            610 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_post_async_adisc_work(vha, fcport, data);
fcport            668 drivers/scsi/qla2xxx/qla_init.c void qla2x00_clear_loop_id(fc_port_t *fcport)
fcport            670 drivers/scsi/qla2xxx/qla_init.c 	struct qla_hw_data *ha = fcport->vha->hw;
fcport            672 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->loop_id == FC_NO_LOOP_ID ||
fcport            673 drivers/scsi/qla2xxx/qla_init.c 	    qla2x00_is_reserved_id(fcport->vha, fcport->loop_id))
fcport            676 drivers/scsi/qla2xxx/qla_init.c 	clear_bit(fcport->loop_id, ha->loop_id_map);
fcport            677 drivers/scsi/qla2xxx/qla_init.c 	fcport->loop_id = FC_NO_LOOP_ID;
fcport            683 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport, *conflict_fcport;
fcport            691 drivers/scsi/qla2xxx/qla_init.c 	fcport = ea->fcport;
fcport            694 drivers/scsi/qla2xxx/qla_init.c 	    __func__, fcport->port_name, fcport->disc_state,
fcport            695 drivers/scsi/qla2xxx/qla_init.c 	    fcport->fw_login_state, ea->rc,
fcport            696 drivers/scsi/qla2xxx/qla_init.c 	    fcport->login_gen, fcport->last_login_gen,
fcport            697 drivers/scsi/qla2xxx/qla_init.c 	    fcport->rscn_gen, fcport->last_rscn_gen, vha->loop_id);
fcport            699 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->disc_state == DSC_DELETE_PEND)
fcport            703 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->login_retry == 0) {
fcport            706 drivers/scsi/qla2xxx/qla_init.c 			    fcport->port_name, fcport->login_retry);
fcport            711 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->last_rscn_gen != fcport->rscn_gen) {
fcport            712 drivers/scsi/qla2xxx/qla_init.c 		qla_rscn_replay(fcport);
fcport            713 drivers/scsi/qla2xxx/qla_init.c 		qlt_schedule_sess_for_deletion(fcport);
fcport            715 drivers/scsi/qla2xxx/qla_init.c 	} else if (fcport->last_login_gen != fcport->login_gen) {
fcport            718 drivers/scsi/qla2xxx/qla_init.c 		    __func__, fcport->port_name);
fcport            726 drivers/scsi/qla2xxx/qla_init.c 	    __func__, __LINE__, fcport->port_name, n,
fcport            727 drivers/scsi/qla2xxx/qla_init.c 	    fcport->d_id.b.domain, fcport->d_id.b.area,
fcport            728 drivers/scsi/qla2xxx/qla_init.c 	    fcport->d_id.b.al_pa, fcport->loop_id);
fcport            738 drivers/scsi/qla2xxx/qla_init.c 		if (memcmp((u8 *)&wwn, fcport->port_name, WWN_SIZE))
fcport            753 drivers/scsi/qla2xxx/qla_init.c 			fcport->fc4_type &= ~FS_FC4TYPE_FCP;
fcport            754 drivers/scsi/qla2xxx/qla_init.c 			fcport->fc4_type |= FS_FC4TYPE_NVME;
fcport            756 drivers/scsi/qla2xxx/qla_init.c 			fcport->fc4_type |= FS_FC4TYPE_FCP;
fcport            757 drivers/scsi/qla2xxx/qla_init.c 			fcport->fc4_type &= ~FS_FC4TYPE_NVME;
fcport            763 drivers/scsi/qla2xxx/qla_init.c 		    __func__, fcport->port_name,
fcport            764 drivers/scsi/qla2xxx/qla_init.c 		    e->current_login_state, fcport->fw_login_state,
fcport            765 drivers/scsi/qla2xxx/qla_init.c 		    fcport->fc4f_nvme, id.b.domain, id.b.area, id.b.al_pa,
fcport            766 drivers/scsi/qla2xxx/qla_init.c 		    fcport->d_id.b.domain, fcport->d_id.b.area,
fcport            767 drivers/scsi/qla2xxx/qla_init.c 		    fcport->d_id.b.al_pa, loop_id, fcport->loop_id);
fcport            769 drivers/scsi/qla2xxx/qla_init.c 		switch (fcport->disc_state) {
fcport            774 drivers/scsi/qla2xxx/qla_init.c 			if ((id.b24 != fcport->d_id.b24 &&
fcport            775 drivers/scsi/qla2xxx/qla_init.c 			    fcport->d_id.b24 &&
fcport            776 drivers/scsi/qla2xxx/qla_init.c 			    fcport->loop_id != FC_NO_LOOP_ID) ||
fcport            777 drivers/scsi/qla2xxx/qla_init.c 			    (fcport->loop_id != FC_NO_LOOP_ID &&
fcport            778 drivers/scsi/qla2xxx/qla_init.c 				fcport->loop_id != loop_id)) {
fcport            781 drivers/scsi/qla2xxx/qla_init.c 				    __func__, __LINE__, fcport->port_name);
fcport            782 drivers/scsi/qla2xxx/qla_init.c 				if (fcport->n2n_flag)
fcport            783 drivers/scsi/qla2xxx/qla_init.c 					fcport->d_id.b24 = 0;
fcport            784 drivers/scsi/qla2xxx/qla_init.c 				qlt_schedule_sess_for_deletion(fcport);
fcport            790 drivers/scsi/qla2xxx/qla_init.c 		fcport->loop_id = loop_id;
fcport            791 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->n2n_flag)
fcport            792 drivers/scsi/qla2xxx/qla_init.c 			fcport->d_id.b24 = id.b24;
fcport            794 drivers/scsi/qla2xxx/qla_init.c 		wwn = wwn_to_u64(fcport->port_name);
fcport            804 drivers/scsi/qla2xxx/qla_init.c 			conflict_fcport->conflict = fcport;
fcport            805 drivers/scsi/qla2xxx/qla_init.c 			fcport->login_pause = 1;
fcport            814 drivers/scsi/qla2xxx/qla_init.c 				    __func__, __LINE__, fcport->port_name);
fcport            817 drivers/scsi/qla2xxx/qla_init.c 					fcport->port_type = FCT_INITIATOR;
fcport            819 drivers/scsi/qla2xxx/qla_init.c 					fcport->port_type = FCT_TARGET;
fcport            821 drivers/scsi/qla2xxx/qla_init.c 				qla2x00_post_async_adisc_work(vha, fcport,
fcport            826 drivers/scsi/qla2xxx/qla_init.c 				if (fcport->loop_id == FC_NO_LOOP_ID) {
fcport            827 drivers/scsi/qla2xxx/qla_init.c 					qla2x00_find_new_loop_id(vha, fcport);
fcport            828 drivers/scsi/qla2xxx/qla_init.c 					fcport->fw_login_state =
fcport            833 drivers/scsi/qla2xxx/qla_init.c 				    fcport->port_name);
fcport            834 drivers/scsi/qla2xxx/qla_init.c 				qla24xx_fcport_handle_login(vha, fcport);
fcport            839 drivers/scsi/qla2xxx/qla_init.c 			fcport->fw_login_state = current_login_state;
fcport            840 drivers/scsi/qla2xxx/qla_init.c 			fcport->d_id = id;
fcport            849 drivers/scsi/qla2xxx/qla_init.c 				fcport->disc_state = DSC_DELETED;
fcport            853 drivers/scsi/qla2xxx/qla_init.c 					fcport->port_type = FCT_INITIATOR;
fcport            855 drivers/scsi/qla2xxx/qla_init.c 					fcport->port_type = FCT_TARGET;
fcport            858 drivers/scsi/qla2xxx/qla_init.c 				qla2x00_post_async_adisc_work(vha, fcport,
fcport            862 drivers/scsi/qla2xxx/qla_init.c 				if (fcport_is_bigger(fcport)) {
fcport            864 drivers/scsi/qla2xxx/qla_init.c 					if (fcport->loop_id != FC_NO_LOOP_ID)
fcport            865 drivers/scsi/qla2xxx/qla_init.c 						qla2x00_clear_loop_id(fcport);
fcport            867 drivers/scsi/qla2xxx/qla_init.c 					fcport->loop_id = loop_id;
fcport            869 drivers/scsi/qla2xxx/qla_init.c 					    fcport);
fcport            874 drivers/scsi/qla2xxx/qla_init.c 				if (fcport_is_smaller(fcport)) {
fcport            876 drivers/scsi/qla2xxx/qla_init.c 					if (fcport->loop_id != FC_NO_LOOP_ID)
fcport            877 drivers/scsi/qla2xxx/qla_init.c 						qla2x00_clear_loop_id(fcport);
fcport            879 drivers/scsi/qla2xxx/qla_init.c 					fcport->loop_id = loop_id;
fcport            881 drivers/scsi/qla2xxx/qla_init.c 					    fcport);
fcport            901 drivers/scsi/qla2xxx/qla_init.c 				if (fcport->d_id.b24 == id.b24) {
fcport            919 drivers/scsi/qla2xxx/qla_init.c 				if (fcport->loop_id == loop_id)
fcport            920 drivers/scsi/qla2xxx/qla_init.c 					fcport->loop_id = FC_NO_LOOP_ID;
fcport            922 drivers/scsi/qla2xxx/qla_init.c 			qla24xx_fcport_handle_login(vha, fcport);
fcport            925 drivers/scsi/qla2xxx/qla_init.c 			fcport->disc_state = DSC_DELETED;
fcport            926 drivers/scsi/qla2xxx/qla_init.c 			if (time_after_eq(jiffies, fcport->dm_login_expire)) {
fcport            927 drivers/scsi/qla2xxx/qla_init.c 				if (fcport->n2n_link_reset_cnt < 2) {
fcport            928 drivers/scsi/qla2xxx/qla_init.c 					fcport->n2n_link_reset_cnt++;
fcport            937 drivers/scsi/qla2xxx/qla_init.c 					if (fcport->n2n_chip_reset < 1) {
fcport            942 drivers/scsi/qla2xxx/qla_init.c 						fcport->n2n_chip_reset++;
fcport            946 drivers/scsi/qla2xxx/qla_init.c 						    fcport->port_name);
fcport            947 drivers/scsi/qla2xxx/qla_init.c 						fcport->scan_state = 0;
fcport            969 drivers/scsi/qla2xxx/qla_init.c 	struct fc_port *fcport = NULL, *tf;
fcport            985 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~(FCF_ASYNC_SENT|FCF_ASYNC_ACTIVE);
fcport           1015 drivers/scsi/qla2xxx/qla_init.c 	fcport = tf = NULL;
fcport           1020 drivers/scsi/qla2xxx/qla_init.c 	list_for_each_entry_safe(fcport, tf, &h, gnl_entry) {
fcport           1021 drivers/scsi/qla2xxx/qla_init.c 		list_del_init(&fcport->gnl_entry);
fcport           1023 drivers/scsi/qla2xxx/qla_init.c 		fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
fcport           1025 drivers/scsi/qla2xxx/qla_init.c 		ea.fcport = fcport;
fcport           1039 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry_safe(fcport, tf, &vha->vp_fcports, list) {
fcport           1040 drivers/scsi/qla2xxx/qla_init.c 			if (!memcmp((u8 *)&wwn, fcport->port_name,
fcport           1069 drivers/scsi/qla2xxx/qla_init.c int qla24xx_async_gnl(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           1077 drivers/scsi/qla2xxx/qla_init.c 	if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT))
fcport           1081 drivers/scsi/qla2xxx/qla_init.c 	    "Async-gnlist WWPN %8phC \n", fcport->port_name);
fcport           1084 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags |= FCF_ASYNC_SENT;
fcport           1085 drivers/scsi/qla2xxx/qla_init.c 	fcport->disc_state = DSC_GNL;
fcport           1086 drivers/scsi/qla2xxx/qla_init.c 	fcport->last_rscn_gen = fcport->rscn_gen;
fcport           1087 drivers/scsi/qla2xxx/qla_init.c 	fcport->last_login_gen = fcport->login_gen;
fcport           1089 drivers/scsi/qla2xxx/qla_init.c 	list_add_tail(&fcport->gnl_entry, &vha->gnl.fcports);
fcport           1097 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport           1103 drivers/scsi/qla2xxx/qla_init.c 	sp->gen1 = fcport->rscn_gen;
fcport           1104 drivers/scsi/qla2xxx/qla_init.c 	sp->gen2 = fcport->login_gen;
fcport           1124 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, fcport->port_name, sp->handle);
fcport           1134 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           1139 drivers/scsi/qla2xxx/qla_init.c int qla24xx_post_gnl_work(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           1147 drivers/scsi/qla2xxx/qla_init.c 	e->u.fcport.fcport = fcport;
fcport           1148 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags |= FCF_ASYNC_ACTIVE;
fcport           1156 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport = sp->fcport;
fcport           1162 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, res, fcport->port_name, mb[1], mb[2]);
fcport           1164 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE);
fcport           1170 drivers/scsi/qla2xxx/qla_init.c 	ea.fcport = fcport;
fcport           1182 drivers/scsi/qla2xxx/qla_init.c static int qla24xx_post_prli_work(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           1190 drivers/scsi/qla2xxx/qla_init.c 	e->u.fcport.fcport = fcport;
fcport           1203 drivers/scsi/qla2xxx/qla_init.c 	    sp->fcport->port_name, res);
fcport           1205 drivers/scsi/qla2xxx/qla_init.c 	sp->fcport->flags &= ~FCF_ASYNC_SENT;
fcport           1209 drivers/scsi/qla2xxx/qla_init.c 		ea.fcport = sp->fcport;
fcport           1223 drivers/scsi/qla2xxx/qla_init.c qla24xx_async_prli(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           1231 drivers/scsi/qla2xxx/qla_init.c 		    __func__, __LINE__, fcport->port_name);
fcport           1235 drivers/scsi/qla2xxx/qla_init.c 	if ((fcport->fw_login_state == DSC_LS_PLOGI_PEND ||
fcport           1236 drivers/scsi/qla2xxx/qla_init.c 	    fcport->fw_login_state == DSC_LS_PRLI_PEND) &&
fcport           1239 drivers/scsi/qla2xxx/qla_init.c 		    __func__, __LINE__, fcport->port_name);
fcport           1243 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport           1247 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags |= FCF_ASYNC_SENT;
fcport           1248 drivers/scsi/qla2xxx/qla_init.c 	fcport->logout_completed = 0;
fcport           1260 drivers/scsi/qla2xxx/qla_init.c 	if  (fcport->fc4f_nvme)
fcport           1265 drivers/scsi/qla2xxx/qla_init.c 	    fcport->port_name, sp->handle, fcport->loop_id, fcport->d_id.b24,
fcport           1266 drivers/scsi/qla2xxx/qla_init.c 	    fcport->login_retry, fcport->fc4f_nvme ? "nvme" : "fc");
fcport           1270 drivers/scsi/qla2xxx/qla_init.c 		fcport->flags |= FCF_LOGIN_NEEDED;
fcport           1279 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           1283 drivers/scsi/qla2xxx/qla_init.c int qla24xx_post_gpdb_work(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt)
fcport           1291 drivers/scsi/qla2xxx/qla_init.c 	e->u.fcport.fcport = fcport;
fcport           1292 drivers/scsi/qla2xxx/qla_init.c 	e->u.fcport.opt = opt;
fcport           1293 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags |= FCF_ASYNC_ACTIVE;
fcport           1297 drivers/scsi/qla2xxx/qla_init.c int qla24xx_async_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt)
fcport           1307 drivers/scsi/qla2xxx/qla_init.c 	if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT) ||
fcport           1308 drivers/scsi/qla2xxx/qla_init.c 	    fcport->loop_id == FC_NO_LOOP_ID) {
fcport           1311 drivers/scsi/qla2xxx/qla_init.c 		    __func__, fcport->port_name);
fcport           1315 drivers/scsi/qla2xxx/qla_init.c 	fcport->disc_state = DSC_GPDB;
fcport           1317 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport           1321 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags |= FCF_ASYNC_SENT;
fcport           1324 drivers/scsi/qla2xxx/qla_init.c 	sp->gen1 = fcport->rscn_gen;
fcport           1325 drivers/scsi/qla2xxx/qla_init.c 	sp->gen2 = fcport->login_gen;
fcport           1340 drivers/scsi/qla2xxx/qla_init.c 	mb[1] = fcport->loop_id;
fcport           1355 drivers/scsi/qla2xxx/qla_init.c 	    sp->name, fcport->port_name, sp->handle, opt);
fcport           1367 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           1369 drivers/scsi/qla2xxx/qla_init.c 	qla24xx_post_gpdb_work(vha, fcport, opt);
fcport           1379 drivers/scsi/qla2xxx/qla_init.c 	ea->fcport->login_gen++;
fcport           1380 drivers/scsi/qla2xxx/qla_init.c 	ea->fcport->deleted = 0;
fcport           1381 drivers/scsi/qla2xxx/qla_init.c 	ea->fcport->logout_on_delete = 1;
fcport           1383 drivers/scsi/qla2xxx/qla_init.c 	if (!ea->fcport->login_succ && !IS_SW_RESV_ADDR(ea->fcport->d_id)) {
fcport           1385 drivers/scsi/qla2xxx/qla_init.c 		ea->fcport->login_succ = 1;
fcport           1388 drivers/scsi/qla2xxx/qla_init.c 		qla24xx_sched_upd_fcport(ea->fcport);
fcport           1390 drivers/scsi/qla2xxx/qla_init.c 	} else if (ea->fcport->login_succ) {
fcport           1398 drivers/scsi/qla2xxx/qla_init.c 		    __func__, __LINE__, ea->fcport->port_name);
fcport           1399 drivers/scsi/qla2xxx/qla_init.c 		ea->fcport->disc_state = DSC_LOGIN_COMPLETE;
fcport           1407 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport = ea->fcport;
fcport           1414 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           1417 drivers/scsi/qla2xxx/qla_init.c 	    "%s %8phC DS %d LS %d nvme %x rc %d\n", __func__, fcport->port_name,
fcport           1418 drivers/scsi/qla2xxx/qla_init.c 	    fcport->disc_state, pd->current_login_state, fcport->fc4f_nvme,
fcport           1421 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->disc_state == DSC_DELETE_PEND)
fcport           1424 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->fc4f_nvme)
fcport           1429 drivers/scsi/qla2xxx/qla_init.c 	if (ea->sp->gen2 != fcport->login_gen) {
fcport           1434 drivers/scsi/qla2xxx/qla_init.c 		    __func__, fcport->port_name);
fcport           1436 drivers/scsi/qla2xxx/qla_init.c 	} else if (ea->sp->gen1 != fcport->rscn_gen) {
fcport           1437 drivers/scsi/qla2xxx/qla_init.c 		qla_rscn_replay(fcport);
fcport           1438 drivers/scsi/qla2xxx/qla_init.c 		qlt_schedule_sess_for_deletion(fcport);
fcport           1444 drivers/scsi/qla2xxx/qla_init.c 		__qla24xx_parse_gpdb(vha, fcport, pd);
fcport           1453 drivers/scsi/qla2xxx/qla_init.c 			fcport->disc_state = DSC_GNL;
fcport           1461 drivers/scsi/qla2xxx/qla_init.c 		    __func__, __LINE__, fcport->port_name);
fcport           1462 drivers/scsi/qla2xxx/qla_init.c 		qlt_schedule_sess_for_deletion(fcport);
fcport           1468 drivers/scsi/qla2xxx/qla_init.c static void qla_chk_n2n_b4_login(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           1481 drivers/scsi/qla2xxx/qla_init.c 			wwn = wwn_to_u64(fcport->port_name);
fcport           1484 drivers/scsi/qla2xxx/qla_init.c 			else if ((fcport->fw_login_state == DSC_LS_PLOGI_COMP)
fcport           1486 drivers/scsi/qla2xxx/qla_init.c 				    fcport->plogi_nack_done_deadline))
fcport           1496 drivers/scsi/qla2xxx/qla_init.c 	if (login && fcport->login_retry) {
fcport           1497 drivers/scsi/qla2xxx/qla_init.c 		fcport->login_retry--;
fcport           1498 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->loop_id == FC_NO_LOOP_ID) {
fcport           1499 drivers/scsi/qla2xxx/qla_init.c 			fcport->fw_login_state = DSC_LS_PORT_UNAVAIL;
fcport           1500 drivers/scsi/qla2xxx/qla_init.c 			rc = qla2x00_find_new_loop_id(vha, fcport);
fcport           1504 drivers/scsi/qla2xxx/qla_init.c 				    __func__, __LINE__, fcport->port_name);
fcport           1505 drivers/scsi/qla2xxx/qla_init.c 				fcport->scan_state = 0;
fcport           1506 drivers/scsi/qla2xxx/qla_init.c 				qlt_schedule_sess_for_deletion(fcport);
fcport           1512 drivers/scsi/qla2xxx/qla_init.c 		    __func__, __LINE__, fcport->port_name);
fcport           1513 drivers/scsi/qla2xxx/qla_init.c 		qla2x00_post_async_login_work(vha, fcport, NULL);
fcport           1517 drivers/scsi/qla2xxx/qla_init.c int qla24xx_fcport_handle_login(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           1525 drivers/scsi/qla2xxx/qla_init.c 	    __func__, fcport->port_name, fcport->disc_state,
fcport           1526 drivers/scsi/qla2xxx/qla_init.c 	    fcport->fw_login_state, fcport->login_pause, fcport->flags,
fcport           1527 drivers/scsi/qla2xxx/qla_init.c 	    fcport->conflict, fcport->last_rscn_gen, fcport->rscn_gen,
fcport           1528 drivers/scsi/qla2xxx/qla_init.c 	    fcport->login_gen, fcport->loop_id, fcport->scan_state);
fcport           1530 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->scan_state != QLA_FCPORT_FOUND)
fcport           1533 drivers/scsi/qla2xxx/qla_init.c 	if ((fcport->loop_id != FC_NO_LOOP_ID) &&
fcport           1535 drivers/scsi/qla2xxx/qla_init.c 	    ((fcport->fw_login_state == DSC_LS_PLOGI_PEND) ||
fcport           1536 drivers/scsi/qla2xxx/qla_init.c 	     (fcport->fw_login_state == DSC_LS_PRLI_PEND)))
fcport           1539 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->fw_login_state == DSC_LS_PLOGI_COMP &&
fcport           1541 drivers/scsi/qla2xxx/qla_init.c 		if (time_before_eq(jiffies, fcport->plogi_nack_done_deadline)) {
fcport           1551 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->flags & FCF_ASYNC_SENT) {
fcport           1556 drivers/scsi/qla2xxx/qla_init.c 	switch (fcport->disc_state) {
fcport           1558 drivers/scsi/qla2xxx/qla_init.c 		wwn = wwn_to_u64(fcport->node_name);
fcport           1561 drivers/scsi/qla2xxx/qla_init.c 			if (fcport_is_smaller(fcport)) {
fcport           1563 drivers/scsi/qla2xxx/qla_init.c 				if (fcport->login_retry) {
fcport           1564 drivers/scsi/qla2xxx/qla_init.c 					if (fcport->loop_id == FC_NO_LOOP_ID) {
fcport           1566 drivers/scsi/qla2xxx/qla_init.c 						    fcport);
fcport           1567 drivers/scsi/qla2xxx/qla_init.c 						fcport->fw_login_state =
fcport           1570 drivers/scsi/qla2xxx/qla_init.c 					fcport->login_retry--;
fcport           1571 drivers/scsi/qla2xxx/qla_init.c 					qla_post_els_plogi_work(vha, fcport);
fcport           1575 drivers/scsi/qla2xxx/qla_init.c 					    fcport->port_name);
fcport           1578 drivers/scsi/qla2xxx/qla_init.c 				qla24xx_post_gnl_work(vha, fcport);
fcport           1585 drivers/scsi/qla2xxx/qla_init.c 				    __func__, __LINE__, fcport->port_name);
fcport           1586 drivers/scsi/qla2xxx/qla_init.c 				qla24xx_post_gnnid_work(vha, fcport);
fcport           1587 drivers/scsi/qla2xxx/qla_init.c 			} else if (fcport->loop_id == FC_NO_LOOP_ID) {
fcport           1590 drivers/scsi/qla2xxx/qla_init.c 				    __func__, __LINE__, fcport->port_name);
fcport           1591 drivers/scsi/qla2xxx/qla_init.c 				qla24xx_post_gnl_work(vha, fcport);
fcport           1593 drivers/scsi/qla2xxx/qla_init.c 				qla_chk_n2n_b4_login(vha, fcport);
fcport           1602 drivers/scsi/qla2xxx/qla_init.c 			if ((fcport->current_login_state & 0xf) == 0x6) {
fcport           1605 drivers/scsi/qla2xxx/qla_init.c 				    __func__, __LINE__, fcport->port_name);
fcport           1606 drivers/scsi/qla2xxx/qla_init.c 				fcport->chip_reset =
fcport           1608 drivers/scsi/qla2xxx/qla_init.c 				qla24xx_post_gpdb_work(vha, fcport, 0);
fcport           1612 drivers/scsi/qla2xxx/qla_init.c 				    __func__, __LINE__, fcport->port_name,
fcport           1613 drivers/scsi/qla2xxx/qla_init.c 				    fcport->fc4f_nvme ? "NVME" : "FC");
fcport           1614 drivers/scsi/qla2xxx/qla_init.c 				qla24xx_post_prli_work(vha, fcport);
fcport           1618 drivers/scsi/qla2xxx/qla_init.c 			if (fcport->login_pause) {
fcport           1622 drivers/scsi/qla2xxx/qla_init.c 				    fcport->port_name);
fcport           1623 drivers/scsi/qla2xxx/qla_init.c 				fcport->last_rscn_gen = fcport->rscn_gen;
fcport           1624 drivers/scsi/qla2xxx/qla_init.c 				fcport->last_login_gen = fcport->login_gen;
fcport           1628 drivers/scsi/qla2xxx/qla_init.c 			qla_chk_n2n_b4_login(vha, fcport);
fcport           1635 drivers/scsi/qla2xxx/qla_init.c 			qla_chk_n2n_b4_login(vha, fcport);
fcport           1637 drivers/scsi/qla2xxx/qla_init.c 			qlt_schedule_sess_for_deletion(fcport);
fcport           1643 drivers/scsi/qla2xxx/qla_init.c 		qla2x00_post_async_adisc_work(vha, fcport, data);
fcport           1647 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->fw_login_state == DSC_LS_PLOGI_COMP)
fcport           1648 drivers/scsi/qla2xxx/qla_init.c 			qla24xx_post_prli_work(vha, fcport);
fcport           1653 drivers/scsi/qla2xxx/qla_init.c 		    fcport->jiffies_at_registration)/1000;
fcport           1654 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->sec_since_registration < sec && sec &&
fcport           1656 drivers/scsi/qla2xxx/qla_init.c 			fcport->sec_since_registration = sec;
fcport           1657 drivers/scsi/qla2xxx/qla_init.c 			ql_dbg(ql_dbg_disc, fcport->vha, 0xffff,
fcport           1659 drivers/scsi/qla2xxx/qla_init.c 			    __func__, fcport->port_name, sec);
fcport           1662 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->next_disc_state != DSC_DELETE_PEND)
fcport           1663 drivers/scsi/qla2xxx/qla_init.c 			fcport->next_disc_state = DSC_ADISC;
fcport           1695 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport;
fcport           1698 drivers/scsi/qla2xxx/qla_init.c 	fcport = qla2x00_find_fcport_by_nportid(vha, &ea->id, 1);
fcport           1699 drivers/scsi/qla2xxx/qla_init.c 	if (fcport) {
fcport           1700 drivers/scsi/qla2xxx/qla_init.c 		fcport->scan_needed = 1;
fcport           1701 drivers/scsi/qla2xxx/qla_init.c 		fcport->rscn_gen++;
fcport           1716 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport = ea->fcport;
fcport           1723 drivers/scsi/qla2xxx/qla_init.c 	    __func__, fcport->port_name, fcport->disc_state,
fcport           1724 drivers/scsi/qla2xxx/qla_init.c 	    fcport->fw_login_state, fcport->login_pause,
fcport           1725 drivers/scsi/qla2xxx/qla_init.c 	    fcport->deleted, fcport->conflict,
fcport           1726 drivers/scsi/qla2xxx/qla_init.c 	    fcport->last_rscn_gen, fcport->rscn_gen,
fcport           1727 drivers/scsi/qla2xxx/qla_init.c 	    fcport->last_login_gen, fcport->login_gen,
fcport           1728 drivers/scsi/qla2xxx/qla_init.c 	    fcport->flags);
fcport           1730 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->last_rscn_gen != fcport->rscn_gen) {
fcport           1732 drivers/scsi/qla2xxx/qla_init.c 		    __func__, __LINE__, fcport->port_name);
fcport           1733 drivers/scsi/qla2xxx/qla_init.c 		qla24xx_post_gnl_work(vha, fcport);
fcport           1737 drivers/scsi/qla2xxx/qla_init.c 	qla24xx_fcport_handle_login(vha, fcport);
fcport           1744 drivers/scsi/qla2xxx/qla_init.c void qla_rscn_replay(fc_port_t *fcport)
fcport           1748 drivers/scsi/qla2xxx/qla_init.c 	switch (fcport->disc_state) {
fcport           1755 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->scan_needed) {
fcport           1757 drivers/scsi/qla2xxx/qla_init.c 		ea.id = fcport->d_id;
fcport           1759 drivers/scsi/qla2xxx/qla_init.c 		qla2x00_handle_rscn(fcport->vha, &ea);
fcport           1781 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_tm_cmd(fc_port_t *fcport, uint32_t flags, uint32_t lun,
fcport           1784 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vha = fcport->vha;
fcport           1789 drivers/scsi/qla2xxx/qla_init.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport           1808 drivers/scsi/qla2xxx/qla_init.c 	    sp->handle, fcport->loop_id, fcport->d_id.b.domain,
fcport           1809 drivers/scsi/qla2xxx/qla_init.c 	    fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           1829 drivers/scsi/qla2xxx/qla_init.c 		    fcport->loop_id, lun,
fcport           1835 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport           1846 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t	*fcport = sp->fcport;
fcport           1848 drivers/scsi/qla2xxx/qla_init.c 	struct scsi_qla_host *vha = fcport->vha;
fcport           1863 drivers/scsi/qla2xxx/qla_init.c 		return qlafx00_fx_disc(vha, &vha->hw->mr.fcport,
fcport           1879 drivers/scsi/qla2xxx/qla_init.c 		    __func__, __LINE__, ea->fcport->port_name);
fcport           1881 drivers/scsi/qla2xxx/qla_init.c 		ea->fcport->chip_reset = vha->hw->base_qpair->chip_reset;
fcport           1882 drivers/scsi/qla2xxx/qla_init.c 		ea->fcport->logout_on_delete = 1;
fcport           1883 drivers/scsi/qla2xxx/qla_init.c 		ea->fcport->nvme_prli_service_param = ea->iop[0];
fcport           1885 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->nvme_first_burst_size =
fcport           1888 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->nvme_first_burst_size = 0;
fcport           1889 drivers/scsi/qla2xxx/qla_init.c 		qla24xx_post_gpdb_work(vha, ea->fcport, 0);
fcport           1895 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->fw_login_state = DSC_LS_PLOGI_COMP;
fcport           1899 drivers/scsi/qla2xxx/qla_init.c 		if (ea->fcport->fc4f_nvme) {
fcport           1902 drivers/scsi/qla2xxx/qla_init.c 				__func__, __LINE__, ea->fcport->port_name);
fcport           1903 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->fc4f_nvme = 0;
fcport           1904 drivers/scsi/qla2xxx/qla_init.c 			qla24xx_post_prli_work(vha, ea->fcport);
fcport           1910 drivers/scsi/qla2xxx/qla_init.c 			if (ea->fcport->n2n_link_reset_cnt < 3) {
fcport           1911 drivers/scsi/qla2xxx/qla_init.c 				ea->fcport->n2n_link_reset_cnt++;
fcport           1920 drivers/scsi/qla2xxx/qla_init.c 				    __func__, __LINE__, ea->fcport->port_name);
fcport           1927 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->flags &= ~FCF_ASYNC_SENT;
fcport           1928 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->keep_nport_handle = 0;
fcport           1929 drivers/scsi/qla2xxx/qla_init.c 			qlt_schedule_sess_for_deletion(ea->fcport);
fcport           1942 drivers/scsi/qla2xxx/qla_init.c 	struct fc_port *fcport = ea->fcport;
fcport           1946 drivers/scsi/qla2xxx/qla_init.c 	    __func__, fcport->port_name, fcport->disc_state,
fcport           1947 drivers/scsi/qla2xxx/qla_init.c 	    fcport->fw_login_state, ea->rc, ea->sp->gen2, fcport->login_gen,
fcport           1948 drivers/scsi/qla2xxx/qla_init.c 	    ea->sp->gen1, fcport->rscn_gen,
fcport           1951 drivers/scsi/qla2xxx/qla_init.c 	if ((fcport->fw_login_state == DSC_LS_PLOGI_PEND) ||
fcport           1952 drivers/scsi/qla2xxx/qla_init.c 	    (fcport->fw_login_state == DSC_LS_PRLI_PEND)) {
fcport           1955 drivers/scsi/qla2xxx/qla_init.c 		    __func__, __LINE__, fcport->port_name);
fcport           1959 drivers/scsi/qla2xxx/qla_init.c 	if ((fcport->disc_state == DSC_DELETE_PEND) ||
fcport           1960 drivers/scsi/qla2xxx/qla_init.c 	    (fcport->disc_state == DSC_DELETED)) {
fcport           1965 drivers/scsi/qla2xxx/qla_init.c 	if (ea->sp->gen2 != fcport->login_gen) {
fcport           1969 drivers/scsi/qla2xxx/qla_init.c 		    __func__, fcport->port_name);
fcport           1972 drivers/scsi/qla2xxx/qla_init.c 	} else if (ea->sp->gen1 != fcport->rscn_gen) {
fcport           1975 drivers/scsi/qla2xxx/qla_init.c 		    __func__, fcport->port_name);
fcport           1976 drivers/scsi/qla2xxx/qla_init.c 		qla_rscn_replay(fcport);
fcport           1977 drivers/scsi/qla2xxx/qla_init.c 		qlt_schedule_sess_for_deletion(fcport);
fcport           1991 drivers/scsi/qla2xxx/qla_init.c 		if (ea->fcport->fc4f_nvme) {
fcport           1994 drivers/scsi/qla2xxx/qla_init.c 				__func__, __LINE__, ea->fcport->port_name);
fcport           1995 drivers/scsi/qla2xxx/qla_init.c 			qla24xx_post_prli_work(vha, ea->fcport);
fcport           1999 drivers/scsi/qla2xxx/qla_init.c 			    __func__, __LINE__, ea->fcport->port_name,
fcport           2000 drivers/scsi/qla2xxx/qla_init.c 			    ea->fcport->loop_id, ea->fcport->d_id.b24);
fcport           2002 drivers/scsi/qla2xxx/qla_init.c 			set_bit(ea->fcport->loop_id, vha->hw->loop_id_map);
fcport           2004 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->chip_reset = vha->hw->base_qpair->chip_reset;
fcport           2005 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->logout_on_delete = 1;
fcport           2006 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->send_els_logo = 0;
fcport           2007 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->fw_login_state = DSC_LS_PRLI_COMP;
fcport           2010 drivers/scsi/qla2xxx/qla_init.c 			qla24xx_post_gpdb_work(vha, ea->fcport, 0);
fcport           2015 drivers/scsi/qla2xxx/qla_init.c 		    __func__, __LINE__, ea->fcport->port_name, ea->data[1]);
fcport           2017 drivers/scsi/qla2xxx/qla_init.c 		ea->fcport->flags &= ~FCF_ASYNC_SENT;
fcport           2018 drivers/scsi/qla2xxx/qla_init.c 		ea->fcport->disc_state = DSC_LOGIN_FAILED;
fcport           2022 drivers/scsi/qla2xxx/qla_init.c 			qla2x00_mark_device_lost(vha, ea->fcport, 1, 0);
fcport           2033 drivers/scsi/qla2xxx/qla_init.c 		    __func__, __LINE__, ea->fcport->port_name,
fcport           2034 drivers/scsi/qla2xxx/qla_init.c 		    ea->fcport->loop_id, cid.b24);
fcport           2036 drivers/scsi/qla2xxx/qla_init.c 		set_bit(ea->fcport->loop_id, vha->hw->loop_id_map);
fcport           2037 drivers/scsi/qla2xxx/qla_init.c 		ea->fcport->loop_id = FC_NO_LOOP_ID;
fcport           2038 drivers/scsi/qla2xxx/qla_init.c 		qla24xx_post_gnl_work(vha, ea->fcport);
fcport           2043 drivers/scsi/qla2xxx/qla_init.c 		    wwn_to_u64(ea->fcport->port_name),
fcport           2044 drivers/scsi/qla2xxx/qla_init.c 		    ea->fcport->d_id, lid, &conflict_fcport);
fcport           2052 drivers/scsi/qla2xxx/qla_init.c 			conflict_fcport->conflict = ea->fcport;
fcport           2053 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->login_pause = 1;
fcport           2057 drivers/scsi/qla2xxx/qla_init.c 			    __func__, __LINE__, ea->fcport->port_name,
fcport           2058 drivers/scsi/qla2xxx/qla_init.c 			    ea->fcport->d_id.b24, lid);
fcport           2062 drivers/scsi/qla2xxx/qla_init.c 			    __func__, __LINE__, ea->fcport->port_name,
fcport           2063 drivers/scsi/qla2xxx/qla_init.c 			    ea->fcport->d_id.b24, lid);
fcport           2065 drivers/scsi/qla2xxx/qla_init.c 			qla2x00_clear_loop_id(ea->fcport);
fcport           2067 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->loop_id = lid;
fcport           2068 drivers/scsi/qla2xxx/qla_init.c 			ea->fcport->keep_nport_handle = 0;
fcport           2069 drivers/scsi/qla2xxx/qla_init.c 			qlt_schedule_sess_for_deletion(ea->fcport);
fcport           2077 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_logout_done(struct scsi_qla_host *vha, fc_port_t *fcport,
fcport           2080 drivers/scsi/qla2xxx/qla_init.c 	qlt_logo_completion_handler(fcport, data[0]);
fcport           2081 drivers/scsi/qla2xxx/qla_init.c 	fcport->login_gen++;
fcport           2082 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~FCF_ASYNC_ACTIVE;
fcport           4785 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport = data;
fcport           4789 drivers/scsi/qla2xxx/qla_init.c 	spin_lock_irqsave(fcport->vha->host->host_lock, flags);
fcport           4790 drivers/scsi/qla2xxx/qla_init.c 	rport = fcport->drport ? fcport->drport : fcport->rport;
fcport           4791 drivers/scsi/qla2xxx/qla_init.c 	fcport->drport = NULL;
fcport           4792 drivers/scsi/qla2xxx/qla_init.c 	spin_unlock_irqrestore(fcport->vha->host->host_lock, flags);
fcport           4794 drivers/scsi/qla2xxx/qla_init.c 		ql_dbg(ql_dbg_disc, fcport->vha, 0x210b,
fcport           4796 drivers/scsi/qla2xxx/qla_init.c 		    __func__, fcport->port_name, rport,
fcport           4803 drivers/scsi/qla2xxx/qla_init.c void qla2x00_set_fcport_state(fc_port_t *fcport, int state)
fcport           4807 drivers/scsi/qla2xxx/qla_init.c 	old_state = atomic_read(&fcport->state);
fcport           4808 drivers/scsi/qla2xxx/qla_init.c 	atomic_set(&fcport->state, state);
fcport           4812 drivers/scsi/qla2xxx/qla_init.c 		ql_dbg(ql_dbg_disc, fcport->vha, 0x207d,
fcport           4814 drivers/scsi/qla2xxx/qla_init.c 		       fcport->port_name, port_state_str[old_state],
fcport           4815 drivers/scsi/qla2xxx/qla_init.c 		       port_state_str[state], fcport->d_id.b.domain,
fcport           4816 drivers/scsi/qla2xxx/qla_init.c 		       fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           4830 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport;
fcport           4832 drivers/scsi/qla2xxx/qla_init.c 	fcport = kzalloc(sizeof(fc_port_t), flags);
fcport           4833 drivers/scsi/qla2xxx/qla_init.c 	if (!fcport)
fcport           4836 drivers/scsi/qla2xxx/qla_init.c 	fcport->ct_desc.ct_sns = dma_alloc_coherent(&vha->hw->pdev->dev,
fcport           4837 drivers/scsi/qla2xxx/qla_init.c 		sizeof(struct ct_sns_pkt), &fcport->ct_desc.ct_sns_dma,
fcport           4839 drivers/scsi/qla2xxx/qla_init.c 	if (!fcport->ct_desc.ct_sns) {
fcport           4842 drivers/scsi/qla2xxx/qla_init.c 		kfree(fcport);
fcport           4847 drivers/scsi/qla2xxx/qla_init.c 	fcport->vha = vha;
fcport           4848 drivers/scsi/qla2xxx/qla_init.c 	fcport->port_type = FCT_UNKNOWN;
fcport           4849 drivers/scsi/qla2xxx/qla_init.c 	fcport->loop_id = FC_NO_LOOP_ID;
fcport           4850 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_set_fcport_state(fcport, FCS_UNCONFIGURED);
fcport           4851 drivers/scsi/qla2xxx/qla_init.c 	fcport->supported_classes = FC_COS_UNSPECIFIED;
fcport           4852 drivers/scsi/qla2xxx/qla_init.c 	fcport->fp_speed = PORT_SPEED_UNKNOWN;
fcport           4854 drivers/scsi/qla2xxx/qla_init.c 	fcport->disc_state = DSC_DELETED;
fcport           4855 drivers/scsi/qla2xxx/qla_init.c 	fcport->fw_login_state = DSC_LS_PORT_UNAVAIL;
fcport           4856 drivers/scsi/qla2xxx/qla_init.c 	fcport->deleted = QLA_SESS_DELETED;
fcport           4857 drivers/scsi/qla2xxx/qla_init.c 	fcport->login_retry = vha->hw->login_retry_count;
fcport           4858 drivers/scsi/qla2xxx/qla_init.c 	fcport->chip_reset = vha->hw->base_qpair->chip_reset;
fcport           4859 drivers/scsi/qla2xxx/qla_init.c 	fcport->logout_on_delete = 1;
fcport           4861 drivers/scsi/qla2xxx/qla_init.c 	if (!fcport->ct_desc.ct_sns) {
fcport           4864 drivers/scsi/qla2xxx/qla_init.c 		kfree(fcport);
fcport           4868 drivers/scsi/qla2xxx/qla_init.c 	INIT_WORK(&fcport->del_work, qla24xx_delete_sess_fn);
fcport           4869 drivers/scsi/qla2xxx/qla_init.c 	INIT_WORK(&fcport->free_work, qlt_free_session_done);
fcport           4870 drivers/scsi/qla2xxx/qla_init.c 	INIT_WORK(&fcport->reg_work, qla_register_fcport_fn);
fcport           4871 drivers/scsi/qla2xxx/qla_init.c 	INIT_LIST_HEAD(&fcport->gnl_entry);
fcport           4872 drivers/scsi/qla2xxx/qla_init.c 	INIT_LIST_HEAD(&fcport->list);
fcport           4874 drivers/scsi/qla2xxx/qla_init.c 	return fcport;
fcport           4878 drivers/scsi/qla2xxx/qla_init.c qla2x00_free_fcport(fc_port_t *fcport)
fcport           4880 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->ct_desc.ct_sns) {
fcport           4881 drivers/scsi/qla2xxx/qla_init.c 		dma_free_coherent(&fcport->vha->hw->pdev->dev,
fcport           4882 drivers/scsi/qla2xxx/qla_init.c 			sizeof(struct ct_sns_pkt), fcport->ct_desc.ct_sns,
fcport           4883 drivers/scsi/qla2xxx/qla_init.c 			fcport->ct_desc.ct_sns_dma);
fcport           4885 drivers/scsi/qla2xxx/qla_init.c 		fcport->ct_desc.ct_sns = NULL;
fcport           4887 drivers/scsi/qla2xxx/qla_init.c 	list_del(&fcport->list);
fcport           4888 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_clear_loop_id(fcport);
fcport           4889 drivers/scsi/qla2xxx/qla_init.c 	kfree(fcport);
fcport           5037 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t	*fcport, *new_fcport;
fcport           5073 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           5074 drivers/scsi/qla2xxx/qla_init.c 			if (fcport->n2n_flag) {
fcport           5075 drivers/scsi/qla2xxx/qla_init.c 				qla24xx_fcport_handle_login(vha, fcport);
fcport           5119 drivers/scsi/qla2xxx/qla_init.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           5120 drivers/scsi/qla2xxx/qla_init.c 		fcport->scan_state = QLA_FCPORT_SCAN;
fcport           5187 drivers/scsi/qla2xxx/qla_init.c 		fcport = NULL;
fcport           5188 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           5189 drivers/scsi/qla2xxx/qla_init.c 			if (memcmp(new_fcport->port_name, fcport->port_name,
fcport           5193 drivers/scsi/qla2xxx/qla_init.c 			fcport->flags &= ~FCF_FABRIC_DEVICE;
fcport           5194 drivers/scsi/qla2xxx/qla_init.c 			fcport->loop_id = new_fcport->loop_id;
fcport           5195 drivers/scsi/qla2xxx/qla_init.c 			fcport->port_type = new_fcport->port_type;
fcport           5196 drivers/scsi/qla2xxx/qla_init.c 			fcport->d_id.b24 = new_fcport->d_id.b24;
fcport           5197 drivers/scsi/qla2xxx/qla_init.c 			memcpy(fcport->node_name, new_fcport->node_name,
fcport           5199 drivers/scsi/qla2xxx/qla_init.c 			fcport->scan_state = QLA_FCPORT_FOUND;
fcport           5209 drivers/scsi/qla2xxx/qla_init.c 			fcport = new_fcport;
fcport           5228 drivers/scsi/qla2xxx/qla_init.c 		fcport->fp_speed = ha->link_data_rate;
fcport           5233 drivers/scsi/qla2xxx/qla_init.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           5237 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->scan_state == QLA_FCPORT_SCAN) {
fcport           5240 drivers/scsi/qla2xxx/qla_init.c 			    atomic_read(&fcport->state) == FCS_ONLINE) {
fcport           5241 drivers/scsi/qla2xxx/qla_init.c 				qla2x00_mark_device_lost(vha, fcport,
fcport           5243 drivers/scsi/qla2xxx/qla_init.c 				if (fcport->loop_id != FC_NO_LOOP_ID &&
fcport           5244 drivers/scsi/qla2xxx/qla_init.c 				    (fcport->flags & FCF_FCP2_DEVICE) == 0 &&
fcport           5245 drivers/scsi/qla2xxx/qla_init.c 				    fcport->port_type != FCT_INITIATOR &&
fcport           5246 drivers/scsi/qla2xxx/qla_init.c 				    fcport->port_type != FCT_BROADCAST) {
fcport           5250 drivers/scsi/qla2xxx/qla_init.c 					    fcport->port_name);
fcport           5252 drivers/scsi/qla2xxx/qla_init.c 					qlt_schedule_sess_for_deletion(fcport);
fcport           5258 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->scan_state == QLA_FCPORT_FOUND)
fcport           5259 drivers/scsi/qla2xxx/qla_init.c 			qla24xx_fcport_handle_login(vha, fcport);
fcport           5274 drivers/scsi/qla2xxx/qla_init.c qla2x00_iidma_fcport(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           5283 drivers/scsi/qla2xxx/qla_init.c 	if (atomic_read(&fcport->state) != FCS_ONLINE)
fcport           5286 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->fp_speed == PORT_SPEED_UNKNOWN ||
fcport           5287 drivers/scsi/qla2xxx/qla_init.c 	    fcport->fp_speed > ha->link_data_rate ||
fcport           5291 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_set_idma_speed(vha, fcport->loop_id, fcport->fp_speed,
fcport           5296 drivers/scsi/qla2xxx/qla_init.c 		    fcport->port_name, rval, fcport->fp_speed, mb[0], mb[1]);
fcport           5300 drivers/scsi/qla2xxx/qla_init.c 		    qla2x00_get_link_speed_str(ha, fcport->fp_speed),
fcport           5301 drivers/scsi/qla2xxx/qla_init.c 		    fcport->fp_speed, fcport->port_name);
fcport           5305 drivers/scsi/qla2xxx/qla_init.c void qla_do_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           5307 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_iidma_fcport(vha, fcport);
fcport           5308 drivers/scsi/qla2xxx/qla_init.c 	qla24xx_update_fcport_fcp_prio(vha, fcport);
fcport           5311 drivers/scsi/qla2xxx/qla_init.c int qla_post_iidma_work(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport           5319 drivers/scsi/qla2xxx/qla_init.c 	e->u.fcport.fcport = fcport;
fcport           5325 drivers/scsi/qla2xxx/qla_init.c qla2x00_reg_remote_port(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           5331 drivers/scsi/qla2xxx/qla_init.c 	if (atomic_read(&fcport->state) == FCS_ONLINE)
fcport           5334 drivers/scsi/qla2xxx/qla_init.c 	rport_ids.node_name = wwn_to_u64(fcport->node_name);
fcport           5335 drivers/scsi/qla2xxx/qla_init.c 	rport_ids.port_name = wwn_to_u64(fcport->port_name);
fcport           5336 drivers/scsi/qla2xxx/qla_init.c 	rport_ids.port_id = fcport->d_id.b.domain << 16 |
fcport           5337 drivers/scsi/qla2xxx/qla_init.c 	    fcport->d_id.b.area << 8 | fcport->d_id.b.al_pa;
fcport           5339 drivers/scsi/qla2xxx/qla_init.c 	fcport->rport = rport = fc_remote_port_add(vha->host, 0, &rport_ids);
fcport           5346 drivers/scsi/qla2xxx/qla_init.c 	spin_lock_irqsave(fcport->vha->host->host_lock, flags);
fcport           5347 drivers/scsi/qla2xxx/qla_init.c 	*((fc_port_t **)rport->dd_data) = fcport;
fcport           5348 drivers/scsi/qla2xxx/qla_init.c 	spin_unlock_irqrestore(fcport->vha->host->host_lock, flags);
fcport           5350 drivers/scsi/qla2xxx/qla_init.c 	rport->supported_classes = fcport->supported_classes;
fcport           5353 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->port_type == FCT_INITIATOR)
fcport           5355 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->port_type == FCT_TARGET)
fcport           5357 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->port_type & FCT_NVME_INITIATOR)
fcport           5359 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->port_type & FCT_NVME_TARGET)
fcport           5361 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->port_type & FCT_NVME_DISCOVERY)
fcport           5366 drivers/scsi/qla2xxx/qla_init.c 	    __func__, fcport->port_name, rport,
fcport           5367 drivers/scsi/qla2xxx/qla_init.c 	    (fcport->port_type == FCT_TARGET) ? "tgt" :
fcport           5368 drivers/scsi/qla2xxx/qla_init.c 	    ((fcport->port_type & FCT_NVME) ? "nvme" : "ini"));
fcport           5389 drivers/scsi/qla2xxx/qla_init.c qla2x00_update_fcport(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           5391 drivers/scsi/qla2xxx/qla_init.c 	if (IS_SW_RESV_ADDR(fcport->d_id))
fcport           5395 drivers/scsi/qla2xxx/qla_init.c 	    __func__, fcport->port_name);
fcport           5397 drivers/scsi/qla2xxx/qla_init.c 	fcport->disc_state = DSC_UPD_FCPORT;
fcport           5398 drivers/scsi/qla2xxx/qla_init.c 	fcport->login_retry = vha->hw->login_retry_count;
fcport           5399 drivers/scsi/qla2xxx/qla_init.c 	fcport->flags &= ~(FCF_LOGIN_NEEDED | FCF_ASYNC_SENT);
fcport           5400 drivers/scsi/qla2xxx/qla_init.c 	fcport->deleted = 0;
fcport           5401 drivers/scsi/qla2xxx/qla_init.c 	fcport->logout_on_delete = 1;
fcport           5402 drivers/scsi/qla2xxx/qla_init.c 	fcport->n2n_chip_reset = fcport->n2n_link_reset_cnt = 0;
fcport           5407 drivers/scsi/qla2xxx/qla_init.c 		fcport->keep_nport_handle = 1;
fcport           5413 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_iidma_fcport(vha, fcport);
fcport           5415 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->fc4f_nvme) {
fcport           5416 drivers/scsi/qla2xxx/qla_init.c 		qla_nvme_register_remote(vha, fcport);
fcport           5417 drivers/scsi/qla2xxx/qla_init.c 		fcport->disc_state = DSC_LOGIN_COMPLETE;
fcport           5418 drivers/scsi/qla2xxx/qla_init.c 		qla2x00_set_fcport_state(fcport, FCS_ONLINE);
fcport           5422 drivers/scsi/qla2xxx/qla_init.c 	qla24xx_update_fcport_fcp_prio(vha, fcport);
fcport           5426 drivers/scsi/qla2xxx/qla_init.c 		qla2x00_reg_remote_port(vha, fcport);
fcport           5431 drivers/scsi/qla2xxx/qla_init.c 			qlt_fc_port_added(vha, fcport);
fcport           5434 drivers/scsi/qla2xxx/qla_init.c 		qla2x00_reg_remote_port(vha, fcport);
fcport           5437 drivers/scsi/qla2xxx/qla_init.c 			qlt_fc_port_added(vha, fcport);
fcport           5443 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_set_fcport_state(fcport, FCS_ONLINE);
fcport           5446 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->id_changed) {
fcport           5447 drivers/scsi/qla2xxx/qla_init.c 			fcport->id_changed = 0;
fcport           5450 drivers/scsi/qla2xxx/qla_init.c 			    __func__, __LINE__, fcport->port_name,
fcport           5452 drivers/scsi/qla2xxx/qla_init.c 			qla24xx_post_gfpnid_work(vha, fcport);
fcport           5456 drivers/scsi/qla2xxx/qla_init.c 			    __func__, __LINE__, fcport->port_name,
fcport           5458 drivers/scsi/qla2xxx/qla_init.c 			qla24xx_post_gpsc_work(vha, fcport);
fcport           5462 drivers/scsi/qla2xxx/qla_init.c 	fcport->disc_state = DSC_LOGIN_COMPLETE;
fcport           5467 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport = container_of(work, struct fc_port, reg_work);
fcport           5468 drivers/scsi/qla2xxx/qla_init.c 	u32 rscn_gen = fcport->rscn_gen;
fcport           5471 drivers/scsi/qla2xxx/qla_init.c 	if (IS_SW_RESV_ADDR(fcport->d_id))
fcport           5474 drivers/scsi/qla2xxx/qla_init.c 	qla2x00_update_fcport(fcport->vha, fcport);
fcport           5476 drivers/scsi/qla2xxx/qla_init.c 	if (rscn_gen != fcport->rscn_gen) {
fcport           5478 drivers/scsi/qla2xxx/qla_init.c 		switch (fcport->next_disc_state) {
fcport           5480 drivers/scsi/qla2xxx/qla_init.c 			qlt_schedule_sess_for_deletion(fcport);
fcport           5484 drivers/scsi/qla2xxx/qla_init.c 			qla2x00_post_async_adisc_work(fcport->vha, fcport,
fcport           5508 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t	*fcport;
fcport           5613 drivers/scsi/qla2xxx/qla_init.c 			list_for_each_entry(fcport, &vha->vp_fcports, list)
fcport           5614 drivers/scsi/qla2xxx/qla_init.c 				fcport->scan_state = QLA_FCPORT_SCAN;
fcport           5650 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t	*fcport, *new_fcport;
fcport           5811 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           5812 drivers/scsi/qla2xxx/qla_init.c 			if (memcmp(new_fcport->port_name, fcport->port_name,
fcport           5816 drivers/scsi/qla2xxx/qla_init.c 			fcport->scan_state = QLA_FCPORT_FOUND;
fcport           5821 drivers/scsi/qla2xxx/qla_init.c 			memcpy(fcport->fabric_port_name,
fcport           5823 drivers/scsi/qla2xxx/qla_init.c 			fcport->fp_speed = new_fcport->fp_speed;
fcport           5829 drivers/scsi/qla2xxx/qla_init.c 			if (fcport->d_id.b24 == new_fcport->d_id.b24 &&
fcport           5830 drivers/scsi/qla2xxx/qla_init.c 			    (atomic_read(&fcport->state) == FCS_ONLINE ||
fcport           5838 drivers/scsi/qla2xxx/qla_init.c 			if ((fcport->flags & FCF_FABRIC_DEVICE) == 0) {
fcport           5839 drivers/scsi/qla2xxx/qla_init.c 				fcport->d_id.b24 = new_fcport->d_id.b24;
fcport           5840 drivers/scsi/qla2xxx/qla_init.c 				qla2x00_clear_loop_id(fcport);
fcport           5841 drivers/scsi/qla2xxx/qla_init.c 				fcport->flags |= (FCF_FABRIC_DEVICE |
fcport           5855 drivers/scsi/qla2xxx/qla_init.c 					 fcport->port_name,
fcport           5856 drivers/scsi/qla2xxx/qla_init.c 					 fcport->d_id.b.domain,
fcport           5857 drivers/scsi/qla2xxx/qla_init.c 					 fcport->d_id.b.area,
fcport           5858 drivers/scsi/qla2xxx/qla_init.c 					 fcport->d_id.b.al_pa,
fcport           5859 drivers/scsi/qla2xxx/qla_init.c 					 fcport->loop_id,
fcport           5863 drivers/scsi/qla2xxx/qla_init.c 				fcport->d_id.b24 = new_fcport->d_id.b24;
fcport           5867 drivers/scsi/qla2xxx/qla_init.c 			fcport->d_id.b24 = new_fcport->d_id.b24;
fcport           5868 drivers/scsi/qla2xxx/qla_init.c 			fcport->flags |= FCF_LOGIN_NEEDED;
fcport           5872 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->fc4f_nvme) {
fcport           5873 drivers/scsi/qla2xxx/qla_init.c 			if (fcport->disc_state == DSC_DELETE_PEND) {
fcport           5874 drivers/scsi/qla2xxx/qla_init.c 				fcport->disc_state = DSC_GNL;
fcport           5876 drivers/scsi/qla2xxx/qla_init.c 				fcport->login_succ = 0;
fcport           5908 drivers/scsi/qla2xxx/qla_init.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           5912 drivers/scsi/qla2xxx/qla_init.c 		if ((fcport->flags & FCF_FABRIC_DEVICE) == 0)
fcport           5915 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->scan_state == QLA_FCPORT_SCAN) {
fcport           5918 drivers/scsi/qla2xxx/qla_init.c 			    atomic_read(&fcport->state) == FCS_ONLINE) {
fcport           5919 drivers/scsi/qla2xxx/qla_init.c 				qla2x00_mark_device_lost(vha, fcport,
fcport           5921 drivers/scsi/qla2xxx/qla_init.c 				if (fcport->loop_id != FC_NO_LOOP_ID &&
fcport           5922 drivers/scsi/qla2xxx/qla_init.c 				    (fcport->flags & FCF_FCP2_DEVICE) == 0 &&
fcport           5923 drivers/scsi/qla2xxx/qla_init.c 				    fcport->port_type != FCT_INITIATOR &&
fcport           5924 drivers/scsi/qla2xxx/qla_init.c 				    fcport->port_type != FCT_BROADCAST) {
fcport           5928 drivers/scsi/qla2xxx/qla_init.c 					    fcport->port_name);
fcport           5929 drivers/scsi/qla2xxx/qla_init.c 					qlt_schedule_sess_for_deletion(fcport);
fcport           5935 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->scan_state == QLA_FCPORT_FOUND &&
fcport           5936 drivers/scsi/qla2xxx/qla_init.c 		    (fcport->flags & FCF_LOGIN_NEEDED) != 0)
fcport           5937 drivers/scsi/qla2xxx/qla_init.c 			qla24xx_fcport_handle_login(vha, fcport);
fcport           5985 drivers/scsi/qla2xxx/qla_init.c qla2x00_fabric_login(scsi_qla_host_t *vha, fc_port_t *fcport,
fcport           6001 drivers/scsi/qla2xxx/qla_init.c 		    fcport->loop_id, fcport->d_id.b.domain,
fcport           6002 drivers/scsi/qla2xxx/qla_init.c 		    fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           6005 drivers/scsi/qla2xxx/qla_init.c 		rval = ha->isp_ops->fabric_login(vha, fcport->loop_id,
fcport           6006 drivers/scsi/qla2xxx/qla_init.c 		    fcport->d_id.b.domain, fcport->d_id.b.area,
fcport           6007 drivers/scsi/qla2xxx/qla_init.c 		    fcport->d_id.b.al_pa, mb, BIT_0);
fcport           6020 drivers/scsi/qla2xxx/qla_init.c 			tmp_loopid = fcport->loop_id;
fcport           6021 drivers/scsi/qla2xxx/qla_init.c 			fcport->loop_id = mb[1];
fcport           6026 drivers/scsi/qla2xxx/qla_init.c 			    fcport->loop_id, fcport->d_id.b.domain,
fcport           6027 drivers/scsi/qla2xxx/qla_init.c 			    fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           6041 drivers/scsi/qla2xxx/qla_init.c 				*next_loopid = (fcport->loop_id + 1);
fcport           6045 drivers/scsi/qla2xxx/qla_init.c 				fcport->port_type = FCT_INITIATOR;
fcport           6047 drivers/scsi/qla2xxx/qla_init.c 				fcport->port_type = FCT_TARGET;
fcport           6049 drivers/scsi/qla2xxx/qla_init.c 					fcport->flags |= FCF_FCP2_DEVICE;
fcport           6054 drivers/scsi/qla2xxx/qla_init.c 				fcport->supported_classes |= FC_COS_CLASS2;
fcport           6056 drivers/scsi/qla2xxx/qla_init.c 				fcport->supported_classes |= FC_COS_CLASS3;
fcport           6060 drivers/scsi/qla2xxx/qla_init.c 					fcport->flags |=
fcport           6070 drivers/scsi/qla2xxx/qla_init.c 			fcport->loop_id++;
fcport           6071 drivers/scsi/qla2xxx/qla_init.c 			rval = qla2x00_find_new_loop_id(vha, fcport);
fcport           6082 drivers/scsi/qla2xxx/qla_init.c 			*next_loopid = fcport->loop_id;
fcport           6083 drivers/scsi/qla2xxx/qla_init.c 			ha->isp_ops->fabric_logout(vha, fcport->loop_id,
fcport           6084 drivers/scsi/qla2xxx/qla_init.c 			    fcport->d_id.b.domain, fcport->d_id.b.area,
fcport           6085 drivers/scsi/qla2xxx/qla_init.c 			    fcport->d_id.b.al_pa);
fcport           6086 drivers/scsi/qla2xxx/qla_init.c 			qla2x00_mark_device_lost(vha, fcport, 1, 0);
fcport           6096 drivers/scsi/qla2xxx/qla_init.c 			    "jiffies=%lx.\n", mb[0], fcport->d_id.b.domain,
fcport           6097 drivers/scsi/qla2xxx/qla_init.c 			    fcport->d_id.b.area, fcport->d_id.b.al_pa,
fcport           6098 drivers/scsi/qla2xxx/qla_init.c 			    fcport->loop_id, jiffies);
fcport           6100 drivers/scsi/qla2xxx/qla_init.c 			*next_loopid = fcport->loop_id;
fcport           6101 drivers/scsi/qla2xxx/qla_init.c 			ha->isp_ops->fabric_logout(vha, fcport->loop_id,
fcport           6102 drivers/scsi/qla2xxx/qla_init.c 			    fcport->d_id.b.domain, fcport->d_id.b.area,
fcport           6103 drivers/scsi/qla2xxx/qla_init.c 			    fcport->d_id.b.al_pa);
fcport           6104 drivers/scsi/qla2xxx/qla_init.c 			qla2x00_clear_loop_id(fcport);
fcport           6105 drivers/scsi/qla2xxx/qla_init.c 			fcport->login_retry = 0;
fcport           6129 drivers/scsi/qla2xxx/qla_init.c qla2x00_local_device_login(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           6135 drivers/scsi/qla2xxx/qla_init.c 	rval = qla2x00_login_local_device(vha, fcport, mb, BIT_0);
fcport           6240 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport;
fcport           6249 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           6250 drivers/scsi/qla2xxx/qla_init.c 			if (fcport->drport &&
fcport           6251 drivers/scsi/qla2xxx/qla_init.c 			    atomic_read(&fcport->state) != FCS_UNCONFIGURED) {
fcport           6253 drivers/scsi/qla2xxx/qla_init.c 				qla2x00_rport_del(fcport);
fcport           6619 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport;
fcport           6698 drivers/scsi/qla2xxx/qla_init.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           6699 drivers/scsi/qla2xxx/qla_init.c 		fcport->flags &= ~(FCF_LOGIN_NEEDED | FCF_ASYNC_SENT);
fcport           6700 drivers/scsi/qla2xxx/qla_init.c 		fcport->scan_state = 0;
fcport           6707 drivers/scsi/qla2xxx/qla_init.c 		list_for_each_entry(fcport, &vp->vp_fcports, list)
fcport           6708 drivers/scsi/qla2xxx/qla_init.c 			fcport->flags &= ~(FCF_LOGIN_NEEDED | FCF_ASYNC_SENT);
fcport           8726 drivers/scsi/qla2xxx/qla_init.c qla24xx_get_fcp_prio(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           8764 drivers/scsi/qla2xxx/qla_init.c 			pid2 = fcport->d_id.b24 & INVALID_PORT_ID;
fcport           8783 drivers/scsi/qla2xxx/qla_init.c 			wwn1 = wwn_to_u64(fcport->port_name);
fcport           8819 drivers/scsi/qla2xxx/qla_init.c qla24xx_update_fcport_fcp_prio(scsi_qla_host_t *vha, fc_port_t *fcport)
fcport           8825 drivers/scsi/qla2xxx/qla_init.c 	if (fcport->port_type != FCT_TARGET ||
fcport           8826 drivers/scsi/qla2xxx/qla_init.c 	    fcport->loop_id == FC_NO_LOOP_ID)
fcport           8829 drivers/scsi/qla2xxx/qla_init.c 	priority = qla24xx_get_fcp_prio(vha, fcport);
fcport           8834 drivers/scsi/qla2xxx/qla_init.c 		fcport->fcp_prio = priority & 0xf;
fcport           8838 drivers/scsi/qla2xxx/qla_init.c 	ret = qla24xx_set_fcp_prio(vha, fcport->loop_id, priority, mb);
fcport           8840 drivers/scsi/qla2xxx/qla_init.c 		if (fcport->fcp_prio != priority)
fcport           8844 drivers/scsi/qla2xxx/qla_init.c 			    fcport->loop_id, fcport->d_id.b.domain,
fcport           8845 drivers/scsi/qla2xxx/qla_init.c 			    fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           8846 drivers/scsi/qla2xxx/qla_init.c 		fcport->fcp_prio = priority & 0xf;
fcport           8850 drivers/scsi/qla2xxx/qla_init.c 		    "loop_id=%d port_id=%02x%02x%02x.\n", ret, fcport->loop_id,
fcport           8851 drivers/scsi/qla2xxx/qla_init.c 		    fcport->d_id.b.domain, fcport->d_id.b.area,
fcport           8852 drivers/scsi/qla2xxx/qla_init.c 		    fcport->d_id.b.al_pa);
fcport           8873 drivers/scsi/qla2xxx/qla_init.c 	fc_port_t *fcport;
fcport           8877 drivers/scsi/qla2xxx/qla_init.c 	list_for_each_entry(fcport, &vha->vp_fcports, list)
fcport           8878 drivers/scsi/qla2xxx/qla_init.c 		ret = qla24xx_update_fcport_fcp_prio(vha, fcport);
fcport            156 drivers/scsi/qla2xxx/qla_inline.h 			    struct qla_qpair *qpair, fc_port_t *fcport)
fcport            159 drivers/scsi/qla2xxx/qla_inline.h 	sp->fcport = fcport;
fcport            169 drivers/scsi/qla2xxx/qla_inline.h     fc_port_t *fcport, gfp_t flag)
fcport            180 drivers/scsi/qla2xxx/qla_inline.h 		qla2xxx_init_sp(sp, vha, qpair, fcport);
fcport            195 drivers/scsi/qla2xxx/qla_inline.h qla2x00_get_sp(scsi_qla_host_t *vha, fc_port_t *fcport, gfp_t flag)
fcport            206 drivers/scsi/qla2xxx/qla_inline.h 	sp = qla2xxx_get_qpair_sp(vha, qpair, fcport, flag);
fcport            245 drivers/scsi/qla2xxx/qla_inline.h qla2x00_set_retry_delay_timestamp(fc_port_t *fcport, uint16_t retry_delay)
fcport            248 drivers/scsi/qla2xxx/qla_inline.h 		fcport->retry_delay_timestamp = jiffies +
fcport            405 drivers/scsi/qla2xxx/qla_iocb.c 	SET_TARGET_ID(ha, cmd_pkt->target, sp->fcport->loop_id);
fcport           1667 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           1668 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           1669 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
fcport           1670 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
fcport           1852 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           1853 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           1854 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
fcport           1855 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
fcport           1920 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host *vha = sp->fcport->vha;
fcport           1987 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           1988 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           1989 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
fcport           1990 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
fcport           1991 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->vp_index = sp->fcport->vha->vp_idx;
fcport           2057 drivers/scsi/qla2xxx/qla_iocb.c 	struct scsi_qla_host	*vha = sp->fcport->vha;
fcport           2187 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           2188 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           2189 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
fcport           2190 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
fcport           2352 drivers/scsi/qla2xxx/qla_iocb.c 	logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           2353 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           2354 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[1] = sp->fcport->d_id.b.area;
fcport           2355 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[2] = sp->fcport->d_id.b.domain;
fcport           2374 drivers/scsi/qla2xxx/qla_iocb.c 	logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           2375 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           2376 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[1] = sp->fcport->d_id.b.area;
fcport           2377 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[2] = sp->fcport->d_id.b.domain;
fcport           2389 drivers/scsi/qla2xxx/qla_iocb.c 	SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id);
fcport           2394 drivers/scsi/qla2xxx/qla_iocb.c 		mbx->mb1 = cpu_to_le16(sp->fcport->loop_id);
fcport           2397 drivers/scsi/qla2xxx/qla_iocb.c 		mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts);
fcport           2399 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain);
fcport           2400 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 |
fcport           2401 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->fcport->d_id.b.al_pa);
fcport           2411 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp->fcport->explicit_logout) {
fcport           2416 drivers/scsi/qla2xxx/qla_iocb.c 		if (!sp->fcport->keep_nport_handle)
fcport           2421 drivers/scsi/qla2xxx/qla_iocb.c 	logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           2422 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           2423 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[1] = sp->fcport->d_id.b.area;
fcport           2424 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[2] = sp->fcport->d_id.b.domain;
fcport           2434 drivers/scsi/qla2xxx/qla_iocb.c 	SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id);
fcport           2437 drivers/scsi/qla2xxx/qla_iocb.c 	    cpu_to_le16(sp->fcport->loop_id) :
fcport           2438 drivers/scsi/qla2xxx/qla_iocb.c 	    cpu_to_le16(sp->fcport->loop_id << 8);
fcport           2439 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain);
fcport           2440 drivers/scsi/qla2xxx/qla_iocb.c 	mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 |
fcport           2441 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->fcport->d_id.b.al_pa);
fcport           2451 drivers/scsi/qla2xxx/qla_iocb.c 	logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           2461 drivers/scsi/qla2xxx/qla_iocb.c 	SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id);
fcport           2464 drivers/scsi/qla2xxx/qla_iocb.c 		mbx->mb1 = cpu_to_le16(sp->fcport->loop_id);
fcport           2467 drivers/scsi/qla2xxx/qla_iocb.c 		mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | BIT_0);
fcport           2481 drivers/scsi/qla2xxx/qla_iocb.c 	struct fc_port *fcport = sp->fcport;
fcport           2482 drivers/scsi/qla2xxx/qla_iocb.c 	scsi_qla_host_t *vha = fcport->vha;
fcport           2493 drivers/scsi/qla2xxx/qla_iocb.c 	tsk->nport_handle = cpu_to_le16(fcport->loop_id);
fcport           2496 drivers/scsi/qla2xxx/qla_iocb.c 	tsk->port_id[0] = fcport->d_id.b.al_pa;
fcport           2497 drivers/scsi/qla2xxx/qla_iocb.c 	tsk->port_id[1] = fcport->d_id.b.area;
fcport           2498 drivers/scsi/qla2xxx/qla_iocb.c 	tsk->port_id[2] = fcport->d_id.b.domain;
fcport           2499 drivers/scsi/qla2xxx/qla_iocb.c 	tsk->vp_index = fcport->vha->vp_idx;
fcport           2522 drivers/scsi/qla2xxx/qla_iocb.c 	kfree(sp->fcport);
fcport           2537 drivers/scsi/qla2xxx/qla_iocb.c 	fc_port_t *fcport = sp->fcport;
fcport           2543 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, sp->handle, fcport->d_id.b.domain, fcport->d_id.b.area,
fcport           2544 drivers/scsi/qla2xxx/qla_iocb.c 	    fcport->d_id.b.al_pa);
fcport           2551 drivers/scsi/qla2xxx/qla_iocb.c 	fc_port_t *fcport = sp->fcport;
fcport           2557 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, sp->handle, fcport->d_id.b.domain,
fcport           2558 drivers/scsi/qla2xxx/qla_iocb.c 	    fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           2568 drivers/scsi/qla2xxx/qla_iocb.c 	fc_port_t *fcport = NULL;
fcport           2574 drivers/scsi/qla2xxx/qla_iocb.c 	fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
fcport           2575 drivers/scsi/qla2xxx/qla_iocb.c 	if (!fcport) {
fcport           2581 drivers/scsi/qla2xxx/qla_iocb.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport           2583 drivers/scsi/qla2xxx/qla_iocb.c 		kfree(fcport);
fcport           2590 drivers/scsi/qla2xxx/qla_iocb.c 	fcport->loop_id = 0xFFFF;
fcport           2591 drivers/scsi/qla2xxx/qla_iocb.c 	fcport->d_id.b.domain = remote_did.b.domain;
fcport           2592 drivers/scsi/qla2xxx/qla_iocb.c 	fcport->d_id.b.area = remote_did.b.area;
fcport           2593 drivers/scsi/qla2xxx/qla_iocb.c 	fcport->d_id.b.al_pa = remote_did.b.al_pa;
fcport           2596 drivers/scsi/qla2xxx/qla_iocb.c 	    fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           2600 drivers/scsi/qla2xxx/qla_iocb.c 	sp->fcport = fcport;
fcport           2637 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, sp->handle, fcport->loop_id, fcport->d_id.b.domain,
fcport           2638 drivers/scsi/qla2xxx/qla_iocb.c 	    fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           2657 drivers/scsi/qla2xxx/qla_iocb.c 	els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           2664 drivers/scsi/qla2xxx/qla_iocb.c 	els_iocb->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           2665 drivers/scsi/qla2xxx/qla_iocb.c 	els_iocb->port_id[1] = sp->fcport->d_id.b.area;
fcport           2666 drivers/scsi/qla2xxx/qla_iocb.c 	els_iocb->port_id[2] = sp->fcport->d_id.b.domain;
fcport           2709 drivers/scsi/qla2xxx/qla_iocb.c 	fc_port_t *fcport = sp->fcport;
fcport           2717 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, sp->handle, fcport->port_name, fcport->d_id.b24);
fcport           2747 drivers/scsi/qla2xxx/qla_iocb.c 	fc_port_t *fcport = sp->fcport;
fcport           2755 drivers/scsi/qla2xxx/qla_iocb.c 	    sp->name, res, sp->handle, fcport->d_id.b24, fcport->port_name);
fcport           2757 drivers/scsi/qla2xxx/qla_iocb.c 	fcport->flags &= ~(FCF_ASYNC_SENT|FCF_ASYNC_ACTIVE);
fcport           2767 drivers/scsi/qla2xxx/qla_iocb.c 			ea.fcport = fcport;
fcport           2788 drivers/scsi/qla2xxx/qla_iocb.c     fc_port_t *fcport, bool wait)
fcport           2797 drivers/scsi/qla2xxx/qla_iocb.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport           2806 drivers/scsi/qla2xxx/qla_iocb.c 	    "Enter: PLOGI portid=%06x\n", fcport->d_id.b24);
fcport           2808 drivers/scsi/qla2xxx/qla_iocb.c 	fcport->flags |= FCF_ASYNC_SENT;
fcport           2811 drivers/scsi/qla2xxx/qla_iocb.c 	sp->fcport = fcport;
fcport           2863 drivers/scsi/qla2xxx/qla_iocb.c 		    sp->name, sp->handle, fcport->loop_id,
fcport           2864 drivers/scsi/qla2xxx/qla_iocb.c 		    fcport->d_id.b24, vha->d_id.b24);
fcport           2877 drivers/scsi/qla2xxx/qla_iocb.c 	fcport->flags &= ~(FCF_ASYNC_SENT);
fcport           2895 drivers/scsi/qla2xxx/qla_iocb.c         els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           2905 drivers/scsi/qla2xxx/qla_iocb.c         els_iocb->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           2906 drivers/scsi/qla2xxx/qla_iocb.c         els_iocb->port_id[1] = sp->fcport->d_id.b.area;
fcport           2907 drivers/scsi/qla2xxx/qla_iocb.c         els_iocb->port_id[2] = sp->fcport->d_id.b.domain;
fcport           2944 drivers/scsi/qla2xxx/qla_iocb.c 	SET_TARGET_ID(ha, ct_iocb->loop_id, sp->fcport->loop_id);
fcport           3013 drivers/scsi/qla2xxx/qla_iocb.c 	ct_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           3242 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           3243 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           3244 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
fcport           3245 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
fcport           3267 drivers/scsi/qla2xxx/qla_iocb.c 			    sp->fcport->fcp_prio << 3;
fcport           3313 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           3314 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           3315 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
fcport           3316 drivers/scsi/qla2xxx/qla_iocb.c 		cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
fcport           3325 drivers/scsi/qla2xxx/qla_iocb.c 			cmd_pkt->task |= sp->fcport->fcp_prio << 3;
fcport           3410 drivers/scsi/qla2xxx/qla_iocb.c 	if (sp->fcport) {
fcport           3411 drivers/scsi/qla2xxx/qla_iocb.c 		abt_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           3412 drivers/scsi/qla2xxx/qla_iocb.c 		abt_iocb->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           3413 drivers/scsi/qla2xxx/qla_iocb.c 		abt_iocb->port_id[1] = sp->fcport->d_id.b.area;
fcport           3414 drivers/scsi/qla2xxx/qla_iocb.c 		abt_iocb->port_id[2] = sp->fcport->d_id.b.domain;
fcport           3489 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           3490 drivers/scsi/qla2xxx/qla_iocb.c 	cmd_pkt->vp_index = sp->fcport->vha->vp_idx;
fcport           3532 drivers/scsi/qla2xxx/qla_iocb.c 	logio->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport           3533 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport           3534 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[1] = sp->fcport->d_id.b.area;
fcport           3535 drivers/scsi/qla2xxx/qla_iocb.c 	logio->port_id[2] = sp->fcport->d_id.b.domain;
fcport           3536 drivers/scsi/qla2xxx/qla_iocb.c 	logio->vp_index = sp->fcport->vha->vp_idx;
fcport            640 drivers/scsi/qla2xxx/qla_isr.c 	fc_port_t	*fcport = NULL;
fcport           1016 drivers/scsi/qla2xxx/qla_isr.c 			fcport = qla2x00_find_fcport_by_loopid(vha, mb[1]);
fcport           1017 drivers/scsi/qla2xxx/qla_isr.c 			if (!fcport)
fcport           1019 drivers/scsi/qla2xxx/qla_isr.c 			if (atomic_read(&fcport->state) != FCS_ONLINE)
fcport           1023 drivers/scsi/qla2xxx/qla_isr.c 			    fcport->loop_id, fcport->d_id.b24);
fcport           1025 drivers/scsi/qla2xxx/qla_isr.c 				qla2x00_mark_device_lost(fcport->vha, fcport, 1, 1);
fcport           1026 drivers/scsi/qla2xxx/qla_isr.c 				fcport->logout_on_delete = 0;
fcport           1027 drivers/scsi/qla2xxx/qla_isr.c 				qlt_schedule_sess_for_deletion(fcport);
fcport           1352 drivers/scsi/qla2xxx/qla_isr.c 	fc_port_t *fcport;
fcport           1364 drivers/scsi/qla2xxx/qla_isr.c 	fcport = sp->fcport;
fcport           1375 drivers/scsi/qla2xxx/qla_isr.c 		    fcport->d_id.b.domain, fcport->d_id.b.area,
fcport           1376 drivers/scsi/qla2xxx/qla_isr.c 		    fcport->d_id.b.al_pa, mbx->entry_status,
fcport           1393 drivers/scsi/qla2xxx/qla_isr.c 		    type, sp->handle, fcport->d_id.b.domain,
fcport           1394 drivers/scsi/qla2xxx/qla_isr.c 		    fcport->d_id.b.area, fcport->d_id.b.al_pa,
fcport           1399 drivers/scsi/qla2xxx/qla_isr.c 			fcport->port_type = FCT_TARGET;
fcport           1401 drivers/scsi/qla2xxx/qla_isr.c 				fcport->port_type = FCT_INITIATOR;
fcport           1403 drivers/scsi/qla2xxx/qla_isr.c 				fcport->flags |= FCF_FCP2_DEVICE;
fcport           1423 drivers/scsi/qla2xxx/qla_isr.c 	    fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa,
fcport           1683 drivers/scsi/qla2xxx/qla_isr.c 	fc_port_t *fcport;
fcport           1695 drivers/scsi/qla2xxx/qla_isr.c 	fcport = sp->fcport;
fcport           1702 drivers/scsi/qla2xxx/qla_isr.c 		ql_log(ql_log_warn, fcport->vha, 0x5034,
fcport           1705 drivers/scsi/qla2xxx/qla_isr.c 		    type, fcport->port_name, sp->handle, fcport->d_id.b.domain,
fcport           1706 drivers/scsi/qla2xxx/qla_isr.c 		    fcport->d_id.b.area, fcport->d_id.b.al_pa,
fcport           1715 drivers/scsi/qla2xxx/qla_isr.c 		ql_dbg(ql_dbg_async, fcport->vha, 0x5036,
fcport           1717 drivers/scsi/qla2xxx/qla_isr.c 		    "iop0=%x.\n", type, fcport->port_name, sp->handle,
fcport           1718 drivers/scsi/qla2xxx/qla_isr.c 		    fcport->d_id.b.domain,
fcport           1719 drivers/scsi/qla2xxx/qla_isr.c 		    fcport->d_id.b.area, fcport->d_id.b.al_pa,
fcport           1738 drivers/scsi/qla2xxx/qla_isr.c 			fcport->port_type = FCT_TARGET;
fcport           1740 drivers/scsi/qla2xxx/qla_isr.c 				fcport->flags |= FCF_FCP2_DEVICE;
fcport           1742 drivers/scsi/qla2xxx/qla_isr.c 			fcport->port_type = FCT_INITIATOR;
fcport           1745 drivers/scsi/qla2xxx/qla_isr.c 			fcport->flags |= FCF_CONF_COMP_SUPPORTED;
fcport           1748 drivers/scsi/qla2xxx/qla_isr.c 			fcport->supported_classes |= FC_COS_CLASS2;
fcport           1750 drivers/scsi/qla2xxx/qla_isr.c 			fcport->supported_classes |= FC_COS_CLASS3;
fcport           1798 drivers/scsi/qla2xxx/qla_isr.c 	ql_dbg(ql_dbg_async, fcport->vha, 0x5037,
fcport           1800 drivers/scsi/qla2xxx/qla_isr.c 	    "iop0=%x iop1=%x.\n", type, fcport->port_name,
fcport           1801 drivers/scsi/qla2xxx/qla_isr.c 		sp->handle, fcport->d_id.b.domain,
fcport           1802 drivers/scsi/qla2xxx/qla_isr.c 	    fcport->d_id.b.area, fcport->d_id.b.al_pa,
fcport           1816 drivers/scsi/qla2xxx/qla_isr.c 	fc_port_t *fcport;
fcport           1827 drivers/scsi/qla2xxx/qla_isr.c 	fcport = sp->fcport;
fcport           1831 drivers/scsi/qla2xxx/qla_isr.c 		ql_log(ql_log_warn, fcport->vha, 0x5038,
fcport           1836 drivers/scsi/qla2xxx/qla_isr.c 		ql_log(ql_log_warn, fcport->vha, 0x5039,
fcport           1843 drivers/scsi/qla2xxx/qla_isr.c 			ql_log(ql_log_warn, fcport->vha, 0x503b,
fcport           1847 drivers/scsi/qla2xxx/qla_isr.c 			ql_log(ql_log_warn, fcport->vha, 0x503c,
fcport           1864 drivers/scsi/qla2xxx/qla_isr.c 	fc_port_t *fcport;
fcport           1873 drivers/scsi/qla2xxx/qla_isr.c 	fcport = sp->fcport;
fcport           1905 drivers/scsi/qla2xxx/qla_isr.c 				ql_log(ql_log_warn, fcport->vha, 0x5100,
fcport           1916 drivers/scsi/qla2xxx/qla_isr.c 	    ql_log(ql_log_warn, fcport->vha, 0x503a,
fcport           1925 drivers/scsi/qla2xxx/qla_isr.c 		ql_log(ql_log_warn, fcport->vha, 0x5060,
fcport           1942 drivers/scsi/qla2xxx/qla_isr.c 		fcport->nvme_flag |= NVME_FLAG_RESETTING;
fcport           2411 drivers/scsi/qla2xxx/qla_isr.c 	fc_port_t	*fcport;
fcport           2527 drivers/scsi/qla2xxx/qla_isr.c 	fcport = sp->fcport;
fcport           2572 drivers/scsi/qla2xxx/qla_isr.c 			ql_dbg(ql_dbg_io, fcport->vha, 0x3019,
fcport           2592 drivers/scsi/qla2xxx/qla_isr.c 		qla2x00_set_retry_delay_timestamp(fcport, retry_delay);
fcport           2611 drivers/scsi/qla2xxx/qla_isr.c 				ql_dbg(ql_dbg_io, fcport->vha, 0x301a,
fcport           2622 drivers/scsi/qla2xxx/qla_isr.c 			ql_dbg(ql_dbg_io, fcport->vha, 0x301b,
fcport           2644 drivers/scsi/qla2xxx/qla_isr.c 				ql_dbg(ql_dbg_io, fcport->vha, 0x301d,
fcport           2655 drivers/scsi/qla2xxx/qla_isr.c 				ql_dbg(ql_dbg_io, fcport->vha, 0x301e,
fcport           2669 drivers/scsi/qla2xxx/qla_isr.c 			ql_dbg(ql_dbg_io, fcport->vha, 0x301f,
fcport           2676 drivers/scsi/qla2xxx/qla_isr.c 			ql_dbg(ql_dbg_io, fcport->vha, 0x3030,
fcport           2691 drivers/scsi/qla2xxx/qla_isr.c 				ql_dbg(ql_dbg_io, fcport->vha, 0x3020,
fcport           2731 drivers/scsi/qla2xxx/qla_isr.c 		if (atomic_read(&fcport->state) == FCS_ONLINE) {
fcport           2732 drivers/scsi/qla2xxx/qla_isr.c 			ql_dbg(ql_dbg_disc, fcport->vha, 0x3021,
fcport           2734 drivers/scsi/qla2xxx/qla_isr.c 				"port state= %s comp_status %x.\n", fcport->d_id.b.domain,
fcport           2735 drivers/scsi/qla2xxx/qla_isr.c 				fcport->d_id.b.area, fcport->d_id.b.al_pa,
fcport           2739 drivers/scsi/qla2xxx/qla_isr.c 			qla2x00_mark_device_lost(fcport->vha, fcport, 1, 1);
fcport           2740 drivers/scsi/qla2xxx/qla_isr.c 			qlt_schedule_sess_for_deletion(fcport);
fcport           2767 drivers/scsi/qla2xxx/qla_isr.c 		ql_log(ql_log_info, fcport->vha, 0x3022,
fcport           2770 drivers/scsi/qla2xxx/qla_isr.c 		    cp->device->id, cp->device->lun, fcport->d_id.b24,
fcport           2784 drivers/scsi/qla2xxx/qla_isr.c 		ql_dbg(ql_dbg_io, fcport->vha, 0x3022,
fcport           2789 drivers/scsi/qla2xxx/qla_isr.c 		    cp->device->id, cp->device->lun, fcport->d_id.b.domain,
fcport           2790 drivers/scsi/qla2xxx/qla_isr.c 		    fcport->d_id.b.area, fcport->d_id.b.al_pa, ox_id,
fcport           1469 drivers/scsi/qla2xxx/qla_mbx.c 	fc_port_t	*fcport = sp->fcport;
fcport           1470 drivers/scsi/qla2xxx/qla_mbx.c 	scsi_qla_host_t *vha = fcport->vha;
fcport           1497 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id;
fcport           1499 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id << 8;
fcport           1520 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_abort_target(struct fc_port *fcport, uint64_t l, int tag)
fcport           1527 drivers/scsi/qla2xxx/qla_mbx.c 	vha = fcport->vha;
fcport           1535 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id;
fcport           1539 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id << 8;
fcport           1554 drivers/scsi/qla2xxx/qla_mbx.c 	rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, 0,
fcport           1568 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_lun_reset(struct fc_port *fcport, uint64_t l, int tag)
fcport           1575 drivers/scsi/qla2xxx/qla_mbx.c 	vha = fcport->vha;
fcport           1583 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id;
fcport           1585 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id << 8;
fcport           1599 drivers/scsi/qla2xxx/qla_mbx.c 	rval2 = qla2x00_marker(vha, vha->hw->base_qpair, fcport->loop_id, l,
fcport           1875 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_get_port_database(scsi_qla_host_t *vha, fc_port_t *fcport, uint8_t opt)
fcport           1893 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->query = 0;
fcport           1908 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id;
fcport           1913 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id;
fcport           1917 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id << 8 | opt;
fcport           1935 drivers/scsi/qla2xxx/qla_mbx.c 		if (fcport->fc4f_nvme) {
fcport           1942 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->current_login_state = pd24->current_login_state;
fcport           1943 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->last_login_state = pd24->last_login_state;
fcport           1951 drivers/scsi/qla2xxx/qla_mbx.c 			    fcport->loop_id);
fcport           1954 drivers/scsi/qla2xxx/qla_mbx.c 			if (!fcport->query)
fcport           1958 drivers/scsi/qla2xxx/qla_mbx.c 		if (fcport->loop_id == FC_NO_LOOP_ID ||
fcport           1959 drivers/scsi/qla2xxx/qla_mbx.c 		    (memcmp(fcport->port_name, (uint8_t *)&zero, 8) &&
fcport           1960 drivers/scsi/qla2xxx/qla_mbx.c 		     memcmp(fcport->port_name, pd24->port_name, 8))) {
fcport           1967 drivers/scsi/qla2xxx/qla_mbx.c 		memcpy(fcport->node_name, pd24->node_name, WWN_SIZE);
fcport           1968 drivers/scsi/qla2xxx/qla_mbx.c 		memcpy(fcport->port_name, pd24->port_name, WWN_SIZE);
fcport           1971 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->d_id.b.domain = pd24->port_id[0];
fcport           1972 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->d_id.b.area = pd24->port_id[1];
fcport           1973 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->d_id.b.al_pa = pd24->port_id[2];
fcport           1974 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->d_id.b.rsvd_1 = 0;
fcport           1978 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->port_type = FCT_INITIATOR;
fcport           1980 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->port_type = FCT_TARGET;
fcport           1983 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->supported_classes = (pd24->flags & PDF_CLASS_2) ?
fcport           1987 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->flags |= FCF_CONF_COMP_SUPPORTED;
fcport           1997 drivers/scsi/qla2xxx/qla_mbx.c 			    pd->slave_state, fcport->d_id.b.domain,
fcport           1998 drivers/scsi/qla2xxx/qla_mbx.c 			    fcport->d_id.b.area, fcport->d_id.b.al_pa);
fcport           2003 drivers/scsi/qla2xxx/qla_mbx.c 		if (fcport->loop_id == FC_NO_LOOP_ID ||
fcport           2004 drivers/scsi/qla2xxx/qla_mbx.c 		    (memcmp(fcport->port_name, (uint8_t *)&zero, 8) &&
fcport           2005 drivers/scsi/qla2xxx/qla_mbx.c 		     memcmp(fcport->port_name, pd->port_name, 8))) {
fcport           2012 drivers/scsi/qla2xxx/qla_mbx.c 		memcpy(fcport->node_name, pd->node_name, WWN_SIZE);
fcport           2013 drivers/scsi/qla2xxx/qla_mbx.c 		memcpy(fcport->port_name, pd->port_name, WWN_SIZE);
fcport           2016 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->d_id.b.domain = pd->port_id[0];
fcport           2017 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->d_id.b.area = pd->port_id[3];
fcport           2018 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->d_id.b.al_pa = pd->port_id[2];
fcport           2019 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->d_id.b.rsvd_1 = 0;
fcport           2023 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->port_type = FCT_INITIATOR;
fcport           2025 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->port_type = FCT_TARGET;
fcport           2028 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->supported_classes = (pd->options & BIT_4) ?
fcport           2034 drivers/scsi/qla2xxx/qla_mbx.c 	fcport->query = 0;
fcport           2576 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_login_local_device(scsi_qla_host_t *vha, fc_port_t *fcport,
fcport           2588 drivers/scsi/qla2xxx/qla_mbx.c 		return qla24xx_login_fabric(vha, fcport->loop_id,
fcport           2589 drivers/scsi/qla2xxx/qla_mbx.c 		    fcport->d_id.b.domain, fcport->d_id.b.area,
fcport           2590 drivers/scsi/qla2xxx/qla_mbx.c 		    fcport->d_id.b.al_pa, mb_ret, opt);
fcport           2594 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id;
fcport           2596 drivers/scsi/qla2xxx/qla_mbx.c 		mcp->mb[1] = fcport->loop_id << 8;
fcport           3111 drivers/scsi/qla2xxx/qla_mbx.c 	fc_port_t	*fcport = sp->fcport;
fcport           3112 drivers/scsi/qla2xxx/qla_mbx.c 	struct scsi_qla_host *vha = fcport->vha;
fcport           3149 drivers/scsi/qla2xxx/qla_mbx.c 	abt->nport_handle = cpu_to_le16(fcport->loop_id);
fcport           3151 drivers/scsi/qla2xxx/qla_mbx.c 	abt->port_id[0] = fcport->d_id.b.al_pa;
fcport           3152 drivers/scsi/qla2xxx/qla_mbx.c 	abt->port_id[1] = fcport->d_id.b.area;
fcport           3153 drivers/scsi/qla2xxx/qla_mbx.c 	abt->port_id[2] = fcport->d_id.b.domain;
fcport           3154 drivers/scsi/qla2xxx/qla_mbx.c 	abt->vp_index = fcport->vha->vp_idx;
fcport           3193 drivers/scsi/qla2xxx/qla_mbx.c __qla24xx_issue_tmf(char *name, uint32_t type, struct fc_port *fcport,
fcport           3205 drivers/scsi/qla2xxx/qla_mbx.c 	vha = fcport->vha;
fcport           3228 drivers/scsi/qla2xxx/qla_mbx.c 	tsk->p.tsk.nport_handle = cpu_to_le16(fcport->loop_id);
fcport           3231 drivers/scsi/qla2xxx/qla_mbx.c 	tsk->p.tsk.port_id[0] = fcport->d_id.b.al_pa;
fcport           3232 drivers/scsi/qla2xxx/qla_mbx.c 	tsk->p.tsk.port_id[1] = fcport->d_id.b.area;
fcport           3233 drivers/scsi/qla2xxx/qla_mbx.c 	tsk->p.tsk.port_id[2] = fcport->d_id.b.domain;
fcport           3234 drivers/scsi/qla2xxx/qla_mbx.c 	tsk->p.tsk.vp_index = fcport->vha->vp_idx;
fcport           3272 drivers/scsi/qla2xxx/qla_mbx.c 	rval2 = qla2x00_marker(vha, ha->base_qpair, fcport->loop_id, l,
fcport           3288 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_abort_target(struct fc_port *fcport, uint64_t l, int tag)
fcport           3290 drivers/scsi/qla2xxx/qla_mbx.c 	struct qla_hw_data *ha = fcport->vha->hw;
fcport           3293 drivers/scsi/qla2xxx/qla_mbx.c 		return qla2x00_async_tm_cmd(fcport, TCF_TARGET_RESET, l, tag);
fcport           3295 drivers/scsi/qla2xxx/qla_mbx.c 	return __qla24xx_issue_tmf("Target", TCF_TARGET_RESET, fcport, l, tag);
fcport           3299 drivers/scsi/qla2xxx/qla_mbx.c qla24xx_lun_reset(struct fc_port *fcport, uint64_t l, int tag)
fcport           3301 drivers/scsi/qla2xxx/qla_mbx.c 	struct qla_hw_data *ha = fcport->vha->hw;
fcport           3304 drivers/scsi/qla2xxx/qla_mbx.c 		return qla2x00_async_tm_cmd(fcport, TCF_LUN_RESET, l, tag);
fcport           3306 drivers/scsi/qla2xxx/qla_mbx.c 	return __qla24xx_issue_tmf("Lun", TCF_LUN_RESET, fcport, l, tag);
fcport           3840 drivers/scsi/qla2xxx/qla_mbx.c 	struct fc_port *fcport;
fcport           3887 drivers/scsi/qla2xxx/qla_mbx.c 			list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           3888 drivers/scsi/qla2xxx/qla_mbx.c 				fcport->scan_state = QLA_FCPORT_SCAN;
fcport           3889 drivers/scsi/qla2xxx/qla_mbx.c 				fcport->n2n_flag = 0;
fcport           3892 drivers/scsi/qla2xxx/qla_mbx.c 			fcport = qla2x00_find_fcport_by_wwpn(vha,
fcport           3896 drivers/scsi/qla2xxx/qla_mbx.c 			if (fcport) {
fcport           3897 drivers/scsi/qla2xxx/qla_mbx.c 				fcport->plogi_nack_done_deadline = jiffies + HZ;
fcport           3898 drivers/scsi/qla2xxx/qla_mbx.c 				fcport->dm_login_expire = jiffies + 2*HZ;
fcport           3899 drivers/scsi/qla2xxx/qla_mbx.c 				fcport->scan_state = QLA_FCPORT_FOUND;
fcport           3900 drivers/scsi/qla2xxx/qla_mbx.c 				fcport->n2n_flag = 1;
fcport           3901 drivers/scsi/qla2xxx/qla_mbx.c 				fcport->keep_nport_handle = 1;
fcport           3903 drivers/scsi/qla2xxx/qla_mbx.c 					fcport->fc4f_nvme = 1;
fcport           3905 drivers/scsi/qla2xxx/qla_mbx.c 				switch (fcport->disc_state) {
fcport           3913 drivers/scsi/qla2xxx/qla_mbx.c 					qlt_schedule_sess_for_deletion(fcport);
fcport           4036 drivers/scsi/qla2xxx/qla_mbx.c 		list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           4037 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->scan_state = QLA_FCPORT_SCAN;
fcport           4038 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->n2n_flag = 0;
fcport           4041 drivers/scsi/qla2xxx/qla_mbx.c 		fcport = qla2x00_find_fcport_by_wwpn(vha,
fcport           4044 drivers/scsi/qla2xxx/qla_mbx.c 		if (fcport) {
fcport           4045 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->login_retry = vha->hw->login_retry_count;
fcport           4046 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->plogi_nack_done_deadline = jiffies + HZ;
fcport           4047 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->scan_state = QLA_FCPORT_FOUND;
fcport           4048 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->keep_nport_handle = 1;
fcport           4049 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->n2n_flag = 1;
fcport           4050 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->d_id.b.domain =
fcport           4052 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->d_id.b.area =
fcport           4054 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->d_id.b.al_pa =
fcport           5957 drivers/scsi/qla2xxx/qla_mbx.c qla2x00_port_logout(scsi_qla_host_t *vha, struct fc_port *fcport)
fcport           5976 drivers/scsi/qla2xxx/qla_mbx.c 	mcp->mb[1] = fcport->loop_id;
fcport           6307 drivers/scsi/qla2xxx/qla_mbx.c int qla24xx_gpdb_wait(struct scsi_qla_host *vha, fc_port_t *fcport, u8 opt)
fcport           6327 drivers/scsi/qla2xxx/qla_mbx.c 	mc.mb[1] = cpu_to_le16(fcport->loop_id);
fcport           6338 drivers/scsi/qla2xxx/qla_mbx.c 		    "%s: %8phC fail\n", __func__, fcport->port_name);
fcport           6342 drivers/scsi/qla2xxx/qla_mbx.c 	rval = __qla24xx_parse_gpdb(vha, fcport, pd);
fcport           6345 drivers/scsi/qla2xxx/qla_mbx.c 	    __func__, fcport->port_name);
fcport           6354 drivers/scsi/qla2xxx/qla_mbx.c int __qla24xx_parse_gpdb(struct scsi_qla_host *vha, fc_port_t *fcport,
fcport           6361 drivers/scsi/qla2xxx/qla_mbx.c 	if (fcport->fc4f_nvme) {
fcport           6373 drivers/scsi/qla2xxx/qla_mbx.c 		    current_login_state, last_login_state, fcport->loop_id);
fcport           6378 drivers/scsi/qla2xxx/qla_mbx.c 	if (fcport->loop_id == FC_NO_LOOP_ID ||
fcport           6379 drivers/scsi/qla2xxx/qla_mbx.c 	    (memcmp(fcport->port_name, (uint8_t *)&zero, 8) &&
fcport           6380 drivers/scsi/qla2xxx/qla_mbx.c 	     memcmp(fcport->port_name, pd->port_name, 8))) {
fcport           6387 drivers/scsi/qla2xxx/qla_mbx.c 	memcpy(fcport->node_name, pd->node_name, WWN_SIZE);
fcport           6388 drivers/scsi/qla2xxx/qla_mbx.c 	memcpy(fcport->port_name, pd->port_name, WWN_SIZE);
fcport           6391 drivers/scsi/qla2xxx/qla_mbx.c 	fcport->d_id.b.domain = pd->port_id[0];
fcport           6392 drivers/scsi/qla2xxx/qla_mbx.c 	fcport->d_id.b.area = pd->port_id[1];
fcport           6393 drivers/scsi/qla2xxx/qla_mbx.c 	fcport->d_id.b.al_pa = pd->port_id[2];
fcport           6394 drivers/scsi/qla2xxx/qla_mbx.c 	fcport->d_id.b.rsvd_1 = 0;
fcport           6396 drivers/scsi/qla2xxx/qla_mbx.c 	if (fcport->fc4f_nvme) {
fcport           6397 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->port_type = 0;
fcport           6399 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->port_type |= FCT_NVME_INITIATOR;
fcport           6401 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->port_type |= FCT_NVME_TARGET;
fcport           6403 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->port_type |= FCT_NVME_DISCOVERY;
fcport           6407 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->port_type = FCT_INITIATOR;
fcport           6409 drivers/scsi/qla2xxx/qla_mbx.c 			fcport->port_type = FCT_TARGET;
fcport           6412 drivers/scsi/qla2xxx/qla_mbx.c 	fcport->supported_classes = (pd->flags & PDF_CLASS_2) ?
fcport           6416 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->flags |= FCF_CONF_COMP_SUPPORTED;
fcport           6417 drivers/scsi/qla2xxx/qla_mbx.c 		fcport->conf_compl_supported = 1;
fcport            143 drivers/scsi/qla2xxx/qla_mid.c 	fc_port_t *fcport;
fcport            145 drivers/scsi/qla2xxx/qla_mid.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport            148 drivers/scsi/qla2xxx/qla_mid.c 		    fcport->loop_id, fcport->vha->vp_idx);
fcport            150 drivers/scsi/qla2xxx/qla_mid.c 		qla2x00_mark_device_lost(vha, fcport, 0, 0);
fcport            151 drivers/scsi/qla2xxx/qla_mid.c 		qla2x00_set_fcport_state(fcport, FCS_UNCONFIGURED);
fcport            160 drivers/scsi/qla2xxx/qla_mid.c 	fc_port_t *fcport;
fcport            167 drivers/scsi/qla2xxx/qla_mid.c 	list_for_each_entry(fcport, &vha->vp_fcports, list)
fcport            168 drivers/scsi/qla2xxx/qla_mid.c 		fcport->logout_on_delete = 0;
fcport            310 drivers/scsi/qla2xxx/qla_mid.c 	fc_port_t *fcport;
fcport            320 drivers/scsi/qla2xxx/qla_mid.c 		list_for_each_entry(fcport, &vha->vp_fcports, list)
fcport            321 drivers/scsi/qla2xxx/qla_mid.c 			fcport->logout_on_delete = 0;
fcport            732 drivers/scsi/qla2xxx/qla_mr.c qlafx00_abort_target(fc_port_t *fcport, uint64_t l, int tag)
fcport            734 drivers/scsi/qla2xxx/qla_mr.c 	return qla2x00_async_tm_cmd(fcport, TCF_TARGET_RESET, l, tag);
fcport            738 drivers/scsi/qla2xxx/qla_mr.c qlafx00_lun_reset(fc_port_t *fcport, uint64_t l, int tag)
fcport            740 drivers/scsi/qla2xxx/qla_mr.c 	return qla2x00_async_tm_cmd(fcport, TCF_LUN_RESET, l, tag);
fcport            747 drivers/scsi/qla2xxx/qla_mr.c 	struct fc_port *fcport;
fcport            751 drivers/scsi/qla2xxx/qla_mr.c 		list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport            752 drivers/scsi/qla2xxx/qla_mr.c 			if (fcport->port_type != FCT_TARGET)
fcport            755 drivers/scsi/qla2xxx/qla_mr.c 			ret = ha->isp_ops->target_reset(fcport, 0, 0);
fcport            759 drivers/scsi/qla2xxx/qla_mr.c 				    "d_id=%x.\n", ret, fcport->d_id.b24);
fcport           1124 drivers/scsi/qla2xxx/qla_mr.c 	fc_port_t	*fcport, *new_fcport;
fcport           1166 drivers/scsi/qla2xxx/qla_mr.c 		list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           1168 drivers/scsi/qla2xxx/qla_mr.c 			    fcport->port_name, WWN_SIZE))
fcport           1177 drivers/scsi/qla2xxx/qla_mr.c 			if (fcport->tgt_id == new_fcport->tgt_id &&
fcport           1178 drivers/scsi/qla2xxx/qla_mr.c 			    atomic_read(&fcport->state) == FCS_ONLINE)
fcport           1188 drivers/scsi/qla2xxx/qla_mr.c 			    __func__, fcport->tgt_id,
fcport           1189 drivers/scsi/qla2xxx/qla_mr.c 			    atomic_read(&fcport->state),
fcport           1190 drivers/scsi/qla2xxx/qla_mr.c 			    (unsigned long long)wwn_to_u64(fcport->node_name),
fcport           1191 drivers/scsi/qla2xxx/qla_mr.c 			    (unsigned long long)wwn_to_u64(fcport->port_name));
fcport           1202 drivers/scsi/qla2xxx/qla_mr.c 			if (atomic_read(&fcport->state) != FCS_ONLINE) {
fcport           1203 drivers/scsi/qla2xxx/qla_mr.c 				fcport->old_tgt_id = fcport->tgt_id;
fcport           1204 drivers/scsi/qla2xxx/qla_mr.c 				fcport->tgt_id = new_fcport->tgt_id;
fcport           1206 drivers/scsi/qla2xxx/qla_mr.c 				   "TGT-ID: New fcport Added: %p\n", fcport);
fcport           1207 drivers/scsi/qla2xxx/qla_mr.c 				qla2x00_update_fcport(vha, fcport);
fcport           1212 drivers/scsi/qla2xxx/qla_mr.c 				    fcport->old_tgt_id);
fcport           1213 drivers/scsi/qla2xxx/qla_mr.c 				qla2x00_mark_device_lost(vha, fcport, 0, 0);
fcport           1252 drivers/scsi/qla2xxx/qla_mr.c 	fc_port_t *fcport, *rmptemp;
fcport           1255 drivers/scsi/qla2xxx/qla_mr.c 	rval = qlafx00_fx_disc(vha, &vha->hw->mr.fcport,
fcport           1271 drivers/scsi/qla2xxx/qla_mr.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           1275 drivers/scsi/qla2xxx/qla_mr.c 		if (atomic_read(&fcport->state) == FCS_DEVICE_LOST) {
fcport           1276 drivers/scsi/qla2xxx/qla_mr.c 			if (fcport->port_type != FCT_INITIATOR)
fcport           1277 drivers/scsi/qla2xxx/qla_mr.c 				qla2x00_mark_device_lost(vha, fcport, 0, 0);
fcport           1284 drivers/scsi/qla2xxx/qla_mr.c 	list_for_each_entry_safe(fcport, rmptemp, &new_fcports, list) {
fcport           1288 drivers/scsi/qla2xxx/qla_mr.c 		qla2x00_update_fcport(vha, fcport);
fcport           1289 drivers/scsi/qla2xxx/qla_mr.c 		list_move_tail(&fcport->list, &vha->vp_fcports);
fcport           1293 drivers/scsi/qla2xxx/qla_mr.c 		    fcport->tgt_id,
fcport           1294 drivers/scsi/qla2xxx/qla_mr.c 		    (unsigned long long)wwn_to_u64(fcport->node_name),
fcport           1295 drivers/scsi/qla2xxx/qla_mr.c 		    (unsigned long long)wwn_to_u64(fcport->port_name));
fcport           1299 drivers/scsi/qla2xxx/qla_mr.c 	list_for_each_entry_safe(fcport, rmptemp, &new_fcports, list) {
fcport           1300 drivers/scsi/qla2xxx/qla_mr.c 		list_del(&fcport->list);
fcport           1301 drivers/scsi/qla2xxx/qla_mr.c 		kfree(fcport);
fcport           1358 drivers/scsi/qla2xxx/qla_mr.c 	fc_port_t *fcport;
fcport           1383 drivers/scsi/qla2xxx/qla_mr.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           1384 drivers/scsi/qla2xxx/qla_mr.c 		fcport->flags = 0;
fcport           1385 drivers/scsi/qla2xxx/qla_mr.c 		if (atomic_read(&fcport->state) == FCS_ONLINE)
fcport           1386 drivers/scsi/qla2xxx/qla_mr.c 			qla2x00_set_fcport_state(fcport, FCS_DEVICE_LOST);
fcport           1474 drivers/scsi/qla2xxx/qla_mr.c 		    &vha->hw->mr.fcport, FXDISC_REG_HOST_INFO))
fcport           1682 drivers/scsi/qla2xxx/qla_mr.c 	fc_port_t	*fcport;
fcport           1685 drivers/scsi/qla2xxx/qla_mr.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           1686 drivers/scsi/qla2xxx/qla_mr.c 		if (fcport->tgt_id == tgt_id) {
fcport           1690 drivers/scsi/qla2xxx/qla_mr.c 			    fcport, fcport->tgt_id, tgt_id);
fcport           1691 drivers/scsi/qla2xxx/qla_mr.c 			return fcport;
fcport           1700 drivers/scsi/qla2xxx/qla_mr.c 	fc_port_t	*fcport;
fcport           1705 drivers/scsi/qla2xxx/qla_mr.c 	fcport = qlafx00_get_fcport(vha, tgt_id);
fcport           1706 drivers/scsi/qla2xxx/qla_mr.c 	if (!fcport)
fcport           1709 drivers/scsi/qla2xxx/qla_mr.c 	qla2x00_mark_device_lost(vha, fcport, 0, 0);
fcport           1808 drivers/scsi/qla2xxx/qla_mr.c qlafx00_fx_disc(scsi_qla_host_t *vha, fc_port_t *fcport, uint16_t fx_type)
fcport           1818 drivers/scsi/qla2xxx/qla_mr.c 	sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
fcport           1839 drivers/scsi/qla2xxx/qla_mr.c 		fdisc->u.fxiocb.req_data = cpu_to_le32(fcport->port_id);
fcport           1845 drivers/scsi/qla2xxx/qla_mr.c 		fdisc->u.fxiocb.req_data = cpu_to_le32(fcport->tgt_id);
fcport           1976 drivers/scsi/qla2xxx/qla_mr.c 		memcpy(fcport->node_name, pinfo->tgt_node_wwnn, WWN_SIZE);
fcport           1977 drivers/scsi/qla2xxx/qla_mr.c 		memcpy(fcport->port_name, pinfo->tgt_node_wwpn, WWN_SIZE);
fcport           1978 drivers/scsi/qla2xxx/qla_mr.c 		fcport->port_type = FCT_TARGET;
fcport           2280 drivers/scsi/qla2xxx/qla_mr.c 	fc_port_t	*fcport;
fcport           2347 drivers/scsi/qla2xxx/qla_mr.c 	fcport = sp->fcport;
fcport           2384 drivers/scsi/qla2xxx/qla_mr.c 				ql_dbg(ql_dbg_io, fcport->vha, 0x3050,
fcport           2397 drivers/scsi/qla2xxx/qla_mr.c 			ql_dbg(ql_dbg_io, fcport->vha, 0x3051,
fcport           2423 drivers/scsi/qla2xxx/qla_mr.c 				ql_dbg(ql_dbg_io, fcport->vha, 0x3052,
fcport           2436 drivers/scsi/qla2xxx/qla_mr.c 				ql_dbg(ql_dbg_io, fcport->vha, 0x3053,
fcport           2453 drivers/scsi/qla2xxx/qla_mr.c 			ql_dbg(ql_dbg_io, fcport->vha, 0x3054,
fcport           2461 drivers/scsi/qla2xxx/qla_mr.c 			ql_dbg(ql_dbg_io, fcport->vha, 0x3055,
fcport           2477 drivers/scsi/qla2xxx/qla_mr.c 				ql_dbg(ql_dbg_io, fcport->vha, 0x3056,
fcport           2511 drivers/scsi/qla2xxx/qla_mr.c 		ql_dbg(ql_dbg_io, fcport->vha, 0x3057,
fcport           2513 drivers/scsi/qla2xxx/qla_mr.c 		    atomic_read(&fcport->state));
fcport           2515 drivers/scsi/qla2xxx/qla_mr.c 		if (atomic_read(&fcport->state) == FCS_ONLINE)
fcport           2516 drivers/scsi/qla2xxx/qla_mr.c 			qla2x00_mark_device_lost(fcport->vha, fcport, 1, 1);
fcport           2529 drivers/scsi/qla2xxx/qla_mr.c 		ql_dbg(ql_dbg_io, fcport->vha, 0x3058,
fcport           2535 drivers/scsi/qla2xxx/qla_mr.c 		    cp->device->id, cp->device->lun, fcport->tgt_id,
fcport           3144 drivers/scsi/qla2xxx/qla_mr.c 	lcmd_pkt.tgt_idx = cpu_to_le16(sp->fcport->tgt_id);
fcport           3211 drivers/scsi/qla2xxx/qla_mr.c 	tm_iocb.tgt_id = cpu_to_le16(sp->fcport->tgt_id);
fcport           3238 drivers/scsi/qla2xxx/qla_mr.c 	abt_iocb.tgt_id_sts = cpu_to_le16(sp->fcport->tgt_id);
fcport            474 drivers/scsi/qla2xxx/qla_mr.h 	fc_port_t       fcport;		/* fcport used for requests
fcport             15 drivers/scsi/qla2xxx/qla_nvme.c int qla_nvme_register_remote(struct scsi_qla_host *vha, struct fc_port *fcport)
fcport             34 drivers/scsi/qla2xxx/qla_nvme.c 	if (!(fcport->nvme_prli_service_param &
fcport             36 drivers/scsi/qla2xxx/qla_nvme.c 		(fcport->nvme_flag & NVME_FLAG_REGISTERED))
fcport             39 drivers/scsi/qla2xxx/qla_nvme.c 	fcport->nvme_flag &= ~NVME_FLAG_RESETTING;
fcport             42 drivers/scsi/qla2xxx/qla_nvme.c 	req.port_name = wwn_to_u64(fcport->port_name);
fcport             43 drivers/scsi/qla2xxx/qla_nvme.c 	req.node_name = wwn_to_u64(fcport->node_name);
fcport             47 drivers/scsi/qla2xxx/qla_nvme.c 	if (fcport->nvme_prli_service_param & NVME_PRLI_SP_INITIATOR)
fcport             50 drivers/scsi/qla2xxx/qla_nvme.c 	if (fcport->nvme_prli_service_param & NVME_PRLI_SP_TARGET)
fcport             53 drivers/scsi/qla2xxx/qla_nvme.c 	if (fcport->nvme_prli_service_param & NVME_PRLI_SP_DISCOVERY)
fcport             56 drivers/scsi/qla2xxx/qla_nvme.c 	req.port_id = fcport->d_id.b24;
fcport             64 drivers/scsi/qla2xxx/qla_nvme.c 	    &fcport->nvme_remote_port);
fcport             72 drivers/scsi/qla2xxx/qla_nvme.c 	rport = fcport->nvme_remote_port->private;
fcport             73 drivers/scsi/qla2xxx/qla_nvme.c 	rport->fcport = fcport;
fcport             75 drivers/scsi/qla2xxx/qla_nvme.c 	fcport->nvme_flag |= NVME_FLAG_REGISTERED;
fcport            214 drivers/scsi/qla2xxx/qla_nvme.c 	fc_port_t *fcport = sp->fcport;
fcport            215 drivers/scsi/qla2xxx/qla_nvme.c 	struct qla_hw_data *ha = fcport->vha->hw;
fcport            218 drivers/scsi/qla2xxx/qla_nvme.c 	ql_dbg(ql_dbg_io, fcport->vha, 0xffff,
fcport            220 drivers/scsi/qla2xxx/qla_nvme.c 	       __func__, sp, sp->handle, fcport, fcport->deleted);
fcport            222 drivers/scsi/qla2xxx/qla_nvme.c 	if (!ha->flags.fw_started && fcport->deleted)
fcport            226 drivers/scsi/qla2xxx/qla_nvme.c 		ql_log(ql_log_info, sp->fcport->vha, 0xffff,
fcport            235 drivers/scsi/qla2xxx/qla_nvme.c 	ql_dbg(ql_dbg_io, fcport->vha, 0x212b,
fcport            238 drivers/scsi/qla2xxx/qla_nvme.c 	    sp, sp->handle, fcport, rval);
fcport            271 drivers/scsi/qla2xxx/qla_nvme.c 	fc_port_t *fcport = qla_rport->fcport;
fcport            280 drivers/scsi/qla2xxx/qla_nvme.c 	if (!fcport || (fcport && fcport->deleted))
fcport            283 drivers/scsi/qla2xxx/qla_nvme.c 	vha = fcport->vha;
fcport            290 drivers/scsi/qla2xxx/qla_nvme.c 	sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
fcport            364 drivers/scsi/qla2xxx/qla_nvme.c 	struct scsi_qla_host *vha = sp->fcport->vha;
fcport            435 drivers/scsi/qla2xxx/qla_nvme.c 		    (sp->fcport->nvme_prli_service_param &
fcport            438 drivers/scsi/qla2xxx/qla_nvme.c 			    sp->fcport->nvme_first_burst_size) ||
fcport            439 drivers/scsi/qla2xxx/qla_nvme.c 				(sp->fcport->nvme_first_burst_size == 0))
fcport            450 drivers/scsi/qla2xxx/qla_nvme.c 	cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id);
fcport            451 drivers/scsi/qla2xxx/qla_nvme.c 	cmd_pkt->port_id[0] = sp->fcport->d_id.b.al_pa;
fcport            452 drivers/scsi/qla2xxx/qla_nvme.c 	cmd_pkt->port_id[1] = sp->fcport->d_id.b.area;
fcport            453 drivers/scsi/qla2xxx/qla_nvme.c 	cmd_pkt->port_id[2] = sp->fcport->d_id.b.domain;
fcport            454 drivers/scsi/qla2xxx/qla_nvme.c 	cmd_pkt->vp_index = sp->fcport->vha->vp_idx;
fcport            529 drivers/scsi/qla2xxx/qla_nvme.c 	fc_port_t *fcport;
fcport            538 drivers/scsi/qla2xxx/qla_nvme.c 	fcport = qla_rport->fcport;
fcport            540 drivers/scsi/qla2xxx/qla_nvme.c 	if (!qpair || !fcport || (qpair && !qpair->fw_started) ||
fcport            541 drivers/scsi/qla2xxx/qla_nvme.c 	    (fcport && fcport->deleted))
fcport            544 drivers/scsi/qla2xxx/qla_nvme.c 	vha = fcport->vha;
fcport            552 drivers/scsi/qla2xxx/qla_nvme.c 	if (fcport->nvme_flag & NVME_FLAG_RESETTING)
fcport            556 drivers/scsi/qla2xxx/qla_nvme.c 	sp = qla2xxx_get_qpair_sp(vha, qpair, fcport, GFP_ATOMIC);
fcport            599 drivers/scsi/qla2xxx/qla_nvme.c 	fc_port_t *fcport;
fcport            602 drivers/scsi/qla2xxx/qla_nvme.c 	fcport = qla_rport->fcport;
fcport            603 drivers/scsi/qla2xxx/qla_nvme.c 	fcport->nvme_remote_port = NULL;
fcport            604 drivers/scsi/qla2xxx/qla_nvme.c 	fcport->nvme_flag &= ~NVME_FLAG_REGISTERED;
fcport            605 drivers/scsi/qla2xxx/qla_nvme.c 	fcport->nvme_flag &= ~NVME_FLAG_DELETING;
fcport            606 drivers/scsi/qla2xxx/qla_nvme.c 	ql_log(ql_log_info, fcport->vha, 0x2110,
fcport            608 drivers/scsi/qla2xxx/qla_nvme.c 	    fcport, fcport->port_name);
fcport            609 drivers/scsi/qla2xxx/qla_nvme.c 	complete(&fcport->nvme_del_done);
fcport            631 drivers/scsi/qla2xxx/qla_nvme.c void qla_nvme_unregister_remote_port(struct fc_port *fcport)
fcport            640 drivers/scsi/qla2xxx/qla_nvme.c 	    __func__, fcport, fcport->port_name);
fcport            642 drivers/scsi/qla2xxx/qla_nvme.c 	if (test_bit(PFLG_DRIVER_REMOVING, &fcport->vha->pci_flags))
fcport            643 drivers/scsi/qla2xxx/qla_nvme.c 		nvme_fc_set_remoteport_devloss(fcport->nvme_remote_port, 0);
fcport            645 drivers/scsi/qla2xxx/qla_nvme.c 	init_completion(&fcport->nvme_del_done);
fcport            646 drivers/scsi/qla2xxx/qla_nvme.c 	ret = nvme_fc_unregister_remoteport(fcport->nvme_remote_port);
fcport            648 drivers/scsi/qla2xxx/qla_nvme.c 		ql_log(ql_log_info, fcport->vha, 0x2114,
fcport            651 drivers/scsi/qla2xxx/qla_nvme.c 	wait_for_completion(&fcport->nvme_del_done);
fcport             40 drivers/scsi/qla2xxx/qla_nvme.h 	struct fc_port *fcport;
fcport            712 drivers/scsi/qla2xxx/qla_os.c 	struct qla_hw_data *ha = sp->fcport->vha->hw;
fcport            804 drivers/scsi/qla2xxx/qla_os.c 	fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
fcport            862 drivers/scsi/qla2xxx/qla_os.c 	if (!fcport) {
fcport            867 drivers/scsi/qla2xxx/qla_os.c 	if (atomic_read(&fcport->state) != FCS_ONLINE) {
fcport            868 drivers/scsi/qla2xxx/qla_os.c 		if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD ||
fcport            872 drivers/scsi/qla2xxx/qla_os.c 			    atomic_read(&fcport->state),
fcport            884 drivers/scsi/qla2xxx/qla_os.c 	if (fcport->retry_delay_timestamp == 0) {
fcport            886 drivers/scsi/qla2xxx/qla_os.c 	} else if (time_after(jiffies, fcport->retry_delay_timestamp))
fcport            887 drivers/scsi/qla2xxx/qla_os.c 		fcport->retry_delay_timestamp = 0;
fcport            892 drivers/scsi/qla2xxx/qla_os.c 	qla2xxx_init_sp(sp, vha, vha->hw->base_qpair, fcport);
fcport            928 drivers/scsi/qla2xxx/qla_os.c 	fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
fcport            944 drivers/scsi/qla2xxx/qla_os.c 	if (!fcport) {
fcport            949 drivers/scsi/qla2xxx/qla_os.c 	if (atomic_read(&fcport->state) != FCS_ONLINE) {
fcport            950 drivers/scsi/qla2xxx/qla_os.c 		if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD ||
fcport            954 drivers/scsi/qla2xxx/qla_os.c 			    atomic_read(&fcport->state),
fcport            966 drivers/scsi/qla2xxx/qla_os.c 	if (fcport->retry_delay_timestamp == 0) {
fcport            968 drivers/scsi/qla2xxx/qla_os.c 	} else if (time_after(jiffies, fcport->retry_delay_timestamp))
fcport            969 drivers/scsi/qla2xxx/qla_os.c 		fcport->retry_delay_timestamp = 0;
fcport            974 drivers/scsi/qla2xxx/qla_os.c 	qla2xxx_init_sp(sp, vha, qpair, fcport);
fcport           1252 drivers/scsi/qla2xxx/qla_os.c 	if ((sp->fcport && sp->fcport->deleted) || !qpair)
fcport           1381 drivers/scsi/qla2xxx/qla_os.c 	fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
fcport           1384 drivers/scsi/qla2xxx/qla_os.c 	if (!fcport) {
fcport           1392 drivers/scsi/qla2xxx/qla_os.c 	if (fcport->deleted)
fcport           1406 drivers/scsi/qla2xxx/qla_os.c 	if (do_reset(fcport, cmd->device->lun, 1)
fcport           1485 drivers/scsi/qla2xxx/qla_os.c 	fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata;
fcport           1500 drivers/scsi/qla2xxx/qla_os.c 	if (!fcport) {
fcport           1645 drivers/scsi/qla2xxx/qla_os.c 	struct fc_port *fcport;
fcport           1653 drivers/scsi/qla2xxx/qla_os.c 		list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           1654 drivers/scsi/qla2xxx/qla_os.c 			if (fcport->port_type != FCT_TARGET)
fcport           1657 drivers/scsi/qla2xxx/qla_os.c 			ret = ha->isp_ops->target_reset(fcport, 0, 0);
fcport           1661 drivers/scsi/qla2xxx/qla_os.c 				    "d_id=%x.\n", ret, fcport->d_id.b24);
fcport           3107 drivers/scsi/qla2xxx/qla_os.c 	ha->mr.fcport.vha = base_vha;
fcport           3108 drivers/scsi/qla2xxx/qla_os.c 	ha->mr.fcport.port_type = FCT_UNKNOWN;
fcport           3109 drivers/scsi/qla2xxx/qla_os.c 	ha->mr.fcport.loop_id = FC_NO_LOOP_ID;
fcport           3110 drivers/scsi/qla2xxx/qla_os.c 	qla2x00_set_fcport_state(&ha->mr.fcport, FCS_UNCONFIGURED);
fcport           3111 drivers/scsi/qla2xxx/qla_os.c 	ha->mr.fcport.supported_classes = FC_COS_UNSPECIFIED;
fcport           3112 drivers/scsi/qla2xxx/qla_os.c 	ha->mr.fcport.scan_state = 1;
fcport           3387 drivers/scsi/qla2xxx/qla_os.c 			&base_vha->hw->mr.fcport, FXDISC_GET_CONFIG_INFO);
fcport           3414 drivers/scsi/qla2xxx/qla_os.c 			&base_vha->hw->mr.fcport, FXDISC_GET_PORT_INFO);
fcport           3418 drivers/scsi/qla2xxx/qla_os.c 			&base_vha->hw->mr.fcport, FXDISC_REG_HOST_INFO);
fcport           3828 drivers/scsi/qla2xxx/qla_os.c 	fc_port_t *fcport, *tfcport;
fcport           3830 drivers/scsi/qla2xxx/qla_os.c 	list_for_each_entry_safe(fcport, tfcport, &vha->vp_fcports, list)
fcport           3831 drivers/scsi/qla2xxx/qla_os.c 		qla2x00_free_fcport(fcport);
fcport           3835 drivers/scsi/qla2xxx/qla_os.c qla2x00_schedule_rport_del(struct scsi_qla_host *vha, fc_port_t *fcport,
fcport           3842 drivers/scsi/qla2xxx/qla_os.c 	if (!fcport->rport)
fcport           3845 drivers/scsi/qla2xxx/qla_os.c 	rport = fcport->rport;
fcport           3849 drivers/scsi/qla2xxx/qla_os.c 		fcport->drport = rport;
fcport           3858 drivers/scsi/qla2xxx/qla_os.c 			ql_dbg(ql_dbg_disc, fcport->vha, 0x2109,
fcport           3860 drivers/scsi/qla2xxx/qla_os.c 			    __func__, fcport->port_name, rport,
fcport           3877 drivers/scsi/qla2xxx/qla_os.c void qla2x00_mark_device_lost(scsi_qla_host_t *vha, fc_port_t *fcport,
fcport           3881 drivers/scsi/qla2xxx/qla_os.c 		qla2x00_set_fcport_state(fcport, FCS_DEVICE_LOST);
fcport           3882 drivers/scsi/qla2xxx/qla_os.c 		qla2x00_schedule_rport_del(vha, fcport, defer);
fcport           3886 drivers/scsi/qla2xxx/qla_os.c 	if (atomic_read(&fcport->state) == FCS_ONLINE &&
fcport           3887 drivers/scsi/qla2xxx/qla_os.c 	    vha->vp_idx == fcport->vha->vp_idx) {
fcport           3888 drivers/scsi/qla2xxx/qla_os.c 		qla2x00_set_fcport_state(fcport, FCS_DEVICE_LOST);
fcport           3889 drivers/scsi/qla2xxx/qla_os.c 		qla2x00_schedule_rport_del(vha, fcport, defer);
fcport           3895 drivers/scsi/qla2xxx/qla_os.c 	if (atomic_read(&fcport->state) != FCS_DEVICE_DEAD)
fcport           3896 drivers/scsi/qla2xxx/qla_os.c 		qla2x00_set_fcport_state(fcport, FCS_DEVICE_LOST);
fcport           3920 drivers/scsi/qla2xxx/qla_os.c 	fc_port_t *fcport;
fcport           3925 drivers/scsi/qla2xxx/qla_os.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           3926 drivers/scsi/qla2xxx/qla_os.c 		fcport->scan_state = 0;
fcport           3927 drivers/scsi/qla2xxx/qla_os.c 		qlt_schedule_sess_for_deletion(fcport);
fcport           3929 drivers/scsi/qla2xxx/qla_os.c 		if (vha->vp_idx != 0 && vha->vp_idx != fcport->vha->vp_idx)
fcport           3936 drivers/scsi/qla2xxx/qla_os.c 		if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD)
fcport           3938 drivers/scsi/qla2xxx/qla_os.c 		if (atomic_read(&fcport->state) == FCS_ONLINE) {
fcport           3939 drivers/scsi/qla2xxx/qla_os.c 			qla2x00_set_fcport_state(fcport, FCS_DEVICE_LOST);
fcport           3941 drivers/scsi/qla2xxx/qla_os.c 				qla2x00_schedule_rport_del(vha, fcport, defer);
fcport           3942 drivers/scsi/qla2xxx/qla_os.c 			else if (vha->vp_idx == fcport->vha->vp_idx)
fcport           3943 drivers/scsi/qla2xxx/qla_os.c 				qla2x00_schedule_rport_del(vha, fcport, defer);
fcport           4930 drivers/scsi/qla2xxx/qla_os.c     fc_port_t *fcport, uint16_t *data)		\
fcport           4938 drivers/scsi/qla2xxx/qla_os.c 	e->u.logio.fcport = fcport;		\
fcport           4943 drivers/scsi/qla2xxx/qla_os.c 	fcport->flags |= FCF_ASYNC_ACTIVE;	\
fcport           5001 drivers/scsi/qla2xxx/qla_os.c void qla24xx_sched_upd_fcport(fc_port_t *fcport)
fcport           5005 drivers/scsi/qla2xxx/qla_os.c 	if (IS_SW_RESV_ADDR(fcport->d_id))
fcport           5008 drivers/scsi/qla2xxx/qla_os.c 	spin_lock_irqsave(&fcport->vha->work_lock, flags);
fcport           5009 drivers/scsi/qla2xxx/qla_os.c 	if (fcport->disc_state == DSC_UPD_FCPORT) {
fcport           5010 drivers/scsi/qla2xxx/qla_os.c 		spin_unlock_irqrestore(&fcport->vha->work_lock, flags);
fcport           5013 drivers/scsi/qla2xxx/qla_os.c 	fcport->jiffies_at_registration = jiffies;
fcport           5014 drivers/scsi/qla2xxx/qla_os.c 	fcport->sec_since_registration = 0;
fcport           5015 drivers/scsi/qla2xxx/qla_os.c 	fcport->next_disc_state = DSC_DELETED;
fcport           5016 drivers/scsi/qla2xxx/qla_os.c 	fcport->disc_state = DSC_UPD_FCPORT;
fcport           5017 drivers/scsi/qla2xxx/qla_os.c 	spin_unlock_irqrestore(&fcport->vha->work_lock, flags);
fcport           5019 drivers/scsi/qla2xxx/qla_os.c 	queue_work(system_unbound_wq, &fcport->reg_work);
fcport           5026 drivers/scsi/qla2xxx/qla_os.c 	fc_port_t *fcport =  NULL, *tfcp;
fcport           5036 drivers/scsi/qla2xxx/qla_os.c 	fcport = qla2x00_find_fcport_by_wwpn(vha, e->u.new_sess.port_name, 1);
fcport           5037 drivers/scsi/qla2xxx/qla_os.c 	if (fcport) {
fcport           5038 drivers/scsi/qla2xxx/qla_os.c 		fcport->d_id = e->u.new_sess.id;
fcport           5040 drivers/scsi/qla2xxx/qla_os.c 			fcport->fw_login_state = DSC_LS_PLOGI_PEND;
fcport           5041 drivers/scsi/qla2xxx/qla_os.c 			memcpy(fcport->node_name,
fcport           5044 drivers/scsi/qla2xxx/qla_os.c 			qlt_plogi_ack_link(vha, pla, fcport, QLT_PLOGI_LINK_SAME_WWN);
fcport           5052 drivers/scsi/qla2xxx/qla_os.c 		fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
fcport           5053 drivers/scsi/qla2xxx/qla_os.c 		if (fcport) {
fcport           5054 drivers/scsi/qla2xxx/qla_os.c 			fcport->d_id = e->u.new_sess.id;
fcport           5055 drivers/scsi/qla2xxx/qla_os.c 			fcport->flags |= FCF_FABRIC_DEVICE;
fcport           5056 drivers/scsi/qla2xxx/qla_os.c 			fcport->fw_login_state = DSC_LS_PLOGI_PEND;
fcport           5058 drivers/scsi/qla2xxx/qla_os.c 				fcport->fc4_type = FC4_TYPE_FCP_SCSI;
fcport           5061 drivers/scsi/qla2xxx/qla_os.c 				fcport->fc4_type = FC4_TYPE_OTHER;
fcport           5062 drivers/scsi/qla2xxx/qla_os.c 				fcport->fc4f_nvme = FC4_TYPE_NVME;
fcport           5065 drivers/scsi/qla2xxx/qla_os.c 			memcpy(fcport->port_name, e->u.new_sess.port_name,
fcport           5069 drivers/scsi/qla2xxx/qla_os.c 				fcport->n2n_flag = 1;
fcport           5096 drivers/scsi/qla2xxx/qla_os.c 			list_add_tail(&fcport->list, &vha->vp_fcports);
fcport           5100 drivers/scsi/qla2xxx/qla_os.c 			qlt_plogi_ack_link(vha, pla, fcport,
fcport           5107 drivers/scsi/qla2xxx/qla_os.c 	if (fcport) {
fcport           5108 drivers/scsi/qla2xxx/qla_os.c 		fcport->id_changed = 1;
fcport           5109 drivers/scsi/qla2xxx/qla_os.c 		fcport->scan_state = QLA_FCPORT_FOUND;
fcport           5110 drivers/scsi/qla2xxx/qla_os.c 		fcport->chip_reset = vha->hw->base_qpair->chip_reset;
fcport           5111 drivers/scsi/qla2xxx/qla_os.c 		memcpy(fcport->node_name, e->u.new_sess.node_name, WWN_SIZE);
fcport           5117 drivers/scsi/qla2xxx/qla_os.c 				fcport->fw_login_state = DSC_LS_PRLI_PEND;
fcport           5118 drivers/scsi/qla2xxx/qla_os.c 				fcport->local = 0;
fcport           5119 drivers/scsi/qla2xxx/qla_os.c 				fcport->loop_id =
fcport           5122 drivers/scsi/qla2xxx/qla_os.c 				fcport->fw_login_state = DSC_LS_PRLI_PEND;
fcport           5128 drivers/scsi/qla2xxx/qla_os.c 					fcport->conf_compl_supported = 1;
fcport           5131 drivers/scsi/qla2xxx/qla_os.c 					fcport->port_type = FCT_INITIATOR;
fcport           5133 drivers/scsi/qla2xxx/qla_os.c 					fcport->port_type = FCT_TARGET;
fcport           5142 drivers/scsi/qla2xxx/qla_os.c 			if (tfcp && (tfcp != fcport)) {
fcport           5155 drivers/scsi/qla2xxx/qla_os.c 					fcport->login_pause = 1;
fcport           5156 drivers/scsi/qla2xxx/qla_os.c 					tfcp->conflict = fcport;
fcport           5159 drivers/scsi/qla2xxx/qla_os.c 					fcport->login_pause = 1;
fcport           5160 drivers/scsi/qla2xxx/qla_os.c 					tfcp->conflict = fcport;
fcport           5170 drivers/scsi/qla2xxx/qla_os.c 				fcport->flags &= ~FCF_FABRIC_DEVICE;
fcport           5171 drivers/scsi/qla2xxx/qla_os.c 				fcport->keep_nport_handle = 1;
fcport           5173 drivers/scsi/qla2xxx/qla_os.c 					fcport->fc4f_nvme = 1;
fcport           5174 drivers/scsi/qla2xxx/qla_os.c 					fcport->n2n_flag = 1;
fcport           5176 drivers/scsi/qla2xxx/qla_os.c 				fcport->fw_login_state = 0;
fcport           5181 drivers/scsi/qla2xxx/qla_os.c 				qla24xx_fcport_handle_login(vha, fcport);
fcport           5187 drivers/scsi/qla2xxx/qla_os.c 		qla2x00_free_fcport(fcport);
fcport           5232 drivers/scsi/qla2xxx/qla_os.c 			qla2x00_async_login(vha, e->u.logio.fcport,
fcport           5236 drivers/scsi/qla2xxx/qla_os.c 			rc = qla2x00_async_logout(vha, e->u.logio.fcport);
fcport           5239 drivers/scsi/qla2xxx/qla_os.c 			qla2x00_async_logout_done(vha, e->u.logio.fcport,
fcport           5243 drivers/scsi/qla2xxx/qla_os.c 			qla2x00_async_adisc(vha, e->u.logio.fcport,
fcport           5265 drivers/scsi/qla2xxx/qla_os.c 			qla24xx_async_gpdb(vha, e->u.fcport.fcport,
fcport           5266 drivers/scsi/qla2xxx/qla_os.c 			    e->u.fcport.opt);
fcport           5269 drivers/scsi/qla2xxx/qla_os.c 			qla24xx_async_prli(vha, e->u.fcport.fcport);
fcport           5272 drivers/scsi/qla2xxx/qla_os.c 			qla24xx_async_gpsc(vha, e->u.fcport.fcport);
fcport           5275 drivers/scsi/qla2xxx/qla_os.c 			qla24xx_async_gnl(vha, e->u.fcport.fcport);
fcport           5281 drivers/scsi/qla2xxx/qla_os.c 			rc = qla2x00_async_prlo(vha, e->u.logio.fcport);
fcport           5284 drivers/scsi/qla2xxx/qla_os.c 			qla2x00_async_prlo_done(vha, e->u.logio.fcport,
fcport           5298 drivers/scsi/qla2xxx/qla_os.c 			qla24xx_async_gnnid(vha, e->u.fcport.fcport);
fcport           5301 drivers/scsi/qla2xxx/qla_os.c 			qla24xx_async_gfpnid(vha, e->u.fcport.fcport);
fcport           5307 drivers/scsi/qla2xxx/qla_os.c 			qla_do_iidma_work(vha, e->u.fcport.fcport);
fcport           5311 drivers/scsi/qla2xxx/qla_os.c 			    e->u.fcport.fcport, false);
fcport           5350 drivers/scsi/qla2xxx/qla_os.c 	fc_port_t       *fcport;
fcport           5354 drivers/scsi/qla2xxx/qla_os.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport           5359 drivers/scsi/qla2xxx/qla_os.c 		if (atomic_read(&fcport->state) != FCS_ONLINE &&
fcport           5360 drivers/scsi/qla2xxx/qla_os.c 		    fcport->login_retry) {
fcport           5361 drivers/scsi/qla2xxx/qla_os.c 			if (fcport->scan_state != QLA_FCPORT_FOUND ||
fcport           5362 drivers/scsi/qla2xxx/qla_os.c 			    fcport->disc_state == DSC_LOGIN_COMPLETE)
fcport           5365 drivers/scsi/qla2xxx/qla_os.c 			if (fcport->flags & (FCF_ASYNC_SENT|FCF_ASYNC_ACTIVE) ||
fcport           5366 drivers/scsi/qla2xxx/qla_os.c 				fcport->disc_state == DSC_DELETE_PEND) {
fcport           5371 drivers/scsi/qla2xxx/qla_os.c 					ea.fcport = fcport;
fcport           5375 drivers/scsi/qla2xxx/qla_os.c 					fcport->login_retry--;
fcport           5378 drivers/scsi/qla2xxx/qla_os.c 						fcport);
fcport           5380 drivers/scsi/qla2xxx/qla_os.c 						fcport->old_loop_id =
fcport           5381 drivers/scsi/qla2xxx/qla_os.c 						    fcport->loop_id;
fcport           5384 drivers/scsi/qla2xxx/qla_os.c 						    fcport->loop_id);
fcport           5386 drivers/scsi/qla2xxx/qla_os.c 							(vha, fcport);
fcport           5393 drivers/scsi/qla2xxx/qla_os.c 						    fcport->login_retry,
fcport           5394 drivers/scsi/qla2xxx/qla_os.c 						    fcport->loop_id);
fcport           5396 drivers/scsi/qla2xxx/qla_os.c 						fcport->login_retry = 0;
fcport           5399 drivers/scsi/qla2xxx/qla_os.c 					if (fcport->login_retry == 0 &&
fcport           5401 drivers/scsi/qla2xxx/qla_os.c 						qla2x00_clear_loop_id(fcport);
fcport           6259 drivers/scsi/qla2xxx/qla_os.c 				    &base_vha->hw->mr.fcport,
fcport           6607 drivers/scsi/qla2xxx/qla_os.c 					sfcp = sp->fcport;
fcport           6845 drivers/scsi/qla2xxx/qla_os.c 	fc_port_t *fcport;
fcport           6895 drivers/scsi/qla2xxx/qla_os.c 	list_for_each_entry(fcport, &vha->vp_fcports, list)
fcport           6896 drivers/scsi/qla2xxx/qla_os.c 		fcport->flags &= ~(FCF_LOGIN_NEEDED | FCF_ASYNC_SENT);
fcport           6902 drivers/scsi/qla2xxx/qla_os.c 		list_for_each_entry(fcport, &vp->vp_fcports, list)
fcport           6903 drivers/scsi/qla2xxx/qla_os.c 			fcport->flags &= ~(FCF_LOGIN_NEEDED | FCF_ASYNC_SENT);
fcport            129 drivers/scsi/qla2xxx/qla_target.c 	fc_port_t *fcport, bool local);
fcport            547 drivers/scsi/qla2xxx/qla_target.c static int qla24xx_post_nack_work(struct scsi_qla_host *vha, fc_port_t *fcport,
fcport            556 drivers/scsi/qla2xxx/qla_target.c 	e->u.nack.fcport = fcport;
fcport            569 drivers/scsi/qla2xxx/qla_target.c 	    sp->name, res, sp->fcport->port_name, sp->type);
fcport            572 drivers/scsi/qla2xxx/qla_target.c 	sp->fcport->flags &= ~FCF_ASYNC_SENT;
fcport            573 drivers/scsi/qla2xxx/qla_target.c 	sp->fcport->chip_reset = vha->hw->base_qpair->chip_reset;
fcport            577 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->login_gen++;
fcport            578 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->fw_login_state = DSC_LS_PLOGI_COMP;
fcport            579 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->logout_on_delete = 1;
fcport            580 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->plogi_nack_done_deadline = jiffies + HZ;
fcport            581 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->send_els_logo = 0;
fcport            585 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->fw_login_state = DSC_LS_PRLI_COMP;
fcport            586 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->deleted = 0;
fcport            587 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->send_els_logo = 0;
fcport            589 drivers/scsi/qla2xxx/qla_target.c 		if (!sp->fcport->login_succ &&
fcport            590 drivers/scsi/qla2xxx/qla_target.c 		    !IS_SW_RESV_ADDR(sp->fcport->d_id)) {
fcport            591 drivers/scsi/qla2xxx/qla_target.c 			sp->fcport->login_succ = 1;
fcport            595 drivers/scsi/qla2xxx/qla_target.c 			qla24xx_sched_upd_fcport(sp->fcport);
fcport            598 drivers/scsi/qla2xxx/qla_target.c 			sp->fcport->login_retry = 0;
fcport            599 drivers/scsi/qla2xxx/qla_target.c 			sp->fcport->disc_state = DSC_LOGIN_COMPLETE;
fcport            600 drivers/scsi/qla2xxx/qla_target.c 			sp->fcport->deleted = 0;
fcport            601 drivers/scsi/qla2xxx/qla_target.c 			sp->fcport->logout_on_delete = 1;
fcport            606 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->login_gen++;
fcport            607 drivers/scsi/qla2xxx/qla_target.c 		sp->fcport->fw_login_state = DSC_LS_PORT_UNAVAIL;
fcport            608 drivers/scsi/qla2xxx/qla_target.c 		qlt_logo_completion_handler(sp->fcport, MBS_COMMAND_COMPLETE);
fcport            616 drivers/scsi/qla2xxx/qla_target.c int qla24xx_async_notify_ack(scsi_qla_host_t *vha, fc_port_t *fcport,
fcport            623 drivers/scsi/qla2xxx/qla_target.c 	fcport->flags |= FCF_ASYNC_SENT;
fcport            626 drivers/scsi/qla2xxx/qla_target.c 		fcport->fw_login_state = DSC_LS_PLOGI_PEND;
fcport            630 drivers/scsi/qla2xxx/qla_target.c 		fcport->fw_login_state = DSC_LS_PRLI_PEND;
fcport            631 drivers/scsi/qla2xxx/qla_target.c 		fcport->deleted = 0;
fcport            635 drivers/scsi/qla2xxx/qla_target.c 		fcport->fw_login_state = DSC_LS_LOGO_PEND;
fcport            640 drivers/scsi/qla2xxx/qla_target.c 	sp = qla2x00_get_sp(vha, fcport, GFP_ATOMIC);
fcport            655 drivers/scsi/qla2xxx/qla_target.c 	    sp->name, fcport->port_name, sp->handle, c);
fcport            666 drivers/scsi/qla2xxx/qla_target.c 	fcport->flags &= ~FCF_ASYNC_SENT;
fcport            676 drivers/scsi/qla2xxx/qla_target.c 		t = e->u.nack.fcport;
fcport            680 drivers/scsi/qla2xxx/qla_target.c 		t = qlt_create_sess(vha, e->u.nack.fcport, 0);
fcport            686 drivers/scsi/qla2xxx/qla_target.c 			vha->hw->tgt.tgt_ops->put_sess(e->u.nack.fcport);
fcport            690 drivers/scsi/qla2xxx/qla_target.c 	qla24xx_async_notify_ack(vha, e->u.nack.fcport,
fcport            696 drivers/scsi/qla2xxx/qla_target.c 	fc_port_t *fcport = container_of(work, struct fc_port, del_work);
fcport            697 drivers/scsi/qla2xxx/qla_target.c 	struct qla_hw_data *ha = fcport->vha->hw;
fcport            699 drivers/scsi/qla2xxx/qla_target.c 	if (fcport->se_sess) {
fcport            700 drivers/scsi/qla2xxx/qla_target.c 		ha->tgt.tgt_ops->shutdown_sess(fcport);
fcport            701 drivers/scsi/qla2xxx/qla_target.c 		ha->tgt.tgt_ops->put_sess(fcport);
fcport            703 drivers/scsi/qla2xxx/qla_target.c 		qlt_unreg_sess(fcport);
fcport            710 drivers/scsi/qla2xxx/qla_target.c void qlt_fc_port_added(struct scsi_qla_host *vha, fc_port_t *fcport)
fcport            714 drivers/scsi/qla2xxx/qla_target.c 	struct fc_port *sess = fcport;
fcport            726 drivers/scsi/qla2xxx/qla_target.c 	if (fcport->disc_state == DSC_DELETE_PEND) {
fcport            735 drivers/scsi/qla2xxx/qla_target.c 		sess = qlt_create_sess(vha, fcport, false);
fcport            740 drivers/scsi/qla2xxx/qla_target.c 		if (fcport->fw_login_state == DSC_LS_PRLI_COMP) {
fcport            761 drivers/scsi/qla2xxx/qla_target.c 		ha->tgt.tgt_ops->update_sess(sess, fcport->d_id,
fcport            762 drivers/scsi/qla2xxx/qla_target.c 		    fcport->loop_id,
fcport            763 drivers/scsi/qla2xxx/qla_target.c 		    (fcport->flags & FCF_CONF_COMP_SUPPORTED));
fcport            770 drivers/scsi/qla2xxx/qla_target.c 		    fcport->port_name, sess->loop_id);
fcport            824 drivers/scsi/qla2xxx/qla_target.c 	fc_port_t *fcport = pla->fcport;
fcport            847 drivers/scsi/qla2xxx/qla_target.c 	fcport->loop_id = loop_id;
fcport            848 drivers/scsi/qla2xxx/qla_target.c 	fcport->d_id = port_id;
fcport            850 drivers/scsi/qla2xxx/qla_target.c 		qla24xx_post_nack_work(vha, fcport, iocb, SRB_NACK_PLOGI);
fcport            852 drivers/scsi/qla2xxx/qla_target.c 		qla24xx_post_nack_work(vha, fcport, iocb, SRB_NACK_PRLI);
fcport            854 drivers/scsi/qla2xxx/qla_target.c 	list_for_each_entry(fcport, &vha->vp_fcports, list) {
fcport            855 drivers/scsi/qla2xxx/qla_target.c 		if (fcport->plogi_link[QLT_PLOGI_LINK_SAME_WWN] == pla)
fcport            856 drivers/scsi/qla2xxx/qla_target.c 			fcport->plogi_link[QLT_PLOGI_LINK_SAME_WWN] = NULL;
fcport            857 drivers/scsi/qla2xxx/qla_target.c 		if (fcport->plogi_link[QLT_PLOGI_LINK_CONFLICT] == pla)
fcport            858 drivers/scsi/qla2xxx/qla_target.c 			fcport->plogi_link[QLT_PLOGI_LINK_CONFLICT] = NULL;
fcport            896 drivers/scsi/qla2xxx/qla_target.c 		pla->fcport = sess;
fcport           1338 drivers/scsi/qla2xxx/qla_target.c 	fc_port_t *fcport,
fcport           1342 drivers/scsi/qla2xxx/qla_target.c 	struct fc_port *sess = fcport;
fcport           1348 drivers/scsi/qla2xxx/qla_target.c 	if (fcport->se_sess) {
fcport           1355 drivers/scsi/qla2xxx/qla_target.c 		return fcport;
fcport           1371 drivers/scsi/qla2xxx/qla_target.c 	    &fcport->port_name[0], sess) < 0) {
fcport           1374 drivers/scsi/qla2xxx/qla_target.c 		    vha->vp_idx, fcport->port_name);
fcport           1377 drivers/scsi/qla2xxx/qla_target.c 		kref_init(&fcport->sess_kref);
fcport           1405 drivers/scsi/qla2xxx/qla_target.c 	    vha->vp_idx, local ?  "local " : "", fcport->port_name,
fcport           1406 drivers/scsi/qla2xxx/qla_target.c 	    fcport->loop_id, sess->d_id.b.domain, sess->d_id.b.area,
fcport           1417 drivers/scsi/qla2xxx/qla_target.c qlt_fc_port_deleted(struct scsi_qla_host *vha, fc_port_t *fcport, int max_gen)
fcport           1420 drivers/scsi/qla2xxx/qla_target.c 	struct fc_port *sess = fcport;
fcport           4536 drivers/scsi/qla2xxx/qla_target.c void qlt_logo_completion_handler(fc_port_t *fcport, int rc)
fcport           4539 drivers/scsi/qla2xxx/qla_target.c 		ql_dbg(ql_dbg_tgt_mgt, fcport->vha, 0xf093,
fcport           4544 drivers/scsi/qla2xxx/qla_target.c 			fcport->se_sess,
fcport           4545 drivers/scsi/qla2xxx/qla_target.c 			fcport,
fcport           4546 drivers/scsi/qla2xxx/qla_target.c 			fcport->port_name, fcport->loop_id,
fcport           4547 drivers/scsi/qla2xxx/qla_target.c 			fcport->d_id.b.domain, fcport->d_id.b.area,
fcport           4548 drivers/scsi/qla2xxx/qla_target.c 			fcport->d_id.b.al_pa, rc);
fcport           4551 drivers/scsi/qla2xxx/qla_target.c 	fcport->logout_completed = 1;
fcport           6011 drivers/scsi/qla2xxx/qla_target.c 	fc_port_t *fcport, *tfcp, *del;
fcport           6016 drivers/scsi/qla2xxx/qla_target.c 	fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
fcport           6017 drivers/scsi/qla2xxx/qla_target.c 	if (!fcport) {
fcport           6024 drivers/scsi/qla2xxx/qla_target.c 	fcport->loop_id = loop_id;
fcport           6026 drivers/scsi/qla2xxx/qla_target.c 	rc = qla24xx_gpdb_wait(vha, fcport, 0);
fcport           6032 drivers/scsi/qla2xxx/qla_target.c 		kfree(fcport);
fcport           6038 drivers/scsi/qla2xxx/qla_target.c 	tfcp = qla2x00_find_fcport_by_wwpn(vha, fcport->port_name, 1);
fcport           6041 drivers/scsi/qla2xxx/qla_target.c 		tfcp->d_id = fcport->d_id;
fcport           6042 drivers/scsi/qla2xxx/qla_target.c 		tfcp->port_type = fcport->port_type;
fcport           6043 drivers/scsi/qla2xxx/qla_target.c 		tfcp->supported_classes = fcport->supported_classes;
fcport           6044 drivers/scsi/qla2xxx/qla_target.c 		tfcp->flags |= fcport->flags;
fcport           6047 drivers/scsi/qla2xxx/qla_target.c 		del = fcport;
fcport           6048 drivers/scsi/qla2xxx/qla_target.c 		fcport = tfcp;
fcport           6051 drivers/scsi/qla2xxx/qla_target.c 			fcport->flags |= FCF_FABRIC_DEVICE;
fcport           6053 drivers/scsi/qla2xxx/qla_target.c 		list_add_tail(&fcport->list, &vha->vp_fcports);
fcport           6054 drivers/scsi/qla2xxx/qla_target.c 		if (!IS_SW_RESV_ADDR(fcport->d_id))
fcport           6056 drivers/scsi/qla2xxx/qla_target.c 		fcport->login_gen++;
fcport           6057 drivers/scsi/qla2xxx/qla_target.c 		fcport->disc_state = DSC_LOGIN_COMPLETE;
fcport           6058 drivers/scsi/qla2xxx/qla_target.c 		fcport->login_succ = 1;
fcport           6062 drivers/scsi/qla2xxx/qla_target.c 	fcport->deleted = 0;
fcport           6070 drivers/scsi/qla2xxx/qla_target.c 				qla24xx_sched_upd_fcport(fcport);
fcport           6074 drivers/scsi/qla2xxx/qla_target.c 				   __func__, __LINE__, fcport->port_name, vha->fcport_count);
fcport           6075 drivers/scsi/qla2xxx/qla_target.c 				qla24xx_post_gpsc_work(vha, fcport);
fcport           6087 drivers/scsi/qla2xxx/qla_target.c 	return fcport;
fcport           6095 drivers/scsi/qla2xxx/qla_target.c 	fc_port_t *fcport = NULL;
fcport           6136 drivers/scsi/qla2xxx/qla_target.c 	fcport = qlt_get_port_database(vha, loop_id);
fcport           6137 drivers/scsi/qla2xxx/qla_target.c 	if (!fcport) {
fcport           6153 drivers/scsi/qla2xxx/qla_target.c 	sess = qlt_create_sess(vha, fcport, true);