/xen-4.10.0-shim-comet/xen/arch/x86/x86_64/ |
A D | pci.c | 11 #define PCI_CONF_ADDRESS(bus, dev, func, reg) \ argument 12 (0x80000000 | (bus << 16) | (dev << 11) | (func << 8) | (reg & ~3)) 22 pci_mmcfg_read(seg, bus, PCI_DEVFN(dev, func), reg, 1, &value); in pci_conf_read8() 27 BUG_ON((bus > 255) || (dev > 31) || (func > 7)); in pci_conf_read8() 40 pci_mmcfg_read(seg, bus, PCI_DEVFN(dev, func), reg, 2, &value); in pci_conf_read16() 45 BUG_ON((bus > 255) || (dev > 31) || (func > 7)); in pci_conf_read16() 63 BUG_ON((bus > 255) || (dev > 31) || (func > 7)); in pci_conf_read32() 73 pci_mmcfg_write(seg, bus, PCI_DEVFN(dev, func), reg, 1, data); in pci_conf_write8() 76 BUG_ON((bus > 255) || (dev > 31) || (func > 7)); in pci_conf_write8() 89 BUG_ON((bus > 255) || (dev > 31) || (func > 7)); in pci_conf_write16() [all …]
|
/xen-4.10.0-shim-comet/tools/blktap2/vhd/ |
A D | vhd-util.c | 47 vhd_util_func_t func; member 51 { .name = "create", .func = vhd_util_create }, 52 { .name = "snapshot", .func = vhd_util_snapshot }, 53 { .name = "query", .func = vhd_util_query }, 54 { .name = "read", .func = vhd_util_read }, 55 { .name = "set", .func = vhd_util_set_field }, 56 { .name = "repair", .func = vhd_util_repair }, 57 { .name = "resize", .func = vhd_util_resize }, 58 { .name = "fill", .func = vhd_util_fill }, 59 { .name = "coalesce", .func = vhd_util_coalesce }, [all …]
|
/xen-4.10.0-shim-comet/xen/arch/x86/ |
A D | livepatch.c | 34 if ( !func->new_addr ) in arch_livepatch_verify_func() 37 if ( func->new_size > sizeof(func->opaque) ) in arch_livepatch_verify_func() 40 if ( func->old_size < func->new_size ) in arch_livepatch_verify_func() 43 else if ( func->old_size < ARCH_PATCH_INSN_SIZE ) in arch_livepatch_verify_func() 56 uint8_t insn[sizeof(func->opaque)]; in arch_livepatch_apply() 59 old_ptr = func->old_addr; in arch_livepatch_apply() 60 len = livepatch_insn_len(func); in arch_livepatch_apply() 64 memcpy(func->opaque, old_ptr, len); in arch_livepatch_apply() 65 if ( func->new_addr ) in arch_livepatch_apply() 72 val = func->new_addr - func->old_addr - ARCH_PATCH_INSN_SIZE; in arch_livepatch_apply() [all …]
|
A D | msi.c | 126 u8 bus, slot, func; in memory_decoded() local 132 func = PCI_FUNC(dev->devfn); in memory_decoded() 353 u8 func = PCI_FUNC(dev->devfn); in msi_set_enable() local 366 u8 func = PCI_FUNC(dev->devfn); in msix_set_enable() local 391 u8 bus, slot, func; in msi_set_mask_bit() local 400 func = PCI_FUNC(pdev->devfn); in msi_set_mask_bit() 695 u8 func = PCI_FUNC(dev->devfn); in msi_capability_init() local 852 u8 func = PCI_FUNC(dev->devfn); in msix_capability_init() local 898 pfunc = func; in msix_capability_init() 1101 u8 func = PCI_FUNC(msi->devfn); in __pci_enable_msix() local [all …]
|
/xen-4.10.0-shim-comet/xen/common/ |
A D | smp.c | 29 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-4.10.0-shim-comet/xen/include/xen/ |
A D | tasklet.h | 24 void (*func)(unsigned long); 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) 58 struct tasklet *t, void (*func)(unsigned long), unsigned long data); 60 struct tasklet *t, void (*func)(unsigned long), unsigned long data);
|
A D | livepatch.h | 77 int arch_livepatch_verify_func(const struct livepatch_func *func); 80 unsigned int livepatch_insn_len(const struct livepatch_func *func) in livepatch_insn_len() argument 82 if ( !func->new_addr ) in livepatch_insn_len() 83 return func->new_size; in livepatch_insn_len() 88 static inline int livepatch_verify_distance(const struct livepatch_func *func) in livepatch_verify_distance() argument 93 if ( !func->new_addr ) /* Ignore NOPs. */ in livepatch_verify_distance() 96 offset = func->old_addr - func->new_addr; in livepatch_verify_distance() 109 void arch_livepatch_apply(struct livepatch_func *func); 110 void arch_livepatch_revert(const struct livepatch_func *func);
|
A D | pci.h | 112 bool_t pci_device_detect(u16 seg, u8 bus, u8 dev, u8 func); 137 unsigned int seg, unsigned int bus, unsigned int dev, unsigned int func, 140 unsigned int seg, unsigned int bus, unsigned int dev, unsigned int func, 143 unsigned int seg, unsigned int bus, unsigned int dev, unsigned int func, 146 unsigned int seg, unsigned int bus, unsigned int dev, unsigned int func, 149 unsigned int seg, unsigned int bus, unsigned int dev, unsigned int func, 152 unsigned int seg, unsigned int bus, unsigned int dev, unsigned int func, 160 int pci_find_cap_offset(u16 seg, u8 bus, u8 dev, u8 func, u8 cap); 165 unsigned int *dev, unsigned int *func); 167 unsigned int *dev, unsigned int *func, bool *def_seg);
|
A D | smp.h | 31 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 D | rcupdate.h | 49 void (*func)(struct rcu_head *head); member 52 #define RCU_HEAD_INIT { .next = NULL, .func = NULL } 55 (ptr)->next = NULL; (ptr)->func = NULL; \ 145 void (*func)(struct rcu_head *head));
|
/xen-4.10.0-shim-comet/xen/arch/arm/ |
A D | livepatch.c | 63 int arch_livepatch_verify_func(const struct livepatch_func *func) in arch_livepatch_verify_func() argument 66 if ( !func->new_addr && (func->new_size > sizeof(func->opaque) || in arch_livepatch_verify_func() 67 func->new_size % ARCH_PATCH_INSN_SIZE) ) in arch_livepatch_verify_func() 70 if ( func->old_size < ARCH_PATCH_INSN_SIZE ) in arch_livepatch_verify_func() 76 void arch_livepatch_revert(const struct livepatch_func *func) in arch_livepatch_revert() argument 81 new_ptr = func->old_addr - (void *)_start + vmap_of_xen_text; in arch_livepatch_revert() 83 len = livepatch_insn_len(func); in arch_livepatch_revert() 84 memcpy(new_ptr, func->opaque, len); in arch_livepatch_revert()
|
/xen-4.10.0-shim-comet/xen/drivers/passthrough/vtd/ |
A D | quirks.c | 419 int func = PCI_FUNC(pdev->devfn); in pci_vtd_quirk() local 427 if ( pci_conf_read16(seg, bus, dev, func, PCI_VENDOR_ID) != in pci_vtd_quirk() 442 val = pci_conf_read32(seg, bus, dev, func, 0x1AC); in pci_vtd_quirk() 445 seg, bus, dev, func); in pci_vtd_quirk() 481 seg, bus, dev, func); in pci_vtd_quirk() 501 val = pci_conf_read32(seg, bus, dev, func, 0x20c); in pci_vtd_quirk() 505 action, seg, bus, dev, func); in pci_vtd_quirk() 518 bar = pci_conf_read32(seg, bus, dev, func, 0x6c); in pci_vtd_quirk() 531 seg, bus, dev, func); in pci_vtd_quirk() 535 pa, seg, bus, dev, func); in pci_vtd_quirk() [all …]
|
/xen-4.10.0-shim-comet/xen/drivers/passthrough/amd/ |
A D | iommu_detect.c | 29 u16 seg, u8 bus, u8 dev, u8 func, struct amd_iommu *iommu) in get_iommu_msi_capabilities() argument 33 pos = pci_find_cap_offset(seg, bus, dev, func, PCI_CAP_ID_MSI); in get_iommu_msi_capabilities() 47 u16 seg, u8 bus, u8 dev, u8 func, u16 cap_ptr, struct amd_iommu *iommu) in get_iommu_capabilities() argument 51 iommu->cap.header = pci_conf_read32(seg, bus, dev, func, cap_ptr); in get_iommu_capabilities() 106 u8 bus, dev, func; in amd_iommu_detect_one_acpi() local 142 func = PCI_FUNC(iommu->bdf); in amd_iommu_detect_one_acpi() 144 rt = get_iommu_capabilities(iommu->seg, bus, dev, func, in amd_iommu_detect_one_acpi() 149 rt = get_iommu_msi_capabilities(iommu->seg, bus, dev, func, iommu); in amd_iommu_detect_one_acpi() 153 rt = pci_ro_device(iommu->seg, bus, PCI_DEVFN(dev, func)); in amd_iommu_detect_one_acpi() 157 iommu->seg, bus, dev, func, rt); in amd_iommu_detect_one_acpi()
|
/xen-4.10.0-shim-comet/xen/drivers/pci/ |
A D | pci.c | 11 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(seg, bus, dev, func, PCI_STATUS); in pci_find_cap_offset() 24 pos = pci_conf_read8(seg, bus, dev, func, pos); in pci_find_cap_offset() 29 id = pci_conf_read8(seg, bus, dev, func, pos + PCI_CAP_LIST_ID); in pci_find_cap_offset() 131 unsigned long seg = simple_strtoul(s, &s, 16), bus, dev, func; in parse_pci_seg() local 150 func = simple_strtoul(s + 1, &s, 0); in parse_pci_seg() 153 func = 0; in parse_pci_seg() 157 func != PCI_FUNC(PCI_DEVFN(0, func)) ) in parse_pci_seg() 165 *func_p = func; in parse_pci_seg()
|
/xen-4.10.0-shim-comet/tools/libxl/ |
A D | libxl_pci.c | 34 value |= (pcidev->func & 0x7); in pcidev_encode_bdf() 46 pcidev->func = func; in pcidev_struct_fill() 221 pcidev->dev == dev && pcidev->func == func) { in libxl__device_pci_remove_xenstore() 359 if ( assigned[i].func != func ) in is_pcidev_in_array() 612 unsigned dom, bus, dev, func; in pciback_dev_has_slot() local 625 && func == pcidev->func) { in pciback_dev_has_slot() 752 unsigned dom, bus, dev, func; in libxl__device_pci_assignable_add() local 761 func = pcidev->func; in libxl__device_pci_assignable_add() 783 dom, bus, dev, func); in libxl__device_pci_assignable_add() 1178 pcidevs[i].func == pcidev->func) in libxl_pcidev_assignable() [all …]
|
A D | libxl_save_msgs_gen.pl | 41 our %func; 85 $func{$name} = "$c_rtype $name$c_decl\n{\n" . ($func{$name} || ''); 91 $func{$name} ||= ''; 92 $func{$name} .= $addbody; 382 next unless defined $func{$name}; 383 $func{$name} .= "}\n\n"; 384 $out_body{$func_ah{$name}} .= $func{$name}; 385 delete $func{$name};
|
/xen-4.10.0-shim-comet/xen/arch/arm/arm32/ |
A D | livepatch.c | 14 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-4.10.0-shim-comet/tools/blktap2/drivers/ |
A D | profile.h | 130 __tp_in(struct profile_info *prof, const char *func) in __tp_in() argument 133 int idx = tp_fn_id(prof, func); in __tp_in() 137 pt->fn_name = strdup(func); in __tp_in() 146 __tp_out(struct profile_info *prof, const char *func) in __tp_out() argument 149 int idx = tp_fn_id(prof, func); in __tp_out() 164 __tp_log(struct profile_info *prof, u64 id, const char *func, int direction) in __tp_log() argument 170 __tp_in(prof, func); in __tp_log() 172 __tp_out(prof, func); in __tp_log() 176 fprintf(prof->log, "%s: %s: %llu, %lld\n", func, in __tp_log()
|
A D | tapdisk-log.c | 48 char *func; member 108 __tlog_write(int level, const char *func, const char *fmt, ...) in __tlog_write() argument 132 t.tv_sec, (unsigned long long)t.tv_usec, func); in __tlog_write() 147 __tlog_error(int err, const char *func, const char *fmt, ...) in __tlog_error() argument 158 if (e->err == err && e->func == func) { in __tlog_error() 173 t.tv_sec, (unsigned long long)t.tv_usec, func); in __tlog_error() 185 e->func = (char *)func; in __tlog_error() 198 "%s\n", e->err, e->func, e->cnt, e->msg); in tlog_print_errors() 215 "(cnt = %d): %s\n", e->err, e->func, e->cnt, in tlog_flush_errors()
|
/xen-4.10.0-shim-comet/tools/hotplug/Linux/ |
A D | external-device-migrate | 56 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-4.10.0-shim-comet/xen/drivers/passthrough/ |
A D | pci.c | 254 u8 func = PCI_FUNC(pdev->devfn); in check_pdev() local 408 u8 dev, func, sec_bus, sub_bus; in free_pdev() local 413 func = PCI_FUNC(pdev->devfn); in free_pdev() 574 u8 func = PCI_FUNC(pdev->devfn); in pci_enable_acs() local 757 seg, bus, slot, func); in pci_add_device() 760 func += pdev->phantom_stride; in pci_add_device() 761 if ( PCI_SLOT(func) ) in pci_add_device() 1002 int bus, dev, func; in _scan_pci_devices() local 1008 for ( func = 0; func < 8; func++ ) in _scan_pci_devices() 1012 if ( !func ) in _scan_pci_devices() [all …]
|
/xen-4.10.0-shim-comet/xen/drivers/char/ |
A D | ehci-dbgp.c | 335 u8 bus, slot, func, bar; member 696 unsigned int bus, slot, func; in find_dbgp() local 702 for ( func = 0; func < 8; func++ ) in find_dbgp() 708 if ( !func ) in find_dbgp() 716 if ( !func && !(pci_conf_read8(0, bus, slot, func, in find_dbgp() 724 dbgp->func = func; in find_dbgp() 1387 dbgp->bus, dbgp->slot, dbgp->func); in ehci_dbgp_check_release() 1482 unsigned int bus, slot, func; in ehci_dbgp_init() local 1490 dbgp->func = func; in ehci_dbgp_init() 1495 dbgp->cap = __find_dbgp(bus, slot, func); in ehci_dbgp_init() [all …]
|
/xen-4.10.0-shim-comet/tools/blktap2/control/ |
A D | tap-ctl.c | 41 tap_ctl_func_t func; member 706 { .name = "list", .func = tap_cli_list }, 707 { .name = "allocate", .func = tap_cli_allocate }, 708 { .name = "free", .func = tap_cli_free }, 709 { .name = "create", .func = tap_cli_create }, 710 { .name = "destroy", .func = tap_cli_destroy }, 711 { .name = "spawn", .func = tap_cli_spawn }, 712 { .name = "attach", .func = tap_cli_attach }, 713 { .name = "detach", .func = tap_cli_detach }, 714 { .name = "open", .func = tap_cli_open }, [all …]
|
/xen-4.10.0-shim-comet/xen/arch/arm/arm64/ |
A D | livepatch.c | 18 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-4.10.0-shim-comet/tools/misc/ |
A D | xensymoops | 73 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
|