Lines Matching refs:objbuf
61 struct sn_hwperf_object_info *objbuf = NULL; in sn_hwperf_enum_objects() local
69 objbuf = vmalloc(sz); in sn_hwperf_enum_objects()
70 if (objbuf == NULL) { in sn_hwperf_enum_objects()
77 0, sz, (u64) objbuf, 0, 0, NULL); in sn_hwperf_enum_objects()
80 vfree(objbuf); in sn_hwperf_enum_objects()
85 *ret = objbuf; in sn_hwperf_enum_objects()
215 sn_hwperf_findobj_id(struct sn_hwperf_object_info *objbuf, in sn_hwperf_findobj_id() argument
219 struct sn_hwperf_object_info *p = objbuf; in sn_hwperf_findobj_id()
230 static int sn_hwperf_get_nearest_node_objdata(struct sn_hwperf_object_info *objbuf, in sn_hwperf_get_nearest_node_objdata() argument
263 for (i=0, op=objbuf; i < nobj; i++, op++) { in sn_hwperf_get_nearest_node_objdata()
289 dest = sn_hwperf_findobj_id(objbuf, nobj, ptdata[j].conn_id); in sn_hwperf_get_nearest_node_objdata()
321 dest = sn_hwperf_findobj_id(objbuf, nobj, in sn_hwperf_get_nearest_node_objdata()
347 for (i=0, op=objbuf; i < nobj; i++, op++) { in sn_hwperf_get_nearest_node_objdata()
944 struct sn_hwperf_object_info *objbuf; in sn_topology_open() local
947 if ((e = sn_hwperf_enum_objects(&nobj, &objbuf)) == 0) { in sn_topology_open()
950 seq->private = objbuf; in sn_topology_open()
969 struct sn_hwperf_object_info *objbuf; in sn_hwperf_get_nearest_node() local
971 if ((e = sn_hwperf_enum_objects(&nobj, &objbuf)) == 0) { in sn_hwperf_get_nearest_node()
972 e = sn_hwperf_get_nearest_node_objdata(objbuf, nobj, in sn_hwperf_get_nearest_node()
974 vfree(objbuf); in sn_hwperf_get_nearest_node()