Lines Matching full:ptra
54 struct bbs_MemTbl* ptrA )
59 bbs_MemSeg_init( cpA, &ptrA->esArrE[ iL ] );
60 bbs_MemSeg_init( cpA, &ptrA->ssArrE[ iL ] );
61 ptrA->espArrE[ iL ] = NULL;
63 ptrA->esSizeE = 0;
64 ptrA->ssSizeE = 0;
70 struct bbs_MemTbl* ptrA )
75 bbs_MemSeg_exit( cpA, &ptrA->esArrE[ iL ] );
76 bbs_MemSeg_exit( cpA, &ptrA->ssArrE[ iL ] );
77 ptrA->espArrE[ iL ] = NULL;
79 ptrA->esSizeE = 0;
80 ptrA->ssSizeE = 0;
102 struct bbs_MemTbl* ptrA,
106 for( iL = 0; iL < ptrA->esSizeE; iL++ )
108 if( bbs_MemTbl_memOverlap( ptrA->espArrE[ iL ]->memPtrE,
109 ptrA->espArrE[ iL ]->sizeE,
116 for( iL = 0; iL < ptrA->ssSizeE; iL++ )
118 if( bbs_MemTbl_memOverlap( ptrA->ssArrE[ iL ].memPtrE,
119 ptrA->ssArrE[ iL ].sizeE,
156 struct bbs_MemTbl* ptrA,
167 bbs_MemTbl_init( cpA, ptrA );
170 ptrA->esArrE[ 0 ] = bbs_MemSeg_create( cpA, memPtrA, sizeA - sharedSubSizeA );
172 ptrA->ssArrE[ 0 ] = bbs_MemSeg_createShared( cpA, ( uint16* ) ( ( int32 ) ( ( uint16* )memPtrA ) + sizeA - sharedSubSizeA ), sharedSubSizeA );
174 ptrA->ssArrE[ 0 ] = bbs_MemSeg_createShared( cpA, ( uint16* )memPtrA + sizeA - sharedSubSizeA, sharedSubSizeA );
176 ptrA->espArrE[ 0 ] = &ptrA->esArrE[ 0 ];
178 ptrA->esSizeE = 1;
179 ptrA->ssSizeE = 1;
185 struct bbs_MemTbl* ptrA,
190 if( ptrA->esSizeE == bbs_MAX_MEM_SEGS )
192 bbs_ERROR0( "void bbs_MemTbl_add( struct bbs_MemTbl* ptrA, void* memPtrA, uint32 sizeA ):\n"
196 ptrA->esArrE[ ptrA->esSizeE ] = bbs_MemSeg_create( cpA, memPtrA, sizeA );
197 ptrA->esArrE[ ptrA->esSizeE ].idE = idA;
198 ptrA->espArrE[ ptrA->esSizeE ] = &ptrA->esArrE[ ptrA->esSizeE ];
199 ptrA->esSizeE++;
205 struct bbs_MemTbl* ptrA,
210 if( ptrA->ssSizeE == bbs_MAX_MEM_SEGS )
212 bbs_ERROR0( "void bbs_MemTbl_addShared( struct bbs_MemTbl* ptrA, void* memPtrA, uint32 sizeA ):\n"
216 ptrA->ssArrE[ ptrA->ssSizeE ] = bbs_MemSeg_createShared( cpA, memPtrA, sizeA );
217 ptrA->ssArrE[ ptrA->ssSizeE ].idE = idA;
218 ptrA->ssSizeE++;
224 struct bbs_MemTbl* ptrA,
228 if( ptrA->esSizeE == 0 )
235 for( iL = 0; iL < ptrA->esSizeE; iL++ )
237 if( idA == ptrA->espArrE[ iL ]->idE ) return ptrA->espArrE[ iL ];
240 for( iL = 0; iL < ptrA->esSizeE; iL++ )
242 if( ptrA->espArrE[ iL ]->sizeE > 0 ||
243 ptrA->espArrE[ iL ]->dynMemManagerPtrE != 0 )
245 return ptrA->espArrE[ iL ];
256 struct bbs_MemTbl* ptrA,
260 if( ptrA->ssSizeE == 0 )
267 for( iL = 0; iL < ptrA->ssSizeE; iL++ )
269 if( idA == ptrA->ssArrE[ iL ].idE ) return &ptrA->ssArrE[ iL ];
272 for( iL = 0; iL < ptrA->ssSizeE; iL++ )
274 if( ptrA->ssArrE[ iL ].sizeE > 0 ||
275 ptrA->ssArrE[ iL ].dynMemManagerPtrE != 0 )
277 return &ptrA->ssArrE[ iL ];
288 struct bbs_MemTbl* ptrA,
292 for( iL = 0; iL < ptrA->esSizeE; iL++ )
294 if( bbs_MemSeg_availableSize( cpA, ptrA->espArrE[ iL ] ) >= minSizeA ) break;
296 if( iL == ptrA->esSizeE )
298 if( ptrA->esSizeE == 0 )
300 bbs_ERROR0( "struct bbs_MemSeg* bbs_MemTbl_fastestSegPtr( struct bbs_MemTbl* ptrA, uint32 minSizeA ):\n"
307 "struct bbs_MemSeg* bbs_MemTbl_fastestSegPtr( struct bbs_MemTbl* ptrA, uint32 minSizeA ):\n"
312 if( ptrA->espArrE[ iL ]->sharedE )
314 bbs_ERROR0( "struct bbs_MemSeg* bbs_MemTbl_fastestSegPtr( struct bbs_MemTbl* ptrA, uint32 minSizeA ):\n"
319 return ptrA->espArrE[ iL ];
325 struct bbs_MemTbl* ptrA )
331 if( ptrA->esSizeE == 0 )
333 bbs_ERROR0( "struct bbs_MemSeg* bbs_MemTbl_largestSegPtr( struct bbs_MemTbl* ptrA ):\n"
338 for( iL = 0; iL < ptrA->esSizeE; iL++ )
340 uint32 sizeL = bbs_MemSeg_availableSize( cpA, ptrA->espArrE[ iL ] );
348 if( ptrA->espArrE[ maxIndexL ]->sharedE )
350 bbs_ERROR0( "struct bbs_MemSeg* bbs_MemTbl_largestSegPtr( struct bbs_MemTbl* ptrA ):\n"
355 return ptrA->espArrE[ maxIndexL ];
361 struct bbs_MemTbl* ptrA,
365 for( iL = 0; iL < ptrA->ssSizeE; iL++ )
367 if( bbs_MemSeg_availableSize( cpA, &ptrA->ssArrE[ iL ] ) >= minSizeA ) break;
369 if( iL == ptrA->ssSizeE )
371 if( ptrA->esSizeE == 0 )
373 bbs_ERROR0( "struct bbs_MemSeg* bbs_MemTbl_fastestSegPtr( struct bbs_MemTbl* ptrA, uint32 minSizeA ):\n"
380 "struct bbs_MemSeg* bbs_MemTbl_fastestSharedSegPtr( struct bbs_MemTbl* ptrA, uint32 minSizeA ):\n"
385 if( !ptrA->ssArrE[ iL ].sharedE )
387 bbs_ERROR0( "struct bbs_MemSeg* bbs_MemTbl_fastestSharedSegPtr( struct bbs_MemTbl* ptrA, uint32 minSizeA ):\n"
392 return &ptrA->ssArrE[ iL ];
398 struct bbs_MemTbl* ptrA )
404 if( ptrA->ssSizeE == 0 )
406 bbs_ERROR0( "struct bbs_MemSeg* bbs_MemTbl_largestSharedSegPtr( struct bbs_MemTbl* ptrA ):\n"
411 for( iL = 0; iL < ptrA->ssSizeE; iL++ )
413 uint32 sizeL = bbs_MemSeg_availableSize( cpA, &ptrA->ssArrE[ iL ] );
421 if( !ptrA->ssArrE[ maxIndexL ].sharedE )
423 bbs_ERROR0( "struct bbs_MemSeg* bbs_MemTbl_largestSharedSegPtr( struct bbs_MemTbl* ptrA ):\n"
428 return &ptrA->ssArrE[ maxIndexL ];