Lines Matching refs:payload
514 static void uevent_event(uint32_t /*epevents*/, struct data *payload) { in uevent_event() argument
519 n = uevent_kernel_multicast_recv(payload->uevent_fd, msg, UEVENT_MSG_LEN); in uevent_event()
531 pthread_mutex_lock(&payload->usb->mPartnerLock); in uevent_event()
532 payload->usb->mPartnerUp = true; in uevent_event()
533 pthread_cond_signal(&payload->usb->mPartnerCV); in uevent_event()
534 pthread_mutex_unlock(&payload->usb->mPartnerLock); in uevent_event()
538 pthread_mutex_lock(&payload->usb->mLock); in uevent_event()
539 if (payload->usb->mCallback_1_0 != NULL) { in uevent_event()
540 sp<IUsbCallback> callback_V1_1 = IUsbCallback::castFrom(payload->usb->mCallback_1_0); in uevent_event()
561 ret = payload->usb->mCallback_1_0->notifyPortStatusChange( in uevent_event()
568 pthread_mutex_unlock(&payload->usb->mLock); in uevent_event()
571 if (!pthread_mutex_trylock(&payload->usb->mRoleSwitchLock)) { in uevent_event()
583 pthread_mutex_unlock(&payload->usb->mRoleSwitchLock); in uevent_event()
596 struct data payload; in work() local
607 payload.uevent_fd = uevent_fd; in work()
608 payload.usb = (android::hardware::usb::V1_1::implementation::Usb *)param; in work()
638 (*(void (*)(int, struct data *payload))events[n].data.ptr)( in work()
639 events[n].events, &payload); in work()