Displaying 12 results from an estimated 12 matches for "pci_ari_next_fn".
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [2/4]
..., "ARI forwarding enabled.\n");
+ pci_read_config_word(dev, pos + PCI_EXP_DEVCTL2, &ctrl);
+ if (ctrl & PCI_EXP_DEVCTL2_ARI)
+ return;
+
+ ctrl |= PCI_EXP_DEVCTL2_ARI;
+ pci_write_config_word(dev, pos + PCI_EXP_DEVCTL2, ctrl);
+}
+EXPORT_SYMBOL_GPL(pci_ari_enable_fwd);
+
+/**
+ * pci_ari_next_fn - find next function number
+ * @dev: PCI device
+ *
+ * Returns function number, and 0 if there are no higher numbered
+ * functions; returns negative on failure.
+ */
+int pci_ari_next_fn(struct pci_dev *dev)
+{
+ int pos;
+ u16 cap;
+
+ if (dev->pcie_type != PCI_EXP_TYPE_ENDPOINT)
+ return -...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [2/4]
..., "ARI forwarding enabled.\n");
+ pci_read_config_word(dev, pos + PCI_EXP_DEVCTL2, &ctrl);
+ if (ctrl & PCI_EXP_DEVCTL2_ARI)
+ return;
+
+ ctrl |= PCI_EXP_DEVCTL2_ARI;
+ pci_write_config_word(dev, pos + PCI_EXP_DEVCTL2, ctrl);
+}
+EXPORT_SYMBOL_GPL(pci_ari_enable_fwd);
+
+/**
+ * pci_ari_next_fn - find next function number
+ * @dev: PCI device
+ *
+ * Returns function number, and 0 if there are no higher numbered
+ * functions; returns negative on failure.
+ */
+int pci_ari_next_fn(struct pci_dev *dev)
+{
+ int pos;
+ u16 cap;
+
+ if (dev->pcie_type != PCI_EXP_TYPE_ENDPOINT)
+ return -...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [2/4]
..., "ARI forwarding enabled.\n");
+ pci_read_config_word(dev, pos + PCI_EXP_DEVCTL2, &ctrl);
+ if (ctrl & PCI_EXP_DEVCTL2_ARI)
+ return;
+
+ ctrl |= PCI_EXP_DEVCTL2_ARI;
+ pci_write_config_word(dev, pos + PCI_EXP_DEVCTL2, ctrl);
+}
+EXPORT_SYMBOL_GPL(pci_ari_enable_fwd);
+
+/**
+ * pci_ari_next_fn - find next function number
+ * @dev: PCI device
+ *
+ * Returns function number, and 0 if there are no higher numbered
+ * functions; returns negative on failure.
+ */
+int pci_ari_next_fn(struct pci_dev *dev)
+{
+ int pos;
+ u16 cap;
+
+ if (dev->pcie_type != PCI_EXP_TYPE_ENDPOINT)
+ return -...
2008 Sep 01
1
[PATCH 2/4 v2] PCI: support ARI capability
...abled = 1;
+ dev_info(&dev->dev, "ARI forwarding enabled.\n");
+
+ pci_read_config_word(dev, pos + PCI_EXP_DEVCTL2, &ctrl);
+ if (ctrl & PCI_EXP_DEVCTL2_ARI)
+ return;
+
+ ctrl |= PCI_EXP_DEVCTL2_ARI;
+ pci_write_config_word(dev, pos + PCI_EXP_DEVCTL2, ctrl);
+}
+
+/**
+ * pci_ari_next_fn - find next function number
+ * @dev: the PCI device
+ *
+ * Returns function number, or 0 if there are no higher numbered
+ * functions; returns negative on failure.
+ */
+int pci_ari_next_fn(struct pci_dev *dev)
+{
+ int pos;
+ u16 cap;
+
+ if (dev->pcie_type != PCI_EXP_TYPE_ENDPOINT)
+ retur...
2008 Sep 01
1
[PATCH 2/4 v2] PCI: support ARI capability
...abled = 1;
+ dev_info(&dev->dev, "ARI forwarding enabled.\n");
+
+ pci_read_config_word(dev, pos + PCI_EXP_DEVCTL2, &ctrl);
+ if (ctrl & PCI_EXP_DEVCTL2_ARI)
+ return;
+
+ ctrl |= PCI_EXP_DEVCTL2_ARI;
+ pci_write_config_word(dev, pos + PCI_EXP_DEVCTL2, ctrl);
+}
+
+/**
+ * pci_ari_next_fn - find next function number
+ * @dev: the PCI device
+ *
+ * Returns function number, or 0 if there are no higher numbered
+ * functions; returns negative on failure.
+ */
+int pci_ari_next_fn(struct pci_dev *dev)
+{
+ int pos;
+ u16 cap;
+
+ if (dev->pcie_type != PCI_EXP_TYPE_ENDPOINT)
+ retur...
2008 Sep 01
1
[PATCH 2/4 v2] PCI: support ARI capability
...abled = 1;
+ dev_info(&dev->dev, "ARI forwarding enabled.\n");
+
+ pci_read_config_word(dev, pos + PCI_EXP_DEVCTL2, &ctrl);
+ if (ctrl & PCI_EXP_DEVCTL2_ARI)
+ return;
+
+ ctrl |= PCI_EXP_DEVCTL2_ARI;
+ pci_write_config_word(dev, pos + PCI_EXP_DEVCTL2, ctrl);
+}
+
+/**
+ * pci_ari_next_fn - find next function number
+ * @dev: the PCI device
+ *
+ * Returns function number, or 0 if there are no higher numbered
+ * functions; returns negative on failure.
+ */
+int pci_ari_next_fn(struct pci_dev *dev)
+{
+ int pos;
+ u16 cap;
+
+ if (dev->pcie_type != PCI_EXP_TYPE_ENDPOINT)
+ retur...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...describe PCI devices.
@@ -230,6 +231,9 @@ #ifdef CONFIG_PCI_MSI
struct list_head msi_list;
#endif
struct pci_vpd *vpd;
+#ifdef CONFIG_PCI_IOV
+ struct pci_iov *iov; /* IOV capability related */
+#endif
};
extern struct pci_dev *alloc_pci_dev(void);
@@ -1154,5 +1158,36 @@ static inline int pci_ari_next_fn(struct
}
#endif
+#define PCI_IOV_VF_ENA 0x00000001U /* VF enable */
+#define PCI_IOV_VF_DIS 0x00000002U /* VF disable */
+#define PCI_IOV_VF_PAR 0x00000004U /* VF parameter change */
+#define PCI_IOV_VF_NUM 0x00000008U /* Number of VFs change */
+#define PCI_IOV_VF_ERR 0x00000010U /* VF error *...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...describe PCI devices.
@@ -230,6 +231,9 @@ #ifdef CONFIG_PCI_MSI
struct list_head msi_list;
#endif
struct pci_vpd *vpd;
+#ifdef CONFIG_PCI_IOV
+ struct pci_iov *iov; /* IOV capability related */
+#endif
};
extern struct pci_dev *alloc_pci_dev(void);
@@ -1154,5 +1158,36 @@ static inline int pci_ari_next_fn(struct
}
#endif
+#define PCI_IOV_VF_ENA 0x00000001U /* VF enable */
+#define PCI_IOV_VF_DIS 0x00000002U /* VF disable */
+#define PCI_IOV_VF_PAR 0x00000004U /* VF parameter change */
+#define PCI_IOV_VF_NUM 0x00000008U /* Number of VFs change */
+#define PCI_IOV_VF_ERR 0x00000010U /* VF error *...
2008 Aug 12
0
SR-IOV: patches are available for Linux kernel [3/4]
...describe PCI devices.
@@ -230,6 +231,9 @@ #ifdef CONFIG_PCI_MSI
struct list_head msi_list;
#endif
struct pci_vpd *vpd;
+#ifdef CONFIG_PCI_IOV
+ struct pci_iov *iov; /* IOV capability related */
+#endif
};
extern struct pci_dev *alloc_pci_dev(void);
@@ -1154,5 +1158,36 @@ static inline int pci_ari_next_fn(struct
}
#endif
+#define PCI_IOV_VF_ENA 0x00000001U /* VF enable */
+#define PCI_IOV_VF_DIS 0x00000002U /* VF disable */
+#define PCI_IOV_VF_PAR 0x00000004U /* VF parameter change */
+#define PCI_IOV_VF_NUM 0x00000008U /* Number of VFs change */
+#define PCI_IOV_VF_ERR 0x00000010U /* VF error *...
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
..._vpd;
+struct pci_iov;
/*
* The pci_dev structure is used to describe PCI devices.
@@ -252,6 +259,7 @@ struct pci_dev {
struct list_head msi_list;
#endif
struct pci_vpd *vpd;
+ struct pci_iov *iov;
};
extern struct pci_dev *alloc_pci_dev(void);
@@ -1162,5 +1170,25 @@ static inline int pci_ari_next_fn(struct pci_dev *dev)
}
#endif /* CONFIG_PCI_ARI */
+#define PCI_IOV_VF_ENABLE 0x01U /* VF enable request */
+#define PCI_IOV_VF_DISABLE 0x02U /* VF disable request */
+#define PCI_IOV_VF_GETPARAM 0x03U /* get VF parameter */
+#define PCI_IOV_VF_SETPARAM 0x04U /* set VF parameter */
+
+#ifdef CO...
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
..._vpd;
+struct pci_iov;
/*
* The pci_dev structure is used to describe PCI devices.
@@ -252,6 +259,7 @@ struct pci_dev {
struct list_head msi_list;
#endif
struct pci_vpd *vpd;
+ struct pci_iov *iov;
};
extern struct pci_dev *alloc_pci_dev(void);
@@ -1162,5 +1170,25 @@ static inline int pci_ari_next_fn(struct pci_dev *dev)
}
#endif /* CONFIG_PCI_ARI */
+#define PCI_IOV_VF_ENABLE 0x01U /* VF enable request */
+#define PCI_IOV_VF_DISABLE 0x02U /* VF disable request */
+#define PCI_IOV_VF_GETPARAM 0x03U /* get VF parameter */
+#define PCI_IOV_VF_SETPARAM 0x04U /* set VF parameter */
+
+#ifdef CO...
2008 Sep 01
2
[PATCH 3/4 v2] PCI: support SR-IOV capability
..._vpd;
+struct pci_iov;
/*
* The pci_dev structure is used to describe PCI devices.
@@ -252,6 +259,7 @@ struct pci_dev {
struct list_head msi_list;
#endif
struct pci_vpd *vpd;
+ struct pci_iov *iov;
};
extern struct pci_dev *alloc_pci_dev(void);
@@ -1162,5 +1170,25 @@ static inline int pci_ari_next_fn(struct pci_dev *dev)
}
#endif /* CONFIG_PCI_ARI */
+#define PCI_IOV_VF_ENABLE 0x01U /* VF enable request */
+#define PCI_IOV_VF_DISABLE 0x02U /* VF disable request */
+#define PCI_IOV_VF_GETPARAM 0x03U /* get VF parameter */
+#define PCI_IOV_VF_SETPARAM 0x04U /* set VF parameter */
+
+#ifdef CO...