Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 169) sorted by relevance

1234567

/xen/tools/tests/x86_emulator/
A Dsimd-sg.c65 # define BG(dt, it, reg, mem, idx, msk, scl) BG_(dt, it, reg, mem, idx, msk, scl) argument
89 # define gather(reg, mem, idx, msk, scl) BG(v16si, si, reg, mem, idx, msk, scl) argument
90 # define scatter(mem, idx, reg, msk, scl) BS(v16si, s, mem, idx, reg, msk, scl) argument
95 # define gather(reg, mem, idx, msk, scl) BG(v16sf, si, reg, mem, idx, msk, scl) argument
96 # define scatter(mem, idx, reg, msk, scl) BS(v16sf, s, mem, idx, reg, msk, scl) argument
98 # define gather(reg, mem, idx, msk, scl) BG(v8df, si, reg, mem, idx, msk, scl) argument
99 # define scatter(mem, idx, reg, msk, scl) BS(v8df, s, mem, idx, reg, msk, scl) argument
217 idx_t idx, inv; in sg_test() local
221 idx[i] = i + 1; in sg_test()
225 touch(idx); in sg_test()
[all …]
/xen/xen/arch/x86/
A Ddomain_page.c67 #define MAPCACHE_L1ENT(idx) \ argument
73 unsigned int idx, i; in map_domain_page() local
100 idx = hashent->idx; in map_domain_page()
101 ASSERT(idx < dcache->entries); in map_domain_page()
144 idx = hashent->idx; in map_domain_page()
164 set_bit(idx, dcache->inuse); in map_domain_page()
165 dcache->cursor = idx + 1; in map_domain_page()
178 unsigned int idx; in unmap_domain_page() local
201 if ( hashent->idx == idx ) in unmap_domain_page()
221 hashent->idx = idx; in unmap_domain_page()
[all …]
A Dio_apic.c716 #define default_EISA_trigger(idx) (EISA_ELCR(mp_irqs[idx].mpc_srcbusirq)) argument
817 static int MPBIOS_trigger(int idx) in MPBIOS_trigger() argument
893 return MPBIOS_polarity(idx); in irq_polarity()
898 return MPBIOS_trigger(idx); in irq_trigger()
946 int apic, idx, pin; in IO_APIC_irq_trigger() local
951 if ((idx != -1) && (irq == pin_2_irq(idx,apic,pin))) in IO_APIC_irq_trigger()
1004 if (idx == -1) { in setup_IO_APIC_irqs()
1020 if (irq_trigger(idx)) { in setup_IO_APIC_irqs()
2286 int idx; in apic_pin_2_gsi_irq() local
2293 return idx >= 0 ? pin_2_irq(idx, apic, pin) in apic_pin_2_gsi_irq()
[all …]
A Dmpparse.c866 int idx = 0; in mp_register_ioapic() local
880 idx = nr_ioapics++; in mp_register_ioapic()
897 mp_ioapics[idx].mpc_apicver = io_apic_get_version(idx); in mp_register_ioapic()
905 io_apic_get_redir_entries(idx); in mp_register_ioapic()
908 "GSI %d-%d\n", idx, mp_ioapics[idx].mpc_apicid, in mp_register_ioapic()
909 mp_ioapics[idx].mpc_apicver, mp_ioapics[idx].mpc_apicaddr, in mp_register_ioapic()
910 mp_ioapic_routing[idx].gsi_base, in mp_register_ioapic()
911 mp_ioapic_routing[idx].gsi_end); in mp_register_ioapic()
1005 int idx; in mp_config_acpi_legacy_irqs() local
1007 for (idx = 0; idx < mp_irq_entries; idx++) { in mp_config_acpi_legacy_irqs()
[all …]
/xen/xen/arch/x86/boot/
A Dx86_64.S121 idx = 0 define
128 idx = idx + 1 define
134 idx = 0 define
141 idx = idx + 1 define
147 idx = 0 define
150 idx = idx + 1 define
157 idx = 0 define
159 .if idx == l3_table_offset(XEN_VIRT_START)
166 idx = idx + 1 define
173 idx = 1 define
[all …]
/xen/xen/include/asm-x86/
A Dfixmap.h72 enum fixed_addresses idx, unsigned long mfn, unsigned long flags);
74 #define set_fixmap(idx, phys) \ argument
75 __set_fixmap(idx, (phys)>>PAGE_SHIFT, PAGE_HYPERVISOR)
77 #define set_fixmap_nocache(idx, phys) \ argument
78 __set_fixmap(idx, (phys)>>PAGE_SHIFT, PAGE_HYPERVISOR_UCMINUS)
80 #define clear_fixmap(idx) __set_fixmap(idx, 0, 0) argument
106 enum fixed_addresses_x idx, unsigned long mfn, unsigned long flags);
108 #define set_fixmap_x(idx, phys) \ argument
109 __set_fixmap_x(idx, (phys)>>PAGE_SHIFT, PAGE_HYPERVISOR_RX | MAP_SMALL_PAGES)
111 #define clear_fixmap_x(idx) __set_fixmap_x(idx, 0, 0) argument
/xen/tools/xenmon/
A Dxenbaked.c783 int idx; in indexof() local
793 for (idx=0; idx<NDOMAINS; idx++) in indexof()
795 return idx; in indexof()
798 for (idx=0; idx<NDOMAINS; idx++) in indexof()
801 return idx; in indexof()
812 for (idx=0; idx<NDOMAINS; idx++) { in indexof()
827 for (idx=0; idx<NDOMAINS; idx++) in indexof()
830 return idx; in indexof()
1054 int idx; in qos_state_sleeping() local
1059 idx = indexof(domid); in qos_state_sleeping()
[all …]
/xen/xen/arch/x86/x86_64/
A Dmmconfig_64.c121 virt = PCI_MCFG_VIRT_START + (idx << mmcfg_pci_segment_shift) + in mcfg_ioremap()
136 int pci_mmcfg_arch_enable(unsigned int idx) in pci_mmcfg_arch_enable() argument
141 if (pci_mmcfg_virt[idx].virt) in pci_mmcfg_arch_enable()
143 pci_mmcfg_virt[idx].virt = mcfg_ioremap(cfg, idx, PAGE_HYPERVISOR_UC); in pci_mmcfg_arch_enable()
144 if (!pci_mmcfg_virt[idx].virt) { in pci_mmcfg_arch_enable()
163 void pci_mmcfg_arch_disable(unsigned int idx) in pci_mmcfg_arch_disable() argument
167 pci_mmcfg_virt[idx].virt = NULL; in pci_mmcfg_arch_disable()
173 mcfg_ioremap(cfg, idx, 0); in pci_mmcfg_arch_disable()
181 unsigned int idx; in pci_mmcfg_decode() local
183 for (idx = 0; idx < pci_mmcfg_config_num; ++idx) { in pci_mmcfg_decode()
[all …]
/xen/stubdom/vtpmmgr/
A Dlog.h62 #define BITMASK(idx) ( 1U << (idx) ) argument
63 #define GETBIT(num,idx) ( ((num) & BITMASK(idx)) >> idx ) argument
64 #define SETBIT(num,idx) (num) |= BITMASK(idx) argument
65 #define CLEARBIT(num,idx) (num) &= ( ~ BITMASK(idx) ) argument
/xen/tools/libxl/
A Dflexarray.c58 int flexarray_set(flexarray_t *array, unsigned int idx, void *ptr) in flexarray_set() argument
60 if (idx >= array->size) { in flexarray_set()
64 newsize = (array->size * 2 < idx) ? idx + 1 : array->size * 2; in flexarray_set()
67 if ( idx + 1 > array->count ) in flexarray_set()
68 array->count = idx + 1; in flexarray_set()
69 array->data[idx] = ptr; in flexarray_set()
101 int flexarray_get(flexarray_t *array, int idx, void **ptr) in flexarray_get() argument
103 if (idx >= array->size) in flexarray_get()
105 *ptr = array->data[idx]; in flexarray_get()
/xen/xen/lib/x86/
A Dmsr.c9 static int copy_msr_to_buffer(uint32_t idx, uint64_t val, in copy_msr_to_buffer() argument
13 const xen_msr_entry_t ent = { .idx = idx, .val = val }; in copy_msr_to_buffer()
32 #define COPY_MSR(idx, val) \ in x86_msr_copy_to_buffer() argument
37 idx, val, msrs, &curr_entry, nr_entries)) ) \ in x86_msr_copy_to_buffer()
86 switch ( data.idx ) in x86_msr_copy_from_buffer()
117 *err_msr = data.idx; in x86_msr_copy_from_buffer()
/xen/xen/include/xen/
A Dgrant_table.h57 int gnttab_map_frame(struct domain *d, unsigned long idx, gfn_t gfn,
59 int gnttab_get_shared_frame(struct domain *d, unsigned long idx,
61 int gnttab_get_status_frame(struct domain *d, unsigned long idx,
90 static inline int gnttab_map_frame(struct domain *d, unsigned long idx, in gnttab_map_frame() argument
96 static inline int gnttab_get_shared_frame(struct domain *d, unsigned long idx, in gnttab_get_shared_frame() argument
102 static inline int gnttab_get_status_frame(struct domain *d, unsigned long idx, in gnttab_get_status_frame() argument
/xen/docs/
A Dgen-html-index97 my $idx = '';
99 $idx .= make_link($of,$dir);
101 return $idx;
106 my $idx = new IO::File "$val", '<' or die "$val $!";
107 while ($_ = $idx->getline()) {
166 my $idx = '';
167 $idx .= <<END;
173 make_page("$outdir/$od/index.html", $secttitle, $idx);
/xen/xen/drivers/char/
A Dconsoled.c48 size_t recv = 0, idx = 0; in consoled_guest_rx() local
75 buf[idx++] = c; in consoled_guest_rx()
78 if ( idx >= BUF_SZ ) in consoled_guest_rx()
81 idx = 0; in consoled_guest_rx()
85 if ( idx ) in consoled_guest_rx()
86 pv_console_puts(buf, idx); in consoled_guest_rx()
A Dserial.c538 int __init serial_irq(int idx) in serial_irq() argument
540 if ( (idx >= 0) && (idx < ARRAY_SIZE(com)) && in serial_irq()
541 com[idx].driver && com[idx].driver->irq ) in serial_irq()
542 return com[idx].driver->irq(&com[idx]); in serial_irq()
547 const struct vuart_info *serial_vuart_info(int idx) in serial_vuart_info() argument
549 if ( (idx >= 0) && (idx < ARRAY_SIZE(com)) && in serial_vuart_info()
550 com[idx].driver && com[idx].driver->vuart_info ) in serial_vuart_info()
551 return com[idx].driver->vuart_info(&com[idx]); in serial_vuart_info()
572 void __init serial_register_uart(int idx, struct uart_driver *driver, in serial_register_uart() argument
576 com[idx].driver = driver; in serial_register_uart()
[all …]
/xen/tools/misc/
A Dxen-livepatch.c338 if ( !flags || idx >= ARRAY_SIZE(flag_options) ) in get_flags()
346 if ( !flag_options[idx][j].name ) in get_flags()
351 *flags |= flag_options[idx][j].flag; in get_flags()
356 if ( j == ARRAY_SIZE(flag_options[idx]) ) in get_flags()
387 int action_func(int argc, char *argv[], unsigned int idx) in action_func() argument
400 if ( idx >= ARRAY_SIZE(action_options) ) in action_func()
406 if ( get_flags(argc, argv, idx, &flags) ) in action_func()
427 if ( status.state == action_options[idx].expected ) in action_func()
434 if ( action_options[idx].allow & status.state ) in action_func()
453 state2str(action_options[idx].allow)); in action_func()
[all …]
/xen/xen/drivers/passthrough/amd/
A Diommu_acpi.c661 unsigned int idx; in parse_ivrs_ioapic() local
674 idx = ioapic_id_to_index(id); in parse_ivrs_ioapic()
675 if ( idx == MAX_IO_APICS ) in parse_ivrs_ioapic()
678 if ( idx == MAX_IO_APICS ) in parse_ivrs_ioapic()
686 ioapic_sbdf[idx].seg = seg; in parse_ivrs_ioapic()
687 ioapic_sbdf[idx].id = id; in parse_ivrs_ioapic()
725 unsigned int apic, idx; in parse_ivhd_device_special() local
757 for ( idx = 0; idx < nr_ioapic_sbdf; idx++ ) in parse_ivhd_device_special()
779 if ( idx != MAX_IO_APICS && ioapic_sbdf[idx].cmdline ) in parse_ivhd_device_special()
782 else if ( idx != MAX_IO_APICS && ioapic_sbdf[idx].pin_2_idx ) in parse_ivhd_device_special()
[all …]
A Diommu_intr.c98 unsigned int idx; in ioapic_id_to_index() local
100 for ( idx = 0 ; idx < nr_ioapic_sbdf; idx++ ) in ioapic_id_to_index()
104 if ( idx == nr_ioapic_sbdf ) in ioapic_id_to_index()
107 return idx; in ioapic_id_to_index()
364 unsigned int idx; in amd_iommu_ioapic_update_ire() local
373 if ( idx == MAX_IO_APICS ) in amd_iommu_ioapic_update_ire()
377 bdf = ioapic_sbdf[idx].bdf; in amd_iommu_ioapic_update_ire()
378 seg = ioapic_sbdf[idx].seg; in amd_iommu_ioapic_update_ire()
463 unsigned int idx; in amd_iommu_read_ioapic_from_ire() local
472 if ( idx == MAX_IO_APICS ) in amd_iommu_read_ioapic_from_ire()
[all …]
/xen/xen/arch/x86/mm/shadow/
A Dcommon.c171 for ( idx = 0; idx < SHADOW_OOS_PAGES; idx++ ) in sh_oos_audit()
223 idx = (idx + 1) % SHADOW_OOS_PAGES; in oos_audit_hash_is_present()
322 idx = (idx + 1) % SHADOW_OOS_PAGES; in oos_fixup_add()
470 idx = (idx + 1) % SHADOW_OOS_PAGES; in oos_hash_add()
475 _sh_resync(v, oos[idx], &oos_fixup[idx], oos_snapshot[idx]); in oos_hash_add()
505 idx = (idx + 1) % SHADOW_OOS_PAGES; in oos_hash_remove()
531 idx = (idx + 1) % SHADOW_OOS_PAGES; in oos_snapshot_lookup()
612 for ( idx = 0; idx < SHADOW_OOS_PAGES; idx++ ) in sh_resync_all()
616 _sh_resync(v, oos[idx], &oos_fixup[idx], oos_snapshot[idx]); in sh_resync_all()
634 for ( idx = 0; idx < SHADOW_OOS_PAGES; idx++ ) in sh_resync_all()
[all …]
/xen/xen/tools/kconfig/
A Dqconf.h92 void addColumn(colIdx idx) in addColumn() argument
94 showColumn(idx); in addColumn()
96 void removeColumn(colIdx idx) in removeColumn() argument
98 hideColumn(idx); in removeColumn()
168 void setText(colIdx idx, const QString& text) in setText() argument
170 Parent::setText(idx, text); in setText()
172 QString text(colIdx idx) const in text() argument
174 return Parent::text(idx); in text()
178 Parent::setIcon(idx, icon); in setPixmap()
180 const QIcon pixmap(colIdx idx) const in pixmap() argument
[all …]
/xen/xen/arch/arm/acpi/
A Dlib.c31 int idx; in __acpi_map_table() local
39 idx = FIXMAP_ACPI_BEGIN; in __acpi_map_table()
42 if ( ++idx > FIXMAP_ACPI_END ) in __acpi_map_table()
45 set_fixmap(idx, maddr_to_mfn(phys), PAGE_HYPERVISOR); in __acpi_map_table()
/xen/xen/drivers/passthrough/vtd/
A Ddmar.h96 #define for_each_rmrr_device(rmrr, bdf, idx) \ argument
99 for (idx = 0; (bdf = rmrr->scope.devices[idx]) && \
100 idx < rmrr->scope.devices_cnt; idx++)
/xen/xen/common/
A Dpdx.c67 unsigned long idx, eidx; in set_pdx_range() local
69 idx = pfn_to_pdx(smfn) / PDX_GROUP_COUNT; in set_pdx_range()
72 for ( ; idx < eidx; ++idx ) in set_pdx_range()
73 __set_bit(idx, pdx_group_valid); in set_pdx_range()
/xen/xen/arch/arm/
A Dvuart.c64 d->arch.vuart.idx = 0; in domain_vuart_init()
96 uart->buf[uart->idx++] = c; in vuart_print_char()
97 if ( (uart->idx == (VUART_BUF_SIZE - 2)) || (c == '\n') ) in vuart_print_char()
100 uart->buf[uart->idx++] = '\n'; in vuart_print_char()
101 uart->buf[uart->idx] = '\0'; in vuart_print_char()
103 uart->idx = 0; in vuart_print_char()
/xen/xen/include/asm-arm/
A Dgrant_table.h74 #define gnttab_set_frame_gfn(gt, st, idx, gfn) \ argument
76 ((st) ? (gt)->arch.status_gfn : (gt)->arch.shared_gfn)[idx] = \
80 #define gnttab_get_frame_gfn(gt, st, idx) ({ \ argument
81 (st) ? gnttab_status_gfn(NULL, gt, idx) \
82 : gnttab_shared_gfn(NULL, gt, idx); \

Completed in 43 milliseconds

1234567