Searched refs:nareas (Results 1 – 1 of 1) sorted by relevance
128 static void swiotlb_adjust_nareas(unsigned int nareas) in swiotlb_adjust_nareas() argument130 if (!nareas) in swiotlb_adjust_nareas()131 nareas = 1; in swiotlb_adjust_nareas()132 else if (!is_power_of_2(nareas)) in swiotlb_adjust_nareas()133 nareas = roundup_pow_of_two(nareas); in swiotlb_adjust_nareas()135 default_nareas = nareas; in swiotlb_adjust_nareas()137 pr_info("area num %d.\n", nareas); in swiotlb_adjust_nareas()153 static unsigned int limit_nareas(unsigned int nareas, unsigned long nslots) in limit_nareas() argument155 if (nslots < nareas * IO_TLB_SEGSIZE) in limit_nareas()157 return nareas; in limit_nareas()[all …]