Lines Matching refs:diag0c_data
32 struct hypfs_diag0c_data *diag0c_data; in diag0c_store() local
43 diag0c_data = kzalloc(struct_size(diag0c_data, entry, cpu_count), in diag0c_store()
45 if (!diag0c_data) in diag0c_store()
50 diag0c_data->entry[i].cpu = cpu; in diag0c_store()
51 cpu_vec[cpu] = &diag0c_data->entry[i++]; in diag0c_store()
58 return diag0c_data; in diag0c_store()
80 struct hypfs_diag0c_data *diag0c_data; in dbfs_diag0c_create() local
83 diag0c_data = diag0c_store(&count); in dbfs_diag0c_create()
84 if (IS_ERR(diag0c_data)) in dbfs_diag0c_create()
85 return PTR_ERR(diag0c_data); in dbfs_diag0c_create()
86 memset(&diag0c_data->hdr, 0, sizeof(diag0c_data->hdr)); in dbfs_diag0c_create()
87 store_tod_clock_ext((union tod_clock *)diag0c_data->hdr.tod_ext); in dbfs_diag0c_create()
88 diag0c_data->hdr.len = count * sizeof(struct hypfs_diag0c_entry); in dbfs_diag0c_create()
89 diag0c_data->hdr.version = DBFS_D0C_HDR_VERSION; in dbfs_diag0c_create()
90 diag0c_data->hdr.count = count; in dbfs_diag0c_create()
91 *data = diag0c_data; in dbfs_diag0c_create()
92 *data_free_ptr = diag0c_data; in dbfs_diag0c_create()
93 *size = diag0c_data->hdr.len + sizeof(struct hypfs_diag0c_hdr); in dbfs_diag0c_create()