(&self, vector: u16)
| 486 | } |
| 487 | |
| 488 | fn get_pba_bit(&self, vector: u16) -> u8 { |
| 489 | assert!(vector < MAX_MSIX_VECTORS_PER_DEVICE); |
| 490 | |
| 491 | let index: usize = (vector as usize) / BITS_PER_PBA_ENTRY; |
| 492 | let shift: usize = (vector as usize) % BITS_PER_PBA_ENTRY; |
| 493 | |
| 494 | ((self.pba_entries[index] >> shift) & 0x0000_0001u64) as u8 |
| 495 | } |
| 496 | |
| 497 | fn inject_msix_and_clear_pba(&mut self, vector: usize) { |
| 498 | // Inject the MSI message |
no outgoing calls
no test coverage detected