Lines Matching refs:sub

33 static int	vmci_event_register_subscription(struct vmci_subscription *sub,
43 struct vmci_subscription *sub; member
48 struct vmci_subscription *sub; member
245 struct vmci_subscription *sub = (struct vmci_subscription *)client_data; in event_release_cb() local
247 ASSERT(sub); in event_release_cb()
250 vmci_event_release(sub); in event_release_cb()
310 struct vmci_subscription *sub; in vmci_event_delayed_dispatch_cb() local
316 ASSERT(event_info->sub); in vmci_event_delayed_dispatch_cb()
318 sub = event_info->sub; in vmci_event_delayed_dispatch_cb()
321 sub->callback(sub->id, ed, sub->callback_data); in vmci_event_delayed_dispatch_cb()
324 vmci_event_release(sub); in vmci_event_delayed_dispatch_cb()
375 event_info->sub = iter; in vmci_event_deliver()
402 event_ref->sub = iter; in vmci_event_deliver()
420 cur = iter->sub; in vmci_event_deliver()
497 vmci_event_register_subscription(struct vmci_subscription *sub, in vmci_event_register_subscription() argument
507 ASSERT(sub); in vmci_event_register_subscription()
523 sub->run_delayed = false; in vmci_event_register_subscription()
529 sub->run_delayed = (flags & VMCI_FLAG_EVENT_DELAYED_CB) ? in vmci_event_register_subscription()
533 sub->ref_count = 1; in vmci_event_register_subscription()
534 sub->event = event; in vmci_event_register_subscription()
535 sub->callback = callback; in vmci_event_register_subscription()
536 sub->callback_data = callback_data; in vmci_event_register_subscription()
549 sub->id = ++subscription_id; in vmci_event_register_subscription()
552 existing_sub = vmci_event_find(sub->id); in vmci_event_register_subscription()
561 vmci_create_event(&sub->destroy_event); in vmci_event_register_subscription()
562 vmci_list_insert(&subscriber_array[event], sub, in vmci_event_register_subscription()