Lines Matching refs:fcport
15 struct fc_port *fcport = container_of(work, typeof(*fcport), in qla2xxx_free_fcport_work() local
18 qla2x00_free_fcport(fcport); in qla2xxx_free_fcport_work()
65 INIT_WORK(&sp->fcport->free_work, qla2xxx_free_fcport_work); in qla2x00_bsg_sp_free()
66 queue_work(ha->wq, &sp->fcport->free_work); in qla2x00_bsg_sp_free()
259 fc_port_t *fcport = NULL; in qla2x00_process_els() local
271 fcport = *(fc_port_t **) rport->dd_data; in qla2x00_process_els()
314 if (qla2x00_fabric_login(vha, fcport, &nextlid)) { in qla2x00_process_els()
317 fcport->d_id.b24); in qla2x00_process_els()
327 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla2x00_process_els()
328 if (!fcport) { in qla2x00_process_els()
334 fcport->vha = vha; in qla2x00_process_els()
335 fcport->d_id.b.al_pa = in qla2x00_process_els()
337 fcport->d_id.b.area = in qla2x00_process_els()
339 fcport->d_id.b.domain = in qla2x00_process_els()
341 fcport->loop_id = in qla2x00_process_els()
342 (fcport->d_id.b.al_pa == 0xFD) ? in qla2x00_process_els()
377 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); in qla2x00_process_els()
396 bsg_request->rqst_data.h_els.command_code, fcport->loop_id, in qla2x00_process_els()
397 fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa); in qla2x00_process_els()
418 qla2x00_free_fcport(fcport); in qla2x00_process_els()
448 struct fc_port *fcport; in qla2x00_process_ct() local
509 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla2x00_process_ct()
510 if (!fcport) { in qla2x00_process_ct()
518 fcport->vha = vha; in qla2x00_process_ct()
519 fcport->d_id.b.al_pa = bsg_request->rqst_data.h_ct.port_id[0]; in qla2x00_process_ct()
520 fcport->d_id.b.area = bsg_request->rqst_data.h_ct.port_id[1]; in qla2x00_process_ct()
521 fcport->d_id.b.domain = bsg_request->rqst_data.h_ct.port_id[2]; in qla2x00_process_ct()
522 fcport->loop_id = loop_id; in qla2x00_process_ct()
525 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); in qla2x00_process_ct()
544 fcport->loop_id, fcport->d_id.b.domain, fcport->d_id.b.area, in qla2x00_process_ct()
545 fcport->d_id.b.al_pa); in qla2x00_process_ct()
558 qla2x00_free_fcport(fcport); in qla2x00_process_ct()
1309 fc_port_t *fcport = NULL; in qla24xx_iidma() local
1326 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla24xx_iidma()
1327 if (fcport->port_type != FCT_TARGET) in qla24xx_iidma()
1331 fcport->port_name, sizeof(fcport->port_name))) in qla24xx_iidma()
1344 if (atomic_read(&fcport->state) != FCS_ONLINE) { in qla24xx_iidma()
1350 if (fcport->flags & FCF_LOGIN_NEEDED) { in qla24xx_iidma()
1352 "Remote port not logged in flags = 0x%x.\n", fcport->flags); in qla24xx_iidma()
1357 rval = qla2x00_set_idma_speed(vha, fcport->loop_id, in qla24xx_iidma()
1360 rval = qla2x00_get_idma_speed(vha, fcport->loop_id, in qla24xx_iidma()
1366 "%04x %x %04x %04x.\n", fcport->port_name, in qla24xx_iidma()
1367 rval, fcport->fp_speed, mb[0], mb[1]); in qla24xx_iidma()
1973 struct fc_port *fcport; in qlafx00_mgmt_cmd() local
2025 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qlafx00_mgmt_cmd()
2026 if (!fcport) { in qlafx00_mgmt_cmd()
2034 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); in qlafx00_mgmt_cmd()
2043 fcport->vha = vha; in qlafx00_mgmt_cmd()
2044 fcport->loop_id = le32_to_cpu(piocb_rqst->dataword); in qlafx00_mgmt_cmd()
2055 type, piocb_rqst->func_type, fcport->loop_id); in qlafx00_mgmt_cmd()
2068 qla2x00_free_fcport(fcport); in qlafx00_mgmt_cmd()