Home
last modified time | relevance | path

Searched refs:cstate (Results 1 – 22 of 22) sorted by relevance

/src/contrib/libpcap/
H A Dgencode.c439 bpf_set_error(compiler_state_t *cstate, const char *fmt, ...) in bpf_set_error() argument
452 if (!cstate->error_set) { in bpf_set_error()
454 (void)vsnprintf(cstate->bpf_pcap->errbuf, PCAP_ERRBUF_SIZE, in bpf_set_error()
457 cstate->error_set = 1; in bpf_set_error()
469 bpf_error(compiler_state_t *cstate, const char *fmt, ...) in bpf_error() argument
474 (void)vsnprintf(cstate->bpf_pcap->errbuf, PCAP_ERRBUF_SIZE, in bpf_error()
477 longjmp(cstate->top_ctx, 1); in bpf_error()
490 static void initchunks(compiler_state_t *cstate);
491 static void *newchunk_nolongjmp(compiler_state_t *cstate, size_t);
492 static void *newchunk(compiler_state_t *cstate, size_t);
[all …]
H A Dgrammar.y.in45 %parse-param { compiler_state_t *cstate }
248 yyerror(void *yyscanner _U_, compiler_state_t *cstate, const char *msg) argument
250 bpf_set_error(cstate, "can't parse filter expression: %s", msg);
283 pfreason_to_num(compiler_state_t *cstate, const char *reason) argument
289 bpf_set_error(cstate, "unknown PF reason \"%s\"", reason);
325 pfaction_to_num(compiler_state_t *cstate, const char *action) argument
331 bpf_set_error(cstate, "unknown PF action \"%s\"", action);
428 CHECK_INT_VAL(finish_parse(cstate, $2.b));
445 | pnum { CHECK_PTR_VAL(($$.b = gen_ncode(cstate, NULL, $1,
449 nid: ID { CHECK_PTR_VAL($1); CHECK_PTR_VAL(($$.b = gen_scode(cstate, $1, $$.q = $<blk>0.q))); }
[all …]
H A Dscanner.l52 compiler_state_t *cstate);
491 compiler_state_t *cstate)
540 bpf_set_error(cstate,
577 bpf_set_error(cstate,
611 bpf_set_error(cstate,
/src/contrib/libarchive/libarchive/
H A Darchive_read_support_format_rar5.c354 struct comp_state cstate; member
538 circular_memcpy(linear_buf, rar->cstate.window_buf, in read_filter_data()
539 rar->cstate.window_mask, offset, offset + 4); in read_filter_data()
546 archive_le32enc(&rar->cstate.filtered_buf[offset], value); in write_filter_data()
557 cdeque_push_back(&rar->cstate.filters, cdeque_filter(f)); in add_new_filter()
573 byte = rar->cstate.window_buf[ in run_delta_filter()
574 (rar->cstate.solid_offset + flt->block_start + in run_delta_filter()
575 src_pos) & rar->cstate.window_mask]; in run_delta_filter()
578 rar->cstate.filtered_buf[dest_pos] = prev_byte; in run_delta_filter()
592 circular_memcpy(rar->cstate.filtered_buf, in run_e8e9_filter()
[all …]
/src/sys/dev/drm2/ttm/
H A Dttm_page_alloc.c143 ttm_caching_state_to_vm(enum ttm_caching_state cstate) in ttm_caching_state_to_vm() argument
146 switch (cstate) { in ttm_caching_state_to_vm()
154 panic("caching state %d\n", cstate); in ttm_caching_state_to_vm()
188 ttm_vm_page_alloc(int flags, enum ttm_caching_state cstate) in ttm_vm_page_alloc() argument
194 memattr = ttm_caching_state_to_vm(cstate); in ttm_vm_page_alloc()
307 enum ttm_caching_state cstate) in ttm_get_pool() argument
311 if (cstate == tt_cached) in ttm_get_pool()
314 if (cstate == tt_wc) in ttm_get_pool()
479 enum ttm_caching_state cstate, unsigned cpages) in ttm_set_pages_caching() argument
483 switch (cstate) { in ttm_set_pages_caching()
[all …]
H A Dttm_page_alloc_dma.c353 static enum pool_type ttm_to_type(int flags, enum ttm_caching_state cstate) in ttm_to_type() argument
359 if (cstate == tt_cached) in ttm_to_type()
361 else if (cstate == tt_uncached) in ttm_to_type()
/src/sys/net/
H A Dslcompress.h114 struct cstate { struct
115 struct cstate *cs_next; /* next most recently used cstate (xmit only) */ argument
132 struct cstate *last_cs; /* most recently used tstate */ argument
146 struct cstate tstate[MAX_STATES]; /* xmit connection states */
147 struct cstate rstate[MAX_STATES]; /* receive connection states */
H A Dslcompress.c65 struct cstate *tstate = comp->tstate; in sl_compress_init()
154 struct cstate *cs = comp->last_cs->cs_next; in sl_compress_tcp()
198 struct cstate *lcs; in sl_compress_tcp()
199 struct cstate *lastcs = comp->last_cs; in sl_compress_tcp()
456 struct cstate *cs; in sl_uncompress_tcp_core()
/src/usr.sbin/ppp/
H A Dslcompress.h112 struct cstate { struct
113 struct cstate *cs_next; /* next most recently used cstate (xmit only) */ argument
131 struct cstate *last_cs; /* most recently used tstate */ argument
135 struct cstate tstate[MAX_VJ_STATES]; /* xmit connection states */
136 struct cstate rstate[MAX_VJ_STATES]; /* receive connection states */
H A Dslcompress.c85 register struct cstate *tstate = comp->tstate; in sl_compress_init()
161 register struct cstate *cs = comp->last_cs->cs_next; in sl_compress_tcp()
210 register struct cstate *lcs; in sl_compress_tcp()
211 register struct cstate *lastcs = comp->last_cs; in sl_compress_tcp()
434 register struct cstate *cs; in sl_uncompress_tcp()
/src/crypto/heimdal/lib/gssapi/krb5/
H A Dunwrap.c61 int cstate; in unwrap_des() local
90 cstate = 1; in unwrap_des()
92 cstate = 0; in unwrap_des()
97 *conf_state = cstate; in unwrap_des()
105 if(cstate) { in unwrap_des()
233 int cstate; in unwrap_des3() local
264 cstate = 1; in unwrap_des3()
266 cstate = 0; in unwrap_des3()
271 *conf_state = cstate; in unwrap_des3()
279 if(cstate) { in unwrap_des3()
/src/crypto/krb5/src/lib/krb5/krb/
H A Drd_priv.c53 krb5_data *cstate; in read_krbpriv() local
67 cstate = (authcon->cstate.length > 0) ? &authcon->cstate : NULL; in read_krbpriv()
68 ret = krb5_k_decrypt(context, key, KRB5_KEYUSAGE_KRB_PRIV_ENCPART, cstate, in read_krbpriv()
H A Dmk_priv.c47 krb5_data *cstate, krb5_data *der_out, krb5_enc_data *enc_out) in create_krbpriv() argument
82 (cstate->length > 0) ? cstate : NULL, der_encpart, in create_krbpriv()
135 remote_addr, &authcon->cstate, &der_krbpriv, &enc); in krb5_mk_priv()
H A Dser_actx.c60 required = auth_context->cstate.length; in k5_size_auth_context()
156 (void) krb5_ser_pack_int32(auth_context->cstate.length, &bp, in k5_externalize_auth_context()
158 (void) krb5_ser_pack_bytes((krb5_octet *)auth_context->cstate.data, in k5_externalize_auth_context()
159 auth_context->cstate.length, in k5_externalize_auth_context()
300 kret = alloc_data(&auth_context->cstate, cstate_len); in k5_internalize_auth_context()
303 auth_context->cstate.data, in k5_internalize_auth_context()
H A Dauth_con.c71 zapfree(auth_context->cstate.data, auth_context->cstate.length); in krb5_auth_con_free()
321 &auth_context->cstate); in krb5_auth_con_initivector()
338 *ivector = auth_context->cstate.data; in krb5_auth_con_getivector()
H A Dauth_con.h24 krb5_data cstate; /* mk_priv, rd_priv only */ member
/src/sbin/geom/core/
H A Dgeom.c1183 const char *name, *status, *cstate, *csyncr; in status_one_geom() local
1200 cstate = status_one_consumer(cp, "state"); in status_one_geom()
1222 if (cstate != NULL && csyncr != NULL) { in status_one_geom()
1224 len, "", cp->lg_provider->lg_name, cstate, csyncr); in status_one_geom()
1225 } else if (cstate != NULL) { in status_one_geom()
1227 len, "", cp->lg_provider->lg_name, cstate); in status_one_geom()
1255 const char *name, *status, *cstate, *csyncr; in status_one_geom_prs() local
1280 cstate = status_one_consumer(cp, "state"); in status_one_geom_prs()
1303 if (cstate != NULL && csyncr != NULL) { in status_one_geom_prs()
1305 len, "", cp->lg_provider->lg_name, cstate, csyncr); in status_one_geom_prs()
[all …]
/src/sys/contrib/zstd/lib/compress/
H A Dzstd_compress_sequences.c112 FSE_CState_t cstate; in ZSTD_fseBitCost() local
113 FSE_initCState(&cstate, ctable); in ZSTD_fseBitCost()
120 unsigned const tableLog = cstate.stateLog; in ZSTD_fseBitCost()
122 unsigned const bitCost = FSE_bitCost(cstate.symbolTT, tableLog, s, kAccuracyLog); in ZSTD_fseBitCost()
/src/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress_sequences.c113 FSE_CState_t cstate; in ZSTD_fseBitCost() local
114 FSE_initCState(&cstate, ctable); in ZSTD_fseBitCost()
121 unsigned const tableLog = cstate.stateLog; in ZSTD_fseBitCost()
123 unsigned const bitCost = FSE_bitCost(cstate.symbolTT, tableLog, s, kAccuracyLog); in ZSTD_fseBitCost()
/src/usr.sbin/bsnmpd/modules/snmp_wlan/
H A Dwlan_snmp.h225 uint8_t wlan_channel_state_to_snmp(uint8_t cstate);
H A Dwlan_sys.c517 wlan_channel_state_to_snmp(uint8_t cstate) in wlan_channel_state_to_snmp() argument
521 if ((cstate & IEEE80211_CHANSTATE_RADAR) != 0) in wlan_channel_state_to_snmp()
523 if ((cstate & IEEE80211_CHANSTATE_CACDONE) != 0) in wlan_channel_state_to_snmp()
525 if ((cstate & IEEE80211_CHANSTATE_CWINT) != 0) in wlan_channel_state_to_snmp()
527 if ((cstate & IEEE80211_CHANSTATE_NORADAR) != 0) in wlan_channel_state_to_snmp()
/src/sys/netgraph/
H A Dng_vjc.c356 struct cstate *const cs = &sl->tstate[i]; in ng_vjc_rcvmsg()