linux-4.14.90-dev/linux-4.14.90/drivers/net/ethernet/chelsio/cxgb3/t3_hw.c
/**
 *	pm_num_pages - calculate the number of pages of the payload memory
 *	@mem_size: the size of the payload memory
 *	@pg_size: the size of each payload memory page
 *
 *	Calculate the number of pages, each of the given size, that fit in a
 *	memory of the specified size, respecting the HW requirement that the
 *	number of pages must be a multiple of 24.
 */
calculate the number of pages of the payload memory
@mem_size: the size of the payload memory
@pg_size: the size of each payload memory page

Calculate the number of pages, each of the given size, that fit in a
memory of the specified size, respecting the HW requirement that the
number of pages must be a multiple of 24.
calculate the number of pages of the payload memory @mem_size : the size of the payload memory @pg_size : the size of each payload memory page Calculate the number of pages each of the given size that fit in a memory of the specified size respecting the HW requirement that the number of pages must be a multiple of 24 .
static inline unsigned int pm_num_pages(unsigned int mem_size,
					unsigned int pg_size)
{
	unsigned int n = mem_size / pg_size;
	return n - n % 24;
}
static inline unsigned int pm_num_pages ( unsigned int mem_size , unsigned int pg_size ) { unsigned int n = mem_size / pg_size ; return n - n % 24 ; }
pm_num_pages - calculate the number of pages of the payload memory
      @mem_size: the size of the payload memory
      @pg_size: the size of each payload memory page
pm_num_pages - calculate the number of pages of the payload memory @mem_size : the size of the payload memory @pg_size : the size of each payload memory page