Lines Matching refs:PGSIZE
57 #define PGSIZE ( 1U << PGBITS ) macro
62 void *page = calloc ( PGSIZE, 1 ); in KPageMemNew()
73 void *page = malloc ( PGSIZE ); in KPageMemMake()
247 rc = KFileReadAll ( self -> backing, pos -= PGSIZE, page, PGSIZE, & num_read ); in KPageBackingRead()
258 if ( num_read < PGSIZE ) in KPageBackingRead()
259 memset ( & ( ( uint8_t* ) page ) [ num_read ], 0, PGSIZE - num_read ); in KPageBackingRead()
328 rc = KFileWriteAll ( self -> backing, pos -= PGSIZE, page, PGSIZE, & num_writ ); in KPageBackingWrite()
335 if ( num_writ == PGSIZE ) in KPageBackingWrite()
562 return PGSIZE; in KPageConstSize()
589 * bytes = PGSIZE; in KPageAccessRead()
622 * bytes = PGSIZE; in KPageAccessUpdate()
842 … rc = KPageFileSetPageCount( f, ( uint32_t ) ( ( bf -> eof + PGSIZE - 1 ) >> PGBITS ) ); in KPageFileMakeRead()
936 … rc = KPageFileSetPageCount( f, ( uint32_t ) ( ( bf -> eof + PGSIZE - 1 ) >> PGBITS ) ); in KPageFileMakeUpdate()
1060 uint32_t new_count = ( uint32_t ) ( ( size + PGSIZE - 1 ) >> PGBITS ); in KPageFileSetSize()