Lines Matching refs:payload
510 static void uevent_event(uint32_t /*epevents*/, struct data *payload) { in uevent_event() argument
515 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
527 pthread_mutex_lock(&payload->usb->mPartnerLock); in uevent_event()
528 payload->usb->mPartnerUp = true; in uevent_event()
529 pthread_cond_signal(&payload->usb->mPartnerCV); in uevent_event()
530 pthread_mutex_unlock(&payload->usb->mPartnerLock); in uevent_event()
534 pthread_mutex_lock(&payload->usb->mLock); in uevent_event()
535 if (payload->usb->mCallback_1_0 != NULL) { in uevent_event()
536 sp<IUsbCallback> callback_V1_1 = IUsbCallback::castFrom(payload->usb->mCallback_1_0); in uevent_event()
557 ret = payload->usb->mCallback_1_0->notifyPortStatusChange( in uevent_event()
564 pthread_mutex_unlock(&payload->usb->mLock); in uevent_event()
567 if (!pthread_mutex_trylock(&payload->usb->mRoleSwitchLock)) { in uevent_event()
579 pthread_mutex_unlock(&payload->usb->mRoleSwitchLock); in uevent_event()
592 struct data payload; in work() local
603 payload.uevent_fd = uevent_fd; in work()
604 payload.usb = (android::hardware::usb::V1_1::implementation::Usb *)param; in work()
634 (*(void (*)(int, struct data *payload))events[n].data.ptr)( in work()
635 events[n].events, &payload); in work()