Lines Matching refs:rceb

299 static void uwb_rc_neh_cb(struct uwb_rc_neh *neh, struct uwb_rceb *rceb, size_t size)  in uwb_rc_neh_cb()  argument
301 (*neh->cb)(neh->rc, neh->arg, rceb, size); in uwb_rc_neh_cb()
305 static bool uwb_rc_neh_match(struct uwb_rc_neh *neh, const struct uwb_rceb *rceb) in uwb_rc_neh_match() argument
307 return neh->evt_type == rceb->bEventType in uwb_rc_neh_match()
308 && neh->evt == rceb->wEvent in uwb_rc_neh_match()
309 && neh->context == rceb->bEventContext; in uwb_rc_neh_match()
328 const struct uwb_rceb *rceb) in uwb_rc_neh_lookup() argument
336 if (uwb_rc_neh_match(h, rceb)) { in uwb_rc_neh_lookup()
377 void uwb_rc_notif(struct uwb_rc *rc, struct uwb_rceb *rceb, ssize_t size) in uwb_rc_notif() argument
393 rceb->bEventType, le16_to_cpu(rceb->wEvent), in uwb_rc_notif()
394 rceb->bEventContext); in uwb_rc_notif()
401 uwb_evt->notif.rceb = rceb; in uwb_rc_notif()
406 static void uwb_rc_neh_grok_event(struct uwb_rc *rc, struct uwb_rceb *rceb, size_t size) in uwb_rc_neh_grok_event() argument
413 if (rceb->bEventContext == 0) { in uwb_rc_neh_grok_event()
416 memcpy(notif, rceb, size); in uwb_rc_neh_grok_event()
420 rceb->bEventType, le16_to_cpu(rceb->wEvent), in uwb_rc_neh_grok_event()
421 rceb->bEventContext, size); in uwb_rc_neh_grok_event()
423 neh = uwb_rc_neh_lookup(rc, rceb); in uwb_rc_neh_grok_event()
430 uwb_rc_neh_cb(neh, rceb, size); in uwb_rc_neh_grok_event()
433 rceb->bEventType, le16_to_cpu(rceb->wEvent), in uwb_rc_neh_grok_event()
434 rceb->bEventContext, size); in uwb_rc_neh_grok_event()
482 struct uwb_rceb *rceb; in uwb_rc_neh_grok() local
489 if (size < sizeof(*rceb)) { in uwb_rc_neh_grok()
492 "%zu)\n", size, sizeof(*rceb)); in uwb_rc_neh_grok()
496 rceb = itr; in uwb_rc_neh_grok()
498 needtofree = rc->filter_event(rc, &rceb, size, in uwb_rc_neh_grok()
503 "device. \n", rceb->bEventType, in uwb_rc_neh_grok()
504 le16_to_cpu(rceb->wEvent), in uwb_rc_neh_grok()
505 rceb->bEventContext); in uwb_rc_neh_grok()
513 ssize_t ret = uwb_est_find_size(rc, rceb, size); in uwb_rc_neh_grok()
520 rceb->bEventType, le16_to_cpu(rceb->wEvent), in uwb_rc_neh_grok()
521 rceb->bEventContext, ret, size); in uwb_rc_neh_grok()
526 uwb_rc_neh_grok_event(rc, rceb, event_size); in uwb_rc_neh_grok()
529 kfree(rceb); in uwb_rc_neh_grok()