Lines Matching refs:rx_monitor

8034 int lpfc_rx_monitor_create_ring(struct lpfc_rx_info_monitor *rx_monitor,  in lpfc_rx_monitor_create_ring()  argument
8037 rx_monitor->ring = kmalloc_array(entries, sizeof(struct rx_info_entry), in lpfc_rx_monitor_create_ring()
8039 if (!rx_monitor->ring) in lpfc_rx_monitor_create_ring()
8042 rx_monitor->head_idx = 0; in lpfc_rx_monitor_create_ring()
8043 rx_monitor->tail_idx = 0; in lpfc_rx_monitor_create_ring()
8044 spin_lock_init(&rx_monitor->lock); in lpfc_rx_monitor_create_ring()
8045 rx_monitor->entries = entries; in lpfc_rx_monitor_create_ring()
8056 void lpfc_rx_monitor_destroy_ring(struct lpfc_rx_info_monitor *rx_monitor) in lpfc_rx_monitor_destroy_ring() argument
8058 kfree(rx_monitor->ring); in lpfc_rx_monitor_destroy_ring()
8059 rx_monitor->ring = NULL; in lpfc_rx_monitor_destroy_ring()
8060 rx_monitor->entries = 0; in lpfc_rx_monitor_destroy_ring()
8061 rx_monitor->head_idx = 0; in lpfc_rx_monitor_destroy_ring()
8062 rx_monitor->tail_idx = 0; in lpfc_rx_monitor_destroy_ring()
8077 void lpfc_rx_monitor_record(struct lpfc_rx_info_monitor *rx_monitor, in lpfc_rx_monitor_record() argument
8080 struct rx_info_entry *ring = rx_monitor->ring; in lpfc_rx_monitor_record()
8081 u32 *head_idx = &rx_monitor->head_idx; in lpfc_rx_monitor_record()
8082 u32 *tail_idx = &rx_monitor->tail_idx; in lpfc_rx_monitor_record()
8083 spinlock_t *ring_lock = &rx_monitor->lock; in lpfc_rx_monitor_record()
8084 u32 ring_size = rx_monitor->entries; in lpfc_rx_monitor_record()
8114 struct lpfc_rx_info_monitor *rx_monitor, char *buf, in lpfc_rx_monitor_report() argument
8117 struct rx_info_entry *ring = rx_monitor->ring; in lpfc_rx_monitor_report()
8119 u32 *head_idx = &rx_monitor->head_idx; in lpfc_rx_monitor_report()
8120 u32 *tail_idx = &rx_monitor->tail_idx; in lpfc_rx_monitor_report()
8121 spinlock_t *ring_lock = &rx_monitor->lock; in lpfc_rx_monitor_report()
8122 u32 ring_size = rx_monitor->entries; in lpfc_rx_monitor_report()
8366 if (!phba->rx_monitor) { in lpfc_cmf_setup()
8367 phba->rx_monitor = kzalloc(sizeof(*phba->rx_monitor), in lpfc_cmf_setup()
8370 if (!phba->rx_monitor) { in lpfc_cmf_setup()
8378 if (lpfc_rx_monitor_create_ring(phba->rx_monitor, in lpfc_cmf_setup()
8380 kfree(phba->rx_monitor); in lpfc_cmf_setup()
8381 phba->rx_monitor = NULL; in lpfc_cmf_setup()