| /freebsd/crypto/heimdal/kcm/ |
| H A D | events.c | 48 kcm_event *event) in kcm_enqueue_event() argument 52 if (event->action == KCM_EVENT_NONE) { in kcm_enqueue_event() 57 ret = kcm_enqueue_event_internal(context, event); in kcm_enqueue_event() 73 log_event(kcm_event *event, char *msg) in log_event() argument 77 print_times(event->fire_time, fire_time); in log_event() 78 print_times(event->expire_time, expire_time); in log_event() 82 msg, event, fire_time, event->fire_count, expire_time, in log_event() 83 event->backoff_time, action_strings[event->action], in log_event() 84 event->ccache->name); in log_event() 89 kcm_event *event) in kcm_enqueue_event_internal() argument [all …]
|
| /freebsd/sys/netgraph/bluetooth/hci/ |
| H A D | ng_hci_evnt.c | 54 ** HCI event processing module 83 * Process HCI event packet 87 ng_hci_process_event(ng_hci_unit_p unit, struct mbuf *event) in ng_hci_process_event() argument 92 /* Get event packet header */ in ng_hci_process_event() 93 NG_HCI_M_PULLUP(event, sizeof(*hdr)); in ng_hci_process_event() 94 if (event == NULL) in ng_hci_process_event() 97 hdr = mtod(event, ng_hci_event_pkt_t *); in ng_hci_process_event() 100 "%s: %s - got HCI event=%#x, length=%d\n", in ng_hci_process_event() 101 __func__, NG_NODE_NAME(unit->node), hdr->event, hdr->length); in ng_hci_process_event() 103 /* Get rid of event heade in ng_hci_process_event() 377 le_advertizing_report(ng_hci_unit_p unit,struct mbuf * event) le_advertizing_report() argument 469 le_connection_complete(ng_hci_unit_p unit,struct mbuf * event) le_connection_complete() argument 569 le_connection_update(ng_hci_unit_p unit,struct mbuf * event) le_connection_update() argument 579 le_event(ng_hci_unit_p unit,struct mbuf * event) le_event() argument 614 inquiry_result(ng_hci_unit_p unit,struct mbuf * event) inquiry_result() argument 675 con_compl(ng_hci_unit_p unit,struct mbuf * event) con_compl() argument 801 con_req(ng_hci_unit_p unit,struct mbuf * event) con_req() argument 886 discon_compl(ng_hci_unit_p unit,struct mbuf * event) discon_compl() argument 932 encryption_change(ng_hci_unit_p unit,struct mbuf * event) encryption_change() argument 979 read_remote_features_compl(ng_hci_unit_p unit,struct mbuf * event) read_remote_features_compl() argument 1032 qos_setup_compl(ng_hci_unit_p unit,struct mbuf * event) qos_setup_compl() argument 1074 hardware_error(ng_hci_unit_p unit,struct mbuf * event) hardware_error() argument 1087 role_change(ng_hci_unit_p unit,struct mbuf * event) role_change() argument 1124 num_compl_pkts(ng_hci_unit_p unit,struct mbuf * event) num_compl_pkts() argument 1182 mode_change(ng_hci_unit_p unit,struct mbuf * event) mode_change() argument 1223 data_buffer_overflow(ng_hci_unit_p unit,struct mbuf * event) data_buffer_overflow() argument 1237 read_clock_offset_compl(ng_hci_unit_p unit,struct mbuf * event) read_clock_offset_compl() argument 1289 qos_violation(ng_hci_unit_p unit,struct mbuf * event) qos_violation() argument 1330 page_scan_mode_change(ng_hci_unit_p unit,struct mbuf * event) page_scan_mode_change() argument 1365 page_scan_rep_mode_change(ng_hci_unit_p unit,struct mbuf * event) page_scan_rep_mode_change() argument [all...] |
| /freebsd/contrib/llvm-project/lldb/source/API/ |
| H A D | SBListener.cpp | 59 void SBListener::AddEvent(const SBEvent &event) { in AddEvent() argument 60 LLDB_INSTRUMENT_VA(this, event); in AddEvent() 62 EventSP &event_sp = event.GetSP(); in AddEvent() 129 bool SBListener::WaitForEvent(uint32_t timeout_secs, SBEvent &event) { in WaitForEvent() argument 130 LLDB_INSTRUMENT_VA(this, timeout_secs, event); in WaitForEvent() 143 event.reset(event_sp); in WaitForEvent() 149 event.reset(nullptr); in WaitForEvent() 155 SBEvent &event) { in WaitForEventForBroadcaster() argument 156 LLDB_INSTRUMENT_VA(this, num_seconds, broadcaster, event); in WaitForEventForBroadcaster() 165 event.reset(event_sp); in WaitForEventForBroadcaster() [all …]
|
| /freebsd/contrib/libyaml/src/ |
| H A D | loader.c | 56 yaml_parser_load_document(yaml_parser_t *parser, yaml_event_t *event); 59 yaml_parser_load_alias(yaml_parser_t *parser, yaml_event_t *event, 63 yaml_parser_load_scalar(yaml_parser_t *parser, yaml_event_t *event, 67 yaml_parser_load_sequence(yaml_parser_t *parser, yaml_event_t *event, 71 yaml_parser_load_mapping(yaml_parser_t *parser, yaml_event_t *event, 75 yaml_parser_load_sequence_end(yaml_parser_t *parser, yaml_event_t *event, 79 yaml_parser_load_mapping_end(yaml_parser_t *parser, yaml_event_t *event, 89 yaml_event_t event; in yaml_parser_load() local 99 if (!yaml_parser_parse(parser, &event)) goto error; in yaml_parser_load() 100 assert(event.type == YAML_STREAM_START_EVENT); in yaml_parser_load() [all …]
|
| H A D | parser.c | 68 yaml_parser_parse(yaml_parser_t *parser, yaml_event_t *event); 88 yaml_parser_state_machine(yaml_parser_t *parser, yaml_event_t *event); 91 yaml_parser_parse_stream_start(yaml_parser_t *parser, yaml_event_t *event); 94 yaml_parser_parse_document_start(yaml_parser_t *parser, yaml_event_t *event, 98 yaml_parser_parse_document_content(yaml_parser_t *parser, yaml_event_t *event); 101 yaml_parser_parse_document_end(yaml_parser_t *parser, yaml_event_t *event); 104 yaml_parser_parse_node(yaml_parser_t *parser, yaml_event_t *event, 109 yaml_event_t *event, int first); 113 yaml_event_t *event); 117 yaml_event_t *event, int first); [all …]
|
| H A D | emitter.c | 69 yaml_emitter_emit(yaml_emitter_t *emitter, yaml_event_t *event); 94 yaml_emitter_state_machine(yaml_emitter_t *emitter, yaml_event_t *event); 98 yaml_event_t *event); 102 yaml_event_t *event, int first); 106 yaml_event_t *event); 110 yaml_event_t *event); 114 yaml_event_t *event, int first); 118 yaml_event_t *event, int first); 122 yaml_event_t *event, int simple); 126 yaml_event_t *event, int first); [all …]
|
| /freebsd/contrib/wpa/src/drivers/ |
| H A D | rfkill.c | 58 struct rfkill_event event; in rfkill_receive() local 62 len = read(rfkill->fd, &event, sizeof(event)); in rfkill_receive() 74 if (event.op != RFKILL_OP_CHANGE || event.idx != rfkill->idx) in rfkill_receive() 79 event.idx, event.type, event.op, event.soft, in rfkill_receive() 80 event.hard); in rfkill_receive() 82 if (event.hard) { in rfkill_receive() 85 } else if (event.soft) { in rfkill_receive() 106 struct rfkill_event event; in rfkill_init() local 140 len = read(rfkill->fd, &event, sizeof(event)); in rfkill_init() 154 if (event.op != RFKILL_OP_ADD || in rfkill_init() [all …]
|
| H A D | driver_nl80211_event.c | 201 union wpa_event_data event; in mlme_event_auth() local 224 os_memset(&event, 0, sizeof(event)); in mlme_event_auth() 225 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN); in mlme_event_auth() 226 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg); in mlme_event_auth() 227 event.auth.auth_transaction = in mlme_event_auth() 229 event.auth.status_code = le_to_host16(mgmt->u.auth.status_code); in mlme_event_auth() 231 event.auth.ies = mgmt->u.auth.variable; in mlme_event_auth() 232 event.auth.ies_len = len - 24 - sizeof(mgmt->u.auth); in mlme_event_auth() 235 wpa_supplicant_event(drv->ctx, EVENT_AUTH, &event); in mlme_event_auth() 264 union wpa_event_data event; in mlme_event_assoc() local [all …]
|
| /freebsd/sys/arm64/coresight/ |
| H A D | coresight_cmd.c | 47 struct coresight_event *event) in coresight_next_device() argument 59 if (LIST_EMPTY(&event->endplist)) { in coresight_next_device() 62 LIST_INSERT_HEAD(&event->endplist, endp, in coresight_next_device() 71 LIST_INSERT_HEAD(&event->endplist, out_endp, endplink); in coresight_next_device() 82 struct coresight_event *event) in coresight_build_list() argument 88 out = coresight_next_device(out, event); in coresight_build_list() 94 coresight_init_event(int cpu, struct coresight_event *event) in coresight_init_event() argument 101 if (cs_dev->dev_type == event->src && in coresight_init_event() 103 LIST_INIT(&event->endplist); in coresight_init_event() 104 coresight_build_list(cs_dev, event); in coresight_init_event() [all …]
|
| /freebsd/contrib/ntp/libntp/lib/isc/ |
| H A D | event.c | 36 destroy(isc_event_t *event) { in destroy() argument 37 isc_mem_put(event->ev_destroy_arg, event, event->ev_size); in destroy() 44 isc_event_t *event; in isc_event_allocate() local 50 event = isc_mem_get(mctx, size); in isc_event_allocate() 51 if (event == NULL) in isc_event_allocate() 68 ISC_EVENT_INIT(event, size, 0, NULL, type, action, deconst_arg, in isc_event_allocate() 71 return (event); in isc_event_allocate() 76 isc_event_t *event; in isc_event_free() local 79 event = *eventp; in isc_event_free() 80 REQUIRE(event != NULL); in isc_event_free() [all …]
|
| /freebsd/contrib/processor-trace/libipt/test/src/ |
| H A D | ptunit-query.c | 133 struct pt_event event; in event_not_synced() local 136 errcode = pt_qry_event(decoder, &event, sizeof(event)); in event_not_synced() 384 struct pt_event event; in decode_sync_backward() local 414 errcode = pt_qry_event(decoder, &event, sizeof(event)); in decode_sync_backward() 416 ptu_int_eq(event.type, ptev_exec_mode); in decode_sync_backward() 418 errcode = pt_qry_event(decoder, &event, sizeof(event)); in decode_sync_backward() 420 ptu_int_eq(event.type, ptev_exec_mode); in decode_sync_backward() 848 struct pt_event event; in event_null() local 851 errcode = pt_qry_event(NULL, &event, sizeof(event)); in event_null() 854 errcode = pt_qry_event(decoder, NULL, sizeof(event)); in event_null() [all …]
|
| /freebsd/contrib/libyaml/tests/ |
| H A D | run-parser-test-suite.c | 13 yaml_event_t event; in main() local 56 if (!yaml_parser_parse(&parser, &event)) { in main() 68 type = event.type; in main() 78 if (!event.data.document_start.implicit) in main() 84 if (!event.data.document_end.implicit) in main() 90 if (flow == 0 && event.data.mapping_start.style == YAML_FLOW_MAPPING_STYLE) in main() 94 if (event.data.mapping_start.anchor) in main() 95 printf(" &%s", event.data.mapping_start.anchor); in main() 96 if (event.data.mapping_start.tag) in main() 97 printf(" <%s>", event.data.mapping_start.tag); in main() [all …]
|
| /freebsd/contrib/processor-trace/libipt/src/ |
| H A D | pt_query_decoder.c | 150 decoder->event = NULL; in pt_qry_reset() 729 decoder->event = NULL; in pt_qry_cache_tnt() 737 if (decoder->event) in pt_qry_cache_tnt() 811 decoder->event = NULL; in pt_qry_indirect_branch() 829 if (decoder->event) in pt_qry_indirect_branch() 869 int pt_qry_event(struct pt_query_decoder *decoder, struct pt_event *event, in pt_qry_event() argument 874 if (!decoder || !event) in pt_qry_event() 887 if (sizeof(*event) < size) in pt_qry_event() 888 size = sizeof(*event); in pt_qry_event() 915 decoder->event = NULL; in pt_qry_event() [all …]
|
| /freebsd/sys/dev/random/ |
| H A D | random_harvestq.c | 166 random_harvestq_fast_process_event(struct harvest_event *event) in random_harvestq_fast_process_event() argument 168 p_random_alg_context->ra_event_processor(event); in random_harvestq_fast_process_event() 169 explicit_bzero(event, sizeof(*event)); in random_harvestq_fast_process_event() 343 const struct harvest_event *event) in copy_event() argument 346 memcpy(dst, event->he_entropy, event->he_size); in copy_event() 347 if (event->he_source <= RANDOM_ENVIRONMENTAL_END) { in copy_event() 356 dst[HARVESTSIZE] = event->he_somecounter; in copy_event() 362 const struct harvest_event *event) in random_healthtest_rct_init() argument 365 copy_event(ht->ht_rct_value, event); in random_healthtest_rct_init() 376 const struct harvest_event *event) in random_healthtest_rct_next() argument [all …]
|
| /freebsd/contrib/netbsd-tests/kernel/kqueue/read/ |
| H A D | t_fifo.c | 61 struct kevent event[1]; in ATF_TC_BODY() local 69 EV_SET(&event[0], fd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); in ATF_TC_BODY() 70 RL(kevent(kq, event, 1, NULL, 0, NULL)); in ATF_TC_BODY() 76 (void)memset(event, 0, sizeof(event)); in ATF_TC_BODY() 78 RL(n = kevent(kq, NULL, 0, event, 1, NULL)); in ATF_TC_BODY() 82 "data: %" PRIdPTR "\n", n, event[0].filter, event[0].flags, in ATF_TC_BODY() 84 "data: %" PRId64 "\n", n, event[0].filter, event[0].flags, in ATF_TC_BODY() 86 event[0].fflags, event[0].data); in ATF_TC_BODY() 88 ATF_REQUIRE_EQ(event[0].filter, EVFILT_READ); in ATF_TC_BODY() 90 RL(n = read(fd, buffer, event[0].data)); in ATF_TC_BODY()
|
| /freebsd/contrib/ntp/sntp/libevent/ |
| H A D | minheap-internal.h | 41 struct event** p; 47 static inline void min_heap_elem_init_(struct event* e); 48 static inline int min_heap_elt_is_top_(const struct event *e); 51 static inline struct event* min_heap_top_(min_heap_t* s); 53 static inline int min_heap_push_(min_heap_t* s, struct event* e); 54 static inline struct event* min_heap_pop_(min_heap_t* s); 55 static inline int min_heap_adjust_(min_heap_t *s, struct event* e); 56 static inline int min_heap_erase_(min_heap_t* s, struct event* e); 57 static inline void min_heap_shift_up_(min_heap_t* s, unsigned hole_index, struct event* e); 58 …ne void min_heap_shift_up_unconditional_(min_heap_t* s, unsigned hole_index, struct event* e); [all …]
|
| /freebsd/contrib/libevent/ |
| H A D | minheap-internal.h | 41 struct event** p; 47 static inline void min_heap_elem_init_(struct event* e); 48 static inline int min_heap_elt_is_top_(const struct event *e); 51 static inline struct event* min_heap_top_(min_heap_t* s); 53 static inline int min_heap_push_(min_heap_t* s, struct event* e); 54 static inline struct event* min_heap_pop_(min_heap_t* s); 55 static inline int min_heap_adjust_(min_heap_t *s, struct event* e); 56 static inline int min_heap_erase_(min_heap_t* s, struct event* e); 57 static inline void min_heap_shift_up_(min_heap_t* s, unsigned hole_index, struct event* e); 58 …ne void min_heap_shift_up_unconditional_(min_heap_t* s, unsigned hole_index, struct event* e); [all …]
|
| /freebsd/contrib/ntp/sntp/libevent/include/event2/ |
| H A D | event.h | 276 struct event struct 334 void event_debug_unassign(struct event *); 787 int event_base_set(struct event_base *, struct event *); 1090 struct event *event_new(struct event_base *, evutil_socket_t, short, event_callback_fn, void *); 1132 int event_assign(struct event *, struct event_base *, evutil_socket_t, short, event_callback_fn, vo… 1141 void event_free(struct event *); 1146 typedef void (*event_finalize_callback_fn)(struct event *, void *); 1179 int event_finalize(unsigned, struct event *, event_finalize_callback_fn); 1181 int event_free_finalize(unsigned, struct event *, event_finalize_callback_fn); 1233 int event_add(struct event *ev, const struct timeval *timeout); [all …]
|
| /freebsd/contrib/libevent/include/event2/ |
| H A D | event.h | 276 struct event struct 334 void event_debug_unassign(struct event *); 787 int event_base_set(struct event_base *, struct event *); 1090 struct event *event_new(struct event_base *, evutil_socket_t, short, event_callback_fn, void *); 1132 int event_assign(struct event *, struct event_base *, evutil_socket_t, short, event_callback_fn, vo… 1141 void event_free(struct event *); 1146 typedef void (*event_finalize_callback_fn)(struct event *, void *); 1179 int event_finalize(unsigned, struct event *, event_finalize_callback_fn); 1181 int event_free_finalize(unsigned, struct event *, event_finalize_callback_fn); 1233 int event_add(struct event *ev, const struct timeval *timeout); [all …]
|
| /freebsd/lib/libdevdctl/ |
| H A D | consumer.cc | 153 EventList::iterator event(m_unconsumedEvents.begin()); in ReplayUnconsumedEvents() local 154 bool replayed_any = (event != m_unconsumedEvents.end()); in ReplayUnconsumedEvents() 159 while (event != m_unconsumedEvents.end()) { in ReplayUnconsumedEvents() 160 bool consumed((*event)->Process()); in ReplayUnconsumedEvents() 162 delete *event; in ReplayUnconsumedEvents() 163 event = m_unconsumedEvents.erase(event); in ReplayUnconsumedEvents() 165 event++; in ReplayUnconsumedEvents() 174 Consumer::SaveEvent(const Event &event) in SaveEvent() argument 178 m_unconsumedEvents.push_back(event.DeepCopy()); in SaveEvent() 188 Event *event(NULL); in NextEvent() local [all …]
|
| /freebsd/contrib/lyaml/lib/lyaml/ |
| H A D | init.lua | 86 emit = function(self, event) 87 return self.emitter.emit(event) 301 return tostring(self.event.type) 312 if self.event.anchor ~= nil then 313 self.anchors[self.event.anchor] = { 314 type = alias_type[self.event.type], 322 local ok, event = pcall(self.next) 325 self:error(gsub(event, ' at document: .*$', '')) 327 self.event = event 329 line = self.event.start_mark.line + 1, [all …]
|
| /freebsd/sys/dev/random/fenestrasX/ |
| H A D | fx_pool.c | 304 fxrng_event_processor(struct harvest_event *event) in fxrng_event_processor() argument 310 src = event->he_source; in fxrng_event_processor() 312 ASSERT_DEBUG(event->he_size <= sizeof(event->he_entropy), in fxrng_event_processor() 314 (unsigned)event->he_size, sizeof(event->he_entropy)); in fxrng_event_processor() 320 first_time = event->he_size > 0 && in fxrng_event_processor() 349 fxrng_brng_src_reseed(event); in fxrng_event_processor() 362 fxrng_hash_update(&fxent_pool[0], &event->he_somecounter, in fxrng_event_processor() 363 sizeof(event->he_somecounter)); in fxrng_event_processor() 364 fxrng_hash_update(&fxent_pool[0], event->he_entropy, in fxrng_event_processor() 365 event->he_size); in fxrng_event_processor() [all …]
|
| /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/ |
| H A D | fweh.c | 87 struct brcmf_fweh_queue_item *event) in brcmf_fweh_queue_event() argument 92 list_add_tail(&event->q, &fweh->event_q); in brcmf_fweh_queue_event() 240 struct brcmf_fweh_queue_item *event = NULL; in brcmf_fweh_dequeue_event() local 245 event = list_first_entry(&fweh->event_q, in brcmf_fweh_dequeue_event() 247 list_del(&event->q); in brcmf_fweh_dequeue_event() 251 return event; in brcmf_fweh_dequeue_event() 264 struct brcmf_fweh_queue_item *event; in brcmf_fweh_event_worker() local 272 while ((event = brcmf_fweh_dequeue_event(fweh))) { in brcmf_fweh_event_worker() 275 brcmf_fweh_map_fwevt_code(fweh, event->code, &code); in brcmf_fweh_event_worker() 277 brcmf_fweh_event_name(code), code, event->code, in brcmf_fweh_event_worker() [all …]
|
| /freebsd/sbin/devd/tests/ |
| H A D | client_test.c | 109 char event[1024]; in ATF_TC_BODY() local 112 len = recv(s, event, sizeof(event) - 1, MSG_WAITALL); in ATF_TC_BODY() 115 event[len] = '\0'; in ATF_TC_BODY() 116 printf("%s", event); in ATF_TC_BODY() 117 cmp = strncmp(event, create_pat, sizeof(create_pat) - 1); in ATF_TC_BODY() 121 cmp = strncmp(event, destroy_pat, sizeof(destroy_pat) - 1); in ATF_TC_BODY() 136 char *event; in ATF_TC_BODY() local 149 event = malloc(sz); in ATF_TC_BODY() 150 ATF_REQUIRE(event != NULL); in ATF_TC_BODY() 162 newlen = read(s, &event[len], sz - len - 1); in ATF_TC_BODY() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/ |
| H A D | events_common.kshlib | 38 event=$2 43 until grep -q "^ZEVENT_CLASS=$event" $ZED_DEBUG_LOG ; do 81 typeset event pool 125 for event in ${events[*]}; do 126 if [[ "$event" == \ 131 log_must file_wait_event $ZED_DEBUG_LOG "$event" 145 for event in ${events[*]}; do 148 log_must grep -q "$event" $TMP_EVENTS 151 log_mustnot awk -v event="$event" -v crit="pool = \"$pool\"" \ 156 if [ "$event" = "sysevent.fs.zfs.history_event" ]; then [all …]
|