Lines Matching refs:name
542 char *name, in xc_livepatch_upload() argument
549 DECLARE_HYPERCALL_BOUNCE(name, 0 /* later */, XC_HYPERCALL_BUFFER_BOUNCE_IN); in xc_livepatch_upload()
552 if ( !name || !payload ) in xc_livepatch_upload()
558 def_name.size = strlen(name) + 1; in xc_livepatch_upload()
565 HYPERCALL_BOUNCE_SET_SIZE(name, def_name.size); in xc_livepatch_upload()
567 if ( xc_hypercall_bounce_pre(xch, name) ) in xc_livepatch_upload()
573 xc_hypercall_bounce_post(xch, name); in xc_livepatch_upload()
584 sysctl.u.livepatch.u.upload.name = def_name; in xc_livepatch_upload()
585 set_xen_guest_handle(sysctl.u.livepatch.u.upload.name.name, name); in xc_livepatch_upload()
590 xc_hypercall_bounce_post(xch, name); in xc_livepatch_upload()
596 char *name, in xc_livepatch_get() argument
601 DECLARE_HYPERCALL_BOUNCE(name, 0 /*adjust later */, XC_HYPERCALL_BUFFER_BOUNCE_IN); in xc_livepatch_get()
604 if ( !name ) in xc_livepatch_get()
610 def_name.size = strlen(name) + 1; in xc_livepatch_get()
617 HYPERCALL_BOUNCE_SET_SIZE(name, def_name.size); in xc_livepatch_get()
619 if ( xc_hypercall_bounce_pre(xch, name) ) in xc_livepatch_get()
629 sysctl.u.livepatch.u.get.name = def_name; in xc_livepatch_get()
630 set_xen_guest_handle(sysctl.u.livepatch.u.get.name.name, name); in xc_livepatch_get()
634 xc_hypercall_bounce_post(xch, name); in xc_livepatch_get()
681 char *name, uint32_t *len, in xc_livepatch_list() argument
689 DECLARE_HYPERCALL_BOUNCE(name, 0, XC_HYPERCALL_BUFFER_BOUNCE_OUT); in xc_livepatch_list()
696 if ( !max || !info || !name || !len ) in xc_livepatch_list()
711 sz = sizeof(*name) * XEN_LIVEPATCH_NAME_SIZE; in xc_livepatch_list()
734 HYPERCALL_BOUNCE_SET_SIZE(name, nr * nr); in xc_livepatch_list()
738 (HYPERCALL_BUFFER(name))->ubuf = name + (sz * *done); in xc_livepatch_list()
745 rc = xc_hypercall_bounce_pre(xch, name); in xc_livepatch_list()
754 set_xen_guest_handle(sysctl.u.livepatch.u.list.name, name); in xc_livepatch_list()
770 xc_hypercall_bounce_post(xch, name); in xc_livepatch_list()
794 xc_hypercall_bounce_post(xch, name); in xc_livepatch_list()
809 HYPERCALL_BOUNCE_SET_SIZE(name, (rc * sz)); in xc_livepatch_list()
813 xc_hypercall_bounce_post(xch, name); in xc_livepatch_list()
824 xc_hypercall_bounce_post(xch, name); in xc_livepatch_list()
832 char *name, in _xc_livepatch_action() argument
839 DECLARE_HYPERCALL_BOUNCE(name, 0, XC_HYPERCALL_BUFFER_BOUNCE_IN); in _xc_livepatch_action()
842 def_name.size = strlen(name) + 1; in _xc_livepatch_action()
850 HYPERCALL_BOUNCE_SET_SIZE(name, def_name.size); in _xc_livepatch_action()
852 if ( xc_hypercall_bounce_pre(xch, name) ) in _xc_livepatch_action()
861 sysctl.u.livepatch.u.action.name = def_name; in _xc_livepatch_action()
862 set_xen_guest_handle(sysctl.u.livepatch.u.action.name.name, name); in _xc_livepatch_action()
866 xc_hypercall_bounce_post(xch, name); in _xc_livepatch_action()
871 int xc_livepatch_apply(xc_interface *xch, char *name, uint32_t timeout) in xc_livepatch_apply() argument
873 return _xc_livepatch_action(xch, name, LIVEPATCH_ACTION_APPLY, timeout); in xc_livepatch_apply()
876 int xc_livepatch_revert(xc_interface *xch, char *name, uint32_t timeout) in xc_livepatch_revert() argument
878 return _xc_livepatch_action(xch, name, LIVEPATCH_ACTION_REVERT, timeout); in xc_livepatch_revert()
881 int xc_livepatch_unload(xc_interface *xch, char *name, uint32_t timeout) in xc_livepatch_unload() argument
883 return _xc_livepatch_action(xch, name, LIVEPATCH_ACTION_UNLOAD, timeout); in xc_livepatch_unload()
886 int xc_livepatch_replace(xc_interface *xch, char *name, uint32_t timeout) in xc_livepatch_replace() argument
888 return _xc_livepatch_action(xch, name, LIVEPATCH_ACTION_REPLACE, timeout); in xc_livepatch_replace()