80 #ifndef __HWAHC_INTERNAL_H__
81 #define __HWAHC_INTERNAL_H__
115 struct usb_host_endpoint *
ep;
226 static inline void wa_nep_disarm(
struct wahc *wa)
233 static inline void wa_rpipe_init(
struct wahc *wa)
239 static inline void wa_init(
struct wahc *wa)
260 void __rpipe_get(
struct wa_rpipe *rpipe)
266 static inline void rpipe_put(
struct wa_rpipe *rpipe)
274 static inline void rpipe_avail_dec(
struct wa_rpipe *rpipe)
282 static inline int rpipe_avail_inc(
struct wa_rpipe *rpipe)
307 static inline struct wahc *wa_get(
struct wahc *wa)
313 static inline void wa_put(
struct wahc *wa)
325 wa->
usb_iface->cur_altsetting->desc.bInterfaceNumber,
330 static inline int __wa_set_feature(
struct wahc *wa,
u16 feature)
332 return __wa_feature(wa, 1, feature);
336 static inline int __wa_clear_feature(
struct wahc *wa,
u16 feature)
338 return __wa_feature(wa, 0, feature);
352 s32 __wa_get_status(
struct wahc *wa)
359 0, wa->
usb_iface->cur_altsetting->desc.bInterfaceNumber,
386 result = __wa_get_status(wa);
387 if ((result & mask) == value)
393 }
while (result >= 0);
399 static inline int __wa_stop(
struct wahc *wa)
404 result = __wa_clear_feature(wa,
WA_ENABLE);
405 if (result < 0 && result != -
ENODEV) {
406 dev_err(dev,
"error commanding HC to stop: %d\n", result);
409 result = __wa_wait_status(wa,
WA_ENABLE, 0);
410 if (result < 0 && result != -
ENODEV)
411 dev_err(dev,
"error waiting for HC to stop: %d\n", result);