• Home
  • Raw
  • Download

Lines Matching full:diagnostics

5  * Functions to handle diagnostics.
25 * zfcp_diag_adapter_setup() - Setup storage for adapter diagnostics.
26 * @adapter: the adapter to setup diagnostics for.
28 * Creates the data-structures to store the diagnostics for an adapter. This
29 * overwrites whatever was stored before at &zfcp_adapter->diagnostics!
34 * &zfcp_adapter->diagnostics remains unchanged
65 adapter->diagnostics = diag; in zfcp_diag_adapter_setup()
70 * zfcp_diag_adapter_free() - Frees all adapter diagnostics allocations.
73 * Frees all data-structures in the given adapter that store diagnostics
74 * information. Can savely be called with partially setup diagnostics.
78 kfree(adapter->diagnostics); in zfcp_diag_adapter_free()
79 adapter->diagnostics = NULL; in zfcp_diag_adapter_free()
83 * zfcp_diag_sysfs_setup() - Setup the sysfs-group for adapter-diagnostics.
93 adapter->diagnostics->sysfs_established = 1; in zfcp_diag_sysfs_setup()
99 * zfcp_diag_sysfs_destroy() - Remove the sysfs-group for adapter-diagnostics.
104 if (adapter->diagnostics == NULL || in zfcp_diag_sysfs_destroy()
105 !adapter->diagnostics->sysfs_established) in zfcp_diag_sysfs_destroy()
116 adapter->diagnostics->sysfs_established = 0; in zfcp_diag_sysfs_destroy()
123 * zfcp_diag_update_xdata() - Update a diagnostics buffer.
157 * * 0 - Successfully retrieved new Diagnostics and Updated the buffer;
187 * * 0 - Successfully retrieved new Diagnostics and Updated the buffer;
261 * zfcp_diag_update_buffer_limited() - Collect diagnostics and update a
262 * diagnostics buffer rate limited.
263 * @adapter: Adapter to collect the diagnostics from.
264 * @hdr: buffer-header for which to update with the collected diagnostics.
294 !__zfcp_diag_test_buffer_age_isfresh(adapter->diagnostics, hdr); in zfcp_diag_update_buffer_limited()