Lines Matching refs:fcport
15 struct fc_port *fcport = container_of(work, typeof(*fcport),
18 qla2x00_free_fcport(fcport);
65 INIT_WORK(&sp->fcport->free_work, qla2xxx_free_fcport_work);
66 queue_work(ha->wq, &sp->fcport->free_work);
259 fc_port_t *fcport = NULL;
275 fcport = *(fc_port_t **) rport->dd_data;
318 if (qla2x00_fabric_login(vha, fcport, &nextlid)) {
321 fcport->d_id.b24);
326 /* Allocate a dummy fcport structure, since functions
328 * specific information from fcport structure. For Host based
329 * ELS commands there will be no fcport structure allocated
331 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
332 if (!fcport) {
337 /* Initialize all required fields of fcport */
338 fcport->vha = vha;
339 fcport->d_id.b.al_pa =
341 fcport->d_id.b.area =
343 fcport->d_id.b.domain =
345 fcport->loop_id =
346 (fcport->d_id.b.al_pa == 0xFD) ?
381 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
400 bsg_request->rqst_data.h_els.command_code, fcport->loop_id,
401 fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa);
422 qla2x00_free_fcport(fcport);
452 struct fc_port *fcport;
508 /* Allocate a dummy fcport structure, since functions preparing the
510 * from fcport structure. For Host based ELS commands there will be
511 * no fcport structure allocated
513 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
514 if (!fcport) {
516 "Failed to allocate fcport.\n");
521 /* Initialize all required fields of fcport */
522 fcport->vha = vha;
523 fcport->d_id.b.al_pa = bsg_request->rqst_data.h_ct.port_id[0];
524 fcport->d_id.b.area = bsg_request->rqst_data.h_ct.port_id[1];
525 fcport->d_id.b.domain = bsg_request->rqst_data.h_ct.port_id[2];
526 fcport->loop_id = loop_id;
529 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
548 fcport->loop_id, fcport->d_id.b.domain, fcport->d_id.b.area,
549 fcport->d_id.b.al_pa);
562 qla2x00_free_fcport(fcport);
1313 fc_port_t *fcport = NULL;
1330 list_for_each_entry(fcport, &vha->vp_fcports, list) {
1331 if (fcport->port_type != FCT_TARGET)
1335 fcport->port_name, sizeof(fcport->port_name)))
1348 if (atomic_read(&fcport->state) != FCS_ONLINE) {
1354 if (fcport->flags & FCF_LOGIN_NEEDED) {
1356 "Remote port not logged in flags = 0x%x.\n", fcport->flags);
1361 rval = qla2x00_set_idma_speed(vha, fcport->loop_id,
1364 rval = qla2x00_get_idma_speed(vha, fcport->loop_id,
1370 "%04x %x %04x %04x.\n", fcport->port_name,
1371 rval, fcport->fp_speed, mb[0], mb[1]);
1853 /* Initialize all required fields of fcport */
1871 /* Assign the self login loop id to fcport */
1977 struct fc_port *fcport;
2024 /* Allocate a dummy fcport structure, since functions preparing the
2026 * from fcport structure. For Host based ELS commands there will be
2027 * no fcport structure allocated
2029 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
2030 if (!fcport) {
2032 "Failed to allocate fcport.\n");
2038 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
2046 /* Initialize all required fields of fcport */
2047 fcport->vha = vha;
2048 fcport->loop_id = le32_to_cpu(piocb_rqst->dataword);
2059 type, piocb_rqst->func_type, fcport->loop_id);
2072 qla2x00_free_fcport(fcport);