Lines Matching refs:nobj
57 static int sn_hwperf_enum_objects(int *nobj, struct sn_hwperf_object_info **ret) in sn_hwperf_enum_objects() argument
84 *nobj = sn_hwperf_obj_cnt; in sn_hwperf_enum_objects()
216 int nobj, int id) in sn_hwperf_findobj_id() argument
221 for (i=0; i < nobj; i++, p++) { in sn_hwperf_findobj_id()
231 int nobj, cnodeid_t node, cnodeid_t *near_mem_node, cnodeid_t *near_cpu_node) 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()
697 int nobj; in sn_hwperf_ioctl() local
749 if ((r = sn_hwperf_enum_objects(&nobj, &objs)) == 0) { in sn_hwperf_ioctl()
753 for (i = 0; i < nobj; i++) { in sn_hwperf_ioctl()
795 if ((r = sn_hwperf_enum_objects(&nobj, &objs)) == 0) { in sn_hwperf_ioctl()
796 if (i >= nobj) { in sn_hwperf_ioctl()
802 for (i = 0; i < nobj; i++) { in sn_hwperf_ioctl()
807 if (i == nobj) { in sn_hwperf_ioctl()
945 int nobj; in sn_topology_open() local
947 if ((e = sn_hwperf_enum_objects(&nobj, &objbuf)) == 0) { in sn_topology_open()
968 int nobj; 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()