Home
last modified time | relevance | path

Searched refs:new_val (Results 1 – 11 of 11) sorted by relevance

/arch/arm/include/asm/
Dfloppy.h14 int new_val = (val); \
16 if (new_val & 0xf0) \
17 new_val = (new_val & 0x0c) | \
18 floppy_selects[new_val & 3]; \
20 new_val &= 0x0c; \
22 outb(new_val, (base) + (reg)); \
/arch/x86/include/asm/xen/
Dhypercall.h344 HYPERVISOR_update_va_mapping(unsigned long va, pte_t new_val, in HYPERVISOR_update_va_mapping() argument
347 if (sizeof(new_val) == sizeof(long)) in HYPERVISOR_update_va_mapping()
349 new_val.pte, flags); in HYPERVISOR_update_va_mapping()
352 new_val.pte, new_val.pte >> 32, flags); in HYPERVISOR_update_va_mapping()
460 pte_t new_val, unsigned long flags) in MULTI_update_va_mapping() argument
464 if (sizeof(new_val) == sizeof(long)) { in MULTI_update_va_mapping()
465 mcl->args[1] = new_val.pte; in MULTI_update_va_mapping()
468 mcl->args[1] = new_val.pte; in MULTI_update_va_mapping()
469 mcl->args[2] = new_val.pte >> 32; in MULTI_update_va_mapping()
473 trace_xen_mc_entry(mcl, sizeof(new_val) == sizeof(long) ? 3 : 4); in MULTI_update_va_mapping()
/arch/sparc/kernel/
Dprom_common.c54 void *new_val; in of_set_property() local
57 new_val = kmemdup(val, len, GFP_KERNEL); in of_set_property()
58 if (!new_val) in of_set_property()
77 prop->value = new_val; in of_set_property()
/arch/riscv/mm/
Dpageattr.c20 unsigned long new_val = val; in set_pageattr_masks() local
22 new_val &= ~(pgprot_val(masks->clear_mask)); in set_pageattr_masks()
23 new_val |= (pgprot_val(masks->set_mask)); in set_pageattr_masks()
25 return new_val; in set_pageattr_masks()
/arch/x86/kernel/
Di8259.c305 unsigned char new_val, probe_val = ~(1 << PIC_CASCADE_IR); in probe_8259A() local
336 new_val = inb(PIC_MASTER_IMR); in probe_8259A()
337 if (new_val != probe_val) { in probe_8259A()
/arch/x86/kvm/
Dioapic.c112 bool new_val, old_val; in __rtc_irq_eoi_tracking_restore_one() local
123 new_val = kvm_apic_pending_eoi(vcpu, e->fields.vector); in __rtc_irq_eoi_tracking_restore_one()
126 if (new_val == old_val) in __rtc_irq_eoi_tracking_restore_one()
129 if (new_val) { in __rtc_irq_eoi_tracking_restore_one()
Demulate.c4239 u64 new_val = ctxt->src.val64; in check_dr_write() local
4242 if ((dr == 6 || dr == 7) && (new_val & 0xffffffff00000000ULL)) in check_dr_write()
Dx86.c7288 static u64 mk_cr_64(u64 curr_cr, u32 new_val) in mk_cr_64() argument
7290 return (curr_cr & ~((1ULL << 32) - 1)) | new_val; in mk_cr_64()
/arch/s390/kvm/
Dinterrupt.c84 union esca_sigp_ctrl new_val = {0}, old_val; in sca_inject_ext_call() local
87 new_val.scn = src_id; in sca_inject_ext_call()
88 new_val.c = 1; in sca_inject_ext_call()
92 rc = cmpxchg(&sigp_ctrl->value, old_val.value, new_val.value); in sca_inject_ext_call()
97 union bsca_sigp_ctrl new_val = {0}, old_val; in sca_inject_ext_call() local
100 new_val.scn = src_id; in sca_inject_ext_call()
101 new_val.c = 1; in sca_inject_ext_call()
105 rc = cmpxchg(&sigp_ctrl->value, old_val.value, new_val.value); in sca_inject_ext_call()
/arch/powerpc/include/asm/book3s/64/
Dpgtable.h1402 static inline bool is_pte_rw_upgrade(unsigned long old_val, unsigned long new_val) in is_pte_rw_upgrade() argument
1407 if ((!(old_val & _PAGE_WRITE)) && (new_val & _PAGE_WRITE)) in is_pte_rw_upgrade()
/arch/x86/kvm/mmu/
Dmmu.c6072 bool new_val; in set_nx_huge_pages() local
6076 new_val = 0; in set_nx_huge_pages()
6078 new_val = 1; in set_nx_huge_pages()
6080 new_val = get_nx_auto_mode(); in set_nx_huge_pages()
6081 else if (strtobool(val, &new_val) < 0) in set_nx_huge_pages()
6084 __set_nx_huge_pages(new_val); in set_nx_huge_pages()
6086 if (new_val != old_val) { in set_nx_huge_pages()