Lines Matching defs:fcport

16 	struct fc_port *fcport = container_of(work, typeof(*fcport),
19 qla2x00_free_fcport(fcport);
79 INIT_WORK(&sp->fcport->free_work, qla2xxx_free_fcport_work);
80 queue_work(ha->wq, &sp->fcport->free_work);
273 fc_port_t *fcport = NULL;
290 fcport = *(fc_port_t **) rport->dd_data;
336 if (atomic_read(&fcport->state) != FCS_ONLINE) {
339 fcport->d_id.b24);
344 /* Allocate a dummy fcport structure, since functions
346 * specific information from fcport structure. For Host based
347 * ELS commands there will be no fcport structure allocated
349 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
350 if (!fcport) {
356 /* Initialize all required fields of fcport */
357 fcport->vha = vha;
358 fcport->d_id.b.al_pa =
360 fcport->d_id.b.area =
362 fcport->d_id.b.domain =
364 fcport->loop_id =
365 (fcport->d_id.b.al_pa == 0xFD) ?
400 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
419 bsg_request->rqst_data.h_els.command_code, fcport->loop_id,
420 fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa);
441 qla2x00_free_fcport(fcport);
471 struct fc_port *fcport;
527 /* Allocate a dummy fcport structure, since functions preparing the
529 * from fcport structure. For Host based ELS commands there will be
530 * no fcport structure allocated
532 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
533 if (!fcport) {
535 "Failed to allocate fcport.\n");
540 /* Initialize all required fields of fcport */
541 fcport->vha = vha;
542 fcport->d_id.b.al_pa = bsg_request->rqst_data.h_ct.port_id[0];
543 fcport->d_id.b.area = bsg_request->rqst_data.h_ct.port_id[1];
544 fcport->d_id.b.domain = bsg_request->rqst_data.h_ct.port_id[2];
545 fcport->loop_id = loop_id;
548 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
567 fcport->loop_id, fcport->d_id.b.domain, fcport->d_id.b.area,
568 fcport->d_id.b.al_pa);
581 qla2x00_free_fcport(fcport);
1332 fc_port_t *fcport = NULL;
1349 list_for_each_entry(fcport, &vha->vp_fcports, list) {
1350 if (fcport->port_type != FCT_TARGET)
1354 fcport->port_name, sizeof(fcport->port_name)))
1367 if (atomic_read(&fcport->state) != FCS_ONLINE) {
1373 if (fcport->flags & FCF_LOGIN_NEEDED) {
1375 "Remote port not logged in flags = 0x%x.\n", fcport->flags);
1380 rval = qla2x00_set_idma_speed(vha, fcport->loop_id,
1383 rval = qla2x00_get_idma_speed(vha, fcport->loop_id,
1389 "%04x %x %04x %04x.\n", fcport->port_name,
1390 rval, fcport->fp_speed, mb[0], mb[1]);
1872 /* Initialize all required fields of fcport */
1890 /* Assign the self login loop id to fcport */
1996 struct fc_port *fcport;
2043 /* Allocate a dummy fcport structure, since functions preparing the
2045 * from fcport structure. For Host based ELS commands there will be
2046 * no fcport structure allocated
2048 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
2049 if (!fcport) {
2051 "Failed to allocate fcport.\n");
2057 sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);
2065 /* Initialize all required fields of fcport */
2066 fcport->vha = vha;
2067 fcport->loop_id = le32_to_cpu(piocb_rqst->dataword);
2078 type, piocb_rqst->func_type, fcport->loop_id);
2091 qla2x00_free_fcport(fcport);
2723 fc_port_t *fcport = NULL;
2725 list_for_each_entry(fcport, &vha->vp_fcports, list) {
2726 if (fcport->rport->number == tgt_num)
2727 return fcport->rport;