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

Lines Matching defs:vport

62  * where Y is the vport VPI on that hba
64 * Debugging services available per vport:
67 * lpfc_debugfs_max_disc_trc events that happened on a specific vport.
72 * EACH vport. X MUST also be a power of 2.
133 * @vport: The vport to gather the log info from.
138 * This routine gathers the lpfc discovery debugfs data from the @vport and
151 lpfc_debugfs_disc_trc_data(struct lpfc_vport *vport, char *buf, int size)
162 index = (atomic_read(&vport->disc_trc_cnt) + 1) &
165 dtp = vport->disc_trc + i;
176 dtp = vport->disc_trc + i;
511 * @vport: The vport to gather target node info from.
516 * This routine dumps the current target node list associated with @vport to
525 lpfc_debugfs_nodelist_data(struct lpfc_vport *vport, char *buf, int size)
529 struct Scsi_Host *shost = lpfc_shost_from_vport(vport);
536 list_for_each_entry(ndlp, &vport->fc_nodes, nlp_listp) {
609 * @vport: The vport to associate this trace string with for retrieval.
618 * discovery trace buffer associated with @vport. Only entries with a @mask that
624 lpfc_debugfs_disc_trc(struct lpfc_vport *vport, int mask, char *fmt,
635 !vport || !vport->disc_trc)
638 index = atomic_inc_return(&vport->disc_trc_cnt) &
640 dtp = vport->disc_trc + index;
661 * discovery trace buffer associated with @vport. @fmt, @data1, @data2, and
692 * @inode: The inode pointer that contains a vport pointer.
697 * the vport from the i_private field in @inode, allocates the necessary buffer
698 * for the log, fills the buffer from the in-memory log for this vport, and then
708 struct lpfc_vport *vport = inode->i_private;
732 debug->len = lpfc_debugfs_disc_trc_data(vport, debug->buffer, size);
742 * @inode: The inode pointer that contains a vport pointer.
747 * the vport from the i_private field in @inode, allocates the necessary buffer
748 * for the log, fills the buffer from the in-memory log for this vport, and then
792 * @inode: The inode pointer that contains a vport pointer.
797 * the vport from the i_private field in @inode, allocates the necessary buffer
798 * for the log, fills the buffer from the in-memory log for this vport, and then
834 * @inode: The inode pointer that contains a vport pointer.
839 * the vport from the i_private field in @inode, allocates the necessary buffer
840 * for the log, fills the buffer from the in-memory log for this vport, and then
876 * @inode: The inode pointer that contains a vport pointer.
881 * the vport from the i_private field in @inode, allocates the necessary buffer
882 * for the log, fills the buffer from the in-memory log for this vport, and then
1003 * @inode: The inode pointer that contains a vport pointer.
1008 * the vport from the i_private field in @inode, allocates the necessary buffer
1009 * for the log, fills the buffer from the in-memory log for this vport, and then
1019 struct lpfc_vport *vport = inode->i_private;
1034 debug->len = lpfc_debugfs_nodelist_data(vport, debug->buffer,
1108 * @inode: The inode pointer that contains a vport pointer. (unused)
1219 * lpfc_debugfs_initialize - Initialize debugfs for a vport
1220 * @vport: The vport pointer to initialize.
1225 * lpfcX directory (for this HBA), and vportX directory for this vport. It will
1229 lpfc_debugfs_initialize(struct lpfc_vport *vport)
1232 struct lpfc_hba *phba = vport->phba;
1244 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1258 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1272 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1284 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1296 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1308 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1320 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1352 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1363 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1375 snprintf(name, sizeof(name), "vport%d", vport->vpi);
1376 if (!vport->vport_debugfs_root) {
1377 vport->vport_debugfs_root =
1379 if (!vport->vport_debugfs_root) {
1380 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1404 vport->disc_trc = kzalloc(
1408 if (!vport->disc_trc) {
1409 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1414 atomic_set(&vport->disc_trc_cnt, 0);
1417 vport->debug_disc_trc =
1419 vport->vport_debugfs_root,
1420 vport, &lpfc_debugfs_op_disc_trc);
1421 if (!vport->debug_disc_trc) {
1422 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1428 vport->debug_nodelist =
1430 vport->vport_debugfs_root,
1431 vport, &lpfc_debugfs_op_nodelist);
1432 if (!vport->debug_nodelist) {
1433 lpfc_printf_vlog(vport, KERN_ERR, LOG_INIT,
1443 * lpfc_debugfs_terminate - Tear down debugfs infrastructure for this vport
1444 * @vport: The vport pointer to remove from debugfs.
1448 * that are specific to this vport. It also checks to see if there are any
1454 lpfc_debugfs_terminate(struct lpfc_vport *vport)
1457 struct lpfc_hba *phba = vport->phba;
1459 if (vport->disc_trc) {
1460 kfree(vport->disc_trc);
1461 vport->disc_trc = NULL;
1463 if (vport->debug_disc_trc) {
1464 debugfs_remove(vport->debug_disc_trc); /* discovery_trace */
1465 vport->debug_disc_trc = NULL;
1467 if (vport->debug_nodelist) {
1468 debugfs_remove(vport->debug_nodelist); /* nodelist */
1469 vport->debug_nodelist = NULL;
1472 if (vport->vport_debugfs_root) {
1473 debugfs_remove(vport->vport_debugfs_root); /* vportX */
1474 vport->vport_debugfs_root = NULL;