Home
last modified time | relevance | path

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

1234

/xen/xen/arch/x86/include/asm/
A Dalternative.h239 : [addr] "i" (&(func)), "g" (func) \
244 #define alternative_vcall0(func) ({ \ argument
246 (void)sizeof(func()); \
247 (void)alternative_callN(0, int, func); \
250 #define alternative_call0(func) ({ \ argument
252 alternative_callN(0, typeof(func()), func); \
255 #define alternative_vcall1(func, arg) ({ \ argument
267 alternative_callN(1, typeof(func(arg)), func); \
286 alternative_callN(2, typeof(func(arg1, arg2)), func); \
416 #define alternative_vcall(func, args...) \ argument
[all …]
/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()
63 call_data.func = func; in on_selected_cpus()
78 void (*func)(void *info) = call_data.func; in smp_call_function_interrupt() local
87 if ( unlikely(!func) ) in smp_call_function_interrupt()
93 (*func)(info); in smp_call_function_interrupt()
101 (*func)(info); in smp_call_function_interrupt()
A Dtasklet.c94 t->func(t->data); in do_tasklet_work()
202 void tasklet_init(struct tasklet *t, void (*func)(void *data), void *data) in tasklet_init()
207 t->func = func; in tasklet_init()
212 void (*func)(void *data), void *data) in softirq_tasklet_init()
214 tasklet_init(t, func, data); in softirq_tasklet_init()
/xen/xen/include/xen/
A Dtasklet.h24 void (*func)(void *data); 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 *data), void *data);
64 void (*func)(void *data), void *data);
A Dlivepatch.h98 int arch_livepatch_verify_func(const struct livepatch_func *func);
101 unsigned int livepatch_insn_len(const struct livepatch_func *func, in livepatch_insn_len() argument
104 if ( !func->new_addr ) in livepatch_insn_len()
105 return func->new_size - state->patch_offset; in livepatch_insn_len()
110 static inline int livepatch_verify_distance(const struct livepatch_func *func) in livepatch_verify_distance() argument
115 if ( !func->new_addr ) /* Ignore NOPs. */ in livepatch_verify_distance()
118 offset = func->old_addr - func->new_addr; in livepatch_verify_distance()
132 void arch_livepatch_apply(const struct livepatch_func *func,
134 void arch_livepatch_revert(const struct livepatch_func *func,
A Dalternative-call.h62 #define alternative_call(func, args...) (func)(args) argument
63 #define alternative_vcall(func, args...) (func)(args) argument
A Dsmp.h35 void (*func) (void *info),
44 void (*func) (void *info),
58 void (*func) (void *info), in on_each_cpu()
62 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/arch/x86/
A Dlivepatch.c92 int arch_livepatch_verify_func(const struct livepatch_func *func) in arch_livepatch_verify_func() argument
95 if ( !func->new_addr ) in arch_livepatch_verify_func()
98 if ( func->new_size > LIVEPATCH_OPAQUE_SIZE ) in arch_livepatch_verify_func()
101 if ( func->old_size < func->new_size ) in arch_livepatch_verify_func()
112 if ( is_endbr64(func->old_addr) || is_endbr64_poison(func->old_addr) ) in arch_livepatch_verify_func()
115 if ( func->old_size < needed ) in arch_livepatch_verify_func()
134 old_ptr = func->old_addr; in arch_livepatch_apply()
148 len = livepatch_insn_len(func, state); in arch_livepatch_apply()
153 if ( func->new_addr ) in arch_livepatch_apply()
160 val = func->new_addr - (func->old_addr + state->patch_offset + in arch_livepatch_apply()
[all …]
/xen/xen/test/livepatch/
A Dxen_action_hooks_noapply.c28 const struct livepatch_func *func = &payload->funcs[i]; in pre_apply_hook() local
32 printk(KERN_DEBUG "%s: pre applied: %s\n", __func__, func->name); in pre_apply_hook()
48 const struct livepatch_func *func = &payload->funcs[i]; in apply_hook() local
51 printk(KERN_DEBUG "%s: applying: %s\n", __func__, func->name); in apply_hook()
67 const struct livepatch_func *func = &payload->funcs[i]; in post_apply_hook() local
72 printk(KERN_DEBUG "%s: post applied: %s\n", __func__, func->name); in post_apply_hook()
86 const struct livepatch_func *func = &payload->funcs[i]; in pre_revert_hook() local
90 printk(KERN_DEBUG "%s: pre reverted: %s\n", __func__, func->name); in pre_revert_hook()
106 const struct livepatch_func *func = &payload->funcs[i]; in post_revert_hook() local
110 printk(KERN_DEBUG "%s: post reverted: %s\n", __func__, func->name); in post_revert_hook()
A Dxen_prepost_hooks.c33 const 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 const 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 const 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 const 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_marker.c26 const struct livepatch_func *func = &payload->funcs[i]; in pre_apply_hook() local
30 printk(KERN_DEBUG "%s: pre applied: %s\n", __func__, func->name); in pre_apply_hook()
46 const struct livepatch_func *func = &payload->funcs[i]; in post_apply_hook() local
50 printk(KERN_DEBUG "%s: post applied: %s\n", __func__, func->name); in post_apply_hook()
64 const struct livepatch_func *func = &payload->funcs[i]; in pre_revert_hook() local
68 printk(KERN_DEBUG "%s: pre reverted: %s\n", __func__, func->name); in pre_revert_hook()
84 const struct livepatch_func *func = &payload->funcs[i]; in post_revert_hook() local
88 printk(KERN_DEBUG "%s: post reverted: %s\n", __func__, func->name); in post_revert_hook()
A Dxen_action_hooks_norevert.c28 const struct livepatch_func *func = &payload->funcs[i]; in pre_apply_hook() local
32 printk(KERN_DEBUG "%s: pre applied: %s\n", __func__, func->name); in pre_apply_hook()
48 const struct livepatch_func *func = &payload->funcs[i]; in post_apply_hook() local
52 printk(KERN_DEBUG "%s: post applied: %s\n", __func__, func->name); in post_apply_hook()
66 const struct livepatch_func *func = &payload->funcs[i]; in pre_revert_hook() local
70 printk(KERN_DEBUG "%s: pre reverted: %s\n", __func__, func->name); in pre_revert_hook()
86 const struct livepatch_func *func = &payload->funcs[i]; in revert_hook() local
89 printk(KERN_DEBUG "%s: reverting: %s\n", __func__, func->name); in revert_hook()
A Dxen_action_hooks_nofunc.c26 const 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 const 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 const 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()
A Dxen_action_hooks.c29 const struct livepatch_func *func = &payload->funcs[i]; in apply_hook() local
35 printk(KERN_DEBUG "%s: applying: %s\n", __func__, func->name); in apply_hook()
51 const struct livepatch_func *func = &payload->funcs[i]; in revert_hook() local
57 printk(KERN_DEBUG "%s: reverting: %s\n", __func__, func->name); in revert_hook()
73 const struct livepatch_func *func = &payload->funcs[i]; in post_revert_hook() local
75 printk(KERN_DEBUG "%s: reverted: %s\n", __func__, func->name); in post_revert_hook()
/xen/xen/arch/arm/
A Dlivepatch.c69 int arch_livepatch_verify_func(const struct livepatch_func *func) in arch_livepatch_verify_func() argument
72 if ( !func->new_addr && (func->new_size > LIVEPATCH_OPAQUE_SIZE || in arch_livepatch_verify_func()
73 func->new_size % ARCH_PATCH_INSN_SIZE) ) in arch_livepatch_verify_func()
76 if ( func->old_size < ARCH_PATCH_INSN_SIZE ) in arch_livepatch_verify_func()
82 void arch_livepatch_revert(const struct livepatch_func *func, in arch_livepatch_revert() argument
88 new_ptr = func->old_addr - (void *)_start + vmap_of_xen_text; in arch_livepatch_revert()
90 len = livepatch_insn_len(func, state); in arch_livepatch_revert()
/xen/xen/arch/arm/arm32/
A Dlivepatch.c14 void arch_livepatch_apply(const struct livepatch_func *func, in arch_livepatch_apply() argument
26 len = livepatch_insn_len(func, state); in arch_livepatch_apply()
31 memcpy(state->insn_buffer, func->old_addr, len); in arch_livepatch_apply()
33 if ( func->new_addr ) in arch_livepatch_apply()
44 delta = (s32)func->new_addr - (s32)(func->old_addr + 8); in arch_livepatch_apply()
60 new_ptr = func->old_addr - (void *)_start + vmap_of_xen_text; in arch_livepatch_apply()
74 if ( func->new_addr ) in arch_livepatch_apply()
75 clean_and_invalidate_dcache_va_range(func->new_addr, func->new_size); in arch_livepatch_apply()
/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
697 unsigned int bus, slot, func; in find_dbgp() local
703 for ( func = 0; func < 8; func++ ) in find_dbgp()
709 if ( !func ) in find_dbgp()
717 if ( !func && !(pci_conf_read8(PCI_SBDF(0, bus, slot, func), in find_dbgp()
725 dbgp->func = func; in find_dbgp()
1399 dbgp->bus, dbgp->slot, dbgp->func); in ehci_dbgp_check_release()
1505 unsigned int bus, slot, func; in ehci_dbgp_init() local
1513 dbgp->func = func; in ehci_dbgp_init()
1518 dbgp->cap = __find_dbgp(bus, slot, func); in ehci_dbgp_init()
[all …]
/xen/tools/libs/light/
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};
A Dlibxl_pci.c35 value |= (pci->func & 0x7); in pci_encode_bdf()
47 pci->func = func; in pci_struct_fill()
257 pci->dev == dev && pci->func == func) { in libxl__device_pci_remove_xenstore()
662 unsigned dom, bus, dev, func; in pciback_dev_has_slot() local
675 && func == pci->func) { in pciback_dev_has_slot()
759 unsigned dom, bus, dev, func; in libxl__device_pci_assignable_add() local
769 func = pci->func; in libxl__device_pci_assignable_add()
809 dom, bus, dev, func); in libxl__device_pci_assignable_add()
907 pci->dev, pci->func); in libxl__device_pci_assignable_remove()
1773 pci->func = i; in device_pci_add_stubdom_done()
[all …]
/xen/xen/drivers/pci/
A Dpci.c154 unsigned long seg = simple_strtoul(s, &s, 16), bus, dev, func; in parse_pci_seg() local
173 func = simple_strtoul(s + 1, &s, 0); in parse_pci_seg()
176 func = 0; in parse_pci_seg()
180 func != PCI_FUNC(PCI_DEVFN(0, func)) ) in parse_pci_seg()
188 *func_p = func; in parse_pci_seg()
/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(PCI_SBDF(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()
139 u8 bus, dev, func; in amd_iommu_detect_one_acpi() local
215 func = PCI_FUNC(iommu->bdf); in amd_iommu_detect_one_acpi()
217 rt = get_iommu_capabilities(iommu->seg, bus, dev, func, in amd_iommu_detect_one_acpi()
222 rt = get_iommu_msi_capabilities(iommu->seg, bus, dev, func, iommu); in amd_iommu_detect_one_acpi()
231 rt = pci_ro_device(iommu->seg, bus, PCI_DEVFN(dev, func)); in amd_iommu_detect_one_acpi()
/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/xen/arch/arm/arm64/
A Dlivepatch.c18 void arch_livepatch_apply(const struct livepatch_func *func, in arch_livepatch_apply() argument
30 len = livepatch_insn_len(func, state); in arch_livepatch_apply()
35 memcpy(state->insn_buffer, func->old_addr, len); in arch_livepatch_apply()
37 if ( func->new_addr ) in arch_livepatch_apply()
38 insn = aarch64_insn_gen_branch_imm((unsigned long)func->old_addr, in arch_livepatch_apply()
39 (unsigned long)func->new_addr, in arch_livepatch_apply()
47 new_ptr = func->old_addr - (void *)_start + vmap_of_xen_text; in arch_livepatch_apply()
61 if ( func->new_addr ) in arch_livepatch_apply()
62 clean_and_invalidate_dcache_va_range(func->new_addr, func->new_size); in arch_livepatch_apply()

Completed in 44 milliseconds

1234