Lines Matching refs:rceb

301 static void uwb_rc_neh_cb(struct uwb_rc_neh *neh, struct uwb_rceb *rceb, size_t size)  in uwb_rc_neh_cb()  argument
303 (*neh->cb)(neh->rc, neh->arg, rceb, size); in uwb_rc_neh_cb()
307 static bool uwb_rc_neh_match(struct uwb_rc_neh *neh, const struct uwb_rceb *rceb) in uwb_rc_neh_match() argument
309 return neh->evt_type == rceb->bEventType in uwb_rc_neh_match()
310 && neh->evt == rceb->wEvent in uwb_rc_neh_match()
311 && neh->context == rceb->bEventContext; in uwb_rc_neh_match()
330 const struct uwb_rceb *rceb) in uwb_rc_neh_lookup() argument
338 if (uwb_rc_neh_match(h, rceb)) { in uwb_rc_neh_lookup()
379 void uwb_rc_notif(struct uwb_rc *rc, struct uwb_rceb *rceb, ssize_t size) in uwb_rc_notif() argument
395 rceb->bEventType, le16_to_cpu(rceb->wEvent), in uwb_rc_notif()
396 rceb->bEventContext); in uwb_rc_notif()
403 uwb_evt->notif.rceb = rceb; in uwb_rc_notif()
408 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
415 if (rceb->bEventContext == 0) { in uwb_rc_neh_grok_event()
418 memcpy(notif, rceb, size); in uwb_rc_neh_grok_event()
422 rceb->bEventType, le16_to_cpu(rceb->wEvent), in uwb_rc_neh_grok_event()
423 rceb->bEventContext, size); in uwb_rc_neh_grok_event()
425 neh = uwb_rc_neh_lookup(rc, rceb); in uwb_rc_neh_grok_event()
432 uwb_rc_neh_cb(neh, rceb, size); in uwb_rc_neh_grok_event()
435 rceb->bEventType, le16_to_cpu(rceb->wEvent), in uwb_rc_neh_grok_event()
436 rceb->bEventContext, size); in uwb_rc_neh_grok_event()
484 struct uwb_rceb *rceb; in uwb_rc_neh_grok() local
491 if (size < sizeof(*rceb)) { in uwb_rc_neh_grok()
494 "%zu)\n", size, sizeof(*rceb)); in uwb_rc_neh_grok()
498 rceb = itr; in uwb_rc_neh_grok()
500 needtofree = rc->filter_event(rc, &rceb, size, in uwb_rc_neh_grok()
505 "device. \n", rceb->bEventType, in uwb_rc_neh_grok()
506 le16_to_cpu(rceb->wEvent), in uwb_rc_neh_grok()
507 rceb->bEventContext); in uwb_rc_neh_grok()
515 ssize_t ret = uwb_est_find_size(rc, rceb, size); in uwb_rc_neh_grok()
522 rceb->bEventType, le16_to_cpu(rceb->wEvent), in uwb_rc_neh_grok()
523 rceb->bEventContext, ret, size); in uwb_rc_neh_grok()
528 uwb_rc_neh_grok_event(rc, rceb, event_size); in uwb_rc_neh_grok()
531 kfree(rceb); in uwb_rc_neh_grok()