Searched refs:DIV_AND_CEIL (Results 1 – 1 of 1) sorted by relevance
30 #define DIV_AND_CEIL(x, y) ((x) / (y) + ((x) % (y) > 0)) macro53 this->blocks = DIV_AND_CEIL(this->chip_size, this->block_size); in init()54 this->sectors = DIV_AND_CEIL(this->chip_size, this->sector_size); in init()55 this->pages = DIV_AND_CEIL(this->chip_size, this->page_size); in init()