Lines Matching refs:sz

60 	u64 sz;  in sn_hwperf_enum_objects()  local
68 sz = sn_hwperf_obj_cnt * sizeof(struct sn_hwperf_object_info); in sn_hwperf_enum_objects()
69 objbuf = vmalloc(sz); in sn_hwperf_enum_objects()
71 printk("sn_hwperf_enum_objects: vmalloc(%d) failed\n", (int)sz); in sn_hwperf_enum_objects()
77 0, sz, (u64) objbuf, 0, 0, NULL); in sn_hwperf_enum_objects()
189 size_t sz; in print_pci_topology() local
192 for (sz = PAGE_SIZE; sz < 16 * PAGE_SIZE; sz += PAGE_SIZE) { in print_pci_topology()
193 if (!(p = kmalloc(sz, GFP_KERNEL))) in print_pci_topology()
195 e = ia64_sn_ioif_get_pci_topology(__pa(p), sz); in print_pci_topology()
239 int sz, i, j; in sn_hwperf_get_nearest_node_objdata() local
277 sz = op->ports * sizeof(struct sn_hwperf_port_info); in sn_hwperf_get_nearest_node_objdata()
278 BUG_ON(sz > sizeof(ptdata)); in sn_hwperf_get_nearest_node_objdata()
280 SN_HWPERF_ENUM_PORTS, nodeobj->id, sz, in sn_hwperf_get_nearest_node_objdata()
311 sz = router->ports * sizeof(struct sn_hwperf_port_info); in sn_hwperf_get_nearest_node_objdata()
312 BUG_ON(sz > sizeof(ptdata)); in sn_hwperf_get_nearest_node_objdata()
314 SN_HWPERF_ENUM_PORTS, router->id, sz, in sn_hwperf_get_nearest_node_objdata()
379 int sz; in sn_topology_show() local
496 sz = obj->ports * sizeof(struct sn_hwperf_port_info); in sn_topology_show()
497 if ((ptdata = kmalloc(sz, GFP_KERNEL)) == NULL) in sn_topology_show()
500 SN_HWPERF_ENUM_PORTS, obj->id, sz, in sn_topology_show()
596 op_info->a->arg, op_info->a->sz, in sn_hwperf_call_sal()
723 p = vmalloc(a.sz); in sn_hwperf_ioctl()
731 r = copy_from_user(p, (const void __user *)a.ptr, a.sz); in sn_hwperf_ioctl()
740 if (a.sz == sizeof(u64)) { in sn_hwperf_ioctl()
745 if (a.sz < num_online_cpus() * sizeof(struct sn_hwperf_object_info)) { in sn_hwperf_ioctl()
752 memset(p, 0, a.sz); in sn_hwperf_ioctl()
781 if (a.sz != sizeof(u64) || in sn_hwperf_ioctl()
791 if (a.sz != sizeof(u64) || i < 0) { in sn_hwperf_ioctl()
843 a.arg, a.sz, (u64) p, 0, 0, &v0); in sn_hwperf_ioctl()
853 r = copy_to_user((void __user *)a.ptr, p, a.sz); in sn_hwperf_ioctl()