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 bus_next;
121 struct kref kref;
122 struct hotplug_slot hotplug_slot;
124 enum zpci_state state;
125 u32 fid; /* function ID, used by sclp */
126 u32 fh; /* function handle, used by insn's */
127 u16 vfn; /* virtual function number */
128 u16 pchid; /* physical channel ID */
129 u8 pfgid; /* function group ID */
130 u8 pft; /* pci function type */
131 u8 port;
132 u8 rid_available : 1;
133 u8 has_hp_slot : 1;
134 u8 is_physfn : 1;
135 u8 util_str_avail : 1;
136 u8 reserved : 4;
137 unsigned int devfn; /* DEVFN part of the RID*/
139 struct mutex lock;
140 u8 pfip[CLP_PFIP_NR_SEGMENTS]; /* pci function internal path */
141 u32 uid; /* user defined id */
142 u8 util_str[CLP_UTIL_STR_LEN]; /* utility string */
145 u64 msi_addr; /* MSI address */
146 unsigned int max_msi; /* maximum number of MSI's */
147 unsigned int msi_first_bit;
148 unsigned int msi_nr_irqs;
149 struct airq_iv *aibv; /* adapter interrupt bit vector */
150 unsigned long aisb; /* number of the summary bit */
153 unsigned long *dma_table;
154 spinlock_t dma_table_lock;
155 int tlb_refresh;
157 spinlock_t iommu_bitmap_lock;
158 unsigned long *iommu_bitmap;
159 unsigned long *lazy_bitmap;
160 unsigned long iommu_size;
161 unsigned long iommu_pages;
162 unsigned int next_bit;
164 struct iommu_device iommu_dev; /* IOMMU core handle */
166 char res_name[16];
167 bool mio_capable;
191 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument