Lines Matching full:cap
55 struct virtio_pci_cap *cap) in get_cap_addr() argument
62 length = le32_to_cpu(cap->length); in get_cap_addr()
63 offset = le32_to_cpu(cap->offset); in get_cap_addr()
64 bar = cap->bar; in get_cap_addr()
101 struct virtio_pci_cap cap; in ifcvf_init_hw() local
114 ret = ifcvf_read_config_range(pdev, (u32 *)&cap, in ifcvf_init_hw()
115 sizeof(cap), pos); in ifcvf_init_hw()
122 if (cap.cap_vndr != PCI_CAP_ID_VNDR) in ifcvf_init_hw()
125 switch (cap.cfg_type) { in ifcvf_init_hw()
127 hw->common_cfg = get_cap_addr(hw, &cap); in ifcvf_init_hw()
132 pci_read_config_dword(pdev, pos + sizeof(cap), in ifcvf_init_hw()
134 hw->notify_bar = cap.bar; in ifcvf_init_hw()
135 hw->notify_base = get_cap_addr(hw, &cap); in ifcvf_init_hw()
140 hw->isr = get_cap_addr(hw, &cap); in ifcvf_init_hw()
144 hw->net_cfg = get_cap_addr(hw, &cap); in ifcvf_init_hw()
150 pos = cap.cap_next; in ifcvf_init_hw()