Lines Matching refs:diag
38 struct zfcp_diag_adapter *diag; in zfcp_diag_adapter_setup() local
41 diag = kzalloc(sizeof(*diag), GFP_KERNEL); in zfcp_diag_adapter_setup()
42 if (diag == NULL) in zfcp_diag_adapter_setup()
45 diag->max_age = (5 * 1000); /* default value: 5 s */ in zfcp_diag_adapter_setup()
48 hdr = &diag->port_data.header; in zfcp_diag_adapter_setup()
51 hdr->buffer = &diag->port_data.data; in zfcp_diag_adapter_setup()
52 hdr->buffer_size = sizeof(diag->port_data.data); in zfcp_diag_adapter_setup()
54 hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age); in zfcp_diag_adapter_setup()
57 hdr = &diag->config_data.header; in zfcp_diag_adapter_setup()
60 hdr->buffer = &diag->config_data.data; in zfcp_diag_adapter_setup()
61 hdr->buffer_size = sizeof(diag->config_data.data); in zfcp_diag_adapter_setup()
63 hdr->timestamp = jiffies - msecs_to_jiffies(diag->max_age); in zfcp_diag_adapter_setup()
65 adapter->diagnostics = diag; in zfcp_diag_adapter_setup()
241 __zfcp_diag_test_buffer_age_isfresh(const struct zfcp_diag_adapter *const diag, in __zfcp_diag_test_buffer_age_isfresh() argument
254 if (jiffies_to_msecs(now - hdr->timestamp) >= diag->max_age) in __zfcp_diag_test_buffer_age_isfresh()