• 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/lpfc/

Lines Matching defs:vport

118 	struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
119 struct lpfc_hba *phba = vport->phba;
132 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
133 struct lpfc_hba *phba = vport->phba;
151 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
152 struct lpfc_hba *phba = vport->phba;
163 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
164 struct lpfc_hba *phba = vport->phba;
175 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
176 struct lpfc_hba *phba = vport->phba;
212 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
213 struct lpfc_hba *phba = vport->phba;
235 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
236 struct lpfc_hba *phba = vport->phba;
253 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
254 struct lpfc_hba *phba = vport->phba;
272 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
273 struct lpfc_hba *phba = vport->phba;
291 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
292 struct lpfc_hba *phba = vport->phba;
309 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
310 struct lpfc_hba *phba = vport->phba;
329 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
330 struct lpfc_hba *phba = vport->phba;
348 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
349 struct lpfc_hba *phba = vport->phba;
369 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
370 struct lpfc_hba *phba = vport->phba;
390 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
391 struct lpfc_hba *phba = vport->phba;
412 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
413 struct lpfc_hba *phba = vport->phba;
435 switch (vport->port_state) {
467 if (vport->fc_flag & FC_PUBLIC_LOOP)
474 if (vport->fc_flag & FC_FABRIC)
503 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
504 struct lpfc_hba *phba = vport->phba;
529 * vport counts.
538 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
541 vport->fc_map_cnt + vport->fc_unmap_cnt);
561 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
562 struct lpfc_hba *phba = vport->phba;
566 if ((vport->fc_flag & FC_OFFLINE_MODE) ||
730 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
731 struct lpfc_hba *phba = vport->phba;
757 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
758 struct lpfc_hba *phba = vport->phba;
776 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
777 struct lpfc_hba *phba = vport->phba;
810 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
811 struct lpfc_hba *phba = vport->phba;
968 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
969 struct lpfc_hba *phba = vport->phba;
996 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
997 struct lpfc_hba *phba = vport->phba;
1024 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1025 struct lpfc_hba *phba = vport->phba;
1052 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1053 struct lpfc_hba *phba = vport->phba;
1080 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1081 struct lpfc_hba *phba = vport->phba;
1108 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1109 struct lpfc_hba *phba = vport->phba;
1126 * the id of the vport.
1135 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1136 struct lpfc_hba *phba = vport->phba;
1140 if (vport->port_type == LPFC_PHYSICAL_PORT)
1142 return snprintf(buf, PAGE_SIZE, "NPIV Virtual (VPI %d)\n", vport->vpi);
1161 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1162 struct lpfc_hba *phba = vport->phba;
1186 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1187 struct lpfc_hba *phba = vport->phba;
1255 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1256 struct lpfc_hba *phba = vport->phba;
1274 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1275 struct lpfc_hba *phba = vport->phba;
1300 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
1301 struct lpfc_hba *phba = vport->phba;\
1328 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
1329 struct lpfc_hba *phba = vport->phba;\
1405 * lpfc_param_store - Set a vport attribute value
1431 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
1432 struct lpfc_hba *phba = vport->phba;\
1464 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
1466 val = vport->cfg_##attr;\
1467 return snprintf(buf, PAGE_SIZE, "%d\n", vport->cfg_##attr);\
1491 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
1493 val = vport->cfg_##attr;\
1494 return snprintf(buf, PAGE_SIZE, "%#x\n", vport->cfg_##attr);\
1498 * lpfc_vport_param_init - Initialize a vport cfg attribute
1517 lpfc_##attr##_init(struct lpfc_vport *vport, uint val) \
1520 vport->cfg_##attr = val;\
1523 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, \
1526 vport->cfg_##attr = default;\
1531 * lpfc_vport_param_set - Set a vport cfg attribute
1549 lpfc_##attr##_set(struct lpfc_vport *vport, uint val) \
1552 vport->cfg_##attr = val;\
1555 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT, \
1562 * lpfc_vport_param_store - Set a vport attribute
1584 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;\
1590 if (lpfc_##attr##_set(vport, val) == 0) \
1740 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1741 struct lpfc_hba *phba = vport->phba;
1784 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1785 struct lpfc_hba *phba = vport->phba;
1809 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
1810 struct lpfc_hba *phba = vport->phba;
2067 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
2069 return snprintf(buf, PAGE_SIZE, "%d\n", vport->cfg_devloss_tmo);
2074 * @vport: lpfc vport structure pointer.
2088 lpfc_nodev_tmo_init(struct lpfc_vport *vport, int val)
2090 if (vport->cfg_devloss_tmo != LPFC_DEF_DEVLOSS_TMO) {
2091 vport->cfg_nodev_tmo = vport->cfg_devloss_tmo;
2093 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
2101 vport->cfg_nodev_tmo = val;
2102 vport->cfg_devloss_tmo = val;
2105 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
2109 vport->cfg_nodev_tmo = LPFC_DEF_DEVLOSS_TMO;
2115 * @vport: lpfc vport structure pointer.
2118 * Update all the ndlp's dev loss tmo with the vport devloss tmo value.
2121 lpfc_update_rport_devloss_tmo(struct lpfc_vport *vport)
2126 shost = lpfc_shost_from_vport(vport);
2128 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp)
2130 ndlp->rport->dev_loss_tmo = vport->cfg_devloss_tmo;
2135 * lpfc_nodev_tmo_set - Set the vport nodev tmo and devloss tmo values
2136 * @vport: lpfc vport structure pointer.
2140 * If the devloss tmo is already set or the vport dev loss tmo has changed
2150 lpfc_nodev_tmo_set(struct lpfc_vport *vport, int val)
2152 if (vport->dev_loss_tmo_changed ||
2154 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
2160 vport->cfg_nodev_tmo = val;
2161 vport->cfg_devloss_tmo = val;
2162 lpfc_update_rport_devloss_tmo(vport);
2165 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
2191 * lpfc_devloss_tmo_set - Sets vport nodev tmo, devloss tmo values, changed bit
2192 * @vport: lpfc vport structure pointer.
2196 * If val is in a valid range then set the vport nodev tmo,
2197 * devloss tmo, also set the vport dev loss tmo changed flag.
2205 lpfc_devloss_tmo_set(struct lpfc_vport *vport, int val)
2208 vport->cfg_nodev_tmo = val;
2209 vport->cfg_devloss_tmo = val;
2210 vport->dev_loss_tmo_changed = 1;
2211 lpfc_update_rport_devloss_tmo(vport);
2215 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
2297 * lpfc_restrict_login_init - Set the vport restrict login flag
2298 * @vport: lpfc vport structure pointer.
2303 * the vport restrict login to one.
2312 lpfc_restrict_login_init(struct lpfc_vport *vport, int val)
2315 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
2319 vport->cfg_restrict_login = 1;
2322 if (vport->port_type == LPFC_PHYSICAL_PORT) {
2323 vport->cfg_restrict_login = 0;
2326 vport->cfg_restrict_login = val;
2331 * lpfc_restrict_login_set - Set the vport restrict login flag
2332 * @vport: lpfc vport structure pointer.
2337 * the vport restrict login to one.
2347 lpfc_restrict_login_set(struct lpfc_vport *vport, int val)
2350 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
2354 vport->cfg_restrict_login = 1;
2357 if (vport->port_type == LPFC_PHYSICAL_PORT && val != 0) {
2358 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
2361 vport->cfg_restrict_login = 0;
2364 vport->cfg_restrict_login = val;
2424 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
2425 struct lpfc_hba *phba = vport->phba;
2478 * sysfs file report the mageability of the vport.
2485 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
2486 if (vport->vport_flag & STATIC_VPORT)
2524 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
2525 struct lpfc_hba *phba = vport->phba;
2569 /* Block the data collection for every vport */
2610 lpfc_free_bucket(vport);
2611 vport->stat_data_enabled = 0;
2627 if (vport->stat_data_enabled) {
2631 lpfc_alloc_bucket(vport);
2632 vport->stat_data_enabled = 1;
2639 if (vport->stat_data_enabled == 0) {
2643 lpfc_free_bucket(vport);
2644 vport->stat_data_enabled = 0;
2651 || !vport->stat_data_enabled)
2654 vport->stat_data_blocked = 1;
2655 lpfc_vport_reset_stat_data(vport);
2656 vport->stat_data_blocked = 0;
2678 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
2679 struct lpfc_hba *phba = vport->phba;
2700 vport->stat_data_enabled, vport->stat_data_blocked,
2762 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
2763 struct lpfc_hba *phba = vport->phba;
2770 if (!vport->stat_data_enabled || vport->stat_data_blocked
2775 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
2859 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
2860 struct lpfc_hba *phba = vport->phba;
2985 struct lpfc_vport *vport = (struct lpfc_vport *)shost->hostdata;
2986 struct lpfc_hba *phba = vport->phba;
3101 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3102 struct lpfc_hba *phba = vport->phba;
3153 lpfc_max_scsicmpl_time_set(struct lpfc_vport *vport, int val)
3155 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
3158 if (val == vport->cfg_max_scsicmpl_time)
3162 vport->cfg_max_scsicmpl_time = val;
3165 list_for_each_entry_safe(ndlp, next_ndlp, &vport->fc_nodes, nlp_listp) {
3170 ndlp->cmd_qdepth = vport->cfg_tgt_queue_depth;
3486 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3487 struct lpfc_hba *phba = vport->phba;
3500 if (!(vport->fc_flag & FC_OFFLINE_MODE)) {
3541 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3542 struct lpfc_hba *phba = vport->phba;
3626 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3627 struct lpfc_hba *phba = vport->phba;
3705 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3706 struct lpfc_hba *phba = vport->phba;
3748 if (!(vport->fc_flag & FC_OFFLINE_MODE)) {
3812 phba->sysfs_mbox.mbox->vport = vport;
3823 if ((vport->fc_flag & FC_OFFLINE_MODE) ||
3882 * @vport: address of lpfc vport structure.
3889 lpfc_alloc_sysfs_attr(struct lpfc_vport *vport)
3891 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
3898 if (error || vport->port_type == LPFC_NPIV_PORT)
3923 * @vport: address of lpfc vport structure.
3926 lpfc_free_sysfs_attr(struct lpfc_vport *vport)
3928 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
3932 if (vport->port_type == LPFC_NPIV_PORT)
3944 * lpfc_get_host_port_id - Copy the vport DID into the scsi host port id
3950 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3953 fc_host_port_id(shost) = vport->fc_myDID;
3963 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3964 struct lpfc_hba *phba = vport->phba;
3968 if (vport->port_type == LPFC_NPIV_PORT) {
3972 if (vport->fc_flag & FC_PUBLIC_LOOP)
3977 if (vport->fc_flag & FC_FABRIC)
3995 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
3996 struct lpfc_hba *phba = vport->phba;
4000 if (vport->fc_flag & FC_OFFLINE_MODE)
4033 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
4034 struct lpfc_hba *phba = vport->phba;
4072 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
4073 struct lpfc_hba *phba = vport->phba;
4078 if ((vport->fc_flag & FC_FABRIC) ||
4080 (vport->fc_flag & FC_PUBLIC_LOOP)))
4106 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
4107 struct lpfc_hba *phba = vport->phba;
4137 pmboxq->vport = vport;
4139 if (vport->fc_flag & FC_OFFLINE_MODE)
4161 pmboxq->vport = vport;
4163 if (vport->fc_flag & FC_OFFLINE_MODE)
4225 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
4226 struct lpfc_hba *phba = vport->phba;
4246 pmboxq->vport = vport;
4248 if ((vport->fc_flag & FC_OFFLINE_MODE) ||
4264 pmboxq->vport = vport;
4266 if ((vport->fc_flag & FC_OFFLINE_MODE) ||
4314 struct lpfc_vport *vport = (struct lpfc_vport *) shost->hostdata;
4319 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
4420 * lpfc_set_vport_symbolic_name - Set the vport's symbolic name
4426 * switch to propogate the change into the fabric if the vport is active.
4431 struct lpfc_vport *vport = *(struct lpfc_vport **)fc_vport->dd_data;
4433 if (vport->port_state == LPFC_VPORT_READY)
4434 lpfc_ns_cmd(vport, SLI_CTNS_RSPN_ID, 0, 0);
4444 * before hba port or vport created.
4621 * lpfc_get_vport_cfgparam - Used during port create, init the vport structure
4622 * @vport: lpfc_vport pointer.
4625 lpfc_get_vport_cfgparam(struct lpfc_vport *vport)
4627 lpfc_log_verbose_init(vport, lpfc_log_verbose);
4628 lpfc_lun_queue_depth_init(vport, lpfc_lun_queue_depth);
4629 lpfc_tgt_queue_depth_init(vport, lpfc_tgt_queue_depth);
4630 lpfc_devloss_tmo_init(vport, lpfc_devloss_tmo);
4631 lpfc_nodev_tmo_init(vport, lpfc_nodev_tmo);
4632 lpfc_peer_port_login_init(vport, lpfc_peer_port_login);
4633 lpfc_restrict_login_init(vport, lpfc_restrict_login);
4634 lpfc_fcp_class_init(vport, lpfc_fcp_class);
4635 lpfc_use_adisc_init(vport, lpfc_use_adisc);
4636 lpfc_max_scsicmpl_time_init(vport, lpfc_max_scsicmpl_time);
4637 lpfc_fdmi_on_init(vport, lpfc_fdmi_on);
4638 lpfc_discovery_threads_init(vport, lpfc_discovery_threads);
4639 lpfc_max_luns_init(vport, lpfc_max_luns);
4640 lpfc_scan_down_init(vport, lpfc_scan_down);
4641 lpfc_enable_da_id_init(vport, lpfc_enable_da_id);