Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 2920) sorted by relevance

12345678910>>...117

/openbsd-src/sys/dev/pci/drm/i915/gt/
H A Dintel_engine_regs.h11 #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/sys/dev/ic/
H A Di82596reg.h93 #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/usr.sbin/radiusd/
H A Dradiusd_module.c93 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/lib/libevent/
H A Devent.c81 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 …]
H A Dsignal.c68 evsignal_init(struct event_base *base) in evsignal_init() argument
78 0, base->sig.ev_signal_pair) == -1) { in evsignal_init()
83 base->sig.sh_old = NULL; in evsignal_init()
84 base->sig.sh_old_max = 0; in evsignal_init()
85 base->sig.evsignal_caught = 0; in evsignal_init()
86 memset(&base->sig.evsigcaught, 0, sizeof(sig_atomic_t)*NSIG); in evsignal_init()
89 TAILQ_INIT(&base->sig.evsigevents[i]); in evsignal_init()
91 event_set(&base->sig.ev_signal, base->sig.ev_signal_pair[1], in evsignal_init()
92 EV_READ | EV_PERSIST, evsignal_cb, &base->sig.ev_signal); in evsignal_init()
93 base->sig.ev_signal.ev_base = base; in evsignal_init()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/fixinc/
H A Dfixinc.svr4270 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/usr.sbin/npppd/npppd/
H A Dnpppd_auth.c70 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/usr.sbin/nsd/
H A Dmini_event.c85 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()
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()
110 base->time_secs = time_secs; in event_init()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dce80/
H A Ddce80_resource.c513 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 Ddce60_resource.c506 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/gnu/usr.bin/perl/dist/ExtUtils-CBuilder/t/
H A D04-base.t19 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,
40 $base = ExtUtils::CBuilder::Base->new();
41 ok( $base, "ExtUtils::CBuilder::Base->new() returned true value" );
[all …]
/openbsd-src/usr.sbin/unbound/util/
H A Dmini_event.c76 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()
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()
98 event_base_free(base); in event_init()
[all …]
H A Dub_event_pluggable.c139 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 Dmini_event.c76 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()
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()
98 event_base_free(base); in event_init()
[all …]
H A Dub_event_pluggable.c139 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/gnu/lib/libiberty/src/
H A Dmake-temp-file.c67 try_dir (const char *dir, const char *base) in try_dir() argument
69 if (base != 0) in try_dir()
70 return base; in try_dir()
99 const char *base = 0; in choose_tmpdir() local
106 base = try_dir (getenv ("TMPDIR"), base); in choose_tmpdir()
107 base = try_dir (getenv ("TMP"), base); in choose_tmpdir()
108 base = try_dir (getenv ("TEMP"), base); in choose_tmpdir()
111 base = try_dir (P_tmpdir, base); in choose_tmpdir()
115 base = try_dir (vartmp, base); in choose_tmpdir()
116 base = try_dir (usrtmp, base); in choose_tmpdir()
[all …]
/openbsd-src/gnu/gcc/gcc/
H A Dvec.h148 #define VEC_length(T,V) (VEC_OP(T,base,length)(VEC_BASE(V)))
166 #define VEC_last(T,V) (VEC_OP(T,base,last)(VEC_BASE(V) VEC_CHECK_INFO))
175 #define VEC_index(T,V,I) (VEC_OP(T,base,index)(VEC_BASE(V),I VEC_CHECK_INFO))
189 #define VEC_iterate(T,V,I,P) (VEC_OP(T,base,iterate)(VEC_BASE(V),I,&(P)))
214 #define VEC_embedded_size(T,N) (VEC_OP(T,base,embedded_size)(N))
215 #define VEC_embedded_init(T,O,N) (VEC_OP(T,base,embedded_init)(VEC_BASE(O),N))
236 (VEC_OP(T,base,space)(VEC_BASE(V),R VEC_CHECK_INFO))
271 (VEC_OP(T,base,quick_push)(VEC_BASE(V),O VEC_CHECK_INFO))
293 #define VEC_pop(T,V) (VEC_OP(T,base,pop)(VEC_BASE(V) VEC_CHECK_INFO))
302 (VEC_OP(T,base,truncate)(VEC_BASE(V),I VEC_CHECK_INFO))
[all …]
/openbsd-src/sys/dev/pci/drm/i915/
H A Di915_perf_oa_regs.h100 #define GEN12_OACTXCONTROL(base) _MMIO((base) + 0x360) argument
172 #define GEN12_OAM_MMIO_TRG(base) \ argument
173 _MMIO((base) + GEN12_OAM_MMIO_TRG_OFFSET)
175 #define GEN12_OAM_HEAD_POINTER(base) \ argument
176 _MMIO((base) + GEN12_OAM_HEAD_POINTER_OFFSET)
177 #define GEN12_OAM_TAIL_POINTER(base) \ argument
178 _MMIO((base) + GEN12_OAM_TAIL_POINTER_OFFSET)
179 #define GEN12_OAM_BUFFER(base) \ argument
180 _MMIO((base) + GEN12_OAM_BUFFER_OFFSET)
181 #define GEN12_OAM_CONTEXT_CONTROL(base) \ argument
[all …]
/openbsd-src/lib/libssl/
H A Dbs_cbb.c29 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 Dbs_cbb.c29 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/pci/drm/i915/display/
H A Dintel_modeset_setup.c39 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/usr.bin/dig/lib/isc/
H A Dbase32.c40 isc_buffer_t *target, const char base[], char pad) in base32_totext() argument
50 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */ in base32_totext()
52 buf[1] = base[(source->base[0]<<2)&0x1c]; in base32_totext()
58 buf[1] = base[((source->base[0]<<2)&0x1c)| /* 3 = 8 */ in base32_totext()
59 ((source->base[1]>>6)&0x03)]; /* 2 + */ in base32_totext()
60 buf[2] = base[((source->base[1]>>1)&0x1f)]; /* 5 + */ in base32_totext()
62 buf[3] = base[(source->base[1]<<4)&0x10]; in base32_totext()
67 buf[3] = base[((source->base[1]<<4)&0x10)| /* 1 = 8 */ in base32_totext()
68 ((source->base[2]>>4)&0x0f)]; /* 4 + */ in base32_totext()
70 buf[4] = base[(source->base[2]<<1)&0x1e]; in base32_totext()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn321/
H A Ddcn321_dio_link_encoder.c43 enc10->base.ctx
45 enc10->base.ctx->logger
110 enc10->base.funcs = &dcn321_link_enc_funcs; in dcn321_link_encoder_construct()
111 enc10->base.ctx = init_data->ctx; in dcn321_link_encoder_construct()
112 enc10->base.id = init_data->encoder; in dcn321_link_encoder_construct()
114 enc10->base.hpd_source = init_data->hpd_source; in dcn321_link_encoder_construct()
115 enc10->base.connector = init_data->connector; in dcn321_link_encoder_construct()
117 if (enc10->base.connector.id == CONNECTOR_ID_USBC) in dcn321_link_encoder_construct()
118 enc10->base.features.flags.bits.DP_IS_USB_C = 1; in dcn321_link_encoder_construct()
120 enc10->base.preferred_engine = ENGINE_ID_UNKNOWN; in dcn321_link_encoder_construct()
[all …]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn30/
H A Ddcn30_dio_link_encoder.c38 enc10->base.ctx
40 enc10->base.ctx->logger
106 enc10->base.funcs = &dcn30_link_enc_funcs; in dcn30_link_encoder_construct()
107 enc10->base.ctx = init_data->ctx; in dcn30_link_encoder_construct()
108 enc10->base.id = init_data->encoder; in dcn30_link_encoder_construct()
110 enc10->base.hpd_source = init_data->hpd_source; in dcn30_link_encoder_construct()
111 enc10->base.connector = init_data->connector; in dcn30_link_encoder_construct()
113 enc10->base.preferred_engine = ENGINE_ID_UNKNOWN; in dcn30_link_encoder_construct()
115 enc10->base.features = *enc_features; in dcn30_link_encoder_construct()
117 enc10->base.transmitter = init_data->transmitter; in dcn30_link_encoder_construct()
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/Test-Harness/t/
H A Dbase.t15 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(
68 my $base = CallbackOK->new();
69 isa_ok $base, 'TAP::Base';
72 $base->callback(
84 $base->callback( other_event => sub { $other-- } );
[all …]

12345678910>>...117