• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/qla2xxx/

Lines Matching defs:fcport

15 qla2x00_get_ctx_bsg_sp(scsi_qla_host_t *vha, fc_port_t *fcport, size_t size)
32 sp->fcport = fcport;
232 fc_port_t *fcport = NULL;
245 fcport = *(fc_port_t **) rport->dd_data;
283 if (qla2x00_fabric_login(vha, fcport, &nextlid)) {
286 fcport->d_id.b24));
291 /* Allocate a dummy fcport structure, since functions
293 * specific information from fcport structure. For Host based
294 * ELS commands there will be no fcport structure allocated
296 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
297 if (!fcport) {
302 /* Initialize all required fields of fcport */
303 fcport->vha = vha;
304 fcport->vp_idx = vha->vp_idx;
305 fcport->d_id.b.al_pa =
307 fcport->d_id.b.area =
309 fcport->d_id.b.domain =
311 fcport->loop_id =
312 (fcport->d_id.b.al_pa == 0xFD) ?
351 sp = qla2x00_get_ctx_bsg_sp(vha, fcport, sizeof(struct srb_ctx));
370 fcport->loop_id, fcport->d_id.b.domain, fcport->d_id.b.area,
371 fcport->d_id.b.al_pa));
391 kfree(fcport);
406 struct fc_port *fcport;
460 /* Allocate a dummy fcport structure, since functions preparing the
462 * from fcport structure. For Host based ELS commands there will be
463 * no fcport structure allocated
465 fcport = qla2x00_alloc_fcport(vha, GFP_KERNEL);
466 if (!fcport) {
471 /* Initialize all required fields of fcport */
472 fcport->vha = vha;
473 fcport->vp_idx = vha->vp_idx;
474 fcport->d_id.b.al_pa = bsg_job->request->rqst_data.h_ct.port_id[0];
475 fcport->d_id.b.area = bsg_job->request->rqst_data.h_ct.port_id[1];
476 fcport->d_id.b.domain = bsg_job->request->rqst_data.h_ct.port_id[2];
477 fcport->loop_id = loop_id;
480 sp = qla2x00_get_ctx_bsg_sp(vha, fcport, sizeof(struct srb_ctx));
495 fcport->loop_id, fcport->d_id.b.domain, fcport->d_id.b.area,
496 fcport->d_id.b.al_pa));
508 kfree(fcport);
1210 fc_port_t *fcport = NULL;
1241 list_for_each_entry(fcport, &vha->vp_fcports, list) {
1242 if (fcport->port_type != FCT_TARGET)
1246 fcport->port_name, sizeof(fcport->port_name)))
1251 if (!fcport) {
1257 if (fcport->loop_id == FC_NO_LOOP_ID) {
1260 __func__, vha->host_no, fcport->loop_id));
1264 if (fcport->flags & FCF_LOGIN_NEEDED) {
1267 __func__, vha->host_no, fcport->flags));
1272 rval = qla2x00_set_idma_speed(vha, fcport->loop_id,
1275 rval = qla2x00_get_idma_speed(vha, fcport->loop_id,
1282 vha->host_no, fcport->port_name[0],
1283 fcport->port_name[1],
1284 fcport->port_name[2], fcport->port_name[3],
1285 fcport->port_name[4], fcport->port_name[5],
1286 fcport->port_name[6], fcport->port_name[7], rval,
1287 fcport->fp_speed, mb[0], mb[1]));
1420 kfree(sp->fcport);