Lines Matching refs:size

72  *   body, btw). So we need a facility to get the event size given the
74 * Tables), check nest.c--as well, you can associate the size to
77 * - Most notifications/events are fixed size; only a few are variable
78 * size (NEST takes care of that).
81 * buffer, as they know the size. Listeners to notifications don't,
101 * called with -ETIMEDOUT as the event size.
301 static void uwb_rc_neh_cb(struct uwb_rc_neh *neh, struct uwb_rceb *rceb, size_t size)
303 (*neh->cb)(neh->rc, neh->arg, rceb, size);
319 * @event_size: Pointer to the size of the RCEB buffer. Might be
324 * the right size (the amount of data received). @neh->ptr will point
379 void uwb_rc_notif(struct uwb_rc *rc, struct uwb_rceb *rceb, ssize_t size)
384 if (size == -ESHUTDOWN)
386 if (size < 0) {
388 size);
402 uwb_evt->notif.size = size;
408 static void uwb_rc_neh_grok_event(struct uwb_rc *rc, struct uwb_rceb *rceb, size_t size)
416 notif = kmalloc(size, GFP_ATOMIC);
418 memcpy(notif, rceb, size);
419 uwb_rc_notif(rc, notif, size);
423 rceb->bEventContext, size);
432 uwb_rc_neh_cb(neh, rceb, size);
436 rceb->bEventContext, size);
449 * uwb_rceb', so the minimum size if 4 bytes.
456 * For each notif/event, tries to guess the size looking at the EST
461 * Note that if we can't find a size description in the EST tables, we
462 * still might find a size in the 'neh' handle in uwb_rc_neh_lookup().
469 * size: contains the size of the buffer that is processed for the
473 * We need to keep track of the real size of an event to be able to
475 * event_size: the size of the event as expected by the core layer
476 * [OR] the size of the event after filtering. if the filtering
478 * effectively the size of a new event buffer
485 size_t size, real_size, event_size;
489 size = buf_size;
490 while (size > 0) {
491 if (size < sizeof(*rceb)) {
494 "%zu)\n", size, sizeof(*rceb));
500 needtofree = rc->filter_event(rc, &rceb, size,
515 ssize_t ret = uwb_est_find_size(rc, rceb, size);
518 if (ret > size) {
523 rceb->bEventContext, ret, size);
534 size -= real_size;