Lines Matching defs:pstats

194 	const struct hv_stats_page **pstats = m->private;
215 parent_val = pstats[HV_STATS_AREA_PARENT]->data[idx];
216 self_val = pstats[HV_STATS_AREA_SELF]->data[idx];
231 struct hv_stats_page **pstats,
246 pstats, &vp_stats_fops);
263 const struct hv_stats_page **pstats = m->private;
273 parent_val = pstats[HV_STATS_AREA_PARENT]->data[idx];
274 self_val = pstats[HV_STATS_AREA_SELF]->data[idx];
328 struct hv_stats_page **pstats;
331 pstats = kzalloc_objs(struct hv_stats_page *, NUM_STATS_AREAS,
333 if (!pstats)
336 pstats[HV_STATS_AREA_SELF] = mshv_partition_stats_map(partition_id,
338 if (IS_ERR(pstats[HV_STATS_AREA_SELF])) {
339 err = PTR_ERR(pstats[HV_STATS_AREA_SELF]);
347 pstats[HV_STATS_AREA_PARENT] = pstats[HV_STATS_AREA_SELF];
349 pstats[HV_STATS_AREA_PARENT] = mshv_partition_stats_map(partition_id,
351 if (IS_ERR(pstats[HV_STATS_AREA_PARENT])) {
352 err = PTR_ERR(pstats[HV_STATS_AREA_PARENT]);
355 if (!pstats[HV_STATS_AREA_PARENT])
356 pstats[HV_STATS_AREA_PARENT] = pstats[HV_STATS_AREA_SELF];
360 pstats, &partition_stats_fops);
370 if (pstats[HV_STATS_AREA_PARENT] != pstats[HV_STATS_AREA_SELF])
371 mshv_partition_stats_unmap(partition_id, pstats[HV_STATS_AREA_PARENT],
374 mshv_partition_stats_unmap(partition_id, pstats[HV_STATS_AREA_SELF],
377 kfree(pstats);
383 struct hv_stats_page **pstats = NULL;
385 pstats = dentry->d_inode->i_private;
389 if (pstats[HV_STATS_AREA_PARENT] != pstats[HV_STATS_AREA_SELF]) {
391 pstats[HV_STATS_AREA_PARENT],
396 pstats[HV_STATS_AREA_SELF],
399 kfree(pstats);
444 struct hv_stats_page **pstats;
446 pstats = vp_stats_ptr->d_inode->i_private;
448 mshv_vp_stats_unmap(hv_current_partition_id, vp_index, pstats);
449 kfree(pstats);
471 struct hv_stats_page **pstats;
474 pstats = kzalloc_objs(struct hv_stats_page *, NUM_STATS_AREAS,
476 if (!pstats)
479 err = mshv_vp_stats_map(hv_current_partition_id, vp_index, pstats);
483 err = vp_debugfs_create(hv_current_partition_id, vp_index, pstats,
491 mshv_vp_stats_unmap(hv_current_partition_id, vp_index, pstats);
493 kfree(pstats);