Lines Matching refs:bp

320 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize)  in genasm_malinit()  argument
324 bcopy(malinit, bp, sizeof (malinit)); in genasm_malinit()
326 bcopy(&addr, bp + PTC_MALINIT_JOUT, sizeof (addr)); in genasm_malinit()
327 bcopy(&csize, bp + PTC_MALINIT_MCS, sizeof (csize)); in genasm_malinit()
329 bcopy(&addr, bp + PTC_MALINIT_JOV, sizeof (addr)); in genasm_malinit()
330 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit()
336 genasm_frinit(uint8_t *bp, uint32_t off, uint32_t dp, uint32_t ep, uint32_t mcs) in genasm_frinit() argument
340 bcopy(freeinit, bp, sizeof (freeinit)); in genasm_frinit()
342 bcopy(&addr, bp + PTC_FRINI_JDONE, sizeof (addr)); in genasm_frinit()
344 bcopy(&addr, bp + PTC_FRINI_JFREE, sizeof (addr)); in genasm_frinit()
345 bcopy(&mcs, bp + PTC_FRINI_MCS, sizeof (mcs)); in genasm_frinit()
347 bcopy(&addr, bp + PTC_FRINI_JOV, sizeof (addr)); in genasm_frinit()
348 bcopy(&off, bp + PTC_FRINI_SOFF, sizeof (off)); in genasm_frinit()
359 genasm_firstcache(uint8_t *bp, uint32_t csize, uint32_t ap) in genasm_firstcache() argument
363 bcopy(inicache, bp, sizeof (inicache)); in genasm_firstcache()
364 bcopy(&csize, bp + PTC_INICACHE_CMP, sizeof (csize)); in genasm_firstcache()
365 bcopy(&csize, bp + PTC_INICACHE_SIZE, sizeof (csize)); in genasm_firstcache()
368 bcopy(&addr, bp + PTC_INICACHE_JMP, sizeof (addr)); in genasm_firstcache()
374 genasm_gencache(uint8_t *bp, int num, uint32_t csize, uint32_t ap) in genasm_gencache() argument
381 bcopy(gencache, bp, sizeof (gencache)); in genasm_gencache()
382 bcopy(&csize, bp + PTC_GENCACHE_CMP, sizeof (csize)); in genasm_gencache()
383 bcopy(&csize, bp + PTC_GENCACHE_SIZE, sizeof (csize)); in genasm_gencache()
385 bcopy(&coff, bp + PTC_GENCACHE_NUM, sizeof (coff)); in genasm_gencache()
387 bcopy(&addr, bp + PTC_GENCACHE_JMP, sizeof (addr)); in genasm_gencache()
393 genasm_lastcache(uint8_t *bp, int num, uint32_t csize, uint32_t ep) in genasm_lastcache() argument
400 bcopy(fincache, bp, sizeof (fincache)); in genasm_lastcache()
401 bcopy(&csize, bp + PTC_FINCACHE_CMP, sizeof (csize)); in genasm_lastcache()
402 bcopy(&csize, bp + PTC_FINCACHE_SIZE, sizeof (csize)); in genasm_lastcache()
404 bcopy(&coff, bp + PTC_FINCACHE_NUM, sizeof (coff)); in genasm_lastcache()
406 bcopy(&eap, bp + PTC_FINCACHE_JMP, sizeof (eap)); in genasm_lastcache()
412 genasm_malfini(uint8_t *bp, uintptr_t mptr) in genasm_malfini() argument
416 bcopy(malfini, bp, sizeof (malfini)); in genasm_malfini()
417 addr = PTC_JMPADDR(mptr, ((uintptr_t)bp + PTC_MALFINI_JMADDR)); in genasm_malfini()
418 bcopy(&addr, bp + PTC_MALFINI_JMADDR, sizeof (addr)); in genasm_malfini()
424 genasm_frfini(uint8_t *bp, uint32_t maxthr, uintptr_t fptr) in genasm_frfini() argument
428 bcopy(freefini, bp, sizeof (freefini)); in genasm_frfini()
429 bcopy(&maxthr, bp + PTC_FRFINI_CACHEMAX, sizeof (maxthr)); in genasm_frfini()
430 addr = PTC_JMPADDR(fptr, ((uintptr_t)bp + PTC_FRFINI_JFADDR)); in genasm_frfini()
431 bcopy(&addr, bp + PTC_FRFINI_JFADDR, sizeof (addr)); in genasm_frfini()
453 uint8_t *bp; in genasm_malloc() local
468 bp = base; in genasm_malloc()
470 off = genasm_malinit(bp, umem_tmem_off, erroff, in genasm_malloc()
472 bp += off; in genasm_malloc()
477 off = genasm_firstcache(bp, umem_alloc_sizes[0], allocoff); in genasm_malloc()
478 bp += off; in genasm_malloc()
484 off = genasm_gencache(bp, ii, umem_alloc_sizes[ii], allocoff); in genasm_malloc()
485 bp += off; in genasm_malloc()
490 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1], in genasm_malloc()
492 bp += genasm_malfini(bp, umem_genasm_omptr); in genasm_malloc()
493 ASSERT(((uintptr_t)bp - total) == (uintptr_t)base); in genasm_malloc()
501 uint8_t *bp; in genasm_free() local
518 bp = base; in genasm_free()
520 off = genasm_frinit(bp, umem_tmem_off, retoff, erroff, in genasm_free()
522 bp += off; in genasm_free()
527 off = genasm_firstcache(bp, umem_alloc_sizes[0], rbufoff); in genasm_free()
528 bp += off; in genasm_free()
534 off = genasm_gencache(bp, ii, umem_alloc_sizes[ii], rbufoff); in genasm_free()
535 bp += off; in genasm_free()
540 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1], in genasm_free()
542 bp += genasm_frfini(bp, umem_ptc_size, umem_genasm_ofptr); in genasm_free()
543 ASSERT(((uintptr_t)bp - total) == (uintptr_t)base); in genasm_free()