Lines Matching refs:cfg
207 struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg; in ifcvf_get_features() local
210 ifc_iowrite32(0, &cfg->device_feature_select); in ifcvf_get_features()
211 features_lo = ifc_ioread32(&cfg->device_feature); in ifcvf_get_features()
213 ifc_iowrite32(1, &cfg->device_feature_select); in ifcvf_get_features()
214 features_hi = ifc_ioread32(&cfg->device_feature); in ifcvf_get_features()
250 struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg; in ifcvf_set_features() local
252 ifc_iowrite32(0, &cfg->guest_feature_select); in ifcvf_set_features()
253 ifc_iowrite32((u32)features, &cfg->guest_feature); in ifcvf_set_features()
255 ifc_iowrite32(1, &cfg->guest_feature_select); in ifcvf_set_features()
256 ifc_iowrite32(features >> 32, &cfg->guest_feature); in ifcvf_set_features()
307 struct virtio_pci_common_cfg __iomem *cfg; in ifcvf_hw_enable() local
312 cfg = hw->common_cfg; in ifcvf_hw_enable()
313 ifc_iowrite16(IFCVF_MSI_CONFIG_OFF, &cfg->msix_config); in ifcvf_hw_enable()
315 if (ifc_ioread16(&cfg->msix_config) == VIRTIO_MSI_NO_VECTOR) { in ifcvf_hw_enable()
324 ifc_iowrite16(i, &cfg->queue_select); in ifcvf_hw_enable()
325 ifc_iowrite64_twopart(hw->vring[i].desc, &cfg->queue_desc_lo, in ifcvf_hw_enable()
326 &cfg->queue_desc_hi); in ifcvf_hw_enable()
327 ifc_iowrite64_twopart(hw->vring[i].avail, &cfg->queue_avail_lo, in ifcvf_hw_enable()
328 &cfg->queue_avail_hi); in ifcvf_hw_enable()
329 ifc_iowrite64_twopart(hw->vring[i].used, &cfg->queue_used_lo, in ifcvf_hw_enable()
330 &cfg->queue_used_hi); in ifcvf_hw_enable()
331 ifc_iowrite16(hw->vring[i].size, &cfg->queue_size); in ifcvf_hw_enable()
332 ifc_iowrite16(i + IFCVF_MSI_QUEUE_OFF, &cfg->queue_msix_vector); in ifcvf_hw_enable()
334 if (ifc_ioread16(&cfg->queue_msix_vector) == in ifcvf_hw_enable()
342 ifc_iowrite16(1, &cfg->queue_enable); in ifcvf_hw_enable()
350 struct virtio_pci_common_cfg __iomem *cfg; in ifcvf_hw_disable() local
353 cfg = hw->common_cfg; in ifcvf_hw_disable()
354 ifc_iowrite16(VIRTIO_MSI_NO_VECTOR, &cfg->msix_config); in ifcvf_hw_disable()
357 ifc_iowrite16(i, &cfg->queue_select); in ifcvf_hw_disable()
358 ifc_iowrite16(VIRTIO_MSI_NO_VECTOR, &cfg->queue_msix_vector); in ifcvf_hw_disable()
361 ifc_ioread16(&cfg->queue_msix_vector); in ifcvf_hw_disable()