Lines Matching defs:device
16 #include <linux/device.h>
56 * Known device types
114 * AP queue device states
120 AP_DEV_STATE_ERROR, /* device is in error state */
150 struct device device;
151 struct ap_driver *drv; /* Pointer to AP device driver. */
152 int device_type; /* AP device type. */
155 #define to_ap_dev(x) container_of((x), struct ap_device, device)
161 unsigned int functions; /* AP device function bitfield. */
165 atomic64_t total_request_count; /* # requests ever for this AP device.*/
168 #define to_ap_card(x) container_of((x), struct ap_card, ap_dev.device)
174 spinlock_t lock; /* Per device lock. */
176 enum ap_dev_state dev_state; /* queue device state */
183 u64 total_request_count; /* # requests ever for this AP device.*/
188 struct ap_message *reply; /* Per device reply message. */
193 #define to_ap_queue(x) container_of((x), struct ap_queue, ap_dev.device)
299 * Get ap_queue device for this qid.
300 * Returns ptr to the struct ap_queue device or NULL if there
301 * was no ap_queue device with this qid found. When something is
302 * found, the reference count of the embedded device is increased.
304 * with a call to put_device(&aq->ap_dev.device).