Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 1600) sorted by relevance

12345678910>>...64

/illumos-gate/usr/src/contrib/zlib/
H A Dinflate.c135 state->lencode = state->distcode = state->next = state->codes; in inflateResetKeep()
405 zmemcpy(state->window, end - state->wsize, state->wsize); in updatewindow()
407 state->whave = state->wsize; in updatewindow()
417 state->whave = state->wsize; in updatewindow()
421 if (state->wnext == state->wsize) state->wnext = 0; in updatewindow()
422 if (state->whave < state->wsize) state->whave += dist; in updatewindow()
936 state->next = state->codes; in inflate()
950 while (state->have < state->nlen + state->ndist) { in inflate()
1010 state->next = state->codes; in inflate()
1094 state->was = state->length; in inflate()
[all …]
H A Dinfback.c58 strm->state = (struct internal_state FAR *)state; in inflateBackInit_()
369 while (state->have < state->ncode) { in inflateBack()
376 state->next = state->codes; in inflateBack()
390 while (state->have < state->nlen + state->ndist) { in inflateBack()
427 if (state->have + copy > state->nlen + state->ndist) { in inflateBack()
450 state->next = state->codes; in inflateBack()
453 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next), in inflateBack()
462 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist, in inflateBack()
463 &(state->next), &(state->distbits), state->work); in inflateBack()
476 if (state->whave < state->wsize) in inflateBack()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dcp.c294 …if ((state->postsiz + len) > state->pathsiz && !(state->path = newof(state->path, char, state->pat… in visit()
298 s = state->path + state->postsiz; in visit()
332 state->path[state->postsiz] = 0; in visit()
371 if (!(*state->stat)(state->path, &st)) in visit()
387 state->path[state->postsiz++] = '/'; in visit()
414 if ((*state->stat)(state->path, &st)) in visit()
528 sfprintf(state->tmp, "%s.%s%d%s", state->path, state->suffix, v + 1, state->suffix); in visit()
533 sfprintf(state->tmp, "%s%s", state->path, state->suffix); in visit()
972 …if (state->pathsiz < roundof(state->postsiz + 2, PATH_CHUNK) && !(state->path = newof(state->path,… in b_cp()
975 if (state->directory && state->path[state->postsiz - 1] != '/') in b_cp()
[all …]
H A Dcksum.c188 state->oldsum = state->sum; in pr()
191 state->sum = state->oldsum; in pr()
231 if (!state->total || state->all) in pr()
233 sumprint(state->sum, op, state->flags|SUM_SCALE, state->scale); in pr()
390 if (state->sum != state->oldsum) in verify()
414 pr(state, sfstdout, sp, file, state->permissions, NiL, state->check); in list()
455 memset(&state, 0, sizeof(state)); in b_cksum()
567 if (!state.check && (state.header || state.permissions)) in b_cksum()
591 pr(&state, sfstdout, sfstdin, "/dev/stdin", state.permissions, NiL, state.check); in b_cksum()
606 pr(&state, sfstdout, sp, ent->fts_path, state.permissions, ent->fts_statp, state.check); in b_cksum()
[all …]
H A Dvmstate.c80 *pn = state->vs.n_seg; in key()
141 if (vm != state->vm) in visit()
143 state->vm = vm; in visit()
144 if (state->regions < elementsof(state->region)) in visit()
145 state->region[state->regions++] = vm; in visit()
154 State_t state; in b_vmstate() local
156 memset(&state, 0, sizeof(state)); in b_vmstate()
177 if (!state.format) in b_vmstate()
192 state.vm = state.region[i]; in b_vmstate()
193 vmstat(state.vm, &state.vs); in b_vmstate()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/ioat/
H A Dioat.c249 e = dcopy_device_register(state, &state->is_deviceinfo, in ioat_attach()
422 state->is_maxxfer = (uint_t)ddi_get8(state->is_reg_handle, in ioat_chip_init()
426 state->is_cbver = (uint_t)ddi_get8(state->is_reg_handle, in ioat_chip_init()
428 state->is_intrdelay = (uint_t)ddi_get16(state->is_reg_handle, in ioat_chip_init()
430 state->is_status = (uint_t)ddi_get16(state->is_reg_handle, in ioat_chip_init()
475 state->is_deviceinfo.di_dip = state->is_dip; in ioat_drv_init()
476 state->is_deviceinfo.di_num_dma = state->is_num_channels; in ioat_drv_init()
477 state->is_deviceinfo.di_maxxfer = state->is_maxxfer; in ioat_drv_init()
495 state->is_deviceinfo.di_id |= (uint64_t)state->is_cbver; in ioat_drv_init()
525 ddi_remove_intr(state->is_dip, 0, state->is_iblock_cookie); in ioat_drv_init()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon.c1380 hermon_regs_map_free(state, &state->hs_fm_cmdhdl); in hermon_drv_fini2()
1843 state->hs_rsvd_eqs = max(state->hs_devlim.num_rsvd_eq, in hermon_hw_init()
1872 &state->hs_reg_accattr, &state->hs_reg_bfhdl); in hermon_hw_init()
1911 state->hs_icm_sz = hermon_size_icm(state); in hermon_hw_init()
2293 hermon_regs_map_free(state, &state->hs_fm_uarhdl); in hermon_hw_fini()
2406 state->hs_ibtfinfo.hca_handle = (ibc_hca_hdl_t)state; in hermon_soft_state_init()
3706 hermon_rsrc_free(state, &state->hs_uarkpg_rsrc); in hermon_internal_uarpg_fini()
3776 hermon_rsrc_free(state, &state->hs_spec_qp_unused); in hermon_special_qp_contexts_unreserve()
3779 hermon_rsrc_free(state, &state->hs_spec_qp1); in hermon_special_qp_contexts_unreserve()
3782 hermon_rsrc_free(state, &state->hs_spec_qp0); in hermon_special_qp_contexts_unreserve()
[all …]
H A Dhermon_fm.c638 hermon_rsrc_free(state, &state->hs_uarkpg_rsrc); in hermon_fm_ereport_init()
686 hermon_regs_map_free(state, &state->hs_fm_msix_tblhdl); in hermon_fm_ereport_init()
692 hermon_regs_map_free(state, &state->hs_fm_msix_pbahdl); in hermon_fm_ereport_init()
698 hermon_regs_map_free(state, &state->hs_fm_pcihdl); in hermon_fm_ereport_init()
704 hermon_regs_map_free(state, &state->hs_fm_cmdhdl); in hermon_fm_ereport_init()
710 hermon_regs_map_free(state, &state->hs_fm_uarhdl); in hermon_fm_ereport_init()
1282 state->hs_fm_cmdhdl : state->hs_reg_cmdhdl); in hermon_get_cmdhdl()
1309 state->hs_fm_uarhdl : state->hs_reg_uarhdl); in hermon_get_uarhdl()
1337 state->hs_fm_uarhdl : state->hs_reg_uarhdl); in hermon_rsrc_alloc_uarhdl()
1364 state->hs_fm_pcihdl : state->hs_reg_pcihdl); in hermon_get_pcihdl()
[all …]
H A Dhermon_ioctl.c156 hermon_state_t *state; in hermon_ioctl() local
170 if (state == NULL) { in hermon_ioctl()
287 (state->hs_fw_device_sz >> state->hs_fw_log_sector_sz)) { in hermon_ioctl_flash_read()
409 (state->hs_fw_device_sz >> state->hs_fw_log_sector_sz)) { in hermon_ioctl_flash_write()
416 &state->hs_fw_sector[0], 1 << state->hs_fw_log_sector_sz, in hermon_ioctl_flash_write()
508 (state->hs_fw_device_sz >> state->hs_fw_log_sector_sz)) { in hermon_ioctl_flash_erase()
742 if (state->hs_fw_sector) { in hermon_ioctl_flash_cleanup_nolock()
743 kmem_free(state->hs_fw_sector, 1 << state->hs_fw_log_sector_sz); in hermon_ioctl_flash_cleanup_nolock()
2422 state->hs_fw_gpio[0] = hermon_flash_read_cfg(state, hdl, in hermon_flash_init()
2430 state->hs_fw_gpio[1] = hermon_flash_read_cfg(state, hdl, in hermon_flash_init()
[all …]
H A Dhermon_event.c120 num_eq_rsvd = state->hs_rsvd_eqs; in hermon_eq_init_all()
377 eqh = &state->hs_eqhdl[state->hs_rsvd_eqs]; in hermon_eq_reset_uar_baseaddr()
439 hermon_state_t *state; in hermon_isr() local
485 r = state->hs_rsvd_eqs; in hermon_isr()
490 hermon_eq_poll(state, state->hs_eqhdl[i + r]); in hermon_isr()
493 hermon_eq_poll(state, state->hs_eqhdl[intr + r]); in hermon_isr()
567 eqfunction(state, eq, eqe); in hermon_eq_poll()
739 pd = state->hs_pdhdl_internal; in hermon_eq_alloc()
885 hermon_rsrc_free(state, &eqc); in hermon_eq_alloc()
916 pd = state->hs_pdhdl_internal; in hermon_eq_free()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Dmouse8042.c276 state->ready = 1; in mouse8042_attach()
306 state->bc_id = 0; in mouse8042_attach()
363 state->ready = 1; in mouse8042_attach()
391 state->ready = 0; in mouse8042_detach()
518 state->ms_rqp = q; in mouse8042_open()
556 cv_wait(&state->reset_cv, &state->reset_mutex); in mouse8042_close()
580 state->bc_id = 0; in mouse8042_close()
650 (void) ddi_get8(state->ms_handle, state->ms_addr + in mouse8042_reset_timeout()
705 if (state->reply_mp == NULL || state->reset_ack_mp == NULL) { in mouse8042_initiate_reset()
711 state->bc_id = qbufcall(q, (state->reply_mp == NULL) ? 2 : 1, in mouse8042_initiate_reset()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/ibd/
H A Dibd.c1950 state->id_link_speed = ibd_get_portspeed(state); in ibd_async_link()
2879 state->id_pkey, state->id_plinkid); in ibd_state_init()
3525 state->id_tx_buf_sz = state->id_mtu; in ibd_alloc_tx_copybufs()
7494 ibd_poll_rcq(state, state->id_rcq_hdl); in ibd_intr()
7603 mac_rx(state->id_mh, state->id_rh, head); in ibd_drain_rcq()
8101 ibd_poll_scq(state, state->id_scq_hdl); in ibd_tx_recycle()
8443 for (state = ibd_objlist_head; state; state = state->id_next) { in ibd_get_partition_info()
8729 state->id_link_speed = ibd_get_portspeed(state); in ibd_get_port_state()
8870 for (state = ibd_objlist_head; state; state = state->id_next) { in ibd_get_part_attr()
8902 for (state = ibd_objlist_head; state; state = state->id_next) in ibd_get_all_part_attr()
[all …]
H A Dibd_cm.c586 chan->state = state; in ibd_rc_alloc_chan()
847 ibd_state_t *state = chan->state; in ibd_rc_re_add_to_pas_chan_list() local
1274 ibd_state_t *state = chan->state; in ibd_rc_alloc_rx_copybufs() local
1311 ibd_state_t *state = chan->state; in ibd_rc_free_rx_copybufs() local
1349 ibd_state_t *state = chan->state; in ibd_rc_init_rxlist() local
1456 ibd_state_t *state = chan->state; in ibd_rc_process_rx() local
1877 state = chan->state; in ibd_rc_alloc_tx_copybufs()
2117 state = ace->ac_chan->state; in ibd_rc_tx_cleanup()
2705 chan->state = state; in ibd_rc_connect()
2861 state = chan->state; in ibd_rc_act_close()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor.c1198 &state->ts_reg_accattr, &state->ts_reg_ddrhdl); in tavor_hw_init()
1456 tavor_hca_config_setup(state, &state->ts_hcaparams); in tavor_hw_init()
1586 state->ts_nodeguid = state->ts_cfg_profile->cp_nodeguid; in tavor_hw_init()
1707 status = tavor_pd_free(state, &state->ts_pdhdl_internal); in tavor_hw_fini()
1814 state->ts_ibtfinfo.hca_handle = (ibc_hca_hdl_t)state; in tavor_soft_state_init()
2532 tavor_rsrc_free(state, &state->ts_uarpg0_rsrc_rsrvd); in tavor_internal_uarpgs_init()
2556 tavor_rsrc_free(state, &state->ts_uarpg1_rsrc); in tavor_internal_uarpgs_fini()
2559 tavor_rsrc_free(state, &state->ts_uarpg0_rsrc_rsrvd); in tavor_internal_uarpgs_fini()
2629 tavor_rsrc_free(state, &state->ts_spec_qp1); in tavor_special_qp_contexts_unreserve()
2632 tavor_rsrc_free(state, &state->ts_spec_qp0); in tavor_special_qp_contexts_unreserve()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dssp.c160 QR(state[0], state[4], state[ 8], state[12]); in salsa_dr()
161 QR(state[1], state[5], state[ 9], state[13]); in salsa_dr()
162 QR(state[2], state[6], state[10], state[14]); in salsa_dr()
163 QR(state[3], state[7], state[11], state[15]); in salsa_dr()
164 QR(state[0], state[5], state[10], state[15]); in salsa_dr()
165 QR(state[1], state[6], state[11], state[12]); in salsa_dr()
166 QR(state[2], state[7], state[ 8], state[13]); in salsa_dr()
167 QR(state[3], state[4], state[ 9], state[14]); in salsa_dr()
174 salsa_dr(state); in salsa_hash()
175 salsa_dr(state); in salsa_hash()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_estate.c67 if (!state) in get_dinfo()
74 if (!state) in estate_rl()
81 if (!state) in estate_related()
90 if (!state || !get_dinfo(state)) in estate_get_fuzzy_max()
125 if (!state || !estate_rl(state)) in estate_has_hard_max()
145 if (!state || !get_dinfo(state)->hard_max || !estate_rl(state)) in estate_get_hard_max()
153 if (!state) in estate_capped()
168 if (!state) in estate_treat_untagged()
263 return state && !estate_rl(state); in estate_is_empty()
334 if (!state) in clone_estate()
[all …]
H A Dexample.c552 state->cc_opcode = 0; in flush_cc_cache_to_reg()
578 state->cc_dead = 0; in add_cc_cache()
685 flush_reg(state, src); in copy_reg()
815 output_insn(state, "lea %s,%s", show_op(state, op), reg->name); in generic()
902 flush_cc_cache(state); in generate_binop()
962 state->cc_dead = 1; in mark_pseudo_dead()
981 …output_insn(state, "mov.%d %s,%s", insn->size, reg_or_imm(state, insn->target), address(state, ins… in generate_store()
1122 output_insn(state, "pushl %s", generic(state, arg)); in generate_call()
1773 state.pos = bb->pos; in output_bb()
1777 state.cc_opcode = 0; in output_bb()
[all …]
/illumos-gate/usr/src/uts/sun/io/audio/drv/audiocs/
H A Daudio_4231.c421 CS_state_t *state; in audiocs_ddi_power() local
467 if (state == NULL) in audiocs_destroy()
484 kmem_free(state, sizeof (*state)); in audiocs_destroy()
505 CS_state_t *state; in audiocs_attach() local
509 state = kmem_zalloc(sizeof (*state), KM_SLEEP); in audiocs_attach()
851 state->cs_##CTL = audiocs_alloc_ctrl(state, ID, VAL); \ in audiocs_add_controls()
1152 state->cs_omask = state->cs_omod = in audiocs_get_ports()
1156 state->cs_imask = in audiocs_get_ports()
1263 PUTIDX(state, state->cs_save[MID_REG], MID_VALID_MASK); in audiocs_power_up()
1272 SELIDX(state, 0); in audiocs_power_up()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dcorenote.c310 state->ns_t2col - state->ns_vcol, in print_num_2up()
349 state->ns_vcol - state->ns_indent, in print_strbuf()
610 state->ns_vcol - state->ns_indent, in dump_auxv()
886 dump_hex_bytes(state->ns_data, state->ns_len, state->ns_indent, in dump_secflags()
965 state->ns_vcol - state->ns_indent, in dump_prgregset()
968 state->ns_t2col - state->ns_vcol, in dump_prgregset()
970 state->ns_v2col - state->ns_t2col, in dump_prgregset()
1348 state->ns_t2col - state->ns_vcol, in prtpct_2up()
1384 state->ns_t2col - state->ns_vcol, in print_state_sname_2up()
1808 dump_hex_bytes(state->ns_data, state->ns_len, state->ns_indent, in dump_upanic()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp.c134 zcp_cleanup(state); in zcp_error_handler()
138 luaL_traceback(state, state, msg, 1); in zcp_error_handler()
240 lua_pushnil(state); in zcp_table_to_nvlist()
288 lua_typename(state, lua_type(state, -2))); in zcp_table_to_nvlist()
326 lua_pop(state, 1); in zcp_table_to_nvlist()
404 lua_typename(state, lua_type(state, index)), key); in zcp_lua_to_nvlist_impl()
1036 lua_State *state; in zcp_eval() local
1062 lua_pop(state, 1); in zcp_eval()
1157 lua_close(state); in zcp_eval()
1352 if (lua_isnumber(state, -2) && lua_tointeger(state, -2) > 0) { in zcp_parse_table_args()
[all …]
H A Dzcp_iter.c61 return (luaL_error(state, in zcp_clones_iter()
79 return (luaL_error(state, in zcp_clones_iter()
91 return (luaL_error(state, in zcp_clones_iter()
166 return (luaL_error(state, in zcp_snapshots_iter()
184 return (luaL_error(state, in zcp_snapshots_iter()
230 lua_pushnumber(state, 0); in zcp_snapshots_list()
264 return (luaL_error(state, in zcp_children_iter()
284 return (luaL_error(state, in zcp_children_iter()
332 lua_pushnumber(state, 0); in zcp_children_list()
506 lua_newtable(state); in zcp_load_list_lib()
[all …]
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Ddeflate.c226 kmem_free(state, sizeof (*state)); in z_comp_alloc()
233 bzero(&state->stats, sizeof (state->stats)); in z_comp_alloc()
248 kmem_free(state, sizeof (*state)); in z_comp_free()
446 (state->strm.msg? state->strm.msg: "")); in z_compress()
590 (state->strm.msg? state->strm.msg: "")); in z_incomp()
678 kmem_free(state, sizeof (*state)); in z_decomp_alloc()
684 bzero(&state->stats, sizeof (state->stats)); in z_decomp_alloc()
699 kmem_free(state, sizeof (*state)); in z_decomp_free()
852 state->unit, seq, state->seqno - 1); in z_decompress()
912 (state->strm.msg? state->strm.msg: "")); in z_decompress()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Ddeflate.c147 state = (struct deflate_state *) malloc(sizeof(*state));
155 free(state);
160 memset(&state->stats, 0, sizeof(state->stats));
171 free(state);
247 if (state->debug)
250 state->unit, seq, state->seqno);
263 state->strm.avail_out = state->mru + 2;
271 state->unit, r, (state->strm.msg? state->strm.msg: ""));
274 olen = state->mru + 2 - state->strm.avail_out;
284 state->unit, olen, state->mru + PPP_HDRLEN);
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxpvtap.c237 if (state == NULL) { in xpvtap_attach()
240 state->bt_dip = dip; in xpvtap_attach()
287 if (state == NULL) { in xpvtap_detach()
328 if (state == NULL) { in xpvtap_getinfo()
366 if (state == NULL) { in xpvtap_open()
402 if (state == NULL) { in xpvtap_close()
462 if (state == NULL) { in xpvtap_ioctl()
508 if (state == NULL) { in xpvtap_segmap()
606 if (state == NULL) { in xpvtap_devmap()
655 if (state == NULL) { in xpvtap_chpoll()
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiots/
H A Daudiots.c399 state->ts_flags &= in audiots_attach()
464 if (ac97_init(state->ts_ac97, state->ts_adev) != 0) { in audiots_attach()
469 ddi_put32(state->ts_acch, &state->ts_regs->aud_regs.ap_ainten, in audiots_attach()
862 state->ts_devid = in audiots_map_regs()
865 state->ts_revid = pci_config_get8(state->ts_pcih, PCI_CONF_REVID); in audiots_map_regs()
1269 ddi_put32(state->ts_acch, &state->ts_regs->aud_regs.ap_stop, in audiots_stop()
1511 ddi_put32(state->ts_acch, &state->ts_regs->aud_regs.ap_ainten, in audiots_stop_everything()
1514 ddi_put32(state->ts_acch, &state->ts_regs->aud_regs.ap_stop, in audiots_stop_everything()
1517 ddi_put32(state->ts_acch, &state->ts_regs->aud_regs.ap_aint, in audiots_stop_everything()
1572 if (state->ts_acch) in audiots_destroy()
[all …]

12345678910>>...64