Lines Matching defs:adapter
23 * zfcp_diag_adapter_setup() - Setup storage for adapter diagnostics.
24 * @adapter: the adapter to setup diagnostics for.
26 * Creates the data-structures to store the diagnostics for an adapter. This
34 int zfcp_diag_adapter_setup(struct zfcp_adapter *const adapter)
63 adapter->diagnostics = diag;
68 * zfcp_diag_adapter_free() - Frees all adapter diagnostics allocations.
69 * @adapter: the adapter whose diagnostic structures should be freed.
71 * Frees all data-structures in the given adapter that store diagnostics
74 void zfcp_diag_adapter_free(struct zfcp_adapter *const adapter)
76 kfree(adapter->diagnostics);
77 adapter->diagnostics = NULL;
109 * @adapter: Adapter to collect Port Data from.
122 int zfcp_diag_update_port_data_buffer(struct zfcp_adapter *const adapter)
126 rc = zfcp_fsf_exchange_port_data_sync(adapter->qdio, NULL);
139 * @adapter: Adapter to collect Config Data from.
152 int zfcp_diag_update_config_data_buffer(struct zfcp_adapter *const adapter)
156 rc = zfcp_fsf_exchange_config_data_sync(adapter->qdio, NULL);
165 static int __zfcp_diag_update_buffer(struct zfcp_adapter *const adapter,
183 rc = buffer_update(adapter);
221 * @adapter: Adapter to collect the diagnostics from.
242 int zfcp_diag_update_buffer_limited(struct zfcp_adapter *const adapter,
252 !__zfcp_diag_test_buffer_age_isfresh(adapter->diagnostics, hdr);
254 rc = __zfcp_diag_update_buffer(adapter, hdr, buffer_update,