Lines Matching defs:zpci_dev

117 struct zpci_dev {  struct
119 struct list_head entry; /* list of all zpci_devices, needed for hotplug, etc. */ argument
120 struct list_head iommu_list;
121 struct kref kref;
122 struct rcu_head rcu;
123 struct hotplug_slot hotplug_slot;
125 enum zpci_state state;
126 u32 fid; /* function ID, used by sclp */
127 u32 fh; /* function handle, used by insn's */
128 u32 gisa; /* GISA designation for passthrough */
129 u16 vfn; /* virtual function number */
130 u16 pchid; /* physical channel ID */
131 u16 maxstbl; /* Maximum store block size */
132 u8 pfgid; /* function group ID */
133 u8 pft; /* pci function type */
134 u8 port;
135 u8 dtsm; /* Supported DT mask */
136 u8 rid_available : 1;
137 u8 has_hp_slot : 1;
138 u8 has_resources : 1;
139 u8 is_physfn : 1;
140 u8 util_str_avail : 1;
141 u8 irqs_registered : 1;
142 u8 reserved : 2;
143 unsigned int devfn; /* DEVFN part of the RID*/
145 struct mutex lock;
146 u8 pfip[CLP_PFIP_NR_SEGMENTS]; /* pci function internal path */
147 u32 uid; /* user defined id */
148 u8 util_str[CLP_UTIL_STR_LEN]; /* utility string */
151 u64 msi_addr; /* MSI address */
152 unsigned int max_msi; /* maximum number of MSI's */
153 unsigned int msi_first_bit;
154 unsigned int msi_nr_irqs;
155 struct airq_iv *aibv; /* adapter interrupt bit vector */
156 unsigned long aisb; /* number of the summary bit */
159 unsigned long *dma_table;
160 int tlb_refresh;
162 spinlock_t iommu_bitmap_lock;
163 unsigned long *iommu_bitmap;
164 unsigned long *lazy_bitmap;
165 unsigned long iommu_size;
166 unsigned long iommu_pages;
167 unsigned int next_bit;
169 struct iommu_device iommu_dev; /* IOMMU core handle */
171 char res_name[16];
172 bool mio_capable;
173 struct zpci_bar_struct bars[PCI_STD_NUM_BARS];
175 u64 start_dma; /* Start of available DMA addresses */
199 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument