Lines Matching refs:bar_num
226 bar_num: usize, field
233 while self.bar_num < NUM_BAR_REGS { in next()
234 let bar_config = self.config.get_bar_configuration(self.bar_num); in next()
235 self.bar_num += 1; in next()
501 bar_num: 0, in get_bars()
505 fn get_bar_configuration(&self, bar_num: usize) -> Option<PciBarConfiguration> { in get_bar_configuration()
506 let config = self.bar_configs.get(bar_num)?; in get_bar_configuration()
511 config.addr = self.get_bar_addr(bar_num); in get_bar_configuration()
519 pub fn get_bar_type(&self, bar_num: usize) -> Option<PciBarRegionType> { in get_bar_type()
520 self.bar_configs.get(bar_num)?.map(|c| c.region_type) in get_bar_type()
524 pub fn get_bar_addr(&self, bar_num: usize) -> u64 { in get_bar_addr()
525 let bar_idx = BAR0_REG + bar_num; in get_bar_addr()
527 let bar_type = match self.get_bar_type(bar_num) { in get_bar_addr()