Lines Matching refs:bp

326 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize)  in genasm_malinit()  argument
330 bcopy(malinit, bp, sizeof (malinit)); in genasm_malinit()
332 bcopy(&addr, bp + PTC_MALINIT_JOUT, sizeof (addr)); in genasm_malinit()
333 bcopy(&csize, bp + PTC_MALINIT_MCS, sizeof (csize)); in genasm_malinit()
335 bcopy(&addr, bp + PTC_MALINIT_JOV, sizeof (addr)); in genasm_malinit()
336 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit()
342 genasm_frinit(uint8_t *bp, uint32_t off, uint32_t dp, uint32_t ep, uint32_t mcs) in genasm_frinit() argument
346 bcopy(freeinit, bp, sizeof (freeinit)); in genasm_frinit()
348 bcopy(&addr, bp + PTC_FRINI_JDONE, sizeof (addr)); in genasm_frinit()
350 bcopy(&addr, bp + PTC_FRINI_JFREE, sizeof (addr)); in genasm_frinit()
351 bcopy(&mcs, bp + PTC_FRINI_MCS, sizeof (mcs)); in genasm_frinit()
353 bcopy(&addr, bp + PTC_FRINI_JOV, sizeof (addr)); in genasm_frinit()
354 bcopy(&off, bp + PTC_FRINI_SOFF, sizeof (off)); in genasm_frinit()
365 genasm_firstcache(uint8_t *bp, uint32_t csize, uint32_t ap) in genasm_firstcache() argument
369 bcopy(inicache, bp, sizeof (inicache)); in genasm_firstcache()
370 bcopy(&csize, bp + PTC_INICACHE_CMP, sizeof (csize)); in genasm_firstcache()
371 bcopy(&csize, bp + PTC_INICACHE_SIZE, sizeof (csize)); in genasm_firstcache()
374 bcopy(&addr, bp + PTC_INICACHE_JMP, sizeof (addr)); in genasm_firstcache()
380 genasm_gencache(uint8_t *bp, int num, uint32_t csize, uint32_t ap) in genasm_gencache() argument
387 bcopy(gencache, bp, sizeof (gencache)); in genasm_gencache()
388 bcopy(&csize, bp + PTC_GENCACHE_CMP, sizeof (csize)); in genasm_gencache()
389 bcopy(&csize, bp + PTC_GENCACHE_SIZE, sizeof (csize)); in genasm_gencache()
391 bcopy(&coff, bp + PTC_GENCACHE_NUM, sizeof (coff)); in genasm_gencache()
393 bcopy(&addr, bp + PTC_GENCACHE_JMP, sizeof (addr)); in genasm_gencache()
399 genasm_lastcache(uint8_t *bp, int num, uint32_t csize, uint32_t ep) in genasm_lastcache() argument
406 bcopy(fincache, bp, sizeof (fincache)); in genasm_lastcache()
407 bcopy(&csize, bp + PTC_FINCACHE_CMP, sizeof (csize)); in genasm_lastcache()
408 bcopy(&csize, bp + PTC_FINCACHE_SIZE, sizeof (csize)); in genasm_lastcache()
410 bcopy(&coff, bp + PTC_FINCACHE_NUM, sizeof (coff)); in genasm_lastcache()
412 bcopy(&eap, bp + PTC_FINCACHE_JMP, sizeof (eap)); in genasm_lastcache()
418 genasm_malfini(uint8_t *bp, uintptr_t mptr) in genasm_malfini() argument
422 bcopy(malfini, bp, sizeof (malfini)); in genasm_malfini()
423 addr = PTC_JMPADDR(mptr, ((uintptr_t)bp + PTC_MALFINI_JMADDR)); in genasm_malfini()
424 bcopy(&addr, bp + PTC_MALFINI_JMADDR, sizeof (addr)); in genasm_malfini()
430 genasm_frfini(uint8_t *bp, uint32_t maxthr, uintptr_t fptr) in genasm_frfini() argument
434 bcopy(freefini, bp, sizeof (freefini)); in genasm_frfini()
435 bcopy(&maxthr, bp + PTC_FRFINI_CACHEMAX, sizeof (maxthr)); in genasm_frfini()
436 addr = PTC_JMPADDR(fptr, ((uintptr_t)bp + PTC_FRFINI_JFADDR)); in genasm_frfini()
437 bcopy(&addr, bp + PTC_FRFINI_JFADDR, sizeof (addr)); in genasm_frfini()
459 uint8_t *bp; in genasm_malloc() local
474 bp = base; in genasm_malloc()
476 off = genasm_malinit(bp, umem_tmem_off, erroff, in genasm_malloc()
478 bp += off; in genasm_malloc()
483 off = genasm_firstcache(bp, umem_alloc_sizes[0], allocoff); in genasm_malloc()
484 bp += off; in genasm_malloc()
490 off = genasm_gencache(bp, ii, umem_alloc_sizes[ii], allocoff); in genasm_malloc()
491 bp += off; in genasm_malloc()
496 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1], in genasm_malloc()
498 bp += genasm_malfini(bp, umem_genasm_omptr); in genasm_malloc()
499 ASSERT(((uintptr_t)bp - total) == (uintptr_t)base); in genasm_malloc()
507 uint8_t *bp; in genasm_free() local
524 bp = base; in genasm_free()
526 off = genasm_frinit(bp, umem_tmem_off, retoff, erroff, in genasm_free()
528 bp += off; in genasm_free()
533 off = genasm_firstcache(bp, umem_alloc_sizes[0], rbufoff); in genasm_free()
534 bp += off; in genasm_free()
540 off = genasm_gencache(bp, ii, umem_alloc_sizes[ii], rbufoff); in genasm_free()
541 bp += off; in genasm_free()
546 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1], in genasm_free()
548 bp += genasm_frfini(bp, umem_ptc_size, umem_genasm_ofptr); in genasm_free()
549 ASSERT(((uintptr_t)bp - total) == (uintptr_t)base); in genasm_free()