Home
last modified time | relevance | path

Searched refs:mc (Results 1 – 25 of 36) sorted by relevance

12

/arch/x86/um/shared/sysdep/
Dmcontext.h13 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument
15 (fi).cr2 = (mc)->cr2; \
16 (fi).error_code = (mc)->gregs[REG_ERR]; \
17 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
22 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument
24 (fi).cr2 = (mc)->gregs[REG_CR2]; \
25 (fi).error_code = (mc)->gregs[REG_ERR]; \
26 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
/arch/x86/include/asm/
Dmicrocode_intel.h45 #define get_totalsize(mc) \ argument
46 (((struct microcode_intel *)mc)->hdr.totalsize ? \
47 ((struct microcode_intel *)mc)->hdr.totalsize : \
50 #define get_datasize(mc) \ argument
51 (((struct microcode_intel *)mc)->hdr.datasize ? \
52 ((struct microcode_intel *)mc)->hdr.datasize : DEFAULT_UCODE_DATASIZE)
60 get_matching_microcode(unsigned int csig, int cpf, void *mc, int rev);
61 extern int microcode_sanity_check(void *mc, int print_err);
62 extern int get_matching_sig(unsigned int csig, int cpf, void *mc, int rev);
77 extern int save_mc_for_early(u8 *mc);
[all …]
Dmicrocode.h36 void *mc; member
/arch/mn10300/include/asm/
Dmmu_context.h66 unsigned long mc = ++(*pmc); in allocate_mmu_context() local
68 if (!(mc & MMU_CONTEXT_TLBPID_MASK)) { in allocate_mmu_context()
75 if (!mc) in allocate_mmu_context()
76 *pmc = mc = MMU_CONTEXT_FIRST_VERSION; in allocate_mmu_context()
78 mm_context(mm) = mc; in allocate_mmu_context()
79 return mc; in allocate_mmu_context()
87 unsigned long mc = MMU_NO_CONTEXT, cache; in get_mmu_context() local
91 mc = mm_context(mm); in get_mmu_context()
94 if ((mc ^ cache) & MMU_CONTEXT_VERSION_MASK) in get_mmu_context()
95 mc = allocate_mmu_context(mm); in get_mmu_context()
[all …]
/arch/x86/kernel/
Dmicrocode_intel.c139 mc_intel = uci->mc; in apply_microcode()
188 u8 *ucode_ptr = data, *new_mc = NULL, *mc = NULL; in generic_load_microcode() local
209 if (!mc || mc_size > curr_mc_size) { in generic_load_microcode()
210 vfree(mc); in generic_load_microcode()
211 mc = vmalloc(mc_size); in generic_load_microcode()
212 if (!mc) in generic_load_microcode()
217 if (get_ucode_data(mc, ucode_ptr, mc_size) || in generic_load_microcode()
218 microcode_sanity_check(mc, 1) < 0) { in generic_load_microcode()
224 if (get_matching_microcode(csig, cpf, mc, new_rev)) { in generic_load_microcode()
227 new_mc = mc; in generic_load_microcode()
[all …]
Dmicrocode_intel_lib.c47 int microcode_sanity_check(void *mc, int print_err) in microcode_sanity_check() argument
50 struct microcode_header_intel *mc_header = mc; in microcode_sanity_check()
77 ext_header = mc + MC_HEADER_SIZE + data_size; in microcode_sanity_check()
105 orig_sum += ((int *)mc)[i]; in microcode_sanity_check()
134 int get_matching_sig(unsigned int csig, int cpf, void *mc, int rev) in get_matching_sig() argument
136 struct microcode_header_intel *mc_header = mc; in get_matching_sig()
149 ext_header = mc + get_datasize(mc_header) + MC_HEADER_SIZE; in get_matching_sig()
165 int get_matching_microcode(unsigned int csig, int cpf, void *mc, int rev) in get_matching_microcode() argument
167 struct microcode_header_intel *mc_header = mc; in get_matching_microcode()
172 return get_matching_sig(csig, cpf, mc, rev); in get_matching_microcode()
Dmicrocode_intel_early.c67 uci->mc = (struct microcode_intel *)new_mc; in generic_load_microcode_early()
222 struct microcode_intel *mc = mc_saved_src[i]; in save_microcode() local
223 struct microcode_header_intel *mc_header = &mc->hdr; in save_microcode()
234 memcpy(mc_saved_p[i], mc, mc_size); in save_microcode()
498 int save_mc_for_early(u8 *mc) in save_mc_for_early() argument
525 _save_mc(mc_saved_tmp, mc, &mc_saved_count); in save_mc_for_early()
630 mc_intel = uci->mc; in print_ucode()
655 mc_intel = uci->mc; in print_ucode()
669 mc_intel = uci->mc; in apply_microcode_early()
Dmicrocode_amd.c235 uci->mc = p->data; in apply_microcode_amd()
467 uci->mc = NULL; in microcode_fini_cpu_amd()
/arch/avr32/include/asm/
Dmmu_context.h43 unsigned long mc = mmu_context_cache; in get_mmu_context() local
45 if (((mm->context ^ mc) & MMU_CONTEXT_VERSION_MASK) == 0) in get_mmu_context()
50 mc = ++mmu_context_cache; in get_mmu_context()
51 if (!(mc & MMU_CONTEXT_ASID_MASK)) { in get_mmu_context()
61 if (!mc) in get_mmu_context()
62 mmu_context_cache = mc = MMU_CONTEXT_FIRST_VERSION; in get_mmu_context()
64 mm->context = mc; in get_mmu_context()
/arch/um/os-Linux/
Dsignal.c28 static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler_common() argument
36 get_regs_from_mc(&r, mc); in sig_handler_common()
37 GET_FAULTINFO_FROM_MC(r.faultinfo, mc); in sig_handler_common()
64 void sig_handler(int sig, struct siginfo *si, mcontext_t *mc) in sig_handler() argument
76 sig_handler_common(sig, si, mc); in sig_handler()
81 static void real_alarm_handler(mcontext_t *mc) in real_alarm_handler() argument
85 if (mc != NULL) in real_alarm_handler()
86 get_regs_from_mc(&regs, mc); in real_alarm_handler()
92 void alarm_handler(int sig, struct siginfo *unused_si, mcontext_t *mc) in alarm_handler() argument
104 real_alarm_handler(mc); in alarm_handler()
[all …]
Dinternal.h1 void alarm_handler(int sig, struct siginfo *unused_si, mcontext_t *mc);
/arch/x86/um/os-Linux/
Dmcontext.c6 void get_regs_from_mc(struct uml_pt_regs *regs, mcontext_t *mc) in get_regs_from_mc() argument
9 #define COPY2(X,Y) regs->gp[X] = mc->gregs[REG_##Y] in get_regs_from_mc()
10 #define COPY(X) regs->gp[X] = mc->gregs[REG_##X] in get_regs_from_mc()
11 #define COPY_SEG(X) regs->gp[X] = mc->gregs[REG_##X] & 0xffff; in get_regs_from_mc()
12 #define COPY_SEG_CPL3(X) regs->gp[X] = (mc->gregs[REG_##X] & 0xffff) | 3; in get_regs_from_mc()
19 #define COPY2(X,Y) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y] in get_regs_from_mc()
20 #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X] in get_regs_from_mc()
/arch/x86/xen/
Dmulticalls.c58 struct multicall_entry *mc; in xen_mc_flush() local
80 mc = &b->entries[0]; in xen_mc_flush()
82 mc->result = privcmd_call(mc->op, in xen_mc_flush()
83 mc->args[0], mc->args[1], mc->args[2], in xen_mc_flush()
84 mc->args[3], mc->args[4]); in xen_mc_flush()
85 ret = mc->result < 0; in xen_mc_flush()
151 ret.mc = &b->entries[b->mcidx]; in __xen_mc_entry()
182 ret.mc = &b->entries[b->mcidx - 1]; in xen_mc_extend_args()
Dmulticalls.h11 struct multicall_entry *mc; member
Dmmu.c210 MULTI_mmu_update(mcs.mc, mcs.args, 1, NULL, domid); in xen_set_domain_pte()
223 if (mcs.mc != NULL) { in xen_extend_mmu_update()
224 mcs.mc->args[1]++; in xen_extend_mmu_update()
227 MULTI_mmu_update(mcs.mc, mcs.args, 1, NULL, DOMID_SELF); in xen_extend_mmu_update()
241 if (mcs.mc != NULL) { in xen_extend_mmuext_op()
242 mcs.mc->args[1]++; in xen_extend_mmuext_op()
245 MULTI_mmuext_op(mcs.mc, mcs.args, 1, NULL, DOMID_SELF); in xen_extend_mmuext_op()
867 MULTI_update_va_mapping(mcs.mc, (unsigned long)pt, in xen_pin_page()
999 MULTI_update_va_mapping(mcs.mc, (unsigned long)pt, in xen_unpin_page()
1290 MULTI_mmuext_op(mcs.mc, op, 1, NULL, DOMID_SELF); in xen_flush_tlb_all()
[all …]
Denlighten.c536 MULTI_mmuext_op(mcs.mc, op, 1, NULL, DOMID_SELF); in xen_set_ldt()
637 struct multicall_space mc; in load_TLS_descriptor() local
646 mc = __xen_mc_entry(0); in load_TLS_descriptor()
648 MULTI_update_descriptor(mc.mc, maddr.maddr, t->tls_array[i]); in load_TLS_descriptor()
907 MULTI_stack_switch(mcs.mc, __KERNEL_DS, thread->sp0); in xen_load_sp0()
1016 MULTI_fpu_taskswitch(mcs.mc, 0); in xen_clts()
1045 MULTI_fpu_taskswitch(mcs.mc, (cr0 & X86_CR0_TS) != 0); in xen_write_cr0()
/arch/m32r/include/asm/
Dmmu_context.h41 unsigned long mc = ++mmu_context_cache; in get_new_mmu_context() local
43 if (!(mc & MMU_CONTEXT_ASID_MASK)) { in get_new_mmu_context()
49 if (!mc) in get_new_mmu_context()
50 mmu_context_cache = mc = MMU_CONTEXT_FIRST_VERSION; in get_new_mmu_context()
52 mm_context(mm) = mc; in get_new_mmu_context()
61 unsigned long mc = mmu_context_cache; in get_mmu_context() local
65 if ((mm_context(mm) ^ mc) & MMU_CONTEXT_VERSION_MASK) in get_mmu_context()
/arch/arm64/crypto/
Daes-ce.S46 .macro do_enc_Nx, de, mc, k, i0, i1, i2, i3
55 aes\mc \i0\().16b, \i0\().16b
57 aes\mc \i1\().16b, \i1\().16b
59 aes\mc \i2\().16b, \i2\().16b
60 aes\mc \i3\().16b, \i3\().16b
68 do_enc_Nx e, mc, \k, \i0, \i1, \i2, \i3
/arch/arm/kvm/
Dmmu.c73 static void mmu_free_memory_cache(struct kvm_mmu_memory_cache *mc) in mmu_free_memory_cache() argument
75 while (mc->nobjs) in mmu_free_memory_cache()
76 free_page((unsigned long)mc->objects[--mc->nobjs]); in mmu_free_memory_cache()
79 static void *mmu_memory_cache_alloc(struct kvm_mmu_memory_cache *mc) in mmu_memory_cache_alloc() argument
83 BUG_ON(!mc || !mc->nobjs); in mmu_memory_cache_alloc()
84 p = mc->objects[--mc->nobjs]; in mmu_memory_cache_alloc()
/arch/mips/sgi-ip22/
DMakefile6 obj-y += ip22-mc.o ip22-hpc.o ip22-int.o ip22-time.o ip22-nvram.o \
/arch/um/drivers/
Dstdio_console.c60 .mc = {
61 .list = LIST_HEAD_INIT(driver.mc.list),
Dssl.c55 .mc = {
56 .list = LIST_HEAD_INIT(driver.mc.list),
Dline.h30 struct mc_device mc; member
/arch/powerpc/boot/dts/
Ddigsy_mtc.dts81 compatible = "mc,rv3029c2";
/arch/x86/kvm/
Dmmu.c641 static void mmu_free_memory_cache(struct kvm_mmu_memory_cache *mc, in mmu_free_memory_cache() argument
644 while (mc->nobjs) in mmu_free_memory_cache()
645 kmem_cache_free(cache, mc->objects[--mc->nobjs]); in mmu_free_memory_cache()
664 static void mmu_free_memory_cache_page(struct kvm_mmu_memory_cache *mc) in mmu_free_memory_cache_page() argument
666 while (mc->nobjs) in mmu_free_memory_cache_page()
667 free_page((unsigned long)mc->objects[--mc->nobjs]); in mmu_free_memory_cache_page()
696 static void *mmu_memory_cache_alloc(struct kvm_mmu_memory_cache *mc) in mmu_memory_cache_alloc() argument
700 BUG_ON(!mc->nobjs); in mmu_memory_cache_alloc()
701 p = mc->objects[--mc->nobjs]; in mmu_memory_cache_alloc()

12