/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | re_comp.c | 39 } state; variable 48 if (state.valid) in re_comp() 54 if (state.valid) in re_comp() 56 state.valid = 0; in re_comp() 57 regfree(&state.re); in re_comp() 59 if (!(r = regcomp(&state.re, pattern, REG_LENIENT|REG_NOSUB|REG_NULL))) in re_comp() 61 state.valid = 1; in re_comp() 65 regerror(r, &state.re, state.error, sizeof(state.error)); in re_comp() 66 return state.error; in re_comp() 72 if (state.valid && subject) in re_exec() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/adapters/tavor/ |
H A D | tavor_cmd.h | 83 #define TAVOR_MBOX_IS_SYNC_REQ(state, type) \ argument 613 int tavor_inmbox_list_init(tavor_state_t *state); 614 int tavor_intr_inmbox_list_init(tavor_state_t *state); 615 int tavor_outmbox_list_init(tavor_state_t *state); 616 int tavor_intr_outmbox_list_init(tavor_state_t *state); 617 void tavor_inmbox_list_fini(tavor_state_t *state); 619 void tavor_outmbox_list_fini(tavor_state_t *state); 635 int tavor_init_hca_cmd_post(tavor_state_t *state, 643 int tavor_init_ib_cmd_post(tavor_state_t *state, 699 int tavor_write_mtt_cmd_post(tavor_state_t *state, [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zcp_get.c | 106 lua_pushnil(state); in get_prop_src() 114 (void) lua_pushstring(state, src); in get_prop_src() 130 return (luaL_error(state, in zcp_handle_error() 134 return (luaL_error(state, in zcp_handle_error() 174 (void) lua_pushstring(state, buf); in zcp_get_user_prop() 335 (void) lua_pushnil(state); in get_special_prop() 793 (void) lua_pushnumber(state, used); in zcp_get_written_prop() 813 zcp_get_prop(lua_State *state) in zcp_get_prop() argument 836 return (luaL_error(state, in zcp_get_prop() 855 return (luaL_error(state, in zcp_get_prop() [all …]
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/postio/ |
H A D | parallel.c | 97 char *BppState(int state) in BppState() argument 116 int state; in bpp_state() local 120 state = bpp_stat.pin_status; in bpp_state() 123 logit("%s", BppState(state)); in bpp_state() 141 } else if (state) { in bpp_state() 152 int state; in get_ecpp_status() local 160 state = transfer_parms.mode; in get_ecpp_status() 172 state = ECPP_CENTRONICS; in get_ecpp_status() 176 return(state); in get_ecpp_status() 313 int state; in wait_state() local [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ioat/ |
H A D | ioat_ioctl.c | 62 ioat_state_t *state; in ioat_ioctl() local 76 if (state == NULL) { in ioat_ioctl() 82 e = ioat_ioctl_rdreg(state, (void *)arg, mode); in ioat_ioctl() 86 e = ioat_ioctl_wrreg(state, (void *)arg, mode); in ioat_ioctl() 89 e = ioat_ioctl_test(state, (void *)arg, mode); in ioat_ioctl() 123 (uint8_t *)&state->is_genregs[rdreg.addr]); in ioat_ioctl_rdreg() 172 ddi_put8(state->is_reg_handle, in ioat_ioctl_wrreg() 173 (uint8_t *)&state->is_genregs[wrreg.addr], in ioat_ioctl_wrreg() 177 ddi_put16(state->is_reg_handle, in ioat_ioctl_wrreg() 182 ddi_put32(state->is_reg_handle, in ioat_ioctl_wrreg() [all …]
|
H A D | ioat_chan.c | 118 state->is_channel = kmem_zalloc(state->is_chansize, KM_SLEEP); in ioat_channel_init() 120 state->is_channel[i].ic_state = state; in ioat_channel_init() 127 ioat_rs_init(state, 0, state->is_num_channels, &state->is_channel_rs); in ioat_channel_init() 140 kmem_free(state->is_channel, state->is_chansize); in ioat_channel_fini() 158 ioat_state_t *state; in ioat_channel_alloc() local 413 ioat_state_t *state; in ioat_channel_free() local 451 ioat_state_t *state; in ioat_channel_intr() local 523 ioat_state_t *state; in ioat_channel_reset() local 545 ioat_state_t *state; in ioat_completion_alloc() local 609 ioat_state_t *state; in ioat_completion_free() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/tm/ |
H A D | tmxdate.c | 163 unsigned long state; in tmxdate() local 214 set = state = 0; in tmxdate() 228 state &= (state & HOLD) ? ~(HOLD) : ~(EXACT|LAST|NEXT|THIS); in tmxdate() 239 state |= ZONE; in tmxdate() 557 state |= CRON; in tmxdate() 1569 state |= YEAR; in tmxdate() 1596 state |= DAY; in tmxdate() 1599 state |= MONTH; in tmxdate() 1634 state |= YEAR; in tmxdate() 1647 state |= YEAR; in tmxdate() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/ja/common/ |
H A D | jfp_iconv_unicode.h | 102 state->bom_written = B_TRUE; in read_unicode() 108 state->bom_written = B_TRUE; in read_unicode() 109 state->little_endian = B_TRUE; in read_unicode() 114 state->bom_written = B_TRUE; in read_unicode() 180 state->bom_written = B_TRUE; in read_unicode() 186 state->bom_written = B_TRUE; in read_unicode() 192 state->bom_written = B_TRUE; in read_unicode() 686 state->bom_written = B_TRUE; in _icv_reset_unicode() 694 state->bom_written = B_TRUE; in _icv_reset_unicode() 697 state->bom_written = B_FALSE; in _icv_reset_unicode() [all …]
|
/illumos-gate/usr/src/common/crypto/edonr/ |
H A D | edonr.c | 454 state->hashbitlen = 224; in EdonRInit() 455 state->bits_processed = 0; in EdonRInit() 462 state->hashbitlen = 256; in EdonRInit() 463 state->bits_processed = 0; in EdonRInit() 470 state->hashbitlen = 384; in EdonRInit() 471 state->bits_processed = 0; in EdonRInit() 478 state->hashbitlen = 512; in EdonRInit() 479 state->bits_processed = 0; in EdonRInit() 497 switch (state->hashbitlen) { in EdonRUpdate() 579 num_bits = state->bits_processed + state->unprocessed_bits; in EdonRFinal() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_stats.c | 116 tavor_kstat_init(tavor_state_t *state) in tavor_kstat_init() argument 128 state->ts_ks_info = ksi; in tavor_kstat_init() 202 tavor_kstat_fini(tavor_state_t *state) in tavor_kstat_fini() argument 209 ksi = state->ts_ks_info; in tavor_kstat_fini() 337 cntr_ksp->ks_private = (void *)state; in tavor_kstat_cntr_create() 354 tavor_state_t *state; in tavor_kstat_cntr_update() local 370 state = ksp->ks_private; in tavor_kstat_cntr_update() 372 ksi = state->ts_ks_info; in tavor_kstat_cntr_update() 722 tavor_state_t *state; in tavor_kstat_perfcntr64_update() local 729 state = ksi64->tki64_state; in tavor_kstat_perfcntr64_update() [all …]
|
H A D | tavor_ci.c | 367 tavor_state_t *state; in tavor_ci_query_hca_ports() local 413 tavor_state_t *state; in tavor_ci_modify_ports() local 461 tavor_state_t *state; in tavor_ci_alloc_pd() local 573 tavor_state_t *state; in tavor_ci_alloc_ah() local 613 tavor_state_t *state; in tavor_ci_free_ah() local 650 tavor_state_t *state; in tavor_ci_query_ah() local 690 tavor_state_t *state; in tavor_ci_modify_ah() local 829 tavor_state_t *state; in tavor_ci_free_qp() local 899 tavor_state_t *state; in tavor_ci_query_qp() local 937 tavor_state_t *state; in tavor_ci_modify_qp() local [all …]
|
H A D | tavor_mr.c | 418 tavor_rsrc_free(state, &rsrc); in tavor_mr_register_shared() 420 tavor_rsrc_free(state, &mpt); in tavor_mr_register_shared() 587 tavor_rsrc_free(state, &rsrc); in tavor_mr_deregister() 590 tavor_rsrc_free(state, &mpt); in tavor_mr_deregister() 909 tavor_rsrc_free(state, &mpt); in tavor_mw_alloc() 968 tavor_rsrc_free(state, &mpt); in tavor_mw_free() 1301 tavor_rsrc_free(state, &mtt); in tavor_mr_common_reg() 1325 tavor_rsrc_free(state, &mpt); in tavor_mr_common_reg() 1497 tavor_rsrc_free(state, &mpt); in tavor_dma_mr_register() 1582 tavor_rsrc_free(state, mtt); in tavor_mr_mtt_bind() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/ |
H A D | hermon_cq.h | 156 #define HERMON_HID_TO_EQNUM(state, hid) \ argument 157 ((state)->hs_rsvd_eqs + (hid) - 1) 159 #define HERMON_HID_VALID(state, hid) \ argument 160 ((uint_t)((hid) - 1) < (state)->hs_intrmsi_allocd) 162 #define HERMON_EQNUM_TO_HID(state, eqnum) \ argument 163 ((eqnum) - (state)->hs_rsvd_eqs + 1) 165 #define HERMON_CQ_ERREQNUM_GET(state) \ argument 166 (state)->hs_cq_erreqnum 283 int hermon_cq_handler(hermon_state_t *state, hermon_eqhdl_t eq, 292 int hermon_cq_sched_init(hermon_state_t *state); [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | util.c | 469 state->go_argc = argc; in elfedit_getopt_init() 470 state->go_argv = argv; in elfedit_getopt_init() 472 state->go_idmask = 0; in elfedit_getopt_init() 473 state->go_done = 0; in elfedit_getopt_init() 523 if ((state->go_optarg == NULL) || state->go_done || in elfedit_getopt() 525 state->go_done = 1; in elfedit_getopt() 537 (*state->go_argc)--; in elfedit_getopt() 538 (*state->go_argv)++; in elfedit_getopt() 617 (*state->go_argc)--; in elfedit_getopt() 618 (*state->go_argv)++; in elfedit_getopt() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_srq.c | 112 uarpg = state->hs_kernel_uar_index; in hermon_srq_alloc() 149 umapdb = hermon_umap_db_alloc(state->hs_instance, in hermon_srq_alloc() 319 srqc_entry.state = HERMON_SRQ_STATE_HW_OWNER; in hermon_srq_alloc() 424 hermon_dbr_free(state, uarpg, srq->srq_wq_vdbr); in hermon_srq_alloc() 430 hermon_rsrc_free(state, &rsrc); in hermon_srq_alloc() 432 hermon_rsrc_free(state, &srqc); in hermon_srq_alloc() 507 HERMON_WARNING(state, "failed in SRQ memory " in hermon_srq_free() 565 hermon_rsrc_free(state, &rsrc); in hermon_srq_free() 568 hermon_rsrc_free(state, &srqc); in hermon_srq_free() 606 if ((state->hs_devlim.mod_wr_srq == 0) || in hermon_srq_modify() [all …]
|
H A D | hermon_stats.c | 100 hermon_kstat_init(hermon_state_t *state) in hermon_kstat_init() argument 112 state->hs_ks_info = ksi; in hermon_kstat_init() 186 hermon_kstat_fini(hermon_state_t *state) in hermon_kstat_fini() argument 193 ksi = state->hs_ks_info; in hermon_kstat_fini() 322 cntr_ksp->ks_private = (void *)state; in hermon_kstat_cntr_create() 339 hermon_state_t *state; in hermon_kstat_cntr_update() local 357 state = ksp->ks_private; in hermon_kstat_cntr_update() 359 ksi = state->hs_ks_info; in hermon_kstat_cntr_update() 876 hermon_state_t *state; in hermon_kstat_perfcntr64_update() local 884 state = ksi64->hki64_state; in hermon_kstat_perfcntr64_update() [all …]
|
H A D | hermon_mr.c | 429 hermon_rsrc_free(state, &rsrc); in hermon_mr_register_shared() 431 hermon_rsrc_free(state, &mpt); in hermon_mr_register_shared() 640 hermon_rsrc_free(state, &rsrc); in hermon_mr_alloc_fmr() 642 hermon_rsrc_free(state, &mpt); in hermon_mr_alloc_fmr() 836 hermon_fm_ereport(state, in hermon_mr_deregister() 963 hermon_rsrc_free(state, &mtt); in hermon_mr_dealloc_fmr() 969 hermon_rsrc_free(state, &mpt); in hermon_mr_dealloc_fmr() 1337 hermon_rsrc_free(state, &mpt); in hermon_mw_alloc() 1400 hermon_rsrc_free(state, &mpt); in hermon_mw_free() 2007 hermon_rsrc_free(state, &mpt); in hermon_dma_mr_register() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_extra.h | 84 int estate_is_unknown(struct smatch_state *state); 133 int estate_is_whole(struct smatch_state *state); 134 int estate_is_empty(struct smatch_state *state); 139 sval_t estate_min(struct smatch_state *state); 140 sval_t estate_max(struct smatch_state *state); 143 int estate_has_fuzzy_max(struct smatch_state *state); 148 int estate_has_hard_max(struct smatch_state *state); 152 bool estate_capped(struct smatch_state *state); 153 void estate_set_capped(struct smatch_state *state); 156 bool estate_new(struct smatch_state *state); [all …]
|
/illumos-gate/usr/src/cmd/ldapcachemgr/ |
H A D | cachemgr_discovery.c | 164 state++; in next_attr() 177 state++; in next_attr() 178 tag = state; in next_attr() 184 if (state) { in next_attr() 201 val = state; in next_attr() 203 if (!state || state > end) { in next_attr() 208 *state++ = 0; in next_attr() 214 tag = state; in next_attr() 217 *state++ = 0; in next_attr() 252 state = attrs; in aggregate_attrs() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_verify.c | 324 state->key = k; in ns_verify_tcp_init() 352 state->counter++; in ns_verify_tcp() 355 state->sig, state->siglen, in ns_verify_tcp() 356 state->sig, &state->siglen, ×igned, 0)); in ns_verify_tcp() 361 dst_verify_data(SIG_MODE_INIT, state->key, &state->ctx, in ns_verify_tcp() 363 dst_verify_data(SIG_MODE_UPDATE, state->key, &state->ctx, in ns_verify_tcp() 365 dst_verify_data(SIG_MODE_UPDATE, state->key, &state->ctx, in ns_verify_tcp() 366 state->sig, state->siglen, NULL, 0); in ns_verify_tcp() 375 dst_verify_data(SIG_MODE_UPDATE, state->key, &state->ctx, in ns_verify_tcp() 381 dst_verify_data(SIG_MODE_UPDATE, state->key, &state->ctx, in ns_verify_tcp() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | signalfd.c | 360 sp->sp_state = state; in signalfd_poller_associate() 642 signalfd_state_t *state; in signalfd_read() local 648 if (state == NULL) { in signalfd_read() 661 set = state->sfd_mask; in signalfd_read() 683 set = state->sfd_mask; in signalfd_read() 715 signalfd_state_t *state; in signalfd_poll() local 721 if (state == NULL) { in signalfd_poll() 750 state->sfd_mask = kmask; in signalfd_set_mask() 765 signalfd_state_t *state; in signalfd_ioctl() local 769 if (state == NULL) { in signalfd_ioctl() [all …]
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | rcm_lock.c | 455 switch (state) { in transition_state() 487 switch (state) { in dr_req_update_entry() 527 switch (state) { in dr_req_update_entry() 631 req->state = state; in dr_req_update_entry() 724 req->state = state; in dr_req_add() 960 int state; in clean_dr_list() member 999 tmp->state = dr_req_list->req[i].state; in clean_dr_list() 1027 switch (tmp->state) { in clean_dr_list() 1131 return (barrier.state); in rcmd_get_state() 1144 barrier.state = state; in rcmd_set_state() [all …]
|
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | cpustat.c | 429 struct tstate *state = arg; in gtick() local 452 if (smt && chip_designees[state->chip_id] != state->cpuid) in gtick() 465 state->soak_state = SOAK_PAUSE; in gtick() 471 &state->soak_lock); in gtick() 479 state->soak_state = SOAK_PAUSE; in gtick() 584 state->soak_state = SOAK_RUN; in gtick() 612 state->soak_state = SOAK_PAUSE; in gtick() 618 state->status = 3; in gtick() 826 struct tstate *state = arg; in soaker() local 853 state->soak_state = SOAK_RUN; in soaker() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/ |
H A D | astconf.c | 345 state.prefix = strlen(state.name) + 1; in synthesize() 347 if ((s = getenv(state.name)) || getenv(state.strict) && (s = (char*)state.standard)) in synthesize() 352 state.last = state.data + n - 1; in synthesize() 353 strcpy(state.data, state.name); in synthesize() 354 state.data += state.prefix - 1; in synthesize() 455 state.data -= state.prefix; in synthesize() 460 state.last = state.data + c - 1; in synthesize() 461 state.data += state.prefix; in synthesize() 474 setenviron(state.data - state.prefix); in synthesize() 476 (*state.notify)(NiL, NiL, state.data - state.prefix); in synthesize() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sendto_kdc.c | 685 state->state = INITIALIZING; in setup_connection() 687 state->x.out.sgp = state->x.out.sgbuf; in setup_connection() 718 state->state = FAILED; in setup_connection() 769 state->state = CONNECTING; in start_connection() 776 state->state = FAILED; in start_connection() 786 state->state = WRITING; in start_connection() 807 state->state = FAILED; in start_connection() 812 state, in start_connection() 831 state->state = FAILED; in start_connection() 834 state->state = READING; in start_connection() [all …]
|