Home
last modified time | relevance | path

Searched refs:state (Results 26 – 50 of 1578) sorted by relevance

12345678910>>...64

/illumos-gate/usr/src/uts/common/crypto/io/
H A Dviorand.c198 cv_wait(&state->vio_cv, &state->vio_mutex); in viorand_rbuf_alloc()
200 state->vio_rdbufs_alloc++; in viorand_rbuf_alloc()
213 state->vio_rdbufs_alloc--; in viorand_rbuf_free()
259 state->vio_rdbufs_capacity = virtio_queue_size(state->vio_rq); in viorand_alloc_bufs()
272 rb->rb_viornd = state; in viorand_alloc_bufs()
282 viorand_free_bufs(state); in viorand_alloc_bufs()
291 viorand_state_t *state; in viorand_attach() local
313 state->vio_dip = dip; in viorand_attach()
314 state->vio_virtio = vio; in viorand_attach()
355 viorand_free_bufs(state); in viorand_attach()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
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 …]
H A Drm.c115 if (!state->force) in rm()
148 if (!state->force) in rm()
295 if (write(n, state->buf, sizeof(state->buf)) != sizeof(state->buf)) in rm()
317 if (!state->force || state->interactive) in rm()
332 State_t state; in b_rm() local
338 memset(&state, 0, sizeof(state)); in b_rm()
350 state.force = 1; in b_rm()
355 state.force = 0; in b_rm()
398 state.unconditional = state.unconditional && state.recursive && state.force; in b_rm()
399 if (state.recursive && state.fs3d) in b_rm()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_rsrc.c185 ASSERT(state != NULL); in tavor_rsrc_alloc()
327 ASSERT(state != NULL); in tavor_rsrc_free()
413 ASSERT(state != NULL); in tavor_rsrc_init_phase1()
553 ASSERT(state != NULL); in tavor_rsrc_init_phase2()
564 ddr_size = state->ts_ddr.ddr_endaddr - state->ts_ddr.ddr_baseaddr + 1; in tavor_rsrc_init_phase2()
565 fw_size = state->ts_fw.fw_endaddr - state->ts_fw.fw_baseaddr + 1; in tavor_rsrc_init_phase2()
2367 tavor_state_t *state; in tavor_rsrc_pdhdl_constructor() local
2404 tavor_state_t *state; in tavor_rsrc_cqhdl_constructor() local
2444 tavor_state_t *state; in tavor_rsrc_qphdl_constructor() local
2481 tavor_state_t *state; in tavor_rsrc_srqhdl_constructor() local
[all …]
H A Dtavor_ioctl.c137 tavor_state_t *state; in tavor_ioctl() local
151 if (state == NULL) { in tavor_ioctl()
262 (state->ts_fw_device_sz >> state->ts_fw_log_sector_sz)) { in tavor_ioctl_flash_read()
268 tavor_flash_reset(state); in tavor_ioctl_flash_read()
376 (state->ts_fw_device_sz >> state->ts_fw_log_sector_sz)) { in tavor_ioctl_flash_write()
383 &state->ts_fw_sector[0], 1 << state->ts_fw_log_sector_sz, in tavor_ioctl_flash_write()
465 (state->ts_fw_device_sz >> state->ts_fw_log_sector_sz)) { in tavor_ioctl_flash_erase()
517 tavor_flash_init(state); in tavor_ioctl_flash_init()
641 kmem_free(state->ts_fw_sector, 1 << state->ts_fw_log_sector_sz); in tavor_ioctl_flash_cleanup_nolock()
644 tavor_flash_fini(state); in tavor_ioctl_flash_cleanup_nolock()
[all …]
H A Dtavor_agents.c93 state->ts_taskq_agents = ddi_taskq_create(state->ts_dip, in tavor_agent_handlers_init()
96 tavor_agent_list_fini(state); in tavor_agent_handlers_init()
104 tavor_agent_list_fini(state); in tavor_agent_handlers_init()
133 status = tavor_agent_unregister_all(state, state->ts_num_agents); in tavor_agent_handlers_fini()
149 tavor_agent_list_fini(state); in tavor_agent_handlers_fini()
165 tavor_state_t *state; in tavor_agent_request_cb() local
169 state = curr->agl_state; in tavor_agent_request_cb()
212 tavor_state_t *state; in tavor_agent_handle_req() local
226 state = curr->agl_state; in tavor_agent_handle_req()
406 curr->agl_state = state; in tavor_agent_list_init()
[all …]
H A Dtavor_cmd.c338 status = tavor_impl_mboxlist_init(state, &state->ts_in_mblist, in tavor_inmbox_list_init()
360 status = tavor_impl_mboxlist_init(state, &state->ts_in_intr_mblist, in tavor_intr_inmbox_list_init()
382 status = tavor_impl_mboxlist_init(state, &state->ts_out_mblist, in tavor_outmbox_list_init()
404 status = tavor_impl_mboxlist_init(state, &state->ts_out_intr_mblist, in tavor_intr_outmbox_list_init()
422 tavor_impl_mboxlist_fini(state, &state->ts_in_mblist); in tavor_inmbox_list_fini()
434 tavor_impl_mboxlist_fini(state, &state->ts_in_intr_mblist); in tavor_intr_inmbox_list_fini()
446 tavor_impl_mboxlist_fini(state, &state->ts_out_mblist); in tavor_outmbox_list_fini()
458 tavor_impl_mboxlist_fini(state, &state->ts_out_intr_mblist); in tavor_intr_outmbox_list_fini()
995 mutex_exit(&state-> in tavor_write_hcr()
1058 state->ts_cmd_list.cml_tail_indx = state->ts_cmd_list.cml_list_sz - 1; in tavor_outstanding_cmdlist_init()
[all …]
H A Dtavor_misc.c136 tavor_rsrc_free(state, &rsrc); in tavor_ah_alloc()
137 tavor_rsrc_free(state, &udav); in tavor_ah_alloc()
214 tavor_rsrc_free(state, &rsrc); in tavor_ah_alloc()
216 tavor_rsrc_free(state, &udav); in tavor_ah_alloc()
277 tavor_rsrc_free(state, &rsrc); in tavor_ah_free()
280 tavor_rsrc_free(state, &udav); in tavor_ah_free()
567 mcg_entry = state->ts_mcgtmp; in tavor_mcg_attach()
800 tavor_rsrc_free(state, &rsrc); in tavor_mcg_attach()
817 tavor_rsrc_free(state, &rsrc); in tavor_mcg_attach()
944 mcg_entry = state->ts_mcgtmp; in tavor_mcg_detach()
[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 …]
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Dglobals_machelf.c111 if (state->sep_str_len < state->room) { in cef_cp()
112 (void) memcpy(state->cur, state->sep_str, 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()
127 state->cur += n; in cef_cp()
128 state->room -= n; in cef_cp()
152 state->list_cnt = 0; in cef_setup()
154 state->sep_str_len = strlen(state->sep_str); in cef_setup()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Deventfd.c57 eventfd_state_t *state; in eventfd_open() local
79 eventfd_state = state; in eventfd_open()
90 eventfd_state_t *state; in eventfd_read() local
108 if (!cv_wait_sig_swap(&state->efd_cv, &state->efd_lock)) { in eventfd_read()
122 state->efd_value--; in eventfd_read()
125 state->efd_value = 0; in eventfd_read()
155 eventfd_state_t *state; in eventfd_write() local
179 state->efd_bwriters++; in eventfd_write()
180 if (!cv_wait_sig_swap(&state->efd_cv, &state->efd_lock)) { in eventfd_write()
185 state->efd_bwriters--; in eventfd_write()
[all …]
H A Dtimerfd.c97 oval = state->tfd_fired++; in timerfd_fire()
110 timerfd_state_t *state; in timerfd_open() local
132 timerfd_state = state; in timerfd_open()
143 timerfd_state_t *state; in timerfd_read() local
161 if (!cv_wait_sig_swap(&state->tfd_cv, &state->tfd_lock)) { in timerfd_read()
170 val = state->tfd_fired; in timerfd_read()
171 state->tfd_fired = 0; in timerfd_read()
184 timerfd_state_t *state; in timerfd_poll() local
192 if (state->tfd_fired > 0) in timerfd_poll()
253 timerfd_state_t *state; in timerfd_ioctl() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A Dratz.c2349 state->lencode = state->distcode = state->next = state->codes;
2365 state->hold += value << state->bits;
2571 state->whave = state->wsize;
2585 if (state->write == state->wsize) state->write = 0;
2586 if (state->whave < state->wsize) state->whave += dist;
3082 state->next = state->codes;
3096 while (state->have < state->nlen + state->ndist) {
3134 if (state->have + copy > state->nlen + state->ndist) {
3148 state->next = state->codes;
3418 state->whave = state->wsize;
[all …]
H A Dmamake.c314 if (state.sp && state.sp->line) in report()
384 state.old = state.old->old; in buffer()
666 search(state.vars, "PWD", state.pwd); in view()
690 p = state.pwd + strlen(state.pwd); in view()
1056 if (state.sp == state.streams) in pop()
1075 state.sp = state.streams; in push()
1076 else if (++state.sp >= &state.streams[elementsof(state.streams)]) in push()
1125 else if (!fgets(state.input, sizeof(state.input), state.sp->fp)) in input()
1145 …if (!state.shell && (!(state.shell = (char*)search(state.vars, "SHELL", NiL)) || !strcmp(state.she… in execute()
1622 if (state.explain && !state.force) in make()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_param_limit.c70 if (state) in unmatched_state()
71 return state; in unmatched_state()
80 if (state) in get_orig_estate()
81 return state; in get_orig_estate()
84 if (state) in get_orig_estate()
85 return state; in get_orig_estate()
94 if (state) in get_orig_estate_type()
98 if (state) in get_orig_estate_type()
151 if (!state) in print_return_value_param()
152 state = tmp->state; in print_return_value_param()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dconfig.c26 struct pci_probe_state *state = &dev->state.pci; in pci_probe() local
29 state->advance = 1; in pci_probe()
30 state->dev.driver = 0; in pci_probe()
40 state->advance = 1; in pci_probe()
60 if (state->dev.driver->probe(dev, &state->dev)) { in pci_probe()
78 struct isa_probe_state *state = &dev->state.isa; in isa_probe() local
81 state->advance = 0; in isa_probe()
88 state->driver++; in isa_probe()
91 state->advance = 1; in isa_probe()
106 if (state->driver->probe(dev, state->driver->ioaddrs)) { in isa_probe()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_rsrc.c187 ASSERT(state != NULL); in hermon_rsrc_alloc()
312 ASSERT(state != NULL); in hermon_rsrc_reserve()
388 ASSERT(state != NULL); in hermon_rsrc_fexch_alloc()
457 ASSERT(state != NULL); in hermon_rsrc_fexch_free()
485 ASSERT(state != NULL); in hermon_rsrc_rfci_alloc()
524 ASSERT(state != NULL); in hermon_rsrc_rfci_free()
543 ASSERT(state != NULL); in hermon_rsrc_free()
644 ASSERT(state != NULL); in hermon_rsrc_init_phase1()
816 ASSERT(state != NULL); in hermon_rsrc_init_phase2()
1223 ASSERT(state != NULL); in hermon_rsrc_fini()
[all …]
H A Dhermon_cq.c107 uarpg = state->hs_kernel_uar_index; in hermon_cq_alloc()
111 pd = state->hs_pdhdl_internal; in hermon_cq_alloc()
273 tmp = state->hs_cq_sched_array; in hermon_cq_alloc()
397 hermon_rsrc_free(state, &rsrc); in hermon_cq_alloc()
399 hermon_rsrc_free(state, &cqc); in hermon_cq_alloc()
435 pd = state->hs_pdhdl_internal; in hermon_cq_free()
556 hermon_rsrc_free(state, &rsrc); in hermon_cq_free()
559 hermon_rsrc_free(state, &cqc); in hermon_cq_free()
598 pd = state->hs_pdhdl_internal; in hermon_cq_resize()
1877 state->hs_cq_sched_array = NULL; in hermon_cq_sched_init()
[all …]
H A Dhermon_agents.c93 state->hs_taskq_agents = ddi_taskq_create(state->hs_dip, in hermon_agent_handlers_init()
96 hermon_agent_list_fini(state); in hermon_agent_handlers_init()
104 hermon_agent_list_fini(state); in hermon_agent_handlers_init()
133 status = hermon_agent_unregister_all(state, state->hs_num_agents); in hermon_agent_handlers_fini()
149 hermon_agent_list_fini(state); in hermon_agent_handlers_fini()
165 hermon_state_t *state; in hermon_agent_request_cb() local
169 state = curr->agl_state; in hermon_agent_request_cb()
319 hermon_state_t *state; in hermon_agent_handle_req() local
337 state = curr->agl_state; in hermon_agent_handle_req()
645 curr->agl_state = state; in hermon_agent_list_init()
[all …]
H A Dhermon_fcoib.c49 fcoib = &state->hs_fcoib; in hermon_fcoib_enable()
92 fcoib = &state->hs_fcoib; in hermon_fcoib_set_id()
131 fcoib = &state->hs_fcoib; in hermon_fcoib_get_id_idx()
153 fcoib = &state->hs_fcoib; in hermon_fcoib_check_exch_base_off()
171 fcoib = &state->hs_fcoib; in hermon_fcoib_is_fexch_qpn()
189 fcoib = &state->hs_fcoib; in hermon_fcoib_qpnum_from_fexch()
205 fcoib = &state->hs_fcoib; in hermon_fcoib_qpn_to_mkey()
244 fcoib = &state->hs_fcoib; in hermon_fcoib_fexch_mkey_init()
272 fcoib = &state->hs_fcoib; in hermon_fcoib_fexch_mkey_fini()
326 fcoib = &state->hs_fcoib; in hermon_fcoib_init()
[all …]
H A Dhermon_cmd.c439 status = hermon_impl_mboxlist_init(state, &state->hs_in_mblist, in hermon_inmbox_list_init()
461 status = hermon_impl_mboxlist_init(state, &state->hs_in_intr_mblist, in hermon_intr_inmbox_list_init()
483 status = hermon_impl_mboxlist_init(state, &state->hs_out_mblist, in hermon_outmbox_list_init()
505 status = hermon_impl_mboxlist_init(state, &state->hs_out_intr_mblist, in hermon_intr_outmbox_list_init()
523 hermon_impl_mboxlist_fini(state, &state->hs_in_mblist); in hermon_inmbox_list_fini()
535 hermon_impl_mboxlist_fini(state, &state->hs_in_intr_mblist); in hermon_intr_inmbox_list_fini()
547 hermon_impl_mboxlist_fini(state, &state->hs_out_mblist); in hermon_outmbox_list_fini()
559 hermon_impl_mboxlist_fini(state, &state->hs_out_intr_mblist); in hermon_intr_outmbox_list_fini()
1058 state->hs_cmd_toggle++; in hermon_write_hcr()
1232 state->hs_cmd_list.cml_tail_indx = state->hs_cmd_list.cml_list_sz - 1; in hermon_outstanding_cmdlist_init()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/aso/
H A Daso.c233 if (state.meth && state.meth->initf && state.data && state.pid == getpid())
236 state.meth->initf(state.data, 0);
237 state.data = 0;
254 state.hung = 1;
255 state.hung <<= state.hung2;
256 state.hung--;
267 if (state.meth && state.meth->initf && state.data)
269 state.meth->initf(state.data, 0);
284 if (!state.pid)
300 if (state.hung && !(rep & state.hung) && state.errorf)
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzcp_synctask.c98 return (luaL_error(state, in zcp_sync_task()
102 return (luaL_error(state, in zcp_sync_task()
137 return (luaL_error(state, in zcp_synctask_destroy()
145 if (!lua_isnil(state, 2)) { in zcp_synctask_destroy()
347 zipa.zipa_state = state; in zcp_synctask_inherit_prop()
393 args.state = state; in zcp_synctask_set_prop()
437 dsname = lua_tostring(state, 1); in zcp_synctask_change_key()
445 format = lua_tostring(state, 3); in zcp_synctask_change_key()
484 zch = zcp_register_cleanup(state, in zcp_synctask_wrapper()
545 lua_newtable(state); in zcp_load_synctask_lib()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/xsvc/
H A Dxsvc.c214 xsvc_state_t *state; in xsvc_attach() local
237 if (state == NULL) { in xsvc_attach()
241 state->xs_dip = dip; in xsvc_attach()
293 xsvc_state_t *state; in xsvc_detach() local
301 if (state == NULL) { in xsvc_detach()
342 xsvc_state_t *state; in xsvc_getinfo() local
383 xsvc_state_t *state; in xsvc_open() local
621 state->xs_currently_alloced = state->xs_currently_alloced - size; in xsvc_ioctl_alloc_memory()
746 state->xs_currently_alloced = state->xs_currently_alloced - in xsvc_mem_free()
1006 *pvtp = state; in xsvc_devmap_map()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Drandom.c212 state[0] = x; in srandom()
217 state[i] = (1103515145 * state[i - 1]) + 12345; in srandom()
219 rptr = &state[0]; in srandom()
243 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in initstate()
287 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in initstate()
310 state[-1] = (MAX_TYPES * (rptr - state)) + rand_type; in setstate()
329 state = &new_state[1]; in setstate()
356 state[0] = ((state[0] * 1103515245) + 12345) & LONG_MAX; in random()
357 return state[0]; in random()
368 fptr = state; in random()
[all …]

12345678910>>...64