ap_bus.h (2ea2a6099ae3d1708f90f43c81a98cba3d4bb74c) | ap_bus.h (4f2fcccdb547b09a4532c705078811e672fb9235) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * Copyright IBM Corp. 2006, 2019 4 * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com> 5 * Martin Schwidefsky <schwidefsky@de.ibm.com> 6 * Ralph Wuerthner <rwuerthn@de.ibm.com> 7 * Felix Beck <felix.beck@de.ibm.com> 8 * Holger Dengler <hd@linux.vnet.ibm.com> --- 152 unchanged lines hidden (view full) --- 161 162struct ap_card { 163 struct ap_device ap_dev; 164 void *private; /* ap driver private pointer. */ 165 int raw_hwtype; /* AP raw hardware type. */ 166 unsigned int functions; /* AP device function bitfield. */ 167 int queue_depth; /* AP queue depth.*/ 168 int id; /* AP card number. */ | 1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * Copyright IBM Corp. 2006, 2019 4 * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com> 5 * Martin Schwidefsky <schwidefsky@de.ibm.com> 6 * Ralph Wuerthner <rwuerthn@de.ibm.com> 7 * Felix Beck <felix.beck@de.ibm.com> 8 * Holger Dengler <hd@linux.vnet.ibm.com> --- 152 unchanged lines hidden (view full) --- 161 162struct ap_card { 163 struct ap_device ap_dev; 164 void *private; /* ap driver private pointer. */ 165 int raw_hwtype; /* AP raw hardware type. */ 166 unsigned int functions; /* AP device function bitfield. */ 167 int queue_depth; /* AP queue depth.*/ 168 int id; /* AP card number. */ |
169 bool config; /* configured state */ |
|
169 atomic64_t total_request_count; /* # requests ever for this AP device.*/ 170}; 171 172#define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device) 173 174struct ap_queue { 175 struct ap_device ap_dev; 176 struct hlist_node hnode; /* Node for the ap_queues hashtable */ 177 struct ap_card *card; /* Ptr to assoc. AP card. */ 178 spinlock_t lock; /* Per device lock. */ 179 void *private; /* ap driver private pointer. */ 180 enum ap_dev_state dev_state; /* queue device state */ | 170 atomic64_t total_request_count; /* # requests ever for this AP device.*/ 171}; 172 173#define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device) 174 175struct ap_queue { 176 struct ap_device ap_dev; 177 struct hlist_node hnode; /* Node for the ap_queues hashtable */ 178 struct ap_card *card; /* Ptr to assoc. AP card. */ 179 spinlock_t lock; /* Per device lock. */ 180 void *private; /* ap driver private pointer. */ 181 enum ap_dev_state dev_state; /* queue device state */ |
182 bool config; /* configured state */ |
|
181 ap_qid_t qid; /* AP queue id. */ 182 int interrupt; /* indicate if interrupts are enabled */ 183 int queue_count; /* # messages currently on AP queue. */ 184 int pendingq_count; /* # requests on pendingq list. */ 185 int requestq_count; /* # requests on requestq list. */ 186 u64 total_request_count; /* # requests ever for this AP device.*/ 187 int request_timeout; /* Request timeout in jiffies. */ 188 struct timer_list timeout; /* Timer for request timeouts. */ --- 137 unchanged lines hidden --- | 183 ap_qid_t qid; /* AP queue id. */ 184 int interrupt; /* indicate if interrupts are enabled */ 185 int queue_count; /* # messages currently on AP queue. */ 186 int pendingq_count; /* # requests on pendingq list. */ 187 int requestq_count; /* # requests on requestq list. */ 188 u64 total_request_count; /* # requests ever for this AP device.*/ 189 int request_timeout; /* Request timeout in jiffies. */ 190 struct timer_list timeout; /* Timer for request timeouts. */ --- 137 unchanged lines hidden --- |