Searched refs:cap_start (Results 1 – 2 of 2) sorted by relevance
1755 int cap_start = 0, offset; in vfio_config_do_rw() local1781 cap_start = *ppos; in vfio_config_do_rw()1784 cap_start = *ppos; in vfio_config_do_rw()1790 cap_start = vfio_find_cap_start(vdev, *ppos); in vfio_config_do_rw()1800 cap_start = vfio_find_cap_start(vdev, *ppos); in vfio_config_do_rw()1804 WARN_ON(!cap_start && cap_id != PCI_CAP_ID_BASIC); in vfio_config_do_rw()1805 WARN_ON(cap_start > *ppos); in vfio_config_do_rw()1807 offset = *ppos - cap_start; in vfio_config_do_rw()
2254 u32 cap_start; in xhci_setup_port_arrays() local2283 cap_start = xhci_find_next_ext_cap(base, 0, XHCI_EXT_CAPS_PROTOCOL); in xhci_setup_port_arrays()2284 if (!cap_start) { in xhci_setup_port_arrays()2289 offset = cap_start; in xhci_setup_port_arrays()2302 offset = cap_start; in xhci_setup_port_arrays()