/openbsd-src/sys/dev/pci/drm/i915/gt/ |
H A D | intel_engine_regs.h | 11 #define RING_EXCC(base) _MMIO((base) + 0x28) argument 12 #define RING_TAIL(base) _MMIO((base) + 0x30) argument 14 #define RING_HEAD(base) _MMIO((base) + 0x34) argument 18 #define RING_START(base) _MMIO((base) + 0x38) argument 19 #define RING_CTL(base) _MMIO((base) + 0x3c) argument 32 #define RING_SYNC_0(base) _MMIO((base) + 0x40) argument 33 #define RING_SYNC_1(base) _MMIO((base) + 0x44) argument 34 #define RING_SYNC_2(base) _MMIO((base) + 0x48) argument 47 #define RING_PSMI_CTL(base) _MMIO((base) + 0x50) argument 55 #define RING_MAX_IDLE(base) _MMIO((base) + 0x54) argument [all …]
|
/openbsd-src/usr.sbin/radiusd/ |
H A D | radiusd_module.c | 93 struct module_base *base; in module_create() local 95 if ((base = calloc(1, sizeof(struct module_base))) == NULL) in module_create() 98 if (imsgbuf_init(&base->ibuf, sock) == -1) { in module_create() 99 free(base); in module_create() 102 base->ctx = ctx; in module_create() 115 return (base); 119 module_start(struct module_base *base) in module_start() 124 if ((ival = fcntl(base->ibuf.fd, F_GETFL)) == -1) in module_start() 126 if (fcntl(base->ibuf.fd, F_SETFL, ival | O_NONBLOCK) == -1) in module_start() 128 event_set(&base in module_start() 116 module_start(struct module_base * base) module_start() argument 131 module_run(struct module_base * base) module_run() argument 143 module_destroy(struct module_base * base) module_destroy() argument 154 module_load(struct module_base * base) module_load() argument 179 module_drop_privilege(struct module_base * base,int nochroot) module_drop_privilege() argument 203 module_notify_secret(struct module_base * base,const char * secret) module_notify_secret() argument 215 module_send_message(struct module_base * base,uint32_t cmd,const char * fmt,...) module_send_message() argument 240 module_userpass_ok(struct module_base * base,u_int q_id,const char * msg) module_userpass_ok() argument 257 module_userpass_fail(struct module_base * base,u_int q_id,const char * msg) module_userpass_fail() argument 274 module_accsreq_answer(struct module_base * base,u_int q_id,const u_char * pkt,size_t pktlen) module_accsreq_answer() argument 282 module_accsreq_next(struct module_base * base,u_int q_id,const u_char * pkt,size_t pktlen) module_accsreq_next() argument 290 module_accsreq_aborted(struct module_base * base,u_int q_id) module_accsreq_aborted() argument 302 module_reqdeco_done(struct module_base * base,u_int q_id,const u_char * pkt,size_t pktlen) module_reqdeco_done() argument 310 module_resdeco_done(struct module_base * base,u_int q_id,const u_char * pkt,size_t pktlen) module_resdeco_done() argument 318 module_common_radpkt(struct module_base * base,uint32_t imsg_type,u_int q_id,const u_char * pkt,size_t pktlen) module_common_radpkt() argument 354 module_recv_imsg(struct module_base * base) module_recv_imsg() argument 382 module_imsg_handler(struct module_base * base,struct imsg * imsg) module_imsg_handler() argument 615 module_stop(struct module_base * base) module_stop() argument 630 struct module_base *base = ctx; module_on_event() local 659 module_reset_event(struct module_base * base) module_reset_event() argument 685 module_imsg_compose(struct module_base * base,uint32_t type,uint32_t id,pid_t pid,int fd,const void * data,size_t datalen) module_imsg_compose() argument 698 module_imsg_composev(struct module_base * base,uint32_t type,uint32_t id,pid_t pid,int fd,const struct iovec * iov,int iovcnt) module_imsg_composev() argument [all...] |
/openbsd-src/gnu/usr.bin/binutils-2.17/opcodes/ |
H A D | alpha-opc.c | 39 The information for the base instruction set was compiled from the 400 #define BASE AXP_OPCODE_BASE macro 472 { "halt", SPCD(0x00,0x0000), BASE, ARG_NONE }, 473 { "draina", SPCD(0x00,0x0002), BASE, ARG_NONE }, 474 { "bpt", SPCD(0x00,0x0080), BASE, ARG_NONE }, 475 { "bugchk", SPCD(0x00,0x0081), BASE, ARG_NONE }, 476 { "callsys", SPCD(0x00,0x0083), BASE, ARG_NONE }, 477 { "chmk", SPCD(0x00,0x0083), BASE, ARG_NONE }, 478 { "imb", SPCD(0x00,0x0086), BASE, ARG_NONE }, 479 { "rduniq", SPCD(0x00,0x009e), BASE, ARG_NONE }, [all …]
|
/openbsd-src/lib/libevent/ |
H A D | event.c | 81 gettime(struct event_base *base, struct timeval *tp) in gettime() argument 85 if (base->tv_cache.tv_sec) { in gettime() 86 *tp = base->tv_cache; in gettime() 99 struct event_base *base = event_base_new(); in event_init() local 101 if (base != NULL) in event_init() 102 current_base = base; in event_init() 104 return (base); in event_init() 111 struct event_base *base; in event_base_new() local 113 if ((base = calloc(1, sizeof(struct event_base))) == NULL) in event_base_new() 119 gettime(base, &base->event_tv); in event_base_new() [all …]
|
/openbsd-src/gnu/usr.bin/binutils/opcodes/ |
H A D | alpha-opc.c | 38 The information for the base instruction set was compiled from the 453 #define BASE AXP_OPCODE_BASE macro 525 { "halt", SPCD(0x00,0x0000), BASE, ARG_NONE }, 526 { "draina", SPCD(0x00,0x0002), BASE, ARG_NONE }, 527 { "bpt", SPCD(0x00,0x0080), BASE, ARG_NONE }, 528 { "bugchk", SPCD(0x00,0x0081), BASE, ARG_NONE }, 529 { "callsys", SPCD(0x00,0x0083), BASE, ARG_NONE }, 530 { "chmk", SPCD(0x00,0x0083), BASE, ARG_NONE }, 531 { "imb", SPCD(0x00,0x0086), BASE, ARG_NONE }, 532 { "rduniq", SPCD(0x00,0x009e), BASE, ARG_NONE }, [all …]
|
/openbsd-src/gnu/llvm/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_ilist.h | 27 template <typename Base, INode Base::*Node, typename Elem> 41 template <typename Base, INode Base::*Node, typename Elem = Base> 76 template <typename Base, INode Base::*Node, typename Elem> 77 IList<Base, Node, Elem>::IList() { in IList() 81 template <typename Base, INode Base::*Node, typename Elem> 82 void IList<Base, Node, Elem>::PushFront(Elem* e) { in PushFront() 86 template <typename Base, INode Base::*Node, typename Elem> 87 void IList<Base, Node, Elem>::PushBack(Elem* e) { in PushBack() 91 template <typename Base, INode Base::*Node, typename Elem> 92 void IList<Base, Node, Elem>::Push(Elem* e, INode* after) { in Push() [all …]
|
/openbsd-src/gnu/usr.bin/perl/dist/ExtUtils-CBuilder/t/ |
H A D | 04-base.t | 9 use ExtUtils::CBuilder::Base; 12 ## in the base class. Specifically, don't do anything that will send 19 my ( $base, $phony, $cwd ); 22 $base = ExtUtils::CBuilder::Base->new(); 23 ok( $base, "ExtUtils::CBuilder::Base->new() returned true value" ); 24 isa_ok( $base, 'ExtUtils::CBuilder::Base' ); 28 $base = ExtUtils::CBuilder::Base->new( 31 ok( $base, "ExtUtils::CBuilder::Base->new() returned true value" ); 32 isa_ok( $base, 'ExtUtils::CBuilder::Base' ); 33 is( $base->{config}->{cc}, $phony, [all …]
|
/openbsd-src/usr.sbin/nsd/ |
H A D | mini_event.c | 85 settime(struct event_base* base) in settime() argument 87 if(gettimeofday(base->time_tv, NULL) < 0) { in settime() 91 *base->time_secs = (time_t)base->time_tv->tv_sec; in settime() 96 /** create event base */ 100 struct event_base* base = (struct event_base*)malloc( in event_init() local 102 if(!base) in event_init() 104 memset(base, 0, sizeof(*base)); in event_init() 105 base->region = region_create(xalloc, free); in event_init() 106 if(!base->region) { in event_init() 107 free(base); in event_init() [all …]
|
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dce80/ |
H A D | dce80_resource.c | 513 return &tg110->base; in dce80_timing_generator_create() 528 return &opp->base; in dce80_opp_create() 548 return &aux_engine->base; in dce80_aux_engine_create() 611 return &enc110->base; in dce80_stream_encoder_create() 687 return &dce_mi->base; in dce80_mem_input_create() 709 return &transform->base; in dce80_transform_create() 739 return &enc110->base; in dce80_link_encoder_create() 756 return &panel_cntl->base; in dce80_panel_cntl_create() 774 clk_src->base.dp_clk_src = dp_clk_src; in dce80_clock_source_create() 775 return &clk_src->base; in dce80_clock_source_create() [all …]
|
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dce60/ |
H A D | dce60_resource.c | 506 return &tg110->base; in dce60_timing_generator_create() 521 return &opp->base; in dce60_opp_create() 541 return &aux_engine->base; in dce60_aux_engine_create() 604 return &enc110->base; in dce60_stream_encoder_create() 680 return &dce_mi->base; in dce60_mem_input_create() 702 return &transform->base; in dce60_transform_create() 732 return &enc110->base; in dce60_link_encoder_create() 749 return &panel_cntl->base; in dce60_panel_cntl_create() 767 clk_src->base.dp_clk_src = dp_clk_src; in dce60_clock_source_create() 768 return &clk_src->base; in dce60_clock_source_create() [all …]
|
/openbsd-src/usr.sbin/unbound/util/ |
H A D | mini_event.c | 76 settime(struct event_base* base) in settime() argument 78 if(gettimeofday(base->time_tv, NULL) < 0) { in settime() 82 *base->time_secs = (time_t)base->time_tv->tv_sec; in settime() 87 /** create event base */ 90 struct event_base* base = (struct event_base*)malloc( in event_init() local 92 if(!base) in event_init() 94 memset(base, 0, sizeof(*base)); in event_init() 95 base->time_secs = time_secs; in event_init() 96 base->time_tv = time_tv; in event_init() 97 if(settime(base) < 0) { in event_init() [all …]
|
H A D | ub_event_pluggable.c | 139 struct event_base* base; member 192 my_timer_add(struct ub_event* ev, struct ub_event_base* base, in my_timer_add() argument 196 if (event_base_set(AS_MY_EVENT_BASE(base)->base, &AS_MY_EVENT(ev)->ev) in my_timer_add() 250 my_event_base_free(struct ub_event_base* base) in my_event_base_free() argument 253 event_base_free(AS_MY_EVENT_BASE(base)->base); in my_event_base_free() 258 event_base_free(AS_MY_EVENT_BASE(base)->base); in my_event_base_free() 260 free(AS_MY_EVENT_BASE(base)); in my_event_base_free() 264 my_event_base_dispatch(struct ub_event_base* base) in my_event_base_dispatch() argument 266 return event_base_dispatch(AS_MY_EVENT_BASE(base)->base); in my_event_base_dispatch() 270 my_event_base_loopexit(struct ub_event_base* base, struct timeval* tv) in my_event_base_loopexit() argument [all …]
|
/openbsd-src/sbin/unwind/libunbound/util/ |
H A D | mini_event.c | 76 settime(struct event_base* base) in settime() argument 78 if(gettimeofday(base->time_tv, NULL) < 0) { in settime() 82 *base->time_secs = (time_t)base->time_tv->tv_sec; in settime() 87 /** create event base */ 90 struct event_base* base = (struct event_base*)malloc( in event_init() local 92 if(!base) in event_init() 94 memset(base, 0, sizeof(*base)); in event_init() 95 base->time_secs = time_secs; in event_init() 96 base->time_tv = time_tv; in event_init() 97 if(settime(base) < 0) { in event_init() [all …]
|
H A D | ub_event_pluggable.c | 139 struct event_base* base; member 192 my_timer_add(struct ub_event* ev, struct ub_event_base* base, in my_timer_add() argument 196 if (event_base_set(AS_MY_EVENT_BASE(base)->base, &AS_MY_EVENT(ev)->ev) in my_timer_add() 250 my_event_base_free(struct ub_event_base* base) in my_event_base_free() argument 253 event_base_free(AS_MY_EVENT_BASE(base)->base); in my_event_base_free() 258 event_base_free(AS_MY_EVENT_BASE(base)->base); in my_event_base_free() 260 free(AS_MY_EVENT_BASE(base)); in my_event_base_free() 264 my_event_base_dispatch(struct ub_event_base* base) in my_event_base_dispatch() argument 266 return event_base_dispatch(AS_MY_EVENT_BASE(base)->base); in my_event_base_dispatch() 270 my_event_base_loopexit(struct ub_event_base* base, struct timeval* tv) in my_event_base_loopexit() argument [all …]
|
/openbsd-src/usr.sbin/npppd/npppd/ |
H A D | npppd_auth.c | 70 npppd_auth_base *base; in npppd_auth_create() local 76 if ((base = calloc(1, sizeof(npppd_auth_local))) != NULL) { in npppd_auth_create() 77 base->type = NPPPD_AUTH_TYPE_LOCAL; in npppd_auth_create() 78 strlcpy(base->name, name, sizeof(base->name)); in npppd_auth_create() 79 base->npppd = _npppd; in npppd_auth_create() 81 return base; in npppd_auth_create() 87 if ((base = calloc(1, sizeof(npppd_auth_radius))) != NULL) { in npppd_auth_create() 88 npppd_auth_radius *_this = (npppd_auth_radius *)base; in npppd_auth_create() 89 base->type = NPPPD_AUTH_TYPE_RADIUS; in npppd_auth_create() 90 strlcpy(base->name, name, sizeof(base->name)); in npppd_auth_create() [all …]
|
/openbsd-src/gnu/usr.bin/perl/dist/base/t/ |
H A D | base.t | 6 use_ok('base'); 16 use base qw(No::Version); 19 # Test Inverse of $VERSION bug base.pm should not clobber existing $VERSION 26 use base qw(Has::Version); 36 use base 'Eval1'; 51 eval q{use base 'reallyReAlLyNotexists'}; 52 like( $@, qr/^Base class package "reallyReAlLyNotexists" is empty\./, 53 'base with empty package'); 55 eval q{use base 'reallyReAlLyNotexists'}; 56 like( $@, qr/^Base class package "reallyReAlLyNotexists" is empty\./, [all …]
|
/openbsd-src/sys/dev/pci/drm/i915/display/ |
H A D | intel_modeset_setup.c | 39 struct drm_i915_private *i915 = to_i915(crtc->base.dev); in intel_crtc_disable_noatomic_begin() 41 to_intel_crtc_state(crtc->base.state); in intel_crtc_disable_noatomic_begin() 52 to_intel_plane_state(plane->base.state); in intel_crtc_disable_noatomic_begin() 62 crtc->base.base.id, crtc->base.name); in intel_crtc_disable_noatomic_begin() 77 ret = drm_atomic_add_affected_connectors(state, &temp_crtc->base); in intel_crtc_disable_noatomic_begin() 88 crtc->base.base.id, crtc->base.name); in intel_crtc_disable_noatomic_begin() 91 crtc->base.enabled = false; in intel_crtc_disable_noatomic_begin() 102 struct drm_connector_state *conn_state = connector->base.state; in set_encoder_for_connector() 105 drm_connector_put(&connector->base); in set_encoder_for_connector() 108 conn_state->best_encoder = &encoder->base; in set_encoder_for_connector() [all …]
|
/openbsd-src/gnu/usr.bin/gcc/gcc/fixinc/ |
H A D | fixinc.svr4 | 270 base=`basename $file`.$$ 282 sed -e 's/getcwd(char \*, int)/getcwd(char *, size_t)/' $file_to_fix > /tmp/$base 283 if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \ 288 cp /tmp/$base ${LIB}/$file 291 rm -f /tmp/$base 298 base=`basename $file`.$$ 311 …ned int, unsigned int, unsigned int)/profil(unsigned short *, size_t, int, unsigned)/' > /tmp/$base 312 if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \ 317 cp /tmp/$base ${LIB}/$file 320 rm -f /tmp/$base [all …]
|
/openbsd-src/gnu/usr.bin/perl/cpan/Test-Harness/t/ |
H A D | base.t | 9 use TAP::Base; 14 can_ok 'TAP::Base', 'new'; 15 my $base = TAP::Base->new(); 16 isa_ok $base, 'TAP::Base', 'object of correct type'; 18 can_ok $base, $method; 22 $base->callback( 30 my $cb = $base->_callback_for('some_event'); 38 my $base = TAP::Base->new( 56 use TAP::Base; 57 use base 'TAP::Base'; [all …]
|
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn301/ |
H A D | dcn301_resource.c | 93 container_of(pool, struct dcn301_resource_pool, base) 112 #define BASE(seg) BASE_INNER(seg) macro 115 .reg_name = BASE(mm ## reg_name ## _BASE_IDX) + \ 119 .reg_name = BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 123 .reg_name = BASE(mm ## reg_name ## _BASE_IDX) + \ 127 .var_name = BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 131 .reg_name[id] = BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 135 .reg_name_pre ## _ ## reg_name_post[id] = BASE(mm ## reg_name_pre \ 140 .RMU##_##reg_name[id] = BASE(mm ## block ## id ## _ ## reg_name ## _BASE_IDX) + \ 144 .reg_name[id] = BASE(mm ## block ## id ## _ ## temp_name ## _BASE_IDX) + \ [all …]
|
/openbsd-src/gnu/usr.bin/perl/dist/base/lib/ |
H A D | base.pm | 2 package base; package 9 sub base::__inc::unhook { @INC = grep !(ref eq 'CODE' && $_ == $_[0]), @INC } subroutine 11 sub base::__inc::scope_guard::DESTROY { base::__inc::unhook $_ for @{$_[0]} } subroutine 25 my($base) = shift; 26 my $fglob = ${"$base\::"}{FIELDS}; 85 # List of base classes from which we will inherit %FIELDS. 91 foreach my $base (@_) { 92 if ( $inheritor eq $base ) { 96 next if grep $_->isa($base), ($inheritor, @bases); 103 my $fn = _module_to_filename($base); [all …]
|
/openbsd-src/lib/libssl/ |
H A D | bs_cbb.c | 29 struct cbb_buffer_st *base; in cbb_init() local 31 if ((base = calloc(1, sizeof(struct cbb_buffer_st))) == NULL) in cbb_init() 34 base->buf = buf; in cbb_init() 35 base->len = 0; in cbb_init() 36 base->cap = cap; in cbb_init() 37 base->can_resize = 1; in cbb_init() 39 cbb->base = base; in cbb_init() 74 cbb->base->can_resize = 0; in CBB_init_fixed() 82 if (cbb->base) { in CBB_cleanup() 83 if (cbb->base->can_resize) in CBB_cleanup() [all …]
|
/openbsd-src/lib/libcrypto/bytestring/ |
H A D | bs_cbb.c | 29 struct cbb_buffer_st *base; in cbb_init() local 31 if ((base = calloc(1, sizeof(struct cbb_buffer_st))) == NULL) in cbb_init() 34 base->buf = buf; in cbb_init() 35 base->len = 0; in cbb_init() 36 base->cap = cap; in cbb_init() 37 base->can_resize = 1; in cbb_init() 39 cbb->base = base; in cbb_init() 74 cbb->base->can_resize = 0; in CBB_init_fixed() 82 if (cbb->base) { in CBB_cleanup() 83 if (cbb->base->can_resize) in CBB_cleanup() [all …]
|
/openbsd-src/sys/dev/ic/ |
H A D | i82596reg.h | 93 #define IE_SCP_BUS_USE(base) ((base) + 2) argument 94 #define IE_SCP_TEST(base) ((base) + 4) argument 95 #define IE_SCP_ISCP(base) ((base) + 8) argument 116 #define IE_ISCP_BUSY(base) ((base) + 0) argument 117 #define IE_ISCP_SCB(base) ((base) + 2) argument 118 #define IE_ISCP_BASE(base) ((base) + 4) argument 148 #define IE_SCB_STATUS(base) ((base) + 0) argument 149 #define IE_SCB_CMD(base) ((base) + 2) argument 150 #define IE_SCB_CMDLST(base) ((base) + 4) argument 151 #define IE_SCB_RCVLST(base) ((base) + 6) argument [all …]
|
/openbsd-src/sys/dev/pci/drm/ |
H A D | drm_displayid.c | 13 const struct displayid_header *base; in displayid_get_header() local 15 if (sizeof(*base) > length - index) in displayid_get_header() 18 base = (const struct displayid_header *)&displayid[index]; in displayid_get_header() 20 return base; in displayid_get_header() 28 const struct displayid_header *base; in validate_displayid() local 30 base = displayid_get_header(displayid, length, idx); in validate_displayid() 31 if (IS_ERR(base)) in validate_displayid() 32 return base; in validate_displayid() 34 DRM_DEBUG_KMS("base revision 0x%x, length %d, %d %d\n", in validate_displayid() 35 base->rev, base->bytes, base->prod_id, base->ext_count); in validate_displayid() [all …]
|