Lines Matching refs:bp

318 genasm_malinit(uint8_t *bp, uint32_t off, uint32_t ep, uint32_t csize)  in genasm_malinit()  argument
322 bcopy(malinit, bp, sizeof (malinit)); in genasm_malinit()
324 bcopy(&addr, bp + PTC_MALINIT_JOUT, sizeof (addr)); in genasm_malinit()
325 bcopy(&csize, bp + PTC_MALINIT_MCS, sizeof (csize)); in genasm_malinit()
327 bcopy(&addr, bp + PTC_MALINIT_JOV, sizeof (addr)); in genasm_malinit()
328 bcopy(&off, bp + PTC_MALINIT_SOFF, sizeof (off)); in genasm_malinit()
334 genasm_frinit(uint8_t *bp, uint32_t off, uint32_t dp, uint32_t ep, uint32_t mc) in genasm_frinit() argument
338 bcopy(freeinit, bp, sizeof (freeinit)); in genasm_frinit()
340 bcopy(&addr, bp + PTC_FRINI_JDONE, sizeof (addr)); in genasm_frinit()
342 bcopy(&addr, bp + PTC_FRINI_JFREE, sizeof (addr)); in genasm_frinit()
343 bcopy(&mc, bp + PTC_FRINI_MCS, sizeof (mc)); in genasm_frinit()
345 bcopy(&addr, bp + PTC_FRINI_JOV, sizeof (addr)); in genasm_frinit()
346 bcopy(&off, bp + PTC_FRINI_SOFF, sizeof (off)); in genasm_frinit()
356 genasm_firstcache(uint8_t *bp, uint32_t csize, uint32_t ap) in genasm_firstcache() argument
360 bcopy(inicache, bp, sizeof (inicache)); in genasm_firstcache()
361 bcopy(&csize, bp + PTC_INICACHE_CMP, sizeof (csize)); in genasm_firstcache()
362 bcopy(&csize, bp + PTC_INICACHE_SIZE, sizeof (csize)); in genasm_firstcache()
365 bcopy(&addr, bp + PTC_INICACHE_JMP, sizeof (addr)); in genasm_firstcache()
371 genasm_gencache(uint8_t *bp, int num, uint32_t csize, uint32_t ap) in genasm_gencache() argument
378 bcopy(gencache, bp, sizeof (gencache)); in genasm_gencache()
379 bcopy(&csize, bp + PTC_GENCACHE_CMP, sizeof (csize)); in genasm_gencache()
380 bcopy(&csize, bp + PTC_GENCACHE_SIZE, sizeof (csize)); in genasm_gencache()
382 bcopy(&coff, bp + PTC_GENCACHE_NUM, sizeof (coff)); in genasm_gencache()
384 bcopy(&addr, bp + PTC_GENCACHE_JMP, sizeof (addr)); in genasm_gencache()
390 genasm_lastcache(uint8_t *bp, int num, uint32_t csize, uint32_t ep) in genasm_lastcache() argument
396 bcopy(fincache, bp, sizeof (fincache)); in genasm_lastcache()
397 bcopy(&csize, bp + PTC_FINCACHE_CMP, sizeof (csize)); in genasm_lastcache()
398 bcopy(&csize, bp + PTC_FINCACHE_SIZE, sizeof (csize)); in genasm_lastcache()
400 bcopy(&addr, bp + PTC_FINCACHE_NUM, sizeof (addr)); in genasm_lastcache()
402 bcopy(&addr, bp + PTC_FINCACHE_JMP, sizeof (addr)); in genasm_lastcache()
408 genasm_malfini(uint8_t *bp, uintptr_t mptr) in genasm_malfini() argument
412 bcopy(malfini, bp, sizeof (malfini)); in genasm_malfini()
413 addr = PTC_JMPADDR(mptr, ((uintptr_t)bp + PTC_MALFINI_JMADDR)); in genasm_malfini()
414 bcopy(&addr, bp + PTC_MALFINI_JMADDR, sizeof (addr)); in genasm_malfini()
420 genasm_frfini(uint8_t *bp, uint32_t maxthr, uintptr_t fptr) in genasm_frfini() argument
424 bcopy(freefini, bp, sizeof (freefini)); in genasm_frfini()
425 bcopy(&maxthr, bp + PTC_FRFINI_CACHEMAX, sizeof (maxthr)); in genasm_frfini()
426 addr = PTC_JMPADDR(fptr, ((uintptr_t)bp + PTC_FRFINI_JFADDR)); in genasm_frfini()
427 bcopy(&addr, bp + PTC_FRFINI_JFADDR, sizeof (addr)); in genasm_frfini()
449 uint8_t *bp; in genasm_malloc() local
464 bp = base; in genasm_malloc()
466 off = genasm_malinit(bp, umem_tmem_off, erroff, in genasm_malloc()
468 bp += off; in genasm_malloc()
473 off = genasm_firstcache(bp, umem_alloc_sizes[0], allocoff); in genasm_malloc()
474 bp += off; in genasm_malloc()
480 off = genasm_gencache(bp, ii, umem_alloc_sizes[ii], allocoff); in genasm_malloc()
481 bp += off; in genasm_malloc()
486 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1], in genasm_malloc()
488 bp += genasm_malfini(bp, umem_genasm_omptr); in genasm_malloc()
489 ASSERT(((uintptr_t)bp - total) == (uintptr_t)base); in genasm_malloc()
497 uint8_t *bp; in genasm_free() local
514 bp = base; in genasm_free()
516 off = genasm_frinit(bp, umem_tmem_off, retoff, erroff, in genasm_free()
518 bp += off; in genasm_free()
523 off = genasm_firstcache(bp, umem_alloc_sizes[0], rbufoff); in genasm_free()
524 bp += off; in genasm_free()
530 off = genasm_gencache(bp, ii, umem_alloc_sizes[ii], rbufoff); in genasm_free()
531 bp += off; in genasm_free()
536 bp += genasm_lastcache(bp, nents - 1, umem_alloc_sizes[nents - 1], in genasm_free()
538 bp += genasm_frfini(bp, umem_ptc_size, umem_genasm_ofptr); in genasm_free()
539 ASSERT(((uintptr_t)bp - total) == (uintptr_t)base); in genasm_free()