Lines Matching refs:fcport

16 	struct fc_port *fcport = container_of(work, typeof(*fcport),  in qla2xxx_free_fcport_work()  local
19 qla2x00_free_fcport(fcport); in qla2xxx_free_fcport_work()
79 INIT_WORK(&sp->fcport->free_work, qla2xxx_free_fcport_work); in qla2x00_bsg_sp_free()
80 queue_work(ha->wq, &sp->fcport->free_work); in qla2x00_bsg_sp_free()
273 fc_port_t *fcport = NULL; in qla2x00_process_els() local
286 fcport = *(fc_port_t **) rport->dd_data; in qla2x00_process_els()
332 if (atomic_read(&fcport->state) != FCS_ONLINE) { in qla2x00_process_els()
335 fcport->d_id.b24); in qla2x00_process_els()
345 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla2x00_process_els()
346 if (!fcport) { in qla2x00_process_els()
353 fcport->vha = vha; in qla2x00_process_els()
354 fcport->d_id.b.al_pa = in qla2x00_process_els()
356 fcport->d_id.b.area = in qla2x00_process_els()
358 fcport->d_id.b.domain = in qla2x00_process_els()
360 fcport->loop_id = in qla2x00_process_els()
361 (fcport->d_id.b.al_pa == 0xFD) ? in qla2x00_process_els()
396 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); in qla2x00_process_els()
415 bsg_request->rqst_data.h_els.command_code, fcport->loop_id, in qla2x00_process_els()
416 fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa); in qla2x00_process_els()
437 qla2x00_free_fcport(fcport); in qla2x00_process_els()
467 struct fc_port *fcport; in qla2x00_process_ct() local
528 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qla2x00_process_ct()
529 if (!fcport) { in qla2x00_process_ct()
537 fcport->vha = vha; in qla2x00_process_ct()
538 fcport->d_id.b.al_pa = bsg_request->rqst_data.h_ct.port_id[0]; in qla2x00_process_ct()
539 fcport->d_id.b.area = bsg_request->rqst_data.h_ct.port_id[1]; in qla2x00_process_ct()
540 fcport->d_id.b.domain = bsg_request->rqst_data.h_ct.port_id[2]; in qla2x00_process_ct()
541 fcport->loop_id = loop_id; in qla2x00_process_ct()
544 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); in qla2x00_process_ct()
563 fcport->loop_id, fcport->d_id.b.domain, fcport->d_id.b.area, in qla2x00_process_ct()
564 fcport->d_id.b.al_pa); in qla2x00_process_ct()
577 qla2x00_free_fcport(fcport); in qla2x00_process_ct()
1328 fc_port_t *fcport = NULL; in qla24xx_iidma() local
1345 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla24xx_iidma()
1346 if (fcport->port_type != FCT_TARGET) in qla24xx_iidma()
1350 fcport->port_name, sizeof(fcport->port_name))) in qla24xx_iidma()
1363 if (atomic_read(&fcport->state) != FCS_ONLINE) { in qla24xx_iidma()
1369 if (fcport->flags & FCF_LOGIN_NEEDED) { in qla24xx_iidma()
1371 "Remote port not logged in flags = 0x%x.\n", fcport->flags); in qla24xx_iidma()
1376 rval = qla2x00_set_idma_speed(vha, fcport->loop_id, in qla24xx_iidma()
1379 rval = qla2x00_get_idma_speed(vha, fcport->loop_id, in qla24xx_iidma()
1385 "%04x %x %04x %04x.\n", fcport->port_name, in qla24xx_iidma()
1386 rval, fcport->fp_speed, mb[0], mb[1]); in qla24xx_iidma()
1992 struct fc_port *fcport; in qlafx00_mgmt_cmd() local
2044 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL); in qlafx00_mgmt_cmd()
2045 if (!fcport) { in qlafx00_mgmt_cmd()
2053 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); in qlafx00_mgmt_cmd()
2062 fcport->vha = vha; in qlafx00_mgmt_cmd()
2063 fcport->loop_id = le32_to_cpu(piocb_rqst->dataword); in qlafx00_mgmt_cmd()
2074 type, piocb_rqst->func_type, fcport->loop_id); in qlafx00_mgmt_cmd()
2087 qla2x00_free_fcport(fcport); in qlafx00_mgmt_cmd()
2719 fc_port_t *fcport = NULL; in qla2xxx_find_rport() local
2721 list_for_each_entry(fcport, &vha->vp_fcports, list) { in qla2xxx_find_rport()
2722 if (fcport->rport->number == tgt_num) in qla2xxx_find_rport()
2723 return fcport->rport; in qla2xxx_find_rport()