/titanic_41/usr/src/uts/common/zmod/ |
H A D | inflate.c | 102 local void fixedtables OF((struct inflate_state FAR *state)); 113 struct inflate_state FAR *state; local 115 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; 116 state = (struct inflate_state FAR *)strm->state; 117 strm->total_in = strm->total_out = state->total = 0; 120 state->mode = HEAD; 121 state->last = 0; 122 state->havedict = 0; 123 state->dmax = 32768U; 124 state->head = Z_NULL; [all …]
|
/titanic_41/usr/src/lib/libcmd/common/ |
H A D | cp.c | 191 preserve(State_t* state, const char* path, struct stat* ns, struct stat* os) in preserve() argument 198 if (n && chown(state->path, os->st_uid, os->st_gid)) in preserve() 218 visit(State_t* state, register FTSENT* ent) in visit() argument 247 if (state->hierarchy) in visit() 248 state->presiz = -1; in visit() 251 state->presiz = ent->fts_pathlen; in visit() 255 state->presiz--; in visit() 257 state->presiz -= base - ent->fts_name; in visit() 264 if (state->directory) in visit() 265 state->presiz -= len + 1; in visit() [all …]
|
H A D | grep.c | 173 addre(State_s *state, List_t* p, char* s) in addre() argument 181 if (state->label) in addre() 194 if (state->words) in addre() 198 if (!(state->options & REG_AUGMENTED)) in addre() 202 if (!(state->options & REG_AUGMENTED)) in addre() 210 if (c = regcomp(&x->re, s, state->options|REG_MULTIPLE)) in addre() 217 if (state->number || !regrecord(&x->re)) in addre() 218 state->byline = 1; in addre() 220 else if (state->label || regcomb(&p->tail->re, &x->re)) in addre() 223 if (!state->byline && (state->number || !state->label || !regrecord(&x->re))) in addre() [all …]
|
H A D | cksum.c | 178 pr(State_t* state, Sfio_t* op, Sfio_t* ip, char* file, int perm, struct stat* st, Sfio_t* check) in pr() argument 188 state->oldsum = state->sum; in pr() 190 verify(state, p, file, check); in pr() 191 state->sum = state->oldsum; in pr() 192 if (state->warn && !sfeof(ip)) in pr() 196 suminit(state->sum); in pr() 197 if (state->text) in pr() 207 sumblock(state->sum, "\r", 1); in pr() 217 sumblock(state->sum, p, r - p - (*r == '\n')); in pr() 220 sumblock(state->sum, p, e - p); in pr() [all …]
|
H A D | vmstate.c | 69 register State_t* state = (State_t*)handle; in key() local 73 *pn = state->vs.extent; in key() 75 *pn = integralof(state->vm); in key() 77 *pn = state->vs.n_seg; in key() 79 *pn = state->vs.s_busy; in key() 81 *pn = state->vs.n_busy; in key() 83 *pn = state->vs.m_busy; in key() 85 *pn = state->vs.s_free; in key() 87 *pn = state->vs.n_free; in key() 89 *pn = state->vs.m_free; in key() [all …]
|
H A D | rm.c | 105 rm(State_t* state, register FTSENT* ent) in rm() argument 114 if (!state->force) in rm() 117 else if (state->fs3d && iview(ent->fts_statp)) in rm() 123 if (state->unconditional) in rm() 132 else if (!state->force) in rm() 145 if (!state->force) in rm() 151 if (!state->recursive) in rm() 159 if (state->unconditional && (ent->fts_statp->st_mode ^ S_IRWXU)) in rm() 181 if (state->interactive) in rm() 183 … if ((v = astquery(-1, "remove directory %s? ", ent->fts_path)) < 0 || sh_checksig(state->context)) in rm() [all …]
|
/titanic_41/usr/src/uts/i86pc/io/ioat/ |
H A D | ioat.c | 99 static int ioat_chip_init(ioat_state_t *state); 100 static void ioat_chip_fini(ioat_state_t *state); 101 static int ioat_drv_init(ioat_state_t *state); 102 static void ioat_drv_fini(ioat_state_t *state); 104 static void ioat_intr_enable(ioat_state_t *state); 105 static void ioat_intr_disable(ioat_state_t *state); 106 void ioat_detach_finish(ioat_state_t *state); 184 ioat_state_t *state; in ioat_attach() local 195 state = ddi_get_soft_state(ioat_statep, instance); in ioat_attach() 196 if (state == NULL) { in ioat_attach() [all …]
|
/titanic_41/usr/src/uts/common/io/ |
H A D | mouse8042.c | 261 struct mouse_state *state; in mouse8042_attach() local 273 state = (struct mouse_state *)ddi_get_driver_private(dip); in mouse8042_attach() 276 state->ready = 1; in mouse8042_attach() 282 if (state->ms_rqp != NULL) { in mouse8042_attach() 285 putnext(state->ms_rqp, mp); in mouse8042_attach() 289 putnext(state->ms_rqp, mp); in mouse8042_attach() 302 state = kmem_zalloc(sizeof (struct mouse_state), KM_SLEEP); in mouse8042_attach() 303 state->ms_opened = B_FALSE; in mouse8042_attach() 304 state->reset_state = MSE_RESET_IDLE; in mouse8042_attach() 305 state->reset_tid = 0; in mouse8042_attach() [all …]
|
/titanic_41/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon.c | 79 static int hermon_drv_init(hermon_state_t *state, dev_info_t *dip, 81 static void hermon_drv_fini(hermon_state_t *state); 82 static void hermon_drv_fini2(hermon_state_t *state); 83 static int hermon_isr_init(hermon_state_t *state); 84 static void hermon_isr_fini(hermon_state_t *state); 86 static int hermon_hw_init(hermon_state_t *state); 88 static void hermon_hw_fini(hermon_state_t *state, 90 static int hermon_soft_state_init(hermon_state_t *state); 91 static void hermon_soft_state_fini(hermon_state_t *state); 92 static int hermon_icm_config_setup(hermon_state_t *state, [all …]
|
H A D | hermon_fm.c | 149 hermon_hca_fm_init(hermon_state_t *state, hermon_hca_fm_t *hca_fm) in hermon_hca_fm_init() argument 151 state->hs_fm_hca_fm = hca_fm; in hermon_hca_fm_init() 173 hermon_hca_fm_fini(hermon_state_t *state) in hermon_hca_fm_fini() argument 175 i_hca_fm_fini((struct i_hca_fm *)state->hs_fm_hca_fm); in hermon_hca_fm_fini() 176 state->hs_fm_hca_fm = NULL; in hermon_hca_fm_fini() 206 hermon_clr_state_nolock(hermon_state_t *state, int fm_state) in hermon_clr_state_nolock() argument 210 state->hs_fm_state &= ~fm_state; in hermon_clr_state_nolock() 240 hermon_clr_state(hermon_state_t *state, int fm_state) in hermon_clr_state() argument 244 mutex_enter(&state->hs_fm_lock); in hermon_clr_state() 245 hermon_clr_state_nolock(state, fm_state); in hermon_clr_state() [all …]
|
H A D | hermon_ioctl.c | 55 static int hermon_ioctl_flash_read(hermon_state_t *state, dev_t dev, 57 static int hermon_ioctl_flash_write(hermon_state_t *state, dev_t dev, 59 static int hermon_ioctl_flash_erase(hermon_state_t *state, dev_t dev, 61 static int hermon_ioctl_flash_init(hermon_state_t *state, dev_t dev, 63 static int hermon_ioctl_flash_fini(hermon_state_t *state, dev_t dev); 64 static int hermon_ioctl_flash_cleanup(hermon_state_t *state); 65 static int hermon_ioctl_flash_cleanup_nolock(hermon_state_t *state); 67 static int hermon_ioctl_reg_write(hermon_state_t *state, intptr_t arg, 69 static int hermon_ioctl_reg_read(hermon_state_t *state, intptr_t arg, 72 static int hermon_ioctl_write_boot_addr(hermon_state_t *state, dev_t dev, [all …]
|
H A D | hermon_event.c | 46 static void hermon_eq_poll(hermon_state_t *state, hermon_eqhdl_t eq); 47 static void hermon_eq_catastrophic(hermon_state_t *state); 48 static int hermon_eq_alloc(hermon_state_t *state, uint32_t log_eq_size, 50 static int hermon_eq_free(hermon_state_t *state, hermon_eqhdl_t *eqhdl); 51 static int hermon_eq_handler_init(hermon_state_t *state, hermon_eqhdl_t eq, 52 uint_t evt_type_mask, int (*eqfunc)(hermon_state_t *state, 54 static int hermon_eq_handler_fini(hermon_state_t *state, hermon_eqhdl_t eq); 55 static int hermon_port_state_change_handler(hermon_state_t *state, 57 static int hermon_comm_estbl_handler(hermon_state_t *state, 59 static int hermon_local_wq_cat_err_handler(hermon_state_t *state, [all …]
|
/titanic_41/usr/src/uts/common/io/ib/clients/ibd/ |
H A D | ibd.c | 429 static int ibd_part_attach(ibd_state_t *state, dev_info_t *dip); 430 static void ibd_part_unattach(ibd_state_t *state); 432 static int ibd_port_unattach(ibd_state_t *state, dev_info_t *dip); 598 ibd_print_warn(ibd_state_t *state, char *fmt, ...) in ibd_print_warn() argument 605 datalink_id_t linkid = state->id_plinkid; in ibd_print_warn() 607 hca_guid = ddi_prop_get_int64(DDI_DEV_T_ANY, state->id_dip, in ibd_print_warn() 612 ddi_driver_name(state->id_dip), ddi_get_instance(state->id_dip), in ibd_print_warn() 613 (u_longlong_t)hca_guid, state->id_port, state->id_pkey, in ibd_print_warn() 843 ibd_rc_chan_s::state in _NOTE() 1089 ibd_get_allroutergroup(ibd_state_t *state, ipoib_mac_t *mcmac, in ibd_get_allroutergroup() argument [all …]
|
H A D | ibd_cm.c | 122 ibd_async_rc_close_act_chan(ibd_state_t *state, ibd_req_t *req) in ibd_async_rc_close_act_chan() argument 132 mutex_enter(&state->id_ac_mutex); in ibd_async_rc_close_act_chan() 137 IBD_ACACHE_INSERT_FREE(state, ace); in ibd_async_rc_close_act_chan() 141 state->rc_delay_ace_recycle++; in ibd_async_rc_close_act_chan() 143 mutex_exit(&state->id_ac_mutex); in ibd_async_rc_close_act_chan() 145 &state->rc_obs_act_chan_list); in ibd_async_rc_close_act_chan() 150 ibd_async_rc_recycle_ace(ibd_state_t *state, ibd_req_t *req) in ibd_async_rc_recycle_ace() argument 160 mutex_enter(&state->id_ac_mutex); in ibd_async_rc_recycle_ace() 165 IBD_ACACHE_INSERT_FREE(state, ace); in ibd_async_rc_recycle_ace() 169 state->rc_delay_ace_recycle++; in ibd_async_rc_recycle_ace() [all …]
|
/titanic_41/usr/src/uts/common/io/ib/adapters/tavor/ |
H A D | tavor.c | 66 static int tavor_drv_init(tavor_state_t *state, dev_info_t *dip, int instance); 67 static void tavor_drv_fini(tavor_state_t *state); 68 static void tavor_drv_fini2(tavor_state_t *state); 69 static int tavor_isr_init(tavor_state_t *state); 70 static void tavor_isr_fini(tavor_state_t *state); 71 static int tavor_hw_init(tavor_state_t *state); 72 static void tavor_hw_fini(tavor_state_t *state, 74 static int tavor_soft_state_init(tavor_state_t *state); 75 static void tavor_soft_state_fini(tavor_state_t *state); 76 static int tavor_hca_port_init(tavor_state_t *state); [all …]
|
H A D | tavor_event.c | 47 static void tavor_eq_poll(tavor_state_t *state, tavor_eqhdl_t eq); 48 static void tavor_eq_catastrophic(tavor_state_t *state); 49 static int tavor_eq_alloc(tavor_state_t *state, uint32_t log_eq_size, 51 static int tavor_eq_free(tavor_state_t *state, tavor_eqhdl_t *eqhdl); 52 static int tavor_eq_handler_init(tavor_state_t *state, tavor_eqhdl_t eq, 53 uint_t evt_type_mask, int (*eqfunc)(tavor_state_t *state, 55 static int tavor_eq_handler_fini(tavor_state_t *state, tavor_eqhdl_t eq); 58 static int tavor_port_state_change_handler(tavor_state_t *state, 60 static int tavor_comm_estbl_handler(tavor_state_t *state, 62 static int tavor_local_wq_cat_err_handler(tavor_state_t *state, [all …]
|
H A D | tavor_rsrc.c | 94 static int tavor_rsrc_mbox_init(tavor_state_t *state, 96 static void tavor_rsrc_mbox_fini(tavor_state_t *state, 99 static int tavor_rsrc_hw_entries_init(tavor_state_t *state, 101 static void tavor_rsrc_hw_entries_fini(tavor_state_t *state, 104 static int tavor_rsrc_sw_handles_init(tavor_state_t *state, 106 static void tavor_rsrc_sw_handles_fini(tavor_state_t *state, 109 static int tavor_rsrc_pd_handles_init(tavor_state_t *state, 111 static void tavor_rsrc_pd_handles_fini(tavor_state_t *state, 147 static void tavor_rsrc_pdhdl_destructor(void *pd, void *state); 149 static void tavor_rsrc_cqhdl_destructor(void *cq, void *state); [all …]
|
H A D | tavor_ioctl.c | 52 static int tavor_ioctl_flash_read(tavor_state_t *state, dev_t dev, 54 static int tavor_ioctl_flash_write(tavor_state_t *state, dev_t dev, 56 static int tavor_ioctl_flash_erase(tavor_state_t *state, dev_t dev, 58 static int tavor_ioctl_flash_init(tavor_state_t *state, dev_t dev, 60 static int tavor_ioctl_flash_fini(tavor_state_t *state, dev_t dev); 61 static void tavor_ioctl_flash_cleanup(tavor_state_t *state); 62 static void tavor_ioctl_flash_cleanup_nolock(tavor_state_t *state); 64 static int tavor_ioctl_reg_write(tavor_state_t *state, intptr_t arg, 66 static int tavor_ioctl_reg_read(tavor_state_t *state, intptr_t arg, 69 static int tavor_ioctl_info(tavor_state_t *state, dev_t dev, [all …]
|
/titanic_41/usr/src/uts/sun/io/audio/drv/audiocs/ |
H A D | audio_4231.c | 421 CS_state_t *state; in audiocs_ddi_power() local 427 state = ddi_get_driver_private(dip); in audiocs_ddi_power() 429 ASSERT(!mutex_owned(&state->cs_lock)); in audiocs_ddi_power() 432 mutex_enter(&state->cs_lock); in audiocs_ddi_power() 438 if (!state->cs_suspended) { in audiocs_ddi_power() 441 if (level == CS4231_PWR_OFF && state->cs_powered) { in audiocs_ddi_power() 444 audiocs_power_down(state); in audiocs_ddi_power() 445 state->cs_powered = B_FALSE; in audiocs_ddi_power() 447 } else if (level == CS4231_PWR_ON && !state->cs_powered) { in audiocs_ddi_power() 450 audiocs_power_up(state); in audiocs_ddi_power() [all …]
|
/titanic_41/usr/src/cmd/sgs/elfdump/common/ |
H A D | corenote.c | 57 #define INDENT state->ns_indent, MSG_ORIG(MSG_STR_EMPTY) 76 print_num(state, _title, &layout->_field, SL_FMT_NUM_DEC) 78 print_num_2up(state, _title1, &layout->_field1, SL_FMT_NUM_DEC, \ 81 print_num(state, _title, &layout->_field, SL_FMT_NUM_HEX) 83 print_num_2up(state, _title1, &layout->_field1, SL_FMT_NUM_HEX, \ 86 print_num(state, _title, &layout->_field, SL_FMT_NUM_ZHEX) 88 print_num_2up(state, _title1, &layout->_field1, SL_FMT_NUM_ZHEX, \ 91 print_subtype(state, _title, &layout->_field, _func) 93 print_strbuf(state, _title, &layout->_field) 118 typedef void (* dump_func_t)(note_state_t *state, const char *title); [all …]
|
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | deflate.c | 80 static void z_comp_free(void *state); 81 static void z_decomp_free(void *state); 82 static int z_comp_init(void *state, uchar_t *options, int opt_len, 84 static int z_decomp_init(void *state, uchar_t *options, int opt_len, 86 static int z_compress(void *state, mblk_t **mret, 88 static int z_incomp(void *state, mblk_t *dmsg); 89 static int z_decompress(void *state, mblk_t **dmpp); 90 static void z_comp_reset(void *state); 91 static void z_decomp_reset(void *state); 92 static void z_comp_stats(void *state, struct compstat *stats); [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | deflate.c | 65 static void z_decomp_free __P((void *state)); 66 static int z_decomp_init __P((void *state, u_char *options, int opt_len, 68 static void z_incomp __P((void *state, u_char *dmsg, int len)); 69 static int z_decompress __P((void *state, u_char *cmp, int inlen, 71 static void z_decomp_reset __P((void *state)); 72 static void z_comp_stats __P((void *state, struct compstat *stats)); 113 struct deflate_state *state = (struct deflate_state *) arg; local 116 *stats = state->stats; 135 struct deflate_state *state; local 147 state = (struct deflate_state *) malloc(sizeof(*state)); [all …]
|
/titanic_41/usr/src/uts/common/xen/io/ |
H A D | xpvtap.c | 122 static void xpvtap_drv_fini(xpvtap_state_t *state); 125 typedef void (*xpvtap_rs_cleanup_t)(xpvtap_state_t *state, uint_t rs); 134 static int xpvtap_segmf_register(xpvtap_state_t *state); 137 static int xpvtap_user_init(xpvtap_state_t *state); 138 static void xpvtap_user_fini(xpvtap_state_t *state); 139 static int xpvtap_user_ring_init(xpvtap_state_t *state); 140 static void xpvtap_user_ring_fini(xpvtap_state_t *state); 141 static int xpvtap_user_thread_init(xpvtap_state_t *state); 142 static void xpvtap_user_thread_fini(xpvtap_state_t *state); 144 static void xpvtap_user_thread_stop(xpvtap_state_t *state); [all …]
|
/titanic_41/usr/src/uts/common/io/audio/drv/audiots/ |
H A D | audiots.c | 378 audiots_state_t *state; in audiots_attach() local 389 state = ddi_get_soft_state(audiots_statep, instance); in audiots_attach() 390 ASSERT(dip == state->ts_dip); in audiots_attach() 393 if (state->ts_flags & TS_AUDIO_READ_FAILED) { in audiots_attach() 394 ddi_dev_report_fault(state->ts_dip, in audiots_attach() 399 state->ts_flags &= in audiots_attach() 403 audiots_power_up(state); in audiots_attach() 404 audiots_chip_init(state); in audiots_attach() 406 ac97_reset(state->ts_ac97); in audiots_attach() 408 audio_dev_resume(state->ts_adev); in audiots_attach() [all …]
|
/titanic_41/usr/src/cmd/sgs/libconv/common/ |
H A D | globals_machelf.c | 99 cef_cp(CONV_EXPN_FIELD_ARG *arg, CONV_EXPN_FIELD_STATE *state, in cef_cp() argument 110 if (state->list_cnt != 0) { in cef_cp() 111 if (state->sep_str_len < state->room) { in cef_cp() 112 (void) memcpy(state->cur, state->sep_str, in cef_cp() 113 state->sep_str_len); in cef_cp() 114 state->cur += state->sep_str_len; in cef_cp() 115 state->room -= state->sep_str_len; in cef_cp() 118 state->room = 0; in cef_cp() 121 state->list_cnt++; in cef_cp() 125 if (n < state->room) { in cef_cp() [all …]
|