Lines Matching defs:size
31 createGARTBuffer(GART_info *gart, size_t size)
35 gart->buffer.size = size = (size + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);
53 size, B_FULL_LOCK,
64 memset( gart->buffer.ptr, 0, size );
71 static status_t createGARTBuffer( GART_info *gart, size_t size )
78 gart->buffer.size = size = (size + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);
80 // we allocate an contiguous area having twice the size
87 2 * size, B_CONTIGUOUS/*B_FULL_LOCK*/, B_READ_AREA | B_WRITE_AREA | B_CLONEABLE_AREA );
99 (void **)((map[0].address + size - 1) & ~(size - 1));
105 size, B_ANY_KERNEL_BLOCK_ADDRESS | B_MTR_WC,
112 size, B_ANY_KERNEL_BLOCK_ADDRESS,
123 memset( gart->buffer.ptr, 0, size );
144 num_pages = (gart->buffer.size + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1);
173 // align size to B_PAGE_SIZE
185 get_memory_map( gart->buffer.ptr, gart->buffer.size, map, map_count );
193 size_t size = map[i].size;
195 if( size == 0 )
198 while( size > 0 ) {
202 size -= ATI_PCIGART_PAGE_SIZE;