Home
last modified time | relevance | path

Searched full:va (Results 1 – 25 of 497) sorted by relevance

12345678910>>...20

/linux-3.3/net/sunrpc/xprtrdma/
Dsvc_rdma_marshal.c58 static u32 *decode_read_list(u32 *va, u32 *vaend) in decode_read_list() argument
60 struct rpcrdma_read_chunk *ch = (struct rpcrdma_read_chunk *)va; in decode_read_list()
75 va = (u32 *)&ch->rc_target.rs_offset; in decode_read_list()
76 xdr_decode_hyper(va, &ch_offset); in decode_read_list()
77 put_unaligned(ch_offset, (u64 *)va); in decode_read_list()
105 * offset : remove va + <count>
109 static u32 *decode_write_list(u32 *va, u32 *vaend) in decode_write_list() argument
113 (struct rpcrdma_write_array *)va; in decode_write_list()
140 va = (u32 *)&ary->wc_array[ch_no].wc_target.rs_offset; in decode_write_list()
141 xdr_decode_hyper(va, &ch_offset); in decode_write_list()
[all …]
/linux-3.3/arch/powerpc/mm/
Dhash_native_64.c42 static inline void __tlbie(unsigned long va, int psize, int ssize) in __tlbie() argument
47 va &= ~(0xffffULL << 48); in __tlbie()
51 va &= ~0xffful; in __tlbie()
52 va |= ssize << 8; in __tlbie()
54 : : "r" (va), "r"(0), "i" (CPU_FTR_ARCH_206) in __tlbie()
59 va &= ~((1ul << mmu_psize_defs[psize].shift) - 1); in __tlbie()
60 va |= penc << 12; in __tlbie()
61 va |= ssize << 8; in __tlbie()
62 va |= 1; /* L */ in __tlbie()
64 : : "r" (va), "r"(0), "i" (CPU_FTR_ARCH_206) in __tlbie()
[all …]
Dhugetlbpage-hash64.c22 unsigned long va, rflags, pa, sz; in __hash_page_huge() local
27 /* Search the Linux page table for a match with va */ in __hash_page_huge()
28 va = hpt_va(ea, vsid, ssize); in __hash_page_huge()
72 hash = hpt_hash(va, shift, ssize); in __hash_page_huge()
78 if (ppc_md.hpte_updatepp(slot, rflags, va, mmu_psize, in __hash_page_huge()
84 unsigned long hash = hpt_hash(va, shift, ssize); in __hash_page_huge()
104 slot = ppc_md.hpte_insert(hpte_group, va, pa, rflags, 0, in __hash_page_huge()
111 slot = ppc_md.hpte_insert(hpte_group, va, pa, rflags, in __hash_page_huge()
/linux-3.3/arch/ia64/kvm/
Dvtlb.c33 * Check to see if the address rid:va is translated by the TLB
36 static int __is_tr_translated(struct thash_data *trp, u64 rid, u64 va) in __is_tr_translated() argument
39 && ((va-trp->vadr) < PSIZE(trp->ps))); in __is_tr_translated()
62 void machine_tlb_purge(u64 va, u64 ps) in machine_tlb_purge() argument
64 ia64_ptcl(va, ps << 2); in machine_tlb_purge()
116 struct thash_data *vsa_thash(union ia64_pta vpta, u64 va, u64 vrr, u64 *tag) in vsa_thash() argument
121 pfn = REGION_OFFSET(va) >> _REGION_PAGE_SIZE(vrr); in vsa_thash()
130 struct thash_data *__vtr_lookup(struct kvm_vcpu *vcpu, u64 va, int type) in __vtr_lookup() argument
137 rid = vcpu_get_rr(vcpu, va); in __vtr_lookup()
140 if (vcpu_quick_region_check(vcpu->arch.dtr_regions, va)) { in __vtr_lookup()
[all …]
/linux-3.3/mm/
Dvmalloc.c280 struct vmap_area *va; in __find_vmap_area() local
282 va = rb_entry(n, struct vmap_area, rb_node); in __find_vmap_area()
283 if (addr < va->va_start) in __find_vmap_area()
285 else if (addr > va->va_start) in __find_vmap_area()
288 return va; in __find_vmap_area()
294 static void __insert_vmap_area(struct vmap_area *va) in __insert_vmap_area() argument
305 if (va->va_start < tmp_va->va_end) in __insert_vmap_area()
307 else if (va->va_end > tmp_va->va_start) in __insert_vmap_area()
313 rb_link_node(&va->rb_node, parent, p); in __insert_vmap_area()
314 rb_insert_color(&va->rb_node, &vmap_area_root); in __insert_vmap_area()
[all …]
/linux-3.3/drivers/iommu/
Domap-iovmm.c155 /* map 'sglist' to a contiguous mpu virtual area and return 'va' */
158 u32 va; in vmap_sg() local
176 va = (u32)new->addr; in vmap_sg()
188 err = ioremap_page(va, pa, mtype); in vmap_sg()
192 va += bytes; in vmap_sg()
205 static inline void vunmap_sg(const void *va) in vunmap_sg() argument
207 vunmap(va); in vunmap_sg()
350 * @va: mpu virtual address
357 void *va = NULL; in omap_da_to_va() local
367 va = area->va; in omap_da_to_va()
[all …]
/linux-3.3/arch/powerpc/platforms/cell/
Dbeat_htab.c91 unsigned long va, unsigned long pa, in beat_lpar_hpte_insert() argument
103 DBG_LOW("hpte_insert(group=%lx, va=%016lx, pa=%016lx, " in beat_lpar_hpte_insert()
105 hpte_group, va, pa, rflags, vflags, psize); in beat_lpar_hpte_insert()
107 hpte_v = hpte_encode_v(va, psize, MMU_SEGSIZE_256M) | in beat_lpar_hpte_insert()
188 unsigned long va, in beat_lpar_hpte_updatepp() argument
195 want_v = hpte_encode_v(va, psize, MMU_SEGSIZE_256M); in beat_lpar_hpte_updatepp()
224 static long beat_lpar_hpte_find(unsigned long va, int psize) in beat_lpar_hpte_find() argument
231 hash = hpt_hash(va, mmu_psize_defs[psize].shift, MMU_SEGSIZE_256M); in beat_lpar_hpte_find()
232 want_v = hpte_encode_v(va, psize, MMU_SEGSIZE_256M); in beat_lpar_hpte_find()
259 unsigned long lpar_rc, slot, vsid, va; in beat_lpar_hpte_updateboltedpp() local
[all …]
/linux-3.3/arch/frv/mm/
Ddma-alloc.c50 static int map_page(unsigned long va, unsigned long pa, pgprot_t prot) in map_page() argument
58 /* Use upper 10 bits of VA to index the first level map */ in map_page()
59 pge = pgd_offset_k(va); in map_page()
60 pue = pud_offset(pge, va); in map_page()
61 pme = pmd_offset(pue, va); in map_page()
63 /* Use middle 10 bits of VA to index the second-level map */ in map_page()
64 pte = pte_alloc_kernel(pme, va); in map_page()
84 unsigned long page, va, pa; in consistent_alloc() local
107 va = VMALLOC_VMADDR(area->addr); in consistent_alloc()
108 ret = (void *) va; in consistent_alloc()
[all …]
/linux-3.3/drivers/dio/
Ddio.c122 void *va; in dio_find() local
134 va = (void *)(pa + DIO_VIRADDRBASE); in dio_find()
136 va = ioremap(pa, PAGE_SIZE); in dio_find()
141 if (get_user(i, (unsigned char *)va + DIO_IDOFF)) { in dio_find()
144 iounmap(va); in dio_find()
149 prid = DIO_ID(va); in dio_find()
152 secid = DIO_SECID(va); in dio_find()
159 iounmap(va); in dio_find()
201 u_char *va; in dio_init() local
213 va = (void *)(pa + DIO_VIRADDRBASE); in dio_init()
[all …]
/linux-3.3/arch/powerpc/platforms/pseries/
Dlpar.c110 unsigned long va, unsigned long pa, in pSeries_lpar_hpte_insert() argument
120 pr_devel("hpte_insert(group=%lx, va=%016lx, pa=%016lx, " in pSeries_lpar_hpte_insert()
122 hpte_group, va, pa, rflags, vflags, psize); in pSeries_lpar_hpte_insert()
124 hpte_v = hpte_encode_v(va, psize, ssize) | vflags | HPTE_V_VALID; in pSeries_lpar_hpte_insert()
233 static inline unsigned long hpte_encode_avpn(unsigned long va, int psize, in hpte_encode_avpn() argument
238 v = (va >> 23) & ~(mmu_psize_defs[psize].avpnm); in hpte_encode_avpn()
252 unsigned long va, in pSeries_lpar_hpte_updatepp() argument
259 want_v = hpte_encode_avpn(va, psize, ssize); in pSeries_lpar_hpte_updatepp()
297 static long pSeries_lpar_hpte_find(unsigned long va, int psize, int ssize) in pSeries_lpar_hpte_find() argument
304 hash = hpt_hash(va, mmu_psize_defs[psize].shift, ssize); in pSeries_lpar_hpte_find()
[all …]
/linux-3.3/fs/ceph/
Dceph_frag.c9 unsigned va = ceph_frag_value(a); in ceph_frag_compare() local
11 if (va < vb) in ceph_frag_compare()
13 if (va > vb) in ceph_frag_compare()
15 va = ceph_frag_bits(a); in ceph_frag_compare()
17 if (va < vb) in ceph_frag_compare()
19 if (va > vb) in ceph_frag_compare()
/linux-3.3/drivers/video/vermilion/
Dvermilion.c87 static int vmlfb_alloc_vram_area(struct vram_area *va, unsigned max_order, in vmlfb_alloc_vram_area() argument
103 va->logical = in vmlfb_alloc_vram_area()
105 } while (va->logical == 0 && max_order > min_order); in vmlfb_alloc_vram_area()
107 if (!va->logical) in vmlfb_alloc_vram_area()
110 va->phys = virt_to_phys((void *)va->logical); in vmlfb_alloc_vram_area()
111 va->size = PAGE_SIZE << max_order; in vmlfb_alloc_vram_area()
112 va->order = max_order; in vmlfb_alloc_vram_area()
121 memset((void *)va->logical, 0x00, va->size); in vmlfb_alloc_vram_area()
122 for (i = va->logical; i < va->logical + va->size; i += PAGE_SIZE) { in vmlfb_alloc_vram_area()
130 set_pages_uc(virt_to_page(va->logical), va->size >> PAGE_SHIFT); in vmlfb_alloc_vram_area()
[all …]
/linux-3.3/arch/parisc/kernel/
Dentry.S190 va = r8 /* virtual address for which the trap occurred */ define
203 mfctl %pcoq, va
220 mfctl %pcoq, va
234 mfctl %ior,va
252 mfctl %ior,va
266 mfctl %ior, va
284 mfctl %ior, va
296 mfctl %ior,va
312 mfctl %ior,va
326 mfctl %ior,va
[all …]
/linux-3.3/arch/powerpc/platforms/ps3/
Dhtab.c46 static long ps3_hpte_insert(unsigned long hpte_group, unsigned long va, in ps3_hpte_insert() argument
64 hpte_v = hpte_encode_v(va, psize, ssize) | vflags | HPTE_V_VALID; in ps3_hpte_insert()
78 pr_info("%s:result=%d va=%lx pa=%lx ix=%lx v=%llx r=%llx\n", in ps3_hpte_insert()
79 __func__, result, va, pa, hpte_group, hpte_v, hpte_r); in ps3_hpte_insert()
110 unsigned long va, int psize, int ssize, int local) in ps3_hpte_updatepp() argument
118 want_v = hpte_encode_v(va, psize, ssize); in ps3_hpte_updatepp()
128 pr_info("%s: res=%d read va=%lx slot=%lx psize=%d\n", in ps3_hpte_updatepp()
129 __func__, result, va, slot, psize); in ps3_hpte_updatepp()
162 static void ps3_hpte_invalidate(unsigned long slot, unsigned long va, in ps3_hpte_invalidate() argument
173 pr_info("%s: res=%d va=%lx slot=%lx psize=%d\n", in ps3_hpte_invalidate()
[all …]
/linux-3.3/arch/powerpc/math-emu/
Dmath_efp.c185 union dw_union vc, va, vb; in do_spe_mathemu() local
204 va.wp[0] = current->thread.evr[fa]; in do_spe_mathemu()
205 va.wp[1] = regs->gpr[fa]; in do_spe_mathemu()
213 pr_debug("va: %08x %08x\n", va.wp[0], va.wp[1]); in do_spe_mathemu()
223 FP_UNPACK_SP(SA, va.wp + 1); in do_spe_mathemu()
228 FP_UNPACK_SP(SA, va.wp + 1); in do_spe_mathemu()
237 vc.wp[1] = va.wp[1] & ~SIGN_BIT_S; in do_spe_mathemu()
241 vc.wp[1] = va.wp[1] | SIGN_BIT_S; in do_spe_mathemu()
245 vc.wp[1] = va.wp[1] ^ SIGN_BIT_S; in do_spe_mathemu()
350 FP_UNPACK_DP(DA, va.dp); in do_spe_mathemu()
[all …]
/linux-3.3/drivers/xen/
Dprivcmd.c155 unsigned long va; member
169 ((unsigned long)(msg->npages << PAGE_SHIFT) >= -st->va)) in mmap_mfn_range()
172 /* Range chunks must be contiguous in va space. */ in mmap_mfn_range()
173 if ((msg->va != st->va) || in mmap_mfn_range()
174 ((msg->va+(msg->npages<<PAGE_SHIFT)) > vma->vm_end)) in mmap_mfn_range()
178 msg->va & PAGE_MASK, in mmap_mfn_range()
185 st->va += msg->npages << PAGE_SHIFT; in mmap_mfn_range()
219 vma = find_vma(mm, msg->va); in privcmd_ioctl_mmap()
222 if (!vma || (msg->va != vma->vm_start) || in privcmd_ioctl_mmap()
227 state.va = vma->vm_start; in privcmd_ioctl_mmap()
[all …]
/linux-3.3/arch/microblaze/mm/
Dpgtable.c41 #define flush_HPTE(X, va, pg) _tlbie(va) argument
143 int map_page(unsigned long va, phys_addr_t pa, int flags) in map_page() argument
148 /* Use upper 10 bits of VA to index the first level map */ in map_page()
149 pd = pmd_offset(pgd_offset_k(va), va); in map_page()
150 /* Use middle 10 bits of VA to index the second-level map */ in map_page()
151 pg = pte_alloc_kernel(pd, va); /* from powerpc - pgtable.c */ in map_page()
152 /* pg = pte_alloc_kernel(&init_mm, pd, va); */ in map_page()
156 set_pte_at(&init_mm, va, pg, pfn_pte(pa >> PAGE_SHIFT, in map_page()
159 flush_HPTE(0, va, pmd_val(*pd)); in map_page()
160 /* flush_HPTE(0, va, pg); */ in map_page()
/linux-3.3/arch/mips/math-emu/
Dcp1emu.c279 u64 __user *va = (u64 __user *) (xcp->regs[MIPSInst_RS(ir)] + in cop1Emulate() local
285 if (!access_ok(VERIFY_READ, va, sizeof(u64))) { in cop1Emulate()
287 *fault_addr = va; in cop1Emulate()
290 if (__get_user(val, va)) { in cop1Emulate()
292 *fault_addr = va; in cop1Emulate()
300 u64 __user *va = (u64 __user *) (xcp->regs[MIPSInst_RS(ir)] + in cop1Emulate() local
306 if (!access_ok(VERIFY_WRITE, va, sizeof(u64))) { in cop1Emulate()
308 *fault_addr = va; in cop1Emulate()
311 if (__put_user(val, va)) { in cop1Emulate()
313 *fault_addr = va; in cop1Emulate()
[all …]
/linux-3.3/drivers/video/via/
Dviamode.c274 /* HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
282 /*HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
298 /*HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
307 /*HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
315 /* HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
323 /*HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
339 /* HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
347 /*HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
355 /*HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
364 /*HT, HA, HBS, HBE, HSS, HSE, VT, VA, VBS, VBE, VSS, VSE */
[all …]
/linux-3.3/scripts/dtc/
Dsrcpos.c216 srcpos_verror(struct srcpos *pos, char const *fmt, va_list va) in srcpos_verror() argument
223 vfprintf(stdout, fmt, va); in srcpos_verror()
230 va_list va; in srcpos_error() local
232 va_start(va, fmt); in srcpos_error()
233 srcpos_verror(pos, fmt, va); in srcpos_error()
234 va_end(va); in srcpos_error()
242 va_list va; in srcpos_warn() local
243 va_start(va, fmt); in srcpos_warn()
248 vfprintf(stderr, fmt, va); in srcpos_warn()
251 va_end(va); in srcpos_warn()
/linux-3.3/arch/powerpc/platforms/iseries/
Dhtab.c41 static long iSeries_hpte_insert(unsigned long hpte_group, unsigned long va, in iSeries_hpte_insert() argument
62 slot = HvCallHpt_findValid(&lhpte, va >> HW_PAGE_SHIFT); in iSeries_hpte_insert()
88 lhpte.v = hpte_encode_v(va, MMU_PAGE_4K, MMU_SEGSIZE_256M) | in iSeries_hpte_insert()
145 unsigned long va, int psize, int ssize, int local) in iSeries_hpte_updatepp() argument
153 want_v = hpte_encode_v(va, MMU_PAGE_4K, MMU_SEGSIZE_256M); in iSeries_hpte_updatepp()
210 unsigned long vsid,va,vpn; in iSeries_hpte_updateboltedpp() local
216 va = (vsid << 28) | (ea & 0x0fffffff); in iSeries_hpte_updateboltedpp()
217 vpn = va >> HW_PAGE_SHIFT; in iSeries_hpte_updateboltedpp()
224 static void iSeries_hpte_invalidate(unsigned long slot, unsigned long va, in iSeries_hpte_invalidate() argument
228 unsigned long avpn = va >> 23; in iSeries_hpte_invalidate()
/linux-3.3/drivers/video/omap2/
Dvram.c113 struct vram_alloc *va; in omap_vram_create_allocation() local
116 new = kzalloc(sizeof(*va), GFP_KERNEL); in omap_vram_create_allocation()
124 list_for_each_entry(va, &vr->alloc_list, list) { in omap_vram_create_allocation()
125 if (va->paddr > new->paddr) in omap_vram_create_allocation()
129 list_add_tail(&new->list, &va->list); in omap_vram_create_allocation()
134 static void omap_vram_free_allocation(struct vram_alloc *va) in omap_vram_free_allocation() argument
136 list_del(&va->list); in omap_vram_free_allocation()
137 kfree(va); in omap_vram_free_allocation()
395 struct vram_alloc *va; in omap_vram_get_info() local
410 list_for_each_entry(va, &vr->alloc_list, list) { in omap_vram_get_info()
[all …]
/linux-3.3/arch/tile/mm/
Dhighmem.c67 unsigned long va; member
83 * Add a page and va, on this cpu, to the list of kmap_atomic pages,
97 unsigned long va, pte_t *ptep, pte_t pteval) in kmap_atomic_register() argument
109 amp->va = va; in kmap_atomic_register()
124 * Remove a page and va, on this cpu, from the list of kmap_atomic pages.
130 static void kmap_atomic_unregister(struct page *page, unsigned long va) in kmap_atomic_unregister() argument
137 if (amp->page == page && amp->cpu == cpu && amp->va == va) in kmap_atomic_unregister()
149 pte_t *ptep = kmap_get_pte(amp->va); in kmap_atomic_fix_one_kpte()
152 flush_remote(0, 0, NULL, amp->va, PAGE_SIZE, PAGE_SIZE, in kmap_atomic_fix_one_kpte()
172 * of the structs (or just the va+cpu), then flush them after we
/linux-3.3/arch/mn10300/mm/
Dtlb-smp.c54 unsigned long va);
92 * @mm: The VM context to flush from (if va!=FLUSH_ALL).
93 * @va: Virtual address to flush or FLUSH_ALL to flush everything.
96 unsigned long va) in flush_tlb_others() argument
121 flush_va = va; in flush_tlb_others()
181 * @va: The virtual address of the page to invalidate.
183 void flush_tlb_page(struct vm_area_struct *vma, unsigned long va) in flush_tlb_page() argument
192 local_flush_tlb_page(mm, va); in flush_tlb_page()
194 flush_tlb_others(cpu_mask, mm, va); in flush_tlb_page()
/linux-3.3/drivers/video/matrox/
Dmatroxfb_base.h131 static inline unsigned int mga_readb(vaddr_t va, unsigned int offs) { in mga_readb() argument
132 return readb(va.vaddr + offs); in mga_readb()
135 static inline void mga_writeb(vaddr_t va, unsigned int offs, u_int8_t value) { in mga_writeb() argument
136 writeb(value, va.vaddr + offs); in mga_writeb()
139 static inline void mga_writew(vaddr_t va, unsigned int offs, u_int16_t value) { in mga_writew() argument
140 writew(value, va.vaddr + offs); in mga_writew()
143 static inline u_int32_t mga_readl(vaddr_t va, unsigned int offs) { in mga_readl() argument
144 return readl(va.vaddr + offs); in mga_readl()
147 static inline void mga_writel(vaddr_t va, unsigned int offs, u_int32_t value) { in mga_writel() argument
148 writel(value, va.vaddr + offs); in mga_writel()
[all …]

12345678910>>...20