Lines Matching defs:curaddr
186 u_int8_t *curaddr;
218 curaddr = (u_int8_t *)lrp + sizeof(DB_LOCKREGION);
219 memcpy(curaddr, conflicts, lrp->nmodes * lrp->nmodes);
220 curaddr += lrp->nmodes * lrp->nmodes;
225 curaddr = (u_int8_t *)ALIGNP(curaddr, LOCK_HASH_ALIGN);
226 lrp->hash_off = curaddr - (u_int8_t *)lrp;
228 __db_hashinit(curaddr, nelements);
229 curaddr += nelements * sizeof(DB_HASHTAB);
236 curaddr = (u_int8_t *)ALIGNP(curaddr, MUTEX_ALIGNMENT);
241 curaddr += ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT)) {
242 lp = (struct __db_lock *)curaddr;
251 for (i = 0; i++ < lrp->maxlocks; curaddr += sizeof(DB_LOCKOBJ)) {
252 op = (DB_LOCKOBJ *)curaddr;
261 curaddr = (u_int8_t *)ALIGNP(curaddr, sizeof(size_t));
262 lrp->mem_off = curaddr - (u_int8_t *)lrp;
263 __db_shalloc_init(curaddr, lrp->mem_bytes);
353 u_int8_t *curaddr;
438 curaddr = (u_int8_t *)lrp + oldsize;
439 curaddr = (u_int8_t *)ALIGNP(curaddr, MUTEX_ALIGNMENT);
444 curaddr += ALIGN(sizeof(struct __db_lock), MUTEX_ALIGNMENT)) {
445 newl = (struct __db_lock *)curaddr;
451 for (i = 0; i++ < newobjs; curaddr += sizeof(DB_LOCKOBJ)) {
452 op = (DB_LOCKOBJ *)curaddr;
456 *((size_t *)curaddr) = newmem - sizeof(size_t);
457 curaddr += sizeof(size_t);
458 __db_shalloc_free(lt->mem, curaddr);