Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 94) sorted by relevance

1234

/xen/xen/include/xen/
A Dlivepatch.h92 if ( !func->new_addr ) in livepatch_insn_len()
93 return func->new_size; in livepatch_insn_len()
103 if ( !func->new_addr ) /* Ignore NOPs. */ in livepatch_verify_distance()
106 offset = func->old_addr - func->new_addr; in livepatch_verify_distance()
133 __func__, func->name); in common_livepatch_apply()
137 arch_livepatch_apply(func); in common_livepatch_apply()
138 func->applied = LIVEPATCH_FUNC_APPLIED; in common_livepatch_apply()
144 if ( !func->old_addr || func->applied == LIVEPATCH_FUNC_NOT_APPLIED ) in common_livepatch_revert()
147 __func__, func->name); in common_livepatch_revert()
151 arch_livepatch_revert(func); in common_livepatch_revert()
[all …]
A Dtasklet.h24 void (*func)(void *); member
28 #define _DECLARE_TASKLET(name, func, data, softirq) \ argument
30 LIST_HEAD_INIT(name.list), -1, softirq, 0, 0, func, data }
31 #define DECLARE_TASKLET(name, func, data) \ argument
32 _DECLARE_TASKLET(name, func, data, 0)
33 #define DECLARE_SOFTIRQ_TASKLET(name, func, data) \ argument
34 _DECLARE_TASKLET(name, func, data, 1)
62 void tasklet_init(struct tasklet *t, void (*func)(void *), void *data);
63 void softirq_tasklet_init(struct tasklet *t, void (*func)(void *), void *data);
A Dsmp.h31 void (*func) (void *info),
40 void (*func) (void *info),
54 void (*func) (void *info), in on_each_cpu()
58 on_selected_cpus(&cpu_online_map, func, info, wait); in on_each_cpu()
A Drcupdate.h71 void (*func)(struct rcu_head *head); member
74 #define RCU_HEAD_INIT { .next = NULL, .func = NULL }
77 (ptr)->next = NULL; (ptr)->func = NULL; \
176 void (*func)(struct rcu_head *head));
/xen/xen/include/asm-x86/
A Dalternative.h214 : [addr] "i" (&(func)), "g" (func) \
219 #define alternative_vcall0(func) ({ \ argument
221 ((void)alternative_callN(0, int, func)); \
224 #define alternative_call0(func) ({ \ argument
226 alternative_callN(0, typeof(func()), func); \
229 #define alternative_vcall1(func, arg) ({ \ argument
232 (void)sizeof(func(arg)); \
239 alternative_callN(1, typeof(func(arg)), func); \
256 alternative_callN(2, typeof(func(arg1, arg2)), func); \
378 #define alternative_vcall(func, args...) \ argument
[all …]
/xen/xen/test/livepatch/
A Dxen_action_hooks_norevert.c28 struct livepatch_func *func = &payload->funcs[i]; in pre_apply_hook() local
30 BUG_ON(func->applied == LIVEPATCH_FUNC_APPLIED); in pre_apply_hook()
31 printk(KERN_DEBUG "%s: pre applied: %s\n", __func__, func->name); in pre_apply_hook()
47 struct livepatch_func *func = &payload->funcs[i]; in post_apply_hook() local
49 BUG_ON(func->applied != LIVEPATCH_FUNC_APPLIED); in post_apply_hook()
64 struct livepatch_func *func = &payload->funcs[i]; in pre_revert_hook() local
66 BUG_ON(func->applied != LIVEPATCH_FUNC_APPLIED); in pre_revert_hook()
83 struct livepatch_func *func = &payload->funcs[i]; in revert_hook() local
102 struct livepatch_func *func = &payload->funcs[i]; in post_revert_hook() local
105 BUG_ON(func->applied != LIVEPATCH_FUNC_APPLIED); in post_revert_hook()
[all …]
A Dxen_action_hooks_noapply.c28 struct livepatch_func *func = &payload->funcs[i]; in pre_apply_hook() local
30 BUG_ON(func->applied == LIVEPATCH_FUNC_APPLIED); in pre_apply_hook()
31 printk(KERN_DEBUG "%s: pre applied: %s\n", __func__, func->name); in pre_apply_hook()
47 struct livepatch_func *func = &payload->funcs[i]; in apply_hook() local
50 printk(KERN_DEBUG "%s: applying: %s\n", __func__, func->name); in apply_hook()
66 struct livepatch_func *func = &payload->funcs[i]; in post_apply_hook() local
69 BUG_ON(func->applied == LIVEPATCH_FUNC_APPLIED); in post_apply_hook()
84 struct livepatch_func *func = &payload->funcs[i]; in pre_revert_hook() local
86 BUG_ON(func->applied == LIVEPATCH_FUNC_APPLIED); in pre_revert_hook()
103 struct livepatch_func *func = &payload->funcs[i]; in post_revert_hook() local
[all …]
A Dxen_action_hooks_marker.c26 struct livepatch_func *func = &payload->funcs[i]; in pre_apply_hook() local
28 BUG_ON(func->applied == LIVEPATCH_FUNC_APPLIED); in pre_apply_hook()
29 printk(KERN_DEBUG "%s: pre applied: %s\n", __func__, func->name); in pre_apply_hook()
45 struct livepatch_func *func = &payload->funcs[i]; in post_apply_hook() local
47 BUG_ON(func->applied != LIVEPATCH_FUNC_APPLIED); in post_apply_hook()
48 printk(KERN_DEBUG "%s: post applied: %s\n", __func__, func->name); in post_apply_hook()
62 struct livepatch_func *func = &payload->funcs[i]; in pre_revert_hook() local
64 BUG_ON(func->applied != LIVEPATCH_FUNC_APPLIED); in pre_revert_hook()
65 printk(KERN_DEBUG "%s: pre reverted: %s\n", __func__, func->name); in pre_revert_hook()
81 struct livepatch_func *func = &payload->funcs[i]; in post_revert_hook() local
[all …]
A Dxen_action_hooks.c29 struct livepatch_func *func = &payload->funcs[i]; in apply_hook() local
31 func->applied = LIVEPATCH_FUNC_APPLIED; in apply_hook()
34 printk(KERN_DEBUG "%s: applying: %s\n", __func__, func->name); in apply_hook()
50 struct livepatch_func *func = &payload->funcs[i]; in revert_hook() local
52 func->applied = LIVEPATCH_FUNC_NOT_APPLIED; in revert_hook()
55 printk(KERN_DEBUG "%s: reverting: %s\n", __func__, func->name); in revert_hook()
71 struct livepatch_func *func = &payload->funcs[i]; in post_revert_hook() local
73 printk(KERN_DEBUG "%s: reverted: %s\n", __func__, func->name); in post_revert_hook()
A Dxen_prepost_hooks.c33 struct livepatch_func *func = &payload->funcs[i]; in pre_apply_hook() local
36 printk(KERN_DEBUG "%s: applying: %s\n", __func__, func->name); in pre_apply_hook()
52 struct livepatch_func *func = &payload->funcs[i]; in post_apply_hook() local
55 printk(KERN_DEBUG "%s: applied: %s\n", __func__, func->name); in post_apply_hook()
69 struct livepatch_func *func = &payload->funcs[i]; in pre_revert_hook() local
72 printk(KERN_DEBUG "%s: reverting: %s\n", __func__, func->name); in pre_revert_hook()
89 struct livepatch_func *func = &payload->funcs[i]; in post_revert_hook() local
92 printk(KERN_DEBUG "%s: reverted: %s\n", __func__, func->name); in post_revert_hook()
A Dxen_action_hooks_nofunc.c26 struct livepatch_func *func = &payload->funcs[i]; in apply_hook() local
29 printk(KERN_DEBUG "%s: applying: %s\n", __func__, func->name); in apply_hook()
45 struct livepatch_func *func = &payload->funcs[i]; in revert_hook() local
48 printk(KERN_DEBUG "%s: reverting: %s\n", __func__, func->name); in revert_hook()
64 struct livepatch_func *func = &payload->funcs[i]; in post_revert_hook() local
66 printk(KERN_DEBUG "%s: reverted: %s\n", __func__, func->name); in post_revert_hook()
/xen/xen/common/
A Dsmp.c29 void (*func) (void *info); member
36 void (*func) (void *info), in smp_call_function()
44 on_selected_cpus(&allbutself, func, info, wait); in smp_call_function()
49 void (*func) (void *info), in on_selected_cpus()
66 call_data.func = func; in on_selected_cpus()
81 void (*func)(void *info) = call_data.func; in smp_call_function_interrupt() local
92 (*func)(info); in smp_call_function_interrupt()
100 (*func)(info); in smp_call_function_interrupt()
/xen/xen/arch/x86/
A Dlivepatch.c107 if ( !func->new_addr ) in arch_livepatch_verify_func()
110 if ( func->new_size > sizeof(func->opaque) ) in arch_livepatch_verify_func()
113 if ( func->old_size < func->new_size ) in arch_livepatch_verify_func()
116 else if ( func->old_size < ARCH_PATCH_INSN_SIZE ) in arch_livepatch_verify_func()
129 uint8_t insn[sizeof(func->opaque)]; in arch_livepatch_apply()
132 old_ptr = func->old_addr; in arch_livepatch_apply()
133 len = livepatch_insn_len(func); in arch_livepatch_apply()
137 memcpy(func->opaque, old_ptr, len); in arch_livepatch_apply()
138 if ( func->new_addr ) in arch_livepatch_apply()
145 val = func->new_addr - func->old_addr - ARCH_PATCH_INSN_SIZE; in arch_livepatch_apply()
[all …]
A Dmsi.c287 u8 func = PCI_FUNC(dev->devfn); in msi_set_enable() local
300 u8 func = PCI_FUNC(dev->devfn); in msix_set_enable() local
325 u8 bus, slot, func; in msi_set_mask_bit() local
334 func = PCI_FUNC(pdev->devfn); in msi_set_mask_bit()
617 u8 func = PCI_FUNC(dev->devfn); in msi_capability_init() local
780 u8 func = PCI_FUNC(dev->devfn); in msix_capability_init() local
837 pfunc = func; in msix_capability_init()
1062 u8 func = PCI_FUNC(msi->devfn); in __pci_enable_msix() local
1085 msi->seg, msi->bus, slot, func); in __pci_enable_msix()
1116 u8 func = PCI_FUNC(dev->devfn); in __pci_disable_msix() local
[all …]
/xen/xen/arch/arm/
A Dlivepatch.c68 int arch_livepatch_verify_func(const struct livepatch_func *func) in arch_livepatch_verify_func() argument
71 if ( !func->new_addr && (func->new_size > sizeof(func->opaque) || in arch_livepatch_verify_func()
72 func->new_size % ARCH_PATCH_INSN_SIZE) ) in arch_livepatch_verify_func()
75 if ( func->old_size < ARCH_PATCH_INSN_SIZE ) in arch_livepatch_verify_func()
81 void arch_livepatch_revert(const struct livepatch_func *func) in arch_livepatch_revert() argument
86 new_ptr = func->old_addr - (void *)_start + vmap_of_xen_text; in arch_livepatch_revert()
88 len = livepatch_insn_len(func); in arch_livepatch_revert()
89 memcpy(new_ptr, func->opaque, len); in arch_livepatch_revert()
/xen/xen/drivers/pci/
A Dpci.c11 int pci_find_cap_offset(u16 seg, u8 bus, u8 dev, u8 func, u8 cap) in pci_find_cap_offset() argument
18 status = pci_conf_read16(PCI_SBDF(seg, bus, dev, func), PCI_STATUS); in pci_find_cap_offset()
24 pos = pci_conf_read8(PCI_SBDF(seg, bus, dev, func), pos); in pci_find_cap_offset()
29 id = pci_conf_read8(PCI_SBDF(seg, bus, dev, func), pos + PCI_CAP_LIST_ID); in pci_find_cap_offset()
141 unsigned long seg = simple_strtoul(s, &s, 16), bus, dev, func; in parse_pci_seg() local
160 func = simple_strtoul(s + 1, &s, 0); in parse_pci_seg()
163 func = 0; in parse_pci_seg()
167 func != PCI_FUNC(PCI_DEVFN(0, func)) ) in parse_pci_seg()
175 *func_p = func; in parse_pci_seg()
/xen/xen/arch/arm/arm32/
A Dlivepatch.c14 void arch_livepatch_apply(struct livepatch_func *func) in arch_livepatch_apply() argument
20 BUILD_BUG_ON(ARCH_PATCH_INSN_SIZE > sizeof(func->opaque)); in arch_livepatch_apply()
25 len = livepatch_insn_len(func); in arch_livepatch_apply()
30 memcpy(func->opaque, func->old_addr, len); in arch_livepatch_apply()
32 if ( func->new_addr ) in arch_livepatch_apply()
43 delta = (s32)func->new_addr - (s32)(func->old_addr + 8); in arch_livepatch_apply()
59 new_ptr = func->old_addr - (void *)_start + vmap_of_xen_text; in arch_livepatch_apply()
73 if ( func->new_addr ) in arch_livepatch_apply()
74 clean_and_invalidate_dcache_va_range(func->new_addr, func->new_size); in arch_livepatch_apply()
/xen/xen/drivers/passthrough/amd/
A Diommu_detect.c26 u16 seg, u8 bus, u8 dev, u8 func, struct amd_iommu *iommu) in get_iommu_msi_capabilities() argument
30 pos = pci_find_cap_offset(seg, bus, dev, func, PCI_CAP_ID_MSI); in get_iommu_msi_capabilities()
44 u16 seg, u8 bus, u8 dev, u8 func, u16 cap_ptr, struct amd_iommu *iommu) in get_iommu_capabilities() argument
48 iommu->cap.header = pci_conf_read32(PCI_SBDF(seg, bus, dev, func), cap_ptr); in get_iommu_capabilities()
136 u8 bus, dev, func; in amd_iommu_detect_one_acpi() local
172 func = PCI_FUNC(iommu->bdf); in amd_iommu_detect_one_acpi()
174 rt = get_iommu_capabilities(iommu->seg, bus, dev, func, in amd_iommu_detect_one_acpi()
179 rt = get_iommu_msi_capabilities(iommu->seg, bus, dev, func, iommu); in amd_iommu_detect_one_acpi()
183 rt = pci_ro_device(iommu->seg, bus, PCI_DEVFN(dev, func)); in amd_iommu_detect_one_acpi()
187 iommu->seg, bus, dev, func, rt); in amd_iommu_detect_one_acpi()
/xen/tools/libxl/
A Dlibxl_pci.c35 value |= (pcidev->func & 0x7); in pcidev_encode_bdf()
47 pcidev->func = func; in pcidev_struct_fill()
235 pcidev->dev == dev && pcidev->func == func) { in libxl__device_pci_remove_xenstore()
376 if ( assigned[i].func != func ) in is_pcidev_in_array()
629 unsigned dom, bus, dev, func; in pciback_dev_has_slot() local
642 && func == pcidev->func) { in pciback_dev_has_slot()
770 unsigned dom, bus, dev, func; in libxl__device_pci_assignable_add() local
779 func = pcidev->func; in libxl__device_pci_assignable_add()
801 dom, bus, dev, func); in libxl__device_pci_assignable_add()
1521 pcidevs[i].func == pcidev->func) in libxl_pcidev_assignable()
[all …]
A Dlibxl_save_msgs_gen.pl42 our %func;
86 $func{$name} = "$c_rtype $name$c_decl\n{\n" . ($func{$name} || '');
92 $func{$name} ||= '';
93 $func{$name} .= $addbody;
383 next unless defined $func{$name};
384 $func{$name} .= "}\n\n";
385 $out_body{$func_ah{$name}} .= $func{$name};
386 delete $func{$name};
/xen/tools/hotplug/Linux/
A Dexternal-device-migrate56 local step host domname typ recover filename func stype
89 func="$typ"_recover
90 eval $func $host $domname $step $*
92 func="$typ"_migration_step
93 eval $func $host $domname $step $*
/xen/xen/drivers/char/
A Dehci-dbgp.c336 u8 bus, slot, func, bar; member
698 unsigned int bus, slot, func; in find_dbgp() local
704 for ( func = 0; func < 8; func++ ) in find_dbgp()
710 if ( !func ) in find_dbgp()
718 if ( !func && !(pci_conf_read8(PCI_SBDF(0, bus, slot, func), in find_dbgp()
726 dbgp->func = func; in find_dbgp()
1396 dbgp->bus, dbgp->slot, dbgp->func); in ehci_dbgp_check_release()
1492 unsigned int bus, slot, func; in ehci_dbgp_init() local
1500 dbgp->func = func; in ehci_dbgp_init()
1505 dbgp->cap = __find_dbgp(bus, slot, func); in ehci_dbgp_init()
[all …]
/xen/xen/arch/arm/arm64/
A Dlivepatch.c18 void arch_livepatch_apply(struct livepatch_func *func) in arch_livepatch_apply() argument
24 BUILD_BUG_ON(ARCH_PATCH_INSN_SIZE > sizeof(func->opaque)); in arch_livepatch_apply()
29 len = livepatch_insn_len(func); in arch_livepatch_apply()
34 memcpy(func->opaque, func->old_addr, len); in arch_livepatch_apply()
36 if ( func->new_addr ) in arch_livepatch_apply()
37 insn = aarch64_insn_gen_branch_imm((unsigned long)func->old_addr, in arch_livepatch_apply()
38 (unsigned long)func->new_addr, in arch_livepatch_apply()
46 new_ptr = func->old_addr - (void *)_start + vmap_of_xen_text; in arch_livepatch_apply()
60 if ( func->new_addr ) in arch_livepatch_apply()
61 clean_and_invalidate_dcache_va_range(func->new_addr, func->new_size); in arch_livepatch_apply()
/xen/tools/misc/
A Dxensymoops73 func = "<No function>" # holds the name of the current function being scanned variable
89 func = fm.group(1) variable
103 backtrace.append((stk_addrs[address], address, func))
107 eip_func = func
/xen/tools/ocaml/libs/xentoollog/
A Dxentoollog_stubs.c93 const value *func = caml_named_value(xtl->vmessage_cb); in stub_xtl_ocaml_vmessage() local
96 if (func == NULL) in stub_xtl_ocaml_vmessage()
109 caml_callbackN(*func, 4, args); in stub_xtl_ocaml_vmessage()
123 const value *func = caml_named_value(xtl->progress_cb); in stub_xtl_ocaml_progress() local
125 if (func == NULL) in stub_xtl_ocaml_progress()
135 caml_callbackN(*func, 5, args); in stub_xtl_ocaml_progress()

Completed in 31 milliseconds

1234