Lines Matching refs:op

36     struct xen_sysctl curop, *op = &curop;  in do_sysctl()  local
39 if ( copy_from_guest(op, u_sysctl, 1) ) in do_sysctl()
42 if ( op->interface_version != XEN_SYSCTL_INTERFACE_VERSION ) in do_sysctl()
45 ret = xsm_sysctl(XSM_PRIV, op->cmd); in do_sysctl()
59 switch ( op->cmd ) in do_sysctl()
62 ret = xsm_readconsole(XSM_HOOK, op->u.readconsole.clear); in do_sysctl()
66 ret = read_console_ring(&op->u.readconsole); in do_sysctl()
70 ret = tb_control(&op->u.tbuf_op); in do_sysctl()
74 op->u.sched_id.sched_id = sched_id(); in do_sysctl()
87 if ( d->domain_id < op->u.getdomaininfolist.first_domain ) in do_sysctl()
89 if ( num_domains == op->u.getdomaininfolist.max_domains ) in do_sysctl()
98 if ( copy_to_guest_offset(op->u.getdomaininfolist.buffer, in do_sysctl()
113 op->u.getdomaininfolist.num_domains = num_domains; in do_sysctl()
119 ret = perfc_control(&op->u.perfc_op); in do_sysctl()
125 ret = spinlock_profile_control(&op->u.lockprof_op); in do_sysctl()
134 for ( i = 0; i < op->u.debug_keys.nr_keys; i++ ) in do_sysctl()
136 if ( copy_from_guest_offset(&c, op->u.debug_keys.keys, i, 1) ) in do_sysctl()
150 nr_cpus = min(op->u.getcpuinfo.max_cpus, nr_cpu_ids); in do_sysctl()
157 if ( copy_to_guest_offset(op->u.getcpuinfo.info, i, &cpuinfo, 1) ) in do_sysctl()
161 op->u.getcpuinfo.nr_cpus = i; in do_sysctl()
167 op->u.availheap.avail_bytes = avail_domheap_pages_region( in do_sysctl()
168 op->u.availheap.node, in do_sysctl()
169 op->u.availheap.min_bitwidth, in do_sysctl()
170 op->u.availheap.max_bitwidth); in do_sysctl()
171 op->u.availheap.avail_bytes <<= PAGE_SHIFT; in do_sysctl()
176 ret = do_get_pm_info(&op->u.get_pmstat); in do_sysctl()
180 ret = do_pm_op(&op->u.pm_op); in do_sysctl()
191 ret = xsm_page_offline(XSM_HOOK, op->u.page_offline.cmd); in do_sysctl()
196 (op->u.page_offline.end - in do_sysctl()
197 op->u.page_offline.start + 1)); in do_sysctl()
206 (op->u.page_offline.end - op->u.page_offline.start + 1)); in do_sysctl()
208 for ( pfn = op->u.page_offline.start; in do_sysctl()
209 pfn <= op->u.page_offline.end; in do_sysctl()
212 switch ( op->u.page_offline.cmd ) in do_sysctl()
234 op->u.page_offline.status, status, in do_sysctl()
235 op->u.page_offline.end - op->u.page_offline.start + 1) ) in do_sysctl()
244 ret = cpupool_do_sysctl(&op->u.cpupool_op); in do_sysctl()
248 ret = sched_adjust_global(&op->u.scheduler_op); in do_sysctl()
253 struct xen_sysctl_physinfo *pi = &op->u.physinfo; in do_sysctl()
272 if ( copy_to_guest(u_sysctl, op, 1) ) in do_sysctl()
280 struct xen_sysctl_numainfo *ni = &op->u.numainfo; in do_sysctl()
337 if ( __copy_field_to_guest(u_sysctl, op, in do_sysctl()
350 struct xen_sysctl_cputopoinfo *ti = &op->u.cputopoinfo; in do_sysctl()
389 if ( __copy_field_to_guest(u_sysctl, op, in do_sysctl()
401 ret = sysctl_gcov_op(&op->u.gcov_op); in do_sysctl()
409 struct xen_sysctl_pcitopoinfo *ti = &op->u.pcitopoinfo; in do_sysctl()
454 if ( __copy_field_to_guest(u_sysctl, op, u.pcitopoinfo.num_devs) ) in do_sysctl()
462 ret = tmem_control(&op->u.tmem_op); in do_sysctl()
466 ret = livepatch_op(&op->u.livepatch); in do_sysctl()
476 if ( op->u.set_parameter.pad[0] || op->u.set_parameter.pad[1] || in do_sysctl()
477 op->u.set_parameter.pad[2] ) in do_sysctl()
482 if ( op->u.set_parameter.size > XEN_SET_PARAMETER_MAX_SIZE ) in do_sysctl()
487 params = xmalloc_bytes(op->u.set_parameter.size + 1); in do_sysctl()
493 if ( copy_from_guest(params, op->u.set_parameter.params, in do_sysctl()
494 op->u.set_parameter.size) ) in do_sysctl()
498 params[op->u.set_parameter.size] = 0; in do_sysctl()
508 ret = arch_do_sysctl(op, u_sysctl); in do_sysctl()
517 __copy_to_guest(u_sysctl, op, 1) ) in do_sysctl()