Lines Matching refs:diag
36 struct zfcp_diag_adapter *diag; in zfcp_diag_adapter_setup() local
39 diag = kzalloc(sizeof(*diag), GFP_KERNEL); in zfcp_diag_adapter_setup()
40 if (diag == NULL) in zfcp_diag_adapter_setup()
43 diag->max_age = (5 * 1000); /* default value: 5 s */ in zfcp_diag_adapter_setup()
46 hdr = &diag->port_data.header; in zfcp_diag_adapter_setup()
49 hdr->buffer = &diag->port_data.data; in zfcp_diag_adapter_setup()
50 hdr->buffer_size = sizeof(diag->port_data.data); in zfcp_diag_adapter_setup()
52 hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age); in zfcp_diag_adapter_setup()
55 hdr = &diag->config_data.header; in zfcp_diag_adapter_setup()
58 hdr->buffer = &diag->config_data.data; in zfcp_diag_adapter_setup()
59 hdr->buffer_size = sizeof(diag->config_data.data); in zfcp_diag_adapter_setup()
61 hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age); in zfcp_diag_adapter_setup()
63 adapter->diagnostics = diag; in zfcp_diag_adapter_setup()
199 __zfcp_diag_test_buffer_age_isfresh(const struct zfcp_diag_adapter *const diag, in __zfcp_diag_test_buffer_age_isfresh() argument
212 if (jiffies_to_msecs(now - hdr->timestamp) >= diag->max_age) in __zfcp_diag_test_buffer_age_isfresh()