/illumos-gate/usr/src/uts/common/io/ppp/spppasyn/ |
H A D | spppasyn.c | 394 sppp_ahdlc_t *state; in spppasyn_open() local 430 sppp_ahdlc_t *state; in spppasyn_close() local 501 state->sa_ksp = ksp; in create_kstats() 643 state->sa_flags = (state->sa_flags & ~mask) | (mask); in spppasyn_inner_ioctl() 663 state->sa_flags = flagval | (state->sa_flags & ~flagmask); in spppasyn_inner_ioctl() 729 state->sa_mru = in spppasyn_inner_mctl() 741 state->sa_unit = in spppasyn_inner_mctl() 1736 if ((state->sa_mqlen + nlen) >= state->sa_mru) { in spppasyn_muxencode() 1793 state->sa_mqtail = state->sa_mqhead; in spppasyn_muxencode() 1796 state->sa_mqtail = state->sa_mqtail->b_cont; in spppasyn_muxencode() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon_misc.c | 143 mutex_enter(&state->hs_dbr_lock); in hermon_user_dbr_alloc() 150 state->hs_user_dbr = udbr; in hermon_user_dbr_alloc() 205 mutex_exit(&state->hs_dbr_lock); in hermon_user_dbr_alloc() 255 mutex_exit(&state->hs_dbr_lock); in hermon_user_dbr_free() 378 state->hs_kern_dbr = info; in hermon_dbr_alloc() 389 mutex_exit(&state->hs_dbr_lock); in hermon_dbr_alloc() 451 udbr = state->hs_user_dbr; in hermon_dbr_kern_free() 452 instance = state->hs_instance; in hermon_dbr_kern_free() 589 hermon_rsrc_free(state, &rsrc); in hermon_ah_free() 782 mcg_entry = state->hs_mcgtmp; in hermon_mcg_attach() [all …]
|
H A D | hermon_ci.c | 373 hermon_state_t *state; in hermon_ci_query_hca_ports() local 413 hermon_state_t *state; in hermon_ci_modify_ports() local 451 hermon_state_t *state; in hermon_ci_alloc_pd() local 542 hermon_state_t *state; in hermon_ci_alloc_ah() local 572 hermon_state_t *state; in hermon_ci_free_ah() local 596 hermon_state_t *state; in hermon_ci_query_ah() local 626 hermon_state_t *state; in hermon_ci_modify_ah() local 758 hermon_state_t *state; in hermon_ci_free_qp() local 805 hermon_state_t *state; in hermon_ci_query_qp() local 829 hermon_state_t *state; in hermon_ci_modify_qp() local [all …]
|
H A D | hermon_qpmod.c | 231 status = hermon_qp_reset2err(state, qp); in hermon_qp_modify() 330 status = hermon_qp_to_reset(state, qp); in hermon_qp_modify() 354 status = hermon_qp_to_error(state, qp); in hermon_qp_modify() 420 status = hermon_qp_to_reset(state, qp); in hermon_qp_modify() 444 status = hermon_qp_to_error(state, qp); in hermon_qp_modify() 707 status = hermon_qp_sqd2rts(state, qp, in hermon_qp_modify() 1096 state->hs_instance, status); in hermon_qp_reset2init() 3107 state->hs_instance, status); in hermon_qp_to_error() 3147 state->hs_instance, status); in hermon_qp_to_reset() 3291 state->hs_instance, status); in hermon_qp_reset2err() [all …]
|
H A D | hermon_qp.c | 740 hermon_rsrc_free(state, &qpc); in hermon_qp_alloc() 744 hermon_rsrc_free(state, &rsrc); in hermon_qp_alloc() 747 hermon_rsrc_free(state, &qpc); in hermon_qp_alloc() 1202 hermon_rsrc_free(state, &rsrc); in hermon_special_qp_alloc() 1814 hermon_rsrc_free(state, &rsrc); in hermon_qp_alloc_range() 1825 hermon_rsrc_free(state, &qpc); in hermon_qp_alloc_range() 2058 hermon_rsrc_free(state, &qpc); in hermon_qp_free() 2078 hermon_rsrc_free(state, &rsrc); in hermon_qp_free() 2656 flags = state->hs_spec_qpflags; in hermon_special_qp_rsrc_alloc() 2702 *qp_rsrc = state->hs_spec_qp0; in hermon_special_qp_rsrc_alloc() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor_qp.c | 567 tavor_rsrc_free(state, &rdb); in tavor_qp_alloc() 581 tavor_rsrc_free(state, &rsrc); in tavor_qp_alloc() 584 tavor_rsrc_free(state, &qpc); in tavor_qp_alloc() 950 tavor_rsrc_free(state, &rsrc); in tavor_special_qp_alloc() 1143 tavor_rsrc_free(state, &rdb); in tavor_qp_free() 1162 tavor_rsrc_free(state, &rsrc); in tavor_qp_free() 1632 avl_destroy(&state->ts_qpn_avl); in tavor_qpn_avl_fini() 1682 flags = state->ts_spec_qpflags; in tavor_special_qp_rsrc_alloc() 1723 state->ts_spec_qpflags |= mask; in tavor_special_qp_rsrc_alloc() 1724 *qp_rsrc = state->ts_spec_qp0; in tavor_special_qp_rsrc_alloc() [all …]
|
H A D | tavor_cq.c | 102 pd = state->ts_pdhdl_internal; in tavor_cq_alloc() 259 cqc_entry.state = TAVOR_CQ_DISARMED; in tavor_cq_alloc() 318 state->ts_cqhdl[cqc->tr_indx] = cq; in tavor_cq_alloc() 355 tavor_rsrc_free(state, &rsrc); in tavor_cq_alloc() 357 tavor_rsrc_free(state, &cqc); in tavor_cq_alloc() 393 pd = state->ts_pdhdl_internal; in tavor_cq_free() 489 tavor_rsrc_free(state, &rsrc); in tavor_cq_free() 492 tavor_rsrc_free(state, &cqc); in tavor_cq_free() 524 pd = state->ts_pdhdl_internal; in tavor_cq_resize() 1158 TAVOR_UAR_DOORBELL(state, (uint64_t *)&state->ts_uar->cq, in tavor_cq_doorbell() [all …]
|
H A D | tavor_srq.c | 391 state->ts_srqhdl[srqc->tr_indx] = srq; in tavor_srq_alloc() 426 tavor_queue_free(state, &srq->srq_wqinfo); in tavor_srq_alloc() 432 tavor_rsrc_free(state, &rsrc); in tavor_srq_alloc() 434 tavor_rsrc_free(state, &srqc); in tavor_srq_alloc() 522 state->ts_srqhdl[srqc->tr_indx] = NULL; in tavor_srq_free() 575 tavor_rsrc_free(state, &rsrc); in tavor_srq_free() 578 tavor_rsrc_free(state, &srqc); in tavor_srq_free() 726 tavor_queue_free(state, &new_srqinfo); in tavor_srq_modify() 811 tavor_queue_free(state, &new_srqinfo); in tavor_srq_modify() 934 tavor_queue_free(state, &old_srqinfo); in tavor_srq_modify() [all …]
|
H A D | tavor_qpmod.c | 221 status = tavor_qp_reset2err(state, qp); in tavor_qp_modify() 313 status = tavor_qp_to_reset(state, qp); in tavor_qp_modify() 332 status = tavor_qp_to_error(state, qp); in tavor_qp_modify() 393 status = tavor_qp_to_reset(state, qp); in tavor_qp_modify() 412 status = tavor_qp_to_error(state, qp); in tavor_qp_modify() 475 status = tavor_qp_to_reset(state, qp); in tavor_qp_modify() 494 status = tavor_qp_to_error(state, qp); in tavor_qp_modify() 543 status = tavor_qp_to_reset(state, qp); in tavor_qp_modify() 562 status = tavor_qp_to_error(state, qp); in tavor_qp_modify() 639 status = tavor_qp_to_reset(state, qp); in tavor_qp_modify() [all …]
|
/illumos-gate/usr/src/common/definit/ |
H A D | definit.c | 49 definit_t *state = NULL; in definit_open() local 54 if ((state = calloc(1, sizeof (*state))) == NULL) in definit_open() 60 state->di_fp = fp; in definit_open() 61 *statep = state; in definit_open() 68 if (state != NULL) { in definit_open() 69 free(state->di_line); in definit_open() 70 free(state); in definit_open() 79 definit_t *state = statep; in definit_close() local 82 free(state->di_line); in definit_close() 83 free(state); in definit_close() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/usba/ |
H A D | usbai_register.c | 126 usba_reg_state_t *state); 672 state.dip = dip; in usba_build_descr_tree() 705 state.st_dev_n_cfg = 0; in usba_build_descr_tree() 709 state.st_curr_raw_descr = in usba_build_descr_tree() 716 state.st_curr_if = NULL; in usba_build_descr_tree() 718 state.st_curr_ep = NULL; in usba_build_descr_tree() 859 state.st_curr_raw_descr += state.st_curr_raw_descr_len; in usba_build_descr_tree() 866 usba_order_tree(&state); in usba_build_descr_tree() 895 &state->st_dev_cfg[state->st_dev_n_cfg++]; in usba_process_cfg_descr() 899 state->st_curr_raw_descr, state->st_curr_raw_descr_len, in usba_process_cfg_descr() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/adapters/hermon/ |
H A D | hermon_cmd.h | 683 int hermon_inmbox_list_init(hermon_state_t *state); 685 int hermon_outmbox_list_init(hermon_state_t *state); 687 void hermon_inmbox_list_fini(hermon_state_t *state); 697 int hermon_map_fa_cmd_post(hermon_state_t *state); 698 int hermon_run_fw_cmd_post(hermon_state_t *state); 701 int hermon_map_icm_cmd_post(hermon_state_t *state); 703 int hermon_unmap_icm_cmd_post(hermon_state_t *state, 706 int hermon_unmap_fa_cmd_post(hermon_state_t *state); 712 int hermon_init_hca_cmd_post(hermon_state_t *state, 722 int hermon_set_port_cmd_post(hermon_state_t *state, [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_sign.c | 253 state->key = k; in ns_sign_tcp_init() 285 state->counter++; in ns_sign_tcp2() 288 state->sig, state->siglen, in ns_sign_tcp2() 289 state->sig, &state->siglen, 0, in ns_sign_tcp2() 294 dst_sign_data(SIG_MODE_INIT, state->key, &state->ctx, in ns_sign_tcp2() 296 dst_sign_data(SIG_MODE_UPDATE, state->key, &state->ctx, in ns_sign_tcp2() 298 dst_sign_data(SIG_MODE_UPDATE, state->key, &state->ctx, in ns_sign_tcp2() 299 state->sig, state->siglen, NULL, 0); in ns_sign_tcp2() 349 dst_sign_data(SIG_MODE_UPDATE, state->key, &state->ctx, in ns_sign_tcp2() 353 state->sig, sizeof(state->sig)); in ns_sign_tcp2() [all …]
|
/illumos-gate/usr/src/uts/common/io/vuidmice/ |
H A D | vuidps2.c | 325 STATEP->state = PS2_WAIT_FOR_AA; in VUID_INIT_TIMEOUT() 352 switch (STATEP->state) { in VUID_QUEUE() 406 STATEP->state = PS2_START; in VUID_QUEUE() 432 STATEP->state = PS2_BUTTON; in VUID_QUEUE() 453 STATEP->state = PS2_WAIT_FOR_00; in VUID_QUEUE() 486 STATEP->state = PS2_DELTA_Y; in VUID_QUEUE() 582 STATEP->state = PS2_START; in VUID_QUEUE() 640 STATEP->state = PS2_WAIT_FOR_AA; in VUID_QUEUE() 686 STATEP->state++; in VUID_QUEUE() 980 STATEP->state = PS2_WAIT_ON_ACK; in VUID_QUEUE() [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | dwarf.c | 281 state->file, state->sh_name); in dump_cfi() 328 state->file, state->sh_name); in dump_cfi() 333 state->file, state->sh_name, in dump_cfi() 357 state->file, state->sh_name, in dump_cfi() 363 state->file, state->sh_name); in dump_cfi() 380 state->file, state->sh_name); in dump_cfi() 388 state->file, state->sh_name); in dump_cfi() 405 state->file, state->sh_name); in dump_cfi() 419 state->file, state->sh_name); in dump_cfi() 427 state->file, state->sh_name); in dump_cfi() [all …]
|
/illumos-gate/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 253 file_state_t state; in process_file() local 269 state.Sect_exists = 0; in process_file() 274 state.off_table = 0; in process_file() 463 (state->b_e_seg_table[state->notesegndx].p_offset in traverse_file() 861 i = &state-> in build_file() 926 i = &state-> in build_file() 1038 if (!state->Sect_exists && state->new_sec_string != NULL) { in build_file() 1190 (!state->Sect_exists && state->new_sec_string != NULL))) { in build_file() 1204 if ((state->notesegndx != -1) && (state->notesctndx != -1) && in build_file() 1205 (state->sec_table[state->notesctndx].secno)) { in build_file() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | enc_des.c | 140 fbp->state[0] = des_cfb.state[1] = ENCR_STATE_FAILED; in cfb64_init() 177 state = fbp->state[dir]; in cfb64_start() 183 state = fbp->state[dir]; in cfb64_start() 228 return (fbp->state[dir] = state); in cfb64_start() 242 register int state = fbp->state[TELNET_DIR_DECRYPT]; in cfb64_is() local 306 return (fbp->state[TELNET_DIR_DECRYPT] = state); in cfb64_is() 319 register int state = fbp->state[TELNET_DIR_ENCRYPT]; in cfb64_reply() local 354 return (fbp->state[TELNET_DIR_ENCRYPT] = state); in cfb64_reply() 396 register int state = fbp->state[dir]; local 400 return (state); [all …]
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | adt.c | 407 state->as_flags = flags; in adt_start_session() 415 free(state); in adt_start_session() 434 if (state != NULL) { in adt_load_table() 436 state->as_xlate = xlate; in adt_load_table() 1042 state->as_check = 0; in adt_end_session() 1425 state->as_label = NULL; in adt_setto_unaudited() 1461 state->as_pid = getpid(); in adt_init() 1714 state->as_ruid = ruid; in adt_set_user() 1716 state->as_euid = euid; in adt_set_user() 1718 state->as_rgid = rgid; in adt_set_user() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | fsm.c | 94 f->state = CLOSED; 124 f->state = INITIAL; 134 f->state = INITIAL; 222 f->state = INITIAL; 228 f->state = CLOSED; 232 f->state = CLOSING; 239 f->state = CLOSING; 282 f->state = (f->state == CLOSING)? CLOSED: STOPPED; 358 if (f->state == INITIAL || f->state == STARTING) { 454 if (f->state == OPENED || f->state == STOPPED) [all …]
|
/illumos-gate/usr/src/cmd/connstat/ |
H A D | connstat_tcp.c | 239 if (state->cws_flags & CS_LADDR) { in tcp_ipv4_print() 246 if (state->cws_flags & CS_RADDR) { in tcp_ipv4_print() 253 if (state->cws_flags & CS_LPORT) { in tcp_ipv4_print() 258 if (state->cws_flags & CS_RPORT) { in tcp_ipv4_print() 286 if (state->cws_flags & CS_LADDR) { in tcp_ipv6_print() 295 if (state->cws_flags & CS_RADDR) { in tcp_ipv6_print() 332 tcp_ipv4_print(ce, state); in tcp_walk_ipv4() 344 tcp_ipv6_print(ce, state); in tcp_walk_ipv6() 349 tcp_stateinfobystate(int state) in tcp_stateinfobystate() argument 354 if (sip->tsi_state == state) { in tcp_stateinfobystate() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | random.c | 154 unsigned int *state; member 236 ostate = (char *)(&rp->state[ -1 ]); in initstate() 239 else rp->state[ -1 ] = in initstate() 331 rp->state = &new_state[ 1 ]; in setstate() 333 rp->rptr = &rp->state[ rear ]; in setstate() 366 i = rp->state[0] = (rp->state[0]*1103515245 + 12345)&0x7fffffff; in random() 371 rp->fptr = rp->state; in random() 402 rp->state[ 0 ] = x; in srandom() 404 rp->state[ 0 ] = x; in srandom() 406 rp->state[i] = 1103515245*rp->state[i - 1] + 12345; in srandom() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/profile/ |
H A D | prof_parse.c | 24 int state; member 76 state->state = STATE_INIT_COMMENT; in parse_init_state() 77 state->group_level = 0; in parse_init_state() 101 if (state->group_level > 0) in parse_std_line() 145 state->group_level--; in parse_std_line() 179 state->state = STATE_GET_OBRACE; in parse_std_line() 197 state->group_level++; in parse_std_line() 213 switch (state->state) { in parse_line() 217 state->state = STATE_STD_LINE; in parse_line() 225 state->state = STATE_STD_LINE; in parse_line() [all …]
|
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | cputrack.c | 334 state->sgrps = realloc(state->sgrps, in pinit_lwp() 342 state->sgrps[state->maxlwpid] = NULL; in pinit_lwp() 343 state->maxlwpid++; in pinit_lwp() 517 state->accum = NULL; in pexec() 551 state->accum = NULL; in pexit() 558 free(state->sgrps); in pexit() 559 state->sgrps = NULL; in pexit() 669 if (state->accum) { in pfork() 670 free(state->accum); in pfork() 687 bzero(state, sizeof (*state)); in cputrack() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | expr.c | 197 if (!state->standard) in getnode() 268 tok = expr_or(state, np); in getnode() 284 if (!(cp = *state->arglist)) in getnode() 286 state->arglist++; in getnode() 305 tok = getnode(state, &rp); in expr_cond() 309 sfsprintf(cp=state->buf,sizeof(state->buf),"%d",np->num); in expr_cond() 404 tok = expr_add(state, &rp); in expr_cmp() 494 State_t state; in b_expr() local 501 if (state.standard) in b_expr() 502 state.arglist = argv+1; in b_expr() [all …]
|
/illumos-gate/usr/src/cmd/newform/ |
H A D | newform.c | 327 state = 0; in cnvtspec() 338 state = 1; in cnvtspec() 343 state = 3; in cnvtspec() 356 state = 1; in cnvtspec() 360 state = 2; in cnvtspec() 368 state = 1; in cnvtspec() 378 state = 4; in cnvtspec() 381 state = 5; in cnvtspec() 384 state = 7; in cnvtspec() 421 state = 6; in cnvtspec() [all …]
|