Lines Matching full:cap
38 struct virtio_pci_cap *cap) in get_cap_addr() argument
45 length = le32_to_cpu(cap->length); in get_cap_addr()
46 offset = le32_to_cpu(cap->offset); in get_cap_addr()
47 bar = cap->bar; in get_cap_addr()
84 struct virtio_pci_cap cap; in ifcvf_init_hw() local
97 ret = ifcvf_read_config_range(pdev, (u32 *)&cap, in ifcvf_init_hw()
98 sizeof(cap), pos); in ifcvf_init_hw()
105 if (cap.cap_vndr != PCI_CAP_ID_VNDR) in ifcvf_init_hw()
108 switch (cap.cfg_type) { in ifcvf_init_hw()
110 hw->common_cfg = get_cap_addr(hw, &cap); in ifcvf_init_hw()
115 pci_read_config_dword(pdev, pos + sizeof(cap), in ifcvf_init_hw()
117 hw->notify_bar = cap.bar; in ifcvf_init_hw()
118 hw->notify_base = get_cap_addr(hw, &cap); in ifcvf_init_hw()
119 hw->notify_base_pa = pci_resource_start(pdev, cap.bar) + in ifcvf_init_hw()
120 le32_to_cpu(cap.offset); in ifcvf_init_hw()
125 hw->isr = get_cap_addr(hw, &cap); in ifcvf_init_hw()
129 hw->dev_cfg = get_cap_addr(hw, &cap); in ifcvf_init_hw()
130 hw->cap_dev_config_size = le32_to_cpu(cap.length); in ifcvf_init_hw()
136 pos = cap.cap_next; in ifcvf_init_hw()