Lines Matching defs:cfg

169 		  "PCI capability mapping: common cfg: %p, notify base: %p\n, isr cfg: %p, device cfg: %p, multiplier: %u\n",
207 struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg;
210 ifc_iowrite32(0, &cfg->device_feature_select);
211 features_lo = ifc_ioread32(&cfg->device_feature);
213 ifc_iowrite32(1, &cfg->device_feature_select);
214 features_hi = ifc_ioread32(&cfg->device_feature);
250 struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg;
252 ifc_iowrite32(0, &cfg->guest_feature_select);
253 ifc_iowrite32((u32)features, &cfg->guest_feature);
255 ifc_iowrite32(1, &cfg->guest_feature_select);
256 ifc_iowrite32(features >> 32, &cfg->guest_feature);
307 struct virtio_pci_common_cfg __iomem *cfg;
312 cfg = hw->common_cfg;
313 ifc_iowrite16(IFCVF_MSI_CONFIG_OFF, &cfg->msix_config);
315 if (ifc_ioread16(&cfg->msix_config) == VIRTIO_MSI_NO_VECTOR) {
324 ifc_iowrite16(i, &cfg->queue_select);
325 ifc_iowrite64_twopart(hw->vring[i].desc, &cfg->queue_desc_lo,
326 &cfg->queue_desc_hi);
327 ifc_iowrite64_twopart(hw->vring[i].avail, &cfg->queue_avail_lo,
328 &cfg->queue_avail_hi);
329 ifc_iowrite64_twopart(hw->vring[i].used, &cfg->queue_used_lo,
330 &cfg->queue_used_hi);
331 ifc_iowrite16(hw->vring[i].size, &cfg->queue_size);
332 ifc_iowrite16(i + IFCVF_MSI_QUEUE_OFF, &cfg->queue_msix_vector);
334 if (ifc_ioread16(&cfg->queue_msix_vector) ==
342 ifc_iowrite16(1, &cfg->queue_enable);
350 struct virtio_pci_common_cfg __iomem *cfg;
353 cfg = hw->common_cfg;
354 ifc_iowrite16(VIRTIO_MSI_NO_VECTOR, &cfg->msix_config);
357 ifc_iowrite16(i, &cfg->queue_select);
358 ifc_iowrite16(VIRTIO_MSI_NO_VECTOR, &cfg->queue_msix_vector);
361 ifc_ioread16(&cfg->queue_msix_vector);