Searched refs:cap_ptr (Results 1 – 3 of 3) sorted by relevance
587 u8 cap_ptr; in test_pci_find_device() local589 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in test_pci_find_device()590 if (!cap_ptr) { in test_pci_find_device()604 bridge->capndx = cap_ptr; in test_pci_find_device()
598 let cap_ptr = unsafe { info_ptr.offset(offset as isize) }; in get_regions() localVariable600 unsafe { &*(cap_ptr as *mut u8 as *const vfio_info_cap_header) }; in get_regions()609 &*(cap_ptr as *mut u8 as *const vfio_region_info_cap_sparse_mmap) in get_regions()631 unsafe { &*(cap_ptr as *mut u8 as *const vfio_region_info_cap_type) }; in get_regions()
707 let cap_ptr = cfg.read_reg(CAPABILITY_LIST_HEAD_OFFSET / 4) & 0xFF; in add_capability() localVariable708 assert_eq!(cap1_offset, cap_ptr as usize); in add_capability()